2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for GNU Awk 4.1.1.
5 # Report bugs to <bug-gawk@gnu.org>.
8 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
17 # Be more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
27 case `(set -o) 2>/dev/null` in #(
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo_n='print -rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55 as_echo_n='/usr/ucb/echo -n'
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
68 as_echo_n='sh -c $as_echo_n_body as_echo'
71 as_echo='sh -c $as_echo_body as_echo'
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
85 # We need space, tab and new line, in precisely that order. Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
91 # Find who we are. Look in the path if we contain no directory separator.
94 *[\\/]* ) as_myself=$0 ;;
95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
99 test -z "$as_dir" && as_dir=.
100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
106 # We did not find ourselves, most probably we were run as `sh COMMAND'
107 # in which case we are not to be found in the path.
108 if test "x$as_myself" = x; then
111 if test ! -f "$as_myself"; then
112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
116 # Unset variables that we do not need and which cause bugs (e.g. in
117 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
118 # suppresses any "Segmentation fault" message there. '((' could
119 # trigger a bug in pdksh 5.2.14.
120 for as_var in BASH_ENV ENV MAIL MAILPATH
121 do eval test x\${$as_var+set} = xset \
122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
135 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
137 # Use a proper internal environment variable to ensure we don't fall
138 # into an infinite loop, continuously re-executing ourselves.
139 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140 _as_can_reexec=no; export _as_can_reexec;
141 # We cannot yet assume a decent shell, so we have to provide a
142 # neutralization value for shells without unset; and this also
143 # works around shells that cannot unset nonexistent variables.
144 # Preserve -v and -x to the replacement shell.
147 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
149 *v*x* | *x*v* ) as_opts=-vx ;;
154 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155 # Admittedly, this is quite paranoid, since all the known shells bail
156 # out after a failed `exec'.
157 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
160 # We don't want this to propagate to other subprocesses.
161 { _as_can_reexec=; unset _as_can_reexec;}
162 if test "x$CONFIG_SHELL" = x; then
163 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
166 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167 # is contrary to our usage. Disable this feature.
168 alias -g '\${1+\"\$@\"}'='\"\$@\"'
171 case \`(set -o) 2>/dev/null\` in #(
179 as_required="as_fn_return () { (exit \$1); }
180 as_fn_success () { as_fn_return 0; }
181 as_fn_failure () { as_fn_return 1; }
182 as_fn_ret_success () { return 0; }
183 as_fn_ret_failure () { return 1; }
186 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
193 exitcode=1; echo positional parameters were not saved.
195 test x\$exitcode = x0 || exit 1
197 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
198 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
199 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
201 test \$(( 1 + 1 )) = 2 || exit 1"
202 if (eval "$as_required") 2>/dev/null; then :
207 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
210 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
212 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
215 test -z "$as_dir" && as_dir=.
219 for as_base in sh bash ksh sh5; do
220 # Try only shells that exist, to save several forks.
221 as_shell=$as_dir/$as_base
222 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
223 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
224 CONFIG_SHELL=$as_shell as_have_required=yes
225 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
233 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
234 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
235 CONFIG_SHELL=$SHELL as_have_required=yes
240 if test "x$CONFIG_SHELL" != x; then :
242 # We cannot yet assume a decent shell, so we have to provide a
243 # neutralization value for shells without unset; and this also
244 # works around shells that cannot unset nonexistent variables.
245 # Preserve -v and -x to the replacement shell.
248 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
250 *v*x* | *x*v* ) as_opts=-vx ;;
255 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
256 # Admittedly, this is quite paranoid, since all the known shells bail
257 # out after a failed `exec'.
258 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
262 if test x$as_have_required = xno; then :
263 $as_echo "$0: This script requires a shell more modern than all"
264 $as_echo "$0: the shells that I found on your system."
265 if test x${ZSH_VERSION+set} = xset ; then
266 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
267 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
269 $as_echo "$0: Please tell bug-autoconf@gnu.org and bug-gawk@gnu.org
270 $0: about your system, including any error possibly output
271 $0: before this message. Then install a modern shell, or
272 $0: manually run the script under such a shell if you do
279 SHELL=${CONFIG_SHELL-/bin/sh}
281 # Unset more variables known to interfere with behavior of common tools.
282 CLICOLOR_FORCE= GREP_OPTIONS=
283 unset CLICOLOR_FORCE GREP_OPTIONS
285 ## --------------------- ##
286 ## M4sh Shell Functions. ##
287 ## --------------------- ##
290 # Portably unset VAR.
293 { eval $1=; unset $1;}
297 # as_fn_set_status STATUS
298 # -----------------------
299 # Set $? to STATUS, without forking.
307 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
317 # Create "$as_dir" as a directory, including parents if necessary.
322 -*) as_dir=./$as_dir;;
324 test -d "$as_dir" || eval $as_mkdir_p || {
328 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
331 as_dirs="'$as_qdir' $as_dirs"
332 as_dir=`$as_dirname -- "$as_dir" ||
333 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
334 X"$as_dir" : 'X\(//\)[^/]' \| \
335 X"$as_dir" : 'X\(//\)$' \| \
336 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
337 $as_echo X"$as_dir" |
338 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
355 test -d "$as_dir" && break
357 test -z "$as_dirs" || eval "mkdir $as_dirs"
358 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
363 # as_fn_executable_p FILE
364 # -----------------------
365 # Test if FILE is an executable regular file.
366 as_fn_executable_p ()
368 test -f "$1" && test -x "$1"
369 } # as_fn_executable_p
370 # as_fn_append VAR VALUE
371 # ----------------------
372 # Append the text in VALUE to the end of the definition contained in VAR. Take
373 # advantage of any shell optimizations that allow amortized linear growth over
374 # repeated appends, instead of the typical quadratic growth present in naive
376 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
377 eval 'as_fn_append ()
390 # Perform arithmetic evaluation on the ARGs, and store the result in the
391 # global $as_val. Take advantage of shells that can avoid forks. The arguments
392 # must be portable across $(()) and expr.
393 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
401 as_val=`expr "$@" || test $? -eq 1`
406 # as_fn_error STATUS ERROR [LINENO LOG_FD]
407 # ----------------------------------------
408 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
409 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
410 # script with STATUS, using 1 if that was 0.
413 as_status=$1; test $as_status -eq 0 && as_status=1
415 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
416 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
418 $as_echo "$as_me: error: $2" >&2
419 as_fn_exit $as_status
422 if expr a : '\(a\)' >/dev/null 2>&1 &&
423 test "X`expr 00001 : '.*\(...\)'`" = X001; then
429 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
435 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
441 as_me=`$as_basename -- "$0" ||
442 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
443 X"$0" : 'X\(//\)$' \| \
444 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
446 sed '/^.*\/\([^/][^/]*\)\/*$/{
460 # Avoid depending upon Character Ranges.
461 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
462 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
463 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
464 as_cr_digits='0123456789'
465 as_cr_alnum=$as_cr_Letters$as_cr_digits
468 as_lineno_1=$LINENO as_lineno_1a=$LINENO
469 as_lineno_2=$LINENO as_lineno_2a=$LINENO
470 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
471 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
472 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
484 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
488 chmod +x "$as_me.lineno" ||
489 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
491 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
492 # already done that, so ensure we don't try to do so again and fall
493 # in an infinite loop. This has already happened in practice.
494 _as_can_reexec=no; export _as_can_reexec
495 # Don't try to exec as it changes $[0], causing all sort of problems
496 # (the dirname of $[0] is not the place where we might find the
497 # original and so on. Autoconf is especially sensitive to this).
499 # Exit status is that of the last command.
503 ECHO_C= ECHO_N= ECHO_T=
504 case `echo -n x` in #(((((
506 case `echo 'xy\c'` in
507 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
509 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
516 rm -f conf$$ conf$$.exe conf$$.file
517 if test -d conf$$.dir; then
518 rm -f conf$$.dir/conf$$.file
521 mkdir conf$$.dir 2>/dev/null
523 if (echo >conf$$.file) 2>/dev/null; then
524 if ln -s conf$$.file conf$$ 2>/dev/null; then
526 # ... but there are two gotchas:
527 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
528 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
529 # In both cases, we have to default to `cp -pR'.
530 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
532 elif ln conf$$.file conf$$ 2>/dev/null; then
540 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
541 rmdir conf$$.dir 2>/dev/null
543 if mkdir -p . 2>/dev/null; then
544 as_mkdir_p='mkdir -p "$as_dir"'
546 test -d ./-p && rmdir ./-p
551 as_executable_p=as_fn_executable_p
553 # Sed expression to map a string onto a valid CPP name.
554 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
556 # Sed expression to map a string onto a valid variable name.
557 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
560 test -n "$DJDIR" || exec 7<&0 </dev/null
564 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
565 # so uname gets run too.
566 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
571 ac_default_prefix=/usr/local
573 ac_config_libobj_dir=.
580 # Identity of this package.
581 PACKAGE_NAME='GNU Awk'
582 PACKAGE_TARNAME='gawk'
583 PACKAGE_VERSION='4.1.1'
584 PACKAGE_STRING='GNU Awk 4.1.1'
585 PACKAGE_BUGREPORT='bug-gawk@gnu.org'
586 PACKAGE_URL='http://www.gnu.org/software/gawk/'
588 # Factoring default headers for most tests.
589 ac_includes_default="\
591 #ifdef HAVE_SYS_TYPES_H
592 # include <sys/types.h>
594 #ifdef HAVE_SYS_STAT_H
595 # include <sys/stat.h>
601 # ifdef HAVE_STDLIB_H
606 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
611 #ifdef HAVE_STRINGS_H
612 # include <strings.h>
614 #ifdef HAVE_INTTYPES_H
615 # include <inttypes.h>
627 enable_option_checking=no
628 ac_subst_vars='am__EXEEXT_FALSE
641 TEST_CROSS_COMPILE_FALSE
642 TEST_CROSS_COMPILE_TRUE
650 XGETTEXT_EXTRA_OPTIONS
658 GETTEXT_MACRO_VERSION
705 INSTALL_STRIP_PROGRAM
747 program_transform_name
760 enable_option_checking
762 with_whiny_user_strftime
764 enable_dependency_tracking
771 with_libsigsegv_prefix
776 ac_precious_vars='build_alias
787 ac_subdirs_all='extension'
789 # Initialize some variables set by options.
791 ac_init_version=false
792 ac_unrecognized_opts=
794 # The variables have the same names as the options, with
795 # dashes changed to underlines.
803 program_transform_name=s,x,x,
811 # Installation directory options.
812 # These are left unexpanded so users can "make install exec_prefix=/foo"
813 # and all the variables that are supposed to be based on exec_prefix
814 # by default will actually change.
815 # Use braces instead of parens because sh, perl, etc. also accept them.
816 # (The list follows the same order as the GNU Coding Standards.)
817 bindir='${exec_prefix}/bin'
818 sbindir='${exec_prefix}/sbin'
819 libexecdir='${exec_prefix}/libexec'
820 datarootdir='${prefix}/share'
821 datadir='${datarootdir}'
822 sysconfdir='${prefix}/etc'
823 sharedstatedir='${prefix}/com'
824 localstatedir='${prefix}/var'
825 includedir='${prefix}/include'
826 oldincludedir='/usr/include'
827 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
828 infodir='${datarootdir}/info'
833 libdir='${exec_prefix}/lib'
834 localedir='${datarootdir}/locale'
835 mandir='${datarootdir}/man'
841 # If the previous option needs an argument, assign it.
842 if test -n "$ac_prev"; then
843 eval $ac_prev=\$ac_option
849 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
854 # Accept the important Cygnus configure options, so we can diagnose typos.
856 case $ac_dashdash$ac_option in
860 -bindir | --bindir | --bindi | --bind | --bin | --bi)
862 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
865 -build | --build | --buil | --bui | --bu)
866 ac_prev=build_alias ;;
867 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
868 build_alias=$ac_optarg ;;
870 -cache-file | --cache-file | --cache-fil | --cache-fi \
871 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
872 ac_prev=cache_file ;;
873 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
874 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
875 cache_file=$ac_optarg ;;
878 cache_file=config.cache ;;
880 -datadir | --datadir | --datadi | --datad)
882 -datadir=* | --datadir=* | --datadi=* | --datad=*)
883 datadir=$ac_optarg ;;
885 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
886 | --dataroo | --dataro | --datar)
887 ac_prev=datarootdir ;;
888 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
889 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
890 datarootdir=$ac_optarg ;;
892 -disable-* | --disable-*)
893 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
894 # Reject names that are not valid shell variable names.
895 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
896 as_fn_error $? "invalid feature name: $ac_useropt"
897 ac_useropt_orig=$ac_useropt
898 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
899 case $ac_user_opts in
903 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
904 ac_unrecognized_sep=', ';;
906 eval enable_$ac_useropt=no ;;
908 -docdir | --docdir | --docdi | --doc | --do)
910 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
913 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
915 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
918 -enable-* | --enable-*)
919 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
920 # Reject names that are not valid shell variable names.
921 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
922 as_fn_error $? "invalid feature name: $ac_useropt"
923 ac_useropt_orig=$ac_useropt
924 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
925 case $ac_user_opts in
929 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
930 ac_unrecognized_sep=', ';;
932 eval enable_$ac_useropt=\$ac_optarg ;;
934 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
935 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
936 | --exec | --exe | --ex)
937 ac_prev=exec_prefix ;;
938 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
939 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
940 | --exec=* | --exe=* | --ex=*)
941 exec_prefix=$ac_optarg ;;
943 -gas | --gas | --ga | --g)
944 # Obsolete; use --with-gas.
947 -help | --help | --hel | --he | -h)
949 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
950 ac_init_help=recursive ;;
951 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
952 ac_init_help=short ;;
954 -host | --host | --hos | --ho)
955 ac_prev=host_alias ;;
956 -host=* | --host=* | --hos=* | --ho=*)
957 host_alias=$ac_optarg ;;
959 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
961 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
963 htmldir=$ac_optarg ;;
965 -includedir | --includedir | --includedi | --included | --include \
966 | --includ | --inclu | --incl | --inc)
967 ac_prev=includedir ;;
968 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
969 | --includ=* | --inclu=* | --incl=* | --inc=*)
970 includedir=$ac_optarg ;;
972 -infodir | --infodir | --infodi | --infod | --info | --inf)
974 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
975 infodir=$ac_optarg ;;
977 -libdir | --libdir | --libdi | --libd)
979 -libdir=* | --libdir=* | --libdi=* | --libd=*)
982 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
983 | --libexe | --libex | --libe)
984 ac_prev=libexecdir ;;
985 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
986 | --libexe=* | --libex=* | --libe=*)
987 libexecdir=$ac_optarg ;;
989 -localedir | --localedir | --localedi | --localed | --locale)
991 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
992 localedir=$ac_optarg ;;
994 -localstatedir | --localstatedir | --localstatedi | --localstated \
995 | --localstate | --localstat | --localsta | --localst | --locals)
996 ac_prev=localstatedir ;;
997 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
998 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
999 localstatedir=$ac_optarg ;;
1001 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1003 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1004 mandir=$ac_optarg ;;
1006 -nfp | --nfp | --nf)
1007 # Obsolete; use --without-fp.
1010 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1011 | --no-cr | --no-c | -n)
1014 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1015 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1018 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1019 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1020 | --oldin | --oldi | --old | --ol | --o)
1021 ac_prev=oldincludedir ;;
1022 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1023 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1024 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1025 oldincludedir=$ac_optarg ;;
1027 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1029 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1030 prefix=$ac_optarg ;;
1032 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1033 | --program-pre | --program-pr | --program-p)
1034 ac_prev=program_prefix ;;
1035 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1036 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1037 program_prefix=$ac_optarg ;;
1039 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1040 | --program-suf | --program-su | --program-s)
1041 ac_prev=program_suffix ;;
1042 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1043 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1044 program_suffix=$ac_optarg ;;
1046 -program-transform-name | --program-transform-name \
1047 | --program-transform-nam | --program-transform-na \
1048 | --program-transform-n | --program-transform- \
1049 | --program-transform | --program-transfor \
1050 | --program-transfo | --program-transf \
1051 | --program-trans | --program-tran \
1052 | --progr-tra | --program-tr | --program-t)
1053 ac_prev=program_transform_name ;;
1054 -program-transform-name=* | --program-transform-name=* \
1055 | --program-transform-nam=* | --program-transform-na=* \
1056 | --program-transform-n=* | --program-transform-=* \
1057 | --program-transform=* | --program-transfor=* \
1058 | --program-transfo=* | --program-transf=* \
1059 | --program-trans=* | --program-tran=* \
1060 | --progr-tra=* | --program-tr=* | --program-t=*)
1061 program_transform_name=$ac_optarg ;;
1063 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1065 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1066 pdfdir=$ac_optarg ;;
1068 -psdir | --psdir | --psdi | --psd | --ps)
1070 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1073 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1074 | -silent | --silent | --silen | --sile | --sil)
1077 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1079 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1081 sbindir=$ac_optarg ;;
1083 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1084 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1085 | --sharedst | --shareds | --shared | --share | --shar \
1087 ac_prev=sharedstatedir ;;
1088 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1089 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1090 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1092 sharedstatedir=$ac_optarg ;;
1094 -site | --site | --sit)
1096 -site=* | --site=* | --sit=*)
1099 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1101 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1102 srcdir=$ac_optarg ;;
1104 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1105 | --syscon | --sysco | --sysc | --sys | --sy)
1106 ac_prev=sysconfdir ;;
1107 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1108 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1109 sysconfdir=$ac_optarg ;;
1111 -target | --target | --targe | --targ | --tar | --ta | --t)
1112 ac_prev=target_alias ;;
1113 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1114 target_alias=$ac_optarg ;;
1116 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1119 -version | --version | --versio | --versi | --vers | -V)
1120 ac_init_version=: ;;
1123 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1124 # Reject names that are not valid shell variable names.
1125 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1126 as_fn_error $? "invalid package name: $ac_useropt"
1127 ac_useropt_orig=$ac_useropt
1128 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1129 case $ac_user_opts in
1133 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1134 ac_unrecognized_sep=', ';;
1136 eval with_$ac_useropt=\$ac_optarg ;;
1138 -without-* | --without-*)
1139 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1140 # Reject names that are not valid shell variable names.
1141 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1142 as_fn_error $? "invalid package name: $ac_useropt"
1143 ac_useropt_orig=$ac_useropt
1144 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1145 case $ac_user_opts in
1149 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1150 ac_unrecognized_sep=', ';;
1152 eval with_$ac_useropt=no ;;
1155 # Obsolete; use --with-x.
1158 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1159 | --x-incl | --x-inc | --x-in | --x-i)
1160 ac_prev=x_includes ;;
1161 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1162 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1163 x_includes=$ac_optarg ;;
1165 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1166 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1167 ac_prev=x_libraries ;;
1168 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1169 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1170 x_libraries=$ac_optarg ;;
1172 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1173 Try \`$0 --help' for more information"
1177 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1178 # Reject names that are not valid shell variable names.
1179 case $ac_envvar in #(
1180 '' | [0-9]* | *[!_$as_cr_alnum]* )
1181 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1183 eval $ac_envvar=\$ac_optarg
1184 export $ac_envvar ;;
1187 # FIXME: should be removed in autoconf 3.0.
1188 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1189 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1190 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1191 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1197 if test -n "$ac_prev"; then
1198 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1199 as_fn_error $? "missing argument to $ac_option"
1202 if test -n "$ac_unrecognized_opts"; then
1203 case $enable_option_checking in
1205 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1206 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1210 # Check all directory arguments for consistency.
1211 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1212 datadir sysconfdir sharedstatedir localstatedir includedir \
1213 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1214 libdir localedir mandir
1216 eval ac_val=\$$ac_var
1217 # Remove trailing slashes.
1220 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1221 eval $ac_var=\$ac_val;;
1223 # Be sure to have absolute directory names.
1225 [\\/$]* | ?:[\\/]* ) continue;;
1226 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1228 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1231 # There might be people who depend on the old broken behavior: `$host'
1232 # used to hold the argument of --host etc.
1233 # FIXME: To remove some day.
1236 target=$target_alias
1238 # FIXME: To remove some day.
1239 if test "x$host_alias" != x; then
1240 if test "x$build_alias" = x; then
1241 cross_compiling=maybe
1242 elif test "x$build_alias" != "x$host_alias"; then
1248 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1250 test "$silent" = yes && exec 6>/dev/null
1253 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1254 ac_ls_di=`ls -di .` &&
1255 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1256 as_fn_error $? "working directory cannot be determined"
1257 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1258 as_fn_error $? "pwd does not report name of working directory"
1261 # Find the source files, if location was not specified.
1262 if test -z "$srcdir"; then
1263 ac_srcdir_defaulted=yes
1264 # Try the directory containing this script, then the parent directory.
1265 ac_confdir=`$as_dirname -- "$as_myself" ||
1266 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1267 X"$as_myself" : 'X\(//\)[^/]' \| \
1268 X"$as_myself" : 'X\(//\)$' \| \
1269 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1270 $as_echo X"$as_myself" |
1271 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1289 if test ! -r "$srcdir/$ac_unique_file"; then
1293 ac_srcdir_defaulted=no
1295 if test ! -r "$srcdir/$ac_unique_file"; then
1296 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1297 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1299 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1301 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1303 # When building in place, set srcdir=.
1304 if test "$ac_abs_confdir" = "$ac_pwd"; then
1307 # Remove unnecessary trailing slashes from srcdir.
1308 # Double slashes in file names in object file debugging info
1309 # mess up M-x gdb in Emacs.
1311 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1313 for ac_var in $ac_precious_vars; do
1314 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1315 eval ac_env_${ac_var}_value=\$${ac_var}
1316 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1317 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1321 # Report the --help message.
1323 if test "$ac_init_help" = "long"; then
1324 # Omit some internal or obsolete options to make the list less imposing.
1325 # This message is too long to be a string in the A/UX 3.1 sh.
1327 \`configure' configures GNU Awk 4.1.1 to adapt to many kinds of systems.
1329 Usage: $0 [OPTION]... [VAR=VALUE]...
1331 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1332 VAR=VALUE. See below for descriptions of some of the useful variables.
1334 Defaults for the options are specified in brackets.
1337 -h, --help display this help and exit
1338 --help=short display options specific to this package
1339 --help=recursive display the short help of all the included packages
1340 -V, --version display version information and exit
1341 -q, --quiet, --silent do not print \`checking ...' messages
1342 --cache-file=FILE cache test results in FILE [disabled]
1343 -C, --config-cache alias for \`--cache-file=config.cache'
1344 -n, --no-create do not create output files
1345 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1347 Installation directories:
1348 --prefix=PREFIX install architecture-independent files in PREFIX
1349 [$ac_default_prefix]
1350 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1353 By default, \`make install' will install all the files in
1354 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1355 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1356 for instance \`--prefix=\$HOME'.
1358 For better control, use the options below.
1360 Fine tuning of the installation directories:
1361 --bindir=DIR user executables [EPREFIX/bin]
1362 --sbindir=DIR system admin executables [EPREFIX/sbin]
1363 --libexecdir=DIR program executables [EPREFIX/libexec]
1364 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1365 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1366 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1367 --libdir=DIR object code libraries [EPREFIX/lib]
1368 --includedir=DIR C header files [PREFIX/include]
1369 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1370 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1371 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1372 --infodir=DIR info documentation [DATAROOTDIR/info]
1373 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1374 --mandir=DIR man documentation [DATAROOTDIR/man]
1375 --docdir=DIR documentation root [DATAROOTDIR/doc/gawk]
1376 --htmldir=DIR html documentation [DOCDIR]
1377 --dvidir=DIR dvi documentation [DOCDIR]
1378 --pdfdir=DIR pdf documentation [DOCDIR]
1379 --psdir=DIR ps documentation [DOCDIR]
1385 --program-prefix=PREFIX prepend PREFIX to installed program names
1386 --program-suffix=SUFFIX append SUFFIX to installed program names
1387 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1390 --build=BUILD configure for building on BUILD [guessed]
1391 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1395 if test -n "$ac_init_help"; then
1396 case $ac_init_help in
1397 short | recursive ) echo "Configuration of GNU Awk 4.1.1:";;
1402 --disable-option-checking ignore unrecognized --enable/--with options
1403 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1404 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1405 --enable-silent-rules less verbose build output (undo: "make V=1")
1406 --disable-silent-rules verbose build output (undo: "make V=0")
1407 --disable-lint Disable gawk lint checking
1408 --enable-dependency-tracking
1409 do not reject slow dependency extractors
1410 --disable-dependency-tracking
1411 speeds up one-time build
1412 --disable-largefile omit support for large files
1413 --disable-nls do not use Native Language Support
1414 --disable-rpath do not hardcode runtime library paths
1415 --disable-extensions disable dynamic extensions (default is detect)
1418 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1419 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1420 --with-whiny-user-strftime Force use of included version of strftime for deficient systems
1421 --with-gnu-ld assume the C compiler uses GNU ld default=no
1422 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1423 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1424 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
1425 --without-libintl-prefix don't search for libintl in includedir and libdir
1426 --with-libsigsegv-prefix[=DIR] search for libsigsegv in DIR/include and DIR/lib
1427 --without-libsigsegv-prefix don't search for libsigsegv in includedir and libdir
1428 --with-readline=DIR look for the readline library in DIR
1429 --with-mpfr=DIR look for the mpfr and gmp libraries in DIR
1431 Some influential environment variables:
1432 CC C compiler command
1433 CFLAGS C compiler flags
1434 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1435 nonstandard directory <lib dir>
1436 LIBS libraries to pass to the linker, e.g. -l<library>
1437 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1438 you have headers in a nonstandard directory <include dir>
1440 YACC The `Yet Another Compiler Compiler' implementation to use.
1441 Defaults to the first program found out of: `bison -y', `byacc',
1443 YFLAGS The list of arguments that will be passed by default to $YACC.
1444 This script will default YFLAGS to the empty string to avoid a
1445 default value of `-d' given by some make applications.
1447 Use these variables to override the choices made by `configure' or to help
1448 it to find libraries and programs with nonstandard names/locations.
1450 Report bugs to <bug-gawk@gnu.org>.
1451 GNU Awk home page: <http://www.gnu.org/software/gawk/>.
1452 General help using GNU software: <http://www.gnu.org/gethelp/>.
1457 if test "$ac_init_help" = "recursive"; then
1458 # If there are subdirs, report their specific --help.
1459 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1460 test -d "$ac_dir" ||
1461 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1466 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1468 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1469 # A ".." for each directory in $ac_dir_suffix.
1470 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1471 case $ac_top_builddir_sub in
1472 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1473 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1476 ac_abs_top_builddir=$ac_pwd
1477 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1478 # for backward compatibility:
1479 ac_top_builddir=$ac_top_build_prefix
1482 .) # We are building in place.
1484 ac_top_srcdir=$ac_top_builddir_sub
1485 ac_abs_top_srcdir=$ac_pwd ;;
1486 [\\/]* | ?:[\\/]* ) # Absolute name.
1487 ac_srcdir=$srcdir$ac_dir_suffix;
1488 ac_top_srcdir=$srcdir
1489 ac_abs_top_srcdir=$srcdir ;;
1491 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1492 ac_top_srcdir=$ac_top_build_prefix$srcdir
1493 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1495 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1497 cd "$ac_dir" || { ac_status=$?; continue; }
1498 # Check for guested configure.
1499 if test -f "$ac_srcdir/configure.gnu"; then
1501 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1502 elif test -f "$ac_srcdir/configure"; then
1504 $SHELL "$ac_srcdir/configure" --help=recursive
1506 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1508 cd "$ac_pwd" || { ac_status=$?; break; }
1512 test -n "$ac_init_help" && exit $ac_status
1513 if $ac_init_version; then
1515 GNU Awk configure 4.1.1
1516 generated by GNU Autoconf 2.69
1518 Copyright (C) 2012 Free Software Foundation, Inc.
1519 This configure script is free software; the Free Software Foundation
1520 gives unlimited permission to copy, distribute and modify it.
1525 ## ------------------------ ##
1526 ## Autoconf initialization. ##
1527 ## ------------------------ ##
1529 # ac_fn_c_try_compile LINENO
1530 # --------------------------
1531 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1532 ac_fn_c_try_compile ()
1534 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1535 rm -f conftest.$ac_objext
1536 if { { ac_try="$ac_compile"
1538 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1539 *) ac_try_echo=$ac_try;;
1541 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1542 $as_echo "$ac_try_echo"; } >&5
1543 (eval "$ac_compile") 2>conftest.err
1545 if test -s conftest.err; then
1546 grep -v '^ *+' conftest.err >conftest.er1
1547 cat conftest.er1 >&5
1548 mv -f conftest.er1 conftest.err
1550 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1551 test $ac_status = 0; } && {
1552 test -z "$ac_c_werror_flag" ||
1553 test ! -s conftest.err
1554 } && test -s conftest.$ac_objext; then :
1557 $as_echo "$as_me: failed program was:" >&5
1558 sed 's/^/| /' conftest.$ac_ext >&5
1562 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1563 as_fn_set_status $ac_retval
1565 } # ac_fn_c_try_compile
1567 # ac_fn_c_try_cpp LINENO
1568 # ----------------------
1569 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1572 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1573 if { { ac_try="$ac_cpp conftest.$ac_ext"
1575 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1576 *) ac_try_echo=$ac_try;;
1578 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1579 $as_echo "$ac_try_echo"; } >&5
1580 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1582 if test -s conftest.err; then
1583 grep -v '^ *+' conftest.err >conftest.er1
1584 cat conftest.er1 >&5
1585 mv -f conftest.er1 conftest.err
1587 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1588 test $ac_status = 0; } > conftest.i && {
1589 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1590 test ! -s conftest.err
1594 $as_echo "$as_me: failed program was:" >&5
1595 sed 's/^/| /' conftest.$ac_ext >&5
1599 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1600 as_fn_set_status $ac_retval
1604 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1605 # -------------------------------------------------------
1606 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1607 # the include files in INCLUDES and setting the cache variable VAR
1609 ac_fn_c_check_header_mongrel ()
1611 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1612 if eval \${$3+:} false; then :
1613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1614 $as_echo_n "checking for $2... " >&6; }
1615 if eval \${$3+:} false; then :
1616 $as_echo_n "(cached) " >&6
1619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1620 $as_echo "$ac_res" >&6; }
1622 # Is the header compilable?
1623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1624 $as_echo_n "checking $2 usability... " >&6; }
1625 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1626 /* end confdefs.h. */
1630 if ac_fn_c_try_compile "$LINENO"; then :
1631 ac_header_compiler=yes
1633 ac_header_compiler=no
1635 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1637 $as_echo "$ac_header_compiler" >&6; }
1639 # Is the header present?
1640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1641 $as_echo_n "checking $2 presence... " >&6; }
1642 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1643 /* end confdefs.h. */
1646 if ac_fn_c_try_cpp "$LINENO"; then :
1647 ac_header_preproc=yes
1649 ac_header_preproc=no
1651 rm -f conftest.err conftest.i conftest.$ac_ext
1652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1653 $as_echo "$ac_header_preproc" >&6; }
1655 # So? What about this header?
1656 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1658 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1659 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1660 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1661 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1664 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1665 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1666 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1667 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1668 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1669 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1670 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1671 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1672 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1673 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1674 ( $as_echo "## ------------------------------- ##
1675 ## Report this to bug-gawk@gnu.org ##
1676 ## ------------------------------- ##"
1677 ) | sed "s/^/$as_me: WARNING: /" >&2
1680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1681 $as_echo_n "checking for $2... " >&6; }
1682 if eval \${$3+:} false; then :
1683 $as_echo_n "(cached) " >&6
1685 eval "$3=\$ac_header_compiler"
1688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1689 $as_echo "$ac_res" >&6; }
1691 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1693 } # ac_fn_c_check_header_mongrel
1695 # ac_fn_c_try_run LINENO
1696 # ----------------------
1697 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1698 # that executables *can* be run.
1701 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1702 if { { ac_try="$ac_link"
1704 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1705 *) ac_try_echo=$ac_try;;
1707 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1708 $as_echo "$ac_try_echo"; } >&5
1709 (eval "$ac_link") 2>&5
1711 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1712 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1713 { { case "(($ac_try" in
1714 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1715 *) ac_try_echo=$ac_try;;
1717 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1718 $as_echo "$ac_try_echo"; } >&5
1719 (eval "$ac_try") 2>&5
1721 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1722 test $ac_status = 0; }; }; then :
1725 $as_echo "$as_me: program exited with status $ac_status" >&5
1726 $as_echo "$as_me: failed program was:" >&5
1727 sed 's/^/| /' conftest.$ac_ext >&5
1729 ac_retval=$ac_status
1731 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1732 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1733 as_fn_set_status $ac_retval
1737 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1738 # -------------------------------------------------------
1739 # Tests whether HEADER exists and can be compiled using the include files in
1740 # INCLUDES, setting the cache variable VAR accordingly.
1741 ac_fn_c_check_header_compile ()
1743 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1745 $as_echo_n "checking for $2... " >&6; }
1746 if eval \${$3+:} false; then :
1747 $as_echo_n "(cached) " >&6
1749 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1750 /* end confdefs.h. */
1754 if ac_fn_c_try_compile "$LINENO"; then :
1759 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1763 $as_echo "$ac_res" >&6; }
1764 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1766 } # ac_fn_c_check_header_compile
1768 # ac_fn_c_try_link LINENO
1769 # -----------------------
1770 # Try to link conftest.$ac_ext, and return whether this succeeded.
1773 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1774 rm -f conftest.$ac_objext conftest$ac_exeext
1775 if { { ac_try="$ac_link"
1777 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1778 *) ac_try_echo=$ac_try;;
1780 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1781 $as_echo "$ac_try_echo"; } >&5
1782 (eval "$ac_link") 2>conftest.err
1784 if test -s conftest.err; then
1785 grep -v '^ *+' conftest.err >conftest.er1
1786 cat conftest.er1 >&5
1787 mv -f conftest.er1 conftest.err
1789 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1790 test $ac_status = 0; } && {
1791 test -z "$ac_c_werror_flag" ||
1792 test ! -s conftest.err
1793 } && test -s conftest$ac_exeext && {
1794 test "$cross_compiling" = yes ||
1795 test -x conftest$ac_exeext
1799 $as_echo "$as_me: failed program was:" >&5
1800 sed 's/^/| /' conftest.$ac_ext >&5
1804 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1805 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1806 # interfere with the next link command; also delete a directory that is
1807 # left behind by Apple's compiler. We do this before executing the actions.
1808 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1809 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1810 as_fn_set_status $ac_retval
1812 } # ac_fn_c_try_link
1814 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1815 # -------------------------------------------
1816 # Tests whether TYPE exists after having included INCLUDES, setting cache
1817 # variable VAR accordingly.
1818 ac_fn_c_check_type ()
1820 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1822 $as_echo_n "checking for $2... " >&6; }
1823 if eval \${$3+:} false; then :
1824 $as_echo_n "(cached) " >&6
1827 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1828 /* end confdefs.h. */
1839 if ac_fn_c_try_compile "$LINENO"; then :
1840 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1841 /* end confdefs.h. */
1852 if ac_fn_c_try_compile "$LINENO"; then :
1857 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1859 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1863 $as_echo "$ac_res" >&6; }
1864 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1866 } # ac_fn_c_check_type
1868 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
1869 # --------------------------------------------
1870 # Tries to find the compile-time value of EXPR in a program that includes
1871 # INCLUDES, setting VAR accordingly. Returns whether the value could be
1873 ac_fn_c_compute_int ()
1875 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1876 if test "$cross_compiling" = yes; then
1877 # Depending upon the size, compute the lo and hi bounds.
1878 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1879 /* end confdefs.h. */
1884 static int test_array [1 - 2 * !(($2) >= 0)];
1886 return test_array [0];
1892 if ac_fn_c_try_compile "$LINENO"; then :
1895 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1896 /* end confdefs.h. */
1901 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1903 return test_array [0];
1909 if ac_fn_c_try_compile "$LINENO"; then :
1910 ac_hi=$ac_mid; break
1912 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
1913 if test $ac_lo -le $ac_mid; then
1917 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
1919 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1922 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1923 /* end confdefs.h. */
1928 static int test_array [1 - 2 * !(($2) < 0)];
1930 return test_array [0];
1936 if ac_fn_c_try_compile "$LINENO"; then :
1939 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1940 /* end confdefs.h. */
1945 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
1947 return test_array [0];
1953 if ac_fn_c_try_compile "$LINENO"; then :
1954 ac_lo=$ac_mid; break
1956 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
1957 if test $ac_mid -le $ac_hi; then
1961 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
1963 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1968 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1970 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1971 # Binary search between lo and hi bounds.
1972 while test "x$ac_lo" != "x$ac_hi"; do
1973 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
1974 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1975 /* end confdefs.h. */
1980 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1982 return test_array [0];
1988 if ac_fn_c_try_compile "$LINENO"; then :
1991 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
1993 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1996 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2000 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2001 /* end confdefs.h. */
2003 static long int longval () { return $2; }
2004 static unsigned long int ulongval () { return $2; }
2011 FILE *f = fopen ("conftest.val", "w");
2016 long int i = longval ();
2019 fprintf (f, "%ld", i);
2023 unsigned long int i = ulongval ();
2026 fprintf (f, "%lu", i);
2028 /* Do not output a trailing newline, as this causes \r\n confusion
2029 on some platforms. */
2030 return ferror (f) || fclose (f) != 0;
2036 if ac_fn_c_try_run "$LINENO"; then :
2037 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2041 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2042 conftest.$ac_objext conftest.beam conftest.$ac_ext
2046 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2047 as_fn_set_status $ac_retval
2049 } # ac_fn_c_compute_int
2051 # ac_fn_c_check_func LINENO FUNC VAR
2052 # ----------------------------------
2053 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2054 ac_fn_c_check_func ()
2056 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2058 $as_echo_n "checking for $2... " >&6; }
2059 if eval \${$3+:} false; then :
2060 $as_echo_n "(cached) " >&6
2062 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2063 /* end confdefs.h. */
2064 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2065 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2066 #define $2 innocuous_$2
2068 /* System header to define __stub macros and hopefully few prototypes,
2069 which can conflict with char $2 (); below.
2070 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2071 <limits.h> exists even on freestanding compilers. */
2074 # include <limits.h>
2076 # include <assert.h>
2081 /* Override any GCC internal prototype to avoid an error.
2082 Use char because int might match the return type of a GCC
2083 builtin and then its argument prototype would still apply. */
2088 /* The GNU C library defines this for functions which it implements
2089 to always fail with ENOSYS. Some functions are actually named
2090 something starting with __ and the normal name is an alias. */
2091 #if defined __stub_$2 || defined __stub___$2
2103 if ac_fn_c_try_link "$LINENO"; then :
2108 rm -f core conftest.err conftest.$ac_objext \
2109 conftest$ac_exeext conftest.$ac_ext
2112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2113 $as_echo "$ac_res" >&6; }
2114 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2116 } # ac_fn_c_check_func
2118 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2119 # ----------------------------------------------------
2120 # Tries to find if the field MEMBER exists in type AGGR, after including
2121 # INCLUDES, setting cache variable VAR accordingly.
2122 ac_fn_c_check_member ()
2124 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2126 $as_echo_n "checking for $2.$3... " >&6; }
2127 if eval \${$4+:} false; then :
2128 $as_echo_n "(cached) " >&6
2130 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2131 /* end confdefs.h. */
2143 if ac_fn_c_try_compile "$LINENO"; then :
2146 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2147 /* end confdefs.h. */
2153 if (sizeof ac_aggr.$3)
2159 if ac_fn_c_try_compile "$LINENO"; then :
2164 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2166 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2170 $as_echo "$ac_res" >&6; }
2171 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2173 } # ac_fn_c_check_member
2175 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2176 # ---------------------------------------------
2177 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2179 ac_fn_c_check_decl ()
2181 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2182 as_decl_name=`echo $2|sed 's/ *(.*//'`
2183 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2185 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2186 if eval \${$3+:} false; then :
2187 $as_echo_n "(cached) " >&6
2189 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2190 /* end confdefs.h. */
2195 #ifndef $as_decl_name
2197 (void) $as_decl_use;
2199 (void) $as_decl_name;
2207 if ac_fn_c_try_compile "$LINENO"; then :
2212 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2216 $as_echo "$ac_res" >&6; }
2217 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2219 } # ac_fn_c_check_decl
2220 cat >config.log <<_ACEOF
2221 This file contains any messages produced by compilers while
2222 running configure, to aid debugging if configure makes a mistake.
2224 It was created by GNU Awk $as_me 4.1.1, which was
2225 generated by GNU Autoconf 2.69. Invocation command line was
2237 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2238 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2239 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2240 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2241 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2243 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2244 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2246 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2247 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2248 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2249 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2250 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2251 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2252 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2256 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2260 test -z "$as_dir" && as_dir=.
2261 $as_echo "PATH: $as_dir"
2277 # Keep a trace of the command line.
2278 # Strip out --no-create and --no-recursion so they do not pile up.
2279 # Strip out --silent because we don't want to record it for future runs.
2280 # Also quote any args containing shell meta-characters.
2281 # Make two passes to allow for proper duplicate-argument suppression.
2285 ac_must_keep_next=false
2291 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2292 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2293 | -silent | --silent | --silen | --sile | --sil)
2296 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2299 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2301 as_fn_append ac_configure_args1 " '$ac_arg'"
2302 if test $ac_must_keep_next = true; then
2303 ac_must_keep_next=false # Got value, back to normal.
2306 *=* | --config-cache | -C | -disable-* | --disable-* \
2307 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2308 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2309 | -with-* | --with-* | -without-* | --without-* | --x)
2310 case "$ac_configure_args0 " in
2311 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2314 -* ) ac_must_keep_next=true ;;
2317 as_fn_append ac_configure_args " '$ac_arg'"
2322 { ac_configure_args0=; unset ac_configure_args0;}
2323 { ac_configure_args1=; unset ac_configure_args1;}
2325 # When interrupted or exit'd, cleanup temporary files, and complete
2326 # config.log. We remove comments because anyway the quotes in there
2327 # would cause problems or look ugly.
2328 # WARNING: Use '\'' to represent an apostrophe within the trap.
2329 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2330 trap 'exit_status=$?
2331 # Save into config.log some information that might help in debugging.
2335 $as_echo "## ---------------- ##
2336 ## Cache variables. ##
2337 ## ---------------- ##"
2339 # The following way of writing the cache mishandles newlines in values,
2341 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2342 eval ac_val=\$$ac_var
2346 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2347 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2350 _ | IFS | as_nl) ;; #(
2351 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2352 *) { eval $ac_var=; unset $ac_var;} ;;
2357 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2358 *${as_nl}ac_space=\ *)
2360 "s/'\''/'\''\\\\'\'''\''/g;
2361 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2364 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2371 $as_echo "## ----------------- ##
2372 ## Output variables. ##
2373 ## ----------------- ##"
2375 for ac_var in $ac_subst_vars
2377 eval ac_val=\$$ac_var
2379 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2381 $as_echo "$ac_var='\''$ac_val'\''"
2385 if test -n "$ac_subst_files"; then
2386 $as_echo "## ------------------- ##
2387 ## File substitutions. ##
2388 ## ------------------- ##"
2390 for ac_var in $ac_subst_files
2392 eval ac_val=\$$ac_var
2394 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2396 $as_echo "$ac_var='\''$ac_val'\''"
2401 if test -s confdefs.h; then
2402 $as_echo "## ----------- ##
2409 test "$ac_signal" != 0 &&
2410 $as_echo "$as_me: caught signal $ac_signal"
2411 $as_echo "$as_me: exit $exit_status"
2413 rm -f core *.core core.conftest.* &&
2414 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2417 for ac_signal in 1 2 13 15; do
2418 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2422 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2423 rm -f -r conftest* confdefs.h
2425 $as_echo "/* confdefs.h */" > confdefs.h
2427 # Predefined preprocessor variables.
2429 cat >>confdefs.h <<_ACEOF
2430 #define PACKAGE_NAME "$PACKAGE_NAME"
2433 cat >>confdefs.h <<_ACEOF
2434 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2437 cat >>confdefs.h <<_ACEOF
2438 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2441 cat >>confdefs.h <<_ACEOF
2442 #define PACKAGE_STRING "$PACKAGE_STRING"
2445 cat >>confdefs.h <<_ACEOF
2446 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2449 cat >>confdefs.h <<_ACEOF
2450 #define PACKAGE_URL "$PACKAGE_URL"
2454 # Let the site file select an alternate cache file if it wants to.
2455 # Prefer an explicitly selected file to automatically selected ones.
2458 if test -n "$CONFIG_SITE"; then
2459 # We do not want a PATH search for config.site.
2460 case $CONFIG_SITE in #((
2461 -*) ac_site_file1=./$CONFIG_SITE;;
2462 */*) ac_site_file1=$CONFIG_SITE;;
2463 *) ac_site_file1=./$CONFIG_SITE;;
2465 elif test "x$prefix" != xNONE; then
2466 ac_site_file1=$prefix/share/config.site
2467 ac_site_file2=$prefix/etc/config.site
2469 ac_site_file1=$ac_default_prefix/share/config.site
2470 ac_site_file2=$ac_default_prefix/etc/config.site
2472 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2474 test "x$ac_site_file" = xNONE && continue
2475 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2476 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2477 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2478 sed 's/^/| /' "$ac_site_file" >&5
2480 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2481 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2482 as_fn_error $? "failed to load site script $ac_site_file
2483 See \`config.log' for more details" "$LINENO" 5; }
2487 if test -r "$cache_file"; then
2488 # Some versions of bash will fail to source /dev/null (special files
2489 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2490 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2491 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2492 $as_echo "$as_me: loading cache $cache_file" >&6;}
2494 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2495 *) . "./$cache_file";;
2499 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2500 $as_echo "$as_me: creating cache $cache_file" >&6;}
2504 gt_needs="$gt_needs "
2505 as_fn_append ac_header_list " sys/time.h"
2506 as_fn_append ac_header_list " unistd.h"
2507 as_fn_append ac_func_list " alarm"
2508 # Check that the precious variables saved in the cache have kept the same
2510 ac_cache_corrupted=false
2511 for ac_var in $ac_precious_vars; do
2512 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2513 eval ac_new_set=\$ac_env_${ac_var}_set
2514 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2515 eval ac_new_val=\$ac_env_${ac_var}_value
2516 case $ac_old_set,$ac_new_set in
2518 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2519 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2520 ac_cache_corrupted=: ;;
2522 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2523 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2524 ac_cache_corrupted=: ;;
2527 if test "x$ac_old_val" != "x$ac_new_val"; then
2528 # differences in whitespace do not lead to failure.
2529 ac_old_val_w=`echo x $ac_old_val`
2530 ac_new_val_w=`echo x $ac_new_val`
2531 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2532 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2533 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2534 ac_cache_corrupted=:
2536 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2537 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2538 eval $ac_var=\$ac_old_val
2540 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2541 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2542 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2543 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2546 # Pass precious variables to config.status.
2547 if test "$ac_new_set" = set; then
2549 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2550 *) ac_arg=$ac_var=$ac_new_val ;;
2552 case " $ac_configure_args " in
2553 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2554 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2558 if $ac_cache_corrupted; then
2559 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2560 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2561 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2562 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2563 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2565 ## -------------------- ##
2566 ## Main body of script. ##
2567 ## -------------------- ##
2570 ac_cpp='$CPP $CPPFLAGS'
2571 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2572 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2573 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2577 # This is a hack. Different versions of install on different systems
2578 # are just too different. Chuck it and use install-sh.
2580 # If the user supplies $INSTALL, figure they know what they're doing.
2582 # With Autoconf 2.5x, this needs to come very early on, but *after*
2583 # the INIT macro. Sigh.
2585 if test "x$INSTALL" = "x"
2587 INSTALL="$srcdir/install-sh -c"
2592 am__api_version='1.13'
2595 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2596 if test -f "$ac_dir/install-sh"; then
2598 ac_install_sh="$ac_aux_dir/install-sh -c"
2600 elif test -f "$ac_dir/install.sh"; then
2602 ac_install_sh="$ac_aux_dir/install.sh -c"
2604 elif test -f "$ac_dir/shtool"; then
2606 ac_install_sh="$ac_aux_dir/shtool install -c"
2610 if test -z "$ac_aux_dir"; then
2611 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2614 # These three variables are undocumented and unsupported,
2615 # and are intended to be withdrawn in a future Autoconf release.
2616 # They can cause serious problems if a builder's source tree is in a directory
2617 # whose full name contains unusual characters.
2618 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2619 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2620 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2623 # Find a good install program. We prefer a C program (faster),
2624 # so one script is as good as another. But avoid the broken or
2625 # incompatible versions:
2626 # SysV /etc/install, /usr/sbin/install
2627 # SunOS /usr/etc/install
2628 # IRIX /sbin/install
2630 # AmigaOS /C/install, which installs bootblocks on floppy discs
2631 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2632 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2633 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2634 # OS/2's system install, which has a completely different semantic
2635 # ./install, which can be erroneously created by make from ./install.sh.
2636 # Reject install programs that cannot install multiple files.
2637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2638 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2639 if test -z "$INSTALL"; then
2640 if ${ac_cv_path_install+:} false; then :
2641 $as_echo_n "(cached) " >&6
2643 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2647 test -z "$as_dir" && as_dir=.
2648 # Account for people who put trailing slashes in PATH elements.
2649 case $as_dir/ in #((
2650 ./ | .// | /[cC]/* | \
2651 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2652 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2655 # OSF1 and SCO ODT 3.0 have their own names for install.
2656 # Don't use installbsd from OSF since it installs stuff as root
2658 for ac_prog in ginstall scoinst install; do
2659 for ac_exec_ext in '' $ac_executable_extensions; do
2660 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2661 if test $ac_prog = install &&
2662 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2663 # AIX install. It has an incompatible calling convention.
2665 elif test $ac_prog = install &&
2666 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2667 # program-specific install script used by HP pwplus--don't use.
2670 rm -rf conftest.one conftest.two conftest.dir
2671 echo one > conftest.one
2672 echo two > conftest.two
2674 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2675 test -s conftest.one && test -s conftest.two &&
2676 test -s conftest.dir/conftest.one &&
2677 test -s conftest.dir/conftest.two
2679 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2692 rm -rf conftest.one conftest.two conftest.dir
2695 if test "${ac_cv_path_install+set}" = set; then
2696 INSTALL=$ac_cv_path_install
2698 # As a last resort, use the slow shell script. Don't cache a
2699 # value for INSTALL within a source directory, because that will
2700 # break other packages using the cache if that directory is
2701 # removed, or if the value is a relative name.
2702 INSTALL=$ac_install_sh
2705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2706 $as_echo "$INSTALL" >&6; }
2708 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2709 # It thinks the first close brace ends the variable substitution.
2710 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2712 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2714 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2717 $as_echo_n "checking whether build environment is sane... " >&6; }
2718 # Reject unsafe characters in $srcdir or the absolute working directory
2719 # name. Accept space and tab only in the latter.
2723 *[\\\"\#\$\&\'\`$am_lf]*)
2724 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2727 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2728 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2731 # Do 'set' in a subshell so we don't clobber the current shell's
2732 # arguments. Must try -L first in case configure is actually a
2733 # symlink; some systems play weird games with the mod time of symlinks
2734 # (eg FreeBSD returns the mod time of the symlink's containing
2738 for am_try in 1 2; do
2739 echo "timestamp, slept: $am_has_slept" > conftest.file
2740 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2741 if test "$*" = "X"; then
2743 set X `ls -t "$srcdir/configure" conftest.file`
2745 if test "$*" != "X $srcdir/configure conftest.file" \
2746 && test "$*" != "X conftest.file $srcdir/configure"; then
2748 # If neither matched, then we have a broken ls. This can happen
2749 # if, for instance, CONFIG_SHELL is bash and it inherits a
2750 # broken ls alias from the environment. This has actually
2751 # happened. Such a system could not be considered "sane".
2752 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2753 alias in your environment" "$LINENO" 5
2755 if test "$2" = conftest.file || test $am_try -eq 2; then
2762 test "$2" = conftest.file
2768 as_fn_error $? "newly created file is older than distributed files!
2769 Check your system clock" "$LINENO" 5
2771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2772 $as_echo "yes" >&6; }
2773 # If we didn't sleep, we still need to ensure time stamps of config.status and
2774 # generated files are strictly newer.
2776 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2783 test "$program_prefix" != NONE &&
2784 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2785 # Use a double $ so make ignores it.
2786 test "$program_suffix" != NONE &&
2787 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2788 # Double any \ or $.
2789 # By default was `s,x,x', remove it if useless.
2790 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2791 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2793 # expand $ac_aux_dir to an absolute path
2794 am_aux_dir=`cd $ac_aux_dir && pwd`
2796 if test x"${MISSING+set}" != xset; then
2799 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2801 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2804 # Use eval to expand $SHELL
2805 if eval "$MISSING --is-lightweight"; then
2806 am_missing_run="$MISSING "
2809 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2810 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2813 if test x"${install_sh}" != xset; then
2816 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2818 install_sh="\${SHELL} $am_aux_dir/install-sh"
2822 # Installed binaries are usually stripped using 'strip' when the user
2823 # run "make install-strip". However 'strip' might not be the right
2824 # tool to use in cross-compilation environments, therefore Automake
2825 # will honor the 'STRIP' environment variable to overrule this program.
2826 if test "$cross_compiling" != no; then
2827 if test -n "$ac_tool_prefix"; then
2828 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2829 set dummy ${ac_tool_prefix}strip; ac_word=$2
2830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2831 $as_echo_n "checking for $ac_word... " >&6; }
2832 if ${ac_cv_prog_STRIP+:} false; then :
2833 $as_echo_n "(cached) " >&6
2835 if test -n "$STRIP"; then
2836 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2838 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2842 test -z "$as_dir" && as_dir=.
2843 for ac_exec_ext in '' $ac_executable_extensions; do
2844 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2845 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2846 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2855 STRIP=$ac_cv_prog_STRIP
2856 if test -n "$STRIP"; then
2857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2858 $as_echo "$STRIP" >&6; }
2860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2861 $as_echo "no" >&6; }
2866 if test -z "$ac_cv_prog_STRIP"; then
2868 # Extract the first word of "strip", so it can be a program name with args.
2869 set dummy strip; ac_word=$2
2870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2871 $as_echo_n "checking for $ac_word... " >&6; }
2872 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2873 $as_echo_n "(cached) " >&6
2875 if test -n "$ac_ct_STRIP"; then
2876 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2878 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2882 test -z "$as_dir" && as_dir=.
2883 for ac_exec_ext in '' $ac_executable_extensions; do
2884 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2885 ac_cv_prog_ac_ct_STRIP="strip"
2886 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2895 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2896 if test -n "$ac_ct_STRIP"; then
2897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2898 $as_echo "$ac_ct_STRIP" >&6; }
2900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2901 $as_echo "no" >&6; }
2904 if test "x$ac_ct_STRIP" = x; then
2907 case $cross_compiling:$ac_tool_warned in
2909 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2910 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2911 ac_tool_warned=yes ;;
2916 STRIP="$ac_cv_prog_STRIP"
2920 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2923 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2924 if test -z "$MKDIR_P"; then
2925 if ${ac_cv_path_mkdir+:} false; then :
2926 $as_echo_n "(cached) " >&6
2928 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2929 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2932 test -z "$as_dir" && as_dir=.
2933 for ac_prog in mkdir gmkdir; do
2934 for ac_exec_ext in '' $ac_executable_extensions; do
2935 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2936 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2937 'mkdir (GNU coreutils) '* | \
2938 'mkdir (coreutils) '* | \
2939 'mkdir (fileutils) '4.1*)
2940 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2950 test -d ./--version && rmdir ./--version
2951 if test "${ac_cv_path_mkdir+set}" = set; then
2952 MKDIR_P="$ac_cv_path_mkdir -p"
2954 # As a last resort, use the slow shell script. Don't cache a
2955 # value for MKDIR_P within a source directory, because that will
2956 # break other packages using the cache if that directory is
2957 # removed, or if the value is a relative name.
2958 MKDIR_P="$ac_install_sh -d"
2961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2962 $as_echo "$MKDIR_P" >&6; }
2964 for ac_prog in gawk mawk nawk awk
2966 # Extract the first word of "$ac_prog", so it can be a program name with args.
2967 set dummy $ac_prog; ac_word=$2
2968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2969 $as_echo_n "checking for $ac_word... " >&6; }
2970 if ${ac_cv_prog_AWK+:} false; then :
2971 $as_echo_n "(cached) " >&6
2973 if test -n "$AWK"; then
2974 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2976 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2980 test -z "$as_dir" && as_dir=.
2981 for ac_exec_ext in '' $ac_executable_extensions; do
2982 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2983 ac_cv_prog_AWK="$ac_prog"
2984 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2994 if test -n "$AWK"; then
2995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2996 $as_echo "$AWK" >&6; }
2998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2999 $as_echo "no" >&6; }
3003 test -n "$AWK" && break
3006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3007 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3009 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3010 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3011 $as_echo_n "(cached) " >&6
3013 cat >conftest.make <<\_ACEOF
3016 @echo '@@@%%%=$(MAKE)=@@@%%%'
3018 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3019 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3021 eval ac_cv_prog_make_${ac_make}_set=yes;;
3023 eval ac_cv_prog_make_${ac_make}_set=no;;
3027 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3029 $as_echo "yes" >&6; }
3032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3033 $as_echo "no" >&6; }
3034 SET_MAKE="MAKE=${MAKE-make}"
3037 rm -rf .tst 2>/dev/null
3038 mkdir .tst 2>/dev/null
3039 if test -d .tst; then
3044 rmdir .tst 2>/dev/null
3046 # Check whether --enable-silent-rules was given.
3047 if test "${enable_silent_rules+set}" = set; then :
3048 enableval=$enable_silent_rules;
3051 case $enable_silent_rules in # (((
3052 yes) AM_DEFAULT_VERBOSITY=0;;
3053 no) AM_DEFAULT_VERBOSITY=1;;
3054 *) AM_DEFAULT_VERBOSITY=1;;
3056 am_make=${MAKE-make}
3057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3058 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3059 if ${am_cv_make_support_nested_variables+:} false; then :
3060 $as_echo_n "(cached) " >&6
3062 if $as_echo 'TRUE=$(BAR$(V))
3068 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3069 am_cv_make_support_nested_variables=yes
3071 am_cv_make_support_nested_variables=no
3074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3075 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3076 if test $am_cv_make_support_nested_variables = yes; then
3078 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3080 AM_V=$AM_DEFAULT_VERBOSITY
3081 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3085 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3086 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3087 # is not polluted with repeated "-I."
3088 am__isrc=' -I$(srcdir)'
3089 # test to see if srcdir already configured
3090 if test -f $srcdir/config.status; then
3091 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3095 # test whether we have cygpath
3096 if test -z "$CYGPATH_W"; then
3097 if (cygpath --version) >/dev/null 2>/dev/null; then
3098 CYGPATH_W='cygpath -w'
3105 # Define the identity of the package.
3110 cat >>confdefs.h <<_ACEOF
3111 #define PACKAGE "$PACKAGE"
3115 cat >>confdefs.h <<_ACEOF
3116 #define VERSION "$VERSION"
3119 # Some tools Automake needs.
3121 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3124 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3127 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3130 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3133 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3135 # For better backward compatibility. To be removed once Automake 1.9.x
3136 # dies out for good. For more background, see:
3137 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3138 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3139 mkdir_p='$(MKDIR_P)'
3141 # We need awk for the "check" target. The system "awk" is bad on
3143 # Always define AMTAR for backward compatibility. Yes, it's still used
3144 # in the wild :-( We should find a proper way to deprecate it ...
3148 # We'll loop over all known methods to create a tar archive until one works.
3149 _am_tools='gnutar pax cpio none'
3151 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3162 # Check whether --with-whiny-user-strftime was given.
3163 if test "${with_whiny_user_strftime+set}" = set; then :
3164 withval=$with_whiny_user_strftime; if test "$withval" = yes
3167 $as_echo "#define USE_INCLUDED_STRFTIME 1" >>confdefs.h
3173 # Check whether --enable-lint was given.
3174 if test "${enable_lint+set}" = set; then :
3175 enableval=$enable_lint; if test "$enableval" = no
3178 $as_echo "#define NO_LINT 1" >>confdefs.h
3185 # Make sure we can run config.sub.
3186 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3187 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3190 $as_echo_n "checking build system type... " >&6; }
3191 if ${ac_cv_build+:} false; then :
3192 $as_echo_n "(cached) " >&6
3194 ac_build_alias=$build_alias
3195 test "x$ac_build_alias" = x &&
3196 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3197 test "x$ac_build_alias" = x &&
3198 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3199 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3200 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3204 $as_echo "$ac_cv_build" >&6; }
3205 case $ac_cv_build in
3207 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3210 ac_save_IFS=$IFS; IFS='-'
3216 # Remember, the first character of IFS is used to create $*,
3217 # except with old shells:
3220 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3224 $as_echo_n "checking host system type... " >&6; }
3225 if ${ac_cv_host+:} false; then :
3226 $as_echo_n "(cached) " >&6
3228 if test "x$host_alias" = x; then
3229 ac_cv_host=$ac_cv_build
3231 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3232 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3237 $as_echo "$ac_cv_host" >&6; }
3240 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3243 ac_save_IFS=$IFS; IFS='-'
3249 # Remember, the first character of IFS is used to create $*,
3250 # except with old shells:
3253 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3256 DEPDIR="${am__leading_dot}deps"
3258 ac_config_commands="$ac_config_commands depfiles"
3261 am_make=${MAKE-make}
3262 cat > confinc << 'END'
3264 @echo this is the am__doit target
3267 # If we don't find an include directive, just comment out the code.
3268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3269 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3273 # First try GNU make style include.
3274 echo "include confinc" > confmf
3275 # Ignore all kinds of additional output from 'make'.
3276 case `$am_make -s -f confmf 2> /dev/null` in #(
3277 *the\ am__doit\ target*)
3283 # Now try BSD make style include.
3284 if test "$am__include" = "#"; then
3285 echo '.include "confinc"' > confmf
3286 case `$am_make -s -f confmf 2> /dev/null` in #(
3287 *the\ am__doit\ target*)
3288 am__include=.include
3296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3297 $as_echo "$_am_result" >&6; }
3298 rm -f confinc confmf
3300 # Check whether --enable-dependency-tracking was given.
3301 if test "${enable_dependency_tracking+set}" = set; then :
3302 enableval=$enable_dependency_tracking;
3305 if test "x$enable_dependency_tracking" != xno; then
3306 am_depcomp="$ac_aux_dir/depcomp"
3310 if test "x$enable_dependency_tracking" != xno; then
3320 ac_cpp='$CPP $CPPFLAGS'
3321 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3322 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3323 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3324 if test -n "$ac_tool_prefix"; then
3325 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3326 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3328 $as_echo_n "checking for $ac_word... " >&6; }
3329 if ${ac_cv_prog_CC+:} false; then :
3330 $as_echo_n "(cached) " >&6
3332 if test -n "$CC"; then
3333 ac_cv_prog_CC="$CC" # Let the user override the test.
3335 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3339 test -z "$as_dir" && as_dir=.
3340 for ac_exec_ext in '' $ac_executable_extensions; do
3341 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3342 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3343 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3353 if test -n "$CC"; then
3354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3355 $as_echo "$CC" >&6; }
3357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3358 $as_echo "no" >&6; }
3363 if test -z "$ac_cv_prog_CC"; then
3365 # Extract the first word of "gcc", so it can be a program name with args.
3366 set dummy gcc; ac_word=$2
3367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3368 $as_echo_n "checking for $ac_word... " >&6; }
3369 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3370 $as_echo_n "(cached) " >&6
3372 if test -n "$ac_ct_CC"; then
3373 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3375 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3379 test -z "$as_dir" && as_dir=.
3380 for ac_exec_ext in '' $ac_executable_extensions; do
3381 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3382 ac_cv_prog_ac_ct_CC="gcc"
3383 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3392 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3393 if test -n "$ac_ct_CC"; then
3394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3395 $as_echo "$ac_ct_CC" >&6; }
3397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3398 $as_echo "no" >&6; }
3401 if test "x$ac_ct_CC" = x; then
3404 case $cross_compiling:$ac_tool_warned in
3406 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3407 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3408 ac_tool_warned=yes ;;
3416 if test -z "$CC"; then
3417 if test -n "$ac_tool_prefix"; then
3418 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3419 set dummy ${ac_tool_prefix}cc; ac_word=$2
3420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3421 $as_echo_n "checking for $ac_word... " >&6; }
3422 if ${ac_cv_prog_CC+:} false; then :
3423 $as_echo_n "(cached) " >&6
3425 if test -n "$CC"; then
3426 ac_cv_prog_CC="$CC" # Let the user override the test.
3428 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3432 test -z "$as_dir" && as_dir=.
3433 for ac_exec_ext in '' $ac_executable_extensions; do
3434 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3435 ac_cv_prog_CC="${ac_tool_prefix}cc"
3436 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3446 if test -n "$CC"; then
3447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3448 $as_echo "$CC" >&6; }
3450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3451 $as_echo "no" >&6; }
3457 if test -z "$CC"; then
3458 # Extract the first word of "cc", so it can be a program name with args.
3459 set dummy cc; ac_word=$2
3460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3461 $as_echo_n "checking for $ac_word... " >&6; }
3462 if ${ac_cv_prog_CC+:} false; then :
3463 $as_echo_n "(cached) " >&6
3465 if test -n "$CC"; then
3466 ac_cv_prog_CC="$CC" # Let the user override the test.
3469 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3473 test -z "$as_dir" && as_dir=.
3474 for ac_exec_ext in '' $ac_executable_extensions; do
3475 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3476 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3477 ac_prog_rejected=yes
3481 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3488 if test $ac_prog_rejected = yes; then
3489 # We found a bogon in the path, so make sure we never use it.
3490 set dummy $ac_cv_prog_CC
3492 if test $# != 0; then
3493 # We chose a different compiler from the bogus one.
3494 # However, it has the same basename, so the bogon will be chosen
3495 # first if we set CC to just the basename; use the full file name.
3497 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3503 if test -n "$CC"; then
3504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3505 $as_echo "$CC" >&6; }
3507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3508 $as_echo "no" >&6; }
3513 if test -z "$CC"; then
3514 if test -n "$ac_tool_prefix"; then
3515 for ac_prog in cl.exe
3517 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3518 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3520 $as_echo_n "checking for $ac_word... " >&6; }
3521 if ${ac_cv_prog_CC+:} false; then :
3522 $as_echo_n "(cached) " >&6
3524 if test -n "$CC"; then
3525 ac_cv_prog_CC="$CC" # Let the user override the test.
3527 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3531 test -z "$as_dir" && as_dir=.
3532 for ac_exec_ext in '' $ac_executable_extensions; do
3533 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3534 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3535 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3545 if test -n "$CC"; then
3546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3547 $as_echo "$CC" >&6; }
3549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3550 $as_echo "no" >&6; }
3554 test -n "$CC" && break
3557 if test -z "$CC"; then
3559 for ac_prog in cl.exe
3561 # Extract the first word of "$ac_prog", so it can be a program name with args.
3562 set dummy $ac_prog; ac_word=$2
3563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3564 $as_echo_n "checking for $ac_word... " >&6; }
3565 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3566 $as_echo_n "(cached) " >&6
3568 if test -n "$ac_ct_CC"; then
3569 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3571 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3575 test -z "$as_dir" && as_dir=.
3576 for ac_exec_ext in '' $ac_executable_extensions; do
3577 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3578 ac_cv_prog_ac_ct_CC="$ac_prog"
3579 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3588 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3589 if test -n "$ac_ct_CC"; then
3590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3591 $as_echo "$ac_ct_CC" >&6; }
3593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3594 $as_echo "no" >&6; }
3598 test -n "$ac_ct_CC" && break
3601 if test "x$ac_ct_CC" = x; then
3604 case $cross_compiling:$ac_tool_warned in
3606 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3607 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3608 ac_tool_warned=yes ;;
3617 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3618 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3619 as_fn_error $? "no acceptable C compiler found in \$PATH
3620 See \`config.log' for more details" "$LINENO" 5; }
3622 # Provide some information about the compiler.
3623 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3626 for ac_option in --version -v -V -qversion; do
3627 { { ac_try="$ac_compiler $ac_option >&5"
3629 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3630 *) ac_try_echo=$ac_try;;
3632 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3633 $as_echo "$ac_try_echo"; } >&5
3634 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3636 if test -s conftest.err; then
3638 ... rest of stderr output deleted ...
3639 10q' conftest.err >conftest.er1
3640 cat conftest.er1 >&5
3642 rm -f conftest.er1 conftest.err
3643 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3644 test $ac_status = 0; }
3647 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3648 /* end confdefs.h. */
3658 ac_clean_files_save=$ac_clean_files
3659 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3660 # Try to create an executable without -o first, disregard a.out.
3661 # It will help us diagnose broken compilers, and finding out an intuition
3663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3664 $as_echo_n "checking whether the C compiler works... " >&6; }
3665 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3667 # The possible output files:
3668 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3671 for ac_file in $ac_files
3674 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3675 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3680 if { { ac_try="$ac_link_default"
3682 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3683 *) ac_try_echo=$ac_try;;
3685 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3686 $as_echo "$ac_try_echo"; } >&5
3687 (eval "$ac_link_default") 2>&5
3689 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3690 test $ac_status = 0; }; then :
3691 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3692 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3693 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3694 # so that the user can short-circuit this test for compilers unknown to
3696 for ac_file in $ac_files ''
3698 test -f "$ac_file" || continue
3700 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3703 # We found the default executable, but exeext='' is most
3707 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3709 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3711 # We set ac_cv_exeext here because the later test for it is not
3712 # safe: cross compilers may not add the suffix if given an `-o'
3713 # argument, so we may need to know it at that point already.
3714 # Even if this section looks crufty: it has the advantage of
3721 test "$ac_cv_exeext" = no && ac_cv_exeext=
3726 if test -z "$ac_file"; then :
3727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3728 $as_echo "no" >&6; }
3729 $as_echo "$as_me: failed program was:" >&5
3730 sed 's/^/| /' conftest.$ac_ext >&5
3732 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3733 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3734 as_fn_error 77 "C compiler cannot create executables
3735 See \`config.log' for more details" "$LINENO" 5; }
3737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3738 $as_echo "yes" >&6; }
3740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3741 $as_echo_n "checking for C compiler default output file name... " >&6; }
3742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3743 $as_echo "$ac_file" >&6; }
3744 ac_exeext=$ac_cv_exeext
3746 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3747 ac_clean_files=$ac_clean_files_save
3748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3749 $as_echo_n "checking for suffix of executables... " >&6; }
3750 if { { ac_try="$ac_link"
3752 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3753 *) ac_try_echo=$ac_try;;
3755 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3756 $as_echo "$ac_try_echo"; } >&5
3757 (eval "$ac_link") 2>&5
3759 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3760 test $ac_status = 0; }; then :
3761 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3762 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3763 # work properly (i.e., refer to `conftest.exe'), while it won't with
3765 for ac_file in conftest.exe conftest conftest.*; do
3766 test -f "$ac_file" || continue
3768 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3769 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3775 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3776 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3777 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3778 See \`config.log' for more details" "$LINENO" 5; }
3780 rm -f conftest conftest$ac_cv_exeext
3781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3782 $as_echo "$ac_cv_exeext" >&6; }
3784 rm -f conftest.$ac_ext
3785 EXEEXT=$ac_cv_exeext
3787 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3788 /* end confdefs.h. */
3793 FILE *f = fopen ("conftest.out", "w");
3794 return ferror (f) || fclose (f) != 0;
3800 ac_clean_files="$ac_clean_files conftest.out"
3801 # Check that the compiler produces executables we can run. If not, either
3802 # the compiler is broken, or we cross compile.
3803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3804 $as_echo_n "checking whether we are cross compiling... " >&6; }
3805 if test "$cross_compiling" != yes; then
3806 { { ac_try="$ac_link"
3808 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3809 *) ac_try_echo=$ac_try;;
3811 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3812 $as_echo "$ac_try_echo"; } >&5
3813 (eval "$ac_link") 2>&5
3815 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3816 test $ac_status = 0; }
3817 if { ac_try='./conftest$ac_cv_exeext'
3818 { { case "(($ac_try" in
3819 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3820 *) ac_try_echo=$ac_try;;
3822 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3823 $as_echo "$ac_try_echo"; } >&5
3824 (eval "$ac_try") 2>&5
3826 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3827 test $ac_status = 0; }; }; then
3830 if test "$cross_compiling" = maybe; then
3833 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3834 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3835 as_fn_error $? "cannot run C compiled programs.
3836 If you meant to cross compile, use \`--host'.
3837 See \`config.log' for more details" "$LINENO" 5; }
3841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3842 $as_echo "$cross_compiling" >&6; }
3844 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3845 ac_clean_files=$ac_clean_files_save
3846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3847 $as_echo_n "checking for suffix of object files... " >&6; }
3848 if ${ac_cv_objext+:} false; then :
3849 $as_echo_n "(cached) " >&6
3851 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3852 /* end confdefs.h. */
3862 rm -f conftest.o conftest.obj
3863 if { { ac_try="$ac_compile"
3865 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3866 *) ac_try_echo=$ac_try;;
3868 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3869 $as_echo "$ac_try_echo"; } >&5
3870 (eval "$ac_compile") 2>&5
3872 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3873 test $ac_status = 0; }; then :
3874 for ac_file in conftest.o conftest.obj conftest.*; do
3875 test -f "$ac_file" || continue;
3877 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3878 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3883 $as_echo "$as_me: failed program was:" >&5
3884 sed 's/^/| /' conftest.$ac_ext >&5
3886 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3887 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3888 as_fn_error $? "cannot compute suffix of object files: cannot compile
3889 See \`config.log' for more details" "$LINENO" 5; }
3891 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3894 $as_echo "$ac_cv_objext" >&6; }
3895 OBJEXT=$ac_cv_objext
3897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3898 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3899 if ${ac_cv_c_compiler_gnu+:} false; then :
3900 $as_echo_n "(cached) " >&6
3902 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3903 /* end confdefs.h. */
3916 if ac_fn_c_try_compile "$LINENO"; then :
3921 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3922 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3926 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3927 if test $ac_compiler_gnu = yes; then
3932 ac_test_CFLAGS=${CFLAGS+set}
3933 ac_save_CFLAGS=$CFLAGS
3934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3935 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3936 if ${ac_cv_prog_cc_g+:} false; then :
3937 $as_echo_n "(cached) " >&6
3939 ac_save_c_werror_flag=$ac_c_werror_flag
3940 ac_c_werror_flag=yes
3943 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3944 /* end confdefs.h. */
3954 if ac_fn_c_try_compile "$LINENO"; then :
3958 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3959 /* end confdefs.h. */
3969 if ac_fn_c_try_compile "$LINENO"; then :
3972 ac_c_werror_flag=$ac_save_c_werror_flag
3974 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3975 /* end confdefs.h. */
3985 if ac_fn_c_try_compile "$LINENO"; then :
3988 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3990 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3992 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3993 ac_c_werror_flag=$ac_save_c_werror_flag
3995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3996 $as_echo "$ac_cv_prog_cc_g" >&6; }
3997 if test "$ac_test_CFLAGS" = set; then
3998 CFLAGS=$ac_save_CFLAGS
3999 elif test $ac_cv_prog_cc_g = yes; then
4000 if test "$GCC" = yes; then
4006 if test "$GCC" = yes; then
4012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4013 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4014 if ${ac_cv_prog_cc_c89+:} false; then :
4015 $as_echo_n "(cached) " >&6
4017 ac_cv_prog_cc_c89=no
4019 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4020 /* end confdefs.h. */
4024 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4025 struct buf { int x; };
4026 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4027 static char *e (p, i)
4033 static char *f (char * (*g) (char **, int), char **p, ...)
4038 s = g (p, va_arg (v,int));
4043 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4044 function prototypes and stuff, but not '\xHH' hex character constants.
4045 These don't provoke an error unfortunately, instead are silently treated
4046 as 'x'. The following induces an error, until -std is added to get
4047 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4048 array size at least. It's necessary to write '\x00'==0 to get something
4049 that's true only with -std. */
4050 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4052 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4053 inside strings and character constants. */
4055 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4057 int test (int i, double x);
4058 struct s1 {int (*f) (int a);};
4059 struct s2 {int (*f) (double a);};
4060 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4066 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4071 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4072 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4074 CC="$ac_save_CC $ac_arg"
4075 if ac_fn_c_try_compile "$LINENO"; then :
4076 ac_cv_prog_cc_c89=$ac_arg
4078 rm -f core conftest.err conftest.$ac_objext
4079 test "x$ac_cv_prog_cc_c89" != "xno" && break
4081 rm -f conftest.$ac_ext
4086 case "x$ac_cv_prog_cc_c89" in
4088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4089 $as_echo "none needed" >&6; } ;;
4091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4092 $as_echo "unsupported" >&6; } ;;
4094 CC="$CC $ac_cv_prog_cc_c89"
4095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4096 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4098 if test "x$ac_cv_prog_cc_c89" != xno; then :
4103 ac_cpp='$CPP $CPPFLAGS'
4104 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4105 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4106 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4108 depcc="$CC" am_compiler_list=
4110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4111 $as_echo_n "checking dependency style of $depcc... " >&6; }
4112 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4113 $as_echo_n "(cached) " >&6
4115 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4116 # We make a subdir and do the tests there. Otherwise we can end up
4117 # making bogus files that we don't know about and never remove. For
4118 # instance it was reported that on HP-UX the gcc test will end up
4119 # making a dummy file named 'D' -- because '-MD' means "put the output
4123 # Copy depcomp to subdir because otherwise we won't find it if we're
4124 # using a relative directory.
4125 cp "$am_depcomp" conftest.dir
4127 # We will build objects and dependencies in a subdirectory because
4128 # it helps to detect inapplicable dependency modes. For instance
4129 # both Tru64's cc and ICC support -MD to output dependencies as a
4130 # side effect of compilation, but ICC will put the dependencies in
4131 # the current directory while Tru64 will put them in the object
4135 am_cv_CC_dependencies_compiler_type=none
4136 if test "$am_compiler_list" = ""; then
4137 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4140 case " $depcc " in #(
4141 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4144 for depmode in $am_compiler_list; do
4145 # Setup a source with many dependencies, because some compilers
4146 # like to wrap large dependency lists on column 80 (with \), and
4147 # we should not choose a depcomp mode which is confused by this.
4149 # We need to recreate these files for each test, as the compiler may
4150 # overwrite some of them when testing with obscure command lines.
4151 # This happens at least with the AIX C compiler.
4153 for i in 1 2 3 4 5 6; do
4154 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4155 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4156 # Solaris 10 /bin/sh.
4157 echo '/* dummy */' > sub/conftst$i.h
4159 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4161 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4162 # mode. It turns out that the SunPro C++ compiler does not properly
4163 # handle '-M -o', and we need to detect this. Also, some Intel
4164 # versions had trouble with output in subdirs.
4165 am__obj=sub/conftest.${OBJEXT-o}
4166 am__minus_obj="-o $am__obj"
4169 # This depmode causes a compiler race in universal mode.
4170 test "$am__universal" = false || continue
4173 # After this tag, mechanisms are not by side-effect, so they'll
4174 # only be used when explicitly requested.
4175 if test "x$enable_dependency_tracking" = xyes; then
4181 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4182 # This compiler won't grok '-c -o', but also, the minuso test has
4183 # not run yet. These depmodes are late enough in the game, and
4184 # so weak that their functioning should not be impacted.
4185 am__obj=conftest.${OBJEXT-o}
4190 if depmode=$depmode \
4191 source=sub/conftest.c object=$am__obj \
4192 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4193 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4194 >/dev/null 2>conftest.err &&
4195 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4196 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4197 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4198 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4199 # icc doesn't choke on unknown options, it will just issue warnings
4200 # or remarks (even with -Werror). So we grep stderr for any message
4201 # that says an option was ignored or not supported.
4202 # When given -MP, icc 7.0 and 7.1 complain thusly:
4203 # icc: Command line warning: ignoring option '-M'; no argument required
4204 # The diagnosis changed in icc 8.0:
4205 # icc: Command line remark: option '-MP' not supported
4206 if (grep 'ignoring option' conftest.err ||
4207 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4208 am_cv_CC_dependencies_compiler_type=$depmode
4217 am_cv_CC_dependencies_compiler_type=none
4221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4222 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4223 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4226 test "x$enable_dependency_tracking" != xno \
4227 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4229 am__fastdepCC_FALSE='#'
4231 am__fastdepCC_TRUE='#'
4232 am__fastdepCC_FALSE=
4238 ac_cpp='$CPP $CPPFLAGS'
4239 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4240 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4241 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4243 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4244 # On Suns, sometimes $CPP names a directory.
4245 if test -n "$CPP" && test -d "$CPP"; then
4248 if test -z "$CPP"; then
4249 if ${ac_cv_prog_CPP+:} false; then :
4250 $as_echo_n "(cached) " >&6
4252 # Double quotes because CPP needs to be expanded
4253 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4256 for ac_c_preproc_warn_flag in '' yes
4258 # Use a header file that comes with gcc, so configuring glibc
4259 # with a fresh cross-compiler works.
4260 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4261 # <limits.h> exists even on freestanding compilers.
4262 # On the NeXT, cc -E runs the code through the compiler's parser,
4263 # not just through cpp. "Syntax error" is here to catch this case.
4264 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4265 /* end confdefs.h. */
4267 # include <limits.h>
4269 # include <assert.h>
4273 if ac_fn_c_try_cpp "$LINENO"; then :
4276 # Broken: fails on valid input.
4279 rm -f conftest.err conftest.i conftest.$ac_ext
4281 # OK, works on sane cases. Now check whether nonexistent headers
4282 # can be detected and how.
4283 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4284 /* end confdefs.h. */
4285 #include <ac_nonexistent.h>
4287 if ac_fn_c_try_cpp "$LINENO"; then :
4288 # Broken: success on invalid input.
4291 # Passes both tests.
4295 rm -f conftest.err conftest.i conftest.$ac_ext
4298 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4299 rm -f conftest.i conftest.err conftest.$ac_ext
4300 if $ac_preproc_ok; then :
4312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4313 $as_echo "$CPP" >&6; }
4315 for ac_c_preproc_warn_flag in '' yes
4317 # Use a header file that comes with gcc, so configuring glibc
4318 # with a fresh cross-compiler works.
4319 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4320 # <limits.h> exists even on freestanding compilers.
4321 # On the NeXT, cc -E runs the code through the compiler's parser,
4322 # not just through cpp. "Syntax error" is here to catch this case.
4323 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4324 /* end confdefs.h. */
4326 # include <limits.h>
4328 # include <assert.h>
4332 if ac_fn_c_try_cpp "$LINENO"; then :
4335 # Broken: fails on valid input.
4338 rm -f conftest.err conftest.i conftest.$ac_ext
4340 # OK, works on sane cases. Now check whether nonexistent headers
4341 # can be detected and how.
4342 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4343 /* end confdefs.h. */
4344 #include <ac_nonexistent.h>
4346 if ac_fn_c_try_cpp "$LINENO"; then :
4347 # Broken: success on invalid input.
4350 # Passes both tests.
4354 rm -f conftest.err conftest.i conftest.$ac_ext
4357 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4358 rm -f conftest.i conftest.err conftest.$ac_ext
4359 if $ac_preproc_ok; then :
4362 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4363 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4364 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4365 See \`config.log' for more details" "$LINENO" 5; }
4369 ac_cpp='$CPP $CPPFLAGS'
4370 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4371 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4372 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4376 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4377 if ${ac_cv_path_GREP+:} false; then :
4378 $as_echo_n "(cached) " >&6
4380 if test -z "$GREP"; then
4381 ac_path_GREP_found=false
4382 # Loop through the user's path and test for each of PROGNAME-LIST
4383 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4384 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4387 test -z "$as_dir" && as_dir=.
4388 for ac_prog in grep ggrep; do
4389 for ac_exec_ext in '' $ac_executable_extensions; do
4390 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4391 as_fn_executable_p "$ac_path_GREP" || continue
4392 # Check for GNU ac_path_GREP and select it if it is found.
4393 # Check for GNU $ac_path_GREP
4394 case `"$ac_path_GREP" --version 2>&1` in
4396 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4399 $as_echo_n 0123456789 >"conftest.in"
4402 cat "conftest.in" "conftest.in" >"conftest.tmp"
4403 mv "conftest.tmp" "conftest.in"
4404 cp "conftest.in" "conftest.nl"
4405 $as_echo 'GREP' >> "conftest.nl"
4406 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4407 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4408 as_fn_arith $ac_count + 1 && ac_count=$as_val
4409 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4410 # Best one so far, save it but keep looking for a better one
4411 ac_cv_path_GREP="$ac_path_GREP"
4412 ac_path_GREP_max=$ac_count
4414 # 10*(2^10) chars as input seems more than enough
4415 test $ac_count -gt 10 && break
4417 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4420 $ac_path_GREP_found && break 3
4425 if test -z "$ac_cv_path_GREP"; then
4426 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4429 ac_cv_path_GREP=$GREP
4433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4434 $as_echo "$ac_cv_path_GREP" >&6; }
4435 GREP="$ac_cv_path_GREP"
4438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4439 $as_echo_n "checking for egrep... " >&6; }
4440 if ${ac_cv_path_EGREP+:} false; then :
4441 $as_echo_n "(cached) " >&6
4443 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4444 then ac_cv_path_EGREP="$GREP -E"
4446 if test -z "$EGREP"; then
4447 ac_path_EGREP_found=false
4448 # Loop through the user's path and test for each of PROGNAME-LIST
4449 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4450 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4453 test -z "$as_dir" && as_dir=.
4454 for ac_prog in egrep; do
4455 for ac_exec_ext in '' $ac_executable_extensions; do
4456 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4457 as_fn_executable_p "$ac_path_EGREP" || continue
4458 # Check for GNU ac_path_EGREP and select it if it is found.
4459 # Check for GNU $ac_path_EGREP
4460 case `"$ac_path_EGREP" --version 2>&1` in
4462 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4465 $as_echo_n 0123456789 >"conftest.in"
4468 cat "conftest.in" "conftest.in" >"conftest.tmp"
4469 mv "conftest.tmp" "conftest.in"
4470 cp "conftest.in" "conftest.nl"
4471 $as_echo 'EGREP' >> "conftest.nl"
4472 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4473 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4474 as_fn_arith $ac_count + 1 && ac_count=$as_val
4475 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4476 # Best one so far, save it but keep looking for a better one
4477 ac_cv_path_EGREP="$ac_path_EGREP"
4478 ac_path_EGREP_max=$ac_count
4480 # 10*(2^10) chars as input seems more than enough
4481 test $ac_count -gt 10 && break
4483 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4486 $ac_path_EGREP_found && break 3
4491 if test -z "$ac_cv_path_EGREP"; then
4492 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4495 ac_cv_path_EGREP=$EGREP
4500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4501 $as_echo "$ac_cv_path_EGREP" >&6; }
4502 EGREP="$ac_cv_path_EGREP"
4505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4506 $as_echo_n "checking for ANSI C header files... " >&6; }
4507 if ${ac_cv_header_stdc+:} false; then :
4508 $as_echo_n "(cached) " >&6
4510 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4511 /* end confdefs.h. */
4525 if ac_fn_c_try_compile "$LINENO"; then :
4526 ac_cv_header_stdc=yes
4528 ac_cv_header_stdc=no
4530 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4532 if test $ac_cv_header_stdc = yes; then
4533 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4534 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4535 /* end confdefs.h. */
4539 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4540 $EGREP "memchr" >/dev/null 2>&1; then :
4543 ac_cv_header_stdc=no
4549 if test $ac_cv_header_stdc = yes; then
4550 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4551 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4552 /* end confdefs.h. */
4556 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4557 $EGREP "free" >/dev/null 2>&1; then :
4560 ac_cv_header_stdc=no
4566 if test $ac_cv_header_stdc = yes; then
4567 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4568 if test "$cross_compiling" = yes; then :
4571 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4572 /* end confdefs.h. */
4575 #if ((' ' & 0x0FF) == 0x020)
4576 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4577 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4579 # define ISLOWER(c) \
4580 (('a' <= (c) && (c) <= 'i') \
4581 || ('j' <= (c) && (c) <= 'r') \
4582 || ('s' <= (c) && (c) <= 'z'))
4583 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4586 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4591 for (i = 0; i < 256; i++)
4592 if (XOR (islower (i), ISLOWER (i))
4593 || toupper (i) != TOUPPER (i))
4598 if ac_fn_c_try_run "$LINENO"; then :
4601 ac_cv_header_stdc=no
4603 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4604 conftest.$ac_objext conftest.beam conftest.$ac_ext
4609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4610 $as_echo "$ac_cv_header_stdc" >&6; }
4611 if test $ac_cv_header_stdc = yes; then
4613 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4617 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4618 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4619 inttypes.h stdint.h unistd.h
4621 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4622 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4624 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4625 cat >>confdefs.h <<_ACEOF
4626 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4635 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4636 if test "x$ac_cv_header_minix_config_h" = xyes; then :
4643 if test "$MINIX" = yes; then
4645 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4648 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4651 $as_echo "#define _MINIX 1" >>confdefs.h
4656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4657 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4658 if ${ac_cv_safe_to_define___extensions__+:} false; then :
4659 $as_echo_n "(cached) " >&6
4661 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4662 /* end confdefs.h. */
4664 # define __EXTENSIONS__ 1
4665 $ac_includes_default
4674 if ac_fn_c_try_compile "$LINENO"; then :
4675 ac_cv_safe_to_define___extensions__=yes
4677 ac_cv_safe_to_define___extensions__=no
4679 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4682 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4683 test $ac_cv_safe_to_define___extensions__ = yes &&
4684 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4686 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4688 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4690 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4692 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4697 $as_echo_n "checking for egrep... " >&6; }
4698 if ${ac_cv_path_EGREP+:} false; then :
4699 $as_echo_n "(cached) " >&6
4701 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4702 then ac_cv_path_EGREP="$GREP -E"
4704 if test -z "$EGREP"; then
4705 ac_path_EGREP_found=false
4706 # Loop through the user's path and test for each of PROGNAME-LIST
4707 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4708 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4711 test -z "$as_dir" && as_dir=.
4712 for ac_prog in egrep; do
4713 for ac_exec_ext in '' $ac_executable_extensions; do
4714 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4715 as_fn_executable_p "$ac_path_EGREP" || continue
4716 # Check for GNU ac_path_EGREP and select it if it is found.
4717 # Check for GNU $ac_path_EGREP
4718 case `"$ac_path_EGREP" --version 2>&1` in
4720 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4723 $as_echo_n 0123456789 >"conftest.in"
4726 cat "conftest.in" "conftest.in" >"conftest.tmp"
4727 mv "conftest.tmp" "conftest.in"
4728 cp "conftest.in" "conftest.nl"
4729 $as_echo 'EGREP' >> "conftest.nl"
4730 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4731 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4732 as_fn_arith $ac_count + 1 && ac_count=$as_val
4733 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4734 # Best one so far, save it but keep looking for a better one
4735 ac_cv_path_EGREP="$ac_path_EGREP"
4736 ac_path_EGREP_max=$ac_count
4738 # 10*(2^10) chars as input seems more than enough
4739 test $ac_count -gt 10 && break
4741 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4744 $ac_path_EGREP_found && break 3
4749 if test -z "$ac_cv_path_EGREP"; then
4750 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4753 ac_cv_path_EGREP=$EGREP
4758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4759 $as_echo "$ac_cv_path_EGREP" >&6; }
4760 EGREP="$ac_cv_path_EGREP"
4763 for ac_prog in 'bison -y' byacc
4765 # Extract the first word of "$ac_prog", so it can be a program name with args.
4766 set dummy $ac_prog; ac_word=$2
4767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4768 $as_echo_n "checking for $ac_word... " >&6; }
4769 if ${ac_cv_prog_YACC+:} false; then :
4770 $as_echo_n "(cached) " >&6
4772 if test -n "$YACC"; then
4773 ac_cv_prog_YACC="$YACC" # Let the user override the test.
4775 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4779 test -z "$as_dir" && as_dir=.
4780 for ac_exec_ext in '' $ac_executable_extensions; do
4781 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4782 ac_cv_prog_YACC="$ac_prog"
4783 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4792 YACC=$ac_cv_prog_YACC
4793 if test -n "$YACC"; then
4794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
4795 $as_echo "$YACC" >&6; }
4797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4798 $as_echo "no" >&6; }
4802 test -n "$YACC" && break
4804 test -n "$YACC" || YACC="yacc"
4806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4807 $as_echo_n "checking whether ln -s works... " >&6; }
4809 if test "$LN_S" = "ln -s"; then
4810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4811 $as_echo "yes" >&6; }
4813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4814 $as_echo "no, using $LN_S" >&6; }
4818 ac_cpp='$CPP $CPPFLAGS'
4819 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4820 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4821 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4822 if test -n "$ac_tool_prefix"; then
4823 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4824 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4826 $as_echo_n "checking for $ac_word... " >&6; }
4827 if ${ac_cv_prog_CC+:} false; then :
4828 $as_echo_n "(cached) " >&6
4830 if test -n "$CC"; then
4831 ac_cv_prog_CC="$CC" # Let the user override the test.
4833 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4837 test -z "$as_dir" && as_dir=.
4838 for ac_exec_ext in '' $ac_executable_extensions; do
4839 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4840 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4841 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4851 if test -n "$CC"; then
4852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4853 $as_echo "$CC" >&6; }
4855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4856 $as_echo "no" >&6; }
4861 if test -z "$ac_cv_prog_CC"; then
4863 # Extract the first word of "gcc", so it can be a program name with args.
4864 set dummy gcc; ac_word=$2
4865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4866 $as_echo_n "checking for $ac_word... " >&6; }
4867 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4868 $as_echo_n "(cached) " >&6
4870 if test -n "$ac_ct_CC"; then
4871 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4873 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4877 test -z "$as_dir" && as_dir=.
4878 for ac_exec_ext in '' $ac_executable_extensions; do
4879 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4880 ac_cv_prog_ac_ct_CC="gcc"
4881 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4890 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4891 if test -n "$ac_ct_CC"; then
4892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4893 $as_echo "$ac_ct_CC" >&6; }
4895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4896 $as_echo "no" >&6; }
4899 if test "x$ac_ct_CC" = x; then
4902 case $cross_compiling:$ac_tool_warned in
4904 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4905 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4906 ac_tool_warned=yes ;;
4914 if test -z "$CC"; then
4915 if test -n "$ac_tool_prefix"; then
4916 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4917 set dummy ${ac_tool_prefix}cc; ac_word=$2
4918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4919 $as_echo_n "checking for $ac_word... " >&6; }
4920 if ${ac_cv_prog_CC+:} false; then :
4921 $as_echo_n "(cached) " >&6
4923 if test -n "$CC"; then
4924 ac_cv_prog_CC="$CC" # Let the user override the test.
4926 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4930 test -z "$as_dir" && as_dir=.
4931 for ac_exec_ext in '' $ac_executable_extensions; do
4932 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4933 ac_cv_prog_CC="${ac_tool_prefix}cc"
4934 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4944 if test -n "$CC"; then
4945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4946 $as_echo "$CC" >&6; }
4948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4949 $as_echo "no" >&6; }
4955 if test -z "$CC"; then
4956 # Extract the first word of "cc", so it can be a program name with args.
4957 set dummy cc; ac_word=$2
4958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4959 $as_echo_n "checking for $ac_word... " >&6; }
4960 if ${ac_cv_prog_CC+:} false; then :
4961 $as_echo_n "(cached) " >&6
4963 if test -n "$CC"; then
4964 ac_cv_prog_CC="$CC" # Let the user override the test.
4967 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4971 test -z "$as_dir" && as_dir=.
4972 for ac_exec_ext in '' $ac_executable_extensions; do
4973 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4974 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4975 ac_prog_rejected=yes
4979 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4986 if test $ac_prog_rejected = yes; then
4987 # We found a bogon in the path, so make sure we never use it.
4988 set dummy $ac_cv_prog_CC
4990 if test $# != 0; then
4991 # We chose a different compiler from the bogus one.
4992 # However, it has the same basename, so the bogon will be chosen
4993 # first if we set CC to just the basename; use the full file name.
4995 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
5001 if test -n "$CC"; then
5002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5003 $as_echo "$CC" >&6; }
5005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5006 $as_echo "no" >&6; }
5011 if test -z "$CC"; then
5012 if test -n "$ac_tool_prefix"; then
5013 for ac_prog in cl.exe
5015 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5016 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5018 $as_echo_n "checking for $ac_word... " >&6; }
5019 if ${ac_cv_prog_CC+:} false; then :
5020 $as_echo_n "(cached) " >&6
5022 if test -n "$CC"; then
5023 ac_cv_prog_CC="$CC" # Let the user override the test.
5025 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5029 test -z "$as_dir" && as_dir=.
5030 for ac_exec_ext in '' $ac_executable_extensions; do
5031 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5032 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5033 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5043 if test -n "$CC"; then
5044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5045 $as_echo "$CC" >&6; }
5047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5048 $as_echo "no" >&6; }
5052 test -n "$CC" && break
5055 if test -z "$CC"; then
5057 for ac_prog in cl.exe
5059 # Extract the first word of "$ac_prog", so it can be a program name with args.
5060 set dummy $ac_prog; ac_word=$2
5061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5062 $as_echo_n "checking for $ac_word... " >&6; }
5063 if ${ac_cv_prog_ac_ct_CC+:} false; then :
5064 $as_echo_n "(cached) " >&6
5066 if test -n "$ac_ct_CC"; then
5067 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5069 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5073 test -z "$as_dir" && as_dir=.
5074 for ac_exec_ext in '' $ac_executable_extensions; do
5075 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5076 ac_cv_prog_ac_ct_CC="$ac_prog"
5077 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5086 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5087 if test -n "$ac_ct_CC"; then
5088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5089 $as_echo "$ac_ct_CC" >&6; }
5091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5092 $as_echo "no" >&6; }
5096 test -n "$ac_ct_CC" && break
5099 if test "x$ac_ct_CC" = x; then
5102 case $cross_compiling:$ac_tool_warned in
5104 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5105 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5106 ac_tool_warned=yes ;;
5115 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5116 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5117 as_fn_error $? "no acceptable C compiler found in \$PATH
5118 See \`config.log' for more details" "$LINENO" 5; }
5120 # Provide some information about the compiler.
5121 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
5124 for ac_option in --version -v -V -qversion; do
5125 { { ac_try="$ac_compiler $ac_option >&5"
5127 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5128 *) ac_try_echo=$ac_try;;
5130 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5131 $as_echo "$ac_try_echo"; } >&5
5132 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5134 if test -s conftest.err; then
5136 ... rest of stderr output deleted ...
5137 10q' conftest.err >conftest.er1
5138 cat conftest.er1 >&5
5140 rm -f conftest.er1 conftest.err
5141 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5142 test $ac_status = 0; }
5145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
5146 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
5147 if ${ac_cv_c_compiler_gnu+:} false; then :
5148 $as_echo_n "(cached) " >&6
5150 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5151 /* end confdefs.h. */
5164 if ac_fn_c_try_compile "$LINENO"; then :
5169 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5170 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5174 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
5175 if test $ac_compiler_gnu = yes; then
5180 ac_test_CFLAGS=${CFLAGS+set}
5181 ac_save_CFLAGS=$CFLAGS
5182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5183 $as_echo_n "checking whether $CC accepts -g... " >&6; }
5184 if ${ac_cv_prog_cc_g+:} false; then :
5185 $as_echo_n "(cached) " >&6
5187 ac_save_c_werror_flag=$ac_c_werror_flag
5188 ac_c_werror_flag=yes
5191 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5192 /* end confdefs.h. */
5202 if ac_fn_c_try_compile "$LINENO"; then :
5206 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5207 /* end confdefs.h. */
5217 if ac_fn_c_try_compile "$LINENO"; then :
5220 ac_c_werror_flag=$ac_save_c_werror_flag
5222 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5223 /* end confdefs.h. */
5233 if ac_fn_c_try_compile "$LINENO"; then :
5236 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5238 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5240 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5241 ac_c_werror_flag=$ac_save_c_werror_flag
5243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5244 $as_echo "$ac_cv_prog_cc_g" >&6; }
5245 if test "$ac_test_CFLAGS" = set; then
5246 CFLAGS=$ac_save_CFLAGS
5247 elif test $ac_cv_prog_cc_g = yes; then
5248 if test "$GCC" = yes; then
5254 if test "$GCC" = yes; then
5260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
5261 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5262 if ${ac_cv_prog_cc_c89+:} false; then :
5263 $as_echo_n "(cached) " >&6
5265 ac_cv_prog_cc_c89=no
5267 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5268 /* end confdefs.h. */
5272 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5273 struct buf { int x; };
5274 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5275 static char *e (p, i)
5281 static char *f (char * (*g) (char **, int), char **p, ...)
5286 s = g (p, va_arg (v,int));
5291 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5292 function prototypes and stuff, but not '\xHH' hex character constants.
5293 These don't provoke an error unfortunately, instead are silently treated
5294 as 'x'. The following induces an error, until -std is added to get
5295 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5296 array size at least. It's necessary to write '\x00'==0 to get something
5297 that's true only with -std. */
5298 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5300 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5301 inside strings and character constants. */
5303 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5305 int test (int i, double x);
5306 struct s1 {int (*f) (int a);};
5307 struct s2 {int (*f) (double a);};
5308 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5314 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5319 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5320 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5322 CC="$ac_save_CC $ac_arg"
5323 if ac_fn_c_try_compile "$LINENO"; then :
5324 ac_cv_prog_cc_c89=$ac_arg
5326 rm -f core conftest.err conftest.$ac_objext
5327 test "x$ac_cv_prog_cc_c89" != "xno" && break
5329 rm -f conftest.$ac_ext
5334 case "x$ac_cv_prog_cc_c89" in
5336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5337 $as_echo "none needed" >&6; } ;;
5339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5340 $as_echo "unsupported" >&6; } ;;
5342 CC="$CC $ac_cv_prog_cc_c89"
5343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5344 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5346 if test "x$ac_cv_prog_cc_c89" != xno; then :
5351 ac_cpp='$CPP $CPPFLAGS'
5352 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5353 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5354 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5356 depcc="$CC" am_compiler_list=
5358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5359 $as_echo_n "checking dependency style of $depcc... " >&6; }
5360 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
5361 $as_echo_n "(cached) " >&6
5363 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5364 # We make a subdir and do the tests there. Otherwise we can end up
5365 # making bogus files that we don't know about and never remove. For
5366 # instance it was reported that on HP-UX the gcc test will end up
5367 # making a dummy file named 'D' -- because '-MD' means "put the output
5371 # Copy depcomp to subdir because otherwise we won't find it if we're
5372 # using a relative directory.
5373 cp "$am_depcomp" conftest.dir
5375 # We will build objects and dependencies in a subdirectory because
5376 # it helps to detect inapplicable dependency modes. For instance
5377 # both Tru64's cc and ICC support -MD to output dependencies as a
5378 # side effect of compilation, but ICC will put the dependencies in
5379 # the current directory while Tru64 will put them in the object
5383 am_cv_CC_dependencies_compiler_type=none
5384 if test "$am_compiler_list" = ""; then
5385 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5388 case " $depcc " in #(
5389 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5392 for depmode in $am_compiler_list; do
5393 # Setup a source with many dependencies, because some compilers
5394 # like to wrap large dependency lists on column 80 (with \), and
5395 # we should not choose a depcomp mode which is confused by this.
5397 # We need to recreate these files for each test, as the compiler may
5398 # overwrite some of them when testing with obscure command lines.
5399 # This happens at least with the AIX C compiler.
5401 for i in 1 2 3 4 5 6; do
5402 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5403 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
5404 # Solaris 10 /bin/sh.
5405 echo '/* dummy */' > sub/conftst$i.h
5407 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5409 # We check with '-c' and '-o' for the sake of the "dashmstdout"
5410 # mode. It turns out that the SunPro C++ compiler does not properly
5411 # handle '-M -o', and we need to detect this. Also, some Intel
5412 # versions had trouble with output in subdirs.
5413 am__obj=sub/conftest.${OBJEXT-o}
5414 am__minus_obj="-o $am__obj"
5417 # This depmode causes a compiler race in universal mode.
5418 test "$am__universal" = false || continue
5421 # After this tag, mechanisms are not by side-effect, so they'll
5422 # only be used when explicitly requested.
5423 if test "x$enable_dependency_tracking" = xyes; then
5429 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
5430 # This compiler won't grok '-c -o', but also, the minuso test has
5431 # not run yet. These depmodes are late enough in the game, and
5432 # so weak that their functioning should not be impacted.
5433 am__obj=conftest.${OBJEXT-o}
5438 if depmode=$depmode \
5439 source=sub/conftest.c object=$am__obj \
5440 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5441 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5442 >/dev/null 2>conftest.err &&
5443 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5444 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5445 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5446 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5447 # icc doesn't choke on unknown options, it will just issue warnings
5448 # or remarks (even with -Werror). So we grep stderr for any message
5449 # that says an option was ignored or not supported.
5450 # When given -MP, icc 7.0 and 7.1 complain thusly:
5451 # icc: Command line warning: ignoring option '-M'; no argument required
5452 # The diagnosis changed in icc 8.0:
5453 # icc: Command line remark: option '-MP' not supported
5454 if (grep 'ignoring option' conftest.err ||
5455 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5456 am_cv_CC_dependencies_compiler_type=$depmode
5465 am_cv_CC_dependencies_compiler_type=none
5469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5470 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5471 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5474 test "x$enable_dependency_tracking" != xno \
5475 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5477 am__fastdepCC_FALSE='#'
5479 am__fastdepCC_TRUE='#'
5480 am__fastdepCC_FALSE=
5485 ac_cpp='$CPP $CPPFLAGS'
5486 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5487 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5488 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5490 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5491 # On Suns, sometimes $CPP names a directory.
5492 if test -n "$CPP" && test -d "$CPP"; then
5495 if test -z "$CPP"; then
5496 if ${ac_cv_prog_CPP+:} false; then :
5497 $as_echo_n "(cached) " >&6
5499 # Double quotes because CPP needs to be expanded
5500 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5503 for ac_c_preproc_warn_flag in '' yes
5505 # Use a header file that comes with gcc, so configuring glibc
5506 # with a fresh cross-compiler works.
5507 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5508 # <limits.h> exists even on freestanding compilers.
5509 # On the NeXT, cc -E runs the code through the compiler's parser,
5510 # not just through cpp. "Syntax error" is here to catch this case.
5511 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5512 /* end confdefs.h. */
5514 # include <limits.h>
5516 # include <assert.h>
5520 if ac_fn_c_try_cpp "$LINENO"; then :
5523 # Broken: fails on valid input.
5526 rm -f conftest.err conftest.i conftest.$ac_ext
5528 # OK, works on sane cases. Now check whether nonexistent headers
5529 # can be detected and how.
5530 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5531 /* end confdefs.h. */
5532 #include <ac_nonexistent.h>
5534 if ac_fn_c_try_cpp "$LINENO"; then :
5535 # Broken: success on invalid input.
5538 # Passes both tests.
5542 rm -f conftest.err conftest.i conftest.$ac_ext
5545 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5546 rm -f conftest.i conftest.err conftest.$ac_ext
5547 if $ac_preproc_ok; then :
5559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5560 $as_echo "$CPP" >&6; }
5562 for ac_c_preproc_warn_flag in '' yes
5564 # Use a header file that comes with gcc, so configuring glibc
5565 # with a fresh cross-compiler works.
5566 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5567 # <limits.h> exists even on freestanding compilers.
5568 # On the NeXT, cc -E runs the code through the compiler's parser,
5569 # not just through cpp. "Syntax error" is here to catch this case.
5570 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5571 /* end confdefs.h. */
5573 # include <limits.h>
5575 # include <assert.h>
5579 if ac_fn_c_try_cpp "$LINENO"; then :
5582 # Broken: fails on valid input.
5585 rm -f conftest.err conftest.i conftest.$ac_ext
5587 # OK, works on sane cases. Now check whether nonexistent headers
5588 # can be detected and how.
5589 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5590 /* end confdefs.h. */
5591 #include <ac_nonexistent.h>
5593 if ac_fn_c_try_cpp "$LINENO"; then :
5594 # Broken: success on invalid input.
5597 # Passes both tests.
5601 rm -f conftest.err conftest.i conftest.$ac_ext
5604 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5605 rm -f conftest.i conftest.err conftest.$ac_ext
5606 if $ac_preproc_ok; then :
5609 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5610 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5611 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
5612 See \`config.log' for more details" "$LINENO" 5; }
5616 ac_cpp='$CPP $CPPFLAGS'
5617 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5618 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5619 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
5627 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
5629 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
5630 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
5631 $as_echo_n "(cached) " >&6
5633 cat >conftest.make <<\_ACEOF
5636 @echo '@@@%%%=$(MAKE)=@@@%%%'
5638 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
5639 case `${MAKE-make} -f conftest.make 2>/dev/null` in
5641 eval ac_cv_prog_make_${ac_make}_set=yes;;
5643 eval ac_cv_prog_make_${ac_make}_set=no;;
5647 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
5648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5649 $as_echo "yes" >&6; }
5652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5653 $as_echo "no" >&6; }
5654 SET_MAKE="MAKE=${MAKE-make}"
5658 # This is mainly for my use during testing and development.
5659 # Yes, it's a bit of a hack.
5660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special development options" >&5
5661 $as_echo_n "checking for special development options... " >&6; }
5662 if test -f $srcdir/.developing
5664 # add other debug flags as appropriate, save GAWKDEBUG for emergencies
5665 CFLAGS="$CFLAGS -DARRAYDEBUG -DYYDEBUG"
5666 if grep dbug $srcdir/.developing
5668 CFLAGS="$CFLAGS -DDBUG"
5669 LIBS="$LIBS dbug/libdbug.a"
5671 # turn on compiler warnings if we're doing development
5672 # enable debugging using macros also
5673 if test "$GCC" = yes
5675 CFLAGS="$CFLAGS -Wall -fno-builtin -g3 -gdwarf-2"
5677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5678 $as_echo "yes" >&6; }
5680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5681 $as_echo "no" >&6; }
5682 CFLAGS="$CFLAGS -DNDEBUG" # turn off assertions
5687 # shared library suffix for dynamic loading:
5689 # default shared library location
5690 pkgextensiondir='${pkglibdir}'
5694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for z/OS USS compilation" >&5
5695 $as_echo_n "checking for z/OS USS compilation... " >&6; }
5696 if test "OS/390" = "`uname`"
5698 CFLAGS="$CFLAGS -D_ALL_SOURCE -DZOS_USS -DUSE_EBCDIC"
5699 # Must rebuild awkgram.c and command.c from Bison for EBCDIC
5700 rm -f awkgram.c command.c
5705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_cv_zos_uss}" >&5
5706 $as_echo "${ac_cv_zos_uss}" >&6; }
5709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strerror in -lcposix" >&5
5710 $as_echo_n "checking for strerror in -lcposix... " >&6; }
5711 if ${ac_cv_lib_cposix_strerror+:} false; then :
5712 $as_echo_n "(cached) " >&6
5714 ac_check_lib_save_LIBS=$LIBS
5715 LIBS="-lcposix $LIBS"
5716 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5717 /* end confdefs.h. */
5719 /* Override any GCC internal prototype to avoid an error.
5720 Use char because int might match the return type of a GCC
5721 builtin and then its argument prototype would still apply. */
5734 if ac_fn_c_try_link "$LINENO"; then :
5735 ac_cv_lib_cposix_strerror=yes
5737 ac_cv_lib_cposix_strerror=no
5739 rm -f core conftest.err conftest.$ac_objext \
5740 conftest$ac_exeext conftest.$ac_ext
5741 LIBS=$ac_check_lib_save_LIBS
5743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cposix_strerror" >&5
5744 $as_echo "$ac_cv_lib_cposix_strerror" >&6; }
5745 if test "x$ac_cv_lib_cposix_strerror" = xyes; then :
5746 LIBS="$LIBS -lcposix"
5751 # Check whether --enable-largefile was given.
5752 if test "${enable_largefile+set}" = set; then :
5753 enableval=$enable_largefile;
5756 if test "$enable_largefile" != no; then
5758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
5759 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
5760 if ${ac_cv_sys_largefile_CC+:} false; then :
5761 $as_echo_n "(cached) " >&6
5763 ac_cv_sys_largefile_CC=no
5764 if test "$GCC" != yes; then
5767 # IRIX 6.2 and later do not support large files by default,
5768 # so use the C compiler's -n32 option if that helps.
5769 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5770 /* end confdefs.h. */
5771 #include <sys/types.h>
5772 /* Check that off_t can represent 2**63 - 1 correctly.
5773 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5774 since some C++ compilers masquerading as C compilers
5775 incorrectly reject 9223372036854775807. */
5776 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5777 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5778 && LARGE_OFF_T % 2147483647 == 1)
5788 if ac_fn_c_try_compile "$LINENO"; then :
5791 rm -f core conftest.err conftest.$ac_objext
5793 if ac_fn_c_try_compile "$LINENO"; then :
5794 ac_cv_sys_largefile_CC=' -n32'; break
5796 rm -f core conftest.err conftest.$ac_objext
5800 rm -f conftest.$ac_ext
5803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
5804 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
5805 if test "$ac_cv_sys_largefile_CC" != no; then
5806 CC=$CC$ac_cv_sys_largefile_CC
5809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5810 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
5811 if ${ac_cv_sys_file_offset_bits+:} false; then :
5812 $as_echo_n "(cached) " >&6
5815 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5816 /* end confdefs.h. */
5817 #include <sys/types.h>
5818 /* Check that off_t can represent 2**63 - 1 correctly.
5819 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5820 since some C++ compilers masquerading as C compilers
5821 incorrectly reject 9223372036854775807. */
5822 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5823 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5824 && LARGE_OFF_T % 2147483647 == 1)
5834 if ac_fn_c_try_compile "$LINENO"; then :
5835 ac_cv_sys_file_offset_bits=no; break
5837 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5838 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5839 /* end confdefs.h. */
5840 #define _FILE_OFFSET_BITS 64
5841 #include <sys/types.h>
5842 /* Check that off_t can represent 2**63 - 1 correctly.
5843 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5844 since some C++ compilers masquerading as C compilers
5845 incorrectly reject 9223372036854775807. */
5846 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5847 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5848 && LARGE_OFF_T % 2147483647 == 1)
5858 if ac_fn_c_try_compile "$LINENO"; then :
5859 ac_cv_sys_file_offset_bits=64; break
5861 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5862 ac_cv_sys_file_offset_bits=unknown
5866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
5867 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
5868 case $ac_cv_sys_file_offset_bits in #(
5871 cat >>confdefs.h <<_ACEOF
5872 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5877 if test $ac_cv_sys_file_offset_bits = unknown; then
5878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
5879 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
5880 if ${ac_cv_sys_large_files+:} false; then :
5881 $as_echo_n "(cached) " >&6
5884 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5885 /* end confdefs.h. */
5886 #include <sys/types.h>
5887 /* Check that off_t can represent 2**63 - 1 correctly.
5888 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5889 since some C++ compilers masquerading as C compilers
5890 incorrectly reject 9223372036854775807. */
5891 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5892 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5893 && LARGE_OFF_T % 2147483647 == 1)
5903 if ac_fn_c_try_compile "$LINENO"; then :
5904 ac_cv_sys_large_files=no; break
5906 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5907 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5908 /* end confdefs.h. */
5909 #define _LARGE_FILES 1
5910 #include <sys/types.h>
5911 /* Check that off_t can represent 2**63 - 1 correctly.
5912 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5913 since some C++ compilers masquerading as C compilers
5914 incorrectly reject 9223372036854775807. */
5915 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5916 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5917 && LARGE_OFF_T % 2147483647 == 1)
5927 if ac_fn_c_try_compile "$LINENO"; then :
5928 ac_cv_sys_large_files=1; break
5930 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5931 ac_cv_sys_large_files=unknown
5935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
5936 $as_echo "$ac_cv_sys_large_files" >&6; }
5937 case $ac_cv_sys_large_files in #(
5940 cat >>confdefs.h <<_ACEOF
5941 #define _LARGE_FILES $ac_cv_sys_large_files
5952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AIX compilation hacks" >&5
5953 $as_echo_n "checking for AIX compilation hacks... " >&6; }
5954 if ${gawk_cv_aix_hack+:} false; then :
5955 $as_echo_n "(cached) " >&6
5960 CFLAGS="$CFLAGS -D_XOPEN_SOURCE_EXTENDED=1 -DGAWK_AIX=1"
5961 gawk_cv_aix_hack=yes
5967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${gawk_cv_aix_hack}" >&5
5968 $as_echo "${gawk_cv_aix_hack}" >&6; }
5971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Linux/Alpha compilation hacks" >&5
5972 $as_echo_n "checking for Linux/Alpha compilation hacks... " >&6; }
5973 if ${gawk_cv_linux_alpha_hack+:} false; then :
5974 $as_echo_n "(cached) " >&6
5977 if test "Linux" = "`uname`" && test "alpha" = "`uname -m`"
5979 # this isn't necessarily always true,
5980 # the vendor's compiler is also often found
5981 if test "$GCC" = yes
5983 CFLAGS="$CFLAGS -mieee"
5984 gawk_cv_linux_alpha_hack=yes
5986 gawk_cv_linux_alpha_hack=no
5989 gawk_cv_linux_alpha_hack=no
5993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${gawk_cv_linux_alpha_hack}" >&5
5994 $as_echo "${gawk_cv_linux_alpha_hack}" >&6; }
5997 if test "$ISC" = 1 # will be set by test for ISC
5999 CFLAGS="$CFLAGS -D_SYSV3"
6005 $as_echo "#define LIBC_IS_BORKED 1" >>confdefs.h
6011 ac_cpp='$CPP $CPPFLAGS'
6012 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6013 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6014 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
6019 $as_echo_n "checking whether NLS is requested... " >&6; }
6020 # Check whether --enable-nls was given.
6021 if test "${enable_nls+set}" = set; then :
6022 enableval=$enable_nls; USE_NLS=$enableval
6027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
6028 $as_echo "$USE_NLS" >&6; }
6033 GETTEXT_MACRO_VERSION=0.18
6038 # Prepare PATH_SEPARATOR.
6039 # The user is always right.
6040 if test "${PATH_SEPARATOR+set}" != set; then
6041 echo "#! /bin/sh" >conf$$.sh
6042 echo "exit 0" >>conf$$.sh
6044 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6052 # Find out how to test for executable files. Don't use a zero-byte file,
6053 # as systems may use methods other than mode bits to determine executability.
6054 cat >conf$$.file <<_ASEOF
6058 chmod +x conf$$.file
6059 if test -x conf$$.file >/dev/null 2>&1; then
6060 ac_executable_p="test -x"
6062 ac_executable_p="test -f"
6066 # Extract the first word of "msgfmt", so it can be a program name with args.
6067 set dummy msgfmt; ac_word=$2
6068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6069 $as_echo_n "checking for $ac_word... " >&6; }
6070 if ${ac_cv_path_MSGFMT+:} false; then :
6071 $as_echo_n "(cached) " >&6
6075 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
6078 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
6079 for ac_dir in $PATH; do
6081 test -z "$ac_dir" && ac_dir=.
6082 for ac_exec_ext in '' $ac_executable_extensions; do
6083 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
6084 echo "$as_me: trying $ac_dir/$ac_word..." >&5
6085 if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
6086 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
6087 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
6094 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
6098 MSGFMT="$ac_cv_path_MSGFMT"
6099 if test "$MSGFMT" != ":"; then
6100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
6101 $as_echo "$MSGFMT" >&6; }
6103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6104 $as_echo "no" >&6; }
6107 # Extract the first word of "gmsgfmt", so it can be a program name with args.
6108 set dummy gmsgfmt; ac_word=$2
6109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6110 $as_echo_n "checking for $ac_word... " >&6; }
6111 if ${ac_cv_path_GMSGFMT+:} false; then :
6112 $as_echo_n "(cached) " >&6
6116 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
6119 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6123 test -z "$as_dir" && as_dir=.
6124 for ac_exec_ext in '' $ac_executable_extensions; do
6125 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6126 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
6127 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6134 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
6138 GMSGFMT=$ac_cv_path_GMSGFMT
6139 if test -n "$GMSGFMT"; then
6140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
6141 $as_echo "$GMSGFMT" >&6; }
6143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6144 $as_echo "no" >&6; }
6149 case `$MSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
6150 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) MSGFMT_015=: ;;
6151 *) MSGFMT_015=$MSGFMT ;;
6154 case `$GMSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
6155 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) GMSGFMT_015=: ;;
6156 *) GMSGFMT_015=$GMSGFMT ;;
6161 # Prepare PATH_SEPARATOR.
6162 # The user is always right.
6163 if test "${PATH_SEPARATOR+set}" != set; then
6164 echo "#! /bin/sh" >conf$$.sh
6165 echo "exit 0" >>conf$$.sh
6167 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6175 # Find out how to test for executable files. Don't use a zero-byte file,
6176 # as systems may use methods other than mode bits to determine executability.
6177 cat >conf$$.file <<_ASEOF
6181 chmod +x conf$$.file
6182 if test -x conf$$.file >/dev/null 2>&1; then
6183 ac_executable_p="test -x"
6185 ac_executable_p="test -f"
6189 # Extract the first word of "xgettext", so it can be a program name with args.
6190 set dummy xgettext; ac_word=$2
6191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6192 $as_echo_n "checking for $ac_word... " >&6; }
6193 if ${ac_cv_path_XGETTEXT+:} false; then :
6194 $as_echo_n "(cached) " >&6
6198 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
6201 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
6202 for ac_dir in $PATH; do
6204 test -z "$ac_dir" && ac_dir=.
6205 for ac_exec_ext in '' $ac_executable_extensions; do
6206 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
6207 echo "$as_me: trying $ac_dir/$ac_word..." >&5
6208 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
6209 (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
6210 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
6217 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
6221 XGETTEXT="$ac_cv_path_XGETTEXT"
6222 if test "$XGETTEXT" != ":"; then
6223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
6224 $as_echo "$XGETTEXT" >&6; }
6226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6227 $as_echo "no" >&6; }
6232 case `$XGETTEXT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
6233 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) XGETTEXT_015=: ;;
6234 *) XGETTEXT_015=$XGETTEXT ;;
6239 # Prepare PATH_SEPARATOR.
6240 # The user is always right.
6241 if test "${PATH_SEPARATOR+set}" != set; then
6242 echo "#! /bin/sh" >conf$$.sh
6243 echo "exit 0" >>conf$$.sh
6245 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6253 # Find out how to test for executable files. Don't use a zero-byte file,
6254 # as systems may use methods other than mode bits to determine executability.
6255 cat >conf$$.file <<_ASEOF
6259 chmod +x conf$$.file
6260 if test -x conf$$.file >/dev/null 2>&1; then
6261 ac_executable_p="test -x"
6263 ac_executable_p="test -f"
6267 # Extract the first word of "msgmerge", so it can be a program name with args.
6268 set dummy msgmerge; ac_word=$2
6269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6270 $as_echo_n "checking for $ac_word... " >&6; }
6271 if ${ac_cv_path_MSGMERGE+:} false; then :
6272 $as_echo_n "(cached) " >&6
6276 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
6279 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
6280 for ac_dir in $PATH; do
6282 test -z "$ac_dir" && ac_dir=.
6283 for ac_exec_ext in '' $ac_executable_extensions; do
6284 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
6285 echo "$as_me: trying $ac_dir/$ac_word..." >&5
6286 if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
6287 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
6294 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
6298 MSGMERGE="$ac_cv_path_MSGMERGE"
6299 if test "$MSGMERGE" != ":"; then
6300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
6301 $as_echo "$MSGMERGE" >&6; }
6303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6304 $as_echo "no" >&6; }
6308 test -n "$localedir" || localedir='${datadir}/locale'
6311 test -n "${XGETTEXT_EXTRA_OPTIONS+set}" || XGETTEXT_EXTRA_OPTIONS=
6314 ac_config_commands="$ac_config_commands po-directories"
6318 if test "X$prefix" = "XNONE"; then
6319 acl_final_prefix="$ac_default_prefix"
6321 acl_final_prefix="$prefix"
6323 if test "X$exec_prefix" = "XNONE"; then
6324 acl_final_exec_prefix='${prefix}'
6326 acl_final_exec_prefix="$exec_prefix"
6328 acl_save_prefix="$prefix"
6329 prefix="$acl_final_prefix"
6330 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
6331 prefix="$acl_save_prefix"
6334 # Check whether --with-gnu-ld was given.
6335 if test "${with_gnu_ld+set}" = set; then :
6336 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
6341 # Prepare PATH_SEPARATOR.
6342 # The user is always right.
6343 if test "${PATH_SEPARATOR+set}" != set; then
6344 echo "#! /bin/sh" >conf$$.sh
6345 echo "exit 0" >>conf$$.sh
6347 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6355 if test "$GCC" = yes; then
6356 # Check if gcc -print-prog-name=ld gives a path.
6357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
6358 $as_echo_n "checking for ld used by GCC... " >&6; }
6361 # gcc leaves a trailing carriage return which upsets mingw
6362 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6364 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6367 # Accept absolute paths.
6368 [\\/]* | [A-Za-z]:[\\/]*)
6369 re_direlt='/[^/][^/]*/\.\./'
6370 # Canonicalize the path of ld
6371 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
6372 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
6373 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
6375 test -z "$LD" && LD="$ac_prog"
6378 # If it fails, then pretend we aren't using GCC.
6382 # If it is relative, then search for the first ld in PATH.
6386 elif test "$with_gnu_ld" = yes; then
6387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
6388 $as_echo_n "checking for GNU ld... " >&6; }
6390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
6391 $as_echo_n "checking for non-GNU ld... " >&6; }
6393 if ${acl_cv_path_LD+:} false; then :
6394 $as_echo_n "(cached) " >&6
6396 if test -z "$LD"; then
6397 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
6398 for ac_dir in $PATH; do
6399 test -z "$ac_dir" && ac_dir=.
6400 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6401 acl_cv_path_LD="$ac_dir/$ac_prog"
6402 # Check to see if the program is GNU ld. I'd rather use --version,
6403 # but apparently some GNU ld's only accept -v.
6404 # Break only if it was the GNU/non-GNU ld that we prefer.
6405 case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
6406 *GNU* | *'with BFD'*)
6407 test "$with_gnu_ld" != no && break ;;
6409 test "$with_gnu_ld" != yes && break ;;
6415 acl_cv_path_LD="$LD" # Let the user override the test with a path.
6419 LD="$acl_cv_path_LD"
6420 if test -n "$LD"; then
6421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
6422 $as_echo "$LD" >&6; }
6424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6425 $as_echo "no" >&6; }
6427 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
6428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
6429 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
6430 if ${acl_cv_prog_gnu_ld+:} false; then :
6431 $as_echo_n "(cached) " >&6
6433 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
6434 case `$LD -v 2>&1 </dev/null` in
6435 *GNU* | *'with BFD'*)
6436 acl_cv_prog_gnu_ld=yes ;;
6438 acl_cv_prog_gnu_ld=no ;;
6441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
6442 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
6443 with_gnu_ld=$acl_cv_prog_gnu_ld
6448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
6449 $as_echo_n "checking for shared library run path origin... " >&6; }
6450 if ${acl_cv_rpath+:} false; then :
6451 $as_echo_n "(cached) " >&6
6454 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
6455 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
6461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
6462 $as_echo "$acl_cv_rpath" >&6; }
6464 acl_libext="$acl_cv_libext"
6465 acl_shlibext="$acl_cv_shlibext"
6466 acl_libname_spec="$acl_cv_libname_spec"
6467 acl_library_names_spec="$acl_cv_library_names_spec"
6468 acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
6469 acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
6470 acl_hardcode_direct="$acl_cv_hardcode_direct"
6471 acl_hardcode_minus_L="$acl_cv_hardcode_minus_L"
6472 # Check whether --enable-rpath was given.
6473 if test "${enable_rpath+set}" = set; then :
6474 enableval=$enable_rpath; :
6486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit host" >&5
6487 $as_echo_n "checking for 64-bit host... " >&6; }
6488 if ${gl_cv_solaris_64bit+:} false; then :
6489 $as_echo_n "(cached) " >&6
6491 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6492 /* end confdefs.h. */
6499 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6500 $EGREP "sixtyfour bits" >/dev/null 2>&1; then :
6501 gl_cv_solaris_64bit=yes
6503 gl_cv_solaris_64bit=no
6509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_solaris_64bit" >&5
6510 $as_echo "$gl_cv_solaris_64bit" >&6; }
6511 if test $gl_cv_solaris_64bit = yes; then
6512 acl_libdirstem=lib/64
6514 sparc*) acl_libdirstem2=lib/sparcv9 ;;
6515 i*86 | x86_64) acl_libdirstem2=lib/amd64 ;;
6520 searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
6521 if test -n "$searchpath"; then
6522 acl_save_IFS="${IFS= }"; IFS=":"
6523 for searchdir in $searchpath; do
6524 if test -d "$searchdir"; then
6525 case "$searchdir" in
6526 */lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
6528 # Better ignore directories of this form. They are misleading.
6530 *) searchdir=`cd "$searchdir" && pwd`
6531 case "$searchdir" in
6532 */lib64 ) acl_libdirstem=lib64 ;;
6541 test -n "$acl_libdirstem2" || acl_libdirstem2="$acl_libdirstem"
6556 acl_save_prefix="$prefix"
6557 prefix="$acl_final_prefix"
6558 acl_save_exec_prefix="$exec_prefix"
6559 exec_prefix="$acl_final_exec_prefix"
6561 eval additional_includedir=\"$includedir\"
6562 eval additional_libdir=\"$libdir\"
6564 exec_prefix="$acl_save_exec_prefix"
6565 prefix="$acl_save_prefix"
6568 # Check whether --with-libiconv-prefix was given.
6569 if test "${with_libiconv_prefix+set}" = set; then :
6570 withval=$with_libiconv_prefix;
6571 if test "X$withval" = "Xno"; then
6574 if test "X$withval" = "X"; then
6576 acl_save_prefix="$prefix"
6577 prefix="$acl_final_prefix"
6578 acl_save_exec_prefix="$exec_prefix"
6579 exec_prefix="$acl_final_exec_prefix"
6581 eval additional_includedir=\"$includedir\"
6582 eval additional_libdir=\"$libdir\"
6584 exec_prefix="$acl_save_exec_prefix"
6585 prefix="$acl_save_prefix"
6588 additional_includedir="$withval/include"
6589 additional_libdir="$withval/$acl_libdirstem"
6590 if test "$acl_libdirstem2" != "$acl_libdirstem" \
6591 && ! test -d "$withval/$acl_libdirstem"; then
6592 additional_libdir="$withval/$acl_libdirstem2"
6606 names_already_handled=
6607 names_next_round='iconv '
6608 while test -n "$names_next_round"; do
6609 names_this_round="$names_next_round"
6611 for name in $names_this_round; do
6613 for n in $names_already_handled; do
6614 if test "$n" = "$name"; then
6619 if test -z "$already_handled"; then
6620 names_already_handled="$names_already_handled $name"
6621 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
6622 eval value=\"\$HAVE_LIB$uppername\"
6623 if test -n "$value"; then
6624 if test "$value" = yes; then
6625 eval value=\"\$LIB$uppername\"
6626 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
6627 eval value=\"\$LTLIB$uppername\"
6628 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
6637 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
6638 if test -n "$acl_shlibext"; then
6639 shrext=".$acl_shlibext" # typically: shrext=.so
6643 if test $use_additional = yes; then
6644 dir="$additional_libdir"
6645 if test -n "$acl_shlibext"; then
6646 if test -f "$dir/$libname$shrext"; then
6648 found_so="$dir/$libname$shrext"
6650 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
6651 ver=`(cd "$dir" && \
6652 for f in "$libname$shrext".*; do echo "$f"; done \
6653 | sed -e "s,^$libname$shrext\\\\.,," \
6654 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
6655 | sed 1q ) 2>/dev/null`
6656 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
6658 found_so="$dir/$libname$shrext.$ver"
6661 eval library_names=\"$acl_library_names_spec\"
6662 for f in $library_names; do
6663 if test -f "$dir/$f"; then
6672 if test "X$found_dir" = "X"; then
6673 if test -f "$dir/$libname.$acl_libext"; then
6675 found_a="$dir/$libname.$acl_libext"
6678 if test "X$found_dir" != "X"; then
6679 if test -f "$dir/$libname.la"; then
6680 found_la="$dir/$libname.la"
6684 if test "X$found_dir" = "X"; then
6685 for x in $LDFLAGS $LTLIBICONV; do
6687 acl_save_prefix="$prefix"
6688 prefix="$acl_final_prefix"
6689 acl_save_exec_prefix="$exec_prefix"
6690 exec_prefix="$acl_final_exec_prefix"
6692 exec_prefix="$acl_save_exec_prefix"
6693 prefix="$acl_save_prefix"
6697 dir=`echo "X$x" | sed -e 's/^X-L//'`
6698 if test -n "$acl_shlibext"; then
6699 if test -f "$dir/$libname$shrext"; then
6701 found_so="$dir/$libname$shrext"
6703 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
6704 ver=`(cd "$dir" && \
6705 for f in "$libname$shrext".*; do echo "$f"; done \
6706 | sed -e "s,^$libname$shrext\\\\.,," \
6707 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
6708 | sed 1q ) 2>/dev/null`
6709 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
6711 found_so="$dir/$libname$shrext.$ver"
6714 eval library_names=\"$acl_library_names_spec\"
6715 for f in $library_names; do
6716 if test -f "$dir/$f"; then
6725 if test "X$found_dir" = "X"; then
6726 if test -f "$dir/$libname.$acl_libext"; then
6728 found_a="$dir/$libname.$acl_libext"
6731 if test "X$found_dir" != "X"; then
6732 if test -f "$dir/$libname.la"; then
6733 found_la="$dir/$libname.la"
6738 if test "X$found_dir" != "X"; then
6743 if test "X$found_dir" != "X"; then
6744 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
6745 if test "X$found_so" != "X"; then
6746 if test "$enable_rpath" = no \
6747 || test "X$found_dir" = "X/usr/$acl_libdirstem" \
6748 || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
6749 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
6752 for x in $ltrpathdirs; do
6753 if test "X$x" = "X$found_dir"; then
6758 if test -z "$haveit"; then
6759 ltrpathdirs="$ltrpathdirs $found_dir"
6761 if test "$acl_hardcode_direct" = yes; then
6762 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
6764 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
6765 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
6767 for x in $rpathdirs; do
6768 if test "X$x" = "X$found_dir"; then
6773 if test -z "$haveit"; then
6774 rpathdirs="$rpathdirs $found_dir"
6778 for x in $LDFLAGS $LIBICONV; do
6780 acl_save_prefix="$prefix"
6781 prefix="$acl_final_prefix"
6782 acl_save_exec_prefix="$exec_prefix"
6783 exec_prefix="$acl_final_exec_prefix"
6785 exec_prefix="$acl_save_exec_prefix"
6786 prefix="$acl_save_prefix"
6788 if test "X$x" = "X-L$found_dir"; then
6793 if test -z "$haveit"; then
6794 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
6796 if test "$acl_hardcode_minus_L" != no; then
6797 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
6799 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
6805 if test "X$found_a" != "X"; then
6806 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
6808 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
6811 additional_includedir=
6812 case "$found_dir" in
6813 */$acl_libdirstem | */$acl_libdirstem/)
6814 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
6815 if test "$name" = 'iconv'; then
6816 LIBICONV_PREFIX="$basedir"
6818 additional_includedir="$basedir/include"
6820 */$acl_libdirstem2 | */$acl_libdirstem2/)
6821 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
6822 if test "$name" = 'iconv'; then
6823 LIBICONV_PREFIX="$basedir"
6825 additional_includedir="$basedir/include"
6828 if test "X$additional_includedir" != "X"; then
6829 if test "X$additional_includedir" != "X/usr/include"; then
6831 if test "X$additional_includedir" = "X/usr/local/include"; then
6832 if test -n "$GCC"; then
6834 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
6838 if test -z "$haveit"; then
6839 for x in $CPPFLAGS $INCICONV; do
6841 acl_save_prefix="$prefix"
6842 prefix="$acl_final_prefix"
6843 acl_save_exec_prefix="$exec_prefix"
6844 exec_prefix="$acl_final_exec_prefix"
6846 exec_prefix="$acl_save_exec_prefix"
6847 prefix="$acl_save_prefix"
6849 if test "X$x" = "X-I$additional_includedir"; then
6854 if test -z "$haveit"; then
6855 if test -d "$additional_includedir"; then
6856 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
6862 if test -n "$found_la"; then
6863 save_libdir="$libdir"
6865 */* | *\\*) . "$found_la" ;;
6866 *) . "./$found_la" ;;
6868 libdir="$save_libdir"
6869 for dep in $dependency_libs; do
6872 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
6873 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
6874 && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
6876 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
6877 || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
6878 if test -n "$GCC"; then
6880 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
6884 if test -z "$haveit"; then
6886 for x in $LDFLAGS $LIBICONV; do
6888 acl_save_prefix="$prefix"
6889 prefix="$acl_final_prefix"
6890 acl_save_exec_prefix="$exec_prefix"
6891 exec_prefix="$acl_final_exec_prefix"
6893 exec_prefix="$acl_save_exec_prefix"
6894 prefix="$acl_save_prefix"
6896 if test "X$x" = "X-L$additional_libdir"; then
6901 if test -z "$haveit"; then
6902 if test -d "$additional_libdir"; then
6903 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
6907 for x in $LDFLAGS $LTLIBICONV; do
6909 acl_save_prefix="$prefix"
6910 prefix="$acl_final_prefix"
6911 acl_save_exec_prefix="$exec_prefix"
6912 exec_prefix="$acl_final_exec_prefix"
6914 exec_prefix="$acl_save_exec_prefix"
6915 prefix="$acl_save_prefix"
6917 if test "X$x" = "X-L$additional_libdir"; then
6922 if test -z "$haveit"; then
6923 if test -d "$additional_libdir"; then
6924 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
6931 dir=`echo "X$dep" | sed -e 's/^X-R//'`
6932 if test "$enable_rpath" != no; then
6934 for x in $rpathdirs; do
6935 if test "X$x" = "X$dir"; then
6940 if test -z "$haveit"; then
6941 rpathdirs="$rpathdirs $dir"
6944 for x in $ltrpathdirs; do
6945 if test "X$x" = "X$dir"; then
6950 if test -z "$haveit"; then
6951 ltrpathdirs="$ltrpathdirs $dir"
6956 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
6959 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
6962 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
6963 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
6969 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
6970 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
6976 if test "X$rpathdirs" != "X"; then
6977 if test -n "$acl_hardcode_libdir_separator"; then
6979 for found_dir in $rpathdirs; do
6980 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
6982 acl_save_libdir="$libdir"
6984 eval flag=\"$acl_hardcode_libdir_flag_spec\"
6985 libdir="$acl_save_libdir"
6986 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
6988 for found_dir in $rpathdirs; do
6989 acl_save_libdir="$libdir"
6991 eval flag=\"$acl_hardcode_libdir_flag_spec\"
6992 libdir="$acl_save_libdir"
6993 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
6997 if test "X$ltrpathdirs" != "X"; then
6998 for found_dir in $ltrpathdirs; do
6999 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
7033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
7034 $as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
7035 if ${gt_cv_func_CFPreferencesCopyAppValue+:} false; then :
7036 $as_echo_n "(cached) " >&6
7038 gt_save_LIBS="$LIBS"
7039 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
7040 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7041 /* end confdefs.h. */
7042 #include <CoreFoundation/CFPreferences.h>
7046 CFPreferencesCopyAppValue(NULL, NULL)
7051 if ac_fn_c_try_link "$LINENO"; then :
7052 gt_cv_func_CFPreferencesCopyAppValue=yes
7054 gt_cv_func_CFPreferencesCopyAppValue=no
7056 rm -f core conftest.err conftest.$ac_objext \
7057 conftest$ac_exeext conftest.$ac_ext
7058 LIBS="$gt_save_LIBS"
7060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
7061 $as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
7062 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
7064 $as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
7067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5
7068 $as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
7069 if ${gt_cv_func_CFLocaleCopyCurrent+:} false; then :
7070 $as_echo_n "(cached) " >&6
7072 gt_save_LIBS="$LIBS"
7073 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
7074 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7075 /* end confdefs.h. */
7076 #include <CoreFoundation/CFLocale.h>
7080 CFLocaleCopyCurrent();
7085 if ac_fn_c_try_link "$LINENO"; then :
7086 gt_cv_func_CFLocaleCopyCurrent=yes
7088 gt_cv_func_CFLocaleCopyCurrent=no
7090 rm -f core conftest.err conftest.$ac_objext \
7091 conftest$ac_exeext conftest.$ac_ext
7092 LIBS="$gt_save_LIBS"
7094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
7095 $as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
7096 if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
7098 $as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h
7102 if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
7103 INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
7115 case " $gt_needs " in
7116 *" need-formatstring-macros "*) gt_api_version=3 ;;
7117 *" need-ngettext "*) gt_api_version=2 ;;
7118 *) gt_api_version=1 ;;
7120 gt_func_gnugettext_libc="gt_cv_func_gnugettext${gt_api_version}_libc"
7121 gt_func_gnugettext_libintl="gt_cv_func_gnugettext${gt_api_version}_libintl"
7123 if test "$USE_NLS" = "yes"; then
7124 gt_use_preinstalled_gnugettext=no
7127 if test $gt_api_version -ge 3; then
7128 gt_revision_test_code='
7129 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
7130 #define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1)
7132 typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1];
7135 gt_revision_test_code=
7137 if test $gt_api_version -ge 2; then
7138 gt_expression_test_code=' + * ngettext ("", "", 0)'
7140 gt_expression_test_code=
7143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
7144 $as_echo_n "checking for GNU gettext in libc... " >&6; }
7145 if eval \${$gt_func_gnugettext_libc+:} false; then :
7146 $as_echo_n "(cached) " >&6
7148 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7149 /* end confdefs.h. */
7150 #include <libintl.h>
7151 $gt_revision_test_code
7152 extern int _nl_msg_cat_cntr;
7153 extern int *_nl_domain_bindings;
7157 bindtextdomain ("", "");
7158 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_domain_bindings
7163 if ac_fn_c_try_link "$LINENO"; then :
7164 eval "$gt_func_gnugettext_libc=yes"
7166 eval "$gt_func_gnugettext_libc=no"
7168 rm -f core conftest.err conftest.$ac_objext \
7169 conftest$ac_exeext conftest.$ac_ext
7171 eval ac_res=\$$gt_func_gnugettext_libc
7172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7173 $as_echo "$ac_res" >&6; }
7175 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then
7181 am_save_CPPFLAGS="$CPPFLAGS"
7183 for element in $INCICONV; do
7185 for x in $CPPFLAGS; do
7187 acl_save_prefix="$prefix"
7188 prefix="$acl_final_prefix"
7189 acl_save_exec_prefix="$exec_prefix"
7190 exec_prefix="$acl_final_exec_prefix"
7192 exec_prefix="$acl_save_exec_prefix"
7193 prefix="$acl_save_prefix"
7195 if test "X$x" = "X$element"; then
7200 if test -z "$haveit"; then
7201 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
7206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
7207 $as_echo_n "checking for iconv... " >&6; }
7208 if ${am_cv_func_iconv+:} false; then :
7209 $as_echo_n "(cached) " >&6
7212 am_cv_func_iconv="no, consider installing GNU libiconv"
7214 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7215 /* end confdefs.h. */
7221 iconv_t cd = iconv_open("","");
7222 iconv(cd,NULL,NULL,NULL,NULL);
7228 if ac_fn_c_try_link "$LINENO"; then :
7229 am_cv_func_iconv=yes
7231 rm -f core conftest.err conftest.$ac_objext \
7232 conftest$ac_exeext conftest.$ac_ext
7233 if test "$am_cv_func_iconv" != yes; then
7234 am_save_LIBS="$LIBS"
7235 LIBS="$LIBS $LIBICONV"
7236 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7237 /* end confdefs.h. */
7243 iconv_t cd = iconv_open("","");
7244 iconv(cd,NULL,NULL,NULL,NULL);
7250 if ac_fn_c_try_link "$LINENO"; then :
7252 am_cv_func_iconv=yes
7254 rm -f core conftest.err conftest.$ac_objext \
7255 conftest$ac_exeext conftest.$ac_ext
7256 LIBS="$am_save_LIBS"
7260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
7261 $as_echo "$am_cv_func_iconv" >&6; }
7262 if test "$am_cv_func_iconv" = yes; then
7263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5
7264 $as_echo_n "checking for working iconv... " >&6; }
7265 if ${am_cv_func_iconv_works+:} false; then :
7266 $as_echo_n "(cached) " >&6
7269 am_save_LIBS="$LIBS"
7270 if test $am_cv_lib_iconv = yes; then
7271 LIBS="$LIBS $LIBICONV"
7273 if test "$cross_compiling" = yes; then :
7275 aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
7276 *) am_cv_func_iconv_works="guessing yes" ;;
7279 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7280 /* end confdefs.h. */
7286 /* Test against AIX 5.1 bug: Failures are not distinguishable from successful
7289 iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
7290 if (cd_utf8_to_88591 != (iconv_t)(-1))
7292 static const char input[] = "\342\202\254"; /* EURO SIGN */
7294 const char *inptr = input;
7295 size_t inbytesleft = strlen (input);
7297 size_t outbytesleft = sizeof (buf);
7298 size_t res = iconv (cd_utf8_to_88591,
7299 (char **) &inptr, &inbytesleft,
7300 &outptr, &outbytesleft);
7305 /* Test against Solaris 10 bug: Failures are not distinguishable from
7306 successful returns. */
7308 iconv_t cd_ascii_to_88591 = iconv_open ("ISO8859-1", "646");
7309 if (cd_ascii_to_88591 != (iconv_t)(-1))
7311 static const char input[] = "\263";
7313 const char *inptr = input;
7314 size_t inbytesleft = strlen (input);
7316 size_t outbytesleft = sizeof (buf);
7317 size_t res = iconv (cd_ascii_to_88591,
7318 (char **) &inptr, &inbytesleft,
7319 &outptr, &outbytesleft);
7324 #if 0 /* This bug could be worked around by the caller. */
7325 /* Test against HP-UX 11.11 bug: Positive return value instead of 0. */
7327 iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
7328 if (cd_88591_to_utf8 != (iconv_t)(-1))
7330 static const char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
7332 const char *inptr = input;
7333 size_t inbytesleft = strlen (input);
7335 size_t outbytesleft = sizeof (buf);
7336 size_t res = iconv (cd_88591_to_utf8,
7337 (char **) &inptr, &inbytesleft,
7338 &outptr, &outbytesleft);
7344 /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
7346 if (/* Try standardized names. */
7347 iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1)
7348 /* Try IRIX, OSF/1 names. */
7349 && iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1)
7350 /* Try AIX names. */
7351 && iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1)
7352 /* Try HP-UX names. */
7353 && iconv_open ("utf8", "eucJP") == (iconv_t)(-1))
7358 if ac_fn_c_try_run "$LINENO"; then :
7359 am_cv_func_iconv_works=yes
7361 am_cv_func_iconv_works=no
7363 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7364 conftest.$ac_objext conftest.beam conftest.$ac_ext
7367 LIBS="$am_save_LIBS"
7370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5
7371 $as_echo "$am_cv_func_iconv_works" >&6; }
7372 case "$am_cv_func_iconv_works" in
7373 *no) am_func_iconv=no am_cv_lib_iconv=no ;;
7374 *) am_func_iconv=yes ;;
7377 am_func_iconv=no am_cv_lib_iconv=no
7379 if test "$am_func_iconv" = yes; then
7381 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
7384 if test "$am_cv_lib_iconv" = yes; then
7385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
7386 $as_echo_n "checking how to link with libiconv... " >&6; }
7387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
7388 $as_echo "$LIBICONV" >&6; }
7390 CPPFLAGS="$am_save_CPPFLAGS"
7407 acl_save_prefix="$prefix"
7408 prefix="$acl_final_prefix"
7409 acl_save_exec_prefix="$exec_prefix"
7410 exec_prefix="$acl_final_exec_prefix"
7412 eval additional_includedir=\"$includedir\"
7413 eval additional_libdir=\"$libdir\"
7415 exec_prefix="$acl_save_exec_prefix"
7416 prefix="$acl_save_prefix"
7419 # Check whether --with-libintl-prefix was given.
7420 if test "${with_libintl_prefix+set}" = set; then :
7421 withval=$with_libintl_prefix;
7422 if test "X$withval" = "Xno"; then
7425 if test "X$withval" = "X"; then
7427 acl_save_prefix="$prefix"
7428 prefix="$acl_final_prefix"
7429 acl_save_exec_prefix="$exec_prefix"
7430 exec_prefix="$acl_final_exec_prefix"
7432 eval additional_includedir=\"$includedir\"
7433 eval additional_libdir=\"$libdir\"
7435 exec_prefix="$acl_save_exec_prefix"
7436 prefix="$acl_save_prefix"
7439 additional_includedir="$withval/include"
7440 additional_libdir="$withval/$acl_libdirstem"
7441 if test "$acl_libdirstem2" != "$acl_libdirstem" \
7442 && ! test -d "$withval/$acl_libdirstem"; then
7443 additional_libdir="$withval/$acl_libdirstem2"
7457 names_already_handled=
7458 names_next_round='intl '
7459 while test -n "$names_next_round"; do
7460 names_this_round="$names_next_round"
7462 for name in $names_this_round; do
7464 for n in $names_already_handled; do
7465 if test "$n" = "$name"; then
7470 if test -z "$already_handled"; then
7471 names_already_handled="$names_already_handled $name"
7472 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
7473 eval value=\"\$HAVE_LIB$uppername\"
7474 if test -n "$value"; then
7475 if test "$value" = yes; then
7476 eval value=\"\$LIB$uppername\"
7477 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
7478 eval value=\"\$LTLIB$uppername\"
7479 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
7488 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
7489 if test -n "$acl_shlibext"; then
7490 shrext=".$acl_shlibext" # typically: shrext=.so
7494 if test $use_additional = yes; then
7495 dir="$additional_libdir"
7496 if test -n "$acl_shlibext"; then
7497 if test -f "$dir/$libname$shrext"; then
7499 found_so="$dir/$libname$shrext"
7501 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
7502 ver=`(cd "$dir" && \
7503 for f in "$libname$shrext".*; do echo "$f"; done \
7504 | sed -e "s,^$libname$shrext\\\\.,," \
7505 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
7506 | sed 1q ) 2>/dev/null`
7507 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
7509 found_so="$dir/$libname$shrext.$ver"
7512 eval library_names=\"$acl_library_names_spec\"
7513 for f in $library_names; do
7514 if test -f "$dir/$f"; then
7523 if test "X$found_dir" = "X"; then
7524 if test -f "$dir/$libname.$acl_libext"; then
7526 found_a="$dir/$libname.$acl_libext"
7529 if test "X$found_dir" != "X"; then
7530 if test -f "$dir/$libname.la"; then
7531 found_la="$dir/$libname.la"
7535 if test "X$found_dir" = "X"; then
7536 for x in $LDFLAGS $LTLIBINTL; do
7538 acl_save_prefix="$prefix"
7539 prefix="$acl_final_prefix"
7540 acl_save_exec_prefix="$exec_prefix"
7541 exec_prefix="$acl_final_exec_prefix"
7543 exec_prefix="$acl_save_exec_prefix"
7544 prefix="$acl_save_prefix"
7548 dir=`echo "X$x" | sed -e 's/^X-L//'`
7549 if test -n "$acl_shlibext"; then
7550 if test -f "$dir/$libname$shrext"; then
7552 found_so="$dir/$libname$shrext"
7554 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
7555 ver=`(cd "$dir" && \
7556 for f in "$libname$shrext".*; do echo "$f"; done \
7557 | sed -e "s,^$libname$shrext\\\\.,," \
7558 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
7559 | sed 1q ) 2>/dev/null`
7560 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
7562 found_so="$dir/$libname$shrext.$ver"
7565 eval library_names=\"$acl_library_names_spec\"
7566 for f in $library_names; do
7567 if test -f "$dir/$f"; then
7576 if test "X$found_dir" = "X"; then
7577 if test -f "$dir/$libname.$acl_libext"; then
7579 found_a="$dir/$libname.$acl_libext"
7582 if test "X$found_dir" != "X"; then
7583 if test -f "$dir/$libname.la"; then
7584 found_la="$dir/$libname.la"
7589 if test "X$found_dir" != "X"; then
7594 if test "X$found_dir" != "X"; then
7595 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
7596 if test "X$found_so" != "X"; then
7597 if test "$enable_rpath" = no \
7598 || test "X$found_dir" = "X/usr/$acl_libdirstem" \
7599 || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
7600 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
7603 for x in $ltrpathdirs; do
7604 if test "X$x" = "X$found_dir"; then
7609 if test -z "$haveit"; then
7610 ltrpathdirs="$ltrpathdirs $found_dir"
7612 if test "$acl_hardcode_direct" = yes; then
7613 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
7615 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
7616 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
7618 for x in $rpathdirs; do
7619 if test "X$x" = "X$found_dir"; then
7624 if test -z "$haveit"; then
7625 rpathdirs="$rpathdirs $found_dir"
7629 for x in $LDFLAGS $LIBINTL; do
7631 acl_save_prefix="$prefix"
7632 prefix="$acl_final_prefix"
7633 acl_save_exec_prefix="$exec_prefix"
7634 exec_prefix="$acl_final_exec_prefix"
7636 exec_prefix="$acl_save_exec_prefix"
7637 prefix="$acl_save_prefix"
7639 if test "X$x" = "X-L$found_dir"; then
7644 if test -z "$haveit"; then
7645 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
7647 if test "$acl_hardcode_minus_L" != no; then
7648 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
7650 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
7656 if test "X$found_a" != "X"; then
7657 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
7659 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
7662 additional_includedir=
7663 case "$found_dir" in
7664 */$acl_libdirstem | */$acl_libdirstem/)
7665 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
7666 if test "$name" = 'intl'; then
7667 LIBINTL_PREFIX="$basedir"
7669 additional_includedir="$basedir/include"
7671 */$acl_libdirstem2 | */$acl_libdirstem2/)
7672 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
7673 if test "$name" = 'intl'; then
7674 LIBINTL_PREFIX="$basedir"
7676 additional_includedir="$basedir/include"
7679 if test "X$additional_includedir" != "X"; then
7680 if test "X$additional_includedir" != "X/usr/include"; then
7682 if test "X$additional_includedir" = "X/usr/local/include"; then
7683 if test -n "$GCC"; then
7685 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
7689 if test -z "$haveit"; then
7690 for x in $CPPFLAGS $INCINTL; do
7692 acl_save_prefix="$prefix"
7693 prefix="$acl_final_prefix"
7694 acl_save_exec_prefix="$exec_prefix"
7695 exec_prefix="$acl_final_exec_prefix"
7697 exec_prefix="$acl_save_exec_prefix"
7698 prefix="$acl_save_prefix"
7700 if test "X$x" = "X-I$additional_includedir"; then
7705 if test -z "$haveit"; then
7706 if test -d "$additional_includedir"; then
7707 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
7713 if test -n "$found_la"; then
7714 save_libdir="$libdir"
7716 */* | *\\*) . "$found_la" ;;
7717 *) . "./$found_la" ;;
7719 libdir="$save_libdir"
7720 for dep in $dependency_libs; do
7723 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
7724 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
7725 && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
7727 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
7728 || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
7729 if test -n "$GCC"; then
7731 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
7735 if test -z "$haveit"; then
7737 for x in $LDFLAGS $LIBINTL; do
7739 acl_save_prefix="$prefix"
7740 prefix="$acl_final_prefix"
7741 acl_save_exec_prefix="$exec_prefix"
7742 exec_prefix="$acl_final_exec_prefix"
7744 exec_prefix="$acl_save_exec_prefix"
7745 prefix="$acl_save_prefix"
7747 if test "X$x" = "X-L$additional_libdir"; then
7752 if test -z "$haveit"; then
7753 if test -d "$additional_libdir"; then
7754 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
7758 for x in $LDFLAGS $LTLIBINTL; do
7760 acl_save_prefix="$prefix"
7761 prefix="$acl_final_prefix"
7762 acl_save_exec_prefix="$exec_prefix"
7763 exec_prefix="$acl_final_exec_prefix"
7765 exec_prefix="$acl_save_exec_prefix"
7766 prefix="$acl_save_prefix"
7768 if test "X$x" = "X-L$additional_libdir"; then
7773 if test -z "$haveit"; then
7774 if test -d "$additional_libdir"; then
7775 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
7782 dir=`echo "X$dep" | sed -e 's/^X-R//'`
7783 if test "$enable_rpath" != no; then
7785 for x in $rpathdirs; do
7786 if test "X$x" = "X$dir"; then
7791 if test -z "$haveit"; then
7792 rpathdirs="$rpathdirs $dir"
7795 for x in $ltrpathdirs; do
7796 if test "X$x" = "X$dir"; then
7801 if test -z "$haveit"; then
7802 ltrpathdirs="$ltrpathdirs $dir"
7807 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
7810 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
7813 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
7814 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
7820 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
7821 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
7827 if test "X$rpathdirs" != "X"; then
7828 if test -n "$acl_hardcode_libdir_separator"; then
7830 for found_dir in $rpathdirs; do
7831 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
7833 acl_save_libdir="$libdir"
7835 eval flag=\"$acl_hardcode_libdir_flag_spec\"
7836 libdir="$acl_save_libdir"
7837 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
7839 for found_dir in $rpathdirs; do
7840 acl_save_libdir="$libdir"
7842 eval flag=\"$acl_hardcode_libdir_flag_spec\"
7843 libdir="$acl_save_libdir"
7844 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
7848 if test "X$ltrpathdirs" != "X"; then
7849 for found_dir in $ltrpathdirs; do
7850 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
7859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
7860 $as_echo_n "checking for GNU gettext in libintl... " >&6; }
7861 if eval \${$gt_func_gnugettext_libintl+:} false; then :
7862 $as_echo_n "(cached) " >&6
7864 gt_save_CPPFLAGS="$CPPFLAGS"
7865 CPPFLAGS="$CPPFLAGS $INCINTL"
7866 gt_save_LIBS="$LIBS"
7867 LIBS="$LIBS $LIBINTL"
7868 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7869 /* end confdefs.h. */
7870 #include <libintl.h>
7871 $gt_revision_test_code
7872 extern int _nl_msg_cat_cntr;
7877 const char *_nl_expand_alias (const char *);
7881 bindtextdomain ("", "");
7882 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
7887 if ac_fn_c_try_link "$LINENO"; then :
7888 eval "$gt_func_gnugettext_libintl=yes"
7890 eval "$gt_func_gnugettext_libintl=no"
7892 rm -f core conftest.err conftest.$ac_objext \
7893 conftest$ac_exeext conftest.$ac_ext
7894 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } && test -n "$LIBICONV"; then
7895 LIBS="$LIBS $LIBICONV"
7896 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7897 /* end confdefs.h. */
7898 #include <libintl.h>
7899 $gt_revision_test_code
7900 extern int _nl_msg_cat_cntr;
7905 const char *_nl_expand_alias (const char *);
7909 bindtextdomain ("", "");
7910 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
7915 if ac_fn_c_try_link "$LINENO"; then :
7916 LIBINTL="$LIBINTL $LIBICONV"
7917 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
7918 eval "$gt_func_gnugettext_libintl=yes"
7921 rm -f core conftest.err conftest.$ac_objext \
7922 conftest$ac_exeext conftest.$ac_ext
7924 CPPFLAGS="$gt_save_CPPFLAGS"
7925 LIBS="$gt_save_LIBS"
7927 eval ac_res=\$$gt_func_gnugettext_libintl
7928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7929 $as_echo "$ac_res" >&6; }
7932 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \
7933 || { { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \
7934 && test "$PACKAGE" != gettext-runtime \
7935 && test "$PACKAGE" != gettext-tools; }; then
7936 gt_use_preinstalled_gnugettext=yes
7945 if test -n "$INTL_MACOSX_LIBS"; then
7946 if test "$gt_use_preinstalled_gnugettext" = "yes" \
7947 || test "$nls_cv_use_gnu_gettext" = "yes"; then
7948 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
7949 LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
7953 if test "$gt_use_preinstalled_gnugettext" = "yes" \
7954 || test "$nls_cv_use_gnu_gettext" = "yes"; then
7956 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
7963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
7964 $as_echo_n "checking whether to use NLS... " >&6; }
7965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
7966 $as_echo "$USE_NLS" >&6; }
7967 if test "$USE_NLS" = "yes"; then
7968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
7969 $as_echo_n "checking where the gettext function comes from... " >&6; }
7970 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
7971 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
7972 gt_source="external libintl"
7977 gt_source="included intl directory"
7979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
7980 $as_echo "$gt_source" >&6; }
7983 if test "$USE_NLS" = "yes"; then
7985 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
7986 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
7987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
7988 $as_echo_n "checking how to link with libintl... " >&6; }
7989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
7990 $as_echo "$LIBINTL" >&6; }
7992 for element in $INCINTL; do
7994 for x in $CPPFLAGS; do
7996 acl_save_prefix="$prefix"
7997 prefix="$acl_final_prefix"
7998 acl_save_exec_prefix="$exec_prefix"
7999 exec_prefix="$acl_final_exec_prefix"
8001 exec_prefix="$acl_save_exec_prefix"
8002 prefix="$acl_save_prefix"
8004 if test "X$x" = "X$element"; then
8009 if test -z "$haveit"; then
8010 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
8017 $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
8020 $as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
8038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
8039 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
8040 if ${am_cv_langinfo_codeset+:} false; then :
8041 $as_echo_n "(cached) " >&6
8043 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8044 /* end confdefs.h. */
8045 #include <langinfo.h>
8049 char* cs = nl_langinfo(CODESET); return !cs;
8054 if ac_fn_c_try_link "$LINENO"; then :
8055 am_cv_langinfo_codeset=yes
8057 am_cv_langinfo_codeset=no
8059 rm -f core conftest.err conftest.$ac_objext \
8060 conftest$ac_exeext conftest.$ac_ext
8063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
8064 $as_echo "$am_cv_langinfo_codeset" >&6; }
8065 if test $am_cv_langinfo_codeset = yes; then
8067 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
8072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
8073 $as_echo_n "checking for LC_MESSAGES... " >&6; }
8074 if ${gt_cv_val_LC_MESSAGES+:} false; then :
8075 $as_echo_n "(cached) " >&6
8077 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8078 /* end confdefs.h. */
8088 if ac_fn_c_try_link "$LINENO"; then :
8089 gt_cv_val_LC_MESSAGES=yes
8091 gt_cv_val_LC_MESSAGES=no
8093 rm -f core conftest.err conftest.$ac_objext \
8094 conftest$ac_exeext conftest.$ac_ext
8096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_val_LC_MESSAGES" >&5
8097 $as_echo "$gt_cv_val_LC_MESSAGES" >&6; }
8098 if test $gt_cv_val_LC_MESSAGES = yes; then
8100 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
8105 for ac_header in arpa/inet.h fcntl.h limits.h locale.h libintl.h mcheck.h \
8106 netdb.h netinet/in.h stdarg.h stddef.h string.h \
8107 sys/ioctl.h sys/param.h sys/socket.h sys/time.h unistd.h \
8108 termios.h stropts.h wchar.h wctype.h
8110 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8111 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
8112 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8113 cat >>confdefs.h <<_ACEOF
8114 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
8122 $as_echo_n "checking for ANSI C header files... " >&6; }
8123 if ${ac_cv_header_stdc+:} false; then :
8124 $as_echo_n "(cached) " >&6
8126 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8127 /* end confdefs.h. */
8141 if ac_fn_c_try_compile "$LINENO"; then :
8142 ac_cv_header_stdc=yes
8144 ac_cv_header_stdc=no
8146 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8148 if test $ac_cv_header_stdc = yes; then
8149 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8150 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8151 /* end confdefs.h. */
8155 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8156 $EGREP "memchr" >/dev/null 2>&1; then :
8159 ac_cv_header_stdc=no
8165 if test $ac_cv_header_stdc = yes; then
8166 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8167 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8168 /* end confdefs.h. */
8172 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8173 $EGREP "free" >/dev/null 2>&1; then :
8176 ac_cv_header_stdc=no
8182 if test $ac_cv_header_stdc = yes; then
8183 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8184 if test "$cross_compiling" = yes; then :
8187 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8188 /* end confdefs.h. */
8191 #if ((' ' & 0x0FF) == 0x020)
8192 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8193 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8195 # define ISLOWER(c) \
8196 (('a' <= (c) && (c) <= 'i') \
8197 || ('j' <= (c) && (c) <= 'r') \
8198 || ('s' <= (c) && (c) <= 'z'))
8199 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8202 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8207 for (i = 0; i < 256; i++)
8208 if (XOR (islower (i), ISLOWER (i))
8209 || toupper (i) != TOUPPER (i))
8214 if ac_fn_c_try_run "$LINENO"; then :
8217 ac_cv_header_stdc=no
8219 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8220 conftest.$ac_objext conftest.beam conftest.$ac_ext
8225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8226 $as_echo "$ac_cv_header_stdc" >&6; }
8227 if test $ac_cv_header_stdc = yes; then
8229 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
8233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
8234 $as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
8235 if ${ac_cv_header_stdbool_h+:} false; then :
8236 $as_echo_n "(cached) " >&6
8238 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8239 /* end confdefs.h. */
8241 #include <stdbool.h>
8243 "error: bool is not defined"
8246 "error: false is not defined"
8249 "error: false is not 0"
8252 "error: true is not defined"
8255 "error: true is not 1"
8257 #ifndef __bool_true_false_are_defined
8258 "error: __bool_true_false_are_defined is not defined"
8261 struct s { _Bool s: 1; _Bool t; } s;
8263 char a[true == 1 ? 1 : -1];
8264 char b[false == 0 ? 1 : -1];
8265 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
8266 char d[(bool) 0.5 == true ? 1 : -1];
8267 /* See body of main program for 'e'. */
8268 char f[(_Bool) 0.0 == false ? 1 : -1];
8270 char h[sizeof (_Bool)];
8272 enum { j = false, k = true, l = false * true, m = true * 256 };
8273 /* The following fails for
8274 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
8276 char o[sizeof n == m * sizeof n[0] ? 1 : -1];
8277 char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
8278 /* Catch a bug in an HP-UX C compiler. See
8279 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
8280 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
8292 /* Refer to every declared value, to avoid compiler optimizations. */
8293 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
8294 + !m + !n + !o + !p + !q + !pq);
8300 if ac_fn_c_try_compile "$LINENO"; then :
8301 ac_cv_header_stdbool_h=yes
8303 ac_cv_header_stdbool_h=no
8305 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
8308 $as_echo "$ac_cv_header_stdbool_h" >&6; }
8309 ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
8310 if test "x$ac_cv_type__Bool" = xyes; then :
8312 cat >>confdefs.h <<_ACEOF
8313 #define HAVE__BOOL 1
8320 if test $ac_cv_header_stdbool_h = yes; then
8322 $as_echo "#define HAVE_STDBOOL_H 1" >>confdefs.h
8326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
8327 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
8328 if ${ac_cv_header_sys_wait_h+:} false; then :
8329 $as_echo_n "(cached) " >&6
8331 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8332 /* end confdefs.h. */
8333 #include <sys/types.h>
8334 #include <sys/wait.h>
8336 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
8339 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
8347 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
8352 if ac_fn_c_try_compile "$LINENO"; then :
8353 ac_cv_header_sys_wait_h=yes
8355 ac_cv_header_sys_wait_h=no
8357 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
8360 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
8361 if test $ac_cv_header_sys_wait_h = yes; then
8363 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
8367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
8368 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
8369 if ${ac_cv_header_time+:} false; then :
8370 $as_echo_n "(cached) " >&6
8372 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8373 /* end confdefs.h. */
8374 #include <sys/types.h>
8375 #include <sys/time.h>
8381 if ((struct tm *) 0)
8387 if ac_fn_c_try_compile "$LINENO"; then :
8388 ac_cv_header_time=yes
8390 ac_cv_header_time=no
8392 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
8395 $as_echo "$ac_cv_header_time" >&6; }
8396 if test $ac_cv_header_time = yes; then
8398 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
8403 if test "$ac_cv_header_string_h" = yes
8405 for ac_header in memory.h
8407 ac_fn_c_check_header_mongrel "$LINENO" "memory.h" "ac_cv_header_memory_h" "$ac_includes_default"
8408 if test "x$ac_cv_header_memory_h" = xyes; then :
8409 cat >>confdefs.h <<_ACEOF
8410 #define HAVE_MEMORY_H 1
8418 for ac_header in strings.h
8420 ac_fn_c_check_header_mongrel "$LINENO" "strings.h" "ac_cv_header_strings_h" "$ac_includes_default"
8421 if test "x$ac_cv_header_strings_h" = xyes; then :
8422 cat >>confdefs.h <<_ACEOF
8423 #define HAVE_STRINGS_H 1
8432 if test "x$build_alias" != "x$host_alias"; then
8433 TEST_CROSS_COMPILE_TRUE=
8434 TEST_CROSS_COMPILE_FALSE='#'
8436 TEST_CROSS_COMPILE_TRUE='#'
8437 TEST_CROSS_COMPILE_FALSE=
8441 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
8442 if test "x$ac_cv_type_pid_t" = xyes; then :
8446 cat >>confdefs.h <<_ACEOF
8452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
8453 $as_echo_n "checking return type of signal handlers... " >&6; }
8454 if ${ac_cv_type_signal+:} false; then :
8455 $as_echo_n "(cached) " >&6
8457 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8458 /* end confdefs.h. */
8459 #include <sys/types.h>
8465 return *(signal (0, 0)) (0) == 1;
8470 if ac_fn_c_try_compile "$LINENO"; then :
8471 ac_cv_type_signal=int
8473 ac_cv_type_signal=void
8475 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
8478 $as_echo "$ac_cv_type_signal" >&6; }
8480 cat >>confdefs.h <<_ACEOF
8481 #define RETSIGTYPE $ac_cv_type_signal
8485 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
8486 if test "x$ac_cv_type_size_t" = xyes; then :
8490 cat >>confdefs.h <<_ACEOF
8491 #define size_t unsigned int
8496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
8497 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
8498 if ${ac_cv_type_uid_t+:} false; then :
8499 $as_echo_n "(cached) " >&6
8501 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8502 /* end confdefs.h. */
8503 #include <sys/types.h>
8506 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8507 $EGREP "uid_t" >/dev/null 2>&1; then :
8508 ac_cv_type_uid_t=yes
8515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
8516 $as_echo "$ac_cv_type_uid_t" >&6; }
8517 if test $ac_cv_type_uid_t = no; then
8519 $as_echo "#define uid_t int" >>confdefs.h
8522 $as_echo "#define gid_t int" >>confdefs.h
8526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking type of array argument to getgroups" >&5
8527 $as_echo_n "checking type of array argument to getgroups... " >&6; }
8528 if ${ac_cv_type_getgroups+:} false; then :
8529 $as_echo_n "(cached) " >&6
8531 if test "$cross_compiling" = yes; then :
8532 ac_cv_type_getgroups=cross
8534 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8535 /* end confdefs.h. */
8536 /* Thanks to Mike Rendell for this test. */
8537 $ac_includes_default
8540 #define MAX(x, y) ((x) > (y) ? (x) : (y))
8547 union { gid_t gval; long int lval; } val;
8550 for (i = 0; i < NGID; i++)
8551 gidset[i] = val.gval;
8552 n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
8554 /* Exit non-zero if getgroups seems to require an array of ints. This
8555 happens when gid_t is short int but getgroups modifies an array
8557 return n > 0 && gidset[n] != val.gval;
8560 if ac_fn_c_try_run "$LINENO"; then :
8561 ac_cv_type_getgroups=gid_t
8563 ac_cv_type_getgroups=int
8565 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8566 conftest.$ac_objext conftest.beam conftest.$ac_ext
8569 if test $ac_cv_type_getgroups = cross; then
8570 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8571 /* end confdefs.h. */
8575 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8576 $EGREP "getgroups.*int.*gid_t" >/dev/null 2>&1; then :
8577 ac_cv_type_getgroups=gid_t
8579 ac_cv_type_getgroups=int
8585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_getgroups" >&5
8586 $as_echo "$ac_cv_type_getgroups" >&6; }
8588 cat >>confdefs.h <<_ACEOF
8589 #define GETGROUPS_T $ac_cv_type_getgroups
8594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
8595 $as_echo_n "checking for long long int... " >&6; }
8596 if ${ac_cv_type_long_long_int+:} false; then :
8597 $as_echo_n "(cached) " >&6
8599 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8600 /* end confdefs.h. */
8602 /* For now, do not test the preprocessor; as of 2007 there are too many
8603 implementations with broken preprocessors. Perhaps this can
8604 be revisited in 2012. In the meantime, code should not expect
8605 #if to work with literals wider than 32 bits. */
8606 /* Test literals. */
8607 long long int ll = 9223372036854775807ll;
8608 long long int nll = -9223372036854775807LL;
8609 unsigned long long int ull = 18446744073709551615ULL;
8610 /* Test constant expressions. */
8611 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
8613 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
8619 /* Test availability of runtime routines for shift and division. */
8620 long long int llmax = 9223372036854775807ll;
8621 unsigned long long int ullmax = 18446744073709551615ull;
8622 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
8623 | (llmax / ll) | (llmax % ll)
8624 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
8625 | (ullmax / ull) | (ullmax % ull));
8631 if ac_fn_c_try_link "$LINENO"; then :
8632 if test "$cross_compiling" = yes; then :
8633 ac_cv_type_long_long_int=yes
8635 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8636 /* end confdefs.h. */
8640 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
8641 # define LLONG_MAX (HALF - 1 + HALF)
8646 long long int n = 1;
8650 long long int m = n << i;
8653 if (LLONG_MAX / 2 < m)
8661 if ac_fn_c_try_run "$LINENO"; then :
8662 ac_cv_type_long_long_int=yes
8664 ac_cv_type_long_long_int=no
8666 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8667 conftest.$ac_objext conftest.beam conftest.$ac_ext
8671 ac_cv_type_long_long_int=no
8673 rm -f core conftest.err conftest.$ac_objext \
8674 conftest$ac_exeext conftest.$ac_ext
8676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
8677 $as_echo "$ac_cv_type_long_long_int" >&6; }
8678 if test $ac_cv_type_long_long_int = yes; then
8680 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
8685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
8686 $as_echo_n "checking for unsigned long long int... " >&6; }
8687 if ${ac_cv_type_unsigned_long_long_int+:} false; then :
8688 $as_echo_n "(cached) " >&6
8690 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8691 /* end confdefs.h. */
8692 unsigned long long int ull = 18446744073709551615ULL;
8693 typedef int a[(18446744073709551615ULL <= (unsigned long long int) -1
8699 unsigned long long int ullmax = 18446744073709551615ull;
8700 return (ull << 63 | ull >> 63 | ull << i | ull >> i
8701 | ullmax / ull | ullmax % ull);
8706 if ac_fn_c_try_link "$LINENO"; then :
8707 ac_cv_type_unsigned_long_long_int=yes
8709 ac_cv_type_unsigned_long_long_int=no
8711 rm -f core conftest.err conftest.$ac_objext \
8712 conftest$ac_exeext conftest.$ac_ext
8714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
8715 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
8716 if test $ac_cv_type_unsigned_long_long_int = yes; then
8718 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
8724 ac_fn_c_check_type "$LINENO" "intmax_t" "ac_cv_type_intmax_t" "$ac_includes_default"
8725 if test "x$ac_cv_type_intmax_t" = xyes; then :
8727 $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
8730 test $ac_cv_type_long_long_int = yes \
8731 && ac_type='long long int' \
8732 || ac_type='long int'
8734 cat >>confdefs.h <<_ACEOF
8735 #define intmax_t $ac_type
8743 ac_fn_c_check_type "$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "$ac_includes_default"
8744 if test "x$ac_cv_type_uintmax_t" = xyes; then :
8746 $as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
8749 test $ac_cv_type_unsigned_long_long_int = yes \
8750 && ac_type='unsigned long long int' \
8751 || ac_type='unsigned long int'
8753 cat >>confdefs.h <<_ACEOF
8754 #define uintmax_t $ac_type
8760 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
8761 if test "x$ac_cv_type_ssize_t" = xyes; then :
8765 cat >>confdefs.h <<_ACEOF
8771 # The cast to long int works around a bug in the HP C Compiler
8772 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8773 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8774 # This bug is HP SR number 8606223364.
8775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned int" >&5
8776 $as_echo_n "checking size of unsigned int... " >&6; }
8777 if ${ac_cv_sizeof_unsigned_int+:} false; then :
8778 $as_echo_n "(cached) " >&6
8780 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned int))" "ac_cv_sizeof_unsigned_int" "$ac_includes_default"; then :
8783 if test "$ac_cv_type_unsigned_int" = yes; then
8784 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8785 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8786 as_fn_error 77 "cannot compute sizeof (unsigned int)
8787 See \`config.log' for more details" "$LINENO" 5; }
8789 ac_cv_sizeof_unsigned_int=0
8794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_int" >&5
8795 $as_echo "$ac_cv_sizeof_unsigned_int" >&6; }
8799 cat >>confdefs.h <<_ACEOF
8800 #define SIZEOF_UNSIGNED_INT $ac_cv_sizeof_unsigned_int
8804 # The cast to long int works around a bug in the HP C Compiler
8805 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8806 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8807 # This bug is HP SR number 8606223364.
8808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long" >&5
8809 $as_echo_n "checking size of unsigned long... " >&6; }
8810 if ${ac_cv_sizeof_unsigned_long+:} false; then :
8811 $as_echo_n "(cached) " >&6
8813 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned long))" "ac_cv_sizeof_unsigned_long" "$ac_includes_default"; then :
8816 if test "$ac_cv_type_unsigned_long" = yes; then
8817 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8818 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8819 as_fn_error 77 "cannot compute sizeof (unsigned long)
8820 See \`config.log' for more details" "$LINENO" 5; }
8822 ac_cv_sizeof_unsigned_long=0
8827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long" >&5
8828 $as_echo "$ac_cv_sizeof_unsigned_long" >&6; }
8832 cat >>confdefs.h <<_ACEOF
8833 #define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
8837 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8838 /* end confdefs.h. */
8839 #include <sys/types.h>
8851 if ac_fn_c_try_compile "$LINENO"; then :
8853 $as_echo "#define TIME_T_IN_SYS_TYPES_H 1" >>confdefs.h
8856 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8857 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8858 /* end confdefs.h. */
8871 if ac_fn_c_try_compile "$LINENO"; then :
8873 $as_echo "#define HAVE_WCTYPE_T 1" >>confdefs.h
8876 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8877 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8878 /* end confdefs.h. */
8891 if ac_fn_c_try_compile "$LINENO"; then :
8893 $as_echo "#define HAVE_WINT_T 1" >>confdefs.h
8896 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8897 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8898 /* end confdefs.h. */
8899 #include <sys/types.h>
8900 #include <sys/socket.h>
8905 struct sockaddr_storage foo;
8911 if ac_fn_c_try_compile "$LINENO"; then :
8913 $as_echo "#define HAVE_SOCKADDR_STORAGE 1" >>confdefs.h
8916 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8923 ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "#include <sys/types.h>
8924 #include <sys/socket.h>
8926 if test "x$ac_cv_type_socklen_t" = xyes; then :
8930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socklen_t equivalent" >&5
8931 $as_echo_n "checking for socklen_t equivalent... " >&6; }
8932 if ${rsync_cv_socklen_t_equiv+:} false; then :
8933 $as_echo_n "(cached) " >&6
8936 # Systems have either "struct sockaddr *" or
8937 # "void *" as the second argument to getpeername
8938 rsync_cv_socklen_t_equiv=
8939 for arg2 in "struct sockaddr" void; do
8940 for t in int size_t unsigned long "unsigned long"; do
8941 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8942 /* end confdefs.h. */
8944 #include <sys/types.h>
8945 #include <sys/socket.h>
8947 int getpeername (int, $arg2 *, $t *);
8954 getpeername(0,0,&len);
8960 if ac_fn_c_try_compile "$LINENO"; then :
8962 rsync_cv_socklen_t_equiv="$t"
8966 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8970 if test "x$rsync_cv_socklen_t_equiv" = x; then
8971 rsync_cv_socklen_t_equiv=int
8976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $rsync_cv_socklen_t_equiv" >&5
8977 $as_echo "$rsync_cv_socklen_t_equiv" >&6; }
8979 cat >>confdefs.h <<_ACEOF
8980 #define socklen_t $rsync_cv_socklen_t_equiv
8993 for ac_header in $ac_header_list
8995 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8996 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
8998 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8999 cat >>confdefs.h <<_ACEOF
9000 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9014 for ac_func in $ac_func_list
9016 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9017 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
9018 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
9019 cat >>confdefs.h <<_ACEOF
9020 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mktime" >&5
9031 $as_echo_n "checking for working mktime... " >&6; }
9032 if ${ac_cv_func_working_mktime+:} false; then :
9033 $as_echo_n "(cached) " >&6
9035 if test "$cross_compiling" = yes; then :
9036 ac_cv_func_working_mktime=no
9038 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9039 /* end confdefs.h. */
9040 /* Test program from Paul Eggert and Tony Leneis. */
9041 #ifdef TIME_WITH_SYS_TIME
9042 # include <sys/time.h>
9045 # ifdef HAVE_SYS_TIME_H
9046 # include <sys/time.h>
9055 #ifdef HAVE_UNISTD_H
9056 # include <unistd.h>
9060 # define alarm(X) /* empty */
9063 /* Work around redefinition to rpl_putenv by other config tests. */
9066 static time_t time_t_max;
9067 static time_t time_t_min;
9069 /* Values we'll use to set the TZ environment variable. */
9070 static const char *tz_strings[] = {
9071 (const char *) 0, "TZ=GMT0", "TZ=JST-9",
9072 "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
9074 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
9076 /* Return 0 if mktime fails to convert a date in the spring-forward gap.
9077 Based on a problem report from Andreas Jaeger. */
9079 spring_forward_gap ()
9081 /* glibc (up to about 1998-10-07) failed this test. */
9084 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
9085 instead of "TZ=America/Vancouver" in order to detect the bug even
9086 on systems that don't support the Olson extension, or don't have the
9087 full zoneinfo tables installed. */
9088 putenv ((char*) "TZ=PST8PDT,M4.1.0,M10.5.0");
9097 return mktime (&tm) != (time_t) -1;
9101 mktime_test1 (time_t now)
9104 return ! (lt = localtime (&now)) || mktime (lt) == now;
9108 mktime_test (time_t now)
9110 return (mktime_test1 (now)
9111 && mktime_test1 ((time_t) (time_t_max - now))
9112 && mktime_test1 ((time_t) (time_t_min + now)));
9118 /* Based on code from Ariel Faigon. */
9128 return tm.tm_mon == 2 && tm.tm_mday == 31;
9132 bigtime_test (int j)
9136 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
9138 if (now != (time_t) -1)
9140 struct tm *lt = localtime (&now);
9142 && lt->tm_year == tm.tm_year
9143 && lt->tm_mon == tm.tm_mon
9144 && lt->tm_mday == tm.tm_mday
9145 && lt->tm_hour == tm.tm_hour
9146 && lt->tm_min == tm.tm_min
9147 && lt->tm_sec == tm.tm_sec
9148 && lt->tm_yday == tm.tm_yday
9149 && lt->tm_wday == tm.tm_wday
9150 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
9151 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
9160 /* The correct answer for 2050-02-01 00:00:00 in Pacific time,
9161 ignoring leap seconds. */
9162 unsigned long int answer = 2527315200UL;
9166 tm.tm_year = 2050 - 1900;
9169 tm.tm_hour = tm.tm_min = tm.tm_sec = 0;
9172 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
9173 instead of "TZ=America/Vancouver" in order to detect the bug even
9174 on systems that don't support the Olson extension, or don't have the
9175 full zoneinfo tables installed. */
9176 putenv ((char*) "TZ=PST8PDT,M4.1.0,M10.5.0");
9180 /* Check that the result is either a failure, or close enough
9181 to the correct answer that we can assume the discrepancy is
9182 due to leap seconds. */
9183 return (t == (time_t) -1
9184 || (0 < t && answer - 120 <= t && t <= answer + 120));
9193 /* This test makes some buggy mktime implementations loop.
9194 Give up after 60 seconds; a mktime slower than that
9195 isn't worth using anyway. */
9200 t = (time_t_max << 1) + 1;
9201 if (t <= time_t_max)
9205 time_t_min = - ((time_t) ~ (time_t) 0 == (time_t) -1) - time_t_max;
9207 delta = time_t_max / 997; /* a suitable prime number */
9208 for (i = 0; i < N_STRINGS; i++)
9211 putenv ((char*) tz_strings[i]);
9213 for (t = 0; t <= time_t_max - delta; t += delta)
9214 if (! mktime_test (t))
9216 if (! (mktime_test ((time_t) 1)
9217 && mktime_test ((time_t) (60 * 60))
9218 && mktime_test ((time_t) (60 * 60 * 24))))
9221 for (j = 1; ; j <<= 1)
9222 if (! bigtime_test (j))
9224 else if (INT_MAX / 2 < j)
9226 if (! bigtime_test (INT_MAX))
9229 return ! (irix_6_4_bug () && spring_forward_gap () && year_2050_test ());
9232 if ac_fn_c_try_run "$LINENO"; then :
9233 ac_cv_func_working_mktime=yes
9235 ac_cv_func_working_mktime=no
9237 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9238 conftest.$ac_objext conftest.beam conftest.$ac_ext
9242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_working_mktime" >&5
9243 $as_echo "$ac_cv_func_working_mktime" >&6; }
9244 if test $ac_cv_func_working_mktime = no; then
9245 case " $LIBOBJS " in
9246 *" mktime.$ac_objext "* ) ;;
9247 *) LIBOBJS="$LIBOBJS mktime.$ac_objext"
9253 case "$ac_cv_func_working_mktime" in
9255 $as_echo "#define HAVE_MKTIME 1" >>confdefs.h
9260 ac_fn_c_check_func "$LINENO" "getaddrinfo" "ac_cv_func_getaddrinfo"
9261 if test "x$ac_cv_func_getaddrinfo" = xyes; then :
9263 $as_echo "#define HAVE_GETADDRINFO 1" >>confdefs.h
9266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getaddrinfo in -lsocket" >&5
9267 $as_echo_n "checking for getaddrinfo in -lsocket... " >&6; }
9268 if ${ac_cv_lib_socket_getaddrinfo+:} false; then :
9269 $as_echo_n "(cached) " >&6
9271 ac_check_lib_save_LIBS=$LIBS
9272 LIBS="-lsocket $LIBS"
9273 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9274 /* end confdefs.h. */
9276 /* Override any GCC internal prototype to avoid an error.
9277 Use char because int might match the return type of a GCC
9278 builtin and then its argument prototype would still apply. */
9282 char getaddrinfo ();
9286 return getaddrinfo ();
9291 if ac_fn_c_try_link "$LINENO"; then :
9292 ac_cv_lib_socket_getaddrinfo=yes
9294 ac_cv_lib_socket_getaddrinfo=no
9296 rm -f core conftest.err conftest.$ac_objext \
9297 conftest$ac_exeext conftest.$ac_ext
9298 LIBS=$ac_check_lib_save_LIBS
9300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_getaddrinfo" >&5
9301 $as_echo "$ac_cv_lib_socket_getaddrinfo" >&6; }
9302 if test "x$ac_cv_lib_socket_getaddrinfo" = xyes; then :
9304 $as_echo "#define HAVE_GETADDRINFO 1" >>confdefs.h
9311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fmod in -lm" >&5
9312 $as_echo_n "checking for fmod in -lm... " >&6; }
9313 if ${ac_cv_lib_m_fmod+:} false; then :
9314 $as_echo_n "(cached) " >&6
9316 ac_check_lib_save_LIBS=$LIBS
9318 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9319 /* end confdefs.h. */
9321 /* Override any GCC internal prototype to avoid an error.
9322 Use char because int might match the return type of a GCC
9323 builtin and then its argument prototype would still apply. */
9336 if ac_fn_c_try_link "$LINENO"; then :
9337 ac_cv_lib_m_fmod=yes
9341 rm -f core conftest.err conftest.$ac_objext \
9342 conftest$ac_exeext conftest.$ac_ext
9343 LIBS=$ac_check_lib_save_LIBS
9345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_fmod" >&5
9346 $as_echo "$ac_cv_lib_m_fmod" >&6; }
9347 if test "x$ac_cv_lib_m_fmod" = xyes; then :
9348 cat >>confdefs.h <<_ACEOF
9356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isinf in -lm" >&5
9357 $as_echo_n "checking for isinf in -lm... " >&6; }
9358 if ${ac_cv_lib_m_isinf+:} false; then :
9359 $as_echo_n "(cached) " >&6
9361 ac_check_lib_save_LIBS=$LIBS
9363 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9364 /* end confdefs.h. */
9366 /* Override any GCC internal prototype to avoid an error.
9367 Use char because int might match the return type of a GCC
9368 builtin and then its argument prototype would still apply. */
9381 if ac_fn_c_try_link "$LINENO"; then :
9382 ac_cv_lib_m_isinf=yes
9384 ac_cv_lib_m_isinf=no
9386 rm -f core conftest.err conftest.$ac_objext \
9387 conftest$ac_exeext conftest.$ac_ext
9388 LIBS=$ac_check_lib_save_LIBS
9390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_isinf" >&5
9391 $as_echo "$ac_cv_lib_m_isinf" >&6; }
9392 if test "x$ac_cv_lib_m_isinf" = xyes; then :
9393 cat >>confdefs.h <<_ACEOF
9401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ismod in -lm" >&5
9402 $as_echo_n "checking for ismod in -lm... " >&6; }
9403 if ${ac_cv_lib_m_ismod+:} false; then :
9404 $as_echo_n "(cached) " >&6
9406 ac_check_lib_save_LIBS=$LIBS
9408 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9409 /* end confdefs.h. */
9411 /* Override any GCC internal prototype to avoid an error.
9412 Use char because int might match the return type of a GCC
9413 builtin and then its argument prototype would still apply. */
9426 if ac_fn_c_try_link "$LINENO"; then :
9427 ac_cv_lib_m_ismod=yes
9429 ac_cv_lib_m_ismod=no
9431 rm -f core conftest.err conftest.$ac_objext \
9432 conftest$ac_exeext conftest.$ac_ext
9433 LIBS=$ac_check_lib_save_LIBS
9435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_ismod" >&5
9436 $as_echo "$ac_cv_lib_m_ismod" >&6; }
9437 if test "x$ac_cv_lib_m_ismod" = xyes; then :
9438 cat >>confdefs.h <<_ACEOF
9465 acl_save_prefix="$prefix"
9466 prefix="$acl_final_prefix"
9467 acl_save_exec_prefix="$exec_prefix"
9468 exec_prefix="$acl_final_exec_prefix"
9470 eval additional_includedir=\"$includedir\"
9471 eval additional_libdir=\"$libdir\"
9473 exec_prefix="$acl_save_exec_prefix"
9474 prefix="$acl_save_prefix"
9477 # Check whether --with-libsigsegv-prefix was given.
9478 if test "${with_libsigsegv_prefix+set}" = set; then :
9479 withval=$with_libsigsegv_prefix;
9480 if test "X$withval" = "Xno"; then
9483 if test "X$withval" = "X"; then
9485 acl_save_prefix="$prefix"
9486 prefix="$acl_final_prefix"
9487 acl_save_exec_prefix="$exec_prefix"
9488 exec_prefix="$acl_final_exec_prefix"
9490 eval additional_includedir=\"$includedir\"
9491 eval additional_libdir=\"$libdir\"
9493 exec_prefix="$acl_save_exec_prefix"
9494 prefix="$acl_save_prefix"
9497 additional_includedir="$withval/include"
9498 additional_libdir="$withval/$acl_libdirstem"
9499 if test "$acl_libdirstem2" != "$acl_libdirstem" \
9500 && ! test -d "$withval/$acl_libdirstem"; then
9501 additional_libdir="$withval/$acl_libdirstem2"
9515 names_already_handled=
9516 names_next_round='sigsegv '
9517 while test -n "$names_next_round"; do
9518 names_this_round="$names_next_round"
9520 for name in $names_this_round; do
9522 for n in $names_already_handled; do
9523 if test "$n" = "$name"; then
9528 if test -z "$already_handled"; then
9529 names_already_handled="$names_already_handled $name"
9530 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
9531 eval value=\"\$HAVE_LIB$uppername\"
9532 if test -n "$value"; then
9533 if test "$value" = yes; then
9534 eval value=\"\$LIB$uppername\"
9535 test -z "$value" || LIBSIGSEGV="${LIBSIGSEGV}${LIBSIGSEGV:+ }$value"
9536 eval value=\"\$LTLIB$uppername\"
9537 test -z "$value" || LTLIBSIGSEGV="${LTLIBSIGSEGV}${LTLIBSIGSEGV:+ }$value"
9546 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
9547 if test -n "$acl_shlibext"; then
9548 shrext=".$acl_shlibext" # typically: shrext=.so
9552 if test $use_additional = yes; then
9553 dir="$additional_libdir"
9554 if test -n "$acl_shlibext"; then
9555 if test -f "$dir/$libname$shrext"; then
9557 found_so="$dir/$libname$shrext"
9559 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
9560 ver=`(cd "$dir" && \
9561 for f in "$libname$shrext".*; do echo "$f"; done \
9562 | sed -e "s,^$libname$shrext\\\\.,," \
9563 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
9564 | sed 1q ) 2>/dev/null`
9565 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
9567 found_so="$dir/$libname$shrext.$ver"
9570 eval library_names=\"$acl_library_names_spec\"
9571 for f in $library_names; do
9572 if test -f "$dir/$f"; then
9581 if test "X$found_dir" = "X"; then
9582 if test -f "$dir/$libname.$acl_libext"; then
9584 found_a="$dir/$libname.$acl_libext"
9587 if test "X$found_dir" != "X"; then
9588 if test -f "$dir/$libname.la"; then
9589 found_la="$dir/$libname.la"
9593 if test "X$found_dir" = "X"; then
9594 for x in $LDFLAGS $LTLIBSIGSEGV; do
9596 acl_save_prefix="$prefix"
9597 prefix="$acl_final_prefix"
9598 acl_save_exec_prefix="$exec_prefix"
9599 exec_prefix="$acl_final_exec_prefix"
9601 exec_prefix="$acl_save_exec_prefix"
9602 prefix="$acl_save_prefix"
9606 dir=`echo "X$x" | sed -e 's/^X-L//'`
9607 if test -n "$acl_shlibext"; then
9608 if test -f "$dir/$libname$shrext"; then
9610 found_so="$dir/$libname$shrext"
9612 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
9613 ver=`(cd "$dir" && \
9614 for f in "$libname$shrext".*; do echo "$f"; done \
9615 | sed -e "s,^$libname$shrext\\\\.,," \
9616 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
9617 | sed 1q ) 2>/dev/null`
9618 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
9620 found_so="$dir/$libname$shrext.$ver"
9623 eval library_names=\"$acl_library_names_spec\"
9624 for f in $library_names; do
9625 if test -f "$dir/$f"; then
9634 if test "X$found_dir" = "X"; then
9635 if test -f "$dir/$libname.$acl_libext"; then
9637 found_a="$dir/$libname.$acl_libext"
9640 if test "X$found_dir" != "X"; then
9641 if test -f "$dir/$libname.la"; then
9642 found_la="$dir/$libname.la"
9647 if test "X$found_dir" != "X"; then
9652 if test "X$found_dir" != "X"; then
9653 LTLIBSIGSEGV="${LTLIBSIGSEGV}${LTLIBSIGSEGV:+ }-L$found_dir -l$name"
9654 if test "X$found_so" != "X"; then
9655 if test "$enable_rpath" = no \
9656 || test "X$found_dir" = "X/usr/$acl_libdirstem" \
9657 || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
9658 LIBSIGSEGV="${LIBSIGSEGV}${LIBSIGSEGV:+ }$found_so"
9661 for x in $ltrpathdirs; do
9662 if test "X$x" = "X$found_dir"; then
9667 if test -z "$haveit"; then
9668 ltrpathdirs="$ltrpathdirs $found_dir"
9670 if test "$acl_hardcode_direct" = yes; then
9671 LIBSIGSEGV="${LIBSIGSEGV}${LIBSIGSEGV:+ }$found_so"
9673 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
9674 LIBSIGSEGV="${LIBSIGSEGV}${LIBSIGSEGV:+ }$found_so"
9676 for x in $rpathdirs; do
9677 if test "X$x" = "X$found_dir"; then
9682 if test -z "$haveit"; then
9683 rpathdirs="$rpathdirs $found_dir"
9687 for x in $LDFLAGS $LIBSIGSEGV; do
9689 acl_save_prefix="$prefix"
9690 prefix="$acl_final_prefix"
9691 acl_save_exec_prefix="$exec_prefix"
9692 exec_prefix="$acl_final_exec_prefix"
9694 exec_prefix="$acl_save_exec_prefix"
9695 prefix="$acl_save_prefix"
9697 if test "X$x" = "X-L$found_dir"; then
9702 if test -z "$haveit"; then
9703 LIBSIGSEGV="${LIBSIGSEGV}${LIBSIGSEGV:+ }-L$found_dir"
9705 if test "$acl_hardcode_minus_L" != no; then
9706 LIBSIGSEGV="${LIBSIGSEGV}${LIBSIGSEGV:+ }$found_so"
9708 LIBSIGSEGV="${LIBSIGSEGV}${LIBSIGSEGV:+ }-l$name"
9714 if test "X$found_a" != "X"; then
9715 LIBSIGSEGV="${LIBSIGSEGV}${LIBSIGSEGV:+ }$found_a"
9717 LIBSIGSEGV="${LIBSIGSEGV}${LIBSIGSEGV:+ }-L$found_dir -l$name"
9720 additional_includedir=
9721 case "$found_dir" in
9722 */$acl_libdirstem | */$acl_libdirstem/)
9723 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
9724 if test "$name" = 'sigsegv'; then
9725 LIBSIGSEGV_PREFIX="$basedir"
9727 additional_includedir="$basedir/include"
9729 */$acl_libdirstem2 | */$acl_libdirstem2/)
9730 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
9731 if test "$name" = 'sigsegv'; then
9732 LIBSIGSEGV_PREFIX="$basedir"
9734 additional_includedir="$basedir/include"
9737 if test "X$additional_includedir" != "X"; then
9738 if test "X$additional_includedir" != "X/usr/include"; then
9740 if test "X$additional_includedir" = "X/usr/local/include"; then
9741 if test -n "$GCC"; then
9743 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
9747 if test -z "$haveit"; then
9748 for x in $CPPFLAGS $INCSIGSEGV; do
9750 acl_save_prefix="$prefix"
9751 prefix="$acl_final_prefix"
9752 acl_save_exec_prefix="$exec_prefix"
9753 exec_prefix="$acl_final_exec_prefix"
9755 exec_prefix="$acl_save_exec_prefix"
9756 prefix="$acl_save_prefix"
9758 if test "X$x" = "X-I$additional_includedir"; then
9763 if test -z "$haveit"; then
9764 if test -d "$additional_includedir"; then
9765 INCSIGSEGV="${INCSIGSEGV}${INCSIGSEGV:+ }-I$additional_includedir"
9771 if test -n "$found_la"; then
9772 save_libdir="$libdir"
9774 */* | *\\*) . "$found_la" ;;
9775 *) . "./$found_la" ;;
9777 libdir="$save_libdir"
9778 for dep in $dependency_libs; do
9781 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
9782 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
9783 && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
9785 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
9786 || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
9787 if test -n "$GCC"; then
9789 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
9793 if test -z "$haveit"; then
9795 for x in $LDFLAGS $LIBSIGSEGV; do
9797 acl_save_prefix="$prefix"
9798 prefix="$acl_final_prefix"
9799 acl_save_exec_prefix="$exec_prefix"
9800 exec_prefix="$acl_final_exec_prefix"
9802 exec_prefix="$acl_save_exec_prefix"
9803 prefix="$acl_save_prefix"
9805 if test "X$x" = "X-L$additional_libdir"; then
9810 if test -z "$haveit"; then
9811 if test -d "$additional_libdir"; then
9812 LIBSIGSEGV="${LIBSIGSEGV}${LIBSIGSEGV:+ }-L$additional_libdir"
9816 for x in $LDFLAGS $LTLIBSIGSEGV; do
9818 acl_save_prefix="$prefix"
9819 prefix="$acl_final_prefix"
9820 acl_save_exec_prefix="$exec_prefix"
9821 exec_prefix="$acl_final_exec_prefix"
9823 exec_prefix="$acl_save_exec_prefix"
9824 prefix="$acl_save_prefix"
9826 if test "X$x" = "X-L$additional_libdir"; then
9831 if test -z "$haveit"; then
9832 if test -d "$additional_libdir"; then
9833 LTLIBSIGSEGV="${LTLIBSIGSEGV}${LTLIBSIGSEGV:+ }-L$additional_libdir"
9840 dir=`echo "X$dep" | sed -e 's/^X-R//'`
9841 if test "$enable_rpath" != no; then
9843 for x in $rpathdirs; do
9844 if test "X$x" = "X$dir"; then
9849 if test -z "$haveit"; then
9850 rpathdirs="$rpathdirs $dir"
9853 for x in $ltrpathdirs; do
9854 if test "X$x" = "X$dir"; then
9859 if test -z "$haveit"; then
9860 ltrpathdirs="$ltrpathdirs $dir"
9865 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
9868 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
9871 LIBSIGSEGV="${LIBSIGSEGV}${LIBSIGSEGV:+ }$dep"
9872 LTLIBSIGSEGV="${LTLIBSIGSEGV}${LTLIBSIGSEGV:+ }$dep"
9878 LIBSIGSEGV="${LIBSIGSEGV}${LIBSIGSEGV:+ }-l$name"
9879 LTLIBSIGSEGV="${LTLIBSIGSEGV}${LTLIBSIGSEGV:+ }-l$name"
9885 if test "X$rpathdirs" != "X"; then
9886 if test -n "$acl_hardcode_libdir_separator"; then
9888 for found_dir in $rpathdirs; do
9889 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
9891 acl_save_libdir="$libdir"
9893 eval flag=\"$acl_hardcode_libdir_flag_spec\"
9894 libdir="$acl_save_libdir"
9895 LIBSIGSEGV="${LIBSIGSEGV}${LIBSIGSEGV:+ }$flag"
9897 for found_dir in $rpathdirs; do
9898 acl_save_libdir="$libdir"
9900 eval flag=\"$acl_hardcode_libdir_flag_spec\"
9901 libdir="$acl_save_libdir"
9902 LIBSIGSEGV="${LIBSIGSEGV}${LIBSIGSEGV:+ }$flag"
9906 if test "X$ltrpathdirs" != "X"; then
9907 for found_dir in $ltrpathdirs; do
9908 LTLIBSIGSEGV="${LTLIBSIGSEGV}${LTLIBSIGSEGV:+ }-R$found_dir"
9918 ac_save_CPPFLAGS="$CPPFLAGS"
9920 for element in $INCSIGSEGV; do
9922 for x in $CPPFLAGS; do
9924 acl_save_prefix="$prefix"
9925 prefix="$acl_final_prefix"
9926 acl_save_exec_prefix="$exec_prefix"
9927 exec_prefix="$acl_final_exec_prefix"
9929 exec_prefix="$acl_save_exec_prefix"
9930 prefix="$acl_save_prefix"
9932 if test "X$x" = "X$element"; then
9937 if test -z "$haveit"; then
9938 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
9943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libsigsegv" >&5
9944 $as_echo_n "checking for libsigsegv... " >&6; }
9945 if ${ac_cv_libsigsegv+:} false; then :
9946 $as_echo_n "(cached) " >&6
9949 ac_save_LIBS="$LIBS"
9950 case " $LIBSIGSEGV" in
9951 *" -l"*) LIBS="$LIBS $LIBSIGSEGV" ;;
9952 *) LIBS="$LIBSIGSEGV $LIBS" ;;
9954 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9955 /* end confdefs.h. */
9956 #include <sigsegv.h>
9960 sigsegv_deinstall_handler();
9965 if ac_fn_c_try_link "$LINENO"; then :
9966 ac_cv_libsigsegv=yes
9968 ac_cv_libsigsegv='no, consider installing GNU libsigsegv'
9970 rm -f core conftest.err conftest.$ac_objext \
9971 conftest$ac_exeext conftest.$ac_ext
9972 LIBS="$ac_save_LIBS"
9975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libsigsegv" >&5
9976 $as_echo "$ac_cv_libsigsegv" >&6; }
9977 if test "$ac_cv_libsigsegv" = yes; then
9980 $as_echo "#define HAVE_LIBSIGSEGV 1" >>confdefs.h
9982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libsigsegv" >&5
9983 $as_echo_n "checking how to link with libsigsegv... " >&6; }
9984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBSIGSEGV" >&5
9985 $as_echo "$LIBSIGSEGV" >&6; }
9988 CPPFLAGS="$ac_save_CPPFLAGS"
10000 gl_cv_lib_sigsegv="$ac_cv_libsigsegv"
10005 # Need the check for mkstemp and tmpfile for missing_d/snprintf.c.
10006 for ac_func in atexit btowc fmod getgrent getgroups grantpt \
10007 isascii iswctype iswlower iswupper mbrlen \
10008 memcmp memcpy memcpy_ulong memmove memset \
10009 memset_ulong mkstemp posix_openpt setenv setlocale setsid snprintf strchr \
10010 strerror strftime strncasecmp strcoll strtod strtoul \
10011 system tmpfile towlower towupper tzset usleep wcrtomb \
10014 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10015 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
10016 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
10017 cat >>confdefs.h <<_ACEOF
10018 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc and mbstate_t are properly declared" >&5
10026 $as_echo_n "checking whether mbrtowc and mbstate_t are properly declared... " >&6; }
10027 if ${ac_cv_func_mbrtowc+:} false; then :
10028 $as_echo_n "(cached) " >&6
10030 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10031 /* end confdefs.h. */
10037 char const s[] = "";
10040 return ! (sizeof state && (mbrtowc) (&wc, s, n, &state));
10045 if ac_fn_c_try_link "$LINENO"; then :
10046 ac_cv_func_mbrtowc=yes
10048 ac_cv_func_mbrtowc=no
10050 rm -f core conftest.err conftest.$ac_objext \
10051 conftest$ac_exeext conftest.$ac_ext
10053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mbrtowc" >&5
10054 $as_echo "$ac_cv_func_mbrtowc" >&6; }
10055 if test $ac_cv_func_mbrtowc = yes; then
10057 $as_echo "#define HAVE_MBRTOWC 1" >>confdefs.h
10062 # Check whether --enable-extensions was given.
10063 if test "${enable_extensions+set}" = set; then :
10064 enableval=$enable_extensions;
10067 if test "x$enable_extensions" != "xno"; then
10068 extensions_supported=no
10071 mirbsd* | openedition*) # OS/390 z/OS POSIX layer
10072 cat << \EOF > extension/Makefile
10073 all dist check clean distclean install uninstall distcheck:
10078 ac_fn_c_check_header_mongrel "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default"
10079 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
10081 # Check this separately. Some systems have dlopen
10082 # in libc. Notably freebsd and cygwin.
10083 # HP-NSK has it in zrldsrl
10084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
10085 $as_echo_n "checking for library containing dlopen... " >&6; }
10086 if ${ac_cv_search_dlopen+:} false; then :
10087 $as_echo_n "(cached) " >&6
10089 ac_func_search_save_LIBS=$LIBS
10090 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10091 /* end confdefs.h. */
10093 /* Override any GCC internal prototype to avoid an error.
10094 Use char because int might match the return type of a GCC
10095 builtin and then its argument prototype would still apply. */
10108 for ac_lib in '' dl zrldsrl; do
10109 if test -z "$ac_lib"; then
10110 ac_res="none required"
10113 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10115 if ac_fn_c_try_link "$LINENO"; then :
10116 ac_cv_search_dlopen=$ac_res
10118 rm -f core conftest.err conftest.$ac_objext \
10120 if ${ac_cv_search_dlopen+:} false; then :
10124 if ${ac_cv_search_dlopen+:} false; then :
10127 ac_cv_search_dlopen=no
10129 rm conftest.$ac_ext
10130 LIBS=$ac_func_search_save_LIBS
10132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
10133 $as_echo "$ac_cv_search_dlopen" >&6; }
10134 ac_res=$ac_cv_search_dlopen
10135 if test "$ac_res" != no; then :
10136 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10137 gawk_have_dlopen=yes
10139 gawk_have_dlopen=no
10142 # Only do DYNAMIC if we have the lib. z/OS (some versions) have
10143 # the header but not the lib, apparently
10144 if test "$gawk_have_dlopen" = yes
10146 extensions_supported=yes
10148 $as_echo "#define DYNAMIC 1" >>confdefs.h
10150 # Add -export-dynamic for old extensions. Only works for GCC
10151 if test "$GCC" = yes; then
10154 LDFLAGS="$LDFLAGS -export-dynamic"
10166 if test "x$enable_extensions$extensions_supported" = "xyesno"; then
10167 as_fn_error $? "extension support requested, but unavailable" "$LINENO" 5
10169 enable_extensions=$extensions_supported
10173 vms*|beos*|os2*|msdos)
10175 $as_echo "#define GETPGRP_VOID 1" >>confdefs.h
10178 *) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getpgrp requires zero arguments" >&5
10179 $as_echo_n "checking whether getpgrp requires zero arguments... " >&6; }
10180 if ${ac_cv_func_getpgrp_void+:} false; then :
10181 $as_echo_n "(cached) " >&6
10183 # Use it with a single arg.
10184 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10185 /* end confdefs.h. */
10186 $ac_includes_default
10195 if ac_fn_c_try_compile "$LINENO"; then :
10196 ac_cv_func_getpgrp_void=no
10198 ac_cv_func_getpgrp_void=yes
10200 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getpgrp_void" >&5
10204 $as_echo "$ac_cv_func_getpgrp_void" >&6; }
10205 if test $ac_cv_func_getpgrp_void = yes; then
10207 $as_echo "#define GETPGRP_VOID 1" >>confdefs.h
10214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for printf %F format" >&5
10215 $as_echo_n "checking for printf %F format... " >&6; }
10216 if test "$cross_compiling" = yes; then :
10219 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10220 /* end confdefs.h. */
10229 sprintf(buf, "%F", 123.45);
10231 if (strcmp(buf, "123.450000") == 0)
10238 if ac_fn_c_try_run "$LINENO"; then :
10243 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10244 conftest.$ac_objext conftest.beam conftest.$ac_ext
10247 if test "$has_f_format" = yes; then
10249 $as_echo "#define PRINTF_HAS_F_FORMAT 1" >>confdefs.h
10252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_f_format" >&5
10253 $as_echo "$has_f_format" >&6; }
10256 gawk_have_sockets=no
10257 # Check for system-dependent location of socket libraries
10260 if test "$ISC" = yes; then
10261 SOCKET_LIBS="-lnsl_s -linet"
10263 # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X
10264 # libraries were built with DECnet support. And karl@cs.umb.edu says
10265 # the Alpha needs dnet_stub (dnet does not exist).
10267 # ADR: Is this needed just for sockets???
10268 # AC_CHECK_LIB(dnet, dnet_ntoa, [SOCKET_LIBS="$SOCKET_LIBS -ldnet"])
10269 # if test $ac_cv_lib_dnet_ntoa = no; then
10270 # AC_CHECK_LIB(dnet_stub, dnet_ntoa,
10271 # [SOCKET_LIBS="$SOCKET_LIBS -ldnet_stub"])
10274 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
10275 # to get the SysV transport functions.
10276 # chad@anasazi.com says the Pyramid MIS-ES running DC/OSx (SVR4)
10278 # The nsl library prevents programs from opening the X display
10279 # on Irix 5.2, according to dickey@clark.net.
10280 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
10281 if test "x$ac_cv_func_gethostbyname" = xyes; then :
10285 if test $ac_cv_func_gethostbyname = no; then
10286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
10287 $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
10288 if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
10289 $as_echo_n "(cached) " >&6
10291 ac_check_lib_save_LIBS=$LIBS
10293 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10294 /* end confdefs.h. */
10296 /* Override any GCC internal prototype to avoid an error.
10297 Use char because int might match the return type of a GCC
10298 builtin and then its argument prototype would still apply. */
10302 char gethostbyname ();
10306 return gethostbyname ();
10311 if ac_fn_c_try_link "$LINENO"; then :
10312 ac_cv_lib_nsl_gethostbyname=yes
10314 ac_cv_lib_nsl_gethostbyname=no
10316 rm -f core conftest.err conftest.$ac_objext \
10317 conftest$ac_exeext conftest.$ac_ext
10318 LIBS=$ac_check_lib_save_LIBS
10320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
10321 $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
10322 if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
10323 SOCKET_LIBS="$SOCKET_LIBS -lnsl"
10328 # lieder@skyler.mavd.honeywell.com says without -lsocket,
10329 # socket/setsockopt and other routines are undefined under SCO ODT
10330 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
10331 # on later versions), says simon@lia.di.epfl.ch: it contains
10332 # gethostby* variants that don't use the nameserver (or something).
10333 # -lsocket must be given before -lnsl if both are needed.
10334 # We assume that if connect needs -lnsl, so does gethostbyname.
10335 ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
10336 if test "x$ac_cv_func_connect" = xyes; then :
10340 if test $ac_cv_func_connect = no; then
10341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
10342 $as_echo_n "checking for connect in -lsocket... " >&6; }
10343 if ${ac_cv_lib_socket_connect+:} false; then :
10344 $as_echo_n "(cached) " >&6
10346 ac_check_lib_save_LIBS=$LIBS
10347 LIBS="-lsocket $SOCKET_LIBS $LIBS"
10348 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10349 /* end confdefs.h. */
10351 /* Override any GCC internal prototype to avoid an error.
10352 Use char because int might match the return type of a GCC
10353 builtin and then its argument prototype would still apply. */
10366 if ac_fn_c_try_link "$LINENO"; then :
10367 ac_cv_lib_socket_connect=yes
10369 ac_cv_lib_socket_connect=no
10371 rm -f core conftest.err conftest.$ac_objext \
10372 conftest$ac_exeext conftest.$ac_ext
10373 LIBS=$ac_check_lib_save_LIBS
10375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
10376 $as_echo "$ac_cv_lib_socket_connect" >&6; }
10377 if test "x$ac_cv_lib_socket_connect" = xyes; then :
10378 SOCKET_LIBS="-lsocket $SOCKET_LIBS"
10379 gawk_have_sockets=yes
10383 gawk_have_sockets=yes
10387 if test "${gawk_have_sockets}" = "yes"
10389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the socket library calls" >&5
10390 $as_echo_n "checking where to find the socket library calls... " >&6; }
10391 case "${SOCKET_LIBS}" in
10392 ?*) gawk_lib_loc="${SOCKET_LIBS}" ;;
10393 *) gawk_lib_loc="the standard library" ;;
10395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${gawk_lib_loc}" >&5
10396 $as_echo "${gawk_lib_loc}" >&6; }
10399 $as_echo "#define HAVE_SOCKETS 1" >>confdefs.h
10406 # Check whether --with-readline was given.
10407 if test "${with_readline+set}" = set; then :
10408 withval=$with_readline; _do_readline=$withval
10414 if test "$_do_readline" != "no" ; then
10415 if test -d "$withval" ; then
10416 CPPFLAGS="${CPPFLAGS} -I$withval/include"
10417 LDFLAGS="${LDFLAGS} -L$withval/lib"
10420 for _termcap in "" "-ltermcap" "-lcurses" "-lncurses" ; do
10421 _readline_save_libs=$LIBS
10422 _combo="-lreadline${_termcap:+ $_termcap}"
10423 LIBS="$LIBS $_combo"
10425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether readline via \"$_combo\" is present and sane" >&5
10426 $as_echo_n "checking whether readline via \"$_combo\" is present and sane... " >&6; }
10428 if test "$cross_compiling" = yes; then :
10432 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10433 /* end confdefs.h. */
10435 #include <readline/readline.h>
10436 #include <readline/history.h>
10438 int main(int argc, char **argv)
10445 fd = open("/dev/null", 2); /* should get fd 0 */
10447 line = readline("giveittome> ");
10449 /* some printfs don't handle NULL for %s */
10450 printf("got <%s>\n", line ? line : "(NULL)");
10454 if ac_fn_c_try_run "$LINENO"; then :
10455 _found_readline=yes
10459 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10460 conftest.$ac_objext conftest.beam conftest.$ac_ext
10464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_found_readline" >&5
10465 $as_echo "$_found_readline" >&6; }
10467 LIBS=$_readline_save_libs
10469 if test $_found_readline = yes ; then
10471 *bsd* ) _combo="$_combo -ltermcap"
10475 $as_echo "#define HAVE_LIBREADLINE 1" >>confdefs.h
10477 LIBREADLINE=$_combo
10480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for history_list in -lreadline" >&5
10481 $as_echo_n "checking for history_list in -lreadline... " >&6; }
10482 if ${ac_cv_lib_readline_history_list+:} false; then :
10483 $as_echo_n "(cached) " >&6
10485 ac_check_lib_save_LIBS=$LIBS
10486 LIBS="-lreadline $_combo $LIBS"
10487 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10488 /* end confdefs.h. */
10490 /* Override any GCC internal prototype to avoid an error.
10491 Use char because int might match the return type of a GCC
10492 builtin and then its argument prototype would still apply. */
10496 char history_list ();
10500 return history_list ();
10505 if ac_fn_c_try_link "$LINENO"; then :
10506 ac_cv_lib_readline_history_list=yes
10508 ac_cv_lib_readline_history_list=no
10510 rm -f core conftest.err conftest.$ac_objext \
10511 conftest$ac_exeext conftest.$ac_ext
10512 LIBS=$ac_check_lib_save_LIBS
10514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_history_list" >&5
10515 $as_echo "$ac_cv_lib_readline_history_list" >&6; }
10516 if test "x$ac_cv_lib_readline_history_list" = xyes; then :
10518 $as_echo "#define HAVE_HISTORY_LIST 1" >>confdefs.h
10528 unset _readline_save_libs
10530 unset _found_readline
10536 # Check whether --with-mpfr was given.
10537 if test "${with_mpfr+set}" = set; then :
10538 withval=$with_mpfr; _do_mpfr=$withval
10544 if test "$_do_mpfr" != "no" ; then
10545 if test -d "$withval" ; then
10546 CPPFLAGS="${CPPFLAGS} -I$withval/include"
10547 LDFLAGS="${LDFLAGS} -L$withval/lib"
10550 _mpfr_save_libs=$LIBS
10551 _combo="-lmpfr -lgmp"
10552 LIBS="$LIBS $_combo"
10554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mpfr via \"$_combo\" is present and usable" >&5
10555 $as_echo_n "checking whether mpfr via \"$_combo\" is present and usable... " >&6; }
10557 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10558 /* end confdefs.h. */
10573 mpfr_printf("%Rf%Zd", p, z);
10581 if ac_fn_c_try_link "$LINENO"; then :
10586 rm -f core conftest.err conftest.$ac_objext \
10587 conftest$ac_exeext conftest.$ac_ext
10589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_found_mpfr" >&5
10590 $as_echo "$_found_mpfr" >&6; }
10592 LIBS=$_mpfr_save_libs
10594 if test $_found_mpfr = yes ; then
10596 $as_echo "#define HAVE_MPFR 1" >>confdefs.h
10603 unset _mpfr_save_libs
10609 ac_fn_c_check_member "$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "$ac_includes_default"
10610 if test "x$ac_cv_member_struct_stat_st_blksize" = xyes; then :
10612 cat >>confdefs.h <<_ACEOF
10613 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
10619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
10620 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
10621 if ${ac_cv_struct_tm+:} false; then :
10622 $as_echo_n "(cached) " >&6
10624 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10625 /* end confdefs.h. */
10626 #include <sys/types.h>
10633 int *p = &tm.tm_sec;
10639 if ac_fn_c_try_compile "$LINENO"; then :
10640 ac_cv_struct_tm=time.h
10642 ac_cv_struct_tm=sys/time.h
10644 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
10647 $as_echo "$ac_cv_struct_tm" >&6; }
10648 if test $ac_cv_struct_tm = sys/time.h; then
10650 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
10654 ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
10655 #include <$ac_cv_struct_tm>
10658 if test "x$ac_cv_member_struct_tm_tm_zone" = xyes; then :
10660 cat >>confdefs.h <<_ACEOF
10661 #define HAVE_STRUCT_TM_TM_ZONE 1
10667 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
10669 $as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
10672 ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
10674 if test "x$ac_cv_have_decl_tzname" = xyes; then :
10680 cat >>confdefs.h <<_ACEOF
10681 #define HAVE_DECL_TZNAME $ac_have_decl
10684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
10685 $as_echo_n "checking for tzname... " >&6; }
10686 if ${ac_cv_var_tzname+:} false; then :
10687 $as_echo_n "(cached) " >&6
10689 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10690 /* end confdefs.h. */
10692 #if !HAVE_DECL_TZNAME
10693 extern char *tzname[];
10699 return tzname[0][0];
10704 if ac_fn_c_try_link "$LINENO"; then :
10705 ac_cv_var_tzname=yes
10707 ac_cv_var_tzname=no
10709 rm -f core conftest.err conftest.$ac_objext \
10710 conftest$ac_exeext conftest.$ac_ext
10712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
10713 $as_echo "$ac_cv_var_tzname" >&6; }
10714 if test $ac_cv_var_tzname = yes; then
10716 $as_echo "#define HAVE_TZNAME 1" >>confdefs.h
10722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether char is unsigned" >&5
10723 $as_echo_n "checking whether char is unsigned... " >&6; }
10724 if ${ac_cv_c_char_unsigned+:} false; then :
10725 $as_echo_n "(cached) " >&6
10727 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10728 /* end confdefs.h. */
10729 $ac_includes_default
10733 static int test_array [1 - 2 * !(((char) -1) < 0)];
10734 test_array [0] = 0;
10735 return test_array [0];
10741 if ac_fn_c_try_compile "$LINENO"; then :
10742 ac_cv_c_char_unsigned=no
10744 ac_cv_c_char_unsigned=yes
10746 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_char_unsigned" >&5
10749 $as_echo "$ac_cv_c_char_unsigned" >&6; }
10750 if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
10751 $as_echo "#define __CHAR_UNSIGNED__ 1" >>confdefs.h
10755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
10756 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
10757 if ${ac_cv_c_const+:} false; then :
10758 $as_echo_n "(cached) " >&6
10760 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10761 /* end confdefs.h. */
10767 #ifndef __cplusplus
10768 /* Ultrix mips cc rejects this sort of thing. */
10769 typedef int charset[2];
10770 const charset cs = { 0, 0 };
10771 /* SunOS 4.1.1 cc rejects this. */
10772 char const *const *pcpcc;
10774 /* NEC SVR4.0.2 mips cc rejects this. */
10775 struct point {int x, y;};
10776 static struct point const zero = {0,0};
10777 /* AIX XL C 1.02.0.0 rejects this.
10778 It does not let you subtract one const X* pointer from another in
10779 an arm of an if-expression whose if-part is not a constant
10781 const char *g = "string";
10782 pcpcc = &g + (g ? g-g : 0);
10783 /* HPUX 7.0 cc rejects these. */
10785 ppc = (char**) pcpcc;
10786 pcpcc = (char const *const *) ppc;
10787 { /* SCO 3.2v4 cc rejects this sort of thing. */
10790 char const *s = 0 ? (char *) 0 : (char const *) 0;
10795 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
10796 int x[] = {25, 17};
10797 const int *foo = &x[0];
10800 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
10801 typedef const int *iptr;
10805 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
10806 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
10807 struct s { int j; const int *ap[3]; } bx;
10808 struct s *b = &bx; b->j = 5;
10810 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
10811 const int foo = 10;
10812 if (!foo) return 0;
10814 return !cs[0] && !zero.x;
10821 if ac_fn_c_try_compile "$LINENO"; then :
10826 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
10829 $as_echo "$ac_cv_c_const" >&6; }
10830 if test $ac_cv_c_const = no; then
10832 $as_echo "#define const /**/" >>confdefs.h
10836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
10837 $as_echo_n "checking for C/C++ restrict keyword... " >&6; }
10838 if ${ac_cv_c_restrict+:} false; then :
10839 $as_echo_n "(cached) " >&6
10841 ac_cv_c_restrict=no
10842 # The order here caters to the fact that C++ does not require restrict.
10843 for ac_kw in __restrict __restrict__ _Restrict restrict; do
10844 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10845 /* end confdefs.h. */
10846 typedef int * int_ptr;
10847 int foo (int_ptr $ac_kw ip) {
10854 int * $ac_kw t = s;
10861 if ac_fn_c_try_compile "$LINENO"; then :
10862 ac_cv_c_restrict=$ac_kw
10864 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10865 test "$ac_cv_c_restrict" != no && break
10869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
10870 $as_echo "$ac_cv_c_restrict" >&6; }
10872 case $ac_cv_c_restrict in
10874 no) $as_echo "#define restrict /**/" >>confdefs.h
10876 *) cat >>confdefs.h <<_ACEOF
10877 #define restrict $ac_cv_c_restrict
10882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
10883 $as_echo_n "checking for inline... " >&6; }
10884 if ${ac_cv_c_inline+:} false; then :
10885 $as_echo_n "(cached) " >&6
10888 for ac_kw in inline __inline__ __inline; do
10889 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10890 /* end confdefs.h. */
10891 #ifndef __cplusplus
10893 static $ac_kw foo_t static_foo () {return 0; }
10894 $ac_kw foo_t foo () {return 0; }
10898 if ac_fn_c_try_compile "$LINENO"; then :
10899 ac_cv_c_inline=$ac_kw
10901 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10902 test "$ac_cv_c_inline" != no && break
10906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
10907 $as_echo "$ac_cv_c_inline" >&6; }
10909 case $ac_cv_c_inline in
10912 case $ac_cv_c_inline in
10914 *) ac_val=$ac_cv_c_inline;;
10916 cat >>confdefs.h <<_ACEOF
10917 #ifndef __cplusplus
10918 #define inline $ac_val
10924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for preprocessor stringizing operator" >&5
10925 $as_echo_n "checking for preprocessor stringizing operator... " >&6; }
10926 if ${ac_cv_c_stringize+:} false; then :
10927 $as_echo_n "(cached) " >&6
10929 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10930 /* end confdefs.h. */
10933 char *s = x(teststring);
10935 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10936 $EGREP "#teststring" >/dev/null 2>&1; then :
10937 ac_cv_c_stringize=no
10939 ac_cv_c_stringize=yes
10944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stringize" >&5
10945 $as_echo "$ac_cv_c_stringize" >&6; }
10946 if test $ac_cv_c_stringize = yes; then
10948 $as_echo "#define HAVE_STRINGIZE 1" >>confdefs.h
10953 ac_config_headers="$ac_config_headers config.h:configh.in"
10957 case $acl_shlibext in
10958 dylib) GAWKLIBEXT=so ;; # MacOS uses .dylib for shared libraries, but libtool uses .so for modules
10959 *) GAWKLIBEXT=$acl_shlibext ;;
10963 ac_config_files="$ac_config_files Makefile awklib/Makefile doc/Makefile po/Makefile.in test/Makefile"
10965 if test "x$enable_extensions" = "xyes"; then
10968 subdirs="$subdirs extension"
10971 cat >confcache <<\_ACEOF
10972 # This file is a shell script that caches the results of configure
10973 # tests run on this system so they can be shared between configure
10974 # scripts and configure runs, see configure's option --config-cache.
10975 # It is not useful on other systems. If it contains results you don't
10976 # want to keep, you may remove or edit it.
10978 # config.status only pays attention to the cache file if you give it
10979 # the --recheck option to rerun configure.
10981 # `ac_cv_env_foo' variables (set or unset) will be overridden when
10982 # loading this file, other *unset* `ac_cv_foo' will be assigned the
10983 # following values.
10987 # The following way of writing the cache mishandles newlines in values,
10988 # but we know of no workaround that is simple, portable, and efficient.
10989 # So, we kill variables containing newlines.
10990 # Ultrix sh set writes to stderr and can't be redirected directly,
10991 # and sets the high bit in the cache file unless we assign to the vars.
10993 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
10994 eval ac_val=\$$ac_var
10998 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
10999 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
11002 _ | IFS | as_nl) ;; #(
11003 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
11004 *) { eval $ac_var=; unset $ac_var;} ;;
11010 case $as_nl`(ac_space=' '; set) 2>&1` in #(
11011 *${as_nl}ac_space=\ *)
11012 # `set' does not quote correctly, so add quotes: double-quote
11013 # substitution turns \\\\ into \\, and sed turns \\ into \.
11016 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
11019 # `set' quotes correctly as required by POSIX, so do not add quotes.
11020 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
11029 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
11031 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11033 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
11034 if test -w "$cache_file"; then
11035 if test "x$cache_file" != "x/dev/null"; then
11036 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
11037 $as_echo "$as_me: updating cache $cache_file" >&6;}
11038 if test ! -f "$cache_file" || test -h "$cache_file"; then
11039 cat confcache >"$cache_file"
11041 case $cache_file in #(
11043 mv -f confcache "$cache_file"$$ &&
11044 mv -f "$cache_file"$$ "$cache_file" ;; #(
11046 mv -f confcache "$cache_file" ;;
11051 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
11052 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
11057 test "x$prefix" = xNONE && prefix=$ac_default_prefix
11058 # Let make expand exec_prefix.
11059 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11061 DEFS=-DHAVE_CONFIG_H
11066 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
11067 # 1. Remove the extension, and $U if already installed.
11068 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
11069 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
11070 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
11071 # will be set to the directory where LIBOBJS objects are built.
11072 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
11073 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
11075 LIBOBJS=$ac_libobjs
11077 LTLIBOBJS=$ac_ltlibobjs
11080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
11081 $as_echo_n "checking that generated files are newer than configure... " >&6; }
11082 if test -n "$am_sleep_pid"; then
11083 # Hide warnings about reused PIDs.
11084 wait $am_sleep_pid 2>/dev/null
11086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
11087 $as_echo "done" >&6; }
11088 if test -n "$EXEEXT"; then
11090 am__EXEEXT_FALSE='#'
11092 am__EXEEXT_TRUE='#'
11096 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
11097 as_fn_error $? "conditional \"AMDEP\" was never defined.
11098 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11100 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
11101 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
11102 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11104 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
11105 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
11106 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11108 if test -z "${TEST_CROSS_COMPILE_TRUE}" && test -z "${TEST_CROSS_COMPILE_FALSE}"; then
11109 as_fn_error $? "conditional \"TEST_CROSS_COMPILE\" was never defined.
11110 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11113 : "${CONFIG_STATUS=./config.status}"
11115 ac_clean_files_save=$ac_clean_files
11116 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
11117 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
11118 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
11120 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
11122 # Generated by $as_me.
11123 # Run this file to recreate the current configuration.
11124 # Compiler output produced by configure, useful for debugging
11125 # configure, is in config.log if it exists.
11128 ac_cs_recheck=false
11131 SHELL=\${CONFIG_SHELL-$SHELL}
11134 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
11135 ## -------------------- ##
11136 ## M4sh Initialization. ##
11137 ## -------------------- ##
11139 # Be more Bourne compatible
11140 DUALCASE=1; export DUALCASE # for MKS sh
11141 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
11144 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
11145 # is contrary to our usage. Disable this feature.
11146 alias -g '${1+"$@"}'='"$@"'
11147 setopt NO_GLOB_SUBST
11149 case `(set -o) 2>/dev/null` in #(
11161 # Printing a long string crashes Solaris 7 /usr/bin/printf.
11162 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
11163 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
11164 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
11165 # Prefer a ksh shell builtin over an external printf program on Solaris,
11166 # but without wasting forks for bash or zsh.
11167 if test -z "$BASH_VERSION$ZSH_VERSION" \
11168 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
11169 as_echo='print -r --'
11170 as_echo_n='print -rn --'
11171 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
11172 as_echo='printf %s\n'
11173 as_echo_n='printf %s'
11175 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
11176 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
11177 as_echo_n='/usr/ucb/echo -n'
11179 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
11180 as_echo_n_body='eval
11184 expr "X$arg" : "X\\(.*\\)$as_nl";
11185 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
11187 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
11189 export as_echo_n_body
11190 as_echo_n='sh -c $as_echo_n_body as_echo'
11192 export as_echo_body
11193 as_echo='sh -c $as_echo_body as_echo'
11196 # The user is always right.
11197 if test "${PATH_SEPARATOR+set}" != set; then
11199 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
11200 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
11207 # We need space, tab and new line, in precisely that order. Quoting is
11208 # there to prevent editors from complaining about space-tab.
11209 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
11210 # splitting by setting IFS to empty value.)
11213 # Find who we are. Look in the path if we contain no directory separator.
11216 *[\\/]* ) as_myself=$0 ;;
11217 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11218 for as_dir in $PATH
11221 test -z "$as_dir" && as_dir=.
11222 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
11228 # We did not find ourselves, most probably we were run as `sh COMMAND'
11229 # in which case we are not to be found in the path.
11230 if test "x$as_myself" = x; then
11233 if test ! -f "$as_myself"; then
11234 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
11238 # Unset variables that we do not need and which cause bugs (e.g. in
11239 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
11240 # suppresses any "Segmentation fault" message there. '((' could
11241 # trigger a bug in pdksh 5.2.14.
11242 for as_var in BASH_ENV ENV MAIL MAILPATH
11243 do eval test x\${$as_var+set} = xset \
11244 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
11257 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
11260 # as_fn_error STATUS ERROR [LINENO LOG_FD]
11261 # ----------------------------------------
11262 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
11263 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
11264 # script with STATUS, using 1 if that was 0.
11267 as_status=$1; test $as_status -eq 0 && as_status=1
11269 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
11270 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
11272 $as_echo "$as_me: error: $2" >&2
11273 as_fn_exit $as_status
11277 # as_fn_set_status STATUS
11278 # -----------------------
11279 # Set $? to STATUS, without forking.
11280 as_fn_set_status ()
11283 } # as_fn_set_status
11285 # as_fn_exit STATUS
11286 # -----------------
11287 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
11291 as_fn_set_status $1
11297 # Portably unset VAR.
11300 { eval $1=; unset $1;}
11302 as_unset=as_fn_unset
11303 # as_fn_append VAR VALUE
11304 # ----------------------
11305 # Append the text in VALUE to the end of the definition contained in VAR. Take
11306 # advantage of any shell optimizations that allow amortized linear growth over
11307 # repeated appends, instead of the typical quadratic growth present in naive
11309 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
11310 eval 'as_fn_append ()
11321 # as_fn_arith ARG...
11322 # ------------------
11323 # Perform arithmetic evaluation on the ARGs, and store the result in the
11324 # global $as_val. Take advantage of shells that can avoid forks. The arguments
11325 # must be portable across $(()) and expr.
11326 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
11327 eval 'as_fn_arith ()
11334 as_val=`expr "$@" || test $? -eq 1`
11339 if expr a : '\(a\)' >/dev/null 2>&1 &&
11340 test "X`expr 00001 : '.*\(...\)'`" = X001; then
11346 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
11347 as_basename=basename
11352 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
11358 as_me=`$as_basename -- "$0" ||
11359 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
11360 X"$0" : 'X\(//\)$' \| \
11361 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
11363 sed '/^.*\/\([^/][^/]*\)\/*$/{
11377 # Avoid depending upon Character Ranges.
11378 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
11379 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11380 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
11381 as_cr_digits='0123456789'
11382 as_cr_alnum=$as_cr_Letters$as_cr_digits
11384 ECHO_C= ECHO_N= ECHO_T=
11385 case `echo -n x` in #(((((
11387 case `echo 'xy\c'` in
11388 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
11390 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
11397 rm -f conf$$ conf$$.exe conf$$.file
11398 if test -d conf$$.dir; then
11399 rm -f conf$$.dir/conf$$.file
11402 mkdir conf$$.dir 2>/dev/null
11404 if (echo >conf$$.file) 2>/dev/null; then
11405 if ln -s conf$$.file conf$$ 2>/dev/null; then
11407 # ... but there are two gotchas:
11408 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
11409 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
11410 # In both cases, we have to default to `cp -pR'.
11411 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
11413 elif ln conf$$.file conf$$ 2>/dev/null; then
11421 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
11422 rmdir conf$$.dir 2>/dev/null
11427 # Create "$as_dir" as a directory, including parents if necessary.
11432 -*) as_dir=./$as_dir;;
11434 test -d "$as_dir" || eval $as_mkdir_p || {
11438 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
11439 *) as_qdir=$as_dir;;
11441 as_dirs="'$as_qdir' $as_dirs"
11442 as_dir=`$as_dirname -- "$as_dir" ||
11443 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11444 X"$as_dir" : 'X\(//\)[^/]' \| \
11445 X"$as_dir" : 'X\(//\)$' \| \
11446 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
11447 $as_echo X"$as_dir" |
11448 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11452 /^X\(\/\/\)[^/].*/{
11465 test -d "$as_dir" && break
11467 test -z "$as_dirs" || eval "mkdir $as_dirs"
11468 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
11472 if mkdir -p . 2>/dev/null; then
11473 as_mkdir_p='mkdir -p "$as_dir"'
11475 test -d ./-p && rmdir ./-p
11480 # as_fn_executable_p FILE
11481 # -----------------------
11482 # Test if FILE is an executable regular file.
11483 as_fn_executable_p ()
11485 test -f "$1" && test -x "$1"
11486 } # as_fn_executable_p
11487 as_test_x='test -x'
11488 as_executable_p=as_fn_executable_p
11490 # Sed expression to map a string onto a valid CPP name.
11491 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
11493 # Sed expression to map a string onto a valid variable name.
11494 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
11498 ## ----------------------------------- ##
11499 ## Main body of $CONFIG_STATUS script. ##
11500 ## ----------------------------------- ##
11502 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
11504 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11505 # Save the log message, to keep $0 and so on meaningful, and to
11506 # report actual input values of CONFIG_FILES etc. instead of their
11507 # values after options handling.
11509 This file was extended by GNU Awk $as_me 4.1.1, which was
11510 generated by GNU Autoconf 2.69. Invocation command line was
11512 CONFIG_FILES = $CONFIG_FILES
11513 CONFIG_HEADERS = $CONFIG_HEADERS
11514 CONFIG_LINKS = $CONFIG_LINKS
11515 CONFIG_COMMANDS = $CONFIG_COMMANDS
11518 on `(hostname || uname -n) 2>/dev/null | sed 1q`
11523 case $ac_config_files in *"
11524 "*) set x $ac_config_files; shift; ac_config_files=$*;;
11527 case $ac_config_headers in *"
11528 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
11532 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11533 # Files that config.status was made for.
11534 config_files="$ac_config_files"
11535 config_headers="$ac_config_headers"
11536 config_commands="$ac_config_commands"
11540 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11542 \`$as_me' instantiates files and other configuration actions
11543 from templates according to the current configuration. Unless the files
11544 and actions are specified as TAGs, all are instantiated by default.
11546 Usage: $0 [OPTION]... [TAG]...
11548 -h, --help print this help, then exit
11549 -V, --version print version number and configuration settings, then exit
11550 --config print configuration, then exit
11551 -q, --quiet, --silent
11552 do not print progress messages
11553 -d, --debug don't remove temporary files
11554 --recheck update $as_me by reconfiguring in the same conditions
11555 --file=FILE[:TEMPLATE]
11556 instantiate the configuration file FILE
11557 --header=FILE[:TEMPLATE]
11558 instantiate the configuration header FILE
11560 Configuration files:
11563 Configuration headers:
11566 Configuration commands:
11569 Report bugs to <bug-gawk@gnu.org>.
11570 GNU Awk home page: <http://www.gnu.org/software/gawk/>.
11571 General help using GNU software: <http://www.gnu.org/gethelp/>."
11574 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11575 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
11577 GNU Awk config.status 4.1.1
11578 configured by $0, generated by GNU Autoconf 2.69,
11579 with options \\"\$ac_cs_config\\"
11581 Copyright (C) 2012 Free Software Foundation, Inc.
11582 This config.status script is free software; the Free Software Foundation
11583 gives unlimited permission to copy, distribute and modify it."
11590 test -n "\$AWK" || AWK=awk
11593 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11594 # The default lists apply if the user does not specify any file.
11600 ac_option=`expr "X$1" : 'X\([^=]*\)='`
11601 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
11605 ac_option=`expr "X$1" : 'X\([^=]*\)='`
11617 # Handling of the options.
11618 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
11620 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
11621 $as_echo "$ac_cs_version"; exit ;;
11622 --config | --confi | --conf | --con | --co | --c )
11623 $as_echo "$ac_cs_config"; exit ;;
11624 --debug | --debu | --deb | --de | --d | -d )
11626 --file | --fil | --fi | --f )
11629 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
11630 '') as_fn_error $? "missing file argument" ;;
11632 as_fn_append CONFIG_FILES " '$ac_optarg'"
11633 ac_need_defaults=false;;
11634 --header | --heade | --head | --hea )
11637 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
11639 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
11640 ac_need_defaults=false;;
11642 # Conflict between --help and --header
11643 as_fn_error $? "ambiguous option: \`$1'
11644 Try \`$0 --help' for more information.";;
11645 --help | --hel | -h )
11646 $as_echo "$ac_cs_usage"; exit ;;
11647 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
11648 | -silent | --silent | --silen | --sile | --sil | --si | --s)
11651 # This is an error.
11652 -*) as_fn_error $? "unrecognized option: \`$1'
11653 Try \`$0 --help' for more information." ;;
11655 *) as_fn_append ac_config_targets " $1"
11656 ac_need_defaults=false ;;
11662 ac_configure_extra_args=
11664 if $ac_cs_silent; then
11666 ac_configure_extra_args="$ac_configure_extra_args --silent"
11670 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11671 if \$ac_cs_recheck; then
11672 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
11674 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
11675 CONFIG_SHELL='$SHELL'
11676 export CONFIG_SHELL
11681 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11685 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
11686 ## Running $as_me. ##
11692 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11696 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
11697 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
11698 # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
11699 # from automake < 1.5.
11700 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
11701 # Capture the value of LINGUAS because we need it to compute CATALOGS.
11702 LINGUAS="${LINGUAS-%UNSET%}"
11707 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11709 # Handling of arguments.
11710 for ac_config_target in $ac_config_targets
11712 case $ac_config_target in
11713 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
11714 "po-directories") CONFIG_COMMANDS="$CONFIG_COMMANDS po-directories" ;;
11715 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:configh.in" ;;
11716 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
11717 "awklib/Makefile") CONFIG_FILES="$CONFIG_FILES awklib/Makefile" ;;
11718 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
11719 "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
11720 "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;;
11722 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
11727 # If the user did not use the arguments to specify the items to instantiate,
11728 # then the envvar interface is used. Set only those that are not.
11729 # We use the long form for the default assignment because of an extremely
11730 # bizarre bug on SunOS 4.1.3.
11731 if $ac_need_defaults; then
11732 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
11733 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
11734 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
11737 # Have a temporary directory for convenience. Make it in the build tree
11738 # simply because there is no reason against having it here, and in addition,
11739 # creating and moving files from /tmp can sometimes cause problems.
11740 # Hook for its removal unless debugging.
11741 # Note that there is a small window in which the directory will not be cleaned:
11742 # after its creation but before its name has been assigned to `$tmp'.
11746 trap 'exit_status=$?
11747 : "${ac_tmp:=$tmp}"
11748 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
11750 trap 'as_fn_exit 1' 1 2 13 15
11752 # Create a (secure) tmp directory for tmp files.
11755 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
11759 tmp=./conf$$-$RANDOM
11760 (umask 077 && mkdir "$tmp")
11761 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
11764 # Set up the scripts for CONFIG_FILES section.
11765 # No need to generate them if there are no CONFIG_FILES.
11766 # This happens for instance with `./config.status config.h'.
11767 if test -n "$CONFIG_FILES"; then
11770 ac_cr=`echo X | tr X '\015'`
11771 # On cygwin, bash can eat \r inside `` if the user requested igncr.
11772 # But we know of no other shell where ac_cr would be empty at this
11773 # point, so we can use a bashism as a fallback.
11774 if test "x$ac_cr" = x; then
11775 eval ac_cr=\$\'\\r\'
11777 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
11778 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
11781 ac_cs_awk_cr=$ac_cr
11784 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
11789 echo "cat >conf$$subs.awk <<_ACEOF" &&
11790 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
11792 } >conf$$subs.sh ||
11793 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
11794 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
11796 for ac_last_try in false false false false false :; do
11797 . ./conf$$subs.sh ||
11798 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
11800 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
11801 if test $ac_delim_n = $ac_delim_num; then
11803 elif $ac_last_try; then
11804 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
11806 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
11809 rm -f conf$$subs.sh
11811 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11812 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
11816 s/^/S["/; s/!.*/"]=/
11826 s/\(.\{148\}\)..*/\1/
11828 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
11833 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
11840 s/\(.\{148\}\)..*/\1/
11842 s/["\\]/\\&/g; s/^/"/; s/$/"/
11846 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
11851 ' <conf$$subs.awk | sed '
11856 ' >>$CONFIG_STATUS || ac_write_fail=1
11857 rm -f conf$$subs.awk
11858 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11860 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
11861 for (key in S) S_is_set[key] = 1
11867 nfields = split(line, field, "@")
11869 len = length(field[1])
11870 for (i = 2; i < nfields; i++) {
11872 keylen = length(key)
11873 if (S_is_set[key]) {
11875 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
11876 len += length(value) + length(field[++i])
11887 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11888 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
11889 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
11892 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
11893 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
11896 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
11897 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
11898 # trailing colons and then remove the whole line if VPATH becomes empty
11899 # (actually we leave an empty line to preserve line numbers).
11900 if test "x$srcdir" = x.; then
11901 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
11919 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11920 fi # test -n "$CONFIG_FILES"
11922 # Set up the scripts for CONFIG_HEADERS section.
11923 # No need to generate them if there are no CONFIG_HEADERS.
11924 # This happens for instance with `./config.status Makefile'.
11925 if test -n "$CONFIG_HEADERS"; then
11926 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
11930 # Transform confdefs.h into an awk script `defines.awk', embedded as
11931 # here-document in config.status, that substitutes the proper values into
11932 # config.h.in to produce config.h.
11934 # Create a delimiter string that does not exist in confdefs.h, to ease
11935 # handling of long lines.
11937 for ac_last_try in false false :; do
11938 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
11939 if test -z "$ac_tt"; then
11941 elif $ac_last_try; then
11942 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
11944 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
11948 # For the awk script, D is an array of macro values keyed by name,
11949 # likewise P contains macro parameters if any. Preserve backslash
11950 # newline sequences.
11952 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
11954 s/.\{148\}/&'"$ac_delim"'/g
11957 s/^[ ]*#[ ]*define[ ][ ]*/ /
11964 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
11966 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
11970 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
11971 D["\1"]=" \3\\\\\\n"\\/p
11973 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
11978 s/.\{148\}/&'"$ac_delim"'/g
11983 s/["\\]/\\&/g; s/^/"/; s/$/"/p
11986 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
11988 ' <confdefs.h | sed '
11989 s/'"$ac_delim"'/"\\\
11990 "/g' >>$CONFIG_STATUS || ac_write_fail=1
11992 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11993 for (key in D) D_is_set[key] = 1
11996 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
11998 split(line, arg, " ")
11999 if (arg[1] == "#") {
12003 defundef = substr(arg[1], 2)
12006 split(mac1, mac2, "(") #)
12008 prefix = substr(line, 1, index(line, defundef) - 1)
12009 if (D_is_set[macro]) {
12010 # Preserve the white space surrounding the "#".
12011 print prefix "define", macro P[macro] D[macro]
12014 # Replace #undef with comments. This is necessary, for example,
12015 # in the case of _POSIX_SOURCE, which is predefined and required
12016 # on some systems where configure will not decide to define it.
12017 if (defundef == "undef") {
12018 print "/*", prefix defundef, macro, "*/"
12026 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12027 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
12028 fi # test -n "$CONFIG_HEADERS"
12031 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
12036 :[FHLC]) ac_mode=$ac_tag; continue;;
12038 case $ac_mode$ac_tag in
12040 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
12041 :[FH]-) ac_tag=-:-;;
12042 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
12059 -) ac_f="$ac_tmp/stdin";;
12060 *) # Look for the file first in the build tree, then in the source tree
12061 # (if the path is not absolute). The absolute path cannot be DOS-style,
12062 # because $ac_f cannot contain `:'.
12066 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
12068 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
12070 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
12071 as_fn_append ac_file_inputs " '$ac_f'"
12074 # Let's still pretend it is `configure' which instantiates (i.e., don't
12075 # use $as_me), people would be surprised to read:
12076 # /* config.h. Generated by config.status. */
12077 configure_input='Generated from '`
12078 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
12080 if test x"$ac_file" != x-; then
12081 configure_input="$ac_file. $configure_input"
12082 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
12083 $as_echo "$as_me: creating $ac_file" >&6;}
12085 # Neutralize special characters interpreted by sed in replacement strings.
12086 case $configure_input in #(
12087 *\&* | *\|* | *\\* )
12088 ac_sed_conf_input=`$as_echo "$configure_input" |
12089 sed 's/[\\\\&|]/\\\\&/g'`;; #(
12090 *) ac_sed_conf_input=$configure_input;;
12094 *:-:* | *:-) cat >"$ac_tmp/stdin" \
12095 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
12100 ac_dir=`$as_dirname -- "$ac_file" ||
12101 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12102 X"$ac_file" : 'X\(//\)[^/]' \| \
12103 X"$ac_file" : 'X\(//\)$' \| \
12104 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
12105 $as_echo X"$ac_file" |
12106 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12110 /^X\(\/\/\)[^/].*/{
12123 as_dir="$ac_dir"; as_fn_mkdir_p
12127 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
12129 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
12130 # A ".." for each directory in $ac_dir_suffix.
12131 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
12132 case $ac_top_builddir_sub in
12133 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
12134 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
12137 ac_abs_top_builddir=$ac_pwd
12138 ac_abs_builddir=$ac_pwd$ac_dir_suffix
12139 # for backward compatibility:
12140 ac_top_builddir=$ac_top_build_prefix
12143 .) # We are building in place.
12145 ac_top_srcdir=$ac_top_builddir_sub
12146 ac_abs_top_srcdir=$ac_pwd ;;
12147 [\\/]* | ?:[\\/]* ) # Absolute name.
12148 ac_srcdir=$srcdir$ac_dir_suffix;
12149 ac_top_srcdir=$srcdir
12150 ac_abs_top_srcdir=$srcdir ;;
12151 *) # Relative name.
12152 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
12153 ac_top_srcdir=$ac_top_build_prefix$srcdir
12154 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
12156 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
12166 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
12167 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
12169 ac_MKDIR_P=$MKDIR_P
12171 [\\/$]* | ?:[\\/]* ) ;;
12172 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
12176 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12177 # If the template does not know about datarootdir, expand it.
12178 # FIXME: This hack should be removed a few years after 2.60.
12179 ac_datarootdir_hack=; ac_datarootdir_seen=
12190 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
12191 *datarootdir*) ac_datarootdir_seen=yes;;
12192 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
12193 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
12194 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
12196 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12197 ac_datarootdir_hack='
12198 s&@datadir@&$datadir&g
12199 s&@docdir@&$docdir&g
12200 s&@infodir@&$infodir&g
12201 s&@localedir@&$localedir&g
12202 s&@mandir@&$mandir&g
12203 s&\\\${datarootdir}&$datarootdir&g' ;;
12207 # Neutralize VPATH when `$srcdir' = `.'.
12208 # Shell code in configure.ac might set extrasub.
12209 # FIXME: do we really want to maintain this feature?
12210 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12211 ac_sed_extra="$ac_vpsub
12214 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12216 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
12217 s|@configure_input@|$ac_sed_conf_input|;t t
12218 s&@top_builddir@&$ac_top_builddir_sub&;t t
12219 s&@top_build_prefix@&$ac_top_build_prefix&;t t
12220 s&@srcdir@&$ac_srcdir&;t t
12221 s&@abs_srcdir@&$ac_abs_srcdir&;t t
12222 s&@top_srcdir@&$ac_top_srcdir&;t t
12223 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
12224 s&@builddir@&$ac_builddir&;t t
12225 s&@abs_builddir@&$ac_abs_builddir&;t t
12226 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
12227 s&@INSTALL@&$ac_INSTALL&;t t
12228 s&@MKDIR_P@&$ac_MKDIR_P&;t t
12229 $ac_datarootdir_hack
12231 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
12232 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12234 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
12235 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
12236 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
12237 "$ac_tmp/out"`; test -z "$ac_out"; } &&
12238 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12239 which seems to be undefined. Please make sure it is defined" >&5
12240 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12241 which seems to be undefined. Please make sure it is defined" >&2;}
12243 rm -f "$ac_tmp/stdin"
12245 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
12246 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
12248 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12254 if test x"$ac_file" != x-; then
12256 $as_echo "/* $configure_input */" \
12257 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
12258 } >"$ac_tmp/config.h" \
12259 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12260 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
12261 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
12262 $as_echo "$as_me: $ac_file is unchanged" >&6;}
12265 mv "$ac_tmp/config.h" "$ac_file" \
12266 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12269 $as_echo "/* $configure_input */" \
12270 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
12271 || as_fn_error $? "could not create -" "$LINENO" 5
12273 # Compute "$ac_file"'s index in $config_headers.
12276 for _am_header in $config_headers :; do
12277 case $_am_header in
12278 $_am_arg | $_am_arg:* )
12281 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
12284 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
12285 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12286 X"$_am_arg" : 'X\(//\)[^/]' \| \
12287 X"$_am_arg" : 'X\(//\)$' \| \
12288 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
12289 $as_echo X"$_am_arg" |
12290 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12294 /^X\(\/\/\)[^/].*/{
12306 s/.*/./; q'`/stamp-h$_am_stamp_count
12309 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
12310 $as_echo "$as_me: executing $ac_file commands" >&6;}
12315 case $ac_file$ac_mode in
12316 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
12317 # Older Autoconf quotes --file arguments for eval, but not when files
12318 # are listed without --file. Let's play safe and only enable the eval
12319 # if we detect the quoting.
12320 case $CONFIG_FILES in
12321 *\'*) eval set x "$CONFIG_FILES" ;;
12322 *) set x $CONFIG_FILES ;;
12327 # Strip MF so we end up with the name of the file.
12328 mf=`echo "$mf" | sed -e 's/:.*$//'`
12329 # Check whether this is an Automake generated Makefile or not.
12330 # We used to match only the files named 'Makefile.in', but
12331 # some people rename them; so instead we look at the file content.
12332 # Grep'ing the first line is not enough: some people post-process
12333 # each Makefile.in and add a new line on top of each file to say so.
12334 # Grep'ing the whole file is not good either: AIX grep has a line
12335 # limit of 2048, but all sed's we know have understand at least 4000.
12336 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
12337 dirpart=`$as_dirname -- "$mf" ||
12338 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12339 X"$mf" : 'X\(//\)[^/]' \| \
12340 X"$mf" : 'X\(//\)$' \| \
12341 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
12343 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12347 /^X\(\/\/\)[^/].*/{
12363 # Extract the definition of DEPDIR, am__include, and am__quote
12364 # from the Makefile without running 'make'.
12365 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
12366 test -z "$DEPDIR" && continue
12367 am__include=`sed -n 's/^am__include = //p' < "$mf"`
12368 test -z "$am__include" && continue
12369 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
12370 # Find all dependency output files, they are included files with
12371 # $(DEPDIR) in their names. We invoke sed twice because it is the
12372 # simplest approach to changing $(DEPDIR) to its actual value in the
12374 for file in `sed -n "
12375 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
12376 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
12377 # Make sure the directory exists.
12378 test -f "$dirpart/$file" && continue
12379 fdir=`$as_dirname -- "$file" ||
12380 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12381 X"$file" : 'X\(//\)[^/]' \| \
12382 X"$file" : 'X\(//\)$' \| \
12383 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
12384 $as_echo X"$file" |
12385 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12389 /^X\(\/\/\)[^/].*/{
12402 as_dir=$dirpart/$fdir; as_fn_mkdir_p
12403 # echo "creating $dirpart/$file"
12404 echo '# dummy' > "$dirpart/$file"
12409 "po-directories":C)
12410 for ac_file in $CONFIG_FILES; do
12411 # Support "outfile[:infile[:infile...]]"
12413 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
12415 # PO directories have a Makefile.in generated from Makefile.in.in.
12416 case "$ac_file" in */Makefile.in)
12417 # Adjust a relative srcdir.
12418 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
12419 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
12420 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
12421 # In autoconf-2.13 it is called $ac_given_srcdir.
12422 # In autoconf-2.50 it is called $srcdir.
12423 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
12424 case "$ac_given_srcdir" in
12425 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
12426 /*) top_srcdir="$ac_given_srcdir" ;;
12427 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
12429 # Treat a directory as a PO directory if and only if it has a
12430 # POTFILES.in file. This allows packages to have multiple PO
12431 # directories under different names or in different locations.
12432 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
12433 rm -f "$ac_dir/POTFILES"
12434 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
12435 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
12436 POMAKEFILEDEPS="POTFILES.in"
12437 # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
12438 # on $ac_dir but don't depend on user-specified configuration
12440 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
12441 # The LINGUAS file contains the set of available languages.
12442 if test -n "$OBSOLETE_ALL_LINGUAS"; then
12443 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
12445 ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
12446 # Hide the ALL_LINGUAS assigment from automake < 1.5.
12447 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
12448 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
12450 # The set of available languages was given in configure.in.
12451 # Hide the ALL_LINGUAS assigment from automake < 1.5.
12452 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
12455 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
12456 # Compute UPDATEPOFILES
12457 # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
12458 # Compute DUMMYPOFILES
12459 # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
12461 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
12462 case "$ac_given_srcdir" in
12464 *) srcdirpre='$(srcdir)/' ;;
12470 for lang in $ALL_LINGUAS; do
12471 POFILES="$POFILES $srcdirpre$lang.po"
12472 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
12473 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
12474 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
12476 # CATALOGS depends on both $ac_dir and the user's LINGUAS
12477 # environment variable.
12479 if test -n "$ALL_LINGUAS"; then
12480 for presentlang in $ALL_LINGUAS; do
12482 if test "%UNSET%" != "$LINGUAS"; then
12483 desiredlanguages="$LINGUAS"
12485 desiredlanguages="$ALL_LINGUAS"
12487 for desiredlang in $desiredlanguages; do
12488 # Use the presentlang catalog if desiredlang is
12489 # a. equal to presentlang, or
12490 # b. a variant of presentlang (because in this case,
12491 # presentlang can be used as a fallback for messages
12492 # which are not translated in the desiredlang catalog).
12493 case "$desiredlang" in
12494 "$presentlang"*) useit=yes;;
12497 if test $useit = yes; then
12498 INST_LINGUAS="$INST_LINGUAS $presentlang"
12503 if test -n "$INST_LINGUAS"; then
12504 for lang in $INST_LINGUAS; do
12505 CATALOGS="$CATALOGS $lang.gmo"
12508 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
12509 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"
12510 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
12511 if test -f "$f"; then
12513 *.orig | *.bak | *~) ;;
12514 *) cat "$f" >> "$ac_dir/Makefile" ;;
12529 ac_clean_files=$ac_clean_files_save
12531 test $ac_write_fail = 0 ||
12532 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
12535 # configure is writing to config.log, and then calls config.status.
12536 # config.status does its own redirection, appending to config.log.
12537 # Unfortunately, on DOS this fails, as config.log is still kept open
12538 # by configure, so config.status won't be able to write to it; its
12539 # output is simply discarded. So we exec the FD to /dev/null,
12540 # effectively closing config.log, so it can be properly (re)opened and
12541 # appended to by config.status. When coming back to configure, we
12542 # need to make the FD available again.
12543 if test "$no_create" != yes; then
12545 ac_config_status_args=
12546 test "$silent" = yes &&
12547 ac_config_status_args="$ac_config_status_args --quiet"
12549 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
12551 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
12552 # would make configure fail if this is the last instruction.
12553 $ac_cs_success || as_fn_exit 1
12557 # CONFIG_SUBDIRS section.
12559 if test "$no_recursion" != yes; then
12561 # Remove --cache-file, --srcdir, and --disable-option-checking arguments
12562 # so they do not pile up.
12563 ac_sub_configure_args=
12565 eval "set x $ac_configure_args"
12569 if test -n "$ac_prev"; then
12574 -cache-file | --cache-file | --cache-fil | --cache-fi \
12575 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
12576 ac_prev=cache_file ;;
12577 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
12578 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
12581 --config-cache | -C)
12583 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
12585 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
12587 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
12589 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
12591 --disable-option-checking)
12595 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
12597 as_fn_append ac_sub_configure_args " '$ac_arg'" ;;
12601 # Always prepend --prefix to ensure using the same prefix
12602 # in subdir configurations.
12603 ac_arg="--prefix=$prefix"
12605 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
12607 ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
12610 if test "$silent" = yes; then
12611 ac_sub_configure_args="--silent $ac_sub_configure_args"
12614 # Always prepend --disable-option-checking to silence warnings, since
12615 # different subdirs can have different --enable and --with options.
12616 ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args"
12619 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
12621 # Do not complain, so a configure script can configure whichever
12622 # parts of a large source tree are present.
12623 test -d "$srcdir/$ac_dir" || continue
12625 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
12626 $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
12627 $as_echo "$ac_msg" >&6
12628 as_dir="$ac_dir"; as_fn_mkdir_p
12632 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
12634 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
12635 # A ".." for each directory in $ac_dir_suffix.
12636 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
12637 case $ac_top_builddir_sub in
12638 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
12639 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
12642 ac_abs_top_builddir=$ac_pwd
12643 ac_abs_builddir=$ac_pwd$ac_dir_suffix
12644 # for backward compatibility:
12645 ac_top_builddir=$ac_top_build_prefix
12648 .) # We are building in place.
12650 ac_top_srcdir=$ac_top_builddir_sub
12651 ac_abs_top_srcdir=$ac_pwd ;;
12652 [\\/]* | ?:[\\/]* ) # Absolute name.
12653 ac_srcdir=$srcdir$ac_dir_suffix;
12654 ac_top_srcdir=$srcdir
12655 ac_abs_top_srcdir=$srcdir ;;
12656 *) # Relative name.
12657 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
12658 ac_top_srcdir=$ac_top_build_prefix$srcdir
12659 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
12661 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
12666 # Check for guested configure; otherwise get Cygnus style configure.
12667 if test -f "$ac_srcdir/configure.gnu"; then
12668 ac_sub_configure=$ac_srcdir/configure.gnu
12669 elif test -f "$ac_srcdir/configure"; then
12670 ac_sub_configure=$ac_srcdir/configure
12671 elif test -f "$ac_srcdir/configure.in"; then
12672 # This should be Cygnus configure.
12673 ac_sub_configure=$ac_aux_dir/configure
12675 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5
12676 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
12680 # The recursion is here.
12681 if test -n "$ac_sub_configure"; then
12682 # Make the cache file name correct relative to the subdirectory.
12683 case $cache_file in
12684 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
12685 *) # Relative name.
12686 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
12689 { $as_echo "$as_me:${as_lineno-$LINENO}: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
12690 $as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
12691 # The eval makes quoting arguments work.
12692 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
12693 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
12694 as_fn_error $? "$ac_sub_configure failed for $ac_dir" "$LINENO" 5
12700 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
12701 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
12702 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}