dnl
AC_PREREQ(2.57)
-AC_INIT(util-vserver, 0.30.205, enrico.scholz@informatik.tu-chemnitz.de)
+AC_INIT(util-vserver, 0.30.207, enrico.scholz@informatik.tu-chemnitz.de)
AC_CONFIG_SRCDIR([src/capchroot.c])
AC_CONFIG_HEADER([config.h])
ENSC_PATHPROG(IPTABLES, iptables)
ENSC_PATHPROG(MODPROBE, modprobe)
ENSC_PATHPROG(NAMEIF, nameif)
+ENSC_PATHPROG(NOHUP, nohup)
ENSC_PATHPROG(RMMOD, rmmod)
ENSC_PATHPROG(VCONFIG, vconfig,, [See http://www.candelatech.com/~greear/vlan.html; usually this tool is shipped in the 'vconfig' or 'vlan' package of your distribution])
ENSC_PATHPROG(WGET, wget)
ENSC_CHECK_CC_FLAG([-std=c99 -Wall -pedantic -W])
ENSC_CHECK_CXX_FLAG([-ansi -Wall -pedantic -W -fmessage-length=0])
-ENSC_FPIC_SYSCALL
+AC_MSG_CHECKING([whether to enable extra optimizations])
+AC_ARG_ENABLE([extra-optimizations],
+ [AC_HELP_STRING([--disable-extra-optimizations],
+ [disable certain extra optimizations (default: no)])],
+ [case "$enableval" in
+ (yes) use_extra_optimizations=1;;
+ (no) use_extra_optimizations=;;
+ (*) AC_MSG_ERROR(['$enableval' is not a valid value for '--disable-extra-optimizations']);;
+ esac],
+ [use_extra_optimizations=1])
+if test x"$use_extra_optimizations" = x; then
+ AC_MSG_RESULT(no)
+else
+ AC_MSG_RESULT(yes)
+ ENSC_CHECK_CC_FLAG([-funit-at-a-time])
+ ENSC_CHECK_CXX_FLAG([-funit-at-a-time])
+fi
AC_MSG_CHECKING([whether to enable debug-code in library])
AC_ARG_ENABLE([lib-debug],
[AC_HELP_STRING([--enable-lib-debug],
[enable additional debug code in library (default: no)])],
[case "$enableval" in
- yes) use_lib_debug=1;;
- no) use_lib_debug=;;
- *) AC_MSG_ERROR(['$enableval' is not a valid value for '--enable-lib-debug']);;
+ (yes) use_lib_debug=1;;
+ (no) use_lib_debug=;;
+ (*) AC_MSG_ERROR(['$enableval' is not a valid value for '--enable-lib-debug']);;
esac],
[ use_lib_debug= ])
dnl
dnl {some dietlibc related tests
dnl
-ENSC_ENABLE_DIETLIBC(USE_DIETLIBC, [0.25])
+
+case $host_cpu in
+ (i*86|athlon) min_diet_ver=0.25;;
+ (ia64|hppa*) min_diet_ver=0.29;;
+ (*) min_diet_ver=0.28;;
+esac
+
+ENSC_ENABLE_DIETLIBC(USE_DIETLIBC, [$min_diet_ver])
if test x"$ensc_have_dietlibc" = xno; then
AC_MSG_WARN([*** ***])