diff -Nur modutils-2.4.26/ChangeLog modutils-2.4.27/ChangeLog --- modutils-2.4.26/ChangeLog 2003-10-28 22:20:46.000000000 +1100 +++ modutils-2.4.27/ChangeLog 2004-03-07 19:47:20.000000000 +1100 @@ -1,3 +1,16 @@ +2004-03-07 Keith Owens + + modutils 2.4.27 + + * Ambiguous or invalid backslash in insmod.8. Eric S. Raymond. + * Move alias loop check higher up. Sergey Vlasov. + * Correct alias for pg, it is a char, not block device. Sergey Vlasov. + * obj-arm plt/got bugfix. Thomas Fleischmann. + * Only default to combined i386 if the user has x86_64 ELF headers. + * Update INSTALL and README. + * Reorder configure.in to move tests that require gcc to after gcc is + defined. + 2003-10-28 Keith Owens modutils 2.4.26 diff -Nur modutils-2.4.26/configure modutils-2.4.27/configure --- modutils-2.4.26/configure 2003-10-28 13:10:19.000000000 +1100 +++ modutils-2.4.27/configure 2004-03-07 19:47:20.000000000 +1100 @@ -272,7 +272,7 @@ ac_unique_file="insmod/insmod.c" ac_default_prefix=/usr -ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os COMBINE_rmmod COMBINE_modprobe COMBINE_lsmod COMBINE_ksyms COMBINE_kallsyms COMPAT_2_0 kerneld_SUBDIR insmod_static COMMON_sparc COMMON_hppa COMMON_ppc COMMON_s390 COMMON_i386 ARCH STRIP CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT USE_SYSCALL RANLIB ac_ct_RANLIB LN_S INSTALL_LOCAL BUILDCC BUILDCFLAGS AR PARSERCFLAGS MKDIR TAINT_URL HAVE_WORDEXP HAVE_GLOB ZLIB ZLIB_STATIC LIBOBJS LTLIBOBJS' +ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT RANLIB ac_ct_RANLIB LN_S INSTALL_LOCAL BUILDCC BUILDCFLAGS AR PARSERCFLAGS MKDIR TAINT_URL HAVE_WORDEXP HAVE_GLOB COMBINE_rmmod COMBINE_modprobe COMBINE_lsmod COMBINE_ksyms COMBINE_kallsyms COMPAT_2_0 kerneld_SUBDIR insmod_static COMMON_sparc COMMON_hppa COMMON_ppc COMMON_s390 COMMON_i386 ARCH STRIP USE_SYSCALL ZLIB ZLIB_STATIC LIBOBJS LTLIBOBJS' ac_subst_files='' # Initialize some variables set by options. @@ -836,8 +836,9 @@ modules (default on s390 is yes, default on other architectures is no) --enable-common-i386 Make one executable handle 32 and 64 bit kernel - modules (default on i386 is yes, default on other - architectures is no) + modules (default on i386 with R_X86_64_NONE + defined is yes, default on other architectures is + no) --enable-strip Strip binaries during install. Default is no on IA64 (ski does not like stripped binaries), yes on other architectures @@ -1408,247 +1409,11 @@ *) ARCH=$host_cpu ;; esac -for i in rmmod modprobe lsmod ksyms kallsyms -do eval COMBINE_$i=$i -done -# Check whether --enable-combined or --disable-combined was given. -if test "${enable_combined+set}" = set; then - enableval="$enable_combined" - if test "$enableval" = "no"; then - for i in rmmod modprobe lsmod ksyms kallsyms - do eval COMBINE_$i="" - done -fi -fi; - -# Check whether --enable-combined-rmmod or --disable-combined-rmmod was given. -if test "${enable_combined_rmmod+set}" = set; then - enableval="$enable_combined_rmmod" - if test "$enableval" = "yes"; then - COMBINE_rmmod=rmmod - else - COMBINE_rmmod="" -fi -fi; - - -# Check whether --enable-combined-modprobe or --disable-combined-modprobe was given. -if test "${enable_combined_modprobe+set}" = set; then - enableval="$enable_combined_modprobe" - if test "$enableval" = "yes"; then - COMBINE_modprobe=modprobe - else - COMBINE_modprobe="" -fi -fi; - - -# Check whether --enable-combined-lsmod or --disable-combined-lsmod was given. -if test "${enable_combined_lsmod+set}" = set; then - enableval="$enable_combined_lsmod" - if test "$enableval" = "yes"; then - COMBINE_lsmod=lsmod - else - COMBINE_lsmod="" -fi -fi; - - -# Check whether --enable-combined-ksyms or --disable-combined-ksyms was given. -if test "${enable_combined_ksyms+set}" = set; then - enableval="$enable_combined_ksyms" - if test "$enableval" = "yes"; then - COMBINE_ksyms=ksyms - else - COMBINE_ksyms="" -fi -fi; - - -# Check whether --enable-combined-kallsyms or --disable-combined-kallsyms was given. -if test "${enable_combined_kallsyms+set}" = set; then - enableval="$enable_combined_kallsyms" - if test "$enableval" = "yes"; then - COMBINE_kallsyms=kallsyms - else - COMBINE_kallsyms="" -fi -fi; - - -# Check whether --enable-compat-2-0 or --disable-compat-2-0 was given. -if test "${enable_compat_2_0+set}" = set; then - enableval="$enable_compat_2_0" - if test "$enableval" = "yes"; then - cat >>confdefs.h <<\_ACEOF -#define COMPAT_2_0 1 -_ACEOF - - COMPAT_2_0="y" -else - COMPAT_2_0="n" -fi -else - COMPAT_2_0="n" -fi; - - -# Check whether --enable-kerneld or --disable-kerneld was given. -if test "${enable_kerneld+set}" = set; then - enableval="$enable_kerneld" - if test "$enableval" = "yes"; then - kerneld_SUBDIR=kerneld - kerneld_Makefiles="kerneld/Makefile man_kerneld/Makefile" -fi -fi; - - -# Check whether --enable-insmod-static or --disable-insmod-static was given. -if test "${enable_insmod_static+set}" = set; then - enableval="$enable_insmod_static" - if test "$enableval" = "yes"; then - insmod_static=yes -else - insmod_static=no -fi -else - insmod_static=no -fi; - - -COMMON_sparc=yes -# Check whether --enable-common-sparc or --disable-common-sparc was given. -if test "${enable_common_sparc+set}" = set; then - enableval="$enable_common_sparc" - if test "$enableval" = "yes"; then - COMMON_sparc=yes - else - COMMON_sparc=no -fi -fi; -case "$ARCH" in - sparc64) if test "$COMMON_sparc" = "yes"; then ARCH="sparc"; fi ;; - sparc*) ;; - *) COMMON_sparc=no ;; -esac - - -COMMON_hppa=yes -# Check whether --enable-common-hppa or --disable-common-hppa was given. -if test "${enable_common_hppa+set}" = set; then - enableval="$enable_common_hppa" - if test "$enableval" = "yes"; then - COMMON_hppa=yes - else - COMMON_hppa=no -fi -fi; -case "$ARCH" in - hppa64) if test "$COMMON_hppa" = "yes"; then ARCH="hppa"; fi ;; - hppa*) ;; - *) COMMON_hppa=no ;; -esac - - -COMMON_ppc=yes -# Check whether --enable-common-ppc or --disable-common-ppc was given. -if test "${enable_common_ppc+set}" = set; then - enableval="$enable_common_ppc" - if test "$enableval" = "yes"; then - COMMON_ppc=yes - else - COMMON_ppc=no -fi -fi; -case "$ARCH" in - ppc64) if test "$COMMON_ppc" = "yes"; then ARCH="ppc"; fi ;; - ppc*) ;; - *) COMMON_ppc=no ;; -esac - - -COMMON_s390=yes -# Check whether --enable-common-s390 or --disable-common-s390 was given. -if test "${enable_common_s390+set}" = set; then - enableval="$enable_common_s390" - if test "$enableval" = "yes"; then - COMMON_s390=yes - else - COMMON_s390=no -fi -fi; -case "$ARCH" in - s390x) if test "$COMMON_s390" = "yes"; then ARCH="s390"; fi ;; - s390*) ;; - *) COMMON_s390=no ;; -esac - - -COMMON_i386=yes -# Check whether --enable-common-i386 or --disable-common-i386 was given. -if test "${enable_common_i386+set}" = set; then - enableval="$enable_common_i386" - if test "$enableval" = "yes"; then - COMMON_i386=yes - else - COMMON_i386=no -fi -fi; -case "$ARCH" in - x86_64) if test "$COMMON_i386" = "yes"; then ARCH="i386"; fi ;; - i386*) ;; - *) COMMON_i386=no ;; -esac - - - - -case "$ARCH" in - ia64) DEFAULT_STRIP=;; - *) DEFAULT_STRIP=-s ;; -esac -# Check whether --enable-strip or --disable-strip was given. -if test "${enable_strip+set}" = set; then - enableval="$enable_strip" - if test "$enableval" = "yes"; then - STRIP=-s -else - STRIP= -fi -else - STRIP=$DEFAULT_STRIP -fi; - - -# If zlib is required, libz must be linked static, insmod is in /sbin, libz is -# in /usr/lib and may not be available when insmod is run. But if insmod is -# all static then we cannot use -Bdynamic at all, it confuses ld. -# Check whether --enable-zlib or --disable-zlib was given. -if test "${enable_zlib+set}" = set; then - enableval="$enable_zlib" - if test "$enableval" = "yes"; then - cat >>confdefs.h <<\_ACEOF -#define CONFIG_USE_ZLIB 1 -_ACEOF - - ZLIB="-lz" -fi -fi; - -# Check whether --with-dynamic-zlib or --without-dynamic-zlib was given. -if test "${with_dynamic_zlib+set}" = set; then - withval="$with_dynamic_zlib" - -else - with_dynamic_zlib=no -fi; -if test "$with_dynamic_zlib" = "yes"; then - ZLIB_STATIC="$ZLIB" -else - ZLIB_STATIC="-Wl,-Bstatic $ZLIB -Wl,-Bdynamic" +# If the user did not specify CFLAGS, use suitable values for modutils +if test "$CFLAGS" = ""; then + CFLAGS="-O2 -Wall" fi -# Default for use-syscall depends on the presence of query_module in libc. ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' @@ -2517,127 +2282,16 @@ ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu - -echo "$as_me:$LINENO: checking for query_module in -lc" >&5 -echo $ECHO_N "checking for query_module in -lc... $ECHO_C" >&6 -if test "${ac_cv_lib_c_query_module+set}" = set; then +if test -n "$ac_tool_prefix"; then + # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. +set dummy ${ac_tool_prefix}ranlib; ac_word=$2 +echo "$as_me:$LINENO: checking for $ac_word" >&5 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 +if test "${ac_cv_prog_RANLIB+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else - ac_check_lib_save_LIBS=$LIBS -LIBS="-lc $LIBS" -cat >conftest.$ac_ext <<_ACEOF -#line $LINENO "configure" -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ - -/* Override any gcc2 internal prototype to avoid an error. */ -#ifdef __cplusplus -extern "C" -#endif -/* We use char because int might match the return type of a gcc2 - builtin and then its argument prototype would still apply. */ -char query_module (); -int -main () -{ -query_module (); - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext conftest$ac_exeext -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 - (eval $ac_link) 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && - { ac_try='test -s conftest$ac_exeext' - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 - (eval $ac_try) 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); }; }; then - ac_cv_lib_c_query_module=yes -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - -ac_cv_lib_c_query_module=no -fi -rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext -LIBS=$ac_check_lib_save_LIBS -fi -echo "$as_me:$LINENO: result: $ac_cv_lib_c_query_module" >&5 -echo "${ECHO_T}$ac_cv_lib_c_query_module" >&6 -if test $ac_cv_lib_c_query_module = yes; then - default_syscall=n -else - default_syscall=y -fi - -# Check whether --enable-use-syscall or --disable-use-syscall was given. -if test "${enable_use_syscall+set}" = set; then - enableval="$enable_use_syscall" - if test "$enableval" = "yes"; then - USE_SYSCALL="y" -else - USE_SYSCALL="n" -fi -else - USE_SYSCALL="$default_syscall" -fi; -if test "$USE_SYSCALL" = "y"; then - cat >>confdefs.h <<\_ACEOF -#define CONFIG_USE_SYSCALL 1 -_ACEOF - -fi - - -# Check whether --enable-root-check or --disable-root-check was given. -if test "${enable_root_check+set}" = set; then - enableval="$enable_root_check" - if test "$enableval" = "yes"; then - cat >>confdefs.h <<\_ACEOF -#define CONFIG_ROOT_CHECK_OFF 0 -_ACEOF - -else - cat >>confdefs.h <<\_ACEOF -#define CONFIG_ROOT_CHECK_OFF 1 -_ACEOF - -fi -else - cat >>confdefs.h <<\_ACEOF -#define CONFIG_ROOT_CHECK_OFF 0 -_ACEOF - -fi; - -# If the user did not specify CFLAGS, use suitable values for modutils -if test "$CFLAGS" = ""; then - CFLAGS="-O2 -Wall" -fi - -ac_ext=c -ac_cpp='$CPP $CPPFLAGS' -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' -ac_compiler_gnu=$ac_cv_c_compiler_gnu -if test -n "$ac_tool_prefix"; then - # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. -set dummy ${ac_tool_prefix}gcc; ac_word=$2 -echo "$as_me:$LINENO: checking for $ac_word" >&5 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 -if test "${ac_cv_prog_CC+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - if test -n "$CC"; then - ac_cv_prog_CC="$CC" # Let the user override the test. + if test -n "$RANLIB"; then + ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH @@ -2646,7 +2300,7 @@ test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then - ac_cv_prog_CC="${ac_tool_prefix}gcc" + ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi @@ -2655,27 +2309,27 @@ fi fi -CC=$ac_cv_prog_CC -if test -n "$CC"; then - echo "$as_me:$LINENO: result: $CC" >&5 -echo "${ECHO_T}$CC" >&6 +RANLIB=$ac_cv_prog_RANLIB +if test -n "$RANLIB"; then + echo "$as_me:$LINENO: result: $RANLIB" >&5 +echo "${ECHO_T}$RANLIB" >&6 else echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6 fi fi -if test -z "$ac_cv_prog_CC"; then - ac_ct_CC=$CC - # Extract the first word of "gcc", so it can be a program name with args. -set dummy gcc; ac_word=$2 +if test -z "$ac_cv_prog_RANLIB"; then + ac_ct_RANLIB=$RANLIB + # Extract the first word of "ranlib", so it can be a program name with args. +set dummy ranlib; ac_word=$2 echo "$as_me:$LINENO: checking for $ac_word" >&5 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 -if test "${ac_cv_prog_ac_ct_CC+set}" = set; then +if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else - if test -n "$ac_ct_CC"; then - ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. + if test -n "$ac_ct_RANLIB"; then + ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH @@ -2684,518 +2338,185 @@ test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then - ac_cv_prog_ac_ct_CC="gcc" + ac_cv_prog_ac_ct_RANLIB="ranlib" echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done + test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":" fi fi -ac_ct_CC=$ac_cv_prog_ac_ct_CC -if test -n "$ac_ct_CC"; then - echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 -echo "${ECHO_T}$ac_ct_CC" >&6 +ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB +if test -n "$ac_ct_RANLIB"; then + echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 +echo "${ECHO_T}$ac_ct_RANLIB" >&6 else echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6 fi - CC=$ac_ct_CC + RANLIB=$ac_ct_RANLIB else - CC="$ac_cv_prog_CC" + RANLIB="$ac_cv_prog_RANLIB" fi -if test -z "$CC"; then - if test -n "$ac_tool_prefix"; then - # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. -set dummy ${ac_tool_prefix}cc; ac_word=$2 -echo "$as_me:$LINENO: checking for $ac_word" >&5 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 -if test "${ac_cv_prog_CC+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 +echo "$as_me:$LINENO: checking whether ln -s works" >&5 +echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6 +LN_S=$as_ln_s +if test "$LN_S" = "ln -s"; then + echo "$as_me:$LINENO: result: yes" >&5 +echo "${ECHO_T}yes" >&6 else - if test -n "$CC"; then - ac_cv_prog_CC="$CC" # Let the user override the test. + echo "$as_me:$LINENO: result: no, using $LN_S" >&5 +echo "${ECHO_T}no, using $LN_S" >&6 +fi + + +# AC_PROG_INSTALL is unsuitable for cross compilation. It generates a +# hard coded pathname for INSTALL. Even if we set our own value for +# INSTALL, acgeneral insists on preceding a relative INSTALL with +# "../". Easiest solution is to use another variable inside autoconf +# and not use AC_PROG_INSTALL. +# +if test -z "$INSTALL"; then + INSTALL_LOCAL=install else -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do - if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then - ac_cv_prog_CC="${ac_tool_prefix}cc" - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 + INSTALL_LOCAL="$INSTALL" +fi + + +# If the user did not specify BUILDCC, use CC. +if test -z "$BUILDCC"; then + BUILDCC=$CC +fi + + +# If the user did not specify BUILDCFLAGS, use CFLAGS +# HOSTCFLAGS are checked for compatibility. +if test -z "$BUILDCFLAGS"; then + if test -z "$HOSTCFLAGS"; then + BUILDCFLAGS=$CFLAGS + else + BUILDCFLAGS=$HOSTCFLAGS fi -done -done +fi + +# If the user did not specify AR, use ar +if test -z "$AR"; then + AR=ar fi + + +# If the user did not specify PARSECFLAGS, use -Wno-uninitialized. +# Yacc and Lex generated programs raise comments about uninitialized +# variables when -Wall is used so turn this warning off for the parse +# programs. +if test "$PARSERCFLAGS" = ""; then + PARSERCFLAGS=-Wno-uninitialized fi -CC=$ac_cv_prog_CC -if test -n "$CC"; then - echo "$as_me:$LINENO: result: $CC" >&5 -echo "${ECHO_T}$CC" >&6 -else - echo "$as_me:$LINENO: result: no" >&5 -echo "${ECHO_T}no" >&6 + + +# If the user did not specify MKDIR, use mkdir -p. +if test "$MKDIR" = ""; then + MKDIR="mkdir -p" fi + +# If the user did not specify TAINT_URL, use http://www.tux.org/lkml/#export-tainted. +if test "$TAINT_URL" = ""; then + TAINT_URL="http://www.tux.org/lkml/\#export-tainted" fi -if test -z "$ac_cv_prog_CC"; then - ac_ct_CC=$CC - # Extract the first word of "cc", so it can be a program name with args. -set dummy cc; ac_word=$2 -echo "$as_me:$LINENO: checking for $ac_word" >&5 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 -if test "${ac_cv_prog_ac_ct_CC+set}" = set; then + + + +echo "$as_me:$LINENO: checking for wordexp" >&5 +echo $ECHO_N "checking for wordexp... $ECHO_C" >&6 +if test "${ac_cv_func_wordexp+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else - if test -n "$ac_ct_CC"; then - ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. -else -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do - if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then - ac_cv_prog_ac_ct_CC="cc" - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi -done -done - -fi -fi -ac_ct_CC=$ac_cv_prog_ac_ct_CC -if test -n "$ac_ct_CC"; then - echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 -echo "${ECHO_T}$ac_ct_CC" >&6 -else - echo "$as_me:$LINENO: result: no" >&5 -echo "${ECHO_T}no" >&6 -fi - - CC=$ac_ct_CC -else - CC="$ac_cv_prog_CC" -fi - -fi -if test -z "$CC"; then - # Extract the first word of "cc", so it can be a program name with args. -set dummy cc; ac_word=$2 -echo "$as_me:$LINENO: checking for $ac_word" >&5 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 -if test "${ac_cv_prog_CC+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - if test -n "$CC"; then - ac_cv_prog_CC="$CC" # Let the user override the test. -else - ac_prog_rejected=no -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do - if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then - if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then - ac_prog_rejected=yes - continue - fi - ac_cv_prog_CC="cc" - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi -done -done - -if test $ac_prog_rejected = yes; then - # We found a bogon in the path, so make sure we never use it. - set dummy $ac_cv_prog_CC - shift - if test $# != 0; then - # We chose a different compiler from the bogus one. - # However, it has the same basename, so the bogon will be chosen - # first if we set CC to just the basename; use the full file name. - shift - ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" - fi -fi -fi -fi -CC=$ac_cv_prog_CC -if test -n "$CC"; then - echo "$as_me:$LINENO: result: $CC" >&5 -echo "${ECHO_T}$CC" >&6 -else - echo "$as_me:$LINENO: result: no" >&5 -echo "${ECHO_T}no" >&6 -fi - -fi -if test -z "$CC"; then - if test -n "$ac_tool_prefix"; then - for ac_prog in cl - do - # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. -set dummy $ac_tool_prefix$ac_prog; ac_word=$2 -echo "$as_me:$LINENO: checking for $ac_word" >&5 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 -if test "${ac_cv_prog_CC+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - if test -n "$CC"; then - ac_cv_prog_CC="$CC" # Let the user override the test. -else -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do - if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then - ac_cv_prog_CC="$ac_tool_prefix$ac_prog" - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi -done -done - -fi -fi -CC=$ac_cv_prog_CC -if test -n "$CC"; then - echo "$as_me:$LINENO: result: $CC" >&5 -echo "${ECHO_T}$CC" >&6 -else - echo "$as_me:$LINENO: result: no" >&5 -echo "${ECHO_T}no" >&6 -fi - - test -n "$CC" && break - done -fi -if test -z "$CC"; then - ac_ct_CC=$CC - for ac_prog in cl -do - # Extract the first word of "$ac_prog", so it can be a program name with args. -set dummy $ac_prog; ac_word=$2 -echo "$as_me:$LINENO: checking for $ac_word" >&5 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 -if test "${ac_cv_prog_ac_ct_CC+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - if test -n "$ac_ct_CC"; then - ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. -else -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do - if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then - ac_cv_prog_ac_ct_CC="$ac_prog" - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi -done -done - -fi -fi -ac_ct_CC=$ac_cv_prog_ac_ct_CC -if test -n "$ac_ct_CC"; then - echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 -echo "${ECHO_T}$ac_ct_CC" >&6 -else - echo "$as_me:$LINENO: result: no" >&5 -echo "${ECHO_T}no" >&6 -fi - - test -n "$ac_ct_CC" && break -done - - CC=$ac_ct_CC -fi - -fi - - -test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH -See \`config.log' for more details." >&5 -echo "$as_me: error: no acceptable C compiler found in \$PATH -See \`config.log' for more details." >&2;} - { (exit 1); exit 1; }; } - -# Provide some information about the compiler. -echo "$as_me:$LINENO:" \ - "checking for C compiler version" >&5 -ac_compiler=`set X $ac_compile; echo $2` -{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version &5\"") >&5 - (eval $ac_compiler --version &5) 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } -{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v &5\"") >&5 - (eval $ac_compiler -v &5) 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } -{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V &5\"") >&5 - (eval $ac_compiler -V &5) 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } - -echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 -echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 -if test "${ac_cv_c_compiler_gnu+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - cat >conftest.$ac_ext <<_ACEOF -#line $LINENO "configure" -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ - -int -main () -{ -#ifndef __GNUC__ - choke me -#endif - - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 - (eval $ac_compile) 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && - { ac_try='test -s conftest.$ac_objext' - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 - (eval $ac_try) 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); }; }; then - ac_compiler_gnu=yes -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - -ac_compiler_gnu=no -fi -rm -f conftest.$ac_objext conftest.$ac_ext -ac_cv_c_compiler_gnu=$ac_compiler_gnu - -fi -echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 -echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 -GCC=`test $ac_compiler_gnu = yes && echo yes` -ac_test_CFLAGS=${CFLAGS+set} -ac_save_CFLAGS=$CFLAGS -CFLAGS="-g" -echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 -echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 -if test "${ac_cv_prog_cc_g+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - cat >conftest.$ac_ext <<_ACEOF -#line $LINENO "configure" -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ - -int -main () -{ - - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 - (eval $ac_compile) 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && - { ac_try='test -s conftest.$ac_objext' - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 - (eval $ac_try) 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); }; }; then - ac_cv_prog_cc_g=yes -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - -ac_cv_prog_cc_g=no -fi -rm -f conftest.$ac_objext conftest.$ac_ext -fi -echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 -echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 -if test "$ac_test_CFLAGS" = set; then - CFLAGS=$ac_save_CFLAGS -elif test $ac_cv_prog_cc_g = yes; then - if test "$GCC" = yes; then - CFLAGS="-g -O2" - else - CFLAGS="-g" - fi -else - if test "$GCC" = yes; then - CFLAGS="-O2" - else - CFLAGS= - fi -fi -echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5 -echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 -if test "${ac_cv_prog_cc_stdc+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - ac_cv_prog_cc_stdc=no -ac_save_CC=$CC -cat >conftest.$ac_ext <<_ACEOF + cat >conftest.$ac_ext <<_ACEOF #line $LINENO "configure" /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ -#include -#include -#include -#include -/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ -struct buf { int x; }; -FILE * (*rcsopen) (struct buf *, struct stat *, int); -static char *e (p, i) - char **p; - int i; -{ - return p[i]; -} -static char *f (char * (*g) (char **, int), char **p, ...) +/* System header to define __stub macros and hopefully few prototypes, + which can conflict with char wordexp (); below. + Prefer to if __STDC__ is defined, since + exists even on freestanding compilers. */ +#ifdef __STDC__ +# include +#else +# include +#endif +/* Override any gcc2 internal prototype to avoid an error. */ +#ifdef __cplusplus +extern "C" { - char *s; - va_list v; - va_start (v,p); - s = g (p, va_arg (v,int)); - va_end (v); - return s; +#endif +/* We use char because int might match the return type of a gcc2 + builtin and then its argument prototype would still apply. */ +char wordexp (); +/* The GNU C library defines this for functions which it implements + to always fail with ENOSYS. Some functions are actually named + something starting with __ and the normal name is an alias. */ +#if defined (__stub_wordexp) || defined (__stub___wordexp) +choke me +#else +char (*f) () = wordexp; +#endif +#ifdef __cplusplus } -int test (int i, double x); -struct s1 {int (*f) (int a);}; -struct s2 {int (*f) (double a);}; -int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); -int argc; -char **argv; +#endif + int main () { -return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; +return f != wordexp; ; return 0; } _ACEOF -# Don't try gcc -ansi; that turns off useful extensions and -# breaks some systems' header files. -# AIX -qlanglvl=ansi -# Ultrix and OSF/1 -std1 -# HP-UX 10.20 and later -Ae -# HP-UX older versions -Aa -D_HPUX_SOURCE -# SVR4 -Xc -D__EXTENSIONS__ -for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" -do - CC="$ac_save_CC $ac_arg" - rm -f conftest.$ac_objext -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 - (eval $ac_compile) 2>&5 +rm -f conftest.$ac_objext conftest$ac_exeext +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 + (eval $ac_link) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && - { ac_try='test -s conftest.$ac_objext' + { ac_try='test -s conftest$ac_exeext' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then - ac_cv_prog_cc_stdc=$ac_arg -break + ac_cv_func_wordexp=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 +ac_cv_func_wordexp=no fi -rm -f conftest.$ac_objext -done -rm -f conftest.$ac_ext conftest.$ac_objext -CC=$ac_save_CC - +rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext +fi +echo "$as_me:$LINENO: result: $ac_cv_func_wordexp" >&5 +echo "${ECHO_T}$ac_cv_func_wordexp" >&6 +if test $ac_cv_func_wordexp = yes; then + HAVE_WORDEXP="-DHAVE_WORDEXP=1" +else + HAVE_WORDEXP="" fi -case "x$ac_cv_prog_cc_stdc" in - x|xno) - echo "$as_me:$LINENO: result: none needed" >&5 -echo "${ECHO_T}none needed" >&6 ;; - *) - echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5 -echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 - CC="$CC $ac_cv_prog_cc_stdc" ;; -esac -# Some people use a C++ compiler to compile C. Since we use `exit', -# in C++ we need to declare it. In case someone uses the same compiler -# for both compiling C and C++ we need to have the C++ compiler decide -# the declaration of exit, since it's the most demanding environment. -cat >conftest.$ac_ext <<_ACEOF -#ifndef __cplusplus - choke me -#endif -_ACEOF -rm -f conftest.$ac_objext -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 - (eval $ac_compile) 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && - { ac_try='test -s conftest.$ac_objext' - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 - (eval $ac_try) 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); }; }; then - for ac_declaration in \ - ''\ - '#include ' \ - 'extern "C" void std::exit (int) throw (); using std::exit;' \ - 'extern "C" void std::exit (int); using std::exit;' \ - 'extern "C" void exit (int) throw ();' \ - 'extern "C" void exit (int);' \ - 'void exit (int);' -do + +echo "$as_me:$LINENO: checking for glob" >&5 +echo $ECHO_N "checking for glob... $ECHO_C" >&6 +if test "${ac_cv_func_glob+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else cat >conftest.$ac_ext <<_ACEOF #line $LINENO "configure" /* confdefs.h. */ @@ -3203,243 +2524,254 @@ cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ -#include -$ac_declaration -int -main () +/* System header to define __stub macros and hopefully few prototypes, + which can conflict with char glob (); below. + Prefer to if __STDC__ is defined, since + exists even on freestanding compilers. */ +#ifdef __STDC__ +# include +#else +# include +#endif +/* Override any gcc2 internal prototype to avoid an error. */ +#ifdef __cplusplus +extern "C" { -exit (42); - ; - return 0; +#endif +/* We use char because int might match the return type of a gcc2 + builtin and then its argument prototype would still apply. */ +char glob (); +/* The GNU C library defines this for functions which it implements + to always fail with ENOSYS. Some functions are actually named + something starting with __ and the normal name is an alias. */ +#if defined (__stub_glob) || defined (__stub___glob) +choke me +#else +char (*f) () = glob; +#endif +#ifdef __cplusplus } -_ACEOF -rm -f conftest.$ac_objext -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 - (eval $ac_compile) 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && - { ac_try='test -s conftest.$ac_objext' - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 - (eval $ac_try) 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); }; }; then - : -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 +#endif -continue -fi -rm -f conftest.$ac_objext conftest.$ac_ext - cat >conftest.$ac_ext <<_ACEOF -#line $LINENO "configure" -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -$ac_declaration int main () { -exit (42); +return f != glob; ; return 0; -} -_ACEOF -rm -f conftest.$ac_objext -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 - (eval $ac_compile) 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && - { ac_try='test -s conftest.$ac_objext' - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 - (eval $ac_try) 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); }; }; then - break -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - -fi -rm -f conftest.$ac_objext conftest.$ac_ext -done -rm -f conftest* -if test -n "$ac_declaration"; then - echo '#ifdef __cplusplus' >>confdefs.h - echo $ac_declaration >>confdefs.h - echo '#endif' >>confdefs.h -fi - -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - -fi -rm -f conftest.$ac_objext conftest.$ac_ext -ac_ext=c -ac_cpp='$CPP $CPPFLAGS' -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' -ac_compiler_gnu=$ac_cv_c_compiler_gnu - -if test -n "$ac_tool_prefix"; then - # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. -set dummy ${ac_tool_prefix}ranlib; ac_word=$2 -echo "$as_me:$LINENO: checking for $ac_word" >&5 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 -if test "${ac_cv_prog_RANLIB+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - if test -n "$RANLIB"; then - ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. +} +_ACEOF +rm -f conftest.$ac_objext conftest$ac_exeext +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 + (eval $ac_link) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } && + { ac_try='test -s conftest$ac_exeext' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; }; then + ac_cv_func_glob=yes else -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do - if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then - ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi -done -done + echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 +ac_cv_func_glob=no fi +rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext fi -RANLIB=$ac_cv_prog_RANLIB -if test -n "$RANLIB"; then - echo "$as_me:$LINENO: result: $RANLIB" >&5 -echo "${ECHO_T}$RANLIB" >&6 +echo "$as_me:$LINENO: result: $ac_cv_func_glob" >&5 +echo "${ECHO_T}$ac_cv_func_glob" >&6 +if test $ac_cv_func_glob = yes; then + HAVE_GLOB="-DHAVE_GLOB=1" else - echo "$as_me:$LINENO: result: no" >&5 -echo "${ECHO_T}no" >&6 + HAVE_GLOB="" fi -fi -if test -z "$ac_cv_prog_RANLIB"; then - ac_ct_RANLIB=$RANLIB - # Extract the first word of "ranlib", so it can be a program name with args. -set dummy ranlib; ac_word=$2 -echo "$as_me:$LINENO: checking for $ac_word" >&5 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 -if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - if test -n "$ac_ct_RANLIB"; then - ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. -else -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do - if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then - ac_cv_prog_ac_ct_RANLIB="ranlib" - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi -done -done - test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":" + +for i in rmmod modprobe lsmod ksyms kallsyms +do eval COMBINE_$i=$i +done +# Check whether --enable-combined or --disable-combined was given. +if test "${enable_combined+set}" = set; then + enableval="$enable_combined" + if test "$enableval" = "no"; then + for i in rmmod modprobe lsmod ksyms kallsyms + do eval COMBINE_$i="" + done fi +fi; + +# Check whether --enable-combined-rmmod or --disable-combined-rmmod was given. +if test "${enable_combined_rmmod+set}" = set; then + enableval="$enable_combined_rmmod" + if test "$enableval" = "yes"; then + COMBINE_rmmod=rmmod + else + COMBINE_rmmod="" fi -ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB -if test -n "$ac_ct_RANLIB"; then - echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 -echo "${ECHO_T}$ac_ct_RANLIB" >&6 -else - echo "$as_me:$LINENO: result: no" >&5 -echo "${ECHO_T}no" >&6 +fi; + + +# Check whether --enable-combined-modprobe or --disable-combined-modprobe was given. +if test "${enable_combined_modprobe+set}" = set; then + enableval="$enable_combined_modprobe" + if test "$enableval" = "yes"; then + COMBINE_modprobe=modprobe + else + COMBINE_modprobe="" fi +fi; - RANLIB=$ac_ct_RANLIB -else - RANLIB="$ac_cv_prog_RANLIB" + +# Check whether --enable-combined-lsmod or --disable-combined-lsmod was given. +if test "${enable_combined_lsmod+set}" = set; then + enableval="$enable_combined_lsmod" + if test "$enableval" = "yes"; then + COMBINE_lsmod=lsmod + else + COMBINE_lsmod="" fi +fi; -echo "$as_me:$LINENO: checking whether ln -s works" >&5 -echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6 -LN_S=$as_ln_s -if test "$LN_S" = "ln -s"; then - echo "$as_me:$LINENO: result: yes" >&5 -echo "${ECHO_T}yes" >&6 -else - echo "$as_me:$LINENO: result: no, using $LN_S" >&5 -echo "${ECHO_T}no, using $LN_S" >&6 + +# Check whether --enable-combined-ksyms or --disable-combined-ksyms was given. +if test "${enable_combined_ksyms+set}" = set; then + enableval="$enable_combined_ksyms" + if test "$enableval" = "yes"; then + COMBINE_ksyms=ksyms + else + COMBINE_ksyms="" fi +fi; -# AC_PROG_INSTALL is unsuitable for cross compilation. It generates a -# hard coded pathname for INSTALL. Even if we set our own value for -# INSTALL, acgeneral insists on preceding a relative INSTALL with -# "../". Easiest solution is to use another variable inside autoconf -# and not use AC_PROG_INSTALL. -# -if test -z "$INSTALL"; then - INSTALL_LOCAL=install -else - INSTALL_LOCAL="$INSTALL" +# Check whether --enable-combined-kallsyms or --disable-combined-kallsyms was given. +if test "${enable_combined_kallsyms+set}" = set; then + enableval="$enable_combined_kallsyms" + if test "$enableval" = "yes"; then + COMBINE_kallsyms=kallsyms + else + COMBINE_kallsyms="" fi +fi; -# If the user did not specify BUILDCC, use CC. -if test -z "$BUILDCC"; then - BUILDCC=$CC +# Check whether --enable-compat-2-0 or --disable-compat-2-0 was given. +if test "${enable_compat_2_0+set}" = set; then + enableval="$enable_compat_2_0" + if test "$enableval" = "yes"; then + cat >>confdefs.h <<\_ACEOF +#define COMPAT_2_0 1 +_ACEOF + + COMPAT_2_0="y" +else + COMPAT_2_0="n" fi +else + COMPAT_2_0="n" +fi; -# If the user did not specify BUILDCFLAGS, use CFLAGS -# HOSTCFLAGS are checked for compatibility. -if test -z "$BUILDCFLAGS"; then - if test -z "$HOSTCFLAGS"; then - BUILDCFLAGS=$CFLAGS - else - BUILDCFLAGS=$HOSTCFLAGS - fi +# Check whether --enable-kerneld or --disable-kerneld was given. +if test "${enable_kerneld+set}" = set; then + enableval="$enable_kerneld" + if test "$enableval" = "yes"; then + kerneld_SUBDIR=kerneld + kerneld_Makefiles="kerneld/Makefile man_kerneld/Makefile" fi +fi; -# If the user did not specify AR, use ar -if test -z "$AR"; then - AR=ar +# Check whether --enable-insmod-static or --disable-insmod-static was given. +if test "${enable_insmod_static+set}" = set; then + enableval="$enable_insmod_static" + if test "$enableval" = "yes"; then + insmod_static=yes +else + insmod_static=no fi +else + insmod_static=no +fi; -# If the user did not specify PARSECFLAGS, use -Wno-uninitialized. -# Yacc and Lex generated programs raise comments about uninitialized -# variables when -Wall is used so turn this warning off for the parse -# programs. -if test "$PARSERCFLAGS" = ""; then - PARSERCFLAGS=-Wno-uninitialized +COMMON_sparc=yes +# Check whether --enable-common-sparc or --disable-common-sparc was given. +if test "${enable_common_sparc+set}" = set; then + enableval="$enable_common_sparc" + if test "$enableval" = "yes"; then + COMMON_sparc=yes + else + COMMON_sparc=no fi +fi; +case "$ARCH" in + sparc64) if test "$COMMON_sparc" = "yes"; then ARCH="sparc"; fi ;; + sparc*) ;; + *) COMMON_sparc=no ;; +esac -# If the user did not specify MKDIR, use mkdir -p. -if test "$MKDIR" = ""; then - MKDIR="mkdir -p" +COMMON_hppa=yes +# Check whether --enable-common-hppa or --disable-common-hppa was given. +if test "${enable_common_hppa+set}" = set; then + enableval="$enable_common_hppa" + if test "$enableval" = "yes"; then + COMMON_hppa=yes + else + COMMON_hppa=no fi +fi; +case "$ARCH" in + hppa64) if test "$COMMON_hppa" = "yes"; then ARCH="hppa"; fi ;; + hppa*) ;; + *) COMMON_hppa=no ;; +esac -# If the user did not specify TAINT_URL, use http://www.tux.org/lkml/#export-tainted. -if test "$TAINT_URL" = ""; then - TAINT_URL="http://www.tux.org/lkml/\#export-tainted" +COMMON_ppc=yes +# Check whether --enable-common-ppc or --disable-common-ppc was given. +if test "${enable_common_ppc+set}" = set; then + enableval="$enable_common_ppc" + if test "$enableval" = "yes"; then + COMMON_ppc=yes + else + COMMON_ppc=no +fi +fi; +case "$ARCH" in + ppc64) if test "$COMMON_ppc" = "yes"; then ARCH="ppc"; fi ;; + ppc*) ;; + *) COMMON_ppc=no ;; +esac + + +COMMON_s390=yes +# Check whether --enable-common-s390 or --disable-common-s390 was given. +if test "${enable_common_s390+set}" = set; then + enableval="$enable_common_s390" + if test "$enableval" = "yes"; then + COMMON_s390=yes + else + COMMON_s390=no fi +fi; +case "$ARCH" in + s390x) if test "$COMMON_s390" = "yes"; then ARCH="s390"; fi ;; + s390*) ;; + *) COMMON_s390=no ;; +esac -echo "$as_me:$LINENO: checking for wordexp" >&5 -echo $ECHO_N "checking for wordexp... $ECHO_C" >&6 -if test "${ac_cv_func_wordexp+set}" = set; then +case "$ARCH" in + x86_64|i386*) echo "$as_me:$LINENO: checking whether R_X86_64_NONE is declared" >&5 +echo $ECHO_N "checking whether R_X86_64_NONE is declared... $ECHO_C" >&6 +if test "${ac_cv_have_decl_R_X86_64_NONE+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else cat >conftest.$ac_ext <<_ACEOF @@ -3449,119 +2781,141 @@ cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ -/* System header to define __stub macros and hopefully few prototypes, - which can conflict with char wordexp (); below. - Prefer to if __STDC__ is defined, since - exists even on freestanding compilers. */ -#ifdef __STDC__ -# include -#else -# include -#endif -/* Override any gcc2 internal prototype to avoid an error. */ -#ifdef __cplusplus -extern "C" -{ -#endif -/* We use char because int might match the return type of a gcc2 - builtin and then its argument prototype would still apply. */ -char wordexp (); -/* The GNU C library defines this for functions which it implements - to always fail with ENOSYS. Some functions are actually named - something starting with __ and the normal name is an alias. */ -#if defined (__stub_wordexp) || defined (__stub___wordexp) -choke me -#else -char (*f) () = wordexp; -#endif -#ifdef __cplusplus -} -#endif +#include int main () { -return f != wordexp; +#ifndef R_X86_64_NONE + char *p = (char *) R_X86_64_NONE; +#endif + ; return 0; } _ACEOF -rm -f conftest.$ac_objext conftest$ac_exeext -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 - (eval $ac_link) 2>&5 +rm -f conftest.$ac_objext +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 + (eval $ac_compile) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && - { ac_try='test -s conftest$ac_exeext' + { ac_try='test -s conftest.$ac_objext' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then - ac_cv_func_wordexp=yes + ac_cv_have_decl_R_X86_64_NONE=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 -ac_cv_func_wordexp=no +ac_cv_have_decl_R_X86_64_NONE=no fi -rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext +rm -f conftest.$ac_objext conftest.$ac_ext fi -echo "$as_me:$LINENO: result: $ac_cv_func_wordexp" >&5 -echo "${ECHO_T}$ac_cv_func_wordexp" >&6 -if test $ac_cv_func_wordexp = yes; then - HAVE_WORDEXP="-DHAVE_WORDEXP=1" +echo "$as_me:$LINENO: result: $ac_cv_have_decl_R_X86_64_NONE" >&5 +echo "${ECHO_T}$ac_cv_have_decl_R_X86_64_NONE" >&6 +if test $ac_cv_have_decl_R_X86_64_NONE = yes; then + COMMON_i386=yes else - HAVE_WORDEXP="" + COMMON_i386=no +fi + + ;; + *) COMMON_i386=no ;; +esac +# Check whether --enable-common-i386 or --disable-common-i386 was given. +if test "${enable_common_i386+set}" = set; then + enableval="$enable_common_i386" + if test "$enableval" = "yes"; then + COMMON_i386=yes + else + COMMON_i386=no fi +fi; +case "$ARCH" in + x86_64) if test "$COMMON_i386" = "yes"; then ARCH="i386"; fi ;; + i386*) ;; + *) COMMON_i386=no ;; +esac -echo "$as_me:$LINENO: checking for glob" >&5 -echo $ECHO_N "checking for glob... $ECHO_C" >&6 -if test "${ac_cv_func_glob+set}" = set; then + +case "$ARCH" in + ia64) DEFAULT_STRIP=;; + *) DEFAULT_STRIP=-s ;; +esac +# Check whether --enable-strip or --disable-strip was given. +if test "${enable_strip+set}" = set; then + enableval="$enable_strip" + if test "$enableval" = "yes"; then + STRIP=-s +else + STRIP= +fi +else + STRIP=$DEFAULT_STRIP +fi; + + +# If zlib is required, libz must be linked static, insmod is in /sbin, libz is +# in /usr/lib and may not be available when insmod is run. But if insmod is +# all static then we cannot use -Bdynamic at all, it confuses ld. +# Check whether --enable-zlib or --disable-zlib was given. +if test "${enable_zlib+set}" = set; then + enableval="$enable_zlib" + if test "$enableval" = "yes"; then + cat >>confdefs.h <<\_ACEOF +#define CONFIG_USE_ZLIB 1 +_ACEOF + + ZLIB="-lz" +fi +fi; + +# Check whether --with-dynamic-zlib or --without-dynamic-zlib was given. +if test "${with_dynamic_zlib+set}" = set; then + withval="$with_dynamic_zlib" + +else + with_dynamic_zlib=no +fi; +if test "$with_dynamic_zlib" = "yes"; then + ZLIB_STATIC="$ZLIB" +else + ZLIB_STATIC="-Wl,-Bstatic $ZLIB -Wl,-Bdynamic" +fi + +# Default for use-syscall depends on the presence of query_module in libc. +echo "$as_me:$LINENO: checking for query_module in -lc" >&5 +echo $ECHO_N "checking for query_module in -lc... $ECHO_C" >&6 +if test "${ac_cv_lib_c_query_module+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else - cat >conftest.$ac_ext <<_ACEOF + ac_check_lib_save_LIBS=$LIBS +LIBS="-lc $LIBS" +cat >conftest.$ac_ext <<_ACEOF #line $LINENO "configure" /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ -/* System header to define __stub macros and hopefully few prototypes, - which can conflict with char glob (); below. - Prefer to if __STDC__ is defined, since - exists even on freestanding compilers. */ -#ifdef __STDC__ -# include -#else -# include -#endif + /* Override any gcc2 internal prototype to avoid an error. */ #ifdef __cplusplus extern "C" -{ #endif /* We use char because int might match the return type of a gcc2 builtin and then its argument prototype would still apply. */ -char glob (); -/* The GNU C library defines this for functions which it implements - to always fail with ENOSYS. Some functions are actually named - something starting with __ and the normal name is an alias. */ -#if defined (__stub_glob) || defined (__stub___glob) -choke me -#else -char (*f) () = glob; -#endif -#ifdef __cplusplus -} -#endif - +char query_module (); int main () { -return f != glob; +query_module (); ; return 0; } @@ -3578,30 +2932,69 @@ ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then - ac_cv_func_glob=yes + ac_cv_lib_c_query_module=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 -ac_cv_func_glob=no +ac_cv_lib_c_query_module=no fi rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS fi -echo "$as_me:$LINENO: result: $ac_cv_func_glob" >&5 -echo "${ECHO_T}$ac_cv_func_glob" >&6 -if test $ac_cv_func_glob = yes; then - HAVE_GLOB="-DHAVE_GLOB=1" +echo "$as_me:$LINENO: result: $ac_cv_lib_c_query_module" >&5 +echo "${ECHO_T}$ac_cv_lib_c_query_module" >&6 +if test $ac_cv_lib_c_query_module = yes; then + default_syscall=n else - HAVE_GLOB="" + default_syscall=y +fi + +# Check whether --enable-use-syscall or --disable-use-syscall was given. +if test "${enable_use_syscall+set}" = set; then + enableval="$enable_use_syscall" + if test "$enableval" = "yes"; then + USE_SYSCALL="y" +else + USE_SYSCALL="n" +fi +else + USE_SYSCALL="$default_syscall" +fi; +if test "$USE_SYSCALL" = "y"; then + cat >>confdefs.h <<\_ACEOF +#define CONFIG_USE_SYSCALL 1 +_ACEOF + fi +# Check whether --enable-root-check or --disable-root-check was given. +if test "${enable_root_check+set}" = set; then + enableval="$enable_root_check" + if test "$enableval" = "yes"; then + cat >>confdefs.h <<\_ACEOF +#define CONFIG_ROOT_CHECK_OFF 0 +_ACEOF + +else + cat >>confdefs.h <<\_ACEOF +#define CONFIG_ROOT_CHECK_OFF 1 +_ACEOF + +fi +else + cat >>confdefs.h <<\_ACEOF +#define CONFIG_ROOT_CHECK_OFF 0 +_ACEOF + +fi; if test "$ARCH" = "alpha"; then echo "$as_me:$LINENO: checking for broken alpha assembler" >&5 echo $ECHO_N "checking for broken alpha assembler... $ECHO_C" >&6 cat > conftest.c <]]) + ;; + *) COMMON_i386=no ;; +esac AC_ARG_ENABLE(common-i386, [ --enable-common-i386 Make one executable handle 32 and 64 bit kernel - modules (default on i386 is yes, default on other - architectures is no)], + modules (default on i386 with R_X86_64_NONE + defined is yes, default on other architectures is + no)], [if test "$enableval" = "yes"; then COMMON_i386=yes else @@ -272,78 +349,6 @@ AC_DEFINE(CONFIG_ROOT_CHECK_OFF, 1) fi],[AC_DEFINE(CONFIG_ROOT_CHECK_OFF, 0)]) -# If the user did not specify CFLAGS, use suitable values for modutils -if test "$CFLAGS" = ""; then - CFLAGS="-O2 -Wall" -fi - -AC_PROG_CC -AC_PROG_RANLIB -AC_PROG_LN_S - -# AC_PROG_INSTALL is unsuitable for cross compilation. It generates a -# hard coded pathname for INSTALL. Even if we set our own value for -# INSTALL, acgeneral insists on preceding a relative INSTALL with -# "../". Easiest solution is to use another variable inside autoconf -# and not use AC_PROG_INSTALL. -# -if test -z "$INSTALL"; then - INSTALL_LOCAL=install -else - INSTALL_LOCAL="$INSTALL" -fi -AC_SUBST(INSTALL_LOCAL) - -# If the user did not specify BUILDCC, use CC. -if test -z "$BUILDCC"; then - BUILDCC=$CC -fi -AC_SUBST(BUILDCC) - -# If the user did not specify BUILDCFLAGS, use CFLAGS -# HOSTCFLAGS are checked for compatibility. -if test -z "$BUILDCFLAGS"; then - if test -z "$HOSTCFLAGS"; then - BUILDCFLAGS=$CFLAGS - else - BUILDCFLAGS=$HOSTCFLAGS - fi -fi -AC_SUBST(BUILDCFLAGS) - -# If the user did not specify AR, use ar -if test -z "$AR"; then - AR=ar -fi -AC_SUBST(AR) - -# If the user did not specify PARSECFLAGS, use -Wno-uninitialized. -# Yacc and Lex generated programs raise comments about uninitialized -# variables when -Wall is used so turn this warning off for the parse -# programs. -if test "$PARSERCFLAGS" = ""; then - PARSERCFLAGS=-Wno-uninitialized -fi -AC_SUBST(PARSERCFLAGS) - -# If the user did not specify MKDIR, use mkdir -p. -if test "$MKDIR" = ""; then - MKDIR="mkdir -p" -fi -AC_SUBST(MKDIR) - -# If the user did not specify TAINT_URL, use http://www.tux.org/lkml/#export-tainted. -if test "$TAINT_URL" = ""; then - TAINT_URL="http://www.tux.org/lkml/\#export-tainted" -fi -AC_SUBST(TAINT_URL) - -AC_CHECK_FUNC(wordexp, HAVE_WORDEXP="-DHAVE_WORDEXP=1", HAVE_WORDEXP="") -AC_SUBST(HAVE_WORDEXP) - -AC_CHECK_FUNC(glob, HAVE_GLOB="-DHAVE_GLOB=1", HAVE_GLOB="") -AC_SUBST(HAVE_GLOB) - if test "$ARCH" = "alpha"; then AC_MSG_CHECKING(for broken alpha assembler) cat > conftest.c <autoclean = 1; for (p = name; p; p = allow_alias ? any_alias(p) : NULL) { + if (++aliases > 1000) { /* Arbitrary limit on alias loop */ + allow_alias = 0; + fprintf(stderr, "modprobe: alias loop detected on %s\n", name); + break; + } if (strcmp(p, "off") == 0) { desc->objkey = NULL; break; @@ -336,11 +341,6 @@ } } } - if (++aliases > 1000) { /* Arbitrary limit on alias loop */ - allow_alias = 0; - fprintf(stderr, "modprobe: alias loop detected on %s\n", name); - break; - } } if (!desc->kname) desc->kname = desc->objkey; diff -Nur modutils-2.4.26/INSTALL modutils-2.4.27/INSTALL --- modutils-2.4.26/INSTALL 2003-01-29 17:39:00.000000000 +1100 +++ modutils-2.4.27/INSTALL 2004-03-07 19:47:20.000000000 +1100 @@ -56,54 +56,67 @@ layers of quoting rules. An example, TAINT_URL='http://www.some_vendor.com/linux/support/\#taint' -configure takes ten modutils specific options, as well as the standard +configure takes eighteen modutils specific options, as well as the standard configure options. ---enable-combined Create insmod and rmmod/modprobe/lsmod/ksyms as +--enable-combined Create insmod and rmmod/modprobe/lsmod/ksyms as one executable. Default is one combined module, if you --disable-combined you can still combine individual modules into insmod with --enable-combined-X. ---enable-combined-rmmod Create insmod and rmmod as one executable, +--enable-combined-rmmod Create insmod and rmmod as one executable, default is taken from --enable-combined. ---enable-combined-modprobe Create insmod and modprobe as one executable, +--enable-combined-modprobe Create insmod and modprobe as one executable, default is taken from --enable-combined. ---enable-combined-lsmod Create insmod and lsmod as one executable, +--enable-combined-lsmod Create insmod and lsmod as one executable, default is taken from --enable-combined. ---enable-combined-ksyms Create insmod and ksyms as one executable, +--enable-combined-ksyms Create insmod and ksyms as one executable, default is taken from --enable-combined. ---disable-compat-2-0 Do not create utilities runnable on a Linux 2.0 +--enable-combined-kallsyms Create insmod and kalsyms as one executable, + default is taken from --enable-combined. +--disable-compat-2-0 Do not create utilities runnable on a Linux 2.0 system, default is no backwards compatibility. ---disable-kerneld The default is not to compile kerneld, this +--disable-kerneld The default is not to compile kerneld, this utility has not been used since kernel 2.1.91. ---enable-common-sparc Make all the utilities work on both sparc32 and +--disable-insmod-static The default is not to build insmod.static. You + probably only need this if you are building your + own initrd boot system. +--enable-common-sparc Make all the utilities work on both sparc32 and sparc64 as one executable. Default is yes for sparc, no for other architectures. ---enable-common-ppc Make all the utilities work on both ppc32 and +--enable-common-ppc Make all the utilities work on both ppc32 and ppc64 as one executable. Default is yes for ppc, no for other architectures. ---enable-common-hppa Make all the utilities work on both hppa32 and +--enable-common-hppa Make all the utilities work on both hppa32 and hppa64 as one executable. Default is yes for hppa, no for other architectures. ---disable-insmod-static The default is not to build insmod.static. You - probably only need this if you are building your - own initrd boot system. ---enable-strip Are binaries to be stripped during install? +--enable-common-s390 Make one executable handle 32 and 64 bit kernel + modules. Default is yes for s390 is yes, no + for other architectures. +--enable-common-i386 Make one executable handle 32 and 64 bit kernel + modules. Default is yes on i386 when elf.h + contains R_X86_64_NONE, no for i386 without + R_X86_64_NONE and on other architectures. +--enable-strip Are binaries to be stripped during install? Default is yes. ---disable-zlib Handle gzipped objects? Default is no. +--disable-zlib Handle gzipped objects? Default is no. You probably only need this if you are booting a small root filesystem and the filesystem is not compressed itself. You need a static version of libz that is suitable for the host system in order to use --enable-zlib. ---disable-use-syscall Use _syscall() functions? Default is no. +--disable-use-syscall Use _syscall() functions? Default is no. Any current libc should have definitions for the modutils to kernel system calls. If you get missing sys_xxx functions, use --enable-use-syscall. Note that the glibc maintainers want to remove _syscall() from the library ABI. +--enable-root-check Check that modules are owned by root before + loading. The default is yes, note that turning + off this check is a huge security exposure. -To disable any of these, specify --disable-