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 () { ...@@ -22,8 +22,7 @@ usage () {
# no compiler set yet # no compiler set yet
COMPSET=0 COMPSET=0
for OPT in $* ; do for OPT in "$@"; do
set +e set +e
# stolen from configure... # stolen from configure...
# when no option is set, this returns an error code # when no option is set, this returns an error code
...@@ -47,7 +46,7 @@ for OPT in $* ; do ...@@ -47,7 +46,7 @@ for OPT in $* ; do
-o|--optim) OPTIM=1 ;; -o|--optim) OPTIM=1 ;;
-h|--help) usage ; exit 0 ;; -h|--help) usage ; exit 0 ;;
# pass unknown opts to ./configure # pass unknown opts to ./configure
*) CONFOPT="$CONFOPT $OPT" ;; *) CONFOPT="$CONFOPT \"$OPT\"" ;;
esac esac
done done
...@@ -82,21 +81,21 @@ fi ...@@ -82,21 +81,21 @@ fi
echo "--> libtoolize..." echo "--> libtoolize..."
# this script won't rewrite the files if they already exist. This is a # 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 # PITA when you want to upgrade libtool, thus I'm setting --force
libtoolize --force #libtoolize --force
# prepare everything # prepare everything
echo "--> aclocal..." echo "--> aclocal..."
aclocal$AMVERS -I m4 #aclocal$AMVERS -I m4
# applications should provide a config.h for now # applications should provide a config.h for now
echo "--> autoheader..." echo "--> autoheader..."
autoheader #autoheader
echo "--> automake..." echo "--> automake..."
automake$AMVERS --add-missing #automake$AMVERS --add-missing
echo "--> autoconf..." echo "--> autoconf..."
autoconf #autoconf
#### start configure with special environment #### start configure with special environment
...@@ -107,4 +106,4 @@ export CPP="$COMP -E" ...@@ -107,4 +106,4 @@ export CPP="$COMP -E"
export CFLAGS="$COMPFLAGS" export CFLAGS="$COMPFLAGS"
export CXXFLAGS="$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