From 5141b01619e6bcb99cb68b684e3bd81ecde542d6 Mon Sep 17 00:00:00 2001 From: Akim Demaille Date: Fri, 16 Mar 2001 14:50:40 +0000 Subject: [PATCH] * m4/strerror_r.m4: New. * m4/error.m4: Run AC_FUNC_STRERROR_R. * lib/error.h, lib/error.c: Update. --- ChangeLog | 6 + Makefile.in | 2 +- aclocal.m4 | 92 +- config.hin | 7 + configure | 2403 ++++++++++++++++++++++++++-------------------- configure.in | 2 +- lib/error.c | 17 +- lib/error.h | 78 -- m4/Makefile.am | 1 + m4/Makefile.in | 2 +- m4/error.m4 | 1 + m4/strerror_r.m4 | 66 ++ tests/.cvsignore | 2 +- 13 files changed, 1540 insertions(+), 1139 deletions(-) create mode 100644 m4/strerror_r.m4 diff --git a/ChangeLog b/ChangeLog index ffa4a5ab..533d05e5 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2001-03-16 Akim Demaille + + * m4/strerror_r.m4: New. + * m4/error.m4: Run AC_FUNC_STRERROR_R. + * lib/error.h, lib/error.c: Update. + 2001-03-16 Akim Demaille * src/getargs.c (longopts): Clean up. diff --git a/Makefile.in b/Makefile.in index 3e6bfea3..de90d795 100644 --- a/Makefile.in +++ b/Makefile.in @@ -126,7 +126,7 @@ Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status $(BUILT_SOURCES) $(ACLOCAL_M4): configure.in m4/atconfig.m4 m4/c-bs-a.m4 m4/error.m4 \ m4/gettext.m4 m4/lcmessage.m4 m4/m4.m4 m4/malloc.m4 \ m4/mbstate_t.m4 m4/prereq.m4 m4/progtest.m4 \ - m4/realloc.m4 m4/warning.m4 + m4/realloc.m4 m4/strerror_r.m4 m4/warning.m4 cd $(srcdir) && $(ACLOCAL) $(ACLOCAL_AMFLAGS) config.status: $(srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) diff --git a/aclocal.m4 b/aclocal.m4 index b6938b65..f376dc0a 100644 --- a/aclocal.m4 +++ b/aclocal.m4 @@ -423,6 +423,86 @@ AC_DEFUN(AC_MBSTATE_T, [Define to a type if does not define.]) fi]) +#serial 1 + +dnl FIXME: put these prerequisite-only *.m4 files in a separate +dnl directory -- otherwise, they'll conflict with existing files. + +dnl These are the prerequisite macros for GNU's error.c file. +AC_DEFUN(jm_PREREQ_ERROR, +[ + AC_CHECK_FUNCS(strerror strerror_r vprintf doprnt) + AC_HEADER_STDC + AC_FUNC_STRERROR_R +]) + +#serial 1002 +# Experimental replacement for the function in the latest CVS autoconf. +# If the compile-test says strerror_r doesn't work, then resort to a +# `run'-test that works on BeOS and segfaults on DEC Unix. +# Use with the error.c file in ../lib. + +undefine([AC_FUNC_STRERROR_R]) + +# AC_FUNC_STRERROR_R +# ------------------ +AC_DEFUN([AC_FUNC_STRERROR_R], +[AC_CHECK_DECLS([strerror_r]) +AC_CHECK_FUNCS([strerror_r]) +if test $ac_cv_func_strerror_r = yes; then + AC_CHECK_HEADERS(string.h) + AC_CACHE_CHECK([for working strerror_r], + ac_cv_func_strerror_r_works, + [ + AC_TRY_COMPILE( + [ +# include +# if HAVE_STRING_H +# include +# endif + ], + [ + char buf[100]; + char x = *strerror_r (0, buf, sizeof buf); + ], + ac_cv_func_strerror_r_works=yes, + ac_cv_func_strerror_r_works=no + ) + if test $ac_cv_func_strerror_r_works = no; then + # strerror_r seems not to work, but now we have to choose between + # systems that have relatively inaccessible declarations for the + # function. BeOS and DEC UNIX 4.0 fall in this category, but the + # former has a strerror_r that returns char*, while the latter + # has a strerror_r that returns `int'. + # This test should segfault on the DEC system. + AC_TRY_RUN( + [ +# include +# include +# include + + extern char *strerror_r (); + + int + main () + { + char buf[100]; + char x = *strerror_r (0, buf, sizeof buf); + exit (!isalpha (x)); + } + ], + ac_cv_func_strerror_r_works=yes, + ac_cv_func_strerror_r_works=no, + ac_cv_func_strerror_r_works=no) + fi + ]) + if test $ac_cv_func_strerror_r_works = yes; then + AC_DEFINE_UNQUOTED(HAVE_WORKING_STRERROR_R, 1, + [Define to 1 if `strerror_r' returns a string.]) + fi +fi +])# AC_FUNC_STRERROR_R + # Macro to add for using GNU gettext. # Ulrich Drepper , 1995. # @@ -813,15 +893,3 @@ AC_DEFUN(AM_LC_MESSAGES, fi fi]) -#serial 1 - -dnl FIXME: put these prerequisite-only *.m4 files in a separate -dnl directory -- otherwise, they'll conflict with existing files. - -dnl These are the prerequisite macros for GNU's error.c file. -AC_DEFUN(jm_PREREQ_ERROR, -[ - AC_CHECK_FUNCS(strerror strerror_r vprintf doprnt) - AC_HEADER_STDC -]) - diff --git a/config.hin b/config.hin index 6192676d..19a94f90 100644 --- a/config.hin +++ b/config.hin @@ -40,6 +40,10 @@ */ #undef HAVE_DECL_STPCPY +/* Define to 1 if you have the declaration of `strerror_r', and to 0 if you + don't. */ +#undef HAVE_DECL_STRERROR_R + /* Define to 1 if you have the declaration of `strndup', and to 0 if you don't. */ #undef HAVE_DECL_STRNDUP @@ -171,6 +175,9 @@ /* Define if you have the header file. */ #undef HAVE_WCTYPE_H +/* Define to 1 if `strerror_r' returns a string. */ +#undef HAVE_WORKING_STRERROR_R + /* Define if you have the `__argz_count' function. */ #undef HAVE___ARGZ_COUNT diff --git a/configure b/configure index ff80bd26..a112a870 100755 --- a/configure +++ b/configure @@ -2,7 +2,7 @@ # Guess values for system-dependent variables and create Makefiles. # Generated by Autoconf 2.49d. # -# Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000 +# Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001 # Free Software Foundation, Inc. # This configure script is free software; the Free Software Foundation # gives unlimited permission to copy, distribute and modify it. @@ -21,41 +21,25 @@ else as_expr=false fi -rm -f conftest conftest.exe conftest.file -echo >conftest.file -if ln -s conftest.file conftest 2>/dev/null; then +rm -f conf$$ conf$$.exe conf$$.file +echo >conf$$.file +if ln -s conf$$.file conf$$ 2>/dev/null; then # We could just check for DJGPP; but this test a) works b) is more generic # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). - if test -f conftest.exe; then + if test -f conf$$.exe; then # Don't use ln at all; we don't have any links as_ln_s='cp -p' else as_ln_s='ln -s' fi -elif ln conftest.file conftest 2>/dev/null; then +elif ln conf$$.file conf$$ 2>/dev/null; then as_ln_s=ln else as_ln_s='cp -p' fi -rm -f conftest conftest.exe conftest.file +rm -f conf$$ conf$$.exe conf$$.file -# Find out how to test for executable files. Don't use a zero-byte file, -# as systems may use methods other than mode bits to determine executability. -cat >conftest.file <<_ASEOF -#! /bin/sh -exit 0 -_ASEOF -chmod +x conftest.file -if test -x conftest.file >/dev/null 2>&1; then - as_executable_p="test -x" -elif test -f conftest.file >/dev/null 2>&1; then - as_executable_p="test -f" -else - { { echo "$as_me:54: error: cannot check whether a file is executable on this system" >&5 -echo "$as_me: error: cannot check whether a file is executable on this system" >&2;} - { (exit 1); exit 1; }; } -fi -rm -f conftest.file +as_executable_p="test -f" # Support unset when possible. if (FOO=FOO; unset FOO) >/dev/null 2>&1; then @@ -289,7 +273,7 @@ do ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` # Reject names that are not valid shell variable names. expr "x$ac_feature" : ".*[^-_$ac_cr_alnum]" >/dev/null && - { { echo "$as_me:292: error: invalid feature name: $ac_feature" >&5 + { { echo "$as_me:276: error: invalid feature name: $ac_feature" >&5 echo "$as_me: error: invalid feature name: $ac_feature" >&2;} { (exit 1); exit 1; }; } ac_feature=`echo $ac_feature | sed 's/-/_/g'` @@ -299,7 +283,7 @@ echo "$as_me: error: invalid feature name: $ac_feature" >&2;} ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` # Reject names that are not valid shell variable names. expr "x$ac_feature" : ".*[^-_$ac_cr_alnum]" >/dev/null && - { { echo "$as_me:302: error: invalid feature name: $ac_feature" >&5 + { { echo "$as_me:286: error: invalid feature name: $ac_feature" >&5 echo "$as_me: error: invalid feature name: $ac_feature" >&2;} { (exit 1); exit 1; }; } ac_feature=`echo $ac_feature | sed 's/-/_/g'` @@ -482,7 +466,7 @@ echo "$as_me: error: invalid feature name: $ac_feature" >&2;} ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` # Reject names that are not valid shell variable names. expr "x$ac_package" : ".*[^-_$ac_cr_alnum]" >/dev/null && - { { echo "$as_me:485: error: invalid package name: $ac_package" >&5 + { { echo "$as_me:469: error: invalid package name: $ac_package" >&5 echo "$as_me: error: invalid package name: $ac_package" >&2;} { (exit 1); exit 1; }; } ac_package=`echo $ac_package| sed 's/-/_/g'` @@ -496,7 +480,7 @@ echo "$as_me: error: invalid package name: $ac_package" >&2;} ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` # Reject names that are not valid shell variable names. expr "x$ac_package" : ".*[^-_$ac_cr_alnum]" >/dev/null && - { { echo "$as_me:499: error: invalid package name: $ac_package" >&5 + { { echo "$as_me:483: error: invalid package name: $ac_package" >&5 echo "$as_me: error: invalid package name: $ac_package" >&2;} { (exit 1); exit 1; }; } ac_package=`echo $ac_package | sed 's/-/_/g'` @@ -520,7 +504,7 @@ echo "$as_me: error: invalid package name: $ac_package" >&2;} | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) x_libraries=$ac_optarg ;; - -*) { { echo "$as_me:523: error: unrecognized option: $ac_option + -*) { { echo "$as_me:507: error: unrecognized option: $ac_option Try \`$0 --help' for more information." >&5 echo "$as_me: error: unrecognized option: $ac_option Try \`$0 --help' for more information." >&2;} @@ -531,7 +515,7 @@ Try \`$0 --help' for more information." >&2;} ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` # Reject names that are not valid shell variable names. expr "x$ac_envvar" : ".*[^_$ac_cr_alnum]" >/dev/null && - { { echo "$as_me:534: error: invalid variable name: $ac_envvar" >&5 + { { echo "$as_me:518: error: invalid variable name: $ac_envvar" >&5 echo "$as_me: error: invalid variable name: $ac_envvar" >&2;} { (exit 1); exit 1; }; } ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` @@ -540,10 +524,10 @@ echo "$as_me: error: invalid variable name: $ac_envvar" >&2;} *) # FIXME: should be removed in autoconf 3.0. - { echo "$as_me:543: WARNING: you should use --build, --host, --target" >&5 + { echo "$as_me:527: WARNING: you should use --build, --host, --target" >&5 echo "$as_me: WARNING: you should use --build, --host, --target" >&2;} expr "x$ac_option" : ".*[^-._$ac_cr_alnum]" >/dev/null && - { echo "$as_me:546: WARNING: invalid host type: $ac_option" >&5 + { echo "$as_me:530: WARNING: invalid host type: $ac_option" >&5 echo "$as_me: WARNING: invalid host type: $ac_option" >&2;} : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} ;; @@ -553,7 +537,7 @@ done if test -n "$ac_prev"; then ac_option=--`echo $ac_prev | sed 's/_/-/g'` - { { echo "$as_me:556: error: missing argument to $ac_option" >&5 + { { echo "$as_me:540: error: missing argument to $ac_option" >&5 echo "$as_me: error: missing argument to $ac_option" >&2;} { (exit 1); exit 1; }; } fi @@ -567,7 +551,7 @@ do case $ac_val in [\\/$]* | ?:[\\/]* ) ;; NONE ) ;; - *) { { echo "$as_me:570: error: expected an absolute path for --$ac_var: $ac_val" >&5 + *) { { echo "$as_me:554: error: expected an absolute path for --$ac_var: $ac_val" >&5 echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2;} { (exit 1); exit 1; }; };; esac @@ -583,7 +567,7 @@ target=$target_alias if test "x$host_alias" != x; then if test "x$build_alias" = x; then cross_compiling=maybe - { echo "$as_me:586: WARNING: If you wanted to set the --build type, don't use --host. + { echo "$as_me:570: WARNING: If you wanted to set the --build type, don't use --host. If a cross compiler is detected then cross compile mode will be used." >&5 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. If a cross compiler is detected then cross compile mode will be used." >&2;} @@ -613,11 +597,11 @@ else fi if test ! -r $srcdir/$ac_unique_file; then if test "$ac_srcdir_defaulted" = yes; then - { { echo "$as_me:616: error: cannot find sources in $ac_confdir or .." >&5 + { { echo "$as_me:600: error: cannot find sources in $ac_confdir or .." >&5 echo "$as_me: error: cannot find sources in $ac_confdir or .." >&2;} { (exit 1); exit 1; }; } else - { { echo "$as_me:620: error: cannot find sources in $srcdir" >&5 + { { echo "$as_me:604: error: cannot find sources in $srcdir" >&5 echo "$as_me: error: cannot find sources in $srcdir" >&2;} { (exit 1); exit 1; }; } fi @@ -784,7 +768,7 @@ if test "$ac_init_help" = "recursive"; then echo $ac_configure --help else - { echo "$as_me:787: WARNING: no configuration information is in $ac_subdir" >&5 + { echo "$as_me:771: WARNING: no configuration information is in $ac_subdir" >&5 echo "$as_me: WARNING: no configuration information is in $ac_subdir" >&2;} fi cd $ac_popdir @@ -795,7 +779,7 @@ test -n "$ac_init_help" && exit 0 if $ac_init_version; then cat <<\EOF -Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000 +Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001 Free Software Foundation, Inc. This configure script is free software; the Free Software Foundation gives unlimited permission to copy, distribute and modify it. @@ -863,7 +847,7 @@ trap 'exit_status=$? test "$ac_signal" != 0 && echo "$as_me: caught signal $ac_signal" >&5 echo "$as_me: exit $exit_status" >&5 - rm -rf conftest* confdefs* core core.* *.core $ac_clean_files && + rm -rf conftest* confdefs* core core.* *.core conf$$* $ac_clean_files && exit $exit_status ' 0 for ac_signal in 1 2 13 15; do @@ -887,7 +871,7 @@ if test -z "$CONFIG_SITE"; then fi for ac_site_file in $CONFIG_SITE; do if test -r "$ac_site_file"; then - { echo "$as_me:890: loading site script $ac_site_file" >&5 + { echo "$as_me:874: loading site script $ac_site_file" >&5 echo "$as_me: loading site script $ac_site_file" >&6;} cat "$ac_site_file" >&5 . "$ac_site_file" @@ -898,7 +882,7 @@ if test -r "$cache_file"; then # Some versions of bash will fail to source /dev/null (special # files actually), so we avoid doing that. if test -f "$cache_file"; then - { echo "$as_me:901: loading cache $cache_file" >&5 + { echo "$as_me:885: loading cache $cache_file" >&5 echo "$as_me: loading cache $cache_file" >&6;} case $cache_file in [\\/]* | ?:[\\/]* ) . $cache_file;; @@ -906,7 +890,7 @@ echo "$as_me: loading cache $cache_file" >&6;} esac fi else - { echo "$as_me:909: creating cache $cache_file" >&5 + { echo "$as_me:893: creating cache $cache_file" >&5 echo "$as_me: creating cache $cache_file" >&6;} >$cache_file fi @@ -922,30 +906,30 @@ for ac_var in `(set) 2>&1 | eval ac_new_val="\$ac_env_${ac_var}_value" case $ac_old_set,$ac_new_set in set,) - { echo "$as_me:925: WARNING: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 + { echo "$as_me:909: WARNING: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 echo "$as_me: WARNING: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} ac_suggest_removing_cache=: ;; ,set) - { echo "$as_me:929: WARNING: \`$ac_var' was not set in the previous run" >&5 + { echo "$as_me:913: WARNING: \`$ac_var' was not set in the previous run" >&5 echo "$as_me: WARNING: \`$ac_var' was not set in the previous run" >&2;} ac_suggest_removing_cache=: ;; ,);; *) if test "x$ac_old_val" != "x$ac_new_val"; then - { echo "$as_me:935: WARNING: \`$ac_var' has changed since the previous run:" >&5 + { echo "$as_me:919: WARNING: \`$ac_var' has changed since the previous run:" >&5 echo "$as_me: WARNING: \`$ac_var' has changed since the previous run:" >&2;} - { echo "$as_me:937: WARNING: former value: $ac_old_val" >&5 + { echo "$as_me:921: WARNING: former value: $ac_old_val" >&5 echo "$as_me: WARNING: former value: $ac_old_val" >&2;} - { echo "$as_me:939: WARNING: current value: $ac_new_val" >&5 + { echo "$as_me:923: WARNING: current value: $ac_new_val" >&5 echo "$as_me: WARNING: current value: $ac_new_val" >&2;} ac_suggest_removing_cache=: fi;; esac done if $ac_suggest_removing_cache; then - { echo "$as_me:946: WARNING: changes in the environment can compromise the build" >&5 + { echo "$as_me:930: WARNING: changes in the environment can compromise the build" >&5 echo "$as_me: WARNING: changes in the environment can compromise the build" >&2;} - { echo "$as_me:948: WARNING: consider removing $cache_file and starting over" >&5 + { echo "$as_me:932: WARNING: consider removing $cache_file and starting over" >&5 echo "$as_me: WARNING: consider removing $cache_file and starting over" >&2;} fi @@ -961,6 +945,20 @@ case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; *) ECHO_N= ECHO_C='\c' ECHO_T= ;; esac +echo "#! $SHELL" >conftest.sh +echo "exit 0" >>conftest.sh +chmod +x conftest.sh +if { (echo "$as_me:951: PATH=\".;.\"; conftest.sh") >&5 + (PATH=".;."; conftest.sh) 2>&5 + ac_status=$? + echo "$as_me:954: \$? = $ac_status" >&5 + (exit $ac_status); }; then + ac_path_separator=';' +else + ac_path_separator=: +fi +PATH_SEPARATOR="$ac_path_separator" +rm -f conftest.sh ac_aux_dir= for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do @@ -979,7 +977,7 @@ for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do fi done if test -z "$ac_aux_dir"; then - { { echo "$as_me:982: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5 + { { echo "$as_me:980: 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;} { (exit 1); exit 1; }; } fi @@ -999,14 +997,15 @@ ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure. # AFS /usr/afsws/bin/install, which mishandles nonexistent args # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" # ./install, which can be erroneously created by make from ./install.sh. -echo "$as_me:1002: checking for a BSD compatible install" >&5 +echo "$as_me:1000: checking for a BSD compatible install" >&5 echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6 if test -z "$INSTALL"; then if test "${ac_cv_path_install+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else - ac_save_IFS=$IFS; IFS=':' + ac_save_IFS=$IFS; IFS=$ac_path_separator for ac_dir in $PATH; do + IFS=$ac_save_IFS # Account for people who put trailing slashes in PATH elements. case $ac_dir/ in / | ./ | .// | /cC/* \ @@ -1017,7 +1016,7 @@ else # Don't use installbsd from OSF since it installs stuff as root # by default. for ac_prog in ginstall scoinst install; do - if test -f "$ac_dir/$ac_prog"; then + if $as_executable_p "$ac_dir/$ac_prog"; then if test $ac_prog = install && grep dspmsg "$ac_dir/$ac_prog" >/dev/null 2>&1; then # AIX install. It has an incompatible calling convention. @@ -1035,7 +1034,6 @@ else ;; esac done - IFS=$ac_save_IFS fi if test "${ac_cv_path_install+set}" = set; then @@ -1048,7 +1046,7 @@ fi INSTALL=$ac_install_sh fi fi -echo "$as_me:1051: result: $INSTALL" >&5 +echo "$as_me:1049: result: $INSTALL" >&5 echo "${ECHO_T}$INSTALL" >&6 # Use test -z because SunOS4 sh mishandles braces in ${var-val}. @@ -1059,7 +1057,7 @@ test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' -echo "$as_me:1062: checking whether build environment is sane" >&5 +echo "$as_me:1060: checking whether build environment is sane" >&5 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6 # Just in case sleep 1 @@ -1082,7 +1080,7 @@ if ( # if, for instance, CONFIG_SHELL is bash and it inherits a # broken ls alias from the environment. This has actually # happened. Such a system could not be considered "sane". - { { echo "$as_me:1085: error: ls -t appears to fail. Make sure there is not a broken + { { echo "$as_me:1083: error: ls -t appears to fail. Make sure there is not a broken alias in your environment" >&5 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken alias in your environment" >&2;} @@ -1095,14 +1093,14 @@ then # Ok. : else - { { echo "$as_me:1098: error: newly created file is older than distributed files! + { { echo "$as_me:1096: error: newly created file is older than distributed files! Check your system clock" >&5 echo "$as_me: error: newly created file is older than distributed files! Check your system clock" >&2;} { (exit 1); exit 1; }; } fi rm -f conftest* -echo "$as_me:1105: result: yes" >&5 +echo "$as_me:1103: result: yes" >&5 echo "${ECHO_T}yes" >&6 if test "$program_transform_name" = s,x,x,; then program_transform_name= @@ -1123,7 +1121,7 @@ test "$program_suffix" != NONE && # sed with no file args requires a program. test -z "$program_transform_name" && program_transform_name="s,x,x," -echo "$as_me:1126: checking whether ${MAKE-make} sets \${MAKE}" >&5 +echo "$as_me:1124: checking whether ${MAKE-make} sets \${MAKE}" >&5 echo $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" >&6 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'` if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then @@ -1143,11 +1141,11 @@ fi rm -f conftest.make fi if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then - echo "$as_me:1146: result: yes" >&5 + echo "$as_me:1144: result: yes" >&5 echo "${ECHO_T}yes" >&6 SET_MAKE= else - echo "$as_me:1150: result: no" >&5 + echo "$as_me:1148: result: no" >&5 echo "${ECHO_T}no" >&6 SET_MAKE="MAKE=${MAKE-make}" fi @@ -1157,7 +1155,7 @@ PACKAGE=bison VERSION=1.28a if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then - { { echo "$as_me:1160: error: source directory already configured; run \"make distclean\" there first" >&5 + { { echo "$as_me:1158: error: source directory already configured; run \"make distclean\" there first" >&5 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;} { (exit 1); exit 1; }; } fi @@ -1171,78 +1169,78 @@ cat >>confdefs.h <&5 +echo "$as_me:1172: checking for working aclocal" >&5 echo $ECHO_N "checking for working aclocal... $ECHO_C" >&6 # Run test in a subshell; some versions of sh will print an error if # an executable is not found, even if stderr is redirected. # Redirect stdin to placate older versions of autoconf. Sigh. if (aclocal --version) < /dev/null > /dev/null 2>&1; then ACLOCAL=aclocal - echo "$as_me:1181: result: found" >&5 + echo "$as_me:1179: result: found" >&5 echo "${ECHO_T}found" >&6 else ACLOCAL="$missing_dir/missing aclocal" - echo "$as_me:1185: result: missing" >&5 + echo "$as_me:1183: result: missing" >&5 echo "${ECHO_T}missing" >&6 fi -echo "$as_me:1189: checking for working autoconf" >&5 +echo "$as_me:1187: checking for working autoconf" >&5 echo $ECHO_N "checking for working autoconf... $ECHO_C" >&6 # Run test in a subshell; some versions of sh will print an error if # an executable is not found, even if stderr is redirected. # Redirect stdin to placate older versions of autoconf. Sigh. if (autoconf --version) < /dev/null > /dev/null 2>&1; then AUTOCONF=autoconf - echo "$as_me:1196: result: found" >&5 + echo "$as_me:1194: result: found" >&5 echo "${ECHO_T}found" >&6 else AUTOCONF="$missing_dir/missing autoconf" - echo "$as_me:1200: result: missing" >&5 + echo "$as_me:1198: result: missing" >&5 echo "${ECHO_T}missing" >&6 fi -echo "$as_me:1204: checking for working automake" >&5 +echo "$as_me:1202: checking for working automake" >&5 echo $ECHO_N "checking for working automake... $ECHO_C" >&6 # Run test in a subshell; some versions of sh will print an error if # an executable is not found, even if stderr is redirected. # Redirect stdin to placate older versions of autoconf. Sigh. if (automake --version) < /dev/null > /dev/null 2>&1; then AUTOMAKE=automake - echo "$as_me:1211: result: found" >&5 + echo "$as_me:1209: result: found" >&5 echo "${ECHO_T}found" >&6 else AUTOMAKE="$missing_dir/missing automake" - echo "$as_me:1215: result: missing" >&5 + echo "$as_me:1213: result: missing" >&5 echo "${ECHO_T}missing" >&6 fi -echo "$as_me:1219: checking for working autoheader" >&5 +echo "$as_me:1217: checking for working autoheader" >&5 echo $ECHO_N "checking for working autoheader... $ECHO_C" >&6 # Run test in a subshell; some versions of sh will print an error if # an executable is not found, even if stderr is redirected. # Redirect stdin to placate older versions of autoconf. Sigh. if (autoheader --version) < /dev/null > /dev/null 2>&1; then AUTOHEADER=autoheader - echo "$as_me:1226: result: found" >&5 + echo "$as_me:1224: result: found" >&5 echo "${ECHO_T}found" >&6 else AUTOHEADER="$missing_dir/missing autoheader" - echo "$as_me:1230: result: missing" >&5 + echo "$as_me:1228: result: missing" >&5 echo "${ECHO_T}missing" >&6 fi -echo "$as_me:1234: checking for working makeinfo" >&5 +echo "$as_me:1232: checking for working makeinfo" >&5 echo $ECHO_N "checking for working makeinfo... $ECHO_C" >&6 # Run test in a subshell; some versions of sh will print an error if # an executable is not found, even if stderr is redirected. # Redirect stdin to placate older versions of autoconf. Sigh. if (makeinfo --version) < /dev/null > /dev/null 2>&1; then MAKEINFO=makeinfo - echo "$as_me:1241: result: found" >&5 + echo "$as_me:1239: result: found" >&5 echo "${ECHO_T}found" >&6 else MAKEINFO="$missing_dir/missing makeinfo" - echo "$as_me:1245: result: missing" >&5 + echo "$as_me:1243: result: missing" >&5 echo "${ECHO_T}missing" >&6 fi @@ -1270,7 +1268,7 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. set dummy ${ac_tool_prefix}gcc; ac_word=$2 -echo "$as_me:1273: checking for $ac_word" >&5 +echo "$as_me:1271: checking for $ac_word" >&5 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 if test "${ac_cv_prog_CC+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 @@ -1278,7 +1276,7 @@ else if test -n "$CC"; then ac_cv_prog_CC="$CC" # Let the user override the test. else - ac_save_IFS=$IFS; IFS=':' + ac_save_IFS=$IFS; IFS=$ac_path_separator ac_dummy="$PATH" for ac_dir in $ac_dummy; do IFS=$ac_save_IFS @@ -1292,10 +1290,10 @@ fi fi CC=$ac_cv_prog_CC if test -n "$CC"; then - echo "$as_me:1295: result: $CC" >&5 + echo "$as_me:1293: result: $CC" >&5 echo "${ECHO_T}$CC" >&6 else - echo "$as_me:1298: result: no" >&5 + echo "$as_me:1296: result: no" >&5 echo "${ECHO_T}no" >&6 fi @@ -1304,7 +1302,7 @@ if test -z "$ac_cv_prog_CC"; then ac_ct_CC=$CC # Extract the first word of "gcc", so it can be a program name with args. set dummy gcc; ac_word=$2 -echo "$as_me:1307: checking for $ac_word" >&5 +echo "$as_me:1305: checking for $ac_word" >&5 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 @@ -1312,7 +1310,7 @@ else if test -n "$ac_ct_CC"; then ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. else - ac_save_IFS=$IFS; IFS=':' + ac_save_IFS=$IFS; IFS=$ac_path_separator ac_dummy="$PATH" for ac_dir in $ac_dummy; do IFS=$ac_save_IFS @@ -1326,10 +1324,10 @@ fi fi ac_ct_CC=$ac_cv_prog_ac_ct_CC if test -n "$ac_ct_CC"; then - echo "$as_me:1329: result: $ac_ct_CC" >&5 + echo "$as_me:1327: result: $ac_ct_CC" >&5 echo "${ECHO_T}$ac_ct_CC" >&6 else - echo "$as_me:1332: result: no" >&5 + echo "$as_me:1330: result: no" >&5 echo "${ECHO_T}no" >&6 fi @@ -1342,7 +1340,7 @@ if test -z "$CC"; then if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. set dummy ${ac_tool_prefix}cc; ac_word=$2 -echo "$as_me:1345: checking for $ac_word" >&5 +echo "$as_me:1343: checking for $ac_word" >&5 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 if test "${ac_cv_prog_CC+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 @@ -1350,7 +1348,7 @@ else if test -n "$CC"; then ac_cv_prog_CC="$CC" # Let the user override the test. else - ac_save_IFS=$IFS; IFS=':' + ac_save_IFS=$IFS; IFS=$ac_path_separator ac_dummy="$PATH" for ac_dir in $ac_dummy; do IFS=$ac_save_IFS @@ -1364,10 +1362,10 @@ fi fi CC=$ac_cv_prog_CC if test -n "$CC"; then - echo "$as_me:1367: result: $CC" >&5 + echo "$as_me:1365: result: $CC" >&5 echo "${ECHO_T}$CC" >&6 else - echo "$as_me:1370: result: no" >&5 + echo "$as_me:1368: result: no" >&5 echo "${ECHO_T}no" >&6 fi @@ -1376,7 +1374,7 @@ if test -z "$ac_cv_prog_CC"; then ac_ct_CC=$CC # Extract the first word of "cc", so it can be a program name with args. set dummy cc; ac_word=$2 -echo "$as_me:1379: checking for $ac_word" >&5 +echo "$as_me:1377: checking for $ac_word" >&5 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 @@ -1384,7 +1382,7 @@ else if test -n "$ac_ct_CC"; then ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. else - ac_save_IFS=$IFS; IFS=':' + ac_save_IFS=$IFS; IFS=$ac_path_separator ac_dummy="$PATH" for ac_dir in $ac_dummy; do IFS=$ac_save_IFS @@ -1398,10 +1396,10 @@ fi fi ac_ct_CC=$ac_cv_prog_ac_ct_CC if test -n "$ac_ct_CC"; then - echo "$as_me:1401: result: $ac_ct_CC" >&5 + echo "$as_me:1399: result: $ac_ct_CC" >&5 echo "${ECHO_T}$ac_ct_CC" >&6 else - echo "$as_me:1404: result: no" >&5 + echo "$as_me:1402: result: no" >&5 echo "${ECHO_T}no" >&6 fi @@ -1414,7 +1412,7 @@ fi if test -z "$CC"; then # Extract the first word of "cc", so it can be a program name with args. set dummy cc; ac_word=$2 -echo "$as_me:1417: checking for $ac_word" >&5 +echo "$as_me:1415: checking for $ac_word" >&5 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 if test "${ac_cv_prog_CC+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 @@ -1423,7 +1421,7 @@ else ac_cv_prog_CC="$CC" # Let the user override the test. else ac_prog_rejected=no - ac_save_IFS=$IFS; IFS=':' + ac_save_IFS=$IFS; IFS=$ac_path_separator ac_dummy="$PATH" for ac_dir in $ac_dummy; do IFS=$ac_save_IFS @@ -1455,10 +1453,10 @@ fi fi CC=$ac_cv_prog_CC if test -n "$CC"; then - echo "$as_me:1458: result: $CC" >&5 + echo "$as_me:1456: result: $CC" >&5 echo "${ECHO_T}$CC" >&6 else - echo "$as_me:1461: result: no" >&5 + echo "$as_me:1459: result: no" >&5 echo "${ECHO_T}no" >&6 fi @@ -1469,7 +1467,7 @@ if test -z "$CC"; then do # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. set dummy $ac_tool_prefix$ac_prog; ac_word=$2 -echo "$as_me:1472: checking for $ac_word" >&5 +echo "$as_me:1470: checking for $ac_word" >&5 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 if test "${ac_cv_prog_CC+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 @@ -1477,7 +1475,7 @@ else if test -n "$CC"; then ac_cv_prog_CC="$CC" # Let the user override the test. else - ac_save_IFS=$IFS; IFS=':' + ac_save_IFS=$IFS; IFS=$ac_path_separator ac_dummy="$PATH" for ac_dir in $ac_dummy; do IFS=$ac_save_IFS @@ -1491,10 +1489,10 @@ fi fi CC=$ac_cv_prog_CC if test -n "$CC"; then - echo "$as_me:1494: result: $CC" >&5 + echo "$as_me:1492: result: $CC" >&5 echo "${ECHO_T}$CC" >&6 else - echo "$as_me:1497: result: no" >&5 + echo "$as_me:1495: result: no" >&5 echo "${ECHO_T}no" >&6 fi @@ -1507,7 +1505,7 @@ if test -z "$CC"; then do # Extract the first word of "$ac_prog", so it can be a program name with args. set dummy $ac_prog; ac_word=$2 -echo "$as_me:1510: checking for $ac_word" >&5 +echo "$as_me:1508: checking for $ac_word" >&5 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 @@ -1515,7 +1513,7 @@ else if test -n "$ac_ct_CC"; then ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. else - ac_save_IFS=$IFS; IFS=':' + ac_save_IFS=$IFS; IFS=$ac_path_separator ac_dummy="$PATH" for ac_dir in $ac_dummy; do IFS=$ac_save_IFS @@ -1529,10 +1527,10 @@ fi fi ac_ct_CC=$ac_cv_prog_ac_ct_CC if test -n "$ac_ct_CC"; then - echo "$as_me:1532: result: $ac_ct_CC" >&5 + echo "$as_me:1530: result: $ac_ct_CC" >&5 echo "${ECHO_T}$ac_ct_CC" >&6 else - echo "$as_me:1535: result: no" >&5 + echo "$as_me:1533: result: no" >&5 echo "${ECHO_T}no" >&6 fi @@ -1544,61 +1542,12 @@ fi fi -test -z "$CC" && { { echo "$as_me:1547: error: no acceptable cc found in \$PATH" >&5 +test -z "$CC" && { { echo "$as_me:1545: error: no acceptable cc found in \$PATH" >&5 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;} { (exit 1); exit 1; }; } -echo "$as_me:1551: checking for object suffix" >&5 -echo $ECHO_N "checking for object suffix... $ECHO_C" >&6 -if test "${ac_cv_objext+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - cat >conftest.$ac_ext <<_ACEOF -#line 1557 "configure" -#include "confdefs.h" - -int -main () -{ - - ; - return 0; -} -_ACEOF -rm -f conftest.o conftest.obj -if { (eval echo "$as_me:1569: \"$ac_compile\"") >&5 - (eval $ac_compile) 2>&5 - ac_status=$? - echo "$as_me:1572: \$? = $ac_status" >&5 - (exit $ac_status); }; then - for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do - case $ac_file in - *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb ) ;; - *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` - break;; - esac -done -else - echo "$as_me: failed program was:" >&5 -cat conftest.$ac_ext >&5 -{ { echo "$as_me:1584: error: cannot compute OBJEXT: cannot compile" >&5 -echo "$as_me: error: cannot compute OBJEXT: cannot compile" >&2;} - { (exit 1); exit 1; }; } -fi - -rm -f conftest.$ac_cv_objext conftest.$ac_ext -fi -echo "$as_me:1591: result: $ac_cv_objext" >&5 -echo "${ECHO_T}$ac_cv_objext" >&6 -OBJEXT=$ac_cv_objext -ac_objext=$OBJEXT -echo "$as_me:1595: checking for executable suffix" >&5 -echo $ECHO_N "checking for executable suffix... $ECHO_C" >&6 -if test "${ac_cv_exeext+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - cat >conftest.$ac_ext <<_ACEOF -#line 1601 "configure" +cat >conftest.$ac_ext <<_ACEOF +#line 1550 "configure" #include "confdefs.h" int @@ -1609,16 +1558,25 @@ main () return 0; } _ACEOF -# Try without -o first, disregard a.out. +ac_clean_files_save=$ac_clean_files +ac_clean_files="$ac_clean_files a.out a.exe" +# Try to create an executable without -o first, disregard a.out. +# It will help us diagnose broken compiler, and finding out an intuition +# of exeext. +echo "$as_me:1566: checking for C compiler default output" >&5 +echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` -if { (eval echo "$as_me:1614: \"$ac_link_default\"") >&5 +if { (eval echo "$as_me:1569: \"$ac_link_default\"") >&5 (eval $ac_link_default) 2>&5 ac_status=$? - echo "$as_me:1617: \$? = $ac_status" >&5 + echo "$as_me:1572: \$? = $ac_status" >&5 (exit $ac_status); }; then for ac_file in `ls a.exe conftest.exe a.* conftest conftest.* 2>/dev/null`; do case $ac_file in - *.$ac_ext | *.out | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;; + *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;; + a.out ) # We found the default executable, but exeext='' is most + # certainly right. + break;; *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` export ac_cv_exeext break;; @@ -1628,16 +1586,59 @@ done else echo "$as_me: failed program was:" >&5 cat conftest.$ac_ext >&5 +{ { echo "$as_me:1589: error: C compiler cannot create executables" >&5 +echo "$as_me: error: C compiler cannot create executables" >&2;} + { (exit 77); exit 77; }; } +fi + +ac_exeext=$ac_cv_exeext +echo "$as_me:1595: result: $ac_file" >&5 +echo "${ECHO_T}$ac_file" >&6 + +# Check the compiler produces executables we can run. If not, either +# the compiler is broken, or we cross compile. +echo "$as_me:1600: checking whether the C compiler works" >&5 +echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6 +# 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 test "$cross_compiling" != yes; then + if { ac_try='./$ac_file' + { (eval echo "$as_me:1606: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:1609: \$? = $ac_status" >&5 + (exit $ac_status); }; }; then + cross_compiling=no + else + if test "$cross_compiling" = maybe; then + cross_compiling=yes + else + { { echo "$as_me:1616: error: cannot run C compiled programs. +If you meant to cross compile, use \`--host'." >&5 +echo "$as_me: error: cannot run C compiled programs. +If you meant to cross compile, use \`--host'." >&2;} + { (exit 1); exit 1; }; } + fi + fi fi +echo "$as_me:1624: result: yes" >&5 +echo "${ECHO_T}yes" >&6 rm -f a.out a.exe conftest$ac_cv_exeext +ac_clean_files=$ac_clean_files_save +# Check the compiler produces executables we can run. If not, either +# the compiler is broken, or we cross compile. +echo "$as_me:1631: checking whether we are cross compiling" >&5 +echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6 +echo "$as_me:1633: result: $cross_compiling" >&5 +echo "${ECHO_T}$cross_compiling" >&6 -# We have not set ac_exeext yet which is needed by `ac_link'. -ac_exeext=$ac_cv_exeext -if { (eval echo "$as_me:1637: \"$ac_link\"") >&5 +echo "$as_me:1636: checking for executable suffix" >&5 +echo $ECHO_N "checking for executable suffix... $ECHO_C" >&6 +if { (eval echo "$as_me:1638: \"$ac_link\"") >&5 (eval $ac_link) 2>&5 ac_status=$? - echo "$as_me:1640: \$? = $ac_status" >&5 + echo "$as_me:1641: \$? = $ac_status" >&5 (exit $ac_status); }; then # If both `conftest.exe' and `conftest' are `present' (well, observable) # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will @@ -1653,22 +1654,25 @@ for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do esac done else - { { echo "$as_me:1656: error: cannot compute EXEEXT: cannot compile and link" >&5 + { { echo "$as_me:1657: error: cannot compute EXEEXT: cannot compile and link" >&5 echo "$as_me: error: cannot compute EXEEXT: cannot compile and link" >&2;} { (exit 1); exit 1; }; } fi -rm -f conftest.$ac_ext conftest$ac_cv_exeext - -fi -echo "$as_me:1664: result: $ac_cv_exeext" >&5 +rm -f conftest$ac_cv_exeext +echo "$as_me:1663: result: $ac_cv_exeext" >&5 echo "${ECHO_T}$ac_cv_exeext" >&6 + +rm -f conftest.$ac_ext EXEEXT=$ac_cv_exeext ac_exeext=$EXEEXT -echo "$as_me:1668: checking whether the C compiler works" >&5 -echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6 -cat >conftest.$ac_ext <<_ACEOF -#line 1671 "configure" +echo "$as_me:1669: checking for object suffix" >&5 +echo $ECHO_N "checking for object suffix... $ECHO_C" >&6 +if test "${ac_cv_objext+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + cat >conftest.$ac_ext <<_ACEOF +#line 1675 "configure" #include "confdefs.h" int @@ -1679,62 +1683,40 @@ main () return 0; } _ACEOF -rm -f conftest.$ac_objext conftest$ac_exeext -if { (eval echo "$as_me:1683: \"$ac_link\"") >&5 - (eval $ac_link) 2>&5 - ac_status=$? - echo "$as_me:1686: \$? = $ac_status" >&5 - (exit $ac_status); } && - { ac_try='test -s conftest$ac_exeext'; { (eval echo "$as_me:1688: \"$ac_try\"") >&5 - (eval $ac_try) 2>&5 - ac_status=$? - echo "$as_me:1691: \$? = $ac_status" >&5 - (exit $ac_status); }; }; then - # 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 test "$cross_compiling" != yes; then - if { ac_try='./conftest$ac_exeext'; { (eval echo "$as_me:1696: \"$ac_try\"") >&5 - (eval $ac_try) 2>&5 +rm -f conftest.o conftest.obj +if { (eval echo "$as_me:1687: \"$ac_compile\"") >&5 + (eval $ac_compile) 2>&5 ac_status=$? - echo "$as_me:1699: \$? = $ac_status" >&5 - (exit $ac_status); }; }; then - cross_compiling=no - else - if test "$cross_compiling" = maybe; then - cross_compiling=yes - else - { { echo "$as_me:1706: error: cannot run C compiled programs. -To enable cross compilation, use \`--host'." >&5 -echo "$as_me: error: cannot run C compiled programs. -To enable cross compilation, use \`--host'." >&2;} - { (exit 1); exit 1; }; } - fi - fi -fi -echo "$as_me:1714: result: yes" >&5 -echo "${ECHO_T}yes" >&6 + echo "$as_me:1690: \$? = $ac_status" >&5 + (exit $ac_status); }; then + for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do + case $ac_file in + *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb ) ;; + *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` + break;; + esac +done else echo "$as_me: failed program was:" >&5 cat conftest.$ac_ext >&5 -echo "$as_me:1719: result: no" >&5 -echo "${ECHO_T}no" >&6 -{ { echo "$as_me:1721: error: C compiler cannot create executables" >&5 -echo "$as_me: error: C compiler cannot create executables" >&2;} - { (exit 77); exit 77; }; } +{ { echo "$as_me:1702: error: cannot compute OBJEXT: cannot compile" >&5 +echo "$as_me: error: cannot compute OBJEXT: cannot compile" >&2;} + { (exit 1); exit 1; }; } fi -rm -f conftest$ac_exeext conftest.$ac_ext -echo "$as_me:1726: checking whether we are cross compiling" >&5 -echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6 -echo "$as_me:1728: result: $cross_compiling" >&5 -echo "${ECHO_T}$cross_compiling" >&6 -echo "$as_me:1731: checking whether we are using the GNU C compiler" >&5 +rm -f conftest.$ac_cv_objext conftest.$ac_ext +fi +echo "$as_me:1709: result: $ac_cv_objext" >&5 +echo "${ECHO_T}$ac_cv_objext" >&6 +OBJEXT=$ac_cv_objext +ac_objext=$OBJEXT +echo "$as_me:1713: checking whether we are using the GNU C compiler" >&5 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 if test "${ac_cv_c_compiler_gnu+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else cat >conftest.$ac_ext <<_ACEOF -#line 1737 "configure" +#line 1719 "configure" #include "confdefs.h" int @@ -1749,15 +1731,16 @@ main () } _ACEOF rm -f conftest.$ac_objext -if { (eval echo "$as_me:1752: \"$ac_compile\"") >&5 +if { (eval echo "$as_me:1734: \"$ac_compile\"") >&5 (eval $ac_compile) 2>&5 ac_status=$? - echo "$as_me:1755: \$? = $ac_status" >&5 + echo "$as_me:1737: \$? = $ac_status" >&5 (exit $ac_status); } && - { ac_try='test -s conftest.$ac_objext'; { (eval echo "$as_me:1757: \"$ac_try\"") >&5 + { ac_try='test -s conftest.$ac_objext' + { (eval echo "$as_me:1740: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? - echo "$as_me:1760: \$? = $ac_status" >&5 + echo "$as_me:1743: \$? = $ac_status" >&5 (exit $ac_status); }; }; then ac_compiler_gnu=yes else @@ -1769,19 +1752,19 @@ rm -f conftest.$ac_objext conftest.$ac_ext ac_cv_c_compiler_gnu=$ac_compiler_gnu fi -echo "$as_me:1772: result: $ac_cv_c_compiler_gnu" >&5 +echo "$as_me:1755: result: $ac_cv_c_compiler_gnu" >&5 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 GCC=`test $ac_compiler_gnu = yes && echo yes` ac_test_CFLAGS=${CFLAGS+set} ac_save_CFLAGS=$CFLAGS CFLAGS="-g" -echo "$as_me:1778: checking whether $CC accepts -g" >&5 +echo "$as_me:1761: checking whether $CC accepts -g" >&5 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 if test "${ac_cv_prog_cc_g+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else cat >conftest.$ac_ext <<_ACEOF -#line 1784 "configure" +#line 1767 "configure" #include "confdefs.h" int @@ -1793,15 +1776,16 @@ main () } _ACEOF rm -f conftest.$ac_objext -if { (eval echo "$as_me:1796: \"$ac_compile\"") >&5 +if { (eval echo "$as_me:1779: \"$ac_compile\"") >&5 (eval $ac_compile) 2>&5 ac_status=$? - echo "$as_me:1799: \$? = $ac_status" >&5 + echo "$as_me:1782: \$? = $ac_status" >&5 (exit $ac_status); } && - { ac_try='test -s conftest.$ac_objext'; { (eval echo "$as_me:1801: \"$ac_try\"") >&5 + { ac_try='test -s conftest.$ac_objext' + { (eval echo "$as_me:1785: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? - echo "$as_me:1804: \$? = $ac_status" >&5 + echo "$as_me:1788: \$? = $ac_status" >&5 (exit $ac_status); }; }; then ac_cv_prog_cc_g=yes else @@ -1811,7 +1795,7 @@ ac_cv_prog_cc_g=no fi rm -f conftest.$ac_objext conftest.$ac_ext fi -echo "$as_me:1814: result: $ac_cv_prog_cc_g" >&5 +echo "$as_me:1798: result: $ac_cv_prog_cc_g" >&5 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 if test "$ac_test_CFLAGS" = set; then CFLAGS=$ac_save_CFLAGS @@ -1838,15 +1822,16 @@ cat >conftest.$ac_ext <<_ACEOF #endif _ACEOF rm -f conftest.$ac_objext -if { (eval echo "$as_me:1841: \"$ac_compile\"") >&5 +if { (eval echo "$as_me:1825: \"$ac_compile\"") >&5 (eval $ac_compile) 2>&5 ac_status=$? - echo "$as_me:1844: \$? = $ac_status" >&5 + echo "$as_me:1828: \$? = $ac_status" >&5 (exit $ac_status); } && - { ac_try='test -s conftest.$ac_objext'; { (eval echo "$as_me:1846: \"$ac_try\"") >&5 + { ac_try='test -s conftest.$ac_objext' + { (eval echo "$as_me:1831: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? - echo "$as_me:1849: \$? = $ac_status" >&5 + echo "$as_me:1834: \$? = $ac_status" >&5 (exit $ac_status); }; }; then for ac_declaration in \ ''\ @@ -1858,7 +1843,7 @@ if { (eval echo "$as_me:1841: \"$ac_compile\"") >&5 'void exit (int);' do cat >conftest.$ac_ext <<_ACEOF -#line 1861 "configure" +#line 1846 "configure" #include "confdefs.h" #include $ac_declaration @@ -1871,15 +1856,16 @@ exit (42); } _ACEOF rm -f conftest.$ac_objext -if { (eval echo "$as_me:1874: \"$ac_compile\"") >&5 +if { (eval echo "$as_me:1859: \"$ac_compile\"") >&5 (eval $ac_compile) 2>&5 ac_status=$? - echo "$as_me:1877: \$? = $ac_status" >&5 + echo "$as_me:1862: \$? = $ac_status" >&5 (exit $ac_status); } && - { ac_try='test -s conftest.$ac_objext'; { (eval echo "$as_me:1879: \"$ac_try\"") >&5 + { ac_try='test -s conftest.$ac_objext' + { (eval echo "$as_me:1865: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? - echo "$as_me:1882: \$? = $ac_status" >&5 + echo "$as_me:1868: \$? = $ac_status" >&5 (exit $ac_status); }; }; then : else @@ -1889,7 +1875,7 @@ continue fi rm -f conftest.$ac_objext conftest.$ac_ext cat >conftest.$ac_ext <<_ACEOF -#line 1892 "configure" +#line 1878 "configure" #include "confdefs.h" $ac_declaration int @@ -1901,15 +1887,16 @@ exit (42); } _ACEOF rm -f conftest.$ac_objext -if { (eval echo "$as_me:1904: \"$ac_compile\"") >&5 +if { (eval echo "$as_me:1890: \"$ac_compile\"") >&5 (eval $ac_compile) 2>&5 ac_status=$? - echo "$as_me:1907: \$? = $ac_status" >&5 + echo "$as_me:1893: \$? = $ac_status" >&5 (exit $ac_status); } && - { ac_try='test -s conftest.$ac_objext'; { (eval echo "$as_me:1909: \"$ac_try\"") >&5 + { ac_try='test -s conftest.$ac_objext' + { (eval echo "$as_me:1896: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? - echo "$as_me:1912: \$? = $ac_status" >&5 + echo "$as_me:1899: \$? = $ac_status" >&5 (exit $ac_status); }; }; then break else @@ -1938,7 +1925,7 @@ ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu -echo "$as_me:1941: checking how to run the C preprocessor" >&5 +echo "$as_me:1928: checking how to run the C preprocessor" >&5 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6 # On Suns, sometimes $CPP names a directory. if test -n "$CPP" && test -d "$CPP"; then @@ -1957,18 +1944,18 @@ else # not just through cpp. "Syntax error" is here to catch this case. ac_c_preproc_warn_flag=maybe cat >conftest.$ac_ext <<_ACEOF -#line 1960 "configure" +#line 1947 "configure" #include "confdefs.h" #include Syntax error _ACEOF -if { (eval echo "$as_me:1965: \"$ac_cpp conftest.$ac_ext >/dev/null\"") >&5 +if { (eval echo "$as_me:1952: \"$ac_cpp conftest.$ac_ext >/dev/null\"") >&5 (eval $ac_cpp conftest.$ac_ext >/dev/null) 2>conftest.er1 ac_status=$? egrep -v '^ *\+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 - echo "$as_me:1971: \$? = $ac_status" >&5 + echo "$as_me:1958: \$? = $ac_status" >&5 (exit $ac_status); }; then if test -s conftest.err; then ac_cpp_err=$ac_c_preproc_warn_flag @@ -1983,17 +1970,17 @@ if test -z "$ac_cpp_err"; then # Skip if ac_cpp_err is not empty - ac_cpp is broken if test -z "$ac_cpp_err"; then cat >conftest.$ac_ext <<_ACEOF -#line 1986 "configure" +#line 1973 "configure" #include "confdefs.h" #include _ACEOF -if { (eval echo "$as_me:1990: \"$ac_cpp conftest.$ac_ext >/dev/null\"") >&5 +if { (eval echo "$as_me:1977: \"$ac_cpp conftest.$ac_ext >/dev/null\"") >&5 (eval $ac_cpp conftest.$ac_ext >/dev/null) 2>conftest.er1 ac_status=$? egrep -v '^ *\+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 - echo "$as_me:1996: \$? = $ac_status" >&5 + echo "$as_me:1983: \$? = $ac_status" >&5 (exit $ac_status); }; then if test -s conftest.err; then ac_cpp_err=$ac_c_preproc_warn_flag @@ -2039,18 +2026,18 @@ else # not just through cpp. "Syntax error" is here to catch this case. ac_c_preproc_warn_flag=maybe cat >conftest.$ac_ext <<_ACEOF -#line 2042 "configure" +#line 2029 "configure" #include "confdefs.h" #include Syntax error _ACEOF -if { (eval echo "$as_me:2047: \"$ac_cpp conftest.$ac_ext >/dev/null\"") >&5 +if { (eval echo "$as_me:2034: \"$ac_cpp conftest.$ac_ext >/dev/null\"") >&5 (eval $ac_cpp conftest.$ac_ext >/dev/null) 2>conftest.er1 ac_status=$? egrep -v '^ *\+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 - echo "$as_me:2053: \$? = $ac_status" >&5 + echo "$as_me:2040: \$? = $ac_status" >&5 (exit $ac_status); }; then if test -s conftest.err; then ac_cpp_err=$ac_c_preproc_warn_flag @@ -2065,17 +2052,17 @@ if test -z "$ac_cpp_err"; then # Skip if ac_cpp_err is not empty - ac_cpp is broken if test -z "$ac_cpp_err"; then cat >conftest.$ac_ext <<_ACEOF -#line 2068 "configure" +#line 2055 "configure" #include "confdefs.h" #include _ACEOF -if { (eval echo "$as_me:2072: \"$ac_cpp conftest.$ac_ext >/dev/null\"") >&5 +if { (eval echo "$as_me:2059: \"$ac_cpp conftest.$ac_ext >/dev/null\"") >&5 (eval $ac_cpp conftest.$ac_ext >/dev/null) 2>conftest.er1 ac_status=$? egrep -v '^ *\+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 - echo "$as_me:2078: \$? = $ac_status" >&5 + echo "$as_me:2065: \$? = $ac_status" >&5 (exit $ac_status); }; then if test -s conftest.err; then ac_cpp_err=$ac_c_preproc_warn_flag @@ -2108,10 +2095,10 @@ fi rm -f conftest.err conftest.$ac_ext ac_cv_prog_CPP=$CPP fi -echo "$as_me:2111: result: $CPP" >&5 +echo "$as_me:2098: result: $CPP" >&5 echo "${ECHO_T}$CPP" >&6 if test -n "$ac_cpp_err"; then - { { echo "$as_me:2114: error: C preprocessor \"$CPP\" fails sanity check" >&5 + { { echo "$as_me:2101: error: C preprocessor \"$CPP\" fails sanity check" >&5 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;} { (exit 1); exit 1; }; } fi @@ -2121,23 +2108,23 @@ ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu -echo "$as_me:2124: checking for minix/config.h" >&5 +echo "$as_me:2111: checking for minix/config.h" >&5 echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6 if test "${ac_cv_header_minix_config_h+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else cat >conftest.$ac_ext <<_ACEOF -#line 2130 "configure" +#line 2117 "configure" #include "confdefs.h" #include _ACEOF -if { (eval echo "$as_me:2134: \"$ac_cpp conftest.$ac_ext >/dev/null\"") >&5 +if { (eval echo "$as_me:2121: \"$ac_cpp conftest.$ac_ext >/dev/null\"") >&5 (eval $ac_cpp conftest.$ac_ext >/dev/null) 2>conftest.er1 ac_status=$? egrep -v '^ *\+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 - echo "$as_me:2140: \$? = $ac_status" >&5 + echo "$as_me:2127: \$? = $ac_status" >&5 (exit $ac_status); }; then if test -s conftest.err; then ac_cpp_err=$ac_c_preproc_warn_flag @@ -2156,7 +2143,7 @@ else fi rm -f conftest.err conftest.$ac_ext fi -echo "$as_me:2159: result: $ac_cv_header_minix_config_h" >&5 +echo "$as_me:2146: result: $ac_cv_header_minix_config_h" >&5 echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6 if test $ac_cv_header_minix_config_h = yes; then MINIX=yes @@ -2180,12 +2167,12 @@ EOF fi -echo "$as_me:2183: checking for POSIXized ISC" >&5 +echo "$as_me:2170: checking for POSIXized ISC" >&5 echo $ECHO_N "checking for POSIXized ISC... $ECHO_C" >&6 if test -d /etc/conf/kconfig.d && grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1 then - echo "$as_me:2188: result: yes" >&5 + echo "$as_me:2175: result: yes" >&5 echo "${ECHO_T}yes" >&6 ISC=yes # If later tests want to check for ISC. @@ -2199,12 +2186,12 @@ EOF CC="$CC -Xp" fi else - echo "$as_me:2202: result: no" >&5 + echo "$as_me:2189: result: no" >&5 echo "${ECHO_T}no" >&6 ISC= fi -echo "$as_me:2207: checking for ${CC-cc} option to accept ANSI C" >&5 +echo "$as_me:2194: checking for ${CC-cc} option to accept ANSI C" >&5 echo $ECHO_N "checking for ${CC-cc} option to accept ANSI C... $ECHO_C" >&6 if test "${am_cv_prog_cc_stdc+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 @@ -2221,7 +2208,7 @@ for ac_arg in "" -qlanglvl=ansi -std1 "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__ do CC="$ac_save_CC $ac_arg" cat >conftest.$ac_ext <<_ACEOF -#line 2224 "configure" +#line 2211 "configure" #include "confdefs.h" #include #include @@ -2263,15 +2250,16 @@ return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; } _ACEOF rm -f conftest.$ac_objext -if { (eval echo "$as_me:2266: \"$ac_compile\"") >&5 +if { (eval echo "$as_me:2253: \"$ac_compile\"") >&5 (eval $ac_compile) 2>&5 ac_status=$? - echo "$as_me:2269: \$? = $ac_status" >&5 + echo "$as_me:2256: \$? = $ac_status" >&5 (exit $ac_status); } && - { ac_try='test -s conftest.$ac_objext'; { (eval echo "$as_me:2271: \"$ac_try\"") >&5 + { ac_try='test -s conftest.$ac_objext' + { (eval echo "$as_me:2259: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? - echo "$as_me:2274: \$? = $ac_status" >&5 + echo "$as_me:2262: \$? = $ac_status" >&5 (exit $ac_status); }; }; then am_cv_prog_cc_stdc="$ac_arg"; break else @@ -2285,10 +2273,10 @@ CC="$ac_save_CC" fi if test -z "$am_cv_prog_cc_stdc"; then - echo "$as_me:2288: result: none needed" >&5 + echo "$as_me:2276: result: none needed" >&5 echo "${ECHO_T}none needed" >&6 else - echo "$as_me:2291: result: $am_cv_prog_cc_stdc" >&5 + echo "$as_me:2279: result: $am_cv_prog_cc_stdc" >&5 echo "${ECHO_T}$am_cv_prog_cc_stdc" >&6 fi case "x$am_cv_prog_cc_stdc" in @@ -2308,14 +2296,15 @@ esac # AFS /usr/afsws/bin/install, which mishandles nonexistent args # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" # ./install, which can be erroneously created by make from ./install.sh. -echo "$as_me:2311: checking for a BSD compatible install" >&5 +echo "$as_me:2299: checking for a BSD compatible install" >&5 echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6 if test -z "$INSTALL"; then if test "${ac_cv_path_install+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else - ac_save_IFS=$IFS; IFS=':' + ac_save_IFS=$IFS; IFS=$ac_path_separator for ac_dir in $PATH; do + IFS=$ac_save_IFS # Account for people who put trailing slashes in PATH elements. case $ac_dir/ in / | ./ | .// | /cC/* \ @@ -2326,7 +2315,7 @@ else # Don't use installbsd from OSF since it installs stuff as root # by default. for ac_prog in ginstall scoinst install; do - if test -f "$ac_dir/$ac_prog"; then + if $as_executable_p "$ac_dir/$ac_prog"; then if test $ac_prog = install && grep dspmsg "$ac_dir/$ac_prog" >/dev/null 2>&1; then # AIX install. It has an incompatible calling convention. @@ -2344,7 +2333,6 @@ else ;; esac done - IFS=$ac_save_IFS fi if test "${ac_cv_path_install+set}" = set; then @@ -2357,7 +2345,7 @@ fi INSTALL=$ac_install_sh fi fi -echo "$as_me:2360: result: $INSTALL" >&5 +echo "$as_me:2348: result: $INSTALL" >&5 echo "${ECHO_T}$INSTALL" >&6 # Use test -z because SunOS4 sh mishandles braces in ${var-val}. @@ -2371,7 +2359,7 @@ test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. set dummy ${ac_tool_prefix}ranlib; ac_word=$2 -echo "$as_me:2374: checking for $ac_word" >&5 +echo "$as_me:2362: checking for $ac_word" >&5 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 if test "${ac_cv_prog_RANLIB+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 @@ -2379,7 +2367,7 @@ else if test -n "$RANLIB"; then ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. else - ac_save_IFS=$IFS; IFS=':' + ac_save_IFS=$IFS; IFS=$ac_path_separator ac_dummy="$PATH" for ac_dir in $ac_dummy; do IFS=$ac_save_IFS @@ -2393,10 +2381,10 @@ fi fi RANLIB=$ac_cv_prog_RANLIB if test -n "$RANLIB"; then - echo "$as_me:2396: result: $RANLIB" >&5 + echo "$as_me:2384: result: $RANLIB" >&5 echo "${ECHO_T}$RANLIB" >&6 else - echo "$as_me:2399: result: no" >&5 + echo "$as_me:2387: result: no" >&5 echo "${ECHO_T}no" >&6 fi @@ -2405,7 +2393,7 @@ if test -z "$ac_cv_prog_RANLIB"; then ac_ct_RANLIB=$RANLIB # Extract the first word of "ranlib", so it can be a program name with args. set dummy ranlib; ac_word=$2 -echo "$as_me:2408: checking for $ac_word" >&5 +echo "$as_me:2396: checking for $ac_word" >&5 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 @@ -2413,7 +2401,7 @@ else if test -n "$ac_ct_RANLIB"; then ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. else - ac_save_IFS=$IFS; IFS=':' + ac_save_IFS=$IFS; IFS=$ac_path_separator ac_dummy="$PATH" for ac_dir in $ac_dummy; do IFS=$ac_save_IFS @@ -2428,10 +2416,10 @@ fi fi ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB if test -n "$ac_ct_RANLIB"; then - echo "$as_me:2431: result: $ac_ct_RANLIB" >&5 + echo "$as_me:2419: result: $ac_ct_RANLIB" >&5 echo "${ECHO_T}$ac_ct_RANLIB" >&6 else - echo "$as_me:2434: result: no" >&5 + echo "$as_me:2422: result: no" >&5 echo "${ECHO_T}no" >&6 fi @@ -2445,7 +2433,7 @@ for ac_prog in gm4 gnum4 m4 do # Extract the first word of "$ac_prog", so it can be a program name with args. set dummy $ac_prog; ac_word=$2 -echo "$as_me:2448: checking for $ac_word" >&5 +echo "$as_me:2436: checking for $ac_word" >&5 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 if test "${ac_cv_path_M4+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 @@ -2455,7 +2443,7 @@ else ac_cv_path_M4="$M4" # Let the user override the test with a path. ;; *) - ac_save_IFS=$IFS; IFS=':' + ac_save_IFS=$IFS; IFS=$ac_path_separator ac_dummy="$PATH" for ac_dir in $ac_dummy; do IFS=$ac_save_IFS @@ -2472,10 +2460,10 @@ fi M4=$ac_cv_path_M4 if test -n "$M4"; then - echo "$as_me:2475: result: $M4" >&5 + echo "$as_me:2463: result: $M4" >&5 echo "${ECHO_T}$M4" >&6 else - echo "$as_me:2478: result: no" >&5 + echo "$as_me:2466: result: no" >&5 echo "${ECHO_T}no" >&6 fi @@ -2483,7 +2471,7 @@ fi done test -n "$M4" || M4="m4" -echo "$as_me:2486: checking whether m4 supports frozen files" >&5 +echo "$as_me:2474: checking whether m4 supports frozen files" >&5 echo $ECHO_N "checking whether m4 supports frozen files... $ECHO_C" >&6 if test "${ac_cv_prog_gnu_m4+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 @@ -2495,7 +2483,7 @@ if test x"$M4" != x; then esac fi fi -echo "$as_me:2498: result: $ac_cv_prog_gnu_m4" >&5 +echo "$as_me:2486: result: $ac_cv_prog_gnu_m4" >&5 echo "${ECHO_T}$ac_cv_prog_gnu_m4" >&6 if test "$ac_cv_prog_gnu_m4" != yes; then missing_dir=`cd $ac_aux_dir && pwd` @@ -2507,7 +2495,7 @@ if test "${enable_gcc_warnings+set}" = set; then enableval="$enable_gcc_warnings" case "${enableval}" in yes|no) ;; - *) { { echo "$as_me:2510: error: bad value ${enableval} for gcc-warnings option" >&5 + *) { { echo "$as_me:2498: error: bad value ${enableval} for gcc-warnings option" >&5 echo "$as_me: error: bad value ${enableval} for gcc-warnings option" >&2;} { (exit 1); exit 1; }; } ;; esac @@ -2517,13 +2505,13 @@ else fi; if test "${enableval}" = yes; then - echo "$as_me:2520: checking whether compiler accepts -Wall" >&5 + echo "$as_me:2508: checking whether compiler accepts -Wall" >&5 echo $ECHO_N "checking whether compiler accepts -Wall... $ECHO_C" >&6 ac_save_CFLAGS="$CFLAGS" CFLAGS="$CFLAGS -Wall" cat >conftest.$ac_ext <<_ACEOF -#line 2526 "configure" +#line 2514 "configure" #include "confdefs.h" int @@ -2535,34 +2523,35 @@ int x; } _ACEOF rm -f conftest.$ac_objext -if { (eval echo "$as_me:2538: \"$ac_compile\"") >&5 +if { (eval echo "$as_me:2526: \"$ac_compile\"") >&5 (eval $ac_compile) 2>&5 ac_status=$? - echo "$as_me:2541: \$? = $ac_status" >&5 + echo "$as_me:2529: \$? = $ac_status" >&5 (exit $ac_status); } && - { ac_try='test -s conftest.$ac_objext'; { (eval echo "$as_me:2543: \"$ac_try\"") >&5 + { ac_try='test -s conftest.$ac_objext' + { (eval echo "$as_me:2532: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? - echo "$as_me:2546: \$? = $ac_status" >&5 + echo "$as_me:2535: \$? = $ac_status" >&5 (exit $ac_status); }; }; then WARNING_CFLAGS="$WARNING_CFLAGS -Wall" -echo "$as_me:2549: result: yes" >&5 +echo "$as_me:2538: result: yes" >&5 echo "${ECHO_T}yes" >&6 else echo "$as_me: failed program was:" >&5 cat conftest.$ac_ext >&5 -echo "$as_me:2554: result: no" >&5 +echo "$as_me:2543: result: no" >&5 echo "${ECHO_T}no" >&6 fi rm -f conftest.$ac_objext conftest.$ac_ext CFLAGS="$ac_save_CFLAGS" - echo "$as_me:2559: checking whether compiler accepts -W" >&5 + echo "$as_me:2548: checking whether compiler accepts -W" >&5 echo $ECHO_N "checking whether compiler accepts -W... $ECHO_C" >&6 ac_save_CFLAGS="$CFLAGS" CFLAGS="$CFLAGS -W" cat >conftest.$ac_ext <<_ACEOF -#line 2565 "configure" +#line 2554 "configure" #include "confdefs.h" int @@ -2574,34 +2563,35 @@ int x; } _ACEOF rm -f conftest.$ac_objext -if { (eval echo "$as_me:2577: \"$ac_compile\"") >&5 +if { (eval echo "$as_me:2566: \"$ac_compile\"") >&5 (eval $ac_compile) 2>&5 ac_status=$? - echo "$as_me:2580: \$? = $ac_status" >&5 + echo "$as_me:2569: \$? = $ac_status" >&5 (exit $ac_status); } && - { ac_try='test -s conftest.$ac_objext'; { (eval echo "$as_me:2582: \"$ac_try\"") >&5 + { ac_try='test -s conftest.$ac_objext' + { (eval echo "$as_me:2572: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? - echo "$as_me:2585: \$? = $ac_status" >&5 + echo "$as_me:2575: \$? = $ac_status" >&5 (exit $ac_status); }; }; then WARNING_CFLAGS="$WARNING_CFLAGS -W" -echo "$as_me:2588: result: yes" >&5 +echo "$as_me:2578: result: yes" >&5 echo "${ECHO_T}yes" >&6 else echo "$as_me: failed program was:" >&5 cat conftest.$ac_ext >&5 -echo "$as_me:2593: result: no" >&5 +echo "$as_me:2583: result: no" >&5 echo "${ECHO_T}no" >&6 fi rm -f conftest.$ac_objext conftest.$ac_ext CFLAGS="$ac_save_CFLAGS" - echo "$as_me:2598: checking whether compiler accepts -Wbad-function-cast" >&5 + echo "$as_me:2588: checking whether compiler accepts -Wbad-function-cast" >&5 echo $ECHO_N "checking whether compiler accepts -Wbad-function-cast... $ECHO_C" >&6 ac_save_CFLAGS="$CFLAGS" CFLAGS="$CFLAGS -Wbad-function-cast" cat >conftest.$ac_ext <<_ACEOF -#line 2604 "configure" +#line 2594 "configure" #include "confdefs.h" int @@ -2613,34 +2603,35 @@ int x; } _ACEOF rm -f conftest.$ac_objext -if { (eval echo "$as_me:2616: \"$ac_compile\"") >&5 +if { (eval echo "$as_me:2606: \"$ac_compile\"") >&5 (eval $ac_compile) 2>&5 ac_status=$? - echo "$as_me:2619: \$? = $ac_status" >&5 + echo "$as_me:2609: \$? = $ac_status" >&5 (exit $ac_status); } && - { ac_try='test -s conftest.$ac_objext'; { (eval echo "$as_me:2621: \"$ac_try\"") >&5 + { ac_try='test -s conftest.$ac_objext' + { (eval echo "$as_me:2612: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? - echo "$as_me:2624: \$? = $ac_status" >&5 + echo "$as_me:2615: \$? = $ac_status" >&5 (exit $ac_status); }; }; then WARNING_CFLAGS="$WARNING_CFLAGS -Wbad-function-cast" -echo "$as_me:2627: result: yes" >&5 +echo "$as_me:2618: result: yes" >&5 echo "${ECHO_T}yes" >&6 else echo "$as_me: failed program was:" >&5 cat conftest.$ac_ext >&5 -echo "$as_me:2632: result: no" >&5 +echo "$as_me:2623: result: no" >&5 echo "${ECHO_T}no" >&6 fi rm -f conftest.$ac_objext conftest.$ac_ext CFLAGS="$ac_save_CFLAGS" - echo "$as_me:2637: checking whether compiler accepts -Wcast-align" >&5 + echo "$as_me:2628: checking whether compiler accepts -Wcast-align" >&5 echo $ECHO_N "checking whether compiler accepts -Wcast-align... $ECHO_C" >&6 ac_save_CFLAGS="$CFLAGS" CFLAGS="$CFLAGS -Wcast-align" cat >conftest.$ac_ext <<_ACEOF -#line 2643 "configure" +#line 2634 "configure" #include "confdefs.h" int @@ -2652,34 +2643,35 @@ int x; } _ACEOF rm -f conftest.$ac_objext -if { (eval echo "$as_me:2655: \"$ac_compile\"") >&5 +if { (eval echo "$as_me:2646: \"$ac_compile\"") >&5 (eval $ac_compile) 2>&5 ac_status=$? - echo "$as_me:2658: \$? = $ac_status" >&5 + echo "$as_me:2649: \$? = $ac_status" >&5 (exit $ac_status); } && - { ac_try='test -s conftest.$ac_objext'; { (eval echo "$as_me:2660: \"$ac_try\"") >&5 + { ac_try='test -s conftest.$ac_objext' + { (eval echo "$as_me:2652: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? - echo "$as_me:2663: \$? = $ac_status" >&5 + echo "$as_me:2655: \$? = $ac_status" >&5 (exit $ac_status); }; }; then WARNING_CFLAGS="$WARNING_CFLAGS -Wcast-align" -echo "$as_me:2666: result: yes" >&5 +echo "$as_me:2658: result: yes" >&5 echo "${ECHO_T}yes" >&6 else echo "$as_me: failed program was:" >&5 cat conftest.$ac_ext >&5 -echo "$as_me:2671: result: no" >&5 +echo "$as_me:2663: result: no" >&5 echo "${ECHO_T}no" >&6 fi rm -f conftest.$ac_objext conftest.$ac_ext CFLAGS="$ac_save_CFLAGS" - echo "$as_me:2676: checking whether compiler accepts -Wcast-qual" >&5 + echo "$as_me:2668: checking whether compiler accepts -Wcast-qual" >&5 echo $ECHO_N "checking whether compiler accepts -Wcast-qual... $ECHO_C" >&6 ac_save_CFLAGS="$CFLAGS" CFLAGS="$CFLAGS -Wcast-qual" cat >conftest.$ac_ext <<_ACEOF -#line 2682 "configure" +#line 2674 "configure" #include "confdefs.h" int @@ -2691,34 +2683,35 @@ int x; } _ACEOF rm -f conftest.$ac_objext -if { (eval echo "$as_me:2694: \"$ac_compile\"") >&5 +if { (eval echo "$as_me:2686: \"$ac_compile\"") >&5 (eval $ac_compile) 2>&5 ac_status=$? - echo "$as_me:2697: \$? = $ac_status" >&5 + echo "$as_me:2689: \$? = $ac_status" >&5 (exit $ac_status); } && - { ac_try='test -s conftest.$ac_objext'; { (eval echo "$as_me:2699: \"$ac_try\"") >&5 + { ac_try='test -s conftest.$ac_objext' + { (eval echo "$as_me:2692: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? - echo "$as_me:2702: \$? = $ac_status" >&5 + echo "$as_me:2695: \$? = $ac_status" >&5 (exit $ac_status); }; }; then WARNING_CFLAGS="$WARNING_CFLAGS -Wcast-qual" -echo "$as_me:2705: result: yes" >&5 +echo "$as_me:2698: result: yes" >&5 echo "${ECHO_T}yes" >&6 else echo "$as_me: failed program was:" >&5 cat conftest.$ac_ext >&5 -echo "$as_me:2710: result: no" >&5 +echo "$as_me:2703: result: no" >&5 echo "${ECHO_T}no" >&6 fi rm -f conftest.$ac_objext conftest.$ac_ext CFLAGS="$ac_save_CFLAGS" - echo "$as_me:2715: checking whether compiler accepts -Wmissing-declarations" >&5 + echo "$as_me:2708: checking whether compiler accepts -Wmissing-declarations" >&5 echo $ECHO_N "checking whether compiler accepts -Wmissing-declarations... $ECHO_C" >&6 ac_save_CFLAGS="$CFLAGS" CFLAGS="$CFLAGS -Wmissing-declarations" cat >conftest.$ac_ext <<_ACEOF -#line 2721 "configure" +#line 2714 "configure" #include "confdefs.h" int @@ -2730,34 +2723,35 @@ int x; } _ACEOF rm -f conftest.$ac_objext -if { (eval echo "$as_me:2733: \"$ac_compile\"") >&5 +if { (eval echo "$as_me:2726: \"$ac_compile\"") >&5 (eval $ac_compile) 2>&5 ac_status=$? - echo "$as_me:2736: \$? = $ac_status" >&5 + echo "$as_me:2729: \$? = $ac_status" >&5 (exit $ac_status); } && - { ac_try='test -s conftest.$ac_objext'; { (eval echo "$as_me:2738: \"$ac_try\"") >&5 + { ac_try='test -s conftest.$ac_objext' + { (eval echo "$as_me:2732: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? - echo "$as_me:2741: \$? = $ac_status" >&5 + echo "$as_me:2735: \$? = $ac_status" >&5 (exit $ac_status); }; }; then WARNING_CFLAGS="$WARNING_CFLAGS -Wmissing-declarations" -echo "$as_me:2744: result: yes" >&5 +echo "$as_me:2738: result: yes" >&5 echo "${ECHO_T}yes" >&6 else echo "$as_me: failed program was:" >&5 cat conftest.$ac_ext >&5 -echo "$as_me:2749: result: no" >&5 +echo "$as_me:2743: result: no" >&5 echo "${ECHO_T}no" >&6 fi rm -f conftest.$ac_objext conftest.$ac_ext CFLAGS="$ac_save_CFLAGS" - echo "$as_me:2754: checking whether compiler accepts -Wmissing-prototypes" >&5 + echo "$as_me:2748: checking whether compiler accepts -Wmissing-prototypes" >&5 echo $ECHO_N "checking whether compiler accepts -Wmissing-prototypes... $ECHO_C" >&6 ac_save_CFLAGS="$CFLAGS" CFLAGS="$CFLAGS -Wmissing-prototypes" cat >conftest.$ac_ext <<_ACEOF -#line 2760 "configure" +#line 2754 "configure" #include "confdefs.h" int @@ -2769,34 +2763,35 @@ int x; } _ACEOF rm -f conftest.$ac_objext -if { (eval echo "$as_me:2772: \"$ac_compile\"") >&5 +if { (eval echo "$as_me:2766: \"$ac_compile\"") >&5 (eval $ac_compile) 2>&5 ac_status=$? - echo "$as_me:2775: \$? = $ac_status" >&5 + echo "$as_me:2769: \$? = $ac_status" >&5 (exit $ac_status); } && - { ac_try='test -s conftest.$ac_objext'; { (eval echo "$as_me:2777: \"$ac_try\"") >&5 + { ac_try='test -s conftest.$ac_objext' + { (eval echo "$as_me:2772: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? - echo "$as_me:2780: \$? = $ac_status" >&5 + echo "$as_me:2775: \$? = $ac_status" >&5 (exit $ac_status); }; }; then WARNING_CFLAGS="$WARNING_CFLAGS -Wmissing-prototypes" -echo "$as_me:2783: result: yes" >&5 +echo "$as_me:2778: result: yes" >&5 echo "${ECHO_T}yes" >&6 else echo "$as_me: failed program was:" >&5 cat conftest.$ac_ext >&5 -echo "$as_me:2788: result: no" >&5 +echo "$as_me:2783: result: no" >&5 echo "${ECHO_T}no" >&6 fi rm -f conftest.$ac_objext conftest.$ac_ext CFLAGS="$ac_save_CFLAGS" - echo "$as_me:2793: checking whether compiler accepts -Wnested-externs" >&5 + echo "$as_me:2788: checking whether compiler accepts -Wnested-externs" >&5 echo $ECHO_N "checking whether compiler accepts -Wnested-externs... $ECHO_C" >&6 ac_save_CFLAGS="$CFLAGS" CFLAGS="$CFLAGS -Wnested-externs" cat >conftest.$ac_ext <<_ACEOF -#line 2799 "configure" +#line 2794 "configure" #include "confdefs.h" int @@ -2808,34 +2803,35 @@ int x; } _ACEOF rm -f conftest.$ac_objext -if { (eval echo "$as_me:2811: \"$ac_compile\"") >&5 +if { (eval echo "$as_me:2806: \"$ac_compile\"") >&5 (eval $ac_compile) 2>&5 ac_status=$? - echo "$as_me:2814: \$? = $ac_status" >&5 + echo "$as_me:2809: \$? = $ac_status" >&5 (exit $ac_status); } && - { ac_try='test -s conftest.$ac_objext'; { (eval echo "$as_me:2816: \"$ac_try\"") >&5 + { ac_try='test -s conftest.$ac_objext' + { (eval echo "$as_me:2812: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? - echo "$as_me:2819: \$? = $ac_status" >&5 + echo "$as_me:2815: \$? = $ac_status" >&5 (exit $ac_status); }; }; then WARNING_CFLAGS="$WARNING_CFLAGS -Wnested-externs" -echo "$as_me:2822: result: yes" >&5 +echo "$as_me:2818: result: yes" >&5 echo "${ECHO_T}yes" >&6 else echo "$as_me: failed program was:" >&5 cat conftest.$ac_ext >&5 -echo "$as_me:2827: result: no" >&5 +echo "$as_me:2823: result: no" >&5 echo "${ECHO_T}no" >&6 fi rm -f conftest.$ac_objext conftest.$ac_ext CFLAGS="$ac_save_CFLAGS" - echo "$as_me:2832: checking whether compiler accepts -Wshadow" >&5 + echo "$as_me:2828: checking whether compiler accepts -Wshadow" >&5 echo $ECHO_N "checking whether compiler accepts -Wshadow... $ECHO_C" >&6 ac_save_CFLAGS="$CFLAGS" CFLAGS="$CFLAGS -Wshadow" cat >conftest.$ac_ext <<_ACEOF -#line 2838 "configure" +#line 2834 "configure" #include "confdefs.h" int @@ -2847,34 +2843,35 @@ int x; } _ACEOF rm -f conftest.$ac_objext -if { (eval echo "$as_me:2850: \"$ac_compile\"") >&5 +if { (eval echo "$as_me:2846: \"$ac_compile\"") >&5 (eval $ac_compile) 2>&5 ac_status=$? - echo "$as_me:2853: \$? = $ac_status" >&5 + echo "$as_me:2849: \$? = $ac_status" >&5 (exit $ac_status); } && - { ac_try='test -s conftest.$ac_objext'; { (eval echo "$as_me:2855: \"$ac_try\"") >&5 + { ac_try='test -s conftest.$ac_objext' + { (eval echo "$as_me:2852: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? - echo "$as_me:2858: \$? = $ac_status" >&5 + echo "$as_me:2855: \$? = $ac_status" >&5 (exit $ac_status); }; }; then WARNING_CFLAGS="$WARNING_CFLAGS -Wshadow" -echo "$as_me:2861: result: yes" >&5 +echo "$as_me:2858: result: yes" >&5 echo "${ECHO_T}yes" >&6 else echo "$as_me: failed program was:" >&5 cat conftest.$ac_ext >&5 -echo "$as_me:2866: result: no" >&5 +echo "$as_me:2863: result: no" >&5 echo "${ECHO_T}no" >&6 fi rm -f conftest.$ac_objext conftest.$ac_ext CFLAGS="$ac_save_CFLAGS" - echo "$as_me:2871: checking whether compiler accepts -Wstrict-prototypes" >&5 + echo "$as_me:2868: checking whether compiler accepts -Wstrict-prototypes" >&5 echo $ECHO_N "checking whether compiler accepts -Wstrict-prototypes... $ECHO_C" >&6 ac_save_CFLAGS="$CFLAGS" CFLAGS="$CFLAGS -Wstrict-prototypes" cat >conftest.$ac_ext <<_ACEOF -#line 2877 "configure" +#line 2874 "configure" #include "confdefs.h" int @@ -2886,34 +2883,35 @@ int x; } _ACEOF rm -f conftest.$ac_objext -if { (eval echo "$as_me:2889: \"$ac_compile\"") >&5 +if { (eval echo "$as_me:2886: \"$ac_compile\"") >&5 (eval $ac_compile) 2>&5 ac_status=$? - echo "$as_me:2892: \$? = $ac_status" >&5 + echo "$as_me:2889: \$? = $ac_status" >&5 (exit $ac_status); } && - { ac_try='test -s conftest.$ac_objext'; { (eval echo "$as_me:2894: \"$ac_try\"") >&5 + { ac_try='test -s conftest.$ac_objext' + { (eval echo "$as_me:2892: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? - echo "$as_me:2897: \$? = $ac_status" >&5 + echo "$as_me:2895: \$? = $ac_status" >&5 (exit $ac_status); }; }; then WARNING_CFLAGS="$WARNING_CFLAGS -Wstrict-prototypes" -echo "$as_me:2900: result: yes" >&5 +echo "$as_me:2898: result: yes" >&5 echo "${ECHO_T}yes" >&6 else echo "$as_me: failed program was:" >&5 cat conftest.$ac_ext >&5 -echo "$as_me:2905: result: no" >&5 +echo "$as_me:2903: result: no" >&5 echo "${ECHO_T}no" >&6 fi rm -f conftest.$ac_objext conftest.$ac_ext CFLAGS="$ac_save_CFLAGS" - echo "$as_me:2910: checking whether compiler accepts -Wwrite-strings" >&5 + echo "$as_me:2908: checking whether compiler accepts -Wwrite-strings" >&5 echo $ECHO_N "checking whether compiler accepts -Wwrite-strings... $ECHO_C" >&6 ac_save_CFLAGS="$CFLAGS" CFLAGS="$CFLAGS -Wwrite-strings" cat >conftest.$ac_ext <<_ACEOF -#line 2916 "configure" +#line 2914 "configure" #include "confdefs.h" int @@ -2925,23 +2923,24 @@ int x; } _ACEOF rm -f conftest.$ac_objext -if { (eval echo "$as_me:2928: \"$ac_compile\"") >&5 +if { (eval echo "$as_me:2926: \"$ac_compile\"") >&5 (eval $ac_compile) 2>&5 ac_status=$? - echo "$as_me:2931: \$? = $ac_status" >&5 + echo "$as_me:2929: \$? = $ac_status" >&5 (exit $ac_status); } && - { ac_try='test -s conftest.$ac_objext'; { (eval echo "$as_me:2933: \"$ac_try\"") >&5 + { ac_try='test -s conftest.$ac_objext' + { (eval echo "$as_me:2932: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? - echo "$as_me:2936: \$? = $ac_status" >&5 + echo "$as_me:2935: \$? = $ac_status" >&5 (exit $ac_status); }; }; then WARNING_CFLAGS="$WARNING_CFLAGS -Wwrite-strings" -echo "$as_me:2939: result: yes" >&5 +echo "$as_me:2938: result: yes" >&5 echo "${ECHO_T}yes" >&6 else echo "$as_me: failed program was:" >&5 cat conftest.$ac_ext >&5 -echo "$as_me:2944: result: no" >&5 +echo "$as_me:2943: result: no" >&5 echo "${ECHO_T}no" >&6 fi rm -f conftest.$ac_objext conftest.$ac_ext @@ -2956,13 +2955,13 @@ cat >>confdefs.h <<\EOF EOF # Checks for header files. -echo "$as_me:2959: checking for ANSI C header files" >&5 +echo "$as_me:2958: checking for ANSI C header files" >&5 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 if test "${ac_cv_header_stdc+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else cat >conftest.$ac_ext <<_ACEOF -#line 2965 "configure" +#line 2964 "configure" #include "confdefs.h" #include #include @@ -2970,13 +2969,13 @@ else #include _ACEOF -if { (eval echo "$as_me:2973: \"$ac_cpp conftest.$ac_ext >/dev/null\"") >&5 +if { (eval echo "$as_me:2972: \"$ac_cpp conftest.$ac_ext >/dev/null\"") >&5 (eval $ac_cpp conftest.$ac_ext >/dev/null) 2>conftest.er1 ac_status=$? egrep -v '^ *\+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 - echo "$as_me:2979: \$? = $ac_status" >&5 + echo "$as_me:2978: \$? = $ac_status" >&5 (exit $ac_status); }; then if test -s conftest.err; then ac_cpp_err=$ac_c_preproc_warn_flag @@ -2998,7 +2997,7 @@ rm -f conftest.err conftest.$ac_ext if test $ac_cv_header_stdc = yes; then # SunOS 4.x string.h does not declare mem*, contrary to ANSI. cat >conftest.$ac_ext <<_ACEOF -#line 3001 "configure" +#line 3000 "configure" #include "confdefs.h" #include @@ -3016,7 +3015,7 @@ fi if test $ac_cv_header_stdc = yes; then # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. cat >conftest.$ac_ext <<_ACEOF -#line 3019 "configure" +#line 3018 "configure" #include "confdefs.h" #include @@ -3037,7 +3036,7 @@ if test $ac_cv_header_stdc = yes; then : else cat >conftest.$ac_ext <<_ACEOF -#line 3040 "configure" +#line 3039 "configure" #include "confdefs.h" #include #if ((' ' & 0x0FF) == 0x020) @@ -3063,11 +3062,12 @@ main () } _ACEOF rm -f conftest$ac_exeext -if { (eval echo "$as_me:3066: \"$ac_link\"") >&5 +if { (eval echo "$as_me:3065: \"$ac_link\"") >&5 (eval $ac_link) 2>&5 ac_status=$? - echo "$as_me:3069: \$? = $ac_status" >&5 - (exit $ac_status); } && { ac_try='./conftest$ac_exeext'; { (eval echo "$as_me:3070: \"$ac_try\"") >&5 + echo "$as_me:3068: \$? = $ac_status" >&5 + (exit $ac_status); } && { ac_try='./conftest$ac_exeext' + { (eval echo "$as_me:3070: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:3073: \$? = $ac_status" >&5 @@ -3208,10 +3208,11 @@ if { (eval echo "$as_me:3206: \"$ac_compile\"") >&5 ac_status=$? echo "$as_me:3209: \$? = $ac_status" >&5 (exit $ac_status); } && - { ac_try='test -s conftest.$ac_objext'; { (eval echo "$as_me:3211: \"$ac_try\"") >&5 + { ac_try='test -s conftest.$ac_objext' + { (eval echo "$as_me:3212: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? - echo "$as_me:3214: \$? = $ac_status" >&5 + echo "$as_me:3215: \$? = $ac_status" >&5 (exit $ac_status); }; }; then ac_cv_prog_cc_stdc=$ac_arg break @@ -3228,21 +3229,21 @@ fi case "x$ac_cv_prog_cc_stdc" in x|xno) - echo "$as_me:3231: result: none needed" >&5 + echo "$as_me:3232: result: none needed" >&5 echo "${ECHO_T}none needed" >&6 ;; *) - echo "$as_me:3234: result: $ac_cv_prog_cc_stdc" >&5 + echo "$as_me:3235: result: $ac_cv_prog_cc_stdc" >&5 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 CC="$CC $ac_cv_prog_cc_stdc" ;; esac -echo "$as_me:3239: checking for an ANSI C-conforming const" >&5 +echo "$as_me:3240: checking for an ANSI C-conforming const" >&5 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6 if test "${ac_cv_c_const+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else cat >conftest.$ac_ext <<_ACEOF -#line 3245 "configure" +#line 3246 "configure" #include "confdefs.h" int @@ -3300,15 +3301,16 @@ main () } _ACEOF rm -f conftest.$ac_objext -if { (eval echo "$as_me:3303: \"$ac_compile\"") >&5 +if { (eval echo "$as_me:3304: \"$ac_compile\"") >&5 (eval $ac_compile) 2>&5 ac_status=$? - echo "$as_me:3306: \$? = $ac_status" >&5 + echo "$as_me:3307: \$? = $ac_status" >&5 (exit $ac_status); } && - { ac_try='test -s conftest.$ac_objext'; { (eval echo "$as_me:3308: \"$ac_try\"") >&5 + { ac_try='test -s conftest.$ac_objext' + { (eval echo "$as_me:3310: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? - echo "$as_me:3311: \$? = $ac_status" >&5 + echo "$as_me:3313: \$? = $ac_status" >&5 (exit $ac_status); }; }; then ac_cv_c_const=yes else @@ -3318,7 +3320,7 @@ ac_cv_c_const=no fi rm -f conftest.$ac_objext conftest.$ac_ext fi -echo "$as_me:3321: result: $ac_cv_c_const" >&5 +echo "$as_me:3323: result: $ac_cv_c_const" >&5 echo "${ECHO_T}$ac_cv_c_const" >&6 if test $ac_cv_c_const = no; then @@ -3328,7 +3330,7 @@ EOF fi -echo "$as_me:3331: checking for inline" >&5 +echo "$as_me:3333: checking for inline" >&5 echo $ECHO_N "checking for inline... $ECHO_C" >&6 if test "${ac_cv_c_inline+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 @@ -3336,23 +3338,25 @@ else ac_cv_c_inline=no for ac_kw in inline __inline__ __inline; do cat >conftest.$ac_ext <<_ACEOF -#line 3339 "configure" +#line 3341 "configure" #include "confdefs.h" #ifndef __cplusplus +static $ac_kw int static_foo () {return 0; } $ac_kw int foo () {return 0; } #endif _ACEOF rm -f conftest.$ac_objext -if { (eval echo "$as_me:3347: \"$ac_compile\"") >&5 +if { (eval echo "$as_me:3350: \"$ac_compile\"") >&5 (eval $ac_compile) 2>&5 ac_status=$? - echo "$as_me:3350: \$? = $ac_status" >&5 + echo "$as_me:3353: \$? = $ac_status" >&5 (exit $ac_status); } && - { ac_try='test -s conftest.$ac_objext'; { (eval echo "$as_me:3352: \"$ac_try\"") >&5 + { ac_try='test -s conftest.$ac_objext' + { (eval echo "$as_me:3356: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? - echo "$as_me:3355: \$? = $ac_status" >&5 + echo "$as_me:3359: \$? = $ac_status" >&5 (exit $ac_status); }; }; then ac_cv_c_inline=$ac_kw; break else @@ -3363,7 +3367,7 @@ rm -f conftest.$ac_objext conftest.$ac_ext done fi -echo "$as_me:3366: result: $ac_cv_c_inline" >&5 +echo "$as_me:3370: result: $ac_cv_c_inline" >&5 echo "${ECHO_T}$ac_cv_c_inline" >&6 case $ac_cv_c_inline in inline | yes) ;; @@ -3378,10 +3382,10 @@ EOF ;; esac -echo "$as_me:3381: checking for function prototypes" >&5 +echo "$as_me:3385: checking for function prototypes" >&5 echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6 if test "$am_cv_prog_cc_stdc" != no; then - echo "$as_me:3384: result: yes" >&5 + echo "$as_me:3388: result: yes" >&5 echo "${ECHO_T}yes" >&6 cat >>confdefs.h <<\EOF @@ -3390,17 +3394,17 @@ EOF U= ANSI2KNR= else - echo "$as_me:3393: result: no" >&5 + echo "$as_me:3397: result: no" >&5 echo "${ECHO_T}no" >&6 U=_ ANSI2KNR=./ansi2knr # Ensure some checks needed by ansi2knr itself. - echo "$as_me:3397: checking for ANSI C header files" >&5 + echo "$as_me:3401: checking for ANSI C header files" >&5 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 if test "${ac_cv_header_stdc+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else cat >conftest.$ac_ext <<_ACEOF -#line 3403 "configure" +#line 3407 "configure" #include "confdefs.h" #include #include @@ -3408,13 +3412,13 @@ else #include _ACEOF -if { (eval echo "$as_me:3411: \"$ac_cpp conftest.$ac_ext >/dev/null\"") >&5 +if { (eval echo "$as_me:3415: \"$ac_cpp conftest.$ac_ext >/dev/null\"") >&5 (eval $ac_cpp conftest.$ac_ext >/dev/null) 2>conftest.er1 ac_status=$? egrep -v '^ *\+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 - echo "$as_me:3417: \$? = $ac_status" >&5 + echo "$as_me:3421: \$? = $ac_status" >&5 (exit $ac_status); }; then if test -s conftest.err; then ac_cpp_err=$ac_c_preproc_warn_flag @@ -3436,7 +3440,7 @@ rm -f conftest.err conftest.$ac_ext if test $ac_cv_header_stdc = yes; then # SunOS 4.x string.h does not declare mem*, contrary to ANSI. cat >conftest.$ac_ext <<_ACEOF -#line 3439 "configure" +#line 3443 "configure" #include "confdefs.h" #include @@ -3454,7 +3458,7 @@ fi if test $ac_cv_header_stdc = yes; then # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. cat >conftest.$ac_ext <<_ACEOF -#line 3457 "configure" +#line 3461 "configure" #include "confdefs.h" #include @@ -3475,7 +3479,7 @@ if test $ac_cv_header_stdc = yes; then : else cat >conftest.$ac_ext <<_ACEOF -#line 3478 "configure" +#line 3482 "configure" #include "confdefs.h" #include #if ((' ' & 0x0FF) == 0x020) @@ -3501,14 +3505,15 @@ main () } _ACEOF rm -f conftest$ac_exeext -if { (eval echo "$as_me:3504: \"$ac_link\"") >&5 +if { (eval echo "$as_me:3508: \"$ac_link\"") >&5 (eval $ac_link) 2>&5 ac_status=$? - echo "$as_me:3507: \$? = $ac_status" >&5 - (exit $ac_status); } && { ac_try='./conftest$ac_exeext'; { (eval echo "$as_me:3508: \"$ac_try\"") >&5 + echo "$as_me:3511: \$? = $ac_status" >&5 + (exit $ac_status); } && { ac_try='./conftest$ac_exeext' + { (eval echo "$as_me:3513: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? - echo "$as_me:3511: \$? = $ac_status" >&5 + echo "$as_me:3516: \$? = $ac_status" >&5 (exit $ac_status); }; }; then : else @@ -3521,7 +3526,7 @@ rm -f conftest$ac_exeext conftest.$ac_ext fi fi fi -echo "$as_me:3524: result: $ac_cv_header_stdc" >&5 +echo "$as_me:3529: result: $ac_cv_header_stdc" >&5 echo "${ECHO_T}$ac_cv_header_stdc" >&6 if test $ac_cv_header_stdc = yes; then @@ -3534,23 +3539,23 @@ fi for ac_header in string.h do ac_ac_Header=`echo "ac_cv_header_$ac_header" | $ac_tr_sh` -echo "$as_me:3537: checking for $ac_header" >&5 +echo "$as_me:3542: checking for $ac_header" >&5 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 if eval "test \"\${$ac_ac_Header+set}\" = set"; then echo $ECHO_N "(cached) $ECHO_C" >&6 else cat >conftest.$ac_ext <<_ACEOF -#line 3543 "configure" +#line 3548 "configure" #include "confdefs.h" #include <$ac_header> _ACEOF -if { (eval echo "$as_me:3547: \"$ac_cpp conftest.$ac_ext >/dev/null\"") >&5 +if { (eval echo "$as_me:3552: \"$ac_cpp conftest.$ac_ext >/dev/null\"") >&5 (eval $ac_cpp conftest.$ac_ext >/dev/null) 2>conftest.er1 ac_status=$? egrep -v '^ *\+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 - echo "$as_me:3553: \$? = $ac_status" >&5 + echo "$as_me:3558: \$? = $ac_status" >&5 (exit $ac_status); }; then if test -s conftest.err; then ac_cpp_err=$ac_c_preproc_warn_flag @@ -3569,7 +3574,7 @@ else fi rm -f conftest.err conftest.$ac_ext fi -echo "$as_me:3572: result: `eval echo '${'$ac_ac_Header'}'`" >&5 +echo "$as_me:3577: result: `eval echo '${'$ac_ac_Header'}'`" >&5 echo "${ECHO_T}`eval echo '${'$ac_ac_Header'}'`" >&6 if test `eval echo '${'$ac_ac_Header'}'` = yes; then cat >>confdefs.h <&5 +echo "$as_me:3592: checking for working alloca.h" >&5 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6 if test "${ac_cv_working_alloca_h+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else cat >conftest.$ac_ext <<_ACEOF -#line 3593 "configure" +#line 3598 "configure" #include "confdefs.h" #include int @@ -3602,15 +3607,16 @@ char *p = (char *) alloca (2 * sizeof (int)); } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext -if { (eval echo "$as_me:3605: \"$ac_link\"") >&5 +if { (eval echo "$as_me:3610: \"$ac_link\"") >&5 (eval $ac_link) 2>&5 ac_status=$? - echo "$as_me:3608: \$? = $ac_status" >&5 + echo "$as_me:3613: \$? = $ac_status" >&5 (exit $ac_status); } && - { ac_try='test -s conftest$ac_exeext'; { (eval echo "$as_me:3610: \"$ac_try\"") >&5 + { ac_try='test -s conftest$ac_exeext' + { (eval echo "$as_me:3616: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? - echo "$as_me:3613: \$? = $ac_status" >&5 + echo "$as_me:3619: \$? = $ac_status" >&5 (exit $ac_status); }; }; then ac_cv_working_alloca_h=yes else @@ -3620,7 +3626,7 @@ ac_cv_working_alloca_h=no fi rm -f conftest$ac_exeext conftest.$ac_ext fi -echo "$as_me:3623: result: $ac_cv_working_alloca_h" >&5 +echo "$as_me:3629: result: $ac_cv_working_alloca_h" >&5 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6 if test $ac_cv_working_alloca_h = yes; then @@ -3630,13 +3636,13 @@ EOF fi -echo "$as_me:3633: checking for alloca" >&5 +echo "$as_me:3639: checking for alloca" >&5 echo $ECHO_N "checking for alloca... $ECHO_C" >&6 if test "${ac_cv_func_alloca_works+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else cat >conftest.$ac_ext <<_ACEOF -#line 3639 "configure" +#line 3645 "configure" #include "confdefs.h" #ifdef __GNUC__ # define alloca __builtin_alloca @@ -3668,15 +3674,16 @@ char *p = (char *) alloca (1); } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext -if { (eval echo "$as_me:3671: \"$ac_link\"") >&5 +if { (eval echo "$as_me:3677: \"$ac_link\"") >&5 (eval $ac_link) 2>&5 ac_status=$? - echo "$as_me:3674: \$? = $ac_status" >&5 + echo "$as_me:3680: \$? = $ac_status" >&5 (exit $ac_status); } && - { ac_try='test -s conftest$ac_exeext'; { (eval echo "$as_me:3676: \"$ac_try\"") >&5 + { ac_try='test -s conftest$ac_exeext' + { (eval echo "$as_me:3683: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? - echo "$as_me:3679: \$? = $ac_status" >&5 + echo "$as_me:3686: \$? = $ac_status" >&5 (exit $ac_status); }; }; then ac_cv_func_alloca_works=yes else @@ -3686,7 +3693,7 @@ ac_cv_func_alloca_works=no fi rm -f conftest$ac_exeext conftest.$ac_ext fi -echo "$as_me:3689: result: $ac_cv_func_alloca_works" >&5 +echo "$as_me:3696: result: $ac_cv_func_alloca_works" >&5 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6 if test $ac_cv_func_alloca_works = yes; then @@ -3707,13 +3714,13 @@ cat >>confdefs.h <<\EOF #define C_ALLOCA 1 EOF -echo "$as_me:3710: checking whether \`alloca.c' needs Cray hooks" >&5 +echo "$as_me:3717: checking whether \`alloca.c' needs Cray hooks" >&5 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6 if test "${ac_cv_os_cray+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else cat >conftest.$ac_ext <<_ACEOF -#line 3716 "configure" +#line 3723 "configure" #include "confdefs.h" #if defined(CRAY) && ! defined(CRAY2) webecray @@ -3731,18 +3738,18 @@ fi rm -f conftest* fi -echo "$as_me:3734: result: $ac_cv_os_cray" >&5 +echo "$as_me:3741: result: $ac_cv_os_cray" >&5 echo "${ECHO_T}$ac_cv_os_cray" >&6 if test $ac_cv_os_cray = yes; then for ac_func in _getb67 GETB67 getb67; do ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh` -echo "$as_me:3739: checking for $ac_func" >&5 +echo "$as_me:3746: checking for $ac_func" >&5 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 if eval "test \"\${$ac_ac_var+set}\" = set"; then echo $ECHO_N "(cached) $ECHO_C" >&6 else cat >conftest.$ac_ext <<_ACEOF -#line 3745 "configure" +#line 3752 "configure" #include "confdefs.h" /* System header to define __stub macros and hopefully few prototypes, which can conflict with char $ac_func (); below. */ @@ -3773,15 +3780,16 @@ f = $ac_func; } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext -if { (eval echo "$as_me:3776: \"$ac_link\"") >&5 +if { (eval echo "$as_me:3783: \"$ac_link\"") >&5 (eval $ac_link) 2>&5 ac_status=$? - echo "$as_me:3779: \$? = $ac_status" >&5 + echo "$as_me:3786: \$? = $ac_status" >&5 (exit $ac_status); } && - { ac_try='test -s conftest$ac_exeext'; { (eval echo "$as_me:3781: \"$ac_try\"") >&5 + { ac_try='test -s conftest$ac_exeext' + { (eval echo "$as_me:3789: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? - echo "$as_me:3784: \$? = $ac_status" >&5 + echo "$as_me:3792: \$? = $ac_status" >&5 (exit $ac_status); }; }; then eval "$ac_ac_var=yes" else @@ -3791,7 +3799,7 @@ eval "$ac_ac_var=no" fi rm -f conftest$ac_exeext conftest.$ac_ext fi -echo "$as_me:3794: result: `eval echo '${'$ac_ac_var'}'`" >&5 +echo "$as_me:3802: result: `eval echo '${'$ac_ac_var'}'`" >&5 echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6 if test `eval echo '${'$ac_ac_var'}'` = yes; then @@ -3805,7 +3813,7 @@ fi done fi -echo "$as_me:3808: checking stack direction for C alloca" >&5 +echo "$as_me:3816: checking stack direction for C alloca" >&5 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6 if test "${ac_cv_c_stack_direction+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 @@ -3814,7 +3822,7 @@ else ac_cv_c_stack_direction=0 else cat >conftest.$ac_ext <<_ACEOF -#line 3817 "configure" +#line 3825 "configure" #include "confdefs.h" int find_stack_direction () @@ -3837,14 +3845,15 @@ main () } _ACEOF rm -f conftest$ac_exeext -if { (eval echo "$as_me:3840: \"$ac_link\"") >&5 +if { (eval echo "$as_me:3848: \"$ac_link\"") >&5 (eval $ac_link) 2>&5 ac_status=$? - echo "$as_me:3843: \$? = $ac_status" >&5 - (exit $ac_status); } && { ac_try='./conftest$ac_exeext'; { (eval echo "$as_me:3844: \"$ac_try\"") >&5 + echo "$as_me:3851: \$? = $ac_status" >&5 + (exit $ac_status); } && { ac_try='./conftest$ac_exeext' + { (eval echo "$as_me:3853: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? - echo "$as_me:3847: \$? = $ac_status" >&5 + echo "$as_me:3856: \$? = $ac_status" >&5 (exit $ac_status); }; }; then ac_cv_c_stack_direction=1 else @@ -3856,7 +3865,7 @@ fi rm -f conftest$ac_exeext conftest.$ac_ext fi fi -echo "$as_me:3859: result: $ac_cv_c_stack_direction" >&5 +echo "$as_me:3868: result: $ac_cv_c_stack_direction" >&5 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6 cat >>confdefs.h <&5 +echo "$as_me:3880: checking for $ac_func" >&5 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 if eval "test \"\${$ac_ac_var+set}\" = set"; then echo $ECHO_N "(cached) $ECHO_C" >&6 else cat >conftest.$ac_ext <<_ACEOF -#line 3877 "configure" +#line 3886 "configure" #include "confdefs.h" /* System header to define __stub macros and hopefully few prototypes, which can conflict with char $ac_func (); below. */ @@ -3905,15 +3914,16 @@ f = $ac_func; } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext -if { (eval echo "$as_me:3908: \"$ac_link\"") >&5 +if { (eval echo "$as_me:3917: \"$ac_link\"") >&5 (eval $ac_link) 2>&5 ac_status=$? - echo "$as_me:3911: \$? = $ac_status" >&5 + echo "$as_me:3920: \$? = $ac_status" >&5 (exit $ac_status); } && - { ac_try='test -s conftest$ac_exeext'; { (eval echo "$as_me:3913: \"$ac_try\"") >&5 + { ac_try='test -s conftest$ac_exeext' + { (eval echo "$as_me:3923: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? - echo "$as_me:3916: \$? = $ac_status" >&5 + echo "$as_me:3926: \$? = $ac_status" >&5 (exit $ac_status); }; }; then eval "$ac_ac_var=yes" else @@ -3923,7 +3933,7 @@ eval "$ac_ac_var=no" fi rm -f conftest$ac_exeext conftest.$ac_ext fi -echo "$as_me:3926: result: `eval echo '${'$ac_ac_var'}'`" >&5 +echo "$as_me:3936: result: `eval echo '${'$ac_ac_var'}'`" >&5 echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6 if test `eval echo '${'$ac_ac_var'}'` = yes; then cat >>confdefs.h <&5 +echo "$as_me:3949: checking for $ac_header" >&5 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 if eval "test \"\${$ac_ac_Header+set}\" = set"; then echo $ECHO_N "(cached) $ECHO_C" >&6 else cat >conftest.$ac_ext <<_ACEOF -#line 3945 "configure" +#line 3955 "configure" #include "confdefs.h" #include <$ac_header> _ACEOF -if { (eval echo "$as_me:3949: \"$ac_cpp conftest.$ac_ext >/dev/null\"") >&5 +if { (eval echo "$as_me:3959: \"$ac_cpp conftest.$ac_ext >/dev/null\"") >&5 (eval $ac_cpp conftest.$ac_ext >/dev/null) 2>conftest.er1 ac_status=$? egrep -v '^ *\+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 - echo "$as_me:3955: \$? = $ac_status" >&5 + echo "$as_me:3965: \$? = $ac_status" >&5 (exit $ac_status); }; then if test -s conftest.err; then ac_cpp_err=$ac_c_preproc_warn_flag @@ -3971,7 +3981,7 @@ else fi rm -f conftest.err conftest.$ac_ext fi -echo "$as_me:3974: result: `eval echo '${'$ac_ac_Header'}'`" >&5 +echo "$as_me:3984: result: `eval echo '${'$ac_ac_Header'}'`" >&5 echo "${ECHO_T}`eval echo '${'$ac_ac_Header'}'`" >&6 if test `eval echo '${'$ac_ac_Header'}'` = yes; then cat >>confdefs.h <&5 +echo "$as_me:3994: checking whether stpcpy is declared" >&5 echo $ECHO_N "checking whether stpcpy is declared... $ECHO_C" >&6 if test "${ac_cv_have_decl_stpcpy+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else cat >conftest.$ac_ext <<_ACEOF -#line 3990 "configure" +#line 4000 "configure" #include "confdefs.h" $ac_includes_default int @@ -4002,15 +4012,16 @@ main () } _ACEOF rm -f conftest.$ac_objext -if { (eval echo "$as_me:4005: \"$ac_compile\"") >&5 +if { (eval echo "$as_me:4015: \"$ac_compile\"") >&5 (eval $ac_compile) 2>&5 ac_status=$? - echo "$as_me:4008: \$? = $ac_status" >&5 + echo "$as_me:4018: \$? = $ac_status" >&5 (exit $ac_status); } && - { ac_try='test -s conftest.$ac_objext'; { (eval echo "$as_me:4010: \"$ac_try\"") >&5 + { ac_try='test -s conftest.$ac_objext' + { (eval echo "$as_me:4021: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? - echo "$as_me:4013: \$? = $ac_status" >&5 + echo "$as_me:4024: \$? = $ac_status" >&5 (exit $ac_status); }; }; then ac_cv_have_decl_stpcpy=yes else @@ -4020,7 +4031,7 @@ ac_cv_have_decl_stpcpy=no fi rm -f conftest.$ac_objext conftest.$ac_ext fi -echo "$as_me:4023: result: $ac_cv_have_decl_stpcpy" >&5 +echo "$as_me:4034: result: $ac_cv_have_decl_stpcpy" >&5 echo "${ECHO_T}$ac_cv_have_decl_stpcpy" >&6 if test $ac_cv_have_decl_stpcpy = yes; then @@ -4034,13 +4045,13 @@ else EOF fi -echo "$as_me:4037: checking whether strndup is declared" >&5 +echo "$as_me:4048: checking whether strndup is declared" >&5 echo $ECHO_N "checking whether strndup is declared... $ECHO_C" >&6 if test "${ac_cv_have_decl_strndup+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else cat >conftest.$ac_ext <<_ACEOF -#line 4043 "configure" +#line 4054 "configure" #include "confdefs.h" $ac_includes_default int @@ -4055,15 +4066,16 @@ main () } _ACEOF rm -f conftest.$ac_objext -if { (eval echo "$as_me:4058: \"$ac_compile\"") >&5 +if { (eval echo "$as_me:4069: \"$ac_compile\"") >&5 (eval $ac_compile) 2>&5 ac_status=$? - echo "$as_me:4061: \$? = $ac_status" >&5 + echo "$as_me:4072: \$? = $ac_status" >&5 (exit $ac_status); } && - { ac_try='test -s conftest.$ac_objext'; { (eval echo "$as_me:4063: \"$ac_try\"") >&5 + { ac_try='test -s conftest.$ac_objext' + { (eval echo "$as_me:4075: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? - echo "$as_me:4066: \$? = $ac_status" >&5 + echo "$as_me:4078: \$? = $ac_status" >&5 (exit $ac_status); }; }; then ac_cv_have_decl_strndup=yes else @@ -4073,7 +4085,7 @@ ac_cv_have_decl_strndup=no fi rm -f conftest.$ac_objext conftest.$ac_ext fi -echo "$as_me:4076: result: $ac_cv_have_decl_strndup" >&5 +echo "$as_me:4088: result: $ac_cv_have_decl_strndup" >&5 echo "${ECHO_T}$ac_cv_have_decl_strndup" >&6 if test $ac_cv_have_decl_strndup = yes; then @@ -4087,13 +4099,13 @@ else EOF fi -echo "$as_me:4090: checking whether strnlen is declared" >&5 +echo "$as_me:4102: checking whether strnlen is declared" >&5 echo $ECHO_N "checking whether strnlen is declared... $ECHO_C" >&6 if test "${ac_cv_have_decl_strnlen+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else cat >conftest.$ac_ext <<_ACEOF -#line 4096 "configure" +#line 4108 "configure" #include "confdefs.h" $ac_includes_default int @@ -4108,15 +4120,16 @@ main () } _ACEOF rm -f conftest.$ac_objext -if { (eval echo "$as_me:4111: \"$ac_compile\"") >&5 +if { (eval echo "$as_me:4123: \"$ac_compile\"") >&5 (eval $ac_compile) 2>&5 ac_status=$? - echo "$as_me:4114: \$? = $ac_status" >&5 + echo "$as_me:4126: \$? = $ac_status" >&5 (exit $ac_status); } && - { ac_try='test -s conftest.$ac_objext'; { (eval echo "$as_me:4116: \"$ac_try\"") >&5 + { ac_try='test -s conftest.$ac_objext' + { (eval echo "$as_me:4129: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? - echo "$as_me:4119: \$? = $ac_status" >&5 + echo "$as_me:4132: \$? = $ac_status" >&5 (exit $ac_status); }; }; then ac_cv_have_decl_strnlen=yes else @@ -4126,7 +4139,7 @@ ac_cv_have_decl_strnlen=no fi rm -f conftest.$ac_objext conftest.$ac_ext fi -echo "$as_me:4129: result: $ac_cv_have_decl_strnlen" >&5 +echo "$as_me:4142: result: $ac_cv_have_decl_strnlen" >&5 echo "${ECHO_T}$ac_cv_have_decl_strnlen" >&6 if test $ac_cv_have_decl_strnlen = yes; then @@ -4140,13 +4153,13 @@ else EOF fi -echo "$as_me:4143: checking whether memchr is declared" >&5 +echo "$as_me:4156: checking whether memchr is declared" >&5 echo $ECHO_N "checking whether memchr is declared... $ECHO_C" >&6 if test "${ac_cv_have_decl_memchr+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else cat >conftest.$ac_ext <<_ACEOF -#line 4149 "configure" +#line 4162 "configure" #include "confdefs.h" $ac_includes_default int @@ -4161,15 +4174,16 @@ main () } _ACEOF rm -f conftest.$ac_objext -if { (eval echo "$as_me:4164: \"$ac_compile\"") >&5 +if { (eval echo "$as_me:4177: \"$ac_compile\"") >&5 (eval $ac_compile) 2>&5 ac_status=$? - echo "$as_me:4167: \$? = $ac_status" >&5 + echo "$as_me:4180: \$? = $ac_status" >&5 (exit $ac_status); } && - { ac_try='test -s conftest.$ac_objext'; { (eval echo "$as_me:4169: \"$ac_try\"") >&5 + { ac_try='test -s conftest.$ac_objext' + { (eval echo "$as_me:4183: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? - echo "$as_me:4172: \$? = $ac_status" >&5 + echo "$as_me:4186: \$? = $ac_status" >&5 (exit $ac_status); }; }; then ac_cv_have_decl_memchr=yes else @@ -4179,7 +4193,7 @@ ac_cv_have_decl_memchr=no fi rm -f conftest.$ac_objext conftest.$ac_ext fi -echo "$as_me:4182: result: $ac_cv_have_decl_memchr" >&5 +echo "$as_me:4196: result: $ac_cv_have_decl_memchr" >&5 echo "${ECHO_T}$ac_cv_have_decl_memchr" >&6 if test $ac_cv_have_decl_memchr = yes; then @@ -4197,13 +4211,13 @@ fi for ac_func in stpcpy strndup strnlen memchr do ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh` -echo "$as_me:4200: checking for $ac_func" >&5 +echo "$as_me:4214: checking for $ac_func" >&5 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 if eval "test \"\${$ac_ac_var+set}\" = set"; then echo $ECHO_N "(cached) $ECHO_C" >&6 else cat >conftest.$ac_ext <<_ACEOF -#line 4206 "configure" +#line 4220 "configure" #include "confdefs.h" /* System header to define __stub macros and hopefully few prototypes, which can conflict with char $ac_func (); below. */ @@ -4234,15 +4248,16 @@ f = $ac_func; } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext -if { (eval echo "$as_me:4237: \"$ac_link\"") >&5 +if { (eval echo "$as_me:4251: \"$ac_link\"") >&5 (eval $ac_link) 2>&5 ac_status=$? - echo "$as_me:4240: \$? = $ac_status" >&5 + echo "$as_me:4254: \$? = $ac_status" >&5 (exit $ac_status); } && - { ac_try='test -s conftest$ac_exeext'; { (eval echo "$as_me:4242: \"$ac_try\"") >&5 + { ac_try='test -s conftest$ac_exeext' + { (eval echo "$as_me:4257: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? - echo "$as_me:4245: \$? = $ac_status" >&5 + echo "$as_me:4260: \$? = $ac_status" >&5 (exit $ac_status); }; }; then eval "$ac_ac_var=yes" else @@ -4252,7 +4267,7 @@ eval "$ac_ac_var=no" fi rm -f conftest$ac_exeext conftest.$ac_ext fi -echo "$as_me:4255: result: `eval echo '${'$ac_ac_var'}'`" >&5 +echo "$as_me:4270: result: `eval echo '${'$ac_ac_var'}'`" >&5 echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6 if test `eval echo '${'$ac_ac_var'}'` = yes; then cat >>confdefs.h <>confdefs.h <&5 + echo "$as_me:4286: checking for working malloc" >&5 echo $ECHO_N "checking for working malloc... $ECHO_C" >&6 if test "${jm_cv_func_working_malloc+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 @@ -4277,7 +4292,7 @@ else jm_cv_func_working_malloc=no else cat >conftest.$ac_ext <<_ACEOF -#line 4280 "configure" +#line 4295 "configure" #include "confdefs.h" char *malloc (); @@ -4289,14 +4304,15 @@ else _ACEOF rm -f conftest$ac_exeext -if { (eval echo "$as_me:4292: \"$ac_link\"") >&5 +if { (eval echo "$as_me:4307: \"$ac_link\"") >&5 (eval $ac_link) 2>&5 ac_status=$? - echo "$as_me:4295: \$? = $ac_status" >&5 - (exit $ac_status); } && { ac_try='./conftest$ac_exeext'; { (eval echo "$as_me:4296: \"$ac_try\"") >&5 + echo "$as_me:4310: \$? = $ac_status" >&5 + (exit $ac_status); } && { ac_try='./conftest$ac_exeext' + { (eval echo "$as_me:4312: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? - echo "$as_me:4299: \$? = $ac_status" >&5 + echo "$as_me:4315: \$? = $ac_status" >&5 (exit $ac_status); }; }; then jm_cv_func_working_malloc=yes else @@ -4309,7 +4325,7 @@ rm -f conftest$ac_exeext conftest.$ac_ext fi fi -echo "$as_me:4312: result: $jm_cv_func_working_malloc" >&5 +echo "$as_me:4328: result: $jm_cv_func_working_malloc" >&5 echo "${ECHO_T}$jm_cv_func_working_malloc" >&6 if test $jm_cv_func_working_malloc = no; then @@ -4325,7 +4341,7 @@ cat >>confdefs.h <&5 + echo "$as_me:4344: checking for working realloc" >&5 echo $ECHO_N "checking for working realloc... $ECHO_C" >&6 if test "${jm_cv_func_working_realloc+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 @@ -4334,7 +4350,7 @@ else jm_cv_func_working_realloc=no else cat >conftest.$ac_ext <<_ACEOF -#line 4337 "configure" +#line 4353 "configure" #include "confdefs.h" char *realloc (); @@ -4346,14 +4362,15 @@ else _ACEOF rm -f conftest$ac_exeext -if { (eval echo "$as_me:4349: \"$ac_link\"") >&5 +if { (eval echo "$as_me:4365: \"$ac_link\"") >&5 (eval $ac_link) 2>&5 ac_status=$? - echo "$as_me:4352: \$? = $ac_status" >&5 - (exit $ac_status); } && { ac_try='./conftest$ac_exeext'; { (eval echo "$as_me:4353: \"$ac_try\"") >&5 + echo "$as_me:4368: \$? = $ac_status" >&5 + (exit $ac_status); } && { ac_try='./conftest$ac_exeext' + { (eval echo "$as_me:4370: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? - echo "$as_me:4356: \$? = $ac_status" >&5 + echo "$as_me:4373: \$? = $ac_status" >&5 (exit $ac_status); }; }; then jm_cv_func_working_realloc=yes else @@ -4366,7 +4383,7 @@ rm -f conftest$ac_exeext conftest.$ac_ext fi fi -echo "$as_me:4369: result: $jm_cv_func_working_realloc" >&5 +echo "$as_me:4386: result: $jm_cv_func_working_realloc" >&5 echo "${ECHO_T}$jm_cv_func_working_realloc" >&6 if test $jm_cv_func_working_realloc = no; then @@ -4381,13 +4398,13 @@ EOF for ac_func in isascii iswprint mbrtowc do ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh` -echo "$as_me:4384: checking for $ac_func" >&5 +echo "$as_me:4401: checking for $ac_func" >&5 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 if eval "test \"\${$ac_ac_var+set}\" = set"; then echo $ECHO_N "(cached) $ECHO_C" >&6 else cat >conftest.$ac_ext <<_ACEOF -#line 4390 "configure" +#line 4407 "configure" #include "confdefs.h" /* System header to define __stub macros and hopefully few prototypes, which can conflict with char $ac_func (); below. */ @@ -4418,15 +4435,16 @@ f = $ac_func; } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext -if { (eval echo "$as_me:4421: \"$ac_link\"") >&5 +if { (eval echo "$as_me:4438: \"$ac_link\"") >&5 (eval $ac_link) 2>&5 ac_status=$? - echo "$as_me:4424: \$? = $ac_status" >&5 + echo "$as_me:4441: \$? = $ac_status" >&5 (exit $ac_status); } && - { ac_try='test -s conftest$ac_exeext'; { (eval echo "$as_me:4426: \"$ac_try\"") >&5 + { ac_try='test -s conftest$ac_exeext' + { (eval echo "$as_me:4444: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? - echo "$as_me:4429: \$? = $ac_status" >&5 + echo "$as_me:4447: \$? = $ac_status" >&5 (exit $ac_status); }; }; then eval "$ac_ac_var=yes" else @@ -4436,7 +4454,7 @@ eval "$ac_ac_var=no" fi rm -f conftest$ac_exeext conftest.$ac_ext fi -echo "$as_me:4439: result: `eval echo '${'$ac_ac_var'}'`" >&5 +echo "$as_me:4457: result: `eval echo '${'$ac_ac_var'}'`" >&5 echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6 if test `eval echo '${'$ac_ac_var'}'` = yes; then cat >>confdefs.h <&5 +echo "$as_me:4470: checking for $ac_header" >&5 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 if eval "test \"\${$ac_ac_Header+set}\" = set"; then echo $ECHO_N "(cached) $ECHO_C" >&6 else cat >conftest.$ac_ext <<_ACEOF -#line 4458 "configure" +#line 4476 "configure" #include "confdefs.h" #include <$ac_header> _ACEOF -if { (eval echo "$as_me:4462: \"$ac_cpp conftest.$ac_ext >/dev/null\"") >&5 +if { (eval echo "$as_me:4480: \"$ac_cpp conftest.$ac_ext >/dev/null\"") >&5 (eval $ac_cpp conftest.$ac_ext >/dev/null) 2>conftest.er1 ac_status=$? egrep -v '^ *\+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 - echo "$as_me:4468: \$? = $ac_status" >&5 + echo "$as_me:4486: \$? = $ac_status" >&5 (exit $ac_status); }; then if test -s conftest.err; then ac_cpp_err=$ac_c_preproc_warn_flag @@ -4484,7 +4502,7 @@ else fi rm -f conftest.err conftest.$ac_ext fi -echo "$as_me:4487: result: `eval echo '${'$ac_ac_Header'}'`" >&5 +echo "$as_me:4505: result: `eval echo '${'$ac_ac_Header'}'`" >&5 echo "${ECHO_T}`eval echo '${'$ac_ac_Header'}'`" >&6 if test `eval echo '${'$ac_ac_Header'}'` = yes; then cat >>confdefs.h <&5 + echo "$as_me:4515: checking for ANSI C header files" >&5 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 if test "${ac_cv_header_stdc+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else cat >conftest.$ac_ext <<_ACEOF -#line 4503 "configure" +#line 4521 "configure" #include "confdefs.h" #include #include @@ -4508,13 +4526,13 @@ else #include _ACEOF -if { (eval echo "$as_me:4511: \"$ac_cpp conftest.$ac_ext >/dev/null\"") >&5 +if { (eval echo "$as_me:4529: \"$ac_cpp conftest.$ac_ext >/dev/null\"") >&5 (eval $ac_cpp conftest.$ac_ext >/dev/null) 2>conftest.er1 ac_status=$? egrep -v '^ *\+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 - echo "$as_me:4517: \$? = $ac_status" >&5 + echo "$as_me:4535: \$? = $ac_status" >&5 (exit $ac_status); }; then if test -s conftest.err; then ac_cpp_err=$ac_c_preproc_warn_flag @@ -4536,7 +4554,7 @@ rm -f conftest.err conftest.$ac_ext if test $ac_cv_header_stdc = yes; then # SunOS 4.x string.h does not declare mem*, contrary to ANSI. cat >conftest.$ac_ext <<_ACEOF -#line 4539 "configure" +#line 4557 "configure" #include "confdefs.h" #include @@ -4554,7 +4572,7 @@ fi if test $ac_cv_header_stdc = yes; then # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. cat >conftest.$ac_ext <<_ACEOF -#line 4557 "configure" +#line 4575 "configure" #include "confdefs.h" #include @@ -4575,7 +4593,7 @@ if test $ac_cv_header_stdc = yes; then : else cat >conftest.$ac_ext <<_ACEOF -#line 4578 "configure" +#line 4596 "configure" #include "confdefs.h" #include #if ((' ' & 0x0FF) == 0x020) @@ -4601,14 +4619,15 @@ main () } _ACEOF rm -f conftest$ac_exeext -if { (eval echo "$as_me:4604: \"$ac_link\"") >&5 +if { (eval echo "$as_me:4622: \"$ac_link\"") >&5 (eval $ac_link) 2>&5 ac_status=$? - echo "$as_me:4607: \$? = $ac_status" >&5 - (exit $ac_status); } && { ac_try='./conftest$ac_exeext'; { (eval echo "$as_me:4608: \"$ac_try\"") >&5 + echo "$as_me:4625: \$? = $ac_status" >&5 + (exit $ac_status); } && { ac_try='./conftest$ac_exeext' + { (eval echo "$as_me:4627: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? - echo "$as_me:4611: \$? = $ac_status" >&5 + echo "$as_me:4630: \$? = $ac_status" >&5 (exit $ac_status); }; }; then : else @@ -4621,7 +4640,7 @@ rm -f conftest$ac_exeext conftest.$ac_ext fi fi fi -echo "$as_me:4624: result: $ac_cv_header_stdc" >&5 +echo "$as_me:4643: result: $ac_cv_header_stdc" >&5 echo "${ECHO_T}$ac_cv_header_stdc" >&6 if test $ac_cv_header_stdc = yes; then @@ -4631,13 +4650,13 @@ EOF fi - echo "$as_me:4634: checking whether backslash-a works in strings" >&5 + echo "$as_me:4653: checking whether backslash-a works in strings" >&5 echo $ECHO_N "checking whether backslash-a works in strings... $ECHO_C" >&6 if test "${ac_cv_c_backslash_a+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else cat >conftest.$ac_ext <<_ACEOF -#line 4640 "configure" +#line 4659 "configure" #include "confdefs.h" int @@ -4656,15 +4675,16 @@ main () } _ACEOF rm -f conftest.$ac_objext -if { (eval echo "$as_me:4659: \"$ac_compile\"") >&5 +if { (eval echo "$as_me:4678: \"$ac_compile\"") >&5 (eval $ac_compile) 2>&5 ac_status=$? - echo "$as_me:4662: \$? = $ac_status" >&5 + echo "$as_me:4681: \$? = $ac_status" >&5 (exit $ac_status); } && - { ac_try='test -s conftest.$ac_objext'; { (eval echo "$as_me:4664: \"$ac_try\"") >&5 + { ac_try='test -s conftest.$ac_objext' + { (eval echo "$as_me:4684: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? - echo "$as_me:4667: \$? = $ac_status" >&5 + echo "$as_me:4687: \$? = $ac_status" >&5 (exit $ac_status); }; }; then ac_cv_c_backslash_a=yes else @@ -4674,7 +4694,7 @@ ac_cv_c_backslash_a=no fi rm -f conftest.$ac_objext conftest.$ac_ext fi -echo "$as_me:4677: result: $ac_cv_c_backslash_a" >&5 +echo "$as_me:4697: result: $ac_cv_c_backslash_a" >&5 echo "${ECHO_T}$ac_cv_c_backslash_a" >&6 if test $ac_cv_c_backslash_a = yes; then @@ -4687,23 +4707,23 @@ EOF for ac_header in stdlib.h do ac_ac_Header=`echo "ac_cv_header_$ac_header" | $ac_tr_sh` -echo "$as_me:4690: checking for $ac_header" >&5 +echo "$as_me:4710: checking for $ac_header" >&5 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 if eval "test \"\${$ac_ac_Header+set}\" = set"; then echo $ECHO_N "(cached) $ECHO_C" >&6 else cat >conftest.$ac_ext <<_ACEOF -#line 4696 "configure" +#line 4716 "configure" #include "confdefs.h" #include <$ac_header> _ACEOF -if { (eval echo "$as_me:4700: \"$ac_cpp conftest.$ac_ext >/dev/null\"") >&5 +if { (eval echo "$as_me:4720: \"$ac_cpp conftest.$ac_ext >/dev/null\"") >&5 (eval $ac_cpp conftest.$ac_ext >/dev/null) 2>conftest.er1 ac_status=$? egrep -v '^ *\+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 - echo "$as_me:4706: \$? = $ac_status" >&5 + echo "$as_me:4726: \$? = $ac_status" >&5 (exit $ac_status); }; then if test -s conftest.err; then ac_cpp_err=$ac_c_preproc_warn_flag @@ -4722,7 +4742,7 @@ else fi rm -f conftest.err conftest.$ac_ext fi -echo "$as_me:4725: result: `eval echo '${'$ac_ac_Header'}'`" >&5 +echo "$as_me:4745: result: `eval echo '${'$ac_ac_Header'}'`" >&5 echo "${ECHO_T}`eval echo '${'$ac_ac_Header'}'`" >&6 if test `eval echo '${'$ac_ac_Header'}'` = yes; then cat >>confdefs.h <&5 + echo "$as_me:4755: checking for mbstate_t" >&5 echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6 if test "${ac_cv_type_mbstate_t+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else cat >conftest.$ac_ext <<_ACEOF -#line 4741 "configure" +#line 4761 "configure" #include "confdefs.h" #if HAVE_STDLIB_H @@ -4754,15 +4774,16 @@ mbstate_t x; return sizeof x; } _ACEOF rm -f conftest.$ac_objext -if { (eval echo "$as_me:4757: \"$ac_compile\"") >&5 +if { (eval echo "$as_me:4777: \"$ac_compile\"") >&5 (eval $ac_compile) 2>&5 ac_status=$? - echo "$as_me:4760: \$? = $ac_status" >&5 + echo "$as_me:4780: \$? = $ac_status" >&5 (exit $ac_status); } && - { ac_try='test -s conftest.$ac_objext'; { (eval echo "$as_me:4762: \"$ac_try\"") >&5 + { ac_try='test -s conftest.$ac_objext' + { (eval echo "$as_me:4783: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? - echo "$as_me:4765: \$? = $ac_status" >&5 + echo "$as_me:4786: \$? = $ac_status" >&5 (exit $ac_status); }; }; then ac_cv_type_mbstate_t=yes else @@ -4772,7 +4793,7 @@ ac_cv_type_mbstate_t=no fi rm -f conftest.$ac_objext conftest.$ac_ext fi -echo "$as_me:4775: result: $ac_cv_type_mbstate_t" >&5 +echo "$as_me:4796: result: $ac_cv_type_mbstate_t" >&5 echo "${ECHO_T}$ac_cv_type_mbstate_t" >&6 if test $ac_cv_type_mbstate_t = no; then @@ -4782,10 +4803,10 @@ EOF fi -echo "$as_me:4785: checking for function prototypes" >&5 +echo "$as_me:4806: checking for function prototypes" >&5 echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6 if test "$am_cv_prog_cc_stdc" != no; then - echo "$as_me:4788: result: yes" >&5 + echo "$as_me:4809: result: yes" >&5 echo "${ECHO_T}yes" >&6 cat >>confdefs.h <<\EOF @@ -4794,17 +4815,17 @@ EOF U= ANSI2KNR= else - echo "$as_me:4797: result: no" >&5 + echo "$as_me:4818: result: no" >&5 echo "${ECHO_T}no" >&6 U=_ ANSI2KNR=./ansi2knr # Ensure some checks needed by ansi2knr itself. - echo "$as_me:4801: checking for ANSI C header files" >&5 + echo "$as_me:4822: checking for ANSI C header files" >&5 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 if test "${ac_cv_header_stdc+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else cat >conftest.$ac_ext <<_ACEOF -#line 4807 "configure" +#line 4828 "configure" #include "confdefs.h" #include #include @@ -4812,13 +4833,13 @@ else #include _ACEOF -if { (eval echo "$as_me:4815: \"$ac_cpp conftest.$ac_ext >/dev/null\"") >&5 +if { (eval echo "$as_me:4836: \"$ac_cpp conftest.$ac_ext >/dev/null\"") >&5 (eval $ac_cpp conftest.$ac_ext >/dev/null) 2>conftest.er1 ac_status=$? egrep -v '^ *\+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 - echo "$as_me:4821: \$? = $ac_status" >&5 + echo "$as_me:4842: \$? = $ac_status" >&5 (exit $ac_status); }; then if test -s conftest.err; then ac_cpp_err=$ac_c_preproc_warn_flag @@ -4840,7 +4861,7 @@ rm -f conftest.err conftest.$ac_ext if test $ac_cv_header_stdc = yes; then # SunOS 4.x string.h does not declare mem*, contrary to ANSI. cat >conftest.$ac_ext <<_ACEOF -#line 4843 "configure" +#line 4864 "configure" #include "confdefs.h" #include @@ -4858,7 +4879,7 @@ fi if test $ac_cv_header_stdc = yes; then # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. cat >conftest.$ac_ext <<_ACEOF -#line 4861 "configure" +#line 4882 "configure" #include "confdefs.h" #include @@ -4879,7 +4900,7 @@ if test $ac_cv_header_stdc = yes; then : else cat >conftest.$ac_ext <<_ACEOF -#line 4882 "configure" +#line 4903 "configure" #include "confdefs.h" #include #if ((' ' & 0x0FF) == 0x020) @@ -4905,14 +4926,15 @@ main () } _ACEOF rm -f conftest$ac_exeext -if { (eval echo "$as_me:4908: \"$ac_link\"") >&5 +if { (eval echo "$as_me:4929: \"$ac_link\"") >&5 (eval $ac_link) 2>&5 ac_status=$? - echo "$as_me:4911: \$? = $ac_status" >&5 - (exit $ac_status); } && { ac_try='./conftest$ac_exeext'; { (eval echo "$as_me:4912: \"$ac_try\"") >&5 + echo "$as_me:4932: \$? = $ac_status" >&5 + (exit $ac_status); } && { ac_try='./conftest$ac_exeext' + { (eval echo "$as_me:4934: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? - echo "$as_me:4915: \$? = $ac_status" >&5 + echo "$as_me:4937: \$? = $ac_status" >&5 (exit $ac_status); }; }; then : else @@ -4925,7 +4947,7 @@ rm -f conftest$ac_exeext conftest.$ac_ext fi fi fi -echo "$as_me:4928: result: $ac_cv_header_stdc" >&5 +echo "$as_me:4950: result: $ac_cv_header_stdc" >&5 echo "${ECHO_T}$ac_cv_header_stdc" >&6 if test $ac_cv_header_stdc = yes; then @@ -4938,23 +4960,23 @@ fi for ac_header in string.h do ac_ac_Header=`echo "ac_cv_header_$ac_header" | $ac_tr_sh` -echo "$as_me:4941: checking for $ac_header" >&5 +echo "$as_me:4963: checking for $ac_header" >&5 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 if eval "test \"\${$ac_ac_Header+set}\" = set"; then echo $ECHO_N "(cached) $ECHO_C" >&6 else cat >conftest.$ac_ext <<_ACEOF -#line 4947 "configure" +#line 4969 "configure" #include "confdefs.h" #include <$ac_header> _ACEOF -if { (eval echo "$as_me:4951: \"$ac_cpp conftest.$ac_ext >/dev/null\"") >&5 +if { (eval echo "$as_me:4973: \"$ac_cpp conftest.$ac_ext >/dev/null\"") >&5 (eval $ac_cpp conftest.$ac_ext >/dev/null) 2>conftest.er1 ac_status=$? egrep -v '^ *\+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 - echo "$as_me:4957: \$? = $ac_status" >&5 + echo "$as_me:4979: \$? = $ac_status" >&5 (exit $ac_status); }; then if test -s conftest.err; then ac_cpp_err=$ac_c_preproc_warn_flag @@ -4973,7 +4995,7 @@ else fi rm -f conftest.err conftest.$ac_ext fi -echo "$as_me:4976: result: `eval echo '${'$ac_ac_Header'}'`" >&5 +echo "$as_me:4998: result: `eval echo '${'$ac_ac_Header'}'`" >&5 echo "${ECHO_T}`eval echo '${'$ac_ac_Header'}'`" >&6 if test `eval echo '${'$ac_ac_Header'}'` = yes; then cat >>confdefs.h <&5 -echo $ECHO_N "checking for off_t... $ECHO_C" >&6 -if test "${ac_cv_type_off_t+set}" = set; then +for ac_func in strerror strerror_r vprintf doprnt +do +ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh` +echo "$as_me:5013: checking for $ac_func" >&5 +echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 +if eval "test \"\${$ac_ac_var+set}\" = set"; then echo $ECHO_N "(cached) $ECHO_C" >&6 else cat >conftest.$ac_ext <<_ACEOF -#line 4995 "configure" +#line 5019 "configure" #include "confdefs.h" -$ac_includes_default +/* System header to define __stub macros and hopefully few prototypes, + which can conflict with char $ac_func (); below. */ +#include +/* Override any gcc2 internal prototype to avoid an error. */ +#ifdef __cplusplus +extern "C" +#endif +/* We use char because int might match the return type of a gcc2 + builtin and then its argument prototype would still apply. */ +char $ac_func (); +char (*f) (); + int main () { -if ((off_t *) 0) - return 0; -if (sizeof (off_t)) - return 0; +/* The GNU C library defines this for functions which it implements + to always fail with ENOSYS. Some functions are actually named + something starting with __ and the normal name is an alias. */ +#if defined (__stub_$ac_func) || defined (__stub___$ac_func) +choke me +#else +f = $ac_func; +#endif + ; return 0; } _ACEOF -rm -f conftest.$ac_objext -if { (eval echo "$as_me:5010: \"$ac_compile\"") >&5 - (eval $ac_compile) 2>&5 +rm -f conftest.$ac_objext conftest$ac_exeext +if { (eval echo "$as_me:5050: \"$ac_link\"") >&5 + (eval $ac_link) 2>&5 ac_status=$? - echo "$as_me:5013: \$? = $ac_status" >&5 + echo "$as_me:5053: \$? = $ac_status" >&5 (exit $ac_status); } && - { ac_try='test -s conftest.$ac_objext'; { (eval echo "$as_me:5015: \"$ac_try\"") >&5 + { ac_try='test -s conftest$ac_exeext' + { (eval echo "$as_me:5056: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? - echo "$as_me:5018: \$? = $ac_status" >&5 + echo "$as_me:5059: \$? = $ac_status" >&5 (exit $ac_status); }; }; then - ac_cv_type_off_t=yes + eval "$ac_ac_var=yes" else echo "$as_me: failed program was:" >&5 cat conftest.$ac_ext >&5 -ac_cv_type_off_t=no +eval "$ac_ac_var=no" fi -rm -f conftest.$ac_objext conftest.$ac_ext +rm -f conftest$ac_exeext conftest.$ac_ext fi -echo "$as_me:5028: result: $ac_cv_type_off_t" >&5 -echo "${ECHO_T}$ac_cv_type_off_t" >&6 -if test $ac_cv_type_off_t = yes; then - : -else - -cat >>confdefs.h <&5 +echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6 +if test `eval echo '${'$ac_ac_var'}'` = yes; then + cat >>confdefs.h <&5 -echo $ECHO_N "checking for size_t... $ECHO_C" >&6 -if test "${ac_cv_type_size_t+set}" = set; then + echo "$as_me:5079: checking for ANSI C header files" >&5 +echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 +if test "${ac_cv_header_stdc+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else cat >conftest.$ac_ext <<_ACEOF -#line 5046 "configure" +#line 5085 "configure" #include "confdefs.h" -$ac_includes_default -int -main () -{ -if ((size_t *) 0) - return 0; -if (sizeof (size_t)) - return 0; - ; - return 0; -} +#include +#include +#include +#include + _ACEOF -rm -f conftest.$ac_objext -if { (eval echo "$as_me:5061: \"$ac_compile\"") >&5 - (eval $ac_compile) 2>&5 - ac_status=$? - echo "$as_me:5064: \$? = $ac_status" >&5 - (exit $ac_status); } && - { ac_try='test -s conftest.$ac_objext'; { (eval echo "$as_me:5066: \"$ac_try\"") >&5 - (eval $ac_try) 2>&5 +if { (eval echo "$as_me:5093: \"$ac_cpp conftest.$ac_ext >/dev/null\"") >&5 + (eval $ac_cpp conftest.$ac_ext >/dev/null) 2>conftest.er1 ac_status=$? - echo "$as_me:5069: \$? = $ac_status" >&5 - (exit $ac_status); }; }; then - ac_cv_type_size_t=yes + egrep -v '^ *\+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 + echo "$as_me:5099: \$? = $ac_status" >&5 + (exit $ac_status); }; then + if test -s conftest.err; then + ac_cpp_err=$ac_c_preproc_warn_flag + else + ac_cpp_err= + fi else - echo "$as_me: failed program was:" >&5 -cat conftest.$ac_ext >&5 -ac_cv_type_size_t=no -fi -rm -f conftest.$ac_objext conftest.$ac_ext + ac_cpp_err=yes fi -echo "$as_me:5079: result: $ac_cv_type_size_t" >&5 -echo "${ECHO_T}$ac_cv_type_size_t" >&6 -if test $ac_cv_type_size_t = yes; then - : +if test -z "$ac_cpp_err"; then + ac_cv_header_stdc=yes else + echo "$as_me: failed program was:" >&5 + cat conftest.$ac_ext >&5 + ac_cv_header_stdc=no +fi +rm -f conftest.err conftest.$ac_ext -cat >>confdefs.h <conftest.$ac_ext <<_ACEOF +#line 5121 "configure" +#include "confdefs.h" +#include + +_ACEOF +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | + egrep "memchr" >/dev/null 2>&1; then + : +else + ac_cv_header_stdc=no +fi +rm -f conftest* + +fi + +if test $ac_cv_header_stdc = yes; then + # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. + cat >conftest.$ac_ext <<_ACEOF +#line 5139 "configure" +#include "confdefs.h" +#include + +_ACEOF +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | + egrep "free" >/dev/null 2>&1; then + : +else + ac_cv_header_stdc=no +fi +rm -f conftest* + +fi + +if test $ac_cv_header_stdc = yes; then + # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. + if test "$cross_compiling" = yes; then + : +else + cat >conftest.$ac_ext <<_ACEOF +#line 5160 "configure" +#include "confdefs.h" +#include +#if ((' ' & 0x0FF) == 0x020) +# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') +# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) +#else +# define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \ + || ('j' <= (c) && (c) <= 'r') \ + || ('s' <= (c) && (c) <= 'z')) +# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) +#endif + +#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) +int +main () +{ + int i; + for (i = 0; i < 256; i++) + if (XOR (islower (i), ISLOWER (i)) + || toupper (i) != TOUPPER (i)) + exit(2); + exit (0); +} +_ACEOF +rm -f conftest$ac_exeext +if { (eval echo "$as_me:5186: \"$ac_link\"") >&5 + (eval $ac_link) 2>&5 + ac_status=$? + echo "$as_me:5189: \$? = $ac_status" >&5 + (exit $ac_status); } && { ac_try='./conftest$ac_exeext' + { (eval echo "$as_me:5191: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:5194: \$? = $ac_status" >&5 + (exit $ac_status); }; }; then + : +else + echo "$as_me: program exited with status $ac_status" >&5 +echo "$as_me: failed program was:" >&5 +cat conftest.$ac_ext >&5 +ac_cv_header_stdc=no +fi +rm -f conftest$ac_exeext conftest.$ac_ext +fi +fi +fi +echo "$as_me:5207: result: $ac_cv_header_stdc" >&5 +echo "${ECHO_T}$ac_cv_header_stdc" >&6 +if test $ac_cv_header_stdc = yes; then + +cat >>confdefs.h <<\EOF +#define STDC_HEADERS 1 +EOF + +fi + + echo "$as_me:5217: checking whether strerror_r is declared" >&5 +echo $ECHO_N "checking whether strerror_r is declared... $ECHO_C" >&6 +if test "${ac_cv_have_decl_strerror_r+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + cat >conftest.$ac_ext <<_ACEOF +#line 5223 "configure" +#include "confdefs.h" +$ac_includes_default +int +main () +{ +#ifndef strerror_r + char *p = (char *) strerror_r; +#endif + + ; + return 0; +} +_ACEOF +rm -f conftest.$ac_objext +if { (eval echo "$as_me:5238: \"$ac_compile\"") >&5 + (eval $ac_compile) 2>&5 + ac_status=$? + echo "$as_me:5241: \$? = $ac_status" >&5 + (exit $ac_status); } && + { ac_try='test -s conftest.$ac_objext' + { (eval echo "$as_me:5244: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:5247: \$? = $ac_status" >&5 + (exit $ac_status); }; }; then + ac_cv_have_decl_strerror_r=yes +else + echo "$as_me: failed program was:" >&5 +cat conftest.$ac_ext >&5 +ac_cv_have_decl_strerror_r=no +fi +rm -f conftest.$ac_objext conftest.$ac_ext +fi +echo "$as_me:5257: result: $ac_cv_have_decl_strerror_r" >&5 +echo "${ECHO_T}$ac_cv_have_decl_strerror_r" >&6 +if test $ac_cv_have_decl_strerror_r = yes; then + +cat >>confdefs.h <>confdefs.h <&5 +echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 +if eval "test \"\${$ac_ac_var+set}\" = set"; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + cat >conftest.$ac_ext <<_ACEOF +#line 5281 "configure" +#include "confdefs.h" +/* System header to define __stub macros and hopefully few prototypes, + which can conflict with char $ac_func (); below. */ +#include +/* Override any gcc2 internal prototype to avoid an error. */ +#ifdef __cplusplus +extern "C" +#endif +/* We use char because int might match the return type of a gcc2 + builtin and then its argument prototype would still apply. */ +char $ac_func (); +char (*f) (); + +int +main () +{ +/* The GNU C library defines this for functions which it implements + to always fail with ENOSYS. Some functions are actually named + something starting with __ and the normal name is an alias. */ +#if defined (__stub_$ac_func) || defined (__stub___$ac_func) +choke me +#else +f = $ac_func; +#endif + + ; + return 0; +} +_ACEOF +rm -f conftest.$ac_objext conftest$ac_exeext +if { (eval echo "$as_me:5312: \"$ac_link\"") >&5 + (eval $ac_link) 2>&5 + ac_status=$? + echo "$as_me:5315: \$? = $ac_status" >&5 + (exit $ac_status); } && + { ac_try='test -s conftest$ac_exeext' + { (eval echo "$as_me:5318: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:5321: \$? = $ac_status" >&5 + (exit $ac_status); }; }; then + eval "$ac_ac_var=yes" +else + echo "$as_me: failed program was:" >&5 +cat conftest.$ac_ext >&5 +eval "$ac_ac_var=no" +fi +rm -f conftest$ac_exeext conftest.$ac_ext +fi +echo "$as_me:5331: result: `eval echo '${'$ac_ac_var'}'`" >&5 +echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6 +if test `eval echo '${'$ac_ac_var'}'` = yes; then + cat >>confdefs.h <&5 +echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 +if eval "test \"\${$ac_ac_Header+set}\" = set"; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + cat >conftest.$ac_ext <<_ACEOF +#line 5352 "configure" +#include "confdefs.h" +#include <$ac_header> +_ACEOF +if { (eval echo "$as_me:5356: \"$ac_cpp conftest.$ac_ext >/dev/null\"") >&5 + (eval $ac_cpp conftest.$ac_ext >/dev/null) 2>conftest.er1 + ac_status=$? + egrep -v '^ *\+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 + echo "$as_me:5362: \$? = $ac_status" >&5 + (exit $ac_status); }; then + if test -s conftest.err; then + ac_cpp_err=$ac_c_preproc_warn_flag + else + ac_cpp_err= + fi +else + ac_cpp_err=yes +fi +if test -z "$ac_cpp_err"; then + eval "$ac_ac_Header=yes" +else + echo "$as_me: failed program was:" >&5 + cat conftest.$ac_ext >&5 + eval "$ac_ac_Header=no" +fi +rm -f conftest.err conftest.$ac_ext +fi +echo "$as_me:5381: result: `eval echo '${'$ac_ac_Header'}'`" >&5 +echo "${ECHO_T}`eval echo '${'$ac_ac_Header'}'`" >&6 +if test `eval echo '${'$ac_ac_Header'}'` = yes; then + cat >>confdefs.h <&5 +echo $ECHO_N "checking for working strerror_r... $ECHO_C" >&6 +if test "${ac_cv_func_strerror_r_works+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + + cat >conftest.$ac_ext <<_ACEOF +#line 5398 "configure" +#include "confdefs.h" + +# include +# if HAVE_STRING_H +# include +# endif + +int +main () +{ + + char buf[100]; + char x = *strerror_r (0, buf, sizeof buf); + + ; + return 0; +} +_ACEOF +rm -f conftest.$ac_objext +if { (eval echo "$as_me:5418: \"$ac_compile\"") >&5 + (eval $ac_compile) 2>&5 + ac_status=$? + echo "$as_me:5421: \$? = $ac_status" >&5 + (exit $ac_status); } && + { ac_try='test -s conftest.$ac_objext' + { (eval echo "$as_me:5424: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:5427: \$? = $ac_status" >&5 + (exit $ac_status); }; }; then + ac_cv_func_strerror_r_works=yes +else + echo "$as_me: failed program was:" >&5 +cat conftest.$ac_ext >&5 +ac_cv_func_strerror_r_works=no + +fi +rm -f conftest.$ac_objext conftest.$ac_ext + if test $ac_cv_func_strerror_r_works = no; then + # strerror_r seems not to work, but now we have to choose between + # systems that have relatively inaccessible declarations for the + # function. BeOS and DEC UNIX 4.0 fall in this category, but the + # former has a strerror_r that returns char*, while the latter + # has a strerror_r that returns `int'. + # This test should segfault on the DEC system. + if test "$cross_compiling" = yes; then + ac_cv_func_strerror_r_works=no +else + cat >conftest.$ac_ext <<_ACEOF +#line 5448 "configure" +#include "confdefs.h" + +# include +# include +# include + + extern char *strerror_r (); + + int + main () + { + char buf[100]; + char x = *strerror_r (0, buf, sizeof buf); + exit (!isalpha (x)); + } + +_ACEOF +rm -f conftest$ac_exeext +if { (eval echo "$as_me:5467: \"$ac_link\"") >&5 + (eval $ac_link) 2>&5 + ac_status=$? + echo "$as_me:5470: \$? = $ac_status" >&5 + (exit $ac_status); } && { ac_try='./conftest$ac_exeext' + { (eval echo "$as_me:5472: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:5475: \$? = $ac_status" >&5 + (exit $ac_status); }; }; then + ac_cv_func_strerror_r_works=yes +else + echo "$as_me: program exited with status $ac_status" >&5 +echo "$as_me: failed program was:" >&5 +cat conftest.$ac_ext >&5 +ac_cv_func_strerror_r_works=no +fi +rm -f conftest$ac_exeext conftest.$ac_ext +fi + fi + +fi +echo "$as_me:5489: result: $ac_cv_func_strerror_r_works" >&5 +echo "${ECHO_T}$ac_cv_func_strerror_r_works" >&6 + if test $ac_cv_func_strerror_r_works = yes; then + +cat >>confdefs.h <&5 +echo $ECHO_N "checking for off_t... $ECHO_C" >&6 +if test "${ac_cv_type_off_t+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + cat >conftest.$ac_ext <<_ACEOF +#line 5507 "configure" +#include "confdefs.h" +$ac_includes_default +int +main () +{ +if ((off_t *) 0) + return 0; +if (sizeof (off_t)) + return 0; + ; + return 0; +} +_ACEOF +rm -f conftest.$ac_objext +if { (eval echo "$as_me:5522: \"$ac_compile\"") >&5 + (eval $ac_compile) 2>&5 + ac_status=$? + echo "$as_me:5525: \$? = $ac_status" >&5 + (exit $ac_status); } && + { ac_try='test -s conftest.$ac_objext' + { (eval echo "$as_me:5528: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:5531: \$? = $ac_status" >&5 + (exit $ac_status); }; }; then + ac_cv_type_off_t=yes +else + echo "$as_me: failed program was:" >&5 +cat conftest.$ac_ext >&5 +ac_cv_type_off_t=no +fi +rm -f conftest.$ac_objext conftest.$ac_ext +fi +echo "$as_me:5541: result: $ac_cv_type_off_t" >&5 +echo "${ECHO_T}$ac_cv_type_off_t" >&6 +if test $ac_cv_type_off_t = yes; then + : +else + +cat >>confdefs.h <&5 +echo $ECHO_N "checking for size_t... $ECHO_C" >&6 +if test "${ac_cv_type_size_t+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + cat >conftest.$ac_ext <<_ACEOF +#line 5559 "configure" +#include "confdefs.h" +$ac_includes_default +int +main () +{ +if ((size_t *) 0) + return 0; +if (sizeof (size_t)) + return 0; + ; + return 0; +} +_ACEOF +rm -f conftest.$ac_objext +if { (eval echo "$as_me:5574: \"$ac_compile\"") >&5 + (eval $ac_compile) 2>&5 + ac_status=$? + echo "$as_me:5577: \$? = $ac_status" >&5 + (exit $ac_status); } && + { ac_try='test -s conftest.$ac_objext' + { (eval echo "$as_me:5580: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:5583: \$? = $ac_status" >&5 + (exit $ac_status); }; }; then + ac_cv_type_size_t=yes +else + echo "$as_me: failed program was:" >&5 +cat conftest.$ac_ext >&5 +ac_cv_type_size_t=no +fi +rm -f conftest.$ac_objext conftest.$ac_ext +fi +echo "$as_me:5593: result: $ac_cv_type_size_t" >&5 +echo "${ECHO_T}$ac_cv_type_size_t" >&6 +if test $ac_cv_type_size_t = yes; then + : +else + +cat >>confdefs.h <&5 +echo "$as_me:5608: checking for $ac_header" >&5 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 if eval "test \"\${$ac_ac_Header+set}\" = set"; then echo $ECHO_N "(cached) $ECHO_C" >&6 else cat >conftest.$ac_ext <<_ACEOF -#line 5100 "configure" +#line 5614 "configure" #include "confdefs.h" #include <$ac_header> _ACEOF -if { (eval echo "$as_me:5104: \"$ac_cpp conftest.$ac_ext >/dev/null\"") >&5 +if { (eval echo "$as_me:5618: \"$ac_cpp conftest.$ac_ext >/dev/null\"") >&5 (eval $ac_cpp conftest.$ac_ext >/dev/null) 2>conftest.er1 ac_status=$? egrep -v '^ *\+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 - echo "$as_me:5110: \$? = $ac_status" >&5 + echo "$as_me:5624: \$? = $ac_status" >&5 (exit $ac_status); }; then if test -s conftest.err; then ac_cpp_err=$ac_c_preproc_warn_flag @@ -5126,7 +5640,7 @@ else fi rm -f conftest.err conftest.$ac_ext fi -echo "$as_me:5129: result: `eval echo '${'$ac_ac_Header'}'`" >&5 +echo "$as_me:5643: result: `eval echo '${'$ac_ac_Header'}'`" >&5 echo "${ECHO_T}`eval echo '${'$ac_ac_Header'}'`" >&6 if test `eval echo '${'$ac_ac_Header'}'` = yes; then cat >>confdefs.h <&5 +echo "$as_me:5656: checking for $ac_func" >&5 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 if eval "test \"\${$ac_ac_var+set}\" = set"; then echo $ECHO_N "(cached) $ECHO_C" >&6 else cat >conftest.$ac_ext <<_ACEOF -#line 5148 "configure" +#line 5662 "configure" #include "confdefs.h" /* System header to define __stub macros and hopefully few prototypes, which can conflict with char $ac_func (); below. */ @@ -5176,15 +5690,16 @@ f = $ac_func; } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext -if { (eval echo "$as_me:5179: \"$ac_link\"") >&5 +if { (eval echo "$as_me:5693: \"$ac_link\"") >&5 (eval $ac_link) 2>&5 ac_status=$? - echo "$as_me:5182: \$? = $ac_status" >&5 + echo "$as_me:5696: \$? = $ac_status" >&5 (exit $ac_status); } && - { ac_try='test -s conftest$ac_exeext'; { (eval echo "$as_me:5184: \"$ac_try\"") >&5 + { ac_try='test -s conftest$ac_exeext' + { (eval echo "$as_me:5699: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? - echo "$as_me:5187: \$? = $ac_status" >&5 + echo "$as_me:5702: \$? = $ac_status" >&5 (exit $ac_status); }; }; then eval "$ac_ac_var=yes" else @@ -5194,7 +5709,7 @@ eval "$ac_ac_var=no" fi rm -f conftest$ac_exeext conftest.$ac_ext fi -echo "$as_me:5197: result: `eval echo '${'$ac_ac_var'}'`" >&5 +echo "$as_me:5712: result: `eval echo '${'$ac_ac_var'}'`" >&5 echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6 if test `eval echo '${'$ac_ac_var'}'` = yes; then cat >>confdefs.h <&5 +echo "$as_me:5722: checking for working mmap" >&5 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 @@ -5213,7 +5728,7 @@ else ac_cv_func_mmap_fixed_mapped=no else cat >conftest.$ac_ext <<_ACEOF -#line 5216 "configure" +#line 5731 "configure" #include "confdefs.h" /* Thanks to Mike Haertel and Jim Avera for this test. Here is a matrix of mmap possibilities: @@ -5345,14 +5860,15 @@ main () } _ACEOF rm -f conftest$ac_exeext -if { (eval echo "$as_me:5348: \"$ac_link\"") >&5 +if { (eval echo "$as_me:5863: \"$ac_link\"") >&5 (eval $ac_link) 2>&5 ac_status=$? - echo "$as_me:5351: \$? = $ac_status" >&5 - (exit $ac_status); } && { ac_try='./conftest$ac_exeext'; { (eval echo "$as_me:5352: \"$ac_try\"") >&5 + echo "$as_me:5866: \$? = $ac_status" >&5 + (exit $ac_status); } && { ac_try='./conftest$ac_exeext' + { (eval echo "$as_me:5868: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? - echo "$as_me:5355: \$? = $ac_status" >&5 + echo "$as_me:5871: \$? = $ac_status" >&5 (exit $ac_status); }; }; then ac_cv_func_mmap_fixed_mapped=yes else @@ -5364,7 +5880,7 @@ fi rm -f conftest$ac_exeext conftest.$ac_ext fi fi -echo "$as_me:5367: result: $ac_cv_func_mmap_fixed_mapped" >&5 +echo "$as_me:5883: result: $ac_cv_func_mmap_fixed_mapped" >&5 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6 if test $ac_cv_func_mmap_fixed_mapped = yes; then @@ -5379,23 +5895,23 @@ for ac_header in argz.h limits.h locale.h nl_types.h malloc.h string.h \ unistd.h sys/param.h do ac_ac_Header=`echo "ac_cv_header_$ac_header" | $ac_tr_sh` -echo "$as_me:5382: checking for $ac_header" >&5 +echo "$as_me:5898: checking for $ac_header" >&5 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 if eval "test \"\${$ac_ac_Header+set}\" = set"; then echo $ECHO_N "(cached) $ECHO_C" >&6 else cat >conftest.$ac_ext <<_ACEOF -#line 5388 "configure" +#line 5904 "configure" #include "confdefs.h" #include <$ac_header> _ACEOF -if { (eval echo "$as_me:5392: \"$ac_cpp conftest.$ac_ext >/dev/null\"") >&5 +if { (eval echo "$as_me:5908: \"$ac_cpp conftest.$ac_ext >/dev/null\"") >&5 (eval $ac_cpp conftest.$ac_ext >/dev/null) 2>conftest.er1 ac_status=$? egrep -v '^ *\+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 - echo "$as_me:5398: \$? = $ac_status" >&5 + echo "$as_me:5914: \$? = $ac_status" >&5 (exit $ac_status); }; then if test -s conftest.err; then ac_cpp_err=$ac_c_preproc_warn_flag @@ -5414,7 +5930,7 @@ else fi rm -f conftest.err conftest.$ac_ext fi -echo "$as_me:5417: result: `eval echo '${'$ac_ac_Header'}'`" >&5 +echo "$as_me:5933: result: `eval echo '${'$ac_ac_Header'}'`" >&5 echo "${ECHO_T}`eval echo '${'$ac_ac_Header'}'`" >&6 if test `eval echo '${'$ac_ac_Header'}'` = yes; then cat >>confdefs.h <&5 +echo "$as_me:5947: checking for $ac_func" >&5 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 if eval "test \"\${$ac_ac_var+set}\" = set"; then echo $ECHO_N "(cached) $ECHO_C" >&6 else cat >conftest.$ac_ext <<_ACEOF -#line 5437 "configure" +#line 5953 "configure" #include "confdefs.h" /* System header to define __stub macros and hopefully few prototypes, which can conflict with char $ac_func (); below. */ @@ -5465,15 +5981,16 @@ f = $ac_func; } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext -if { (eval echo "$as_me:5468: \"$ac_link\"") >&5 +if { (eval echo "$as_me:5984: \"$ac_link\"") >&5 (eval $ac_link) 2>&5 ac_status=$? - echo "$as_me:5471: \$? = $ac_status" >&5 + echo "$as_me:5987: \$? = $ac_status" >&5 (exit $ac_status); } && - { ac_try='test -s conftest$ac_exeext'; { (eval echo "$as_me:5473: \"$ac_try\"") >&5 + { ac_try='test -s conftest$ac_exeext' + { (eval echo "$as_me:5990: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? - echo "$as_me:5476: \$? = $ac_status" >&5 + echo "$as_me:5993: \$? = $ac_status" >&5 (exit $ac_status); }; }; then eval "$ac_ac_var=yes" else @@ -5483,7 +6000,7 @@ eval "$ac_ac_var=no" fi rm -f conftest$ac_exeext conftest.$ac_ext fi -echo "$as_me:5486: result: `eval echo '${'$ac_ac_var'}'`" >&5 +echo "$as_me:6003: result: `eval echo '${'$ac_ac_var'}'`" >&5 echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6 if test `eval echo '${'$ac_ac_var'}'` = yes; then cat >>confdefs.h <&5 +echo "$as_me:6018: checking for $ac_func" >&5 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 if eval "test \"\${$ac_ac_var+set}\" = set"; then echo $ECHO_N "(cached) $ECHO_C" >&6 else cat >conftest.$ac_ext <<_ACEOF -#line 5507 "configure" +#line 6024 "configure" #include "confdefs.h" /* System header to define __stub macros and hopefully few prototypes, which can conflict with char $ac_func (); below. */ @@ -5535,15 +6052,16 @@ f = $ac_func; } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext -if { (eval echo "$as_me:5538: \"$ac_link\"") >&5 +if { (eval echo "$as_me:6055: \"$ac_link\"") >&5 (eval $ac_link) 2>&5 ac_status=$? - echo "$as_me:5541: \$? = $ac_status" >&5 + echo "$as_me:6058: \$? = $ac_status" >&5 (exit $ac_status); } && - { ac_try='test -s conftest$ac_exeext'; { (eval echo "$as_me:5543: \"$ac_try\"") >&5 + { ac_try='test -s conftest$ac_exeext' + { (eval echo "$as_me:6061: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? - echo "$as_me:5546: \$? = $ac_status" >&5 + echo "$as_me:6064: \$? = $ac_status" >&5 (exit $ac_status); }; }; then eval "$ac_ac_var=yes" else @@ -5553,7 +6071,7 @@ eval "$ac_ac_var=no" fi rm -f conftest$ac_exeext conftest.$ac_ext fi -echo "$as_me:5556: result: `eval echo '${'$ac_ac_var'}'`" >&5 +echo "$as_me:6074: result: `eval echo '${'$ac_ac_var'}'`" >&5 echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6 if test `eval echo '${'$ac_ac_var'}'` = yes; then cat >>confdefs.h <&5 + echo "$as_me:6094: checking for LC_MESSAGES" >&5 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6 if test "${am_cv_val_LC_MESSAGES+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else cat >conftest.$ac_ext <<_ACEOF -#line 5582 "configure" +#line 6100 "configure" #include "confdefs.h" #include int @@ -5591,15 +6109,16 @@ return LC_MESSAGES } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext -if { (eval echo "$as_me:5594: \"$ac_link\"") >&5 +if { (eval echo "$as_me:6112: \"$ac_link\"") >&5 (eval $ac_link) 2>&5 ac_status=$? - echo "$as_me:5597: \$? = $ac_status" >&5 + echo "$as_me:6115: \$? = $ac_status" >&5 (exit $ac_status); } && - { ac_try='test -s conftest$ac_exeext'; { (eval echo "$as_me:5599: \"$ac_try\"") >&5 + { ac_try='test -s conftest$ac_exeext' + { (eval echo "$as_me:6118: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? - echo "$as_me:5602: \$? = $ac_status" >&5 + echo "$as_me:6121: \$? = $ac_status" >&5 (exit $ac_status); }; }; then am_cv_val_LC_MESSAGES=yes else @@ -5609,7 +6128,7 @@ am_cv_val_LC_MESSAGES=no fi rm -f conftest$ac_exeext conftest.$ac_ext fi -echo "$as_me:5612: result: $am_cv_val_LC_MESSAGES" >&5 +echo "$as_me:6131: result: $am_cv_val_LC_MESSAGES" >&5 echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6 if test $am_cv_val_LC_MESSAGES = yes; then @@ -5619,7 +6138,7 @@ EOF fi fi - echo "$as_me:5622: checking whether NLS is requested" >&5 + echo "$as_me:6141: checking whether NLS is requested" >&5 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6 # Check whether --enable-nls or --disable-nls was given. if test "${enable_nls+set}" = set; then @@ -5628,7 +6147,7 @@ if test "${enable_nls+set}" = set; then else USE_NLS=yes fi; - echo "$as_me:5631: result: $USE_NLS" >&5 + echo "$as_me:6150: result: $USE_NLS" >&5 echo "${ECHO_T}$USE_NLS" >&6 USE_INCLUDED_LIBINTL=no @@ -5639,7 +6158,7 @@ cat >>confdefs.h <<\EOF #define ENABLE_NLS 1 EOF - echo "$as_me:5642: checking whether included gettext is requested" >&5 + echo "$as_me:6161: checking whether included gettext is requested" >&5 echo $ECHO_N "checking whether included gettext is requested... $ECHO_C" >&6 # Check whether --with-included-gettext or --without-included-gettext was given. @@ -5649,7 +6168,7 @@ if test "${with_included_gettext+set}" = set; then else nls_cv_force_use_gnu_gettext=no fi; - echo "$as_me:5652: result: $nls_cv_force_use_gnu_gettext" >&5 + echo "$as_me:6171: result: $nls_cv_force_use_gnu_gettext" >&5 echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext" @@ -5658,23 +6177,23 @@ echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6 nls_cv_header_libgt= CATOBJEXT=NONE - echo "$as_me:5661: checking for libintl.h" >&5 + echo "$as_me:6180: checking for libintl.h" >&5 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6 if test "${ac_cv_header_libintl_h+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else cat >conftest.$ac_ext <<_ACEOF -#line 5667 "configure" +#line 6186 "configure" #include "confdefs.h" #include _ACEOF -if { (eval echo "$as_me:5671: \"$ac_cpp conftest.$ac_ext >/dev/null\"") >&5 +if { (eval echo "$as_me:6190: \"$ac_cpp conftest.$ac_ext >/dev/null\"") >&5 (eval $ac_cpp conftest.$ac_ext >/dev/null) 2>conftest.er1 ac_status=$? egrep -v '^ *\+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 - echo "$as_me:5677: \$? = $ac_status" >&5 + echo "$as_me:6196: \$? = $ac_status" >&5 (exit $ac_status); }; then if test -s conftest.err; then ac_cpp_err=$ac_c_preproc_warn_flag @@ -5693,16 +6212,16 @@ else fi rm -f conftest.err conftest.$ac_ext fi -echo "$as_me:5696: result: $ac_cv_header_libintl_h" >&5 +echo "$as_me:6215: result: $ac_cv_header_libintl_h" >&5 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6 if test $ac_cv_header_libintl_h = yes; then - echo "$as_me:5699: checking for gettext in libc" >&5 + echo "$as_me:6218: checking for gettext in libc" >&5 echo $ECHO_N "checking for gettext in libc... $ECHO_C" >&6 if test "${gt_cv_func_gettext_libc+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else cat >conftest.$ac_ext <<_ACEOF -#line 5705 "configure" +#line 6224 "configure" #include "confdefs.h" #include int @@ -5714,15 +6233,16 @@ return (int) gettext ("") } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext -if { (eval echo "$as_me:5717: \"$ac_link\"") >&5 +if { (eval echo "$as_me:6236: \"$ac_link\"") >&5 (eval $ac_link) 2>&5 ac_status=$? - echo "$as_me:5720: \$? = $ac_status" >&5 + echo "$as_me:6239: \$? = $ac_status" >&5 (exit $ac_status); } && - { ac_try='test -s conftest$ac_exeext'; { (eval echo "$as_me:5722: \"$ac_try\"") >&5 + { ac_try='test -s conftest$ac_exeext' + { (eval echo "$as_me:6242: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? - echo "$as_me:5725: \$? = $ac_status" >&5 + echo "$as_me:6245: \$? = $ac_status" >&5 (exit $ac_status); }; }; then gt_cv_func_gettext_libc=yes else @@ -5732,11 +6252,11 @@ gt_cv_func_gettext_libc=no fi rm -f conftest$ac_exeext conftest.$ac_ext fi -echo "$as_me:5735: result: $gt_cv_func_gettext_libc" >&5 +echo "$as_me:6255: result: $gt_cv_func_gettext_libc" >&5 echo "${ECHO_T}$gt_cv_func_gettext_libc" >&6 if test "$gt_cv_func_gettext_libc" != "yes"; then - echo "$as_me:5739: checking for bindtextdomain in -lintl" >&5 + echo "$as_me:6259: checking for bindtextdomain in -lintl" >&5 echo $ECHO_N "checking for bindtextdomain in -lintl... $ECHO_C" >&6 if test "${ac_cv_lib_intl_bindtextdomain+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 @@ -5744,7 +6264,7 @@ else ac_check_lib_save_LIBS=$LIBS LIBS="-lintl $LIBS" cat >conftest.$ac_ext <<_ACEOF -#line 5747 "configure" +#line 6267 "configure" #include "confdefs.h" /* Override any gcc2 internal prototype to avoid an error. */ @@ -5763,15 +6283,16 @@ bindtextdomain (); } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext -if { (eval echo "$as_me:5766: \"$ac_link\"") >&5 +if { (eval echo "$as_me:6286: \"$ac_link\"") >&5 (eval $ac_link) 2>&5 ac_status=$? - echo "$as_me:5769: \$? = $ac_status" >&5 + echo "$as_me:6289: \$? = $ac_status" >&5 (exit $ac_status); } && - { ac_try='test -s conftest$ac_exeext'; { (eval echo "$as_me:5771: \"$ac_try\"") >&5 + { ac_try='test -s conftest$ac_exeext' + { (eval echo "$as_me:6292: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? - echo "$as_me:5774: \$? = $ac_status" >&5 + echo "$as_me:6295: \$? = $ac_status" >&5 (exit $ac_status); }; }; then ac_cv_lib_intl_bindtextdomain=yes else @@ -5782,11 +6303,11 @@ fi rm -f conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi -echo "$as_me:5785: result: $ac_cv_lib_intl_bindtextdomain" >&5 +echo "$as_me:6306: result: $ac_cv_lib_intl_bindtextdomain" >&5 echo "${ECHO_T}$ac_cv_lib_intl_bindtextdomain" >&6 if test $ac_cv_lib_intl_bindtextdomain = yes; then -echo "$as_me:5789: checking for gettext in -lintl" >&5 +echo "$as_me:6310: checking for gettext in -lintl" >&5 echo $ECHO_N "checking for gettext in -lintl... $ECHO_C" >&6 if test "${ac_cv_lib_intl_gettext+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 @@ -5794,7 +6315,7 @@ else ac_check_lib_save_LIBS=$LIBS LIBS="-lintl $LIBS" cat >conftest.$ac_ext <<_ACEOF -#line 5797 "configure" +#line 6318 "configure" #include "confdefs.h" /* Override any gcc2 internal prototype to avoid an error. */ @@ -5813,15 +6334,16 @@ gettext (); } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext -if { (eval echo "$as_me:5816: \"$ac_link\"") >&5 +if { (eval echo "$as_me:6337: \"$ac_link\"") >&5 (eval $ac_link) 2>&5 ac_status=$? - echo "$as_me:5819: \$? = $ac_status" >&5 + echo "$as_me:6340: \$? = $ac_status" >&5 (exit $ac_status); } && - { ac_try='test -s conftest$ac_exeext'; { (eval echo "$as_me:5821: \"$ac_try\"") >&5 + { ac_try='test -s conftest$ac_exeext' + { (eval echo "$as_me:6343: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? - echo "$as_me:5824: \$? = $ac_status" >&5 + echo "$as_me:6346: \$? = $ac_status" >&5 (exit $ac_status); }; }; then ac_cv_lib_intl_gettext=yes else @@ -5832,7 +6354,7 @@ fi rm -f conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi -echo "$as_me:5835: result: $ac_cv_lib_intl_gettext" >&5 +echo "$as_me:6357: result: $ac_cv_lib_intl_gettext" >&5 echo "${ECHO_T}$ac_cv_lib_intl_gettext" >&6 if test $ac_cv_lib_intl_gettext = yes; then cat >>confdefs.h <&5 +echo "$as_me:6381: checking for $ac_word" >&5 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 if test "${ac_cv_path_MSGFMT+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 @@ -5883,10 +6405,10 @@ esac fi MSGFMT="$ac_cv_path_MSGFMT" if test -n "$MSGFMT"; then - echo "$as_me:5886: result: $MSGFMT" >&5 + echo "$as_me:6408: result: $MSGFMT" >&5 echo "${ECHO_T}$MSGFMT" >&6 else - echo "$as_me:5889: result: no" >&5 + echo "$as_me:6411: result: no" >&5 echo "${ECHO_T}no" >&6 fi if test "$MSGFMT" != "no"; then @@ -5894,13 +6416,13 @@ fi for ac_func in dcgettext do ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh` -echo "$as_me:5897: checking for $ac_func" >&5 +echo "$as_me:6419: checking for $ac_func" >&5 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 if eval "test \"\${$ac_ac_var+set}\" = set"; then echo $ECHO_N "(cached) $ECHO_C" >&6 else cat >conftest.$ac_ext <<_ACEOF -#line 5903 "configure" +#line 6425 "configure" #include "confdefs.h" /* System header to define __stub macros and hopefully few prototypes, which can conflict with char $ac_func (); below. */ @@ -5931,15 +6453,16 @@ f = $ac_func; } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext -if { (eval echo "$as_me:5934: \"$ac_link\"") >&5 +if { (eval echo "$as_me:6456: \"$ac_link\"") >&5 (eval $ac_link) 2>&5 ac_status=$? - echo "$as_me:5937: \$? = $ac_status" >&5 + echo "$as_me:6459: \$? = $ac_status" >&5 (exit $ac_status); } && - { ac_try='test -s conftest$ac_exeext'; { (eval echo "$as_me:5939: \"$ac_try\"") >&5 + { ac_try='test -s conftest$ac_exeext' + { (eval echo "$as_me:6462: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? - echo "$as_me:5942: \$? = $ac_status" >&5 + echo "$as_me:6465: \$? = $ac_status" >&5 (exit $ac_status); }; }; then eval "$ac_ac_var=yes" else @@ -5949,7 +6472,7 @@ eval "$ac_ac_var=no" fi rm -f conftest$ac_exeext conftest.$ac_ext fi -echo "$as_me:5952: result: `eval echo '${'$ac_ac_var'}'`" >&5 +echo "$as_me:6475: result: `eval echo '${'$ac_ac_var'}'`" >&5 echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6 if test `eval echo '${'$ac_ac_var'}'` = yes; then cat >>confdefs.h <&5 +echo "$as_me:6487: checking for $ac_word" >&5 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 if test "${ac_cv_path_GMSGFMT+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 @@ -5971,7 +6494,7 @@ else ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path. ;; *) - ac_save_IFS=$IFS; IFS=':' + ac_save_IFS=$IFS; IFS=$ac_path_separator ac_dummy="$PATH" for ac_dir in $ac_dummy; do IFS=$ac_save_IFS @@ -5989,16 +6512,16 @@ fi GMSGFMT=$ac_cv_path_GMSGFMT if test -n "$GMSGFMT"; then - echo "$as_me:5992: result: $GMSGFMT" >&5 + echo "$as_me:6515: result: $GMSGFMT" >&5 echo "${ECHO_T}$GMSGFMT" >&6 else - echo "$as_me:5995: result: no" >&5 + echo "$as_me:6518: result: no" >&5 echo "${ECHO_T}no" >&6 fi # Extract the first word of "xgettext", so it can be a program name with args. set dummy xgettext; ac_word=$2 -echo "$as_me:6001: checking for $ac_word" >&5 +echo "$as_me:6524: checking for $ac_word" >&5 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 if test "${ac_cv_path_XGETTEXT+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 @@ -6025,15 +6548,15 @@ esac fi XGETTEXT="$ac_cv_path_XGETTEXT" if test -n "$XGETTEXT"; then - echo "$as_me:6028: result: $XGETTEXT" >&5 + echo "$as_me:6551: result: $XGETTEXT" >&5 echo "${ECHO_T}$XGETTEXT" >&6 else - echo "$as_me:6031: result: no" >&5 + echo "$as_me:6554: result: no" >&5 echo "${ECHO_T}no" >&6 fi cat >conftest.$ac_ext <<_ACEOF -#line 6036 "configure" +#line 6559 "configure" #include "confdefs.h" int @@ -6046,15 +6569,16 @@ extern int _nl_msg_cat_cntr; } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext -if { (eval echo "$as_me:6049: \"$ac_link\"") >&5 +if { (eval echo "$as_me:6572: \"$ac_link\"") >&5 (eval $ac_link) 2>&5 ac_status=$? - echo "$as_me:6052: \$? = $ac_status" >&5 + echo "$as_me:6575: \$? = $ac_status" >&5 (exit $ac_status); } && - { ac_try='test -s conftest$ac_exeext'; { (eval echo "$as_me:6054: \"$ac_try\"") >&5 + { ac_try='test -s conftest$ac_exeext' + { (eval echo "$as_me:6578: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? - echo "$as_me:6057: \$? = $ac_status" >&5 + echo "$as_me:6581: \$? = $ac_status" >&5 (exit $ac_status); }; }; then CATOBJEXT=.gmo DATADIRNAME=share @@ -6072,7 +6596,7 @@ rm -f conftest$ac_exeext conftest.$ac_ext fi if test "$CATOBJEXT" = "NONE"; then - echo "$as_me:6075: checking whether catgets can be used" >&5 + echo "$as_me:6599: checking whether catgets can be used" >&5 echo $ECHO_N "checking whether catgets can be used... $ECHO_C" >&6 # Check whether --with-catgets or --without-catgets was given. @@ -6082,12 +6606,12 @@ if test "${with_catgets+set}" = set; then else nls_cv_use_catgets=no fi; - echo "$as_me:6085: result: $nls_cv_use_catgets" >&5 + echo "$as_me:6609: result: $nls_cv_use_catgets" >&5 echo "${ECHO_T}$nls_cv_use_catgets" >&6 if test "$nls_cv_use_catgets" = "yes"; then -echo "$as_me:6090: checking for main in -li" >&5 +echo "$as_me:6614: checking for main in -li" >&5 echo $ECHO_N "checking for main in -li... $ECHO_C" >&6 if test "${ac_cv_lib_i_main+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 @@ -6095,7 +6619,7 @@ else ac_check_lib_save_LIBS=$LIBS LIBS="-li $LIBS" cat >conftest.$ac_ext <<_ACEOF -#line 6098 "configure" +#line 6622 "configure" #include "confdefs.h" int @@ -6107,15 +6631,16 @@ main (); } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext -if { (eval echo "$as_me:6110: \"$ac_link\"") >&5 +if { (eval echo "$as_me:6634: \"$ac_link\"") >&5 (eval $ac_link) 2>&5 ac_status=$? - echo "$as_me:6113: \$? = $ac_status" >&5 + echo "$as_me:6637: \$? = $ac_status" >&5 (exit $ac_status); } && - { ac_try='test -s conftest$ac_exeext'; { (eval echo "$as_me:6115: \"$ac_try\"") >&5 + { ac_try='test -s conftest$ac_exeext' + { (eval echo "$as_me:6640: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? - echo "$as_me:6118: \$? = $ac_status" >&5 + echo "$as_me:6643: \$? = $ac_status" >&5 (exit $ac_status); }; }; then ac_cv_lib_i_main=yes else @@ -6126,7 +6651,7 @@ fi rm -f conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi -echo "$as_me:6129: result: $ac_cv_lib_i_main" >&5 +echo "$as_me:6654: result: $ac_cv_lib_i_main" >&5 echo "${ECHO_T}$ac_cv_lib_i_main" >&6 if test $ac_cv_lib_i_main = yes; then cat >>confdefs.h <&5 + echo "$as_me:6665: checking for catgets" >&5 echo $ECHO_N "checking for catgets... $ECHO_C" >&6 if test "${ac_cv_func_catgets+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else cat >conftest.$ac_ext <<_ACEOF -#line 6146 "configure" +#line 6671 "configure" #include "confdefs.h" /* System header to define __stub macros and hopefully few prototypes, which can conflict with char catgets (); below. */ @@ -6174,15 +6699,16 @@ f = catgets; } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext -if { (eval echo "$as_me:6177: \"$ac_link\"") >&5 +if { (eval echo "$as_me:6702: \"$ac_link\"") >&5 (eval $ac_link) 2>&5 ac_status=$? - echo "$as_me:6180: \$? = $ac_status" >&5 + echo "$as_me:6705: \$? = $ac_status" >&5 (exit $ac_status); } && - { ac_try='test -s conftest$ac_exeext'; { (eval echo "$as_me:6182: \"$ac_try\"") >&5 + { ac_try='test -s conftest$ac_exeext' + { (eval echo "$as_me:6708: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? - echo "$as_me:6185: \$? = $ac_status" >&5 + echo "$as_me:6711: \$? = $ac_status" >&5 (exit $ac_status); }; }; then ac_cv_func_catgets=yes else @@ -6192,7 +6718,7 @@ ac_cv_func_catgets=no fi rm -f conftest$ac_exeext conftest.$ac_ext fi -echo "$as_me:6195: result: $ac_cv_func_catgets" >&5 +echo "$as_me:6721: result: $ac_cv_func_catgets" >&5 echo "${ECHO_T}$ac_cv_func_catgets" >&6 if test $ac_cv_func_catgets = yes; then @@ -6203,7 +6729,7 @@ EOF INTLOBJS="\$(CATOBJS)" # Extract the first word of "gencat", so it can be a program name with args. set dummy gencat; ac_word=$2 -echo "$as_me:6206: checking for $ac_word" >&5 +echo "$as_me:6732: checking for $ac_word" >&5 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 if test "${ac_cv_path_GENCAT+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 @@ -6213,7 +6739,7 @@ else ac_cv_path_GENCAT="$GENCAT" # Let the user override the test with a path. ;; *) - ac_save_IFS=$IFS; IFS=':' + ac_save_IFS=$IFS; IFS=$ac_path_separator ac_dummy="$PATH" for ac_dir in $ac_dummy; do IFS=$ac_save_IFS @@ -6231,16 +6757,16 @@ fi GENCAT=$ac_cv_path_GENCAT if test -n "$GENCAT"; then - echo "$as_me:6234: result: $GENCAT" >&5 + echo "$as_me:6760: result: $GENCAT" >&5 echo "${ECHO_T}$GENCAT" >&6 else - echo "$as_me:6237: result: no" >&5 + echo "$as_me:6763: result: no" >&5 echo "${ECHO_T}no" >&6 fi if test "$GENCAT" != "no"; then # Extract the first word of "gmsgfmt", so it can be a program name with args. set dummy gmsgfmt; ac_word=$2 -echo "$as_me:6243: checking for $ac_word" >&5 +echo "$as_me:6769: checking for $ac_word" >&5 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 if test "${ac_cv_path_GMSGFMT+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 @@ -6250,7 +6776,7 @@ else ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path. ;; *) - ac_save_IFS=$IFS; IFS=':' + ac_save_IFS=$IFS; IFS=$ac_path_separator ac_dummy="$PATH" for ac_dir in $ac_dummy; do IFS=$ac_save_IFS @@ -6268,17 +6794,17 @@ fi GMSGFMT=$ac_cv_path_GMSGFMT if test -n "$GMSGFMT"; then - echo "$as_me:6271: result: $GMSGFMT" >&5 + echo "$as_me:6797: result: $GMSGFMT" >&5 echo "${ECHO_T}$GMSGFMT" >&6 else - echo "$as_me:6274: result: no" >&5 + echo "$as_me:6800: result: no" >&5 echo "${ECHO_T}no" >&6 fi if test "$GMSGFMT" = "no"; then # Extract the first word of "msgfmt", so it can be a program name with args. set dummy msgfmt; ac_word=$2 -echo "$as_me:6281: checking for $ac_word" >&5 +echo "$as_me:6807: checking for $ac_word" >&5 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 if test "${ac_cv_path_GMSGFMT+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 @@ -6305,17 +6831,17 @@ esac fi GMSGFMT="$ac_cv_path_GMSGFMT" if test -n "$GMSGFMT"; then - echo "$as_me:6308: result: $GMSGFMT" >&5 + echo "$as_me:6834: result: $GMSGFMT" >&5 echo "${ECHO_T}$GMSGFMT" >&6 else - echo "$as_me:6311: result: no" >&5 + echo "$as_me:6837: result: no" >&5 echo "${ECHO_T}no" >&6 fi fi # Extract the first word of "xgettext", so it can be a program name with args. set dummy xgettext; ac_word=$2 -echo "$as_me:6318: checking for $ac_word" >&5 +echo "$as_me:6844: checking for $ac_word" >&5 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 if test "${ac_cv_path_XGETTEXT+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 @@ -6342,10 +6868,10 @@ esac fi XGETTEXT="$ac_cv_path_XGETTEXT" if test -n "$XGETTEXT"; then - echo "$as_me:6345: result: $XGETTEXT" >&5 + echo "$as_me:6871: result: $XGETTEXT" >&5 echo "${ECHO_T}$XGETTEXT" >&6 else - echo "$as_me:6348: result: no" >&5 + echo "$as_me:6874: result: no" >&5 echo "${ECHO_T}no" >&6 fi @@ -6373,7 +6899,7 @@ fi INTLOBJS="\$(GETTOBJS)" # Extract the first word of "msgfmt", so it can be a program name with args. set dummy msgfmt; ac_word=$2 -echo "$as_me:6376: checking for $ac_word" >&5 +echo "$as_me:6902: checking for $ac_word" >&5 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 if test "${ac_cv_path_MSGFMT+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 @@ -6400,16 +6926,16 @@ esac fi MSGFMT="$ac_cv_path_MSGFMT" if test -n "$MSGFMT"; then - echo "$as_me:6403: result: $MSGFMT" >&5 + echo "$as_me:6929: result: $MSGFMT" >&5 echo "${ECHO_T}$MSGFMT" >&6 else - echo "$as_me:6406: result: no" >&5 + echo "$as_me:6932: result: no" >&5 echo "${ECHO_T}no" >&6 fi # Extract the first word of "gmsgfmt", so it can be a program name with args. set dummy gmsgfmt; ac_word=$2 -echo "$as_me:6412: checking for $ac_word" >&5 +echo "$as_me:6938: checking for $ac_word" >&5 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 if test "${ac_cv_path_GMSGFMT+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 @@ -6419,7 +6945,7 @@ else ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path. ;; *) - ac_save_IFS=$IFS; IFS=':' + ac_save_IFS=$IFS; IFS=$ac_path_separator ac_dummy="$PATH" for ac_dir in $ac_dummy; do IFS=$ac_save_IFS @@ -6437,16 +6963,16 @@ fi GMSGFMT=$ac_cv_path_GMSGFMT if test -n "$GMSGFMT"; then - echo "$as_me:6440: result: $GMSGFMT" >&5 + echo "$as_me:6966: result: $GMSGFMT" >&5 echo "${ECHO_T}$GMSGFMT" >&6 else - echo "$as_me:6443: result: no" >&5 + echo "$as_me:6969: result: no" >&5 echo "${ECHO_T}no" >&6 fi # Extract the first word of "xgettext", so it can be a program name with args. set dummy xgettext; ac_word=$2 -echo "$as_me:6449: checking for $ac_word" >&5 +echo "$as_me:6975: checking for $ac_word" >&5 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 if test "${ac_cv_path_XGETTEXT+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 @@ -6473,10 +6999,10 @@ esac fi XGETTEXT="$ac_cv_path_XGETTEXT" if test -n "$XGETTEXT"; then - echo "$as_me:6476: result: $XGETTEXT" >&5 + echo "$as_me:7002: result: $XGETTEXT" >&5 echo "${ECHO_T}$XGETTEXT" >&6 else - echo "$as_me:6479: result: no" >&5 + echo "$as_me:7005: result: no" >&5 echo "${ECHO_T}no" >&6 fi @@ -6495,7 +7021,7 @@ fi if $XGETTEXT --omit-header /dev/null 2> /dev/null; then : ; else - echo "$as_me:6498: result: found xgettext program is not GNU xgettext; ignore it" >&5 + echo "$as_me:7024: result: found xgettext program is not GNU xgettext; ignore it" >&5 echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6 XGETTEXT=":" fi @@ -6539,7 +7065,7 @@ ac_config_links="$ac_config_links $ac_config_links_1" if test "x$ALL_LINGUAS" = "x"; then LINGUAS= else - echo "$as_me:6542: checking for catalogs to be installed" >&5 + echo "$as_me:7068: checking for catalogs to be installed" >&5 echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6 NEW_LINGUAS= for lang in ${LINGUAS=$ALL_LINGUAS}; do @@ -6548,7 +7074,7 @@ echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6 esac done LINGUAS=$NEW_LINGUAS - echo "$as_me:6551: result: $LINGUAS" >&5 + echo "$as_me:7077: result: $LINGUAS" >&5 echo "${ECHO_T}$LINGUAS" >&6 fi @@ -6566,23 +7092,23 @@ echo "${ECHO_T}$LINGUAS" >&6 test -d intl || mkdir intl if test "$CATOBJEXT" = ".cat"; then - echo "$as_me:6569: checking for linux/version.h" >&5 + echo "$as_me:7095: checking for linux/version.h" >&5 echo $ECHO_N "checking for linux/version.h... $ECHO_C" >&6 if test "${ac_cv_header_linux_version_h+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else cat >conftest.$ac_ext <<_ACEOF -#line 6575 "configure" +#line 7101 "configure" #include "confdefs.h" #include _ACEOF -if { (eval echo "$as_me:6579: \"$ac_cpp conftest.$ac_ext >/dev/null\"") >&5 +if { (eval echo "$as_me:7105: \"$ac_cpp conftest.$ac_ext >/dev/null\"") >&5 (eval $ac_cpp conftest.$ac_ext >/dev/null) 2>conftest.er1 ac_status=$? egrep -v '^ *\+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 - echo "$as_me:6585: \$? = $ac_status" >&5 + echo "$as_me:7111: \$? = $ac_status" >&5 (exit $ac_status); }; then if test -s conftest.err; then ac_cpp_err=$ac_c_preproc_warn_flag @@ -6601,7 +7127,7 @@ else fi rm -f conftest.err conftest.$ac_ext fi -echo "$as_me:6604: result: $ac_cv_header_linux_version_h" >&5 +echo "$as_me:7130: result: $ac_cv_header_linux_version_h" >&5 echo "${ECHO_T}$ac_cv_header_linux_version_h" >&6 if test $ac_cv_header_linux_version_h = yes; then msgformat=linux @@ -6645,211 +7171,6 @@ fi sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \ < $srcdir/po/POTFILES.in > po/POTFILES -for ac_func in strerror strerror_r vprintf doprnt -do -ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh` -echo "$as_me:6651: checking for $ac_func" >&5 -echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 -if eval "test \"\${$ac_ac_var+set}\" = set"; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - cat >conftest.$ac_ext <<_ACEOF -#line 6657 "configure" -#include "confdefs.h" -/* System header to define __stub macros and hopefully few prototypes, - which can conflict with char $ac_func (); below. */ -#include -/* Override any gcc2 internal prototype to avoid an error. */ -#ifdef __cplusplus -extern "C" -#endif -/* We use char because int might match the return type of a gcc2 - builtin and then its argument prototype would still apply. */ -char $ac_func (); -char (*f) (); - -int -main () -{ -/* The GNU C library defines this for functions which it implements - to always fail with ENOSYS. Some functions are actually named - something starting with __ and the normal name is an alias. */ -#if defined (__stub_$ac_func) || defined (__stub___$ac_func) -choke me -#else -f = $ac_func; -#endif - - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext conftest$ac_exeext -if { (eval echo "$as_me:6688: \"$ac_link\"") >&5 - (eval $ac_link) 2>&5 - ac_status=$? - echo "$as_me:6691: \$? = $ac_status" >&5 - (exit $ac_status); } && - { ac_try='test -s conftest$ac_exeext'; { (eval echo "$as_me:6693: \"$ac_try\"") >&5 - (eval $ac_try) 2>&5 - ac_status=$? - echo "$as_me:6696: \$? = $ac_status" >&5 - (exit $ac_status); }; }; then - eval "$ac_ac_var=yes" -else - echo "$as_me: failed program was:" >&5 -cat conftest.$ac_ext >&5 -eval "$ac_ac_var=no" -fi -rm -f conftest$ac_exeext conftest.$ac_ext -fi -echo "$as_me:6706: result: `eval echo '${'$ac_ac_var'}'`" >&5 -echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6 -if test `eval echo '${'$ac_ac_var'}'` = yes; then - cat >>confdefs.h <&5 -echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 -if test "${ac_cv_header_stdc+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - cat >conftest.$ac_ext <<_ACEOF -#line 6722 "configure" -#include "confdefs.h" -#include -#include -#include -#include - -_ACEOF -if { (eval echo "$as_me:6730: \"$ac_cpp conftest.$ac_ext >/dev/null\"") >&5 - (eval $ac_cpp conftest.$ac_ext >/dev/null) 2>conftest.er1 - ac_status=$? - egrep -v '^ *\+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:6736: \$? = $ac_status" >&5 - (exit $ac_status); }; then - if test -s conftest.err; then - ac_cpp_err=$ac_c_preproc_warn_flag - else - ac_cpp_err= - fi -else - ac_cpp_err=yes -fi -if test -z "$ac_cpp_err"; then - ac_cv_header_stdc=yes -else - echo "$as_me: failed program was:" >&5 - cat conftest.$ac_ext >&5 - ac_cv_header_stdc=no -fi -rm -f conftest.err conftest.$ac_ext - -if test $ac_cv_header_stdc = yes; then - # SunOS 4.x string.h does not declare mem*, contrary to ANSI. - cat >conftest.$ac_ext <<_ACEOF -#line 6758 "configure" -#include "confdefs.h" -#include - -_ACEOF -if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | - egrep "memchr" >/dev/null 2>&1; then - : -else - ac_cv_header_stdc=no -fi -rm -f conftest* - -fi - -if test $ac_cv_header_stdc = yes; then - # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. - cat >conftest.$ac_ext <<_ACEOF -#line 6776 "configure" -#include "confdefs.h" -#include - -_ACEOF -if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | - egrep "free" >/dev/null 2>&1; then - : -else - ac_cv_header_stdc=no -fi -rm -f conftest* - -fi - -if test $ac_cv_header_stdc = yes; then - # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. - if test "$cross_compiling" = yes; then - : -else - cat >conftest.$ac_ext <<_ACEOF -#line 6797 "configure" -#include "confdefs.h" -#include -#if ((' ' & 0x0FF) == 0x020) -# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') -# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) -#else -# define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \ - || ('j' <= (c) && (c) <= 'r') \ - || ('s' <= (c) && (c) <= 'z')) -# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) -#endif - -#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) -int -main () -{ - int i; - for (i = 0; i < 256; i++) - if (XOR (islower (i), ISLOWER (i)) - || toupper (i) != TOUPPER (i)) - exit(2); - exit (0); -} -_ACEOF -rm -f conftest$ac_exeext -if { (eval echo "$as_me:6823: \"$ac_link\"") >&5 - (eval $ac_link) 2>&5 - ac_status=$? - echo "$as_me:6826: \$? = $ac_status" >&5 - (exit $ac_status); } && { ac_try='./conftest$ac_exeext'; { (eval echo "$as_me:6827: \"$ac_try\"") >&5 - (eval $ac_try) 2>&5 - ac_status=$? - echo "$as_me:6830: \$? = $ac_status" >&5 - (exit $ac_status); }; }; then - : -else - echo "$as_me: program exited with status $ac_status" >&5 -echo "$as_me: failed program was:" >&5 -cat conftest.$ac_ext >&5 -ac_cv_header_stdc=no -fi -rm -f conftest$ac_exeext conftest.$ac_ext -fi -fi -fi -echo "$as_me:6843: result: $ac_cv_header_stdc" >&5 -echo "${ECHO_T}$ac_cv_header_stdc" >&6 -if test $ac_cv_header_stdc = yes; then - -cat >>confdefs.h <<\EOF -#define STDC_HEADERS 1 -EOF - -fi - # This is necessary so that .o files in LIBOBJS are also built via # the ANSI2KNR-filtering rules. LIBOBJS=`echo $LIBOBJS|sed 's/\.o /\$U.o /g;s/\.o$/\$U.o/'` @@ -6914,10 +7235,19 @@ test "x$prefix" = xNONE && prefix=$ac_default_prefix # Let make expand exec_prefix. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' -# VPATH is dangerous, but if there is a colon in the path, we need to -# keep it. +# VPATH may cause trouble with some makes, so we remove $(srcdir), +# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and +# trailing colons and then remove the whole line if VPATH becomes empty +# (actually we leave an empty line to preserve line numbers). if test "x$srcdir" = x.; then - ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d' + ac_vpsub='/^[ ]*VPATH[ ]*=/{ +s/:*\$(srcdir):*/:/; +s/:*\${srcdir}:*/:/; +s/:*@srcdir@:*/:/; +s/^\([^=]*=[ ]*\):*/\1/; +s/:*$//; +s/^[^=]*=[ ]*$//; +}' fi DEFS=-DHAVE_CONFIG_H @@ -6925,7 +7255,7 @@ DEFS=-DHAVE_CONFIG_H : ${CONFIG_STATUS=./config.status} ac_clean_files_save=$ac_clean_files ac_clean_files="$ac_clean_files $CONFIG_STATUS" -{ echo "$as_me:6928: creating $CONFIG_STATUS" >&5 +{ echo "$as_me:7258: creating $CONFIG_STATUS" >&5 echo "$as_me: creating $CONFIG_STATUS" >&6;} cat >$CONFIG_STATUS <<\_ACEOF #! /bin/sh @@ -6952,41 +7282,25 @@ else as_expr=false fi -rm -f conftest conftest.exe conftest.file -echo >conftest.file -if ln -s conftest.file conftest 2>/dev/null; then +rm -f conf$$ conf$$.exe conf$$.file +echo >conf$$.file +if ln -s conf$$.file conf$$ 2>/dev/null; then # We could just check for DJGPP; but this test a) works b) is more generic # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). - if test -f conftest.exe; then + if test -f conf$$.exe; then # Don't use ln at all; we don't have any links as_ln_s='cp -p' else as_ln_s='ln -s' fi -elif ln conftest.file conftest 2>/dev/null; then +elif ln conf$$.file conf$$ 2>/dev/null; then as_ln_s=ln else as_ln_s='cp -p' fi -rm -f conftest conftest.exe conftest.file +rm -f conf$$ conf$$.exe conf$$.file -# Find out how to test for executable files. Don't use a zero-byte file, -# as systems may use methods other than mode bits to determine executability. -cat >conftest.file <<_ASEOF -#! /bin/sh -exit 0 -_ASEOF -chmod +x conftest.file -if test -x conftest.file >/dev/null 2>&1; then - as_executable_p="test -x" -elif test -f conftest.file >/dev/null 2>&1; then - as_executable_p="test -f" -else - { { echo "$as_me:6985: error: cannot check whether a file is executable on this system" >&5 -echo "$as_me: error: cannot check whether a file is executable on this system" >&2;} - { (exit 1); exit 1; }; } -fi -rm -f conftest.file +as_executable_p="test -f" # Support unset when possible. if (FOO=FOO; unset FOO) >/dev/null 2>&1; then @@ -7128,7 +7442,7 @@ cat >>$CONFIG_STATUS <<\EOF echo "$ac_cs_version"; exit 0 ;; --he | --h) # Conflict between --help and --header - { { echo "$as_me:7131: error: ambiguous option: $1 + { { echo "$as_me:7445: error: ambiguous option: $1 Try \`$0 --help' for more information." >&5 echo "$as_me: error: ambiguous option: $1 Try \`$0 --help' for more information." >&2;} @@ -7162,12 +7476,12 @@ Try \`$0 --help' for more information." >&2;} 'config.h' ) CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.hin" ;; # This is an error. - -*) { { echo "$as_me:7165: error: unrecognized option: $1 + -*) { { echo "$as_me:7479: error: unrecognized option: $1 Try \`$0 --help' for more information." >&5 echo "$as_me: error: unrecognized option: $1 Try \`$0 --help' for more information." >&2;} { (exit 1); exit 1; }; } ;; - *) { { echo "$as_me:7170: error: invalid argument: $1" >&5 + *) { { echo "$as_me:7484: error: invalid argument: $1" >&5 echo "$as_me: error: invalid argument: $1" >&2;} { (exit 1); exit 1; }; };; esac @@ -7255,6 +7569,7 @@ s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t s,@ECHO_C@,$ECHO_C,;t t s,@ECHO_N@,$ECHO_N,;t t s,@ECHO_T@,$ECHO_T,;t t +s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t s,@DEFS@,$DEFS,;t t s,@LIBS@,$LIBS,;t t s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t @@ -7273,8 +7588,8 @@ s,@CC@,$CC,;t t s,@CFLAGS@,$CFLAGS,;t t s,@LDFLAGS@,$LDFLAGS,;t t s,@ac_ct_CC@,$ac_ct_CC,;t t -s,@OBJEXT@,$OBJEXT,;t t s,@EXEEXT@,$EXEEXT,;t t +s,@OBJEXT@,$OBJEXT,;t t s,@CPP@,$CPP,;t t s,@CPPFLAGS@,$CPPFLAGS,;t t s,@RANLIB@,$RANLIB,;t t @@ -7420,7 +7735,7 @@ done; } esac if test x"$ac_file" != x-; then - { echo "$as_me:7423: creating $ac_file" >&5 + { echo "$as_me:7738: creating $ac_file" >&5 echo "$as_me: creating $ac_file" >&6;} rm -f "$ac_file" fi @@ -7438,7 +7753,7 @@ echo "$as_me: creating $ac_file" >&6;} -) echo $tmp/stdin ;; [\\/$]* | ?:[\\/]*) # Absolute - test -f "$f" || { { echo "$as_me:7441: error: cannot find input file: $f" >&5 + test -f "$f" || { { echo "$as_me:7756: error: cannot find input file: $f" >&5 echo "$as_me: error: cannot find input file: $f" >&2;} { (exit 1); exit 1; }; } echo $f;; @@ -7451,7 +7766,7 @@ echo "$as_me: error: cannot find input file: $f" >&2;} echo $srcdir/$f else # /dev/null tree - { { echo "$as_me:7454: error: cannot find input file: $f" >&5 + { { echo "$as_me:7769: error: cannot find input file: $f" >&5 echo "$as_me: error: cannot find input file: $f" >&2;} { (exit 1); exit 1; }; } fi;; @@ -7512,7 +7827,7 @@ for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue * ) ac_file_in=$ac_file.in ;; esac - test x"$ac_file" != x- && { echo "$as_me:7515: creating $ac_file" >&5 + test x"$ac_file" != x- && { echo "$as_me:7830: creating $ac_file" >&5 echo "$as_me: creating $ac_file" >&6;} # First look for the input files in the build tree, otherwise in the @@ -7523,7 +7838,7 @@ echo "$as_me: creating $ac_file" >&6;} -) echo $tmp/stdin ;; [\\/$]* | ?:[\\/]*) # Absolute - test -f "$f" || { { echo "$as_me:7526: error: cannot find input file: $f" >&5 + test -f "$f" || { { echo "$as_me:7841: error: cannot find input file: $f" >&5 echo "$as_me: error: cannot find input file: $f" >&2;} { (exit 1); exit 1; }; } echo $f;; @@ -7536,7 +7851,7 @@ echo "$as_me: error: cannot find input file: $f" >&2;} echo $srcdir/$f else # /dev/null tree - { { echo "$as_me:7539: error: cannot find input file: $f" >&5 + { { echo "$as_me:7854: error: cannot find input file: $f" >&5 echo "$as_me: error: cannot find input file: $f" >&2;} { (exit 1); exit 1; }; } fi;; @@ -7653,7 +7968,7 @@ cat >>$CONFIG_STATUS <<\EOF rm -f $tmp/in if test x"$ac_file" != x-; then if cmp -s $ac_file $tmp/config.h 2>/dev/null; then - { echo "$as_me:7656: $ac_file is unchanged" >&5 + { echo "$as_me:7971: $ac_file is unchanged" >&5 echo "$as_me: $ac_file is unchanged" >&6;} else ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ @@ -7704,11 +8019,11 @@ for ac_file in : $CONFIG_LINKS; do test "x$ac_file" = x: && continue ac_dest=`echo "$ac_file" | sed 's,:.*,,'` ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'` - { echo "$as_me:7707: linking $srcdir/$ac_source to $ac_dest" >&5 + { echo "$as_me:8022: linking $srcdir/$ac_source to $ac_dest" >&5 echo "$as_me: linking $srcdir/$ac_source to $ac_dest" >&6;} if test ! -r $srcdir/$ac_source; then - { { echo "$as_me:7711: error: $srcdir/$ac_source: File not found" >&5 + { { echo "$as_me:8026: error: $srcdir/$ac_source: File not found" >&5 echo "$as_me: error: $srcdir/$ac_source: File not found" >&2;} { (exit 1); exit 1; }; } fi @@ -7758,7 +8073,7 @@ done; } # Make a symlink if possible; otherwise try a hard link. ln -s $ac_rel_source $ac_dest 2>/dev/null || ln $srcdir/$ac_source $ac_dest || - { { echo "$as_me:7761: error: cannot link $ac_dest to $srcdir/$ac_source" >&5 + { { echo "$as_me:8076: error: cannot link $ac_dest to $srcdir/$ac_source" >&5 echo "$as_me: error: cannot link $ac_dest to $srcdir/$ac_source" >&2;} { (exit 1); exit 1; }; } done @@ -7783,7 +8098,7 @@ EOF cat >>$CONFIG_STATUS <<\EOF -exit 0 +{ (exit 0); exit 0; } EOF chmod +x $CONFIG_STATUS ac_clean_files=$ac_clean_files_save diff --git a/configure.in b/configure.in index f2f371bd..07ca8661 100644 --- a/configure.in +++ b/configure.in @@ -69,10 +69,10 @@ AC_REPLACE_FUNCS(stpcpy strndup strnlen memchr) jm_FUNC_MALLOC jm_FUNC_REALLOC jm_PREREQ_QUOTEARG +jm_PREREQ_ERROR ALL_LINGUAS="de es et fr ja nl ru" AM_GNU_GETTEXT -jm_PREREQ_ERROR # This is necessary so that .o files in LIBOBJS are also built via # the ANSI2KNR-filtering rules. diff --git a/lib/error.c b/lib/error.c index ffa54c39..c78b6cff 100644 --- a/lib/error.c +++ b/lib/error.c @@ -1,5 +1,5 @@ /* Error handler for noninteractive utilities - Copyright (C) 1990-2000 Free Software Foundation, Inc. + Copyright (C) 1990-1998, 2000 Free Software Foundation, Inc. This file is part of the GNU C Library. Its master source is NOT part of the C library, however. The master source lives in /gd/gnu/lib. @@ -26,6 +26,9 @@ #endif #include +#if HAVE_LIBINTL_H +# include +#endif #if HAVE_VPRINTF || HAVE_DOPRNT || _LIBC # if __STDC__ @@ -49,6 +52,13 @@ void exit (); #include "error.h" +#ifndef HAVE_DECL_STRERROR_R +"this configure-time declaration test was not run" +#endif +#if !HAVE_DECL_STRERROR_R +char *strerror_r (); +#endif + #ifndef _ # define _(String) String #endif @@ -76,6 +86,11 @@ unsigned int error_message_count; # define error __error # define error_at_line __error_at_line +# ifdef USE_IN_LIBIO +# include +# define fflush(s) _IO_fflush (s) +# endif + #else /* not _LIBC */ /* The calling program should define program_name and set it to the diff --git a/lib/error.h b/lib/error.h index 38a8e296..20f75824 100644 --- a/lib/error.h +++ b/lib/error.h @@ -76,81 +76,3 @@ extern int error_one_per_line; #endif #endif /* error.h */ -/* Declaration for error-reporting function - Copyright (C) 1995, 1996, 1997 Free Software Foundation, Inc. - - - NOTE: The canonical source of this file is maintained with the GNU C Library. - Bugs can be reported to bug-glibc@prep.ai.mit.edu. - - This program is free software; you can redistribute it and/or modify it - under the terms of the GNU General Public License as published by the - Free Software Foundation; either version 2, or (at your option) any - later version. - - This program is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - GNU General Public License for more details. - - You should have received a copy of the GNU General Public License - along with this program; if not, write to the Free Software - Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, - USA. */ - -#ifndef _ERROR_H -#define _ERROR_H 1 - -#ifndef __attribute__ -/* This feature is available in gcc versions 2.5 and later. */ -# if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 5) || __STRICT_ANSI__ -# define __attribute__(Spec) /* empty */ -# endif -/* The __-protected variants of `format' and `printf' attributes - are accepted by gcc versions 2.6.4 (effectively 2.7) and later. */ -# if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 7) -# define __format__ format -# define __printf__ printf -# endif -#endif - -#ifdef __cplusplus -extern "C" { -#endif - -#if defined (__STDC__) && __STDC__ - -/* Print a message with `fprintf (stderr, FORMAT, ...)'; - if ERRNUM is nonzero, follow it with ": " and strerror (ERRNUM). - If STATUS is nonzero, terminate the program with `exit (STATUS)'. */ - -extern void error (int status, int errnum, const char *format, ...) - __attribute__ ((__format__ (__printf__, 3, 4))); - -extern void error_at_line (int status, int errnum, const char *fname, - unsigned int lineno, const char *format, ...) - __attribute__ ((__format__ (__printf__, 5, 6))); - -/* If NULL, error will flush stdout, then print on stderr the program - name, a colon and a space. Otherwise, error will call this - function without parameters instead. */ -extern void (*error_print_progname) (void); - -#else -void error (); -void error_at_line (); -extern void (*error_print_progname) (); -#endif - -/* This variable is incremented each time `error' is called. */ -extern unsigned int error_message_count; - -/* Sometimes we want to have at most one error per line. This - variable controls whether this mode is selected or not. */ -extern int error_one_per_line; - -#ifdef __cplusplus -} -#endif - -#endif /* error.h */ diff --git a/m4/Makefile.am b/m4/Makefile.am index 3d5d9fa0..5576f01d 100644 --- a/m4/Makefile.am +++ b/m4/Makefile.am @@ -10,5 +10,6 @@ malloc.m4 \ mbstate_t.m4 \ prereq.m4 \ progtest.m4 \ +strerror_r.m4 \ realloc.m4 \ warning.m4 diff --git a/m4/Makefile.in b/m4/Makefile.in index a68a82e2..f217e7dd 100644 --- a/m4/Makefile.in +++ b/m4/Makefile.in @@ -92,7 +92,7 @@ VERSION = @VERSION@ WARNING_CFLAGS = @WARNING_CFLAGS@ l = @l@ -EXTRA_DIST = atconfig.m4 c-bs-a.m4 error.m4 gettext.m4 lcmessage.m4 m4.m4 malloc.m4 mbstate_t.m4 prereq.m4 progtest.m4 realloc.m4 warning.m4 +EXTRA_DIST = atconfig.m4 c-bs-a.m4 error.m4 gettext.m4 lcmessage.m4 m4.m4 malloc.m4 mbstate_t.m4 prereq.m4 progtest.m4 strerror_r.m4 realloc.m4 warning.m4 mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs CONFIG_HEADER = ../config.h diff --git a/m4/error.m4 b/m4/error.m4 index eb0f776b..c7269129 100644 --- a/m4/error.m4 +++ b/m4/error.m4 @@ -8,4 +8,5 @@ AC_DEFUN(jm_PREREQ_ERROR, [ AC_CHECK_FUNCS(strerror strerror_r vprintf doprnt) AC_HEADER_STDC + AC_FUNC_STRERROR_R ]) diff --git a/m4/strerror_r.m4 b/m4/strerror_r.m4 new file mode 100644 index 00000000..6cf46240 --- /dev/null +++ b/m4/strerror_r.m4 @@ -0,0 +1,66 @@ +#serial 1002 +# Experimental replacement for the function in the latest CVS autoconf. +# If the compile-test says strerror_r doesn't work, then resort to a +# `run'-test that works on BeOS and segfaults on DEC Unix. +# Use with the error.c file in ../lib. + +undefine([AC_FUNC_STRERROR_R]) + +# AC_FUNC_STRERROR_R +# ------------------ +AC_DEFUN([AC_FUNC_STRERROR_R], +[AC_CHECK_DECLS([strerror_r]) +AC_CHECK_FUNCS([strerror_r]) +if test $ac_cv_func_strerror_r = yes; then + AC_CHECK_HEADERS(string.h) + AC_CACHE_CHECK([for working strerror_r], + ac_cv_func_strerror_r_works, + [ + AC_TRY_COMPILE( + [ +# include +# if HAVE_STRING_H +# include +# endif + ], + [ + char buf[100]; + char x = *strerror_r (0, buf, sizeof buf); + ], + ac_cv_func_strerror_r_works=yes, + ac_cv_func_strerror_r_works=no + ) + if test $ac_cv_func_strerror_r_works = no; then + # strerror_r seems not to work, but now we have to choose between + # systems that have relatively inaccessible declarations for the + # function. BeOS and DEC UNIX 4.0 fall in this category, but the + # former has a strerror_r that returns char*, while the latter + # has a strerror_r that returns `int'. + # This test should segfault on the DEC system. + AC_TRY_RUN( + [ +# include +# include +# include + + extern char *strerror_r (); + + int + main () + { + char buf[100]; + char x = *strerror_r (0, buf, sizeof buf); + exit (!isalpha (x)); + } + ], + ac_cv_func_strerror_r_works=yes, + ac_cv_func_strerror_r_works=no, + ac_cv_func_strerror_r_works=no) + fi + ]) + if test $ac_cv_func_strerror_r_works = yes; then + AC_DEFINE_UNQUOTED(HAVE_WORKING_STRERROR_R, 1, + [Define to 1 if `strerror_r' returns a string.]) + fi +fi +])# AC_FUNC_STRERROR_R diff --git a/tests/.cvsignore b/tests/.cvsignore index 1c394283..5447138c 100644 --- a/tests/.cvsignore +++ b/tests/.cvsignore @@ -10,5 +10,5 @@ stderr stdout testsuite calc.[chy] -calc.c.* +calc.tab.* calc -- 2.45.2