2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for GNU make 4.3.
5 # Report bugs to <bug-make@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-make@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 make'
582 PACKAGE_TARNAME='make'
583 PACKAGE_VERSION='4.3'
584 PACKAGE_STRING='GNU make 4.3'
585 PACKAGE_BUGREPORT='bug-make@gnu.org'
586 PACKAGE_URL='http://www.gnu.org/software/make/'
588 ac_unique_file="src/vpath.c"
589 ac_config_libobj_dir=lib
590 # Factoring default headers for most tests.
591 ac_includes_default="\
593 #ifdef HAVE_SYS_TYPES_H
594 # include <sys/types.h>
596 #ifdef HAVE_SYS_STAT_H
597 # include <sys/stat.h>
603 # ifdef HAVE_STDLIB_H
608 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
613 #ifdef HAVE_STRINGS_H
614 # include <strings.h>
616 #ifdef HAVE_INTTYPES_H
617 # include <inttypes.h>
629 ac_subst_vars='gltests_LTLIBOBJS
656 XGETTEXT_EXTRA_OPTIONS
664 GETTEXT_MACRO_VERSION
672 NEXT_AS_FIRST_DIRECTIVE_UNISTD_H
676 NEXT_AS_FIRST_DIRECTIVE_SYS_TYPES_H
678 NEXT_AS_FIRST_DIRECTIVE_STRING_H
754 GNULIB_EXPLICIT_BZERO
755 NEXT_AS_FIRST_DIRECTIVE_STDLIB_H
757 NEXT_AS_FIRST_DIRECTIVE_STDIO_H
766 REPLACE_STDIO_WRITE_FUNCS
767 REPLACE_STDIO_READ_FUNCS
776 REPLACE_OBSTACK_PRINTF
801 HAVE_DECL_OBSTACK_PRINTF
807 GNULIB_VSPRINTF_POSIX
811 GNULIB_VFPRINTF_POSIX
818 GNULIB_STDIO_H_SIGPIPE
819 GNULIB_STDIO_H_NONBLOCKING
834 GNULIB_OBSTACK_PRINTF_POSIX
835 GNULIB_OBSTACK_PRINTF
860 GL_GENERATE_STDINT_H_FALSE
861 GL_GENERATE_STDINT_H_TRUE
873 HAVE_SIGNED_SIG_ATOMIC_T
876 BITSIZEOF_SIG_ATOMIC_T
880 NEXT_AS_FIRST_DIRECTIVE_STDINT_H
885 GNULIB_OVERRIDES_WINT_T
886 NEXT_AS_FIRST_DIRECTIVE_STDDEF_H
888 GL_GENERATE_STDDEF_H_FALSE
889 GL_GENERATE_STDDEF_H_TRUE
895 GL_GENERATE_STDBOOL_H_FALSE
896 GL_GENERATE_STDBOOL_H_TRUE
898 APPLE_UNIVERSAL_BUILD
900 USE_SYSTEM_GLOB_FALSE
902 GL_GENERATE_LIMITS_H_FALSE
903 GL_GENERATE_LIMITS_H_TRUE
905 NEXT_AS_FIRST_DIRECTIVE_LIMITS_H
930 REPLACE_CANONICALIZE_FILE_NAME
935 HAVE_STRUCT_RANDOM_DATA
966 HAVE_CANONICALIZE_FILE_NAME
1000 GNULIB_CANONICALIZE_FILE_NAME
1004 NEXT_AS_FIRST_DIRECTIVE_FCNTL_H
1023 GL_GENERATE_ERRNO_H_FALSE
1024 GL_GENERATE_ERRNO_H_TRUE
1026 NEXT_AS_FIRST_DIRECTIVE_ERRNO_H
1029 PRAGMA_SYSTEM_HEADER
1030 INCLUDE_NEXT_AS_FIRST_DIRECTIVE
1033 HAVE_MSVC_INVALID_PARAMETER_HANDLER
1035 GL_GENERATE_ALLOCA_H_FALSE
1036 GL_GENERATE_ALLOCA_H_TRUE
1047 UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS
1048 UNISTD_H_HAVE_WINSOCK2_H
1073 REPLACE_GETDTABLESIZE
1074 REPLACE_GETDOMAINNAME
1088 HAVE_DECL_SETHOSTNAME
1089 HAVE_DECL_GETUSERSHELL
1090 HAVE_DECL_GETPAGESIZE
1091 HAVE_DECL_GETLOGIN_R
1093 HAVE_DECL_GETDOMAINNAME
1128 HAVE_COPY_FILE_RANGE
1134 GNULIB_UNISTD_H_SIGPIPE
1135 GNULIB_UNISTD_H_NONBLOCKING
1163 GNULIB_GETDTABLESIZE
1164 GNULIB_GETDOMAINNAME
1177 GNULIB_COPY_FILE_RANGE
1182 GL_COND_LIBTOOL_FALSE
1183 GL_COND_LIBTOOL_TRUE
1207 AM_DEFAULT_VERBOSITY
1218 INSTALL_STRIP_PROGRAM
1261 program_transform_name
1273 ac_subst_files='MAINT_MAKEFILE'
1275 enable_option_checking
1277 enable_dependency_tracking
1278 enable_cross_guesses
1282 with_libiconv_prefix
1287 enable_case_insensitive_file_system
1293 ac_precious_vars='build_alias
1309 # Initialize some variables set by options.
1311 ac_init_version=false
1312 ac_unrecognized_opts=
1313 ac_unrecognized_sep=
1314 # The variables have the same names as the options, with
1315 # dashes changed to underlines.
1316 cache_file=/dev/null
1323 program_transform_name=s,x,x,
1331 # Installation directory options.
1332 # These are left unexpanded so users can "make install exec_prefix=/foo"
1333 # and all the variables that are supposed to be based on exec_prefix
1334 # by default will actually change.
1335 # Use braces instead of parens because sh, perl, etc. also accept them.
1336 # (The list follows the same order as the GNU Coding Standards.)
1337 bindir='${exec_prefix}/bin'
1338 sbindir='${exec_prefix}/sbin'
1339 libexecdir='${exec_prefix}/libexec'
1340 datarootdir='${prefix}/share'
1341 datadir='${datarootdir}'
1342 sysconfdir='${prefix}/etc'
1343 sharedstatedir='${prefix}/com'
1344 localstatedir='${prefix}/var'
1345 runstatedir='${localstatedir}/run'
1346 includedir='${prefix}/include'
1347 oldincludedir='/usr/include'
1348 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1349 infodir='${datarootdir}/info'
1354 libdir='${exec_prefix}/lib'
1355 localedir='${datarootdir}/locale'
1356 mandir='${datarootdir}/man'
1362 # If the previous option needs an argument, assign it.
1363 if test -n "$ac_prev"; then
1364 eval $ac_prev=\$ac_option
1370 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1375 # Accept the important Cygnus configure options, so we can diagnose typos.
1377 case $ac_dashdash$ac_option in
1381 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1383 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1384 bindir=$ac_optarg ;;
1386 -build | --build | --buil | --bui | --bu)
1387 ac_prev=build_alias ;;
1388 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1389 build_alias=$ac_optarg ;;
1391 -cache-file | --cache-file | --cache-fil | --cache-fi \
1392 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1393 ac_prev=cache_file ;;
1394 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1395 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1396 cache_file=$ac_optarg ;;
1398 --config-cache | -C)
1399 cache_file=config.cache ;;
1401 -datadir | --datadir | --datadi | --datad)
1403 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1404 datadir=$ac_optarg ;;
1406 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1407 | --dataroo | --dataro | --datar)
1408 ac_prev=datarootdir ;;
1409 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1410 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1411 datarootdir=$ac_optarg ;;
1413 -disable-* | --disable-*)
1414 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1415 # Reject names that are not valid shell variable names.
1416 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1417 as_fn_error $? "invalid feature name: $ac_useropt"
1418 ac_useropt_orig=$ac_useropt
1419 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1420 case $ac_user_opts in
1422 "enable_$ac_useropt"
1424 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1425 ac_unrecognized_sep=', ';;
1427 eval enable_$ac_useropt=no ;;
1429 -docdir | --docdir | --docdi | --doc | --do)
1431 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1432 docdir=$ac_optarg ;;
1434 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1436 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1437 dvidir=$ac_optarg ;;
1439 -enable-* | --enable-*)
1440 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1441 # Reject names that are not valid shell variable names.
1442 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1443 as_fn_error $? "invalid feature name: $ac_useropt"
1444 ac_useropt_orig=$ac_useropt
1445 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1446 case $ac_user_opts in
1448 "enable_$ac_useropt"
1450 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1451 ac_unrecognized_sep=', ';;
1453 eval enable_$ac_useropt=\$ac_optarg ;;
1455 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1456 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1457 | --exec | --exe | --ex)
1458 ac_prev=exec_prefix ;;
1459 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1460 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1461 | --exec=* | --exe=* | --ex=*)
1462 exec_prefix=$ac_optarg ;;
1464 -gas | --gas | --ga | --g)
1465 # Obsolete; use --with-gas.
1468 -help | --help | --hel | --he | -h)
1469 ac_init_help=long ;;
1470 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1471 ac_init_help=recursive ;;
1472 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1473 ac_init_help=short ;;
1475 -host | --host | --hos | --ho)
1476 ac_prev=host_alias ;;
1477 -host=* | --host=* | --hos=* | --ho=*)
1478 host_alias=$ac_optarg ;;
1480 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1482 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1484 htmldir=$ac_optarg ;;
1486 -includedir | --includedir | --includedi | --included | --include \
1487 | --includ | --inclu | --incl | --inc)
1488 ac_prev=includedir ;;
1489 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1490 | --includ=* | --inclu=* | --incl=* | --inc=*)
1491 includedir=$ac_optarg ;;
1493 -infodir | --infodir | --infodi | --infod | --info | --inf)
1495 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1496 infodir=$ac_optarg ;;
1498 -libdir | --libdir | --libdi | --libd)
1500 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1501 libdir=$ac_optarg ;;
1503 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1504 | --libexe | --libex | --libe)
1505 ac_prev=libexecdir ;;
1506 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1507 | --libexe=* | --libex=* | --libe=*)
1508 libexecdir=$ac_optarg ;;
1510 -localedir | --localedir | --localedi | --localed | --locale)
1511 ac_prev=localedir ;;
1512 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1513 localedir=$ac_optarg ;;
1515 -localstatedir | --localstatedir | --localstatedi | --localstated \
1516 | --localstate | --localstat | --localsta | --localst | --locals)
1517 ac_prev=localstatedir ;;
1518 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1519 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1520 localstatedir=$ac_optarg ;;
1522 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1524 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1525 mandir=$ac_optarg ;;
1527 -nfp | --nfp | --nf)
1528 # Obsolete; use --without-fp.
1531 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1532 | --no-cr | --no-c | -n)
1535 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1536 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1539 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1540 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1541 | --oldin | --oldi | --old | --ol | --o)
1542 ac_prev=oldincludedir ;;
1543 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1544 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1545 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1546 oldincludedir=$ac_optarg ;;
1548 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1550 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1551 prefix=$ac_optarg ;;
1553 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1554 | --program-pre | --program-pr | --program-p)
1555 ac_prev=program_prefix ;;
1556 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1557 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1558 program_prefix=$ac_optarg ;;
1560 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1561 | --program-suf | --program-su | --program-s)
1562 ac_prev=program_suffix ;;
1563 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1564 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1565 program_suffix=$ac_optarg ;;
1567 -program-transform-name | --program-transform-name \
1568 | --program-transform-nam | --program-transform-na \
1569 | --program-transform-n | --program-transform- \
1570 | --program-transform | --program-transfor \
1571 | --program-transfo | --program-transf \
1572 | --program-trans | --program-tran \
1573 | --progr-tra | --program-tr | --program-t)
1574 ac_prev=program_transform_name ;;
1575 -program-transform-name=* | --program-transform-name=* \
1576 | --program-transform-nam=* | --program-transform-na=* \
1577 | --program-transform-n=* | --program-transform-=* \
1578 | --program-transform=* | --program-transfor=* \
1579 | --program-transfo=* | --program-transf=* \
1580 | --program-trans=* | --program-tran=* \
1581 | --progr-tra=* | --program-tr=* | --program-t=*)
1582 program_transform_name=$ac_optarg ;;
1584 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1586 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1587 pdfdir=$ac_optarg ;;
1589 -psdir | --psdir | --psdi | --psd | --ps)
1591 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1594 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1595 | -silent | --silent | --silen | --sile | --sil)
1598 -runstatedir | --runstatedir | --runstatedi | --runstated \
1599 | --runstate | --runstat | --runsta | --runst | --runs \
1600 | --run | --ru | --r)
1601 ac_prev=runstatedir ;;
1602 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1603 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1604 | --run=* | --ru=* | --r=*)
1605 runstatedir=$ac_optarg ;;
1607 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1609 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1611 sbindir=$ac_optarg ;;
1613 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1614 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1615 | --sharedst | --shareds | --shared | --share | --shar \
1617 ac_prev=sharedstatedir ;;
1618 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1619 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1620 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1622 sharedstatedir=$ac_optarg ;;
1624 -site | --site | --sit)
1626 -site=* | --site=* | --sit=*)
1629 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1631 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1632 srcdir=$ac_optarg ;;
1634 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1635 | --syscon | --sysco | --sysc | --sys | --sy)
1636 ac_prev=sysconfdir ;;
1637 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1638 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1639 sysconfdir=$ac_optarg ;;
1641 -target | --target | --targe | --targ | --tar | --ta | --t)
1642 ac_prev=target_alias ;;
1643 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1644 target_alias=$ac_optarg ;;
1646 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1649 -version | --version | --versio | --versi | --vers | -V)
1650 ac_init_version=: ;;
1653 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1654 # Reject names that are not valid shell variable names.
1655 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1656 as_fn_error $? "invalid package name: $ac_useropt"
1657 ac_useropt_orig=$ac_useropt
1658 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1659 case $ac_user_opts in
1663 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1664 ac_unrecognized_sep=', ';;
1666 eval with_$ac_useropt=\$ac_optarg ;;
1668 -without-* | --without-*)
1669 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1670 # Reject names that are not valid shell variable names.
1671 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1672 as_fn_error $? "invalid package name: $ac_useropt"
1673 ac_useropt_orig=$ac_useropt
1674 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1675 case $ac_user_opts in
1679 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1680 ac_unrecognized_sep=', ';;
1682 eval with_$ac_useropt=no ;;
1685 # Obsolete; use --with-x.
1688 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1689 | --x-incl | --x-inc | --x-in | --x-i)
1690 ac_prev=x_includes ;;
1691 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1692 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1693 x_includes=$ac_optarg ;;
1695 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1696 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1697 ac_prev=x_libraries ;;
1698 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1699 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1700 x_libraries=$ac_optarg ;;
1702 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1703 Try \`$0 --help' for more information"
1707 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1708 # Reject names that are not valid shell variable names.
1709 case $ac_envvar in #(
1710 '' | [0-9]* | *[!_$as_cr_alnum]* )
1711 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1713 eval $ac_envvar=\$ac_optarg
1714 export $ac_envvar ;;
1717 # FIXME: should be removed in autoconf 3.0.
1718 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1719 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1720 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1721 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1727 if test -n "$ac_prev"; then
1728 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1729 as_fn_error $? "missing argument to $ac_option"
1732 if test -n "$ac_unrecognized_opts"; then
1733 case $enable_option_checking in
1735 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1736 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1740 # Check all directory arguments for consistency.
1741 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1742 datadir sysconfdir sharedstatedir localstatedir includedir \
1743 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1744 libdir localedir mandir runstatedir
1746 eval ac_val=\$$ac_var
1747 # Remove trailing slashes.
1750 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1751 eval $ac_var=\$ac_val;;
1753 # Be sure to have absolute directory names.
1755 [\\/$]* | ?:[\\/]* ) continue;;
1756 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1758 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1761 # There might be people who depend on the old broken behavior: `$host'
1762 # used to hold the argument of --host etc.
1763 # FIXME: To remove some day.
1766 target=$target_alias
1768 # FIXME: To remove some day.
1769 if test "x$host_alias" != x; then
1770 if test "x$build_alias" = x; then
1771 cross_compiling=maybe
1772 elif test "x$build_alias" != "x$host_alias"; then
1778 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1780 test "$silent" = yes && exec 6>/dev/null
1783 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1784 ac_ls_di=`ls -di .` &&
1785 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1786 as_fn_error $? "working directory cannot be determined"
1787 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1788 as_fn_error $? "pwd does not report name of working directory"
1791 # Find the source files, if location was not specified.
1792 if test -z "$srcdir"; then
1793 ac_srcdir_defaulted=yes
1794 # Try the directory containing this script, then the parent directory.
1795 ac_confdir=`$as_dirname -- "$as_myself" ||
1796 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1797 X"$as_myself" : 'X\(//\)[^/]' \| \
1798 X"$as_myself" : 'X\(//\)$' \| \
1799 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1800 $as_echo X"$as_myself" |
1801 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1819 if test ! -r "$srcdir/$ac_unique_file"; then
1823 ac_srcdir_defaulted=no
1825 if test ! -r "$srcdir/$ac_unique_file"; then
1826 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1827 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1829 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1831 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1833 # When building in place, set srcdir=.
1834 if test "$ac_abs_confdir" = "$ac_pwd"; then
1837 # Remove unnecessary trailing slashes from srcdir.
1838 # Double slashes in file names in object file debugging info
1839 # mess up M-x gdb in Emacs.
1841 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1843 for ac_var in $ac_precious_vars; do
1844 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1845 eval ac_env_${ac_var}_value=\$${ac_var}
1846 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1847 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1851 # Report the --help message.
1853 if test "$ac_init_help" = "long"; then
1854 # Omit some internal or obsolete options to make the list less imposing.
1855 # This message is too long to be a string in the A/UX 3.1 sh.
1857 \`configure' configures GNU make 4.3 to adapt to many kinds of systems.
1859 Usage: $0 [OPTION]... [VAR=VALUE]...
1861 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1862 VAR=VALUE. See below for descriptions of some of the useful variables.
1864 Defaults for the options are specified in brackets.
1867 -h, --help display this help and exit
1868 --help=short display options specific to this package
1869 --help=recursive display the short help of all the included packages
1870 -V, --version display version information and exit
1871 -q, --quiet, --silent do not print \`checking ...' messages
1872 --cache-file=FILE cache test results in FILE [disabled]
1873 -C, --config-cache alias for \`--cache-file=config.cache'
1874 -n, --no-create do not create output files
1875 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1877 Installation directories:
1878 --prefix=PREFIX install architecture-independent files in PREFIX
1879 [$ac_default_prefix]
1880 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1883 By default, \`make install' will install all the files in
1884 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1885 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1886 for instance \`--prefix=\$HOME'.
1888 For better control, use the options below.
1890 Fine tuning of the installation directories:
1891 --bindir=DIR user executables [EPREFIX/bin]
1892 --sbindir=DIR system admin executables [EPREFIX/sbin]
1893 --libexecdir=DIR program executables [EPREFIX/libexec]
1894 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1895 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1896 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1897 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1898 --libdir=DIR object code libraries [EPREFIX/lib]
1899 --includedir=DIR C header files [PREFIX/include]
1900 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1901 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1902 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1903 --infodir=DIR info documentation [DATAROOTDIR/info]
1904 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1905 --mandir=DIR man documentation [DATAROOTDIR/man]
1906 --docdir=DIR documentation root [DATAROOTDIR/doc/make]
1907 --htmldir=DIR html documentation [DOCDIR]
1908 --dvidir=DIR dvi documentation [DOCDIR]
1909 --pdfdir=DIR pdf documentation [DOCDIR]
1910 --psdir=DIR ps documentation [DOCDIR]
1916 --program-prefix=PREFIX prepend PREFIX to installed program names
1917 --program-suffix=SUFFIX append SUFFIX to installed program names
1918 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1921 --build=BUILD configure for building on BUILD [guessed]
1922 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1926 if test -n "$ac_init_help"; then
1927 case $ac_init_help in
1928 short | recursive ) echo "Configuration of GNU make 4.3:";;
1933 --disable-option-checking ignore unrecognized --enable/--with options
1934 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1935 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1936 --enable-silent-rules less verbose build output (undo: "make V=1")
1937 --disable-silent-rules verbose build output (undo: "make V=0")
1938 --enable-dependency-tracking
1939 do not reject slow dependency extractors
1940 --disable-dependency-tracking
1941 speeds up one-time build
1942 --enable-cross-guesses={conservative|risky}
1943 specify policy for cross-compilation guesses
1944 --disable-nls do not use Native Language Support
1945 --disable-rpath do not hardcode runtime library paths
1946 --disable-largefile omit support for large files
1947 --enable-case-insensitive-file-system
1948 assume file systems are case insensitive
1949 --disable-job-server disallow recursive make communication during -jN
1950 --disable-load disable support for the 'load' operation
1951 --disable-posix-spawn disable support for posix_spawn()
1954 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1955 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1956 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1957 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1958 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1959 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
1960 --without-libintl-prefix don't search for libintl in includedir and libdir
1961 --with-guile Support GNU Guile for embedded scripting
1962 --with-customs=DIR enable remote jobs via Customs--see README.customs
1963 --with-dmalloc use dmalloc, as in http://www.dmalloc.com
1965 Some influential environment variables:
1966 CC C compiler command
1967 CFLAGS C compiler flags
1968 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1969 nonstandard directory <lib dir>
1970 LIBS libraries to pass to the linker, e.g. -l<library>
1971 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1972 you have headers in a nonstandard directory <include dir>
1974 PKG_CONFIG path to pkg-config utility
1976 directories to add to pkg-config's search path
1978 path overriding pkg-config's built-in search path
1980 C compiler flags for GUILE, overriding pkg-config
1981 GUILE_LIBS linker flags for GUILE, overriding pkg-config
1983 Use these variables to override the choices made by `configure' or to help
1984 it to find libraries and programs with nonstandard names/locations.
1986 Report bugs to <bug-make@gnu.org>.
1987 GNU make home page: <http://www.gnu.org/software/make/>.
1988 General help using GNU software: <http://www.gnu.org/gethelp/>.
1993 if test "$ac_init_help" = "recursive"; then
1994 # If there are subdirs, report their specific --help.
1995 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1996 test -d "$ac_dir" ||
1997 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
2002 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
2004 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
2005 # A ".." for each directory in $ac_dir_suffix.
2006 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
2007 case $ac_top_builddir_sub in
2008 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
2009 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
2012 ac_abs_top_builddir=$ac_pwd
2013 ac_abs_builddir=$ac_pwd$ac_dir_suffix
2014 # for backward compatibility:
2015 ac_top_builddir=$ac_top_build_prefix
2018 .) # We are building in place.
2020 ac_top_srcdir=$ac_top_builddir_sub
2021 ac_abs_top_srcdir=$ac_pwd ;;
2022 [\\/]* | ?:[\\/]* ) # Absolute name.
2023 ac_srcdir=$srcdir$ac_dir_suffix;
2024 ac_top_srcdir=$srcdir
2025 ac_abs_top_srcdir=$srcdir ;;
2027 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
2028 ac_top_srcdir=$ac_top_build_prefix$srcdir
2029 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
2031 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
2033 cd "$ac_dir" || { ac_status=$?; continue; }
2034 # Check for guested configure.
2035 if test -f "$ac_srcdir/configure.gnu"; then
2037 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
2038 elif test -f "$ac_srcdir/configure"; then
2040 $SHELL "$ac_srcdir/configure" --help=recursive
2042 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
2044 cd "$ac_pwd" || { ac_status=$?; break; }
2048 test -n "$ac_init_help" && exit $ac_status
2049 if $ac_init_version; then
2051 GNU make configure 4.3
2052 generated by GNU Autoconf 2.69
2054 Copyright (C) 2012 Free Software Foundation, Inc.
2055 This configure script is free software; the Free Software Foundation
2056 gives unlimited permission to copy, distribute and modify it.
2061 ## ------------------------ ##
2062 ## Autoconf initialization. ##
2063 ## ------------------------ ##
2065 # ac_fn_c_try_compile LINENO
2066 # --------------------------
2067 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2068 ac_fn_c_try_compile ()
2070 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2071 rm -f conftest.$ac_objext
2072 if { { ac_try="$ac_compile"
2074 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2075 *) ac_try_echo=$ac_try;;
2077 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2078 $as_echo "$ac_try_echo"; } >&5
2079 (eval "$ac_compile") 2>conftest.err
2081 if test -s conftest.err; then
2082 grep -v '^ *+' conftest.err >conftest.er1
2083 cat conftest.er1 >&5
2084 mv -f conftest.er1 conftest.err
2086 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2087 test $ac_status = 0; } && {
2088 test -z "$ac_c_werror_flag" ||
2089 test ! -s conftest.err
2090 } && test -s conftest.$ac_objext; then :
2093 $as_echo "$as_me: failed program was:" >&5
2094 sed 's/^/| /' conftest.$ac_ext >&5
2098 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2099 as_fn_set_status $ac_retval
2101 } # ac_fn_c_try_compile
2103 # ac_fn_c_try_cpp LINENO
2104 # ----------------------
2105 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2108 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2109 if { { ac_try="$ac_cpp conftest.$ac_ext"
2111 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2112 *) ac_try_echo=$ac_try;;
2114 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2115 $as_echo "$ac_try_echo"; } >&5
2116 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2118 if test -s conftest.err; then
2119 grep -v '^ *+' conftest.err >conftest.er1
2120 cat conftest.er1 >&5
2121 mv -f conftest.er1 conftest.err
2123 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2124 test $ac_status = 0; } > conftest.i && {
2125 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2126 test ! -s conftest.err
2130 $as_echo "$as_me: failed program was:" >&5
2131 sed 's/^/| /' conftest.$ac_ext >&5
2135 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2136 as_fn_set_status $ac_retval
2140 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2141 # -------------------------------------------------------
2142 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2143 # the include files in INCLUDES and setting the cache variable VAR
2145 ac_fn_c_check_header_mongrel ()
2147 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2148 if eval \${$3+:} false; then :
2149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2150 $as_echo_n "checking for $2... " >&6; }
2151 if eval \${$3+:} false; then :
2152 $as_echo_n "(cached) " >&6
2155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2156 $as_echo "$ac_res" >&6; }
2158 # Is the header compilable?
2159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2160 $as_echo_n "checking $2 usability... " >&6; }
2161 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2162 /* end confdefs.h. */
2166 if ac_fn_c_try_compile "$LINENO"; then :
2167 ac_header_compiler=yes
2169 ac_header_compiler=no
2171 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2173 $as_echo "$ac_header_compiler" >&6; }
2175 # Is the header present?
2176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2177 $as_echo_n "checking $2 presence... " >&6; }
2178 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2179 /* end confdefs.h. */
2182 if ac_fn_c_try_cpp "$LINENO"; then :
2183 ac_header_preproc=yes
2185 ac_header_preproc=no
2187 rm -f conftest.err conftest.i conftest.$ac_ext
2188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2189 $as_echo "$ac_header_preproc" >&6; }
2191 # So? What about this header?
2192 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2194 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2195 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2196 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2197 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2200 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2201 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2202 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2203 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2204 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2205 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2206 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2207 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2208 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2209 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2210 ( $as_echo "## ------------------------------- ##
2211 ## Report this to bug-make@gnu.org ##
2212 ## ------------------------------- ##"
2213 ) | sed "s/^/$as_me: WARNING: /" >&2
2216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2217 $as_echo_n "checking for $2... " >&6; }
2218 if eval \${$3+:} false; then :
2219 $as_echo_n "(cached) " >&6
2221 eval "$3=\$ac_header_compiler"
2224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2225 $as_echo "$ac_res" >&6; }
2227 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2229 } # ac_fn_c_check_header_mongrel
2231 # ac_fn_c_try_run LINENO
2232 # ----------------------
2233 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2234 # that executables *can* be run.
2237 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2238 if { { ac_try="$ac_link"
2240 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2241 *) ac_try_echo=$ac_try;;
2243 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2244 $as_echo "$ac_try_echo"; } >&5
2245 (eval "$ac_link") 2>&5
2247 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2248 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2249 { { case "(($ac_try" in
2250 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2251 *) ac_try_echo=$ac_try;;
2253 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2254 $as_echo "$ac_try_echo"; } >&5
2255 (eval "$ac_try") 2>&5
2257 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2258 test $ac_status = 0; }; }; then :
2261 $as_echo "$as_me: program exited with status $ac_status" >&5
2262 $as_echo "$as_me: failed program was:" >&5
2263 sed 's/^/| /' conftest.$ac_ext >&5
2265 ac_retval=$ac_status
2267 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2268 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2269 as_fn_set_status $ac_retval
2273 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2274 # -------------------------------------------------------
2275 # Tests whether HEADER exists and can be compiled using the include files in
2276 # INCLUDES, setting the cache variable VAR accordingly.
2277 ac_fn_c_check_header_compile ()
2279 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2281 $as_echo_n "checking for $2... " >&6; }
2282 if eval \${$3+:} false; then :
2283 $as_echo_n "(cached) " >&6
2285 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2286 /* end confdefs.h. */
2290 if ac_fn_c_try_compile "$LINENO"; then :
2295 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2299 $as_echo "$ac_res" >&6; }
2300 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2302 } # ac_fn_c_check_header_compile
2304 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2305 # -------------------------------------------
2306 # Tests whether TYPE exists after having included INCLUDES, setting cache
2307 # variable VAR accordingly.
2308 ac_fn_c_check_type ()
2310 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2312 $as_echo_n "checking for $2... " >&6; }
2313 if eval \${$3+:} false; then :
2314 $as_echo_n "(cached) " >&6
2317 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2318 /* end confdefs.h. */
2329 if ac_fn_c_try_compile "$LINENO"; then :
2330 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2331 /* end confdefs.h. */
2342 if ac_fn_c_try_compile "$LINENO"; then :
2347 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2349 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2353 $as_echo "$ac_res" >&6; }
2354 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2356 } # ac_fn_c_check_type
2358 # ac_fn_c_try_link LINENO
2359 # -----------------------
2360 # Try to link conftest.$ac_ext, and return whether this succeeded.
2363 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2364 rm -f conftest.$ac_objext conftest$ac_exeext
2365 if { { ac_try="$ac_link"
2367 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2368 *) ac_try_echo=$ac_try;;
2370 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2371 $as_echo "$ac_try_echo"; } >&5
2372 (eval "$ac_link") 2>conftest.err
2374 if test -s conftest.err; then
2375 grep -v '^ *+' conftest.err >conftest.er1
2376 cat conftest.er1 >&5
2377 mv -f conftest.er1 conftest.err
2379 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2380 test $ac_status = 0; } && {
2381 test -z "$ac_c_werror_flag" ||
2382 test ! -s conftest.err
2383 } && test -s conftest$ac_exeext && {
2384 test "$cross_compiling" = yes ||
2385 test -x conftest$ac_exeext
2389 $as_echo "$as_me: failed program was:" >&5
2390 sed 's/^/| /' conftest.$ac_ext >&5
2394 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2395 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2396 # interfere with the next link command; also delete a directory that is
2397 # left behind by Apple's compiler. We do this before executing the actions.
2398 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2399 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2400 as_fn_set_status $ac_retval
2402 } # ac_fn_c_try_link
2404 # ac_fn_c_check_func LINENO FUNC VAR
2405 # ----------------------------------
2406 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2407 ac_fn_c_check_func ()
2409 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2411 $as_echo_n "checking for $2... " >&6; }
2412 if eval \${$3+:} false; then :
2413 $as_echo_n "(cached) " >&6
2415 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2416 /* end confdefs.h. */
2417 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2418 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2419 #define $2 innocuous_$2
2421 /* System header to define __stub macros and hopefully few prototypes,
2422 which can conflict with char $2 (); below.
2423 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2424 <limits.h> exists even on freestanding compilers. */
2427 # include <limits.h>
2429 # include <assert.h>
2434 /* Override any GCC internal prototype to avoid an error.
2435 Use char because int might match the return type of a GCC
2436 builtin and then its argument prototype would still apply. */
2441 /* The GNU C library defines this for functions which it implements
2442 to always fail with ENOSYS. Some functions are actually named
2443 something starting with __ and the normal name is an alias. */
2444 #if defined __stub_$2 || defined __stub___$2
2456 if ac_fn_c_try_link "$LINENO"; then :
2461 rm -f core conftest.err conftest.$ac_objext \
2462 conftest$ac_exeext conftest.$ac_ext
2465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2466 $as_echo "$ac_res" >&6; }
2467 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2469 } # ac_fn_c_check_func
2471 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2472 # --------------------------------------------
2473 # Tries to find the compile-time value of EXPR in a program that includes
2474 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2476 ac_fn_c_compute_int ()
2478 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2479 if test "$cross_compiling" = yes; then
2480 # Depending upon the size, compute the lo and hi bounds.
2481 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2482 /* end confdefs.h. */
2487 static int test_array [1 - 2 * !(($2) >= 0)];
2489 return test_array [0];
2495 if ac_fn_c_try_compile "$LINENO"; then :
2498 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2499 /* end confdefs.h. */
2504 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2506 return test_array [0];
2512 if ac_fn_c_try_compile "$LINENO"; then :
2513 ac_hi=$ac_mid; break
2515 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2516 if test $ac_lo -le $ac_mid; then
2520 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2522 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2525 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2526 /* end confdefs.h. */
2531 static int test_array [1 - 2 * !(($2) < 0)];
2533 return test_array [0];
2539 if ac_fn_c_try_compile "$LINENO"; then :
2542 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2543 /* end confdefs.h. */
2548 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2550 return test_array [0];
2556 if ac_fn_c_try_compile "$LINENO"; then :
2557 ac_lo=$ac_mid; break
2559 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2560 if test $ac_mid -le $ac_hi; then
2564 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2566 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2571 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2573 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2574 # Binary search between lo and hi bounds.
2575 while test "x$ac_lo" != "x$ac_hi"; do
2576 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2577 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2578 /* end confdefs.h. */
2583 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2585 return test_array [0];
2591 if ac_fn_c_try_compile "$LINENO"; then :
2594 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2596 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2599 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2603 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2604 /* end confdefs.h. */
2606 static long int longval () { return $2; }
2607 static unsigned long int ulongval () { return $2; }
2614 FILE *f = fopen ("conftest.val", "w");
2619 long int i = longval ();
2622 fprintf (f, "%ld", i);
2626 unsigned long int i = ulongval ();
2629 fprintf (f, "%lu", i);
2631 /* Do not output a trailing newline, as this causes \r\n confusion
2632 on some platforms. */
2633 return ferror (f) || fclose (f) != 0;
2639 if ac_fn_c_try_run "$LINENO"; then :
2640 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2644 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2645 conftest.$ac_objext conftest.beam conftest.$ac_ext
2649 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2650 as_fn_set_status $ac_retval
2652 } # ac_fn_c_compute_int
2654 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2655 # ---------------------------------------------
2656 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2658 ac_fn_c_check_decl ()
2660 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2661 as_decl_name=`echo $2|sed 's/ *(.*//'`
2662 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2664 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2665 if eval \${$3+:} false; then :
2666 $as_echo_n "(cached) " >&6
2668 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2669 /* end confdefs.h. */
2674 #ifndef $as_decl_name
2676 (void) $as_decl_use;
2678 (void) $as_decl_name;
2686 if ac_fn_c_try_compile "$LINENO"; then :
2691 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2695 $as_echo "$ac_res" >&6; }
2696 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2698 } # ac_fn_c_check_decl
2700 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2701 # ----------------------------------------------------
2702 # Tries to find if the field MEMBER exists in type AGGR, after including
2703 # INCLUDES, setting cache variable VAR accordingly.
2704 ac_fn_c_check_member ()
2706 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2708 $as_echo_n "checking for $2.$3... " >&6; }
2709 if eval \${$4+:} false; then :
2710 $as_echo_n "(cached) " >&6
2712 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2713 /* end confdefs.h. */
2725 if ac_fn_c_try_compile "$LINENO"; then :
2728 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2729 /* end confdefs.h. */
2735 if (sizeof ac_aggr.$3)
2741 if ac_fn_c_try_compile "$LINENO"; then :
2746 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2748 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2752 $as_echo "$ac_res" >&6; }
2753 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2755 } # ac_fn_c_check_member
2756 cat >config.log <<_ACEOF
2757 This file contains any messages produced by compilers while
2758 running configure, to aid debugging if configure makes a mistake.
2760 It was created by GNU make $as_me 4.3, which was
2761 generated by GNU Autoconf 2.69. Invocation command line was
2773 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2774 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2775 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2776 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2777 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2779 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2780 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2782 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2783 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2784 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2785 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2786 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2787 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2788 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2792 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2796 test -z "$as_dir" && as_dir=.
2797 $as_echo "PATH: $as_dir"
2813 # Keep a trace of the command line.
2814 # Strip out --no-create and --no-recursion so they do not pile up.
2815 # Strip out --silent because we don't want to record it for future runs.
2816 # Also quote any args containing shell meta-characters.
2817 # Make two passes to allow for proper duplicate-argument suppression.
2821 ac_must_keep_next=false
2827 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2828 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2829 | -silent | --silent | --silen | --sile | --sil)
2832 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2835 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2837 as_fn_append ac_configure_args1 " '$ac_arg'"
2838 if test $ac_must_keep_next = true; then
2839 ac_must_keep_next=false # Got value, back to normal.
2842 *=* | --config-cache | -C | -disable-* | --disable-* \
2843 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2844 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2845 | -with-* | --with-* | -without-* | --without-* | --x)
2846 case "$ac_configure_args0 " in
2847 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2850 -* ) ac_must_keep_next=true ;;
2853 as_fn_append ac_configure_args " '$ac_arg'"
2858 { ac_configure_args0=; unset ac_configure_args0;}
2859 { ac_configure_args1=; unset ac_configure_args1;}
2861 # When interrupted or exit'd, cleanup temporary files, and complete
2862 # config.log. We remove comments because anyway the quotes in there
2863 # would cause problems or look ugly.
2864 # WARNING: Use '\'' to represent an apostrophe within the trap.
2865 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2866 trap 'exit_status=$?
2867 # Save into config.log some information that might help in debugging.
2871 $as_echo "## ---------------- ##
2872 ## Cache variables. ##
2873 ## ---------------- ##"
2875 # The following way of writing the cache mishandles newlines in values,
2877 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2878 eval ac_val=\$$ac_var
2882 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2883 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2886 _ | IFS | as_nl) ;; #(
2887 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2888 *) { eval $ac_var=; unset $ac_var;} ;;
2893 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2894 *${as_nl}ac_space=\ *)
2896 "s/'\''/'\''\\\\'\'''\''/g;
2897 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2900 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2907 $as_echo "## ----------------- ##
2908 ## Output variables. ##
2909 ## ----------------- ##"
2911 for ac_var in $ac_subst_vars
2913 eval ac_val=\$$ac_var
2915 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2917 $as_echo "$ac_var='\''$ac_val'\''"
2921 if test -n "$ac_subst_files"; then
2922 $as_echo "## ------------------- ##
2923 ## File substitutions. ##
2924 ## ------------------- ##"
2926 for ac_var in $ac_subst_files
2928 eval ac_val=\$$ac_var
2930 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2932 $as_echo "$ac_var='\''$ac_val'\''"
2937 if test -s confdefs.h; then
2938 $as_echo "## ----------- ##
2945 test "$ac_signal" != 0 &&
2946 $as_echo "$as_me: caught signal $ac_signal"
2947 $as_echo "$as_me: exit $exit_status"
2949 rm -f core *.core core.conftest.* &&
2950 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2953 for ac_signal in 1 2 13 15; do
2954 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2958 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2959 rm -f -r conftest* confdefs.h
2961 $as_echo "/* confdefs.h */" > confdefs.h
2963 # Predefined preprocessor variables.
2965 cat >>confdefs.h <<_ACEOF
2966 #define PACKAGE_NAME "$PACKAGE_NAME"
2969 cat >>confdefs.h <<_ACEOF
2970 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2973 cat >>confdefs.h <<_ACEOF
2974 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2977 cat >>confdefs.h <<_ACEOF
2978 #define PACKAGE_STRING "$PACKAGE_STRING"
2981 cat >>confdefs.h <<_ACEOF
2982 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2985 cat >>confdefs.h <<_ACEOF
2986 #define PACKAGE_URL "$PACKAGE_URL"
2990 # Let the site file select an alternate cache file if it wants to.
2991 # Prefer an explicitly selected file to automatically selected ones.
2994 if test -n "$CONFIG_SITE"; then
2995 # We do not want a PATH search for config.site.
2996 case $CONFIG_SITE in #((
2997 -*) ac_site_file1=./$CONFIG_SITE;;
2998 */*) ac_site_file1=$CONFIG_SITE;;
2999 *) ac_site_file1=./$CONFIG_SITE;;
3001 elif test "x$prefix" != xNONE; then
3002 ac_site_file1=$prefix/share/config.site
3003 ac_site_file2=$prefix/etc/config.site
3005 ac_site_file1=$ac_default_prefix/share/config.site
3006 ac_site_file2=$ac_default_prefix/etc/config.site
3008 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
3010 test "x$ac_site_file" = xNONE && continue
3011 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
3012 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
3013 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
3014 sed 's/^/| /' "$ac_site_file" >&5
3016 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3017 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3018 as_fn_error $? "failed to load site script $ac_site_file
3019 See \`config.log' for more details" "$LINENO" 5; }
3023 if test -r "$cache_file"; then
3024 # Some versions of bash will fail to source /dev/null (special files
3025 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
3026 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
3027 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
3028 $as_echo "$as_me: loading cache $cache_file" >&6;}
3030 [\\/]* | ?:[\\/]* ) . "$cache_file";;
3031 *) . "./$cache_file";;
3035 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
3036 $as_echo "$as_me: creating cache $cache_file" >&6;}
3040 as_fn_append ac_func_list " _set_invalid_parameter_handler"
3041 as_fn_append ac_header_list " sys/socket.h"
3042 as_fn_append ac_func_list " fcntl"
3043 as_fn_append ac_header_list " unistd.h"
3044 as_fn_append ac_func_list " symlink"
3045 as_fn_append ac_func_list " getdtablesize"
3046 as_fn_append ac_header_list " sys/param.h"
3047 as_fn_append ac_func_list " getprogname"
3048 as_fn_append ac_func_list " getexecname"
3049 as_fn_append ac_header_list " limits.h"
3050 as_fn_append ac_header_list " wchar.h"
3051 as_fn_append ac_header_list " stdint.h"
3052 gt_needs="$gt_needs "
3053 # Check that the precious variables saved in the cache have kept the same
3055 ac_cache_corrupted=false
3056 for ac_var in $ac_precious_vars; do
3057 eval ac_old_set=\$ac_cv_env_${ac_var}_set
3058 eval ac_new_set=\$ac_env_${ac_var}_set
3059 eval ac_old_val=\$ac_cv_env_${ac_var}_value
3060 eval ac_new_val=\$ac_env_${ac_var}_value
3061 case $ac_old_set,$ac_new_set in
3063 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3064 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3065 ac_cache_corrupted=: ;;
3067 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3068 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3069 ac_cache_corrupted=: ;;
3072 if test "x$ac_old_val" != "x$ac_new_val"; then
3073 # differences in whitespace do not lead to failure.
3074 ac_old_val_w=`echo x $ac_old_val`
3075 ac_new_val_w=`echo x $ac_new_val`
3076 if test "$ac_old_val_w" != "$ac_new_val_w"; then
3077 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3078 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3079 ac_cache_corrupted=:
3081 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3082 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3083 eval $ac_var=\$ac_old_val
3085 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
3086 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
3087 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
3088 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
3091 # Pass precious variables to config.status.
3092 if test "$ac_new_set" = set; then
3094 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3095 *) ac_arg=$ac_var=$ac_new_val ;;
3097 case " $ac_configure_args " in
3098 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
3099 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3103 if $ac_cache_corrupted; then
3104 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3105 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3106 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3107 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3108 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3110 ## -------------------- ##
3111 ## Main body of script. ##
3112 ## -------------------- ##
3115 ac_cpp='$CPP $CPPFLAGS'
3116 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3117 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3118 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3126 for ac_dir in build-aux "$srcdir"/build-aux; do
3127 if test -f "$ac_dir/install-sh"; then
3129 ac_install_sh="$ac_aux_dir/install-sh -c"
3131 elif test -f "$ac_dir/install.sh"; then
3133 ac_install_sh="$ac_aux_dir/install.sh -c"
3135 elif test -f "$ac_dir/shtool"; then
3137 ac_install_sh="$ac_aux_dir/shtool install -c"
3141 if test -z "$ac_aux_dir"; then
3142 as_fn_error $? "cannot find install-sh, install.sh, or shtool in build-aux \"$srcdir\"/build-aux" "$LINENO" 5
3145 # These three variables are undocumented and unsupported,
3146 # and are intended to be withdrawn in a future Autoconf release.
3147 # They can cause serious problems if a builder's source tree is in a directory
3148 # whose full name contains unusual characters.
3149 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3150 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3151 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3155 ac_config_headers="$ac_config_headers src/config.h"
3161 # We have to enable "foreign" because ChangeLog is auto-generated
3162 # Automake 1.15 and gnulib don't get along: gnulib has some strange error
3163 # in the way it handles getloadavg.c which causes make distcheck to fail.
3164 # http://lists.gnu.org/archive/html/bug-gnulib/2018-06/msg00024.html
3165 am__api_version='1.16'
3167 # Find a good install program. We prefer a C program (faster),
3168 # so one script is as good as another. But avoid the broken or
3169 # incompatible versions:
3170 # SysV /etc/install, /usr/sbin/install
3171 # SunOS /usr/etc/install
3172 # IRIX /sbin/install
3174 # AmigaOS /C/install, which installs bootblocks on floppy discs
3175 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3176 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3177 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3178 # OS/2's system install, which has a completely different semantic
3179 # ./install, which can be erroneously created by make from ./install.sh.
3180 # Reject install programs that cannot install multiple files.
3181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3182 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3183 if test -z "$INSTALL"; then
3184 if ${ac_cv_path_install+:} false; then :
3185 $as_echo_n "(cached) " >&6
3187 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3191 test -z "$as_dir" && as_dir=.
3192 # Account for people who put trailing slashes in PATH elements.
3193 case $as_dir/ in #((
3194 ./ | .// | /[cC]/* | \
3195 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3196 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3199 # OSF1 and SCO ODT 3.0 have their own names for install.
3200 # Don't use installbsd from OSF since it installs stuff as root
3202 for ac_prog in ginstall scoinst install; do
3203 for ac_exec_ext in '' $ac_executable_extensions; do
3204 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3205 if test $ac_prog = install &&
3206 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3207 # AIX install. It has an incompatible calling convention.
3209 elif test $ac_prog = install &&
3210 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3211 # program-specific install script used by HP pwplus--don't use.
3214 rm -rf conftest.one conftest.two conftest.dir
3215 echo one > conftest.one
3216 echo two > conftest.two
3218 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3219 test -s conftest.one && test -s conftest.two &&
3220 test -s conftest.dir/conftest.one &&
3221 test -s conftest.dir/conftest.two
3223 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3236 rm -rf conftest.one conftest.two conftest.dir
3239 if test "${ac_cv_path_install+set}" = set; then
3240 INSTALL=$ac_cv_path_install
3242 # As a last resort, use the slow shell script. Don't cache a
3243 # value for INSTALL within a source directory, because that will
3244 # break other packages using the cache if that directory is
3245 # removed, or if the value is a relative name.
3246 INSTALL=$ac_install_sh
3249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3250 $as_echo "$INSTALL" >&6; }
3252 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3253 # It thinks the first close brace ends the variable substitution.
3254 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3256 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3258 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3261 $as_echo_n "checking whether build environment is sane... " >&6; }
3262 # Reject unsafe characters in $srcdir or the absolute working directory
3263 # name. Accept space and tab only in the latter.
3267 *[\\\"\#\$\&\'\`$am_lf]*)
3268 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
3271 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
3272 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
3275 # Do 'set' in a subshell so we don't clobber the current shell's
3276 # arguments. Must try -L first in case configure is actually a
3277 # symlink; some systems play weird games with the mod time of symlinks
3278 # (eg FreeBSD returns the mod time of the symlink's containing
3282 for am_try in 1 2; do
3283 echo "timestamp, slept: $am_has_slept" > conftest.file
3284 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3285 if test "$*" = "X"; then
3287 set X `ls -t "$srcdir/configure" conftest.file`
3289 if test "$*" != "X $srcdir/configure conftest.file" \
3290 && test "$*" != "X conftest.file $srcdir/configure"; then
3292 # If neither matched, then we have a broken ls. This can happen
3293 # if, for instance, CONFIG_SHELL is bash and it inherits a
3294 # broken ls alias from the environment. This has actually
3295 # happened. Such a system could not be considered "sane".
3296 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
3297 alias in your environment" "$LINENO" 5
3299 if test "$2" = conftest.file || test $am_try -eq 2; then
3306 test "$2" = conftest.file
3312 as_fn_error $? "newly created file is older than distributed files!
3313 Check your system clock" "$LINENO" 5
3315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3316 $as_echo "yes" >&6; }
3317 # If we didn't sleep, we still need to ensure time stamps of config.status and
3318 # generated files are strictly newer.
3320 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
3327 test "$program_prefix" != NONE &&
3328 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3329 # Use a double $ so make ignores it.
3330 test "$program_suffix" != NONE &&
3331 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3332 # Double any \ or $.
3333 # By default was `s,x,x', remove it if useless.
3334 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3335 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3337 # Expand $ac_aux_dir to an absolute path.
3338 am_aux_dir=`cd "$ac_aux_dir" && pwd`
3340 if test x"${MISSING+set}" != xset; then
3343 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3345 MISSING="\${SHELL} $am_aux_dir/missing" ;;
3348 # Use eval to expand $SHELL
3349 if eval "$MISSING --is-lightweight"; then
3350 am_missing_run="$MISSING "
3353 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
3354 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
3357 if test x"${install_sh+set}" != xset; then
3360 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3362 install_sh="\${SHELL} $am_aux_dir/install-sh"
3366 # Installed binaries are usually stripped using 'strip' when the user
3367 # run "make install-strip". However 'strip' might not be the right
3368 # tool to use in cross-compilation environments, therefore Automake
3369 # will honor the 'STRIP' environment variable to overrule this program.
3370 if test "$cross_compiling" != no; then
3371 if test -n "$ac_tool_prefix"; then
3372 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3373 set dummy ${ac_tool_prefix}strip; ac_word=$2
3374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3375 $as_echo_n "checking for $ac_word... " >&6; }
3376 if ${ac_cv_prog_STRIP+:} false; then :
3377 $as_echo_n "(cached) " >&6
3379 if test -n "$STRIP"; then
3380 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3382 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3386 test -z "$as_dir" && as_dir=.
3387 for ac_exec_ext in '' $ac_executable_extensions; do
3388 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3389 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3390 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3399 STRIP=$ac_cv_prog_STRIP
3400 if test -n "$STRIP"; then
3401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3402 $as_echo "$STRIP" >&6; }
3404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3405 $as_echo "no" >&6; }
3410 if test -z "$ac_cv_prog_STRIP"; then
3412 # Extract the first word of "strip", so it can be a program name with args.
3413 set dummy strip; ac_word=$2
3414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3415 $as_echo_n "checking for $ac_word... " >&6; }
3416 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
3417 $as_echo_n "(cached) " >&6
3419 if test -n "$ac_ct_STRIP"; then
3420 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3422 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3426 test -z "$as_dir" && as_dir=.
3427 for ac_exec_ext in '' $ac_executable_extensions; do
3428 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3429 ac_cv_prog_ac_ct_STRIP="strip"
3430 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3439 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3440 if test -n "$ac_ct_STRIP"; then
3441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3442 $as_echo "$ac_ct_STRIP" >&6; }
3444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3445 $as_echo "no" >&6; }
3448 if test "x$ac_ct_STRIP" = x; then
3451 case $cross_compiling:$ac_tool_warned in
3453 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3454 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3455 ac_tool_warned=yes ;;
3460 STRIP="$ac_cv_prog_STRIP"
3464 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3467 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3468 if test -z "$MKDIR_P"; then
3469 if ${ac_cv_path_mkdir+:} false; then :
3470 $as_echo_n "(cached) " >&6
3472 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3473 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3476 test -z "$as_dir" && as_dir=.
3477 for ac_prog in mkdir gmkdir; do
3478 for ac_exec_ext in '' $ac_executable_extensions; do
3479 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
3480 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3481 'mkdir (GNU coreutils) '* | \
3482 'mkdir (coreutils) '* | \
3483 'mkdir (fileutils) '4.1*)
3484 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3494 test -d ./--version && rmdir ./--version
3495 if test "${ac_cv_path_mkdir+set}" = set; then
3496 MKDIR_P="$ac_cv_path_mkdir -p"
3498 # As a last resort, use the slow shell script. Don't cache a
3499 # value for MKDIR_P within a source directory, because that will
3500 # break other packages using the cache if that directory is
3501 # removed, or if the value is a relative name.
3502 MKDIR_P="$ac_install_sh -d"
3505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3506 $as_echo "$MKDIR_P" >&6; }
3508 for ac_prog in gawk mawk nawk awk
3510 # Extract the first word of "$ac_prog", so it can be a program name with args.
3511 set dummy $ac_prog; ac_word=$2
3512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3513 $as_echo_n "checking for $ac_word... " >&6; }
3514 if ${ac_cv_prog_AWK+:} false; then :
3515 $as_echo_n "(cached) " >&6
3517 if test -n "$AWK"; then
3518 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3520 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3524 test -z "$as_dir" && as_dir=.
3525 for ac_exec_ext in '' $ac_executable_extensions; do
3526 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3527 ac_cv_prog_AWK="$ac_prog"
3528 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3538 if test -n "$AWK"; then
3539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3540 $as_echo "$AWK" >&6; }
3542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3543 $as_echo "no" >&6; }
3547 test -n "$AWK" && break
3550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3551 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3553 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3554 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3555 $as_echo_n "(cached) " >&6
3557 cat >conftest.make <<\_ACEOF
3560 @echo '@@@%%%=$(MAKE)=@@@%%%'
3562 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3563 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3565 eval ac_cv_prog_make_${ac_make}_set=yes;;
3567 eval ac_cv_prog_make_${ac_make}_set=no;;
3571 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3573 $as_echo "yes" >&6; }
3576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3577 $as_echo "no" >&6; }
3578 SET_MAKE="MAKE=${MAKE-make}"
3581 rm -rf .tst 2>/dev/null
3582 mkdir .tst 2>/dev/null
3583 if test -d .tst; then
3588 rmdir .tst 2>/dev/null
3590 # Check whether --enable-silent-rules was given.
3591 if test "${enable_silent_rules+set}" = set; then :
3592 enableval=$enable_silent_rules;
3595 case $enable_silent_rules in # (((
3596 yes) AM_DEFAULT_VERBOSITY=0;;
3597 no) AM_DEFAULT_VERBOSITY=1;;
3598 *) AM_DEFAULT_VERBOSITY=1;;
3600 am_make=${MAKE-make}
3601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3602 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3603 if ${am_cv_make_support_nested_variables+:} false; then :
3604 $as_echo_n "(cached) " >&6
3606 if $as_echo 'TRUE=$(BAR$(V))
3612 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3613 am_cv_make_support_nested_variables=yes
3615 am_cv_make_support_nested_variables=no
3618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3619 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3620 if test $am_cv_make_support_nested_variables = yes; then
3622 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3624 AM_V=$AM_DEFAULT_VERBOSITY
3625 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3629 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3630 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3631 # is not polluted with repeated "-I."
3632 am__isrc=' -I$(srcdir)'
3633 # test to see if srcdir already configured
3634 if test -f $srcdir/config.status; then
3635 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3639 # test whether we have cygpath
3640 if test -z "$CYGPATH_W"; then
3641 if (cygpath --version) >/dev/null 2>/dev/null; then
3642 CYGPATH_W='cygpath -w'
3649 # Define the identity of the package.
3654 cat >>confdefs.h <<_ACEOF
3655 #define PACKAGE "$PACKAGE"
3659 cat >>confdefs.h <<_ACEOF
3660 #define VERSION "$VERSION"
3663 # Some tools Automake needs.
3665 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3668 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3671 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3674 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3677 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3679 # For better backward compatibility. To be removed once Automake 1.9.x
3680 # dies out for good. For more background, see:
3681 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3682 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3683 mkdir_p='$(MKDIR_P)'
3685 # We need awk for the "check" target (and possibly the TAP driver). The
3686 # system "awk" is bad on some platforms.
3687 # Always define AMTAR for backward compatibility. Yes, it's still used
3688 # in the wild :-( We should find a proper way to deprecate it ...
3692 # We'll loop over all known methods to create a tar archive until one works.
3693 _am_tools='gnutar pax cpio none'
3695 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3702 # POSIX will say in a future version that running "rm -f" with no argument
3703 # is OK; and we want to be able to make that assumption in our Makefile
3704 # recipes. So use an aggressive probe to check that the usage we want is
3705 # actually supported "in the wild" to an acceptable degree.
3706 # See automake bug#10828.
3707 # To make any issue more visible, cause the running configure to be aborted
3708 # by default if the 'rm' program in use doesn't match our expectations; the
3709 # user can still override this though.
3710 if rm -f && rm -fr && rm -rf; then : OK; else
3714 Your 'rm' program seems unable to run without file operands specified
3715 on the command line, even when the '-f' option is present. This is contrary
3716 to the behaviour of most rm programs out there, and not conforming with
3717 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3719 Please tell bug-automake@gnu.org about your system, including the value
3720 of your $PATH and any error possibly output before this message. This
3721 can help us improve future automake versions.
3724 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3725 echo 'Configuration will proceed anyway, since you have set the' >&2
3726 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3730 Aborting the configuration process, to ensure you take notice of the issue.
3732 You can download and install GNU coreutils to get an 'rm' implementation
3733 that behaves properly: <https://www.gnu.org/software/coreutils/>.
3735 If you want to complete the configuration process using your problematic
3736 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3737 to "yes", and re-run configure.
3740 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3745 # Checks for programs.
3746 DEPDIR="${am__leading_dot}deps"
3748 ac_config_commands="$ac_config_commands depfiles"
3750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
3751 $as_echo_n "checking whether ${MAKE-make} supports the include directive... " >&6; }
3752 cat > confinc.mk << 'END'
3754 @echo this is the am__doit target >confinc.out
3759 # BSD make does it like this.
3760 echo '.include "confinc.mk" # ignored' > confmf.BSD
3761 # Other make implementations (GNU, Solaris 10, AIX) do it like this.
3762 echo 'include confinc.mk # ignored' > confmf.GNU
3764 for s in GNU BSD; do
3765 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
3766 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
3768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3769 (exit $ac_status); }
3770 case $?:`cat confinc.out 2>/dev/null` in #(
3771 '0:this is the am__doit target') :
3774 am__include='.include' am__quote='"' ;; #(
3776 am__include='include' am__quote='' ;;
3781 if test "$am__include" != "#"; then
3782 _am_result="yes ($s style)"
3786 rm -f confinc.* confmf.*
3787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
3788 $as_echo "${_am_result}" >&6; }
3790 # Check whether --enable-dependency-tracking was given.
3791 if test "${enable_dependency_tracking+set}" = set; then :
3792 enableval=$enable_dependency_tracking;
3795 if test "x$enable_dependency_tracking" != xno; then
3796 am_depcomp="$ac_aux_dir/depcomp"
3800 if test "x$enable_dependency_tracking" != xno; then
3810 ac_cpp='$CPP $CPPFLAGS'
3811 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3812 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3813 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3814 if test -n "$ac_tool_prefix"; then
3815 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3816 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3818 $as_echo_n "checking for $ac_word... " >&6; }
3819 if ${ac_cv_prog_CC+:} false; then :
3820 $as_echo_n "(cached) " >&6
3822 if test -n "$CC"; then
3823 ac_cv_prog_CC="$CC" # Let the user override the test.
3825 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3829 test -z "$as_dir" && as_dir=.
3830 for ac_exec_ext in '' $ac_executable_extensions; do
3831 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3832 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3833 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3843 if test -n "$CC"; then
3844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3845 $as_echo "$CC" >&6; }
3847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3848 $as_echo "no" >&6; }
3853 if test -z "$ac_cv_prog_CC"; then
3855 # Extract the first word of "gcc", so it can be a program name with args.
3856 set dummy gcc; ac_word=$2
3857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3858 $as_echo_n "checking for $ac_word... " >&6; }
3859 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3860 $as_echo_n "(cached) " >&6
3862 if test -n "$ac_ct_CC"; then
3863 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3865 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3869 test -z "$as_dir" && as_dir=.
3870 for ac_exec_ext in '' $ac_executable_extensions; do
3871 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3872 ac_cv_prog_ac_ct_CC="gcc"
3873 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3882 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3883 if test -n "$ac_ct_CC"; then
3884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3885 $as_echo "$ac_ct_CC" >&6; }
3887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3888 $as_echo "no" >&6; }
3891 if test "x$ac_ct_CC" = x; then
3894 case $cross_compiling:$ac_tool_warned in
3896 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3897 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3898 ac_tool_warned=yes ;;
3906 if test -z "$CC"; then
3907 if test -n "$ac_tool_prefix"; then
3908 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3909 set dummy ${ac_tool_prefix}cc; ac_word=$2
3910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3911 $as_echo_n "checking for $ac_word... " >&6; }
3912 if ${ac_cv_prog_CC+:} false; then :
3913 $as_echo_n "(cached) " >&6
3915 if test -n "$CC"; then
3916 ac_cv_prog_CC="$CC" # Let the user override the test.
3918 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3922 test -z "$as_dir" && as_dir=.
3923 for ac_exec_ext in '' $ac_executable_extensions; do
3924 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3925 ac_cv_prog_CC="${ac_tool_prefix}cc"
3926 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3936 if test -n "$CC"; then
3937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3938 $as_echo "$CC" >&6; }
3940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3941 $as_echo "no" >&6; }
3947 if test -z "$CC"; then
3948 # Extract the first word of "cc", so it can be a program name with args.
3949 set dummy cc; ac_word=$2
3950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3951 $as_echo_n "checking for $ac_word... " >&6; }
3952 if ${ac_cv_prog_CC+:} false; then :
3953 $as_echo_n "(cached) " >&6
3955 if test -n "$CC"; then
3956 ac_cv_prog_CC="$CC" # Let the user override the test.
3959 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3963 test -z "$as_dir" && as_dir=.
3964 for ac_exec_ext in '' $ac_executable_extensions; do
3965 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3966 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3967 ac_prog_rejected=yes
3971 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3978 if test $ac_prog_rejected = yes; then
3979 # We found a bogon in the path, so make sure we never use it.
3980 set dummy $ac_cv_prog_CC
3982 if test $# != 0; then
3983 # We chose a different compiler from the bogus one.
3984 # However, it has the same basename, so the bogon will be chosen
3985 # first if we set CC to just the basename; use the full file name.
3987 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3993 if test -n "$CC"; then
3994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3995 $as_echo "$CC" >&6; }
3997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3998 $as_echo "no" >&6; }
4003 if test -z "$CC"; then
4004 if test -n "$ac_tool_prefix"; then
4005 for ac_prog in cl.exe
4007 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4008 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4010 $as_echo_n "checking for $ac_word... " >&6; }
4011 if ${ac_cv_prog_CC+:} false; then :
4012 $as_echo_n "(cached) " >&6
4014 if test -n "$CC"; then
4015 ac_cv_prog_CC="$CC" # Let the user override the test.
4017 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4021 test -z "$as_dir" && as_dir=.
4022 for ac_exec_ext in '' $ac_executable_extensions; do
4023 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4024 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4025 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4035 if test -n "$CC"; then
4036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4037 $as_echo "$CC" >&6; }
4039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4040 $as_echo "no" >&6; }
4044 test -n "$CC" && break
4047 if test -z "$CC"; then
4049 for ac_prog in cl.exe
4051 # Extract the first word of "$ac_prog", so it can be a program name with args.
4052 set dummy $ac_prog; ac_word=$2
4053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4054 $as_echo_n "checking for $ac_word... " >&6; }
4055 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4056 $as_echo_n "(cached) " >&6
4058 if test -n "$ac_ct_CC"; then
4059 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4061 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4065 test -z "$as_dir" && as_dir=.
4066 for ac_exec_ext in '' $ac_executable_extensions; do
4067 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4068 ac_cv_prog_ac_ct_CC="$ac_prog"
4069 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4078 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4079 if test -n "$ac_ct_CC"; then
4080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4081 $as_echo "$ac_ct_CC" >&6; }
4083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4084 $as_echo "no" >&6; }
4088 test -n "$ac_ct_CC" && break
4091 if test "x$ac_ct_CC" = x; then
4094 case $cross_compiling:$ac_tool_warned in
4096 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4097 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4098 ac_tool_warned=yes ;;
4107 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4108 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4109 as_fn_error $? "no acceptable C compiler found in \$PATH
4110 See \`config.log' for more details" "$LINENO" 5; }
4112 # Provide some information about the compiler.
4113 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4116 for ac_option in --version -v -V -qversion; do
4117 { { ac_try="$ac_compiler $ac_option >&5"
4119 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4120 *) ac_try_echo=$ac_try;;
4122 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4123 $as_echo "$ac_try_echo"; } >&5
4124 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4126 if test -s conftest.err; then
4128 ... rest of stderr output deleted ...
4129 10q' conftest.err >conftest.er1
4130 cat conftest.er1 >&5
4132 rm -f conftest.er1 conftest.err
4133 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4134 test $ac_status = 0; }
4137 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4138 /* end confdefs.h. */
4148 ac_clean_files_save=$ac_clean_files
4149 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4150 # Try to create an executable without -o first, disregard a.out.
4151 # It will help us diagnose broken compilers, and finding out an intuition
4153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4154 $as_echo_n "checking whether the C compiler works... " >&6; }
4155 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4157 # The possible output files:
4158 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4161 for ac_file in $ac_files
4164 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4165 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4170 if { { ac_try="$ac_link_default"
4172 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4173 *) ac_try_echo=$ac_try;;
4175 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4176 $as_echo "$ac_try_echo"; } >&5
4177 (eval "$ac_link_default") 2>&5
4179 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4180 test $ac_status = 0; }; then :
4181 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4182 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4183 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4184 # so that the user can short-circuit this test for compilers unknown to
4186 for ac_file in $ac_files ''
4188 test -f "$ac_file" || continue
4190 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4193 # We found the default executable, but exeext='' is most
4197 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4199 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4201 # We set ac_cv_exeext here because the later test for it is not
4202 # safe: cross compilers may not add the suffix if given an `-o'
4203 # argument, so we may need to know it at that point already.
4204 # Even if this section looks crufty: it has the advantage of
4211 test "$ac_cv_exeext" = no && ac_cv_exeext=
4216 if test -z "$ac_file"; then :
4217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4218 $as_echo "no" >&6; }
4219 $as_echo "$as_me: failed program was:" >&5
4220 sed 's/^/| /' conftest.$ac_ext >&5
4222 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4223 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4224 as_fn_error 77 "C compiler cannot create executables
4225 See \`config.log' for more details" "$LINENO" 5; }
4227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4228 $as_echo "yes" >&6; }
4230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4231 $as_echo_n "checking for C compiler default output file name... " >&6; }
4232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4233 $as_echo "$ac_file" >&6; }
4234 ac_exeext=$ac_cv_exeext
4236 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4237 ac_clean_files=$ac_clean_files_save
4238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4239 $as_echo_n "checking for suffix of executables... " >&6; }
4240 if { { ac_try="$ac_link"
4242 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4243 *) ac_try_echo=$ac_try;;
4245 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4246 $as_echo "$ac_try_echo"; } >&5
4247 (eval "$ac_link") 2>&5
4249 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4250 test $ac_status = 0; }; then :
4251 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4252 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4253 # work properly (i.e., refer to `conftest.exe'), while it won't with
4255 for ac_file in conftest.exe conftest conftest.*; do
4256 test -f "$ac_file" || continue
4258 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4259 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4265 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4266 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4267 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4268 See \`config.log' for more details" "$LINENO" 5; }
4270 rm -f conftest conftest$ac_cv_exeext
4271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4272 $as_echo "$ac_cv_exeext" >&6; }
4274 rm -f conftest.$ac_ext
4275 EXEEXT=$ac_cv_exeext
4277 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4278 /* end confdefs.h. */
4283 FILE *f = fopen ("conftest.out", "w");
4284 return ferror (f) || fclose (f) != 0;
4290 ac_clean_files="$ac_clean_files conftest.out"
4291 # Check that the compiler produces executables we can run. If not, either
4292 # the compiler is broken, or we cross compile.
4293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4294 $as_echo_n "checking whether we are cross compiling... " >&6; }
4295 if test "$cross_compiling" != yes; then
4296 { { ac_try="$ac_link"
4298 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4299 *) ac_try_echo=$ac_try;;
4301 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4302 $as_echo "$ac_try_echo"; } >&5
4303 (eval "$ac_link") 2>&5
4305 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4306 test $ac_status = 0; }
4307 if { ac_try='./conftest$ac_cv_exeext'
4308 { { case "(($ac_try" in
4309 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4310 *) ac_try_echo=$ac_try;;
4312 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4313 $as_echo "$ac_try_echo"; } >&5
4314 (eval "$ac_try") 2>&5
4316 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4317 test $ac_status = 0; }; }; then
4320 if test "$cross_compiling" = maybe; then
4323 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4324 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4325 as_fn_error $? "cannot run C compiled programs.
4326 If you meant to cross compile, use \`--host'.
4327 See \`config.log' for more details" "$LINENO" 5; }
4331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4332 $as_echo "$cross_compiling" >&6; }
4334 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4335 ac_clean_files=$ac_clean_files_save
4336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4337 $as_echo_n "checking for suffix of object files... " >&6; }
4338 if ${ac_cv_objext+:} false; then :
4339 $as_echo_n "(cached) " >&6
4341 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4342 /* end confdefs.h. */
4352 rm -f conftest.o conftest.obj
4353 if { { ac_try="$ac_compile"
4355 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4356 *) ac_try_echo=$ac_try;;
4358 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4359 $as_echo "$ac_try_echo"; } >&5
4360 (eval "$ac_compile") 2>&5
4362 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4363 test $ac_status = 0; }; then :
4364 for ac_file in conftest.o conftest.obj conftest.*; do
4365 test -f "$ac_file" || continue;
4367 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4368 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4373 $as_echo "$as_me: failed program was:" >&5
4374 sed 's/^/| /' conftest.$ac_ext >&5
4376 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4377 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4378 as_fn_error $? "cannot compute suffix of object files: cannot compile
4379 See \`config.log' for more details" "$LINENO" 5; }
4381 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4384 $as_echo "$ac_cv_objext" >&6; }
4385 OBJEXT=$ac_cv_objext
4387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4388 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4389 if ${ac_cv_c_compiler_gnu+:} false; then :
4390 $as_echo_n "(cached) " >&6
4392 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4393 /* end confdefs.h. */
4406 if ac_fn_c_try_compile "$LINENO"; then :
4411 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4412 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4416 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4417 if test $ac_compiler_gnu = yes; then
4422 ac_test_CFLAGS=${CFLAGS+set}
4423 ac_save_CFLAGS=$CFLAGS
4424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4425 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4426 if ${ac_cv_prog_cc_g+:} false; then :
4427 $as_echo_n "(cached) " >&6
4429 ac_save_c_werror_flag=$ac_c_werror_flag
4430 ac_c_werror_flag=yes
4433 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4434 /* end confdefs.h. */
4444 if ac_fn_c_try_compile "$LINENO"; then :
4448 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4449 /* end confdefs.h. */
4459 if ac_fn_c_try_compile "$LINENO"; then :
4462 ac_c_werror_flag=$ac_save_c_werror_flag
4464 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4465 /* end confdefs.h. */
4475 if ac_fn_c_try_compile "$LINENO"; then :
4478 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4480 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4482 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4483 ac_c_werror_flag=$ac_save_c_werror_flag
4485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4486 $as_echo "$ac_cv_prog_cc_g" >&6; }
4487 if test "$ac_test_CFLAGS" = set; then
4488 CFLAGS=$ac_save_CFLAGS
4489 elif test $ac_cv_prog_cc_g = yes; then
4490 if test "$GCC" = yes; then
4496 if test "$GCC" = yes; then
4502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4503 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4504 if ${ac_cv_prog_cc_c89+:} false; then :
4505 $as_echo_n "(cached) " >&6
4507 ac_cv_prog_cc_c89=no
4509 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4510 /* end confdefs.h. */
4514 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4515 struct buf { int x; };
4516 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4517 static char *e (p, i)
4523 static char *f (char * (*g) (char **, int), char **p, ...)
4528 s = g (p, va_arg (v,int));
4533 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4534 function prototypes and stuff, but not '\xHH' hex character constants.
4535 These don't provoke an error unfortunately, instead are silently treated
4536 as 'x'. The following induces an error, until -std is added to get
4537 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4538 array size at least. It's necessary to write '\x00'==0 to get something
4539 that's true only with -std. */
4540 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4542 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4543 inside strings and character constants. */
4545 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4547 int test (int i, double x);
4548 struct s1 {int (*f) (int a);};
4549 struct s2 {int (*f) (double a);};
4550 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4556 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4561 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4562 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4564 CC="$ac_save_CC $ac_arg"
4565 if ac_fn_c_try_compile "$LINENO"; then :
4566 ac_cv_prog_cc_c89=$ac_arg
4568 rm -f core conftest.err conftest.$ac_objext
4569 test "x$ac_cv_prog_cc_c89" != "xno" && break
4571 rm -f conftest.$ac_ext
4576 case "x$ac_cv_prog_cc_c89" in
4578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4579 $as_echo "none needed" >&6; } ;;
4581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4582 $as_echo "unsupported" >&6; } ;;
4584 CC="$CC $ac_cv_prog_cc_c89"
4585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4586 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4588 if test "x$ac_cv_prog_cc_c89" != xno; then :
4593 ac_cpp='$CPP $CPPFLAGS'
4594 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4595 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4596 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4599 ac_cpp='$CPP $CPPFLAGS'
4600 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4601 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4602 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4604 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4605 if ${am_cv_prog_cc_c_o+:} false; then :
4606 $as_echo_n "(cached) " >&6
4608 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4609 /* end confdefs.h. */
4619 # Make sure it works both with $CC and with simple cc.
4620 # Following AC_PROG_CC_C_O, we do the test twice because some
4621 # compilers refuse to overwrite an existing .o file with -o,
4622 # though they will create one.
4623 am_cv_prog_cc_c_o=yes
4625 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4626 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4629 (exit $ac_status); } \
4630 && test -f conftest2.$ac_objext; then
4633 am_cv_prog_cc_c_o=no
4637 rm -f core conftest*
4640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4641 $as_echo "$am_cv_prog_cc_c_o" >&6; }
4642 if test "$am_cv_prog_cc_c_o" != yes; then
4643 # Losing compiler, so override with the script.
4644 # FIXME: It is wrong to rewrite CC.
4645 # But if we don't then we get into trouble of one sort or another.
4646 # A longer-term fix would be to have automake use am__CC in this case,
4647 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4648 CC="$am_aux_dir/compile $CC"
4651 ac_cpp='$CPP $CPPFLAGS'
4652 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4653 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4654 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4657 depcc="$CC" am_compiler_list=
4659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4660 $as_echo_n "checking dependency style of $depcc... " >&6; }
4661 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4662 $as_echo_n "(cached) " >&6
4664 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4665 # We make a subdir and do the tests there. Otherwise we can end up
4666 # making bogus files that we don't know about and never remove. For
4667 # instance it was reported that on HP-UX the gcc test will end up
4668 # making a dummy file named 'D' -- because '-MD' means "put the output
4672 # Copy depcomp to subdir because otherwise we won't find it if we're
4673 # using a relative directory.
4674 cp "$am_depcomp" conftest.dir
4676 # We will build objects and dependencies in a subdirectory because
4677 # it helps to detect inapplicable dependency modes. For instance
4678 # both Tru64's cc and ICC support -MD to output dependencies as a
4679 # side effect of compilation, but ICC will put the dependencies in
4680 # the current directory while Tru64 will put them in the object
4684 am_cv_CC_dependencies_compiler_type=none
4685 if test "$am_compiler_list" = ""; then
4686 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4689 case " $depcc " in #(
4690 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4693 for depmode in $am_compiler_list; do
4694 # Setup a source with many dependencies, because some compilers
4695 # like to wrap large dependency lists on column 80 (with \), and
4696 # we should not choose a depcomp mode which is confused by this.
4698 # We need to recreate these files for each test, as the compiler may
4699 # overwrite some of them when testing with obscure command lines.
4700 # This happens at least with the AIX C compiler.
4702 for i in 1 2 3 4 5 6; do
4703 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4704 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4705 # Solaris 10 /bin/sh.
4706 echo '/* dummy */' > sub/conftst$i.h
4708 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4710 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4711 # mode. It turns out that the SunPro C++ compiler does not properly
4712 # handle '-M -o', and we need to detect this. Also, some Intel
4713 # versions had trouble with output in subdirs.
4714 am__obj=sub/conftest.${OBJEXT-o}
4715 am__minus_obj="-o $am__obj"
4718 # This depmode causes a compiler race in universal mode.
4719 test "$am__universal" = false || continue
4722 # After this tag, mechanisms are not by side-effect, so they'll
4723 # only be used when explicitly requested.
4724 if test "x$enable_dependency_tracking" = xyes; then
4730 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4731 # This compiler won't grok '-c -o', but also, the minuso test has
4732 # not run yet. These depmodes are late enough in the game, and
4733 # so weak that their functioning should not be impacted.
4734 am__obj=conftest.${OBJEXT-o}
4739 if depmode=$depmode \
4740 source=sub/conftest.c object=$am__obj \
4741 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4742 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4743 >/dev/null 2>conftest.err &&
4744 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4745 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4746 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4747 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4748 # icc doesn't choke on unknown options, it will just issue warnings
4749 # or remarks (even with -Werror). So we grep stderr for any message
4750 # that says an option was ignored or not supported.
4751 # When given -MP, icc 7.0 and 7.1 complain thusly:
4752 # icc: Command line warning: ignoring option '-M'; no argument required
4753 # The diagnosis changed in icc 8.0:
4754 # icc: Command line remark: option '-MP' not supported
4755 if (grep 'ignoring option' conftest.err ||
4756 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4757 am_cv_CC_dependencies_compiler_type=$depmode
4766 am_cv_CC_dependencies_compiler_type=none
4770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4771 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4772 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4775 test "x$enable_dependency_tracking" != xno \
4776 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4778 am__fastdepCC_FALSE='#'
4780 am__fastdepCC_TRUE='#'
4781 am__fastdepCC_FALSE=
4787 ac_cpp='$CPP $CPPFLAGS'
4788 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4789 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4790 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4792 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4793 # On Suns, sometimes $CPP names a directory.
4794 if test -n "$CPP" && test -d "$CPP"; then
4797 if test -z "$CPP"; then
4798 if ${ac_cv_prog_CPP+:} false; then :
4799 $as_echo_n "(cached) " >&6
4801 # Double quotes because CPP needs to be expanded
4802 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4805 for ac_c_preproc_warn_flag in '' yes
4807 # Use a header file that comes with gcc, so configuring glibc
4808 # with a fresh cross-compiler works.
4809 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4810 # <limits.h> exists even on freestanding compilers.
4811 # On the NeXT, cc -E runs the code through the compiler's parser,
4812 # not just through cpp. "Syntax error" is here to catch this case.
4813 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4814 /* end confdefs.h. */
4816 # include <limits.h>
4818 # include <assert.h>
4822 if ac_fn_c_try_cpp "$LINENO"; then :
4825 # Broken: fails on valid input.
4828 rm -f conftest.err conftest.i conftest.$ac_ext
4830 # OK, works on sane cases. Now check whether nonexistent headers
4831 # can be detected and how.
4832 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4833 /* end confdefs.h. */
4834 #include <ac_nonexistent.h>
4836 if ac_fn_c_try_cpp "$LINENO"; then :
4837 # Broken: success on invalid input.
4840 # Passes both tests.
4844 rm -f conftest.err conftest.i conftest.$ac_ext
4847 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4848 rm -f conftest.i conftest.err conftest.$ac_ext
4849 if $ac_preproc_ok; then :
4861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4862 $as_echo "$CPP" >&6; }
4864 for ac_c_preproc_warn_flag in '' yes
4866 # Use a header file that comes with gcc, so configuring glibc
4867 # with a fresh cross-compiler works.
4868 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4869 # <limits.h> exists even on freestanding compilers.
4870 # On the NeXT, cc -E runs the code through the compiler's parser,
4871 # not just through cpp. "Syntax error" is here to catch this case.
4872 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4873 /* end confdefs.h. */
4875 # include <limits.h>
4877 # include <assert.h>
4881 if ac_fn_c_try_cpp "$LINENO"; then :
4884 # Broken: fails on valid input.
4887 rm -f conftest.err conftest.i conftest.$ac_ext
4889 # OK, works on sane cases. Now check whether nonexistent headers
4890 # can be detected and how.
4891 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4892 /* end confdefs.h. */
4893 #include <ac_nonexistent.h>
4895 if ac_fn_c_try_cpp "$LINENO"; then :
4896 # Broken: success on invalid input.
4899 # Passes both tests.
4903 rm -f conftest.err conftest.i conftest.$ac_ext
4906 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4907 rm -f conftest.i conftest.err conftest.$ac_ext
4908 if $ac_preproc_ok; then :
4911 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4912 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4913 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4914 See \`config.log' for more details" "$LINENO" 5; }
4918 ac_cpp='$CPP $CPPFLAGS'
4919 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4920 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4921 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4925 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4926 if ${ac_cv_path_GREP+:} false; then :
4927 $as_echo_n "(cached) " >&6
4929 if test -z "$GREP"; then
4930 ac_path_GREP_found=false
4931 # Loop through the user's path and test for each of PROGNAME-LIST
4932 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4933 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4936 test -z "$as_dir" && as_dir=.
4937 for ac_prog in grep ggrep; do
4938 for ac_exec_ext in '' $ac_executable_extensions; do
4939 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4940 as_fn_executable_p "$ac_path_GREP" || continue
4941 # Check for GNU ac_path_GREP and select it if it is found.
4942 # Check for GNU $ac_path_GREP
4943 case `"$ac_path_GREP" --version 2>&1` in
4945 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4948 $as_echo_n 0123456789 >"conftest.in"
4951 cat "conftest.in" "conftest.in" >"conftest.tmp"
4952 mv "conftest.tmp" "conftest.in"
4953 cp "conftest.in" "conftest.nl"
4954 $as_echo 'GREP' >> "conftest.nl"
4955 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4956 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4957 as_fn_arith $ac_count + 1 && ac_count=$as_val
4958 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4959 # Best one so far, save it but keep looking for a better one
4960 ac_cv_path_GREP="$ac_path_GREP"
4961 ac_path_GREP_max=$ac_count
4963 # 10*(2^10) chars as input seems more than enough
4964 test $ac_count -gt 10 && break
4966 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4969 $ac_path_GREP_found && break 3
4974 if test -z "$ac_cv_path_GREP"; then
4975 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4978 ac_cv_path_GREP=$GREP
4982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4983 $as_echo "$ac_cv_path_GREP" >&6; }
4984 GREP="$ac_cv_path_GREP"
4987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4988 $as_echo_n "checking for egrep... " >&6; }
4989 if ${ac_cv_path_EGREP+:} false; then :
4990 $as_echo_n "(cached) " >&6
4992 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4993 then ac_cv_path_EGREP="$GREP -E"
4995 if test -z "$EGREP"; then
4996 ac_path_EGREP_found=false
4997 # Loop through the user's path and test for each of PROGNAME-LIST
4998 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4999 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5002 test -z "$as_dir" && as_dir=.
5003 for ac_prog in egrep; do
5004 for ac_exec_ext in '' $ac_executable_extensions; do
5005 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5006 as_fn_executable_p "$ac_path_EGREP" || continue
5007 # Check for GNU ac_path_EGREP and select it if it is found.
5008 # Check for GNU $ac_path_EGREP
5009 case `"$ac_path_EGREP" --version 2>&1` in
5011 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5014 $as_echo_n 0123456789 >"conftest.in"
5017 cat "conftest.in" "conftest.in" >"conftest.tmp"
5018 mv "conftest.tmp" "conftest.in"
5019 cp "conftest.in" "conftest.nl"
5020 $as_echo 'EGREP' >> "conftest.nl"
5021 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5022 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5023 as_fn_arith $ac_count + 1 && ac_count=$as_val
5024 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5025 # Best one so far, save it but keep looking for a better one
5026 ac_cv_path_EGREP="$ac_path_EGREP"
5027 ac_path_EGREP_max=$ac_count
5029 # 10*(2^10) chars as input seems more than enough
5030 test $ac_count -gt 10 && break
5032 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5035 $ac_path_EGREP_found && break 3
5040 if test -z "$ac_cv_path_EGREP"; then
5041 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5044 ac_cv_path_EGREP=$EGREP
5049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5050 $as_echo "$ac_cv_path_EGREP" >&6; }
5051 EGREP="$ac_cv_path_EGREP"
5054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5055 $as_echo_n "checking for ANSI C header files... " >&6; }
5056 if ${ac_cv_header_stdc+:} false; then :
5057 $as_echo_n "(cached) " >&6
5059 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5060 /* end confdefs.h. */
5074 if ac_fn_c_try_compile "$LINENO"; then :
5075 ac_cv_header_stdc=yes
5077 ac_cv_header_stdc=no
5079 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5081 if test $ac_cv_header_stdc = yes; then
5082 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5083 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5084 /* end confdefs.h. */
5088 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5089 $EGREP "memchr" >/dev/null 2>&1; then :
5092 ac_cv_header_stdc=no
5098 if test $ac_cv_header_stdc = yes; then
5099 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5100 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5101 /* end confdefs.h. */
5105 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5106 $EGREP "free" >/dev/null 2>&1; then :
5109 ac_cv_header_stdc=no
5115 if test $ac_cv_header_stdc = yes; then
5116 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5117 if test "$cross_compiling" = yes; then :
5120 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5121 /* end confdefs.h. */
5124 #if ((' ' & 0x0FF) == 0x020)
5125 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5126 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5128 # define ISLOWER(c) \
5129 (('a' <= (c) && (c) <= 'i') \
5130 || ('j' <= (c) && (c) <= 'r') \
5131 || ('s' <= (c) && (c) <= 'z'))
5132 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5135 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5140 for (i = 0; i < 256; i++)
5141 if (XOR (islower (i), ISLOWER (i))
5142 || toupper (i) != TOUPPER (i))
5147 if ac_fn_c_try_run "$LINENO"; then :
5150 ac_cv_header_stdc=no
5152 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5153 conftest.$ac_objext conftest.beam conftest.$ac_ext
5158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5159 $as_echo "$ac_cv_header_stdc" >&6; }
5160 if test $ac_cv_header_stdc = yes; then
5162 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5166 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5167 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5168 inttypes.h stdint.h unistd.h
5170 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5171 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5173 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5174 cat >>confdefs.h <<_ACEOF
5175 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5184 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
5185 if test "x$ac_cv_header_minix_config_h" = xyes; then :
5192 if test "$MINIX" = yes; then
5194 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5197 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5200 $as_echo "#define _MINIX 1" >>confdefs.h
5203 $as_echo "#define _NETBSD_SOURCE 1" >>confdefs.h
5208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5209 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5210 if ${ac_cv_safe_to_define___extensions__+:} false; then :
5211 $as_echo_n "(cached) " >&6
5213 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5214 /* end confdefs.h. */
5216 # define __EXTENSIONS__ 1
5217 $ac_includes_default
5226 if ac_fn_c_try_compile "$LINENO"; then :
5227 ac_cv_safe_to_define___extensions__=yes
5229 ac_cv_safe_to_define___extensions__=no
5231 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5234 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5235 test $ac_cv_safe_to_define___extensions__ = yes &&
5236 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5238 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5240 $as_echo "#define _DARWIN_C_SOURCE 1" >>confdefs.h
5242 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5244 $as_echo "#define _NETBSD_SOURCE 1" >>confdefs.h
5246 $as_echo "#define _OPENBSD_SOURCE 1" >>confdefs.h
5248 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5250 $as_echo "#define __STDC_WANT_IEC_60559_ATTRIBS_EXT__ 1" >>confdefs.h
5252 $as_echo "#define __STDC_WANT_IEC_60559_BFP_EXT__ 1" >>confdefs.h
5254 $as_echo "#define __STDC_WANT_IEC_60559_DFP_EXT__ 1" >>confdefs.h
5256 $as_echo "#define __STDC_WANT_IEC_60559_FUNCS_EXT__ 1" >>confdefs.h
5258 $as_echo "#define __STDC_WANT_IEC_60559_TYPES_EXT__ 1" >>confdefs.h
5260 $as_echo "#define __STDC_WANT_LIB_EXT2__ 1" >>confdefs.h
5262 $as_echo "#define __STDC_WANT_MATH_SPEC_FUNCS__ 1" >>confdefs.h
5264 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether _XOPEN_SOURCE should be defined" >&5
5267 $as_echo_n "checking whether _XOPEN_SOURCE should be defined... " >&6; }
5268 if ${ac_cv_should_define__xopen_source+:} false; then :
5269 $as_echo_n "(cached) " >&6
5271 ac_cv_should_define__xopen_source=no
5272 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5273 /* end confdefs.h. */
5285 if ac_fn_c_try_compile "$LINENO"; then :
5288 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5289 /* end confdefs.h. */
5291 #define _XOPEN_SOURCE 500
5302 if ac_fn_c_try_compile "$LINENO"; then :
5303 ac_cv_should_define__xopen_source=yes
5305 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5307 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_should_define__xopen_source" >&5
5310 $as_echo "$ac_cv_should_define__xopen_source" >&6; }
5311 test $ac_cv_should_define__xopen_source = yes &&
5312 $as_echo "#define _XOPEN_SOURCE 500" >>confdefs.h
5314 $as_echo "#define _HPUX_ALT_XOPEN_SOCKET_API 1" >>confdefs.h
5318 ac_cpp='$CPP $CPPFLAGS'
5319 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5320 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5321 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5322 if test -n "$ac_tool_prefix"; then
5323 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
5324 set dummy ${ac_tool_prefix}gcc; ac_word=$2
5325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5326 $as_echo_n "checking for $ac_word... " >&6; }
5327 if ${ac_cv_prog_CC+:} false; then :
5328 $as_echo_n "(cached) " >&6
5330 if test -n "$CC"; then
5331 ac_cv_prog_CC="$CC" # Let the user override the test.
5333 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5337 test -z "$as_dir" && as_dir=.
5338 for ac_exec_ext in '' $ac_executable_extensions; do
5339 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5340 ac_cv_prog_CC="${ac_tool_prefix}gcc"
5341 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5351 if test -n "$CC"; then
5352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5353 $as_echo "$CC" >&6; }
5355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5356 $as_echo "no" >&6; }
5361 if test -z "$ac_cv_prog_CC"; then
5363 # Extract the first word of "gcc", so it can be a program name with args.
5364 set dummy gcc; ac_word=$2
5365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5366 $as_echo_n "checking for $ac_word... " >&6; }
5367 if ${ac_cv_prog_ac_ct_CC+:} false; then :
5368 $as_echo_n "(cached) " >&6
5370 if test -n "$ac_ct_CC"; then
5371 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5373 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5377 test -z "$as_dir" && as_dir=.
5378 for ac_exec_ext in '' $ac_executable_extensions; do
5379 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5380 ac_cv_prog_ac_ct_CC="gcc"
5381 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5390 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5391 if test -n "$ac_ct_CC"; then
5392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5393 $as_echo "$ac_ct_CC" >&6; }
5395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5396 $as_echo "no" >&6; }
5399 if test "x$ac_ct_CC" = x; then
5402 case $cross_compiling:$ac_tool_warned in
5404 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5405 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5406 ac_tool_warned=yes ;;
5414 if test -z "$CC"; then
5415 if test -n "$ac_tool_prefix"; then
5416 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
5417 set dummy ${ac_tool_prefix}cc; ac_word=$2
5418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5419 $as_echo_n "checking for $ac_word... " >&6; }
5420 if ${ac_cv_prog_CC+:} false; then :
5421 $as_echo_n "(cached) " >&6
5423 if test -n "$CC"; then
5424 ac_cv_prog_CC="$CC" # Let the user override the test.
5426 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5430 test -z "$as_dir" && as_dir=.
5431 for ac_exec_ext in '' $ac_executable_extensions; do
5432 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5433 ac_cv_prog_CC="${ac_tool_prefix}cc"
5434 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5444 if test -n "$CC"; then
5445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5446 $as_echo "$CC" >&6; }
5448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5449 $as_echo "no" >&6; }
5455 if test -z "$CC"; then
5456 # Extract the first word of "cc", so it can be a program name with args.
5457 set dummy cc; ac_word=$2
5458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5459 $as_echo_n "checking for $ac_word... " >&6; }
5460 if ${ac_cv_prog_CC+:} false; then :
5461 $as_echo_n "(cached) " >&6
5463 if test -n "$CC"; then
5464 ac_cv_prog_CC="$CC" # Let the user override the test.
5467 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5471 test -z "$as_dir" && as_dir=.
5472 for ac_exec_ext in '' $ac_executable_extensions; do
5473 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5474 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
5475 ac_prog_rejected=yes
5479 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5486 if test $ac_prog_rejected = yes; then
5487 # We found a bogon in the path, so make sure we never use it.
5488 set dummy $ac_cv_prog_CC
5490 if test $# != 0; then
5491 # We chose a different compiler from the bogus one.
5492 # However, it has the same basename, so the bogon will be chosen
5493 # first if we set CC to just the basename; use the full file name.
5495 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
5501 if test -n "$CC"; then
5502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5503 $as_echo "$CC" >&6; }
5505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5506 $as_echo "no" >&6; }
5511 if test -z "$CC"; then
5512 if test -n "$ac_tool_prefix"; then
5513 for ac_prog in cl.exe
5515 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5516 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5518 $as_echo_n "checking for $ac_word... " >&6; }
5519 if ${ac_cv_prog_CC+:} false; then :
5520 $as_echo_n "(cached) " >&6
5522 if test -n "$CC"; then
5523 ac_cv_prog_CC="$CC" # Let the user override the test.
5525 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5529 test -z "$as_dir" && as_dir=.
5530 for ac_exec_ext in '' $ac_executable_extensions; do
5531 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5532 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5533 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5543 if test -n "$CC"; then
5544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5545 $as_echo "$CC" >&6; }
5547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5548 $as_echo "no" >&6; }
5552 test -n "$CC" && break
5555 if test -z "$CC"; then
5557 for ac_prog in cl.exe
5559 # Extract the first word of "$ac_prog", so it can be a program name with args.
5560 set dummy $ac_prog; ac_word=$2
5561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5562 $as_echo_n "checking for $ac_word... " >&6; }
5563 if ${ac_cv_prog_ac_ct_CC+:} false; then :
5564 $as_echo_n "(cached) " >&6
5566 if test -n "$ac_ct_CC"; then
5567 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5569 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5573 test -z "$as_dir" && as_dir=.
5574 for ac_exec_ext in '' $ac_executable_extensions; do
5575 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5576 ac_cv_prog_ac_ct_CC="$ac_prog"
5577 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5586 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5587 if test -n "$ac_ct_CC"; then
5588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5589 $as_echo "$ac_ct_CC" >&6; }
5591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5592 $as_echo "no" >&6; }
5596 test -n "$ac_ct_CC" && break
5599 if test "x$ac_ct_CC" = x; then
5602 case $cross_compiling:$ac_tool_warned in
5604 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5605 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5606 ac_tool_warned=yes ;;
5615 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5616 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5617 as_fn_error $? "no acceptable C compiler found in \$PATH
5618 See \`config.log' for more details" "$LINENO" 5; }
5620 # Provide some information about the compiler.
5621 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
5624 for ac_option in --version -v -V -qversion; do
5625 { { ac_try="$ac_compiler $ac_option >&5"
5627 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5628 *) ac_try_echo=$ac_try;;
5630 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5631 $as_echo "$ac_try_echo"; } >&5
5632 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5634 if test -s conftest.err; then
5636 ... rest of stderr output deleted ...
5637 10q' conftest.err >conftest.er1
5638 cat conftest.er1 >&5
5640 rm -f conftest.er1 conftest.err
5641 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5642 test $ac_status = 0; }
5645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
5646 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
5647 if ${ac_cv_c_compiler_gnu+:} false; then :
5648 $as_echo_n "(cached) " >&6
5650 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5651 /* end confdefs.h. */
5664 if ac_fn_c_try_compile "$LINENO"; then :
5669 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5670 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5674 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
5675 if test $ac_compiler_gnu = yes; then
5680 ac_test_CFLAGS=${CFLAGS+set}
5681 ac_save_CFLAGS=$CFLAGS
5682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5683 $as_echo_n "checking whether $CC accepts -g... " >&6; }
5684 if ${ac_cv_prog_cc_g+:} false; then :
5685 $as_echo_n "(cached) " >&6
5687 ac_save_c_werror_flag=$ac_c_werror_flag
5688 ac_c_werror_flag=yes
5691 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5692 /* end confdefs.h. */
5702 if ac_fn_c_try_compile "$LINENO"; then :
5706 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5707 /* end confdefs.h. */
5717 if ac_fn_c_try_compile "$LINENO"; then :
5720 ac_c_werror_flag=$ac_save_c_werror_flag
5722 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5723 /* end confdefs.h. */
5733 if ac_fn_c_try_compile "$LINENO"; then :
5736 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5738 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5740 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5741 ac_c_werror_flag=$ac_save_c_werror_flag
5743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5744 $as_echo "$ac_cv_prog_cc_g" >&6; }
5745 if test "$ac_test_CFLAGS" = set; then
5746 CFLAGS=$ac_save_CFLAGS
5747 elif test $ac_cv_prog_cc_g = yes; then
5748 if test "$GCC" = yes; then
5754 if test "$GCC" = yes; then
5760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
5761 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5762 if ${ac_cv_prog_cc_c89+:} false; then :
5763 $as_echo_n "(cached) " >&6
5765 ac_cv_prog_cc_c89=no
5767 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5768 /* end confdefs.h. */
5772 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5773 struct buf { int x; };
5774 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5775 static char *e (p, i)
5781 static char *f (char * (*g) (char **, int), char **p, ...)
5786 s = g (p, va_arg (v,int));
5791 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5792 function prototypes and stuff, but not '\xHH' hex character constants.
5793 These don't provoke an error unfortunately, instead are silently treated
5794 as 'x'. The following induces an error, until -std is added to get
5795 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5796 array size at least. It's necessary to write '\x00'==0 to get something
5797 that's true only with -std. */
5798 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5800 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5801 inside strings and character constants. */
5803 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5805 int test (int i, double x);
5806 struct s1 {int (*f) (int a);};
5807 struct s2 {int (*f) (double a);};
5808 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5814 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5819 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5820 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5822 CC="$ac_save_CC $ac_arg"
5823 if ac_fn_c_try_compile "$LINENO"; then :
5824 ac_cv_prog_cc_c89=$ac_arg
5826 rm -f core conftest.err conftest.$ac_objext
5827 test "x$ac_cv_prog_cc_c89" != "xno" && break
5829 rm -f conftest.$ac_ext
5834 case "x$ac_cv_prog_cc_c89" in
5836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5837 $as_echo "none needed" >&6; } ;;
5839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5840 $as_echo "unsupported" >&6; } ;;
5842 CC="$CC $ac_cv_prog_cc_c89"
5843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5844 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5846 if test "x$ac_cv_prog_cc_c89" != xno; then :
5851 ac_cpp='$CPP $CPPFLAGS'
5852 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5853 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5854 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5857 ac_cpp='$CPP $CPPFLAGS'
5858 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5859 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5860 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
5862 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
5863 if ${am_cv_prog_cc_c_o+:} false; then :
5864 $as_echo_n "(cached) " >&6
5866 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5867 /* end confdefs.h. */
5877 # Make sure it works both with $CC and with simple cc.
5878 # Following AC_PROG_CC_C_O, we do the test twice because some
5879 # compilers refuse to overwrite an existing .o file with -o,
5880 # though they will create one.
5881 am_cv_prog_cc_c_o=yes
5883 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
5884 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
5886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5887 (exit $ac_status); } \
5888 && test -f conftest2.$ac_objext; then
5891 am_cv_prog_cc_c_o=no
5895 rm -f core conftest*
5898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
5899 $as_echo "$am_cv_prog_cc_c_o" >&6; }
5900 if test "$am_cv_prog_cc_c_o" != yes; then
5901 # Losing compiler, so override with the script.
5902 # FIXME: It is wrong to rewrite CC.
5903 # But if we don't then we get into trouble of one sort or another.
5904 # A longer-term fix would be to have automake use am__CC in this case,
5905 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5906 CC="$am_aux_dir/compile $CC"
5909 ac_cpp='$CPP $CPPFLAGS'
5910 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5911 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5912 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5915 depcc="$CC" am_compiler_list=
5917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5918 $as_echo_n "checking dependency style of $depcc... " >&6; }
5919 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
5920 $as_echo_n "(cached) " >&6
5922 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5923 # We make a subdir and do the tests there. Otherwise we can end up
5924 # making bogus files that we don't know about and never remove. For
5925 # instance it was reported that on HP-UX the gcc test will end up
5926 # making a dummy file named 'D' -- because '-MD' means "put the output
5930 # Copy depcomp to subdir because otherwise we won't find it if we're
5931 # using a relative directory.
5932 cp "$am_depcomp" conftest.dir
5934 # We will build objects and dependencies in a subdirectory because
5935 # it helps to detect inapplicable dependency modes. For instance
5936 # both Tru64's cc and ICC support -MD to output dependencies as a
5937 # side effect of compilation, but ICC will put the dependencies in
5938 # the current directory while Tru64 will put them in the object
5942 am_cv_CC_dependencies_compiler_type=none
5943 if test "$am_compiler_list" = ""; then
5944 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5947 case " $depcc " in #(
5948 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5951 for depmode in $am_compiler_list; do
5952 # Setup a source with many dependencies, because some compilers
5953 # like to wrap large dependency lists on column 80 (with \), and
5954 # we should not choose a depcomp mode which is confused by this.
5956 # We need to recreate these files for each test, as the compiler may
5957 # overwrite some of them when testing with obscure command lines.
5958 # This happens at least with the AIX C compiler.
5960 for i in 1 2 3 4 5 6; do
5961 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5962 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
5963 # Solaris 10 /bin/sh.
5964 echo '/* dummy */' > sub/conftst$i.h
5966 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5968 # We check with '-c' and '-o' for the sake of the "dashmstdout"
5969 # mode. It turns out that the SunPro C++ compiler does not properly
5970 # handle '-M -o', and we need to detect this. Also, some Intel
5971 # versions had trouble with output in subdirs.
5972 am__obj=sub/conftest.${OBJEXT-o}
5973 am__minus_obj="-o $am__obj"
5976 # This depmode causes a compiler race in universal mode.
5977 test "$am__universal" = false || continue
5980 # After this tag, mechanisms are not by side-effect, so they'll
5981 # only be used when explicitly requested.
5982 if test "x$enable_dependency_tracking" = xyes; then
5988 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
5989 # This compiler won't grok '-c -o', but also, the minuso test has
5990 # not run yet. These depmodes are late enough in the game, and
5991 # so weak that their functioning should not be impacted.
5992 am__obj=conftest.${OBJEXT-o}
5997 if depmode=$depmode \
5998 source=sub/conftest.c object=$am__obj \
5999 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6000 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
6001 >/dev/null 2>conftest.err &&
6002 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6003 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6004 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
6005 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6006 # icc doesn't choke on unknown options, it will just issue warnings
6007 # or remarks (even with -Werror). So we grep stderr for any message
6008 # that says an option was ignored or not supported.
6009 # When given -MP, icc 7.0 and 7.1 complain thusly:
6010 # icc: Command line warning: ignoring option '-M'; no argument required
6011 # The diagnosis changed in icc 8.0:
6012 # icc: Command line remark: option '-MP' not supported
6013 if (grep 'ignoring option' conftest.err ||
6014 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6015 am_cv_CC_dependencies_compiler_type=$depmode
6024 am_cv_CC_dependencies_compiler_type=none
6028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
6029 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
6030 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
6033 test "x$enable_dependency_tracking" != xno \
6034 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
6036 am__fastdepCC_FALSE='#'
6038 am__fastdepCC_TRUE='#'
6039 am__fastdepCC_FALSE=
6054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Minix Amsterdam compiler" >&5
6055 $as_echo_n "checking for Minix Amsterdam compiler... " >&6; }
6056 if ${gl_cv_c_amsterdam_compiler+:} false; then :
6057 $as_echo_n "(cached) " >&6
6060 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6061 /* end confdefs.h. */
6068 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6069 $EGREP "Amsterdam" >/dev/null 2>&1; then :
6070 gl_cv_c_amsterdam_compiler=yes
6072 gl_cv_c_amsterdam_compiler=no
6078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_c_amsterdam_compiler" >&5
6079 $as_echo "$gl_cv_c_amsterdam_compiler" >&6; }
6081 if test $gl_cv_c_amsterdam_compiler = yes; then
6082 if test -z "$AR"; then
6085 if test -z "$ARFLAGS"; then
6092 if test -n "$ac_tool_prefix"; then
6093 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6094 set dummy ${ac_tool_prefix}ar; ac_word=$2
6095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6096 $as_echo_n "checking for $ac_word... " >&6; }
6097 if ${ac_cv_prog_AR+:} false; then :
6098 $as_echo_n "(cached) " >&6
6100 if test -n "$AR"; then
6101 ac_cv_prog_AR="$AR" # Let the user override the test.
6103 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6107 test -z "$as_dir" && as_dir=.
6108 for ac_exec_ext in '' $ac_executable_extensions; do
6109 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6110 ac_cv_prog_AR="${ac_tool_prefix}ar"
6111 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6121 if test -n "$AR"; then
6122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6123 $as_echo "$AR" >&6; }
6125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6126 $as_echo "no" >&6; }
6131 if test -z "$ac_cv_prog_AR"; then
6133 # Extract the first word of "ar", so it can be a program name with args.
6134 set dummy ar; ac_word=$2
6135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6136 $as_echo_n "checking for $ac_word... " >&6; }
6137 if ${ac_cv_prog_ac_ct_AR+:} false; then :
6138 $as_echo_n "(cached) " >&6
6140 if test -n "$ac_ct_AR"; then
6141 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6143 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6147 test -z "$as_dir" && as_dir=.
6148 for ac_exec_ext in '' $ac_executable_extensions; do
6149 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6150 ac_cv_prog_ac_ct_AR="ar"
6151 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6160 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6161 if test -n "$ac_ct_AR"; then
6162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6163 $as_echo "$ac_ct_AR" >&6; }
6165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6166 $as_echo "no" >&6; }
6169 if test "x$ac_ct_AR" = x; then
6172 case $cross_compiling:$ac_tool_warned in
6174 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6175 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6176 ac_tool_warned=yes ;;
6184 if test -z "$ARFLAGS"; then
6190 if test -z "$RANLIB"; then
6191 if test $gl_cv_c_amsterdam_compiler = yes; then
6194 if test -n "$ac_tool_prefix"; then
6195 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6196 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6198 $as_echo_n "checking for $ac_word... " >&6; }
6199 if ${ac_cv_prog_RANLIB+:} false; then :
6200 $as_echo_n "(cached) " >&6
6202 if test -n "$RANLIB"; then
6203 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6205 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6209 test -z "$as_dir" && as_dir=.
6210 for ac_exec_ext in '' $ac_executable_extensions; do
6211 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6212 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6213 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6222 RANLIB=$ac_cv_prog_RANLIB
6223 if test -n "$RANLIB"; then
6224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6225 $as_echo "$RANLIB" >&6; }
6227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6228 $as_echo "no" >&6; }
6233 if test -z "$ac_cv_prog_RANLIB"; then
6234 ac_ct_RANLIB=$RANLIB
6235 # Extract the first word of "ranlib", so it can be a program name with args.
6236 set dummy ranlib; ac_word=$2
6237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6238 $as_echo_n "checking for $ac_word... " >&6; }
6239 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6240 $as_echo_n "(cached) " >&6
6242 if test -n "$ac_ct_RANLIB"; then
6243 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6245 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6249 test -z "$as_dir" && as_dir=.
6250 for ac_exec_ext in '' $ac_executable_extensions; do
6251 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6252 ac_cv_prog_ac_ct_RANLIB="ranlib"
6253 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6262 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6263 if test -n "$ac_ct_RANLIB"; then
6264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6265 $as_echo "$ac_ct_RANLIB" >&6; }
6267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6268 $as_echo "no" >&6; }
6271 if test "x$ac_ct_RANLIB" = x; then
6274 case $cross_compiling:$ac_tool_warned in
6276 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6277 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6278 ac_tool_warned=yes ;;
6280 RANLIB=$ac_ct_RANLIB
6283 RANLIB="$ac_cv_prog_RANLIB"
6292 # Pre-early section.
6296 # Code from module absolute-header:
6297 # Code from module access:
6298 # Code from module alloca:
6299 # Code from module alloca-opt:
6300 # Code from module close:
6301 # Code from module concat-filename:
6302 # Code from module dirname-lgpl:
6303 # Code from module dosname:
6304 # Code from module double-slash-root:
6305 # Code from module dup2:
6306 # Code from module errno:
6307 # Code from module error:
6308 # Code from module exitfail:
6309 # Code from module extensions:
6310 # Code from module extern-inline:
6311 # Code from module fcntl:
6312 # Code from module fcntl-h:
6313 # Code from module fd-hook:
6314 # Code from module fdl:
6315 # Code from module filename:
6316 # Code from module findprog-in:
6317 # Code from module getdtablesize:
6318 # Code from module getloadavg:
6319 # Code from module getprogname:
6320 # Code from module gettext-h:
6321 # Code from module host-cpu-c-abi:
6322 # Code from module include_next:
6323 # Code from module intprops:
6324 # Code from module limits-h:
6325 # Code from module make-glob:
6326 # Code from module malloc-posix:
6327 # Code from module msvc-inval:
6328 # Code from module msvc-nothrow:
6329 # Code from module multiarch:
6330 # Code from module snippet/_Noreturn:
6331 # Code from module snippet/arg-nonnull:
6332 # Code from module snippet/c++defs:
6333 # Code from module snippet/warn-on-use:
6334 # Code from module ssize_t:
6335 # Code from module stdbool:
6336 # Code from module stddef:
6337 # Code from module stdint:
6338 # Code from module stdio:
6339 # Code from module stdlib:
6340 # Code from module stpcpy:
6341 # Code from module strerror:
6342 # Code from module strerror-override:
6343 # Code from module string:
6344 # Code from module sys_types:
6345 # Code from module unistd:
6346 # Code from module verify:
6347 # Code from module xalloc:
6348 # Code from module xalloc-die:
6349 # Code from module xalloc-oversized:
6350 # Code from module xconcat-filename:
6358 # Check whether --enable-cross-guesses was given.
6359 if test "${enable_cross_guesses+set}" = set; then :
6360 enableval=$enable_cross_guesses; if test "x$enableval" != xconservative && test "x$enableval" != xrisky; then
6361 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: invalid argument supplied to --enable-cross-guesses" >&5
6362 $as_echo "$as_me: WARNING: invalid argument supplied to --enable-cross-guesses" >&2;}
6363 enableval=conservative
6365 gl_cross_guesses="$enableval"
6367 gl_cross_guesses=conservative
6370 if test $gl_cross_guesses = risky; then
6371 gl_cross_guess_normal="guessing yes"
6372 gl_cross_guess_inverted="guessing no"
6374 gl_cross_guess_normal="guessing no"
6375 gl_cross_guess_inverted="guessing yes"
6377 LIBC_FATAL_STDERR_=1
6378 export LIBC_FATAL_STDERR_
6385 GNULIB_COPY_FILE_RANGE=0;
6390 GNULIB_EUIDACCESS=0;
6398 GNULIB_GETDOMAINNAME=0;
6399 GNULIB_GETDTABLESIZE=0;
6401 GNULIB_GETHOSTNAME=0;
6403 GNULIB_GETLOGIN_R=0;
6404 GNULIB_GETPAGESIZE=0;
6406 GNULIB_GETUSERSHELL=0;
6407 GNULIB_GROUP_MEMBER=0;
6419 GNULIB_READLINKAT=0;
6421 GNULIB_SETHOSTNAME=0;
6427 GNULIB_UNISTD_H_NONBLOCKING=0;
6428 GNULIB_UNISTD_H_SIGPIPE=0;
6434 HAVE_COPY_FILE_RANGE=1;
6444 HAVE_GETDTABLESIZE=1;
6450 HAVE_GROUP_MEMBER=1;
6466 HAVE_DECL_ENVIRON=1;
6468 HAVE_DECL_FDATASYNC=1;
6469 HAVE_DECL_GETDOMAINNAME=1;
6470 HAVE_DECL_GETLOGIN=1;
6471 HAVE_DECL_GETLOGIN_R=1;
6472 HAVE_DECL_GETPAGESIZE=1;
6473 HAVE_DECL_GETUSERSHELL=1;
6474 HAVE_DECL_SETHOSTNAME=1;
6475 HAVE_DECL_TRUNCATE=1;
6476 HAVE_DECL_TTYNAME_R=1;
6484 REPLACE_FACCESSAT=0;
6486 REPLACE_FTRUNCATE=0;
6488 REPLACE_GETDOMAINNAME=0;
6489 REPLACE_GETDTABLESIZE=0;
6490 REPLACE_GETLOGIN_R=0;
6491 REPLACE_GETGROUPS=0;
6492 REPLACE_GETPAGESIZE=0;
6503 REPLACE_READLINKAT=0;
6507 REPLACE_SYMLINKAT=0;
6509 REPLACE_TTYNAME_R=0;
6514 UNISTD_H_HAVE_WINSOCK2_H=0;
6515 UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS=0;
6518 # Make sure we can run config.sub.
6519 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
6520 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
6522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
6523 $as_echo_n "checking build system type... " >&6; }
6524 if ${ac_cv_build+:} false; then :
6525 $as_echo_n "(cached) " >&6
6527 ac_build_alias=$build_alias
6528 test "x$ac_build_alias" = x &&
6529 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
6530 test "x$ac_build_alias" = x &&
6531 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
6532 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
6533 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
6536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
6537 $as_echo "$ac_cv_build" >&6; }
6538 case $ac_cv_build in
6540 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
6543 ac_save_IFS=$IFS; IFS='-'
6549 # Remember, the first character of IFS is used to create $*,
6550 # except with old shells:
6553 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
6556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
6557 $as_echo_n "checking host system type... " >&6; }
6558 if ${ac_cv_host+:} false; then :
6559 $as_echo_n "(cached) " >&6
6561 if test "x$host_alias" = x; then
6562 ac_cv_host=$ac_cv_build
6564 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
6565 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
6569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
6570 $as_echo "$ac_cv_host" >&6; }
6573 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
6576 ac_save_IFS=$IFS; IFS='-'
6582 # Remember, the first character of IFS is used to create $*,
6583 # except with old shells:
6586 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
6589 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
6590 if test "x$ac_cv_type_size_t" = xyes; then :
6594 cat >>confdefs.h <<_ACEOF
6595 #define size_t unsigned int
6600 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
6601 # for constant arguments. Useless!
6602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
6603 $as_echo_n "checking for working alloca.h... " >&6; }
6604 if ${ac_cv_working_alloca_h+:} false; then :
6605 $as_echo_n "(cached) " >&6
6607 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6608 /* end confdefs.h. */
6613 char *p = (char *) alloca (2 * sizeof (int));
6619 if ac_fn_c_try_link "$LINENO"; then :
6620 ac_cv_working_alloca_h=yes
6622 ac_cv_working_alloca_h=no
6624 rm -f core conftest.err conftest.$ac_objext \
6625 conftest$ac_exeext conftest.$ac_ext
6627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
6628 $as_echo "$ac_cv_working_alloca_h" >&6; }
6629 if test $ac_cv_working_alloca_h = yes; then
6631 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
6635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
6636 $as_echo_n "checking for alloca... " >&6; }
6637 if ${ac_cv_func_alloca_works+:} false; then :
6638 $as_echo_n "(cached) " >&6
6640 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6641 /* end confdefs.h. */
6643 # define alloca __builtin_alloca
6646 # include <malloc.h>
6647 # define alloca _alloca
6649 # ifdef HAVE_ALLOCA_H
6650 # include <alloca.h>
6655 # ifndef alloca /* predefined by HP cc +Olibcalls */
6656 void *alloca (size_t);
6666 char *p = (char *) alloca (1);
6672 if ac_fn_c_try_link "$LINENO"; then :
6673 ac_cv_func_alloca_works=yes
6675 ac_cv_func_alloca_works=no
6677 rm -f core conftest.err conftest.$ac_objext \
6678 conftest$ac_exeext conftest.$ac_ext
6680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
6681 $as_echo "$ac_cv_func_alloca_works" >&6; }
6683 if test $ac_cv_func_alloca_works = yes; then
6685 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
6688 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
6689 # that cause trouble. Some versions do not even contain alloca or
6690 # contain a buggy version. If you still want to use their alloca,
6691 # use ar to extract alloca.o from them instead of compiling alloca.c.
6697 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
6699 $as_echo "#define C_ALLOCA 1" >>confdefs.h
6702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
6703 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
6704 if ${ac_cv_os_cray+:} false; then :
6705 $as_echo_n "(cached) " >&6
6707 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6708 /* end confdefs.h. */
6709 #if defined CRAY && ! defined CRAY2
6716 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6717 $EGREP "webecray" >/dev/null 2>&1; then :
6725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
6726 $as_echo "$ac_cv_os_cray" >&6; }
6727 if test $ac_cv_os_cray = yes; then
6728 for ac_func in _getb67 GETB67 getb67; do
6729 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6730 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
6731 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
6733 cat >>confdefs.h <<_ACEOF
6734 #define CRAY_STACKSEG_END $ac_func
6743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
6744 $as_echo_n "checking stack direction for C alloca... " >&6; }
6745 if ${ac_cv_c_stack_direction+:} false; then :
6746 $as_echo_n "(cached) " >&6
6748 if test "$cross_compiling" = yes; then :
6749 ac_cv_c_stack_direction=0
6751 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6752 /* end confdefs.h. */
6753 $ac_includes_default
6755 find_stack_direction (int *addr, int depth)
6760 *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
6761 dir = depth ? find_stack_direction (addr, depth - 1) : 0;
6766 main (int argc, char **argv)
6768 return find_stack_direction (0, argc + !argv + 20) < 0;
6771 if ac_fn_c_try_run "$LINENO"; then :
6772 ac_cv_c_stack_direction=1
6774 ac_cv_c_stack_direction=-1
6776 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6777 conftest.$ac_objext conftest.beam conftest.$ac_ext
6781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
6782 $as_echo "$ac_cv_c_stack_direction" >&6; }
6783 cat >>confdefs.h <<_ACEOF
6784 #define STACK_DIRECTION $ac_cv_c_stack_direction
6793 for ac_func in $ac_func_list
6795 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6796 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
6797 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
6798 cat >>confdefs.h <<_ACEOF
6799 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
6809 if test $ac_cv_func__set_invalid_parameter_handler = yes; then
6810 HAVE_MSVC_INVALID_PARAMETER_HANDLER=1
6812 $as_echo "#define HAVE_MSVC_INVALID_PARAMETER_HANDLER 1" >>confdefs.h
6815 HAVE_MSVC_INVALID_PARAMETER_HANDLER=0
6822 for ac_header in $ac_header_list
6824 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6825 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6827 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6828 cat >>confdefs.h <<_ACEOF
6829 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether // is distinct from /" >&5
6841 $as_echo_n "checking whether // is distinct from /... " >&6; }
6842 if ${gl_cv_double_slash_root+:} false; then :
6843 $as_echo_n "(cached) " >&6
6845 if test x"$cross_compiling" = xyes ; then
6846 # When cross-compiling, there is no way to tell whether // is special
6847 # short of a list of hosts. However, the only known hosts to date
6848 # that have a distinct // are Apollo DomainOS (too old to port to),
6849 # Cygwin, and z/OS. If anyone knows of another system for which // has
6850 # special semantics and is distinct from /, please report it to
6851 # <bug-gnulib@gnu.org>.
6853 *-cygwin | i370-ibm-openedition)
6854 gl_cv_double_slash_root=yes ;;
6856 # Be optimistic and assume that / and // are the same when we
6858 gl_cv_double_slash_root='unknown, assuming no' ;;
6861 set x `ls -di / // 2>/dev/null`
6862 if test "$2" = "$4" && wc //dev/null >/dev/null 2>&1; then
6863 gl_cv_double_slash_root=no
6865 gl_cv_double_slash_root=yes
6869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_double_slash_root" >&5
6870 $as_echo "$gl_cv_double_slash_root" >&6; }
6871 if test "$gl_cv_double_slash_root" = yes; then
6873 $as_echo "#define DOUBLE_SLASH_IS_DISTINCT_ROOT 1" >>confdefs.h
6879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the preprocessor supports include_next" >&5
6880 $as_echo_n "checking whether the preprocessor supports include_next... " >&6; }
6881 if ${gl_cv_have_include_next+:} false; then :
6882 $as_echo_n "(cached) " >&6
6884 rm -rf conftestd1a conftestd1b conftestd2
6885 mkdir conftestd1a conftestd1b conftestd2
6886 cat <<EOF > conftestd1a/conftest.h
6887 #define DEFINED_IN_CONFTESTD1
6888 #include_next <conftest.h>
6889 #ifdef DEFINED_IN_CONFTESTD2
6892 #error "include_next doesn't work"
6895 cat <<EOF > conftestd1b/conftest.h
6896 #define DEFINED_IN_CONFTESTD1
6898 #include_next <conftest.h>
6899 #ifdef DEFINED_IN_CONFTESTD2
6902 #error "include_next doesn't work"
6905 cat <<EOF > conftestd2/conftest.h
6906 #ifndef DEFINED_IN_CONFTESTD1
6907 #error "include_next test doesn't work"
6909 #define DEFINED_IN_CONFTESTD2
6911 gl_save_CPPFLAGS="$CPPFLAGS"
6912 CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1b -Iconftestd2"
6913 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6914 /* end confdefs.h. */
6915 #include <conftest.h>
6917 if ac_fn_c_try_compile "$LINENO"; then :
6918 gl_cv_have_include_next=yes
6920 CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1a -Iconftestd2"
6921 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6922 /* end confdefs.h. */
6923 #include <conftest.h>
6925 if ac_fn_c_try_compile "$LINENO"; then :
6926 gl_cv_have_include_next=buggy
6928 gl_cv_have_include_next=no
6930 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6933 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6934 CPPFLAGS="$gl_save_CPPFLAGS"
6935 rm -rf conftestd1a conftestd1b conftestd2
6938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_have_include_next" >&5
6939 $as_echo "$gl_cv_have_include_next" >&6; }
6940 PRAGMA_SYSTEM_HEADER=
6941 if test $gl_cv_have_include_next = yes; then
6942 INCLUDE_NEXT=include_next
6943 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next
6944 if test -n "$GCC"; then
6945 PRAGMA_SYSTEM_HEADER='#pragma GCC system_header'
6948 if test $gl_cv_have_include_next = buggy; then
6949 INCLUDE_NEXT=include
6950 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next
6952 INCLUDE_NEXT=include
6953 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include
6959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system header files limit the line length" >&5
6960 $as_echo_n "checking whether system header files limit the line length... " >&6; }
6961 if ${gl_cv_pragma_columns+:} false; then :
6962 $as_echo_n "(cached) " >&6
6964 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6965 /* end confdefs.h. */
6972 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6973 $EGREP "choke me" >/dev/null 2>&1; then :
6974 gl_cv_pragma_columns=yes
6976 gl_cv_pragma_columns=no
6982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_pragma_columns" >&5
6983 $as_echo "$gl_cv_pragma_columns" >&6; }
6984 if test $gl_cv_pragma_columns = yes; then
6985 PRAGMA_COLUMNS="#pragma COLUMNS 10000"
6993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for complete errno.h" >&5
6994 $as_echo_n "checking for complete errno.h... " >&6; }
6995 if ${gl_cv_header_errno_h_complete+:} false; then :
6996 $as_echo_n "(cached) " >&6
6999 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7000 /* end confdefs.h. */
7003 #if !defined ETXTBSY
7012 #if !defined ENOLINK
7018 #if !defined EMULTIHOP
7021 #if !defined EBADMSG
7024 #if !defined EOVERFLOW
7027 #if !defined ENOTSUP
7030 #if !defined ENETRESET
7033 #if !defined ECONNABORTED
7042 #if !defined ECANCELED
7045 #if !defined EOWNERDEAD
7048 #if !defined ENOTRECOVERABLE
7056 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7057 $EGREP "booboo" >/dev/null 2>&1; then :
7058 gl_cv_header_errno_h_complete=no
7060 gl_cv_header_errno_h_complete=yes
7066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_complete" >&5
7067 $as_echo "$gl_cv_header_errno_h_complete" >&6; }
7068 if test $gl_cv_header_errno_h_complete = yes; then
7079 if test $gl_cv_have_include_next = yes; then
7080 gl_cv_next_errno_h='<'errno.h'>'
7082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <errno.h>" >&5
7083 $as_echo_n "checking absolute name of <errno.h>... " >&6; }
7084 if ${gl_cv_next_errno_h+:} false; then :
7085 $as_echo_n "(cached) " >&6
7090 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7091 /* end confdefs.h. */
7095 aix*) gl_absname_cpp="$ac_cpp -C" ;;
7096 *) gl_absname_cpp="$ac_cpp" ;;
7101 gl_dirsep_regex='[/\\]'
7104 gl_dirsep_regex='\/'
7107 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
7108 gl_header_literal_regex=`echo 'errno.h' \
7109 | sed -e "$gl_make_literal_regex_sed"`
7110 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
7111 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
7117 gl_cv_absolute_errno_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
7118 sed -n "$gl_absolute_header_sed"`
7120 gl_header=$gl_cv_absolute_errno_h
7121 gl_cv_next_errno_h='"'$gl_header'"'
7125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_errno_h" >&5
7126 $as_echo "$gl_cv_next_errno_h" >&6; }
7128 NEXT_ERRNO_H=$gl_cv_next_errno_h
7130 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
7131 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
7132 gl_next_as_first_directive='<'errno.h'>'
7134 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
7135 gl_next_as_first_directive=$gl_cv_next_errno_h
7137 NEXT_AS_FIRST_DIRECTIVE_ERRNO_H=$gl_next_as_first_directive
7145 if test -n "$ERRNO_H"; then
7146 GL_GENERATE_ERRNO_H_TRUE=
7147 GL_GENERATE_ERRNO_H_FALSE='#'
7149 GL_GENERATE_ERRNO_H_TRUE='#'
7150 GL_GENERATE_ERRNO_H_FALSE=
7154 if test -n "$ERRNO_H"; then
7155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EMULTIHOP value" >&5
7156 $as_echo_n "checking for EMULTIHOP value... " >&6; }
7157 if ${gl_cv_header_errno_h_EMULTIHOP+:} false; then :
7158 $as_echo_n "(cached) " >&6
7161 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7162 /* end confdefs.h. */
7170 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7171 $EGREP "yes" >/dev/null 2>&1; then :
7172 gl_cv_header_errno_h_EMULTIHOP=yes
7174 gl_cv_header_errno_h_EMULTIHOP=no
7178 if test $gl_cv_header_errno_h_EMULTIHOP = no; then
7179 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7180 /* end confdefs.h. */
7182 #define _XOPEN_SOURCE_EXTENDED 1
7189 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7190 $EGREP "yes" >/dev/null 2>&1; then :
7191 gl_cv_header_errno_h_EMULTIHOP=hidden
7195 if test $gl_cv_header_errno_h_EMULTIHOP = hidden; then
7196 if ac_fn_c_compute_int "$LINENO" "EMULTIHOP" "gl_cv_header_errno_h_EMULTIHOP" "
7197 #define _XOPEN_SOURCE_EXTENDED 1
7199 /* The following two lines are a workaround against an autoconf-2.52 bug. */
7210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_EMULTIHOP" >&5
7211 $as_echo "$gl_cv_header_errno_h_EMULTIHOP" >&6; }
7212 case $gl_cv_header_errno_h_EMULTIHOP in
7214 EMULTIHOP_HIDDEN=0; EMULTIHOP_VALUE=
7217 EMULTIHOP_HIDDEN=1; EMULTIHOP_VALUE="$gl_cv_header_errno_h_EMULTIHOP"
7225 if test -n "$ERRNO_H"; then
7226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ENOLINK value" >&5
7227 $as_echo_n "checking for ENOLINK value... " >&6; }
7228 if ${gl_cv_header_errno_h_ENOLINK+:} false; then :
7229 $as_echo_n "(cached) " >&6
7232 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7233 /* end confdefs.h. */
7241 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7242 $EGREP "yes" >/dev/null 2>&1; then :
7243 gl_cv_header_errno_h_ENOLINK=yes
7245 gl_cv_header_errno_h_ENOLINK=no
7249 if test $gl_cv_header_errno_h_ENOLINK = no; then
7250 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7251 /* end confdefs.h. */
7253 #define _XOPEN_SOURCE_EXTENDED 1
7260 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7261 $EGREP "yes" >/dev/null 2>&1; then :
7262 gl_cv_header_errno_h_ENOLINK=hidden
7266 if test $gl_cv_header_errno_h_ENOLINK = hidden; then
7267 if ac_fn_c_compute_int "$LINENO" "ENOLINK" "gl_cv_header_errno_h_ENOLINK" "
7268 #define _XOPEN_SOURCE_EXTENDED 1
7270 /* The following two lines are a workaround against an autoconf-2.52 bug. */
7281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_ENOLINK" >&5
7282 $as_echo "$gl_cv_header_errno_h_ENOLINK" >&6; }
7283 case $gl_cv_header_errno_h_ENOLINK in
7285 ENOLINK_HIDDEN=0; ENOLINK_VALUE=
7288 ENOLINK_HIDDEN=1; ENOLINK_VALUE="$gl_cv_header_errno_h_ENOLINK"
7296 if test -n "$ERRNO_H"; then
7297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EOVERFLOW value" >&5
7298 $as_echo_n "checking for EOVERFLOW value... " >&6; }
7299 if ${gl_cv_header_errno_h_EOVERFLOW+:} false; then :
7300 $as_echo_n "(cached) " >&6
7303 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7304 /* end confdefs.h. */
7312 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7313 $EGREP "yes" >/dev/null 2>&1; then :
7314 gl_cv_header_errno_h_EOVERFLOW=yes
7316 gl_cv_header_errno_h_EOVERFLOW=no
7320 if test $gl_cv_header_errno_h_EOVERFLOW = no; then
7321 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7322 /* end confdefs.h. */
7324 #define _XOPEN_SOURCE_EXTENDED 1
7331 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7332 $EGREP "yes" >/dev/null 2>&1; then :
7333 gl_cv_header_errno_h_EOVERFLOW=hidden
7337 if test $gl_cv_header_errno_h_EOVERFLOW = hidden; then
7338 if ac_fn_c_compute_int "$LINENO" "EOVERFLOW" "gl_cv_header_errno_h_EOVERFLOW" "
7339 #define _XOPEN_SOURCE_EXTENDED 1
7341 /* The following two lines are a workaround against an autoconf-2.52 bug. */
7352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_EOVERFLOW" >&5
7353 $as_echo "$gl_cv_header_errno_h_EOVERFLOW" >&6; }
7354 case $gl_cv_header_errno_h_EOVERFLOW in
7356 EOVERFLOW_HIDDEN=0; EOVERFLOW_VALUE=
7359 EOVERFLOW_HIDDEN=1; EOVERFLOW_VALUE="$gl_cv_header_errno_h_EOVERFLOW"
7367 ac_fn_c_check_decl "$LINENO" "strerror_r" "ac_cv_have_decl_strerror_r" "$ac_includes_default"
7368 if test "x$ac_cv_have_decl_strerror_r" = xyes; then :
7374 cat >>confdefs.h <<_ACEOF
7375 #define HAVE_DECL_STRERROR_R $ac_have_decl
7378 for ac_func in strerror_r
7380 ac_fn_c_check_func "$LINENO" "strerror_r" "ac_cv_func_strerror_r"
7381 if test "x$ac_cv_func_strerror_r" = xyes; then :
7382 cat >>confdefs.h <<_ACEOF
7383 #define HAVE_STRERROR_R 1
7389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strerror_r returns char *" >&5
7390 $as_echo_n "checking whether strerror_r returns char *... " >&6; }
7391 if ${ac_cv_func_strerror_r_char_p+:} false; then :
7392 $as_echo_n "(cached) " >&6
7395 ac_cv_func_strerror_r_char_p=no
7396 if test $ac_cv_have_decl_strerror_r = yes; then
7397 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7398 /* end confdefs.h. */
7399 $ac_includes_default
7405 char x = *strerror_r (0, buf, sizeof buf);
7406 char *p = strerror_r (0, buf, sizeof buf);
7413 if ac_fn_c_try_compile "$LINENO"; then :
7414 ac_cv_func_strerror_r_char_p=yes
7416 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7418 # strerror_r is not declared. Choose between
7419 # systems that have relatively inaccessible declarations for the
7420 # function. BeOS and DEC UNIX 4.0 fall in this category, but the
7421 # former has a strerror_r that returns char*, while the latter
7422 # has a strerror_r that returns `int'.
7423 # This test should segfault on the DEC system.
7424 if test "$cross_compiling" = yes; then :
7427 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7428 /* end confdefs.h. */
7429 $ac_includes_default
7430 extern char *strerror_r ();
7435 char x = *strerror_r (0, buf, sizeof buf);
7436 return ! isalpha (x);
7441 if ac_fn_c_try_run "$LINENO"; then :
7442 ac_cv_func_strerror_r_char_p=yes
7444 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7445 conftest.$ac_objext conftest.beam conftest.$ac_ext
7451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strerror_r_char_p" >&5
7452 $as_echo "$ac_cv_func_strerror_r_char_p" >&6; }
7453 if test $ac_cv_func_strerror_r_char_p = yes; then
7455 $as_echo "#define STRERROR_R_CHAR_P 1" >>confdefs.h
7460 XGETTEXT_EXTRA_OPTIONS=
7468 GNULIB_NONBLOCKING=0;
7489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fcntl.h" >&5
7490 $as_echo_n "checking for working fcntl.h... " >&6; }
7491 if ${gl_cv_header_working_fcntl_h+:} false; then :
7492 $as_echo_n "(cached) " >&6
7494 if test "$cross_compiling" = yes; then :
7496 # Guess 'no' on native Windows.
7497 mingw*) gl_cv_header_working_fcntl_h='no' ;;
7498 *) gl_cv_header_working_fcntl_h=cross-compiling ;;
7502 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7503 /* end confdefs.h. */
7504 #include <sys/types.h>
7505 #include <sys/stat.h>
7507 # include <unistd.h>
7508 #else /* on Windows with MSVC */
7510 # include <stdlib.h>
7511 # defined sleep(n) _sleep ((n) * 1000)
7518 #define O_NOFOLLOW 0
7520 static int const constants[] =
7522 O_CREAT, O_EXCL, O_NOCTTY, O_TRUNC, O_APPEND,
7523 O_NONBLOCK, O_SYNC, O_ACCMODE, O_RDONLY, O_RDWR, O_WRONLY
7530 int result = !constants;
7533 static char const sym[] = "conftest.sym";
7534 if (symlink ("/dev/null", sym) != 0)
7538 int fd = open (sym, O_WRONLY | O_NOFOLLOW | O_CREAT, 0);
7545 if (unlink (sym) != 0 || symlink (".", sym) != 0)
7549 int fd = open (sym, O_RDONLY | O_NOFOLLOW);
7560 static char const file[] = "confdefs.h";
7561 int fd = open (file, O_RDONLY | O_NOATIME);
7567 if (fstat (fd, &st0) != 0)
7573 if (read (fd, &c, 1) != 1)
7577 if (close (fd) != 0)
7582 if (stat (file, &st1) != 0)
7585 if (st0.st_atime != st1.st_atime)
7597 if ac_fn_c_try_run "$LINENO"; then :
7598 gl_cv_header_working_fcntl_h=yes
7601 4) gl_cv_header_working_fcntl_h='no (bad O_NOFOLLOW)';; #(
7602 64) gl_cv_header_working_fcntl_h='no (bad O_NOATIME)';; #(
7603 68) gl_cv_header_working_fcntl_h='no (bad O_NOATIME, O_NOFOLLOW)';; #(
7604 *) gl_cv_header_working_fcntl_h='no';;
7607 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7608 conftest.$ac_objext conftest.beam conftest.$ac_ext
7613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_fcntl_h" >&5
7614 $as_echo "$gl_cv_header_working_fcntl_h" >&6; }
7616 case $gl_cv_header_working_fcntl_h in #(
7617 *O_NOATIME* | no | cross-compiling) ac_val=0;; #(
7621 cat >>confdefs.h <<_ACEOF
7622 #define HAVE_WORKING_O_NOATIME $ac_val
7626 case $gl_cv_header_working_fcntl_h in #(
7627 *O_NOFOLLOW* | no | cross-compiling) ac_val=0;; #(
7631 cat >>confdefs.h <<_ACEOF
7632 #define HAVE_WORKING_O_NOFOLLOW $ac_val
7636 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
7637 if test "x$ac_cv_type_pid_t" = xyes; then :
7641 cat >>confdefs.h <<_ACEOF
7647 ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
7648 if test "x$ac_cv_type_mode_t" = xyes; then :
7652 cat >>confdefs.h <<_ACEOF
7659 ac_fn_c_check_func "$LINENO" "eaccess" "ac_cv_func_eaccess"
7660 if test "x$ac_cv_func_eaccess" = xyes; then :
7664 $as_echo "#define eaccess access" >>confdefs.h
7671 ac_fn_c_check_decl "$LINENO" "getdtablesize" "ac_cv_have_decl_getdtablesize" "$ac_includes_default"
7672 if test "x$ac_cv_have_decl_getdtablesize" = xyes; then :
7678 cat >>confdefs.h <<_ACEOF
7679 #define HAVE_DECL_GETDTABLESIZE $ac_have_decl
7685 GNULIB_CALLOC_POSIX=0;
7686 GNULIB_CANONICALIZE_FILE_NAME=0;
7687 GNULIB_GETLOADAVG=0;
7690 GNULIB_MALLOC_POSIX=0;
7697 GNULIB_POSIX_OPENPT=0;
7704 GNULIB_REALLOCARRAY=0;
7705 GNULIB_REALLOC_POSIX=0;
7708 GNULIB_SECURE_GETENV=0;
7714 GNULIB_SYSTEM_POSIX=0;
7720 HAVE_CANONICALIZE_FILE_NAME=1;
7721 HAVE_DECL_GETLOADAVG=1;
7725 HAVE_DECL_INITSTATE=1;
7732 HAVE_POSIX_OPENPT=1;
7739 HAVE_REALLOCARRAY=1;
7742 HAVE_SECURE_GETENV=1;
7746 HAVE_DECL_SETSTATE=1;
7751 HAVE_STRUCT_RANDOM_DATA=1;
7752 HAVE_SYS_LOADAVG_H=0;
7754 HAVE_DECL_UNSETENV=1;
7756 REPLACE_CANONICALIZE_FILE_NAME=0;
7757 REPLACE_INITSTATE=0;
7762 REPLACE_PTSNAME_R=0;
7783 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7784 /* end confdefs.h. */
7791 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7792 $EGREP "MicrosoftCompiler" >/dev/null 2>&1; then :
7794 gl_c_asm_opt='-c -Fa'
7807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host CPU and C ABI" >&5
7808 $as_echo_n "checking host CPU and C ABI... " >&6; }
7809 if ${gl_cv_host_cpu_c_abi+:} false; then :
7810 $as_echo_n "(cached) " >&6
7815 gl_cv_host_cpu_c_abi=i386
7819 # On x86_64 systems, the C compiler may be generating code in one of
7821 # - 64-bit instruction set, 64-bit pointers, 64-bit 'long': x86_64.
7822 # - 64-bit instruction set, 64-bit pointers, 32-bit 'long': x86_64
7823 # with native Windows (mingw, MSVC).
7824 # - 64-bit instruction set, 32-bit pointers, 32-bit 'long': x86_64-x32.
7825 # - 32-bit instruction set, 32-bit pointers, 32-bit 'long': i386.
7826 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7827 /* end confdefs.h. */
7828 #if (defined __x86_64__ || defined __amd64__ \
7829 || defined _M_X64 || defined _M_AMD64)
7836 if ac_fn_c_try_compile "$LINENO"; then :
7837 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7838 /* end confdefs.h. */
7839 #if defined __ILP32__ || defined _ILP32
7846 if ac_fn_c_try_compile "$LINENO"; then :
7847 gl_cv_host_cpu_c_abi=x86_64-x32
7849 gl_cv_host_cpu_c_abi=x86_64
7851 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7853 gl_cv_host_cpu_c_abi=i386
7855 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7858 alphaev[4-8] | alphaev56 | alphapca5[67] | alphaev6[78] )
7859 gl_cv_host_cpu_c_abi=alpha
7863 # Assume arm with EABI.
7864 # On arm64 systems, the C compiler may be generating code in one of
7866 # - aarch64 instruction set, 64-bit pointers, 64-bit 'long': arm64.
7867 # - aarch64 instruction set, 32-bit pointers, 32-bit 'long': arm64-ilp32.
7868 # - 32-bit instruction set, 32-bit pointers, 32-bit 'long': arm or armhf.
7869 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7870 /* end confdefs.h. */
7878 if ac_fn_c_try_compile "$LINENO"; then :
7879 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7880 /* end confdefs.h. */
7881 #if defined __ILP32__ || defined _ILP32
7888 if ac_fn_c_try_compile "$LINENO"; then :
7889 gl_cv_host_cpu_c_abi=arm64-ilp32
7891 gl_cv_host_cpu_c_abi=arm64
7893 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7895 # Don't distinguish little-endian and big-endian arm, since they
7896 # don't require different machine code for simple operations and
7897 # since the user can distinguish them through the preprocessor
7898 # defines __ARMEL__ vs. __ARMEB__.
7899 # But distinguish arm which passes floating-point arguments and
7900 # return values in integer registers (r0, r1, ...) - this is
7901 # gcc -mfloat-abi=soft or gcc -mfloat-abi=softfp - from arm which
7902 # passes them in float registers (s0, s1, ...) and double registers
7903 # (d0, d1, ...) - this is gcc -mfloat-abi=hard. GCC 4.6 or newer
7904 # sets the preprocessor defines __ARM_PCS (for the first case) and
7905 # __ARM_PCS_VFP (for the second case), but older GCC does not.
7906 echo 'double ddd; void func (double dd) { ddd = dd; }' > conftest.c
7907 # Look for a reference to the register d0 in the .s file.
7908 { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $gl_c_asm_opt conftest.c'
7909 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
7912 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7913 test $ac_status = 0; }; } >/dev/null 2>&1
7914 if LC_ALL=C grep 'd0,' conftest.$gl_asmext >/dev/null; then
7915 gl_cv_host_cpu_c_abi=armhf
7917 gl_cv_host_cpu_c_abi=arm
7922 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7925 hppa1.0 | hppa1.1 | hppa2.0* | hppa64 )
7926 # On hppa, the C compiler may be generating 32-bit code or 64-bit
7927 # code. In the latter case, it defines _LP64 and __LP64__.
7928 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7929 /* end confdefs.h. */
7937 if ac_fn_c_try_compile "$LINENO"; then :
7938 gl_cv_host_cpu_c_abi=hppa64
7940 gl_cv_host_cpu_c_abi=hppa
7942 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7946 # On ia64 on HP-UX, the C compiler may be generating 64-bit code or
7947 # 32-bit code. In the latter case, it defines _ILP32.
7948 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7949 /* end confdefs.h. */
7957 if ac_fn_c_try_compile "$LINENO"; then :
7958 gl_cv_host_cpu_c_abi=ia64-ilp32
7960 gl_cv_host_cpu_c_abi=ia64
7962 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7966 # We should also check for (_MIPS_SZPTR == 64), but gcc keeps this
7968 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7969 /* end confdefs.h. */
7970 #if defined _MIPS_SZLONG && (_MIPS_SZLONG == 64)
7977 if ac_fn_c_try_compile "$LINENO"; then :
7978 gl_cv_host_cpu_c_abi=mips64
7980 # In the n32 ABI, _ABIN32 is defined, _ABIO32 is not defined (but
7981 # may later get defined by <sgidefs.h>), and _MIPS_SIM == _ABIN32.
7982 # In the 32 ABI, _ABIO32 is defined, _ABIN32 is not defined (but
7983 # may later get defined by <sgidefs.h>), and _MIPS_SIM == _ABIO32.
7984 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7985 /* end confdefs.h. */
7986 #if (_MIPS_SIM == _ABIN32)
7993 if ac_fn_c_try_compile "$LINENO"; then :
7994 gl_cv_host_cpu_c_abi=mipsn32
7996 gl_cv_host_cpu_c_abi=mips
7998 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8000 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8004 # Different ABIs are in use on AIX vs. Mac OS X vs. Linux,*BSD.
8005 # No need to distinguish them here; the caller may distinguish
8006 # them based on the OS.
8007 # On powerpc64 systems, the C compiler may still be generating
8008 # 32-bit code. And on powerpc-ibm-aix systems, the C compiler may
8009 # be generating 64-bit code.
8010 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8011 /* end confdefs.h. */
8012 #if defined __powerpc64__ || defined _ARCH_PPC64
8019 if ac_fn_c_try_compile "$LINENO"; then :
8020 # On powerpc64, there are two ABIs on Linux: The AIX compatible
8021 # one and the ELFv2 one. The latter defines _CALL_ELF=2.
8022 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8023 /* end confdefs.h. */
8024 #if defined _CALL_ELF && _CALL_ELF == 2
8031 if ac_fn_c_try_compile "$LINENO"; then :
8032 gl_cv_host_cpu_c_abi=powerpc64-elfv2
8034 gl_cv_host_cpu_c_abi=powerpc64
8036 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8039 gl_cv_host_cpu_c_abi=powerpc
8041 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8045 gl_cv_host_cpu_c_abi=powerpc
8049 # There are 2 architectures (with variants): rv32* and rv64*.
8050 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8051 /* end confdefs.h. */
8052 #if __riscv_xlen == 64
8059 if ac_fn_c_try_compile "$LINENO"; then :
8064 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8065 # There are 6 ABIs: ilp32, ilp32f, ilp32d, lp64, lp64f, lp64d.
8066 # Size of 'long' and 'void *':
8067 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8068 /* end confdefs.h. */
8069 #if defined __LP64__
8076 if ac_fn_c_try_compile "$LINENO"; then :
8081 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8083 # __riscv_float_abi_double:
8084 # 'float' and 'double' are passed in floating-point registers.
8085 # __riscv_float_abi_single:
8086 # 'float' are passed in floating-point registers.
8087 # __riscv_float_abi_soft:
8088 # No values are passed in floating-point registers.
8089 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8090 /* end confdefs.h. */
8091 #if defined __riscv_float_abi_double
8098 if ac_fn_c_try_compile "$LINENO"; then :
8101 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8102 /* end confdefs.h. */
8103 #if defined __riscv_float_abi_single
8110 if ac_fn_c_try_compile "$LINENO"; then :
8115 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8118 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8119 gl_cv_host_cpu_c_abi="${cpu}-${main_abi}${float_abi}"
8123 # On s390x, the C compiler may be generating 64-bit (= s390x) code
8124 # or 31-bit (= s390) code.
8125 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8126 /* end confdefs.h. */
8127 #if defined __LP64__ || defined __s390x__
8134 if ac_fn_c_try_compile "$LINENO"; then :
8135 gl_cv_host_cpu_c_abi=s390x
8137 gl_cv_host_cpu_c_abi=s390
8139 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8143 # UltraSPARCs running Linux have `uname -m` = "sparc64", but the
8144 # C compiler still generates 32-bit code.
8145 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8146 /* end confdefs.h. */
8147 #if defined __sparcv9 || defined __arch64__
8154 if ac_fn_c_try_compile "$LINENO"; then :
8155 gl_cv_host_cpu_c_abi=sparc64
8157 gl_cv_host_cpu_c_abi=sparc
8159 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8163 gl_cv_host_cpu_c_abi="$host_cpu"
8168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_host_cpu_c_abi" >&5
8169 $as_echo "$gl_cv_host_cpu_c_abi" >&6; }
8171 HOST_CPU=`echo "$gl_cv_host_cpu_c_abi" | sed -e 's/-.*//'`
8172 HOST_CPU_C_ABI="$gl_cv_host_cpu_c_abi"
8177 # AC_DEFINE_UNQUOTED([__${HOST_CPU}__])
8178 # AC_DEFINE_UNQUOTED([__${HOST_CPU_C_ABI}__])
8179 # earlier, but KAI C++ 3.2d doesn't like this.
8180 sed -e 's/-/_/g' >> confdefs.h <<EOF
8181 #ifndef __${HOST_CPU}__
8182 #define __${HOST_CPU}__ 1
8184 #ifndef __${HOST_CPU_C_ABI}__
8185 #define __${HOST_CPU_C_ABI}__ 1
8203 if test $gl_cv_have_include_next = yes; then
8204 gl_cv_next_limits_h='<'limits.h'>'
8206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <limits.h>" >&5
8207 $as_echo_n "checking absolute name of <limits.h>... " >&6; }
8208 if ${gl_cv_next_limits_h+:} false; then :
8209 $as_echo_n "(cached) " >&6
8212 if test $ac_cv_header_limits_h = yes; then
8217 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8218 /* end confdefs.h. */
8222 aix*) gl_absname_cpp="$ac_cpp -C" ;;
8223 *) gl_absname_cpp="$ac_cpp" ;;
8228 gl_dirsep_regex='[/\\]'
8231 gl_dirsep_regex='\/'
8234 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
8235 gl_header_literal_regex=`echo 'limits.h' \
8236 | sed -e "$gl_make_literal_regex_sed"`
8237 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
8238 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
8244 gl_cv_absolute_limits_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
8245 sed -n "$gl_absolute_header_sed"`
8247 gl_header=$gl_cv_absolute_limits_h
8248 gl_cv_next_limits_h='"'$gl_header'"'
8250 gl_cv_next_limits_h='<'limits.h'>'
8255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_limits_h" >&5
8256 $as_echo "$gl_cv_next_limits_h" >&6; }
8258 NEXT_LIMITS_H=$gl_cv_next_limits_h
8260 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
8261 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
8262 gl_next_as_first_directive='<'limits.h'>'
8264 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
8265 gl_next_as_first_directive=$gl_cv_next_limits_h
8267 NEXT_AS_FIRST_DIRECTIVE_LIMITS_H=$gl_next_as_first_directive
8273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether limits.h has LLONG_MAX, WORD_BIT, ULLONG_WIDTH etc." >&5
8274 $as_echo_n "checking whether limits.h has LLONG_MAX, WORD_BIT, ULLONG_WIDTH etc.... " >&6; }
8275 if ${gl_cv_header_limits_width+:} false; then :
8276 $as_echo_n "(cached) " >&6
8278 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8279 /* end confdefs.h. */
8280 #ifndef __STDC_WANT_IEC_60559_BFP_EXT__
8281 #define __STDC_WANT_IEC_60559_BFP_EXT__ 1
8284 long long llm = LLONG_MAX;
8286 int ullw = ULLONG_WIDTH;
8296 if ac_fn_c_try_compile "$LINENO"; then :
8297 gl_cv_header_limits_width=yes
8299 gl_cv_header_limits_width=no
8301 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_limits_width" >&5
8304 $as_echo "$gl_cv_header_limits_width" >&6; }
8305 if test "$gl_cv_header_limits_width" = yes; then
8311 if test -n "$LIMITS_H"; then
8312 GL_GENERATE_LIMITS_H_TRUE=
8313 GL_GENERATE_LIMITS_H_FALSE='#'
8315 GL_GENERATE_LIMITS_H_TRUE='#'
8316 GL_GENERATE_LIMITS_H_FALSE=
8321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether malloc, realloc, calloc are POSIX compliant" >&5
8322 $as_echo_n "checking whether malloc, realloc, calloc are POSIX compliant... " >&6; }
8323 if ${gl_cv_func_malloc_posix+:} false; then :
8324 $as_echo_n "(cached) " >&6
8327 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8328 /* end confdefs.h. */
8333 #if defined _WIN32 && ! defined __CYGWIN__
8341 if ac_fn_c_try_compile "$LINENO"; then :
8342 gl_cv_func_malloc_posix=yes
8344 gl_cv_func_malloc_posix=no
8346 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_malloc_posix" >&5
8350 $as_echo "$gl_cv_func_malloc_posix" >&6; }
8356 gl_cv_c_multiarch=no
8357 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8358 /* end confdefs.h. */
8359 #ifndef __APPLE_CC__
8360 not a universal capable compiler
8365 if ac_fn_c_try_compile "$LINENO"; then :
8369 for word in ${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS}; do
8370 if test -n "$prev"; then
8372 i?86 | x86_64 | ppc | ppc64)
8373 if test -z "$arch" || test "$arch" = "$word"; then
8376 gl_cv_c_multiarch=yes
8382 if test "x$word" = "x-arch"; then
8389 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8390 if test $gl_cv_c_multiarch = yes; then
8391 APPLE_UNIVERSAL_BUILD=1
8393 APPLE_UNIVERSAL_BUILD=0
8397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
8398 $as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
8399 if ${ac_cv_header_stdbool_h+:} false; then :
8400 $as_echo_n "(cached) " >&6
8402 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8403 /* end confdefs.h. */
8405 #include <stdbool.h>
8412 "error: bool is not defined"
8415 "error: false is not defined"
8418 "error: false is not 0"
8421 "error: true is not defined"
8424 "error: true is not 1"
8428 #ifndef __bool_true_false_are_defined
8429 "error: __bool_true_false_are_defined is not defined"
8432 struct s { Bool s: 1; Bool t; bool u: 1; bool v; } s;
8434 char a[true == 1 ? 1 : -1];
8435 char b[false == 0 ? 1 : -1];
8436 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
8437 char d[(bool) 0.5 == true ? 1 : -1];
8438 /* See body of main program for 'e'. */
8439 char f[(Bool) 0.0 == false ? 1 : -1];
8441 char h[sizeof (Bool)];
8443 enum { j = false, k = true, l = false * true, m = true * 256 };
8444 /* The following fails for
8445 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
8447 char o[sizeof n == m * sizeof n[0] ? 1 : -1];
8448 char p[-1 - (Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
8449 /* Catch a bug in an HP-UX C compiler. See
8450 https://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
8451 https://lists.gnu.org/r/bug-coreutils/2005-11/msg00161.html
8462 *pq |= q; *pq |= ! q;
8463 *qq |= q; *qq |= ! q;
8464 /* Refer to every declared value, to avoid compiler optimizations. */
8465 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
8466 + !m + !n + !o + !p + !q + !pq + !qq);
8472 if ac_fn_c_try_compile "$LINENO"; then :
8473 ac_cv_header_stdbool_h=yes
8475 ac_cv_header_stdbool_h=no
8477 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
8480 $as_echo "$ac_cv_header_stdbool_h" >&6; }
8481 ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
8482 if test "x$ac_cv_type__Bool" = xyes; then :
8484 cat >>confdefs.h <<_ACEOF
8485 #define HAVE__BOOL 1
8498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5
8499 $as_echo_n "checking for wchar_t... " >&6; }
8500 if ${gt_cv_c_wchar_t+:} false; then :
8501 $as_echo_n "(cached) " >&6
8503 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8504 /* end confdefs.h. */
8506 wchar_t foo = (wchar_t)'\0';
8515 if ac_fn_c_try_compile "$LINENO"; then :
8520 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5
8523 $as_echo "$gt_cv_c_wchar_t" >&6; }
8524 if test $gt_cv_c_wchar_t = yes; then
8526 $as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h
8531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wint_t" >&5
8532 $as_echo_n "checking for wint_t... " >&6; }
8533 if ${gt_cv_c_wint_t+:} false; then :
8534 $as_echo_n "(cached) " >&6
8536 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8537 /* end confdefs.h. */
8539 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
8541 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be included
8542 before <wchar.h>. */
8547 wint_t foo = (wchar_t)'\0';
8556 if ac_fn_c_try_compile "$LINENO"; then :
8561 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wint_t" >&5
8564 $as_echo "$gt_cv_c_wint_t" >&6; }
8565 if test $gt_cv_c_wint_t = yes; then
8567 $as_echo "#define HAVE_WINT_T 1" >>confdefs.h
8570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether wint_t is too small" >&5
8571 $as_echo_n "checking whether wint_t is too small... " >&6; }
8572 if ${gl_cv_type_wint_t_too_small+:} false; then :
8573 $as_echo_n "(cached) " >&6
8575 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8576 /* end confdefs.h. */
8578 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
8580 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
8581 included before <wchar.h>. */
8582 #if !(defined __GLIBC__ && !defined __UCLIBC__)
8583 # include <stddef.h>
8588 int verify[sizeof (wint_t) < sizeof (int) ? -1 : 1];
8598 if ac_fn_c_try_compile "$LINENO"; then :
8599 gl_cv_type_wint_t_too_small=no
8601 gl_cv_type_wint_t_too_small=yes
8603 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_type_wint_t_too_small" >&5
8606 $as_echo "$gl_cv_type_wint_t_too_small" >&6; }
8607 if test $gl_cv_type_wint_t_too_small = yes; then
8608 GNULIB_OVERRIDES_WINT_T=1
8610 GNULIB_OVERRIDES_WINT_T=0
8613 GNULIB_OVERRIDES_WINT_T=0
8627 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
8630 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
8634 if test $ac_cv_header_wchar_h = yes; then
8641 if test $ac_cv_header_inttypes_h = yes; then
8648 if test $ac_cv_header_sys_types_h = yes; then
8664 if test $gl_cv_have_include_next = yes; then
8665 gl_cv_next_stdint_h='<'stdint.h'>'
8667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdint.h>" >&5
8668 $as_echo_n "checking absolute name of <stdint.h>... " >&6; }
8669 if ${gl_cv_next_stdint_h+:} false; then :
8670 $as_echo_n "(cached) " >&6
8673 if test $ac_cv_header_stdint_h = yes; then
8678 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8679 /* end confdefs.h. */
8683 aix*) gl_absname_cpp="$ac_cpp -C" ;;
8684 *) gl_absname_cpp="$ac_cpp" ;;
8689 gl_dirsep_regex='[/\\]'
8692 gl_dirsep_regex='\/'
8695 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
8696 gl_header_literal_regex=`echo 'stdint.h' \
8697 | sed -e "$gl_make_literal_regex_sed"`
8698 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
8699 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
8705 gl_cv_absolute_stdint_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
8706 sed -n "$gl_absolute_header_sed"`
8708 gl_header=$gl_cv_absolute_stdint_h
8709 gl_cv_next_stdint_h='"'$gl_header'"'
8711 gl_cv_next_stdint_h='<'stdint.h'>'
8716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdint_h" >&5
8717 $as_echo "$gl_cv_next_stdint_h" >&6; }
8719 NEXT_STDINT_H=$gl_cv_next_stdint_h
8721 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
8722 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
8723 gl_next_as_first_directive='<'stdint.h'>'
8725 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
8726 gl_next_as_first_directive=$gl_cv_next_stdint_h
8728 NEXT_AS_FIRST_DIRECTIVE_STDINT_H=$gl_next_as_first_directive
8733 if test $ac_cv_header_stdint_h = yes; then
8740 if test $ac_cv_header_stdint_h = yes; then
8741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stdint.h conforms to C99" >&5
8742 $as_echo_n "checking whether stdint.h conforms to C99... " >&6; }
8743 if ${gl_cv_header_working_stdint_h+:} false; then :
8744 $as_echo_n "(cached) " >&6
8746 gl_cv_header_working_stdint_h=no
8747 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8748 /* end confdefs.h. */
8751 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
8752 #define __STDC_CONSTANT_MACROS 1
8753 #define __STDC_LIMIT_MACROS 1
8755 /* Dragonfly defines WCHAR_MIN, WCHAR_MAX only in <wchar.h>. */
8756 #if !(defined WCHAR_MIN && defined WCHAR_MAX)
8757 #error "WCHAR_MIN, WCHAR_MAX not defined in <stdint.h>"
8761 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
8762 included before <wchar.h>. */
8773 int8_t a1 = INT8_MAX;
8774 int8_t a1min = INT8_MIN;
8777 int16_t a2 = INT16_MAX;
8778 int16_t a2min = INT16_MIN;
8781 int32_t a3 = INT32_MAX;
8782 int32_t a3min = INT32_MIN;
8785 int64_t a4 = INT64_MAX;
8786 int64_t a4min = INT64_MIN;
8789 uint8_t b1 = UINT8_MAX;
8791 typedef int b1[(unsigned char) -1 != 255 ? 1 : -1];
8794 uint16_t b2 = UINT16_MAX;
8797 uint32_t b3 = UINT32_MAX;
8800 uint64_t b4 = UINT64_MAX;
8802 int_least8_t c1 = INT8_C (0x7f);
8803 int_least8_t c1max = INT_LEAST8_MAX;
8804 int_least8_t c1min = INT_LEAST8_MIN;
8805 int_least16_t c2 = INT16_C (0x7fff);
8806 int_least16_t c2max = INT_LEAST16_MAX;
8807 int_least16_t c2min = INT_LEAST16_MIN;
8808 int_least32_t c3 = INT32_C (0x7fffffff);
8809 int_least32_t c3max = INT_LEAST32_MAX;
8810 int_least32_t c3min = INT_LEAST32_MIN;
8811 int_least64_t c4 = INT64_C (0x7fffffffffffffff);
8812 int_least64_t c4max = INT_LEAST64_MAX;
8813 int_least64_t c4min = INT_LEAST64_MIN;
8814 uint_least8_t d1 = UINT8_C (0xff);
8815 uint_least8_t d1max = UINT_LEAST8_MAX;
8816 uint_least16_t d2 = UINT16_C (0xffff);
8817 uint_least16_t d2max = UINT_LEAST16_MAX;
8818 uint_least32_t d3 = UINT32_C (0xffffffff);
8819 uint_least32_t d3max = UINT_LEAST32_MAX;
8820 uint_least64_t d4 = UINT64_C (0xffffffffffffffff);
8821 uint_least64_t d4max = UINT_LEAST64_MAX;
8822 int_fast8_t e1 = INT_FAST8_MAX;
8823 int_fast8_t e1min = INT_FAST8_MIN;
8824 int_fast16_t e2 = INT_FAST16_MAX;
8825 int_fast16_t e2min = INT_FAST16_MIN;
8826 int_fast32_t e3 = INT_FAST32_MAX;
8827 int_fast32_t e3min = INT_FAST32_MIN;
8828 int_fast64_t e4 = INT_FAST64_MAX;
8829 int_fast64_t e4min = INT_FAST64_MIN;
8830 uint_fast8_t f1 = UINT_FAST8_MAX;
8831 uint_fast16_t f2 = UINT_FAST16_MAX;
8832 uint_fast32_t f3 = UINT_FAST32_MAX;
8833 uint_fast64_t f4 = UINT_FAST64_MAX;
8835 intptr_t g = INTPTR_MAX;
8836 intptr_t gmin = INTPTR_MIN;
8839 uintptr_t h = UINTPTR_MAX;
8841 intmax_t i = INTMAX_MAX;
8842 uintmax_t j = UINTMAX_MAX;
8844 /* Check that SIZE_MAX has the correct type, if possible. */
8845 #if 201112 <= __STDC_VERSION__
8846 int k = _Generic (SIZE_MAX, size_t: 0);
8847 #elif (2 <= __GNUC__ || defined __IBM__TYPEOF__ \
8848 || (0x5110 <= __SUNPRO_C && !__STDC__))
8850 extern __typeof__ (SIZE_MAX) k;
8853 #include <limits.h> /* for CHAR_BIT */
8854 #define TYPE_MINIMUM(t) \
8855 ((t) ((t) 0 < (t) -1 ? (t) 0 : ~ TYPE_MAXIMUM (t)))
8856 #define TYPE_MAXIMUM(t) \
8857 ((t) ((t) 0 < (t) -1 \
8859 : ((((t) 1 << (sizeof (t) * CHAR_BIT - 2)) - 1) * 2 + 1)))
8862 PTRDIFF_MIN == TYPE_MINIMUM (ptrdiff_t)
8863 && PTRDIFF_MAX == TYPE_MAXIMUM (ptrdiff_t)
8865 /* Detect bug in FreeBSD 6.0 / ia64. */
8866 int check_SIG_ATOMIC:
8867 SIG_ATOMIC_MIN == TYPE_MINIMUM (sig_atomic_t)
8868 && SIG_ATOMIC_MAX == TYPE_MAXIMUM (sig_atomic_t)
8870 int check_SIZE: SIZE_MAX == TYPE_MAXIMUM (size_t) ? 1 : -1;
8872 WCHAR_MIN == TYPE_MINIMUM (wchar_t)
8873 && WCHAR_MAX == TYPE_MAXIMUM (wchar_t)
8875 /* Detect bug in mingw. */
8877 WINT_MIN == TYPE_MINIMUM (wint_t)
8878 && WINT_MAX == TYPE_MAXIMUM (wint_t)
8881 /* Detect bugs in glibc 2.4 and Solaris 10 stdint.h, among others. */
8883 (-1 < UINT8_C (0)) == (-1 < (uint_least8_t) 0) ? 1 : -1;
8885 (-1 < UINT16_C (0)) == (-1 < (uint_least16_t) 0) ? 1 : -1;
8887 /* Detect bugs in OpenBSD 3.9 stdint.h. */
8889 int check_uint8: (uint8_t) -1 == UINT8_MAX ? 1 : -1;
8892 int check_uint16: (uint16_t) -1 == UINT16_MAX ? 1 : -1;
8895 int check_uint32: (uint32_t) -1 == UINT32_MAX ? 1 : -1;
8898 int check_uint64: (uint64_t) -1 == UINT64_MAX ? 1 : -1;
8900 int check_uint_least8: (uint_least8_t) -1 == UINT_LEAST8_MAX ? 1 : -1;
8901 int check_uint_least16: (uint_least16_t) -1 == UINT_LEAST16_MAX ? 1 : -1;
8902 int check_uint_least32: (uint_least32_t) -1 == UINT_LEAST32_MAX ? 1 : -1;
8903 int check_uint_least64: (uint_least64_t) -1 == UINT_LEAST64_MAX ? 1 : -1;
8904 int check_uint_fast8: (uint_fast8_t) -1 == UINT_FAST8_MAX ? 1 : -1;
8905 int check_uint_fast16: (uint_fast16_t) -1 == UINT_FAST16_MAX ? 1 : -1;
8906 int check_uint_fast32: (uint_fast32_t) -1 == UINT_FAST32_MAX ? 1 : -1;
8907 int check_uint_fast64: (uint_fast64_t) -1 == UINT_FAST64_MAX ? 1 : -1;
8908 int check_uintptr: (uintptr_t) -1 == UINTPTR_MAX ? 1 : -1;
8909 int check_uintmax: (uintmax_t) -1 == UINTMAX_MAX ? 1 : -1;
8910 int check_size: (size_t) -1 == SIZE_MAX ? 1 : -1;
8921 if ac_fn_c_try_compile "$LINENO"; then :
8922 if test "$cross_compiling" = yes; then :
8924 # Guess yes on native Windows.
8925 mingw*) gl_cv_header_working_stdint_h="guessing yes" ;;
8926 # In general, assume it works.
8927 *) gl_cv_header_working_stdint_h="guessing yes" ;;
8931 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8932 /* end confdefs.h. */
8935 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
8936 #define __STDC_CONSTANT_MACROS 1
8937 #define __STDC_LIMIT_MACROS 1
8941 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
8942 included before <wchar.h>. */
8954 #define MVAL(macro) MVAL1(macro)
8955 #define MVAL1(expression) #expression
8956 static const char *macro_values[] =
8990 for (mv = macro_values; *mv != NULL; mv++)
8992 const char *value = *mv;
8993 /* Test whether it looks like a cast expression. */
8994 if (strncmp (value, "((unsigned int)"/*)*/, 15) == 0
8995 || strncmp (value, "((unsigned short)"/*)*/, 17) == 0
8996 || strncmp (value, "((unsigned char)"/*)*/, 16) == 0
8997 || strncmp (value, "((int)"/*)*/, 6) == 0
8998 || strncmp (value, "((signed short)"/*)*/, 15) == 0
8999 || strncmp (value, "((signed char)"/*)*/, 14) == 0)
9000 return mv - macro_values + 1;
9008 if ac_fn_c_try_run "$LINENO"; then :
9009 gl_cv_header_working_stdint_h=yes
9011 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9012 conftest.$ac_objext conftest.beam conftest.$ac_ext
9017 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_stdint_h" >&5
9021 $as_echo "$gl_cv_header_working_stdint_h" >&6; }
9025 HAVE_SYS_BITYPES_H=0
9026 HAVE_SYS_INTTYPES_H=0
9028 case "$gl_cv_header_working_stdint_h" in
9031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stdint.h predates C++11" >&5
9032 $as_echo_n "checking whether stdint.h predates C++11... " >&6; }
9033 if ${gl_cv_header_stdint_predates_cxx11_h+:} false; then :
9034 $as_echo_n "(cached) " >&6
9036 gl_cv_header_stdint_predates_cxx11_h=yes
9037 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9038 /* end confdefs.h. */
9041 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
9045 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
9046 included before <wchar.h>. */
9056 intmax_t im = INTMAX_MAX;
9057 int32_t i32 = INT32_C (0x7fffffff);
9067 if ac_fn_c_try_compile "$LINENO"; then :
9068 gl_cv_header_stdint_predates_cxx11_h=no
9070 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_stdint_predates_cxx11_h" >&5
9073 $as_echo "$gl_cv_header_stdint_predates_cxx11_h" >&6; }
9075 if test "$gl_cv_header_stdint_predates_cxx11_h" = yes; then
9077 $as_echo "#define __STDC_CONSTANT_MACROS 1" >>confdefs.h
9080 $as_echo "#define __STDC_LIMIT_MACROS 1" >>confdefs.h
9083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stdint.h has UINTMAX_WIDTH etc." >&5
9084 $as_echo_n "checking whether stdint.h has UINTMAX_WIDTH etc.... " >&6; }
9085 if ${gl_cv_header_stdint_width+:} false; then :
9086 $as_echo_n "(cached) " >&6
9088 gl_cv_header_stdint_width=no
9089 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9090 /* end confdefs.h. */
9092 /* Work if build is not clean. */
9093 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1
9094 #ifndef __STDC_WANT_IEC_60559_BFP_EXT__
9095 #define __STDC_WANT_IEC_60559_BFP_EXT__ 1
9099 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
9100 included before <wchar.h>. */
9109 int iw = UINTMAX_WIDTH;
9119 if ac_fn_c_try_compile "$LINENO"; then :
9120 gl_cv_header_stdint_width=yes
9122 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_stdint_width" >&5
9125 $as_echo "$gl_cv_header_stdint_width" >&6; }
9126 if test "$gl_cv_header_stdint_width" = yes; then
9131 for ac_header in sys/inttypes.h sys/bitypes.h
9133 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9134 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9135 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
9136 cat >>confdefs.h <<_ACEOF
9137 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9144 if test $ac_cv_header_sys_inttypes_h = yes; then
9145 HAVE_SYS_INTTYPES_H=1
9147 if test $ac_cv_header_sys_bitypes_h = yes; then
9148 HAVE_SYS_BITYPES_H=1
9152 if test $APPLE_UNIVERSAL_BUILD = 0; then
9155 for gltype in ptrdiff_t size_t ; do
9156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
9157 $as_echo_n "checking for bit size of $gltype... " >&6; }
9158 if eval \${gl_cv_bitsizeof_${gltype}+:} false; then :
9159 $as_echo_n "(cached) " >&6
9161 if ac_fn_c_compute_int "$LINENO" "sizeof ($gltype) * CHAR_BIT" "result" "
9162 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
9163 included before <wchar.h>. */
9172 #include <limits.h>"; then :
9178 eval gl_cv_bitsizeof_${gltype}=\$result
9181 eval ac_res=\$gl_cv_bitsizeof_${gltype}
9182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
9183 $as_echo "$ac_res" >&6; }
9184 eval result=\$gl_cv_bitsizeof_${gltype}
9185 if test $result = unknown; then
9188 GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
9189 cat >>confdefs.h <<_ACEOF
9190 #define BITSIZEOF_${GLTYPE} $result
9193 eval BITSIZEOF_${GLTYPE}=\$result
9200 for gltype in sig_atomic_t wchar_t wint_t ; do
9201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
9202 $as_echo_n "checking for bit size of $gltype... " >&6; }
9203 if eval \${gl_cv_bitsizeof_${gltype}+:} false; then :
9204 $as_echo_n "(cached) " >&6
9206 if ac_fn_c_compute_int "$LINENO" "sizeof ($gltype) * CHAR_BIT" "result" "
9207 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
9208 included before <wchar.h>. */
9217 #include <limits.h>"; then :
9223 eval gl_cv_bitsizeof_${gltype}=\$result
9226 eval ac_res=\$gl_cv_bitsizeof_${gltype}
9227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
9228 $as_echo "$ac_res" >&6; }
9229 eval result=\$gl_cv_bitsizeof_${gltype}
9230 if test $result = unknown; then
9233 GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
9234 cat >>confdefs.h <<_ACEOF
9235 #define BITSIZEOF_${GLTYPE} $result
9238 eval BITSIZEOF_${GLTYPE}=\$result
9244 for gltype in sig_atomic_t wchar_t wint_t ; do
9245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gltype is signed" >&5
9246 $as_echo_n "checking whether $gltype is signed... " >&6; }
9247 if eval \${gl_cv_type_${gltype}_signed+:} false; then :
9248 $as_echo_n "(cached) " >&6
9250 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9251 /* end confdefs.h. */
9253 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
9254 included before <wchar.h>. */
9263 int verify[2 * (($gltype) -1 < ($gltype) 0) - 1];
9272 if ac_fn_c_try_compile "$LINENO"; then :
9277 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9278 eval gl_cv_type_${gltype}_signed=\$result
9281 eval ac_res=\$gl_cv_type_${gltype}_signed
9282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
9283 $as_echo "$ac_res" >&6; }
9284 eval result=\$gl_cv_type_${gltype}_signed
9285 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
9286 if test "$result" = yes; then
9287 cat >>confdefs.h <<_ACEOF
9288 #define HAVE_SIGNED_${GLTYPE} 1
9291 eval HAVE_SIGNED_${GLTYPE}=1
9293 eval HAVE_SIGNED_${GLTYPE}=0
9298 gl_cv_type_ptrdiff_t_signed=yes
9299 gl_cv_type_size_t_signed=no
9300 if test $APPLE_UNIVERSAL_BUILD = 0; then
9303 for gltype in ptrdiff_t size_t ; do
9304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
9305 $as_echo_n "checking for $gltype integer literal suffix... " >&6; }
9306 if eval \${gl_cv_type_${gltype}_suffix+:} false; then :
9307 $as_echo_n "(cached) " >&6
9309 eval gl_cv_type_${gltype}_suffix=no
9310 eval result=\$gl_cv_type_${gltype}_signed
9311 if test "$result" = yes; then
9316 for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do
9319 l) gltype1='long int';;
9320 ll) gltype1='long long int';;
9321 i64) gltype1='__int64';;
9322 u) gltype1='unsigned int';;
9323 ul) gltype1='unsigned long int';;
9324 ull) gltype1='unsigned long long int';;
9325 ui64)gltype1='unsigned __int64';;
9327 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9328 /* end confdefs.h. */
9330 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
9331 included before <wchar.h>. */
9341 extern $gltype1 foo;
9350 if ac_fn_c_try_compile "$LINENO"; then :
9351 eval gl_cv_type_${gltype}_suffix=\$glsuf
9353 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9354 eval result=\$gl_cv_type_${gltype}_suffix
9355 test "$result" != no && break
9358 eval ac_res=\$gl_cv_type_${gltype}_suffix
9359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
9360 $as_echo "$ac_res" >&6; }
9361 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
9362 eval result=\$gl_cv_type_${gltype}_suffix
9363 test "$result" = no && result=
9364 eval ${GLTYPE}_SUFFIX=\$result
9365 cat >>confdefs.h <<_ACEOF
9366 #define ${GLTYPE}_SUFFIX $result
9375 for gltype in sig_atomic_t wchar_t wint_t ; do
9376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
9377 $as_echo_n "checking for $gltype integer literal suffix... " >&6; }
9378 if eval \${gl_cv_type_${gltype}_suffix+:} false; then :
9379 $as_echo_n "(cached) " >&6
9381 eval gl_cv_type_${gltype}_suffix=no
9382 eval result=\$gl_cv_type_${gltype}_signed
9383 if test "$result" = yes; then
9388 for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do
9391 l) gltype1='long int';;
9392 ll) gltype1='long long int';;
9393 i64) gltype1='__int64';;
9394 u) gltype1='unsigned int';;
9395 ul) gltype1='unsigned long int';;
9396 ull) gltype1='unsigned long long int';;
9397 ui64)gltype1='unsigned __int64';;
9399 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9400 /* end confdefs.h. */
9402 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
9403 included before <wchar.h>. */
9413 extern $gltype1 foo;
9422 if ac_fn_c_try_compile "$LINENO"; then :
9423 eval gl_cv_type_${gltype}_suffix=\$glsuf
9425 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9426 eval result=\$gl_cv_type_${gltype}_suffix
9427 test "$result" != no && break
9430 eval ac_res=\$gl_cv_type_${gltype}_suffix
9431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
9432 $as_echo "$ac_res" >&6; }
9433 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
9434 eval result=\$gl_cv_type_${gltype}_suffix
9435 test "$result" = no && result=
9436 eval ${GLTYPE}_SUFFIX=\$result
9437 cat >>confdefs.h <<_ACEOF
9438 #define ${GLTYPE}_SUFFIX $result
9445 if test $GNULIB_OVERRIDES_WINT_T = 1; then
9455 if test -n "$LIMITS_H"; then
9456 GL_GENERATE_LIMITS_H_TRUE=
9457 GL_GENERATE_LIMITS_H_FALSE='#'
9459 GL_GENERATE_LIMITS_H_TRUE='#'
9460 GL_GENERATE_LIMITS_H_FALSE=
9469 if test -n "$STDINT_H"; then
9470 GL_GENERATE_STDINT_H_TRUE=
9471 GL_GENERATE_STDINT_H_FALSE='#'
9473 GL_GENERATE_STDINT_H_TRUE='#'
9474 GL_GENERATE_STDINT_H_FALSE=
9487 GNULIB_FPRINTF_POSIX=0;
9503 GNULIB_OBSTACK_PRINTF=0;
9504 GNULIB_OBSTACK_PRINTF_POSIX=0;
9509 GNULIB_PRINTF_POSIX=0;
9518 GNULIB_SPRINTF_POSIX=0;
9519 GNULIB_STDIO_H_NONBLOCKING=0;
9520 GNULIB_STDIO_H_SIGPIPE=0;
9527 GNULIB_VFPRINTF_POSIX=0;
9529 GNULIB_VPRINTF_POSIX=0;
9531 GNULIB_VSPRINTF_POSIX=0;
9535 HAVE_DECL_GETDELIM=1;
9536 HAVE_DECL_GETLINE=1;
9537 HAVE_DECL_OBSTACK_PRINTF=1;
9538 HAVE_DECL_SNPRINTF=1;
9539 HAVE_DECL_VSNPRINTF=1;
9562 REPLACE_OBSTACK_PRINTF=0;
9571 REPLACE_STDIO_READ_FUNCS=0;
9572 REPLACE_STDIO_WRITE_FUNCS=0;
9574 REPLACE_VASPRINTF=0;
9578 REPLACE_VSNPRINTF=0;
9581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
9582 $as_echo_n "checking for C/C++ restrict keyword... " >&6; }
9583 if ${ac_cv_c_restrict+:} false; then :
9584 $as_echo_n "(cached) " >&6
9587 # The order here caters to the fact that C++ does not require restrict.
9588 for ac_kw in __restrict __restrict__ _Restrict restrict; do
9589 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9590 /* end confdefs.h. */
9591 typedef int *int_ptr;
9592 int foo (int_ptr $ac_kw ip) { return ip[0]; }
9593 int bar (int [$ac_kw]); /* Catch GCC bug 14050. */
9594 int bar (int ip[$ac_kw]) { return ip[0]; }
9602 return foo (t) + bar (t);
9608 if ac_fn_c_try_compile "$LINENO"; then :
9609 ac_cv_c_restrict=$ac_kw
9611 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9612 test "$ac_cv_c_restrict" != no && break
9616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
9617 $as_echo "$ac_cv_c_restrict" >&6; }
9619 case $ac_cv_c_restrict in
9621 no) $as_echo "#define restrict /**/" >>confdefs.h
9623 *) cat >>confdefs.h <<_ACEOF
9624 #define restrict $ac_cv_c_restrict
9630 GNULIB_EXPLICIT_BZERO=0;
9648 GNULIB_STRCASESTR=0;
9655 GNULIB_MBSCASECMP=0;
9656 GNULIB_MBSNCASECMP=0;
9657 GNULIB_MBSPCASECMP=0;
9658 GNULIB_MBSCASESTR=0;
9665 GNULIB_STRERROR_R=0;
9667 GNULIB_STRVERSCMP=0;
9669 HAVE_EXPLICIT_BZERO=1;
9675 HAVE_DECL_MEMRCHR=1;
9681 HAVE_DECL_STRNDUP=1;
9682 HAVE_DECL_STRNLEN=1;
9686 HAVE_DECL_STRTOK_R=1;
9687 HAVE_DECL_STRERROR_R=1;
9688 HAVE_DECL_STRSIGNAL=1;
9693 REPLACE_STRCHRNUL=0;
9699 REPLACE_STRCASESTR=0;
9702 REPLACE_STRERROR_R=0;
9703 REPLACE_STRSIGNAL=0;
9704 UNDEFINE_STRTOK_R=0;
9707 REPLACE_STRERROR_0=0
9708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strerror(0) succeeds" >&5
9709 $as_echo_n "checking whether strerror(0) succeeds... " >&6; }
9710 if ${gl_cv_func_strerror_0_works+:} false; then :
9711 $as_echo_n "(cached) " >&6
9713 if test "$cross_compiling" = yes; then :
9715 # Guess yes on glibc systems.
9716 *-gnu* | gnu*) gl_cv_func_strerror_0_works="guessing yes" ;;
9717 # Guess yes on musl systems.
9718 *-musl*) gl_cv_func_strerror_0_works="guessing yes" ;;
9719 # Guess yes on native Windows.
9720 mingw*) gl_cv_func_strerror_0_works="guessing yes" ;;
9721 # If we don't know, obey --enable-cross-guesses.
9722 *) gl_cv_func_strerror_0_works="$gl_cross_guess_normal" ;;
9726 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9727 /* end confdefs.h. */
9738 if (!*str) result |= 1;
9739 if (errno) result |= 2;
9740 if (strstr (str, "nknown") || strstr (str, "ndefined"))
9747 if ac_fn_c_try_run "$LINENO"; then :
9748 gl_cv_func_strerror_0_works=yes
9750 gl_cv_func_strerror_0_works=no
9752 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9753 conftest.$ac_objext conftest.beam conftest.$ac_ext
9758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_strerror_0_works" >&5
9759 $as_echo "$gl_cv_func_strerror_0_works" >&6; }
9760 case "$gl_cv_func_strerror_0_works" in
9763 REPLACE_STRERROR_0=1
9765 $as_echo "#define REPLACE_STRERROR_0 1" >>confdefs.h
9781 if test $gl_cv_have_include_next = yes; then
9782 gl_cv_next_string_h='<'string.h'>'
9784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <string.h>" >&5
9785 $as_echo_n "checking absolute name of <string.h>... " >&6; }
9786 if ${gl_cv_next_string_h+:} false; then :
9787 $as_echo_n "(cached) " >&6
9792 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9793 /* end confdefs.h. */
9797 aix*) gl_absname_cpp="$ac_cpp -C" ;;
9798 *) gl_absname_cpp="$ac_cpp" ;;
9803 gl_dirsep_regex='[/\\]'
9806 gl_dirsep_regex='\/'
9809 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
9810 gl_header_literal_regex=`echo 'string.h' \
9811 | sed -e "$gl_make_literal_regex_sed"`
9812 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
9813 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
9819 gl_cv_absolute_string_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
9820 sed -n "$gl_absolute_header_sed"`
9822 gl_header=$gl_cv_absolute_string_h
9823 gl_cv_next_string_h='"'$gl_header'"'
9827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_string_h" >&5
9828 $as_echo "$gl_cv_next_string_h" >&6; }
9830 NEXT_STRING_H=$gl_cv_next_string_h
9832 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
9833 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
9834 gl_next_as_first_directive='<'string.h'>'
9836 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
9837 gl_next_as_first_directive=$gl_cv_next_string_h
9839 NEXT_AS_FIRST_DIRECTIVE_STRING_H=$gl_next_as_first_directive
9853 WINDOWS_64_BIT_OFF_T=0
9859 $as_echo "#define _USE_STD_STAT 1" >>confdefs.h
9871 if test $gl_cv_have_include_next = yes; then
9872 gl_cv_next_sys_types_h='<'sys/types.h'>'
9874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/types.h>" >&5
9875 $as_echo_n "checking absolute name of <sys/types.h>... " >&6; }
9876 if ${gl_cv_next_sys_types_h+:} false; then :
9877 $as_echo_n "(cached) " >&6
9882 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9883 /* end confdefs.h. */
9884 #include <sys/types.h>
9887 aix*) gl_absname_cpp="$ac_cpp -C" ;;
9888 *) gl_absname_cpp="$ac_cpp" ;;
9893 gl_dirsep_regex='[/\\]'
9896 gl_dirsep_regex='\/'
9899 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
9900 gl_header_literal_regex=`echo 'sys/types.h' \
9901 | sed -e "$gl_make_literal_regex_sed"`
9902 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
9903 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
9909 gl_cv_absolute_sys_types_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
9910 sed -n "$gl_absolute_header_sed"`
9912 gl_header=$gl_cv_absolute_sys_types_h
9913 gl_cv_next_sys_types_h='"'$gl_header'"'
9917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_types_h" >&5
9918 $as_echo "$gl_cv_next_sys_types_h" >&6; }
9920 NEXT_SYS_TYPES_H=$gl_cv_next_sys_types_h
9922 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
9923 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
9924 gl_next_as_first_directive='<'sys/types.h'>'
9926 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
9927 gl_next_as_first_directive=$gl_cv_next_sys_types_h
9929 NEXT_AS_FIRST_DIRECTIVE_SYS_TYPES_H=$gl_next_as_first_directive
9942 WINDOWS_STAT_INODES=0
9948 GL_COND_LIBTOOL_TRUE=
9949 GL_COND_LIBTOOL_FALSE='#'
9951 GL_COND_LIBTOOL_TRUE='#'
9952 GL_COND_LIBTOOL_FALSE=
9955 gl_cond_libtool=false
9968 gl_source_base='lib'
9973 mingw*) REPLACE_ACCESS=1 ;;
9976 if test $REPLACE_ACCESS = 1; then
9985 gl_LIBOBJS="$gl_LIBOBJS access.$ac_objext"
9999 $as_echo "#define GNULIB_TEST_ACCESS 1" >>confdefs.h
10005 if test $ac_cv_func_alloca_works = no; then
10009 # Define an additional variable used in the Makefile substitution.
10010 if test $ac_cv_working_alloca_h = yes; then
10011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca as a compiler built-in" >&5
10012 $as_echo_n "checking for alloca as a compiler built-in... " >&6; }
10013 if ${gl_cv_rpl_alloca+:} false; then :
10014 $as_echo_n "(cached) " >&6
10017 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10018 /* end confdefs.h. */
10020 #if defined __GNUC__ || defined _AIX || defined _MSC_VER
10025 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10026 $EGREP "Need own alloca" >/dev/null 2>&1; then :
10027 gl_cv_rpl_alloca=yes
10029 gl_cv_rpl_alloca=no
10035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_rpl_alloca" >&5
10036 $as_echo "$gl_cv_rpl_alloca" >&6; }
10037 if test $gl_cv_rpl_alloca = yes; then
10039 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
10049 if test -n "$ALLOCA_H"; then
10050 GL_GENERATE_ALLOCA_H_TRUE=
10051 GL_GENERATE_ALLOCA_H_FALSE='#'
10053 GL_GENERATE_ALLOCA_H_TRUE='#'
10054 GL_GENERATE_ALLOCA_H_FALSE=
10058 if test $ac_cv_working_alloca_h = yes; then
10069 if test $HAVE_MSVC_INVALID_PARAMETER_HANDLER = 1; then
10078 if test $ac_cv_header_sys_socket_h != yes; then
10079 for ac_header in winsock2.h
10081 ac_fn_c_check_header_mongrel "$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
10082 if test "x$ac_cv_header_winsock2_h" = xyes; then :
10083 cat >>confdefs.h <<_ACEOF
10084 #define HAVE_WINSOCK2_H 1
10092 if test "$ac_cv_header_winsock2_h" = yes; then
10094 UNISTD_H_HAVE_WINSOCK2_H=1
10095 SYS_IOCTL_H_HAVE_WINSOCK2_H=1
10101 if test $UNISTD_H_HAVE_WINSOCK2_H = 1; then
10107 if test $REPLACE_CLOSE = 1; then
10116 gl_LIBOBJS="$gl_LIBOBJS close.$ac_objext"
10130 $as_echo "#define GNULIB_TEST_CLOSE 1" >>confdefs.h
10140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether // is distinct from /" >&5
10141 $as_echo_n "checking whether // is distinct from /... " >&6; }
10142 if ${gl_cv_double_slash_root+:} false; then :
10143 $as_echo_n "(cached) " >&6
10145 if test x"$cross_compiling" = xyes ; then
10146 # When cross-compiling, there is no way to tell whether // is special
10147 # short of a list of hosts. However, the only known hosts to date
10148 # that have a distinct // are Apollo DomainOS (too old to port to),
10149 # Cygwin, and z/OS. If anyone knows of another system for which // has
10150 # special semantics and is distinct from /, please report it to
10151 # <bug-gnulib@gnu.org>.
10153 *-cygwin | i370-ibm-openedition)
10154 gl_cv_double_slash_root=yes ;;
10156 # Be optimistic and assume that / and // are the same when we
10158 gl_cv_double_slash_root='unknown, assuming no' ;;
10161 set x `ls -di / // 2>/dev/null`
10162 if test "$2" = "$4" && wc //dev/null >/dev/null 2>&1; then
10163 gl_cv_double_slash_root=no
10165 gl_cv_double_slash_root=yes
10169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_double_slash_root" >&5
10170 $as_echo "$gl_cv_double_slash_root" >&6; }
10171 if test "$gl_cv_double_slash_root" = yes; then
10173 $as_echo "#define DOUBLE_SLASH_IS_DISTINCT_ROOT 1" >>confdefs.h
10182 $as_echo "#define HAVE_DUP2 1" >>confdefs.h
10185 if test $HAVE_DUP2 = 1; then
10186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether dup2 works" >&5
10187 $as_echo_n "checking whether dup2 works... " >&6; }
10188 if ${gl_cv_func_dup2_works+:} false; then :
10189 $as_echo_n "(cached) " >&6
10191 if test "$cross_compiling" = yes; then :
10193 mingw*) # on this platform, dup2 always returns 0 for success
10194 gl_cv_func_dup2_works="guessing no" ;;
10195 cygwin*) # on cygwin 1.5.x, dup2(1,1) returns 0
10196 gl_cv_func_dup2_works="guessing no" ;;
10198 # on AIX 7.1 and FreeBSD 6.1, dup2 (1,toobig) gives EMFILE,
10200 gl_cv_func_dup2_works="guessing no" ;;
10201 haiku*) # on Haiku alpha 2, dup2(1, 1) resets FD_CLOEXEC.
10202 gl_cv_func_dup2_works="guessing no" ;;
10203 *-android*) # implemented using dup3(), which fails if oldfd == newfd
10204 gl_cv_func_dup2_works="guessing no" ;;
10205 os2*) # on OS/2 kLIBC, dup2() does not work on a directory fd.
10206 gl_cv_func_dup2_works="guessing no" ;;
10207 *) gl_cv_func_dup2_works="guessing yes" ;;
10210 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10211 /* end confdefs.h. */
10215 #include <limits.h>
10216 #include <sys/resource.h>
10217 #include <unistd.h>
10218 #ifndef RLIM_SAVED_CUR
10219 # define RLIM_SAVED_CUR RLIM_INFINITY
10221 #ifndef RLIM_SAVED_MAX
10222 # define RLIM_SAVED_MAX RLIM_INFINITY
10229 int bad_fd = INT_MAX;
10230 struct rlimit rlim;
10231 if (getrlimit (RLIMIT_NOFILE, &rlim) == 0
10232 && 0 <= rlim.rlim_cur && rlim.rlim_cur <= INT_MAX
10233 && rlim.rlim_cur != RLIM_INFINITY
10234 && rlim.rlim_cur != RLIM_SAVED_MAX
10235 && rlim.rlim_cur != RLIM_SAVED_CUR)
10236 bad_fd = rlim.rlim_cur;
10238 if (fcntl (1, F_SETFD, FD_CLOEXEC) == -1)
10241 if (dup2 (1, 1) != 1)
10244 if (fcntl (1, F_GETFD) != FD_CLOEXEC)
10248 if (dup2 (0, 0) != -1)
10250 /* Many gnulib modules require POSIX conformance of EBADF. */
10251 if (dup2 (2, bad_fd) == -1 && errno != EBADF)
10253 /* Flush out some cygwin core dumps. */
10254 if (dup2 (2, -1) != -1 || errno != EBADF)
10258 /* On OS/2 kLIBC, dup2() does not work on a directory fd. */
10260 int fd = open (".", O_RDONLY);
10263 else if (dup2 (fd, fd + 1) == -1)
10274 if ac_fn_c_try_run "$LINENO"; then :
10275 gl_cv_func_dup2_works=yes
10277 gl_cv_func_dup2_works=no
10279 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10280 conftest.$ac_objext conftest.beam conftest.$ac_ext
10285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_dup2_works" >&5
10286 $as_echo "$gl_cv_func_dup2_works" >&6; }
10287 case "$gl_cv_func_dup2_works" in
10291 for ac_func in setdtablesize
10293 ac_fn_c_check_func "$LINENO" "setdtablesize" "ac_cv_func_setdtablesize"
10294 if test "x$ac_cv_func_setdtablesize" = xyes; then :
10295 cat >>confdefs.h <<_ACEOF
10296 #define HAVE_SETDTABLESIZE 1
10307 if test $HAVE_DUP2 = 0 || test $REPLACE_DUP2 = 1; then
10316 gl_LIBOBJS="$gl_LIBOBJS dup2.$ac_objext"
10331 $as_echo "#define GNULIB_TEST_DUP2 1" >>confdefs.h
10337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for error_at_line" >&5
10338 $as_echo_n "checking for error_at_line... " >&6; }
10339 if ${ac_cv_lib_error_at_line+:} false; then :
10340 $as_echo_n "(cached) " >&6
10342 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10343 /* end confdefs.h. */
10348 error_at_line (0, 0, "", 0, "an error occurred");
10353 if ac_fn_c_try_link "$LINENO"; then :
10354 ac_cv_lib_error_at_line=yes
10356 ac_cv_lib_error_at_line=no
10358 rm -f core conftest.err conftest.$ac_objext \
10359 conftest$ac_exeext conftest.$ac_ext
10361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_error_at_line" >&5
10362 $as_echo "$ac_cv_lib_error_at_line" >&6; }
10364 if test $ac_cv_lib_error_at_line = no; then
10373 gl_LIBOBJS="$gl_LIBOBJS error.$ac_objext"
10382 XGETTEXT_EXTRA_OPTIONS="$XGETTEXT_EXTRA_OPTIONS --flag=error:3:c-format"
10386 XGETTEXT_EXTRA_OPTIONS="$XGETTEXT_EXTRA_OPTIONS --flag=error_at_line:5:c-format"
10394 if test $ac_cv_func_fcntl = no; then
10398 if test $ac_cv_func_fcntl = no; then
10405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fcntl handles F_DUPFD correctly" >&5
10406 $as_echo_n "checking whether fcntl handles F_DUPFD correctly... " >&6; }
10407 if ${gl_cv_func_fcntl_f_dupfd_works+:} false; then :
10408 $as_echo_n "(cached) " >&6
10410 if test "$cross_compiling" = yes; then :
10412 aix* | cygwin* | haiku*)
10413 gl_cv_func_fcntl_f_dupfd_works="guessing no" ;;
10414 *) gl_cv_func_fcntl_f_dupfd_works="guessing yes" ;;
10417 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10418 /* end confdefs.h. */
10421 #include <limits.h>
10422 #include <sys/resource.h>
10423 #include <unistd.h>
10424 #ifndef RLIM_SAVED_CUR
10425 # define RLIM_SAVED_CUR RLIM_INFINITY
10427 #ifndef RLIM_SAVED_MAX
10428 # define RLIM_SAVED_MAX RLIM_INFINITY
10435 int bad_fd = INT_MAX;
10436 struct rlimit rlim;
10437 if (getrlimit (RLIMIT_NOFILE, &rlim) == 0
10438 && 0 <= rlim.rlim_cur && rlim.rlim_cur <= INT_MAX
10439 && rlim.rlim_cur != RLIM_INFINITY
10440 && rlim.rlim_cur != RLIM_SAVED_MAX
10441 && rlim.rlim_cur != RLIM_SAVED_CUR)
10442 bad_fd = rlim.rlim_cur;
10443 if (fcntl (0, F_DUPFD, -1) != -1) result |= 1;
10444 if (errno != EINVAL) result |= 2;
10445 if (fcntl (0, F_DUPFD, bad_fd) != -1) result |= 4;
10446 if (errno != EINVAL) result |= 8;
10447 /* On OS/2 kLIBC, F_DUPFD does not work on a directory fd */
10450 fd = open (".", O_RDONLY);
10453 else if (fcntl (fd, F_DUPFD, STDERR_FILENO + 1) == -1)
10463 if ac_fn_c_try_run "$LINENO"; then :
10464 gl_cv_func_fcntl_f_dupfd_works=yes
10466 gl_cv_func_fcntl_f_dupfd_works=no
10468 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10469 conftest.$ac_objext conftest.beam conftest.$ac_ext
10473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_fcntl_f_dupfd_works" >&5
10474 $as_echo "$gl_cv_func_fcntl_f_dupfd_works" >&6; }
10475 case $gl_cv_func_fcntl_f_dupfd_works in
10480 if test $ac_cv_func_fcntl = no; then
10487 $as_echo "#define FCNTL_DUPFD_BUGGY 1" >>confdefs.h
10491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fcntl understands F_DUPFD_CLOEXEC" >&5
10492 $as_echo_n "checking whether fcntl understands F_DUPFD_CLOEXEC... " >&6; }
10493 if ${gl_cv_func_fcntl_f_dupfd_cloexec+:} false; then :
10494 $as_echo_n "(cached) " >&6
10496 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10497 /* end confdefs.h. */
10500 #ifndef F_DUPFD_CLOEXEC
10512 if ac_fn_c_try_compile "$LINENO"; then :
10513 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10514 /* end confdefs.h. */
10517 /* The Linux kernel only added F_DUPFD_CLOEXEC in 2.6.24, so we always replace
10518 it to support the semantics on older kernels that failed with EINVAL. */
10530 if ac_fn_c_try_compile "$LINENO"; then :
10531 gl_cv_func_fcntl_f_dupfd_cloexec=yes
10533 gl_cv_func_fcntl_f_dupfd_cloexec="needs runtime check"
10535 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10537 gl_cv_func_fcntl_f_dupfd_cloexec=no
10539 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_fcntl_f_dupfd_cloexec" >&5
10542 $as_echo "$gl_cv_func_fcntl_f_dupfd_cloexec" >&6; }
10543 if test "$gl_cv_func_fcntl_f_dupfd_cloexec" != yes; then
10547 if test $ac_cv_func_fcntl = no; then
10557 if test $HAVE_FCNTL = 0 || test $REPLACE_FCNTL = 1; then
10566 gl_LIBOBJS="$gl_LIBOBJS fcntl.$ac_objext"
10580 $as_echo "#define GNULIB_TEST_FCNTL 1" >>confdefs.h
10595 if test $gl_cv_have_include_next = yes; then
10596 gl_cv_next_fcntl_h='<'fcntl.h'>'
10598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <fcntl.h>" >&5
10599 $as_echo_n "checking absolute name of <fcntl.h>... " >&6; }
10600 if ${gl_cv_next_fcntl_h+:} false; then :
10601 $as_echo_n "(cached) " >&6
10606 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10607 /* end confdefs.h. */
10611 aix*) gl_absname_cpp="$ac_cpp -C" ;;
10612 *) gl_absname_cpp="$ac_cpp" ;;
10617 gl_dirsep_regex='[/\\]'
10620 gl_dirsep_regex='\/'
10623 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
10624 gl_header_literal_regex=`echo 'fcntl.h' \
10625 | sed -e "$gl_make_literal_regex_sed"`
10626 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
10627 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
10633 gl_cv_absolute_fcntl_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
10634 sed -n "$gl_absolute_header_sed"`
10636 gl_header=$gl_cv_absolute_fcntl_h
10637 gl_cv_next_fcntl_h='"'$gl_header'"'
10641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_fcntl_h" >&5
10642 $as_echo "$gl_cv_next_fcntl_h" >&6; }
10644 NEXT_FCNTL_H=$gl_cv_next_fcntl_h
10646 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
10647 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
10648 gl_next_as_first_directive='<'fcntl.h'>'
10650 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
10651 gl_next_as_first_directive=$gl_cv_next_fcntl_h
10653 NEXT_AS_FIRST_DIRECTIVE_FCNTL_H=$gl_next_as_first_directive
10675 if test $ac_cv_func_getdtablesize = yes &&
10676 test $ac_cv_have_decl_getdtablesize = yes; then
10677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getdtablesize works" >&5
10678 $as_echo_n "checking whether getdtablesize works... " >&6; }
10679 if ${gl_cv_func_getdtablesize_works+:} false; then :
10680 $as_echo_n "(cached) " >&6
10683 vms*) gl_cv_func_getdtablesize_works="no (limitation)" ;;
10685 if test "$cross_compiling" = yes; then :
10687 cygwin*) # on cygwin 1.5.25, getdtablesize() automatically grows
10688 gl_cv_func_getdtablesize_works="guessing no" ;;
10689 *) gl_cv_func_getdtablesize_works="guessing yes" ;;
10693 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10694 /* end confdefs.h. */
10696 #include <unistd.h>
10700 int size = getdtablesize();
10701 if (dup2 (0, getdtablesize()) != -1)
10703 if (size != getdtablesize())
10710 if ac_fn_c_try_run "$LINENO"; then :
10711 gl_cv_func_getdtablesize_works=yes
10713 gl_cv_func_getdtablesize_works=no
10715 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10716 conftest.$ac_objext conftest.beam conftest.$ac_ext
10723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getdtablesize_works" >&5
10724 $as_echo "$gl_cv_func_getdtablesize_works" >&6; }
10725 case "$gl_cv_func_getdtablesize_works" in
10726 *yes | "no (limitation)") ;;
10727 *) REPLACE_GETDTABLESIZE=1 ;;
10730 HAVE_GETDTABLESIZE=0
10733 if test $HAVE_GETDTABLESIZE = 0 || test $REPLACE_GETDTABLESIZE = 1; then
10742 gl_LIBOBJS="$gl_LIBOBJS getdtablesize.$ac_objext"
10751 GNULIB_GETDTABLESIZE=1
10757 $as_echo "#define GNULIB_TEST_GETDTABLESIZE 1" >>confdefs.h
10763 # Persuade glibc <stdlib.h> to declare getloadavg().
10768 # getloadavg is present in libc on glibc >= 2.2, Mac OS X, FreeBSD >= 2.0,
10769 # NetBSD >= 0.9, OpenBSD >= 2.0, Solaris >= 7.
10771 ac_fn_c_check_func "$LINENO" "getloadavg" "ac_cv_func_getloadavg"
10772 if test "x$ac_cv_func_getloadavg" = xyes; then :
10775 gl_func_getloadavg_done=no
10777 # Some systems with -lutil have (and need) -lkvm as well, some do not.
10778 # On Solaris, -lkvm requires nlist from -lelf, so check that first
10779 # to get the right answer into the cache.
10780 # For kstat on solaris, we need to test for libelf and libkvm to force the
10781 # definition of SVR4 below.
10782 if test $gl_func_getloadavg_done = no; then
10783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for elf_begin in -lelf" >&5
10784 $as_echo_n "checking for elf_begin in -lelf... " >&6; }
10785 if ${ac_cv_lib_elf_elf_begin+:} false; then :
10786 $as_echo_n "(cached) " >&6
10788 ac_check_lib_save_LIBS=$LIBS
10790 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10791 /* end confdefs.h. */
10793 /* Override any GCC internal prototype to avoid an error.
10794 Use char because int might match the return type of a GCC
10795 builtin and then its argument prototype would still apply. */
10803 return elf_begin ();
10808 if ac_fn_c_try_link "$LINENO"; then :
10809 ac_cv_lib_elf_elf_begin=yes
10811 ac_cv_lib_elf_elf_begin=no
10813 rm -f core conftest.err conftest.$ac_objext \
10814 conftest$ac_exeext conftest.$ac_ext
10815 LIBS=$ac_check_lib_save_LIBS
10817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_elf_elf_begin" >&5
10818 $as_echo "$ac_cv_lib_elf_elf_begin" >&6; }
10819 if test "x$ac_cv_lib_elf_elf_begin" = xyes; then :
10823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kvm_open in -lkvm" >&5
10824 $as_echo_n "checking for kvm_open in -lkvm... " >&6; }
10825 if ${ac_cv_lib_kvm_kvm_open+:} false; then :
10826 $as_echo_n "(cached) " >&6
10828 ac_check_lib_save_LIBS=$LIBS
10830 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10831 /* end confdefs.h. */
10833 /* Override any GCC internal prototype to avoid an error.
10834 Use char because int might match the return type of a GCC
10835 builtin and then its argument prototype would still apply. */
10843 return kvm_open ();
10848 if ac_fn_c_try_link "$LINENO"; then :
10849 ac_cv_lib_kvm_kvm_open=yes
10851 ac_cv_lib_kvm_kvm_open=no
10853 rm -f core conftest.err conftest.$ac_objext \
10854 conftest$ac_exeext conftest.$ac_ext
10855 LIBS=$ac_check_lib_save_LIBS
10857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_kvm_kvm_open" >&5
10858 $as_echo "$ac_cv_lib_kvm_kvm_open" >&6; }
10859 if test "x$ac_cv_lib_kvm_kvm_open" = xyes; then :
10863 # Check for the 4.4BSD definition of getloadavg.
10864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getloadavg in -lutil" >&5
10865 $as_echo_n "checking for getloadavg in -lutil... " >&6; }
10866 if ${ac_cv_lib_util_getloadavg+:} false; then :
10867 $as_echo_n "(cached) " >&6
10869 ac_check_lib_save_LIBS=$LIBS
10870 LIBS="-lutil $LIBS"
10871 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10872 /* end confdefs.h. */
10874 /* Override any GCC internal prototype to avoid an error.
10875 Use char because int might match the return type of a GCC
10876 builtin and then its argument prototype would still apply. */
10880 char getloadavg ();
10884 return getloadavg ();
10889 if ac_fn_c_try_link "$LINENO"; then :
10890 ac_cv_lib_util_getloadavg=yes
10892 ac_cv_lib_util_getloadavg=no
10894 rm -f core conftest.err conftest.$ac_objext \
10895 conftest$ac_exeext conftest.$ac_ext
10896 LIBS=$ac_check_lib_save_LIBS
10898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_getloadavg" >&5
10899 $as_echo "$ac_cv_lib_util_getloadavg" >&6; }
10900 if test "x$ac_cv_lib_util_getloadavg" = xyes; then :
10901 LIBS="-lutil $LIBS" gl_func_getloadavg_done=yes
10906 if test $gl_func_getloadavg_done = no; then
10907 # There is a commonly available library for RS/6000 AIX.
10908 # Since it is not a standard part of AIX, it might be installed locally.
10909 gl_getloadavg_LIBS=$LIBS
10910 LIBS="-L/usr/local/lib $LIBS"
10911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getloadavg in -lgetloadavg" >&5
10912 $as_echo_n "checking for getloadavg in -lgetloadavg... " >&6; }
10913 if ${ac_cv_lib_getloadavg_getloadavg+:} false; then :
10914 $as_echo_n "(cached) " >&6
10916 ac_check_lib_save_LIBS=$LIBS
10917 LIBS="-lgetloadavg $LIBS"
10918 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10919 /* end confdefs.h. */
10921 /* Override any GCC internal prototype to avoid an error.
10922 Use char because int might match the return type of a GCC
10923 builtin and then its argument prototype would still apply. */
10927 char getloadavg ();
10931 return getloadavg ();
10936 if ac_fn_c_try_link "$LINENO"; then :
10937 ac_cv_lib_getloadavg_getloadavg=yes
10939 ac_cv_lib_getloadavg_getloadavg=no
10941 rm -f core conftest.err conftest.$ac_objext \
10942 conftest$ac_exeext conftest.$ac_ext
10943 LIBS=$ac_check_lib_save_LIBS
10945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_getloadavg_getloadavg" >&5
10946 $as_echo "$ac_cv_lib_getloadavg_getloadavg" >&6; }
10947 if test "x$ac_cv_lib_getloadavg_getloadavg" = xyes; then :
10948 LIBS="-lgetloadavg $LIBS" gl_func_getloadavg_done=yes
10950 LIBS=$gl_getloadavg_LIBS
10955 # Set up the replacement function if necessary.
10956 if test $gl_func_getloadavg_done = no; then
10959 # Solaris has libkstat which does not require root.
10960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kstat_open in -lkstat" >&5
10961 $as_echo_n "checking for kstat_open in -lkstat... " >&6; }
10962 if ${ac_cv_lib_kstat_kstat_open+:} false; then :
10963 $as_echo_n "(cached) " >&6
10965 ac_check_lib_save_LIBS=$LIBS
10966 LIBS="-lkstat $LIBS"
10967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10968 /* end confdefs.h. */
10970 /* Override any GCC internal prototype to avoid an error.
10971 Use char because int might match the return type of a GCC
10972 builtin and then its argument prototype would still apply. */
10976 char kstat_open ();
10980 return kstat_open ();
10985 if ac_fn_c_try_link "$LINENO"; then :
10986 ac_cv_lib_kstat_kstat_open=yes
10988 ac_cv_lib_kstat_kstat_open=no
10990 rm -f core conftest.err conftest.$ac_objext \
10991 conftest$ac_exeext conftest.$ac_ext
10992 LIBS=$ac_check_lib_save_LIBS
10994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_kstat_kstat_open" >&5
10995 $as_echo "$ac_cv_lib_kstat_kstat_open" >&6; }
10996 if test "x$ac_cv_lib_kstat_kstat_open" = xyes; then :
10997 cat >>confdefs.h <<_ACEOF
10998 #define HAVE_LIBKSTAT 1
11001 LIBS="-lkstat $LIBS"
11005 test $ac_cv_lib_kstat_kstat_open = yes && gl_func_getloadavg_done=yes
11007 # AIX has libperfstat which does not require root
11008 if test $gl_func_getloadavg_done = no; then
11009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for perfstat_cpu_total in -lperfstat" >&5
11010 $as_echo_n "checking for perfstat_cpu_total in -lperfstat... " >&6; }
11011 if ${ac_cv_lib_perfstat_perfstat_cpu_total+:} false; then :
11012 $as_echo_n "(cached) " >&6
11014 ac_check_lib_save_LIBS=$LIBS
11015 LIBS="-lperfstat $LIBS"
11016 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11017 /* end confdefs.h. */
11019 /* Override any GCC internal prototype to avoid an error.
11020 Use char because int might match the return type of a GCC
11021 builtin and then its argument prototype would still apply. */
11025 char perfstat_cpu_total ();
11029 return perfstat_cpu_total ();
11034 if ac_fn_c_try_link "$LINENO"; then :
11035 ac_cv_lib_perfstat_perfstat_cpu_total=yes
11037 ac_cv_lib_perfstat_perfstat_cpu_total=no
11039 rm -f core conftest.err conftest.$ac_objext \
11040 conftest$ac_exeext conftest.$ac_ext
11041 LIBS=$ac_check_lib_save_LIBS
11043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_perfstat_perfstat_cpu_total" >&5
11044 $as_echo "$ac_cv_lib_perfstat_perfstat_cpu_total" >&6; }
11045 if test "x$ac_cv_lib_perfstat_perfstat_cpu_total" = xyes; then :
11046 cat >>confdefs.h <<_ACEOF
11047 #define HAVE_LIBPERFSTAT 1
11050 LIBS="-lperfstat $LIBS"
11054 test $ac_cv_lib_perfstat_perfstat_cpu_total = yes && gl_func_getloadavg_done=yes
11057 if test $gl_func_getloadavg_done = no; then
11058 ac_fn_c_check_header_mongrel "$LINENO" "sys/dg_sys_info.h" "ac_cv_header_sys_dg_sys_info_h" "$ac_includes_default"
11059 if test "x$ac_cv_header_sys_dg_sys_info_h" = xyes; then :
11060 gl_func_getloadavg_done=yes
11062 $as_echo "#define DGUX 1" >>confdefs.h
11064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dg_sys_info in -ldgc" >&5
11065 $as_echo_n "checking for dg_sys_info in -ldgc... " >&6; }
11066 if ${ac_cv_lib_dgc_dg_sys_info+:} false; then :
11067 $as_echo_n "(cached) " >&6
11069 ac_check_lib_save_LIBS=$LIBS
11071 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11072 /* end confdefs.h. */
11074 /* Override any GCC internal prototype to avoid an error.
11075 Use char because int might match the return type of a GCC
11076 builtin and then its argument prototype would still apply. */
11080 char dg_sys_info ();
11084 return dg_sys_info ();
11089 if ac_fn_c_try_link "$LINENO"; then :
11090 ac_cv_lib_dgc_dg_sys_info=yes
11092 ac_cv_lib_dgc_dg_sys_info=no
11094 rm -f core conftest.err conftest.$ac_objext \
11095 conftest$ac_exeext conftest.$ac_ext
11096 LIBS=$ac_check_lib_save_LIBS
11098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dgc_dg_sys_info" >&5
11099 $as_echo "$ac_cv_lib_dgc_dg_sys_info" >&6; }
11100 if test "x$ac_cv_lib_dgc_dg_sys_info" = xyes; then :
11101 cat >>confdefs.h <<_ACEOF
11102 #define HAVE_LIBDGC 1
11117 if test "x$gl_save_LIBS" = x; then
11118 GETLOADAVG_LIBS=$LIBS
11120 GETLOADAVG_LIBS=`echo "$LIBS" | sed "s!$gl_save_LIBS!!"`
11125 # Test whether the system declares getloadavg. Solaris has the function
11126 # but declares it in <sys/loadavg.h>, not <stdlib.h>.
11127 for ac_header in sys/loadavg.h
11129 ac_fn_c_check_header_mongrel "$LINENO" "sys/loadavg.h" "ac_cv_header_sys_loadavg_h" "$ac_includes_default"
11130 if test "x$ac_cv_header_sys_loadavg_h" = xyes; then :
11131 cat >>confdefs.h <<_ACEOF
11132 #define HAVE_SYS_LOADAVG_H 1
11139 if test $ac_cv_header_sys_loadavg_h = yes; then
11140 HAVE_SYS_LOADAVG_H=1
11142 HAVE_SYS_LOADAVG_H=0
11144 ac_fn_c_check_decl "$LINENO" "getloadavg" "ac_cv_have_decl_getloadavg" "#if HAVE_SYS_LOADAVG_H
11145 /* OpenIndiana has a bug: <sys/time.h> must be included before
11146 <sys/loadavg.h>. */
11147 # include <sys/time.h>
11148 # include <sys/loadavg.h>
11150 #include <stdlib.h>
11152 if test "x$ac_cv_have_decl_getloadavg" = xyes; then :
11155 HAVE_DECL_GETLOADAVG=0
11159 if test $HAVE_GETLOADAVG = 0; then
11168 gl_LIBOBJS="$gl_LIBOBJS getloadavg.$ac_objext"
11171 # Figure out what our getloadavg.c needs.
11175 # On HPUX9, an unprivileged user can get load averages this way.
11176 if test $gl_func_getloadavg_done = no; then
11177 for ac_func in pstat_getdynamic
11179 ac_fn_c_check_func "$LINENO" "pstat_getdynamic" "ac_cv_func_pstat_getdynamic"
11180 if test "x$ac_cv_func_pstat_getdynamic" = xyes; then :
11181 cat >>confdefs.h <<_ACEOF
11182 #define HAVE_PSTAT_GETDYNAMIC 1
11184 gl_func_getloadavg_done=yes
11190 # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
11191 # uses stabs), but it is still SVR4. We cannot check for <elf.h> because
11192 # Irix 4.0.5F has the header but not the library.
11193 if test $gl_func_getloadavg_done = no && test "$ac_cv_lib_elf_elf_begin" = yes \
11194 && test "$ac_cv_lib_kvm_kvm_open" = yes; then
11195 gl_func_getloadavg_done=yes
11197 $as_echo "#define SVR4 1" >>confdefs.h
11201 if test $gl_func_getloadavg_done = no; then
11202 ac_fn_c_check_header_mongrel "$LINENO" "inq_stats/cpustats.h" "ac_cv_header_inq_stats_cpustats_h" "$ac_includes_default"
11203 if test "x$ac_cv_header_inq_stats_cpustats_h" = xyes; then :
11204 gl_func_getloadavg_done=yes
11206 $as_echo "#define UMAX 1" >>confdefs.h
11209 $as_echo "#define UMAX4_3 1" >>confdefs.h
11216 if test $gl_func_getloadavg_done = no; then
11217 ac_fn_c_check_header_mongrel "$LINENO" "sys/cpustats.h" "ac_cv_header_sys_cpustats_h" "$ac_includes_default"
11218 if test "x$ac_cv_header_sys_cpustats_h" = xyes; then :
11219 gl_func_getloadavg_done=yes; $as_echo "#define UMAX 1" >>confdefs.h
11226 if test $gl_func_getloadavg_done = no; then
11227 for ac_header in mach/mach.h
11229 ac_fn_c_check_header_mongrel "$LINENO" "mach/mach.h" "ac_cv_header_mach_mach_h" "$ac_includes_default"
11230 if test "x$ac_cv_header_mach_mach_h" = xyes; then :
11231 cat >>confdefs.h <<_ACEOF
11232 #define HAVE_MACH_MACH_H 1
11241 for ac_header in nlist.h
11243 ac_fn_c_check_header_mongrel "$LINENO" "nlist.h" "ac_cv_header_nlist_h" "$ac_includes_default"
11244 if test "x$ac_cv_header_nlist_h" = xyes; then :
11245 cat >>confdefs.h <<_ACEOF
11246 #define HAVE_NLIST_H 1
11248 ac_fn_c_check_member "$LINENO" "struct nlist" "n_un.n_name" "ac_cv_member_struct_nlist_n_un_n_name" "#include <nlist.h>
11250 if test "x$ac_cv_member_struct_nlist_n_un_n_name" = xyes; then :
11252 cat >>confdefs.h <<_ACEOF
11253 #define HAVE_STRUCT_NLIST_N_UN_N_NAME 1
11259 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11260 /* end confdefs.h. */
11266 #ifdef HAVE_STRUCT_NLIST_N_UN_N_NAME
11267 x.n_un.n_name = "";
11275 if ac_fn_c_try_link "$LINENO"; then :
11277 $as_echo "#define N_NAME_POINTER 1" >>confdefs.h
11280 rm -f core conftest.err conftest.$ac_objext \
11281 conftest$ac_exeext conftest.$ac_ext
11293 GNULIB_GETLOADAVG=1
11299 $as_echo "#define GNULIB_TEST_GETLOADAVG 1" >>confdefs.h
11307 ac_fn_c_check_decl "$LINENO" "program_invocation_name" "ac_cv_have_decl_program_invocation_name" "#include <errno.h>
11309 if test "x$ac_cv_have_decl_program_invocation_name" = xyes; then :
11315 cat >>confdefs.h <<_ACEOF
11316 #define HAVE_DECL_PROGRAM_INVOCATION_NAME $ac_have_decl
11318 if test $ac_have_decl = 1; then :
11322 ac_fn_c_check_decl "$LINENO" "program_invocation_short_name" "ac_cv_have_decl_program_invocation_short_name" "#include <errno.h>
11324 if test "x$ac_cv_have_decl_program_invocation_short_name" = xyes; then :
11330 cat >>confdefs.h <<_ACEOF
11331 #define HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME $ac_have_decl
11333 if test $ac_have_decl = 1; then :
11337 ac_fn_c_check_decl "$LINENO" "__argv" "ac_cv_have_decl___argv" "#include <stdlib.h>
11339 if test "x$ac_cv_have_decl___argv" = xyes; then :
11345 cat >>confdefs.h <<_ACEOF
11346 #define HAVE_DECL___ARGV $ac_have_decl
11348 if test $ac_have_decl = 1; then :
11353 # Incur the cost of this test only if none of the above worked.
11354 if test $ac_found = 0; then
11355 # On OpenBSD 5.1, using the global __progname variable appears to be
11356 # the only way to implement getprogname.
11357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether __progname is defined in default libraries" >&5
11358 $as_echo_n "checking whether __progname is defined in default libraries... " >&6; }
11359 if ${gl_cv_var___progname+:} false; then :
11360 $as_echo_n "(cached) " >&6
11363 gl_cv_var___progname=
11364 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11365 /* end confdefs.h. */
11366 extern char *__progname;
11370 return *__progname;
11376 if ac_fn_c_try_link "$LINENO"; then :
11377 gl_cv_var___progname=yes
11380 rm -f core conftest.err conftest.$ac_objext \
11381 conftest$ac_exeext conftest.$ac_ext
11385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_var___progname" >&5
11386 $as_echo "$gl_cv_var___progname" >&6; }
11387 if test "$gl_cv_var___progname" = yes; then
11389 $as_echo "#define HAVE_VAR___PROGNAME 1" >>confdefs.h
11398 # Check the system to see if it provides GNU glob. If not, use our
11400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if system libc has GNU glob" >&5
11401 $as_echo_n "checking if system libc has GNU glob... " >&6; }
11402 if ${make_cv_sys_gnu_glob+:} false; then :
11403 $as_echo_n "(cached) " >&6
11405 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11406 /* end confdefs.h. */
11408 #include <features.h>
11410 #include <fnmatch.h>
11411 #if !defined _LIBC && defined __GNU_LIBRARY__ && __GNU_LIBRARY__ > 1
11412 # include <gnu-versions.h>
11413 # if _GNU_GLOB_INTERFACE_VERSION == 1 || _GNU_GLOB_INTERFACE_VERSION == 2
11418 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11419 $EGREP "gnu glob" >/dev/null 2>&1; then :
11420 make_cv_sys_gnu_glob=yes
11422 make_cv_sys_gnu_glob=no
11427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $make_cv_sys_gnu_glob" >&5
11428 $as_echo "$make_cv_sys_gnu_glob" >&6; }
11429 # Tell automake about this, so it can build the right .c files.
11430 if test "$make_cv_sys_gnu_glob" = yes; then
11431 USE_SYSTEM_GLOB_TRUE=
11432 USE_SYSTEM_GLOB_FALSE='#'
11434 USE_SYSTEM_GLOB_TRUE='#'
11435 USE_SYSTEM_GLOB_FALSE=
11438 # Tell build.sh which to use
11439 USE_SYSTEM_GLOB="$make_cv_sys_gnu_glob"
11444 if test $gl_cv_func_malloc_posix = yes; then
11446 $as_echo "#define HAVE_MALLOC_POSIX 1" >>confdefs.h
11452 if test $REPLACE_MALLOC = 1; then
11461 gl_LIBOBJS="$gl_LIBOBJS malloc.$ac_objext"
11469 GNULIB_MALLOC_POSIX=1
11475 $as_echo "#define GNULIB_TEST_MALLOC_POSIX 1" >>confdefs.h
11480 if test $HAVE_MSVC_INVALID_PARAMETER_HANDLER = 1; then
11489 gl_LIBOBJS="$gl_LIBOBJS msvc-inval.$ac_objext"
11493 if test $HAVE_MSVC_INVALID_PARAMETER_HANDLER = 1; then
11502 gl_LIBOBJS="$gl_LIBOBJS msvc-nothrow.$ac_objext"
11507 cat >>confdefs.h <<_ACEOF
11508 #define GNULIB_MSVC_NOTHROW 1
11514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ssize_t" >&5
11515 $as_echo_n "checking for ssize_t... " >&6; }
11516 if ${gt_cv_ssize_t+:} false; then :
11517 $as_echo_n "(cached) " >&6
11519 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11520 /* end confdefs.h. */
11521 #include <sys/types.h>
11525 int x = sizeof (ssize_t *) + sizeof (ssize_t);
11531 if ac_fn_c_try_compile "$LINENO"; then :
11536 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_ssize_t" >&5
11539 $as_echo "$gt_cv_ssize_t" >&6; }
11540 if test $gt_cv_ssize_t = no; then
11542 $as_echo "#define ssize_t int" >>confdefs.h
11550 if test "$ac_cv_header_stdbool_h" = yes; then
11553 if test -z "$GCC"; then
11554 STDBOOL_H='stdbool.h'
11564 STDBOOL_H='stdbool.h'
11567 if test -n "$STDBOOL_H"; then
11568 GL_GENERATE_STDBOOL_H_TRUE=
11569 GL_GENERATE_STDBOOL_H_FALSE='#'
11571 GL_GENERATE_STDBOOL_H_TRUE='#'
11572 GL_GENERATE_STDBOOL_H_FALSE=
11576 if test "$ac_cv_type__Bool" = yes; then
11588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for good max_align_t" >&5
11589 $as_echo_n "checking for good max_align_t... " >&6; }
11590 if ${gl_cv_type_max_align_t+:} false; then :
11591 $as_echo_n "(cached) " >&6
11593 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11594 /* end confdefs.h. */
11595 #include <stddef.h>
11596 unsigned int s = sizeof (max_align_t);
11597 #if defined __GNUC__ || defined __IBM__ALIGNOF__
11598 int check1[2 * (__alignof__ (double) <= __alignof__ (max_align_t)) - 1];
11599 int check2[2 * (__alignof__ (long double) <= __alignof__ (max_align_t)) - 1];
11610 if ac_fn_c_try_compile "$LINENO"; then :
11611 gl_cv_type_max_align_t=yes
11613 gl_cv_type_max_align_t=no
11615 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_type_max_align_t" >&5
11619 $as_echo "$gl_cv_type_max_align_t" >&6; }
11620 if test $gl_cv_type_max_align_t = no; then
11625 if test $gt_cv_c_wchar_t = no; then
11630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NULL can be used in arbitrary expressions" >&5
11631 $as_echo_n "checking whether NULL can be used in arbitrary expressions... " >&6; }
11632 if ${gl_cv_decl_null_works+:} false; then :
11633 $as_echo_n "(cached) " >&6
11635 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11636 /* end confdefs.h. */
11637 #include <stddef.h>
11638 int test[2 * (sizeof NULL == sizeof (void *)) -1];
11648 if ac_fn_c_try_compile "$LINENO"; then :
11649 gl_cv_decl_null_works=yes
11651 gl_cv_decl_null_works=no
11653 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_decl_null_works" >&5
11656 $as_echo "$gl_cv_decl_null_works" >&6; }
11657 if test $gl_cv_decl_null_works = no; then
11663 if test -n "$STDDEF_H"; then
11664 GL_GENERATE_STDDEF_H_TRUE=
11665 GL_GENERATE_STDDEF_H_FALSE='#'
11667 GL_GENERATE_STDDEF_H_TRUE='#'
11668 GL_GENERATE_STDDEF_H_FALSE=
11671 if test -n "$STDDEF_H"; then
11680 if test $gl_cv_have_include_next = yes; then
11681 gl_cv_next_stddef_h='<'stddef.h'>'
11683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stddef.h>" >&5
11684 $as_echo_n "checking absolute name of <stddef.h>... " >&6; }
11685 if ${gl_cv_next_stddef_h+:} false; then :
11686 $as_echo_n "(cached) " >&6
11691 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11692 /* end confdefs.h. */
11693 #include <stddef.h>
11696 aix*) gl_absname_cpp="$ac_cpp -C" ;;
11697 *) gl_absname_cpp="$ac_cpp" ;;
11702 gl_dirsep_regex='[/\\]'
11705 gl_dirsep_regex='\/'
11708 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
11709 gl_header_literal_regex=`echo 'stddef.h' \
11710 | sed -e "$gl_make_literal_regex_sed"`
11711 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
11712 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
11718 gl_cv_absolute_stddef_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
11719 sed -n "$gl_absolute_header_sed"`
11721 gl_header=$gl_cv_absolute_stddef_h
11722 gl_cv_next_stddef_h='"'$gl_header'"'
11726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stddef_h" >&5
11727 $as_echo "$gl_cv_next_stddef_h" >&6; }
11729 NEXT_STDDEF_H=$gl_cv_next_stddef_h
11731 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
11732 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
11733 gl_next_as_first_directive='<'stddef.h'>'
11735 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
11736 gl_next_as_first_directive=$gl_cv_next_stddef_h
11738 NEXT_AS_FIRST_DIRECTIVE_STDDEF_H=$gl_next_as_first_directive
11748 $as_echo "#define __USE_MINGW_ANSI_STDIO 1" >>confdefs.h
11759 if test $gl_cv_have_include_next = yes; then
11760 gl_cv_next_stdio_h='<'stdio.h'>'
11762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdio.h>" >&5
11763 $as_echo_n "checking absolute name of <stdio.h>... " >&6; }
11764 if ${gl_cv_next_stdio_h+:} false; then :
11765 $as_echo_n "(cached) " >&6
11770 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11771 /* end confdefs.h. */
11775 aix*) gl_absname_cpp="$ac_cpp -C" ;;
11776 *) gl_absname_cpp="$ac_cpp" ;;
11781 gl_dirsep_regex='[/\\]'
11784 gl_dirsep_regex='\/'
11787 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
11788 gl_header_literal_regex=`echo 'stdio.h' \
11789 | sed -e "$gl_make_literal_regex_sed"`
11790 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
11791 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
11797 gl_cv_absolute_stdio_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
11798 sed -n "$gl_absolute_header_sed"`
11800 gl_header=$gl_cv_absolute_stdio_h
11801 gl_cv_next_stdio_h='"'$gl_header'"'
11805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdio_h" >&5
11806 $as_echo "$gl_cv_next_stdio_h" >&6; }
11808 NEXT_STDIO_H=$gl_cv_next_stdio_h
11810 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
11811 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
11812 gl_next_as_first_directive='<'stdio.h'>'
11814 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
11815 gl_next_as_first_directive=$gl_cv_next_stdio_h
11817 NEXT_AS_FIRST_DIRECTIVE_STDIO_H=$gl_next_as_first_directive
11823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which flavor of printf attribute matches inttypes macros" >&5
11824 $as_echo_n "checking which flavor of printf attribute matches inttypes macros... " >&6; }
11825 if ${gl_cv_func_printf_attribute_flavor+:} false; then :
11826 $as_echo_n "(cached) " >&6
11828 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11829 /* end confdefs.h. */
11831 #define __STDC_FORMAT_MACROS 1
11833 #include <inttypes.h>
11834 /* For non-mingw systems, compilation will trivially succeed.
11835 For mingw, compilation will succeed for older mingw (system
11836 printf, "I64d") and fail for newer mingw (gnu printf, "lld"). */
11837 #if (defined _WIN32 && ! defined __CYGWIN__) && \
11838 (__GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 4))
11839 extern char PRIdMAX_probe[sizeof PRIdMAX == sizeof "I64d" ? 1 : -1];
11850 if ac_fn_c_try_compile "$LINENO"; then :
11851 gl_cv_func_printf_attribute_flavor=system
11853 gl_cv_func_printf_attribute_flavor=gnu
11855 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_printf_attribute_flavor" >&5
11858 $as_echo "$gl_cv_func_printf_attribute_flavor" >&6; }
11859 if test "$gl_cv_func_printf_attribute_flavor" = gnu; then
11861 $as_echo "#define GNULIB_PRINTF_ATTRIBUTE_FLAVOR_GNU 1" >>confdefs.h
11868 cat >>confdefs.h <<_ACEOF
11869 #define GNULIB_FSCANF 1
11876 cat >>confdefs.h <<_ACEOF
11877 #define GNULIB_SCANF 1
11915 if test $gl_cv_have_include_next = yes; then
11916 gl_cv_next_stdlib_h='<'stdlib.h'>'
11918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdlib.h>" >&5
11919 $as_echo_n "checking absolute name of <stdlib.h>... " >&6; }
11920 if ${gl_cv_next_stdlib_h+:} false; then :
11921 $as_echo_n "(cached) " >&6
11926 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11927 /* end confdefs.h. */
11928 #include <stdlib.h>
11931 aix*) gl_absname_cpp="$ac_cpp -C" ;;
11932 *) gl_absname_cpp="$ac_cpp" ;;
11937 gl_dirsep_regex='[/\\]'
11940 gl_dirsep_regex='\/'
11943 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
11944 gl_header_literal_regex=`echo 'stdlib.h' \
11945 | sed -e "$gl_make_literal_regex_sed"`
11946 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
11947 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
11953 gl_cv_absolute_stdlib_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
11954 sed -n "$gl_absolute_header_sed"`
11956 gl_header=$gl_cv_absolute_stdlib_h
11957 gl_cv_next_stdlib_h='"'$gl_header'"'
11961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdlib_h" >&5
11962 $as_echo "$gl_cv_next_stdlib_h" >&6; }
11964 NEXT_STDLIB_H=$gl_cv_next_stdlib_h
11966 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
11967 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
11968 gl_next_as_first_directive='<'stdlib.h'>'
11970 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
11971 gl_next_as_first_directive=$gl_cv_next_stdlib_h
11973 NEXT_AS_FIRST_DIRECTIVE_STDLIB_H=$gl_next_as_first_directive
11989 for ac_func in stpcpy
11991 ac_fn_c_check_func "$LINENO" "stpcpy" "ac_cv_func_stpcpy"
11992 if test "x$ac_cv_func_stpcpy" = xyes; then :
11993 cat >>confdefs.h <<_ACEOF
11994 #define HAVE_STPCPY 1
12000 if test $ac_cv_func_stpcpy = no; then
12004 if test $HAVE_STPCPY = 0; then
12013 gl_LIBOBJS="$gl_LIBOBJS stpcpy.$ac_objext"
12030 $as_echo "#define GNULIB_TEST_STPCPY 1" >>confdefs.h
12039 if test "$ERRNO_H:$REPLACE_STRERROR_0" = :0; then
12040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strerror function" >&5
12041 $as_echo_n "checking for working strerror function... " >&6; }
12042 if ${gl_cv_func_working_strerror+:} false; then :
12043 $as_echo_n "(cached) " >&6
12045 if test "$cross_compiling" = yes; then :
12047 # Guess yes on glibc systems.
12048 *-gnu* | gnu*) gl_cv_func_working_strerror="guessing yes" ;;
12049 # Guess yes on musl systems.
12050 *-musl*) gl_cv_func_working_strerror="guessing yes" ;;
12051 # If we don't know, obey --enable-cross-guesses.
12052 *) gl_cv_func_working_strerror="$gl_cross_guess_normal" ;;
12056 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12057 /* end confdefs.h. */
12058 #include <string.h>
12063 if (!*strerror (-2)) return 1;
12068 if ac_fn_c_try_run "$LINENO"; then :
12069 gl_cv_func_working_strerror=yes
12071 gl_cv_func_working_strerror=no
12073 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12074 conftest.$ac_objext conftest.beam conftest.$ac_ext
12079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_working_strerror" >&5
12080 $as_echo "$gl_cv_func_working_strerror" >&6; }
12081 case "$gl_cv_func_working_strerror" in
12092 if test $REPLACE_STRERROR = 1; then
12101 gl_LIBOBJS="$gl_LIBOBJS strerror.$ac_objext"
12106 cat >>confdefs.h <<_ACEOF
12107 #define GNULIB_STRERROR 1
12122 $as_echo "#define GNULIB_TEST_STRERROR 1" >>confdefs.h
12128 if test -n "$ERRNO_H" || test $REPLACE_STRERROR_0 = 1; then
12137 gl_LIBOBJS="$gl_LIBOBJS strerror-override.$ac_objext"
12143 if test $ac_cv_header_sys_socket_h != yes; then
12144 for ac_header in winsock2.h
12146 ac_fn_c_check_header_mongrel "$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
12147 if test "x$ac_cv_header_winsock2_h" = xyes; then :
12148 cat >>confdefs.h <<_ACEOF
12149 #define HAVE_WINSOCK2_H 1
12157 if test "$ac_cv_header_winsock2_h" = yes; then
12159 UNISTD_H_HAVE_WINSOCK2_H=1
12160 SYS_IOCTL_H_HAVE_WINSOCK2_H=1
12184 if test $gl_cv_have_include_next = yes; then
12185 gl_cv_next_unistd_h='<'unistd.h'>'
12187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <unistd.h>" >&5
12188 $as_echo_n "checking absolute name of <unistd.h>... " >&6; }
12189 if ${gl_cv_next_unistd_h+:} false; then :
12190 $as_echo_n "(cached) " >&6
12193 if test $ac_cv_header_unistd_h = yes; then
12198 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12199 /* end confdefs.h. */
12200 #include <unistd.h>
12203 aix*) gl_absname_cpp="$ac_cpp -C" ;;
12204 *) gl_absname_cpp="$ac_cpp" ;;
12209 gl_dirsep_regex='[/\\]'
12212 gl_dirsep_regex='\/'
12215 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
12216 gl_header_literal_regex=`echo 'unistd.h' \
12217 | sed -e "$gl_make_literal_regex_sed"`
12218 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
12219 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
12225 gl_cv_absolute_unistd_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
12226 sed -n "$gl_absolute_header_sed"`
12228 gl_header=$gl_cv_absolute_unistd_h
12229 gl_cv_next_unistd_h='"'$gl_header'"'
12231 gl_cv_next_unistd_h='<'unistd.h'>'
12236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_unistd_h" >&5
12237 $as_echo "$gl_cv_next_unistd_h" >&6; }
12239 NEXT_UNISTD_H=$gl_cv_next_unistd_h
12241 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
12242 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
12243 gl_next_as_first_directive='<'unistd.h'>'
12245 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
12246 gl_next_as_first_directive=$gl_cv_next_unistd_h
12248 NEXT_AS_FIRST_DIRECTIVE_UNISTD_H=$gl_next_as_first_directive
12253 if test $ac_cv_header_unistd_h = yes; then
12269 # End of code from modules
12290 gl_source_base='tests'
12291 gltests_WITNESS=IN_`echo "${PACKAGE-$PACKAGE_TARNAME}" | LC_ALL=C tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ | LC_ALL=C sed -e 's/[^A-Z0-9_]/_/g'`_GNULIB_TESTS
12293 gl_module_indicator_condition=$gltests_WITNESS
12303 LIBGNU_LIBDEPS="$gl_libdeps"
12305 LIBGNU_LTLIBDEPS="$gl_ltlibdeps"
12310 if test -n "$ac_tool_prefix"; then
12311 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
12312 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
12313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12314 $as_echo_n "checking for $ac_word... " >&6; }
12315 if ${ac_cv_prog_RANLIB+:} false; then :
12316 $as_echo_n "(cached) " >&6
12318 if test -n "$RANLIB"; then
12319 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
12321 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12322 for as_dir in $PATH
12325 test -z "$as_dir" && as_dir=.
12326 for ac_exec_ext in '' $ac_executable_extensions; do
12327 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12328 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
12329 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12338 RANLIB=$ac_cv_prog_RANLIB
12339 if test -n "$RANLIB"; then
12340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
12341 $as_echo "$RANLIB" >&6; }
12343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12344 $as_echo "no" >&6; }
12349 if test -z "$ac_cv_prog_RANLIB"; then
12350 ac_ct_RANLIB=$RANLIB
12351 # Extract the first word of "ranlib", so it can be a program name with args.
12352 set dummy ranlib; ac_word=$2
12353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12354 $as_echo_n "checking for $ac_word... " >&6; }
12355 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
12356 $as_echo_n "(cached) " >&6
12358 if test -n "$ac_ct_RANLIB"; then
12359 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
12361 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12362 for as_dir in $PATH
12365 test -z "$as_dir" && as_dir=.
12366 for ac_exec_ext in '' $ac_executable_extensions; do
12367 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12368 ac_cv_prog_ac_ct_RANLIB="ranlib"
12369 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12378 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
12379 if test -n "$ac_ct_RANLIB"; then
12380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
12381 $as_echo "$ac_ct_RANLIB" >&6; }
12383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12384 $as_echo "no" >&6; }
12387 if test "x$ac_ct_RANLIB" = x; then
12390 case $cross_compiling:$ac_tool_warned in
12392 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12393 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12394 ac_tool_warned=yes ;;
12396 RANLIB=$ac_ct_RANLIB
12399 RANLIB="$ac_cv_prog_RANLIB"
12403 ac_cpp='$CPP $CPPFLAGS'
12404 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12405 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12406 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
12408 $as_echo_n "checking how to run the C preprocessor... " >&6; }
12409 # On Suns, sometimes $CPP names a directory.
12410 if test -n "$CPP" && test -d "$CPP"; then
12413 if test -z "$CPP"; then
12414 if ${ac_cv_prog_CPP+:} false; then :
12415 $as_echo_n "(cached) " >&6
12417 # Double quotes because CPP needs to be expanded
12418 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
12420 ac_preproc_ok=false
12421 for ac_c_preproc_warn_flag in '' yes
12423 # Use a header file that comes with gcc, so configuring glibc
12424 # with a fresh cross-compiler works.
12425 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12426 # <limits.h> exists even on freestanding compilers.
12427 # On the NeXT, cc -E runs the code through the compiler's parser,
12428 # not just through cpp. "Syntax error" is here to catch this case.
12429 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12430 /* end confdefs.h. */
12432 # include <limits.h>
12434 # include <assert.h>
12438 if ac_fn_c_try_cpp "$LINENO"; then :
12441 # Broken: fails on valid input.
12444 rm -f conftest.err conftest.i conftest.$ac_ext
12446 # OK, works on sane cases. Now check whether nonexistent headers
12447 # can be detected and how.
12448 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12449 /* end confdefs.h. */
12450 #include <ac_nonexistent.h>
12452 if ac_fn_c_try_cpp "$LINENO"; then :
12453 # Broken: success on invalid input.
12456 # Passes both tests.
12460 rm -f conftest.err conftest.i conftest.$ac_ext
12463 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12464 rm -f conftest.i conftest.err conftest.$ac_ext
12465 if $ac_preproc_ok; then :
12470 ac_cv_prog_CPP=$CPP
12473 CPP=$ac_cv_prog_CPP
12475 ac_cv_prog_CPP=$CPP
12477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
12478 $as_echo "$CPP" >&6; }
12479 ac_preproc_ok=false
12480 for ac_c_preproc_warn_flag in '' yes
12482 # Use a header file that comes with gcc, so configuring glibc
12483 # with a fresh cross-compiler works.
12484 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12485 # <limits.h> exists even on freestanding compilers.
12486 # On the NeXT, cc -E runs the code through the compiler's parser,
12487 # not just through cpp. "Syntax error" is here to catch this case.
12488 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12489 /* end confdefs.h. */
12491 # include <limits.h>
12493 # include <assert.h>
12497 if ac_fn_c_try_cpp "$LINENO"; then :
12500 # Broken: fails on valid input.
12503 rm -f conftest.err conftest.i conftest.$ac_ext
12505 # OK, works on sane cases. Now check whether nonexistent headers
12506 # can be detected and how.
12507 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12508 /* end confdefs.h. */
12509 #include <ac_nonexistent.h>
12511 if ac_fn_c_try_cpp "$LINENO"; then :
12512 # Broken: success on invalid input.
12515 # Passes both tests.
12519 rm -f conftest.err conftest.i conftest.$ac_ext
12522 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12523 rm -f conftest.i conftest.err conftest.$ac_ext
12524 if $ac_preproc_ok; then :
12527 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12528 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12529 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
12530 See \`config.log' for more details" "$LINENO" 5; }
12534 ac_cpp='$CPP $CPPFLAGS'
12535 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12536 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12537 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12539 # Extract the first word of "ar", so it can be a program name with args.
12540 set dummy ar; ac_word=$2
12541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12542 $as_echo_n "checking for $ac_word... " >&6; }
12543 if ${ac_cv_prog_AR+:} false; then :
12544 $as_echo_n "(cached) " >&6
12546 if test -n "$AR"; then
12547 ac_cv_prog_AR="$AR" # Let the user override the test.
12549 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12550 for as_dir in $PATH
12553 test -z "$as_dir" && as_dir=.
12554 for ac_exec_ext in '' $ac_executable_extensions; do
12555 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12557 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12564 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar"
12568 if test -n "$AR"; then
12569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
12570 $as_echo "$AR" >&6; }
12572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12573 $as_echo "no" >&6; }
12577 # Perl is needed for the test suite (only)
12578 # Extract the first word of "perl", so it can be a program name with args.
12579 set dummy perl; ac_word=$2
12580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12581 $as_echo_n "checking for $ac_word... " >&6; }
12582 if ${ac_cv_prog_PERL+:} false; then :
12583 $as_echo_n "(cached) " >&6
12585 if test -n "$PERL"; then
12586 ac_cv_prog_PERL="$PERL" # Let the user override the test.
12588 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12589 for as_dir in $PATH
12592 test -z "$as_dir" && as_dir=.
12593 for ac_exec_ext in '' $ac_executable_extensions; do
12594 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12595 ac_cv_prog_PERL="perl"
12596 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12603 test -z "$ac_cv_prog_PERL" && ac_cv_prog_PERL="perl"
12606 PERL=$ac_cv_prog_PERL
12607 if test -n "$PERL"; then
12608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
12609 $as_echo "$PERL" >&6; }
12611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12612 $as_echo "no" >&6; }
12617 # Specialized system macros
12620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing strerror" >&5
12621 $as_echo_n "checking for library containing strerror... " >&6; }
12622 if ${ac_cv_search_strerror+:} false; then :
12623 $as_echo_n "(cached) " >&6
12625 ac_func_search_save_LIBS=$LIBS
12626 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12627 /* end confdefs.h. */
12629 /* Override any GCC internal prototype to avoid an error.
12630 Use char because int might match the return type of a GCC
12631 builtin and then its argument prototype would still apply. */
12639 return strerror ();
12644 for ac_lib in '' cposix; do
12645 if test -z "$ac_lib"; then
12646 ac_res="none required"
12649 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12651 if ac_fn_c_try_link "$LINENO"; then :
12652 ac_cv_search_strerror=$ac_res
12654 rm -f core conftest.err conftest.$ac_objext \
12656 if ${ac_cv_search_strerror+:} false; then :
12660 if ${ac_cv_search_strerror+:} false; then :
12663 ac_cv_search_strerror=no
12665 rm conftest.$ac_ext
12666 LIBS=$ac_func_search_save_LIBS
12668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_strerror" >&5
12669 $as_echo "$ac_cv_search_strerror" >&6; }
12670 ac_res=$ac_cv_search_strerror
12671 if test "$ac_res" != no; then :
12672 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
12678 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
12679 if ${ac_cv_c_bigendian+:} false; then :
12680 $as_echo_n "(cached) " >&6
12682 ac_cv_c_bigendian=unknown
12683 # See if we're dealing with a universal compiler.
12684 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12685 /* end confdefs.h. */
12686 #ifndef __APPLE_CC__
12687 not a universal capable compiler
12692 if ac_fn_c_try_compile "$LINENO"; then :
12694 # Check for potential -arch flags. It is not universal unless
12695 # there are at least two -arch flags with different values.
12698 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
12699 if test -n "$ac_prev"; then
12701 i?86 | x86_64 | ppc | ppc64)
12702 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
12705 ac_cv_c_bigendian=universal
12711 elif test "x$ac_word" = "x-arch"; then
12716 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12717 if test $ac_cv_c_bigendian = unknown; then
12718 # See if sys/param.h defines the BYTE_ORDER macro.
12719 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12720 /* end confdefs.h. */
12721 #include <sys/types.h>
12722 #include <sys/param.h>
12727 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
12728 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
12730 bogus endian macros
12737 if ac_fn_c_try_compile "$LINENO"; then :
12738 # It does; now see whether it defined to BIG_ENDIAN or not.
12739 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12740 /* end confdefs.h. */
12741 #include <sys/types.h>
12742 #include <sys/param.h>
12747 #if BYTE_ORDER != BIG_ENDIAN
12755 if ac_fn_c_try_compile "$LINENO"; then :
12756 ac_cv_c_bigendian=yes
12758 ac_cv_c_bigendian=no
12760 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12762 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12764 if test $ac_cv_c_bigendian = unknown; then
12765 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
12766 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12767 /* end confdefs.h. */
12768 #include <limits.h>
12773 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
12774 bogus endian macros
12781 if ac_fn_c_try_compile "$LINENO"; then :
12782 # It does; now see whether it defined to _BIG_ENDIAN or not.
12783 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12784 /* end confdefs.h. */
12785 #include <limits.h>
12790 #ifndef _BIG_ENDIAN
12798 if ac_fn_c_try_compile "$LINENO"; then :
12799 ac_cv_c_bigendian=yes
12801 ac_cv_c_bigendian=no
12803 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12805 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12807 if test $ac_cv_c_bigendian = unknown; then
12808 # Compile a test program.
12809 if test "$cross_compiling" = yes; then :
12810 # Try to guess by grepping values from an object file.
12811 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12812 /* end confdefs.h. */
12813 short int ascii_mm[] =
12814 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
12815 short int ascii_ii[] =
12816 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
12817 int use_ascii (int i) {
12818 return ascii_mm[i] + ascii_ii[i];
12820 short int ebcdic_ii[] =
12821 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
12822 short int ebcdic_mm[] =
12823 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
12824 int use_ebcdic (int i) {
12825 return ebcdic_mm[i] + ebcdic_ii[i];
12832 return use_ascii (foo) == use_ebcdic (foo);
12837 if ac_fn_c_try_compile "$LINENO"; then :
12838 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
12839 ac_cv_c_bigendian=yes
12841 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
12842 if test "$ac_cv_c_bigendian" = unknown; then
12843 ac_cv_c_bigendian=no
12845 # finding both strings is unlikely to happen, but who knows?
12846 ac_cv_c_bigendian=unknown
12850 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12852 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12853 /* end confdefs.h. */
12854 $ac_includes_default
12859 /* Are we little or big endian? From Harbison&Steele. */
12863 char c[sizeof (long int)];
12866 return u.c[sizeof (long int) - 1] == 1;
12872 if ac_fn_c_try_run "$LINENO"; then :
12873 ac_cv_c_bigendian=no
12875 ac_cv_c_bigendian=yes
12877 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12878 conftest.$ac_objext conftest.beam conftest.$ac_ext
12883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
12884 $as_echo "$ac_cv_c_bigendian" >&6; }
12885 case $ac_cv_c_bigendian in #(
12887 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
12893 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
12897 as_fn_error $? "unknown endianness
12898 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
12902 # Enable gettext, in "external" mode.
12904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
12905 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
12906 if ${ac_cv_path_SED+:} false; then :
12907 $as_echo_n "(cached) " >&6
12909 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
12910 for ac_i in 1 2 3 4 5 6 7; do
12911 ac_script="$ac_script$as_nl$ac_script"
12913 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
12914 { ac_script=; unset ac_script;}
12915 if test -z "$SED"; then
12916 ac_path_SED_found=false
12917 # Loop through the user's path and test for each of PROGNAME-LIST
12918 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12919 for as_dir in $PATH
12922 test -z "$as_dir" && as_dir=.
12923 for ac_prog in sed gsed; do
12924 for ac_exec_ext in '' $ac_executable_extensions; do
12925 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
12926 as_fn_executable_p "$ac_path_SED" || continue
12927 # Check for GNU ac_path_SED and select it if it is found.
12928 # Check for GNU $ac_path_SED
12929 case `"$ac_path_SED" --version 2>&1` in
12931 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
12934 $as_echo_n 0123456789 >"conftest.in"
12937 cat "conftest.in" "conftest.in" >"conftest.tmp"
12938 mv "conftest.tmp" "conftest.in"
12939 cp "conftest.in" "conftest.nl"
12940 $as_echo '' >> "conftest.nl"
12941 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
12942 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
12943 as_fn_arith $ac_count + 1 && ac_count=$as_val
12944 if test $ac_count -gt ${ac_path_SED_max-0}; then
12945 # Best one so far, save it but keep looking for a better one
12946 ac_cv_path_SED="$ac_path_SED"
12947 ac_path_SED_max=$ac_count
12949 # 10*(2^10) chars as input seems more than enough
12950 test $ac_count -gt 10 && break
12952 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
12955 $ac_path_SED_found && break 3
12960 if test -z "$ac_cv_path_SED"; then
12961 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
12964 ac_cv_path_SED=$SED
12968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
12969 $as_echo "$ac_cv_path_SED" >&6; }
12970 SED="$ac_cv_path_SED"
12974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
12975 $as_echo_n "checking whether NLS is requested... " >&6; }
12976 # Check whether --enable-nls was given.
12977 if test "${enable_nls+set}" = set; then :
12978 enableval=$enable_nls; USE_NLS=$enableval
12983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
12984 $as_echo "$USE_NLS" >&6; }
12989 GETTEXT_MACRO_VERSION=0.19
12994 # Prepare PATH_SEPARATOR.
12995 # The user is always right.
12996 if test "${PATH_SEPARATOR+set}" != set; then
12997 # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
12998 # contains only /bin. Note that ksh looks also at the FPATH variable,
12999 # so we have to set that as well for the test.
13001 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
13002 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
13003 || PATH_SEPARATOR=';'
13007 # Find out how to test for executable files. Don't use a zero-byte file,
13008 # as systems may use methods other than mode bits to determine executability.
13009 cat >conf$$.file <<_ASEOF
13013 chmod +x conf$$.file
13014 if test -x conf$$.file >/dev/null 2>&1; then
13015 ac_executable_p="test -x"
13017 ac_executable_p="test -f"
13021 # Extract the first word of "msgfmt", so it can be a program name with args.
13022 set dummy msgfmt; ac_word=$2
13023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13024 $as_echo_n "checking for $ac_word... " >&6; }
13025 if ${ac_cv_path_MSGFMT+:} false; then :
13026 $as_echo_n "(cached) " >&6
13030 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
13033 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
13034 for ac_dir in $PATH; do
13036 test -z "$ac_dir" && ac_dir=.
13037 for ac_exec_ext in '' $ac_executable_extensions; do
13038 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
13039 echo "$as_me: trying $ac_dir/$ac_word..." >&5
13040 if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
13041 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
13042 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
13049 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
13053 MSGFMT="$ac_cv_path_MSGFMT"
13054 if test "$MSGFMT" != ":"; then
13055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
13056 $as_echo "$MSGFMT" >&6; }
13058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13059 $as_echo "no" >&6; }
13062 # Extract the first word of "gmsgfmt", so it can be a program name with args.
13063 set dummy gmsgfmt; ac_word=$2
13064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13065 $as_echo_n "checking for $ac_word... " >&6; }
13066 if ${ac_cv_path_GMSGFMT+:} false; then :
13067 $as_echo_n "(cached) " >&6
13071 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
13074 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13075 for as_dir in $PATH
13078 test -z "$as_dir" && as_dir=.
13079 for ac_exec_ext in '' $ac_executable_extensions; do
13080 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13081 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
13082 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13089 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
13093 GMSGFMT=$ac_cv_path_GMSGFMT
13094 if test -n "$GMSGFMT"; then
13095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
13096 $as_echo "$GMSGFMT" >&6; }
13098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13099 $as_echo "no" >&6; }
13104 case `$MSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
13105 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) MSGFMT_015=: ;;
13106 *) MSGFMT_015=$MSGFMT ;;
13109 case `$GMSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
13110 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) GMSGFMT_015=: ;;
13111 *) GMSGFMT_015=$GMSGFMT ;;
13116 # Prepare PATH_SEPARATOR.
13117 # The user is always right.
13118 if test "${PATH_SEPARATOR+set}" != set; then
13119 # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
13120 # contains only /bin. Note that ksh looks also at the FPATH variable,
13121 # so we have to set that as well for the test.
13123 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
13124 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
13125 || PATH_SEPARATOR=';'
13129 # Find out how to test for executable files. Don't use a zero-byte file,
13130 # as systems may use methods other than mode bits to determine executability.
13131 cat >conf$$.file <<_ASEOF
13135 chmod +x conf$$.file
13136 if test -x conf$$.file >/dev/null 2>&1; then
13137 ac_executable_p="test -x"
13139 ac_executable_p="test -f"
13143 # Extract the first word of "xgettext", so it can be a program name with args.
13144 set dummy xgettext; ac_word=$2
13145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13146 $as_echo_n "checking for $ac_word... " >&6; }
13147 if ${ac_cv_path_XGETTEXT+:} false; then :
13148 $as_echo_n "(cached) " >&6
13150 case "$XGETTEXT" in
13152 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
13155 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
13156 for ac_dir in $PATH; do
13158 test -z "$ac_dir" && ac_dir=.
13159 for ac_exec_ext in '' $ac_executable_extensions; do
13160 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
13161 echo "$as_me: trying $ac_dir/$ac_word..." >&5
13162 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
13163 (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
13164 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
13171 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
13175 XGETTEXT="$ac_cv_path_XGETTEXT"
13176 if test "$XGETTEXT" != ":"; then
13177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
13178 $as_echo "$XGETTEXT" >&6; }
13180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13181 $as_echo "no" >&6; }
13186 case `$XGETTEXT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
13187 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) XGETTEXT_015=: ;;
13188 *) XGETTEXT_015=$XGETTEXT ;;
13193 # Prepare PATH_SEPARATOR.
13194 # The user is always right.
13195 if test "${PATH_SEPARATOR+set}" != set; then
13196 # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
13197 # contains only /bin. Note that ksh looks also at the FPATH variable,
13198 # so we have to set that as well for the test.
13200 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
13201 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
13202 || PATH_SEPARATOR=';'
13206 # Find out how to test for executable files. Don't use a zero-byte file,
13207 # as systems may use methods other than mode bits to determine executability.
13208 cat >conf$$.file <<_ASEOF
13212 chmod +x conf$$.file
13213 if test -x conf$$.file >/dev/null 2>&1; then
13214 ac_executable_p="test -x"
13216 ac_executable_p="test -f"
13220 # Extract the first word of "msgmerge", so it can be a program name with args.
13221 set dummy msgmerge; ac_word=$2
13222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13223 $as_echo_n "checking for $ac_word... " >&6; }
13224 if ${ac_cv_path_MSGMERGE+:} false; then :
13225 $as_echo_n "(cached) " >&6
13227 case "$MSGMERGE" in
13229 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
13232 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
13233 for ac_dir in $PATH; do
13235 test -z "$ac_dir" && ac_dir=.
13236 for ac_exec_ext in '' $ac_executable_extensions; do
13237 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
13238 echo "$as_me: trying $ac_dir/$ac_word..." >&5
13239 if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
13240 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
13247 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
13251 MSGMERGE="$ac_cv_path_MSGMERGE"
13252 if test "$MSGMERGE" != ":"; then
13253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
13254 $as_echo "$MSGMERGE" >&6; }
13256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13257 $as_echo "no" >&6; }
13261 test -n "$localedir" || localedir='${datadir}/locale'
13264 test -n "${XGETTEXT_EXTRA_OPTIONS+set}" || XGETTEXT_EXTRA_OPTIONS=
13267 ac_config_commands="$ac_config_commands po-directories"
13271 if test "X$prefix" = "XNONE"; then
13272 acl_final_prefix="$ac_default_prefix"
13274 acl_final_prefix="$prefix"
13276 if test "X$exec_prefix" = "XNONE"; then
13277 acl_final_exec_prefix='${prefix}'
13279 acl_final_exec_prefix="$exec_prefix"
13281 acl_save_prefix="$prefix"
13282 prefix="$acl_final_prefix"
13283 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
13284 prefix="$acl_save_prefix"
13288 # Check whether --with-gnu-ld was given.
13289 if test "${with_gnu_ld+set}" = set; then :
13290 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
13295 # Prepare PATH_SEPARATOR.
13296 # The user is always right.
13297 if test "${PATH_SEPARATOR+set}" != set; then
13298 # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
13299 # contains only /bin. Note that ksh looks also at the FPATH variable,
13300 # so we have to set that as well for the test.
13302 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
13303 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
13304 || PATH_SEPARATOR=';'
13309 if test "$GCC" = yes; then
13310 # Check if gcc -print-prog-name=ld gives a path.
13311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
13312 $as_echo_n "checking for ld used by $CC... " >&6; }
13315 # gcc leaves a trailing carriage return which upsets mingw
13316 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
13318 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
13321 # Accept absolute paths.
13323 re_direlt='/[^/][^/]*/\.\./'
13324 # Canonicalize the pathname of ld
13325 ac_prog=`echo "$ac_prog"| sed 's%\\\\%/%g'`
13326 while echo "$ac_prog" | grep "$re_direlt" > /dev/null 2>&1; do
13327 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
13329 test -z "$LD" && LD="$ac_prog"
13332 # If it fails, then pretend we aren't using GCC.
13336 # If it is relative, then search for the first ld in PATH.
13337 with_gnu_ld=unknown
13340 elif test "$with_gnu_ld" = yes; then
13341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
13342 $as_echo_n "checking for GNU ld... " >&6; }
13344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
13345 $as_echo_n "checking for non-GNU ld... " >&6; }
13347 if ${acl_cv_path_LD+:} false; then :
13348 $as_echo_n "(cached) " >&6
13350 if test -z "$LD"; then
13351 acl_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
13352 for ac_dir in $PATH; do
13353 IFS="$acl_save_ifs"
13354 test -z "$ac_dir" && ac_dir=.
13355 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
13356 acl_cv_path_LD="$ac_dir/$ac_prog"
13357 # Check to see if the program is GNU ld. I'd rather use --version,
13358 # but apparently some variants of GNU ld only accept -v.
13359 # Break only if it was the GNU/non-GNU ld that we prefer.
13360 case `"$acl_cv_path_LD" -v 2>&1 </dev/null` in
13361 *GNU* | *'with BFD'*)
13362 test "$with_gnu_ld" != no && break
13365 test "$with_gnu_ld" != yes && break
13370 IFS="$acl_save_ifs"
13372 acl_cv_path_LD="$LD" # Let the user override the test with a path.
13376 LD="$acl_cv_path_LD"
13377 if test -n "$LD"; then
13378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
13379 $as_echo "$LD" >&6; }
13381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13382 $as_echo "no" >&6; }
13384 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
13385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
13386 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
13387 if ${acl_cv_prog_gnu_ld+:} false; then :
13388 $as_echo_n "(cached) " >&6
13390 # I'd rather use --version here, but apparently some GNU lds only accept -v.
13391 case `$LD -v 2>&1 </dev/null` in
13392 *GNU* | *'with BFD'*)
13393 acl_cv_prog_gnu_ld=yes
13396 acl_cv_prog_gnu_ld=no
13400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
13401 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
13402 with_gnu_ld=$acl_cv_prog_gnu_ld
13407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
13408 $as_echo_n "checking for shared library run path origin... " >&6; }
13409 if ${acl_cv_rpath+:} false; then :
13410 $as_echo_n "(cached) " >&6
13413 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
13414 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
13416 rm -f ./conftest.sh
13420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
13421 $as_echo "$acl_cv_rpath" >&6; }
13423 acl_libext="$acl_cv_libext"
13424 acl_shlibext="$acl_cv_shlibext"
13425 acl_libname_spec="$acl_cv_libname_spec"
13426 acl_library_names_spec="$acl_cv_library_names_spec"
13427 acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
13428 acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
13429 acl_hardcode_direct="$acl_cv_hardcode_direct"
13430 acl_hardcode_minus_L="$acl_cv_hardcode_minus_L"
13431 # Check whether --enable-rpath was given.
13432 if test "${enable_rpath+set}" = set; then :
13433 enableval=$enable_rpath; :
13445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit host" >&5
13446 $as_echo_n "checking for 64-bit host... " >&6; }
13447 if ${gl_cv_solaris_64bit+:} false; then :
13448 $as_echo_n "(cached) " >&6
13450 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13451 /* end confdefs.h. */
13458 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13459 $EGREP "sixtyfour bits" >/dev/null 2>&1; then :
13460 gl_cv_solaris_64bit=yes
13462 gl_cv_solaris_64bit=no
13468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_solaris_64bit" >&5
13469 $as_echo "$gl_cv_solaris_64bit" >&6; }
13470 if test $gl_cv_solaris_64bit = yes; then
13471 acl_libdirstem=lib/64
13472 case "$host_cpu" in
13473 sparc*) acl_libdirstem2=lib/sparcv9 ;;
13474 i*86 | x86_64) acl_libdirstem2=lib/amd64 ;;
13479 searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
13480 if test -n "$searchpath"; then
13481 acl_save_IFS="${IFS= }"; IFS=":"
13482 for searchdir in $searchpath; do
13483 if test -d "$searchdir"; then
13484 case "$searchdir" in
13485 */lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
13487 # Better ignore directories of this form. They are misleading.
13489 *) searchdir=`cd "$searchdir" && pwd`
13490 case "$searchdir" in
13491 */lib64 ) acl_libdirstem=lib64 ;;
13496 IFS="$acl_save_IFS"
13500 test -n "$acl_libdirstem2" || acl_libdirstem2="$acl_libdirstem"
13515 acl_save_prefix="$prefix"
13516 prefix="$acl_final_prefix"
13517 acl_save_exec_prefix="$exec_prefix"
13518 exec_prefix="$acl_final_exec_prefix"
13520 eval additional_includedir=\"$includedir\"
13521 eval additional_libdir=\"$libdir\"
13523 exec_prefix="$acl_save_exec_prefix"
13524 prefix="$acl_save_prefix"
13527 # Check whether --with-libiconv-prefix was given.
13528 if test "${with_libiconv_prefix+set}" = set; then :
13529 withval=$with_libiconv_prefix;
13530 if test "X$withval" = "Xno"; then
13533 if test "X$withval" = "X"; then
13535 acl_save_prefix="$prefix"
13536 prefix="$acl_final_prefix"
13537 acl_save_exec_prefix="$exec_prefix"
13538 exec_prefix="$acl_final_exec_prefix"
13540 eval additional_includedir=\"$includedir\"
13541 eval additional_libdir=\"$libdir\"
13543 exec_prefix="$acl_save_exec_prefix"
13544 prefix="$acl_save_prefix"
13547 additional_includedir="$withval/include"
13548 additional_libdir="$withval/$acl_libdirstem"
13549 if test "$acl_libdirstem2" != "$acl_libdirstem" \
13550 && ! test -d "$withval/$acl_libdirstem"; then
13551 additional_libdir="$withval/$acl_libdirstem2"
13565 names_already_handled=
13566 names_next_round='iconv '
13567 while test -n "$names_next_round"; do
13568 names_this_round="$names_next_round"
13570 for name in $names_this_round; do
13572 for n in $names_already_handled; do
13573 if test "$n" = "$name"; then
13574 already_handled=yes
13578 if test -z "$already_handled"; then
13579 names_already_handled="$names_already_handled $name"
13580 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'`
13581 eval value=\"\$HAVE_LIB$uppername\"
13582 if test -n "$value"; then
13583 if test "$value" = yes; then
13584 eval value=\"\$LIB$uppername\"
13585 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
13586 eval value=\"\$LTLIB$uppername\"
13587 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
13596 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
13597 if test -n "$acl_shlibext"; then
13598 shrext=".$acl_shlibext" # typically: shrext=.so
13602 if test $use_additional = yes; then
13603 dir="$additional_libdir"
13604 if test -n "$acl_shlibext"; then
13605 if test -f "$dir/$libname$shrext"; then
13607 found_so="$dir/$libname$shrext"
13609 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
13610 ver=`(cd "$dir" && \
13611 for f in "$libname$shrext".*; do echo "$f"; done \
13612 | sed -e "s,^$libname$shrext\\\\.,," \
13613 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
13614 | sed 1q ) 2>/dev/null`
13615 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
13617 found_so="$dir/$libname$shrext.$ver"
13620 eval library_names=\"$acl_library_names_spec\"
13621 for f in $library_names; do
13622 if test -f "$dir/$f"; then
13631 if test "X$found_dir" = "X"; then
13632 if test -f "$dir/$libname.$acl_libext"; then
13634 found_a="$dir/$libname.$acl_libext"
13637 if test "X$found_dir" != "X"; then
13638 if test -f "$dir/$libname.la"; then
13639 found_la="$dir/$libname.la"
13643 if test "X$found_dir" = "X"; then
13644 for x in $LDFLAGS $LTLIBICONV; do
13646 acl_save_prefix="$prefix"
13647 prefix="$acl_final_prefix"
13648 acl_save_exec_prefix="$exec_prefix"
13649 exec_prefix="$acl_final_exec_prefix"
13651 exec_prefix="$acl_save_exec_prefix"
13652 prefix="$acl_save_prefix"
13656 dir=`echo "X$x" | sed -e 's/^X-L//'`
13657 if test -n "$acl_shlibext"; then
13658 if test -f "$dir/$libname$shrext"; then
13660 found_so="$dir/$libname$shrext"
13662 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
13663 ver=`(cd "$dir" && \
13664 for f in "$libname$shrext".*; do echo "$f"; done \
13665 | sed -e "s,^$libname$shrext\\\\.,," \
13666 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
13667 | sed 1q ) 2>/dev/null`
13668 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
13670 found_so="$dir/$libname$shrext.$ver"
13673 eval library_names=\"$acl_library_names_spec\"
13674 for f in $library_names; do
13675 if test -f "$dir/$f"; then
13684 if test "X$found_dir" = "X"; then
13685 if test -f "$dir/$libname.$acl_libext"; then
13687 found_a="$dir/$libname.$acl_libext"
13690 if test "X$found_dir" != "X"; then
13691 if test -f "$dir/$libname.la"; then
13692 found_la="$dir/$libname.la"
13697 if test "X$found_dir" != "X"; then
13702 if test "X$found_dir" != "X"; then
13703 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
13704 if test "X$found_so" != "X"; then
13705 if test "$enable_rpath" = no \
13706 || test "X$found_dir" = "X/usr/$acl_libdirstem" \
13707 || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
13708 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
13711 for x in $ltrpathdirs; do
13712 if test "X$x" = "X$found_dir"; then
13717 if test -z "$haveit"; then
13718 ltrpathdirs="$ltrpathdirs $found_dir"
13720 if test "$acl_hardcode_direct" = yes; then
13721 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
13723 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
13724 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
13726 for x in $rpathdirs; do
13727 if test "X$x" = "X$found_dir"; then
13732 if test -z "$haveit"; then
13733 rpathdirs="$rpathdirs $found_dir"
13737 for x in $LDFLAGS $LIBICONV; do
13739 acl_save_prefix="$prefix"
13740 prefix="$acl_final_prefix"
13741 acl_save_exec_prefix="$exec_prefix"
13742 exec_prefix="$acl_final_exec_prefix"
13744 exec_prefix="$acl_save_exec_prefix"
13745 prefix="$acl_save_prefix"
13747 if test "X$x" = "X-L$found_dir"; then
13752 if test -z "$haveit"; then
13753 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
13755 if test "$acl_hardcode_minus_L" != no; then
13756 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
13758 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
13764 if test "X$found_a" != "X"; then
13765 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
13767 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
13770 additional_includedir=
13771 case "$found_dir" in
13772 */$acl_libdirstem | */$acl_libdirstem/)
13773 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
13774 if test "$name" = 'iconv'; then
13775 LIBICONV_PREFIX="$basedir"
13777 additional_includedir="$basedir/include"
13779 */$acl_libdirstem2 | */$acl_libdirstem2/)
13780 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
13781 if test "$name" = 'iconv'; then
13782 LIBICONV_PREFIX="$basedir"
13784 additional_includedir="$basedir/include"
13787 if test "X$additional_includedir" != "X"; then
13788 if test "X$additional_includedir" != "X/usr/include"; then
13790 if test "X$additional_includedir" = "X/usr/local/include"; then
13791 if test -n "$GCC"; then
13793 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
13797 if test -z "$haveit"; then
13798 for x in $CPPFLAGS $INCICONV; do
13800 acl_save_prefix="$prefix"
13801 prefix="$acl_final_prefix"
13802 acl_save_exec_prefix="$exec_prefix"
13803 exec_prefix="$acl_final_exec_prefix"
13805 exec_prefix="$acl_save_exec_prefix"
13806 prefix="$acl_save_prefix"
13808 if test "X$x" = "X-I$additional_includedir"; then
13813 if test -z "$haveit"; then
13814 if test -d "$additional_includedir"; then
13815 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
13821 if test -n "$found_la"; then
13822 save_libdir="$libdir"
13823 case "$found_la" in
13824 */* | *\\*) . "$found_la" ;;
13825 *) . "./$found_la" ;;
13827 libdir="$save_libdir"
13828 for dep in $dependency_libs; do
13831 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
13832 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
13833 && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
13835 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
13836 || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
13837 if test -n "$GCC"; then
13839 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
13843 if test -z "$haveit"; then
13845 for x in $LDFLAGS $LIBICONV; do
13847 acl_save_prefix="$prefix"
13848 prefix="$acl_final_prefix"
13849 acl_save_exec_prefix="$exec_prefix"
13850 exec_prefix="$acl_final_exec_prefix"
13852 exec_prefix="$acl_save_exec_prefix"
13853 prefix="$acl_save_prefix"
13855 if test "X$x" = "X-L$additional_libdir"; then
13860 if test -z "$haveit"; then
13861 if test -d "$additional_libdir"; then
13862 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
13866 for x in $LDFLAGS $LTLIBICONV; do
13868 acl_save_prefix="$prefix"
13869 prefix="$acl_final_prefix"
13870 acl_save_exec_prefix="$exec_prefix"
13871 exec_prefix="$acl_final_exec_prefix"
13873 exec_prefix="$acl_save_exec_prefix"
13874 prefix="$acl_save_prefix"
13876 if test "X$x" = "X-L$additional_libdir"; then
13881 if test -z "$haveit"; then
13882 if test -d "$additional_libdir"; then
13883 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
13890 dir=`echo "X$dep" | sed -e 's/^X-R//'`
13891 if test "$enable_rpath" != no; then
13893 for x in $rpathdirs; do
13894 if test "X$x" = "X$dir"; then
13899 if test -z "$haveit"; then
13900 rpathdirs="$rpathdirs $dir"
13903 for x in $ltrpathdirs; do
13904 if test "X$x" = "X$dir"; then
13909 if test -z "$haveit"; then
13910 ltrpathdirs="$ltrpathdirs $dir"
13915 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
13918 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
13921 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
13922 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
13928 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
13929 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
13935 if test "X$rpathdirs" != "X"; then
13936 if test -n "$acl_hardcode_libdir_separator"; then
13938 for found_dir in $rpathdirs; do
13939 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
13941 acl_save_libdir="$libdir"
13943 eval flag=\"$acl_hardcode_libdir_flag_spec\"
13944 libdir="$acl_save_libdir"
13945 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
13947 for found_dir in $rpathdirs; do
13948 acl_save_libdir="$libdir"
13949 libdir="$found_dir"
13950 eval flag=\"$acl_hardcode_libdir_flag_spec\"
13951 libdir="$acl_save_libdir"
13952 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
13956 if test "X$ltrpathdirs" != "X"; then
13957 for found_dir in $ltrpathdirs; do
13958 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
13992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
13993 $as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
13994 if ${gt_cv_func_CFPreferencesCopyAppValue+:} false; then :
13995 $as_echo_n "(cached) " >&6
13997 gt_save_LIBS="$LIBS"
13998 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
13999 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14000 /* end confdefs.h. */
14001 #include <CoreFoundation/CFPreferences.h>
14005 CFPreferencesCopyAppValue(NULL, NULL)
14010 if ac_fn_c_try_link "$LINENO"; then :
14011 gt_cv_func_CFPreferencesCopyAppValue=yes
14013 gt_cv_func_CFPreferencesCopyAppValue=no
14015 rm -f core conftest.err conftest.$ac_objext \
14016 conftest$ac_exeext conftest.$ac_ext
14017 LIBS="$gt_save_LIBS"
14019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
14020 $as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
14021 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
14023 $as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
14026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5
14027 $as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
14028 if ${gt_cv_func_CFLocaleCopyCurrent+:} false; then :
14029 $as_echo_n "(cached) " >&6
14031 gt_save_LIBS="$LIBS"
14032 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
14033 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14034 /* end confdefs.h. */
14035 #include <CoreFoundation/CFLocale.h>
14039 CFLocaleCopyCurrent();
14044 if ac_fn_c_try_link "$LINENO"; then :
14045 gt_cv_func_CFLocaleCopyCurrent=yes
14047 gt_cv_func_CFLocaleCopyCurrent=no
14049 rm -f core conftest.err conftest.$ac_objext \
14050 conftest$ac_exeext conftest.$ac_ext
14051 LIBS="$gt_save_LIBS"
14053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
14054 $as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
14055 if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
14057 $as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h
14061 if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
14062 INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
14074 case " $gt_needs " in
14075 *" need-formatstring-macros "*) gt_api_version=3 ;;
14076 *" need-ngettext "*) gt_api_version=2 ;;
14077 *) gt_api_version=1 ;;
14079 gt_func_gnugettext_libc="gt_cv_func_gnugettext${gt_api_version}_libc"
14080 gt_func_gnugettext_libintl="gt_cv_func_gnugettext${gt_api_version}_libintl"
14082 if test "$USE_NLS" = "yes"; then
14083 gt_use_preinstalled_gnugettext=no
14086 if test $gt_api_version -ge 3; then
14087 gt_revision_test_code='
14088 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
14089 #define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1)
14091 typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1];
14094 gt_revision_test_code=
14096 if test $gt_api_version -ge 2; then
14097 gt_expression_test_code=' + * ngettext ("", "", 0)'
14099 gt_expression_test_code=
14102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
14103 $as_echo_n "checking for GNU gettext in libc... " >&6; }
14104 if eval \${$gt_func_gnugettext_libc+:} false; then :
14105 $as_echo_n "(cached) " >&6
14107 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14108 /* end confdefs.h. */
14110 #include <libintl.h>
14111 $gt_revision_test_code
14112 extern int _nl_msg_cat_cntr;
14113 extern int *_nl_domain_bindings;
14119 bindtextdomain ("", "");
14120 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_domain_bindings
14126 if ac_fn_c_try_link "$LINENO"; then :
14127 eval "$gt_func_gnugettext_libc=yes"
14129 eval "$gt_func_gnugettext_libc=no"
14131 rm -f core conftest.err conftest.$ac_objext \
14132 conftest$ac_exeext conftest.$ac_ext
14134 eval ac_res=\$$gt_func_gnugettext_libc
14135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
14136 $as_echo "$ac_res" >&6; }
14138 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then
14144 am_save_CPPFLAGS="$CPPFLAGS"
14146 for element in $INCICONV; do
14148 for x in $CPPFLAGS; do
14150 acl_save_prefix="$prefix"
14151 prefix="$acl_final_prefix"
14152 acl_save_exec_prefix="$exec_prefix"
14153 exec_prefix="$acl_final_exec_prefix"
14155 exec_prefix="$acl_save_exec_prefix"
14156 prefix="$acl_save_prefix"
14158 if test "X$x" = "X$element"; then
14163 if test -z "$haveit"; then
14164 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
14169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
14170 $as_echo_n "checking for iconv... " >&6; }
14171 if ${am_cv_func_iconv+:} false; then :
14172 $as_echo_n "(cached) " >&6
14175 am_cv_func_iconv="no, consider installing GNU libiconv"
14177 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14178 /* end confdefs.h. */
14180 #include <stdlib.h>
14186 iconv_t cd = iconv_open("","");
14187 iconv(cd,NULL,NULL,NULL,NULL);
14193 if ac_fn_c_try_link "$LINENO"; then :
14194 am_cv_func_iconv=yes
14196 rm -f core conftest.err conftest.$ac_objext \
14197 conftest$ac_exeext conftest.$ac_ext
14198 if test "$am_cv_func_iconv" != yes; then
14199 am_save_LIBS="$LIBS"
14200 LIBS="$LIBS $LIBICONV"
14201 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14202 /* end confdefs.h. */
14204 #include <stdlib.h>
14210 iconv_t cd = iconv_open("","");
14211 iconv(cd,NULL,NULL,NULL,NULL);
14217 if ac_fn_c_try_link "$LINENO"; then :
14218 am_cv_lib_iconv=yes
14219 am_cv_func_iconv=yes
14221 rm -f core conftest.err conftest.$ac_objext \
14222 conftest$ac_exeext conftest.$ac_ext
14223 LIBS="$am_save_LIBS"
14227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
14228 $as_echo "$am_cv_func_iconv" >&6; }
14229 if test "$am_cv_func_iconv" = yes; then
14230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5
14231 $as_echo_n "checking for working iconv... " >&6; }
14232 if ${am_cv_func_iconv_works+:} false; then :
14233 $as_echo_n "(cached) " >&6
14236 am_save_LIBS="$LIBS"
14237 if test $am_cv_lib_iconv = yes; then
14238 LIBS="$LIBS $LIBICONV"
14240 am_cv_func_iconv_works=no
14241 for ac_iconv_const in '' 'const'; do
14242 if test "$cross_compiling" = yes; then :
14244 aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
14245 *) am_cv_func_iconv_works="guessing yes" ;;
14248 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14249 /* end confdefs.h. */
14252 #include <string.h>
14254 #ifndef ICONV_CONST
14255 # define ICONV_CONST $ac_iconv_const
14262 /* Test against AIX 5.1 bug: Failures are not distinguishable from successful
14265 iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
14266 if (cd_utf8_to_88591 != (iconv_t)(-1))
14268 static ICONV_CONST char input[] = "\342\202\254"; /* EURO SIGN */
14270 ICONV_CONST char *inptr = input;
14271 size_t inbytesleft = strlen (input);
14272 char *outptr = buf;
14273 size_t outbytesleft = sizeof (buf);
14274 size_t res = iconv (cd_utf8_to_88591,
14275 &inptr, &inbytesleft,
14276 &outptr, &outbytesleft);
14279 iconv_close (cd_utf8_to_88591);
14282 /* Test against Solaris 10 bug: Failures are not distinguishable from
14283 successful returns. */
14285 iconv_t cd_ascii_to_88591 = iconv_open ("ISO8859-1", "646");
14286 if (cd_ascii_to_88591 != (iconv_t)(-1))
14288 static ICONV_CONST char input[] = "\263";
14290 ICONV_CONST char *inptr = input;
14291 size_t inbytesleft = strlen (input);
14292 char *outptr = buf;
14293 size_t outbytesleft = sizeof (buf);
14294 size_t res = iconv (cd_ascii_to_88591,
14295 &inptr, &inbytesleft,
14296 &outptr, &outbytesleft);
14299 iconv_close (cd_ascii_to_88591);
14302 /* Test against AIX 6.1..7.1 bug: Buffer overrun. */
14304 iconv_t cd_88591_to_utf8 = iconv_open ("UTF-8", "ISO-8859-1");
14305 if (cd_88591_to_utf8 != (iconv_t)(-1))
14307 static ICONV_CONST char input[] = "\304";
14308 static char buf[2] = { (char)0xDE, (char)0xAD };
14309 ICONV_CONST char *inptr = input;
14310 size_t inbytesleft = 1;
14311 char *outptr = buf;
14312 size_t outbytesleft = 1;
14313 size_t res = iconv (cd_88591_to_utf8,
14314 &inptr, &inbytesleft,
14315 &outptr, &outbytesleft);
14316 if (res != (size_t)(-1) || outptr - buf > 1 || buf[1] != (char)0xAD)
14318 iconv_close (cd_88591_to_utf8);
14321 #if 0 /* This bug could be worked around by the caller. */
14322 /* Test against HP-UX 11.11 bug: Positive return value instead of 0. */
14324 iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
14325 if (cd_88591_to_utf8 != (iconv_t)(-1))
14327 static ICONV_CONST char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
14329 ICONV_CONST char *inptr = input;
14330 size_t inbytesleft = strlen (input);
14331 char *outptr = buf;
14332 size_t outbytesleft = sizeof (buf);
14333 size_t res = iconv (cd_88591_to_utf8,
14334 &inptr, &inbytesleft,
14335 &outptr, &outbytesleft);
14338 iconv_close (cd_88591_to_utf8);
14342 /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
14344 if (/* Try standardized names. */
14345 iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1)
14346 /* Try IRIX, OSF/1 names. */
14347 && iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1)
14348 /* Try AIX names. */
14349 && iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1)
14350 /* Try HP-UX names. */
14351 && iconv_open ("utf8", "eucJP") == (iconv_t)(-1))
14359 if ac_fn_c_try_run "$LINENO"; then :
14360 am_cv_func_iconv_works=yes
14362 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14363 conftest.$ac_objext conftest.beam conftest.$ac_ext
14366 test "$am_cv_func_iconv_works" = no || break
14368 LIBS="$am_save_LIBS"
14371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5
14372 $as_echo "$am_cv_func_iconv_works" >&6; }
14373 case "$am_cv_func_iconv_works" in
14374 *no) am_func_iconv=no am_cv_lib_iconv=no ;;
14375 *) am_func_iconv=yes ;;
14378 am_func_iconv=no am_cv_lib_iconv=no
14380 if test "$am_func_iconv" = yes; then
14382 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
14385 if test "$am_cv_lib_iconv" = yes; then
14386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
14387 $as_echo_n "checking how to link with libiconv... " >&6; }
14388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
14389 $as_echo "$LIBICONV" >&6; }
14391 CPPFLAGS="$am_save_CPPFLAGS"
14408 acl_save_prefix="$prefix"
14409 prefix="$acl_final_prefix"
14410 acl_save_exec_prefix="$exec_prefix"
14411 exec_prefix="$acl_final_exec_prefix"
14413 eval additional_includedir=\"$includedir\"
14414 eval additional_libdir=\"$libdir\"
14416 exec_prefix="$acl_save_exec_prefix"
14417 prefix="$acl_save_prefix"
14420 # Check whether --with-libintl-prefix was given.
14421 if test "${with_libintl_prefix+set}" = set; then :
14422 withval=$with_libintl_prefix;
14423 if test "X$withval" = "Xno"; then
14426 if test "X$withval" = "X"; then
14428 acl_save_prefix="$prefix"
14429 prefix="$acl_final_prefix"
14430 acl_save_exec_prefix="$exec_prefix"
14431 exec_prefix="$acl_final_exec_prefix"
14433 eval additional_includedir=\"$includedir\"
14434 eval additional_libdir=\"$libdir\"
14436 exec_prefix="$acl_save_exec_prefix"
14437 prefix="$acl_save_prefix"
14440 additional_includedir="$withval/include"
14441 additional_libdir="$withval/$acl_libdirstem"
14442 if test "$acl_libdirstem2" != "$acl_libdirstem" \
14443 && ! test -d "$withval/$acl_libdirstem"; then
14444 additional_libdir="$withval/$acl_libdirstem2"
14458 names_already_handled=
14459 names_next_round='intl '
14460 while test -n "$names_next_round"; do
14461 names_this_round="$names_next_round"
14463 for name in $names_this_round; do
14465 for n in $names_already_handled; do
14466 if test "$n" = "$name"; then
14467 already_handled=yes
14471 if test -z "$already_handled"; then
14472 names_already_handled="$names_already_handled $name"
14473 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'`
14474 eval value=\"\$HAVE_LIB$uppername\"
14475 if test -n "$value"; then
14476 if test "$value" = yes; then
14477 eval value=\"\$LIB$uppername\"
14478 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
14479 eval value=\"\$LTLIB$uppername\"
14480 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
14489 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
14490 if test -n "$acl_shlibext"; then
14491 shrext=".$acl_shlibext" # typically: shrext=.so
14495 if test $use_additional = yes; then
14496 dir="$additional_libdir"
14497 if test -n "$acl_shlibext"; then
14498 if test -f "$dir/$libname$shrext"; then
14500 found_so="$dir/$libname$shrext"
14502 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
14503 ver=`(cd "$dir" && \
14504 for f in "$libname$shrext".*; do echo "$f"; done \
14505 | sed -e "s,^$libname$shrext\\\\.,," \
14506 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
14507 | sed 1q ) 2>/dev/null`
14508 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
14510 found_so="$dir/$libname$shrext.$ver"
14513 eval library_names=\"$acl_library_names_spec\"
14514 for f in $library_names; do
14515 if test -f "$dir/$f"; then
14524 if test "X$found_dir" = "X"; then
14525 if test -f "$dir/$libname.$acl_libext"; then
14527 found_a="$dir/$libname.$acl_libext"
14530 if test "X$found_dir" != "X"; then
14531 if test -f "$dir/$libname.la"; then
14532 found_la="$dir/$libname.la"
14536 if test "X$found_dir" = "X"; then
14537 for x in $LDFLAGS $LTLIBINTL; do
14539 acl_save_prefix="$prefix"
14540 prefix="$acl_final_prefix"
14541 acl_save_exec_prefix="$exec_prefix"
14542 exec_prefix="$acl_final_exec_prefix"
14544 exec_prefix="$acl_save_exec_prefix"
14545 prefix="$acl_save_prefix"
14549 dir=`echo "X$x" | sed -e 's/^X-L//'`
14550 if test -n "$acl_shlibext"; then
14551 if test -f "$dir/$libname$shrext"; then
14553 found_so="$dir/$libname$shrext"
14555 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
14556 ver=`(cd "$dir" && \
14557 for f in "$libname$shrext".*; do echo "$f"; done \
14558 | sed -e "s,^$libname$shrext\\\\.,," \
14559 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
14560 | sed 1q ) 2>/dev/null`
14561 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
14563 found_so="$dir/$libname$shrext.$ver"
14566 eval library_names=\"$acl_library_names_spec\"
14567 for f in $library_names; do
14568 if test -f "$dir/$f"; then
14577 if test "X$found_dir" = "X"; then
14578 if test -f "$dir/$libname.$acl_libext"; then
14580 found_a="$dir/$libname.$acl_libext"
14583 if test "X$found_dir" != "X"; then
14584 if test -f "$dir/$libname.la"; then
14585 found_la="$dir/$libname.la"
14590 if test "X$found_dir" != "X"; then
14595 if test "X$found_dir" != "X"; then
14596 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
14597 if test "X$found_so" != "X"; then
14598 if test "$enable_rpath" = no \
14599 || test "X$found_dir" = "X/usr/$acl_libdirstem" \
14600 || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
14601 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
14604 for x in $ltrpathdirs; do
14605 if test "X$x" = "X$found_dir"; then
14610 if test -z "$haveit"; then
14611 ltrpathdirs="$ltrpathdirs $found_dir"
14613 if test "$acl_hardcode_direct" = yes; then
14614 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
14616 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
14617 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
14619 for x in $rpathdirs; do
14620 if test "X$x" = "X$found_dir"; then
14625 if test -z "$haveit"; then
14626 rpathdirs="$rpathdirs $found_dir"
14630 for x in $LDFLAGS $LIBINTL; do
14632 acl_save_prefix="$prefix"
14633 prefix="$acl_final_prefix"
14634 acl_save_exec_prefix="$exec_prefix"
14635 exec_prefix="$acl_final_exec_prefix"
14637 exec_prefix="$acl_save_exec_prefix"
14638 prefix="$acl_save_prefix"
14640 if test "X$x" = "X-L$found_dir"; then
14645 if test -z "$haveit"; then
14646 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
14648 if test "$acl_hardcode_minus_L" != no; then
14649 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
14651 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
14657 if test "X$found_a" != "X"; then
14658 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
14660 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
14663 additional_includedir=
14664 case "$found_dir" in
14665 */$acl_libdirstem | */$acl_libdirstem/)
14666 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
14667 if test "$name" = 'intl'; then
14668 LIBINTL_PREFIX="$basedir"
14670 additional_includedir="$basedir/include"
14672 */$acl_libdirstem2 | */$acl_libdirstem2/)
14673 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
14674 if test "$name" = 'intl'; then
14675 LIBINTL_PREFIX="$basedir"
14677 additional_includedir="$basedir/include"
14680 if test "X$additional_includedir" != "X"; then
14681 if test "X$additional_includedir" != "X/usr/include"; then
14683 if test "X$additional_includedir" = "X/usr/local/include"; then
14684 if test -n "$GCC"; then
14686 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
14690 if test -z "$haveit"; then
14691 for x in $CPPFLAGS $INCINTL; do
14693 acl_save_prefix="$prefix"
14694 prefix="$acl_final_prefix"
14695 acl_save_exec_prefix="$exec_prefix"
14696 exec_prefix="$acl_final_exec_prefix"
14698 exec_prefix="$acl_save_exec_prefix"
14699 prefix="$acl_save_prefix"
14701 if test "X$x" = "X-I$additional_includedir"; then
14706 if test -z "$haveit"; then
14707 if test -d "$additional_includedir"; then
14708 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
14714 if test -n "$found_la"; then
14715 save_libdir="$libdir"
14716 case "$found_la" in
14717 */* | *\\*) . "$found_la" ;;
14718 *) . "./$found_la" ;;
14720 libdir="$save_libdir"
14721 for dep in $dependency_libs; do
14724 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
14725 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
14726 && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
14728 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
14729 || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
14730 if test -n "$GCC"; then
14732 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
14736 if test -z "$haveit"; then
14738 for x in $LDFLAGS $LIBINTL; do
14740 acl_save_prefix="$prefix"
14741 prefix="$acl_final_prefix"
14742 acl_save_exec_prefix="$exec_prefix"
14743 exec_prefix="$acl_final_exec_prefix"
14745 exec_prefix="$acl_save_exec_prefix"
14746 prefix="$acl_save_prefix"
14748 if test "X$x" = "X-L$additional_libdir"; then
14753 if test -z "$haveit"; then
14754 if test -d "$additional_libdir"; then
14755 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
14759 for x in $LDFLAGS $LTLIBINTL; do
14761 acl_save_prefix="$prefix"
14762 prefix="$acl_final_prefix"
14763 acl_save_exec_prefix="$exec_prefix"
14764 exec_prefix="$acl_final_exec_prefix"
14766 exec_prefix="$acl_save_exec_prefix"
14767 prefix="$acl_save_prefix"
14769 if test "X$x" = "X-L$additional_libdir"; then
14774 if test -z "$haveit"; then
14775 if test -d "$additional_libdir"; then
14776 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
14783 dir=`echo "X$dep" | sed -e 's/^X-R//'`
14784 if test "$enable_rpath" != no; then
14786 for x in $rpathdirs; do
14787 if test "X$x" = "X$dir"; then
14792 if test -z "$haveit"; then
14793 rpathdirs="$rpathdirs $dir"
14796 for x in $ltrpathdirs; do
14797 if test "X$x" = "X$dir"; then
14802 if test -z "$haveit"; then
14803 ltrpathdirs="$ltrpathdirs $dir"
14808 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
14811 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
14814 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
14815 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
14821 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
14822 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
14828 if test "X$rpathdirs" != "X"; then
14829 if test -n "$acl_hardcode_libdir_separator"; then
14831 for found_dir in $rpathdirs; do
14832 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
14834 acl_save_libdir="$libdir"
14836 eval flag=\"$acl_hardcode_libdir_flag_spec\"
14837 libdir="$acl_save_libdir"
14838 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
14840 for found_dir in $rpathdirs; do
14841 acl_save_libdir="$libdir"
14842 libdir="$found_dir"
14843 eval flag=\"$acl_hardcode_libdir_flag_spec\"
14844 libdir="$acl_save_libdir"
14845 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
14849 if test "X$ltrpathdirs" != "X"; then
14850 for found_dir in $ltrpathdirs; do
14851 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
14860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
14861 $as_echo_n "checking for GNU gettext in libintl... " >&6; }
14862 if eval \${$gt_func_gnugettext_libintl+:} false; then :
14863 $as_echo_n "(cached) " >&6
14865 gt_save_CPPFLAGS="$CPPFLAGS"
14866 CPPFLAGS="$CPPFLAGS $INCINTL"
14867 gt_save_LIBS="$LIBS"
14868 LIBS="$LIBS $LIBINTL"
14869 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14870 /* end confdefs.h. */
14872 #include <libintl.h>
14873 $gt_revision_test_code
14874 extern int _nl_msg_cat_cntr;
14879 const char *_nl_expand_alias (const char *);
14885 bindtextdomain ("", "");
14886 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
14892 if ac_fn_c_try_link "$LINENO"; then :
14893 eval "$gt_func_gnugettext_libintl=yes"
14895 eval "$gt_func_gnugettext_libintl=no"
14897 rm -f core conftest.err conftest.$ac_objext \
14898 conftest$ac_exeext conftest.$ac_ext
14899 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } && test -n "$LIBICONV"; then
14900 LIBS="$LIBS $LIBICONV"
14901 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14902 /* end confdefs.h. */
14904 #include <libintl.h>
14905 $gt_revision_test_code
14906 extern int _nl_msg_cat_cntr;
14911 const char *_nl_expand_alias (const char *);
14917 bindtextdomain ("", "");
14918 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
14924 if ac_fn_c_try_link "$LINENO"; then :
14925 LIBINTL="$LIBINTL $LIBICONV"
14926 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
14927 eval "$gt_func_gnugettext_libintl=yes"
14930 rm -f core conftest.err conftest.$ac_objext \
14931 conftest$ac_exeext conftest.$ac_ext
14933 CPPFLAGS="$gt_save_CPPFLAGS"
14934 LIBS="$gt_save_LIBS"
14936 eval ac_res=\$$gt_func_gnugettext_libintl
14937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
14938 $as_echo "$ac_res" >&6; }
14941 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \
14942 || { { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \
14943 && test "$PACKAGE" != gettext-runtime \
14944 && test "$PACKAGE" != gettext-tools; }; then
14945 gt_use_preinstalled_gnugettext=yes
14954 if test -n "$INTL_MACOSX_LIBS"; then
14955 if test "$gt_use_preinstalled_gnugettext" = "yes" \
14956 || test "$nls_cv_use_gnu_gettext" = "yes"; then
14957 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
14958 LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
14962 if test "$gt_use_preinstalled_gnugettext" = "yes" \
14963 || test "$nls_cv_use_gnu_gettext" = "yes"; then
14965 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
14972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
14973 $as_echo_n "checking whether to use NLS... " >&6; }
14974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
14975 $as_echo "$USE_NLS" >&6; }
14976 if test "$USE_NLS" = "yes"; then
14977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
14978 $as_echo_n "checking where the gettext function comes from... " >&6; }
14979 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
14980 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
14981 gt_source="external libintl"
14986 gt_source="included intl directory"
14988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
14989 $as_echo "$gt_source" >&6; }
14992 if test "$USE_NLS" = "yes"; then
14994 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
14995 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
14996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
14997 $as_echo_n "checking how to link with libintl... " >&6; }
14998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
14999 $as_echo "$LIBINTL" >&6; }
15001 for element in $INCINTL; do
15003 for x in $CPPFLAGS; do
15005 acl_save_prefix="$prefix"
15006 prefix="$acl_final_prefix"
15007 acl_save_exec_prefix="$exec_prefix"
15008 exec_prefix="$acl_final_exec_prefix"
15010 exec_prefix="$acl_save_exec_prefix"
15011 prefix="$acl_save_prefix"
15013 if test "X$x" = "X$element"; then
15018 if test -z "$haveit"; then
15019 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
15026 $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
15029 $as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
15038 INTLLIBS="$LIBINTL"
15046 # This test must come as early as possible after the compiler configuration
15047 # tests, because the choice of the file model can (in principle) affect
15048 # whether functions and headers are available, whether they work, etc.
15049 # Check whether --enable-largefile was given.
15050 if test "${enable_largefile+set}" = set; then :
15051 enableval=$enable_largefile;
15054 if test "$enable_largefile" != no; then
15056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
15057 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
15058 if ${ac_cv_sys_largefile_CC+:} false; then :
15059 $as_echo_n "(cached) " >&6
15061 ac_cv_sys_largefile_CC=no
15062 if test "$GCC" != yes; then
15065 # IRIX 6.2 and later do not support large files by default,
15066 # so use the C compiler's -n32 option if that helps.
15067 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15068 /* end confdefs.h. */
15069 #include <sys/types.h>
15070 /* Check that off_t can represent 2**63 - 1 correctly.
15071 We can't simply define LARGE_OFF_T to be 9223372036854775807,
15072 since some C++ compilers masquerading as C compilers
15073 incorrectly reject 9223372036854775807. */
15074 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
15075 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
15076 && LARGE_OFF_T % 2147483647 == 1)
15086 if ac_fn_c_try_compile "$LINENO"; then :
15089 rm -f core conftest.err conftest.$ac_objext
15091 if ac_fn_c_try_compile "$LINENO"; then :
15092 ac_cv_sys_largefile_CC=' -n32'; break
15094 rm -f core conftest.err conftest.$ac_objext
15098 rm -f conftest.$ac_ext
15101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
15102 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
15103 if test "$ac_cv_sys_largefile_CC" != no; then
15104 CC=$CC$ac_cv_sys_largefile_CC
15107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
15108 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
15109 if ${ac_cv_sys_file_offset_bits+:} false; then :
15110 $as_echo_n "(cached) " >&6
15113 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15114 /* end confdefs.h. */
15115 #include <sys/types.h>
15116 /* Check that off_t can represent 2**63 - 1 correctly.
15117 We can't simply define LARGE_OFF_T to be 9223372036854775807,
15118 since some C++ compilers masquerading as C compilers
15119 incorrectly reject 9223372036854775807. */
15120 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
15121 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
15122 && LARGE_OFF_T % 2147483647 == 1)
15132 if ac_fn_c_try_compile "$LINENO"; then :
15133 ac_cv_sys_file_offset_bits=no; break
15135 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15136 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15137 /* end confdefs.h. */
15138 #define _FILE_OFFSET_BITS 64
15139 #include <sys/types.h>
15140 /* Check that off_t can represent 2**63 - 1 correctly.
15141 We can't simply define LARGE_OFF_T to be 9223372036854775807,
15142 since some C++ compilers masquerading as C compilers
15143 incorrectly reject 9223372036854775807. */
15144 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
15145 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
15146 && LARGE_OFF_T % 2147483647 == 1)
15156 if ac_fn_c_try_compile "$LINENO"; then :
15157 ac_cv_sys_file_offset_bits=64; break
15159 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15160 ac_cv_sys_file_offset_bits=unknown
15164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
15165 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
15166 case $ac_cv_sys_file_offset_bits in #(
15169 cat >>confdefs.h <<_ACEOF
15170 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
15175 if test $ac_cv_sys_file_offset_bits = unknown; then
15176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
15177 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
15178 if ${ac_cv_sys_large_files+:} false; then :
15179 $as_echo_n "(cached) " >&6
15182 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15183 /* end confdefs.h. */
15184 #include <sys/types.h>
15185 /* Check that off_t can represent 2**63 - 1 correctly.
15186 We can't simply define LARGE_OFF_T to be 9223372036854775807,
15187 since some C++ compilers masquerading as C compilers
15188 incorrectly reject 9223372036854775807. */
15189 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
15190 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
15191 && LARGE_OFF_T % 2147483647 == 1)
15201 if ac_fn_c_try_compile "$LINENO"; then :
15202 ac_cv_sys_large_files=no; break
15204 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15205 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15206 /* end confdefs.h. */
15207 #define _LARGE_FILES 1
15208 #include <sys/types.h>
15209 /* Check that off_t can represent 2**63 - 1 correctly.
15210 We can't simply define LARGE_OFF_T to be 9223372036854775807,
15211 since some C++ compilers masquerading as C compilers
15212 incorrectly reject 9223372036854775807. */
15213 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
15214 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
15215 && LARGE_OFF_T % 2147483647 == 1)
15225 if ac_fn_c_try_compile "$LINENO"; then :
15226 ac_cv_sys_large_files=1; break
15228 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15229 ac_cv_sys_large_files=unknown
15233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
15234 $as_echo "$ac_cv_sys_large_files" >&6; }
15235 case $ac_cv_sys_large_files in #(
15238 cat >>confdefs.h <<_ACEOF
15239 #define _LARGE_FILES $ac_cv_sys_large_files
15250 # Checks for libraries.
15251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getpwnam" >&5
15252 $as_echo_n "checking for library containing getpwnam... " >&6; }
15253 if ${ac_cv_search_getpwnam+:} false; then :
15254 $as_echo_n "(cached) " >&6
15256 ac_func_search_save_LIBS=$LIBS
15257 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15258 /* end confdefs.h. */
15260 /* Override any GCC internal prototype to avoid an error.
15261 Use char because int might match the return type of a GCC
15262 builtin and then its argument prototype would still apply. */
15270 return getpwnam ();
15275 for ac_lib in '' sun; do
15276 if test -z "$ac_lib"; then
15277 ac_res="none required"
15280 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
15282 if ac_fn_c_try_link "$LINENO"; then :
15283 ac_cv_search_getpwnam=$ac_res
15285 rm -f core conftest.err conftest.$ac_objext \
15287 if ${ac_cv_search_getpwnam+:} false; then :
15291 if ${ac_cv_search_getpwnam+:} false; then :
15294 ac_cv_search_getpwnam=no
15296 rm conftest.$ac_ext
15297 LIBS=$ac_func_search_save_LIBS
15299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getpwnam" >&5
15300 $as_echo "$ac_cv_search_getpwnam" >&6; }
15301 ac_res=$ac_cv_search_getpwnam
15302 if test "$ac_res" != no; then :
15303 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15308 # Checks for header files.
15309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
15310 $as_echo_n "checking for ANSI C header files... " >&6; }
15311 if ${ac_cv_header_stdc+:} false; then :
15312 $as_echo_n "(cached) " >&6
15314 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15315 /* end confdefs.h. */
15316 #include <stdlib.h>
15317 #include <stdarg.h>
15318 #include <string.h>
15329 if ac_fn_c_try_compile "$LINENO"; then :
15330 ac_cv_header_stdc=yes
15332 ac_cv_header_stdc=no
15334 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15336 if test $ac_cv_header_stdc = yes; then
15337 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
15338 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15339 /* end confdefs.h. */
15340 #include <string.h>
15343 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15344 $EGREP "memchr" >/dev/null 2>&1; then :
15347 ac_cv_header_stdc=no
15353 if test $ac_cv_header_stdc = yes; then
15354 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
15355 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15356 /* end confdefs.h. */
15357 #include <stdlib.h>
15360 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15361 $EGREP "free" >/dev/null 2>&1; then :
15364 ac_cv_header_stdc=no
15370 if test $ac_cv_header_stdc = yes; then
15371 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
15372 if test "$cross_compiling" = yes; then :
15375 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15376 /* end confdefs.h. */
15378 #include <stdlib.h>
15379 #if ((' ' & 0x0FF) == 0x020)
15380 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
15381 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
15383 # define ISLOWER(c) \
15384 (('a' <= (c) && (c) <= 'i') \
15385 || ('j' <= (c) && (c) <= 'r') \
15386 || ('s' <= (c) && (c) <= 'z'))
15387 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
15390 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
15395 for (i = 0; i < 256; i++)
15396 if (XOR (islower (i), ISLOWER (i))
15397 || toupper (i) != TOUPPER (i))
15402 if ac_fn_c_try_run "$LINENO"; then :
15405 ac_cv_header_stdc=no
15407 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15408 conftest.$ac_objext conftest.beam conftest.$ac_ext
15413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
15414 $as_echo "$ac_cv_header_stdc" >&6; }
15415 if test $ac_cv_header_stdc = yes; then
15417 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
15421 ac_header_dirent=no
15422 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
15423 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
15424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
15425 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
15426 if eval \${$as_ac_Header+:} false; then :
15427 $as_echo_n "(cached) " >&6
15429 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15430 /* end confdefs.h. */
15431 #include <sys/types.h>
15443 if ac_fn_c_try_compile "$LINENO"; then :
15444 eval "$as_ac_Header=yes"
15446 eval "$as_ac_Header=no"
15448 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15450 eval ac_res=\$$as_ac_Header
15451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
15452 $as_echo "$ac_res" >&6; }
15453 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
15454 cat >>confdefs.h <<_ACEOF
15455 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
15458 ac_header_dirent=$ac_hdr; break
15462 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
15463 if test $ac_header_dirent = dirent.h; then
15464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
15465 $as_echo_n "checking for library containing opendir... " >&6; }
15466 if ${ac_cv_search_opendir+:} false; then :
15467 $as_echo_n "(cached) " >&6
15469 ac_func_search_save_LIBS=$LIBS
15470 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15471 /* end confdefs.h. */
15473 /* Override any GCC internal prototype to avoid an error.
15474 Use char because int might match the return type of a GCC
15475 builtin and then its argument prototype would still apply. */
15488 for ac_lib in '' dir; do
15489 if test -z "$ac_lib"; then
15490 ac_res="none required"
15493 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
15495 if ac_fn_c_try_link "$LINENO"; then :
15496 ac_cv_search_opendir=$ac_res
15498 rm -f core conftest.err conftest.$ac_objext \
15500 if ${ac_cv_search_opendir+:} false; then :
15504 if ${ac_cv_search_opendir+:} false; then :
15507 ac_cv_search_opendir=no
15509 rm conftest.$ac_ext
15510 LIBS=$ac_func_search_save_LIBS
15512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
15513 $as_echo "$ac_cv_search_opendir" >&6; }
15514 ac_res=$ac_cv_search_opendir
15515 if test "$ac_res" != no; then :
15516 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
15522 $as_echo_n "checking for library containing opendir... " >&6; }
15523 if ${ac_cv_search_opendir+:} false; then :
15524 $as_echo_n "(cached) " >&6
15526 ac_func_search_save_LIBS=$LIBS
15527 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15528 /* end confdefs.h. */
15530 /* Override any GCC internal prototype to avoid an error.
15531 Use char because int might match the return type of a GCC
15532 builtin and then its argument prototype would still apply. */
15545 for ac_lib in '' x; do
15546 if test -z "$ac_lib"; then
15547 ac_res="none required"
15550 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
15552 if ac_fn_c_try_link "$LINENO"; then :
15553 ac_cv_search_opendir=$ac_res
15555 rm -f core conftest.err conftest.$ac_objext \
15557 if ${ac_cv_search_opendir+:} false; then :
15561 if ${ac_cv_search_opendir+:} false; then :
15564 ac_cv_search_opendir=no
15566 rm conftest.$ac_ext
15567 LIBS=$ac_func_search_save_LIBS
15569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
15570 $as_echo "$ac_cv_search_opendir" >&6; }
15571 ac_res=$ac_cv_search_opendir
15572 if test "$ac_res" != no; then :
15573 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
15580 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
15581 if ${ac_cv_header_stat_broken+:} false; then :
15582 $as_echo_n "(cached) " >&6
15584 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15585 /* end confdefs.h. */
15586 #include <sys/types.h>
15587 #include <sys/stat.h>
15589 #if defined S_ISBLK && defined S_IFDIR
15590 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
15593 #if defined S_ISBLK && defined S_IFCHR
15594 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
15597 #if defined S_ISLNK && defined S_IFREG
15598 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
15601 #if defined S_ISSOCK && defined S_IFREG
15602 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
15606 if ac_fn_c_try_compile "$LINENO"; then :
15607 ac_cv_header_stat_broken=no
15609 ac_cv_header_stat_broken=yes
15611 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
15614 $as_echo "$ac_cv_header_stat_broken" >&6; }
15615 if test $ac_cv_header_stat_broken = yes; then
15617 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
15621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
15622 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
15623 if ${ac_cv_header_time+:} false; then :
15624 $as_echo_n "(cached) " >&6
15626 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15627 /* end confdefs.h. */
15628 #include <sys/types.h>
15629 #include <sys/time.h>
15635 if ((struct tm *) 0)
15641 if ac_fn_c_try_compile "$LINENO"; then :
15642 ac_cv_header_time=yes
15644 ac_cv_header_time=no
15646 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
15649 $as_echo "$ac_cv_header_time" >&6; }
15650 if test $ac_cv_header_time = yes; then
15652 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
15656 for ac_header in stdlib.h locale.h unistd.h limits.h fcntl.h string.h \
15657 memory.h sys/param.h sys/resource.h sys/time.h sys/timeb.h \
15658 sys/select.h sys/file.h spawn.h
15660 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
15661 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
15662 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
15663 cat >>confdefs.h <<_ACEOF
15664 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
15673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
15674 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
15675 if ${ac_cv_c_const+:} false; then :
15676 $as_echo_n "(cached) " >&6
15678 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15679 /* end confdefs.h. */
15685 #ifndef __cplusplus
15686 /* Ultrix mips cc rejects this sort of thing. */
15687 typedef int charset[2];
15688 const charset cs = { 0, 0 };
15689 /* SunOS 4.1.1 cc rejects this. */
15690 char const *const *pcpcc;
15692 /* NEC SVR4.0.2 mips cc rejects this. */
15693 struct point {int x, y;};
15694 static struct point const zero = {0,0};
15695 /* AIX XL C 1.02.0.0 rejects this.
15696 It does not let you subtract one const X* pointer from another in
15697 an arm of an if-expression whose if-part is not a constant
15699 const char *g = "string";
15700 pcpcc = &g + (g ? g-g : 0);
15701 /* HPUX 7.0 cc rejects these. */
15703 ppc = (char**) pcpcc;
15704 pcpcc = (char const *const *) ppc;
15705 { /* SCO 3.2v4 cc rejects this sort of thing. */
15708 char const *s = 0 ? (char *) 0 : (char const *) 0;
15713 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
15714 int x[] = {25, 17};
15715 const int *foo = &x[0];
15718 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
15719 typedef const int *iptr;
15723 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
15724 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
15725 struct s { int j; const int *ap[3]; } bx;
15726 struct s *b = &bx; b->j = 5;
15728 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
15729 const int foo = 10;
15730 if (!foo) return 0;
15732 return !cs[0] && !zero.x;
15739 if ac_fn_c_try_compile "$LINENO"; then :
15744 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
15747 $as_echo "$ac_cv_c_const" >&6; }
15748 if test $ac_cv_c_const = no; then
15750 $as_echo "#define const /**/" >>confdefs.h
15754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
15755 $as_echo_n "checking return type of signal handlers... " >&6; }
15756 if ${ac_cv_type_signal+:} false; then :
15757 $as_echo_n "(cached) " >&6
15759 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15760 /* end confdefs.h. */
15761 #include <sys/types.h>
15762 #include <signal.h>
15767 return *(signal (0, 0)) (0) == 1;
15772 if ac_fn_c_try_compile "$LINENO"; then :
15773 ac_cv_type_signal=int
15775 ac_cv_type_signal=void
15777 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
15780 $as_echo "$ac_cv_type_signal" >&6; }
15782 cat >>confdefs.h <<_ACEOF
15783 #define RETSIGTYPE $ac_cv_type_signal
15787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
15788 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
15789 if ${ac_cv_type_uid_t+:} false; then :
15790 $as_echo_n "(cached) " >&6
15792 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15793 /* end confdefs.h. */
15794 #include <sys/types.h>
15797 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15798 $EGREP "uid_t" >/dev/null 2>&1; then :
15799 ac_cv_type_uid_t=yes
15801 ac_cv_type_uid_t=no
15806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
15807 $as_echo "$ac_cv_type_uid_t" >&6; }
15808 if test $ac_cv_type_uid_t = no; then
15810 $as_echo "#define uid_t int" >>confdefs.h
15813 $as_echo "#define gid_t int" >>confdefs.h
15817 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
15818 if test "x$ac_cv_type_pid_t" = xyes; then :
15822 cat >>confdefs.h <<_ACEOF
15828 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
15829 if test "x$ac_cv_type_off_t" = xyes; then :
15833 cat >>confdefs.h <<_ACEOF
15834 #define off_t long int
15839 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
15840 if test "x$ac_cv_type_size_t" = xyes; then :
15844 cat >>confdefs.h <<_ACEOF
15845 #define size_t unsigned int
15850 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
15851 if test "x$ac_cv_type_ssize_t" = xyes; then :
15855 cat >>confdefs.h <<_ACEOF
15856 #define ssize_t int
15862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
15863 $as_echo_n "checking for unsigned long long int... " >&6; }
15864 if ${ac_cv_type_unsigned_long_long_int+:} false; then :
15865 $as_echo_n "(cached) " >&6
15867 ac_cv_type_unsigned_long_long_int=yes
15868 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
15869 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15870 /* end confdefs.h. */
15872 /* For now, do not test the preprocessor; as of 2007 there are too many
15873 implementations with broken preprocessors. Perhaps this can
15874 be revisited in 2012. In the meantime, code should not expect
15875 #if to work with literals wider than 32 bits. */
15876 /* Test literals. */
15877 long long int ll = 9223372036854775807ll;
15878 long long int nll = -9223372036854775807LL;
15879 unsigned long long int ull = 18446744073709551615ULL;
15880 /* Test constant expressions. */
15881 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
15883 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
15889 /* Test availability of runtime routines for shift and division. */
15890 long long int llmax = 9223372036854775807ll;
15891 unsigned long long int ullmax = 18446744073709551615ull;
15892 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
15893 | (llmax / ll) | (llmax % ll)
15894 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
15895 | (ullmax / ull) | (ullmax % ull));
15901 if ac_fn_c_try_link "$LINENO"; then :
15904 ac_cv_type_unsigned_long_long_int=no
15906 rm -f core conftest.err conftest.$ac_objext \
15907 conftest$ac_exeext conftest.$ac_ext
15910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
15911 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
15912 if test $ac_cv_type_unsigned_long_long_int = yes; then
15914 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
15920 ac_fn_c_check_type "$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "$ac_includes_default"
15921 if test "x$ac_cv_type_uintmax_t" = xyes; then :
15923 $as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
15926 test $ac_cv_type_unsigned_long_long_int = yes \
15927 && ac_type='unsigned long long int' \
15928 || ac_type='unsigned long int'
15930 cat >>confdefs.h <<_ACEOF
15931 #define uintmax_t $ac_type
15938 # Find out whether our struct stat returns nanosecond resolution timestamps.
15940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nanoseconds field of struct stat" >&5
15941 $as_echo_n "checking for nanoseconds field of struct stat... " >&6; }
15942 if ${ac_cv_struct_st_mtim_nsec+:} false; then :
15943 $as_echo_n "(cached) " >&6
15945 ac_save_CPPFLAGS="$CPPFLAGS"
15946 ac_cv_struct_st_mtim_nsec=no
15947 # st_mtim.tv_nsec -- the usual case
15948 # st_mtim._tv_nsec -- Solaris 2.6, if
15949 # (defined _XOPEN_SOURCE && _XOPEN_SOURCE_EXTENDED == 1
15950 # && !defined __EXTENSIONS__)
15951 # st_mtim.st__tim.tv_nsec -- UnixWare 2.1.2
15952 # st_mtime_n -- AIX 5.2 and above
15953 # st_mtimespec.tv_nsec -- Darwin (Mac OSX)
15954 for ac_val in st_mtim.tv_nsec st_mtim._tv_nsec st_mtim.st__tim.tv_nsec st_mtime_n st_mtimespec.tv_nsec; do
15955 CPPFLAGS="$ac_save_CPPFLAGS -DST_MTIM_NSEC=$ac_val"
15956 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15957 /* end confdefs.h. */
15958 #include <sys/types.h>
15959 #include <sys/stat.h>
15964 struct stat s; s.ST_MTIM_NSEC;
15969 if ac_fn_c_try_compile "$LINENO"; then :
15970 ac_cv_struct_st_mtim_nsec=$ac_val; break
15972 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15974 CPPFLAGS="$ac_save_CPPFLAGS"
15977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_st_mtim_nsec" >&5
15978 $as_echo "$ac_cv_struct_st_mtim_nsec" >&6; }
15980 if test $ac_cv_struct_st_mtim_nsec != no; then
15982 cat >>confdefs.h <<_ACEOF
15983 #define ST_MTIM_NSEC $ac_cv_struct_st_mtim_nsec
15989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use high resolution file timestamps" >&5
15990 $as_echo_n "checking whether to use high resolution file timestamps... " >&6; }
15991 if ${make_cv_file_timestamp_hi_res+:} false; then :
15992 $as_echo_n "(cached) " >&6
15994 make_cv_file_timestamp_hi_res=no
15995 if test "$ac_cv_struct_st_mtim_nsec" != no; then :
15996 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15997 /* end confdefs.h. */
15999 #if HAVE_INTTYPES_H
16000 # include <inttypes.h>
16005 char a[0x7fffffff < (uintmax_t)-1 >> 30 ? 1 : -1];
16010 if ac_fn_c_try_compile "$LINENO"; then :
16011 make_cv_file_timestamp_hi_res=yes
16013 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $make_cv_file_timestamp_hi_res" >&5
16018 $as_echo "$make_cv_file_timestamp_hi_res" >&6; }
16019 if test "$make_cv_file_timestamp_hi_res" = yes; then :
16025 cat >>confdefs.h <<_ACEOF
16026 #define FILE_TIMESTAMP_HI_RES $val
16030 if test "$make_cv_file_timestamp_hi_res" = yes; then :
16031 # Solaris 2.5.1 needs -lposix4 to get the clock_gettime function.
16032 # Solaris 7 prefers the library name -lrt to the obsolescent name -lposix4.
16033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
16034 $as_echo_n "checking for library containing clock_gettime... " >&6; }
16035 if ${ac_cv_search_clock_gettime+:} false; then :
16036 $as_echo_n "(cached) " >&6
16038 ac_func_search_save_LIBS=$LIBS
16039 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16040 /* end confdefs.h. */
16042 /* Override any GCC internal prototype to avoid an error.
16043 Use char because int might match the return type of a GCC
16044 builtin and then its argument prototype would still apply. */
16048 char clock_gettime ();
16052 return clock_gettime ();
16057 for ac_lib in '' rt posix4; do
16058 if test -z "$ac_lib"; then
16059 ac_res="none required"
16062 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
16064 if ac_fn_c_try_link "$LINENO"; then :
16065 ac_cv_search_clock_gettime=$ac_res
16067 rm -f core conftest.err conftest.$ac_objext \
16069 if ${ac_cv_search_clock_gettime+:} false; then :
16073 if ${ac_cv_search_clock_gettime+:} false; then :
16076 ac_cv_search_clock_gettime=no
16078 rm conftest.$ac_ext
16079 LIBS=$ac_func_search_save_LIBS
16081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
16082 $as_echo "$ac_cv_search_clock_gettime" >&6; }
16083 ac_res=$ac_cv_search_clock_gettime
16084 if test "$ac_res" != no; then :
16085 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
16089 if test "$ac_cv_search_clock_gettime" != no; then :
16091 $as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
16098 # Check for DOS-style pathnames.
16100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system uses MSDOS-style paths" >&5
16101 $as_echo_n "checking whether system uses MSDOS-style paths... " >&6; }
16102 if ${ac_cv_dos_paths+:} false; then :
16103 $as_echo_n "(cached) " >&6
16106 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16107 /* end confdefs.h. */
16109 #if !defined _WIN32 && !defined __WIN32__ && !defined __MSDOS__ && !defined __EMX__ && !defined __MSYS__ && !defined __CYGWIN__
16110 neither MSDOS nor Windows nor OS2
16121 if ac_fn_c_try_compile "$LINENO"; then :
16122 ac_cv_dos_paths=yes
16126 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_dos_paths" >&5
16129 $as_echo "$ac_cv_dos_paths" >&6; }
16131 if test x"$ac_cv_dos_paths" = xyes; then :
16133 cat >>confdefs.h <<_ACEOF
16134 #define HAVE_DOS_PATHS 1
16140 # See if we have a standard version of gettimeofday(). Since actual
16141 # implementations can differ, just make sure we have the most common
16143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for standard gettimeofday" >&5
16144 $as_echo_n "checking for standard gettimeofday... " >&6; }
16145 if ${ac_cv_func_gettimeofday+:} false; then :
16146 $as_echo_n "(cached) " >&6
16148 ac_cv_func_gettimeofday=no
16149 if test "$cross_compiling" = yes; then :
16150 ac_cv_func_gettimeofday="no (cross-compiling)"
16152 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16153 /* end confdefs.h. */
16154 #include <sys/time.h>
16157 struct timeval t; t.tv_sec = -1; t.tv_usec = -1;
16158 return gettimeofday (&t, 0) != 0
16159 || t.tv_sec < 0 || t.tv_usec < 0;
16162 if ac_fn_c_try_run "$LINENO"; then :
16163 ac_cv_func_gettimeofday=yes
16165 ac_cv_func_gettimeofday=no
16167 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16168 conftest.$ac_objext conftest.beam conftest.$ac_ext
16172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_gettimeofday" >&5
16173 $as_echo "$ac_cv_func_gettimeofday" >&6; }
16174 if test "$ac_cv_func_gettimeofday" = yes; then :
16176 $as_echo "#define HAVE_GETTIMEOFDAY 1" >>confdefs.h
16181 for ac_func in strdup strndup memrchr umask mkstemp mktemp fdopen \
16182 dup dup2 getcwd realpath sigsetmask sigaction \
16183 getgroups seteuid setegid setlinebuf setreuid setregid \
16184 getrlimit setrlimit setvbuf pipe strsignal \
16185 lstat readlink atexit isatty ttyname pselect posix_spawn \
16186 posix_spawnattr_setsigmask
16188 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16189 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
16190 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
16191 cat >>confdefs.h <<_ACEOF
16192 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16199 # We need to check declarations, not just existence, because on Tru64 this
16200 # function is not declared without special flags, which themselves cause
16201 # other problems. We'll just use our own.
16202 ac_fn_c_check_decl "$LINENO" "bsd_signal" "ac_cv_have_decl_bsd_signal" "#define _GNU_SOURCE 1
16203 #include <signal.h>
16205 if test "x$ac_cv_have_decl_bsd_signal" = xyes; then :
16211 cat >>confdefs.h <<_ACEOF
16212 #define HAVE_DECL_BSD_SIGNAL $ac_have_decl
16216 for ac_header in vfork.h
16218 ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
16219 if test "x$ac_cv_header_vfork_h" = xyes; then :
16220 cat >>confdefs.h <<_ACEOF
16221 #define HAVE_VFORK_H 1
16228 for ac_func in fork vfork
16230 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16231 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
16232 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
16233 cat >>confdefs.h <<_ACEOF
16234 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16240 if test "x$ac_cv_func_fork" = xyes; then
16241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
16242 $as_echo_n "checking for working fork... " >&6; }
16243 if ${ac_cv_func_fork_works+:} false; then :
16244 $as_echo_n "(cached) " >&6
16246 if test "$cross_compiling" = yes; then :
16247 ac_cv_func_fork_works=cross
16249 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16250 /* end confdefs.h. */
16251 $ac_includes_default
16256 /* By Ruediger Kuhlmann. */
16257 return fork () < 0;
16263 if ac_fn_c_try_run "$LINENO"; then :
16264 ac_cv_func_fork_works=yes
16266 ac_cv_func_fork_works=no
16268 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16269 conftest.$ac_objext conftest.beam conftest.$ac_ext
16273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
16274 $as_echo "$ac_cv_func_fork_works" >&6; }
16277 ac_cv_func_fork_works=$ac_cv_func_fork
16279 if test "x$ac_cv_func_fork_works" = xcross; then
16281 *-*-amigaos* | *-*-msdosdjgpp*)
16282 # Override, as these systems have only a dummy fork() stub
16283 ac_cv_func_fork_works=no
16286 ac_cv_func_fork_works=yes
16289 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
16290 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
16292 ac_cv_func_vfork_works=$ac_cv_func_vfork
16293 if test "x$ac_cv_func_vfork" = xyes; then
16294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
16295 $as_echo_n "checking for working vfork... " >&6; }
16296 if ${ac_cv_func_vfork_works+:} false; then :
16297 $as_echo_n "(cached) " >&6
16299 if test "$cross_compiling" = yes; then :
16300 ac_cv_func_vfork_works=cross
16302 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16303 /* end confdefs.h. */
16304 /* Thanks to Paul Eggert for this test. */
16305 $ac_includes_default
16306 #include <sys/wait.h>
16307 #ifdef HAVE_VFORK_H
16308 # include <vfork.h>
16310 /* On some sparc systems, changes by the child to local and incoming
16311 argument registers are propagated back to the parent. The compiler
16312 is told about this with #include <vfork.h>, but some compilers
16313 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
16314 static variable whose address is put into a register that is
16315 clobbered by the vfork. */
16318 sparc_address_test (int arg)
16320 sparc_address_test (arg) int arg;
16323 static pid_t child;
16341 pid_t parent = getpid ();
16344 sparc_address_test (0);
16349 /* Here is another test for sparc vfork register problems. This
16350 test uses lots of local variables, at least as many local
16351 variables as main has allocated so far including compiler
16352 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
16353 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
16354 reuse the register of parent for one of the local variables,
16355 since it will think that parent can't possibly be used any more
16356 in this routine. Assigning to the local variable will thus
16357 munge parent in the parent process. */
16359 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
16360 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
16361 /* Convince the compiler that p..p7 are live; otherwise, it might
16362 use the same hardware register for all 8 local variables. */
16363 if (p != p1 || p != p2 || p != p3 || p != p4
16364 || p != p5 || p != p6 || p != p7)
16367 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
16368 from child file descriptors. If the child closes a descriptor
16369 before it execs or exits, this munges the parent's descriptor
16370 as well. Test for this by closing stdout in the child. */
16371 _exit(close(fileno(stdout)) != 0);
16376 while (wait(&status) != child)
16379 /* Was there some problem with vforking? */
16382 /* Did the child fail? (This shouldn't happen.) */
16385 /* Did the vfork/compiler bug occur? */
16386 || parent != getpid()
16388 /* Did the file descriptor bug occur? */
16389 || fstat(fileno(stdout), &st) != 0
16394 if ac_fn_c_try_run "$LINENO"; then :
16395 ac_cv_func_vfork_works=yes
16397 ac_cv_func_vfork_works=no
16399 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16400 conftest.$ac_objext conftest.beam conftest.$ac_ext
16404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
16405 $as_echo "$ac_cv_func_vfork_works" >&6; }
16408 if test "x$ac_cv_func_fork_works" = xcross; then
16409 ac_cv_func_vfork_works=$ac_cv_func_vfork
16410 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
16411 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
16414 if test "x$ac_cv_func_vfork_works" = xyes; then
16416 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
16420 $as_echo "#define vfork fork" >>confdefs.h
16423 if test "x$ac_cv_func_fork_works" = xyes; then
16425 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
16430 if ${ac_cv_func_setvbuf_reversed+:} false; then :
16431 $as_echo_n "(cached) " >&6
16433 ac_cv_func_setvbuf_reversed=no
16438 # Rumor has it that strcasecmp lives in -lresolv on some odd systems.
16439 # It doesn't hurt much to use our own if we can't find it so I don't
16440 # make the effort here.
16441 for ac_func in strcasecmp strncasecmp strcmpi strncmpi stricmp strnicmp
16443 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16444 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
16445 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
16446 cat >>confdefs.h <<_ACEOF
16447 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16454 # strcoll() is used by the GNU glob library
16455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strcoll" >&5
16456 $as_echo_n "checking for working strcoll... " >&6; }
16457 if ${ac_cv_func_strcoll_works+:} false; then :
16458 $as_echo_n "(cached) " >&6
16460 if test "$cross_compiling" = yes; then :
16461 ac_cv_func_strcoll_works=no
16463 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16464 /* end confdefs.h. */
16465 $ac_includes_default
16469 return (strcoll ("abc", "def") >= 0 ||
16470 strcoll ("ABC", "DEF") >= 0 ||
16471 strcoll ("123", "456") >= 0)
16476 if ac_fn_c_try_run "$LINENO"; then :
16477 ac_cv_func_strcoll_works=yes
16479 ac_cv_func_strcoll_works=no
16481 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16482 conftest.$ac_objext conftest.beam conftest.$ac_ext
16486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strcoll_works" >&5
16487 $as_echo "$ac_cv_func_strcoll_works" >&6; }
16488 if test $ac_cv_func_strcoll_works = yes; then
16490 $as_echo "#define HAVE_STRCOLL 1" >>confdefs.h
16494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether closedir returns void" >&5
16495 $as_echo_n "checking whether closedir returns void... " >&6; }
16496 if ${ac_cv_func_closedir_void+:} false; then :
16497 $as_echo_n "(cached) " >&6
16499 if test "$cross_compiling" = yes; then :
16500 ac_cv_func_closedir_void=yes
16502 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16503 /* end confdefs.h. */
16504 $ac_includes_default
16505 #include <$ac_header_dirent>
16506 #ifndef __cplusplus
16513 return closedir (opendir (".")) != 0;
16518 if ac_fn_c_try_run "$LINENO"; then :
16519 ac_cv_func_closedir_void=no
16521 ac_cv_func_closedir_void=yes
16523 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16524 conftest.$ac_objext conftest.beam conftest.$ac_ext
16528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_closedir_void" >&5
16529 $as_echo "$ac_cv_func_closedir_void" >&6; }
16530 if test $ac_cv_func_closedir_void = yes; then
16532 $as_echo "#define CLOSEDIR_VOID 1" >>confdefs.h
16537 # dir.c and our glob.c use dirent.d_type if available
16540 ac_fn_c_check_member "$LINENO" "struct dirent" "d_type" "ac_cv_member_struct_dirent_d_type" "
16541 #include <sys/types.h>
16542 #ifdef HAVE_DIRENT_H
16543 # include <dirent.h>
16545 # define dirent direct
16546 # ifdef HAVE_SYS_NDIR_H
16547 # include <sys/ndir.h>
16549 # ifdef HAVE_SYS_DIR_H
16550 # include <sys/dir.h>
16552 # ifdef HAVE_NDIR_H
16558 if test "x$ac_cv_member_struct_dirent_d_type" = xyes; then :
16560 cat >>confdefs.h <<_ACEOF
16561 #define HAVE_STRUCT_DIRENT_D_TYPE 1
16569 # See if the user wants to add (or not) GNU Guile support
16571 # Check whether --with-guile was given.
16572 if test "${with_guile+set}" = set; then :
16573 withval=$with_guile;
16577 # Annoyingly, each version of Guile comes with it's own PC file so we have to
16578 # specify them as individual packages. Ugh.
16586 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
16587 if test -n "$ac_tool_prefix"; then
16588 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
16589 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
16590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16591 $as_echo_n "checking for $ac_word... " >&6; }
16592 if ${ac_cv_path_PKG_CONFIG+:} false; then :
16593 $as_echo_n "(cached) " >&6
16595 case $PKG_CONFIG in
16597 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
16600 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16601 for as_dir in $PATH
16604 test -z "$as_dir" && as_dir=.
16605 for ac_exec_ext in '' $ac_executable_extensions; do
16606 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16607 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
16608 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16618 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
16619 if test -n "$PKG_CONFIG"; then
16620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
16621 $as_echo "$PKG_CONFIG" >&6; }
16623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16624 $as_echo "no" >&6; }
16629 if test -z "$ac_cv_path_PKG_CONFIG"; then
16630 ac_pt_PKG_CONFIG=$PKG_CONFIG
16631 # Extract the first word of "pkg-config", so it can be a program name with args.
16632 set dummy pkg-config; ac_word=$2
16633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16634 $as_echo_n "checking for $ac_word... " >&6; }
16635 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
16636 $as_echo_n "(cached) " >&6
16638 case $ac_pt_PKG_CONFIG in
16640 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
16643 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16644 for as_dir in $PATH
16647 test -z "$as_dir" && as_dir=.
16648 for ac_exec_ext in '' $ac_executable_extensions; do
16649 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16650 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
16651 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16661 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
16662 if test -n "$ac_pt_PKG_CONFIG"; then
16663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
16664 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
16666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16667 $as_echo "no" >&6; }
16670 if test "x$ac_pt_PKG_CONFIG" = x; then
16673 case $cross_compiling:$ac_tool_warned in
16675 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
16676 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
16677 ac_tool_warned=yes ;;
16679 PKG_CONFIG=$ac_pt_PKG_CONFIG
16682 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
16686 if test -n "$PKG_CONFIG"; then
16687 _pkg_min_version=0.9.0
16688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
16689 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
16690 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
16691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16692 $as_echo "yes" >&6; }
16694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16695 $as_echo "no" >&6; }
16700 if test "x$with_guile" != xno; then :
16701 guile_versions="3.0 2.2 2.0 1.8"
16704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU Guile" >&5
16705 $as_echo_n "checking for GNU Guile... " >&6; }
16706 for v in $guile_versions; do
16707 if test -n "$PKG_CONFIG" && \
16708 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"guile-\$v\""; } >&5
16709 ($PKG_CONFIG --exists --print-errors "guile-$v") 2>&5
16711 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16712 test $ac_status = 0; }; then
16713 guile_version=$v; have_guile=yes; break
16716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $guile_version" >&5
16717 $as_echo "$guile_version" >&6; }
16718 if test "$have_guile" = yes; then :
16721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GUILE" >&5
16722 $as_echo_n "checking for GUILE... " >&6; }
16724 if test -n "$GUILE_CFLAGS"; then
16725 pkg_cv_GUILE_CFLAGS="$GUILE_CFLAGS"
16726 elif test -n "$PKG_CONFIG"; then
16727 if test -n "$PKG_CONFIG" && \
16728 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"guile-\$guile_version\""; } >&5
16729 ($PKG_CONFIG --exists --print-errors "guile-$guile_version") 2>&5
16731 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16732 test $ac_status = 0; }; then
16733 pkg_cv_GUILE_CFLAGS=`$PKG_CONFIG --cflags "guile-$guile_version" 2>/dev/null`
16734 test "x$?" != "x0" && pkg_failed=yes
16741 if test -n "$GUILE_LIBS"; then
16742 pkg_cv_GUILE_LIBS="$GUILE_LIBS"
16743 elif test -n "$PKG_CONFIG"; then
16744 if test -n "$PKG_CONFIG" && \
16745 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"guile-\$guile_version\""; } >&5
16746 ($PKG_CONFIG --exists --print-errors "guile-$guile_version") 2>&5
16748 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16749 test $ac_status = 0; }; then
16750 pkg_cv_GUILE_LIBS=`$PKG_CONFIG --libs "guile-$guile_version" 2>/dev/null`
16751 test "x$?" != "x0" && pkg_failed=yes
16761 if test $pkg_failed = yes; then
16762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16763 $as_echo "no" >&6; }
16765 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
16766 _pkg_short_errors_supported=yes
16768 _pkg_short_errors_supported=no
16770 if test $_pkg_short_errors_supported = yes; then
16771 GUILE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "guile-$guile_version" 2>&1`
16773 GUILE_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "guile-$guile_version" 2>&1`
16775 # Put the nasty error message in config.log where it belongs
16776 echo "$GUILE_PKG_ERRORS" >&5
16778 as_fn_error $? "Package requirements (guile-$guile_version) were not met:
16782 Consider adjusting the PKG_CONFIG_PATH environment variable if you
16783 installed software in a non-standard prefix.
16785 Alternatively, you may set the environment variables GUILE_CFLAGS
16786 and GUILE_LIBS to avoid the need to call pkg-config.
16787 See the pkg-config man page for more details." "$LINENO" 5
16788 elif test $pkg_failed = untried; then
16789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16790 $as_echo "no" >&6; }
16791 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16792 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16793 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
16794 is in your PATH or set the PKG_CONFIG environment variable to the full
16795 path to pkg-config.
16797 Alternatively, you may set the environment variables GUILE_CFLAGS
16798 and GUILE_LIBS to avoid the need to call pkg-config.
16799 See the pkg-config man page for more details.
16801 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
16802 See \`config.log' for more details" "$LINENO" 5; }
16804 GUILE_CFLAGS=$pkg_cv_GUILE_CFLAGS
16805 GUILE_LIBS=$pkg_cv_GUILE_LIBS
16806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16807 $as_echo "yes" >&6; }
16810 # Unfortunately Guile requires a C99 compiler but GNU make doesn't, so
16811 # verify we can actually compile the header.
16812 keep_CPPFLAGS="$CPPFLAGS"
16813 CPPFLAGS="$CPPFLAGS $pkg_cv_GUILE_CFLAGS"
16814 ac_fn_c_check_header_compile "$LINENO" "libguile.h" "ac_cv_header_libguile_h" "/* Avoid configuration error warnings. */
16816 if test "x$ac_cv_header_libguile_h" = xyes; then :
16818 $as_echo "#define HAVE_GUILE 1" >>confdefs.h
16825 CPPFLAGS="$keep_CPPFLAGS"
16831 if test "$have_guile" = "yes"; then
16833 HAVE_GUILE_FALSE='#'
16835 HAVE_GUILE_TRUE='#'
16840 ac_fn_c_check_decl "$LINENO" "sys_siglist" "ac_cv_have_decl_sys_siglist" "$ac_includes_default
16841 #include <signal.h>
16842 /* NetBSD declares sys_siglist in unistd.h. */
16844 # include <unistd.h>
16848 if test "x$ac_cv_have_decl_sys_siglist" = xyes; then :
16854 cat >>confdefs.h <<_ACEOF
16855 #define HAVE_DECL_SYS_SIGLIST $ac_have_decl
16857 ac_fn_c_check_decl "$LINENO" "_sys_siglist" "ac_cv_have_decl__sys_siglist" "$ac_includes_default
16858 #include <signal.h>
16859 /* NetBSD declares sys_siglist in unistd.h. */
16861 # include <unistd.h>
16865 if test "x$ac_cv_have_decl__sys_siglist" = xyes; then :
16871 cat >>confdefs.h <<_ACEOF
16872 #define HAVE_DECL__SYS_SIGLIST $ac_have_decl
16874 ac_fn_c_check_decl "$LINENO" "__sys_siglist" "ac_cv_have_decl___sys_siglist" "$ac_includes_default
16875 #include <signal.h>
16876 /* NetBSD declares sys_siglist in unistd.h. */
16878 # include <unistd.h>
16882 if test "x$ac_cv_have_decl___sys_siglist" = xyes; then :
16888 cat >>confdefs.h <<_ACEOF
16889 #define HAVE_DECL___SYS_SIGLIST $ac_have_decl
16894 # Check out the wait reality.
16895 for ac_header in sys/wait.h
16897 ac_fn_c_check_header_compile "$LINENO" "sys/wait.h" "ac_cv_header_sys_wait_h" "#include <sys/types.h>
16899 if test "x$ac_cv_header_sys_wait_h" = xyes; then :
16900 cat >>confdefs.h <<_ACEOF
16901 #define HAVE_SYS_WAIT_H 1
16908 for ac_func in waitpid wait3
16910 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16911 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
16912 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
16913 cat >>confdefs.h <<_ACEOF
16914 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for union wait" >&5
16921 $as_echo_n "checking for union wait... " >&6; }
16922 if ${make_cv_union_wait+:} false; then :
16923 $as_echo_n "(cached) " >&6
16925 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16926 /* end confdefs.h. */
16927 #include <sys/types.h>
16928 #include <sys/wait.h>
16932 union wait status; int pid; pid = wait (&status);
16934 /* Some POSIXoid systems have both the new-style macros and the old
16935 union wait type, and they do not work together. If union wait
16936 conflicts with WEXITSTATUS et al, we don't want to use it at all. */
16937 if (WEXITSTATUS (status) != 0) pid = -1;
16939 /* If we have WEXITSTATUS and WTERMSIG, just use them on ints. */
16940 -- blow chunks here --
16943 #ifdef HAVE_WAITPID
16944 /* Make sure union wait works with waitpid. */
16945 pid = waitpid (-1, &status, 0);
16952 if ac_fn_c_try_link "$LINENO"; then :
16953 make_cv_union_wait=yes
16955 make_cv_union_wait=no
16957 rm -f core conftest.err conftest.$ac_objext \
16958 conftest$ac_exeext conftest.$ac_ext
16961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $make_cv_union_wait" >&5
16962 $as_echo "$make_cv_union_wait" >&6; }
16963 if test "$make_cv_union_wait" = yes; then :
16965 $as_echo "#define HAVE_UNION_WAIT 1" >>confdefs.h
16971 # If we're building on Windows/DOS/OS/2, add some support for DOS drive specs.
16972 if test "$PATH_SEPARATOR" = ';'; then :
16974 $as_echo "#define HAVE_DOS_PATHS 1" >>confdefs.h
16979 # See if the user wants to use pmake's "customs" distributed build capability
16983 # Check whether --with-customs was given.
16984 if test "${with_customs+set}" = set; then :
16985 withval=$with_customs; case $withval in #(
16989 make_cppflags="$CPPFLAGS"
16990 case $withval in #(
16994 CPPFLAGS="$CPPFLAGS -I$with_customs/include/customs"
16995 make_ldflags="$LDFLAGS -L$with_customs/lib" ;;
16999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for network libraries" >&5
17000 $as_echo_n "checking for network libraries... " >&6; }
17001 if ${cf_cv_netlibs+:} false; then :
17002 $as_echo_n "(cached) " >&6
17005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: working..." >&5
17006 $as_echo "working..." >&6; }
17008 cf_test_netlibs=yes
17009 for ac_func in gethostname
17011 ac_fn_c_check_func "$LINENO" "gethostname" "ac_cv_func_gethostname"
17012 if test "x$ac_cv_func_gethostname" = xyes; then :
17013 cat >>confdefs.h <<_ACEOF
17014 #define HAVE_GETHOSTNAME 1
17020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostname in -lnsl" >&5
17021 $as_echo_n "checking for gethostname in -lnsl... " >&6; }
17022 if ${ac_cv_lib_nsl_gethostname+:} false; then :
17023 $as_echo_n "(cached) " >&6
17025 ac_check_lib_save_LIBS=$LIBS
17026 LIBS="-lnsl $cf_cv_netlibs $LIBS"
17027 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17028 /* end confdefs.h. */
17030 /* Override any GCC internal prototype to avoid an error.
17031 Use char because int might match the return type of a GCC
17032 builtin and then its argument prototype would still apply. */
17036 char gethostname ();
17040 return gethostname ();
17045 if ac_fn_c_try_link "$LINENO"; then :
17046 ac_cv_lib_nsl_gethostname=yes
17048 ac_cv_lib_nsl_gethostname=no
17050 rm -f core conftest.err conftest.$ac_objext \
17051 conftest$ac_exeext conftest.$ac_ext
17052 LIBS=$ac_check_lib_save_LIBS
17054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostname" >&5
17055 $as_echo "$ac_cv_lib_nsl_gethostname" >&6; }
17056 if test "x$ac_cv_lib_nsl_gethostname" = xyes; then :
17059 cf_tr_func=`echo gethostname | tr '[a-z]' '[A-Z]'`
17062 cat >>confdefs.h <<_ACEOF
17063 #define HAVE_$cf_tr_func 1
17066 ac_cv_func_gethostname=yes
17067 cf_cv_netlibs="-lnsl $cf_cv_netlibs"
17070 ac_cv_func_gethostname=unknown
17071 unset ac_cv_func_gethostname 2>/dev/null
17074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostname in -lsocket" >&5
17075 $as_echo_n "checking for gethostname in -lsocket... " >&6; }
17076 if ${ac_cv_lib_socket_gethostname+:} false; then :
17077 $as_echo_n "(cached) " >&6
17079 ac_check_lib_save_LIBS=$LIBS
17080 LIBS="-lsocket $cf_cv_netlibs $LIBS"
17081 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17082 /* end confdefs.h. */
17084 /* Override any GCC internal prototype to avoid an error.
17085 Use char because int might match the return type of a GCC
17086 builtin and then its argument prototype would still apply. */
17090 char gethostname ();
17094 return gethostname ();
17099 if ac_fn_c_try_link "$LINENO"; then :
17100 ac_cv_lib_socket_gethostname=yes
17102 ac_cv_lib_socket_gethostname=no
17104 rm -f core conftest.err conftest.$ac_objext \
17105 conftest$ac_exeext conftest.$ac_ext
17106 LIBS=$ac_check_lib_save_LIBS
17108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_gethostname" >&5
17109 $as_echo "$ac_cv_lib_socket_gethostname" >&6; }
17110 if test "x$ac_cv_lib_socket_gethostname" = xyes; then :
17113 cf_tr_func=`echo gethostname | tr '[a-z]' '[A-Z]'`
17116 cat >>confdefs.h <<_ACEOF
17117 #define HAVE_$cf_tr_func 1
17120 ac_cv_func_gethostname=yes
17121 cf_cv_netlibs="-lsocket $cf_cv_netlibs"
17124 ac_cv_func_gethostname=unknown
17125 unset ac_cv_func_gethostname 2>/dev/null
17137 # FIXME: sequent needs this library (i.e., -lsocket -linet -lnsl), but
17138 # I don't know the entrypoints - 97/7/22 TD
17139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -linet" >&5
17140 $as_echo_n "checking for main in -linet... " >&6; }
17141 if ${ac_cv_lib_inet_main+:} false; then :
17142 $as_echo_n "(cached) " >&6
17144 ac_check_lib_save_LIBS=$LIBS
17145 LIBS="-linet $LIBS"
17146 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17147 /* end confdefs.h. */
17158 if ac_fn_c_try_link "$LINENO"; then :
17159 ac_cv_lib_inet_main=yes
17161 ac_cv_lib_inet_main=no
17163 rm -f core conftest.err conftest.$ac_objext \
17164 conftest$ac_exeext conftest.$ac_ext
17165 LIBS=$ac_check_lib_save_LIBS
17167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_inet_main" >&5
17168 $as_echo "$ac_cv_lib_inet_main" >&6; }
17169 if test "x$ac_cv_lib_inet_main" = xyes; then :
17170 cf_cv_netlibs="-linet $cf_cv_netlibs"
17174 if test "$ac_cv_func_lsocket" != no ; then
17175 for ac_func in socket
17177 ac_fn_c_check_func "$LINENO" "socket" "ac_cv_func_socket"
17178 if test "x$ac_cv_func_socket" = xyes; then :
17179 cat >>confdefs.h <<_ACEOF
17180 #define HAVE_SOCKET 1
17186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5
17187 $as_echo_n "checking for socket in -lsocket... " >&6; }
17188 if ${ac_cv_lib_socket_socket+:} false; then :
17189 $as_echo_n "(cached) " >&6
17191 ac_check_lib_save_LIBS=$LIBS
17192 LIBS="-lsocket $cf_cv_netlibs $LIBS"
17193 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17194 /* end confdefs.h. */
17196 /* Override any GCC internal prototype to avoid an error.
17197 Use char because int might match the return type of a GCC
17198 builtin and then its argument prototype would still apply. */
17211 if ac_fn_c_try_link "$LINENO"; then :
17212 ac_cv_lib_socket_socket=yes
17214 ac_cv_lib_socket_socket=no
17216 rm -f core conftest.err conftest.$ac_objext \
17217 conftest$ac_exeext conftest.$ac_ext
17218 LIBS=$ac_check_lib_save_LIBS
17220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5
17221 $as_echo "$ac_cv_lib_socket_socket" >&6; }
17222 if test "x$ac_cv_lib_socket_socket" = xyes; then :
17225 cf_tr_func=`echo socket | tr '[a-z]' '[A-Z]'`
17228 cat >>confdefs.h <<_ACEOF
17229 #define HAVE_$cf_tr_func 1
17232 ac_cv_func_socket=yes
17233 cf_cv_netlibs="-lsocket $cf_cv_netlibs"
17236 ac_cv_func_socket=unknown
17237 unset ac_cv_func_socket 2>/dev/null
17240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lbsd" >&5
17241 $as_echo_n "checking for socket in -lbsd... " >&6; }
17242 if ${ac_cv_lib_bsd_socket+:} false; then :
17243 $as_echo_n "(cached) " >&6
17245 ac_check_lib_save_LIBS=$LIBS
17246 LIBS="-lbsd $cf_cv_netlibs $LIBS"
17247 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17248 /* end confdefs.h. */
17250 /* Override any GCC internal prototype to avoid an error.
17251 Use char because int might match the return type of a GCC
17252 builtin and then its argument prototype would still apply. */
17265 if ac_fn_c_try_link "$LINENO"; then :
17266 ac_cv_lib_bsd_socket=yes
17268 ac_cv_lib_bsd_socket=no
17270 rm -f core conftest.err conftest.$ac_objext \
17271 conftest$ac_exeext conftest.$ac_ext
17272 LIBS=$ac_check_lib_save_LIBS
17274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_socket" >&5
17275 $as_echo "$ac_cv_lib_bsd_socket" >&6; }
17276 if test "x$ac_cv_lib_bsd_socket" = xyes; then :
17279 cf_tr_func=`echo socket | tr '[a-z]' '[A-Z]'`
17282 cat >>confdefs.h <<_ACEOF
17283 #define HAVE_$cf_tr_func 1
17286 ac_cv_func_socket=yes
17287 cf_cv_netlibs="-lbsd $cf_cv_netlibs"
17290 ac_cv_func_socket=unknown
17291 unset ac_cv_func_socket 2>/dev/null
17304 for ac_func in gethostbyname
17306 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
17307 if test "x$ac_cv_func_gethostbyname" = xyes; then :
17308 cat >>confdefs.h <<_ACEOF
17309 #define HAVE_GETHOSTBYNAME 1
17315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
17316 $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
17317 if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
17318 $as_echo_n "(cached) " >&6
17320 ac_check_lib_save_LIBS=$LIBS
17321 LIBS="-lnsl $cf_cv_netlibs $LIBS"
17322 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17323 /* end confdefs.h. */
17325 /* Override any GCC internal prototype to avoid an error.
17326 Use char because int might match the return type of a GCC
17327 builtin and then its argument prototype would still apply. */
17331 char gethostbyname ();
17335 return gethostbyname ();
17340 if ac_fn_c_try_link "$LINENO"; then :
17341 ac_cv_lib_nsl_gethostbyname=yes
17343 ac_cv_lib_nsl_gethostbyname=no
17345 rm -f core conftest.err conftest.$ac_objext \
17346 conftest$ac_exeext conftest.$ac_ext
17347 LIBS=$ac_check_lib_save_LIBS
17349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
17350 $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
17351 if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
17354 cf_tr_func=`echo gethostbyname | tr '[a-z]' '[A-Z]'`
17357 cat >>confdefs.h <<_ACEOF
17358 #define HAVE_$cf_tr_func 1
17361 ac_cv_func_gethostbyname=yes
17362 cf_cv_netlibs="-lnsl $cf_cv_netlibs"
17365 ac_cv_func_gethostbyname=unknown
17366 unset ac_cv_func_gethostbyname 2>/dev/null
17377 LIBS="$LIBS $cf_cv_netlibs"
17378 test $cf_test_netlibs = no && echo "$cf_cv_netlibs" >&6
17380 ac_fn_c_check_header_mongrel "$LINENO" "customs.h" "ac_cv_header_customs_h" "$ac_includes_default"
17381 if test "x$ac_cv_header_customs_h" = xyes; then :
17384 LIBS="$LIBS -lcustoms" LDFLAGS="$make_ldflags"
17387 CPPFLAGS="$make_cppflags" make_badcust=yes
17397 # Tell automake about this, so it can include the right .c files.
17398 if test "$use_customs" = true; then
17400 USE_CUSTOMS_FALSE='#'
17402 USE_CUSTOMS_TRUE='#'
17407 # See if the user asked to handle case insensitive file systems.
17409 # Check whether --enable-case-insensitive-file-system was given.
17410 if test "${enable_case_insensitive_file_system+set}" = set; then :
17411 enableval=$enable_case_insensitive_file_system; if test "$enableval" = yes; then :
17412 $as_echo "#define HAVE_CASE_INSENSITIVE_FS 1" >>confdefs.h
17418 # See if we can handle the job server feature, and if the user wants it.
17419 # Check whether --enable-job-server was given.
17420 if test "${enable_job_server+set}" = set; then :
17421 enableval=$enable_job_server; make_cv_job_server="$enableval" user_job_server="$enableval"
17423 make_cv_job_server="yes"
17427 if test "$ac_cv_func_waitpid" = no && test "$ac_cv_func_wait3" = no; then :
17430 has_wait_nohang=yes
17433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SA_RESTART" >&5
17434 $as_echo_n "checking for SA_RESTART... " >&6; }
17435 if ${make_cv_sa_restart+:} false; then :
17436 $as_echo_n "(cached) " >&6
17439 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17440 /* end confdefs.h. */
17441 #include <signal.h>
17450 if ac_fn_c_try_compile "$LINENO"; then :
17451 make_cv_sa_restart=yes
17453 make_cv_sa_restart=no
17455 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $make_cv_sa_restart" >&5
17458 $as_echo "$make_cv_sa_restart" >&6; }
17460 if test "$make_cv_sa_restart" != no; then :
17462 $as_echo "#define HAVE_SA_RESTART 1" >>confdefs.h
17467 # Only allow jobserver on systems that support it
17468 case /$ac_cv_func_pipe/$ac_cv_func_sigaction/$make_cv_sa_restart/$has_wait_nohang/ in #(
17470 make_cv_job_server=no ;; #(
17475 # Also supported on OS2 and MinGW
17476 case $host_os in #(
17478 make_cv_job_server=yes ;; #(
17483 # If we support it and the user didn't disable it, build with jobserver
17484 case /$make_cv_job_server/$user_job_server/ in #(
17486 : no jobserver ;; #(
17489 $as_echo "#define MAKE_JOBSERVER 1" >>confdefs.h
17494 # If dl*() functions are supported we can enable the load operation
17495 ac_fn_c_check_decl "$LINENO" "dlopen" "ac_cv_have_decl_dlopen" "#include <dlfcn.h>
17497 if test "x$ac_cv_have_decl_dlopen" = xyes; then :
17503 cat >>confdefs.h <<_ACEOF
17504 #define HAVE_DECL_DLOPEN $ac_have_decl
17506 ac_fn_c_check_decl "$LINENO" "dlsym" "ac_cv_have_decl_dlsym" "#include <dlfcn.h>
17508 if test "x$ac_cv_have_decl_dlsym" = xyes; then :
17514 cat >>confdefs.h <<_ACEOF
17515 #define HAVE_DECL_DLSYM $ac_have_decl
17517 ac_fn_c_check_decl "$LINENO" "dlerror" "ac_cv_have_decl_dlerror" "#include <dlfcn.h>
17519 if test "x$ac_cv_have_decl_dlerror" = xyes; then :
17525 cat >>confdefs.h <<_ACEOF
17526 #define HAVE_DECL_DLERROR $ac_have_decl
17530 # Check whether --enable-load was given.
17531 if test "${enable_load+set}" = set; then :
17532 enableval=$enable_load; make_cv_load="$enableval" user_load="$enableval"
17538 case /$ac_cv_have_decl_dlopen/$ac_cv_have_decl_dlsym/$ac_cv_have_decl_dlerror/ in #(
17540 make_cv_load=no ;; #(
17545 # We might need -ldl
17546 if test "$make_cv_load" = yes; then :
17548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
17549 $as_echo_n "checking for library containing dlopen... " >&6; }
17550 if ${ac_cv_search_dlopen+:} false; then :
17551 $as_echo_n "(cached) " >&6
17553 ac_func_search_save_LIBS=$LIBS
17554 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17555 /* end confdefs.h. */
17557 /* Override any GCC internal prototype to avoid an error.
17558 Use char because int might match the return type of a GCC
17559 builtin and then its argument prototype would still apply. */
17572 for ac_lib in '' dl; do
17573 if test -z "$ac_lib"; then
17574 ac_res="none required"
17577 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
17579 if ac_fn_c_try_link "$LINENO"; then :
17580 ac_cv_search_dlopen=$ac_res
17582 rm -f core conftest.err conftest.$ac_objext \
17584 if ${ac_cv_search_dlopen+:} false; then :
17588 if ${ac_cv_search_dlopen+:} false; then :
17591 ac_cv_search_dlopen=no
17593 rm conftest.$ac_ext
17594 LIBS=$ac_func_search_save_LIBS
17596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
17597 $as_echo "$ac_cv_search_dlopen" >&6; }
17598 ac_res=$ac_cv_search_dlopen
17599 if test "$ac_res" != no; then :
17600 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
17609 case /$make_cv_load/$user_load/ in #(
17611 make_cv_load=no ;; #(
17614 $as_echo "#define MAKE_LOAD 1" >>confdefs.h
17619 # If we want load support, we might need to link with export-dynamic.
17620 # See if we can figure it out. Unfortunately this is very difficult.
17621 # For example passing -rdynamic to the SunPRO linker gives a warning
17622 # but succeeds and creates a shared object, not an executable!
17623 if test "$make_cv_load" = yes; then :
17625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking If the linker accepts -Wl,--export-dynamic" >&5
17626 $as_echo_n "checking If the linker accepts -Wl,--export-dynamic... " >&6; }
17627 old_LDFLAGS="$LDFLAGS"
17628 LDFLAGS="$LDFLAGS -Wl,--export-dynamic"
17629 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17630 /* end confdefs.h. */
17633 if ac_fn_c_try_link "$LINENO"; then :
17634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17635 $as_echo "yes" >&6; }
17636 AM_LDFLAGS=-Wl,--export-dynamic
17639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17640 $as_echo "no" >&6; }
17641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking If the linker accepts -rdynamic" >&5
17642 $as_echo_n "checking If the linker accepts -rdynamic... " >&6; }
17643 LDFLAGS="$old_LDFLAGS -rdynamic"
17644 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17645 /* end confdefs.h. */
17648 if ac_fn_c_try_link "$LINENO"; then :
17649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17650 $as_echo "yes" >&6; }
17651 AM_LDFLAGS=-rdynamic
17654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17655 $as_echo "no" >&6; }
17657 rm -f core conftest.err conftest.$ac_objext \
17658 conftest$ac_exeext conftest.$ac_ext
17661 rm -f core conftest.err conftest.$ac_objext \
17662 conftest$ac_exeext conftest.$ac_ext
17663 LDFLAGS="$old_LDFLAGS"
17667 # if we have both lstat() and readlink() then we can support symlink
17669 if test "$ac_cv_func_lstat" = yes && test "$ac_cv_func_readlink" = yes; then :
17671 $as_echo "#define MAKE_SYMLINKS 1" >>confdefs.h
17676 # Use posix_spawn if we have support and the user didn't disable it
17678 # Check whether --enable-posix-spawn was given.
17679 if test "${enable_posix_spawn+set}" = set; then :
17680 enableval=$enable_posix_spawn; make_cv_posix_spawn="$enableval" user_posix_spawn="$enableval"
17682 make_cv_posix_spawn="yes"
17686 case /$ac_cv_header_spawn/$ac_cv_func_posix_spawn/ in #(
17688 make_cv_posix_spawn=no ;; #(
17693 if test "$make_cv_posix_spawn" = yes; then :
17694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for posix_spawn that fails synchronously" >&5
17695 $as_echo_n "checking for posix_spawn that fails synchronously... " >&6; }
17696 if ${make_cv_synchronous_posix_spawn+:} false; then :
17697 $as_echo_n "(cached) " >&6
17699 make_cv_synchronous_posix_spawn=no
17700 if test "$cross_compiling" = yes; then :
17701 make_cv_synchronous_posix_spawn="no (cross-compiling)"
17703 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17704 /* end confdefs.h. */
17707 #include <string.h>
17709 extern char **environ;
17712 char* path = strdup("./non-existent");
17716 return posix_spawn(0, path, 0, 0, argv, environ);
17719 if ac_fn_c_try_run "$LINENO"; then :
17720 make_cv_synchronous_posix_spawn=no
17722 make_cv_synchronous_posix_spawn=yes
17724 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17725 conftest.$ac_objext conftest.beam conftest.$ac_ext
17729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $make_cv_synchronous_posix_spawn" >&5
17730 $as_echo "$make_cv_synchronous_posix_spawn" >&6; }
17733 case /$user_posix_spawn/$make_cv_posix_spawn/$make_cv_synchronous_posix_spawn/ in #(
17735 make_cv_posix_spawn=no ;; #(
17738 $as_echo "#define USE_POSIX_SPAWN 1" >>confdefs.h
17743 # Find the SCCS commands, so we can include them in our default rules.
17745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for location of SCCS get command" >&5
17746 $as_echo_n "checking for location of SCCS get command... " >&6; }
17747 if ${make_cv_path_sccs_get+:} false; then :
17748 $as_echo_n "(cached) " >&6
17751 if test -f /usr/sccs/get; then :
17752 make_cv_path_sccs_get=/usr/sccs/get
17754 make_cv_path_sccs_get=get
17758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $make_cv_path_sccs_get" >&5
17759 $as_echo "$make_cv_path_sccs_get" >&6; }
17761 cat >>confdefs.h <<_ACEOF
17762 #define SCCS_GET "$make_cv_path_sccs_get"
17766 ac_clean_files="$ac_clean_files s.conftest conftoast" # Remove these later.
17767 if (/usr/sccs/admin -n s.conftest || admin -n s.conftest) >/dev/null 2>&1 &&
17768 test -f s.conftest; then :
17769 # We successfully created an SCCS file.
17770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if SCCS get command understands -G" >&5
17771 $as_echo_n "checking if SCCS get command understands -G... " >&6; }
17772 if ${make_cv_sys_get_minus_G+:} false; then :
17773 $as_echo_n "(cached) " >&6
17775 if $make_cv_path_sccs_get -Gconftoast s.conftest >/dev/null 2>&1 &&
17776 test -f conftoast; then :
17777 make_cv_sys_get_minus_G=yes
17779 make_cv_sys_get_minus_G=no
17783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $make_cv_sys_get_minus_G" >&5
17784 $as_echo "$make_cv_sys_get_minus_G" >&6; }
17785 if test "$make_cv_sys_get_minus_G" = yes; then :
17787 $as_echo "#define SCCS_GET_MINUS_G 1" >>confdefs.h
17793 rm -f s.conftest conftoast
17795 # Let the makefile know what our build host is
17798 cat >>confdefs.h <<_ACEOF
17799 #define MAKE_HOST "$host"
17808 WINDOWSENV_FALSE='#'
17810 WINDOWSENV_TRUE='#'
17819 WINDOWSENV_FALSE='#'
17821 WINDOWSENV_TRUE='#'
17827 $as_echo "#define WINDOWS32 1" >>confdefs.h
17830 $as_echo "#define HAVE_DOS_PATHS 1" >>confdefs.h
17838 cat >>confdefs.h <<_ACEOF
17839 #define PATH_SEPARATOR_CHAR '$PATH_SEPARATOR'
17843 # Include the Maintainer's Makefile section, if it's here.
17845 MAINT_MAKEFILE=/dev/null
17846 if test -r "$srcdir/maintMakefile"; then :
17847 MAINT_MAKEFILE="$srcdir/maintMakefile"
17852 # Allow building with dmalloc
17853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if malloc debugging is wanted" >&5
17854 $as_echo_n "checking if malloc debugging is wanted... " >&6; }
17856 # Check whether --with-dmalloc was given.
17857 if test "${with_dmalloc+set}" = set; then :
17858 withval=$with_dmalloc; if test "$withval" = yes; then
17859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17860 $as_echo "yes" >&6; }
17862 $as_echo "#define WITH_DMALLOC 1" >>confdefs.h
17864 LIBS="$LIBS -ldmalloc"
17865 LDFLAGS="$LDFLAGS -g"
17867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17868 $as_echo "no" >&6; }
17871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17872 $as_echo "no" >&6; }
17877 # Forcibly disable SET_MAKE. If it's set it breaks things like the test
17881 # Sanity check and inform the user of what we found
17883 if test "x$make_badcust" = xyes; then :
17886 echo "WARNING: --with-customs specified but no customs.h could be found;"
17887 echo " disabling Customs support."
17892 case $with_customs in #(
17893 ""|n|no|y|ye|yes) :
17896 if test -f "$with_customs/lib/libcustoms.a"; then :
17900 echo "WARNING: '$with_customs/lib' does not appear to contain the"
17901 echo " Customs library. You must build and install Customs"
17902 echo " before compiling GNU make."
17908 if test "x$has_wait_nohang" = xno; then :
17910 echo "WARNING: Your system has neither waitpid() nor wait3()."
17911 echo " Without one of these, signal handling is unreliable."
17912 echo " You should be aware that running GNU make with -j"
17913 echo " could result in erratic behavior."
17918 if test "x$make_cv_job_server" = xno && test "x$user_job_server" = xyes; then :
17920 echo "WARNING: Make job server requires a POSIX-ish system that"
17921 echo " supports the pipe(), sigaction(), and either"
17922 echo " waitpid() or wait3() functions. Your system doesn't"
17923 echo " appear to provide one or more of those."
17924 echo " Disabling job server support."
17929 if test "x$make_cv_load" = xno && test "x$user_load" = xyes; then :
17931 echo "WARNING: 'load' support requires a POSIX-ish system that"
17932 echo " supports the dlopen(), dlsym(), and dlerror() functions."
17933 echo " Your system doesn't appear to provide one or more of these."
17934 echo " Disabling 'load' support."
17939 if test "x$make_cv_posix_spawn" = xno && test "x$user_posix_spawn" = xyes; then :
17941 echo "WARNING: posix_spawn() is not supported on this system."
17946 # Specify what files are to be created.
17947 ac_config_files="$ac_config_files Makefile build.cfg lib/Makefile po/Makefile.in doc/Makefile tests/config-flags.pm"
17949 # We don't need this: the standard automake output suffices for POSIX systems.
17954 cat >confcache <<\_ACEOF
17955 # This file is a shell script that caches the results of configure
17956 # tests run on this system so they can be shared between configure
17957 # scripts and configure runs, see configure's option --config-cache.
17958 # It is not useful on other systems. If it contains results you don't
17959 # want to keep, you may remove or edit it.
17961 # config.status only pays attention to the cache file if you give it
17962 # the --recheck option to rerun configure.
17964 # `ac_cv_env_foo' variables (set or unset) will be overridden when
17965 # loading this file, other *unset* `ac_cv_foo' will be assigned the
17966 # following values.
17970 # The following way of writing the cache mishandles newlines in values,
17971 # but we know of no workaround that is simple, portable, and efficient.
17972 # So, we kill variables containing newlines.
17973 # Ultrix sh set writes to stderr and can't be redirected directly,
17974 # and sets the high bit in the cache file unless we assign to the vars.
17976 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
17977 eval ac_val=\$$ac_var
17981 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
17982 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
17985 _ | IFS | as_nl) ;; #(
17986 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
17987 *) { eval $ac_var=; unset $ac_var;} ;;
17993 case $as_nl`(ac_space=' '; set) 2>&1` in #(
17994 *${as_nl}ac_space=\ *)
17995 # `set' does not quote correctly, so add quotes: double-quote
17996 # substitution turns \\\\ into \\, and sed turns \\ into \.
17999 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
18002 # `set' quotes correctly as required by POSIX, so do not add quotes.
18003 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
18012 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
18014 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
18016 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
18017 if test -w "$cache_file"; then
18018 if test "x$cache_file" != "x/dev/null"; then
18019 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
18020 $as_echo "$as_me: updating cache $cache_file" >&6;}
18021 if test ! -f "$cache_file" || test -h "$cache_file"; then
18022 cat confcache >"$cache_file"
18024 case $cache_file in #(
18026 mv -f confcache "$cache_file"$$ &&
18027 mv -f "$cache_file"$$ "$cache_file" ;; #(
18029 mv -f confcache "$cache_file" ;;
18034 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
18035 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
18040 test "x$prefix" = xNONE && prefix=$ac_default_prefix
18041 # Let make expand exec_prefix.
18042 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
18044 DEFS=-DHAVE_CONFIG_H
18049 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
18050 # 1. Remove the extension, and $U if already installed.
18051 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
18052 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
18053 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
18054 # will be set to the directory where LIBOBJS objects are built.
18055 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
18056 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
18058 LIBOBJS=$ac_libobjs
18060 LTLIBOBJS=$ac_ltlibobjs
18063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
18064 $as_echo_n "checking that generated files are newer than configure... " >&6; }
18065 if test -n "$am_sleep_pid"; then
18066 # Hide warnings about reused PIDs.
18067 wait $am_sleep_pid 2>/dev/null
18069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
18070 $as_echo "done" >&6; }
18071 if test -n "$EXEEXT"; then
18073 am__EXEEXT_FALSE='#'
18075 am__EXEEXT_TRUE='#'
18079 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
18080 as_fn_error $? "conditional \"AMDEP\" was never defined.
18081 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18083 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
18084 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
18085 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18087 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
18088 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
18089 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18091 if test -z "${GL_COND_LIBTOOL_TRUE}" && test -z "${GL_COND_LIBTOOL_FALSE}"; then
18092 as_fn_error $? "conditional \"GL_COND_LIBTOOL\" was never defined.
18093 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18095 if test -z "${GL_GENERATE_ALLOCA_H_TRUE}" && test -z "${GL_GENERATE_ALLOCA_H_FALSE}"; then
18096 as_fn_error $? "conditional \"GL_GENERATE_ALLOCA_H\" was never defined.
18097 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18099 if test -z "${GL_GENERATE_ERRNO_H_TRUE}" && test -z "${GL_GENERATE_ERRNO_H_FALSE}"; then
18100 as_fn_error $? "conditional \"GL_GENERATE_ERRNO_H\" was never defined.
18101 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18103 if test -z "${GL_GENERATE_LIMITS_H_TRUE}" && test -z "${GL_GENERATE_LIMITS_H_FALSE}"; then
18104 as_fn_error $? "conditional \"GL_GENERATE_LIMITS_H\" was never defined.
18105 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18107 if test -z "${USE_SYSTEM_GLOB_TRUE}" && test -z "${USE_SYSTEM_GLOB_FALSE}"; then
18108 as_fn_error $? "conditional \"USE_SYSTEM_GLOB\" was never defined.
18109 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18111 if test -z "${GL_GENERATE_STDBOOL_H_TRUE}" && test -z "${GL_GENERATE_STDBOOL_H_FALSE}"; then
18112 as_fn_error $? "conditional \"GL_GENERATE_STDBOOL_H\" was never defined.
18113 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18115 if test -z "${GL_GENERATE_STDDEF_H_TRUE}" && test -z "${GL_GENERATE_STDDEF_H_FALSE}"; then
18116 as_fn_error $? "conditional \"GL_GENERATE_STDDEF_H\" was never defined.
18117 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18119 if test -z "${GL_GENERATE_LIMITS_H_TRUE}" && test -z "${GL_GENERATE_LIMITS_H_FALSE}"; then
18120 as_fn_error $? "conditional \"GL_GENERATE_LIMITS_H\" was never defined.
18121 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18123 if test -z "${GL_GENERATE_STDINT_H_TRUE}" && test -z "${GL_GENERATE_STDINT_H_FALSE}"; then
18124 as_fn_error $? "conditional \"GL_GENERATE_STDINT_H\" was never defined.
18125 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18130 if test -n "$gl_LIBOBJS"; then
18131 # Remove the extension.
18132 sed_drop_objext='s/\.o$//;s/\.obj$//'
18133 for i in `for i in $gl_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
18134 gl_libobjs="$gl_libobjs $i.$ac_objext"
18135 gl_ltlibobjs="$gl_ltlibobjs $i.lo"
18138 gl_LIBOBJS=$gl_libobjs
18140 gl_LTLIBOBJS=$gl_ltlibobjs
18146 if test -n "$gltests_LIBOBJS"; then
18147 # Remove the extension.
18148 sed_drop_objext='s/\.o$//;s/\.obj$//'
18149 for i in `for i in $gltests_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
18150 gltests_libobjs="$gltests_libobjs $i.$ac_objext"
18151 gltests_ltlibobjs="$gltests_ltlibobjs $i.lo"
18154 gltests_LIBOBJS=$gltests_libobjs
18156 gltests_LTLIBOBJS=$gltests_ltlibobjs
18160 if test -z "${HAVE_GUILE_TRUE}" && test -z "${HAVE_GUILE_FALSE}"; then
18161 as_fn_error $? "conditional \"HAVE_GUILE\" was never defined.
18162 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18164 if test -z "${USE_CUSTOMS_TRUE}" && test -z "${USE_CUSTOMS_FALSE}"; then
18165 as_fn_error $? "conditional \"USE_CUSTOMS\" was never defined.
18166 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18168 if test -z "${WINDOWSENV_TRUE}" && test -z "${WINDOWSENV_FALSE}"; then
18169 as_fn_error $? "conditional \"WINDOWSENV\" was never defined.
18170 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18172 if test -z "${WINDOWSENV_TRUE}" && test -z "${WINDOWSENV_FALSE}"; then
18173 as_fn_error $? "conditional \"WINDOWSENV\" was never defined.
18174 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18177 : "${CONFIG_STATUS=./config.status}"
18179 ac_clean_files_save=$ac_clean_files
18180 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
18181 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
18182 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
18184 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
18186 # Generated by $as_me.
18187 # Run this file to recreate the current configuration.
18188 # Compiler output produced by configure, useful for debugging
18189 # configure, is in config.log if it exists.
18192 ac_cs_recheck=false
18195 SHELL=\${CONFIG_SHELL-$SHELL}
18198 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
18199 ## -------------------- ##
18200 ## M4sh Initialization. ##
18201 ## -------------------- ##
18203 # Be more Bourne compatible
18204 DUALCASE=1; export DUALCASE # for MKS sh
18205 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18208 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
18209 # is contrary to our usage. Disable this feature.
18210 alias -g '${1+"$@"}'='"$@"'
18211 setopt NO_GLOB_SUBST
18213 case `(set -o) 2>/dev/null` in #(
18225 # Printing a long string crashes Solaris 7 /usr/bin/printf.
18226 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
18227 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
18228 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
18229 # Prefer a ksh shell builtin over an external printf program on Solaris,
18230 # but without wasting forks for bash or zsh.
18231 if test -z "$BASH_VERSION$ZSH_VERSION" \
18232 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
18233 as_echo='print -r --'
18234 as_echo_n='print -rn --'
18235 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
18236 as_echo='printf %s\n'
18237 as_echo_n='printf %s'
18239 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
18240 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
18241 as_echo_n='/usr/ucb/echo -n'
18243 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
18244 as_echo_n_body='eval
18248 expr "X$arg" : "X\\(.*\\)$as_nl";
18249 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
18251 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
18253 export as_echo_n_body
18254 as_echo_n='sh -c $as_echo_n_body as_echo'
18256 export as_echo_body
18257 as_echo='sh -c $as_echo_body as_echo'
18260 # The user is always right.
18261 if test "${PATH_SEPARATOR+set}" != set; then
18263 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
18264 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
18271 # We need space, tab and new line, in precisely that order. Quoting is
18272 # there to prevent editors from complaining about space-tab.
18273 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
18274 # splitting by setting IFS to empty value.)
18277 # Find who we are. Look in the path if we contain no directory separator.
18280 *[\\/]* ) as_myself=$0 ;;
18281 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18282 for as_dir in $PATH
18285 test -z "$as_dir" && as_dir=.
18286 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
18292 # We did not find ourselves, most probably we were run as `sh COMMAND'
18293 # in which case we are not to be found in the path.
18294 if test "x$as_myself" = x; then
18297 if test ! -f "$as_myself"; then
18298 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
18302 # Unset variables that we do not need and which cause bugs (e.g. in
18303 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
18304 # suppresses any "Segmentation fault" message there. '((' could
18305 # trigger a bug in pdksh 5.2.14.
18306 for as_var in BASH_ENV ENV MAIL MAILPATH
18307 do eval test x\${$as_var+set} = xset \
18308 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
18321 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
18324 # as_fn_error STATUS ERROR [LINENO LOG_FD]
18325 # ----------------------------------------
18326 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
18327 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
18328 # script with STATUS, using 1 if that was 0.
18331 as_status=$1; test $as_status -eq 0 && as_status=1
18333 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
18334 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
18336 $as_echo "$as_me: error: $2" >&2
18337 as_fn_exit $as_status
18341 # as_fn_set_status STATUS
18342 # -----------------------
18343 # Set $? to STATUS, without forking.
18344 as_fn_set_status ()
18347 } # as_fn_set_status
18349 # as_fn_exit STATUS
18350 # -----------------
18351 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
18355 as_fn_set_status $1
18361 # Portably unset VAR.
18364 { eval $1=; unset $1;}
18366 as_unset=as_fn_unset
18367 # as_fn_append VAR VALUE
18368 # ----------------------
18369 # Append the text in VALUE to the end of the definition contained in VAR. Take
18370 # advantage of any shell optimizations that allow amortized linear growth over
18371 # repeated appends, instead of the typical quadratic growth present in naive
18373 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
18374 eval 'as_fn_append ()
18385 # as_fn_arith ARG...
18386 # ------------------
18387 # Perform arithmetic evaluation on the ARGs, and store the result in the
18388 # global $as_val. Take advantage of shells that can avoid forks. The arguments
18389 # must be portable across $(()) and expr.
18390 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
18391 eval 'as_fn_arith ()
18398 as_val=`expr "$@" || test $? -eq 1`
18403 if expr a : '\(a\)' >/dev/null 2>&1 &&
18404 test "X`expr 00001 : '.*\(...\)'`" = X001; then
18410 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
18411 as_basename=basename
18416 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
18422 as_me=`$as_basename -- "$0" ||
18423 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
18424 X"$0" : 'X\(//\)$' \| \
18425 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
18427 sed '/^.*\/\([^/][^/]*\)\/*$/{
18441 # Avoid depending upon Character Ranges.
18442 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
18443 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
18444 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
18445 as_cr_digits='0123456789'
18446 as_cr_alnum=$as_cr_Letters$as_cr_digits
18448 ECHO_C= ECHO_N= ECHO_T=
18449 case `echo -n x` in #(((((
18451 case `echo 'xy\c'` in
18452 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
18454 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
18461 rm -f conf$$ conf$$.exe conf$$.file
18462 if test -d conf$$.dir; then
18463 rm -f conf$$.dir/conf$$.file
18466 mkdir conf$$.dir 2>/dev/null
18468 if (echo >conf$$.file) 2>/dev/null; then
18469 if ln -s conf$$.file conf$$ 2>/dev/null; then
18471 # ... but there are two gotchas:
18472 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
18473 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
18474 # In both cases, we have to default to `cp -pR'.
18475 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
18477 elif ln conf$$.file conf$$ 2>/dev/null; then
18485 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
18486 rmdir conf$$.dir 2>/dev/null
18491 # Create "$as_dir" as a directory, including parents if necessary.
18496 -*) as_dir=./$as_dir;;
18498 test -d "$as_dir" || eval $as_mkdir_p || {
18502 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
18503 *) as_qdir=$as_dir;;
18505 as_dirs="'$as_qdir' $as_dirs"
18506 as_dir=`$as_dirname -- "$as_dir" ||
18507 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18508 X"$as_dir" : 'X\(//\)[^/]' \| \
18509 X"$as_dir" : 'X\(//\)$' \| \
18510 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
18511 $as_echo X"$as_dir" |
18512 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18516 /^X\(\/\/\)[^/].*/{
18529 test -d "$as_dir" && break
18531 test -z "$as_dirs" || eval "mkdir $as_dirs"
18532 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
18536 if mkdir -p . 2>/dev/null; then
18537 as_mkdir_p='mkdir -p "$as_dir"'
18539 test -d ./-p && rmdir ./-p
18544 # as_fn_executable_p FILE
18545 # -----------------------
18546 # Test if FILE is an executable regular file.
18547 as_fn_executable_p ()
18549 test -f "$1" && test -x "$1"
18550 } # as_fn_executable_p
18551 as_test_x='test -x'
18552 as_executable_p=as_fn_executable_p
18554 # Sed expression to map a string onto a valid CPP name.
18555 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
18557 # Sed expression to map a string onto a valid variable name.
18558 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
18562 ## ----------------------------------- ##
18563 ## Main body of $CONFIG_STATUS script. ##
18564 ## ----------------------------------- ##
18566 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
18568 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18569 # Save the log message, to keep $0 and so on meaningful, and to
18570 # report actual input values of CONFIG_FILES etc. instead of their
18571 # values after options handling.
18573 This file was extended by GNU make $as_me 4.3, which was
18574 generated by GNU Autoconf 2.69. Invocation command line was
18576 CONFIG_FILES = $CONFIG_FILES
18577 CONFIG_HEADERS = $CONFIG_HEADERS
18578 CONFIG_LINKS = $CONFIG_LINKS
18579 CONFIG_COMMANDS = $CONFIG_COMMANDS
18582 on `(hostname || uname -n) 2>/dev/null | sed 1q`
18587 case $ac_config_files in *"
18588 "*) set x $ac_config_files; shift; ac_config_files=$*;;
18591 case $ac_config_headers in *"
18592 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
18596 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18597 # Files that config.status was made for.
18598 config_files="$ac_config_files"
18599 config_headers="$ac_config_headers"
18600 config_commands="$ac_config_commands"
18604 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18606 \`$as_me' instantiates files and other configuration actions
18607 from templates according to the current configuration. Unless the files
18608 and actions are specified as TAGs, all are instantiated by default.
18610 Usage: $0 [OPTION]... [TAG]...
18612 -h, --help print this help, then exit
18613 -V, --version print version number and configuration settings, then exit
18614 --config print configuration, then exit
18615 -q, --quiet, --silent
18616 do not print progress messages
18617 -d, --debug don't remove temporary files
18618 --recheck update $as_me by reconfiguring in the same conditions
18619 --file=FILE[:TEMPLATE]
18620 instantiate the configuration file FILE
18621 --header=FILE[:TEMPLATE]
18622 instantiate the configuration header FILE
18624 Configuration files:
18627 Configuration headers:
18630 Configuration commands:
18633 Report bugs to <bug-make@gnu.org>.
18634 GNU make home page: <http://www.gnu.org/software/make/>.
18635 General help using GNU software: <http://www.gnu.org/gethelp/>."
18638 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18639 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
18641 GNU make config.status 4.3
18642 configured by $0, generated by GNU Autoconf 2.69,
18643 with options \\"\$ac_cs_config\\"
18645 Copyright (C) 2012 Free Software Foundation, Inc.
18646 This config.status script is free software; the Free Software Foundation
18647 gives unlimited permission to copy, distribute and modify it."
18654 test -n "\$AWK" || AWK=awk
18657 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18658 # The default lists apply if the user does not specify any file.
18664 ac_option=`expr "X$1" : 'X\([^=]*\)='`
18665 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
18669 ac_option=`expr "X$1" : 'X\([^=]*\)='`
18681 # Handling of the options.
18682 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
18684 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
18685 $as_echo "$ac_cs_version"; exit ;;
18686 --config | --confi | --conf | --con | --co | --c )
18687 $as_echo "$ac_cs_config"; exit ;;
18688 --debug | --debu | --deb | --de | --d | -d )
18690 --file | --fil | --fi | --f )
18693 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
18694 '') as_fn_error $? "missing file argument" ;;
18696 as_fn_append CONFIG_FILES " '$ac_optarg'"
18697 ac_need_defaults=false;;
18698 --header | --heade | --head | --hea )
18701 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
18703 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
18704 ac_need_defaults=false;;
18706 # Conflict between --help and --header
18707 as_fn_error $? "ambiguous option: \`$1'
18708 Try \`$0 --help' for more information.";;
18709 --help | --hel | -h )
18710 $as_echo "$ac_cs_usage"; exit ;;
18711 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
18712 | -silent | --silent | --silen | --sile | --sil | --si | --s)
18715 # This is an error.
18716 -*) as_fn_error $? "unrecognized option: \`$1'
18717 Try \`$0 --help' for more information." ;;
18719 *) as_fn_append ac_config_targets " $1"
18720 ac_need_defaults=false ;;
18726 ac_configure_extra_args=
18728 if $ac_cs_silent; then
18730 ac_configure_extra_args="$ac_configure_extra_args --silent"
18734 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18735 if \$ac_cs_recheck; then
18736 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
18738 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
18739 CONFIG_SHELL='$SHELL'
18740 export CONFIG_SHELL
18745 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18749 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
18750 ## Running $as_me. ##
18756 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18760 AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
18761 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
18762 # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
18763 # from automake < 1.5.
18764 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
18765 # Capture the value of LINGUAS because we need it to compute CATALOGS.
18766 LINGUAS="${LINGUAS-%UNSET%}"
18771 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18773 # Handling of arguments.
18774 for ac_config_target in $ac_config_targets
18776 case $ac_config_target in
18777 "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h" ;;
18778 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
18779 "po-directories") CONFIG_COMMANDS="$CONFIG_COMMANDS po-directories" ;;
18780 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
18781 "build.cfg") CONFIG_FILES="$CONFIG_FILES build.cfg" ;;
18782 "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
18783 "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
18784 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
18785 "tests/config-flags.pm") CONFIG_FILES="$CONFIG_FILES tests/config-flags.pm" ;;
18787 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
18792 # If the user did not use the arguments to specify the items to instantiate,
18793 # then the envvar interface is used. Set only those that are not.
18794 # We use the long form for the default assignment because of an extremely
18795 # bizarre bug on SunOS 4.1.3.
18796 if $ac_need_defaults; then
18797 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
18798 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
18799 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
18802 # Have a temporary directory for convenience. Make it in the build tree
18803 # simply because there is no reason against having it here, and in addition,
18804 # creating and moving files from /tmp can sometimes cause problems.
18805 # Hook for its removal unless debugging.
18806 # Note that there is a small window in which the directory will not be cleaned:
18807 # after its creation but before its name has been assigned to `$tmp'.
18811 trap 'exit_status=$?
18812 : "${ac_tmp:=$tmp}"
18813 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
18815 trap 'as_fn_exit 1' 1 2 13 15
18817 # Create a (secure) tmp directory for tmp files.
18820 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
18824 tmp=./conf$$-$RANDOM
18825 (umask 077 && mkdir "$tmp")
18826 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
18829 # Set up the scripts for CONFIG_FILES section.
18830 # No need to generate them if there are no CONFIG_FILES.
18831 # This happens for instance with `./config.status config.h'.
18832 if test -n "$CONFIG_FILES"; then
18834 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
18835 ac_cs_awk_getline=:
18836 ac_cs_awk_pipe_init=
18837 ac_cs_awk_read_file='
18838 while ((getline aline < (F[key])) > 0)
18841 ac_cs_awk_pipe_fini=
18843 ac_cs_awk_getline=false
18844 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
18845 ac_cs_awk_read_file='
18847 print "cat " F[key] " &&"
18848 '$ac_cs_awk_pipe_init
18849 # The final `:' finishes the AND list.
18850 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
18852 ac_cr=`echo X | tr X '\015'`
18853 # On cygwin, bash can eat \r inside `` if the user requested igncr.
18854 # But we know of no other shell where ac_cr would be empty at this
18855 # point, so we can use a bashism as a fallback.
18856 if test "x$ac_cr" = x; then
18857 eval ac_cr=\$\'\\r\'
18859 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
18860 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
18863 ac_cs_awk_cr=$ac_cr
18866 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
18869 # Create commands to substitute file output variables.
18871 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
18872 echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' &&
18873 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
18876 } >conf$$files.sh &&
18877 . ./conf$$files.sh ||
18878 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18879 rm -f conf$$files.sh
18882 echo "cat >conf$$subs.awk <<_ACEOF" &&
18883 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
18885 } >conf$$subs.sh ||
18886 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18887 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
18889 for ac_last_try in false false false false false :; do
18890 . ./conf$$subs.sh ||
18891 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18893 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
18894 if test $ac_delim_n = $ac_delim_num; then
18896 elif $ac_last_try; then
18897 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18899 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18902 rm -f conf$$subs.sh
18904 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18905 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
18909 s/^/S["/; s/!.*/"]=/
18919 s/\(.\{148\}\)..*/\1/
18921 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
18926 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18933 s/\(.\{148\}\)..*/\1/
18935 s/["\\]/\\&/g; s/^/"/; s/$/"/
18939 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18944 ' <conf$$subs.awk | sed '
18949 ' >>$CONFIG_STATUS || ac_write_fail=1
18950 rm -f conf$$subs.awk
18951 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18953 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
18954 for (key in S) S_is_set[key] = 1
18956 \$ac_cs_awk_pipe_init
18960 nfields = split(line, field, "@")
18962 len = length(field[1])
18963 for (i = 2; i < nfields; i++) {
18965 keylen = length(key)
18966 if (S_is_set[key]) {
18968 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
18969 len += length(value) + length(field[++i])
18974 if (nfields == 3 && !substed) {
18976 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
18977 \$ac_cs_awk_read_file
18983 \$ac_cs_awk_pipe_fini
18986 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18987 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
18988 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
18991 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
18992 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
18995 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
18996 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
18997 # trailing colons and then remove the whole line if VPATH becomes empty
18998 # (actually we leave an empty line to preserve line numbers).
18999 if test "x$srcdir" = x.; then
19000 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
19018 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19019 fi # test -n "$CONFIG_FILES"
19021 # Set up the scripts for CONFIG_HEADERS section.
19022 # No need to generate them if there are no CONFIG_HEADERS.
19023 # This happens for instance with `./config.status Makefile'.
19024 if test -n "$CONFIG_HEADERS"; then
19025 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
19029 # Transform confdefs.h into an awk script `defines.awk', embedded as
19030 # here-document in config.status, that substitutes the proper values into
19031 # config.h.in to produce config.h.
19033 # Create a delimiter string that does not exist in confdefs.h, to ease
19034 # handling of long lines.
19036 for ac_last_try in false false :; do
19037 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
19038 if test -z "$ac_tt"; then
19040 elif $ac_last_try; then
19041 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
19043 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19047 # For the awk script, D is an array of macro values keyed by name,
19048 # likewise P contains macro parameters if any. Preserve backslash
19049 # newline sequences.
19051 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
19053 s/.\{148\}/&'"$ac_delim"'/g
19056 s/^[ ]*#[ ]*define[ ][ ]*/ /
19063 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
19065 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
19069 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
19070 D["\1"]=" \3\\\\\\n"\\/p
19072 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
19077 s/.\{148\}/&'"$ac_delim"'/g
19082 s/["\\]/\\&/g; s/^/"/; s/$/"/p
19085 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
19087 ' <confdefs.h | sed '
19088 s/'"$ac_delim"'/"\\\
19089 "/g' >>$CONFIG_STATUS || ac_write_fail=1
19091 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19092 for (key in D) D_is_set[key] = 1
19095 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
19097 split(line, arg, " ")
19098 if (arg[1] == "#") {
19102 defundef = substr(arg[1], 2)
19105 split(mac1, mac2, "(") #)
19107 prefix = substr(line, 1, index(line, defundef) - 1)
19108 if (D_is_set[macro]) {
19109 # Preserve the white space surrounding the "#".
19110 print prefix "define", macro P[macro] D[macro]
19113 # Replace #undef with comments. This is necessary, for example,
19114 # in the case of _POSIX_SOURCE, which is predefined and required
19115 # on some systems where configure will not decide to define it.
19116 if (defundef == "undef") {
19117 print "/*", prefix defundef, macro, "*/"
19125 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19126 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
19127 fi # test -n "$CONFIG_HEADERS"
19130 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
19135 :[FHLC]) ac_mode=$ac_tag; continue;;
19137 case $ac_mode$ac_tag in
19139 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
19140 :[FH]-) ac_tag=-:-;;
19141 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
19158 -) ac_f="$ac_tmp/stdin";;
19159 *) # Look for the file first in the build tree, then in the source tree
19160 # (if the path is not absolute). The absolute path cannot be DOS-style,
19161 # because $ac_f cannot contain `:'.
19165 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
19167 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
19169 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
19170 as_fn_append ac_file_inputs " '$ac_f'"
19173 # Let's still pretend it is `configure' which instantiates (i.e., don't
19174 # use $as_me), people would be surprised to read:
19175 # /* config.h. Generated by config.status. */
19176 configure_input='Generated from '`
19177 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
19179 if test x"$ac_file" != x-; then
19180 configure_input="$ac_file. $configure_input"
19181 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
19182 $as_echo "$as_me: creating $ac_file" >&6;}
19184 # Neutralize special characters interpreted by sed in replacement strings.
19185 case $configure_input in #(
19186 *\&* | *\|* | *\\* )
19187 ac_sed_conf_input=`$as_echo "$configure_input" |
19188 sed 's/[\\\\&|]/\\\\&/g'`;; #(
19189 *) ac_sed_conf_input=$configure_input;;
19193 *:-:* | *:-) cat >"$ac_tmp/stdin" \
19194 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
19199 ac_dir=`$as_dirname -- "$ac_file" ||
19200 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19201 X"$ac_file" : 'X\(//\)[^/]' \| \
19202 X"$ac_file" : 'X\(//\)$' \| \
19203 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
19204 $as_echo X"$ac_file" |
19205 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19209 /^X\(\/\/\)[^/].*/{
19222 as_dir="$ac_dir"; as_fn_mkdir_p
19226 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
19228 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
19229 # A ".." for each directory in $ac_dir_suffix.
19230 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
19231 case $ac_top_builddir_sub in
19232 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
19233 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
19236 ac_abs_top_builddir=$ac_pwd
19237 ac_abs_builddir=$ac_pwd$ac_dir_suffix
19238 # for backward compatibility:
19239 ac_top_builddir=$ac_top_build_prefix
19242 .) # We are building in place.
19244 ac_top_srcdir=$ac_top_builddir_sub
19245 ac_abs_top_srcdir=$ac_pwd ;;
19246 [\\/]* | ?:[\\/]* ) # Absolute name.
19247 ac_srcdir=$srcdir$ac_dir_suffix;
19248 ac_top_srcdir=$srcdir
19249 ac_abs_top_srcdir=$srcdir ;;
19250 *) # Relative name.
19251 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
19252 ac_top_srcdir=$ac_top_build_prefix$srcdir
19253 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
19255 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
19265 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
19266 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
19268 ac_MKDIR_P=$MKDIR_P
19270 [\\/$]* | ?:[\\/]* ) ;;
19271 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
19275 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19276 # If the template does not know about datarootdir, expand it.
19277 # FIXME: This hack should be removed a few years after 2.60.
19278 ac_datarootdir_hack=; ac_datarootdir_seen=
19289 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
19290 *datarootdir*) ac_datarootdir_seen=yes;;
19291 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
19292 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
19293 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
19295 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19296 ac_datarootdir_hack='
19297 s&@datadir@&$datadir&g
19298 s&@docdir@&$docdir&g
19299 s&@infodir@&$infodir&g
19300 s&@localedir@&$localedir&g
19301 s&@mandir@&$mandir&g
19302 s&\\\${datarootdir}&$datarootdir&g' ;;
19306 # Neutralize VPATH when `$srcdir' = `.'.
19307 # Shell code in configure.ac might set extrasub.
19308 # FIXME: do we really want to maintain this feature?
19309 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19310 ac_sed_extra="$ac_vpsub
19313 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19315 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
19316 s|@configure_input@|$ac_sed_conf_input|;t t
19317 s&@top_builddir@&$ac_top_builddir_sub&;t t
19318 s&@top_build_prefix@&$ac_top_build_prefix&;t t
19319 s&@srcdir@&$ac_srcdir&;t t
19320 s&@abs_srcdir@&$ac_abs_srcdir&;t t
19321 s&@top_srcdir@&$ac_top_srcdir&;t t
19322 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
19323 s&@builddir@&$ac_builddir&;t t
19324 s&@abs_builddir@&$ac_abs_builddir&;t t
19325 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
19326 s&@INSTALL@&$ac_INSTALL&;t t
19327 s&@MKDIR_P@&$ac_MKDIR_P&;t t
19328 $ac_datarootdir_hack
19330 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
19331 if $ac_cs_awk_getline; then
19332 $AWK -f "$ac_tmp/subs.awk"
19334 $AWK -f "$ac_tmp/subs.awk" | $SHELL
19336 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19338 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
19339 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
19340 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
19341 "$ac_tmp/out"`; test -z "$ac_out"; } &&
19342 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
19343 which seems to be undefined. Please make sure it is defined" >&5
19344 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
19345 which seems to be undefined. Please make sure it is defined" >&2;}
19347 rm -f "$ac_tmp/stdin"
19349 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
19350 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
19352 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19358 if test x"$ac_file" != x-; then
19360 $as_echo "/* $configure_input */" \
19361 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
19362 } >"$ac_tmp/config.h" \
19363 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19364 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
19365 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
19366 $as_echo "$as_me: $ac_file is unchanged" >&6;}
19369 mv "$ac_tmp/config.h" "$ac_file" \
19370 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19373 $as_echo "/* $configure_input */" \
19374 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
19375 || as_fn_error $? "could not create -" "$LINENO" 5
19377 # Compute "$ac_file"'s index in $config_headers.
19380 for _am_header in $config_headers :; do
19381 case $_am_header in
19382 $_am_arg | $_am_arg:* )
19385 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
19388 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
19389 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19390 X"$_am_arg" : 'X\(//\)[^/]' \| \
19391 X"$_am_arg" : 'X\(//\)$' \| \
19392 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
19393 $as_echo X"$_am_arg" |
19394 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19398 /^X\(\/\/\)[^/].*/{
19410 s/.*/./; q'`/stamp-h$_am_stamp_count
19413 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
19414 $as_echo "$as_me: executing $ac_file commands" >&6;}
19419 case $ac_file$ac_mode in
19420 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
19421 # Older Autoconf quotes --file arguments for eval, but not when files
19422 # are listed without --file. Let's play safe and only enable the eval
19423 # if we detect the quoting.
19424 # TODO: see whether this extra hack can be removed once we start
19425 # requiring Autoconf 2.70 or later.
19426 case $CONFIG_FILES in #(
19428 eval set x "$CONFIG_FILES" ;; #(
19430 set x $CONFIG_FILES ;; #(
19435 # Used to flag and report bootstrapping failures.
19439 # Strip MF so we end up with the name of the file.
19440 am_mf=`$as_echo "$am_mf" | sed -e 's/:.*$//'`
19441 # Check whether this is an Automake generated Makefile which includes
19442 # dependency-tracking related rules and includes.
19443 # Grep'ing the whole file directly is not great: AIX grep has a line
19444 # limit of 2048, but all sed's we know have understand at least 4000.
19445 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
19447 am_dirpart=`$as_dirname -- "$am_mf" ||
19448 $as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19449 X"$am_mf" : 'X\(//\)[^/]' \| \
19450 X"$am_mf" : 'X\(//\)$' \| \
19451 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
19452 $as_echo X"$am_mf" |
19453 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19457 /^X\(\/\/\)[^/].*/{
19470 am_filepart=`$as_basename -- "$am_mf" ||
19471 $as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
19472 X"$am_mf" : 'X\(//\)$' \| \
19473 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
19474 $as_echo X/"$am_mf" |
19475 sed '/^.*\/\([^/][^/]*\)\/*$/{
19488 { echo "$as_me:$LINENO: cd "$am_dirpart" \
19489 && sed -e '/# am--include-marker/d' "$am_filepart" \
19490 | $MAKE -f - am--depfiles" >&5
19491 (cd "$am_dirpart" \
19492 && sed -e '/# am--include-marker/d' "$am_filepart" \
19493 | $MAKE -f - am--depfiles) >&5 2>&5
19495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19496 (exit $ac_status); } || am_rc=$?
19498 if test $am_rc -ne 0; then
19499 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
19500 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
19501 as_fn_error $? "Something went wrong bootstrapping makefile fragments
19502 for automatic dependency tracking. Try re-running configure with the
19503 '--disable-dependency-tracking' option to at least be able to build
19504 the package (albeit without support for automatic dependency tracking).
19505 See \`config.log' for more details" "$LINENO" 5; }
19507 { am_dirpart=; unset am_dirpart;}
19508 { am_filepart=; unset am_filepart;}
19509 { am_mf=; unset am_mf;}
19510 { am_rc=; unset am_rc;}
19511 rm -f conftest-deps.mk
19514 "po-directories":C)
19515 for ac_file in $CONFIG_FILES; do
19516 # Support "outfile[:infile[:infile...]]"
19518 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
19520 # PO directories have a Makefile.in generated from Makefile.in.in.
19521 case "$ac_file" in */Makefile.in)
19522 # Adjust a relative srcdir.
19523 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
19524 ac_dir_suffix=/`echo "$ac_dir"|sed 's%^\./%%'`
19525 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
19526 # In autoconf-2.13 it is called $ac_given_srcdir.
19527 # In autoconf-2.50 it is called $srcdir.
19528 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
19529 case "$ac_given_srcdir" in
19530 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
19531 /*) top_srcdir="$ac_given_srcdir" ;;
19532 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
19534 # Treat a directory as a PO directory if and only if it has a
19535 # POTFILES.in file. This allows packages to have multiple PO
19536 # directories under different names or in different locations.
19537 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
19538 rm -f "$ac_dir/POTFILES"
19539 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
19540 gt_tab=`printf '\t'`
19541 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ${gt_tab}]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
19542 POMAKEFILEDEPS="POTFILES.in"
19543 # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
19544 # on $ac_dir but don't depend on user-specified configuration
19546 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
19547 # The LINGUAS file contains the set of available languages.
19548 if test -n "$OBSOLETE_ALL_LINGUAS"; then
19549 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
19551 ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
19552 # Hide the ALL_LINGUAS assignment from automake < 1.5.
19553 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
19554 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
19556 # The set of available languages was given in configure.in.
19557 # Hide the ALL_LINGUAS assignment from automake < 1.5.
19558 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
19561 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
19562 # Compute UPDATEPOFILES
19563 # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
19564 # Compute DUMMYPOFILES
19565 # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
19567 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
19568 case "$ac_given_srcdir" in
19570 *) srcdirpre='$(srcdir)/' ;;
19576 for lang in $ALL_LINGUAS; do
19577 POFILES="$POFILES $srcdirpre$lang.po"
19578 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
19579 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
19580 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
19582 # CATALOGS depends on both $ac_dir and the user's LINGUAS
19583 # environment variable.
19585 if test -n "$ALL_LINGUAS"; then
19586 for presentlang in $ALL_LINGUAS; do
19588 if test "%UNSET%" != "$LINGUAS"; then
19589 desiredlanguages="$LINGUAS"
19591 desiredlanguages="$ALL_LINGUAS"
19593 for desiredlang in $desiredlanguages; do
19594 # Use the presentlang catalog if desiredlang is
19595 # a. equal to presentlang, or
19596 # b. a variant of presentlang (because in this case,
19597 # presentlang can be used as a fallback for messages
19598 # which are not translated in the desiredlang catalog).
19599 case "$desiredlang" in
19600 "$presentlang"*) useit=yes;;
19603 if test $useit = yes; then
19604 INST_LINGUAS="$INST_LINGUAS $presentlang"
19609 if test -n "$INST_LINGUAS"; then
19610 for lang in $INST_LINGUAS; do
19611 CATALOGS="$CATALOGS $lang.gmo"
19614 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
19615 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"
19616 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
19617 if test -f "$f"; then
19619 *.orig | *.bak | *~) ;;
19620 *) cat "$f" >> "$ac_dir/Makefile" ;;
19635 ac_clean_files=$ac_clean_files_save
19637 test $ac_write_fail = 0 ||
19638 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
19641 # configure is writing to config.log, and then calls config.status.
19642 # config.status does its own redirection, appending to config.log.
19643 # Unfortunately, on DOS this fails, as config.log is still kept open
19644 # by configure, so config.status won't be able to write to it; its
19645 # output is simply discarded. So we exec the FD to /dev/null,
19646 # effectively closing config.log, so it can be properly (re)opened and
19647 # appended to by config.status. When coming back to configure, we
19648 # need to make the FD available again.
19649 if test "$no_create" != yes; then
19651 ac_config_status_args=
19652 test "$silent" = yes &&
19653 ac_config_status_args="$ac_config_status_args --quiet"
19655 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
19657 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
19658 # would make configure fail if this is the last instruction.
19659 $ac_cs_success || as_fn_exit 1
19661 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
19662 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
19663 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}