[axel-devel] configure fails on FreeBSD

EmirAga emiraga at gmail.com
Thu Dec 30 11:43:02 UTC 2010


Command:
./configure --debug=1
Fails with message:
expr: illegal option -- -

Reason is that expr on FreeBSD supports -e flag. Proposed patch:
--- a/configure
+++ b/configure
@@ -20,7 +20,7 @@ strip=1
 arch=`uname -s`

 while [ -n "$1" ]; do
-       e="`expr "$1" : '--\(.*=.*\)'`"
+       e="`expr "X$1" : 'X--\(.*=.*\)'`"
        if [ -z "$e" ]; then
                cat<<EOF
 Axel configure

https://github.com/emiraga/axel/commit/e4f834379b91d8a4f4715d79a334a38fc306384b



More information about the axel-devel mailing list