2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for GNU Troff 1.22.4.
5 # Report bugs to <http://savannah.gnu.org/bugs/?group=groff>.
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
270 $0: http://savannah.gnu.org/bugs/?group=groff about your
271 $0: system, including any error possibly output before this
272 $0: message. Then install a modern shell, or manually run
273 $0: the script under such a shell if you do have one."
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 Troff'
582 PACKAGE_TARNAME='groff'
583 PACKAGE_VERSION='1.22.4'
584 PACKAGE_STRING='GNU Troff 1.22.4'
585 PACKAGE_BUGREPORT='http://savannah.gnu.org/bugs/?group=groff'
586 PACKAGE_URL='http://www.gnu.org/software/groff/'
588 ac_unique_file="src/roff/groff/groff.cpp"
589 # Factoring default headers for most tests.
590 ac_includes_default="\
592 #ifdef HAVE_SYS_TYPES_H
593 # include <sys/types.h>
595 #ifdef HAVE_SYS_STAT_H
596 # include <sys/stat.h>
602 # ifdef HAVE_STDLIB_H
607 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
612 #ifdef HAVE_STRINGS_H
613 # include <strings.h>
615 #ifdef HAVE_INTTYPES_H
616 # include <inttypes.h>
627 ac_config_libobj_dir=lib
628 ac_subst_vars='gltests_LTLIBOBJS
639 INSTALL_SHIPPED_HTML_FALSE
640 INSTALL_SHIPPED_HTML_TRUE
645 BUILD_PDFEXAMPLES_FALSE
646 BUILD_PDFEXAMPLES_TRUE
649 BUILD_HTMLEXAMPLES_FALSE
650 BUILD_HTMLEXAMPLES_TRUE
655 USEPROGRAMPREFIX_FALSE
656 USEPROGRAMPREFIX_TRUE
657 MAKE_DONT_HAVE_RM_FALSE
658 MAKE_DONT_HAVE_RM_TRUE
661 BUILD_WINSCRIPTS_FALSE
662 BUILD_WINSCRIPTS_TRUE
669 make_uninstall_pdfexamples
670 make_install_pdfexamples
672 make_uninstall_pdfdoc
677 make_uninstall_htmlexamples
678 make_install_htmlexamples
680 make_uninstall_htmldoc
690 ALT_GHOSTSCRIPT_PROGS
692 compatibility_wrappers
719 makeinfo_version_numeric
720 make_uninstall_infodoc
723 make_uninstall_examples
724 make_install_examples
726 make_uninstall_otherdoc
727 make_install_otherdoc
729 make_uninstall_shipped_htmldoc
730 make_install_shipped_htmldoc
760 NEXT_AS_FIRST_DIRECTIVE_WCTYPE_H
774 NEXT_AS_FIRST_DIRECTIVE_WCHAR_H
870 LIBUNISTRING_COMPILE_UNIWIDTH_WIDTH_FALSE
871 LIBUNISTRING_COMPILE_UNIWIDTH_WIDTH_TRUE
872 LIBUNISTRING_UNIWIDTH_H
873 LIBUNISTRING_UNITYPES_H
876 NEXT_AS_FIRST_DIRECTIVE_SYS_TYPES_H
878 NEXT_AS_FIRST_DIRECTIVE_STRING_H
880 NEXT_AS_FIRST_DIRECTIVE_STDIO_H
882 GL_GENERATE_STDINT_H_FALSE
883 GL_GENERATE_STDINT_H_TRUE
895 HAVE_SIGNED_SIG_ATOMIC_T
898 BITSIZEOF_SIG_ATOMIC_T
902 NEXT_AS_FIRST_DIRECTIVE_STDINT_H
907 HAVE_UNSIGNED_LONG_LONG_INT
909 NEXT_AS_FIRST_DIRECTIVE_STDDEF_H
911 GL_GENERATE_STDDEF_H_FALSE
912 GL_GENERATE_STDDEF_H_TRUE
991 GNULIB_EXPLICIT_BZERO
992 NEXT_AS_FIRST_DIRECTIVE_MATH_H
994 LOCALCHARSET_TESTS_ENVIRONMENT
996 GL_GENERATE_LIMITS_H_FALSE
997 GL_GENERATE_LIMITS_H_TRUE
999 NEXT_AS_FIRST_DIRECTIVE_LIMITS_H
1012 REPLACE_SIGNBIT_USING_GCC
1089 HAVE_DECL_REMAINDERL
1277 REPLACE_STDIO_WRITE_FUNCS
1278 REPLACE_STDIO_READ_FUNCS
1287 REPLACE_OBSTACK_PRINTF
1312 HAVE_DECL_OBSTACK_PRINTF
1318 GNULIB_VSPRINTF_POSIX
1320 GNULIB_VPRINTF_POSIX
1322 GNULIB_VFPRINTF_POSIX
1329 GNULIB_STDIO_H_SIGPIPE
1330 GNULIB_STDIO_H_NONBLOCKING
1331 GNULIB_SPRINTF_POSIX
1345 GNULIB_OBSTACK_PRINTF_POSIX
1346 GNULIB_OBSTACK_PRINTF
1362 GNULIB_FPRINTF_POSIX
1372 GNULIB_OVERRIDES_WINT_T
1373 APPLE_UNIVERSAL_BUILD
1374 HAVE_SAME_LONG_DOUBLE_AS_DOUBLE
1376 GL_GENERATE_FLOAT_H_FALSE
1377 GL_GENERATE_FLOAT_H_TRUE
1379 NEXT_AS_FIRST_DIRECTIVE_FLOAT_H
1387 GL_GENERATE_ERRNO_H_FALSE
1388 GL_GENERATE_ERRNO_H_TRUE
1390 NEXT_AS_FIRST_DIRECTIVE_ERRNO_H
1393 PRAGMA_SYSTEM_HEADER
1394 INCLUDE_NEXT_AS_FIRST_DIRECTIVE
1396 GL_GENERATE_ALLOCA_H_FALSE
1397 GL_GENERATE_ALLOCA_H_TRUE
1400 GL_COND_LIBTOOL_FALSE
1401 GL_COND_LIBTOOL_TRUE
1413 am__fastdepCXX_FALSE
1420 AM_DEFAULT_VERBOSITY
1440 INSTALL_STRIP_PROGRAM
1493 program_transform_name
1512 enable_option_checking
1513 enable_dependency_tracking
1522 with_libiconv_prefix
1524 with_compatibility_wrappers
1530 ac_precious_vars='build_alias
1551 # Initialize some variables set by options.
1553 ac_init_version=false
1554 ac_unrecognized_opts=
1555 ac_unrecognized_sep=
1556 # The variables have the same names as the options, with
1557 # dashes changed to underlines.
1558 cache_file=/dev/null
1565 program_transform_name=s,x,x,
1573 # Installation directory options.
1574 # These are left unexpanded so users can "make install exec_prefix=/foo"
1575 # and all the variables that are supposed to be based on exec_prefix
1576 # by default will actually change.
1577 # Use braces instead of parens because sh, perl, etc. also accept them.
1578 # (The list follows the same order as the GNU Coding Standards.)
1579 bindir='${exec_prefix}/bin'
1580 sbindir='${exec_prefix}/sbin'
1581 libexecdir='${exec_prefix}/libexec'
1582 datarootdir='${prefix}/share'
1583 datadir='${datarootdir}'
1584 sysconfdir='${prefix}/etc'
1585 sharedstatedir='${prefix}/com'
1586 localstatedir='${prefix}/var'
1587 includedir='${prefix}/include'
1588 oldincludedir='/usr/include'
1589 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1590 infodir='${datarootdir}/info'
1595 libdir='${exec_prefix}/lib'
1596 localedir='${datarootdir}/locale'
1597 mandir='${datarootdir}/man'
1603 # If the previous option needs an argument, assign it.
1604 if test -n "$ac_prev"; then
1605 eval $ac_prev=\$ac_option
1611 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1616 # Accept the important Cygnus configure options, so we can diagnose typos.
1618 case $ac_dashdash$ac_option in
1622 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1624 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1625 bindir=$ac_optarg ;;
1627 -build | --build | --buil | --bui | --bu)
1628 ac_prev=build_alias ;;
1629 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1630 build_alias=$ac_optarg ;;
1632 -cache-file | --cache-file | --cache-fil | --cache-fi \
1633 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1634 ac_prev=cache_file ;;
1635 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1636 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1637 cache_file=$ac_optarg ;;
1639 --config-cache | -C)
1640 cache_file=config.cache ;;
1642 -datadir | --datadir | --datadi | --datad)
1644 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1645 datadir=$ac_optarg ;;
1647 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1648 | --dataroo | --dataro | --datar)
1649 ac_prev=datarootdir ;;
1650 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1651 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1652 datarootdir=$ac_optarg ;;
1654 -disable-* | --disable-*)
1655 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1656 # Reject names that are not valid shell variable names.
1657 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1658 as_fn_error $? "invalid feature name: $ac_useropt"
1659 ac_useropt_orig=$ac_useropt
1660 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1661 case $ac_user_opts in
1663 "enable_$ac_useropt"
1665 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1666 ac_unrecognized_sep=', ';;
1668 eval enable_$ac_useropt=no ;;
1670 -docdir | --docdir | --docdi | --doc | --do)
1672 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1673 docdir=$ac_optarg ;;
1675 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1677 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1678 dvidir=$ac_optarg ;;
1680 -enable-* | --enable-*)
1681 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1682 # Reject names that are not valid shell variable names.
1683 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1684 as_fn_error $? "invalid feature name: $ac_useropt"
1685 ac_useropt_orig=$ac_useropt
1686 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1687 case $ac_user_opts in
1689 "enable_$ac_useropt"
1691 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1692 ac_unrecognized_sep=', ';;
1694 eval enable_$ac_useropt=\$ac_optarg ;;
1696 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1697 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1698 | --exec | --exe | --ex)
1699 ac_prev=exec_prefix ;;
1700 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1701 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1702 | --exec=* | --exe=* | --ex=*)
1703 exec_prefix=$ac_optarg ;;
1705 -gas | --gas | --ga | --g)
1706 # Obsolete; use --with-gas.
1709 -help | --help | --hel | --he | -h)
1710 ac_init_help=long ;;
1711 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1712 ac_init_help=recursive ;;
1713 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1714 ac_init_help=short ;;
1716 -host | --host | --hos | --ho)
1717 ac_prev=host_alias ;;
1718 -host=* | --host=* | --hos=* | --ho=*)
1719 host_alias=$ac_optarg ;;
1721 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1723 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1725 htmldir=$ac_optarg ;;
1727 -includedir | --includedir | --includedi | --included | --include \
1728 | --includ | --inclu | --incl | --inc)
1729 ac_prev=includedir ;;
1730 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1731 | --includ=* | --inclu=* | --incl=* | --inc=*)
1732 includedir=$ac_optarg ;;
1734 -infodir | --infodir | --infodi | --infod | --info | --inf)
1736 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1737 infodir=$ac_optarg ;;
1739 -libdir | --libdir | --libdi | --libd)
1741 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1742 libdir=$ac_optarg ;;
1744 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1745 | --libexe | --libex | --libe)
1746 ac_prev=libexecdir ;;
1747 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1748 | --libexe=* | --libex=* | --libe=*)
1749 libexecdir=$ac_optarg ;;
1751 -localedir | --localedir | --localedi | --localed | --locale)
1752 ac_prev=localedir ;;
1753 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1754 localedir=$ac_optarg ;;
1756 -localstatedir | --localstatedir | --localstatedi | --localstated \
1757 | --localstate | --localstat | --localsta | --localst | --locals)
1758 ac_prev=localstatedir ;;
1759 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1760 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1761 localstatedir=$ac_optarg ;;
1763 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1765 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1766 mandir=$ac_optarg ;;
1768 -nfp | --nfp | --nf)
1769 # Obsolete; use --without-fp.
1772 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1773 | --no-cr | --no-c | -n)
1776 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1777 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1780 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1781 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1782 | --oldin | --oldi | --old | --ol | --o)
1783 ac_prev=oldincludedir ;;
1784 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1785 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1786 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1787 oldincludedir=$ac_optarg ;;
1789 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1791 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1792 prefix=$ac_optarg ;;
1794 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1795 | --program-pre | --program-pr | --program-p)
1796 ac_prev=program_prefix ;;
1797 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1798 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1799 program_prefix=$ac_optarg ;;
1801 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1802 | --program-suf | --program-su | --program-s)
1803 ac_prev=program_suffix ;;
1804 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1805 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1806 program_suffix=$ac_optarg ;;
1808 -program-transform-name | --program-transform-name \
1809 | --program-transform-nam | --program-transform-na \
1810 | --program-transform-n | --program-transform- \
1811 | --program-transform | --program-transfor \
1812 | --program-transfo | --program-transf \
1813 | --program-trans | --program-tran \
1814 | --progr-tra | --program-tr | --program-t)
1815 ac_prev=program_transform_name ;;
1816 -program-transform-name=* | --program-transform-name=* \
1817 | --program-transform-nam=* | --program-transform-na=* \
1818 | --program-transform-n=* | --program-transform-=* \
1819 | --program-transform=* | --program-transfor=* \
1820 | --program-transfo=* | --program-transf=* \
1821 | --program-trans=* | --program-tran=* \
1822 | --progr-tra=* | --program-tr=* | --program-t=*)
1823 program_transform_name=$ac_optarg ;;
1825 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1827 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1828 pdfdir=$ac_optarg ;;
1830 -psdir | --psdir | --psdi | --psd | --ps)
1832 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1835 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1836 | -silent | --silent | --silen | --sile | --sil)
1839 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1841 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1843 sbindir=$ac_optarg ;;
1845 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1846 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1847 | --sharedst | --shareds | --shared | --share | --shar \
1849 ac_prev=sharedstatedir ;;
1850 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1851 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1852 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1854 sharedstatedir=$ac_optarg ;;
1856 -site | --site | --sit)
1858 -site=* | --site=* | --sit=*)
1861 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1863 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1864 srcdir=$ac_optarg ;;
1866 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1867 | --syscon | --sysco | --sysc | --sys | --sy)
1868 ac_prev=sysconfdir ;;
1869 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1870 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1871 sysconfdir=$ac_optarg ;;
1873 -target | --target | --targe | --targ | --tar | --ta | --t)
1874 ac_prev=target_alias ;;
1875 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1876 target_alias=$ac_optarg ;;
1878 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1881 -version | --version | --versio | --versi | --vers | -V)
1882 ac_init_version=: ;;
1885 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1886 # Reject names that are not valid shell variable names.
1887 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1888 as_fn_error $? "invalid package name: $ac_useropt"
1889 ac_useropt_orig=$ac_useropt
1890 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1891 case $ac_user_opts in
1895 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1896 ac_unrecognized_sep=', ';;
1898 eval with_$ac_useropt=\$ac_optarg ;;
1900 -without-* | --without-*)
1901 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1902 # Reject names that are not valid shell variable names.
1903 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1904 as_fn_error $? "invalid package name: $ac_useropt"
1905 ac_useropt_orig=$ac_useropt
1906 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1907 case $ac_user_opts in
1911 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1912 ac_unrecognized_sep=', ';;
1914 eval with_$ac_useropt=no ;;
1917 # Obsolete; use --with-x.
1920 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1921 | --x-incl | --x-inc | --x-in | --x-i)
1922 ac_prev=x_includes ;;
1923 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1924 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1925 x_includes=$ac_optarg ;;
1927 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1928 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1929 ac_prev=x_libraries ;;
1930 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1931 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1932 x_libraries=$ac_optarg ;;
1934 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1935 Try \`$0 --help' for more information"
1939 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1940 # Reject names that are not valid shell variable names.
1941 case $ac_envvar in #(
1942 '' | [0-9]* | *[!_$as_cr_alnum]* )
1943 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1945 eval $ac_envvar=\$ac_optarg
1946 export $ac_envvar ;;
1949 # FIXME: should be removed in autoconf 3.0.
1950 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1951 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1952 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1953 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1959 if test -n "$ac_prev"; then
1960 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1961 as_fn_error $? "missing argument to $ac_option"
1964 if test -n "$ac_unrecognized_opts"; then
1965 case $enable_option_checking in
1967 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1968 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1972 # Check all directory arguments for consistency.
1973 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1974 datadir sysconfdir sharedstatedir localstatedir includedir \
1975 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1976 libdir localedir mandir
1978 eval ac_val=\$$ac_var
1979 # Remove trailing slashes.
1982 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1983 eval $ac_var=\$ac_val;;
1985 # Be sure to have absolute directory names.
1987 [\\/$]* | ?:[\\/]* ) continue;;
1988 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1990 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1993 # There might be people who depend on the old broken behavior: `$host'
1994 # used to hold the argument of --host etc.
1995 # FIXME: To remove some day.
1998 target=$target_alias
2000 # FIXME: To remove some day.
2001 if test "x$host_alias" != x; then
2002 if test "x$build_alias" = x; then
2003 cross_compiling=maybe
2004 elif test "x$build_alias" != "x$host_alias"; then
2010 test -n "$host_alias" && ac_tool_prefix=$host_alias-
2012 test "$silent" = yes && exec 6>/dev/null
2015 ac_pwd=`pwd` && test -n "$ac_pwd" &&
2016 ac_ls_di=`ls -di .` &&
2017 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
2018 as_fn_error $? "working directory cannot be determined"
2019 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
2020 as_fn_error $? "pwd does not report name of working directory"
2023 # Find the source files, if location was not specified.
2024 if test -z "$srcdir"; then
2025 ac_srcdir_defaulted=yes
2026 # Try the directory containing this script, then the parent directory.
2027 ac_confdir=`$as_dirname -- "$as_myself" ||
2028 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
2029 X"$as_myself" : 'X\(//\)[^/]' \| \
2030 X"$as_myself" : 'X\(//\)$' \| \
2031 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
2032 $as_echo X"$as_myself" |
2033 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
2051 if test ! -r "$srcdir/$ac_unique_file"; then
2055 ac_srcdir_defaulted=no
2057 if test ! -r "$srcdir/$ac_unique_file"; then
2058 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
2059 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
2061 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
2063 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
2065 # When building in place, set srcdir=.
2066 if test "$ac_abs_confdir" = "$ac_pwd"; then
2069 # Remove unnecessary trailing slashes from srcdir.
2070 # Double slashes in file names in object file debugging info
2071 # mess up M-x gdb in Emacs.
2073 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
2075 for ac_var in $ac_precious_vars; do
2076 eval ac_env_${ac_var}_set=\${${ac_var}+set}
2077 eval ac_env_${ac_var}_value=\$${ac_var}
2078 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
2079 eval ac_cv_env_${ac_var}_value=\$${ac_var}
2083 # Report the --help message.
2085 if test "$ac_init_help" = "long"; then
2086 # Omit some internal or obsolete options to make the list less imposing.
2087 # This message is too long to be a string in the A/UX 3.1 sh.
2089 \`configure' configures GNU Troff 1.22.4 to adapt to many kinds of systems.
2091 Usage: $0 [OPTION]... [VAR=VALUE]...
2093 To assign environment variables (e.g., CC, CFLAGS...), specify them as
2094 VAR=VALUE. See below for descriptions of some of the useful variables.
2096 Defaults for the options are specified in brackets.
2099 -h, --help display this help and exit
2100 --help=short display options specific to this package
2101 --help=recursive display the short help of all the included packages
2102 -V, --version display version information and exit
2103 -q, --quiet, --silent do not print \`checking ...' messages
2104 --cache-file=FILE cache test results in FILE [disabled]
2105 -C, --config-cache alias for \`--cache-file=config.cache'
2106 -n, --no-create do not create output files
2107 --srcdir=DIR find the sources in DIR [configure dir or \`..']
2109 Installation directories:
2110 --prefix=PREFIX install architecture-independent files in PREFIX
2111 [$ac_default_prefix]
2112 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
2115 By default, \`make install' will install all the files in
2116 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
2117 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
2118 for instance \`--prefix=\$HOME'.
2120 For better control, use the options below.
2122 Fine tuning of the installation directories:
2123 --bindir=DIR user executables [EPREFIX/bin]
2124 --sbindir=DIR system admin executables [EPREFIX/sbin]
2125 --libexecdir=DIR program executables [EPREFIX/libexec]
2126 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
2127 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
2128 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
2129 --libdir=DIR object code libraries [EPREFIX/lib]
2130 --includedir=DIR C header files [PREFIX/include]
2131 --oldincludedir=DIR C header files for non-gcc [/usr/include]
2132 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
2133 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
2134 --infodir=DIR info documentation [DATAROOTDIR/info]
2135 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
2136 --mandir=DIR man documentation [DATAROOTDIR/man]
2137 --docdir=DIR documentation root [DATAROOTDIR/doc/groff]
2138 --htmldir=DIR html documentation [DOCDIR]
2139 --dvidir=DIR dvi documentation [DOCDIR]
2140 --pdfdir=DIR pdf documentation [DOCDIR]
2141 --psdir=DIR ps documentation [DOCDIR]
2147 --program-prefix=PREFIX prepend PREFIX to installed program names
2148 --program-suffix=SUFFIX append SUFFIX to installed program names
2149 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
2152 --x-includes=DIR X include files are in DIR
2153 --x-libraries=DIR X library files are in DIR
2156 --build=BUILD configure for building on BUILD [guessed]
2157 --host=HOST cross-compile to build programs to run on HOST [BUILD]
2161 if test -n "$ac_init_help"; then
2162 case $ac_init_help in
2163 short | recursive ) echo "Configuration of GNU Troff 1.22.4:";;
2168 --disable-option-checking ignore unrecognized --enable/--with options
2169 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
2170 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
2171 --enable-dependency-tracking
2172 do not reject slow dependency extractors
2173 --disable-dependency-tracking
2174 speeds up one-time build
2175 --enable-silent-rules less verbose build output (undo: "make V=1")
2176 --disable-silent-rules verbose build output (undo: "make V=0")
2177 --disable-rpath do not hardcode runtime library paths
2180 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
2181 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
2182 --with-x use the X Window System
2183 --with-appresdir=DIR X11 application resource files
2184 --with-grofferdir=DIR groffer files location
2185 --with-doc[=TYPE] choose which manuals (beside man pages) are
2186 desirable. TYPE can be 'yes' or 'no', or a
2187 comma-separated list of one or multiple of 'html',
2188 'info', 'other', 'pdf', and 'examples', to restrict
2190 --with-uchardet Build 'preconv' with uchardet library for file
2191 encoding automatic detection [=auto|no|yes]
2192 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
2193 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
2194 --without-libiconv-prefix don't search for libiconv in includedir and libdir
2195 --with-urw-fonts-dir=DIR
2196 Search for URW fonts in this directory
2197 --with-compatibility-wrappers[=VALUE]
2198 choose whether and how groff compatibility wrappers
2199 for vendor-provided non-GNU macro sets are
2200 installed. VALUE can be 'check', 'yes', 'no' or
2201 'manual'. 'check' (the default) checks for the
2202 existence of vendor-provided non-GNU macro sets, and
2203 implements the 'yes' or 'no' option accordingly.
2204 'yes' generates compatibility wrappers for
2205 vendor-provided non-GNU macro sets to allow their
2206 use with groff-based tools. The compatibility
2207 wrappers are installed with the original macro set
2208 name, while groff implementation of these macro sets
2209 are installed with a 'g' prefix. Thus use of the
2210 groff implementation of these macro sets requires
2211 use of the '-mg<macro>' option (example: -mgan).
2212 'no' only installs the groff implementation of macro
2213 sets. 'manual' generates compatibility wrappers for
2214 vendor-provided non-GNU macro sets as '<macro>-os'.
2215 Use of these groff compatibility wrappers (for
2216 vendor-provided non-GNU macro sets) requires the use
2217 of the '-m<macro>-os' option (example: -man-os).
2218 --with-alt-gs=LIST alternative names for ghostscript executable
2219 --with-gs=PROG actual [/path/]name of ghostscript executable
2220 --with-alt-awk=LIST alternative names for awk executable
2221 --with-awk=PROG actual [/path/]name of awk executable
2223 Some influential environment variables:
2224 CC C compiler command
2225 CFLAGS C compiler flags
2226 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
2227 nonstandard directory <lib dir>
2228 LIBS libraries to pass to the linker, e.g. -l<library>
2229 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
2230 you have headers in a nonstandard directory <include dir>
2232 CXX C++ compiler command
2233 CXXFLAGS C++ compiler flags
2234 XMKMF Path to xmkmf, Makefile generator for X Window System
2235 PKG_CONFIG path to pkg-config utility
2237 directories to add to pkg-config's search path
2239 path overriding pkg-config's built-in search path
2241 C compiler flags for UCHARDET, overriding pkg-config
2243 linker flags for UCHARDET, overriding pkg-config
2244 CXXCPP C++ preprocessor
2246 Use these variables to override the choices made by `configure' or to help
2247 it to find libraries and programs with nonstandard names/locations.
2249 Report bugs to <http://savannah.gnu.org/bugs/?group=groff>.
2250 GNU Troff home page: <http://www.gnu.org/software/groff/>.
2251 General help using GNU software: <http://www.gnu.org/gethelp/>.
2256 if test "$ac_init_help" = "recursive"; then
2257 # If there are subdirs, report their specific --help.
2258 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
2259 test -d "$ac_dir" ||
2260 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
2265 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
2267 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
2268 # A ".." for each directory in $ac_dir_suffix.
2269 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
2270 case $ac_top_builddir_sub in
2271 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
2272 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
2275 ac_abs_top_builddir=$ac_pwd
2276 ac_abs_builddir=$ac_pwd$ac_dir_suffix
2277 # for backward compatibility:
2278 ac_top_builddir=$ac_top_build_prefix
2281 .) # We are building in place.
2283 ac_top_srcdir=$ac_top_builddir_sub
2284 ac_abs_top_srcdir=$ac_pwd ;;
2285 [\\/]* | ?:[\\/]* ) # Absolute name.
2286 ac_srcdir=$srcdir$ac_dir_suffix;
2287 ac_top_srcdir=$srcdir
2288 ac_abs_top_srcdir=$srcdir ;;
2290 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
2291 ac_top_srcdir=$ac_top_build_prefix$srcdir
2292 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
2294 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
2296 cd "$ac_dir" || { ac_status=$?; continue; }
2297 # Check for guested configure.
2298 if test -f "$ac_srcdir/configure.gnu"; then
2300 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
2301 elif test -f "$ac_srcdir/configure"; then
2303 $SHELL "$ac_srcdir/configure" --help=recursive
2305 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
2307 cd "$ac_pwd" || { ac_status=$?; break; }
2311 test -n "$ac_init_help" && exit $ac_status
2312 if $ac_init_version; then
2314 GNU Troff configure 1.22.4
2315 generated by GNU Autoconf 2.69
2317 Copyright (C) 2012 Free Software Foundation, Inc.
2318 This configure script is free software; the Free Software Foundation
2319 gives unlimited permission to copy, distribute and modify it.
2324 ## ------------------------ ##
2325 ## Autoconf initialization. ##
2326 ## ------------------------ ##
2328 # ac_fn_c_try_compile LINENO
2329 # --------------------------
2330 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2331 ac_fn_c_try_compile ()
2333 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2334 rm -f conftest.$ac_objext
2335 if { { ac_try="$ac_compile"
2337 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2338 *) ac_try_echo=$ac_try;;
2340 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2341 $as_echo "$ac_try_echo"; } >&5
2342 (eval "$ac_compile") 2>conftest.err
2344 if test -s conftest.err; then
2345 grep -v '^ *+' conftest.err >conftest.er1
2346 cat conftest.er1 >&5
2347 mv -f conftest.er1 conftest.err
2349 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2350 test $ac_status = 0; } && {
2351 test -z "$ac_c_werror_flag" ||
2352 test ! -s conftest.err
2353 } && test -s conftest.$ac_objext; then :
2356 $as_echo "$as_me: failed program was:" >&5
2357 sed 's/^/| /' conftest.$ac_ext >&5
2361 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2362 as_fn_set_status $ac_retval
2364 } # ac_fn_c_try_compile
2366 # ac_fn_c_try_cpp LINENO
2367 # ----------------------
2368 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2371 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2372 if { { ac_try="$ac_cpp conftest.$ac_ext"
2374 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2375 *) ac_try_echo=$ac_try;;
2377 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2378 $as_echo "$ac_try_echo"; } >&5
2379 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2381 if test -s conftest.err; then
2382 grep -v '^ *+' conftest.err >conftest.er1
2383 cat conftest.er1 >&5
2384 mv -f conftest.er1 conftest.err
2386 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2387 test $ac_status = 0; } > conftest.i && {
2388 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2389 test ! -s conftest.err
2393 $as_echo "$as_me: failed program was:" >&5
2394 sed 's/^/| /' conftest.$ac_ext >&5
2398 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2399 as_fn_set_status $ac_retval
2403 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2404 # -------------------------------------------------------
2405 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2406 # the include files in INCLUDES and setting the cache variable VAR
2408 ac_fn_c_check_header_mongrel ()
2410 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2411 if eval \${$3+:} false; then :
2412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2413 $as_echo_n "checking for $2... " >&6; }
2414 if eval \${$3+:} false; then :
2415 $as_echo_n "(cached) " >&6
2418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2419 $as_echo "$ac_res" >&6; }
2421 # Is the header compilable?
2422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2423 $as_echo_n "checking $2 usability... " >&6; }
2424 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2425 /* end confdefs.h. */
2429 if ac_fn_c_try_compile "$LINENO"; then :
2430 ac_header_compiler=yes
2432 ac_header_compiler=no
2434 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2436 $as_echo "$ac_header_compiler" >&6; }
2438 # Is the header present?
2439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2440 $as_echo_n "checking $2 presence... " >&6; }
2441 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2442 /* end confdefs.h. */
2445 if ac_fn_c_try_cpp "$LINENO"; then :
2446 ac_header_preproc=yes
2448 ac_header_preproc=no
2450 rm -f conftest.err conftest.i conftest.$ac_ext
2451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2452 $as_echo "$ac_header_preproc" >&6; }
2454 # So? What about this header?
2455 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2457 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2458 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2459 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2460 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2463 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2464 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2465 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2466 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2467 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2468 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2469 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2470 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2471 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2472 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2473 ( $as_echo "## -------------------------------------------------------- ##
2474 ## Report this to http://savannah.gnu.org/bugs/?group=groff ##
2475 ## -------------------------------------------------------- ##"
2476 ) | sed "s/^/$as_me: WARNING: /" >&2
2479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2480 $as_echo_n "checking for $2... " >&6; }
2481 if eval \${$3+:} false; then :
2482 $as_echo_n "(cached) " >&6
2484 eval "$3=\$ac_header_compiler"
2487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2488 $as_echo "$ac_res" >&6; }
2490 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2492 } # ac_fn_c_check_header_mongrel
2494 # ac_fn_c_try_run LINENO
2495 # ----------------------
2496 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2497 # that executables *can* be run.
2500 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2501 if { { ac_try="$ac_link"
2503 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2504 *) ac_try_echo=$ac_try;;
2506 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2507 $as_echo "$ac_try_echo"; } >&5
2508 (eval "$ac_link") 2>&5
2510 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2511 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2512 { { case "(($ac_try" in
2513 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2514 *) ac_try_echo=$ac_try;;
2516 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2517 $as_echo "$ac_try_echo"; } >&5
2518 (eval "$ac_try") 2>&5
2520 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2521 test $ac_status = 0; }; }; then :
2524 $as_echo "$as_me: program exited with status $ac_status" >&5
2525 $as_echo "$as_me: failed program was:" >&5
2526 sed 's/^/| /' conftest.$ac_ext >&5
2528 ac_retval=$ac_status
2530 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2531 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2532 as_fn_set_status $ac_retval
2536 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2537 # -------------------------------------------------------
2538 # Tests whether HEADER exists and can be compiled using the include files in
2539 # INCLUDES, setting the cache variable VAR accordingly.
2540 ac_fn_c_check_header_compile ()
2542 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2544 $as_echo_n "checking for $2... " >&6; }
2545 if eval \${$3+:} false; then :
2546 $as_echo_n "(cached) " >&6
2548 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2549 /* end confdefs.h. */
2553 if ac_fn_c_try_compile "$LINENO"; then :
2558 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2562 $as_echo "$ac_res" >&6; }
2563 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2565 } # ac_fn_c_check_header_compile
2567 # ac_fn_cxx_try_compile LINENO
2568 # ----------------------------
2569 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2570 ac_fn_cxx_try_compile ()
2572 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2573 rm -f conftest.$ac_objext
2574 if { { ac_try="$ac_compile"
2576 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2577 *) ac_try_echo=$ac_try;;
2579 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2580 $as_echo "$ac_try_echo"; } >&5
2581 (eval "$ac_compile") 2>conftest.err
2583 if test -s conftest.err; then
2584 grep -v '^ *+' conftest.err >conftest.er1
2585 cat conftest.er1 >&5
2586 mv -f conftest.er1 conftest.err
2588 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2589 test $ac_status = 0; } && {
2590 test -z "$ac_cxx_werror_flag" ||
2591 test ! -s conftest.err
2592 } && test -s conftest.$ac_objext; then :
2595 $as_echo "$as_me: failed program was:" >&5
2596 sed 's/^/| /' conftest.$ac_ext >&5
2600 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2601 as_fn_set_status $ac_retval
2603 } # ac_fn_cxx_try_compile
2605 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2606 # -------------------------------------------
2607 # Tests whether TYPE exists after having included INCLUDES, setting cache
2608 # variable VAR accordingly.
2609 ac_fn_c_check_type ()
2611 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2613 $as_echo_n "checking for $2... " >&6; }
2614 if eval \${$3+:} false; then :
2615 $as_echo_n "(cached) " >&6
2618 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2619 /* end confdefs.h. */
2630 if ac_fn_c_try_compile "$LINENO"; then :
2631 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2632 /* end confdefs.h. */
2643 if ac_fn_c_try_compile "$LINENO"; then :
2648 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2650 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2654 $as_echo "$ac_res" >&6; }
2655 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2657 } # ac_fn_c_check_type
2659 # ac_fn_c_try_link LINENO
2660 # -----------------------
2661 # Try to link conftest.$ac_ext, and return whether this succeeded.
2664 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2665 rm -f conftest.$ac_objext conftest$ac_exeext
2666 if { { ac_try="$ac_link"
2668 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2669 *) ac_try_echo=$ac_try;;
2671 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2672 $as_echo "$ac_try_echo"; } >&5
2673 (eval "$ac_link") 2>conftest.err
2675 if test -s conftest.err; then
2676 grep -v '^ *+' conftest.err >conftest.er1
2677 cat conftest.er1 >&5
2678 mv -f conftest.er1 conftest.err
2680 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2681 test $ac_status = 0; } && {
2682 test -z "$ac_c_werror_flag" ||
2683 test ! -s conftest.err
2684 } && test -s conftest$ac_exeext && {
2685 test "$cross_compiling" = yes ||
2686 test -x conftest$ac_exeext
2690 $as_echo "$as_me: failed program was:" >&5
2691 sed 's/^/| /' conftest.$ac_ext >&5
2695 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2696 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2697 # interfere with the next link command; also delete a directory that is
2698 # left behind by Apple's compiler. We do this before executing the actions.
2699 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2700 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2701 as_fn_set_status $ac_retval
2703 } # ac_fn_c_try_link
2705 # ac_fn_c_check_func LINENO FUNC VAR
2706 # ----------------------------------
2707 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2708 ac_fn_c_check_func ()
2710 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2712 $as_echo_n "checking for $2... " >&6; }
2713 if eval \${$3+:} false; then :
2714 $as_echo_n "(cached) " >&6
2716 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2717 /* end confdefs.h. */
2718 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2719 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2720 #define $2 innocuous_$2
2722 /* System header to define __stub macros and hopefully few prototypes,
2723 which can conflict with char $2 (); below.
2724 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2725 <limits.h> exists even on freestanding compilers. */
2728 # include <limits.h>
2730 # include <assert.h>
2735 /* Override any GCC internal prototype to avoid an error.
2736 Use char because int might match the return type of a GCC
2737 builtin and then its argument prototype would still apply. */
2742 /* The GNU C library defines this for functions which it implements
2743 to always fail with ENOSYS. Some functions are actually named
2744 something starting with __ and the normal name is an alias. */
2745 #if defined __stub_$2 || defined __stub___$2
2757 if ac_fn_c_try_link "$LINENO"; then :
2762 rm -f core conftest.err conftest.$ac_objext \
2763 conftest$ac_exeext conftest.$ac_ext
2766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2767 $as_echo "$ac_res" >&6; }
2768 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2770 } # ac_fn_c_check_func
2772 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2773 # --------------------------------------------
2774 # Tries to find the compile-time value of EXPR in a program that includes
2775 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2777 ac_fn_c_compute_int ()
2779 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2780 if test "$cross_compiling" = yes; then
2781 # Depending upon the size, compute the lo and hi bounds.
2782 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2783 /* end confdefs.h. */
2788 static int test_array [1 - 2 * !(($2) >= 0)];
2790 return test_array [0];
2796 if ac_fn_c_try_compile "$LINENO"; then :
2799 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2800 /* end confdefs.h. */
2805 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2807 return test_array [0];
2813 if ac_fn_c_try_compile "$LINENO"; then :
2814 ac_hi=$ac_mid; break
2816 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2817 if test $ac_lo -le $ac_mid; then
2821 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2823 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2826 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2827 /* end confdefs.h. */
2832 static int test_array [1 - 2 * !(($2) < 0)];
2834 return test_array [0];
2840 if ac_fn_c_try_compile "$LINENO"; then :
2843 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2844 /* end confdefs.h. */
2849 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2851 return test_array [0];
2857 if ac_fn_c_try_compile "$LINENO"; then :
2858 ac_lo=$ac_mid; break
2860 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2861 if test $ac_mid -le $ac_hi; then
2865 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2867 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2872 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2874 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2875 # Binary search between lo and hi bounds.
2876 while test "x$ac_lo" != "x$ac_hi"; do
2877 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2878 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2879 /* end confdefs.h. */
2884 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2886 return test_array [0];
2892 if ac_fn_c_try_compile "$LINENO"; then :
2895 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2897 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2900 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2904 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2905 /* end confdefs.h. */
2907 static long int longval () { return $2; }
2908 static unsigned long int ulongval () { return $2; }
2915 FILE *f = fopen ("conftest.val", "w");
2920 long int i = longval ();
2923 fprintf (f, "%ld", i);
2927 unsigned long int i = ulongval ();
2930 fprintf (f, "%lu", i);
2932 /* Do not output a trailing newline, as this causes \r\n confusion
2933 on some platforms. */
2934 return ferror (f) || fclose (f) != 0;
2940 if ac_fn_c_try_run "$LINENO"; then :
2941 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2945 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2946 conftest.$ac_objext conftest.beam conftest.$ac_ext
2950 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2951 as_fn_set_status $ac_retval
2953 } # ac_fn_c_compute_int
2955 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2956 # ---------------------------------------------
2957 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2959 ac_fn_c_check_decl ()
2961 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2962 as_decl_name=`echo $2|sed 's/ *(.*//'`
2963 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2965 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2966 if eval \${$3+:} false; then :
2967 $as_echo_n "(cached) " >&6
2969 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2970 /* end confdefs.h. */
2975 #ifndef $as_decl_name
2977 (void) $as_decl_use;
2979 (void) $as_decl_name;
2987 if ac_fn_c_try_compile "$LINENO"; then :
2992 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2996 $as_echo "$ac_res" >&6; }
2997 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2999 } # ac_fn_c_check_decl
3001 # ac_fn_cxx_try_run LINENO
3002 # ------------------------
3003 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
3004 # that executables *can* be run.
3005 ac_fn_cxx_try_run ()
3007 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
3008 if { { ac_try="$ac_link"
3010 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3011 *) ac_try_echo=$ac_try;;
3013 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3014 $as_echo "$ac_try_echo"; } >&5
3015 (eval "$ac_link") 2>&5
3017 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3018 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
3019 { { case "(($ac_try" in
3020 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3021 *) ac_try_echo=$ac_try;;
3023 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3024 $as_echo "$ac_try_echo"; } >&5
3025 (eval "$ac_try") 2>&5
3027 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3028 test $ac_status = 0; }; }; then :
3031 $as_echo "$as_me: program exited with status $ac_status" >&5
3032 $as_echo "$as_me: failed program was:" >&5
3033 sed 's/^/| /' conftest.$ac_ext >&5
3035 ac_retval=$ac_status
3037 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
3038 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
3039 as_fn_set_status $ac_retval
3041 } # ac_fn_cxx_try_run
3043 # ac_fn_cxx_try_link LINENO
3044 # -------------------------
3045 # Try to link conftest.$ac_ext, and return whether this succeeded.
3046 ac_fn_cxx_try_link ()
3048 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
3049 rm -f conftest.$ac_objext conftest$ac_exeext
3050 if { { ac_try="$ac_link"
3052 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3053 *) ac_try_echo=$ac_try;;
3055 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3056 $as_echo "$ac_try_echo"; } >&5
3057 (eval "$ac_link") 2>conftest.err
3059 if test -s conftest.err; then
3060 grep -v '^ *+' conftest.err >conftest.er1
3061 cat conftest.er1 >&5
3062 mv -f conftest.er1 conftest.err
3064 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3065 test $ac_status = 0; } && {
3066 test -z "$ac_cxx_werror_flag" ||
3067 test ! -s conftest.err
3068 } && test -s conftest$ac_exeext && {
3069 test "$cross_compiling" = yes ||
3070 test -x conftest$ac_exeext
3074 $as_echo "$as_me: failed program was:" >&5
3075 sed 's/^/| /' conftest.$ac_ext >&5
3079 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
3080 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
3081 # interfere with the next link command; also delete a directory that is
3082 # left behind by Apple's compiler. We do this before executing the actions.
3083 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
3084 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
3085 as_fn_set_status $ac_retval
3087 } # ac_fn_cxx_try_link
3089 # ac_fn_cxx_try_cpp LINENO
3090 # ------------------------
3091 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
3092 ac_fn_cxx_try_cpp ()
3094 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
3095 if { { ac_try="$ac_cpp conftest.$ac_ext"
3097 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3098 *) ac_try_echo=$ac_try;;
3100 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3101 $as_echo "$ac_try_echo"; } >&5
3102 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
3104 if test -s conftest.err; then
3105 grep -v '^ *+' conftest.err >conftest.er1
3106 cat conftest.er1 >&5
3107 mv -f conftest.er1 conftest.err
3109 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3110 test $ac_status = 0; } > conftest.i && {
3111 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
3112 test ! -s conftest.err
3116 $as_echo "$as_me: failed program was:" >&5
3117 sed 's/^/| /' conftest.$ac_ext >&5
3121 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
3122 as_fn_set_status $ac_retval
3124 } # ac_fn_cxx_try_cpp
3125 cat >config.log <<_ACEOF
3126 This file contains any messages produced by compilers while
3127 running configure, to aid debugging if configure makes a mistake.
3129 It was created by GNU Troff $as_me 1.22.4, which was
3130 generated by GNU Autoconf 2.69. Invocation command line was
3142 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
3143 uname -m = `(uname -m) 2>/dev/null || echo unknown`
3144 uname -r = `(uname -r) 2>/dev/null || echo unknown`
3145 uname -s = `(uname -s) 2>/dev/null || echo unknown`
3146 uname -v = `(uname -v) 2>/dev/null || echo unknown`
3148 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
3149 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
3151 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
3152 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
3153 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
3154 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
3155 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
3156 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
3157 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
3161 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3165 test -z "$as_dir" && as_dir=.
3166 $as_echo "PATH: $as_dir"
3182 # Keep a trace of the command line.
3183 # Strip out --no-create and --no-recursion so they do not pile up.
3184 # Strip out --silent because we don't want to record it for future runs.
3185 # Also quote any args containing shell meta-characters.
3186 # Make two passes to allow for proper duplicate-argument suppression.
3190 ac_must_keep_next=false
3196 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
3197 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
3198 | -silent | --silent | --silen | --sile | --sil)
3201 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
3204 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
3206 as_fn_append ac_configure_args1 " '$ac_arg'"
3207 if test $ac_must_keep_next = true; then
3208 ac_must_keep_next=false # Got value, back to normal.
3211 *=* | --config-cache | -C | -disable-* | --disable-* \
3212 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
3213 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
3214 | -with-* | --with-* | -without-* | --without-* | --x)
3215 case "$ac_configure_args0 " in
3216 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
3219 -* ) ac_must_keep_next=true ;;
3222 as_fn_append ac_configure_args " '$ac_arg'"
3227 { ac_configure_args0=; unset ac_configure_args0;}
3228 { ac_configure_args1=; unset ac_configure_args1;}
3230 # When interrupted or exit'd, cleanup temporary files, and complete
3231 # config.log. We remove comments because anyway the quotes in there
3232 # would cause problems or look ugly.
3233 # WARNING: Use '\'' to represent an apostrophe within the trap.
3234 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
3235 trap 'exit_status=$?
3236 # Save into config.log some information that might help in debugging.
3240 $as_echo "## ---------------- ##
3241 ## Cache variables. ##
3242 ## ---------------- ##"
3244 # The following way of writing the cache mishandles newlines in values,
3246 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
3247 eval ac_val=\$$ac_var
3251 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
3252 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
3255 _ | IFS | as_nl) ;; #(
3256 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
3257 *) { eval $ac_var=; unset $ac_var;} ;;
3262 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
3263 *${as_nl}ac_space=\ *)
3265 "s/'\''/'\''\\\\'\'''\''/g;
3266 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
3269 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
3276 $as_echo "## ----------------- ##
3277 ## Output variables. ##
3278 ## ----------------- ##"
3280 for ac_var in $ac_subst_vars
3282 eval ac_val=\$$ac_var
3284 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3286 $as_echo "$ac_var='\''$ac_val'\''"
3290 if test -n "$ac_subst_files"; then
3291 $as_echo "## ------------------- ##
3292 ## File substitutions. ##
3293 ## ------------------- ##"
3295 for ac_var in $ac_subst_files
3297 eval ac_val=\$$ac_var
3299 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3301 $as_echo "$ac_var='\''$ac_val'\''"
3306 if test -s confdefs.h; then
3307 $as_echo "## ----------- ##
3314 test "$ac_signal" != 0 &&
3315 $as_echo "$as_me: caught signal $ac_signal"
3316 $as_echo "$as_me: exit $exit_status"
3318 rm -f core *.core core.conftest.* &&
3319 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
3322 for ac_signal in 1 2 13 15; do
3323 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
3327 # confdefs.h avoids OS command line length limits that DEFS can exceed.
3328 rm -f -r conftest* confdefs.h
3330 $as_echo "/* confdefs.h */" > confdefs.h
3332 # Predefined preprocessor variables.
3334 cat >>confdefs.h <<_ACEOF
3335 #define PACKAGE_NAME "$PACKAGE_NAME"
3338 cat >>confdefs.h <<_ACEOF
3339 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
3342 cat >>confdefs.h <<_ACEOF
3343 #define PACKAGE_VERSION "$PACKAGE_VERSION"
3346 cat >>confdefs.h <<_ACEOF
3347 #define PACKAGE_STRING "$PACKAGE_STRING"
3350 cat >>confdefs.h <<_ACEOF
3351 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
3354 cat >>confdefs.h <<_ACEOF
3355 #define PACKAGE_URL "$PACKAGE_URL"
3359 # Let the site file select an alternate cache file if it wants to.
3360 # Prefer an explicitly selected file to automatically selected ones.
3363 if test -n "$CONFIG_SITE"; then
3364 # We do not want a PATH search for config.site.
3365 case $CONFIG_SITE in #((
3366 -*) ac_site_file1=./$CONFIG_SITE;;
3367 */*) ac_site_file1=$CONFIG_SITE;;
3368 *) ac_site_file1=./$CONFIG_SITE;;
3370 elif test "x$prefix" != xNONE; then
3371 ac_site_file1=$prefix/share/config.site
3372 ac_site_file2=$prefix/etc/config.site
3374 ac_site_file1=$ac_default_prefix/share/config.site
3375 ac_site_file2=$ac_default_prefix/etc/config.site
3377 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
3379 test "x$ac_site_file" = xNONE && continue
3380 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
3381 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
3382 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
3383 sed 's/^/| /' "$ac_site_file" >&5
3385 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3386 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3387 as_fn_error $? "failed to load site script $ac_site_file
3388 See \`config.log' for more details" "$LINENO" 5; }
3392 if test -r "$cache_file"; then
3393 # Some versions of bash will fail to source /dev/null (special files
3394 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
3395 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
3396 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
3397 $as_echo "$as_me: loading cache $cache_file" >&6;}
3399 [\\/]* | ?:[\\/]* ) . "$cache_file";;
3400 *) . "./$cache_file";;
3404 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
3405 $as_echo "$as_me: creating cache $cache_file" >&6;}
3409 as_fn_append ac_func_list " vasnprintf"
3410 as_fn_append ac_header_list " features.h"
3411 as_fn_append ac_func_list " snprintf"
3412 as_fn_append ac_func_list " __fseterr"
3413 as_fn_append ac_header_list " limits.h"
3414 as_fn_append ac_header_list " unistd.h"
3415 as_fn_append ac_func_list " symlink"
3416 as_fn_append ac_header_list " math.h"
3417 as_fn_append ac_header_list " sys/mman.h"
3418 as_fn_append ac_func_list " mprotect"
3420 as_fn_append ac_header_list " wchar.h"
3421 as_fn_append ac_header_list " stdint.h"
3422 as_fn_append ac_header_list " crtdefs.h"
3423 as_fn_append ac_func_list " iswcntrl"
3424 as_fn_append ac_header_list " wctype.h"
3425 as_fn_append ac_func_list " wcwidth"
3426 as_fn_append ac_header_list " stdlib.h"
3427 as_fn_append ac_header_list " sys/param.h"
3428 # Check that the precious variables saved in the cache have kept the same
3430 ac_cache_corrupted=false
3431 for ac_var in $ac_precious_vars; do
3432 eval ac_old_set=\$ac_cv_env_${ac_var}_set
3433 eval ac_new_set=\$ac_env_${ac_var}_set
3434 eval ac_old_val=\$ac_cv_env_${ac_var}_value
3435 eval ac_new_val=\$ac_env_${ac_var}_value
3436 case $ac_old_set,$ac_new_set in
3438 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3439 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3440 ac_cache_corrupted=: ;;
3442 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3443 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3444 ac_cache_corrupted=: ;;
3447 if test "x$ac_old_val" != "x$ac_new_val"; then
3448 # differences in whitespace do not lead to failure.
3449 ac_old_val_w=`echo x $ac_old_val`
3450 ac_new_val_w=`echo x $ac_new_val`
3451 if test "$ac_old_val_w" != "$ac_new_val_w"; then
3452 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3453 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3454 ac_cache_corrupted=:
3456 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3457 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3458 eval $ac_var=\$ac_old_val
3460 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
3461 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
3462 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
3463 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
3466 # Pass precious variables to config.status.
3467 if test "$ac_new_set" = set; then
3469 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3470 *) ac_arg=$ac_var=$ac_new_val ;;
3472 case " $ac_configure_args " in
3473 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
3474 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3478 if $ac_cache_corrupted; then
3479 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3480 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3481 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3482 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3483 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3485 ## -------------------- ##
3486 ## Main body of script. ##
3487 ## -------------------- ##
3490 ac_cpp='$CPP $CPPFLAGS'
3491 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3492 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3493 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3499 # SHORT_VERSION contains only the number of REVISION before the first '.',
3500 # e.g. if REVISION is '3.real.434-5aafd' then SHORT_VERSION is 'x.yy.3',
3501 # where x and yy are MAJOR_VERSION and MINOR_VERSION, respectively.
3502 SHORT_VERSION=1.22.4
3505 # Directories where the helper scripts should be found. This must be consistent
3506 # with the variable build_aux in bootstrap.conf
3508 for ac_dir in build-aux "$srcdir"/build-aux; do
3509 if test -f "$ac_dir/install-sh"; then
3511 ac_install_sh="$ac_aux_dir/install-sh -c"
3513 elif test -f "$ac_dir/install.sh"; then
3515 ac_install_sh="$ac_aux_dir/install.sh -c"
3517 elif test -f "$ac_dir/shtool"; then
3519 ac_install_sh="$ac_aux_dir/shtool install -c"
3523 if test -z "$ac_aux_dir"; then
3524 as_fn_error $? "cannot find install-sh, install.sh, or shtool in build-aux \"$srcdir\"/build-aux" "$LINENO" 5
3527 # These three variables are undocumented and unsupported,
3528 # and are intended to be withdrawn in a future Autoconf release.
3529 # They can cause serious problems if a builder's source tree is in a directory
3530 # whose full name contains unusual characters.
3531 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3532 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3533 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3537 ac_config_headers="$ac_config_headers src/include/config.h:src/include/config.hin"
3541 # Expand $ac_aux_dir to an absolute path.
3542 am_aux_dir=`cd "$ac_aux_dir" && pwd`
3545 ac_cpp='$CPP $CPPFLAGS'
3546 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3547 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3548 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3549 if test -n "$ac_tool_prefix"; then
3550 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3551 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3553 $as_echo_n "checking for $ac_word... " >&6; }
3554 if ${ac_cv_prog_CC+:} false; then :
3555 $as_echo_n "(cached) " >&6
3557 if test -n "$CC"; then
3558 ac_cv_prog_CC="$CC" # Let the user override the test.
3560 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3564 test -z "$as_dir" && as_dir=.
3565 for ac_exec_ext in '' $ac_executable_extensions; do
3566 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3567 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3568 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3578 if test -n "$CC"; then
3579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3580 $as_echo "$CC" >&6; }
3582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3583 $as_echo "no" >&6; }
3588 if test -z "$ac_cv_prog_CC"; then
3590 # Extract the first word of "gcc", so it can be a program name with args.
3591 set dummy gcc; ac_word=$2
3592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3593 $as_echo_n "checking for $ac_word... " >&6; }
3594 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3595 $as_echo_n "(cached) " >&6
3597 if test -n "$ac_ct_CC"; then
3598 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3600 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3604 test -z "$as_dir" && as_dir=.
3605 for ac_exec_ext in '' $ac_executable_extensions; do
3606 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3607 ac_cv_prog_ac_ct_CC="gcc"
3608 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3617 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3618 if test -n "$ac_ct_CC"; then
3619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3620 $as_echo "$ac_ct_CC" >&6; }
3622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3623 $as_echo "no" >&6; }
3626 if test "x$ac_ct_CC" = x; then
3629 case $cross_compiling:$ac_tool_warned in
3631 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3632 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3633 ac_tool_warned=yes ;;
3641 if test -z "$CC"; then
3642 if test -n "$ac_tool_prefix"; then
3643 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3644 set dummy ${ac_tool_prefix}cc; ac_word=$2
3645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3646 $as_echo_n "checking for $ac_word... " >&6; }
3647 if ${ac_cv_prog_CC+:} false; then :
3648 $as_echo_n "(cached) " >&6
3650 if test -n "$CC"; then
3651 ac_cv_prog_CC="$CC" # Let the user override the test.
3653 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3657 test -z "$as_dir" && as_dir=.
3658 for ac_exec_ext in '' $ac_executable_extensions; do
3659 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3660 ac_cv_prog_CC="${ac_tool_prefix}cc"
3661 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3671 if test -n "$CC"; then
3672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3673 $as_echo "$CC" >&6; }
3675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3676 $as_echo "no" >&6; }
3682 if test -z "$CC"; then
3683 # Extract the first word of "cc", so it can be a program name with args.
3684 set dummy cc; ac_word=$2
3685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3686 $as_echo_n "checking for $ac_word... " >&6; }
3687 if ${ac_cv_prog_CC+:} false; then :
3688 $as_echo_n "(cached) " >&6
3690 if test -n "$CC"; then
3691 ac_cv_prog_CC="$CC" # Let the user override the test.
3694 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3698 test -z "$as_dir" && as_dir=.
3699 for ac_exec_ext in '' $ac_executable_extensions; do
3700 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3701 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3702 ac_prog_rejected=yes
3706 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3713 if test $ac_prog_rejected = yes; then
3714 # We found a bogon in the path, so make sure we never use it.
3715 set dummy $ac_cv_prog_CC
3717 if test $# != 0; then
3718 # We chose a different compiler from the bogus one.
3719 # However, it has the same basename, so the bogon will be chosen
3720 # first if we set CC to just the basename; use the full file name.
3722 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3728 if test -n "$CC"; then
3729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3730 $as_echo "$CC" >&6; }
3732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3733 $as_echo "no" >&6; }
3738 if test -z "$CC"; then
3739 if test -n "$ac_tool_prefix"; then
3740 for ac_prog in cl.exe
3742 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3743 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3745 $as_echo_n "checking for $ac_word... " >&6; }
3746 if ${ac_cv_prog_CC+:} false; then :
3747 $as_echo_n "(cached) " >&6
3749 if test -n "$CC"; then
3750 ac_cv_prog_CC="$CC" # Let the user override the test.
3752 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3756 test -z "$as_dir" && as_dir=.
3757 for ac_exec_ext in '' $ac_executable_extensions; do
3758 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3759 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3760 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3770 if test -n "$CC"; then
3771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3772 $as_echo "$CC" >&6; }
3774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3775 $as_echo "no" >&6; }
3779 test -n "$CC" && break
3782 if test -z "$CC"; then
3784 for ac_prog in cl.exe
3786 # Extract the first word of "$ac_prog", so it can be a program name with args.
3787 set dummy $ac_prog; ac_word=$2
3788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3789 $as_echo_n "checking for $ac_word... " >&6; }
3790 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3791 $as_echo_n "(cached) " >&6
3793 if test -n "$ac_ct_CC"; then
3794 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3796 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3800 test -z "$as_dir" && as_dir=.
3801 for ac_exec_ext in '' $ac_executable_extensions; do
3802 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3803 ac_cv_prog_ac_ct_CC="$ac_prog"
3804 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3813 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3814 if test -n "$ac_ct_CC"; then
3815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3816 $as_echo "$ac_ct_CC" >&6; }
3818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3819 $as_echo "no" >&6; }
3823 test -n "$ac_ct_CC" && break
3826 if test "x$ac_ct_CC" = x; then
3829 case $cross_compiling:$ac_tool_warned in
3831 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3832 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3833 ac_tool_warned=yes ;;
3842 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3843 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3844 as_fn_error $? "no acceptable C compiler found in \$PATH
3845 See \`config.log' for more details" "$LINENO" 5; }
3847 # Provide some information about the compiler.
3848 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3851 for ac_option in --version -v -V -qversion; do
3852 { { ac_try="$ac_compiler $ac_option >&5"
3854 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3855 *) ac_try_echo=$ac_try;;
3857 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3858 $as_echo "$ac_try_echo"; } >&5
3859 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3861 if test -s conftest.err; then
3863 ... rest of stderr output deleted ...
3864 10q' conftest.err >conftest.er1
3865 cat conftest.er1 >&5
3867 rm -f conftest.er1 conftest.err
3868 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3869 test $ac_status = 0; }
3872 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3873 /* end confdefs.h. */
3883 ac_clean_files_save=$ac_clean_files
3884 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3885 # Try to create an executable without -o first, disregard a.out.
3886 # It will help us diagnose broken compilers, and finding out an intuition
3888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3889 $as_echo_n "checking whether the C compiler works... " >&6; }
3890 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3892 # The possible output files:
3893 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3896 for ac_file in $ac_files
3899 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3900 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3905 if { { ac_try="$ac_link_default"
3907 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3908 *) ac_try_echo=$ac_try;;
3910 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3911 $as_echo "$ac_try_echo"; } >&5
3912 (eval "$ac_link_default") 2>&5
3914 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3915 test $ac_status = 0; }; then :
3916 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3917 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3918 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3919 # so that the user can short-circuit this test for compilers unknown to
3921 for ac_file in $ac_files ''
3923 test -f "$ac_file" || continue
3925 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3928 # We found the default executable, but exeext='' is most
3932 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3934 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3936 # We set ac_cv_exeext here because the later test for it is not
3937 # safe: cross compilers may not add the suffix if given an `-o'
3938 # argument, so we may need to know it at that point already.
3939 # Even if this section looks crufty: it has the advantage of
3946 test "$ac_cv_exeext" = no && ac_cv_exeext=
3951 if test -z "$ac_file"; then :
3952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3953 $as_echo "no" >&6; }
3954 $as_echo "$as_me: failed program was:" >&5
3955 sed 's/^/| /' conftest.$ac_ext >&5
3957 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3958 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3959 as_fn_error 77 "C compiler cannot create executables
3960 See \`config.log' for more details" "$LINENO" 5; }
3962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3963 $as_echo "yes" >&6; }
3965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3966 $as_echo_n "checking for C compiler default output file name... " >&6; }
3967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3968 $as_echo "$ac_file" >&6; }
3969 ac_exeext=$ac_cv_exeext
3971 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3972 ac_clean_files=$ac_clean_files_save
3973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3974 $as_echo_n "checking for suffix of executables... " >&6; }
3975 if { { ac_try="$ac_link"
3977 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3978 *) ac_try_echo=$ac_try;;
3980 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3981 $as_echo "$ac_try_echo"; } >&5
3982 (eval "$ac_link") 2>&5
3984 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3985 test $ac_status = 0; }; then :
3986 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3987 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3988 # work properly (i.e., refer to `conftest.exe'), while it won't with
3990 for ac_file in conftest.exe conftest conftest.*; do
3991 test -f "$ac_file" || continue
3993 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3994 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4000 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4001 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4002 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4003 See \`config.log' for more details" "$LINENO" 5; }
4005 rm -f conftest conftest$ac_cv_exeext
4006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4007 $as_echo "$ac_cv_exeext" >&6; }
4009 rm -f conftest.$ac_ext
4010 EXEEXT=$ac_cv_exeext
4012 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4013 /* end confdefs.h. */
4018 FILE *f = fopen ("conftest.out", "w");
4019 return ferror (f) || fclose (f) != 0;
4025 ac_clean_files="$ac_clean_files conftest.out"
4026 # Check that the compiler produces executables we can run. If not, either
4027 # the compiler is broken, or we cross compile.
4028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4029 $as_echo_n "checking whether we are cross compiling... " >&6; }
4030 if test "$cross_compiling" != yes; then
4031 { { ac_try="$ac_link"
4033 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4034 *) ac_try_echo=$ac_try;;
4036 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4037 $as_echo "$ac_try_echo"; } >&5
4038 (eval "$ac_link") 2>&5
4040 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4041 test $ac_status = 0; }
4042 if { ac_try='./conftest$ac_cv_exeext'
4043 { { case "(($ac_try" in
4044 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4045 *) ac_try_echo=$ac_try;;
4047 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4048 $as_echo "$ac_try_echo"; } >&5
4049 (eval "$ac_try") 2>&5
4051 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4052 test $ac_status = 0; }; }; then
4055 if test "$cross_compiling" = maybe; then
4058 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4059 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4060 as_fn_error $? "cannot run C compiled programs.
4061 If you meant to cross compile, use \`--host'.
4062 See \`config.log' for more details" "$LINENO" 5; }
4066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4067 $as_echo "$cross_compiling" >&6; }
4069 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4070 ac_clean_files=$ac_clean_files_save
4071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4072 $as_echo_n "checking for suffix of object files... " >&6; }
4073 if ${ac_cv_objext+:} false; then :
4074 $as_echo_n "(cached) " >&6
4076 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4077 /* end confdefs.h. */
4087 rm -f conftest.o conftest.obj
4088 if { { ac_try="$ac_compile"
4090 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4091 *) ac_try_echo=$ac_try;;
4093 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4094 $as_echo "$ac_try_echo"; } >&5
4095 (eval "$ac_compile") 2>&5
4097 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4098 test $ac_status = 0; }; then :
4099 for ac_file in conftest.o conftest.obj conftest.*; do
4100 test -f "$ac_file" || continue;
4102 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4103 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4108 $as_echo "$as_me: failed program was:" >&5
4109 sed 's/^/| /' conftest.$ac_ext >&5
4111 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4112 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4113 as_fn_error $? "cannot compute suffix of object files: cannot compile
4114 See \`config.log' for more details" "$LINENO" 5; }
4116 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4119 $as_echo "$ac_cv_objext" >&6; }
4120 OBJEXT=$ac_cv_objext
4122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4123 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4124 if ${ac_cv_c_compiler_gnu+:} false; then :
4125 $as_echo_n "(cached) " >&6
4127 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4128 /* end confdefs.h. */
4141 if ac_fn_c_try_compile "$LINENO"; then :
4146 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4147 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4151 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4152 if test $ac_compiler_gnu = yes; then
4157 ac_test_CFLAGS=${CFLAGS+set}
4158 ac_save_CFLAGS=$CFLAGS
4159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4160 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4161 if ${ac_cv_prog_cc_g+:} false; then :
4162 $as_echo_n "(cached) " >&6
4164 ac_save_c_werror_flag=$ac_c_werror_flag
4165 ac_c_werror_flag=yes
4168 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4169 /* end confdefs.h. */
4179 if ac_fn_c_try_compile "$LINENO"; then :
4183 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4184 /* end confdefs.h. */
4194 if ac_fn_c_try_compile "$LINENO"; then :
4197 ac_c_werror_flag=$ac_save_c_werror_flag
4199 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4200 /* end confdefs.h. */
4210 if ac_fn_c_try_compile "$LINENO"; then :
4213 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4215 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4217 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4218 ac_c_werror_flag=$ac_save_c_werror_flag
4220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4221 $as_echo "$ac_cv_prog_cc_g" >&6; }
4222 if test "$ac_test_CFLAGS" = set; then
4223 CFLAGS=$ac_save_CFLAGS
4224 elif test $ac_cv_prog_cc_g = yes; then
4225 if test "$GCC" = yes; then
4231 if test "$GCC" = yes; then
4237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4238 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4239 if ${ac_cv_prog_cc_c89+:} false; then :
4240 $as_echo_n "(cached) " >&6
4242 ac_cv_prog_cc_c89=no
4244 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4245 /* end confdefs.h. */
4249 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4250 struct buf { int x; };
4251 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4252 static char *e (p, i)
4258 static char *f (char * (*g) (char **, int), char **p, ...)
4263 s = g (p, va_arg (v,int));
4268 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4269 function prototypes and stuff, but not '\xHH' hex character constants.
4270 These don't provoke an error unfortunately, instead are silently treated
4271 as 'x'. The following induces an error, until -std is added to get
4272 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4273 array size at least. It's necessary to write '\x00'==0 to get something
4274 that's true only with -std. */
4275 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4277 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4278 inside strings and character constants. */
4280 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4282 int test (int i, double x);
4283 struct s1 {int (*f) (int a);};
4284 struct s2 {int (*f) (double a);};
4285 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4291 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4296 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4297 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4299 CC="$ac_save_CC $ac_arg"
4300 if ac_fn_c_try_compile "$LINENO"; then :
4301 ac_cv_prog_cc_c89=$ac_arg
4303 rm -f core conftest.err conftest.$ac_objext
4304 test "x$ac_cv_prog_cc_c89" != "xno" && break
4306 rm -f conftest.$ac_ext
4311 case "x$ac_cv_prog_cc_c89" in
4313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4314 $as_echo "none needed" >&6; } ;;
4316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4317 $as_echo "unsupported" >&6; } ;;
4319 CC="$CC $ac_cv_prog_cc_c89"
4320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4321 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4323 if test "x$ac_cv_prog_cc_c89" != xno; then :
4328 ac_cpp='$CPP $CPPFLAGS'
4329 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4330 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4331 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4334 ac_cpp='$CPP $CPPFLAGS'
4335 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4336 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4337 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4339 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4340 if ${am_cv_prog_cc_c_o+:} false; then :
4341 $as_echo_n "(cached) " >&6
4343 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4344 /* end confdefs.h. */
4354 # Make sure it works both with $CC and with simple cc.
4355 # Following AC_PROG_CC_C_O, we do the test twice because some
4356 # compilers refuse to overwrite an existing .o file with -o,
4357 # though they will create one.
4358 am_cv_prog_cc_c_o=yes
4360 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4361 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4364 (exit $ac_status); } \
4365 && test -f conftest2.$ac_objext; then
4368 am_cv_prog_cc_c_o=no
4372 rm -f core conftest*
4375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4376 $as_echo "$am_cv_prog_cc_c_o" >&6; }
4377 if test "$am_cv_prog_cc_c_o" != yes; then
4378 # Losing compiler, so override with the script.
4379 # FIXME: It is wrong to rewrite CC.
4380 # But if we don't then we get into trouble of one sort or another.
4381 # A longer-term fix would be to have automake use am__CC in this case,
4382 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4383 CC="$am_aux_dir/compile $CC"
4386 ac_cpp='$CPP $CPPFLAGS'
4387 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4388 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4389 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4394 ac_cpp='$CPP $CPPFLAGS'
4395 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4396 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4397 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4399 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4400 # On Suns, sometimes $CPP names a directory.
4401 if test -n "$CPP" && test -d "$CPP"; then
4404 if test -z "$CPP"; then
4405 if ${ac_cv_prog_CPP+:} false; then :
4406 $as_echo_n "(cached) " >&6
4408 # Double quotes because CPP needs to be expanded
4409 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4412 for ac_c_preproc_warn_flag in '' yes
4414 # Use a header file that comes with gcc, so configuring glibc
4415 # with a fresh cross-compiler works.
4416 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4417 # <limits.h> exists even on freestanding compilers.
4418 # On the NeXT, cc -E runs the code through the compiler's parser,
4419 # not just through cpp. "Syntax error" is here to catch this case.
4420 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4421 /* end confdefs.h. */
4423 # include <limits.h>
4425 # include <assert.h>
4429 if ac_fn_c_try_cpp "$LINENO"; then :
4432 # Broken: fails on valid input.
4435 rm -f conftest.err conftest.i conftest.$ac_ext
4437 # OK, works on sane cases. Now check whether nonexistent headers
4438 # can be detected and how.
4439 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4440 /* end confdefs.h. */
4441 #include <ac_nonexistent.h>
4443 if ac_fn_c_try_cpp "$LINENO"; then :
4444 # Broken: success on invalid input.
4447 # Passes both tests.
4451 rm -f conftest.err conftest.i conftest.$ac_ext
4454 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4455 rm -f conftest.i conftest.err conftest.$ac_ext
4456 if $ac_preproc_ok; then :
4468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4469 $as_echo "$CPP" >&6; }
4471 for ac_c_preproc_warn_flag in '' yes
4473 # Use a header file that comes with gcc, so configuring glibc
4474 # with a fresh cross-compiler works.
4475 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4476 # <limits.h> exists even on freestanding compilers.
4477 # On the NeXT, cc -E runs the code through the compiler's parser,
4478 # not just through cpp. "Syntax error" is here to catch this case.
4479 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4480 /* end confdefs.h. */
4482 # include <limits.h>
4484 # include <assert.h>
4488 if ac_fn_c_try_cpp "$LINENO"; then :
4491 # Broken: fails on valid input.
4494 rm -f conftest.err conftest.i conftest.$ac_ext
4496 # OK, works on sane cases. Now check whether nonexistent headers
4497 # can be detected and how.
4498 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4499 /* end confdefs.h. */
4500 #include <ac_nonexistent.h>
4502 if ac_fn_c_try_cpp "$LINENO"; then :
4503 # Broken: success on invalid input.
4506 # Passes both tests.
4510 rm -f conftest.err conftest.i conftest.$ac_ext
4513 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4514 rm -f conftest.i conftest.err conftest.$ac_ext
4515 if $ac_preproc_ok; then :
4518 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4519 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4520 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4521 See \`config.log' for more details" "$LINENO" 5; }
4525 ac_cpp='$CPP $CPPFLAGS'
4526 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4527 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4528 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4532 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4533 if ${ac_cv_path_GREP+:} false; then :
4534 $as_echo_n "(cached) " >&6
4536 if test -z "$GREP"; then
4537 ac_path_GREP_found=false
4538 # Loop through the user's path and test for each of PROGNAME-LIST
4539 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4540 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4543 test -z "$as_dir" && as_dir=.
4544 for ac_prog in grep ggrep; do
4545 for ac_exec_ext in '' $ac_executable_extensions; do
4546 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4547 as_fn_executable_p "$ac_path_GREP" || continue
4548 # Check for GNU ac_path_GREP and select it if it is found.
4549 # Check for GNU $ac_path_GREP
4550 case `"$ac_path_GREP" --version 2>&1` in
4552 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4555 $as_echo_n 0123456789 >"conftest.in"
4558 cat "conftest.in" "conftest.in" >"conftest.tmp"
4559 mv "conftest.tmp" "conftest.in"
4560 cp "conftest.in" "conftest.nl"
4561 $as_echo 'GREP' >> "conftest.nl"
4562 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4563 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4564 as_fn_arith $ac_count + 1 && ac_count=$as_val
4565 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4566 # Best one so far, save it but keep looking for a better one
4567 ac_cv_path_GREP="$ac_path_GREP"
4568 ac_path_GREP_max=$ac_count
4570 # 10*(2^10) chars as input seems more than enough
4571 test $ac_count -gt 10 && break
4573 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4576 $ac_path_GREP_found && break 3
4581 if test -z "$ac_cv_path_GREP"; then
4582 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4585 ac_cv_path_GREP=$GREP
4589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4590 $as_echo "$ac_cv_path_GREP" >&6; }
4591 GREP="$ac_cv_path_GREP"
4594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4595 $as_echo_n "checking for egrep... " >&6; }
4596 if ${ac_cv_path_EGREP+:} false; then :
4597 $as_echo_n "(cached) " >&6
4599 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4600 then ac_cv_path_EGREP="$GREP -E"
4602 if test -z "$EGREP"; then
4603 ac_path_EGREP_found=false
4604 # Loop through the user's path and test for each of PROGNAME-LIST
4605 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4606 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4609 test -z "$as_dir" && as_dir=.
4610 for ac_prog in egrep; do
4611 for ac_exec_ext in '' $ac_executable_extensions; do
4612 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4613 as_fn_executable_p "$ac_path_EGREP" || continue
4614 # Check for GNU ac_path_EGREP and select it if it is found.
4615 # Check for GNU $ac_path_EGREP
4616 case `"$ac_path_EGREP" --version 2>&1` in
4618 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4621 $as_echo_n 0123456789 >"conftest.in"
4624 cat "conftest.in" "conftest.in" >"conftest.tmp"
4625 mv "conftest.tmp" "conftest.in"
4626 cp "conftest.in" "conftest.nl"
4627 $as_echo 'EGREP' >> "conftest.nl"
4628 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4629 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4630 as_fn_arith $ac_count + 1 && ac_count=$as_val
4631 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4632 # Best one so far, save it but keep looking for a better one
4633 ac_cv_path_EGREP="$ac_path_EGREP"
4634 ac_path_EGREP_max=$ac_count
4636 # 10*(2^10) chars as input seems more than enough
4637 test $ac_count -gt 10 && break
4639 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4642 $ac_path_EGREP_found && break 3
4647 if test -z "$ac_cv_path_EGREP"; then
4648 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4651 ac_cv_path_EGREP=$EGREP
4656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4657 $as_echo "$ac_cv_path_EGREP" >&6; }
4658 EGREP="$ac_cv_path_EGREP"
4661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4662 $as_echo_n "checking for ANSI C header files... " >&6; }
4663 if ${ac_cv_header_stdc+:} false; then :
4664 $as_echo_n "(cached) " >&6
4666 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4667 /* end confdefs.h. */
4681 if ac_fn_c_try_compile "$LINENO"; then :
4682 ac_cv_header_stdc=yes
4684 ac_cv_header_stdc=no
4686 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4688 if test $ac_cv_header_stdc = yes; then
4689 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4690 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4691 /* end confdefs.h. */
4695 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4696 $EGREP "memchr" >/dev/null 2>&1; then :
4699 ac_cv_header_stdc=no
4705 if test $ac_cv_header_stdc = yes; then
4706 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4707 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4708 /* end confdefs.h. */
4712 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4713 $EGREP "free" >/dev/null 2>&1; then :
4716 ac_cv_header_stdc=no
4722 if test $ac_cv_header_stdc = yes; then
4723 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4724 if test "$cross_compiling" = yes; then :
4727 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4728 /* end confdefs.h. */
4731 #if ((' ' & 0x0FF) == 0x020)
4732 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4733 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4735 # define ISLOWER(c) \
4736 (('a' <= (c) && (c) <= 'i') \
4737 || ('j' <= (c) && (c) <= 'r') \
4738 || ('s' <= (c) && (c) <= 'z'))
4739 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4742 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4747 for (i = 0; i < 256; i++)
4748 if (XOR (islower (i), ISLOWER (i))
4749 || toupper (i) != TOUPPER (i))
4754 if ac_fn_c_try_run "$LINENO"; then :
4757 ac_cv_header_stdc=no
4759 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4760 conftest.$ac_objext conftest.beam conftest.$ac_ext
4765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4766 $as_echo "$ac_cv_header_stdc" >&6; }
4767 if test $ac_cv_header_stdc = yes; then
4769 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4773 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4774 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4775 inttypes.h stdint.h unistd.h
4777 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4778 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4780 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4781 cat >>confdefs.h <<_ACEOF
4782 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4791 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4792 if test "x$ac_cv_header_minix_config_h" = xyes; then :
4799 if test "$MINIX" = yes; then
4801 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4804 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4807 $as_echo "#define _MINIX 1" >>confdefs.h
4810 $as_echo "#define _NETBSD_SOURCE 1" >>confdefs.h
4815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4816 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4817 if ${ac_cv_safe_to_define___extensions__+:} false; then :
4818 $as_echo_n "(cached) " >&6
4820 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4821 /* end confdefs.h. */
4823 # define __EXTENSIONS__ 1
4824 $ac_includes_default
4833 if ac_fn_c_try_compile "$LINENO"; then :
4834 ac_cv_safe_to_define___extensions__=yes
4836 ac_cv_safe_to_define___extensions__=no
4838 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4841 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4842 test $ac_cv_safe_to_define___extensions__ = yes &&
4843 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4845 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4847 $as_echo "#define _DARWIN_C_SOURCE 1" >>confdefs.h
4849 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4851 $as_echo "#define _NETBSD_SOURCE 1" >>confdefs.h
4853 $as_echo "#define _OPENBSD_SOURCE 1" >>confdefs.h
4855 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4857 $as_echo "#define __STDC_WANT_IEC_60559_ATTRIBS_EXT__ 1" >>confdefs.h
4859 $as_echo "#define __STDC_WANT_IEC_60559_BFP_EXT__ 1" >>confdefs.h
4861 $as_echo "#define __STDC_WANT_IEC_60559_DFP_EXT__ 1" >>confdefs.h
4863 $as_echo "#define __STDC_WANT_IEC_60559_FUNCS_EXT__ 1" >>confdefs.h
4865 $as_echo "#define __STDC_WANT_IEC_60559_TYPES_EXT__ 1" >>confdefs.h
4867 $as_echo "#define __STDC_WANT_LIB_EXT2__ 1" >>confdefs.h
4869 $as_echo "#define __STDC_WANT_MATH_SPEC_FUNCS__ 1" >>confdefs.h
4871 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether _XOPEN_SOURCE should be defined" >&5
4874 $as_echo_n "checking whether _XOPEN_SOURCE should be defined... " >&6; }
4875 if ${ac_cv_should_define__xopen_source+:} false; then :
4876 $as_echo_n "(cached) " >&6
4878 ac_cv_should_define__xopen_source=no
4879 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4880 /* end confdefs.h. */
4892 if ac_fn_c_try_compile "$LINENO"; then :
4895 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4896 /* end confdefs.h. */
4898 #define _XOPEN_SOURCE 500
4909 if ac_fn_c_try_compile "$LINENO"; then :
4910 ac_cv_should_define__xopen_source=yes
4912 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4914 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_should_define__xopen_source" >&5
4917 $as_echo "$ac_cv_should_define__xopen_source" >&6; }
4918 test $ac_cv_should_define__xopen_source = yes &&
4919 $as_echo "#define _XOPEN_SOURCE 500" >>confdefs.h
4921 $as_echo "#define _HPUX_ALT_XOPEN_SOCKET_API 1" >>confdefs.h
4925 am__api_version='1.16'
4927 # Find a good install program. We prefer a C program (faster),
4928 # so one script is as good as another. But avoid the broken or
4929 # incompatible versions:
4930 # SysV /etc/install, /usr/sbin/install
4931 # SunOS /usr/etc/install
4932 # IRIX /sbin/install
4934 # AmigaOS /C/install, which installs bootblocks on floppy discs
4935 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4936 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4937 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4938 # OS/2's system install, which has a completely different semantic
4939 # ./install, which can be erroneously created by make from ./install.sh.
4940 # Reject install programs that cannot install multiple files.
4941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
4942 $as_echo_n "checking for a BSD-compatible install... " >&6; }
4943 if test -z "$INSTALL"; then
4944 if ${ac_cv_path_install+:} false; then :
4945 $as_echo_n "(cached) " >&6
4947 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4951 test -z "$as_dir" && as_dir=.
4952 # Account for people who put trailing slashes in PATH elements.
4953 case $as_dir/ in #((
4954 ./ | .// | /[cC]/* | \
4955 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4956 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
4959 # OSF1 and SCO ODT 3.0 have their own names for install.
4960 # Don't use installbsd from OSF since it installs stuff as root
4962 for ac_prog in ginstall scoinst install; do
4963 for ac_exec_ext in '' $ac_executable_extensions; do
4964 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
4965 if test $ac_prog = install &&
4966 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4967 # AIX install. It has an incompatible calling convention.
4969 elif test $ac_prog = install &&
4970 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4971 # program-specific install script used by HP pwplus--don't use.
4974 rm -rf conftest.one conftest.two conftest.dir
4975 echo one > conftest.one
4976 echo two > conftest.two
4978 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
4979 test -s conftest.one && test -s conftest.two &&
4980 test -s conftest.dir/conftest.one &&
4981 test -s conftest.dir/conftest.two
4983 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4996 rm -rf conftest.one conftest.two conftest.dir
4999 if test "${ac_cv_path_install+set}" = set; then
5000 INSTALL=$ac_cv_path_install
5002 # As a last resort, use the slow shell script. Don't cache a
5003 # value for INSTALL within a source directory, because that will
5004 # break other packages using the cache if that directory is
5005 # removed, or if the value is a relative name.
5006 INSTALL=$ac_install_sh
5009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
5010 $as_echo "$INSTALL" >&6; }
5012 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5013 # It thinks the first close brace ends the variable substitution.
5014 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
5016 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
5018 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
5021 $as_echo_n "checking whether build environment is sane... " >&6; }
5022 # Reject unsafe characters in $srcdir or the absolute working directory
5023 # name. Accept space and tab only in the latter.
5027 *[\\\"\#\$\&\'\`$am_lf]*)
5028 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
5031 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
5032 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
5035 # Do 'set' in a subshell so we don't clobber the current shell's
5036 # arguments. Must try -L first in case configure is actually a
5037 # symlink; some systems play weird games with the mod time of symlinks
5038 # (eg FreeBSD returns the mod time of the symlink's containing
5042 for am_try in 1 2; do
5043 echo "timestamp, slept: $am_has_slept" > conftest.file
5044 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
5045 if test "$*" = "X"; then
5047 set X `ls -t "$srcdir/configure" conftest.file`
5049 if test "$*" != "X $srcdir/configure conftest.file" \
5050 && test "$*" != "X conftest.file $srcdir/configure"; then
5052 # If neither matched, then we have a broken ls. This can happen
5053 # if, for instance, CONFIG_SHELL is bash and it inherits a
5054 # broken ls alias from the environment. This has actually
5055 # happened. Such a system could not be considered "sane".
5056 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
5057 alias in your environment" "$LINENO" 5
5059 if test "$2" = conftest.file || test $am_try -eq 2; then
5066 test "$2" = conftest.file
5072 as_fn_error $? "newly created file is older than distributed files!
5073 Check your system clock" "$LINENO" 5
5075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5076 $as_echo "yes" >&6; }
5077 # If we didn't sleep, we still need to ensure time stamps of config.status and
5078 # generated files are strictly newer.
5080 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
5087 test "$program_prefix" != NONE &&
5088 program_transform_name="s&^&$program_prefix&;$program_transform_name"
5089 # Use a double $ so make ignores it.
5090 test "$program_suffix" != NONE &&
5091 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
5092 # Double any \ or $.
5093 # By default was `s,x,x', remove it if useless.
5094 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
5095 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
5097 if test x"${MISSING+set}" != xset; then
5100 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
5102 MISSING="\${SHELL} $am_aux_dir/missing" ;;
5105 # Use eval to expand $SHELL
5106 if eval "$MISSING --is-lightweight"; then
5107 am_missing_run="$MISSING "
5110 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
5111 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
5114 if test x"${install_sh+set}" != xset; then
5117 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
5119 install_sh="\${SHELL} $am_aux_dir/install-sh"
5123 # Installed binaries are usually stripped using 'strip' when the user
5124 # run "make install-strip". However 'strip' might not be the right
5125 # tool to use in cross-compilation environments, therefore Automake
5126 # will honor the 'STRIP' environment variable to overrule this program.
5127 if test "$cross_compiling" != no; then
5128 if test -n "$ac_tool_prefix"; then
5129 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5130 set dummy ${ac_tool_prefix}strip; ac_word=$2
5131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5132 $as_echo_n "checking for $ac_word... " >&6; }
5133 if ${ac_cv_prog_STRIP+:} false; then :
5134 $as_echo_n "(cached) " >&6
5136 if test -n "$STRIP"; then
5137 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5139 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5143 test -z "$as_dir" && as_dir=.
5144 for ac_exec_ext in '' $ac_executable_extensions; do
5145 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5146 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5147 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5156 STRIP=$ac_cv_prog_STRIP
5157 if test -n "$STRIP"; then
5158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5159 $as_echo "$STRIP" >&6; }
5161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5162 $as_echo "no" >&6; }
5167 if test -z "$ac_cv_prog_STRIP"; then
5169 # Extract the first word of "strip", so it can be a program name with args.
5170 set dummy strip; ac_word=$2
5171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5172 $as_echo_n "checking for $ac_word... " >&6; }
5173 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
5174 $as_echo_n "(cached) " >&6
5176 if test -n "$ac_ct_STRIP"; then
5177 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5179 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5183 test -z "$as_dir" && as_dir=.
5184 for ac_exec_ext in '' $ac_executable_extensions; do
5185 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5186 ac_cv_prog_ac_ct_STRIP="strip"
5187 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5196 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5197 if test -n "$ac_ct_STRIP"; then
5198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5199 $as_echo "$ac_ct_STRIP" >&6; }
5201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5202 $as_echo "no" >&6; }
5205 if test "x$ac_ct_STRIP" = x; then
5208 case $cross_compiling:$ac_tool_warned in
5210 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5211 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5212 ac_tool_warned=yes ;;
5217 STRIP="$ac_cv_prog_STRIP"
5221 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
5223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
5224 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
5225 if test -z "$MKDIR_P"; then
5226 if ${ac_cv_path_mkdir+:} false; then :
5227 $as_echo_n "(cached) " >&6
5229 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5230 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
5233 test -z "$as_dir" && as_dir=.
5234 for ac_prog in mkdir gmkdir; do
5235 for ac_exec_ext in '' $ac_executable_extensions; do
5236 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
5237 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
5238 'mkdir (GNU coreutils) '* | \
5239 'mkdir (coreutils) '* | \
5240 'mkdir (fileutils) '4.1*)
5241 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
5251 test -d ./--version && rmdir ./--version
5252 if test "${ac_cv_path_mkdir+set}" = set; then
5253 MKDIR_P="$ac_cv_path_mkdir -p"
5255 # As a last resort, use the slow shell script. Don't cache a
5256 # value for MKDIR_P within a source directory, because that will
5257 # break other packages using the cache if that directory is
5258 # removed, or if the value is a relative name.
5259 MKDIR_P="$ac_install_sh -d"
5262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
5263 $as_echo "$MKDIR_P" >&6; }
5265 for ac_prog in gawk mawk nawk awk
5267 # Extract the first word of "$ac_prog", so it can be a program name with args.
5268 set dummy $ac_prog; ac_word=$2
5269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5270 $as_echo_n "checking for $ac_word... " >&6; }
5271 if ${ac_cv_prog_AWK+:} false; then :
5272 $as_echo_n "(cached) " >&6
5274 if test -n "$AWK"; then
5275 ac_cv_prog_AWK="$AWK" # Let the user override the test.
5277 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5281 test -z "$as_dir" && as_dir=.
5282 for ac_exec_ext in '' $ac_executable_extensions; do
5283 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5284 ac_cv_prog_AWK="$ac_prog"
5285 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5295 if test -n "$AWK"; then
5296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
5297 $as_echo "$AWK" >&6; }
5299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5300 $as_echo "no" >&6; }
5304 test -n "$AWK" && break
5307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
5308 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
5310 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
5311 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
5312 $as_echo_n "(cached) " >&6
5314 cat >conftest.make <<\_ACEOF
5317 @echo '@@@%%%=$(MAKE)=@@@%%%'
5319 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
5320 case `${MAKE-make} -f conftest.make 2>/dev/null` in
5322 eval ac_cv_prog_make_${ac_make}_set=yes;;
5324 eval ac_cv_prog_make_${ac_make}_set=no;;
5328 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
5329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5330 $as_echo "yes" >&6; }
5333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5334 $as_echo "no" >&6; }
5335 SET_MAKE="MAKE=${MAKE-make}"
5338 rm -rf .tst 2>/dev/null
5339 mkdir .tst 2>/dev/null
5340 if test -d .tst; then
5345 rmdir .tst 2>/dev/null
5347 DEPDIR="${am__leading_dot}deps"
5349 ac_config_commands="$ac_config_commands depfiles"
5351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
5352 $as_echo_n "checking whether ${MAKE-make} supports the include directive... " >&6; }
5353 cat > confinc.mk << 'END'
5355 @echo this is the am__doit target >confinc.out
5360 # BSD make does it like this.
5361 echo '.include "confinc.mk" # ignored' > confmf.BSD
5362 # Other make implementations (GNU, Solaris 10, AIX) do it like this.
5363 echo 'include confinc.mk # ignored' > confmf.GNU
5365 for s in GNU BSD; do
5366 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
5367 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
5369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5370 (exit $ac_status); }
5371 case $?:`cat confinc.out 2>/dev/null` in #(
5372 '0:this is the am__doit target') :
5375 am__include='.include' am__quote='"' ;; #(
5377 am__include='include' am__quote='' ;;
5382 if test "$am__include" != "#"; then
5383 _am_result="yes ($s style)"
5387 rm -f confinc.* confmf.*
5388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
5389 $as_echo "${_am_result}" >&6; }
5391 # Check whether --enable-dependency-tracking was given.
5392 if test "${enable_dependency_tracking+set}" = set; then :
5393 enableval=$enable_dependency_tracking;
5396 if test "x$enable_dependency_tracking" != xno; then
5397 am_depcomp="$ac_aux_dir/depcomp"
5401 if test "x$enable_dependency_tracking" != xno; then
5410 # Check whether --enable-silent-rules was given.
5411 if test "${enable_silent_rules+set}" = set; then :
5412 enableval=$enable_silent_rules;
5415 case $enable_silent_rules in # (((
5416 yes) AM_DEFAULT_VERBOSITY=0;;
5417 no) AM_DEFAULT_VERBOSITY=1;;
5418 *) AM_DEFAULT_VERBOSITY=1;;
5420 am_make=${MAKE-make}
5421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
5422 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
5423 if ${am_cv_make_support_nested_variables+:} false; then :
5424 $as_echo_n "(cached) " >&6
5426 if $as_echo 'TRUE=$(BAR$(V))
5432 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
5433 am_cv_make_support_nested_variables=yes
5435 am_cv_make_support_nested_variables=no
5438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
5439 $as_echo "$am_cv_make_support_nested_variables" >&6; }
5440 if test $am_cv_make_support_nested_variables = yes; then
5442 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
5444 AM_V=$AM_DEFAULT_VERBOSITY
5445 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
5449 if test "`cd $srcdir && pwd`" != "`pwd`"; then
5450 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
5451 # is not polluted with repeated "-I."
5452 am__isrc=' -I$(srcdir)'
5453 # test to see if srcdir already configured
5454 if test -f $srcdir/config.status; then
5455 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
5459 # test whether we have cygpath
5460 if test -z "$CYGPATH_W"; then
5461 if (cygpath --version) >/dev/null 2>/dev/null; then
5462 CYGPATH_W='cygpath -w'
5469 # Define the identity of the package.
5474 cat >>confdefs.h <<_ACEOF
5475 #define PACKAGE "$PACKAGE"
5479 cat >>confdefs.h <<_ACEOF
5480 #define VERSION "$VERSION"
5483 # Some tools Automake needs.
5485 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
5488 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
5491 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
5494 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
5497 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
5499 # For better backward compatibility. To be removed once Automake 1.9.x
5500 # dies out for good. For more background, see:
5501 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
5502 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
5503 mkdir_p='$(MKDIR_P)'
5505 # We need awk for the "check" target (and possibly the TAP driver). The
5506 # system "awk" is bad on some platforms.
5507 # Always define AMTAR for backward compatibility. Yes, it's still used
5508 # in the wild :-( We should find a proper way to deprecate it ...
5512 # We'll loop over all known methods to create a tar archive until one works.
5513 _am_tools='gnutar pax cpio none'
5515 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
5521 depcc="$CC" am_compiler_list=
5523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5524 $as_echo_n "checking dependency style of $depcc... " >&6; }
5525 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
5526 $as_echo_n "(cached) " >&6
5528 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5529 # We make a subdir and do the tests there. Otherwise we can end up
5530 # making bogus files that we don't know about and never remove. For
5531 # instance it was reported that on HP-UX the gcc test will end up
5532 # making a dummy file named 'D' -- because '-MD' means "put the output
5536 # Copy depcomp to subdir because otherwise we won't find it if we're
5537 # using a relative directory.
5538 cp "$am_depcomp" conftest.dir
5540 # We will build objects and dependencies in a subdirectory because
5541 # it helps to detect inapplicable dependency modes. For instance
5542 # both Tru64's cc and ICC support -MD to output dependencies as a
5543 # side effect of compilation, but ICC will put the dependencies in
5544 # the current directory while Tru64 will put them in the object
5548 am_cv_CC_dependencies_compiler_type=none
5549 if test "$am_compiler_list" = ""; then
5550 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5553 case " $depcc " in #(
5554 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5557 for depmode in $am_compiler_list; do
5558 # Setup a source with many dependencies, because some compilers
5559 # like to wrap large dependency lists on column 80 (with \), and
5560 # we should not choose a depcomp mode which is confused by this.
5562 # We need to recreate these files for each test, as the compiler may
5563 # overwrite some of them when testing with obscure command lines.
5564 # This happens at least with the AIX C compiler.
5566 for i in 1 2 3 4 5 6; do
5567 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5568 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
5569 # Solaris 10 /bin/sh.
5570 echo '/* dummy */' > sub/conftst$i.h
5572 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5574 # We check with '-c' and '-o' for the sake of the "dashmstdout"
5575 # mode. It turns out that the SunPro C++ compiler does not properly
5576 # handle '-M -o', and we need to detect this. Also, some Intel
5577 # versions had trouble with output in subdirs.
5578 am__obj=sub/conftest.${OBJEXT-o}
5579 am__minus_obj="-o $am__obj"
5582 # This depmode causes a compiler race in universal mode.
5583 test "$am__universal" = false || continue
5586 # After this tag, mechanisms are not by side-effect, so they'll
5587 # only be used when explicitly requested.
5588 if test "x$enable_dependency_tracking" = xyes; then
5594 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
5595 # This compiler won't grok '-c -o', but also, the minuso test has
5596 # not run yet. These depmodes are late enough in the game, and
5597 # so weak that their functioning should not be impacted.
5598 am__obj=conftest.${OBJEXT-o}
5603 if depmode=$depmode \
5604 source=sub/conftest.c object=$am__obj \
5605 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5606 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5607 >/dev/null 2>conftest.err &&
5608 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5609 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5610 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5611 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5612 # icc doesn't choke on unknown options, it will just issue warnings
5613 # or remarks (even with -Werror). So we grep stderr for any message
5614 # that says an option was ignored or not supported.
5615 # When given -MP, icc 7.0 and 7.1 complain thusly:
5616 # icc: Command line warning: ignoring option '-M'; no argument required
5617 # The diagnosis changed in icc 8.0:
5618 # icc: Command line remark: option '-MP' not supported
5619 if (grep 'ignoring option' conftest.err ||
5620 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5621 am_cv_CC_dependencies_compiler_type=$depmode
5630 am_cv_CC_dependencies_compiler_type=none
5634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5635 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5636 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5639 test "x$enable_dependency_tracking" != xno \
5640 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5642 am__fastdepCC_FALSE='#'
5644 am__fastdepCC_TRUE='#'
5645 am__fastdepCC_FALSE=
5650 # POSIX will say in a future version that running "rm -f" with no argument
5651 # is OK; and we want to be able to make that assumption in our Makefile
5652 # recipes. So use an aggressive probe to check that the usage we want is
5653 # actually supported "in the wild" to an acceptable degree.
5654 # See automake bug#10828.
5655 # To make any issue more visible, cause the running configure to be aborted
5656 # by default if the 'rm' program in use doesn't match our expectations; the
5657 # user can still override this though.
5658 if rm -f && rm -fr && rm -rf; then : OK; else
5662 Your 'rm' program seems unable to run without file operands specified
5663 on the command line, even when the '-f' option is present. This is contrary
5664 to the behaviour of most rm programs out there, and not conforming with
5665 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
5667 Please tell bug-automake@gnu.org about your system, including the value
5668 of your $PATH and any error possibly output before this message. This
5669 can help us improve future automake versions.
5672 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
5673 echo 'Configuration will proceed anyway, since you have set the' >&2
5674 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
5678 Aborting the configuration process, to ensure you take notice of the issue.
5680 You can download and install GNU coreutils to get an 'rm' implementation
5681 that behaves properly: <https://www.gnu.org/software/coreutils/>.
5683 If you want to complete the configuration process using your problematic
5684 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
5685 to "yes", and re-run configure.
5688 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
5693 # Check whether --enable-silent-rules was given.
5694 if test "${enable_silent_rules+set}" = set; then :
5695 enableval=$enable_silent_rules;
5698 case $enable_silent_rules in # (((
5699 yes) AM_DEFAULT_VERBOSITY=0;;
5700 no) AM_DEFAULT_VERBOSITY=1;;
5701 *) AM_DEFAULT_VERBOSITY=0;;
5703 am_make=${MAKE-make}
5704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
5705 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
5706 if ${am_cv_make_support_nested_variables+:} false; then :
5707 $as_echo_n "(cached) " >&6
5709 if $as_echo 'TRUE=$(BAR$(V))
5715 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
5716 am_cv_make_support_nested_variables=yes
5718 am_cv_make_support_nested_variables=no
5721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
5722 $as_echo "$am_cv_make_support_nested_variables" >&6; }
5723 if test $am_cv_make_support_nested_variables = yes; then
5725 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
5727 AM_V=$AM_DEFAULT_VERBOSITY
5728 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
5733 # checks for programs
5735 ac_cpp='$CPP $CPPFLAGS'
5736 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5737 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5738 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5739 if test -n "$ac_tool_prefix"; then
5740 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
5741 set dummy ${ac_tool_prefix}gcc; ac_word=$2
5742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5743 $as_echo_n "checking for $ac_word... " >&6; }
5744 if ${ac_cv_prog_CC+:} false; then :
5745 $as_echo_n "(cached) " >&6
5747 if test -n "$CC"; then
5748 ac_cv_prog_CC="$CC" # Let the user override the test.
5750 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5754 test -z "$as_dir" && as_dir=.
5755 for ac_exec_ext in '' $ac_executable_extensions; do
5756 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5757 ac_cv_prog_CC="${ac_tool_prefix}gcc"
5758 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5768 if test -n "$CC"; then
5769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5770 $as_echo "$CC" >&6; }
5772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5773 $as_echo "no" >&6; }
5778 if test -z "$ac_cv_prog_CC"; then
5780 # Extract the first word of "gcc", so it can be a program name with args.
5781 set dummy gcc; ac_word=$2
5782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5783 $as_echo_n "checking for $ac_word... " >&6; }
5784 if ${ac_cv_prog_ac_ct_CC+:} false; then :
5785 $as_echo_n "(cached) " >&6
5787 if test -n "$ac_ct_CC"; then
5788 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5790 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5794 test -z "$as_dir" && as_dir=.
5795 for ac_exec_ext in '' $ac_executable_extensions; do
5796 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5797 ac_cv_prog_ac_ct_CC="gcc"
5798 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5807 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5808 if test -n "$ac_ct_CC"; then
5809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5810 $as_echo "$ac_ct_CC" >&6; }
5812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5813 $as_echo "no" >&6; }
5816 if test "x$ac_ct_CC" = x; then
5819 case $cross_compiling:$ac_tool_warned in
5821 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5822 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5823 ac_tool_warned=yes ;;
5831 if test -z "$CC"; then
5832 if test -n "$ac_tool_prefix"; then
5833 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
5834 set dummy ${ac_tool_prefix}cc; ac_word=$2
5835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5836 $as_echo_n "checking for $ac_word... " >&6; }
5837 if ${ac_cv_prog_CC+:} false; then :
5838 $as_echo_n "(cached) " >&6
5840 if test -n "$CC"; then
5841 ac_cv_prog_CC="$CC" # Let the user override the test.
5843 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5847 test -z "$as_dir" && as_dir=.
5848 for ac_exec_ext in '' $ac_executable_extensions; do
5849 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5850 ac_cv_prog_CC="${ac_tool_prefix}cc"
5851 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5861 if test -n "$CC"; then
5862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5863 $as_echo "$CC" >&6; }
5865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5866 $as_echo "no" >&6; }
5872 if test -z "$CC"; then
5873 # Extract the first word of "cc", so it can be a program name with args.
5874 set dummy cc; ac_word=$2
5875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5876 $as_echo_n "checking for $ac_word... " >&6; }
5877 if ${ac_cv_prog_CC+:} false; then :
5878 $as_echo_n "(cached) " >&6
5880 if test -n "$CC"; then
5881 ac_cv_prog_CC="$CC" # Let the user override the test.
5884 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5888 test -z "$as_dir" && as_dir=.
5889 for ac_exec_ext in '' $ac_executable_extensions; do
5890 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5891 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
5892 ac_prog_rejected=yes
5896 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5903 if test $ac_prog_rejected = yes; then
5904 # We found a bogon in the path, so make sure we never use it.
5905 set dummy $ac_cv_prog_CC
5907 if test $# != 0; then
5908 # We chose a different compiler from the bogus one.
5909 # However, it has the same basename, so the bogon will be chosen
5910 # first if we set CC to just the basename; use the full file name.
5912 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
5918 if test -n "$CC"; then
5919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5920 $as_echo "$CC" >&6; }
5922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5923 $as_echo "no" >&6; }
5928 if test -z "$CC"; then
5929 if test -n "$ac_tool_prefix"; then
5930 for ac_prog in cl.exe
5932 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5933 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5935 $as_echo_n "checking for $ac_word... " >&6; }
5936 if ${ac_cv_prog_CC+:} false; then :
5937 $as_echo_n "(cached) " >&6
5939 if test -n "$CC"; then
5940 ac_cv_prog_CC="$CC" # Let the user override the test.
5942 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5946 test -z "$as_dir" && as_dir=.
5947 for ac_exec_ext in '' $ac_executable_extensions; do
5948 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5949 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5950 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5960 if test -n "$CC"; then
5961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5962 $as_echo "$CC" >&6; }
5964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5965 $as_echo "no" >&6; }
5969 test -n "$CC" && break
5972 if test -z "$CC"; then
5974 for ac_prog in cl.exe
5976 # Extract the first word of "$ac_prog", so it can be a program name with args.
5977 set dummy $ac_prog; ac_word=$2
5978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5979 $as_echo_n "checking for $ac_word... " >&6; }
5980 if ${ac_cv_prog_ac_ct_CC+:} false; then :
5981 $as_echo_n "(cached) " >&6
5983 if test -n "$ac_ct_CC"; then
5984 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5986 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5990 test -z "$as_dir" && as_dir=.
5991 for ac_exec_ext in '' $ac_executable_extensions; do
5992 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5993 ac_cv_prog_ac_ct_CC="$ac_prog"
5994 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6003 ac_ct_CC=$ac_cv_prog_ac_ct_CC
6004 if test -n "$ac_ct_CC"; then
6005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
6006 $as_echo "$ac_ct_CC" >&6; }
6008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6009 $as_echo "no" >&6; }
6013 test -n "$ac_ct_CC" && break
6016 if test "x$ac_ct_CC" = x; then
6019 case $cross_compiling:$ac_tool_warned in
6021 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6022 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6023 ac_tool_warned=yes ;;
6032 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6033 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6034 as_fn_error $? "no acceptable C compiler found in \$PATH
6035 See \`config.log' for more details" "$LINENO" 5; }
6037 # Provide some information about the compiler.
6038 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
6041 for ac_option in --version -v -V -qversion; do
6042 { { ac_try="$ac_compiler $ac_option >&5"
6044 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6045 *) ac_try_echo=$ac_try;;
6047 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6048 $as_echo "$ac_try_echo"; } >&5
6049 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
6051 if test -s conftest.err; then
6053 ... rest of stderr output deleted ...
6054 10q' conftest.err >conftest.er1
6055 cat conftest.er1 >&5
6057 rm -f conftest.er1 conftest.err
6058 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6059 test $ac_status = 0; }
6062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
6063 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
6064 if ${ac_cv_c_compiler_gnu+:} false; then :
6065 $as_echo_n "(cached) " >&6
6067 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6068 /* end confdefs.h. */
6081 if ac_fn_c_try_compile "$LINENO"; then :
6086 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6087 ac_cv_c_compiler_gnu=$ac_compiler_gnu
6090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
6091 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
6092 if test $ac_compiler_gnu = yes; then
6097 ac_test_CFLAGS=${CFLAGS+set}
6098 ac_save_CFLAGS=$CFLAGS
6099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
6100 $as_echo_n "checking whether $CC accepts -g... " >&6; }
6101 if ${ac_cv_prog_cc_g+:} false; then :
6102 $as_echo_n "(cached) " >&6
6104 ac_save_c_werror_flag=$ac_c_werror_flag
6105 ac_c_werror_flag=yes
6108 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6109 /* end confdefs.h. */
6119 if ac_fn_c_try_compile "$LINENO"; then :
6123 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6124 /* end confdefs.h. */
6134 if ac_fn_c_try_compile "$LINENO"; then :
6137 ac_c_werror_flag=$ac_save_c_werror_flag
6139 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6140 /* end confdefs.h. */
6150 if ac_fn_c_try_compile "$LINENO"; then :
6153 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6155 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6157 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6158 ac_c_werror_flag=$ac_save_c_werror_flag
6160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
6161 $as_echo "$ac_cv_prog_cc_g" >&6; }
6162 if test "$ac_test_CFLAGS" = set; then
6163 CFLAGS=$ac_save_CFLAGS
6164 elif test $ac_cv_prog_cc_g = yes; then
6165 if test "$GCC" = yes; then
6171 if test "$GCC" = yes; then
6177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
6178 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
6179 if ${ac_cv_prog_cc_c89+:} false; then :
6180 $as_echo_n "(cached) " >&6
6182 ac_cv_prog_cc_c89=no
6184 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6185 /* end confdefs.h. */
6189 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
6190 struct buf { int x; };
6191 FILE * (*rcsopen) (struct buf *, struct stat *, int);
6192 static char *e (p, i)
6198 static char *f (char * (*g) (char **, int), char **p, ...)
6203 s = g (p, va_arg (v,int));
6208 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
6209 function prototypes and stuff, but not '\xHH' hex character constants.
6210 These don't provoke an error unfortunately, instead are silently treated
6211 as 'x'. The following induces an error, until -std is added to get
6212 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
6213 array size at least. It's necessary to write '\x00'==0 to get something
6214 that's true only with -std. */
6215 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
6217 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
6218 inside strings and character constants. */
6220 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
6222 int test (int i, double x);
6223 struct s1 {int (*f) (int a);};
6224 struct s2 {int (*f) (double a);};
6225 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
6231 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
6236 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
6237 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6239 CC="$ac_save_CC $ac_arg"
6240 if ac_fn_c_try_compile "$LINENO"; then :
6241 ac_cv_prog_cc_c89=$ac_arg
6243 rm -f core conftest.err conftest.$ac_objext
6244 test "x$ac_cv_prog_cc_c89" != "xno" && break
6246 rm -f conftest.$ac_ext
6251 case "x$ac_cv_prog_cc_c89" in
6253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6254 $as_echo "none needed" >&6; } ;;
6256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6257 $as_echo "unsupported" >&6; } ;;
6259 CC="$CC $ac_cv_prog_cc_c89"
6260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
6261 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
6263 if test "x$ac_cv_prog_cc_c89" != xno; then :
6268 ac_cpp='$CPP $CPPFLAGS'
6269 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6270 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6271 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6274 ac_cpp='$CPP $CPPFLAGS'
6275 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6276 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6277 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
6279 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
6280 if ${am_cv_prog_cc_c_o+:} false; then :
6281 $as_echo_n "(cached) " >&6
6283 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6284 /* end confdefs.h. */
6294 # Make sure it works both with $CC and with simple cc.
6295 # Following AC_PROG_CC_C_O, we do the test twice because some
6296 # compilers refuse to overwrite an existing .o file with -o,
6297 # though they will create one.
6298 am_cv_prog_cc_c_o=yes
6300 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
6301 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
6303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6304 (exit $ac_status); } \
6305 && test -f conftest2.$ac_objext; then
6308 am_cv_prog_cc_c_o=no
6312 rm -f core conftest*
6315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
6316 $as_echo "$am_cv_prog_cc_c_o" >&6; }
6317 if test "$am_cv_prog_cc_c_o" != yes; then
6318 # Losing compiler, so override with the script.
6319 # FIXME: It is wrong to rewrite CC.
6320 # But if we don't then we get into trouble of one sort or another.
6321 # A longer-term fix would be to have automake use am__CC in this case,
6322 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
6323 CC="$am_aux_dir/compile $CC"
6326 ac_cpp='$CPP $CPPFLAGS'
6327 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6328 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6329 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6333 ac_cpp='$CXXCPP $CPPFLAGS'
6334 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6335 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6336 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6337 if test -z "$CXX"; then
6338 if test -n "$CCC"; then
6341 if test -n "$ac_tool_prefix"; then
6342 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
6344 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6345 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6347 $as_echo_n "checking for $ac_word... " >&6; }
6348 if ${ac_cv_prog_CXX+:} false; then :
6349 $as_echo_n "(cached) " >&6
6351 if test -n "$CXX"; then
6352 ac_cv_prog_CXX="$CXX" # Let the user override the test.
6354 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6358 test -z "$as_dir" && as_dir=.
6359 for ac_exec_ext in '' $ac_executable_extensions; do
6360 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6361 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
6362 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6372 if test -n "$CXX"; then
6373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
6374 $as_echo "$CXX" >&6; }
6376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6377 $as_echo "no" >&6; }
6381 test -n "$CXX" && break
6384 if test -z "$CXX"; then
6386 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
6388 # Extract the first word of "$ac_prog", so it can be a program name with args.
6389 set dummy $ac_prog; ac_word=$2
6390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6391 $as_echo_n "checking for $ac_word... " >&6; }
6392 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
6393 $as_echo_n "(cached) " >&6
6395 if test -n "$ac_ct_CXX"; then
6396 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
6398 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6402 test -z "$as_dir" && as_dir=.
6403 for ac_exec_ext in '' $ac_executable_extensions; do
6404 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6405 ac_cv_prog_ac_ct_CXX="$ac_prog"
6406 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6415 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
6416 if test -n "$ac_ct_CXX"; then
6417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
6418 $as_echo "$ac_ct_CXX" >&6; }
6420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6421 $as_echo "no" >&6; }
6425 test -n "$ac_ct_CXX" && break
6428 if test "x$ac_ct_CXX" = x; then
6431 case $cross_compiling:$ac_tool_warned in
6433 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6434 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6435 ac_tool_warned=yes ;;
6443 # Provide some information about the compiler.
6444 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
6447 for ac_option in --version -v -V -qversion; do
6448 { { ac_try="$ac_compiler $ac_option >&5"
6450 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6451 *) ac_try_echo=$ac_try;;
6453 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6454 $as_echo "$ac_try_echo"; } >&5
6455 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
6457 if test -s conftest.err; then
6459 ... rest of stderr output deleted ...
6460 10q' conftest.err >conftest.er1
6461 cat conftest.er1 >&5
6463 rm -f conftest.er1 conftest.err
6464 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6465 test $ac_status = 0; }
6468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
6469 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
6470 if ${ac_cv_cxx_compiler_gnu+:} false; then :
6471 $as_echo_n "(cached) " >&6
6473 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6474 /* end confdefs.h. */
6487 if ac_fn_cxx_try_compile "$LINENO"; then :
6492 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6493 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
6496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
6497 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
6498 if test $ac_compiler_gnu = yes; then
6503 ac_test_CXXFLAGS=${CXXFLAGS+set}
6504 ac_save_CXXFLAGS=$CXXFLAGS
6505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
6506 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
6507 if ${ac_cv_prog_cxx_g+:} false; then :
6508 $as_echo_n "(cached) " >&6
6510 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
6511 ac_cxx_werror_flag=yes
6514 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6515 /* end confdefs.h. */
6525 if ac_fn_cxx_try_compile "$LINENO"; then :
6526 ac_cv_prog_cxx_g=yes
6529 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6530 /* end confdefs.h. */
6540 if ac_fn_cxx_try_compile "$LINENO"; then :
6543 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6545 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6546 /* end confdefs.h. */
6556 if ac_fn_cxx_try_compile "$LINENO"; then :
6557 ac_cv_prog_cxx_g=yes
6559 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6561 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6563 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6564 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
6567 $as_echo "$ac_cv_prog_cxx_g" >&6; }
6568 if test "$ac_test_CXXFLAGS" = set; then
6569 CXXFLAGS=$ac_save_CXXFLAGS
6570 elif test $ac_cv_prog_cxx_g = yes; then
6571 if test "$GXX" = yes; then
6577 if test "$GXX" = yes; then
6584 ac_cpp='$CPP $CPPFLAGS'
6585 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6586 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6587 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6589 depcc="$CXX" am_compiler_list=
6591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
6592 $as_echo_n "checking dependency style of $depcc... " >&6; }
6593 if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
6594 $as_echo_n "(cached) " >&6
6596 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6597 # We make a subdir and do the tests there. Otherwise we can end up
6598 # making bogus files that we don't know about and never remove. For
6599 # instance it was reported that on HP-UX the gcc test will end up
6600 # making a dummy file named 'D' -- because '-MD' means "put the output
6604 # Copy depcomp to subdir because otherwise we won't find it if we're
6605 # using a relative directory.
6606 cp "$am_depcomp" conftest.dir
6608 # We will build objects and dependencies in a subdirectory because
6609 # it helps to detect inapplicable dependency modes. For instance
6610 # both Tru64's cc and ICC support -MD to output dependencies as a
6611 # side effect of compilation, but ICC will put the dependencies in
6612 # the current directory while Tru64 will put them in the object
6616 am_cv_CXX_dependencies_compiler_type=none
6617 if test "$am_compiler_list" = ""; then
6618 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6621 case " $depcc " in #(
6622 *\ -arch\ *\ -arch\ *) am__universal=true ;;
6625 for depmode in $am_compiler_list; do
6626 # Setup a source with many dependencies, because some compilers
6627 # like to wrap large dependency lists on column 80 (with \), and
6628 # we should not choose a depcomp mode which is confused by this.
6630 # We need to recreate these files for each test, as the compiler may
6631 # overwrite some of them when testing with obscure command lines.
6632 # This happens at least with the AIX C compiler.
6634 for i in 1 2 3 4 5 6; do
6635 echo '#include "conftst'$i'.h"' >> sub/conftest.c
6636 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
6637 # Solaris 10 /bin/sh.
6638 echo '/* dummy */' > sub/conftst$i.h
6640 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6642 # We check with '-c' and '-o' for the sake of the "dashmstdout"
6643 # mode. It turns out that the SunPro C++ compiler does not properly
6644 # handle '-M -o', and we need to detect this. Also, some Intel
6645 # versions had trouble with output in subdirs.
6646 am__obj=sub/conftest.${OBJEXT-o}
6647 am__minus_obj="-o $am__obj"
6650 # This depmode causes a compiler race in universal mode.
6651 test "$am__universal" = false || continue
6654 # After this tag, mechanisms are not by side-effect, so they'll
6655 # only be used when explicitly requested.
6656 if test "x$enable_dependency_tracking" = xyes; then
6662 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
6663 # This compiler won't grok '-c -o', but also, the minuso test has
6664 # not run yet. These depmodes are late enough in the game, and
6665 # so weak that their functioning should not be impacted.
6666 am__obj=conftest.${OBJEXT-o}
6671 if depmode=$depmode \
6672 source=sub/conftest.c object=$am__obj \
6673 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6674 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
6675 >/dev/null 2>conftest.err &&
6676 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6677 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6678 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
6679 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6680 # icc doesn't choke on unknown options, it will just issue warnings
6681 # or remarks (even with -Werror). So we grep stderr for any message
6682 # that says an option was ignored or not supported.
6683 # When given -MP, icc 7.0 and 7.1 complain thusly:
6684 # icc: Command line warning: ignoring option '-M'; no argument required
6685 # The diagnosis changed in icc 8.0:
6686 # icc: Command line remark: option '-MP' not supported
6687 if (grep 'ignoring option' conftest.err ||
6688 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6689 am_cv_CXX_dependencies_compiler_type=$depmode
6698 am_cv_CXX_dependencies_compiler_type=none
6702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
6703 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
6704 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
6707 test "x$enable_dependency_tracking" != xno \
6708 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
6709 am__fastdepCXX_TRUE=
6710 am__fastdepCXX_FALSE='#'
6712 am__fastdepCXX_TRUE='#'
6713 am__fastdepCXX_FALSE=
6726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Minix Amsterdam compiler" >&5
6727 $as_echo_n "checking for Minix Amsterdam compiler... " >&6; }
6728 if ${gl_cv_c_amsterdam_compiler+:} false; then :
6729 $as_echo_n "(cached) " >&6
6732 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6733 /* end confdefs.h. */
6740 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6741 $EGREP "Amsterdam" >/dev/null 2>&1; then :
6742 gl_cv_c_amsterdam_compiler=yes
6744 gl_cv_c_amsterdam_compiler=no
6750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_c_amsterdam_compiler" >&5
6751 $as_echo "$gl_cv_c_amsterdam_compiler" >&6; }
6753 if test $gl_cv_c_amsterdam_compiler = yes; then
6754 if test -z "$AR"; then
6757 if test -z "$ARFLAGS"; then
6764 if test -n "$ac_tool_prefix"; then
6765 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6766 set dummy ${ac_tool_prefix}ar; ac_word=$2
6767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6768 $as_echo_n "checking for $ac_word... " >&6; }
6769 if ${ac_cv_prog_AR+:} false; then :
6770 $as_echo_n "(cached) " >&6
6772 if test -n "$AR"; then
6773 ac_cv_prog_AR="$AR" # Let the user override the test.
6775 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6779 test -z "$as_dir" && as_dir=.
6780 for ac_exec_ext in '' $ac_executable_extensions; do
6781 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6782 ac_cv_prog_AR="${ac_tool_prefix}ar"
6783 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6793 if test -n "$AR"; then
6794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6795 $as_echo "$AR" >&6; }
6797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6798 $as_echo "no" >&6; }
6803 if test -z "$ac_cv_prog_AR"; then
6805 # Extract the first word of "ar", so it can be a program name with args.
6806 set dummy ar; ac_word=$2
6807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6808 $as_echo_n "checking for $ac_word... " >&6; }
6809 if ${ac_cv_prog_ac_ct_AR+:} false; then :
6810 $as_echo_n "(cached) " >&6
6812 if test -n "$ac_ct_AR"; then
6813 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6815 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6819 test -z "$as_dir" && as_dir=.
6820 for ac_exec_ext in '' $ac_executable_extensions; do
6821 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6822 ac_cv_prog_ac_ct_AR="ar"
6823 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6832 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6833 if test -n "$ac_ct_AR"; then
6834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6835 $as_echo "$ac_ct_AR" >&6; }
6837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6838 $as_echo "no" >&6; }
6841 if test "x$ac_ct_AR" = x; then
6844 case $cross_compiling:$ac_tool_warned in
6846 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6847 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6848 ac_tool_warned=yes ;;
6856 if test -z "$ARFLAGS"; then
6862 if test -z "$RANLIB"; then
6863 if test $gl_cv_c_amsterdam_compiler = yes; then
6866 if test -n "$ac_tool_prefix"; then
6867 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6868 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6870 $as_echo_n "checking for $ac_word... " >&6; }
6871 if ${ac_cv_prog_RANLIB+:} false; then :
6872 $as_echo_n "(cached) " >&6
6874 if test -n "$RANLIB"; then
6875 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6877 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6881 test -z "$as_dir" && as_dir=.
6882 for ac_exec_ext in '' $ac_executable_extensions; do
6883 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6884 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6885 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6894 RANLIB=$ac_cv_prog_RANLIB
6895 if test -n "$RANLIB"; then
6896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6897 $as_echo "$RANLIB" >&6; }
6899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6900 $as_echo "no" >&6; }
6905 if test -z "$ac_cv_prog_RANLIB"; then
6906 ac_ct_RANLIB=$RANLIB
6907 # Extract the first word of "ranlib", so it can be a program name with args.
6908 set dummy ranlib; ac_word=$2
6909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6910 $as_echo_n "checking for $ac_word... " >&6; }
6911 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6912 $as_echo_n "(cached) " >&6
6914 if test -n "$ac_ct_RANLIB"; then
6915 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6917 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6921 test -z "$as_dir" && as_dir=.
6922 for ac_exec_ext in '' $ac_executable_extensions; do
6923 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6924 ac_cv_prog_ac_ct_RANLIB="ranlib"
6925 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6934 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6935 if test -n "$ac_ct_RANLIB"; then
6936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6937 $as_echo "$ac_ct_RANLIB" >&6; }
6939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6940 $as_echo "no" >&6; }
6943 if test "x$ac_ct_RANLIB" = x; then
6946 case $cross_compiling:$ac_tool_warned in
6948 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6949 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6950 ac_tool_warned=yes ;;
6952 RANLIB=$ac_ct_RANLIB
6955 RANLIB="$ac_cv_prog_RANLIB"
6963 # Make sure we can run config.sub.
6964 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
6965 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
6967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
6968 $as_echo_n "checking build system type... " >&6; }
6969 if ${ac_cv_build+:} false; then :
6970 $as_echo_n "(cached) " >&6
6972 ac_build_alias=$build_alias
6973 test "x$ac_build_alias" = x &&
6974 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
6975 test "x$ac_build_alias" = x &&
6976 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
6977 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
6978 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
6981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
6982 $as_echo "$ac_cv_build" >&6; }
6983 case $ac_cv_build in
6985 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
6988 ac_save_IFS=$IFS; IFS='-'
6994 # Remember, the first character of IFS is used to create $*,
6995 # except with old shells:
6998 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
7001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
7002 $as_echo_n "checking host system type... " >&6; }
7003 if ${ac_cv_host+:} false; then :
7004 $as_echo_n "(cached) " >&6
7006 if test "x$host_alias" = x; then
7007 ac_cv_host=$ac_cv_build
7009 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
7010 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
7014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
7015 $as_echo "$ac_cv_host" >&6; }
7018 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
7021 ac_save_IFS=$IFS; IFS='-'
7027 # Remember, the first character of IFS is used to create $*,
7028 # except with old shells:
7031 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
7037 # IEEE behaviour is the default on all CPUs except Alpha and SH
7038 # (according to the test results of Bruno Haible's ieeefp/fenv_default.m4
7039 # and the GCC 4.1.2 manual).
7042 # On Alpha systems, a compiler option provides the behaviour.
7043 # See the ieee(3) manual page, also available at
7044 # <https://backdrift.org/man/tru64/man3/ieee.3.html>
7045 if test -n "$GCC"; then
7046 # GCC has the option -mieee.
7047 # For full IEEE compliance (rarely needed), use option -mieee-with-inexact.
7048 CPPFLAGS="$CPPFLAGS -mieee"
7050 # Compaq (ex-DEC) C has the option -ieee, equivalent to -ieee_with_no_inexact.
7051 # For full IEEE compliance (rarely needed), use option -ieee_with_inexact.
7052 CPPFLAGS="$CPPFLAGS -ieee"
7056 if test -n "$GCC"; then
7057 # GCC has the option -mieee.
7058 CPPFLAGS="$CPPFLAGS -mieee"
7065 # Pre-early section.
7070 # Code from module absolute-header:
7071 # Code from module alloca-opt:
7072 # Code from module errno:
7073 # Code from module extensions:
7074 # Code from module extern-inline:
7075 # Code from module float:
7076 # Code from module fpieee:
7078 # Code from module fprintf-posix:
7079 # Code from module fpucw:
7080 # Code from module frexp-nolibm:
7081 # Code from module frexpl-nolibm:
7082 # Code from module fseterr:
7083 # Code from module git-version-gen:
7084 # Code from module havelib:
7085 # Code from module host-cpu-c-abi:
7086 # Code from module include_next:
7087 # Code from module isnand-nolibm:
7088 # Code from module isnanf-nolibm:
7089 # Code from module isnanl-nolibm:
7090 # Code from module limits-h:
7091 # Code from module localcharset:
7092 # Code from module math:
7093 # Code from module memchr:
7094 # Code from module multiarch:
7095 # Code from module nocrash:
7096 # Code from module non-recursive-gnulib-prefix-hack:
7097 # Code from module printf-frexp:
7098 # Code from module printf-frexpl:
7099 # Code from module printf-safe:
7100 # Code from module signbit:
7101 # Code from module size_max:
7102 # Code from module snippet/arg-nonnull:
7103 # Code from module snippet/c++defs:
7104 # Code from module snippet/warn-on-use:
7105 # Code from module snprintf:
7106 # Code from module ssize_t:
7107 # Code from module stddef:
7108 # Code from module stdint:
7109 # Code from module stdio:
7110 # Code from module streq:
7111 # Code from module string:
7112 # Code from module sys_types:
7113 # Code from module unitypes:
7114 # Code from module uniwidth/base:
7115 # Code from module uniwidth/width:
7116 # Code from module vasnprintf:
7117 # Code from module verify:
7118 # Code from module vsnprintf:
7119 # Code from module wchar:
7120 # Code from module wctype-h:
7121 # Code from module wcwidth:
7122 # Code from module xsize:
7129 LIBC_FATAL_STDERR_=1
7130 export LIBC_FATAL_STDERR_
7132 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
7133 if test "x$ac_cv_type_size_t" = xyes; then :
7137 cat >>confdefs.h <<_ACEOF
7138 #define size_t unsigned int
7143 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
7144 # for constant arguments. Useless!
7145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
7146 $as_echo_n "checking for working alloca.h... " >&6; }
7147 if ${ac_cv_working_alloca_h+:} false; then :
7148 $as_echo_n "(cached) " >&6
7150 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7151 /* end confdefs.h. */
7156 char *p = (char *) alloca (2 * sizeof (int));
7162 if ac_fn_c_try_link "$LINENO"; then :
7163 ac_cv_working_alloca_h=yes
7165 ac_cv_working_alloca_h=no
7167 rm -f core conftest.err conftest.$ac_objext \
7168 conftest$ac_exeext conftest.$ac_ext
7170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
7171 $as_echo "$ac_cv_working_alloca_h" >&6; }
7172 if test $ac_cv_working_alloca_h = yes; then
7174 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
7178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
7179 $as_echo_n "checking for alloca... " >&6; }
7180 if ${ac_cv_func_alloca_works+:} false; then :
7181 $as_echo_n "(cached) " >&6
7183 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7184 /* end confdefs.h. */
7186 # define alloca __builtin_alloca
7189 # include <malloc.h>
7190 # define alloca _alloca
7192 # ifdef HAVE_ALLOCA_H
7193 # include <alloca.h>
7198 # ifndef alloca /* predefined by HP cc +Olibcalls */
7199 void *alloca (size_t);
7209 char *p = (char *) alloca (1);
7215 if ac_fn_c_try_link "$LINENO"; then :
7216 ac_cv_func_alloca_works=yes
7218 ac_cv_func_alloca_works=no
7220 rm -f core conftest.err conftest.$ac_objext \
7221 conftest$ac_exeext conftest.$ac_ext
7223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
7224 $as_echo "$ac_cv_func_alloca_works" >&6; }
7226 if test $ac_cv_func_alloca_works = yes; then
7228 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
7231 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
7232 # that cause trouble. Some versions do not even contain alloca or
7233 # contain a buggy version. If you still want to use their alloca,
7234 # use ar to extract alloca.o from them instead of compiling alloca.c.
7240 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
7242 $as_echo "#define C_ALLOCA 1" >>confdefs.h
7245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
7246 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
7247 if ${ac_cv_os_cray+:} false; then :
7248 $as_echo_n "(cached) " >&6
7250 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7251 /* end confdefs.h. */
7252 #if defined CRAY && ! defined CRAY2
7259 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7260 $EGREP "webecray" >/dev/null 2>&1; then :
7268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
7269 $as_echo "$ac_cv_os_cray" >&6; }
7270 if test $ac_cv_os_cray = yes; then
7271 for ac_func in _getb67 GETB67 getb67; do
7272 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
7273 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
7274 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
7276 cat >>confdefs.h <<_ACEOF
7277 #define CRAY_STACKSEG_END $ac_func
7286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
7287 $as_echo_n "checking stack direction for C alloca... " >&6; }
7288 if ${ac_cv_c_stack_direction+:} false; then :
7289 $as_echo_n "(cached) " >&6
7291 if test "$cross_compiling" = yes; then :
7292 ac_cv_c_stack_direction=0
7294 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7295 /* end confdefs.h. */
7296 $ac_includes_default
7298 find_stack_direction (int *addr, int depth)
7303 *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
7304 dir = depth ? find_stack_direction (addr, depth - 1) : 0;
7309 main (int argc, char **argv)
7311 return find_stack_direction (0, argc + !argv + 20) < 0;
7314 if ac_fn_c_try_run "$LINENO"; then :
7315 ac_cv_c_stack_direction=1
7317 ac_cv_c_stack_direction=-1
7319 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7320 conftest.$ac_objext conftest.beam conftest.$ac_ext
7324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
7325 $as_echo "$ac_cv_c_stack_direction" >&6; }
7326 cat >>confdefs.h <<_ACEOF
7327 #define STACK_DIRECTION $ac_cv_c_stack_direction
7335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the preprocessor supports include_next" >&5
7336 $as_echo_n "checking whether the preprocessor supports include_next... " >&6; }
7337 if ${gl_cv_have_include_next+:} false; then :
7338 $as_echo_n "(cached) " >&6
7340 rm -rf conftestd1a conftestd1b conftestd2
7341 mkdir conftestd1a conftestd1b conftestd2
7342 cat <<EOF > conftestd1a/conftest.h
7343 #define DEFINED_IN_CONFTESTD1
7344 #include_next <conftest.h>
7345 #ifdef DEFINED_IN_CONFTESTD2
7348 #error "include_next doesn't work"
7351 cat <<EOF > conftestd1b/conftest.h
7352 #define DEFINED_IN_CONFTESTD1
7354 #include_next <conftest.h>
7355 #ifdef DEFINED_IN_CONFTESTD2
7358 #error "include_next doesn't work"
7361 cat <<EOF > conftestd2/conftest.h
7362 #ifndef DEFINED_IN_CONFTESTD1
7363 #error "include_next test doesn't work"
7365 #define DEFINED_IN_CONFTESTD2
7367 gl_save_CPPFLAGS="$CPPFLAGS"
7368 CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1b -Iconftestd2"
7369 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7370 /* end confdefs.h. */
7371 #include <conftest.h>
7373 if ac_fn_c_try_compile "$LINENO"; then :
7374 gl_cv_have_include_next=yes
7376 CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1a -Iconftestd2"
7377 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7378 /* end confdefs.h. */
7379 #include <conftest.h>
7381 if ac_fn_c_try_compile "$LINENO"; then :
7382 gl_cv_have_include_next=buggy
7384 gl_cv_have_include_next=no
7386 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7389 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7390 CPPFLAGS="$gl_save_CPPFLAGS"
7391 rm -rf conftestd1a conftestd1b conftestd2
7394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_have_include_next" >&5
7395 $as_echo "$gl_cv_have_include_next" >&6; }
7396 PRAGMA_SYSTEM_HEADER=
7397 if test $gl_cv_have_include_next = yes; then
7398 INCLUDE_NEXT=include_next
7399 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next
7400 if test -n "$GCC"; then
7401 PRAGMA_SYSTEM_HEADER='#pragma GCC system_header'
7404 if test $gl_cv_have_include_next = buggy; then
7405 INCLUDE_NEXT=include
7406 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next
7408 INCLUDE_NEXT=include
7409 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include
7415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system header files limit the line length" >&5
7416 $as_echo_n "checking whether system header files limit the line length... " >&6; }
7417 if ${gl_cv_pragma_columns+:} false; then :
7418 $as_echo_n "(cached) " >&6
7420 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7421 /* end confdefs.h. */
7428 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7429 $EGREP "choke me" >/dev/null 2>&1; then :
7430 gl_cv_pragma_columns=yes
7432 gl_cv_pragma_columns=no
7438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_pragma_columns" >&5
7439 $as_echo "$gl_cv_pragma_columns" >&6; }
7440 if test $gl_cv_pragma_columns = yes; then
7441 PRAGMA_COLUMNS="#pragma COLUMNS 10000"
7449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for complete errno.h" >&5
7450 $as_echo_n "checking for complete errno.h... " >&6; }
7451 if ${gl_cv_header_errno_h_complete+:} false; then :
7452 $as_echo_n "(cached) " >&6
7455 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7456 /* end confdefs.h. */
7459 #if !defined ETXTBSY
7468 #if !defined ENOLINK
7474 #if !defined EMULTIHOP
7477 #if !defined EBADMSG
7480 #if !defined EOVERFLOW
7483 #if !defined ENOTSUP
7486 #if !defined ENETRESET
7489 #if !defined ECONNABORTED
7498 #if !defined ECANCELED
7501 #if !defined EOWNERDEAD
7504 #if !defined ENOTRECOVERABLE
7512 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7513 $EGREP "booboo" >/dev/null 2>&1; then :
7514 gl_cv_header_errno_h_complete=no
7516 gl_cv_header_errno_h_complete=yes
7522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_complete" >&5
7523 $as_echo "$gl_cv_header_errno_h_complete" >&6; }
7524 if test $gl_cv_header_errno_h_complete = yes; then
7535 if test $gl_cv_have_include_next = yes; then
7536 gl_cv_next_errno_h='<'errno.h'>'
7538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <errno.h>" >&5
7539 $as_echo_n "checking absolute name of <errno.h>... " >&6; }
7540 if ${gl_cv_next_errno_h+:} false; then :
7541 $as_echo_n "(cached) " >&6
7546 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7547 /* end confdefs.h. */
7551 aix*) gl_absname_cpp="$ac_cpp -C" ;;
7552 *) gl_absname_cpp="$ac_cpp" ;;
7557 gl_dirsep_regex='[/\\]'
7560 gl_dirsep_regex='\/'
7563 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
7564 gl_header_literal_regex=`echo 'errno.h' \
7565 | sed -e "$gl_make_literal_regex_sed"`
7566 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
7567 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
7573 gl_cv_absolute_errno_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
7574 sed -n "$gl_absolute_header_sed"`
7576 gl_header=$gl_cv_absolute_errno_h
7577 gl_cv_next_errno_h='"'$gl_header'"'
7581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_errno_h" >&5
7582 $as_echo "$gl_cv_next_errno_h" >&6; }
7584 NEXT_ERRNO_H=$gl_cv_next_errno_h
7586 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
7587 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
7588 gl_next_as_first_directive='<'errno.h'>'
7590 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
7591 gl_next_as_first_directive=$gl_cv_next_errno_h
7593 NEXT_AS_FIRST_DIRECTIVE_ERRNO_H=$gl_next_as_first_directive
7601 if test -n "$ERRNO_H"; then
7602 GL_GENERATE_ERRNO_H_TRUE=
7603 GL_GENERATE_ERRNO_H_FALSE='#'
7605 GL_GENERATE_ERRNO_H_TRUE='#'
7606 GL_GENERATE_ERRNO_H_FALSE=
7610 if test -n "$ERRNO_H"; then
7611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EMULTIHOP value" >&5
7612 $as_echo_n "checking for EMULTIHOP value... " >&6; }
7613 if ${gl_cv_header_errno_h_EMULTIHOP+:} false; then :
7614 $as_echo_n "(cached) " >&6
7617 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7618 /* end confdefs.h. */
7626 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7627 $EGREP "yes" >/dev/null 2>&1; then :
7628 gl_cv_header_errno_h_EMULTIHOP=yes
7630 gl_cv_header_errno_h_EMULTIHOP=no
7634 if test $gl_cv_header_errno_h_EMULTIHOP = no; then
7635 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7636 /* end confdefs.h. */
7638 #define _XOPEN_SOURCE_EXTENDED 1
7645 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7646 $EGREP "yes" >/dev/null 2>&1; then :
7647 gl_cv_header_errno_h_EMULTIHOP=hidden
7651 if test $gl_cv_header_errno_h_EMULTIHOP = hidden; then
7652 if ac_fn_c_compute_int "$LINENO" "EMULTIHOP" "gl_cv_header_errno_h_EMULTIHOP" "
7653 #define _XOPEN_SOURCE_EXTENDED 1
7655 /* The following two lines are a workaround against an autoconf-2.52 bug. */
7666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_EMULTIHOP" >&5
7667 $as_echo "$gl_cv_header_errno_h_EMULTIHOP" >&6; }
7668 case $gl_cv_header_errno_h_EMULTIHOP in
7670 EMULTIHOP_HIDDEN=0; EMULTIHOP_VALUE=
7673 EMULTIHOP_HIDDEN=1; EMULTIHOP_VALUE="$gl_cv_header_errno_h_EMULTIHOP"
7681 if test -n "$ERRNO_H"; then
7682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ENOLINK value" >&5
7683 $as_echo_n "checking for ENOLINK value... " >&6; }
7684 if ${gl_cv_header_errno_h_ENOLINK+:} false; then :
7685 $as_echo_n "(cached) " >&6
7688 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7689 /* end confdefs.h. */
7697 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7698 $EGREP "yes" >/dev/null 2>&1; then :
7699 gl_cv_header_errno_h_ENOLINK=yes
7701 gl_cv_header_errno_h_ENOLINK=no
7705 if test $gl_cv_header_errno_h_ENOLINK = no; then
7706 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7707 /* end confdefs.h. */
7709 #define _XOPEN_SOURCE_EXTENDED 1
7716 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7717 $EGREP "yes" >/dev/null 2>&1; then :
7718 gl_cv_header_errno_h_ENOLINK=hidden
7722 if test $gl_cv_header_errno_h_ENOLINK = hidden; then
7723 if ac_fn_c_compute_int "$LINENO" "ENOLINK" "gl_cv_header_errno_h_ENOLINK" "
7724 #define _XOPEN_SOURCE_EXTENDED 1
7726 /* The following two lines are a workaround against an autoconf-2.52 bug. */
7737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_ENOLINK" >&5
7738 $as_echo "$gl_cv_header_errno_h_ENOLINK" >&6; }
7739 case $gl_cv_header_errno_h_ENOLINK in
7741 ENOLINK_HIDDEN=0; ENOLINK_VALUE=
7744 ENOLINK_HIDDEN=1; ENOLINK_VALUE="$gl_cv_header_errno_h_ENOLINK"
7752 if test -n "$ERRNO_H"; then
7753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EOVERFLOW value" >&5
7754 $as_echo_n "checking for EOVERFLOW value... " >&6; }
7755 if ${gl_cv_header_errno_h_EOVERFLOW+:} false; then :
7756 $as_echo_n "(cached) " >&6
7759 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7760 /* end confdefs.h. */
7768 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7769 $EGREP "yes" >/dev/null 2>&1; then :
7770 gl_cv_header_errno_h_EOVERFLOW=yes
7772 gl_cv_header_errno_h_EOVERFLOW=no
7776 if test $gl_cv_header_errno_h_EOVERFLOW = no; then
7777 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7778 /* end confdefs.h. */
7780 #define _XOPEN_SOURCE_EXTENDED 1
7787 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7788 $EGREP "yes" >/dev/null 2>&1; then :
7789 gl_cv_header_errno_h_EOVERFLOW=hidden
7793 if test $gl_cv_header_errno_h_EOVERFLOW = hidden; then
7794 if ac_fn_c_compute_int "$LINENO" "EOVERFLOW" "gl_cv_header_errno_h_EOVERFLOW" "
7795 #define _XOPEN_SOURCE_EXTENDED 1
7797 /* The following two lines are a workaround against an autoconf-2.52 bug. */
7808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_EOVERFLOW" >&5
7809 $as_echo "$gl_cv_header_errno_h_EOVERFLOW" >&6; }
7810 case $gl_cv_header_errno_h_EOVERFLOW in
7812 EOVERFLOW_HIDDEN=0; EOVERFLOW_VALUE=
7815 EOVERFLOW_HIDDEN=1; EOVERFLOW_VALUE="$gl_cv_header_errno_h_EOVERFLOW"
7827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint.h" >&5
7828 $as_echo_n "checking for stdint.h... " >&6; }
7829 if ${gl_cv_header_stdint_h+:} false; then :
7830 $as_echo_n "(cached) " >&6
7832 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7833 /* end confdefs.h. */
7834 #include <sys/types.h>
7839 uintmax_t i = (uintmax_t) -1; return !i;
7844 if ac_fn_c_try_compile "$LINENO"; then :
7845 gl_cv_header_stdint_h=yes
7847 gl_cv_header_stdint_h=no
7849 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_stdint_h" >&5
7852 $as_echo "$gl_cv_header_stdint_h" >&6; }
7853 if test $gl_cv_header_stdint_h = yes; then
7855 cat >>confdefs.h <<_ACEOF
7856 #define HAVE_STDINT_H_WITH_UINTMAX 1
7862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
7863 $as_echo_n "checking for inttypes.h... " >&6; }
7864 if ${gl_cv_header_inttypes_h+:} false; then :
7865 $as_echo_n "(cached) " >&6
7867 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7868 /* end confdefs.h. */
7870 #include <sys/types.h>
7871 #include <inttypes.h>
7876 uintmax_t i = (uintmax_t) -1; return !i;
7881 if ac_fn_c_try_compile "$LINENO"; then :
7882 gl_cv_header_inttypes_h=yes
7884 gl_cv_header_inttypes_h=no
7886 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_inttypes_h" >&5
7889 $as_echo "$gl_cv_header_inttypes_h" >&6; }
7890 if test $gl_cv_header_inttypes_h = yes; then
7892 cat >>confdefs.h <<_ACEOF
7893 #define HAVE_INTTYPES_H_WITH_UINTMAX 1
7902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether printf supports size specifiers as in C99" >&5
7903 $as_echo_n "checking whether printf supports size specifiers as in C99... " >&6; }
7904 if ${gl_cv_func_printf_sizes_c99+:} false; then :
7905 $as_echo_n "(cached) " >&6
7908 if test "$cross_compiling" = yes; then :
7911 # Guess yes on glibc systems.
7912 *-gnu* | gnu*) gl_cv_func_printf_sizes_c99="guessing yes";;
7913 # Guess yes on FreeBSD >= 5.
7914 freebsd[1-4].*) gl_cv_func_printf_sizes_c99="guessing no";;
7915 freebsd* | kfreebsd*) gl_cv_func_printf_sizes_c99="guessing yes";;
7916 # Guess yes on Mac OS X >= 10.3.
7917 darwin[1-6].*) gl_cv_func_printf_sizes_c99="guessing no";;
7918 darwin*) gl_cv_func_printf_sizes_c99="guessing yes";;
7919 # Guess yes on OpenBSD >= 3.9.
7920 openbsd[1-2].* | openbsd3.[0-8] | openbsd3.[0-8].*)
7921 gl_cv_func_printf_sizes_c99="guessing no";;
7922 openbsd*) gl_cv_func_printf_sizes_c99="guessing yes";;
7923 # Guess yes on Solaris >= 2.10.
7924 solaris2.[1-9][0-9]*) gl_cv_func_printf_sizes_c99="guessing yes";;
7925 solaris*) gl_cv_func_printf_sizes_c99="guessing no";;
7926 # Guess yes on NetBSD >= 3.
7927 netbsd[1-2]* | netbsdelf[1-2]* | netbsdaout[1-2]* | netbsdcoff[1-2]*)
7928 gl_cv_func_printf_sizes_c99="guessing no";;
7929 netbsd*) gl_cv_func_printf_sizes_c99="guessing yes";;
7930 # Guess yes on MSVC, no on mingw.
7931 mingw*) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7932 /* end confdefs.h. */
7939 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7940 $EGREP "Known" >/dev/null 2>&1; then :
7941 gl_cv_func_printf_sizes_c99="guessing yes"
7943 gl_cv_func_printf_sizes_c99="guessing no"
7948 # If we don't know, assume the worst.
7949 *) gl_cv_func_printf_sizes_c99="guessing no";;
7953 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7954 /* end confdefs.h. */
7959 #include <sys/types.h>
7960 #if HAVE_STDINT_H_WITH_UINTMAX
7961 # include <stdint.h>
7963 #if HAVE_INTTYPES_H_WITH_UINTMAX
7964 # include <inttypes.h>
7966 static char buf[100];
7970 #if HAVE_STDINT_H_WITH_UINTMAX || HAVE_INTTYPES_H_WITH_UINTMAX
7972 if (sprintf (buf, "%ju %d", (uintmax_t) 12345671, 33, 44, 55) < 0
7973 || strcmp (buf, "12345671 33") != 0)
7979 if (sprintf (buf, "%zu %d", (size_t) 12345672, 33, 44, 55) < 0
7980 || strcmp (buf, "12345672 33") != 0)
7983 if (sprintf (buf, "%tu %d", (ptrdiff_t) 12345673, 33, 44, 55) < 0
7984 || strcmp (buf, "12345673 33") != 0)
7987 if (sprintf (buf, "%Lg %d", (long double) 1.5, 33, 44, 55) < 0
7988 || strcmp (buf, "1.5 33") != 0)
7993 if ac_fn_c_try_run "$LINENO"; then :
7994 gl_cv_func_printf_sizes_c99=yes
7996 gl_cv_func_printf_sizes_c99=no
7998 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7999 conftest.$ac_objext conftest.beam conftest.$ac_ext
8004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_printf_sizes_c99" >&5
8005 $as_echo "$gl_cv_func_printf_sizes_c99" >&6; }
8009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether printf supports 'long double' arguments" >&5
8010 $as_echo_n "checking whether printf supports 'long double' arguments... " >&6; }
8011 if ${gl_cv_func_printf_long_double+:} false; then :
8012 $as_echo_n "(cached) " >&6
8015 if test "$cross_compiling" = yes; then :
8017 beos*) gl_cv_func_printf_long_double="guessing no";;
8018 # Guess yes on MSVC, no on mingw.
8019 mingw*) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8020 /* end confdefs.h. */
8027 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8028 $EGREP "Known" >/dev/null 2>&1; then :
8029 gl_cv_func_printf_long_double="guessing yes"
8031 gl_cv_func_printf_long_double="guessing no"
8036 *) gl_cv_func_printf_long_double="guessing yes";;
8040 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8041 /* end confdefs.h. */
8045 static char buf[10000];
8050 if (sprintf (buf, "%Lf %d", 1.75L, 33, 44, 55) < 0
8051 || strcmp (buf, "1.750000 33") != 0)
8054 if (sprintf (buf, "%Le %d", 1.75L, 33, 44, 55) < 0
8055 || strcmp (buf, "1.750000e+00 33") != 0)
8058 if (sprintf (buf, "%Lg %d", 1.75L, 33, 44, 55) < 0
8059 || strcmp (buf, "1.75 33") != 0)
8064 if ac_fn_c_try_run "$LINENO"; then :
8065 gl_cv_func_printf_long_double=yes
8067 gl_cv_func_printf_long_double=no
8069 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8070 conftest.$ac_objext conftest.beam conftest.$ac_ext
8075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_printf_long_double" >&5
8076 $as_echo "$gl_cv_func_printf_long_double" >&6; }
8080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether printf supports infinite 'double' arguments" >&5
8081 $as_echo_n "checking whether printf supports infinite 'double' arguments... " >&6; }
8082 if ${gl_cv_func_printf_infinite+:} false; then :
8083 $as_echo_n "(cached) " >&6
8086 if test "$cross_compiling" = yes; then :
8089 # Guess yes on glibc systems.
8090 *-gnu* | gnu*) gl_cv_func_printf_infinite="guessing yes";;
8091 # Guess yes on FreeBSD >= 6.
8092 freebsd[1-5].*) gl_cv_func_printf_infinite="guessing no";;
8093 freebsd* | kfreebsd*) gl_cv_func_printf_infinite="guessing yes";;
8094 # Guess yes on Mac OS X >= 10.3.
8095 darwin[1-6].*) gl_cv_func_printf_infinite="guessing no";;
8096 darwin*) gl_cv_func_printf_infinite="guessing yes";;
8097 # Guess yes on HP-UX >= 11.
8098 hpux[7-9]* | hpux10*) gl_cv_func_printf_infinite="guessing no";;
8099 hpux*) gl_cv_func_printf_infinite="guessing yes";;
8100 # Guess yes on NetBSD >= 3.
8101 netbsd[1-2]* | netbsdelf[1-2]* | netbsdaout[1-2]* | netbsdcoff[1-2]*)
8102 gl_cv_func_printf_infinite="guessing no";;
8103 netbsd*) gl_cv_func_printf_infinite="guessing yes";;
8104 # Guess yes on BeOS.
8105 beos*) gl_cv_func_printf_infinite="guessing yes";;
8106 # Guess yes on MSVC, no on mingw.
8107 mingw*) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8108 /* end confdefs.h. */
8115 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8116 $EGREP "Known" >/dev/null 2>&1; then :
8117 gl_cv_func_printf_infinite="guessing yes"
8119 gl_cv_func_printf_infinite="guessing no"
8124 # If we don't know, assume the worst.
8125 *) gl_cv_func_printf_infinite="guessing no";;
8129 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8130 /* end confdefs.h. */
8135 strisnan (const char *string, size_t start_index, size_t end_index)
8137 if (start_index < end_index)
8139 if (string[start_index] == '-')
8141 if (start_index + 3 <= end_index
8142 && memcmp (string + start_index, "nan", 3) == 0)
8145 if (start_index == end_index
8146 || (string[start_index] == '(' && string[end_index - 1] == ')'))
8155 static double plus_zero = 0.0;
8156 double minus_zero = - plus_zero;
8157 return memcmp (&plus_zero, &minus_zero, sizeof (double)) != 0;
8159 static char buf[10000];
8160 static double zero = 0.0;
8164 if (sprintf (buf, "%f", 1.0 / zero) < 0
8165 || (strcmp (buf, "inf") != 0 && strcmp (buf, "infinity") != 0))
8167 if (sprintf (buf, "%f", -1.0 / zero) < 0
8168 || (strcmp (buf, "-inf") != 0 && strcmp (buf, "-infinity") != 0))
8170 if (sprintf (buf, "%f", zero / zero) < 0
8171 || !strisnan (buf, 0, strlen (buf)))
8173 if (sprintf (buf, "%e", 1.0 / zero) < 0
8174 || (strcmp (buf, "inf") != 0 && strcmp (buf, "infinity") != 0))
8176 if (sprintf (buf, "%e", -1.0 / zero) < 0
8177 || (strcmp (buf, "-inf") != 0 && strcmp (buf, "-infinity") != 0))
8179 if (sprintf (buf, "%e", zero / zero) < 0
8180 || !strisnan (buf, 0, strlen (buf)))
8182 if (sprintf (buf, "%g", 1.0 / zero) < 0
8183 || (strcmp (buf, "inf") != 0 && strcmp (buf, "infinity") != 0))
8185 if (sprintf (buf, "%g", -1.0 / zero) < 0
8186 || (strcmp (buf, "-inf") != 0 && strcmp (buf, "-infinity") != 0))
8188 if (sprintf (buf, "%g", zero / zero) < 0
8189 || !strisnan (buf, 0, strlen (buf)))
8191 /* This test fails on HP-UX 10.20. */
8192 if (have_minus_zero ())
8193 if (sprintf (buf, "%g", - zero) < 0
8194 || strcmp (buf, "-0") != 0)
8199 if ac_fn_c_try_run "$LINENO"; then :
8200 gl_cv_func_printf_infinite=yes
8202 gl_cv_func_printf_infinite=no
8204 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8205 conftest.$ac_objext conftest.beam conftest.$ac_ext
8210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_printf_infinite" >&5
8211 $as_echo "$gl_cv_func_printf_infinite" >&6; }
8214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
8215 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
8216 if ${ac_cv_c_bigendian+:} false; then :
8217 $as_echo_n "(cached) " >&6
8219 ac_cv_c_bigendian=unknown
8220 # See if we're dealing with a universal compiler.
8221 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8222 /* end confdefs.h. */
8223 #ifndef __APPLE_CC__
8224 not a universal capable compiler
8229 if ac_fn_c_try_compile "$LINENO"; then :
8231 # Check for potential -arch flags. It is not universal unless
8232 # there are at least two -arch flags with different values.
8235 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
8236 if test -n "$ac_prev"; then
8238 i?86 | x86_64 | ppc | ppc64)
8239 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
8242 ac_cv_c_bigendian=universal
8248 elif test "x$ac_word" = "x-arch"; then
8253 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8254 if test $ac_cv_c_bigendian = unknown; then
8255 # See if sys/param.h defines the BYTE_ORDER macro.
8256 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8257 /* end confdefs.h. */
8258 #include <sys/types.h>
8259 #include <sys/param.h>
8264 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
8265 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
8274 if ac_fn_c_try_compile "$LINENO"; then :
8275 # It does; now see whether it defined to BIG_ENDIAN or not.
8276 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8277 /* end confdefs.h. */
8278 #include <sys/types.h>
8279 #include <sys/param.h>
8284 #if BYTE_ORDER != BIG_ENDIAN
8292 if ac_fn_c_try_compile "$LINENO"; then :
8293 ac_cv_c_bigendian=yes
8295 ac_cv_c_bigendian=no
8297 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8299 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8301 if test $ac_cv_c_bigendian = unknown; then
8302 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
8303 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8304 /* end confdefs.h. */
8310 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
8318 if ac_fn_c_try_compile "$LINENO"; then :
8319 # It does; now see whether it defined to _BIG_ENDIAN or not.
8320 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8321 /* end confdefs.h. */
8335 if ac_fn_c_try_compile "$LINENO"; then :
8336 ac_cv_c_bigendian=yes
8338 ac_cv_c_bigendian=no
8340 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8342 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8344 if test $ac_cv_c_bigendian = unknown; then
8345 # Compile a test program.
8346 if test "$cross_compiling" = yes; then :
8347 # Try to guess by grepping values from an object file.
8348 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8349 /* end confdefs.h. */
8350 short int ascii_mm[] =
8351 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
8352 short int ascii_ii[] =
8353 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
8354 int use_ascii (int i) {
8355 return ascii_mm[i] + ascii_ii[i];
8357 short int ebcdic_ii[] =
8358 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
8359 short int ebcdic_mm[] =
8360 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
8361 int use_ebcdic (int i) {
8362 return ebcdic_mm[i] + ebcdic_ii[i];
8369 return use_ascii (foo) == use_ebcdic (foo);
8374 if ac_fn_c_try_compile "$LINENO"; then :
8375 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
8376 ac_cv_c_bigendian=yes
8378 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
8379 if test "$ac_cv_c_bigendian" = unknown; then
8380 ac_cv_c_bigendian=no
8382 # finding both strings is unlikely to happen, but who knows?
8383 ac_cv_c_bigendian=unknown
8387 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8389 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8390 /* end confdefs.h. */
8391 $ac_includes_default
8396 /* Are we little or big endian? From Harbison&Steele. */
8400 char c[sizeof (long int)];
8403 return u.c[sizeof (long int) - 1] == 1;
8409 if ac_fn_c_try_run "$LINENO"; then :
8410 ac_cv_c_bigendian=no
8412 ac_cv_c_bigendian=yes
8414 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8415 conftest.$ac_objext conftest.beam conftest.$ac_ext
8420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
8421 $as_echo "$ac_cv_c_bigendian" >&6; }
8422 case $ac_cv_c_bigendian in #(
8424 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
8430 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
8434 as_fn_error $? "unknown endianness
8435 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
8440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether long double and double are the same" >&5
8441 $as_echo_n "checking whether long double and double are the same... " >&6; }
8442 if ${gl_cv_long_double_equals_double+:} false; then :
8443 $as_echo_n "(cached) " >&6
8445 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8446 /* end confdefs.h. */
8451 typedef int check[sizeof (long double) == sizeof (double)
8452 && LDBL_MANT_DIG == DBL_MANT_DIG
8453 && LDBL_MAX_EXP == DBL_MAX_EXP
8454 && LDBL_MIN_EXP == DBL_MIN_EXP
8461 if ac_fn_c_try_compile "$LINENO"; then :
8462 gl_cv_long_double_equals_double=yes
8464 gl_cv_long_double_equals_double=no
8466 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_long_double_equals_double" >&5
8470 $as_echo "$gl_cv_long_double_equals_double" >&6; }
8471 if test $gl_cv_long_double_equals_double = yes; then
8473 $as_echo "#define HAVE_SAME_LONG_DOUBLE_AS_DOUBLE 1" >>confdefs.h
8475 HAVE_SAME_LONG_DOUBLE_AS_DOUBLE=1
8477 HAVE_SAME_LONG_DOUBLE_AS_DOUBLE=0
8486 if test -n "$gl_printf_safe"; then
8488 $as_echo "#define CHECK_PRINTF_SAFE 1" >>confdefs.h
8491 case "$gl_cv_func_printf_long_double" in
8493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether printf supports infinite 'long double' arguments" >&5
8494 $as_echo_n "checking whether printf supports infinite 'long double' arguments... " >&6; }
8495 if ${gl_cv_func_printf_infinite_long_double+:} false; then :
8496 $as_echo_n "(cached) " >&6
8499 if test "$cross_compiling" = yes; then :
8501 # Guess no on ia64, x86_64, i386.
8502 ia64 | x86_64 | i*86) gl_cv_func_printf_infinite_long_double="guessing no";;
8505 # Guess yes on glibc systems.
8506 *-gnu* | gnu*) gl_cv_func_printf_infinite_long_double="guessing yes";;
8507 # Guess yes on FreeBSD >= 6.
8508 freebsd[1-5].*) gl_cv_func_printf_infinite_long_double="guessing no";;
8509 freebsd* | kfreebsd*) gl_cv_func_printf_infinite_long_double="guessing yes";;
8510 # Guess yes on HP-UX >= 11.
8511 hpux[7-9]* | hpux10*) gl_cv_func_printf_infinite_long_double="guessing no";;
8512 hpux*) gl_cv_func_printf_infinite_long_double="guessing yes";;
8513 # Guess yes on MSVC, no on mingw.
8514 mingw*) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8515 /* end confdefs.h. */
8522 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8523 $EGREP "Known" >/dev/null 2>&1; then :
8524 gl_cv_func_printf_infinite_long_double="guessing yes"
8526 gl_cv_func_printf_infinite_long_double="guessing no"
8531 # If we don't know, assume the worst.
8532 *) gl_cv_func_printf_infinite_long_double="guessing no";;
8538 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8539 /* end confdefs.h. */
8543 #if defined __MACH__ && defined __APPLE__
8544 /* Avoid a crash on Mac OS X. */
8545 #include <mach/mach.h>
8546 #include <mach/mach_error.h>
8547 #include <mach/thread_status.h>
8548 #include <mach/exception.h>
8549 #include <mach/task.h>
8550 #include <pthread.h>
8551 /* The exception port on which our thread listens. */
8552 static mach_port_t our_exception_port;
8553 /* The main function of the thread listening for exceptions of type
8556 mach_exception_thread (void *arg)
8558 /* Buffer for a message to be received. */
8560 mach_msg_header_t head;
8561 mach_msg_body_t msgh_body;
8564 mach_msg_return_t retval;
8565 /* Wait for a message on the exception port. */
8566 retval = mach_msg (&msg.head, MACH_RCV_MSG | MACH_RCV_LARGE, 0, sizeof (msg),
8567 our_exception_port, MACH_MSG_TIMEOUT_NONE, MACH_PORT_NULL);
8568 if (retval != MACH_MSG_SUCCESS)
8575 mach_port_t self = mach_task_self ();
8576 /* Allocate a port on which the thread shall listen for exceptions. */
8577 if (mach_port_allocate (self, MACH_PORT_RIGHT_RECEIVE, &our_exception_port)
8579 /* See http://web.mit.edu/darwin/src/modules/xnu/osfmk/man/mach_port_insert_right.html. */
8580 if (mach_port_insert_right (self, our_exception_port, our_exception_port,
8581 MACH_MSG_TYPE_MAKE_SEND)
8583 /* The exceptions we want to catch. Only EXC_BAD_ACCESS is interesting
8585 exception_mask_t mask = EXC_MASK_BAD_ACCESS;
8586 /* Create the thread listening on the exception port. */
8587 pthread_attr_t attr;
8589 if (pthread_attr_init (&attr) == 0
8590 && pthread_attr_setdetachstate (&attr, PTHREAD_CREATE_DETACHED) == 0
8591 && pthread_create (&thread, &attr, mach_exception_thread, NULL) == 0) {
8592 pthread_attr_destroy (&attr);
8593 /* Replace the exception port info for these exceptions with our own.
8594 Note that we replace the exception port for the entire task, not only
8595 for a particular thread. This has the effect that when our exception
8596 port gets the message, the thread specific exception port has already
8597 been asked, and we don't need to bother about it.
8598 See http://web.mit.edu/darwin/src/modules/xnu/osfmk/man/task_set_exception_ports.html. */
8599 task_set_exception_ports (self, mask, our_exception_port,
8600 EXCEPTION_DEFAULT, MACHINE_THREAD_STATE);
8605 #elif defined _WIN32 && ! defined __CYGWIN__
8606 /* Avoid a crash on native Windows. */
8607 #define WIN32_LEAN_AND_MEAN
8608 #include <windows.h>
8609 #include <winerror.h>
8611 exception_filter (EXCEPTION_POINTERS *ExceptionInfo)
8613 switch (ExceptionInfo->ExceptionRecord->ExceptionCode)
8615 case EXCEPTION_ACCESS_VIOLATION:
8616 case EXCEPTION_IN_PAGE_ERROR:
8617 case EXCEPTION_STACK_OVERFLOW:
8618 case EXCEPTION_GUARD_PAGE:
8619 case EXCEPTION_PRIV_INSTRUCTION:
8620 case EXCEPTION_ILLEGAL_INSTRUCTION:
8621 case EXCEPTION_DATATYPE_MISALIGNMENT:
8622 case EXCEPTION_ARRAY_BOUNDS_EXCEEDED:
8623 case EXCEPTION_NONCONTINUABLE_EXCEPTION:
8626 return EXCEPTION_CONTINUE_SEARCH;
8631 SetUnhandledExceptionFilter ((LPTOP_LEVEL_EXCEPTION_FILTER) exception_filter);
8634 /* Avoid a crash on POSIX systems. */
8637 /* A POSIX signal handler. */
8639 exception_handler (int sig)
8647 signal (SIGSEGV, exception_handler);
8650 signal (SIGBUS, exception_handler);
8659 strisnan (const char *string, size_t start_index, size_t end_index)
8661 if (start_index < end_index)
8663 if (string[start_index] == '-')
8665 if (start_index + 3 <= end_index
8666 && memcmp (string + start_index, "nan", 3) == 0)
8669 if (start_index == end_index
8670 || (string[start_index] == '(' && string[end_index - 1] == ')'))
8676 static char buf[10000];
8677 static long double zeroL = 0.0L;
8682 if (sprintf (buf, "%Lf", 1.0L / zeroL) < 0
8683 || (strcmp (buf, "inf") != 0 && strcmp (buf, "infinity") != 0))
8685 if (sprintf (buf, "%Lf", -1.0L / zeroL) < 0
8686 || (strcmp (buf, "-inf") != 0 && strcmp (buf, "-infinity") != 0))
8688 if (sprintf (buf, "%Lf", zeroL / zeroL) < 0
8689 || !strisnan (buf, 0, strlen (buf)))
8691 if (sprintf (buf, "%Le", 1.0L / zeroL) < 0
8692 || (strcmp (buf, "inf") != 0 && strcmp (buf, "infinity") != 0))
8694 if (sprintf (buf, "%Le", -1.0L / zeroL) < 0
8695 || (strcmp (buf, "-inf") != 0 && strcmp (buf, "-infinity") != 0))
8697 if (sprintf (buf, "%Le", zeroL / zeroL) < 0
8698 || !strisnan (buf, 0, strlen (buf)))
8700 if (sprintf (buf, "%Lg", 1.0L / zeroL) < 0
8701 || (strcmp (buf, "inf") != 0 && strcmp (buf, "infinity") != 0))
8703 if (sprintf (buf, "%Lg", -1.0L / zeroL) < 0
8704 || (strcmp (buf, "-inf") != 0 && strcmp (buf, "-infinity") != 0))
8706 if (sprintf (buf, "%Lg", zeroL / zeroL) < 0
8707 || !strisnan (buf, 0, strlen (buf)))
8709 #if CHECK_PRINTF_SAFE && ((defined __ia64 && LDBL_MANT_DIG == 64) || (defined __x86_64__ || defined __amd64__) || (defined __i386 || defined __i386__ || defined _I386 || defined _M_IX86 || defined _X86_)) && !HAVE_SAME_LONG_DOUBLE_AS_DOUBLE
8710 /* Representation of an 80-bit 'long double' as an initializer for a sequence
8711 of 'unsigned int' words. */
8712 # ifdef WORDS_BIGENDIAN
8713 # define LDBL80_WORDS(exponent,manthi,mantlo) \
8714 { ((unsigned int) (exponent) << 16) | ((unsigned int) (manthi) >> 16), \
8715 ((unsigned int) (manthi) << 16) | ((unsigned int) (mantlo) >> 16), \
8716 (unsigned int) (mantlo) << 16 \
8719 # define LDBL80_WORDS(exponent,manthi,mantlo) \
8720 { mantlo, manthi, exponent }
8723 static union { unsigned int word[4]; long double value; } x =
8724 { LDBL80_WORDS (0xFFFF, 0xC3333333, 0x00000000) };
8725 if (sprintf (buf, "%Lf", x.value) < 0
8726 || !strisnan (buf, 0, strlen (buf)))
8728 if (sprintf (buf, "%Le", x.value) < 0
8729 || !strisnan (buf, 0, strlen (buf)))
8731 if (sprintf (buf, "%Lg", x.value) < 0
8732 || !strisnan (buf, 0, strlen (buf)))
8736 /* Signalling NaN. */
8737 static union { unsigned int word[4]; long double value; } x =
8738 { LDBL80_WORDS (0xFFFF, 0x83333333, 0x00000000) };
8739 if (sprintf (buf, "%Lf", x.value) < 0
8740 || !strisnan (buf, 0, strlen (buf)))
8742 if (sprintf (buf, "%Le", x.value) < 0
8743 || !strisnan (buf, 0, strlen (buf)))
8745 if (sprintf (buf, "%Lg", x.value) < 0
8746 || !strisnan (buf, 0, strlen (buf)))
8750 static union { unsigned int word[4]; long double value; } x =
8751 { LDBL80_WORDS (0xFFFF, 0x40000001, 0x00000000) };
8752 if (sprintf (buf, "%Lf", x.value) <= 0)
8754 if (sprintf (buf, "%Le", x.value) <= 0)
8756 if (sprintf (buf, "%Lg", x.value) <= 0)
8759 { /* Pseudo-Infinity. */
8760 static union { unsigned int word[4]; long double value; } x =
8761 { LDBL80_WORDS (0xFFFF, 0x00000000, 0x00000000) };
8762 if (sprintf (buf, "%Lf", x.value) <= 0)
8764 if (sprintf (buf, "%Le", x.value) <= 0)
8766 if (sprintf (buf, "%Lg", x.value) <= 0)
8769 { /* Pseudo-Zero. */
8770 static union { unsigned int word[4]; long double value; } x =
8771 { LDBL80_WORDS (0x4004, 0x00000000, 0x00000000) };
8772 if (sprintf (buf, "%Lf", x.value) <= 0)
8774 if (sprintf (buf, "%Le", x.value) <= 0)
8776 if (sprintf (buf, "%Lg", x.value) <= 0)
8779 { /* Unnormalized number. */
8780 static union { unsigned int word[4]; long double value; } x =
8781 { LDBL80_WORDS (0x4000, 0x63333333, 0x00000000) };
8782 if (sprintf (buf, "%Lf", x.value) <= 0)
8784 if (sprintf (buf, "%Le", x.value) <= 0)
8786 if (sprintf (buf, "%Lg", x.value) <= 0)
8789 { /* Pseudo-Denormal. */
8790 static union { unsigned int word[4]; long double value; } x =
8791 { LDBL80_WORDS (0x0000, 0x83333333, 0x00000000) };
8792 if (sprintf (buf, "%Lf", x.value) <= 0)
8794 if (sprintf (buf, "%Le", x.value) <= 0)
8796 if (sprintf (buf, "%Lg", x.value) <= 0)
8803 if ac_fn_c_try_run "$LINENO"; then :
8804 gl_cv_func_printf_infinite_long_double=yes
8806 gl_cv_func_printf_infinite_long_double=no
8808 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8809 conftest.$ac_objext conftest.beam conftest.$ac_ext
8814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_printf_infinite_long_double" >&5
8815 $as_echo "$gl_cv_func_printf_infinite_long_double" >&6; }
8818 gl_cv_func_printf_infinite_long_double="irrelevant"
8824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether printf supports the 'a' and 'A' directives" >&5
8825 $as_echo_n "checking whether printf supports the 'a' and 'A' directives... " >&6; }
8826 if ${gl_cv_func_printf_directive_a+:} false; then :
8827 $as_echo_n "(cached) " >&6
8830 if test "$cross_compiling" = yes; then :
8833 # Guess yes on glibc >= 2.5 systems.
8835 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8836 /* end confdefs.h. */
8838 #include <features.h>
8839 #ifdef __GNU_LIBRARY__
8840 #if ((__GLIBC__ == 2 && __GLIBC_MINOR__ >= 5) || (__GLIBC__ > 2)) && !defined __UCLIBC__
8846 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8847 $EGREP "BZ2908" >/dev/null 2>&1; then :
8848 gl_cv_func_printf_directive_a="guessing yes"
8850 gl_cv_func_printf_directive_a="guessing no"
8855 # Guess no on native Windows.
8856 mingw*) gl_cv_func_printf_directive_a="guessing no";;
8857 # If we don't know, assume the worst.
8858 *) gl_cv_func_printf_directive_a="guessing no";;
8862 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8863 /* end confdefs.h. */
8867 static char buf[100];
8868 static double zero = 0.0;
8872 if (sprintf (buf, "%a %d", 3.1416015625, 33, 44, 55) < 0
8873 || (strcmp (buf, "0x1.922p+1 33") != 0
8874 && strcmp (buf, "0x3.244p+0 33") != 0
8875 && strcmp (buf, "0x6.488p-1 33") != 0
8876 && strcmp (buf, "0xc.91p-2 33") != 0))
8878 if (sprintf (buf, "%A %d", -3.1416015625, 33, 44, 55) < 0
8879 || (strcmp (buf, "-0X1.922P+1 33") != 0
8880 && strcmp (buf, "-0X3.244P+0 33") != 0
8881 && strcmp (buf, "-0X6.488P-1 33") != 0
8882 && strcmp (buf, "-0XC.91P-2 33") != 0))
8884 /* This catches a FreeBSD 6.1 bug: it doesn't round. */
8885 if (sprintf (buf, "%.2a %d", 1.51, 33, 44, 55) < 0
8886 || (strcmp (buf, "0x1.83p+0 33") != 0
8887 && strcmp (buf, "0x3.05p-1 33") != 0
8888 && strcmp (buf, "0x6.0ap-2 33") != 0
8889 && strcmp (buf, "0xc.14p-3 33") != 0))
8891 /* This catches a Mac OS X 10.12.4 (Darwin 16.5) bug: it doesn't round. */
8892 if (sprintf (buf, "%.0a %d", 1.51, 33, 44, 55) < 0
8893 || (strcmp (buf, "0x2p+0 33") != 0
8894 && strcmp (buf, "0x3p-1 33") != 0
8895 && strcmp (buf, "0x6p-2 33") != 0
8896 && strcmp (buf, "0xcp-3 33") != 0))
8898 /* This catches a FreeBSD 6.1 bug. See
8899 <https://lists.gnu.org/r/bug-gnulib/2007-04/msg00107.html> */
8900 if (sprintf (buf, "%010a %d", 1.0 / zero, 33, 44, 55) < 0
8903 /* This catches a Mac OS X 10.3.9 (Darwin 7.9) bug. */
8904 if (sprintf (buf, "%.1a", 1.999) < 0
8905 || (strcmp (buf, "0x1.0p+1") != 0
8906 && strcmp (buf, "0x2.0p+0") != 0
8907 && strcmp (buf, "0x4.0p-1") != 0
8908 && strcmp (buf, "0x8.0p-2") != 0))
8910 /* This catches the same Mac OS X 10.3.9 (Darwin 7.9) bug and also a
8911 glibc 2.4 bug <https://sourceware.org/bugzilla/show_bug.cgi?id=2908>. */
8912 if (sprintf (buf, "%.1La", 1.999L) < 0
8913 || (strcmp (buf, "0x1.0p+1") != 0
8914 && strcmp (buf, "0x2.0p+0") != 0
8915 && strcmp (buf, "0x4.0p-1") != 0
8916 && strcmp (buf, "0x8.0p-2") != 0))
8921 if ac_fn_c_try_run "$LINENO"; then :
8922 gl_cv_func_printf_directive_a=yes
8924 gl_cv_func_printf_directive_a=no
8926 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8927 conftest.$ac_objext conftest.beam conftest.$ac_ext
8932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_printf_directive_a" >&5
8933 $as_echo "$gl_cv_func_printf_directive_a" >&6; }
8937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether printf supports the 'F' directive" >&5
8938 $as_echo_n "checking whether printf supports the 'F' directive... " >&6; }
8939 if ${gl_cv_func_printf_directive_f+:} false; then :
8940 $as_echo_n "(cached) " >&6
8943 if test "$cross_compiling" = yes; then :
8946 # Guess yes on glibc systems.
8947 *-gnu* | gnu*) gl_cv_func_printf_directive_f="guessing yes";;
8948 # Guess yes on FreeBSD >= 6.
8949 freebsd[1-5].*) gl_cv_func_printf_directive_f="guessing no";;
8950 freebsd* | kfreebsd*) gl_cv_func_printf_directive_f="guessing yes";;
8951 # Guess yes on Mac OS X >= 10.3.
8952 darwin[1-6].*) gl_cv_func_printf_directive_f="guessing no";;
8953 darwin*) gl_cv_func_printf_directive_f="guessing yes";;
8954 # Guess yes on Solaris >= 2.10.
8955 solaris2.[1-9][0-9]*) gl_cv_func_printf_directive_f="guessing yes";;
8956 solaris*) gl_cv_func_printf_directive_f="guessing no";;
8957 # Guess yes on MSVC, no on mingw.
8958 mingw*) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8959 /* end confdefs.h. */
8966 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8967 $EGREP "Known" >/dev/null 2>&1; then :
8968 gl_cv_func_printf_directive_f="guessing yes"
8970 gl_cv_func_printf_directive_f="guessing no"
8975 # If we don't know, assume the worst.
8976 *) gl_cv_func_printf_directive_f="guessing no";;
8980 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8981 /* end confdefs.h. */
8985 static char buf[100];
8986 static double zero = 0.0;
8990 if (sprintf (buf, "%F %d", 1234567.0, 33, 44, 55) < 0
8991 || strcmp (buf, "1234567.000000 33") != 0)
8993 if (sprintf (buf, "%F", 1.0 / zero) < 0
8994 || (strcmp (buf, "INF") != 0 && strcmp (buf, "INFINITY") != 0))
8996 /* This catches a Cygwin 1.5.x bug. */
8997 if (sprintf (buf, "%.F", 1234.0) < 0
8998 || strcmp (buf, "1234") != 0)
9003 if ac_fn_c_try_run "$LINENO"; then :
9004 gl_cv_func_printf_directive_f=yes
9006 gl_cv_func_printf_directive_f=no
9008 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9009 conftest.$ac_objext conftest.beam conftest.$ac_ext
9014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_printf_directive_f" >&5
9015 $as_echo "$gl_cv_func_printf_directive_f" >&6; }
9019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether printf supports the 'n' directive" >&5
9020 $as_echo_n "checking whether printf supports the 'n' directive... " >&6; }
9021 if ${gl_cv_func_printf_directive_n+:} false; then :
9022 $as_echo_n "(cached) " >&6
9025 if test "$cross_compiling" = yes; then :
9027 # Guess no on native Windows.
9028 mingw*) gl_cv_func_printf_directive_n="guessing no";;
9029 *) gl_cv_func_printf_directive_n="guessing yes";;
9033 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9034 /* end confdefs.h. */
9040 /* See page about "Parameter Validation" on msdn.microsoft.com. */
9042 invalid_parameter_handler (const wchar_t *expression,
9043 const wchar_t *function,
9044 const wchar_t *file, unsigned int line,
9050 static char fmtstring[10];
9051 static char buf[100];
9056 _set_invalid_parameter_handler (invalid_parameter_handler);
9058 /* Copy the format string. Some systems (glibc with _FORTIFY_SOURCE=2)
9059 support %n in format strings in read-only memory but not in writable
9061 strcpy (fmtstring, "%d %n");
9062 if (sprintf (buf, fmtstring, 123, &count, 33, 44, 55) < 0
9063 || strcmp (buf, "123 ") != 0
9069 if ac_fn_c_try_run "$LINENO"; then :
9070 gl_cv_func_printf_directive_n=yes
9072 gl_cv_func_printf_directive_n=no
9074 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9075 conftest.$ac_objext conftest.beam conftest.$ac_ext
9080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_printf_directive_n" >&5
9081 $as_echo "$gl_cv_func_printf_directive_n" >&6; }
9085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether printf supports the 'ls' directive" >&5
9086 $as_echo_n "checking whether printf supports the 'ls' directive... " >&6; }
9087 if ${gl_cv_func_printf_directive_ls+:} false; then :
9088 $as_echo_n "(cached) " >&6
9091 if test "$cross_compiling" = yes; then :
9094 openbsd*) gl_cv_func_printf_directive_ls="guessing no";;
9095 irix*) gl_cv_func_printf_directive_ls="guessing no";;
9096 solaris*) gl_cv_func_printf_directive_ls="guessing no";;
9097 cygwin*) gl_cv_func_printf_directive_ls="guessing no";;
9098 beos* | haiku*) gl_cv_func_printf_directive_ls="guessing no";;
9099 # Guess yes on native Windows.
9100 mingw*) gl_cv_func_printf_directive_ls="guessing yes";;
9101 *) gl_cv_func_printf_directive_ls="guessing yes";;
9105 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9106 /* end confdefs.h. */
9108 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
9110 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
9111 included before <wchar.h>. */
9121 /* Test whether %ls works at all.
9122 This test fails on OpenBSD 4.0, IRIX 6.5, Solaris 2.6, Haiku, but not on
9125 static const wchar_t wstring[] = { 'a', 'b', 'c', 0 };
9127 if (sprintf (buf, "%ls", wstring) < 0
9128 || strcmp (buf, "abc") != 0)
9131 /* This test fails on IRIX 6.5, Solaris 2.6, Cygwin 1.5, Haiku (with an
9132 assertion failure inside libc), but not on OpenBSD 4.0. */
9134 static const wchar_t wstring[] = { 'a', 0 };
9136 if (sprintf (buf, "%ls", wstring) < 0
9137 || strcmp (buf, "a") != 0)
9140 /* Test whether precisions in %ls are supported as specified in ISO C 99
9142 "If a precision is specified, no more than that many bytes are written
9143 (including shift sequences, if any), and the array shall contain a
9144 null wide character if, to equal the multibyte character sequence
9145 length given by the precision, the function would need to access a
9146 wide character one past the end of the array."
9147 This test fails on Solaris 10. */
9149 static const wchar_t wstring[] = { 'a', 'b', (wchar_t) 0xfdfdfdfd, 0 };
9151 if (sprintf (buf, "%.2ls", wstring) < 0
9152 || strcmp (buf, "ab") != 0)
9158 if ac_fn_c_try_run "$LINENO"; then :
9159 gl_cv_func_printf_directive_ls=yes
9161 gl_cv_func_printf_directive_ls=no
9163 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9164 conftest.$ac_objext conftest.beam conftest.$ac_ext
9169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_printf_directive_ls" >&5
9170 $as_echo "$gl_cv_func_printf_directive_ls" >&6; }
9174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether printf supports POSIX/XSI format strings with positions" >&5
9175 $as_echo_n "checking whether printf supports POSIX/XSI format strings with positions... " >&6; }
9176 if ${gl_cv_func_printf_positions+:} false; then :
9177 $as_echo_n "(cached) " >&6
9180 if test "$cross_compiling" = yes; then :
9183 netbsd[1-3]* | netbsdelf[1-3]* | netbsdaout[1-3]* | netbsdcoff[1-3]*)
9184 gl_cv_func_printf_positions="guessing no";;
9185 beos*) gl_cv_func_printf_positions="guessing no";;
9186 # Guess no on native Windows.
9187 mingw* | pw*) gl_cv_func_printf_positions="guessing no";;
9188 *) gl_cv_func_printf_positions="guessing yes";;
9192 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9193 /* end confdefs.h. */
9197 /* The string "%2$d %1$d", with dollar characters protected from the shell's
9198 dollar expansion (possibly an autoconf bug). */
9199 static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' };
9200 static char buf[100];
9203 sprintf (buf, format, 33, 55);
9204 return (strcmp (buf, "55 33") != 0);
9207 if ac_fn_c_try_run "$LINENO"; then :
9208 gl_cv_func_printf_positions=yes
9210 gl_cv_func_printf_positions=no
9212 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9213 conftest.$ac_objext conftest.beam conftest.$ac_ext
9218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_printf_positions" >&5
9219 $as_echo "$gl_cv_func_printf_positions" >&6; }
9223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether printf supports the grouping flag" >&5
9224 $as_echo_n "checking whether printf supports the grouping flag... " >&6; }
9225 if ${gl_cv_func_printf_flag_grouping+:} false; then :
9226 $as_echo_n "(cached) " >&6
9229 if test "$cross_compiling" = yes; then :
9232 cygwin*) gl_cv_func_printf_flag_grouping="guessing no";;
9233 netbsd*) gl_cv_func_printf_flag_grouping="guessing no";;
9234 # Guess no on native Windows.
9235 mingw* | pw*) gl_cv_func_printf_flag_grouping="guessing no";;
9236 *) gl_cv_func_printf_flag_grouping="guessing yes";;
9240 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9241 /* end confdefs.h. */
9245 static char buf[100];
9248 if (sprintf (buf, "%'d %d", 1234567, 99) < 0
9249 || buf[strlen (buf) - 1] != '9')
9254 if ac_fn_c_try_run "$LINENO"; then :
9255 gl_cv_func_printf_flag_grouping=yes
9257 gl_cv_func_printf_flag_grouping=no
9259 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9260 conftest.$ac_objext conftest.beam conftest.$ac_ext
9265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_printf_flag_grouping" >&5
9266 $as_echo "$gl_cv_func_printf_flag_grouping" >&6; }
9270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether printf supports the left-adjust flag correctly" >&5
9271 $as_echo_n "checking whether printf supports the left-adjust flag correctly... " >&6; }
9272 if ${gl_cv_func_printf_flag_leftadjust+:} false; then :
9273 $as_echo_n "(cached) " >&6
9276 if test "$cross_compiling" = yes; then :
9279 # Guess yes on HP-UX 11.
9280 hpux11*) gl_cv_func_printf_flag_leftadjust="guessing yes";;
9281 # Guess no on HP-UX 10 and older.
9282 hpux*) gl_cv_func_printf_flag_leftadjust="guessing no";;
9283 # Guess yes on native Windows.
9284 mingw*) gl_cv_func_printf_flag_leftadjust="guessing yes";;
9285 # Guess yes otherwise.
9286 *) gl_cv_func_printf_flag_leftadjust="guessing yes";;
9290 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9291 /* end confdefs.h. */
9295 static char buf[100];
9298 /* Check that a '-' flag is not annihilated by a negative width. */
9299 if (sprintf (buf, "a%-*sc", -3, "b") < 0
9300 || strcmp (buf, "ab c") != 0)
9305 if ac_fn_c_try_run "$LINENO"; then :
9306 gl_cv_func_printf_flag_leftadjust=yes
9308 gl_cv_func_printf_flag_leftadjust=no
9310 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9311 conftest.$ac_objext conftest.beam conftest.$ac_ext
9316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_printf_flag_leftadjust" >&5
9317 $as_echo "$gl_cv_func_printf_flag_leftadjust" >&6; }
9321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether printf supports the zero flag correctly" >&5
9322 $as_echo_n "checking whether printf supports the zero flag correctly... " >&6; }
9323 if ${gl_cv_func_printf_flag_zero+:} false; then :
9324 $as_echo_n "(cached) " >&6
9327 if test "$cross_compiling" = yes; then :
9330 # Guess yes on glibc systems.
9331 *-gnu* | gnu*) gl_cv_func_printf_flag_zero="guessing yes";;
9332 # Guess yes on BeOS.
9333 beos*) gl_cv_func_printf_flag_zero="guessing yes";;
9334 # Guess no on native Windows.
9335 mingw*) gl_cv_func_printf_flag_zero="guessing no";;
9336 # If we don't know, assume the worst.
9337 *) gl_cv_func_printf_flag_zero="guessing no";;
9341 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9342 /* end confdefs.h. */
9346 static char buf[100];
9347 static double zero = 0.0;
9350 if (sprintf (buf, "%010f", 1.0 / zero, 33, 44, 55) < 0
9351 || (strcmp (buf, " inf") != 0
9352 && strcmp (buf, " infinity") != 0))
9357 if ac_fn_c_try_run "$LINENO"; then :
9358 gl_cv_func_printf_flag_zero=yes
9360 gl_cv_func_printf_flag_zero=no
9362 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9363 conftest.$ac_objext conftest.beam conftest.$ac_ext
9368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_printf_flag_zero" >&5
9369 $as_echo "$gl_cv_func_printf_flag_zero" >&6; }
9373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether printf supports large precisions" >&5
9374 $as_echo_n "checking whether printf supports large precisions... " >&6; }
9375 if ${gl_cv_func_printf_precision+:} false; then :
9376 $as_echo_n "(cached) " >&6
9379 if test "$cross_compiling" = yes; then :
9382 # Guess no only on Solaris, native Windows, and BeOS systems.
9383 solaris*) gl_cv_func_printf_precision="guessing no" ;;
9384 mingw* | pw*) gl_cv_func_printf_precision="guessing no" ;;
9385 beos*) gl_cv_func_printf_precision="guessing no" ;;
9386 *) gl_cv_func_printf_precision="guessing yes" ;;
9390 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9391 /* end confdefs.h. */
9395 static char buf[5000];
9400 /* On BeOS, this would crash and show a dialog box. Avoid the crash. */
9403 if (sprintf (buf, "%.4000d %d", 1, 33, 44) < 4000 + 3)
9405 if (sprintf (buf, "%.4000f %d", 1.0, 33, 44) < 4000 + 5)
9407 if (sprintf (buf, "%.511f %d", 1.0, 33, 44) < 511 + 5
9410 if (sprintf (buf, "%.999f %d", 1.0, 33, 44) < 999 + 5
9416 if ac_fn_c_try_run "$LINENO"; then :
9417 gl_cv_func_printf_precision=yes
9419 gl_cv_func_printf_precision=no
9421 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9422 conftest.$ac_objext conftest.beam conftest.$ac_ext
9427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_printf_precision" >&5
9428 $as_echo "$gl_cv_func_printf_precision" >&6; }
9431 gl_cv_c_multiarch=no
9432 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9433 /* end confdefs.h. */
9434 #ifndef __APPLE_CC__
9435 not a universal capable compiler
9440 if ac_fn_c_try_compile "$LINENO"; then :
9444 for word in ${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS}; do
9445 if test -n "$prev"; then
9447 i?86 | x86_64 | ppc | ppc64)
9448 if test -z "$arch" || test "$arch" = "$word"; then
9451 gl_cv_c_multiarch=yes
9457 if test "x$word" = "x-arch"; then
9464 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9465 if test $gl_cv_c_multiarch = yes; then
9466 APPLE_UNIVERSAL_BUILD=1
9468 APPLE_UNIVERSAL_BUILD=0
9475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether printf survives out-of-memory conditions" >&5
9476 $as_echo_n "checking whether printf survives out-of-memory conditions... " >&6; }
9477 if ${gl_cv_func_printf_enomem+:} false; then :
9478 $as_echo_n "(cached) " >&6
9481 gl_cv_func_printf_enomem="guessing no"
9482 if test "$cross_compiling" = no; then
9483 if test $APPLE_UNIVERSAL_BUILD = 0; then
9484 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9485 /* end confdefs.h. */
9489 #if defined __MACH__ && defined __APPLE__
9490 /* Avoid a crash on Mac OS X. */
9491 #include <mach/mach.h>
9492 #include <mach/mach_error.h>
9493 #include <mach/thread_status.h>
9494 #include <mach/exception.h>
9495 #include <mach/task.h>
9496 #include <pthread.h>
9497 /* The exception port on which our thread listens. */
9498 static mach_port_t our_exception_port;
9499 /* The main function of the thread listening for exceptions of type
9502 mach_exception_thread (void *arg)
9504 /* Buffer for a message to be received. */
9506 mach_msg_header_t head;
9507 mach_msg_body_t msgh_body;
9510 mach_msg_return_t retval;
9511 /* Wait for a message on the exception port. */
9512 retval = mach_msg (&msg.head, MACH_RCV_MSG | MACH_RCV_LARGE, 0, sizeof (msg),
9513 our_exception_port, MACH_MSG_TIMEOUT_NONE, MACH_PORT_NULL);
9514 if (retval != MACH_MSG_SUCCESS)
9521 mach_port_t self = mach_task_self ();
9522 /* Allocate a port on which the thread shall listen for exceptions. */
9523 if (mach_port_allocate (self, MACH_PORT_RIGHT_RECEIVE, &our_exception_port)
9525 /* See http://web.mit.edu/darwin/src/modules/xnu/osfmk/man/mach_port_insert_right.html. */
9526 if (mach_port_insert_right (self, our_exception_port, our_exception_port,
9527 MACH_MSG_TYPE_MAKE_SEND)
9529 /* The exceptions we want to catch. Only EXC_BAD_ACCESS is interesting
9531 exception_mask_t mask = EXC_MASK_BAD_ACCESS;
9532 /* Create the thread listening on the exception port. */
9533 pthread_attr_t attr;
9535 if (pthread_attr_init (&attr) == 0
9536 && pthread_attr_setdetachstate (&attr, PTHREAD_CREATE_DETACHED) == 0
9537 && pthread_create (&thread, &attr, mach_exception_thread, NULL) == 0) {
9538 pthread_attr_destroy (&attr);
9539 /* Replace the exception port info for these exceptions with our own.
9540 Note that we replace the exception port for the entire task, not only
9541 for a particular thread. This has the effect that when our exception
9542 port gets the message, the thread specific exception port has already
9543 been asked, and we don't need to bother about it.
9544 See http://web.mit.edu/darwin/src/modules/xnu/osfmk/man/task_set_exception_ports.html. */
9545 task_set_exception_ports (self, mask, our_exception_port,
9546 EXCEPTION_DEFAULT, MACHINE_THREAD_STATE);
9551 #elif defined _WIN32 && ! defined __CYGWIN__
9552 /* Avoid a crash on native Windows. */
9553 #define WIN32_LEAN_AND_MEAN
9554 #include <windows.h>
9555 #include <winerror.h>
9557 exception_filter (EXCEPTION_POINTERS *ExceptionInfo)
9559 switch (ExceptionInfo->ExceptionRecord->ExceptionCode)
9561 case EXCEPTION_ACCESS_VIOLATION:
9562 case EXCEPTION_IN_PAGE_ERROR:
9563 case EXCEPTION_STACK_OVERFLOW:
9564 case EXCEPTION_GUARD_PAGE:
9565 case EXCEPTION_PRIV_INSTRUCTION:
9566 case EXCEPTION_ILLEGAL_INSTRUCTION:
9567 case EXCEPTION_DATATYPE_MISALIGNMENT:
9568 case EXCEPTION_ARRAY_BOUNDS_EXCEEDED:
9569 case EXCEPTION_NONCONTINUABLE_EXCEPTION:
9572 return EXCEPTION_CONTINUE_SEARCH;
9577 SetUnhandledExceptionFilter ((LPTOP_LEVEL_EXCEPTION_FILTER) exception_filter);
9580 /* Avoid a crash on POSIX systems. */
9583 /* A POSIX signal handler. */
9585 exception_handler (int sig)
9593 signal (SIGSEGV, exception_handler);
9596 signal (SIGBUS, exception_handler);
9602 #include <sys/types.h>
9603 #include <sys/time.h>
9604 #include <sys/resource.h>
9608 struct rlimit limit;
9611 /* Some printf implementations allocate temporary space with malloc. */
9612 /* On BSD systems, malloc() is limited by RLIMIT_DATA. */
9614 if (getrlimit (RLIMIT_DATA, &limit) < 0)
9616 if (limit.rlim_max == RLIM_INFINITY || limit.rlim_max > 5000000)
9617 limit.rlim_max = 5000000;
9618 limit.rlim_cur = limit.rlim_max;
9619 if (setrlimit (RLIMIT_DATA, &limit) < 0)
9622 /* On Linux systems, malloc() is limited by RLIMIT_AS. */
9624 if (getrlimit (RLIMIT_AS, &limit) < 0)
9626 if (limit.rlim_max == RLIM_INFINITY || limit.rlim_max > 5000000)
9627 limit.rlim_max = 5000000;
9628 limit.rlim_cur = limit.rlim_max;
9629 if (setrlimit (RLIMIT_AS, &limit) < 0)
9632 /* Some printf implementations allocate temporary space on the stack. */
9634 if (getrlimit (RLIMIT_STACK, &limit) < 0)
9636 if (limit.rlim_max == RLIM_INFINITY || limit.rlim_max > 5000000)
9637 limit.rlim_max = 5000000;
9638 limit.rlim_cur = limit.rlim_max;
9639 if (setrlimit (RLIMIT_STACK, &limit) < 0)
9642 ret = printf ("%.5000000f", 1.0);
9643 return !(ret == 5000002 || (ret < 0 && errno == ENOMEM));
9647 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
9648 (eval $ac_link) 2>&5
9650 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9651 test $ac_status = 0; } && test -s conftest$ac_exeext; then
9654 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $result" >&5
9655 if test $result != 0 && test $result != 77; then result=1; fi
9657 ) >/dev/null 2>/dev/null
9659 0) gl_cv_func_printf_enomem="yes" ;;
9660 77) gl_cv_func_printf_enomem="guessing no" ;;
9661 *) gl_cv_func_printf_enomem="no" ;;
9664 gl_cv_func_printf_enomem="guessing no"
9668 gl_cv_func_printf_enomem="guessing no"
9671 if test "$gl_cv_func_printf_enomem" = "guessing no"; then
9673 # Guess yes on glibc systems.
9674 *-gnu* | gnu*) gl_cv_func_printf_enomem="guessing yes";;
9675 # Guess yes on Solaris.
9676 solaris*) gl_cv_func_printf_enomem="guessing yes";;
9678 aix*) gl_cv_func_printf_enomem="guessing yes";;
9679 # Guess yes on HP-UX/hppa.
9680 hpux*) case "$host_cpu" in
9681 hppa*) gl_cv_func_printf_enomem="guessing yes";;
9682 *) gl_cv_func_printf_enomem="guessing no";;
9685 # Guess yes on IRIX.
9686 irix*) gl_cv_func_printf_enomem="guessing yes";;
9687 # Guess yes on OSF/1.
9688 osf*) gl_cv_func_printf_enomem="guessing yes";;
9689 # Guess yes on BeOS.
9690 beos*) gl_cv_func_printf_enomem="guessing yes";;
9691 # Guess yes on Haiku.
9692 haiku*) gl_cv_func_printf_enomem="guessing yes";;
9693 # If we don't know, assume the worst.
9694 *) gl_cv_func_printf_enomem="guessing no";;
9699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_printf_enomem" >&5
9700 $as_echo "$gl_cv_func_printf_enomem" >&6; }
9704 case "$gl_cv_func_printf_long_double" in
9709 $as_echo "#define NEED_PRINTF_LONG_DOUBLE 1" >>confdefs.h
9717 for ac_func in $ac_func_list
9719 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9720 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
9721 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
9722 cat >>confdefs.h <<_ACEOF
9723 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
9733 $as_echo_n "checking for unsigned long long int... " >&6; }
9734 if ${ac_cv_type_unsigned_long_long_int+:} false; then :
9735 $as_echo_n "(cached) " >&6
9737 ac_cv_type_unsigned_long_long_int=yes
9738 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
9739 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9740 /* end confdefs.h. */
9742 /* For now, do not test the preprocessor; as of 2007 there are too many
9743 implementations with broken preprocessors. Perhaps this can
9744 be revisited in 2012. In the meantime, code should not expect
9745 #if to work with literals wider than 32 bits. */
9746 /* Test literals. */
9747 long long int ll = 9223372036854775807ll;
9748 long long int nll = -9223372036854775807LL;
9749 unsigned long long int ull = 18446744073709551615ULL;
9750 /* Test constant expressions. */
9751 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
9753 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
9759 /* Test availability of runtime routines for shift and division. */
9760 long long int llmax = 9223372036854775807ll;
9761 unsigned long long int ullmax = 18446744073709551615ull;
9762 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
9763 | (llmax / ll) | (llmax % ll)
9764 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
9765 | (ullmax / ull) | (ullmax % ull));
9771 if ac_fn_c_try_link "$LINENO"; then :
9774 ac_cv_type_unsigned_long_long_int=no
9776 rm -f core conftest.err conftest.$ac_objext \
9777 conftest$ac_exeext conftest.$ac_ext
9780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
9781 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
9782 if test $ac_cv_type_unsigned_long_long_int = yes; then
9784 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
9790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
9791 $as_echo_n "checking for long long int... " >&6; }
9792 if ${ac_cv_type_long_long_int+:} false; then :
9793 $as_echo_n "(cached) " >&6
9795 ac_cv_type_long_long_int=yes
9796 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
9797 ac_cv_type_long_long_int=$ac_cv_type_unsigned_long_long_int
9798 if test $ac_cv_type_long_long_int = yes; then
9799 if test "$cross_compiling" = yes; then :
9802 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9803 /* end confdefs.h. */
9807 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
9808 # define LLONG_MAX (HALF - 1 + HALF)
9813 long long int n = 1;
9817 long long int m = n << i;
9820 if (LLONG_MAX / 2 < m)
9828 if ac_fn_c_try_run "$LINENO"; then :
9831 ac_cv_type_long_long_int=no
9833 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9834 conftest.$ac_objext conftest.beam conftest.$ac_ext
9840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
9841 $as_echo "$ac_cv_type_long_long_int" >&6; }
9842 if test $ac_cv_type_long_long_int = yes; then
9844 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
9849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5
9850 $as_echo_n "checking for wchar_t... " >&6; }
9851 if ${gt_cv_c_wchar_t+:} false; then :
9852 $as_echo_n "(cached) " >&6
9854 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9855 /* end confdefs.h. */
9857 wchar_t foo = (wchar_t)'\0';
9866 if ac_fn_c_try_compile "$LINENO"; then :
9871 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5
9874 $as_echo "$gt_cv_c_wchar_t" >&6; }
9875 if test $gt_cv_c_wchar_t = yes; then
9877 $as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h
9882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wint_t" >&5
9883 $as_echo_n "checking for wint_t... " >&6; }
9884 if ${gt_cv_c_wint_t+:} false; then :
9885 $as_echo_n "(cached) " >&6
9887 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9888 /* end confdefs.h. */
9890 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
9892 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be included
9893 before <wchar.h>. */
9898 wint_t foo = (wchar_t)'\0';
9907 if ac_fn_c_try_compile "$LINENO"; then :
9912 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wint_t" >&5
9915 $as_echo "$gt_cv_c_wint_t" >&6; }
9916 if test $gt_cv_c_wint_t = yes; then
9918 $as_echo "#define HAVE_WINT_T 1" >>confdefs.h
9921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether wint_t is too small" >&5
9922 $as_echo_n "checking whether wint_t is too small... " >&6; }
9923 if ${gl_cv_type_wint_t_too_small+:} false; then :
9924 $as_echo_n "(cached) " >&6
9926 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9927 /* end confdefs.h. */
9929 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
9931 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
9932 included before <wchar.h>. */
9933 #if !(defined __GLIBC__ && !defined __UCLIBC__)
9934 # include <stddef.h>
9939 int verify[sizeof (wint_t) < sizeof (int) ? -1 : 1];
9949 if ac_fn_c_try_compile "$LINENO"; then :
9950 gl_cv_type_wint_t_too_small=no
9952 gl_cv_type_wint_t_too_small=yes
9954 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_type_wint_t_too_small" >&5
9957 $as_echo "$gl_cv_type_wint_t_too_small" >&6; }
9958 if test $gl_cv_type_wint_t_too_small = yes; then
9959 GNULIB_OVERRIDES_WINT_T=1
9961 GNULIB_OVERRIDES_WINT_T=0
9964 GNULIB_OVERRIDES_WINT_T=0
9971 for ac_header in $ac_header_list
9973 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9974 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
9976 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
9977 cat >>confdefs.h <<_ACEOF
9978 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9989 if test $ac_cv_header_features_h = yes; then
9999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intmax_t" >&5
10000 $as_echo_n "checking for intmax_t... " >&6; }
10001 if ${gt_cv_c_intmax_t+:} false; then :
10002 $as_echo_n "(cached) " >&6
10004 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10005 /* end confdefs.h. */
10007 #include <stddef.h>
10008 #include <stdlib.h>
10009 #if HAVE_STDINT_H_WITH_UINTMAX
10010 #include <stdint.h>
10012 #if HAVE_INTTYPES_H_WITH_UINTMAX
10013 #include <inttypes.h>
10019 intmax_t x = -1; return !x;
10024 if ac_fn_c_try_compile "$LINENO"; then :
10025 gt_cv_c_intmax_t=yes
10027 gt_cv_c_intmax_t=no
10029 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_intmax_t" >&5
10032 $as_echo "$gt_cv_c_intmax_t" >&6; }
10033 if test $gt_cv_c_intmax_t = yes; then
10035 $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
10039 test $ac_cv_type_long_long_int = yes \
10040 && ac_type='long long' \
10043 cat >>confdefs.h <<_ACEOF
10044 #define intmax_t $ac_type
10050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the exponent in a 'double'" >&5
10051 $as_echo_n "checking where to find the exponent in a 'double'... " >&6; }
10052 if ${gl_cv_cc_double_expbit0+:} false; then :
10053 $as_echo_n "(cached) " >&6
10056 if test "$cross_compiling" = yes; then :
10058 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10059 /* end confdefs.h. */
10061 #if defined arm || defined __arm || defined __arm__
10066 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10067 $EGREP "mixed_endianness" >/dev/null 2>&1; then :
10068 gl_cv_cc_double_expbit0="unknown"
10072 if ${ac_cv_c_bigendian+:} false; then :
10073 $as_echo_n "(cached) " >&6
10075 ac_cv_c_bigendian=unknown
10076 # See if we're dealing with a universal compiler.
10077 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10078 /* end confdefs.h. */
10079 #ifndef __APPLE_CC__
10080 not a universal capable compiler
10085 if ac_fn_c_try_compile "$LINENO"; then :
10087 # Check for potential -arch flags. It is not universal unless
10088 # there are at least two -arch flags with different values.
10091 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
10092 if test -n "$ac_prev"; then
10094 i?86 | x86_64 | ppc | ppc64)
10095 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
10098 ac_cv_c_bigendian=universal
10104 elif test "x$ac_word" = "x-arch"; then
10109 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10110 if test $ac_cv_c_bigendian = unknown; then
10111 # See if sys/param.h defines the BYTE_ORDER macro.
10112 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10113 /* end confdefs.h. */
10114 #include <sys/types.h>
10115 #include <sys/param.h>
10120 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
10121 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
10123 bogus endian macros
10130 if ac_fn_c_try_compile "$LINENO"; then :
10131 # It does; now see whether it defined to BIG_ENDIAN or not.
10132 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10133 /* end confdefs.h. */
10134 #include <sys/types.h>
10135 #include <sys/param.h>
10140 #if BYTE_ORDER != BIG_ENDIAN
10148 if ac_fn_c_try_compile "$LINENO"; then :
10149 ac_cv_c_bigendian=yes
10151 ac_cv_c_bigendian=no
10153 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10155 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10157 if test $ac_cv_c_bigendian = unknown; then
10158 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
10159 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10160 /* end confdefs.h. */
10161 #include <limits.h>
10166 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
10167 bogus endian macros
10174 if ac_fn_c_try_compile "$LINENO"; then :
10175 # It does; now see whether it defined to _BIG_ENDIAN or not.
10176 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10177 /* end confdefs.h. */
10178 #include <limits.h>
10183 #ifndef _BIG_ENDIAN
10191 if ac_fn_c_try_compile "$LINENO"; then :
10192 ac_cv_c_bigendian=yes
10194 ac_cv_c_bigendian=no
10196 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10198 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10200 if test $ac_cv_c_bigendian = unknown; then
10201 # Compile a test program.
10202 if test "$cross_compiling" = yes; then :
10203 # Try to guess by grepping values from an object file.
10204 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10205 /* end confdefs.h. */
10206 short int ascii_mm[] =
10207 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
10208 short int ascii_ii[] =
10209 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
10210 int use_ascii (int i) {
10211 return ascii_mm[i] + ascii_ii[i];
10213 short int ebcdic_ii[] =
10214 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
10215 short int ebcdic_mm[] =
10216 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
10217 int use_ebcdic (int i) {
10218 return ebcdic_mm[i] + ebcdic_ii[i];
10225 return use_ascii (foo) == use_ebcdic (foo);
10230 if ac_fn_c_try_compile "$LINENO"; then :
10231 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
10232 ac_cv_c_bigendian=yes
10234 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
10235 if test "$ac_cv_c_bigendian" = unknown; then
10236 ac_cv_c_bigendian=no
10238 # finding both strings is unlikely to happen, but who knows?
10239 ac_cv_c_bigendian=unknown
10243 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10245 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10246 /* end confdefs.h. */
10247 $ac_includes_default
10252 /* Are we little or big endian? From Harbison&Steele. */
10256 char c[sizeof (long int)];
10259 return u.c[sizeof (long int) - 1] == 1;
10265 if ac_fn_c_try_run "$LINENO"; then :
10266 ac_cv_c_bigendian=no
10268 ac_cv_c_bigendian=yes
10270 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10271 conftest.$ac_objext conftest.beam conftest.$ac_ext
10277 case $ac_cv_c_bigendian in #(
10279 gl_cv_cc_double_expbit0="word 0 bit 20";; #(
10281 gl_cv_cc_double_expbit0="word 1 bit 20" ;; #(
10284 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
10288 gl_cv_cc_double_expbit0="unknown" ;;
10297 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10298 /* end confdefs.h. */
10301 #include <stddef.h>
10303 #include <string.h>
10305 ((sizeof (double) + sizeof (unsigned int) - 1) / sizeof (unsigned int))
10306 typedef union { double value; unsigned int word[NWORDS]; } memory_double;
10307 static unsigned int ored_words[NWORDS];
10308 static unsigned int anded_words[NWORDS];
10309 static void add_to_ored_words (double x)
10313 /* Clear it first, in case sizeof (double) < sizeof (memory_double). */
10314 memset (&m, 0, sizeof (memory_double));
10316 for (i = 0; i < NWORDS; i++)
10318 ored_words[i] |= m.word[i];
10319 anded_words[i] &= m.word[i];
10325 FILE *fp = fopen ("conftest.out", "w");
10328 for (j = 0; j < NWORDS; j++)
10329 anded_words[j] = ~ (unsigned int) 0;
10330 add_to_ored_words (0.25);
10331 add_to_ored_words (0.5);
10332 add_to_ored_words (1.0);
10333 add_to_ored_words (2.0);
10334 add_to_ored_words (4.0);
10335 /* Remove bits that are common (e.g. if representation of the first mantissa
10336 bit is explicit). */
10337 for (j = 0; j < NWORDS; j++)
10338 ored_words[j] &= ~anded_words[j];
10339 /* Now find the nonzero word. */
10340 for (j = 0; j < NWORDS; j++)
10341 if (ored_words[j] != 0)
10346 for (i = j + 1; i < NWORDS; i++)
10347 if (ored_words[i] != 0)
10349 fprintf (fp, "unknown");
10350 return (fclose (fp) != 0);
10353 if ((ored_words[j] >> i) & 1)
10355 fprintf (fp, "word %d bit %d", (int) j, (int) i);
10356 return (fclose (fp) != 0);
10359 fprintf (fp, "unknown");
10360 return (fclose (fp) != 0);
10364 if ac_fn_c_try_run "$LINENO"; then :
10365 gl_cv_cc_double_expbit0=`cat conftest.out`
10367 gl_cv_cc_double_expbit0="unknown"
10369 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10370 conftest.$ac_objext conftest.beam conftest.$ac_ext
10376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_double_expbit0" >&5
10377 $as_echo "$gl_cv_cc_double_expbit0" >&6; }
10378 case "$gl_cv_cc_double_expbit0" in
10380 word=`echo "$gl_cv_cc_double_expbit0" | sed -e 's/word //' -e 's/ bit.*//'`
10381 bit=`echo "$gl_cv_cc_double_expbit0" | sed -e 's/word.*bit //'`
10383 cat >>confdefs.h <<_ACEOF
10384 #define DBL_EXPBIT0_WORD $word
10388 cat >>confdefs.h <<_ACEOF
10389 #define DBL_EXPBIT0_BIT $bit
10403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether snprintf returns a byte count as in C99" >&5
10404 $as_echo_n "checking whether snprintf returns a byte count as in C99... " >&6; }
10405 if ${gl_cv_func_snprintf_retval_c99+:} false; then :
10406 $as_echo_n "(cached) " >&6
10409 if test "$cross_compiling" = yes; then :
10411 # Guess yes on glibc systems.
10412 *-gnu* | gnu*) gl_cv_func_snprintf_retval_c99="guessing yes";;
10413 # Guess yes on FreeBSD >= 5.
10414 freebsd[1-4].*) gl_cv_func_snprintf_retval_c99="guessing no";;
10415 freebsd* | kfreebsd*) gl_cv_func_snprintf_retval_c99="guessing yes";;
10416 # Guess yes on Mac OS X >= 10.3.
10417 darwin[1-6].*) gl_cv_func_snprintf_retval_c99="guessing no";;
10418 darwin*) gl_cv_func_snprintf_retval_c99="guessing yes";;
10419 # Guess yes on OpenBSD >= 3.9.
10420 openbsd[1-2].* | openbsd3.[0-8] | openbsd3.[0-8].*)
10421 gl_cv_func_snprintf_retval_c99="guessing no";;
10422 openbsd*) gl_cv_func_snprintf_retval_c99="guessing yes";;
10423 # Guess yes on Solaris >= 2.10.
10424 solaris2.[1-9][0-9]*) gl_cv_func_printf_sizes_c99="guessing yes";;
10425 solaris*) gl_cv_func_printf_sizes_c99="guessing no";;
10426 # Guess yes on AIX >= 4.
10427 aix[1-3]*) gl_cv_func_snprintf_retval_c99="guessing no";;
10428 aix*) gl_cv_func_snprintf_retval_c99="guessing yes";;
10429 # Guess yes on NetBSD >= 3.
10430 netbsd[1-2]* | netbsdelf[1-2]* | netbsdaout[1-2]* | netbsdcoff[1-2]*)
10431 gl_cv_func_snprintf_retval_c99="guessing no";;
10432 netbsd*) gl_cv_func_snprintf_retval_c99="guessing yes";;
10433 # Guess yes on BeOS.
10434 beos*) gl_cv_func_snprintf_retval_c99="guessing yes";;
10435 # Guess yes on MSVC, no on mingw.
10436 mingw*) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10437 /* end confdefs.h. */
10444 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10445 $EGREP "Known" >/dev/null 2>&1; then :
10446 gl_cv_func_snprintf_retval_c99="guessing yes"
10448 gl_cv_func_snprintf_retval_c99="guessing no"
10453 # If we don't know, assume the worst.
10454 *) gl_cv_func_snprintf_retval_c99="guessing no";;
10458 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10459 /* end confdefs.h. */
10462 #include <string.h>
10464 # define my_snprintf snprintf
10466 # include <stdarg.h>
10467 static int my_snprintf (char *buf, int size, const char *format, ...)
10471 va_start (args, format);
10472 ret = vsnprintf (buf, size, format, args);
10477 static char buf[100];
10480 strcpy (buf, "ABCDEF");
10481 if (my_snprintf (buf, 3, "%d %d", 4567, 89) != 7)
10483 if (my_snprintf (buf, 0, "%d %d", 4567, 89) != 7)
10485 if (my_snprintf (NULL, 0, "%d %d", 4567, 89) != 7)
10490 if ac_fn_c_try_run "$LINENO"; then :
10491 gl_cv_func_snprintf_retval_c99=yes
10493 gl_cv_func_snprintf_retval_c99=no
10495 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10496 conftest.$ac_objext conftest.beam conftest.$ac_ext
10501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_snprintf_retval_c99" >&5
10502 $as_echo "$gl_cv_func_snprintf_retval_c99" >&6; }
10509 for ac_func in snprintf strnlen wcslen wcsnlen mbrtowc wcrtomb
10511 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10512 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
10513 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
10514 cat >>confdefs.h <<_ACEOF
10515 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10521 ac_fn_c_check_decl "$LINENO" "_snprintf" "ac_cv_have_decl__snprintf" "#include <stdio.h>
10523 if test "x$ac_cv_have_decl__snprintf" = xyes; then :
10529 cat >>confdefs.h <<_ACEOF
10530 #define HAVE_DECL__SNPRINTF $ac_have_decl
10535 case "$gl_cv_func_snprintf_retval_c99" in
10538 $as_echo "#define HAVE_SNPRINTF_RETVAL_C99 1" >>confdefs.h
10552 GNULIB_FPRINTF_POSIX=0;
10568 GNULIB_OBSTACK_PRINTF=0;
10569 GNULIB_OBSTACK_PRINTF_POSIX=0;
10574 GNULIB_PRINTF_POSIX=0;
10583 GNULIB_SPRINTF_POSIX=0;
10584 GNULIB_STDIO_H_NONBLOCKING=0;
10585 GNULIB_STDIO_H_SIGPIPE=0;
10587 GNULIB_VASPRINTF=0;
10592 GNULIB_VFPRINTF_POSIX=0;
10594 GNULIB_VPRINTF_POSIX=0;
10595 GNULIB_VSNPRINTF=0;
10596 GNULIB_VSPRINTF_POSIX=0;
10597 HAVE_DECL_FPURGE=1;
10598 HAVE_DECL_FSEEKO=1;
10599 HAVE_DECL_FTELLO=1;
10600 HAVE_DECL_GETDELIM=1;
10601 HAVE_DECL_GETLINE=1;
10602 HAVE_DECL_OBSTACK_PRINTF=1;
10603 HAVE_DECL_SNPRINTF=1;
10604 HAVE_DECL_VSNPRINTF=1;
10625 REPLACE_GETDELIM=0;
10627 REPLACE_OBSTACK_PRINTF=0;
10633 REPLACE_RENAMEAT=0;
10634 REPLACE_SNPRINTF=0;
10636 REPLACE_STDIO_READ_FUNCS=0;
10637 REPLACE_STDIO_WRITE_FUNCS=0;
10639 REPLACE_VASPRINTF=0;
10640 REPLACE_VDPRINTF=0;
10641 REPLACE_VFPRINTF=0;
10643 REPLACE_VSNPRINTF=0;
10644 REPLACE_VSPRINTF=0;
10661 GNULIB_COPYSIGNF=0;
10662 GNULIB_COPYSIGNL=0;
10721 GNULIB_REMAINDER=0;
10722 GNULIB_REMAINDERF=0;
10723 GNULIB_REMAINDERL=0;
10809 HAVE_DECL_COPYSIGNF=1;
10815 HAVE_DECL_EXPM1L=1;
10816 HAVE_DECL_FLOORF=1;
10817 HAVE_DECL_FLOORL=1;
10818 HAVE_DECL_FREXPL=1;
10819 HAVE_DECL_LDEXPL=1;
10821 HAVE_DECL_LOG10L=1;
10826 HAVE_DECL_REMAINDER=1;
10827 HAVE_DECL_REMAINDERL=1;
10830 HAVE_DECL_ROUNDF=1;
10831 HAVE_DECL_ROUNDL=1;
10836 HAVE_DECL_TRUNCF=1;
10837 HAVE_DECL_TRUNCL=1;
10867 REPLACE_HUGE_VAL=0;
10874 REPLACE_ISFINITE=0;
10897 REPLACE_REMAINDER=0;
10898 REPLACE_REMAINDERF=0;
10899 REPLACE_REMAINDERL=0;
10904 REPLACE_SIGNBIT_USING_GCC=0;
10916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether frexp() can be used without linking with libm" >&5
10917 $as_echo_n "checking whether frexp() can be used without linking with libm... " >&6; }
10918 if ${gl_cv_func_frexp_no_libm+:} false; then :
10919 $as_echo_n "(cached) " >&6
10922 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10923 /* end confdefs.h. */
10929 int e; return frexp (x, &e) > 0;
10934 if ac_fn_c_try_link "$LINENO"; then :
10935 gl_cv_func_frexp_no_libm=yes
10937 gl_cv_func_frexp_no_libm=no
10939 rm -f core conftest.err conftest.$ac_objext \
10940 conftest$ac_exeext conftest.$ac_ext
10943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_frexp_no_libm" >&5
10944 $as_echo "$gl_cv_func_frexp_no_libm" >&6; }
10946 ac_fn_c_check_decl "$LINENO" "alarm" "ac_cv_have_decl_alarm" "$ac_includes_default"
10947 if test "x$ac_cv_have_decl_alarm" = xyes; then :
10953 cat >>confdefs.h <<_ACEOF
10954 #define HAVE_DECL_ALARM $ac_have_decl
10960 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10961 /* end confdefs.h. */
10968 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10969 $EGREP "MicrosoftCompiler" >/dev/null 2>&1; then :
10971 gl_c_asm_opt='-c -Fa'
10984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host CPU and C ABI" >&5
10985 $as_echo_n "checking host CPU and C ABI... " >&6; }
10986 if ${gl_cv_host_cpu_c_abi+:} false; then :
10987 $as_echo_n "(cached) " >&6
10989 case "$host_cpu" in
10992 gl_cv_host_cpu_c_abi=i386
10996 # On x86_64 systems, the C compiler may be generating code in one of
10998 # - 64-bit instruction set, 64-bit pointers, 64-bit 'long': x86_64.
10999 # - 64-bit instruction set, 64-bit pointers, 32-bit 'long': x86_64
11000 # with native Windows (mingw, MSVC).
11001 # - 64-bit instruction set, 32-bit pointers, 32-bit 'long': x86_64-x32.
11002 # - 32-bit instruction set, 32-bit pointers, 32-bit 'long': i386.
11003 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11004 /* end confdefs.h. */
11005 #if (defined __x86_64__ || defined __amd64__ \
11006 || defined _M_X64 || defined _M_AMD64)
11013 if ac_fn_c_try_compile "$LINENO"; then :
11014 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11015 /* end confdefs.h. */
11016 #if defined __ILP32__ || defined _ILP32
11023 if ac_fn_c_try_compile "$LINENO"; then :
11024 gl_cv_host_cpu_c_abi=x86_64-x32
11026 gl_cv_host_cpu_c_abi=x86_64
11028 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11030 gl_cv_host_cpu_c_abi=i386
11032 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11035 alphaev[4-8] | alphaev56 | alphapca5[67] | alphaev6[78] )
11036 gl_cv_host_cpu_c_abi=alpha
11040 # Assume arm with EABI.
11041 # On arm64 systems, the C compiler may be generating code in one of
11043 # - aarch64 instruction set, 64-bit pointers, 64-bit 'long': arm64.
11044 # - aarch64 instruction set, 32-bit pointers, 32-bit 'long': arm64-ilp32.
11045 # - 32-bit instruction set, 32-bit pointers, 32-bit 'long': arm or armhf.
11046 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11047 /* end confdefs.h. */
11055 if ac_fn_c_try_compile "$LINENO"; then :
11056 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11057 /* end confdefs.h. */
11058 #if defined __ILP32__ || defined _ILP32
11065 if ac_fn_c_try_compile "$LINENO"; then :
11066 gl_cv_host_cpu_c_abi=arm64-ilp32
11068 gl_cv_host_cpu_c_abi=arm64
11070 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11072 # Don't distinguish little-endian and big-endian arm, since they
11073 # don't require different machine code for simple operations and
11074 # since the user can distinguish them through the preprocessor
11075 # defines __ARMEL__ vs. __ARMEB__.
11076 # But distinguish arm which passes floating-point arguments and
11077 # return values in integer registers (r0, r1, ...) - this is
11078 # gcc -mfloat-abi=soft or gcc -mfloat-abi=softfp - from arm which
11079 # passes them in float registers (s0, s1, ...) and double registers
11080 # (d0, d1, ...) - this is gcc -mfloat-abi=hard. GCC 4.6 or newer
11081 # sets the preprocessor defines __ARM_PCS (for the first case) and
11082 # __ARM_PCS_VFP (for the second case), but older GCC does not.
11083 echo 'double ddd; void func (double dd) { ddd = dd; }' > conftest.c
11084 # Look for a reference to the register d0 in the .s file.
11085 { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $gl_c_asm_opt conftest.c'
11086 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
11087 (eval $ac_try) 2>&5
11089 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11090 test $ac_status = 0; }; } >/dev/null 2>&1
11091 if LC_ALL=C grep 'd0,' conftest.$gl_asmext >/dev/null; then
11092 gl_cv_host_cpu_c_abi=armhf
11094 gl_cv_host_cpu_c_abi=arm
11099 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11102 hppa1.0 | hppa1.1 | hppa2.0* | hppa64 )
11103 # On hppa, the C compiler may be generating 32-bit code or 64-bit
11104 # code. In the latter case, it defines _LP64 and __LP64__.
11105 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11106 /* end confdefs.h. */
11114 if ac_fn_c_try_compile "$LINENO"; then :
11115 gl_cv_host_cpu_c_abi=hppa64
11117 gl_cv_host_cpu_c_abi=hppa
11119 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11123 # On ia64 on HP-UX, the C compiler may be generating 64-bit code or
11124 # 32-bit code. In the latter case, it defines _ILP32.
11125 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11126 /* end confdefs.h. */
11134 if ac_fn_c_try_compile "$LINENO"; then :
11135 gl_cv_host_cpu_c_abi=ia64-ilp32
11137 gl_cv_host_cpu_c_abi=ia64
11139 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11143 # We should also check for (_MIPS_SZPTR == 64), but gcc keeps this
11145 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11146 /* end confdefs.h. */
11147 #if defined _MIPS_SZLONG && (_MIPS_SZLONG == 64)
11154 if ac_fn_c_try_compile "$LINENO"; then :
11155 gl_cv_host_cpu_c_abi=mips64
11157 # In the n32 ABI, _ABIN32 is defined, _ABIO32 is not defined (but
11158 # may later get defined by <sgidefs.h>), and _MIPS_SIM == _ABIN32.
11159 # In the 32 ABI, _ABIO32 is defined, _ABIN32 is not defined (but
11160 # may later get defined by <sgidefs.h>), and _MIPS_SIM == _ABIO32.
11161 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11162 /* end confdefs.h. */
11163 #if (_MIPS_SIM == _ABIN32)
11170 if ac_fn_c_try_compile "$LINENO"; then :
11171 gl_cv_host_cpu_c_abi=mipsn32
11173 gl_cv_host_cpu_c_abi=mips
11175 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11177 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11181 # Different ABIs are in use on AIX vs. Mac OS X vs. Linux,*BSD.
11182 # No need to distinguish them here; the caller may distinguish
11183 # them based on the OS.
11184 # On powerpc64 systems, the C compiler may still be generating
11185 # 32-bit code. And on powerpc-ibm-aix systems, the C compiler may
11186 # be generating 64-bit code.
11187 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11188 /* end confdefs.h. */
11189 #if defined __powerpc64__ || defined _ARCH_PPC64
11196 if ac_fn_c_try_compile "$LINENO"; then :
11197 # On powerpc64, there are two ABIs on Linux: The AIX compatible
11198 # one and the ELFv2 one. The latter defines _CALL_ELF=2.
11199 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11200 /* end confdefs.h. */
11201 #if defined _CALL_ELF && _CALL_ELF == 2
11208 if ac_fn_c_try_compile "$LINENO"; then :
11209 gl_cv_host_cpu_c_abi=powerpc64-elfv2
11211 gl_cv_host_cpu_c_abi=powerpc64
11213 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11216 gl_cv_host_cpu_c_abi=powerpc
11218 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11222 gl_cv_host_cpu_c_abi=powerpc
11225 riscv32 | riscv64 )
11226 # There are 2 architectures (with variants): rv32* and rv64*.
11227 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11228 /* end confdefs.h. */
11229 #if __riscv_xlen == 64
11236 if ac_fn_c_try_compile "$LINENO"; then :
11241 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11242 # There are 6 ABIs: ilp32, ilp32f, ilp32d, lp64, lp64f, lp64d.
11243 # Size of 'long' and 'void *':
11244 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11245 /* end confdefs.h. */
11246 #if defined __LP64__
11253 if ac_fn_c_try_compile "$LINENO"; then :
11258 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11260 # __riscv_float_abi_double:
11261 # 'float' and 'double' are passed in floating-point registers.
11262 # __riscv_float_abi_single:
11263 # 'float' are passed in floating-point registers.
11264 # __riscv_float_abi_soft:
11265 # No values are passed in floating-point registers.
11266 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11267 /* end confdefs.h. */
11268 #if defined __riscv_float_abi_double
11275 if ac_fn_c_try_compile "$LINENO"; then :
11278 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11279 /* end confdefs.h. */
11280 #if defined __riscv_float_abi_single
11287 if ac_fn_c_try_compile "$LINENO"; then :
11292 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11295 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11296 gl_cv_host_cpu_c_abi="${cpu}-${main_abi}${float_abi}"
11300 # On s390x, the C compiler may be generating 64-bit (= s390x) code
11301 # or 31-bit (= s390) code.
11302 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11303 /* end confdefs.h. */
11304 #if defined __LP64__ || defined __s390x__
11311 if ac_fn_c_try_compile "$LINENO"; then :
11312 gl_cv_host_cpu_c_abi=s390x
11314 gl_cv_host_cpu_c_abi=s390
11316 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11320 # UltraSPARCs running Linux have `uname -m` = "sparc64", but the
11321 # C compiler still generates 32-bit code.
11322 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11323 /* end confdefs.h. */
11324 #if defined __sparcv9 || defined __arch64__
11331 if ac_fn_c_try_compile "$LINENO"; then :
11332 gl_cv_host_cpu_c_abi=sparc64
11334 gl_cv_host_cpu_c_abi=sparc
11336 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11340 gl_cv_host_cpu_c_abi="$host_cpu"
11345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_host_cpu_c_abi" >&5
11346 $as_echo "$gl_cv_host_cpu_c_abi" >&6; }
11348 HOST_CPU=`echo "$gl_cv_host_cpu_c_abi" | sed -e 's/-.*//'`
11349 HOST_CPU_C_ABI="$gl_cv_host_cpu_c_abi"
11354 # AC_DEFINE_UNQUOTED([__${HOST_CPU}__])
11355 # AC_DEFINE_UNQUOTED([__${HOST_CPU_C_ABI}__])
11356 # earlier, but KAI C++ 3.2d doesn't like this.
11357 sed -e 's/-/_/g' >> confdefs.h <<EOF
11358 #ifndef __${HOST_CPU}__
11359 #define __${HOST_CPU}__ 1
11361 #ifndef __${HOST_CPU_C_ABI}__
11362 #define __${HOST_CPU_C_ABI}__ 1
11369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the exponent in a 'float'" >&5
11370 $as_echo_n "checking where to find the exponent in a 'float'... " >&6; }
11371 if ${gl_cv_cc_float_expbit0+:} false; then :
11372 $as_echo_n "(cached) " >&6
11375 if test "$cross_compiling" = yes; then :
11376 gl_cv_cc_float_expbit0="word 0 bit 23"
11378 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11379 /* end confdefs.h. */
11382 #include <stddef.h>
11384 #include <string.h>
11386 ((sizeof (float) + sizeof (unsigned int) - 1) / sizeof (unsigned int))
11387 typedef union { float value; unsigned int word[NWORDS]; } memory_float;
11388 static unsigned int ored_words[NWORDS];
11389 static unsigned int anded_words[NWORDS];
11390 static void add_to_ored_words (float x)
11394 /* Clear it first, in case
11395 sizeof (float) < sizeof (memory_float). */
11396 memset (&m, 0, sizeof (memory_float));
11398 for (i = 0; i < NWORDS; i++)
11400 ored_words[i] |= m.word[i];
11401 anded_words[i] &= m.word[i];
11407 FILE *fp = fopen ("conftest.out", "w");
11410 for (j = 0; j < NWORDS; j++)
11411 anded_words[j] = ~ (unsigned int) 0;
11412 add_to_ored_words (0.25f);
11413 add_to_ored_words (0.5f);
11414 add_to_ored_words (1.0f);
11415 add_to_ored_words (2.0f);
11416 add_to_ored_words (4.0f);
11417 /* Remove bits that are common (e.g. if representation of the first mantissa
11418 bit is explicit). */
11419 for (j = 0; j < NWORDS; j++)
11420 ored_words[j] &= ~anded_words[j];
11421 /* Now find the nonzero word. */
11422 for (j = 0; j < NWORDS; j++)
11423 if (ored_words[j] != 0)
11428 for (i = j + 1; i < NWORDS; i++)
11429 if (ored_words[i] != 0)
11431 fprintf (fp, "unknown");
11432 return (fclose (fp) != 0);
11435 if ((ored_words[j] >> i) & 1)
11437 fprintf (fp, "word %d bit %d", (int) j, (int) i);
11438 return (fclose (fp) != 0);
11441 fprintf (fp, "unknown");
11442 return (fclose (fp) != 0);
11446 if ac_fn_c_try_run "$LINENO"; then :
11447 gl_cv_cc_float_expbit0=`cat conftest.out`
11449 gl_cv_cc_float_expbit0="unknown"
11451 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11452 conftest.$ac_objext conftest.beam conftest.$ac_ext
11458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_float_expbit0" >&5
11459 $as_echo "$gl_cv_cc_float_expbit0" >&6; }
11460 case "$gl_cv_cc_float_expbit0" in
11462 word=`echo "$gl_cv_cc_float_expbit0" | sed -e 's/word //' -e 's/ bit.*//'`
11463 bit=`echo "$gl_cv_cc_float_expbit0" | sed -e 's/word.*bit //'`
11465 cat >>confdefs.h <<_ACEOF
11466 #define FLT_EXPBIT0_WORD $word
11470 cat >>confdefs.h <<_ACEOF
11471 #define FLT_EXPBIT0_BIT $bit
11489 if test $gl_cv_have_include_next = yes; then
11490 gl_cv_next_limits_h='<'limits.h'>'
11492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <limits.h>" >&5
11493 $as_echo_n "checking absolute name of <limits.h>... " >&6; }
11494 if ${gl_cv_next_limits_h+:} false; then :
11495 $as_echo_n "(cached) " >&6
11498 if test $ac_cv_header_limits_h = yes; then
11503 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11504 /* end confdefs.h. */
11505 #include <limits.h>
11508 aix*) gl_absname_cpp="$ac_cpp -C" ;;
11509 *) gl_absname_cpp="$ac_cpp" ;;
11514 gl_dirsep_regex='[/\\]'
11517 gl_dirsep_regex='\/'
11520 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
11521 gl_header_literal_regex=`echo 'limits.h' \
11522 | sed -e "$gl_make_literal_regex_sed"`
11523 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
11524 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
11530 gl_cv_absolute_limits_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
11531 sed -n "$gl_absolute_header_sed"`
11533 gl_header=$gl_cv_absolute_limits_h
11534 gl_cv_next_limits_h='"'$gl_header'"'
11536 gl_cv_next_limits_h='<'limits.h'>'
11541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_limits_h" >&5
11542 $as_echo "$gl_cv_next_limits_h" >&6; }
11544 NEXT_LIMITS_H=$gl_cv_next_limits_h
11546 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
11547 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
11548 gl_next_as_first_directive='<'limits.h'>'
11550 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
11551 gl_next_as_first_directive=$gl_cv_next_limits_h
11553 NEXT_AS_FIRST_DIRECTIVE_LIMITS_H=$gl_next_as_first_directive
11559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether limits.h has LLONG_MAX, WORD_BIT, ULLONG_WIDTH etc." >&5
11560 $as_echo_n "checking whether limits.h has LLONG_MAX, WORD_BIT, ULLONG_WIDTH etc.... " >&6; }
11561 if ${gl_cv_header_limits_width+:} false; then :
11562 $as_echo_n "(cached) " >&6
11564 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11565 /* end confdefs.h. */
11566 #ifndef __STDC_WANT_IEC_60559_BFP_EXT__
11567 #define __STDC_WANT_IEC_60559_BFP_EXT__ 1
11569 #include <limits.h>
11570 long long llm = LLONG_MAX;
11572 int ullw = ULLONG_WIDTH;
11582 if ac_fn_c_try_compile "$LINENO"; then :
11583 gl_cv_header_limits_width=yes
11585 gl_cv_header_limits_width=no
11587 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_limits_width" >&5
11590 $as_echo "$gl_cv_header_limits_width" >&6; }
11591 if test "$gl_cv_header_limits_width" = yes; then
11597 if test -n "$LIMITS_H"; then
11598 GL_GENERATE_LIMITS_H_TRUE=
11599 GL_GENERATE_LIMITS_H_FALSE='#'
11601 GL_GENERATE_LIMITS_H_TRUE='#'
11602 GL_GENERATE_LIMITS_H_FALSE=
11607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
11608 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
11609 if ${am_cv_langinfo_codeset+:} false; then :
11610 $as_echo_n "(cached) " >&6
11612 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11613 /* end confdefs.h. */
11614 #include <langinfo.h>
11618 char* cs = nl_langinfo(CODESET); return !cs;
11623 if ac_fn_c_try_link "$LINENO"; then :
11624 am_cv_langinfo_codeset=yes
11626 am_cv_langinfo_codeset=no
11628 rm -f core conftest.err conftest.$ac_objext \
11629 conftest$ac_exeext conftest.$ac_ext
11632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
11633 $as_echo "$am_cv_langinfo_codeset" >&6; }
11634 if test $am_cv_langinfo_codeset = yes; then
11636 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
11649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fcntl.h" >&5
11650 $as_echo_n "checking for working fcntl.h... " >&6; }
11651 if ${gl_cv_header_working_fcntl_h+:} false; then :
11652 $as_echo_n "(cached) " >&6
11654 if test "$cross_compiling" = yes; then :
11655 gl_cv_header_working_fcntl_h=cross-compiling
11657 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11658 /* end confdefs.h. */
11659 #include <sys/types.h>
11660 #include <sys/stat.h>
11662 # include <unistd.h>
11663 #else /* on Windows with MSVC */
11665 # include <stdlib.h>
11666 # defined sleep(n) _sleep ((n) * 1000)
11670 #define O_NOATIME 0
11673 #define O_NOFOLLOW 0
11675 static int const constants[] =
11677 O_CREAT, O_EXCL, O_NOCTTY, O_TRUNC, O_APPEND,
11678 O_NONBLOCK, O_SYNC, O_ACCMODE, O_RDONLY, O_RDWR, O_WRONLY
11685 int result = !constants;
11688 static char const sym[] = "conftest.sym";
11689 if (symlink ("/dev/null", sym) != 0)
11693 int fd = open (sym, O_WRONLY | O_NOFOLLOW | O_CREAT, 0);
11700 if (unlink (sym) != 0 || symlink (".", sym) != 0)
11704 int fd = open (sym, O_RDONLY | O_NOFOLLOW);
11715 static char const file[] = "confdefs.h";
11716 int fd = open (file, O_RDONLY | O_NOATIME);
11722 if (fstat (fd, &st0) != 0)
11728 if (read (fd, &c, 1) != 1)
11732 if (close (fd) != 0)
11737 if (stat (file, &st1) != 0)
11740 if (st0.st_atime != st1.st_atime)
11752 if ac_fn_c_try_run "$LINENO"; then :
11753 gl_cv_header_working_fcntl_h=yes
11756 4) gl_cv_header_working_fcntl_h='no (bad O_NOFOLLOW)';; #(
11757 64) gl_cv_header_working_fcntl_h='no (bad O_NOATIME)';; #(
11758 68) gl_cv_header_working_fcntl_h='no (bad O_NOATIME, O_NOFOLLOW)';; #(
11759 *) gl_cv_header_working_fcntl_h='no';;
11762 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11763 conftest.$ac_objext conftest.beam conftest.$ac_ext
11767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_fcntl_h" >&5
11768 $as_echo "$gl_cv_header_working_fcntl_h" >&6; }
11770 case $gl_cv_header_working_fcntl_h in #(
11771 *O_NOATIME* | no | cross-compiling) ac_val=0;; #(
11775 cat >>confdefs.h <<_ACEOF
11776 #define HAVE_WORKING_O_NOATIME $ac_val
11780 case $gl_cv_header_working_fcntl_h in #(
11781 *O_NOFOLLOW* | no | cross-compiling) ac_val=0;; #(
11785 cat >>confdefs.h <<_ACEOF
11786 #define HAVE_WORKING_O_NOFOLLOW $ac_val
11790 ac_fn_c_check_decl "$LINENO" "getc_unlocked" "ac_cv_have_decl_getc_unlocked" "$ac_includes_default"
11791 if test "x$ac_cv_have_decl_getc_unlocked" = xyes; then :
11797 cat >>confdefs.h <<_ACEOF
11798 #define HAVE_DECL_GETC_UNLOCKED $ac_have_decl
11802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C Library >= 2.1 or uClibc" >&5
11803 $as_echo_n "checking whether we are using the GNU C Library >= 2.1 or uClibc... " >&6; }
11804 if ${ac_cv_gnu_library_2_1+:} false; then :
11805 $as_echo_n "(cached) " >&6
11807 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11808 /* end confdefs.h. */
11810 #include <features.h>
11811 #ifdef __GNU_LIBRARY__
11812 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
11821 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11822 $EGREP "Lucky" >/dev/null 2>&1; then :
11823 ac_cv_gnu_library_2_1=yes
11825 ac_cv_gnu_library_2_1=no
11832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2_1" >&5
11833 $as_echo "$ac_cv_gnu_library_2_1" >&6; }
11835 GLIBC21="$ac_cv_gnu_library_2_1"
11845 GNULIB_EXPLICIT_BZERO=0;
11852 GNULIB_RAWMEMCHR=0;
11855 GNULIB_STRCHRNUL=0;
11863 GNULIB_STRCASESTR=0;
11870 GNULIB_MBSCASECMP=0;
11871 GNULIB_MBSNCASECMP=0;
11872 GNULIB_MBSPCASECMP=0;
11873 GNULIB_MBSCASESTR=0;
11880 GNULIB_STRERROR_R=0;
11881 GNULIB_STRSIGNAL=0;
11882 GNULIB_STRVERSCMP=0;
11884 HAVE_EXPLICIT_BZERO=1;
11888 HAVE_DECL_MEMMEM=1;
11890 HAVE_DECL_MEMRCHR=1;
11895 HAVE_DECL_STRDUP=1;
11896 HAVE_DECL_STRNDUP=1;
11897 HAVE_DECL_STRNLEN=1;
11901 HAVE_DECL_STRTOK_R=1;
11902 HAVE_DECL_STRERROR_R=1;
11903 HAVE_DECL_STRSIGNAL=1;
11908 REPLACE_STRCHRNUL=0;
11914 REPLACE_STRCASESTR=0;
11915 REPLACE_STRTOK_R=0;
11916 REPLACE_STRERROR=0;
11917 REPLACE_STRERROR_R=0;
11918 REPLACE_STRSIGNAL=0;
11919 UNDEFINE_STRTOK_R=0;
11926 # Check for mmap(). Don't use AC_FUNC_MMAP, because it checks too much: it
11927 # fails on HP-UX 11, because MAP_FIXED mappings do not work. But this is
11928 # irrelevant for anonymous mappings.
11929 ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
11930 if test "x$ac_cv_func_mmap" = xyes; then :
11937 # Try to allow MAP_ANONYMOUS.
11938 gl_have_mmap_anonymous=no
11939 if test $gl_have_mmap = yes; then
11940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANONYMOUS" >&5
11941 $as_echo_n "checking for MAP_ANONYMOUS... " >&6; }
11942 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11943 /* end confdefs.h. */
11945 #include <sys/mman.h>
11946 #ifdef MAP_ANONYMOUS
11947 I cannot identify this map
11951 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11952 $EGREP "I cannot identify this map" >/dev/null 2>&1; then :
11953 gl_have_mmap_anonymous=yes
11957 if test $gl_have_mmap_anonymous != yes; then
11958 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11959 /* end confdefs.h. */
11961 #include <sys/mman.h>
11963 I cannot identify this map
11967 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11968 $EGREP "I cannot identify this map" >/dev/null 2>&1; then :
11970 $as_echo "#define MAP_ANONYMOUS MAP_ANON" >>confdefs.h
11972 gl_have_mmap_anonymous=yes
11977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_have_mmap_anonymous" >&5
11978 $as_echo "$gl_have_mmap_anonymous" >&6; }
11979 if test $gl_have_mmap_anonymous = yes; then
11981 $as_echo "#define HAVE_MAP_ANONYMOUS 1" >>confdefs.h
11991 if test $HAVE_MEMCHR = 1; then
11992 # Detect platform-specific bugs in some versions of glibc:
11993 # memchr should not dereference anything with length 0
11994 # https://bugzilla.redhat.com/show_bug.cgi?id=499689
11995 # memchr should not dereference overestimated length after a match
11996 # https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=521737
11997 # https://sourceware.org/bugzilla/show_bug.cgi?id=10162
11998 # Assume that memchr works on platforms that lack mprotect.
11999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether memchr works" >&5
12000 $as_echo_n "checking whether memchr works... " >&6; }
12001 if ${gl_cv_func_memchr_works+:} false; then :
12002 $as_echo_n "(cached) " >&6
12004 if test "$cross_compiling" = yes; then :
12006 # Guess yes on native Windows.
12007 mingw*) gl_cv_func_memchr_works="guessing yes" ;;
12008 # Be pessimistic for now.
12009 *) gl_cv_func_memchr_works="guessing no" ;;
12013 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12014 /* end confdefs.h. */
12016 #include <string.h>
12017 #if HAVE_SYS_MMAN_H
12018 # include <fcntl.h>
12019 # include <unistd.h>
12020 # include <sys/types.h>
12021 # include <sys/mman.h>
12023 # define MAP_FILE 0
12032 char *fence = NULL;
12033 #if HAVE_SYS_MMAN_H && HAVE_MPROTECT
12034 # if HAVE_MAP_ANONYMOUS
12035 const int flags = MAP_ANONYMOUS | MAP_PRIVATE;
12037 # else /* !HAVE_MAP_ANONYMOUS */
12038 const int flags = MAP_FILE | MAP_PRIVATE;
12039 int fd = open ("/dev/zero", O_RDONLY, 0666);
12043 int pagesize = getpagesize ();
12045 (char *) mmap (NULL, 2 * pagesize, PROT_READ | PROT_WRITE,
12047 if (two_pages != (char *)(-1)
12048 && mprotect (two_pages + pagesize, pagesize, PROT_NONE) == 0)
12049 fence = two_pages + pagesize;
12054 if (memchr (fence, 0, 0))
12056 strcpy (fence - 9, "12345678");
12057 if (memchr (fence - 9, 0, 79) != fence - 1)
12059 if (memchr (fence - 1, 0, 3) != fence - 1)
12068 if ac_fn_c_try_run "$LINENO"; then :
12069 gl_cv_func_memchr_works=yes
12071 gl_cv_func_memchr_works=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_memchr_works" >&5
12080 $as_echo "$gl_cv_func_memchr_works" >&6; }
12081 case "$gl_cv_func_memchr_works" in
12083 *) REPLACE_MEMCHR=1 ;;
12087 ac_fn_c_check_decl "$LINENO" "snprintf" "ac_cv_have_decl_snprintf" "$ac_includes_default"
12088 if test "x$ac_cv_have_decl_snprintf" = xyes; then :
12094 cat >>confdefs.h <<_ACEOF
12095 #define HAVE_DECL_SNPRINTF $ac_have_decl
12100 HAVE_MAX_ALIGN_T=1;
12113 if test $ac_cv_type_long_long_int = yes; then
12114 HAVE_LONG_LONG_INT=1
12116 HAVE_LONG_LONG_INT=0
12120 if test $ac_cv_type_unsigned_long_long_int = yes; then
12121 HAVE_UNSIGNED_LONG_LONG_INT=1
12123 HAVE_UNSIGNED_LONG_LONG_INT=0
12128 if test $ac_cv_header_wchar_h = yes; then
12135 if test $ac_cv_header_inttypes_h = yes; then
12142 if test $ac_cv_header_sys_types_h = yes; then
12158 if test $gl_cv_have_include_next = yes; then
12159 gl_cv_next_stdint_h='<'stdint.h'>'
12161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdint.h>" >&5
12162 $as_echo_n "checking absolute name of <stdint.h>... " >&6; }
12163 if ${gl_cv_next_stdint_h+:} false; then :
12164 $as_echo_n "(cached) " >&6
12167 if test $ac_cv_header_stdint_h = yes; then
12172 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12173 /* end confdefs.h. */
12174 #include <stdint.h>
12177 aix*) gl_absname_cpp="$ac_cpp -C" ;;
12178 *) gl_absname_cpp="$ac_cpp" ;;
12183 gl_dirsep_regex='[/\\]'
12186 gl_dirsep_regex='\/'
12189 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
12190 gl_header_literal_regex=`echo 'stdint.h' \
12191 | sed -e "$gl_make_literal_regex_sed"`
12192 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
12193 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
12199 gl_cv_absolute_stdint_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
12200 sed -n "$gl_absolute_header_sed"`
12202 gl_header=$gl_cv_absolute_stdint_h
12203 gl_cv_next_stdint_h='"'$gl_header'"'
12205 gl_cv_next_stdint_h='<'stdint.h'>'
12210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdint_h" >&5
12211 $as_echo "$gl_cv_next_stdint_h" >&6; }
12213 NEXT_STDINT_H=$gl_cv_next_stdint_h
12215 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
12216 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
12217 gl_next_as_first_directive='<'stdint.h'>'
12219 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
12220 gl_next_as_first_directive=$gl_cv_next_stdint_h
12222 NEXT_AS_FIRST_DIRECTIVE_STDINT_H=$gl_next_as_first_directive
12227 if test $ac_cv_header_stdint_h = yes; then
12234 if test $ac_cv_header_stdint_h = yes; then
12235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stdint.h conforms to C99" >&5
12236 $as_echo_n "checking whether stdint.h conforms to C99... " >&6; }
12237 if ${gl_cv_header_working_stdint_h+:} false; then :
12238 $as_echo_n "(cached) " >&6
12240 gl_cv_header_working_stdint_h=no
12241 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12242 /* end confdefs.h. */
12245 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
12246 #define __STDC_CONSTANT_MACROS 1
12247 #define __STDC_LIMIT_MACROS 1
12248 #include <stdint.h>
12249 /* Dragonfly defines WCHAR_MIN, WCHAR_MAX only in <wchar.h>. */
12250 #if !(defined WCHAR_MIN && defined WCHAR_MAX)
12251 #error "WCHAR_MIN, WCHAR_MAX not defined in <stdint.h>"
12255 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
12256 included before <wchar.h>. */
12257 #include <stddef.h>
12258 #include <signal.h>
12260 # include <stdio.h>
12262 # include <wchar.h>
12267 int8_t a1 = INT8_MAX;
12268 int8_t a1min = INT8_MIN;
12271 int16_t a2 = INT16_MAX;
12272 int16_t a2min = INT16_MIN;
12275 int32_t a3 = INT32_MAX;
12276 int32_t a3min = INT32_MIN;
12279 int64_t a4 = INT64_MAX;
12280 int64_t a4min = INT64_MIN;
12283 uint8_t b1 = UINT8_MAX;
12285 typedef int b1[(unsigned char) -1 != 255 ? 1 : -1];
12288 uint16_t b2 = UINT16_MAX;
12291 uint32_t b3 = UINT32_MAX;
12294 uint64_t b4 = UINT64_MAX;
12296 int_least8_t c1 = INT8_C (0x7f);
12297 int_least8_t c1max = INT_LEAST8_MAX;
12298 int_least8_t c1min = INT_LEAST8_MIN;
12299 int_least16_t c2 = INT16_C (0x7fff);
12300 int_least16_t c2max = INT_LEAST16_MAX;
12301 int_least16_t c2min = INT_LEAST16_MIN;
12302 int_least32_t c3 = INT32_C (0x7fffffff);
12303 int_least32_t c3max = INT_LEAST32_MAX;
12304 int_least32_t c3min = INT_LEAST32_MIN;
12305 int_least64_t c4 = INT64_C (0x7fffffffffffffff);
12306 int_least64_t c4max = INT_LEAST64_MAX;
12307 int_least64_t c4min = INT_LEAST64_MIN;
12308 uint_least8_t d1 = UINT8_C (0xff);
12309 uint_least8_t d1max = UINT_LEAST8_MAX;
12310 uint_least16_t d2 = UINT16_C (0xffff);
12311 uint_least16_t d2max = UINT_LEAST16_MAX;
12312 uint_least32_t d3 = UINT32_C (0xffffffff);
12313 uint_least32_t d3max = UINT_LEAST32_MAX;
12314 uint_least64_t d4 = UINT64_C (0xffffffffffffffff);
12315 uint_least64_t d4max = UINT_LEAST64_MAX;
12316 int_fast8_t e1 = INT_FAST8_MAX;
12317 int_fast8_t e1min = INT_FAST8_MIN;
12318 int_fast16_t e2 = INT_FAST16_MAX;
12319 int_fast16_t e2min = INT_FAST16_MIN;
12320 int_fast32_t e3 = INT_FAST32_MAX;
12321 int_fast32_t e3min = INT_FAST32_MIN;
12322 int_fast64_t e4 = INT_FAST64_MAX;
12323 int_fast64_t e4min = INT_FAST64_MIN;
12324 uint_fast8_t f1 = UINT_FAST8_MAX;
12325 uint_fast16_t f2 = UINT_FAST16_MAX;
12326 uint_fast32_t f3 = UINT_FAST32_MAX;
12327 uint_fast64_t f4 = UINT_FAST64_MAX;
12329 intptr_t g = INTPTR_MAX;
12330 intptr_t gmin = INTPTR_MIN;
12333 uintptr_t h = UINTPTR_MAX;
12335 intmax_t i = INTMAX_MAX;
12336 uintmax_t j = UINTMAX_MAX;
12338 /* Check that SIZE_MAX has the correct type, if possible. */
12339 #if 201112 <= __STDC_VERSION__
12340 int k = _Generic (SIZE_MAX, size_t: 0);
12341 #elif (2 <= __GNUC__ || defined __IBM__TYPEOF__ \
12342 || (0x5110 <= __SUNPRO_C && !__STDC__))
12344 extern __typeof__ (SIZE_MAX) k;
12347 #include <limits.h> /* for CHAR_BIT */
12348 #define TYPE_MINIMUM(t) \
12349 ((t) ((t) 0 < (t) -1 ? (t) 0 : ~ TYPE_MAXIMUM (t)))
12350 #define TYPE_MAXIMUM(t) \
12351 ((t) ((t) 0 < (t) -1 \
12353 : ((((t) 1 << (sizeof (t) * CHAR_BIT - 2)) - 1) * 2 + 1)))
12356 PTRDIFF_MIN == TYPE_MINIMUM (ptrdiff_t)
12357 && PTRDIFF_MAX == TYPE_MAXIMUM (ptrdiff_t)
12359 /* Detect bug in FreeBSD 6.0 / ia64. */
12360 int check_SIG_ATOMIC:
12361 SIG_ATOMIC_MIN == TYPE_MINIMUM (sig_atomic_t)
12362 && SIG_ATOMIC_MAX == TYPE_MAXIMUM (sig_atomic_t)
12364 int check_SIZE: SIZE_MAX == TYPE_MAXIMUM (size_t) ? 1 : -1;
12366 WCHAR_MIN == TYPE_MINIMUM (wchar_t)
12367 && WCHAR_MAX == TYPE_MAXIMUM (wchar_t)
12369 /* Detect bug in mingw. */
12371 WINT_MIN == TYPE_MINIMUM (wint_t)
12372 && WINT_MAX == TYPE_MAXIMUM (wint_t)
12375 /* Detect bugs in glibc 2.4 and Solaris 10 stdint.h, among others. */
12377 (-1 < UINT8_C (0)) == (-1 < (uint_least8_t) 0) ? 1 : -1;
12378 int check_UINT16_C:
12379 (-1 < UINT16_C (0)) == (-1 < (uint_least16_t) 0) ? 1 : -1;
12381 /* Detect bugs in OpenBSD 3.9 stdint.h. */
12383 int check_uint8: (uint8_t) -1 == UINT8_MAX ? 1 : -1;
12386 int check_uint16: (uint16_t) -1 == UINT16_MAX ? 1 : -1;
12389 int check_uint32: (uint32_t) -1 == UINT32_MAX ? 1 : -1;
12392 int check_uint64: (uint64_t) -1 == UINT64_MAX ? 1 : -1;
12394 int check_uint_least8: (uint_least8_t) -1 == UINT_LEAST8_MAX ? 1 : -1;
12395 int check_uint_least16: (uint_least16_t) -1 == UINT_LEAST16_MAX ? 1 : -1;
12396 int check_uint_least32: (uint_least32_t) -1 == UINT_LEAST32_MAX ? 1 : -1;
12397 int check_uint_least64: (uint_least64_t) -1 == UINT_LEAST64_MAX ? 1 : -1;
12398 int check_uint_fast8: (uint_fast8_t) -1 == UINT_FAST8_MAX ? 1 : -1;
12399 int check_uint_fast16: (uint_fast16_t) -1 == UINT_FAST16_MAX ? 1 : -1;
12400 int check_uint_fast32: (uint_fast32_t) -1 == UINT_FAST32_MAX ? 1 : -1;
12401 int check_uint_fast64: (uint_fast64_t) -1 == UINT_FAST64_MAX ? 1 : -1;
12402 int check_uintptr: (uintptr_t) -1 == UINTPTR_MAX ? 1 : -1;
12403 int check_uintmax: (uintmax_t) -1 == UINTMAX_MAX ? 1 : -1;
12404 int check_size: (size_t) -1 == SIZE_MAX ? 1 : -1;
12415 if ac_fn_c_try_compile "$LINENO"; then :
12416 if test "$cross_compiling" = yes; then :
12418 # Guess yes on native Windows.
12419 mingw*) gl_cv_header_working_stdint_h="guessing yes" ;;
12420 # In general, assume it works.
12421 *) gl_cv_header_working_stdint_h="guessing yes" ;;
12425 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12426 /* end confdefs.h. */
12429 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
12430 #define __STDC_CONSTANT_MACROS 1
12431 #define __STDC_LIMIT_MACROS 1
12432 #include <stdint.h>
12435 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
12436 included before <wchar.h>. */
12437 #include <stddef.h>
12438 #include <signal.h>
12440 # include <stdio.h>
12442 # include <wchar.h>
12447 #include <string.h>
12448 #define MVAL(macro) MVAL1(macro)
12449 #define MVAL1(expression) #expression
12450 static const char *macro_values[] =
12484 for (mv = macro_values; *mv != NULL; mv++)
12486 const char *value = *mv;
12487 /* Test whether it looks like a cast expression. */
12488 if (strncmp (value, "((unsigned int)"/*)*/, 15) == 0
12489 || strncmp (value, "((unsigned short)"/*)*/, 17) == 0
12490 || strncmp (value, "((unsigned char)"/*)*/, 16) == 0
12491 || strncmp (value, "((int)"/*)*/, 6) == 0
12492 || strncmp (value, "((signed short)"/*)*/, 15) == 0
12493 || strncmp (value, "((signed char)"/*)*/, 14) == 0)
12494 return mv - macro_values + 1;
12502 if ac_fn_c_try_run "$LINENO"; then :
12503 gl_cv_header_working_stdint_h=yes
12505 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12506 conftest.$ac_objext conftest.beam conftest.$ac_ext
12511 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_stdint_h" >&5
12515 $as_echo "$gl_cv_header_working_stdint_h" >&6; }
12518 HAVE_C99_STDINT_H=0
12519 HAVE_SYS_BITYPES_H=0
12520 HAVE_SYS_INTTYPES_H=0
12522 case "$gl_cv_header_working_stdint_h" in
12524 HAVE_C99_STDINT_H=1
12525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stdint.h predates C++11" >&5
12526 $as_echo_n "checking whether stdint.h predates C++11... " >&6; }
12527 if ${gl_cv_header_stdint_predates_cxx11_h+:} false; then :
12528 $as_echo_n "(cached) " >&6
12530 gl_cv_header_stdint_predates_cxx11_h=yes
12531 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12532 /* end confdefs.h. */
12535 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
12536 #include <stdint.h>
12539 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
12540 included before <wchar.h>. */
12541 #include <stddef.h>
12542 #include <signal.h>
12544 # include <stdio.h>
12546 # include <wchar.h>
12550 intmax_t im = INTMAX_MAX;
12551 int32_t i32 = INT32_C (0x7fffffff);
12561 if ac_fn_c_try_compile "$LINENO"; then :
12562 gl_cv_header_stdint_predates_cxx11_h=no
12564 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_stdint_predates_cxx11_h" >&5
12567 $as_echo "$gl_cv_header_stdint_predates_cxx11_h" >&6; }
12569 if test "$gl_cv_header_stdint_predates_cxx11_h" = yes; then
12571 $as_echo "#define __STDC_CONSTANT_MACROS 1" >>confdefs.h
12574 $as_echo "#define __STDC_LIMIT_MACROS 1" >>confdefs.h
12577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stdint.h has UINTMAX_WIDTH etc." >&5
12578 $as_echo_n "checking whether stdint.h has UINTMAX_WIDTH etc.... " >&6; }
12579 if ${gl_cv_header_stdint_width+:} false; then :
12580 $as_echo_n "(cached) " >&6
12582 gl_cv_header_stdint_width=no
12583 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12584 /* end confdefs.h. */
12586 /* Work if build is not clean. */
12587 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1
12588 #ifndef __STDC_WANT_IEC_60559_BFP_EXT__
12589 #define __STDC_WANT_IEC_60559_BFP_EXT__ 1
12591 #include <stdint.h>
12593 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
12594 included before <wchar.h>. */
12595 #include <stddef.h>
12596 #include <signal.h>
12598 # include <stdio.h>
12600 # include <wchar.h>
12603 int iw = UINTMAX_WIDTH;
12613 if ac_fn_c_try_compile "$LINENO"; then :
12614 gl_cv_header_stdint_width=yes
12616 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_stdint_width" >&5
12619 $as_echo "$gl_cv_header_stdint_width" >&6; }
12620 if test "$gl_cv_header_stdint_width" = yes; then
12625 for ac_header in sys/inttypes.h sys/bitypes.h
12627 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12628 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
12629 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
12630 cat >>confdefs.h <<_ACEOF
12631 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12638 if test $ac_cv_header_sys_inttypes_h = yes; then
12639 HAVE_SYS_INTTYPES_H=1
12641 if test $ac_cv_header_sys_bitypes_h = yes; then
12642 HAVE_SYS_BITYPES_H=1
12646 if test $APPLE_UNIVERSAL_BUILD = 0; then
12649 for gltype in ptrdiff_t size_t ; do
12650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
12651 $as_echo_n "checking for bit size of $gltype... " >&6; }
12652 if eval \${gl_cv_bitsizeof_${gltype}+:} false; then :
12653 $as_echo_n "(cached) " >&6
12655 if ac_fn_c_compute_int "$LINENO" "sizeof ($gltype) * CHAR_BIT" "result" "
12656 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
12657 included before <wchar.h>. */
12658 #include <stddef.h>
12659 #include <signal.h>
12661 # include <stdio.h>
12663 # include <wchar.h>
12666 #include <limits.h>"; then :
12672 eval gl_cv_bitsizeof_${gltype}=\$result
12675 eval ac_res=\$gl_cv_bitsizeof_${gltype}
12676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
12677 $as_echo "$ac_res" >&6; }
12678 eval result=\$gl_cv_bitsizeof_${gltype}
12679 if test $result = unknown; then
12682 GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
12683 cat >>confdefs.h <<_ACEOF
12684 #define BITSIZEOF_${GLTYPE} $result
12687 eval BITSIZEOF_${GLTYPE}=\$result
12694 for gltype in sig_atomic_t wchar_t wint_t ; do
12695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
12696 $as_echo_n "checking for bit size of $gltype... " >&6; }
12697 if eval \${gl_cv_bitsizeof_${gltype}+:} false; then :
12698 $as_echo_n "(cached) " >&6
12700 if ac_fn_c_compute_int "$LINENO" "sizeof ($gltype) * CHAR_BIT" "result" "
12701 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
12702 included before <wchar.h>. */
12703 #include <stddef.h>
12704 #include <signal.h>
12706 # include <stdio.h>
12708 # include <wchar.h>
12711 #include <limits.h>"; then :
12717 eval gl_cv_bitsizeof_${gltype}=\$result
12720 eval ac_res=\$gl_cv_bitsizeof_${gltype}
12721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
12722 $as_echo "$ac_res" >&6; }
12723 eval result=\$gl_cv_bitsizeof_${gltype}
12724 if test $result = unknown; then
12727 GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
12728 cat >>confdefs.h <<_ACEOF
12729 #define BITSIZEOF_${GLTYPE} $result
12732 eval BITSIZEOF_${GLTYPE}=\$result
12738 for gltype in sig_atomic_t wchar_t wint_t ; do
12739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gltype is signed" >&5
12740 $as_echo_n "checking whether $gltype is signed... " >&6; }
12741 if eval \${gl_cv_type_${gltype}_signed+:} false; then :
12742 $as_echo_n "(cached) " >&6
12744 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12745 /* end confdefs.h. */
12747 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
12748 included before <wchar.h>. */
12749 #include <stddef.h>
12750 #include <signal.h>
12752 # include <stdio.h>
12754 # include <wchar.h>
12757 int verify[2 * (($gltype) -1 < ($gltype) 0) - 1];
12766 if ac_fn_c_try_compile "$LINENO"; then :
12771 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12772 eval gl_cv_type_${gltype}_signed=\$result
12775 eval ac_res=\$gl_cv_type_${gltype}_signed
12776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
12777 $as_echo "$ac_res" >&6; }
12778 eval result=\$gl_cv_type_${gltype}_signed
12779 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
12780 if test "$result" = yes; then
12781 cat >>confdefs.h <<_ACEOF
12782 #define HAVE_SIGNED_${GLTYPE} 1
12785 eval HAVE_SIGNED_${GLTYPE}=1
12787 eval HAVE_SIGNED_${GLTYPE}=0
12792 gl_cv_type_ptrdiff_t_signed=yes
12793 gl_cv_type_size_t_signed=no
12794 if test $APPLE_UNIVERSAL_BUILD = 0; then
12797 for gltype in ptrdiff_t size_t ; do
12798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
12799 $as_echo_n "checking for $gltype integer literal suffix... " >&6; }
12800 if eval \${gl_cv_type_${gltype}_suffix+:} false; then :
12801 $as_echo_n "(cached) " >&6
12803 eval gl_cv_type_${gltype}_suffix=no
12804 eval result=\$gl_cv_type_${gltype}_signed
12805 if test "$result" = yes; then
12810 for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do
12812 '') gltype1='int';;
12813 l) gltype1='long int';;
12814 ll) gltype1='long long int';;
12815 i64) gltype1='__int64';;
12816 u) gltype1='unsigned int';;
12817 ul) gltype1='unsigned long int';;
12818 ull) gltype1='unsigned long long int';;
12819 ui64)gltype1='unsigned __int64';;
12821 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12822 /* end confdefs.h. */
12824 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
12825 included before <wchar.h>. */
12826 #include <stddef.h>
12827 #include <signal.h>
12829 # include <stdio.h>
12831 # include <wchar.h>
12834 extern $gltype foo;
12835 extern $gltype1 foo;
12844 if ac_fn_c_try_compile "$LINENO"; then :
12845 eval gl_cv_type_${gltype}_suffix=\$glsuf
12847 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12848 eval result=\$gl_cv_type_${gltype}_suffix
12849 test "$result" != no && break
12852 eval ac_res=\$gl_cv_type_${gltype}_suffix
12853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
12854 $as_echo "$ac_res" >&6; }
12855 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
12856 eval result=\$gl_cv_type_${gltype}_suffix
12857 test "$result" = no && result=
12858 eval ${GLTYPE}_SUFFIX=\$result
12859 cat >>confdefs.h <<_ACEOF
12860 #define ${GLTYPE}_SUFFIX $result
12869 for gltype in sig_atomic_t wchar_t wint_t ; do
12870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
12871 $as_echo_n "checking for $gltype integer literal suffix... " >&6; }
12872 if eval \${gl_cv_type_${gltype}_suffix+:} false; then :
12873 $as_echo_n "(cached) " >&6
12875 eval gl_cv_type_${gltype}_suffix=no
12876 eval result=\$gl_cv_type_${gltype}_signed
12877 if test "$result" = yes; then
12882 for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do
12884 '') gltype1='int';;
12885 l) gltype1='long int';;
12886 ll) gltype1='long long int';;
12887 i64) gltype1='__int64';;
12888 u) gltype1='unsigned int';;
12889 ul) gltype1='unsigned long int';;
12890 ull) gltype1='unsigned long long int';;
12891 ui64)gltype1='unsigned __int64';;
12893 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12894 /* end confdefs.h. */
12896 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
12897 included before <wchar.h>. */
12898 #include <stddef.h>
12899 #include <signal.h>
12901 # include <stdio.h>
12903 # include <wchar.h>
12906 extern $gltype foo;
12907 extern $gltype1 foo;
12916 if ac_fn_c_try_compile "$LINENO"; then :
12917 eval gl_cv_type_${gltype}_suffix=\$glsuf
12919 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12920 eval result=\$gl_cv_type_${gltype}_suffix
12921 test "$result" != no && break
12924 eval ac_res=\$gl_cv_type_${gltype}_suffix
12925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
12926 $as_echo "$ac_res" >&6; }
12927 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
12928 eval result=\$gl_cv_type_${gltype}_suffix
12929 test "$result" = no && result=
12930 eval ${GLTYPE}_SUFFIX=\$result
12931 cat >>confdefs.h <<_ACEOF
12932 #define ${GLTYPE}_SUFFIX $result
12939 if test $GNULIB_OVERRIDES_WINT_T = 1; then
12940 BITSIZEOF_WINT_T=32
12948 LIMITS_H='limits.h'
12949 if test -n "$LIMITS_H"; then
12950 GL_GENERATE_LIMITS_H_TRUE=
12951 GL_GENERATE_LIMITS_H_FALSE='#'
12953 GL_GENERATE_LIMITS_H_TRUE='#'
12954 GL_GENERATE_LIMITS_H_FALSE=
12963 if test -n "$STDINT_H"; then
12964 GL_GENERATE_STDINT_H_TRUE=
12965 GL_GENERATE_STDINT_H_FALSE='#'
12967 GL_GENERATE_STDINT_H_TRUE='#'
12968 GL_GENERATE_STDINT_H_FALSE=
12972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
12973 $as_echo_n "checking for C/C++ restrict keyword... " >&6; }
12974 if ${ac_cv_c_restrict+:} false; then :
12975 $as_echo_n "(cached) " >&6
12977 ac_cv_c_restrict=no
12978 # The order here caters to the fact that C++ does not require restrict.
12979 for ac_kw in __restrict __restrict__ _Restrict restrict; do
12980 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12981 /* end confdefs.h. */
12982 typedef int *int_ptr;
12983 int foo (int_ptr $ac_kw ip) { return ip[0]; }
12984 int bar (int [$ac_kw]); /* Catch GCC bug 14050. */
12985 int bar (int ip[$ac_kw]) { return ip[0]; }
12993 return foo (t) + bar (t);
12999 if ac_fn_c_try_compile "$LINENO"; then :
13000 ac_cv_c_restrict=$ac_kw
13002 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13003 test "$ac_cv_c_restrict" != no && break
13007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
13008 $as_echo "$ac_cv_c_restrict" >&6; }
13010 case $ac_cv_c_restrict in
13012 no) $as_echo "#define restrict /**/" >>confdefs.h
13014 *) cat >>confdefs.h <<_ACEOF
13015 #define restrict $ac_cv_c_restrict
13031 if test $gl_cv_have_include_next = yes; then
13032 gl_cv_next_string_h='<'string.h'>'
13034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <string.h>" >&5
13035 $as_echo_n "checking absolute name of <string.h>... " >&6; }
13036 if ${gl_cv_next_string_h+:} false; then :
13037 $as_echo_n "(cached) " >&6
13042 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13043 /* end confdefs.h. */
13044 #include <string.h>
13047 aix*) gl_absname_cpp="$ac_cpp -C" ;;
13048 *) gl_absname_cpp="$ac_cpp" ;;
13053 gl_dirsep_regex='[/\\]'
13056 gl_dirsep_regex='\/'
13059 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
13060 gl_header_literal_regex=`echo 'string.h' \
13061 | sed -e "$gl_make_literal_regex_sed"`
13062 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
13063 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
13069 gl_cv_absolute_string_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
13070 sed -n "$gl_absolute_header_sed"`
13072 gl_header=$gl_cv_absolute_string_h
13073 gl_cv_next_string_h='"'$gl_header'"'
13077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_string_h" >&5
13078 $as_echo "$gl_cv_next_string_h" >&6; }
13080 NEXT_STRING_H=$gl_cv_next_string_h
13082 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
13083 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
13084 gl_next_as_first_directive='<'string.h'>'
13086 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
13087 gl_next_as_first_directive=$gl_cv_next_string_h
13089 NEXT_AS_FIRST_DIRECTIVE_STRING_H=$gl_next_as_first_directive
13101 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
13102 if test "x$ac_cv_type_pid_t" = xyes; then :
13106 cat >>confdefs.h <<_ACEOF
13112 ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
13113 if test "x$ac_cv_type_mode_t" = xyes; then :
13117 cat >>confdefs.h <<_ACEOF
13125 WINDOWS_64_BIT_OFF_T=0
13131 $as_echo "#define _USE_STD_STAT 1" >>confdefs.h
13143 if test $gl_cv_have_include_next = yes; then
13144 gl_cv_next_sys_types_h='<'sys/types.h'>'
13146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/types.h>" >&5
13147 $as_echo_n "checking absolute name of <sys/types.h>... " >&6; }
13148 if ${gl_cv_next_sys_types_h+:} false; then :
13149 $as_echo_n "(cached) " >&6
13154 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13155 /* end confdefs.h. */
13156 #include <sys/types.h>
13159 aix*) gl_absname_cpp="$ac_cpp -C" ;;
13160 *) gl_absname_cpp="$ac_cpp" ;;
13165 gl_dirsep_regex='[/\\]'
13168 gl_dirsep_regex='\/'
13171 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
13172 gl_header_literal_regex=`echo 'sys/types.h' \
13173 | sed -e "$gl_make_literal_regex_sed"`
13174 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
13175 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
13181 gl_cv_absolute_sys_types_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
13182 sed -n "$gl_absolute_header_sed"`
13184 gl_header=$gl_cv_absolute_sys_types_h
13185 gl_cv_next_sys_types_h='"'$gl_header'"'
13189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_types_h" >&5
13190 $as_echo "$gl_cv_next_sys_types_h" >&6; }
13192 NEXT_SYS_TYPES_H=$gl_cv_next_sys_types_h
13194 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
13195 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
13196 gl_next_as_first_directive='<'sys/types.h'>'
13198 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
13199 gl_next_as_first_directive=$gl_cv_next_sys_types_h
13201 NEXT_AS_FIRST_DIRECTIVE_SYS_TYPES_H=$gl_next_as_first_directive
13214 WINDOWS_STAT_INODES=0
13224 gl_libunistring_sed_extract_major='/^[0-9]/{s/^\([0-9]*\).*/\1/p;q;}
13229 gl_libunistring_sed_extract_minor='/^[0-9][0-9]*[.][0-9]/{s/^[0-9]*[.]\([0-9]*\).*/\1/p;q;}
13234 gl_libunistring_sed_extract_subminor='/^[0-9][0-9]*[.][0-9][0-9]*[.][0-9]/{s/^[0-9]*[.][0-9]*[.]\([0-9]*\).*/\1/p;q;}
13241 if test "$HAVE_LIBUNISTRING" = yes; then
13242 LIBUNISTRING_VERSION_MAJOR=`echo "$LIBUNISTRING_VERSION" | sed -n -e "$gl_libunistring_sed_extract_major"`
13243 LIBUNISTRING_VERSION_MINOR=`echo "$LIBUNISTRING_VERSION" | sed -n -e "$gl_libunistring_sed_extract_minor"`
13244 LIBUNISTRING_VERSION_SUBMINOR=`echo "$LIBUNISTRING_VERSION" | sed -n -e "$gl_libunistring_sed_extract_subminor"`
13247 ac_fn_c_check_decl "$LINENO" "vsnprintf" "ac_cv_have_decl_vsnprintf" "$ac_includes_default"
13248 if test "x$ac_cv_have_decl_vsnprintf" = xyes; then :
13254 cat >>confdefs.h <<_ACEOF
13255 #define HAVE_DECL_VSNPRINTF $ac_have_decl
13264 GNULIB_MBSRTOWCS=0;
13265 GNULIB_MBSNRTOWCS=0;
13267 GNULIB_WCSRTOMBS=0;
13268 GNULIB_WCSNRTOMBS=0;
13285 GNULIB_WCSCASECMP=0;
13286 GNULIB_WCSNCASECMP=0;
13324 HAVE_WCSNCASECMP=1;
13338 HAVE_DECL_WCWIDTH=1;
13339 REPLACE_MBSTATE_T=0;
13345 REPLACE_MBSRTOWCS=0;
13346 REPLACE_MBSNRTOWCS=0;
13348 REPLACE_WCSRTOMBS=0;
13349 REPLACE_WCSNRTOMBS=0;
13351 REPLACE_WCSWIDTH=0;
13352 REPLACE_WCSFTIME=0;
13355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <wchar.h> uses 'inline' correctly" >&5
13356 $as_echo_n "checking whether <wchar.h> uses 'inline' correctly... " >&6; }
13357 if ${gl_cv_header_wchar_h_correct_inline+:} false; then :
13358 $as_echo_n "(cached) " >&6
13360 gl_cv_header_wchar_h_correct_inline=yes
13361 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13362 /* end confdefs.h. */
13364 #define wcstod renamed_wcstod
13365 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
13367 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
13368 included before <wchar.h>. */
13369 #include <stddef.h>
13373 extern int zero (void);
13374 int main () { return zero(); }
13377 save_ac_compile="$ac_compile"
13378 ac_compile=`echo "$save_ac_compile" | sed s/conftest/conftest1/`
13379 if echo '#include "conftest.c"' >conftest1.c &&
13380 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13381 (eval $ac_compile) 2>&5
13383 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13384 test $ac_status = 0; }; then
13385 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13386 /* end confdefs.h. */
13388 #define wcstod renamed_wcstod
13389 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
13391 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
13392 included before <wchar.h>. */
13393 #include <stddef.h>
13397 int zero (void) { return 0; }
13400 ac_compile=`echo "$save_ac_compile" | sed s/conftest/conftest2/`
13401 if echo '#include "conftest.c"' >conftest2.c &&
13402 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13403 (eval $ac_compile) 2>&5
13405 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13406 test $ac_status = 0; }; then
13407 if $CC -o conftest$ac_exeext $CFLAGS $LDFLAGS conftest1.$ac_objext conftest2.$ac_objext $LIBS >&5 2>&1; then
13410 gl_cv_header_wchar_h_correct_inline=no
13414 ac_compile="$save_ac_compile"
13415 rm -f conftest12.c conftest12.$ac_objext conftest$ac_exeext
13418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_wchar_h_correct_inline" >&5
13419 $as_echo "$gl_cv_header_wchar_h_correct_inline" >&6; }
13420 if test $gl_cv_header_wchar_h_correct_inline = no; then
13421 as_fn_error $? "<wchar.h> cannot be used with this compiler ($CC $CFLAGS $CPPFLAGS).
13422 This is a known interoperability problem of glibc <= 2.5 with gcc >= 4.3 in
13423 C99 mode. You have four options:
13424 - Add the flag -fgnu89-inline to CC and reconfigure, or
13425 - Fix your include files, using parts of
13426 <https://sourceware.org/git/?p=glibc.git;a=commitdiff;h=b037a293a48718af30d706c2e18c929d0e69a621>, or
13427 - Use a gcc version older than 4.3, or
13428 - Don't use the flags -std=c99 or -std=gnu99.
13429 Configuration aborted." "$LINENO" 5
13436 if test $ac_cv_header_crtdefs_h = yes; then
13448 GNULIB_TOWCTRANS=0;
13452 REPLACE_ISWBLANK=0;
13460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
13461 $as_echo_n "checking for inline... " >&6; }
13462 if ${ac_cv_c_inline+:} false; then :
13463 $as_echo_n "(cached) " >&6
13466 for ac_kw in inline __inline__ __inline; do
13467 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13468 /* end confdefs.h. */
13469 #ifndef __cplusplus
13471 static $ac_kw foo_t static_foo () {return 0; }
13472 $ac_kw foo_t foo () {return 0; }
13476 if ac_fn_c_try_compile "$LINENO"; then :
13477 ac_cv_c_inline=$ac_kw
13479 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13480 test "$ac_cv_c_inline" != no && break
13484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
13485 $as_echo "$ac_cv_c_inline" >&6; }
13487 case $ac_cv_c_inline in
13490 case $ac_cv_c_inline in
13492 *) ac_val=$ac_cv_c_inline;;
13494 cat >>confdefs.h <<_ACEOF
13495 #ifndef __cplusplus
13496 #define inline $ac_val
13504 GL_COND_LIBTOOL_TRUE=
13505 GL_COND_LIBTOOL_FALSE='#'
13507 GL_COND_LIBTOOL_TRUE='#'
13508 GL_COND_LIBTOOL_FALSE=
13511 gl_cond_libtool=false
13514 gl_m4_base='gnulib_m4'
13524 gl_source_base='lib'
13527 if test $ac_cv_func_alloca_works = no; then
13531 # Define an additional variable used in the Makefile substitution.
13532 if test $ac_cv_working_alloca_h = yes; then
13533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca as a compiler built-in" >&5
13534 $as_echo_n "checking for alloca as a compiler built-in... " >&6; }
13535 if ${gl_cv_rpl_alloca+:} false; then :
13536 $as_echo_n "(cached) " >&6
13539 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13540 /* end confdefs.h. */
13542 #if defined __GNUC__ || defined _AIX || defined _MSC_VER
13547 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13548 $EGREP "Need own alloca" >/dev/null 2>&1; then :
13549 gl_cv_rpl_alloca=yes
13551 gl_cv_rpl_alloca=no
13557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_rpl_alloca" >&5
13558 $as_echo "$gl_cv_rpl_alloca" >&6; }
13559 if test $gl_cv_rpl_alloca = yes; then
13561 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
13571 if test -n "$ALLOCA_H"; then
13572 GL_GENERATE_ALLOCA_H_TRUE=
13573 GL_GENERATE_ALLOCA_H_FALSE='#'
13575 GL_GENERATE_ALLOCA_H_TRUE='#'
13576 GL_GENERATE_ALLOCA_H_FALSE=
13586 REPLACE_FLOAT_LDBL=0
13588 aix* | beos* | openbsd* | mirbsd* | irix*)
13591 freebsd* | dragonfly*)
13592 case "$host_cpu" in
13597 # On x86_64 systems, the C compiler may still be generating
13599 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13600 /* end confdefs.h. */
13601 #if defined __LP64__ || defined __x86_64__ || defined __amd64__
13608 if ac_fn_c_try_compile "$LINENO"; then :
13613 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13618 case "$host_cpu" in
13626 aix* | freebsd* | dragonfly* | linux*)
13627 if test -n "$FLOAT_H"; then
13628 REPLACE_FLOAT_LDBL=1
13634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether conversion from 'int' to 'long double' works" >&5
13635 $as_echo_n "checking whether conversion from 'int' to 'long double' works... " >&6; }
13636 if ${gl_cv_func_itold_works+:} false; then :
13637 $as_echo_n "(cached) " >&6
13640 if test "$cross_compiling" = yes; then :
13643 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13644 /* end confdefs.h. */
13645 #if defined __LP64__ || defined __arch64__
13652 if ac_fn_c_try_compile "$LINENO"; then :
13653 gl_cv_func_itold_works="guessing no"
13655 gl_cv_func_itold_works="guessing yes"
13657 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13659 # Guess yes on native Windows.
13660 mingw*) gl_cv_func_itold_works="guessing yes" ;;
13661 *) gl_cv_func_itold_works="guessing yes" ;;
13665 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13666 /* end confdefs.h. */
13669 volatile long double ld;
13678 if ac_fn_c_try_run "$LINENO"; then :
13679 gl_cv_func_itold_works=yes
13681 gl_cv_func_itold_works=no
13683 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13684 conftest.$ac_objext conftest.beam conftest.$ac_ext
13689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_itold_works" >&5
13690 $as_echo "$gl_cv_func_itold_works" >&6; }
13691 case "$gl_cv_func_itold_works" in
13698 if test -n "$FLOAT_H"; then
13707 if test $gl_cv_have_include_next = yes; then
13708 gl_cv_next_float_h='<'float.h'>'
13710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <float.h>" >&5
13711 $as_echo_n "checking absolute name of <float.h>... " >&6; }
13712 if ${gl_cv_next_float_h+:} false; then :
13713 $as_echo_n "(cached) " >&6
13718 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13719 /* end confdefs.h. */
13723 aix*) gl_absname_cpp="$ac_cpp -C" ;;
13724 *) gl_absname_cpp="$ac_cpp" ;;
13729 gl_dirsep_regex='[/\\]'
13732 gl_dirsep_regex='\/'
13735 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
13736 gl_header_literal_regex=`echo 'float.h' \
13737 | sed -e "$gl_make_literal_regex_sed"`
13738 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
13739 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
13745 gl_cv_absolute_float_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
13746 sed -n "$gl_absolute_header_sed"`
13748 gl_header=$gl_cv_absolute_float_h
13749 gl_cv_next_float_h='"'$gl_header'"'
13753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_float_h" >&5
13754 $as_echo "$gl_cv_next_float_h" >&6; }
13756 NEXT_FLOAT_H=$gl_cv_next_float_h
13758 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
13759 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
13760 gl_next_as_first_directive='<'float.h'>'
13762 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
13763 gl_next_as_first_directive=$gl_cv_next_float_h
13765 NEXT_AS_FIRST_DIRECTIVE_FLOAT_H=$gl_next_as_first_directive
13772 if test -n "$FLOAT_H"; then
13773 GL_GENERATE_FLOAT_H_TRUE=
13774 GL_GENERATE_FLOAT_H_FALSE='#'
13776 GL_GENERATE_FLOAT_H_TRUE='#'
13777 GL_GENERATE_FLOAT_H_FALSE=
13782 if test $REPLACE_FLOAT_LDBL = 1; then
13791 gl_LIBOBJS="$gl_LIBOBJS float.$ac_objext"
13794 if test $REPLACE_ITOLD = 1; then
13803 gl_LIBOBJS="$gl_LIBOBJS itold.$ac_objext"
13821 gl_cv_func_fprintf_posix=no
13822 case "$gl_cv_func_printf_sizes_c99" in
13824 case "$gl_cv_func_printf_long_double" in
13826 case "$gl_cv_func_printf_infinite" in
13828 case "$gl_cv_func_printf_infinite_long_double" in
13830 case "$gl_cv_func_printf_directive_a" in
13832 case "$gl_cv_func_printf_directive_f" in
13834 case "$gl_cv_func_printf_directive_n" in
13836 case "$gl_cv_func_printf_directive_ls" in
13838 case "$gl_cv_func_printf_positions" in
13840 case "$gl_cv_func_printf_flag_grouping" in
13842 case "$gl_cv_func_printf_flag_leftadjust" in
13844 case "$gl_cv_func_printf_flag_zero" in
13846 case "$gl_cv_func_printf_precision" in
13848 case "$gl_cv_func_printf_enomem" in
13850 # fprintf exists and is
13851 # already POSIX compliant.
13852 gl_cv_func_fprintf_posix=yes
13881 if test $gl_cv_func_fprintf_posix = no; then
13885 case "$gl_cv_func_printf_infinite" in
13890 $as_echo "#define NEED_PRINTF_INFINITE_DOUBLE 1" >>confdefs.h
13898 case "$gl_cv_func_printf_long_double" in
13900 case "$gl_cv_func_printf_infinite_long_double" in
13905 $as_echo "#define NEED_PRINTF_INFINITE_LONG_DOUBLE 1" >>confdefs.h
13914 case "$gl_cv_func_printf_directive_a" in
13919 $as_echo "#define NEED_PRINTF_DIRECTIVE_A 1" >>confdefs.h
13921 for ac_func in nl_langinfo
13923 ac_fn_c_check_func "$LINENO" "nl_langinfo" "ac_cv_func_nl_langinfo"
13924 if test "x$ac_cv_func_nl_langinfo" = xyes; then :
13925 cat >>confdefs.h <<_ACEOF
13926 #define HAVE_NL_LANGINFO 1
13937 case "$gl_cv_func_printf_directive_f" in
13942 $as_echo "#define NEED_PRINTF_DIRECTIVE_F 1" >>confdefs.h
13949 case "$gl_cv_func_printf_directive_ls" in
13954 $as_echo "#define NEED_PRINTF_DIRECTIVE_LS 1" >>confdefs.h
13961 case "$gl_cv_func_printf_flag_grouping" in
13966 $as_echo "#define NEED_PRINTF_FLAG_GROUPING 1" >>confdefs.h
13973 case "$gl_cv_func_printf_flag_leftadjust" in
13978 $as_echo "#define NEED_PRINTF_FLAG_LEFTADJUST 1" >>confdefs.h
13985 case "$gl_cv_func_printf_flag_zero" in
13990 $as_echo "#define NEED_PRINTF_FLAG_ZERO 1" >>confdefs.h
13997 case "$gl_cv_func_printf_precision" in
14002 $as_echo "#define NEED_PRINTF_UNBOUNDED_PRECISION 1" >>confdefs.h
14005 $as_echo "#define NEED_PRINTF_DOUBLE 1" >>confdefs.h
14008 $as_echo "#define NEED_PRINTF_LONG_DOUBLE 1" >>confdefs.h
14015 case "$gl_cv_func_printf_enomem" in
14020 $as_echo "#define NEED_PRINTF_ENOMEM 1" >>confdefs.h
14023 $as_echo "#define NEED_PRINTF_DOUBLE 1" >>confdefs.h
14026 $as_echo "#define NEED_PRINTF_LONG_DOUBLE 1" >>confdefs.h
14041 gl_LIBOBJS="$gl_LIBOBJS vasnprintf.$ac_objext"
14051 gl_LIBOBJS="$gl_LIBOBJS printf-args.$ac_objext"
14061 gl_LIBOBJS="$gl_LIBOBJS printf-parse.$ac_objext"
14071 gl_LIBOBJS="$gl_LIBOBJS asnprintf.$ac_objext"
14073 if test $ac_cv_func_vasnprintf = yes; then
14075 $as_echo "#define REPLACE_VASNPRINTF 1" >>confdefs.h
14089 ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
14090 if test "x$ac_cv_type_ptrdiff_t" = xyes; then :
14094 $as_echo "#define ptrdiff_t long" >>confdefs.h
14115 gl_LIBOBJS="$gl_LIBOBJS fprintf.$ac_objext"
14119 $as_echo "#define REPLACE_FPRINTF_POSIX 1" >>confdefs.h
14130 GNULIB_FPRINTF_POSIX=1
14136 $as_echo "#define GNULIB_TEST_FPRINTF_POSIX 1" >>confdefs.h
14143 if test $gl_cv_func_frexp_no_libm = yes; then
14147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether frexp works" >&5
14148 $as_echo_n "checking whether frexp works... " >&6; }
14149 if ${gl_cv_func_frexp_works+:} false; then :
14150 $as_echo_n "(cached) " >&6
14153 if test "$cross_compiling" = yes; then :
14155 netbsd* | irix*) gl_cv_func_frexp_works="guessing no" ;;
14156 mingw*) # Guess yes with MSVC, no with mingw.
14157 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14158 /* end confdefs.h. */
14165 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14166 $EGREP "Good" >/dev/null 2>&1; then :
14167 gl_cv_func_frexp_works="guessing yes"
14169 gl_cv_func_frexp_works="guessing no"
14174 *) gl_cv_func_frexp_works="guessing yes" ;;
14178 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14179 /* end confdefs.h. */
14183 #include <string.h>
14184 #if HAVE_DECL_ALARM
14185 # include <signal.h>
14186 # include <unistd.h>
14188 /* HP cc on HP-UX 10.20 has a bug with the constant expression -0.0.
14189 ICC 10.0 has a bug when optimizing the expression -zero.
14190 The expression -DBL_MIN * DBL_MIN does not work when cross-compiling
14191 to PowerPC on Mac OS X 10.5. */
14192 #if defined __hpux || defined __sgi || defined __ICC
14194 compute_minus_zero (void)
14196 return -DBL_MIN * DBL_MIN;
14198 # define minus_zero compute_minus_zero ()
14200 double minus_zero = -0.0;
14208 #if HAVE_DECL_ALARM
14209 /* NeXTstep 3.3 frexp() runs into an endless loop when called on an infinite
14210 number. Let the test fail in this case. */
14211 signal (SIGALRM, SIG_DFL);
14214 /* Test on denormalized numbers. */
14215 for (i = 1, x = 1.0; i >= DBL_MIN_EXP; i--, x *= 0.5)
14220 double y = frexp (x, &exp);
14221 /* On machines with IEEE754 arithmetic: x = 1.11254e-308, exp = -1022.
14222 On NetBSD: y = 0.75. Correct: y = 0.5. */
14226 /* Test on infinite numbers. */
14230 double y = frexp (x, &exp);
14234 /* Test on negative zero. */
14238 double y = frexp (x, &exp);
14239 if (memcmp (&y, &x, sizeof x))
14245 if ac_fn_c_try_run "$LINENO"; then :
14246 gl_cv_func_frexp_works=yes
14248 gl_cv_func_frexp_works=no
14250 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14251 conftest.$ac_objext conftest.beam conftest.$ac_ext
14256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_frexp_works" >&5
14257 $as_echo "$gl_cv_func_frexp_works" >&6; }
14259 case "$gl_cv_func_frexp_works" in
14260 *yes) gl_func_frexp_no_libm=yes ;;
14261 *) gl_func_frexp_no_libm=no; REPLACE_FREXP=1 ;;
14264 gl_func_frexp_no_libm=no
14267 if test $gl_func_frexp_no_libm = yes; then
14269 $as_echo "#define HAVE_FREXP_IN_LIBC 1" >>confdefs.h
14273 if test $gl_func_frexp_no_libm != yes; then
14282 gl_LIBOBJS="$gl_LIBOBJS frexp.$ac_objext"
14296 $as_echo "#define GNULIB_TEST_FREXP 1" >>confdefs.h
14303 ac_fn_c_check_decl "$LINENO" "frexpl" "ac_cv_have_decl_frexpl" "#include <math.h>
14305 if test "x$ac_cv_have_decl_frexpl" = xyes; then :
14311 if test $HAVE_DECL_FREXPL = 1; then
14313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether frexpl() can be used without linking with libm" >&5
14314 $as_echo_n "checking whether frexpl() can be used without linking with libm... " >&6; }
14315 if ${gl_cv_func_frexpl_no_libm+:} false; then :
14316 $as_echo_n "(cached) " >&6
14319 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14320 /* end confdefs.h. */
14326 int e; return frexpl (x, &e) > 0;
14331 if ac_fn_c_try_link "$LINENO"; then :
14332 gl_cv_func_frexpl_no_libm=yes
14334 gl_cv_func_frexpl_no_libm=no
14336 rm -f core conftest.err conftest.$ac_objext \
14337 conftest$ac_exeext conftest.$ac_ext
14340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_frexpl_no_libm" >&5
14341 $as_echo "$gl_cv_func_frexpl_no_libm" >&6; }
14343 if test $gl_cv_func_frexpl_no_libm = yes; then
14346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether frexpl works" >&5
14347 $as_echo_n "checking whether frexpl works... " >&6; }
14348 if ${gl_cv_func_frexpl_works+:} false; then :
14349 $as_echo_n "(cached) " >&6
14352 if test "$cross_compiling" = yes; then :
14355 aix | aix[3-6]* | beos* | darwin* | irix* | mingw* | pw*)
14356 gl_cv_func_frexpl_works="guessing no";;
14357 *) gl_cv_func_frexpl_works="guessing yes";;
14361 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14362 /* end confdefs.h. */
14366 /* Override the values of <float.h>, like done in float.in.h. */
14367 #if defined __i386__ && (defined __BEOS__ || defined __OpenBSD__)
14368 # undef LDBL_MIN_EXP
14369 # define LDBL_MIN_EXP (-16381)
14371 #if defined __i386__ && (defined __FreeBSD__ || defined __DragonFly__)
14372 # undef LDBL_MIN_EXP
14373 # define LDBL_MIN_EXP (-16381)
14375 #if (defined _ARCH_PPC || defined _POWER) && defined _AIX && (LDBL_MANT_DIG == 106) && defined __GNUC__
14376 # undef LDBL_MIN_EXP
14377 # define LDBL_MIN_EXP DBL_MIN_EXP
14379 #if defined __sgi && (LDBL_MANT_DIG >= 106)
14380 # if defined __GNUC__
14381 # undef LDBL_MIN_EXP
14382 # define LDBL_MIN_EXP DBL_MIN_EXP
14389 long double frexpl (long double, int *);
14393 volatile long double x;
14394 /* Test on finite numbers that fails on AIX 5.1. */
14402 /* Test on finite numbers that fails on Mac OS X 10.4, because its frexpl
14403 function returns an invalid (incorrectly normalized) value: it returns
14404 y = { 0x3fe028f5, 0xc28f5c28, 0x3c9eb851, 0xeb851eb8 }
14405 but the correct result is
14406 0.505L = { 0x3fe028f5, 0xc28f5c29, 0xbc547ae1, 0x47ae1480 } */
14410 long double y = frexpl (x, &exp);
14411 if (!(exp == 1 && y == 0.505L))
14414 /* Test on large finite numbers. This fails on BeOS at i = 16322, while
14415 LDBL_MAX_EXP = 16384.
14416 In the loop end test, we test x against Infinity, rather than comparing
14417 i with LDBL_MAX_EXP, because BeOS <float.h> has a wrong LDBL_MAX_EXP. */
14420 for (i = 1, x = 1.0L; x != x + x; i++, x *= 2.0L)
14431 /* Test on denormalized numbers. */
14434 for (i = 1, x = 1.0L; i >= LDBL_MIN_EXP; i--, x *= 0.5L)
14439 long double y = frexpl (x, &exp);
14440 /* On machines with IEEE854 arithmetic: x = 1.68105e-4932,
14441 exp = -16382, y = 0.5. On Mac OS X 10.5: exp = -16384, y = 0.5. */
14442 if (exp != LDBL_MIN_EXP - 1)
14446 /* Test on infinite numbers. */
14450 long double y = frexpl (x, &exp);
14457 if ac_fn_c_try_run "$LINENO"; then :
14458 gl_cv_func_frexpl_works=yes
14460 gl_cv_func_frexpl_works=no
14462 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14463 conftest.$ac_objext conftest.beam conftest.$ac_ext
14468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_frexpl_works" >&5
14469 $as_echo "$gl_cv_func_frexpl_works" >&6; }
14471 case "$gl_cv_func_frexpl_works" in
14472 *yes) gl_func_frexpl_no_libm=yes ;;
14473 *) gl_func_frexpl_no_libm=no; REPLACE_FREXPL=1 ;;
14476 gl_func_frexpl_no_libm=no
14479 if test $gl_func_frexpl_no_libm = yes; then
14481 $as_echo "#define HAVE_FREXPL_IN_LIBC 1" >>confdefs.h
14486 if test $HAVE_DECL_FREXPL = 0 || test $gl_func_frexpl_no_libm = no; then
14495 gl_LIBOBJS="$gl_LIBOBJS frexpl.$ac_objext"
14509 $as_echo "#define GNULIB_TEST_FREXPL 1" >>confdefs.h
14516 if test $ac_cv_func___fseterr = no; then
14525 gl_LIBOBJS="$gl_LIBOBJS fseterr.$ac_objext"
14531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether isnan(double) can be used without linking with libm" >&5
14532 $as_echo_n "checking whether isnan(double) can be used without linking with libm... " >&6; }
14533 if ${gl_cv_func_isnand_no_libm+:} false; then :
14534 $as_echo_n "(cached) " >&6
14537 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14538 /* end confdefs.h. */
14542 # define isnand(x) __builtin_isnan ((double)(x))
14545 # define isnand(x) isnan ((double)(x))
14556 if ac_fn_c_try_link "$LINENO"; then :
14557 gl_cv_func_isnand_no_libm=yes
14559 gl_cv_func_isnand_no_libm=no
14561 rm -f core conftest.err conftest.$ac_objext \
14562 conftest$ac_exeext conftest.$ac_ext
14565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_isnand_no_libm" >&5
14566 $as_echo "$gl_cv_func_isnand_no_libm" >&6; }
14568 gl_func_isnand_no_libm=$gl_cv_func_isnand_no_libm
14569 if test $gl_cv_func_isnand_no_libm = yes; then
14571 $as_echo "#define HAVE_ISNAND_IN_LIBC 1" >>confdefs.h
14575 if test $gl_func_isnand_no_libm != yes; then
14584 gl_LIBOBJS="$gl_LIBOBJS isnand.$ac_objext"
14592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether isnan(float) can be used without linking with libm" >&5
14593 $as_echo_n "checking whether isnan(float) can be used without linking with libm... " >&6; }
14594 if ${gl_cv_func_isnanf_no_libm+:} false; then :
14595 $as_echo_n "(cached) " >&6
14598 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14599 /* end confdefs.h. */
14603 # define isnanf(x) __builtin_isnanf ((float)(x))
14604 #elif defined isnan
14606 # define isnanf(x) isnan ((float)(x))
14617 if ac_fn_c_try_link "$LINENO"; then :
14618 gl_cv_func_isnanf_no_libm=yes
14620 gl_cv_func_isnanf_no_libm=no
14622 rm -f core conftest.err conftest.$ac_objext \
14623 conftest$ac_exeext conftest.$ac_ext
14626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_isnanf_no_libm" >&5
14627 $as_echo "$gl_cv_func_isnanf_no_libm" >&6; }
14629 if test $gl_cv_func_isnanf_no_libm = yes; then
14633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether isnan(float) works" >&5
14634 $as_echo_n "checking whether isnan(float) works... " >&6; }
14635 if ${gl_cv_func_isnanf_works+:} false; then :
14636 $as_echo_n "(cached) " >&6
14639 if test "$cross_compiling" = yes; then :
14641 irix* | solaris*) gl_cv_func_isnanf_works="guessing no" ;;
14642 mingw*) # Guess yes on mingw, no on MSVC.
14643 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14644 /* end confdefs.h. */
14651 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14652 $EGREP "Known" >/dev/null 2>&1; then :
14653 gl_cv_func_isnanf_works="guessing yes"
14655 gl_cv_func_isnanf_works="guessing no"
14660 *) gl_cv_func_isnanf_works="guessing yes" ;;
14664 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14665 /* end confdefs.h. */
14670 # define isnanf(x) __builtin_isnanf ((float)(x))
14671 #elif defined isnan
14673 # define isnanf(x) isnan ((float)(x))
14675 /* The Compaq (ex-DEC) C 6.4 compiler chokes on the expression 0.0 / 0.0. */
14680 static float zero = 0.0f;
14681 return zero / zero;
14684 # define NaN() (0.0f / 0.0f)
14687 ((sizeof (float) + sizeof (unsigned int) - 1) / sizeof (unsigned int))
14688 typedef union { unsigned int word[NWORDS]; float value; } memory_float;
14693 if (isnanf (1.0f / 0.0f))
14696 if (!isnanf (NaN ()))
14699 #if defined FLT_EXPBIT0_WORD && defined FLT_EXPBIT0_BIT
14700 /* The isnanf function should be immune against changes in the sign bit and
14701 in the mantissa bits. The xor operation twiddles a bit that can only be
14702 a sign bit or a mantissa bit. */
14703 if (FLT_EXPBIT0_WORD == 0 && FLT_EXPBIT0_BIT > 0)
14708 /* Set the bits below the exponent to 01111...111. */
14709 m.word[0] &= -1U << FLT_EXPBIT0_BIT;
14710 m.word[0] |= 1U << (FLT_EXPBIT0_BIT - 1) - 1;
14711 if (!isnanf (m.value))
14719 if ac_fn_c_try_run "$LINENO"; then :
14720 gl_cv_func_isnanf_works=yes
14722 gl_cv_func_isnanf_works=no
14724 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14725 conftest.$ac_objext conftest.beam conftest.$ac_ext
14730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_isnanf_works" >&5
14731 $as_echo "$gl_cv_func_isnanf_works" >&6; }
14734 if test $gl_cv_func_isnanf_no_libm = yes \
14735 && { case "$gl_cv_func_isnanf_works" in
14740 gl_func_isnanf_no_libm=yes
14742 $as_echo "#define HAVE_ISNANF_IN_LIBC 1" >>confdefs.h
14745 gl_func_isnanf_no_libm=no
14748 if test $gl_func_isnanf_no_libm != yes; then
14757 gl_LIBOBJS="$gl_LIBOBJS isnanf.$ac_objext"
14761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the exponent in a 'float'" >&5
14762 $as_echo_n "checking where to find the exponent in a 'float'... " >&6; }
14763 if ${gl_cv_cc_float_expbit0+:} false; then :
14764 $as_echo_n "(cached) " >&6
14767 if test "$cross_compiling" = yes; then :
14768 gl_cv_cc_float_expbit0="word 0 bit 23"
14770 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14771 /* end confdefs.h. */
14774 #include <stddef.h>
14776 #include <string.h>
14778 ((sizeof (float) + sizeof (unsigned int) - 1) / sizeof (unsigned int))
14779 typedef union { float value; unsigned int word[NWORDS]; } memory_float;
14780 static unsigned int ored_words[NWORDS];
14781 static unsigned int anded_words[NWORDS];
14782 static void add_to_ored_words (float x)
14786 /* Clear it first, in case
14787 sizeof (float) < sizeof (memory_float). */
14788 memset (&m, 0, sizeof (memory_float));
14790 for (i = 0; i < NWORDS; i++)
14792 ored_words[i] |= m.word[i];
14793 anded_words[i] &= m.word[i];
14799 FILE *fp = fopen ("conftest.out", "w");
14802 for (j = 0; j < NWORDS; j++)
14803 anded_words[j] = ~ (unsigned int) 0;
14804 add_to_ored_words (0.25f);
14805 add_to_ored_words (0.5f);
14806 add_to_ored_words (1.0f);
14807 add_to_ored_words (2.0f);
14808 add_to_ored_words (4.0f);
14809 /* Remove bits that are common (e.g. if representation of the first mantissa
14810 bit is explicit). */
14811 for (j = 0; j < NWORDS; j++)
14812 ored_words[j] &= ~anded_words[j];
14813 /* Now find the nonzero word. */
14814 for (j = 0; j < NWORDS; j++)
14815 if (ored_words[j] != 0)
14820 for (i = j + 1; i < NWORDS; i++)
14821 if (ored_words[i] != 0)
14823 fprintf (fp, "unknown");
14824 return (fclose (fp) != 0);
14827 if ((ored_words[j] >> i) & 1)
14829 fprintf (fp, "word %d bit %d", (int) j, (int) i);
14830 return (fclose (fp) != 0);
14833 fprintf (fp, "unknown");
14834 return (fclose (fp) != 0);
14838 if ac_fn_c_try_run "$LINENO"; then :
14839 gl_cv_cc_float_expbit0=`cat conftest.out`
14841 gl_cv_cc_float_expbit0="unknown"
14843 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14844 conftest.$ac_objext conftest.beam conftest.$ac_ext
14850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_float_expbit0" >&5
14851 $as_echo "$gl_cv_cc_float_expbit0" >&6; }
14852 case "$gl_cv_cc_float_expbit0" in
14854 word=`echo "$gl_cv_cc_float_expbit0" | sed -e 's/word //' -e 's/ bit.*//'`
14855 bit=`echo "$gl_cv_cc_float_expbit0" | sed -e 's/word.*bit //'`
14857 cat >>confdefs.h <<_ACEOF
14858 #define FLT_EXPBIT0_WORD $word
14862 cat >>confdefs.h <<_ACEOF
14863 #define FLT_EXPBIT0_BIT $bit
14873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether isnan(long double) can be used without linking with libm" >&5
14874 $as_echo_n "checking whether isnan(long double) can be used without linking with libm... " >&6; }
14875 if ${gl_cv_func_isnanl_no_libm+:} false; then :
14876 $as_echo_n "(cached) " >&6
14879 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14880 /* end confdefs.h. */
14884 # define isnanl(x) __builtin_isnanl ((long double)(x))
14885 #elif defined isnan
14887 # define isnanl(x) isnan ((long double)(x))
14898 if ac_fn_c_try_link "$LINENO"; then :
14899 gl_cv_func_isnanl_no_libm=yes
14901 gl_cv_func_isnanl_no_libm=no
14903 rm -f core conftest.err conftest.$ac_objext \
14904 conftest$ac_exeext conftest.$ac_ext
14907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_isnanl_no_libm" >&5
14908 $as_echo "$gl_cv_func_isnanl_no_libm" >&6; }
14910 gl_func_isnanl_no_libm=$gl_cv_func_isnanl_no_libm
14911 if test $gl_func_isnanl_no_libm = yes; then
14916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether isnanl works" >&5
14917 $as_echo_n "checking whether isnanl works... " >&6; }
14918 if ${gl_cv_func_isnanl_works+:} false; then :
14919 $as_echo_n "(cached) " >&6
14922 if test "$cross_compiling" = yes; then :
14924 mingw*) # Guess yes on mingw, no on MSVC.
14925 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14926 /* end confdefs.h. */
14933 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14934 $EGREP "Known" >/dev/null 2>&1; then :
14935 gl_cv_func_isnanl_works="guessing yes"
14937 gl_cv_func_isnanl_works="guessing no"
14942 *) gl_cv_func_isnanl_works="guessing yes" ;;
14946 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14947 /* end confdefs.h. */
14950 #include <limits.h>
14954 # define isnanl(x) __builtin_isnanl ((long double)(x))
14955 #elif defined isnan
14957 # define isnanl(x) isnan ((long double)(x))
14960 ((sizeof (long double) + sizeof (unsigned int) - 1) / sizeof (unsigned int))
14961 typedef union { unsigned int word[NWORDS]; long double value; }
14962 memory_long_double;
14963 /* On Irix 6.5, gcc 3.4.3 can't compute compile-time NaN, and needs the
14964 runtime type conversion. */
14966 static long double NaNl ()
14969 return zero / zero;
14972 # define NaNl() (0.0L / 0.0L)
14978 if (!isnanl (NaNl ()))
14982 memory_long_double m;
14985 /* The isnanl function should be immune against changes in the sign bit and
14986 in the mantissa bits. The xor operation twiddles a bit that can only be
14987 a sign bit or a mantissa bit (since the exponent never extends to
14990 m.word[NWORDS / 2] ^= (unsigned int) 1 << (sizeof (unsigned int) * CHAR_BIT - 1);
14991 for (i = 0; i < NWORDS; i++)
14993 if (!isnanl (m.value))
14997 #if ((defined __ia64 && LDBL_MANT_DIG == 64) || (defined __x86_64__ || defined __amd64__) || (defined __i386 || defined __i386__ || defined _I386 || defined _M_IX86 || defined _X86_)) && !HAVE_SAME_LONG_DOUBLE_AS_DOUBLE
14998 /* Representation of an 80-bit 'long double' as an initializer for a sequence
14999 of 'unsigned int' words. */
15000 # ifdef WORDS_BIGENDIAN
15001 # define LDBL80_WORDS(exponent,manthi,mantlo) \
15002 { ((unsigned int) (exponent) << 16) | ((unsigned int) (manthi) >> 16), \
15003 ((unsigned int) (manthi) << 16) | ((unsigned int) (mantlo) >> 16), \
15004 (unsigned int) (mantlo) << 16 \
15007 # define LDBL80_WORDS(exponent,manthi,mantlo) \
15008 { mantlo, manthi, exponent }
15011 static memory_long_double x =
15012 { LDBL80_WORDS (0xFFFF, 0xC3333333, 0x00000000) };
15013 if (!isnanl (x.value))
15017 /* Signalling NaN. */
15018 static memory_long_double x =
15019 { LDBL80_WORDS (0xFFFF, 0x83333333, 0x00000000) };
15020 if (!isnanl (x.value))
15023 /* isnanl should return something even for noncanonical values. */
15024 { /* Pseudo-NaN. */
15025 static memory_long_double x =
15026 { LDBL80_WORDS (0xFFFF, 0x40000001, 0x00000000) };
15027 if (isnanl (x.value) && !isnanl (x.value))
15030 { /* Pseudo-Infinity. */
15031 static memory_long_double x =
15032 { LDBL80_WORDS (0xFFFF, 0x00000000, 0x00000000) };
15033 if (isnanl (x.value) && !isnanl (x.value))
15036 { /* Pseudo-Zero. */
15037 static memory_long_double x =
15038 { LDBL80_WORDS (0x4004, 0x00000000, 0x00000000) };
15039 if (isnanl (x.value) && !isnanl (x.value))
15042 { /* Unnormalized number. */
15043 static memory_long_double x =
15044 { LDBL80_WORDS (0x4000, 0x63333333, 0x00000000) };
15045 if (isnanl (x.value) && !isnanl (x.value))
15048 { /* Pseudo-Denormal. */
15049 static memory_long_double x =
15050 { LDBL80_WORDS (0x0000, 0x83333333, 0x00000000) };
15051 if (isnanl (x.value) && !isnanl (x.value))
15059 if ac_fn_c_try_run "$LINENO"; then :
15060 gl_cv_func_isnanl_works=yes
15062 gl_cv_func_isnanl_works=no
15064 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15065 conftest.$ac_objext conftest.beam conftest.$ac_ext
15070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_isnanl_works" >&5
15071 $as_echo "$gl_cv_func_isnanl_works" >&6; }
15073 case "$gl_cv_func_isnanl_works" in
15075 *) gl_func_isnanl_no_libm=no ;;
15078 if test $gl_func_isnanl_no_libm = yes; then
15080 $as_echo "#define HAVE_ISNANL_IN_LIBC 1" >>confdefs.h
15084 if test $gl_func_isnanl_no_libm != yes; then
15093 gl_LIBOBJS="$gl_LIBOBJS isnanl.$ac_objext"
15098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the exponent in a 'long double'" >&5
15099 $as_echo_n "checking where to find the exponent in a 'long double'... " >&6; }
15100 if ${gl_cv_cc_long_double_expbit0+:} false; then :
15101 $as_echo_n "(cached) " >&6
15104 if test "$cross_compiling" = yes; then :
15106 gl_cv_cc_long_double_expbit0="unknown"
15108 mingw*) # On native Windows (little-endian), we know the result
15109 # in two cases: mingw, MSVC.
15110 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15111 /* end confdefs.h. */
15118 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15119 $EGREP "Known" >/dev/null 2>&1; then :
15120 gl_cv_cc_long_double_expbit0="word 2 bit 0"
15124 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15125 /* end confdefs.h. */
15132 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15133 $EGREP "Known" >/dev/null 2>&1; then :
15134 gl_cv_cc_long_double_expbit0="word 1 bit 20"
15142 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15143 /* end confdefs.h. */
15146 #include <stddef.h>
15148 #include <string.h>
15150 ((sizeof (long double) + sizeof (unsigned int) - 1) / sizeof (unsigned int))
15151 typedef union { long double value; unsigned int word[NWORDS]; }
15152 memory_long_double;
15153 static unsigned int ored_words[NWORDS];
15154 static unsigned int anded_words[NWORDS];
15155 static void add_to_ored_words (long double x)
15157 memory_long_double m;
15159 /* Clear it first, in case
15160 sizeof (long double) < sizeof (memory_long_double). */
15161 memset (&m, 0, sizeof (memory_long_double));
15163 for (i = 0; i < NWORDS; i++)
15165 ored_words[i] |= m.word[i];
15166 anded_words[i] &= m.word[i];
15172 FILE *fp = fopen ("conftest.out", "w");
15175 for (j = 0; j < NWORDS; j++)
15176 anded_words[j] = ~ (unsigned int) 0;
15177 add_to_ored_words (0.25L);
15178 add_to_ored_words (0.5L);
15179 add_to_ored_words (1.0L);
15180 add_to_ored_words (2.0L);
15181 add_to_ored_words (4.0L);
15182 /* Remove bits that are common (e.g. if representation of the first mantissa
15183 bit is explicit). */
15184 for (j = 0; j < NWORDS; j++)
15185 ored_words[j] &= ~anded_words[j];
15186 /* Now find the nonzero word. */
15187 for (j = 0; j < NWORDS; j++)
15188 if (ored_words[j] != 0)
15193 for (i = j + 1; i < NWORDS; i++)
15194 if (ored_words[i] != 0)
15196 fprintf (fp, "unknown");
15197 return (fclose (fp) != 0);
15200 if ((ored_words[j] >> i) & 1)
15202 fprintf (fp, "word %d bit %d", (int) j, (int) i);
15203 return (fclose (fp) != 0);
15206 fprintf (fp, "unknown");
15207 return (fclose (fp) != 0);
15211 if ac_fn_c_try_run "$LINENO"; then :
15212 gl_cv_cc_long_double_expbit0=`cat conftest.out`
15214 gl_cv_cc_long_double_expbit0="unknown"
15216 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15217 conftest.$ac_objext conftest.beam conftest.$ac_ext
15223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_long_double_expbit0" >&5
15224 $as_echo "$gl_cv_cc_long_double_expbit0" >&6; }
15225 case "$gl_cv_cc_long_double_expbit0" in
15227 word=`echo "$gl_cv_cc_long_double_expbit0" | sed -e 's/word //' -e 's/ bit.*//'`
15228 bit=`echo "$gl_cv_cc_long_double_expbit0" | sed -e 's/word.*bit //'`
15230 cat >>confdefs.h <<_ACEOF
15231 #define LDBL_EXPBIT0_WORD $word
15235 cat >>confdefs.h <<_ACEOF
15236 #define LDBL_EXPBIT0_BIT $bit
15254 LOCALCHARSET_TESTS_ENVIRONMENT=
15267 if test $gl_cv_have_include_next = yes; then
15268 gl_cv_next_math_h='<'math.h'>'
15270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <math.h>" >&5
15271 $as_echo_n "checking absolute name of <math.h>... " >&6; }
15272 if ${gl_cv_next_math_h+:} false; then :
15273 $as_echo_n "(cached) " >&6
15276 if test $ac_cv_header_math_h = yes; then
15281 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15282 /* end confdefs.h. */
15286 aix*) gl_absname_cpp="$ac_cpp -C" ;;
15287 *) gl_absname_cpp="$ac_cpp" ;;
15292 gl_dirsep_regex='[/\\]'
15295 gl_dirsep_regex='\/'
15298 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
15299 gl_header_literal_regex=`echo 'math.h' \
15300 | sed -e "$gl_make_literal_regex_sed"`
15301 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
15302 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
15308 gl_cv_absolute_math_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
15309 sed -n "$gl_absolute_header_sed"`
15311 gl_header=$gl_cv_absolute_math_h
15312 gl_cv_next_math_h='"'$gl_header'"'
15314 gl_cv_next_math_h='<'math.h'>'
15319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_math_h" >&5
15320 $as_echo "$gl_cv_next_math_h" >&6; }
15322 NEXT_MATH_H=$gl_cv_next_math_h
15324 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
15325 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
15326 gl_next_as_first_directive='<'math.h'>'
15328 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
15329 gl_next_as_first_directive=$gl_cv_next_math_h
15331 NEXT_AS_FIRST_DIRECTIVE_MATH_H=$gl_next_as_first_directive
15337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NAN macro works" >&5
15338 $as_echo_n "checking whether NAN macro works... " >&6; }
15339 if ${gl_cv_header_math_nan_works+:} false; then :
15340 $as_echo_n "(cached) " >&6
15342 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15343 /* end confdefs.h. */
15348 /* Solaris 10 has a broken definition of NAN. Other platforms
15349 fail to provide NAN, or provide it only in C99 mode; this
15350 test only needs to fail when NAN is provided but wrong. */
15360 if ac_fn_c_try_compile "$LINENO"; then :
15361 gl_cv_header_math_nan_works=yes
15363 gl_cv_header_math_nan_works=no
15365 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_math_nan_works" >&5
15368 $as_echo "$gl_cv_header_math_nan_works" >&6; }
15369 if test $gl_cv_header_math_nan_works = no; then
15372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether HUGE_VAL works" >&5
15373 $as_echo_n "checking whether HUGE_VAL works... " >&6; }
15374 if ${gl_cv_header_math_huge_val_works+:} false; then :
15375 $as_echo_n "(cached) " >&6
15377 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15378 /* end confdefs.h. */
15383 /* Solaris 10 has a broken definition of HUGE_VAL. */
15384 double d = HUGE_VAL;
15390 if ac_fn_c_try_compile "$LINENO"; then :
15391 gl_cv_header_math_huge_val_works=yes
15393 gl_cv_header_math_huge_val_works=no
15395 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_math_huge_val_works" >&5
15398 $as_echo "$gl_cv_header_math_huge_val_works" >&6; }
15399 if test $gl_cv_header_math_huge_val_works = no; then
15408 if test $HAVE_MEMCHR = 0 || test $REPLACE_MEMCHR = 1; then
15417 gl_LIBOBJS="$gl_LIBOBJS memchr.$ac_objext"
15420 for ac_header in bp-sym.h
15422 ac_fn_c_check_header_mongrel "$LINENO" "bp-sym.h" "ac_cv_header_bp_sym_h" "$ac_includes_default"
15423 if test "x$ac_cv_header_bp_sym_h" = xyes; then :
15424 cat >>confdefs.h <<_ACEOF
15425 #define HAVE_BP_SYM_H 1
15445 $as_echo "#define GNULIB_TEST_MEMCHR 1" >>confdefs.h
15453 if test $gl_cv_func_frexp_no_libm = yes; then
15457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether frexp works" >&5
15458 $as_echo_n "checking whether frexp works... " >&6; }
15459 if ${gl_cv_func_frexp_works+:} false; then :
15460 $as_echo_n "(cached) " >&6
15463 if test "$cross_compiling" = yes; then :
15465 netbsd* | irix*) gl_cv_func_frexp_works="guessing no" ;;
15466 mingw*) # Guess yes with MSVC, no with mingw.
15467 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15468 /* end confdefs.h. */
15475 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15476 $EGREP "Good" >/dev/null 2>&1; then :
15477 gl_cv_func_frexp_works="guessing yes"
15479 gl_cv_func_frexp_works="guessing no"
15484 *) gl_cv_func_frexp_works="guessing yes" ;;
15488 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15489 /* end confdefs.h. */
15493 #include <string.h>
15494 #if HAVE_DECL_ALARM
15495 # include <signal.h>
15496 # include <unistd.h>
15498 /* HP cc on HP-UX 10.20 has a bug with the constant expression -0.0.
15499 ICC 10.0 has a bug when optimizing the expression -zero.
15500 The expression -DBL_MIN * DBL_MIN does not work when cross-compiling
15501 to PowerPC on Mac OS X 10.5. */
15502 #if defined __hpux || defined __sgi || defined __ICC
15504 compute_minus_zero (void)
15506 return -DBL_MIN * DBL_MIN;
15508 # define minus_zero compute_minus_zero ()
15510 double minus_zero = -0.0;
15518 #if HAVE_DECL_ALARM
15519 /* NeXTstep 3.3 frexp() runs into an endless loop when called on an infinite
15520 number. Let the test fail in this case. */
15521 signal (SIGALRM, SIG_DFL);
15524 /* Test on denormalized numbers. */
15525 for (i = 1, x = 1.0; i >= DBL_MIN_EXP; i--, x *= 0.5)
15530 double y = frexp (x, &exp);
15531 /* On machines with IEEE754 arithmetic: x = 1.11254e-308, exp = -1022.
15532 On NetBSD: y = 0.75. Correct: y = 0.5. */
15536 /* Test on infinite numbers. */
15540 double y = frexp (x, &exp);
15544 /* Test on negative zero. */
15548 double y = frexp (x, &exp);
15549 if (memcmp (&y, &x, sizeof x))
15555 if ac_fn_c_try_run "$LINENO"; then :
15556 gl_cv_func_frexp_works=yes
15558 gl_cv_func_frexp_works=no
15560 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15561 conftest.$ac_objext conftest.beam conftest.$ac_ext
15566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_frexp_works" >&5
15567 $as_echo "$gl_cv_func_frexp_works" >&6; }
15569 case "$gl_cv_func_frexp_works" in
15572 $as_echo "#define HAVE_FREXP_IN_LIBC 1" >>confdefs.h
15578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ldexp can be used without linking with libm" >&5
15579 $as_echo_n "checking whether ldexp can be used without linking with libm... " >&6; }
15580 if ${gl_cv_func_ldexp_no_libm+:} false; then :
15581 $as_echo_n "(cached) " >&6
15584 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15585 /* end confdefs.h. */
15592 return ldexp (x, y) < 1;
15597 if ac_fn_c_try_link "$LINENO"; then :
15598 gl_cv_func_ldexp_no_libm=yes
15600 gl_cv_func_ldexp_no_libm=no
15602 rm -f core conftest.err conftest.$ac_objext \
15603 conftest$ac_exeext conftest.$ac_ext
15606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_ldexp_no_libm" >&5
15607 $as_echo "$gl_cv_func_ldexp_no_libm" >&6; }
15608 if test $gl_cv_func_ldexp_no_libm = yes; then
15610 $as_echo "#define HAVE_LDEXP_IN_LIBC 1" >>confdefs.h
15619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether frexpl() can be used without linking with libm" >&5
15620 $as_echo_n "checking whether frexpl() can be used without linking with libm... " >&6; }
15621 if ${gl_cv_func_frexpl_no_libm+:} false; then :
15622 $as_echo_n "(cached) " >&6
15625 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15626 /* end confdefs.h. */
15632 int e; return frexpl (x, &e) > 0;
15637 if ac_fn_c_try_link "$LINENO"; then :
15638 gl_cv_func_frexpl_no_libm=yes
15640 gl_cv_func_frexpl_no_libm=no
15642 rm -f core conftest.err conftest.$ac_objext \
15643 conftest$ac_exeext conftest.$ac_ext
15646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_frexpl_no_libm" >&5
15647 $as_echo "$gl_cv_func_frexpl_no_libm" >&6; }
15649 if test $gl_cv_func_frexpl_no_libm = yes; then
15652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether frexpl works" >&5
15653 $as_echo_n "checking whether frexpl works... " >&6; }
15654 if ${gl_cv_func_frexpl_works+:} false; then :
15655 $as_echo_n "(cached) " >&6
15658 if test "$cross_compiling" = yes; then :
15661 aix | aix[3-6]* | beos* | darwin* | irix* | mingw* | pw*)
15662 gl_cv_func_frexpl_works="guessing no";;
15663 *) gl_cv_func_frexpl_works="guessing yes";;
15667 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15668 /* end confdefs.h. */
15672 /* Override the values of <float.h>, like done in float.in.h. */
15673 #if defined __i386__ && (defined __BEOS__ || defined __OpenBSD__)
15674 # undef LDBL_MIN_EXP
15675 # define LDBL_MIN_EXP (-16381)
15677 #if defined __i386__ && (defined __FreeBSD__ || defined __DragonFly__)
15678 # undef LDBL_MIN_EXP
15679 # define LDBL_MIN_EXP (-16381)
15681 #if (defined _ARCH_PPC || defined _POWER) && defined _AIX && (LDBL_MANT_DIG == 106) && defined __GNUC__
15682 # undef LDBL_MIN_EXP
15683 # define LDBL_MIN_EXP DBL_MIN_EXP
15685 #if defined __sgi && (LDBL_MANT_DIG >= 106)
15686 # if defined __GNUC__
15687 # undef LDBL_MIN_EXP
15688 # define LDBL_MIN_EXP DBL_MIN_EXP
15695 long double frexpl (long double, int *);
15699 volatile long double x;
15700 /* Test on finite numbers that fails on AIX 5.1. */
15708 /* Test on finite numbers that fails on Mac OS X 10.4, because its frexpl
15709 function returns an invalid (incorrectly normalized) value: it returns
15710 y = { 0x3fe028f5, 0xc28f5c28, 0x3c9eb851, 0xeb851eb8 }
15711 but the correct result is
15712 0.505L = { 0x3fe028f5, 0xc28f5c29, 0xbc547ae1, 0x47ae1480 } */
15716 long double y = frexpl (x, &exp);
15717 if (!(exp == 1 && y == 0.505L))
15720 /* Test on large finite numbers. This fails on BeOS at i = 16322, while
15721 LDBL_MAX_EXP = 16384.
15722 In the loop end test, we test x against Infinity, rather than comparing
15723 i with LDBL_MAX_EXP, because BeOS <float.h> has a wrong LDBL_MAX_EXP. */
15726 for (i = 1, x = 1.0L; x != x + x; i++, x *= 2.0L)
15737 /* Test on denormalized numbers. */
15740 for (i = 1, x = 1.0L; i >= LDBL_MIN_EXP; i--, x *= 0.5L)
15745 long double y = frexpl (x, &exp);
15746 /* On machines with IEEE854 arithmetic: x = 1.68105e-4932,
15747 exp = -16382, y = 0.5. On Mac OS X 10.5: exp = -16384, y = 0.5. */
15748 if (exp != LDBL_MIN_EXP - 1)
15752 /* Test on infinite numbers. */
15756 long double y = frexpl (x, &exp);
15763 if ac_fn_c_try_run "$LINENO"; then :
15764 gl_cv_func_frexpl_works=yes
15766 gl_cv_func_frexpl_works=no
15768 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15769 conftest.$ac_objext conftest.beam conftest.$ac_ext
15774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_frexpl_works" >&5
15775 $as_echo "$gl_cv_func_frexpl_works" >&6; }
15777 case "$gl_cv_func_frexpl_works" in
15778 *yes) gl_func_frexpl_no_libm=yes ;;
15779 *) gl_func_frexpl_no_libm=no; REPLACE_FREXPL=1 ;;
15782 gl_func_frexpl_no_libm=no
15785 if test $gl_func_frexpl_no_libm = yes; then
15787 $as_echo "#define HAVE_FREXPL_IN_LIBC 1" >>confdefs.h
15789 ac_fn_c_check_decl "$LINENO" "frexpl" "ac_cv_have_decl_frexpl" "#include <math.h>
15791 if test "x$ac_cv_have_decl_frexpl" = xyes; then :
15800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ldexpl() can be used without linking with libm" >&5
15801 $as_echo_n "checking whether ldexpl() can be used without linking with libm... " >&6; }
15802 if ${gl_cv_func_ldexpl_no_libm+:} false; then :
15803 $as_echo_n "(cached) " >&6
15806 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15807 /* end confdefs.h. */
15813 return ldexpl (x, -1) > 0;
15818 if ac_fn_c_try_link "$LINENO"; then :
15819 gl_cv_func_ldexpl_no_libm=yes
15821 gl_cv_func_ldexpl_no_libm=no
15823 rm -f core conftest.err conftest.$ac_objext \
15824 conftest$ac_exeext conftest.$ac_ext
15827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_ldexpl_no_libm" >&5
15828 $as_echo "$gl_cv_func_ldexpl_no_libm" >&6; }
15830 if test $gl_cv_func_ldexpl_no_libm = yes; then
15833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ldexpl works" >&5
15834 $as_echo_n "checking whether ldexpl works... " >&6; }
15835 if ${gl_cv_func_ldexpl_works+:} false; then :
15836 $as_echo_n "(cached) " >&6
15839 if test "$cross_compiling" = yes; then :
15842 aix | aix[3-6]*) gl_cv_func_ldexpl_works="guessing no" ;;
15843 # Guess yes on native Windows.
15844 mingw*) gl_cv_func_ldexpl_works="guessing yes" ;;
15845 *) gl_cv_func_ldexpl_works="guessing yes" ;;
15849 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15850 /* end confdefs.h. */
15857 long double ldexpl (long double, int);
15862 volatile long double x = 1.0;
15863 volatile long double y = ldexpl (x, -1);
15868 volatile long double x = 1.73205L;
15869 volatile long double y = ldexpl (x, 0);
15876 if ac_fn_c_try_run "$LINENO"; then :
15877 gl_cv_func_ldexpl_works=yes
15879 gl_cv_func_ldexpl_works=no
15881 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15882 conftest.$ac_objext conftest.beam conftest.$ac_ext
15887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_ldexpl_works" >&5
15888 $as_echo "$gl_cv_func_ldexpl_works" >&6; }
15890 case "$gl_cv_func_ldexpl_works" in
15893 $as_echo "#define HAVE_LDEXPL_IN_LIBC 1" >>confdefs.h
15895 ac_fn_c_check_decl "$LINENO" "ldexpl" "ac_cv_have_decl_ldexpl" "#include <math.h>
15897 if test "x$ac_cv_have_decl_ldexpl" = xyes; then :
15910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for signbit macro" >&5
15911 $as_echo_n "checking for signbit macro... " >&6; }
15912 if ${gl_cv_func_signbit+:} false; then :
15913 $as_echo_n "(cached) " >&6
15916 if test "$cross_compiling" = yes; then :
15918 # Guess yes on glibc systems.
15919 *-gnu* | gnu*) gl_cv_func_signbit="guessing yes" ;;
15920 # Guess yes on native Windows.
15921 mingw*) gl_cv_func_signbit="guessing yes" ;;
15922 # If we don't know, assume the worst.
15923 *) gl_cv_func_signbit="guessing no" ;;
15927 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15928 /* end confdefs.h. */
15931 /* If signbit is defined as a function, don't use it, since calling it for
15932 'float' or 'long double' arguments would involve conversions.
15933 If signbit is not declared at all but exists as a library function, don't
15934 use it, since the prototype may not match.
15935 If signbit is not declared at all but exists as a compiler built-in, don't
15936 use it, since it's preferable to use __builtin_signbit* (no warnings,
15937 no conversions). */
15939 # error "signbit should be a macro"
15941 #include <string.h>
15943 /* Global variables.
15944 Needed because GCC 4 constant-folds __builtin_signbitl (literal)
15945 but cannot constant-fold __builtin_signbitl (variable). */
15951 /* HP cc on HP-UX 10.20 has a bug with the constant expression -0.0.
15952 So we use -p0f and -p0d instead. */
15957 /* On HP-UX 10.20, negating 0.0L does not yield -0.0L.
15958 So we use another constant expression instead.
15959 But that expression does not work on other platforms, such as when
15960 cross-compiling to PowerPC on Mac OS X 10.5. */
15961 long double p0l = 0.0L;
15962 #if defined __hpux || defined __sgi
15963 long double m0l = -LDBL_MIN * LDBL_MIN;
15965 long double m0l = -p0l;
15968 if (signbit (vf)) /* link check */
15971 float plus_inf = 1.0f / p0f;
15972 float minus_inf = -1.0f / p0f;
15973 if (!(!signbit (255.0f)
15974 && signbit (-255.0f)
15976 && (memcmp (&m0f, &p0f, sizeof (float)) == 0 || signbit (m0f))
15977 && !signbit (plus_inf)
15978 && signbit (minus_inf)))
15981 if (signbit (vd)) /* link check */
15984 double plus_inf = 1.0 / p0d;
15985 double minus_inf = -1.0 / p0d;
15986 if (!(!signbit (255.0)
15987 && signbit (-255.0)
15989 && (memcmp (&m0d, &p0d, sizeof (double)) == 0 || signbit (m0d))
15990 && !signbit (plus_inf)
15991 && signbit (minus_inf)))
15994 if (signbit (vl)) /* link check */
15997 long double plus_inf = 1.0L / p0l;
15998 long double minus_inf = -1.0L / p0l;
15999 if (signbit (255.0L))
16001 if (!signbit (-255.0L))
16005 if (!(memcmp (&m0l, &p0l, sizeof (long double)) == 0 || signbit (m0l)))
16007 if (signbit (plus_inf))
16009 if (!signbit (minus_inf))
16017 if ac_fn_c_try_run "$LINENO"; then :
16018 gl_cv_func_signbit=yes
16020 gl_cv_func_signbit=no
16022 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16023 conftest.$ac_objext conftest.beam conftest.$ac_ext
16028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_signbit" >&5
16029 $as_echo "$gl_cv_func_signbit" >&6; }
16030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for signbit compiler built-ins" >&5
16031 $as_echo_n "checking for signbit compiler built-ins... " >&6; }
16032 if ${gl_cv_func_signbit_gcc+:} false; then :
16033 $as_echo_n "(cached) " >&6
16036 if test "$cross_compiling" = yes; then :
16038 # Guess yes on glibc systems.
16039 *-gnu* | gnu*) gl_cv_func_signbit_gcc="guessing yes" ;;
16040 # Guess yes on mingw, no on MSVC.
16041 mingw*) if test -n "$GCC"; then
16042 gl_cv_func_signbit_gcc="guessing yes"
16044 gl_cv_func_signbit_gcc="guessing no"
16047 # If we don't know, assume the worst.
16048 *) gl_cv_func_signbit_gcc="guessing no" ;;
16052 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16053 /* end confdefs.h. */
16056 # define signbit(x) \
16057 (sizeof (x) == sizeof (long double) ? __builtin_signbitl (x) : \
16058 sizeof (x) == sizeof (double) ? __builtin_signbit (x) : \
16059 __builtin_signbitf (x))
16061 # error "signbit should be three compiler built-ins"
16063 #include <string.h>
16065 /* Global variables.
16066 Needed because GCC 4 constant-folds __builtin_signbitl (literal)
16067 but cannot constant-fold __builtin_signbitl (variable). */
16073 /* HP cc on HP-UX 10.20 has a bug with the constant expression -0.0.
16074 So we use -p0f and -p0d instead. */
16079 /* On HP-UX 10.20, negating 0.0L does not yield -0.0L.
16080 So we use another constant expression instead.
16081 But that expression does not work on other platforms, such as when
16082 cross-compiling to PowerPC on Mac OS X 10.5. */
16083 long double p0l = 0.0L;
16084 #if defined __hpux || defined __sgi
16085 long double m0l = -LDBL_MIN * LDBL_MIN;
16087 long double m0l = -p0l;
16090 if (signbit (vf)) /* link check */
16093 float plus_inf = 1.0f / p0f;
16094 float minus_inf = -1.0f / p0f;
16095 if (!(!signbit (255.0f)
16096 && signbit (-255.0f)
16098 && (memcmp (&m0f, &p0f, sizeof (float)) == 0 || signbit (m0f))
16099 && !signbit (plus_inf)
16100 && signbit (minus_inf)))
16103 if (signbit (vd)) /* link check */
16106 double plus_inf = 1.0 / p0d;
16107 double minus_inf = -1.0 / p0d;
16108 if (!(!signbit (255.0)
16109 && signbit (-255.0)
16111 && (memcmp (&m0d, &p0d, sizeof (double)) == 0 || signbit (m0d))
16112 && !signbit (plus_inf)
16113 && signbit (minus_inf)))
16116 if (signbit (vl)) /* link check */
16119 long double plus_inf = 1.0L / p0l;
16120 long double minus_inf = -1.0L / p0l;
16121 if (signbit (255.0L))
16123 if (!signbit (-255.0L))
16127 if (!(memcmp (&m0l, &p0l, sizeof (long double)) == 0 || signbit (m0l)))
16129 if (signbit (plus_inf))
16131 if (!signbit (minus_inf))
16139 if ac_fn_c_try_run "$LINENO"; then :
16140 gl_cv_func_signbit_gcc=yes
16142 gl_cv_func_signbit_gcc=no
16144 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16145 conftest.$ac_objext conftest.beam conftest.$ac_ext
16150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_signbit_gcc" >&5
16151 $as_echo "$gl_cv_func_signbit_gcc" >&6; }
16152 case "$gl_cv_func_signbit_gcc" in
16154 REPLACE_SIGNBIT_USING_GCC=1
16157 case "$gl_cv_func_signbit" in
16163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the sign bit in a 'float'" >&5
16164 $as_echo_n "checking where to find the sign bit in a 'float'... " >&6; }
16165 if ${gl_cv_cc_float_signbit+:} false; then :
16166 $as_echo_n "(cached) " >&6
16169 if test "$cross_compiling" = yes; then :
16171 gl_cv_cc_float_signbit="unknown"
16174 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16175 /* end confdefs.h. */
16177 #include <stddef.h>
16180 ((sizeof (float) + sizeof (unsigned int) - 1) / sizeof (unsigned int))
16181 typedef union { float value; unsigned int word[NWORDS]; }
16183 static memory_float plus = { 1.0f };
16184 static memory_float minus = { -1.0f };
16189 FILE *fp = fopen ("conftest.out", "w");
16192 /* Find the different bit. */
16194 for (j = 0; j < NWORDS; j++)
16196 unsigned int x = plus.word[j] ^ minus.word[j];
16197 if ((x & (x - 1)) || (x && m))
16199 /* More than one bit difference. */
16200 fprintf (fp, "unknown");
16212 /* No difference. */
16213 fprintf (fp, "unknown");
16217 /* Now m = plus.word[k] ^ ~minus.word[k]. */
16218 if (plus.word[k] & ~minus.word[k])
16220 /* Oh? The sign bit is set in the positive and cleared in the negative
16222 fprintf (fp, "unknown");
16229 fprintf (fp, "word %d bit %d", (int) k, (int) i);
16230 if (fclose (fp) != 0)
16236 if ac_fn_c_try_run "$LINENO"; then :
16237 gl_cv_cc_float_signbit=`cat conftest.out`
16239 gl_cv_cc_float_signbit="unknown"
16241 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16242 conftest.$ac_objext conftest.beam conftest.$ac_ext
16248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_float_signbit" >&5
16249 $as_echo "$gl_cv_cc_float_signbit" >&6; }
16250 case "$gl_cv_cc_float_signbit" in
16252 word=`echo "$gl_cv_cc_float_signbit" | sed -e 's/word //' -e 's/ bit.*//'`
16253 bit=`echo "$gl_cv_cc_float_signbit" | sed -e 's/word.*bit //'`
16255 cat >>confdefs.h <<_ACEOF
16256 #define FLT_SIGNBIT_WORD $word
16260 cat >>confdefs.h <<_ACEOF
16261 #define FLT_SIGNBIT_BIT $bit
16270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the sign bit in a 'double'" >&5
16271 $as_echo_n "checking where to find the sign bit in a 'double'... " >&6; }
16272 if ${gl_cv_cc_double_signbit+:} false; then :
16273 $as_echo_n "(cached) " >&6
16276 if test "$cross_compiling" = yes; then :
16278 gl_cv_cc_double_signbit="unknown"
16281 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16282 /* end confdefs.h. */
16284 #include <stddef.h>
16287 ((sizeof (double) + sizeof (unsigned int) - 1) / sizeof (unsigned int))
16288 typedef union { double value; unsigned int word[NWORDS]; }
16290 static memory_float plus = { 1.0 };
16291 static memory_float minus = { -1.0 };
16296 FILE *fp = fopen ("conftest.out", "w");
16299 /* Find the different bit. */
16301 for (j = 0; j < NWORDS; j++)
16303 unsigned int x = plus.word[j] ^ minus.word[j];
16304 if ((x & (x - 1)) || (x && m))
16306 /* More than one bit difference. */
16307 fprintf (fp, "unknown");
16319 /* No difference. */
16320 fprintf (fp, "unknown");
16324 /* Now m = plus.word[k] ^ ~minus.word[k]. */
16325 if (plus.word[k] & ~minus.word[k])
16327 /* Oh? The sign bit is set in the positive and cleared in the negative
16329 fprintf (fp, "unknown");
16336 fprintf (fp, "word %d bit %d", (int) k, (int) i);
16337 if (fclose (fp) != 0)
16343 if ac_fn_c_try_run "$LINENO"; then :
16344 gl_cv_cc_double_signbit=`cat conftest.out`
16346 gl_cv_cc_double_signbit="unknown"
16348 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16349 conftest.$ac_objext conftest.beam conftest.$ac_ext
16355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_double_signbit" >&5
16356 $as_echo "$gl_cv_cc_double_signbit" >&6; }
16357 case "$gl_cv_cc_double_signbit" in
16359 word=`echo "$gl_cv_cc_double_signbit" | sed -e 's/word //' -e 's/ bit.*//'`
16360 bit=`echo "$gl_cv_cc_double_signbit" | sed -e 's/word.*bit //'`
16362 cat >>confdefs.h <<_ACEOF
16363 #define DBL_SIGNBIT_WORD $word
16367 cat >>confdefs.h <<_ACEOF
16368 #define DBL_SIGNBIT_BIT $bit
16377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the sign bit in a 'long double'" >&5
16378 $as_echo_n "checking where to find the sign bit in a 'long double'... " >&6; }
16379 if ${gl_cv_cc_long_double_signbit+:} false; then :
16380 $as_echo_n "(cached) " >&6
16383 if test "$cross_compiling" = yes; then :
16385 gl_cv_cc_long_double_signbit="unknown"
16388 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16389 /* end confdefs.h. */
16391 #include <stddef.h>
16394 ((sizeof (long double) + sizeof (unsigned int) - 1) / sizeof (unsigned int))
16395 typedef union { long double value; unsigned int word[NWORDS]; }
16397 static memory_float plus = { 1.0L };
16398 static memory_float minus = { -1.0L };
16403 FILE *fp = fopen ("conftest.out", "w");
16406 /* Find the different bit. */
16408 for (j = 0; j < NWORDS; j++)
16410 unsigned int x = plus.word[j] ^ minus.word[j];
16411 if ((x & (x - 1)) || (x && m))
16413 /* More than one bit difference. */
16414 fprintf (fp, "unknown");
16426 /* No difference. */
16427 fprintf (fp, "unknown");
16431 /* Now m = plus.word[k] ^ ~minus.word[k]. */
16432 if (plus.word[k] & ~minus.word[k])
16434 /* Oh? The sign bit is set in the positive and cleared in the negative
16436 fprintf (fp, "unknown");
16443 fprintf (fp, "word %d bit %d", (int) k, (int) i);
16444 if (fclose (fp) != 0)
16450 if ac_fn_c_try_run "$LINENO"; then :
16451 gl_cv_cc_long_double_signbit=`cat conftest.out`
16453 gl_cv_cc_long_double_signbit="unknown"
16455 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16456 conftest.$ac_objext conftest.beam conftest.$ac_ext
16462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_long_double_signbit" >&5
16463 $as_echo "$gl_cv_cc_long_double_signbit" >&6; }
16464 case "$gl_cv_cc_long_double_signbit" in
16466 word=`echo "$gl_cv_cc_long_double_signbit" | sed -e 's/word //' -e 's/ bit.*//'`
16467 bit=`echo "$gl_cv_cc_long_double_signbit" | sed -e 's/word.*bit //'`
16469 cat >>confdefs.h <<_ACEOF
16470 #define LDBL_SIGNBIT_WORD $word
16474 cat >>confdefs.h <<_ACEOF
16475 #define LDBL_SIGNBIT_BIT $bit
16482 if test "$gl_cv_cc_float_signbit" = unknown; then
16483 ac_fn_c_check_decl "$LINENO" "copysignf" "ac_cv_have_decl_copysignf" "#include <math.h>
16485 if test "x$ac_cv_have_decl_copysignf" = xyes; then :
16491 cat >>confdefs.h <<_ACEOF
16492 #define HAVE_DECL_COPYSIGNF $ac_have_decl
16495 if test "$ac_cv_have_decl_copysignf" = yes; then
16496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether copysignf can be used without linking with libm" >&5
16497 $as_echo_n "checking whether copysignf can be used without linking with libm... " >&6; }
16498 if ${gl_cv_func_copysignf_no_libm+:} false; then :
16499 $as_echo_n "(cached) " >&6
16502 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16503 /* end confdefs.h. */
16509 return copysignf (x, y) < 0;
16514 if ac_fn_c_try_link "$LINENO"; then :
16515 gl_cv_func_copysignf_no_libm=yes
16517 gl_cv_func_copysignf_no_libm=no
16519 rm -f core conftest.err conftest.$ac_objext \
16520 conftest$ac_exeext conftest.$ac_ext
16523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_copysignf_no_libm" >&5
16524 $as_echo "$gl_cv_func_copysignf_no_libm" >&6; }
16525 if test $gl_cv_func_copysignf_no_libm = yes; then
16527 $as_echo "#define HAVE_COPYSIGNF_IN_LIBC 1" >>confdefs.h
16532 if test "$gl_cv_cc_double_signbit" = unknown; then
16533 ac_fn_c_check_decl "$LINENO" "copysign" "ac_cv_have_decl_copysign" "#include <math.h>
16535 if test "x$ac_cv_have_decl_copysign" = xyes; then :
16541 cat >>confdefs.h <<_ACEOF
16542 #define HAVE_DECL_COPYSIGN $ac_have_decl
16545 if test "$ac_cv_have_decl_copysign" = yes; then
16546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether copysign can be used without linking with libm" >&5
16547 $as_echo_n "checking whether copysign can be used without linking with libm... " >&6; }
16548 if ${gl_cv_func_copysign_no_libm+:} false; then :
16549 $as_echo_n "(cached) " >&6
16552 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16553 /* end confdefs.h. */
16559 return copysign (x, y) < 0;
16564 if ac_fn_c_try_link "$LINENO"; then :
16565 gl_cv_func_copysign_no_libm=yes
16567 gl_cv_func_copysign_no_libm=no
16569 rm -f core conftest.err conftest.$ac_objext \
16570 conftest$ac_exeext conftest.$ac_ext
16573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_copysign_no_libm" >&5
16574 $as_echo "$gl_cv_func_copysign_no_libm" >&6; }
16575 if test $gl_cv_func_copysign_no_libm = yes; then
16577 $as_echo "#define HAVE_COPYSIGN_IN_LIBC 1" >>confdefs.h
16582 if test "$gl_cv_cc_long_double_signbit" = unknown; then
16583 ac_fn_c_check_decl "$LINENO" "copysignl" "ac_cv_have_decl_copysignl" "#include <math.h>
16585 if test "x$ac_cv_have_decl_copysignl" = xyes; then :
16591 cat >>confdefs.h <<_ACEOF
16592 #define HAVE_DECL_COPYSIGNL $ac_have_decl
16595 if test "$ac_cv_have_decl_copysignl" = yes; then
16596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether copysignl can be used without linking with libm" >&5
16597 $as_echo_n "checking whether copysignl can be used without linking with libm... " >&6; }
16598 if ${gl_cv_func_copysignl_no_libm+:} false; then :
16599 $as_echo_n "(cached) " >&6
16602 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16603 /* end confdefs.h. */
16609 return copysignl (x, y) < 0;
16614 if ac_fn_c_try_link "$LINENO"; then :
16615 gl_cv_func_copysignl_no_libm=yes
16617 gl_cv_func_copysignl_no_libm=no
16619 rm -f core conftest.err conftest.$ac_objext \
16620 conftest$ac_exeext conftest.$ac_ext
16623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_copysignl_no_libm" >&5
16624 $as_echo "$gl_cv_func_copysignl_no_libm" >&6; }
16625 if test $gl_cv_func_copysignl_no_libm = yes; then
16627 $as_echo "#define HAVE_COPYSIGNL_IN_LIBC 1" >>confdefs.h
16637 if test $REPLACE_SIGNBIT = 1; then
16646 gl_LIBOBJS="$gl_LIBOBJS signbitf.$ac_objext"
16656 gl_LIBOBJS="$gl_LIBOBJS signbitd.$ac_objext"
16666 gl_LIBOBJS="$gl_LIBOBJS signbitl.$ac_objext"
16680 $as_echo "#define GNULIB_TEST_SIGNBIT 1" >>confdefs.h
16685 for ac_header in stdint.h
16687 ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
16688 if test "x$ac_cv_header_stdint_h" = xyes; then :
16689 cat >>confdefs.h <<_ACEOF
16690 #define HAVE_STDINT_H 1
16697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SIZE_MAX" >&5
16698 $as_echo_n "checking for SIZE_MAX... " >&6; }
16699 if ${gl_cv_size_max+:} false; then :
16700 $as_echo_n "(cached) " >&6
16704 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16705 /* end confdefs.h. */
16707 #include <limits.h>
16709 #include <stdint.h>
16716 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16717 $EGREP "Found it" >/dev/null 2>&1; then :
16722 if test -z "$gl_cv_size_max"; then
16723 if ac_fn_c_compute_int "$LINENO" "sizeof (size_t) * CHAR_BIT - 1" "size_t_bits_minus_1" "#include <stddef.h>
16724 #include <limits.h>"; then :
16727 size_t_bits_minus_1=
16730 if ac_fn_c_compute_int "$LINENO" "sizeof (size_t) <= sizeof (unsigned int)" "fits_in_uint" "#include <stddef.h>"; then :
16736 if test -n "$size_t_bits_minus_1" && test -n "$fits_in_uint"; then
16737 if test $fits_in_uint = 1; then
16738 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16739 /* end confdefs.h. */
16740 #include <stddef.h>
16742 extern unsigned long foo;
16752 if ac_fn_c_try_compile "$LINENO"; then :
16755 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16757 if test $fits_in_uint = 1; then
16758 gl_cv_size_max="(((1U << $size_t_bits_minus_1) - 1) * 2 + 1)"
16760 gl_cv_size_max="(((1UL << $size_t_bits_minus_1) - 1) * 2 + 1)"
16763 gl_cv_size_max='((size_t)~(size_t)0)'
16768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_size_max" >&5
16769 $as_echo "$gl_cv_size_max" >&6; }
16770 if test "$gl_cv_size_max" != yes; then
16772 cat >>confdefs.h <<_ACEOF
16773 #define SIZE_MAX $gl_cv_size_max
16781 gl_cv_func_snprintf_usable=no
16782 for ac_func in snprintf
16784 ac_fn_c_check_func "$LINENO" "snprintf" "ac_cv_func_snprintf"
16785 if test "x$ac_cv_func_snprintf" = xyes; then :
16786 cat >>confdefs.h <<_ACEOF
16787 #define HAVE_SNPRINTF 1
16793 if test $ac_cv_func_snprintf = yes; then
16797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether snprintf respects a size of 1" >&5
16798 $as_echo_n "checking whether snprintf respects a size of 1... " >&6; }
16799 if ${gl_cv_func_snprintf_size1+:} false; then :
16800 $as_echo_n "(cached) " >&6
16803 if test "$cross_compiling" = yes; then :
16805 # Guess yes on native Windows.
16806 mingw*) gl_cv_func_snprintf_size1="guessing yes" ;;
16807 *) gl_cv_func_snprintf_size1="guessing yes" ;;
16811 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16812 /* end confdefs.h. */
16816 # define my_snprintf snprintf
16818 # include <stdarg.h>
16819 static int my_snprintf (char *buf, int size, const char *format, ...)
16823 va_start (args, format);
16824 ret = vsnprintf (buf, size, format, args);
16831 static char buf[8] = { 'D', 'E', 'A', 'D', 'B', 'E', 'E', 'F' };
16832 my_snprintf (buf, 1, "%d", 12345);
16833 return buf[1] != 'E';
16836 if ac_fn_c_try_run "$LINENO"; then :
16837 gl_cv_func_snprintf_size1=yes
16839 gl_cv_func_snprintf_size1=no
16841 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16842 conftest.$ac_objext conftest.beam conftest.$ac_ext
16847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_snprintf_size1" >&5
16848 $as_echo "$gl_cv_func_snprintf_size1" >&6; }
16850 case "$gl_cv_func_snprintf_size1" in
16853 case "$gl_cv_func_snprintf_retval_c99" in
16857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether printf supports POSIX/XSI format strings with positions" >&5
16858 $as_echo_n "checking whether printf supports POSIX/XSI format strings with positions... " >&6; }
16859 if ${gl_cv_func_printf_positions+:} false; then :
16860 $as_echo_n "(cached) " >&6
16863 if test "$cross_compiling" = yes; then :
16866 netbsd[1-3]* | netbsdelf[1-3]* | netbsdaout[1-3]* | netbsdcoff[1-3]*)
16867 gl_cv_func_printf_positions="guessing no";;
16868 beos*) gl_cv_func_printf_positions="guessing no";;
16869 # Guess no on native Windows.
16870 mingw* | pw*) gl_cv_func_printf_positions="guessing no";;
16871 *) gl_cv_func_printf_positions="guessing yes";;
16875 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16876 /* end confdefs.h. */
16879 #include <string.h>
16880 /* The string "%2$d %1$d", with dollar characters protected from the shell's
16881 dollar expansion (possibly an autoconf bug). */
16882 static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' };
16883 static char buf[100];
16886 sprintf (buf, format, 33, 55);
16887 return (strcmp (buf, "55 33") != 0);
16890 if ac_fn_c_try_run "$LINENO"; then :
16891 gl_cv_func_printf_positions=yes
16893 gl_cv_func_printf_positions=no
16895 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16896 conftest.$ac_objext conftest.beam conftest.$ac_ext
16901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_printf_positions" >&5
16902 $as_echo "$gl_cv_func_printf_positions" >&6; }
16904 case "$gl_cv_func_printf_positions" in
16906 gl_cv_func_snprintf_usable=yes
16914 if test $gl_cv_func_snprintf_usable = no; then
16925 gl_LIBOBJS="$gl_LIBOBJS snprintf.$ac_objext"
16927 if test $ac_cv_func_snprintf = yes; then
16931 if test $ac_cv_have_decl_snprintf = yes; then
16939 if test $ac_cv_have_decl_snprintf = no; then
16940 HAVE_DECL_SNPRINTF=0
16954 $as_echo "#define GNULIB_TEST_SNPRINTF 1" >>confdefs.h
16960 cat >>confdefs.h <<_ACEOF
16961 #define GNULIB_SNPRINTF 1
16966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ssize_t" >&5
16967 $as_echo_n "checking for ssize_t... " >&6; }
16968 if ${gt_cv_ssize_t+:} false; then :
16969 $as_echo_n "(cached) " >&6
16971 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16972 /* end confdefs.h. */
16973 #include <sys/types.h>
16977 int x = sizeof (ssize_t *) + sizeof (ssize_t);
16983 if ac_fn_c_try_compile "$LINENO"; then :
16988 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_ssize_t" >&5
16991 $as_echo "$gt_cv_ssize_t" >&6; }
16992 if test $gt_cv_ssize_t = no; then
16994 $as_echo "#define ssize_t int" >>confdefs.h
17003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for good max_align_t" >&5
17004 $as_echo_n "checking for good max_align_t... " >&6; }
17005 if ${gl_cv_type_max_align_t+:} false; then :
17006 $as_echo_n "(cached) " >&6
17008 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17009 /* end confdefs.h. */
17010 #include <stddef.h>
17011 unsigned int s = sizeof (max_align_t);
17012 #if defined __GNUC__ || defined __IBM__ALIGNOF__
17013 int check1[2 * (__alignof__ (double) <= __alignof__ (max_align_t)) - 1];
17014 int check2[2 * (__alignof__ (long double) <= __alignof__ (max_align_t)) - 1];
17025 if ac_fn_c_try_compile "$LINENO"; then :
17026 gl_cv_type_max_align_t=yes
17028 gl_cv_type_max_align_t=no
17030 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_type_max_align_t" >&5
17034 $as_echo "$gl_cv_type_max_align_t" >&6; }
17035 if test $gl_cv_type_max_align_t = no; then
17040 if test $gt_cv_c_wchar_t = no; then
17045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NULL can be used in arbitrary expressions" >&5
17046 $as_echo_n "checking whether NULL can be used in arbitrary expressions... " >&6; }
17047 if ${gl_cv_decl_null_works+:} false; then :
17048 $as_echo_n "(cached) " >&6
17050 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17051 /* end confdefs.h. */
17052 #include <stddef.h>
17053 int test[2 * (sizeof NULL == sizeof (void *)) -1];
17063 if ac_fn_c_try_compile "$LINENO"; then :
17064 gl_cv_decl_null_works=yes
17066 gl_cv_decl_null_works=no
17068 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_decl_null_works" >&5
17071 $as_echo "$gl_cv_decl_null_works" >&6; }
17072 if test $gl_cv_decl_null_works = no; then
17078 if test -n "$STDDEF_H"; then
17079 GL_GENERATE_STDDEF_H_TRUE=
17080 GL_GENERATE_STDDEF_H_FALSE='#'
17082 GL_GENERATE_STDDEF_H_TRUE='#'
17083 GL_GENERATE_STDDEF_H_FALSE=
17086 if test -n "$STDDEF_H"; then
17095 if test $gl_cv_have_include_next = yes; then
17096 gl_cv_next_stddef_h='<'stddef.h'>'
17098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stddef.h>" >&5
17099 $as_echo_n "checking absolute name of <stddef.h>... " >&6; }
17100 if ${gl_cv_next_stddef_h+:} false; then :
17101 $as_echo_n "(cached) " >&6
17106 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17107 /* end confdefs.h. */
17108 #include <stddef.h>
17111 aix*) gl_absname_cpp="$ac_cpp -C" ;;
17112 *) gl_absname_cpp="$ac_cpp" ;;
17117 gl_dirsep_regex='[/\\]'
17120 gl_dirsep_regex='\/'
17123 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
17124 gl_header_literal_regex=`echo 'stddef.h' \
17125 | sed -e "$gl_make_literal_regex_sed"`
17126 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
17127 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
17133 gl_cv_absolute_stddef_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
17134 sed -n "$gl_absolute_header_sed"`
17136 gl_header=$gl_cv_absolute_stddef_h
17137 gl_cv_next_stddef_h='"'$gl_header'"'
17141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stddef_h" >&5
17142 $as_echo "$gl_cv_next_stddef_h" >&6; }
17144 NEXT_STDDEF_H=$gl_cv_next_stddef_h
17146 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
17147 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
17148 gl_next_as_first_directive='<'stddef.h'>'
17150 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
17151 gl_next_as_first_directive=$gl_cv_next_stddef_h
17153 NEXT_AS_FIRST_DIRECTIVE_STDDEF_H=$gl_next_as_first_directive
17163 $as_echo "#define __USE_MINGW_ANSI_STDIO 1" >>confdefs.h
17174 if test $gl_cv_have_include_next = yes; then
17175 gl_cv_next_stdio_h='<'stdio.h'>'
17177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdio.h>" >&5
17178 $as_echo_n "checking absolute name of <stdio.h>... " >&6; }
17179 if ${gl_cv_next_stdio_h+:} false; then :
17180 $as_echo_n "(cached) " >&6
17185 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17186 /* end confdefs.h. */
17190 aix*) gl_absname_cpp="$ac_cpp -C" ;;
17191 *) gl_absname_cpp="$ac_cpp" ;;
17196 gl_dirsep_regex='[/\\]'
17199 gl_dirsep_regex='\/'
17202 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
17203 gl_header_literal_regex=`echo 'stdio.h' \
17204 | sed -e "$gl_make_literal_regex_sed"`
17205 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
17206 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
17212 gl_cv_absolute_stdio_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
17213 sed -n "$gl_absolute_header_sed"`
17215 gl_header=$gl_cv_absolute_stdio_h
17216 gl_cv_next_stdio_h='"'$gl_header'"'
17220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdio_h" >&5
17221 $as_echo "$gl_cv_next_stdio_h" >&6; }
17223 NEXT_STDIO_H=$gl_cv_next_stdio_h
17225 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
17226 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
17227 gl_next_as_first_directive='<'stdio.h'>'
17229 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
17230 gl_next_as_first_directive=$gl_cv_next_stdio_h
17232 NEXT_AS_FIRST_DIRECTIVE_STDIO_H=$gl_next_as_first_directive
17238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which flavor of printf attribute matches inttypes macros" >&5
17239 $as_echo_n "checking which flavor of printf attribute matches inttypes macros... " >&6; }
17240 if ${gl_cv_func_printf_attribute_flavor+:} false; then :
17241 $as_echo_n "(cached) " >&6
17243 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17244 /* end confdefs.h. */
17246 #define __STDC_FORMAT_MACROS 1
17248 #include <inttypes.h>
17249 /* For non-mingw systems, compilation will trivially succeed.
17250 For mingw, compilation will succeed for older mingw (system
17251 printf, "I64d") and fail for newer mingw (gnu printf, "lld"). */
17252 #if (defined _WIN32 && ! defined __CYGWIN__) && \
17253 (__GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 4))
17254 extern char PRIdMAX_probe[sizeof PRIdMAX == sizeof "I64d" ? 1 : -1];
17265 if ac_fn_c_try_compile "$LINENO"; then :
17266 gl_cv_func_printf_attribute_flavor=system
17268 gl_cv_func_printf_attribute_flavor=gnu
17270 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_printf_attribute_flavor" >&5
17273 $as_echo "$gl_cv_func_printf_attribute_flavor" >&6; }
17274 if test "$gl_cv_func_printf_attribute_flavor" = gnu; then
17276 $as_echo "#define GNULIB_PRINTF_ATTRIBUTE_FLAVOR_GNU 1" >>confdefs.h
17283 cat >>confdefs.h <<_ACEOF
17284 #define GNULIB_FSCANF 1
17291 cat >>confdefs.h <<_ACEOF
17292 #define GNULIB_SCANF 1
17327 if { test "$HAVE_LIBUNISTRING" != yes \
17332 test $LIBUNISTRING_VERSION_MAJOR -lt 0 \
17333 || { test $LIBUNISTRING_VERSION_MAJOR -eq 0 \
17334 && { test $LIBUNISTRING_VERSION_MINOR -lt 9 \
17335 || { test $LIBUNISTRING_VERSION_MINOR -eq 9 \
17336 && test $LIBUNISTRING_VERSION_SUBMINOR -lt 4
17346 LIBUNISTRING_UNITYPES_H='unitypes.h'
17348 LIBUNISTRING_UNITYPES_H=
17354 if { test "$HAVE_LIBUNISTRING" != yes \
17359 test $LIBUNISTRING_VERSION_MAJOR -lt 0 \
17360 || { test $LIBUNISTRING_VERSION_MAJOR -eq 0 \
17361 && { test $LIBUNISTRING_VERSION_MINOR -lt 9 \
17362 || { test $LIBUNISTRING_VERSION_MINOR -eq 9 \
17363 && test $LIBUNISTRING_VERSION_SUBMINOR -lt 4
17373 LIBUNISTRING_UNIWIDTH_H='uniwidth.h'
17375 LIBUNISTRING_UNIWIDTH_H=
17381 if { test "$HAVE_LIBUNISTRING" != yes \
17386 test $LIBUNISTRING_VERSION_MAJOR -lt 0 \
17387 || { test $LIBUNISTRING_VERSION_MAJOR -eq 0 \
17388 && { test $LIBUNISTRING_VERSION_MINOR -lt 9 \
17389 || { test $LIBUNISTRING_VERSION_MINOR -eq 9 \
17390 && test $LIBUNISTRING_VERSION_SUBMINOR -lt 8
17400 LIBUNISTRING_COMPILE_UNIWIDTH_WIDTH_TRUE=
17401 LIBUNISTRING_COMPILE_UNIWIDTH_WIDTH_FALSE='#'
17403 LIBUNISTRING_COMPILE_UNIWIDTH_WIDTH_TRUE='#'
17404 LIBUNISTRING_COMPILE_UNIWIDTH_WIDTH_FALSE=
17410 if test $ac_cv_func_vasnprintf = no; then
17421 gl_LIBOBJS="$gl_LIBOBJS vasnprintf.$ac_objext"
17431 gl_LIBOBJS="$gl_LIBOBJS printf-args.$ac_objext"
17441 gl_LIBOBJS="$gl_LIBOBJS printf-parse.$ac_objext"
17451 gl_LIBOBJS="$gl_LIBOBJS asnprintf.$ac_objext"
17453 if test $ac_cv_func_vasnprintf = yes; then
17455 $as_echo "#define REPLACE_VASNPRINTF 1" >>confdefs.h
17469 ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
17470 if test "x$ac_cv_type_ptrdiff_t" = xyes; then :
17474 $as_echo "#define ptrdiff_t long" >>confdefs.h
17489 gl_cv_func_vsnprintf_usable=no
17490 for ac_func in vsnprintf
17492 ac_fn_c_check_func "$LINENO" "vsnprintf" "ac_cv_func_vsnprintf"
17493 if test "x$ac_cv_func_vsnprintf" = xyes; then :
17494 cat >>confdefs.h <<_ACEOF
17495 #define HAVE_VSNPRINTF 1
17501 if test $ac_cv_func_vsnprintf = yes; then
17505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether snprintf respects a size of 1" >&5
17506 $as_echo_n "checking whether snprintf respects a size of 1... " >&6; }
17507 if ${gl_cv_func_snprintf_size1+:} false; then :
17508 $as_echo_n "(cached) " >&6
17511 if test "$cross_compiling" = yes; then :
17513 # Guess yes on native Windows.
17514 mingw*) gl_cv_func_snprintf_size1="guessing yes" ;;
17515 *) gl_cv_func_snprintf_size1="guessing yes" ;;
17519 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17520 /* end confdefs.h. */
17524 # define my_snprintf snprintf
17526 # include <stdarg.h>
17527 static int my_snprintf (char *buf, int size, const char *format, ...)
17531 va_start (args, format);
17532 ret = vsnprintf (buf, size, format, args);
17539 static char buf[8] = { 'D', 'E', 'A', 'D', 'B', 'E', 'E', 'F' };
17540 my_snprintf (buf, 1, "%d", 12345);
17541 return buf[1] != 'E';
17544 if ac_fn_c_try_run "$LINENO"; then :
17545 gl_cv_func_snprintf_size1=yes
17547 gl_cv_func_snprintf_size1=no
17549 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17550 conftest.$ac_objext conftest.beam conftest.$ac_ext
17555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_snprintf_size1" >&5
17556 $as_echo "$gl_cv_func_snprintf_size1" >&6; }
17558 case "$gl_cv_func_snprintf_size1" in
17561 case "$gl_cv_func_snprintf_retval_c99" in
17565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether printf supports POSIX/XSI format strings with positions" >&5
17566 $as_echo_n "checking whether printf supports POSIX/XSI format strings with positions... " >&6; }
17567 if ${gl_cv_func_printf_positions+:} false; then :
17568 $as_echo_n "(cached) " >&6
17571 if test "$cross_compiling" = yes; then :
17574 netbsd[1-3]* | netbsdelf[1-3]* | netbsdaout[1-3]* | netbsdcoff[1-3]*)
17575 gl_cv_func_printf_positions="guessing no";;
17576 beos*) gl_cv_func_printf_positions="guessing no";;
17577 # Guess no on native Windows.
17578 mingw* | pw*) gl_cv_func_printf_positions="guessing no";;
17579 *) gl_cv_func_printf_positions="guessing yes";;
17583 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17584 /* end confdefs.h. */
17587 #include <string.h>
17588 /* The string "%2$d %1$d", with dollar characters protected from the shell's
17589 dollar expansion (possibly an autoconf bug). */
17590 static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' };
17591 static char buf[100];
17594 sprintf (buf, format, 33, 55);
17595 return (strcmp (buf, "55 33") != 0);
17598 if ac_fn_c_try_run "$LINENO"; then :
17599 gl_cv_func_printf_positions=yes
17601 gl_cv_func_printf_positions=no
17603 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17604 conftest.$ac_objext conftest.beam conftest.$ac_ext
17609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_printf_positions" >&5
17610 $as_echo "$gl_cv_func_printf_positions" >&6; }
17612 case "$gl_cv_func_printf_positions" in
17614 gl_cv_func_vsnprintf_usable=yes
17622 if test $gl_cv_func_vsnprintf_usable = no; then
17633 gl_LIBOBJS="$gl_LIBOBJS vsnprintf.$ac_objext"
17635 if test $ac_cv_func_vsnprintf = yes; then
17636 REPLACE_VSNPRINTF=1
17639 if test $ac_cv_have_decl_vsnprintf = yes; then
17640 REPLACE_VSNPRINTF=1
17647 if test $ac_cv_have_decl_vsnprintf = no; then
17648 HAVE_DECL_VSNPRINTF=0
17662 $as_echo "#define GNULIB_TEST_VSNPRINTF 1" >>confdefs.h
17678 if test $gl_cv_have_include_next = yes; then
17679 gl_cv_next_wchar_h='<'wchar.h'>'
17681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <wchar.h>" >&5
17682 $as_echo_n "checking absolute name of <wchar.h>... " >&6; }
17683 if ${gl_cv_next_wchar_h+:} false; then :
17684 $as_echo_n "(cached) " >&6
17687 if test $ac_cv_header_wchar_h = yes; then
17692 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17693 /* end confdefs.h. */
17697 aix*) gl_absname_cpp="$ac_cpp -C" ;;
17698 *) gl_absname_cpp="$ac_cpp" ;;
17703 gl_dirsep_regex='[/\\]'
17706 gl_dirsep_regex='\/'
17709 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
17710 gl_header_literal_regex=`echo 'wchar.h' \
17711 | sed -e "$gl_make_literal_regex_sed"`
17712 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
17713 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
17719 gl_cv_absolute_wchar_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
17720 sed -n "$gl_absolute_header_sed"`
17722 gl_header=$gl_cv_absolute_wchar_h
17723 gl_cv_next_wchar_h='"'$gl_header'"'
17725 gl_cv_next_wchar_h='<'wchar.h'>'
17730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_wchar_h" >&5
17731 $as_echo "$gl_cv_next_wchar_h" >&6; }
17733 NEXT_WCHAR_H=$gl_cv_next_wchar_h
17735 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
17736 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
17737 gl_next_as_first_directive='<'wchar.h'>'
17739 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
17740 gl_next_as_first_directive=$gl_cv_next_wchar_h
17742 NEXT_AS_FIRST_DIRECTIVE_WCHAR_H=$gl_next_as_first_directive
17747 if test $ac_cv_header_wchar_h = yes; then
17757 if test $gt_cv_c_wint_t = yes; then
17775 if test $ac_cv_func_iswcntrl = yes; then
17783 if test $gt_cv_c_wint_t = yes; then
17801 if test $gl_cv_have_include_next = yes; then
17802 gl_cv_next_wctype_h='<'wctype.h'>'
17804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <wctype.h>" >&5
17805 $as_echo_n "checking absolute name of <wctype.h>... " >&6; }
17806 if ${gl_cv_next_wctype_h+:} false; then :
17807 $as_echo_n "(cached) " >&6
17810 if test $ac_cv_header_wctype_h = yes; then
17815 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17816 /* end confdefs.h. */
17817 #include <wctype.h>
17820 aix*) gl_absname_cpp="$ac_cpp -C" ;;
17821 *) gl_absname_cpp="$ac_cpp" ;;
17826 gl_dirsep_regex='[/\\]'
17829 gl_dirsep_regex='\/'
17832 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
17833 gl_header_literal_regex=`echo 'wctype.h' \
17834 | sed -e "$gl_make_literal_regex_sed"`
17835 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
17836 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
17842 gl_cv_absolute_wctype_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
17843 sed -n "$gl_absolute_header_sed"`
17845 gl_header=$gl_cv_absolute_wctype_h
17846 gl_cv_next_wctype_h='"'$gl_header'"'
17848 gl_cv_next_wctype_h='<'wctype.h'>'
17853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_wctype_h" >&5
17854 $as_echo "$gl_cv_next_wctype_h" >&6; }
17856 NEXT_WCTYPE_H=$gl_cv_next_wctype_h
17858 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
17859 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
17860 gl_next_as_first_directive='<'wctype.h'>'
17862 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
17863 gl_next_as_first_directive=$gl_cv_next_wctype_h
17865 NEXT_AS_FIRST_DIRECTIVE_WCTYPE_H=$gl_next_as_first_directive
17870 if test $ac_cv_header_wctype_h = yes; then
17871 if test $ac_cv_func_iswcntrl = yes; then
17872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iswcntrl works" >&5
17873 $as_echo_n "checking whether iswcntrl works... " >&6; }
17874 if ${gl_cv_func_iswcntrl_works+:} false; then :
17875 $as_echo_n "(cached) " >&6
17878 if test "$cross_compiling" = yes; then :
17879 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17880 /* end confdefs.h. */
17881 #include <stdlib.h>
17882 #if __GNU_LIBRARY__ == 1
17883 Linux libc5 i18n is broken.
17893 if ac_fn_c_try_compile "$LINENO"; then :
17894 gl_cv_func_iswcntrl_works="guessing yes"
17896 gl_cv_func_iswcntrl_works="guessing no"
17898 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17901 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17902 /* end confdefs.h. */
17904 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be
17905 included before <wchar.h>.
17906 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h>
17907 must be included before <wchar.h>. */
17908 #include <stddef.h>
17912 #include <wctype.h>
17913 int main () { return iswprint ('x') == 0; }
17916 if ac_fn_c_try_run "$LINENO"; then :
17917 gl_cv_func_iswcntrl_works=yes
17919 gl_cv_func_iswcntrl_works=no
17921 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17922 conftest.$ac_objext conftest.beam conftest.$ac_ext
17927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_iswcntrl_works" >&5
17928 $as_echo "$gl_cv_func_iswcntrl_works" >&6; }
17936 case "$gl_cv_func_iswcntrl_works" in
17937 *yes) REPLACE_ISWCNTRL=0 ;;
17938 *) REPLACE_ISWCNTRL=1 ;;
17942 if test $HAVE_ISWCNTRL = 0 || test $REPLACE_ISWCNTRL = 1; then
17946 if test $REPLACE_ISWCNTRL = 1; then
17949 for ac_func in towlower
17951 ac_fn_c_check_func "$LINENO" "towlower" "ac_cv_func_towlower"
17952 if test "x$ac_cv_func_towlower" = xyes; then :
17953 cat >>confdefs.h <<_ACEOF
17954 #define HAVE_TOWLOWER 1
17960 if test $ac_cv_func_towlower = yes; then
17963 ac_fn_c_check_decl "$LINENO" "towlower" "ac_cv_have_decl_towlower" "/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be
17964 included before <wchar.h>.
17965 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h>
17966 must be included before <wchar.h>. */
17967 #include <stddef.h>
17972 # include <wctype.h>
17976 if test "x$ac_cv_have_decl_towlower" = xyes; then :
17982 cat >>confdefs.h <<_ACEOF
17983 #define HAVE_DECL_TOWLOWER $ac_have_decl
17986 if test $ac_cv_have_decl_towlower = yes; then
17995 if test $HAVE_ISWCNTRL = 0 || test $REPLACE_TOWLOWER = 1; then
17999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wctype_t" >&5
18000 $as_echo_n "checking for wctype_t... " >&6; }
18001 if ${gl_cv_type_wctype_t+:} false; then :
18002 $as_echo_n "(cached) " >&6
18004 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18005 /* end confdefs.h. */
18006 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be
18007 included before <wchar.h>.
18008 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h>
18009 must be included before <wchar.h>. */
18010 #include <stddef.h>
18015 # include <wctype.h>
18027 if ac_fn_c_try_compile "$LINENO"; then :
18028 gl_cv_type_wctype_t=yes
18030 gl_cv_type_wctype_t=no
18032 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_type_wctype_t" >&5
18036 $as_echo "$gl_cv_type_wctype_t" >&6; }
18037 if test $gl_cv_type_wctype_t = no; then
18041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wctrans_t" >&5
18042 $as_echo_n "checking for wctrans_t... " >&6; }
18043 if ${gl_cv_type_wctrans_t+:} false; then :
18044 $as_echo_n "(cached) " >&6
18046 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18047 /* end confdefs.h. */
18048 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be
18049 included before <wchar.h>.
18050 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h>
18051 must be included before <wchar.h>. */
18052 #include <stddef.h>
18056 #include <wctype.h>
18067 if ac_fn_c_try_compile "$LINENO"; then :
18068 gl_cv_type_wctrans_t=yes
18070 gl_cv_type_wctrans_t=no
18072 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_type_wctrans_t" >&5
18076 $as_echo "$gl_cv_type_wctrans_t" >&6; }
18077 if test $gl_cv_type_wctrans_t = no; then
18096 ac_fn_c_check_decl "$LINENO" "wcwidth" "ac_cv_have_decl_wcwidth" "
18097 /* AIX 3.2.5 declares wcwidth in <string.h>. */
18098 #include <string.h>
18099 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
18101 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be included
18102 before <wchar.h>. */
18103 #include <stddef.h>
18109 if test "x$ac_cv_have_decl_wcwidth" = xyes; then :
18115 cat >>confdefs.h <<_ACEOF
18116 #define HAVE_DECL_WCWIDTH $ac_have_decl
18119 if test $ac_cv_have_decl_wcwidth != yes; then
18120 HAVE_DECL_WCWIDTH=0
18123 if test $ac_cv_func_wcwidth != yes; then
18124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether wcwidth is a macro" >&5
18125 $as_echo_n "checking whether wcwidth is a macro... " >&6; }
18126 if ${gl_cv_func_wcwidth_macro+:} false; then :
18127 $as_echo_n "(cached) " >&6
18129 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18130 /* end confdefs.h. */
18134 wchar_header_defines_wcwidth
18137 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18138 $EGREP "wchar_header_defines_wcwidth" >/dev/null 2>&1; then :
18139 gl_cv_func_wcwidth_macro=yes
18141 gl_cv_func_wcwidth_macro=no
18147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_wcwidth_macro" >&5
18148 $as_echo "$gl_cv_func_wcwidth_macro" >&6; }
18151 if test $ac_cv_func_wcwidth = yes || test $gl_cv_func_wcwidth_macro = yes; then
18153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether wcwidth works reasonably in UTF-8 locales" >&5
18154 $as_echo_n "checking whether wcwidth works reasonably in UTF-8 locales... " >&6; }
18155 if ${gl_cv_func_wcwidth_works+:} false; then :
18156 $as_echo_n "(cached) " >&6
18159 if test "$cross_compiling" = yes; then :
18162 # Guess yes on glibc and AIX 7 systems.
18163 *-gnu* | gnu* | aix[7-9]*) gl_cv_func_wcwidth_works="guessing yes";;
18164 *) gl_cv_func_wcwidth_works="guessing no";;
18168 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18169 /* end confdefs.h. */
18171 #include <locale.h>
18172 /* AIX 3.2.5 declares wcwidth in <string.h>. */
18173 #include <string.h>
18174 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
18176 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be included
18177 before <wchar.h>. */
18178 #include <stddef.h>
18182 #if !HAVE_DECL_WCWIDTH
18184 # ifdef __cplusplus
18192 if (setlocale (LC_ALL, "fr_FR.UTF-8") != NULL)
18194 if (wcwidth (0x0301) > 0)
18196 if (wcwidth (0x05B0) > 0)
18198 if (wcwidth (0x200B) > 0)
18200 if (wcwidth (0xFF1A) == 0)
18206 if ac_fn_c_try_run "$LINENO"; then :
18207 gl_cv_func_wcwidth_works=yes
18209 gl_cv_func_wcwidth_works=no
18211 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18212 conftest.$ac_objext conftest.beam conftest.$ac_ext
18217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_wcwidth_works" >&5
18218 $as_echo "$gl_cv_func_wcwidth_works" >&6; }
18219 case "$gl_cv_func_wcwidth_works" in
18221 *no) REPLACE_WCWIDTH=1 ;;
18227 if test $HAVE_WCWIDTH = 0 || test $REPLACE_WCWIDTH = 1; then
18236 gl_LIBOBJS="$gl_LIBOBJS wcwidth.$ac_objext"
18254 $as_echo "#define GNULIB_TEST_WCWIDTH 1" >>confdefs.h
18260 for ac_header in stdint.h
18262 ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
18263 if test "x$ac_cv_header_stdint_h" = xyes; then :
18264 cat >>confdefs.h <<_ACEOF
18265 #define HAVE_STDINT_H 1
18273 # End of code from modules
18294 gl_source_base='tests'
18295 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
18297 gl_module_indicator_condition=$gltests_WITNESS
18307 LIBGNU_LIBDEPS="$gl_libdeps"
18309 LIBGNU_LTLIBDEPS="$gl_ltlibdeps"
18315 ac_cpp='$CXXCPP $CPPFLAGS'
18316 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18317 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18318 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18320 if test "$cross_compiling" = no; then
18321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that C++ compiler can compile simple program" >&5
18322 $as_echo_n "checking that C++ compiler can compile simple program... " >&6; }
18324 if test "$cross_compiling" = yes; then :
18327 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18328 /* end confdefs.h. */
18339 if ac_fn_cxx_try_run "$LINENO"; then :
18340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18341 $as_echo "yes" >&6; }
18343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18344 $as_echo "no" >&6; }
18345 as_fn_error $? "a working C++ compiler is required" "$LINENO" 5
18347 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18348 conftest.$ac_objext conftest.beam conftest.$ac_ext
18352 if test "$cross_compiling" = no; then
18353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that C++ static constructors and destructors are called" >&5
18354 $as_echo_n "checking that C++ static constructors and destructors are called... " >&6; }
18356 if test "$cross_compiling" = yes; then :
18359 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18360 /* end confdefs.h. */
18372 ~A() { if (i == 1) _exit(0); }
18385 if ac_fn_cxx_try_run "$LINENO"; then :
18386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18387 $as_echo "yes" >&6; }
18389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18390 $as_echo "no" >&6; }
18391 as_fn_error $? "a working C++ compiler is required" "$LINENO" 5
18393 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18394 conftest.$ac_objext conftest.beam conftest.$ac_ext
18398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that header files support C++" >&5
18399 $as_echo_n "checking that header files support C++... " >&6; }
18400 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18401 /* end confdefs.h. */
18421 if ac_fn_cxx_try_link "$LINENO"; then :
18422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18423 $as_echo "yes" >&6; }
18425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18426 $as_echo "no" >&6; }
18427 as_fn_error $? "header files do not support C++
18428 (if you are using a version of gcc/g++ earlier than 2.5,
18429 you should install libg++)" "$LINENO" 5
18431 rm -f core conftest.err conftest.$ac_objext \
18432 conftest$ac_exeext conftest.$ac_ext
18434 ac_cpp='$CPP $CPPFLAGS'
18435 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18436 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18437 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether character set is EBCDIC" >&5
18440 $as_echo_n "checking whether character set is EBCDIC... " >&6; }
18441 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18442 /* end confdefs.h. */
18446 /* Treat any failure as ASCII for compatibility with existing art.
18447 Use compile-time rather than run-time tests for cross-compiler
18450 make an error "Character set is not EBCDIC"
18463 if ac_fn_c_try_compile "$LINENO"; then :
18464 groff_cv_ebcdic="yes"
18465 TTYDEVDIRS="font/devcp1047"
18466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18467 $as_echo "yes" >&6; }
18469 $as_echo "#define IS_EBCDIC_HOST 1" >>confdefs.h
18472 groff_cv_ebcdic="no"
18473 TTYDEVDIRS="font/devascii font/devlatin1"
18474 OTHERDEVDIRS="font/devlj4 font/devlbp"
18475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18476 $as_echo "no" >&6; }
18478 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18481 if test "$groff_cv_ebcdic" = "yes"; then
18482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OS/390 Unix" >&5
18483 $as_echo_n "checking for OS/390 Unix... " >&6; }
18486 CFLAGS="$CFLAGS -D_ALL_SOURCE"
18487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18488 $as_echo "yes" >&6; } ;;
18490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18491 $as_echo "no" >&6; } ;;
18494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to install .cmd wrapper scripts for Windows" >&5
18495 $as_echo_n "checking whether to install .cmd wrapper scripts for Windows... " >&6; }
18498 make_winscripts=winscripts
18499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18500 $as_echo "yes" >&6; } ;;
18503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18504 $as_echo "no" >&6; } ;;
18507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
18508 $as_echo_n "checking for X... " >&6; }
18511 # Check whether --with-x was given.
18512 if test "${with_x+set}" = set; then :
18516 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
18517 if test "x$with_x" = xno; then
18518 # The user explicitly disabled X.
18521 case $x_includes,$x_libraries in #(
18522 *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
18523 *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then :
18524 $as_echo_n "(cached) " >&6
18526 # One or both of the vars are not set, and there is no cached value.
18527 ac_x_includes=no ac_x_libraries=no
18528 rm -f -r conftest.dir
18529 if mkdir conftest.dir; then
18531 cat >Imakefile <<'_ACEOF'
18533 @echo incroot='${INCROOT}'
18535 @echo usrlibdir='${USRLIBDIR}'
18537 @echo libdir='${LIBDIR}'
18539 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
18540 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
18541 for ac_var in incroot usrlibdir libdir; do
18542 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
18544 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
18545 for ac_extension in a so sl dylib la dll; do
18546 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
18547 test -f "$ac_im_libdir/libX11.$ac_extension"; then
18548 ac_im_usrlibdir=$ac_im_libdir; break
18551 # Screen out bogus values from the imake configuration. They are
18552 # bogus both because they are the default anyway, and because
18553 # using them would break gcc on systems where it needs fixed includes.
18554 case $ac_im_incroot in
18555 /usr/include) ac_x_includes= ;;
18556 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
18558 case $ac_im_usrlibdir in
18559 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
18560 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
18564 rm -f -r conftest.dir
18567 # Standard set of common directories for X headers.
18568 # Check X11 before X11Rn because it is often a symlink to the current release.
18582 /usr/local/X11/include
18583 /usr/local/X11R7/include
18584 /usr/local/X11R6/include
18585 /usr/local/X11R5/include
18586 /usr/local/X11R4/include
18588 /usr/local/include/X11
18589 /usr/local/include/X11R7
18590 /usr/local/include/X11R6
18591 /usr/local/include/X11R5
18592 /usr/local/include/X11R4
18596 /usr/XFree86/include/X11
18600 /usr/unsupported/include
18601 /usr/athena/include
18602 /usr/local/x11r5/include
18603 /usr/lpp/Xamples/include
18605 /usr/openwin/include
18606 /usr/openwin/share/include'
18608 if test "$ac_x_includes" = no; then
18609 # Guess where to find include files, by looking for Xlib.h.
18610 # First, try using that file with no special directory specified.
18611 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18612 /* end confdefs.h. */
18613 #include <X11/Xlib.h>
18615 if ac_fn_c_try_cpp "$LINENO"; then :
18616 # We can compile using X headers with no special include directory.
18619 for ac_dir in $ac_x_header_dirs; do
18620 if test -r "$ac_dir/X11/Xlib.h"; then
18621 ac_x_includes=$ac_dir
18626 rm -f conftest.err conftest.i conftest.$ac_ext
18627 fi # $ac_x_includes = no
18629 if test "$ac_x_libraries" = no; then
18630 # Check for the libraries.
18631 # See if we find them without any special options.
18632 # Don't add to $LIBS permanently.
18635 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18636 /* end confdefs.h. */
18637 #include <X11/Xlib.h>
18646 if ac_fn_c_try_link "$LINENO"; then :
18648 # We can link X programs with no special library path.
18652 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
18654 # Don't even attempt the hair of trying to link an X program!
18655 for ac_extension in a so sl dylib la dll; do
18656 if test -r "$ac_dir/libX11.$ac_extension"; then
18657 ac_x_libraries=$ac_dir
18663 rm -f core conftest.err conftest.$ac_objext \
18664 conftest$ac_exeext conftest.$ac_ext
18665 fi # $ac_x_libraries = no
18667 case $ac_x_includes,$ac_x_libraries in #(
18668 no,* | *,no | *\'*)
18669 # Didn't find X, or a directory has "'" in its name.
18670 ac_cv_have_x="have_x=no";; #(
18672 # Record where we found X for the cache.
18673 ac_cv_have_x="have_x=yes\
18674 ac_x_includes='$ac_x_includes'\
18675 ac_x_libraries='$ac_x_libraries'"
18681 eval "$ac_cv_have_x"
18684 if test "$have_x" != yes; then
18685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
18686 $as_echo "$have_x" >&6; }
18689 # If each of the values was on the command line, it overrides each guess.
18690 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
18691 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
18692 # Update the cache value to reflect the command line values.
18693 ac_cv_have_x="have_x=yes\
18694 ac_x_includes='$x_includes'\
18695 ac_x_libraries='$x_libraries'"
18696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
18697 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
18700 if test "$no_x" = yes; then
18701 # Not all programs may use this symbol, but it does not hurt to define it.
18703 $as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
18705 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
18707 if test -n "$x_includes"; then
18708 X_CFLAGS="$X_CFLAGS -I$x_includes"
18711 # It would also be nice to do this for all -L options, not just this one.
18712 if test -n "$x_libraries"; then
18713 X_LIBS="$X_LIBS -L$x_libraries"
18714 # For Solaris; some versions of Sun CC require a space after -R and
18715 # others require no space. Words are not sufficient . . . .
18716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
18717 $as_echo_n "checking whether -R must be followed by a space... " >&6; }
18718 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
18719 ac_xsave_c_werror_flag=$ac_c_werror_flag
18720 ac_c_werror_flag=yes
18721 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18722 /* end confdefs.h. */
18732 if ac_fn_c_try_link "$LINENO"; then :
18733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18734 $as_echo "no" >&6; }
18735 X_LIBS="$X_LIBS -R$x_libraries"
18737 LIBS="$ac_xsave_LIBS -R $x_libraries"
18738 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18739 /* end confdefs.h. */
18749 if ac_fn_c_try_link "$LINENO"; then :
18750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18751 $as_echo "yes" >&6; }
18752 X_LIBS="$X_LIBS -R $x_libraries"
18754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
18755 $as_echo "neither works" >&6; }
18757 rm -f core conftest.err conftest.$ac_objext \
18758 conftest$ac_exeext conftest.$ac_ext
18760 rm -f core conftest.err conftest.$ac_objext \
18761 conftest$ac_exeext conftest.$ac_ext
18762 ac_c_werror_flag=$ac_xsave_c_werror_flag
18763 LIBS=$ac_xsave_LIBS
18766 # Check for system-dependent libraries X programs must link with.
18767 # Do this before checking for the system-independent R6 libraries
18768 # (-lICE), since we may need -lsocket or whatever for X linking.
18770 if test "$ISC" = yes; then
18771 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
18773 # Martyn Johnson says this is needed for Ultrix, if the X
18774 # libraries were built with DECnet support. And Karl Berry says
18775 # the Alpha needs dnet_stub (dnet does not exist).
18776 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
18777 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18778 /* end confdefs.h. */
18780 /* Override any GCC internal prototype to avoid an error.
18781 Use char because int might match the return type of a GCC
18782 builtin and then its argument prototype would still apply. */
18786 char XOpenDisplay ();
18790 return XOpenDisplay ();
18795 if ac_fn_c_try_link "$LINENO"; then :
18798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
18799 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
18800 if ${ac_cv_lib_dnet_dnet_ntoa+:} false; then :
18801 $as_echo_n "(cached) " >&6
18803 ac_check_lib_save_LIBS=$LIBS
18804 LIBS="-ldnet $LIBS"
18805 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18806 /* end confdefs.h. */
18808 /* Override any GCC internal prototype to avoid an error.
18809 Use char because int might match the return type of a GCC
18810 builtin and then its argument prototype would still apply. */
18818 return dnet_ntoa ();
18823 if ac_fn_c_try_link "$LINENO"; then :
18824 ac_cv_lib_dnet_dnet_ntoa=yes
18826 ac_cv_lib_dnet_dnet_ntoa=no
18828 rm -f core conftest.err conftest.$ac_objext \
18829 conftest$ac_exeext conftest.$ac_ext
18830 LIBS=$ac_check_lib_save_LIBS
18832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
18833 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
18834 if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes; then :
18835 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
18838 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
18839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
18840 $as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
18841 if ${ac_cv_lib_dnet_stub_dnet_ntoa+:} false; then :
18842 $as_echo_n "(cached) " >&6
18844 ac_check_lib_save_LIBS=$LIBS
18845 LIBS="-ldnet_stub $LIBS"
18846 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18847 /* end confdefs.h. */
18849 /* Override any GCC internal prototype to avoid an error.
18850 Use char because int might match the return type of a GCC
18851 builtin and then its argument prototype would still apply. */
18859 return dnet_ntoa ();
18864 if ac_fn_c_try_link "$LINENO"; then :
18865 ac_cv_lib_dnet_stub_dnet_ntoa=yes
18867 ac_cv_lib_dnet_stub_dnet_ntoa=no
18869 rm -f core conftest.err conftest.$ac_objext \
18870 conftest$ac_exeext conftest.$ac_ext
18871 LIBS=$ac_check_lib_save_LIBS
18873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
18874 $as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
18875 if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = xyes; then :
18876 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
18881 rm -f core conftest.err conftest.$ac_objext \
18882 conftest$ac_exeext conftest.$ac_ext
18883 LIBS="$ac_xsave_LIBS"
18885 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
18886 # to get the SysV transport functions.
18887 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
18889 # The nsl library prevents programs from opening the X display
18890 # on Irix 5.2, according to T.E. Dickey.
18891 # The functions gethostbyname, getservbyname, and inet_addr are
18892 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
18893 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
18894 if test "x$ac_cv_func_gethostbyname" = xyes; then :
18898 if test $ac_cv_func_gethostbyname = no; then
18899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
18900 $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
18901 if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
18902 $as_echo_n "(cached) " >&6
18904 ac_check_lib_save_LIBS=$LIBS
18906 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18907 /* end confdefs.h. */
18909 /* Override any GCC internal prototype to avoid an error.
18910 Use char because int might match the return type of a GCC
18911 builtin and then its argument prototype would still apply. */
18915 char gethostbyname ();
18919 return gethostbyname ();
18924 if ac_fn_c_try_link "$LINENO"; then :
18925 ac_cv_lib_nsl_gethostbyname=yes
18927 ac_cv_lib_nsl_gethostbyname=no
18929 rm -f core conftest.err conftest.$ac_objext \
18930 conftest$ac_exeext conftest.$ac_ext
18931 LIBS=$ac_check_lib_save_LIBS
18933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
18934 $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
18935 if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
18936 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
18939 if test $ac_cv_lib_nsl_gethostbyname = no; then
18940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
18941 $as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
18942 if ${ac_cv_lib_bsd_gethostbyname+:} false; then :
18943 $as_echo_n "(cached) " >&6
18945 ac_check_lib_save_LIBS=$LIBS
18947 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18948 /* end confdefs.h. */
18950 /* Override any GCC internal prototype to avoid an error.
18951 Use char because int might match the return type of a GCC
18952 builtin and then its argument prototype would still apply. */
18956 char gethostbyname ();
18960 return gethostbyname ();
18965 if ac_fn_c_try_link "$LINENO"; then :
18966 ac_cv_lib_bsd_gethostbyname=yes
18968 ac_cv_lib_bsd_gethostbyname=no
18970 rm -f core conftest.err conftest.$ac_objext \
18971 conftest$ac_exeext conftest.$ac_ext
18972 LIBS=$ac_check_lib_save_LIBS
18974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
18975 $as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
18976 if test "x$ac_cv_lib_bsd_gethostbyname" = xyes; then :
18977 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
18983 # lieder@skyler.mavd.honeywell.com says without -lsocket,
18984 # socket/setsockopt and other routines are undefined under SCO ODT
18985 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
18986 # on later versions), says Simon Leinen: it contains gethostby*
18987 # variants that don't use the name server (or something). -lsocket
18988 # must be given before -lnsl if both are needed. We assume that
18989 # if connect needs -lnsl, so does gethostbyname.
18990 ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
18991 if test "x$ac_cv_func_connect" = xyes; then :
18995 if test $ac_cv_func_connect = no; then
18996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
18997 $as_echo_n "checking for connect in -lsocket... " >&6; }
18998 if ${ac_cv_lib_socket_connect+:} false; then :
18999 $as_echo_n "(cached) " >&6
19001 ac_check_lib_save_LIBS=$LIBS
19002 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
19003 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19004 /* end confdefs.h. */
19006 /* Override any GCC internal prototype to avoid an error.
19007 Use char because int might match the return type of a GCC
19008 builtin and then its argument prototype would still apply. */
19021 if ac_fn_c_try_link "$LINENO"; then :
19022 ac_cv_lib_socket_connect=yes
19024 ac_cv_lib_socket_connect=no
19026 rm -f core conftest.err conftest.$ac_objext \
19027 conftest$ac_exeext conftest.$ac_ext
19028 LIBS=$ac_check_lib_save_LIBS
19030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
19031 $as_echo "$ac_cv_lib_socket_connect" >&6; }
19032 if test "x$ac_cv_lib_socket_connect" = xyes; then :
19033 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
19038 # Guillermo Gomez says -lposix is necessary on A/UX.
19039 ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
19040 if test "x$ac_cv_func_remove" = xyes; then :
19044 if test $ac_cv_func_remove = no; then
19045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
19046 $as_echo_n "checking for remove in -lposix... " >&6; }
19047 if ${ac_cv_lib_posix_remove+:} false; then :
19048 $as_echo_n "(cached) " >&6
19050 ac_check_lib_save_LIBS=$LIBS
19051 LIBS="-lposix $LIBS"
19052 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19053 /* end confdefs.h. */
19055 /* Override any GCC internal prototype to avoid an error.
19056 Use char because int might match the return type of a GCC
19057 builtin and then its argument prototype would still apply. */
19070 if ac_fn_c_try_link "$LINENO"; then :
19071 ac_cv_lib_posix_remove=yes
19073 ac_cv_lib_posix_remove=no
19075 rm -f core conftest.err conftest.$ac_objext \
19076 conftest$ac_exeext conftest.$ac_ext
19077 LIBS=$ac_check_lib_save_LIBS
19079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
19080 $as_echo "$ac_cv_lib_posix_remove" >&6; }
19081 if test "x$ac_cv_lib_posix_remove" = xyes; then :
19082 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
19087 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
19088 ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
19089 if test "x$ac_cv_func_shmat" = xyes; then :
19093 if test $ac_cv_func_shmat = no; then
19094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
19095 $as_echo_n "checking for shmat in -lipc... " >&6; }
19096 if ${ac_cv_lib_ipc_shmat+:} false; then :
19097 $as_echo_n "(cached) " >&6
19099 ac_check_lib_save_LIBS=$LIBS
19101 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19102 /* end confdefs.h. */
19104 /* Override any GCC internal prototype to avoid an error.
19105 Use char because int might match the return type of a GCC
19106 builtin and then its argument prototype would still apply. */
19119 if ac_fn_c_try_link "$LINENO"; then :
19120 ac_cv_lib_ipc_shmat=yes
19122 ac_cv_lib_ipc_shmat=no
19124 rm -f core conftest.err conftest.$ac_objext \
19125 conftest$ac_exeext conftest.$ac_ext
19126 LIBS=$ac_check_lib_save_LIBS
19128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
19129 $as_echo "$ac_cv_lib_ipc_shmat" >&6; }
19130 if test "x$ac_cv_lib_ipc_shmat" = xyes; then :
19131 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
19137 # Check for libraries that X11R6 Xt/Xaw programs need.
19138 ac_save_LDFLAGS=$LDFLAGS
19139 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
19140 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
19141 # check for ICE first), but we must link in the order -lSM -lICE or
19142 # we get undefined symbols. So assume we have SM if we have ICE.
19143 # These have to be linked with before -lX11, unlike the other
19144 # libraries we check for below, so use a different variable.
19145 # John Interrante, Karl Berry
19146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
19147 $as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
19148 if ${ac_cv_lib_ICE_IceConnectionNumber+:} false; then :
19149 $as_echo_n "(cached) " >&6
19151 ac_check_lib_save_LIBS=$LIBS
19152 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
19153 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19154 /* end confdefs.h. */
19156 /* Override any GCC internal prototype to avoid an error.
19157 Use char because int might match the return type of a GCC
19158 builtin and then its argument prototype would still apply. */
19162 char IceConnectionNumber ();
19166 return IceConnectionNumber ();
19171 if ac_fn_c_try_link "$LINENO"; then :
19172 ac_cv_lib_ICE_IceConnectionNumber=yes
19174 ac_cv_lib_ICE_IceConnectionNumber=no
19176 rm -f core conftest.err conftest.$ac_objext \
19177 conftest$ac_exeext conftest.$ac_ext
19178 LIBS=$ac_check_lib_save_LIBS
19180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
19181 $as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
19182 if test "x$ac_cv_lib_ICE_IceConnectionNumber" = xyes; then :
19183 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
19186 LDFLAGS=$ac_save_LDFLAGS
19192 if test -z "$groff_no_x"; then
19194 OLDLDFLAGS=$LDFLAGS
19196 CFLAGS="$CFLAGS $X_CFLAGS"
19197 LDFLAGS="$LDFLAGS $X_LIBS"
19198 LIBS="$LIBS $X_PRE_LIBS -lX11 $X_EXTRA_LIBS"
19201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Xaw library and header files" >&5
19202 $as_echo_n "checking for Xaw library and header files... " >&6; }
19203 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19204 /* end confdefs.h. */
19208 #include <X11/Intrinsic.h>
19209 #include <X11/Xaw/Simple.h>
19221 if ac_fn_c_try_link "$LINENO"; then :
19222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19223 $as_echo "yes" >&6; }
19225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19226 $as_echo "no" >&6; }
19229 rm -f core conftest.err conftest.$ac_objext \
19230 conftest$ac_exeext conftest.$ac_ext
19233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Xmu library and header files" >&5
19234 $as_echo_n "checking for Xmu library and header files... " >&6; }
19235 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19236 /* end confdefs.h. */
19240 #include <X11/Intrinsic.h>
19241 #include <X11/Xmu/Converters.h>
19253 if ac_fn_c_try_link "$LINENO"; then :
19254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19255 $as_echo "yes" >&6; }
19257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19258 $as_echo "no" >&6; }
19261 rm -f core conftest.err conftest.$ac_objext \
19262 conftest$ac_exeext conftest.$ac_ext
19265 LDFLAGS=$OLDLDFLAGS
19269 if test "x$groff_no_x" = "xyes"; then
19270 { $as_echo "$as_me:${as_lineno-$LINENO}: gxditview and xtotroff won't be built" >&5
19271 $as_echo "$as_me: gxditview and xtotroff won't be built" >&6;}
19273 XDEVDIRS="font/devX75 font/devX75-12 font/devX100 font/devX100-12"
19274 XPROGDIRS="src/devices/xditview src/utils/xtotroff"
19275 XLIBDIRS="src/libs/libxutil"
19282 # Check whether --with-appresdir was given.
19283 if test "${with_appresdir+set}" = set; then :
19284 withval=$with_appresdir;
19287 if test -z "$groff_no_x"; then
19288 if test "x$with_appresdir" = "x"; then
19289 if test "x$prefix" = "xNONE"; then
19290 appresdir=$ac_default_prefix/lib/X11/app-defaults
19292 appresdir=$prefix/lib/X11/app-defaults
19295 appresdir=$with_appresdir
19299 libprogramdir=$libdir/groff
19302 # Check whether --with-grofferdir was given.
19303 if test "${with_grofferdir+set}" = set; then :
19304 withval=$with_grofferdir;
19307 if test "x$with_grofferdir" = "x"; then
19308 groffer_dir=$libprogramdir/groffer
19310 groffer_dir=$with_grofferdir
19313 glilypond_dir=$libprogramdir/glilypond
19315 gpinyin_dir=$libprogramdir/gpinyin
19317 grog_dir=$libprogramdir/grog
19319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
19320 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
19321 if ${ac_cv_path_SED+:} false; then :
19322 $as_echo_n "(cached) " >&6
19324 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
19325 for ac_i in 1 2 3 4 5 6 7; do
19326 ac_script="$ac_script$as_nl$ac_script"
19328 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
19329 { ac_script=; unset ac_script;}
19330 if test -z "$SED"; then
19331 ac_path_SED_found=false
19332 # Loop through the user's path and test for each of PROGNAME-LIST
19333 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19334 for as_dir in $PATH
19337 test -z "$as_dir" && as_dir=.
19338 for ac_prog in sed gsed; do
19339 for ac_exec_ext in '' $ac_executable_extensions; do
19340 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
19341 as_fn_executable_p "$ac_path_SED" || continue
19342 # Check for GNU ac_path_SED and select it if it is found.
19343 # Check for GNU $ac_path_SED
19344 case `"$ac_path_SED" --version 2>&1` in
19346 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
19349 $as_echo_n 0123456789 >"conftest.in"
19352 cat "conftest.in" "conftest.in" >"conftest.tmp"
19353 mv "conftest.tmp" "conftest.in"
19354 cp "conftest.in" "conftest.nl"
19355 $as_echo '' >> "conftest.nl"
19356 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
19357 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
19358 as_fn_arith $ac_count + 1 && ac_count=$as_val
19359 if test $ac_count -gt ${ac_path_SED_max-0}; then
19360 # Best one so far, save it but keep looking for a better one
19361 ac_cv_path_SED="$ac_path_SED"
19362 ac_path_SED_max=$ac_count
19364 # 10*(2^10) chars as input seems more than enough
19365 test $ac_count -gt 10 && break
19367 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
19370 $ac_path_SED_found && break 3
19375 if test -z "$ac_cv_path_SED"; then
19376 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
19379 ac_cv_path_SED=$SED
19383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
19384 $as_echo "$ac_cv_path_SED" >&6; }
19385 SED="$ac_cv_path_SED"
19389 # Extract the first word of "perl", so it can be a program name with args.
19390 set dummy perl; ac_word=$2
19391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19392 $as_echo_n "checking for $ac_word... " >&6; }
19393 if ${ac_cv_path_PERL+:} false; then :
19394 $as_echo_n "(cached) " >&6
19398 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
19401 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19402 for as_dir in $PATH
19405 test -z "$as_dir" && as_dir=.
19406 for ac_exec_ext in '' $ac_executable_extensions; do
19407 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19408 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
19409 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19416 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="no"
19420 PERL=$ac_cv_path_PERL
19421 if test -n "$PERL"; then
19422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
19423 $as_echo "$PERL" >&6; }
19425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19426 $as_echo "no" >&6; }
19430 if test "x$PERL" = "xno"; then
19431 as_fn_error 1 "perl binary not found" "$LINENO" 5
19437 if test -n "$PERL"; then :
19439 ax_perl_version="$PERLVERSION"
19441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for perl version" >&5
19442 $as_echo_n "checking for perl version... " >&6; }
19444 perl_version=`$PERL --version 2>&1 \
19445 | $SED -n -e '/This is perl/b inspect
19448 s/.* (\{0,1\}v\([0-9]*\.[0-9]*\.[0-9]*\))\{0,1\} .*/\1/;p'`
19450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $perl_version" >&5
19451 $as_echo "$perl_version" >&6; }
19453 PERL_VERSION=$perl_version
19459 # Used to indicate true or false condition
19460 ax_compare_version=false
19462 # Convert the two version strings to be compared into a format that
19463 # allows a simple string comparison. The end result is that a version
19464 # string of the form 1.12.5-r617 will be converted to the form
19465 # 0001001200050617. In other words, each number is zero padded to four
19466 # digits, and non digits are removed.
19468 ax_compare_version_A=`echo "$ax_perl_version" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
19469 -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
19470 -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
19471 -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
19475 ax_compare_version_B=`echo "$perl_version" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
19476 -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
19477 -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
19478 -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
19482 ax_compare_version=`echo "x$ax_compare_version_A
19483 x$ax_compare_version_B" | sed 's/^ *//' | sort | sed "s/x${ax_compare_version_A}/true/;s/x${ax_compare_version_B}/false/;1q"`
19487 if test "$ax_compare_version" = "true" ; then
19495 as_fn_error 1 "perl version is too old" "$LINENO" 5
19502 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: could not find the perl interpreter" >&5
19503 $as_echo "$as_me: WARNING: could not find the perl interpreter" >&2;}
19505 as_fn_error 1 "perl version is too old" "$LINENO" 5
19509 if test -z "$PSPRINT"; then
19512 # Extract the first word of "$ac_prog", so it can be a program name with args.
19513 set dummy $ac_prog; ac_word=$2
19514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19515 $as_echo_n "checking for $ac_word... " >&6; }
19516 if ${ac_cv_prog_LPR+:} false; then :
19517 $as_echo_n "(cached) " >&6
19519 if test -n "$LPR"; then
19520 ac_cv_prog_LPR="$LPR" # Let the user override the test.
19522 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19523 for as_dir in $PATH
19526 test -z "$as_dir" && as_dir=.
19527 for ac_exec_ext in '' $ac_executable_extensions; do
19528 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19529 ac_cv_prog_LPR="$ac_prog"
19530 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19539 LPR=$ac_cv_prog_LPR
19540 if test -n "$LPR"; then
19541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LPR" >&5
19542 $as_echo "$LPR" >&6; }
19544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19545 $as_echo "no" >&6; }
19549 test -n "$LPR" && break
19554 # Extract the first word of "$ac_prog", so it can be a program name with args.
19555 set dummy $ac_prog; ac_word=$2
19556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19557 $as_echo_n "checking for $ac_word... " >&6; }
19558 if ${ac_cv_prog_LP+:} false; then :
19559 $as_echo_n "(cached) " >&6
19561 if test -n "$LP"; then
19562 ac_cv_prog_LP="$LP" # Let the user override the test.
19564 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19565 for as_dir in $PATH
19568 test -z "$as_dir" && as_dir=.
19569 for ac_exec_ext in '' $ac_executable_extensions; do
19570 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19571 ac_cv_prog_LP="$ac_prog"
19572 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19582 if test -n "$LP"; then
19583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LP" >&5
19584 $as_echo "$LP" >&6; }
19586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19587 $as_echo "no" >&6; }
19591 test -n "$LP" && break
19594 if test -n "$LPR" && test -n "$LP"; then
19595 # HP-UX provides an lpr command that emulates lpr using lp,
19596 # but it doesn't have lpq; in this case we want to use lp
19600 # Extract the first word of "$ac_prog", so it can be a program name with args.
19601 set dummy $ac_prog; ac_word=$2
19602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19603 $as_echo_n "checking for $ac_word... " >&6; }
19604 if ${ac_cv_prog_LPQ+:} false; then :
19605 $as_echo_n "(cached) " >&6
19607 if test -n "$LPQ"; then
19608 ac_cv_prog_LPQ="$LPQ" # Let the user override the test.
19610 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19611 for as_dir in $PATH
19614 test -z "$as_dir" && as_dir=.
19615 for ac_exec_ext in '' $ac_executable_extensions; do
19616 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19617 ac_cv_prog_LPQ="$ac_prog"
19618 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19627 LPQ=$ac_cv_prog_LPQ
19628 if test -n "$LPQ"; then
19629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LPQ" >&5
19630 $as_echo "$LPQ" >&6; }
19632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19633 $as_echo "no" >&6; }
19637 test -n "$LPQ" && break
19640 test -n "$LPQ" || LPR=
19642 if test -n "$LPR"; then
19644 elif test -n "$LP"; then
19649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for command to use for printing PostScript files" >&5
19650 $as_echo_n "checking for command to use for printing PostScript files... " >&6; }
19651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PSPRINT" >&5
19652 $as_echo "$PSPRINT" >&6; }
19654 # Figure out DVIPRINT from PSPRINT.
19655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for command to use for printing dvi files" >&5
19656 $as_echo_n "checking for command to use for printing dvi files... " >&6; }
19657 if test -n "$PSPRINT" && test -z "$DVIPRINT"; then
19658 if test "x$PSPRINT" = "xlpr"; then
19661 DVIPRINT="$PSPRINT"
19665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DVIPRINT" >&5
19666 $as_echo "$DVIPRINT" >&6; }
19668 referdir=$libprogramdir/refer
19670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
19671 $as_echo_n "checking for egrep... " >&6; }
19672 if ${ac_cv_path_EGREP+:} false; then :
19673 $as_echo_n "(cached) " >&6
19675 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
19676 then ac_cv_path_EGREP="$GREP -E"
19678 if test -z "$EGREP"; then
19679 ac_path_EGREP_found=false
19680 # Loop through the user's path and test for each of PROGNAME-LIST
19681 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19682 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
19685 test -z "$as_dir" && as_dir=.
19686 for ac_prog in egrep; do
19687 for ac_exec_ext in '' $ac_executable_extensions; do
19688 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
19689 as_fn_executable_p "$ac_path_EGREP" || continue
19690 # Check for GNU ac_path_EGREP and select it if it is found.
19691 # Check for GNU $ac_path_EGREP
19692 case `"$ac_path_EGREP" --version 2>&1` in
19694 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
19697 $as_echo_n 0123456789 >"conftest.in"
19700 cat "conftest.in" "conftest.in" >"conftest.tmp"
19701 mv "conftest.tmp" "conftest.in"
19702 cp "conftest.in" "conftest.nl"
19703 $as_echo 'EGREP' >> "conftest.nl"
19704 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
19705 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
19706 as_fn_arith $ac_count + 1 && ac_count=$as_val
19707 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
19708 # Best one so far, save it but keep looking for a better one
19709 ac_cv_path_EGREP="$ac_path_EGREP"
19710 ac_path_EGREP_max=$ac_count
19712 # 10*(2^10) chars as input seems more than enough
19713 test $ac_count -gt 10 && break
19715 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
19718 $ac_path_EGREP_found && break 3
19723 if test -z "$ac_cv_path_EGREP"; then
19724 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
19727 ac_cv_path_EGREP=$EGREP
19732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
19733 $as_echo "$ac_cv_path_EGREP" >&6; }
19734 EGREP="$ac_cv_path_EGREP"
19737 for ac_prog in byacc 'bison -y' yacc
19739 # Extract the first word of "$ac_prog", so it can be a program name with args.
19740 set dummy $ac_prog; ac_word=$2
19741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19742 $as_echo_n "checking for $ac_word... " >&6; }
19743 if ${ac_cv_prog_YACC+:} false; then :
19744 $as_echo_n "(cached) " >&6
19746 if test -n "$YACC"; then
19747 ac_cv_prog_YACC="$YACC" # Let the user override the test.
19749 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19750 for as_dir in $PATH
19753 test -z "$as_dir" && as_dir=.
19754 for ac_exec_ext in '' $ac_executable_extensions; do
19755 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19756 ac_cv_prog_YACC="$ac_prog"
19757 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19766 YACC=$ac_cv_prog_YACC
19767 if test -n "$YACC"; then
19768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
19769 $as_echo "$YACC" >&6; }
19771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19772 $as_echo "no" >&6; }
19776 test -n "$YACC" && break
19778 test -n "$YACC" || YACC="missing"
19780 if test "x$YACC" = "xmissing" -a -d ${srcdir}/.git; then
19781 as_fn_error 1 "Could not find 'yacc' or 'bison'" "$LINENO" 5
19785 # Check whether --with-doc was given.
19786 if test "${with_doc+set}" = set; then :
19787 withval=$with_doc; doc="$withval"
19792 test "x$doc" = xno && doc=''
19793 if test "x$doc" = xyes; then
19794 doc_dist_target_ok=yes
19799 docadd_examples=yes
19801 # Don't use case/esac, verify input.
19802 doc_dist_target_ok=no
19814 test "x$i" = xhtml && { docadd_html=yes; continue; }
19815 test "x$i" = xinfo && { docadd_info=yes; continue; }
19816 test "x$i" = xother && { docadd_other=yes; continue; }
19817 test "x$i" = xpdf && { docadd_pdf=yes; continue; }
19818 test "x$i" = xexamples && { docadd_examples=yes; continue; }
19819 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Invalid '--with-doc' argument: $i" >&5
19820 $as_echo "$as_me: WARNING: Invalid '--with-doc' argument: $i" >&2;}
19823 if test $docadd_html = yes; then
19824 make_install_shipped_htmldoc=install_shipped_htmldoc
19825 make_uninstall_shipped_htmldoc=uninstall_shipped_htmldoc
19827 make_install_shipped_htmldoc=
19828 make_uninstall_shipped_htmldoc=
19830 if test $docadd_other = yes; then
19831 make_otherdoc=otherdoc
19832 make_install_otherdoc=install_otherdoc
19833 make_uninstall_otherdoc=uninstall_otherdoc
19836 make_install_otherdoc=
19837 make_uninstall_otherdoc=
19839 if test $docadd_examples = yes; then
19840 make_examples=examples
19841 make_install_examples=install_examples
19842 make_uninstall_examples=uninstall_examples
19845 make_install_examples=
19846 make_uninstall_examples=
19857 # By default automake will set MAKEINFO to MAKEINFO = ${SHELL} <top
19858 # src dir>/build-aux/missing makeinfo.As we need a more precise
19859 # check of makeinfo version, we don't use it.
19861 if test $docadd_info = yes; then
19863 # Extract the first word of "makeinfo", so it can be a program name with args.
19864 set dummy makeinfo; ac_word=$2
19865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19866 $as_echo_n "checking for $ac_word... " >&6; }
19867 if ${ac_cv_prog_MAKEINFO+:} false; then :
19868 $as_echo_n "(cached) " >&6
19870 if test -n "$MAKEINFO"; then
19871 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
19873 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19874 for as_dir in $PATH
19877 test -z "$as_dir" && as_dir=.
19878 for ac_exec_ext in '' $ac_executable_extensions; do
19879 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19880 ac_cv_prog_MAKEINFO="makeinfo"
19881 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19890 MAKEINFO=$ac_cv_prog_MAKEINFO
19891 if test -n "$MAKEINFO"; then
19892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
19893 $as_echo "$MAKEINFO" >&6; }
19895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19896 $as_echo "no" >&6; }
19900 if test -z "$MAKEINFO"; then
19901 missing="'makeinfo' is missing."
19903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for makeinfo version" >&5
19904 $as_echo_n "checking for makeinfo version... " >&6; }
19905 # We need an additional level of quoting to make sed's regexps work.
19906 makeinfo_version=`$MAKEINFO --version 2>&1 \
19907 | sed -e 's/^.* \([^ ][^ ]*\)$/\1/' -e '1q'`
19908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $makeinfo_version" >&5
19909 $as_echo "$makeinfo_version" >&6; }
19910 # Consider only the first two numbers in version number string.
19911 makeinfo_version_major=`IFS=.; set x $makeinfo_version; echo 0${2}`
19912 makeinfo_version_minor=`IFS=.; set x $makeinfo_version; echo 0${3}`
19913 makeinfo_version_numeric=`
19914 expr ${makeinfo_version_major}000 \+ ${makeinfo_version_minor}`
19915 if test $makeinfo_version_numeric -lt 4008; then
19916 missing="'makeinfo' is too old."
19920 if test -n "$missing"; then
19921 infofile=doc/groff.info
19922 test -f ${infofile} || infofile=${srcdir}/${infofile}
19923 if test ! -f ${infofile} \
19924 || test ${srcdir}/doc/groff.texi -nt ${infofile}; then
19925 as_fn_error $? "$missing
19926 Get the 'texinfo' package version 4.8 or newer." "$LINENO" 5
19928 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $missing
19929 Get the 'texinfo' package version 4.8 or newer if you want to convert
19930 'groff.texi' into a PDF or HTML document." >&5
19931 $as_echo "$as_me: WARNING: $missing
19932 Get the 'texinfo' package version 4.8 or newer if you want to convert
19933 'groff.texi' into a PDF or HTML document." >&2;}
19937 make_infodoc=infodoc
19938 make_install_infodoc=install_infodoc
19939 make_uninstall_infodoc=uninstall_infodoc
19942 make_install_infodoc=
19943 make_uninstall_infodoc=
19951 # Extract the first word of "texi2dvi", so it can be a program name with args.
19952 set dummy texi2dvi; ac_word=$2
19953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19954 $as_echo_n "checking for $ac_word... " >&6; }
19955 if ${ac_cv_prog_PROG_TEXI2DVI+:} false; then :
19956 $as_echo_n "(cached) " >&6
19958 if test -n "$PROG_TEXI2DVI"; then
19959 ac_cv_prog_PROG_TEXI2DVI="$PROG_TEXI2DVI" # Let the user override the test.
19961 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19962 for as_dir in $PATH
19965 test -z "$as_dir" && as_dir=.
19966 for ac_exec_ext in '' $ac_executable_extensions; do
19967 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19968 ac_cv_prog_PROG_TEXI2DVI="found"
19969 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19976 test -z "$ac_cv_prog_PROG_TEXI2DVI" && ac_cv_prog_PROG_TEXI2DVI="missing"
19979 PROG_TEXI2DVI=$ac_cv_prog_PROG_TEXI2DVI
19980 if test -n "$PROG_TEXI2DVI"; then
19981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PROG_TEXI2DVI" >&5
19982 $as_echo "$PROG_TEXI2DVI" >&6; }
19984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19985 $as_echo "no" >&6; }
19989 if test "x$PROG_TEXI2DVI" = "xfound"; then
19990 groff_have_texi2dvi=yes;
19992 groff_have_texi2dvi=no;
19995 if test -n "$ac_tool_prefix"; then
19996 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
19997 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
19998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19999 $as_echo_n "checking for $ac_word... " >&6; }
20000 if ${ac_cv_prog_RANLIB+:} false; then :
20001 $as_echo_n "(cached) " >&6
20003 if test -n "$RANLIB"; then
20004 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
20006 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20007 for as_dir in $PATH
20010 test -z "$as_dir" && as_dir=.
20011 for ac_exec_ext in '' $ac_executable_extensions; do
20012 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20013 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
20014 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20023 RANLIB=$ac_cv_prog_RANLIB
20024 if test -n "$RANLIB"; then
20025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
20026 $as_echo "$RANLIB" >&6; }
20028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20029 $as_echo "no" >&6; }
20034 if test -z "$ac_cv_prog_RANLIB"; then
20035 ac_ct_RANLIB=$RANLIB
20036 # Extract the first word of "ranlib", so it can be a program name with args.
20037 set dummy ranlib; ac_word=$2
20038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20039 $as_echo_n "checking for $ac_word... " >&6; }
20040 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
20041 $as_echo_n "(cached) " >&6
20043 if test -n "$ac_ct_RANLIB"; then
20044 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
20046 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20047 for as_dir in $PATH
20050 test -z "$as_dir" && as_dir=.
20051 for ac_exec_ext in '' $ac_executable_extensions; do
20052 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20053 ac_cv_prog_ac_ct_RANLIB="ranlib"
20054 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20063 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
20064 if test -n "$ac_ct_RANLIB"; then
20065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
20066 $as_echo "$ac_ct_RANLIB" >&6; }
20068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20069 $as_echo "no" >&6; }
20072 if test "x$ac_ct_RANLIB" = x; then
20075 case $cross_compiling:$ac_tool_warned in
20077 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
20078 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
20079 ac_tool_warned=yes ;;
20081 RANLIB=$ac_ct_RANLIB
20084 RANLIB="$ac_cv_prog_RANLIB"
20088 ac_dir=`cd $ac_aux_dir; pwd`
20089 ac_install_sh="$ac_dir/install-sh -c"
20090 if test $docadd_info = yes; then
20091 for ac_prog in install-info
20093 # Extract the first word of "$ac_prog", so it can be a program name with args.
20094 set dummy $ac_prog; ac_word=$2
20095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20096 $as_echo_n "checking for $ac_word... " >&6; }
20097 if ${ac_cv_prog_INSTALL_INFO+:} false; then :
20098 $as_echo_n "(cached) " >&6
20100 if test -n "$INSTALL_INFO"; then
20101 ac_cv_prog_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test.
20103 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20104 for as_dir in $PATH
20107 test -z "$as_dir" && as_dir=.
20108 for ac_exec_ext in '' $ac_executable_extensions; do
20109 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20110 ac_cv_prog_INSTALL_INFO="$ac_prog"
20111 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20120 INSTALL_INFO=$ac_cv_prog_INSTALL_INFO
20121 if test -n "$INSTALL_INFO"; then
20122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL_INFO" >&5
20123 $as_echo "$INSTALL_INFO" >&6; }
20125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20126 $as_echo "no" >&6; }
20130 test -n "$INSTALL_INFO" && break
20132 test -n "$INSTALL_INFO" || INSTALL_INFO=":"
20136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
20137 $as_echo_n "checking whether ln -s works... " >&6; }
20139 if test "$LN_S" = "ln -s"; then
20140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20141 $as_echo "yes" >&6; }
20143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
20144 $as_echo "no, using $LN_S" >&6; }
20148 # Extract the first word of "xpmtoppm", so it can be a program name with args.
20149 set dummy xpmtoppm; ac_word=$2
20150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20151 $as_echo_n "checking for $ac_word... " >&6; }
20152 if ${ac_cv_prog_XPMTOPPM+:} false; then :
20153 $as_echo_n "(cached) " >&6
20155 if test -n "$XPMTOPPM"; then
20156 ac_cv_prog_XPMTOPPM="$XPMTOPPM" # Let the user override the test.
20158 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20159 for as_dir in $PATH
20162 test -z "$as_dir" && as_dir=.
20163 for ac_exec_ext in '' $ac_executable_extensions; do
20164 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20165 ac_cv_prog_XPMTOPPM="found"
20166 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20173 test -z "$ac_cv_prog_XPMTOPPM" && ac_cv_prog_XPMTOPPM="missing"
20176 XPMTOPPM=$ac_cv_prog_XPMTOPPM
20177 if test -n "$XPMTOPPM"; then
20178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XPMTOPPM" >&5
20179 $as_echo "$XPMTOPPM" >&6; }
20181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20182 $as_echo "no" >&6; }
20193 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
20194 if test -n "$ac_tool_prefix"; then
20195 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
20196 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
20197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20198 $as_echo_n "checking for $ac_word... " >&6; }
20199 if ${ac_cv_path_PKG_CONFIG+:} false; then :
20200 $as_echo_n "(cached) " >&6
20202 case $PKG_CONFIG in
20204 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
20207 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20208 for as_dir in $PATH
20211 test -z "$as_dir" && as_dir=.
20212 for ac_exec_ext in '' $ac_executable_extensions; do
20213 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20214 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
20215 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20225 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
20226 if test -n "$PKG_CONFIG"; then
20227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
20228 $as_echo "$PKG_CONFIG" >&6; }
20230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20231 $as_echo "no" >&6; }
20236 if test -z "$ac_cv_path_PKG_CONFIG"; then
20237 ac_pt_PKG_CONFIG=$PKG_CONFIG
20238 # Extract the first word of "pkg-config", so it can be a program name with args.
20239 set dummy pkg-config; ac_word=$2
20240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20241 $as_echo_n "checking for $ac_word... " >&6; }
20242 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
20243 $as_echo_n "(cached) " >&6
20245 case $ac_pt_PKG_CONFIG in
20247 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
20250 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20251 for as_dir in $PATH
20254 test -z "$as_dir" && as_dir=.
20255 for ac_exec_ext in '' $ac_executable_extensions; do
20256 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20257 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
20258 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20268 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
20269 if test -n "$ac_pt_PKG_CONFIG"; then
20270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
20271 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
20273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20274 $as_echo "no" >&6; }
20277 if test "x$ac_pt_PKG_CONFIG" = x; then
20280 case $cross_compiling:$ac_tool_warned in
20282 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
20283 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
20284 ac_tool_warned=yes ;;
20286 PKG_CONFIG=$ac_pt_PKG_CONFIG
20289 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
20293 if test -n "$PKG_CONFIG"; then
20294 _pkg_min_version=0.9.0
20295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
20296 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
20297 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
20298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20299 $as_echo "yes" >&6; }
20301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20302 $as_echo "no" >&6; }
20307 # Check whether --with-uchardet was given.
20308 if test "${with_uchardet+set}" = set; then :
20309 withval=$with_uchardet;
20312 if test "x$with_uchardet" != "xno"; then :
20315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UCHARDET" >&5
20316 $as_echo_n "checking for UCHARDET... " >&6; }
20318 if test -n "$UCHARDET_CFLAGS"; then
20319 pkg_cv_UCHARDET_CFLAGS="$UCHARDET_CFLAGS"
20320 elif test -n "$PKG_CONFIG"; then
20321 if test -n "$PKG_CONFIG" && \
20322 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"uchardet >= 0.0.1\""; } >&5
20323 ($PKG_CONFIG --exists --print-errors "uchardet >= 0.0.1") 2>&5
20325 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20326 test $ac_status = 0; }; then
20327 pkg_cv_UCHARDET_CFLAGS=`$PKG_CONFIG --cflags "uchardet >= 0.0.1" 2>/dev/null`
20328 test "x$?" != "x0" && pkg_failed=yes
20335 if test -n "$UCHARDET_LIBS"; then
20336 pkg_cv_UCHARDET_LIBS="$UCHARDET_LIBS"
20337 elif test -n "$PKG_CONFIG"; then
20338 if test -n "$PKG_CONFIG" && \
20339 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"uchardet >= 0.0.1\""; } >&5
20340 ($PKG_CONFIG --exists --print-errors "uchardet >= 0.0.1") 2>&5
20342 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20343 test $ac_status = 0; }; then
20344 pkg_cv_UCHARDET_LIBS=`$PKG_CONFIG --libs "uchardet >= 0.0.1" 2>/dev/null`
20345 test "x$?" != "x0" && pkg_failed=yes
20355 if test $pkg_failed = yes; then
20356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20357 $as_echo "no" >&6; }
20359 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
20360 _pkg_short_errors_supported=yes
20362 _pkg_short_errors_supported=no
20364 if test $_pkg_short_errors_supported = yes; then
20365 UCHARDET_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "uchardet >= 0.0.1" 2>&1`
20367 UCHARDET_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "uchardet >= 0.0.1" 2>&1`
20369 # Put the nasty error message in config.log where it belongs
20370 echo "$UCHARDET_PKG_ERRORS" >&5
20372 if test "x$with_uchardet" = "xyes"; then
20373 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
20374 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
20375 as_fn_error $? "Could not found uchardet library
20376 See \`config.log' for more details" "$LINENO" 5; }
20378 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: uchardet library not found, preconv \
20379 might not work properly" >&5
20380 $as_echo "$as_me: WARNING: uchardet library not found, preconv \
20381 might not work properly" >&2;}
20383 groff_have_uchardet=no
20384 elif test $pkg_failed = untried; then
20385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20386 $as_echo "no" >&6; }
20387 if test "x$with_uchardet" = "xyes"; then
20388 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
20389 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
20390 as_fn_error $? "Could not found uchardet library
20391 See \`config.log' for more details" "$LINENO" 5; }
20393 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: uchardet library not found, preconv \
20394 might not work properly" >&5
20395 $as_echo "$as_me: WARNING: uchardet library not found, preconv \
20396 might not work properly" >&2;}
20398 groff_have_uchardet=no
20400 UCHARDET_CFLAGS=$pkg_cv_UCHARDET_CFLAGS
20401 UCHARDET_LIBS=$pkg_cv_UCHARDET_LIBS
20402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20403 $as_echo "yes" >&6; }
20405 $as_echo "#define HAVE_UCHARDET 1" >>confdefs.h
20407 groff_have_uchardet=yes
20410 groff_have_uchardet=no
20413 # Extract the first word of "pdfinfo", so it can be a program name with args.
20414 set dummy pdfinfo; ac_word=$2
20415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20416 $as_echo_n "checking for $ac_word... " >&6; }
20417 if ${ac_cv_prog_PDFINFO+:} false; then :
20418 $as_echo_n "(cached) " >&6
20420 if test -n "$PDFINFO"; then
20421 ac_cv_prog_PDFINFO="$PDFINFO" # Let the user override the test.
20423 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20424 for as_dir in $PATH
20427 test -z "$as_dir" && as_dir=.
20428 for ac_exec_ext in '' $ac_executable_extensions; do
20429 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20430 ac_cv_prog_PDFINFO="found"
20431 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20438 test -z "$ac_cv_prog_PDFINFO" && ac_cv_prog_PDFINFO="missing"
20441 PDFINFO=$ac_cv_prog_PDFINFO
20442 if test -n "$PDFINFO"; then
20443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PDFINFO" >&5
20444 $as_echo "$PDFINFO" >&6; }
20446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20447 $as_echo "no" >&6; }
20451 # Extract the first word of "pdffonts", so it can be a program name with args.
20452 set dummy pdffonts; ac_word=$2
20453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20454 $as_echo_n "checking for $ac_word... " >&6; }
20455 if ${ac_cv_prog_PDFFONTS+:} false; then :
20456 $as_echo_n "(cached) " >&6
20458 if test -n "$PDFFONTS"; then
20459 ac_cv_prog_PDFFONTS="$PDFFONTS" # Let the user override the test.
20461 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20462 for as_dir in $PATH
20465 test -z "$as_dir" && as_dir=.
20466 for ac_exec_ext in '' $ac_executable_extensions; do
20467 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20468 ac_cv_prog_PDFFONTS="found"
20469 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20476 test -z "$ac_cv_prog_PDFFONTS" && ac_cv_prog_PDFFONTS="missing"
20479 PDFFONTS=$ac_cv_prog_PDFFONTS
20480 if test -n "$PDFFONTS"; then
20481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PDFFONTS" >&5
20482 $as_echo "$PDFFONTS" >&6; }
20484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20485 $as_echo "no" >&6; }
20489 # Extract the first word of "pdfimages", so it can be a program name with args.
20490 set dummy pdfimages; ac_word=$2
20491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20492 $as_echo_n "checking for $ac_word... " >&6; }
20493 if ${ac_cv_prog_PDFIMAGES+:} false; then :
20494 $as_echo_n "(cached) " >&6
20496 if test -n "$PDFIMAGES"; then
20497 ac_cv_prog_PDFIMAGES="$PDFIMAGES" # Let the user override the test.
20499 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20500 for as_dir in $PATH
20503 test -z "$as_dir" && as_dir=.
20504 for ac_exec_ext in '' $ac_executable_extensions; do
20505 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20506 ac_cv_prog_PDFIMAGES="found"
20507 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20514 test -z "$ac_cv_prog_PDFIMAGES" && ac_cv_prog_PDFIMAGES="missing"
20517 PDFIMAGES=$ac_cv_prog_PDFIMAGES
20518 if test -n "$PDFIMAGES"; then
20519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PDFIMAGES" >&5
20520 $as_echo "$PDFIMAGES" >&6; }
20522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20523 $as_echo "no" >&6; }
20527 if test "x$PDFINFO" = "xfound" -a "x$PDFFONTS" = "xfound" -a "x$PDFIMAGES" = "xfound"; then
20528 groff_have_pdftools=yes;
20530 groff_have_pdftools=no;
20534 # use a dummy substitution if no csh hack is necessary to avoid errors
20535 # with non-GNU sed programs
20536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for csh hash hack" >&5
20537 $as_echo_n "checking for csh hash hack... " >&6; }
20539 cat <<EOF >conftest.sh
20542 export PATH || exit 0
20546 chmod +x conftest.sh
20547 if echo ./conftest.sh | (csh >/dev/null 2>&1) >/dev/null 2>&1; then
20548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20549 $as_echo "yes" >&6; }
20550 SH_SCRIPT_SED_CMD='1s/.*/:/'
20552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20553 $as_echo "no" >&6; }
20554 SH_SCRIPT_SED_CMD='1s/a/a/'
20559 # checks for headers
20560 for ac_header in stddef.h stdlib.h unistd.h dirent.h limits.h sys/dir.h \
20561 string.h strings.h math.h sys/time.h direct.h process.h
20563 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
20564 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
20565 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
20566 cat >>confdefs.h <<_ACEOF
20567 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
20574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ISC 3.x or 4.x" >&5
20575 $as_echo_n "checking for ISC 3.x or 4.x... " >&6; }
20576 if grep '[34]\.' /usr/options/cb.name >/dev/null 2>&1
20578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20579 $as_echo "yes" >&6; }
20581 $as_echo "#define _SYSV3 1" >>confdefs.h
20584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20585 $as_echo "no" >&6; }
20587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -D_POSIX_SOURCE is necessary" >&5
20588 $as_echo_n "checking whether -D_POSIX_SOURCE is necessary... " >&6; }
20590 ac_cpp='$CXXCPP $CPPFLAGS'
20591 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20592 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20593 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20595 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20596 /* end confdefs.h. */
20601 extern "C" { void fileno(int); }
20613 if ac_fn_cxx_try_compile "$LINENO"; then :
20614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20615 $as_echo "yes" >&6; }
20617 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
20620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20621 $as_echo "no" >&6; }
20623 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20625 ac_cpp='$CPP $CPPFLAGS'
20626 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20627 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20628 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20631 # checks for header stuff
20633 ac_cpp='$CXXCPP $CPPFLAGS'
20634 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20635 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20636 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for return type of srand" >&5
20639 $as_echo_n "checking for return type of srand... " >&6; }
20640 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20641 /* end confdefs.h. */
20645 #include <stdlib.h>
20646 extern "C" { void srand(unsigned int); }
20658 if ac_fn_cxx_try_compile "$LINENO"; then :
20659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: void" >&5
20660 $as_echo "void" >&6; }
20662 $as_echo "#define RET_TYPE_SRAND_IS_VOID 1" >>confdefs.h
20665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: int" >&5
20666 $as_echo "int" >&6; }
20668 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20670 ac_cpp='$CPP $CPPFLAGS'
20671 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20672 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20673 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gettimeofday must be declared" >&5
20676 $as_echo_n "checking whether gettimeofday must be declared... " >&6; }
20678 ac_cpp='$CXXCPP $CPPFLAGS'
20679 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20680 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20681 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20683 if ${groff_cv_decl_needed_gettimeofday+:} false; then :
20684 $as_echo_n "(cached) " >&6
20686 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20687 /* end confdefs.h. */
20692 #ifdef HAVE_STRING_H
20693 #include <string.h>
20695 #ifdef HAVE_STRINGS_H
20696 #include <strings.h>
20698 #ifdef HAVE_STDLIB_H
20699 #include <stdlib.h>
20701 #ifdef HAVE_SYS_TIME_H
20702 #include <sys/time.h>
20704 #ifdef HAVE_UNISTD_H
20705 #include <unistd.h>
20717 #ifndef gettimeofday
20718 char *p = (char *) gettimeofday;
20727 if ac_fn_cxx_try_compile "$LINENO"; then :
20728 groff_cv_decl_needed_gettimeofday=no
20730 groff_cv_decl_needed_gettimeofday=yes
20732 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $groff_cv_decl_needed_gettimeofday" >&5
20736 $as_echo "$groff_cv_decl_needed_gettimeofday" >&6; }
20737 if test $groff_cv_decl_needed_gettimeofday = yes; then
20739 $as_echo "#define NEED_DECLARATION_GETTIMEOFDAY 1" >>confdefs.h
20743 ac_cpp='$CPP $CPPFLAGS'
20744 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20745 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20746 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether popen must be declared" >&5
20749 $as_echo_n "checking whether popen must be declared... " >&6; }
20751 ac_cpp='$CXXCPP $CPPFLAGS'
20752 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20753 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20754 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20756 if ${groff_cv_decl_needed_popen+:} false; then :
20757 $as_echo_n "(cached) " >&6
20759 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20760 /* end confdefs.h. */
20765 #ifdef HAVE_STRING_H
20766 #include <string.h>
20768 #ifdef HAVE_STRINGS_H
20769 #include <strings.h>
20771 #ifdef HAVE_STDLIB_H
20772 #include <stdlib.h>
20774 #ifdef HAVE_SYS_TIME_H
20775 #include <sys/time.h>
20777 #ifdef HAVE_UNISTD_H
20778 #include <unistd.h>
20791 char *p = (char *) popen;
20800 if ac_fn_cxx_try_compile "$LINENO"; then :
20801 groff_cv_decl_needed_popen=no
20803 groff_cv_decl_needed_popen=yes
20805 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $groff_cv_decl_needed_popen" >&5
20809 $as_echo "$groff_cv_decl_needed_popen" >&6; }
20810 if test $groff_cv_decl_needed_popen = yes; then
20812 $as_echo "#define NEED_DECLARATION_POPEN 1" >>confdefs.h
20816 ac_cpp='$CPP $CPPFLAGS'
20817 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20818 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20819 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pclose must be declared" >&5
20822 $as_echo_n "checking whether pclose must be declared... " >&6; }
20824 ac_cpp='$CXXCPP $CPPFLAGS'
20825 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20826 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20827 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20829 if ${groff_cv_decl_needed_pclose+:} false; then :
20830 $as_echo_n "(cached) " >&6
20832 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20833 /* end confdefs.h. */
20838 #ifdef HAVE_STRING_H
20839 #include <string.h>
20841 #ifdef HAVE_STRINGS_H
20842 #include <strings.h>
20844 #ifdef HAVE_STDLIB_H
20845 #include <stdlib.h>
20847 #ifdef HAVE_SYS_TIME_H
20848 #include <sys/time.h>
20850 #ifdef HAVE_UNISTD_H
20851 #include <unistd.h>
20864 char *p = (char *) pclose;
20873 if ac_fn_cxx_try_compile "$LINENO"; then :
20874 groff_cv_decl_needed_pclose=no
20876 groff_cv_decl_needed_pclose=yes
20878 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $groff_cv_decl_needed_pclose" >&5
20882 $as_echo "$groff_cv_decl_needed_pclose" >&6; }
20883 if test $groff_cv_decl_needed_pclose = yes; then
20885 $as_echo "#define NEED_DECLARATION_PCLOSE 1" >>confdefs.h
20889 ac_cpp='$CPP $CPPFLAGS'
20890 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20891 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20892 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether putenv must be declared" >&5
20895 $as_echo_n "checking whether putenv must be declared... " >&6; }
20897 ac_cpp='$CXXCPP $CPPFLAGS'
20898 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20899 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20900 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20902 if ${groff_cv_decl_needed_putenv+:} false; then :
20903 $as_echo_n "(cached) " >&6
20905 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20906 /* end confdefs.h. */
20911 #ifdef HAVE_STRING_H
20912 #include <string.h>
20914 #ifdef HAVE_STRINGS_H
20915 #include <strings.h>
20917 #ifdef HAVE_STDLIB_H
20918 #include <stdlib.h>
20920 #ifdef HAVE_SYS_TIME_H
20921 #include <sys/time.h>
20923 #ifdef HAVE_UNISTD_H
20924 #include <unistd.h>
20937 char *p = (char *) putenv;
20946 if ac_fn_cxx_try_compile "$LINENO"; then :
20947 groff_cv_decl_needed_putenv=no
20949 groff_cv_decl_needed_putenv=yes
20951 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $groff_cv_decl_needed_putenv" >&5
20955 $as_echo "$groff_cv_decl_needed_putenv" >&6; }
20956 if test $groff_cv_decl_needed_putenv = yes; then
20958 $as_echo "#define NEED_DECLARATION_PUTENV 1" >>confdefs.h
20962 ac_cpp='$CPP $CPPFLAGS'
20963 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20964 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20965 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether rand must be declared" >&5
20968 $as_echo_n "checking whether rand must be declared... " >&6; }
20970 ac_cpp='$CXXCPP $CPPFLAGS'
20971 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20972 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20973 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20975 if ${groff_cv_decl_needed_rand+:} false; then :
20976 $as_echo_n "(cached) " >&6
20978 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20979 /* end confdefs.h. */
20984 #ifdef HAVE_STRING_H
20985 #include <string.h>
20987 #ifdef HAVE_STRINGS_H
20988 #include <strings.h>
20990 #ifdef HAVE_STDLIB_H
20991 #include <stdlib.h>
20993 #ifdef HAVE_SYS_TIME_H
20994 #include <sys/time.h>
20996 #ifdef HAVE_UNISTD_H
20997 #include <unistd.h>
21010 char *p = (char *) rand;
21019 if ac_fn_cxx_try_compile "$LINENO"; then :
21020 groff_cv_decl_needed_rand=no
21022 groff_cv_decl_needed_rand=yes
21024 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $groff_cv_decl_needed_rand" >&5
21028 $as_echo "$groff_cv_decl_needed_rand" >&6; }
21029 if test $groff_cv_decl_needed_rand = yes; then
21031 $as_echo "#define NEED_DECLARATION_RAND 1" >>confdefs.h
21035 ac_cpp='$CPP $CPPFLAGS'
21036 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21037 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21038 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether srand must be declared" >&5
21041 $as_echo_n "checking whether srand must be declared... " >&6; }
21043 ac_cpp='$CXXCPP $CPPFLAGS'
21044 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21045 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21046 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21048 if ${groff_cv_decl_needed_srand+:} false; then :
21049 $as_echo_n "(cached) " >&6
21051 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21052 /* end confdefs.h. */
21057 #ifdef HAVE_STRING_H
21058 #include <string.h>
21060 #ifdef HAVE_STRINGS_H
21061 #include <strings.h>
21063 #ifdef HAVE_STDLIB_H
21064 #include <stdlib.h>
21066 #ifdef HAVE_SYS_TIME_H
21067 #include <sys/time.h>
21069 #ifdef HAVE_UNISTD_H
21070 #include <unistd.h>
21083 char *p = (char *) srand;
21092 if ac_fn_cxx_try_compile "$LINENO"; then :
21093 groff_cv_decl_needed_srand=no
21095 groff_cv_decl_needed_srand=yes
21097 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $groff_cv_decl_needed_srand" >&5
21101 $as_echo "$groff_cv_decl_needed_srand" >&6; }
21102 if test $groff_cv_decl_needed_srand = yes; then
21104 $as_echo "#define NEED_DECLARATION_SRAND 1" >>confdefs.h
21108 ac_cpp='$CPP $CPPFLAGS'
21109 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21110 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21111 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strcasecmp must be declared" >&5
21114 $as_echo_n "checking whether strcasecmp must be declared... " >&6; }
21116 ac_cpp='$CXXCPP $CPPFLAGS'
21117 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21118 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21119 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21121 if ${groff_cv_decl_needed_strcasecmp+:} false; then :
21122 $as_echo_n "(cached) " >&6
21124 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21125 /* end confdefs.h. */
21130 #ifdef HAVE_STRING_H
21131 #include <string.h>
21133 #ifdef HAVE_STRINGS_H
21134 #include <strings.h>
21136 #ifdef HAVE_STDLIB_H
21137 #include <stdlib.h>
21139 #ifdef HAVE_SYS_TIME_H
21140 #include <sys/time.h>
21142 #ifdef HAVE_UNISTD_H
21143 #include <unistd.h>
21156 char *p = (char *) strcasecmp;
21165 if ac_fn_cxx_try_compile "$LINENO"; then :
21166 groff_cv_decl_needed_strcasecmp=no
21168 groff_cv_decl_needed_strcasecmp=yes
21170 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $groff_cv_decl_needed_strcasecmp" >&5
21174 $as_echo "$groff_cv_decl_needed_strcasecmp" >&6; }
21175 if test $groff_cv_decl_needed_strcasecmp = yes; then
21177 $as_echo "#define NEED_DECLARATION_STRCASECMP 1" >>confdefs.h
21181 ac_cpp='$CPP $CPPFLAGS'
21182 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21183 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21184 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strncasecmp must be declared" >&5
21187 $as_echo_n "checking whether strncasecmp must be declared... " >&6; }
21189 ac_cpp='$CXXCPP $CPPFLAGS'
21190 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21191 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21192 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21194 if ${groff_cv_decl_needed_strncasecmp+:} false; then :
21195 $as_echo_n "(cached) " >&6
21197 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21198 /* end confdefs.h. */
21203 #ifdef HAVE_STRING_H
21204 #include <string.h>
21206 #ifdef HAVE_STRINGS_H
21207 #include <strings.h>
21209 #ifdef HAVE_STDLIB_H
21210 #include <stdlib.h>
21212 #ifdef HAVE_SYS_TIME_H
21213 #include <sys/time.h>
21215 #ifdef HAVE_UNISTD_H
21216 #include <unistd.h>
21228 #ifndef strncasecmp
21229 char *p = (char *) strncasecmp;
21238 if ac_fn_cxx_try_compile "$LINENO"; then :
21239 groff_cv_decl_needed_strncasecmp=no
21241 groff_cv_decl_needed_strncasecmp=yes
21243 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $groff_cv_decl_needed_strncasecmp" >&5
21247 $as_echo "$groff_cv_decl_needed_strncasecmp" >&6; }
21248 if test $groff_cv_decl_needed_strncasecmp = yes; then
21250 $as_echo "#define NEED_DECLARATION_STRNCASECMP 1" >>confdefs.h
21254 ac_cpp='$CPP $CPPFLAGS'
21255 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21256 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21257 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether vfprintf must be declared" >&5
21260 $as_echo_n "checking whether vfprintf must be declared... " >&6; }
21262 ac_cpp='$CXXCPP $CPPFLAGS'
21263 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21264 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21265 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21267 if ${groff_cv_decl_needed_vfprintf+:} false; then :
21268 $as_echo_n "(cached) " >&6
21270 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21271 /* end confdefs.h. */
21276 #ifdef HAVE_STRING_H
21277 #include <string.h>
21279 #ifdef HAVE_STRINGS_H
21280 #include <strings.h>
21282 #ifdef HAVE_STDLIB_H
21283 #include <stdlib.h>
21285 #ifdef HAVE_SYS_TIME_H
21286 #include <sys/time.h>
21288 #ifdef HAVE_UNISTD_H
21289 #include <unistd.h>
21302 char *p = (char *) vfprintf;
21311 if ac_fn_cxx_try_compile "$LINENO"; then :
21312 groff_cv_decl_needed_vfprintf=no
21314 groff_cv_decl_needed_vfprintf=yes
21316 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $groff_cv_decl_needed_vfprintf" >&5
21320 $as_echo "$groff_cv_decl_needed_vfprintf" >&6; }
21321 if test $groff_cv_decl_needed_vfprintf = yes; then
21323 $as_echo "#define NEED_DECLARATION_VFPRINTF 1" >>confdefs.h
21327 ac_cpp='$CPP $CPPFLAGS'
21328 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21329 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21330 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21333 ac_cpp='$CXXCPP $CPPFLAGS'
21334 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21335 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21336 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys_nerr in <errno.h>, <stdio.h>, or <stdlib.h>" >&5
21339 $as_echo_n "checking for sys_nerr in <errno.h>, <stdio.h>, or <stdlib.h>... " >&6; }
21340 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21341 /* end confdefs.h. */
21347 #include <stdlib.h>
21364 if ac_fn_cxx_try_compile "$LINENO"; then :
21365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21366 $as_echo "yes" >&6; }
21368 $as_echo "#define HAVE_SYS_NERR 1" >>confdefs.h
21371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21372 $as_echo "no" >&6; }
21374 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21376 ac_cpp='$CPP $CPPFLAGS'
21377 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21378 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21379 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys_errlist in <errno.h>, <stdio.h>, or <stdlib.h>" >&5
21382 $as_echo_n "checking for sys_errlist in <errno.h>, <stdio.h>, or <stdlib.h>... " >&6; }
21383 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21384 /* end confdefs.h. */
21390 #include <stdlib.h>
21399 k = (int)sys_errlist[0];
21407 if ac_fn_c_try_compile "$LINENO"; then :
21408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21409 $as_echo "yes" >&6; }
21411 $as_echo "#define HAVE_SYS_ERRLIST 1" >>confdefs.h
21414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21415 $as_echo "no" >&6; }
21417 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21419 ac_cpp='$CXXCPP $CPPFLAGS'
21420 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21421 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21422 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking C++ <osfcn.h>" >&5
21425 $as_echo_n "checking C++ <osfcn.h>... " >&6; }
21426 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21427 /* end confdefs.h. */
21448 if ac_fn_cxx_try_compile "$LINENO"; then :
21449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21450 $as_echo "yes" >&6; }
21452 $as_echo "#define HAVE_CC_OSFCN_H 1" >>confdefs.h
21455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21456 $as_echo "no" >&6; }
21458 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21460 ac_cpp='$CPP $CPPFLAGS'
21461 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21462 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21463 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21466 ac_cpp='$CXXCPP $CPPFLAGS'
21467 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21468 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21469 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking C++ <limits.h>" >&5
21472 $as_echo_n "checking C++ <limits.h>... " >&6; }
21473 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21474 /* end confdefs.h. */
21478 #include <limits.h>
21496 if ac_fn_cxx_try_compile "$LINENO"; then :
21497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21498 $as_echo "yes" >&6; }
21500 $as_echo "#define HAVE_CC_LIMITS_H 1" >>confdefs.h
21503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21504 $as_echo "no" >&6; }
21506 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21508 ac_cpp='$CPP $CPPFLAGS'
21509 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21510 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21511 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21514 ac_cpp='$CXXCPP $CPPFLAGS'
21515 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21516 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21517 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking C++ <inttypes.h>" >&5
21520 $as_echo_n "checking C++ <inttypes.h>... " >&6; }
21521 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21522 /* end confdefs.h. */
21526 #include <sys/types.h>
21527 #include <inttypes.h>
21535 uintmax_t i = (uintmax_t)-1;
21543 if ac_fn_cxx_try_compile "$LINENO"; then :
21544 groff_cv_header_inttypes_h=yes
21546 $as_echo "#define HAVE_CC_INTTYPES_H 1" >>confdefs.h
21549 groff_cv_header_inttypes_h=no
21551 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $groff_cv_header_inttypes_h" >&5
21553 $as_echo "$groff_cv_header_inttypes_h" >&6; }
21555 ac_cpp='$CPP $CPPFLAGS'
21556 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21557 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21558 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21561 # checks for typedefs
21563 ac_cpp='$CXXCPP $CPPFLAGS'
21564 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21565 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21566 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long" >&5
21569 $as_echo_n "checking for unsigned long long... " >&6; }
21570 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21571 /* end confdefs.h. */
21575 unsigned long long ull = 1;
21577 unsigned long long ullmax = (unsigned long long)-1;
21585 return ull << i | ull >> i | ullmax / ull | ullmax % ull;
21593 if ac_fn_cxx_try_link "$LINENO"; then :
21594 groff_cv_type_unsigned_long_long=yes
21596 groff_cv_type_unsigned_long_long=no
21598 rm -f core conftest.err conftest.$ac_objext \
21599 conftest$ac_exeext conftest.$ac_ext
21600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $groff_cv_type_unsigned_long_long" >&5
21601 $as_echo "$groff_cv_type_unsigned_long_long" >&6; }
21603 ac_cpp='$CPP $CPPFLAGS'
21604 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21605 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21606 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21609 if test $groff_cv_header_inttypes_h = no; then
21611 test $groff_cv_type_unsigned_long_long = yes \
21612 && ac_type='unsigned long long' \
21613 || ac_type='unsigned long'
21615 cat >>confdefs.h <<_ACEOF
21616 #define uintmax_t $ac_type
21621 ac_cpp='$CXXCPP $CPPFLAGS'
21622 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21623 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21624 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for declaration of time_t" >&5
21627 $as_echo_n "checking for declaration of time_t... " >&6; }
21628 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21629 /* end confdefs.h. */
21641 time_t t = time(0);
21642 struct tm *p = localtime(&t);
21650 if ac_fn_cxx_try_compile "$LINENO"; then :
21651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21652 $as_echo "yes" >&6; }
21654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21655 $as_echo "no" >&6; }
21657 $as_echo "#define LONG_FOR_TIME_T 1" >>confdefs.h
21660 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21662 ac_cpp='$CPP $CPPFLAGS'
21663 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21664 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21665 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for return type of signal handlers" >&5
21668 $as_echo_n "checking for return type of signal handlers... " >&6; }
21669 for groff_declaration in \
21670 'extern "C" void (*signal (int, void (*)(int)))(int);' \
21671 'extern "C" void (*signal (int, void (*)(int)) throw ())(int);' \
21672 'void (*signal ()) ();'
21674 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21675 /* end confdefs.h. */
21679 #include <sys/types.h>
21680 #include <signal.h>
21700 if ac_fn_c_try_compile "$LINENO"; then :
21705 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21708 if test -n "$groff_declaration"; then
21709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: void" >&5
21710 $as_echo "void" >&6; }
21712 $as_echo "#define RETSIGTYPE void" >>confdefs.h
21715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: int" >&5
21716 $as_echo "int" >&6; }
21718 $as_echo "#define RETSIGTYPE int" >>confdefs.h
21721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking struct exception" >&5
21722 $as_echo_n "checking struct exception... " >&6; }
21723 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21724 /* end confdefs.h. */
21736 struct exception e;
21744 if ac_fn_c_try_compile "$LINENO"; then :
21745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21746 $as_echo "yes" >&6; }
21748 $as_echo "#define HAVE_STRUCT_EXCEPTION 1" >>confdefs.h
21751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21752 $as_echo "no" >&6; }
21754 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
21758 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
21759 if ${ac_cv_c_bigendian+:} false; then :
21760 $as_echo_n "(cached) " >&6
21762 ac_cv_c_bigendian=unknown
21763 # See if we're dealing with a universal compiler.
21764 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21765 /* end confdefs.h. */
21766 #ifndef __APPLE_CC__
21767 not a universal capable compiler
21772 if ac_fn_c_try_compile "$LINENO"; then :
21774 # Check for potential -arch flags. It is not universal unless
21775 # there are at least two -arch flags with different values.
21778 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
21779 if test -n "$ac_prev"; then
21781 i?86 | x86_64 | ppc | ppc64)
21782 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
21785 ac_cv_c_bigendian=universal
21791 elif test "x$ac_word" = "x-arch"; then
21796 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21797 if test $ac_cv_c_bigendian = unknown; then
21798 # See if sys/param.h defines the BYTE_ORDER macro.
21799 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21800 /* end confdefs.h. */
21801 #include <sys/types.h>
21802 #include <sys/param.h>
21807 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
21808 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
21810 bogus endian macros
21817 if ac_fn_c_try_compile "$LINENO"; then :
21818 # It does; now see whether it defined to BIG_ENDIAN or not.
21819 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21820 /* end confdefs.h. */
21821 #include <sys/types.h>
21822 #include <sys/param.h>
21827 #if BYTE_ORDER != BIG_ENDIAN
21835 if ac_fn_c_try_compile "$LINENO"; then :
21836 ac_cv_c_bigendian=yes
21838 ac_cv_c_bigendian=no
21840 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21842 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21844 if test $ac_cv_c_bigendian = unknown; then
21845 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
21846 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21847 /* end confdefs.h. */
21848 #include <limits.h>
21853 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
21854 bogus endian macros
21861 if ac_fn_c_try_compile "$LINENO"; then :
21862 # It does; now see whether it defined to _BIG_ENDIAN or not.
21863 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21864 /* end confdefs.h. */
21865 #include <limits.h>
21870 #ifndef _BIG_ENDIAN
21878 if ac_fn_c_try_compile "$LINENO"; then :
21879 ac_cv_c_bigendian=yes
21881 ac_cv_c_bigendian=no
21883 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21885 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21887 if test $ac_cv_c_bigendian = unknown; then
21888 # Compile a test program.
21889 if test "$cross_compiling" = yes; then :
21890 # Try to guess by grepping values from an object file.
21891 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21892 /* end confdefs.h. */
21893 short int ascii_mm[] =
21894 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
21895 short int ascii_ii[] =
21896 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
21897 int use_ascii (int i) {
21898 return ascii_mm[i] + ascii_ii[i];
21900 short int ebcdic_ii[] =
21901 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
21902 short int ebcdic_mm[] =
21903 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
21904 int use_ebcdic (int i) {
21905 return ebcdic_mm[i] + ebcdic_ii[i];
21912 return use_ascii (foo) == use_ebcdic (foo);
21917 if ac_fn_c_try_compile "$LINENO"; then :
21918 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
21919 ac_cv_c_bigendian=yes
21921 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
21922 if test "$ac_cv_c_bigendian" = unknown; then
21923 ac_cv_c_bigendian=no
21925 # finding both strings is unlikely to happen, but who knows?
21926 ac_cv_c_bigendian=unknown
21930 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21932 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21933 /* end confdefs.h. */
21934 $ac_includes_default
21939 /* Are we little or big endian? From Harbison&Steele. */
21943 char c[sizeof (long int)];
21946 return u.c[sizeof (long int) - 1] == 1;
21952 if ac_fn_c_try_run "$LINENO"; then :
21953 ac_cv_c_bigendian=no
21955 ac_cv_c_bigendian=yes
21957 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21958 conftest.$ac_objext conftest.beam conftest.$ac_ext
21963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
21964 $as_echo "$ac_cv_c_bigendian" >&6; }
21965 case $ac_cv_c_bigendian in #(
21967 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
21973 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
21977 as_fn_error $? "unknown endianness
21978 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
21982 # checks for libraries
21983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lc" >&5
21984 $as_echo_n "checking for main in -lc... " >&6; }
21985 if ${ac_cv_lib_c_main+:} false; then :
21986 $as_echo_n "(cached) " >&6
21988 ac_check_lib_save_LIBS=$LIBS
21990 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21991 /* end confdefs.h. */
22002 if ac_fn_c_try_link "$LINENO"; then :
22003 ac_cv_lib_c_main=yes
22005 ac_cv_lib_c_main=no
22007 rm -f core conftest.err conftest.$ac_objext \
22008 conftest$ac_exeext conftest.$ac_ext
22009 LIBS=$ac_check_lib_save_LIBS
22011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_main" >&5
22012 $as_echo "$ac_cv_lib_c_main" >&6; }
22013 if test "x$ac_cv_lib_c_main" = xyes; then :
22018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sin in -lm" >&5
22019 $as_echo_n "checking for sin in -lm... " >&6; }
22020 if ${ac_cv_lib_m_sin+:} false; then :
22021 $as_echo_n "(cached) " >&6
22023 ac_check_lib_save_LIBS=$LIBS
22025 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22026 /* end confdefs.h. */
22028 /* Override any GCC internal prototype to avoid an error.
22029 Use char because int might match the return type of a GCC
22030 builtin and then its argument prototype would still apply. */
22043 if ac_fn_c_try_link "$LINENO"; then :
22044 ac_cv_lib_m_sin=yes
22048 rm -f core conftest.err conftest.$ac_objext \
22049 conftest$ac_exeext conftest.$ac_ext
22050 LIBS=$ac_check_lib_save_LIBS
22052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sin" >&5
22053 $as_echo "$ac_cv_lib_m_sin" >&6; }
22054 if test "x$ac_cv_lib_m_sin" = xyes; then :
22061 ac_cpp='$CXXCPP $CPPFLAGS'
22062 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22063 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22064 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22067 if test "X$prefix" = "XNONE"; then
22068 acl_final_prefix="$ac_default_prefix"
22070 acl_final_prefix="$prefix"
22072 if test "X$exec_prefix" = "XNONE"; then
22073 acl_final_exec_prefix='${prefix}'
22075 acl_final_exec_prefix="$exec_prefix"
22077 acl_save_prefix="$prefix"
22078 prefix="$acl_final_prefix"
22079 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
22080 prefix="$acl_save_prefix"
22084 # Check whether --with-gnu-ld was given.
22085 if test "${with_gnu_ld+set}" = set; then :
22086 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
22091 # Prepare PATH_SEPARATOR.
22092 # The user is always right.
22093 if test "${PATH_SEPARATOR+set}" != set; then
22094 # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
22095 # contains only /bin. Note that ksh looks also at the FPATH variable,
22096 # so we have to set that as well for the test.
22098 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
22099 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
22100 || PATH_SEPARATOR=';'
22105 if test "$GCC" = yes; then
22106 # Check if gcc -print-prog-name=ld gives a path.
22107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
22108 $as_echo_n "checking for ld used by $CC... " >&6; }
22111 # gcc leaves a trailing carriage return which upsets mingw
22112 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
22114 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
22117 # Accept absolute paths.
22119 re_direlt='/[^/][^/]*/\.\./'
22120 # Canonicalize the pathname of ld
22121 ac_prog=`echo "$ac_prog"| sed 's%\\\\%/%g'`
22122 while echo "$ac_prog" | grep "$re_direlt" > /dev/null 2>&1; do
22123 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
22125 test -z "$LD" && LD="$ac_prog"
22128 # If it fails, then pretend we aren't using GCC.
22132 # If it is relative, then search for the first ld in PATH.
22133 with_gnu_ld=unknown
22136 elif test "$with_gnu_ld" = yes; then
22137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
22138 $as_echo_n "checking for GNU ld... " >&6; }
22140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
22141 $as_echo_n "checking for non-GNU ld... " >&6; }
22143 if ${acl_cv_path_LD+:} false; then :
22144 $as_echo_n "(cached) " >&6
22146 if test -z "$LD"; then
22147 acl_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
22148 for ac_dir in $PATH; do
22149 IFS="$acl_save_ifs"
22150 test -z "$ac_dir" && ac_dir=.
22151 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
22152 acl_cv_path_LD="$ac_dir/$ac_prog"
22153 # Check to see if the program is GNU ld. I'd rather use --version,
22154 # but apparently some variants of GNU ld only accept -v.
22155 # Break only if it was the GNU/non-GNU ld that we prefer.
22156 case `"$acl_cv_path_LD" -v 2>&1 </dev/null` in
22157 *GNU* | *'with BFD'*)
22158 test "$with_gnu_ld" != no && break
22161 test "$with_gnu_ld" != yes && break
22166 IFS="$acl_save_ifs"
22168 acl_cv_path_LD="$LD" # Let the user override the test with a path.
22172 LD="$acl_cv_path_LD"
22173 if test -n "$LD"; then
22174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
22175 $as_echo "$LD" >&6; }
22177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22178 $as_echo "no" >&6; }
22180 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
22181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
22182 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
22183 if ${acl_cv_prog_gnu_ld+:} false; then :
22184 $as_echo_n "(cached) " >&6
22186 # I'd rather use --version here, but apparently some GNU lds only accept -v.
22187 case `$LD -v 2>&1 </dev/null` in
22188 *GNU* | *'with BFD'*)
22189 acl_cv_prog_gnu_ld=yes
22192 acl_cv_prog_gnu_ld=no
22196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
22197 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
22198 with_gnu_ld=$acl_cv_prog_gnu_ld
22203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
22204 $as_echo_n "checking for shared library run path origin... " >&6; }
22205 if ${acl_cv_rpath+:} false; then :
22206 $as_echo_n "(cached) " >&6
22209 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
22210 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
22212 rm -f ./conftest.sh
22216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
22217 $as_echo "$acl_cv_rpath" >&6; }
22219 acl_libext="$acl_cv_libext"
22220 acl_shlibext="$acl_cv_shlibext"
22221 acl_libname_spec="$acl_cv_libname_spec"
22222 acl_library_names_spec="$acl_cv_library_names_spec"
22223 acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
22224 acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
22225 acl_hardcode_direct="$acl_cv_hardcode_direct"
22226 acl_hardcode_minus_L="$acl_cv_hardcode_minus_L"
22227 # Check whether --enable-rpath was given.
22228 if test "${enable_rpath+set}" = set; then :
22229 enableval=$enable_rpath; :
22236 ac_cpp='$CXXCPP $CPPFLAGS'
22237 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22238 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22239 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
22241 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
22242 if test -z "$CXXCPP"; then
22243 if ${ac_cv_prog_CXXCPP+:} false; then :
22244 $as_echo_n "(cached) " >&6
22246 # Double quotes because CXXCPP needs to be expanded
22247 for CXXCPP in "$CXX -E" "/lib/cpp"
22249 ac_preproc_ok=false
22250 for ac_cxx_preproc_warn_flag in '' yes
22252 # Use a header file that comes with gcc, so configuring glibc
22253 # with a fresh cross-compiler works.
22254 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22255 # <limits.h> exists even on freestanding compilers.
22256 # On the NeXT, cc -E runs the code through the compiler's parser,
22257 # not just through cpp. "Syntax error" is here to catch this case.
22258 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22259 /* end confdefs.h. */
22261 # include <limits.h>
22263 # include <assert.h>
22267 if ac_fn_cxx_try_cpp "$LINENO"; then :
22270 # Broken: fails on valid input.
22273 rm -f conftest.err conftest.i conftest.$ac_ext
22275 # OK, works on sane cases. Now check whether nonexistent headers
22276 # can be detected and how.
22277 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22278 /* end confdefs.h. */
22279 #include <ac_nonexistent.h>
22281 if ac_fn_cxx_try_cpp "$LINENO"; then :
22282 # Broken: success on invalid input.
22285 # Passes both tests.
22289 rm -f conftest.err conftest.i conftest.$ac_ext
22292 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
22293 rm -f conftest.i conftest.err conftest.$ac_ext
22294 if $ac_preproc_ok; then :
22299 ac_cv_prog_CXXCPP=$CXXCPP
22302 CXXCPP=$ac_cv_prog_CXXCPP
22304 ac_cv_prog_CXXCPP=$CXXCPP
22306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
22307 $as_echo "$CXXCPP" >&6; }
22308 ac_preproc_ok=false
22309 for ac_cxx_preproc_warn_flag in '' yes
22311 # Use a header file that comes with gcc, so configuring glibc
22312 # with a fresh cross-compiler works.
22313 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22314 # <limits.h> exists even on freestanding compilers.
22315 # On the NeXT, cc -E runs the code through the compiler's parser,
22316 # not just through cpp. "Syntax error" is here to catch this case.
22317 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22318 /* end confdefs.h. */
22320 # include <limits.h>
22322 # include <assert.h>
22326 if ac_fn_cxx_try_cpp "$LINENO"; then :
22329 # Broken: fails on valid input.
22332 rm -f conftest.err conftest.i conftest.$ac_ext
22334 # OK, works on sane cases. Now check whether nonexistent headers
22335 # can be detected and how.
22336 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22337 /* end confdefs.h. */
22338 #include <ac_nonexistent.h>
22340 if ac_fn_cxx_try_cpp "$LINENO"; then :
22341 # Broken: success on invalid input.
22344 # Passes both tests.
22348 rm -f conftest.err conftest.i conftest.$ac_ext
22351 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
22352 rm -f conftest.i conftest.err conftest.$ac_ext
22353 if $ac_preproc_ok; then :
22356 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
22357 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22358 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
22359 See \`config.log' for more details" "$LINENO" 5; }
22363 ac_cpp='$CXXCPP $CPPFLAGS'
22364 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22365 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22366 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit host" >&5
22376 $as_echo_n "checking for 64-bit host... " >&6; }
22377 if ${gl_cv_solaris_64bit+:} false; then :
22378 $as_echo_n "(cached) " >&6
22380 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22381 /* end confdefs.h. */
22388 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22389 $EGREP "sixtyfour bits" >/dev/null 2>&1; then :
22390 gl_cv_solaris_64bit=yes
22392 gl_cv_solaris_64bit=no
22398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_solaris_64bit" >&5
22399 $as_echo "$gl_cv_solaris_64bit" >&6; }
22400 if test $gl_cv_solaris_64bit = yes; then
22401 acl_libdirstem=lib/64
22402 case "$host_cpu" in
22403 sparc*) acl_libdirstem2=lib/sparcv9 ;;
22404 i*86 | x86_64) acl_libdirstem2=lib/amd64 ;;
22409 searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
22410 if test -n "$searchpath"; then
22411 acl_save_IFS="${IFS= }"; IFS=":"
22412 for searchdir in $searchpath; do
22413 if test -d "$searchdir"; then
22414 case "$searchdir" in
22415 */lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
22417 # Better ignore directories of this form. They are misleading.
22419 *) searchdir=`cd "$searchdir" && pwd`
22420 case "$searchdir" in
22421 */lib64 ) acl_libdirstem=lib64 ;;
22426 IFS="$acl_save_IFS"
22430 test -n "$acl_libdirstem2" || acl_libdirstem2="$acl_libdirstem"
22445 acl_save_prefix="$prefix"
22446 prefix="$acl_final_prefix"
22447 acl_save_exec_prefix="$exec_prefix"
22448 exec_prefix="$acl_final_exec_prefix"
22450 eval additional_includedir=\"$includedir\"
22451 eval additional_libdir=\"$libdir\"
22453 exec_prefix="$acl_save_exec_prefix"
22454 prefix="$acl_save_prefix"
22457 # Check whether --with-libiconv-prefix was given.
22458 if test "${with_libiconv_prefix+set}" = set; then :
22459 withval=$with_libiconv_prefix;
22460 if test "X$withval" = "Xno"; then
22463 if test "X$withval" = "X"; then
22465 acl_save_prefix="$prefix"
22466 prefix="$acl_final_prefix"
22467 acl_save_exec_prefix="$exec_prefix"
22468 exec_prefix="$acl_final_exec_prefix"
22470 eval additional_includedir=\"$includedir\"
22471 eval additional_libdir=\"$libdir\"
22473 exec_prefix="$acl_save_exec_prefix"
22474 prefix="$acl_save_prefix"
22477 additional_includedir="$withval/include"
22478 additional_libdir="$withval/$acl_libdirstem"
22479 if test "$acl_libdirstem2" != "$acl_libdirstem" \
22480 && ! test -d "$withval/$acl_libdirstem"; then
22481 additional_libdir="$withval/$acl_libdirstem2"
22495 names_already_handled=
22496 names_next_round='iconv '
22497 while test -n "$names_next_round"; do
22498 names_this_round="$names_next_round"
22500 for name in $names_this_round; do
22502 for n in $names_already_handled; do
22503 if test "$n" = "$name"; then
22504 already_handled=yes
22508 if test -z "$already_handled"; then
22509 names_already_handled="$names_already_handled $name"
22510 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'`
22511 eval value=\"\$HAVE_LIB$uppername\"
22512 if test -n "$value"; then
22513 if test "$value" = yes; then
22514 eval value=\"\$LIB$uppername\"
22515 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
22516 eval value=\"\$LTLIB$uppername\"
22517 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
22526 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
22527 if test -n "$acl_shlibext"; then
22528 shrext=".$acl_shlibext" # typically: shrext=.so
22532 if test $use_additional = yes; then
22533 dir="$additional_libdir"
22534 if test -n "$acl_shlibext"; then
22535 if test -f "$dir/$libname$shrext"; then
22537 found_so="$dir/$libname$shrext"
22539 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
22540 ver=`(cd "$dir" && \
22541 for f in "$libname$shrext".*; do echo "$f"; done \
22542 | sed -e "s,^$libname$shrext\\\\.,," \
22543 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
22544 | sed 1q ) 2>/dev/null`
22545 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
22547 found_so="$dir/$libname$shrext.$ver"
22550 eval library_names=\"$acl_library_names_spec\"
22551 for f in $library_names; do
22552 if test -f "$dir/$f"; then
22561 if test "X$found_dir" = "X"; then
22562 if test -f "$dir/$libname.$acl_libext"; then
22564 found_a="$dir/$libname.$acl_libext"
22567 if test "X$found_dir" != "X"; then
22568 if test -f "$dir/$libname.la"; then
22569 found_la="$dir/$libname.la"
22573 if test "X$found_dir" = "X"; then
22574 for x in $LDFLAGS $LTLIBICONV; do
22576 acl_save_prefix="$prefix"
22577 prefix="$acl_final_prefix"
22578 acl_save_exec_prefix="$exec_prefix"
22579 exec_prefix="$acl_final_exec_prefix"
22581 exec_prefix="$acl_save_exec_prefix"
22582 prefix="$acl_save_prefix"
22586 dir=`echo "X$x" | sed -e 's/^X-L//'`
22587 if test -n "$acl_shlibext"; then
22588 if test -f "$dir/$libname$shrext"; then
22590 found_so="$dir/$libname$shrext"
22592 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
22593 ver=`(cd "$dir" && \
22594 for f in "$libname$shrext".*; do echo "$f"; done \
22595 | sed -e "s,^$libname$shrext\\\\.,," \
22596 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
22597 | sed 1q ) 2>/dev/null`
22598 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
22600 found_so="$dir/$libname$shrext.$ver"
22603 eval library_names=\"$acl_library_names_spec\"
22604 for f in $library_names; do
22605 if test -f "$dir/$f"; then
22614 if test "X$found_dir" = "X"; then
22615 if test -f "$dir/$libname.$acl_libext"; then
22617 found_a="$dir/$libname.$acl_libext"
22620 if test "X$found_dir" != "X"; then
22621 if test -f "$dir/$libname.la"; then
22622 found_la="$dir/$libname.la"
22627 if test "X$found_dir" != "X"; then
22632 if test "X$found_dir" != "X"; then
22633 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
22634 if test "X$found_so" != "X"; then
22635 if test "$enable_rpath" = no \
22636 || test "X$found_dir" = "X/usr/$acl_libdirstem" \
22637 || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
22638 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
22641 for x in $ltrpathdirs; do
22642 if test "X$x" = "X$found_dir"; then
22647 if test -z "$haveit"; then
22648 ltrpathdirs="$ltrpathdirs $found_dir"
22650 if test "$acl_hardcode_direct" = yes; then
22651 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
22653 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
22654 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
22656 for x in $rpathdirs; do
22657 if test "X$x" = "X$found_dir"; then
22662 if test -z "$haveit"; then
22663 rpathdirs="$rpathdirs $found_dir"
22667 for x in $LDFLAGS $LIBICONV; do
22669 acl_save_prefix="$prefix"
22670 prefix="$acl_final_prefix"
22671 acl_save_exec_prefix="$exec_prefix"
22672 exec_prefix="$acl_final_exec_prefix"
22674 exec_prefix="$acl_save_exec_prefix"
22675 prefix="$acl_save_prefix"
22677 if test "X$x" = "X-L$found_dir"; then
22682 if test -z "$haveit"; then
22683 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
22685 if test "$acl_hardcode_minus_L" != no; then
22686 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
22688 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
22694 if test "X$found_a" != "X"; then
22695 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
22697 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
22700 additional_includedir=
22701 case "$found_dir" in
22702 */$acl_libdirstem | */$acl_libdirstem/)
22703 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
22704 if test "$name" = 'iconv'; then
22705 LIBICONV_PREFIX="$basedir"
22707 additional_includedir="$basedir/include"
22709 */$acl_libdirstem2 | */$acl_libdirstem2/)
22710 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
22711 if test "$name" = 'iconv'; then
22712 LIBICONV_PREFIX="$basedir"
22714 additional_includedir="$basedir/include"
22717 if test "X$additional_includedir" != "X"; then
22718 if test "X$additional_includedir" != "X/usr/include"; then
22720 if test "X$additional_includedir" = "X/usr/local/include"; then
22721 if test -n "$GCC"; then
22723 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
22727 if test -z "$haveit"; then
22728 for x in $CPPFLAGS $INCICONV; do
22730 acl_save_prefix="$prefix"
22731 prefix="$acl_final_prefix"
22732 acl_save_exec_prefix="$exec_prefix"
22733 exec_prefix="$acl_final_exec_prefix"
22735 exec_prefix="$acl_save_exec_prefix"
22736 prefix="$acl_save_prefix"
22738 if test "X$x" = "X-I$additional_includedir"; then
22743 if test -z "$haveit"; then
22744 if test -d "$additional_includedir"; then
22745 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
22751 if test -n "$found_la"; then
22752 save_libdir="$libdir"
22753 case "$found_la" in
22754 */* | *\\*) . "$found_la" ;;
22755 *) . "./$found_la" ;;
22757 libdir="$save_libdir"
22758 for dep in $dependency_libs; do
22761 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
22762 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
22763 && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
22765 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
22766 || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
22767 if test -n "$GCC"; then
22769 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
22773 if test -z "$haveit"; then
22775 for x in $LDFLAGS $LIBICONV; do
22777 acl_save_prefix="$prefix"
22778 prefix="$acl_final_prefix"
22779 acl_save_exec_prefix="$exec_prefix"
22780 exec_prefix="$acl_final_exec_prefix"
22782 exec_prefix="$acl_save_exec_prefix"
22783 prefix="$acl_save_prefix"
22785 if test "X$x" = "X-L$additional_libdir"; then
22790 if test -z "$haveit"; then
22791 if test -d "$additional_libdir"; then
22792 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
22796 for x in $LDFLAGS $LTLIBICONV; do
22798 acl_save_prefix="$prefix"
22799 prefix="$acl_final_prefix"
22800 acl_save_exec_prefix="$exec_prefix"
22801 exec_prefix="$acl_final_exec_prefix"
22803 exec_prefix="$acl_save_exec_prefix"
22804 prefix="$acl_save_prefix"
22806 if test "X$x" = "X-L$additional_libdir"; then
22811 if test -z "$haveit"; then
22812 if test -d "$additional_libdir"; then
22813 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
22820 dir=`echo "X$dep" | sed -e 's/^X-R//'`
22821 if test "$enable_rpath" != no; then
22823 for x in $rpathdirs; do
22824 if test "X$x" = "X$dir"; then
22829 if test -z "$haveit"; then
22830 rpathdirs="$rpathdirs $dir"
22833 for x in $ltrpathdirs; do
22834 if test "X$x" = "X$dir"; then
22839 if test -z "$haveit"; then
22840 ltrpathdirs="$ltrpathdirs $dir"
22845 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
22848 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
22851 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
22852 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
22858 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
22859 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
22865 if test "X$rpathdirs" != "X"; then
22866 if test -n "$acl_hardcode_libdir_separator"; then
22868 for found_dir in $rpathdirs; do
22869 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
22871 acl_save_libdir="$libdir"
22873 eval flag=\"$acl_hardcode_libdir_flag_spec\"
22874 libdir="$acl_save_libdir"
22875 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
22877 for found_dir in $rpathdirs; do
22878 acl_save_libdir="$libdir"
22879 libdir="$found_dir"
22880 eval flag=\"$acl_hardcode_libdir_flag_spec\"
22881 libdir="$acl_save_libdir"
22882 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
22886 if test "X$ltrpathdirs" != "X"; then
22887 for found_dir in $ltrpathdirs; do
22888 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
22903 am_save_CPPFLAGS="$CPPFLAGS"
22905 for element in $INCICONV; do
22907 for x in $CPPFLAGS; do
22909 acl_save_prefix="$prefix"
22910 prefix="$acl_final_prefix"
22911 acl_save_exec_prefix="$exec_prefix"
22912 exec_prefix="$acl_final_exec_prefix"
22914 exec_prefix="$acl_save_exec_prefix"
22915 prefix="$acl_save_prefix"
22917 if test "X$x" = "X$element"; then
22922 if test -z "$haveit"; then
22923 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
22928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
22929 $as_echo_n "checking for iconv... " >&6; }
22930 if ${am_cv_func_iconv+:} false; then :
22931 $as_echo_n "(cached) " >&6
22934 am_cv_func_iconv="no, consider installing GNU libiconv"
22936 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22937 /* end confdefs.h. */
22939 #include <stdlib.h>
22945 iconv_t cd = iconv_open("","");
22946 iconv(cd,NULL,NULL,NULL,NULL);
22952 if ac_fn_cxx_try_link "$LINENO"; then :
22953 am_cv_func_iconv=yes
22955 rm -f core conftest.err conftest.$ac_objext \
22956 conftest$ac_exeext conftest.$ac_ext
22957 if test "$am_cv_func_iconv" != yes; then
22958 am_save_LIBS="$LIBS"
22959 LIBS="$LIBS $LIBICONV"
22960 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22961 /* end confdefs.h. */
22963 #include <stdlib.h>
22969 iconv_t cd = iconv_open("","");
22970 iconv(cd,NULL,NULL,NULL,NULL);
22976 if ac_fn_cxx_try_link "$LINENO"; then :
22977 am_cv_lib_iconv=yes
22978 am_cv_func_iconv=yes
22980 rm -f core conftest.err conftest.$ac_objext \
22981 conftest$ac_exeext conftest.$ac_ext
22982 LIBS="$am_save_LIBS"
22986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
22987 $as_echo "$am_cv_func_iconv" >&6; }
22988 if test "$am_cv_func_iconv" = yes; then
22989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5
22990 $as_echo_n "checking for working iconv... " >&6; }
22991 if ${am_cv_func_iconv_works+:} false; then :
22992 $as_echo_n "(cached) " >&6
22995 am_save_LIBS="$LIBS"
22996 if test $am_cv_lib_iconv = yes; then
22997 LIBS="$LIBS $LIBICONV"
22999 am_cv_func_iconv_works=no
23000 for ac_iconv_const in '' 'const'; do
23001 if test "$cross_compiling" = yes; then :
23003 aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
23004 *) am_cv_func_iconv_works="guessing yes" ;;
23007 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23008 /* end confdefs.h. */
23011 #include <string.h>
23013 #ifndef ICONV_CONST
23014 # define ICONV_CONST $ac_iconv_const
23021 /* Test against AIX 5.1 bug: Failures are not distinguishable from successful
23024 iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
23025 if (cd_utf8_to_88591 != (iconv_t)(-1))
23027 static ICONV_CONST char input[] = "\342\202\254"; /* EURO SIGN */
23029 ICONV_CONST char *inptr = input;
23030 size_t inbytesleft = strlen (input);
23031 char *outptr = buf;
23032 size_t outbytesleft = sizeof (buf);
23033 size_t res = iconv (cd_utf8_to_88591,
23034 &inptr, &inbytesleft,
23035 &outptr, &outbytesleft);
23038 iconv_close (cd_utf8_to_88591);
23041 /* Test against Solaris 10 bug: Failures are not distinguishable from
23042 successful returns. */
23044 iconv_t cd_ascii_to_88591 = iconv_open ("ISO8859-1", "646");
23045 if (cd_ascii_to_88591 != (iconv_t)(-1))
23047 static ICONV_CONST char input[] = "\263";
23049 ICONV_CONST char *inptr = input;
23050 size_t inbytesleft = strlen (input);
23051 char *outptr = buf;
23052 size_t outbytesleft = sizeof (buf);
23053 size_t res = iconv (cd_ascii_to_88591,
23054 &inptr, &inbytesleft,
23055 &outptr, &outbytesleft);
23058 iconv_close (cd_ascii_to_88591);
23061 /* Test against AIX 6.1..7.1 bug: Buffer overrun. */
23063 iconv_t cd_88591_to_utf8 = iconv_open ("UTF-8", "ISO-8859-1");
23064 if (cd_88591_to_utf8 != (iconv_t)(-1))
23066 static ICONV_CONST char input[] = "\304";
23067 static char buf[2] = { (char)0xDE, (char)0xAD };
23068 ICONV_CONST char *inptr = input;
23069 size_t inbytesleft = 1;
23070 char *outptr = buf;
23071 size_t outbytesleft = 1;
23072 size_t res = iconv (cd_88591_to_utf8,
23073 &inptr, &inbytesleft,
23074 &outptr, &outbytesleft);
23075 if (res != (size_t)(-1) || outptr - buf > 1 || buf[1] != (char)0xAD)
23077 iconv_close (cd_88591_to_utf8);
23080 #if 0 /* This bug could be worked around by the caller. */
23081 /* Test against HP-UX 11.11 bug: Positive return value instead of 0. */
23083 iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
23084 if (cd_88591_to_utf8 != (iconv_t)(-1))
23086 static ICONV_CONST char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
23088 ICONV_CONST char *inptr = input;
23089 size_t inbytesleft = strlen (input);
23090 char *outptr = buf;
23091 size_t outbytesleft = sizeof (buf);
23092 size_t res = iconv (cd_88591_to_utf8,
23093 &inptr, &inbytesleft,
23094 &outptr, &outbytesleft);
23097 iconv_close (cd_88591_to_utf8);
23101 /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
23103 if (/* Try standardized names. */
23104 iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1)
23105 /* Try IRIX, OSF/1 names. */
23106 && iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1)
23107 /* Try AIX names. */
23108 && iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1)
23109 /* Try HP-UX names. */
23110 && iconv_open ("utf8", "eucJP") == (iconv_t)(-1))
23118 if ac_fn_cxx_try_run "$LINENO"; then :
23119 am_cv_func_iconv_works=yes
23121 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23122 conftest.$ac_objext conftest.beam conftest.$ac_ext
23125 test "$am_cv_func_iconv_works" = no || break
23127 LIBS="$am_save_LIBS"
23130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5
23131 $as_echo "$am_cv_func_iconv_works" >&6; }
23132 case "$am_cv_func_iconv_works" in
23133 *no) am_func_iconv=no am_cv_lib_iconv=no ;;
23134 *) am_func_iconv=yes ;;
23137 am_func_iconv=no am_cv_lib_iconv=no
23139 if test "$am_func_iconv" = yes; then
23141 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
23144 if test "$am_cv_lib_iconv" = yes; then
23145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
23146 $as_echo_n "checking how to link with libiconv... " >&6; }
23147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
23148 $as_echo "$LIBICONV" >&6; }
23150 CPPFLAGS="$am_save_CPPFLAGS"
23157 if test "$am_cv_func_iconv" = yes; then
23158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
23159 $as_echo_n "checking for iconv declaration... " >&6; }
23160 if ${am_cv_proto_iconv+:} false; then :
23161 $as_echo_n "(cached) " >&6
23164 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23165 /* end confdefs.h. */
23167 #include <stdlib.h>
23173 #if defined(__STDC__) || defined(_MSC_VER) || defined(__cplusplus)
23174 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
23187 if ac_fn_cxx_try_compile "$LINENO"; then :
23188 am_cv_proto_iconv_arg1=""
23190 am_cv_proto_iconv_arg1="const"
23192 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23193 am_cv_proto_iconv="extern size_t iconv (iconv_t cd, $am_cv_proto_iconv_arg1 char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);"
23196 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
23197 { $as_echo "$as_me:${as_lineno-$LINENO}: result:
23198 $am_cv_proto_iconv" >&5
23200 $am_cv_proto_iconv" >&6; }
23202 cat >>confdefs.h <<_ACEOF
23203 #define ICONV_CONST $am_cv_proto_iconv_arg1
23210 ac_cpp='$CPP $CPPFLAGS'
23211 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23212 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23213 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23220 # checks for functions
23226 for ac_func in getpagesize
23228 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
23229 if test "x$ac_cv_func_getpagesize" = xyes; then :
23230 cat >>confdefs.h <<_ACEOF
23231 #define HAVE_GETPAGESIZE 1
23237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
23238 $as_echo_n "checking for working mmap... " >&6; }
23239 if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
23240 $as_echo_n "(cached) " >&6
23242 if test "$cross_compiling" = yes; then :
23243 ac_cv_func_mmap_fixed_mapped=no
23245 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23246 /* end confdefs.h. */
23247 $ac_includes_default
23248 /* malloc might have been renamed as rpl_malloc. */
23251 /* Thanks to Mike Haertel and Jim Avera for this test.
23252 Here is a matrix of mmap possibilities:
23253 mmap private not fixed
23254 mmap private fixed at somewhere currently unmapped
23255 mmap private fixed at somewhere already mapped
23256 mmap shared not fixed
23257 mmap shared fixed at somewhere currently unmapped
23258 mmap shared fixed at somewhere already mapped
23259 For private mappings, we should verify that changes cannot be read()
23260 back from the file, nor mmap's back from the file at a different
23261 address. (There have been systems where private was not correctly
23262 implemented like the infamous i386 svr4.0, and systems where the
23263 VM page cache was not coherent with the file system buffer cache
23264 like early versions of FreeBSD and possibly contemporary NetBSD.)
23265 For shared mappings, we should conversely verify that changes get
23266 propagated back to all the places they're supposed to be.
23268 Grep wants private fixed already mapped.
23269 The main things grep needs to know about mmap are:
23270 * does it exist and is it safe to write into the mmap'd area
23271 * how to use it (BSD variants) */
23274 #include <sys/mman.h>
23276 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
23280 /* This mess was copied from the GNU getpagesize.h. */
23281 #ifndef HAVE_GETPAGESIZE
23282 # ifdef _SC_PAGESIZE
23283 # define getpagesize() sysconf(_SC_PAGESIZE)
23284 # else /* no _SC_PAGESIZE */
23285 # ifdef HAVE_SYS_PARAM_H
23286 # include <sys/param.h>
23287 # ifdef EXEC_PAGESIZE
23288 # define getpagesize() EXEC_PAGESIZE
23289 # else /* no EXEC_PAGESIZE */
23291 # define getpagesize() NBPG * CLSIZE
23294 # endif /* no CLSIZE */
23295 # else /* no NBPG */
23297 # define getpagesize() NBPC
23298 # else /* no NBPC */
23300 # define getpagesize() PAGESIZE
23301 # endif /* PAGESIZE */
23302 # endif /* no NBPC */
23303 # endif /* no NBPG */
23304 # endif /* no EXEC_PAGESIZE */
23305 # else /* no HAVE_SYS_PARAM_H */
23306 # define getpagesize() 8192 /* punt totally */
23307 # endif /* no HAVE_SYS_PARAM_H */
23308 # endif /* no _SC_PAGESIZE */
23310 #endif /* no HAVE_GETPAGESIZE */
23315 char *data, *data2, *data3;
23316 const char *cdata2;
23320 pagesize = getpagesize ();
23322 /* First, make a file with some known garbage in it. */
23323 data = (char *) malloc (pagesize);
23326 for (i = 0; i < pagesize; ++i)
23327 *(data + i) = rand ();
23329 fd = creat ("conftest.mmap", 0600);
23332 if (write (fd, data, pagesize) != pagesize)
23336 /* Next, check that the tail of a page is zero-filled. File must have
23337 non-zero length, otherwise we risk SIGBUS for entire page. */
23338 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
23342 if (write (fd2, cdata2, 1) != 1)
23344 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
23345 if (data2 == MAP_FAILED)
23347 for (i = 0; i < pagesize; ++i)
23351 if (munmap (data2, pagesize))
23354 /* Next, try to mmap the file at a fixed address which already has
23355 something else allocated at it. If we can, also make sure that
23356 we see the same garbage. */
23357 fd = open ("conftest.mmap", O_RDWR);
23360 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
23361 MAP_PRIVATE | MAP_FIXED, fd, 0L))
23363 for (i = 0; i < pagesize; ++i)
23364 if (*(data + i) != *(data2 + i))
23367 /* Finally, make sure that changes to the mapped area do not
23368 percolate back to the file as seen by read(). (This is a bug on
23369 some variants of i386 svr4.0.) */
23370 for (i = 0; i < pagesize; ++i)
23371 *(data2 + i) = *(data2 + i) + 1;
23372 data3 = (char *) malloc (pagesize);
23375 if (read (fd, data3, pagesize) != pagesize)
23377 for (i = 0; i < pagesize; ++i)
23378 if (*(data + i) != *(data3 + i))
23384 if ac_fn_c_try_run "$LINENO"; then :
23385 ac_cv_func_mmap_fixed_mapped=yes
23387 ac_cv_func_mmap_fixed_mapped=no
23389 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23390 conftest.$ac_objext conftest.beam conftest.$ac_ext
23394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
23395 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
23396 if test $ac_cv_func_mmap_fixed_mapped = yes; then
23398 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
23401 rm -f conftest.mmap conftest.txt
23404 LIBS="$LIBS $LIBC $LIBM"
23405 ac_fn_c_check_func "$LINENO" "fmod" "ac_cv_func_fmod"
23406 if test "x$ac_cv_func_fmod" = xyes; then :
23407 $as_echo "#define HAVE_FMOD 1" >>confdefs.h
23410 case " $LIBOBJS " in
23411 *" fmod.$ac_objext "* ) ;;
23412 *) LIBOBJS="$LIBOBJS fmod.$ac_objext"
23418 ac_fn_c_check_func "$LINENO" "getcwd" "ac_cv_func_getcwd"
23419 if test "x$ac_cv_func_getcwd" = xyes; then :
23420 $as_echo "#define HAVE_GETCWD 1" >>confdefs.h
23423 case " $LIBOBJS " in
23424 *" getcwd.$ac_objext "* ) ;;
23425 *) LIBOBJS="$LIBOBJS getcwd.$ac_objext"
23431 ac_fn_c_check_func "$LINENO" "putenv" "ac_cv_func_putenv"
23432 if test "x$ac_cv_func_putenv" = xyes; then :
23433 $as_echo "#define HAVE_PUTENV 1" >>confdefs.h
23436 case " $LIBOBJS " in
23437 *" putenv.$ac_objext "* ) ;;
23438 *) LIBOBJS="$LIBOBJS putenv.$ac_objext"
23444 ac_fn_c_check_func "$LINENO" "strcasecmp" "ac_cv_func_strcasecmp"
23445 if test "x$ac_cv_func_strcasecmp" = xyes; then :
23446 $as_echo "#define HAVE_STRCASECMP 1" >>confdefs.h
23449 case " $LIBOBJS " in
23450 *" strcasecmp.$ac_objext "* ) ;;
23451 *) LIBOBJS="$LIBOBJS strcasecmp.$ac_objext"
23457 ac_fn_c_check_func "$LINENO" "strerror" "ac_cv_func_strerror"
23458 if test "x$ac_cv_func_strerror" = xyes; then :
23459 $as_echo "#define HAVE_STRERROR 1" >>confdefs.h
23462 case " $LIBOBJS " in
23463 *" strerror.$ac_objext "* ) ;;
23464 *) LIBOBJS="$LIBOBJS strerror.$ac_objext"
23470 ac_fn_c_check_func "$LINENO" "strncasecmp" "ac_cv_func_strncasecmp"
23471 if test "x$ac_cv_func_strncasecmp" = xyes; then :
23472 $as_echo "#define HAVE_STRNCASECMP 1" >>confdefs.h
23475 case " $LIBOBJS " in
23476 *" strncasecmp.$ac_objext "* ) ;;
23477 *) LIBOBJS="$LIBOBJS strncasecmp.$ac_objext"
23483 ac_fn_c_check_func "$LINENO" "strtol" "ac_cv_func_strtol"
23484 if test "x$ac_cv_func_strtol" = xyes; then :
23485 $as_echo "#define HAVE_STRTOL 1" >>confdefs.h
23488 case " $LIBOBJS " in
23489 *" strtol.$ac_objext "* ) ;;
23490 *) LIBOBJS="$LIBOBJS strtol.$ac_objext"
23498 for ac_func in gettimeofday isatty kill rename setlocale strsep
23500 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
23501 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
23502 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
23503 cat >>confdefs.h <<_ACEOF
23504 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
23510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mkstemp" >&5
23511 $as_echo_n "checking for mkstemp... " >&6; }
23513 ac_cpp='$CXXCPP $CPPFLAGS'
23514 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23515 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23516 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23519 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23520 /* end confdefs.h. */
23524 #include <stdlib.h>
23525 #include <unistd.h>
23542 if ac_fn_cxx_try_link "$LINENO"; then :
23543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23544 $as_echo "yes" >&6; }
23546 $as_echo "#define HAVE_MKSTEMP 1" >>confdefs.h
23549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23550 $as_echo "no" >&6; }
23551 case " $LIBOBJS " in
23552 *" mkstemp.$ac_objext "* ) ;;
23553 *) LIBOBJS="$LIBOBJS mkstemp.$ac_objext"
23558 rm -f core conftest.err conftest.$ac_objext \
23559 conftest$ac_exeext conftest.$ac_ext
23561 ac_cpp='$CPP $CPPFLAGS'
23562 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23563 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23564 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23566 ac_fn_c_check_decl "$LINENO" "sys_siglist" "ac_cv_have_decl_sys_siglist" "$ac_includes_default"
23567 if test "x$ac_cv_have_decl_sys_siglist" = xyes; then :
23573 cat >>confdefs.h <<_ACEOF
23574 #define HAVE_DECL_SYS_SIGLIST $ac_have_decl
23576 ac_fn_c_check_decl "$LINENO" "getc_unlocked" "ac_cv_have_decl_getc_unlocked" "$ac_includes_default"
23577 if test "x$ac_cv_have_decl_getc_unlocked" = xyes; then :
23583 cat >>confdefs.h <<_ACEOF
23584 #define HAVE_DECL_GETC_UNLOCKED $ac_have_decl
23588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
23589 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
23590 if ${am_cv_langinfo_codeset+:} false; then :
23591 $as_echo_n "(cached) " >&6
23593 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23594 /* end confdefs.h. */
23595 #include <langinfo.h>
23599 char* cs = nl_langinfo(CODESET); return !cs;
23604 if ac_fn_c_try_link "$LINENO"; then :
23605 am_cv_langinfo_codeset=yes
23607 am_cv_langinfo_codeset=no
23609 rm -f core conftest.err conftest.$ac_objext \
23610 conftest$ac_exeext conftest.$ac_ext
23613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
23614 $as_echo "$am_cv_langinfo_codeset" >&6; }
23615 if test $am_cv_langinfo_codeset = yes; then
23617 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
23622 # checks for compiler characteristics
23624 ac_cpp='$CXXCPP $CPPFLAGS'
23625 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23626 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23627 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ANSI array delete syntax is supported" >&5
23630 $as_echo_n "checking whether ANSI array delete syntax is supported... " >&6; }
23631 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23632 /* end confdefs.h. */
23640 char *p = new char[5];
23649 if ac_fn_cxx_try_compile "$LINENO"; then :
23650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23651 $as_echo "yes" >&6; }
23653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23654 $as_echo "no" >&6; }
23656 $as_echo "#define ARRAY_DELETE_NEEDS_SIZE 1" >>confdefs.h
23659 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23661 ac_cpp='$CPP $CPPFLAGS'
23662 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23663 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23664 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23667 ac_cpp='$CXXCPP $CPPFLAGS'
23668 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23669 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23670 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking traditional preprocessor" >&5
23673 $as_echo_n "checking traditional preprocessor... " >&6; }
23674 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23675 /* end confdefs.h. */
23679 #define name2(a, b) a/**/b
23687 int name2(foo, bar);
23695 if ac_fn_cxx_try_compile "$LINENO"; then :
23696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23697 $as_echo "yes" >&6; }
23699 $as_echo "#define TRADITIONAL_CPP 1" >>confdefs.h
23702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23703 $as_echo "no" >&6; }
23705 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23707 ac_cpp='$CPP $CPPFLAGS'
23708 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23709 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23710 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23713 # checks for operating system services
23714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking w_coredump" >&5
23715 $as_echo_n "checking w_coredump... " >&6; }
23716 if test "$cross_compiling" = yes; then :
23717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23718 $as_echo "no" >&6; }
23720 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23721 /* end confdefs.h. */
23725 #include <sys/types.h>
23726 #include <sys/wait.h>
23740 ((union wait *)&i)->w_coredump = 1;
23751 if ac_fn_c_try_run "$LINENO"; then :
23752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23753 $as_echo "yes" >&6; }
23755 $as_echo "#define WCOREFLAG 0200" >>confdefs.h
23758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23759 $as_echo "no" >&6; }
23761 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23762 conftest.$ac_objext conftest.beam conftest.$ac_ext
23766 # URW fonts extra dir
23768 # Check whether --with-urw-fonts-dir was given.
23769 if test "${with_urw_fonts_dir+set}" = set; then :
23770 withval=$with_urw_fonts_dir; urwfontsdir="$withval"
23775 # other random stuff
23776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking default value for grops -b option" >&5
23777 $as_echo_n "checking default value for grops -b option... " >&6; }
23778 test -n "${BROKEN_SPOOLER_FLAGS}" || BROKEN_SPOOLER_FLAGS=0
23779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BROKEN_SPOOLER_FLAGS" >&5
23780 $as_echo "$BROKEN_SPOOLER_FLAGS" >&6; }
23782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking default paper size" >&5
23783 $as_echo_n "checking default paper size... " >&6; }
23784 groff_prefix=$prefix
23785 test "x$prefix" = "xNONE" && groff_prefix=$ac_default_prefix
23786 if test -z "$PAGE" && test -r /etc/papersize; then
23787 PAGE=`cat /etc/papersize | sed -e 's/^ *#.*//g' | tr -d "\n" | awk '{ print }'`
23789 if test -z "$PAGE"; then
23791 if test -r "$groff_prefix"/share/groff/font/devps/DESC; then
23792 descfile=$groff_prefix/share/groff/font/devps/DESC
23793 elif test -r "$groff_prefix"/lib/groff/font/devps/DESC; then
23794 descfile=$groff_prefix/lib/groff/font/devps/DESC
23796 for f in "$groff_prefix"/share/groff/*/font/devps/DESC; do
23797 if test -r "$f"; then
23804 if test -n "$descfile"; then
23805 if grep '^paperlength[ ]\+841890' "$descfile" >/dev/null 2>&1; then
23807 elif grep '^papersize[ ]\+[aA]4' "$descfile" >/dev/null 2>&1; then
23813 if test -z "$PAGE"; then
23814 dom=`awk '($1 == "dom" || $1 == "search") { print $2; exit}' \
23815 /etc/resolv.conf 2>/dev/null`
23816 if test -z "$dom"; then
23817 dom=`(domainname) 2>/dev/null | tr -d '+'`
23818 if test -z "$dom" \
23819 || test "$dom" = '(none)'; then
23820 dom=`(hostname) 2>/dev/null | grep '\.'`
23823 # If the top-level domain is two letters and it's not 'us' or 'ca'
23824 # then they probably use A4 paper.
23826 *.[Uu][Ss]|*.[Cc][Aa])
23828 *.[A-Za-z][A-Za-z])
23833 test -n "$PAGE" || PAGE=letter
23834 if test "x$PAGE" = "xA4"; then
23836 $as_echo "#define PAGEA4 1" >>confdefs.h
23839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PAGE" >&5
23840 $as_echo "$PAGE" >&6; }
23842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for existing troff installation" >&5
23843 $as_echo_n "checking for existing troff installation... " >&6; }
23844 if test "x`(echo .tm '|n(.g' | tr '|' '\\\\' | troff -z -i 2>&1) 2>/dev/null`" = x0; then
23845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23846 $as_echo "yes" >&6; }
23849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23850 $as_echo "no" >&6; }
23854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prefix of system macro packages" >&5
23855 $as_echo_n "checking for prefix of system macro packages... " >&6; }
23857 sys_tmac_file_prefix=
23858 for d in /usr/share/lib/tmac /usr/lib/tmac; do
23859 for t in "" tmac.; do
23860 for m in an s m; do
23862 if test -z "$sys_tmac_prefix" \
23864 && grep '^\.if' $f >/dev/null 2>&1; then
23865 sys_tmac_prefix=$d/$t
23866 sys_tmac_file_prefix=$t
23871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sys_tmac_prefix" >&5
23872 $as_echo "$sys_tmac_prefix" >&6; }
23875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which system macro packages should be made available" >&5
23876 $as_echo_n "checking which system macro packages should be made available... " >&6; }
23878 if test "x$sys_tmac_file_prefix" = "xtmac."; then
23879 for f in $sys_tmac_prefix*; do
23880 suff=`echo $f | sed -e "s;$sys_tmac_prefix;;"`
23885 grep "Copyright.*Free Software Foundation" $f >/dev/null \
23886 || tmac_wrap="$tmac_wrap $suff" ;;
23889 elif test -n "$sys_tmac_prefix"; then
23890 files=`echo $sys_tmac_prefix*`
23891 grep "\\.so" $files >conftest.sol
23892 for f in $files; do
23894 ${sys_tmac_prefix}e)
23902 if grep "\\.so.*/$b\$" conftest.sol >/dev/null \
23903 || grep -l "Copyright.*Free Software Foundation" $f >/dev/null; then
23906 suff=`echo $f | sed -e "s;$sys_tmac_prefix;;"`
23911 tmac_wrap="$tmac_wrap $suff" ;;
23918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tmac_wrap" >&5
23919 $as_echo "$tmac_wrap" >&6; }
23922 # Check whether --with-compatibility-wrappers was given.
23923 if test "${with_compatibility_wrappers+set}" = set; then :
23924 withval=$with_compatibility_wrappers; compatibility_wrappers="$withval"
23926 compatibility_wrappers="check"
23930 if test "x$compatibility_wrappers" != "xcheck" -a \
23931 "x$compatibility_wrappers" != "xyes" -a \
23932 "x$compatibility_wrappers" != "xno" -a \
23933 "x$compatibility_wrappers" != "xmanual"
23935 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Invalid '--with-compatibility-wrappers' argument: '$compatibility_wrappers' - assuming 'check' requested." >&5
23936 $as_echo "$as_me: WARNING: Invalid '--with-compatibility-wrappers' argument: '$compatibility_wrappers' - assuming 'check' requested." >&2;}
23937 compatibility_wrappers="check"
23940 if test "x$tmac_wrap" = "x"
23942 # No Operating System Macro Sets Present
23943 if test "x$compatibility_wrappers" = "xcheck"
23945 compatibility_wrappers="no"
23946 elif test "x$compatibility_wrappers" = "xyes"
23948 as_fn_error $? "No non-GNU macro sets found - cannot create and install compatibility wrappers" "$LINENO" 5
23949 elif test "x$compatibility_wrappers" = "xno"
23951 : # No action required
23952 elif test "x$compatibility_wrappers" = "xmanual"
23954 # 'manual' allows quiet conversion to 'no' to support
23955 # cross-platform build instructions
23956 compatibility_wrappers="no"
23959 # One or more Operating System Macro Sets Present
23960 if test "x$compatibility_wrappers" = "xcheck"
23962 compatibility_wrappers="yes"
23966 # Now compatibility_wrappers can only be yes, no or manual
23969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking separator character to use in groff search paths" >&5
23970 $as_echo_n "checking separator character to use in groff search paths... " >&6; }
23971 cp ${srcdir}/src/include/nonposix.h conftest.h
23972 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23973 /* end confdefs.h. */
23978 #include "conftest.h"
23986 #if PATH_SEP_CHAR == ';'
23987 make an error "Path separator is ';'"
23996 if ac_fn_c_try_compile "$LINENO"; then :
23997 GROFF_PATH_SEPARATOR=":"
23999 GROFF_PATH_SEPARATOR=";"
24001 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GROFF_PATH_SEPARATOR" >&5
24003 $as_echo "$GROFF_PATH_SEPARATOR" >&6; }
24006 # Check whether --with-alt-gs was given.
24007 if test "${with_alt_gs+set}" = set; then :
24008 withval=$with_alt_gs; ALT_GHOSTSCRIPT_PROGS="$withval"
24010 ALT_GHOSTSCRIPT_PROGS="gs gswin32c gsos2"
24016 # Check whether --with-gs was given.
24017 if test "${with_gs+set}" = set; then :
24018 withval=$with_gs; GHOSTSCRIPT=$withval
24020 if test -n "$ac_tool_prefix"; then
24021 for ac_prog in $ALT_GHOSTSCRIPT_PROGS
24023 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
24024 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
24025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24026 $as_echo_n "checking for $ac_word... " >&6; }
24027 if ${ac_cv_prog_GHOSTSCRIPT+:} false; then :
24028 $as_echo_n "(cached) " >&6
24030 if test -n "$GHOSTSCRIPT"; then
24031 ac_cv_prog_GHOSTSCRIPT="$GHOSTSCRIPT" # Let the user override the test.
24033 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24034 for as_dir in $PATH
24037 test -z "$as_dir" && as_dir=.
24038 for ac_exec_ext in '' $ac_executable_extensions; do
24039 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24040 ac_cv_prog_GHOSTSCRIPT="$ac_tool_prefix$ac_prog"
24041 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24050 GHOSTSCRIPT=$ac_cv_prog_GHOSTSCRIPT
24051 if test -n "$GHOSTSCRIPT"; then
24052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GHOSTSCRIPT" >&5
24053 $as_echo "$GHOSTSCRIPT" >&6; }
24055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24056 $as_echo "no" >&6; }
24060 test -n "$GHOSTSCRIPT" && break
24063 if test -z "$GHOSTSCRIPT"; then
24064 ac_ct_GHOSTSCRIPT=$GHOSTSCRIPT
24065 for ac_prog in $ALT_GHOSTSCRIPT_PROGS
24067 # Extract the first word of "$ac_prog", so it can be a program name with args.
24068 set dummy $ac_prog; ac_word=$2
24069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24070 $as_echo_n "checking for $ac_word... " >&6; }
24071 if ${ac_cv_prog_ac_ct_GHOSTSCRIPT+:} false; then :
24072 $as_echo_n "(cached) " >&6
24074 if test -n "$ac_ct_GHOSTSCRIPT"; then
24075 ac_cv_prog_ac_ct_GHOSTSCRIPT="$ac_ct_GHOSTSCRIPT" # Let the user override the test.
24077 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24078 for as_dir in $PATH
24081 test -z "$as_dir" && as_dir=.
24082 for ac_exec_ext in '' $ac_executable_extensions; do
24083 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24084 ac_cv_prog_ac_ct_GHOSTSCRIPT="$ac_prog"
24085 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24094 ac_ct_GHOSTSCRIPT=$ac_cv_prog_ac_ct_GHOSTSCRIPT
24095 if test -n "$ac_ct_GHOSTSCRIPT"; then
24096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GHOSTSCRIPT" >&5
24097 $as_echo "$ac_ct_GHOSTSCRIPT" >&6; }
24099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24100 $as_echo "no" >&6; }
24104 test -n "$ac_ct_GHOSTSCRIPT" && break
24107 if test "x$ac_ct_GHOSTSCRIPT" = x; then
24108 GHOSTSCRIPT="missing"
24110 case $cross_compiling:$ac_tool_warned in
24112 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
24113 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
24114 ac_tool_warned=yes ;;
24116 GHOSTSCRIPT=$ac_ct_GHOSTSCRIPT
24122 test "$GHOSTSCRIPT" = "no" && GHOSTSCRIPT=missing
24124 make_install_htmldoc=
24125 make_uninstall_htmldoc=
24127 make_install_htmlexamples=
24128 make_uninstall_htmlexamples=
24132 # Extract the first word of "pnmcut", so it can be a program name with args.
24133 set dummy pnmcut; ac_word=$2
24134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24135 $as_echo_n "checking for $ac_word... " >&6; }
24136 if ${ac_cv_prog_pnmcut+:} false; then :
24137 $as_echo_n "(cached) " >&6
24139 if test -n "$pnmcut"; then
24140 ac_cv_prog_pnmcut="$pnmcut" # Let the user override the test.
24142 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24143 for as_dir in $PATH
24146 test -z "$as_dir" && as_dir=.
24147 for ac_exec_ext in '' $ac_executable_extensions; do
24148 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24149 ac_cv_prog_pnmcut="found"
24150 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24157 test -z "$ac_cv_prog_pnmcut" && ac_cv_prog_pnmcut="missing"
24160 pnmcut=$ac_cv_prog_pnmcut
24161 if test -n "$pnmcut"; then
24162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pnmcut" >&5
24163 $as_echo "$pnmcut" >&6; }
24165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24166 $as_echo "no" >&6; }
24170 if test $pnmcut = missing; then
24171 missing="$missing 'pnmcut'"
24172 fi;# Extract the first word of "pnmcrop", so it can be a program name with args.
24173 set dummy pnmcrop; ac_word=$2
24174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24175 $as_echo_n "checking for $ac_word... " >&6; }
24176 if ${ac_cv_prog_pnmcrop+:} false; then :
24177 $as_echo_n "(cached) " >&6
24179 if test -n "$pnmcrop"; then
24180 ac_cv_prog_pnmcrop="$pnmcrop" # Let the user override the test.
24182 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24183 for as_dir in $PATH
24186 test -z "$as_dir" && as_dir=.
24187 for ac_exec_ext in '' $ac_executable_extensions; do
24188 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24189 ac_cv_prog_pnmcrop="found"
24190 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24197 test -z "$ac_cv_prog_pnmcrop" && ac_cv_prog_pnmcrop="missing"
24200 pnmcrop=$ac_cv_prog_pnmcrop
24201 if test -n "$pnmcrop"; then
24202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pnmcrop" >&5
24203 $as_echo "$pnmcrop" >&6; }
24205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24206 $as_echo "no" >&6; }
24210 if test $pnmcrop = missing; then
24211 missing="$missing 'pnmcrop'"
24212 fi;# Extract the first word of "pnmtopng", so it can be a program name with args.
24213 set dummy pnmtopng; ac_word=$2
24214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24215 $as_echo_n "checking for $ac_word... " >&6; }
24216 if ${ac_cv_prog_pnmtopng+:} false; then :
24217 $as_echo_n "(cached) " >&6
24219 if test -n "$pnmtopng"; then
24220 ac_cv_prog_pnmtopng="$pnmtopng" # Let the user override the test.
24222 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24223 for as_dir in $PATH
24226 test -z "$as_dir" && as_dir=.
24227 for ac_exec_ext in '' $ac_executable_extensions; do
24228 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24229 ac_cv_prog_pnmtopng="found"
24230 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24237 test -z "$ac_cv_prog_pnmtopng" && ac_cv_prog_pnmtopng="missing"
24240 pnmtopng=$ac_cv_prog_pnmtopng
24241 if test -n "$pnmtopng"; then
24242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pnmtopng" >&5
24243 $as_echo "$pnmtopng" >&6; }
24245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24246 $as_echo "no" >&6; }
24250 if test $pnmtopng = missing; then
24251 missing="$missing 'pnmtopng'"
24252 fi;# Extract the first word of "psselect", so it can be a program name with args.
24253 set dummy psselect; ac_word=$2
24254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24255 $as_echo_n "checking for $ac_word... " >&6; }
24256 if ${ac_cv_prog_psselect+:} false; then :
24257 $as_echo_n "(cached) " >&6
24259 if test -n "$psselect"; then
24260 ac_cv_prog_psselect="$psselect" # Let the user override the test.
24262 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24263 for as_dir in $PATH
24266 test -z "$as_dir" && as_dir=.
24267 for ac_exec_ext in '' $ac_executable_extensions; do
24268 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24269 ac_cv_prog_psselect="found"
24270 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24277 test -z "$ac_cv_prog_psselect" && ac_cv_prog_psselect="missing"
24280 psselect=$ac_cv_prog_psselect
24281 if test -n "$psselect"; then
24282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $psselect" >&5
24283 $as_echo "$psselect" >&6; }
24285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24286 $as_echo "no" >&6; }
24290 if test $psselect = missing; then
24291 missing="$missing 'psselect'"
24292 fi;# Extract the first word of "pnmtops", so it can be a program name with args.
24293 set dummy pnmtops; ac_word=$2
24294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24295 $as_echo_n "checking for $ac_word... " >&6; }
24296 if ${ac_cv_prog_pnmtops+:} false; then :
24297 $as_echo_n "(cached) " >&6
24299 if test -n "$pnmtops"; then
24300 ac_cv_prog_pnmtops="$pnmtops" # Let the user override the test.
24302 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24303 for as_dir in $PATH
24306 test -z "$as_dir" && as_dir=.
24307 for ac_exec_ext in '' $ac_executable_extensions; do
24308 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24309 ac_cv_prog_pnmtops="found"
24310 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24317 test -z "$ac_cv_prog_pnmtops" && ac_cv_prog_pnmtops="missing"
24320 pnmtops=$ac_cv_prog_pnmtops
24321 if test -n "$pnmtops"; then
24322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pnmtops" >&5
24323 $as_echo "$pnmtops" >&6; }
24325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24326 $as_echo "no" >&6; }
24330 if test $pnmtops = missing; then
24331 missing="$missing 'pnmtops'"
24334 test "$GHOSTSCRIPT" = "missing" && missing="$missing 'gs'"
24336 if test -z "$missing"; then
24337 if test $docadd_html = yes; then
24338 make_htmldoc=htmldoc
24339 make_install_htmldoc=install_htmldoc
24340 make_uninstall_htmldoc=uninstall_htmldoc
24341 if test $docadd_examples = yes; then
24342 make_htmlexamples=html_examples
24343 make_install_htmlexamples=install_htmlexamples
24344 make_uninstall_htmlexamples=uninstall_htmlexamples
24348 plural=`set $missing; test $# -gt 1 && echo s`
24349 missing=`set $missing
24351 while test $# -gt 0
24354 1) missing="$missing$1" ;;
24355 2) missing="$missing$1 and " ;;
24356 *) missing="$missing$1, " ;;
24363 test $docadd_html = yes && docnote=';
24364 therefore, it will neither be possible to prepare, nor to install,
24365 documentation in HTML format.'
24367 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: missing program$plural:
24371 cannot be found in the PATH.
24372 Consequently, groff's HTML backend (grohtml) will not work properly$docnote
24374 $as_echo "$as_me: WARNING: missing program$plural:
24378 cannot be found in the PATH.
24379 Consequently, groff's HTML backend (grohtml) will not work properly$docnote
24381 doc_dist_target_ok=no
24390 # Check whether --with-alt-awk was given.
24391 if test "${with_alt_awk+set}" = set; then :
24392 withval=$with_alt_awk; ALT_AWK_PROGS="$withval"
24394 ALT_AWK_PROGS="gawk mawk nawk awk"
24400 # Check whether --with-awk was given.
24401 if test "${with_awk+set}" = set; then :
24402 withval=$with_awk; AWK=$withval
24404 if test -n "$ac_tool_prefix"; then
24405 for ac_prog in $ALT_AWK_PROGS
24407 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
24408 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
24409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24410 $as_echo_n "checking for $ac_word... " >&6; }
24411 if ${ac_cv_prog_AWK+:} false; then :
24412 $as_echo_n "(cached) " >&6
24414 if test -n "$AWK"; then
24415 ac_cv_prog_AWK="$AWK" # Let the user override the test.
24417 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24418 for as_dir in $PATH
24421 test -z "$as_dir" && as_dir=.
24422 for ac_exec_ext in '' $ac_executable_extensions; do
24423 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24424 ac_cv_prog_AWK="$ac_tool_prefix$ac_prog"
24425 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24434 AWK=$ac_cv_prog_AWK
24435 if test -n "$AWK"; then
24436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
24437 $as_echo "$AWK" >&6; }
24439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24440 $as_echo "no" >&6; }
24444 test -n "$AWK" && break
24447 if test -z "$AWK"; then
24449 for ac_prog in $ALT_AWK_PROGS
24451 # Extract the first word of "$ac_prog", so it can be a program name with args.
24452 set dummy $ac_prog; ac_word=$2
24453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24454 $as_echo_n "checking for $ac_word... " >&6; }
24455 if ${ac_cv_prog_ac_ct_AWK+:} false; then :
24456 $as_echo_n "(cached) " >&6
24458 if test -n "$ac_ct_AWK"; then
24459 ac_cv_prog_ac_ct_AWK="$ac_ct_AWK" # Let the user override the test.
24461 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24462 for as_dir in $PATH
24465 test -z "$as_dir" && as_dir=.
24466 for ac_exec_ext in '' $ac_executable_extensions; do
24467 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24468 ac_cv_prog_ac_ct_AWK="$ac_prog"
24469 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24478 ac_ct_AWK=$ac_cv_prog_ac_ct_AWK
24479 if test -n "$ac_ct_AWK"; then
24480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AWK" >&5
24481 $as_echo "$ac_ct_AWK" >&6; }
24483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24484 $as_echo "no" >&6; }
24488 test -n "$ac_ct_AWK" && break
24491 if test "x$ac_ct_AWK" = x; then
24494 case $cross_compiling:$ac_tool_warned in
24496 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
24497 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
24498 ac_tool_warned=yes ;;
24506 test "$AWK" = "no" && AWK=missing
24508 make_install_pdfdoc=
24509 make_uninstall_pdfdoc=
24511 make_install_pdfexamples=
24512 make_uninstall_pdfexamples=
24517 test "$AWK" = missing && missing="'awk'"
24518 test "$GHOSTSCRIPT" = missing && missing="$missing 'gs'"
24519 if test -z "$missing"; then
24520 if test $docadd_pdf = yes; then
24522 make_install_pdfdoc=install_pdfdoc
24523 make_uninstall_pdfdoc=uninstall_pdfdoc
24524 if test $docadd_examples = yes; then
24525 make_pdfexamples=pdfexamples
24526 make_install_pdfexamples=install_pdfexamples
24527 make_uninstall_pdfexamples=uninstall_pdfexamples
24531 plural=`set $missing; test $# -eq 2 && echo s`
24532 test x$plural = xs \
24533 && missing=`set $missing; echo "$1 and $2"` \
24534 || missing=`echo $missing`
24537 test $docadd_pdf = yes && docnote=';
24538 therefore, it will neither be possible to prepare, nor to install,
24539 documentation and most of the examples in PDF format.'
24541 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: missing program$plural:
24543 The program$plural $missing cannot be found in the PATH.
24544 Consequently, groff's PDF formatter (pdfroff) will not work properly$docnote
24546 $as_echo "$as_me: WARNING: missing program$plural:
24548 The program$plural $missing cannot be found in the PATH.
24549 Consequently, groff's PDF formatter (pdfroff) will not work properly$docnote
24551 doc_dist_target_ok=no
24559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pnmtops can handle the -nosetpage option" >&5
24560 $as_echo_n "checking whether pnmtops can handle the -nosetpage option... " >&6; }
24561 if echo P2 2 2 255 0 1 2 0 | pnmtops -nosetpage > /dev/null 2>&1 ; then
24562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24563 $as_echo "yes" >&6; }
24564 pnmtops_nosetpage="pnmtops -nosetpage"
24566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24567 $as_echo "no" >&6; }
24568 pnmtops_nosetpage="pnmtops"
24571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether make has builtin variable RM" >&5
24572 $as_echo_n "checking whether make has builtin variable RM... " >&6; }
24573 cat <<EOF > test_make_rm.mk
24575 @if test -n "\$(RM)"; then \
24581 groff_is_rm_defined=`make -sf test_make_rm.mk`
24582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $groff_is_rm_defined" >&5
24583 $as_echo "$groff_is_rm_defined" >&6; }
24584 rm -f test_make_rm.mk
24585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a diff program that supports option -D" >&5
24586 $as_echo_n "checking for a diff program that supports option -D... " >&6; }
24587 groff_has_diff_d_option=no
24589 diff -Dx /dev/null /dev/null >/dev/null 2>&1 && groff_has_diff_d_option=yes
24590 if test "$groff_has_diff_d_option" = no; then
24591 for ac_prog in gdiff
24593 # Extract the first word of "$ac_prog", so it can be a program name with args.
24594 set dummy $ac_prog; ac_word=$2
24595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24596 $as_echo_n "checking for $ac_word... " >&6; }
24597 if ${ac_cv_prog_GDIFF+:} false; then :
24598 $as_echo_n "(cached) " >&6
24600 if test -n "$GDIFF"; then
24601 ac_cv_prog_GDIFF="$GDIFF" # Let the user override the test.
24603 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24604 for as_dir in $PATH
24607 test -z "$as_dir" && as_dir=.
24608 for ac_exec_ext in '' $ac_executable_extensions; do
24609 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24610 ac_cv_prog_GDIFF="$ac_prog"
24611 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24620 GDIFF=$ac_cv_prog_GDIFF
24621 if test -n "$GDIFF"; then
24622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDIFF" >&5
24623 $as_echo "$GDIFF" >&6; }
24625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24626 $as_echo "no" >&6; }
24630 test -n "$GDIFF" && break
24633 if test -n "$GDIFF"; then
24634 "$GDIFF" -Dx /dev/null /dev/null >/dev/null 2>&1 && groff_has_diff_d_option=yes
24635 if test "$groff_has_diff_d_option" = yes; then
24640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $groff_has_diff_d_option" >&5
24641 $as_echo "$groff_has_diff_d_option" >&6; }
24643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether test supports option -ef" >&5
24644 $as_echo_n "checking whether test supports option -ef... " >&6; }
24645 HAVE_TEST_EF_OPTION=no
24646 test /dev/null -ef /dev/null > /dev/null 2>&1 && HAVE_TEST_EF_OPTION=yes
24647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_TEST_EF_OPTION" >&5
24648 $as_echo "$HAVE_TEST_EF_OPTION" >&6; }
24650 for ac_prog in bash
24652 # Extract the first word of "$ac_prog", so it can be a program name with args.
24653 set dummy $ac_prog; ac_word=$2
24654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24655 $as_echo_n "checking for $ac_word... " >&6; }
24656 if ${ac_cv_path_BASH_PROG+:} false; then :
24657 $as_echo_n "(cached) " >&6
24661 ac_cv_path_BASH_PROG="$BASH_PROG" # Let the user override the test with a path.
24664 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24665 for as_dir in $PATH
24668 test -z "$as_dir" && as_dir=.
24669 for ac_exec_ext in '' $ac_executable_extensions; do
24670 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24671 ac_cv_path_BASH_PROG="$as_dir/$ac_word$ac_exec_ext"
24672 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24682 BASH_PROG=$ac_cv_path_BASH_PROG
24683 if test -n "$BASH_PROG"; then
24684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BASH_PROG" >&5
24685 $as_echo "$BASH_PROG" >&6; }
24687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24688 $as_echo "no" >&6; }
24692 test -n "$BASH_PROG" && break
24694 test -n "$BASH_PROG" || BASH_PROG="no"
24696 if test x$BASH_PROG = xno; then
24701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C Library >= 2.1 or uClibc" >&5
24702 $as_echo_n "checking whether we are using the GNU C Library >= 2.1 or uClibc... " >&6; }
24703 if ${ac_cv_gnu_library_2_1+:} false; then :
24704 $as_echo_n "(cached) " >&6
24706 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24707 /* end confdefs.h. */
24709 #include <features.h>
24710 #ifdef __GNU_LIBRARY__
24711 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
24720 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24721 $EGREP "Lucky" >/dev/null 2>&1; then :
24722 ac_cv_gnu_library_2_1=yes
24724 ac_cv_gnu_library_2_1=no
24731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2_1" >&5
24732 $as_echo "$ac_cv_gnu_library_2_1" >&6; }
24734 GLIBC21="$ac_cv_gnu_library_2_1"
24746 # checks for presence of URW fonts (requires ghostscript, which is
24747 # checked in GROFF_HTML_PROGRAMS
24748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether URW fonts in pfb format are available" >&5
24749 $as_echo_n "checking whether URW fonts in pfb format are available... " >&6; }
24752 groff_have_urw_fonts=no
24753 if test "$AWK" = "missing" -o "$GHOSTSCRIPT" = "missing"; then
24754 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: awk and gs are required, can't look for URW fonts" >&5
24755 $as_echo "$as_me: WARNING: awk and gs are required, can't look for URW fonts" >&2;}
24757 _list_paths=`$GHOSTSCRIPT -h | $AWK 'BEGIN { found = 0 } /Search path:/ { found = 1 } /^ *\// { print $'0' }'| tr : ' '`
24758 _list_paths="$_list_paths /usr/share/fonts/type1/gsfonts/ \
24759 /opt/local/share/fonts/urw-fonts/"
24760 if test -n "$urwfontsdir"; then
24761 _list_paths="$ _list_paths $urwfontsdir"
24763 for k in $_list_paths; do
24764 if test -f $k/a010013l.pfb; then
24765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found in $k" >&5
24766 $as_echo "found in $k" >&6; }
24767 groff_have_urw_fonts=yes
24772 if test $groff_have_urw_fonts = no; then
24773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24774 $as_echo "no" >&6; }
24779 if test -n "$make_winscripts"; then
24780 BUILD_WINSCRIPTS_TRUE=
24781 BUILD_WINSCRIPTS_FALSE='#'
24783 BUILD_WINSCRIPTS_TRUE='#'
24784 BUILD_WINSCRIPTS_FALSE=
24788 # If X11 is not available, don't build:
24793 # src/devices/xditview
24794 # src/utils/xtotroff
24795 # src/libs/libxutil
24796 if test "x$groff_no_x" = "xyes"; then
24798 WITHOUT_X11_FALSE='#'
24800 WITHOUT_X11_TRUE='#'
24805 # make builtin variable RM
24806 if test "x$groff_is_rm_defined" = "xno"; then
24807 MAKE_DONT_HAVE_RM_TRUE=
24808 MAKE_DONT_HAVE_RM_FALSE='#'
24810 MAKE_DONT_HAVE_RM_TRUE='#'
24811 MAKE_DONT_HAVE_RM_FALSE=
24815 # Some programs have a "g" prefix if an existing groff installation is detected
24816 if test x$g = xg; then
24817 USEPROGRAMPREFIX_TRUE=
24818 USEPROGRAMPREFIX_FALSE='#'
24820 USEPROGRAMPREFIX_TRUE='#'
24821 USEPROGRAMPREFIX_FALSE=
24825 if test -n "$make_infodoc"; then
24826 BUILD_INFODOC_TRUE=
24827 BUILD_INFODOC_FALSE='#'
24829 BUILD_INFODOC_TRUE='#'
24830 BUILD_INFODOC_FALSE=
24833 if test -n "$make_htmldoc"; then
24835 BUILD_HTML_FALSE='#'
24837 BUILD_HTML_TRUE='#'
24841 if test -n "$make_htmlexamples"; then
24842 BUILD_HTMLEXAMPLES_TRUE=
24843 BUILD_HTMLEXAMPLES_FALSE='#'
24845 BUILD_HTMLEXAMPLES_TRUE='#'
24846 BUILD_HTMLEXAMPLES_FALSE=
24849 if test -n "$make_pdfdoc"; then
24851 BUILD_PDFDOC_FALSE='#'
24853 BUILD_PDFDOC_TRUE='#'
24854 BUILD_PDFDOC_FALSE=
24857 if test -n "$make_pdfexamples"; then
24858 BUILD_PDFEXAMPLES_TRUE=
24859 BUILD_PDFEXAMPLES_FALSE='#'
24861 BUILD_PDFEXAMPLES_TRUE='#'
24862 BUILD_PDFEXAMPLES_FALSE=
24865 if test -n "$make_otherdoc"; then
24866 BUILD_OTHERDOC_TRUE=
24867 BUILD_OTHERDOC_FALSE='#'
24869 BUILD_OTHERDOC_TRUE='#'
24870 BUILD_OTHERDOC_FALSE=
24873 if test -n "$make_examples"; then
24874 BUILD_EXAMPLES_TRUE=
24875 BUILD_EXAMPLES_FALSE='#'
24877 BUILD_EXAMPLES_TRUE='#'
24878 BUILD_EXAMPLES_FALSE=
24881 if test -n "$make_install_shipped_htmldoc"; then
24882 INSTALL_SHIPPED_HTML_TRUE=
24883 INSTALL_SHIPPED_HTML_FALSE='#'
24885 INSTALL_SHIPPED_HTML_TRUE='#'
24886 INSTALL_SHIPPED_HTML_FALSE=
24889 if test "x$groff_have_pdftools" = "xyes" ; then
24890 HAVE_PDFTOOLS_TRUE=
24891 HAVE_PDFTOOLS_FALSE='#'
24893 HAVE_PDFTOOLS_TRUE='#'
24894 HAVE_PDFTOOLS_FALSE=
24897 if test "x$groff_have_texi2dvi" = "xyes" ; then
24898 HAVE_TEXI2DVI_TRUE=
24899 HAVE_TEXI2DVI_FALSE='#'
24901 HAVE_TEXI2DVI_TRUE='#'
24902 HAVE_TEXI2DVI_FALSE=
24906 ac_config_files="$ac_config_files Makefile"
24908 ac_config_files="$ac_config_files test-groff"
24910 cat >confcache <<\_ACEOF
24911 # This file is a shell script that caches the results of configure
24912 # tests run on this system so they can be shared between configure
24913 # scripts and configure runs, see configure's option --config-cache.
24914 # It is not useful on other systems. If it contains results you don't
24915 # want to keep, you may remove or edit it.
24917 # config.status only pays attention to the cache file if you give it
24918 # the --recheck option to rerun configure.
24920 # `ac_cv_env_foo' variables (set or unset) will be overridden when
24921 # loading this file, other *unset* `ac_cv_foo' will be assigned the
24922 # following values.
24926 # The following way of writing the cache mishandles newlines in values,
24927 # but we know of no workaround that is simple, portable, and efficient.
24928 # So, we kill variables containing newlines.
24929 # Ultrix sh set writes to stderr and can't be redirected directly,
24930 # and sets the high bit in the cache file unless we assign to the vars.
24932 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
24933 eval ac_val=\$$ac_var
24937 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
24938 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
24941 _ | IFS | as_nl) ;; #(
24942 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
24943 *) { eval $ac_var=; unset $ac_var;} ;;
24949 case $as_nl`(ac_space=' '; set) 2>&1` in #(
24950 *${as_nl}ac_space=\ *)
24951 # `set' does not quote correctly, so add quotes: double-quote
24952 # substitution turns \\\\ into \\, and sed turns \\ into \.
24955 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
24958 # `set' quotes correctly as required by POSIX, so do not add quotes.
24959 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
24968 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
24970 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
24972 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
24973 if test -w "$cache_file"; then
24974 if test "x$cache_file" != "x/dev/null"; then
24975 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
24976 $as_echo "$as_me: updating cache $cache_file" >&6;}
24977 if test ! -f "$cache_file" || test -h "$cache_file"; then
24978 cat confcache >"$cache_file"
24980 case $cache_file in #(
24982 mv -f confcache "$cache_file"$$ &&
24983 mv -f "$cache_file"$$ "$cache_file" ;; #(
24985 mv -f confcache "$cache_file" ;;
24990 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
24991 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
24996 test "x$prefix" = xNONE && prefix=$ac_default_prefix
24997 # Let make expand exec_prefix.
24998 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
25000 DEFS=-DHAVE_CONFIG_H
25005 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
25006 # 1. Remove the extension, and $U if already installed.
25007 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
25008 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
25009 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
25010 # will be set to the directory where LIBOBJS objects are built.
25011 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
25012 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
25014 LIBOBJS=$ac_libobjs
25016 LTLIBOBJS=$ac_ltlibobjs
25019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
25020 $as_echo_n "checking that generated files are newer than configure... " >&6; }
25021 if test -n "$am_sleep_pid"; then
25022 # Hide warnings about reused PIDs.
25023 wait $am_sleep_pid 2>/dev/null
25025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
25026 $as_echo "done" >&6; }
25027 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
25028 as_fn_error $? "conditional \"AMDEP\" was never defined.
25029 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25031 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
25032 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
25033 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25035 if test -n "$EXEEXT"; then
25037 am__EXEEXT_FALSE='#'
25039 am__EXEEXT_TRUE='#'
25043 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
25044 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
25045 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25047 if test -z "${GL_COND_LIBTOOL_TRUE}" && test -z "${GL_COND_LIBTOOL_FALSE}"; then
25048 as_fn_error $? "conditional \"GL_COND_LIBTOOL\" was never defined.
25049 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25051 if test -z "${GL_GENERATE_ALLOCA_H_TRUE}" && test -z "${GL_GENERATE_ALLOCA_H_FALSE}"; then
25052 as_fn_error $? "conditional \"GL_GENERATE_ALLOCA_H\" was never defined.
25053 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25055 if test -z "${GL_GENERATE_ERRNO_H_TRUE}" && test -z "${GL_GENERATE_ERRNO_H_FALSE}"; then
25056 as_fn_error $? "conditional \"GL_GENERATE_ERRNO_H\" was never defined.
25057 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25059 if test -z "${GL_GENERATE_FLOAT_H_TRUE}" && test -z "${GL_GENERATE_FLOAT_H_FALSE}"; then
25060 as_fn_error $? "conditional \"GL_GENERATE_FLOAT_H\" was never defined.
25061 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25065 if test -z "${GL_GENERATE_LIMITS_H_TRUE}" && test -z "${GL_GENERATE_LIMITS_H_FALSE}"; then
25066 as_fn_error $? "conditional \"GL_GENERATE_LIMITS_H\" was never defined.
25067 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25072 # Tell AC_LIBSOURCES where to find source files like alloca.c.
25075 # This hack originated in bison. It is required when using non-recursive
25076 # automake rules to build from gnulib-provided lib/ sources. Hence, LIB_DIR
25077 # is usually simply "lib". Those rules use the list of names like "fchdir.o"
25078 # and "strstr.o" in gl_LIBOBJS. With non-recursive make, we must prefix each
25079 # such file name with the "lib/" prefix. See also build-aux/prefix-gnulib-mk.
25080 gl_LIBOBJS=`echo "$gl_LIBOBJS" | sed -e 's, , lib/,g'`
25082 # Listing the names of the variables to prefix is error-prone.
25083 # Rather, adjust each AC_SUBST'd variable whose name ends in '_H'
25084 # and whose value ends in '.h'.
25085 for ac_var in $ac_subst_vars
25087 eval "ac_val=\$$ac_var"
25088 case $ac_var:$ac_val in
25089 *_H:*.h) eval "$ac_var=lib/\$$ac_var";;
25094 if test -z "${GL_GENERATE_STDDEF_H_TRUE}" && test -z "${GL_GENERATE_STDDEF_H_FALSE}"; then
25095 as_fn_error $? "conditional \"GL_GENERATE_STDDEF_H\" was never defined.
25096 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25098 if test -z "${GL_GENERATE_LIMITS_H_TRUE}" && test -z "${GL_GENERATE_LIMITS_H_FALSE}"; then
25099 as_fn_error $? "conditional \"GL_GENERATE_LIMITS_H\" was never defined.
25100 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25102 if test -z "${GL_GENERATE_STDINT_H_TRUE}" && test -z "${GL_GENERATE_STDINT_H_FALSE}"; then
25103 as_fn_error $? "conditional \"GL_GENERATE_STDINT_H\" was never defined.
25104 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25106 if test -z "${LIBUNISTRING_COMPILE_UNIWIDTH_WIDTH_TRUE}" && test -z "${LIBUNISTRING_COMPILE_UNIWIDTH_WIDTH_FALSE}"; then
25107 as_fn_error $? "conditional \"LIBUNISTRING_COMPILE_UNIWIDTH_WIDTH\" was never defined.
25108 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25113 if test -n "$gl_LIBOBJS"; then
25114 # Remove the extension.
25115 sed_drop_objext='s/\.o$//;s/\.obj$//'
25116 for i in `for i in $gl_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
25117 gl_libobjs="$gl_libobjs $i.$ac_objext"
25118 gl_ltlibobjs="$gl_ltlibobjs $i.lo"
25121 gl_LIBOBJS=$gl_libobjs
25123 gl_LTLIBOBJS=$gl_ltlibobjs
25129 if test -n "$gltests_LIBOBJS"; then
25130 # Remove the extension.
25131 sed_drop_objext='s/\.o$//;s/\.obj$//'
25132 for i in `for i in $gltests_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
25133 gltests_libobjs="$gltests_libobjs $i.$ac_objext"
25134 gltests_ltlibobjs="$gltests_ltlibobjs $i.lo"
25137 gltests_LIBOBJS=$gltests_libobjs
25139 gltests_LTLIBOBJS=$gltests_ltlibobjs
25143 if test -z "${BUILD_WINSCRIPTS_TRUE}" && test -z "${BUILD_WINSCRIPTS_FALSE}"; then
25144 as_fn_error $? "conditional \"BUILD_WINSCRIPTS\" was never defined.
25145 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25147 if test -z "${WITHOUT_X11_TRUE}" && test -z "${WITHOUT_X11_FALSE}"; then
25148 as_fn_error $? "conditional \"WITHOUT_X11\" was never defined.
25149 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25151 if test -z "${MAKE_DONT_HAVE_RM_TRUE}" && test -z "${MAKE_DONT_HAVE_RM_FALSE}"; then
25152 as_fn_error $? "conditional \"MAKE_DONT_HAVE_RM\" was never defined.
25153 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25155 if test -z "${USEPROGRAMPREFIX_TRUE}" && test -z "${USEPROGRAMPREFIX_FALSE}"; then
25156 as_fn_error $? "conditional \"USEPROGRAMPREFIX\" was never defined.
25157 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25159 if test -z "${BUILD_INFODOC_TRUE}" && test -z "${BUILD_INFODOC_FALSE}"; then
25160 as_fn_error $? "conditional \"BUILD_INFODOC\" was never defined.
25161 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25163 if test -z "${BUILD_HTML_TRUE}" && test -z "${BUILD_HTML_FALSE}"; then
25164 as_fn_error $? "conditional \"BUILD_HTML\" was never defined.
25165 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25167 if test -z "${BUILD_HTMLEXAMPLES_TRUE}" && test -z "${BUILD_HTMLEXAMPLES_FALSE}"; then
25168 as_fn_error $? "conditional \"BUILD_HTMLEXAMPLES\" was never defined.
25169 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25171 if test -z "${BUILD_PDFDOC_TRUE}" && test -z "${BUILD_PDFDOC_FALSE}"; then
25172 as_fn_error $? "conditional \"BUILD_PDFDOC\" was never defined.
25173 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25175 if test -z "${BUILD_PDFEXAMPLES_TRUE}" && test -z "${BUILD_PDFEXAMPLES_FALSE}"; then
25176 as_fn_error $? "conditional \"BUILD_PDFEXAMPLES\" was never defined.
25177 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25179 if test -z "${BUILD_OTHERDOC_TRUE}" && test -z "${BUILD_OTHERDOC_FALSE}"; then
25180 as_fn_error $? "conditional \"BUILD_OTHERDOC\" was never defined.
25181 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25183 if test -z "${BUILD_EXAMPLES_TRUE}" && test -z "${BUILD_EXAMPLES_FALSE}"; then
25184 as_fn_error $? "conditional \"BUILD_EXAMPLES\" was never defined.
25185 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25187 if test -z "${INSTALL_SHIPPED_HTML_TRUE}" && test -z "${INSTALL_SHIPPED_HTML_FALSE}"; then
25188 as_fn_error $? "conditional \"INSTALL_SHIPPED_HTML\" was never defined.
25189 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25191 if test -z "${HAVE_PDFTOOLS_TRUE}" && test -z "${HAVE_PDFTOOLS_FALSE}"; then
25192 as_fn_error $? "conditional \"HAVE_PDFTOOLS\" was never defined.
25193 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25195 if test -z "${HAVE_TEXI2DVI_TRUE}" && test -z "${HAVE_TEXI2DVI_FALSE}"; then
25196 as_fn_error $? "conditional \"HAVE_TEXI2DVI\" was never defined.
25197 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25200 : "${CONFIG_STATUS=./config.status}"
25202 ac_clean_files_save=$ac_clean_files
25203 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
25204 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
25205 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
25207 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
25209 # Generated by $as_me.
25210 # Run this file to recreate the current configuration.
25211 # Compiler output produced by configure, useful for debugging
25212 # configure, is in config.log if it exists.
25215 ac_cs_recheck=false
25218 SHELL=\${CONFIG_SHELL-$SHELL}
25221 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
25222 ## -------------------- ##
25223 ## M4sh Initialization. ##
25224 ## -------------------- ##
25226 # Be more Bourne compatible
25227 DUALCASE=1; export DUALCASE # for MKS sh
25228 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
25231 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25232 # is contrary to our usage. Disable this feature.
25233 alias -g '${1+"$@"}'='"$@"'
25234 setopt NO_GLOB_SUBST
25236 case `(set -o) 2>/dev/null` in #(
25248 # Printing a long string crashes Solaris 7 /usr/bin/printf.
25249 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
25250 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
25251 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
25252 # Prefer a ksh shell builtin over an external printf program on Solaris,
25253 # but without wasting forks for bash or zsh.
25254 if test -z "$BASH_VERSION$ZSH_VERSION" \
25255 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
25256 as_echo='print -r --'
25257 as_echo_n='print -rn --'
25258 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
25259 as_echo='printf %s\n'
25260 as_echo_n='printf %s'
25262 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
25263 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
25264 as_echo_n='/usr/ucb/echo -n'
25266 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
25267 as_echo_n_body='eval
25271 expr "X$arg" : "X\\(.*\\)$as_nl";
25272 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
25274 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
25276 export as_echo_n_body
25277 as_echo_n='sh -c $as_echo_n_body as_echo'
25279 export as_echo_body
25280 as_echo='sh -c $as_echo_body as_echo'
25283 # The user is always right.
25284 if test "${PATH_SEPARATOR+set}" != set; then
25286 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
25287 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
25294 # We need space, tab and new line, in precisely that order. Quoting is
25295 # there to prevent editors from complaining about space-tab.
25296 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
25297 # splitting by setting IFS to empty value.)
25300 # Find who we are. Look in the path if we contain no directory separator.
25303 *[\\/]* ) as_myself=$0 ;;
25304 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25305 for as_dir in $PATH
25308 test -z "$as_dir" && as_dir=.
25309 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
25315 # We did not find ourselves, most probably we were run as `sh COMMAND'
25316 # in which case we are not to be found in the path.
25317 if test "x$as_myself" = x; then
25320 if test ! -f "$as_myself"; then
25321 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
25325 # Unset variables that we do not need and which cause bugs (e.g. in
25326 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
25327 # suppresses any "Segmentation fault" message there. '((' could
25328 # trigger a bug in pdksh 5.2.14.
25329 for as_var in BASH_ENV ENV MAIL MAILPATH
25330 do eval test x\${$as_var+set} = xset \
25331 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
25344 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
25347 # as_fn_error STATUS ERROR [LINENO LOG_FD]
25348 # ----------------------------------------
25349 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
25350 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
25351 # script with STATUS, using 1 if that was 0.
25354 as_status=$1; test $as_status -eq 0 && as_status=1
25356 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
25357 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
25359 $as_echo "$as_me: error: $2" >&2
25360 as_fn_exit $as_status
25364 # as_fn_set_status STATUS
25365 # -----------------------
25366 # Set $? to STATUS, without forking.
25367 as_fn_set_status ()
25370 } # as_fn_set_status
25372 # as_fn_exit STATUS
25373 # -----------------
25374 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
25378 as_fn_set_status $1
25384 # Portably unset VAR.
25387 { eval $1=; unset $1;}
25389 as_unset=as_fn_unset
25390 # as_fn_append VAR VALUE
25391 # ----------------------
25392 # Append the text in VALUE to the end of the definition contained in VAR. Take
25393 # advantage of any shell optimizations that allow amortized linear growth over
25394 # repeated appends, instead of the typical quadratic growth present in naive
25396 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
25397 eval 'as_fn_append ()
25408 # as_fn_arith ARG...
25409 # ------------------
25410 # Perform arithmetic evaluation on the ARGs, and store the result in the
25411 # global $as_val. Take advantage of shells that can avoid forks. The arguments
25412 # must be portable across $(()) and expr.
25413 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
25414 eval 'as_fn_arith ()
25421 as_val=`expr "$@" || test $? -eq 1`
25426 if expr a : '\(a\)' >/dev/null 2>&1 &&
25427 test "X`expr 00001 : '.*\(...\)'`" = X001; then
25433 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
25434 as_basename=basename
25439 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
25445 as_me=`$as_basename -- "$0" ||
25446 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
25447 X"$0" : 'X\(//\)$' \| \
25448 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
25450 sed '/^.*\/\([^/][^/]*\)\/*$/{
25464 # Avoid depending upon Character Ranges.
25465 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
25466 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
25467 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
25468 as_cr_digits='0123456789'
25469 as_cr_alnum=$as_cr_Letters$as_cr_digits
25471 ECHO_C= ECHO_N= ECHO_T=
25472 case `echo -n x` in #(((((
25474 case `echo 'xy\c'` in
25475 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
25477 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
25484 rm -f conf$$ conf$$.exe conf$$.file
25485 if test -d conf$$.dir; then
25486 rm -f conf$$.dir/conf$$.file
25489 mkdir conf$$.dir 2>/dev/null
25491 if (echo >conf$$.file) 2>/dev/null; then
25492 if ln -s conf$$.file conf$$ 2>/dev/null; then
25494 # ... but there are two gotchas:
25495 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
25496 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
25497 # In both cases, we have to default to `cp -pR'.
25498 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
25500 elif ln conf$$.file conf$$ 2>/dev/null; then
25508 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
25509 rmdir conf$$.dir 2>/dev/null
25514 # Create "$as_dir" as a directory, including parents if necessary.
25519 -*) as_dir=./$as_dir;;
25521 test -d "$as_dir" || eval $as_mkdir_p || {
25525 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
25526 *) as_qdir=$as_dir;;
25528 as_dirs="'$as_qdir' $as_dirs"
25529 as_dir=`$as_dirname -- "$as_dir" ||
25530 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25531 X"$as_dir" : 'X\(//\)[^/]' \| \
25532 X"$as_dir" : 'X\(//\)$' \| \
25533 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
25534 $as_echo X"$as_dir" |
25535 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25539 /^X\(\/\/\)[^/].*/{
25552 test -d "$as_dir" && break
25554 test -z "$as_dirs" || eval "mkdir $as_dirs"
25555 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
25559 if mkdir -p . 2>/dev/null; then
25560 as_mkdir_p='mkdir -p "$as_dir"'
25562 test -d ./-p && rmdir ./-p
25567 # as_fn_executable_p FILE
25568 # -----------------------
25569 # Test if FILE is an executable regular file.
25570 as_fn_executable_p ()
25572 test -f "$1" && test -x "$1"
25573 } # as_fn_executable_p
25574 as_test_x='test -x'
25575 as_executable_p=as_fn_executable_p
25577 # Sed expression to map a string onto a valid CPP name.
25578 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
25580 # Sed expression to map a string onto a valid variable name.
25581 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
25585 ## ----------------------------------- ##
25586 ## Main body of $CONFIG_STATUS script. ##
25587 ## ----------------------------------- ##
25589 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
25591 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25592 # Save the log message, to keep $0 and so on meaningful, and to
25593 # report actual input values of CONFIG_FILES etc. instead of their
25594 # values after options handling.
25596 This file was extended by GNU Troff $as_me 1.22.4, which was
25597 generated by GNU Autoconf 2.69. Invocation command line was
25599 CONFIG_FILES = $CONFIG_FILES
25600 CONFIG_HEADERS = $CONFIG_HEADERS
25601 CONFIG_LINKS = $CONFIG_LINKS
25602 CONFIG_COMMANDS = $CONFIG_COMMANDS
25605 on `(hostname || uname -n) 2>/dev/null | sed 1q`
25610 case $ac_config_files in *"
25611 "*) set x $ac_config_files; shift; ac_config_files=$*;;
25614 case $ac_config_headers in *"
25615 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
25619 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25620 # Files that config.status was made for.
25621 config_files="$ac_config_files"
25622 config_headers="$ac_config_headers"
25623 config_commands="$ac_config_commands"
25627 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25629 \`$as_me' instantiates files and other configuration actions
25630 from templates according to the current configuration. Unless the files
25631 and actions are specified as TAGs, all are instantiated by default.
25633 Usage: $0 [OPTION]... [TAG]...
25635 -h, --help print this help, then exit
25636 -V, --version print version number and configuration settings, then exit
25637 --config print configuration, then exit
25638 -q, --quiet, --silent
25639 do not print progress messages
25640 -d, --debug don't remove temporary files
25641 --recheck update $as_me by reconfiguring in the same conditions
25642 --file=FILE[:TEMPLATE]
25643 instantiate the configuration file FILE
25644 --header=FILE[:TEMPLATE]
25645 instantiate the configuration header FILE
25647 Configuration files:
25650 Configuration headers:
25653 Configuration commands:
25656 Report bugs to <http://savannah.gnu.org/bugs/?group=groff>.
25657 GNU Troff home page: <http://www.gnu.org/software/groff/>.
25658 General help using GNU software: <http://www.gnu.org/gethelp/>."
25661 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25662 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
25664 GNU Troff config.status 1.22.4
25665 configured by $0, generated by GNU Autoconf 2.69,
25666 with options \\"\$ac_cs_config\\"
25668 Copyright (C) 2012 Free Software Foundation, Inc.
25669 This config.status script is free software; the Free Software Foundation
25670 gives unlimited permission to copy, distribute and modify it."
25677 test -n "\$AWK" || AWK=awk
25680 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25681 # The default lists apply if the user does not specify any file.
25687 ac_option=`expr "X$1" : 'X\([^=]*\)='`
25688 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
25692 ac_option=`expr "X$1" : 'X\([^=]*\)='`
25704 # Handling of the options.
25705 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
25707 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
25708 $as_echo "$ac_cs_version"; exit ;;
25709 --config | --confi | --conf | --con | --co | --c )
25710 $as_echo "$ac_cs_config"; exit ;;
25711 --debug | --debu | --deb | --de | --d | -d )
25713 --file | --fil | --fi | --f )
25716 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
25717 '') as_fn_error $? "missing file argument" ;;
25719 as_fn_append CONFIG_FILES " '$ac_optarg'"
25720 ac_need_defaults=false;;
25721 --header | --heade | --head | --hea )
25724 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
25726 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
25727 ac_need_defaults=false;;
25729 # Conflict between --help and --header
25730 as_fn_error $? "ambiguous option: \`$1'
25731 Try \`$0 --help' for more information.";;
25732 --help | --hel | -h )
25733 $as_echo "$ac_cs_usage"; exit ;;
25734 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
25735 | -silent | --silent | --silen | --sile | --sil | --si | --s)
25738 # This is an error.
25739 -*) as_fn_error $? "unrecognized option: \`$1'
25740 Try \`$0 --help' for more information." ;;
25742 *) as_fn_append ac_config_targets " $1"
25743 ac_need_defaults=false ;;
25749 ac_configure_extra_args=
25751 if $ac_cs_silent; then
25753 ac_configure_extra_args="$ac_configure_extra_args --silent"
25757 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25758 if \$ac_cs_recheck; then
25759 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
25761 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
25762 CONFIG_SHELL='$SHELL'
25763 export CONFIG_SHELL
25768 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25772 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
25773 ## Running $as_me. ##
25779 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25783 AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
25787 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25789 # Handling of arguments.
25790 for ac_config_target in $ac_config_targets
25792 case $ac_config_target in
25793 "src/include/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/include/config.h:src/include/config.hin" ;;
25794 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
25795 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
25796 "test-groff") CONFIG_FILES="$CONFIG_FILES test-groff" ;;
25798 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
25803 # If the user did not use the arguments to specify the items to instantiate,
25804 # then the envvar interface is used. Set only those that are not.
25805 # We use the long form for the default assignment because of an extremely
25806 # bizarre bug on SunOS 4.1.3.
25807 if $ac_need_defaults; then
25808 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
25809 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
25810 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
25813 # Have a temporary directory for convenience. Make it in the build tree
25814 # simply because there is no reason against having it here, and in addition,
25815 # creating and moving files from /tmp can sometimes cause problems.
25816 # Hook for its removal unless debugging.
25817 # Note that there is a small window in which the directory will not be cleaned:
25818 # after its creation but before its name has been assigned to `$tmp'.
25822 trap 'exit_status=$?
25823 : "${ac_tmp:=$tmp}"
25824 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
25826 trap 'as_fn_exit 1' 1 2 13 15
25828 # Create a (secure) tmp directory for tmp files.
25831 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
25835 tmp=./conf$$-$RANDOM
25836 (umask 077 && mkdir "$tmp")
25837 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
25840 # Set up the scripts for CONFIG_FILES section.
25841 # No need to generate them if there are no CONFIG_FILES.
25842 # This happens for instance with `./config.status config.h'.
25843 if test -n "$CONFIG_FILES"; then
25846 ac_cr=`echo X | tr X '\015'`
25847 # On cygwin, bash can eat \r inside `` if the user requested igncr.
25848 # But we know of no other shell where ac_cr would be empty at this
25849 # point, so we can use a bashism as a fallback.
25850 if test "x$ac_cr" = x; then
25851 eval ac_cr=\$\'\\r\'
25853 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
25854 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
25857 ac_cs_awk_cr=$ac_cr
25860 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
25865 echo "cat >conf$$subs.awk <<_ACEOF" &&
25866 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
25868 } >conf$$subs.sh ||
25869 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
25870 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
25872 for ac_last_try in false false false false false :; do
25873 . ./conf$$subs.sh ||
25874 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
25876 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
25877 if test $ac_delim_n = $ac_delim_num; then
25879 elif $ac_last_try; then
25880 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
25882 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
25885 rm -f conf$$subs.sh
25887 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25888 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
25892 s/^/S["/; s/!.*/"]=/
25902 s/\(.\{148\}\)..*/\1/
25904 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
25909 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
25916 s/\(.\{148\}\)..*/\1/
25918 s/["\\]/\\&/g; s/^/"/; s/$/"/
25922 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
25927 ' <conf$$subs.awk | sed '
25932 ' >>$CONFIG_STATUS || ac_write_fail=1
25933 rm -f conf$$subs.awk
25934 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25936 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
25937 for (key in S) S_is_set[key] = 1
25943 nfields = split(line, field, "@")
25945 len = length(field[1])
25946 for (i = 2; i < nfields; i++) {
25948 keylen = length(key)
25949 if (S_is_set[key]) {
25951 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
25952 len += length(value) + length(field[++i])
25963 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25964 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
25965 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
25968 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
25969 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
25972 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
25973 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
25974 # trailing colons and then remove the whole line if VPATH becomes empty
25975 # (actually we leave an empty line to preserve line numbers).
25976 if test "x$srcdir" = x.; then
25977 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
25995 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25996 fi # test -n "$CONFIG_FILES"
25998 # Set up the scripts for CONFIG_HEADERS section.
25999 # No need to generate them if there are no CONFIG_HEADERS.
26000 # This happens for instance with `./config.status Makefile'.
26001 if test -n "$CONFIG_HEADERS"; then
26002 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
26006 # Transform confdefs.h into an awk script `defines.awk', embedded as
26007 # here-document in config.status, that substitutes the proper values into
26008 # config.h.in to produce config.h.
26010 # Create a delimiter string that does not exist in confdefs.h, to ease
26011 # handling of long lines.
26013 for ac_last_try in false false :; do
26014 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
26015 if test -z "$ac_tt"; then
26017 elif $ac_last_try; then
26018 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
26020 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
26024 # For the awk script, D is an array of macro values keyed by name,
26025 # likewise P contains macro parameters if any. Preserve backslash
26026 # newline sequences.
26028 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
26030 s/.\{148\}/&'"$ac_delim"'/g
26033 s/^[ ]*#[ ]*define[ ][ ]*/ /
26040 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
26042 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
26046 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
26047 D["\1"]=" \3\\\\\\n"\\/p
26049 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
26054 s/.\{148\}/&'"$ac_delim"'/g
26059 s/["\\]/\\&/g; s/^/"/; s/$/"/p
26062 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
26064 ' <confdefs.h | sed '
26065 s/'"$ac_delim"'/"\\\
26066 "/g' >>$CONFIG_STATUS || ac_write_fail=1
26068 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26069 for (key in D) D_is_set[key] = 1
26072 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
26074 split(line, arg, " ")
26075 if (arg[1] == "#") {
26079 defundef = substr(arg[1], 2)
26082 split(mac1, mac2, "(") #)
26084 prefix = substr(line, 1, index(line, defundef) - 1)
26085 if (D_is_set[macro]) {
26086 # Preserve the white space surrounding the "#".
26087 print prefix "define", macro P[macro] D[macro]
26090 # Replace #undef with comments. This is necessary, for example,
26091 # in the case of _POSIX_SOURCE, which is predefined and required
26092 # on some systems where configure will not decide to define it.
26093 if (defundef == "undef") {
26094 print "/*", prefix defundef, macro, "*/"
26102 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26103 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
26104 fi # test -n "$CONFIG_HEADERS"
26107 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
26112 :[FHLC]) ac_mode=$ac_tag; continue;;
26114 case $ac_mode$ac_tag in
26116 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
26117 :[FH]-) ac_tag=-:-;;
26118 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
26135 -) ac_f="$ac_tmp/stdin";;
26136 *) # Look for the file first in the build tree, then in the source tree
26137 # (if the path is not absolute). The absolute path cannot be DOS-style,
26138 # because $ac_f cannot contain `:'.
26142 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
26144 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
26146 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
26147 as_fn_append ac_file_inputs " '$ac_f'"
26150 # Let's still pretend it is `configure' which instantiates (i.e., don't
26151 # use $as_me), people would be surprised to read:
26152 # /* config.h. Generated by config.status. */
26153 configure_input='Generated from '`
26154 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
26156 if test x"$ac_file" != x-; then
26157 configure_input="$ac_file. $configure_input"
26158 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
26159 $as_echo "$as_me: creating $ac_file" >&6;}
26161 # Neutralize special characters interpreted by sed in replacement strings.
26162 case $configure_input in #(
26163 *\&* | *\|* | *\\* )
26164 ac_sed_conf_input=`$as_echo "$configure_input" |
26165 sed 's/[\\\\&|]/\\\\&/g'`;; #(
26166 *) ac_sed_conf_input=$configure_input;;
26170 *:-:* | *:-) cat >"$ac_tmp/stdin" \
26171 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
26176 ac_dir=`$as_dirname -- "$ac_file" ||
26177 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26178 X"$ac_file" : 'X\(//\)[^/]' \| \
26179 X"$ac_file" : 'X\(//\)$' \| \
26180 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
26181 $as_echo X"$ac_file" |
26182 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26186 /^X\(\/\/\)[^/].*/{
26199 as_dir="$ac_dir"; as_fn_mkdir_p
26203 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
26205 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
26206 # A ".." for each directory in $ac_dir_suffix.
26207 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
26208 case $ac_top_builddir_sub in
26209 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
26210 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
26213 ac_abs_top_builddir=$ac_pwd
26214 ac_abs_builddir=$ac_pwd$ac_dir_suffix
26215 # for backward compatibility:
26216 ac_top_builddir=$ac_top_build_prefix
26219 .) # We are building in place.
26221 ac_top_srcdir=$ac_top_builddir_sub
26222 ac_abs_top_srcdir=$ac_pwd ;;
26223 [\\/]* | ?:[\\/]* ) # Absolute name.
26224 ac_srcdir=$srcdir$ac_dir_suffix;
26225 ac_top_srcdir=$srcdir
26226 ac_abs_top_srcdir=$srcdir ;;
26227 *) # Relative name.
26228 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
26229 ac_top_srcdir=$ac_top_build_prefix$srcdir
26230 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
26232 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
26242 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
26243 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
26245 ac_MKDIR_P=$MKDIR_P
26247 [\\/$]* | ?:[\\/]* ) ;;
26248 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
26252 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26253 # If the template does not know about datarootdir, expand it.
26254 # FIXME: This hack should be removed a few years after 2.60.
26255 ac_datarootdir_hack=; ac_datarootdir_seen=
26266 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
26267 *datarootdir*) ac_datarootdir_seen=yes;;
26268 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
26269 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
26270 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
26272 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26273 ac_datarootdir_hack='
26274 s&@datadir@&$datadir&g
26275 s&@docdir@&$docdir&g
26276 s&@infodir@&$infodir&g
26277 s&@localedir@&$localedir&g
26278 s&@mandir@&$mandir&g
26279 s&\\\${datarootdir}&$datarootdir&g' ;;
26283 # Neutralize VPATH when `$srcdir' = `.'.
26284 # Shell code in configure.ac might set extrasub.
26285 # FIXME: do we really want to maintain this feature?
26286 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26287 ac_sed_extra="$ac_vpsub
26290 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26292 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
26293 s|@configure_input@|$ac_sed_conf_input|;t t
26294 s&@top_builddir@&$ac_top_builddir_sub&;t t
26295 s&@top_build_prefix@&$ac_top_build_prefix&;t t
26296 s&@srcdir@&$ac_srcdir&;t t
26297 s&@abs_srcdir@&$ac_abs_srcdir&;t t
26298 s&@top_srcdir@&$ac_top_srcdir&;t t
26299 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
26300 s&@builddir@&$ac_builddir&;t t
26301 s&@abs_builddir@&$ac_abs_builddir&;t t
26302 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
26303 s&@INSTALL@&$ac_INSTALL&;t t
26304 s&@MKDIR_P@&$ac_MKDIR_P&;t t
26305 $ac_datarootdir_hack
26307 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
26308 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
26310 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
26311 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
26312 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
26313 "$ac_tmp/out"`; test -z "$ac_out"; } &&
26314 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
26315 which seems to be undefined. Please make sure it is defined" >&5
26316 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
26317 which seems to be undefined. Please make sure it is defined" >&2;}
26319 rm -f "$ac_tmp/stdin"
26321 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
26322 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
26324 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
26330 if test x"$ac_file" != x-; then
26332 $as_echo "/* $configure_input */" \
26333 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
26334 } >"$ac_tmp/config.h" \
26335 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
26336 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
26337 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
26338 $as_echo "$as_me: $ac_file is unchanged" >&6;}
26341 mv "$ac_tmp/config.h" "$ac_file" \
26342 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
26345 $as_echo "/* $configure_input */" \
26346 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
26347 || as_fn_error $? "could not create -" "$LINENO" 5
26349 # Compute "$ac_file"'s index in $config_headers.
26352 for _am_header in $config_headers :; do
26353 case $_am_header in
26354 $_am_arg | $_am_arg:* )
26357 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
26360 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
26361 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26362 X"$_am_arg" : 'X\(//\)[^/]' \| \
26363 X"$_am_arg" : 'X\(//\)$' \| \
26364 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
26365 $as_echo X"$_am_arg" |
26366 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26370 /^X\(\/\/\)[^/].*/{
26382 s/.*/./; q'`/stamp-h$_am_stamp_count
26385 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
26386 $as_echo "$as_me: executing $ac_file commands" >&6;}
26391 case $ac_file$ac_mode in
26392 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
26393 # Older Autoconf quotes --file arguments for eval, but not when files
26394 # are listed without --file. Let's play safe and only enable the eval
26395 # if we detect the quoting.
26396 # TODO: see whether this extra hack can be removed once we start
26397 # requiring Autoconf 2.70 or later.
26398 case $CONFIG_FILES in #(
26400 eval set x "$CONFIG_FILES" ;; #(
26402 set x $CONFIG_FILES ;; #(
26407 # Used to flag and report bootstrapping failures.
26411 # Strip MF so we end up with the name of the file.
26412 am_mf=`$as_echo "$am_mf" | sed -e 's/:.*$//'`
26413 # Check whether this is an Automake generated Makefile which includes
26414 # dependency-tracking related rules and includes.
26415 # Grep'ing the whole file directly is not great: AIX grep has a line
26416 # limit of 2048, but all sed's we know have understand at least 4000.
26417 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
26419 am_dirpart=`$as_dirname -- "$am_mf" ||
26420 $as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26421 X"$am_mf" : 'X\(//\)[^/]' \| \
26422 X"$am_mf" : 'X\(//\)$' \| \
26423 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
26424 $as_echo X"$am_mf" |
26425 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26429 /^X\(\/\/\)[^/].*/{
26442 am_filepart=`$as_basename -- "$am_mf" ||
26443 $as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
26444 X"$am_mf" : 'X\(//\)$' \| \
26445 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
26446 $as_echo X/"$am_mf" |
26447 sed '/^.*\/\([^/][^/]*\)\/*$/{
26460 { echo "$as_me:$LINENO: cd "$am_dirpart" \
26461 && sed -e '/# am--include-marker/d' "$am_filepart" \
26462 | $MAKE -f - am--depfiles" >&5
26463 (cd "$am_dirpart" \
26464 && sed -e '/# am--include-marker/d' "$am_filepart" \
26465 | $MAKE -f - am--depfiles) >&5 2>&5
26467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26468 (exit $ac_status); } || am_rc=$?
26470 if test $am_rc -ne 0; then
26471 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
26472 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26473 as_fn_error $? "Something went wrong bootstrapping makefile fragments
26474 for automatic dependency tracking. Try re-running configure with the
26475 '--disable-dependency-tracking' option to at least be able to build
26476 the package (albeit without support for automatic dependency tracking).
26477 See \`config.log' for more details" "$LINENO" 5; }
26479 { am_dirpart=; unset am_dirpart;}
26480 { am_filepart=; unset am_filepart;}
26481 { am_mf=; unset am_mf;}
26482 { am_rc=; unset am_rc;}
26483 rm -f conftest-deps.mk
26486 "test-groff":F) chmod +x test-groff ;;
26494 ac_clean_files=$ac_clean_files_save
26496 test $ac_write_fail = 0 ||
26497 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
26500 # configure is writing to config.log, and then calls config.status.
26501 # config.status does its own redirection, appending to config.log.
26502 # Unfortunately, on DOS this fails, as config.log is still kept open
26503 # by configure, so config.status won't be able to write to it; its
26504 # output is simply discarded. So we exec the FD to /dev/null,
26505 # effectively closing config.log, so it can be properly (re)opened and
26506 # appended to by config.status. When coming back to configure, we
26507 # need to make the FD available again.
26508 if test "$no_create" != yes; then
26510 ac_config_status_args=
26511 test "$silent" = yes &&
26512 ac_config_status_args="$ac_config_status_args --quiet"
26514 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
26516 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
26517 # would make configure fail if this is the last instruction.
26518 $ac_cs_success || as_fn_exit 1
26520 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
26521 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
26522 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
26527 ${PACKAGE_NAME} version ${PACKAGE_VERSION}
26528 ----------------------------------------------------------------------
26530 Compiler : ${CC} ${CFLAGS} ${CPPFLAGS}"
26531 if test "x$groff_no_x" = "xyes"; then
26537 X11 resources dir : $appresdir"
26539 if test "x$doc" = x; then
26544 Doc build : ${doc} "
26547 URW fonts for pdf : $groff_have_urw_fonts
26548 Use uchardet library for preconv: $groff_have_uchardet
26549 pdftools for distcheck : $groff_have_pdftools"
26551 ----------------------------------------------------------------------"
26553 if test -z "$groff_no_x"; then
26554 if test "x$with_appresdir" = "x"; then
26555 { $as_echo "$as_me:${as_lineno-$LINENO}:
26556 The application resource files for gxditview (GXditview and
26557 GXditview-color) will be installed in:
26561 (existing files will be saved by appending '.old' to the file
26564 To install them into a different directory, say,
26565 '/etc/X11/app-defaults', add
26566 '--with-appresdir=/etc/X11/app-defaults' to the configure script
26567 command-line options and rerun it ('prefix' value has no effect on
26568 a --with-appresdir option).
26570 If the gxditview resources are installed in a directory that is not
26571 one of the default X11 resources directories (common default
26572 directories are /usr/lib/X11/app-defaults,
26573 /usr/share/X11/app-defaults and /etc/X11/app-defaults), you will
26574 have to set the environment variable XFILESEARCHPATH to this
26575 path. More details can be found in the X(7) manual page, or in \"X
26576 Toolkit Intrinsics - C Language Interface manual\".
26579 The application resource files for gxditview (GXditview and
26580 GXditview-color) will be installed in:
26584 (existing files will be saved by appending '.old' to the file
26587 To install them into a different directory, say,
26588 '/etc/X11/app-defaults', add
26589 '--with-appresdir=/etc/X11/app-defaults' to the configure script
26590 command-line options and rerun it ('prefix' value has no effect on
26591 a --with-appresdir option).
26593 If the gxditview resources are installed in a directory that is not
26594 one of the default X11 resources directories (common default
26595 directories are /usr/lib/X11/app-defaults,
26596 /usr/share/X11/app-defaults and /etc/X11/app-defaults), you will
26597 have to set the environment variable XFILESEARCHPATH to this
26598 path. More details can be found in the X(7) manual page, or in \"X
26599 Toolkit Intrinsics - C Language Interface manual\".
26603 if test "$groff_have_urw_fonts" = no; then
26604 { $as_echo "$as_me:${as_lineno-$LINENO}:
26605 No URW fonts in .pfb format were found on your system, URW fonts
26606 generation for 'devpdf' will not work properly. These fonts can be
26609 http://downloads.ghostscript.com/public/fonts/urw-base35-v1.10.zip
26611 By default groff will search these fonts in the paths given by \`gs
26612 -h' and in these 2 default directories:
26613 '/usr/share/fonts/type1/gsfonts/' and
26614 '/opt/local/share/fonts/urw-fonts/' (paths used by
26615 font/devpdf/Foundry.in). You can also pass the option
26616 '--with-urw-fonts-dir=DIR' to 'configure' to set a custom path. You
26617 would need to re-run the 'configure' script after installing these
26622 No URW fonts in .pfb format were found on your system, URW fonts
26623 generation for 'devpdf' will not work properly. These fonts can be
26626 http://downloads.ghostscript.com/public/fonts/urw-base35-v1.10.zip
26628 By default groff will search these fonts in the paths given by \`gs
26629 -h' and in these 2 default directories:
26630 '/usr/share/fonts/type1/gsfonts/' and
26631 '/opt/local/share/fonts/urw-fonts/' (paths used by
26632 font/devpdf/Foundry.in). You can also pass the option
26633 '--with-urw-fonts-dir=DIR' to 'configure' to set a custom path. You
26634 would need to re-run the 'configure' script after installing these
26640 if test "x$groff_have_uchardet" = "xno" -a "x$with_uchardet" != "xno"; then
26641 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
26642 uchardet library was not found; preprocessor 'preconv', which uses it to detect
26643 the input file encoding, might not work properly (to check how and in which
26644 order 'preconv' tries to determine the file encoding, see its man page).
26646 $as_echo "$as_me: WARNING:
26647 uchardet library was not found; preprocessor 'preconv', which uses it to detect
26648 the input file encoding, might not work properly (to check how and in which
26649 order 'preconv' tries to determine the file encoding, see its man page).