Committer : entrope
CVSROOT : /cvsroot/undernet-ircu
Module : ircu2.10
Commit time: 2005-04-05 02:42:49 UTC
Modified files:
configure
Log message:
Regenerate configure for the last commit to configure.in.
---------------------- diff included ----------------------
Index: ircu2.10/configure
diff -u ircu2.10/configure:1.29 ircu2.10/configure:1.30
--- ircu2.10/configure:1.29 Mon Mar 7 13:12:08 2005
+++ ircu2.10/configure Mon Apr 4 19:42:37 2005
@@ -861,6 +861,8 @@
Optional Packages:
--with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
--without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
+ --with-optimization=-O2 Explicitly set the compiler optimization flags
+ (default: -O3)
--with-leak-detect Turn on the leak detector(requires patched boehm)
--without-ipv6 disable IPv6 support (default is autodetect)
--with-symlink=name Name to give the symlink; if name is "no," no
@@ -2462,8 +2464,28 @@
*) CC="$CC $am_cv_prog_cc_stdc" ;;
esac
+
+# Check whether --with-optimization or --without-optimization was given.
+if test "${with_optimization+set}" = set; then
+ withval="$with_optimization"
+ unet_cv_optimization=$withval
+else
+ unet_cv_optimization='-O3'
+fi;
+echo "$as_me:$LINENO: checking optimization level" >&5
+echo $ECHO_N "checking optimization level... $ECHO_C" >&6
+if test "${unet_cv_optimization+set}" = set; then
+ echo $ECHO_N "(cached) $ECHO_C" >&6
+else
+ unet_cv_optimization='-O3'
+fi
+echo "$as_me:$LINENO: result: $unet_cv_optimization" >&5
+echo "${ECHO_T}$unet_cv_optimization" >&6
+if test "x$unet_cv_optimization" = "xno" ; then
+ unet_cv_optimization=""
+fi
if test x"$CFLAGS" != x; then
- CFLAGS=`echo "$CFLAGS" | sed -e 's/-O2/-O3/'`
+ CFLAGS=`echo "$CFLAGS" | sed -e s/-O2/$unet_cv_optimization/`
fi
if test x"$CFLAGS" != x; then
CFLAGS=`echo "$CFLAGS" | sed -e 's/-pipe//g'`
----------------------- End of diff -----------------------