Skip to content
Snippets Groups Projects
Commit 8147f4b4 authored by Christian Engwer's avatar Christian Engwer
Browse files

correctly quote autogen parameters

[[Imported from SVN: r2288]]
parent 77bde05f
No related branches found
No related tags found
No related merge requests found
......@@ -22,8 +22,7 @@ usage () {
# no compiler set yet
COMPSET=0
for OPT in $* ; do
for OPT in "$@"; do
set +e
# stolen from configure...
# when no option is set, this returns an error code
......@@ -47,7 +46,7 @@ for OPT in $* ; do
-o|--optim) OPTIM=1 ;;
-h|--help) usage ; exit 0 ;;
# pass unknown opts to ./configure
*) CONFOPT="$CONFOPT $OPT" ;;
*) CONFOPT="$CONFOPT \"$OPT\"" ;;
esac
done
......@@ -82,21 +81,21 @@ fi
echo "--> libtoolize..."
# this script won't rewrite the files if they already exist. This is a
# PITA when you want to upgrade libtool, thus I'm setting --force
libtoolize --force
#libtoolize --force
# prepare everything
echo "--> aclocal..."
aclocal$AMVERS -I m4
#aclocal$AMVERS -I m4
# applications should provide a config.h for now
echo "--> autoheader..."
autoheader
#autoheader
echo "--> automake..."
automake$AMVERS --add-missing
#automake$AMVERS --add-missing
echo "--> autoconf..."
autoconf
#autoconf
#### start configure with special environment
......@@ -107,4 +106,4 @@ export CPP="$COMP -E"
export CFLAGS="$COMPFLAGS"
export CXXFLAGS="$COMPFLAGS"
./configure $DEFAULTCONFOPT $CONFOPT
eval ./configure $DEFAULTCONFOPT $CONFOPT
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment