chiark / gitweb /
lcc doesn't support dllimport, thanks to Laurent Vanbeylen for the bug report
[nlopt.git] / autogen.sh
1 #!/bin/sh
2
3 configure_args=""
4
5 while test $# -ge 1; do
6     case $1 in
7         --verbose) verbose=yes ;;
8         --enable-*) configure_args="$configure_args $1" ;;
9         --disable-*) configure_args="$configure_args $1" ;;
10         --with-*) configure_args="$configure_args $1" ;;
11         --without-*) configure_args="$configure_args $1" ;;
12         *) echo "unknown argument $1"; exit 1 ;;
13     esac
14     shift
15 done
16
17 touch swig/nlopt.scm.in
18
19 # paranoia: sometimes autoconf doesn't get things right the first time
20 autoreconf --verbose --install --symlink --force
21 autoreconf --verbose --install --symlink --force
22 autoreconf --verbose --install --symlink --force
23
24 config=good # hackery so darcs_test still outputs config.log w/failed configure
25
26 ./configure --enable-maintainer-mode $configure_args || config=bad
27
28 if test x$verbose = xyes; then
29     cat config.log
30 fi
31
32 test $config = bad && exit 1