"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "configure" between
xterm-366.tgz and xterm-367.tgz

About: xterm is a terminal emulator for X with ISO/ANSI color and vt220 enhancements.

configure  (xterm-366.tgz):configure  (xterm-367.tgz)
skipping to change at line 734 skipping to change at line 734
--with-utempter use utempter library for access to utmp --with-utempter use utempter library for access to utmp
--with-tty-group=XXX use XXX for the tty-group --with-tty-group=XXX use XXX for the tty-group
--with-x use the X Window System --with-x use the X Window System
--with-pkg-config{=path} enable/disable use of pkg-config --with-pkg-config{=path} enable/disable use of pkg-config
--with-xpm=DIR use Xpm library for colored icon, may specify path --with-xpm=DIR use Xpm library for colored icon, may specify path
--without-xinerama do not use Xinerama extension for multiscreen support --without-xinerama do not use Xinerama extension for multiscreen support
--with-Xaw3d link with Xaw 3d library --with-Xaw3d link with Xaw 3d library
--with-Xaw3dxft link with Xaw 3d xft library --with-Xaw3dxft link with Xaw 3d xft library
--with-neXtaw link with neXT Athena library --with-neXtaw link with neXT Athena library
--with-XawPlus link with Athena-Plus library --with-XawPlus link with Athena-Plus library
--disable-xcursor disable cursorTheme resource
--enable-narrowproto enable narrow prototypes for X libraries --enable-narrowproto enable narrow prototypes for X libraries
--disable-imake disable use of imake for definitions --disable-imake disable use of imake for definitions
--with-man2html=XXX use XXX rather than groff --with-man2html=XXX use XXX rather than groff
Terminal Configuration: Terminal Configuration:
--with-terminal-id=V set default decTerminalID (default: vt420) --with-terminal-id=V set default decTerminalID (default: vt420)
--with-terminal-type=T set default $TERM (default: xterm) --with-terminal-type=T set default $TERM (default: xterm)
--enable-backarrow-key set default backarrowKey resource (default: true) --enable-backarrow-key set default backarrowKey resource (default: true)
--enable-backarrow-is-erase set default backarrowKeyIsErase resource (default: false) --enable-backarrow-is-erase set default backarrowKeyIsErase resource (default: false)
--enable-delete-is-del set default deleteIsDEL resource (default: maybe) --enable-delete-is-del set default deleteIsDEL resource (default: maybe)
--enable-pty-erase set default ptyInitialErase resource (default: maybe) --enable-pty-erase set default ptyInitialErase resource (default: maybe)
skipping to change at line 821 skipping to change at line 822
--disable-ziconbeep disable -ziconbeep option --disable-ziconbeep disable -ziconbeep option
Testing/development Options: Testing/development Options:
--enable-trace test: set to enable debugging traces --enable-trace test: set to enable debugging traces
--with-dmalloc test: use Gray Watson's dmalloc library --with-dmalloc test: use Gray Watson's dmalloc library
--with-dbmalloc test: use Conor Cahill's dbmalloc library --with-dbmalloc test: use Conor Cahill's dbmalloc library
--with-valgrind test: use valgrind --with-valgrind test: use valgrind
--disable-leaks test: free permanent memory, analyze leaks --disable-leaks test: free permanent memory, analyze leaks
--disable-echo do not display "compiling" commands --disable-echo do not display "compiling" commands
--enable-xmc-glitch test: enable xmc magic-cookie emulation --enable-xmc-glitch test: enable xmc magic-cookie emulation
--enable-warnings test: turn on gcc compiler warnings --enable-warnings test: turn on gcc compiler warnings
--enable-stdnoreturn enable C11 _Noreturn feature for diagnostics
--disable-rpath-hack don't add rpath options for additional libraries --disable-rpath-hack don't add rpath options for additional libraries
Some influential environment variables: Some influential environment variables:
CC C compiler command CC C compiler command
CFLAGS C compiler flags CFLAGS C compiler flags
LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
nonstandard directory <lib dir> nonstandard directory <lib dir>
CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
headers in a nonstandard directory <include dir> headers in a nonstandard directory <include dir>
CPP C preprocessor CPP C preprocessor
skipping to change at line 1016 skipping to change at line 1018
# Prefer explicitly selected file to automatically selected ones. # Prefer explicitly selected file to automatically selected ones.
if test -z "$CONFIG_SITE"; then if test -z "$CONFIG_SITE"; then
if test "x$prefix" != xNONE; then if test "x$prefix" != xNONE; then
CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
else else
CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/con fig.site" CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/con fig.site"
fi fi
fi fi
for ac_site_file in $CONFIG_SITE; do for ac_site_file in $CONFIG_SITE; do
if test -r "$ac_site_file"; then if test -r "$ac_site_file"; then
{ echo "$as_me:1016: loading site script $ac_site_file" >&5 { echo "$as_me:1018: loading site script $ac_site_file" >&5
echo "$as_me: loading site script $ac_site_file" >&6;} echo "$as_me: loading site script $ac_site_file" >&6;}
cat "$ac_site_file" >&5 cat "$ac_site_file" >&5
. "$ac_site_file" . "$ac_site_file"
fi fi
done done
if test -r "$cache_file"; then if test -r "$cache_file"; then
# Some versions of bash will fail to source /dev/null (special # Some versions of bash will fail to source /dev/null (special
# files actually), so we avoid doing that. # files actually), so we avoid doing that.
if test -f "$cache_file"; then if test -f "$cache_file"; then
{ echo "$as_me:1027: loading cache $cache_file" >&5 { echo "$as_me:1029: loading cache $cache_file" >&5
echo "$as_me: loading cache $cache_file" >&6;} echo "$as_me: loading cache $cache_file" >&6;}
case $cache_file in case $cache_file in
[\\/]* | ?:[\\/]* ) . $cache_file;; [\\/]* | ?:[\\/]* ) . $cache_file;;
*) . ./$cache_file;; *) . ./$cache_file;;
esac esac
fi fi
else else
{ echo "$as_me:1035: creating cache $cache_file" >&5 { echo "$as_me:1037: creating cache $cache_file" >&5
echo "$as_me: creating cache $cache_file" >&6;} echo "$as_me: creating cache $cache_file" >&6;}
>$cache_file >$cache_file
fi fi
# Check that the precious variables saved in the cache have kept the same # Check that the precious variables saved in the cache have kept the same
# value. # value.
ac_cache_corrupted=false ac_cache_corrupted=false
for ac_var in `(set) 2>&1 | for ac_var in `(set) 2>&1 |
sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
eval ac_old_set=\$ac_cv_env_${ac_var}_set eval ac_old_set=\$ac_cv_env_${ac_var}_set
eval ac_new_set=\$ac_env_${ac_var}_set eval ac_new_set=\$ac_env_${ac_var}_set
eval ac_old_val="\$ac_cv_env_${ac_var}_value" eval ac_old_val="\$ac_cv_env_${ac_var}_value"
eval ac_new_val="\$ac_env_${ac_var}_value" eval ac_new_val="\$ac_env_${ac_var}_value"
case "$ac_old_set,$ac_new_set" in case "$ac_old_set,$ac_new_set" in
set,) set,)
{ echo "$as_me:1051: error: \`$ac_var' was set to \`$ac_old_val' in the pr evious run" >&5 { echo "$as_me:1053: error: \`$ac_var' was set to \`$ac_old_val' in the pr evious run" >&5
echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" > &2;} echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" > &2;}
ac_cache_corrupted=: ;; ac_cache_corrupted=: ;;
,set) ,set)
{ echo "$as_me:1055: error: \`$ac_var' was not set in the previous run" >& 5 { echo "$as_me:1057: error: \`$ac_var' was not set in the previous run" >& 5
echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
ac_cache_corrupted=: ;; ac_cache_corrupted=: ;;
,);; ,);;
*) *)
if test "x$ac_old_val" != "x$ac_new_val"; then if test "x$ac_old_val" != "x$ac_new_val"; then
{ echo "$as_me:1061: error: \`$ac_var' has changed since the previous ru n:" >&5 { echo "$as_me:1063: error: \`$ac_var' has changed since the previous ru n:" >&5
echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
{ echo "$as_me:1063: former value: $ac_old_val" >&5 { echo "$as_me:1065: former value: $ac_old_val" >&5
echo "$as_me: former value: $ac_old_val" >&2;} echo "$as_me: former value: $ac_old_val" >&2;}
{ echo "$as_me:1065: current value: $ac_new_val" >&5 { echo "$as_me:1067: current value: $ac_new_val" >&5
echo "$as_me: current value: $ac_new_val" >&2;} echo "$as_me: current value: $ac_new_val" >&2;}
ac_cache_corrupted=: ac_cache_corrupted=:
fi;; fi;;
esac esac
# Pass precious variables to config.status. It doesn't matter if # Pass precious variables to config.status. It doesn't matter if
# we pass some twice (in addition to the command line arguments). # we pass some twice (in addition to the command line arguments).
if test "$ac_new_set" = set; then if test "$ac_new_set" = set; then
case "$ac_new_val" in case "$ac_new_val" in
*" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"`
ac_configure_args="$ac_configure_args '$ac_arg'" ac_configure_args="$ac_configure_args '$ac_arg'"
;; ;;
*) ac_configure_args="$ac_configure_args $ac_var=$ac_new_val" *) ac_configure_args="$ac_configure_args $ac_var=$ac_new_val"
;; ;;
esac esac
fi fi
done done
if "$ac_cache_corrupted"; then if "$ac_cache_corrupted"; then
{ echo "$as_me:1084: error: changes in the environment can compromise the buil d" >&5 { echo "$as_me:1086: error: changes in the environment can compromise the buil d" >&5
echo "$as_me: error: changes in the environment can compromise the build" >&2;} echo "$as_me: error: changes in the environment can compromise the build" >&2;}
{ { echo "$as_me:1086: error: run \`make distclean' and/or \`rm $cache_file' a nd start over" >&5 { { echo "$as_me:1088: error: run \`make distclean' and/or \`rm $cache_file' a nd start over" >&5
echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start ov er" >&2;} echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start ov er" >&2;}
{ (exit 1); exit 1; }; } { (exit 1); exit 1; }; }
fi fi
ac_ext=c ac_ext=c
ac_cpp='$CPP $CPPFLAGS' ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS "conftest.$ac_ext" >&5' ac_compile='$CC -c $CFLAGS $CPPFLAGS "conftest.$ac_ext" >&5'
ac_link='$CC -o "conftest$ac_exeext" $CFLAGS $CPPFLAGS $LDFLAGS "conftest.$ac_ex t" $LIBS >&5' ac_link='$CC -o "conftest$ac_exeext" $CFLAGS $CPPFLAGS $LDFLAGS "conftest.$ac_ex t" $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu ac_compiler_gnu=$ac_cv_c_compiler_gnu
ac_main_return="return" ac_main_return="return"
skipping to change at line 1115 skipping to change at line 1117
ECHO_T= ECHO_T=
;; ;;
*) ECHO_N= *) ECHO_N=
ECHO_C='\c' ECHO_C='\c'
ECHO_T= ECHO_T=
;; ;;
esac esac
echo "#! $SHELL" >conftest.sh echo "#! $SHELL" >conftest.sh
echo "exit 0" >>conftest.sh echo "exit 0" >>conftest.sh
chmod +x conftest.sh chmod +x conftest.sh
if { (echo "$as_me:1115: PATH=\".;.\"; conftest.sh") >&5 if { (echo "$as_me:1117: PATH=\".;.\"; conftest.sh") >&5
(PATH=".;."; conftest.sh) 2>&5 (PATH=".;."; conftest.sh) 2>&5
ac_status=$? ac_status=$?
echo "$as_me:1118: \$? = $ac_status" >&5 echo "$as_me:1120: \$? = $ac_status" >&5
(exit "$ac_status"); }; then (exit "$ac_status"); }; then
ac_path_separator=';' ac_path_separator=';'
else else
ac_path_separator=: ac_path_separator=:
fi fi
PATH_SEPARATOR="$ac_path_separator" PATH_SEPARATOR="$ac_path_separator"
rm -f conftest.sh rm -f conftest.sh
ac_config_headers="$ac_config_headers xtermcfg.h:xtermcfg.hin" ac_config_headers="$ac_config_headers xtermcfg.h:xtermcfg.hin"
skipping to change at line 1146 skipping to change at line 1148
ac_aux_dir=$ac_dir ac_aux_dir=$ac_dir
ac_install_sh="$ac_aux_dir/install.sh -c" ac_install_sh="$ac_aux_dir/install.sh -c"
break break
elif test -f "$ac_dir/shtool"; then elif test -f "$ac_dir/shtool"; then
ac_aux_dir=$ac_dir ac_aux_dir=$ac_dir
ac_install_sh="$ac_aux_dir/shtool install -c" ac_install_sh="$ac_aux_dir/shtool install -c"
break break
fi fi
done done
if test -z "$ac_aux_dir"; then if test -z "$ac_aux_dir"; then
{ { echo "$as_me:1146: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5 { { echo "$as_me:1148: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;} echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
{ (exit 1); exit 1; }; } { (exit 1); exit 1; }; }
fi fi
ac_config_guess="$SHELL $ac_aux_dir/config.guess" ac_config_guess="$SHELL $ac_aux_dir/config.guess"
ac_config_sub="$SHELL $ac_aux_dir/config.sub" ac_config_sub="$SHELL $ac_aux_dir/config.sub"
ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure. ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
# Make sure we can run config.sub. # Make sure we can run config.sub.
$ac_config_sub sun4 >/dev/null 2>&1 || $ac_config_sub sun4 >/dev/null 2>&1 ||
{ { echo "$as_me:1156: error: cannot run $ac_config_sub" >&5 { { echo "$as_me:1158: error: cannot run $ac_config_sub" >&5
echo "$as_me: error: cannot run $ac_config_sub" >&2;} echo "$as_me: error: cannot run $ac_config_sub" >&2;}
{ (exit 1); exit 1; }; } { (exit 1); exit 1; }; }
echo "$as_me:1160: checking build system type" >&5 echo "$as_me:1162: checking build system type" >&5
echo $ECHO_N "checking build system type... $ECHO_C" >&6 echo $ECHO_N "checking build system type... $ECHO_C" >&6
if test "${ac_cv_build+set}" = set; then if test "${ac_cv_build+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6 echo $ECHO_N "(cached) $ECHO_C" >&6
else else
ac_cv_build_alias=$build_alias ac_cv_build_alias=$build_alias
test -z "$ac_cv_build_alias" && test -z "$ac_cv_build_alias" &&
ac_cv_build_alias=`$ac_config_guess` ac_cv_build_alias=`$ac_config_guess`
test -z "$ac_cv_build_alias" && test -z "$ac_cv_build_alias" &&
{ { echo "$as_me:1169: error: cannot guess build type; you must specify one" > &5 { { echo "$as_me:1171: error: cannot guess build type; you must specify one" > &5
echo "$as_me: error: cannot guess build type; you must specify one" >&2;} echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
{ (exit 1); exit 1; }; } { (exit 1); exit 1; }; }
ac_cv_build=`$ac_config_sub "$ac_cv_build_alias"` || ac_cv_build=`$ac_config_sub "$ac_cv_build_alias"` ||
{ { echo "$as_me:1173: error: $ac_config_sub $ac_cv_build_alias failed." >&5 { { echo "$as_me:1175: error: $ac_config_sub $ac_cv_build_alias failed." >&5
echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed." >&2;} echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed." >&2;}
{ (exit 1); exit 1; }; } { (exit 1); exit 1; }; }
fi fi
echo "$as_me:1178: result: $ac_cv_build" >&5 echo "$as_me:1180: result: $ac_cv_build" >&5
echo "${ECHO_T}$ac_cv_build" >&6 echo "${ECHO_T}$ac_cv_build" >&6
build=$ac_cv_build build=$ac_cv_build
build_cpu=`echo "$ac_cv_build" | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` build_cpu=`echo "$ac_cv_build" | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
build_vendor=`echo "$ac_cv_build" | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` build_vendor=`echo "$ac_cv_build" | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
build_os=`echo "$ac_cv_build" | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` build_os=`echo "$ac_cv_build" | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
if test -f "$srcdir/config.guess" || test -f "$ac_aux_dir/config.guess" ; then if test -f "$srcdir/config.guess" || test -f "$ac_aux_dir/config.guess" ; then
echo "$as_me:1186: checking host system type" >&5 echo "$as_me:1188: checking host system type" >&5
echo $ECHO_N "checking host system type... $ECHO_C" >&6 echo $ECHO_N "checking host system type... $ECHO_C" >&6
if test "${ac_cv_host+set}" = set; then if test "${ac_cv_host+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6 echo $ECHO_N "(cached) $ECHO_C" >&6
else else
ac_cv_host_alias=$host_alias ac_cv_host_alias=$host_alias
test -z "$ac_cv_host_alias" && test -z "$ac_cv_host_alias" &&
ac_cv_host_alias=$ac_cv_build_alias ac_cv_host_alias=$ac_cv_build_alias
ac_cv_host=`$ac_config_sub "$ac_cv_host_alias"` || ac_cv_host=`$ac_config_sub "$ac_cv_host_alias"` ||
{ { echo "$as_me:1195: error: $ac_config_sub $ac_cv_host_alias failed" >&5 { { echo "$as_me:1197: error: $ac_config_sub $ac_cv_host_alias failed" >&5
echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;} echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
{ (exit 1); exit 1; }; } { (exit 1); exit 1; }; }
fi fi
echo "$as_me:1200: result: $ac_cv_host" >&5 echo "$as_me:1202: result: $ac_cv_host" >&5
echo "${ECHO_T}$ac_cv_host" >&6 echo "${ECHO_T}$ac_cv_host" >&6
host=$ac_cv_host host=$ac_cv_host
host_cpu=`echo "$ac_cv_host" | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` host_cpu=`echo "$ac_cv_host" | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
host_vendor=`echo "$ac_cv_host" | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` host_vendor=`echo "$ac_cv_host" | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
host_os=`echo "$ac_cv_host" | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` host_os=`echo "$ac_cv_host" | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
system_name="$host_os" system_name="$host_os"
else else
system_name="`(uname -s -r) 2>/dev/null`" system_name="`(uname -s -r) 2>/dev/null`"
if test -z "$system_name" ; then if test -z "$system_name" ; then
skipping to change at line 1226 skipping to change at line 1228
#define SYSTEM_NAME "$system_name" #define SYSTEM_NAME "$system_name"
EOF EOF
if test "${cf_cv_system_name+set}" = set; then if test "${cf_cv_system_name+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6 echo $ECHO_N "(cached) $ECHO_C" >&6
else else
cf_cv_system_name="$system_name" cf_cv_system_name="$system_name"
fi fi
test -z "$system_name" && system_name="$cf_cv_system_name" test -z "$system_name" && system_name="$cf_cv_system_name"
test -n "$cf_cv_system_name" && echo "$as_me:1226: result: Configuring for $cf_c v_system_name" >&5 test -n "$cf_cv_system_name" && echo "$as_me:1228: result: Configuring for $cf_c v_system_name" >&5
echo "${ECHO_T}Configuring for $cf_cv_system_name" >&6 echo "${ECHO_T}Configuring for $cf_cv_system_name" >&6
if test ".$system_name" != ".$cf_cv_system_name" ; then if test ".$system_name" != ".$cf_cv_system_name" ; then
echo "$as_me:1230: result: Cached system name ($system_name) does not agr ee with actual ($cf_cv_system_name)" >&5 echo "$as_me:1232: result: Cached system name ($system_name) does not agr ee with actual ($cf_cv_system_name)" >&5
echo "${ECHO_T}Cached system name ($system_name) does not agree with actual ($cf _cv_system_name)" >&6 echo "${ECHO_T}Cached system name ($system_name) does not agree with actual ($cf _cv_system_name)" >&6
{ { echo "$as_me:1232: error: \"Please remove config.cache and try again. \"" >&5 { { echo "$as_me:1234: error: \"Please remove config.cache and try again. \"" >&5
echo "$as_me: error: \"Please remove config.cache and try again.\"" >&2;} echo "$as_me: error: \"Please remove config.cache and try again.\"" >&2;}
{ (exit 1); exit 1; }; } { (exit 1); exit 1; }; }
fi fi
### checks for alternative programs ### checks for alternative programs
case "$host_os" in case "$host_os" in
(openedition) : "${CFLAGS=\"-O2 -Wc,dll -Wl,EDIT=NO\"}" (openedition) : "${CFLAGS=\"-O2 -Wc,dll -Wl,EDIT=NO\"}"
: "${CPPFLAGS=\"-D_ALL_SOURCE\"}" : "${CPPFLAGS=\"-D_ALL_SOURCE\"}"
: "${LIBS=\"/usr/lib/Xaw.x /usr/lib/SM.x /usr/lib/ICE.x /usr/lib/ X11.x\"}" : "${LIBS=\"/usr/lib/Xaw.x /usr/lib/SM.x /usr/lib/ICE.x /usr/lib/ X11.x\"}"
skipping to change at line 1257 skipping to change at line 1259
ac_ext=c ac_ext=c
ac_cpp='$CPP $CPPFLAGS' ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS "conftest.$ac_ext" >&5' ac_compile='$CC -c $CFLAGS $CPPFLAGS "conftest.$ac_ext" >&5'
ac_link='$CC -o "conftest$ac_exeext" $CFLAGS $CPPFLAGS $LDFLAGS "conftest.$ac_ex t" $LIBS >&5' ac_link='$CC -o "conftest$ac_exeext" $CFLAGS $CPPFLAGS $LDFLAGS "conftest.$ac_ex t" $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu ac_compiler_gnu=$ac_cv_c_compiler_gnu
ac_main_return="return" ac_main_return="return"
if test -n "$ac_tool_prefix"; then if test -n "$ac_tool_prefix"; then
# Extract the first word of "${ac_tool_prefix}gcc", so it can be a program nam e with args. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program nam e with args.
set dummy ${ac_tool_prefix}gcc; ac_word=$2 set dummy ${ac_tool_prefix}gcc; ac_word=$2
echo "$as_me:1257: checking for $ac_word" >&5 echo "$as_me:1259: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
if test "${ac_cv_prog_CC+set}" = set; then if test "${ac_cv_prog_CC+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6 echo $ECHO_N "(cached) $ECHO_C" >&6
else else
if test -n "$CC"; then if test -n "$CC"; then
ac_cv_prog_CC="$CC" # Let the user override the test. ac_cv_prog_CC="$CC" # Let the user override the test.
else else
ac_save_IFS=$IFS; IFS=$ac_path_separator ac_save_IFS=$IFS; IFS=$ac_path_separator
ac_dummy="$PATH" ac_dummy="$PATH"
for ac_dir in $ac_dummy; do for ac_dir in $ac_dummy; do
IFS=$ac_save_IFS IFS=$ac_save_IFS
test -z "$ac_dir" && ac_dir=. test -z "$ac_dir" && ac_dir=.
$as_executable_p "$ac_dir/$ac_word" || continue $as_executable_p "$ac_dir/$ac_word" || continue
ac_cv_prog_CC="${ac_tool_prefix}gcc" ac_cv_prog_CC="${ac_tool_prefix}gcc"
echo "$as_me:1272: found $ac_dir/$ac_word" >&5 echo "$as_me:1274: found $ac_dir/$ac_word" >&5
break break
done done
fi fi
fi fi
CC=$ac_cv_prog_CC CC=$ac_cv_prog_CC
if test -n "$CC"; then if test -n "$CC"; then
echo "$as_me:1280: result: $CC" >&5 echo "$as_me:1282: result: $CC" >&5
echo "${ECHO_T}$CC" >&6 echo "${ECHO_T}$CC" >&6
else else
echo "$as_me:1283: result: no" >&5 echo "$as_me:1285: result: no" >&5
echo "${ECHO_T}no" >&6 echo "${ECHO_T}no" >&6
fi fi
fi fi
if test -z "$ac_cv_prog_CC"; then if test -z "$ac_cv_prog_CC"; then
ac_ct_CC=$CC ac_ct_CC=$CC
# Extract the first word of "gcc", so it can be a program name with args. # Extract the first word of "gcc", so it can be a program name with args.
set dummy gcc; ac_word=$2 set dummy gcc; ac_word=$2
echo "$as_me:1292: checking for $ac_word" >&5 echo "$as_me:1294: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 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_CC+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6 echo $ECHO_N "(cached) $ECHO_C" >&6
else else
if test -n "$ac_ct_CC"; then if test -n "$ac_ct_CC"; then
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
else else
ac_save_IFS=$IFS; IFS=$ac_path_separator ac_save_IFS=$IFS; IFS=$ac_path_separator
ac_dummy="$PATH" ac_dummy="$PATH"
for ac_dir in $ac_dummy; do for ac_dir in $ac_dummy; do
IFS=$ac_save_IFS IFS=$ac_save_IFS
test -z "$ac_dir" && ac_dir=. test -z "$ac_dir" && ac_dir=.
$as_executable_p "$ac_dir/$ac_word" || continue $as_executable_p "$ac_dir/$ac_word" || continue
ac_cv_prog_ac_ct_CC="gcc" ac_cv_prog_ac_ct_CC="gcc"
echo "$as_me:1307: found $ac_dir/$ac_word" >&5 echo "$as_me:1309: found $ac_dir/$ac_word" >&5
break break
done done
fi fi
fi fi
ac_ct_CC=$ac_cv_prog_ac_ct_CC ac_ct_CC=$ac_cv_prog_ac_ct_CC
if test -n "$ac_ct_CC"; then if test -n "$ac_ct_CC"; then
echo "$as_me:1315: result: $ac_ct_CC" >&5 echo "$as_me:1317: result: $ac_ct_CC" >&5
echo "${ECHO_T}$ac_ct_CC" >&6 echo "${ECHO_T}$ac_ct_CC" >&6
else else
echo "$as_me:1318: result: no" >&5 echo "$as_me:1320: result: no" >&5
echo "${ECHO_T}no" >&6 echo "${ECHO_T}no" >&6
fi fi
CC=$ac_ct_CC CC=$ac_ct_CC
else else
CC="$ac_cv_prog_CC" CC="$ac_cv_prog_CC"
fi fi
if test -z "$CC"; then if test -z "$CC"; then
if test -n "$ac_tool_prefix"; 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. # 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 set dummy ${ac_tool_prefix}cc; ac_word=$2
echo "$as_me:1331: checking for $ac_word" >&5 echo "$as_me:1333: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
if test "${ac_cv_prog_CC+set}" = set; then if test "${ac_cv_prog_CC+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6 echo $ECHO_N "(cached) $ECHO_C" >&6
else else
if test -n "$CC"; then if test -n "$CC"; then
ac_cv_prog_CC="$CC" # Let the user override the test. ac_cv_prog_CC="$CC" # Let the user override the test.
else else
ac_save_IFS=$IFS; IFS=$ac_path_separator ac_save_IFS=$IFS; IFS=$ac_path_separator
ac_dummy="$PATH" ac_dummy="$PATH"
for ac_dir in $ac_dummy; do for ac_dir in $ac_dummy; do
IFS=$ac_save_IFS IFS=$ac_save_IFS
test -z "$ac_dir" && ac_dir=. test -z "$ac_dir" && ac_dir=.
$as_executable_p "$ac_dir/$ac_word" || continue $as_executable_p "$ac_dir/$ac_word" || continue
ac_cv_prog_CC="${ac_tool_prefix}cc" ac_cv_prog_CC="${ac_tool_prefix}cc"
echo "$as_me:1346: found $ac_dir/$ac_word" >&5 echo "$as_me:1348: found $ac_dir/$ac_word" >&5
break break
done done
fi fi
fi fi
CC=$ac_cv_prog_CC CC=$ac_cv_prog_CC
if test -n "$CC"; then if test -n "$CC"; then
echo "$as_me:1354: result: $CC" >&5 echo "$as_me:1356: result: $CC" >&5
echo "${ECHO_T}$CC" >&6 echo "${ECHO_T}$CC" >&6
else else
echo "$as_me:1357: result: no" >&5 echo "$as_me:1359: result: no" >&5
echo "${ECHO_T}no" >&6 echo "${ECHO_T}no" >&6
fi fi
fi fi
if test -z "$ac_cv_prog_CC"; then if test -z "$ac_cv_prog_CC"; then
ac_ct_CC=$CC ac_ct_CC=$CC
# Extract the first word of "cc", so it can be a program name with args. # Extract the first word of "cc", so it can be a program name with args.
set dummy cc; ac_word=$2 set dummy cc; ac_word=$2
echo "$as_me:1366: checking for $ac_word" >&5 echo "$as_me:1368: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 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_CC+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6 echo $ECHO_N "(cached) $ECHO_C" >&6
else else
if test -n "$ac_ct_CC"; then if test -n "$ac_ct_CC"; then
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
else else
ac_save_IFS=$IFS; IFS=$ac_path_separator ac_save_IFS=$IFS; IFS=$ac_path_separator
ac_dummy="$PATH" ac_dummy="$PATH"
for ac_dir in $ac_dummy; do for ac_dir in $ac_dummy; do
IFS=$ac_save_IFS IFS=$ac_save_IFS
test -z "$ac_dir" && ac_dir=. test -z "$ac_dir" && ac_dir=.
$as_executable_p "$ac_dir/$ac_word" || continue $as_executable_p "$ac_dir/$ac_word" || continue
ac_cv_prog_ac_ct_CC="cc" ac_cv_prog_ac_ct_CC="cc"
echo "$as_me:1381: found $ac_dir/$ac_word" >&5 echo "$as_me:1383: found $ac_dir/$ac_word" >&5
break break
done done
fi fi
fi fi
ac_ct_CC=$ac_cv_prog_ac_ct_CC ac_ct_CC=$ac_cv_prog_ac_ct_CC
if test -n "$ac_ct_CC"; then if test -n "$ac_ct_CC"; then
echo "$as_me:1389: result: $ac_ct_CC" >&5 echo "$as_me:1391: result: $ac_ct_CC" >&5
echo "${ECHO_T}$ac_ct_CC" >&6 echo "${ECHO_T}$ac_ct_CC" >&6
else else
echo "$as_me:1392: result: no" >&5 echo "$as_me:1394: result: no" >&5
echo "${ECHO_T}no" >&6 echo "${ECHO_T}no" >&6
fi fi
CC=$ac_ct_CC CC=$ac_ct_CC
else else
CC="$ac_cv_prog_CC" CC="$ac_cv_prog_CC"
fi fi
fi fi
if test -z "$CC"; then if test -z "$CC"; then
# Extract the first word of "cc", so it can be a program name with args. # Extract the first word of "cc", so it can be a program name with args.
set dummy cc; ac_word=$2 set dummy cc; ac_word=$2
echo "$as_me:1405: checking for $ac_word" >&5 echo "$as_me:1407: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
if test "${ac_cv_prog_CC+set}" = set; then if test "${ac_cv_prog_CC+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6 echo $ECHO_N "(cached) $ECHO_C" >&6
else else
if test -n "$CC"; then if test -n "$CC"; then
ac_cv_prog_CC="$CC" # Let the user override the test. ac_cv_prog_CC="$CC" # Let the user override the test.
else else
ac_prog_rejected=no ac_prog_rejected=no
ac_save_IFS=$IFS; IFS=$ac_path_separator ac_save_IFS=$IFS; IFS=$ac_path_separator
ac_dummy="$PATH" ac_dummy="$PATH"
for ac_dir in $ac_dummy; do for ac_dir in $ac_dummy; do
IFS=$ac_save_IFS IFS=$ac_save_IFS
test -z "$ac_dir" && ac_dir=. test -z "$ac_dir" && ac_dir=.
$as_executable_p "$ac_dir/$ac_word" || continue $as_executable_p "$ac_dir/$ac_word" || continue
if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
ac_prog_rejected=yes ac_prog_rejected=yes
continue continue
fi fi
ac_cv_prog_CC="cc" ac_cv_prog_CC="cc"
echo "$as_me:1425: found $ac_dir/$ac_word" >&5 echo "$as_me:1427: found $ac_dir/$ac_word" >&5
break break
done done
if test "$ac_prog_rejected" = yes; then if test "$ac_prog_rejected" = yes; then
# We found a bogon in the path, so make sure we never use it. # We found a bogon in the path, so make sure we never use it.
set dummy $ac_cv_prog_CC set dummy $ac_cv_prog_CC
shift shift
if test $# != 0; then if test $# != 0; then
# We chose a different compiler from the bogus one. # We chose a different compiler from the bogus one.
# However, it has the same basename, so the bogon will be chosen # However, it has the same basename, so the bogon will be chosen
skipping to change at line 1447 skipping to change at line 1449
shift shift
set dummy "$ac_dir/$ac_word" ${1+"$@"} set dummy "$ac_dir/$ac_word" ${1+"$@"}
shift shift
ac_cv_prog_CC="$@" ac_cv_prog_CC="$@"
fi fi
fi fi
fi fi
fi fi
CC=$ac_cv_prog_CC CC=$ac_cv_prog_CC
if test -n "$CC"; then if test -n "$CC"; then
echo "$as_me:1447: result: $CC" >&5 echo "$as_me:1449: result: $CC" >&5
echo "${ECHO_T}$CC" >&6 echo "${ECHO_T}$CC" >&6
else else
echo "$as_me:1450: result: no" >&5 echo "$as_me:1452: result: no" >&5
echo "${ECHO_T}no" >&6 echo "${ECHO_T}no" >&6
fi fi
fi fi
if test -z "$CC"; then if test -z "$CC"; then
if test -n "$ac_tool_prefix"; then if test -n "$ac_tool_prefix"; then
for ac_prog in cl for ac_prog in cl
do do
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a progra m name with args. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a progra m name with args.
set dummy $ac_tool_prefix$ac_prog; ac_word=$2 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
echo "$as_me:1461: checking for $ac_word" >&5 echo "$as_me:1463: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
if test "${ac_cv_prog_CC+set}" = set; then if test "${ac_cv_prog_CC+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6 echo $ECHO_N "(cached) $ECHO_C" >&6
else else
if test -n "$CC"; then if test -n "$CC"; then
ac_cv_prog_CC="$CC" # Let the user override the test. ac_cv_prog_CC="$CC" # Let the user override the test.
else else
ac_save_IFS=$IFS; IFS=$ac_path_separator ac_save_IFS=$IFS; IFS=$ac_path_separator
ac_dummy="$PATH" ac_dummy="$PATH"
for ac_dir in $ac_dummy; do for ac_dir in $ac_dummy; do
IFS=$ac_save_IFS IFS=$ac_save_IFS
test -z "$ac_dir" && ac_dir=. test -z "$ac_dir" && ac_dir=.
$as_executable_p "$ac_dir/$ac_word" || continue $as_executable_p "$ac_dir/$ac_word" || continue
ac_cv_prog_CC="$ac_tool_prefix$ac_prog" ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
echo "$as_me:1476: found $ac_dir/$ac_word" >&5 echo "$as_me:1478: found $ac_dir/$ac_word" >&5
break break
done done
fi fi
fi fi
CC=$ac_cv_prog_CC CC=$ac_cv_prog_CC
if test -n "$CC"; then if test -n "$CC"; then
echo "$as_me:1484: result: $CC" >&5 echo "$as_me:1486: result: $CC" >&5
echo "${ECHO_T}$CC" >&6 echo "${ECHO_T}$CC" >&6
else else
echo "$as_me:1487: result: no" >&5 echo "$as_me:1489: result: no" >&5
echo "${ECHO_T}no" >&6 echo "${ECHO_T}no" >&6
fi fi
test -n "$CC" && break test -n "$CC" && break
done done
fi fi
if test -z "$CC"; then if test -z "$CC"; then
ac_ct_CC=$CC ac_ct_CC=$CC
for ac_prog in cl for ac_prog in cl
do do
# Extract the first word of "$ac_prog", so it can be a program name with args. # Extract the first word of "$ac_prog", so it can be a program name with args.
set dummy $ac_prog; ac_word=$2 set dummy $ac_prog; ac_word=$2
echo "$as_me:1500: checking for $ac_word" >&5 echo "$as_me:1502: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 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_CC+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6 echo $ECHO_N "(cached) $ECHO_C" >&6
else else
if test -n "$ac_ct_CC"; then if test -n "$ac_ct_CC"; then
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
else else
ac_save_IFS=$IFS; IFS=$ac_path_separator ac_save_IFS=$IFS; IFS=$ac_path_separator
ac_dummy="$PATH" ac_dummy="$PATH"
for ac_dir in $ac_dummy; do for ac_dir in $ac_dummy; do
IFS=$ac_save_IFS IFS=$ac_save_IFS
test -z "$ac_dir" && ac_dir=. test -z "$ac_dir" && ac_dir=.
$as_executable_p "$ac_dir/$ac_word" || continue $as_executable_p "$ac_dir/$ac_word" || continue
ac_cv_prog_ac_ct_CC="$ac_prog" ac_cv_prog_ac_ct_CC="$ac_prog"
echo "$as_me:1515: found $ac_dir/$ac_word" >&5 echo "$as_me:1517: found $ac_dir/$ac_word" >&5
break break
done done
fi fi
fi fi
ac_ct_CC=$ac_cv_prog_ac_ct_CC ac_ct_CC=$ac_cv_prog_ac_ct_CC
if test -n "$ac_ct_CC"; then if test -n "$ac_ct_CC"; then
echo "$as_me:1523: result: $ac_ct_CC" >&5 echo "$as_me:1525: result: $ac_ct_CC" >&5
echo "${ECHO_T}$ac_ct_CC" >&6 echo "${ECHO_T}$ac_ct_CC" >&6
else else
echo "$as_me:1526: result: no" >&5 echo "$as_me:1528: result: no" >&5
echo "${ECHO_T}no" >&6 echo "${ECHO_T}no" >&6
fi fi
test -n "$ac_ct_CC" && break test -n "$ac_ct_CC" && break
done done
CC=$ac_ct_CC CC=$ac_ct_CC
fi fi
fi fi
test -z "$CC" && { { echo "$as_me:1538: error: no acceptable cc found in \$PATH" >&5 test -z "$CC" && { { echo "$as_me:1540: error: no acceptable cc found in \$PATH" >&5
echo "$as_me: error: no acceptable cc found in \$PATH" >&2;} echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
{ (exit 1); exit 1; }; } { (exit 1); exit 1; }; }
# Provide some information about the compiler. # Provide some information about the compiler.
echo "$as_me:1543:" \ echo "$as_me:1545:" \
"checking for C compiler version" >&5 "checking for C compiler version" >&5
ac_compiler=`set X $ac_compile; echo "$2"` ac_compiler=`set X $ac_compile; echo "$2"`
{ (eval echo "$as_me:1546: \"$ac_compiler --version </dev/null >&5\"") >&5 { (eval echo "$as_me:1548: \"$ac_compiler --version </dev/null >&5\"") >&5
(eval $ac_compiler --version </dev/null >&5) 2>&5 (eval $ac_compiler --version </dev/null >&5) 2>&5
ac_status=$? ac_status=$?
echo "$as_me:1549: \$? = $ac_status" >&5 echo "$as_me:1551: \$? = $ac_status" >&5
(exit "$ac_status"); } (exit "$ac_status"); }
{ (eval echo "$as_me:1551: \"$ac_compiler -v </dev/null >&5\"") >&5 { (eval echo "$as_me:1553: \"$ac_compiler -v </dev/null >&5\"") >&5
(eval $ac_compiler -v </dev/null >&5) 2>&5 (eval $ac_compiler -v </dev/null >&5) 2>&5
ac_status=$? ac_status=$?
echo "$as_me:1554: \$? = $ac_status" >&5 echo "$as_me:1556: \$? = $ac_status" >&5
(exit "$ac_status"); } (exit "$ac_status"); }
{ (eval echo "$as_me:1556: \"$ac_compiler -V </dev/null >&5\"") >&5 { (eval echo "$as_me:1558: \"$ac_compiler -V </dev/null >&5\"") >&5
(eval $ac_compiler -V </dev/null >&5) 2>&5 (eval $ac_compiler -V </dev/null >&5) 2>&5
ac_status=$? ac_status=$?
echo "$as_me:1559: \$? = $ac_status" >&5 echo "$as_me:1561: \$? = $ac_status" >&5
(exit "$ac_status"); } (exit "$ac_status"); }
cat >"conftest.$ac_ext" <<_ACEOF cat >"conftest.$ac_ext" <<_ACEOF
#line 1563 "configure" #line 1565 "configure"
#include "confdefs.h" #include "confdefs.h"
int int
main (void) main (void)
{ {
; ;
return 0; return 0;
} }
_ACEOF _ACEOF
ac_clean_files_save=$ac_clean_files ac_clean_files_save=$ac_clean_files
ac_clean_files="$ac_clean_files a.out a.exe" ac_clean_files="$ac_clean_files a.out a.exe"
# Try to create an executable without -o first, disregard a.out. # Try to create an executable without -o first, disregard a.out.
# It will help us diagnose broken compilers, and finding out an intuition # It will help us diagnose broken compilers, and finding out an intuition
# of exeext. # of exeext.
echo "$as_me:1579: checking for C compiler default output" >&5 echo "$as_me:1581: checking for C compiler default output" >&5
echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
ac_link_default=`echo "$ac_link" | sed 's/ -o *"conftest[^"]*"//'` ac_link_default=`echo "$ac_link" | sed 's/ -o *"conftest[^"]*"//'`
if { (eval echo "$as_me:1582: \"$ac_link_default\"") >&5 if { (eval echo "$as_me:1584: \"$ac_link_default\"") >&5
(eval $ac_link_default) 2>&5 (eval $ac_link_default) 2>&5
ac_status=$? ac_status=$?
echo "$as_me:1585: \$? = $ac_status" >&5 echo "$as_me:1587: \$? = $ac_status" >&5
(exit "$ac_status"); }; then (exit "$ac_status"); }; then
# Find the output, starting from the most likely. This scheme is # Find the output, starting from the most likely. This scheme is
# not robust to junk in `.', hence go to wildcards (a.*) only as a last # not robust to junk in `.', hence go to wildcards (a.*) only as a last
# resort. # resort.
for ac_file in `ls a.exe conftest.exe 2>/dev/null; for ac_file in `ls a.exe conftest.exe 2>/dev/null;
ls a.out conftest 2>/dev/null; ls a.out conftest 2>/dev/null;
ls a.* conftest.* 2>/dev/null`; do ls a.* conftest.* 2>/dev/null`; do
case $ac_file in case $ac_file in
*.$ac_ext | *.xcoff | *.tds | *.d | *.dbg | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; *.$ac_ext | *.xcoff | *.tds | *.d | *.dbg | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
a.out ) # We found the default executable, but exeext='' is most a.out ) # We found the default executable, but exeext='' is most
skipping to change at line 1608 skipping to change at line 1610
*.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
# FIXME: I believe we export ac_cv_exeext for Libtool --akim. # FIXME: I believe we export ac_cv_exeext for Libtool --akim.
export ac_cv_exeext export ac_cv_exeext
break;; break;;
* ) break;; * ) break;;
esac esac
done done
else else
echo "$as_me: failed program was:" >&5 echo "$as_me: failed program was:" >&5
cat "conftest.$ac_ext" >&5 cat "conftest.$ac_ext" >&5
{ { echo "$as_me:1608: error: C compiler cannot create executables" >&5 { { echo "$as_me:1610: error: C compiler cannot create executables" >&5
echo "$as_me: error: C compiler cannot create executables" >&2;} echo "$as_me: error: C compiler cannot create executables" >&2;}
{ (exit 77); exit 77; }; } { (exit 77); exit 77; }; }
fi fi
ac_exeext=$ac_cv_exeext ac_exeext=$ac_cv_exeext
echo "$as_me:1614: result: $ac_file" >&5 echo "$as_me:1616: result: $ac_file" >&5
echo "${ECHO_T}$ac_file" >&6 echo "${ECHO_T}$ac_file" >&6
# Check the compiler produces executables we can run. If not, either # Check the compiler produces executables we can run. If not, either
# the compiler is broken, or we cross compile. # the compiler is broken, or we cross compile.
echo "$as_me:1619: checking whether the C compiler works" >&5 echo "$as_me:1621: checking whether the C compiler works" >&5
echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
# FIXME: These cross compiler hacks should be removed for Autoconf 3.0 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
# If not cross compiling, check that we can run a simple program. # If not cross compiling, check that we can run a simple program.
if test "$cross_compiling" != yes; then if test "$cross_compiling" != yes; then
if { ac_try='./$ac_file' if { ac_try='./$ac_file'
{ (eval echo "$as_me:1625: \"$ac_try\"") >&5 { (eval echo "$as_me:1627: \"$ac_try\"") >&5
(eval $ac_try) 2>&5 (eval $ac_try) 2>&5
ac_status=$? ac_status=$?
echo "$as_me:1628: \$? = $ac_status" >&5 echo "$as_me:1630: \$? = $ac_status" >&5
(exit "$ac_status"); }; }; then (exit "$ac_status"); }; }; then
cross_compiling=no cross_compiling=no
else else
if test "$cross_compiling" = maybe; then if test "$cross_compiling" = maybe; then
cross_compiling=yes cross_compiling=yes
else else
{ { echo "$as_me:1635: error: cannot run C compiled programs. { { echo "$as_me:1637: error: cannot run C compiled programs.
If you meant to cross compile, use \`--host'." >&5 If you meant to cross compile, use \`--host'." >&5
echo "$as_me: error: cannot run C compiled programs. echo "$as_me: error: cannot run C compiled programs.
If you meant to cross compile, use \`--host'." >&2;} If you meant to cross compile, use \`--host'." >&2;}
{ (exit 1); exit 1; }; } { (exit 1); exit 1; }; }
fi fi
fi fi
fi fi
echo "$as_me:1643: result: yes" >&5 echo "$as_me:1645: result: yes" >&5
echo "${ECHO_T}yes" >&6 echo "${ECHO_T}yes" >&6
rm -f a.out a.exe "conftest$ac_cv_exeext" rm -f a.out a.exe "conftest$ac_cv_exeext"
ac_clean_files=$ac_clean_files_save ac_clean_files=$ac_clean_files_save
# Check the compiler produces executables we can run. If not, either # Check the compiler produces executables we can run. If not, either
# the compiler is broken, or we cross compile. # the compiler is broken, or we cross compile.
echo "$as_me:1650: checking whether we are cross compiling" >&5 echo "$as_me:1652: checking whether we are cross compiling" >&5
echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
echo "$as_me:1652: result: $cross_compiling" >&5 echo "$as_me:1654: result: $cross_compiling" >&5
echo "${ECHO_T}$cross_compiling" >&6 echo "${ECHO_T}$cross_compiling" >&6
echo "$as_me:1655: checking for executable suffix" >&5 echo "$as_me:1657: checking for executable suffix" >&5
echo $ECHO_N "checking for executable suffix... $ECHO_C" >&6 echo $ECHO_N "checking for executable suffix... $ECHO_C" >&6
if { (eval echo "$as_me:1657: \"$ac_link\"") >&5 if { (eval echo "$as_me:1659: \"$ac_link\"") >&5
(eval $ac_link) 2>&5 (eval $ac_link) 2>&5
ac_status=$? ac_status=$?
echo "$as_me:1660: \$? = $ac_status" >&5 echo "$as_me:1662: \$? = $ac_status" >&5
(exit "$ac_status"); }; then (exit "$ac_status"); }; then
# If both `conftest.exe' and `conftest' are `present' (well, observable) # If both `conftest.exe' and `conftest' are `present' (well, observable)
# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
# work properly (i.e., refer to `conftest.exe'), while it won't with # work properly (i.e., refer to `conftest.exe'), while it won't with
# `rm'. # `rm'.
for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do
case $ac_file in case $ac_file in
*.$ac_ext | *.xcoff | *.tds | *.d | *.dbg | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; *.$ac_ext | *.xcoff | *.tds | *.d | *.dbg | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
*.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
export ac_cv_exeext export ac_cv_exeext
break;; break;;
* ) break;; * ) break;;
esac esac
done done
else else
{ { echo "$as_me:1676: error: cannot compute EXEEXT: cannot compile and link" >&5 { { echo "$as_me:1678: error: cannot compute EXEEXT: cannot compile and link" >&5
echo "$as_me: error: cannot compute EXEEXT: cannot compile and link" >&2;} echo "$as_me: error: cannot compute EXEEXT: cannot compile and link" >&2;}
{ (exit 1); exit 1; }; } { (exit 1); exit 1; }; }
fi fi
rm -f "conftest$ac_cv_exeext" rm -f "conftest$ac_cv_exeext"
echo "$as_me:1682: result: $ac_cv_exeext" >&5 echo "$as_me:1684: result: $ac_cv_exeext" >&5
echo "${ECHO_T}$ac_cv_exeext" >&6 echo "${ECHO_T}$ac_cv_exeext" >&6
rm -f "conftest.$ac_ext" rm -f "conftest.$ac_ext"
EXEEXT=$ac_cv_exeext EXEEXT=$ac_cv_exeext
ac_exeext=$EXEEXT ac_exeext=$EXEEXT
echo "$as_me:1688: checking for object suffix" >&5 echo "$as_me:1690: checking for object suffix" >&5
echo $ECHO_N "checking for object suffix... $ECHO_C" >&6 echo $ECHO_N "checking for object suffix... $ECHO_C" >&6
if test "${ac_cv_objext+set}" = set; then if test "${ac_cv_objext+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6 echo $ECHO_N "(cached) $ECHO_C" >&6
else else
cat >"conftest.$ac_ext" <<_ACEOF cat >"conftest.$ac_ext" <<_ACEOF
#line 1694 "configure" #line 1696 "configure"
#include "confdefs.h" #include "confdefs.h"
int int
main (void) main (void)
{ {
; ;
return 0; return 0;
} }
_ACEOF _ACEOF
rm -f conftest.o conftest.obj rm -f conftest.o conftest.obj
if { (eval echo "$as_me:1706: \"$ac_compile\"") >&5 if { (eval echo "$as_me:1708: \"$ac_compile\"") >&5
(eval $ac_compile) 2>&5 (eval $ac_compile) 2>&5
ac_status=$? ac_status=$?
echo "$as_me:1709: \$? = $ac_status" >&5 echo "$as_me:1711: \$? = $ac_status" >&5
(exit "$ac_status"); }; then (exit "$ac_status"); }; then
for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
case $ac_file in case $ac_file in
*.$ac_ext | *.xcoff | *.tds | *.d | *.dbg | *.pdb | *.xSYM | *.map | *.inf ) ;; *.$ac_ext | *.xcoff | *.tds | *.d | *.dbg | *.pdb | *.xSYM | *.map | *.inf ) ;;
*) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
break;; break;;
esac esac
done done
else else
echo "$as_me: failed program was:" >&5 echo "$as_me: failed program was:" >&5
cat "conftest.$ac_ext" >&5 cat "conftest.$ac_ext" >&5
{ { echo "$as_me:1721: error: cannot compute OBJEXT: cannot compile" >&5 { { echo "$as_me:1723: error: cannot compute OBJEXT: cannot compile" >&5
echo "$as_me: error: cannot compute OBJEXT: cannot compile" >&2;} echo "$as_me: error: cannot compute OBJEXT: cannot compile" >&2;}
{ (exit 1); exit 1; }; } { (exit 1); exit 1; }; }
fi fi
rm -f "conftest.$ac_cv_objext" "conftest.$ac_ext" rm -f "conftest.$ac_cv_objext" "conftest.$ac_ext"
fi fi
echo "$as_me:1728: result: $ac_cv_objext" >&5 echo "$as_me:1730: result: $ac_cv_objext" >&5
echo "${ECHO_T}$ac_cv_objext" >&6 echo "${ECHO_T}$ac_cv_objext" >&6
OBJEXT=$ac_cv_objext OBJEXT=$ac_cv_objext
ac_objext=$OBJEXT ac_objext=$OBJEXT
echo "$as_me:1732: checking whether we are using the GNU C compiler" >&5 echo "$as_me:1734: 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 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 if test "${ac_cv_c_compiler_gnu+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6 echo $ECHO_N "(cached) $ECHO_C" >&6
else else
cat >"conftest.$ac_ext" <<_ACEOF cat >"conftest.$ac_ext" <<_ACEOF
#line 1738 "configure" #line 1740 "configure"
#include "confdefs.h" #include "confdefs.h"
int int
main (void) main (void)
{ {
#ifndef __GNUC__ #ifndef __GNUC__
choke me choke me
#endif #endif
; ;
return 0; return 0;
} }
_ACEOF _ACEOF
rm -f "conftest.$ac_objext" rm -f "conftest.$ac_objext"
if { (eval echo "$as_me:1753: \"$ac_compile\"") >&5 if { (eval echo "$as_me:1755: \"$ac_compile\"") >&5
(eval $ac_compile) 2>&5 (eval $ac_compile) 2>&5
ac_status=$? ac_status=$?
echo "$as_me:1756: \$? = $ac_status" >&5 echo "$as_me:1758: \$? = $ac_status" >&5
(exit "$ac_status"); } && (exit "$ac_status"); } &&
{ ac_try='test -s "conftest.$ac_objext"' { ac_try='test -s "conftest.$ac_objext"'
{ (eval echo "$as_me:1759: \"$ac_try\"") >&5 { (eval echo "$as_me:1761: \"$ac_try\"") >&5
(eval $ac_try) 2>&5 (eval $ac_try) 2>&5
ac_status=$? ac_status=$?
echo "$as_me:1762: \$? = $ac_status" >&5 echo "$as_me:1764: \$? = $ac_status" >&5
(exit "$ac_status"); }; }; then (exit "$ac_status"); }; }; then
ac_compiler_gnu=yes ac_compiler_gnu=yes
else else
echo "$as_me: failed program was:" >&5 echo "$as_me: failed program was:" >&5
cat "conftest.$ac_ext" >&5 cat "conftest.$ac_ext" >&5
ac_compiler_gnu=no ac_compiler_gnu=no
fi fi
rm -f "conftest.$ac_objext" "conftest.$ac_ext" rm -f "conftest.$ac_objext" "conftest.$ac_ext"
ac_cv_c_compiler_gnu=$ac_compiler_gnu ac_cv_c_compiler_gnu=$ac_compiler_gnu
fi fi
echo "$as_me:1774: result: $ac_cv_c_compiler_gnu" >&5 echo "$as_me:1776: result: $ac_cv_c_compiler_gnu" >&5
echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
GCC=`test $ac_compiler_gnu = yes && echo yes` GCC=`test $ac_compiler_gnu = yes && echo yes`
ac_test_CFLAGS=${CFLAGS+set} ac_test_CFLAGS=${CFLAGS+set}
ac_save_CFLAGS=$CFLAGS ac_save_CFLAGS=$CFLAGS
CFLAGS="-g" CFLAGS="-g"
echo "$as_me:1780: checking whether $CC accepts -g" >&5 echo "$as_me:1782: checking whether $CC accepts -g" >&5
echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
if test "${ac_cv_prog_cc_g+set}" = set; then if test "${ac_cv_prog_cc_g+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6 echo $ECHO_N "(cached) $ECHO_C" >&6
else else
cat >"conftest.$ac_ext" <<_ACEOF cat >"conftest.$ac_ext" <<_ACEOF
#line 1786 "configure" #line 1788 "configure"
#include "confdefs.h" #include "confdefs.h"
int int
main (void) main (void)
{ {
; ;
return 0; return 0;
} }
_ACEOF _ACEOF
rm -f "conftest.$ac_objext" rm -f "conftest.$ac_objext"
if { (eval echo "$as_me:1798: \"$ac_compile\"") >&5 if { (eval echo "$as_me:1800: \"$ac_compile\"") >&5
(eval $ac_compile) 2>&5 (eval $ac_compile) 2>&5
ac_status=$? ac_status=$?
echo "$as_me:1801: \$? = $ac_status" >&5 echo "$as_me:1803: \$? = $ac_status" >&5
(exit "$ac_status"); } && (exit "$ac_status"); } &&
{ ac_try='test -s "conftest.$ac_objext"' { ac_try='test -s "conftest.$ac_objext"'
{ (eval echo "$as_me:1804: \"$ac_try\"") >&5 { (eval echo "$as_me:1806: \"$ac_try\"") >&5
(eval $ac_try) 2>&5 (eval $ac_try) 2>&5
ac_status=$? ac_status=$?
echo "$as_me:1807: \$? = $ac_status" >&5 echo "$as_me:1809: \$? = $ac_status" >&5
(exit "$ac_status"); }; }; then (exit "$ac_status"); }; }; then
ac_cv_prog_cc_g=yes ac_cv_prog_cc_g=yes
else else
echo "$as_me: failed program was:" >&5 echo "$as_me: failed program was:" >&5
cat "conftest.$ac_ext" >&5 cat "conftest.$ac_ext" >&5
ac_cv_prog_cc_g=no ac_cv_prog_cc_g=no
fi fi
rm -f "conftest.$ac_objext" "conftest.$ac_ext" rm -f "conftest.$ac_objext" "conftest.$ac_ext"
fi fi
echo "$as_me:1817: result: $ac_cv_prog_cc_g" >&5 echo "$as_me:1819: result: $ac_cv_prog_cc_g" >&5
echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
if test "$ac_test_CFLAGS" = set; then if test "$ac_test_CFLAGS" = set; then
CFLAGS=$ac_save_CFLAGS CFLAGS=$ac_save_CFLAGS
elif test $ac_cv_prog_cc_g = yes; then elif test $ac_cv_prog_cc_g = yes; then
if test "$GCC" = yes; then if test "$GCC" = yes; then
CFLAGS="-g -O2" CFLAGS="-g -O2"
else else
CFLAGS="-g" CFLAGS="-g"
fi fi
else else
skipping to change at line 1844 skipping to change at line 1846
# Some people use a C++ compiler to compile C. Since we use `exit', # 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 # 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 # 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. # the declaration of exit, since it's the most demanding environment.
cat >"conftest.$ac_ext" <<_ACEOF cat >"conftest.$ac_ext" <<_ACEOF
#ifndef __cplusplus #ifndef __cplusplus
choke me choke me
#endif #endif
_ACEOF _ACEOF
rm -f "conftest.$ac_objext" rm -f "conftest.$ac_objext"
if { (eval echo "$as_me:1844: \"$ac_compile\"") >&5 if { (eval echo "$as_me:1846: \"$ac_compile\"") >&5
(eval $ac_compile) 2>&5 (eval $ac_compile) 2>&5
ac_status=$? ac_status=$?
echo "$as_me:1847: \$? = $ac_status" >&5 echo "$as_me:1849: \$? = $ac_status" >&5
(exit "$ac_status"); } && (exit "$ac_status"); } &&
{ ac_try='test -s "conftest.$ac_objext"' { ac_try='test -s "conftest.$ac_objext"'
{ (eval echo "$as_me:1850: \"$ac_try\"") >&5 { (eval echo "$as_me:1852: \"$ac_try\"") >&5
(eval $ac_try) 2>&5 (eval $ac_try) 2>&5
ac_status=$? ac_status=$?
echo "$as_me:1853: \$? = $ac_status" >&5 echo "$as_me:1855: \$? = $ac_status" >&5
(exit "$ac_status"); }; }; then (exit "$ac_status"); }; }; then
for ac_declaration in \ for ac_declaration in \
''\ ''\
'#include <stdlib.h>' \ '#include <stdlib.h>' \
'extern "C" void std::exit (int) throw (); using std::exit;' \ 'extern "C" void std::exit (int) throw (); using std::exit;' \
'extern "C" void std::exit (int); using std::exit;' \ 'extern "C" void std::exit (int); using std::exit;' \
'extern "C" void exit (int) throw ();' \ 'extern "C" void exit (int) throw ();' \
'extern "C" void exit (int);' \ 'extern "C" void exit (int);' \
'void exit (int);' 'void exit (int);'
do do
cat >"conftest.$ac_ext" <<_ACEOF cat >"conftest.$ac_ext" <<_ACEOF
#line 1865 "configure" #line 1867 "configure"
#include "confdefs.h" #include "confdefs.h"
#include <stdlib.h> #include <stdlib.h>
$ac_declaration $ac_declaration
int int
main (void) main (void)
{ {
exit (42); exit (42);
; ;
return 0; return 0;
} }
_ACEOF _ACEOF
rm -f "conftest.$ac_objext" rm -f "conftest.$ac_objext"
if { (eval echo "$as_me:1878: \"$ac_compile\"") >&5 if { (eval echo "$as_me:1880: \"$ac_compile\"") >&5
(eval $ac_compile) 2>&5 (eval $ac_compile) 2>&5
ac_status=$? ac_status=$?
echo "$as_me:1881: \$? = $ac_status" >&5 echo "$as_me:1883: \$? = $ac_status" >&5
(exit "$ac_status"); } && (exit "$ac_status"); } &&
{ ac_try='test -s "conftest.$ac_objext"' { ac_try='test -s "conftest.$ac_objext"'
{ (eval echo "$as_me:1884: \"$ac_try\"") >&5 { (eval echo "$as_me:1886: \"$ac_try\"") >&5
(eval $ac_try) 2>&5 (eval $ac_try) 2>&5
ac_status=$? ac_status=$?
echo "$as_me:1887: \$? = $ac_status" >&5 echo "$as_me:1889: \$? = $ac_status" >&5
(exit "$ac_status"); }; }; then (exit "$ac_status"); }; }; then
: :
else else
echo "$as_me: failed program was:" >&5 echo "$as_me: failed program was:" >&5
cat "conftest.$ac_ext" >&5 cat "conftest.$ac_ext" >&5
continue continue
fi fi
rm -f "conftest.$ac_objext" "conftest.$ac_ext" rm -f "conftest.$ac_objext" "conftest.$ac_ext"
cat >"conftest.$ac_ext" <<_ACEOF cat >"conftest.$ac_ext" <<_ACEOF
#line 1897 "configure" #line 1899 "configure"
#include "confdefs.h" #include "confdefs.h"
$ac_declaration $ac_declaration
int int
main (void) main (void)
{ {
exit (42); exit (42);
; ;
return 0; return 0;
} }
_ACEOF _ACEOF
rm -f "conftest.$ac_objext" rm -f "conftest.$ac_objext"
if { (eval echo "$as_me:1909: \"$ac_compile\"") >&5 if { (eval echo "$as_me:1911: \"$ac_compile\"") >&5
(eval $ac_compile) 2>&5 (eval $ac_compile) 2>&5
ac_status=$? ac_status=$?
echo "$as_me:1912: \$? = $ac_status" >&5 echo "$as_me:1914: \$? = $ac_status" >&5
(exit "$ac_status"); } && (exit "$ac_status"); } &&
{ ac_try='test -s "conftest.$ac_objext"' { ac_try='test -s "conftest.$ac_objext"'
{ (eval echo "$as_me:1915: \"$ac_try\"") >&5 { (eval echo "$as_me:1917: \"$ac_try\"") >&5
(eval $ac_try) 2>&5 (eval $ac_try) 2>&5
ac_status=$? ac_status=$?
echo "$as_me:1918: \$? = $ac_status" >&5 echo "$as_me:1920: \$? = $ac_status" >&5
(exit "$ac_status"); }; }; then (exit "$ac_status"); }; }; then
break break
else else
echo "$as_me: failed program was:" >&5 echo "$as_me: failed program was:" >&5
cat "conftest.$ac_ext" >&5 cat "conftest.$ac_ext" >&5
fi fi
rm -f "conftest.$ac_objext" "conftest.$ac_ext" rm -f "conftest.$ac_objext" "conftest.$ac_ext"
done done
rm -rf conftest* rm -rf conftest*
if test -n "$ac_declaration"; then if test -n "$ac_declaration"; then
skipping to change at line 1948 skipping to change at line 1950
rm -f "conftest.$ac_objext" "conftest.$ac_ext" rm -f "conftest.$ac_objext" "conftest.$ac_ext"
ac_ext=c ac_ext=c
ac_cpp='$CPP $CPPFLAGS' ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS "conftest.$ac_ext" >&5' ac_compile='$CC -c $CFLAGS $CPPFLAGS "conftest.$ac_ext" >&5'
ac_link='$CC -o "conftest$ac_exeext" $CFLAGS $CPPFLAGS $LDFLAGS "conftest.$ac_ex t" $LIBS >&5' ac_link='$CC -o "conftest$ac_exeext" $CFLAGS $CPPFLAGS $LDFLAGS "conftest.$ac_ex t" $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu ac_compiler_gnu=$ac_cv_c_compiler_gnu
ac_main_return="return" ac_main_return="return"
GCC_VERSION=none GCC_VERSION=none
if test "$GCC" = yes ; then if test "$GCC" = yes ; then
echo "$as_me:1948: checking version of $CC" >&5 echo "$as_me:1950: checking version of $CC" >&5
echo $ECHO_N "checking version of $CC... $ECHO_C" >&6 echo $ECHO_N "checking version of $CC... $ECHO_C" >&6
GCC_VERSION="`${CC} --version 2>/dev/null | sed -e '2,$d' -e 's/^.*(GCC[^ )]*) //' -e 's/^.*(Debian[^)]*) //' -e 's/^[^0-9.]*//' -e 's/[^0-9.].*//'`" GCC_VERSION="`${CC} --version 2>/dev/null | sed -e '2,$d' -e 's/^.*(GCC[^ )]*) //' -e 's/^.*(Debian[^)]*) //' -e 's/^[^0-9.]*//' -e 's/[^0-9.].*//'`"
test -z "$GCC_VERSION" && GCC_VERSION=unknown test -z "$GCC_VERSION" && GCC_VERSION=unknown
echo "$as_me:1952: result: $GCC_VERSION" >&5 echo "$as_me:1954: result: $GCC_VERSION" >&5
echo "${ECHO_T}$GCC_VERSION" >&6 echo "${ECHO_T}$GCC_VERSION" >&6
fi fi
INTEL_COMPILER=no INTEL_COMPILER=no
if test "$GCC" = yes ; then if test "$GCC" = yes ; then
case "$host_os" in case "$host_os" in
(linux*|gnu*) (linux*|gnu*)
echo "$as_me:1961: checking if this is really Intel C compiler" > &5 echo "$as_me:1963: checking if this is really Intel C compiler" > &5
echo $ECHO_N "checking if this is really Intel C compiler... $ECHO_C" >&6 echo $ECHO_N "checking if this is really Intel C compiler... $ECHO_C" >&6
cf_save_CFLAGS="$CFLAGS" cf_save_CFLAGS="$CFLAGS"
CFLAGS="$CFLAGS -no-gcc" CFLAGS="$CFLAGS -no-gcc"
cat >"conftest.$ac_ext" <<_ACEOF cat >"conftest.$ac_ext" <<_ACEOF
#line 1966 "configure" #line 1968 "configure"
#include "confdefs.h" #include "confdefs.h"
int int
main (void) main (void)
{ {
#ifdef __INTEL_COMPILER #ifdef __INTEL_COMPILER
#else #else
make an error make an error
#endif #endif
; ;
return 0; return 0;
} }
_ACEOF _ACEOF
rm -f "conftest.$ac_objext" rm -f "conftest.$ac_objext"
if { (eval echo "$as_me:1983: \"$ac_compile\"") >&5 if { (eval echo "$as_me:1985: \"$ac_compile\"") >&5
(eval $ac_compile) 2>&5 (eval $ac_compile) 2>&5
ac_status=$? ac_status=$?
echo "$as_me:1986: \$? = $ac_status" >&5 echo "$as_me:1988: \$? = $ac_status" >&5
(exit "$ac_status"); } && (exit "$ac_status"); } &&
{ ac_try='test -s "conftest.$ac_objext"' { ac_try='test -s "conftest.$ac_objext"'
{ (eval echo "$as_me:1989: \"$ac_try\"") >&5 { (eval echo "$as_me:1991: \"$ac_try\"") >&5
(eval $ac_try) 2>&5 (eval $ac_try) 2>&5
ac_status=$? ac_status=$?
echo "$as_me:1992: \$? = $ac_status" >&5 echo "$as_me:1994: \$? = $ac_status" >&5
(exit "$ac_status"); }; }; then (exit "$ac_status"); }; }; then
INTEL_COMPILER=yes INTEL_COMPILER=yes
cf_save_CFLAGS="$cf_save_CFLAGS -we147" cf_save_CFLAGS="$cf_save_CFLAGS -we147"
else else
echo "$as_me: failed program was:" >&5 echo "$as_me: failed program was:" >&5
cat "conftest.$ac_ext" >&5 cat "conftest.$ac_ext" >&5
fi fi
rm -f "conftest.$ac_objext" "conftest.$ac_ext" rm -f "conftest.$ac_objext" "conftest.$ac_ext"
CFLAGS="$cf_save_CFLAGS" CFLAGS="$cf_save_CFLAGS"
echo "$as_me:2003: result: $INTEL_COMPILER" >&5 echo "$as_me:2005: result: $INTEL_COMPILER" >&5
echo "${ECHO_T}$INTEL_COMPILER" >&6 echo "${ECHO_T}$INTEL_COMPILER" >&6
;; ;;
esac esac
fi fi
CLANG_COMPILER=no CLANG_COMPILER=no
if test "$GCC" = yes ; then if test "$GCC" = yes ; then
echo "$as_me:2012: checking if this is really Clang C compiler" >&5 echo "$as_me:2014: checking if this is really Clang C compiler" >&5
echo $ECHO_N "checking if this is really Clang C compiler... $ECHO_C" >&6 echo $ECHO_N "checking if this is really Clang C compiler... $ECHO_C" >&6
cf_save_CFLAGS="$CFLAGS" cf_save_CFLAGS="$CFLAGS"
cat >"conftest.$ac_ext" <<_ACEOF cat >"conftest.$ac_ext" <<_ACEOF
#line 2016 "configure" #line 2018 "configure"
#include "confdefs.h" #include "confdefs.h"
int int
main (void) main (void)
{ {
#ifdef __clang__ #ifdef __clang__
#else #else
make an error make an error
#endif #endif
; ;
return 0; return 0;
} }
_ACEOF _ACEOF
rm -f "conftest.$ac_objext" rm -f "conftest.$ac_objext"
if { (eval echo "$as_me:2033: \"$ac_compile\"") >&5 if { (eval echo "$as_me:2035: \"$ac_compile\"") >&5
(eval $ac_compile) 2>&5 (eval $ac_compile) 2>&5
ac_status=$? ac_status=$?
echo "$as_me:2036: \$? = $ac_status" >&5 echo "$as_me:2038: \$? = $ac_status" >&5
(exit "$ac_status"); } && (exit "$ac_status"); } &&
{ ac_try='test -s "conftest.$ac_objext"' { ac_try='test -s "conftest.$ac_objext"'
{ (eval echo "$as_me:2039: \"$ac_try\"") >&5 { (eval echo "$as_me:2041: \"$ac_try\"") >&5
(eval $ac_try) 2>&5 (eval $ac_try) 2>&5
ac_status=$? ac_status=$?
echo "$as_me:2042: \$? = $ac_status" >&5 echo "$as_me:2044: \$? = $ac_status" >&5
(exit "$ac_status"); }; }; then (exit "$ac_status"); }; }; then
CLANG_COMPILER=yes CLANG_COMPILER=yes
else else
echo "$as_me: failed program was:" >&5 echo "$as_me: failed program was:" >&5
cat "conftest.$ac_ext" >&5 cat "conftest.$ac_ext" >&5
fi fi
rm -f "conftest.$ac_objext" "conftest.$ac_ext" rm -f "conftest.$ac_objext" "conftest.$ac_ext"
CFLAGS="$cf_save_CFLAGS" CFLAGS="$cf_save_CFLAGS"
echo "$as_me:2052: result: $CLANG_COMPILER" >&5 echo "$as_me:2054: result: $CLANG_COMPILER" >&5
echo "${ECHO_T}$CLANG_COMPILER" >&6 echo "${ECHO_T}$CLANG_COMPILER" >&6
fi fi
CLANG_VERSION=none CLANG_VERSION=none
if test "x$CLANG_COMPILER" = "xyes" ; then if test "x$CLANG_COMPILER" = "xyes" ; then
case "$CC" in case "$CC" in
(c[1-9][0-9]|*/c[1-9][0-9]) (c[1-9][0-9]|*/c[1-9][0-9])
{ echo "$as_me:2061: WARNING: replacing broken compiler alias $CC " >&5 { echo "$as_me:2063: WARNING: replacing broken compiler alias $CC " >&5
echo "$as_me: WARNING: replacing broken compiler alias $CC" >&2;} echo "$as_me: WARNING: replacing broken compiler alias $CC" >&2;}
CFLAGS="$CFLAGS -std=`echo "$CC" | sed -e 's%.*/%%'`" CFLAGS="$CFLAGS -std=`echo "$CC" | sed -e 's%.*/%%'`"
CC=clang CC=clang
;; ;;
esac esac
echo "$as_me:2068: checking version of $CC" >&5 echo "$as_me:2070: checking version of $CC" >&5
echo $ECHO_N "checking version of $CC... $ECHO_C" >&6 echo $ECHO_N "checking version of $CC... $ECHO_C" >&6
CLANG_VERSION="`$CC --version 2>/dev/null | sed -e '2,$d' -e 's/^.*(CLANG [^)]*) //' -e 's/^.*(Debian[^)]*) //' -e 's/^[^0-9.]*//' -e 's/[^0-9.].*//'`" CLANG_VERSION="`$CC --version 2>/dev/null | sed -e '2,$d' -e 's/^.*(CLANG [^)]*) //' -e 's/^.*(Debian[^)]*) //' -e 's/^[^0-9.]*//' -e 's/[^0-9.].*//'`"
test -z "$CLANG_VERSION" && CLANG_VERSION=unknown test -z "$CLANG_VERSION" && CLANG_VERSION=unknown
echo "$as_me:2072: result: $CLANG_VERSION" >&5 echo "$as_me:2074: result: $CLANG_VERSION" >&5
echo "${ECHO_T}$CLANG_VERSION" >&6 echo "${ECHO_T}$CLANG_VERSION" >&6
for cf_clang_opt in \ for cf_clang_opt in \
-Qunused-arguments \ -Qunused-arguments \
-Wno-error=implicit-function-declaration -Wno-error=implicit-function-declaration
do do
echo "$as_me:2079: checking if option $cf_clang_opt works" >&5 echo "$as_me:2081: checking if option $cf_clang_opt works" >&5
echo $ECHO_N "checking if option $cf_clang_opt works... $ECHO_C" >&6 echo $ECHO_N "checking if option $cf_clang_opt works... $ECHO_C" >&6
cf_save_CFLAGS="$CFLAGS" cf_save_CFLAGS="$CFLAGS"
CFLAGS="$CFLAGS $cf_clang_opt" CFLAGS="$CFLAGS $cf_clang_opt"
cat >"conftest.$ac_ext" <<_ACEOF cat >"conftest.$ac_ext" <<_ACEOF
#line 2084 "configure" #line 2086 "configure"
#include "confdefs.h" #include "confdefs.h"
#include <stdio.h> #include <stdio.h>
int int
main (void) main (void)
{ {
printf("hello!\\n"); printf("hello!\\n");
; ;
return 0; return 0;
} }
_ACEOF _ACEOF
rm -f "conftest.$ac_objext" "conftest$ac_exeext" rm -f "conftest.$ac_objext" "conftest$ac_exeext"
if { (eval echo "$as_me:2098: \"$ac_link\"") >&5 if { (eval echo "$as_me:2100: \"$ac_link\"") >&5
(eval $ac_link) 2>&5 (eval $ac_link) 2>&5
ac_status=$? ac_status=$?
echo "$as_me:2101: \$? = $ac_status" >&5 echo "$as_me:2103: \$? = $ac_status" >&5
(exit "$ac_status"); } && (exit "$ac_status"); } &&
{ ac_try='test -s "conftest$ac_exeext"' { ac_try='test -s "conftest$ac_exeext"'
{ (eval echo "$as_me:2104: \"$ac_try\"") >&5 { (eval echo "$as_me:2106: \"$ac_try\"") >&5
(eval $ac_try) 2>&5 (eval $ac_try) 2>&5
ac_status=$? ac_status=$?
echo "$as_me:2107: \$? = $ac_status" >&5 echo "$as_me:2109: \$? = $ac_status" >&5
(exit "$ac_status"); }; }; then (exit "$ac_status"); }; }; then
cf_clang_optok=yes cf_clang_optok=yes
else else
echo "$as_me: failed program was:" >&5 echo "$as_me: failed program was:" >&5
cat "conftest.$ac_ext" >&5 cat "conftest.$ac_ext" >&5
cf_clang_optok=no cf_clang_optok=no
fi fi
rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext" rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
echo "$as_me:2118: result: $cf_clang_optok" >&5 echo "$as_me:2120: result: $cf_clang_optok" >&5
echo "${ECHO_T}$cf_clang_optok" >&6 echo "${ECHO_T}$cf_clang_optok" >&6
CFLAGS="$cf_save_CFLAGS" CFLAGS="$cf_save_CFLAGS"
if test "$cf_clang_optok" = yes; then if test "$cf_clang_optok" = yes; then
test -n "$verbose" && echo " adding option $cf_clang_o pt" 1>&6 test -n "$verbose" && echo " adding option $cf_clang_o pt" 1>&6
echo "${as_me:-configure}:2124: testing adding option $cf_clang_opt ..." 1>&5 echo "${as_me:-configure}:2126: testing adding option $cf_clang_opt ..." 1>&5
test -n "$CFLAGS" && CFLAGS="$CFLAGS " test -n "$CFLAGS" && CFLAGS="$CFLAGS "
CFLAGS="${CFLAGS}$cf_clang_opt" CFLAGS="${CFLAGS}$cf_clang_opt"
fi fi
done done
fi fi
echo "$as_me:2133: checking for $CC option to accept ANSI C" >&5 echo "$as_me:2135: checking for $CC option to accept ANSI C" >&5
echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
if test "${ac_cv_prog_cc_stdc+set}" = set; then if test "${ac_cv_prog_cc_stdc+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6 echo $ECHO_N "(cached) $ECHO_C" >&6
else else
ac_cv_prog_cc_stdc=no ac_cv_prog_cc_stdc=no
ac_save_CC=$CC ac_save_CC=$CC
cat >"conftest.$ac_ext" <<_ACEOF cat >"conftest.$ac_ext" <<_ACEOF
#line 2141 "configure" #line 2143 "configure"
#include "confdefs.h" #include "confdefs.h"
#include <stdarg.h> #include <stdarg.h>
#include <stdio.h> #include <stdio.h>
#include <sys/types.h> #include <sys/types.h>
#include <sys/stat.h> #include <sys/stat.h>
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
struct buf { int x; }; struct buf { int x; };
FILE * (*rcsopen) (struct buf *, struct stat *, int); FILE * (*rcsopen) (struct buf *, struct stat *, int);
static char *e (p, i) static char *e (p, i)
char **p; char **p;
skipping to change at line 2190 skipping to change at line 2192
# breaks some systems' header files. # breaks some systems' header files.
# AIX -qlanglvl=ansi # AIX -qlanglvl=ansi
# Ultrix and OSF/1 -std1 # Ultrix and OSF/1 -std1
# HP-UX 10.20 and later -Ae # HP-UX 10.20 and later -Ae
# HP-UX older versions -Aa -D_HPUX_SOURCE # HP-UX older versions -Aa -D_HPUX_SOURCE
# SVR4 -Xc -D__EXTENSIONS__ # SVR4 -Xc -D__EXTENSIONS__
for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIO NS__" for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIO NS__"
do do
CC="$ac_save_CC $ac_arg" CC="$ac_save_CC $ac_arg"
rm -f "conftest.$ac_objext" rm -f "conftest.$ac_objext"
if { (eval echo "$as_me:2190: \"$ac_compile\"") >&5 if { (eval echo "$as_me:2192: \"$ac_compile\"") >&5
(eval $ac_compile) 2>&5 (eval $ac_compile) 2>&5
ac_status=$? ac_status=$?
echo "$as_me:2193: \$? = $ac_status" >&5 echo "$as_me:2195: \$? = $ac_status" >&5
(exit "$ac_status"); } && (exit "$ac_status"); } &&
{ ac_try='test -s "conftest.$ac_objext"' { ac_try='test -s "conftest.$ac_objext"'
{ (eval echo "$as_me:2196: \"$ac_try\"") >&5 { (eval echo "$as_me:2198: \"$ac_try\"") >&5
(eval $ac_try) 2>&5 (eval $ac_try) 2>&5
ac_status=$? ac_status=$?
echo "$as_me:2199: \$? = $ac_status" >&5 echo "$as_me:2201: \$? = $ac_status" >&5
(exit "$ac_status"); }; }; then (exit "$ac_status"); }; }; then
ac_cv_prog_cc_stdc=$ac_arg ac_cv_prog_cc_stdc=$ac_arg
break break
else else
echo "$as_me: failed program was:" >&5 echo "$as_me: failed program was:" >&5
cat "conftest.$ac_ext" >&5 cat "conftest.$ac_ext" >&5
fi fi
rm -f "conftest.$ac_objext" rm -f "conftest.$ac_objext"
done done
rm -f "conftest.$ac_ext" "conftest.$ac_objext" rm -f "conftest.$ac_ext" "conftest.$ac_objext"
CC=$ac_save_CC CC=$ac_save_CC
fi fi
case "x$ac_cv_prog_cc_stdc" in case "x$ac_cv_prog_cc_stdc" in
x|xno) x|xno)
echo "$as_me:2216: result: none needed" >&5 echo "$as_me:2218: result: none needed" >&5
echo "${ECHO_T}none needed" >&6 ;; echo "${ECHO_T}none needed" >&6 ;;
*) *)
echo "$as_me:2219: result: $ac_cv_prog_cc_stdc" >&5 echo "$as_me:2221: result: $ac_cv_prog_cc_stdc" >&5
echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
CC="$CC $ac_cv_prog_cc_stdc" ;; CC="$CC $ac_cv_prog_cc_stdc" ;;
esac esac
# This should have been defined by AC_PROG_CC # This should have been defined by AC_PROG_CC
: "${CC:=cc}" : "${CC:=cc}"
echo "$as_me:2227: checking \$CFLAGS variable" >&5 echo "$as_me:2229: checking \$CFLAGS variable" >&5
echo $ECHO_N "checking \$CFLAGS variable... $ECHO_C" >&6 echo $ECHO_N "checking \$CFLAGS variable... $ECHO_C" >&6
case "x$CFLAGS" in case "x$CFLAGS" in
(*-[IUD]*) (*-[IUD]*)
echo "$as_me:2231: result: broken" >&5 echo "$as_me:2233: result: broken" >&5
echo "${ECHO_T}broken" >&6 echo "${ECHO_T}broken" >&6
{ echo "$as_me:2233: WARNING: your environment uses the CFLAGS variable t o hold CPPFLAGS options" >&5 { echo "$as_me:2235: WARNING: your environment uses the CFLAGS variable t o hold CPPFLAGS options" >&5
echo "$as_me: WARNING: your environment uses the CFLAGS variable to hold CPPFLAG S options" >&2;} echo "$as_me: WARNING: your environment uses the CFLAGS variable to hold CPPFLAG S options" >&2;}
cf_flags="$CFLAGS" cf_flags="$CFLAGS"
CFLAGS= CFLAGS=
for cf_arg in $cf_flags for cf_arg in $cf_flags
do do
cf_fix_cppflags=no cf_fix_cppflags=no
cf_new_cflags= cf_new_cflags=
cf_new_cppflags= cf_new_cppflags=
cf_new_extra_cppflags= cf_new_extra_cppflags=
skipping to change at line 2341 skipping to change at line 2343
if test -n "$cf_new_extra_cppflags" ; then if test -n "$cf_new_extra_cppflags" ; then
test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS " test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags" EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
fi fi
done done
;; ;;
(*) (*)
echo "$as_me:2341: result: ok" >&5 echo "$as_me:2343: result: ok" >&5
echo "${ECHO_T}ok" >&6 echo "${ECHO_T}ok" >&6
;; ;;
esac esac
echo "$as_me:2346: checking \$CC variable" >&5 echo "$as_me:2348: checking \$CC variable" >&5
echo $ECHO_N "checking \$CC variable... $ECHO_C" >&6 echo $ECHO_N "checking \$CC variable... $ECHO_C" >&6
case "$CC" in case "$CC" in
(*[\ \ ]-*) (*[\ \ ]-*)
echo "$as_me:2350: result: broken" >&5 echo "$as_me:2352: result: broken" >&5
echo "${ECHO_T}broken" >&6 echo "${ECHO_T}broken" >&6
{ echo "$as_me:2352: WARNING: your environment uses the CC variable to ho ld CFLAGS/CPPFLAGS options" >&5 { echo "$as_me:2354: WARNING: your environment uses the CC variable to ho ld CFLAGS/CPPFLAGS options" >&5
echo "$as_me: WARNING: your environment uses the CC variable to hold CFLAGS/CPPF LAGS options" >&2;} echo "$as_me: WARNING: your environment uses the CC variable to hold CFLAGS/CPPF LAGS options" >&2;}
# humor him... # humor him...
cf_prog=`echo "$CC" | sed -e 's/ / /g' -e 's/[ ]* / /g' -e 's/[ ]* [ ]-[^ ].*//'` cf_prog=`echo "$CC" | sed -e 's/ / /g' -e 's/[ ]* / /g' -e 's/[ ]* [ ]-[^ ].*//'`
cf_flags=`echo "$CC" | ${AWK:-awk} -v prog="$cf_prog" '{ printf("%s", sub str($0,1+length(prog))); }'` cf_flags=`echo "$CC" | ${AWK:-awk} -v prog="$cf_prog" '{ printf("%s", sub str($0,1+length(prog))); }'`
CC="$cf_prog" CC="$cf_prog"
for cf_arg in $cf_flags for cf_arg in $cf_flags
do do
case "x$cf_arg" in case "x$cf_arg" in
(x-[IUDfgOW]*) (x-[IUDfgOW]*)
skipping to change at line 2469 skipping to change at line 2471
fi fi
;; ;;
(*) (*)
CC="$CC $cf_arg" CC="$CC $cf_arg"
;; ;;
esac esac
done done
test -n "$verbose" && echo " resulting CC: '$CC'" 1>&6 test -n "$verbose" && echo " resulting CC: '$CC'" 1>&6
echo "${as_me:-configure}:2469: testing resulting CC: '$CC' ..." 1>&5 echo "${as_me:-configure}:2471: testing resulting CC: '$CC' ..." 1>&5
test -n "$verbose" && echo " resulting CFLAGS: '$CFLAGS'" 1>&6 test -n "$verbose" && echo " resulting CFLAGS: '$CFLAGS'" 1>&6
echo "${as_me:-configure}:2473: testing resulting CFLAGS: '$CFLAGS' ..." 1>&5 echo "${as_me:-configure}:2475: testing resulting CFLAGS: '$CFLAGS' ..." 1>&5
test -n "$verbose" && echo " resulting CPPFLAGS: '$CPPFLAGS'" 1>&6 test -n "$verbose" && echo " resulting CPPFLAGS: '$CPPFLAGS'" 1>&6
echo "${as_me:-configure}:2477: testing resulting CPPFLAGS: '$CPPFLAGS' ..." 1>& 5 echo "${as_me:-configure}:2479: testing resulting CPPFLAGS: '$CPPFLAGS' ..." 1>& 5
;; ;;
(*) (*)
echo "$as_me:2481: result: ok" >&5 echo "$as_me:2483: result: ok" >&5
echo "${ECHO_T}ok" >&6 echo "${ECHO_T}ok" >&6
;; ;;
esac esac
for ac_prog in ggrep grep for ac_prog in ggrep grep
do do
# Extract the first word of "$ac_prog", so it can be a program name with args. # Extract the first word of "$ac_prog", so it can be a program name with args.
set dummy $ac_prog; ac_word=$2 set dummy $ac_prog; ac_word=$2
echo "$as_me:2490: checking for $ac_word" >&5 echo "$as_me:2492: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
if test "${ac_cv_prog_GREP+set}" = set; then if test "${ac_cv_prog_GREP+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6 echo $ECHO_N "(cached) $ECHO_C" >&6
else else
if test -n "$GREP"; then if test -n "$GREP"; then
ac_cv_prog_GREP="$GREP" # Let the user override the test. ac_cv_prog_GREP="$GREP" # Let the user override the test.
else else
ac_save_IFS=$IFS; IFS=$ac_path_separator ac_save_IFS=$IFS; IFS=$ac_path_separator
ac_dummy="$PATH" ac_dummy="$PATH"
for ac_dir in $ac_dummy; do for ac_dir in $ac_dummy; do
IFS=$ac_save_IFS IFS=$ac_save_IFS
test -z "$ac_dir" && ac_dir=. test -z "$ac_dir" && ac_dir=.
$as_executable_p "$ac_dir/$ac_word" || continue $as_executable_p "$ac_dir/$ac_word" || continue
ac_cv_prog_GREP="$ac_prog" ac_cv_prog_GREP="$ac_prog"
echo "$as_me:2505: found $ac_dir/$ac_word" >&5 echo "$as_me:2507: found $ac_dir/$ac_word" >&5
break break
done done
fi fi
fi fi
GREP=$ac_cv_prog_GREP GREP=$ac_cv_prog_GREP
if test -n "$GREP"; then if test -n "$GREP"; then
echo "$as_me:2513: result: $GREP" >&5 echo "$as_me:2515: result: $GREP" >&5
echo "${ECHO_T}$GREP" >&6 echo "${ECHO_T}$GREP" >&6
else else
echo "$as_me:2516: result: no" >&5 echo "$as_me:2518: result: no" >&5
echo "${ECHO_T}no" >&6 echo "${ECHO_T}no" >&6
fi fi
test -n "$GREP" && break test -n "$GREP" && break
done done
test -n "$GREP" || GREP=": " test -n "$GREP" || GREP=": "
echo "$as_me:2524: checking for egrep" >&5 echo "$as_me:2526: checking for egrep" >&5
echo $ECHO_N "checking for egrep... $ECHO_C" >&6 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
if test "${ac_cv_path_EGREP+set}" = set; then if test "${ac_cv_path_EGREP+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6 echo $ECHO_N "(cached) $ECHO_C" >&6
else else
if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
then ac_cv_path_EGREP="$GREP -E" then ac_cv_path_EGREP="$GREP -E"
else else
for ac_prog in gegrep egrep for ac_prog in gegrep egrep
do do
# Extract the first word of "$ac_prog", so it can be a program name with args. # Extract the first word of "$ac_prog", so it can be a program name with args.
set dummy $ac_prog; ac_word=$2 set dummy $ac_prog; ac_word=$2
echo "$as_me:2536: checking for $ac_word" >&5 echo "$as_me:2538: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
if test "${ac_cv_path_EGREP+set}" = set; then if test "${ac_cv_path_EGREP+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6 echo $ECHO_N "(cached) $ECHO_C" >&6
else else
case $EGREP in case $EGREP in
[\\/]* | ?:[\\/]*) [\\/]* | ?:[\\/]*)
ac_cv_path_EGREP="$EGREP" # Let the user override the test with a path. ac_cv_path_EGREP="$EGREP" # Let the user override the test with a path.
;; ;;
*) *)
ac_save_IFS=$IFS; IFS=$ac_path_separator ac_save_IFS=$IFS; IFS=$ac_path_separator
ac_dummy="$PATH" ac_dummy="$PATH"
for ac_dir in $ac_dummy; do for ac_dir in $ac_dummy; do
IFS=$ac_save_IFS IFS=$ac_save_IFS
test -z "$ac_dir" && ac_dir=. test -z "$ac_dir" && ac_dir=.
if $as_executable_p "$ac_dir/$ac_word"; then if $as_executable_p "$ac_dir/$ac_word"; then
ac_cv_path_EGREP="$ac_dir/$ac_word" ac_cv_path_EGREP="$ac_dir/$ac_word"
echo "$as_me:2553: found $ac_dir/$ac_word" >&5 echo "$as_me:2555: found $ac_dir/$ac_word" >&5
break break
fi fi
done done
;; ;;
esac esac
fi fi
EGREP=$ac_cv_path_EGREP EGREP=$ac_cv_path_EGREP
if test -n "$EGREP"; then if test -n "$EGREP"; then
echo "$as_me:2564: result: $EGREP" >&5 echo "$as_me:2566: result: $EGREP" >&5
echo "${ECHO_T}$EGREP" >&6 echo "${ECHO_T}$EGREP" >&6
else else
echo "$as_me:2567: result: no" >&5 echo "$as_me:2569: result: no" >&5
echo "${ECHO_T}no" >&6 echo "${ECHO_T}no" >&6
fi fi
test -n "$EGREP" && break test -n "$EGREP" && break
done done
test -n "$EGREP" || EGREP=": " test -n "$EGREP" || EGREP=": "
test "x$ac_cv_path_EGREP" = "x:" && { { echo "$as_me:2575: error: cannot fi nd workable egrep" >&5 test "x$ac_cv_path_EGREP" = "x:" && { { echo "$as_me:2577: error: cannot fi nd workable egrep" >&5
echo "$as_me: error: cannot find workable egrep" >&2;} echo "$as_me: error: cannot find workable egrep" >&2;}
{ (exit 1); exit 1; }; } { (exit 1); exit 1; }; }
fi fi
fi fi
echo "$as_me:2580: result: $ac_cv_path_EGREP" >&5 echo "$as_me:2582: result: $ac_cv_path_EGREP" >&5
echo "${ECHO_T}$ac_cv_path_EGREP" >&6 echo "${ECHO_T}$ac_cv_path_EGREP" >&6
EGREP="$ac_cv_path_EGREP" EGREP="$ac_cv_path_EGREP"
ac_ext=c ac_ext=c
ac_cpp='$CPP $CPPFLAGS' ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS "conftest.$ac_ext" >&5' ac_compile='$CC -c $CFLAGS $CPPFLAGS "conftest.$ac_ext" >&5'
ac_link='$CC -o "conftest$ac_exeext" $CFLAGS $CPPFLAGS $LDFLAGS "conftest.$ac_ex t" $LIBS >&5' ac_link='$CC -o "conftest$ac_exeext" $CFLAGS $CPPFLAGS $LDFLAGS "conftest.$ac_ex t" $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu ac_compiler_gnu=$ac_cv_c_compiler_gnu
ac_main_return="return" ac_main_return="return"
echo "$as_me:2590: checking how to run the C preprocessor" >&5 echo "$as_me:2592: checking how to run the C preprocessor" >&5
echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
# On Suns, sometimes $CPP names a directory. # On Suns, sometimes $CPP names a directory.
if test -n "$CPP" && test -d "$CPP"; then if test -n "$CPP" && test -d "$CPP"; then
CPP= CPP=
fi fi
if test -z "$CPP"; then if test -z "$CPP"; then
if test "${ac_cv_prog_CPP+set}" = set; then if test "${ac_cv_prog_CPP+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6 echo $ECHO_N "(cached) $ECHO_C" >&6
else else
# Double quotes because CPP needs to be expanded # Double quotes because CPP needs to be expanded
for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
do do
ac_preproc_ok=false ac_preproc_ok=false
for ac_c_preproc_warn_flag in '' yes for ac_c_preproc_warn_flag in '' yes
do do
# Use a header file that comes with gcc, so configuring glibc # Use a header file that comes with gcc, so configuring glibc
# with a fresh cross-compiler works. # with a fresh cross-compiler works.
# On the NeXT, cc -E runs the code through the compiler's parser, # On the NeXT, cc -E runs the code through the compiler's parser,
# not just through cpp. "Syntax error" is here to catch this case. # not just through cpp. "Syntax error" is here to catch this case.
cat >"conftest.$ac_ext" <<_ACEOF cat >"conftest.$ac_ext" <<_ACEOF
#line 2611 "configure" #line 2613 "configure"
#include "confdefs.h" #include "confdefs.h"
#include <assert.h> #include <assert.h>
Syntax error Syntax error
_ACEOF _ACEOF
if { (eval echo "$as_me:2616: \"$ac_cpp "conftest.$ac_ext"\"") >&5 if { (eval echo "$as_me:2618: \"$ac_cpp "conftest.$ac_ext"\"") >&5
(eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1 (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1
ac_status=$? ac_status=$?
$EGREP -v '^ *\+' conftest.er1 >conftest.err $EGREP -v '^ *\+' conftest.er1 >conftest.err
rm -f conftest.er1 rm -f conftest.er1
cat conftest.err >&5 cat conftest.err >&5
echo "$as_me:2622: \$? = $ac_status" >&5 echo "$as_me:2624: \$? = $ac_status" >&5
(exit "$ac_status"); } >/dev/null; then (exit "$ac_status"); } >/dev/null; then
if test -s conftest.err; then if test -s conftest.err; then
ac_cpp_err=$ac_c_preproc_warn_flag ac_cpp_err=$ac_c_preproc_warn_flag
else else
ac_cpp_err= ac_cpp_err=
fi fi
else else
ac_cpp_err=yes ac_cpp_err=yes
fi fi
if test -z "$ac_cpp_err"; then if test -z "$ac_cpp_err"; then
skipping to change at line 2645 skipping to change at line 2647
echo "$as_me: failed program was:" >&5 echo "$as_me: failed program was:" >&5
cat "conftest.$ac_ext" >&5 cat "conftest.$ac_ext" >&5
# Broken: fails on valid input. # Broken: fails on valid input.
continue continue
fi fi
rm -f conftest.err "conftest.$ac_ext" rm -f conftest.err "conftest.$ac_ext"
# OK, works on sane cases. Now check whether non-existent headers # OK, works on sane cases. Now check whether non-existent headers
# can be detected and how. # can be detected and how.
cat >"conftest.$ac_ext" <<_ACEOF cat >"conftest.$ac_ext" <<_ACEOF
#line 2645 "configure" #line 2647 "configure"
#include "confdefs.h" #include "confdefs.h"
#include <ac_nonexistent.h> #include <ac_nonexistent.h>
_ACEOF _ACEOF
if { (eval echo "$as_me:2649: \"$ac_cpp "conftest.$ac_ext"\"") >&5 if { (eval echo "$as_me:2651: \"$ac_cpp "conftest.$ac_ext"\"") >&5
(eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1 (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1
ac_status=$? ac_status=$?
$EGREP -v '^ *\+' conftest.er1 >conftest.err $EGREP -v '^ *\+' conftest.er1 >conftest.err
rm -f conftest.er1 rm -f conftest.er1
cat conftest.err >&5 cat conftest.err >&5
echo "$as_me:2655: \$? = $ac_status" >&5 echo "$as_me:2657: \$? = $ac_status" >&5
(exit "$ac_status"); } >/dev/null; then (exit "$ac_status"); } >/dev/null; then
if test -s conftest.err; then if test -s conftest.err; then
ac_cpp_err=$ac_c_preproc_warn_flag ac_cpp_err=$ac_c_preproc_warn_flag
else else
ac_cpp_err= ac_cpp_err=
fi fi
else else
ac_cpp_err=yes ac_cpp_err=yes
fi fi
if test -z "$ac_cpp_err"; then if test -z "$ac_cpp_err"; then
skipping to change at line 2692 skipping to change at line 2694
fi fi
done done
ac_cv_prog_CPP=$CPP ac_cv_prog_CPP=$CPP
fi fi
CPP=$ac_cv_prog_CPP CPP=$ac_cv_prog_CPP
else else
ac_cv_prog_CPP=$CPP ac_cv_prog_CPP=$CPP
fi fi
echo "$as_me:2692: result: $CPP" >&5 echo "$as_me:2694: result: $CPP" >&5
echo "${ECHO_T}$CPP" >&6 echo "${ECHO_T}$CPP" >&6
ac_preproc_ok=false ac_preproc_ok=false
for ac_c_preproc_warn_flag in '' yes for ac_c_preproc_warn_flag in '' yes
do do
# Use a header file that comes with gcc, so configuring glibc # Use a header file that comes with gcc, so configuring glibc
# with a fresh cross-compiler works. # with a fresh cross-compiler works.
# On the NeXT, cc -E runs the code through the compiler's parser, # On the NeXT, cc -E runs the code through the compiler's parser,
# not just through cpp. "Syntax error" is here to catch this case. # not just through cpp. "Syntax error" is here to catch this case.
cat >"conftest.$ac_ext" <<_ACEOF cat >"conftest.$ac_ext" <<_ACEOF
#line 2702 "configure" #line 2704 "configure"
#include "confdefs.h" #include "confdefs.h"
#include <assert.h> #include <assert.h>
Syntax error Syntax error
_ACEOF _ACEOF
if { (eval echo "$as_me:2707: \"$ac_cpp "conftest.$ac_ext"\"") >&5 if { (eval echo "$as_me:2709: \"$ac_cpp "conftest.$ac_ext"\"") >&5
(eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1 (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1
ac_status=$? ac_status=$?
$EGREP -v '^ *\+' conftest.er1 >conftest.err $EGREP -v '^ *\+' conftest.er1 >conftest.err
rm -f conftest.er1 rm -f conftest.er1
cat conftest.err >&5 cat conftest.err >&5
echo "$as_me:2713: \$? = $ac_status" >&5 echo "$as_me:2715: \$? = $ac_status" >&5
(exit "$ac_status"); } >/dev/null; then (exit "$ac_status"); } >/dev/null; then
if test -s conftest.err; then if test -s conftest.err; then
ac_cpp_err=$ac_c_preproc_warn_flag ac_cpp_err=$ac_c_preproc_warn_flag
else else
ac_cpp_err= ac_cpp_err=
fi fi
else else
ac_cpp_err=yes ac_cpp_err=yes
fi fi
if test -z "$ac_cpp_err"; then if test -z "$ac_cpp_err"; then
skipping to change at line 2736 skipping to change at line 2738
echo "$as_me: failed program was:" >&5 echo "$as_me: failed program was:" >&5
cat "conftest.$ac_ext" >&5 cat "conftest.$ac_ext" >&5
# Broken: fails on valid input. # Broken: fails on valid input.
continue continue
fi fi
rm -f conftest.err "conftest.$ac_ext" rm -f conftest.err "conftest.$ac_ext"
# OK, works on sane cases. Now check whether non-existent headers # OK, works on sane cases. Now check whether non-existent headers
# can be detected and how. # can be detected and how.
cat >"conftest.$ac_ext" <<_ACEOF cat >"conftest.$ac_ext" <<_ACEOF
#line 2736 "configure" #line 2738 "configure"
#include "confdefs.h" #include "confdefs.h"
#include <ac_nonexistent.h> #include <ac_nonexistent.h>
_ACEOF _ACEOF
if { (eval echo "$as_me:2740: \"$ac_cpp "conftest.$ac_ext"\"") >&5 if { (eval echo "$as_me:2742: \"$ac_cpp "conftest.$ac_ext"\"") >&5
(eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1 (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1
ac_status=$? ac_status=$?
$EGREP -v '^ *\+' conftest.er1 >conftest.err $EGREP -v '^ *\+' conftest.er1 >conftest.err
rm -f conftest.er1 rm -f conftest.er1
cat conftest.err >&5 cat conftest.err >&5
echo "$as_me:2746: \$? = $ac_status" >&5 echo "$as_me:2748: \$? = $ac_status" >&5
(exit "$ac_status"); } >/dev/null; then (exit "$ac_status"); } >/dev/null; then
if test -s conftest.err; then if test -s conftest.err; then
ac_cpp_err=$ac_c_preproc_warn_flag ac_cpp_err=$ac_c_preproc_warn_flag
else else
ac_cpp_err= ac_cpp_err=
fi fi
else else
ac_cpp_err=yes ac_cpp_err=yes
fi fi
if test -z "$ac_cpp_err"; then if test -z "$ac_cpp_err"; then
skipping to change at line 2774 skipping to change at line 2776
break break
fi fi
rm -f conftest.err "conftest.$ac_ext" rm -f conftest.err "conftest.$ac_ext"
done done
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
rm -f conftest.err "conftest.$ac_ext" rm -f conftest.err "conftest.$ac_ext"
if $ac_preproc_ok; then if $ac_preproc_ok; then
: :
else else
{ { echo "$as_me:2774: error: C preprocessor \"$CPP\" fails sanity check" >&5 { { echo "$as_me:2776: error: C preprocessor \"$CPP\" fails sanity check" >&5
echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;} echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
{ (exit 1); exit 1; }; } { (exit 1); exit 1; }; }
fi fi
ac_ext=c ac_ext=c
ac_cpp='$CPP $CPPFLAGS' ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS "conftest.$ac_ext" >&5' ac_compile='$CC -c $CFLAGS $CPPFLAGS "conftest.$ac_ext" >&5'
ac_link='$CC -o "conftest$ac_exeext" $CFLAGS $CPPFLAGS $LDFLAGS "conftest.$ac_ex t" $LIBS >&5' ac_link='$CC -o "conftest$ac_exeext" $CFLAGS $CPPFLAGS $LDFLAGS "conftest.$ac_ex t" $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu ac_compiler_gnu=$ac_cv_c_compiler_gnu
ac_main_return="return" ac_main_return="return"
for ac_prog in mawk gawk nawk awk for ac_prog in mawk gawk nawk awk
do do
# Extract the first word of "$ac_prog", so it can be a program name with args. # Extract the first word of "$ac_prog", so it can be a program name with args.
set dummy $ac_prog; ac_word=$2 set dummy $ac_prog; ac_word=$2
echo "$as_me:2790: checking for $ac_word" >&5 echo "$as_me:2792: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
if test "${ac_cv_prog_AWK+set}" = set; then if test "${ac_cv_prog_AWK+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6 echo $ECHO_N "(cached) $ECHO_C" >&6
else else
if test -n "$AWK"; then if test -n "$AWK"; then
ac_cv_prog_AWK="$AWK" # Let the user override the test. ac_cv_prog_AWK="$AWK" # Let the user override the test.
else else
ac_save_IFS=$IFS; IFS=$ac_path_separator ac_save_IFS=$IFS; IFS=$ac_path_separator
ac_dummy="$PATH" ac_dummy="$PATH"
for ac_dir in $ac_dummy; do for ac_dir in $ac_dummy; do
IFS=$ac_save_IFS IFS=$ac_save_IFS
test -z "$ac_dir" && ac_dir=. test -z "$ac_dir" && ac_dir=.
$as_executable_p "$ac_dir/$ac_word" || continue $as_executable_p "$ac_dir/$ac_word" || continue
ac_cv_prog_AWK="$ac_prog" ac_cv_prog_AWK="$ac_prog"
echo "$as_me:2805: found $ac_dir/$ac_word" >&5 echo "$as_me:2807: found $ac_dir/$ac_word" >&5
break break
done done
fi fi
fi fi
AWK=$ac_cv_prog_AWK AWK=$ac_cv_prog_AWK
if test -n "$AWK"; then if test -n "$AWK"; then
echo "$as_me:2813: result: $AWK" >&5 echo "$as_me:2815: result: $AWK" >&5
echo "${ECHO_T}$AWK" >&6 echo "${ECHO_T}$AWK" >&6
else else
echo "$as_me:2816: result: no" >&5 echo "$as_me:2818: result: no" >&5
echo "${ECHO_T}no" >&6 echo "${ECHO_T}no" >&6
fi fi
test -n "$AWK" && break test -n "$AWK" && break
done done
# Find a good install program. We prefer a C program (faster), # Find a good install program. We prefer a C program (faster),
# so one script is as good as another. But avoid the broken or # so one script is as good as another. But avoid the broken or
# incompatible versions: # incompatible versions:
# SysV /etc/install, /usr/sbin/install # SysV /etc/install, /usr/sbin/install
# SunOS /usr/etc/install # SunOS /usr/etc/install
# IRIX /sbin/install # IRIX /sbin/install
# AIX /bin/install # AIX /bin/install
# AmigaOS /C/install, which installs bootblocks on floppy discs # AmigaOS /C/install, which installs bootblocks on floppy discs
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
# AFS /usr/afsws/bin/install, which mishandles nonexistent args # AFS /usr/afsws/bin/install, which mishandles nonexistent args
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
# ./install, which can be erroneously created by make from ./install.sh. # ./install, which can be erroneously created by make from ./install.sh.
echo "$as_me:2835: checking for a BSD compatible install" >&5 echo "$as_me:2837: checking for a BSD compatible install" >&5
echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6 echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6
if test -z "$INSTALL"; then if test -z "$INSTALL"; then
if test "${ac_cv_path_install+set}" = set; then if test "${ac_cv_path_install+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6 echo $ECHO_N "(cached) $ECHO_C" >&6
else else
ac_save_IFS=$IFS; IFS=$ac_path_separator ac_save_IFS=$IFS; IFS=$ac_path_separator
for ac_dir in $PATH; do for ac_dir in $PATH; do
IFS=$ac_save_IFS IFS=$ac_save_IFS
# Account for people who put trailing slashes in PATH elements. # Account for people who put trailing slashes in PATH elements.
case $ac_dir/ in case $ac_dir/ in
skipping to change at line 2884 skipping to change at line 2886
if test "${ac_cv_path_install+set}" = set; then if test "${ac_cv_path_install+set}" = set; then
INSTALL=$ac_cv_path_install INSTALL=$ac_cv_path_install
else else
# As a last resort, use the slow shell script. We don't cache a # As a last resort, use the slow shell script. We don't cache a
# path for INSTALL within a source directory, because that will # path for INSTALL within a source directory, because that will
# break other packages using the cache if that directory is # break other packages using the cache if that directory is
# removed, or if the path is relative. # removed, or if the path is relative.
INSTALL=$ac_install_sh INSTALL=$ac_install_sh
fi fi
fi fi
echo "$as_me:2884: result: $INSTALL" >&5 echo "$as_me:2886: result: $INSTALL" >&5
echo "${ECHO_T}$INSTALL" >&6 echo "${ECHO_T}$INSTALL" >&6
# Use test -z because SunOS4 sh mishandles braces in ${var-val}. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
# It thinks the first close brace ends the variable substitution. # It thinks the first close brace ends the variable substitution.
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
echo "$as_me:2895: checking whether ln -s works" >&5 echo "$as_me:2897: checking whether ln -s works" >&5
echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
LN_S=$as_ln_s LN_S=$as_ln_s
if test "$LN_S" = "ln -s"; then if test "$LN_S" = "ln -s"; then
echo "$as_me:2899: result: yes" >&5 echo "$as_me:2901: result: yes" >&5
echo "${ECHO_T}yes" >&6 echo "${ECHO_T}yes" >&6
else else
echo "$as_me:2902: result: no, using $LN_S" >&5 echo "$as_me:2904: result: no, using $LN_S" >&5
echo "${ECHO_T}no, using $LN_S" >&6 echo "${ECHO_T}no, using $LN_S" >&6
fi fi
test "$program_prefix" != NONE && test "$program_prefix" != NONE &&
program_transform_name="s,^,$program_prefix,;$program_transform_name" program_transform_name="s,^,$program_prefix,;$program_transform_name"
# Use a double $ so make ignores it. # Use a double $ so make ignores it.
test "$program_suffix" != NONE && test "$program_suffix" != NONE &&
program_transform_name="s,\$,$program_suffix,;$program_transform_name" program_transform_name="s,\$,$program_suffix,;$program_transform_name"
# Double any \ or $. echo might interpret backslashes. # Double any \ or $. echo might interpret backslashes.
# By default was `s,x,x', remove it if useless. # By default was `s,x,x', remove it if useless.
cat <<\_ACEOF >conftest.sed cat <<\_ACEOF >conftest.sed
s/[\\$]/&&/g;s/;s,x,x,$// s/[\\$]/&&/g;s/;s,x,x,$//
_ACEOF _ACEOF
program_transform_name=`echo $program_transform_name | sed -f conftest.sed` program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
rm conftest.sed rm conftest.sed
for ac_prog in lint cppcheck splint for ac_prog in lint cppcheck splint
do do
# Extract the first word of "$ac_prog", so it can be a program name with args. # Extract the first word of "$ac_prog", so it can be a program name with args.
set dummy $ac_prog; ac_word=$2 set dummy $ac_prog; ac_word=$2
echo "$as_me:2923: checking for $ac_word" >&5 echo "$as_me:2925: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
if test "${ac_cv_prog_LINT+set}" = set; then if test "${ac_cv_prog_LINT+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6 echo $ECHO_N "(cached) $ECHO_C" >&6
else else
if test -n "$LINT"; then if test -n "$LINT"; then
ac_cv_prog_LINT="$LINT" # Let the user override the test. ac_cv_prog_LINT="$LINT" # Let the user override the test.
else else
ac_save_IFS=$IFS; IFS=$ac_path_separator ac_save_IFS=$IFS; IFS=$ac_path_separator
ac_dummy="$PATH" ac_dummy="$PATH"
for ac_dir in $ac_dummy; do for ac_dir in $ac_dummy; do
IFS=$ac_save_IFS IFS=$ac_save_IFS
test -z "$ac_dir" && ac_dir=. test -z "$ac_dir" && ac_dir=.
$as_executable_p "$ac_dir/$ac_word" || continue $as_executable_p "$ac_dir/$ac_word" || continue
ac_cv_prog_LINT="$ac_prog" ac_cv_prog_LINT="$ac_prog"
echo "$as_me:2938: found $ac_dir/$ac_word" >&5 echo "$as_me:2940: found $ac_dir/$ac_word" >&5
break break
done done
fi fi
fi fi
LINT=$ac_cv_prog_LINT LINT=$ac_cv_prog_LINT
if test -n "$LINT"; then if test -n "$LINT"; then
echo "$as_me:2946: result: $LINT" >&5 echo "$as_me:2948: result: $LINT" >&5
echo "${ECHO_T}$LINT" >&6 echo "${ECHO_T}$LINT" >&6
else else
echo "$as_me:2949: result: no" >&5 echo "$as_me:2951: result: no" >&5
echo "${ECHO_T}no" >&6 echo "${ECHO_T}no" >&6
fi fi
test -n "$LINT" && break test -n "$LINT" && break
done done
case "x$LINT" in case "x$LINT" in
(xcppcheck|x*/cppcheck) (xcppcheck|x*/cppcheck)
test -z "$LINT_OPTS" && LINT_OPTS="--enable=all" test -z "$LINT_OPTS" && LINT_OPTS="--enable=all"
;; ;;
esac esac
### checks for compiler characteristics ### checks for compiler characteristics
echo "$as_me:2964: checking if the POSIX test-macros are already defined" >&5 echo "$as_me:2966: checking if the POSIX test-macros are already defined" >&5
echo $ECHO_N "checking if the POSIX test-macros are already defined... $ECHO_C" >&6 echo $ECHO_N "checking if the POSIX test-macros are already defined... $ECHO_C" >&6
if test "${cf_cv_posix_visible+set}" = set; then if test "${cf_cv_posix_visible+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6 echo $ECHO_N "(cached) $ECHO_C" >&6
else else
cat >"conftest.$ac_ext" <<_ACEOF cat >"conftest.$ac_ext" <<_ACEOF
#line 2971 "configure" #line 2973 "configure"
#include "confdefs.h" #include "confdefs.h"
#include <stdio.h> #include <stdio.h>
int int
main (void) main (void)
{ {
#if defined(__POSIX_VISIBLE) && ((__POSIX_VISIBLE - 0L) > 0) \ #if defined(__POSIX_VISIBLE) && ((__POSIX_VISIBLE - 0L) > 0) \
&& defined(__XSI_VISIBLE) && ((__XSI_VISIBLE - 0L) > 0) \ && defined(__XSI_VISIBLE) && ((__XSI_VISIBLE - 0L) > 0) \
&& defined(__BSD_VISIBLE) && ((__BSD_VISIBLE - 0L) > 0) \ && defined(__BSD_VISIBLE) && ((__BSD_VISIBLE - 0L) > 0) \
&& defined(__ISO_C_VISIBLE) && ((__ISO_C_VISIBLE - 0L) > 0) && defined(__ISO_C_VISIBLE) && ((__ISO_C_VISIBLE - 0L) > 0)
#error conflicting symbols found #error conflicting symbols found
#endif #endif
; ;
return 0; return 0;
} }
_ACEOF _ACEOF
rm -f "conftest.$ac_objext" rm -f "conftest.$ac_objext"
if { (eval echo "$as_me:2990: \"$ac_compile\"") >&5 if { (eval echo "$as_me:2992: \"$ac_compile\"") >&5
(eval $ac_compile) 2>&5 (eval $ac_compile) 2>&5
ac_status=$? ac_status=$?
echo "$as_me:2993: \$? = $ac_status" >&5 echo "$as_me:2995: \$? = $ac_status" >&5
(exit "$ac_status"); } && (exit "$ac_status"); } &&
{ ac_try='test -s "conftest.$ac_objext"' { ac_try='test -s "conftest.$ac_objext"'
{ (eval echo "$as_me:2996: \"$ac_try\"") >&5 { (eval echo "$as_me:2998: \"$ac_try\"") >&5
(eval $ac_try) 2>&5 (eval $ac_try) 2>&5
ac_status=$? ac_status=$?
echo "$as_me:2999: \$? = $ac_status" >&5 echo "$as_me:3001: \$? = $ac_status" >&5
(exit "$ac_status"); }; }; then (exit "$ac_status"); }; }; then
cf_cv_posix_visible=no cf_cv_posix_visible=no
else else
echo "$as_me: failed program was:" >&5 echo "$as_me: failed program was:" >&5
cat "conftest.$ac_ext" >&5 cat "conftest.$ac_ext" >&5
cf_cv_posix_visible=yes cf_cv_posix_visible=yes
fi fi
rm -f "conftest.$ac_objext" "conftest.$ac_ext" rm -f "conftest.$ac_objext" "conftest.$ac_ext"
fi fi
echo "$as_me:3010: result: $cf_cv_posix_visible" >&5 echo "$as_me:3012: result: $cf_cv_posix_visible" >&5
echo "${ECHO_T}$cf_cv_posix_visible" >&6 echo "${ECHO_T}$cf_cv_posix_visible" >&6
if test "$cf_cv_posix_visible" = no; then if test "$cf_cv_posix_visible" = no; then
cf_XOPEN_SOURCE=700 cf_XOPEN_SOURCE=700
cf_POSIX_C_SOURCE=199506L cf_POSIX_C_SOURCE=199506L
cf_xopen_source= cf_xopen_source=
case "$host_os" in case "$host_os" in
(aix[4-7]*) (aix[4-7]*)
skipping to change at line 3055 skipping to change at line 3057
cf_xopen_source="-D_HPUX_SOURCE" cf_xopen_source="-D_HPUX_SOURCE"
;; ;;
(irix[56].*) (irix[56].*)
cf_xopen_source="-D_SGI_SOURCE" cf_xopen_source="-D_SGI_SOURCE"
cf_XOPEN_SOURCE= cf_XOPEN_SOURCE=
;; ;;
(linux*|uclinux*|gnu*|mint*|k*bsd*-gnu|cygwin) (linux*|uclinux*|gnu*|mint*|k*bsd*-gnu|cygwin)
cf_gnu_xopen_source=$cf_XOPEN_SOURCE cf_gnu_xopen_source=$cf_XOPEN_SOURCE
echo "$as_me:3055: checking if this is the GNU C library" >&5 echo "$as_me:3057: checking if this is the GNU C library" >&5
echo $ECHO_N "checking if this is the GNU C library... $ECHO_C" >&6 echo $ECHO_N "checking if this is the GNU C library... $ECHO_C" >&6
if test "${cf_cv_gnu_library+set}" = set; then if test "${cf_cv_gnu_library+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6 echo $ECHO_N "(cached) $ECHO_C" >&6
else else
cat >"conftest.$ac_ext" <<_ACEOF cat >"conftest.$ac_ext" <<_ACEOF
#line 3062 "configure" #line 3064 "configure"
#include "confdefs.h" #include "confdefs.h"
#include <sys/types.h> #include <sys/types.h>
int int
main (void) main (void)
{ {
#if __GLIBC__ > 0 && __GLIBC_MINOR__ >= 0 #if __GLIBC__ > 0 && __GLIBC_MINOR__ >= 0
return 0; return 0;
#elif __NEWLIB__ > 0 && __NEWLIB_MINOR__ >= 0 #elif __NEWLIB__ > 0 && __NEWLIB_MINOR__ >= 0
return 0; return 0;
#else #else
# error not GNU C library # error not GNU C library
#endif #endif
; ;
return 0; return 0;
} }
_ACEOF _ACEOF
rm -f "conftest.$ac_objext" rm -f "conftest.$ac_objext"
if { (eval echo "$as_me:3081: \"$ac_compile\"") >&5 if { (eval echo "$as_me:3083: \"$ac_compile\"") >&5
(eval $ac_compile) 2>&5 (eval $ac_compile) 2>&5
ac_status=$? ac_status=$?
echo "$as_me:3084: \$? = $ac_status" >&5 echo "$as_me:3086: \$? = $ac_status" >&5
(exit "$ac_status"); } && (exit "$ac_status"); } &&
{ ac_try='test -s "conftest.$ac_objext"' { ac_try='test -s "conftest.$ac_objext"'
{ (eval echo "$as_me:3087: \"$ac_try\"") >&5 { (eval echo "$as_me:3089: \"$ac_try\"") >&5
(eval $ac_try) 2>&5 (eval $ac_try) 2>&5
ac_status=$? ac_status=$?
echo "$as_me:3090: \$? = $ac_status" >&5 echo "$as_me:3092: \$? = $ac_status" >&5
(exit "$ac_status"); }; }; then (exit "$ac_status"); }; }; then
cf_cv_gnu_library=yes cf_cv_gnu_library=yes
else else
echo "$as_me: failed program was:" >&5 echo "$as_me: failed program was:" >&5
cat "conftest.$ac_ext" >&5 cat "conftest.$ac_ext" >&5
cf_cv_gnu_library=no cf_cv_gnu_library=no
fi fi
rm -f "conftest.$ac_objext" "conftest.$ac_ext" rm -f "conftest.$ac_objext" "conftest.$ac_ext"
fi fi
echo "$as_me:3101: result: $cf_cv_gnu_library" >&5 echo "$as_me:3103: result: $cf_cv_gnu_library" >&5
echo "${ECHO_T}$cf_cv_gnu_library" >&6 echo "${ECHO_T}$cf_cv_gnu_library" >&6
if test x$cf_cv_gnu_library = xyes; then if test x$cf_cv_gnu_library = xyes; then
# With glibc 2.19 (13 years after this check was begun), _DEFAULT_SOURCE # With glibc 2.19 (13 years after this check was begun), _DEFAULT_SOURCE
# was changed to help a little. newlib incorporated the change about 4 # was changed to help a little. newlib incorporated the change about 4
# years later. # years later.
echo "$as_me:3109: checking if _DEFAULT_SOURCE can be used as a basis" >& 5 echo "$as_me:3111: checking if _DEFAULT_SOURCE can be used as a basis" >& 5
echo $ECHO_N "checking if _DEFAULT_SOURCE can be used as a basis... $ECHO_C" >&6 echo $ECHO_N "checking if _DEFAULT_SOURCE can be used as a basis... $ECHO_C" >&6
if test "${cf_cv_gnu_library_219+set}" = set; then if test "${cf_cv_gnu_library_219+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6 echo $ECHO_N "(cached) $ECHO_C" >&6
else else
cf_save="$CPPFLAGS" cf_save="$CPPFLAGS"
test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS " test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
CPPFLAGS="${CPPFLAGS}-D_DEFAULT_SOURCE" CPPFLAGS="${CPPFLAGS}-D_DEFAULT_SOURCE"
cat >"conftest.$ac_ext" <<_ACEOF cat >"conftest.$ac_ext" <<_ACEOF
#line 3121 "configure" #line 3123 "configure"
#include "confdefs.h" #include "confdefs.h"
#include <sys/types.h> #include <sys/types.h>
int int
main (void) main (void)
{ {
#if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 19) || (__GLIBC __ > 2) #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 19) || (__GLIBC __ > 2)
return 0; return 0;
#elif (__NEWLIB__ == 2 && __NEWLIB_MINOR__ >= 4) || (__GL IBC__ > 3) #elif (__NEWLIB__ == 2 && __NEWLIB_MINOR__ >= 4) || (__GL IBC__ > 3)
return 0; return 0;
#else #else
# error GNU C library __GLIBC__.__GLIBC_MINOR__ is too old # error GNU C library __GLIBC__.__GLIBC_MINOR__ is too old
#endif #endif
; ;
return 0; return 0;
} }
_ACEOF _ACEOF
rm -f "conftest.$ac_objext" rm -f "conftest.$ac_objext"
if { (eval echo "$as_me:3140: \"$ac_compile\"") >&5 if { (eval echo "$as_me:3142: \"$ac_compile\"") >&5
(eval $ac_compile) 2>&5 (eval $ac_compile) 2>&5
ac_status=$? ac_status=$?
echo "$as_me:3143: \$? = $ac_status" >&5 echo "$as_me:3145: \$? = $ac_status" >&5
(exit "$ac_status"); } && (exit "$ac_status"); } &&
{ ac_try='test -s "conftest.$ac_objext"' { ac_try='test -s "conftest.$ac_objext"'
{ (eval echo "$as_me:3146: \"$ac_try\"") >&5 { (eval echo "$as_me:3148: \"$ac_try\"") >&5
(eval $ac_try) 2>&5 (eval $ac_try) 2>&5
ac_status=$? ac_status=$?
echo "$as_me:3149: \$? = $ac_status" >&5 echo "$as_me:3151: \$? = $ac_status" >&5
(exit "$ac_status"); }; }; then (exit "$ac_status"); }; }; then
cf_cv_gnu_library_219=yes cf_cv_gnu_library_219=yes
else else
echo "$as_me: failed program was:" >&5 echo "$as_me: failed program was:" >&5
cat "conftest.$ac_ext" >&5 cat "conftest.$ac_ext" >&5
cf_cv_gnu_library_219=no cf_cv_gnu_library_219=no
fi fi
rm -f "conftest.$ac_objext" "conftest.$ac_ext" rm -f "conftest.$ac_objext" "conftest.$ac_ext"
CPPFLAGS="$cf_save" CPPFLAGS="$cf_save"
fi fi
echo "$as_me:3161: result: $cf_cv_gnu_library_219" >&5 echo "$as_me:3163: result: $cf_cv_gnu_library_219" >&5
echo "${ECHO_T}$cf_cv_gnu_library_219" >&6 echo "${ECHO_T}$cf_cv_gnu_library_219" >&6
if test "x$cf_cv_gnu_library_219" = xyes; then if test "x$cf_cv_gnu_library_219" = xyes; then
cf_save="$CPPFLAGS" cf_save="$CPPFLAGS"
echo "$as_me:3166: checking if _XOPEN_SOURCE=$cf_gnu_xopen_source works with _DEFAULT_SOURCE" >&5 echo "$as_me:3168: checking if _XOPEN_SOURCE=$cf_gnu_xopen_source works with _DEFAULT_SOURCE" >&5
echo $ECHO_N "checking if _XOPEN_SOURCE=$cf_gnu_xopen_source works with _DEFAULT _SOURCE... $ECHO_C" >&6 echo $ECHO_N "checking if _XOPEN_SOURCE=$cf_gnu_xopen_source works with _DEFAULT _SOURCE... $ECHO_C" >&6
if test "${cf_cv_gnu_dftsrc_219+set}" = set; then if test "${cf_cv_gnu_dftsrc_219+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6 echo $ECHO_N "(cached) $ECHO_C" >&6
else else
cf_fix_cppflags=no cf_fix_cppflags=no
cf_new_cflags= cf_new_cflags=
cf_new_cppflags= cf_new_cppflags=
cf_new_extra_cppflags= cf_new_extra_cppflags=
skipping to change at line 3271 skipping to change at line 3273
fi fi
if test -n "$cf_new_extra_cppflags" ; then if test -n "$cf_new_extra_cppflags" ; then
test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS " test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags" EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
fi fi
cat >"conftest.$ac_ext" <<_ACEOF cat >"conftest.$ac_ext" <<_ACEOF
#line 3271 "configure" #line 3273 "configure"
#include "confdefs.h" #include "confdefs.h"
#include <limits.h> #include <limits.h>
#include <sys/types.h> #include <sys/types.h>
int int
main (void) main (void)
{ {
#if (_XOPEN_SOURCE >= $cf_gnu_xopen_source) && (M B_LEN_MAX > 1) #if (_XOPEN_SOURCE >= $cf_gnu_xopen_source) && (M B_LEN_MAX > 1)
return 0; return 0;
#else #else
# error GNU C library is too old # error GNU C library is too old
#endif #endif
; ;
return 0; return 0;
} }
_ACEOF _ACEOF
rm -f "conftest.$ac_objext" rm -f "conftest.$ac_objext"
if { (eval echo "$as_me:3291: \"$ac_compile\"") >&5 if { (eval echo "$as_me:3293: \"$ac_compile\"") >&5
(eval $ac_compile) 2>&5 (eval $ac_compile) 2>&5
ac_status=$? ac_status=$?
echo "$as_me:3294: \$? = $ac_status" >&5 echo "$as_me:3296: \$? = $ac_status" >&5
(exit "$ac_status"); } && (exit "$ac_status"); } &&
{ ac_try='test -s "conftest.$ac_objext"' { ac_try='test -s "conftest.$ac_objext"'
{ (eval echo "$as_me:3297: \"$ac_try\"") >&5 { (eval echo "$as_me:3299: \"$ac_try\"") >&5
(eval $ac_try) 2>&5 (eval $ac_try) 2>&5
ac_status=$? ac_status=$?
echo "$as_me:3300: \$? = $ac_status" >&5 echo "$as_me:3302: \$? = $ac_status" >&5
(exit "$ac_status"); }; }; then (exit "$ac_status"); }; }; then
cf_cv_gnu_dftsrc_219=yes cf_cv_gnu_dftsrc_219=yes
else else
echo "$as_me: failed program was:" >&5 echo "$as_me: failed program was:" >&5
cat "conftest.$ac_ext" >&5 cat "conftest.$ac_ext" >&5
cf_cv_gnu_dftsrc_219=no cf_cv_gnu_dftsrc_219=no
fi fi
rm -f "conftest.$ac_objext" "conftest.$ac_ext" rm -f "conftest.$ac_objext" "conftest.$ac_ext"
fi fi
echo "$as_me:3311: result: $cf_cv_gnu_dftsrc_219" >&5 echo "$as_me:3313: result: $cf_cv_gnu_dftsrc_219" >&5
echo "${ECHO_T}$cf_cv_gnu_dftsrc_219" >&6 echo "${ECHO_T}$cf_cv_gnu_dftsrc_219" >&6
test "x$cf_cv_gnu_dftsrc_219" = "xyes" || CPPFLAGS="$cf_save" test "x$cf_cv_gnu_dftsrc_219" = "xyes" || CPPFLAGS="$cf_save"
else else
cf_cv_gnu_dftsrc_219=maybe cf_cv_gnu_dftsrc_219=maybe
fi fi
if test "x$cf_cv_gnu_dftsrc_219" != xyes; then if test "x$cf_cv_gnu_dftsrc_219" != xyes; then
echo "$as_me:3320: checking if we must define _GNU_SOURCE" >&5 echo "$as_me:3322: checking if we must define _GNU_SOURCE" >&5
echo $ECHO_N "checking if we must define _GNU_SOURCE... $ECHO_C" >&6 echo $ECHO_N "checking if we must define _GNU_SOURCE... $ECHO_C" >&6
if test "${cf_cv_gnu_source+set}" = set; then if test "${cf_cv_gnu_source+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6 echo $ECHO_N "(cached) $ECHO_C" >&6
else else
cat >"conftest.$ac_ext" <<_ACEOF cat >"conftest.$ac_ext" <<_ACEOF
#line 3327 "configure" #line 3329 "configure"
#include "confdefs.h" #include "confdefs.h"
#include <sys/types.h> #include <sys/types.h>
int int
main (void) main (void)
{ {
#ifndef _XOPEN_SOURCE #ifndef _XOPEN_SOURCE
#error expected _XOPEN_SOURCE to be defined #error expected _XOPEN_SOURCE to be defined
#endif #endif
; ;
return 0; return 0;
} }
_ACEOF _ACEOF
rm -f "conftest.$ac_objext" rm -f "conftest.$ac_objext"
if { (eval echo "$as_me:3342: \"$ac_compile\"") >&5 if { (eval echo "$as_me:3344: \"$ac_compile\"") >&5
(eval $ac_compile) 2>&5 (eval $ac_compile) 2>&5
ac_status=$? ac_status=$?
echo "$as_me:3345: \$? = $ac_status" >&5 echo "$as_me:3347: \$? = $ac_status" >&5
(exit "$ac_status"); } && (exit "$ac_status"); } &&
{ ac_try='test -s "conftest.$ac_objext"' { ac_try='test -s "conftest.$ac_objext"'
{ (eval echo "$as_me:3348: \"$ac_try\"") >&5 { (eval echo "$as_me:3350: \"$ac_try\"") >&5
(eval $ac_try) 2>&5 (eval $ac_try) 2>&5
ac_status=$? ac_status=$?
echo "$as_me:3351: \$? = $ac_status" >&5 echo "$as_me:3353: \$? = $ac_status" >&5
(exit "$ac_status"); }; }; then (exit "$ac_status"); }; }; then
cf_cv_gnu_source=no cf_cv_gnu_source=no
else else
echo "$as_me: failed program was:" >&5 echo "$as_me: failed program was:" >&5
cat "conftest.$ac_ext" >&5 cat "conftest.$ac_ext" >&5
cf_save="$CPPFLAGS" cf_save="$CPPFLAGS"
cf_fix_cppflags=no cf_fix_cppflags=no
cf_new_cflags= cf_new_cflags=
cf_new_cppflags= cf_new_cppflags=
skipping to change at line 3458 skipping to change at line 3460
fi fi
if test -n "$cf_new_extra_cppflags" ; then if test -n "$cf_new_extra_cppflags" ; then
test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS " test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags" EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
fi fi
cat >"conftest.$ac_ext" <<_ACEOF cat >"conftest.$ac_ext" <<_ACEOF
#line 3458 "configure" #line 3460 "configure"
#include "confdefs.h" #include "confdefs.h"
#include <sys/types.h> #include <sys/types.h>
int int
main (void) main (void)
{ {
#ifdef _XOPEN_SOURCE #ifdef _XOPEN_SOURCE
#error expected _XOPEN_SOURCE to be undefined #error expected _XOPEN_SOURCE to be undefined
#endif #endif
; ;
return 0; return 0;
} }
_ACEOF _ACEOF
rm -f "conftest.$ac_objext" rm -f "conftest.$ac_objext"
if { (eval echo "$as_me:3473: \"$ac_compile\"") >&5 if { (eval echo "$as_me:3475: \"$ac_compile\"") >&5
(eval $ac_compile) 2>&5 (eval $ac_compile) 2>&5
ac_status=$? ac_status=$?
echo "$as_me:3476: \$? = $ac_status" >&5 echo "$as_me:3478: \$? = $ac_status" >&5
(exit "$ac_status"); } && (exit "$ac_status"); } &&
{ ac_try='test -s "conftest.$ac_objext"' { ac_try='test -s "conftest.$ac_objext"'
{ (eval echo "$as_me:3479: \"$ac_try\"") >&5 { (eval echo "$as_me:3481: \"$ac_try\"") >&5
(eval $ac_try) 2>&5 (eval $ac_try) 2>&5
ac_status=$? ac_status=$?
echo "$as_me:3482: \$? = $ac_status" >&5 echo "$as_me:3484: \$? = $ac_status" >&5
(exit "$ac_status"); }; }; then (exit "$ac_status"); }; }; then
cf_cv_gnu_source=no cf_cv_gnu_source=no
else else
echo "$as_me: failed program was:" >&5 echo "$as_me: failed program was:" >&5
cat "conftest.$ac_ext" >&5 cat "conftest.$ac_ext" >&5
cf_cv_gnu_source=yes cf_cv_gnu_source=yes
fi fi
rm -f "conftest.$ac_objext" "conftest.$ac_ext" rm -f "conftest.$ac_objext" "conftest.$ac_ext"
CPPFLAGS="$cf_save" CPPFLAGS="$cf_save"
fi fi
rm -f "conftest.$ac_objext" "conftest.$ac_ext" rm -f "conftest.$ac_objext" "conftest.$ac_ext"
fi fi
echo "$as_me:3497: result: $cf_cv_gnu_source" >&5 echo "$as_me:3499: result: $cf_cv_gnu_source" >&5
echo "${ECHO_T}$cf_cv_gnu_source" >&6 echo "${ECHO_T}$cf_cv_gnu_source" >&6
if test "$cf_cv_gnu_source" = yes if test "$cf_cv_gnu_source" = yes
then then
echo "$as_me:3502: checking if we should also define _DEFAULT_SOU RCE" >&5 echo "$as_me:3504: checking if we should also define _DEFAULT_SOU RCE" >&5
echo $ECHO_N "checking if we should also define _DEFAULT_SOURCE... $ECHO_C" >&6 echo $ECHO_N "checking if we should also define _DEFAULT_SOURCE... $ECHO_C" >&6
if test "${cf_cv_default_source+set}" = set; then if test "${cf_cv_default_source+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6 echo $ECHO_N "(cached) $ECHO_C" >&6
else else
test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS " test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
CPPFLAGS="${CPPFLAGS}-D_GNU_SOURCE" CPPFLAGS="${CPPFLAGS}-D_GNU_SOURCE"
cat >"conftest.$ac_ext" <<_ACEOF cat >"conftest.$ac_ext" <<_ACEOF
#line 3512 "configure" #line 3514 "configure"
#include "confdefs.h" #include "confdefs.h"
#include <sys/types.h> #include <sys/types.h>
int int
main (void) main (void)
{ {
#ifdef _DEFAULT_SOURCE #ifdef _DEFAULT_SOURCE
#error expected _DEFAULT_SOURCE to be undefined #error expected _DEFAULT_SOURCE to be undefined
#endif #endif
; ;
return 0; return 0;
} }
_ACEOF _ACEOF
rm -f "conftest.$ac_objext" rm -f "conftest.$ac_objext"
if { (eval echo "$as_me:3527: \"$ac_compile\"") >&5 if { (eval echo "$as_me:3529: \"$ac_compile\"") >&5
(eval $ac_compile) 2>&5 (eval $ac_compile) 2>&5
ac_status=$? ac_status=$?
echo "$as_me:3530: \$? = $ac_status" >&5 echo "$as_me:3532: \$? = $ac_status" >&5
(exit "$ac_status"); } && (exit "$ac_status"); } &&
{ ac_try='test -s "conftest.$ac_objext"' { ac_try='test -s "conftest.$ac_objext"'
{ (eval echo "$as_me:3533: \"$ac_try\"") >&5 { (eval echo "$as_me:3535: \"$ac_try\"") >&5
(eval $ac_try) 2>&5 (eval $ac_try) 2>&5
ac_status=$? ac_status=$?
echo "$as_me:3536: \$? = $ac_status" >&5 echo "$as_me:3538: \$? = $ac_status" >&5
(exit "$ac_status"); }; }; then (exit "$ac_status"); }; }; then
cf_cv_default_source=no cf_cv_default_source=no
else else
echo "$as_me: failed program was:" >&5 echo "$as_me: failed program was:" >&5
cat "conftest.$ac_ext" >&5 cat "conftest.$ac_ext" >&5
cf_cv_default_source=yes cf_cv_default_source=yes
fi fi
rm -f "conftest.$ac_objext" "conftest.$ac_ext" rm -f "conftest.$ac_objext" "conftest.$ac_ext"
fi fi
echo "$as_me:3547: result: $cf_cv_default_source" >&5 echo "$as_me:3549: result: $cf_cv_default_source" >&5
echo "${ECHO_T}$cf_cv_default_source" >&6 echo "${ECHO_T}$cf_cv_default_source" >&6
if test "$cf_cv_default_source" = yes if test "$cf_cv_default_source" = yes
then then
test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS " test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
CPPFLAGS="${CPPFLAGS}-D_DEFAULT_SOURCE" CPPFLAGS="${CPPFLAGS}-D_DEFAULT_SOURCE"
fi fi
fi fi
fi fi
skipping to change at line 3584 skipping to change at line 3586
cf_save_CPPFLAGS="$CPPFLAGS" cf_save_CPPFLAGS="$CPPFLAGS"
cf_trim_CFLAGS=`echo "$cf_save_CFLAGS" | \ cf_trim_CFLAGS=`echo "$cf_save_CFLAGS" | \
sed -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \ sed -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
-e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?$//g'` -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?$//g'`
cf_trim_CPPFLAGS=`echo "$cf_save_CPPFLAGS" | \ cf_trim_CPPFLAGS=`echo "$cf_save_CPPFLAGS" | \
sed -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \ sed -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
-e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?$//g'` -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?$//g'`
echo "$as_me:3584: checking if we should define _POSIX_C_SOURCE" >&5 echo "$as_me:3586: checking if we should define _POSIX_C_SOURCE" >&5
echo $ECHO_N "checking if we should define _POSIX_C_SOURCE... $ECHO_C" >&6 echo $ECHO_N "checking if we should define _POSIX_C_SOURCE... $ECHO_C" >&6
if test "${cf_cv_posix_c_source+set}" = set; then if test "${cf_cv_posix_c_source+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6 echo $ECHO_N "(cached) $ECHO_C" >&6
else else
echo "${as_me:-configure}:3590: testing if the symbol is already defined go no f urther ..." 1>&5 echo "${as_me:-configure}:3592: testing if the symbol is already defined go no f urther ..." 1>&5
cat >"conftest.$ac_ext" <<_ACEOF cat >"conftest.$ac_ext" <<_ACEOF
#line 3593 "configure" #line 3595 "configure"
#include "confdefs.h" #include "confdefs.h"
#include <sys/types.h> #include <sys/types.h>
int int
main (void) main (void)
{ {
#ifndef _POSIX_C_SOURCE #ifndef _POSIX_C_SOURCE
make an error make an error
#endif #endif
; ;
return 0; return 0;
} }
_ACEOF _ACEOF
rm -f "conftest.$ac_objext" rm -f "conftest.$ac_objext"
if { (eval echo "$as_me:3608: \"$ac_compile\"") >&5 if { (eval echo "$as_me:3610: \"$ac_compile\"") >&5
(eval $ac_compile) 2>&5 (eval $ac_compile) 2>&5
ac_status=$? ac_status=$?
echo "$as_me:3611: \$? = $ac_status" >&5 echo "$as_me:3613: \$? = $ac_status" >&5
(exit "$ac_status"); } && (exit "$ac_status"); } &&
{ ac_try='test -s "conftest.$ac_objext"' { ac_try='test -s "conftest.$ac_objext"'
{ (eval echo "$as_me:3614: \"$ac_try\"") >&5 { (eval echo "$as_me:3616: \"$ac_try\"") >&5
(eval $ac_try) 2>&5 (eval $ac_try) 2>&5
ac_status=$? ac_status=$?
echo "$as_me:3617: \$? = $ac_status" >&5 echo "$as_me:3619: \$? = $ac_status" >&5
(exit "$ac_status"); }; }; then (exit "$ac_status"); }; }; then
cf_cv_posix_c_source=no cf_cv_posix_c_source=no
else else
echo "$as_me: failed program was:" >&5 echo "$as_me: failed program was:" >&5
cat "conftest.$ac_ext" >&5 cat "conftest.$ac_ext" >&5
cf_want_posix_source=no cf_want_posix_source=no
case .$cf_POSIX_C_SOURCE in case .$cf_POSIX_C_SOURCE in
(.[12]??*) (.[12]??*)
cf_cv_posix_c_source="-D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE" cf_cv_posix_c_source="-D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE"
;; ;;
(.2) (.2)
cf_cv_posix_c_source="-D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE" cf_cv_posix_c_source="-D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE"
cf_want_posix_source=yes cf_want_posix_source=yes
;; ;;
(.*) (.*)
cf_want_posix_source=yes cf_want_posix_source=yes
;; ;;
esac esac
if test "$cf_want_posix_source" = yes ; then if test "$cf_want_posix_source" = yes ; then
cat >"conftest.$ac_ext" <<_ACEOF cat >"conftest.$ac_ext" <<_ACEOF
#line 3638 "configure" #line 3640 "configure"
#include "confdefs.h" #include "confdefs.h"
#include <sys/types.h> #include <sys/types.h>
int int
main (void) main (void)
{ {
#ifdef _POSIX_SOURCE #ifdef _POSIX_SOURCE
make an error make an error
#endif #endif
; ;
return 0; return 0;
} }
_ACEOF _ACEOF
rm -f "conftest.$ac_objext" rm -f "conftest.$ac_objext"
if { (eval echo "$as_me:3653: \"$ac_compile\"") >&5 if { (eval echo "$as_me:3655: \"$ac_compile\"") >&5
(eval $ac_compile) 2>&5 (eval $ac_compile) 2>&5
ac_status=$? ac_status=$?
echo "$as_me:3656: \$? = $ac_status" >&5 echo "$as_me:3658: \$? = $ac_status" >&5
(exit "$ac_status"); } && (exit "$ac_status"); } &&
{ ac_try='test -s "conftest.$ac_objext"' { ac_try='test -s "conftest.$ac_objext"'
{ (eval echo "$as_me:3659: \"$ac_try\"") >&5 { (eval echo "$as_me:3661: \"$ac_try\"") >&5
(eval $ac_try) 2>&5 (eval $ac_try) 2>&5
ac_status=$? ac_status=$?
echo "$as_me:3662: \$? = $ac_status" >&5 echo "$as_me:3664: \$? = $ac_status" >&5
(exit "$ac_status"); }; }; then (exit "$ac_status"); }; }; then
: :
else else
echo "$as_me: failed program was:" >&5 echo "$as_me: failed program was:" >&5
cat "conftest.$ac_ext" >&5 cat "conftest.$ac_ext" >&5
cf_cv_posix_c_source="$cf_cv_posix_c_source -D_POSIX_SOURCE" cf_cv_posix_c_source="$cf_cv_posix_c_source -D_POSIX_SOURCE"
fi fi
rm -f "conftest.$ac_objext" "conftest.$ac_ext" rm -f "conftest.$ac_objext" "conftest.$ac_ext"
fi fi
echo "${as_me:-configure}:3673: testing ifdef from value $cf_POSIX_C_SOURCE ..." 1>&5 echo "${as_me:-configure}:3675: testing ifdef from value $cf_POSIX_C_SOURCE ..." 1>&5
CFLAGS="$cf_trim_CFLAGS" CFLAGS="$cf_trim_CFLAGS"
CPPFLAGS="$cf_trim_CPPFLAGS" CPPFLAGS="$cf_trim_CPPFLAGS"
test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS " test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
CPPFLAGS="${CPPFLAGS}$cf_cv_posix_c_source" CPPFLAGS="${CPPFLAGS}$cf_cv_posix_c_source"
echo "${as_me:-configure}:3681: testing if the second compile does not leave our definition intact error ..." 1>&5 echo "${as_me:-configure}:3683: testing if the second compile does not leave our definition intact error ..." 1>&5
cat >"conftest.$ac_ext" <<_ACEOF cat >"conftest.$ac_ext" <<_ACEOF
#line 3684 "configure" #line 3686 "configure"
#include "confdefs.h" #include "confdefs.h"
#include <sys/types.h> #include <sys/types.h>
int int
main (void) main (void)
{ {
#ifndef _POSIX_C_SOURCE #ifndef _POSIX_C_SOURCE
make an error make an error
#endif #endif
; ;
return 0; return 0;
} }
_ACEOF _ACEOF
rm -f "conftest.$ac_objext" rm -f "conftest.$ac_objext"
if { (eval echo "$as_me:3699: \"$ac_compile\"") >&5 if { (eval echo "$as_me:3701: \"$ac_compile\"") >&5
(eval $ac_compile) 2>&5 (eval $ac_compile) 2>&5
ac_status=$? ac_status=$?
echo "$as_me:3702: \$? = $ac_status" >&5 echo "$as_me:3704: \$? = $ac_status" >&5
(exit "$ac_status"); } && (exit "$ac_status"); } &&
{ ac_try='test -s "conftest.$ac_objext"' { ac_try='test -s "conftest.$ac_objext"'
{ (eval echo "$as_me:3705: \"$ac_try\"") >&5 { (eval echo "$as_me:3707: \"$ac_try\"") >&5
(eval $ac_try) 2>&5 (eval $ac_try) 2>&5
ac_status=$? ac_status=$?
echo "$as_me:3708: \$? = $ac_status" >&5 echo "$as_me:3710: \$? = $ac_status" >&5
(exit "$ac_status"); }; }; then (exit "$ac_status"); }; }; then
: :
else else
echo "$as_me: failed program was:" >&5 echo "$as_me: failed program was:" >&5
cat "conftest.$ac_ext" >&5 cat "conftest.$ac_ext" >&5
cf_cv_posix_c_source=no cf_cv_posix_c_source=no
fi fi
rm -f "conftest.$ac_objext" "conftest.$ac_ext" rm -f "conftest.$ac_objext" "conftest.$ac_ext"
CFLAGS="$cf_save_CFLAGS" CFLAGS="$cf_save_CFLAGS"
CPPFLAGS="$cf_save_CPPFLAGS" CPPFLAGS="$cf_save_CPPFLAGS"
fi fi
rm -f "conftest.$ac_objext" "conftest.$ac_ext" rm -f "conftest.$ac_objext" "conftest.$ac_ext"
fi fi
echo "$as_me:3724: result: $cf_cv_posix_c_source" >&5 echo "$as_me:3726: result: $cf_cv_posix_c_source" >&5
echo "${ECHO_T}$cf_cv_posix_c_source" >&6 echo "${ECHO_T}$cf_cv_posix_c_source" >&6
if test "$cf_cv_posix_c_source" != no ; then if test "$cf_cv_posix_c_source" != no ; then
CFLAGS="$cf_trim_CFLAGS" CFLAGS="$cf_trim_CFLAGS"
CPPFLAGS="$cf_trim_CPPFLAGS" CPPFLAGS="$cf_trim_CPPFLAGS"
cf_fix_cppflags=no cf_fix_cppflags=no
cf_new_cflags= cf_new_cflags=
cf_new_cppflags= cf_new_cppflags=
cf_new_extra_cppflags= cf_new_extra_cppflags=
skipping to change at line 3864 skipping to change at line 3866
(solaris2.*) (solaris2.*)
cf_xopen_source="-D__EXTENSIONS__" cf_xopen_source="-D__EXTENSIONS__"
cf_cv_xopen_source=broken cf_cv_xopen_source=broken
;; ;;
(sysv4.2uw2.*) # Novell/SCO UnixWare 2.x (tested on 2.1.2) (sysv4.2uw2.*) # Novell/SCO UnixWare 2.x (tested on 2.1.2)
cf_XOPEN_SOURCE= cf_XOPEN_SOURCE=
cf_POSIX_C_SOURCE= cf_POSIX_C_SOURCE=
;; ;;
(*) (*)
echo "$as_me:3864: checking if we should define _XOPEN_SOURCE" >&5 echo "$as_me:3866: checking if we should define _XOPEN_SOURCE" >&5
echo $ECHO_N "checking if we should define _XOPEN_SOURCE... $ECHO_C" >&6 echo $ECHO_N "checking if we should define _XOPEN_SOURCE... $ECHO_C" >&6
if test "${cf_cv_xopen_source+set}" = set; then if test "${cf_cv_xopen_source+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6 echo $ECHO_N "(cached) $ECHO_C" >&6
else else
cat >"conftest.$ac_ext" <<_ACEOF cat >"conftest.$ac_ext" <<_ACEOF
#line 3871 "configure" #line 3873 "configure"
#include "confdefs.h" #include "confdefs.h"
#include <stdlib.h> #include <stdlib.h>
#include <string.h> #include <string.h>
#include <sys/types.h> #include <sys/types.h>
int int
main (void) main (void)
{ {
#ifndef _XOPEN_SOURCE #ifndef _XOPEN_SOURCE
make an error make an error
#endif #endif
; ;
return 0; return 0;
} }
_ACEOF _ACEOF
rm -f "conftest.$ac_objext" rm -f "conftest.$ac_objext"
if { (eval echo "$as_me:3890: \"$ac_compile\"") >&5 if { (eval echo "$as_me:3892: \"$ac_compile\"") >&5
(eval $ac_compile) 2>&5 (eval $ac_compile) 2>&5
ac_status=$? ac_status=$?
echo "$as_me:3893: \$? = $ac_status" >&5 echo "$as_me:3895: \$? = $ac_status" >&5
(exit "$ac_status"); } && (exit "$ac_status"); } &&
{ ac_try='test -s "conftest.$ac_objext"' { ac_try='test -s "conftest.$ac_objext"'
{ (eval echo "$as_me:3896: \"$ac_try\"") >&5 { (eval echo "$as_me:3898: \"$ac_try\"") >&5
(eval $ac_try) 2>&5 (eval $ac_try) 2>&5
ac_status=$? ac_status=$?
echo "$as_me:3899: \$? = $ac_status" >&5 echo "$as_me:3901: \$? = $ac_status" >&5
(exit "$ac_status"); }; }; then (exit "$ac_status"); }; }; then
cf_cv_xopen_source=no cf_cv_xopen_source=no
else else
echo "$as_me: failed program was:" >&5 echo "$as_me: failed program was:" >&5
cat "conftest.$ac_ext" >&5 cat "conftest.$ac_ext" >&5
cf_save="$CPPFLAGS" cf_save="$CPPFLAGS"
test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS " test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
CPPFLAGS="${CPPFLAGS}-D_XOPEN_SOURCE=$cf_XOPEN_SOURCE" CPPFLAGS="${CPPFLAGS}-D_XOPEN_SOURCE=$cf_XOPEN_SOURCE"
cat >"conftest.$ac_ext" <<_ACEOF cat >"conftest.$ac_ext" <<_ACEOF
#line 3911 "configure" #line 3913 "configure"
#include "confdefs.h" #include "confdefs.h"
#include <stdlib.h> #include <stdlib.h>
#include <string.h> #include <string.h>
#include <sys/types.h> #include <sys/types.h>
int int
main (void) main (void)
{ {
#ifdef _XOPEN_SOURCE #ifdef _XOPEN_SOURCE
make an error make an error
#endif #endif
; ;
return 0; return 0;
} }
_ACEOF _ACEOF
rm -f "conftest.$ac_objext" rm -f "conftest.$ac_objext"
if { (eval echo "$as_me:3930: \"$ac_compile\"") >&5 if { (eval echo "$as_me:3932: \"$ac_compile\"") >&5
(eval $ac_compile) 2>&5 (eval $ac_compile) 2>&5
ac_status=$? ac_status=$?
echo "$as_me:3933: \$? = $ac_status" >&5 echo "$as_me:3935: \$? = $ac_status" >&5
(exit "$ac_status"); } && (exit "$ac_status"); } &&
{ ac_try='test -s "conftest.$ac_objext"' { ac_try='test -s "conftest.$ac_objext"'
{ (eval echo "$as_me:3936: \"$ac_try\"") >&5 { (eval echo "$as_me:3938: \"$ac_try\"") >&5
(eval $ac_try) 2>&5 (eval $ac_try) 2>&5
ac_status=$? ac_status=$?
echo "$as_me:3939: \$? = $ac_status" >&5 echo "$as_me:3941: \$? = $ac_status" >&5
(exit "$ac_status"); }; }; then (exit "$ac_status"); }; }; then
cf_cv_xopen_source=no cf_cv_xopen_source=no
else else
echo "$as_me: failed program was:" >&5 echo "$as_me: failed program was:" >&5
cat "conftest.$ac_ext" >&5 cat "conftest.$ac_ext" >&5
cf_cv_xopen_source=$cf_XOPEN_SOURCE cf_cv_xopen_source=$cf_XOPEN_SOURCE
fi fi
rm -f "conftest.$ac_objext" "conftest.$ac_ext" rm -f "conftest.$ac_objext" "conftest.$ac_ext"
CPPFLAGS="$cf_save" CPPFLAGS="$cf_save"
fi fi
rm -f "conftest.$ac_objext" "conftest.$ac_ext" rm -f "conftest.$ac_objext" "conftest.$ac_ext"
fi fi
echo "$as_me:3954: result: $cf_cv_xopen_source" >&5 echo "$as_me:3956: result: $cf_cv_xopen_source" >&5
echo "${ECHO_T}$cf_cv_xopen_source" >&6 echo "${ECHO_T}$cf_cv_xopen_source" >&6
if test "$cf_cv_xopen_source" != no ; then if test "$cf_cv_xopen_source" != no ; then
CFLAGS=`echo "$CFLAGS" | \ CFLAGS=`echo "$CFLAGS" | \
sed -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \ sed -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
-e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?$//g'` -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?$//g'`
CPPFLAGS=`echo "$CPPFLAGS" | \ CPPFLAGS=`echo "$CPPFLAGS" | \
sed -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \ sed -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
skipping to change at line 4084 skipping to change at line 4086
cf_save_CPPFLAGS="$CPPFLAGS" cf_save_CPPFLAGS="$CPPFLAGS"
cf_trim_CFLAGS=`echo "$cf_save_CFLAGS" | \ cf_trim_CFLAGS=`echo "$cf_save_CFLAGS" | \
sed -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \ sed -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
-e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?$//g'` -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?$//g'`
cf_trim_CPPFLAGS=`echo "$cf_save_CPPFLAGS" | \ cf_trim_CPPFLAGS=`echo "$cf_save_CPPFLAGS" | \
sed -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \ sed -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
-e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?$//g'` -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?$//g'`
echo "$as_me:4084: checking if we should define _POSIX_C_SOURCE" >&5 echo "$as_me:4086: checking if we should define _POSIX_C_SOURCE" >&5
echo $ECHO_N "checking if we should define _POSIX_C_SOURCE... $ECHO_C" >&6 echo $ECHO_N "checking if we should define _POSIX_C_SOURCE... $ECHO_C" >&6
if test "${cf_cv_posix_c_source+set}" = set; then if test "${cf_cv_posix_c_source+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6 echo $ECHO_N "(cached) $ECHO_C" >&6
else else
echo "${as_me:-configure}:4090: testing if the symbol is already defined go no f urther ..." 1>&5 echo "${as_me:-configure}:4092: testing if the symbol is already defined go no f urther ..." 1>&5
cat >"conftest.$ac_ext" <<_ACEOF cat >"conftest.$ac_ext" <<_ACEOF
#line 4093 "configure" #line 4095 "configure"
#include "confdefs.h" #include "confdefs.h"
#include <sys/types.h> #include <sys/types.h>
int int
main (void) main (void)
{ {
#ifndef _POSIX_C_SOURCE #ifndef _POSIX_C_SOURCE
make an error make an error
#endif #endif
; ;
return 0; return 0;
} }
_ACEOF _ACEOF
rm -f "conftest.$ac_objext" rm -f "conftest.$ac_objext"
if { (eval echo "$as_me:4108: \"$ac_compile\"") >&5 if { (eval echo "$as_me:4110: \"$ac_compile\"") >&5
(eval $ac_compile) 2>&5 (eval $ac_compile) 2>&5
ac_status=$? ac_status=$?
echo "$as_me:4111: \$? = $ac_status" >&5 echo "$as_me:4113: \$? = $ac_status" >&5
(exit "$ac_status"); } && (exit "$ac_status"); } &&
{ ac_try='test -s "conftest.$ac_objext"' { ac_try='test -s "conftest.$ac_objext"'
{ (eval echo "$as_me:4114: \"$ac_try\"") >&5 { (eval echo "$as_me:4116: \"$ac_try\"") >&5
(eval $ac_try) 2>&5 (eval $ac_try) 2>&5
ac_status=$? ac_status=$?
echo "$as_me:4117: \$? = $ac_status" >&5 echo "$as_me:4119: \$? = $ac_status" >&5
(exit "$ac_status"); }; }; then (exit "$ac_status"); }; }; then
cf_cv_posix_c_source=no cf_cv_posix_c_source=no
else else
echo "$as_me: failed program was:" >&5 echo "$as_me: failed program was:" >&5
cat "conftest.$ac_ext" >&5 cat "conftest.$ac_ext" >&5
cf_want_posix_source=no cf_want_posix_source=no
case .$cf_POSIX_C_SOURCE in case .$cf_POSIX_C_SOURCE in
(.[12]??*) (.[12]??*)
cf_cv_posix_c_source="-D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE" cf_cv_posix_c_source="-D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE"
;; ;;
(.2) (.2)
cf_cv_posix_c_source="-D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE" cf_cv_posix_c_source="-D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE"
cf_want_posix_source=yes cf_want_posix_source=yes
;; ;;
(.*) (.*)
cf_want_posix_source=yes cf_want_posix_source=yes
;; ;;
esac esac
if test "$cf_want_posix_source" = yes ; then if test "$cf_want_posix_source" = yes ; then
cat >"conftest.$ac_ext" <<_ACEOF cat >"conftest.$ac_ext" <<_ACEOF
#line 4138 "configure" #line 4140 "configure"
#include "confdefs.h" #include "confdefs.h"
#include <sys/types.h> #include <sys/types.h>
int int
main (void) main (void)
{ {
#ifdef _POSIX_SOURCE #ifdef _POSIX_SOURCE
make an error make an error
#endif #endif
; ;
return 0; return 0;
} }
_ACEOF _ACEOF
rm -f "conftest.$ac_objext" rm -f "conftest.$ac_objext"
if { (eval echo "$as_me:4153: \"$ac_compile\"") >&5 if { (eval echo "$as_me:4155: \"$ac_compile\"") >&5
(eval $ac_compile) 2>&5 (eval $ac_compile) 2>&5
ac_status=$? ac_status=$?
echo "$as_me:4156: \$? = $ac_status" >&5 echo "$as_me:4158: \$? = $ac_status" >&5
(exit "$ac_status"); } && (exit "$ac_status"); } &&
{ ac_try='test -s "conftest.$ac_objext"' { ac_try='test -s "conftest.$ac_objext"'
{ (eval echo "$as_me:4159: \"$ac_try\"") >&5 { (eval echo "$as_me:4161: \"$ac_try\"") >&5
(eval $ac_try) 2>&5 (eval $ac_try) 2>&5
ac_status=$? ac_status=$?
echo "$as_me:4162: \$? = $ac_status" >&5 echo "$as_me:4164: \$? = $ac_status" >&5
(exit "$ac_status"); }; }; then (exit "$ac_status"); }; }; then
: :
else else
echo "$as_me: failed program was:" >&5 echo "$as_me: failed program was:" >&5
cat "conftest.$ac_ext" >&5 cat "conftest.$ac_ext" >&5
cf_cv_posix_c_source="$cf_cv_posix_c_source -D_POSIX_SOURCE" cf_cv_posix_c_source="$cf_cv_posix_c_source -D_POSIX_SOURCE"
fi fi
rm -f "conftest.$ac_objext" "conftest.$ac_ext" rm -f "conftest.$ac_objext" "conftest.$ac_ext"
fi fi
echo "${as_me:-configure}:4173: testing ifdef from value $cf_POSIX_C_SOURCE ..." 1>&5 echo "${as_me:-configure}:4175: testing ifdef from value $cf_POSIX_C_SOURCE ..." 1>&5
CFLAGS="$cf_trim_CFLAGS" CFLAGS="$cf_trim_CFLAGS"
CPPFLAGS="$cf_trim_CPPFLAGS" CPPFLAGS="$cf_trim_CPPFLAGS"
test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS " test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
CPPFLAGS="${CPPFLAGS}$cf_cv_posix_c_source" CPPFLAGS="${CPPFLAGS}$cf_cv_posix_c_source"
echo "${as_me:-configure}:4181: testing if the second compile does not leave our definition intact error ..." 1>&5 echo "${as_me:-configure}:4183: testing if the second compile does not leave our definition intact error ..." 1>&5
cat >"conftest.$ac_ext" <<_ACEOF cat >"conftest.$ac_ext" <<_ACEOF
#line 4184 "configure" #line 4186 "configure"
#include "confdefs.h" #include "confdefs.h"
#include <sys/types.h> #include <sys/types.h>
int int
main (void) main (void)
{ {
#ifndef _POSIX_C_SOURCE #ifndef _POSIX_C_SOURCE
make an error make an error
#endif #endif
; ;
return 0; return 0;
} }
_ACEOF _ACEOF
rm -f "conftest.$ac_objext" rm -f "conftest.$ac_objext"
if { (eval echo "$as_me:4199: \"$ac_compile\"") >&5 if { (eval echo "$as_me:4201: \"$ac_compile\"") >&5
(eval $ac_compile) 2>&5 (eval $ac_compile) 2>&5
ac_status=$? ac_status=$?
echo "$as_me:4202: \$? = $ac_status" >&5 echo "$as_me:4204: \$? = $ac_status" >&5
(exit "$ac_status"); } && (exit "$ac_status"); } &&
{ ac_try='test -s "conftest.$ac_objext"' { ac_try='test -s "conftest.$ac_objext"'
{ (eval echo "$as_me:4205: \"$ac_try\"") >&5 { (eval echo "$as_me:4207: \"$ac_try\"") >&5
(eval $ac_try) 2>&5 (eval $ac_try) 2>&5
ac_status=$? ac_status=$?
echo "$as_me:4208: \$? = $ac_status" >&5 echo "$as_me:4210: \$? = $ac_status" >&5
(exit "$ac_status"); }; }; then (exit "$ac_status"); }; }; then
: :
else else
echo "$as_me: failed program was:" >&5 echo "$as_me: failed program was:" >&5
cat "conftest.$ac_ext" >&5 cat "conftest.$ac_ext" >&5
cf_cv_posix_c_source=no cf_cv_posix_c_source=no
fi fi
rm -f "conftest.$ac_objext" "conftest.$ac_ext" rm -f "conftest.$ac_objext" "conftest.$ac_ext"
CFLAGS="$cf_save_CFLAGS" CFLAGS="$cf_save_CFLAGS"
CPPFLAGS="$cf_save_CPPFLAGS" CPPFLAGS="$cf_save_CPPFLAGS"
fi fi
rm -f "conftest.$ac_objext" "conftest.$ac_ext" rm -f "conftest.$ac_objext" "conftest.$ac_ext"
fi fi
echo "$as_me:4224: result: $cf_cv_posix_c_source" >&5 echo "$as_me:4226: result: $cf_cv_posix_c_source" >&5
echo "${ECHO_T}$cf_cv_posix_c_source" >&6 echo "${ECHO_T}$cf_cv_posix_c_source" >&6
if test "$cf_cv_posix_c_source" != no ; then if test "$cf_cv_posix_c_source" != no ; then
CFLAGS="$cf_trim_CFLAGS" CFLAGS="$cf_trim_CFLAGS"
CPPFLAGS="$cf_trim_CPPFLAGS" CPPFLAGS="$cf_trim_CPPFLAGS"
cf_fix_cppflags=no cf_fix_cppflags=no
cf_new_cflags= cf_new_cflags=
cf_new_cppflags= cf_new_cppflags=
cf_new_extra_cppflags= cf_new_extra_cppflags=
skipping to change at line 4418 skipping to change at line 4420
test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \ test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
&& test -z "${cf_tst_cflags}" \ && test -z "${cf_tst_cflags}" \
&& cf_fix_cppflags=no && cf_fix_cppflags=no
;; ;;
esac esac
done done
if test -n "$cf_new_cflags" ; then if test -n "$cf_new_cflags" ; then
test -n "$verbose" && echo " add to \$CFLAGS $cf_new_cflags" 1>&6 test -n "$verbose" && echo " add to \$CFLAGS $cf_new_cflags" 1>&6
echo "${as_me:-configure}:4418: testing add to \$CFLAGS $cf_new_cflags ..." 1>&5 echo "${as_me:-configure}:4420: testing add to \$CFLAGS $cf_new_cflags ..." 1>&5
test -n "$CFLAGS" && CFLAGS="$CFLAGS " test -n "$CFLAGS" && CFLAGS="$CFLAGS "
CFLAGS="${CFLAGS}$cf_new_cflags" CFLAGS="${CFLAGS}$cf_new_cflags"
fi fi
if test -n "$cf_new_cppflags" ; then if test -n "$cf_new_cppflags" ; then
test -n "$verbose" && echo " add to \$CPPFLAGS $cf_new_cppflags" 1>&6 test -n "$verbose" && echo " add to \$CPPFLAGS $cf_new_cppflags" 1>&6
echo "${as_me:-configure}:4428: testing add to \$CPPFLAGS $cf_new_cppflags ..." 1>&5 echo "${as_me:-configure}:4430: testing add to \$CPPFLAGS $cf_new_cppflags ..." 1>&5
test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS " test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
CPPFLAGS="${CPPFLAGS}$cf_new_cppflags" CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
fi fi
if test -n "$cf_new_extra_cppflags" ; then if test -n "$cf_new_extra_cppflags" ; then
test -n "$verbose" && echo " add to \$EXTRA_CPPFLAGS $cf_new_extra_cpp flags" 1>&6 test -n "$verbose" && echo " add to \$EXTRA_CPPFLAGS $cf_new_extra_cpp flags" 1>&6
echo "${as_me:-configure}:4438: testing add to \$EXTRA_CPPFLAGS $cf_new_extra_cp pflags ..." 1>&5 echo "${as_me:-configure}:4440: testing add to \$EXTRA_CPPFLAGS $cf_new_extra_cp pflags ..." 1>&5
test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS " test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags" EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
fi fi
fi fi
if test -n "$cf_XOPEN_SOURCE" && test -z "$cf_cv_xopen_source" ; then if test -n "$cf_XOPEN_SOURCE" && test -z "$cf_cv_xopen_source" ; then
echo "$as_me:4448: checking if _XOPEN_SOURCE really is set" >&5 echo "$as_me:4450: checking if _XOPEN_SOURCE really is set" >&5
echo $ECHO_N "checking if _XOPEN_SOURCE really is set... $ECHO_C" >&6 echo $ECHO_N "checking if _XOPEN_SOURCE really is set... $ECHO_C" >&6
cat >"conftest.$ac_ext" <<_ACEOF cat >"conftest.$ac_ext" <<_ACEOF
#line 4451 "configure" #line 4453 "configure"
#include "confdefs.h" #include "confdefs.h"
#include <stdlib.h> #include <stdlib.h>
int int
main (void) main (void)
{ {
#ifndef _XOPEN_SOURCE #ifndef _XOPEN_SOURCE
make an error make an error
#endif #endif
; ;
return 0; return 0;
} }
_ACEOF _ACEOF
rm -f "conftest.$ac_objext" rm -f "conftest.$ac_objext"
if { (eval echo "$as_me:4466: \"$ac_compile\"") >&5 if { (eval echo "$as_me:4468: \"$ac_compile\"") >&5
(eval $ac_compile) 2>&5 (eval $ac_compile) 2>&5
ac_status=$? ac_status=$?
echo "$as_me:4469: \$? = $ac_status" >&5 echo "$as_me:4471: \$? = $ac_status" >&5
(exit "$ac_status"); } && (exit "$ac_status"); } &&
{ ac_try='test -s "conftest.$ac_objext"' { ac_try='test -s "conftest.$ac_objext"'
{ (eval echo "$as_me:4472: \"$ac_try\"") >&5 { (eval echo "$as_me:4474: \"$ac_try\"") >&5
(eval $ac_try) 2>&5 (eval $ac_try) 2>&5
ac_status=$? ac_status=$?
echo "$as_me:4475: \$? = $ac_status" >&5 echo "$as_me:4477: \$? = $ac_status" >&5
(exit "$ac_status"); }; }; then (exit "$ac_status"); }; }; then
cf_XOPEN_SOURCE_set=yes cf_XOPEN_SOURCE_set=yes
else else
echo "$as_me: failed program was:" >&5 echo "$as_me: failed program was:" >&5
cat "conftest.$ac_ext" >&5 cat "conftest.$ac_ext" >&5
cf_XOPEN_SOURCE_set=no cf_XOPEN_SOURCE_set=no
fi fi
rm -f "conftest.$ac_objext" "conftest.$ac_ext" rm -f "conftest.$ac_objext" "conftest.$ac_ext"
echo "$as_me:4484: result: $cf_XOPEN_SOURCE_set" >&5 echo "$as_me:4486: result: $cf_XOPEN_SOURCE_set" >&5
echo "${ECHO_T}$cf_XOPEN_SOURCE_set" >&6 echo "${ECHO_T}$cf_XOPEN_SOURCE_set" >&6
if test "$cf_XOPEN_SOURCE_set" = yes if test "$cf_XOPEN_SOURCE_set" = yes
then then
cat >"conftest.$ac_ext" <<_ACEOF cat >"conftest.$ac_ext" <<_ACEOF
#line 4489 "configure" #line 4491 "configure"
#include "confdefs.h" #include "confdefs.h"
#include <stdlib.h> #include <stdlib.h>
int int
main (void) main (void)
{ {
#if (_XOPEN_SOURCE - 0) < $cf_XOPEN_SOURCE #if (_XOPEN_SOURCE - 0) < $cf_XOPEN_SOURCE
make an error make an error
#endif #endif
; ;
return 0; return 0;
} }
_ACEOF _ACEOF
rm -f "conftest.$ac_objext" rm -f "conftest.$ac_objext"
if { (eval echo "$as_me:4504: \"$ac_compile\"") >&5 if { (eval echo "$as_me:4506: \"$ac_compile\"") >&5
(eval $ac_compile) 2>&5 (eval $ac_compile) 2>&5
ac_status=$? ac_status=$?
echo "$as_me:4507: \$? = $ac_status" >&5 echo "$as_me:4509: \$? = $ac_status" >&5
(exit "$ac_status"); } && (exit "$ac_status"); } &&
{ ac_try='test -s "conftest.$ac_objext"' { ac_try='test -s "conftest.$ac_objext"'
{ (eval echo "$as_me:4510: \"$ac_try\"") >&5 { (eval echo "$as_me:4512: \"$ac_try\"") >&5
(eval $ac_try) 2>&5 (eval $ac_try) 2>&5
ac_status=$? ac_status=$?
echo "$as_me:4513: \$? = $ac_status" >&5 echo "$as_me:4515: \$? = $ac_status" >&5
(exit "$ac_status"); }; }; then (exit "$ac_status"); }; }; then
cf_XOPEN_SOURCE_set_ok=yes cf_XOPEN_SOURCE_set_ok=yes
else else
echo "$as_me: failed program was:" >&5 echo "$as_me: failed program was:" >&5
cat "conftest.$ac_ext" >&5 cat "conftest.$ac_ext" >&5
cf_XOPEN_SOURCE_set_ok=no cf_XOPEN_SOURCE_set_ok=no
fi fi
rm -f "conftest.$ac_objext" "conftest.$ac_ext" rm -f "conftest.$ac_objext" "conftest.$ac_ext"
if test "$cf_XOPEN_SOURCE_set_ok" = no if test "$cf_XOPEN_SOURCE_set_ok" = no
then then
{ echo "$as_me:4524: WARNING: _XOPEN_SOURCE is lower than requested" >&5 { echo "$as_me:4526: WARNING: _XOPEN_SOURCE is lower than requested" >&5
echo "$as_me: WARNING: _XOPEN_SOURCE is lower than requested" >&2;} echo "$as_me: WARNING: _XOPEN_SOURCE is lower than requested" >&2;}
fi fi
else else
echo "$as_me:4529: checking if we should define _XOPEN_SOURCE" >&5 echo "$as_me:4531: checking if we should define _XOPEN_SOURCE" >&5
echo $ECHO_N "checking if we should define _XOPEN_SOURCE... $ECHO_C" >&6 echo $ECHO_N "checking if we should define _XOPEN_SOURCE... $ECHO_C" >&6
if test "${cf_cv_xopen_source+set}" = set; then if test "${cf_cv_xopen_source+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6 echo $ECHO_N "(cached) $ECHO_C" >&6
else else
cat >"conftest.$ac_ext" <<_ACEOF cat >"conftest.$ac_ext" <<_ACEOF
#line 4536 "configure" #line 4538 "configure"
#include "confdefs.h" #include "confdefs.h"
#include <stdlib.h> #include <stdlib.h>
#include <string.h> #include <string.h>
#include <sys/types.h> #include <sys/types.h>
int int
main (void) main (void)
{ {
#ifndef _XOPEN_SOURCE #ifndef _XOPEN_SOURCE
make an error make an error
#endif #endif
; ;
return 0; return 0;
} }
_ACEOF _ACEOF
rm -f "conftest.$ac_objext" rm -f "conftest.$ac_objext"
if { (eval echo "$as_me:4555: \"$ac_compile\"") >&5 if { (eval echo "$as_me:4557: \"$ac_compile\"") >&5
(eval $ac_compile) 2>&5 (eval $ac_compile) 2>&5
ac_status=$? ac_status=$?
echo "$as_me:4558: \$? = $ac_status" >&5 echo "$as_me:4560: \$? = $ac_status" >&5
(exit "$ac_status"); } && (exit "$ac_status"); } &&
{ ac_try='test -s "conftest.$ac_objext"' { ac_try='test -s "conftest.$ac_objext"'
{ (eval echo "$as_me:4561: \"$ac_try\"") >&5 { (eval echo "$as_me:4563: \"$ac_try\"") >&5
(eval $ac_try) 2>&5 (eval $ac_try) 2>&5
ac_status=$? ac_status=$?
echo "$as_me:4564: \$? = $ac_status" >&5 echo "$as_me:4566: \$? = $ac_status" >&5
(exit "$ac_status"); }; }; then (exit "$ac_status"); }; }; then
cf_cv_xopen_source=no cf_cv_xopen_source=no
else else
echo "$as_me: failed program was:" >&5 echo "$as_me: failed program was:" >&5
cat "conftest.$ac_ext" >&5 cat "conftest.$ac_ext" >&5
cf_save="$CPPFLAGS" cf_save="$CPPFLAGS"
test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS " test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
CPPFLAGS="${CPPFLAGS}-D_XOPEN_SOURCE=$cf_XOPEN_SOURCE" CPPFLAGS="${CPPFLAGS}-D_XOPEN_SOURCE=$cf_XOPEN_SOURCE"
cat >"conftest.$ac_ext" <<_ACEOF cat >"conftest.$ac_ext" <<_ACEOF
#line 4576 "configure" #line 4578 "configure"
#include "confdefs.h" #include "confdefs.h"
#include <stdlib.h> #include <stdlib.h>
#include <string.h> #include <string.h>
#include <sys/types.h> #include <sys/types.h>
int int
main (void) main (void)
{ {
#ifdef _XOPEN_SOURCE #ifdef _XOPEN_SOURCE
make an error make an error
#endif #endif
; ;
return 0; return 0;
} }
_ACEOF _ACEOF
rm -f "conftest.$ac_objext" rm -f "conftest.$ac_objext"
if { (eval echo "$as_me:4595: \"$ac_compile\"") >&5 if { (eval echo "$as_me:4597: \"$ac_compile\"") >&5
(eval $ac_compile) 2>&5 (eval $ac_compile) 2>&5
ac_status=$? ac_status=$?
echo "$as_me:4598: \$? = $ac_status" >&5 echo "$as_me:4600: \$? = $ac_status" >&5
(exit "$ac_status"); } && (exit "$ac_status"); } &&
{ ac_try='test -s "conftest.$ac_objext"' { ac_try='test -s "conftest.$ac_objext"'
{ (eval echo "$as_me:4601: \"$ac_try\"") >&5 { (eval echo "$as_me:4603: \"$ac_try\"") >&5
(eval $ac_try) 2>&5 (eval $ac_try) 2>&5
ac_status=$? ac_status=$?
echo "$as_me:4604: \$? = $ac_status" >&5 echo "$as_me:4606: \$? = $ac_status" >&5
(exit "$ac_status"); }; }; then (exit "$ac_status"); }; }; then
cf_cv_xopen_source=no cf_cv_xopen_source=no
else else
echo "$as_me: failed program was:" >&5 echo "$as_me: failed program was:" >&5
cat "conftest.$ac_ext" >&5 cat "conftest.$ac_ext" >&5
cf_cv_xopen_source=$cf_XOPEN_SOURCE cf_cv_xopen_source=$cf_XOPEN_SOURCE
fi fi
rm -f "conftest.$ac_objext" "conftest.$ac_ext" rm -f "conftest.$ac_objext" "conftest.$ac_ext"
CPPFLAGS="$cf_save" CPPFLAGS="$cf_save"
fi fi
rm -f "conftest.$ac_objext" "conftest.$ac_ext" rm -f "conftest.$ac_objext" "conftest.$ac_ext"
fi fi
echo "$as_me:4619: result: $cf_cv_xopen_source" >&5 echo "$as_me:4621: result: $cf_cv_xopen_source" >&5
echo "${ECHO_T}$cf_cv_xopen_source" >&6 echo "${ECHO_T}$cf_cv_xopen_source" >&6
if test "$cf_cv_xopen_source" != no ; then if test "$cf_cv_xopen_source" != no ; then
CFLAGS=`echo "$CFLAGS" | \ CFLAGS=`echo "$CFLAGS" | \
sed -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \ sed -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
-e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?$//g'` -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?$//g'`
CPPFLAGS=`echo "$CPPFLAGS" | \ CPPFLAGS=`echo "$CPPFLAGS" | \
sed -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \ sed -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
skipping to change at line 4738 skipping to change at line 4740
EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags" EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
fi fi
fi fi
fi fi
fi fi
fi # cf_cv_posix_visible fi # cf_cv_posix_visible
echo "$as_me:4738: checking if SIGWINCH is defined" >&5 echo "$as_me:4740: checking if SIGWINCH is defined" >&5
echo $ECHO_N "checking if SIGWINCH is defined... $ECHO_C" >&6 echo $ECHO_N "checking if SIGWINCH is defined... $ECHO_C" >&6
if test "${cf_cv_define_sigwinch+set}" = set; then if test "${cf_cv_define_sigwinch+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6 echo $ECHO_N "(cached) $ECHO_C" >&6
else else
cat >"conftest.$ac_ext" <<_ACEOF cat >"conftest.$ac_ext" <<_ACEOF
#line 4745 "configure" #line 4747 "configure"
#include "confdefs.h" #include "confdefs.h"
#include <sys/types.h> #include <sys/types.h>
#include <sys/signal.h> #include <sys/signal.h>
int int
main (void) main (void)
{ {
int x = SIGWINCH; (void)x int x = SIGWINCH; (void)x
; ;
return 0; return 0;
} }
_ACEOF _ACEOF
rm -f "conftest.$ac_objext" rm -f "conftest.$ac_objext"
if { (eval echo "$as_me:4760: \"$ac_compile\"") >&5 if { (eval echo "$as_me:4762: \"$ac_compile\"") >&5
(eval $ac_compile) 2>&5 (eval $ac_compile) 2>&5
ac_status=$? ac_status=$?
echo "$as_me:4763: \$? = $ac_status" >&5 echo "$as_me:4765: \$? = $ac_status" >&5
(exit "$ac_status"); } && (exit "$ac_status"); } &&
{ ac_try='test -s "conftest.$ac_objext"' { ac_try='test -s "conftest.$ac_objext"'
{ (eval echo "$as_me:4766: \"$ac_try\"") >&5 { (eval echo "$as_me:4768: \"$ac_try\"") >&5
(eval $ac_try) 2>&5 (eval $ac_try) 2>&5
ac_status=$? ac_status=$?
echo "$as_me:4769: \$? = $ac_status" >&5 echo "$as_me:4771: \$? = $ac_status" >&5
(exit "$ac_status"); }; }; then (exit "$ac_status"); }; }; then
cf_cv_define_sigwinch=yes cf_cv_define_sigwinch=yes
else else
echo "$as_me: failed program was:" >&5 echo "$as_me: failed program was:" >&5
cat "conftest.$ac_ext" >&5 cat "conftest.$ac_ext" >&5
cat >"conftest.$ac_ext" <<_ACEOF cat >"conftest.$ac_ext" <<_ACEOF
#line 4776 "configure" #line 4778 "configure"
#include "confdefs.h" #include "confdefs.h"
#undef _XOPEN_SOURCE #undef _XOPEN_SOURCE
#undef _POSIX_SOURCE #undef _POSIX_SOURCE
#undef _POSIX_C_SOURCE #undef _POSIX_C_SOURCE
#include <sys/types.h> #include <sys/types.h>
#include <sys/signal.h> #include <sys/signal.h>
int int
main (void) main (void)
{ {
int x = SIGWINCH; (void)x int x = SIGWINCH; (void)x
; ;
return 0; return 0;
} }
_ACEOF _ACEOF
rm -f "conftest.$ac_objext" rm -f "conftest.$ac_objext"
if { (eval echo "$as_me:4794: \"$ac_compile\"") >&5 if { (eval echo "$as_me:4796: \"$ac_compile\"") >&5
(eval $ac_compile) 2>&5 (eval $ac_compile) 2>&5
ac_status=$? ac_status=$?
echo "$as_me:4797: \$? = $ac_status" >&5 echo "$as_me:4799: \$? = $ac_status" >&5
(exit "$ac_status"); } && (exit "$ac_status"); } &&
{ ac_try='test -s "conftest.$ac_objext"' { ac_try='test -s "conftest.$ac_objext"'
{ (eval echo "$as_me:4800: \"$ac_try\"") >&5 { (eval echo "$as_me:4802: \"$ac_try\"") >&5
(eval $ac_try) 2>&5 (eval $ac_try) 2>&5
ac_status=$? ac_status=$?
echo "$as_me:4803: \$? = $ac_status" >&5 echo "$as_me:4805: \$? = $ac_status" >&5
(exit "$ac_status"); }; }; then (exit "$ac_status"); }; }; then
cf_cv_define_sigwinch=maybe cf_cv_define_sigwinch=maybe
else else
echo "$as_me: failed program was:" >&5 echo "$as_me: failed program was:" >&5
cat "conftest.$ac_ext" >&5 cat "conftest.$ac_ext" >&5
cf_cv_define_sigwinch=no cf_cv_define_sigwinch=no
fi fi
rm -f "conftest.$ac_objext" "conftest.$ac_ext" rm -f "conftest.$ac_objext" "conftest.$ac_ext"
fi fi
rm -f "conftest.$ac_objext" "conftest.$ac_ext" rm -f "conftest.$ac_objext" "conftest.$ac_ext"
fi fi
echo "$as_me:4817: result: $cf_cv_define_sigwinch" >&5 echo "$as_me:4819: result: $cf_cv_define_sigwinch" >&5
echo "${ECHO_T}$cf_cv_define_sigwinch" >&6 echo "${ECHO_T}$cf_cv_define_sigwinch" >&6
if test "$cf_cv_define_sigwinch" = maybe ; then if test "$cf_cv_define_sigwinch" = maybe ; then
echo "$as_me:4821: checking for actual SIGWINCH definition" >&5 echo "$as_me:4823: checking for actual SIGWINCH definition" >&5
echo $ECHO_N "checking for actual SIGWINCH definition... $ECHO_C" >&6 echo $ECHO_N "checking for actual SIGWINCH definition... $ECHO_C" >&6
if test "${cf_cv_fixup_sigwinch+set}" = set; then if test "${cf_cv_fixup_sigwinch+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6 echo $ECHO_N "(cached) $ECHO_C" >&6
else else
cf_cv_fixup_sigwinch=unknown cf_cv_fixup_sigwinch=unknown
cf_sigwinch=32 cf_sigwinch=32
while test "$cf_sigwinch" != 1 while test "$cf_sigwinch" != 1
do do
cat >"conftest.$ac_ext" <<_ACEOF cat >"conftest.$ac_ext" <<_ACEOF
#line 4832 "configure" #line 4834 "configure"
#include "confdefs.h" #include "confdefs.h"
#undef _XOPEN_SOURCE #undef _XOPEN_SOURCE
#undef _POSIX_SOURCE #undef _POSIX_SOURCE
#undef _POSIX_C_SOURCE #undef _POSIX_C_SOURCE
#include <sys/types.h> #include <sys/types.h>
#include <sys/signal.h> #include <sys/signal.h>
int int
main (void) main (void)
skipping to change at line 4854 skipping to change at line 4856
#if SIGWINCH != $cf_sigwinch #if SIGWINCH != $cf_sigwinch
make an error make an error
#endif #endif
int x = SIGWINCH; (void)x int x = SIGWINCH; (void)x
; ;
return 0; return 0;
} }
_ACEOF _ACEOF
rm -f "conftest.$ac_objext" rm -f "conftest.$ac_objext"
if { (eval echo "$as_me:4854: \"$ac_compile\"") >&5 if { (eval echo "$as_me:4856: \"$ac_compile\"") >&5
(eval $ac_compile) 2>&5 (eval $ac_compile) 2>&5
ac_status=$? ac_status=$?
echo "$as_me:4857: \$? = $ac_status" >&5 echo "$as_me:4859: \$? = $ac_status" >&5
(exit "$ac_status"); } && (exit "$ac_status"); } &&
{ ac_try='test -s "conftest.$ac_objext"' { ac_try='test -s "conftest.$ac_objext"'
{ (eval echo "$as_me:4860: \"$ac_try\"") >&5 { (eval echo "$as_me:4862: \"$ac_try\"") >&5
(eval $ac_try) 2>&5 (eval $ac_try) 2>&5
ac_status=$? ac_status=$?
echo "$as_me:4863: \$? = $ac_status" >&5 echo "$as_me:4865: \$? = $ac_status" >&5
(exit "$ac_status"); }; }; then (exit "$ac_status"); }; }; then
cf_cv_fixup_sigwinch=$cf_sigwinch cf_cv_fixup_sigwinch=$cf_sigwinch
break break
else else
echo "$as_me: failed program was:" >&5 echo "$as_me: failed program was:" >&5
cat "conftest.$ac_ext" >&5 cat "conftest.$ac_ext" >&5
fi fi
rm -f "conftest.$ac_objext" "conftest.$ac_ext" rm -f "conftest.$ac_objext" "conftest.$ac_ext"
cf_sigwinch="`expr "$cf_sigwinch" - 1`" cf_sigwinch="`expr "$cf_sigwinch" - 1`"
done done
fi fi
echo "$as_me:4877: result: $cf_cv_fixup_sigwinch" >&5 echo "$as_me:4879: result: $cf_cv_fixup_sigwinch" >&5
echo "${ECHO_T}$cf_cv_fixup_sigwinch" >&6 echo "${ECHO_T}$cf_cv_fixup_sigwinch" >&6
if test "$cf_cv_fixup_sigwinch" != unknown ; then if test "$cf_cv_fixup_sigwinch" != unknown ; then
CPPFLAGS="$CPPFLAGS -DSIGWINCH=$cf_cv_fixup_sigwinch" CPPFLAGS="$CPPFLAGS -DSIGWINCH=$cf_cv_fixup_sigwinch"
fi fi
fi fi
### checks for header files ### checks for header files
for ac_header in \ for ac_header in \
skipping to change at line 4899 skipping to change at line 4901
ncurses/term.h \ ncurses/term.h \
stdlib.h \ stdlib.h \
sys/ptem.h sys/ttydefaults.h \ sys/ptem.h sys/ttydefaults.h \
term.h \ term.h \
termios.h \ termios.h \
unistd.h \ unistd.h \
wchar.h \ wchar.h \
do do
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
echo "$as_me:4899: checking for $ac_header" >&5 echo "$as_me:4901: checking for $ac_header" >&5
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
if eval "test \"\${$as_ac_Header+set}\" = set"; then if eval "test \"\${$as_ac_Header+set}\" = set"; then
echo $ECHO_N "(cached) $ECHO_C" >&6 echo $ECHO_N "(cached) $ECHO_C" >&6
else else
cat >"conftest.$ac_ext" <<_ACEOF cat >"conftest.$ac_ext" <<_ACEOF
#line 4905 "configure" #line 4907 "configure"
#include "confdefs.h" #include "confdefs.h"
#include <$ac_header> #include <$ac_header>
_ACEOF _ACEOF
if { (eval echo "$as_me:4909: \"$ac_cpp "conftest.$ac_ext"\"") >&5 if { (eval echo "$as_me:4911: \"$ac_cpp "conftest.$ac_ext"\"") >&5
(eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1 (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1
ac_status=$? ac_status=$?
$EGREP -v '^ *\+' conftest.er1 >conftest.err $EGREP -v '^ *\+' conftest.er1 >conftest.err
rm -f conftest.er1 rm -f conftest.er1
cat conftest.err >&5 cat conftest.err >&5
echo "$as_me:4915: \$? = $ac_status" >&5 echo "$as_me:4917: \$? = $ac_status" >&5
(exit "$ac_status"); } >/dev/null; then (exit "$ac_status"); } >/dev/null; then
if test -s conftest.err; then if test -s conftest.err; then
ac_cpp_err=$ac_c_preproc_warn_flag ac_cpp_err=$ac_c_preproc_warn_flag
else else
ac_cpp_err= ac_cpp_err=
fi fi
else else
ac_cpp_err=yes ac_cpp_err=yes
fi fi
if test -z "$ac_cpp_err"; then if test -z "$ac_cpp_err"; then
eval "$as_ac_Header=yes" eval "$as_ac_Header=yes"
else else
echo "$as_me: failed program was:" >&5 echo "$as_me: failed program was:" >&5
cat "conftest.$ac_ext" >&5 cat "conftest.$ac_ext" >&5
eval "$as_ac_Header=no" eval "$as_ac_Header=no"
fi fi
rm -f conftest.err "conftest.$ac_ext" rm -f conftest.err "conftest.$ac_ext"
fi fi
echo "$as_me:4934: result: `eval echo '${'"$as_ac_Header"'}'`" >&5 echo "$as_me:4936: result: `eval echo '${'"$as_ac_Header"'}'`" >&5
echo "${ECHO_T}`eval echo '${'"$as_ac_Header"'}'`" >&6 echo "${ECHO_T}`eval echo '${'"$as_ac_Header"'}'`" >&6
if test "`eval echo '${'"$as_ac_Header"'}'`" = yes; then if test "`eval echo '${'"$as_ac_Header"'}'`" = yes; then
cat >>confdefs.h <<EOF cat >>confdefs.h <<EOF
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
EOF EOF
fi fi
done done
echo "$as_me:4944: checking whether time.h and sys/time.h may both be included" >&5 echo "$as_me:4946: checking whether time.h and sys/time.h may both be included" >&5
echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $EC HO_C" >&6 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $EC HO_C" >&6
if test "${ac_cv_header_time+set}" = set; then if test "${ac_cv_header_time+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6 echo $ECHO_N "(cached) $ECHO_C" >&6
else else
cat >"conftest.$ac_ext" <<_ACEOF cat >"conftest.$ac_ext" <<_ACEOF
#line 4950 "configure" #line 4952 "configure"
#include "confdefs.h" #include "confdefs.h"
#include <sys/types.h> #include <sys/types.h>
#include <sys/time.h> #include <sys/time.h>
#include <time.h> #include <time.h>
int int
main (void) main (void)
{ {
if ((struct tm *) 0) if ((struct tm *) 0)
return 0; return 0;
; ;
return 0; return 0;
} }
_ACEOF _ACEOF
rm -f "conftest.$ac_objext" rm -f "conftest.$ac_objext"
if { (eval echo "$as_me:4966: \"$ac_compile\"") >&5 if { (eval echo "$as_me:4968: \"$ac_compile\"") >&5
(eval $ac_compile) 2>&5 (eval $ac_compile) 2>&5
ac_status=$? ac_status=$?
echo "$as_me:4969: \$? = $ac_status" >&5 echo "$as_me:4971: \$? = $ac_status" >&5
(exit "$ac_status"); } && (exit "$ac_status"); } &&
{ ac_try='test -s "conftest.$ac_objext"' { ac_try='test -s "conftest.$ac_objext"'
{ (eval echo "$as_me:4972: \"$ac_try\"") >&5 { (eval echo "$as_me:4974: \"$ac_try\"") >&5
(eval $ac_try) 2>&5 (eval $ac_try) 2>&5
ac_status=$? ac_status=$?
echo "$as_me:4975: \$? = $ac_status" >&5 echo "$as_me:4977: \$? = $ac_status" >&5
(exit "$ac_status"); }; }; then (exit "$ac_status"); }; }; then
ac_cv_header_time=yes ac_cv_header_time=yes
else else
echo "$as_me: failed program was:" >&5 echo "$as_me: failed program was:" >&5
cat "conftest.$ac_ext" >&5 cat "conftest.$ac_ext" >&5
ac_cv_header_time=no ac_cv_header_time=no
fi fi
rm -f "conftest.$ac_objext" "conftest.$ac_ext" rm -f "conftest.$ac_objext" "conftest.$ac_ext"
fi fi
echo "$as_me:4985: result: $ac_cv_header_time" >&5 echo "$as_me:4987: result: $ac_cv_header_time" >&5
echo "${ECHO_T}$ac_cv_header_time" >&6 echo "${ECHO_T}$ac_cv_header_time" >&6
if test $ac_cv_header_time = yes; then if test $ac_cv_header_time = yes; then
cat >>confdefs.h <<\EOF cat >>confdefs.h <<\EOF
#define TIME_WITH_SYS_TIME 1 #define TIME_WITH_SYS_TIME 1
EOF EOF
fi fi
echo "$as_me:4995: checking for nl_langinfo and CODESET" >&5 echo "$as_me:4997: checking for nl_langinfo and CODESET" >&5
echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6
if test "${am_cv_langinfo_codeset+set}" = set; then if test "${am_cv_langinfo_codeset+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6 echo $ECHO_N "(cached) $ECHO_C" >&6
else else
cat >"conftest.$ac_ext" <<_ACEOF cat >"conftest.$ac_ext" <<_ACEOF
#line 5001 "configure" #line 5003 "configure"
#include "confdefs.h" #include "confdefs.h"
#include <langinfo.h> #include <langinfo.h>
int int
main (void) main (void)
{ {
char* cs = nl_langinfo(CODESET); (void)cs char* cs = nl_langinfo(CODESET); (void)cs
; ;
return 0; return 0;
} }
_ACEOF _ACEOF
rm -f "conftest.$ac_objext" "conftest$ac_exeext" rm -f "conftest.$ac_objext" "conftest$ac_exeext"
if { (eval echo "$as_me:5013: \"$ac_link\"") >&5 if { (eval echo "$as_me:5015: \"$ac_link\"") >&5
(eval $ac_link) 2>&5 (eval $ac_link) 2>&5
ac_status=$? ac_status=$?
echo "$as_me:5016: \$? = $ac_status" >&5 echo "$as_me:5018: \$? = $ac_status" >&5
(exit "$ac_status"); } && (exit "$ac_status"); } &&
{ ac_try='test -s "conftest$ac_exeext"' { ac_try='test -s "conftest$ac_exeext"'
{ (eval echo "$as_me:5019: \"$ac_try\"") >&5 { (eval echo "$as_me:5021: \"$ac_try\"") >&5
(eval $ac_try) 2>&5 (eval $ac_try) 2>&5
ac_status=$? ac_status=$?
echo "$as_me:5022: \$? = $ac_status" >&5 echo "$as_me:5024: \$? = $ac_status" >&5
(exit "$ac_status"); }; }; then (exit "$ac_status"); }; }; then
am_cv_langinfo_codeset=yes am_cv_langinfo_codeset=yes
else else
echo "$as_me: failed program was:" >&5 echo "$as_me: failed program was:" >&5
cat "conftest.$ac_ext" >&5 cat "conftest.$ac_ext" >&5
am_cv_langinfo_codeset=no am_cv_langinfo_codeset=no
fi fi
rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext" rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
fi fi
echo "$as_me:5033: result: $am_cv_langinfo_codeset" >&5 echo "$as_me:5035: result: $am_cv_langinfo_codeset" >&5
echo "${ECHO_T}$am_cv_langinfo_codeset" >&6 echo "${ECHO_T}$am_cv_langinfo_codeset" >&6
if test "$am_cv_langinfo_codeset" = yes; then if test "$am_cv_langinfo_codeset" = yes; then
cat >>confdefs.h <<\EOF cat >>confdefs.h <<\EOF
#define HAVE_LANGINFO_CODESET 1 #define HAVE_LANGINFO_CODESET 1
EOF EOF
fi fi
### checks for typedefs ### checks for typedefs
echo "$as_me:5045: checking for signal global datatype" >&5 echo "$as_me:5047: checking for signal global datatype" >&5
echo $ECHO_N "checking for signal global datatype... $ECHO_C" >&6 echo $ECHO_N "checking for signal global datatype... $ECHO_C" >&6
if test "${cf_cv_sig_atomic_t+set}" = set; then if test "${cf_cv_sig_atomic_t+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6 echo $ECHO_N "(cached) $ECHO_C" >&6
else else
for cf_type in \ for cf_type in \
"volatile sig_atomic_t" \ "volatile sig_atomic_t" \
"sig_atomic_t" \ "sig_atomic_t" \
"int" "int"
do do
cat >"conftest.$ac_ext" <<_ACEOF cat >"conftest.$ac_ext" <<_ACEOF
#line 5057 "configure" #line 5059 "configure"
#include "confdefs.h" #include "confdefs.h"
#include <sys/types.h> #include <sys/types.h>
#include <signal.h> #include <signal.h>
#include <stdio.h> #include <stdio.h>
extern $cf_type x; extern $cf_type x;
$cf_type x; $cf_type x;
static void handler(int sig) static void handler(int sig)
{ {
skipping to change at line 5081 skipping to change at line 5083
int int
main (void) main (void)
{ {
signal(SIGINT, handler); signal(SIGINT, handler);
x = 1 x = 1
; ;
return 0; return 0;
} }
_ACEOF _ACEOF
rm -f "conftest.$ac_objext" rm -f "conftest.$ac_objext"
if { (eval echo "$as_me:5081: \"$ac_compile\"") >&5 if { (eval echo "$as_me:5083: \"$ac_compile\"") >&5
(eval $ac_compile) 2>&5 (eval $ac_compile) 2>&5
ac_status=$? ac_status=$?
echo "$as_me:5084: \$? = $ac_status" >&5 echo "$as_me:5086: \$? = $ac_status" >&5
(exit "$ac_status"); } && (exit "$ac_status"); } &&
{ ac_try='test -s "conftest.$ac_objext"' { ac_try='test -s "conftest.$ac_objext"'
{ (eval echo "$as_me:5087: \"$ac_try\"") >&5 { (eval echo "$as_me:5089: \"$ac_try\"") >&5
(eval $ac_try) 2>&5 (eval $ac_try) 2>&5
ac_status=$? ac_status=$?
echo "$as_me:5090: \$? = $ac_status" >&5 echo "$as_me:5092: \$? = $ac_status" >&5
(exit "$ac_status"); }; }; then (exit "$ac_status"); }; }; then
cf_cv_sig_atomic_t=$cf_type cf_cv_sig_atomic_t=$cf_type
else else
echo "$as_me: failed program was:" >&5 echo "$as_me: failed program was:" >&5
cat "conftest.$ac_ext" >&5 cat "conftest.$ac_ext" >&5
cf_cv_sig_atomic_t=no cf_cv_sig_atomic_t=no
fi fi
rm -f "conftest.$ac_objext" "conftest.$ac_ext" rm -f "conftest.$ac_objext" "conftest.$ac_ext"
test "$cf_cv_sig_atomic_t" != no && break test "$cf_cv_sig_atomic_t" != no && break
done done
fi fi
echo "$as_me:5104: result: $cf_cv_sig_atomic_t" >&5 echo "$as_me:5106: result: $cf_cv_sig_atomic_t" >&5
echo "${ECHO_T}$cf_cv_sig_atomic_t" >&6 echo "${ECHO_T}$cf_cv_sig_atomic_t" >&6
test "$cf_cv_sig_atomic_t" != no && test "$cf_cv_sig_atomic_t" != no &&
cat >>confdefs.h <<EOF cat >>confdefs.h <<EOF
#define SIG_ATOMIC_T $cf_cv_sig_atomic_t #define SIG_ATOMIC_T $cf_cv_sig_atomic_t
EOF EOF
echo "$as_me:5111: checking for ANSI C header files" >&5 echo "$as_me:5113: checking for ANSI C header files" >&5
echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
if test "${ac_cv_header_stdc+set}" = set; then if test "${ac_cv_header_stdc+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6 echo $ECHO_N "(cached) $ECHO_C" >&6
else else
cat >"conftest.$ac_ext" <<_ACEOF cat >"conftest.$ac_ext" <<_ACEOF
#line 5117 "configure" #line 5119 "configure"
#include "confdefs.h" #include "confdefs.h"
#include <stdlib.h> #include <stdlib.h>
#include <stdarg.h> #include <stdarg.h>
#include <string.h> #include <string.h>
#include <float.h> #include <float.h>
_ACEOF _ACEOF
if { (eval echo "$as_me:5125: \"$ac_cpp "conftest.$ac_ext"\"") >&5 if { (eval echo "$as_me:5127: \"$ac_cpp "conftest.$ac_ext"\"") >&5
(eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1 (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1
ac_status=$? ac_status=$?
$EGREP -v '^ *\+' conftest.er1 >conftest.err $EGREP -v '^ *\+' conftest.er1 >conftest.err
rm -f conftest.er1 rm -f conftest.er1
cat conftest.err >&5 cat conftest.err >&5
echo "$as_me:5131: \$? = $ac_status" >&5 echo "$as_me:5133: \$? = $ac_status" >&5
(exit "$ac_status"); } >/dev/null; then (exit "$ac_status"); } >/dev/null; then
if test -s conftest.err; then if test -s conftest.err; then
ac_cpp_err=$ac_c_preproc_warn_flag ac_cpp_err=$ac_c_preproc_warn_flag
else else
ac_cpp_err= ac_cpp_err=
fi fi
else else
ac_cpp_err=yes ac_cpp_err=yes
fi fi
if test -z "$ac_cpp_err"; then if test -z "$ac_cpp_err"; then
skipping to change at line 5153 skipping to change at line 5155
else else
echo "$as_me: failed program was:" >&5 echo "$as_me: failed program was:" >&5
cat "conftest.$ac_ext" >&5 cat "conftest.$ac_ext" >&5
ac_cv_header_stdc=no ac_cv_header_stdc=no
fi fi
rm -f conftest.err "conftest.$ac_ext" rm -f conftest.err "conftest.$ac_ext"
if test $ac_cv_header_stdc = yes; then if test $ac_cv_header_stdc = yes; then
# SunOS 4.x string.h does not declare mem*, contrary to ANSI. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
cat >"conftest.$ac_ext" <<_ACEOF cat >"conftest.$ac_ext" <<_ACEOF
#line 5153 "configure" #line 5155 "configure"
#include "confdefs.h" #include "confdefs.h"
#include <string.h> #include <string.h>
_ACEOF _ACEOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
$EGREP "memchr" >/dev/null 2>&1; then $EGREP "memchr" >/dev/null 2>&1; then
: :
else else
ac_cv_header_stdc=no ac_cv_header_stdc=no
fi fi
rm -rf conftest* rm -rf conftest*
fi fi
if test $ac_cv_header_stdc = yes; then if test $ac_cv_header_stdc = yes; then
# ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
cat >"conftest.$ac_ext" <<_ACEOF cat >"conftest.$ac_ext" <<_ACEOF
#line 5171 "configure" #line 5173 "configure"
#include "confdefs.h" #include "confdefs.h"
#include <stdlib.h> #include <stdlib.h>
_ACEOF _ACEOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
$EGREP "free" >/dev/null 2>&1; then $EGREP "free" >/dev/null 2>&1; then
: :
else else
ac_cv_header_stdc=no ac_cv_header_stdc=no
fi fi
rm -rf conftest* rm -rf conftest*
fi fi
if test $ac_cv_header_stdc = yes; then if test $ac_cv_header_stdc = yes; then
# /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
if test "$cross_compiling" = yes; then if test "$cross_compiling" = yes; then
: :
else else
cat >"conftest.$ac_ext" <<_ACEOF cat >"conftest.$ac_ext" <<_ACEOF
#line 5192 "configure" #line 5194 "configure"
#include "confdefs.h" #include "confdefs.h"
#include <ctype.h> #include <ctype.h>
#if ((' ' & 0x0FF) == 0x020) #if ((' ' & 0x0FF) == 0x020)
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
#else #else
# define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \ # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
|| ('j' <= (c) && (c) <= 'r') \ || ('j' <= (c) && (c) <= 'r') \
|| ('s' <= (c) && (c) <= 'z')) || ('s' <= (c) && (c) <= 'z'))
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
skipping to change at line 5218 skipping to change at line 5220
{ {
int i; int i;
for (i = 0; i < 256; i++) for (i = 0; i < 256; i++)
if (XOR (islower (i), ISLOWER (i)) if (XOR (islower (i), ISLOWER (i))
|| toupper (i) != TOUPPER (i)) || toupper (i) != TOUPPER (i))
$ac_main_return(2); $ac_main_return(2);
$ac_main_return (0); $ac_main_return (0);
} }
_ACEOF _ACEOF
rm -f "conftest$ac_exeext" rm -f "conftest$ac_exeext"
if { (eval echo "$as_me:5218: \"$ac_link\"") >&5 if { (eval echo "$as_me:5220: \"$ac_link\"") >&5
(eval $ac_link) 2>&5 (eval $ac_link) 2>&5
ac_status=$? ac_status=$?
echo "$as_me:5221: \$? = $ac_status" >&5 echo "$as_me:5223: \$? = $ac_status" >&5
(exit "$ac_status"); } && { ac_try='"./conftest$ac_exeext"' (exit "$ac_status"); } && { ac_try='"./conftest$ac_exeext"'
{ (eval echo "$as_me:5223: \"$ac_try\"") >&5 { (eval echo "$as_me:5225: \"$ac_try\"") >&5
(eval $ac_try) 2>&5 (eval $ac_try) 2>&5
ac_status=$? ac_status=$?
echo "$as_me:5226: \$? = $ac_status" >&5 echo "$as_me:5228: \$? = $ac_status" >&5
(exit "$ac_status"); }; }; then (exit "$ac_status"); }; }; then
: :
else else
echo "$as_me: program exited with status $ac_status" >&5 echo "$as_me: program exited with status $ac_status" >&5
echo "$as_me: failed program was:" >&5 echo "$as_me: failed program was:" >&5
cat "conftest.$ac_ext" >&5 cat "conftest.$ac_ext" >&5
ac_cv_header_stdc=no ac_cv_header_stdc=no
fi fi
rm -f core ./core.* ./*.core "conftest$ac_exeext" "conftest.$ac_objext" "conftes t.$ac_ext" rm -f core ./core.* ./*.core "conftest$ac_exeext" "conftest.$ac_objext" "conftes t.$ac_ext"
fi fi
fi fi
fi fi
echo "$as_me:5239: result: $ac_cv_header_stdc" >&5 echo "$as_me:5241: result: $ac_cv_header_stdc" >&5
echo "${ECHO_T}$ac_cv_header_stdc" >&6 echo "${ECHO_T}$ac_cv_header_stdc" >&6
if test $ac_cv_header_stdc = yes; then if test $ac_cv_header_stdc = yes; then
cat >>confdefs.h <<\EOF cat >>confdefs.h <<\EOF
#define STDC_HEADERS 1 #define STDC_HEADERS 1
EOF EOF
fi fi
# On IRIX 5.3, sys/types and inttypes.h are conflicting. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
inttypes.h stdint.h unistd.h inttypes.h stdint.h unistd.h
do do
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
echo "$as_me:5255: checking for $ac_header" >&5 echo "$as_me:5257: checking for $ac_header" >&5
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
if eval "test \"\${$as_ac_Header+set}\" = set"; then if eval "test \"\${$as_ac_Header+set}\" = set"; then
echo $ECHO_N "(cached) $ECHO_C" >&6 echo $ECHO_N "(cached) $ECHO_C" >&6
else else
cat >"conftest.$ac_ext" <<_ACEOF cat >"conftest.$ac_ext" <<_ACEOF
#line 5261 "configure" #line 5263 "configure"
#include "confdefs.h" #include "confdefs.h"
$ac_includes_default $ac_includes_default
#include <$ac_header> #include <$ac_header>
_ACEOF _ACEOF
rm -f "conftest.$ac_objext" rm -f "conftest.$ac_objext"
if { (eval echo "$as_me:5267: \"$ac_compile\"") >&5 if { (eval echo "$as_me:5269: \"$ac_compile\"") >&5
(eval $ac_compile) 2>&5 (eval $ac_compile) 2>&5
ac_status=$? ac_status=$?
echo "$as_me:5270: \$? = $ac_status" >&5 echo "$as_me:5272: \$? = $ac_status" >&5
(exit "$ac_status"); } && (exit "$ac_status"); } &&
{ ac_try='test -s "conftest.$ac_objext"' { ac_try='test -s "conftest.$ac_objext"'
{ (eval echo "$as_me:5273: \"$ac_try\"") >&5 { (eval echo "$as_me:5275: \"$ac_try\"") >&5
(eval $ac_try) 2>&5 (eval $ac_try) 2>&5
ac_status=$? ac_status=$?
echo "$as_me:5276: \$? = $ac_status" >&5 echo "$as_me:5278: \$? = $ac_status" >&5
(exit "$ac_status"); }; }; then (exit "$ac_status"); }; }; then
eval "$as_ac_Header=yes" eval "$as_ac_Header=yes"
else else
echo "$as_me: failed program was:" >&5 echo "$as_me: failed program was:" >&5
cat "conftest.$ac_ext" >&5 cat "conftest.$ac_ext" >&5
eval "$as_ac_Header=no" eval "$as_ac_Header=no"
fi fi
rm -f "conftest.$ac_objext" "conftest.$ac_ext" rm -f "conftest.$ac_objext" "conftest.$ac_ext"
fi fi
echo "$as_me:5286: result: `eval echo '${'"$as_ac_Header"'}'`" >&5 echo "$as_me:5288: result: `eval echo '${'"$as_ac_Header"'}'`" >&5
echo "${ECHO_T}`eval echo '${'"$as_ac_Header"'}'`" >&6 echo "${ECHO_T}`eval echo '${'"$as_ac_Header"'}'`" >&6
if test "`eval echo '${'"$as_ac_Header"'}'`" = yes; then if test "`eval echo '${'"$as_ac_Header"'}'`" = yes; then
cat >>confdefs.h <<EOF cat >>confdefs.h <<EOF
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
EOF EOF
fi fi
done done
echo "$as_me:5296: checking for time_t" >&5 echo "$as_me:5298: checking for time_t" >&5
echo $ECHO_N "checking for time_t... $ECHO_C" >&6 echo $ECHO_N "checking for time_t... $ECHO_C" >&6
if test "${ac_cv_type_time_t+set}" = set; then if test "${ac_cv_type_time_t+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6 echo $ECHO_N "(cached) $ECHO_C" >&6
else else
cat >"conftest.$ac_ext" <<_ACEOF cat >"conftest.$ac_ext" <<_ACEOF
#line 5302 "configure" #line 5304 "configure"
#include "confdefs.h" #include "confdefs.h"
$ac_includes_default $ac_includes_default
int int
main (void) main (void)
{ {
if ((time_t *) 0) if ((time_t *) 0)
return 0; return 0;
if (sizeof (time_t)) if (sizeof (time_t))
return 0; return 0;
; ;
return 0; return 0;
} }
_ACEOF _ACEOF
rm -f "conftest.$ac_objext" rm -f "conftest.$ac_objext"
if { (eval echo "$as_me:5317: \"$ac_compile\"") >&5 if { (eval echo "$as_me:5319: \"$ac_compile\"") >&5
(eval $ac_compile) 2>&5 (eval $ac_compile) 2>&5
ac_status=$? ac_status=$?
echo "$as_me:5320: \$? = $ac_status" >&5 echo "$as_me:5322: \$? = $ac_status" >&5
(exit "$ac_status"); } && (exit "$ac_status"); } &&
{ ac_try='test -s "conftest.$ac_objext"' { ac_try='test -s "conftest.$ac_objext"'
{ (eval echo "$as_me:5323: \"$ac_try\"") >&5 { (eval echo "$as_me:5325: \"$ac_try\"") >&5
(eval $ac_try) 2>&5 (eval $ac_try) 2>&5
ac_status=$? ac_status=$?
echo "$as_me:5326: \$? = $ac_status" >&5 echo "$as_me:5328: \$? = $ac_status" >&5
(exit "$ac_status"); }; }; then (exit "$ac_status"); }; }; then
ac_cv_type_time_t=yes ac_cv_type_time_t=yes
else else
echo "$as_me: failed program was:" >&5 echo "$as_me: failed program was:" >&5
cat "conftest.$ac_ext" >&5 cat "conftest.$ac_ext" >&5
ac_cv_type_time_t=no ac_cv_type_time_t=no
fi fi
rm -f "conftest.$ac_objext" "conftest.$ac_ext" rm -f "conftest.$ac_objext" "conftest.$ac_ext"
fi fi
echo "$as_me:5336: result: $ac_cv_type_time_t" >&5 echo "$as_me:5338: result: $ac_cv_type_time_t" >&5
echo "${ECHO_T}$ac_cv_type_time_t" >&6 echo "${ECHO_T}$ac_cv_type_time_t" >&6
if test "$ac_cv_type_time_t" = yes; then if test "$ac_cv_type_time_t" = yes; then
: :
else else
cat >>confdefs.h <<EOF cat >>confdefs.h <<EOF
#define time_t long #define time_t long
EOF EOF
fi fi
echo "$as_me:5348: checking for cc_t in <termios.h> or <termio.h>" >&5 echo "$as_me:5350: checking for cc_t in <termios.h> or <termio.h>" >&5
echo $ECHO_N "checking for cc_t in <termios.h> or <termio.h>... $ECHO_C" >&6 echo $ECHO_N "checking for cc_t in <termios.h> or <termio.h>... $ECHO_C" >&6
if test "${cf_cv_type_cc_t+set}" = set; then if test "${cf_cv_type_cc_t+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6 echo $ECHO_N "(cached) $ECHO_C" >&6
else else
cat >"conftest.$ac_ext" <<_ACEOF cat >"conftest.$ac_ext" <<_ACEOF
#line 5355 "configure" #line 5357 "configure"
#include "confdefs.h" #include "confdefs.h"
#include <sys/types.h> #include <sys/types.h>
#if defined(HAVE_TERMIOS_H) #if defined(HAVE_TERMIOS_H)
#include <termios.h> #include <termios.h>
#else #else
#include <termio.h> #include <termio.h>
#include <sys/ioctl.h> #include <sys/ioctl.h>
#endif #endif
int int
main (void) main (void)
{ {
cc_t x; (void)x cc_t x; (void)x
; ;
return 0; return 0;
} }
_ACEOF _ACEOF
rm -f "conftest.$ac_objext" rm -f "conftest.$ac_objext"
if { (eval echo "$as_me:5375: \"$ac_compile\"") >&5 if { (eval echo "$as_me:5377: \"$ac_compile\"") >&5
(eval $ac_compile) 2>&5 (eval $ac_compile) 2>&5
ac_status=$? ac_status=$?
echo "$as_me:5378: \$? = $ac_status" >&5 echo "$as_me:5380: \$? = $ac_status" >&5
(exit "$ac_status"); } && (exit "$ac_status"); } &&
{ ac_try='test -s "conftest.$ac_objext"' { ac_try='test -s "conftest.$ac_objext"'
{ (eval echo "$as_me:5381: \"$ac_try\"") >&5 { (eval echo "$as_me:5383: \"$ac_try\"") >&5
(eval $ac_try) 2>&5 (eval $ac_try) 2>&5
ac_status=$? ac_status=$?
echo "$as_me:5384: \$? = $ac_status" >&5 echo "$as_me:5386: \$? = $ac_status" >&5
(exit "$ac_status"); }; }; then (exit "$ac_status"); }; }; then
cf_cv_type_cc_t=yes cf_cv_type_cc_t=yes
else else
echo "$as_me: failed program was:" >&5 echo "$as_me: failed program was:" >&5
cat "conftest.$ac_ext" >&5 cat "conftest.$ac_ext" >&5
cf_cv_type_cc_t=no cf_cv_type_cc_t=no
fi fi
rm -f "conftest.$ac_objext" "conftest.$ac_ext" rm -f "conftest.$ac_objext" "conftest.$ac_ext"
fi fi
echo "$as_me:5396: result: $cf_cv_type_cc_t" >&5 echo "$as_me:5398: result: $cf_cv_type_cc_t" >&5
echo "${ECHO_T}$cf_cv_type_cc_t" >&6 echo "${ECHO_T}$cf_cv_type_cc_t" >&6
test $cf_cv_type_cc_t = no && test $cf_cv_type_cc_t = no &&
cat >>confdefs.h <<\EOF cat >>confdefs.h <<\EOF
#define cc_t unsigned char #define cc_t unsigned char
EOF EOF
echo "$as_me:5403: checking for mode_t" >&5 echo "$as_me:5405: checking for mode_t" >&5
echo $ECHO_N "checking for mode_t... $ECHO_C" >&6 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
if test "${ac_cv_type_mode_t+set}" = set; then if test "${ac_cv_type_mode_t+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6 echo $ECHO_N "(cached) $ECHO_C" >&6
else else
cat >"conftest.$ac_ext" <<_ACEOF cat >"conftest.$ac_ext" <<_ACEOF
#line 5409 "configure" #line 5411 "configure"
#include "confdefs.h" #include "confdefs.h"
$ac_includes_default $ac_includes_default
int int
main (void) main (void)
{ {
if ((mode_t *) 0) if ((mode_t *) 0)
return 0; return 0;
if (sizeof (mode_t)) if (sizeof (mode_t))
return 0; return 0;
; ;
return 0; return 0;
} }
_ACEOF _ACEOF
rm -f "conftest.$ac_objext" rm -f "conftest.$ac_objext"
if { (eval echo "$as_me:5424: \"$ac_compile\"") >&5 if { (eval echo "$as_me:5426: \"$ac_compile\"") >&5
(eval $ac_compile) 2>&5 (eval $ac_compile) 2>&5
ac_status=$? ac_status=$?
echo "$as_me:5427: \$? = $ac_status" >&5 echo "$as_me:5429: \$? = $ac_status" >&5
(exit "$ac_status"); } && (exit "$ac_status"); } &&
{ ac_try='test -s "conftest.$ac_objext"' { ac_try='test -s "conftest.$ac_objext"'
{ (eval echo "$as_me:5430: \"$ac_try\"") >&5 { (eval echo "$as_me:5432: \"$ac_try\"") >&5
(eval $ac_try) 2>&5 (eval $ac_try) 2>&5
ac_status=$? ac_status=$?
echo "$as_me:5433: \$? = $ac_status" >&5 echo "$as_me:5435: \$? = $ac_status" >&5
(exit "$ac_status"); }; }; then (exit "$ac_status"); }; }; then
ac_cv_type_mode_t=yes ac_cv_type_mode_t=yes
else else
echo "$as_me: failed program was:" >&5 echo "$as_me: failed program was:" >&5
cat "conftest.$ac_ext" >&5 cat "conftest.$ac_ext" >&5
ac_cv_type_mode_t=no ac_cv_type_mode_t=no
fi fi
rm -f "conftest.$ac_objext" "conftest.$ac_ext" rm -f "conftest.$ac_objext" "conftest.$ac_ext"
fi fi
echo "$as_me:5443: result: $ac_cv_type_mode_t" >&5 echo "$as_me:5445: result: $ac_cv_type_mode_t" >&5
echo "${ECHO_T}$ac_cv_type_mode_t" >&6 echo "${ECHO_T}$ac_cv_type_mode_t" >&6
if test "$ac_cv_type_mode_t" = yes; then if test "$ac_cv_type_mode_t" = yes; then
: :
else else
cat >>confdefs.h <<EOF cat >>confdefs.h <<EOF
#define mode_t int #define mode_t int
EOF EOF
fi fi
echo "$as_me:5455: checking for pid_t" >&5 echo "$as_me:5457: checking for pid_t" >&5
echo $ECHO_N "checking for pid_t... $ECHO_C" >&6 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
if test "${ac_cv_type_pid_t+set}" = set; then if test "${ac_cv_type_pid_t+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6 echo $ECHO_N "(cached) $ECHO_C" >&6
else else
cat >"conftest.$ac_ext" <<_ACEOF cat >"conftest.$ac_ext" <<_ACEOF
#line 5461 "configure" #line 5463 "configure"
#include "confdefs.h" #include "confdefs.h"
$ac_includes_default $ac_includes_default
int int
main (void) main (void)
{ {
if ((pid_t *) 0) if ((pid_t *) 0)
return 0; return 0;
if (sizeof (pid_t)) if (sizeof (pid_t))
return 0; return 0;
; ;
return 0; return 0;
} }
_ACEOF _ACEOF
rm -f "conftest.$ac_objext" rm -f "conftest.$ac_objext"
if { (eval echo "$as_me:5476: \"$ac_compile\"") >&5 if { (eval echo "$as_me:5478: \"$ac_compile\"") >&5
(eval $ac_compile) 2>&5 (eval $ac_compile) 2>&5
ac_status=$? ac_status=$?
echo "$as_me:5479: \$? = $ac_status" >&5 echo "$as_me:5481: \$? = $ac_status" >&5
(exit "$ac_status"); } && (exit "$ac_status"); } &&
{ ac_try='test -s "conftest.$ac_objext"' { ac_try='test -s "conftest.$ac_objext"'
{ (eval echo "$as_me:5482: \"$ac_try\"") >&5 { (eval echo "$as_me:5484: \"$ac_try\"") >&5
(eval $ac_try) 2>&5 (eval $ac_try) 2>&5
ac_status=$? ac_status=$?
echo "$as_me:5485: \$? = $ac_status" >&5 echo "$as_me:5487: \$? = $ac_status" >&5
(exit "$ac_status"); }; }; then (exit "$ac_status"); }; }; then
ac_cv_type_pid_t=yes ac_cv_type_pid_t=yes
else else
echo "$as_me: failed program was:" >&5 echo "$as_me: failed program was:" >&5
cat "conftest.$ac_ext" >&5 cat "conftest.$ac_ext" >&5
ac_cv_type_pid_t=no ac_cv_type_pid_t=no
fi fi
rm -f "conftest.$ac_objext" "conftest.$ac_ext" rm -f "conftest.$ac_objext" "conftest.$ac_ext"
fi fi
echo "$as_me:5495: result: $ac_cv_type_pid_t" >&5 echo "$as_me:5497: result: $ac_cv_type_pid_t" >&5
echo "${ECHO_T}$ac_cv_type_pid_t" >&6 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
if test "$ac_cv_type_pid_t" = yes; then if test "$ac_cv_type_pid_t" = yes; then
: :
else else
cat >>confdefs.h <<EOF cat >>confdefs.h <<EOF
#define pid_t int #define pid_t int
EOF EOF
fi fi
echo "$as_me:5507: checking for uid_t in sys/types.h" >&5 echo "$as_me:5509: checking for uid_t in sys/types.h" >&5
echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
if test "${ac_cv_type_uid_t+set}" = set; then if test "${ac_cv_type_uid_t+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6 echo $ECHO_N "(cached) $ECHO_C" >&6
else else
cat >"conftest.$ac_ext" <<_ACEOF cat >"conftest.$ac_ext" <<_ACEOF
#line 5513 "configure" #line 5515 "configure"
#include "confdefs.h" #include "confdefs.h"
#include <sys/types.h> #include <sys/types.h>
_ACEOF _ACEOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
$EGREP "uid_t" >/dev/null 2>&1; then $EGREP "uid_t" >/dev/null 2>&1; then
ac_cv_type_uid_t=yes ac_cv_type_uid_t=yes
else else
ac_cv_type_uid_t=no ac_cv_type_uid_t=no
fi fi
rm -rf conftest* rm -rf conftest*
fi fi
echo "$as_me:5527: result: $ac_cv_type_uid_t" >&5 echo "$as_me:5529: result: $ac_cv_type_uid_t" >&5
echo "${ECHO_T}$ac_cv_type_uid_t" >&6 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
if test $ac_cv_type_uid_t = no; then if test $ac_cv_type_uid_t = no; then
cat >>confdefs.h <<\EOF cat >>confdefs.h <<\EOF
#define uid_t int #define uid_t int
EOF EOF
cat >>confdefs.h <<\EOF cat >>confdefs.h <<\EOF
#define gid_t int #define gid_t int
EOF EOF
fi fi
echo "$as_me:5541: checking for off_t" >&5 echo "$as_me:5543: checking for off_t" >&5
echo $ECHO_N "checking for off_t... $ECHO_C" >&6 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
if test "${ac_cv_type_off_t+set}" = set; then if test "${ac_cv_type_off_t+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6 echo $ECHO_N "(cached) $ECHO_C" >&6
else else
cat >"conftest.$ac_ext" <<_ACEOF cat >"conftest.$ac_ext" <<_ACEOF
#line 5547 "configure" #line 5549 "configure"
#include "confdefs.h" #include "confdefs.h"
$ac_includes_default $ac_includes_default
int int
main (void) main (void)
{ {
if ((off_t *) 0) if ((off_t *) 0)
return 0; return 0;
if (sizeof (off_t)) if (sizeof (off_t))
return 0; return 0;
; ;
return 0; return 0;
} }
_ACEOF _ACEOF
rm -f "conftest.$ac_objext" rm -f "conftest.$ac_objext"
if { (eval echo "$as_me:5562: \"$ac_compile\"") >&5 if { (eval echo "$as_me:5564: \"$ac_compile\"") >&5
(eval $ac_compile) 2>&5 (eval $ac_compile) 2>&5
ac_status=$? ac_status=$?
echo "$as_me:5565: \$? = $ac_status" >&5 echo "$as_me:5567: \$? = $ac_status" >&5
(exit "$ac_status"); } && (exit "$ac_status"); } &&
{ ac_try='test -s "conftest.$ac_objext"' { ac_try='test -s "conftest.$ac_objext"'
{ (eval echo "$as_me:5568: \"$ac_try\"") >&5 { (eval echo "$as_me:5570: \"$ac_try\"") >&5
(eval $ac_try) 2>&5 (eval $ac_try) 2>&5
ac_status=$? ac_status=$?
echo "$as_me:5571: \$? = $ac_status" >&5 echo "$as_me:5573: \$? = $ac_status" >&5
(exit "$ac_status"); }; }; then (exit "$ac_status"); }; }; then
ac_cv_type_off_t=yes ac_cv_type_off_t=yes
else else
echo "$as_me: failed program was:" >&5 echo "$as_me: failed program was:" >&5
cat "conftest.$ac_ext" >&5 cat "conftest.$ac_ext" >&5
ac_cv_type_off_t=no ac_cv_type_off_t=no
fi fi
rm -f "conftest.$ac_objext" "conftest.$ac_ext" rm -f "conftest.$ac_objext" "conftest.$ac_ext"
fi fi
echo "$as_me:5581: result: $ac_cv_type_off_t" >&5 echo "$as_me:5583: result: $ac_cv_type_off_t" >&5
echo "${ECHO_T}$ac_cv_type_off_t" >&6 echo "${ECHO_T}$ac_cv_type_off_t" >&6
if test "$ac_cv_type_off_t" = yes; then if test "$ac_cv_type_off_t" = yes; then
: :
else else
cat >>confdefs.h <<EOF cat >>confdefs.h <<EOF
#define off_t long #define off_t long
EOF EOF
fi fi
skipping to change at line 5613 skipping to change at line 5615
unsetenv \ unsetenv \
sched_yield \ sched_yield \
setpgid \ setpgid \
strftime \ strftime \
tcgetattr \ tcgetattr \
waitpid \ waitpid \
wcswidth \ wcswidth \
wcwidth wcwidth
do do
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
echo "$as_me:5613: checking for $ac_func" >&5 echo "$as_me:5615: checking for $ac_func" >&5
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
if eval "test \"\${$as_ac_var+set}\" = set"; then if eval "test \"\${$as_ac_var+set}\" = set"; then
echo $ECHO_N "(cached) $ECHO_C" >&6 echo $ECHO_N "(cached) $ECHO_C" >&6
else else
cat >"conftest.$ac_ext" <<_ACEOF cat >"conftest.$ac_ext" <<_ACEOF
#line 5619 "configure" #line 5621 "configure"
#include "confdefs.h" #include "confdefs.h"
#define $ac_func autoconf_temporary #define $ac_func autoconf_temporary
#include <limits.h> /* least-intrusive standard header which defines gcc2 __s tub macros */ #include <limits.h> /* least-intrusive standard header which defines gcc2 __s tub macros */
#undef $ac_func #undef $ac_func
#ifdef __cplusplus #ifdef __cplusplus
extern "C" extern "C"
#endif #endif
/* We use char because int might match the return type of a gcc2 /* We use char because int might match the return type of a gcc2
skipping to change at line 5650 skipping to change at line 5652
#if defined (__stub_$ac_func) || defined (__stub___$ac_func) #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
#error found stub for $ac_func #error found stub for $ac_func
#endif #endif
return $ac_func (); return $ac_func ();
; ;
return 0; return 0;
} }
_ACEOF _ACEOF
rm -f "conftest.$ac_objext" "conftest$ac_exeext" rm -f "conftest.$ac_objext" "conftest$ac_exeext"
if { (eval echo "$as_me:5650: \"$ac_link\"") >&5 if { (eval echo "$as_me:5652: \"$ac_link\"") >&5
(eval $ac_link) 2>&5 (eval $ac_link) 2>&5
ac_status=$? ac_status=$?
echo "$as_me:5653: \$? = $ac_status" >&5 echo "$as_me:5655: \$? = $ac_status" >&5
(exit "$ac_status"); } && (exit "$ac_status"); } &&
{ ac_try='test -s "conftest$ac_exeext"' { ac_try='test -s "conftest$ac_exeext"'
{ (eval echo "$as_me:5656: \"$ac_try\"") >&5 { (eval echo "$as_me:5658: \"$ac_try\"") >&5
(eval $ac_try) 2>&5 (eval $ac_try) 2>&5
ac_status=$? ac_status=$?
echo "$as_me:5659: \$? = $ac_status" >&5 echo "$as_me:5661: \$? = $ac_status" >&5
(exit "$ac_status"); }; }; then (exit "$ac_status"); }; }; then
eval "$as_ac_var=yes" eval "$as_ac_var=yes"
else else
echo "$as_me: failed program was:" >&5 echo "$as_me: failed program was:" >&5
cat "conftest.$ac_ext" >&5 cat "conftest.$ac_ext" >&5
eval "$as_ac_var=no" eval "$as_ac_var=no"
fi fi
rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext" rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
fi fi
echo "$as_me:5669: result: `eval echo '${'"$as_ac_var"'}'`" >&5 echo "$as_me:5671: result: `eval echo '${'"$as_ac_var"'}'`" >&5
echo "${ECHO_T}`eval echo '${'"$as_ac_var"'}'`" >&6 echo "${ECHO_T}`eval echo '${'"$as_ac_var"'}'`" >&6
if test "`eval echo '${'"$as_ac_var"'}'`" = yes; then if test "`eval echo '${'"$as_ac_var"'}'`" = yes; then
cat >>confdefs.h <<EOF cat >>confdefs.h <<EOF
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
EOF EOF
fi fi
done done
for ac_header in lastlog.h paths.h for ac_header in lastlog.h paths.h
do do
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
echo "$as_me:5682: checking for $ac_header" >&5 echo "$as_me:5684: checking for $ac_header" >&5
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
if eval "test \"\${$as_ac_Header+set}\" = set"; then if eval "test \"\${$as_ac_Header+set}\" = set"; then
echo $ECHO_N "(cached) $ECHO_C" >&6 echo $ECHO_N "(cached) $ECHO_C" >&6
else else
cat >"conftest.$ac_ext" <<_ACEOF cat >"conftest.$ac_ext" <<_ACEOF
#line 5688 "configure" #line 5690 "configure"
#include "confdefs.h" #include "confdefs.h"
#include <$ac_header> #include <$ac_header>
_ACEOF _ACEOF
if { (eval echo "$as_me:5692: \"$ac_cpp "conftest.$ac_ext"\"") >&5 if { (eval echo "$as_me:5694: \"$ac_cpp "conftest.$ac_ext"\"") >&5
(eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1 (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1
ac_status=$? ac_status=$?
$EGREP -v '^ *\+' conftest.er1 >conftest.err $EGREP -v '^ *\+' conftest.er1 >conftest.err
rm -f conftest.er1 rm -f conftest.er1
cat conftest.err >&5 cat conftest.err >&5
echo "$as_me:5698: \$? = $ac_status" >&5 echo "$as_me:5700: \$? = $ac_status" >&5
(exit "$ac_status"); } >/dev/null; then (exit "$ac_status"); } >/dev/null; then
if test -s conftest.err; then if test -s conftest.err; then
ac_cpp_err=$ac_c_preproc_warn_flag ac_cpp_err=$ac_c_preproc_warn_flag
else else
ac_cpp_err= ac_cpp_err=
fi fi
else else
ac_cpp_err=yes ac_cpp_err=yes
fi fi
if test -z "$ac_cpp_err"; then if test -z "$ac_cpp_err"; then
eval "$as_ac_Header=yes" eval "$as_ac_Header=yes"
else else
echo "$as_me: failed program was:" >&5 echo "$as_me: failed program was:" >&5
cat "conftest.$ac_ext" >&5 cat "conftest.$ac_ext" >&5
eval "$as_ac_Header=no" eval "$as_ac_Header=no"
fi fi
rm -f conftest.err "conftest.$ac_ext" rm -f conftest.err "conftest.$ac_ext"
fi fi
echo "$as_me:5717: result: `eval echo '${'"$as_ac_Header"'}'`" >&5 echo "$as_me:5719: result: `eval echo '${'"$as_ac_Header"'}'`" >&5
echo "${ECHO_T}`eval echo '${'"$as_ac_Header"'}'`" >&6 echo "${ECHO_T}`eval echo '${'"$as_ac_Header"'}'`" >&6
if test "`eval echo '${'"$as_ac_Header"'}'`" = yes; then if test "`eval echo '${'"$as_ac_Header"'}'`" = yes; then
cat >>confdefs.h <<EOF cat >>confdefs.h <<EOF
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
EOF EOF
fi fi
done done
echo "$as_me:5727: checking for lastlog path" >&5 echo "$as_me:5729: checking for lastlog path" >&5
echo $ECHO_N "checking for lastlog path... $ECHO_C" >&6 echo $ECHO_N "checking for lastlog path... $ECHO_C" >&6
if test "${cf_cv_path_lastlog+set}" = set; then if test "${cf_cv_path_lastlog+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6 echo $ECHO_N "(cached) $ECHO_C" >&6
else else
cat >"conftest.$ac_ext" <<_ACEOF cat >"conftest.$ac_ext" <<_ACEOF
#line 5734 "configure" #line 5736 "configure"
#include "confdefs.h" #include "confdefs.h"
#include <sys/types.h> #include <sys/types.h>
#ifdef HAVE_LASTLOG_H #ifdef HAVE_LASTLOG_H
#include <lastlog.h> #include <lastlog.h>
#else #else
#ifdef HAVE_PATHS_H #ifdef HAVE_PATHS_H
#include <paths.h> #include <paths.h>
#endif #endif
#endif #endif
int int
main (void) main (void)
{ {
char *path = _PATH_LASTLOG; (void)path char *path = _PATH_LASTLOG; (void)path
; ;
return 0; return 0;
} }
_ACEOF _ACEOF
rm -f "conftest.$ac_objext" rm -f "conftest.$ac_objext"
if { (eval echo "$as_me:5754: \"$ac_compile\"") >&5 if { (eval echo "$as_me:5756: \"$ac_compile\"") >&5
(eval $ac_compile) 2>&5 (eval $ac_compile) 2>&5
ac_status=$? ac_status=$?
echo "$as_me:5757: \$? = $ac_status" >&5 echo "$as_me:5759: \$? = $ac_status" >&5
(exit "$ac_status"); } && (exit "$ac_status"); } &&
{ ac_try='test -s "conftest.$ac_objext"' { ac_try='test -s "conftest.$ac_objext"'
{ (eval echo "$as_me:5760: \"$ac_try\"") >&5 { (eval echo "$as_me:5762: \"$ac_try\"") >&5
(eval $ac_try) 2>&5 (eval $ac_try) 2>&5
ac_status=$? ac_status=$?
echo "$as_me:5763: \$? = $ac_status" >&5 echo "$as_me:5765: \$? = $ac_status" >&5
(exit "$ac_status"); }; }; then (exit "$ac_status"); }; }; then
cf_cv_path_lastlog="_PATH_LASTLOG" cf_cv_path_lastlog="_PATH_LASTLOG"
else else
echo "$as_me: failed program was:" >&5 echo "$as_me: failed program was:" >&5
cat "conftest.$ac_ext" >&5 cat "conftest.$ac_ext" >&5
if test -f /usr/adm/lastlog ; then if test -f /usr/adm/lastlog ; then
cf_cv_path_lastlog=/usr/adm/lastlog cf_cv_path_lastlog=/usr/adm/lastlog
else else
cf_cv_path_lastlog=no cf_cv_path_lastlog=no
fi fi
fi fi
rm -f "conftest.$ac_objext" "conftest.$ac_ext" rm -f "conftest.$ac_objext" "conftest.$ac_ext"
fi fi
echo "$as_me:5778: result: $cf_cv_path_lastlog" >&5 echo "$as_me:5780: result: $cf_cv_path_lastlog" >&5
echo "${ECHO_T}$cf_cv_path_lastlog" >&6 echo "${ECHO_T}$cf_cv_path_lastlog" >&6
test "$cf_cv_path_lastlog" != no && test "$cf_cv_path_lastlog" != no &&
cat >>confdefs.h <<\EOF cat >>confdefs.h <<\EOF
#define USE_LASTLOG 1 #define USE_LASTLOG 1
EOF EOF
echo "$as_me:5785: checking for utmp implementation" >&5 echo "$as_me:5787: checking for utmp implementation" >&5
echo $ECHO_N "checking for utmp implementation... $ECHO_C" >&6 echo $ECHO_N "checking for utmp implementation... $ECHO_C" >&6
if test "${cf_cv_have_utmp+set}" = set; then if test "${cf_cv_have_utmp+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6 echo $ECHO_N "(cached) $ECHO_C" >&6
else else
cf_cv_have_utmp=no cf_cv_have_utmp=no
for cf_header in utmpx utmp ; do for cf_header in utmpx utmp ; do
cf_utmp_includes=" cf_utmp_includes="
#include <sys/types.h> #include <sys/types.h>
#include <${cf_header}.h> #include <${cf_header}.h>
#define getutent getutxent #define getutent getutxent
#ifdef USE_LASTLOG #ifdef USE_LASTLOG
#include <lastlog.h> /* may conflict with utmpx.h on Linux */ #include <lastlog.h> /* may conflict with utmpx.h on Linux */
#endif #endif
" "
cat >"conftest.$ac_ext" <<_ACEOF cat >"conftest.$ac_ext" <<_ACEOF
#line 5802 "configure" #line 5804 "configure"
#include "confdefs.h" #include "confdefs.h"
$cf_utmp_includes $cf_utmp_includes
int int
main (void) main (void)
{ {
struct $cf_header x; struct $cf_header x;
char *name = x.ut_name; /* utmp.h and compatible definitions */ char *name = x.ut_name; /* utmp.h and compatible definitions */
(void)x; (void)x;
(void)name; (void)name;
; ;
return 0; return 0;
} }
_ACEOF _ACEOF
rm -f "conftest.$ac_objext" rm -f "conftest.$ac_objext"
if { (eval echo "$as_me:5818: \"$ac_compile\"") >&5 if { (eval echo "$as_me:5820: \"$ac_compile\"") >&5
(eval $ac_compile) 2>&5 (eval $ac_compile) 2>&5
ac_status=$? ac_status=$?
echo "$as_me:5821: \$? = $ac_status" >&5 echo "$as_me:5823: \$? = $ac_status" >&5
(exit "$ac_status"); } && (exit "$ac_status"); } &&
{ ac_try='test -s "conftest.$ac_objext"' { ac_try='test -s "conftest.$ac_objext"'
{ (eval echo "$as_me:5824: \"$ac_try\"") >&5 { (eval echo "$as_me:5826: \"$ac_try\"") >&5
(eval $ac_try) 2>&5 (eval $ac_try) 2>&5
ac_status=$? ac_status=$?
echo "$as_me:5827: \$? = $ac_status" >&5 echo "$as_me:5829: \$? = $ac_status" >&5
(exit "$ac_status"); }; }; then (exit "$ac_status"); }; }; then
cf_cv_have_utmp=$cf_header cf_cv_have_utmp=$cf_header
break break
else else
echo "$as_me: failed program was:" >&5 echo "$as_me: failed program was:" >&5
cat "conftest.$ac_ext" >&5 cat "conftest.$ac_ext" >&5
cat >"conftest.$ac_ext" <<_ACEOF cat >"conftest.$ac_ext" <<_ACEOF
#line 5836 "configure" #line 5838 "configure"
#include "confdefs.h" #include "confdefs.h"
$cf_utmp_includes $cf_utmp_includes
int int
main (void) main (void)
{ {
struct $cf_header x; struct $cf_header x;
char *name = x.ut_user; /* utmpx.h must declare this */ char *name = x.ut_user; /* utmpx.h must declare this */
(void)x; (void)x;
(void)name; (void)name;
; ;
return 0; return 0;
} }
_ACEOF _ACEOF
rm -f "conftest.$ac_objext" rm -f "conftest.$ac_objext"
if { (eval echo "$as_me:5852: \"$ac_compile\"") >&5 if { (eval echo "$as_me:5854: \"$ac_compile\"") >&5
(eval $ac_compile) 2>&5 (eval $ac_compile) 2>&5
ac_status=$? ac_status=$?
echo "$as_me:5855: \$? = $ac_status" >&5 echo "$as_me:5857: \$? = $ac_status" >&5
(exit "$ac_status"); } && (exit "$ac_status"); } &&
{ ac_try='test -s "conftest.$ac_objext"' { ac_try='test -s "conftest.$ac_objext"'
{ (eval echo "$as_me:5858: \"$ac_try\"") >&5 { (eval echo "$as_me:5860: \"$ac_try\"") >&5
(eval $ac_try) 2>&5 (eval $ac_try) 2>&5
ac_status=$? ac_status=$?
echo "$as_me:5861: \$? = $ac_status" >&5 echo "$as_me:5863: \$? = $ac_status" >&5
(exit "$ac_status"); }; }; then (exit "$ac_status"); }; }; then
cf_cv_have_utmp=$cf_header cf_cv_have_utmp=$cf_header
break break
else else
echo "$as_me: failed program was:" >&5 echo "$as_me: failed program was:" >&5
cat "conftest.$ac_ext" >&5 cat "conftest.$ac_ext" >&5
fi fi
rm -f "conftest.$ac_objext" "conftest.$ac_ext" rm -f "conftest.$ac_objext" "conftest.$ac_ext"
fi fi
rm -f "conftest.$ac_objext" "conftest.$ac_ext" rm -f "conftest.$ac_objext" "conftest.$ac_ext"
done done
fi fi
echo "$as_me:5876: result: $cf_cv_have_utmp" >&5 echo "$as_me:5878: result: $cf_cv_have_utmp" >&5
echo "${ECHO_T}$cf_cv_have_utmp" >&6 echo "${ECHO_T}$cf_cv_have_utmp" >&6
if test "$cf_cv_have_utmp" != no ; then if test "$cf_cv_have_utmp" != no ; then
cat >>confdefs.h <<\EOF cat >>confdefs.h <<\EOF
#define HAVE_UTMP 1 #define HAVE_UTMP 1
EOF EOF
test "$cf_cv_have_utmp" = utmpx && test "$cf_cv_have_utmp" = utmpx &&
cat >>confdefs.h <<\EOF cat >>confdefs.h <<\EOF
#define UTMPX_FOR_UTMP 1 #define UTMPX_FOR_UTMP 1
EOF EOF
if test "$cf_cv_have_utmp" != no ; then if test "$cf_cv_have_utmp" != no ; then
echo "$as_me:5891: checking if ${cf_cv_have_utmp}.ut_host is declared" >&5 echo "$as_me:5893: checking if ${cf_cv_have_utmp}.ut_host is declared" >&5
echo $ECHO_N "checking if ${cf_cv_have_utmp}.ut_host is declared... $ECHO_C" >&6 echo $ECHO_N "checking if ${cf_cv_have_utmp}.ut_host is declared... $ECHO_C" >&6
if test "${cf_cv_have_utmp_ut_host+set}" = set; then if test "${cf_cv_have_utmp_ut_host+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6 echo $ECHO_N "(cached) $ECHO_C" >&6
else else
cat >"conftest.$ac_ext" <<_ACEOF cat >"conftest.$ac_ext" <<_ACEOF
#line 5898 "configure" #line 5900 "configure"
#include "confdefs.h" #include "confdefs.h"
#include <sys/types.h> #include <sys/types.h>
#include <${cf_cv_have_utmp}.h> #include <${cf_cv_have_utmp}.h>
int int
main (void) main (void)
{ {
struct $cf_cv_have_utmp x; struct $cf_cv_have_utmp x;
char *y = &x.ut_host[0]; char *y = &x.ut_host[0];
(void)x; (void)x;
(void)y (void)y
; ;
return 0; return 0;
} }
_ACEOF _ACEOF
rm -f "conftest.$ac_objext" rm -f "conftest.$ac_objext"
if { (eval echo "$as_me:5915: \"$ac_compile\"") >&5 if { (eval echo "$as_me:5917: \"$ac_compile\"") >&5
(eval $ac_compile) 2>&5 (eval $ac_compile) 2>&5
ac_status=$? ac_status=$?
echo "$as_me:5918: \$? = $ac_status" >&5 echo "$as_me:5920: \$? = $ac_status" >&5
(exit "$ac_status"); } && (exit "$ac_status"); } &&
{ ac_try='test -s "conftest.$ac_objext"' { ac_try='test -s "conftest.$ac_objext"'
{ (eval echo "$as_me:5921: \"$ac_try\"") >&5 { (eval echo "$as_me:5923: \"$ac_try\"") >&5
(eval $ac_try) 2>&5 (eval $ac_try) 2>&5
ac_status=$? ac_status=$?
echo "$as_me:5924: \$? = $ac_status" >&5 echo "$as_me:5926: \$? = $ac_status" >&5
(exit "$ac_status"); }; }; then (exit "$ac_status"); }; }; then
cf_cv_have_utmp_ut_host=yes cf_cv_have_utmp_ut_host=yes
else else
echo "$as_me: failed program was:" >&5 echo "$as_me: failed program was:" >&5
cat "conftest.$ac_ext" >&5 cat "conftest.$ac_ext" >&5
cf_cv_have_utmp_ut_host=no cf_cv_have_utmp_ut_host=no
fi fi
rm -f "conftest.$ac_objext" "conftest.$ac_ext" rm -f "conftest.$ac_objext" "conftest.$ac_ext"
fi fi
echo "$as_me:5936: result: $cf_cv_have_utmp_ut_host" >&5 echo "$as_me:5938: result: $cf_cv_have_utmp_ut_host" >&5
echo "${ECHO_T}$cf_cv_have_utmp_ut_host" >&6 echo "${ECHO_T}$cf_cv_have_utmp_ut_host" >&6
test "$cf_cv_have_utmp_ut_host" != no && test "$cf_cv_have_utmp_ut_host" != no &&
cat >>confdefs.h <<\EOF cat >>confdefs.h <<\EOF
#define HAVE_UTMP_UT_HOST 1 #define HAVE_UTMP_UT_HOST 1
EOF EOF
fi fi
if test "$cf_cv_have_utmp" != no ; then if test "$cf_cv_have_utmp" != no ; then
echo "$as_me:5946: checking if ${cf_cv_have_utmp}.ut_syslen is declared" >&5 echo "$as_me:5948: checking if ${cf_cv_have_utmp}.ut_syslen is declared" >&5
echo $ECHO_N "checking if ${cf_cv_have_utmp}.ut_syslen is declared... $ECHO_C" > &6 echo $ECHO_N "checking if ${cf_cv_have_utmp}.ut_syslen is declared... $ECHO_C" > &6
if test "${cf_cv_have_utmp_ut_syslen+set}" = set; then if test "${cf_cv_have_utmp_ut_syslen+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6 echo $ECHO_N "(cached) $ECHO_C" >&6
else else
cat >"conftest.$ac_ext" <<_ACEOF cat >"conftest.$ac_ext" <<_ACEOF
#line 5953 "configure" #line 5955 "configure"
#include "confdefs.h" #include "confdefs.h"
#include <sys/types.h> #include <sys/types.h>
#include <${cf_cv_have_utmp}.h> #include <${cf_cv_have_utmp}.h>
int int
main (void) main (void)
{ {
struct $cf_cv_have_utmp x; struct $cf_cv_have_utmp x;
int y = x.ut_syslen; int y = x.ut_syslen;
(void)x; (void)x;
(void)y (void)y
; ;
return 0; return 0;
} }
_ACEOF _ACEOF
rm -f "conftest.$ac_objext" rm -f "conftest.$ac_objext"
if { (eval echo "$as_me:5970: \"$ac_compile\"") >&5 if { (eval echo "$as_me:5972: \"$ac_compile\"") >&5
(eval $ac_compile) 2>&5 (eval $ac_compile) 2>&5
ac_status=$? ac_status=$?
echo "$as_me:5973: \$? = $ac_status" >&5 echo "$as_me:5975: \$? = $ac_status" >&5
(exit "$ac_status"); } && (exit "$ac_status"); } &&
{ ac_try='test -s "conftest.$ac_objext"' { ac_try='test -s "conftest.$ac_objext"'
{ (eval echo "$as_me:5976: \"$ac_try\"") >&5 { (eval echo "$as_me:5978: \"$ac_try\"") >&5
(eval $ac_try) 2>&5 (eval $ac_try) 2>&5
ac_status=$? ac_status=$?
echo "$as_me:5979: \$? = $ac_status" >&5 echo "$as_me:5981: \$? = $ac_status" >&5
(exit "$ac_status"); }; }; then (exit "$ac_status"); }; }; then
cf_cv_have_utmp_ut_syslen=yes cf_cv_have_utmp_ut_syslen=yes
else else
echo "$as_me: failed program was:" >&5 echo "$as_me: failed program was:" >&5
cat "conftest.$ac_ext" >&5 cat "conftest.$ac_ext" >&5
cf_cv_have_utmp_ut_syslen=no cf_cv_have_utmp_ut_syslen=no
fi fi
rm -f "conftest.$ac_objext" "conftest.$ac_ext" rm -f "conftest.$ac_objext" "conftest.$ac_ext"
fi fi
echo "$as_me:5991: result: $cf_cv_have_utmp_ut_syslen" >&5 echo "$as_me:5993: result: $cf_cv_have_utmp_ut_syslen" >&5
echo "${ECHO_T}$cf_cv_have_utmp_ut_syslen" >&6 echo "${ECHO_T}$cf_cv_have_utmp_ut_syslen" >&6
test "$cf_cv_have_utmp_ut_syslen" != no && test "$cf_cv_have_utmp_ut_syslen" != no &&
cat >>confdefs.h <<\EOF cat >>confdefs.h <<\EOF
#define HAVE_UTMP_UT_SYSLEN 1 #define HAVE_UTMP_UT_SYSLEN 1
EOF EOF
fi fi
if test "$cf_cv_have_utmp" != no ; then if test "$cf_cv_have_utmp" != no ; then
echo "$as_me:6001: checking if ${cf_cv_have_utmp}.ut_name is declared" >&5 echo "$as_me:6003: checking if ${cf_cv_have_utmp}.ut_name is declared" >&5
echo $ECHO_N "checking if ${cf_cv_have_utmp}.ut_name is declared... $ECHO_C" >&6 echo $ECHO_N "checking if ${cf_cv_have_utmp}.ut_name is declared... $ECHO_C" >&6
if test "${cf_cv_have_utmp_ut_name+set}" = set; then if test "${cf_cv_have_utmp_ut_name+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6 echo $ECHO_N "(cached) $ECHO_C" >&6
else else
cf_cv_have_utmp_ut_name=no cf_cv_have_utmp_ut_name=no
cf_utmp_includes=" cf_utmp_includes="
#include <sys/types.h> #include <sys/types.h>
#include <${cf_cv_have_utmp}.h> #include <${cf_cv_have_utmp}.h>
#define getutent getutxent #define getutent getutxent
#ifdef USE_LASTLOG #ifdef USE_LASTLOG
#include <lastlog.h> /* may conflict with utmpx.h on Linux */ #include <lastlog.h> /* may conflict with utmpx.h on Linux */
#endif #endif
" "
for cf_header in ut_name ut_user ; do for cf_header in ut_name ut_user ; do
cat >"conftest.$ac_ext" <<_ACEOF cat >"conftest.$ac_ext" <<_ACEOF
#line 6018 "configure" #line 6020 "configure"
#include "confdefs.h" #include "confdefs.h"
$cf_utmp_includes $cf_utmp_includes
int int
main (void) main (void)
{ {
struct $cf_cv_have_utmp x; struct $cf_cv_have_utmp x;
char *name = x.$cf_header; char *name = x.$cf_header;
(void)x; (void)x;
(void)name; (void)name;
; ;
return 0; return 0;
} }
_ACEOF _ACEOF
rm -f "conftest.$ac_objext" rm -f "conftest.$ac_objext"
if { (eval echo "$as_me:6034: \"$ac_compile\"") >&5 if { (eval echo "$as_me:6036: \"$ac_compile\"") >&5
(eval $ac_compile) 2>&5 (eval $ac_compile) 2>&5
ac_status=$? ac_status=$?
echo "$as_me:6037: \$? = $ac_status" >&5 echo "$as_me:6039: \$? = $ac_status" >&5
(exit "$ac_status"); } && (exit "$ac_status"); } &&
{ ac_try='test -s "conftest.$ac_objext"' { ac_try='test -s "conftest.$ac_objext"'
{ (eval echo "$as_me:6040: \"$ac_try\"") >&5 { (eval echo "$as_me:6042: \"$ac_try\"") >&5
(eval $ac_try) 2>&5 (eval $ac_try) 2>&5
ac_status=$? ac_status=$?
echo "$as_me:6043: \$? = $ac_status" >&5 echo "$as_me:6045: \$? = $ac_status" >&5
(exit "$ac_status"); }; }; then (exit "$ac_status"); }; }; then
cf_cv_have_utmp_ut_name=$cf_header cf_cv_have_utmp_ut_name=$cf_header
break break
else else
echo "$as_me: failed program was:" >&5 echo "$as_me: failed program was:" >&5
cat "conftest.$ac_ext" >&5 cat "conftest.$ac_ext" >&5
fi fi
rm -f "conftest.$ac_objext" "conftest.$ac_ext" rm -f "conftest.$ac_objext" "conftest.$ac_ext"
done done
fi fi
echo "$as_me:6055: result: $cf_cv_have_utmp_ut_name" >&5 echo "$as_me:6057: result: $cf_cv_have_utmp_ut_name" >&5
echo "${ECHO_T}$cf_cv_have_utmp_ut_name" >&6 echo "${ECHO_T}$cf_cv_have_utmp_ut_name" >&6
case "$cf_cv_have_utmp_ut_name" in case "$cf_cv_have_utmp_ut_name" in
(no) (no)
{ { echo "$as_me:6060: error: Cannot find declaration for ut.ut_name" >&5 { { echo "$as_me:6062: error: Cannot find declaration for ut.ut_name" >&5
echo "$as_me: error: Cannot find declaration for ut.ut_name" >&2;} echo "$as_me: error: Cannot find declaration for ut.ut_name" >&2;}
{ (exit 1); exit 1; }; } { (exit 1); exit 1; }; }
;; ;;
(ut_user) (ut_user)
cat >>confdefs.h <<\EOF cat >>confdefs.h <<\EOF
#define ut_name ut_user #define ut_name ut_user
EOF EOF
;; ;;
esac esac
fi fi
if test "$cf_cv_have_utmp" != no ; then if test "$cf_cv_have_utmp" != no ; then
echo "$as_me:6075: checking for exit-status in $cf_cv_have_utmp" >&5 echo "$as_me:6077: checking for exit-status in $cf_cv_have_utmp" >&5
echo $ECHO_N "checking for exit-status in $cf_cv_have_utmp... $ECHO_C" >&6 echo $ECHO_N "checking for exit-status in $cf_cv_have_utmp... $ECHO_C" >&6
if test "${cf_cv_have_utmp_ut_xstatus+set}" = set; then if test "${cf_cv_have_utmp_ut_xstatus+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6 echo $ECHO_N "(cached) $ECHO_C" >&6
else else
for cf_result in \ for cf_result in \
ut_exit.__e_exit \ ut_exit.__e_exit \
ut_exit.e_exit \ ut_exit.e_exit \
ut_exit.ut_e_exit \ ut_exit.ut_e_exit \
ut_exit.ut_exit ut_exit.ut_exit
do do
cat >"conftest.$ac_ext" <<_ACEOF cat >"conftest.$ac_ext" <<_ACEOF
#line 6088 "configure" #line 6090 "configure"
#include "confdefs.h" #include "confdefs.h"
#include <sys/types.h> #include <sys/types.h>
#include <${cf_cv_have_utmp}.h> #include <${cf_cv_have_utmp}.h>
int int
main (void) main (void)
{ {
struct $cf_cv_have_utmp x; struct $cf_cv_have_utmp x;
long y = x.$cf_result = 0; long y = x.$cf_result = 0;
(void)x; (void)x;
(void)y (void)y
; ;
return 0; return 0;
} }
_ACEOF _ACEOF
rm -f "conftest.$ac_objext" rm -f "conftest.$ac_objext"
if { (eval echo "$as_me:6105: \"$ac_compile\"") >&5 if { (eval echo "$as_me:6107: \"$ac_compile\"") >&5
(eval $ac_compile) 2>&5 (eval $ac_compile) 2>&5
ac_status=$? ac_status=$?
echo "$as_me:6108: \$? = $ac_status" >&5 echo "$as_me:6110: \$? = $ac_status" >&5
(exit "$ac_status"); } && (exit "$ac_status"); } &&
{ ac_try='test -s "conftest.$ac_objext"' { ac_try='test -s "conftest.$ac_objext"'
{ (eval echo "$as_me:6111: \"$ac_try\"") >&5 { (eval echo "$as_me:6113: \"$ac_try\"") >&5
(eval $ac_try) 2>&5 (eval $ac_try) 2>&5
ac_status=$? ac_status=$?
echo "$as_me:6114: \$? = $ac_status" >&5 echo "$as_me:6116: \$? = $ac_status" >&5
(exit "$ac_status"); }; }; then (exit "$ac_status"); }; }; then
cf_cv_have_utmp_ut_xstatus=$cf_result cf_cv_have_utmp_ut_xstatus=$cf_result
break break
else else
echo "$as_me: failed program was:" >&5 echo "$as_me: failed program was:" >&5
cat "conftest.$ac_ext" >&5 cat "conftest.$ac_ext" >&5
cf_cv_have_utmp_ut_xstatus=no cf_cv_have_utmp_ut_xstatus=no
fi fi
rm -f "conftest.$ac_objext" "conftest.$ac_ext" rm -f "conftest.$ac_objext" "conftest.$ac_ext"
done done
fi fi
echo "$as_me:6127: result: $cf_cv_have_utmp_ut_xstatus" >&5 echo "$as_me:6129: result: $cf_cv_have_utmp_ut_xstatus" >&5
echo "${ECHO_T}$cf_cv_have_utmp_ut_xstatus" >&6 echo "${ECHO_T}$cf_cv_have_utmp_ut_xstatus" >&6
if test "$cf_cv_have_utmp_ut_xstatus" != no ; then if test "$cf_cv_have_utmp_ut_xstatus" != no ; then
cat >>confdefs.h <<\EOF cat >>confdefs.h <<\EOF
#define HAVE_UTMP_UT_XSTATUS 1 #define HAVE_UTMP_UT_XSTATUS 1
EOF EOF
cat >>confdefs.h <<EOF cat >>confdefs.h <<EOF
#define ut_xstatus $cf_cv_have_utmp_ut_xstatus #define ut_xstatus $cf_cv_have_utmp_ut_xstatus
EOF EOF
fi fi
fi fi
if test "$cf_cv_have_utmp" != no ; then if test "$cf_cv_have_utmp" != no ; then
echo "$as_me:6143: checking if ${cf_cv_have_utmp}.ut_xtime is declared" >&5 echo "$as_me:6145: checking if ${cf_cv_have_utmp}.ut_xtime is declared" >&5
echo $ECHO_N "checking if ${cf_cv_have_utmp}.ut_xtime is declared... $ECHO_C" >& 6 echo $ECHO_N "checking if ${cf_cv_have_utmp}.ut_xtime is declared... $ECHO_C" >& 6
if test "${cf_cv_have_utmp_ut_xtime+set}" = set; then if test "${cf_cv_have_utmp_ut_xtime+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6 echo $ECHO_N "(cached) $ECHO_C" >&6
else else
cat >"conftest.$ac_ext" <<_ACEOF cat >"conftest.$ac_ext" <<_ACEOF
#line 6150 "configure" #line 6152 "configure"
#include "confdefs.h" #include "confdefs.h"
#include <sys/types.h> #include <sys/types.h>
#include <${cf_cv_have_utmp}.h> #include <${cf_cv_have_utmp}.h>
int int
main (void) main (void)
{ {
struct $cf_cv_have_utmp x; struct $cf_cv_have_utmp x;
long y = x.ut_xtime = 0; long y = x.ut_xtime = 0;
(void)x; (void)x;
(void)y (void)y
; ;
return 0; return 0;
} }
_ACEOF _ACEOF
rm -f "conftest.$ac_objext" rm -f "conftest.$ac_objext"
if { (eval echo "$as_me:6167: \"$ac_compile\"") >&5 if { (eval echo "$as_me:6169: \"$ac_compile\"") >&5
(eval $ac_compile) 2>&5 (eval $ac_compile) 2>&5
ac_status=$? ac_status=$?
echo "$as_me:6170: \$? = $ac_status" >&5 echo "$as_me:6172: \$? = $ac_status" >&5
(exit "$ac_status"); } && (exit "$ac_status"); } &&
{ ac_try='test -s "conftest.$ac_objext"' { ac_try='test -s "conftest.$ac_objext"'
{ (eval echo "$as_me:6173: \"$ac_try\"") >&5 { (eval echo "$as_me:6175: \"$ac_try\"") >&5
(eval $ac_try) 2>&5 (eval $ac_try) 2>&5
ac_status=$? ac_status=$?
echo "$as_me:6176: \$? = $ac_status" >&5 echo "$as_me:6178: \$? = $ac_status" >&5
(exit "$ac_status"); }; }; then (exit "$ac_status"); }; }; then
cf_cv_have_utmp_ut_xtime=yes cf_cv_have_utmp_ut_xtime=yes
else else
echo "$as_me: failed program was:" >&5 echo "$as_me: failed program was:" >&5
cat "conftest.$ac_ext" >&5 cat "conftest.$ac_ext" >&5
cat >"conftest.$ac_ext" <<_ACEOF cat >"conftest.$ac_ext" <<_ACEOF
#line 6183 "configure" #line 6185 "configure"
#include "confdefs.h" #include "confdefs.h"
#include <sys/types.h> #include <sys/types.h>
#include <${cf_cv_have_utmp}.h> #include <${cf_cv_have_utmp}.h>
int int
main (void) main (void)
{ {
struct $cf_cv_have_utmp x; struct $cf_cv_have_utmp x;
long y = x.ut_tv.tv_sec; long y = x.ut_tv.tv_sec;
(void)x; (void)x;
(void)y (void)y
; ;
return 0; return 0;
} }
_ACEOF _ACEOF
rm -f "conftest.$ac_objext" rm -f "conftest.$ac_objext"
if { (eval echo "$as_me:6200: \"$ac_compile\"") >&5 if { (eval echo "$as_me:6202: \"$ac_compile\"") >&5
(eval $ac_compile) 2>&5 (eval $ac_compile) 2>&5
ac_status=$? ac_status=$?
echo "$as_me:6203: \$? = $ac_status" >&5 echo "$as_me:6205: \$? = $ac_status" >&5
(exit "$ac_status"); } && (exit "$ac_status"); } &&
{ ac_try='test -s "conftest.$ac_objext"' { ac_try='test -s "conftest.$ac_objext"'
{ (eval echo "$as_me:6206: \"$ac_try\"") >&5 { (eval echo "$as_me:6208: \"$ac_try\"") >&5
(eval $ac_try) 2>&5 (eval $ac_try) 2>&5
ac_status=$? ac_status=$?
echo "$as_me:6209: \$? = $ac_status" >&5 echo "$as_me:6211: \$? = $ac_status" >&5
(exit "$ac_status"); }; }; then (exit "$ac_status"); }; }; then
cf_cv_have_utmp_ut_xtime=define cf_cv_have_utmp_ut_xtime=define
else else
echo "$as_me: failed program was:" >&5 echo "$as_me: failed program was:" >&5
cat "conftest.$ac_ext" >&5 cat "conftest.$ac_ext" >&5
cf_cv_have_utmp_ut_xtime=no cf_cv_have_utmp_ut_xtime=no
fi fi
rm -f "conftest.$ac_objext" "conftest.$ac_ext" rm -f "conftest.$ac_objext" "conftest.$ac_ext"
fi fi
rm -f "conftest.$ac_objext" "conftest.$ac_ext" rm -f "conftest.$ac_objext" "conftest.$ac_ext"
fi fi
echo "$as_me:6223: result: $cf_cv_have_utmp_ut_xtime" >&5 echo "$as_me:6225: result: $cf_cv_have_utmp_ut_xtime" >&5
echo "${ECHO_T}$cf_cv_have_utmp_ut_xtime" >&6 echo "${ECHO_T}$cf_cv_have_utmp_ut_xtime" >&6
if test "$cf_cv_have_utmp_ut_xtime" != no ; then if test "$cf_cv_have_utmp_ut_xtime" != no ; then
cat >>confdefs.h <<\EOF cat >>confdefs.h <<\EOF
#define HAVE_UTMP_UT_XTIME 1 #define HAVE_UTMP_UT_XTIME 1
EOF EOF
if test "$cf_cv_have_utmp_ut_xtime" = define ; then if test "$cf_cv_have_utmp_ut_xtime" = define ; then
cat >>confdefs.h <<\EOF cat >>confdefs.h <<\EOF
#define ut_xtime ut_tv.tv_sec #define ut_xtime ut_tv.tv_sec
EOF EOF
fi fi
fi fi
fi fi
if test "$cf_cv_have_utmp" != no ; then if test "$cf_cv_have_utmp" != no ; then
echo "$as_me:6242: checking if ${cf_cv_have_utmp}.ut_session is declared" >&5 echo "$as_me:6244: checking if ${cf_cv_have_utmp}.ut_session is declared" >&5
echo $ECHO_N "checking if ${cf_cv_have_utmp}.ut_session is declared... $ECHO_C" >&6 echo $ECHO_N "checking if ${cf_cv_have_utmp}.ut_session is declared... $ECHO_C" >&6
if test "${cf_cv_have_utmp_ut_session+set}" = set; then if test "${cf_cv_have_utmp_ut_session+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6 echo $ECHO_N "(cached) $ECHO_C" >&6
else else
cat >"conftest.$ac_ext" <<_ACEOF cat >"conftest.$ac_ext" <<_ACEOF
#line 6249 "configure" #line 6251 "configure"
#include "confdefs.h" #include "confdefs.h"
#include <sys/types.h> #include <sys/types.h>
#include <${cf_cv_have_utmp}.h> #include <${cf_cv_have_utmp}.h>
int int
main (void) main (void)
{ {
struct $cf_cv_have_utmp x; struct $cf_cv_have_utmp x;
long y = x.ut_session; long y = x.ut_session;
(void)x; (void)x;
(void)y (void)y
; ;
return 0; return 0;
} }
_ACEOF _ACEOF
rm -f "conftest.$ac_objext" rm -f "conftest.$ac_objext"
if { (eval echo "$as_me:6266: \"$ac_compile\"") >&5 if { (eval echo "$as_me:6268: \"$ac_compile\"") >&5
(eval $ac_compile) 2>&5 (eval $ac_compile) 2>&5
ac_status=$? ac_status=$?
echo "$as_me:6269: \$? = $ac_status" >&5 echo "$as_me:6271: \$? = $ac_status" >&5
(exit "$ac_status"); } && (exit "$ac_status"); } &&
{ ac_try='test -s "conftest.$ac_objext"' { ac_try='test -s "conftest.$ac_objext"'
{ (eval echo "$as_me:6272: \"$ac_try\"") >&5 { (eval echo "$as_me:6274: \"$ac_try\"") >&5
(eval $ac_try) 2>&5 (eval $ac_try) 2>&5
ac_status=$? ac_status=$?
echo "$as_me:6275: \$? = $ac_status" >&5 echo "$as_me:6277: \$? = $ac_status" >&5
(exit "$ac_status"); }; }; then (exit "$ac_status"); }; }; then
cf_cv_have_utmp_ut_session=yes cf_cv_have_utmp_ut_session=yes
else else
echo "$as_me: failed program was:" >&5 echo "$as_me: failed program was:" >&5
cat "conftest.$ac_ext" >&5 cat "conftest.$ac_ext" >&5
cf_cv_have_utmp_ut_session=no cf_cv_have_utmp_ut_session=no
fi fi
rm -f "conftest.$ac_objext" "conftest.$ac_ext" rm -f "conftest.$ac_objext" "conftest.$ac_ext"
fi fi
echo "$as_me:6286: result: $cf_cv_have_utmp_ut_session" >&5 echo "$as_me:6288: result: $cf_cv_have_utmp_ut_session" >&5
echo "${ECHO_T}$cf_cv_have_utmp_ut_session" >&6 echo "${ECHO_T}$cf_cv_have_utmp_ut_session" >&6
if test "$cf_cv_have_utmp_ut_session" != no ; then if test "$cf_cv_have_utmp_ut_session" != no ; then
cat >>confdefs.h <<\EOF cat >>confdefs.h <<\EOF
#define HAVE_UTMP_UT_SESSION 1 #define HAVE_UTMP_UT_SESSION 1
EOF EOF
fi fi
fi fi
echo "$as_me:6297: checking if $cf_cv_have_utmp is SYSV flavor" >&5 echo "$as_me:6299: checking if $cf_cv_have_utmp is SYSV flavor" >&5
echo $ECHO_N "checking if $cf_cv_have_utmp is SYSV flavor... $ECHO_C" >&6 echo $ECHO_N "checking if $cf_cv_have_utmp is SYSV flavor... $ECHO_C" >&6
if test "${cf_cv_sysv_utmp+set}" = set; then if test "${cf_cv_sysv_utmp+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6 echo $ECHO_N "(cached) $ECHO_C" >&6
else else
test "$cf_cv_have_utmp" = "utmp" && cf_prefix="ut" || cf_prefix="utx" test "$cf_cv_have_utmp" = "utmp" && cf_prefix="ut" || cf_prefix="utx"
cat >"conftest.$ac_ext" <<_ACEOF cat >"conftest.$ac_ext" <<_ACEOF
#line 6305 "configure" #line 6307 "configure"
#include "confdefs.h" #include "confdefs.h"
#include <sys/types.h> #include <sys/types.h>
#include <${cf_cv_have_utmp}.h> #include <${cf_cv_have_utmp}.h>
int int
main (void) main (void)
{ {
struct $cf_cv_have_utmp x; struct $cf_cv_have_utmp x;
set${cf_prefix}ent (); set${cf_prefix}ent ();
get${cf_prefix}id(&x); get${cf_prefix}id(&x);
put${cf_prefix}line(&x); put${cf_prefix}line(&x);
end${cf_prefix}ent(); end${cf_prefix}ent();
; ;
return 0; return 0;
} }
_ACEOF _ACEOF
rm -f "conftest.$ac_objext" "conftest$ac_exeext" rm -f "conftest.$ac_objext" "conftest$ac_exeext"
if { (eval echo "$as_me:6324: \"$ac_link\"") >&5 if { (eval echo "$as_me:6326: \"$ac_link\"") >&5
(eval $ac_link) 2>&5 (eval $ac_link) 2>&5
ac_status=$? ac_status=$?
echo "$as_me:6327: \$? = $ac_status" >&5 echo "$as_me:6329: \$? = $ac_status" >&5
(exit "$ac_status"); } && (exit "$ac_status"); } &&
{ ac_try='test -s "conftest$ac_exeext"' { ac_try='test -s "conftest$ac_exeext"'
{ (eval echo "$as_me:6330: \"$ac_try\"") >&5 { (eval echo "$as_me:6332: \"$ac_try\"") >&5
(eval $ac_try) 2>&5 (eval $ac_try) 2>&5
ac_status=$? ac_status=$?
echo "$as_me:6333: \$? = $ac_status" >&5 echo "$as_me:6335: \$? = $ac_status" >&5
(exit "$ac_status"); }; }; then (exit "$ac_status"); }; }; then
cf_cv_sysv_utmp=yes cf_cv_sysv_utmp=yes
else else
echo "$as_me: failed program was:" >&5 echo "$as_me: failed program was:" >&5
cat "conftest.$ac_ext" >&5 cat "conftest.$ac_ext" >&5
cf_cv_sysv_utmp=no cf_cv_sysv_utmp=no
fi fi
rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext" rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
fi fi
echo "$as_me:6344: result: $cf_cv_sysv_utmp" >&5 echo "$as_me:6346: result: $cf_cv_sysv_utmp" >&5
echo "${ECHO_T}$cf_cv_sysv_utmp" >&6 echo "${ECHO_T}$cf_cv_sysv_utmp" >&6
test "$cf_cv_sysv_utmp" = yes && test "$cf_cv_sysv_utmp" = yes &&
cat >>confdefs.h <<\EOF cat >>confdefs.h <<\EOF
#define USE_SYSV_UTMP 1 #define USE_SYSV_UTMP 1
EOF EOF
fi fi
for ac_header in lastlog.h for ac_header in lastlog.h
do do
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
echo "$as_me:6356: checking for $ac_header" >&5 echo "$as_me:6358: checking for $ac_header" >&5
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
if eval "test \"\${$as_ac_Header+set}\" = set"; then if eval "test \"\${$as_ac_Header+set}\" = set"; then
echo $ECHO_N "(cached) $ECHO_C" >&6 echo $ECHO_N "(cached) $ECHO_C" >&6
else else
cat >"conftest.$ac_ext" <<_ACEOF cat >"conftest.$ac_ext" <<_ACEOF
#line 6362 "configure" #line 6364 "configure"
#include "confdefs.h" #include "confdefs.h"
#include <$ac_header> #include <$ac_header>
_ACEOF _ACEOF
if { (eval echo "$as_me:6366: \"$ac_cpp "conftest.$ac_ext"\"") >&5 if { (eval echo "$as_me:6368: \"$ac_cpp "conftest.$ac_ext"\"") >&5
(eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1 (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1
ac_status=$? ac_status=$?
$EGREP -v '^ *\+' conftest.er1 >conftest.err $EGREP -v '^ *\+' conftest.er1 >conftest.err
rm -f conftest.er1 rm -f conftest.er1
cat conftest.err >&5 cat conftest.err >&5
echo "$as_me:6372: \$? = $ac_status" >&5 echo "$as_me:6374: \$? = $ac_status" >&5
(exit "$ac_status"); } >/dev/null; then (exit "$ac_status"); } >/dev/null; then
if test -s conftest.err; then if test -s conftest.err; then
ac_cpp_err=$ac_c_preproc_warn_flag ac_cpp_err=$ac_c_preproc_warn_flag
else else
ac_cpp_err= ac_cpp_err=
fi fi
else else
ac_cpp_err=yes ac_cpp_err=yes
fi fi
if test -z "$ac_cpp_err"; then if test -z "$ac_cpp_err"; then
eval "$as_ac_Header=yes" eval "$as_ac_Header=yes"
else else
echo "$as_me: failed program was:" >&5 echo "$as_me: failed program was:" >&5
cat "conftest.$ac_ext" >&5 cat "conftest.$ac_ext" >&5
eval "$as_ac_Header=no" eval "$as_ac_Header=no"
fi fi
rm -f conftest.err "conftest.$ac_ext" rm -f conftest.err "conftest.$ac_ext"
fi fi
echo "$as_me:6391: result: `eval echo '${'"$as_ac_Header"'}'`" >&5 echo "$as_me:6393: result: `eval echo '${'"$as_ac_Header"'}'`" >&5
echo "${ECHO_T}`eval echo '${'"$as_ac_Header"'}'`" >&6 echo "${ECHO_T}`eval echo '${'"$as_ac_Header"'}'`" >&6
if test "`eval echo '${'"$as_ac_Header"'}'`" = yes; then if test "`eval echo '${'"$as_ac_Header"'}'`" = yes; then
cat >>confdefs.h <<EOF cat >>confdefs.h <<EOF
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
EOF EOF
fi fi
done done
echo "$as_me:6401: checking for struct lastlog" >&5 echo "$as_me:6403: checking for struct lastlog" >&5
echo $ECHO_N "checking for struct lastlog... $ECHO_C" >&6 echo $ECHO_N "checking for struct lastlog... $ECHO_C" >&6
if test "${cf_cv_struct_lastlog+set}" = set; then if test "${cf_cv_struct_lastlog+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6 echo $ECHO_N "(cached) $ECHO_C" >&6
else else
if test "$cross_compiling" = yes; then if test "$cross_compiling" = yes; then
cf_cv_struct_lastlog=unknown cf_cv_struct_lastlog=unknown
else else
cat >"conftest.$ac_ext" <<_ACEOF cat >"conftest.$ac_ext" <<_ACEOF
#line 6412 "configure" #line 6414 "configure"
#include "confdefs.h" #include "confdefs.h"
#include <sys/types.h> #include <sys/types.h>
#include <time.h> #include <time.h>
#include <lastlog.h> #include <lastlog.h>
int main(void) int main(void)
{ {
struct lastlog data; struct lastlog data;
return (sizeof(data.ll_time) != sizeof(time_t)); return (sizeof(data.ll_time) != sizeof(time_t));
} }
_ACEOF _ACEOF
rm -f "conftest$ac_exeext" rm -f "conftest$ac_exeext"
if { (eval echo "$as_me:6426: \"$ac_link\"") >&5 if { (eval echo "$as_me:6428: \"$ac_link\"") >&5
(eval $ac_link) 2>&5 (eval $ac_link) 2>&5
ac_status=$? ac_status=$?
echo "$as_me:6429: \$? = $ac_status" >&5 echo "$as_me:6431: \$? = $ac_status" >&5
(exit "$ac_status"); } && { ac_try='"./conftest$ac_exeext"' (exit "$ac_status"); } && { ac_try='"./conftest$ac_exeext"'
{ (eval echo "$as_me:6431: \"$ac_try\"") >&5 { (eval echo "$as_me:6433: \"$ac_try\"") >&5
(eval $ac_try) 2>&5 (eval $ac_try) 2>&5
ac_status=$? ac_status=$?
echo "$as_me:6434: \$? = $ac_status" >&5 echo "$as_me:6436: \$? = $ac_status" >&5
(exit "$ac_status"); }; }; then (exit "$ac_status"); }; }; then
cf_cv_struct_lastlog=yes cf_cv_struct_lastlog=yes
else else
echo "$as_me: program exited with status $ac_status" >&5 echo "$as_me: program exited with status $ac_status" >&5
echo "$as_me: failed program was:" >&5 echo "$as_me: failed program was:" >&5
cat "conftest.$ac_ext" >&5 cat "conftest.$ac_ext" >&5
cf_cv_struct_lastlog=no cf_cv_struct_lastlog=no
fi fi
rm -f core ./core.* ./*.core "conftest$ac_exeext" "conftest.$ac_objext" "conftes t.$ac_ext" rm -f core ./core.* ./*.core "conftest$ac_exeext" "conftest.$ac_objext" "conftes t.$ac_ext"
fi fi
fi fi
echo "$as_me:6448: result: $cf_cv_struct_lastlog" >&5 echo "$as_me:6450: result: $cf_cv_struct_lastlog" >&5
echo "${ECHO_T}$cf_cv_struct_lastlog" >&6 echo "${ECHO_T}$cf_cv_struct_lastlog" >&6
test $cf_cv_struct_lastlog != no && test $cf_cv_struct_lastlog != no &&
cat >>confdefs.h <<\EOF cat >>confdefs.h <<\EOF
#define USE_STRUCT_LASTLOG 1 #define USE_STRUCT_LASTLOG 1
EOF EOF
for ac_header in \ for ac_header in \
sys/param.h \ sys/param.h \
do do
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
echo "$as_me:6461: checking for $ac_header" >&5 echo "$as_me:6463: checking for $ac_header" >&5
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
if eval "test \"\${$as_ac_Header+set}\" = set"; then if eval "test \"\${$as_ac_Header+set}\" = set"; then
echo $ECHO_N "(cached) $ECHO_C" >&6 echo $ECHO_N "(cached) $ECHO_C" >&6
else else
cat >"conftest.$ac_ext" <<_ACEOF cat >"conftest.$ac_ext" <<_ACEOF
#line 6467 "configure" #line 6469 "configure"
#include "confdefs.h" #include "confdefs.h"
#include <$ac_header> #include <$ac_header>
_ACEOF _ACEOF
if { (eval echo "$as_me:6471: \"$ac_cpp "conftest.$ac_ext"\"") >&5 if { (eval echo "$as_me:6473: \"$ac_cpp "conftest.$ac_ext"\"") >&5
(eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1 (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1
ac_status=$? ac_status=$?
$EGREP -v '^ *\+' conftest.er1 >conftest.err $EGREP -v '^ *\+' conftest.er1 >conftest.err
rm -f conftest.er1 rm -f conftest.er1
cat conftest.err >&5 cat conftest.err >&5
echo "$as_me:6477: \$? = $ac_status" >&5 echo "$as_me:6479: \$? = $ac_status" >&5
(exit "$ac_status"); } >/dev/null; then (exit "$ac_status"); } >/dev/null; then
if test -s conftest.err; then if test -s conftest.err; then
ac_cpp_err=$ac_c_preproc_warn_flag ac_cpp_err=$ac_c_preproc_warn_flag
else else
ac_cpp_err= ac_cpp_err=
fi fi
else else
ac_cpp_err=yes ac_cpp_err=yes
fi fi
if test -z "$ac_cpp_err"; then if test -z "$ac_cpp_err"; then
eval "$as_ac_Header=yes" eval "$as_ac_Header=yes"
else else
echo "$as_me: failed program was:" >&5 echo "$as_me: failed program was:" >&5
cat "conftest.$ac_ext" >&5 cat "conftest.$ac_ext" >&5
eval "$as_ac_Header=no" eval "$as_ac_Header=no"
fi fi
rm -f conftest.err "conftest.$ac_ext" rm -f conftest.err "conftest.$ac_ext"
fi fi
echo "$as_me:6496: result: `eval echo '${'"$as_ac_Header"'}'`" >&5 echo "$as_me:6498: result: `eval echo '${'"$as_ac_Header"'}'`" >&5
echo "${ECHO_T}`eval echo '${'"$as_ac_Header"'}'`" >&6 echo "${ECHO_T}`eval echo '${'"$as_ac_Header"'}'`" >&6
if test "`eval echo '${'"$as_ac_Header"'}'`" = yes; then if test "`eval echo '${'"$as_ac_Header"'}'`" = yes; then
cat >>confdefs.h <<EOF cat >>confdefs.h <<EOF
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
EOF EOF
fi fi
done done
echo "$as_me:6506: checking if POSIX saved-ids are supported" >&5 echo "$as_me:6508: checking if POSIX saved-ids are supported" >&5
echo $ECHO_N "checking if POSIX saved-ids are supported... $ECHO_C" >&6 echo $ECHO_N "checking if POSIX saved-ids are supported... $ECHO_C" >&6
if test "${cf_cv_posix_saved_ids+set}" = set; then if test "${cf_cv_posix_saved_ids+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6 echo $ECHO_N "(cached) $ECHO_C" >&6
else else
cat >"conftest.$ac_ext" <<_ACEOF cat >"conftest.$ac_ext" <<_ACEOF
#line 6513 "configure" #line 6515 "configure"
#include "confdefs.h" #include "confdefs.h"
#include <unistd.h> #include <unistd.h>
#ifdef HAVE_SYS_PARAM_H #ifdef HAVE_SYS_PARAM_H
#include <sys/param.h> /* this may define "BSD" */ #include <sys/param.h> /* this may define "BSD" */
#endif #endif
int int
main (void) main (void)
{ {
skipping to change at line 6543 skipping to change at line 6545
*/ */
#else #else
make an error make an error
#endif #endif
; ;
return 0; return 0;
} }
_ACEOF _ACEOF
rm -f "conftest.$ac_objext" "conftest$ac_exeext" rm -f "conftest.$ac_objext" "conftest$ac_exeext"
if { (eval echo "$as_me:6543: \"$ac_link\"") >&5 if { (eval echo "$as_me:6545: \"$ac_link\"") >&5
(eval $ac_link) 2>&5 (eval $ac_link) 2>&5
ac_status=$? ac_status=$?
echo "$as_me:6546: \$? = $ac_status" >&5 echo "$as_me:6548: \$? = $ac_status" >&5
(exit "$ac_status"); } && (exit "$ac_status"); } &&
{ ac_try='test -s "conftest$ac_exeext"' { ac_try='test -s "conftest$ac_exeext"'
{ (eval echo "$as_me:6549: \"$ac_try\"") >&5 { (eval echo "$as_me:6551: \"$ac_try\"") >&5
(eval $ac_try) 2>&5 (eval $ac_try) 2>&5
ac_status=$? ac_status=$?
echo "$as_me:6552: \$? = $ac_status" >&5 echo "$as_me:6554: \$? = $ac_status" >&5
(exit "$ac_status"); }; }; then (exit "$ac_status"); }; }; then
cf_cv_posix_saved_ids=yes cf_cv_posix_saved_ids=yes
else else
echo "$as_me: failed program was:" >&5 echo "$as_me: failed program was:" >&5
cat "conftest.$ac_ext" >&5 cat "conftest.$ac_ext" >&5
if test "$cross_compiling" = yes; then if test "$cross_compiling" = yes; then
cf_cv_posix_saved_ids=unknown cf_cv_posix_saved_ids=unknown
else else
cat >"conftest.$ac_ext" <<_ACEOF cat >"conftest.$ac_ext" <<_ACEOF
#line 6564 "configure" #line 6566 "configure"
#include "confdefs.h" #include "confdefs.h"
#ifdef HAVE_STDLIB_H #ifdef HAVE_STDLIB_H
#include <stdlib.h> #include <stdlib.h>
#endif #endif
#include <unistd.h> #include <unistd.h>
int main(void) int main(void)
{ {
void *p = (void *) seteuid; void *p = (void *) seteuid;
long code = sysconf(_SC_SAVED_IDS); long code = sysconf(_SC_SAVED_IDS);
(void)p; (void)p;
${cf_cv_main_return:-return} ((code > 0) ? 0 : 1); ${cf_cv_main_return:-return} ((code > 0) ? 0 : 1);
} }
_ACEOF _ACEOF
rm -f "conftest$ac_exeext" rm -f "conftest$ac_exeext"
if { (eval echo "$as_me:6580: \"$ac_link\"") >&5 if { (eval echo "$as_me:6582: \"$ac_link\"") >&5
(eval $ac_link) 2>&5 (eval $ac_link) 2>&5
ac_status=$? ac_status=$?
echo "$as_me:6583: \$? = $ac_status" >&5 echo "$as_me:6585: \$? = $ac_status" >&5
(exit "$ac_status"); } && { ac_try='"./conftest$ac_exeext"' (exit "$ac_status"); } && { ac_try='"./conftest$ac_exeext"'
{ (eval echo "$as_me:6585: \"$ac_try\"") >&5 { (eval echo "$as_me:6587: \"$ac_try\"") >&5
(eval $ac_try) 2>&5 (eval $ac_try) 2>&5
ac_status=$? ac_status=$?
echo "$as_me:6588: \$? = $ac_status" >&5 echo "$as_me:6590: \$? = $ac_status" >&5
(exit "$ac_status"); }; }; then (exit "$ac_status"); }; }; then
cf_cv_posix_saved_ids=yes cf_cv_posix_saved_ids=yes
else else
echo "$as_me: program exited with status $ac_status" >&5 echo "$as_me: program exited with status $ac_status" >&5
echo "$as_me: failed program was:" >&5 echo "$as_me: failed program was:" >&5
cat "conftest.$ac_ext" >&5 cat "conftest.$ac_ext" >&5
cf_cv_posix_saved_ids=no cf_cv_posix_saved_ids=no
fi fi
rm -f core ./core.* ./*.core "conftest$ac_exeext" "conftest.$ac_objext" "conftes t.$ac_ext" rm -f core ./core.* ./*.core "conftest$ac_exeext" "conftest.$ac_objext" "conftes t.$ac_ext"
fi fi
fi fi
rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext" rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
fi fi
echo "$as_me:6604: result: $cf_cv_posix_saved_ids" >&5 echo "$as_me:6606: result: $cf_cv_posix_saved_ids" >&5
echo "${ECHO_T}$cf_cv_posix_saved_ids" >&6 echo "${ECHO_T}$cf_cv_posix_saved_ids" >&6
test "$cf_cv_posix_saved_ids" = yes && test "$cf_cv_posix_saved_ids" = yes &&
cat >>confdefs.h <<\EOF cat >>confdefs.h <<\EOF
#define HAVE_POSIX_SAVED_IDS 1 #define HAVE_POSIX_SAVED_IDS 1
EOF EOF
# compute a reasonable value for $TERM to give tgetent(), since we may be # compute a reasonable value for $TERM to give tgetent(), since we may be
# running in 'screen', which sets $TERMCAP to a specific entry that is not # running in 'screen', which sets $TERMCAP to a specific entry that is not
# necessarily in /etc/termcap - unsetenv is not portable, so we cannot simply # necessarily in /etc/termcap - unsetenv is not portable, so we cannot simply
skipping to change at line 6643 skipping to change at line 6645
# ncurses provides termcap prototypes in both term.h and termcap.h # ncurses provides termcap prototypes in both term.h and termcap.h
# #
# The terminfo-based termcap interfaces do not provide a full tgetent (i.e., do # The terminfo-based termcap interfaces do not provide a full tgetent (i.e., do
# not return the text of the termcap entry in the buffer), but as a special # not return the text of the termcap entry in the buffer), but as a special
# case, FreeBSD provides ncurses' termcap.h with a modified termcap reader that # case, FreeBSD provides ncurses' termcap.h with a modified termcap reader that
# returns the termcap text. # returns the termcap text.
for ac_header in termcap.h for ac_header in termcap.h
do do
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
echo "$as_me:6643: checking for $ac_header" >&5 echo "$as_me:6645: checking for $ac_header" >&5
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
if eval "test \"\${$as_ac_Header+set}\" = set"; then if eval "test \"\${$as_ac_Header+set}\" = set"; then
echo $ECHO_N "(cached) $ECHO_C" >&6 echo $ECHO_N "(cached) $ECHO_C" >&6
else else
cat >"conftest.$ac_ext" <<_ACEOF cat >"conftest.$ac_ext" <<_ACEOF
#line 6649 "configure" #line 6651 "configure"
#include "confdefs.h" #include "confdefs.h"
#include <$ac_header> #include <$ac_header>
_ACEOF _ACEOF
if { (eval echo "$as_me:6653: \"$ac_cpp "conftest.$ac_ext"\"") >&5 if { (eval echo "$as_me:6655: \"$ac_cpp "conftest.$ac_ext"\"") >&5
(eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1 (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1
ac_status=$? ac_status=$?
$EGREP -v '^ *\+' conftest.er1 >conftest.err $EGREP -v '^ *\+' conftest.er1 >conftest.err
rm -f conftest.er1 rm -f conftest.er1
cat conftest.err >&5 cat conftest.err >&5
echo "$as_me:6659: \$? = $ac_status" >&5 echo "$as_me:6661: \$? = $ac_status" >&5
(exit "$ac_status"); } >/dev/null; then (exit "$ac_status"); } >/dev/null; then
if test -s conftest.err; then if test -s conftest.err; then
ac_cpp_err=$ac_c_preproc_warn_flag ac_cpp_err=$ac_c_preproc_warn_flag
else else
ac_cpp_err= ac_cpp_err=
fi fi
else else
ac_cpp_err=yes ac_cpp_err=yes
fi fi
if test -z "$ac_cpp_err"; then if test -z "$ac_cpp_err"; then
eval "$as_ac_Header=yes" eval "$as_ac_Header=yes"
else else
echo "$as_me: failed program was:" >&5 echo "$as_me: failed program was:" >&5
cat "conftest.$ac_ext" >&5 cat "conftest.$ac_ext" >&5
eval "$as_ac_Header=no" eval "$as_ac_Header=no"
fi fi
rm -f conftest.err "conftest.$ac_ext" rm -f conftest.err "conftest.$ac_ext"
fi fi
echo "$as_me:6678: result: `eval echo '${'"$as_ac_Header"'}'`" >&5 echo "$as_me:6680: result: `eval echo '${'"$as_ac_Header"'}'`" >&5
echo "${ECHO_T}`eval echo '${'"$as_ac_Header"'}'`" >&6 echo "${ECHO_T}`eval echo '${'"$as_ac_Header"'}'`" >&6
if test "`eval echo '${'"$as_ac_Header"'}'`" = yes; then if test "`eval echo '${'"$as_ac_Header"'}'`" = yes; then
cat >>confdefs.h <<EOF cat >>confdefs.h <<EOF
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
EOF EOF
fi fi
done done
echo "$as_me:6688: checking if we want full tgetent function" >&5 echo "$as_me:6690: checking if we want full tgetent function" >&5
echo $ECHO_N "checking if we want full tgetent function... $ECHO_C" >&6 echo $ECHO_N "checking if we want full tgetent function... $ECHO_C" >&6
# Check whether --enable-full-tgetent or --disable-full-tgetent was given. # Check whether --enable-full-tgetent or --disable-full-tgetent was given.
if test "${enable_full_tgetent+set}" = set; then if test "${enable_full_tgetent+set}" = set; then
enableval="$enable_full_tgetent" enableval="$enable_full_tgetent"
test "$enableval" != no && enableval=yes test "$enableval" != no && enableval=yes
if test "$enableval" != "yes" ; then if test "$enableval" != "yes" ; then
cf_full_tgetent=no cf_full_tgetent=no
else else
cf_full_tgetent=yes cf_full_tgetent=yes
fi fi
else else
enableval=yes enableval=yes
cf_full_tgetent=yes cf_full_tgetent=yes
fi; fi;
echo "$as_me:6705: result: $cf_full_tgetent" >&5 echo "$as_me:6707: result: $cf_full_tgetent" >&5
echo "${ECHO_T}$cf_full_tgetent" >&6 echo "${ECHO_T}$cf_full_tgetent" >&6
if test "$cf_full_tgetent" = yes ; then if test "$cf_full_tgetent" = yes ; then
cf_test_message="full tgetent" cf_test_message="full tgetent"
else else
cf_test_message="tgetent" cf_test_message="tgetent"
fi fi
echo "$as_me:6714: checking for $cf_test_message function" >&5 echo "$as_me:6716: checking for $cf_test_message function" >&5
echo $ECHO_N "checking for $cf_test_message function... $ECHO_C" >&6 echo $ECHO_N "checking for $cf_test_message function... $ECHO_C" >&6
if test "${cf_cv_lib_tgetent+set}" = set; then if test "${cf_cv_lib_tgetent+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6 echo $ECHO_N "(cached) $ECHO_C" >&6
else else
cf_save_LIBS="$LIBS" cf_save_LIBS="$LIBS"
cf_cv_lib_tgetent=no cf_cv_lib_tgetent=no
if test "$cf_full_tgetent" = yes ; then if test "$cf_full_tgetent" = yes ; then
cf_TERMLIB="otermcap termcap termlib ncurses curses" cf_TERMLIB="otermcap termcap termlib ncurses curses"
cf_TERMTST="buffer[0] == 0" cf_TERMTST="buffer[0] == 0"
skipping to change at line 6752 skipping to change at line 6754
fi fi
done done
test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs" test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
done done
LIBS="$cf_add_libs" LIBS="$cf_add_libs"
} }
if test "$cross_compiling" = yes; then if test "$cross_compiling" = yes; then
echo "cross-compiling, cannot verify if a termcap/tgetent is present in $cf_te rmlib" 1>&5 echo "cross-compiling, cannot verify if a termcap/tgetent is present in $cf_te rmlib" 1>&5
else else
cat >"conftest.$ac_ext" <<_ACEOF cat >"conftest.$ac_ext" <<_ACEOF
#line 6752 "configure" #line 6754 "configure"
#include "confdefs.h" #include "confdefs.h"
#ifdef HAVE_TERMCAP_H #ifdef HAVE_TERMCAP_H
#include <termcap.h> #include <termcap.h>
#endif #endif
/* terminfo implementations ignore the buffer argument, making it useless for /* terminfo implementations ignore the buffer argument, making it useless for
* the xterm application, which uses this information to make a new TERMCAP * the xterm application, which uses this information to make a new TERMCAP
* environment variable. * environment variable.
*/ */
int main(void) int main(void)
{ {
char buffer[1024]; char buffer[1024];
buffer[0] = 0; buffer[0] = 0;
tgetent(buffer, "$cf_TERMVAR"); tgetent(buffer, "$cf_TERMVAR");
${cf_cv_main_return:-return} ($cf_TERMTST); } ${cf_cv_main_return:-return} ($cf_TERMTST); }
_ACEOF _ACEOF
rm -f "conftest$ac_exeext" rm -f "conftest$ac_exeext"
if { (eval echo "$as_me:6770: \"$ac_link\"") >&5 if { (eval echo "$as_me:6772: \"$ac_link\"") >&5
(eval $ac_link) 2>&5 (eval $ac_link) 2>&5
ac_status=$? ac_status=$?
echo "$as_me:6773: \$? = $ac_status" >&5 echo "$as_me:6775: \$? = $ac_status" >&5
(exit "$ac_status"); } && { ac_try='"./conftest$ac_exeext"' (exit "$ac_status"); } && { ac_try='"./conftest$ac_exeext"'
{ (eval echo "$as_me:6775: \"$ac_try\"") >&5 { (eval echo "$as_me:6777: \"$ac_try\"") >&5
(eval $ac_try) 2>&5 (eval $ac_try) 2>&5
ac_status=$? ac_status=$?
echo "$as_me:6778: \$? = $ac_status" >&5 echo "$as_me:6780: \$? = $ac_status" >&5
(exit "$ac_status"); }; }; then (exit "$ac_status"); }; }; then
echo "yes, there is a termcap/tgetent in $cf_termlib" 1>&5 echo "yes, there is a termcap/tgetent in $cf_termlib" 1>&5
if test -n "$cf_termlib" ; then if test -n "$cf_termlib" ; then
cf_cv_lib_tgetent="-l$cf_termlib" cf_cv_lib_tgetent="-l$cf_termlib"
else else
cf_cv_lib_tgetent=yes cf_cv_lib_tgetent=yes
fi fi
break break
else else
echo "$as_me: program exited with status $ac_status" >&5 echo "$as_me: program exited with status $ac_status" >&5
echo "$as_me: failed program was:" >&5 echo "$as_me: failed program was:" >&5
cat "conftest.$ac_ext" >&5 cat "conftest.$ac_ext" >&5
echo "no, there is no termcap/tgetent in $cf_termlib" 1>&5 echo "no, there is no termcap/tgetent in $cf_termlib" 1>&5
fi fi
rm -f core ./core.* ./*.core "conftest$ac_exeext" "conftest.$ac_objext" "conftes t.$ac_ext" rm -f core ./core.* ./*.core "conftest$ac_exeext" "conftest.$ac_objext" "conftes t.$ac_ext"
fi fi
done done
LIBS="$cf_save_LIBS" LIBS="$cf_save_LIBS"
fi fi
echo "$as_me:6799: result: $cf_cv_lib_tgetent" >&5 echo "$as_me:6801: result: $cf_cv_lib_tgetent" >&5
echo "${ECHO_T}$cf_cv_lib_tgetent" >&6 echo "${ECHO_T}$cf_cv_lib_tgetent" >&6
# If we found a working tgetent(), set LIBS and check for termcap.h. # If we found a working tgetent(), set LIBS and check for termcap.h.
# (LIBS cannot be set inside AC_CACHE_CHECK; the commands there should # (LIBS cannot be set inside AC_CACHE_CHECK; the commands there should
# not have side effects other than setting the cache variable, because # not have side effects other than setting the cache variable, because
# they are not executed when a cached value exists.) # they are not executed when a cached value exists.)
if test "x$cf_cv_lib_tgetent" != xno ; then if test "x$cf_cv_lib_tgetent" != xno ; then
test "x$cf_cv_lib_tgetent" != xyes && { test "x$cf_cv_lib_tgetent" != xyes && {
cf_add_libs="$LIBS" cf_add_libs="$LIBS"
# reverse order # reverse order
skipping to change at line 6831 skipping to change at line 6833
done done
LIBS="$cf_add_libs" LIBS="$cf_add_libs"
} }
cat >>confdefs.h <<\EOF cat >>confdefs.h <<\EOF
#define USE_TERMCAP 1 #define USE_TERMCAP 1
EOF EOF
if test "$cf_full_tgetent" = no ; then if test "$cf_full_tgetent" = no ; then
cat >"conftest.$ac_ext" <<_ACEOF cat >"conftest.$ac_ext" <<_ACEOF
#line 6831 "configure" #line 6833 "configure"
#include "confdefs.h" #include "confdefs.h"
#include <termcap.h> #include <termcap.h>
int int
main (void) main (void)
{ {
#ifdef NCURSES_VERSION #ifdef NCURSES_VERSION
make an error make an error
#endif #endif
; ;
return 0; return 0;
} }
_ACEOF _ACEOF
rm -f "conftest.$ac_objext" rm -f "conftest.$ac_objext"
if { (eval echo "$as_me:6847: \"$ac_compile\"") >&5 if { (eval echo "$as_me:6849: \"$ac_compile\"") >&5
(eval $ac_compile) 2>&5 (eval $ac_compile) 2>&5
ac_status=$? ac_status=$?
echo "$as_me:6850: \$? = $ac_status" >&5 echo "$as_me:6852: \$? = $ac_status" >&5
(exit "$ac_status"); } && (exit "$ac_status"); } &&
{ ac_try='test -s "conftest.$ac_objext"' { ac_try='test -s "conftest.$ac_objext"'
{ (eval echo "$as_me:6853: \"$ac_try\"") >&5 { (eval echo "$as_me:6855: \"$ac_try\"") >&5
(eval $ac_try) 2>&5 (eval $ac_try) 2>&5
ac_status=$? ac_status=$?
echo "$as_me:6856: \$? = $ac_status" >&5 echo "$as_me:6858: \$? = $ac_status" >&5
(exit "$ac_status"); }; }; then (exit "$ac_status"); }; }; then
cat >>confdefs.h <<\EOF cat >>confdefs.h <<\EOF
#define HAVE_TERMCAP_H 1 #define HAVE_TERMCAP_H 1
EOF EOF
else else
echo "$as_me: failed program was:" >&5 echo "$as_me: failed program was:" >&5
cat "conftest.$ac_ext" >&5 cat "conftest.$ac_ext" >&5
fi fi
rm -f "conftest.$ac_objext" "conftest.$ac_ext" rm -f "conftest.$ac_objext" "conftest.$ac_ext"
else else
for ac_header in termcap.h for ac_header in termcap.h
do do
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
echo "$as_me:6872: checking for $ac_header" >&5 echo "$as_me:6874: checking for $ac_header" >&5
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
if eval "test \"\${$as_ac_Header+set}\" = set"; then if eval "test \"\${$as_ac_Header+set}\" = set"; then
echo $ECHO_N "(cached) $ECHO_C" >&6 echo $ECHO_N "(cached) $ECHO_C" >&6
else else
cat >"conftest.$ac_ext" <<_ACEOF cat >"conftest.$ac_ext" <<_ACEOF
#line 6878 "configure" #line 6880 "configure"
#include "confdefs.h" #include "confdefs.h"
#include <$ac_header> #include <$ac_header>
_ACEOF _ACEOF
if { (eval echo "$as_me:6882: \"$ac_cpp "conftest.$ac_ext"\"") >&5 if { (eval echo "$as_me:6884: \"$ac_cpp "conftest.$ac_ext"\"") >&5
(eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1 (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1
ac_status=$? ac_status=$?
$EGREP -v '^ *\+' conftest.er1 >conftest.err $EGREP -v '^ *\+' conftest.er1 >conftest.err
rm -f conftest.er1 rm -f conftest.er1
cat conftest.err >&5 cat conftest.err >&5
echo "$as_me:6888: \$? = $ac_status" >&5 echo "$as_me:6890: \$? = $ac_status" >&5
(exit "$ac_status"); } >/dev/null; then (exit "$ac_status"); } >/dev/null; then
if test -s conftest.err; then if test -s conftest.err; then
ac_cpp_err=$ac_c_preproc_warn_flag ac_cpp_err=$ac_c_preproc_warn_flag
else else
ac_cpp_err= ac_cpp_err=
fi fi
else else
ac_cpp_err=yes ac_cpp_err=yes
fi fi
if test -z "$ac_cpp_err"; then if test -z "$ac_cpp_err"; then
eval "$as_ac_Header=yes" eval "$as_ac_Header=yes"
else else
echo "$as_me: failed program was:" >&5 echo "$as_me: failed program was:" >&5
cat "conftest.$ac_ext" >&5 cat "conftest.$ac_ext" >&5
eval "$as_ac_Header=no" eval "$as_ac_Header=no"
fi fi
rm -f conftest.err "conftest.$ac_ext" rm -f conftest.err "conftest.$ac_ext"
fi fi
echo "$as_me:6907: result: `eval echo '${'"$as_ac_Header"'}'`" >&5 echo "$as_me:6909: result: `eval echo '${'"$as_ac_Header"'}'`" >&5
echo "${ECHO_T}`eval echo '${'"$as_ac_Header"'}'`" >&6 echo "${ECHO_T}`eval echo '${'"$as_ac_Header"'}'`" >&6
if test "`eval echo '${'"$as_ac_Header"'}'`" = yes; then if test "`eval echo '${'"$as_ac_Header"'}'`" = yes; then
cat >>confdefs.h <<EOF cat >>confdefs.h <<EOF
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
EOF EOF
fi fi
done done
fi fi
else else
# If we didn't find a tgetent() that supports the buffer # If we didn't find a tgetent() that supports the buffer
# argument, look again to see whether we can find even # argument, look again to see whether we can find even
# a crippled one. A crippled tgetent() is still useful to # a crippled one. A crippled tgetent() is still useful to
# validate values for the TERM environment variable given to # validate values for the TERM environment variable given to
# child processes. # child processes.
echo "$as_me:6924: checking for partial tgetent function" >&5 echo "$as_me:6926: checking for partial tgetent function" >&5
echo $ECHO_N "checking for partial tgetent function... $ECHO_C" >&6 echo $ECHO_N "checking for partial tgetent function... $ECHO_C" >&6
if test "${cf_cv_lib_part_tgetent+set}" = set; then if test "${cf_cv_lib_part_tgetent+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6 echo $ECHO_N "(cached) $ECHO_C" >&6
else else
cf_cv_lib_part_tgetent=no cf_cv_lib_part_tgetent=no
for cf_termlib in $cf_TERMLIB ; do for cf_termlib in $cf_TERMLIB ; do
LIBS="$cf_save_LIBS -l$cf_termlib" LIBS="$cf_save_LIBS -l$cf_termlib"
cat >"conftest.$ac_ext" <<_ACEOF cat >"conftest.$ac_ext" <<_ACEOF
#line 6934 "configure" #line 6936 "configure"
#include "confdefs.h" #include "confdefs.h"
int int
main (void) main (void)
{ {
tgetent(0, "$cf_TERMVAR") tgetent(0, "$cf_TERMVAR")
; ;
return 0; return 0;
} }
_ACEOF _ACEOF
rm -f "conftest.$ac_objext" "conftest$ac_exeext" rm -f "conftest.$ac_objext" "conftest$ac_exeext"
if { (eval echo "$as_me:6946: \"$ac_link\"") >&5 if { (eval echo "$as_me:6948: \"$ac_link\"") >&5
(eval $ac_link) 2>&5 (eval $ac_link) 2>&5
ac_status=$? ac_status=$?
echo "$as_me:6949: \$? = $ac_status" >&5 echo "$as_me:6951: \$? = $ac_status" >&5
(exit "$ac_status"); } && (exit "$ac_status"); } &&
{ ac_try='test -s "conftest$ac_exeext"' { ac_try='test -s "conftest$ac_exeext"'
{ (eval echo "$as_me:6952: \"$ac_try\"") >&5 { (eval echo "$as_me:6954: \"$ac_try\"") >&5
(eval $ac_try) 2>&5 (eval $ac_try) 2>&5
ac_status=$? ac_status=$?
echo "$as_me:6955: \$? = $ac_status" >&5 echo "$as_me:6957: \$? = $ac_status" >&5
(exit "$ac_status"); }; }; then (exit "$ac_status"); }; }; then
echo "there is a terminfo/tgetent in $cf_termlib" 1>&5 echo "there is a terminfo/tgetent in $cf_termlib" 1>&5
cf_cv_lib_part_tgetent="-l$cf_termlib" cf_cv_lib_part_tgetent="-l$cf_termlib"
break break
else else
echo "$as_me: failed program was:" >&5 echo "$as_me: failed program was:" >&5
cat "conftest.$ac_ext" >&5 cat "conftest.$ac_ext" >&5
fi fi
rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext" rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
done done
LIBS="$cf_save_LIBS" LIBS="$cf_save_LIBS"
fi fi
echo "$as_me:6969: result: $cf_cv_lib_part_tgetent" >&5 echo "$as_me:6971: result: $cf_cv_lib_part_tgetent" >&5
echo "${ECHO_T}$cf_cv_lib_part_tgetent" >&6 echo "${ECHO_T}$cf_cv_lib_part_tgetent" >&6
if test "$cf_cv_lib_part_tgetent" != no ; then if test "$cf_cv_lib_part_tgetent" != no ; then
cf_add_libs="$LIBS" cf_add_libs="$LIBS"
# reverse order # reverse order
cf_add_0lib= cf_add_0lib=
for cf_add_1lib in $cf_cv_lib_part_tgetent; do cf_add_0lib="$cf_add_1lib $cf_add _0lib"; done for cf_add_1lib in $cf_cv_lib_part_tgetent; do cf_add_0lib="$cf_add_1lib $cf_add _0lib"; done
# filter duplicates # filter duplicates
for cf_add_1lib in $cf_add_0lib; do for cf_add_1lib in $cf_add_0lib; do
skipping to change at line 6993 skipping to change at line 6995
break break
fi fi
done done
test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs" test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
done done
LIBS="$cf_add_libs" LIBS="$cf_add_libs"
for ac_header in termcap.h for ac_header in termcap.h
do do
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
echo "$as_me:6993: checking for $ac_header" >&5 echo "$as_me:6995: checking for $ac_header" >&5
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
if eval "test \"\${$as_ac_Header+set}\" = set"; then if eval "test \"\${$as_ac_Header+set}\" = set"; then
echo $ECHO_N "(cached) $ECHO_C" >&6 echo $ECHO_N "(cached) $ECHO_C" >&6
else else
cat >"conftest.$ac_ext" <<_ACEOF cat >"conftest.$ac_ext" <<_ACEOF
#line 6999 "configure" #line 7001 "configure"
#include "confdefs.h" #include "confdefs.h"
#include <$ac_header> #include <$ac_header>
_ACEOF _ACEOF
if { (eval echo "$as_me:7003: \"$ac_cpp "conftest.$ac_ext"\"") >&5 if { (eval echo "$as_me:7005: \"$ac_cpp "conftest.$ac_ext"\"") >&5
(eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1 (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1
ac_status=$? ac_status=$?
$EGREP -v '^ *\+' conftest.er1 >conftest.err $EGREP -v '^ *\+' conftest.er1 >conftest.err
rm -f conftest.er1 rm -f conftest.er1
cat conftest.err >&5 cat conftest.err >&5
echo "$as_me:7009: \$? = $ac_status" >&5 echo "$as_me:7011: \$? = $ac_status" >&5
(exit "$ac_status"); } >/dev/null; then (exit "$ac_status"); } >/dev/null; then
if test -s conftest.err; then if test -s conftest.err; then
ac_cpp_err=$ac_c_preproc_warn_flag ac_cpp_err=$ac_c_preproc_warn_flag
else else
ac_cpp_err= ac_cpp_err=
fi fi
else else
ac_cpp_err=yes ac_cpp_err=yes
fi fi
if test -z "$ac_cpp_err"; then if test -z "$ac_cpp_err"; then
eval "$as_ac_Header=yes" eval "$as_ac_Header=yes"
else else
echo "$as_me: failed program was:" >&5 echo "$as_me: failed program was:" >&5
cat "conftest.$ac_ext" >&5 cat "conftest.$ac_ext" >&5
eval "$as_ac_Header=no" eval "$as_ac_Header=no"
fi fi
rm -f conftest.err "conftest.$ac_ext" rm -f conftest.err "conftest.$ac_ext"
fi fi
echo "$as_me:7028: result: `eval echo '${'"$as_ac_Header"'}'`" >&5 echo "$as_me:7030: result: `eval echo '${'"$as_ac_Header"'}'`" >&5
echo "${ECHO_T}`eval echo '${'"$as_ac_Header"'}'`" >&6 echo "${ECHO_T}`eval echo '${'"$as_ac_Header"'}'`" >&6
if test "`eval echo '${'"$as_ac_Header"'}'`" = yes; then if test "`eval echo '${'"$as_ac_Header"'}'`" = yes; then
cat >>confdefs.h <<EOF cat >>confdefs.h <<EOF
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
EOF EOF
fi fi
done done
# If this is linking against ncurses, we'll trigger the # If this is linking against ncurses, we'll trigger the
# ifdef in resize.c that turns the termcap stuff back off. # ifdef in resize.c that turns the termcap stuff back off.
cat >>confdefs.h <<\EOF cat >>confdefs.h <<\EOF
#define USE_TERMINFO 1 #define USE_TERMINFO 1
EOF EOF
fi fi
fi fi
echo "$as_me:7048: checking for X applications class" >&5 echo "$as_me:7050: checking for X applications class" >&5
echo $ECHO_N "checking for X applications class... $ECHO_C" >&6 echo $ECHO_N "checking for X applications class... $ECHO_C" >&6
# Check whether --with-app-class or --without-app-class was given. # Check whether --with-app-class or --without-app-class was given.
if test "${with_app_class+set}" = set; then if test "${with_app_class+set}" = set; then
withval="$with_app_class" withval="$with_app_class"
APP_CLASS=$withval APP_CLASS=$withval
else else
APP_CLASS=XTerm APP_CLASS=XTerm
fi; fi;
case x$APP_CLASS in case x$APP_CLASS in
(*[/@,%]*) (*[/@,%]*)
{ echo "$as_me:7061: WARNING: X applications class cannot contain punctua tion" >&5 { echo "$as_me:7063: WARNING: X applications class cannot contain punctua tion" >&5
echo "$as_me: WARNING: X applications class cannot contain punctuation" >&2;} echo "$as_me: WARNING: X applications class cannot contain punctuation" >&2;}
APP_CLASS=XTerm APP_CLASS=XTerm
;; ;;
(x[A-Z]*) (x[A-Z]*)
;; ;;
(*) (*)
{ echo "$as_me:7068: WARNING: X applications class must start with capita l, ignoring $APP_CLASS" >&5 { echo "$as_me:7070: WARNING: X applications class must start with capita l, ignoring $APP_CLASS" >&5
echo "$as_me: WARNING: X applications class must start with capital, ignoring $A PP_CLASS" >&2;} echo "$as_me: WARNING: X applications class must start with capital, ignoring $A PP_CLASS" >&2;}
APP_CLASS=XTerm APP_CLASS=XTerm
;; ;;
esac esac
echo "$as_me:7074: result: $APP_CLASS" >&5 echo "$as_me:7076: result: $APP_CLASS" >&5
echo "${ECHO_T}$APP_CLASS" >&6 echo "${ECHO_T}$APP_CLASS" >&6
echo "$as_me:7077: checking for directory to install resource files" >&5 echo "$as_me:7079: checking for directory to install resource files" >&5
echo $ECHO_N "checking for directory to install resource files... $ECHO_C" >&6 echo $ECHO_N "checking for directory to install resource files... $ECHO_C" >&6
# Check whether --with-app-defaults or --without-app-defaults was given. # Check whether --with-app-defaults or --without-app-defaults was given.
if test "${with_app_defaults+set}" = set; then if test "${with_app_defaults+set}" = set; then
withval="$with_app_defaults" withval="$with_app_defaults"
APPSDIR=$withval APPSDIR=$withval
else else
APPSDIR='${exec_prefix}/lib/X11/app-defaults' APPSDIR='${exec_prefix}/lib/X11/app-defaults'
fi; fi;
skipping to change at line 7141 skipping to change at line 7143
case ".$cf_path" in case ".$cf_path" in
(.NONE/*) (.NONE/*)
cf_path=`echo "$cf_path" | sed -e s%NONE%$cf_path_syntax%` cf_path=`echo "$cf_path" | sed -e s%NONE%$cf_path_syntax%`
;; ;;
esac esac
;; ;;
(.no|.NONE/*) (.no|.NONE/*)
cf_path=`echo "$cf_path" | sed -e s%NONE%$cf_path_syntax%` cf_path=`echo "$cf_path" | sed -e s%NONE%$cf_path_syntax%`
;; ;;
(*) (*)
{ { echo "$as_me:7141: error: expected a pathname, not \"$cf_path\"" >&5 { { echo "$as_me:7143: error: expected a pathname, not \"$cf_path\"" >&5
echo "$as_me: error: expected a pathname, not \"$cf_path\"" >&2;} echo "$as_me: error: expected a pathname, not \"$cf_path\"" >&2;}
{ (exit 1); exit 1; }; } { (exit 1); exit 1; }; }
;; ;;
esac esac
fi fi
echo "$as_me:7149: result: $APPSDIR" >&5 echo "$as_me:7151: result: $APPSDIR" >&5
echo "${ECHO_T}$APPSDIR" >&6 echo "${ECHO_T}$APPSDIR" >&6
no_appsdir= no_appsdir=
if test "$APPSDIR" = no if test "$APPSDIR" = no
then then
no_appsdir="#" no_appsdir="#"
else else
EXTRA_INSTALL_DIRS="$EXTRA_INSTALL_DIRS \$(APPSDIR)" EXTRA_INSTALL_DIRS="$EXTRA_INSTALL_DIRS \$(APPSDIR)"
fi fi
echo "$as_me:7160: checking for the icon name" >&5 echo "$as_me:7162: checking for the icon name" >&5
echo $ECHO_N "checking for the icon name... $ECHO_C" >&6 echo $ECHO_N "checking for the icon name... $ECHO_C" >&6
# Check whether --with-icon-name or --without-icon-name was given. # Check whether --with-icon-name or --without-icon-name was given.
if test "${with_icon_name+set}" = set; then if test "${with_icon_name+set}" = set; then
withval="$with_icon_name" withval="$with_icon_name"
ICON_NAME="$withval" ICON_NAME="$withval"
else else
ICON_NAME=mini.xterm ICON_NAME=mini.xterm
fi; fi;
case "x$ICON_NAME" in case "x$ICON_NAME" in
(xyes|xno|x) (xyes|xno|x)
ICON_NAME=mini.xterm ICON_NAME=mini.xterm
;; ;;
esac esac
echo "$as_me:7176: result: $ICON_NAME" >&5 echo "$as_me:7178: result: $ICON_NAME" >&5
echo "${ECHO_T}$ICON_NAME" >&6 echo "${ECHO_T}$ICON_NAME" >&6
echo "$as_me:7179: checking for icon symlink to use" >&5 echo "$as_me:7181: checking for icon symlink to use" >&5
echo $ECHO_N "checking for icon symlink to use... $ECHO_C" >&6 echo $ECHO_N "checking for icon symlink to use... $ECHO_C" >&6
# Check whether --with-icon-symlink or --without-icon-symlink was given. # Check whether --with-icon-symlink or --without-icon-symlink was given.
if test "${with_icon_symlink+set}" = set; then if test "${with_icon_symlink+set}" = set; then
withval="$with_icon_symlink" withval="$with_icon_symlink"
ICON_SYMLINK="$withval" ICON_SYMLINK="$withval"
else else
ICON_SYMLINK=NONE ICON_SYMLINK=NONE
fi; fi;
case "x$ICON_SYMLINK" in case "x$ICON_SYMLINK" in
(xyes) (xyes)
ICON_SYMLINK=xterm ICON_SYMLINK=xterm
;; ;;
(xno|x) (xno|x)
ICON_SYMLINK=NONE ICON_SYMLINK=NONE
;; ;;
esac esac
echo "$as_me:7198: result: $ICON_SYMLINK" >&5 echo "$as_me:7200: result: $ICON_SYMLINK" >&5
echo "${ECHO_T}$ICON_SYMLINK" >&6 echo "${ECHO_T}$ICON_SYMLINK" >&6
# Install all icons except for the overused "terminal". # Install all icons except for the overused "terminal".
cf_cv_icon_list= cf_cv_icon_list=
for my_item in $srcdir/icons/*.svg for my_item in $srcdir/icons/*.svg
do do
test -f "$my_item" || continue test -f "$my_item" || continue
cf_icon_name=`echo "$my_item" |sed -e "s,.svg,," -e "s,^$srcdir/,,"` cf_icon_name=`echo "$my_item" |sed -e "s,.svg,," -e "s,^$srcdir/,,"`
case $cf_icon_name in case $cf_icon_name in
(*_48x48) (*_48x48)
continue continue
;; ;;
esac esac
test -n "$verbose" && echo " adding $cf_icon_name to icon-list" 1>&6 test -n "$verbose" && echo " adding $cf_icon_name to icon-list" 1>&6
echo "${as_me:-configure}:7214: testing adding $cf_icon_name to icon-list ..." 1 >&5 echo "${as_me:-configure}:7216: testing adding $cf_icon_name to icon-list ..." 1 >&5
cf_cv_icon_list="$cf_cv_icon_list $cf_icon_name" cf_cv_icon_list="$cf_cv_icon_list $cf_icon_name"
if test -f "${cf_icon_name}_48x48.png" if test -f "${cf_icon_name}_48x48.png"
then then
test -n "$verbose" && echo " adding ${cf_icon_name}_48x48 to i con-list" 1>&6 test -n "$verbose" && echo " adding ${cf_icon_name}_48x48 to i con-list" 1>&6
echo "${as_me:-configure}:7221: testing adding ${cf_icon_name}_48x48 to icon-lis t ..." 1>&5 echo "${as_me:-configure}:7223: testing adding ${cf_icon_name}_48x48 to icon-lis t ..." 1>&5
cf_cv_icon_list="$cf_cv_icon_list ${cf_icon_name}_48x48" cf_cv_icon_list="$cf_cv_icon_list ${cf_icon_name}_48x48"
fi fi
done done
echo "$as_me:7227: checking for directory to install pixmaps" >&5 echo "$as_me:7229: checking for directory to install pixmaps" >&5
echo $ECHO_N "checking for directory to install pixmaps... $ECHO_C" >&6 echo $ECHO_N "checking for directory to install pixmaps... $ECHO_C" >&6
# Check whether --with-pixmapdir or --without-pixmapdir was given. # Check whether --with-pixmapdir or --without-pixmapdir was given.
if test "${with_pixmapdir+set}" = set; then if test "${with_pixmapdir+set}" = set; then
withval="$with_pixmapdir" withval="$with_pixmapdir"
PIXMAPDIR=$withval PIXMAPDIR=$withval
else else
test -z "$PIXMAPDIR" && PIXMAPDIR='${datadir}/pixmaps' test -z "$PIXMAPDIR" && PIXMAPDIR='${datadir}/pixmaps'
fi; fi;
skipping to change at line 7278 skipping to change at line 7280
case ".$cf_path" in case ".$cf_path" in
(.NONE/*) (.NONE/*)
cf_path=`echo "$cf_path" | sed -e s%NONE%$cf_path_syntax%` cf_path=`echo "$cf_path" | sed -e s%NONE%$cf_path_syntax%`
;; ;;
esac esac
;; ;;
(.no|.NONE/*) (.no|.NONE/*)
cf_path=`echo "$cf_path" | sed -e s%NONE%$cf_path_syntax%` cf_path=`echo "$cf_path" | sed -e s%NONE%$cf_path_syntax%`
;; ;;
(*) (*)
{ { echo "$as_me:7278: error: expected a pathname, not \"$cf_path\"" >&5 { { echo "$as_me:7280: error: expected a pathname, not \"$cf_path\"" >&5
echo "$as_me: error: expected a pathname, not \"$cf_path\"" >&2;} echo "$as_me: error: expected a pathname, not \"$cf_path\"" >&2;}
{ (exit 1); exit 1; }; } { (exit 1); exit 1; }; }
;; ;;
esac esac
fi fi
echo "$as_me:7285: result: $PIXMAPDIR" >&5 echo "$as_me:7287: result: $PIXMAPDIR" >&5
echo "${ECHO_T}$PIXMAPDIR" >&6 echo "${ECHO_T}$PIXMAPDIR" >&6
no_pixmapdir= no_pixmapdir=
if test "$PIXMAPDIR" = no if test "$PIXMAPDIR" = no
then then
no_pixmapdir="#" no_pixmapdir="#"
else else
EXTRA_INSTALL_DIRS="$EXTRA_INSTALL_DIRS \$(PIXMAPDIR)" EXTRA_INSTALL_DIRS="$EXTRA_INSTALL_DIRS \$(PIXMAPDIR)"
fi fi
echo "$as_me:7296: checking for directory to install icons" >&5 echo "$as_me:7298: checking for directory to install icons" >&5
echo $ECHO_N "checking for directory to install icons... $ECHO_C" >&6 echo $ECHO_N "checking for directory to install icons... $ECHO_C" >&6
# Check whether --with-icondir or --without-icondir was given. # Check whether --with-icondir or --without-icondir was given.
if test "${with_icondir+set}" = set; then if test "${with_icondir+set}" = set; then
withval="$with_icondir" withval="$with_icondir"
ICONDIR=$withval ICONDIR=$withval
else else
test -z "$ICONDIR" && ICONDIR=no test -z "$ICONDIR" && ICONDIR=no
fi; fi;
skipping to change at line 7347 skipping to change at line 7349
case ".$cf_path" in case ".$cf_path" in
(.NONE/*) (.NONE/*)
cf_path=`echo "$cf_path" | sed -e s%NONE%$cf_path_syntax%` cf_path=`echo "$cf_path" | sed -e s%NONE%$cf_path_syntax%`
;; ;;
esac esac
;; ;;
(.no|.NONE/*) (.no|.NONE/*)
cf_path=`echo "$cf_path" | sed -e s%NONE%$cf_path_syntax%` cf_path=`echo "$cf_path" | sed -e s%NONE%$cf_path_syntax%`
;; ;;
(*) (*)
{ { echo "$as_me:7347: error: expected a pathname, not \"$cf_path\"" >&5 { { echo "$as_me:7349: error: expected a pathname, not \"$cf_path\"" >&5
echo "$as_me: error: expected a pathname, not \"$cf_path\"" >&2;} echo "$as_me: error: expected a pathname, not \"$cf_path\"" >&2;}
{ (exit 1); exit 1; }; } { (exit 1); exit 1; }; }
;; ;;
esac esac
fi fi
echo "$as_me:7354: result: $ICONDIR" >&5 echo "$as_me:7356: result: $ICONDIR" >&5
echo "${ECHO_T}$ICONDIR" >&6 echo "${ECHO_T}$ICONDIR" >&6
no_icondir= no_icondir=
if test "$ICONDIR" = no if test "$ICONDIR" = no
then then
no_icondir="#" no_icondir="#"
else else
EXTRA_INSTALL_DIRS="$EXTRA_INSTALL_DIRS \$(ICONDIR)" EXTRA_INSTALL_DIRS="$EXTRA_INSTALL_DIRS \$(ICONDIR)"
fi fi
echo "$as_me:7365: checking if icon theme should be used" >&5 echo "$as_me:7367: checking if icon theme should be used" >&5
echo $ECHO_N "checking if icon theme should be used... $ECHO_C" >&6 echo $ECHO_N "checking if icon theme should be used... $ECHO_C" >&6
# Check whether --with-icon-theme or --without-icon-theme was given. # Check whether --with-icon-theme or --without-icon-theme was given.
if test "${with_icon_theme+set}" = set; then if test "${with_icon_theme+set}" = set; then
withval="$with_icon_theme" withval="$with_icon_theme"
ICON_THEME=$withval ICON_THEME=$withval
else else
ICON_THEME=no ICON_THEME=no
fi; fi;
case "x$ICON_THEME" in case "x$ICON_THEME" in
(xno) (xno)
;; ;;
(x|xyes) (x|xyes)
ICON_THEME=hicolor ICON_THEME=hicolor
;; ;;
esac esac
echo "$as_me:7383: result: $ICON_THEME" >&5 echo "$as_me:7385: result: $ICON_THEME" >&5
echo "${ECHO_T}$ICON_THEME" >&6 echo "${ECHO_T}$ICON_THEME" >&6
if test "x$ICON_THEME" = xno if test "x$ICON_THEME" = xno
then then
if test "x$ICONDIR" != xno if test "x$ICONDIR" != xno
then then
test -n "$verbose" && echo " ignoring icondir without theme" 1 >&6 test -n "$verbose" && echo " ignoring icondir without theme" 1 >&6
echo "${as_me:-configure}:7392: testing ignoring icondir without theme ..." 1>&5 echo "${as_me:-configure}:7394: testing ignoring icondir without theme ..." 1>&5
no_icondir="#" no_icondir="#"
fi fi
else else
if test "x$ICONDIR" = xno if test "x$ICONDIR" = xno
then then
{ { echo "$as_me:7399: error: icondir must be set for icon theme" >&5 { { echo "$as_me:7401: error: icondir must be set for icon theme" >&5
echo "$as_me: error: icondir must be set for icon theme" >&2;} echo "$as_me: error: icondir must be set for icon theme" >&2;}
{ (exit 1); exit 1; }; } { (exit 1); exit 1; }; }
fi fi
fi fi
: ${ICON_FORMAT:=".svg .png .xpm"} : ${ICON_FORMAT:=".svg .png .xpm"}
ICON_LIST= ICON_LIST=
if test "x$ICON_THEME" != xno if test "x$ICON_THEME" != xno
then then
cf_icon_list="$cf_cv_icon_list" cf_icon_list="$cf_cv_icon_list"
else else
cf_icon_list="icons/${ICON_NAME}_48x48" cf_icon_list="icons/${ICON_NAME}_48x48"
fi fi
echo "$as_me:7416: checking for icon(s) to install" >&5 echo "$as_me:7418: checking for icon(s) to install" >&5
echo $ECHO_N "checking for icon(s) to install... $ECHO_C" >&6 echo $ECHO_N "checking for icon(s) to install... $ECHO_C" >&6
for cf_name in $cf_icon_list for cf_name in $cf_icon_list
do do
test -n "$verbose" && echo " using $ICON_FORMAT" 1>&6 test -n "$verbose" && echo " using $ICON_FORMAT" 1>&6
echo "${as_me:-configure}:7422: testing using $ICON_FORMAT ..." 1>&5 echo "${as_me:-configure}:7424: testing using $ICON_FORMAT ..." 1>&5
for cf_suffix in $ICON_FORMAT for cf_suffix in $ICON_FORMAT
do do
cf_icon="${cf_name}${cf_suffix}" cf_icon="${cf_name}${cf_suffix}"
cf_left=`echo "$cf_icon" | sed -e 's/:.*//'` cf_left=`echo "$cf_icon" | sed -e 's/:.*//'`
if test ! -f "${cf_left}" if test ! -f "${cf_left}"
then then
if test "x$srcdir" != "x." if test "x$srcdir" != "x."
then then
cf_icon="${srcdir}/${cf_left}" cf_icon="${srcdir}/${cf_left}"
skipping to change at line 7455 skipping to change at line 7457
cf_trim=`echo "$cf_base" | sed -e 's/_[0-9][0-9]x[0-9][0- 9]\././'` cf_trim=`echo "$cf_base" | sed -e 's/_[0-9][0-9]x[0-9][0- 9]\././'`
case "x${cf_base}" in case "x${cf_base}" in
(*:*) (*:*)
cf_next=$cf_base cf_next=$cf_base
# user-defined mapping # user-defined mapping
;; ;;
(*.png) (*.png)
cf_size=`file "$cf_left"|sed -e 's/^[^:]*://' -e 's/^.*[^0-9]\([0-9][0-9]* x [0-9][0-9]*\)[^0-9].*$/\1/' -e 's/ //g'` cf_size=`file "$cf_left"|sed -e 's/^[^:]*://' -e 's/^.*[^0-9]\([0-9][0-9]* x [0-9][0-9]*\)[^0-9].*$/\1/' -e 's/ //g'`
if test -z "$cf_size" if test -z "$cf_size"
then then
{ echo "$as_me:7455: WARNING: cannot dete rmine size of $cf_left" >&5 { echo "$as_me:7457: WARNING: cannot dete rmine size of $cf_left" >&5
echo "$as_me: WARNING: cannot determine size of $cf_left" >&2;} echo "$as_me: WARNING: cannot determine size of $cf_left" >&2;}
continue continue
fi fi
cf_next="$cf_size/apps/$cf_trim" cf_next="$cf_size/apps/$cf_trim"
;; ;;
(*.svg) (*.svg)
cf_next="scalable/apps/$cf_trim" cf_next="scalable/apps/$cf_trim"
;; ;;
(*.xpm) (*.xpm)
test -n "$verbose" && echo " ignored XPM file in icon theme" 1>&6 test -n "$verbose" && echo " ignored XPM file in icon theme" 1>&6
echo "${as_me:-configure}:7467: testing ignored XPM file in icon theme ..." 1>&5 echo "${as_me:-configure}:7469: testing ignored XPM file in icon theme ..." 1>&5
continue continue
;; ;;
(*_[0-9][0-9]*x[0-9][0-9]*.*) (*_[0-9][0-9]*x[0-9][0-9]*.*)
cf_size=`echo "$cf_left"|sed -e 's/^.*_\([0-9][0- 9]*x[0-9][0-9]*\)\..*$/\1/'` cf_size=`echo "$cf_left"|sed -e 's/^.*_\([0-9][0- 9]*x[0-9][0-9]*\)\..*$/\1/'`
cf_left=`echo "$cf_left"|sed -e 's/^\(.*\)_\([0-9 ][0-9]*x[0-9][0-9]*\)\(\..*\)$/\1\3/'` cf_left=`echo "$cf_left"|sed -e 's/^\(.*\)_\([0-9 ][0-9]*x[0-9][0-9]*\)\(\..*\)$/\1\3/'`
cf_next="$cf_size/apps/$cf_base" cf_next="$cf_size/apps/$cf_base"
;; ;;
esac esac
test -n "$verbose" && echo " adding $cf_next" 1>&6 test -n "$verbose" && echo " adding $cf_next" 1>&6
echo "${as_me:-configure}:7479: testing adding $cf_next ..." 1>&5 echo "${as_me:-configure}:7481: testing adding $cf_next ..." 1>&5
cf_icon="${cf_icon}:${cf_next}" cf_icon="${cf_icon}:${cf_next}"
fi fi
test -n "$ICON_LIST" && ICON_LIST="$ICON_LIST " test -n "$ICON_LIST" && ICON_LIST="$ICON_LIST "
ICON_LIST="$ICON_LIST${cf_icon}" ICON_LIST="$ICON_LIST${cf_icon}"
if test -z "$ICON_NAME" if test -z "$ICON_NAME"
then then
ICON_NAME=`basename "$cf_icon" | sed -e 's/[.:].*//'` ICON_NAME=`basename "$cf_icon" | sed -e 's/[.:].*//'`
fi fi
done done
done done
if test -n "$verbose" if test -n "$verbose"
then then
echo "$as_me:7494: checking result" >&5 echo "$as_me:7496: checking result" >&5
echo $ECHO_N "checking result... $ECHO_C" >&6 echo $ECHO_N "checking result... $ECHO_C" >&6
fi fi
echo "$as_me:7497: result: $ICON_LIST" >&5 echo "$as_me:7499: result: $ICON_LIST" >&5
echo "${ECHO_T}$ICON_LIST" >&6 echo "${ECHO_T}$ICON_LIST" >&6
if test -z "$ICON_LIST" if test -z "$ICON_LIST"
then then
{ { echo "$as_me:7502: error: no icons found" >&5 { { echo "$as_me:7504: error: no icons found" >&5
echo "$as_me: error: no icons found" >&2;} echo "$as_me: error: no icons found" >&2;}
{ (exit 1); exit 1; }; } { (exit 1); exit 1; }; }
fi fi
echo "$as_me:7507: checking for icon name" >&5 echo "$as_me:7509: checking for icon name" >&5
echo $ECHO_N "checking for icon name... $ECHO_C" >&6 echo $ECHO_N "checking for icon name... $ECHO_C" >&6
echo "$as_me:7509: result: $ICON_NAME" >&5 echo "$as_me:7511: result: $ICON_NAME" >&5
echo "${ECHO_T}$ICON_NAME" >&6 echo "${ECHO_T}$ICON_NAME" >&6
# Comment-out the install-desktop rule if the desktop-utils are not found. # Comment-out the install-desktop rule if the desktop-utils are not found.
echo "$as_me:7513: checking if you want to install desktop files" >&5 echo "$as_me:7515: checking if you want to install desktop files" >&5
echo $ECHO_N "checking if you want to install desktop files... $ECHO_C" >&6 echo $ECHO_N "checking if you want to install desktop files... $ECHO_C" >&6
# Check whether --enable-desktop or --disable-desktop was given. # Check whether --enable-desktop or --disable-desktop was given.
if test "${enable_desktop+set}" = set; then if test "${enable_desktop+set}" = set; then
enableval="$enable_desktop" enableval="$enable_desktop"
test "$enableval" != no && enableval=yes test "$enableval" != no && enableval=yes
if test "$enableval" != "yes" ; then if test "$enableval" != "yes" ; then
enable_desktop=$enableval enable_desktop=$enableval
else else
enable_desktop=$enableval enable_desktop=$enableval
fi fi
else else
enableval=yes enableval=yes
enable_desktop=$enableval enable_desktop=$enableval
fi; fi;
echo "$as_me:7530: result: $enable_desktop" >&5 echo "$as_me:7532: result: $enable_desktop" >&5
echo "${ECHO_T}$enable_desktop" >&6 echo "${ECHO_T}$enable_desktop" >&6
desktop_utils= desktop_utils=
if test "$enable_desktop" = yes ; then if test "$enable_desktop" = yes ; then
# Extract the first word of "desktop-file-install", so it can be a program name with args. # Extract the first word of "desktop-file-install", so it can be a program name with args.
set dummy desktop-file-install; ac_word=$2 set dummy desktop-file-install; ac_word=$2
echo "$as_me:7537: checking for $ac_word" >&5 echo "$as_me:7539: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
if test "${ac_cv_prog_desktop_utils+set}" = set; then if test "${ac_cv_prog_desktop_utils+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6 echo $ECHO_N "(cached) $ECHO_C" >&6
else else
if test -n "$desktop_utils"; then if test -n "$desktop_utils"; then
ac_cv_prog_desktop_utils="$desktop_utils" # Let the user override the test. ac_cv_prog_desktop_utils="$desktop_utils" # Let the user override the test.
else else
ac_save_IFS=$IFS; IFS=$ac_path_separator ac_save_IFS=$IFS; IFS=$ac_path_separator
ac_dummy="$PATH" ac_dummy="$PATH"
for ac_dir in $ac_dummy; do for ac_dir in $ac_dummy; do
IFS=$ac_save_IFS IFS=$ac_save_IFS
test -z "$ac_dir" && ac_dir=. test -z "$ac_dir" && ac_dir=.
$as_executable_p "$ac_dir/$ac_word" || continue $as_executable_p "$ac_dir/$ac_word" || continue
ac_cv_prog_desktop_utils="yes" ac_cv_prog_desktop_utils="yes"
echo "$as_me:7552: found $ac_dir/$ac_word" >&5 echo "$as_me:7554: found $ac_dir/$ac_word" >&5
break break
done done
test -z "$ac_cv_prog_desktop_utils" && ac_cv_prog_desktop_utils="no" test -z "$ac_cv_prog_desktop_utils" && ac_cv_prog_desktop_utils="no"
fi fi
fi fi
desktop_utils=$ac_cv_prog_desktop_utils desktop_utils=$ac_cv_prog_desktop_utils
if test -n "$desktop_utils"; then if test -n "$desktop_utils"; then
echo "$as_me:7561: result: $desktop_utils" >&5 echo "$as_me:7563: result: $desktop_utils" >&5
echo "${ECHO_T}$desktop_utils" >&6 echo "${ECHO_T}$desktop_utils" >&6
else else
echo "$as_me:7564: result: no" >&5 echo "$as_me:7566: result: no" >&5
echo "${ECHO_T}no" >&6 echo "${ECHO_T}no" >&6
fi fi
fi fi
test "$desktop_utils" = yes && desktop_utils= || desktop_utils="#" test "$desktop_utils" = yes && desktop_utils= || desktop_utils="#"
if test -z "$desktop_utils" if test -z "$desktop_utils"
then then
echo "$as_me:7574: checking for requested desktop-category" >&5 echo "$as_me:7576: checking for requested desktop-category" >&5
echo $ECHO_N "checking for requested desktop-category... $ECHO_C" >&6 echo $ECHO_N "checking for requested desktop-category... $ECHO_C" >&6
# Check whether --with-desktop-category or --without-desktop-category was given. # Check whether --with-desktop-category or --without-desktop-category was given.
if test "${with_desktop_category+set}" = set; then if test "${with_desktop_category+set}" = set; then
withval="$with_desktop_category" withval="$with_desktop_category"
cf_desktop_want=$withval cf_desktop_want=$withval
else else
cf_desktop_want=auto cf_desktop_want=auto
fi; fi;
echo "$as_me:7584: result: $cf_desktop_want" >&5 echo "$as_me:7586: result: $cf_desktop_want" >&5
echo "${ECHO_T}$cf_desktop_want" >&6 echo "${ECHO_T}$cf_desktop_want" >&6
if test "$cf_desktop_want" = auto if test "$cf_desktop_want" = auto
then then
rm -rf conftest* rm -rf conftest*
cf_desktop_also= cf_desktop_also=
for cf_desktop_dir in \ for cf_desktop_dir in \
/usr/share/app-install \ /usr/share/app-install \
/usr/share/applications /usr/share/applications
do do
skipping to change at line 7607 skipping to change at line 7609
find $cf_desktop_dir -name '*.desktop' | \ find $cf_desktop_dir -name '*.desktop' | \
while true while true
do do
read cf_desktop_path read cf_desktop_path
test -z "$cf_desktop_path" && break test -z "$cf_desktop_path" && break
cf_desktop_name=`basename "$cf_desktop_pa th" .desktop` cf_desktop_name=`basename "$cf_desktop_pa th" .desktop`
case $cf_desktop_name in case $cf_desktop_name in
(xterm|*-xterm|*rxvt*|*konsole|*[Tt]ermin al) (xterm|*-xterm|*rxvt*|*konsole|*[Tt]ermin al)
test -n "$verbose" && echo " i nspect $cf_desktop_path" 1>&6 test -n "$verbose" && echo " i nspect $cf_desktop_path" 1>&6
echo "${as_me:-configure}:7607: testing inspect $cf_desktop_path ..." 1>&5 echo "${as_me:-configure}:7609: testing inspect $cf_desktop_path ..." 1>&5
${EGREP-egrep} '^Categories=' "$c f_desktop_path" | \ ${EGREP-egrep} '^Categories=' "$c f_desktop_path" | \
tr ';' '\n' | \ tr ';' '\n' | \
sed -e 's%^.*=%%' -e '/^$ /d' >>conftest.1 sed -e 's%^.*=%%' -e '/^$ /d' >>conftest.1
;; ;;
esac esac
done done
fi fi
done done
if test -s conftest.1 if test -s conftest.1
skipping to change at line 7638 skipping to change at line 7640
elif test -s conftest.3 elif test -s conftest.3
then then
grep -w "$cf_desktop_this" conftest.3 >/d ev/null && continue grep -w "$cf_desktop_this" conftest.3 >/d ev/null && continue
fi fi
case "$cf_desktop_this" in case "$cf_desktop_this" in
(-*) (-*)
;; ;;
(Qt*|*Xfce*|*[ABCDEFGHIJKLMNOPQRSTUVWXYZ][ABCDEFG HIJKLMNOPQRSTUVWXYZ]*) (Qt*|*Xfce*|*[ABCDEFGHIJKLMNOPQRSTUVWXYZ][ABCDEFG HIJKLMNOPQRSTUVWXYZ]*)
test -n "$verbose" && echo " ignored $ cf_desktop_this" 1>&6 test -n "$verbose" && echo " ignored $ cf_desktop_this" 1>&6
echo "${as_me:-configure}:7638: testing ignored $cf_desktop_this ..." 1>&5 echo "${as_me:-configure}:7640: testing ignored $cf_desktop_this ..." 1>&5
echo "$cf_desktop_this" >> conftest.3 echo "$cf_desktop_this" >> conftest.3
;; ;;
(System|TerminalEmulator|*) (System|TerminalEmulator|*)
test -n "$verbose" && echo " applied $ cf_desktop_this" 1>&6 test -n "$verbose" && echo " applied $ cf_desktop_this" 1>&6
echo "${as_me:-configure}:7645: testing applied $cf_desktop_this ..." 1>&5 echo "${as_me:-configure}:7647: testing applied $cf_desktop_this ..." 1>&5
test "x$cf_desktop_last" != "x$cf_desktop _this" && echo "$cf_desktop_this" >>conftest.2 test "x$cf_desktop_last" != "x$cf_desktop _this" && echo "$cf_desktop_this" >>conftest.2
;; ;;
esac esac
cf_desktop_last=$cf_desktop_this cf_desktop_last=$cf_desktop_this
done done
cf_desktop_want="`tr '\n' ';' < conftest.2`" cf_desktop_want="`tr '\n' ';' < conftest.2`"
fi fi
if test -n "$cf_desktop_want" if test -n "$cf_desktop_want"
then then
skipping to change at line 7672 skipping to change at line 7674
test -z "$cf_desktop_test" && cf_desktop_want= test -z "$cf_desktop_test" && cf_desktop_want=
cf_desktop_test=`echo "$cf_desktop_want" | sed -e 's/^.*;$/./g'` cf_desktop_test=`echo "$cf_desktop_want" | sed -e 's/^.*;$/./g'`
test -z "$cf_desktop_test" && cf_desktop_want= test -z "$cf_desktop_test" && cf_desktop_want=
fi fi
fi fi
if test -z "$cf_desktop_want" if test -z "$cf_desktop_want"
then then
cf_desktop_want="`echo "System|TerminalEmulator|*" | sed -e 's/\*//g' -e 's/|/;/g' -e 's/;*$/;/g'`" cf_desktop_want="`echo "System|TerminalEmulator|*" | sed -e 's/\*//g' -e 's/|/;/g' -e 's/;*$/;/g'`"
test -n "$verbose" && echo " no usable value found for desktop category" 1>&6 test -n "$verbose" && echo " no usable value found for desktop category" 1>&6
echo "${as_me:-configure}:7672: testing no usable value found for desktop catego ry ..." 1>&5 echo "${as_me:-configure}:7674: testing no usable value found for desktop catego ry ..." 1>&5
fi fi
fi fi
DESKTOP_CATEGORY=`echo "$cf_desktop_want" | sed -e 's/[ ,]/;/g'` DESKTOP_CATEGORY=`echo "$cf_desktop_want" | sed -e 's/[ ,]/;/g'`
test -n "$verbose" && echo " will use Categories=$DESKTOP_CATEGORY" 1> &6 test -n "$verbose" && echo " will use Categories=$DESKTOP_CATEGORY" 1> &6
echo "${as_me:-configure}:7679: testing will use Categories=$DESKTOP_CATEGORY .. ." 1>&5 echo "${as_me:-configure}:7681: testing will use Categories=$DESKTOP_CATEGORY .. ." 1>&5
fi fi
echo "$as_me:7683: checking for install-permissions reference" >&5 echo "$as_me:7685: checking for install-permissions reference" >&5
echo $ECHO_N "checking for install-permissions reference... $ECHO_C" >&6 echo $ECHO_N "checking for install-permissions reference... $ECHO_C" >&6
# Check whether --with-reference or --without-reference was given. # Check whether --with-reference or --without-reference was given.
if test "${with_reference+set}" = set; then if test "${with_reference+set}" = set; then
withval="$with_reference" withval="$with_reference"
with_reference=$withval with_reference=$withval
else else
with_reference=xterm with_reference=xterm
fi; fi;
echo "$as_me:7693: result: $with_reference" >&5 echo "$as_me:7695: result: $with_reference" >&5
echo "${ECHO_T}$with_reference" >&6 echo "${ECHO_T}$with_reference" >&6
with_full_paths=yes with_full_paths=yes
echo "$as_me:7698: checking for PATH separator" >&5 echo "$as_me:7700: checking for PATH separator" >&5
echo $ECHO_N "checking for PATH separator... $ECHO_C" >&6 echo $ECHO_N "checking for PATH separator... $ECHO_C" >&6
case "$cf_cv_system_name" in case "$cf_cv_system_name" in
(os2*) PATH_SEPARATOR=';' ;; (os2*) PATH_SEPARATOR=';' ;;
(*) ${PATH_SEPARATOR:=':'} ;; (*) ${PATH_SEPARATOR:=':'} ;;
esac esac
echo "$as_me:7705: result: $PATH_SEPARATOR" >&5 echo "$as_me:7707: result: $PATH_SEPARATOR" >&5
echo "${ECHO_T}$PATH_SEPARATOR" >&6 echo "${ECHO_T}$PATH_SEPARATOR" >&6
test -z "$XTERM_PATH" && XTERM_PATH="$with_reference" test -z "$XTERM_PATH" && XTERM_PATH="$with_reference"
for ac_prog in $XTERM_PATH $with_reference for ac_prog in $XTERM_PATH $with_reference
do do
# Extract the first word of "$ac_prog", so it can be a program name with args. # Extract the first word of "$ac_prog", so it can be a program name with args.
set dummy $ac_prog; ac_word=$2 set dummy $ac_prog; ac_word=$2
echo "$as_me:7713: checking for $ac_word" >&5 echo "$as_me:7715: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
if test "${ac_cv_path_XTERM_PATH+set}" = set; then if test "${ac_cv_path_XTERM_PATH+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6 echo $ECHO_N "(cached) $ECHO_C" >&6
else else
case $XTERM_PATH in case $XTERM_PATH in
[\\/]* | ?:[\\/]*) [\\/]* | ?:[\\/]*)
ac_cv_path_XTERM_PATH="$XTERM_PATH" # Let the user override the test with a pa th. ac_cv_path_XTERM_PATH="$XTERM_PATH" # Let the user override the test with a pa th.
;; ;;
*) *)
ac_save_IFS=$IFS; IFS=$ac_path_separator ac_save_IFS=$IFS; IFS=$ac_path_separator
ac_dummy="$PATH" ac_dummy="$PATH"
for ac_dir in $ac_dummy; do for ac_dir in $ac_dummy; do
IFS=$ac_save_IFS IFS=$ac_save_IFS
test -z "$ac_dir" && ac_dir=. test -z "$ac_dir" && ac_dir=.
if $as_executable_p "$ac_dir/$ac_word"; then if $as_executable_p "$ac_dir/$ac_word"; then
ac_cv_path_XTERM_PATH="$ac_dir/$ac_word" ac_cv_path_XTERM_PATH="$ac_dir/$ac_word"
echo "$as_me:7730: found $ac_dir/$ac_word" >&5 echo "$as_me:7732: found $ac_dir/$ac_word" >&5
break break
fi fi
done done
;; ;;
esac esac
fi fi
XTERM_PATH=$ac_cv_path_XTERM_PATH XTERM_PATH=$ac_cv_path_XTERM_PATH
if test -n "$XTERM_PATH"; then if test -n "$XTERM_PATH"; then
echo "$as_me:7741: result: $XTERM_PATH" >&5 echo "$as_me:7743: result: $XTERM_PATH" >&5
echo "${ECHO_T}$XTERM_PATH" >&6 echo "${ECHO_T}$XTERM_PATH" >&6
else else
echo "$as_me:7744: result: no" >&5 echo "$as_me:7746: result: no" >&5
echo "${ECHO_T}no" >&6 echo "${ECHO_T}no" >&6
fi fi
test -n "$XTERM_PATH" && break test -n "$XTERM_PATH" && break
done done
test -n "$XTERM_PATH" || XTERM_PATH="$XTERM_PATH" test -n "$XTERM_PATH" || XTERM_PATH="$XTERM_PATH"
cf_path_prog="" cf_path_prog=""
cf_path_args="" cf_path_args=""
IFS="${IFS:- }"; cf_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR" IFS="${IFS:- }"; cf_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR"
skipping to change at line 7803 skipping to change at line 7805
elif test -z "$cf_path_args" ; then elif test -z "$cf_path_args" ; then
cf_path_args="$cf_temp" cf_path_args="$cf_temp"
else else
cf_path_args="$cf_path_args $cf_temp" cf_path_args="$cf_path_args $cf_temp"
fi fi
done done
IFS="$cf_save_ifs" IFS="$cf_save_ifs"
if test -n "$cf_path_prog" ; then if test -n "$cf_path_prog" ; then
echo "${as_me:-configure}:7803: testing defining path for ${cf_path_prog} ..." 1 >&5 echo "${as_me:-configure}:7805: testing defining path for ${cf_path_prog} ..." 1 >&5
cat >>confdefs.h <<EOF cat >>confdefs.h <<EOF
#define XTERM_PATH_PATH "$cf_path_prog" #define XTERM_PATH_PATH "$cf_path_prog"
EOF EOF
test -n "$cf_path_args" && test -n "$cf_path_args" &&
cat >>confdefs.h <<EOF cat >>confdefs.h <<EOF
#define XTERM_PATH_ARGS "$cf_path_args" #define XTERM_PATH_ARGS "$cf_path_args"
EOF EOF
fi fi
# If any of --program-prefix, --program-suffix or --program-transform-name is # If any of --program-prefix, --program-suffix or --program-transform-name is
# given, accept an option tell the makefile to create a symbolic link, e.g., # given, accept an option tell the makefile to create a symbolic link, e.g.,
# to "xterm" on install. # to "xterm" on install.
XTERM_SYMLINK=NONE XTERM_SYMLINK=NONE
if test "$program_transform_name" != "'s,,,'" ; then if test "$program_transform_name" != "'s,,,'" ; then
cf_name=`echo "$program_transform_name" | sed -e 's,\\$\\$,$,g'` cf_name=`echo "$program_transform_name" | sed -e 's,\\$\\$,$,g'`
cf_name=`echo xterm |sed -e "$cf_name"` cf_name=`echo xterm |sed -e "$cf_name"`
echo "$as_me:7824: checking for symbolic link to create to $cf_name" >&5 echo "$as_me:7826: checking for symbolic link to create to $cf_name" >&5
echo $ECHO_N "checking for symbolic link to create to $cf_name... $ECHO_C" >&6 echo $ECHO_N "checking for symbolic link to create to $cf_name... $ECHO_C" >&6
# Check whether --with-xterm-symlink or --without-xterm-symlink was given. # Check whether --with-xterm-symlink or --without-xterm-symlink was given.
if test "${with_xterm_symlink+set}" = set; then if test "${with_xterm_symlink+set}" = set; then
withval="$with_xterm_symlink" withval="$with_xterm_symlink"
with_symlink=$withval with_symlink=$withval
else else
with_symlink=xterm with_symlink=xterm
fi; fi;
echo "$as_me:7834: result: $with_symlink" >&5 echo "$as_me:7836: result: $with_symlink" >&5
echo "${ECHO_T}$with_symlink" >&6 echo "${ECHO_T}$with_symlink" >&6
test "$with_symlink" = yes && with_symlink=xterm test "$with_symlink" = yes && with_symlink=xterm
test -n "$with_symlink" && \ test -n "$with_symlink" && \
test "$with_symlink" != no && \ test "$with_symlink" != no && \
test "$with_symlink" != "$cf_name" && \ test "$with_symlink" != "$cf_name" && \
XTERM_SYMLINK="$with_symlink" XTERM_SYMLINK="$with_symlink"
fi fi
echo "$as_me:7843: checking if you want to disable openpty" >&5 echo "$as_me:7845: checking if you want to disable openpty" >&5
echo $ECHO_N "checking if you want to disable openpty... $ECHO_C" >&6 echo $ECHO_N "checking if you want to disable openpty... $ECHO_C" >&6
# Check whether --enable-openpty or --disable-openpty was given. # Check whether --enable-openpty or --disable-openpty was given.
if test "${enable_openpty+set}" = set; then if test "${enable_openpty+set}" = set; then
enableval="$enable_openpty" enableval="$enable_openpty"
test "$enableval" != no && enableval=yes test "$enableval" != no && enableval=yes
if test "$enableval" != "yes" ; then if test "$enableval" != "yes" ; then
disable_openpty=yes disable_openpty=yes
else else
disable_openpty=no disable_openpty=no
fi fi
else else
enableval=yes enableval=yes
disable_openpty=no disable_openpty=no
fi; fi;
echo "$as_me:7860: result: $disable_openpty" >&5 echo "$as_me:7862: result: $disable_openpty" >&5
echo "${ECHO_T}$disable_openpty" >&6 echo "${ECHO_T}$disable_openpty" >&6
echo "$as_me:7863: checking if you want to disable setuid" >&5 echo "$as_me:7865: checking if you want to disable setuid" >&5
echo $ECHO_N "checking if you want to disable setuid... $ECHO_C" >&6 echo $ECHO_N "checking if you want to disable setuid... $ECHO_C" >&6
# Check whether --enable-setuid or --disable-setuid was given. # Check whether --enable-setuid or --disable-setuid was given.
if test "${enable_setuid+set}" = set; then if test "${enable_setuid+set}" = set; then
enableval="$enable_setuid" enableval="$enable_setuid"
test "$enableval" != no && enableval=yes test "$enableval" != no && enableval=yes
if test "$enableval" != "yes" ; then if test "$enableval" != "yes" ; then
disable_setuid=yes disable_setuid=yes
else else
disable_setuid=no disable_setuid=no
fi fi
else else
enableval=yes enableval=yes
disable_setuid=no disable_setuid=no
fi; fi;
echo "$as_me:7880: result: $disable_setuid" >&5 echo "$as_me:7882: result: $disable_setuid" >&5
echo "${ECHO_T}$disable_setuid" >&6 echo "${ECHO_T}$disable_setuid" >&6
echo "$as_me:7883: checking if you want to disable setgid" >&5 echo "$as_me:7885: checking if you want to disable setgid" >&5
echo $ECHO_N "checking if you want to disable setgid... $ECHO_C" >&6 echo $ECHO_N "checking if you want to disable setgid... $ECHO_C" >&6
# Check whether --enable-setgid or --disable-setgid was given. # Check whether --enable-setgid or --disable-setgid was given.
if test "${enable_setgid+set}" = set; then if test "${enable_setgid+set}" = set; then
enableval="$enable_setgid" enableval="$enable_setgid"
test "$enableval" != no && enableval=yes test "$enableval" != no && enableval=yes
if test "$enableval" != "yes" ; then if test "$enableval" != "yes" ; then
disable_setgid=yes disable_setgid=yes
else else
disable_setgid=no disable_setgid=no
fi fi
else else
enableval=yes enableval=yes
disable_setgid=no disable_setgid=no
fi; fi;
echo "$as_me:7900: result: $disable_setgid" >&5 echo "$as_me:7902: result: $disable_setgid" >&5
echo "${ECHO_T}$disable_setgid" >&6 echo "${ECHO_T}$disable_setgid" >&6
echo "$as_me:7903: checking if you want to run xterm setuid to a given user" >&5 echo "$as_me:7905: checking if you want to run xterm setuid to a given user" >&5
echo $ECHO_N "checking if you want to run xterm setuid to a given user... $ECHO_ C" >&6 echo $ECHO_N "checking if you want to run xterm setuid to a given user... $ECHO_ C" >&6
# Check whether --with-setuid or --without-setuid was given. # Check whether --with-setuid or --without-setuid was given.
if test "${with_setuid+set}" = set; then if test "${with_setuid+set}" = set; then
withval="$with_setuid" withval="$with_setuid"
use_given_setuid=$withval use_given_setuid=$withval
else else
use_given_setuid=no use_given_setuid=no
fi; fi;
echo "$as_me:7913: result: $use_given_setuid" >&5 echo "$as_me:7915: result: $use_given_setuid" >&5
echo "${ECHO_T}$use_given_setuid" >&6 echo "${ECHO_T}$use_given_setuid" >&6
if test "$use_given_setuid" != no ; then if test "$use_given_setuid" != no ; then
if test "$use_given_setuid" = yes ; then if test "$use_given_setuid" = yes ; then
cf_cv_given_setuid=root cf_cv_given_setuid=root
else else
cf_cv_given_setuid=$use_given_setuid cf_cv_given_setuid=$use_given_setuid
fi fi
# inherit SINSTALL_OPTS from environment to allow packager to customize i t. # inherit SINSTALL_OPTS from environment to allow packager to customize i t.
SINSTALL_OPTS="$SINSTALL_OPTS u+s -u $cf_cv_given_setuid" SINSTALL_OPTS="$SINSTALL_OPTS u+s -u $cf_cv_given_setuid"
fi fi
echo "$as_me:7926: checking if you want to run xterm setgid to match utmp/utmpx file" >&5 echo "$as_me:7928: checking if you want to run xterm setgid to match utmp/utmpx file" >&5
echo $ECHO_N "checking if you want to run xterm setgid to match utmp/utmpx file. .. $ECHO_C" >&6 echo $ECHO_N "checking if you want to run xterm setgid to match utmp/utmpx file. .. $ECHO_C" >&6
# Check whether --with-utmp-setgid or --without-utmp-setgid was given. # Check whether --with-utmp-setgid or --without-utmp-setgid was given.
if test "${with_utmp_setgid+set}" = set; then if test "${with_utmp_setgid+set}" = set; then
withval="$with_utmp_setgid" withval="$with_utmp_setgid"
use_utmp_setgid=$withval use_utmp_setgid=$withval
else else
use_utmp_setgid=no use_utmp_setgid=no
fi; fi;
echo "$as_me:7936: result: $use_utmp_setgid" >&5 echo "$as_me:7938: result: $use_utmp_setgid" >&5
echo "${ECHO_T}$use_utmp_setgid" >&6 echo "${ECHO_T}$use_utmp_setgid" >&6
if test "$use_utmp_setgid" != no ; then if test "$use_utmp_setgid" != no ; then
if test "$use_utmp_setgid" = yes ; then if test "$use_utmp_setgid" = yes ; then
if test $cf_cv_have_utmp != no ; then if test $cf_cv_have_utmp != no ; then
echo "$as_me:7943: checking for utmp/utmpx group" >&5 echo "$as_me:7945: checking for utmp/utmpx group" >&5
echo $ECHO_N "checking for utmp/utmpx group... $ECHO_C" >&6 echo $ECHO_N "checking for utmp/utmpx group... $ECHO_C" >&6
if test "${cf_cv_utmp_group+set}" = set; then if test "${cf_cv_utmp_group+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6 echo $ECHO_N "(cached) $ECHO_C" >&6
else else
for cf_utmp_path in /var/adm /var/run for cf_utmp_path in /var/adm /var/run
do do
for cf_utmp_file in utmpx utmp for cf_utmp_file in utmpx utmp
do do
if test -f $cf_utmp_path/$cf_utmp_file if test -f $cf_utmp_path/$cf_utmp_file
skipping to change at line 7985 skipping to change at line 7987
cf_cv_utmp_group=$cf_grp; cf_cv_utmp_group=$cf_grp;
fi fi
fi fi
break break
fi fi
done done
test -n "$cf_cv_utmp_group" && break test -n "$cf_cv_utmp_group" && break
done done
fi fi
echo "$as_me:7985: result: $cf_cv_utmp_group" >&5 echo "$as_me:7987: result: $cf_cv_utmp_group" >&5
echo "${ECHO_T}$cf_cv_utmp_group" >&6 echo "${ECHO_T}$cf_cv_utmp_group" >&6
else else
{ { echo "$as_me:7988: error: cannot find utmp group" >&5 { { echo "$as_me:7990: error: cannot find utmp group" >&5
echo "$as_me: error: cannot find utmp group" >&2;} echo "$as_me: error: cannot find utmp group" >&2;}
{ (exit 1); exit 1; }; } { (exit 1); exit 1; }; }
fi fi
else else
cf_cv_utmp_group=$use_utmp_setgid cf_cv_utmp_group=$use_utmp_setgid
fi fi
if test "$cf_cv_posix_saved_ids" != yes ; then if test "$cf_cv_posix_saved_ids" != yes ; then
{ { echo "$as_me:7997: error: Your system does not support POSIX saved-ids" >&5 { { echo "$as_me:7999: error: Your system does not support POSIX saved-ids" >&5
echo "$as_me: error: Your system does not support POSIX saved-ids" >&2;} echo "$as_me: error: Your system does not support POSIX saved-ids" >&2;}
{ (exit 1); exit 1; }; } { (exit 1); exit 1; }; }
fi fi
cat >>confdefs.h <<\EOF cat >>confdefs.h <<\EOF
#define USE_UTMP_SETGID 1 #define USE_UTMP_SETGID 1
EOF EOF
SINSTALL_OPTS="$SINSTALL_OPTS g+s -g $cf_cv_utmp_group" SINSTALL_OPTS="$SINSTALL_OPTS g+s -g $cf_cv_utmp_group"
fi fi
echo "$as_me:8009: checking if you want to link with utempter" >&5 echo "$as_me:8011: checking if you want to link with utempter" >&5
echo $ECHO_N "checking if you want to link with utempter... $ECHO_C" >&6 echo $ECHO_N "checking if you want to link with utempter... $ECHO_C" >&6
# Check whether --with-utempter or --without-utempter was given. # Check whether --with-utempter or --without-utempter was given.
if test "${with_utempter+set}" = set; then if test "${with_utempter+set}" = set; then
withval="$with_utempter" withval="$with_utempter"
use_utempter=$withval use_utempter=$withval
else else
use_utempter=no use_utempter=no
fi; fi;
echo "$as_me:8019: result: $use_utempter" >&5 echo "$as_me:8021: result: $use_utempter" >&5
echo "${ECHO_T}$use_utempter" >&6 echo "${ECHO_T}$use_utempter" >&6
if test "$use_utempter" = yes ; then if test "$use_utempter" = yes ; then
echo "$as_me:8024: checking if we can link with utempter library" >&5 echo "$as_me:8026: checking if we can link with utempter library" >&5
echo $ECHO_N "checking if we can link with utempter library... $ECHO_C" >&6 echo $ECHO_N "checking if we can link with utempter library... $ECHO_C" >&6
if test "${cf_cv_have_utempter+set}" = set; then if test "${cf_cv_have_utempter+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6 echo $ECHO_N "(cached) $ECHO_C" >&6
else else
cf_save_LIBS="$LIBS" cf_save_LIBS="$LIBS"
cf_add_libs="$LIBS" cf_add_libs="$LIBS"
# reverse order # reverse order
cf_add_0lib= cf_add_0lib=
skipping to change at line 8049 skipping to change at line 8051
if test "x$cf_add_1lib" = "x$cf_add_2lib"; then if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
cf_add_1lib= cf_add_1lib=
break break
fi fi
done done
test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs" test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
done done
LIBS="$cf_add_libs" LIBS="$cf_add_libs"
cat >"conftest.$ac_ext" <<_ACEOF cat >"conftest.$ac_ext" <<_ACEOF
#line 8049 "configure" #line 8051 "configure"
#include "confdefs.h" #include "confdefs.h"
#include <utempter.h> #include <utempter.h>
int int
main (void) main (void)
{ {
addToUtmp("/dev/tty", 0, 1); addToUtmp("/dev/tty", 0, 1);
removeFromUtmp(); removeFromUtmp();
; ;
return 0; return 0;
} }
_ACEOF _ACEOF
rm -f "conftest.$ac_objext" "conftest$ac_exeext" rm -f "conftest.$ac_objext" "conftest$ac_exeext"
if { (eval echo "$as_me:8066: \"$ac_link\"") >&5 if { (eval echo "$as_me:8068: \"$ac_link\"") >&5
(eval $ac_link) 2>&5 (eval $ac_link) 2>&5
ac_status=$? ac_status=$?
echo "$as_me:8069: \$? = $ac_status" >&5 echo "$as_me:8071: \$? = $ac_status" >&5
(exit "$ac_status"); } && (exit "$ac_status"); } &&
{ ac_try='test -s "conftest$ac_exeext"' { ac_try='test -s "conftest$ac_exeext"'
{ (eval echo "$as_me:8072: \"$ac_try\"") >&5 { (eval echo "$as_me:8074: \"$ac_try\"") >&5
(eval $ac_try) 2>&5 (eval $ac_try) 2>&5
ac_status=$? ac_status=$?
echo "$as_me:8075: \$? = $ac_status" >&5 echo "$as_me:8077: \$? = $ac_status" >&5
(exit "$ac_status"); }; }; then (exit "$ac_status"); }; }; then
cf_cv_have_utempter=yes cf_cv_have_utempter=yes
else else
echo "$as_me: failed program was:" >&5 echo "$as_me: failed program was:" >&5
cat "conftest.$ac_ext" >&5 cat "conftest.$ac_ext" >&5
cf_cv_have_utempter=no cf_cv_have_utempter=no
fi fi
rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext" rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
LIBS="$cf_save_LIBS" LIBS="$cf_save_LIBS"
fi fi
echo "$as_me:8089: result: $cf_cv_have_utempter" >&5 echo "$as_me:8091: result: $cf_cv_have_utempter" >&5
echo "${ECHO_T}$cf_cv_have_utempter" >&6 echo "${ECHO_T}$cf_cv_have_utempter" >&6
if test "$cf_cv_have_utempter" = yes ; then if test "$cf_cv_have_utempter" = yes ; then
cat >>confdefs.h <<\EOF cat >>confdefs.h <<\EOF
#define USE_UTEMPTER 1 #define USE_UTEMPTER 1
EOF EOF
cf_add_libs="$LIBS" cf_add_libs="$LIBS"
# reverse order # reverse order
cf_add_0lib= cf_add_0lib=
skipping to change at line 8127 skipping to change at line 8129
use_utempter=no use_utempter=no
fi fi
# Some configurations permit (or require) either setuid or setgid mode. # Some configurations permit (or require) either setuid or setgid mode.
# Let the user decide. # Let the user decide.
if test "$use_utempter" = yes ; then if test "$use_utempter" = yes ; then
if test "${enable_setuid+set}" != set ; then if test "${enable_setuid+set}" != set ; then
disable_setuid=yes disable_setuid=yes
test -n "$verbose" && echo " No --disable-setuid option given, force to yes" 1>&6 test -n "$verbose" && echo " No --disable-setuid option given, force to yes" 1>&6
echo "${as_me:-configure}:8127: testing No --disable-setuid option given, force to yes ..." 1>&5 echo "${as_me:-configure}:8129: testing No --disable-setuid option given, force to yes ..." 1>&5
fi fi
fi fi
### checks for external data ### checks for external data
echo "$as_me:8134: checking if external errno is declared" >&5 echo "$as_me:8136: checking if external errno is declared" >&5
echo $ECHO_N "checking if external errno is declared... $ECHO_C" >&6 echo $ECHO_N "checking if external errno is declared... $ECHO_C" >&6
if test "${cf_cv_dcl_errno+set}" = set; then if test "${cf_cv_dcl_errno+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6 echo $ECHO_N "(cached) $ECHO_C" >&6
else else
cat >"conftest.$ac_ext" <<_ACEOF cat >"conftest.$ac_ext" <<_ACEOF
#line 8141 "configure" #line 8143 "configure"
#include "confdefs.h" #include "confdefs.h"
#ifdef HAVE_STDLIB_H #ifdef HAVE_STDLIB_H
#include <stdlib.h> #include <stdlib.h>
#endif #endif
#include <stdio.h> #include <stdio.h>
#include <sys/types.h> #include <sys/types.h>
#include <errno.h> #include <errno.h>
int int
main (void) main (void)
{ {
int x = (int) errno; (void)x int x = (int) errno; (void)x
; ;
return 0; return 0;
} }
_ACEOF _ACEOF
rm -f "conftest.$ac_objext" rm -f "conftest.$ac_objext"
if { (eval echo "$as_me:8159: \"$ac_compile\"") >&5 if { (eval echo "$as_me:8161: \"$ac_compile\"") >&5
(eval $ac_compile) 2>&5 (eval $ac_compile) 2>&5
ac_status=$? ac_status=$?
echo "$as_me:8162: \$? = $ac_status" >&5 echo "$as_me:8164: \$? = $ac_status" >&5
(exit "$ac_status"); } && (exit "$ac_status"); } &&
{ ac_try='test -s "conftest.$ac_objext"' { ac_try='test -s "conftest.$ac_objext"'
{ (eval echo "$as_me:8165: \"$ac_try\"") >&5 { (eval echo "$as_me:8167: \"$ac_try\"") >&5
(eval $ac_try) 2>&5 (eval $ac_try) 2>&5
ac_status=$? ac_status=$?
echo "$as_me:8168: \$? = $ac_status" >&5 echo "$as_me:8170: \$? = $ac_status" >&5
(exit "$ac_status"); }; }; then (exit "$ac_status"); }; }; then
cf_cv_dcl_errno=yes cf_cv_dcl_errno=yes
else else
echo "$as_me: failed program was:" >&5 echo "$as_me: failed program was:" >&5
cat "conftest.$ac_ext" >&5 cat "conftest.$ac_ext" >&5
cf_cv_dcl_errno=no cf_cv_dcl_errno=no
fi fi
rm -f "conftest.$ac_objext" "conftest.$ac_ext" rm -f "conftest.$ac_objext" "conftest.$ac_ext"
fi fi
echo "$as_me:8179: result: $cf_cv_dcl_errno" >&5 echo "$as_me:8181: result: $cf_cv_dcl_errno" >&5
echo "${ECHO_T}$cf_cv_dcl_errno" >&6 echo "${ECHO_T}$cf_cv_dcl_errno" >&6
if test "$cf_cv_dcl_errno" = no ; then if test "$cf_cv_dcl_errno" = no ; then
cf_result=`echo "decl_errno" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLM NOPQRSTUVWXYZ___%` cf_result=`echo "decl_errno" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLM NOPQRSTUVWXYZ___%`
cat >>confdefs.h <<EOF cat >>confdefs.h <<EOF
#define $cf_result 1 #define $cf_result 1
EOF EOF
fi fi
# It's possible (for near-UNIX clones) that the data doesn't exist # It's possible (for near-UNIX clones) that the data doesn't exist
echo "$as_me:8194: checking if external errno exists" >&5 echo "$as_me:8196: checking if external errno exists" >&5
echo $ECHO_N "checking if external errno exists... $ECHO_C" >&6 echo $ECHO_N "checking if external errno exists... $ECHO_C" >&6
if test "${cf_cv_have_errno+set}" = set; then if test "${cf_cv_have_errno+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6 echo $ECHO_N "(cached) $ECHO_C" >&6
else else
cat >"conftest.$ac_ext" <<_ACEOF cat >"conftest.$ac_ext" <<_ACEOF
#line 8201 "configure" #line 8203 "configure"
#include "confdefs.h" #include "confdefs.h"
#undef errno #undef errno
extern int errno; extern int errno;
int int
main (void) main (void)
{ {
errno = 2 errno = 2
; ;
return 0; return 0;
} }
_ACEOF _ACEOF
rm -f "conftest.$ac_objext" "conftest$ac_exeext" rm -f "conftest.$ac_objext" "conftest$ac_exeext"
if { (eval echo "$as_me:8216: \"$ac_link\"") >&5 if { (eval echo "$as_me:8218: \"$ac_link\"") >&5
(eval $ac_link) 2>&5 (eval $ac_link) 2>&5
ac_status=$? ac_status=$?
echo "$as_me:8219: \$? = $ac_status" >&5 echo "$as_me:8221: \$? = $ac_status" >&5
(exit "$ac_status"); } && (exit "$ac_status"); } &&
{ ac_try='test -s "conftest$ac_exeext"' { ac_try='test -s "conftest$ac_exeext"'
{ (eval echo "$as_me:8222: \"$ac_try\"") >&5 { (eval echo "$as_me:8224: \"$ac_try\"") >&5
(eval $ac_try) 2>&5 (eval $ac_try) 2>&5
ac_status=$? ac_status=$?
echo "$as_me:8225: \$? = $ac_status" >&5 echo "$as_me:8227: \$? = $ac_status" >&5
(exit "$ac_status"); }; }; then (exit "$ac_status"); }; }; then
cf_cv_have_errno=yes cf_cv_have_errno=yes
else else
echo "$as_me: failed program was:" >&5 echo "$as_me: failed program was:" >&5
cat "conftest.$ac_ext" >&5 cat "conftest.$ac_ext" >&5
cf_cv_have_errno=no cf_cv_have_errno=no
fi fi
rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext" rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
fi fi
echo "$as_me:8236: result: $cf_cv_have_errno" >&5 echo "$as_me:8238: result: $cf_cv_have_errno" >&5
echo "${ECHO_T}$cf_cv_have_errno" >&6 echo "${ECHO_T}$cf_cv_have_errno" >&6
if test "$cf_cv_have_errno" = yes ; then if test "$cf_cv_have_errno" = yes ; then
cf_result=`echo "have_errno" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLM NOPQRSTUVWXYZ___%` cf_result=`echo "have_errno" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLM NOPQRSTUVWXYZ___%`
cat >>confdefs.h <<EOF cat >>confdefs.h <<EOF
#define $cf_result 1 #define $cf_result 1
EOF EOF
fi fi
echo "$as_me:8249: checking for explicit tty group name" >&5 echo "$as_me:8251: checking for explicit tty group name" >&5
echo $ECHO_N "checking for explicit tty group name... $ECHO_C" >&6 echo $ECHO_N "checking for explicit tty group name... $ECHO_C" >&6
# Check whether --with-tty-group or --without-tty-group was given. # Check whether --with-tty-group or --without-tty-group was given.
if test "${with_tty_group+set}" = set; then if test "${with_tty_group+set}" = set; then
withval="$with_tty_group" withval="$with_tty_group"
cf_tty_group=$withval cf_tty_group=$withval
else else
cf_tty_group=auto... cf_tty_group=auto...
fi; fi;
test -z "$cf_tty_group" && cf_tty_group=auto... test -z "$cf_tty_group" && cf_tty_group=auto...
test "$cf_tty_group" = yes && cf_tty_group=auto... test "$cf_tty_group" = yes && cf_tty_group=auto...
echo "$as_me:8261: result: $cf_tty_group" >&5 echo "$as_me:8263: result: $cf_tty_group" >&5
echo "${ECHO_T}$cf_tty_group" >&6 echo "${ECHO_T}$cf_tty_group" >&6
if test "$cf_tty_group" = "auto..." ; then if test "$cf_tty_group" = "auto..." ; then
echo "$as_me:8265: checking for tty group name" >&5 echo "$as_me:8267: checking for tty group name" >&5
echo $ECHO_N "checking for tty group name... $ECHO_C" >&6 echo $ECHO_N "checking for tty group name... $ECHO_C" >&6
if test "${cf_cv_tty_group_name+set}" = set; then if test "${cf_cv_tty_group_name+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6 echo $ECHO_N "(cached) $ECHO_C" >&6
else else
# If we are configuring as root, it is hard to get a clue about the tty group. # If we are configuring as root, it is hard to get a clue about the tty group.
# But we'll guess based on how our connection is set up - assuming it is done # But we'll guess based on how our connection is set up - assuming it is done
# properly. # properly.
cf_uid="`id | sed -e 's/^^=*=//' -e 's/(.*$//'`" cf_uid="`id | sed -e 's/^^=*=//' -e 's/(.*$//'`"
skipping to change at line 8318 skipping to change at line 8320
(*) (*)
cf_cv_tty_group_name="unknown" cf_cv_tty_group_name="unknown"
if ( ${EGREP-egrep} '^tty:' /etc/group 2>/dev/null 1>/dev/null ) then if ( ${EGREP-egrep} '^tty:' /etc/group 2>/dev/null 1>/dev/null ) then
cf_cv_tty_group_name="tty" cf_cv_tty_group_name="tty"
fi fi
;; ;;
esac esac
fi fi
fi fi
echo "$as_me:8318: result: $cf_cv_tty_group_name" >&5 echo "$as_me:8320: result: $cf_cv_tty_group_name" >&5
echo "${ECHO_T}$cf_cv_tty_group_name" >&6 echo "${ECHO_T}$cf_cv_tty_group_name" >&6
cf_tty_group="$cf_cv_tty_group_name" cf_tty_group="$cf_cv_tty_group_name"
else else
# if configure option, always do this # if configure option, always do this
cat >>confdefs.h <<\EOF cat >>confdefs.h <<\EOF
#define USE_TTY_GROUP 1 #define USE_TTY_GROUP 1
EOF EOF
fi fi
cat >>confdefs.h <<EOF cat >>confdefs.h <<EOF
#define TTY_GROUP_NAME "$cf_tty_group" #define TTY_GROUP_NAME "$cf_tty_group"
EOF EOF
# This is only a double-check that the group-name we obtained above really # This is only a double-check that the group-name we obtained above really
# does apply to the device. We cannot perform this test if we are in batch # does apply to the device. We cannot perform this test if we are in batch
# mode, or if we are cross-compiling. # mode, or if we are cross-compiling.
echo "$as_me:8338: checking if we may use the $cf_tty_group group" >&5 echo "$as_me:8340: checking if we may use the $cf_tty_group group" >&5
echo $ECHO_N "checking if we may use the $cf_tty_group group... $ECHO_C" >&6 echo $ECHO_N "checking if we may use the $cf_tty_group group... $ECHO_C" >&6
if test "${cf_cv_tty_group+set}" = set; then if test "${cf_cv_tty_group+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6 echo $ECHO_N "(cached) $ECHO_C" >&6
else else
cf_tty_name="`tty`" cf_tty_name="`tty`"
if test "$cf_tty_name" != "not a tty" if test "$cf_tty_name" != "not a tty"
then then
if test "$cross_compiling" = yes; then if test "$cross_compiling" = yes; then
cf_cv_tty_group=unknown cf_cv_tty_group=unknown
else else
cat >"conftest.$ac_ext" <<_ACEOF cat >"conftest.$ac_ext" <<_ACEOF
#line 8351 "configure" #line 8353 "configure"
#include "confdefs.h" #include "confdefs.h"
#include <unistd.h> #include <unistd.h>
#include <sys/types.h> #include <sys/types.h>
#include <sys/stat.h> #include <sys/stat.h>
#include <grp.h> #include <grp.h>
int main(void) int main(void)
{ {
struct stat sb; struct stat sb;
struct group *ttygrp; struct group *ttygrp;
skipping to change at line 8387 skipping to change at line 8389
&& stat(name, &sb) == 0 && stat(name, &sb) == 0
&& sb.st_gid != getgid() && sb.st_gid != getgid()
&& sb.st_gid == ttygrp->gr_gid) { && sb.st_gid == ttygrp->gr_gid) {
${cf_cv_main_return:-return} (0); ${cf_cv_main_return:-return} (0);
} }
${cf_cv_main_return:-return} (1); ${cf_cv_main_return:-return} (1);
} }
_ACEOF _ACEOF
rm -f "conftest$ac_exeext" rm -f "conftest$ac_exeext"
if { (eval echo "$as_me:8387: \"$ac_link\"") >&5 if { (eval echo "$as_me:8389: \"$ac_link\"") >&5
(eval $ac_link) 2>&5 (eval $ac_link) 2>&5
ac_status=$? ac_status=$?
echo "$as_me:8390: \$? = $ac_status" >&5 echo "$as_me:8392: \$? = $ac_status" >&5
(exit "$ac_status"); } && { ac_try='"./conftest$ac_exeext"' (exit "$ac_status"); } && { ac_try='"./conftest$ac_exeext"'
{ (eval echo "$as_me:8392: \"$ac_try\"") >&5 { (eval echo "$as_me:8394: \"$ac_try\"") >&5
(eval $ac_try) 2>&5 (eval $ac_try) 2>&5
ac_status=$? ac_status=$?
echo "$as_me:8395: \$? = $ac_status" >&5 echo "$as_me:8397: \$? = $ac_status" >&5
(exit "$ac_status"); }; }; then (exit "$ac_status"); }; }; then
cf_cv_tty_group=yes cf_cv_tty_group=yes
else else
echo "$as_me: program exited with status $ac_status" >&5 echo "$as_me: program exited with status $ac_status" >&5
echo "$as_me: failed program was:" >&5 echo "$as_me: failed program was:" >&5
cat "conftest.$ac_ext" >&5 cat "conftest.$ac_ext" >&5
cf_cv_tty_group=no cf_cv_tty_group=no
fi fi
rm -f core ./core.* ./*.core "conftest$ac_exeext" "conftest.$ac_objext" "conftes t.$ac_ext" rm -f core ./core.* ./*.core "conftest$ac_exeext" "conftest.$ac_objext" "conftes t.$ac_ext"
fi fi
elif test "$cross_compiling" = yes; then elif test "$cross_compiling" = yes; then
cf_cv_tty_group=unknown cf_cv_tty_group=unknown
else else
cf_cv_tty_group=yes cf_cv_tty_group=yes
fi fi
fi fi
echo "$as_me:8413: result: $cf_cv_tty_group" >&5 echo "$as_me:8415: result: $cf_cv_tty_group" >&5
echo "${ECHO_T}$cf_cv_tty_group" >&6 echo "${ECHO_T}$cf_cv_tty_group" >&6
if test $cf_cv_tty_group = no ; then if test $cf_cv_tty_group = no ; then
{ echo "$as_me:8417: WARNING: Cannot use $cf_tty_group group" >&5 { echo "$as_me:8419: WARNING: Cannot use $cf_tty_group group" >&5
echo "$as_me: WARNING: Cannot use $cf_tty_group group" >&2;} echo "$as_me: WARNING: Cannot use $cf_tty_group group" >&2;}
else else
cat >>confdefs.h <<\EOF cat >>confdefs.h <<\EOF
#define USE_TTY_GROUP 1 #define USE_TTY_GROUP 1
EOF EOF
fi fi
### checks for system services and user specified options ### checks for system services and user specified options
echo "$as_me:8428: checking for X" >&5 echo "$as_me:8430: checking for X" >&5
echo $ECHO_N "checking for X... $ECHO_C" >&6 echo $ECHO_N "checking for X... $ECHO_C" >&6
# Check whether --with-x or --without-x was given. # Check whether --with-x or --without-x was given.
if test "${with_x+set}" = set; then if test "${with_x+set}" = set; then
withval="$with_x" withval="$with_x"
fi; fi;
# $have_x is `yes', `no', `disabled', or empty when we do not yet know. # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
if test "x$with_x" = xno; then if test "x$with_x" = xno; then
# The user explicitly disabled X. # The user explicitly disabled X.
skipping to change at line 8532 skipping to change at line 8534
/usr/local/x11r5/include /usr/local/x11r5/include
/usr/lpp/Xamples/include /usr/lpp/Xamples/include
/usr/openwin/include /usr/openwin/include
/usr/openwin/share/include' /usr/openwin/share/include'
if test "$ac_x_includes" = no; then if test "$ac_x_includes" = no; then
# Guess where to find include files, by looking for Intrinsic.h. # Guess where to find include files, by looking for Intrinsic.h.
# First, try using that file with no special directory specified. # First, try using that file with no special directory specified.
cat >"conftest.$ac_ext" <<_ACEOF cat >"conftest.$ac_ext" <<_ACEOF
#line 8532 "configure" #line 8534 "configure"
#include "confdefs.h" #include "confdefs.h"
#include <X11/Intrinsic.h> #include <X11/Intrinsic.h>
_ACEOF _ACEOF
if { (eval echo "$as_me:8536: \"$ac_cpp "conftest.$ac_ext"\"") >&5 if { (eval echo "$as_me:8538: \"$ac_cpp "conftest.$ac_ext"\"") >&5
(eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1 (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1
ac_status=$? ac_status=$?
$EGREP -v '^ *\+' conftest.er1 >conftest.err $EGREP -v '^ *\+' conftest.er1 >conftest.err
rm -f conftest.er1 rm -f conftest.er1
cat conftest.err >&5 cat conftest.err >&5
echo "$as_me:8542: \$? = $ac_status" >&5 echo "$as_me:8544: \$? = $ac_status" >&5
(exit "$ac_status"); } >/dev/null; then (exit "$ac_status"); } >/dev/null; then
if test -s conftest.err; then if test -s conftest.err; then
ac_cpp_err=$ac_c_preproc_warn_flag ac_cpp_err=$ac_c_preproc_warn_flag
else else
ac_cpp_err= ac_cpp_err=
fi fi
else else
ac_cpp_err=yes ac_cpp_err=yes
fi fi
if test -z "$ac_cpp_err"; then if test -z "$ac_cpp_err"; then
skipping to change at line 8575 skipping to change at line 8577
rm -f conftest.err "conftest.$ac_ext" rm -f conftest.err "conftest.$ac_ext"
fi # $ac_x_includes = no fi # $ac_x_includes = no
if test "$ac_x_libraries" = no; then if test "$ac_x_libraries" = no; then
# Check for the libraries. # Check for the libraries.
# See if we find them without any special options. # See if we find them without any special options.
# Don't add to $LIBS permanently. # Don't add to $LIBS permanently.
ac_save_LIBS=$LIBS ac_save_LIBS=$LIBS
LIBS="-lXt $LIBS" LIBS="-lXt $LIBS"
cat >"conftest.$ac_ext" <<_ACEOF cat >"conftest.$ac_ext" <<_ACEOF
#line 8575 "configure" #line 8577 "configure"
#include "confdefs.h" #include "confdefs.h"
#include <X11/Intrinsic.h> #include <X11/Intrinsic.h>
int int
main (void) main (void)
{ {
XtMalloc (0) XtMalloc (0)
; ;
return 0; return 0;
} }
_ACEOF _ACEOF
rm -f "conftest.$ac_objext" "conftest$ac_exeext" rm -f "conftest.$ac_objext" "conftest$ac_exeext"
if { (eval echo "$as_me:8587: \"$ac_link\"") >&5 if { (eval echo "$as_me:8589: \"$ac_link\"") >&5
(eval $ac_link) 2>&5 (eval $ac_link) 2>&5
ac_status=$? ac_status=$?
echo "$as_me:8590: \$? = $ac_status" >&5 echo "$as_me:8592: \$? = $ac_status" >&5
(exit "$ac_status"); } && (exit "$ac_status"); } &&
{ ac_try='test -s "conftest$ac_exeext"' { ac_try='test -s "conftest$ac_exeext"'
{ (eval echo "$as_me:8593: \"$ac_try\"") >&5 { (eval echo "$as_me:8595: \"$ac_try\"") >&5
(eval $ac_try) 2>&5 (eval $ac_try) 2>&5
ac_status=$? ac_status=$?
echo "$as_me:8596: \$? = $ac_status" >&5 echo "$as_me:8598: \$? = $ac_status" >&5
(exit "$ac_status"); }; }; then (exit "$ac_status"); }; }; then
LIBS=$ac_save_LIBS LIBS=$ac_save_LIBS
# We can link X programs with no special library path. # We can link X programs with no special library path.
ac_x_libraries= ac_x_libraries=
else else
echo "$as_me: failed program was:" >&5 echo "$as_me: failed program was:" >&5
cat "conftest.$ac_ext" >&5 cat "conftest.$ac_ext" >&5
LIBS=$ac_save_LIBS LIBS=$ac_save_LIBS
for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g` for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
do do
skipping to change at line 8634 skipping to change at line 8636
ac_cv_have_x="have_x=yes \ ac_cv_have_x="have_x=yes \
ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries" ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
fi fi
fi fi
fi fi
eval "$ac_cv_have_x" eval "$ac_cv_have_x"
fi # $with_x != no fi # $with_x != no
if test "$have_x" != yes; then if test "$have_x" != yes; then
echo "$as_me:8634: result: $have_x" >&5 echo "$as_me:8636: result: $have_x" >&5
echo "${ECHO_T}$have_x" >&6 echo "${ECHO_T}$have_x" >&6
no_x=yes no_x=yes
else else
# If each of the values was on the command line, it overrides each guess. # If each of the values was on the command line, it overrides each guess.
test "x$x_includes" = xNONE && x_includes=$ac_x_includes test "x$x_includes" = xNONE && x_includes=$ac_x_includes
test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
# Update the cache value to reflect the command line values. # Update the cache value to reflect the command line values.
ac_cv_have_x="have_x=yes \ ac_cv_have_x="have_x=yes \
ac_x_includes=$x_includes ac_x_libraries=$x_libraries" ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
echo "$as_me:8644: result: libraries $x_libraries, headers $x_includes" >&5 echo "$as_me:8646: result: libraries $x_libraries, headers $x_includes" >&5
echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
fi fi
if test "$no_x" = yes; then if test "$no_x" = yes; then
# Not all programs may use this symbol, but it does not hurt to define it. # Not all programs may use this symbol, but it does not hurt to define it.
cat >>confdefs.h <<\EOF cat >>confdefs.h <<\EOF
#define X_DISPLAY_MISSING 1 #define X_DISPLAY_MISSING 1
EOF EOF
skipping to change at line 8671 skipping to change at line 8673
X_CFLAGS="$X_CFLAGS -I$x_includes" X_CFLAGS="$X_CFLAGS -I$x_includes"
fi fi
# It would also be nice to do this for all -L options, not just this one. # It would also be nice to do this for all -L options, not just this one.
if test -n "$x_libraries"; then if test -n "$x_libraries"; then
X_LIBS="$X_LIBS -L$x_libraries" X_LIBS="$X_LIBS -L$x_libraries"
# For Solaris; some versions of Sun CC require a space after -R and # For Solaris; some versions of Sun CC require a space after -R and
# others require no space. Words are not sufficient . . . . # others require no space. Words are not sufficient . . . .
case `(uname -sr) 2>/dev/null` in case `(uname -sr) 2>/dev/null` in
"SunOS 5"*) "SunOS 5"*)
echo "$as_me:8671: checking whether -R must be followed by a space" >&5 echo "$as_me:8673: checking whether -R must be followed by a space" >&5
echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries" ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
cat >"conftest.$ac_ext" <<_ACEOF cat >"conftest.$ac_ext" <<_ACEOF
#line 8675 "configure" #line 8677 "configure"
#include "confdefs.h" #include "confdefs.h"
int int
main (void) main (void)
{ {
; ;
return 0; return 0;
} }
_ACEOF _ACEOF
rm -f "conftest.$ac_objext" "conftest$ac_exeext" rm -f "conftest.$ac_objext" "conftest$ac_exeext"
if { (eval echo "$as_me:8687: \"$ac_link\"") >&5 if { (eval echo "$as_me:8689: \"$ac_link\"") >&5
(eval $ac_link) 2>&5 (eval $ac_link) 2>&5
ac_status=$? ac_status=$?
echo "$as_me:8690: \$? = $ac_status" >&5 echo "$as_me:8692: \$? = $ac_status" >&5
(exit "$ac_status"); } && (exit "$ac_status"); } &&
{ ac_try='test -s "conftest$ac_exeext"' { ac_try='test -s "conftest$ac_exeext"'
{ (eval echo "$as_me:8693: \"$ac_try\"") >&5 { (eval echo "$as_me:8695: \"$ac_try\"") >&5
(eval $ac_try) 2>&5 (eval $ac_try) 2>&5
ac_status=$? ac_status=$?
echo "$as_me:8696: \$? = $ac_status" >&5 echo "$as_me:8698: \$? = $ac_status" >&5
(exit "$ac_status"); }; }; then (exit "$ac_status"); }; }; then
ac_R_nospace=yes ac_R_nospace=yes
else else
echo "$as_me: failed program was:" >&5 echo "$as_me: failed program was:" >&5
cat "conftest.$ac_ext" >&5 cat "conftest.$ac_ext" >&5
ac_R_nospace=no ac_R_nospace=no
fi fi
rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext" rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
if test $ac_R_nospace = yes; then if test $ac_R_nospace = yes; then
echo "$as_me:8706: result: no" >&5 echo "$as_me:8708: result: no" >&5
echo "${ECHO_T}no" >&6 echo "${ECHO_T}no" >&6
X_LIBS="$X_LIBS -R$x_libraries" X_LIBS="$X_LIBS -R$x_libraries"
else else
LIBS="$ac_xsave_LIBS -R $x_libraries" LIBS="$ac_xsave_LIBS -R $x_libraries"
cat >"conftest.$ac_ext" <<_ACEOF cat >"conftest.$ac_ext" <<_ACEOF
#line 8712 "configure" #line 8714 "configure"
#include "confdefs.h" #include "confdefs.h"
int int
main (void) main (void)
{ {
; ;
return 0; return 0;
} }
_ACEOF _ACEOF
rm -f "conftest.$ac_objext" "conftest$ac_exeext" rm -f "conftest.$ac_objext" "conftest$ac_exeext"
if { (eval echo "$as_me:8724: \"$ac_link\"") >&5 if { (eval echo "$as_me:8726: \"$ac_link\"") >&5
(eval $ac_link) 2>&5 (eval $ac_link) 2>&5
ac_status=$? ac_status=$?
echo "$as_me:8727: \$? = $ac_status" >&5 echo "$as_me:8729: \$? = $ac_status" >&5
(exit "$ac_status"); } && (exit "$ac_status"); } &&
{ ac_try='test -s "conftest$ac_exeext"' { ac_try='test -s "conftest$ac_exeext"'
{ (eval echo "$as_me:8730: \"$ac_try\"") >&5 { (eval echo "$as_me:8732: \"$ac_try\"") >&5
(eval $ac_try) 2>&5 (eval $ac_try) 2>&5
ac_status=$? ac_status=$?
echo "$as_me:8733: \$? = $ac_status" >&5 echo "$as_me:8735: \$? = $ac_status" >&5
(exit "$ac_status"); }; }; then (exit "$ac_status"); }; }; then
ac_R_space=yes ac_R_space=yes
else else
echo "$as_me: failed program was:" >&5 echo "$as_me: failed program was:" >&5
cat "conftest.$ac_ext" >&5 cat "conftest.$ac_ext" >&5
ac_R_space=no ac_R_space=no
fi fi
rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext" rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
if test $ac_R_space = yes; then if test $ac_R_space = yes; then
echo "$as_me:8743: result: yes" >&5 echo "$as_me:8745: result: yes" >&5
echo "${ECHO_T}yes" >&6 echo "${ECHO_T}yes" >&6
X_LIBS="$X_LIBS -R $x_libraries" X_LIBS="$X_LIBS -R $x_libraries"
else else
echo "$as_me:8747: result: neither works" >&5 echo "$as_me:8749: result: neither works" >&5
echo "${ECHO_T}neither works" >&6 echo "${ECHO_T}neither works" >&6
fi fi
fi fi
LIBS=$ac_xsave_LIBS LIBS=$ac_xsave_LIBS
esac esac
fi fi
# Check for system-dependent libraries X programs must link with. # Check for system-dependent libraries X programs must link with.
# Do this before checking for the system-independent R6 libraries # Do this before checking for the system-independent R6 libraries
# (-lICE), since we may need -lsocket or whatever for X linking. # (-lICE), since we may need -lsocket or whatever for X linking.
if test "$ISC" = yes; then if test "$ISC" = yes; then
X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet" X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
else else
# Martyn Johnson says this is needed for Ultrix, if the X # Martyn Johnson says this is needed for Ultrix, if the X
# libraries were built with DECnet support. And Karl Berry says # libraries were built with DECnet support. And Karl Berry says
# the Alpha needs dnet_stub (dnet does not exist). # the Alpha needs dnet_stub (dnet does not exist).
ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11" ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
cat >"conftest.$ac_ext" <<_ACEOF cat >"conftest.$ac_ext" <<_ACEOF
#line 8767 "configure" #line 8769 "configure"
#include "confdefs.h" #include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error. */ /* Override any gcc2 internal prototype to avoid an error. */
#ifdef __cplusplus #ifdef __cplusplus
extern "C" extern "C"
#endif #endif
/* We use char because int might match the return type of a gcc2 /* We use char because int might match the return type of a gcc2
builtin and then its argument prototype would still apply. */ builtin and then its argument prototype would still apply. */
char XOpenDisplay (); char XOpenDisplay ();
int int
main (void) main (void)
{ {
XOpenDisplay (); XOpenDisplay ();
; ;
return 0; return 0;
} }
_ACEOF _ACEOF
rm -f "conftest.$ac_objext" "conftest$ac_exeext" rm -f "conftest.$ac_objext" "conftest$ac_exeext"
if { (eval echo "$as_me:8786: \"$ac_link\"") >&5 if { (eval echo "$as_me:8788: \"$ac_link\"") >&5
(eval $ac_link) 2>&5 (eval $ac_link) 2>&5
ac_status=$? ac_status=$?
echo "$as_me:8789: \$? = $ac_status" >&5 echo "$as_me:8791: \$? = $ac_status" >&5
(exit "$ac_status"); } && (exit "$ac_status"); } &&
{ ac_try='test -s "conftest$ac_exeext"' { ac_try='test -s "conftest$ac_exeext"'
{ (eval echo "$as_me:8792: \"$ac_try\"") >&5 { (eval echo "$as_me:8794: \"$ac_try\"") >&5
(eval $ac_try) 2>&5 (eval $ac_try) 2>&5
ac_status=$? ac_status=$?
echo "$as_me:8795: \$? = $ac_status" >&5 echo "$as_me:8797: \$? = $ac_status" >&5
(exit "$ac_status"); }; }; then (exit "$ac_status"); }; }; then
: :
else else
echo "$as_me: failed program was:" >&5 echo "$as_me: failed program was:" >&5
cat "conftest.$ac_ext" >&5 cat "conftest.$ac_ext" >&5
echo "$as_me:8801: checking for dnet_ntoa in -ldnet" >&5 echo "$as_me:8803: checking for dnet_ntoa in -ldnet" >&5
echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6 echo $ECHO_N "(cached) $ECHO_C" >&6
else else
ac_check_lib_save_LIBS=$LIBS ac_check_lib_save_LIBS=$LIBS
LIBS="-ldnet $LIBS" LIBS="-ldnet $LIBS"
cat >"conftest.$ac_ext" <<_ACEOF cat >"conftest.$ac_ext" <<_ACEOF
#line 8809 "configure" #line 8811 "configure"
#include "confdefs.h" #include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error. */ /* Override any gcc2 internal prototype to avoid an error. */
#ifdef __cplusplus #ifdef __cplusplus
extern "C" extern "C"
#endif #endif
/* We use char because int might match the return type of a gcc2 /* We use char because int might match the return type of a gcc2
builtin and then its argument prototype would still apply. */ builtin and then its argument prototype would still apply. */
char dnet_ntoa (); char dnet_ntoa ();
int int
main (void) main (void)
{ {
dnet_ntoa (); dnet_ntoa ();
; ;
return 0; return 0;
} }
_ACEOF _ACEOF
rm -f "conftest.$ac_objext" "conftest$ac_exeext" rm -f "conftest.$ac_objext" "conftest$ac_exeext"
if { (eval echo "$as_me:8828: \"$ac_link\"") >&5 if { (eval echo "$as_me:8830: \"$ac_link\"") >&5
(eval $ac_link) 2>&5 (eval $ac_link) 2>&5
ac_status=$? ac_status=$?
echo "$as_me:8831: \$? = $ac_status" >&5 echo "$as_me:8833: \$? = $ac_status" >&5
(exit "$ac_status"); } && (exit "$ac_status"); } &&
{ ac_try='test -s "conftest$ac_exeext"' { ac_try='test -s "conftest$ac_exeext"'
{ (eval echo "$as_me:8834: \"$ac_try\"") >&5 { (eval echo "$as_me:8836: \"$ac_try\"") >&5
(eval $ac_try) 2>&5 (eval $ac_try) 2>&5
ac_status=$? ac_status=$?
echo "$as_me:8837: \$? = $ac_status" >&5 echo "$as_me:8839: \$? = $ac_status" >&5
(exit "$ac_status"); }; }; then (exit "$ac_status"); }; }; then
ac_cv_lib_dnet_dnet_ntoa=yes ac_cv_lib_dnet_dnet_ntoa=yes
else else
echo "$as_me: failed program was:" >&5 echo "$as_me: failed program was:" >&5
cat "conftest.$ac_ext" >&5 cat "conftest.$ac_ext" >&5
ac_cv_lib_dnet_dnet_ntoa=no ac_cv_lib_dnet_dnet_ntoa=no
fi fi
rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext" rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
LIBS=$ac_check_lib_save_LIBS LIBS=$ac_check_lib_save_LIBS
fi fi
echo "$as_me:8848: result: $ac_cv_lib_dnet_dnet_ntoa" >&5 echo "$as_me:8850: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
if test "$ac_cv_lib_dnet_dnet_ntoa" = yes; then if test "$ac_cv_lib_dnet_dnet_ntoa" = yes; then
X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet" X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
fi fi
if test $ac_cv_lib_dnet_dnet_ntoa = no; then if test $ac_cv_lib_dnet_dnet_ntoa = no; then
echo "$as_me:8855: checking for dnet_ntoa in -ldnet_stub" >&5 echo "$as_me:8857: checking for dnet_ntoa in -ldnet_stub" >&5
echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6 echo $ECHO_N "(cached) $ECHO_C" >&6
else else
ac_check_lib_save_LIBS=$LIBS ac_check_lib_save_LIBS=$LIBS
LIBS="-ldnet_stub $LIBS" LIBS="-ldnet_stub $LIBS"
cat >"conftest.$ac_ext" <<_ACEOF cat >"conftest.$ac_ext" <<_ACEOF
#line 8863 "configure" #line 8865 "configure"
#include "confdefs.h" #include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error. */ /* Override any gcc2 internal prototype to avoid an error. */
#ifdef __cplusplus #ifdef __cplusplus
extern "C" extern "C"
#endif #endif
/* We use char because int might match the return type of a gcc2 /* We use char because int might match the return type of a gcc2
builtin and then its argument prototype would still apply. */ builtin and then its argument prototype would still apply. */
char dnet_ntoa (); char dnet_ntoa ();
int int
main (void) main (void)
{ {
dnet_ntoa (); dnet_ntoa ();
; ;
return 0; return 0;
} }
_ACEOF _ACEOF
rm -f "conftest.$ac_objext" "conftest$ac_exeext" rm -f "conftest.$ac_objext" "conftest$ac_exeext"
if { (eval echo "$as_me:8882: \"$ac_link\"") >&5 if { (eval echo "$as_me:8884: \"$ac_link\"") >&5
(eval $ac_link) 2>&5 (eval $ac_link) 2>&5
ac_status=$? ac_status=$?
echo "$as_me:8885: \$? = $ac_status" >&5 echo "$as_me:8887: \$? = $ac_status" >&5
(exit "$ac_status"); } && (exit "$ac_status"); } &&
{ ac_try='test -s "conftest$ac_exeext"' { ac_try='test -s "conftest$ac_exeext"'
{ (eval echo "$as_me:8888: \"$ac_try\"") >&5 { (eval echo "$as_me:8890: \"$ac_try\"") >&5
(eval $ac_try) 2>&5 (eval $ac_try) 2>&5
ac_status=$? ac_status=$?
echo "$as_me:8891: \$? = $ac_status" >&5 echo "$as_me:8893: \$? = $ac_status" >&5
(exit "$ac_status"); }; }; then (exit "$ac_status"); }; }; then
ac_cv_lib_dnet_stub_dnet_ntoa=yes ac_cv_lib_dnet_stub_dnet_ntoa=yes
else else
echo "$as_me: failed program was:" >&5 echo "$as_me: failed program was:" >&5
cat "conftest.$ac_ext" >&5 cat "conftest.$ac_ext" >&5
ac_cv_lib_dnet_stub_dnet_ntoa=no ac_cv_lib_dnet_stub_dnet_ntoa=no
fi fi
rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext" rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
LIBS=$ac_check_lib_save_LIBS LIBS=$ac_check_lib_save_LIBS
fi fi
echo "$as_me:8902: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5 echo "$as_me:8904: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
if test "$ac_cv_lib_dnet_stub_dnet_ntoa" = yes; then if test "$ac_cv_lib_dnet_stub_dnet_ntoa" = yes; then
X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub" X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
fi fi
fi fi
fi fi
rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext" rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
LIBS="$ac_xsave_LIBS" LIBS="$ac_xsave_LIBS"
# msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT, # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
# to get the SysV transport functions. # to get the SysV transport functions.
# Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4) # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
# needs -lnsl. # needs -lnsl.
# The nsl library prevents programs from opening the X display # The nsl library prevents programs from opening the X display
# on Irix 5.2, according to T.E. Dickey. # on Irix 5.2, according to T.E. Dickey.
# The functions gethostbyname, getservbyname, and inet_addr are # The functions gethostbyname, getservbyname, and inet_addr are
# in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking. # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
echo "$as_me:8921: checking for gethostbyname" >&5 echo "$as_me:8923: checking for gethostbyname" >&5
echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
if test "${ac_cv_func_gethostbyname+set}" = set; then if test "${ac_cv_func_gethostbyname+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6 echo $ECHO_N "(cached) $ECHO_C" >&6
else else
cat >"conftest.$ac_ext" <<_ACEOF cat >"conftest.$ac_ext" <<_ACEOF
#line 8927 "configure" #line 8929 "configure"
#include "confdefs.h" #include "confdefs.h"
#define gethostbyname autoconf_temporary #define gethostbyname autoconf_temporary
#include <limits.h> /* least-intrusive standard header which defines gcc2 __s tub macros */ #include <limits.h> /* least-intrusive standard header which defines gcc2 __s tub macros */
#undef gethostbyname #undef gethostbyname
#ifdef __cplusplus #ifdef __cplusplus
extern "C" extern "C"
#endif #endif
/* We use char because int might match the return type of a gcc2 /* We use char because int might match the return type of a gcc2
skipping to change at line 8958 skipping to change at line 8960
#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname) #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
#error found stub for gethostbyname #error found stub for gethostbyname
#endif #endif
return gethostbyname (); return gethostbyname ();
; ;
return 0; return 0;
} }
_ACEOF _ACEOF
rm -f "conftest.$ac_objext" "conftest$ac_exeext" rm -f "conftest.$ac_objext" "conftest$ac_exeext"
if { (eval echo "$as_me:8958: \"$ac_link\"") >&5 if { (eval echo "$as_me:8960: \"$ac_link\"") >&5
(eval $ac_link) 2>&5 (eval $ac_link) 2>&5
ac_status=$? ac_status=$?
echo "$as_me:8961: \$? = $ac_status" >&5 echo "$as_me:8963: \$? = $ac_status" >&5
(exit "$ac_status"); } && (exit "$ac_status"); } &&
{ ac_try='test -s "conftest$ac_exeext"' { ac_try='test -s "conftest$ac_exeext"'
{ (eval echo "$as_me:8964: \"$ac_try\"") >&5 { (eval echo "$as_me:8966: \"$ac_try\"") >&5
(eval $ac_try) 2>&5 (eval $ac_try) 2>&5
ac_status=$? ac_status=$?
echo "$as_me:8967: \$? = $ac_status" >&5 echo "$as_me:8969: \$? = $ac_status" >&5
(exit "$ac_status"); }; }; then (exit "$ac_status"); }; }; then
ac_cv_func_gethostbyname=yes ac_cv_func_gethostbyname=yes
else else
echo "$as_me: failed program was:" >&5 echo "$as_me: failed program was:" >&5
cat "conftest.$ac_ext" >&5 cat "conftest.$ac_ext" >&5
ac_cv_func_gethostbyname=no ac_cv_func_gethostbyname=no
fi fi
rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext" rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
fi fi
echo "$as_me:8977: result: $ac_cv_func_gethostbyname" >&5 echo "$as_me:8979: result: $ac_cv_func_gethostbyname" >&5
echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
if test $ac_cv_func_gethostbyname = no; then if test $ac_cv_func_gethostbyname = no; then
echo "$as_me:8981: checking for gethostbyname in -lnsl" >&5 echo "$as_me:8983: checking for gethostbyname in -lnsl" >&5
echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6 echo $ECHO_N "(cached) $ECHO_C" >&6
else else
ac_check_lib_save_LIBS=$LIBS ac_check_lib_save_LIBS=$LIBS
LIBS="-lnsl $LIBS" LIBS="-lnsl $LIBS"
cat >"conftest.$ac_ext" <<_ACEOF cat >"conftest.$ac_ext" <<_ACEOF
#line 8989 "configure" #line 8991 "configure"
#include "confdefs.h" #include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error. */ /* Override any gcc2 internal prototype to avoid an error. */
#ifdef __cplusplus #ifdef __cplusplus
extern "C" extern "C"
#endif #endif
/* We use char because int might match the return type of a gcc2 /* We use char because int might match the return type of a gcc2
builtin and then its argument prototype would still apply. */ builtin and then its argument prototype would still apply. */
char gethostbyname (); char gethostbyname ();
int int
main (void) main (void)
{ {
gethostbyname (); gethostbyname ();
; ;
return 0; return 0;
} }
_ACEOF _ACEOF
rm -f "conftest.$ac_objext" "conftest$ac_exeext" rm -f "conftest.$ac_objext" "conftest$ac_exeext"
if { (eval echo "$as_me:9008: \"$ac_link\"") >&5 if { (eval echo "$as_me:9010: \"$ac_link\"") >&5
(eval $ac_link) 2>&5 (eval $ac_link) 2>&5
ac_status=$? ac_status=$?
echo "$as_me:9011: \$? = $ac_status" >&5 echo "$as_me:9013: \$? = $ac_status" >&5
(exit "$ac_status"); } && (exit "$ac_status"); } &&
{ ac_try='test -s "conftest$ac_exeext"' { ac_try='test -s "conftest$ac_exeext"'
{ (eval echo "$as_me:9014: \"$ac_try\"") >&5 { (eval echo "$as_me:9016: \"$ac_try\"") >&5
(eval $ac_try) 2>&5 (eval $ac_try) 2>&5
ac_status=$? ac_status=$?
echo "$as_me:9017: \$? = $ac_status" >&5 echo "$as_me:9019: \$? = $ac_status" >&5
(exit "$ac_status"); }; }; then (exit "$ac_status"); }; }; then
ac_cv_lib_nsl_gethostbyname=yes ac_cv_lib_nsl_gethostbyname=yes
else else
echo "$as_me: failed program was:" >&5 echo "$as_me: failed program was:" >&5
cat "conftest.$ac_ext" >&5 cat "conftest.$ac_ext" >&5
ac_cv_lib_nsl_gethostbyname=no ac_cv_lib_nsl_gethostbyname=no
fi fi
rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext" rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
LIBS=$ac_check_lib_save_LIBS LIBS=$ac_check_lib_save_LIBS
fi fi
echo "$as_me:9028: result: $ac_cv_lib_nsl_gethostbyname" >&5 echo "$as_me:9030: result: $ac_cv_lib_nsl_gethostbyname" >&5
echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
if test "$ac_cv_lib_nsl_gethostbyname" = yes; then if test "$ac_cv_lib_nsl_gethostbyname" = yes; then
X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl" X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
fi fi
if test $ac_cv_lib_nsl_gethostbyname = no; then if test $ac_cv_lib_nsl_gethostbyname = no; then
echo "$as_me:9035: checking for gethostbyname in -lbsd" >&5 echo "$as_me:9037: checking for gethostbyname in -lbsd" >&5
echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6 echo $ECHO_N "(cached) $ECHO_C" >&6
else else
ac_check_lib_save_LIBS=$LIBS ac_check_lib_save_LIBS=$LIBS
LIBS="-lbsd $LIBS" LIBS="-lbsd $LIBS"
cat >"conftest.$ac_ext" <<_ACEOF cat >"conftest.$ac_ext" <<_ACEOF
#line 9043 "configure" #line 9045 "configure"
#include "confdefs.h" #include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error. */ /* Override any gcc2 internal prototype to avoid an error. */
#ifdef __cplusplus #ifdef __cplusplus
extern "C" extern "C"
#endif #endif
/* We use char because int might match the return type of a gcc2 /* We use char because int might match the return type of a gcc2
builtin and then its argument prototype would still apply. */ builtin and then its argument prototype would still apply. */
char gethostbyname (); char gethostbyname ();
int int
main (void) main (void)
{ {
gethostbyname (); gethostbyname ();
; ;
return 0; return 0;
} }
_ACEOF _ACEOF
rm -f "conftest.$ac_objext" "conftest$ac_exeext" rm -f "conftest.$ac_objext" "conftest$ac_exeext"
if { (eval echo "$as_me:9062: \"$ac_link\"") >&5 if { (eval echo "$as_me:9064: \"$ac_link\"") >&5
(eval $ac_link) 2>&5 (eval $ac_link) 2>&5
ac_status=$? ac_status=$?
echo "$as_me:9065: \$? = $ac_status" >&5 echo "$as_me:9067: \$? = $ac_status" >&5
(exit "$ac_status"); } && (exit "$ac_status"); } &&
{ ac_try='test -s "conftest$ac_exeext"' { ac_try='test -s "conftest$ac_exeext"'
{ (eval echo "$as_me:9068: \"$ac_try\"") >&5 { (eval echo "$as_me:9070: \"$ac_try\"") >&5
(eval $ac_try) 2>&5 (eval $ac_try) 2>&5
ac_status=$? ac_status=$?
echo "$as_me:9071: \$? = $ac_status" >&5 echo "$as_me:9073: \$? = $ac_status" >&5
(exit "$ac_status"); }; }; then (exit "$ac_status"); }; }; then
ac_cv_lib_bsd_gethostbyname=yes ac_cv_lib_bsd_gethostbyname=yes
else else
echo "$as_me: failed program was:" >&5 echo "$as_me: failed program was:" >&5
cat "conftest.$ac_ext" >&5 cat "conftest.$ac_ext" >&5
ac_cv_lib_bsd_gethostbyname=no ac_cv_lib_bsd_gethostbyname=no
fi fi
rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext" rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
LIBS=$ac_check_lib_save_LIBS LIBS=$ac_check_lib_save_LIBS
fi fi
echo "$as_me:9082: result: $ac_cv_lib_bsd_gethostbyname" >&5 echo "$as_me:9084: result: $ac_cv_lib_bsd_gethostbyname" >&5
echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
if test "$ac_cv_lib_bsd_gethostbyname" = yes; then if test "$ac_cv_lib_bsd_gethostbyname" = yes; then
X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd" X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
fi fi
fi fi
fi fi
# lieder@skyler.mavd.honeywell.com says without -lsocket, # lieder@skyler.mavd.honeywell.com says without -lsocket,
# socket/setsockopt and other routines are undefined under SCO ODT # socket/setsockopt and other routines are undefined under SCO ODT
# 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
# on later versions), says Simon Leinen: it contains gethostby* # on later versions), says Simon Leinen: it contains gethostby*
# variants that don't use the nameserver (or something). -lsocket # variants that don't use the nameserver (or something). -lsocket
# must be given before -lnsl if both are needed. We assume that # must be given before -lnsl if both are needed. We assume that
# if connect needs -lnsl, so does gethostbyname. # if connect needs -lnsl, so does gethostbyname.
echo "$as_me:9098: checking for connect" >&5 echo "$as_me:9100: checking for connect" >&5
echo $ECHO_N "checking for connect... $ECHO_C" >&6 echo $ECHO_N "checking for connect... $ECHO_C" >&6
if test "${ac_cv_func_connect+set}" = set; then if test "${ac_cv_func_connect+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6 echo $ECHO_N "(cached) $ECHO_C" >&6
else else
cat >"conftest.$ac_ext" <<_ACEOF cat >"conftest.$ac_ext" <<_ACEOF
#line 9104 "configure" #line 9106 "configure"
#include "confdefs.h" #include "confdefs.h"
#define connect autoconf_temporary #define connect autoconf_temporary
#include <limits.h> /* least-intrusive standard header which defines gcc2 __s tub macros */ #include <limits.h> /* least-intrusive standard header which defines gcc2 __s tub macros */
#undef connect #undef connect
#ifdef __cplusplus #ifdef __cplusplus
extern "C" extern "C"
#endif #endif
/* We use char because int might match the return type of a gcc2 /* We use char because int might match the return type of a gcc2
skipping to change at line 9135 skipping to change at line 9137
#if defined (__stub_connect) || defined (__stub___connect) #if defined (__stub_connect) || defined (__stub___connect)
#error found stub for connect #error found stub for connect
#endif #endif
return connect (); return connect ();
; ;
return 0; return 0;
} }
_ACEOF _ACEOF
rm -f "conftest.$ac_objext" "conftest$ac_exeext" rm -f "conftest.$ac_objext" "conftest$ac_exeext"
if { (eval echo "$as_me:9135: \"$ac_link\"") >&5 if { (eval echo "$as_me:9137: \"$ac_link\"") >&5
(eval $ac_link) 2>&5 (eval $ac_link) 2>&5
ac_status=$? ac_status=$?
echo "$as_me:9138: \$? = $ac_status" >&5 echo "$as_me:9140: \$? = $ac_status" >&5
(exit "$ac_status"); } && (exit "$ac_status"); } &&
{ ac_try='test -s "conftest$ac_exeext"' { ac_try='test -s "conftest$ac_exeext"'
{ (eval echo "$as_me:9141: \"$ac_try\"") >&5 { (eval echo "$as_me:9143: \"$ac_try\"") >&5
(eval $ac_try) 2>&5 (eval $ac_try) 2>&5
ac_status=$? ac_status=$?
echo "$as_me:9144: \$? = $ac_status" >&5 echo "$as_me:9146: \$? = $ac_status" >&5
(exit "$ac_status"); }; }; then (exit "$ac_status"); }; }; then
ac_cv_func_connect=yes ac_cv_func_connect=yes
else else
echo "$as_me: failed program was:" >&5 echo "$as_me: failed program was:" >&5
cat "conftest.$ac_ext" >&5 cat "conftest.$ac_ext" >&5
ac_cv_func_connect=no ac_cv_func_connect=no
fi fi
rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext" rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
fi fi
echo "$as_me:9154: result: $ac_cv_func_connect" >&5 echo "$as_me:9156: result: $ac_cv_func_connect" >&5
echo "${ECHO_T}$ac_cv_func_connect" >&6 echo "${ECHO_T}$ac_cv_func_connect" >&6
if test $ac_cv_func_connect = no; then if test $ac_cv_func_connect = no; then
echo "$as_me:9158: checking for connect in -lsocket" >&5 echo "$as_me:9160: checking for connect in -lsocket" >&5
echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
if test "${ac_cv_lib_socket_connect+set}" = set; then if test "${ac_cv_lib_socket_connect+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6 echo $ECHO_N "(cached) $ECHO_C" >&6
else else
ac_check_lib_save_LIBS=$LIBS ac_check_lib_save_LIBS=$LIBS
LIBS="-lsocket $X_EXTRA_LIBS $LIBS" LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
cat >"conftest.$ac_ext" <<_ACEOF cat >"conftest.$ac_ext" <<_ACEOF
#line 9166 "configure" #line 9168 "configure"
#include "confdefs.h" #include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error. */ /* Override any gcc2 internal prototype to avoid an error. */
#ifdef __cplusplus #ifdef __cplusplus
extern "C" extern "C"
#endif #endif
/* We use char because int might match the return type of a gcc2 /* We use char because int might match the return type of a gcc2
builtin and then its argument prototype would still apply. */ builtin and then its argument prototype would still apply. */
char connect (); char connect ();
int int
main (void) main (void)
{ {
connect (); connect ();
; ;
return 0; return 0;
} }
_ACEOF _ACEOF
rm -f "conftest.$ac_objext" "conftest$ac_exeext" rm -f "conftest.$ac_objext" "conftest$ac_exeext"
if { (eval echo "$as_me:9185: \"$ac_link\"") >&5 if { (eval echo "$as_me:9187: \"$ac_link\"") >&5
(eval $ac_link) 2>&5 (eval $ac_link) 2>&5
ac_status=$? ac_status=$?
echo "$as_me:9188: \$? = $ac_status" >&5 echo "$as_me:9190: \$? = $ac_status" >&5
(exit "$ac_status"); } && (exit "$ac_status"); } &&
{ ac_try='test -s "conftest$ac_exeext"' { ac_try='test -s "conftest$ac_exeext"'
{ (eval echo "$as_me:9191: \"$ac_try\"") >&5 { (eval echo "$as_me:9193: \"$ac_try\"") >&5
(eval $ac_try) 2>&5 (eval $ac_try) 2>&5
ac_status=$? ac_status=$?
echo "$as_me:9194: \$? = $ac_status" >&5 echo "$as_me:9196: \$? = $ac_status" >&5
(exit "$ac_status"); }; }; then (exit "$ac_status"); }; }; then
ac_cv_lib_socket_connect=yes ac_cv_lib_socket_connect=yes
else else
echo "$as_me: failed program was:" >&5 echo "$as_me: failed program was:" >&5
cat "conftest.$ac_ext" >&5 cat "conftest.$ac_ext" >&5
ac_cv_lib_socket_connect=no ac_cv_lib_socket_connect=no
fi fi
rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext" rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
LIBS=$ac_check_lib_save_LIBS LIBS=$ac_check_lib_save_LIBS
fi fi
echo "$as_me:9205: result: $ac_cv_lib_socket_connect" >&5 echo "$as_me:9207: result: $ac_cv_lib_socket_connect" >&5
echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
if test "$ac_cv_lib_socket_connect" = yes; then if test "$ac_cv_lib_socket_connect" = yes; then
X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS" X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
fi fi
fi fi
# Guillermo Gomez says -lposix is necessary on A/UX. # Guillermo Gomez says -lposix is necessary on A/UX.
echo "$as_me:9214: checking for remove" >&5 echo "$as_me:9216: checking for remove" >&5
echo $ECHO_N "checking for remove... $ECHO_C" >&6 echo $ECHO_N "checking for remove... $ECHO_C" >&6
if test "${ac_cv_func_remove+set}" = set; then if test "${ac_cv_func_remove+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6 echo $ECHO_N "(cached) $ECHO_C" >&6
else else
cat >"conftest.$ac_ext" <<_ACEOF cat >"conftest.$ac_ext" <<_ACEOF
#line 9220 "configure" #line 9222 "configure"
#include "confdefs.h" #include "confdefs.h"
#define remove autoconf_temporary #define remove autoconf_temporary
#include <limits.h> /* least-intrusive standard header which defines gcc2 __s tub macros */ #include <limits.h> /* least-intrusive standard header which defines gcc2 __s tub macros */
#undef remove #undef remove
#ifdef __cplusplus #ifdef __cplusplus
extern "C" extern "C"
#endif #endif
/* We use char because int might match the return type of a gcc2 /* We use char because int might match the return type of a gcc2
skipping to change at line 9251 skipping to change at line 9253
#if defined (__stub_remove) || defined (__stub___remove) #if defined (__stub_remove) || defined (__stub___remove)
#error found stub for remove #error found stub for remove
#endif #endif
return remove (); return remove ();
; ;
return 0; return 0;
} }
_ACEOF _ACEOF
rm -f "conftest.$ac_objext" "conftest$ac_exeext" rm -f "conftest.$ac_objext" "conftest$ac_exeext"
if { (eval echo "$as_me:9251: \"$ac_link\"") >&5 if { (eval echo "$as_me:9253: \"$ac_link\"") >&5
(eval $ac_link) 2>&5 (eval $ac_link) 2>&5
ac_status=$? ac_status=$?
echo "$as_me:9254: \$? = $ac_status" >&5 echo "$as_me:9256: \$? = $ac_status" >&5
(exit "$ac_status"); } && (exit "$ac_status"); } &&
{ ac_try='test -s "conftest$ac_exeext"' { ac_try='test -s "conftest$ac_exeext"'
{ (eval echo "$as_me:9257: \"$ac_try\"") >&5 { (eval echo "$as_me:9259: \"$ac_try\"") >&5
(eval $ac_try) 2>&5 (eval $ac_try) 2>&5
ac_status=$? ac_status=$?
echo "$as_me:9260: \$? = $ac_status" >&5 echo "$as_me:9262: \$? = $ac_status" >&5
(exit "$ac_status"); }; }; then (exit "$ac_status"); }; }; then
ac_cv_func_remove=yes ac_cv_func_remove=yes
else else
echo "$as_me: failed program was:" >&5 echo "$as_me: failed program was:" >&5
cat "conftest.$ac_ext" >&5 cat "conftest.$ac_ext" >&5
ac_cv_func_remove=no ac_cv_func_remove=no
fi fi
rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext" rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
fi fi
echo "$as_me:9270: result: $ac_cv_func_remove" >&5 echo "$as_me:9272: result: $ac_cv_func_remove" >&5
echo "${ECHO_T}$ac_cv_func_remove" >&6 echo "${ECHO_T}$ac_cv_func_remove" >&6
if test $ac_cv_func_remove = no; then if test $ac_cv_func_remove = no; then
echo "$as_me:9274: checking for remove in -lposix" >&5 echo "$as_me:9276: checking for remove in -lposix" >&5
echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
if test "${ac_cv_lib_posix_remove+set}" = set; then if test "${ac_cv_lib_posix_remove+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6 echo $ECHO_N "(cached) $ECHO_C" >&6
else else
ac_check_lib_save_LIBS=$LIBS ac_check_lib_save_LIBS=$LIBS
LIBS="-lposix $LIBS" LIBS="-lposix $LIBS"
cat >"conftest.$ac_ext" <<_ACEOF cat >"conftest.$ac_ext" <<_ACEOF
#line 9282 "configure" #line 9284 "configure"
#include "confdefs.h" #include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error. */ /* Override any gcc2 internal prototype to avoid an error. */
#ifdef __cplusplus #ifdef __cplusplus
extern "C" extern "C"
#endif #endif
/* We use char because int might match the return type of a gcc2 /* We use char because int might match the return type of a gcc2
builtin and then its argument prototype would still apply. */ builtin and then its argument prototype would still apply. */
char remove (); char remove ();
int int
main (void) main (void)
{ {
remove (); remove ();
; ;
return 0; return 0;
} }
_ACEOF _ACEOF
rm -f "conftest.$ac_objext" "conftest$ac_exeext" rm -f "conftest.$ac_objext" "conftest$ac_exeext"
if { (eval echo "$as_me:9301: \"$ac_link\"") >&5 if { (eval echo "$as_me:9303: \"$ac_link\"") >&5
(eval $ac_link) 2>&5 (eval $ac_link) 2>&5
ac_status=$? ac_status=$?
echo "$as_me:9304: \$? = $ac_status" >&5 echo "$as_me:9306: \$? = $ac_status" >&5
(exit "$ac_status"); } && (exit "$ac_status"); } &&
{ ac_try='test -s "conftest$ac_exeext"' { ac_try='test -s "conftest$ac_exeext"'
{ (eval echo "$as_me:9307: \"$ac_try\"") >&5 { (eval echo "$as_me:9309: \"$ac_try\"") >&5
(eval $ac_try) 2>&5 (eval $ac_try) 2>&5
ac_status=$? ac_status=$?
echo "$as_me:9310: \$? = $ac_status" >&5 echo "$as_me:9312: \$? = $ac_status" >&5
(exit "$ac_status"); }; }; then (exit "$ac_status"); }; }; then
ac_cv_lib_posix_remove=yes ac_cv_lib_posix_remove=yes
else else
echo "$as_me: failed program was:" >&5 echo "$as_me: failed program was:" >&5
cat "conftest.$ac_ext" >&5 cat "conftest.$ac_ext" >&5
ac_cv_lib_posix_remove=no ac_cv_lib_posix_remove=no
fi fi
rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext" rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
LIBS=$ac_check_lib_save_LIBS LIBS=$ac_check_lib_save_LIBS
fi fi
echo "$as_me:9321: result: $ac_cv_lib_posix_remove" >&5 echo "$as_me:9323: result: $ac_cv_lib_posix_remove" >&5
echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
if test "$ac_cv_lib_posix_remove" = yes; then if test "$ac_cv_lib_posix_remove" = yes; then
X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix" X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
fi fi
fi fi
# BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay. # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
echo "$as_me:9330: checking for shmat" >&5 echo "$as_me:9332: checking for shmat" >&5
echo $ECHO_N "checking for shmat... $ECHO_C" >&6 echo $ECHO_N "checking for shmat... $ECHO_C" >&6
if test "${ac_cv_func_shmat+set}" = set; then if test "${ac_cv_func_shmat+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6 echo $ECHO_N "(cached) $ECHO_C" >&6
else else
cat >"conftest.$ac_ext" <<_ACEOF cat >"conftest.$ac_ext" <<_ACEOF
#line 9336 "configure" #line 9338 "configure"
#include "confdefs.h" #include "confdefs.h"
#define shmat autoconf_temporary #define shmat autoconf_temporary
#include <limits.h> /* least-intrusive standard header which defines gcc2 __s tub macros */ #include <limits.h> /* least-intrusive standard header which defines gcc2 __s tub macros */
#undef shmat #undef shmat
#ifdef __cplusplus #ifdef __cplusplus
extern "C" extern "C"
#endif #endif
/* We use char because int might match the return type of a gcc2 /* We use char because int might match the return type of a gcc2
skipping to change at line 9367 skipping to change at line 9369
#if defined (__stub_shmat) || defined (__stub___shmat) #if defined (__stub_shmat) || defined (__stub___shmat)
#error found stub for shmat #error found stub for shmat
#endif #endif
return shmat (); return shmat ();
; ;
return 0; return 0;
} }
_ACEOF _ACEOF
rm -f "conftest.$ac_objext" "conftest$ac_exeext" rm -f "conftest.$ac_objext" "conftest$ac_exeext"
if { (eval echo "$as_me:9367: \"$ac_link\"") >&5 if { (eval echo "$as_me:9369: \"$ac_link\"") >&5
(eval $ac_link) 2>&5 (eval $ac_link) 2>&5
ac_status=$? ac_status=$?
echo "$as_me:9370: \$? = $ac_status" >&5 echo "$as_me:9372: \$? = $ac_status" >&5
(exit "$ac_status"); } && (exit "$ac_status"); } &&
{ ac_try='test -s "conftest$ac_exeext"' { ac_try='test -s "conftest$ac_exeext"'
{ (eval echo "$as_me:9373: \"$ac_try\"") >&5 { (eval echo "$as_me:9375: \"$ac_try\"") >&5
(eval $ac_try) 2>&5 (eval $ac_try) 2>&5
ac_status=$? ac_status=$?
echo "$as_me:9376: \$? = $ac_status" >&5 echo "$as_me:9378: \$? = $ac_status" >&5
(exit "$ac_status"); }; }; then (exit "$ac_status"); }; }; then
ac_cv_func_shmat=yes ac_cv_func_shmat=yes
else else
echo "$as_me: failed program was:" >&5 echo "$as_me: failed program was:" >&5
cat "conftest.$ac_ext" >&5 cat "conftest.$ac_ext" >&5
ac_cv_func_shmat=no ac_cv_func_shmat=no
fi fi
rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext" rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
fi fi
echo "$as_me:9386: result: $ac_cv_func_shmat" >&5 echo "$as_me:9388: result: $ac_cv_func_shmat" >&5
echo "${ECHO_T}$ac_cv_func_shmat" >&6 echo "${ECHO_T}$ac_cv_func_shmat" >&6
if test $ac_cv_func_shmat = no; then if test $ac_cv_func_shmat = no; then
echo "$as_me:9390: checking for shmat in -lipc" >&5 echo "$as_me:9392: checking for shmat in -lipc" >&5
echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
if test "${ac_cv_lib_ipc_shmat+set}" = set; then if test "${ac_cv_lib_ipc_shmat+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6 echo $ECHO_N "(cached) $ECHO_C" >&6
else else
ac_check_lib_save_LIBS=$LIBS ac_check_lib_save_LIBS=$LIBS
LIBS="-lipc $LIBS" LIBS="-lipc $LIBS"
cat >"conftest.$ac_ext" <<_ACEOF cat >"conftest.$ac_ext" <<_ACEOF
#line 9398 "configure" #line 9400 "configure"
#include "confdefs.h" #include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error. */ /* Override any gcc2 internal prototype to avoid an error. */
#ifdef __cplusplus #ifdef __cplusplus
extern "C" extern "C"
#endif #endif
/* We use char because int might match the return type of a gcc2 /* We use char because int might match the return type of a gcc2
builtin and then its argument prototype would still apply. */ builtin and then its argument prototype would still apply. */
char shmat (); char shmat ();
int int
main (void) main (void)
{ {
shmat (); shmat ();
; ;
return 0; return 0;
} }
_ACEOF _ACEOF
rm -f "conftest.$ac_objext" "conftest$ac_exeext" rm -f "conftest.$ac_objext" "conftest$ac_exeext"
if { (eval echo "$as_me:9417: \"$ac_link\"") >&5 if { (eval echo "$as_me:9419: \"$ac_link\"") >&5
(eval $ac_link) 2>&5 (eval $ac_link) 2>&5
ac_status=$? ac_status=$?
echo "$as_me:9420: \$? = $ac_status" >&5 echo "$as_me:9422: \$? = $ac_status" >&5
(exit "$ac_status"); } && (exit "$ac_status"); } &&
{ ac_try='test -s "conftest$ac_exeext"' { ac_try='test -s "conftest$ac_exeext"'
{ (eval echo "$as_me:9423: \"$ac_try\"") >&5 { (eval echo "$as_me:9425: \"$ac_try\"") >&5
(eval $ac_try) 2>&5 (eval $ac_try) 2>&5
ac_status=$? ac_status=$?
echo "$as_me:9426: \$? = $ac_status" >&5 echo "$as_me:9428: \$? = $ac_status" >&5
(exit "$ac_status"); }; }; then (exit "$ac_status"); }; }; then
ac_cv_lib_ipc_shmat=yes ac_cv_lib_ipc_shmat=yes
else else
echo "$as_me: failed program was:" >&5 echo "$as_me: failed program was:" >&5
cat "conftest.$ac_ext" >&5 cat "conftest.$ac_ext" >&5
ac_cv_lib_ipc_shmat=no ac_cv_lib_ipc_shmat=no
fi fi
rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext" rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
LIBS=$ac_check_lib_save_LIBS LIBS=$ac_check_lib_save_LIBS
fi fi
echo "$as_me:9437: result: $ac_cv_lib_ipc_shmat" >&5 echo "$as_me:9439: result: $ac_cv_lib_ipc_shmat" >&5
echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
if test "$ac_cv_lib_ipc_shmat" = yes; then if test "$ac_cv_lib_ipc_shmat" = yes; then
X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc" X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
fi fi
fi fi
fi fi
# Check for libraries that X11R6 Xt/Xaw programs need. # Check for libraries that X11R6 Xt/Xaw programs need.
ac_save_LDFLAGS=$LDFLAGS ac_save_LDFLAGS=$LDFLAGS
test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries" test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
# SM needs ICE to (dynamically) link under SunOS 4.x (so we have to # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
# check for ICE first), but we must link in the order -lSM -lICE or # check for ICE first), but we must link in the order -lSM -lICE or
# we get undefined symbols. So assume we have SM if we have ICE. # we get undefined symbols. So assume we have SM if we have ICE.
# These have to be linked with before -lX11, unlike the other # These have to be linked with before -lX11, unlike the other
# libraries we check for below, so use a different variable. # libraries we check for below, so use a different variable.
# John Interrante, Karl Berry # John Interrante, Karl Berry
echo "$as_me:9455: checking for IceConnectionNumber in -lICE" >&5 echo "$as_me:9457: checking for IceConnectionNumber in -lICE" >&5
echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6 echo $ECHO_N "(cached) $ECHO_C" >&6
else else
ac_check_lib_save_LIBS=$LIBS ac_check_lib_save_LIBS=$LIBS
LIBS="-lICE $X_EXTRA_LIBS $LIBS" LIBS="-lICE $X_EXTRA_LIBS $LIBS"
cat >"conftest.$ac_ext" <<_ACEOF cat >"conftest.$ac_ext" <<_ACEOF
#line 9463 "configure" #line 9465 "configure"
#include "confdefs.h" #include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error. */ /* Override any gcc2 internal prototype to avoid an error. */
#ifdef __cplusplus #ifdef __cplusplus
extern "C" extern "C"
#endif #endif
/* We use char because int might match the return type of a gcc2 /* We use char because int might match the return type of a gcc2
builtin and then its argument prototype would still apply. */ builtin and then its argument prototype would still apply. */
char IceConnectionNumber (); char IceConnectionNumber ();
int int
main (void) main (void)
{ {
IceConnectionNumber (); IceConnectionNumber ();
; ;
return 0; return 0;
} }
_ACEOF _ACEOF
rm -f "conftest.$ac_objext" "conftest$ac_exeext" rm -f "conftest.$ac_objext" "conftest$ac_exeext"
if { (eval echo "$as_me:9482: \"$ac_link\"") >&5 if { (eval echo "$as_me:9484: \"$ac_link\"") >&5
(eval $ac_link) 2>&5 (eval $ac_link) 2>&5
ac_status=$? ac_status=$?
echo "$as_me:9485: \$? = $ac_status" >&5 echo "$as_me:9487: \$? = $ac_status" >&5
(exit "$ac_status"); } && (exit "$ac_status"); } &&
{ ac_try='test -s "conftest$ac_exeext"' { ac_try='test -s "conftest$ac_exeext"'
{ (eval echo "$as_me:9488: \"$ac_try\"") >&5 { (eval echo "$as_me:9490: \"$ac_try\"") >&5
(eval $ac_try) 2>&5 (eval $ac_try) 2>&5
ac_status=$? ac_status=$?
echo "$as_me:9491: \$? = $ac_status" >&5 echo "$as_me:9493: \$? = $ac_status" >&5
(exit "$ac_status"); }; }; then (exit "$ac_status"); }; }; then
ac_cv_lib_ICE_IceConnectionNumber=yes ac_cv_lib_ICE_IceConnectionNumber=yes
else else
echo "$as_me: failed program was:" >&5 echo "$as_me: failed program was:" >&5
cat "conftest.$ac_ext" >&5 cat "conftest.$ac_ext" >&5
ac_cv_lib_ICE_IceConnectionNumber=no ac_cv_lib_ICE_IceConnectionNumber=no
fi fi
rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext" rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
LIBS=$ac_check_lib_save_LIBS LIBS=$ac_check_lib_save_LIBS
fi fi
echo "$as_me:9502: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5 echo "$as_me:9504: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
if test "$ac_cv_lib_ICE_IceConnectionNumber" = yes; then if test "$ac_cv_lib_ICE_IceConnectionNumber" = yes; then
X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE" X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
fi fi
LDFLAGS=$ac_save_LDFLAGS LDFLAGS=$ac_save_LDFLAGS
fi fi
echo "$as_me:9512: checking for sys/wait.h that is POSIX.1 compatible" >&5 echo "$as_me:9514: checking for sys/wait.h that is POSIX.1 compatible" >&5
echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
if test "${ac_cv_header_sys_wait_h+set}" = set; then if test "${ac_cv_header_sys_wait_h+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6 echo $ECHO_N "(cached) $ECHO_C" >&6
else else
cat >"conftest.$ac_ext" <<_ACEOF cat >"conftest.$ac_ext" <<_ACEOF
#line 9518 "configure" #line 9520 "configure"
#include "confdefs.h" #include "confdefs.h"
#include <sys/types.h> #include <sys/types.h>
#include <sys/wait.h> #include <sys/wait.h>
#ifndef WEXITSTATUS #ifndef WEXITSTATUS
# define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8) # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
#endif #endif
#ifndef WIFEXITED #ifndef WIFEXITED
# define WIFEXITED(stat_val) (((stat_val) & 255) == 0) # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
#endif #endif
skipping to change at line 9540 skipping to change at line 9542
main (void) main (void)
{ {
int s; int s;
wait (&s); wait (&s);
s = WIFEXITED (s) ? WEXITSTATUS (s) : 1; s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
; ;
return 0; return 0;
} }
_ACEOF _ACEOF
rm -f "conftest.$ac_objext" rm -f "conftest.$ac_objext"
if { (eval echo "$as_me:9540: \"$ac_compile\"") >&5 if { (eval echo "$as_me:9542: \"$ac_compile\"") >&5
(eval $ac_compile) 2>&5 (eval $ac_compile) 2>&5
ac_status=$? ac_status=$?
echo "$as_me:9543: \$? = $ac_status" >&5 echo "$as_me:9545: \$? = $ac_status" >&5
(exit "$ac_status"); } && (exit "$ac_status"); } &&
{ ac_try='test -s "conftest.$ac_objext"' { ac_try='test -s "conftest.$ac_objext"'
{ (eval echo "$as_me:9546: \"$ac_try\"") >&5 { (eval echo "$as_me:9548: \"$ac_try\"") >&5
(eval $ac_try) 2>&5 (eval $ac_try) 2>&5
ac_status=$? ac_status=$?
echo "$as_me:9549: \$? = $ac_status" >&5 echo "$as_me:9551: \$? = $ac_status" >&5
(exit "$ac_status"); }; }; then (exit "$ac_status"); }; }; then
ac_cv_header_sys_wait_h=yes ac_cv_header_sys_wait_h=yes
else else
echo "$as_me: failed program was:" >&5 echo "$as_me: failed program was:" >&5
cat "conftest.$ac_ext" >&5 cat "conftest.$ac_ext" >&5
ac_cv_header_sys_wait_h=no ac_cv_header_sys_wait_h=no
fi fi
rm -f "conftest.$ac_objext" "conftest.$ac_ext" rm -f "conftest.$ac_objext" "conftest.$ac_ext"
fi fi
echo "$as_me:9559: result: $ac_cv_header_sys_wait_h" >&5 echo "$as_me:9561: result: $ac_cv_header_sys_wait_h" >&5
echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
if test $ac_cv_header_sys_wait_h = yes; then if test $ac_cv_header_sys_wait_h = yes; then
cat >>confdefs.h <<\EOF cat >>confdefs.h <<\EOF
#define HAVE_SYS_WAIT_H 1 #define HAVE_SYS_WAIT_H 1
EOF EOF
fi fi
echo "$as_me:9569: checking for POSIX wait functions" >&5 echo "$as_me:9571: checking for POSIX wait functions" >&5
echo $ECHO_N "checking for POSIX wait functions... $ECHO_C" >&6 echo $ECHO_N "checking for POSIX wait functions... $ECHO_C" >&6
if test "${cf_cv_posix_wait+set}" = set; then if test "${cf_cv_posix_wait+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6 echo $ECHO_N "(cached) $ECHO_C" >&6
else else
cat >"conftest.$ac_ext" <<_ACEOF cat >"conftest.$ac_ext" <<_ACEOF
#line 9576 "configure" #line 9578 "configure"
#include "confdefs.h" #include "confdefs.h"
#include <stdlib.h> #include <stdlib.h>
#include <stdio.h> #include <stdio.h>
#include <sys/types.h> #include <sys/types.h>
#ifdef HAVE_SYS_WAIT_H #ifdef HAVE_SYS_WAIT_H
#include <sys/wait.h> #include <sys/wait.h>
#endif #endif
int int
skipping to change at line 9601 skipping to change at line 9603
pid_t pid = waitpid(-1, &stat_loc, WNOHANG|WUNTRACED); pid_t pid = waitpid(-1, &stat_loc, WNOHANG|WUNTRACED);
pid_t pid2 = wait(&stat_loc); pid_t pid2 = wait(&stat_loc);
(void)pid; (void)pid;
(void)pid2; (void)pid2;
; ;
return 0; return 0;
} }
_ACEOF _ACEOF
rm -f "conftest.$ac_objext" "conftest$ac_exeext" rm -f "conftest.$ac_objext" "conftest$ac_exeext"
if { (eval echo "$as_me:9601: \"$ac_link\"") >&5 if { (eval echo "$as_me:9603: \"$ac_link\"") >&5
(eval $ac_link) 2>&5 (eval $ac_link) 2>&5
ac_status=$? ac_status=$?
echo "$as_me:9604: \$? = $ac_status" >&5 echo "$as_me:9606: \$? = $ac_status" >&5
(exit "$ac_status"); } && (exit "$ac_status"); } &&
{ ac_try='test -s "conftest$ac_exeext"' { ac_try='test -s "conftest$ac_exeext"'
{ (eval echo "$as_me:9607: \"$ac_try\"") >&5 { (eval echo "$as_me:9609: \"$ac_try\"") >&5
(eval $ac_try) 2>&5 (eval $ac_try) 2>&5
ac_status=$? ac_status=$?
echo "$as_me:9610: \$? = $ac_status" >&5 echo "$as_me:9612: \$? = $ac_status" >&5
(exit "$ac_status"); }; }; then (exit "$ac_status"); }; }; then
cf_cv_posix_wait=yes cf_cv_posix_wait=yes
else else
echo "$as_me: failed program was:" >&5 echo "$as_me: failed program was:" >&5
cat "conftest.$ac_ext" >&5 cat "conftest.$ac_ext" >&5
cf_cv_posix_wait=no cf_cv_posix_wait=no
fi fi
rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext" rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
fi fi
echo "$as_me:9621: result: $cf_cv_posix_wait" >&5 echo "$as_me:9623: result: $cf_cv_posix_wait" >&5
echo "${ECHO_T}$cf_cv_posix_wait" >&6 echo "${ECHO_T}$cf_cv_posix_wait" >&6
test "$cf_cv_posix_wait" = yes && test "$cf_cv_posix_wait" = yes &&
cat >>confdefs.h <<\EOF cat >>confdefs.h <<\EOF
#define USE_POSIX_WAIT 1 #define USE_POSIX_WAIT 1
EOF EOF
echo "$as_me:9628: checking if external sys_nerr is declared" >&5 echo "$as_me:9630: checking if external sys_nerr is declared" >&5
echo $ECHO_N "checking if external sys_nerr is declared... $ECHO_C" >&6 echo $ECHO_N "checking if external sys_nerr is declared... $ECHO_C" >&6
if test "${cf_cv_dcl_sys_nerr+set}" = set; then if test "${cf_cv_dcl_sys_nerr+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6 echo $ECHO_N "(cached) $ECHO_C" >&6
else else
cat >"conftest.$ac_ext" <<_ACEOF cat >"conftest.$ac_ext" <<_ACEOF
#line 9635 "configure" #line 9637 "configure"
#include "confdefs.h" #include "confdefs.h"
#ifdef HAVE_STDLIB_H #ifdef HAVE_STDLIB_H
#include <stdlib.h> #include <stdlib.h>
#endif #endif
#include <stdio.h> #include <stdio.h>
#include <sys/types.h> #include <sys/types.h>
#include <errno.h> #include <errno.h>
int int
main (void) main (void)
{ {
int x = (int) sys_nerr; (void)x int x = (int) sys_nerr; (void)x
; ;
return 0; return 0;
} }
_ACEOF _ACEOF
rm -f "conftest.$ac_objext" rm -f "conftest.$ac_objext"
if { (eval echo "$as_me:9653: \"$ac_compile\"") >&5 if { (eval echo "$as_me:9655: \"$ac_compile\"") >&5
(eval $ac_compile) 2>&5 (eval $ac_compile) 2>&5
ac_status=$? ac_status=$?
echo "$as_me:9656: \$? = $ac_status" >&5 echo "$as_me:9658: \$? = $ac_status" >&5
(exit "$ac_status"); } && (exit "$ac_status"); } &&
{ ac_try='test -s "conftest.$ac_objext"' { ac_try='test -s "conftest.$ac_objext"'
{ (eval echo "$as_me:9659: \"$ac_try\"") >&5 { (eval echo "$as_me:9661: \"$ac_try\"") >&5
(eval $ac_try) 2>&5 (eval $ac_try) 2>&5
ac_status=$? ac_status=$?
echo "$as_me:9662: \$? = $ac_status" >&5 echo "$as_me:9664: \$? = $ac_status" >&5
(exit "$ac_status"); }; }; then (exit "$ac_status"); }; }; then
cf_cv_dcl_sys_nerr=yes cf_cv_dcl_sys_nerr=yes
else else
echo "$as_me: failed program was:" >&5 echo "$as_me: failed program was:" >&5
cat "conftest.$ac_ext" >&5 cat "conftest.$ac_ext" >&5
cf_cv_dcl_sys_nerr=no cf_cv_dcl_sys_nerr=no
fi fi
rm -f "conftest.$ac_objext" "conftest.$ac_ext" rm -f "conftest.$ac_objext" "conftest.$ac_ext"
fi fi
echo "$as_me:9673: result: $cf_cv_dcl_sys_nerr" >&5 echo "$as_me:9675: result: $cf_cv_dcl_sys_nerr" >&5
echo "${ECHO_T}$cf_cv_dcl_sys_nerr" >&6 echo "${ECHO_T}$cf_cv_dcl_sys_nerr" >&6
if test "$cf_cv_dcl_sys_nerr" = no ; then if test "$cf_cv_dcl_sys_nerr" = no ; then
cf_result=`echo "decl_sys_nerr" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJ KLMNOPQRSTUVWXYZ___%` cf_result=`echo "decl_sys_nerr" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJ KLMNOPQRSTUVWXYZ___%`
cat >>confdefs.h <<EOF cat >>confdefs.h <<EOF
#define $cf_result 1 #define $cf_result 1
EOF EOF
fi fi
# It's possible (for near-UNIX clones) that the data doesn't exist # It's possible (for near-UNIX clones) that the data doesn't exist
echo "$as_me:9688: checking if external sys_nerr exists" >&5 echo "$as_me:9690: checking if external sys_nerr exists" >&5
echo $ECHO_N "checking if external sys_nerr exists... $ECHO_C" >&6 echo $ECHO_N "checking if external sys_nerr exists... $ECHO_C" >&6
if test "${cf_cv_have_sys_nerr+set}" = set; then if test "${cf_cv_have_sys_nerr+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6 echo $ECHO_N "(cached) $ECHO_C" >&6
else else
cat >"conftest.$ac_ext" <<_ACEOF cat >"conftest.$ac_ext" <<_ACEOF
#line 9695 "configure" #line 9697 "configure"
#include "confdefs.h" #include "confdefs.h"
#undef sys_nerr #undef sys_nerr
extern int sys_nerr; extern int sys_nerr;
int int
main (void) main (void)
{ {
sys_nerr = 2 sys_nerr = 2
; ;
return 0; return 0;
} }
_ACEOF _ACEOF
rm -f "conftest.$ac_objext" "conftest$ac_exeext" rm -f "conftest.$ac_objext" "conftest$ac_exeext"
if { (eval echo "$as_me:9710: \"$ac_link\"") >&5 if { (eval echo "$as_me:9712: \"$ac_link\"") >&5
(eval $ac_link) 2>&5 (eval $ac_link) 2>&5
ac_status=$? ac_status=$?
echo "$as_me:9713: \$? = $ac_status" >&5 echo "$as_me:9715: \$? = $ac_status" >&5
(exit "$ac_status"); } && (exit "$ac_status"); } &&
{ ac_try='test -s "conftest$ac_exeext"' { ac_try='test -s "conftest$ac_exeext"'
{ (eval echo "$as_me:9716: \"$ac_try\"") >&5 { (eval echo "$as_me:9718: \"$ac_try\"") >&5
(eval $ac_try) 2>&5 (eval $ac_try) 2>&5
ac_status=$? ac_status=$?
echo "$as_me:9719: \$? = $ac_status" >&5 echo "$as_me:9721: \$? = $ac_status" >&5
(exit "$ac_status"); }; }; then (exit "$ac_status"); }; }; then
cf_cv_have_sys_nerr=yes cf_cv_have_sys_nerr=yes
else else
echo "$as_me: failed program was:" >&5 echo "$as_me: failed program was:" >&5
cat "conftest.$ac_ext" >&5 cat "conftest.$ac_ext" >&5
cf_cv_have_sys_nerr=no cf_cv_have_sys_nerr=no
fi fi
rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext" rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
fi fi
echo "$as_me:9730: result: $cf_cv_have_sys_nerr" >&5 echo "$as_me:9732: result: $cf_cv_have_sys_nerr" >&5
echo "${ECHO_T}$cf_cv_have_sys_nerr" >&6 echo "${ECHO_T}$cf_cv_have_sys_nerr" >&6
if test "$cf_cv_have_sys_nerr" = yes ; then if test "$cf_cv_have_sys_nerr" = yes ; then
cf_result=`echo "have_sys_nerr" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJ KLMNOPQRSTUVWXYZ___%` cf_result=`echo "have_sys_nerr" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJ KLMNOPQRSTUVWXYZ___%`
cat >>confdefs.h <<EOF cat >>confdefs.h <<EOF
#define $cf_result 1 #define $cf_result 1
EOF EOF
fi fi
echo "$as_me:9743: checking if external sys_errlist is declared" >&5 echo "$as_me:9745: checking if external sys_errlist is declared" >&5
echo $ECHO_N "checking if external sys_errlist is declared... $ECHO_C" >&6 echo $ECHO_N "checking if external sys_errlist is declared... $ECHO_C" >&6
if test "${cf_cv_dcl_sys_errlist+set}" = set; then if test "${cf_cv_dcl_sys_errlist+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6 echo $ECHO_N "(cached) $ECHO_C" >&6
else else
cat >"conftest.$ac_ext" <<_ACEOF cat >"conftest.$ac_ext" <<_ACEOF
#line 9750 "configure" #line 9752 "configure"
#include "confdefs.h" #include "confdefs.h"
#ifdef HAVE_STDLIB_H #ifdef HAVE_STDLIB_H
#include <stdlib.h> #include <stdlib.h>
#endif #endif
#include <stdio.h> #include <stdio.h>
#include <sys/types.h> #include <sys/types.h>
#include <errno.h> #include <errno.h>
int int
main (void) main (void)
{ {
int x = (int) sys_errlist; (void)x int x = (int) sys_errlist; (void)x
; ;
return 0; return 0;
} }
_ACEOF _ACEOF
rm -f "conftest.$ac_objext" rm -f "conftest.$ac_objext"
if { (eval echo "$as_me:9768: \"$ac_compile\"") >&5 if { (eval echo "$as_me:9770: \"$ac_compile\"") >&5
(eval $ac_compile) 2>&5 (eval $ac_compile) 2>&5
ac_status=$? ac_status=$?
echo "$as_me:9771: \$? = $ac_status" >&5 echo "$as_me:9773: \$? = $ac_status" >&5