2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.68 for GNU Awk 4.0.1.
5 # Report bugs to <bug-gawk@gnu.org>.
8 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
9 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
13 # This configure script is free software; the Free Software Foundation
14 # gives unlimited permission to copy, distribute and modify it.
15 ## -------------------- ##
16 ## M4sh Initialization. ##
17 ## -------------------- ##
19 # Be more Bourne compatible
20 DUALCASE=1; export DUALCASE # for MKS sh
21 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
24 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25 # is contrary to our usage. Disable this feature.
26 alias -g '${1+"$@"}'='"$@"'
29 case `(set -o) 2>/dev/null` in #(
41 # Printing a long string crashes Solaris 7 /usr/bin/printf.
42 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
43 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
44 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
45 # Prefer a ksh shell builtin over an external printf program on Solaris,
46 # but without wasting forks for bash or zsh.
47 if test -z "$BASH_VERSION$ZSH_VERSION" \
48 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
50 as_echo_n='print -rn --'
51 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
55 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
56 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
57 as_echo_n='/usr/ucb/echo -n'
59 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
64 expr "X$arg" : "X\\(.*\\)$as_nl";
65 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
67 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
70 as_echo_n='sh -c $as_echo_n_body as_echo'
73 as_echo='sh -c $as_echo_body as_echo'
76 # The user is always right.
77 if test "${PATH_SEPARATOR+set}" != set; then
79 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
80 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
87 # We need space, tab and new line, in precisely that order. Quoting is
88 # there to prevent editors from complaining about space-tab.
89 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
90 # splitting by setting IFS to empty value.)
93 # Find who we are. Look in the path if we contain no directory separator.
96 *[\\/]* ) as_myself=$0 ;;
97 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
101 test -z "$as_dir" && as_dir=.
102 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
108 # We did not find ourselves, most probably we were run as `sh COMMAND'
109 # in which case we are not to be found in the path.
110 if test "x$as_myself" = x; then
113 if test ! -f "$as_myself"; then
114 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
118 # Unset variables that we do not need and which cause bugs (e.g. in
119 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
120 # suppresses any "Segmentation fault" message there. '((' could
121 # trigger a bug in pdksh 5.2.14.
122 for as_var in BASH_ENV ENV MAIL MAILPATH
123 do eval test x\${$as_var+set} = xset \
124 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
137 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
139 if test "x$CONFIG_SHELL" = x; then
140 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
143 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
144 # is contrary to our usage. Disable this feature.
145 alias -g '\${1+\"\$@\"}'='\"\$@\"'
148 case \`(set -o) 2>/dev/null\` in #(
156 as_required="as_fn_return () { (exit \$1); }
157 as_fn_success () { as_fn_return 0; }
158 as_fn_failure () { as_fn_return 1; }
159 as_fn_ret_success () { return 0; }
160 as_fn_ret_failure () { return 1; }
163 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
164 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
165 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
166 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
167 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
170 exitcode=1; echo positional parameters were not saved.
172 test x\$exitcode = x0 || exit 1"
173 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
174 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
175 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
176 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
177 test \$(( 1 + 1 )) = 2 || exit 1"
178 if (eval "$as_required") 2>/dev/null; then :
183 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
186 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
188 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
191 test -z "$as_dir" && as_dir=.
195 for as_base in sh bash ksh sh5; do
196 # Try only shells that exist, to save several forks.
197 as_shell=$as_dir/$as_base
198 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
199 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
200 CONFIG_SHELL=$as_shell as_have_required=yes
201 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
209 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
210 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
211 CONFIG_SHELL=$SHELL as_have_required=yes
216 if test "x$CONFIG_SHELL" != x; then :
217 # We cannot yet assume a decent shell, so we have to provide a
218 # neutralization value for shells without unset; and this also
219 # works around shells that cannot unset nonexistent variables.
220 # Preserve -v and -x to the replacement shell.
223 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
226 *v*x* | *x*v* ) as_opts=-vx ;;
231 exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
234 if test x$as_have_required = xno; then :
235 $as_echo "$0: This script requires a shell more modern than all"
236 $as_echo "$0: the shells that I found on your system."
237 if test x${ZSH_VERSION+set} = xset ; then
238 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
239 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
241 $as_echo "$0: Please tell bug-autoconf@gnu.org and bug-gawk@gnu.org
242 $0: about your system, including any error possibly output
243 $0: before this message. Then install a modern shell, or
244 $0: manually run the script under such a shell if you do
251 SHELL=${CONFIG_SHELL-/bin/sh}
253 # Unset more variables known to interfere with behavior of common tools.
254 CLICOLOR_FORCE= GREP_OPTIONS=
255 unset CLICOLOR_FORCE GREP_OPTIONS
257 ## --------------------- ##
258 ## M4sh Shell Functions. ##
259 ## --------------------- ##
262 # Portably unset VAR.
265 { eval $1=; unset $1;}
269 # as_fn_set_status STATUS
270 # -----------------------
271 # Set $? to STATUS, without forking.
279 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
289 # Create "$as_dir" as a directory, including parents if necessary.
294 -*) as_dir=./$as_dir;;
296 test -d "$as_dir" || eval $as_mkdir_p || {
300 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
303 as_dirs="'$as_qdir' $as_dirs"
304 as_dir=`$as_dirname -- "$as_dir" ||
305 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
306 X"$as_dir" : 'X\(//\)[^/]' \| \
307 X"$as_dir" : 'X\(//\)$' \| \
308 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
309 $as_echo X"$as_dir" |
310 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
327 test -d "$as_dir" && break
329 test -z "$as_dirs" || eval "mkdir $as_dirs"
330 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
334 # as_fn_append VAR VALUE
335 # ----------------------
336 # Append the text in VALUE to the end of the definition contained in VAR. Take
337 # advantage of any shell optimizations that allow amortized linear growth over
338 # repeated appends, instead of the typical quadratic growth present in naive
340 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
341 eval 'as_fn_append ()
354 # Perform arithmetic evaluation on the ARGs, and store the result in the
355 # global $as_val. Take advantage of shells that can avoid forks. The arguments
356 # must be portable across $(()) and expr.
357 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
365 as_val=`expr "$@" || test $? -eq 1`
370 # as_fn_error STATUS ERROR [LINENO LOG_FD]
371 # ----------------------------------------
372 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
373 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
374 # script with STATUS, using 1 if that was 0.
377 as_status=$1; test $as_status -eq 0 && as_status=1
379 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
380 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
382 $as_echo "$as_me: error: $2" >&2
383 as_fn_exit $as_status
386 if expr a : '\(a\)' >/dev/null 2>&1 &&
387 test "X`expr 00001 : '.*\(...\)'`" = X001; then
393 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
399 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
405 as_me=`$as_basename -- "$0" ||
406 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
407 X"$0" : 'X\(//\)$' \| \
408 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
410 sed '/^.*\/\([^/][^/]*\)\/*$/{
424 # Avoid depending upon Character Ranges.
425 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
426 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
427 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
428 as_cr_digits='0123456789'
429 as_cr_alnum=$as_cr_Letters$as_cr_digits
432 as_lineno_1=$LINENO as_lineno_1a=$LINENO
433 as_lineno_2=$LINENO as_lineno_2a=$LINENO
434 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
435 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
436 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
448 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
452 chmod +x "$as_me.lineno" ||
453 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
455 # Don't try to exec as it changes $[0], causing all sort of problems
456 # (the dirname of $[0] is not the place where we might find the
457 # original and so on. Autoconf is especially sensitive to this).
459 # Exit status is that of the last command.
463 ECHO_C= ECHO_N= ECHO_T=
464 case `echo -n x` in #(((((
466 case `echo 'xy\c'` in
467 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
469 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
476 rm -f conf$$ conf$$.exe conf$$.file
477 if test -d conf$$.dir; then
478 rm -f conf$$.dir/conf$$.file
481 mkdir conf$$.dir 2>/dev/null
483 if (echo >conf$$.file) 2>/dev/null; then
484 if ln -s conf$$.file conf$$ 2>/dev/null; then
486 # ... but there are two gotchas:
487 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
488 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
489 # In both cases, we have to default to `cp -p'.
490 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
492 elif ln conf$$.file conf$$ 2>/dev/null; then
500 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
501 rmdir conf$$.dir 2>/dev/null
503 if mkdir -p . 2>/dev/null; then
504 as_mkdir_p='mkdir -p "$as_dir"'
506 test -d ./-p && rmdir ./-p
510 if test -x / >/dev/null 2>&1; then
513 if ls -dL / >/dev/null 2>&1; then
520 if test -d "$1"; then
526 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
527 ???[sx]*):;;*)false;;esac;fi
531 as_executable_p=$as_test_x
533 # Sed expression to map a string onto a valid CPP name.
534 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
536 # Sed expression to map a string onto a valid variable name.
537 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
540 test -n "$DJDIR" || exec 7<&0 </dev/null
544 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
545 # so uname gets run too.
546 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
551 ac_default_prefix=/usr/local
553 ac_config_libobj_dir=.
560 # Identity of this package.
561 PACKAGE_NAME='GNU Awk'
562 PACKAGE_TARNAME='gawk'
563 PACKAGE_VERSION='4.0.1'
564 PACKAGE_STRING='GNU Awk 4.0.1'
565 PACKAGE_BUGREPORT='bug-gawk@gnu.org'
566 PACKAGE_URL='http://www.gnu.org/software/gawk/'
568 # Factoring default headers for most tests.
569 ac_includes_default="\
571 #ifdef HAVE_SYS_TYPES_H
572 # include <sys/types.h>
574 #ifdef HAVE_SYS_STAT_H
575 # include <sys/stat.h>
581 # ifdef HAVE_STDLIB_H
586 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
591 #ifdef HAVE_STRINGS_H
592 # include <strings.h>
594 #ifdef HAVE_INTTYPES_H
595 # include <inttypes.h>
607 ac_subst_vars='am__EXEEXT_FALSE
632 XGETTEXT_EXTRA_OPTIONS
640 GETTEXT_MACRO_VERSION
672 INSTALL_STRIP_PROGRAM
714 program_transform_name
727 enable_option_checking
728 with_whiny_user_strftime
730 enable_dependency_tracking
737 with_libsigsegv_prefix
740 ac_precious_vars='build_alias
753 # Initialize some variables set by options.
755 ac_init_version=false
756 ac_unrecognized_opts=
758 # The variables have the same names as the options, with
759 # dashes changed to underlines.
767 program_transform_name=s,x,x,
775 # Installation directory options.
776 # These are left unexpanded so users can "make install exec_prefix=/foo"
777 # and all the variables that are supposed to be based on exec_prefix
778 # by default will actually change.
779 # Use braces instead of parens because sh, perl, etc. also accept them.
780 # (The list follows the same order as the GNU Coding Standards.)
781 bindir='${exec_prefix}/bin'
782 sbindir='${exec_prefix}/sbin'
783 libexecdir='${exec_prefix}/libexec'
784 datarootdir='${prefix}/share'
785 datadir='${datarootdir}'
786 sysconfdir='${prefix}/etc'
787 sharedstatedir='${prefix}/com'
788 localstatedir='${prefix}/var'
789 includedir='${prefix}/include'
790 oldincludedir='/usr/include'
791 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
792 infodir='${datarootdir}/info'
797 libdir='${exec_prefix}/lib'
798 localedir='${datarootdir}/locale'
799 mandir='${datarootdir}/man'
805 # If the previous option needs an argument, assign it.
806 if test -n "$ac_prev"; then
807 eval $ac_prev=\$ac_option
813 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
818 # Accept the important Cygnus configure options, so we can diagnose typos.
820 case $ac_dashdash$ac_option in
824 -bindir | --bindir | --bindi | --bind | --bin | --bi)
826 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
829 -build | --build | --buil | --bui | --bu)
830 ac_prev=build_alias ;;
831 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
832 build_alias=$ac_optarg ;;
834 -cache-file | --cache-file | --cache-fil | --cache-fi \
835 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
836 ac_prev=cache_file ;;
837 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
838 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
839 cache_file=$ac_optarg ;;
842 cache_file=config.cache ;;
844 -datadir | --datadir | --datadi | --datad)
846 -datadir=* | --datadir=* | --datadi=* | --datad=*)
847 datadir=$ac_optarg ;;
849 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
850 | --dataroo | --dataro | --datar)
851 ac_prev=datarootdir ;;
852 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
853 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
854 datarootdir=$ac_optarg ;;
856 -disable-* | --disable-*)
857 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
858 # Reject names that are not valid shell variable names.
859 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
860 as_fn_error $? "invalid feature name: $ac_useropt"
861 ac_useropt_orig=$ac_useropt
862 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
863 case $ac_user_opts in
867 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
868 ac_unrecognized_sep=', ';;
870 eval enable_$ac_useropt=no ;;
872 -docdir | --docdir | --docdi | --doc | --do)
874 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
877 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
879 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
882 -enable-* | --enable-*)
883 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
884 # Reject names that are not valid shell variable names.
885 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
886 as_fn_error $? "invalid feature name: $ac_useropt"
887 ac_useropt_orig=$ac_useropt
888 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
889 case $ac_user_opts in
893 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
894 ac_unrecognized_sep=', ';;
896 eval enable_$ac_useropt=\$ac_optarg ;;
898 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
899 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
900 | --exec | --exe | --ex)
901 ac_prev=exec_prefix ;;
902 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
903 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
904 | --exec=* | --exe=* | --ex=*)
905 exec_prefix=$ac_optarg ;;
907 -gas | --gas | --ga | --g)
908 # Obsolete; use --with-gas.
911 -help | --help | --hel | --he | -h)
913 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
914 ac_init_help=recursive ;;
915 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
916 ac_init_help=short ;;
918 -host | --host | --hos | --ho)
919 ac_prev=host_alias ;;
920 -host=* | --host=* | --hos=* | --ho=*)
921 host_alias=$ac_optarg ;;
923 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
925 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
927 htmldir=$ac_optarg ;;
929 -includedir | --includedir | --includedi | --included | --include \
930 | --includ | --inclu | --incl | --inc)
931 ac_prev=includedir ;;
932 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
933 | --includ=* | --inclu=* | --incl=* | --inc=*)
934 includedir=$ac_optarg ;;
936 -infodir | --infodir | --infodi | --infod | --info | --inf)
938 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
939 infodir=$ac_optarg ;;
941 -libdir | --libdir | --libdi | --libd)
943 -libdir=* | --libdir=* | --libdi=* | --libd=*)
946 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
947 | --libexe | --libex | --libe)
948 ac_prev=libexecdir ;;
949 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
950 | --libexe=* | --libex=* | --libe=*)
951 libexecdir=$ac_optarg ;;
953 -localedir | --localedir | --localedi | --localed | --locale)
955 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
956 localedir=$ac_optarg ;;
958 -localstatedir | --localstatedir | --localstatedi | --localstated \
959 | --localstate | --localstat | --localsta | --localst | --locals)
960 ac_prev=localstatedir ;;
961 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
962 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
963 localstatedir=$ac_optarg ;;
965 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
967 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
971 # Obsolete; use --without-fp.
974 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
975 | --no-cr | --no-c | -n)
978 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
979 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
982 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
983 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
984 | --oldin | --oldi | --old | --ol | --o)
985 ac_prev=oldincludedir ;;
986 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
987 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
988 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
989 oldincludedir=$ac_optarg ;;
991 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
993 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
996 -program-prefix | --program-prefix | --program-prefi | --program-pref \
997 | --program-pre | --program-pr | --program-p)
998 ac_prev=program_prefix ;;
999 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1000 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1001 program_prefix=$ac_optarg ;;
1003 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1004 | --program-suf | --program-su | --program-s)
1005 ac_prev=program_suffix ;;
1006 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1007 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1008 program_suffix=$ac_optarg ;;
1010 -program-transform-name | --program-transform-name \
1011 | --program-transform-nam | --program-transform-na \
1012 | --program-transform-n | --program-transform- \
1013 | --program-transform | --program-transfor \
1014 | --program-transfo | --program-transf \
1015 | --program-trans | --program-tran \
1016 | --progr-tra | --program-tr | --program-t)
1017 ac_prev=program_transform_name ;;
1018 -program-transform-name=* | --program-transform-name=* \
1019 | --program-transform-nam=* | --program-transform-na=* \
1020 | --program-transform-n=* | --program-transform-=* \
1021 | --program-transform=* | --program-transfor=* \
1022 | --program-transfo=* | --program-transf=* \
1023 | --program-trans=* | --program-tran=* \
1024 | --progr-tra=* | --program-tr=* | --program-t=*)
1025 program_transform_name=$ac_optarg ;;
1027 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1029 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1030 pdfdir=$ac_optarg ;;
1032 -psdir | --psdir | --psdi | --psd | --ps)
1034 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1037 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1038 | -silent | --silent | --silen | --sile | --sil)
1041 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1043 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1045 sbindir=$ac_optarg ;;
1047 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1048 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1049 | --sharedst | --shareds | --shared | --share | --shar \
1051 ac_prev=sharedstatedir ;;
1052 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1053 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1054 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1056 sharedstatedir=$ac_optarg ;;
1058 -site | --site | --sit)
1060 -site=* | --site=* | --sit=*)
1063 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1065 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1066 srcdir=$ac_optarg ;;
1068 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1069 | --syscon | --sysco | --sysc | --sys | --sy)
1070 ac_prev=sysconfdir ;;
1071 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1072 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1073 sysconfdir=$ac_optarg ;;
1075 -target | --target | --targe | --targ | --tar | --ta | --t)
1076 ac_prev=target_alias ;;
1077 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1078 target_alias=$ac_optarg ;;
1080 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1083 -version | --version | --versio | --versi | --vers | -V)
1084 ac_init_version=: ;;
1087 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1088 # Reject names that are not valid shell variable names.
1089 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1090 as_fn_error $? "invalid package name: $ac_useropt"
1091 ac_useropt_orig=$ac_useropt
1092 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1093 case $ac_user_opts in
1097 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1098 ac_unrecognized_sep=', ';;
1100 eval with_$ac_useropt=\$ac_optarg ;;
1102 -without-* | --without-*)
1103 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1104 # Reject names that are not valid shell variable names.
1105 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1106 as_fn_error $? "invalid package name: $ac_useropt"
1107 ac_useropt_orig=$ac_useropt
1108 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1109 case $ac_user_opts in
1113 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1114 ac_unrecognized_sep=', ';;
1116 eval with_$ac_useropt=no ;;
1119 # Obsolete; use --with-x.
1122 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1123 | --x-incl | --x-inc | --x-in | --x-i)
1124 ac_prev=x_includes ;;
1125 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1126 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1127 x_includes=$ac_optarg ;;
1129 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1130 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1131 ac_prev=x_libraries ;;
1132 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1133 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1134 x_libraries=$ac_optarg ;;
1136 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1137 Try \`$0 --help' for more information"
1141 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1142 # Reject names that are not valid shell variable names.
1143 case $ac_envvar in #(
1144 '' | [0-9]* | *[!_$as_cr_alnum]* )
1145 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1147 eval $ac_envvar=\$ac_optarg
1148 export $ac_envvar ;;
1151 # FIXME: should be removed in autoconf 3.0.
1152 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1153 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1154 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1155 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1161 if test -n "$ac_prev"; then
1162 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1163 as_fn_error $? "missing argument to $ac_option"
1166 if test -n "$ac_unrecognized_opts"; then
1167 case $enable_option_checking in
1169 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1170 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1174 # Check all directory arguments for consistency.
1175 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1176 datadir sysconfdir sharedstatedir localstatedir includedir \
1177 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1178 libdir localedir mandir
1180 eval ac_val=\$$ac_var
1181 # Remove trailing slashes.
1184 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1185 eval $ac_var=\$ac_val;;
1187 # Be sure to have absolute directory names.
1189 [\\/$]* | ?:[\\/]* ) continue;;
1190 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1192 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1195 # There might be people who depend on the old broken behavior: `$host'
1196 # used to hold the argument of --host etc.
1197 # FIXME: To remove some day.
1200 target=$target_alias
1202 # FIXME: To remove some day.
1203 if test "x$host_alias" != x; then
1204 if test "x$build_alias" = x; then
1205 cross_compiling=maybe
1206 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1207 If a cross compiler is detected then cross compile mode will be used" >&2
1208 elif test "x$build_alias" != "x$host_alias"; then
1214 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1216 test "$silent" = yes && exec 6>/dev/null
1219 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1220 ac_ls_di=`ls -di .` &&
1221 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1222 as_fn_error $? "working directory cannot be determined"
1223 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1224 as_fn_error $? "pwd does not report name of working directory"
1227 # Find the source files, if location was not specified.
1228 if test -z "$srcdir"; then
1229 ac_srcdir_defaulted=yes
1230 # Try the directory containing this script, then the parent directory.
1231 ac_confdir=`$as_dirname -- "$as_myself" ||
1232 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1233 X"$as_myself" : 'X\(//\)[^/]' \| \
1234 X"$as_myself" : 'X\(//\)$' \| \
1235 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1236 $as_echo X"$as_myself" |
1237 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1255 if test ! -r "$srcdir/$ac_unique_file"; then
1259 ac_srcdir_defaulted=no
1261 if test ! -r "$srcdir/$ac_unique_file"; then
1262 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1263 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1265 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1267 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1269 # When building in place, set srcdir=.
1270 if test "$ac_abs_confdir" = "$ac_pwd"; then
1273 # Remove unnecessary trailing slashes from srcdir.
1274 # Double slashes in file names in object file debugging info
1275 # mess up M-x gdb in Emacs.
1277 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1279 for ac_var in $ac_precious_vars; do
1280 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1281 eval ac_env_${ac_var}_value=\$${ac_var}
1282 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1283 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1287 # Report the --help message.
1289 if test "$ac_init_help" = "long"; then
1290 # Omit some internal or obsolete options to make the list less imposing.
1291 # This message is too long to be a string in the A/UX 3.1 sh.
1293 \`configure' configures GNU Awk 4.0.1 to adapt to many kinds of systems.
1295 Usage: $0 [OPTION]... [VAR=VALUE]...
1297 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1298 VAR=VALUE. See below for descriptions of some of the useful variables.
1300 Defaults for the options are specified in brackets.
1303 -h, --help display this help and exit
1304 --help=short display options specific to this package
1305 --help=recursive display the short help of all the included packages
1306 -V, --version display version information and exit
1307 -q, --quiet, --silent do not print \`checking ...' messages
1308 --cache-file=FILE cache test results in FILE [disabled]
1309 -C, --config-cache alias for \`--cache-file=config.cache'
1310 -n, --no-create do not create output files
1311 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1313 Installation directories:
1314 --prefix=PREFIX install architecture-independent files in PREFIX
1315 [$ac_default_prefix]
1316 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1319 By default, \`make install' will install all the files in
1320 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1321 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1322 for instance \`--prefix=\$HOME'.
1324 For better control, use the options below.
1326 Fine tuning of the installation directories:
1327 --bindir=DIR user executables [EPREFIX/bin]
1328 --sbindir=DIR system admin executables [EPREFIX/sbin]
1329 --libexecdir=DIR program executables [EPREFIX/libexec]
1330 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1331 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1332 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1333 --libdir=DIR object code libraries [EPREFIX/lib]
1334 --includedir=DIR C header files [PREFIX/include]
1335 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1336 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1337 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1338 --infodir=DIR info documentation [DATAROOTDIR/info]
1339 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1340 --mandir=DIR man documentation [DATAROOTDIR/man]
1341 --docdir=DIR documentation root [DATAROOTDIR/doc/gawk]
1342 --htmldir=DIR html documentation [DOCDIR]
1343 --dvidir=DIR dvi documentation [DOCDIR]
1344 --pdfdir=DIR pdf documentation [DOCDIR]
1345 --psdir=DIR ps documentation [DOCDIR]
1351 --program-prefix=PREFIX prepend PREFIX to installed program names
1352 --program-suffix=SUFFIX append SUFFIX to installed program names
1353 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1356 --build=BUILD configure for building on BUILD [guessed]
1357 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1361 if test -n "$ac_init_help"; then
1362 case $ac_init_help in
1363 short | recursive ) echo "Configuration of GNU Awk 4.0.1:";;
1368 --disable-option-checking ignore unrecognized --enable/--with options
1369 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1370 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1371 --disable-lint Disable gawk lint checking
1372 --disable-dependency-tracking speeds up one-time build
1373 --enable-dependency-tracking do not reject slow dependency extractors
1374 --disable-largefile omit support for large files
1375 --disable-nls do not use Native Language Support
1376 --disable-rpath do not hardcode runtime library paths
1379 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1380 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1381 --with-whiny-user-strftime Force use of included version of strftime for deficient systems
1382 --with-gnu-ld assume the C compiler uses GNU ld default=no
1383 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1384 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1385 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
1386 --without-libintl-prefix don't search for libintl in includedir and libdir
1387 --with-libsigsegv-prefix[=DIR] search for libsigsegv in DIR/include and DIR/lib
1388 --without-libsigsegv-prefix don't search for libsigsegv in includedir and libdir
1389 --with-readline=DIR look for the readline library in DIR
1391 Some influential environment variables:
1392 CC C compiler command
1393 CFLAGS C compiler flags
1394 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1395 nonstandard directory <lib dir>
1396 LIBS libraries to pass to the linker, e.g. -l<library>
1397 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1398 you have headers in a nonstandard directory <include dir>
1400 YACC The `Yet Another Compiler Compiler' implementation to use.
1401 Defaults to the first program found out of: `bison -y', `byacc',
1403 YFLAGS The list of arguments that will be passed by default to $YACC.
1404 This script will default YFLAGS to the empty string to avoid a
1405 default value of `-d' given by some make applications.
1407 Use these variables to override the choices made by `configure' or to help
1408 it to find libraries and programs with nonstandard names/locations.
1410 Report bugs to <bug-gawk@gnu.org>.
1411 GNU Awk home page: <http://www.gnu.org/software/gawk/>.
1412 General help using GNU software: <http://www.gnu.org/gethelp/>.
1417 if test "$ac_init_help" = "recursive"; then
1418 # If there are subdirs, report their specific --help.
1419 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1420 test -d "$ac_dir" ||
1421 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1426 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1428 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1429 # A ".." for each directory in $ac_dir_suffix.
1430 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1431 case $ac_top_builddir_sub in
1432 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1433 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1436 ac_abs_top_builddir=$ac_pwd
1437 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1438 # for backward compatibility:
1439 ac_top_builddir=$ac_top_build_prefix
1442 .) # We are building in place.
1444 ac_top_srcdir=$ac_top_builddir_sub
1445 ac_abs_top_srcdir=$ac_pwd ;;
1446 [\\/]* | ?:[\\/]* ) # Absolute name.
1447 ac_srcdir=$srcdir$ac_dir_suffix;
1448 ac_top_srcdir=$srcdir
1449 ac_abs_top_srcdir=$srcdir ;;
1451 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1452 ac_top_srcdir=$ac_top_build_prefix$srcdir
1453 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1455 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1457 cd "$ac_dir" || { ac_status=$?; continue; }
1458 # Check for guested configure.
1459 if test -f "$ac_srcdir/configure.gnu"; then
1461 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1462 elif test -f "$ac_srcdir/configure"; then
1464 $SHELL "$ac_srcdir/configure" --help=recursive
1466 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1468 cd "$ac_pwd" || { ac_status=$?; break; }
1472 test -n "$ac_init_help" && exit $ac_status
1473 if $ac_init_version; then
1475 GNU Awk configure 4.0.1
1476 generated by GNU Autoconf 2.68
1478 Copyright (C) 2010 Free Software Foundation, Inc.
1479 This configure script is free software; the Free Software Foundation
1480 gives unlimited permission to copy, distribute and modify it.
1485 ## ------------------------ ##
1486 ## Autoconf initialization. ##
1487 ## ------------------------ ##
1489 # ac_fn_c_try_compile LINENO
1490 # --------------------------
1491 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1492 ac_fn_c_try_compile ()
1494 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1495 rm -f conftest.$ac_objext
1496 if { { ac_try="$ac_compile"
1498 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1499 *) ac_try_echo=$ac_try;;
1501 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1502 $as_echo "$ac_try_echo"; } >&5
1503 (eval "$ac_compile") 2>conftest.err
1505 if test -s conftest.err; then
1506 grep -v '^ *+' conftest.err >conftest.er1
1507 cat conftest.er1 >&5
1508 mv -f conftest.er1 conftest.err
1510 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1511 test $ac_status = 0; } && {
1512 test -z "$ac_c_werror_flag" ||
1513 test ! -s conftest.err
1514 } && test -s conftest.$ac_objext; then :
1517 $as_echo "$as_me: failed program was:" >&5
1518 sed 's/^/| /' conftest.$ac_ext >&5
1522 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1523 as_fn_set_status $ac_retval
1525 } # ac_fn_c_try_compile
1527 # ac_fn_c_try_cpp LINENO
1528 # ----------------------
1529 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1532 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1533 if { { ac_try="$ac_cpp conftest.$ac_ext"
1535 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1536 *) ac_try_echo=$ac_try;;
1538 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1539 $as_echo "$ac_try_echo"; } >&5
1540 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1542 if test -s conftest.err; then
1543 grep -v '^ *+' conftest.err >conftest.er1
1544 cat conftest.er1 >&5
1545 mv -f conftest.er1 conftest.err
1547 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1548 test $ac_status = 0; } > conftest.i && {
1549 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1550 test ! -s conftest.err
1554 $as_echo "$as_me: failed program was:" >&5
1555 sed 's/^/| /' conftest.$ac_ext >&5
1559 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1560 as_fn_set_status $ac_retval
1564 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1565 # -------------------------------------------------------
1566 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1567 # the include files in INCLUDES and setting the cache variable VAR
1569 ac_fn_c_check_header_mongrel ()
1571 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1572 if eval \${$3+:} false; then :
1573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1574 $as_echo_n "checking for $2... " >&6; }
1575 if eval \${$3+:} false; then :
1576 $as_echo_n "(cached) " >&6
1579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1580 $as_echo "$ac_res" >&6; }
1582 # Is the header compilable?
1583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1584 $as_echo_n "checking $2 usability... " >&6; }
1585 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1586 /* end confdefs.h. */
1590 if ac_fn_c_try_compile "$LINENO"; then :
1591 ac_header_compiler=yes
1593 ac_header_compiler=no
1595 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1597 $as_echo "$ac_header_compiler" >&6; }
1599 # Is the header present?
1600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1601 $as_echo_n "checking $2 presence... " >&6; }
1602 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1603 /* end confdefs.h. */
1606 if ac_fn_c_try_cpp "$LINENO"; then :
1607 ac_header_preproc=yes
1609 ac_header_preproc=no
1611 rm -f conftest.err conftest.i conftest.$ac_ext
1612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1613 $as_echo "$ac_header_preproc" >&6; }
1615 # So? What about this header?
1616 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1618 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1619 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1620 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1621 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1624 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1625 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1626 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1627 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1628 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1629 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1630 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1631 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1632 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1633 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1634 ( $as_echo "## ------------------------------- ##
1635 ## Report this to bug-gawk@gnu.org ##
1636 ## ------------------------------- ##"
1637 ) | sed "s/^/$as_me: WARNING: /" >&2
1640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1641 $as_echo_n "checking for $2... " >&6; }
1642 if eval \${$3+:} false; then :
1643 $as_echo_n "(cached) " >&6
1645 eval "$3=\$ac_header_compiler"
1648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1649 $as_echo "$ac_res" >&6; }
1651 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1653 } # ac_fn_c_check_header_mongrel
1655 # ac_fn_c_try_run LINENO
1656 # ----------------------
1657 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1658 # that executables *can* be run.
1661 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1662 if { { ac_try="$ac_link"
1664 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1665 *) ac_try_echo=$ac_try;;
1667 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1668 $as_echo "$ac_try_echo"; } >&5
1669 (eval "$ac_link") 2>&5
1671 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1672 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1673 { { case "(($ac_try" in
1674 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1675 *) ac_try_echo=$ac_try;;
1677 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1678 $as_echo "$ac_try_echo"; } >&5
1679 (eval "$ac_try") 2>&5
1681 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1682 test $ac_status = 0; }; }; then :
1685 $as_echo "$as_me: program exited with status $ac_status" >&5
1686 $as_echo "$as_me: failed program was:" >&5
1687 sed 's/^/| /' conftest.$ac_ext >&5
1689 ac_retval=$ac_status
1691 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1692 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1693 as_fn_set_status $ac_retval
1697 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1698 # -------------------------------------------------------
1699 # Tests whether HEADER exists and can be compiled using the include files in
1700 # INCLUDES, setting the cache variable VAR accordingly.
1701 ac_fn_c_check_header_compile ()
1703 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1705 $as_echo_n "checking for $2... " >&6; }
1706 if eval \${$3+:} false; then :
1707 $as_echo_n "(cached) " >&6
1709 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1710 /* end confdefs.h. */
1714 if ac_fn_c_try_compile "$LINENO"; then :
1719 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1723 $as_echo "$ac_res" >&6; }
1724 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1726 } # ac_fn_c_check_header_compile
1728 # ac_fn_c_try_link LINENO
1729 # -----------------------
1730 # Try to link conftest.$ac_ext, and return whether this succeeded.
1733 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1734 rm -f conftest.$ac_objext conftest$ac_exeext
1735 if { { ac_try="$ac_link"
1737 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1738 *) ac_try_echo=$ac_try;;
1740 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1741 $as_echo "$ac_try_echo"; } >&5
1742 (eval "$ac_link") 2>conftest.err
1744 if test -s conftest.err; then
1745 grep -v '^ *+' conftest.err >conftest.er1
1746 cat conftest.er1 >&5
1747 mv -f conftest.er1 conftest.err
1749 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1750 test $ac_status = 0; } && {
1751 test -z "$ac_c_werror_flag" ||
1752 test ! -s conftest.err
1753 } && test -s conftest$ac_exeext && {
1754 test "$cross_compiling" = yes ||
1755 $as_test_x conftest$ac_exeext
1759 $as_echo "$as_me: failed program was:" >&5
1760 sed 's/^/| /' conftest.$ac_ext >&5
1764 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1765 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1766 # interfere with the next link command; also delete a directory that is
1767 # left behind by Apple's compiler. We do this before executing the actions.
1768 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1769 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1770 as_fn_set_status $ac_retval
1772 } # ac_fn_c_try_link
1774 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1775 # -------------------------------------------
1776 # Tests whether TYPE exists after having included INCLUDES, setting cache
1777 # variable VAR accordingly.
1778 ac_fn_c_check_type ()
1780 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1782 $as_echo_n "checking for $2... " >&6; }
1783 if eval \${$3+:} false; then :
1784 $as_echo_n "(cached) " >&6
1787 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1788 /* end confdefs.h. */
1799 if ac_fn_c_try_compile "$LINENO"; then :
1800 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1801 /* end confdefs.h. */
1812 if ac_fn_c_try_compile "$LINENO"; then :
1817 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1819 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1823 $as_echo "$ac_res" >&6; }
1824 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1826 } # ac_fn_c_check_type
1828 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
1829 # --------------------------------------------
1830 # Tries to find the compile-time value of EXPR in a program that includes
1831 # INCLUDES, setting VAR accordingly. Returns whether the value could be
1833 ac_fn_c_compute_int ()
1835 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1836 if test "$cross_compiling" = yes; then
1837 # Depending upon the size, compute the lo and hi bounds.
1838 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1839 /* end confdefs.h. */
1844 static int test_array [1 - 2 * !(($2) >= 0)];
1851 if ac_fn_c_try_compile "$LINENO"; then :
1854 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1855 /* end confdefs.h. */
1860 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1867 if ac_fn_c_try_compile "$LINENO"; then :
1868 ac_hi=$ac_mid; break
1870 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
1871 if test $ac_lo -le $ac_mid; then
1875 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
1877 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1880 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1881 /* end confdefs.h. */
1886 static int test_array [1 - 2 * !(($2) < 0)];
1893 if ac_fn_c_try_compile "$LINENO"; then :
1896 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1897 /* end confdefs.h. */
1902 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
1909 if ac_fn_c_try_compile "$LINENO"; then :
1910 ac_lo=$ac_mid; break
1912 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
1913 if test $ac_mid -le $ac_hi; then
1917 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
1919 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1924 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1926 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1927 # Binary search between lo and hi bounds.
1928 while test "x$ac_lo" != "x$ac_hi"; do
1929 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
1930 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1931 /* end confdefs.h. */
1936 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1943 if ac_fn_c_try_compile "$LINENO"; then :
1946 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
1948 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1951 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
1955 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1956 /* end confdefs.h. */
1958 static long int longval () { return $2; }
1959 static unsigned long int ulongval () { return $2; }
1966 FILE *f = fopen ("conftest.val", "w");
1971 long int i = longval ();
1974 fprintf (f, "%ld", i);
1978 unsigned long int i = ulongval ();
1981 fprintf (f, "%lu", i);
1983 /* Do not output a trailing newline, as this causes \r\n confusion
1984 on some platforms. */
1985 return ferror (f) || fclose (f) != 0;
1991 if ac_fn_c_try_run "$LINENO"; then :
1992 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
1996 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
1997 conftest.$ac_objext conftest.beam conftest.$ac_ext
2001 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2002 as_fn_set_status $ac_retval
2004 } # ac_fn_c_compute_int
2006 # ac_fn_c_check_func LINENO FUNC VAR
2007 # ----------------------------------
2008 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2009 ac_fn_c_check_func ()
2011 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2013 $as_echo_n "checking for $2... " >&6; }
2014 if eval \${$3+:} false; then :
2015 $as_echo_n "(cached) " >&6
2017 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2018 /* end confdefs.h. */
2019 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2020 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2021 #define $2 innocuous_$2
2023 /* System header to define __stub macros and hopefully few prototypes,
2024 which can conflict with char $2 (); below.
2025 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2026 <limits.h> exists even on freestanding compilers. */
2029 # include <limits.h>
2031 # include <assert.h>
2036 /* Override any GCC internal prototype to avoid an error.
2037 Use char because int might match the return type of a GCC
2038 builtin and then its argument prototype would still apply. */
2043 /* The GNU C library defines this for functions which it implements
2044 to always fail with ENOSYS. Some functions are actually named
2045 something starting with __ and the normal name is an alias. */
2046 #if defined __stub_$2 || defined __stub___$2
2058 if ac_fn_c_try_link "$LINENO"; then :
2063 rm -f core conftest.err conftest.$ac_objext \
2064 conftest$ac_exeext conftest.$ac_ext
2067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2068 $as_echo "$ac_res" >&6; }
2069 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2071 } # ac_fn_c_check_func
2073 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2074 # ----------------------------------------------------
2075 # Tries to find if the field MEMBER exists in type AGGR, after including
2076 # INCLUDES, setting cache variable VAR accordingly.
2077 ac_fn_c_check_member ()
2079 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2081 $as_echo_n "checking for $2.$3... " >&6; }
2082 if eval \${$4+:} false; then :
2083 $as_echo_n "(cached) " >&6
2085 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2086 /* end confdefs.h. */
2098 if ac_fn_c_try_compile "$LINENO"; then :
2101 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2102 /* end confdefs.h. */
2108 if (sizeof ac_aggr.$3)
2114 if ac_fn_c_try_compile "$LINENO"; then :
2119 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2121 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2125 $as_echo "$ac_res" >&6; }
2126 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2128 } # ac_fn_c_check_member
2130 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2131 # ---------------------------------------------
2132 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2134 ac_fn_c_check_decl ()
2136 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2137 as_decl_name=`echo $2|sed 's/ *(.*//'`
2138 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2140 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2141 if eval \${$3+:} false; then :
2142 $as_echo_n "(cached) " >&6
2144 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2145 /* end confdefs.h. */
2150 #ifndef $as_decl_name
2152 (void) $as_decl_use;
2154 (void) $as_decl_name;
2162 if ac_fn_c_try_compile "$LINENO"; then :
2167 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2171 $as_echo "$ac_res" >&6; }
2172 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2174 } # ac_fn_c_check_decl
2175 cat >config.log <<_ACEOF
2176 This file contains any messages produced by compilers while
2177 running configure, to aid debugging if configure makes a mistake.
2179 It was created by GNU Awk $as_me 4.0.1, which was
2180 generated by GNU Autoconf 2.68. Invocation command line was
2192 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2193 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2194 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2195 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2196 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2198 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2199 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2201 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2202 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2203 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2204 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2205 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2206 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2207 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2211 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2215 test -z "$as_dir" && as_dir=.
2216 $as_echo "PATH: $as_dir"
2232 # Keep a trace of the command line.
2233 # Strip out --no-create and --no-recursion so they do not pile up.
2234 # Strip out --silent because we don't want to record it for future runs.
2235 # Also quote any args containing shell meta-characters.
2236 # Make two passes to allow for proper duplicate-argument suppression.
2240 ac_must_keep_next=false
2246 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2247 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2248 | -silent | --silent | --silen | --sile | --sil)
2251 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2254 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2256 as_fn_append ac_configure_args1 " '$ac_arg'"
2257 if test $ac_must_keep_next = true; then
2258 ac_must_keep_next=false # Got value, back to normal.
2261 *=* | --config-cache | -C | -disable-* | --disable-* \
2262 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2263 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2264 | -with-* | --with-* | -without-* | --without-* | --x)
2265 case "$ac_configure_args0 " in
2266 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2269 -* ) ac_must_keep_next=true ;;
2272 as_fn_append ac_configure_args " '$ac_arg'"
2277 { ac_configure_args0=; unset ac_configure_args0;}
2278 { ac_configure_args1=; unset ac_configure_args1;}
2280 # When interrupted or exit'd, cleanup temporary files, and complete
2281 # config.log. We remove comments because anyway the quotes in there
2282 # would cause problems or look ugly.
2283 # WARNING: Use '\'' to represent an apostrophe within the trap.
2284 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2285 trap 'exit_status=$?
2286 # Save into config.log some information that might help in debugging.
2290 $as_echo "## ---------------- ##
2291 ## Cache variables. ##
2292 ## ---------------- ##"
2294 # The following way of writing the cache mishandles newlines in values,
2296 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2297 eval ac_val=\$$ac_var
2301 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2302 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2305 _ | IFS | as_nl) ;; #(
2306 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2307 *) { eval $ac_var=; unset $ac_var;} ;;
2312 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2313 *${as_nl}ac_space=\ *)
2315 "s/'\''/'\''\\\\'\'''\''/g;
2316 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2319 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2326 $as_echo "## ----------------- ##
2327 ## Output variables. ##
2328 ## ----------------- ##"
2330 for ac_var in $ac_subst_vars
2332 eval ac_val=\$$ac_var
2334 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2336 $as_echo "$ac_var='\''$ac_val'\''"
2340 if test -n "$ac_subst_files"; then
2341 $as_echo "## ------------------- ##
2342 ## File substitutions. ##
2343 ## ------------------- ##"
2345 for ac_var in $ac_subst_files
2347 eval ac_val=\$$ac_var
2349 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2351 $as_echo "$ac_var='\''$ac_val'\''"
2356 if test -s confdefs.h; then
2357 $as_echo "## ----------- ##
2364 test "$ac_signal" != 0 &&
2365 $as_echo "$as_me: caught signal $ac_signal"
2366 $as_echo "$as_me: exit $exit_status"
2368 rm -f core *.core core.conftest.* &&
2369 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2372 for ac_signal in 1 2 13 15; do
2373 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2377 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2378 rm -f -r conftest* confdefs.h
2380 $as_echo "/* confdefs.h */" > confdefs.h
2382 # Predefined preprocessor variables.
2384 cat >>confdefs.h <<_ACEOF
2385 #define PACKAGE_NAME "$PACKAGE_NAME"
2388 cat >>confdefs.h <<_ACEOF
2389 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2392 cat >>confdefs.h <<_ACEOF
2393 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2396 cat >>confdefs.h <<_ACEOF
2397 #define PACKAGE_STRING "$PACKAGE_STRING"
2400 cat >>confdefs.h <<_ACEOF
2401 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2404 cat >>confdefs.h <<_ACEOF
2405 #define PACKAGE_URL "$PACKAGE_URL"
2409 # Let the site file select an alternate cache file if it wants to.
2410 # Prefer an explicitly selected file to automatically selected ones.
2413 if test -n "$CONFIG_SITE"; then
2414 # We do not want a PATH search for config.site.
2415 case $CONFIG_SITE in #((
2416 -*) ac_site_file1=./$CONFIG_SITE;;
2417 */*) ac_site_file1=$CONFIG_SITE;;
2418 *) ac_site_file1=./$CONFIG_SITE;;
2420 elif test "x$prefix" != xNONE; then
2421 ac_site_file1=$prefix/share/config.site
2422 ac_site_file2=$prefix/etc/config.site
2424 ac_site_file1=$ac_default_prefix/share/config.site
2425 ac_site_file2=$ac_default_prefix/etc/config.site
2427 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2429 test "x$ac_site_file" = xNONE && continue
2430 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2431 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2432 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2433 sed 's/^/| /' "$ac_site_file" >&5
2435 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2436 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2437 as_fn_error $? "failed to load site script $ac_site_file
2438 See \`config.log' for more details" "$LINENO" 5; }
2442 if test -r "$cache_file"; then
2443 # Some versions of bash will fail to source /dev/null (special files
2444 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2445 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2446 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2447 $as_echo "$as_me: loading cache $cache_file" >&6;}
2449 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2450 *) . "./$cache_file";;
2454 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2455 $as_echo "$as_me: creating cache $cache_file" >&6;}
2459 gt_needs="$gt_needs "
2460 as_fn_append ac_header_list " sys/time.h"
2461 as_fn_append ac_header_list " unistd.h"
2462 as_fn_append ac_func_list " alarm"
2463 # Check that the precious variables saved in the cache have kept the same
2465 ac_cache_corrupted=false
2466 for ac_var in $ac_precious_vars; do
2467 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2468 eval ac_new_set=\$ac_env_${ac_var}_set
2469 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2470 eval ac_new_val=\$ac_env_${ac_var}_value
2471 case $ac_old_set,$ac_new_set in
2473 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2474 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2475 ac_cache_corrupted=: ;;
2477 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2478 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2479 ac_cache_corrupted=: ;;
2482 if test "x$ac_old_val" != "x$ac_new_val"; then
2483 # differences in whitespace do not lead to failure.
2484 ac_old_val_w=`echo x $ac_old_val`
2485 ac_new_val_w=`echo x $ac_new_val`
2486 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2487 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2488 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2489 ac_cache_corrupted=:
2491 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2492 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2493 eval $ac_var=\$ac_old_val
2495 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2496 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2497 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2498 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2501 # Pass precious variables to config.status.
2502 if test "$ac_new_set" = set; then
2504 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2505 *) ac_arg=$ac_var=$ac_new_val ;;
2507 case " $ac_configure_args " in
2508 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2509 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2513 if $ac_cache_corrupted; then
2514 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2515 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2516 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2517 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2518 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2520 ## -------------------- ##
2521 ## Main body of script. ##
2522 ## -------------------- ##
2525 ac_cpp='$CPP $CPPFLAGS'
2526 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2527 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2528 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2532 # This is a hack. Different versions of install on different systems
2533 # are just too different. Chuck it and use install-sh.
2535 # If the user supplies $INSTALL, figure they know what they're doing.
2537 # With Autoconf 2.5x, this needs to come very early on, but *after*
2538 # the INIT macro. Sigh.
2540 if test "x$INSTALL" = "x"
2542 INSTALL="$srcdir/install-sh -c"
2547 am__api_version='1.11'
2550 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2551 if test -f "$ac_dir/install-sh"; then
2553 ac_install_sh="$ac_aux_dir/install-sh -c"
2555 elif test -f "$ac_dir/install.sh"; then
2557 ac_install_sh="$ac_aux_dir/install.sh -c"
2559 elif test -f "$ac_dir/shtool"; then
2561 ac_install_sh="$ac_aux_dir/shtool install -c"
2565 if test -z "$ac_aux_dir"; then
2566 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2569 # These three variables are undocumented and unsupported,
2570 # and are intended to be withdrawn in a future Autoconf release.
2571 # They can cause serious problems if a builder's source tree is in a directory
2572 # whose full name contains unusual characters.
2573 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2574 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2575 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2578 # Find a good install program. We prefer a C program (faster),
2579 # so one script is as good as another. But avoid the broken or
2580 # incompatible versions:
2581 # SysV /etc/install, /usr/sbin/install
2582 # SunOS /usr/etc/install
2583 # IRIX /sbin/install
2585 # AmigaOS /C/install, which installs bootblocks on floppy discs
2586 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2587 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2588 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2589 # OS/2's system install, which has a completely different semantic
2590 # ./install, which can be erroneously created by make from ./install.sh.
2591 # Reject install programs that cannot install multiple files.
2592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2593 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2594 if test -z "$INSTALL"; then
2595 if ${ac_cv_path_install+:} false; then :
2596 $as_echo_n "(cached) " >&6
2598 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2602 test -z "$as_dir" && as_dir=.
2603 # Account for people who put trailing slashes in PATH elements.
2604 case $as_dir/ in #((
2605 ./ | .// | /[cC]/* | \
2606 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2607 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2610 # OSF1 and SCO ODT 3.0 have their own names for install.
2611 # Don't use installbsd from OSF since it installs stuff as root
2613 for ac_prog in ginstall scoinst install; do
2614 for ac_exec_ext in '' $ac_executable_extensions; do
2615 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2616 if test $ac_prog = install &&
2617 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2618 # AIX install. It has an incompatible calling convention.
2620 elif test $ac_prog = install &&
2621 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2622 # program-specific install script used by HP pwplus--don't use.
2625 rm -rf conftest.one conftest.two conftest.dir
2626 echo one > conftest.one
2627 echo two > conftest.two
2629 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2630 test -s conftest.one && test -s conftest.two &&
2631 test -s conftest.dir/conftest.one &&
2632 test -s conftest.dir/conftest.two
2634 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2647 rm -rf conftest.one conftest.two conftest.dir
2650 if test "${ac_cv_path_install+set}" = set; then
2651 INSTALL=$ac_cv_path_install
2653 # As a last resort, use the slow shell script. Don't cache a
2654 # value for INSTALL within a source directory, because that will
2655 # break other packages using the cache if that directory is
2656 # removed, or if the value is a relative name.
2657 INSTALL=$ac_install_sh
2660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2661 $as_echo "$INSTALL" >&6; }
2663 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2664 # It thinks the first close brace ends the variable substitution.
2665 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2667 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2669 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2672 $as_echo_n "checking whether build environment is sane... " >&6; }
2675 echo timestamp > conftest.file
2676 # Reject unsafe characters in $srcdir or the absolute working directory
2677 # name. Accept space and tab only in the latter.
2681 *[\\\"\#\$\&\'\`$am_lf]*)
2682 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2685 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2686 as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2689 # Do `set' in a subshell so we don't clobber the current shell's
2690 # arguments. Must try -L first in case configure is actually a
2691 # symlink; some systems play weird games with the mod time of symlinks
2692 # (eg FreeBSD returns the mod time of the symlink's containing
2695 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2696 if test "$*" = "X"; then
2698 set X `ls -t "$srcdir/configure" conftest.file`
2701 if test "$*" != "X $srcdir/configure conftest.file" \
2702 && test "$*" != "X conftest.file $srcdir/configure"; then
2704 # If neither matched, then we have a broken ls. This can happen
2705 # if, for instance, CONFIG_SHELL is bash and it inherits a
2706 # broken ls alias from the environment. This has actually
2707 # happened. Such a system could not be considered "sane".
2708 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2709 alias in your environment" "$LINENO" 5
2712 test "$2" = conftest.file
2718 as_fn_error $? "newly created file is older than distributed files!
2719 Check your system clock" "$LINENO" 5
2721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2722 $as_echo "yes" >&6; }
2723 test "$program_prefix" != NONE &&
2724 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2725 # Use a double $ so make ignores it.
2726 test "$program_suffix" != NONE &&
2727 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2728 # Double any \ or $.
2729 # By default was `s,x,x', remove it if useless.
2730 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2731 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2733 # expand $ac_aux_dir to an absolute path
2734 am_aux_dir=`cd $ac_aux_dir && pwd`
2736 if test x"${MISSING+set}" != xset; then
2739 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2741 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2744 # Use eval to expand $SHELL
2745 if eval "$MISSING --run true"; then
2746 am_missing_run="$MISSING --run "
2749 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2750 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2753 if test x"${install_sh}" != xset; then
2756 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2758 install_sh="\${SHELL} $am_aux_dir/install-sh"
2762 # Installed binaries are usually stripped using `strip' when the user
2763 # run `make install-strip'. However `strip' might not be the right
2764 # tool to use in cross-compilation environments, therefore Automake
2765 # will honor the `STRIP' environment variable to overrule this program.
2766 if test "$cross_compiling" != no; then
2767 if test -n "$ac_tool_prefix"; then
2768 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2769 set dummy ${ac_tool_prefix}strip; ac_word=$2
2770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2771 $as_echo_n "checking for $ac_word... " >&6; }
2772 if ${ac_cv_prog_STRIP+:} false; then :
2773 $as_echo_n "(cached) " >&6
2775 if test -n "$STRIP"; then
2776 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2778 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2782 test -z "$as_dir" && as_dir=.
2783 for ac_exec_ext in '' $ac_executable_extensions; do
2784 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2785 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2786 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2795 STRIP=$ac_cv_prog_STRIP
2796 if test -n "$STRIP"; then
2797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2798 $as_echo "$STRIP" >&6; }
2800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2801 $as_echo "no" >&6; }
2806 if test -z "$ac_cv_prog_STRIP"; then
2808 # Extract the first word of "strip", so it can be a program name with args.
2809 set dummy strip; ac_word=$2
2810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2811 $as_echo_n "checking for $ac_word... " >&6; }
2812 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2813 $as_echo_n "(cached) " >&6
2815 if test -n "$ac_ct_STRIP"; then
2816 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2818 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2822 test -z "$as_dir" && as_dir=.
2823 for ac_exec_ext in '' $ac_executable_extensions; do
2824 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2825 ac_cv_prog_ac_ct_STRIP="strip"
2826 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2835 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2836 if test -n "$ac_ct_STRIP"; then
2837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2838 $as_echo "$ac_ct_STRIP" >&6; }
2840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2841 $as_echo "no" >&6; }
2844 if test "x$ac_ct_STRIP" = x; then
2847 case $cross_compiling:$ac_tool_warned in
2849 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2850 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2851 ac_tool_warned=yes ;;
2856 STRIP="$ac_cv_prog_STRIP"
2860 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2863 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2864 if test -z "$MKDIR_P"; then
2865 if ${ac_cv_path_mkdir+:} false; then :
2866 $as_echo_n "(cached) " >&6
2868 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2869 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2872 test -z "$as_dir" && as_dir=.
2873 for ac_prog in mkdir gmkdir; do
2874 for ac_exec_ext in '' $ac_executable_extensions; do
2875 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2876 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2877 'mkdir (GNU coreutils) '* | \
2878 'mkdir (coreutils) '* | \
2879 'mkdir (fileutils) '4.1*)
2880 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2890 test -d ./--version && rmdir ./--version
2891 if test "${ac_cv_path_mkdir+set}" = set; then
2892 MKDIR_P="$ac_cv_path_mkdir -p"
2894 # As a last resort, use the slow shell script. Don't cache a
2895 # value for MKDIR_P within a source directory, because that will
2896 # break other packages using the cache if that directory is
2897 # removed, or if the value is a relative name.
2898 MKDIR_P="$ac_install_sh -d"
2901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2902 $as_echo "$MKDIR_P" >&6; }
2906 [\\/$]* | ?:[\\/]*) ;;
2907 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2910 for ac_prog in gawk mawk nawk awk
2912 # Extract the first word of "$ac_prog", so it can be a program name with args.
2913 set dummy $ac_prog; ac_word=$2
2914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2915 $as_echo_n "checking for $ac_word... " >&6; }
2916 if ${ac_cv_prog_AWK+:} false; then :
2917 $as_echo_n "(cached) " >&6
2919 if test -n "$AWK"; then
2920 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2922 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2926 test -z "$as_dir" && as_dir=.
2927 for ac_exec_ext in '' $ac_executable_extensions; do
2928 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2929 ac_cv_prog_AWK="$ac_prog"
2930 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2940 if test -n "$AWK"; then
2941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2942 $as_echo "$AWK" >&6; }
2944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2945 $as_echo "no" >&6; }
2949 test -n "$AWK" && break
2952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2953 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2955 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2956 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2957 $as_echo_n "(cached) " >&6
2959 cat >conftest.make <<\_ACEOF
2962 @echo '@@@%%%=$(MAKE)=@@@%%%'
2964 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2965 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2967 eval ac_cv_prog_make_${ac_make}_set=yes;;
2969 eval ac_cv_prog_make_${ac_make}_set=no;;
2973 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2975 $as_echo "yes" >&6; }
2978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2979 $as_echo "no" >&6; }
2980 SET_MAKE="MAKE=${MAKE-make}"
2983 rm -rf .tst 2>/dev/null
2984 mkdir .tst 2>/dev/null
2985 if test -d .tst; then
2990 rmdir .tst 2>/dev/null
2992 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2993 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2994 # is not polluted with repeated "-I."
2995 am__isrc=' -I$(srcdir)'
2996 # test to see if srcdir already configured
2997 if test -f $srcdir/config.status; then
2998 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3002 # test whether we have cygpath
3003 if test -z "$CYGPATH_W"; then
3004 if (cygpath --version) >/dev/null 2>/dev/null; then
3005 CYGPATH_W='cygpath -w'
3012 # Define the identity of the package.
3017 cat >>confdefs.h <<_ACEOF
3018 #define PACKAGE "$PACKAGE"
3022 cat >>confdefs.h <<_ACEOF
3023 #define VERSION "$VERSION"
3026 # Some tools Automake needs.
3028 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3031 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3034 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3037 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3040 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3042 # We need awk for the "check" target. The system "awk" is bad on
3044 # Always define AMTAR for backward compatibility.
3046 AMTAR=${AMTAR-"${am_missing_run}tar"}
3048 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3058 # Check whether --with-whiny-user-strftime was given.
3059 if test "${with_whiny_user_strftime+set}" = set; then :
3060 withval=$with_whiny_user_strftime; if test "$withval" = yes
3063 $as_echo "#define USE_INCLUDED_STRFTIME 1" >>confdefs.h
3069 # Check whether --enable-lint was given.
3070 if test "${enable_lint+set}" = set; then :
3071 enableval=$enable_lint; if test "$enableval" = no
3074 $as_echo "#define NO_LINT 1" >>confdefs.h
3081 DEPDIR="${am__leading_dot}deps"
3083 ac_config_commands="$ac_config_commands depfiles"
3086 am_make=${MAKE-make}
3087 cat > confinc << 'END'
3089 @echo this is the am__doit target
3092 # If we don't find an include directive, just comment out the code.
3093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3094 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3098 # First try GNU make style include.
3099 echo "include confinc" > confmf
3100 # Ignore all kinds of additional output from `make'.
3101 case `$am_make -s -f confmf 2> /dev/null` in #(
3102 *the\ am__doit\ target*)
3108 # Now try BSD make style include.
3109 if test "$am__include" = "#"; then
3110 echo '.include "confinc"' > confmf
3111 case `$am_make -s -f confmf 2> /dev/null` in #(
3112 *the\ am__doit\ target*)
3113 am__include=.include
3121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3122 $as_echo "$_am_result" >&6; }
3123 rm -f confinc confmf
3125 # Check whether --enable-dependency-tracking was given.
3126 if test "${enable_dependency_tracking+set}" = set; then :
3127 enableval=$enable_dependency_tracking;
3130 if test "x$enable_dependency_tracking" != xno; then
3131 am_depcomp="$ac_aux_dir/depcomp"
3134 if test "x$enable_dependency_tracking" != xno; then
3144 ac_cpp='$CPP $CPPFLAGS'
3145 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3146 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3147 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3148 if test -n "$ac_tool_prefix"; then
3149 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3150 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3152 $as_echo_n "checking for $ac_word... " >&6; }
3153 if ${ac_cv_prog_CC+:} false; then :
3154 $as_echo_n "(cached) " >&6
3156 if test -n "$CC"; then
3157 ac_cv_prog_CC="$CC" # Let the user override the test.
3159 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3163 test -z "$as_dir" && as_dir=.
3164 for ac_exec_ext in '' $ac_executable_extensions; do
3165 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3166 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3167 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3177 if test -n "$CC"; then
3178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3179 $as_echo "$CC" >&6; }
3181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3182 $as_echo "no" >&6; }
3187 if test -z "$ac_cv_prog_CC"; then
3189 # Extract the first word of "gcc", so it can be a program name with args.
3190 set dummy gcc; ac_word=$2
3191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3192 $as_echo_n "checking for $ac_word... " >&6; }
3193 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3194 $as_echo_n "(cached) " >&6
3196 if test -n "$ac_ct_CC"; then
3197 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3199 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3203 test -z "$as_dir" && as_dir=.
3204 for ac_exec_ext in '' $ac_executable_extensions; do
3205 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3206 ac_cv_prog_ac_ct_CC="gcc"
3207 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3216 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3217 if test -n "$ac_ct_CC"; then
3218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3219 $as_echo "$ac_ct_CC" >&6; }
3221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3222 $as_echo "no" >&6; }
3225 if test "x$ac_ct_CC" = x; then
3228 case $cross_compiling:$ac_tool_warned in
3230 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3231 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3232 ac_tool_warned=yes ;;
3240 if test -z "$CC"; then
3241 if test -n "$ac_tool_prefix"; then
3242 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3243 set dummy ${ac_tool_prefix}cc; ac_word=$2
3244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3245 $as_echo_n "checking for $ac_word... " >&6; }
3246 if ${ac_cv_prog_CC+:} false; then :
3247 $as_echo_n "(cached) " >&6
3249 if test -n "$CC"; then
3250 ac_cv_prog_CC="$CC" # Let the user override the test.
3252 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3256 test -z "$as_dir" && as_dir=.
3257 for ac_exec_ext in '' $ac_executable_extensions; do
3258 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3259 ac_cv_prog_CC="${ac_tool_prefix}cc"
3260 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3270 if test -n "$CC"; then
3271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3272 $as_echo "$CC" >&6; }
3274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3275 $as_echo "no" >&6; }
3281 if test -z "$CC"; then
3282 # Extract the first word of "cc", so it can be a program name with args.
3283 set dummy cc; ac_word=$2
3284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3285 $as_echo_n "checking for $ac_word... " >&6; }
3286 if ${ac_cv_prog_CC+:} false; then :
3287 $as_echo_n "(cached) " >&6
3289 if test -n "$CC"; then
3290 ac_cv_prog_CC="$CC" # Let the user override the test.
3293 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3297 test -z "$as_dir" && as_dir=.
3298 for ac_exec_ext in '' $ac_executable_extensions; do
3299 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3300 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3301 ac_prog_rejected=yes
3305 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3312 if test $ac_prog_rejected = yes; then
3313 # We found a bogon in the path, so make sure we never use it.
3314 set dummy $ac_cv_prog_CC
3316 if test $# != 0; then
3317 # We chose a different compiler from the bogus one.
3318 # However, it has the same basename, so the bogon will be chosen
3319 # first if we set CC to just the basename; use the full file name.
3321 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3327 if test -n "$CC"; then
3328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3329 $as_echo "$CC" >&6; }
3331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3332 $as_echo "no" >&6; }
3337 if test -z "$CC"; then
3338 if test -n "$ac_tool_prefix"; then
3339 for ac_prog in cl.exe
3341 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3342 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3344 $as_echo_n "checking for $ac_word... " >&6; }
3345 if ${ac_cv_prog_CC+:} false; then :
3346 $as_echo_n "(cached) " >&6
3348 if test -n "$CC"; then
3349 ac_cv_prog_CC="$CC" # Let the user override the test.
3351 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3355 test -z "$as_dir" && as_dir=.
3356 for ac_exec_ext in '' $ac_executable_extensions; do
3357 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3358 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3359 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3369 if test -n "$CC"; then
3370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3371 $as_echo "$CC" >&6; }
3373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3374 $as_echo "no" >&6; }
3378 test -n "$CC" && break
3381 if test -z "$CC"; then
3383 for ac_prog in cl.exe
3385 # Extract the first word of "$ac_prog", so it can be a program name with args.
3386 set dummy $ac_prog; ac_word=$2
3387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3388 $as_echo_n "checking for $ac_word... " >&6; }
3389 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3390 $as_echo_n "(cached) " >&6
3392 if test -n "$ac_ct_CC"; then
3393 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3395 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3399 test -z "$as_dir" && as_dir=.
3400 for ac_exec_ext in '' $ac_executable_extensions; do
3401 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3402 ac_cv_prog_ac_ct_CC="$ac_prog"
3403 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3412 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3413 if test -n "$ac_ct_CC"; then
3414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3415 $as_echo "$ac_ct_CC" >&6; }
3417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3418 $as_echo "no" >&6; }
3422 test -n "$ac_ct_CC" && break
3425 if test "x$ac_ct_CC" = x; then
3428 case $cross_compiling:$ac_tool_warned in
3430 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3431 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3432 ac_tool_warned=yes ;;
3441 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3442 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3443 as_fn_error $? "no acceptable C compiler found in \$PATH
3444 See \`config.log' for more details" "$LINENO" 5; }
3446 # Provide some information about the compiler.
3447 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3450 for ac_option in --version -v -V -qversion; do
3451 { { ac_try="$ac_compiler $ac_option >&5"
3453 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3454 *) ac_try_echo=$ac_try;;
3456 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3457 $as_echo "$ac_try_echo"; } >&5
3458 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3460 if test -s conftest.err; then
3462 ... rest of stderr output deleted ...
3463 10q' conftest.err >conftest.er1
3464 cat conftest.er1 >&5
3466 rm -f conftest.er1 conftest.err
3467 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3468 test $ac_status = 0; }
3471 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3472 /* end confdefs.h. */
3482 ac_clean_files_save=$ac_clean_files
3483 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3484 # Try to create an executable without -o first, disregard a.out.
3485 # It will help us diagnose broken compilers, and finding out an intuition
3487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3488 $as_echo_n "checking whether the C compiler works... " >&6; }
3489 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3491 # The possible output files:
3492 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3495 for ac_file in $ac_files
3498 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3499 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3504 if { { ac_try="$ac_link_default"
3506 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3507 *) ac_try_echo=$ac_try;;
3509 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3510 $as_echo "$ac_try_echo"; } >&5
3511 (eval "$ac_link_default") 2>&5
3513 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3514 test $ac_status = 0; }; then :
3515 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3516 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3517 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3518 # so that the user can short-circuit this test for compilers unknown to
3520 for ac_file in $ac_files ''
3522 test -f "$ac_file" || continue
3524 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3527 # We found the default executable, but exeext='' is most
3531 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3533 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3535 # We set ac_cv_exeext here because the later test for it is not
3536 # safe: cross compilers may not add the suffix if given an `-o'
3537 # argument, so we may need to know it at that point already.
3538 # Even if this section looks crufty: it has the advantage of
3545 test "$ac_cv_exeext" = no && ac_cv_exeext=
3550 if test -z "$ac_file"; then :
3551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3552 $as_echo "no" >&6; }
3553 $as_echo "$as_me: failed program was:" >&5
3554 sed 's/^/| /' conftest.$ac_ext >&5
3556 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3557 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3558 as_fn_error 77 "C compiler cannot create executables
3559 See \`config.log' for more details" "$LINENO" 5; }
3561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3562 $as_echo "yes" >&6; }
3564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3565 $as_echo_n "checking for C compiler default output file name... " >&6; }
3566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3567 $as_echo "$ac_file" >&6; }
3568 ac_exeext=$ac_cv_exeext
3570 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3571 ac_clean_files=$ac_clean_files_save
3572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3573 $as_echo_n "checking for suffix of executables... " >&6; }
3574 if { { ac_try="$ac_link"
3576 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3577 *) ac_try_echo=$ac_try;;
3579 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3580 $as_echo "$ac_try_echo"; } >&5
3581 (eval "$ac_link") 2>&5
3583 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3584 test $ac_status = 0; }; then :
3585 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3586 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3587 # work properly (i.e., refer to `conftest.exe'), while it won't with
3589 for ac_file in conftest.exe conftest conftest.*; do
3590 test -f "$ac_file" || continue
3592 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3593 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3599 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3600 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3601 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3602 See \`config.log' for more details" "$LINENO" 5; }
3604 rm -f conftest conftest$ac_cv_exeext
3605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3606 $as_echo "$ac_cv_exeext" >&6; }
3608 rm -f conftest.$ac_ext
3609 EXEEXT=$ac_cv_exeext
3611 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3612 /* end confdefs.h. */
3617 FILE *f = fopen ("conftest.out", "w");
3618 return ferror (f) || fclose (f) != 0;
3624 ac_clean_files="$ac_clean_files conftest.out"
3625 # Check that the compiler produces executables we can run. If not, either
3626 # the compiler is broken, or we cross compile.
3627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3628 $as_echo_n "checking whether we are cross compiling... " >&6; }
3629 if test "$cross_compiling" != yes; then
3630 { { ac_try="$ac_link"
3632 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3633 *) ac_try_echo=$ac_try;;
3635 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3636 $as_echo "$ac_try_echo"; } >&5
3637 (eval "$ac_link") 2>&5
3639 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3640 test $ac_status = 0; }
3641 if { ac_try='./conftest$ac_cv_exeext'
3642 { { case "(($ac_try" in
3643 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3644 *) ac_try_echo=$ac_try;;
3646 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3647 $as_echo "$ac_try_echo"; } >&5
3648 (eval "$ac_try") 2>&5
3650 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3651 test $ac_status = 0; }; }; then
3654 if test "$cross_compiling" = maybe; then
3657 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3658 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3659 as_fn_error $? "cannot run C compiled programs.
3660 If you meant to cross compile, use \`--host'.
3661 See \`config.log' for more details" "$LINENO" 5; }
3665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3666 $as_echo "$cross_compiling" >&6; }
3668 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3669 ac_clean_files=$ac_clean_files_save
3670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3671 $as_echo_n "checking for suffix of object files... " >&6; }
3672 if ${ac_cv_objext+:} false; then :
3673 $as_echo_n "(cached) " >&6
3675 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3676 /* end confdefs.h. */
3686 rm -f conftest.o conftest.obj
3687 if { { ac_try="$ac_compile"
3689 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3690 *) ac_try_echo=$ac_try;;
3692 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3693 $as_echo "$ac_try_echo"; } >&5
3694 (eval "$ac_compile") 2>&5
3696 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3697 test $ac_status = 0; }; then :
3698 for ac_file in conftest.o conftest.obj conftest.*; do
3699 test -f "$ac_file" || continue;
3701 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3702 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3707 $as_echo "$as_me: failed program was:" >&5
3708 sed 's/^/| /' conftest.$ac_ext >&5
3710 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3711 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3712 as_fn_error $? "cannot compute suffix of object files: cannot compile
3713 See \`config.log' for more details" "$LINENO" 5; }
3715 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3718 $as_echo "$ac_cv_objext" >&6; }
3719 OBJEXT=$ac_cv_objext
3721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3722 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3723 if ${ac_cv_c_compiler_gnu+:} false; then :
3724 $as_echo_n "(cached) " >&6
3726 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3727 /* end confdefs.h. */
3740 if ac_fn_c_try_compile "$LINENO"; then :
3745 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3746 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3750 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3751 if test $ac_compiler_gnu = yes; then
3756 ac_test_CFLAGS=${CFLAGS+set}
3757 ac_save_CFLAGS=$CFLAGS
3758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3759 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3760 if ${ac_cv_prog_cc_g+:} false; then :
3761 $as_echo_n "(cached) " >&6
3763 ac_save_c_werror_flag=$ac_c_werror_flag
3764 ac_c_werror_flag=yes
3767 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3768 /* end confdefs.h. */
3778 if ac_fn_c_try_compile "$LINENO"; then :
3782 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3783 /* end confdefs.h. */
3793 if ac_fn_c_try_compile "$LINENO"; then :
3796 ac_c_werror_flag=$ac_save_c_werror_flag
3798 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3799 /* end confdefs.h. */
3809 if ac_fn_c_try_compile "$LINENO"; then :
3812 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3814 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3816 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3817 ac_c_werror_flag=$ac_save_c_werror_flag
3819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3820 $as_echo "$ac_cv_prog_cc_g" >&6; }
3821 if test "$ac_test_CFLAGS" = set; then
3822 CFLAGS=$ac_save_CFLAGS
3823 elif test $ac_cv_prog_cc_g = yes; then
3824 if test "$GCC" = yes; then
3830 if test "$GCC" = yes; then
3836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3837 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3838 if ${ac_cv_prog_cc_c89+:} false; then :
3839 $as_echo_n "(cached) " >&6
3841 ac_cv_prog_cc_c89=no
3843 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3844 /* end confdefs.h. */
3847 #include <sys/types.h>
3848 #include <sys/stat.h>
3849 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3850 struct buf { int x; };
3851 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3852 static char *e (p, i)
3858 static char *f (char * (*g) (char **, int), char **p, ...)
3863 s = g (p, va_arg (v,int));
3868 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3869 function prototypes and stuff, but not '\xHH' hex character constants.
3870 These don't provoke an error unfortunately, instead are silently treated
3871 as 'x'. The following induces an error, until -std is added to get
3872 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3873 array size at least. It's necessary to write '\x00'==0 to get something
3874 that's true only with -std. */
3875 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3877 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3878 inside strings and character constants. */
3880 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3882 int test (int i, double x);
3883 struct s1 {int (*f) (int a);};
3884 struct s2 {int (*f) (double a);};
3885 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3891 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3896 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3897 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3899 CC="$ac_save_CC $ac_arg"
3900 if ac_fn_c_try_compile "$LINENO"; then :
3901 ac_cv_prog_cc_c89=$ac_arg
3903 rm -f core conftest.err conftest.$ac_objext
3904 test "x$ac_cv_prog_cc_c89" != "xno" && break
3906 rm -f conftest.$ac_ext
3911 case "x$ac_cv_prog_cc_c89" in
3913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3914 $as_echo "none needed" >&6; } ;;
3916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3917 $as_echo "unsupported" >&6; } ;;
3919 CC="$CC $ac_cv_prog_cc_c89"
3920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3921 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3923 if test "x$ac_cv_prog_cc_c89" != xno; then :
3928 ac_cpp='$CPP $CPPFLAGS'
3929 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3930 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3931 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3933 depcc="$CC" am_compiler_list=
3935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3936 $as_echo_n "checking dependency style of $depcc... " >&6; }
3937 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3938 $as_echo_n "(cached) " >&6
3940 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3941 # We make a subdir and do the tests there. Otherwise we can end up
3942 # making bogus files that we don't know about and never remove. For
3943 # instance it was reported that on HP-UX the gcc test will end up
3944 # making a dummy file named `D' -- because `-MD' means `put the output
3947 # Copy depcomp to subdir because otherwise we won't find it if we're
3948 # using a relative directory.
3949 cp "$am_depcomp" conftest.dir
3951 # We will build objects and dependencies in a subdirectory because
3952 # it helps to detect inapplicable dependency modes. For instance
3953 # both Tru64's cc and ICC support -MD to output dependencies as a
3954 # side effect of compilation, but ICC will put the dependencies in
3955 # the current directory while Tru64 will put them in the object
3959 am_cv_CC_dependencies_compiler_type=none
3960 if test "$am_compiler_list" = ""; then
3961 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3964 case " $depcc " in #(
3965 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3968 for depmode in $am_compiler_list; do
3969 # Setup a source with many dependencies, because some compilers
3970 # like to wrap large dependency lists on column 80 (with \), and
3971 # we should not choose a depcomp mode which is confused by this.
3973 # We need to recreate these files for each test, as the compiler may
3974 # overwrite some of them when testing with obscure command lines.
3975 # This happens at least with the AIX C compiler.
3977 for i in 1 2 3 4 5 6; do
3978 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3979 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3980 # Solaris 8's {/usr,}/bin/sh.
3981 touch sub/conftst$i.h
3983 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3985 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3986 # mode. It turns out that the SunPro C++ compiler does not properly
3987 # handle `-M -o', and we need to detect this. Also, some Intel
3988 # versions had trouble with output in subdirs
3989 am__obj=sub/conftest.${OBJEXT-o}
3990 am__minus_obj="-o $am__obj"
3993 # This depmode causes a compiler race in universal mode.
3994 test "$am__universal" = false || continue
3997 # after this tag, mechanisms are not by side-effect, so they'll
3998 # only be used when explicitly requested
3999 if test "x$enable_dependency_tracking" = xyes; then
4005 msvisualcpp | msvcmsys)
4006 # This compiler won't grok `-c -o', but also, the minuso test has
4007 # not run yet. These depmodes are late enough in the game, and
4008 # so weak that their functioning should not be impacted.
4009 am__obj=conftest.${OBJEXT-o}
4014 if depmode=$depmode \
4015 source=sub/conftest.c object=$am__obj \
4016 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4017 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4018 >/dev/null 2>conftest.err &&
4019 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4020 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4021 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4022 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4023 # icc doesn't choke on unknown options, it will just issue warnings
4024 # or remarks (even with -Werror). So we grep stderr for any message
4025 # that says an option was ignored or not supported.
4026 # When given -MP, icc 7.0 and 7.1 complain thusly:
4027 # icc: Command line warning: ignoring option '-M'; no argument required
4028 # The diagnosis changed in icc 8.0:
4029 # icc: Command line remark: option '-MP' not supported
4030 if (grep 'ignoring option' conftest.err ||
4031 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4032 am_cv_CC_dependencies_compiler_type=$depmode
4041 am_cv_CC_dependencies_compiler_type=none
4045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4046 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4047 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4050 test "x$enable_dependency_tracking" != xno \
4051 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4053 am__fastdepCC_FALSE='#'
4055 am__fastdepCC_TRUE='#'
4056 am__fastdepCC_FALSE=
4062 ac_cpp='$CPP $CPPFLAGS'
4063 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4064 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4065 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4067 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4068 # On Suns, sometimes $CPP names a directory.
4069 if test -n "$CPP" && test -d "$CPP"; then
4072 if test -z "$CPP"; then
4073 if ${ac_cv_prog_CPP+:} false; then :
4074 $as_echo_n "(cached) " >&6
4076 # Double quotes because CPP needs to be expanded
4077 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4080 for ac_c_preproc_warn_flag in '' yes
4082 # Use a header file that comes with gcc, so configuring glibc
4083 # with a fresh cross-compiler works.
4084 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4085 # <limits.h> exists even on freestanding compilers.
4086 # On the NeXT, cc -E runs the code through the compiler's parser,
4087 # not just through cpp. "Syntax error" is here to catch this case.
4088 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4089 /* end confdefs.h. */
4091 # include <limits.h>
4093 # include <assert.h>
4097 if ac_fn_c_try_cpp "$LINENO"; then :
4100 # Broken: fails on valid input.
4103 rm -f conftest.err conftest.i conftest.$ac_ext
4105 # OK, works on sane cases. Now check whether nonexistent headers
4106 # can be detected and how.
4107 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4108 /* end confdefs.h. */
4109 #include <ac_nonexistent.h>
4111 if ac_fn_c_try_cpp "$LINENO"; then :
4112 # Broken: success on invalid input.
4115 # Passes both tests.
4119 rm -f conftest.err conftest.i conftest.$ac_ext
4122 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4123 rm -f conftest.i conftest.err conftest.$ac_ext
4124 if $ac_preproc_ok; then :
4136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4137 $as_echo "$CPP" >&6; }
4139 for ac_c_preproc_warn_flag in '' yes
4141 # Use a header file that comes with gcc, so configuring glibc
4142 # with a fresh cross-compiler works.
4143 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4144 # <limits.h> exists even on freestanding compilers.
4145 # On the NeXT, cc -E runs the code through the compiler's parser,
4146 # not just through cpp. "Syntax error" is here to catch this case.
4147 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4148 /* end confdefs.h. */
4150 # include <limits.h>
4152 # include <assert.h>
4156 if ac_fn_c_try_cpp "$LINENO"; then :
4159 # Broken: fails on valid input.
4162 rm -f conftest.err conftest.i conftest.$ac_ext
4164 # OK, works on sane cases. Now check whether nonexistent headers
4165 # can be detected and how.
4166 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4167 /* end confdefs.h. */
4168 #include <ac_nonexistent.h>
4170 if ac_fn_c_try_cpp "$LINENO"; then :
4171 # Broken: success on invalid input.
4174 # Passes both tests.
4178 rm -f conftest.err conftest.i conftest.$ac_ext
4181 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4182 rm -f conftest.i conftest.err conftest.$ac_ext
4183 if $ac_preproc_ok; then :
4186 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4187 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4188 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4189 See \`config.log' for more details" "$LINENO" 5; }
4193 ac_cpp='$CPP $CPPFLAGS'
4194 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4195 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4196 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4200 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4201 if ${ac_cv_path_GREP+:} false; then :
4202 $as_echo_n "(cached) " >&6
4204 if test -z "$GREP"; then
4205 ac_path_GREP_found=false
4206 # Loop through the user's path and test for each of PROGNAME-LIST
4207 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4208 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4211 test -z "$as_dir" && as_dir=.
4212 for ac_prog in grep ggrep; do
4213 for ac_exec_ext in '' $ac_executable_extensions; do
4214 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4215 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4216 # Check for GNU ac_path_GREP and select it if it is found.
4217 # Check for GNU $ac_path_GREP
4218 case `"$ac_path_GREP" --version 2>&1` in
4220 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4223 $as_echo_n 0123456789 >"conftest.in"
4226 cat "conftest.in" "conftest.in" >"conftest.tmp"
4227 mv "conftest.tmp" "conftest.in"
4228 cp "conftest.in" "conftest.nl"
4229 $as_echo 'GREP' >> "conftest.nl"
4230 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4231 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4232 as_fn_arith $ac_count + 1 && ac_count=$as_val
4233 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4234 # Best one so far, save it but keep looking for a better one
4235 ac_cv_path_GREP="$ac_path_GREP"
4236 ac_path_GREP_max=$ac_count
4238 # 10*(2^10) chars as input seems more than enough
4239 test $ac_count -gt 10 && break
4241 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4244 $ac_path_GREP_found && break 3
4249 if test -z "$ac_cv_path_GREP"; then
4250 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4253 ac_cv_path_GREP=$GREP
4257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4258 $as_echo "$ac_cv_path_GREP" >&6; }
4259 GREP="$ac_cv_path_GREP"
4262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4263 $as_echo_n "checking for egrep... " >&6; }
4264 if ${ac_cv_path_EGREP+:} false; then :
4265 $as_echo_n "(cached) " >&6
4267 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4268 then ac_cv_path_EGREP="$GREP -E"
4270 if test -z "$EGREP"; then
4271 ac_path_EGREP_found=false
4272 # Loop through the user's path and test for each of PROGNAME-LIST
4273 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4274 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4277 test -z "$as_dir" && as_dir=.
4278 for ac_prog in egrep; do
4279 for ac_exec_ext in '' $ac_executable_extensions; do
4280 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4281 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4282 # Check for GNU ac_path_EGREP and select it if it is found.
4283 # Check for GNU $ac_path_EGREP
4284 case `"$ac_path_EGREP" --version 2>&1` in
4286 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4289 $as_echo_n 0123456789 >"conftest.in"
4292 cat "conftest.in" "conftest.in" >"conftest.tmp"
4293 mv "conftest.tmp" "conftest.in"
4294 cp "conftest.in" "conftest.nl"
4295 $as_echo 'EGREP' >> "conftest.nl"
4296 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4297 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4298 as_fn_arith $ac_count + 1 && ac_count=$as_val
4299 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4300 # Best one so far, save it but keep looking for a better one
4301 ac_cv_path_EGREP="$ac_path_EGREP"
4302 ac_path_EGREP_max=$ac_count
4304 # 10*(2^10) chars as input seems more than enough
4305 test $ac_count -gt 10 && break
4307 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4310 $ac_path_EGREP_found && break 3
4315 if test -z "$ac_cv_path_EGREP"; then
4316 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4319 ac_cv_path_EGREP=$EGREP
4324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4325 $as_echo "$ac_cv_path_EGREP" >&6; }
4326 EGREP="$ac_cv_path_EGREP"
4329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4330 $as_echo_n "checking for ANSI C header files... " >&6; }
4331 if ${ac_cv_header_stdc+:} false; then :
4332 $as_echo_n "(cached) " >&6
4334 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4335 /* end confdefs.h. */
4349 if ac_fn_c_try_compile "$LINENO"; then :
4350 ac_cv_header_stdc=yes
4352 ac_cv_header_stdc=no
4354 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4356 if test $ac_cv_header_stdc = yes; then
4357 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4358 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4359 /* end confdefs.h. */
4363 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4364 $EGREP "memchr" >/dev/null 2>&1; then :
4367 ac_cv_header_stdc=no
4373 if test $ac_cv_header_stdc = yes; then
4374 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4375 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4376 /* end confdefs.h. */
4380 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4381 $EGREP "free" >/dev/null 2>&1; then :
4384 ac_cv_header_stdc=no
4390 if test $ac_cv_header_stdc = yes; then
4391 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4392 if test "$cross_compiling" = yes; then :
4395 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4396 /* end confdefs.h. */
4399 #if ((' ' & 0x0FF) == 0x020)
4400 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4401 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4403 # define ISLOWER(c) \
4404 (('a' <= (c) && (c) <= 'i') \
4405 || ('j' <= (c) && (c) <= 'r') \
4406 || ('s' <= (c) && (c) <= 'z'))
4407 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4410 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4415 for (i = 0; i < 256; i++)
4416 if (XOR (islower (i), ISLOWER (i))
4417 || toupper (i) != TOUPPER (i))
4422 if ac_fn_c_try_run "$LINENO"; then :
4425 ac_cv_header_stdc=no
4427 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4428 conftest.$ac_objext conftest.beam conftest.$ac_ext
4433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4434 $as_echo "$ac_cv_header_stdc" >&6; }
4435 if test $ac_cv_header_stdc = yes; then
4437 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4441 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4442 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4443 inttypes.h stdint.h unistd.h
4445 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4446 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4448 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4449 cat >>confdefs.h <<_ACEOF
4450 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4459 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4460 if test "x$ac_cv_header_minix_config_h" = xyes; then :
4467 if test "$MINIX" = yes; then
4469 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4472 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4475 $as_echo "#define _MINIX 1" >>confdefs.h
4480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4481 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4482 if ${ac_cv_safe_to_define___extensions__+:} false; then :
4483 $as_echo_n "(cached) " >&6
4485 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4486 /* end confdefs.h. */
4488 # define __EXTENSIONS__ 1
4489 $ac_includes_default
4498 if ac_fn_c_try_compile "$LINENO"; then :
4499 ac_cv_safe_to_define___extensions__=yes
4501 ac_cv_safe_to_define___extensions__=no
4503 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4506 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4507 test $ac_cv_safe_to_define___extensions__ = yes &&
4508 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4510 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4512 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4514 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4516 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4521 $as_echo_n "checking for egrep... " >&6; }
4522 if ${ac_cv_path_EGREP+:} false; then :
4523 $as_echo_n "(cached) " >&6
4525 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4526 then ac_cv_path_EGREP="$GREP -E"
4528 if test -z "$EGREP"; then
4529 ac_path_EGREP_found=false
4530 # Loop through the user's path and test for each of PROGNAME-LIST
4531 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4532 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4535 test -z "$as_dir" && as_dir=.
4536 for ac_prog in egrep; do
4537 for ac_exec_ext in '' $ac_executable_extensions; do
4538 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4539 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4540 # Check for GNU ac_path_EGREP and select it if it is found.
4541 # Check for GNU $ac_path_EGREP
4542 case `"$ac_path_EGREP" --version 2>&1` in
4544 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4547 $as_echo_n 0123456789 >"conftest.in"
4550 cat "conftest.in" "conftest.in" >"conftest.tmp"
4551 mv "conftest.tmp" "conftest.in"
4552 cp "conftest.in" "conftest.nl"
4553 $as_echo 'EGREP' >> "conftest.nl"
4554 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4555 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4556 as_fn_arith $ac_count + 1 && ac_count=$as_val
4557 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4558 # Best one so far, save it but keep looking for a better one
4559 ac_cv_path_EGREP="$ac_path_EGREP"
4560 ac_path_EGREP_max=$ac_count
4562 # 10*(2^10) chars as input seems more than enough
4563 test $ac_count -gt 10 && break
4565 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4568 $ac_path_EGREP_found && break 3
4573 if test -z "$ac_cv_path_EGREP"; then
4574 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4577 ac_cv_path_EGREP=$EGREP
4582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4583 $as_echo "$ac_cv_path_EGREP" >&6; }
4584 EGREP="$ac_cv_path_EGREP"
4587 for ac_prog in 'bison -y' byacc
4589 # Extract the first word of "$ac_prog", so it can be a program name with args.
4590 set dummy $ac_prog; ac_word=$2
4591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4592 $as_echo_n "checking for $ac_word... " >&6; }
4593 if ${ac_cv_prog_YACC+:} false; then :
4594 $as_echo_n "(cached) " >&6
4596 if test -n "$YACC"; then
4597 ac_cv_prog_YACC="$YACC" # Let the user override the test.
4599 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4603 test -z "$as_dir" && as_dir=.
4604 for ac_exec_ext in '' $ac_executable_extensions; do
4605 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4606 ac_cv_prog_YACC="$ac_prog"
4607 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4616 YACC=$ac_cv_prog_YACC
4617 if test -n "$YACC"; then
4618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
4619 $as_echo "$YACC" >&6; }
4621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4622 $as_echo "no" >&6; }
4626 test -n "$YACC" && break
4628 test -n "$YACC" || YACC="yacc"
4630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4631 $as_echo_n "checking whether ln -s works... " >&6; }
4633 if test "$LN_S" = "ln -s"; then
4634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4635 $as_echo "yes" >&6; }
4637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4638 $as_echo "no, using $LN_S" >&6; }
4642 ac_cpp='$CPP $CPPFLAGS'
4643 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4644 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4645 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4646 if test -n "$ac_tool_prefix"; then
4647 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4648 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4650 $as_echo_n "checking for $ac_word... " >&6; }
4651 if ${ac_cv_prog_CC+:} false; then :
4652 $as_echo_n "(cached) " >&6
4654 if test -n "$CC"; then
4655 ac_cv_prog_CC="$CC" # Let the user override the test.
4657 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4661 test -z "$as_dir" && as_dir=.
4662 for ac_exec_ext in '' $ac_executable_extensions; do
4663 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4664 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4665 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4675 if test -n "$CC"; then
4676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4677 $as_echo "$CC" >&6; }
4679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4680 $as_echo "no" >&6; }
4685 if test -z "$ac_cv_prog_CC"; then
4687 # Extract the first word of "gcc", so it can be a program name with args.
4688 set dummy gcc; ac_word=$2
4689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4690 $as_echo_n "checking for $ac_word... " >&6; }
4691 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4692 $as_echo_n "(cached) " >&6
4694 if test -n "$ac_ct_CC"; then
4695 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4697 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4701 test -z "$as_dir" && as_dir=.
4702 for ac_exec_ext in '' $ac_executable_extensions; do
4703 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4704 ac_cv_prog_ac_ct_CC="gcc"
4705 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4714 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4715 if test -n "$ac_ct_CC"; then
4716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4717 $as_echo "$ac_ct_CC" >&6; }
4719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4720 $as_echo "no" >&6; }
4723 if test "x$ac_ct_CC" = x; then
4726 case $cross_compiling:$ac_tool_warned in
4728 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4729 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4730 ac_tool_warned=yes ;;
4738 if test -z "$CC"; then
4739 if test -n "$ac_tool_prefix"; then
4740 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4741 set dummy ${ac_tool_prefix}cc; ac_word=$2
4742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4743 $as_echo_n "checking for $ac_word... " >&6; }
4744 if ${ac_cv_prog_CC+:} false; then :
4745 $as_echo_n "(cached) " >&6
4747 if test -n "$CC"; then
4748 ac_cv_prog_CC="$CC" # Let the user override the test.
4750 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4754 test -z "$as_dir" && as_dir=.
4755 for ac_exec_ext in '' $ac_executable_extensions; do
4756 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4757 ac_cv_prog_CC="${ac_tool_prefix}cc"
4758 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4768 if test -n "$CC"; then
4769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4770 $as_echo "$CC" >&6; }
4772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4773 $as_echo "no" >&6; }
4779 if test -z "$CC"; then
4780 # Extract the first word of "cc", so it can be a program name with args.
4781 set dummy cc; ac_word=$2
4782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4783 $as_echo_n "checking for $ac_word... " >&6; }
4784 if ${ac_cv_prog_CC+:} false; then :
4785 $as_echo_n "(cached) " >&6
4787 if test -n "$CC"; then
4788 ac_cv_prog_CC="$CC" # Let the user override the test.
4791 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4795 test -z "$as_dir" && as_dir=.
4796 for ac_exec_ext in '' $ac_executable_extensions; do
4797 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4798 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4799 ac_prog_rejected=yes
4803 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4810 if test $ac_prog_rejected = yes; then
4811 # We found a bogon in the path, so make sure we never use it.
4812 set dummy $ac_cv_prog_CC
4814 if test $# != 0; then
4815 # We chose a different compiler from the bogus one.
4816 # However, it has the same basename, so the bogon will be chosen
4817 # first if we set CC to just the basename; use the full file name.
4819 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4825 if test -n "$CC"; then
4826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4827 $as_echo "$CC" >&6; }
4829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4830 $as_echo "no" >&6; }
4835 if test -z "$CC"; then
4836 if test -n "$ac_tool_prefix"; then
4837 for ac_prog in cl.exe
4839 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4840 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4842 $as_echo_n "checking for $ac_word... " >&6; }
4843 if ${ac_cv_prog_CC+:} false; then :
4844 $as_echo_n "(cached) " >&6
4846 if test -n "$CC"; then
4847 ac_cv_prog_CC="$CC" # Let the user override the test.
4849 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4853 test -z "$as_dir" && as_dir=.
4854 for ac_exec_ext in '' $ac_executable_extensions; do
4855 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4856 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4857 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4867 if test -n "$CC"; then
4868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4869 $as_echo "$CC" >&6; }
4871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4872 $as_echo "no" >&6; }
4876 test -n "$CC" && break
4879 if test -z "$CC"; then
4881 for ac_prog in cl.exe
4883 # Extract the first word of "$ac_prog", so it can be a program name with args.
4884 set dummy $ac_prog; ac_word=$2
4885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4886 $as_echo_n "checking for $ac_word... " >&6; }
4887 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4888 $as_echo_n "(cached) " >&6
4890 if test -n "$ac_ct_CC"; then
4891 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4893 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4897 test -z "$as_dir" && as_dir=.
4898 for ac_exec_ext in '' $ac_executable_extensions; do
4899 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4900 ac_cv_prog_ac_ct_CC="$ac_prog"
4901 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4910 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4911 if test -n "$ac_ct_CC"; then
4912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4913 $as_echo "$ac_ct_CC" >&6; }
4915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4916 $as_echo "no" >&6; }
4920 test -n "$ac_ct_CC" && break
4923 if test "x$ac_ct_CC" = x; then
4926 case $cross_compiling:$ac_tool_warned in
4928 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4929 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4930 ac_tool_warned=yes ;;
4939 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4940 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4941 as_fn_error $? "no acceptable C compiler found in \$PATH
4942 See \`config.log' for more details" "$LINENO" 5; }
4944 # Provide some information about the compiler.
4945 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4948 for ac_option in --version -v -V -qversion; do
4949 { { ac_try="$ac_compiler $ac_option >&5"
4951 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4952 *) ac_try_echo=$ac_try;;
4954 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4955 $as_echo "$ac_try_echo"; } >&5
4956 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4958 if test -s conftest.err; then
4960 ... rest of stderr output deleted ...
4961 10q' conftest.err >conftest.er1
4962 cat conftest.er1 >&5
4964 rm -f conftest.er1 conftest.err
4965 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4966 test $ac_status = 0; }
4969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4970 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4971 if ${ac_cv_c_compiler_gnu+:} false; then :
4972 $as_echo_n "(cached) " >&6
4974 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4975 /* end confdefs.h. */
4988 if ac_fn_c_try_compile "$LINENO"; then :
4993 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4994 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4998 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4999 if test $ac_compiler_gnu = yes; then
5004 ac_test_CFLAGS=${CFLAGS+set}
5005 ac_save_CFLAGS=$CFLAGS
5006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5007 $as_echo_n "checking whether $CC accepts -g... " >&6; }
5008 if ${ac_cv_prog_cc_g+:} false; then :
5009 $as_echo_n "(cached) " >&6
5011 ac_save_c_werror_flag=$ac_c_werror_flag
5012 ac_c_werror_flag=yes
5015 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5016 /* end confdefs.h. */
5026 if ac_fn_c_try_compile "$LINENO"; then :
5030 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5031 /* end confdefs.h. */
5041 if ac_fn_c_try_compile "$LINENO"; then :
5044 ac_c_werror_flag=$ac_save_c_werror_flag
5046 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5047 /* end confdefs.h. */
5057 if ac_fn_c_try_compile "$LINENO"; then :
5060 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5062 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5064 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5065 ac_c_werror_flag=$ac_save_c_werror_flag
5067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5068 $as_echo "$ac_cv_prog_cc_g" >&6; }
5069 if test "$ac_test_CFLAGS" = set; then
5070 CFLAGS=$ac_save_CFLAGS
5071 elif test $ac_cv_prog_cc_g = yes; then
5072 if test "$GCC" = yes; then
5078 if test "$GCC" = yes; then
5084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
5085 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5086 if ${ac_cv_prog_cc_c89+:} false; then :
5087 $as_echo_n "(cached) " >&6
5089 ac_cv_prog_cc_c89=no
5091 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5092 /* end confdefs.h. */
5095 #include <sys/types.h>
5096 #include <sys/stat.h>
5097 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5098 struct buf { int x; };
5099 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5100 static char *e (p, i)
5106 static char *f (char * (*g) (char **, int), char **p, ...)
5111 s = g (p, va_arg (v,int));
5116 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5117 function prototypes and stuff, but not '\xHH' hex character constants.
5118 These don't provoke an error unfortunately, instead are silently treated
5119 as 'x'. The following induces an error, until -std is added to get
5120 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5121 array size at least. It's necessary to write '\x00'==0 to get something
5122 that's true only with -std. */
5123 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5125 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5126 inside strings and character constants. */
5128 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5130 int test (int i, double x);
5131 struct s1 {int (*f) (int a);};
5132 struct s2 {int (*f) (double a);};
5133 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5139 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5144 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5145 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5147 CC="$ac_save_CC $ac_arg"
5148 if ac_fn_c_try_compile "$LINENO"; then :
5149 ac_cv_prog_cc_c89=$ac_arg
5151 rm -f core conftest.err conftest.$ac_objext
5152 test "x$ac_cv_prog_cc_c89" != "xno" && break
5154 rm -f conftest.$ac_ext
5159 case "x$ac_cv_prog_cc_c89" in
5161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5162 $as_echo "none needed" >&6; } ;;
5164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5165 $as_echo "unsupported" >&6; } ;;
5167 CC="$CC $ac_cv_prog_cc_c89"
5168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5169 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5171 if test "x$ac_cv_prog_cc_c89" != xno; then :
5176 ac_cpp='$CPP $CPPFLAGS'
5177 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5178 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5179 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5181 depcc="$CC" am_compiler_list=
5183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5184 $as_echo_n "checking dependency style of $depcc... " >&6; }
5185 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
5186 $as_echo_n "(cached) " >&6
5188 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5189 # We make a subdir and do the tests there. Otherwise we can end up
5190 # making bogus files that we don't know about and never remove. For
5191 # instance it was reported that on HP-UX the gcc test will end up
5192 # making a dummy file named `D' -- because `-MD' means `put the output
5195 # Copy depcomp to subdir because otherwise we won't find it if we're
5196 # using a relative directory.
5197 cp "$am_depcomp" conftest.dir
5199 # We will build objects and dependencies in a subdirectory because
5200 # it helps to detect inapplicable dependency modes. For instance
5201 # both Tru64's cc and ICC support -MD to output dependencies as a
5202 # side effect of compilation, but ICC will put the dependencies in
5203 # the current directory while Tru64 will put them in the object
5207 am_cv_CC_dependencies_compiler_type=none
5208 if test "$am_compiler_list" = ""; then
5209 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5212 case " $depcc " in #(
5213 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5216 for depmode in $am_compiler_list; do
5217 # Setup a source with many dependencies, because some compilers
5218 # like to wrap large dependency lists on column 80 (with \), and
5219 # we should not choose a depcomp mode which is confused by this.
5221 # We need to recreate these files for each test, as the compiler may
5222 # overwrite some of them when testing with obscure command lines.
5223 # This happens at least with the AIX C compiler.
5225 for i in 1 2 3 4 5 6; do
5226 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5227 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5228 # Solaris 8's {/usr,}/bin/sh.
5229 touch sub/conftst$i.h
5231 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5233 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5234 # mode. It turns out that the SunPro C++ compiler does not properly
5235 # handle `-M -o', and we need to detect this. Also, some Intel
5236 # versions had trouble with output in subdirs
5237 am__obj=sub/conftest.${OBJEXT-o}
5238 am__minus_obj="-o $am__obj"
5241 # This depmode causes a compiler race in universal mode.
5242 test "$am__universal" = false || continue
5245 # after this tag, mechanisms are not by side-effect, so they'll
5246 # only be used when explicitly requested
5247 if test "x$enable_dependency_tracking" = xyes; then
5253 msvisualcpp | msvcmsys)
5254 # This compiler won't grok `-c -o', but also, the minuso test has
5255 # not run yet. These depmodes are late enough in the game, and
5256 # so weak that their functioning should not be impacted.
5257 am__obj=conftest.${OBJEXT-o}
5262 if depmode=$depmode \
5263 source=sub/conftest.c object=$am__obj \
5264 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5265 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5266 >/dev/null 2>conftest.err &&
5267 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5268 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5269 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5270 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5271 # icc doesn't choke on unknown options, it will just issue warnings
5272 # or remarks (even with -Werror). So we grep stderr for any message
5273 # that says an option was ignored or not supported.
5274 # When given -MP, icc 7.0 and 7.1 complain thusly:
5275 # icc: Command line warning: ignoring option '-M'; no argument required
5276 # The diagnosis changed in icc 8.0:
5277 # icc: Command line remark: option '-MP' not supported
5278 if (grep 'ignoring option' conftest.err ||
5279 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5280 am_cv_CC_dependencies_compiler_type=$depmode
5289 am_cv_CC_dependencies_compiler_type=none
5293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5294 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5295 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5298 test "x$enable_dependency_tracking" != xno \
5299 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5301 am__fastdepCC_FALSE='#'
5303 am__fastdepCC_TRUE='#'
5304 am__fastdepCC_FALSE=
5309 ac_cpp='$CPP $CPPFLAGS'
5310 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5311 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5312 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5314 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5315 # On Suns, sometimes $CPP names a directory.
5316 if test -n "$CPP" && test -d "$CPP"; then
5319 if test -z "$CPP"; then
5320 if ${ac_cv_prog_CPP+:} false; then :
5321 $as_echo_n "(cached) " >&6
5323 # Double quotes because CPP needs to be expanded
5324 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5327 for ac_c_preproc_warn_flag in '' yes
5329 # Use a header file that comes with gcc, so configuring glibc
5330 # with a fresh cross-compiler works.
5331 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5332 # <limits.h> exists even on freestanding compilers.
5333 # On the NeXT, cc -E runs the code through the compiler's parser,
5334 # not just through cpp. "Syntax error" is here to catch this case.
5335 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5336 /* end confdefs.h. */
5338 # include <limits.h>
5340 # include <assert.h>
5344 if ac_fn_c_try_cpp "$LINENO"; then :
5347 # Broken: fails on valid input.
5350 rm -f conftest.err conftest.i conftest.$ac_ext
5352 # OK, works on sane cases. Now check whether nonexistent headers
5353 # can be detected and how.
5354 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5355 /* end confdefs.h. */
5356 #include <ac_nonexistent.h>
5358 if ac_fn_c_try_cpp "$LINENO"; then :
5359 # Broken: success on invalid input.
5362 # Passes both tests.
5366 rm -f conftest.err conftest.i conftest.$ac_ext
5369 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5370 rm -f conftest.i conftest.err conftest.$ac_ext
5371 if $ac_preproc_ok; then :
5383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5384 $as_echo "$CPP" >&6; }
5386 for ac_c_preproc_warn_flag in '' yes
5388 # Use a header file that comes with gcc, so configuring glibc
5389 # with a fresh cross-compiler works.
5390 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5391 # <limits.h> exists even on freestanding compilers.
5392 # On the NeXT, cc -E runs the code through the compiler's parser,
5393 # not just through cpp. "Syntax error" is here to catch this case.
5394 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5395 /* end confdefs.h. */
5397 # include <limits.h>
5399 # include <assert.h>
5403 if ac_fn_c_try_cpp "$LINENO"; then :
5406 # Broken: fails on valid input.
5409 rm -f conftest.err conftest.i conftest.$ac_ext
5411 # OK, works on sane cases. Now check whether nonexistent headers
5412 # can be detected and how.
5413 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5414 /* end confdefs.h. */
5415 #include <ac_nonexistent.h>
5417 if ac_fn_c_try_cpp "$LINENO"; then :
5418 # Broken: success on invalid input.
5421 # Passes both tests.
5425 rm -f conftest.err conftest.i conftest.$ac_ext
5428 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5429 rm -f conftest.i conftest.err conftest.$ac_ext
5430 if $ac_preproc_ok; then :
5433 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5434 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5435 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
5436 See \`config.log' for more details" "$LINENO" 5; }
5440 ac_cpp='$CPP $CPPFLAGS'
5441 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5442 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5443 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
5451 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
5453 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
5454 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
5455 $as_echo_n "(cached) " >&6
5457 cat >conftest.make <<\_ACEOF
5460 @echo '@@@%%%=$(MAKE)=@@@%%%'
5462 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
5463 case `${MAKE-make} -f conftest.make 2>/dev/null` in
5465 eval ac_cv_prog_make_${ac_make}_set=yes;;
5467 eval ac_cv_prog_make_${ac_make}_set=no;;
5471 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
5472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5473 $as_echo "yes" >&6; }
5476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5477 $as_echo "no" >&6; }
5478 SET_MAKE="MAKE=${MAKE-make}"
5482 # This is mainly for my use during testing and development.
5483 # Yes, it's a bit of a hack.
5484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special development options" >&5
5485 $as_echo_n "checking for special development options... " >&6; }
5486 if test -f $srcdir/.developing
5488 # add other debug flags as appropriate, save GAWKDEBUG for emergencies
5489 CFLAGS="$CFLAGS -DARRAYDEBUG -DYYDEBUG"
5490 if grep dbug $srcdir/.developing
5492 CFLAGS="$CFLAGS -DDBUG"
5493 LIBS="$LIBS dbug/libdbug.a"
5495 # turn on compiler warnings if we're doing development
5496 # enable debugging using macros also
5497 if test "$GCC" = yes
5499 CFLAGS="$CFLAGS -Wall -fno-builtin -g3 -gdwarf-2"
5501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5502 $as_echo "yes" >&6; }
5504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5505 $as_echo "no" >&6; }
5511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for z/OS USS compilation" >&5
5512 $as_echo_n "checking for z/OS USS compilation... " >&6; }
5513 if test "OS/390" = "`uname`"
5515 CFLAGS="$CFLAGS -D_ALL_SOURCE -DZOS_USS -DUSE_EBCDIC"
5516 # Must rebuild awkgram.c and command.c from Bison for EBCDIC
5517 rm -f awkgram.c command.c
5522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_cv_zos_uss}" >&5
5523 $as_echo "${ac_cv_zos_uss}" >&6; }
5526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strerror in -lcposix" >&5
5527 $as_echo_n "checking for strerror in -lcposix... " >&6; }
5528 if ${ac_cv_lib_cposix_strerror+:} false; then :
5529 $as_echo_n "(cached) " >&6
5531 ac_check_lib_save_LIBS=$LIBS
5532 LIBS="-lcposix $LIBS"
5533 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5534 /* end confdefs.h. */
5536 /* Override any GCC internal prototype to avoid an error.
5537 Use char because int might match the return type of a GCC
5538 builtin and then its argument prototype would still apply. */
5551 if ac_fn_c_try_link "$LINENO"; then :
5552 ac_cv_lib_cposix_strerror=yes
5554 ac_cv_lib_cposix_strerror=no
5556 rm -f core conftest.err conftest.$ac_objext \
5557 conftest$ac_exeext conftest.$ac_ext
5558 LIBS=$ac_check_lib_save_LIBS
5560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cposix_strerror" >&5
5561 $as_echo "$ac_cv_lib_cposix_strerror" >&6; }
5562 if test "x$ac_cv_lib_cposix_strerror" = xyes; then :
5563 LIBS="$LIBS -lcposix"
5568 # Check whether --enable-largefile was given.
5569 if test "${enable_largefile+set}" = set; then :
5570 enableval=$enable_largefile;
5573 if test "$enable_largefile" != no; then
5575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
5576 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
5577 if ${ac_cv_sys_largefile_CC+:} false; then :
5578 $as_echo_n "(cached) " >&6
5580 ac_cv_sys_largefile_CC=no
5581 if test "$GCC" != yes; then
5584 # IRIX 6.2 and later do not support large files by default,
5585 # so use the C compiler's -n32 option if that helps.
5586 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5587 /* end confdefs.h. */
5588 #include <sys/types.h>
5589 /* Check that off_t can represent 2**63 - 1 correctly.
5590 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5591 since some C++ compilers masquerading as C compilers
5592 incorrectly reject 9223372036854775807. */
5593 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5594 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5595 && LARGE_OFF_T % 2147483647 == 1)
5605 if ac_fn_c_try_compile "$LINENO"; then :
5608 rm -f core conftest.err conftest.$ac_objext
5610 if ac_fn_c_try_compile "$LINENO"; then :
5611 ac_cv_sys_largefile_CC=' -n32'; break
5613 rm -f core conftest.err conftest.$ac_objext
5617 rm -f conftest.$ac_ext
5620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
5621 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
5622 if test "$ac_cv_sys_largefile_CC" != no; then
5623 CC=$CC$ac_cv_sys_largefile_CC
5626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5627 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
5628 if ${ac_cv_sys_file_offset_bits+:} false; then :
5629 $as_echo_n "(cached) " >&6
5632 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5633 /* end confdefs.h. */
5634 #include <sys/types.h>
5635 /* Check that off_t can represent 2**63 - 1 correctly.
5636 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5637 since some C++ compilers masquerading as C compilers
5638 incorrectly reject 9223372036854775807. */
5639 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5640 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5641 && LARGE_OFF_T % 2147483647 == 1)
5651 if ac_fn_c_try_compile "$LINENO"; then :
5652 ac_cv_sys_file_offset_bits=no; break
5654 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5655 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5656 /* end confdefs.h. */
5657 #define _FILE_OFFSET_BITS 64
5658 #include <sys/types.h>
5659 /* Check that off_t can represent 2**63 - 1 correctly.
5660 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5661 since some C++ compilers masquerading as C compilers
5662 incorrectly reject 9223372036854775807. */
5663 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5664 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5665 && LARGE_OFF_T % 2147483647 == 1)
5675 if ac_fn_c_try_compile "$LINENO"; then :
5676 ac_cv_sys_file_offset_bits=64; break
5678 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5679 ac_cv_sys_file_offset_bits=unknown
5683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
5684 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
5685 case $ac_cv_sys_file_offset_bits in #(
5688 cat >>confdefs.h <<_ACEOF
5689 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5694 if test $ac_cv_sys_file_offset_bits = unknown; then
5695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
5696 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
5697 if ${ac_cv_sys_large_files+:} false; then :
5698 $as_echo_n "(cached) " >&6
5701 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5702 /* end confdefs.h. */
5703 #include <sys/types.h>
5704 /* Check that off_t can represent 2**63 - 1 correctly.
5705 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5706 since some C++ compilers masquerading as C compilers
5707 incorrectly reject 9223372036854775807. */
5708 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5709 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5710 && LARGE_OFF_T % 2147483647 == 1)
5720 if ac_fn_c_try_compile "$LINENO"; then :
5721 ac_cv_sys_large_files=no; break
5723 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5724 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5725 /* end confdefs.h. */
5726 #define _LARGE_FILES 1
5727 #include <sys/types.h>
5728 /* Check that off_t can represent 2**63 - 1 correctly.
5729 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5730 since some C++ compilers masquerading as C compilers
5731 incorrectly reject 9223372036854775807. */
5732 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5733 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5734 && LARGE_OFF_T % 2147483647 == 1)
5744 if ac_fn_c_try_compile "$LINENO"; then :
5745 ac_cv_sys_large_files=1; break
5747 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5748 ac_cv_sys_large_files=unknown
5752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
5753 $as_echo "$ac_cv_sys_large_files" >&6; }
5754 case $ac_cv_sys_large_files in #(
5757 cat >>confdefs.h <<_ACEOF
5758 #define _LARGE_FILES $ac_cv_sys_large_files
5767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AIX compilation hacks" >&5
5768 $as_echo_n "checking for AIX compilation hacks... " >&6; }
5769 if ${gawk_cv_aix_hack+:} false; then :
5770 $as_echo_n "(cached) " >&6
5775 CFLAGS="$CFLAGS -D_XOPEN_SOURCE_EXTENDED=1 -DGAWK_AIX=1"
5776 gawk_cv_aix_hack=yes
5782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${gawk_cv_aix_hack}" >&5
5783 $as_echo "${gawk_cv_aix_hack}" >&6; }
5786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Linux/Alpha compilation hacks" >&5
5787 $as_echo_n "checking for Linux/Alpha compilation hacks... " >&6; }
5788 if ${gawk_cv_linux_alpha_hack+:} false; then :
5789 $as_echo_n "(cached) " >&6
5792 if test "Linux" = "`uname`" && test "alpha" = "`uname -m`"
5794 # this isn't necessarily always true,
5795 # the vendor's compiler is also often found
5796 if test "$GCC" = yes
5798 CFLAGS="$CFLAGS -mieee"
5799 gawk_cv_linux_alpha_hack=yes
5801 gawk_cv_linux_alpha_hack=no
5804 gawk_cv_linux_alpha_hack=no
5808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${gawk_cv_linux_alpha_hack}" >&5
5809 $as_echo "${gawk_cv_linux_alpha_hack}" >&6; }
5812 if test "$ISC" = 1 # will be set by test for ISC
5814 CFLAGS="$CFLAGS -D_SYSV3"
5818 ac_cpp='$CPP $CPPFLAGS'
5819 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5820 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5821 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5824 case `(uname) 2> /dev/null` in
5826 with_libiconv_prefix=no
5827 with_libintl_prefix=no
5834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
5835 $as_echo_n "checking whether NLS is requested... " >&6; }
5836 # Check whether --enable-nls was given.
5837 if test "${enable_nls+set}" = set; then :
5838 enableval=$enable_nls; USE_NLS=$enableval
5843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
5844 $as_echo "$USE_NLS" >&6; }
5849 GETTEXT_MACRO_VERSION=0.18
5854 # Prepare PATH_SEPARATOR.
5855 # The user is always right.
5856 if test "${PATH_SEPARATOR+set}" != set; then
5857 echo "#! /bin/sh" >conf$$.sh
5858 echo "exit 0" >>conf$$.sh
5860 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5868 # Find out how to test for executable files. Don't use a zero-byte file,
5869 # as systems may use methods other than mode bits to determine executability.
5870 cat >conf$$.file <<_ASEOF
5874 chmod +x conf$$.file
5875 if test -x conf$$.file >/dev/null 2>&1; then
5876 ac_executable_p="test -x"
5878 ac_executable_p="test -f"
5882 # Extract the first word of "msgfmt", so it can be a program name with args.
5883 set dummy msgfmt; ac_word=$2
5884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5885 $as_echo_n "checking for $ac_word... " >&6; }
5886 if ${ac_cv_path_MSGFMT+:} false; then :
5887 $as_echo_n "(cached) " >&6
5891 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
5894 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
5895 for ac_dir in $PATH; do
5897 test -z "$ac_dir" && ac_dir=.
5898 for ac_exec_ext in '' $ac_executable_extensions; do
5899 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
5900 echo "$as_me: trying $ac_dir/$ac_word..." >&5
5901 if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
5902 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
5903 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
5910 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
5914 MSGFMT="$ac_cv_path_MSGFMT"
5915 if test "$MSGFMT" != ":"; then
5916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
5917 $as_echo "$MSGFMT" >&6; }
5919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5920 $as_echo "no" >&6; }
5923 # Extract the first word of "gmsgfmt", so it can be a program name with args.
5924 set dummy gmsgfmt; ac_word=$2
5925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5926 $as_echo_n "checking for $ac_word... " >&6; }
5927 if ${ac_cv_path_GMSGFMT+:} false; then :
5928 $as_echo_n "(cached) " >&6
5932 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
5935 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5939 test -z "$as_dir" && as_dir=.
5940 for ac_exec_ext in '' $ac_executable_extensions; do
5941 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5942 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
5943 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5950 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
5954 GMSGFMT=$ac_cv_path_GMSGFMT
5955 if test -n "$GMSGFMT"; then
5956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
5957 $as_echo "$GMSGFMT" >&6; }
5959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5960 $as_echo "no" >&6; }
5965 case `$MSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
5966 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) MSGFMT_015=: ;;
5967 *) MSGFMT_015=$MSGFMT ;;
5970 case `$GMSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
5971 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) GMSGFMT_015=: ;;
5972 *) GMSGFMT_015=$GMSGFMT ;;
5977 # Prepare PATH_SEPARATOR.
5978 # The user is always right.
5979 if test "${PATH_SEPARATOR+set}" != set; then
5980 echo "#! /bin/sh" >conf$$.sh
5981 echo "exit 0" >>conf$$.sh
5983 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5991 # Find out how to test for executable files. Don't use a zero-byte file,
5992 # as systems may use methods other than mode bits to determine executability.
5993 cat >conf$$.file <<_ASEOF
5997 chmod +x conf$$.file
5998 if test -x conf$$.file >/dev/null 2>&1; then
5999 ac_executable_p="test -x"
6001 ac_executable_p="test -f"
6005 # Extract the first word of "xgettext", so it can be a program name with args.
6006 set dummy xgettext; ac_word=$2
6007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6008 $as_echo_n "checking for $ac_word... " >&6; }
6009 if ${ac_cv_path_XGETTEXT+:} false; then :
6010 $as_echo_n "(cached) " >&6
6014 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
6017 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
6018 for ac_dir in $PATH; do
6020 test -z "$ac_dir" && ac_dir=.
6021 for ac_exec_ext in '' $ac_executable_extensions; do
6022 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
6023 echo "$as_me: trying $ac_dir/$ac_word..." >&5
6024 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
6025 (if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
6026 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
6033 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
6037 XGETTEXT="$ac_cv_path_XGETTEXT"
6038 if test "$XGETTEXT" != ":"; then
6039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
6040 $as_echo "$XGETTEXT" >&6; }
6042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6043 $as_echo "no" >&6; }
6048 case `$XGETTEXT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
6049 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) XGETTEXT_015=: ;;
6050 *) XGETTEXT_015=$XGETTEXT ;;
6055 # Prepare PATH_SEPARATOR.
6056 # The user is always right.
6057 if test "${PATH_SEPARATOR+set}" != set; then
6058 echo "#! /bin/sh" >conf$$.sh
6059 echo "exit 0" >>conf$$.sh
6061 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6069 # Find out how to test for executable files. Don't use a zero-byte file,
6070 # as systems may use methods other than mode bits to determine executability.
6071 cat >conf$$.file <<_ASEOF
6075 chmod +x conf$$.file
6076 if test -x conf$$.file >/dev/null 2>&1; then
6077 ac_executable_p="test -x"
6079 ac_executable_p="test -f"
6083 # Extract the first word of "msgmerge", so it can be a program name with args.
6084 set dummy msgmerge; ac_word=$2
6085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6086 $as_echo_n "checking for $ac_word... " >&6; }
6087 if ${ac_cv_path_MSGMERGE+:} false; then :
6088 $as_echo_n "(cached) " >&6
6092 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
6095 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
6096 for ac_dir in $PATH; do
6098 test -z "$ac_dir" && ac_dir=.
6099 for ac_exec_ext in '' $ac_executable_extensions; do
6100 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
6101 echo "$as_me: trying $ac_dir/$ac_word..." >&5
6102 if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
6103 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
6110 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
6114 MSGMERGE="$ac_cv_path_MSGMERGE"
6115 if test "$MSGMERGE" != ":"; then
6116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
6117 $as_echo "$MSGMERGE" >&6; }
6119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6120 $as_echo "no" >&6; }
6124 test -n "$localedir" || localedir='${datadir}/locale'
6127 test -n "${XGETTEXT_EXTRA_OPTIONS+set}" || XGETTEXT_EXTRA_OPTIONS=
6130 ac_config_commands="$ac_config_commands po-directories"
6134 if test "X$prefix" = "XNONE"; then
6135 acl_final_prefix="$ac_default_prefix"
6137 acl_final_prefix="$prefix"
6139 if test "X$exec_prefix" = "XNONE"; then
6140 acl_final_exec_prefix='${prefix}'
6142 acl_final_exec_prefix="$exec_prefix"
6144 acl_save_prefix="$prefix"
6145 prefix="$acl_final_prefix"
6146 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
6147 prefix="$acl_save_prefix"
6149 # Make sure we can run config.sub.
6150 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
6151 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
6153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
6154 $as_echo_n "checking build system type... " >&6; }
6155 if ${ac_cv_build+:} false; then :
6156 $as_echo_n "(cached) " >&6
6158 ac_build_alias=$build_alias
6159 test "x$ac_build_alias" = x &&
6160 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
6161 test "x$ac_build_alias" = x &&
6162 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
6163 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
6164 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
6167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
6168 $as_echo "$ac_cv_build" >&6; }
6169 case $ac_cv_build in
6171 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
6174 ac_save_IFS=$IFS; IFS='-'
6180 # Remember, the first character of IFS is used to create $*,
6181 # except with old shells:
6184 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
6187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
6188 $as_echo_n "checking host system type... " >&6; }
6189 if ${ac_cv_host+:} false; then :
6190 $as_echo_n "(cached) " >&6
6192 if test "x$host_alias" = x; then
6193 ac_cv_host=$ac_cv_build
6195 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
6196 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
6200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
6201 $as_echo "$ac_cv_host" >&6; }
6204 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
6207 ac_save_IFS=$IFS; IFS='-'
6213 # Remember, the first character of IFS is used to create $*,
6214 # except with old shells:
6217 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
6221 # Check whether --with-gnu-ld was given.
6222 if test "${with_gnu_ld+set}" = set; then :
6223 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
6228 # Prepare PATH_SEPARATOR.
6229 # The user is always right.
6230 if test "${PATH_SEPARATOR+set}" != set; then
6231 echo "#! /bin/sh" >conf$$.sh
6232 echo "exit 0" >>conf$$.sh
6234 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6242 if test "$GCC" = yes; then
6243 # Check if gcc -print-prog-name=ld gives a path.
6244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
6245 $as_echo_n "checking for ld used by GCC... " >&6; }
6248 # gcc leaves a trailing carriage return which upsets mingw
6249 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6251 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6254 # Accept absolute paths.
6255 [\\/]* | [A-Za-z]:[\\/]*)
6256 re_direlt='/[^/][^/]*/\.\./'
6257 # Canonicalize the path of ld
6258 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
6259 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
6260 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
6262 test -z "$LD" && LD="$ac_prog"
6265 # If it fails, then pretend we aren't using GCC.
6269 # If it is relative, then search for the first ld in PATH.
6273 elif test "$with_gnu_ld" = yes; then
6274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
6275 $as_echo_n "checking for GNU ld... " >&6; }
6277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
6278 $as_echo_n "checking for non-GNU ld... " >&6; }
6280 if ${acl_cv_path_LD+:} false; then :
6281 $as_echo_n "(cached) " >&6
6283 if test -z "$LD"; then
6284 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
6285 for ac_dir in $PATH; do
6286 test -z "$ac_dir" && ac_dir=.
6287 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6288 acl_cv_path_LD="$ac_dir/$ac_prog"
6289 # Check to see if the program is GNU ld. I'd rather use --version,
6290 # but apparently some GNU ld's only accept -v.
6291 # Break only if it was the GNU/non-GNU ld that we prefer.
6292 case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
6293 *GNU* | *'with BFD'*)
6294 test "$with_gnu_ld" != no && break ;;
6296 test "$with_gnu_ld" != yes && break ;;
6302 acl_cv_path_LD="$LD" # Let the user override the test with a path.
6306 LD="$acl_cv_path_LD"
6307 if test -n "$LD"; then
6308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
6309 $as_echo "$LD" >&6; }
6311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6312 $as_echo "no" >&6; }
6314 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
6315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
6316 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
6317 if ${acl_cv_prog_gnu_ld+:} false; then :
6318 $as_echo_n "(cached) " >&6
6320 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
6321 case `$LD -v 2>&1 </dev/null` in
6322 *GNU* | *'with BFD'*)
6323 acl_cv_prog_gnu_ld=yes ;;
6325 acl_cv_prog_gnu_ld=no ;;
6328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
6329 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
6330 with_gnu_ld=$acl_cv_prog_gnu_ld
6335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
6336 $as_echo_n "checking for shared library run path origin... " >&6; }
6337 if ${acl_cv_rpath+:} false; then :
6338 $as_echo_n "(cached) " >&6
6341 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
6342 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
6348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
6349 $as_echo "$acl_cv_rpath" >&6; }
6351 acl_libext="$acl_cv_libext"
6352 acl_shlibext="$acl_cv_shlibext"
6353 acl_libname_spec="$acl_cv_libname_spec"
6354 acl_library_names_spec="$acl_cv_library_names_spec"
6355 acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
6356 acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
6357 acl_hardcode_direct="$acl_cv_hardcode_direct"
6358 acl_hardcode_minus_L="$acl_cv_hardcode_minus_L"
6359 # Check whether --enable-rpath was given.
6360 if test "${enable_rpath+set}" = set; then :
6361 enableval=$enable_rpath; :
6373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit host" >&5
6374 $as_echo_n "checking for 64-bit host... " >&6; }
6375 if ${gl_cv_solaris_64bit+:} false; then :
6376 $as_echo_n "(cached) " >&6
6378 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6379 /* end confdefs.h. */
6386 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6387 $EGREP "sixtyfour bits" >/dev/null 2>&1; then :
6388 gl_cv_solaris_64bit=yes
6390 gl_cv_solaris_64bit=no
6396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_solaris_64bit" >&5
6397 $as_echo "$gl_cv_solaris_64bit" >&6; }
6398 if test $gl_cv_solaris_64bit = yes; then
6399 acl_libdirstem=lib/64
6401 sparc*) acl_libdirstem2=lib/sparcv9 ;;
6402 i*86 | x86_64) acl_libdirstem2=lib/amd64 ;;
6407 searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
6408 if test -n "$searchpath"; then
6409 acl_save_IFS="${IFS= }"; IFS=":"
6410 for searchdir in $searchpath; do
6411 if test -d "$searchdir"; then
6412 case "$searchdir" in
6413 */lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
6415 # Better ignore directories of this form. They are misleading.
6417 *) searchdir=`cd "$searchdir" && pwd`
6418 case "$searchdir" in
6419 */lib64 ) acl_libdirstem=lib64 ;;
6428 test -n "$acl_libdirstem2" || acl_libdirstem2="$acl_libdirstem"
6443 acl_save_prefix="$prefix"
6444 prefix="$acl_final_prefix"
6445 acl_save_exec_prefix="$exec_prefix"
6446 exec_prefix="$acl_final_exec_prefix"
6448 eval additional_includedir=\"$includedir\"
6449 eval additional_libdir=\"$libdir\"
6451 exec_prefix="$acl_save_exec_prefix"
6452 prefix="$acl_save_prefix"
6455 # Check whether --with-libiconv-prefix was given.
6456 if test "${with_libiconv_prefix+set}" = set; then :
6457 withval=$with_libiconv_prefix;
6458 if test "X$withval" = "Xno"; then
6461 if test "X$withval" = "X"; then
6463 acl_save_prefix="$prefix"
6464 prefix="$acl_final_prefix"
6465 acl_save_exec_prefix="$exec_prefix"
6466 exec_prefix="$acl_final_exec_prefix"
6468 eval additional_includedir=\"$includedir\"
6469 eval additional_libdir=\"$libdir\"
6471 exec_prefix="$acl_save_exec_prefix"
6472 prefix="$acl_save_prefix"
6475 additional_includedir="$withval/include"
6476 additional_libdir="$withval/$acl_libdirstem"
6477 if test "$acl_libdirstem2" != "$acl_libdirstem" \
6478 && ! test -d "$withval/$acl_libdirstem"; then
6479 additional_libdir="$withval/$acl_libdirstem2"
6493 names_already_handled=
6494 names_next_round='iconv '
6495 while test -n "$names_next_round"; do
6496 names_this_round="$names_next_round"
6498 for name in $names_this_round; do
6500 for n in $names_already_handled; do
6501 if test "$n" = "$name"; then
6506 if test -z "$already_handled"; then
6507 names_already_handled="$names_already_handled $name"
6508 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
6509 eval value=\"\$HAVE_LIB$uppername\"
6510 if test -n "$value"; then
6511 if test "$value" = yes; then
6512 eval value=\"\$LIB$uppername\"
6513 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
6514 eval value=\"\$LTLIB$uppername\"
6515 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
6524 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
6525 if test -n "$acl_shlibext"; then
6526 shrext=".$acl_shlibext" # typically: shrext=.so
6530 if test $use_additional = yes; then
6531 dir="$additional_libdir"
6532 if test -n "$acl_shlibext"; then
6533 if test -f "$dir/$libname$shrext"; then
6535 found_so="$dir/$libname$shrext"
6537 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
6538 ver=`(cd "$dir" && \
6539 for f in "$libname$shrext".*; do echo "$f"; done \
6540 | sed -e "s,^$libname$shrext\\\\.,," \
6541 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
6542 | sed 1q ) 2>/dev/null`
6543 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
6545 found_so="$dir/$libname$shrext.$ver"
6548 eval library_names=\"$acl_library_names_spec\"
6549 for f in $library_names; do
6550 if test -f "$dir/$f"; then
6559 if test "X$found_dir" = "X"; then
6560 if test -f "$dir/$libname.$acl_libext"; then
6562 found_a="$dir/$libname.$acl_libext"
6565 if test "X$found_dir" != "X"; then
6566 if test -f "$dir/$libname.la"; then
6567 found_la="$dir/$libname.la"
6571 if test "X$found_dir" = "X"; then
6572 for x in $LDFLAGS $LTLIBICONV; do
6574 acl_save_prefix="$prefix"
6575 prefix="$acl_final_prefix"
6576 acl_save_exec_prefix="$exec_prefix"
6577 exec_prefix="$acl_final_exec_prefix"
6579 exec_prefix="$acl_save_exec_prefix"
6580 prefix="$acl_save_prefix"
6584 dir=`echo "X$x" | sed -e 's/^X-L//'`
6585 if test -n "$acl_shlibext"; then
6586 if test -f "$dir/$libname$shrext"; then
6588 found_so="$dir/$libname$shrext"
6590 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
6591 ver=`(cd "$dir" && \
6592 for f in "$libname$shrext".*; do echo "$f"; done \
6593 | sed -e "s,^$libname$shrext\\\\.,," \
6594 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
6595 | sed 1q ) 2>/dev/null`
6596 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
6598 found_so="$dir/$libname$shrext.$ver"
6601 eval library_names=\"$acl_library_names_spec\"
6602 for f in $library_names; do
6603 if test -f "$dir/$f"; then
6612 if test "X$found_dir" = "X"; then
6613 if test -f "$dir/$libname.$acl_libext"; then
6615 found_a="$dir/$libname.$acl_libext"
6618 if test "X$found_dir" != "X"; then
6619 if test -f "$dir/$libname.la"; then
6620 found_la="$dir/$libname.la"
6625 if test "X$found_dir" != "X"; then
6630 if test "X$found_dir" != "X"; then
6631 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
6632 if test "X$found_so" != "X"; then
6633 if test "$enable_rpath" = no \
6634 || test "X$found_dir" = "X/usr/$acl_libdirstem" \
6635 || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
6636 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
6639 for x in $ltrpathdirs; do
6640 if test "X$x" = "X$found_dir"; then
6645 if test -z "$haveit"; then
6646 ltrpathdirs="$ltrpathdirs $found_dir"
6648 if test "$acl_hardcode_direct" = yes; then
6649 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
6651 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
6652 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
6654 for x in $rpathdirs; do
6655 if test "X$x" = "X$found_dir"; then
6660 if test -z "$haveit"; then
6661 rpathdirs="$rpathdirs $found_dir"
6665 for x in $LDFLAGS $LIBICONV; do
6667 acl_save_prefix="$prefix"
6668 prefix="$acl_final_prefix"
6669 acl_save_exec_prefix="$exec_prefix"
6670 exec_prefix="$acl_final_exec_prefix"
6672 exec_prefix="$acl_save_exec_prefix"
6673 prefix="$acl_save_prefix"
6675 if test "X$x" = "X-L$found_dir"; then
6680 if test -z "$haveit"; then
6681 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
6683 if test "$acl_hardcode_minus_L" != no; then
6684 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
6686 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
6692 if test "X$found_a" != "X"; then
6693 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
6695 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
6698 additional_includedir=
6699 case "$found_dir" in
6700 */$acl_libdirstem | */$acl_libdirstem/)
6701 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
6702 if test "$name" = 'iconv'; then
6703 LIBICONV_PREFIX="$basedir"
6705 additional_includedir="$basedir/include"
6707 */$acl_libdirstem2 | */$acl_libdirstem2/)
6708 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
6709 if test "$name" = 'iconv'; then
6710 LIBICONV_PREFIX="$basedir"
6712 additional_includedir="$basedir/include"
6715 if test "X$additional_includedir" != "X"; then
6716 if test "X$additional_includedir" != "X/usr/include"; then
6718 if test "X$additional_includedir" = "X/usr/local/include"; then
6719 if test -n "$GCC"; then
6721 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
6725 if test -z "$haveit"; then
6726 for x in $CPPFLAGS $INCICONV; do
6728 acl_save_prefix="$prefix"
6729 prefix="$acl_final_prefix"
6730 acl_save_exec_prefix="$exec_prefix"
6731 exec_prefix="$acl_final_exec_prefix"
6733 exec_prefix="$acl_save_exec_prefix"
6734 prefix="$acl_save_prefix"
6736 if test "X$x" = "X-I$additional_includedir"; then
6741 if test -z "$haveit"; then
6742 if test -d "$additional_includedir"; then
6743 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
6749 if test -n "$found_la"; then
6750 save_libdir="$libdir"
6752 */* | *\\*) . "$found_la" ;;
6753 *) . "./$found_la" ;;
6755 libdir="$save_libdir"
6756 for dep in $dependency_libs; do
6759 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
6760 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
6761 && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
6763 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
6764 || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
6765 if test -n "$GCC"; then
6767 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
6771 if test -z "$haveit"; then
6773 for x in $LDFLAGS $LIBICONV; do
6775 acl_save_prefix="$prefix"
6776 prefix="$acl_final_prefix"
6777 acl_save_exec_prefix="$exec_prefix"
6778 exec_prefix="$acl_final_exec_prefix"
6780 exec_prefix="$acl_save_exec_prefix"
6781 prefix="$acl_save_prefix"
6783 if test "X$x" = "X-L$additional_libdir"; then
6788 if test -z "$haveit"; then
6789 if test -d "$additional_libdir"; then
6790 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
6794 for x in $LDFLAGS $LTLIBICONV; do
6796 acl_save_prefix="$prefix"
6797 prefix="$acl_final_prefix"
6798 acl_save_exec_prefix="$exec_prefix"
6799 exec_prefix="$acl_final_exec_prefix"
6801 exec_prefix="$acl_save_exec_prefix"
6802 prefix="$acl_save_prefix"
6804 if test "X$x" = "X-L$additional_libdir"; then
6809 if test -z "$haveit"; then
6810 if test -d "$additional_libdir"; then
6811 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
6818 dir=`echo "X$dep" | sed -e 's/^X-R//'`
6819 if test "$enable_rpath" != no; then
6821 for x in $rpathdirs; do
6822 if test "X$x" = "X$dir"; then
6827 if test -z "$haveit"; then
6828 rpathdirs="$rpathdirs $dir"
6831 for x in $ltrpathdirs; do
6832 if test "X$x" = "X$dir"; then
6837 if test -z "$haveit"; then
6838 ltrpathdirs="$ltrpathdirs $dir"
6843 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
6846 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
6849 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
6850 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
6856 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
6857 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
6863 if test "X$rpathdirs" != "X"; then
6864 if test -n "$acl_hardcode_libdir_separator"; then
6866 for found_dir in $rpathdirs; do
6867 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
6869 acl_save_libdir="$libdir"
6871 eval flag=\"$acl_hardcode_libdir_flag_spec\"
6872 libdir="$acl_save_libdir"
6873 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
6875 for found_dir in $rpathdirs; do
6876 acl_save_libdir="$libdir"
6878 eval flag=\"$acl_hardcode_libdir_flag_spec\"
6879 libdir="$acl_save_libdir"
6880 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
6884 if test "X$ltrpathdirs" != "X"; then
6885 for found_dir in $ltrpathdirs; do
6886 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
6920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
6921 $as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
6922 if ${gt_cv_func_CFPreferencesCopyAppValue+:} false; then :
6923 $as_echo_n "(cached) " >&6
6925 gt_save_LIBS="$LIBS"
6926 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
6927 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6928 /* end confdefs.h. */
6929 #include <CoreFoundation/CFPreferences.h>
6933 CFPreferencesCopyAppValue(NULL, NULL)
6938 if ac_fn_c_try_link "$LINENO"; then :
6939 gt_cv_func_CFPreferencesCopyAppValue=yes
6941 gt_cv_func_CFPreferencesCopyAppValue=no
6943 rm -f core conftest.err conftest.$ac_objext \
6944 conftest$ac_exeext conftest.$ac_ext
6945 LIBS="$gt_save_LIBS"
6947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
6948 $as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
6949 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
6951 $as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
6954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5
6955 $as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
6956 if ${gt_cv_func_CFLocaleCopyCurrent+:} false; then :
6957 $as_echo_n "(cached) " >&6
6959 gt_save_LIBS="$LIBS"
6960 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
6961 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6962 /* end confdefs.h. */
6963 #include <CoreFoundation/CFLocale.h>
6967 CFLocaleCopyCurrent();
6972 if ac_fn_c_try_link "$LINENO"; then :
6973 gt_cv_func_CFLocaleCopyCurrent=yes
6975 gt_cv_func_CFLocaleCopyCurrent=no
6977 rm -f core conftest.err conftest.$ac_objext \
6978 conftest$ac_exeext conftest.$ac_ext
6979 LIBS="$gt_save_LIBS"
6981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
6982 $as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
6983 if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
6985 $as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h
6989 if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
6990 INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
7002 case " $gt_needs " in
7003 *" need-formatstring-macros "*) gt_api_version=3 ;;
7004 *" need-ngettext "*) gt_api_version=2 ;;
7005 *) gt_api_version=1 ;;
7007 gt_func_gnugettext_libc="gt_cv_func_gnugettext${gt_api_version}_libc"
7008 gt_func_gnugettext_libintl="gt_cv_func_gnugettext${gt_api_version}_libintl"
7010 if test "$USE_NLS" = "yes"; then
7011 gt_use_preinstalled_gnugettext=no
7014 if test $gt_api_version -ge 3; then
7015 gt_revision_test_code='
7016 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
7017 #define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1)
7019 typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1];
7022 gt_revision_test_code=
7024 if test $gt_api_version -ge 2; then
7025 gt_expression_test_code=' + * ngettext ("", "", 0)'
7027 gt_expression_test_code=
7030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
7031 $as_echo_n "checking for GNU gettext in libc... " >&6; }
7032 if eval \${$gt_func_gnugettext_libc+:} false; then :
7033 $as_echo_n "(cached) " >&6
7035 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7036 /* end confdefs.h. */
7037 #include <libintl.h>
7038 $gt_revision_test_code
7039 extern int _nl_msg_cat_cntr;
7040 extern int *_nl_domain_bindings;
7044 bindtextdomain ("", "");
7045 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_domain_bindings
7050 if ac_fn_c_try_link "$LINENO"; then :
7051 eval "$gt_func_gnugettext_libc=yes"
7053 eval "$gt_func_gnugettext_libc=no"
7055 rm -f core conftest.err conftest.$ac_objext \
7056 conftest$ac_exeext conftest.$ac_ext
7058 eval ac_res=\$$gt_func_gnugettext_libc
7059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7060 $as_echo "$ac_res" >&6; }
7062 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then
7068 am_save_CPPFLAGS="$CPPFLAGS"
7070 for element in $INCICONV; do
7072 for x in $CPPFLAGS; do
7074 acl_save_prefix="$prefix"
7075 prefix="$acl_final_prefix"
7076 acl_save_exec_prefix="$exec_prefix"
7077 exec_prefix="$acl_final_exec_prefix"
7079 exec_prefix="$acl_save_exec_prefix"
7080 prefix="$acl_save_prefix"
7082 if test "X$x" = "X$element"; then
7087 if test -z "$haveit"; then
7088 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
7093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
7094 $as_echo_n "checking for iconv... " >&6; }
7095 if ${am_cv_func_iconv+:} false; then :
7096 $as_echo_n "(cached) " >&6
7099 am_cv_func_iconv="no, consider installing GNU libiconv"
7101 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7102 /* end confdefs.h. */
7108 iconv_t cd = iconv_open("","");
7109 iconv(cd,NULL,NULL,NULL,NULL);
7115 if ac_fn_c_try_link "$LINENO"; then :
7116 am_cv_func_iconv=yes
7118 rm -f core conftest.err conftest.$ac_objext \
7119 conftest$ac_exeext conftest.$ac_ext
7120 if test "$am_cv_func_iconv" != yes; then
7121 am_save_LIBS="$LIBS"
7122 LIBS="$LIBS $LIBICONV"
7123 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7124 /* end confdefs.h. */
7130 iconv_t cd = iconv_open("","");
7131 iconv(cd,NULL,NULL,NULL,NULL);
7137 if ac_fn_c_try_link "$LINENO"; then :
7139 am_cv_func_iconv=yes
7141 rm -f core conftest.err conftest.$ac_objext \
7142 conftest$ac_exeext conftest.$ac_ext
7143 LIBS="$am_save_LIBS"
7147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
7148 $as_echo "$am_cv_func_iconv" >&6; }
7149 if test "$am_cv_func_iconv" = yes; then
7150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5
7151 $as_echo_n "checking for working iconv... " >&6; }
7152 if ${am_cv_func_iconv_works+:} false; then :
7153 $as_echo_n "(cached) " >&6
7156 am_save_LIBS="$LIBS"
7157 if test $am_cv_lib_iconv = yes; then
7158 LIBS="$LIBS $LIBICONV"
7160 if test "$cross_compiling" = yes; then :
7162 aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
7163 *) am_cv_func_iconv_works="guessing yes" ;;
7166 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7167 /* end confdefs.h. */
7173 /* Test against AIX 5.1 bug: Failures are not distinguishable from successful
7176 iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
7177 if (cd_utf8_to_88591 != (iconv_t)(-1))
7179 static const char input[] = "\342\202\254"; /* EURO SIGN */
7181 const char *inptr = input;
7182 size_t inbytesleft = strlen (input);
7184 size_t outbytesleft = sizeof (buf);
7185 size_t res = iconv (cd_utf8_to_88591,
7186 (char **) &inptr, &inbytesleft,
7187 &outptr, &outbytesleft);
7192 /* Test against Solaris 10 bug: Failures are not distinguishable from
7193 successful returns. */
7195 iconv_t cd_ascii_to_88591 = iconv_open ("ISO8859-1", "646");
7196 if (cd_ascii_to_88591 != (iconv_t)(-1))
7198 static const char input[] = "\263";
7200 const char *inptr = input;
7201 size_t inbytesleft = strlen (input);
7203 size_t outbytesleft = sizeof (buf);
7204 size_t res = iconv (cd_ascii_to_88591,
7205 (char **) &inptr, &inbytesleft,
7206 &outptr, &outbytesleft);
7211 #if 0 /* This bug could be worked around by the caller. */
7212 /* Test against HP-UX 11.11 bug: Positive return value instead of 0. */
7214 iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
7215 if (cd_88591_to_utf8 != (iconv_t)(-1))
7217 static const char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
7219 const char *inptr = input;
7220 size_t inbytesleft = strlen (input);
7222 size_t outbytesleft = sizeof (buf);
7223 size_t res = iconv (cd_88591_to_utf8,
7224 (char **) &inptr, &inbytesleft,
7225 &outptr, &outbytesleft);
7231 /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
7233 if (/* Try standardized names. */
7234 iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1)
7235 /* Try IRIX, OSF/1 names. */
7236 && iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1)
7237 /* Try AIX names. */
7238 && iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1)
7239 /* Try HP-UX names. */
7240 && iconv_open ("utf8", "eucJP") == (iconv_t)(-1))
7245 if ac_fn_c_try_run "$LINENO"; then :
7246 am_cv_func_iconv_works=yes
7248 am_cv_func_iconv_works=no
7250 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7251 conftest.$ac_objext conftest.beam conftest.$ac_ext
7254 LIBS="$am_save_LIBS"
7257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5
7258 $as_echo "$am_cv_func_iconv_works" >&6; }
7259 case "$am_cv_func_iconv_works" in
7260 *no) am_func_iconv=no am_cv_lib_iconv=no ;;
7261 *) am_func_iconv=yes ;;
7264 am_func_iconv=no am_cv_lib_iconv=no
7266 if test "$am_func_iconv" = yes; then
7268 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
7271 if test "$am_cv_lib_iconv" = yes; then
7272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
7273 $as_echo_n "checking how to link with libiconv... " >&6; }
7274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
7275 $as_echo "$LIBICONV" >&6; }
7277 CPPFLAGS="$am_save_CPPFLAGS"
7294 acl_save_prefix="$prefix"
7295 prefix="$acl_final_prefix"
7296 acl_save_exec_prefix="$exec_prefix"
7297 exec_prefix="$acl_final_exec_prefix"
7299 eval additional_includedir=\"$includedir\"
7300 eval additional_libdir=\"$libdir\"
7302 exec_prefix="$acl_save_exec_prefix"
7303 prefix="$acl_save_prefix"
7306 # Check whether --with-libintl-prefix was given.
7307 if test "${with_libintl_prefix+set}" = set; then :
7308 withval=$with_libintl_prefix;
7309 if test "X$withval" = "Xno"; then
7312 if test "X$withval" = "X"; then
7314 acl_save_prefix="$prefix"
7315 prefix="$acl_final_prefix"
7316 acl_save_exec_prefix="$exec_prefix"
7317 exec_prefix="$acl_final_exec_prefix"
7319 eval additional_includedir=\"$includedir\"
7320 eval additional_libdir=\"$libdir\"
7322 exec_prefix="$acl_save_exec_prefix"
7323 prefix="$acl_save_prefix"
7326 additional_includedir="$withval/include"
7327 additional_libdir="$withval/$acl_libdirstem"
7328 if test "$acl_libdirstem2" != "$acl_libdirstem" \
7329 && ! test -d "$withval/$acl_libdirstem"; then
7330 additional_libdir="$withval/$acl_libdirstem2"
7344 names_already_handled=
7345 names_next_round='intl '
7346 while test -n "$names_next_round"; do
7347 names_this_round="$names_next_round"
7349 for name in $names_this_round; do
7351 for n in $names_already_handled; do
7352 if test "$n" = "$name"; then
7357 if test -z "$already_handled"; then
7358 names_already_handled="$names_already_handled $name"
7359 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
7360 eval value=\"\$HAVE_LIB$uppername\"
7361 if test -n "$value"; then
7362 if test "$value" = yes; then
7363 eval value=\"\$LIB$uppername\"
7364 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
7365 eval value=\"\$LTLIB$uppername\"
7366 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
7375 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
7376 if test -n "$acl_shlibext"; then
7377 shrext=".$acl_shlibext" # typically: shrext=.so
7381 if test $use_additional = yes; then
7382 dir="$additional_libdir"
7383 if test -n "$acl_shlibext"; then
7384 if test -f "$dir/$libname$shrext"; then
7386 found_so="$dir/$libname$shrext"
7388 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
7389 ver=`(cd "$dir" && \
7390 for f in "$libname$shrext".*; do echo "$f"; done \
7391 | sed -e "s,^$libname$shrext\\\\.,," \
7392 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
7393 | sed 1q ) 2>/dev/null`
7394 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
7396 found_so="$dir/$libname$shrext.$ver"
7399 eval library_names=\"$acl_library_names_spec\"
7400 for f in $library_names; do
7401 if test -f "$dir/$f"; then
7410 if test "X$found_dir" = "X"; then
7411 if test -f "$dir/$libname.$acl_libext"; then
7413 found_a="$dir/$libname.$acl_libext"
7416 if test "X$found_dir" != "X"; then
7417 if test -f "$dir/$libname.la"; then
7418 found_la="$dir/$libname.la"
7422 if test "X$found_dir" = "X"; then
7423 for x in $LDFLAGS $LTLIBINTL; do
7425 acl_save_prefix="$prefix"
7426 prefix="$acl_final_prefix"
7427 acl_save_exec_prefix="$exec_prefix"
7428 exec_prefix="$acl_final_exec_prefix"
7430 exec_prefix="$acl_save_exec_prefix"
7431 prefix="$acl_save_prefix"
7435 dir=`echo "X$x" | sed -e 's/^X-L//'`
7436 if test -n "$acl_shlibext"; then
7437 if test -f "$dir/$libname$shrext"; then
7439 found_so="$dir/$libname$shrext"
7441 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
7442 ver=`(cd "$dir" && \
7443 for f in "$libname$shrext".*; do echo "$f"; done \
7444 | sed -e "s,^$libname$shrext\\\\.,," \
7445 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
7446 | sed 1q ) 2>/dev/null`
7447 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
7449 found_so="$dir/$libname$shrext.$ver"
7452 eval library_names=\"$acl_library_names_spec\"
7453 for f in $library_names; do
7454 if test -f "$dir/$f"; then
7463 if test "X$found_dir" = "X"; then
7464 if test -f "$dir/$libname.$acl_libext"; then
7466 found_a="$dir/$libname.$acl_libext"
7469 if test "X$found_dir" != "X"; then
7470 if test -f "$dir/$libname.la"; then
7471 found_la="$dir/$libname.la"
7476 if test "X$found_dir" != "X"; then
7481 if test "X$found_dir" != "X"; then
7482 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
7483 if test "X$found_so" != "X"; then
7484 if test "$enable_rpath" = no \
7485 || test "X$found_dir" = "X/usr/$acl_libdirstem" \
7486 || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
7487 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
7490 for x in $ltrpathdirs; do
7491 if test "X$x" = "X$found_dir"; then
7496 if test -z "$haveit"; then
7497 ltrpathdirs="$ltrpathdirs $found_dir"
7499 if test "$acl_hardcode_direct" = yes; then
7500 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
7502 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
7503 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
7505 for x in $rpathdirs; do
7506 if test "X$x" = "X$found_dir"; then
7511 if test -z "$haveit"; then
7512 rpathdirs="$rpathdirs $found_dir"
7516 for x in $LDFLAGS $LIBINTL; do
7518 acl_save_prefix="$prefix"
7519 prefix="$acl_final_prefix"
7520 acl_save_exec_prefix="$exec_prefix"
7521 exec_prefix="$acl_final_exec_prefix"
7523 exec_prefix="$acl_save_exec_prefix"
7524 prefix="$acl_save_prefix"
7526 if test "X$x" = "X-L$found_dir"; then
7531 if test -z "$haveit"; then
7532 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
7534 if test "$acl_hardcode_minus_L" != no; then
7535 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
7537 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
7543 if test "X$found_a" != "X"; then
7544 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
7546 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
7549 additional_includedir=
7550 case "$found_dir" in
7551 */$acl_libdirstem | */$acl_libdirstem/)
7552 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
7553 if test "$name" = 'intl'; then
7554 LIBINTL_PREFIX="$basedir"
7556 additional_includedir="$basedir/include"
7558 */$acl_libdirstem2 | */$acl_libdirstem2/)
7559 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
7560 if test "$name" = 'intl'; then
7561 LIBINTL_PREFIX="$basedir"
7563 additional_includedir="$basedir/include"
7566 if test "X$additional_includedir" != "X"; then
7567 if test "X$additional_includedir" != "X/usr/include"; then
7569 if test "X$additional_includedir" = "X/usr/local/include"; then
7570 if test -n "$GCC"; then
7572 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
7576 if test -z "$haveit"; then
7577 for x in $CPPFLAGS $INCINTL; do
7579 acl_save_prefix="$prefix"
7580 prefix="$acl_final_prefix"
7581 acl_save_exec_prefix="$exec_prefix"
7582 exec_prefix="$acl_final_exec_prefix"
7584 exec_prefix="$acl_save_exec_prefix"
7585 prefix="$acl_save_prefix"
7587 if test "X$x" = "X-I$additional_includedir"; then
7592 if test -z "$haveit"; then
7593 if test -d "$additional_includedir"; then
7594 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
7600 if test -n "$found_la"; then
7601 save_libdir="$libdir"
7603 */* | *\\*) . "$found_la" ;;
7604 *) . "./$found_la" ;;
7606 libdir="$save_libdir"
7607 for dep in $dependency_libs; do
7610 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
7611 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
7612 && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
7614 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
7615 || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
7616 if test -n "$GCC"; then
7618 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
7622 if test -z "$haveit"; then
7624 for x in $LDFLAGS $LIBINTL; do
7626 acl_save_prefix="$prefix"
7627 prefix="$acl_final_prefix"
7628 acl_save_exec_prefix="$exec_prefix"
7629 exec_prefix="$acl_final_exec_prefix"
7631 exec_prefix="$acl_save_exec_prefix"
7632 prefix="$acl_save_prefix"
7634 if test "X$x" = "X-L$additional_libdir"; then
7639 if test -z "$haveit"; then
7640 if test -d "$additional_libdir"; then
7641 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
7645 for x in $LDFLAGS $LTLIBINTL; do
7647 acl_save_prefix="$prefix"
7648 prefix="$acl_final_prefix"
7649 acl_save_exec_prefix="$exec_prefix"
7650 exec_prefix="$acl_final_exec_prefix"
7652 exec_prefix="$acl_save_exec_prefix"
7653 prefix="$acl_save_prefix"
7655 if test "X$x" = "X-L$additional_libdir"; then
7660 if test -z "$haveit"; then
7661 if test -d "$additional_libdir"; then
7662 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
7669 dir=`echo "X$dep" | sed -e 's/^X-R//'`
7670 if test "$enable_rpath" != no; then
7672 for x in $rpathdirs; do
7673 if test "X$x" = "X$dir"; then
7678 if test -z "$haveit"; then
7679 rpathdirs="$rpathdirs $dir"
7682 for x in $ltrpathdirs; do
7683 if test "X$x" = "X$dir"; then
7688 if test -z "$haveit"; then
7689 ltrpathdirs="$ltrpathdirs $dir"
7694 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
7697 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
7700 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
7701 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
7707 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
7708 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
7714 if test "X$rpathdirs" != "X"; then
7715 if test -n "$acl_hardcode_libdir_separator"; then
7717 for found_dir in $rpathdirs; do
7718 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
7720 acl_save_libdir="$libdir"
7722 eval flag=\"$acl_hardcode_libdir_flag_spec\"
7723 libdir="$acl_save_libdir"
7724 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
7726 for found_dir in $rpathdirs; do
7727 acl_save_libdir="$libdir"
7729 eval flag=\"$acl_hardcode_libdir_flag_spec\"
7730 libdir="$acl_save_libdir"
7731 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
7735 if test "X$ltrpathdirs" != "X"; then
7736 for found_dir in $ltrpathdirs; do
7737 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
7746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
7747 $as_echo_n "checking for GNU gettext in libintl... " >&6; }
7748 if eval \${$gt_func_gnugettext_libintl+:} false; then :
7749 $as_echo_n "(cached) " >&6
7751 gt_save_CPPFLAGS="$CPPFLAGS"
7752 CPPFLAGS="$CPPFLAGS $INCINTL"
7753 gt_save_LIBS="$LIBS"
7754 LIBS="$LIBS $LIBINTL"
7755 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7756 /* end confdefs.h. */
7757 #include <libintl.h>
7758 $gt_revision_test_code
7759 extern int _nl_msg_cat_cntr;
7764 const char *_nl_expand_alias (const char *);
7768 bindtextdomain ("", "");
7769 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
7774 if ac_fn_c_try_link "$LINENO"; then :
7775 eval "$gt_func_gnugettext_libintl=yes"
7777 eval "$gt_func_gnugettext_libintl=no"
7779 rm -f core conftest.err conftest.$ac_objext \
7780 conftest$ac_exeext conftest.$ac_ext
7781 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } && test -n "$LIBICONV"; then
7782 LIBS="$LIBS $LIBICONV"
7783 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7784 /* end confdefs.h. */
7785 #include <libintl.h>
7786 $gt_revision_test_code
7787 extern int _nl_msg_cat_cntr;
7792 const char *_nl_expand_alias (const char *);
7796 bindtextdomain ("", "");
7797 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
7802 if ac_fn_c_try_link "$LINENO"; then :
7803 LIBINTL="$LIBINTL $LIBICONV"
7804 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
7805 eval "$gt_func_gnugettext_libintl=yes"
7808 rm -f core conftest.err conftest.$ac_objext \
7809 conftest$ac_exeext conftest.$ac_ext
7811 CPPFLAGS="$gt_save_CPPFLAGS"
7812 LIBS="$gt_save_LIBS"
7814 eval ac_res=\$$gt_func_gnugettext_libintl
7815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7816 $as_echo "$ac_res" >&6; }
7819 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \
7820 || { { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \
7821 && test "$PACKAGE" != gettext-runtime \
7822 && test "$PACKAGE" != gettext-tools; }; then
7823 gt_use_preinstalled_gnugettext=yes
7832 if test -n "$INTL_MACOSX_LIBS"; then
7833 if test "$gt_use_preinstalled_gnugettext" = "yes" \
7834 || test "$nls_cv_use_gnu_gettext" = "yes"; then
7835 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
7836 LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
7840 if test "$gt_use_preinstalled_gnugettext" = "yes" \
7841 || test "$nls_cv_use_gnu_gettext" = "yes"; then
7843 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
7850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
7851 $as_echo_n "checking whether to use NLS... " >&6; }
7852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
7853 $as_echo "$USE_NLS" >&6; }
7854 if test "$USE_NLS" = "yes"; then
7855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
7856 $as_echo_n "checking where the gettext function comes from... " >&6; }
7857 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
7858 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
7859 gt_source="external libintl"
7864 gt_source="included intl directory"
7866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
7867 $as_echo "$gt_source" >&6; }
7870 if test "$USE_NLS" = "yes"; then
7872 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
7873 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
7874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
7875 $as_echo_n "checking how to link with libintl... " >&6; }
7876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
7877 $as_echo "$LIBINTL" >&6; }
7879 for element in $INCINTL; do
7881 for x in $CPPFLAGS; do
7883 acl_save_prefix="$prefix"
7884 prefix="$acl_final_prefix"
7885 acl_save_exec_prefix="$exec_prefix"
7886 exec_prefix="$acl_final_exec_prefix"
7888 exec_prefix="$acl_save_exec_prefix"
7889 prefix="$acl_save_prefix"
7891 if test "X$x" = "X$element"; then
7896 if test -z "$haveit"; then
7897 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
7904 $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
7907 $as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
7925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
7926 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
7927 if ${am_cv_langinfo_codeset+:} false; then :
7928 $as_echo_n "(cached) " >&6
7930 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7931 /* end confdefs.h. */
7932 #include <langinfo.h>
7936 char* cs = nl_langinfo(CODESET); return !cs;
7941 if ac_fn_c_try_link "$LINENO"; then :
7942 am_cv_langinfo_codeset=yes
7944 am_cv_langinfo_codeset=no
7946 rm -f core conftest.err conftest.$ac_objext \
7947 conftest$ac_exeext conftest.$ac_ext
7950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
7951 $as_echo "$am_cv_langinfo_codeset" >&6; }
7952 if test $am_cv_langinfo_codeset = yes; then
7954 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
7959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
7960 $as_echo_n "checking for LC_MESSAGES... " >&6; }
7961 if ${gt_cv_val_LC_MESSAGES+:} false; then :
7962 $as_echo_n "(cached) " >&6
7964 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7965 /* end confdefs.h. */
7975 if ac_fn_c_try_link "$LINENO"; then :
7976 gt_cv_val_LC_MESSAGES=yes
7978 gt_cv_val_LC_MESSAGES=no
7980 rm -f core conftest.err conftest.$ac_objext \
7981 conftest$ac_exeext conftest.$ac_ext
7983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_val_LC_MESSAGES" >&5
7984 $as_echo "$gt_cv_val_LC_MESSAGES" >&6; }
7985 if test $gt_cv_val_LC_MESSAGES = yes; then
7987 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
7992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7993 $as_echo_n "checking for ANSI C header files... " >&6; }
7994 if ${ac_cv_header_stdc+:} false; then :
7995 $as_echo_n "(cached) " >&6
7997 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7998 /* end confdefs.h. */
8012 if ac_fn_c_try_compile "$LINENO"; then :
8013 ac_cv_header_stdc=yes
8015 ac_cv_header_stdc=no
8017 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8019 if test $ac_cv_header_stdc = yes; then
8020 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8021 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8022 /* end confdefs.h. */
8026 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8027 $EGREP "memchr" >/dev/null 2>&1; then :
8030 ac_cv_header_stdc=no
8036 if test $ac_cv_header_stdc = yes; then
8037 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8038 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8039 /* end confdefs.h. */
8043 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8044 $EGREP "free" >/dev/null 2>&1; then :
8047 ac_cv_header_stdc=no
8053 if test $ac_cv_header_stdc = yes; then
8054 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8055 if test "$cross_compiling" = yes; then :
8058 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8059 /* end confdefs.h. */
8062 #if ((' ' & 0x0FF) == 0x020)
8063 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8064 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8066 # define ISLOWER(c) \
8067 (('a' <= (c) && (c) <= 'i') \
8068 || ('j' <= (c) && (c) <= 'r') \
8069 || ('s' <= (c) && (c) <= 'z'))
8070 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8073 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8078 for (i = 0; i < 256; i++)
8079 if (XOR (islower (i), ISLOWER (i))
8080 || toupper (i) != TOUPPER (i))
8085 if ac_fn_c_try_run "$LINENO"; then :
8088 ac_cv_header_stdc=no
8090 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8091 conftest.$ac_objext conftest.beam conftest.$ac_ext
8096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8097 $as_echo "$ac_cv_header_stdc" >&6; }
8098 if test $ac_cv_header_stdc = yes; then
8100 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
8104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
8105 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
8106 if ${ac_cv_header_sys_wait_h+:} false; then :
8107 $as_echo_n "(cached) " >&6
8109 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8110 /* end confdefs.h. */
8111 #include <sys/types.h>
8112 #include <sys/wait.h>
8114 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
8117 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
8125 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
8130 if ac_fn_c_try_compile "$LINENO"; then :
8131 ac_cv_header_sys_wait_h=yes
8133 ac_cv_header_sys_wait_h=no
8135 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
8138 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
8139 if test $ac_cv_header_sys_wait_h = yes; then
8141 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
8145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
8146 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
8147 if ${ac_cv_header_time+:} false; then :
8148 $as_echo_n "(cached) " >&6
8150 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8151 /* end confdefs.h. */
8152 #include <sys/types.h>
8153 #include <sys/time.h>
8159 if ((struct tm *) 0)
8165 if ac_fn_c_try_compile "$LINENO"; then :
8166 ac_cv_header_time=yes
8168 ac_cv_header_time=no
8170 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
8173 $as_echo "$ac_cv_header_time" >&6; }
8174 if test $ac_cv_header_time = yes; then
8176 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
8180 for ac_header in arpa/inet.h fcntl.h limits.h locale.h libintl.h mcheck.h \
8181 netdb.h netinet/in.h stdarg.h stddef.h string.h \
8182 sys/ioctl.h sys/param.h sys/socket.h sys/time.h unistd.h \
8183 termios.h stropts.h wchar.h wctype.h
8185 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8186 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
8187 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8188 cat >>confdefs.h <<_ACEOF
8189 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8197 if test "$ac_cv_header_string_h" = yes
8199 for ac_header in memory.h
8201 ac_fn_c_check_header_mongrel "$LINENO" "memory.h" "ac_cv_header_memory_h" "$ac_includes_default"
8202 if test "x$ac_cv_header_memory_h" = xyes; then :
8203 cat >>confdefs.h <<_ACEOF
8204 #define HAVE_MEMORY_H 1
8212 for ac_header in strings.h
8214 ac_fn_c_check_header_mongrel "$LINENO" "strings.h" "ac_cv_header_strings_h" "$ac_includes_default"
8215 if test "x$ac_cv_header_strings_h" = xyes; then :
8216 cat >>confdefs.h <<_ACEOF
8217 #define HAVE_STRINGS_H 1
8226 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
8227 if test "x$ac_cv_type_pid_t" = xyes; then :
8231 cat >>confdefs.h <<_ACEOF
8237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
8238 $as_echo_n "checking return type of signal handlers... " >&6; }
8239 if ${ac_cv_type_signal+:} false; then :
8240 $as_echo_n "(cached) " >&6
8242 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8243 /* end confdefs.h. */
8244 #include <sys/types.h>
8250 return *(signal (0, 0)) (0) == 1;
8255 if ac_fn_c_try_compile "$LINENO"; then :
8256 ac_cv_type_signal=int
8258 ac_cv_type_signal=void
8260 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
8263 $as_echo "$ac_cv_type_signal" >&6; }
8265 cat >>confdefs.h <<_ACEOF
8266 #define RETSIGTYPE $ac_cv_type_signal
8270 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
8271 if test "x$ac_cv_type_size_t" = xyes; then :
8275 cat >>confdefs.h <<_ACEOF
8276 #define size_t unsigned int
8281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
8282 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
8283 if ${ac_cv_type_uid_t+:} false; then :
8284 $as_echo_n "(cached) " >&6
8286 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8287 /* end confdefs.h. */
8288 #include <sys/types.h>
8291 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8292 $EGREP "uid_t" >/dev/null 2>&1; then :
8293 ac_cv_type_uid_t=yes
8300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
8301 $as_echo "$ac_cv_type_uid_t" >&6; }
8302 if test $ac_cv_type_uid_t = no; then
8304 $as_echo "#define uid_t int" >>confdefs.h
8307 $as_echo "#define gid_t int" >>confdefs.h
8311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking type of array argument to getgroups" >&5
8312 $as_echo_n "checking type of array argument to getgroups... " >&6; }
8313 if ${ac_cv_type_getgroups+:} false; then :
8314 $as_echo_n "(cached) " >&6
8316 if test "$cross_compiling" = yes; then :
8317 ac_cv_type_getgroups=cross
8319 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8320 /* end confdefs.h. */
8321 /* Thanks to Mike Rendell for this test. */
8322 $ac_includes_default
8325 #define MAX(x, y) ((x) > (y) ? (x) : (y))
8332 union { gid_t gval; long int lval; } val;
8335 for (i = 0; i < NGID; i++)
8336 gidset[i] = val.gval;
8337 n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
8339 /* Exit non-zero if getgroups seems to require an array of ints. This
8340 happens when gid_t is short int but getgroups modifies an array
8342 return n > 0 && gidset[n] != val.gval;
8345 if ac_fn_c_try_run "$LINENO"; then :
8346 ac_cv_type_getgroups=gid_t
8348 ac_cv_type_getgroups=int
8350 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8351 conftest.$ac_objext conftest.beam conftest.$ac_ext
8354 if test $ac_cv_type_getgroups = cross; then
8355 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8356 /* end confdefs.h. */
8360 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8361 $EGREP "getgroups.*int.*gid_t" >/dev/null 2>&1; then :
8362 ac_cv_type_getgroups=gid_t
8364 ac_cv_type_getgroups=int
8370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_getgroups" >&5
8371 $as_echo "$ac_cv_type_getgroups" >&6; }
8373 cat >>confdefs.h <<_ACEOF
8374 #define GETGROUPS_T $ac_cv_type_getgroups
8379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
8380 $as_echo_n "checking for long long int... " >&6; }
8381 if ${ac_cv_type_long_long_int+:} false; then :
8382 $as_echo_n "(cached) " >&6
8384 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8385 /* end confdefs.h. */
8386 long long int ll = 9223372036854775807ll;
8387 long long int nll = -9223372036854775807LL;
8388 typedef int a[((-9223372036854775807LL < 0
8389 && 0 < 9223372036854775807ll)
8395 long long int llmax = 9223372036854775807ll;
8396 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
8397 | (llmax / ll) | (llmax % ll));
8402 if ac_fn_c_try_link "$LINENO"; then :
8403 ac_cv_type_long_long_int=yes
8405 ac_cv_type_long_long_int=no
8407 rm -f core conftest.err conftest.$ac_objext \
8408 conftest$ac_exeext conftest.$ac_ext
8410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
8411 $as_echo "$ac_cv_type_long_long_int" >&6; }
8412 if test $ac_cv_type_long_long_int = yes; then
8414 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
8420 ac_cv_type_long_long=$ac_cv_type_long_long_int
8421 if test $ac_cv_type_long_long = yes; then
8423 $as_echo "#define HAVE_LONG_LONG 1" >>confdefs.h
8428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
8429 $as_echo_n "checking for unsigned long long int... " >&6; }
8430 if ${ac_cv_type_unsigned_long_long_int+:} false; then :
8431 $as_echo_n "(cached) " >&6
8433 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8434 /* end confdefs.h. */
8435 unsigned long long int ull = 18446744073709551615ULL;
8436 typedef int a[(18446744073709551615ULL <= (unsigned long long int) -1
8442 unsigned long long int ullmax = 18446744073709551615ull;
8443 return (ull << 63 | ull >> 63 | ull << i | ull >> i
8444 | ullmax / ull | ullmax % ull);
8449 if ac_fn_c_try_link "$LINENO"; then :
8450 ac_cv_type_unsigned_long_long_int=yes
8452 ac_cv_type_unsigned_long_long_int=no
8454 rm -f core conftest.err conftest.$ac_objext \
8455 conftest$ac_exeext conftest.$ac_ext
8457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
8458 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
8459 if test $ac_cv_type_unsigned_long_long_int = yes; then
8461 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
8467 ac_cv_type_unsigned_long_long=$ac_cv_type_unsigned_long_long_int
8468 if test $ac_cv_type_unsigned_long_long = yes; then
8470 $as_echo "#define HAVE_UNSIGNED_LONG_LONG 1" >>confdefs.h
8475 if test "OS/390" = "`uname`"
8477 gl_cv_header_inttypes_h=no
8479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
8480 $as_echo_n "checking for inttypes.h... " >&6; }
8481 if ${gl_cv_header_inttypes_h+:} false; then :
8482 $as_echo_n "(cached) " >&6
8484 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8485 /* end confdefs.h. */
8486 #include <sys/types.h>
8487 #include <inttypes.h>
8491 uintmax_t i = (uintmax_t) -1; return !i;
8496 if ac_fn_c_try_compile "$LINENO"; then :
8497 gl_cv_header_inttypes_h=yes
8499 gl_cv_header_inttypes_h=no
8501 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_inttypes_h" >&5
8504 $as_echo "$gl_cv_header_inttypes_h" >&6; }
8505 if test $gl_cv_header_inttypes_h = yes; then
8507 cat >>confdefs.h <<_ACEOF
8508 #define HAVE_INTTYPES_H_WITH_UINTMAX 1
8515 if test "OS/390" = "`uname`"
8517 gl_cv_header_stdint_h=no
8519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint.h" >&5
8520 $as_echo_n "checking for stdint.h... " >&6; }
8521 if ${gl_cv_header_stdint_h+:} false; then :
8522 $as_echo_n "(cached) " >&6
8524 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8525 /* end confdefs.h. */
8526 #include <sys/types.h>
8531 uintmax_t i = (uintmax_t) -1; return !i;
8536 if ac_fn_c_try_compile "$LINENO"; then :
8537 gl_cv_header_stdint_h=yes
8539 gl_cv_header_stdint_h=no
8541 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_stdint_h" >&5
8544 $as_echo "$gl_cv_header_stdint_h" >&6; }
8545 if test $gl_cv_header_stdint_h = yes; then
8547 cat >>confdefs.h <<_ACEOF
8548 #define HAVE_STDINT_H_WITH_UINTMAX 1
8557 if test $gl_cv_header_inttypes_h = no && test $gl_cv_header_stdint_h = no; then
8559 test $ac_cv_type_long_long = yes \
8560 && ac_type='long long' \
8563 cat >>confdefs.h <<_ACEOF
8564 #define intmax_t $ac_type
8569 $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
8576 if test $gl_cv_header_inttypes_h = no && test $gl_cv_header_stdint_h = no; then
8578 test $ac_cv_type_unsigned_long_long = yes \
8579 && ac_type='unsigned long long' \
8580 || ac_type='unsigned long'
8582 cat >>confdefs.h <<_ACEOF
8583 #define uintmax_t $ac_type
8588 $as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
8592 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
8593 if test "x$ac_cv_type_ssize_t" = xyes; then :
8597 cat >>confdefs.h <<_ACEOF
8603 # The cast to long int works around a bug in the HP C Compiler
8604 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8605 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8606 # This bug is HP SR number 8606223364.
8607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned int" >&5
8608 $as_echo_n "checking size of unsigned int... " >&6; }
8609 if ${ac_cv_sizeof_unsigned_int+:} false; then :
8610 $as_echo_n "(cached) " >&6
8612 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned int))" "ac_cv_sizeof_unsigned_int" "$ac_includes_default"; then :
8615 if test "$ac_cv_type_unsigned_int" = yes; then
8616 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8617 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8618 as_fn_error 77 "cannot compute sizeof (unsigned int)
8619 See \`config.log' for more details" "$LINENO" 5; }
8621 ac_cv_sizeof_unsigned_int=0
8626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_int" >&5
8627 $as_echo "$ac_cv_sizeof_unsigned_int" >&6; }
8631 cat >>confdefs.h <<_ACEOF
8632 #define SIZEOF_UNSIGNED_INT $ac_cv_sizeof_unsigned_int
8636 # The cast to long int works around a bug in the HP C Compiler
8637 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8638 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8639 # This bug is HP SR number 8606223364.
8640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long" >&5
8641 $as_echo_n "checking size of unsigned long... " >&6; }
8642 if ${ac_cv_sizeof_unsigned_long+:} false; then :
8643 $as_echo_n "(cached) " >&6
8645 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned long))" "ac_cv_sizeof_unsigned_long" "$ac_includes_default"; then :
8648 if test "$ac_cv_type_unsigned_long" = yes; then
8649 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8650 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8651 as_fn_error 77 "cannot compute sizeof (unsigned long)
8652 See \`config.log' for more details" "$LINENO" 5; }
8654 ac_cv_sizeof_unsigned_long=0
8659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long" >&5
8660 $as_echo "$ac_cv_sizeof_unsigned_long" >&6; }
8664 cat >>confdefs.h <<_ACEOF
8665 #define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
8669 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8670 /* end confdefs.h. */
8671 #include <sys/types.h>
8683 if ac_fn_c_try_compile "$LINENO"; then :
8685 $as_echo "#define TIME_T_IN_SYS_TYPES_H 1" >>confdefs.h
8688 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8689 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8690 /* end confdefs.h. */
8703 if ac_fn_c_try_compile "$LINENO"; then :
8705 $as_echo "#define HAVE_WCTYPE_T 1" >>confdefs.h
8708 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8709 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8710 /* end confdefs.h. */
8723 if ac_fn_c_try_compile "$LINENO"; then :
8725 $as_echo "#define HAVE_WINT_T 1" >>confdefs.h
8728 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8729 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8730 /* end confdefs.h. */
8731 #include <sys/types.h>
8732 #include <sys/socket.h>
8737 struct sockaddr_storage foo;
8743 if ac_fn_c_try_compile "$LINENO"; then :
8745 $as_echo "#define HAVE_SOCKADDR_STORAGE 1" >>confdefs.h
8748 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8755 ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "#include <sys/types.h>
8756 #include <sys/socket.h>
8758 if test "x$ac_cv_type_socklen_t" = xyes; then :
8762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socklen_t equivalent" >&5
8763 $as_echo_n "checking for socklen_t equivalent... " >&6; }
8764 if ${rsync_cv_socklen_t_equiv+:} false; then :
8765 $as_echo_n "(cached) " >&6
8768 # Systems have either "struct sockaddr *" or
8769 # "void *" as the second argument to getpeername
8770 rsync_cv_socklen_t_equiv=
8771 for arg2 in "struct sockaddr" void; do
8772 for t in int size_t unsigned long "unsigned long"; do
8773 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8774 /* end confdefs.h. */
8776 #include <sys/types.h>
8777 #include <sys/socket.h>
8779 int getpeername (int, $arg2 *, $t *);
8786 getpeername(0,0,&len);
8792 if ac_fn_c_try_compile "$LINENO"; then :
8794 rsync_cv_socklen_t_equiv="$t"
8798 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8802 if test "x$rsync_cv_socklen_t_equiv" = x; then
8803 rsync_cv_socklen_t_equiv=int
8808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $rsync_cv_socklen_t_equiv" >&5
8809 $as_echo "$rsync_cv_socklen_t_equiv" >&6; }
8811 cat >>confdefs.h <<_ACEOF
8812 #define socklen_t $rsync_cv_socklen_t_equiv
8819 for ac_func in vprintf
8821 ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
8822 if test "x$ac_cv_func_vprintf" = xyes; then :
8823 cat >>confdefs.h <<_ACEOF
8824 #define HAVE_VPRINTF 1
8827 ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
8828 if test "x$ac_cv_func__doprnt" = xyes; then :
8830 $as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
8841 for ac_header in $ac_header_list
8843 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8844 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
8846 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8847 cat >>confdefs.h <<_ACEOF
8848 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8862 for ac_func in $ac_func_list
8864 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8865 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
8866 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
8867 cat >>confdefs.h <<_ACEOF
8868 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
8878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mktime" >&5
8879 $as_echo_n "checking for working mktime... " >&6; }
8880 if ${ac_cv_func_working_mktime+:} false; then :
8881 $as_echo_n "(cached) " >&6
8883 if test "$cross_compiling" = yes; then :
8884 ac_cv_func_working_mktime=no
8886 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8887 /* end confdefs.h. */
8888 /* Test program from Paul Eggert and Tony Leneis. */
8889 #ifdef TIME_WITH_SYS_TIME
8890 # include <sys/time.h>
8893 # ifdef HAVE_SYS_TIME_H
8894 # include <sys/time.h>
8903 #ifdef HAVE_UNISTD_H
8904 # include <unistd.h>
8908 # define alarm(X) /* empty */
8911 /* Work around redefinition to rpl_putenv by other config tests. */
8914 static time_t time_t_max;
8915 static time_t time_t_min;
8917 /* Values we'll use to set the TZ environment variable. */
8918 static const char *tz_strings[] = {
8919 (const char *) 0, "TZ=GMT0", "TZ=JST-9",
8920 "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
8922 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
8924 /* Return 0 if mktime fails to convert a date in the spring-forward gap.
8925 Based on a problem report from Andreas Jaeger. */
8927 spring_forward_gap ()
8929 /* glibc (up to about 1998-10-07) failed this test. */
8932 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
8933 instead of "TZ=America/Vancouver" in order to detect the bug even
8934 on systems that don't support the Olson extension, or don't have the
8935 full zoneinfo tables installed. */
8936 putenv ((char*) "TZ=PST8PDT,M4.1.0,M10.5.0");
8945 return mktime (&tm) != (time_t) -1;
8949 mktime_test1 (time_t now)
8952 return ! (lt = localtime (&now)) || mktime (lt) == now;
8956 mktime_test (time_t now)
8958 return (mktime_test1 (now)
8959 && mktime_test1 ((time_t) (time_t_max - now))
8960 && mktime_test1 ((time_t) (time_t_min + now)));
8966 /* Based on code from Ariel Faigon. */
8976 return tm.tm_mon == 2 && tm.tm_mday == 31;
8980 bigtime_test (int j)
8984 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
8986 if (now != (time_t) -1)
8988 struct tm *lt = localtime (&now);
8990 && lt->tm_year == tm.tm_year
8991 && lt->tm_mon == tm.tm_mon
8992 && lt->tm_mday == tm.tm_mday
8993 && lt->tm_hour == tm.tm_hour
8994 && lt->tm_min == tm.tm_min
8995 && lt->tm_sec == tm.tm_sec
8996 && lt->tm_yday == tm.tm_yday
8997 && lt->tm_wday == tm.tm_wday
8998 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
8999 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
9008 /* The correct answer for 2050-02-01 00:00:00 in Pacific time,
9009 ignoring leap seconds. */
9010 unsigned long int answer = 2527315200UL;
9014 tm.tm_year = 2050 - 1900;
9017 tm.tm_hour = tm.tm_min = tm.tm_sec = 0;
9020 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
9021 instead of "TZ=America/Vancouver" in order to detect the bug even
9022 on systems that don't support the Olson extension, or don't have the
9023 full zoneinfo tables installed. */
9024 putenv ((char*) "TZ=PST8PDT,M4.1.0,M10.5.0");
9028 /* Check that the result is either a failure, or close enough
9029 to the correct answer that we can assume the discrepancy is
9030 due to leap seconds. */
9031 return (t == (time_t) -1
9032 || (0 < t && answer - 120 <= t && t <= answer + 120));
9041 /* This test makes some buggy mktime implementations loop.
9042 Give up after 60 seconds; a mktime slower than that
9043 isn't worth using anyway. */
9048 t = (time_t_max << 1) + 1;
9049 if (t <= time_t_max)
9053 time_t_min = - ((time_t) ~ (time_t) 0 == (time_t) -1) - time_t_max;
9055 delta = time_t_max / 997; /* a suitable prime number */
9056 for (i = 0; i < N_STRINGS; i++)
9059 putenv ((char*) tz_strings[i]);
9061 for (t = 0; t <= time_t_max - delta; t += delta)
9062 if (! mktime_test (t))
9064 if (! (mktime_test ((time_t) 1)
9065 && mktime_test ((time_t) (60 * 60))
9066 && mktime_test ((time_t) (60 * 60 * 24))))
9069 for (j = 1; ; j <<= 1)
9070 if (! bigtime_test (j))
9072 else if (INT_MAX / 2 < j)
9074 if (! bigtime_test (INT_MAX))
9077 return ! (irix_6_4_bug () && spring_forward_gap () && year_2050_test ());
9080 if ac_fn_c_try_run "$LINENO"; then :
9081 ac_cv_func_working_mktime=yes
9083 ac_cv_func_working_mktime=no
9085 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9086 conftest.$ac_objext conftest.beam conftest.$ac_ext
9090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_working_mktime" >&5
9091 $as_echo "$ac_cv_func_working_mktime" >&6; }
9092 if test $ac_cv_func_working_mktime = no; then
9093 case " $LIBOBJS " in
9094 *" mktime.$ac_objext "* ) ;;
9095 *) LIBOBJS="$LIBOBJS mktime.$ac_objext"
9101 case "$ac_cv_func_working_mktime" in
9103 $as_echo "#define HAVE_MKTIME 1" >>confdefs.h
9108 ac_fn_c_check_func "$LINENO" "getaddrinfo" "ac_cv_func_getaddrinfo"
9109 if test "x$ac_cv_func_getaddrinfo" = xyes; then :
9111 $as_echo "#define HAVE_GETADDRINFO 1" >>confdefs.h
9114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getaddrinfo in -lsocket" >&5
9115 $as_echo_n "checking for getaddrinfo in -lsocket... " >&6; }
9116 if ${ac_cv_lib_socket_getaddrinfo+:} false; then :
9117 $as_echo_n "(cached) " >&6
9119 ac_check_lib_save_LIBS=$LIBS
9120 LIBS="-lsocket $LIBS"
9121 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9122 /* end confdefs.h. */
9124 /* Override any GCC internal prototype to avoid an error.
9125 Use char because int might match the return type of a GCC
9126 builtin and then its argument prototype would still apply. */
9130 char getaddrinfo ();
9134 return getaddrinfo ();
9139 if ac_fn_c_try_link "$LINENO"; then :
9140 ac_cv_lib_socket_getaddrinfo=yes
9142 ac_cv_lib_socket_getaddrinfo=no
9144 rm -f core conftest.err conftest.$ac_objext \
9145 conftest$ac_exeext conftest.$ac_ext
9146 LIBS=$ac_check_lib_save_LIBS
9148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_getaddrinfo" >&5
9149 $as_echo "$ac_cv_lib_socket_getaddrinfo" >&6; }
9150 if test "x$ac_cv_lib_socket_getaddrinfo" = xyes; then :
9152 $as_echo "#define HAVE_GETADDRINFO 1" >>confdefs.h
9159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fmod in -lm" >&5
9160 $as_echo_n "checking for fmod in -lm... " >&6; }
9161 if ${ac_cv_lib_m_fmod+:} false; then :
9162 $as_echo_n "(cached) " >&6
9164 ac_check_lib_save_LIBS=$LIBS
9166 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9167 /* end confdefs.h. */
9169 /* Override any GCC internal prototype to avoid an error.
9170 Use char because int might match the return type of a GCC
9171 builtin and then its argument prototype would still apply. */
9184 if ac_fn_c_try_link "$LINENO"; then :
9185 ac_cv_lib_m_fmod=yes
9189 rm -f core conftest.err conftest.$ac_objext \
9190 conftest$ac_exeext conftest.$ac_ext
9191 LIBS=$ac_check_lib_save_LIBS
9193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_fmod" >&5
9194 $as_echo "$ac_cv_lib_m_fmod" >&6; }
9195 if test "x$ac_cv_lib_m_fmod" = xyes; then :
9196 cat >>confdefs.h <<_ACEOF
9204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isinf in -lm" >&5
9205 $as_echo_n "checking for isinf in -lm... " >&6; }
9206 if ${ac_cv_lib_m_isinf+:} false; then :
9207 $as_echo_n "(cached) " >&6
9209 ac_check_lib_save_LIBS=$LIBS
9211 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9212 /* end confdefs.h. */
9214 /* Override any GCC internal prototype to avoid an error.
9215 Use char because int might match the return type of a GCC
9216 builtin and then its argument prototype would still apply. */
9229 if ac_fn_c_try_link "$LINENO"; then :
9230 ac_cv_lib_m_isinf=yes
9232 ac_cv_lib_m_isinf=no
9234 rm -f core conftest.err conftest.$ac_objext \
9235 conftest$ac_exeext conftest.$ac_ext
9236 LIBS=$ac_check_lib_save_LIBS
9238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_isinf" >&5
9239 $as_echo "$ac_cv_lib_m_isinf" >&6; }
9240 if test "x$ac_cv_lib_m_isinf" = xyes; then :
9241 cat >>confdefs.h <<_ACEOF
9249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ismod in -lm" >&5
9250 $as_echo_n "checking for ismod in -lm... " >&6; }
9251 if ${ac_cv_lib_m_ismod+:} false; then :
9252 $as_echo_n "(cached) " >&6
9254 ac_check_lib_save_LIBS=$LIBS
9256 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9257 /* end confdefs.h. */
9259 /* Override any GCC internal prototype to avoid an error.
9260 Use char because int might match the return type of a GCC
9261 builtin and then its argument prototype would still apply. */
9274 if ac_fn_c_try_link "$LINENO"; then :
9275 ac_cv_lib_m_ismod=yes
9277 ac_cv_lib_m_ismod=no
9279 rm -f core conftest.err conftest.$ac_objext \
9280 conftest$ac_exeext conftest.$ac_ext
9281 LIBS=$ac_check_lib_save_LIBS
9283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_ismod" >&5
9284 $as_echo "$ac_cv_lib_m_ismod" >&6; }
9285 if test "x$ac_cv_lib_m_ismod" = xyes; then :
9286 cat >>confdefs.h <<_ACEOF
9313 acl_save_prefix="$prefix"
9314 prefix="$acl_final_prefix"
9315 acl_save_exec_prefix="$exec_prefix"
9316 exec_prefix="$acl_final_exec_prefix"
9318 eval additional_includedir=\"$includedir\"
9319 eval additional_libdir=\"$libdir\"
9321 exec_prefix="$acl_save_exec_prefix"
9322 prefix="$acl_save_prefix"
9325 # Check whether --with-libsigsegv-prefix was given.
9326 if test "${with_libsigsegv_prefix+set}" = set; then :
9327 withval=$with_libsigsegv_prefix;
9328 if test "X$withval" = "Xno"; then
9331 if test "X$withval" = "X"; then
9333 acl_save_prefix="$prefix"
9334 prefix="$acl_final_prefix"
9335 acl_save_exec_prefix="$exec_prefix"
9336 exec_prefix="$acl_final_exec_prefix"
9338 eval additional_includedir=\"$includedir\"
9339 eval additional_libdir=\"$libdir\"
9341 exec_prefix="$acl_save_exec_prefix"
9342 prefix="$acl_save_prefix"
9345 additional_includedir="$withval/include"
9346 additional_libdir="$withval/$acl_libdirstem"
9347 if test "$acl_libdirstem2" != "$acl_libdirstem" \
9348 && ! test -d "$withval/$acl_libdirstem"; then
9349 additional_libdir="$withval/$acl_libdirstem2"
9363 names_already_handled=
9364 names_next_round='sigsegv '
9365 while test -n "$names_next_round"; do
9366 names_this_round="$names_next_round"
9368 for name in $names_this_round; do
9370 for n in $names_already_handled; do
9371 if test "$n" = "$name"; then
9376 if test -z "$already_handled"; then
9377 names_already_handled="$names_already_handled $name"
9378 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
9379 eval value=\"\$HAVE_LIB$uppername\"
9380 if test -n "$value"; then
9381 if test "$value" = yes; then
9382 eval value=\"\$LIB$uppername\"
9383 test -z "$value" || LIBSIGSEGV="${LIBSIGSEGV}${LIBSIGSEGV:+ }$value"
9384 eval value=\"\$LTLIB$uppername\"
9385 test -z "$value" || LTLIBSIGSEGV="${LTLIBSIGSEGV}${LTLIBSIGSEGV:+ }$value"
9394 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
9395 if test -n "$acl_shlibext"; then
9396 shrext=".$acl_shlibext" # typically: shrext=.so
9400 if test $use_additional = yes; then
9401 dir="$additional_libdir"
9402 if test -n "$acl_shlibext"; then
9403 if test -f "$dir/$libname$shrext"; then
9405 found_so="$dir/$libname$shrext"
9407 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
9408 ver=`(cd "$dir" && \
9409 for f in "$libname$shrext".*; do echo "$f"; done \
9410 | sed -e "s,^$libname$shrext\\\\.,," \
9411 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
9412 | sed 1q ) 2>/dev/null`
9413 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
9415 found_so="$dir/$libname$shrext.$ver"
9418 eval library_names=\"$acl_library_names_spec\"
9419 for f in $library_names; do
9420 if test -f "$dir/$f"; then
9429 if test "X$found_dir" = "X"; then
9430 if test -f "$dir/$libname.$acl_libext"; then
9432 found_a="$dir/$libname.$acl_libext"
9435 if test "X$found_dir" != "X"; then
9436 if test -f "$dir/$libname.la"; then
9437 found_la="$dir/$libname.la"
9441 if test "X$found_dir" = "X"; then
9442 for x in $LDFLAGS $LTLIBSIGSEGV; do
9444 acl_save_prefix="$prefix"
9445 prefix="$acl_final_prefix"
9446 acl_save_exec_prefix="$exec_prefix"
9447 exec_prefix="$acl_final_exec_prefix"
9449 exec_prefix="$acl_save_exec_prefix"
9450 prefix="$acl_save_prefix"
9454 dir=`echo "X$x" | sed -e 's/^X-L//'`
9455 if test -n "$acl_shlibext"; then
9456 if test -f "$dir/$libname$shrext"; then
9458 found_so="$dir/$libname$shrext"
9460 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
9461 ver=`(cd "$dir" && \
9462 for f in "$libname$shrext".*; do echo "$f"; done \
9463 | sed -e "s,^$libname$shrext\\\\.,," \
9464 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
9465 | sed 1q ) 2>/dev/null`
9466 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
9468 found_so="$dir/$libname$shrext.$ver"
9471 eval library_names=\"$acl_library_names_spec\"
9472 for f in $library_names; do
9473 if test -f "$dir/$f"; then
9482 if test "X$found_dir" = "X"; then
9483 if test -f "$dir/$libname.$acl_libext"; then
9485 found_a="$dir/$libname.$acl_libext"
9488 if test "X$found_dir" != "X"; then
9489 if test -f "$dir/$libname.la"; then
9490 found_la="$dir/$libname.la"
9495 if test "X$found_dir" != "X"; then
9500 if test "X$found_dir" != "X"; then
9501 LTLIBSIGSEGV="${LTLIBSIGSEGV}${LTLIBSIGSEGV:+ }-L$found_dir -l$name"
9502 if test "X$found_so" != "X"; then
9503 if test "$enable_rpath" = no \
9504 || test "X$found_dir" = "X/usr/$acl_libdirstem" \
9505 || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
9506 LIBSIGSEGV="${LIBSIGSEGV}${LIBSIGSEGV:+ }$found_so"
9509 for x in $ltrpathdirs; do
9510 if test "X$x" = "X$found_dir"; then
9515 if test -z "$haveit"; then
9516 ltrpathdirs="$ltrpathdirs $found_dir"
9518 if test "$acl_hardcode_direct" = yes; then
9519 LIBSIGSEGV="${LIBSIGSEGV}${LIBSIGSEGV:+ }$found_so"
9521 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
9522 LIBSIGSEGV="${LIBSIGSEGV}${LIBSIGSEGV:+ }$found_so"
9524 for x in $rpathdirs; do
9525 if test "X$x" = "X$found_dir"; then
9530 if test -z "$haveit"; then
9531 rpathdirs="$rpathdirs $found_dir"
9535 for x in $LDFLAGS $LIBSIGSEGV; do
9537 acl_save_prefix="$prefix"
9538 prefix="$acl_final_prefix"
9539 acl_save_exec_prefix="$exec_prefix"
9540 exec_prefix="$acl_final_exec_prefix"
9542 exec_prefix="$acl_save_exec_prefix"
9543 prefix="$acl_save_prefix"
9545 if test "X$x" = "X-L$found_dir"; then
9550 if test -z "$haveit"; then
9551 LIBSIGSEGV="${LIBSIGSEGV}${LIBSIGSEGV:+ }-L$found_dir"
9553 if test "$acl_hardcode_minus_L" != no; then
9554 LIBSIGSEGV="${LIBSIGSEGV}${LIBSIGSEGV:+ }$found_so"
9556 LIBSIGSEGV="${LIBSIGSEGV}${LIBSIGSEGV:+ }-l$name"
9562 if test "X$found_a" != "X"; then
9563 LIBSIGSEGV="${LIBSIGSEGV}${LIBSIGSEGV:+ }$found_a"
9565 LIBSIGSEGV="${LIBSIGSEGV}${LIBSIGSEGV:+ }-L$found_dir -l$name"
9568 additional_includedir=
9569 case "$found_dir" in
9570 */$acl_libdirstem | */$acl_libdirstem/)
9571 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
9572 if test "$name" = 'sigsegv'; then
9573 LIBSIGSEGV_PREFIX="$basedir"
9575 additional_includedir="$basedir/include"
9577 */$acl_libdirstem2 | */$acl_libdirstem2/)
9578 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
9579 if test "$name" = 'sigsegv'; then
9580 LIBSIGSEGV_PREFIX="$basedir"
9582 additional_includedir="$basedir/include"
9585 if test "X$additional_includedir" != "X"; then
9586 if test "X$additional_includedir" != "X/usr/include"; then
9588 if test "X$additional_includedir" = "X/usr/local/include"; then
9589 if test -n "$GCC"; then
9591 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
9595 if test -z "$haveit"; then
9596 for x in $CPPFLAGS $INCSIGSEGV; do
9598 acl_save_prefix="$prefix"
9599 prefix="$acl_final_prefix"
9600 acl_save_exec_prefix="$exec_prefix"
9601 exec_prefix="$acl_final_exec_prefix"
9603 exec_prefix="$acl_save_exec_prefix"
9604 prefix="$acl_save_prefix"
9606 if test "X$x" = "X-I$additional_includedir"; then
9611 if test -z "$haveit"; then
9612 if test -d "$additional_includedir"; then
9613 INCSIGSEGV="${INCSIGSEGV}${INCSIGSEGV:+ }-I$additional_includedir"
9619 if test -n "$found_la"; then
9620 save_libdir="$libdir"
9622 */* | *\\*) . "$found_la" ;;
9623 *) . "./$found_la" ;;
9625 libdir="$save_libdir"
9626 for dep in $dependency_libs; do
9629 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
9630 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
9631 && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
9633 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
9634 || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
9635 if test -n "$GCC"; then
9637 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
9641 if test -z "$haveit"; then
9643 for x in $LDFLAGS $LIBSIGSEGV; do
9645 acl_save_prefix="$prefix"
9646 prefix="$acl_final_prefix"
9647 acl_save_exec_prefix="$exec_prefix"
9648 exec_prefix="$acl_final_exec_prefix"
9650 exec_prefix="$acl_save_exec_prefix"
9651 prefix="$acl_save_prefix"
9653 if test "X$x" = "X-L$additional_libdir"; then
9658 if test -z "$haveit"; then
9659 if test -d "$additional_libdir"; then
9660 LIBSIGSEGV="${LIBSIGSEGV}${LIBSIGSEGV:+ }-L$additional_libdir"
9664 for x in $LDFLAGS $LTLIBSIGSEGV; do
9666 acl_save_prefix="$prefix"
9667 prefix="$acl_final_prefix"
9668 acl_save_exec_prefix="$exec_prefix"
9669 exec_prefix="$acl_final_exec_prefix"
9671 exec_prefix="$acl_save_exec_prefix"
9672 prefix="$acl_save_prefix"
9674 if test "X$x" = "X-L$additional_libdir"; then
9679 if test -z "$haveit"; then
9680 if test -d "$additional_libdir"; then
9681 LTLIBSIGSEGV="${LTLIBSIGSEGV}${LTLIBSIGSEGV:+ }-L$additional_libdir"
9688 dir=`echo "X$dep" | sed -e 's/^X-R//'`
9689 if test "$enable_rpath" != no; then
9691 for x in $rpathdirs; do
9692 if test "X$x" = "X$dir"; then
9697 if test -z "$haveit"; then
9698 rpathdirs="$rpathdirs $dir"
9701 for x in $ltrpathdirs; do
9702 if test "X$x" = "X$dir"; then
9707 if test -z "$haveit"; then
9708 ltrpathdirs="$ltrpathdirs $dir"
9713 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
9716 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
9719 LIBSIGSEGV="${LIBSIGSEGV}${LIBSIGSEGV:+ }$dep"
9720 LTLIBSIGSEGV="${LTLIBSIGSEGV}${LTLIBSIGSEGV:+ }$dep"
9726 LIBSIGSEGV="${LIBSIGSEGV}${LIBSIGSEGV:+ }-l$name"
9727 LTLIBSIGSEGV="${LTLIBSIGSEGV}${LTLIBSIGSEGV:+ }-l$name"
9733 if test "X$rpathdirs" != "X"; then
9734 if test -n "$acl_hardcode_libdir_separator"; then
9736 for found_dir in $rpathdirs; do
9737 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
9739 acl_save_libdir="$libdir"
9741 eval flag=\"$acl_hardcode_libdir_flag_spec\"
9742 libdir="$acl_save_libdir"
9743 LIBSIGSEGV="${LIBSIGSEGV}${LIBSIGSEGV:+ }$flag"
9745 for found_dir in $rpathdirs; do
9746 acl_save_libdir="$libdir"
9748 eval flag=\"$acl_hardcode_libdir_flag_spec\"
9749 libdir="$acl_save_libdir"
9750 LIBSIGSEGV="${LIBSIGSEGV}${LIBSIGSEGV:+ }$flag"
9754 if test "X$ltrpathdirs" != "X"; then
9755 for found_dir in $ltrpathdirs; do
9756 LTLIBSIGSEGV="${LTLIBSIGSEGV}${LTLIBSIGSEGV:+ }-R$found_dir"
9766 ac_save_CPPFLAGS="$CPPFLAGS"
9768 for element in $INCSIGSEGV; do
9770 for x in $CPPFLAGS; do
9772 acl_save_prefix="$prefix"
9773 prefix="$acl_final_prefix"
9774 acl_save_exec_prefix="$exec_prefix"
9775 exec_prefix="$acl_final_exec_prefix"
9777 exec_prefix="$acl_save_exec_prefix"
9778 prefix="$acl_save_prefix"
9780 if test "X$x" = "X$element"; then
9785 if test -z "$haveit"; then
9786 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
9791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libsigsegv" >&5
9792 $as_echo_n "checking for libsigsegv... " >&6; }
9793 if ${ac_cv_libsigsegv+:} false; then :
9794 $as_echo_n "(cached) " >&6
9797 ac_save_LIBS="$LIBS"
9798 case " $LIBSIGSEGV" in
9799 *" -l"*) LIBS="$LIBS $LIBSIGSEGV" ;;
9800 *) LIBS="$LIBSIGSEGV $LIBS" ;;
9802 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9803 /* end confdefs.h. */
9804 #include <sigsegv.h>
9808 sigsegv_deinstall_handler();
9813 if ac_fn_c_try_link "$LINENO"; then :
9814 ac_cv_libsigsegv=yes
9816 ac_cv_libsigsegv='no, consider installing GNU libsigsegv'
9818 rm -f core conftest.err conftest.$ac_objext \
9819 conftest$ac_exeext conftest.$ac_ext
9820 LIBS="$ac_save_LIBS"
9823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libsigsegv" >&5
9824 $as_echo "$ac_cv_libsigsegv" >&6; }
9825 if test "$ac_cv_libsigsegv" = yes; then
9828 $as_echo "#define HAVE_LIBSIGSEGV 1" >>confdefs.h
9830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libsigsegv" >&5
9831 $as_echo_n "checking how to link with libsigsegv... " >&6; }
9832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBSIGSEGV" >&5
9833 $as_echo "$LIBSIGSEGV" >&6; }
9836 CPPFLAGS="$ac_save_CPPFLAGS"
9848 gl_cv_lib_sigsegv="$ac_cv_libsigsegv"
9853 # Need the check for mkstemp and tmpfile for missing_d/snprintf.c.
9854 for ac_func in atexit btowc fmod getgrent getgroups grantpt \
9855 isascii iswctype iswlower iswupper mbrlen \
9856 memcmp memcpy memcpy_ulong memmove memset \
9857 memset_ulong mkstemp setenv setlocale setsid snprintf strchr \
9858 strerror strftime strncasecmp strcoll strtod strtoul \
9859 system tmpfile towlower towupper tzset usleep wcrtomb \
9862 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9863 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
9864 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
9865 cat >>confdefs.h <<_ACEOF
9866 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc and mbstate_t are properly declared" >&5
9874 $as_echo_n "checking whether mbrtowc and mbstate_t are properly declared... " >&6; }
9875 if ${ac_cv_func_mbrtowc+:} false; then :
9876 $as_echo_n "(cached) " >&6
9878 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9879 /* end confdefs.h. */
9885 char const s[] = "";
9888 return ! (sizeof state && (mbrtowc) (&wc, s, n, &state));
9893 if ac_fn_c_try_link "$LINENO"; then :
9894 ac_cv_func_mbrtowc=yes
9896 ac_cv_func_mbrtowc=no
9898 rm -f core conftest.err conftest.$ac_objext \
9899 conftest$ac_exeext conftest.$ac_ext
9901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mbrtowc" >&5
9902 $as_echo "$ac_cv_func_mbrtowc" >&6; }
9903 if test $ac_cv_func_mbrtowc = yes; then
9905 $as_echo "#define HAVE_MBRTOWC 1" >>confdefs.h
9910 ac_fn_c_check_header_mongrel "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default"
9911 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
9913 $as_echo "#define DYNAMIC 1" >>confdefs.h
9915 if test "$GCC" = yes
9917 # Add others here as appropriate,
9918 # one day use GNU libtool.
9919 # 3/2010: Used to have cygwin here but removed since
9920 # we get complaints that -export-dynamic doesn't work.
9921 if uname | $EGREP -i 'linux|freebsd' > /dev/null
9923 LDFLAGS="$LDFLAGS -export-dynamic"
9927 # Check this separately. Some systems have dlopen
9928 # in libc. Notably freebsd and cygwin.
9929 # HP-NSK has it in zrldsrl
9930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
9931 $as_echo_n "checking for library containing dlopen... " >&6; }
9932 if ${ac_cv_search_dlopen+:} false; then :
9933 $as_echo_n "(cached) " >&6
9935 ac_func_search_save_LIBS=$LIBS
9936 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9937 /* end confdefs.h. */
9939 /* Override any GCC internal prototype to avoid an error.
9940 Use char because int might match the return type of a GCC
9941 builtin and then its argument prototype would still apply. */
9954 for ac_lib in '' dl zrldsrl; do
9955 if test -z "$ac_lib"; then
9956 ac_res="none required"
9959 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9961 if ac_fn_c_try_link "$LINENO"; then :
9962 ac_cv_search_dlopen=$ac_res
9964 rm -f core conftest.err conftest.$ac_objext \
9966 if ${ac_cv_search_dlopen+:} false; then :
9970 if ${ac_cv_search_dlopen+:} false; then :
9973 ac_cv_search_dlopen=no
9976 LIBS=$ac_func_search_save_LIBS
9978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
9979 $as_echo "$ac_cv_search_dlopen" >&6; }
9980 ac_res=$ac_cv_search_dlopen
9981 if test "$ac_res" != no; then :
9982 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9991 case `(uname) 2> /dev/null` in
9992 *VMS*|*BeOS*|*OS/2*|*MS-DOS*)
9994 $as_echo "#define GETPGRP_VOID 1" >>confdefs.h
9997 *) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getpgrp requires zero arguments" >&5
9998 $as_echo_n "checking whether getpgrp requires zero arguments... " >&6; }
9999 if ${ac_cv_func_getpgrp_void+:} false; then :
10000 $as_echo_n "(cached) " >&6
10002 # Use it with a single arg.
10003 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10004 /* end confdefs.h. */
10005 $ac_includes_default
10014 if ac_fn_c_try_compile "$LINENO"; then :
10015 ac_cv_func_getpgrp_void=no
10017 ac_cv_func_getpgrp_void=yes
10019 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getpgrp_void" >&5
10023 $as_echo "$ac_cv_func_getpgrp_void" >&6; }
10024 if test $ac_cv_func_getpgrp_void = yes; then
10026 $as_echo "#define GETPGRP_VOID 1" >>confdefs.h
10033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for printf %F format" >&5
10034 $as_echo_n "checking for printf %F format... " >&6; }
10035 if test "$cross_compiling" = yes; then :
10038 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10039 /* end confdefs.h. */
10048 sprintf(buf, "%F", 123.45);
10050 if (strcmp(buf, "123.450000") == 0)
10057 if ac_fn_c_try_run "$LINENO"; then :
10062 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10063 conftest.$ac_objext conftest.beam conftest.$ac_ext
10066 if test "$has_f_format" = yes; then
10068 $as_echo "#define PRINTF_HAS_F_FORMAT 1" >>confdefs.h
10071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_f_format" >&5
10072 $as_echo "$has_f_format" >&6; }
10075 gawk_have_sockets=no
10076 # Check for system-dependent location of socket libraries
10079 if test "$ISC" = yes; then
10080 SOCKET_LIBS="-lnsl_s -linet"
10082 # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X
10083 # libraries were built with DECnet support. And karl@cs.umb.edu says
10084 # the Alpha needs dnet_stub (dnet does not exist).
10086 # ADR: Is this needed just for sockets???
10087 # AC_CHECK_LIB(dnet, dnet_ntoa, [SOCKET_LIBS="$SOCKET_LIBS -ldnet"])
10088 # if test $ac_cv_lib_dnet_ntoa = no; then
10089 # AC_CHECK_LIB(dnet_stub, dnet_ntoa,
10090 # [SOCKET_LIBS="$SOCKET_LIBS -ldnet_stub"])
10093 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
10094 # to get the SysV transport functions.
10095 # chad@anasazi.com says the Pyramid MIS-ES running DC/OSx (SVR4)
10097 # The nsl library prevents programs from opening the X display
10098 # on Irix 5.2, according to dickey@clark.net.
10099 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
10100 if test "x$ac_cv_func_gethostbyname" = xyes; then :
10104 if test $ac_cv_func_gethostbyname = no; then
10105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
10106 $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
10107 if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
10108 $as_echo_n "(cached) " >&6
10110 ac_check_lib_save_LIBS=$LIBS
10112 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10113 /* end confdefs.h. */
10115 /* Override any GCC internal prototype to avoid an error.
10116 Use char because int might match the return type of a GCC
10117 builtin and then its argument prototype would still apply. */
10121 char gethostbyname ();
10125 return gethostbyname ();
10130 if ac_fn_c_try_link "$LINENO"; then :
10131 ac_cv_lib_nsl_gethostbyname=yes
10133 ac_cv_lib_nsl_gethostbyname=no
10135 rm -f core conftest.err conftest.$ac_objext \
10136 conftest$ac_exeext conftest.$ac_ext
10137 LIBS=$ac_check_lib_save_LIBS
10139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
10140 $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
10141 if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
10142 SOCKET_LIBS="$SOCKET_LIBS -lnsl"
10147 # lieder@skyler.mavd.honeywell.com says without -lsocket,
10148 # socket/setsockopt and other routines are undefined under SCO ODT
10149 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
10150 # on later versions), says simon@lia.di.epfl.ch: it contains
10151 # gethostby* variants that don't use the nameserver (or something).
10152 # -lsocket must be given before -lnsl if both are needed.
10153 # We assume that if connect needs -lnsl, so does gethostbyname.
10154 ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
10155 if test "x$ac_cv_func_connect" = xyes; then :
10159 if test $ac_cv_func_connect = no; then
10160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
10161 $as_echo_n "checking for connect in -lsocket... " >&6; }
10162 if ${ac_cv_lib_socket_connect+:} false; then :
10163 $as_echo_n "(cached) " >&6
10165 ac_check_lib_save_LIBS=$LIBS
10166 LIBS="-lsocket $SOCKET_LIBS $LIBS"
10167 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10168 /* end confdefs.h. */
10170 /* Override any GCC internal prototype to avoid an error.
10171 Use char because int might match the return type of a GCC
10172 builtin and then its argument prototype would still apply. */
10185 if ac_fn_c_try_link "$LINENO"; then :
10186 ac_cv_lib_socket_connect=yes
10188 ac_cv_lib_socket_connect=no
10190 rm -f core conftest.err conftest.$ac_objext \
10191 conftest$ac_exeext conftest.$ac_ext
10192 LIBS=$ac_check_lib_save_LIBS
10194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
10195 $as_echo "$ac_cv_lib_socket_connect" >&6; }
10196 if test "x$ac_cv_lib_socket_connect" = xyes; then :
10197 SOCKET_LIBS="-lsocket $SOCKET_LIBS"
10198 gawk_have_sockets=yes
10202 gawk_have_sockets=yes
10206 if test "${gawk_have_sockets}" = "yes"
10208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the socket library calls" >&5
10209 $as_echo_n "checking where to find the socket library calls... " >&6; }
10210 case "${SOCKET_LIBS}" in
10211 ?*) gawk_lib_loc="${SOCKET_LIBS}" ;;
10212 *) gawk_lib_loc="the standard library" ;;
10214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${gawk_lib_loc}" >&5
10215 $as_echo "${gawk_lib_loc}" >&6; }
10218 $as_echo "#define HAVE_SOCKETS 1" >>confdefs.h
10225 # Check whether --with-readline was given.
10226 if test "${with_readline+set}" = set; then :
10227 withval=$with_readline; _do_readline=$withval
10233 if test "$_do_readline" != "no" ; then
10234 if test -d "$withval" ; then
10235 CPPFLAGS="${CPPFLAGS} -I$withval/include"
10236 LDFLAGS="${LDFLAGS} -L$withval/lib"
10239 for _termcap in "" "-ltermcap" "-lcurses" "-lncurses" ; do
10240 _readline_save_libs=$LIBS
10241 _combo="-lreadline${_termcap:+ $_termcap}"
10242 LIBS="$LIBS $_combo"
10244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether readline via \"$_combo\" is present and sane" >&5
10245 $as_echo_n "checking whether readline via \"$_combo\" is present and sane... " >&6; }
10247 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10248 /* end confdefs.h. */
10252 #include <readline/readline.h>
10253 #include <readline/history.h>
10259 rl_completion_func_t *completer;
10260 add_history("foobar");
10261 rl_catch_signals=0;
10262 rl_inhibit_completion=0;
10263 rl_attempted_completion_function=NULL;
10264 rl_completion_matches(NULL,NULL);
10270 if ac_fn_c_try_link "$LINENO"; then :
10271 _found_readline=yes
10275 rm -f core conftest.err conftest.$ac_objext \
10276 conftest$ac_exeext conftest.$ac_ext
10278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_found_readline" >&5
10279 $as_echo "$_found_readline" >&6; }
10281 LIBS=$_readline_save_libs
10283 if test $_found_readline = yes ; then
10285 $as_echo "#define HAVE_LIBREADLINE 1" >>confdefs.h
10287 LIBREADLINE=$_combo
10294 unset _readline_save_libs
10296 unset _found_readline
10300 ac_fn_c_check_member "$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "$ac_includes_default"
10301 if test "x$ac_cv_member_struct_stat_st_blksize" = xyes; then :
10303 cat >>confdefs.h <<_ACEOF
10304 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
10308 $as_echo "#define HAVE_ST_BLKSIZE 1" >>confdefs.h
10313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
10314 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
10315 if ${ac_cv_header_time+:} false; then :
10316 $as_echo_n "(cached) " >&6
10318 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10319 /* end confdefs.h. */
10320 #include <sys/types.h>
10321 #include <sys/time.h>
10327 if ((struct tm *) 0)
10333 if ac_fn_c_try_compile "$LINENO"; then :
10334 ac_cv_header_time=yes
10336 ac_cv_header_time=no
10338 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
10341 $as_echo "$ac_cv_header_time" >&6; }
10342 if test $ac_cv_header_time = yes; then
10344 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
10348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
10349 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
10350 if ${ac_cv_struct_tm+:} false; then :
10351 $as_echo_n "(cached) " >&6
10353 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10354 /* end confdefs.h. */
10355 #include <sys/types.h>
10362 int *p = &tm.tm_sec;
10368 if ac_fn_c_try_compile "$LINENO"; then :
10369 ac_cv_struct_tm=time.h
10371 ac_cv_struct_tm=sys/time.h
10373 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
10376 $as_echo "$ac_cv_struct_tm" >&6; }
10377 if test $ac_cv_struct_tm = sys/time.h; then
10379 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
10383 ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
10384 #include <$ac_cv_struct_tm>
10387 if test "x$ac_cv_member_struct_tm_tm_zone" = xyes; then :
10389 cat >>confdefs.h <<_ACEOF
10390 #define HAVE_STRUCT_TM_TM_ZONE 1
10396 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
10398 $as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
10401 ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
10403 if test "x$ac_cv_have_decl_tzname" = xyes; then :
10409 cat >>confdefs.h <<_ACEOF
10410 #define HAVE_DECL_TZNAME $ac_have_decl
10413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
10414 $as_echo_n "checking for tzname... " >&6; }
10415 if ${ac_cv_var_tzname+:} false; then :
10416 $as_echo_n "(cached) " >&6
10418 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10419 /* end confdefs.h. */
10421 #if !HAVE_DECL_TZNAME
10422 extern char *tzname[];
10428 return tzname[0][0];
10433 if ac_fn_c_try_link "$LINENO"; then :
10434 ac_cv_var_tzname=yes
10436 ac_cv_var_tzname=no
10438 rm -f core conftest.err conftest.$ac_objext \
10439 conftest$ac_exeext conftest.$ac_ext
10441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
10442 $as_echo "$ac_cv_var_tzname" >&6; }
10443 if test $ac_cv_var_tzname = yes; then
10445 $as_echo "#define HAVE_TZNAME 1" >>confdefs.h
10451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether char is unsigned" >&5
10452 $as_echo_n "checking whether char is unsigned... " >&6; }
10453 if ${ac_cv_c_char_unsigned+:} false; then :
10454 $as_echo_n "(cached) " >&6
10456 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10457 /* end confdefs.h. */
10458 $ac_includes_default
10462 static int test_array [1 - 2 * !(((char) -1) < 0)];
10469 if ac_fn_c_try_compile "$LINENO"; then :
10470 ac_cv_c_char_unsigned=no
10472 ac_cv_c_char_unsigned=yes
10474 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_char_unsigned" >&5
10477 $as_echo "$ac_cv_c_char_unsigned" >&6; }
10478 if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
10479 $as_echo "#define __CHAR_UNSIGNED__ 1" >>confdefs.h
10483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
10484 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
10485 if ${ac_cv_c_const+:} false; then :
10486 $as_echo_n "(cached) " >&6
10488 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10489 /* end confdefs.h. */
10494 /* FIXME: Include the comments suggested by Paul. */
10495 #ifndef __cplusplus
10496 /* Ultrix mips cc rejects this. */
10497 typedef int charset[2];
10499 /* SunOS 4.1.1 cc rejects this. */
10500 char const *const *pcpcc;
10502 /* NEC SVR4.0.2 mips cc rejects this. */
10503 struct point {int x, y;};
10504 static struct point const zero = {0,0};
10505 /* AIX XL C 1.02.0.0 rejects this.
10506 It does not let you subtract one const X* pointer from another in
10507 an arm of an if-expression whose if-part is not a constant
10509 const char *g = "string";
10510 pcpcc = &g + (g ? g-g : 0);
10511 /* HPUX 7.0 cc rejects these. */
10513 ppc = (char**) pcpcc;
10514 pcpcc = (char const *const *) ppc;
10515 { /* SCO 3.2v4 cc rejects this. */
10517 char const *s = 0 ? (char *) 0 : (char const *) 0;
10522 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
10523 int x[] = {25, 17};
10524 const int *foo = &x[0];
10527 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
10528 typedef const int *iptr;
10532 { /* AIX XL C 1.02.0.0 rejects this saying
10533 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
10534 struct s { int j; const int *ap[3]; };
10535 struct s *b; b->j = 5;
10537 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
10538 const int foo = 10;
10539 if (!foo) return 0;
10541 return !cs[0] && !zero.x;
10548 if ac_fn_c_try_compile "$LINENO"; then :
10553 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
10556 $as_echo "$ac_cv_c_const" >&6; }
10557 if test $ac_cv_c_const = no; then
10559 $as_echo "#define const /**/" >>confdefs.h
10563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
10564 $as_echo_n "checking for C/C++ restrict keyword... " >&6; }
10565 if ${ac_cv_c_restrict+:} false; then :
10566 $as_echo_n "(cached) " >&6
10568 ac_cv_c_restrict=no
10569 # The order here caters to the fact that C++ does not require restrict.
10570 for ac_kw in __restrict __restrict__ _Restrict restrict; do
10571 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10572 /* end confdefs.h. */
10573 typedef int * int_ptr;
10574 int foo (int_ptr $ac_kw ip) {
10581 int * $ac_kw t = s;
10588 if ac_fn_c_try_compile "$LINENO"; then :
10589 ac_cv_c_restrict=$ac_kw
10591 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10592 test "$ac_cv_c_restrict" != no && break
10596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
10597 $as_echo "$ac_cv_c_restrict" >&6; }
10599 case $ac_cv_c_restrict in
10601 no) $as_echo "#define restrict /**/" >>confdefs.h
10603 *) cat >>confdefs.h <<_ACEOF
10604 #define restrict $ac_cv_c_restrict
10609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
10610 $as_echo_n "checking for inline... " >&6; }
10611 if ${ac_cv_c_inline+:} false; then :
10612 $as_echo_n "(cached) " >&6
10615 for ac_kw in inline __inline__ __inline; do
10616 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10617 /* end confdefs.h. */
10618 #ifndef __cplusplus
10620 static $ac_kw foo_t static_foo () {return 0; }
10621 $ac_kw foo_t foo () {return 0; }
10625 if ac_fn_c_try_compile "$LINENO"; then :
10626 ac_cv_c_inline=$ac_kw
10628 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10629 test "$ac_cv_c_inline" != no && break
10633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
10634 $as_echo "$ac_cv_c_inline" >&6; }
10636 case $ac_cv_c_inline in
10639 case $ac_cv_c_inline in
10641 *) ac_val=$ac_cv_c_inline;;
10643 cat >>confdefs.h <<_ACEOF
10644 #ifndef __cplusplus
10645 #define inline $ac_val
10651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for preprocessor stringizing operator" >&5
10652 $as_echo_n "checking for preprocessor stringizing operator... " >&6; }
10653 if ${ac_cv_c_stringize+:} false; then :
10654 $as_echo_n "(cached) " >&6
10656 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10657 /* end confdefs.h. */
10660 char *s = x(teststring);
10662 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10663 $EGREP "#teststring" >/dev/null 2>&1; then :
10664 ac_cv_c_stringize=no
10666 ac_cv_c_stringize=yes
10671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stringize" >&5
10672 $as_echo "$ac_cv_c_stringize" >&6; }
10673 if test $ac_cv_c_stringize = yes; then
10675 $as_echo "#define HAVE_STRINGIZE 1" >>confdefs.h
10680 ac_config_headers="$ac_config_headers config.h:configh.in"
10684 ac_config_files="$ac_config_files Makefile awklib/Makefile doc/Makefile po/Makefile.in test/Makefile"
10686 cat >confcache <<\_ACEOF
10687 # This file is a shell script that caches the results of configure
10688 # tests run on this system so they can be shared between configure
10689 # scripts and configure runs, see configure's option --config-cache.
10690 # It is not useful on other systems. If it contains results you don't
10691 # want to keep, you may remove or edit it.
10693 # config.status only pays attention to the cache file if you give it
10694 # the --recheck option to rerun configure.
10696 # `ac_cv_env_foo' variables (set or unset) will be overridden when
10697 # loading this file, other *unset* `ac_cv_foo' will be assigned the
10698 # following values.
10702 # The following way of writing the cache mishandles newlines in values,
10703 # but we know of no workaround that is simple, portable, and efficient.
10704 # So, we kill variables containing newlines.
10705 # Ultrix sh set writes to stderr and can't be redirected directly,
10706 # and sets the high bit in the cache file unless we assign to the vars.
10708 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
10709 eval ac_val=\$$ac_var
10713 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
10714 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
10717 _ | IFS | as_nl) ;; #(
10718 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
10719 *) { eval $ac_var=; unset $ac_var;} ;;
10725 case $as_nl`(ac_space=' '; set) 2>&1` in #(
10726 *${as_nl}ac_space=\ *)
10727 # `set' does not quote correctly, so add quotes: double-quote
10728 # substitution turns \\\\ into \\, and sed turns \\ into \.
10731 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
10734 # `set' quotes correctly as required by POSIX, so do not add quotes.
10735 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
10744 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
10746 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
10748 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
10749 if test -w "$cache_file"; then
10750 if test "x$cache_file" != "x/dev/null"; then
10751 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
10752 $as_echo "$as_me: updating cache $cache_file" >&6;}
10753 if test ! -f "$cache_file" || test -h "$cache_file"; then
10754 cat confcache >"$cache_file"
10756 case $cache_file in #(
10758 mv -f confcache "$cache_file"$$ &&
10759 mv -f "$cache_file"$$ "$cache_file" ;; #(
10761 mv -f confcache "$cache_file" ;;
10766 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
10767 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
10772 test "x$prefix" = xNONE && prefix=$ac_default_prefix
10773 # Let make expand exec_prefix.
10774 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
10776 DEFS=-DHAVE_CONFIG_H
10781 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
10782 # 1. Remove the extension, and $U if already installed.
10783 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
10784 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
10785 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
10786 # will be set to the directory where LIBOBJS objects are built.
10787 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
10788 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
10790 LIBOBJS=$ac_libobjs
10792 LTLIBOBJS=$ac_ltlibobjs
10795 if test -n "$EXEEXT"; then
10797 am__EXEEXT_FALSE='#'
10799 am__EXEEXT_TRUE='#'
10803 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
10804 as_fn_error $? "conditional \"AMDEP\" was never defined.
10805 Usually this means the macro was only invoked conditionally." "$LINENO" 5
10807 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
10808 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
10809 Usually this means the macro was only invoked conditionally." "$LINENO" 5
10811 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
10812 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
10813 Usually this means the macro was only invoked conditionally." "$LINENO" 5
10816 : "${CONFIG_STATUS=./config.status}"
10818 ac_clean_files_save=$ac_clean_files
10819 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
10820 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
10821 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
10823 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
10825 # Generated by $as_me.
10826 # Run this file to recreate the current configuration.
10827 # Compiler output produced by configure, useful for debugging
10828 # configure, is in config.log if it exists.
10831 ac_cs_recheck=false
10834 SHELL=\${CONFIG_SHELL-$SHELL}
10837 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
10838 ## -------------------- ##
10839 ## M4sh Initialization. ##
10840 ## -------------------- ##
10842 # Be more Bourne compatible
10843 DUALCASE=1; export DUALCASE # for MKS sh
10844 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
10847 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
10848 # is contrary to our usage. Disable this feature.
10849 alias -g '${1+"$@"}'='"$@"'
10850 setopt NO_GLOB_SUBST
10852 case `(set -o) 2>/dev/null` in #(
10864 # Printing a long string crashes Solaris 7 /usr/bin/printf.
10865 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
10866 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
10867 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
10868 # Prefer a ksh shell builtin over an external printf program on Solaris,
10869 # but without wasting forks for bash or zsh.
10870 if test -z "$BASH_VERSION$ZSH_VERSION" \
10871 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
10872 as_echo='print -r --'
10873 as_echo_n='print -rn --'
10874 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
10875 as_echo='printf %s\n'
10876 as_echo_n='printf %s'
10878 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
10879 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
10880 as_echo_n='/usr/ucb/echo -n'
10882 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
10883 as_echo_n_body='eval
10887 expr "X$arg" : "X\\(.*\\)$as_nl";
10888 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
10890 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
10892 export as_echo_n_body
10893 as_echo_n='sh -c $as_echo_n_body as_echo'
10895 export as_echo_body
10896 as_echo='sh -c $as_echo_body as_echo'
10899 # The user is always right.
10900 if test "${PATH_SEPARATOR+set}" != set; then
10902 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
10903 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
10910 # We need space, tab and new line, in precisely that order. Quoting is
10911 # there to prevent editors from complaining about space-tab.
10912 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
10913 # splitting by setting IFS to empty value.)
10916 # Find who we are. Look in the path if we contain no directory separator.
10919 *[\\/]* ) as_myself=$0 ;;
10920 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10921 for as_dir in $PATH
10924 test -z "$as_dir" && as_dir=.
10925 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
10931 # We did not find ourselves, most probably we were run as `sh COMMAND'
10932 # in which case we are not to be found in the path.
10933 if test "x$as_myself" = x; then
10936 if test ! -f "$as_myself"; then
10937 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
10941 # Unset variables that we do not need and which cause bugs (e.g. in
10942 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
10943 # suppresses any "Segmentation fault" message there. '((' could
10944 # trigger a bug in pdksh 5.2.14.
10945 for as_var in BASH_ENV ENV MAIL MAILPATH
10946 do eval test x\${$as_var+set} = xset \
10947 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
10960 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10963 # as_fn_error STATUS ERROR [LINENO LOG_FD]
10964 # ----------------------------------------
10965 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
10966 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
10967 # script with STATUS, using 1 if that was 0.
10970 as_status=$1; test $as_status -eq 0 && as_status=1
10972 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
10973 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
10975 $as_echo "$as_me: error: $2" >&2
10976 as_fn_exit $as_status
10980 # as_fn_set_status STATUS
10981 # -----------------------
10982 # Set $? to STATUS, without forking.
10983 as_fn_set_status ()
10986 } # as_fn_set_status
10988 # as_fn_exit STATUS
10989 # -----------------
10990 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
10994 as_fn_set_status $1
11000 # Portably unset VAR.
11003 { eval $1=; unset $1;}
11005 as_unset=as_fn_unset
11006 # as_fn_append VAR VALUE
11007 # ----------------------
11008 # Append the text in VALUE to the end of the definition contained in VAR. Take
11009 # advantage of any shell optimizations that allow amortized linear growth over
11010 # repeated appends, instead of the typical quadratic growth present in naive
11012 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
11013 eval 'as_fn_append ()
11024 # as_fn_arith ARG...
11025 # ------------------
11026 # Perform arithmetic evaluation on the ARGs, and store the result in the
11027 # global $as_val. Take advantage of shells that can avoid forks. The arguments
11028 # must be portable across $(()) and expr.
11029 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
11030 eval 'as_fn_arith ()
11037 as_val=`expr "$@" || test $? -eq 1`
11042 if expr a : '\(a\)' >/dev/null 2>&1 &&
11043 test "X`expr 00001 : '.*\(...\)'`" = X001; then
11049 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
11050 as_basename=basename
11055 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
11061 as_me=`$as_basename -- "$0" ||
11062 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
11063 X"$0" : 'X\(//\)$' \| \
11064 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
11066 sed '/^.*\/\([^/][^/]*\)\/*$/{
11080 # Avoid depending upon Character Ranges.
11081 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
11082 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11083 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
11084 as_cr_digits='0123456789'
11085 as_cr_alnum=$as_cr_Letters$as_cr_digits
11087 ECHO_C= ECHO_N= ECHO_T=
11088 case `echo -n x` in #(((((
11090 case `echo 'xy\c'` in
11091 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
11093 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
11100 rm -f conf$$ conf$$.exe conf$$.file
11101 if test -d conf$$.dir; then
11102 rm -f conf$$.dir/conf$$.file
11105 mkdir conf$$.dir 2>/dev/null
11107 if (echo >conf$$.file) 2>/dev/null; then
11108 if ln -s conf$$.file conf$$ 2>/dev/null; then
11110 # ... but there are two gotchas:
11111 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
11112 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
11113 # In both cases, we have to default to `cp -p'.
11114 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
11116 elif ln conf$$.file conf$$ 2>/dev/null; then
11124 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
11125 rmdir conf$$.dir 2>/dev/null
11130 # Create "$as_dir" as a directory, including parents if necessary.
11135 -*) as_dir=./$as_dir;;
11137 test -d "$as_dir" || eval $as_mkdir_p || {
11141 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
11142 *) as_qdir=$as_dir;;
11144 as_dirs="'$as_qdir' $as_dirs"
11145 as_dir=`$as_dirname -- "$as_dir" ||
11146 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11147 X"$as_dir" : 'X\(//\)[^/]' \| \
11148 X"$as_dir" : 'X\(//\)$' \| \
11149 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
11150 $as_echo X"$as_dir" |
11151 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11155 /^X\(\/\/\)[^/].*/{
11168 test -d "$as_dir" && break
11170 test -z "$as_dirs" || eval "mkdir $as_dirs"
11171 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
11175 if mkdir -p . 2>/dev/null; then
11176 as_mkdir_p='mkdir -p "$as_dir"'
11178 test -d ./-p && rmdir ./-p
11182 if test -x / >/dev/null 2>&1; then
11183 as_test_x='test -x'
11185 if ls -dL / >/dev/null 2>&1; then
11192 if test -d "$1"; then
11198 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
11199 ???[sx]*):;;*)false;;esac;fi
11203 as_executable_p=$as_test_x
11205 # Sed expression to map a string onto a valid CPP name.
11206 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
11208 # Sed expression to map a string onto a valid variable name.
11209 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
11213 ## ----------------------------------- ##
11214 ## Main body of $CONFIG_STATUS script. ##
11215 ## ----------------------------------- ##
11217 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
11219 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11220 # Save the log message, to keep $0 and so on meaningful, and to
11221 # report actual input values of CONFIG_FILES etc. instead of their
11222 # values after options handling.
11224 This file was extended by GNU Awk $as_me 4.0.1, which was
11225 generated by GNU Autoconf 2.68. Invocation command line was
11227 CONFIG_FILES = $CONFIG_FILES
11228 CONFIG_HEADERS = $CONFIG_HEADERS
11229 CONFIG_LINKS = $CONFIG_LINKS
11230 CONFIG_COMMANDS = $CONFIG_COMMANDS
11233 on `(hostname || uname -n) 2>/dev/null | sed 1q`
11238 case $ac_config_files in *"
11239 "*) set x $ac_config_files; shift; ac_config_files=$*;;
11242 case $ac_config_headers in *"
11243 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
11247 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11248 # Files that config.status was made for.
11249 config_files="$ac_config_files"
11250 config_headers="$ac_config_headers"
11251 config_commands="$ac_config_commands"
11255 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11257 \`$as_me' instantiates files and other configuration actions
11258 from templates according to the current configuration. Unless the files
11259 and actions are specified as TAGs, all are instantiated by default.
11261 Usage: $0 [OPTION]... [TAG]...
11263 -h, --help print this help, then exit
11264 -V, --version print version number and configuration settings, then exit
11265 --config print configuration, then exit
11266 -q, --quiet, --silent
11267 do not print progress messages
11268 -d, --debug don't remove temporary files
11269 --recheck update $as_me by reconfiguring in the same conditions
11270 --file=FILE[:TEMPLATE]
11271 instantiate the configuration file FILE
11272 --header=FILE[:TEMPLATE]
11273 instantiate the configuration header FILE
11275 Configuration files:
11278 Configuration headers:
11281 Configuration commands:
11284 Report bugs to <bug-gawk@gnu.org>.
11285 GNU Awk home page: <http://www.gnu.org/software/gawk/>.
11286 General help using GNU software: <http://www.gnu.org/gethelp/>."
11289 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11290 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
11292 GNU Awk config.status 4.0.1
11293 configured by $0, generated by GNU Autoconf 2.68,
11294 with options \\"\$ac_cs_config\\"
11296 Copyright (C) 2010 Free Software Foundation, Inc.
11297 This config.status script is free software; the Free Software Foundation
11298 gives unlimited permission to copy, distribute and modify it."
11305 test -n "\$AWK" || AWK=awk
11308 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11309 # The default lists apply if the user does not specify any file.
11315 ac_option=`expr "X$1" : 'X\([^=]*\)='`
11316 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
11320 ac_option=`expr "X$1" : 'X\([^=]*\)='`
11332 # Handling of the options.
11333 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
11335 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
11336 $as_echo "$ac_cs_version"; exit ;;
11337 --config | --confi | --conf | --con | --co | --c )
11338 $as_echo "$ac_cs_config"; exit ;;
11339 --debug | --debu | --deb | --de | --d | -d )
11341 --file | --fil | --fi | --f )
11344 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
11345 '') as_fn_error $? "missing file argument" ;;
11347 as_fn_append CONFIG_FILES " '$ac_optarg'"
11348 ac_need_defaults=false;;
11349 --header | --heade | --head | --hea )
11352 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
11354 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
11355 ac_need_defaults=false;;
11357 # Conflict between --help and --header
11358 as_fn_error $? "ambiguous option: \`$1'
11359 Try \`$0 --help' for more information.";;
11360 --help | --hel | -h )
11361 $as_echo "$ac_cs_usage"; exit ;;
11362 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
11363 | -silent | --silent | --silen | --sile | --sil | --si | --s)
11366 # This is an error.
11367 -*) as_fn_error $? "unrecognized option: \`$1'
11368 Try \`$0 --help' for more information." ;;
11370 *) as_fn_append ac_config_targets " $1"
11371 ac_need_defaults=false ;;
11377 ac_configure_extra_args=
11379 if $ac_cs_silent; then
11381 ac_configure_extra_args="$ac_configure_extra_args --silent"
11385 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11386 if \$ac_cs_recheck; then
11387 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
11389 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
11390 CONFIG_SHELL='$SHELL'
11391 export CONFIG_SHELL
11396 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11400 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
11401 ## Running $as_me. ##
11407 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11411 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
11412 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
11413 # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
11414 # from automake < 1.5.
11415 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
11416 # Capture the value of LINGUAS because we need it to compute CATALOGS.
11417 LINGUAS="${LINGUAS-%UNSET%}"
11422 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11424 # Handling of arguments.
11425 for ac_config_target in $ac_config_targets
11427 case $ac_config_target in
11428 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
11429 "po-directories") CONFIG_COMMANDS="$CONFIG_COMMANDS po-directories" ;;
11430 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:configh.in" ;;
11431 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
11432 "awklib/Makefile") CONFIG_FILES="$CONFIG_FILES awklib/Makefile" ;;
11433 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
11434 "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
11435 "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;;
11437 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
11442 # If the user did not use the arguments to specify the items to instantiate,
11443 # then the envvar interface is used. Set only those that are not.
11444 # We use the long form for the default assignment because of an extremely
11445 # bizarre bug on SunOS 4.1.3.
11446 if $ac_need_defaults; then
11447 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
11448 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
11449 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
11452 # Have a temporary directory for convenience. Make it in the build tree
11453 # simply because there is no reason against having it here, and in addition,
11454 # creating and moving files from /tmp can sometimes cause problems.
11455 # Hook for its removal unless debugging.
11456 # Note that there is a small window in which the directory will not be cleaned:
11457 # after its creation but before its name has been assigned to `$tmp'.
11461 trap 'exit_status=$?
11462 : "${ac_tmp:=$tmp}"
11463 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
11465 trap 'as_fn_exit 1' 1 2 13 15
11467 # Create a (secure) tmp directory for tmp files.
11470 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
11474 tmp=./conf$$-$RANDOM
11475 (umask 077 && mkdir "$tmp")
11476 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
11479 # Set up the scripts for CONFIG_FILES section.
11480 # No need to generate them if there are no CONFIG_FILES.
11481 # This happens for instance with `./config.status config.h'.
11482 if test -n "$CONFIG_FILES"; then
11485 ac_cr=`echo X | tr X '\015'`
11486 # On cygwin, bash can eat \r inside `` if the user requested igncr.
11487 # But we know of no other shell where ac_cr would be empty at this
11488 # point, so we can use a bashism as a fallback.
11489 if test "x$ac_cr" = x; then
11490 eval ac_cr=\$\'\\r\'
11492 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
11493 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
11496 ac_cs_awk_cr=$ac_cr
11499 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
11504 echo "cat >conf$$subs.awk <<_ACEOF" &&
11505 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
11507 } >conf$$subs.sh ||
11508 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
11509 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
11511 for ac_last_try in false false false false false :; do
11512 . ./conf$$subs.sh ||
11513 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
11515 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
11516 if test $ac_delim_n = $ac_delim_num; then
11518 elif $ac_last_try; then
11519 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
11521 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
11524 rm -f conf$$subs.sh
11526 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11527 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
11531 s/^/S["/; s/!.*/"]=/
11541 s/\(.\{148\}\)..*/\1/
11543 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
11548 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
11555 s/\(.\{148\}\)..*/\1/
11557 s/["\\]/\\&/g; s/^/"/; s/$/"/
11561 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
11566 ' <conf$$subs.awk | sed '
11571 ' >>$CONFIG_STATUS || ac_write_fail=1
11572 rm -f conf$$subs.awk
11573 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11575 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
11576 for (key in S) S_is_set[key] = 1
11582 nfields = split(line, field, "@")
11584 len = length(field[1])
11585 for (i = 2; i < nfields; i++) {
11587 keylen = length(key)
11588 if (S_is_set[key]) {
11590 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
11591 len += length(value) + length(field[++i])
11602 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11603 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
11604 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
11607 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
11608 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
11611 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
11612 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
11613 # trailing colons and then remove the whole line if VPATH becomes empty
11614 # (actually we leave an empty line to preserve line numbers).
11615 if test "x$srcdir" = x.; then
11616 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
11634 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11635 fi # test -n "$CONFIG_FILES"
11637 # Set up the scripts for CONFIG_HEADERS section.
11638 # No need to generate them if there are no CONFIG_HEADERS.
11639 # This happens for instance with `./config.status Makefile'.
11640 if test -n "$CONFIG_HEADERS"; then
11641 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
11645 # Transform confdefs.h into an awk script `defines.awk', embedded as
11646 # here-document in config.status, that substitutes the proper values into
11647 # config.h.in to produce config.h.
11649 # Create a delimiter string that does not exist in confdefs.h, to ease
11650 # handling of long lines.
11652 for ac_last_try in false false :; do
11653 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
11654 if test -z "$ac_tt"; then
11656 elif $ac_last_try; then
11657 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
11659 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
11663 # For the awk script, D is an array of macro values keyed by name,
11664 # likewise P contains macro parameters if any. Preserve backslash
11665 # newline sequences.
11667 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
11669 s/.\{148\}/&'"$ac_delim"'/g
11672 s/^[ ]*#[ ]*define[ ][ ]*/ /
11679 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
11681 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
11685 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
11686 D["\1"]=" \3\\\\\\n"\\/p
11688 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
11693 s/.\{148\}/&'"$ac_delim"'/g
11698 s/["\\]/\\&/g; s/^/"/; s/$/"/p
11701 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
11703 ' <confdefs.h | sed '
11704 s/'"$ac_delim"'/"\\\
11705 "/g' >>$CONFIG_STATUS || ac_write_fail=1
11707 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11708 for (key in D) D_is_set[key] = 1
11711 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
11713 split(line, arg, " ")
11714 if (arg[1] == "#") {
11718 defundef = substr(arg[1], 2)
11721 split(mac1, mac2, "(") #)
11723 prefix = substr(line, 1, index(line, defundef) - 1)
11724 if (D_is_set[macro]) {
11725 # Preserve the white space surrounding the "#".
11726 print prefix "define", macro P[macro] D[macro]
11729 # Replace #undef with comments. This is necessary, for example,
11730 # in the case of _POSIX_SOURCE, which is predefined and required
11731 # on some systems where configure will not decide to define it.
11732 if (defundef == "undef") {
11733 print "/*", prefix defundef, macro, "*/"
11741 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11742 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
11743 fi # test -n "$CONFIG_HEADERS"
11746 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
11751 :[FHLC]) ac_mode=$ac_tag; continue;;
11753 case $ac_mode$ac_tag in
11755 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
11756 :[FH]-) ac_tag=-:-;;
11757 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
11774 -) ac_f="$ac_tmp/stdin";;
11775 *) # Look for the file first in the build tree, then in the source tree
11776 # (if the path is not absolute). The absolute path cannot be DOS-style,
11777 # because $ac_f cannot contain `:'.
11781 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
11783 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
11785 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
11786 as_fn_append ac_file_inputs " '$ac_f'"
11789 # Let's still pretend it is `configure' which instantiates (i.e., don't
11790 # use $as_me), people would be surprised to read:
11791 # /* config.h. Generated by config.status. */
11792 configure_input='Generated from '`
11793 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
11795 if test x"$ac_file" != x-; then
11796 configure_input="$ac_file. $configure_input"
11797 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
11798 $as_echo "$as_me: creating $ac_file" >&6;}
11800 # Neutralize special characters interpreted by sed in replacement strings.
11801 case $configure_input in #(
11802 *\&* | *\|* | *\\* )
11803 ac_sed_conf_input=`$as_echo "$configure_input" |
11804 sed 's/[\\\\&|]/\\\\&/g'`;; #(
11805 *) ac_sed_conf_input=$configure_input;;
11809 *:-:* | *:-) cat >"$ac_tmp/stdin" \
11810 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
11815 ac_dir=`$as_dirname -- "$ac_file" ||
11816 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11817 X"$ac_file" : 'X\(//\)[^/]' \| \
11818 X"$ac_file" : 'X\(//\)$' \| \
11819 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
11820 $as_echo X"$ac_file" |
11821 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11825 /^X\(\/\/\)[^/].*/{
11838 as_dir="$ac_dir"; as_fn_mkdir_p
11842 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
11844 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
11845 # A ".." for each directory in $ac_dir_suffix.
11846 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
11847 case $ac_top_builddir_sub in
11848 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
11849 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
11852 ac_abs_top_builddir=$ac_pwd
11853 ac_abs_builddir=$ac_pwd$ac_dir_suffix
11854 # for backward compatibility:
11855 ac_top_builddir=$ac_top_build_prefix
11858 .) # We are building in place.
11860 ac_top_srcdir=$ac_top_builddir_sub
11861 ac_abs_top_srcdir=$ac_pwd ;;
11862 [\\/]* | ?:[\\/]* ) # Absolute name.
11863 ac_srcdir=$srcdir$ac_dir_suffix;
11864 ac_top_srcdir=$srcdir
11865 ac_abs_top_srcdir=$srcdir ;;
11866 *) # Relative name.
11867 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
11868 ac_top_srcdir=$ac_top_build_prefix$srcdir
11869 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
11871 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
11881 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
11882 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
11884 ac_MKDIR_P=$MKDIR_P
11886 [\\/$]* | ?:[\\/]* ) ;;
11887 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
11891 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11892 # If the template does not know about datarootdir, expand it.
11893 # FIXME: This hack should be removed a few years after 2.60.
11894 ac_datarootdir_hack=; ac_datarootdir_seen=
11905 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
11906 *datarootdir*) ac_datarootdir_seen=yes;;
11907 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
11908 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
11909 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
11911 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11912 ac_datarootdir_hack='
11913 s&@datadir@&$datadir&g
11914 s&@docdir@&$docdir&g
11915 s&@infodir@&$infodir&g
11916 s&@localedir@&$localedir&g
11917 s&@mandir@&$mandir&g
11918 s&\\\${datarootdir}&$datarootdir&g' ;;
11922 # Neutralize VPATH when `$srcdir' = `.'.
11923 # Shell code in configure.ac might set extrasub.
11924 # FIXME: do we really want to maintain this feature?
11925 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11926 ac_sed_extra="$ac_vpsub
11929 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11931 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
11932 s|@configure_input@|$ac_sed_conf_input|;t t
11933 s&@top_builddir@&$ac_top_builddir_sub&;t t
11934 s&@top_build_prefix@&$ac_top_build_prefix&;t t
11935 s&@srcdir@&$ac_srcdir&;t t
11936 s&@abs_srcdir@&$ac_abs_srcdir&;t t
11937 s&@top_srcdir@&$ac_top_srcdir&;t t
11938 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
11939 s&@builddir@&$ac_builddir&;t t
11940 s&@abs_builddir@&$ac_abs_builddir&;t t
11941 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
11942 s&@INSTALL@&$ac_INSTALL&;t t
11943 s&@MKDIR_P@&$ac_MKDIR_P&;t t
11944 $ac_datarootdir_hack
11946 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
11947 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
11949 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
11950 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
11951 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
11952 "$ac_tmp/out"`; test -z "$ac_out"; } &&
11953 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
11954 which seems to be undefined. Please make sure it is defined" >&5
11955 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
11956 which seems to be undefined. Please make sure it is defined" >&2;}
11958 rm -f "$ac_tmp/stdin"
11960 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
11961 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
11963 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
11969 if test x"$ac_file" != x-; then
11971 $as_echo "/* $configure_input */" \
11972 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
11973 } >"$ac_tmp/config.h" \
11974 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
11975 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
11976 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
11977 $as_echo "$as_me: $ac_file is unchanged" >&6;}
11980 mv "$ac_tmp/config.h" "$ac_file" \
11981 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
11984 $as_echo "/* $configure_input */" \
11985 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
11986 || as_fn_error $? "could not create -" "$LINENO" 5
11988 # Compute "$ac_file"'s index in $config_headers.
11991 for _am_header in $config_headers :; do
11992 case $_am_header in
11993 $_am_arg | $_am_arg:* )
11996 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
11999 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
12000 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12001 X"$_am_arg" : 'X\(//\)[^/]' \| \
12002 X"$_am_arg" : 'X\(//\)$' \| \
12003 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
12004 $as_echo X"$_am_arg" |
12005 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12009 /^X\(\/\/\)[^/].*/{
12021 s/.*/./; q'`/stamp-h$_am_stamp_count
12024 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
12025 $as_echo "$as_me: executing $ac_file commands" >&6;}
12030 case $ac_file$ac_mode in
12031 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
12032 # Autoconf 2.62 quotes --file arguments for eval, but not when files
12033 # are listed without --file. Let's play safe and only enable the eval
12034 # if we detect the quoting.
12035 case $CONFIG_FILES in
12036 *\'*) eval set x "$CONFIG_FILES" ;;
12037 *) set x $CONFIG_FILES ;;
12042 # Strip MF so we end up with the name of the file.
12043 mf=`echo "$mf" | sed -e 's/:.*$//'`
12044 # Check whether this is an Automake generated Makefile or not.
12045 # We used to match only the files named `Makefile.in', but
12046 # some people rename them; so instead we look at the file content.
12047 # Grep'ing the first line is not enough: some people post-process
12048 # each Makefile.in and add a new line on top of each file to say so.
12049 # Grep'ing the whole file is not good either: AIX grep has a line
12050 # limit of 2048, but all sed's we know have understand at least 4000.
12051 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
12052 dirpart=`$as_dirname -- "$mf" ||
12053 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12054 X"$mf" : 'X\(//\)[^/]' \| \
12055 X"$mf" : 'X\(//\)$' \| \
12056 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
12058 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12062 /^X\(\/\/\)[^/].*/{
12078 # Extract the definition of DEPDIR, am__include, and am__quote
12079 # from the Makefile without running `make'.
12080 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
12081 test -z "$DEPDIR" && continue
12082 am__include=`sed -n 's/^am__include = //p' < "$mf"`
12083 test -z "am__include" && continue
12084 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
12085 # When using ansi2knr, U may be empty or an underscore; expand it
12086 U=`sed -n 's/^U = //p' < "$mf"`
12087 # Find all dependency output files, they are included files with
12088 # $(DEPDIR) in their names. We invoke sed twice because it is the
12089 # simplest approach to changing $(DEPDIR) to its actual value in the
12091 for file in `sed -n "
12092 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
12093 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
12094 # Make sure the directory exists.
12095 test -f "$dirpart/$file" && continue
12096 fdir=`$as_dirname -- "$file" ||
12097 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12098 X"$file" : 'X\(//\)[^/]' \| \
12099 X"$file" : 'X\(//\)$' \| \
12100 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
12101 $as_echo X"$file" |
12102 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12106 /^X\(\/\/\)[^/].*/{
12119 as_dir=$dirpart/$fdir; as_fn_mkdir_p
12120 # echo "creating $dirpart/$file"
12121 echo '# dummy' > "$dirpart/$file"
12126 "po-directories":C)
12127 for ac_file in $CONFIG_FILES; do
12128 # Support "outfile[:infile[:infile...]]"
12130 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
12132 # PO directories have a Makefile.in generated from Makefile.in.in.
12133 case "$ac_file" in */Makefile.in)
12134 # Adjust a relative srcdir.
12135 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
12136 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
12137 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
12138 # In autoconf-2.13 it is called $ac_given_srcdir.
12139 # In autoconf-2.50 it is called $srcdir.
12140 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
12141 case "$ac_given_srcdir" in
12142 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
12143 /*) top_srcdir="$ac_given_srcdir" ;;
12144 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
12146 # Treat a directory as a PO directory if and only if it has a
12147 # POTFILES.in file. This allows packages to have multiple PO
12148 # directories under different names or in different locations.
12149 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
12150 rm -f "$ac_dir/POTFILES"
12151 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
12152 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
12153 POMAKEFILEDEPS="POTFILES.in"
12154 # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
12155 # on $ac_dir but don't depend on user-specified configuration
12157 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
12158 # The LINGUAS file contains the set of available languages.
12159 if test -n "$OBSOLETE_ALL_LINGUAS"; then
12160 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
12162 ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
12163 # Hide the ALL_LINGUAS assigment from automake < 1.5.
12164 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
12165 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
12167 # The set of available languages was given in configure.in.
12168 # Hide the ALL_LINGUAS assigment from automake < 1.5.
12169 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
12172 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
12173 # Compute UPDATEPOFILES
12174 # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
12175 # Compute DUMMYPOFILES
12176 # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
12178 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
12179 case "$ac_given_srcdir" in
12181 *) srcdirpre='$(srcdir)/' ;;
12187 for lang in $ALL_LINGUAS; do
12188 POFILES="$POFILES $srcdirpre$lang.po"
12189 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
12190 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
12191 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
12193 # CATALOGS depends on both $ac_dir and the user's LINGUAS
12194 # environment variable.
12196 if test -n "$ALL_LINGUAS"; then
12197 for presentlang in $ALL_LINGUAS; do
12199 if test "%UNSET%" != "$LINGUAS"; then
12200 desiredlanguages="$LINGUAS"
12202 desiredlanguages="$ALL_LINGUAS"
12204 for desiredlang in $desiredlanguages; do
12205 # Use the presentlang catalog if desiredlang is
12206 # a. equal to presentlang, or
12207 # b. a variant of presentlang (because in this case,
12208 # presentlang can be used as a fallback for messages
12209 # which are not translated in the desiredlang catalog).
12210 case "$desiredlang" in
12211 "$presentlang"*) useit=yes;;
12214 if test $useit = yes; then
12215 INST_LINGUAS="$INST_LINGUAS $presentlang"
12220 if test -n "$INST_LINGUAS"; then
12221 for lang in $INST_LINGUAS; do
12222 CATALOGS="$CATALOGS $lang.gmo"
12225 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
12226 sed -e "/^POTFILES =/r $ac_dir/POTFILES" -e "/^# Makevars/r $ac_given_srcdir/$ac_dir/Makevars" -e "s|@POFILES@|$POFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" -e "s|@POMAKEFILEDEPS@|$POMAKEFILEDEPS|g" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
12227 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
12228 if test -f "$f"; then
12230 *.orig | *.bak | *~) ;;
12231 *) cat "$f" >> "$ac_dir/Makefile" ;;
12246 ac_clean_files=$ac_clean_files_save
12248 test $ac_write_fail = 0 ||
12249 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
12252 # configure is writing to config.log, and then calls config.status.
12253 # config.status does its own redirection, appending to config.log.
12254 # Unfortunately, on DOS this fails, as config.log is still kept open
12255 # by configure, so config.status won't be able to write to it; its
12256 # output is simply discarded. So we exec the FD to /dev/null,
12257 # effectively closing config.log, so it can be properly (re)opened and
12258 # appended to by config.status. When coming back to configure, we
12259 # need to make the FD available again.
12260 if test "$no_create" != yes; then
12262 ac_config_status_args=
12263 test "$silent" = yes &&
12264 ac_config_status_args="$ac_config_status_args --quiet"
12266 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
12268 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
12269 # would make configure fail if this is the last instruction.
12270 $ac_cs_success || as_fn_exit 1
12272 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
12273 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
12274 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}