6 while test $# -ge 1; do
8 --verbose) verbose=yes ;;
9 --enable-*) configure_args="$configure_args $1" ;;
10 --disable-*) configure_args="$configure_args $1" ;;
11 --with-*) configure_args="$configure_args $1" ;;
12 --without-*) configure_args="$configure_args $1" ;;
13 --no-configure) configure="no" ;;
14 *) echo "unknown argument $1"; exit 1 ;;
19 touch swig/nlopt.scm.in
23 # paranoia: sometimes autoconf doesn't get things right the first time
24 autoreconf --verbose --install --symlink --force
25 autoreconf --verbose --install --symlink --force
26 autoreconf --verbose --install --symlink --force
28 if test "$configure" = "yes"
30 config=good # hackery so darcs_test still outputs config.log w/failed configure
32 ./configure --enable-maintainer-mode $configure_args || config=bad
34 if test x$verbose = xyes; then
38 test $config = bad && exit 1