2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for man-db 2.8.3.
5 # Report bugs to <cjwatson@debian.org>.
8 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
17 # Be more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
27 case `(set -o) 2>/dev/null` in #(
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo_n='print -rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55 as_echo_n='/usr/ucb/echo -n'
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
68 as_echo_n='sh -c $as_echo_n_body as_echo'
71 as_echo='sh -c $as_echo_body as_echo'
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
85 # We need space, tab and new line, in precisely that order. Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
91 # Find who we are. Look in the path if we contain no directory separator.
94 *[\\/]* ) as_myself=$0 ;;
95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
99 test -z "$as_dir" && as_dir=.
100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
106 # We did not find ourselves, most probably we were run as `sh COMMAND'
107 # in which case we are not to be found in the path.
108 if test "x$as_myself" = x; then
111 if test ! -f "$as_myself"; then
112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
116 # Unset variables that we do not need and which cause bugs (e.g. in
117 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
118 # suppresses any "Segmentation fault" message there. '((' could
119 # trigger a bug in pdksh 5.2.14.
120 for as_var in BASH_ENV ENV MAIL MAILPATH
121 do eval test x\${$as_var+set} = xset \
122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
135 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
137 # Use a proper internal environment variable to ensure we don't fall
138 # into an infinite loop, continuously re-executing ourselves.
139 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140 _as_can_reexec=no; export _as_can_reexec;
141 # We cannot yet assume a decent shell, so we have to provide a
142 # neutralization value for shells without unset; and this also
143 # works around shells that cannot unset nonexistent variables.
144 # Preserve -v and -x to the replacement shell.
147 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
149 *v*x* | *x*v* ) as_opts=-vx ;;
154 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155 # Admittedly, this is quite paranoid, since all the known shells bail
156 # out after a failed `exec'.
157 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
160 # We don't want this to propagate to other subprocesses.
161 { _as_can_reexec=; unset _as_can_reexec;}
162 if test "x$CONFIG_SHELL" = x; then
163 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
166 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167 # is contrary to our usage. Disable this feature.
168 alias -g '\${1+\"\$@\"}'='\"\$@\"'
171 case \`(set -o) 2>/dev/null\` in #(
179 as_required="as_fn_return () { (exit \$1); }
180 as_fn_success () { as_fn_return 0; }
181 as_fn_failure () { as_fn_return 1; }
182 as_fn_ret_success () { return 0; }
183 as_fn_ret_failure () { return 1; }
186 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
193 exitcode=1; echo positional parameters were not saved.
195 test x\$exitcode = x0 || exit 1
197 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
198 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
199 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
201 test \$(( 1 + 1 )) = 2 || exit 1
203 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
204 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
205 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
206 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
207 PATH=/empty FPATH=/empty; export PATH FPATH
208 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
209 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
210 if (eval "$as_required") 2>/dev/null; then :
215 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
220 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
223 test -z "$as_dir" && as_dir=.
227 for as_base in sh bash ksh sh5; do
228 # Try only shells that exist, to save several forks.
229 as_shell=$as_dir/$as_base
230 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
231 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
232 CONFIG_SHELL=$as_shell as_have_required=yes
233 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
241 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
242 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
243 CONFIG_SHELL=$SHELL as_have_required=yes
248 if test "x$CONFIG_SHELL" != x; then :
250 # We cannot yet assume a decent shell, so we have to provide a
251 # neutralization value for shells without unset; and this also
252 # works around shells that cannot unset nonexistent variables.
253 # Preserve -v and -x to the replacement shell.
256 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
258 *v*x* | *x*v* ) as_opts=-vx ;;
263 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
264 # Admittedly, this is quite paranoid, since all the known shells bail
265 # out after a failed `exec'.
266 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
270 if test x$as_have_required = xno; then :
271 $as_echo "$0: This script requires a shell more modern than all"
272 $as_echo "$0: the shells that I found on your system."
273 if test x${ZSH_VERSION+set} = xset ; then
274 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
275 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
277 $as_echo "$0: Please tell bug-autoconf@gnu.org and
278 $0: cjwatson@debian.org about your system, including any
279 $0: error possibly output before this message. Then install
280 $0: a modern shell, or manually run the script under such a
281 $0: shell if you do have one."
287 SHELL=${CONFIG_SHELL-/bin/sh}
289 # Unset more variables known to interfere with behavior of common tools.
290 CLICOLOR_FORCE= GREP_OPTIONS=
291 unset CLICOLOR_FORCE GREP_OPTIONS
293 ## --------------------- ##
294 ## M4sh Shell Functions. ##
295 ## --------------------- ##
298 # Portably unset VAR.
301 { eval $1=; unset $1;}
305 # as_fn_set_status STATUS
306 # -----------------------
307 # Set $? to STATUS, without forking.
315 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
325 # Create "$as_dir" as a directory, including parents if necessary.
330 -*) as_dir=./$as_dir;;
332 test -d "$as_dir" || eval $as_mkdir_p || {
336 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
339 as_dirs="'$as_qdir' $as_dirs"
340 as_dir=`$as_dirname -- "$as_dir" ||
341 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
342 X"$as_dir" : 'X\(//\)[^/]' \| \
343 X"$as_dir" : 'X\(//\)$' \| \
344 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
345 $as_echo X"$as_dir" |
346 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
363 test -d "$as_dir" && break
365 test -z "$as_dirs" || eval "mkdir $as_dirs"
366 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
371 # as_fn_executable_p FILE
372 # -----------------------
373 # Test if FILE is an executable regular file.
374 as_fn_executable_p ()
376 test -f "$1" && test -x "$1"
377 } # as_fn_executable_p
378 # as_fn_append VAR VALUE
379 # ----------------------
380 # Append the text in VALUE to the end of the definition contained in VAR. Take
381 # advantage of any shell optimizations that allow amortized linear growth over
382 # repeated appends, instead of the typical quadratic growth present in naive
384 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
385 eval 'as_fn_append ()
398 # Perform arithmetic evaluation on the ARGs, and store the result in the
399 # global $as_val. Take advantage of shells that can avoid forks. The arguments
400 # must be portable across $(()) and expr.
401 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
409 as_val=`expr "$@" || test $? -eq 1`
414 # as_fn_error STATUS ERROR [LINENO LOG_FD]
415 # ----------------------------------------
416 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
417 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
418 # script with STATUS, using 1 if that was 0.
421 as_status=$1; test $as_status -eq 0 && as_status=1
423 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
424 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
426 $as_echo "$as_me: error: $2" >&2
427 as_fn_exit $as_status
430 if expr a : '\(a\)' >/dev/null 2>&1 &&
431 test "X`expr 00001 : '.*\(...\)'`" = X001; then
437 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
443 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
449 as_me=`$as_basename -- "$0" ||
450 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
451 X"$0" : 'X\(//\)$' \| \
452 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
454 sed '/^.*\/\([^/][^/]*\)\/*$/{
468 # Avoid depending upon Character Ranges.
469 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
470 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
471 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
472 as_cr_digits='0123456789'
473 as_cr_alnum=$as_cr_Letters$as_cr_digits
476 as_lineno_1=$LINENO as_lineno_1a=$LINENO
477 as_lineno_2=$LINENO as_lineno_2a=$LINENO
478 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
479 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
480 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
492 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
496 chmod +x "$as_me.lineno" ||
497 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
499 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
500 # already done that, so ensure we don't try to do so again and fall
501 # in an infinite loop. This has already happened in practice.
502 _as_can_reexec=no; export _as_can_reexec
503 # Don't try to exec as it changes $[0], causing all sort of problems
504 # (the dirname of $[0] is not the place where we might find the
505 # original and so on. Autoconf is especially sensitive to this).
507 # Exit status is that of the last command.
511 ECHO_C= ECHO_N= ECHO_T=
512 case `echo -n x` in #(((((
514 case `echo 'xy\c'` in
515 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
517 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
524 rm -f conf$$ conf$$.exe conf$$.file
525 if test -d conf$$.dir; then
526 rm -f conf$$.dir/conf$$.file
529 mkdir conf$$.dir 2>/dev/null
531 if (echo >conf$$.file) 2>/dev/null; then
532 if ln -s conf$$.file conf$$ 2>/dev/null; then
534 # ... but there are two gotchas:
535 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
536 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
537 # In both cases, we have to default to `cp -pR'.
538 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
540 elif ln conf$$.file conf$$ 2>/dev/null; then
548 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
549 rmdir conf$$.dir 2>/dev/null
551 if mkdir -p . 2>/dev/null; then
552 as_mkdir_p='mkdir -p "$as_dir"'
554 test -d ./-p && rmdir ./-p
559 as_executable_p=as_fn_executable_p
561 # Sed expression to map a string onto a valid CPP name.
562 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
564 # Sed expression to map a string onto a valid variable name.
565 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
567 SHELL=${CONFIG_SHELL-/bin/sh}
570 test -n "$DJDIR" || exec 7<&0 </dev/null
574 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
575 # so uname gets run too.
576 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
581 ac_default_prefix=/usr/local
583 ac_config_libobj_dir=.
590 # Identity of this package.
591 PACKAGE_NAME='man-db'
592 PACKAGE_TARNAME='man-db'
593 PACKAGE_VERSION='2.8.3'
594 PACKAGE_STRING='man-db 2.8.3'
595 PACKAGE_BUGREPORT='cjwatson@debian.org'
598 ac_unique_file="src/man.c"
599 # Factoring default headers for most tests.
600 ac_includes_default="\
602 #ifdef HAVE_SYS_TYPES_H
603 # include <sys/types.h>
605 #ifdef HAVE_SYS_STAT_H
606 # include <sys/stat.h>
612 # ifdef HAVE_STDLIB_H
617 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
622 #ifdef HAVE_STRINGS_H
623 # include <strings.h>
625 #ifdef HAVE_INTTYPES_H
626 # include <inttypes.h>
635 gl_use_threads_default=
638 gl_fnmatch_required=POSIX
639 gl_getopt_required=POSIX
640 gl_getopt_required=POSIX
642 ac_subst_vars='gltests_LTLIBOBJS
652 CROSS_COMPILING_FALSE
688 XGETTEXT_EXTRA_OPTIONS
696 GETTEXT_MACRO_VERSION
702 NEXT_AS_FIRST_DIRECTIVE_WCTYPE_H
715 NEXT_AS_FIRST_DIRECTIVE_WCHAR_H
719 NEXT_AS_FIRST_DIRECTIVE_UNISTD_H
721 PTHREAD_H_DEFINES_STRUCT_TIMESPEC
722 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC
723 TIME_H_DEFINES_STRUCT_TIMESPEC
724 NEXT_AS_FIRST_DIRECTIVE_TIME_H
726 GL_GENERATE_SYSEXITS_H_FALSE
727 GL_GENERATE_SYSEXITS_H_TRUE
730 NEXT_AS_FIRST_DIRECTIVE_SYSEXITS_H
733 NEXT_AS_FIRST_DIRECTIVE_SYS_UIO_H
736 NEXT_AS_FIRST_DIRECTIVE_SYS_TYPES_H
738 NEXT_AS_FIRST_DIRECTIVE_SYS_IOCTL_H
742 NEXT_AS_FIRST_DIRECTIVE_SYS_FILE_H
745 NEXT_AS_FIRST_DIRECTIVE_STRINGS_H
747 NEXT_AS_FIRST_DIRECTIVE_STRING_H
749 HAVE_DECL_STRNCASECMP
753 NEXT_AS_FIRST_DIRECTIVE_STDLIB_H
755 NEXT_AS_FIRST_DIRECTIVE_STDIO_H
757 GL_GENERATE_STDINT_H_FALSE
758 GL_GENERATE_STDINT_H_TRUE
767 HAVE_SIGNED_SIG_ATOMIC_T
770 BITSIZEOF_SIG_ATOMIC_T
776 NEXT_AS_FIRST_DIRECTIVE_STDINT_H
781 HAVE_UNSIGNED_LONG_LONG_INT
784 GL_GENERATE_STDBOOL_H_FALSE
785 GL_GENERATE_STDBOOL_H_TRUE
787 GL_GENERATE_STDARG_H_FALSE
788 GL_GENERATE_STDARG_H_TRUE
790 NEXT_AS_FIRST_DIRECTIVE_STDARG_H
792 GL_GENERATE_STDALIGN_H_FALSE
793 GL_GENERATE_STDALIGN_H_TRUE
795 NEXT_AS_FIRST_DIRECTIVE_SIGNAL_H
798 REPLACE_PTHREAD_SIGMASK
800 HAVE_TYPE_VOLATILE_SIG_ATOMIC_T
801 HAVE_STRUCT_SIGACTION_SA_SIGACTION
807 HAVE_POSIX_SIGNALBLOCKING
810 GNULIB_SIGNAL_H_SIGPIPE
812 GNULIB_PTHREAD_SIGMASK
818 NEXT_AS_FIRST_DIRECTIVE_SYS_SELECT_H
834 HAVE_DECL_LOCALTIME_R
840 APPLE_UNIVERSAL_BUILD
924 NEXT_AS_FIRST_DIRECTIVE_LOCALE_H
927 NEXT_AS_FIRST_DIRECTIVE_STDDEF_H
929 GL_GENERATE_STDDEF_H_FALSE
930 GL_GENERATE_STDDEF_H_TRUE
942 LOCALCHARSET_TESTS_ENVIRONMENT
944 IGNORE_UNUSED_LIBRARIES_CFLAGS
945 HAVE_LANGINFO_YESEXPR
947 HAVE_LANGINFO_T_FMT_AMPM
948 HAVE_LANGINFO_CODESET
950 NEXT_AS_FIRST_DIRECTIVE_LANGINFO_H
957 NEXT_AS_FIRST_DIRECTIVE_SYS_SOCKET_H
961 HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY
962 HAVE_STRUCT_SOCKADDR_STORAGE
979 GL_GENERATE_GLOB_H_FALSE
980 GL_GENERATE_GLOB_H_TRUE
982 NEXT_AS_FIRST_DIRECTIVE_SYS_TIME_H
984 REPLACE_STRUCT_TIMEVAL
992 GNULIB_GL_UNISTD_H_GETOPT
995 NEXT_AS_FIRST_DIRECTIVE_GETOPT_H
1004 REPLACE_STDIO_WRITE_FUNCS
1005 REPLACE_STDIO_READ_FUNCS
1014 REPLACE_OBSTACK_PRINTF
1039 HAVE_DECL_OBSTACK_PRINTF
1045 GNULIB_VSPRINTF_POSIX
1047 GNULIB_VPRINTF_POSIX
1049 GNULIB_VFPRINTF_POSIX
1056 GNULIB_STDIO_H_SIGPIPE
1057 GNULIB_STDIO_H_NONBLOCKING
1058 GNULIB_SPRINTF_POSIX
1072 GNULIB_OBSTACK_PRINTF_POSIX
1073 GNULIB_OBSTACK_PRINTF
1089 GNULIB_FPRINTF_POSIX
1098 WINDOWS_64_BIT_ST_SIZE
1099 NEXT_AS_FIRST_DIRECTIVE_SYS_STAT_H
1134 GL_GENERATE_FNMATCH_H_FALSE
1135 GL_GENERATE_FNMATCH_H_TRUE
1140 GL_GENERATE_FLOAT_H_FALSE
1141 GL_GENERATE_FLOAT_H_TRUE
1143 NEXT_AS_FIRST_DIRECTIVE_FLOAT_H
1145 NEXT_AS_FIRST_DIRECTIVE_FCNTL_H
1162 GL_GENERATE_ERRNO_H_FALSE
1163 GL_GENERATE_ERRNO_H_TRUE
1165 NEXT_AS_FIRST_DIRECTIVE_ERRNO_H
1168 NEXT_AS_FIRST_DIRECTIVE_DIRENT_H
1171 PRAGMA_SYSTEM_HEADER
1172 INCLUDE_NEXT_AS_FIRST_DIRECTIVE
1199 SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS
1200 SYS_IOCTL_H_HAVE_WINSOCK2_H
1202 HAVE_MSVC_INVALID_PARAMETER_HANDLER
1204 UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS
1205 UNISTD_H_HAVE_WINSOCK2_H
1226 REPLACE_GETDTABLESIZE
1227 REPLACE_GETDOMAINNAME
1238 HAVE_DECL_SETHOSTNAME
1239 HAVE_DECL_GETUSERSHELL
1240 HAVE_DECL_GETPAGESIZE
1241 HAVE_DECL_GETLOGIN_R
1242 HAVE_DECL_GETDOMAINNAME
1281 GNULIB_UNISTD_H_SIGPIPE
1282 GNULIB_UNISTD_H_NONBLOCKING
1308 GNULIB_GETDTABLESIZE
1309 GNULIB_GETDOMAINNAME
1338 REPLACE_CANONICALIZE_FILE_NAME
1343 HAVE_STRUCT_RANDOM_DATA
1365 HAVE_DECL_GETLOADAVG
1366 HAVE_CANONICALIZE_FILE_NAME
1377 GNULIB_SECURE_GETENV
1380 GNULIB_REALLOC_POSIX
1397 GNULIB_CANONICALIZE_FILE_NAME
1493 GL_GENERATE_ALLOCA_H_FALSE
1494 GL_GENERATE_ALLOCA_H_TRUE
1498 GL_COND_LIBTOOL_FALSE
1499 GL_COND_LIBTOOL_TRUE
1543 config_file_basename
1601 MAINTAINER_MODE_FALSE
1602 MAINTAINER_MODE_TRUE
1604 AM_DEFAULT_VERBOSITY
1615 INSTALL_STRIP_PROGRAM
1658 program_transform_name
1671 enable_option_checking
1673 enable_maintainer_mode
1674 enable_dependency_tracking
1690 enable_automatic_create
1691 enable_automatic_update
1694 with_systemdtmpfilesdir
1719 with_libiconv_prefix
1723 ac_precious_vars='build_alias
1742 # Initialize some variables set by options.
1744 ac_init_version=false
1745 ac_unrecognized_opts=
1746 ac_unrecognized_sep=
1747 # The variables have the same names as the options, with
1748 # dashes changed to underlines.
1749 cache_file=/dev/null
1756 program_transform_name=s,x,x,
1764 # Installation directory options.
1765 # These are left unexpanded so users can "make install exec_prefix=/foo"
1766 # and all the variables that are supposed to be based on exec_prefix
1767 # by default will actually change.
1768 # Use braces instead of parens because sh, perl, etc. also accept them.
1769 # (The list follows the same order as the GNU Coding Standards.)
1770 bindir='${exec_prefix}/bin'
1771 sbindir='${exec_prefix}/sbin'
1772 libexecdir='${exec_prefix}/libexec'
1773 datarootdir='${prefix}/share'
1774 datadir='${datarootdir}'
1775 sysconfdir='${prefix}/etc'
1776 sharedstatedir='${prefix}/com'
1777 localstatedir='${prefix}/var'
1778 runstatedir='${localstatedir}/run'
1779 includedir='${prefix}/include'
1780 oldincludedir='/usr/include'
1781 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1782 infodir='${datarootdir}/info'
1787 libdir='${exec_prefix}/lib'
1788 localedir='${datarootdir}/locale'
1789 mandir='${datarootdir}/man'
1795 # If the previous option needs an argument, assign it.
1796 if test -n "$ac_prev"; then
1797 eval $ac_prev=\$ac_option
1803 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1808 # Accept the important Cygnus configure options, so we can diagnose typos.
1810 case $ac_dashdash$ac_option in
1814 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1816 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1817 bindir=$ac_optarg ;;
1819 -build | --build | --buil | --bui | --bu)
1820 ac_prev=build_alias ;;
1821 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1822 build_alias=$ac_optarg ;;
1824 -cache-file | --cache-file | --cache-fil | --cache-fi \
1825 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1826 ac_prev=cache_file ;;
1827 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1828 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1829 cache_file=$ac_optarg ;;
1831 --config-cache | -C)
1832 cache_file=config.cache ;;
1834 -datadir | --datadir | --datadi | --datad)
1836 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1837 datadir=$ac_optarg ;;
1839 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1840 | --dataroo | --dataro | --datar)
1841 ac_prev=datarootdir ;;
1842 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1843 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1844 datarootdir=$ac_optarg ;;
1846 -disable-* | --disable-*)
1847 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1848 # Reject names that are not valid shell variable names.
1849 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1850 as_fn_error $? "invalid feature name: $ac_useropt"
1851 ac_useropt_orig=$ac_useropt
1852 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1853 case $ac_user_opts in
1855 "enable_$ac_useropt"
1857 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1858 ac_unrecognized_sep=', ';;
1860 eval enable_$ac_useropt=no ;;
1862 -docdir | --docdir | --docdi | --doc | --do)
1864 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1865 docdir=$ac_optarg ;;
1867 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1869 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1870 dvidir=$ac_optarg ;;
1872 -enable-* | --enable-*)
1873 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1874 # Reject names that are not valid shell variable names.
1875 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1876 as_fn_error $? "invalid feature name: $ac_useropt"
1877 ac_useropt_orig=$ac_useropt
1878 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1879 case $ac_user_opts in
1881 "enable_$ac_useropt"
1883 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1884 ac_unrecognized_sep=', ';;
1886 eval enable_$ac_useropt=\$ac_optarg ;;
1888 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1889 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1890 | --exec | --exe | --ex)
1891 ac_prev=exec_prefix ;;
1892 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1893 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1894 | --exec=* | --exe=* | --ex=*)
1895 exec_prefix=$ac_optarg ;;
1897 -gas | --gas | --ga | --g)
1898 # Obsolete; use --with-gas.
1901 -help | --help | --hel | --he | -h)
1902 ac_init_help=long ;;
1903 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1904 ac_init_help=recursive ;;
1905 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1906 ac_init_help=short ;;
1908 -host | --host | --hos | --ho)
1909 ac_prev=host_alias ;;
1910 -host=* | --host=* | --hos=* | --ho=*)
1911 host_alias=$ac_optarg ;;
1913 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1915 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1917 htmldir=$ac_optarg ;;
1919 -includedir | --includedir | --includedi | --included | --include \
1920 | --includ | --inclu | --incl | --inc)
1921 ac_prev=includedir ;;
1922 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1923 | --includ=* | --inclu=* | --incl=* | --inc=*)
1924 includedir=$ac_optarg ;;
1926 -infodir | --infodir | --infodi | --infod | --info | --inf)
1928 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1929 infodir=$ac_optarg ;;
1931 -libdir | --libdir | --libdi | --libd)
1933 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1934 libdir=$ac_optarg ;;
1936 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1937 | --libexe | --libex | --libe)
1938 ac_prev=libexecdir ;;
1939 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1940 | --libexe=* | --libex=* | --libe=*)
1941 libexecdir=$ac_optarg ;;
1943 -localedir | --localedir | --localedi | --localed | --locale)
1944 ac_prev=localedir ;;
1945 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1946 localedir=$ac_optarg ;;
1948 -localstatedir | --localstatedir | --localstatedi | --localstated \
1949 | --localstate | --localstat | --localsta | --localst | --locals)
1950 ac_prev=localstatedir ;;
1951 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1952 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1953 localstatedir=$ac_optarg ;;
1955 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1957 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1958 mandir=$ac_optarg ;;
1960 -nfp | --nfp | --nf)
1961 # Obsolete; use --without-fp.
1964 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1965 | --no-cr | --no-c | -n)
1968 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1969 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1972 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1973 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1974 | --oldin | --oldi | --old | --ol | --o)
1975 ac_prev=oldincludedir ;;
1976 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1977 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1978 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1979 oldincludedir=$ac_optarg ;;
1981 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1983 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1984 prefix=$ac_optarg ;;
1986 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1987 | --program-pre | --program-pr | --program-p)
1988 ac_prev=program_prefix ;;
1989 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1990 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1991 program_prefix=$ac_optarg ;;
1993 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1994 | --program-suf | --program-su | --program-s)
1995 ac_prev=program_suffix ;;
1996 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1997 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1998 program_suffix=$ac_optarg ;;
2000 -program-transform-name | --program-transform-name \
2001 | --program-transform-nam | --program-transform-na \
2002 | --program-transform-n | --program-transform- \
2003 | --program-transform | --program-transfor \
2004 | --program-transfo | --program-transf \
2005 | --program-trans | --program-tran \
2006 | --progr-tra | --program-tr | --program-t)
2007 ac_prev=program_transform_name ;;
2008 -program-transform-name=* | --program-transform-name=* \
2009 | --program-transform-nam=* | --program-transform-na=* \
2010 | --program-transform-n=* | --program-transform-=* \
2011 | --program-transform=* | --program-transfor=* \
2012 | --program-transfo=* | --program-transf=* \
2013 | --program-trans=* | --program-tran=* \
2014 | --progr-tra=* | --program-tr=* | --program-t=*)
2015 program_transform_name=$ac_optarg ;;
2017 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
2019 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
2020 pdfdir=$ac_optarg ;;
2022 -psdir | --psdir | --psdi | --psd | --ps)
2024 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
2027 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2028 | -silent | --silent | --silen | --sile | --sil)
2031 -runstatedir | --runstatedir | --runstatedi | --runstated \
2032 | --runstate | --runstat | --runsta | --runst | --runs \
2033 | --run | --ru | --r)
2034 ac_prev=runstatedir ;;
2035 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
2036 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
2037 | --run=* | --ru=* | --r=*)
2038 runstatedir=$ac_optarg ;;
2040 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
2042 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
2044 sbindir=$ac_optarg ;;
2046 -sharedstatedir | --sharedstatedir | --sharedstatedi \
2047 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
2048 | --sharedst | --shareds | --shared | --share | --shar \
2050 ac_prev=sharedstatedir ;;
2051 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
2052 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
2053 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
2055 sharedstatedir=$ac_optarg ;;
2057 -site | --site | --sit)
2059 -site=* | --site=* | --sit=*)
2062 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
2064 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
2065 srcdir=$ac_optarg ;;
2067 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
2068 | --syscon | --sysco | --sysc | --sys | --sy)
2069 ac_prev=sysconfdir ;;
2070 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
2071 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
2072 sysconfdir=$ac_optarg ;;
2074 -target | --target | --targe | --targ | --tar | --ta | --t)
2075 ac_prev=target_alias ;;
2076 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
2077 target_alias=$ac_optarg ;;
2079 -v | -verbose | --verbose | --verbos | --verbo | --verb)
2082 -version | --version | --versio | --versi | --vers | -V)
2083 ac_init_version=: ;;
2086 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
2087 # Reject names that are not valid shell variable names.
2088 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
2089 as_fn_error $? "invalid package name: $ac_useropt"
2090 ac_useropt_orig=$ac_useropt
2091 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
2092 case $ac_user_opts in
2096 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
2097 ac_unrecognized_sep=', ';;
2099 eval with_$ac_useropt=\$ac_optarg ;;
2101 -without-* | --without-*)
2102 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
2103 # Reject names that are not valid shell variable names.
2104 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
2105 as_fn_error $? "invalid package name: $ac_useropt"
2106 ac_useropt_orig=$ac_useropt
2107 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
2108 case $ac_user_opts in
2112 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
2113 ac_unrecognized_sep=', ';;
2115 eval with_$ac_useropt=no ;;
2118 # Obsolete; use --with-x.
2121 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
2122 | --x-incl | --x-inc | --x-in | --x-i)
2123 ac_prev=x_includes ;;
2124 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
2125 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
2126 x_includes=$ac_optarg ;;
2128 -x-libraries | --x-libraries | --x-librarie | --x-librari \
2129 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
2130 ac_prev=x_libraries ;;
2131 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
2132 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
2133 x_libraries=$ac_optarg ;;
2135 -*) as_fn_error $? "unrecognized option: \`$ac_option'
2136 Try \`$0 --help' for more information"
2140 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
2141 # Reject names that are not valid shell variable names.
2142 case $ac_envvar in #(
2143 '' | [0-9]* | *[!_$as_cr_alnum]* )
2144 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
2146 eval $ac_envvar=\$ac_optarg
2147 export $ac_envvar ;;
2150 # FIXME: should be removed in autoconf 3.0.
2151 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
2152 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
2153 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
2154 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
2160 if test -n "$ac_prev"; then
2161 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
2162 as_fn_error $? "missing argument to $ac_option"
2165 if test -n "$ac_unrecognized_opts"; then
2166 case $enable_option_checking in
2168 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
2169 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
2173 # Check all directory arguments for consistency.
2174 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
2175 datadir sysconfdir sharedstatedir localstatedir includedir \
2176 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
2177 libdir localedir mandir runstatedir
2179 eval ac_val=\$$ac_var
2180 # Remove trailing slashes.
2183 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
2184 eval $ac_var=\$ac_val;;
2186 # Be sure to have absolute directory names.
2188 [\\/$]* | ?:[\\/]* ) continue;;
2189 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
2191 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
2194 # There might be people who depend on the old broken behavior: `$host'
2195 # used to hold the argument of --host etc.
2196 # FIXME: To remove some day.
2199 target=$target_alias
2201 # FIXME: To remove some day.
2202 if test "x$host_alias" != x; then
2203 if test "x$build_alias" = x; then
2204 cross_compiling=maybe
2205 elif test "x$build_alias" != "x$host_alias"; then
2211 test -n "$host_alias" && ac_tool_prefix=$host_alias-
2213 test "$silent" = yes && exec 6>/dev/null
2216 ac_pwd=`pwd` && test -n "$ac_pwd" &&
2217 ac_ls_di=`ls -di .` &&
2218 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
2219 as_fn_error $? "working directory cannot be determined"
2220 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
2221 as_fn_error $? "pwd does not report name of working directory"
2224 # Find the source files, if location was not specified.
2225 if test -z "$srcdir"; then
2226 ac_srcdir_defaulted=yes
2227 # Try the directory containing this script, then the parent directory.
2228 ac_confdir=`$as_dirname -- "$as_myself" ||
2229 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
2230 X"$as_myself" : 'X\(//\)[^/]' \| \
2231 X"$as_myself" : 'X\(//\)$' \| \
2232 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
2233 $as_echo X"$as_myself" |
2234 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
2252 if test ! -r "$srcdir/$ac_unique_file"; then
2256 ac_srcdir_defaulted=no
2258 if test ! -r "$srcdir/$ac_unique_file"; then
2259 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
2260 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
2262 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
2264 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
2266 # When building in place, set srcdir=.
2267 if test "$ac_abs_confdir" = "$ac_pwd"; then
2270 # Remove unnecessary trailing slashes from srcdir.
2271 # Double slashes in file names in object file debugging info
2272 # mess up M-x gdb in Emacs.
2274 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
2276 for ac_var in $ac_precious_vars; do
2277 eval ac_env_${ac_var}_set=\${${ac_var}+set}
2278 eval ac_env_${ac_var}_value=\$${ac_var}
2279 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
2280 eval ac_cv_env_${ac_var}_value=\$${ac_var}
2284 # Report the --help message.
2286 if test "$ac_init_help" = "long"; then
2287 # Omit some internal or obsolete options to make the list less imposing.
2288 # This message is too long to be a string in the A/UX 3.1 sh.
2290 \`configure' configures man-db 2.8.3 to adapt to many kinds of systems.
2292 Usage: $0 [OPTION]... [VAR=VALUE]...
2294 To assign environment variables (e.g., CC, CFLAGS...), specify them as
2295 VAR=VALUE. See below for descriptions of some of the useful variables.
2297 Defaults for the options are specified in brackets.
2300 -h, --help display this help and exit
2301 --help=short display options specific to this package
2302 --help=recursive display the short help of all the included packages
2303 -V, --version display version information and exit
2304 -q, --quiet, --silent do not print \`checking ...' messages
2305 --cache-file=FILE cache test results in FILE [disabled]
2306 -C, --config-cache alias for \`--cache-file=config.cache'
2307 -n, --no-create do not create output files
2308 --srcdir=DIR find the sources in DIR [configure dir or \`..']
2310 Installation directories:
2311 --prefix=PREFIX install architecture-independent files in PREFIX
2312 [$ac_default_prefix]
2313 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
2316 By default, \`make install' will install all the files in
2317 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
2318 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
2319 for instance \`--prefix=\$HOME'.
2321 For better control, use the options below.
2323 Fine tuning of the installation directories:
2324 --bindir=DIR user executables [EPREFIX/bin]
2325 --sbindir=DIR system admin executables [EPREFIX/sbin]
2326 --libexecdir=DIR program executables [EPREFIX/libexec]
2327 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
2328 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
2329 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
2330 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
2331 --libdir=DIR object code libraries [EPREFIX/lib]
2332 --includedir=DIR C header files [PREFIX/include]
2333 --oldincludedir=DIR C header files for non-gcc [/usr/include]
2334 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
2335 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
2336 --infodir=DIR info documentation [DATAROOTDIR/info]
2337 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
2338 --mandir=DIR man documentation [DATAROOTDIR/man]
2339 --docdir=DIR documentation root [DATAROOTDIR/doc/man-db]
2340 --htmldir=DIR html documentation [DOCDIR]
2341 --dvidir=DIR dvi documentation [DOCDIR]
2342 --pdfdir=DIR pdf documentation [DOCDIR]
2343 --psdir=DIR ps documentation [DOCDIR]
2349 --program-prefix=PREFIX prepend PREFIX to installed program names
2350 --program-suffix=SUFFIX append SUFFIX to installed program names
2351 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
2354 --build=BUILD configure for building on BUILD [guessed]
2355 --host=HOST cross-compile to build programs to run on HOST [BUILD]
2359 if test -n "$ac_init_help"; then
2360 case $ac_init_help in
2361 short | recursive ) echo "Configuration of man-db 2.8.3:";;
2366 --disable-option-checking ignore unrecognized --enable/--with options
2367 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
2368 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
2369 --enable-silent-rules less verbose build output (undo: "make V=1")
2370 --disable-silent-rules verbose build output (undo: "make V=0")
2371 --enable-maintainer-mode
2372 enable make rules and dependencies not useful (and
2373 sometimes confusing) to the casual installer
2374 --enable-dependency-tracking
2375 do not reject slow dependency extractors
2376 --disable-dependency-tracking
2377 speeds up one-time build
2378 --enable-static[=PKGS] build static libraries [default=no]
2379 --enable-shared[=PKGS] build shared libraries [default=yes]
2380 --enable-fast-install[=PKGS]
2381 optimize for fast installation [default=yes]
2382 --disable-libtool-lock avoid locking (might break parallel builds)
2383 --enable-cache-owner=ARG
2384 make system-wide cache files be owned by user ARG
2386 --disable-cache-owner don't constrain ownership of system-wide cache files
2387 --enable-setuid install man setuid
2388 --disable-setuid don't install man setuid
2389 --enable-undoc=COMMAND suggest COMMAND for missing manual pages
2390 --enable-automatic-create
2391 allow man to create user databases on the fly
2392 --disable-automatic-update
2393 don't allow man to update databases on the fly
2394 --disable-cats don't allow man to create/update cat files
2395 --enable-mandirs=OS select manual page hierarchy organization (GNU,
2396 HPUX, IRIX, Solaris, BSD)
2397 --disable-largefile omit support for large files
2398 --enable-threads={posix|solaris|pth|windows}
2399 specify multithreading API
2400 --disable-threads build without multithread safety
2401 --enable-mb-groff expect groff with Debian multibyte patch or real
2403 --disable-rpath do not hardcode runtime library paths
2404 --disable-nls do not use Native Language Support
2407 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
2408 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
2409 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
2411 --with-aix-soname=aix|svr4|both
2412 shared library versioning (aka "SONAME") variant to
2413 provide on AIX, [default=aix].
2414 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
2415 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
2416 compiler's sysroot if not specified).
2417 --with-device=DEVICE use nroff with the output device DEVICE
2418 --with-db=LIBRARY use database library LIBRARY (db5, db4, db3, db2,
2419 db1, db, gdbm, ndbm)
2420 --with-config-file=CF use config file CF [CF=SYSCONFDIR/man_db.conf]
2421 --with-sections=SECTIONS
2422 use manual page sections SECTIONS [1 n l 8 3 0 2 5 4
2424 --with-override-dir=OVERRIDE
2425 use OVERRIDE as relative override dir inside the man
2426 path - the first directory to be searched when
2427 looking for man pages
2428 --with-systemdtmpfilesdir=DIR
2429 Directory for systemd tmpfiles configuration
2430 --with-browser=BROWSER use BROWSER as default web browser
2431 --with-pager=PAGER use PAGER as default pager
2432 --with-nroff=NROFF use NROFF as roff formatter for character devices
2433 --with-eqn=EQN use EQN to preprocess equations
2434 --with-neqn=NEQN use NEQN to preprocess equations for character
2436 --with-tbl=TBL use TBL to preprocess tables
2437 --with-col=COL use COL to filter formatting characters from output
2438 --with-vgrind=VGRIND use VGRIND to preprocess program sources
2439 --with-refer=REFER use REFER to preprocess bibliographic references
2440 --with-grap=GRAP use GRAP to preprocess graphs
2441 --with-pic=PIC use PIC to preprocess pictures
2442 --with-gzip=GZIP use GZIP as GNU compression utility
2443 --with-compress=COMPRESS
2444 use COMPRESS as UNIX compression utility
2445 --with-bzip2=BZIP2 use BZIP2 as block-sorting compression utility
2446 --with-xz=XZ use XZ as Lempel-Ziv-Markov chain-Algorithm
2448 --with-lzma=LZMA use LZMA as Lempel-Ziv-Markov chain-Algorithm
2450 --with-lzip=LZIP use LZIP as Lempel-Ziv-Markov chain-Algorithm
2452 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
2453 --with-libpth-prefix[=DIR] search for libpth in DIR/include and DIR/lib
2454 --without-libpth-prefix don't search for libpth in includedir and libdir
2455 --without-included-regex
2456 don't compile regex; this is the default on systems
2457 with recent-enough versions of the GNU C Library
2458 (use with caution on other systems).
2459 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
2460 --without-libiconv-prefix don't search for libiconv in includedir and libdir
2461 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
2462 --without-libintl-prefix don't search for libintl in includedir and libdir
2463 --without-libseccomp do not confine subprocesses using seccomp
2465 Some influential environment variables:
2466 CC C compiler command
2467 CFLAGS C compiler flags
2468 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
2469 nonstandard directory <lib dir>
2470 LIBS libraries to pass to the linker, e.g. -l<library>
2471 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
2472 you have headers in a nonstandard directory <include dir>
2475 User-defined run-time library search path.
2476 PKG_CONFIG path to pkg-config utility
2478 directories to add to pkg-config's search path
2480 path overriding pkg-config's built-in search path
2482 C compiler flags for libpipeline, overriding pkg-config
2484 linker flags for libpipeline, overriding pkg-config
2486 C compiler flags for libseccomp, overriding pkg-config
2488 linker flags for libseccomp, overriding pkg-config
2490 Use these variables to override the choices made by `configure' or to help
2491 it to find libraries and programs with nonstandard names/locations.
2493 Report bugs to <cjwatson@debian.org>.
2498 if test "$ac_init_help" = "recursive"; then
2499 # If there are subdirs, report their specific --help.
2500 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
2501 test -d "$ac_dir" ||
2502 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
2507 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
2509 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
2510 # A ".." for each directory in $ac_dir_suffix.
2511 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
2512 case $ac_top_builddir_sub in
2513 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
2514 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
2517 ac_abs_top_builddir=$ac_pwd
2518 ac_abs_builddir=$ac_pwd$ac_dir_suffix
2519 # for backward compatibility:
2520 ac_top_builddir=$ac_top_build_prefix
2523 .) # We are building in place.
2525 ac_top_srcdir=$ac_top_builddir_sub
2526 ac_abs_top_srcdir=$ac_pwd ;;
2527 [\\/]* | ?:[\\/]* ) # Absolute name.
2528 ac_srcdir=$srcdir$ac_dir_suffix;
2529 ac_top_srcdir=$srcdir
2530 ac_abs_top_srcdir=$srcdir ;;
2532 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
2533 ac_top_srcdir=$ac_top_build_prefix$srcdir
2534 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
2536 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
2538 cd "$ac_dir" || { ac_status=$?; continue; }
2539 # Check for guested configure.
2540 if test -f "$ac_srcdir/configure.gnu"; then
2542 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
2543 elif test -f "$ac_srcdir/configure"; then
2545 $SHELL "$ac_srcdir/configure" --help=recursive
2547 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
2549 cd "$ac_pwd" || { ac_status=$?; break; }
2553 test -n "$ac_init_help" && exit $ac_status
2554 if $ac_init_version; then
2556 man-db configure 2.8.3
2557 generated by GNU Autoconf 2.69
2559 Copyright (C) 2012 Free Software Foundation, Inc.
2560 This configure script is free software; the Free Software Foundation
2561 gives unlimited permission to copy, distribute and modify it.
2566 ## ------------------------ ##
2567 ## Autoconf initialization. ##
2568 ## ------------------------ ##
2570 # ac_fn_c_try_compile LINENO
2571 # --------------------------
2572 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2573 ac_fn_c_try_compile ()
2575 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2576 rm -f conftest.$ac_objext
2577 if { { ac_try="$ac_compile"
2579 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2580 *) ac_try_echo=$ac_try;;
2582 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2583 $as_echo "$ac_try_echo"; } >&5
2584 (eval "$ac_compile") 2>conftest.err
2586 if test -s conftest.err; then
2587 grep -v '^ *+' conftest.err >conftest.er1
2588 cat conftest.er1 >&5
2589 mv -f conftest.er1 conftest.err
2591 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2592 test $ac_status = 0; } && {
2593 test -z "$ac_c_werror_flag" ||
2594 test ! -s conftest.err
2595 } && test -s conftest.$ac_objext; then :
2598 $as_echo "$as_me: failed program was:" >&5
2599 sed 's/^/| /' conftest.$ac_ext >&5
2603 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2604 as_fn_set_status $ac_retval
2606 } # ac_fn_c_try_compile
2608 # ac_fn_c_try_cpp LINENO
2609 # ----------------------
2610 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2613 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2614 if { { ac_try="$ac_cpp conftest.$ac_ext"
2616 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2617 *) ac_try_echo=$ac_try;;
2619 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2620 $as_echo "$ac_try_echo"; } >&5
2621 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2623 if test -s conftest.err; then
2624 grep -v '^ *+' conftest.err >conftest.er1
2625 cat conftest.er1 >&5
2626 mv -f conftest.er1 conftest.err
2628 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2629 test $ac_status = 0; } > conftest.i && {
2630 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2631 test ! -s conftest.err
2635 $as_echo "$as_me: failed program was:" >&5
2636 sed 's/^/| /' conftest.$ac_ext >&5
2640 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2641 as_fn_set_status $ac_retval
2645 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2646 # -------------------------------------------------------
2647 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2648 # the include files in INCLUDES and setting the cache variable VAR
2650 ac_fn_c_check_header_mongrel ()
2652 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2653 if eval \${$3+:} false; then :
2654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2655 $as_echo_n "checking for $2... " >&6; }
2656 if eval \${$3+:} false; then :
2657 $as_echo_n "(cached) " >&6
2660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2661 $as_echo "$ac_res" >&6; }
2663 # Is the header compilable?
2664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2665 $as_echo_n "checking $2 usability... " >&6; }
2666 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2667 /* end confdefs.h. */
2671 if ac_fn_c_try_compile "$LINENO"; then :
2672 ac_header_compiler=yes
2674 ac_header_compiler=no
2676 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2678 $as_echo "$ac_header_compiler" >&6; }
2680 # Is the header present?
2681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2682 $as_echo_n "checking $2 presence... " >&6; }
2683 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2684 /* end confdefs.h. */
2687 if ac_fn_c_try_cpp "$LINENO"; then :
2688 ac_header_preproc=yes
2690 ac_header_preproc=no
2692 rm -f conftest.err conftest.i conftest.$ac_ext
2693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2694 $as_echo "$ac_header_preproc" >&6; }
2696 # So? What about this header?
2697 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2699 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2700 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2701 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2702 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2705 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2706 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2707 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2708 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2709 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2710 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2711 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2712 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2713 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2714 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2715 ( $as_echo "## ---------------------------------- ##
2716 ## Report this to cjwatson@debian.org ##
2717 ## ---------------------------------- ##"
2718 ) | sed "s/^/$as_me: WARNING: /" >&2
2721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2722 $as_echo_n "checking for $2... " >&6; }
2723 if eval \${$3+:} false; then :
2724 $as_echo_n "(cached) " >&6
2726 eval "$3=\$ac_header_compiler"
2729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2730 $as_echo "$ac_res" >&6; }
2732 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2734 } # ac_fn_c_check_header_mongrel
2736 # ac_fn_c_try_run LINENO
2737 # ----------------------
2738 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2739 # that executables *can* be run.
2742 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2743 if { { ac_try="$ac_link"
2745 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2746 *) ac_try_echo=$ac_try;;
2748 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2749 $as_echo "$ac_try_echo"; } >&5
2750 (eval "$ac_link") 2>&5
2752 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2753 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2754 { { case "(($ac_try" in
2755 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2756 *) ac_try_echo=$ac_try;;
2758 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2759 $as_echo "$ac_try_echo"; } >&5
2760 (eval "$ac_try") 2>&5
2762 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2763 test $ac_status = 0; }; }; then :
2766 $as_echo "$as_me: program exited with status $ac_status" >&5
2767 $as_echo "$as_me: failed program was:" >&5
2768 sed 's/^/| /' conftest.$ac_ext >&5
2770 ac_retval=$ac_status
2772 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2773 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2774 as_fn_set_status $ac_retval
2778 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2779 # -------------------------------------------------------
2780 # Tests whether HEADER exists and can be compiled using the include files in
2781 # INCLUDES, setting the cache variable VAR accordingly.
2782 ac_fn_c_check_header_compile ()
2784 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2786 $as_echo_n "checking for $2... " >&6; }
2787 if eval \${$3+:} false; then :
2788 $as_echo_n "(cached) " >&6
2790 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2791 /* end confdefs.h. */
2795 if ac_fn_c_try_compile "$LINENO"; then :
2800 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2804 $as_echo "$ac_res" >&6; }
2805 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2807 } # ac_fn_c_check_header_compile
2809 # ac_fn_c_try_link LINENO
2810 # -----------------------
2811 # Try to link conftest.$ac_ext, and return whether this succeeded.
2814 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2815 rm -f conftest.$ac_objext conftest$ac_exeext
2816 if { { ac_try="$ac_link"
2818 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2819 *) ac_try_echo=$ac_try;;
2821 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2822 $as_echo "$ac_try_echo"; } >&5
2823 (eval "$ac_link") 2>conftest.err
2825 if test -s conftest.err; then
2826 grep -v '^ *+' conftest.err >conftest.er1
2827 cat conftest.er1 >&5
2828 mv -f conftest.er1 conftest.err
2830 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2831 test $ac_status = 0; } && {
2832 test -z "$ac_c_werror_flag" ||
2833 test ! -s conftest.err
2834 } && test -s conftest$ac_exeext && {
2835 test "$cross_compiling" = yes ||
2836 test -x conftest$ac_exeext
2840 $as_echo "$as_me: failed program was:" >&5
2841 sed 's/^/| /' conftest.$ac_ext >&5
2845 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2846 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2847 # interfere with the next link command; also delete a directory that is
2848 # left behind by Apple's compiler. We do this before executing the actions.
2849 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2850 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2851 as_fn_set_status $ac_retval
2853 } # ac_fn_c_try_link
2855 # ac_fn_c_check_func LINENO FUNC VAR
2856 # ----------------------------------
2857 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2858 ac_fn_c_check_func ()
2860 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2862 $as_echo_n "checking for $2... " >&6; }
2863 if eval \${$3+:} false; then :
2864 $as_echo_n "(cached) " >&6
2866 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2867 /* end confdefs.h. */
2868 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2869 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2870 #define $2 innocuous_$2
2872 /* System header to define __stub macros and hopefully few prototypes,
2873 which can conflict with char $2 (); below.
2874 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2875 <limits.h> exists even on freestanding compilers. */
2878 # include <limits.h>
2880 # include <assert.h>
2885 /* Override any GCC internal prototype to avoid an error.
2886 Use char because int might match the return type of a GCC
2887 builtin and then its argument prototype would still apply. */
2892 /* The GNU C library defines this for functions which it implements
2893 to always fail with ENOSYS. Some functions are actually named
2894 something starting with __ and the normal name is an alias. */
2895 #if defined __stub_$2 || defined __stub___$2
2907 if ac_fn_c_try_link "$LINENO"; then :
2912 rm -f core conftest.err conftest.$ac_objext \
2913 conftest$ac_exeext conftest.$ac_ext
2916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2917 $as_echo "$ac_res" >&6; }
2918 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2920 } # ac_fn_c_check_func
2922 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2923 # -------------------------------------------
2924 # Tests whether TYPE exists after having included INCLUDES, setting cache
2925 # variable VAR accordingly.
2926 ac_fn_c_check_type ()
2928 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2930 $as_echo_n "checking for $2... " >&6; }
2931 if eval \${$3+:} false; then :
2932 $as_echo_n "(cached) " >&6
2935 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2936 /* end confdefs.h. */
2947 if ac_fn_c_try_compile "$LINENO"; then :
2948 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2949 /* end confdefs.h. */
2960 if ac_fn_c_try_compile "$LINENO"; then :
2965 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2967 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2971 $as_echo "$ac_res" >&6; }
2972 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2974 } # ac_fn_c_check_type
2976 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2977 # ---------------------------------------------
2978 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2980 ac_fn_c_check_decl ()
2982 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2983 as_decl_name=`echo $2|sed 's/ *(.*//'`
2984 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2986 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2987 if eval \${$3+:} false; then :
2988 $as_echo_n "(cached) " >&6
2990 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2991 /* end confdefs.h. */
2996 #ifndef $as_decl_name
2998 (void) $as_decl_use;
3000 (void) $as_decl_name;
3008 if ac_fn_c_try_compile "$LINENO"; then :
3013 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
3017 $as_echo "$ac_res" >&6; }
3018 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
3020 } # ac_fn_c_check_decl
3022 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
3023 # --------------------------------------------
3024 # Tries to find the compile-time value of EXPR in a program that includes
3025 # INCLUDES, setting VAR accordingly. Returns whether the value could be
3027 ac_fn_c_compute_int ()
3029 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
3030 if test "$cross_compiling" = yes; then
3031 # Depending upon the size, compute the lo and hi bounds.
3032 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3033 /* end confdefs.h. */
3038 static int test_array [1 - 2 * !(($2) >= 0)];
3040 return test_array [0];
3046 if ac_fn_c_try_compile "$LINENO"; then :
3049 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3050 /* end confdefs.h. */
3055 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
3057 return test_array [0];
3063 if ac_fn_c_try_compile "$LINENO"; then :
3064 ac_hi=$ac_mid; break
3066 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
3067 if test $ac_lo -le $ac_mid; then
3071 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
3073 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3076 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3077 /* end confdefs.h. */
3082 static int test_array [1 - 2 * !(($2) < 0)];
3084 return test_array [0];
3090 if ac_fn_c_try_compile "$LINENO"; then :
3093 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3094 /* end confdefs.h. */
3099 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
3101 return test_array [0];
3107 if ac_fn_c_try_compile "$LINENO"; then :
3108 ac_lo=$ac_mid; break
3110 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
3111 if test $ac_mid -le $ac_hi; then
3115 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
3117 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3122 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3124 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3125 # Binary search between lo and hi bounds.
3126 while test "x$ac_lo" != "x$ac_hi"; do
3127 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
3128 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3129 /* end confdefs.h. */
3134 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
3136 return test_array [0];
3142 if ac_fn_c_try_compile "$LINENO"; then :
3145 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
3147 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3150 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
3154 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3155 /* end confdefs.h. */
3157 static long int longval () { return $2; }
3158 static unsigned long int ulongval () { return $2; }
3165 FILE *f = fopen ("conftest.val", "w");
3170 long int i = longval ();
3173 fprintf (f, "%ld", i);
3177 unsigned long int i = ulongval ();
3180 fprintf (f, "%lu", i);
3182 /* Do not output a trailing newline, as this causes \r\n confusion
3183 on some platforms. */
3184 return ferror (f) || fclose (f) != 0;
3190 if ac_fn_c_try_run "$LINENO"; then :
3191 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
3195 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3196 conftest.$ac_objext conftest.beam conftest.$ac_ext
3200 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
3201 as_fn_set_status $ac_retval
3203 } # ac_fn_c_compute_int
3205 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
3206 # ----------------------------------------------------
3207 # Tries to find if the field MEMBER exists in type AGGR, after including
3208 # INCLUDES, setting cache variable VAR accordingly.
3209 ac_fn_c_check_member ()
3211 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
3212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
3213 $as_echo_n "checking for $2.$3... " >&6; }
3214 if eval \${$4+:} false; then :
3215 $as_echo_n "(cached) " >&6
3217 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3218 /* end confdefs.h. */
3230 if ac_fn_c_try_compile "$LINENO"; then :
3233 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3234 /* end confdefs.h. */
3240 if (sizeof ac_aggr.$3)
3246 if ac_fn_c_try_compile "$LINENO"; then :
3251 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3253 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
3257 $as_echo "$ac_res" >&6; }
3258 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
3260 } # ac_fn_c_check_member
3261 cat >config.log <<_ACEOF
3262 This file contains any messages produced by compilers while
3263 running configure, to aid debugging if configure makes a mistake.
3265 It was created by man-db $as_me 2.8.3, which was
3266 generated by GNU Autoconf 2.69. Invocation command line was
3278 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
3279 uname -m = `(uname -m) 2>/dev/null || echo unknown`
3280 uname -r = `(uname -r) 2>/dev/null || echo unknown`
3281 uname -s = `(uname -s) 2>/dev/null || echo unknown`
3282 uname -v = `(uname -v) 2>/dev/null || echo unknown`
3284 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
3285 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
3287 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
3288 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
3289 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
3290 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
3291 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
3292 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
3293 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
3297 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3301 test -z "$as_dir" && as_dir=.
3302 $as_echo "PATH: $as_dir"
3318 # Keep a trace of the command line.
3319 # Strip out --no-create and --no-recursion so they do not pile up.
3320 # Strip out --silent because we don't want to record it for future runs.
3321 # Also quote any args containing shell meta-characters.
3322 # Make two passes to allow for proper duplicate-argument suppression.
3326 ac_must_keep_next=false
3332 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
3333 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
3334 | -silent | --silent | --silen | --sile | --sil)
3337 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
3340 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
3342 as_fn_append ac_configure_args1 " '$ac_arg'"
3343 if test $ac_must_keep_next = true; then
3344 ac_must_keep_next=false # Got value, back to normal.
3347 *=* | --config-cache | -C | -disable-* | --disable-* \
3348 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
3349 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
3350 | -with-* | --with-* | -without-* | --without-* | --x)
3351 case "$ac_configure_args0 " in
3352 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
3355 -* ) ac_must_keep_next=true ;;
3358 as_fn_append ac_configure_args " '$ac_arg'"
3363 { ac_configure_args0=; unset ac_configure_args0;}
3364 { ac_configure_args1=; unset ac_configure_args1;}
3366 # When interrupted or exit'd, cleanup temporary files, and complete
3367 # config.log. We remove comments because anyway the quotes in there
3368 # would cause problems or look ugly.
3369 # WARNING: Use '\'' to represent an apostrophe within the trap.
3370 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
3371 trap 'exit_status=$?
3372 # Save into config.log some information that might help in debugging.
3376 $as_echo "## ---------------- ##
3377 ## Cache variables. ##
3378 ## ---------------- ##"
3380 # The following way of writing the cache mishandles newlines in values,
3382 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
3383 eval ac_val=\$$ac_var
3387 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
3388 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
3391 _ | IFS | as_nl) ;; #(
3392 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
3393 *) { eval $ac_var=; unset $ac_var;} ;;
3398 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
3399 *${as_nl}ac_space=\ *)
3401 "s/'\''/'\''\\\\'\'''\''/g;
3402 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
3405 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
3412 $as_echo "## ----------------- ##
3413 ## Output variables. ##
3414 ## ----------------- ##"
3416 for ac_var in $ac_subst_vars
3418 eval ac_val=\$$ac_var
3420 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3422 $as_echo "$ac_var='\''$ac_val'\''"
3426 if test -n "$ac_subst_files"; then
3427 $as_echo "## ------------------- ##
3428 ## File substitutions. ##
3429 ## ------------------- ##"
3431 for ac_var in $ac_subst_files
3433 eval ac_val=\$$ac_var
3435 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3437 $as_echo "$ac_var='\''$ac_val'\''"
3442 if test -s confdefs.h; then
3443 $as_echo "## ----------- ##
3450 test "$ac_signal" != 0 &&
3451 $as_echo "$as_me: caught signal $ac_signal"
3452 $as_echo "$as_me: exit $exit_status"
3454 rm -f core *.core core.conftest.* &&
3455 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
3458 for ac_signal in 1 2 13 15; do
3459 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
3463 # confdefs.h avoids OS command line length limits that DEFS can exceed.
3464 rm -f -r conftest* confdefs.h
3466 $as_echo "/* confdefs.h */" > confdefs.h
3468 # Predefined preprocessor variables.
3470 cat >>confdefs.h <<_ACEOF
3471 #define PACKAGE_NAME "$PACKAGE_NAME"
3474 cat >>confdefs.h <<_ACEOF
3475 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
3478 cat >>confdefs.h <<_ACEOF
3479 #define PACKAGE_VERSION "$PACKAGE_VERSION"
3482 cat >>confdefs.h <<_ACEOF
3483 #define PACKAGE_STRING "$PACKAGE_STRING"
3486 cat >>confdefs.h <<_ACEOF
3487 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
3490 cat >>confdefs.h <<_ACEOF
3491 #define PACKAGE_URL "$PACKAGE_URL"
3495 # Let the site file select an alternate cache file if it wants to.
3496 # Prefer an explicitly selected file to automatically selected ones.
3499 if test -n "$CONFIG_SITE"; then
3500 # We do not want a PATH search for config.site.
3501 case $CONFIG_SITE in #((
3502 -*) ac_site_file1=./$CONFIG_SITE;;
3503 */*) ac_site_file1=$CONFIG_SITE;;
3504 *) ac_site_file1=./$CONFIG_SITE;;
3506 elif test "x$prefix" != xNONE; then
3507 ac_site_file1=$prefix/share/config.site
3508 ac_site_file2=$prefix/etc/config.site
3510 ac_site_file1=$ac_default_prefix/share/config.site
3511 ac_site_file2=$ac_default_prefix/etc/config.site
3513 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
3515 test "x$ac_site_file" = xNONE && continue
3516 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
3517 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
3518 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
3519 sed 's/^/| /' "$ac_site_file" >&5
3521 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3522 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3523 as_fn_error $? "failed to load site script $ac_site_file
3524 See \`config.log' for more details" "$LINENO" 5; }
3528 if test -r "$cache_file"; then
3529 # Some versions of bash will fail to source /dev/null (special files
3530 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
3531 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
3532 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
3533 $as_echo "$as_me: loading cache $cache_file" >&6;}
3535 [\\/]* | ?:[\\/]* ) . "$cache_file";;
3536 *) . "./$cache_file";;
3540 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
3541 $as_echo "$as_me: creating cache $cache_file" >&6;}
3545 gl_func_list="$gl_func_list flockfile"
3546 gl_func_list="$gl_func_list funlockfile"
3547 gl_header_list="$gl_header_list features.h"
3548 gl_header_list="$gl_header_list linewrap.h"
3549 gl_func_list="$gl_func_list btowc"
3550 gl_func_list="$gl_func_list canonicalize_file_name"
3551 gl_func_list="$gl_func_list realpath"
3552 gl_func_list="$gl_func_list getcwd"
3553 gl_func_list="$gl_func_list readlink"
3554 gl_header_list="$gl_header_list sys/param.h"
3555 gl_header_list="$gl_header_list unistd.h"
3556 gl_func_list="$gl_func_list _set_invalid_parameter_handler"
3557 gl_header_list="$gl_header_list sys/socket.h"
3558 gl_func_list="$gl_func_list fchdir"
3559 gl_header_list="$gl_header_list dirent.h"
3560 gl_func_list="$gl_func_list fcntl"
3561 gl_func_list="$gl_func_list symlink"
3562 gl_func_list="$gl_func_list fdopendir"
3563 gl_func_list="$gl_func_list mempcpy"
3564 gl_func_list="$gl_func_list flock"
3565 gl_func_list="$gl_func_list isblank"
3566 gl_func_list="$gl_func_list iswctype"
3567 gl_func_list="$gl_func_list mbsrtowcs"
3568 gl_func_list="$gl_func_list wmemchr"
3569 gl_func_list="$gl_func_list wmemcpy"
3570 gl_func_list="$gl_func_list wmempcpy"
3571 gl_header_list="$gl_header_list wctype.h"
3572 gl_fnmatch_required=GNU
3573 gl_header_list="$gl_header_list sys/stat.h"
3574 gl_func_list="$gl_func_list fstatat"
3575 gl_func_list="$gl_func_list futimens"
3576 gl_func_list="$gl_func_list getdelim"
3577 gl_func_list="$gl_func_list getdtablesize"
3578 gl_func_list="$gl_func_list getlogin_r"
3579 gl_getopt_required=GNU
3580 gl_header_list="$gl_header_list getopt.h"
3581 gl_func_list="$gl_func_list gettimeofday"
3582 gl_func_list="$gl_func_list nanotime"
3583 gl_header_list="$gl_header_list sys/time.h"
3584 gl_header_list="$gl_header_list sys/cdefs.h"
3585 gl_func_list="$gl_func_list getpwnam_r"
3586 gl_func_list="$gl_func_list getuid"
3587 gl_func_list="$gl_func_list geteuid"
3588 gl_func_list="$gl_func_list getresuid"
3589 gl_func_list="$gl_func_list getgid"
3590 gl_func_list="$gl_func_list getegid"
3591 gl_func_list="$gl_func_list getresgid"
3592 gl_func_list="$gl_func_list setresuid"
3593 gl_func_list="$gl_func_list setreuid"
3594 gl_func_list="$gl_func_list seteuid"
3595 gl_func_list="$gl_func_list setresgid"
3596 gl_func_list="$gl_func_list setregid"
3597 gl_func_list="$gl_func_list setegid"
3598 gl_header_list="$gl_header_list langinfo.h"
3599 gl_header_list="$gl_header_list xlocale.h"
3600 gl_func_list="$gl_func_list lstat"
3601 gl_func_list="$gl_func_list mbsinit"
3602 gl_func_list="$gl_func_list mbrtowc"
3603 gl_header_list="$gl_header_list sys/mman.h"
3604 gl_func_list="$gl_func_list mprotect"
3605 gl_func_list="$gl_func_list mkstemp"
3606 gl_header_list="$gl_header_list sys/select.h"
3607 gl_func_list="$gl_func_list nl_langinfo"
3608 gl_func_list="$gl_func_list openat"
3609 gl_header_list="$gl_header_list malloc.h"
3610 gl_func_list="$gl_func_list link"
3611 gl_func_list="$gl_func_list pathconf"
3612 gl_func_list="$gl_func_list secure_getenv"
3613 gl_func_list="$gl_func_list setenv"
3614 gl_func_list="$gl_func_list sigaction"
3615 gl_func_list="$gl_func_list sigaltstack"
3616 gl_func_list="$gl_func_list siginterrupt"
3617 gl_func_list="$gl_func_list sleep"
3618 gl_header_list="$gl_header_list wchar.h"
3619 gl_header_list="$gl_header_list stdint.h"
3620 gl_func_list="$gl_func_list strdup"
3621 gl_header_list="$gl_header_list strings.h"
3622 gl_func_list="$gl_func_list strndup"
3623 gl_header_list="$gl_header_list sys/file.h"
3624 gl_header_list="$gl_header_list sys/ioctl.h"
3625 gl_header_list="$gl_header_list sys/uio.h"
3626 gl_header_list="$gl_header_list sysexits.h"
3627 gl_func_list="$gl_func_list pipe"
3628 gl_header_list="$gl_header_list utime.h"
3629 gl_func_list="$gl_func_list futimes"
3630 gl_func_list="$gl_func_list futimesat"
3631 gl_func_list="$gl_func_list utimensat"
3632 gl_func_list="$gl_func_list lutimes"
3633 gl_func_list="$gl_func_list vasnprintf"
3634 gl_func_list="$gl_func_list snprintf"
3635 gl_func_list="$gl_func_list wcrtomb"
3636 gl_func_list="$gl_func_list iswcntrl"
3637 gt_needs="$gt_needs "
3638 # Check that the precious variables saved in the cache have kept the same
3640 ac_cache_corrupted=false
3641 for ac_var in $ac_precious_vars; do
3642 eval ac_old_set=\$ac_cv_env_${ac_var}_set
3643 eval ac_new_set=\$ac_env_${ac_var}_set
3644 eval ac_old_val=\$ac_cv_env_${ac_var}_value
3645 eval ac_new_val=\$ac_env_${ac_var}_value
3646 case $ac_old_set,$ac_new_set in
3648 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3649 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3650 ac_cache_corrupted=: ;;
3652 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3653 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3654 ac_cache_corrupted=: ;;
3657 if test "x$ac_old_val" != "x$ac_new_val"; then
3658 # differences in whitespace do not lead to failure.
3659 ac_old_val_w=`echo x $ac_old_val`
3660 ac_new_val_w=`echo x $ac_new_val`
3661 if test "$ac_old_val_w" != "$ac_new_val_w"; then
3662 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3663 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3664 ac_cache_corrupted=:
3666 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3667 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3668 eval $ac_var=\$ac_old_val
3670 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
3671 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
3672 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
3673 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
3676 # Pass precious variables to config.status.
3677 if test "$ac_new_set" = set; then
3679 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3680 *) ac_arg=$ac_var=$ac_new_val ;;
3682 case " $ac_configure_args " in
3683 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
3684 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3688 if $ac_cache_corrupted; then
3689 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3690 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3691 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3692 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3693 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3695 ## -------------------- ##
3696 ## Main body of script. ##
3697 ## -------------------- ##
3700 ac_cpp='$CPP $CPPFLAGS'
3701 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3702 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3703 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3707 for ac_dir in build-aux "$srcdir"/build-aux; do
3708 if test -f "$ac_dir/install-sh"; then
3710 ac_install_sh="$ac_aux_dir/install-sh -c"
3712 elif test -f "$ac_dir/install.sh"; then
3714 ac_install_sh="$ac_aux_dir/install.sh -c"
3716 elif test -f "$ac_dir/shtool"; then
3718 ac_install_sh="$ac_aux_dir/shtool install -c"
3722 if test -z "$ac_aux_dir"; then
3723 as_fn_error $? "cannot find install-sh, install.sh, or shtool in build-aux \"$srcdir\"/build-aux" "$LINENO" 5
3726 # These three variables are undocumented and unsupported,
3727 # and are intended to be withdrawn in a future Autoconf release.
3728 # They can cause serious problems if a builder's source tree is in a directory
3729 # whose full name contains unusual characters.
3730 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3731 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3732 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3735 am__api_version='1.15'
3737 # Find a good install program. We prefer a C program (faster),
3738 # so one script is as good as another. But avoid the broken or
3739 # incompatible versions:
3740 # SysV /etc/install, /usr/sbin/install
3741 # SunOS /usr/etc/install
3742 # IRIX /sbin/install
3744 # AmigaOS /C/install, which installs bootblocks on floppy discs
3745 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3746 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3747 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3748 # OS/2's system install, which has a completely different semantic
3749 # ./install, which can be erroneously created by make from ./install.sh.
3750 # Reject install programs that cannot install multiple files.
3751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3752 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3753 if test -z "$INSTALL"; then
3754 if ${ac_cv_path_install+:} false; then :
3755 $as_echo_n "(cached) " >&6
3757 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3761 test -z "$as_dir" && as_dir=.
3762 # Account for people who put trailing slashes in PATH elements.
3763 case $as_dir/ in #((
3764 ./ | .// | /[cC]/* | \
3765 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3766 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3769 # OSF1 and SCO ODT 3.0 have their own names for install.
3770 # Don't use installbsd from OSF since it installs stuff as root
3772 for ac_prog in ginstall scoinst install; do
3773 for ac_exec_ext in '' $ac_executable_extensions; do
3774 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3775 if test $ac_prog = install &&
3776 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3777 # AIX install. It has an incompatible calling convention.
3779 elif test $ac_prog = install &&
3780 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3781 # program-specific install script used by HP pwplus--don't use.
3784 rm -rf conftest.one conftest.two conftest.dir
3785 echo one > conftest.one
3786 echo two > conftest.two
3788 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3789 test -s conftest.one && test -s conftest.two &&
3790 test -s conftest.dir/conftest.one &&
3791 test -s conftest.dir/conftest.two
3793 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3806 rm -rf conftest.one conftest.two conftest.dir
3809 if test "${ac_cv_path_install+set}" = set; then
3810 INSTALL=$ac_cv_path_install
3812 # As a last resort, use the slow shell script. Don't cache a
3813 # value for INSTALL within a source directory, because that will
3814 # break other packages using the cache if that directory is
3815 # removed, or if the value is a relative name.
3816 INSTALL=$ac_install_sh
3819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3820 $as_echo "$INSTALL" >&6; }
3822 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3823 # It thinks the first close brace ends the variable substitution.
3824 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3826 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3828 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3831 $as_echo_n "checking whether build environment is sane... " >&6; }
3832 # Reject unsafe characters in $srcdir or the absolute working directory
3833 # name. Accept space and tab only in the latter.
3837 *[\\\"\#\$\&\'\`$am_lf]*)
3838 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
3841 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
3842 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
3845 # Do 'set' in a subshell so we don't clobber the current shell's
3846 # arguments. Must try -L first in case configure is actually a
3847 # symlink; some systems play weird games with the mod time of symlinks
3848 # (eg FreeBSD returns the mod time of the symlink's containing
3852 for am_try in 1 2; do
3853 echo "timestamp, slept: $am_has_slept" > conftest.file
3854 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3855 if test "$*" = "X"; then
3857 set X `ls -t "$srcdir/configure" conftest.file`
3859 if test "$*" != "X $srcdir/configure conftest.file" \
3860 && test "$*" != "X conftest.file $srcdir/configure"; then
3862 # If neither matched, then we have a broken ls. This can happen
3863 # if, for instance, CONFIG_SHELL is bash and it inherits a
3864 # broken ls alias from the environment. This has actually
3865 # happened. Such a system could not be considered "sane".
3866 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
3867 alias in your environment" "$LINENO" 5
3869 if test "$2" = conftest.file || test $am_try -eq 2; then
3876 test "$2" = conftest.file
3882 as_fn_error $? "newly created file is older than distributed files!
3883 Check your system clock" "$LINENO" 5
3885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3886 $as_echo "yes" >&6; }
3887 # If we didn't sleep, we still need to ensure time stamps of config.status and
3888 # generated files are strictly newer.
3890 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
3897 test "$program_prefix" != NONE &&
3898 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3899 # Use a double $ so make ignores it.
3900 test "$program_suffix" != NONE &&
3901 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3902 # Double any \ or $.
3903 # By default was `s,x,x', remove it if useless.
3904 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3905 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3907 # Expand $ac_aux_dir to an absolute path.
3908 am_aux_dir=`cd "$ac_aux_dir" && pwd`
3910 if test x"${MISSING+set}" != xset; then
3913 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3915 MISSING="\${SHELL} $am_aux_dir/missing" ;;
3918 # Use eval to expand $SHELL
3919 if eval "$MISSING --is-lightweight"; then
3920 am_missing_run="$MISSING "
3923 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
3924 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
3927 if test x"${install_sh+set}" != xset; then
3930 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3932 install_sh="\${SHELL} $am_aux_dir/install-sh"
3936 # Installed binaries are usually stripped using 'strip' when the user
3937 # run "make install-strip". However 'strip' might not be the right
3938 # tool to use in cross-compilation environments, therefore Automake
3939 # will honor the 'STRIP' environment variable to overrule this program.
3940 if test "$cross_compiling" != no; then
3941 if test -n "$ac_tool_prefix"; then
3942 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3943 set dummy ${ac_tool_prefix}strip; ac_word=$2
3944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3945 $as_echo_n "checking for $ac_word... " >&6; }
3946 if ${ac_cv_prog_STRIP+:} false; then :
3947 $as_echo_n "(cached) " >&6
3949 if test -n "$STRIP"; then
3950 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3952 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3956 test -z "$as_dir" && as_dir=.
3957 for ac_exec_ext in '' $ac_executable_extensions; do
3958 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3959 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3960 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3969 STRIP=$ac_cv_prog_STRIP
3970 if test -n "$STRIP"; then
3971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3972 $as_echo "$STRIP" >&6; }
3974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3975 $as_echo "no" >&6; }
3980 if test -z "$ac_cv_prog_STRIP"; then
3982 # Extract the first word of "strip", so it can be a program name with args.
3983 set dummy strip; ac_word=$2
3984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3985 $as_echo_n "checking for $ac_word... " >&6; }
3986 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
3987 $as_echo_n "(cached) " >&6
3989 if test -n "$ac_ct_STRIP"; then
3990 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3992 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3996 test -z "$as_dir" && as_dir=.
3997 for ac_exec_ext in '' $ac_executable_extensions; do
3998 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3999 ac_cv_prog_ac_ct_STRIP="strip"
4000 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4009 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4010 if test -n "$ac_ct_STRIP"; then
4011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
4012 $as_echo "$ac_ct_STRIP" >&6; }
4014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4015 $as_echo "no" >&6; }
4018 if test "x$ac_ct_STRIP" = x; then
4021 case $cross_compiling:$ac_tool_warned in
4023 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4024 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4025 ac_tool_warned=yes ;;
4030 STRIP="$ac_cv_prog_STRIP"
4034 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
4036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
4037 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
4038 if test -z "$MKDIR_P"; then
4039 if ${ac_cv_path_mkdir+:} false; then :
4040 $as_echo_n "(cached) " >&6
4042 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4043 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
4046 test -z "$as_dir" && as_dir=.
4047 for ac_prog in mkdir gmkdir; do
4048 for ac_exec_ext in '' $ac_executable_extensions; do
4049 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
4050 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
4051 'mkdir (GNU coreutils) '* | \
4052 'mkdir (coreutils) '* | \
4053 'mkdir (fileutils) '4.1*)
4054 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
4064 test -d ./--version && rmdir ./--version
4065 if test "${ac_cv_path_mkdir+set}" = set; then
4066 MKDIR_P="$ac_cv_path_mkdir -p"
4068 # As a last resort, use the slow shell script. Don't cache a
4069 # value for MKDIR_P within a source directory, because that will
4070 # break other packages using the cache if that directory is
4071 # removed, or if the value is a relative name.
4072 MKDIR_P="$ac_install_sh -d"
4075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
4076 $as_echo "$MKDIR_P" >&6; }
4078 for ac_prog in gawk mawk nawk awk
4080 # Extract the first word of "$ac_prog", so it can be a program name with args.
4081 set dummy $ac_prog; ac_word=$2
4082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4083 $as_echo_n "checking for $ac_word... " >&6; }
4084 if ${ac_cv_prog_AWK+:} false; then :
4085 $as_echo_n "(cached) " >&6
4087 if test -n "$AWK"; then
4088 ac_cv_prog_AWK="$AWK" # Let the user override the test.
4090 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4094 test -z "$as_dir" && as_dir=.
4095 for ac_exec_ext in '' $ac_executable_extensions; do
4096 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4097 ac_cv_prog_AWK="$ac_prog"
4098 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4108 if test -n "$AWK"; then
4109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4110 $as_echo "$AWK" >&6; }
4112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4113 $as_echo "no" >&6; }
4117 test -n "$AWK" && break
4120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4121 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4123 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4124 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
4125 $as_echo_n "(cached) " >&6
4127 cat >conftest.make <<\_ACEOF
4130 @echo '@@@%%%=$(MAKE)=@@@%%%'
4132 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
4133 case `${MAKE-make} -f conftest.make 2>/dev/null` in
4135 eval ac_cv_prog_make_${ac_make}_set=yes;;
4137 eval ac_cv_prog_make_${ac_make}_set=no;;
4141 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4143 $as_echo "yes" >&6; }
4146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4147 $as_echo "no" >&6; }
4148 SET_MAKE="MAKE=${MAKE-make}"
4151 rm -rf .tst 2>/dev/null
4152 mkdir .tst 2>/dev/null
4153 if test -d .tst; then
4158 rmdir .tst 2>/dev/null
4160 # Check whether --enable-silent-rules was given.
4161 if test "${enable_silent_rules+set}" = set; then :
4162 enableval=$enable_silent_rules;
4165 case $enable_silent_rules in # (((
4166 yes) AM_DEFAULT_VERBOSITY=0;;
4167 no) AM_DEFAULT_VERBOSITY=1;;
4168 *) AM_DEFAULT_VERBOSITY=1;;
4170 am_make=${MAKE-make}
4171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
4172 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
4173 if ${am_cv_make_support_nested_variables+:} false; then :
4174 $as_echo_n "(cached) " >&6
4176 if $as_echo 'TRUE=$(BAR$(V))
4182 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
4183 am_cv_make_support_nested_variables=yes
4185 am_cv_make_support_nested_variables=no
4188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
4189 $as_echo "$am_cv_make_support_nested_variables" >&6; }
4190 if test $am_cv_make_support_nested_variables = yes; then
4192 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
4194 AM_V=$AM_DEFAULT_VERBOSITY
4195 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
4199 if test "`cd $srcdir && pwd`" != "`pwd`"; then
4200 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
4201 # is not polluted with repeated "-I."
4202 am__isrc=' -I$(srcdir)'
4203 # test to see if srcdir already configured
4204 if test -f $srcdir/config.status; then
4205 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
4209 # test whether we have cygpath
4210 if test -z "$CYGPATH_W"; then
4211 if (cygpath --version) >/dev/null 2>/dev/null; then
4212 CYGPATH_W='cygpath -w'
4219 # Define the identity of the package.
4224 cat >>confdefs.h <<_ACEOF
4225 #define PACKAGE "$PACKAGE"
4229 cat >>confdefs.h <<_ACEOF
4230 #define VERSION "$VERSION"
4233 # Some tools Automake needs.
4235 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4238 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
4241 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4244 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
4247 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
4249 # For better backward compatibility. To be removed once Automake 1.9.x
4250 # dies out for good. For more background, see:
4251 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
4252 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
4253 mkdir_p='$(MKDIR_P)'
4255 # We need awk for the "check" target (and possibly the TAP driver). The
4256 # system "awk" is bad on some platforms.
4257 # Always define AMTAR for backward compatibility. Yes, it's still used
4258 # in the wild :-( We should find a proper way to deprecate it ...
4262 # We'll loop over all known methods to create a tar archive until one works.
4263 _am_tools='gnutar pax cpio none'
4265 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
4272 # POSIX will say in a future version that running "rm -f" with no argument
4273 # is OK; and we want to be able to make that assumption in our Makefile
4274 # recipes. So use an aggressive probe to check that the usage we want is
4275 # actually supported "in the wild" to an acceptable degree.
4276 # See automake bug#10828.
4277 # To make any issue more visible, cause the running configure to be aborted
4278 # by default if the 'rm' program in use doesn't match our expectations; the
4279 # user can still override this though.
4280 if rm -f && rm -fr && rm -rf; then : OK; else
4284 Your 'rm' program seems unable to run without file operands specified
4285 on the command line, even when the '-f' option is present. This is contrary
4286 to the behaviour of most rm programs out there, and not conforming with
4287 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
4289 Please tell bug-automake@gnu.org about your system, including the value
4290 of your $PATH and any error possibly output before this message. This
4291 can help us improve future automake versions.
4294 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
4295 echo 'Configuration will proceed anyway, since you have set the' >&2
4296 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
4300 Aborting the configuration process, to ensure you take notice of the issue.
4302 You can download and install GNU coreutils to get an 'rm' implementation
4303 that behaves properly: <http://www.gnu.org/software/coreutils/>.
4305 If you want to complete the configuration process using your problematic
4306 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
4307 to "yes", and re-run configure.
4310 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
4315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
4316 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
4317 # Check whether --enable-maintainer-mode was given.
4318 if test "${enable_maintainer_mode+set}" = set; then :
4319 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
4321 USE_MAINTAINER_MODE=no
4324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
4325 $as_echo "$USE_MAINTAINER_MODE" >&6; }
4326 if test $USE_MAINTAINER_MODE = yes; then
4327 MAINTAINER_MODE_TRUE=
4328 MAINTAINER_MODE_FALSE='#'
4330 MAINTAINER_MODE_TRUE='#'
4331 MAINTAINER_MODE_FALSE=
4334 MAINT=$MAINTAINER_MODE_TRUE
4337 # Check whether --enable-silent-rules was given.
4338 if test "${enable_silent_rules+set}" = set; then :
4339 enableval=$enable_silent_rules;
4342 case $enable_silent_rules in # (((
4343 yes) AM_DEFAULT_VERBOSITY=0;;
4344 no) AM_DEFAULT_VERBOSITY=1;;
4345 *) AM_DEFAULT_VERBOSITY=0;;
4347 am_make=${MAKE-make}
4348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
4349 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
4350 if ${am_cv_make_support_nested_variables+:} false; then :
4351 $as_echo_n "(cached) " >&6
4353 if $as_echo 'TRUE=$(BAR$(V))
4359 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
4360 am_cv_make_support_nested_variables=yes
4362 am_cv_make_support_nested_variables=no
4365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
4366 $as_echo "$am_cv_make_support_nested_variables" >&6; }
4367 if test $am_cv_make_support_nested_variables = yes; then
4369 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
4371 AM_V=$AM_DEFAULT_VERBOSITY
4372 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
4378 DEPDIR="${am__leading_dot}deps"
4380 ac_config_commands="$ac_config_commands depfiles"
4383 am_make=${MAKE-make}
4384 cat > confinc << 'END'
4386 @echo this is the am__doit target
4389 # If we don't find an include directive, just comment out the code.
4390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4391 $as_echo_n "checking for style of include used by $am_make... " >&6; }
4395 # First try GNU make style include.
4396 echo "include confinc" > confmf
4397 # Ignore all kinds of additional output from 'make'.
4398 case `$am_make -s -f confmf 2> /dev/null` in #(
4399 *the\ am__doit\ target*)
4405 # Now try BSD make style include.
4406 if test "$am__include" = "#"; then
4407 echo '.include "confinc"' > confmf
4408 case `$am_make -s -f confmf 2> /dev/null` in #(
4409 *the\ am__doit\ target*)
4410 am__include=.include
4418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4419 $as_echo "$_am_result" >&6; }
4420 rm -f confinc confmf
4422 # Check whether --enable-dependency-tracking was given.
4423 if test "${enable_dependency_tracking+set}" = set; then :
4424 enableval=$enable_dependency_tracking;
4427 if test "x$enable_dependency_tracking" != xno; then
4428 am_depcomp="$ac_aux_dir/depcomp"
4432 if test "x$enable_dependency_tracking" != xno; then
4442 ac_cpp='$CPP $CPPFLAGS'
4443 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4444 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4445 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4446 if test -n "$ac_tool_prefix"; then
4447 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4448 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4450 $as_echo_n "checking for $ac_word... " >&6; }
4451 if ${ac_cv_prog_CC+:} false; then :
4452 $as_echo_n "(cached) " >&6
4454 if test -n "$CC"; then
4455 ac_cv_prog_CC="$CC" # Let the user override the test.
4457 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4461 test -z "$as_dir" && as_dir=.
4462 for ac_exec_ext in '' $ac_executable_extensions; do
4463 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4464 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4465 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4475 if test -n "$CC"; then
4476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4477 $as_echo "$CC" >&6; }
4479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4480 $as_echo "no" >&6; }
4485 if test -z "$ac_cv_prog_CC"; then
4487 # Extract the first word of "gcc", so it can be a program name with args.
4488 set dummy gcc; ac_word=$2
4489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4490 $as_echo_n "checking for $ac_word... " >&6; }
4491 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4492 $as_echo_n "(cached) " >&6
4494 if test -n "$ac_ct_CC"; then
4495 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4497 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4501 test -z "$as_dir" && as_dir=.
4502 for ac_exec_ext in '' $ac_executable_extensions; do
4503 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4504 ac_cv_prog_ac_ct_CC="gcc"
4505 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4514 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4515 if test -n "$ac_ct_CC"; then
4516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4517 $as_echo "$ac_ct_CC" >&6; }
4519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4520 $as_echo "no" >&6; }
4523 if test "x$ac_ct_CC" = x; then
4526 case $cross_compiling:$ac_tool_warned in
4528 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4529 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4530 ac_tool_warned=yes ;;
4538 if test -z "$CC"; then
4539 if test -n "$ac_tool_prefix"; then
4540 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4541 set dummy ${ac_tool_prefix}cc; ac_word=$2
4542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4543 $as_echo_n "checking for $ac_word... " >&6; }
4544 if ${ac_cv_prog_CC+:} false; then :
4545 $as_echo_n "(cached) " >&6
4547 if test -n "$CC"; then
4548 ac_cv_prog_CC="$CC" # Let the user override the test.
4550 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4554 test -z "$as_dir" && as_dir=.
4555 for ac_exec_ext in '' $ac_executable_extensions; do
4556 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4557 ac_cv_prog_CC="${ac_tool_prefix}cc"
4558 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4568 if test -n "$CC"; then
4569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4570 $as_echo "$CC" >&6; }
4572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4573 $as_echo "no" >&6; }
4579 if test -z "$CC"; then
4580 # Extract the first word of "cc", so it can be a program name with args.
4581 set dummy cc; ac_word=$2
4582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4583 $as_echo_n "checking for $ac_word... " >&6; }
4584 if ${ac_cv_prog_CC+:} false; then :
4585 $as_echo_n "(cached) " >&6
4587 if test -n "$CC"; then
4588 ac_cv_prog_CC="$CC" # Let the user override the test.
4591 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4595 test -z "$as_dir" && as_dir=.
4596 for ac_exec_ext in '' $ac_executable_extensions; do
4597 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4598 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4599 ac_prog_rejected=yes
4603 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4610 if test $ac_prog_rejected = yes; then
4611 # We found a bogon in the path, so make sure we never use it.
4612 set dummy $ac_cv_prog_CC
4614 if test $# != 0; then
4615 # We chose a different compiler from the bogus one.
4616 # However, it has the same basename, so the bogon will be chosen
4617 # first if we set CC to just the basename; use the full file name.
4619 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4625 if test -n "$CC"; then
4626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4627 $as_echo "$CC" >&6; }
4629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4630 $as_echo "no" >&6; }
4635 if test -z "$CC"; then
4636 if test -n "$ac_tool_prefix"; then
4637 for ac_prog in cl.exe
4639 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4640 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4642 $as_echo_n "checking for $ac_word... " >&6; }
4643 if ${ac_cv_prog_CC+:} false; then :
4644 $as_echo_n "(cached) " >&6
4646 if test -n "$CC"; then
4647 ac_cv_prog_CC="$CC" # Let the user override the test.
4649 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4653 test -z "$as_dir" && as_dir=.
4654 for ac_exec_ext in '' $ac_executable_extensions; do
4655 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4656 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4657 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4667 if test -n "$CC"; then
4668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4669 $as_echo "$CC" >&6; }
4671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4672 $as_echo "no" >&6; }
4676 test -n "$CC" && break
4679 if test -z "$CC"; then
4681 for ac_prog in cl.exe
4683 # Extract the first word of "$ac_prog", so it can be a program name with args.
4684 set dummy $ac_prog; ac_word=$2
4685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4686 $as_echo_n "checking for $ac_word... " >&6; }
4687 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4688 $as_echo_n "(cached) " >&6
4690 if test -n "$ac_ct_CC"; then
4691 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4693 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4697 test -z "$as_dir" && as_dir=.
4698 for ac_exec_ext in '' $ac_executable_extensions; do
4699 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4700 ac_cv_prog_ac_ct_CC="$ac_prog"
4701 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4710 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4711 if test -n "$ac_ct_CC"; then
4712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4713 $as_echo "$ac_ct_CC" >&6; }
4715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4716 $as_echo "no" >&6; }
4720 test -n "$ac_ct_CC" && break
4723 if test "x$ac_ct_CC" = x; then
4726 case $cross_compiling:$ac_tool_warned in
4728 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4729 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4730 ac_tool_warned=yes ;;
4739 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4740 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4741 as_fn_error $? "no acceptable C compiler found in \$PATH
4742 See \`config.log' for more details" "$LINENO" 5; }
4744 # Provide some information about the compiler.
4745 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4748 for ac_option in --version -v -V -qversion; do
4749 { { ac_try="$ac_compiler $ac_option >&5"
4751 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4752 *) ac_try_echo=$ac_try;;
4754 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4755 $as_echo "$ac_try_echo"; } >&5
4756 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4758 if test -s conftest.err; then
4760 ... rest of stderr output deleted ...
4761 10q' conftest.err >conftest.er1
4762 cat conftest.er1 >&5
4764 rm -f conftest.er1 conftest.err
4765 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4766 test $ac_status = 0; }
4769 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4770 /* end confdefs.h. */
4780 ac_clean_files_save=$ac_clean_files
4781 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4782 # Try to create an executable without -o first, disregard a.out.
4783 # It will help us diagnose broken compilers, and finding out an intuition
4785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4786 $as_echo_n "checking whether the C compiler works... " >&6; }
4787 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4789 # The possible output files:
4790 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4793 for ac_file in $ac_files
4796 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4797 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4802 if { { ac_try="$ac_link_default"
4804 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4805 *) ac_try_echo=$ac_try;;
4807 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4808 $as_echo "$ac_try_echo"; } >&5
4809 (eval "$ac_link_default") 2>&5
4811 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4812 test $ac_status = 0; }; then :
4813 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4814 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4815 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4816 # so that the user can short-circuit this test for compilers unknown to
4818 for ac_file in $ac_files ''
4820 test -f "$ac_file" || continue
4822 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4825 # We found the default executable, but exeext='' is most
4829 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4831 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4833 # We set ac_cv_exeext here because the later test for it is not
4834 # safe: cross compilers may not add the suffix if given an `-o'
4835 # argument, so we may need to know it at that point already.
4836 # Even if this section looks crufty: it has the advantage of
4843 test "$ac_cv_exeext" = no && ac_cv_exeext=
4848 if test -z "$ac_file"; then :
4849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4850 $as_echo "no" >&6; }
4851 $as_echo "$as_me: failed program was:" >&5
4852 sed 's/^/| /' conftest.$ac_ext >&5
4854 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4855 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4856 as_fn_error 77 "C compiler cannot create executables
4857 See \`config.log' for more details" "$LINENO" 5; }
4859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4860 $as_echo "yes" >&6; }
4862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4863 $as_echo_n "checking for C compiler default output file name... " >&6; }
4864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4865 $as_echo "$ac_file" >&6; }
4866 ac_exeext=$ac_cv_exeext
4868 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4869 ac_clean_files=$ac_clean_files_save
4870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4871 $as_echo_n "checking for suffix of executables... " >&6; }
4872 if { { ac_try="$ac_link"
4874 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4875 *) ac_try_echo=$ac_try;;
4877 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4878 $as_echo "$ac_try_echo"; } >&5
4879 (eval "$ac_link") 2>&5
4881 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4882 test $ac_status = 0; }; then :
4883 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4884 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4885 # work properly (i.e., refer to `conftest.exe'), while it won't with
4887 for ac_file in conftest.exe conftest conftest.*; do
4888 test -f "$ac_file" || continue
4890 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4891 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4897 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4898 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4899 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4900 See \`config.log' for more details" "$LINENO" 5; }
4902 rm -f conftest conftest$ac_cv_exeext
4903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4904 $as_echo "$ac_cv_exeext" >&6; }
4906 rm -f conftest.$ac_ext
4907 EXEEXT=$ac_cv_exeext
4909 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4910 /* end confdefs.h. */
4915 FILE *f = fopen ("conftest.out", "w");
4916 return ferror (f) || fclose (f) != 0;
4922 ac_clean_files="$ac_clean_files conftest.out"
4923 # Check that the compiler produces executables we can run. If not, either
4924 # the compiler is broken, or we cross compile.
4925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4926 $as_echo_n "checking whether we are cross compiling... " >&6; }
4927 if test "$cross_compiling" != yes; then
4928 { { ac_try="$ac_link"
4930 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4931 *) ac_try_echo=$ac_try;;
4933 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4934 $as_echo "$ac_try_echo"; } >&5
4935 (eval "$ac_link") 2>&5
4937 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4938 test $ac_status = 0; }
4939 if { ac_try='./conftest$ac_cv_exeext'
4940 { { case "(($ac_try" in
4941 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4942 *) ac_try_echo=$ac_try;;
4944 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4945 $as_echo "$ac_try_echo"; } >&5
4946 (eval "$ac_try") 2>&5
4948 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4949 test $ac_status = 0; }; }; then
4952 if test "$cross_compiling" = maybe; then
4955 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4956 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4957 as_fn_error $? "cannot run C compiled programs.
4958 If you meant to cross compile, use \`--host'.
4959 See \`config.log' for more details" "$LINENO" 5; }
4963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4964 $as_echo "$cross_compiling" >&6; }
4966 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4967 ac_clean_files=$ac_clean_files_save
4968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4969 $as_echo_n "checking for suffix of object files... " >&6; }
4970 if ${ac_cv_objext+:} false; then :
4971 $as_echo_n "(cached) " >&6
4973 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4974 /* end confdefs.h. */
4984 rm -f conftest.o conftest.obj
4985 if { { ac_try="$ac_compile"
4987 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4988 *) ac_try_echo=$ac_try;;
4990 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4991 $as_echo "$ac_try_echo"; } >&5
4992 (eval "$ac_compile") 2>&5
4994 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4995 test $ac_status = 0; }; then :
4996 for ac_file in conftest.o conftest.obj conftest.*; do
4997 test -f "$ac_file" || continue;
4999 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
5000 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
5005 $as_echo "$as_me: failed program was:" >&5
5006 sed 's/^/| /' conftest.$ac_ext >&5
5008 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5009 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5010 as_fn_error $? "cannot compute suffix of object files: cannot compile
5011 See \`config.log' for more details" "$LINENO" 5; }
5013 rm -f conftest.$ac_cv_objext conftest.$ac_ext
5015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
5016 $as_echo "$ac_cv_objext" >&6; }
5017 OBJEXT=$ac_cv_objext
5019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
5020 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
5021 if ${ac_cv_c_compiler_gnu+:} false; then :
5022 $as_echo_n "(cached) " >&6
5024 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5025 /* end confdefs.h. */
5038 if ac_fn_c_try_compile "$LINENO"; then :
5043 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5044 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5048 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
5049 if test $ac_compiler_gnu = yes; then
5054 ac_test_CFLAGS=${CFLAGS+set}
5055 ac_save_CFLAGS=$CFLAGS
5056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5057 $as_echo_n "checking whether $CC accepts -g... " >&6; }
5058 if ${ac_cv_prog_cc_g+:} false; then :
5059 $as_echo_n "(cached) " >&6
5061 ac_save_c_werror_flag=$ac_c_werror_flag
5062 ac_c_werror_flag=yes
5065 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5066 /* end confdefs.h. */
5076 if ac_fn_c_try_compile "$LINENO"; then :
5080 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5081 /* end confdefs.h. */
5091 if ac_fn_c_try_compile "$LINENO"; then :
5094 ac_c_werror_flag=$ac_save_c_werror_flag
5096 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5097 /* end confdefs.h. */
5107 if ac_fn_c_try_compile "$LINENO"; then :
5110 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5112 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5114 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5115 ac_c_werror_flag=$ac_save_c_werror_flag
5117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5118 $as_echo "$ac_cv_prog_cc_g" >&6; }
5119 if test "$ac_test_CFLAGS" = set; then
5120 CFLAGS=$ac_save_CFLAGS
5121 elif test $ac_cv_prog_cc_g = yes; then
5122 if test "$GCC" = yes; then
5128 if test "$GCC" = yes; then
5134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
5135 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5136 if ${ac_cv_prog_cc_c89+:} false; then :
5137 $as_echo_n "(cached) " >&6
5139 ac_cv_prog_cc_c89=no
5141 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5142 /* end confdefs.h. */
5146 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5147 struct buf { int x; };
5148 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5149 static char *e (p, i)
5155 static char *f (char * (*g) (char **, int), char **p, ...)
5160 s = g (p, va_arg (v,int));
5165 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5166 function prototypes and stuff, but not '\xHH' hex character constants.
5167 These don't provoke an error unfortunately, instead are silently treated
5168 as 'x'. The following induces an error, until -std is added to get
5169 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5170 array size at least. It's necessary to write '\x00'==0 to get something
5171 that's true only with -std. */
5172 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5174 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5175 inside strings and character constants. */
5177 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5179 int test (int i, double x);
5180 struct s1 {int (*f) (int a);};
5181 struct s2 {int (*f) (double a);};
5182 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5188 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5193 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5194 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5196 CC="$ac_save_CC $ac_arg"
5197 if ac_fn_c_try_compile "$LINENO"; then :
5198 ac_cv_prog_cc_c89=$ac_arg
5200 rm -f core conftest.err conftest.$ac_objext
5201 test "x$ac_cv_prog_cc_c89" != "xno" && break
5203 rm -f conftest.$ac_ext
5208 case "x$ac_cv_prog_cc_c89" in
5210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5211 $as_echo "none needed" >&6; } ;;
5213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5214 $as_echo "unsupported" >&6; } ;;
5216 CC="$CC $ac_cv_prog_cc_c89"
5217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5218 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5220 if test "x$ac_cv_prog_cc_c89" != xno; then :
5225 ac_cpp='$CPP $CPPFLAGS'
5226 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5227 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5228 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5231 ac_cpp='$CPP $CPPFLAGS'
5232 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5233 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5234 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
5236 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
5237 if ${am_cv_prog_cc_c_o+:} false; then :
5238 $as_echo_n "(cached) " >&6
5240 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5241 /* end confdefs.h. */
5251 # Make sure it works both with $CC and with simple cc.
5252 # Following AC_PROG_CC_C_O, we do the test twice because some
5253 # compilers refuse to overwrite an existing .o file with -o,
5254 # though they will create one.
5255 am_cv_prog_cc_c_o=yes
5257 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
5258 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
5260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5261 (exit $ac_status); } \
5262 && test -f conftest2.$ac_objext; then
5265 am_cv_prog_cc_c_o=no
5269 rm -f core conftest*
5272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
5273 $as_echo "$am_cv_prog_cc_c_o" >&6; }
5274 if test "$am_cv_prog_cc_c_o" != yes; then
5275 # Losing compiler, so override with the script.
5276 # FIXME: It is wrong to rewrite CC.
5277 # But if we don't then we get into trouble of one sort or another.
5278 # A longer-term fix would be to have automake use am__CC in this case,
5279 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5280 CC="$am_aux_dir/compile $CC"
5283 ac_cpp='$CPP $CPPFLAGS'
5284 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5285 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5286 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5289 depcc="$CC" am_compiler_list=
5291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5292 $as_echo_n "checking dependency style of $depcc... " >&6; }
5293 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
5294 $as_echo_n "(cached) " >&6
5296 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5297 # We make a subdir and do the tests there. Otherwise we can end up
5298 # making bogus files that we don't know about and never remove. For
5299 # instance it was reported that on HP-UX the gcc test will end up
5300 # making a dummy file named 'D' -- because '-MD' means "put the output
5304 # Copy depcomp to subdir because otherwise we won't find it if we're
5305 # using a relative directory.
5306 cp "$am_depcomp" conftest.dir
5308 # We will build objects and dependencies in a subdirectory because
5309 # it helps to detect inapplicable dependency modes. For instance
5310 # both Tru64's cc and ICC support -MD to output dependencies as a
5311 # side effect of compilation, but ICC will put the dependencies in
5312 # the current directory while Tru64 will put them in the object
5316 am_cv_CC_dependencies_compiler_type=none
5317 if test "$am_compiler_list" = ""; then
5318 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5321 case " $depcc " in #(
5322 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5325 for depmode in $am_compiler_list; do
5326 # Setup a source with many dependencies, because some compilers
5327 # like to wrap large dependency lists on column 80 (with \), and
5328 # we should not choose a depcomp mode which is confused by this.
5330 # We need to recreate these files for each test, as the compiler may
5331 # overwrite some of them when testing with obscure command lines.
5332 # This happens at least with the AIX C compiler.
5334 for i in 1 2 3 4 5 6; do
5335 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5336 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
5337 # Solaris 10 /bin/sh.
5338 echo '/* dummy */' > sub/conftst$i.h
5340 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5342 # We check with '-c' and '-o' for the sake of the "dashmstdout"
5343 # mode. It turns out that the SunPro C++ compiler does not properly
5344 # handle '-M -o', and we need to detect this. Also, some Intel
5345 # versions had trouble with output in subdirs.
5346 am__obj=sub/conftest.${OBJEXT-o}
5347 am__minus_obj="-o $am__obj"
5350 # This depmode causes a compiler race in universal mode.
5351 test "$am__universal" = false || continue
5354 # After this tag, mechanisms are not by side-effect, so they'll
5355 # only be used when explicitly requested.
5356 if test "x$enable_dependency_tracking" = xyes; then
5362 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
5363 # This compiler won't grok '-c -o', but also, the minuso test has
5364 # not run yet. These depmodes are late enough in the game, and
5365 # so weak that their functioning should not be impacted.
5366 am__obj=conftest.${OBJEXT-o}
5371 if depmode=$depmode \
5372 source=sub/conftest.c object=$am__obj \
5373 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5374 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5375 >/dev/null 2>conftest.err &&
5376 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5377 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5378 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5379 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5380 # icc doesn't choke on unknown options, it will just issue warnings
5381 # or remarks (even with -Werror). So we grep stderr for any message
5382 # that says an option was ignored or not supported.
5383 # When given -MP, icc 7.0 and 7.1 complain thusly:
5384 # icc: Command line warning: ignoring option '-M'; no argument required
5385 # The diagnosis changed in icc 8.0:
5386 # icc: Command line remark: option '-MP' not supported
5387 if (grep 'ignoring option' conftest.err ||
5388 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5389 am_cv_CC_dependencies_compiler_type=$depmode
5398 am_cv_CC_dependencies_compiler_type=none
5402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5403 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5404 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5407 test "x$enable_dependency_tracking" != xno \
5408 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5410 am__fastdepCC_FALSE='#'
5412 am__fastdepCC_TRUE='#'
5413 am__fastdepCC_FALSE=
5419 ac_cpp='$CPP $CPPFLAGS'
5420 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5421 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5422 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5424 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5425 # On Suns, sometimes $CPP names a directory.
5426 if test -n "$CPP" && test -d "$CPP"; then
5429 if test -z "$CPP"; then
5430 if ${ac_cv_prog_CPP+:} false; then :
5431 $as_echo_n "(cached) " >&6
5433 # Double quotes because CPP needs to be expanded
5434 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5437 for ac_c_preproc_warn_flag in '' yes
5439 # Use a header file that comes with gcc, so configuring glibc
5440 # with a fresh cross-compiler works.
5441 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5442 # <limits.h> exists even on freestanding compilers.
5443 # On the NeXT, cc -E runs the code through the compiler's parser,
5444 # not just through cpp. "Syntax error" is here to catch this case.
5445 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5446 /* end confdefs.h. */
5448 # include <limits.h>
5450 # include <assert.h>
5454 if ac_fn_c_try_cpp "$LINENO"; then :
5457 # Broken: fails on valid input.
5460 rm -f conftest.err conftest.i conftest.$ac_ext
5462 # OK, works on sane cases. Now check whether nonexistent headers
5463 # can be detected and how.
5464 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5465 /* end confdefs.h. */
5466 #include <ac_nonexistent.h>
5468 if ac_fn_c_try_cpp "$LINENO"; then :
5469 # Broken: success on invalid input.
5472 # Passes both tests.
5476 rm -f conftest.err conftest.i conftest.$ac_ext
5479 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5480 rm -f conftest.i conftest.err conftest.$ac_ext
5481 if $ac_preproc_ok; then :
5493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5494 $as_echo "$CPP" >&6; }
5496 for ac_c_preproc_warn_flag in '' yes
5498 # Use a header file that comes with gcc, so configuring glibc
5499 # with a fresh cross-compiler works.
5500 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5501 # <limits.h> exists even on freestanding compilers.
5502 # On the NeXT, cc -E runs the code through the compiler's parser,
5503 # not just through cpp. "Syntax error" is here to catch this case.
5504 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5505 /* end confdefs.h. */
5507 # include <limits.h>
5509 # include <assert.h>
5513 if ac_fn_c_try_cpp "$LINENO"; then :
5516 # Broken: fails on valid input.
5519 rm -f conftest.err conftest.i conftest.$ac_ext
5521 # OK, works on sane cases. Now check whether nonexistent headers
5522 # can be detected and how.
5523 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5524 /* end confdefs.h. */
5525 #include <ac_nonexistent.h>
5527 if ac_fn_c_try_cpp "$LINENO"; then :
5528 # Broken: success on invalid input.
5531 # Passes both tests.
5535 rm -f conftest.err conftest.i conftest.$ac_ext
5538 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5539 rm -f conftest.i conftest.err conftest.$ac_ext
5540 if $ac_preproc_ok; then :
5543 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5544 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5545 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
5546 See \`config.log' for more details" "$LINENO" 5; }
5550 ac_cpp='$CPP $CPPFLAGS'
5551 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5552 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5553 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5557 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5558 if ${ac_cv_path_GREP+:} false; then :
5559 $as_echo_n "(cached) " >&6
5561 if test -z "$GREP"; then
5562 ac_path_GREP_found=false
5563 # Loop through the user's path and test for each of PROGNAME-LIST
5564 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5565 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5568 test -z "$as_dir" && as_dir=.
5569 for ac_prog in grep ggrep; do
5570 for ac_exec_ext in '' $ac_executable_extensions; do
5571 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5572 as_fn_executable_p "$ac_path_GREP" || continue
5573 # Check for GNU ac_path_GREP and select it if it is found.
5574 # Check for GNU $ac_path_GREP
5575 case `"$ac_path_GREP" --version 2>&1` in
5577 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5580 $as_echo_n 0123456789 >"conftest.in"
5583 cat "conftest.in" "conftest.in" >"conftest.tmp"
5584 mv "conftest.tmp" "conftest.in"
5585 cp "conftest.in" "conftest.nl"
5586 $as_echo 'GREP' >> "conftest.nl"
5587 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5588 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5589 as_fn_arith $ac_count + 1 && ac_count=$as_val
5590 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5591 # Best one so far, save it but keep looking for a better one
5592 ac_cv_path_GREP="$ac_path_GREP"
5593 ac_path_GREP_max=$ac_count
5595 # 10*(2^10) chars as input seems more than enough
5596 test $ac_count -gt 10 && break
5598 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5601 $ac_path_GREP_found && break 3
5606 if test -z "$ac_cv_path_GREP"; then
5607 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5610 ac_cv_path_GREP=$GREP
5614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5615 $as_echo "$ac_cv_path_GREP" >&6; }
5616 GREP="$ac_cv_path_GREP"
5619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5620 $as_echo_n "checking for egrep... " >&6; }
5621 if ${ac_cv_path_EGREP+:} false; then :
5622 $as_echo_n "(cached) " >&6
5624 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5625 then ac_cv_path_EGREP="$GREP -E"
5627 if test -z "$EGREP"; then
5628 ac_path_EGREP_found=false
5629 # Loop through the user's path and test for each of PROGNAME-LIST
5630 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5631 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5634 test -z "$as_dir" && as_dir=.
5635 for ac_prog in egrep; do
5636 for ac_exec_ext in '' $ac_executable_extensions; do
5637 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5638 as_fn_executable_p "$ac_path_EGREP" || continue
5639 # Check for GNU ac_path_EGREP and select it if it is found.
5640 # Check for GNU $ac_path_EGREP
5641 case `"$ac_path_EGREP" --version 2>&1` in
5643 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5646 $as_echo_n 0123456789 >"conftest.in"
5649 cat "conftest.in" "conftest.in" >"conftest.tmp"
5650 mv "conftest.tmp" "conftest.in"
5651 cp "conftest.in" "conftest.nl"
5652 $as_echo 'EGREP' >> "conftest.nl"
5653 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5654 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5655 as_fn_arith $ac_count + 1 && ac_count=$as_val
5656 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5657 # Best one so far, save it but keep looking for a better one
5658 ac_cv_path_EGREP="$ac_path_EGREP"
5659 ac_path_EGREP_max=$ac_count
5661 # 10*(2^10) chars as input seems more than enough
5662 test $ac_count -gt 10 && break
5664 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5667 $ac_path_EGREP_found && break 3
5672 if test -z "$ac_cv_path_EGREP"; then
5673 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5676 ac_cv_path_EGREP=$EGREP
5681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5682 $as_echo "$ac_cv_path_EGREP" >&6; }
5683 EGREP="$ac_cv_path_EGREP"
5686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5687 $as_echo_n "checking for ANSI C header files... " >&6; }
5688 if ${ac_cv_header_stdc+:} false; then :
5689 $as_echo_n "(cached) " >&6
5691 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5692 /* end confdefs.h. */
5706 if ac_fn_c_try_compile "$LINENO"; then :
5707 ac_cv_header_stdc=yes
5709 ac_cv_header_stdc=no
5711 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5713 if test $ac_cv_header_stdc = yes; then
5714 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5715 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5716 /* end confdefs.h. */
5720 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5721 $EGREP "memchr" >/dev/null 2>&1; then :
5724 ac_cv_header_stdc=no
5730 if test $ac_cv_header_stdc = yes; then
5731 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5732 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5733 /* end confdefs.h. */
5737 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5738 $EGREP "free" >/dev/null 2>&1; then :
5741 ac_cv_header_stdc=no
5747 if test $ac_cv_header_stdc = yes; then
5748 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5749 if test "$cross_compiling" = yes; then :
5752 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5753 /* end confdefs.h. */
5756 #if ((' ' & 0x0FF) == 0x020)
5757 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5758 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5760 # define ISLOWER(c) \
5761 (('a' <= (c) && (c) <= 'i') \
5762 || ('j' <= (c) && (c) <= 'r') \
5763 || ('s' <= (c) && (c) <= 'z'))
5764 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5767 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5772 for (i = 0; i < 256; i++)
5773 if (XOR (islower (i), ISLOWER (i))
5774 || toupper (i) != TOUPPER (i))
5779 if ac_fn_c_try_run "$LINENO"; then :
5782 ac_cv_header_stdc=no
5784 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5785 conftest.$ac_objext conftest.beam conftest.$ac_ext
5790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5791 $as_echo "$ac_cv_header_stdc" >&6; }
5792 if test $ac_cv_header_stdc = yes; then
5794 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5798 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5799 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5800 inttypes.h stdint.h unistd.h
5802 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5803 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5805 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5806 cat >>confdefs.h <<_ACEOF
5807 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5816 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
5817 if test "x$ac_cv_header_minix_config_h" = xyes; then :
5824 if test "$MINIX" = yes; then
5826 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5829 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5832 $as_echo "#define _MINIX 1" >>confdefs.h
5835 $as_echo "#define _NETBSD_SOURCE 1" >>confdefs.h
5840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5841 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5842 if ${ac_cv_safe_to_define___extensions__+:} false; then :
5843 $as_echo_n "(cached) " >&6
5845 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5846 /* end confdefs.h. */
5848 # define __EXTENSIONS__ 1
5849 $ac_includes_default
5858 if ac_fn_c_try_compile "$LINENO"; then :
5859 ac_cv_safe_to_define___extensions__=yes
5861 ac_cv_safe_to_define___extensions__=no
5863 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5866 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5867 test $ac_cv_safe_to_define___extensions__ = yes &&
5868 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5870 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5872 $as_echo "#define _DARWIN_C_SOURCE 1" >>confdefs.h
5874 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5876 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5878 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether _XOPEN_SOURCE should be defined" >&5
5881 $as_echo_n "checking whether _XOPEN_SOURCE should be defined... " >&6; }
5882 if ${ac_cv_should_define__xopen_source+:} false; then :
5883 $as_echo_n "(cached) " >&6
5885 ac_cv_should_define__xopen_source=no
5886 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5887 /* end confdefs.h. */
5899 if ac_fn_c_try_compile "$LINENO"; then :
5902 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5903 /* end confdefs.h. */
5905 #define _XOPEN_SOURCE 500
5916 if ac_fn_c_try_compile "$LINENO"; then :
5917 ac_cv_should_define__xopen_source=yes
5919 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5921 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_should_define__xopen_source" >&5
5924 $as_echo "$ac_cv_should_define__xopen_source" >&6; }
5925 test $ac_cv_should_define__xopen_source = yes &&
5926 $as_echo "#define _XOPEN_SOURCE 500" >>confdefs.h
5930 if test -n "$ac_tool_prefix"; then
5931 for ac_prog in ar lib "link -lib"
5933 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5934 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5936 $as_echo_n "checking for $ac_word... " >&6; }
5937 if ${ac_cv_prog_AR+:} false; then :
5938 $as_echo_n "(cached) " >&6
5940 if test -n "$AR"; then
5941 ac_cv_prog_AR="$AR" # Let the user override the test.
5943 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5947 test -z "$as_dir" && as_dir=.
5948 for ac_exec_ext in '' $ac_executable_extensions; do
5949 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5950 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5951 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5961 if test -n "$AR"; then
5962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5963 $as_echo "$AR" >&6; }
5965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5966 $as_echo "no" >&6; }
5970 test -n "$AR" && break
5973 if test -z "$AR"; then
5975 for ac_prog in ar lib "link -lib"
5977 # Extract the first word of "$ac_prog", so it can be a program name with args.
5978 set dummy $ac_prog; ac_word=$2
5979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5980 $as_echo_n "checking for $ac_word... " >&6; }
5981 if ${ac_cv_prog_ac_ct_AR+:} false; then :
5982 $as_echo_n "(cached) " >&6
5984 if test -n "$ac_ct_AR"; then
5985 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5987 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5991 test -z "$as_dir" && as_dir=.
5992 for ac_exec_ext in '' $ac_executable_extensions; do
5993 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5994 ac_cv_prog_ac_ct_AR="$ac_prog"
5995 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6004 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6005 if test -n "$ac_ct_AR"; then
6006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6007 $as_echo "$ac_ct_AR" >&6; }
6009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6010 $as_echo "no" >&6; }
6014 test -n "$ac_ct_AR" && break
6017 if test "x$ac_ct_AR" = x; then
6020 case $cross_compiling:$ac_tool_warned in
6022 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6023 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6024 ac_tool_warned=yes ;;
6032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the archiver ($AR) interface" >&5
6033 $as_echo_n "checking the archiver ($AR) interface... " >&6; }
6034 if ${am_cv_ar_interface+:} false; then :
6035 $as_echo_n "(cached) " >&6
6038 ac_cpp='$CPP $CPPFLAGS'
6039 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6040 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6041 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6043 am_cv_ar_interface=ar
6044 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6045 /* end confdefs.h. */
6046 int some_variable = 0;
6048 if ac_fn_c_try_compile "$LINENO"; then :
6049 am_ar_try='$AR cru libconftest.a conftest.$ac_objext >&5'
6050 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
6051 (eval $am_ar_try) 2>&5
6053 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6054 test $ac_status = 0; }
6055 if test "$ac_status" -eq 0; then
6056 am_cv_ar_interface=ar
6058 am_ar_try='$AR -NOLOGO -OUT:conftest.lib conftest.$ac_objext >&5'
6059 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
6060 (eval $am_ar_try) 2>&5
6062 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6063 test $ac_status = 0; }
6064 if test "$ac_status" -eq 0; then
6065 am_cv_ar_interface=lib
6067 am_cv_ar_interface=unknown
6070 rm -f conftest.lib libconftest.a
6073 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6075 ac_cpp='$CPP $CPPFLAGS'
6076 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6077 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6078 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_ar_interface" >&5
6082 $as_echo "$am_cv_ar_interface" >&6; }
6084 case $am_cv_ar_interface in
6088 # Microsoft lib, so override with the ar-lib wrapper script.
6089 # FIXME: It is wrong to rewrite AR.
6090 # But if we don't then we get into trouble of one sort or another.
6091 # A longer-term fix would be to have automake use am__AR in this case,
6092 # and then we could set am__AR="$am_aux_dir/ar-lib \$(AR)" or something
6094 AR="$am_aux_dir/ar-lib $AR"
6097 as_fn_error $? "could not determine $AR interface" "$LINENO" 5
6103 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
6104 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
6109 macro_version='2.4.6'
6110 macro_revision='2.4.6'
6124 ltmain=$ac_aux_dir/ltmain.sh
6126 # Make sure we can run config.sub.
6127 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
6128 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
6130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
6131 $as_echo_n "checking build system type... " >&6; }
6132 if ${ac_cv_build+:} false; then :
6133 $as_echo_n "(cached) " >&6
6135 ac_build_alias=$build_alias
6136 test "x$ac_build_alias" = x &&
6137 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
6138 test "x$ac_build_alias" = x &&
6139 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
6140 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
6141 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
6144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
6145 $as_echo "$ac_cv_build" >&6; }
6146 case $ac_cv_build in
6148 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
6151 ac_save_IFS=$IFS; IFS='-'
6157 # Remember, the first character of IFS is used to create $*,
6158 # except with old shells:
6161 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
6164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
6165 $as_echo_n "checking host system type... " >&6; }
6166 if ${ac_cv_host+:} false; then :
6167 $as_echo_n "(cached) " >&6
6169 if test "x$host_alias" = x; then
6170 ac_cv_host=$ac_cv_build
6172 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
6173 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
6177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
6178 $as_echo "$ac_cv_host" >&6; }
6181 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
6184 ac_save_IFS=$IFS; IFS='-'
6190 # Remember, the first character of IFS is used to create $*,
6191 # except with old shells:
6194 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
6197 # Backslashify metacharacters that are still active within
6198 # double-quoted strings.
6199 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
6201 # Same as above, but do not quote variable references.
6202 double_quote_subst='s/\(["`\\]\)/\\\1/g'
6204 # Sed substitution to delay expansion of an escaped shell variable in a
6205 # double_quote_subst'ed string.
6206 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6208 # Sed substitution to delay expansion of an escaped single quote.
6209 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
6211 # Sed substitution to avoid accidental globbing in evaled expressions
6212 no_glob_subst='s/\*/\\\*/g'
6214 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
6215 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
6216 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
6218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
6219 $as_echo_n "checking how to print strings... " >&6; }
6220 # Test print first, because it will be a builtin if present.
6221 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
6222 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
6224 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
6227 # Use this function as a fallback that always works.
6228 func_fallback_echo ()
6230 eval 'cat <<_LTECHO_EOF
6234 ECHO='func_fallback_echo'
6237 # func_echo_all arg...
6238 # Invoke $ECHO with all args, space-separated.
6245 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
6246 $as_echo "printf" >&6; } ;;
6247 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
6248 $as_echo "print -r" >&6; } ;;
6249 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
6250 $as_echo "cat" >&6; } ;;
6266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
6267 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
6268 if ${ac_cv_path_SED+:} false; then :
6269 $as_echo_n "(cached) " >&6
6271 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
6272 for ac_i in 1 2 3 4 5 6 7; do
6273 ac_script="$ac_script$as_nl$ac_script"
6275 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
6276 { ac_script=; unset ac_script;}
6277 if test -z "$SED"; then
6278 ac_path_SED_found=false
6279 # Loop through the user's path and test for each of PROGNAME-LIST
6280 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6284 test -z "$as_dir" && as_dir=.
6285 for ac_prog in sed gsed; do
6286 for ac_exec_ext in '' $ac_executable_extensions; do
6287 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
6288 as_fn_executable_p "$ac_path_SED" || continue
6289 # Check for GNU ac_path_SED and select it if it is found.
6290 # Check for GNU $ac_path_SED
6291 case `"$ac_path_SED" --version 2>&1` in
6293 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
6296 $as_echo_n 0123456789 >"conftest.in"
6299 cat "conftest.in" "conftest.in" >"conftest.tmp"
6300 mv "conftest.tmp" "conftest.in"
6301 cp "conftest.in" "conftest.nl"
6302 $as_echo '' >> "conftest.nl"
6303 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
6304 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6305 as_fn_arith $ac_count + 1 && ac_count=$as_val
6306 if test $ac_count -gt ${ac_path_SED_max-0}; then
6307 # Best one so far, save it but keep looking for a better one
6308 ac_cv_path_SED="$ac_path_SED"
6309 ac_path_SED_max=$ac_count
6311 # 10*(2^10) chars as input seems more than enough
6312 test $ac_count -gt 10 && break
6314 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6317 $ac_path_SED_found && break 3
6322 if test -z "$ac_cv_path_SED"; then
6323 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
6330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
6331 $as_echo "$ac_cv_path_SED" >&6; }
6332 SED="$ac_cv_path_SED"
6335 test -z "$SED" && SED=sed
6336 Xsed="$SED -e 1s/^X//"
6348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
6349 $as_echo_n "checking for fgrep... " >&6; }
6350 if ${ac_cv_path_FGREP+:} false; then :
6351 $as_echo_n "(cached) " >&6
6353 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
6354 then ac_cv_path_FGREP="$GREP -F"
6356 if test -z "$FGREP"; then
6357 ac_path_FGREP_found=false
6358 # Loop through the user's path and test for each of PROGNAME-LIST
6359 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6360 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6363 test -z "$as_dir" && as_dir=.
6364 for ac_prog in fgrep; do
6365 for ac_exec_ext in '' $ac_executable_extensions; do
6366 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
6367 as_fn_executable_p "$ac_path_FGREP" || continue
6368 # Check for GNU ac_path_FGREP and select it if it is found.
6369 # Check for GNU $ac_path_FGREP
6370 case `"$ac_path_FGREP" --version 2>&1` in
6372 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
6375 $as_echo_n 0123456789 >"conftest.in"
6378 cat "conftest.in" "conftest.in" >"conftest.tmp"
6379 mv "conftest.tmp" "conftest.in"
6380 cp "conftest.in" "conftest.nl"
6381 $as_echo 'FGREP' >> "conftest.nl"
6382 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
6383 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6384 as_fn_arith $ac_count + 1 && ac_count=$as_val
6385 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
6386 # Best one so far, save it but keep looking for a better one
6387 ac_cv_path_FGREP="$ac_path_FGREP"
6388 ac_path_FGREP_max=$ac_count
6390 # 10*(2^10) chars as input seems more than enough
6391 test $ac_count -gt 10 && break
6393 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6396 $ac_path_FGREP_found && break 3
6401 if test -z "$ac_cv_path_FGREP"; then
6402 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6405 ac_cv_path_FGREP=$FGREP
6410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
6411 $as_echo "$ac_cv_path_FGREP" >&6; }
6412 FGREP="$ac_cv_path_FGREP"
6415 test -z "$GREP" && GREP=grep
6435 # Check whether --with-gnu-ld was given.
6436 if test "${with_gnu_ld+set}" = set; then :
6437 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
6443 if test yes = "$GCC"; then
6444 # Check if gcc -print-prog-name=ld gives a path.
6445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
6446 $as_echo_n "checking for ld used by $CC... " >&6; }
6449 # gcc leaves a trailing carriage return, which upsets mingw
6450 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6452 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6455 # Accept absolute paths.
6457 re_direlt='/[^/][^/]*/\.\./'
6458 # Canonicalize the pathname of ld
6459 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
6460 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
6461 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
6463 test -z "$LD" && LD=$ac_prog
6466 # If it fails, then pretend we aren't using GCC.
6470 # If it is relative, then search for the first ld in PATH.
6474 elif test yes = "$with_gnu_ld"; then
6475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
6476 $as_echo_n "checking for GNU ld... " >&6; }
6478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
6479 $as_echo_n "checking for non-GNU ld... " >&6; }
6481 if ${lt_cv_path_LD+:} false; then :
6482 $as_echo_n "(cached) " >&6
6484 if test -z "$LD"; then
6485 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
6486 for ac_dir in $PATH; do
6488 test -z "$ac_dir" && ac_dir=.
6489 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6490 lt_cv_path_LD=$ac_dir/$ac_prog
6491 # Check to see if the program is GNU ld. I'd rather use --version,
6492 # but apparently some variants of GNU ld only accept -v.
6493 # Break only if it was the GNU/non-GNU ld that we prefer.
6494 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6495 *GNU* | *'with BFD'*)
6496 test no != "$with_gnu_ld" && break
6499 test yes != "$with_gnu_ld" && break
6506 lt_cv_path_LD=$LD # Let the user override the test with a path.
6511 if test -n "$LD"; then
6512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
6513 $as_echo "$LD" >&6; }
6515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6516 $as_echo "no" >&6; }
6518 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
6519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
6520 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
6521 if ${lt_cv_prog_gnu_ld+:} false; then :
6522 $as_echo_n "(cached) " >&6
6524 # I'd rather use --version here, but apparently some GNU lds only accept -v.
6525 case `$LD -v 2>&1 </dev/null` in
6526 *GNU* | *'with BFD'*)
6527 lt_cv_prog_gnu_ld=yes
6530 lt_cv_prog_gnu_ld=no
6534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
6535 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
6536 with_gnu_ld=$lt_cv_prog_gnu_ld
6546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
6547 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
6548 if ${lt_cv_path_NM+:} false; then :
6549 $as_echo_n "(cached) " >&6
6551 if test -n "$NM"; then
6552 # Let the user override the test.
6555 lt_nm_to_check=${ac_tool_prefix}nm
6556 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6557 lt_nm_to_check="$lt_nm_to_check nm"
6559 for lt_tmp_nm in $lt_nm_to_check; do
6560 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
6561 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6563 test -z "$ac_dir" && ac_dir=.
6564 tmp_nm=$ac_dir/$lt_tmp_nm
6565 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
6566 # Check to see if the nm accepts a BSD-compat flag.
6567 # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
6568 # nm: unknown option "B" ignored
6569 # Tru64's nm complains that /dev/null is an invalid object file
6570 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
6572 mingw*) lt_bad_file=conftest.nm/nofile ;;
6573 *) lt_bad_file=/dev/null ;;
6575 case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
6576 *$lt_bad_file* | *'Invalid file or object type'*)
6577 lt_cv_path_NM="$tmp_nm -B"
6581 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6583 lt_cv_path_NM="$tmp_nm -p"
6587 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6588 continue # so that we can try to find one that supports BSD flags
6597 : ${lt_cv_path_NM=no}
6600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
6601 $as_echo "$lt_cv_path_NM" >&6; }
6602 if test no != "$lt_cv_path_NM"; then
6605 # Didn't find any BSD compatible name lister, look for dumpbin.
6606 if test -n "$DUMPBIN"; then :
6607 # Let the user override the test.
6609 if test -n "$ac_tool_prefix"; then
6610 for ac_prog in dumpbin "link -dump"
6612 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6613 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6615 $as_echo_n "checking for $ac_word... " >&6; }
6616 if ${ac_cv_prog_DUMPBIN+:} false; then :
6617 $as_echo_n "(cached) " >&6
6619 if test -n "$DUMPBIN"; then
6620 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
6622 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6626 test -z "$as_dir" && as_dir=.
6627 for ac_exec_ext in '' $ac_executable_extensions; do
6628 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6629 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
6630 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6639 DUMPBIN=$ac_cv_prog_DUMPBIN
6640 if test -n "$DUMPBIN"; then
6641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
6642 $as_echo "$DUMPBIN" >&6; }
6644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6645 $as_echo "no" >&6; }
6649 test -n "$DUMPBIN" && break
6652 if test -z "$DUMPBIN"; then
6653 ac_ct_DUMPBIN=$DUMPBIN
6654 for ac_prog in dumpbin "link -dump"
6656 # Extract the first word of "$ac_prog", so it can be a program name with args.
6657 set dummy $ac_prog; ac_word=$2
6658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6659 $as_echo_n "checking for $ac_word... " >&6; }
6660 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
6661 $as_echo_n "(cached) " >&6
6663 if test -n "$ac_ct_DUMPBIN"; then
6664 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
6666 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6670 test -z "$as_dir" && as_dir=.
6671 for ac_exec_ext in '' $ac_executable_extensions; do
6672 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6673 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
6674 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6683 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
6684 if test -n "$ac_ct_DUMPBIN"; then
6685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
6686 $as_echo "$ac_ct_DUMPBIN" >&6; }
6688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6689 $as_echo "no" >&6; }
6693 test -n "$ac_ct_DUMPBIN" && break
6696 if test "x$ac_ct_DUMPBIN" = x; then
6699 case $cross_compiling:$ac_tool_warned in
6701 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6702 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6703 ac_tool_warned=yes ;;
6705 DUMPBIN=$ac_ct_DUMPBIN
6709 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
6711 DUMPBIN="$DUMPBIN -symbols -headers"
6719 if test : != "$DUMPBIN"; then
6723 test -z "$NM" && NM=nm
6730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
6731 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
6732 if ${lt_cv_nm_interface+:} false; then :
6733 $as_echo_n "(cached) " >&6
6735 lt_cv_nm_interface="BSD nm"
6736 echo "int some_variable = 0;" > conftest.$ac_ext
6737 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
6738 (eval "$ac_compile" 2>conftest.err)
6739 cat conftest.err >&5
6740 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6741 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6742 cat conftest.err >&5
6743 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
6744 cat conftest.out >&5
6745 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6746 lt_cv_nm_interface="MS dumpbin"
6750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6751 $as_echo "$lt_cv_nm_interface" >&6; }
6753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6754 $as_echo_n "checking whether ln -s works... " >&6; }
6756 if test "$LN_S" = "ln -s"; then
6757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6758 $as_echo "yes" >&6; }
6760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6761 $as_echo "no, using $LN_S" >&6; }
6764 # find the maximum length of command line arguments
6765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6766 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
6767 if ${lt_cv_sys_max_cmd_len+:} false; then :
6768 $as_echo_n "(cached) " >&6
6775 # On DJGPP, this test can blow up pretty badly due to problems in libc
6776 # (any single argument exceeding 2000 bytes causes a buffer overrun
6777 # during glob expansion). Even if it were fixed, the result of this
6778 # check would be larger than it should be.
6779 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6783 # Under GNU Hurd, this test is not required because there is
6784 # no limit to the length of command line arguments.
6785 # Libtool will interpret -1 as no limit whatsoever
6786 lt_cv_sys_max_cmd_len=-1;
6789 cygwin* | mingw* | cegcc*)
6790 # On Win9x/ME, this test blows up -- it succeeds, but takes
6791 # about 5 minutes as the teststring grows exponentially.
6792 # Worse, since 9x/ME are not pre-emptively multitasking,
6793 # you end up with a "frozen" computer, even though with patience
6794 # the test eventually succeeds (with a max line length of 256k).
6795 # Instead, let's just punt: use the minimum linelength reported by
6796 # all of the supported platforms: 8192 (on NT/2K/XP).
6797 lt_cv_sys_max_cmd_len=8192;
6801 # On MiNT this can take a long time and run out of memory.
6802 lt_cv_sys_max_cmd_len=8192;
6806 # On AmigaOS with pdksh, this test takes hours, literally.
6807 # So we just punt and use a minimum line length of 8192.
6808 lt_cv_sys_max_cmd_len=8192;
6811 bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
6812 # This has been around since 386BSD, at least. Likely further.
6813 if test -x /sbin/sysctl; then
6814 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6815 elif test -x /usr/sbin/sysctl; then
6816 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6818 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6820 # And add a safety zone
6821 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6822 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6826 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6827 lt_cv_sys_max_cmd_len=196608
6831 # The test takes a long time on OS/2.
6832 lt_cv_sys_max_cmd_len=8192
6836 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6837 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6838 # nice to cause kernel panics so lets avoid the loop below.
6839 # First set a reasonable default.
6840 lt_cv_sys_max_cmd_len=16384
6842 if test -x /sbin/sysconfig; then
6843 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6844 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6849 lt_cv_sys_max_cmd_len=102400
6851 sysv5* | sco5v6* | sysv4.2uw2*)
6852 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6853 if test -n "$kargmax"; then
6854 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6856 lt_cv_sys_max_cmd_len=32768
6860 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6861 if test -n "$lt_cv_sys_max_cmd_len" && \
6862 test undefined != "$lt_cv_sys_max_cmd_len"; then
6863 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6864 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6866 # Make teststring a little bigger before we do anything with it.
6867 # a 1K string should be a reasonable start.
6868 for i in 1 2 3 4 5 6 7 8; do
6869 teststring=$teststring$teststring
6871 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6872 # If test is not a shell built-in, we'll probably end up computing a
6873 # maximum length that is only half of the actual maximum length, but
6875 while { test X`env echo "$teststring$teststring" 2>/dev/null` \
6876 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
6877 test 17 != "$i" # 1/2 MB should be enough
6880 teststring=$teststring$teststring
6882 # Only check the string length outside the loop.
6883 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6885 # Add a significant safety factor because C++ compilers can tack on
6886 # massive amounts of additional arguments before passing them to the
6887 # linker. It appears as though 1/2 is a usable value.
6888 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6895 if test -n "$lt_cv_sys_max_cmd_len"; then
6896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6897 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6900 $as_echo "none" >&6; }
6902 max_cmd_len=$lt_cv_sys_max_cmd_len
6913 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6923 # test EBCDIC or ASCII
6924 case `echo X|tr X '\101'` in
6925 A) # ASCII based system
6926 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6927 lt_SP2NL='tr \040 \012'
6928 lt_NL2SP='tr \015\012 \040\040'
6930 *) # EBCDIC based system
6931 lt_SP2NL='tr \100 \n'
6932 lt_NL2SP='tr \r\n \100\100'
6944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
6945 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
6946 if ${lt_cv_to_host_file_cmd+:} false; then :
6947 $as_echo_n "(cached) " >&6
6952 *-*-mingw* ) # actually msys
6953 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
6956 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
6958 * ) # otherwise, assume *nix
6959 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
6965 *-*-mingw* ) # actually msys
6966 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
6969 lt_cv_to_host_file_cmd=func_convert_file_noop
6971 * ) # otherwise, assume *nix
6972 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
6976 * ) # unhandled hosts (and "normal" native builds)
6977 lt_cv_to_host_file_cmd=func_convert_file_noop
6983 to_host_file_cmd=$lt_cv_to_host_file_cmd
6984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
6985 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
6991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
6992 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
6993 if ${lt_cv_to_tool_file_cmd+:} false; then :
6994 $as_echo_n "(cached) " >&6
6996 #assume ordinary cross tools, or native build.
6997 lt_cv_to_tool_file_cmd=func_convert_file_noop
7001 *-*-mingw* ) # actually msys
7002 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
7010 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
7011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
7012 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
7018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
7019 $as_echo_n "checking for $LD option to reload object files... " >&6; }
7020 if ${lt_cv_ld_reload_flag+:} false; then :
7021 $as_echo_n "(cached) " >&6
7023 lt_cv_ld_reload_flag='-r'
7025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
7026 $as_echo "$lt_cv_ld_reload_flag" >&6; }
7027 reload_flag=$lt_cv_ld_reload_flag
7028 case $reload_flag in
7030 *) reload_flag=" $reload_flag" ;;
7032 reload_cmds='$LD$reload_flag -o $output$reload_objs'
7034 cygwin* | mingw* | pw32* | cegcc*)
7035 if test yes != "$GCC"; then
7040 if test yes = "$GCC"; then
7041 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
7043 reload_cmds='$LD$reload_flag -o $output$reload_objs'
7056 if test -n "$ac_tool_prefix"; then
7057 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
7058 set dummy ${ac_tool_prefix}objdump; ac_word=$2
7059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7060 $as_echo_n "checking for $ac_word... " >&6; }
7061 if ${ac_cv_prog_OBJDUMP+:} false; then :
7062 $as_echo_n "(cached) " >&6
7064 if test -n "$OBJDUMP"; then
7065 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
7067 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7071 test -z "$as_dir" && as_dir=.
7072 for ac_exec_ext in '' $ac_executable_extensions; do
7073 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7074 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
7075 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7084 OBJDUMP=$ac_cv_prog_OBJDUMP
7085 if test -n "$OBJDUMP"; then
7086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
7087 $as_echo "$OBJDUMP" >&6; }
7089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7090 $as_echo "no" >&6; }
7095 if test -z "$ac_cv_prog_OBJDUMP"; then
7096 ac_ct_OBJDUMP=$OBJDUMP
7097 # Extract the first word of "objdump", so it can be a program name with args.
7098 set dummy objdump; ac_word=$2
7099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7100 $as_echo_n "checking for $ac_word... " >&6; }
7101 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
7102 $as_echo_n "(cached) " >&6
7104 if test -n "$ac_ct_OBJDUMP"; then
7105 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
7107 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7111 test -z "$as_dir" && as_dir=.
7112 for ac_exec_ext in '' $ac_executable_extensions; do
7113 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7114 ac_cv_prog_ac_ct_OBJDUMP="objdump"
7115 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7124 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
7125 if test -n "$ac_ct_OBJDUMP"; then
7126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
7127 $as_echo "$ac_ct_OBJDUMP" >&6; }
7129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7130 $as_echo "no" >&6; }
7133 if test "x$ac_ct_OBJDUMP" = x; then
7136 case $cross_compiling:$ac_tool_warned in
7138 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7139 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7140 ac_tool_warned=yes ;;
7142 OBJDUMP=$ac_ct_OBJDUMP
7145 OBJDUMP="$ac_cv_prog_OBJDUMP"
7148 test -z "$OBJDUMP" && OBJDUMP=objdump
7158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
7159 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
7160 if ${lt_cv_deplibs_check_method+:} false; then :
7161 $as_echo_n "(cached) " >&6
7163 lt_cv_file_magic_cmd='$MAGIC_CMD'
7164 lt_cv_file_magic_test_file=
7165 lt_cv_deplibs_check_method='unknown'
7166 # Need to set the preceding variable on all platforms that support
7167 # interlibrary dependencies.
7168 # 'none' -- dependencies not supported.
7169 # 'unknown' -- same as none, but documents that we really don't know.
7170 # 'pass_all' -- all dependencies passed with no checks.
7171 # 'test_compile' -- check by making test program.
7172 # 'file_magic [[regex]]' -- check by looking for files in library path
7173 # that responds to the $file_magic_cmd with a given extended regex.
7174 # If you have 'file' or equivalent on your system and you're not sure
7175 # whether 'pass_all' will *always* work, you probably want this one.
7179 lt_cv_deplibs_check_method=pass_all
7183 lt_cv_deplibs_check_method=pass_all
7187 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
7188 lt_cv_file_magic_cmd='/usr/bin/file -L'
7189 lt_cv_file_magic_test_file=/shlib/libc.so
7193 # func_win32_libid is a shell function defined in ltmain.sh
7194 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7195 lt_cv_file_magic_cmd='func_win32_libid'
7199 # Base MSYS/MinGW do not provide the 'file' command needed by
7200 # func_win32_libid shell function, so use a weaker test based on 'objdump',
7201 # unless we find 'file', for example because we are cross-compiling.
7202 if ( file / ) >/dev/null 2>&1; then
7203 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7204 lt_cv_file_magic_cmd='func_win32_libid'
7206 # Keep this pattern in sync with the one in func_win32_libid.
7207 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
7208 lt_cv_file_magic_cmd='$OBJDUMP -f'
7213 # use the weaker test based on 'objdump'. See mingw*.
7214 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
7215 lt_cv_file_magic_cmd='$OBJDUMP -f'
7218 darwin* | rhapsody*)
7219 lt_cv_deplibs_check_method=pass_all
7222 freebsd* | dragonfly*)
7223 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7226 # Not sure whether the presence of OpenBSD here was a mistake.
7227 # Let's accept both of them until this is cleared up.
7228 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
7229 lt_cv_file_magic_cmd=/usr/bin/file
7230 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
7234 lt_cv_deplibs_check_method=pass_all
7239 lt_cv_deplibs_check_method=pass_all
7242 hpux10.20* | hpux11*)
7243 lt_cv_file_magic_cmd=/usr/bin/file
7246 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
7247 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
7250 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]'
7251 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
7254 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
7255 lt_cv_file_magic_test_file=/usr/lib/libc.sl
7261 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
7262 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
7265 irix5* | irix6* | nonstopux*)
7267 *-32|*"-32 ") libmagic=32-bit;;
7268 *-n32|*"-n32 ") libmagic=N32;;
7269 *-64|*"-64 ") libmagic=64-bit;;
7270 *) libmagic=never-match;;
7272 lt_cv_deplibs_check_method=pass_all
7275 # This must be glibc/ELF.
7276 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
7277 lt_cv_deplibs_check_method=pass_all
7280 netbsd* | netbsdelf*-gnu)
7281 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7282 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7284 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
7289 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
7290 lt_cv_file_magic_cmd=/usr/bin/file
7291 lt_cv_file_magic_test_file=/usr/lib/libnls.so
7295 lt_cv_deplibs_check_method=pass_all
7299 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
7300 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
7302 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7306 osf3* | osf4* | osf5*)
7307 lt_cv_deplibs_check_method=pass_all
7311 lt_cv_deplibs_check_method=pass_all
7315 lt_cv_deplibs_check_method=pass_all
7318 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
7319 lt_cv_deplibs_check_method=pass_all
7323 case $host_vendor in
7325 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]'
7326 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
7329 lt_cv_deplibs_check_method=pass_all
7332 lt_cv_file_magic_cmd='/bin/file'
7333 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
7336 lt_cv_file_magic_cmd='/bin/file'
7337 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
7338 lt_cv_file_magic_test_file=/lib/libc.so
7341 lt_cv_deplibs_check_method=pass_all
7344 lt_cv_deplibs_check_method=pass_all
7350 lt_cv_deplibs_check_method=pass_all
7353 lt_cv_deplibs_check_method=pass_all
7358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
7359 $as_echo "$lt_cv_deplibs_check_method" >&6; }
7363 if test "$build" = "$host"; then
7366 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
7369 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
7375 file_magic_cmd=$lt_cv_file_magic_cmd
7376 deplibs_check_method=$lt_cv_deplibs_check_method
7377 test -z "$deplibs_check_method" && deplibs_check_method=unknown
7400 if test -n "$ac_tool_prefix"; then
7401 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
7402 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
7403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7404 $as_echo_n "checking for $ac_word... " >&6; }
7405 if ${ac_cv_prog_DLLTOOL+:} false; then :
7406 $as_echo_n "(cached) " >&6
7408 if test -n "$DLLTOOL"; then
7409 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
7411 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7415 test -z "$as_dir" && as_dir=.
7416 for ac_exec_ext in '' $ac_executable_extensions; do
7417 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7418 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
7419 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7428 DLLTOOL=$ac_cv_prog_DLLTOOL
7429 if test -n "$DLLTOOL"; then
7430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
7431 $as_echo "$DLLTOOL" >&6; }
7433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7434 $as_echo "no" >&6; }
7439 if test -z "$ac_cv_prog_DLLTOOL"; then
7440 ac_ct_DLLTOOL=$DLLTOOL
7441 # Extract the first word of "dlltool", so it can be a program name with args.
7442 set dummy dlltool; ac_word=$2
7443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7444 $as_echo_n "checking for $ac_word... " >&6; }
7445 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
7446 $as_echo_n "(cached) " >&6
7448 if test -n "$ac_ct_DLLTOOL"; then
7449 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
7451 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7455 test -z "$as_dir" && as_dir=.
7456 for ac_exec_ext in '' $ac_executable_extensions; do
7457 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7458 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
7459 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7468 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
7469 if test -n "$ac_ct_DLLTOOL"; then
7470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
7471 $as_echo "$ac_ct_DLLTOOL" >&6; }
7473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7474 $as_echo "no" >&6; }
7477 if test "x$ac_ct_DLLTOOL" = x; then
7480 case $cross_compiling:$ac_tool_warned in
7482 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7483 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7484 ac_tool_warned=yes ;;
7486 DLLTOOL=$ac_ct_DLLTOOL
7489 DLLTOOL="$ac_cv_prog_DLLTOOL"
7492 test -z "$DLLTOOL" && DLLTOOL=dlltool
7503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
7504 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
7505 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
7506 $as_echo_n "(cached) " >&6
7508 lt_cv_sharedlib_from_linklib_cmd='unknown'
7511 cygwin* | mingw* | pw32* | cegcc*)
7512 # two different shell functions defined in ltmain.sh;
7513 # decide which one to use based on capabilities of $DLLTOOL
7514 case `$DLLTOOL --help 2>&1` in
7515 *--identify-strict*)
7516 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
7519 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
7524 # fallback: assume linklib IS sharedlib
7525 lt_cv_sharedlib_from_linklib_cmd=$ECHO
7530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
7531 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
7532 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
7533 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
7541 if test -n "$ac_tool_prefix"; then
7544 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7545 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7547 $as_echo_n "checking for $ac_word... " >&6; }
7548 if ${ac_cv_prog_AR+:} false; then :
7549 $as_echo_n "(cached) " >&6
7551 if test -n "$AR"; then
7552 ac_cv_prog_AR="$AR" # Let the user override the test.
7554 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7558 test -z "$as_dir" && as_dir=.
7559 for ac_exec_ext in '' $ac_executable_extensions; do
7560 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7561 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
7562 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7572 if test -n "$AR"; then
7573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7574 $as_echo "$AR" >&6; }
7576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7577 $as_echo "no" >&6; }
7581 test -n "$AR" && break
7584 if test -z "$AR"; then
7588 # Extract the first word of "$ac_prog", so it can be a program name with args.
7589 set dummy $ac_prog; ac_word=$2
7590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7591 $as_echo_n "checking for $ac_word... " >&6; }
7592 if ${ac_cv_prog_ac_ct_AR+:} false; then :
7593 $as_echo_n "(cached) " >&6
7595 if test -n "$ac_ct_AR"; then
7596 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7598 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7602 test -z "$as_dir" && as_dir=.
7603 for ac_exec_ext in '' $ac_executable_extensions; do
7604 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7605 ac_cv_prog_ac_ct_AR="$ac_prog"
7606 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7615 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7616 if test -n "$ac_ct_AR"; then
7617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
7618 $as_echo "$ac_ct_AR" >&6; }
7620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7621 $as_echo "no" >&6; }
7625 test -n "$ac_ct_AR" && break
7628 if test "x$ac_ct_AR" = x; then
7631 case $cross_compiling:$ac_tool_warned in
7633 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7634 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7635 ac_tool_warned=yes ;;
7654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
7655 $as_echo_n "checking for archiver @FILE support... " >&6; }
7656 if ${lt_cv_ar_at_file+:} false; then :
7657 $as_echo_n "(cached) " >&6
7660 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7661 /* end confdefs.h. */
7671 if ac_fn_c_try_compile "$LINENO"; then :
7672 echo conftest.$ac_objext > conftest.lst
7673 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
7674 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
7675 (eval $lt_ar_try) 2>&5
7677 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7678 test $ac_status = 0; }
7679 if test 0 -eq "$ac_status"; then
7680 # Ensure the archiver fails upon bogus file names.
7681 rm -f conftest.$ac_objext libconftest.a
7682 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
7683 (eval $lt_ar_try) 2>&5
7685 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7686 test $ac_status = 0; }
7687 if test 0 -ne "$ac_status"; then
7691 rm -f conftest.* libconftest.a
7694 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
7698 $as_echo "$lt_cv_ar_at_file" >&6; }
7700 if test no = "$lt_cv_ar_at_file"; then
7703 archiver_list_spec=$lt_cv_ar_at_file
7712 if test -n "$ac_tool_prefix"; then
7713 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7714 set dummy ${ac_tool_prefix}strip; ac_word=$2
7715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7716 $as_echo_n "checking for $ac_word... " >&6; }
7717 if ${ac_cv_prog_STRIP+:} false; then :
7718 $as_echo_n "(cached) " >&6
7720 if test -n "$STRIP"; then
7721 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7723 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7727 test -z "$as_dir" && as_dir=.
7728 for ac_exec_ext in '' $ac_executable_extensions; do
7729 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7730 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7731 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7740 STRIP=$ac_cv_prog_STRIP
7741 if test -n "$STRIP"; then
7742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
7743 $as_echo "$STRIP" >&6; }
7745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7746 $as_echo "no" >&6; }
7751 if test -z "$ac_cv_prog_STRIP"; then
7753 # Extract the first word of "strip", so it can be a program name with args.
7754 set dummy strip; ac_word=$2
7755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7756 $as_echo_n "checking for $ac_word... " >&6; }
7757 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
7758 $as_echo_n "(cached) " >&6
7760 if test -n "$ac_ct_STRIP"; then
7761 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7763 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7767 test -z "$as_dir" && as_dir=.
7768 for ac_exec_ext in '' $ac_executable_extensions; do
7769 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7770 ac_cv_prog_ac_ct_STRIP="strip"
7771 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7780 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7781 if test -n "$ac_ct_STRIP"; then
7782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
7783 $as_echo "$ac_ct_STRIP" >&6; }
7785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7786 $as_echo "no" >&6; }
7789 if test "x$ac_ct_STRIP" = x; then
7792 case $cross_compiling:$ac_tool_warned in
7794 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7795 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7796 ac_tool_warned=yes ;;
7801 STRIP="$ac_cv_prog_STRIP"
7804 test -z "$STRIP" && STRIP=:
7811 if test -n "$ac_tool_prefix"; then
7812 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7813 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7815 $as_echo_n "checking for $ac_word... " >&6; }
7816 if ${ac_cv_prog_RANLIB+:} false; then :
7817 $as_echo_n "(cached) " >&6
7819 if test -n "$RANLIB"; then
7820 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7822 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7826 test -z "$as_dir" && as_dir=.
7827 for ac_exec_ext in '' $ac_executable_extensions; do
7828 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7829 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7830 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7839 RANLIB=$ac_cv_prog_RANLIB
7840 if test -n "$RANLIB"; then
7841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7842 $as_echo "$RANLIB" >&6; }
7844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7845 $as_echo "no" >&6; }
7850 if test -z "$ac_cv_prog_RANLIB"; then
7851 ac_ct_RANLIB=$RANLIB
7852 # Extract the first word of "ranlib", so it can be a program name with args.
7853 set dummy ranlib; ac_word=$2
7854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7855 $as_echo_n "checking for $ac_word... " >&6; }
7856 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
7857 $as_echo_n "(cached) " >&6
7859 if test -n "$ac_ct_RANLIB"; then
7860 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7862 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7866 test -z "$as_dir" && as_dir=.
7867 for ac_exec_ext in '' $ac_executable_extensions; do
7868 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7869 ac_cv_prog_ac_ct_RANLIB="ranlib"
7870 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7879 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7880 if test -n "$ac_ct_RANLIB"; then
7881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7882 $as_echo "$ac_ct_RANLIB" >&6; }
7884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7885 $as_echo "no" >&6; }
7888 if test "x$ac_ct_RANLIB" = x; then
7891 case $cross_compiling:$ac_tool_warned in
7893 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7894 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7895 ac_tool_warned=yes ;;
7897 RANLIB=$ac_ct_RANLIB
7900 RANLIB="$ac_cv_prog_RANLIB"
7903 test -z "$RANLIB" && RANLIB=:
7910 # Determine commands to create old-style static archives.
7911 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7912 old_postinstall_cmds='chmod 644 $oldlib'
7913 old_postuninstall_cmds=
7915 if test -n "$RANLIB"; then
7918 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
7921 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
7924 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
7929 lock_old_archive_extraction=yes ;;
7931 lock_old_archive_extraction=no ;;
7972 # If no C compiler was specified, use CC.
7975 # If no C compiler flags were specified, use CFLAGS.
7976 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7978 # Allow CC to be a program name with arguments.
7982 # Check for command to grab the raw symbol name followed by C symbol from nm.
7983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7984 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
7985 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
7986 $as_echo_n "(cached) " >&6
7989 # These are sane defaults that work on at least a few old systems.
7990 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
7992 # Character class describing NM global symbol codes.
7993 symcode='[BCDEGRST]'
7995 # Regexp to match symbols that can be accessed directly from C.
7996 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7998 # Define system-specific variables.
8003 cygwin* | mingw* | pw32* | cegcc*)
8004 symcode='[ABCDGISTW]'
8007 if test ia64 = "$host_cpu"; then
8008 symcode='[ABCDEGRST]'
8012 symcode='[BCDEGRST]'
8015 symcode='[BCDEGQRST]'
8026 sysv5* | sco5v6* | unixware* | OpenUNIX*)
8034 # If we're using GNU nm, then use its standard symbol codes.
8035 case `$NM -V 2>&1` in
8036 *GNU* | *'with BFD'*)
8037 symcode='[ABCDGIRSTW]' ;;
8040 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
8041 # Gets list of data symbols to import.
8042 lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
8043 # Adjust the below global symbol transforms to fixup imported variables.
8044 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
8045 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
8046 lt_c_name_lib_hook="\
8047 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
8048 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
8050 # Disable hooks by default.
8051 lt_cv_sys_global_symbol_to_import=
8057 # Transform an extracted symbol line into a proper C declaration.
8058 # Some systems (esp. on ia64) link data and code symbols differently,
8059 # so use this general approach.
8060 lt_cv_sys_global_symbol_to_cdecl="sed -n"\
8062 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
8063 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
8065 # Transform an extracted symbol line into symbol name and symbol address
8066 lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
8068 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
8069 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
8071 # Transform an extracted symbol line into symbol name with lib prefix and
8073 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
8074 $lt_c_name_lib_hook\
8075 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
8076 " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
8077 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
8079 # Handle CRLF in mingw tool chain
8083 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
8087 # Try without a prefix underscore, then with it.
8088 for ac_symprfx in "" "_"; do
8090 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
8091 symxfrm="\\1 $ac_symprfx\\2 \\2"
8093 # Write the raw and C identifiers.
8094 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
8095 # Fake it for dumpbin and say T for any non-static function,
8096 # D for any global variable and I for any imported variable.
8097 # Also find C++ and __fastcall symbols from MSVC++,
8098 # which start with @ or ?.
8099 lt_cv_sys_global_symbol_pipe="$AWK '"\
8100 " {last_section=section; section=\$ 3};"\
8101 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
8102 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
8103 " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
8104 " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
8105 " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
8106 " \$ 0!~/External *\|/{next};"\
8107 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
8108 " {if(hide[section]) next};"\
8109 " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
8110 " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
8111 " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
8112 " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
8113 " ' prfx=^$ac_symprfx"
8115 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
8117 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
8119 # Check to see that the pipe works correctly.
8123 cat > conftest.$ac_ext <<_LT_EOF
8128 void nm_test_func(void);
8129 void nm_test_func(void){}
8133 int main(){nm_test_var='a';nm_test_func();return(0);}
8136 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8137 (eval $ac_compile) 2>&5
8139 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8140 test $ac_status = 0; }; then
8141 # Now try to grab the symbols.
8143 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
8144 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
8146 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8147 test $ac_status = 0; } && test -s "$nlist"; then
8148 # Try sorting and uniquifying the output.
8149 if sort "$nlist" | uniq > "$nlist"T; then
8150 mv -f "$nlist"T "$nlist"
8155 # Make sure that we snagged all the symbols we need.
8156 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
8157 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
8158 cat <<_LT_EOF > conftest.$ac_ext
8159 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
8160 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
8161 /* DATA imports from DLLs on WIN32 can't be const, because runtime
8162 relocations are performed -- see ld's documentation on pseudo-relocs. */
8163 # define LT_DLSYM_CONST
8164 #elif defined __osf__
8165 /* This system does not cope well with relocations in const data. */
8166 # define LT_DLSYM_CONST
8168 # define LT_DLSYM_CONST const
8176 # Now generate the symbol file.
8177 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
8179 cat <<_LT_EOF >> conftest.$ac_ext
8181 /* The mapping between symbol names and symbols. */
8182 LT_DLSYM_CONST struct {
8186 lt__PROGRAM__LTX_preloaded_symbols[] =
8188 { "@PROGRAM@", (void *) 0 },
8190 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
8191 cat <<\_LT_EOF >> conftest.$ac_ext
8195 /* This works around a problem in FreeBSD linker */
8196 #ifdef FREEBSD_WORKAROUND
8197 static const void *lt_preloaded_setup() {
8198 return lt__PROGRAM__LTX_preloaded_symbols;
8206 # Now try linking the two files.
8207 mv conftest.$ac_objext conftstm.$ac_objext
8208 lt_globsym_save_LIBS=$LIBS
8209 lt_globsym_save_CFLAGS=$CFLAGS
8210 LIBS=conftstm.$ac_objext
8211 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
8212 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
8213 (eval $ac_link) 2>&5
8215 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8216 test $ac_status = 0; } && test -s conftest$ac_exeext; then
8219 LIBS=$lt_globsym_save_LIBS
8220 CFLAGS=$lt_globsym_save_CFLAGS
8222 echo "cannot find nm_test_func in $nlist" >&5
8225 echo "cannot find nm_test_var in $nlist" >&5
8228 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
8231 echo "$progname: failed program was:" >&5
8232 cat conftest.$ac_ext >&5
8234 rm -rf conftest* conftst*
8236 # Do not use the global_symbol_pipe unless it works.
8237 if test yes = "$pipe_works"; then
8240 lt_cv_sys_global_symbol_pipe=
8246 if test -z "$lt_cv_sys_global_symbol_pipe"; then
8247 lt_cv_sys_global_symbol_to_cdecl=
8249 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
8250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
8251 $as_echo "failed" >&6; }
8253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
8254 $as_echo "ok" >&6; }
8257 # Response file support.
8258 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
8259 nm_file_list_spec='@'
8260 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
8261 nm_file_list_spec='@'
8300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
8301 $as_echo_n "checking for sysroot... " >&6; }
8303 # Check whether --with-sysroot was given.
8304 if test "${with_sysroot+set}" = set; then :
8305 withval=$with_sysroot;
8312 case $with_sysroot in #(
8314 if test yes = "$GCC"; then
8315 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
8319 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
8324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
8325 $as_echo "$with_sysroot" >&6; }
8326 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
8330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
8331 $as_echo "${lt_sysroot:-no}" >&6; }
8337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
8338 $as_echo_n "checking for a working dd... " >&6; }
8339 if ${ac_cv_path_lt_DD+:} false; then :
8340 $as_echo_n "(cached) " >&6
8342 printf 0123456789abcdef0123456789abcdef >conftest.i
8343 cat conftest.i conftest.i >conftest2.i
8345 if test -z "$lt_DD"; then
8346 ac_path_lt_DD_found=false
8347 # Loop through the user's path and test for each of PROGNAME-LIST
8348 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8352 test -z "$as_dir" && as_dir=.
8353 for ac_prog in dd; do
8354 for ac_exec_ext in '' $ac_executable_extensions; do
8355 ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
8356 as_fn_executable_p "$ac_path_lt_DD" || continue
8357 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
8358 cmp -s conftest.i conftest.out \
8359 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
8361 $ac_path_lt_DD_found && break 3
8366 if test -z "$ac_cv_path_lt_DD"; then
8370 ac_cv_path_lt_DD=$lt_DD
8373 rm -f conftest.i conftest2.i conftest.out
8375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
8376 $as_echo "$ac_cv_path_lt_DD" >&6; }
8379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
8380 $as_echo_n "checking how to truncate binary pipes... " >&6; }
8381 if ${lt_cv_truncate_bin+:} false; then :
8382 $as_echo_n "(cached) " >&6
8384 printf 0123456789abcdef0123456789abcdef >conftest.i
8385 cat conftest.i conftest.i >conftest2.i
8387 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
8388 cmp -s conftest.i conftest.out \
8389 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
8391 rm -f conftest.i conftest2.i conftest.out
8392 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
8394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
8395 $as_echo "$lt_cv_truncate_bin" >&6; }
8403 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
8406 for cc_temp in $*""; do
8408 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8409 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8414 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8417 # Check whether --enable-libtool-lock was given.
8418 if test "${enable_libtool_lock+set}" = set; then :
8419 enableval=$enable_libtool_lock;
8422 test no = "$enable_libtool_lock" || enable_libtool_lock=yes
8424 # Some flags need to be propagated to the compiler or linker for good
8428 # Find out what ABI is being produced by ac_compile, and set mode
8429 # options accordingly.
8430 echo 'int i;' > conftest.$ac_ext
8431 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8432 (eval $ac_compile) 2>&5
8434 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8435 test $ac_status = 0; }; then
8436 case `/usr/bin/file conftest.$ac_objext` in
8448 # Find out what ABI is being produced by ac_compile, and set linker
8449 # options accordingly.
8450 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
8451 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8452 (eval $ac_compile) 2>&5
8454 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8455 test $ac_status = 0; }; then
8456 if test yes = "$lt_cv_prog_gnu_ld"; then
8457 case `/usr/bin/file conftest.$ac_objext` in
8459 LD="${LD-ld} -melf32bsmip"
8462 LD="${LD-ld} -melf32bmipn32"
8465 LD="${LD-ld} -melf64bmip"
8469 case `/usr/bin/file conftest.$ac_objext` in
8486 # Find out what ABI is being produced by ac_compile, and set linker
8487 # options accordingly.
8488 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
8489 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8490 (eval $ac_compile) 2>&5
8492 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8493 test $ac_status = 0; }; then
8495 case `/usr/bin/file conftest.$ac_objext` in
8503 case `/usr/bin/file conftest.$ac_objext` in
8505 emul="${emul}btsmip"
8508 emul="${emul}ltsmip"
8511 case `/usr/bin/file conftest.$ac_objext` in
8516 LD="${LD-ld} -m $emul"
8521 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
8522 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
8523 # Find out what ABI is being produced by ac_compile, and set linker
8524 # options accordingly. Note that the listed cases only cover the
8525 # situations where additional linker options are needed (such as when
8526 # doing 32-bit compilation for a host where ld defaults to 64-bit, or
8527 # vice versa); the common cases where no linker options are needed do
8528 # not appear in the list.
8529 echo 'int i;' > conftest.$ac_ext
8530 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8531 (eval $ac_compile) 2>&5
8533 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8534 test $ac_status = 0; }; then
8535 case `/usr/bin/file conftest.o` in
8538 x86_64-*kfreebsd*-gnu)
8539 LD="${LD-ld} -m elf_i386_fbsd"
8542 case `/usr/bin/file conftest.o` in
8544 LD="${LD-ld} -m elf32_x86_64"
8547 LD="${LD-ld} -m elf_i386"
8551 powerpc64le-*linux*)
8552 LD="${LD-ld} -m elf32lppclinux"
8555 LD="${LD-ld} -m elf32ppclinux"
8558 LD="${LD-ld} -m elf_s390"
8561 LD="${LD-ld} -m elf32_sparc"
8567 x86_64-*kfreebsd*-gnu)
8568 LD="${LD-ld} -m elf_x86_64_fbsd"
8571 LD="${LD-ld} -m elf_x86_64"
8574 LD="${LD-ld} -m elf64lppc"
8577 LD="${LD-ld} -m elf64ppc"
8579 s390*-*linux*|s390*-*tpf*)
8580 LD="${LD-ld} -m elf64_s390"
8583 LD="${LD-ld} -m elf64_sparc"
8593 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
8595 CFLAGS="$CFLAGS -belf"
8596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
8597 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
8598 if ${lt_cv_cc_needs_belf+:} false; then :
8599 $as_echo_n "(cached) " >&6
8602 ac_cpp='$CPP $CPPFLAGS'
8603 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8604 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8605 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8607 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8608 /* end confdefs.h. */
8618 if ac_fn_c_try_link "$LINENO"; then :
8619 lt_cv_cc_needs_belf=yes
8621 lt_cv_cc_needs_belf=no
8623 rm -f core conftest.err conftest.$ac_objext \
8624 conftest$ac_exeext conftest.$ac_ext
8626 ac_cpp='$CPP $CPPFLAGS'
8627 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8628 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8629 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
8633 $as_echo "$lt_cv_cc_needs_belf" >&6; }
8634 if test yes != "$lt_cv_cc_needs_belf"; then
8635 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
8640 # Find out what ABI is being produced by ac_compile, and set linker
8641 # options accordingly.
8642 echo 'int i;' > conftest.$ac_ext
8643 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8644 (eval $ac_compile) 2>&5
8646 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8647 test $ac_status = 0; }; then
8648 case `/usr/bin/file conftest.o` in
8650 case $lt_cv_prog_gnu_ld in
8653 i?86-*-solaris*|x86_64-*-solaris*)
8654 LD="${LD-ld} -m elf_x86_64"
8657 LD="${LD-ld} -m elf64_sparc"
8660 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
8661 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
8666 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
8678 need_locks=$enable_libtool_lock
8680 if test -n "$ac_tool_prefix"; then
8681 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
8682 set dummy ${ac_tool_prefix}mt; ac_word=$2
8683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8684 $as_echo_n "checking for $ac_word... " >&6; }
8685 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
8686 $as_echo_n "(cached) " >&6
8688 if test -n "$MANIFEST_TOOL"; then
8689 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
8691 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8695 test -z "$as_dir" && as_dir=.
8696 for ac_exec_ext in '' $ac_executable_extensions; do
8697 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8698 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
8699 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8708 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
8709 if test -n "$MANIFEST_TOOL"; then
8710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
8711 $as_echo "$MANIFEST_TOOL" >&6; }
8713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8714 $as_echo "no" >&6; }
8719 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
8720 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
8721 # Extract the first word of "mt", so it can be a program name with args.
8722 set dummy mt; ac_word=$2
8723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8724 $as_echo_n "checking for $ac_word... " >&6; }
8725 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
8726 $as_echo_n "(cached) " >&6
8728 if test -n "$ac_ct_MANIFEST_TOOL"; then
8729 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
8731 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8735 test -z "$as_dir" && as_dir=.
8736 for ac_exec_ext in '' $ac_executable_extensions; do
8737 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8738 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
8739 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8748 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
8749 if test -n "$ac_ct_MANIFEST_TOOL"; then
8750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
8751 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
8753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8754 $as_echo "no" >&6; }
8757 if test "x$ac_ct_MANIFEST_TOOL" = x; then
8760 case $cross_compiling:$ac_tool_warned in
8762 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8763 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8764 ac_tool_warned=yes ;;
8766 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
8769 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
8772 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
8773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
8774 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
8775 if ${lt_cv_path_mainfest_tool+:} false; then :
8776 $as_echo_n "(cached) " >&6
8778 lt_cv_path_mainfest_tool=no
8779 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
8780 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
8781 cat conftest.err >&5
8782 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
8783 lt_cv_path_mainfest_tool=yes
8787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
8788 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
8789 if test yes != "$lt_cv_path_mainfest_tool"; then
8799 rhapsody* | darwin*)
8800 if test -n "$ac_tool_prefix"; then
8801 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
8802 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
8803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8804 $as_echo_n "checking for $ac_word... " >&6; }
8805 if ${ac_cv_prog_DSYMUTIL+:} false; then :
8806 $as_echo_n "(cached) " >&6
8808 if test -n "$DSYMUTIL"; then
8809 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
8811 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8815 test -z "$as_dir" && as_dir=.
8816 for ac_exec_ext in '' $ac_executable_extensions; do
8817 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8818 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
8819 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8828 DSYMUTIL=$ac_cv_prog_DSYMUTIL
8829 if test -n "$DSYMUTIL"; then
8830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
8831 $as_echo "$DSYMUTIL" >&6; }
8833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8834 $as_echo "no" >&6; }
8839 if test -z "$ac_cv_prog_DSYMUTIL"; then
8840 ac_ct_DSYMUTIL=$DSYMUTIL
8841 # Extract the first word of "dsymutil", so it can be a program name with args.
8842 set dummy dsymutil; ac_word=$2
8843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8844 $as_echo_n "checking for $ac_word... " >&6; }
8845 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
8846 $as_echo_n "(cached) " >&6
8848 if test -n "$ac_ct_DSYMUTIL"; then
8849 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
8851 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8855 test -z "$as_dir" && as_dir=.
8856 for ac_exec_ext in '' $ac_executable_extensions; do
8857 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8858 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
8859 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8868 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
8869 if test -n "$ac_ct_DSYMUTIL"; then
8870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
8871 $as_echo "$ac_ct_DSYMUTIL" >&6; }
8873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8874 $as_echo "no" >&6; }
8877 if test "x$ac_ct_DSYMUTIL" = x; then
8880 case $cross_compiling:$ac_tool_warned in
8882 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8883 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8884 ac_tool_warned=yes ;;
8886 DSYMUTIL=$ac_ct_DSYMUTIL
8889 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
8892 if test -n "$ac_tool_prefix"; then
8893 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
8894 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
8895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8896 $as_echo_n "checking for $ac_word... " >&6; }
8897 if ${ac_cv_prog_NMEDIT+:} false; then :
8898 $as_echo_n "(cached) " >&6
8900 if test -n "$NMEDIT"; then
8901 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
8903 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8907 test -z "$as_dir" && as_dir=.
8908 for ac_exec_ext in '' $ac_executable_extensions; do
8909 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8910 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
8911 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8920 NMEDIT=$ac_cv_prog_NMEDIT
8921 if test -n "$NMEDIT"; then
8922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
8923 $as_echo "$NMEDIT" >&6; }
8925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8926 $as_echo "no" >&6; }
8931 if test -z "$ac_cv_prog_NMEDIT"; then
8932 ac_ct_NMEDIT=$NMEDIT
8933 # Extract the first word of "nmedit", so it can be a program name with args.
8934 set dummy nmedit; ac_word=$2
8935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8936 $as_echo_n "checking for $ac_word... " >&6; }
8937 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
8938 $as_echo_n "(cached) " >&6
8940 if test -n "$ac_ct_NMEDIT"; then
8941 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
8943 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8947 test -z "$as_dir" && as_dir=.
8948 for ac_exec_ext in '' $ac_executable_extensions; do
8949 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8950 ac_cv_prog_ac_ct_NMEDIT="nmedit"
8951 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8960 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
8961 if test -n "$ac_ct_NMEDIT"; then
8962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
8963 $as_echo "$ac_ct_NMEDIT" >&6; }
8965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8966 $as_echo "no" >&6; }
8969 if test "x$ac_ct_NMEDIT" = x; then
8972 case $cross_compiling:$ac_tool_warned in
8974 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8975 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8976 ac_tool_warned=yes ;;
8978 NMEDIT=$ac_ct_NMEDIT
8981 NMEDIT="$ac_cv_prog_NMEDIT"
8984 if test -n "$ac_tool_prefix"; then
8985 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
8986 set dummy ${ac_tool_prefix}lipo; ac_word=$2
8987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8988 $as_echo_n "checking for $ac_word... " >&6; }
8989 if ${ac_cv_prog_LIPO+:} false; then :
8990 $as_echo_n "(cached) " >&6
8992 if test -n "$LIPO"; then
8993 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8995 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8999 test -z "$as_dir" && as_dir=.
9000 for ac_exec_ext in '' $ac_executable_extensions; do
9001 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9002 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
9003 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9012 LIPO=$ac_cv_prog_LIPO
9013 if test -n "$LIPO"; then
9014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
9015 $as_echo "$LIPO" >&6; }
9017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9018 $as_echo "no" >&6; }
9023 if test -z "$ac_cv_prog_LIPO"; then
9025 # Extract the first word of "lipo", so it can be a program name with args.
9026 set dummy lipo; ac_word=$2
9027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9028 $as_echo_n "checking for $ac_word... " >&6; }
9029 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
9030 $as_echo_n "(cached) " >&6
9032 if test -n "$ac_ct_LIPO"; then
9033 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
9035 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9039 test -z "$as_dir" && as_dir=.
9040 for ac_exec_ext in '' $ac_executable_extensions; do
9041 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9042 ac_cv_prog_ac_ct_LIPO="lipo"
9043 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9052 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
9053 if test -n "$ac_ct_LIPO"; then
9054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
9055 $as_echo "$ac_ct_LIPO" >&6; }
9057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9058 $as_echo "no" >&6; }
9061 if test "x$ac_ct_LIPO" = x; then
9064 case $cross_compiling:$ac_tool_warned in
9066 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9067 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9068 ac_tool_warned=yes ;;
9073 LIPO="$ac_cv_prog_LIPO"
9076 if test -n "$ac_tool_prefix"; then
9077 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
9078 set dummy ${ac_tool_prefix}otool; ac_word=$2
9079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9080 $as_echo_n "checking for $ac_word... " >&6; }
9081 if ${ac_cv_prog_OTOOL+:} false; then :
9082 $as_echo_n "(cached) " >&6
9084 if test -n "$OTOOL"; then
9085 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
9087 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9091 test -z "$as_dir" && as_dir=.
9092 for ac_exec_ext in '' $ac_executable_extensions; do
9093 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9094 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
9095 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9104 OTOOL=$ac_cv_prog_OTOOL
9105 if test -n "$OTOOL"; then
9106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
9107 $as_echo "$OTOOL" >&6; }
9109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9110 $as_echo "no" >&6; }
9115 if test -z "$ac_cv_prog_OTOOL"; then
9117 # Extract the first word of "otool", so it can be a program name with args.
9118 set dummy otool; ac_word=$2
9119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9120 $as_echo_n "checking for $ac_word... " >&6; }
9121 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
9122 $as_echo_n "(cached) " >&6
9124 if test -n "$ac_ct_OTOOL"; then
9125 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
9127 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9131 test -z "$as_dir" && as_dir=.
9132 for ac_exec_ext in '' $ac_executable_extensions; do
9133 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9134 ac_cv_prog_ac_ct_OTOOL="otool"
9135 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9144 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
9145 if test -n "$ac_ct_OTOOL"; then
9146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
9147 $as_echo "$ac_ct_OTOOL" >&6; }
9149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9150 $as_echo "no" >&6; }
9153 if test "x$ac_ct_OTOOL" = x; then
9156 case $cross_compiling:$ac_tool_warned in
9158 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9159 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9160 ac_tool_warned=yes ;;
9165 OTOOL="$ac_cv_prog_OTOOL"
9168 if test -n "$ac_tool_prefix"; then
9169 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
9170 set dummy ${ac_tool_prefix}otool64; ac_word=$2
9171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9172 $as_echo_n "checking for $ac_word... " >&6; }
9173 if ${ac_cv_prog_OTOOL64+:} false; then :
9174 $as_echo_n "(cached) " >&6
9176 if test -n "$OTOOL64"; then
9177 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
9179 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9183 test -z "$as_dir" && as_dir=.
9184 for ac_exec_ext in '' $ac_executable_extensions; do
9185 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9186 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
9187 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9196 OTOOL64=$ac_cv_prog_OTOOL64
9197 if test -n "$OTOOL64"; then
9198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
9199 $as_echo "$OTOOL64" >&6; }
9201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9202 $as_echo "no" >&6; }
9207 if test -z "$ac_cv_prog_OTOOL64"; then
9208 ac_ct_OTOOL64=$OTOOL64
9209 # Extract the first word of "otool64", so it can be a program name with args.
9210 set dummy otool64; ac_word=$2
9211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9212 $as_echo_n "checking for $ac_word... " >&6; }
9213 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
9214 $as_echo_n "(cached) " >&6
9216 if test -n "$ac_ct_OTOOL64"; then
9217 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
9219 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9223 test -z "$as_dir" && as_dir=.
9224 for ac_exec_ext in '' $ac_executable_extensions; do
9225 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9226 ac_cv_prog_ac_ct_OTOOL64="otool64"
9227 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9236 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
9237 if test -n "$ac_ct_OTOOL64"; then
9238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
9239 $as_echo "$ac_ct_OTOOL64" >&6; }
9241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9242 $as_echo "no" >&6; }
9245 if test "x$ac_ct_OTOOL64" = x; then
9248 case $cross_compiling:$ac_tool_warned in
9250 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9251 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9252 ac_tool_warned=yes ;;
9254 OTOOL64=$ac_ct_OTOOL64
9257 OTOOL64="$ac_cv_prog_OTOOL64"
9286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
9287 $as_echo_n "checking for -single_module linker flag... " >&6; }
9288 if ${lt_cv_apple_cc_single_mod+:} false; then :
9289 $as_echo_n "(cached) " >&6
9291 lt_cv_apple_cc_single_mod=no
9292 if test -z "$LT_MULTI_MODULE"; then
9293 # By default we will add the -single_module flag. You can override
9294 # by either setting the environment variable LT_MULTI_MODULE
9295 # non-empty at configure time, or by adding -multi_module to the
9297 rm -rf libconftest.dylib*
9298 echo "int foo(void){return 1;}" > conftest.c
9299 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
9300 -dynamiclib -Wl,-single_module conftest.c" >&5
9301 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
9302 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
9304 # If there is a non-empty error log, and "single_module"
9305 # appears in it, assume the flag caused a linker warning
9306 if test -s conftest.err && $GREP single_module conftest.err; then
9307 cat conftest.err >&5
9308 # Otherwise, if the output was created with a 0 exit code from
9309 # the compiler, it worked.
9310 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
9311 lt_cv_apple_cc_single_mod=yes
9313 cat conftest.err >&5
9315 rm -rf libconftest.dylib*
9319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
9320 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
9322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
9323 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
9324 if ${lt_cv_ld_exported_symbols_list+:} false; then :
9325 $as_echo_n "(cached) " >&6
9327 lt_cv_ld_exported_symbols_list=no
9328 save_LDFLAGS=$LDFLAGS
9329 echo "_main" > conftest.sym
9330 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
9331 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9332 /* end confdefs.h. */
9342 if ac_fn_c_try_link "$LINENO"; then :
9343 lt_cv_ld_exported_symbols_list=yes
9345 lt_cv_ld_exported_symbols_list=no
9347 rm -f core conftest.err conftest.$ac_objext \
9348 conftest$ac_exeext conftest.$ac_ext
9349 LDFLAGS=$save_LDFLAGS
9352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
9353 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
9355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
9356 $as_echo_n "checking for -force_load linker flag... " >&6; }
9357 if ${lt_cv_ld_force_load+:} false; then :
9358 $as_echo_n "(cached) " >&6
9360 lt_cv_ld_force_load=no
9361 cat > conftest.c << _LT_EOF
9362 int forced_loaded() { return 2;}
9364 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
9365 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
9366 echo "$AR cru libconftest.a conftest.o" >&5
9367 $AR cru libconftest.a conftest.o 2>&5
9368 echo "$RANLIB libconftest.a" >&5
9369 $RANLIB libconftest.a 2>&5
9370 cat > conftest.c << _LT_EOF
9371 int main() { return 0;}
9373 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
9374 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
9376 if test -s conftest.err && $GREP force_load conftest.err; then
9377 cat conftest.err >&5
9378 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
9379 lt_cv_ld_force_load=yes
9381 cat conftest.err >&5
9383 rm -f conftest.err libconftest.a conftest conftest.c
9384 rm -rf conftest.dSYM
9387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
9388 $as_echo "$lt_cv_ld_force_load" >&6; }
9390 rhapsody* | darwin1.[012])
9391 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
9393 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
9394 darwin*) # darwin 5.x on
9395 # if running on 10.5 or later, the deployment target defaults
9396 # to the OS version, if on x86, and 10.4, the deployment
9397 # target defaults to 10.4. Don't you love it?
9398 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
9399 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
9400 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
9402 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
9404 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
9408 if test yes = "$lt_cv_apple_cc_single_mod"; then
9409 _lt_dar_single_mod='$single_module'
9411 if test yes = "$lt_cv_ld_exported_symbols_list"; then
9412 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
9414 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
9416 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
9417 _lt_dsymutil='~$DSYMUTIL $lib || :'
9424 # func_munge_path_list VARIABLE PATH
9425 # -----------------------------------
9426 # VARIABLE is name of variable containing _space_ separated list of
9427 # directories to be munged by the contents of PATH, which is string
9430 # string "DIR[ DIR]" will be prepended to VARIABLE
9432 # string "DIR[ DIR]" will be appended to VARIABLE
9433 # "DIRP[:DIRP]::[DIRA:]DIRA"
9434 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
9435 # "DIRA[ DIRA]" will be appended to VARIABLE
9437 # VARIABLE will be replaced by "DIR[ DIR]"
9438 func_munge_path_list ()
9444 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
9447 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
9450 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
9451 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
9454 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
9459 for ac_header in dlfcn.h
9461 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
9463 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
9464 cat >>confdefs.h <<_ACEOF
9465 #define HAVE_DLFCN_H 1
9477 # Check whether --enable-static was given.
9478 if test "${enable_static+set}" = set; then :
9479 enableval=$enable_static; p=${PACKAGE-default}
9481 yes) enable_static=yes ;;
9482 no) enable_static=no ;;
9485 # Look at the argument we got. We use all the common list separators.
9486 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9487 for pkg in $enableval; do
9489 if test "X$pkg" = "X$p"; then
9515 # Check whether --enable-shared was given.
9516 if test "${enable_shared+set}" = set; then :
9517 enableval=$enable_shared; p=${PACKAGE-default}
9519 yes) enable_shared=yes ;;
9520 no) enable_shared=no ;;
9523 # Look at the argument we got. We use all the common list separators.
9524 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9525 for pkg in $enableval; do
9527 if test "X$pkg" = "X$p"; then
9548 # Check whether --with-pic was given.
9549 if test "${with_pic+set}" = set; then :
9550 withval=$with_pic; lt_p=${PACKAGE-default}
9552 yes|no) pic_mode=$withval ;;
9555 # Look at the argument we got. We use all the common list separators.
9556 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9557 for lt_pkg in $withval; do
9559 if test "X$lt_pkg" = "X$lt_p"; then
9577 # Check whether --enable-fast-install was given.
9578 if test "${enable_fast_install+set}" = set; then :
9579 enableval=$enable_fast_install; p=${PACKAGE-default}
9581 yes) enable_fast_install=yes ;;
9582 no) enable_fast_install=no ;;
9584 enable_fast_install=no
9585 # Look at the argument we got. We use all the common list separators.
9586 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9587 for pkg in $enableval; do
9589 if test "X$pkg" = "X$p"; then
9590 enable_fast_install=yes
9597 enable_fast_install=yes
9607 shared_archive_member_spec=
9608 case $host,$enable_shared in
9609 power*-*-aix[5-9]*,yes)
9610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
9611 $as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
9613 # Check whether --with-aix-soname was given.
9614 if test "${with_aix_soname+set}" = set; then :
9615 withval=$with_aix_soname; case $withval in
9619 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
9622 lt_cv_with_aix_soname=$with_aix_soname
9624 if ${lt_cv_with_aix_soname+:} false; then :
9625 $as_echo_n "(cached) " >&6
9627 lt_cv_with_aix_soname=aix
9630 with_aix_soname=$lt_cv_with_aix_soname
9633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
9634 $as_echo "$with_aix_soname" >&6; }
9635 if test aix != "$with_aix_soname"; then
9636 # For the AIX way of multilib, we name the shared archive member
9637 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
9638 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
9639 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
9640 # the AIX toolchain works better with OBJECT_MODE set (default 32).
9641 if test 64 = "${OBJECT_MODE-32}"; then
9642 shared_archive_member_spec=shr_64
9644 shared_archive_member_spec=shr
9662 # This can be used to rebuild libtool when needed
9663 LIBTOOL_DEPS=$ltmain
9665 # Always use our own libtool.
9666 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
9697 test -z "$LN_S" && LN_S="ln -s"
9712 if test -n "${ZSH_VERSION+set}"; then
9713 setopt NO_GLOB_SUBST
9716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
9717 $as_echo_n "checking for objdir... " >&6; }
9718 if ${lt_cv_objdir+:} false; then :
9719 $as_echo_n "(cached) " >&6
9721 rm -f .libs 2>/dev/null
9722 mkdir .libs 2>/dev/null
9723 if test -d .libs; then
9726 # MS-DOS does not allow filenames that begin with a dot.
9729 rmdir .libs 2>/dev/null
9731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
9732 $as_echo "$lt_cv_objdir" >&6; }
9733 objdir=$lt_cv_objdir
9739 cat >>confdefs.h <<_ACEOF
9740 #define LT_OBJDIR "$lt_cv_objdir/"
9748 # AIX sometimes has problems with the GCC collect2 program. For some
9749 # reason, if we set the COLLECT_NAMES environment variable, the problems
9750 # vanish in a puff of smoke.
9751 if test set != "${COLLECT_NAMES+set}"; then
9753 export COLLECT_NAMES
9760 can_build_shared=yes
9762 # All known linkers require a '.a' archive for static linking (except MSVC,
9763 # which needs '.lib').
9766 with_gnu_ld=$lt_cv_prog_gnu_ld
9771 # Set sane defaults for various variables
9772 test -z "$CC" && CC=cc
9773 test -z "$LTCC" && LTCC=$CC
9774 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
9775 test -z "$LD" && LD=ld
9776 test -z "$ac_objext" && ac_objext=o
9778 func_cc_basename $compiler
9779 cc_basename=$func_cc_basename_result
9782 # Only perform the check for file, if the check method requires it
9783 test -z "$MAGIC_CMD" && MAGIC_CMD=file
9784 case $deplibs_check_method in
9786 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
9787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
9788 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
9789 if ${lt_cv_path_MAGIC_CMD+:} false; then :
9790 $as_echo_n "(cached) " >&6
9794 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
9797 lt_save_MAGIC_CMD=$MAGIC_CMD
9798 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
9799 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9800 for ac_dir in $ac_dummy; do
9802 test -z "$ac_dir" && ac_dir=.
9803 if test -f "$ac_dir/${ac_tool_prefix}file"; then
9804 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
9805 if test -n "$file_magic_test_file"; then
9806 case $deplibs_check_method in
9808 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9809 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9810 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9811 $EGREP "$file_magic_regex" > /dev/null; then
9816 *** Warning: the command libtool uses to detect shared libraries,
9817 *** $file_magic_cmd, produces output that libtool cannot recognize.
9818 *** The result is that libtool may fail to recognize shared libraries
9819 *** as such. This will affect the creation of libtool libraries that
9820 *** depend on shared libraries, but programs linked with such libtool
9821 *** libraries will work regardless of this problem. Nevertheless, you
9822 *** may want to report the problem to your system manager and/or to
9823 *** bug-libtool@gnu.org
9833 MAGIC_CMD=$lt_save_MAGIC_CMD
9838 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9839 if test -n "$MAGIC_CMD"; then
9840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9841 $as_echo "$MAGIC_CMD" >&6; }
9843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9844 $as_echo "no" >&6; }
9851 if test -z "$lt_cv_path_MAGIC_CMD"; then
9852 if test -n "$ac_tool_prefix"; then
9853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
9854 $as_echo_n "checking for file... " >&6; }
9855 if ${lt_cv_path_MAGIC_CMD+:} false; then :
9856 $as_echo_n "(cached) " >&6
9860 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
9863 lt_save_MAGIC_CMD=$MAGIC_CMD
9864 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
9865 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9866 for ac_dir in $ac_dummy; do
9868 test -z "$ac_dir" && ac_dir=.
9869 if test -f "$ac_dir/file"; then
9870 lt_cv_path_MAGIC_CMD=$ac_dir/"file"
9871 if test -n "$file_magic_test_file"; then
9872 case $deplibs_check_method in
9874 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9875 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9876 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9877 $EGREP "$file_magic_regex" > /dev/null; then
9882 *** Warning: the command libtool uses to detect shared libraries,
9883 *** $file_magic_cmd, produces output that libtool cannot recognize.
9884 *** The result is that libtool may fail to recognize shared libraries
9885 *** as such. This will affect the creation of libtool libraries that
9886 *** depend on shared libraries, but programs linked with such libtool
9887 *** libraries will work regardless of this problem. Nevertheless, you
9888 *** may want to report the problem to your system manager and/or to
9889 *** bug-libtool@gnu.org
9899 MAGIC_CMD=$lt_save_MAGIC_CMD
9904 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9905 if test -n "$MAGIC_CMD"; then
9906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9907 $as_echo "$MAGIC_CMD" >&6; }
9909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9910 $as_echo "no" >&6; }
9923 # Use C for the default configuration in the libtool script
9927 ac_cpp='$CPP $CPPFLAGS'
9928 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9929 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9930 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9933 # Source file extension for C test sources.
9936 # Object file extension for compiled C test sources.
9940 # Code to be used in simple compile tests
9941 lt_simple_compile_test_code="int some_variable = 0;"
9943 # Code to be used in simple link tests
9944 lt_simple_link_test_code='int main(){return(0);}'
9952 # If no C compiler was specified, use CC.
9955 # If no C compiler flags were specified, use CFLAGS.
9956 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9958 # Allow CC to be a program name with arguments.
9961 # Save the default compiler, since it gets overwritten when the other
9962 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9963 compiler_DEFAULT=$CC
9965 # save warnings/boilerplate of simple test code
9966 ac_outfile=conftest.$ac_objext
9967 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9968 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9969 _lt_compiler_boilerplate=`cat conftest.err`
9972 ac_outfile=conftest.$ac_objext
9973 echo "$lt_simple_link_test_code" >conftest.$ac_ext
9974 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9975 _lt_linker_boilerplate=`cat conftest.err`
9980 ## There is no encapsulation within the following macros, do not change
9981 ## the running order or otherwise move them around unless you know exactly
9982 ## what you are doing...
9983 if test -n "$compiler"; then
9985 lt_prog_compiler_no_builtin_flag=
9987 if test yes = "$GCC"; then
9988 case $cc_basename in
9990 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
9992 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
9995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9996 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9997 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
9998 $as_echo_n "(cached) " >&6
10000 lt_cv_prog_compiler_rtti_exceptions=no
10001 ac_outfile=conftest.$ac_objext
10002 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10003 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
10004 # Insert the option either (1) after the last *FLAGS variable, or
10005 # (2) before a word containing "conftest.", or (3) at the end.
10006 # Note that $ac_compile itself does not contain backslashes and begins
10007 # with a dollar sign (not a hyphen), so the echo should work correctly.
10008 # The option is referenced via a variable to avoid confusing sed.
10009 lt_compile=`echo "$ac_compile" | $SED \
10010 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10011 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10012 -e 's:$: $lt_compiler_flag:'`
10013 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10014 (eval "$lt_compile" 2>conftest.err)
10016 cat conftest.err >&5
10017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10018 if (exit $ac_status) && test -s "$ac_outfile"; then
10019 # The compiler can only warn and ignore the option if not recognized
10020 # So say no if there are warnings other than the usual output.
10021 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
10022 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10023 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10024 lt_cv_prog_compiler_rtti_exceptions=yes
10030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
10031 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
10033 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
10034 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
10046 lt_prog_compiler_wl=
10047 lt_prog_compiler_pic=
10048 lt_prog_compiler_static=
10051 if test yes = "$GCC"; then
10052 lt_prog_compiler_wl='-Wl,'
10053 lt_prog_compiler_static='-static'
10057 # All AIX code is PIC.
10058 if test ia64 = "$host_cpu"; then
10059 # AIX 5 now supports IA64 processor
10060 lt_prog_compiler_static='-Bstatic'
10062 lt_prog_compiler_pic='-fPIC'
10068 # see comment about AmigaOS4 .so support
10069 lt_prog_compiler_pic='-fPIC'
10072 # FIXME: we need at least 68020 code to build shared libraries, but
10073 # adding the '-m68020' flag to GCC prevents building anything better,
10075 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
10080 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
10081 # PIC is the default for these OSes.
10084 mingw* | cygwin* | pw32* | os2* | cegcc*)
10085 # This hack is so that the source file can tell whether it is being
10086 # built for inclusion in a dll (and should export symbols for example).
10087 # Although the cygwin gcc ignores -fPIC, still need this for old-style
10088 # (--disable-auto-import) libraries
10089 lt_prog_compiler_pic='-DDLL_EXPORT'
10092 lt_prog_compiler_static='$wl-static'
10097 darwin* | rhapsody*)
10098 # PIC is the default on this platform
10099 # Common symbols not allowed in MH_DYLIB files
10100 lt_prog_compiler_pic='-fno-common'
10104 # PIC is the default for Haiku.
10105 # The "-static" flag exists, but is broken.
10106 lt_prog_compiler_static=
10110 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
10111 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
10112 # sets the default TLS model and affects inlining.
10118 lt_prog_compiler_pic='-fPIC'
10124 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
10125 # Instead, we relocate shared libraries at runtime.
10129 # Just because we use GCC doesn't mean we suddenly get shared libraries
10130 # on systems that don't support them.
10131 lt_prog_compiler_can_build_shared=no
10136 # QNX uses GNU C++, but need to define -shared option too, otherwise
10137 # it will coredump.
10138 lt_prog_compiler_pic='-fPIC -shared'
10142 if test -d /usr/nec; then
10143 lt_prog_compiler_pic=-Kconform_pic
10148 lt_prog_compiler_pic='-fPIC'
10152 case $cc_basename in
10153 nvcc*) # Cuda Compiler Driver 2.2
10154 lt_prog_compiler_wl='-Xlinker '
10155 if test -n "$lt_prog_compiler_pic"; then
10156 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
10161 # PORTME Check for flag to pass linker flags through the system compiler.
10164 lt_prog_compiler_wl='-Wl,'
10165 if test ia64 = "$host_cpu"; then
10166 # AIX 5 now supports IA64 processor
10167 lt_prog_compiler_static='-Bstatic'
10169 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
10173 darwin* | rhapsody*)
10174 # PIC is the default on this platform
10175 # Common symbols not allowed in MH_DYLIB files
10176 lt_prog_compiler_pic='-fno-common'
10177 case $cc_basename in
10179 # NAG Fortran compiler
10180 lt_prog_compiler_wl='-Wl,-Wl,,'
10181 lt_prog_compiler_pic='-PIC'
10182 lt_prog_compiler_static='-Bstatic'
10187 mingw* | cygwin* | pw32* | os2* | cegcc*)
10188 # This hack is so that the source file can tell whether it is being
10189 # built for inclusion in a dll (and should export symbols for example).
10190 lt_prog_compiler_pic='-DDLL_EXPORT'
10193 lt_prog_compiler_static='$wl-static'
10198 hpux9* | hpux10* | hpux11*)
10199 lt_prog_compiler_wl='-Wl,'
10200 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10201 # not for PA HP-UX.
10207 lt_prog_compiler_pic='+Z'
10210 # Is there a better lt_prog_compiler_static that works with the bundled CC?
10211 lt_prog_compiler_static='$wl-a ${wl}archive'
10214 irix5* | irix6* | nonstopux*)
10215 lt_prog_compiler_wl='-Wl,'
10216 # PIC (with -KPIC) is the default.
10217 lt_prog_compiler_static='-non_shared'
10220 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
10221 case $cc_basename in
10222 # old Intel for x86_64, which still supported -KPIC.
10224 lt_prog_compiler_wl='-Wl,'
10225 lt_prog_compiler_pic='-KPIC'
10226 lt_prog_compiler_static='-static'
10228 # icc used to be incompatible with GCC.
10229 # ICC 10 doesn't accept -KPIC any more.
10231 lt_prog_compiler_wl='-Wl,'
10232 lt_prog_compiler_pic='-fPIC'
10233 lt_prog_compiler_static='-static'
10235 # Lahey Fortran 8.1.
10237 lt_prog_compiler_wl='-Wl,'
10238 lt_prog_compiler_pic='--shared'
10239 lt_prog_compiler_static='--static'
10242 # NAG Fortran compiler
10243 lt_prog_compiler_wl='-Wl,-Wl,,'
10244 lt_prog_compiler_pic='-PIC'
10245 lt_prog_compiler_static='-Bstatic'
10248 # Fabrice Bellard et al's Tiny C Compiler
10249 lt_prog_compiler_wl='-Wl,'
10250 lt_prog_compiler_pic='-fPIC'
10251 lt_prog_compiler_static='-static'
10253 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
10254 # Portland Group compilers (*not* the Pentium gcc compiler,
10255 # which looks to be a dead project)
10256 lt_prog_compiler_wl='-Wl,'
10257 lt_prog_compiler_pic='-fpic'
10258 lt_prog_compiler_static='-Bstatic'
10261 lt_prog_compiler_wl='-Wl,'
10262 # All Alpha code is PIC.
10263 lt_prog_compiler_static='-non_shared'
10265 xl* | bgxl* | bgf* | mpixl*)
10266 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
10267 lt_prog_compiler_wl='-Wl,'
10268 lt_prog_compiler_pic='-qpic'
10269 lt_prog_compiler_static='-qstaticlink'
10272 case `$CC -V 2>&1 | sed 5q` in
10273 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
10274 # Sun Fortran 8.3 passes all unrecognized flags to the linker
10275 lt_prog_compiler_pic='-KPIC'
10276 lt_prog_compiler_static='-Bstatic'
10277 lt_prog_compiler_wl=''
10279 *Sun\ F* | *Sun*Fortran*)
10280 lt_prog_compiler_pic='-KPIC'
10281 lt_prog_compiler_static='-Bstatic'
10282 lt_prog_compiler_wl='-Qoption ld '
10286 lt_prog_compiler_pic='-KPIC'
10287 lt_prog_compiler_static='-Bstatic'
10288 lt_prog_compiler_wl='-Wl,'
10290 *Intel*\ [CF]*Compiler*)
10291 lt_prog_compiler_wl='-Wl,'
10292 lt_prog_compiler_pic='-fPIC'
10293 lt_prog_compiler_static='-static'
10296 lt_prog_compiler_wl='-Wl,'
10297 lt_prog_compiler_pic='-fpic'
10298 lt_prog_compiler_static='-Bstatic'
10306 lt_prog_compiler_pic='-KPIC'
10307 lt_prog_compiler_static='-Bstatic'
10311 # QNX uses GNU C++, but need to define -shared option too, otherwise
10312 # it will coredump.
10313 lt_prog_compiler_pic='-fPIC -shared'
10316 osf3* | osf4* | osf5*)
10317 lt_prog_compiler_wl='-Wl,'
10318 # All OSF/1 code is PIC.
10319 lt_prog_compiler_static='-non_shared'
10323 lt_prog_compiler_static='-non_shared'
10327 lt_prog_compiler_pic='-KPIC'
10328 lt_prog_compiler_static='-Bstatic'
10329 case $cc_basename in
10330 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
10331 lt_prog_compiler_wl='-Qoption ld ';;
10333 lt_prog_compiler_wl='-Wl,';;
10338 lt_prog_compiler_wl='-Qoption ld '
10339 lt_prog_compiler_pic='-PIC'
10340 lt_prog_compiler_static='-Bstatic'
10343 sysv4 | sysv4.2uw2* | sysv4.3*)
10344 lt_prog_compiler_wl='-Wl,'
10345 lt_prog_compiler_pic='-KPIC'
10346 lt_prog_compiler_static='-Bstatic'
10350 if test -d /usr/nec; then
10351 lt_prog_compiler_pic='-Kconform_pic'
10352 lt_prog_compiler_static='-Bstatic'
10356 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
10357 lt_prog_compiler_wl='-Wl,'
10358 lt_prog_compiler_pic='-KPIC'
10359 lt_prog_compiler_static='-Bstatic'
10363 lt_prog_compiler_wl='-Wl,'
10364 lt_prog_compiler_can_build_shared=no
10368 lt_prog_compiler_pic='-pic'
10369 lt_prog_compiler_static='-Bstatic'
10373 lt_prog_compiler_can_build_shared=no
10379 # For platforms that do not support PIC, -DPIC is meaningless:
10381 lt_prog_compiler_pic=
10384 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
10388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
10389 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
10390 if ${lt_cv_prog_compiler_pic+:} false; then :
10391 $as_echo_n "(cached) " >&6
10393 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
10395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
10396 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
10397 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
10400 # Check to make sure the PIC flag actually works.
10402 if test -n "$lt_prog_compiler_pic"; then
10403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
10404 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
10405 if ${lt_cv_prog_compiler_pic_works+:} false; then :
10406 $as_echo_n "(cached) " >&6
10408 lt_cv_prog_compiler_pic_works=no
10409 ac_outfile=conftest.$ac_objext
10410 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10411 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
10412 # Insert the option either (1) after the last *FLAGS variable, or
10413 # (2) before a word containing "conftest.", or (3) at the end.
10414 # Note that $ac_compile itself does not contain backslashes and begins
10415 # with a dollar sign (not a hyphen), so the echo should work correctly.
10416 # The option is referenced via a variable to avoid confusing sed.
10417 lt_compile=`echo "$ac_compile" | $SED \
10418 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10419 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10420 -e 's:$: $lt_compiler_flag:'`
10421 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10422 (eval "$lt_compile" 2>conftest.err)
10424 cat conftest.err >&5
10425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10426 if (exit $ac_status) && test -s "$ac_outfile"; then
10427 # The compiler can only warn and ignore the option if not recognized
10428 # So say no if there are warnings other than the usual output.
10429 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
10430 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10431 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10432 lt_cv_prog_compiler_pic_works=yes
10438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
10439 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
10441 if test yes = "$lt_cv_prog_compiler_pic_works"; then
10442 case $lt_prog_compiler_pic in
10444 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
10447 lt_prog_compiler_pic=
10448 lt_prog_compiler_can_build_shared=no
10464 # Check to make sure the static flag actually works.
10466 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
10467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
10468 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
10469 if ${lt_cv_prog_compiler_static_works+:} false; then :
10470 $as_echo_n "(cached) " >&6
10472 lt_cv_prog_compiler_static_works=no
10473 save_LDFLAGS=$LDFLAGS
10474 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
10475 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10476 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10477 # The linker can only warn and ignore the option if not recognized
10478 # So say no if there are warnings
10479 if test -s conftest.err; then
10480 # Append any errors to the config.log.
10481 cat conftest.err 1>&5
10482 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10483 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10484 if diff conftest.exp conftest.er2 >/dev/null; then
10485 lt_cv_prog_compiler_static_works=yes
10488 lt_cv_prog_compiler_static_works=yes
10492 LDFLAGS=$save_LDFLAGS
10495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
10496 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
10498 if test yes = "$lt_cv_prog_compiler_static_works"; then
10501 lt_prog_compiler_static=
10510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10511 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10512 if ${lt_cv_prog_compiler_c_o+:} false; then :
10513 $as_echo_n "(cached) " >&6
10515 lt_cv_prog_compiler_c_o=no
10516 $RM -r conftest 2>/dev/null
10520 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10522 lt_compiler_flag="-o out/conftest2.$ac_objext"
10523 # Insert the option either (1) after the last *FLAGS variable, or
10524 # (2) before a word containing "conftest.", or (3) at the end.
10525 # Note that $ac_compile itself does not contain backslashes and begins
10526 # with a dollar sign (not a hyphen), so the echo should work correctly.
10527 lt_compile=`echo "$ac_compile" | $SED \
10528 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10529 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10530 -e 's:$: $lt_compiler_flag:'`
10531 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10532 (eval "$lt_compile" 2>out/conftest.err)
10534 cat out/conftest.err >&5
10535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10536 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10538 # The compiler can only warn and ignore the option if not recognized
10539 # So say no if there are warnings
10540 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10541 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10542 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10543 lt_cv_prog_compiler_c_o=yes
10548 # SGI C++ compiler will create directory out/ii_files/ for
10549 # template instantiation
10550 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10551 $RM out/* && rmdir out
10557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10558 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10566 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10567 if ${lt_cv_prog_compiler_c_o+:} false; then :
10568 $as_echo_n "(cached) " >&6
10570 lt_cv_prog_compiler_c_o=no
10571 $RM -r conftest 2>/dev/null
10575 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10577 lt_compiler_flag="-o out/conftest2.$ac_objext"
10578 # Insert the option either (1) after the last *FLAGS variable, or
10579 # (2) before a word containing "conftest.", or (3) at the end.
10580 # Note that $ac_compile itself does not contain backslashes and begins
10581 # with a dollar sign (not a hyphen), so the echo should work correctly.
10582 lt_compile=`echo "$ac_compile" | $SED \
10583 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10584 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10585 -e 's:$: $lt_compiler_flag:'`
10586 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10587 (eval "$lt_compile" 2>out/conftest.err)
10589 cat out/conftest.err >&5
10590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10591 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10593 # The compiler can only warn and ignore the option if not recognized
10594 # So say no if there are warnings
10595 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10596 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10597 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10598 lt_cv_prog_compiler_c_o=yes
10603 # SGI C++ compiler will create directory out/ii_files/ for
10604 # template instantiation
10605 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10606 $RM out/* && rmdir out
10612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10613 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10618 hard_links=nottested
10619 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
10620 # do not overwrite the value of need_locks provided by the user
10621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
10622 $as_echo_n "checking if we can lock with hard links... " >&6; }
10625 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10627 ln conftest.a conftest.b 2>&5 || hard_links=no
10628 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
10630 $as_echo "$hard_links" >&6; }
10631 if test no = "$hard_links"; then
10632 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
10633 $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
10645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10646 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
10649 allow_undefined_flag=
10650 always_export_symbols=no
10652 archive_expsym_cmds=
10653 compiler_needs_object=no
10654 enable_shared_with_static_runtimes=no
10655 export_dynamic_flag_spec=
10656 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10657 hardcode_automatic=no
10659 hardcode_direct_absolute=no
10660 hardcode_libdir_flag_spec=
10661 hardcode_libdir_separator=
10662 hardcode_minus_L=no
10663 hardcode_shlibpath_var=unsupported
10665 link_all_deplibs=unknown
10667 module_expsym_cmds=
10668 old_archive_from_new_cmds=
10669 old_archive_from_expsyms_cmds=
10670 thread_safe_flag_spec=
10671 whole_archive_flag_spec=
10672 # include_expsyms should be a list of space-separated symbols to be *always*
10673 # included in the symbol list
10675 # exclude_expsyms can be an extended regexp of symbols to exclude
10676 # it will be wrapped by ' (' and ')$', so one must not match beginning or
10677 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
10678 # as well as any symbol that contains 'd'.
10679 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
10680 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
10681 # platforms (ab)use it in PIC code, but their linkers get confused if
10682 # the symbol is explicitly referenced. Since portable code cannot
10683 # rely on this symbol name, it's probably fine to never include it in
10684 # preloaded symbol tables.
10685 # Exclude shared library initialization/finalization symbols.
10686 extract_expsyms_cmds=
10689 cygwin* | mingw* | pw32* | cegcc*)
10690 # FIXME: the MSVC++ port hasn't been tested in a loooong time
10691 # When not using gcc, we currently assume that we are using
10692 # Microsoft Visual C++.
10693 if test yes != "$GCC"; then
10698 # we just hope/assume this is gcc and not c89 (= MSVC++)
10701 openbsd* | bitrig*)
10704 linux* | k*bsd*-gnu | gnu*)
10705 link_all_deplibs=no
10711 # On some targets, GNU ld is compatible enough with the native linker
10712 # that we're better off using the native interface for both.
10713 lt_use_gnu_ld_interface=no
10714 if test yes = "$with_gnu_ld"; then
10717 # The AIX port of GNU ld has always aspired to compatibility
10718 # with the native linker. However, as the warning in the GNU ld
10719 # block says, versions before 2.19.5* couldn't really create working
10720 # shared libraries, regardless of the interface used.
10721 case `$LD -v 2>&1` in
10722 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
10723 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
10724 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
10726 lt_use_gnu_ld_interface=yes
10731 lt_use_gnu_ld_interface=yes
10736 if test yes = "$lt_use_gnu_ld_interface"; then
10737 # If archive_cmds runs LD, not CC, wlarc should be empty
10740 # Set some defaults for GNU ld with shared library support. These
10741 # are reset later if shared libraries are not supported. Putting them
10742 # here allows them to be overridden if necessary.
10743 runpath_var=LD_RUN_PATH
10744 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10745 export_dynamic_flag_spec='$wl--export-dynamic'
10746 # ancient GNU ld didn't support --whole-archive et. al.
10747 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
10748 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
10750 whole_archive_flag_spec=
10752 supports_anon_versioning=no
10753 case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
10754 *GNU\ gold*) supports_anon_versioning=yes ;;
10755 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
10756 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
10757 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
10758 *\ 2.11.*) ;; # other 2.11 versions
10759 *) supports_anon_versioning=yes ;;
10762 # See if GNU ld supports shared libraries.
10765 # On AIX/PPC, the GNU linker is very broken
10766 if test ia64 != "$host_cpu"; then
10770 *** Warning: the GNU linker, at least up to release 2.19, is reported
10771 *** to be unable to reliably create shared libraries on AIX.
10772 *** Therefore, libtool is disabling shared libraries support. If you
10773 *** really care for shared libraries, you may want to install binutils
10774 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
10775 *** You will then need to restart the configuration process.
10784 # see comment about AmigaOS4 .so support
10785 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10786 archive_expsym_cmds=''
10789 archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
10790 hardcode_libdir_flag_spec='-L$libdir'
10791 hardcode_minus_L=yes
10797 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10798 allow_undefined_flag=unsupported
10799 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10800 # support --undefined. This deserves some investigation. FIXME
10801 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10807 cygwin* | mingw* | pw32* | cegcc*)
10808 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
10809 # as there is no search path for DLLs.
10810 hardcode_libdir_flag_spec='-L$libdir'
10811 export_dynamic_flag_spec='$wl--export-all-symbols'
10812 allow_undefined_flag=unsupported
10813 always_export_symbols=no
10814 enable_shared_with_static_runtimes=yes
10815 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
10816 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
10818 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
10819 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10820 # If the export-symbols file already is a .def file, use it as
10821 # is; otherwise, prepend EXPORTS...
10822 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
10823 cp $export_symbols $output_objdir/$soname.def;
10825 echo EXPORTS > $output_objdir/$soname.def;
10826 cat $export_symbols >> $output_objdir/$soname.def;
10828 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10835 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10836 link_all_deplibs=yes
10840 hardcode_libdir_flag_spec='-L$libdir'
10841 hardcode_minus_L=yes
10842 allow_undefined_flag=unsupported
10844 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10845 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10846 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10847 $ECHO EXPORTS >> $output_objdir/$libname.def~
10848 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
10849 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10850 emximp -o $lib $output_objdir/$libname.def'
10851 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10852 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10853 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10854 $ECHO EXPORTS >> $output_objdir/$libname.def~
10855 prefix_cmds="$SED"~
10856 if test EXPORTS = "`$SED 1q $export_symbols`"; then
10857 prefix_cmds="$prefix_cmds -e 1d";
10859 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
10860 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
10861 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10862 emximp -o $lib $output_objdir/$libname.def'
10863 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
10864 enable_shared_with_static_runtimes=yes
10869 hardcode_shlibpath_var=no
10870 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10871 export_dynamic_flag_spec='$wl-E'
10872 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10873 # Instead, shared libraries are loaded at an image base (0x10000000 by
10874 # default) and relocated if they conflict, which is a slow very memory
10875 # consuming and fragmenting process. To avoid this, we pick a random,
10876 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10877 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
10878 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10879 archive_expsym_cmds='sed "s|^|_|" $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--retain-symbols-file,$output_objdir/$soname.expsym $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10882 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
10884 if test linux-dietlibc = "$host_os"; then
10885 case $cc_basename in
10886 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
10889 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
10890 && test no = "$tmp_diet"
10892 tmp_addflag=' $pic_flag'
10893 tmp_sharedflag='-shared'
10894 case $cc_basename,$host_cpu in
10895 pgcc*) # Portland Group C compiler
10896 whole_archive_flag_spec='$wl--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
10897 tmp_addflag=' $pic_flag'
10899 pgf77* | pgf90* | pgf95* | pgfortran*)
10900 # Portland Group f77 and f90 compilers
10901 whole_archive_flag_spec='$wl--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
10902 tmp_addflag=' $pic_flag -Mnomain' ;;
10903 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
10904 tmp_addflag=' -i_dynamic' ;;
10905 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
10906 tmp_addflag=' -i_dynamic -nofor_main' ;;
10907 ifc* | ifort*) # Intel Fortran compiler
10908 tmp_addflag=' -nofor_main' ;;
10909 lf95*) # Lahey Fortran 8.1
10910 whole_archive_flag_spec=
10911 tmp_sharedflag='--shared' ;;
10912 nagfor*) # NAGFOR 5.3
10913 tmp_sharedflag='-Wl,-shared' ;;
10914 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
10915 tmp_sharedflag='-qmkshrobj'
10917 nvcc*) # Cuda Compiler Driver 2.2
10918 whole_archive_flag_spec='$wl--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
10919 compiler_needs_object=yes
10922 case `$CC -V 2>&1 | sed 5q` in
10923 *Sun\ C*) # Sun C 5.9
10924 whole_archive_flag_spec='$wl--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
10925 compiler_needs_object=yes
10926 tmp_sharedflag='-G' ;;
10927 *Sun\ F*) # Sun Fortran 8.3
10928 tmp_sharedflag='-G' ;;
10930 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10932 if test yes = "$supports_anon_versioning"; then
10933 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10934 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10935 echo "local: *; };" >> $output_objdir/$libname.ver~
10936 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
10939 case $cc_basename in
10941 export_dynamic_flag_spec='-rdynamic'
10943 xlf* | bgf* | bgxlf* | mpixlf*)
10944 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10945 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
10946 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10947 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
10948 if test yes = "$supports_anon_versioning"; then
10949 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10950 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10951 echo "local: *; };" >> $output_objdir/$libname.ver~
10952 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10961 netbsd* | netbsdelf*-gnu)
10962 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10963 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10966 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10967 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10972 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10976 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
10977 *** create shared libraries on Solaris systems. Therefore, libtool
10978 *** is disabling shared libraries support. We urge you to upgrade GNU
10979 *** binutils to release 2.9.1 or newer. Another option is to modify
10980 *** your PATH or compiler configuration so that the native linker is
10981 *** used, and then restart.
10984 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10985 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10986 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10992 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10993 case `$LD -v 2>&1` in
10994 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10998 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
10999 *** reliably create shared libraries on SCO systems. Therefore, libtool
11000 *** is disabling shared libraries support. We urge you to upgrade GNU
11001 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
11002 *** your PATH or compiler configuration so that the native linker is
11003 *** used, and then restart.
11008 # For security reasons, it is highly recommended that you always
11009 # use absolute paths for naming shared libraries, and exclude the
11010 # DT_RUNPATH tag from executables and libraries. But doing so
11011 # requires that you compile everything twice, which is a pain.
11012 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11013 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11014 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11015 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
11024 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11026 hardcode_direct=yes
11027 hardcode_shlibpath_var=no
11031 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11032 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11033 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
11040 if test no = "$ld_shlibs"; then
11042 hardcode_libdir_flag_spec=
11043 export_dynamic_flag_spec=
11044 whole_archive_flag_spec=
11047 # PORTME fill in a description of your system's linker (not GNU ld)
11050 allow_undefined_flag=unsupported
11051 always_export_symbols=yes
11052 archive_expsym_cmds='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
11053 # Note: this linker hardcodes the directories in LIBPATH if there
11054 # are no directories specified by -L.
11055 hardcode_minus_L=yes
11056 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
11057 # Neither direct hardcoding nor static linking is supported with a
11059 hardcode_direct=unsupported
11064 if test ia64 = "$host_cpu"; then
11065 # On IA64, the linker does run time linking by default, so we don't
11066 # have to do anything special.
11067 aix_use_runtimelinking=no
11068 exp_sym_flag='-Bexport'
11071 # If we're using GNU nm, then we don't want the "-C" option.
11072 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
11073 # Without the "-l" option, or with the "-B" option, AIX nm treats
11074 # weak defined symbols like other global defined symbols, whereas
11075 # GNU nm marks them as "W".
11076 # While the 'weak' keyword is ignored in the Export File, we need
11077 # it in the Import File for the 'aix-soname' feature, so we have
11078 # to replace the "-B" option with "-P" for AIX nm.
11079 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
11080 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols'
11082 export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
11084 aix_use_runtimelinking=no
11086 # Test if we are trying to use run time linking or normal
11087 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11088 # have runtime linking enabled, and use it for executables.
11089 # For shared libraries, we enable/disable runtime linking
11090 # depending on the kind of the shared library created -
11091 # when "with_aix_soname,aix_use_runtimelinking" is:
11092 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
11093 # "aix,yes" lib.so shared, rtl:yes, for executables
11094 # lib.a static archive
11095 # "both,no" lib.so.V(shr.o) shared, rtl:yes
11096 # lib.a(lib.so.V) shared, rtl:no, for executables
11097 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
11098 # lib.a(lib.so.V) shared, rtl:no
11099 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
11100 # lib.a static archive
11101 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
11102 for ld_flag in $LDFLAGS; do
11103 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
11104 aix_use_runtimelinking=yes
11108 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
11109 # With aix-soname=svr4, we create the lib.so.V shared archives only,
11110 # so we don't have lib.a shared libs to link our executables.
11111 # We have to force runtime linking in this case.
11112 aix_use_runtimelinking=yes
11113 LDFLAGS="$LDFLAGS -Wl,-brtl"
11118 exp_sym_flag='-bexport'
11119 no_entry_flag='-bnoentry'
11122 # When large executables or shared objects are built, AIX ld can
11123 # have problems creating the table of contents. If linking a library
11124 # or program results in "error TOC overflow" add -mminimal-toc to
11125 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
11126 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11129 hardcode_direct=yes
11130 hardcode_direct_absolute=yes
11131 hardcode_libdir_separator=':'
11132 link_all_deplibs=yes
11133 file_list_spec='$wl-f,'
11134 case $with_aix_soname,$aix_use_runtimelinking in
11135 aix,*) ;; # traditional, no import file
11136 svr4,* | *,yes) # use import file
11137 # The Import File defines what to hardcode.
11139 hardcode_direct_absolute=no
11143 if test yes = "$GCC"; then
11144 case $host_os in aix4.[012]|aix4.[012].*)
11145 # We only want to do this on AIX 4.2 and lower, the check
11146 # below for broken collect2 doesn't work under 4.3+
11147 collect2name=`$CC -print-prog-name=collect2`
11148 if test -f "$collect2name" &&
11149 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
11151 # We have reworked collect2
11154 # We have old collect2
11155 hardcode_direct=unsupported
11156 # It fails to find uninstalled libraries when the uninstalled
11157 # path is not listed in the libpath. Setting hardcode_minus_L
11158 # to unsupported forces relinking
11159 hardcode_minus_L=yes
11160 hardcode_libdir_flag_spec='-L$libdir'
11161 hardcode_libdir_separator=
11165 shared_flag='-shared'
11166 if test yes = "$aix_use_runtimelinking"; then
11167 shared_flag="$shared_flag "'$wl-G'
11169 # Need to ensure runtime linking is disabled for the traditional
11170 # shared library, or the linker may eventually find shared libraries
11171 # /with/ Import File - we do not want to mix them.
11172 shared_flag_aix='-shared'
11173 shared_flag_svr4='-shared $wl-G'
11176 if test ia64 = "$host_cpu"; then
11177 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11178 # chokes on -Wl,-G. The following line is correct:
11181 if test yes = "$aix_use_runtimelinking"; then
11182 shared_flag='$wl-G'
11184 shared_flag='$wl-bM:SRE'
11186 shared_flag_aix='$wl-bM:SRE'
11187 shared_flag_svr4='$wl-G'
11191 export_dynamic_flag_spec='$wl-bexpall'
11192 # It seems that -bexpall does not export symbols beginning with
11193 # underscore (_), so it is better to generate a list of symbols to export.
11194 always_export_symbols=yes
11195 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
11196 # Warning - without using the other runtime loading flags (-brtl),
11197 # -berok will link without error, but may produce a broken library.
11198 allow_undefined_flag='-berok'
11199 # Determine the default libpath from the value encoded in an
11200 # empty executable.
11201 if test set = "${lt_cv_aix_libpath+set}"; then
11202 aix_libpath=$lt_cv_aix_libpath
11204 if ${lt_cv_aix_libpath_+:} false; then :
11205 $as_echo_n "(cached) " >&6
11207 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11208 /* end confdefs.h. */
11218 if ac_fn_c_try_link "$LINENO"; then :
11220 lt_aix_libpath_sed='
11221 /Import File Strings/,/^$/ {
11223 s/^0 *\([^ ]*\) *$/\1/
11227 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11228 # Check for a 64-bit object if we didn't find anything.
11229 if test -z "$lt_cv_aix_libpath_"; then
11230 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11233 rm -f core conftest.err conftest.$ac_objext \
11234 conftest$ac_exeext conftest.$ac_ext
11235 if test -z "$lt_cv_aix_libpath_"; then
11236 lt_cv_aix_libpath_=/usr/lib:/lib
11241 aix_libpath=$lt_cv_aix_libpath_
11244 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
11245 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag
11247 if test ia64 = "$host_cpu"; then
11248 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
11249 allow_undefined_flag="-z nodefs"
11250 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\$wl$no_entry_flag"' $compiler_flags $wl$allow_undefined_flag '"\$wl$exp_sym_flag:\$export_symbols"
11252 # Determine the default libpath from the value encoded in an
11253 # empty executable.
11254 if test set = "${lt_cv_aix_libpath+set}"; then
11255 aix_libpath=$lt_cv_aix_libpath
11257 if ${lt_cv_aix_libpath_+:} false; then :
11258 $as_echo_n "(cached) " >&6
11260 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11261 /* end confdefs.h. */
11271 if ac_fn_c_try_link "$LINENO"; then :
11273 lt_aix_libpath_sed='
11274 /Import File Strings/,/^$/ {
11276 s/^0 *\([^ ]*\) *$/\1/
11280 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11281 # Check for a 64-bit object if we didn't find anything.
11282 if test -z "$lt_cv_aix_libpath_"; then
11283 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11286 rm -f core conftest.err conftest.$ac_objext \
11287 conftest$ac_exeext conftest.$ac_ext
11288 if test -z "$lt_cv_aix_libpath_"; then
11289 lt_cv_aix_libpath_=/usr/lib:/lib
11294 aix_libpath=$lt_cv_aix_libpath_
11297 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
11298 # Warning - without using the other run time loading flags,
11299 # -berok will link without error, but may produce a broken library.
11300 no_undefined_flag=' $wl-bernotok'
11301 allow_undefined_flag=' $wl-berok'
11302 if test yes = "$with_gnu_ld"; then
11303 # We only use this code for GNU lds that support --whole-archive.
11304 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
11306 # Exported symbols can be pulled into shared objects from archives
11307 whole_archive_flag_spec='$convenience'
11309 archive_cmds_need_lc=yes
11310 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
11311 # -brtl affects multiple linker settings, -berok does not and is overridden later
11312 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
11313 if test svr4 != "$with_aix_soname"; then
11314 # This is similar to how AIX traditionally builds its shared libraries.
11315 archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname'
11317 if test aix != "$with_aix_soname"; then
11318 archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp'
11320 # used by -dlpreopen to get the symbols
11321 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
11323 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
11331 # see comment about AmigaOS4 .so support
11332 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11333 archive_expsym_cmds=''
11336 archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
11337 hardcode_libdir_flag_spec='-L$libdir'
11338 hardcode_minus_L=yes
11344 export_dynamic_flag_spec=-rdynamic
11347 cygwin* | mingw* | pw32* | cegcc*)
11348 # When not using gcc, we currently assume that we are using
11349 # Microsoft Visual C++.
11350 # hardcode_libdir_flag_spec is actually meaningless, as there is
11351 # no search path for DLLs.
11352 case $cc_basename in
11355 hardcode_libdir_flag_spec=' '
11356 allow_undefined_flag=unsupported
11357 always_export_symbols=yes
11359 # Tell ltmain to make .lib files, not .a files.
11361 # Tell ltmain to make .dll files, not .so files.
11363 # FIXME: Setting linknames here is a bad hack.
11364 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
11365 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
11366 cp "$export_symbols" "$output_objdir/$soname.def";
11367 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
11369 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
11371 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
11373 # The linker will not automatically build a static lib if we build a DLL.
11374 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
11375 enable_shared_with_static_runtimes=yes
11376 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
11377 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
11379 old_postinstall_cmds='chmod 644 $oldlib'
11380 postlink_cmds='lt_outputfile="@OUTPUT@"~
11381 lt_tool_outputfile="@TOOL_OUTPUT@"~
11382 case $lt_outputfile in
11385 lt_outputfile=$lt_outputfile.exe
11386 lt_tool_outputfile=$lt_tool_outputfile.exe
11389 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
11390 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
11391 $RM "$lt_outputfile.manifest";
11395 # Assume MSVC wrapper
11396 hardcode_libdir_flag_spec=' '
11397 allow_undefined_flag=unsupported
11398 # Tell ltmain to make .lib files, not .a files.
11400 # Tell ltmain to make .dll files, not .so files.
11402 # FIXME: Setting linknames here is a bad hack.
11403 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
11404 # The linker will automatically build a .lib file if we build a DLL.
11405 old_archive_from_new_cmds='true'
11406 # FIXME: Should let the user specify the lib program.
11407 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
11408 enable_shared_with_static_runtimes=yes
11413 darwin* | rhapsody*)
11416 archive_cmds_need_lc=no
11418 hardcode_automatic=yes
11419 hardcode_shlibpath_var=unsupported
11420 if test yes = "$lt_cv_ld_force_load"; then
11421 whole_archive_flag_spec='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience $wl-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
11424 whole_archive_flag_spec=''
11426 link_all_deplibs=yes
11427 allow_undefined_flag=$_lt_dar_allow_undefined
11428 case $cc_basename in
11429 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
11430 *) _lt_dar_can_shared=$GCC ;;
11432 if test yes = "$_lt_dar_can_shared"; then
11433 output_verbose_link_cmd=func_echo_all
11434 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
11435 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
11436 archive_expsym_cmds="sed 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dar_export_syms$_lt_dsymutil"
11437 module_expsym_cmds="sed -e 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dar_export_syms$_lt_dsymutil"
11446 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11447 hardcode_libdir_flag_spec='-L$libdir'
11448 hardcode_shlibpath_var=no
11451 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
11452 # support. Future versions do this automatically, but an explicit c++rt0.o
11453 # does not break anything, and helps significantly (at the cost of a little
11456 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
11457 hardcode_libdir_flag_spec='-R$libdir'
11458 hardcode_direct=yes
11459 hardcode_shlibpath_var=no
11462 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
11464 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11465 hardcode_direct=yes
11466 hardcode_minus_L=yes
11467 hardcode_shlibpath_var=no
11470 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
11471 freebsd* | dragonfly*)
11472 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11473 hardcode_libdir_flag_spec='-R$libdir'
11474 hardcode_direct=yes
11475 hardcode_shlibpath_var=no
11479 if test yes = "$GCC"; then
11480 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
11482 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
11484 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
11485 hardcode_libdir_separator=:
11486 hardcode_direct=yes
11488 # hardcode_minus_L: Not really in the search PATH,
11489 # but as the default location of the library.
11490 hardcode_minus_L=yes
11491 export_dynamic_flag_spec='$wl-E'
11495 if test yes,no = "$GCC,$with_gnu_ld"; then
11496 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11498 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11500 if test no = "$with_gnu_ld"; then
11501 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
11502 hardcode_libdir_separator=:
11503 hardcode_direct=yes
11504 hardcode_direct_absolute=yes
11505 export_dynamic_flag_spec='$wl-E'
11506 # hardcode_minus_L: Not really in the search PATH,
11507 # but as the default location of the library.
11508 hardcode_minus_L=yes
11513 if test yes,no = "$GCC,$with_gnu_ld"; then
11516 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
11519 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11522 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11528 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
11531 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11535 # Older versions of the 11.00 compiler do not understand -b yet
11536 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
11537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
11538 $as_echo_n "checking if $CC understands -b... " >&6; }
11539 if ${lt_cv_prog_compiler__b+:} false; then :
11540 $as_echo_n "(cached) " >&6
11542 lt_cv_prog_compiler__b=no
11543 save_LDFLAGS=$LDFLAGS
11544 LDFLAGS="$LDFLAGS -b"
11545 echo "$lt_simple_link_test_code" > conftest.$ac_ext
11546 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11547 # The linker can only warn and ignore the option if not recognized
11548 # So say no if there are warnings
11549 if test -s conftest.err; then
11550 # Append any errors to the config.log.
11551 cat conftest.err 1>&5
11552 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
11553 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11554 if diff conftest.exp conftest.er2 >/dev/null; then
11555 lt_cv_prog_compiler__b=yes
11558 lt_cv_prog_compiler__b=yes
11562 LDFLAGS=$save_LDFLAGS
11565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
11566 $as_echo "$lt_cv_prog_compiler__b" >&6; }
11568 if test yes = "$lt_cv_prog_compiler__b"; then
11569 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11571 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11577 if test no = "$with_gnu_ld"; then
11578 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
11579 hardcode_libdir_separator=:
11584 hardcode_shlibpath_var=no
11587 hardcode_direct=yes
11588 hardcode_direct_absolute=yes
11589 export_dynamic_flag_spec='$wl-E'
11591 # hardcode_minus_L: Not really in the search PATH,
11592 # but as the default location of the library.
11593 hardcode_minus_L=yes
11599 irix5* | irix6* | nonstopux*)
11600 if test yes = "$GCC"; then
11601 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
11602 # Try to use the -exported_symbol ld option, if it does not
11603 # work, assume that -exports_file does not work either and
11604 # implicitly export all symbols.
11605 # This should be the same for all languages, so no per-tag cache variable.
11606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
11607 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
11608 if ${lt_cv_irix_exported_symbol+:} false; then :
11609 $as_echo_n "(cached) " >&6
11611 save_LDFLAGS=$LDFLAGS
11612 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
11613 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11614 /* end confdefs.h. */
11615 int foo (void) { return 0; }
11617 if ac_fn_c_try_link "$LINENO"; then :
11618 lt_cv_irix_exported_symbol=yes
11620 lt_cv_irix_exported_symbol=no
11622 rm -f core conftest.err conftest.$ac_objext \
11623 conftest$ac_exeext conftest.$ac_ext
11624 LDFLAGS=$save_LDFLAGS
11626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
11627 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
11628 if test yes = "$lt_cv_irix_exported_symbol"; then
11629 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations $wl-exports_file $wl$export_symbols -o $lib'
11631 link_all_deplibs=no
11633 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
11634 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -exports_file $export_symbols -o $lib'
11636 archive_cmds_need_lc='no'
11637 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11638 hardcode_libdir_separator=:
11640 link_all_deplibs=yes
11644 case $cc_basename in
11646 # Fabrice Bellard et al's Tiny C Compiler
11648 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11653 netbsd* | netbsdelf*-gnu)
11654 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11655 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
11657 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
11659 hardcode_libdir_flag_spec='-R$libdir'
11660 hardcode_direct=yes
11661 hardcode_shlibpath_var=no
11665 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11666 hardcode_direct=yes
11667 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11668 hardcode_libdir_separator=:
11669 hardcode_shlibpath_var=no
11675 openbsd* | bitrig*)
11676 if test -f /usr/libexec/ld.so; then
11677 hardcode_direct=yes
11678 hardcode_shlibpath_var=no
11679 hardcode_direct_absolute=yes
11680 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
11681 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11682 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
11683 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
11684 export_dynamic_flag_spec='$wl-E'
11686 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11687 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
11695 hardcode_libdir_flag_spec='-L$libdir'
11696 hardcode_minus_L=yes
11697 allow_undefined_flag=unsupported
11699 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
11700 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
11701 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
11702 $ECHO EXPORTS >> $output_objdir/$libname.def~
11703 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
11704 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
11705 emximp -o $lib $output_objdir/$libname.def'
11706 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
11707 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
11708 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
11709 $ECHO EXPORTS >> $output_objdir/$libname.def~
11710 prefix_cmds="$SED"~
11711 if test EXPORTS = "`$SED 1q $export_symbols`"; then
11712 prefix_cmds="$prefix_cmds -e 1d";
11714 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
11715 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
11716 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
11717 emximp -o $lib $output_objdir/$libname.def'
11718 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
11719 enable_shared_with_static_runtimes=yes
11723 if test yes = "$GCC"; then
11724 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
11725 archive_cmds='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
11727 allow_undefined_flag=' -expect_unresolved \*'
11728 archive_cmds='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
11730 archive_cmds_need_lc='no'
11731 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11732 hardcode_libdir_separator=:
11735 osf4* | osf5*) # as osf3* with the addition of -msym flag
11736 if test yes = "$GCC"; then
11737 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
11738 archive_cmds='$CC -shared$allow_undefined_flag $pic_flag $libobjs $deplibs $compiler_flags $wl-msym $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
11739 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11741 allow_undefined_flag=' -expect_unresolved \*'
11742 archive_cmds='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
11743 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
11744 $CC -shared$allow_undefined_flag $wl-input $wl$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib~$RM $lib.exp'
11746 # Both c and cxx compiler support -rpath directly
11747 hardcode_libdir_flag_spec='-rpath $libdir'
11749 archive_cmds_need_lc='no'
11750 hardcode_libdir_separator=:
11754 no_undefined_flag=' -z defs'
11755 if test yes = "$GCC"; then
11757 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
11758 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11759 $CC -shared $pic_flag $wl-z ${wl}text $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
11761 case `$CC -V 2>&1` in
11764 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
11765 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11766 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
11770 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
11771 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11772 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
11776 hardcode_libdir_flag_spec='-R$libdir'
11777 hardcode_shlibpath_var=no
11779 solaris2.[0-5] | solaris2.[0-5].*) ;;
11781 # The compiler driver will combine and reorder linker options,
11782 # but understands '-z linker_flag'. GCC discards it without '$wl',
11783 # but is careful enough not to reorder.
11784 # Supported since Solaris 2.6 (maybe 2.5.1?)
11785 if test yes = "$GCC"; then
11786 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
11788 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
11792 link_all_deplibs=yes
11796 if test sequent = "$host_vendor"; then
11797 # Use $CC to link under sequent, because it throws in some extra .o
11798 # files that make .init and .fini sections work.
11799 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
11801 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
11803 hardcode_libdir_flag_spec='-L$libdir'
11804 hardcode_direct=yes
11805 hardcode_minus_L=yes
11806 hardcode_shlibpath_var=no
11810 case $host_vendor in
11812 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11813 hardcode_direct=yes # is this really true???
11816 ## LD is ld it makes a PLAMLIB
11817 ## CC just makes a GrossModule.
11818 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
11819 reload_cmds='$CC -r -o $output$reload_objs'
11823 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11824 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
11827 runpath_var='LD_RUN_PATH'
11828 hardcode_shlibpath_var=no
11832 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11833 hardcode_shlibpath_var=no
11834 export_dynamic_flag_spec='-Bexport'
11838 if test -d /usr/nec; then
11839 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11840 hardcode_shlibpath_var=no
11841 runpath_var=LD_RUN_PATH
11842 hardcode_runpath_var=yes
11847 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11848 no_undefined_flag='$wl-z,text'
11849 archive_cmds_need_lc=no
11850 hardcode_shlibpath_var=no
11851 runpath_var='LD_RUN_PATH'
11853 if test yes = "$GCC"; then
11854 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11855 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11857 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11858 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11862 sysv5* | sco3.2v5* | sco5v6*)
11863 # Note: We CANNOT use -z defs as we might desire, because we do not
11864 # link with -lc, and that would cause any symbols used from libc to
11865 # always be unresolved, which means just about no library would
11866 # ever link correctly. If we're not using GNU ld we use -z text
11867 # though, which does catch some bad symbols but isn't as heavy-handed
11869 no_undefined_flag='$wl-z,text'
11870 allow_undefined_flag='$wl-z,nodefs'
11871 archive_cmds_need_lc=no
11872 hardcode_shlibpath_var=no
11873 hardcode_libdir_flag_spec='$wl-R,$libdir'
11874 hardcode_libdir_separator=':'
11875 link_all_deplibs=yes
11876 export_dynamic_flag_spec='$wl-Bexport'
11877 runpath_var='LD_RUN_PATH'
11879 if test yes = "$GCC"; then
11880 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11881 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11883 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11884 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11889 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11890 hardcode_libdir_flag_spec='-L$libdir'
11891 hardcode_shlibpath_var=no
11899 if test sni = "$host_vendor"; then
11901 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11902 export_dynamic_flag_spec='$wl-Blargedynsym'
11908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
11909 $as_echo "$ld_shlibs" >&6; }
11910 test no = "$ld_shlibs" && can_build_shared=no
11912 with_gnu_ld=$with_gnu_ld
11929 # Do we need to explicitly link libc?
11931 case "x$archive_cmds_need_lc" in
11933 # Assume -lc should be added
11934 archive_cmds_need_lc=yes
11936 if test yes,yes = "$GCC,$enable_shared"; then
11937 case $archive_cmds in
11939 # FIXME: we may have to deal with multi-command sequences.
11942 # Test whether the compiler implicitly links with -lc since on some
11943 # systems, -lgcc has to come before -lc. If gcc already passes -lc
11944 # to ld, don't add -lc before -lgcc.
11945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
11946 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
11947 if ${lt_cv_archive_cmds_need_lc+:} false; then :
11948 $as_echo_n "(cached) " >&6
11951 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11953 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11954 (eval $ac_compile) 2>&5
11956 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11957 test $ac_status = 0; } 2>conftest.err; then
11960 libobjs=conftest.$ac_objext
11962 wl=$lt_prog_compiler_wl
11963 pic_flag=$lt_prog_compiler_pic
11969 lt_save_allow_undefined_flag=$allow_undefined_flag
11970 allow_undefined_flag=
11971 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
11972 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
11974 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11975 test $ac_status = 0; }
11977 lt_cv_archive_cmds_need_lc=no
11979 lt_cv_archive_cmds_need_lc=yes
11981 allow_undefined_flag=$lt_save_allow_undefined_flag
11983 cat conftest.err 1>&5
11988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
11989 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
11990 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
12148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
12149 $as_echo_n "checking dynamic linker characteristics... " >&6; }
12151 if test yes = "$GCC"; then
12153 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
12154 *) lt_awk_arg='/^libraries:/' ;;
12157 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
12158 *) lt_sed_strip_eq='s|=/|/|g' ;;
12160 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
12161 case $lt_search_path_spec in
12163 # if the path contains ";" then we assume it to be the separator
12164 # otherwise default to the standard path separator (i.e. ":") - it is
12165 # assumed that no part of a normal pathname contains ";" but that should
12166 # okay in the real world where ";" in dirpaths is itself problematic.
12167 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
12170 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
12173 # Ok, now we have the path, separated by spaces, we can step through it
12174 # and add multilib dir if necessary...
12175 lt_tmp_lt_search_path_spec=
12176 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
12177 # ...but if some path component already ends with the multilib dir we assume
12178 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
12179 case "$lt_multi_os_dir; $lt_search_path_spec " in
12180 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
12184 for lt_sys_path in $lt_search_path_spec; do
12185 if test -d "$lt_sys_path$lt_multi_os_dir"; then
12186 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
12187 elif test -n "$lt_multi_os_dir"; then
12188 test -d "$lt_sys_path" && \
12189 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
12192 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
12193 BEGIN {RS = " "; FS = "/|\n";} {
12196 for (lt_i = NF; lt_i > 0; lt_i--) {
12197 if ($lt_i != "" && $lt_i != ".") {
12198 if ($lt_i == "..") {
12201 if (lt_count == 0) {
12202 lt_foo = "/" $lt_i lt_foo;
12209 if (lt_foo != "") { lt_freq[lt_foo]++; }
12210 if (lt_freq[lt_foo] == 1) { print lt_foo; }
12212 # AWK program above erroneously prepends '/' to C:/dos/paths
12215 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
12216 $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
12218 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
12220 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12222 library_names_spec=
12223 libname_spec='lib$name'
12227 postuninstall_cmds=
12231 shlibpath_overrides_runpath=unknown
12233 dynamic_linker="$host_os ld.so"
12234 sys_lib_dlsearch_path_spec="/lib /usr/lib"
12235 need_lib_prefix=unknown
12236 hardcode_into_libs=no
12238 # when you set need_version to no, make sure it does not cause -set_version
12239 # flags to be left without arguments
12240 need_version=unknown
12246 version_type=linux # correct to gnu/linux during the next big refactor
12247 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
12248 shlibpath_var=LIBPATH
12250 # AIX 3 has no versioning support, so we append a major version to the name.
12251 soname_spec='$libname$release$shared_ext$major'
12255 version_type=linux # correct to gnu/linux during the next big refactor
12258 hardcode_into_libs=yes
12259 if test ia64 = "$host_cpu"; then
12260 # AIX 5 supports IA64
12261 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
12262 shlibpath_var=LD_LIBRARY_PATH
12264 # With GCC up to 2.95.x, collect2 would create an import file
12265 # for dependence libraries. The import file would start with
12266 # the line '#! .'. This would cause the generated library to
12267 # depend on '.', always an invalid library. This was fixed in
12268 # development snapshots of GCC prior to 3.0.
12270 aix4 | aix4.[01] | aix4.[01].*)
12271 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12273 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
12276 can_build_shared=no
12280 # Using Import Files as archive members, it is possible to support
12281 # filename-based versioning of shared library archives on AIX. While
12282 # this would work for both with and without runtime linking, it will
12283 # prevent static linking of such archives. So we do filename-based
12284 # shared library versioning with .so extension only, which is used
12285 # when both runtime linking and shared linking is enabled.
12286 # Unfortunately, runtime linking may impact performance, so we do
12287 # not want this to be the default eventually. Also, we use the
12288 # versioned .so libs for executables only if there is the -brtl
12289 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
12290 # To allow for filename-based versioning support, we need to create
12291 # libNAME.so.V as an archive file, containing:
12292 # *) an Import File, referring to the versioned filename of the
12293 # archive as well as the shared archive member, telling the
12294 # bitwidth (32 or 64) of that shared object, and providing the
12295 # list of exported symbols of that shared object, eventually
12296 # decorated with the 'weak' keyword
12297 # *) the shared object with the F_LOADONLY flag set, to really avoid
12298 # it being seen by the linker.
12299 # At run time we better use the real file rather than another symlink,
12300 # but for link time we create the symlink libNAME.so -> libNAME.so.V
12302 case $with_aix_soname,$aix_use_runtimelinking in
12303 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
12304 # soname into executable. Probably we can add versioning support to
12305 # collect2, so additional links can be useful in future.
12306 aix,yes) # traditional libtool
12307 dynamic_linker='AIX unversionable lib.so'
12308 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12309 # instead of lib<name>.a to let people know that these are not
12310 # typical AIX shared libraries.
12311 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12313 aix,no) # traditional AIX only
12314 dynamic_linker='AIX lib.a(lib.so.V)'
12315 # We preserve .a as extension for shared libraries through AIX4.2
12316 # and later when we are not doing run time linking.
12317 library_names_spec='$libname$release.a $libname.a'
12318 soname_spec='$libname$release$shared_ext$major'
12320 svr4,*) # full svr4 only
12321 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
12322 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
12323 # We do not specify a path in Import Files, so LIBPATH fires.
12324 shlibpath_overrides_runpath=yes
12326 *,yes) # both, prefer svr4
12327 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
12328 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
12329 # unpreferred sharedlib libNAME.a needs extra handling
12330 postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"'
12331 postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"'
12332 # We do not specify a path in Import Files, so LIBPATH fires.
12333 shlibpath_overrides_runpath=yes
12335 *,no) # both, prefer aix
12336 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
12337 library_names_spec='$libname$release.a $libname.a'
12338 soname_spec='$libname$release$shared_ext$major'
12339 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
12340 postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)'
12341 postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"'
12344 shlibpath_var=LIBPATH
12351 # Since July 2007 AmigaOS4 officially supports .so libraries.
12352 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
12353 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12356 library_names_spec='$libname.ixlibrary $libname.a'
12357 # Create ${libname}_ixlibrary.a entries in /sys/libs.
12358 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
12364 library_names_spec='$libname$shared_ext'
12365 dynamic_linker="$host_os ld.so"
12366 shlibpath_var=LIBRARY_PATH
12370 version_type=linux # correct to gnu/linux during the next big refactor
12372 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12373 soname_spec='$libname$release$shared_ext$major'
12374 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12375 shlibpath_var=LD_LIBRARY_PATH
12376 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12377 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12378 # the default ld.so.conf also contains /usr/contrib/lib and
12379 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12380 # libtool to hard-code these into programs
12383 cygwin* | mingw* | pw32* | cegcc*)
12384 version_type=windows
12389 case $GCC,$cc_basename in
12392 library_names_spec='$libname.dll.a'
12393 # DLL is installed to $(libdir)/../bin by postinstall_cmds
12394 postinstall_cmds='base_file=`basename \$file`~
12395 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
12396 dldir=$destdir/`dirname \$dlpath`~
12397 test -d \$dldir || mkdir -p \$dldir~
12398 $install_prog $dir/$dlname \$dldir/$dlname~
12399 chmod a+x \$dldir/$dlname~
12400 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
12401 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
12403 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12404 dlpath=$dir/\$dldll~
12406 shlibpath_overrides_runpath=yes
12410 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12411 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12413 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
12416 # MinGW DLLs use traditional 'lib' prefix
12417 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12420 # pw32 DLLs use 'pw' prefix rather than 'lib'
12421 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12424 dynamic_linker='Win32 ld.exe'
12429 libname_spec='$name'
12430 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12431 library_names_spec='$libname.dll.lib'
12435 sys_lib_search_path_spec=
12438 for lt_path in $LIB
12441 # Let DOS variable expansion print the short 8.3 style file name.
12442 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
12443 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
12446 # Convert to MSYS style.
12447 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
12450 # Convert to unix form, then to dos form, then back to unix form
12451 # but this time dos style (no spaces!) so that the unix form looks
12452 # like /cygdrive/c/PROGRA~1:/cygdr...
12453 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
12454 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
12455 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12458 sys_lib_search_path_spec=$LIB
12459 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
12460 # It is most probably a Windows format PATH.
12461 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12463 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12465 # FIXME: find the short name or the path components, as spaces are
12466 # common. (e.g. "Program Files" -> "PROGRA~1")
12470 # DLL is installed to $(libdir)/../bin by postinstall_cmds
12471 postinstall_cmds='base_file=`basename \$file`~
12472 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
12473 dldir=$destdir/`dirname \$dlpath`~
12474 test -d \$dldir || mkdir -p \$dldir~
12475 $install_prog $dir/$dlname \$dldir/$dlname'
12476 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12477 dlpath=$dir/\$dldll~
12479 shlibpath_overrides_runpath=yes
12480 dynamic_linker='Win32 link.exe'
12484 # Assume MSVC wrapper
12485 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
12486 dynamic_linker='Win32 ld.exe'
12489 # FIXME: first we should search . and the directory the executable is in
12493 darwin* | rhapsody*)
12494 dynamic_linker="$host_os dyld"
12495 version_type=darwin
12498 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
12499 soname_spec='$libname$release$major$shared_ext'
12500 shlibpath_overrides_runpath=yes
12501 shlibpath_var=DYLD_LIBRARY_PATH
12502 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
12504 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
12505 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12509 version_type=linux # correct to gnu/linux during the next big refactor
12512 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12513 soname_spec='$libname$release$shared_ext$major'
12514 shlibpath_var=LD_LIBRARY_PATH
12517 freebsd* | dragonfly*)
12518 # DragonFly does not have aout. When/if they implement a new
12519 # versioning mechanism, adjust this.
12520 if test -x /usr/bin/objformat; then
12521 objformat=`/usr/bin/objformat`
12524 freebsd[23].*) objformat=aout ;;
12525 *) objformat=elf ;;
12528 version_type=freebsd-$objformat
12529 case $version_type in
12531 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12532 soname_spec='$libname$release$shared_ext$major'
12537 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12541 shlibpath_var=LD_LIBRARY_PATH
12544 shlibpath_overrides_runpath=yes
12546 freebsd3.[01]* | freebsdelf3.[01]*)
12547 shlibpath_overrides_runpath=yes
12548 hardcode_into_libs=yes
12550 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12551 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12552 shlibpath_overrides_runpath=no
12553 hardcode_into_libs=yes
12555 *) # from 4.6 on, and DragonFly
12556 shlibpath_overrides_runpath=yes
12557 hardcode_into_libs=yes
12563 version_type=linux # correct to gnu/linux during the next big refactor
12566 dynamic_linker="$host_os runtime_loader"
12567 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12568 soname_spec='$libname$release$shared_ext$major'
12569 shlibpath_var=LIBRARY_PATH
12570 shlibpath_overrides_runpath=no
12571 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
12572 hardcode_into_libs=yes
12575 hpux9* | hpux10* | hpux11*)
12576 # Give a soname corresponding to the major version so that dld.sl refuses to
12577 # link against other versions.
12584 hardcode_into_libs=yes
12585 dynamic_linker="$host_os dld.so"
12586 shlibpath_var=LD_LIBRARY_PATH
12587 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12588 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12589 soname_spec='$libname$release$shared_ext$major'
12590 if test 32 = "$HPUX_IA64_MODE"; then
12591 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12592 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
12594 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12595 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
12600 hardcode_into_libs=yes
12601 dynamic_linker="$host_os dld.sl"
12602 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12603 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12604 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12605 soname_spec='$libname$release$shared_ext$major'
12606 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12607 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12611 dynamic_linker="$host_os dld.sl"
12612 shlibpath_var=SHLIB_PATH
12613 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12614 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12615 soname_spec='$libname$release$shared_ext$major'
12618 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
12619 postinstall_cmds='chmod 555 $lib'
12620 # or fails outright, so override atomically:
12621 install_override_mode=555
12625 version_type=linux # correct to gnu/linux during the next big refactor
12628 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12629 soname_spec='$libname$release$shared_ext$major'
12630 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12631 shlibpath_var=LD_LIBRARY_PATH
12632 shlibpath_overrides_runpath=no
12633 hardcode_into_libs=yes
12636 irix5* | irix6* | nonstopux*)
12638 nonstopux*) version_type=nonstopux ;;
12640 if test yes = "$lt_cv_prog_gnu_ld"; then
12641 version_type=linux # correct to gnu/linux during the next big refactor
12648 soname_spec='$libname$release$shared_ext$major'
12649 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
12651 irix5* | nonstopux*)
12652 libsuff= shlibsuff=
12655 case $LD in # libtool.m4 will add one of these switches to LD
12656 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12657 libsuff= shlibsuff= libmagic=32-bit;;
12658 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12659 libsuff=32 shlibsuff=N32 libmagic=N32;;
12660 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12661 libsuff=64 shlibsuff=64 libmagic=64-bit;;
12662 *) libsuff= shlibsuff= libmagic=never-match;;
12666 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12667 shlibpath_overrides_runpath=no
12668 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
12669 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
12670 hardcode_into_libs=yes
12673 # No shared lib support for Linux oldld, aout, or coff.
12674 linux*oldld* | linux*aout* | linux*coff*)
12679 version_type=none # Android doesn't support versioned libraries.
12682 library_names_spec='$libname$release$shared_ext'
12683 soname_spec='$libname$release$shared_ext'
12685 shlibpath_var=LD_LIBRARY_PATH
12686 shlibpath_overrides_runpath=yes
12688 # This implies no fast_install, which is unacceptable.
12689 # Some rework will be needed to allow for fast_install
12690 # before this can be enabled.
12691 hardcode_into_libs=yes
12693 dynamic_linker='Android linker'
12694 # Don't embed -rpath directories since the linker doesn't support them.
12695 hardcode_libdir_flag_spec='-L$libdir'
12698 # This must be glibc/ELF.
12699 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
12700 version_type=linux # correct to gnu/linux during the next big refactor
12703 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12704 soname_spec='$libname$release$shared_ext$major'
12705 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12706 shlibpath_var=LD_LIBRARY_PATH
12707 shlibpath_overrides_runpath=no
12709 # Some binutils ld are patched to set DT_RUNPATH
12710 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
12711 $as_echo_n "(cached) " >&6
12713 lt_cv_shlibpath_overrides_runpath=no
12714 save_LDFLAGS=$LDFLAGS
12715 save_libdir=$libdir
12716 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
12717 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
12718 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12719 /* end confdefs.h. */
12729 if ac_fn_c_try_link "$LINENO"; then :
12730 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
12731 lt_cv_shlibpath_overrides_runpath=yes
12734 rm -f core conftest.err conftest.$ac_objext \
12735 conftest$ac_exeext conftest.$ac_ext
12736 LDFLAGS=$save_LDFLAGS
12737 libdir=$save_libdir
12741 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
12743 # This implies no fast_install, which is unacceptable.
12744 # Some rework will be needed to allow for fast_install
12745 # before this can be enabled.
12746 hardcode_into_libs=yes
12748 # Ideally, we could use ldconfig to report *all* directores which are
12749 # searched for libraries, however this is still not possible. Aside from not
12750 # being certain /sbin/ldconfig is available, command
12751 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
12752 # even though it is searched at run-time. Try to do the best guess by
12753 # appending ld.so.conf contents (and includes) to the search path.
12754 if test -f /etc/ld.so.conf; then
12755 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
12756 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
12759 # We used to test for /lib/ld.so.1 and disable shared libraries on
12760 # powerpc, because MkLinux only supported shared libraries with the
12761 # GNU dynamic linker. Since this was broken with cross compilers,
12762 # most powerpc-linux boxes support dynamic linking these days and
12763 # people can always --disable-shared, the test was removed, and we
12764 # assume the GNU/Linux dynamic linker is in use.
12765 dynamic_linker='GNU/Linux ld.so'
12772 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12773 soname_spec='${libname}${release}${shared_ext}$major'
12774 shlibpath_var=LD_LIBRARY_PATH
12775 shlibpath_overrides_runpath=no
12776 hardcode_into_libs=yes
12777 dynamic_linker='NetBSD ld.elf_so'
12784 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12785 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12786 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12787 dynamic_linker='NetBSD (a.out) ld.so'
12789 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12790 soname_spec='$libname$release$shared_ext$major'
12791 dynamic_linker='NetBSD ld.elf_so'
12793 shlibpath_var=LD_LIBRARY_PATH
12794 shlibpath_overrides_runpath=yes
12795 hardcode_into_libs=yes
12799 version_type=linux # correct to gnu/linux during the next big refactor
12800 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12801 shlibpath_var=LD_LIBRARY_PATH
12802 shlibpath_overrides_runpath=yes
12809 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12810 soname_spec='$libname$release$shared_ext$major'
12811 shlibpath_var=LD_LIBRARY_PATH
12812 shlibpath_overrides_runpath=no
12813 hardcode_into_libs=yes
12814 dynamic_linker='ldqnx.so'
12817 openbsd* | bitrig*)
12819 sys_lib_dlsearch_path_spec=/usr/lib
12821 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
12826 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12827 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12828 shlibpath_var=LD_LIBRARY_PATH
12829 shlibpath_overrides_runpath=yes
12833 libname_spec='$name'
12834 version_type=windows
12838 # OS/2 can only load a DLL with a base name of 8 characters or less.
12839 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
12840 v=$($ECHO $release$versuffix | tr -d .-);
12841 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
12842 $ECHO $n$v`$shared_ext'
12843 library_names_spec='${libname}_dll.$libext'
12844 dynamic_linker='OS/2 ld.exe'
12845 shlibpath_var=BEGINLIBPATH
12846 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12847 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12848 postinstall_cmds='base_file=`basename \$file`~
12849 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
12850 dldir=$destdir/`dirname \$dlpath`~
12851 test -d \$dldir || mkdir -p \$dldir~
12852 $install_prog $dir/$dlname \$dldir/$dlname~
12853 chmod a+x \$dldir/$dlname~
12854 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
12855 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
12857 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
12858 dlpath=$dir/\$dldll~
12862 osf3* | osf4* | osf5*)
12866 soname_spec='$libname$release$shared_ext$major'
12867 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12868 shlibpath_var=LD_LIBRARY_PATH
12869 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12870 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12878 version_type=linux # correct to gnu/linux during the next big refactor
12881 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12882 soname_spec='$libname$release$shared_ext$major'
12883 shlibpath_var=LD_LIBRARY_PATH
12884 shlibpath_overrides_runpath=yes
12885 hardcode_into_libs=yes
12886 # ldd complains unless libraries are executable
12887 postinstall_cmds='chmod +x $lib'
12892 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12893 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12894 shlibpath_var=LD_LIBRARY_PATH
12895 shlibpath_overrides_runpath=yes
12896 if test yes = "$with_gnu_ld"; then
12903 version_type=linux # correct to gnu/linux during the next big refactor
12904 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12905 soname_spec='$libname$release$shared_ext$major'
12906 shlibpath_var=LD_LIBRARY_PATH
12907 case $host_vendor in
12909 shlibpath_overrides_runpath=no
12911 runpath_var=LD_RUN_PATH
12919 shlibpath_overrides_runpath=no
12920 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12926 if test -d /usr/nec; then
12927 version_type=linux # correct to gnu/linux during the next big refactor
12928 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
12929 soname_spec='$libname$shared_ext.$major'
12930 shlibpath_var=LD_LIBRARY_PATH
12934 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12938 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
12939 soname_spec='$libname$release$shared_ext$major'
12940 shlibpath_var=LD_LIBRARY_PATH
12941 shlibpath_overrides_runpath=yes
12942 hardcode_into_libs=yes
12943 if test yes = "$with_gnu_ld"; then
12944 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12946 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12949 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12953 sys_lib_dlsearch_path_spec='/usr/lib'
12957 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
12958 version_type=linux # correct to gnu/linux during the next big refactor
12961 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12962 shlibpath_var=LD_LIBRARY_PATH
12963 shlibpath_overrides_runpath=no
12964 hardcode_into_libs=yes
12968 version_type=linux # correct to gnu/linux during the next big refactor
12969 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12970 soname_spec='$libname$release$shared_ext$major'
12971 shlibpath_var=LD_LIBRARY_PATH
12978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
12979 $as_echo "$dynamic_linker" >&6; }
12980 test no = "$dynamic_linker" && can_build_shared=no
12982 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12983 if test yes = "$GCC"; then
12984 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12987 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
12988 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
12991 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
12992 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
12995 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
12996 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
12998 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
12999 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
13001 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
13002 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
13100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
13101 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
13103 if test -n "$hardcode_libdir_flag_spec" ||
13104 test -n "$runpath_var" ||
13105 test yes = "$hardcode_automatic"; then
13107 # We can hardcode non-existent directories.
13108 if test no != "$hardcode_direct" &&
13109 # If the only mechanism to avoid hardcoding is shlibpath_var, we
13110 # have to relink, otherwise we might link with an installed library
13111 # when we should be linking with a yet-to-be-installed one
13112 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
13113 test no != "$hardcode_minus_L"; then
13114 # Linking always hardcodes the temporary library directory.
13115 hardcode_action=relink
13117 # We can link without hardcoding, and we can hardcode nonexisting dirs.
13118 hardcode_action=immediate
13121 # We cannot hardcode anything, or else we can only hardcode existing
13123 hardcode_action=unsupported
13125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
13126 $as_echo "$hardcode_action" >&6; }
13128 if test relink = "$hardcode_action" ||
13129 test yes = "$inherit_rpath"; then
13130 # Fast installation is not supported
13131 enable_fast_install=no
13132 elif test yes = "$shlibpath_overrides_runpath" ||
13133 test no = "$enable_shared"; then
13134 # Fast installation is not necessary
13135 enable_fast_install=needless
13143 if test yes != "$enable_dlopen"; then
13144 enable_dlopen=unknown
13145 enable_dlopen_self=unknown
13146 enable_dlopen_self_static=unknown
13153 lt_cv_dlopen=load_add_on
13155 lt_cv_dlopen_self=yes
13158 mingw* | pw32* | cegcc*)
13159 lt_cv_dlopen=LoadLibrary
13164 lt_cv_dlopen=dlopen
13169 # if libdl is installed we need to link against it
13170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
13171 $as_echo_n "checking for dlopen in -ldl... " >&6; }
13172 if ${ac_cv_lib_dl_dlopen+:} false; then :
13173 $as_echo_n "(cached) " >&6
13175 ac_check_lib_save_LIBS=$LIBS
13177 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13178 /* end confdefs.h. */
13180 /* Override any GCC internal prototype to avoid an error.
13181 Use char because int might match the return type of a GCC
13182 builtin and then its argument prototype would still apply. */
13195 if ac_fn_c_try_link "$LINENO"; then :
13196 ac_cv_lib_dl_dlopen=yes
13198 ac_cv_lib_dl_dlopen=no
13200 rm -f core conftest.err conftest.$ac_objext \
13201 conftest$ac_exeext conftest.$ac_ext
13202 LIBS=$ac_check_lib_save_LIBS
13204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
13205 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
13206 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
13207 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
13212 lt_cv_dlopen_self=yes
13219 # Don't try to run any link tests for TPF. We know it's impossible
13220 # because TPF is a cross-compiler, and we know how we open DSOs.
13221 lt_cv_dlopen=dlopen
13223 lt_cv_dlopen_self=no
13227 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
13228 if test "x$ac_cv_func_shl_load" = xyes; then :
13229 lt_cv_dlopen=shl_load
13231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
13232 $as_echo_n "checking for shl_load in -ldld... " >&6; }
13233 if ${ac_cv_lib_dld_shl_load+:} false; then :
13234 $as_echo_n "(cached) " >&6
13236 ac_check_lib_save_LIBS=$LIBS
13238 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13239 /* end confdefs.h. */
13241 /* Override any GCC internal prototype to avoid an error.
13242 Use char because int might match the return type of a GCC
13243 builtin and then its argument prototype would still apply. */
13251 return shl_load ();
13256 if ac_fn_c_try_link "$LINENO"; then :
13257 ac_cv_lib_dld_shl_load=yes
13259 ac_cv_lib_dld_shl_load=no
13261 rm -f core conftest.err conftest.$ac_objext \
13262 conftest$ac_exeext conftest.$ac_ext
13263 LIBS=$ac_check_lib_save_LIBS
13265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
13266 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
13267 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
13268 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
13270 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
13271 if test "x$ac_cv_func_dlopen" = xyes; then :
13272 lt_cv_dlopen=dlopen
13274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
13275 $as_echo_n "checking for dlopen in -ldl... " >&6; }
13276 if ${ac_cv_lib_dl_dlopen+:} false; then :
13277 $as_echo_n "(cached) " >&6
13279 ac_check_lib_save_LIBS=$LIBS
13281 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13282 /* end confdefs.h. */
13284 /* Override any GCC internal prototype to avoid an error.
13285 Use char because int might match the return type of a GCC
13286 builtin and then its argument prototype would still apply. */
13299 if ac_fn_c_try_link "$LINENO"; then :
13300 ac_cv_lib_dl_dlopen=yes
13302 ac_cv_lib_dl_dlopen=no
13304 rm -f core conftest.err conftest.$ac_objext \
13305 conftest$ac_exeext conftest.$ac_ext
13306 LIBS=$ac_check_lib_save_LIBS
13308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
13309 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
13310 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
13311 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
13313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
13314 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
13315 if ${ac_cv_lib_svld_dlopen+:} false; then :
13316 $as_echo_n "(cached) " >&6
13318 ac_check_lib_save_LIBS=$LIBS
13319 LIBS="-lsvld $LIBS"
13320 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13321 /* end confdefs.h. */
13323 /* Override any GCC internal prototype to avoid an error.
13324 Use char because int might match the return type of a GCC
13325 builtin and then its argument prototype would still apply. */
13338 if ac_fn_c_try_link "$LINENO"; then :
13339 ac_cv_lib_svld_dlopen=yes
13341 ac_cv_lib_svld_dlopen=no
13343 rm -f core conftest.err conftest.$ac_objext \
13344 conftest$ac_exeext conftest.$ac_ext
13345 LIBS=$ac_check_lib_save_LIBS
13347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
13348 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
13349 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
13350 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
13352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
13353 $as_echo_n "checking for dld_link in -ldld... " >&6; }
13354 if ${ac_cv_lib_dld_dld_link+:} false; then :
13355 $as_echo_n "(cached) " >&6
13357 ac_check_lib_save_LIBS=$LIBS
13359 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13360 /* end confdefs.h. */
13362 /* Override any GCC internal prototype to avoid an error.
13363 Use char because int might match the return type of a GCC
13364 builtin and then its argument prototype would still apply. */
13372 return dld_link ();
13377 if ac_fn_c_try_link "$LINENO"; then :
13378 ac_cv_lib_dld_dld_link=yes
13380 ac_cv_lib_dld_dld_link=no
13382 rm -f core conftest.err conftest.$ac_objext \
13383 conftest$ac_exeext conftest.$ac_ext
13384 LIBS=$ac_check_lib_save_LIBS
13386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
13387 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
13388 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
13389 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
13410 if test no = "$lt_cv_dlopen"; then
13416 case $lt_cv_dlopen in
13418 save_CPPFLAGS=$CPPFLAGS
13419 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
13421 save_LDFLAGS=$LDFLAGS
13422 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
13425 LIBS="$lt_cv_dlopen_libs $LIBS"
13427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
13428 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
13429 if ${lt_cv_dlopen_self+:} false; then :
13430 $as_echo_n "(cached) " >&6
13432 if test yes = "$cross_compiling"; then :
13433 lt_cv_dlopen_self=cross
13435 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13436 lt_status=$lt_dlunknown
13437 cat > conftest.$ac_ext <<_LT_EOF
13438 #line $LINENO "configure"
13439 #include "confdefs.h"
13448 # define LT_DLGLOBAL RTLD_GLOBAL
13451 # define LT_DLGLOBAL DL_GLOBAL
13453 # define LT_DLGLOBAL 0
13457 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13458 find out it does not work in some platform. */
13459 #ifndef LT_DLLAZY_OR_NOW
13461 # define LT_DLLAZY_OR_NOW RTLD_LAZY
13464 # define LT_DLLAZY_OR_NOW DL_LAZY
13467 # define LT_DLLAZY_OR_NOW RTLD_NOW
13470 # define LT_DLLAZY_OR_NOW DL_NOW
13472 # define LT_DLLAZY_OR_NOW 0
13479 /* When -fvisibility=hidden is used, assume the code has been annotated
13480 correspondingly for the symbols needed. */
13481 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
13482 int fnord () __attribute__((visibility("default")));
13485 int fnord () { return 42; }
13488 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13489 int status = $lt_dlunknown;
13493 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
13496 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13497 else puts (dlerror ());
13499 /* dlclose (self); */
13507 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13508 (eval $ac_link) 2>&5
13510 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13511 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
13512 (./conftest; exit; ) >&5 2>/dev/null
13514 case x$lt_status in
13515 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
13516 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
13517 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
13520 # compilation failed
13521 lt_cv_dlopen_self=no
13528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
13529 $as_echo "$lt_cv_dlopen_self" >&6; }
13531 if test yes = "$lt_cv_dlopen_self"; then
13532 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
13533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
13534 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
13535 if ${lt_cv_dlopen_self_static+:} false; then :
13536 $as_echo_n "(cached) " >&6
13538 if test yes = "$cross_compiling"; then :
13539 lt_cv_dlopen_self_static=cross
13541 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13542 lt_status=$lt_dlunknown
13543 cat > conftest.$ac_ext <<_LT_EOF
13544 #line $LINENO "configure"
13545 #include "confdefs.h"
13554 # define LT_DLGLOBAL RTLD_GLOBAL
13557 # define LT_DLGLOBAL DL_GLOBAL
13559 # define LT_DLGLOBAL 0
13563 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13564 find out it does not work in some platform. */
13565 #ifndef LT_DLLAZY_OR_NOW
13567 # define LT_DLLAZY_OR_NOW RTLD_LAZY
13570 # define LT_DLLAZY_OR_NOW DL_LAZY
13573 # define LT_DLLAZY_OR_NOW RTLD_NOW
13576 # define LT_DLLAZY_OR_NOW DL_NOW
13578 # define LT_DLLAZY_OR_NOW 0
13585 /* When -fvisibility=hidden is used, assume the code has been annotated
13586 correspondingly for the symbols needed. */
13587 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
13588 int fnord () __attribute__((visibility("default")));
13591 int fnord () { return 42; }
13594 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13595 int status = $lt_dlunknown;
13599 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
13602 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13603 else puts (dlerror ());
13605 /* dlclose (self); */
13613 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13614 (eval $ac_link) 2>&5
13616 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13617 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
13618 (./conftest; exit; ) >&5 2>/dev/null
13620 case x$lt_status in
13621 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
13622 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
13623 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
13626 # compilation failed
13627 lt_cv_dlopen_self_static=no
13634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
13635 $as_echo "$lt_cv_dlopen_self_static" >&6; }
13638 CPPFLAGS=$save_CPPFLAGS
13639 LDFLAGS=$save_LDFLAGS
13644 case $lt_cv_dlopen_self in
13645 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
13646 *) enable_dlopen_self=unknown ;;
13649 case $lt_cv_dlopen_self_static in
13650 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
13651 *) enable_dlopen_self_static=unknown ;;
13673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
13674 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
13675 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
13676 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
13677 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
13678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13679 $as_echo "yes" >&6; }
13681 # FIXME - insert some real tests, host_os isn't really good enough
13684 if test -n "$STRIP"; then
13685 striplib="$STRIP -x"
13686 old_striplib="$STRIP -S"
13687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13688 $as_echo "yes" >&6; }
13690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13691 $as_echo "no" >&6; }
13695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13696 $as_echo "no" >&6; }
13712 # Report what library types will actually be built
13713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
13714 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
13715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
13716 $as_echo "$can_build_shared" >&6; }
13718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
13719 $as_echo_n "checking whether to build shared libraries... " >&6; }
13720 test no = "$can_build_shared" && enable_shared=no
13722 # On AIX, shared libraries and static libraries use the same namespace, and
13723 # are all built from PIC.
13726 test yes = "$enable_shared" && enable_static=no
13727 if test -n "$RANLIB"; then
13728 archive_cmds="$archive_cmds~\$RANLIB \$lib"
13729 postinstall_cmds='$RANLIB $lib'
13734 if test ia64 != "$host_cpu"; then
13735 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
13736 yes,aix,yes) ;; # shared object as lib.so file only
13737 yes,svr4,*) ;; # shared object as lib.so archive member only
13738 yes,*) enable_static=no ;; # shared object in lib.a archive as well
13743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
13744 $as_echo "$enable_shared" >&6; }
13746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
13747 $as_echo_n "checking whether to build static libraries... " >&6; }
13748 # Make sure either enable_shared or enable_static is yes.
13749 test yes = "$enable_shared" || enable_static=yes
13750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
13751 $as_echo "$enable_static" >&6; }
13758 ac_cpp='$CPP $CPPFLAGS'
13759 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13760 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13761 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13779 ac_config_commands="$ac_config_commands libtool"
13784 # Only expand once:
13788 ac_config_headers="$ac_config_headers config.h"
13792 # Define below date and version information to be put into man pages etc.
13794 roff_version=`echo 2.8.3 | sed 's/-/\\-/g'`
13796 # Explicitly check for pkg-config early on, since otherwise the conditional
13797 # call in MAN_ARG_SYSTEMDTMPFILESDIR is problematic.
13805 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
13806 if test -n "$ac_tool_prefix"; then
13807 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
13808 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
13809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13810 $as_echo_n "checking for $ac_word... " >&6; }
13811 if ${ac_cv_path_PKG_CONFIG+:} false; then :
13812 $as_echo_n "(cached) " >&6
13814 case $PKG_CONFIG in
13816 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
13819 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13820 for as_dir in $PATH
13823 test -z "$as_dir" && as_dir=.
13824 for ac_exec_ext in '' $ac_executable_extensions; do
13825 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13826 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13827 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13837 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
13838 if test -n "$PKG_CONFIG"; then
13839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
13840 $as_echo "$PKG_CONFIG" >&6; }
13842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13843 $as_echo "no" >&6; }
13848 if test -z "$ac_cv_path_PKG_CONFIG"; then
13849 ac_pt_PKG_CONFIG=$PKG_CONFIG
13850 # Extract the first word of "pkg-config", so it can be a program name with args.
13851 set dummy pkg-config; ac_word=$2
13852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13853 $as_echo_n "checking for $ac_word... " >&6; }
13854 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
13855 $as_echo_n "(cached) " >&6
13857 case $ac_pt_PKG_CONFIG in
13859 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
13862 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13863 for as_dir in $PATH
13866 test -z "$as_dir" && as_dir=.
13867 for ac_exec_ext in '' $ac_executable_extensions; do
13868 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13869 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13870 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13880 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
13881 if test -n "$ac_pt_PKG_CONFIG"; then
13882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
13883 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
13885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13886 $as_echo "no" >&6; }
13889 if test "x$ac_pt_PKG_CONFIG" = x; then
13892 case $cross_compiling:$ac_tool_warned in
13894 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13895 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13896 ac_tool_warned=yes ;;
13898 PKG_CONFIG=$ac_pt_PKG_CONFIG
13901 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
13905 if test -n "$PKG_CONFIG"; then
13906 _pkg_min_version=0.9.0
13907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
13908 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
13909 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
13910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13911 $as_echo "yes" >&6; }
13913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13914 $as_echo "no" >&6; }
13919 # We have to be a bit naughty here and supply options.
13920 # The autoconf literature states that only features that can be separately
13921 # 'built' should use --enable and friends. Oh well...
13923 # Check whether --enable-cache-owner was given.
13924 if test "${enable_cache_owner+set}" = set; then :
13925 enableval=$enable_cache_owner; if test "$enableval" = "yes"
13929 if test "$enableval" = "no"
13932 { $as_echo "$as_me:${as_lineno-$LINENO}: System-wide cache files will have unconstrained ownership" >&5
13933 $as_echo "$as_me: System-wide cache files will have unconstrained ownership" >&6;}
13935 man_owner=$enableval
13936 { $as_echo "$as_me:${as_lineno-$LINENO}: System-wide cache files will be owned by $enableval" >&5
13937 $as_echo "$as_me: System-wide cache files will be owned by $enableval" >&6;}
13939 cat >>confdefs.h <<_ACEOF
13940 #define MAN_OWNER "$man_owner"
13946 cat >>confdefs.h <<_ACEOF
13947 #define MAN_OWNER "$man_owner"
13955 # Check whether --enable-setuid was given.
13956 if test "${enable_setuid+set}" = set; then :
13957 enableval=$enable_setuid; if test "$enableval" = "yes"
13959 if test -z "$man_owner"
13961 as_fn_error $? "--enable-setuid is incompatible with --disable-cache-owner" "$LINENO" 5
13964 { $as_echo "$as_me:${as_lineno-$LINENO}: Man will be installed setuid $man_owner" >&5
13965 $as_echo "$as_me: Man will be installed setuid $man_owner" >&6;}
13966 elif test "$enableval" = "no"
13969 { $as_echo "$as_me:${as_lineno-$LINENO}: Man will not be installed setuid" >&5
13970 $as_echo "$as_me: Man will not be installed setuid" >&6;}
13972 as_fn_error $? "--enable-setuid=$enableval is no longer valid; consider --enable-cache-owner=$enableval --enable-setuid instead" "$LINENO" 5
13975 if test -z "$man_owner"
13986 # Check whether --enable-undoc was given.
13987 if test "${enable_undoc+set}" = set; then :
13988 enableval=$enable_undoc; if test "$enableval" = "yes" || test "$enableval" = "no"
13990 as_fn_error $? "--enable-undoc requires an argument" "$LINENO" 5
13992 { $as_echo "$as_me:${as_lineno-$LINENO}: Suggesting '$enableval' for missing manual pages" >&5
13993 $as_echo "$as_me: Suggesting '$enableval' for missing manual pages" >&6;}
13995 cat >>confdefs.h <<_ACEOF
13996 #define UNDOC_COMMAND "$enableval"
14005 # Check whether --with-device was given.
14006 if test "${with_device+set}" = set; then :
14007 withval=$with_device; if test "$withval" = "yes" || test "$withval" = "no"
14009 as_fn_error $? "--with-device requires an argument" "$LINENO" 5
14011 nroff_device=" -T$withval"
14018 # Check whether --with-db was given.
14019 if test "${with_db+set}" = set; then :
14020 withval=$with_db; if test "$withval" = "yes" || test "$withval" = "no"
14022 as_fn_error $? "--with-db requires an argument" "$LINENO" 5
14033 # Check whether --with-config-file was given.
14034 if test "${with_config_file+set}" = set; then :
14035 withval=$with_config_file; if test "$withval" = "yes" || test "$withval" = "no"
14037 as_fn_error $? "--with-config-file requires an argument" "$LINENO" 5
14039 config_file=$withval
14042 : ${config_file=\$\{sysconfdir\}/man_db.conf}
14045 config_file_basename=${withval##*/}
14046 config_file_dirname=`$as_dirname -- "$config_file" ||
14047 $as_expr X"$config_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14048 X"$config_file" : 'X\(//\)[^/]' \| \
14049 X"$config_file" : 'X\(//\)$' \| \
14050 X"$config_file" : 'X\(/\)' \| . 2>/dev/null ||
14051 $as_echo X"$config_file" |
14052 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14056 /^X\(\/\/\)[^/].*/{
14075 # Check whether --with-sections was given.
14076 if test "${with_sections+set}" = set; then :
14077 withval=$with_sections; if test "$withval" = "yes" || test "$withval" = "no"
14079 as_fn_error $? "--with-sections requires an argument" "$LINENO" 5
14081 sections="$withval"
14084 : ${sections=1 n l 8 3 0 2 5 4 9 6 7}
14089 # Check whether --enable-automatic-create was given.
14090 if test "${enable_automatic_create+set}" = set; then :
14091 enableval=$enable_automatic_create; if test "$enableval" = "yes"
14094 $as_echo "#define MAN_DB_CREATES 1" >>confdefs.h
14101 # Check whether --enable-automatic-update was given.
14102 if test "${enable_automatic_update+set}" = set; then :
14103 enableval=$enable_automatic_update; if test "$enableval" = "yes"
14106 $as_echo "#define MAN_DB_UPDATES 1" >>confdefs.h
14111 $as_echo "#define MAN_DB_UPDATES 1" >>confdefs.h
14117 # Check whether --enable-cats was given.
14118 if test "${enable_cats+set}" = set; then :
14119 enableval=$enable_cats; if test "$enableval" = "yes"
14122 $as_echo "#define MAN_CATS 1" >>confdefs.h
14127 $as_echo "#define MAN_CATS 1" >>confdefs.h
14134 # Check whether --with-override-dir was given.
14135 if test "${with_override_dir+set}" = set; then :
14136 withval=$with_override_dir; if test "$withval" = "yes" || test "$withval" = "no"
14138 as_fn_error $? "--with-override-dir requires an argument" "$LINENO" 5
14140 override_dir=$withval
14143 : ${override_dir=""}
14150 # Check whether --with-systemdtmpfilesdir was given.
14151 if test "${with_systemdtmpfilesdir+set}" = set; then :
14152 withval=$with_systemdtmpfilesdir;
14154 # The default is not prefix-sensitive, since systemd's prefix is not
14155 # necessarily the same as man-db's.
14157 if test -n "$with_systemdtmpfilesdir"; then
14158 pkg_cv_with_systemdtmpfilesdir="$with_systemdtmpfilesdir"
14159 elif test -n "$PKG_CONFIG"; then
14160 if test -n "$PKG_CONFIG" && \
14161 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"systemd\""; } >&5
14162 ($PKG_CONFIG --exists --print-errors "systemd") 2>&5
14164 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14165 test $ac_status = 0; }; then
14166 pkg_cv_with_systemdtmpfilesdir=`$PKG_CONFIG --variable="tmpfilesdir" "systemd" 2>/dev/null`
14167 test "x$?" != "x0" && pkg_failed=yes
14174 with_systemdtmpfilesdir=$pkg_cv_with_systemdtmpfilesdir
14176 if test "x$with_systemdtmpfilesdir" = x""; then :
14177 with_systemdtmpfilesdir=/usr/lib/tmpfiles.d
14182 systemdtmpfilesdir=$with_systemdtmpfilesdir
14186 # Work out which manual page hierarchy scheme might be in use.
14187 # Check whether --enable-mandirs was given.
14188 if test "${enable_mandirs+set}" = set; then :
14189 enableval=$enable_mandirs; { $as_echo "$as_me:${as_lineno-$LINENO}: Using $enableval hierarchy organization(s)" >&5
14190 $as_echo "$as_me: Using $enableval hierarchy organization(s)" >&6;}
14192 cat >>confdefs.h <<_ACEOF
14193 #define MANDIR_LAYOUT "$enableval"
14196 MANDIR_LAYOUT="$enableval"
14199 *-gnu) mandirs=GNU;;
14200 *-hpux*) mandirs=HPUX;;
14201 *-irix*) mandirs=IRIX;;
14202 *-solaris*) mandirs=Solaris;;
14203 *-*bsd*) mandirs=BSD;;
14206 if test -n "$mandirs"; then
14207 { $as_echo "$as_me:${as_lineno-$LINENO}: Using $mandirs hierarchy organization" >&5
14208 $as_echo "$as_me: Using $mandirs hierarchy organization" >&6;}
14209 cat >>confdefs.h <<_ACEOF
14210 #define MANDIR_LAYOUT "$mandirs"
14213 MANDIR_LAYOUT="$mandirs"
14215 { $as_echo "$as_me:${as_lineno-$LINENO}: Allowing any hierarchy organization" >&5
14216 $as_echo "$as_me: Allowing any hierarchy organization" >&6;}
14217 $as_echo "#define MANDIR_LAYOUT \"\"" >>confdefs.h
14226 # Check $PATH for the following programs and append suitable options.
14228 ac_cpp='$CPP $CPPFLAGS'
14229 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14230 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14231 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14232 if test -n "$ac_tool_prefix"; then
14233 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
14234 set dummy ${ac_tool_prefix}gcc; ac_word=$2
14235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14236 $as_echo_n "checking for $ac_word... " >&6; }
14237 if ${ac_cv_prog_CC+:} false; then :
14238 $as_echo_n "(cached) " >&6
14240 if test -n "$CC"; then
14241 ac_cv_prog_CC="$CC" # Let the user override the test.
14243 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14244 for as_dir in $PATH
14247 test -z "$as_dir" && as_dir=.
14248 for ac_exec_ext in '' $ac_executable_extensions; do
14249 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14250 ac_cv_prog_CC="${ac_tool_prefix}gcc"
14251 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14261 if test -n "$CC"; then
14262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
14263 $as_echo "$CC" >&6; }
14265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14266 $as_echo "no" >&6; }
14271 if test -z "$ac_cv_prog_CC"; then
14273 # Extract the first word of "gcc", so it can be a program name with args.
14274 set dummy gcc; ac_word=$2
14275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14276 $as_echo_n "checking for $ac_word... " >&6; }
14277 if ${ac_cv_prog_ac_ct_CC+:} false; then :
14278 $as_echo_n "(cached) " >&6
14280 if test -n "$ac_ct_CC"; then
14281 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
14283 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14284 for as_dir in $PATH
14287 test -z "$as_dir" && as_dir=.
14288 for ac_exec_ext in '' $ac_executable_extensions; do
14289 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14290 ac_cv_prog_ac_ct_CC="gcc"
14291 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14300 ac_ct_CC=$ac_cv_prog_ac_ct_CC
14301 if test -n "$ac_ct_CC"; then
14302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
14303 $as_echo "$ac_ct_CC" >&6; }
14305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14306 $as_echo "no" >&6; }
14309 if test "x$ac_ct_CC" = x; then
14312 case $cross_compiling:$ac_tool_warned in
14314 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14315 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14316 ac_tool_warned=yes ;;
14321 CC="$ac_cv_prog_CC"
14324 if test -z "$CC"; then
14325 if test -n "$ac_tool_prefix"; then
14326 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
14327 set dummy ${ac_tool_prefix}cc; ac_word=$2
14328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14329 $as_echo_n "checking for $ac_word... " >&6; }
14330 if ${ac_cv_prog_CC+:} false; then :
14331 $as_echo_n "(cached) " >&6
14333 if test -n "$CC"; then
14334 ac_cv_prog_CC="$CC" # Let the user override the test.
14336 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14337 for as_dir in $PATH
14340 test -z "$as_dir" && as_dir=.
14341 for ac_exec_ext in '' $ac_executable_extensions; do
14342 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14343 ac_cv_prog_CC="${ac_tool_prefix}cc"
14344 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14354 if test -n "$CC"; then
14355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
14356 $as_echo "$CC" >&6; }
14358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14359 $as_echo "no" >&6; }
14365 if test -z "$CC"; then
14366 # Extract the first word of "cc", so it can be a program name with args.
14367 set dummy cc; ac_word=$2
14368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14369 $as_echo_n "checking for $ac_word... " >&6; }
14370 if ${ac_cv_prog_CC+:} false; then :
14371 $as_echo_n "(cached) " >&6
14373 if test -n "$CC"; then
14374 ac_cv_prog_CC="$CC" # Let the user override the test.
14376 ac_prog_rejected=no
14377 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14378 for as_dir in $PATH
14381 test -z "$as_dir" && as_dir=.
14382 for ac_exec_ext in '' $ac_executable_extensions; do
14383 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14384 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
14385 ac_prog_rejected=yes
14389 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14396 if test $ac_prog_rejected = yes; then
14397 # We found a bogon in the path, so make sure we never use it.
14398 set dummy $ac_cv_prog_CC
14400 if test $# != 0; then
14401 # We chose a different compiler from the bogus one.
14402 # However, it has the same basename, so the bogon will be chosen
14403 # first if we set CC to just the basename; use the full file name.
14405 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
14411 if test -n "$CC"; then
14412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
14413 $as_echo "$CC" >&6; }
14415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14416 $as_echo "no" >&6; }
14421 if test -z "$CC"; then
14422 if test -n "$ac_tool_prefix"; then
14423 for ac_prog in cl.exe
14425 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
14426 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
14427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14428 $as_echo_n "checking for $ac_word... " >&6; }
14429 if ${ac_cv_prog_CC+:} false; then :
14430 $as_echo_n "(cached) " >&6
14432 if test -n "$CC"; then
14433 ac_cv_prog_CC="$CC" # Let the user override the test.
14435 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14436 for as_dir in $PATH
14439 test -z "$as_dir" && as_dir=.
14440 for ac_exec_ext in '' $ac_executable_extensions; do
14441 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14442 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
14443 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14453 if test -n "$CC"; then
14454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
14455 $as_echo "$CC" >&6; }
14457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14458 $as_echo "no" >&6; }
14462 test -n "$CC" && break
14465 if test -z "$CC"; then
14467 for ac_prog in cl.exe
14469 # Extract the first word of "$ac_prog", so it can be a program name with args.
14470 set dummy $ac_prog; ac_word=$2
14471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14472 $as_echo_n "checking for $ac_word... " >&6; }
14473 if ${ac_cv_prog_ac_ct_CC+:} false; then :
14474 $as_echo_n "(cached) " >&6
14476 if test -n "$ac_ct_CC"; then
14477 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
14479 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14480 for as_dir in $PATH
14483 test -z "$as_dir" && as_dir=.
14484 for ac_exec_ext in '' $ac_executable_extensions; do
14485 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14486 ac_cv_prog_ac_ct_CC="$ac_prog"
14487 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14496 ac_ct_CC=$ac_cv_prog_ac_ct_CC
14497 if test -n "$ac_ct_CC"; then
14498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
14499 $as_echo "$ac_ct_CC" >&6; }
14501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14502 $as_echo "no" >&6; }
14506 test -n "$ac_ct_CC" && break
14509 if test "x$ac_ct_CC" = x; then
14512 case $cross_compiling:$ac_tool_warned in
14514 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14515 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14516 ac_tool_warned=yes ;;
14525 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14526 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14527 as_fn_error $? "no acceptable C compiler found in \$PATH
14528 See \`config.log' for more details" "$LINENO" 5; }
14530 # Provide some information about the compiler.
14531 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
14534 for ac_option in --version -v -V -qversion; do
14535 { { ac_try="$ac_compiler $ac_option >&5"
14536 case "(($ac_try" in
14537 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14538 *) ac_try_echo=$ac_try;;
14540 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
14541 $as_echo "$ac_try_echo"; } >&5
14542 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
14544 if test -s conftest.err; then
14546 ... rest of stderr output deleted ...
14547 10q' conftest.err >conftest.er1
14548 cat conftest.er1 >&5
14550 rm -f conftest.er1 conftest.err
14551 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14552 test $ac_status = 0; }
14555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
14556 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
14557 if ${ac_cv_c_compiler_gnu+:} false; then :
14558 $as_echo_n "(cached) " >&6
14560 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14561 /* end confdefs.h. */
14574 if ac_fn_c_try_compile "$LINENO"; then :
14575 ac_compiler_gnu=yes
14579 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14580 ac_cv_c_compiler_gnu=$ac_compiler_gnu
14583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
14584 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
14585 if test $ac_compiler_gnu = yes; then
14590 ac_test_CFLAGS=${CFLAGS+set}
14591 ac_save_CFLAGS=$CFLAGS
14592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
14593 $as_echo_n "checking whether $CC accepts -g... " >&6; }
14594 if ${ac_cv_prog_cc_g+:} false; then :
14595 $as_echo_n "(cached) " >&6
14597 ac_save_c_werror_flag=$ac_c_werror_flag
14598 ac_c_werror_flag=yes
14601 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14602 /* end confdefs.h. */
14612 if ac_fn_c_try_compile "$LINENO"; then :
14613 ac_cv_prog_cc_g=yes
14616 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14617 /* end confdefs.h. */
14627 if ac_fn_c_try_compile "$LINENO"; then :
14630 ac_c_werror_flag=$ac_save_c_werror_flag
14632 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14633 /* end confdefs.h. */
14643 if ac_fn_c_try_compile "$LINENO"; then :
14644 ac_cv_prog_cc_g=yes
14646 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14648 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14650 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14651 ac_c_werror_flag=$ac_save_c_werror_flag
14653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
14654 $as_echo "$ac_cv_prog_cc_g" >&6; }
14655 if test "$ac_test_CFLAGS" = set; then
14656 CFLAGS=$ac_save_CFLAGS
14657 elif test $ac_cv_prog_cc_g = yes; then
14658 if test "$GCC" = yes; then
14664 if test "$GCC" = yes; then
14670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
14671 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
14672 if ${ac_cv_prog_cc_c89+:} false; then :
14673 $as_echo_n "(cached) " >&6
14675 ac_cv_prog_cc_c89=no
14677 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14678 /* end confdefs.h. */
14679 #include <stdarg.h>
14682 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
14683 struct buf { int x; };
14684 FILE * (*rcsopen) (struct buf *, struct stat *, int);
14685 static char *e (p, i)
14691 static char *f (char * (*g) (char **, int), char **p, ...)
14696 s = g (p, va_arg (v,int));
14701 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
14702 function prototypes and stuff, but not '\xHH' hex character constants.
14703 These don't provoke an error unfortunately, instead are silently treated
14704 as 'x'. The following induces an error, until -std is added to get
14705 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
14706 array size at least. It's necessary to write '\x00'==0 to get something
14707 that's true only with -std. */
14708 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
14710 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
14711 inside strings and character constants. */
14713 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
14715 int test (int i, double x);
14716 struct s1 {int (*f) (int a);};
14717 struct s2 {int (*f) (double a);};
14718 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
14724 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
14729 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
14730 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
14732 CC="$ac_save_CC $ac_arg"
14733 if ac_fn_c_try_compile "$LINENO"; then :
14734 ac_cv_prog_cc_c89=$ac_arg
14736 rm -f core conftest.err conftest.$ac_objext
14737 test "x$ac_cv_prog_cc_c89" != "xno" && break
14739 rm -f conftest.$ac_ext
14744 case "x$ac_cv_prog_cc_c89" in
14746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
14747 $as_echo "none needed" >&6; } ;;
14749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
14750 $as_echo "unsupported" >&6; } ;;
14752 CC="$CC $ac_cv_prog_cc_c89"
14753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
14754 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
14756 if test "x$ac_cv_prog_cc_c89" != xno; then :
14761 ac_cpp='$CPP $CPPFLAGS'
14762 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14763 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14764 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14767 ac_cpp='$CPP $CPPFLAGS'
14768 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14769 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14770 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
14772 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
14773 if ${am_cv_prog_cc_c_o+:} false; then :
14774 $as_echo_n "(cached) " >&6
14776 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14777 /* end confdefs.h. */
14787 # Make sure it works both with $CC and with simple cc.
14788 # Following AC_PROG_CC_C_O, we do the test twice because some
14789 # compilers refuse to overwrite an existing .o file with -o,
14790 # though they will create one.
14791 am_cv_prog_cc_c_o=yes
14792 for am_i in 1 2; do
14793 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
14794 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
14796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14797 (exit $ac_status); } \
14798 && test -f conftest2.$ac_objext; then
14801 am_cv_prog_cc_c_o=no
14805 rm -f core conftest*
14808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
14809 $as_echo "$am_cv_prog_cc_c_o" >&6; }
14810 if test "$am_cv_prog_cc_c_o" != yes; then
14811 # Losing compiler, so override with the script.
14812 # FIXME: It is wrong to rewrite CC.
14813 # But if we don't then we get into trouble of one sort or another.
14814 # A longer-term fix would be to have automake use am__CC in this case,
14815 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
14816 CC="$am_aux_dir/compile $CC"
14819 ac_cpp='$CPP $CPPFLAGS'
14820 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14821 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14822 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14825 depcc="$CC" am_compiler_list=
14827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
14828 $as_echo_n "checking dependency style of $depcc... " >&6; }
14829 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
14830 $as_echo_n "(cached) " >&6
14832 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
14833 # We make a subdir and do the tests there. Otherwise we can end up
14834 # making bogus files that we don't know about and never remove. For
14835 # instance it was reported that on HP-UX the gcc test will end up
14836 # making a dummy file named 'D' -- because '-MD' means "put the output
14838 rm -rf conftest.dir
14840 # Copy depcomp to subdir because otherwise we won't find it if we're
14841 # using a relative directory.
14842 cp "$am_depcomp" conftest.dir
14844 # We will build objects and dependencies in a subdirectory because
14845 # it helps to detect inapplicable dependency modes. For instance
14846 # both Tru64's cc and ICC support -MD to output dependencies as a
14847 # side effect of compilation, but ICC will put the dependencies in
14848 # the current directory while Tru64 will put them in the object
14852 am_cv_CC_dependencies_compiler_type=none
14853 if test "$am_compiler_list" = ""; then
14854 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
14856 am__universal=false
14857 case " $depcc " in #(
14858 *\ -arch\ *\ -arch\ *) am__universal=true ;;
14861 for depmode in $am_compiler_list; do
14862 # Setup a source with many dependencies, because some compilers
14863 # like to wrap large dependency lists on column 80 (with \), and
14864 # we should not choose a depcomp mode which is confused by this.
14866 # We need to recreate these files for each test, as the compiler may
14867 # overwrite some of them when testing with obscure command lines.
14868 # This happens at least with the AIX C compiler.
14870 for i in 1 2 3 4 5 6; do
14871 echo '#include "conftst'$i'.h"' >> sub/conftest.c
14872 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
14873 # Solaris 10 /bin/sh.
14874 echo '/* dummy */' > sub/conftst$i.h
14876 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
14878 # We check with '-c' and '-o' for the sake of the "dashmstdout"
14879 # mode. It turns out that the SunPro C++ compiler does not properly
14880 # handle '-M -o', and we need to detect this. Also, some Intel
14881 # versions had trouble with output in subdirs.
14882 am__obj=sub/conftest.${OBJEXT-o}
14883 am__minus_obj="-o $am__obj"
14886 # This depmode causes a compiler race in universal mode.
14887 test "$am__universal" = false || continue
14890 # After this tag, mechanisms are not by side-effect, so they'll
14891 # only be used when explicitly requested.
14892 if test "x$enable_dependency_tracking" = xyes; then
14898 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
14899 # This compiler won't grok '-c -o', but also, the minuso test has
14900 # not run yet. These depmodes are late enough in the game, and
14901 # so weak that their functioning should not be impacted.
14902 am__obj=conftest.${OBJEXT-o}
14907 if depmode=$depmode \
14908 source=sub/conftest.c object=$am__obj \
14909 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
14910 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
14911 >/dev/null 2>conftest.err &&
14912 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
14913 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
14914 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
14915 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
14916 # icc doesn't choke on unknown options, it will just issue warnings
14917 # or remarks (even with -Werror). So we grep stderr for any message
14918 # that says an option was ignored or not supported.
14919 # When given -MP, icc 7.0 and 7.1 complain thusly:
14920 # icc: Command line warning: ignoring option '-M'; no argument required
14921 # The diagnosis changed in icc 8.0:
14922 # icc: Command line remark: option '-MP' not supported
14923 if (grep 'ignoring option' conftest.err ||
14924 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
14925 am_cv_CC_dependencies_compiler_type=$depmode
14932 rm -rf conftest.dir
14934 am_cv_CC_dependencies_compiler_type=none
14938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
14939 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
14940 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
14943 test "x$enable_dependency_tracking" != xno \
14944 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
14945 am__fastdepCC_TRUE=
14946 am__fastdepCC_FALSE='#'
14948 am__fastdepCC_TRUE='#'
14949 am__fastdepCC_FALSE=
14955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Minix Amsterdam compiler" >&5
14956 $as_echo_n "checking for Minix Amsterdam compiler... " >&6; }
14957 if ${gl_cv_c_amsterdam_compiler+:} false; then :
14958 $as_echo_n "(cached) " >&6
14961 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14962 /* end confdefs.h. */
14969 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14970 $EGREP "Amsterdam" >/dev/null 2>&1; then :
14971 gl_cv_c_amsterdam_compiler=yes
14973 gl_cv_c_amsterdam_compiler=no
14979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_c_amsterdam_compiler" >&5
14980 $as_echo "$gl_cv_c_amsterdam_compiler" >&6; }
14981 if test -z "$AR"; then
14982 if test $gl_cv_c_amsterdam_compiler = yes; then
14984 if test -z "$ARFLAGS"; then
14988 if test -n "$ac_tool_prefix"; then
14989 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
14990 set dummy ${ac_tool_prefix}ar; ac_word=$2
14991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14992 $as_echo_n "checking for $ac_word... " >&6; }
14993 if ${ac_cv_prog_AR+:} false; then :
14994 $as_echo_n "(cached) " >&6
14996 if test -n "$AR"; then
14997 ac_cv_prog_AR="$AR" # Let the user override the test.
14999 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15000 for as_dir in $PATH
15003 test -z "$as_dir" && as_dir=.
15004 for ac_exec_ext in '' $ac_executable_extensions; do
15005 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15006 ac_cv_prog_AR="${ac_tool_prefix}ar"
15007 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15017 if test -n "$AR"; then
15018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
15019 $as_echo "$AR" >&6; }
15021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15022 $as_echo "no" >&6; }
15027 if test -z "$ac_cv_prog_AR"; then
15029 # Extract the first word of "ar", so it can be a program name with args.
15030 set dummy ar; ac_word=$2
15031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15032 $as_echo_n "checking for $ac_word... " >&6; }
15033 if ${ac_cv_prog_ac_ct_AR+:} false; then :
15034 $as_echo_n "(cached) " >&6
15036 if test -n "$ac_ct_AR"; then
15037 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
15039 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15040 for as_dir in $PATH
15043 test -z "$as_dir" && as_dir=.
15044 for ac_exec_ext in '' $ac_executable_extensions; do
15045 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15046 ac_cv_prog_ac_ct_AR="ar"
15047 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15056 ac_ct_AR=$ac_cv_prog_ac_ct_AR
15057 if test -n "$ac_ct_AR"; then
15058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
15059 $as_echo "$ac_ct_AR" >&6; }
15061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15062 $as_echo "no" >&6; }
15065 if test "x$ac_ct_AR" = x; then
15068 case $cross_compiling:$ac_tool_warned in
15070 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
15071 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
15072 ac_tool_warned=yes ;;
15077 AR="$ac_cv_prog_AR"
15080 if test -z "$ARFLAGS"; then
15085 if test -z "$ARFLAGS"; then
15091 if test -z "$RANLIB"; then
15092 if test $gl_cv_c_amsterdam_compiler = yes; then
15095 if test -n "$ac_tool_prefix"; then
15096 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
15097 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
15098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15099 $as_echo_n "checking for $ac_word... " >&6; }
15100 if ${ac_cv_prog_RANLIB+:} false; then :
15101 $as_echo_n "(cached) " >&6
15103 if test -n "$RANLIB"; then
15104 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
15106 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15107 for as_dir in $PATH
15110 test -z "$as_dir" && as_dir=.
15111 for ac_exec_ext in '' $ac_executable_extensions; do
15112 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15113 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
15114 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15123 RANLIB=$ac_cv_prog_RANLIB
15124 if test -n "$RANLIB"; then
15125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
15126 $as_echo "$RANLIB" >&6; }
15128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15129 $as_echo "no" >&6; }
15134 if test -z "$ac_cv_prog_RANLIB"; then
15135 ac_ct_RANLIB=$RANLIB
15136 # Extract the first word of "ranlib", so it can be a program name with args.
15137 set dummy ranlib; ac_word=$2
15138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15139 $as_echo_n "checking for $ac_word... " >&6; }
15140 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
15141 $as_echo_n "(cached) " >&6
15143 if test -n "$ac_ct_RANLIB"; then
15144 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
15146 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15147 for as_dir in $PATH
15150 test -z "$as_dir" && as_dir=.
15151 for ac_exec_ext in '' $ac_executable_extensions; do
15152 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15153 ac_cv_prog_ac_ct_RANLIB="ranlib"
15154 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15163 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
15164 if test -n "$ac_ct_RANLIB"; then
15165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
15166 $as_echo "$ac_ct_RANLIB" >&6; }
15168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15169 $as_echo "no" >&6; }
15172 if test "x$ac_ct_RANLIB" = x; then
15175 case $cross_compiling:$ac_tool_warned in
15177 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
15178 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
15179 ac_tool_warned=yes ;;
15181 RANLIB=$ac_ct_RANLIB
15184 RANLIB="$ac_cv_prog_RANLIB"
15197 # Check whether --enable-largefile was given.
15198 if test "${enable_largefile+set}" = set; then :
15199 enableval=$enable_largefile;
15202 if test "$enable_largefile" != no; then
15204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
15205 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
15206 if ${ac_cv_sys_largefile_CC+:} false; then :
15207 $as_echo_n "(cached) " >&6
15209 ac_cv_sys_largefile_CC=no
15210 if test "$GCC" != yes; then
15213 # IRIX 6.2 and later do not support large files by default,
15214 # so use the C compiler's -n32 option if that helps.
15215 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15216 /* end confdefs.h. */
15217 #include <sys/types.h>
15218 /* Check that off_t can represent 2**63 - 1 correctly.
15219 We can't simply define LARGE_OFF_T to be 9223372036854775807,
15220 since some C++ compilers masquerading as C compilers
15221 incorrectly reject 9223372036854775807. */
15222 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
15223 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
15224 && LARGE_OFF_T % 2147483647 == 1)
15234 if ac_fn_c_try_compile "$LINENO"; then :
15237 rm -f core conftest.err conftest.$ac_objext
15239 if ac_fn_c_try_compile "$LINENO"; then :
15240 ac_cv_sys_largefile_CC=' -n32'; break
15242 rm -f core conftest.err conftest.$ac_objext
15246 rm -f conftest.$ac_ext
15249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
15250 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
15251 if test "$ac_cv_sys_largefile_CC" != no; then
15252 CC=$CC$ac_cv_sys_largefile_CC
15255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
15256 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
15257 if ${ac_cv_sys_file_offset_bits+:} false; then :
15258 $as_echo_n "(cached) " >&6
15261 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15262 /* end confdefs.h. */
15263 #include <sys/types.h>
15264 /* Check that off_t can represent 2**63 - 1 correctly.
15265 We can't simply define LARGE_OFF_T to be 9223372036854775807,
15266 since some C++ compilers masquerading as C compilers
15267 incorrectly reject 9223372036854775807. */
15268 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
15269 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
15270 && LARGE_OFF_T % 2147483647 == 1)
15280 if ac_fn_c_try_compile "$LINENO"; then :
15281 ac_cv_sys_file_offset_bits=no; break
15283 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15284 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15285 /* end confdefs.h. */
15286 #define _FILE_OFFSET_BITS 64
15287 #include <sys/types.h>
15288 /* Check that off_t can represent 2**63 - 1 correctly.
15289 We can't simply define LARGE_OFF_T to be 9223372036854775807,
15290 since some C++ compilers masquerading as C compilers
15291 incorrectly reject 9223372036854775807. */
15292 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
15293 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
15294 && LARGE_OFF_T % 2147483647 == 1)
15304 if ac_fn_c_try_compile "$LINENO"; then :
15305 ac_cv_sys_file_offset_bits=64; break
15307 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15308 ac_cv_sys_file_offset_bits=unknown
15312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
15313 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
15314 case $ac_cv_sys_file_offset_bits in #(
15317 cat >>confdefs.h <<_ACEOF
15318 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
15323 if test $ac_cv_sys_file_offset_bits = unknown; then
15324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
15325 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
15326 if ${ac_cv_sys_large_files+:} false; then :
15327 $as_echo_n "(cached) " >&6
15330 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15331 /* end confdefs.h. */
15332 #include <sys/types.h>
15333 /* Check that off_t can represent 2**63 - 1 correctly.
15334 We can't simply define LARGE_OFF_T to be 9223372036854775807,
15335 since some C++ compilers masquerading as C compilers
15336 incorrectly reject 9223372036854775807. */
15337 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
15338 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
15339 && LARGE_OFF_T % 2147483647 == 1)
15349 if ac_fn_c_try_compile "$LINENO"; then :
15350 ac_cv_sys_large_files=no; break
15352 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15353 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15354 /* end confdefs.h. */
15355 #define _LARGE_FILES 1
15356 #include <sys/types.h>
15357 /* Check that off_t can represent 2**63 - 1 correctly.
15358 We can't simply define LARGE_OFF_T to be 9223372036854775807,
15359 since some C++ compilers masquerading as C compilers
15360 incorrectly reject 9223372036854775807. */
15361 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
15362 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
15363 && LARGE_OFF_T % 2147483647 == 1)
15373 if ac_fn_c_try_compile "$LINENO"; then :
15374 ac_cv_sys_large_files=1; break
15376 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15377 ac_cv_sys_large_files=unknown
15381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
15382 $as_echo "$ac_cv_sys_large_files" >&6; }
15383 case $ac_cv_sys_large_files in #(
15386 cat >>confdefs.h <<_ACEOF
15387 #define _LARGE_FILES $ac_cv_sys_large_files
15395 $as_echo "#define _DARWIN_USE_64_BIT_INODE 1" >>confdefs.h
15399 case $ac_cv_prog_cc_stdc in #(
15401 ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;; #(
15403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
15404 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
15405 if ${ac_cv_prog_cc_c99+:} false; then :
15406 $as_echo_n "(cached) " >&6
15408 ac_cv_prog_cc_c99=no
15410 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15411 /* end confdefs.h. */
15412 #include <stdarg.h>
15413 #include <stdbool.h>
15414 #include <stdlib.h>
15418 // Check varargs macros. These examples are taken from C99 6.10.3.5.
15419 #define debug(...) fprintf (stderr, __VA_ARGS__)
15420 #define showlist(...) puts (#__VA_ARGS__)
15421 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
15423 test_varargs_macros (void)
15428 debug ("X = %d\n", x);
15429 showlist (The first, second, and third items.);
15430 report (x>y, "x is %d but y is %d", x, y);
15433 // Check long long types.
15434 #define BIG64 18446744073709551615ull
15435 #define BIG32 4294967295ul
15436 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
15438 your preprocessor is broken;
15442 your preprocessor is broken;
15444 static long long int bignum = -9223372036854775807LL;
15445 static unsigned long long int ubignum = BIG64;
15447 struct incomplete_array
15453 struct named_init {
15455 const wchar_t *name;
15459 typedef const char *ccp;
15462 test_restrict (ccp restrict text)
15464 // See if C++-style comments work.
15465 // Iterate through items via the restricted pointer.
15466 // Also check for declarations in for loops.
15467 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
15472 // Check varargs and va_copy.
15474 test_varargs (const char *format, ...)
15477 va_start (args, format);
15479 va_copy (args_copy, args);
15489 case 's': // string
15490 str = va_arg (args_copy, const char *);
15493 number = va_arg (args_copy, int);
15496 fnumber = va_arg (args_copy, double);
15502 va_end (args_copy);
15511 _Bool success = false;
15514 if (test_restrict ("String literal") == 0)
15516 char *restrict newvar = "Another string";
15519 test_varargs ("s, d' f .", "string", 65, 34.234);
15520 test_varargs_macros ();
15522 // Check flexible array members.
15523 struct incomplete_array *ia =
15524 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
15526 for (int i = 0; i < ia->datasize; ++i)
15527 ia->data[i] = i * 1.234;
15529 // Check named initializers.
15530 struct named_init ni = {
15532 .name = L"Test wide string",
15533 .average = 543.34343,
15538 int dynamic_array[ni.number];
15539 dynamic_array[ni.number - 1] = 543;
15541 // work around unused variable warnings
15542 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
15543 || dynamic_array[ni.number - 1] != 543);
15549 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
15551 CC="$ac_save_CC $ac_arg"
15552 if ac_fn_c_try_compile "$LINENO"; then :
15553 ac_cv_prog_cc_c99=$ac_arg
15555 rm -f core conftest.err conftest.$ac_objext
15556 test "x$ac_cv_prog_cc_c99" != "xno" && break
15558 rm -f conftest.$ac_ext
15563 case "x$ac_cv_prog_cc_c99" in
15565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
15566 $as_echo "none needed" >&6; } ;;
15568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
15569 $as_echo "unsupported" >&6; } ;;
15571 CC="$CC $ac_cv_prog_cc_c99"
15572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
15573 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
15575 if test "x$ac_cv_prog_cc_c99" != xno; then :
15576 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
15578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
15579 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
15580 if ${ac_cv_prog_cc_c89+:} false; then :
15581 $as_echo_n "(cached) " >&6
15583 ac_cv_prog_cc_c89=no
15585 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15586 /* end confdefs.h. */
15587 #include <stdarg.h>
15590 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
15591 struct buf { int x; };
15592 FILE * (*rcsopen) (struct buf *, struct stat *, int);
15593 static char *e (p, i)
15599 static char *f (char * (*g) (char **, int), char **p, ...)
15604 s = g (p, va_arg (v,int));
15609 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
15610 function prototypes and stuff, but not '\xHH' hex character constants.
15611 These don't provoke an error unfortunately, instead are silently treated
15612 as 'x'. The following induces an error, until -std is added to get
15613 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
15614 array size at least. It's necessary to write '\x00'==0 to get something
15615 that's true only with -std. */
15616 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
15618 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
15619 inside strings and character constants. */
15621 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
15623 int test (int i, double x);
15624 struct s1 {int (*f) (int a);};
15625 struct s2 {int (*f) (double a);};
15626 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
15632 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
15637 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
15638 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
15640 CC="$ac_save_CC $ac_arg"
15641 if ac_fn_c_try_compile "$LINENO"; then :
15642 ac_cv_prog_cc_c89=$ac_arg
15644 rm -f core conftest.err conftest.$ac_objext
15645 test "x$ac_cv_prog_cc_c89" != "xno" && break
15647 rm -f conftest.$ac_ext
15652 case "x$ac_cv_prog_cc_c89" in
15654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
15655 $as_echo "none needed" >&6; } ;;
15657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
15658 $as_echo "unsupported" >&6; } ;;
15660 CC="$CC $ac_cv_prog_cc_c89"
15661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
15662 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
15664 if test "x$ac_cv_prog_cc_c89" != xno; then :
15665 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
15667 ac_cv_prog_cc_stdc=no
15673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO Standard C" >&5
15674 $as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; }
15675 if ${ac_cv_prog_cc_stdc+:} false; then :
15676 $as_echo_n "(cached) " >&6
15679 case $ac_cv_prog_cc_stdc in #(
15681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
15682 $as_echo "unsupported" >&6; } ;; #(
15684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
15685 $as_echo "none needed" >&6; } ;; #(
15687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5
15688 $as_echo "$ac_cv_prog_cc_stdc" >&6; } ;;
15696 # Check whether --enable-threads was given.
15697 if test "${enable_threads+set}" = set; then :
15698 enableval=$enable_threads; gl_use_threads=$enableval
15700 if test -n "$gl_use_threads_default"; then
15701 gl_use_threads="$gl_use_threads_default"
15704 osf*) gl_use_threads=no ;;
15707 1.[0-5].*) gl_use_threads=no ;;
15708 *) gl_use_threads=yes ;;
15711 *) gl_use_threads=yes ;;
15717 if test "$gl_use_threads" = yes || test "$gl_use_threads" = posix; then
15718 # For using <pthread.h>:
15721 # On OSF/1, the compiler needs the flag -D_REENTRANT so that it
15722 # groks <pthread.h>. cc also understands the flag -pthread, but
15723 # we don't use it because 1. gcc-2.95 doesn't understand -pthread,
15724 # 2. putting a flag into CPPFLAGS that has an effect on the linker
15725 # causes the AC_LINK_IFELSE test below to succeed unexpectedly,
15726 # leading to wrong values of LIBTHREAD and LTLIBTHREAD.
15727 CPPFLAGS="$CPPFLAGS -D_REENTRANT"
15730 # Some systems optimize for single-threaded programs by default, and
15731 # need special flags to disable these optimizations. For example, the
15732 # definition of 'errno' in <errno.h>.
15734 aix* | freebsd*) CPPFLAGS="$CPPFLAGS -D_THREAD_SAFE" ;;
15735 solaris*) CPPFLAGS="$CPPFLAGS -D_REENTRANT" ;;
15742 # Code from module absolute-header:
15743 # Code from module alloca:
15744 # Code from module alloca-opt:
15745 # Code from module areadlink-with-size:
15746 # Code from module argp:
15747 # Code from module at-internal:
15748 # Code from module bitrotate:
15749 # Code from module btowc:
15750 # Code from module canonicalize:
15751 # Code from module canonicalize-lgpl:
15752 # Code from module chdir:
15753 # Code from module chdir-long:
15754 # Code from module clock-time:
15755 # Code from module cloexec:
15756 # Code from module close:
15757 # Code from module closedir:
15758 # Code from module configmake:
15759 # Code from module d-ino:
15760 # Code from module d-type:
15761 # Code from module dirent:
15762 # Code from module dirfd:
15763 # Code from module dirname:
15764 # Code from module dirname-lgpl:
15765 # Code from module dosname:
15766 # Code from module double-slash-root:
15767 # Code from module dup:
15768 # Code from module dup2:
15769 # Code from module environ:
15770 # Code from module errno:
15771 # Code from module error:
15772 # Code from module exitfail:
15773 # Code from module extensions:
15775 # Code from module extern-inline:
15776 # Code from module fchdir:
15777 # Code from module fcntl:
15778 # Code from module fcntl-h:
15779 # Code from module fd-hook:
15780 # Code from module fdopendir:
15781 # Code from module file-set:
15782 # Code from module filename:
15783 # Code from module filenamecat-lgpl:
15784 # Code from module float:
15785 # Code from module flock:
15786 # Code from module fnmatch:
15787 # Code from module fnmatch-gnu:
15788 # Code from module fstat:
15789 # Code from module fstatat:
15790 # Code from module futimens:
15791 # Code from module getcwd:
15792 # Code from module getcwd-lgpl:
15793 # Code from module getdelim:
15794 # Code from module getdtablesize:
15795 # Code from module getline:
15796 # Code from module getlogin_r:
15797 # Code from module getopt-gnu:
15798 # Code from module getopt-posix:
15799 # Code from module gettext:
15800 # Code from module gettext-h:
15801 # Code from module gettime:
15802 # Code from module gettimeofday:
15803 # Code from module gitlog-to-changelog:
15804 # Code from module glob:
15805 # Code from module gnupload:
15806 # Code from module hash:
15807 # Code from module hash-pjw:
15808 # Code from module hash-triple:
15809 # Code from module havelib:
15810 # Code from module idpriv-drop:
15811 # Code from module idpriv-droptemp:
15812 # Code from module include_next:
15813 # Code from module intprops:
15814 # Code from module ioctl:
15815 # Code from module langinfo:
15816 # Code from module largefile:
15818 # Code from module lib-ignore:
15819 # Code from module localcharset:
15820 # Code from module locale:
15821 # Code from module localeconv:
15822 # Code from module lock:
15823 # Code from module lstat:
15824 # Code from module malloc-gnu:
15825 # Code from module malloc-posix:
15826 # Code from module malloca:
15827 # Code from module mbrtowc:
15828 # Code from module mbsinit:
15829 # Code from module mbsrtowcs:
15830 # Code from module mbtowc:
15831 # Code from module memchr:
15832 # Code from module memmem:
15833 # Code from module memmem-simple:
15834 # Code from module mempcpy:
15835 # Code from module memrchr:
15836 # Code from module minmax:
15837 # Code from module mkdtemp:
15838 # Code from module mkstemp:
15839 # Code from module msvc-inval:
15840 # Code from module msvc-nothrow:
15841 # Code from module multiarch:
15842 # Code from module nanosleep:
15843 # Code from module nl_langinfo:
15844 # Code from module nocrash:
15845 # Code from module nonblocking:
15846 # Code from module open:
15847 # Code from module openat:
15848 # Code from module openat-die:
15849 # Code from module openat-h:
15850 # Code from module opendir:
15851 # Code from module pathmax:
15852 # Code from module raise:
15853 # Code from module rawmemchr:
15854 # Code from module readdir:
15855 # Code from module readlink:
15856 # Code from module realloc-posix:
15857 # Code from module regex:
15858 # Code from module rename:
15859 # Code from module rewinddir:
15860 # Code from module rmdir:
15861 # Code from module same:
15862 # Code from module same-inode:
15863 # Code from module save-cwd:
15864 # Code from module secure_getenv:
15865 # Code from module select:
15866 # Code from module setenv:
15867 # Code from module sigaction:
15868 # Code from module signal:
15869 # Code from module signal-h:
15870 # Code from module sigprocmask:
15871 # Code from module size_max:
15872 # Code from module sleep:
15873 # Code from module snippet/_Noreturn:
15874 # Code from module snippet/arg-nonnull:
15875 # Code from module snippet/c++defs:
15876 # Code from module snippet/warn-on-use:
15877 # Code from module socketlib:
15878 # Code from module sockets:
15879 # Code from module socklen:
15880 # Code from module ssize_t:
15881 # Code from module stat:
15882 # Code from module stat-time:
15883 # Code from module stdalign:
15884 # Code from module stdarg:
15888 # Code from module stdbool:
15889 # Code from module stddef:
15890 # Code from module stdint:
15891 # Code from module stdio:
15892 # Code from module stdlib:
15893 # Code from module strcase:
15894 # Code from module strcasestr:
15895 # Code from module strcasestr-simple:
15896 # Code from module strchrnul:
15897 # Code from module strdup-posix:
15898 # Code from module streq:
15899 # Code from module strerror:
15900 # Code from module strerror-override:
15901 # Code from module string:
15902 # Code from module strings:
15903 # Code from module strndup:
15904 # Code from module strnlen:
15905 # Code from module strnlen1:
15906 # Code from module strsep:
15907 # Code from module sys_file:
15908 # Code from module sys_ioctl:
15909 # Code from module sys_select:
15910 # Code from module sys_socket:
15911 # Code from module sys_stat:
15912 # Code from module sys_time:
15913 # Code from module sys_types:
15914 # Code from module sys_uio:
15915 # Code from module sysexits:
15916 # Code from module tempname:
15917 # Code from module threadlib:
15921 # Code from module time:
15922 # Code from module timespec:
15923 # Code from module unistd:
15924 # Code from module unistd-safer:
15925 # Code from module unsetenv:
15926 # Code from module utimens:
15927 # Code from module vasnprintf:
15928 # Code from module vasprintf:
15929 # Code from module verify:
15930 # Code from module vsnprintf:
15931 # Code from module warnings:
15932 # Code from module wchar:
15933 # Code from module wcrtomb:
15934 # Code from module wctype-h:
15935 # Code from module xalloc:
15936 # Code from module xalloc-die:
15937 # Code from module xalloc-oversized:
15938 # Code from module xgetcwd:
15939 # Code from module xsize:
15940 # Code from module xstrndup:
15941 # Code from module xvasprintf:
15944 ac_cpp='$CPP $CPPFLAGS'
15945 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15946 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15947 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
15949 $as_echo_n "checking how to run the C preprocessor... " >&6; }
15950 # On Suns, sometimes $CPP names a directory.
15951 if test -n "$CPP" && test -d "$CPP"; then
15954 if test -z "$CPP"; then
15955 if ${ac_cv_prog_CPP+:} false; then :
15956 $as_echo_n "(cached) " >&6
15958 # Double quotes because CPP needs to be expanded
15959 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
15961 ac_preproc_ok=false
15962 for ac_c_preproc_warn_flag in '' yes
15964 # Use a header file that comes with gcc, so configuring glibc
15965 # with a fresh cross-compiler works.
15966 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15967 # <limits.h> exists even on freestanding compilers.
15968 # On the NeXT, cc -E runs the code through the compiler's parser,
15969 # not just through cpp. "Syntax error" is here to catch this case.
15970 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15971 /* end confdefs.h. */
15973 # include <limits.h>
15975 # include <assert.h>
15979 if ac_fn_c_try_cpp "$LINENO"; then :
15982 # Broken: fails on valid input.
15985 rm -f conftest.err conftest.i conftest.$ac_ext
15987 # OK, works on sane cases. Now check whether nonexistent headers
15988 # can be detected and how.
15989 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15990 /* end confdefs.h. */
15991 #include <ac_nonexistent.h>
15993 if ac_fn_c_try_cpp "$LINENO"; then :
15994 # Broken: success on invalid input.
15997 # Passes both tests.
16001 rm -f conftest.err conftest.i conftest.$ac_ext
16004 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
16005 rm -f conftest.i conftest.err conftest.$ac_ext
16006 if $ac_preproc_ok; then :
16011 ac_cv_prog_CPP=$CPP
16014 CPP=$ac_cv_prog_CPP
16016 ac_cv_prog_CPP=$CPP
16018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
16019 $as_echo "$CPP" >&6; }
16020 ac_preproc_ok=false
16021 for ac_c_preproc_warn_flag in '' yes
16023 # Use a header file that comes with gcc, so configuring glibc
16024 # with a fresh cross-compiler works.
16025 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16026 # <limits.h> exists even on freestanding compilers.
16027 # On the NeXT, cc -E runs the code through the compiler's parser,
16028 # not just through cpp. "Syntax error" is here to catch this case.
16029 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16030 /* end confdefs.h. */
16032 # include <limits.h>
16034 # include <assert.h>
16038 if ac_fn_c_try_cpp "$LINENO"; then :
16041 # Broken: fails on valid input.
16044 rm -f conftest.err conftest.i conftest.$ac_ext
16046 # OK, works on sane cases. Now check whether nonexistent headers
16047 # can be detected and how.
16048 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16049 /* end confdefs.h. */
16050 #include <ac_nonexistent.h>
16052 if ac_fn_c_try_cpp "$LINENO"; then :
16053 # Broken: success on invalid input.
16056 # Passes both tests.
16060 rm -f conftest.err conftest.i conftest.$ac_ext
16063 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
16064 rm -f conftest.i conftest.err conftest.$ac_ext
16065 if $ac_preproc_ok; then :
16068 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16069 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16070 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
16071 See \`config.log' for more details" "$LINENO" 5; }
16075 ac_cpp='$CPP $CPPFLAGS'
16076 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16077 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16078 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16080 CFLAGS="$CFLAGS -Wall"
16083 CFLAGS="$CFLAGS -YPOSIX"
16086 if test "$GCC" = yes
16088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Werror -Wunknown-warning-option" >&5
16089 $as_echo_n "checking whether C compiler handles -Werror -Wunknown-warning-option... " >&6; }
16090 if ${gl_cv_warn_c__Werror__Wunknown_warning_option+:} false; then :
16091 $as_echo_n "(cached) " >&6
16094 gl_save_compiler_FLAGS="$CFLAGS"
16095 as_fn_append CFLAGS " $gl_unknown_warnings_are_errors -Werror -Wunknown-warning-option"
16096 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16097 /* end confdefs.h. */
16107 if ac_fn_c_try_link "$LINENO"; then :
16108 gl_cv_warn_c__Werror__Wunknown_warning_option=yes
16110 gl_cv_warn_c__Werror__Wunknown_warning_option=no
16112 rm -f core conftest.err conftest.$ac_objext \
16113 conftest$ac_exeext conftest.$ac_ext
16114 CFLAGS="$gl_save_compiler_FLAGS"
16117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Werror__Wunknown_warning_option" >&5
16118 $as_echo "$gl_cv_warn_c__Werror__Wunknown_warning_option" >&6; }
16119 if test "x$gl_cv_warn_c__Werror__Wunknown_warning_option" = xyes; then :
16120 gl_unknown_warnings_are_errors='-Wunknown-warning-option -Werror'
16122 gl_unknown_warnings_are_errors=
16126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -W" >&5
16127 $as_echo_n "checking whether C compiler handles -W... " >&6; }
16128 if ${gl_cv_warn_c__W+:} false; then :
16129 $as_echo_n "(cached) " >&6
16132 gl_save_compiler_FLAGS="$CFLAGS"
16133 as_fn_append CFLAGS " $gl_unknown_warnings_are_errors -W"
16134 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16135 /* end confdefs.h. */
16145 if ac_fn_c_try_link "$LINENO"; then :
16146 gl_cv_warn_c__W=yes
16150 rm -f core conftest.err conftest.$ac_objext \
16151 conftest$ac_exeext conftest.$ac_ext
16152 CFLAGS="$gl_save_compiler_FLAGS"
16155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__W" >&5
16156 $as_echo "$gl_cv_warn_c__W" >&6; }
16157 if test "x$gl_cv_warn_c__W" = xyes; then :
16158 as_fn_append WARN_CFLAGS " -W"
16163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wpointer-arith" >&5
16164 $as_echo_n "checking whether C compiler handles -Wpointer-arith... " >&6; }
16165 if ${gl_cv_warn_c__Wpointer_arith+:} false; then :
16166 $as_echo_n "(cached) " >&6
16169 gl_save_compiler_FLAGS="$CFLAGS"
16170 as_fn_append CFLAGS " $gl_unknown_warnings_are_errors -Wpointer-arith"
16171 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16172 /* end confdefs.h. */
16182 if ac_fn_c_try_link "$LINENO"; then :
16183 gl_cv_warn_c__Wpointer_arith=yes
16185 gl_cv_warn_c__Wpointer_arith=no
16187 rm -f core conftest.err conftest.$ac_objext \
16188 conftest$ac_exeext conftest.$ac_ext
16189 CFLAGS="$gl_save_compiler_FLAGS"
16192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wpointer_arith" >&5
16193 $as_echo "$gl_cv_warn_c__Wpointer_arith" >&6; }
16194 if test "x$gl_cv_warn_c__Wpointer_arith" = xyes; then :
16195 as_fn_append WARN_CFLAGS " -Wpointer-arith"
16200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wwrite-strings" >&5
16201 $as_echo_n "checking whether C compiler handles -Wwrite-strings... " >&6; }
16202 if ${gl_cv_warn_c__Wwrite_strings+:} false; then :
16203 $as_echo_n "(cached) " >&6
16206 gl_save_compiler_FLAGS="$CFLAGS"
16207 as_fn_append CFLAGS " $gl_unknown_warnings_are_errors -Wwrite-strings"
16208 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16209 /* end confdefs.h. */
16219 if ac_fn_c_try_link "$LINENO"; then :
16220 gl_cv_warn_c__Wwrite_strings=yes
16222 gl_cv_warn_c__Wwrite_strings=no
16224 rm -f core conftest.err conftest.$ac_objext \
16225 conftest$ac_exeext conftest.$ac_ext
16226 CFLAGS="$gl_save_compiler_FLAGS"
16229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wwrite_strings" >&5
16230 $as_echo "$gl_cv_warn_c__Wwrite_strings" >&6; }
16231 if test "x$gl_cv_warn_c__Wwrite_strings" = xyes; then :
16232 as_fn_append WARN_CFLAGS " -Wwrite-strings"
16237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wstrict-prototypes" >&5
16238 $as_echo_n "checking whether C compiler handles -Wstrict-prototypes... " >&6; }
16239 if ${gl_cv_warn_c__Wstrict_prototypes+:} false; then :
16240 $as_echo_n "(cached) " >&6
16243 gl_save_compiler_FLAGS="$CFLAGS"
16244 as_fn_append CFLAGS " $gl_unknown_warnings_are_errors -Wstrict-prototypes"
16245 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16246 /* end confdefs.h. */
16256 if ac_fn_c_try_link "$LINENO"; then :
16257 gl_cv_warn_c__Wstrict_prototypes=yes
16259 gl_cv_warn_c__Wstrict_prototypes=no
16261 rm -f core conftest.err conftest.$ac_objext \
16262 conftest$ac_exeext conftest.$ac_ext
16263 CFLAGS="$gl_save_compiler_FLAGS"
16266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wstrict_prototypes" >&5
16267 $as_echo "$gl_cv_warn_c__Wstrict_prototypes" >&6; }
16268 if test "x$gl_cv_warn_c__Wstrict_prototypes" = xyes; then :
16269 as_fn_append WARN_CFLAGS " -Wstrict-prototypes"
16274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wshadow" >&5
16275 $as_echo_n "checking whether C compiler handles -Wshadow... " >&6; }
16276 if ${gl_cv_warn_c__Wshadow+:} false; then :
16277 $as_echo_n "(cached) " >&6
16280 gl_save_compiler_FLAGS="$CFLAGS"
16281 as_fn_append CFLAGS " $gl_unknown_warnings_are_errors -Wshadow"
16282 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16283 /* end confdefs.h. */
16293 if ac_fn_c_try_link "$LINENO"; then :
16294 gl_cv_warn_c__Wshadow=yes
16296 gl_cv_warn_c__Wshadow=no
16298 rm -f core conftest.err conftest.$ac_objext \
16299 conftest$ac_exeext conftest.$ac_ext
16300 CFLAGS="$gl_save_compiler_FLAGS"
16303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wshadow" >&5
16304 $as_echo "$gl_cv_warn_c__Wshadow" >&6; }
16305 if test "x$gl_cv_warn_c__Wshadow" = xyes; then :
16306 as_fn_append WARN_CFLAGS " -Wshadow"
16311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wformat-security" >&5
16312 $as_echo_n "checking whether C compiler handles -Wformat-security... " >&6; }
16313 if ${gl_cv_warn_c__Wformat_security+:} false; then :
16314 $as_echo_n "(cached) " >&6
16317 gl_save_compiler_FLAGS="$CFLAGS"
16318 as_fn_append CFLAGS " $gl_unknown_warnings_are_errors -Wformat-security"
16319 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16320 /* end confdefs.h. */
16330 if ac_fn_c_try_link "$LINENO"; then :
16331 gl_cv_warn_c__Wformat_security=yes
16333 gl_cv_warn_c__Wformat_security=no
16335 rm -f core conftest.err conftest.$ac_objext \
16336 conftest$ac_exeext conftest.$ac_ext
16337 CFLAGS="$gl_save_compiler_FLAGS"
16340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wformat_security" >&5
16341 $as_echo "$gl_cv_warn_c__Wformat_security" >&6; }
16342 if test "x$gl_cv_warn_c__Wformat_security" = xyes; then :
16343 as_fn_append WARN_CFLAGS " -Wformat-security"
16348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wredundant-decls" >&5
16349 $as_echo_n "checking whether C compiler handles -Wredundant-decls... " >&6; }
16350 if ${gl_cv_warn_c__Wredundant_decls+:} false; then :
16351 $as_echo_n "(cached) " >&6
16354 gl_save_compiler_FLAGS="$CFLAGS"
16355 as_fn_append CFLAGS " $gl_unknown_warnings_are_errors -Wredundant-decls"
16356 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16357 /* end confdefs.h. */
16367 if ac_fn_c_try_link "$LINENO"; then :
16368 gl_cv_warn_c__Wredundant_decls=yes
16370 gl_cv_warn_c__Wredundant_decls=no
16372 rm -f core conftest.err conftest.$ac_objext \
16373 conftest$ac_exeext conftest.$ac_ext
16374 CFLAGS="$gl_save_compiler_FLAGS"
16377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wredundant_decls" >&5
16378 $as_echo "$gl_cv_warn_c__Wredundant_decls" >&6; }
16379 if test "x$gl_cv_warn_c__Wredundant_decls" = xyes; then :
16380 as_fn_append WARN_CFLAGS " -Wredundant-decls"
16385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-missing-field-initializers" >&5
16386 $as_echo_n "checking whether C compiler handles -Wno-missing-field-initializers... " >&6; }
16387 if ${gl_cv_warn_c__Wno_missing_field_initializers+:} false; then :
16388 $as_echo_n "(cached) " >&6
16391 gl_save_compiler_FLAGS="$CFLAGS"
16392 as_fn_append CFLAGS " $gl_unknown_warnings_are_errors -Wmissing-field-initializers"
16393 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16394 /* end confdefs.h. */
16404 if ac_fn_c_try_link "$LINENO"; then :
16405 gl_cv_warn_c__Wno_missing_field_initializers=yes
16407 gl_cv_warn_c__Wno_missing_field_initializers=no
16409 rm -f core conftest.err conftest.$ac_objext \
16410 conftest$ac_exeext conftest.$ac_ext
16411 CFLAGS="$gl_save_compiler_FLAGS"
16414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_missing_field_initializers" >&5
16415 $as_echo "$gl_cv_warn_c__Wno_missing_field_initializers" >&6; }
16416 if test "x$gl_cv_warn_c__Wno_missing_field_initializers" = xyes; then :
16417 as_fn_append WARN_CFLAGS " -Wno-missing-field-initializers"
16423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
16424 $as_echo_n "checking whether ln -s works... " >&6; }
16426 if test "$LN_S" = "ln -s"; then
16427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16428 $as_echo "yes" >&6; }
16430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
16431 $as_echo "no, using $LN_S" >&6; }
16436 # Extract the first word of "$ac_prog", so it can be a program name with args.
16437 set dummy $ac_prog; ac_word=$2
16438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16439 $as_echo_n "checking for $ac_word... " >&6; }
16440 if ${ac_cv_prog_cat+:} false; then :
16441 $as_echo_n "(cached) " >&6
16443 if test -n "$cat"; then
16444 ac_cv_prog_cat="$cat" # Let the user override the test.
16446 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16447 for as_dir in $PATH
16450 test -z "$as_dir" && as_dir=.
16451 for ac_exec_ext in '' $ac_executable_extensions; do
16452 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16453 ac_cv_prog_cat="$ac_prog"
16454 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16463 cat=$ac_cv_prog_cat
16464 if test -n "$cat"; then
16465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cat" >&5
16466 $as_echo "$cat" >&6; }
16468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16469 $as_echo "no" >&6; }
16473 test -n "$cat" && break
16477 # Check whether --with-browser was given.
16478 if test "${with_browser+set}" = set; then :
16479 withval=$with_browser; if test "$withval" = yes || test "$withval" = no; then :
16480 as_fn_error $? "--with-browser requires an argument" "$LINENO" 5
16482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for browser" >&5
16483 $as_echo_n "checking for browser... " >&6; }
16484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $withval" >&5
16485 $as_echo "$withval" >&6; }
16489 for ac_prog in www-browser lynx elinks w3m
16491 # Extract the first word of "$ac_prog", so it can be a program name with args.
16492 set dummy $ac_prog; ac_word=$2
16493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16494 $as_echo_n "checking for $ac_word... " >&6; }
16495 if ${ac_cv_prog_browser+:} false; then :
16496 $as_echo_n "(cached) " >&6
16498 if test -n "$browser"; then
16499 ac_cv_prog_browser="$browser" # Let the user override the test.
16501 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16502 for as_dir in $PATH
16505 test -z "$as_dir" && as_dir=.
16506 for ac_exec_ext in '' $ac_executable_extensions; do
16507 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16508 ac_cv_prog_browser="$ac_prog"
16509 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16518 browser=$ac_cv_prog_browser
16519 if test -n "$browser"; then
16520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $browser" >&5
16521 $as_echo "$browser" >&6; }
16523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16524 $as_echo "no" >&6; }
16528 test -n "$browser" && break
16533 if test -n "$browser"; then
16535 $as_echo "#define HAVE_BROWSER 1" >>confdefs.h
16538 test -n "$browser" && browser="exec $browser"
16541 # Extract the first word of "$ac_prog", so it can be a program name with args.
16542 set dummy $ac_prog; ac_word=$2
16543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16544 $as_echo_n "checking for $ac_word... " >&6; }
16545 if ${ac_cv_prog_tr+:} false; then :
16546 $as_echo_n "(cached) " >&6
16548 if test -n "$tr"; then
16549 ac_cv_prog_tr="$tr" # Let the user override the test.
16551 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16552 for as_dir in $PATH
16555 test -z "$as_dir" && as_dir=.
16556 for ac_exec_ext in '' $ac_executable_extensions; do
16557 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16558 ac_cv_prog_tr="$ac_prog"
16559 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16569 if test -n "$tr"; then
16570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tr" >&5
16571 $as_echo "$tr" >&6; }
16573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16574 $as_echo "no" >&6; }
16578 test -n "$tr" && break
16581 for ac_prog in grep
16583 # Extract the first word of "$ac_prog", so it can be a program name with args.
16584 set dummy $ac_prog; ac_word=$2
16585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16586 $as_echo_n "checking for $ac_word... " >&6; }
16587 if ${ac_cv_prog_grep+:} false; then :
16588 $as_echo_n "(cached) " >&6
16590 if test -n "$grep"; then
16591 ac_cv_prog_grep="$grep" # Let the user override the test.
16593 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16594 for as_dir in $PATH
16597 test -z "$as_dir" && as_dir=.
16598 for ac_exec_ext in '' $ac_executable_extensions; do
16599 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16600 ac_cv_prog_grep="$ac_prog"
16601 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16610 grep=$ac_cv_prog_grep
16611 if test -n "$grep"; then
16612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $grep" >&5
16613 $as_echo "$grep" >&6; }
16615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16616 $as_echo "no" >&6; }
16620 test -n "$grep" && break
16624 # Check whether --with-pager was given.
16625 if test "${with_pager+set}" = set; then :
16626 withval=$with_pager; if test "$withval" = yes || test "$withval" = no; then :
16627 as_fn_error $? "--with-pager requires an argument" "$LINENO" 5
16629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pager" >&5
16630 $as_echo_n "checking for pager... " >&6; }
16631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $withval" >&5
16632 $as_echo "$withval" >&6; }
16636 for ac_prog in pager less more
16638 # Extract the first word of "$ac_prog", so it can be a program name with args.
16639 set dummy $ac_prog; ac_word=$2
16640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16641 $as_echo_n "checking for $ac_word... " >&6; }
16642 if ${ac_cv_prog_pager+:} false; then :
16643 $as_echo_n "(cached) " >&6
16645 if test -n "$pager"; then
16646 ac_cv_prog_pager="$pager" # Let the user override the test.
16648 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16649 for as_dir in $PATH
16652 test -z "$as_dir" && as_dir=.
16653 for ac_exec_ext in '' $ac_executable_extensions; do
16654 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16655 ac_cv_prog_pager="$ac_prog"
16656 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16665 pager=$ac_cv_prog_pager
16666 if test -n "$pager"; then
16667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pager" >&5
16668 $as_echo "$pager" >&6; }
16670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16671 $as_echo "no" >&6; }
16675 test -n "$pager" && break
16680 if test -n "$pager"; then
16682 $as_echo "#define HAVE_PAGER 1" >>confdefs.h
16686 # Define below (in list of preference) *roff macros to check for.
16687 macros="andoc an doc"
16689 # We have problems here, as different systems have different *roff
16690 # formatters and they accept different options and do different things :(
16692 # Check whether --with-nroff was given.
16693 if test "${with_nroff+set}" = set; then :
16694 withval=$with_nroff; if test "$withval" = yes || test "$withval" = no; then :
16695 as_fn_error $? "--with-nroff requires an argument" "$LINENO" 5
16697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nroff" >&5
16698 $as_echo_n "checking for nroff... " >&6; }
16699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $withval" >&5
16700 $as_echo "$withval" >&6; }
16704 for ac_prog in nroff gnroff groff
16706 # Extract the first word of "$ac_prog", so it can be a program name with args.
16707 set dummy $ac_prog; ac_word=$2
16708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16709 $as_echo_n "checking for $ac_word... " >&6; }
16710 if ${ac_cv_prog_nroff+:} false; then :
16711 $as_echo_n "(cached) " >&6
16713 if test -n "$nroff"; then
16714 ac_cv_prog_nroff="$nroff" # Let the user override the test.
16716 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16717 for as_dir in $PATH
16720 test -z "$as_dir" && as_dir=.
16721 for ac_exec_ext in '' $ac_executable_extensions; do
16722 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16723 ac_cv_prog_nroff="$ac_prog"
16724 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16733 nroff=$ac_cv_prog_nroff
16734 if test -n "$nroff"; then
16735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $nroff" >&5
16736 $as_echo "$nroff" >&6; }
16738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16739 $as_echo "no" >&6; }
16743 test -n "$nroff" && break
16748 if test -n "$nroff"; then
16750 $as_echo "#define HAVE_NROFF 1" >>confdefs.h
16753 if test -n "$nroff"
16755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether nroff is GNU nroff" >&5
16756 $as_echo_n "checking whether nroff is GNU nroff... " >&6; }
16758 if ${man_cv_prog_gnu_nroff+:} false; then :
16759 $as_echo_n "(cached) " >&6
16761 if test `$nroff <<EOF | tr -d '\n'
16766 man_cv_prog_gnu_nroff=yes
16768 man_cv_prog_gnu_nroff=no
16773 if test "$man_cv_prog_gnu_nroff" = "yes"
16776 $as_echo "#define GNU_NROFF 1" >>confdefs.h
16779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $man_cv_prog_gnu_nroff" >&5
16780 $as_echo "$man_cv_prog_gnu_nroff" >&6; }
16782 if test "$man_cv_prog_gnu_nroff" != "yes"
16784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether nroff is Heirloom nroff" >&5
16785 $as_echo_n "checking whether nroff is Heirloom nroff... " >&6; }
16787 if ${man_cv_prog_heirloom_nroff+:} false; then :
16788 $as_echo_n "(cached) " >&6
16790 man_heirloom_ext_plain=`$nroff 2>/dev/null <<EOF | tr -d '\n'
16794 man_heirloom_ext_mg=`$nroff -mg 2>/dev/null <<EOF | tr -d '\n'
16798 if test "x$man_heirloom_ext_plain" != 0 && \
16799 test "x$man_heirloom_ext_mg" != 0 && \
16800 test "x$man_heirloom_ext_plain" != "x$man_heirloom_extflag_mg"
16802 man_cv_prog_heirloom_nroff=yes
16804 man_cv_prog_heirloom_nroff=no
16809 if test "$man_cv_prog_heirloom_nroff" = "yes"
16812 $as_echo "#define HEIRLOOM_NROFF 1" >>confdefs.h
16815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $man_cv_prog_heirloom_nroff" >&5
16816 $as_echo "$man_cv_prog_heirloom_nroff" >&6; }
16819 if test -n "$nroff_device"
16821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that nroff works with argument$nroff_device" >&5
16822 $as_echo_n "checking that nroff works with argument$nroff_device... " >&6; }
16823 # We cannot cache this result as it can change between runs
16825 if $nroff $nroff_device </dev/null >/dev/null 2>&1 3>&1
16827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16828 $as_echo "yes" >&6; }
16830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16831 $as_echo "no" >&6; }
16832 as_fn_error $? "nroff does not work with argument$nroff_device" "$LINENO" 5
16835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for appropriate nroff macro" >&5
16836 $as_echo_n "checking for appropriate nroff macro... " >&6; }
16837 if ${man_cv_prog_nroff_macro+:} false; then :
16838 $as_echo_n "(cached) " >&6
16842 for macro in $macros
16844 if $nroff -m$macro $nroff_device </dev/null >/dev/null 2>&1 3>&1
16846 man_cv_prog_nroff_macro=-m$macro
16853 if test -n "$man_cv_prog_nroff_macro"
16855 if test "$man_cv_prog_heirloom_nroff" = "yes"
16857 # Heirloom works best with some extra options:
16858 # -mg: groff compatibility
16859 # -msafe: disable privileged operations
16860 # -mpadj: clean up line breaking
16861 man_cv_prog_nroff_macro="-mg -msafe -mpadj ${man_cv_prog_nroff_macro}"
16863 nroff="$nroff ${man_cv_prog_nroff_macro}"
16864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $man_cv_prog_nroff_macro" >&5
16865 $as_echo "$man_cv_prog_nroff_macro" >&6; }
16867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ambiguous" >&5
16868 $as_echo "ambiguous" >&6; }
16869 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: please edit include/manconfig.h and add nroff definition" >&5
16870 $as_echo "$as_me: WARNING: please edit include/manconfig.h and add nroff definition" >&2;}
16873 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find an nroff-like program, formatting of manual page source will not be supported." >&5
16874 $as_echo "$as_me: WARNING: Cannot find an nroff-like program, formatting of manual page source will not be supported." >&2;}
16875 nroff="(nroff not installed)"
16877 $as_echo "#define NROFF_MISSING 1" >>confdefs.h
16881 for ac_prog in groff
16883 # Extract the first word of "$ac_prog", so it can be a program name with args.
16884 set dummy $ac_prog; ac_word=$2
16885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16886 $as_echo_n "checking for $ac_word... " >&6; }
16887 if ${ac_cv_prog_troff+:} false; then :
16888 $as_echo_n "(cached) " >&6
16890 if test -n "$troff"; then
16891 ac_cv_prog_troff="$troff" # Let the user override the test.
16893 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16894 for as_dir in $PATH
16897 test -z "$as_dir" && as_dir=.
16898 for ac_exec_ext in '' $ac_executable_extensions; do
16899 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16900 ac_cv_prog_troff="$ac_prog"
16901 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16910 troff=$ac_cv_prog_troff
16911 if test -n "$troff"; then
16912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $troff" >&5
16913 $as_echo "$troff" >&6; }
16915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16916 $as_echo "no" >&6; }
16920 test -n "$troff" && break
16923 if test -n "$troff"
16927 $as_echo "#define TROFF_IS_GROFF 1" >>confdefs.h
16932 for ac_prog in troff gtroff
16934 # Extract the first word of "$ac_prog", so it can be a program name with args.
16935 set dummy $ac_prog; ac_word=$2
16936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16937 $as_echo_n "checking for $ac_word... " >&6; }
16938 if ${ac_cv_prog_troff+:} false; then :
16939 $as_echo_n "(cached) " >&6
16941 if test -n "$troff"; then
16942 ac_cv_prog_troff="$troff" # Let the user override the test.
16944 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16945 for as_dir in $PATH
16948 test -z "$as_dir" && as_dir=.
16949 for ac_exec_ext in '' $ac_executable_extensions; do
16950 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16951 ac_cv_prog_troff="$ac_prog"
16952 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16961 troff=$ac_cv_prog_troff
16962 if test -n "$troff"; then
16963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $troff" >&5
16964 $as_echo "$troff" >&6; }
16966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16967 $as_echo "no" >&6; }
16971 test -n "$troff" && break
16977 if test -n "$troff"
16980 $as_echo "#define HAS_TROFF 1" >>confdefs.h
16982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for appropriate $TROFF options" >&5
16983 $as_echo_n "checking for appropriate $TROFF options... " >&6; }
16984 if ${man_cv_prog_troff_options+:} false; then :
16985 $as_echo_n "(cached) " >&6
16988 # Do a quick test to see if -t works [AIX needs this], groff doesn't
16989 # as it indicates pre-process with tbl.
16990 test "$TROFF" = "troff" && $troff -t </dev/null >/dev/null 2>&1 3>&1 \
16991 && troff_filter="-t "
16992 for macro in $macros
16994 if $troff $troff_filter -m$macro </dev/null >/dev/null 2>&1 3>&1
16996 man_cv_prog_troff_options="${troff_filter}-m${macro}"
17002 if test -n "$man_cv_prog_troff_options"
17004 if test "$man_cv_prog_heirloom_nroff" = "yes"
17006 # Heirloom works best with some extra options:
17007 # -mg: groff compatibility
17008 # -msafe: disable privileged operations
17009 # -mpadj: clean up line breaking
17010 man_cv_prog_troff_options="-mg -msafe -mpadj ${man_cv_prog_troff_options}"
17012 troff="$troff $man_cv_prog_troff_options"
17013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $man_cv_prog_troff_options" >&5
17014 $as_echo "$man_cv_prog_troff_options" >&6; }
17016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ambiguous" >&5
17017 $as_echo "ambiguous" >&6; }
17018 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: please edit include/manconfig.h and add troff definition" >&5
17019 $as_echo "$as_me: WARNING: please edit include/manconfig.h and add troff definition" >&2;}
17022 troff="(troff not installed)"
17025 if test -n "$nroff"
17027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether nroff supports warning control" >&5
17028 $as_echo_n "checking whether nroff supports warning control... " >&6; }
17029 if ${man_cv_prog_nroff_warnings+:} false; then :
17030 $as_echo_n "(cached) " >&6
17033 if test "x$troff_is_groff" = xyes && \
17034 nroff -wmac </dev/null >/dev/null 2>&1
17036 man_cv_prog_nroff_warnings=yes
17038 man_cv_prog_nroff_warnings=no
17041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $man_cv_prog_nroff_warnings" >&5
17042 $as_echo "$man_cv_prog_nroff_warnings" >&6; }
17043 if test "x$man_cv_prog_nroff_warnings" = xyes; then
17045 $as_echo "#define NROFF_WARNINGS 1" >>confdefs.h
17050 for ac_prog in gpreconv preconv
17052 # Extract the first word of "$ac_prog", so it can be a program name with args.
17053 set dummy $ac_prog; ac_word=$2
17054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17055 $as_echo_n "checking for $ac_word... " >&6; }
17056 if ${ac_cv_prog_preconv+:} false; then :
17057 $as_echo_n "(cached) " >&6
17059 if test -n "$preconv"; then
17060 ac_cv_prog_preconv="$preconv" # Let the user override the test.
17062 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17063 for as_dir in $PATH
17066 test -z "$as_dir" && as_dir=.
17067 for ac_exec_ext in '' $ac_executable_extensions; do
17068 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17069 ac_cv_prog_preconv="$ac_prog"
17070 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17079 preconv=$ac_cv_prog_preconv
17080 if test -n "$preconv"; then
17081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $preconv" >&5
17082 $as_echo "$preconv" >&6; }
17084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17085 $as_echo "no" >&6; }
17089 test -n "$preconv" && break
17093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for groff with Debian multibyte patch or real Unicode support" >&5
17094 $as_echo_n "checking for groff with Debian multibyte patch or real Unicode support... " >&6; }
17096 # Check whether --enable-mb-groff was given.
17097 if test "${enable_mb_groff+set}" = set; then :
17098 enableval=$enable_mb_groff; if test "$enableval" = "yes"
17103 if test -n "$preconv"
17106 elif test -n "$troff" && test "$troff_is_groff" = "yes"
17108 if $troff -Tnippon </dev/null >/dev/null 2>&1
17115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $man_mb_groff" >&5
17116 $as_echo "$man_mb_groff" >&6; }
17117 if test "$man_mb_groff" = "yes"
17120 $as_echo "#define MULTIBYTE_GROFF 1" >>confdefs.h
17125 # Check whether --with-eqn was given.
17126 if test "${with_eqn+set}" = set; then :
17127 withval=$with_eqn; if test "$withval" = yes || test "$withval" = no; then :
17128 as_fn_error $? "--with-eqn requires an argument" "$LINENO" 5
17130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for eqn" >&5
17131 $as_echo_n "checking for eqn... " >&6; }
17132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $withval" >&5
17133 $as_echo "$withval" >&6; }
17137 for ac_prog in eqn geqn
17139 # Extract the first word of "$ac_prog", so it can be a program name with args.
17140 set dummy $ac_prog; ac_word=$2
17141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17142 $as_echo_n "checking for $ac_word... " >&6; }
17143 if ${ac_cv_prog_eqn+:} false; then :
17144 $as_echo_n "(cached) " >&6
17146 if test -n "$eqn"; then
17147 ac_cv_prog_eqn="$eqn" # Let the user override the test.
17149 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17150 for as_dir in $PATH
17153 test -z "$as_dir" && as_dir=.
17154 for ac_exec_ext in '' $ac_executable_extensions; do
17155 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17156 ac_cv_prog_eqn="$ac_prog"
17157 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17166 eqn=$ac_cv_prog_eqn
17167 if test -n "$eqn"; then
17168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $eqn" >&5
17169 $as_echo "$eqn" >&6; }
17171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17172 $as_echo "no" >&6; }
17176 test -n "$eqn" && break
17181 if test -n "$eqn"; then
17183 $as_echo "#define HAVE_EQN 1" >>confdefs.h
17187 # Check whether --with-neqn was given.
17188 if test "${with_neqn+set}" = set; then :
17189 withval=$with_neqn; if test "$withval" = yes || test "$withval" = no; then :
17190 as_fn_error $? "--with-neqn requires an argument" "$LINENO" 5
17192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for neqn" >&5
17193 $as_echo_n "checking for neqn... " >&6; }
17194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $withval" >&5
17195 $as_echo "$withval" >&6; }
17199 for ac_prog in neqn gneqn
17201 # Extract the first word of "$ac_prog", so it can be a program name with args.
17202 set dummy $ac_prog; ac_word=$2
17203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17204 $as_echo_n "checking for $ac_word... " >&6; }
17205 if ${ac_cv_prog_neqn+:} false; then :
17206 $as_echo_n "(cached) " >&6
17208 if test -n "$neqn"; then
17209 ac_cv_prog_neqn="$neqn" # Let the user override the test.
17211 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17212 for as_dir in $PATH
17215 test -z "$as_dir" && as_dir=.
17216 for ac_exec_ext in '' $ac_executable_extensions; do
17217 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17218 ac_cv_prog_neqn="$ac_prog"
17219 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17228 neqn=$ac_cv_prog_neqn
17229 if test -n "$neqn"; then
17230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $neqn" >&5
17231 $as_echo "$neqn" >&6; }
17233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17234 $as_echo "no" >&6; }
17238 test -n "$neqn" && break
17243 if test -n "$neqn"; then
17245 $as_echo "#define HAVE_NEQN 1" >>confdefs.h
17248 # If we fail to find an neqn, use eqn and try to force it to output for an
17249 # ascii device. As this is only relevant for equations (?), not using latin1
17250 # should be acceptable. -Tlatin1 is ignored by some eqn implementations.
17254 (test -n "$nroff_device" && neqn="$eqn -T$nroff_device" || neqn="$eqn -Tascii")
17257 # Check whether --with-tbl was given.
17258 if test "${with_tbl+set}" = set; then :
17259 withval=$with_tbl; if test "$withval" = yes || test "$withval" = no; then :
17260 as_fn_error $? "--with-tbl requires an argument" "$LINENO" 5
17262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tbl" >&5
17263 $as_echo_n "checking for tbl... " >&6; }
17264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $withval" >&5
17265 $as_echo "$withval" >&6; }
17269 for ac_prog in tbl gtbl
17271 # Extract the first word of "$ac_prog", so it can be a program name with args.
17272 set dummy $ac_prog; ac_word=$2
17273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17274 $as_echo_n "checking for $ac_word... " >&6; }
17275 if ${ac_cv_prog_tbl+:} false; then :
17276 $as_echo_n "(cached) " >&6
17278 if test -n "$tbl"; then
17279 ac_cv_prog_tbl="$tbl" # Let the user override the test.
17281 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17282 for as_dir in $PATH
17285 test -z "$as_dir" && as_dir=.
17286 for ac_exec_ext in '' $ac_executable_extensions; do
17287 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17288 ac_cv_prog_tbl="$ac_prog"
17289 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17298 tbl=$ac_cv_prog_tbl
17299 if test -n "$tbl"; then
17300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tbl" >&5
17301 $as_echo "$tbl" >&6; }
17303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17304 $as_echo "no" >&6; }
17308 test -n "$tbl" && break
17313 if test -n "$tbl"; then
17315 $as_echo "#define HAVE_TBL 1" >>confdefs.h
17321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether tbl supports the 'x' format character" >&5
17322 $as_echo_n "checking whether tbl supports the 'x' format character... " >&6; }
17323 if ${man_cv_tbl_x_format+:} false; then :
17324 $as_echo_n "(cached) " >&6
17327 if (echo .TS; echo ';'; echo lx.; echo SENTINEL; echo .TE) | \
17328 $tbl 2>/dev/null | grep SENTINEL >/dev/null 2>&1
17330 man_cv_tbl_x_format=yes
17332 man_cv_tbl_x_format=no
17335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $man_cv_tbl_x_format" >&5
17336 $as_echo "$man_cv_tbl_x_format" >&6; }
17337 if test "x$man_cv_tbl_x_format" = xyes
17344 # Check whether --with-col was given.
17345 if test "${with_col+set}" = set; then :
17346 withval=$with_col; if test "$withval" = yes || test "$withval" = no; then :
17347 as_fn_error $? "--with-col requires an argument" "$LINENO" 5
17349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for col" >&5
17350 $as_echo_n "checking for col... " >&6; }
17351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $withval" >&5
17352 $as_echo "$withval" >&6; }
17356 for ac_prog in col gcol
17358 # Extract the first word of "$ac_prog", so it can be a program name with args.
17359 set dummy $ac_prog; ac_word=$2
17360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17361 $as_echo_n "checking for $ac_word... " >&6; }
17362 if ${ac_cv_prog_col+:} false; then :
17363 $as_echo_n "(cached) " >&6
17365 if test -n "$col"; then
17366 ac_cv_prog_col="$col" # Let the user override the test.
17368 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17369 for as_dir in $PATH
17372 test -z "$as_dir" && as_dir=.
17373 for ac_exec_ext in '' $ac_executable_extensions; do
17374 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17375 ac_cv_prog_col="$ac_prog"
17376 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17385 col=$ac_cv_prog_col
17386 if test -n "$col"; then
17387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $col" >&5
17388 $as_echo "$col" >&6; }
17390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17391 $as_echo "no" >&6; }
17395 test -n "$col" && break
17400 if test -n "$col"; then
17402 $as_echo "#define HAVE_COL 1" >>confdefs.h
17406 # Check whether --with-vgrind was given.
17407 if test "${with_vgrind+set}" = set; then :
17408 withval=$with_vgrind; if test "$withval" = yes || test "$withval" = no; then :
17409 as_fn_error $? "--with-vgrind requires an argument" "$LINENO" 5
17411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for vgrind" >&5
17412 $as_echo_n "checking for vgrind... " >&6; }
17413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $withval" >&5
17414 $as_echo "$withval" >&6; }
17418 for ac_prog in vgrind gvgrind
17420 # Extract the first word of "$ac_prog", so it can be a program name with args.
17421 set dummy $ac_prog; ac_word=$2
17422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17423 $as_echo_n "checking for $ac_word... " >&6; }
17424 if ${ac_cv_prog_vgrind+:} false; then :
17425 $as_echo_n "(cached) " >&6
17427 if test -n "$vgrind"; then
17428 ac_cv_prog_vgrind="$vgrind" # Let the user override the test.
17430 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17431 for as_dir in $PATH
17434 test -z "$as_dir" && as_dir=.
17435 for ac_exec_ext in '' $ac_executable_extensions; do
17436 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17437 ac_cv_prog_vgrind="$ac_prog"
17438 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17447 vgrind=$ac_cv_prog_vgrind
17448 if test -n "$vgrind"; then
17449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vgrind" >&5
17450 $as_echo "$vgrind" >&6; }
17452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17453 $as_echo "no" >&6; }
17457 test -n "$vgrind" && break
17462 if test -n "$vgrind"; then
17464 $as_echo "#define HAVE_VGRIND 1" >>confdefs.h
17468 # Check whether --with-refer was given.
17469 if test "${with_refer+set}" = set; then :
17470 withval=$with_refer; if test "$withval" = yes || test "$withval" = no; then :
17471 as_fn_error $? "--with-refer requires an argument" "$LINENO" 5
17473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for refer" >&5
17474 $as_echo_n "checking for refer... " >&6; }
17475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $withval" >&5
17476 $as_echo "$withval" >&6; }
17480 for ac_prog in refer grefer
17482 # Extract the first word of "$ac_prog", so it can be a program name with args.
17483 set dummy $ac_prog; ac_word=$2
17484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17485 $as_echo_n "checking for $ac_word... " >&6; }
17486 if ${ac_cv_prog_refer+:} false; then :
17487 $as_echo_n "(cached) " >&6
17489 if test -n "$refer"; then
17490 ac_cv_prog_refer="$refer" # Let the user override the test.
17492 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17493 for as_dir in $PATH
17496 test -z "$as_dir" && as_dir=.
17497 for ac_exec_ext in '' $ac_executable_extensions; do
17498 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17499 ac_cv_prog_refer="$ac_prog"
17500 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17509 refer=$ac_cv_prog_refer
17510 if test -n "$refer"; then
17511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $refer" >&5
17512 $as_echo "$refer" >&6; }
17514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17515 $as_echo "no" >&6; }
17519 test -n "$refer" && break
17524 if test -n "$refer"; then
17526 $as_echo "#define HAVE_REFER 1" >>confdefs.h
17530 # Check whether --with-grap was given.
17531 if test "${with_grap+set}" = set; then :
17532 withval=$with_grap; if test "$withval" = yes || test "$withval" = no; then :
17533 as_fn_error $? "--with-grap requires an argument" "$LINENO" 5
17535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grap" >&5
17536 $as_echo_n "checking for grap... " >&6; }
17537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $withval" >&5
17538 $as_echo "$withval" >&6; }
17542 for ac_prog in grap
17544 # Extract the first word of "$ac_prog", so it can be a program name with args.
17545 set dummy $ac_prog; ac_word=$2
17546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17547 $as_echo_n "checking for $ac_word... " >&6; }
17548 if ${ac_cv_prog_grap+:} false; then :
17549 $as_echo_n "(cached) " >&6
17551 if test -n "$grap"; then
17552 ac_cv_prog_grap="$grap" # Let the user override the test.
17554 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17555 for as_dir in $PATH
17558 test -z "$as_dir" && as_dir=.
17559 for ac_exec_ext in '' $ac_executable_extensions; do
17560 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17561 ac_cv_prog_grap="$ac_prog"
17562 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17571 grap=$ac_cv_prog_grap
17572 if test -n "$grap"; then
17573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $grap" >&5
17574 $as_echo "$grap" >&6; }
17576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17577 $as_echo "no" >&6; }
17581 test -n "$grap" && break
17586 if test -n "$grap"; then
17588 $as_echo "#define HAVE_GRAP 1" >>confdefs.h
17592 # Check whether --with-pic was given.
17593 if test "${with_pic+set}" = set; then :
17594 withval=$with_pic; if test "$withval" = yes || test "$withval" = no; then :
17595 as_fn_error $? "--with-pic requires an argument" "$LINENO" 5
17597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pic" >&5
17598 $as_echo_n "checking for pic... " >&6; }
17599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $withval" >&5
17600 $as_echo "$withval" >&6; }
17604 for ac_prog in pic gpic
17606 # Extract the first word of "$ac_prog", so it can be a program name with args.
17607 set dummy $ac_prog; ac_word=$2
17608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17609 $as_echo_n "checking for $ac_word... " >&6; }
17610 if ${ac_cv_prog_pic+:} false; then :
17611 $as_echo_n "(cached) " >&6
17613 if test -n "$pic"; then
17614 ac_cv_prog_pic="$pic" # Let the user override the test.
17616 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17617 for as_dir in $PATH
17620 test -z "$as_dir" && as_dir=.
17621 for ac_exec_ext in '' $ac_executable_extensions; do
17622 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17623 ac_cv_prog_pic="$ac_prog"
17624 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17633 pic=$ac_cv_prog_pic
17634 if test -n "$pic"; then
17635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pic" >&5
17636 $as_echo "$pic" >&6; }
17638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17639 $as_echo "no" >&6; }
17643 test -n "$pic" && break
17648 if test -n "$pic"; then
17650 $as_echo "#define HAVE_PIC 1" >>confdefs.h
17653 test -n "$pic" && pic="$pic -S"
17656 # Check whether --with-gzip was given.
17657 if test "${with_gzip+set}" = set; then :
17658 withval=$with_gzip; if test "$withval" = yes || test "$withval" = no; then :
17659 as_fn_error $? "--with-gzip requires an argument" "$LINENO" 5
17661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gzip" >&5
17662 $as_echo_n "checking for gzip... " >&6; }
17663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $withval" >&5
17664 $as_echo "$withval" >&6; }
17668 for ac_prog in gzip
17670 # Extract the first word of "$ac_prog", so it can be a program name with args.
17671 set dummy $ac_prog; ac_word=$2
17672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17673 $as_echo_n "checking for $ac_word... " >&6; }
17674 if ${ac_cv_prog_gzip+:} false; then :
17675 $as_echo_n "(cached) " >&6
17677 if test -n "$gzip"; then
17678 ac_cv_prog_gzip="$gzip" # Let the user override the test.
17680 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17681 for as_dir in $PATH
17684 test -z "$as_dir" && as_dir=.
17685 for ac_exec_ext in '' $ac_executable_extensions; do
17686 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17687 ac_cv_prog_gzip="$ac_prog"
17688 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17697 gzip=$ac_cv_prog_gzip
17698 if test -n "$gzip"; then
17699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gzip" >&5
17700 $as_echo "$gzip" >&6; }
17702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17703 $as_echo "no" >&6; }
17707 test -n "$gzip" && break
17712 if test -n "$gzip"; then
17714 $as_echo "#define HAVE_GZIP 1" >>confdefs.h
17720 compressor="$gzip -c7"
17724 # Check whether --with-compress was given.
17725 if test "${with_compress+set}" = set; then :
17726 withval=$with_compress; if test "$withval" = yes || test "$withval" = no; then :
17727 as_fn_error $? "--with-compress requires an argument" "$LINENO" 5
17729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compress" >&5
17730 $as_echo_n "checking for compress... " >&6; }
17731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $withval" >&5
17732 $as_echo "$withval" >&6; }
17733 compress="$withval"
17736 for ac_prog in compress
17738 # Extract the first word of "$ac_prog", so it can be a program name with args.
17739 set dummy $ac_prog; ac_word=$2
17740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17741 $as_echo_n "checking for $ac_word... " >&6; }
17742 if ${ac_cv_prog_compress+:} false; then :
17743 $as_echo_n "(cached) " >&6
17745 if test -n "$compress"; then
17746 ac_cv_prog_compress="$compress" # Let the user override the test.
17748 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17749 for as_dir in $PATH
17752 test -z "$as_dir" && as_dir=.
17753 for ac_exec_ext in '' $ac_executable_extensions; do
17754 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17755 ac_cv_prog_compress="$ac_prog"
17756 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17765 compress=$ac_cv_prog_compress
17766 if test -n "$compress"; then
17767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compress" >&5
17768 $as_echo "$compress" >&6; }
17770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17771 $as_echo "no" >&6; }
17775 test -n "$compress" && break
17780 if test -n "$compress"; then
17782 $as_echo "#define HAVE_COMPRESS 1" >>confdefs.h
17785 if test -n "$compress"
17787 uncompress="$compress -dc"
17790 compressor="$compress -c"
17795 # Check whether --with-bzip2 was given.
17796 if test "${with_bzip2+set}" = set; then :
17797 withval=$with_bzip2; if test "$withval" = yes || test "$withval" = no; then :
17798 as_fn_error $? "--with-bzip2 requires an argument" "$LINENO" 5
17800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bzip2" >&5
17801 $as_echo_n "checking for bzip2... " >&6; }
17802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $withval" >&5
17803 $as_echo "$withval" >&6; }
17807 for ac_prog in bzip2
17809 # Extract the first word of "$ac_prog", so it can be a program name with args.
17810 set dummy $ac_prog; ac_word=$2
17811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17812 $as_echo_n "checking for $ac_word... " >&6; }
17813 if ${ac_cv_prog_bzip2+:} false; then :
17814 $as_echo_n "(cached) " >&6
17816 if test -n "$bzip2"; then
17817 ac_cv_prog_bzip2="$bzip2" # Let the user override the test.
17819 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17820 for as_dir in $PATH
17823 test -z "$as_dir" && as_dir=.
17824 for ac_exec_ext in '' $ac_executable_extensions; do
17825 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17826 ac_cv_prog_bzip2="$ac_prog"
17827 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17836 bzip2=$ac_cv_prog_bzip2
17837 if test -n "$bzip2"; then
17838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bzip2" >&5
17839 $as_echo "$bzip2" >&6; }
17841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17842 $as_echo "no" >&6; }
17846 test -n "$bzip2" && break
17851 if test -n "$bzip2"; then
17853 $as_echo "#define HAVE_BZIP2 1" >>confdefs.h
17856 if test -n "$bzip2"
17858 bunzip2="$bzip2 -dc"
17861 # Check whether --with-xz was given.
17862 if test "${with_xz+set}" = set; then :
17863 withval=$with_xz; if test "$withval" = yes || test "$withval" = no; then :
17864 as_fn_error $? "--with-xz requires an argument" "$LINENO" 5
17866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xz" >&5
17867 $as_echo_n "checking for xz... " >&6; }
17868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $withval" >&5
17869 $as_echo "$withval" >&6; }
17875 # Extract the first word of "$ac_prog", so it can be a program name with args.
17876 set dummy $ac_prog; ac_word=$2
17877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17878 $as_echo_n "checking for $ac_word... " >&6; }
17879 if ${ac_cv_prog_xz+:} false; then :
17880 $as_echo_n "(cached) " >&6
17882 if test -n "$xz"; then
17883 ac_cv_prog_xz="$xz" # Let the user override the test.
17885 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17886 for as_dir in $PATH
17889 test -z "$as_dir" && as_dir=.
17890 for ac_exec_ext in '' $ac_executable_extensions; do
17891 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17892 ac_cv_prog_xz="$ac_prog"
17893 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17903 if test -n "$xz"; then
17904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xz" >&5
17905 $as_echo "$xz" >&6; }
17907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17908 $as_echo "no" >&6; }
17912 test -n "$xz" && break
17917 if test -n "$xz"; then
17919 $as_echo "#define HAVE_XZ 1" >>confdefs.h
17928 # Check whether --with-lzma was given.
17929 if test "${with_lzma+set}" = set; then :
17930 withval=$with_lzma; if test "$withval" = yes || test "$withval" = no; then :
17931 as_fn_error $? "--with-lzma requires an argument" "$LINENO" 5
17933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lzma" >&5
17934 $as_echo_n "checking for lzma... " >&6; }
17935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $withval" >&5
17936 $as_echo "$withval" >&6; }
17940 for ac_prog in lzma
17942 # Extract the first word of "$ac_prog", so it can be a program name with args.
17943 set dummy $ac_prog; ac_word=$2
17944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17945 $as_echo_n "checking for $ac_word... " >&6; }
17946 if ${ac_cv_prog_lzma+:} false; then :
17947 $as_echo_n "(cached) " >&6
17949 if test -n "$lzma"; then
17950 ac_cv_prog_lzma="$lzma" # Let the user override the test.
17952 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17953 for as_dir in $PATH
17956 test -z "$as_dir" && as_dir=.
17957 for ac_exec_ext in '' $ac_executable_extensions; do
17958 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17959 ac_cv_prog_lzma="$ac_prog"
17960 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17969 lzma=$ac_cv_prog_lzma
17970 if test -n "$lzma"; then
17971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lzma" >&5
17972 $as_echo "$lzma" >&6; }
17974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17975 $as_echo "no" >&6; }
17979 test -n "$lzma" && break
17984 if test -n "$lzma"; then
17986 $as_echo "#define HAVE_LZMA 1" >>confdefs.h
17995 # Check whether --with-lzip was given.
17996 if test "${with_lzip+set}" = set; then :
17997 withval=$with_lzip; if test "$withval" = yes || test "$withval" = no; then :
17998 as_fn_error $? "--with-lzip requires an argument" "$LINENO" 5
18000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lzip" >&5
18001 $as_echo_n "checking for lzip... " >&6; }
18002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $withval" >&5
18003 $as_echo "$withval" >&6; }
18007 for ac_prog in lzip
18009 # Extract the first word of "$ac_prog", so it can be a program name with args.
18010 set dummy $ac_prog; ac_word=$2
18011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18012 $as_echo_n "checking for $ac_word... " >&6; }
18013 if ${ac_cv_prog_lzip+:} false; then :
18014 $as_echo_n "(cached) " >&6
18016 if test -n "$lzip"; then
18017 ac_cv_prog_lzip="$lzip" # Let the user override the test.
18019 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18020 for as_dir in $PATH
18023 test -z "$as_dir" && as_dir=.
18024 for ac_exec_ext in '' $ac_executable_extensions; do
18025 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18026 ac_cv_prog_lzip="$ac_prog"
18027 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18036 lzip=$ac_cv_prog_lzip
18037 if test -n "$lzip"; then
18038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lzip" >&5
18039 $as_echo "$lzip" >&6; }
18041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18042 $as_echo "no" >&6; }
18046 test -n "$lzip" && break
18051 if test -n "$lzip"; then
18053 $as_echo "#define HAVE_LZIP 1" >>confdefs.h
18060 if test -n "$gzip" || test -n "$compress" || test -n "$bzip2" || test -n "$xz" || test -n "$lzip" || test -n "$lzma"
18063 $as_echo "#define COMP_CAT 1" >>confdefs.h
18066 $as_echo "#define COMP_SRC 1" >>confdefs.h
18077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gzopen in -lz" >&5
18078 $as_echo_n "checking for gzopen in -lz... " >&6; }
18079 if ${ac_cv_lib_z_gzopen+:} false; then :
18080 $as_echo_n "(cached) " >&6
18082 ac_check_lib_save_LIBS=$LIBS
18084 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18085 /* end confdefs.h. */
18087 /* Override any GCC internal prototype to avoid an error.
18088 Use char because int might match the return type of a GCC
18089 builtin and then its argument prototype would still apply. */
18102 if ac_fn_c_try_link "$LINENO"; then :
18103 ac_cv_lib_z_gzopen=yes
18105 ac_cv_lib_z_gzopen=no
18107 rm -f core conftest.err conftest.$ac_objext \
18108 conftest$ac_exeext conftest.$ac_ext
18109 LIBS=$ac_check_lib_save_LIBS
18111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gzopen" >&5
18112 $as_echo "$ac_cv_lib_z_gzopen" >&6; }
18113 if test "x$ac_cv_lib_z_gzopen" = xyes; then :
18115 cat >>confdefs.h <<_ACEOF
18116 #define HAVE_LIBZ 1
18119 LIBCOMPRESS="-lz $LIBCOMPRESS"
18125 # Check for various header files and associated libraries.
18126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing strerror" >&5
18127 $as_echo_n "checking for library containing strerror... " >&6; }
18128 if ${ac_cv_search_strerror+:} false; then :
18129 $as_echo_n "(cached) " >&6
18131 ac_func_search_save_LIBS=$LIBS
18132 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18133 /* end confdefs.h. */
18135 /* Override any GCC internal prototype to avoid an error.
18136 Use char because int might match the return type of a GCC
18137 builtin and then its argument prototype would still apply. */
18145 return strerror ();
18150 for ac_lib in '' cposix; do
18151 if test -z "$ac_lib"; then
18152 ac_res="none required"
18155 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
18157 if ac_fn_c_try_link "$LINENO"; then :
18158 ac_cv_search_strerror=$ac_res
18160 rm -f core conftest.err conftest.$ac_objext \
18162 if ${ac_cv_search_strerror+:} false; then :
18166 if ${ac_cv_search_strerror+:} false; then :
18169 ac_cv_search_strerror=no
18171 rm conftest.$ac_ext
18172 LIBS=$ac_func_search_save_LIBS
18174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_strerror" >&5
18175 $as_echo "$ac_cv_search_strerror" >&6; }
18176 ac_res=$ac_cv_search_strerror
18177 if test "$ac_res" != no; then :
18178 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
18182 for ac_prog in flex lex
18184 # Extract the first word of "$ac_prog", so it can be a program name with args.
18185 set dummy $ac_prog; ac_word=$2
18186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18187 $as_echo_n "checking for $ac_word... " >&6; }
18188 if ${ac_cv_prog_LEX+:} false; then :
18189 $as_echo_n "(cached) " >&6
18191 if test -n "$LEX"; then
18192 ac_cv_prog_LEX="$LEX" # Let the user override the test.
18194 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18195 for as_dir in $PATH
18198 test -z "$as_dir" && as_dir=.
18199 for ac_exec_ext in '' $ac_executable_extensions; do
18200 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18201 ac_cv_prog_LEX="$ac_prog"
18202 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18211 LEX=$ac_cv_prog_LEX
18212 if test -n "$LEX"; then
18213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
18214 $as_echo "$LEX" >&6; }
18216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18217 $as_echo "no" >&6; }
18221 test -n "$LEX" && break
18223 test -n "$LEX" || LEX=":"
18225 if test "x$LEX" != "x:"; then
18226 cat >conftest.l <<_ACEOF
18232 e { /* IRIX 6.5 flex 2.5.4 underquotes its yyless argument. */
18233 yyless ((input () != 0)); }
18234 f { unput (yytext[0]); }
18235 . { BEGIN INITIAL; }
18237 #ifdef YYTEXT_POINTER
18238 extern char *yytext;
18243 return ! yylex () + ! yywrap ();
18246 { { ac_try="$LEX conftest.l"
18247 case "(($ac_try" in
18248 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18249 *) ac_try_echo=$ac_try;;
18251 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
18252 $as_echo "$ac_try_echo"; } >&5
18253 (eval "$LEX conftest.l") 2>&5
18255 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18256 test $ac_status = 0; }
18257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex output file root" >&5
18258 $as_echo_n "checking lex output file root... " >&6; }
18259 if ${ac_cv_prog_lex_root+:} false; then :
18260 $as_echo_n "(cached) " >&6
18263 if test -f lex.yy.c; then
18264 ac_cv_prog_lex_root=lex.yy
18265 elif test -f lexyy.c; then
18266 ac_cv_prog_lex_root=lexyy
18268 as_fn_error $? "cannot find output from $LEX; giving up" "$LINENO" 5
18271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_root" >&5
18272 $as_echo "$ac_cv_prog_lex_root" >&6; }
18273 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
18275 if test -z "${LEXLIB+set}"; then
18276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex library" >&5
18277 $as_echo_n "checking lex library... " >&6; }
18278 if ${ac_cv_lib_lex+:} false; then :
18279 $as_echo_n "(cached) " >&6
18283 ac_cv_lib_lex='none needed'
18284 for ac_lib in '' -lfl -ll; do
18285 LIBS="$ac_lib $ac_save_LIBS"
18286 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18287 /* end confdefs.h. */
18288 `cat $LEX_OUTPUT_ROOT.c`
18290 if ac_fn_c_try_link "$LINENO"; then :
18291 ac_cv_lib_lex=$ac_lib
18293 rm -f core conftest.err conftest.$ac_objext \
18294 conftest$ac_exeext conftest.$ac_ext
18295 test "$ac_cv_lib_lex" != 'none needed' && break
18300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lex" >&5
18301 $as_echo "$ac_cv_lib_lex" >&6; }
18302 test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex
18306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether yytext is a pointer" >&5
18307 $as_echo_n "checking whether yytext is a pointer... " >&6; }
18308 if ${ac_cv_prog_lex_yytext_pointer+:} false; then :
18309 $as_echo_n "(cached) " >&6
18311 # POSIX says lex can declare yytext either as a pointer or an array; the
18312 # default is implementation-dependent. Figure out which it is, since
18313 # not all implementations provide the %pointer and %array declarations.
18314 ac_cv_prog_lex_yytext_pointer=no
18316 LIBS="$LEXLIB $ac_save_LIBS"
18317 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18318 /* end confdefs.h. */
18320 #define YYTEXT_POINTER 1
18321 `cat $LEX_OUTPUT_ROOT.c`
18323 if ac_fn_c_try_link "$LINENO"; then :
18324 ac_cv_prog_lex_yytext_pointer=yes
18326 rm -f core conftest.err conftest.$ac_objext \
18327 conftest$ac_exeext conftest.$ac_ext
18331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_yytext_pointer" >&5
18332 $as_echo "$ac_cv_prog_lex_yytext_pointer" >&6; }
18333 if test $ac_cv_prog_lex_yytext_pointer = yes; then
18335 $as_echo "#define YYTEXT_POINTER 1" >>confdefs.h
18338 rm -f conftest.l $LEX_OUTPUT_ROOT.c
18346 LIBC_FATAL_STDERR_=1
18347 export LIBC_FATAL_STDERR_
18349 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
18350 if test "x$ac_cv_type_size_t" = xyes; then :
18354 cat >>confdefs.h <<_ACEOF
18355 #define size_t unsigned int
18360 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
18361 # for constant arguments. Useless!
18362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
18363 $as_echo_n "checking for working alloca.h... " >&6; }
18364 if ${ac_cv_working_alloca_h+:} false; then :
18365 $as_echo_n "(cached) " >&6
18367 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18368 /* end confdefs.h. */
18369 #include <alloca.h>
18373 char *p = (char *) alloca (2 * sizeof (int));
18379 if ac_fn_c_try_link "$LINENO"; then :
18380 ac_cv_working_alloca_h=yes
18382 ac_cv_working_alloca_h=no
18384 rm -f core conftest.err conftest.$ac_objext \
18385 conftest$ac_exeext conftest.$ac_ext
18387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
18388 $as_echo "$ac_cv_working_alloca_h" >&6; }
18389 if test $ac_cv_working_alloca_h = yes; then
18391 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
18395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
18396 $as_echo_n "checking for alloca... " >&6; }
18397 if ${ac_cv_func_alloca_works+:} false; then :
18398 $as_echo_n "(cached) " >&6
18400 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18401 /* end confdefs.h. */
18403 # define alloca __builtin_alloca
18406 # include <malloc.h>
18407 # define alloca _alloca
18409 # ifdef HAVE_ALLOCA_H
18410 # include <alloca.h>
18415 # ifndef alloca /* predefined by HP cc +Olibcalls */
18416 void *alloca (size_t);
18426 char *p = (char *) alloca (1);
18432 if ac_fn_c_try_link "$LINENO"; then :
18433 ac_cv_func_alloca_works=yes
18435 ac_cv_func_alloca_works=no
18437 rm -f core conftest.err conftest.$ac_objext \
18438 conftest$ac_exeext conftest.$ac_ext
18440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
18441 $as_echo "$ac_cv_func_alloca_works" >&6; }
18443 if test $ac_cv_func_alloca_works = yes; then
18445 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
18448 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
18449 # that cause trouble. Some versions do not even contain alloca or
18450 # contain a buggy version. If you still want to use their alloca,
18451 # use ar to extract alloca.o from them instead of compiling alloca.c.
18457 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
18459 $as_echo "#define C_ALLOCA 1" >>confdefs.h
18462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
18463 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
18464 if ${ac_cv_os_cray+:} false; then :
18465 $as_echo_n "(cached) " >&6
18467 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18468 /* end confdefs.h. */
18469 #if defined CRAY && ! defined CRAY2
18476 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18477 $EGREP "webecray" >/dev/null 2>&1; then :
18485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
18486 $as_echo "$ac_cv_os_cray" >&6; }
18487 if test $ac_cv_os_cray = yes; then
18488 for ac_func in _getb67 GETB67 getb67; do
18489 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
18490 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
18491 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
18493 cat >>confdefs.h <<_ACEOF
18494 #define CRAY_STACKSEG_END $ac_func
18503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
18504 $as_echo_n "checking stack direction for C alloca... " >&6; }
18505 if ${ac_cv_c_stack_direction+:} false; then :
18506 $as_echo_n "(cached) " >&6
18508 if test "$cross_compiling" = yes; then :
18509 ac_cv_c_stack_direction=0
18511 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18512 /* end confdefs.h. */
18513 $ac_includes_default
18515 find_stack_direction (int *addr, int depth)
18517 int dir, dummy = 0;
18520 *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
18521 dir = depth ? find_stack_direction (addr, depth - 1) : 0;
18522 return dir + dummy;
18526 main (int argc, char **argv)
18528 return find_stack_direction (0, argc + !argv + 20) < 0;
18531 if ac_fn_c_try_run "$LINENO"; then :
18532 ac_cv_c_stack_direction=1
18534 ac_cv_c_stack_direction=-1
18536 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18537 conftest.$ac_objext conftest.beam conftest.$ac_ext
18541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
18542 $as_echo "$ac_cv_c_stack_direction" >&6; }
18543 cat >>confdefs.h <<_ACEOF
18544 #define STACK_DIRECTION $ac_cv_c_stack_direction
18550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
18551 $as_echo_n "checking for inline... " >&6; }
18552 if ${ac_cv_c_inline+:} false; then :
18553 $as_echo_n "(cached) " >&6
18556 for ac_kw in inline __inline__ __inline; do
18557 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18558 /* end confdefs.h. */
18559 #ifndef __cplusplus
18561 static $ac_kw foo_t static_foo () {return 0; }
18562 $ac_kw foo_t foo () {return 0; }
18566 if ac_fn_c_try_compile "$LINENO"; then :
18567 ac_cv_c_inline=$ac_kw
18569 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18570 test "$ac_cv_c_inline" != no && break
18574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
18575 $as_echo "$ac_cv_c_inline" >&6; }
18577 case $ac_cv_c_inline in
18580 case $ac_cv_c_inline in
18582 *) ac_val=$ac_cv_c_inline;;
18584 cat >>confdefs.h <<_ACEOF
18585 #ifndef __cplusplus
18586 #define inline $ac_val
18592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
18593 $as_echo_n "checking for C/C++ restrict keyword... " >&6; }
18594 if ${ac_cv_c_restrict+:} false; then :
18595 $as_echo_n "(cached) " >&6
18597 ac_cv_c_restrict=no
18598 # The order here caters to the fact that C++ does not require restrict.
18599 for ac_kw in __restrict __restrict__ _Restrict restrict; do
18600 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18601 /* end confdefs.h. */
18602 typedef int * int_ptr;
18603 int foo (int_ptr $ac_kw ip) {
18610 int * $ac_kw t = s;
18617 if ac_fn_c_try_compile "$LINENO"; then :
18618 ac_cv_c_restrict=$ac_kw
18620 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18621 test "$ac_cv_c_restrict" != no && break
18625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
18626 $as_echo "$ac_cv_c_restrict" >&6; }
18628 case $ac_cv_c_restrict in
18630 no) $as_echo "#define restrict /**/" >>confdefs.h
18632 *) cat >>confdefs.h <<_ACEOF
18633 #define restrict $ac_cv_c_restrict
18639 ac_fn_c_check_decl "$LINENO" "clearerr_unlocked" "ac_cv_have_decl_clearerr_unlocked" "$ac_includes_default"
18640 if test "x$ac_cv_have_decl_clearerr_unlocked" = xyes; then :
18646 cat >>confdefs.h <<_ACEOF
18647 #define HAVE_DECL_CLEARERR_UNLOCKED $ac_have_decl
18652 ac_fn_c_check_decl "$LINENO" "feof_unlocked" "ac_cv_have_decl_feof_unlocked" "$ac_includes_default"
18653 if test "x$ac_cv_have_decl_feof_unlocked" = xyes; then :
18659 cat >>confdefs.h <<_ACEOF
18660 #define HAVE_DECL_FEOF_UNLOCKED $ac_have_decl
18665 ac_fn_c_check_decl "$LINENO" "ferror_unlocked" "ac_cv_have_decl_ferror_unlocked" "$ac_includes_default"
18666 if test "x$ac_cv_have_decl_ferror_unlocked" = xyes; then :
18672 cat >>confdefs.h <<_ACEOF
18673 #define HAVE_DECL_FERROR_UNLOCKED $ac_have_decl
18678 ac_fn_c_check_decl "$LINENO" "fflush_unlocked" "ac_cv_have_decl_fflush_unlocked" "$ac_includes_default"
18679 if test "x$ac_cv_have_decl_fflush_unlocked" = xyes; then :
18685 cat >>confdefs.h <<_ACEOF
18686 #define HAVE_DECL_FFLUSH_UNLOCKED $ac_have_decl
18691 ac_fn_c_check_decl "$LINENO" "fgets_unlocked" "ac_cv_have_decl_fgets_unlocked" "$ac_includes_default"
18692 if test "x$ac_cv_have_decl_fgets_unlocked" = xyes; then :
18698 cat >>confdefs.h <<_ACEOF
18699 #define HAVE_DECL_FGETS_UNLOCKED $ac_have_decl
18704 ac_fn_c_check_decl "$LINENO" "fputc_unlocked" "ac_cv_have_decl_fputc_unlocked" "$ac_includes_default"
18705 if test "x$ac_cv_have_decl_fputc_unlocked" = xyes; then :
18711 cat >>confdefs.h <<_ACEOF
18712 #define HAVE_DECL_FPUTC_UNLOCKED $ac_have_decl
18717 ac_fn_c_check_decl "$LINENO" "fputs_unlocked" "ac_cv_have_decl_fputs_unlocked" "$ac_includes_default"
18718 if test "x$ac_cv_have_decl_fputs_unlocked" = xyes; then :
18724 cat >>confdefs.h <<_ACEOF
18725 #define HAVE_DECL_FPUTS_UNLOCKED $ac_have_decl
18730 ac_fn_c_check_decl "$LINENO" "fread_unlocked" "ac_cv_have_decl_fread_unlocked" "$ac_includes_default"
18731 if test "x$ac_cv_have_decl_fread_unlocked" = xyes; then :
18737 cat >>confdefs.h <<_ACEOF
18738 #define HAVE_DECL_FREAD_UNLOCKED $ac_have_decl
18743 ac_fn_c_check_decl "$LINENO" "fwrite_unlocked" "ac_cv_have_decl_fwrite_unlocked" "$ac_includes_default"
18744 if test "x$ac_cv_have_decl_fwrite_unlocked" = xyes; then :
18750 cat >>confdefs.h <<_ACEOF
18751 #define HAVE_DECL_FWRITE_UNLOCKED $ac_have_decl
18756 ac_fn_c_check_decl "$LINENO" "getc_unlocked" "ac_cv_have_decl_getc_unlocked" "$ac_includes_default"
18757 if test "x$ac_cv_have_decl_getc_unlocked" = xyes; then :
18763 cat >>confdefs.h <<_ACEOF
18764 #define HAVE_DECL_GETC_UNLOCKED $ac_have_decl
18769 ac_fn_c_check_decl "$LINENO" "getchar_unlocked" "ac_cv_have_decl_getchar_unlocked" "$ac_includes_default"
18770 if test "x$ac_cv_have_decl_getchar_unlocked" = xyes; then :
18776 cat >>confdefs.h <<_ACEOF
18777 #define HAVE_DECL_GETCHAR_UNLOCKED $ac_have_decl
18782 ac_fn_c_check_decl "$LINENO" "putc_unlocked" "ac_cv_have_decl_putc_unlocked" "$ac_includes_default"
18783 if test "x$ac_cv_have_decl_putc_unlocked" = xyes; then :
18789 cat >>confdefs.h <<_ACEOF
18790 #define HAVE_DECL_PUTC_UNLOCKED $ac_have_decl
18795 ac_fn_c_check_decl "$LINENO" "putchar_unlocked" "ac_cv_have_decl_putchar_unlocked" "$ac_includes_default"
18796 if test "x$ac_cv_have_decl_putchar_unlocked" = xyes; then :
18802 cat >>confdefs.h <<_ACEOF
18803 #define HAVE_DECL_PUTCHAR_UNLOCKED $ac_have_decl
18811 for ac_func in $gl_func_list
18813 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
18814 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
18815 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
18816 cat >>confdefs.h <<_ACEOF
18817 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
18836 for ac_header in $gl_header_list
18838 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
18839 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
18840 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
18841 cat >>confdefs.h <<_ACEOF
18842 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
18859 XGETTEXT_EXTRA_OPTIONS=
18867 GNULIB_MBSRTOWCS=0;
18868 GNULIB_MBSNRTOWCS=0;
18870 GNULIB_WCSRTOMBS=0;
18871 GNULIB_WCSNRTOMBS=0;
18888 GNULIB_WCSCASECMP=0;
18889 GNULIB_WCSNCASECMP=0;
18926 HAVE_WCSNCASECMP=1;
18939 HAVE_DECL_WCWIDTH=1;
18940 REPLACE_MBSTATE_T=0;
18946 REPLACE_MBSRTOWCS=0;
18947 REPLACE_MBSNRTOWCS=0;
18949 REPLACE_WCSRTOMBS=0;
18950 REPLACE_WCSNRTOMBS=0;
18952 REPLACE_WCSWIDTH=0;
18955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <wchar.h> uses 'inline' correctly" >&5
18956 $as_echo_n "checking whether <wchar.h> uses 'inline' correctly... " >&6; }
18957 if ${gl_cv_header_wchar_h_correct_inline+:} false; then :
18958 $as_echo_n "(cached) " >&6
18960 gl_cv_header_wchar_h_correct_inline=yes
18961 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18962 /* end confdefs.h. */
18964 #define wcstod renamed_wcstod
18965 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
18967 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
18968 included before <wchar.h>. */
18969 #include <stddef.h>
18973 extern int zero (void);
18974 int main () { return zero(); }
18977 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
18978 (eval $ac_compile) 2>&5
18980 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18981 test $ac_status = 0; }; then
18982 mv conftest.$ac_objext conftest1.$ac_objext
18983 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18984 /* end confdefs.h. */
18986 #define wcstod renamed_wcstod
18987 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
18989 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
18990 included before <wchar.h>. */
18991 #include <stddef.h>
18995 int zero (void) { return 0; }
18998 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
18999 (eval $ac_compile) 2>&5
19001 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19002 test $ac_status = 0; }; then
19003 mv conftest.$ac_objext conftest2.$ac_objext
19004 if $CC -o conftest$ac_exeext $CFLAGS $LDFLAGS conftest1.$ac_objext conftest2.$ac_objext $LIBS >&5 2>&1; then
19007 gl_cv_header_wchar_h_correct_inline=no
19011 rm -f conftest1.$ac_objext conftest2.$ac_objext conftest$ac_exeext
19014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_wchar_h_correct_inline" >&5
19015 $as_echo "$gl_cv_header_wchar_h_correct_inline" >&6; }
19016 if test $gl_cv_header_wchar_h_correct_inline = no; then
19017 as_fn_error $? "<wchar.h> cannot be used with this compiler ($CC $CFLAGS $CPPFLAGS).
19018 This is a known interoperability problem of glibc <= 2.5 with gcc >= 4.3 in
19019 C99 mode. You have four options:
19020 - Add the flag -fgnu89-inline to CC and reconfigure, or
19021 - Fix your include files, using parts of
19022 <http://sourceware.org/git/?p=glibc.git;a=commitdiff;h=b037a293a48718af30d706c2e18c929d0e69a621>, or
19023 - Use a gcc version older than 4.3, or
19024 - Don't use the flags -std=c99 or -std=gnu99.
19025 Configuration aborted." "$LINENO" 5
19034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
19035 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
19036 if ${am_cv_langinfo_codeset+:} false; then :
19037 $as_echo_n "(cached) " >&6
19039 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19040 /* end confdefs.h. */
19041 #include <langinfo.h>
19045 char* cs = nl_langinfo(CODESET); return !cs;
19050 if ac_fn_c_try_link "$LINENO"; then :
19051 am_cv_langinfo_codeset=yes
19053 am_cv_langinfo_codeset=no
19055 rm -f core conftest.err conftest.$ac_objext \
19056 conftest$ac_exeext conftest.$ac_ext
19059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
19060 $as_echo "$am_cv_langinfo_codeset" >&6; }
19061 if test $am_cv_langinfo_codeset = yes; then
19063 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
19070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a traditional french locale" >&5
19071 $as_echo_n "checking for a traditional french locale... " >&6; }
19072 if ${gt_cv_locale_fr+:} false; then :
19073 $as_echo_n "(cached) " >&6
19076 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19077 /* end confdefs.h. */
19079 #include <locale.h>
19081 #if HAVE_LANGINFO_CODESET
19082 # include <langinfo.h>
19084 #include <stdlib.h>
19085 #include <string.h>
19089 /* Check whether the given locale name is recognized by the system. */
19090 #if (defined _WIN32 || defined __WIN32__) && !defined __CYGWIN__
19091 /* On native Windows, setlocale(category, "") looks at the system settings,
19092 not at the environment variables. Also, when an encoding suffix such
19093 as ".65001" or ".54936" is specified, it succeeds but sets the LC_CTYPE
19094 category of the locale to "C". */
19095 if (setlocale (LC_ALL, getenv ("LC_ALL")) == NULL
19096 || strcmp (setlocale (LC_CTYPE, NULL), "C") == 0)
19099 if (setlocale (LC_ALL, "") == NULL) return 1;
19101 /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
19102 On Mac OS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
19103 is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
19104 On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
19105 succeeds but then nl_langinfo(CODESET) is "646". In this situation,
19106 some unit tests fail.
19107 On MirBSD 10, when an unsupported locale is specified, setlocale()
19108 succeeds but then nl_langinfo(CODESET) is "UTF-8". */
19109 #if HAVE_LANGINFO_CODESET
19111 const char *cs = nl_langinfo (CODESET);
19112 if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0
19113 || strcmp (cs, "UTF-8") == 0)
19118 /* On Cygwin, avoid locale names without encoding suffix, because the
19119 locale_charset() function relies on the encoding suffix. Note that
19120 LC_ALL is set on the command line. */
19121 if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
19123 /* Check whether in the abbreviation of the second month, the second
19124 character (should be U+00E9: LATIN SMALL LETTER E WITH ACUTE) is only
19125 one byte long. This excludes the UTF-8 encoding. */
19126 t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
19127 if (strftime (buf, sizeof (buf), "%b", &t) < 3 || buf[2] != 'v') return 1;
19128 #if !defined __BIONIC__ /* Bionic libc's 'struct lconv' is just a dummy. */
19129 /* Check whether the decimal separator is a comma.
19130 On NetBSD 3.0 in the fr_FR.ISO8859-1 locale, localeconv()->decimal_point
19131 are nl_langinfo(RADIXCHAR) are both ".". */
19132 if (localeconv () ->decimal_point[0] != ',') return 1;
19138 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
19139 (eval $ac_link) 2>&5
19141 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19142 test $ac_status = 0; } && test -s conftest$ac_exeext; then
19144 # Handle native Windows specially, because there setlocale() interprets
19145 # "ar" as "Arabic" or "Arabic_Saudi Arabia.1256",
19146 # "fr" or "fra" as "French" or "French_France.1252",
19147 # "ge"(!) or "deu"(!) as "German" or "German_Germany.1252",
19148 # "ja" as "Japanese" or "Japanese_Japan.932",
19151 # Test for the native Windows locale name.
19152 if (LC_ALL=French_France.1252 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
19153 gt_cv_locale_fr=French_France.1252
19156 gt_cv_locale_fr=none
19160 # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
19161 # otherwise on Mac OS X 10.3.5 the LC_TIME=C from the beginning of the
19162 # configure script would override the LC_ALL setting. Likewise for
19163 # LC_CTYPE, which is also set at the beginning of the configure script.
19164 # Test for the usual locale name.
19165 if (LC_ALL=fr_FR LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
19166 gt_cv_locale_fr=fr_FR
19168 # Test for the locale name with explicit encoding suffix.
19169 if (LC_ALL=fr_FR.ISO-8859-1 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
19170 gt_cv_locale_fr=fr_FR.ISO-8859-1
19172 # Test for the AIX, OSF/1, FreeBSD, NetBSD, OpenBSD locale name.
19173 if (LC_ALL=fr_FR.ISO8859-1 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
19174 gt_cv_locale_fr=fr_FR.ISO8859-1
19176 # Test for the HP-UX locale name.
19177 if (LC_ALL=fr_FR.iso88591 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
19178 gt_cv_locale_fr=fr_FR.iso88591
19180 # Test for the Solaris 7 locale name.
19181 if (LC_ALL=fr LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
19185 gt_cv_locale_fr=none
19197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_fr" >&5
19198 $as_echo "$gt_cv_locale_fr" >&6; }
19199 LOCALE_FR=$gt_cv_locale_fr
19209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether // is distinct from /" >&5
19210 $as_echo_n "checking whether // is distinct from /... " >&6; }
19211 if ${gl_cv_double_slash_root+:} false; then :
19212 $as_echo_n "(cached) " >&6
19214 if test x"$cross_compiling" = xyes ; then
19215 # When cross-compiling, there is no way to tell whether // is special
19216 # short of a list of hosts. However, the only known hosts to date
19217 # that have a distinct // are Apollo DomainOS (too old to port to),
19218 # Cygwin, and z/OS. If anyone knows of another system for which // has
19219 # special semantics and is distinct from /, please report it to
19220 # <bug-gnulib@gnu.org>.
19222 *-cygwin | i370-ibm-openedition)
19223 gl_cv_double_slash_root=yes ;;
19225 # Be optimistic and assume that / and // are the same when we
19227 gl_cv_double_slash_root='unknown, assuming no' ;;
19230 set x `ls -di / // 2>/dev/null`
19231 if test "$2" = "$4" && wc //dev/null >/dev/null 2>&1; then
19232 gl_cv_double_slash_root=no
19234 gl_cv_double_slash_root=yes
19238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_double_slash_root" >&5
19239 $as_echo "$gl_cv_double_slash_root" >&6; }
19240 if test "$gl_cv_double_slash_root" = yes; then
19242 $as_echo "#define DOUBLE_SLASH_IS_DISTINCT_ROOT 1" >>confdefs.h
19259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether realpath works" >&5
19260 $as_echo_n "checking whether realpath works... " >&6; }
19261 if ${gl_cv_func_realpath_works+:} false; then :
19262 $as_echo_n "(cached) " >&6
19267 if test "$cross_compiling" = yes; then :
19269 # Guess yes on glibc systems.
19270 *-gnu* | gnu*) gl_cv_func_realpath_works="guessing yes" ;;
19271 # If we don't know, assume the worst.
19272 *) gl_cv_func_realpath_works="guessing no" ;;
19276 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19277 /* end confdefs.h. */
19281 #include <stdlib.h>
19282 #if defined __MACH__ && defined __APPLE__
19283 /* Avoid a crash on Mac OS X. */
19284 #include <mach/mach.h>
19285 #include <mach/mach_error.h>
19286 #include <mach/thread_status.h>
19287 #include <mach/exception.h>
19288 #include <mach/task.h>
19289 #include <pthread.h>
19290 /* The exception port on which our thread listens. */
19291 static mach_port_t our_exception_port;
19292 /* The main function of the thread listening for exceptions of type
19295 mach_exception_thread (void *arg)
19297 /* Buffer for a message to be received. */
19299 mach_msg_header_t head;
19300 mach_msg_body_t msgh_body;
19303 mach_msg_return_t retval;
19304 /* Wait for a message on the exception port. */
19305 retval = mach_msg (&msg.head, MACH_RCV_MSG | MACH_RCV_LARGE, 0, sizeof (msg),
19306 our_exception_port, MACH_MSG_TIMEOUT_NONE, MACH_PORT_NULL);
19307 if (retval != MACH_MSG_SUCCESS)
19312 nocrash_init (void)
19314 mach_port_t self = mach_task_self ();
19315 /* Allocate a port on which the thread shall listen for exceptions. */
19316 if (mach_port_allocate (self, MACH_PORT_RIGHT_RECEIVE, &our_exception_port)
19318 /* See http://web.mit.edu/darwin/src/modules/xnu/osfmk/man/mach_port_insert_right.html. */
19319 if (mach_port_insert_right (self, our_exception_port, our_exception_port,
19320 MACH_MSG_TYPE_MAKE_SEND)
19322 /* The exceptions we want to catch. Only EXC_BAD_ACCESS is interesting
19324 exception_mask_t mask = EXC_MASK_BAD_ACCESS;
19325 /* Create the thread listening on the exception port. */
19326 pthread_attr_t attr;
19328 if (pthread_attr_init (&attr) == 0
19329 && pthread_attr_setdetachstate (&attr, PTHREAD_CREATE_DETACHED) == 0
19330 && pthread_create (&thread, &attr, mach_exception_thread, NULL) == 0) {
19331 pthread_attr_destroy (&attr);
19332 /* Replace the exception port info for these exceptions with our own.
19333 Note that we replace the exception port for the entire task, not only
19334 for a particular thread. This has the effect that when our exception
19335 port gets the message, the thread specific exception port has already
19336 been asked, and we don't need to bother about it.
19337 See http://web.mit.edu/darwin/src/modules/xnu/osfmk/man/task_set_exception_ports.html. */
19338 task_set_exception_ports (self, mask, our_exception_port,
19339 EXCEPTION_DEFAULT, MACHINE_THREAD_STATE);
19344 #elif (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
19345 /* Avoid a crash on native Windows. */
19346 #define WIN32_LEAN_AND_MEAN
19347 #include <windows.h>
19348 #include <winerror.h>
19350 exception_filter (EXCEPTION_POINTERS *ExceptionInfo)
19352 switch (ExceptionInfo->ExceptionRecord->ExceptionCode)
19354 case EXCEPTION_ACCESS_VIOLATION:
19355 case EXCEPTION_IN_PAGE_ERROR:
19356 case EXCEPTION_STACK_OVERFLOW:
19357 case EXCEPTION_GUARD_PAGE:
19358 case EXCEPTION_PRIV_INSTRUCTION:
19359 case EXCEPTION_ILLEGAL_INSTRUCTION:
19360 case EXCEPTION_DATATYPE_MISALIGNMENT:
19361 case EXCEPTION_ARRAY_BOUNDS_EXCEEDED:
19362 case EXCEPTION_NONCONTINUABLE_EXCEPTION:
19365 return EXCEPTION_CONTINUE_SEARCH;
19368 nocrash_init (void)
19370 SetUnhandledExceptionFilter ((LPTOP_LEVEL_EXCEPTION_FILTER) exception_filter);
19373 /* Avoid a crash on POSIX systems. */
19374 #include <signal.h>
19375 /* A POSIX signal handler. */
19377 exception_handler (int sig)
19382 nocrash_init (void)
19385 signal (SIGSEGV, exception_handler);
19388 signal (SIGBUS, exception_handler);
19393 #include <stdlib.h>
19394 #include <string.h>
19402 char *name = realpath ("conftest.a", NULL);
19403 if (!(name && *name == '/'))
19407 char *name = realpath ("conftest.b/../conftest.a", NULL);
19412 char *name = realpath ("conftest.a/", NULL);
19417 char *name1 = realpath (".", NULL);
19418 char *name2 = realpath ("conftest.d//./..", NULL);
19419 if (strcmp (name1, name2) != 0)
19429 if ac_fn_c_try_run "$LINENO"; then :
19430 gl_cv_func_realpath_works=yes
19432 gl_cv_func_realpath_works=no
19434 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19435 conftest.$ac_objext conftest.beam conftest.$ac_ext
19438 rm -rf conftest.a conftest.d
19441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_realpath_works" >&5
19442 $as_echo "$gl_cv_func_realpath_works" >&6; }
19443 case "$gl_cv_func_realpath_works" in
19446 $as_echo "#define FUNC_REALPATH_WORKS 1" >>confdefs.h
19454 GNULIB_CALLOC_POSIX=0;
19455 GNULIB_CANONICALIZE_FILE_NAME=0;
19456 GNULIB_GETLOADAVG=0;
19457 GNULIB_GETSUBOPT=0;
19459 GNULIB_MALLOC_POSIX=0;
19463 GNULIB_MKOSTEMPS=0;
19466 GNULIB_POSIX_OPENPT=0;
19468 GNULIB_PTSNAME_R=0;
19472 GNULIB_REALLOC_POSIX=0;
19475 GNULIB_SECURE_GETENV=0;
19480 GNULIB_SYSTEM_POSIX=0;
19486 HAVE_CANONICALIZE_FILE_NAME=1;
19487 HAVE_DECL_GETLOADAVG=1;
19495 HAVE_POSIX_OPENPT=1;
19503 HAVE_SECURE_GETENV=1;
19505 HAVE_DECL_SETENV=1;
19509 HAVE_STRUCT_RANDOM_DATA=1;
19510 HAVE_SYS_LOADAVG_H=0;
19512 HAVE_DECL_UNSETENV=1;
19514 REPLACE_CANONICALIZE_FILE_NAME=0;
19519 REPLACE_PTSNAME_R=0;
19521 REPLACE_RANDOM_R=0;
19523 REPLACE_REALPATH=0;
19526 REPLACE_UNSETENV=0;
19577 GNULIB_EUIDACCESS=0;
19578 GNULIB_FACCESSAT=0;
19581 GNULIB_FDATASYNC=0;
19583 GNULIB_FTRUNCATE=0;
19585 GNULIB_GETDOMAINNAME=0;
19586 GNULIB_GETDTABLESIZE=0;
19587 GNULIB_GETGROUPS=0;
19588 GNULIB_GETHOSTNAME=0;
19590 GNULIB_GETLOGIN_R=0;
19591 GNULIB_GETPAGESIZE=0;
19592 GNULIB_GETUSERSHELL=0;
19593 GNULIB_GROUP_MEMBER=0;
19605 GNULIB_READLINKAT=0;
19607 GNULIB_SETHOSTNAME=0;
19610 GNULIB_SYMLINKAT=0;
19611 GNULIB_TTYNAME_R=0;
19612 GNULIB_UNISTD_H_NONBLOCKING=0;
19613 GNULIB_UNISTD_H_SIGPIPE=0;
19628 HAVE_GETDTABLESIZE=1;
19630 HAVE_GETHOSTNAME=1;
19632 HAVE_GETPAGESIZE=1;
19633 HAVE_GROUP_MEMBER=1;
19643 HAVE_SETHOSTNAME=1;
19649 HAVE_DECL_ENVIRON=1;
19650 HAVE_DECL_FCHDIR=1;
19651 HAVE_DECL_FDATASYNC=1;
19652 HAVE_DECL_GETDOMAINNAME=1;
19653 HAVE_DECL_GETLOGIN_R=1;
19654 HAVE_DECL_GETPAGESIZE=1;
19655 HAVE_DECL_GETUSERSHELL=1;
19656 HAVE_DECL_SETHOSTNAME=1;
19657 HAVE_DECL_TTYNAME_R=1;
19659 HAVE_SYS_PARAM_H=0;
19664 REPLACE_FCHOWNAT=0;
19665 REPLACE_FTRUNCATE=0;
19667 REPLACE_GETDOMAINNAME=0;
19668 REPLACE_GETDTABLESIZE=0;
19669 REPLACE_GETLOGIN_R=0;
19670 REPLACE_GETGROUPS=0;
19671 REPLACE_GETPAGESIZE=0;
19680 REPLACE_READLINK=0;
19684 REPLACE_TTYNAME_R=0;
19686 REPLACE_UNLINKAT=0;
19689 UNISTD_H_HAVE_WINSOCK2_H=0;
19690 UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS=0;
19723 if test $ac_cv_func__set_invalid_parameter_handler = yes; then
19724 HAVE_MSVC_INVALID_PARAMETER_HANDLER=1
19726 $as_echo "#define HAVE_MSVC_INVALID_PARAMETER_HANDLER 1" >>confdefs.h
19729 HAVE_MSVC_INVALID_PARAMETER_HANDLER=0
19735 SYS_IOCTL_H_HAVE_WINSOCK2_H=0;
19736 SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS=0;
19753 GNULIB_REWINDDIR=0;
19756 GNULIB_FDOPENDIR=0;
19758 GNULIB_ALPHASORT=0;
19764 HAVE_DECL_FDOPENDIR=1;
19769 REPLACE_CLOSEDIR=0;
19771 REPLACE_FDOPENDIR=0;
19775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the preprocessor supports include_next" >&5
19776 $as_echo_n "checking whether the preprocessor supports include_next... " >&6; }
19777 if ${gl_cv_have_include_next+:} false; then :
19778 $as_echo_n "(cached) " >&6
19780 rm -rf conftestd1a conftestd1b conftestd2
19781 mkdir conftestd1a conftestd1b conftestd2
19782 cat <<EOF > conftestd1a/conftest.h
19783 #define DEFINED_IN_CONFTESTD1
19784 #include_next <conftest.h>
19785 #ifdef DEFINED_IN_CONFTESTD2
19788 #error "include_next doesn't work"
19791 cat <<EOF > conftestd1b/conftest.h
19792 #define DEFINED_IN_CONFTESTD1
19794 #include_next <conftest.h>
19795 #ifdef DEFINED_IN_CONFTESTD2
19798 #error "include_next doesn't work"
19801 cat <<EOF > conftestd2/conftest.h
19802 #ifndef DEFINED_IN_CONFTESTD1
19803 #error "include_next test doesn't work"
19805 #define DEFINED_IN_CONFTESTD2
19807 gl_save_CPPFLAGS="$CPPFLAGS"
19808 CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1b -Iconftestd2"
19809 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19810 /* end confdefs.h. */
19811 #include <conftest.h>
19813 if ac_fn_c_try_compile "$LINENO"; then :
19814 gl_cv_have_include_next=yes
19816 CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1a -Iconftestd2"
19817 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19818 /* end confdefs.h. */
19819 #include <conftest.h>
19821 if ac_fn_c_try_compile "$LINENO"; then :
19822 gl_cv_have_include_next=buggy
19824 gl_cv_have_include_next=no
19826 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19829 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19830 CPPFLAGS="$gl_save_CPPFLAGS"
19831 rm -rf conftestd1a conftestd1b conftestd2
19834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_have_include_next" >&5
19835 $as_echo "$gl_cv_have_include_next" >&6; }
19836 PRAGMA_SYSTEM_HEADER=
19837 if test $gl_cv_have_include_next = yes; then
19838 INCLUDE_NEXT=include_next
19839 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next
19840 if test -n "$GCC"; then
19841 PRAGMA_SYSTEM_HEADER='#pragma GCC system_header'
19844 if test $gl_cv_have_include_next = buggy; then
19845 INCLUDE_NEXT=include
19846 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next
19848 INCLUDE_NEXT=include
19849 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include
19855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system header files limit the line length" >&5
19856 $as_echo_n "checking whether system header files limit the line length... " >&6; }
19857 if ${gl_cv_pragma_columns+:} false; then :
19858 $as_echo_n "(cached) " >&6
19860 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19861 /* end confdefs.h. */
19868 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19869 $EGREP "choke me" >/dev/null 2>&1; then :
19870 gl_cv_pragma_columns=yes
19872 gl_cv_pragma_columns=no
19878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_pragma_columns" >&5
19879 $as_echo "$gl_cv_pragma_columns" >&6; }
19880 if test $gl_cv_pragma_columns = yes; then
19881 PRAGMA_COLUMNS="#pragma COLUMNS 10000"
19909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if environ is properly declared" >&5
19910 $as_echo_n "checking if environ is properly declared... " >&6; }
19911 if ${gt_cv_var_environ_declaration+:} false; then :
19912 $as_echo_n "(cached) " >&6
19915 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19916 /* end confdefs.h. */
19918 #include <unistd.h>
19920 /* mingw, BeOS, Haiku declare environ in <stdlib.h>, not in <unistd.h>. */
19921 #include <stdlib.h>
19923 extern struct { int foo; } environ;
19932 if ac_fn_c_try_compile "$LINENO"; then :
19933 gt_cv_var_environ_declaration=no
19935 gt_cv_var_environ_declaration=yes
19937 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_var_environ_declaration" >&5
19941 $as_echo "$gt_cv_var_environ_declaration" >&6; }
19942 if test $gt_cv_var_environ_declaration = yes; then
19944 $as_echo "#define HAVE_ENVIRON_DECL 1" >>confdefs.h
19949 if test $gt_cv_var_environ_declaration != yes; then
19950 HAVE_DECL_ENVIRON=0
19955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for complete errno.h" >&5
19956 $as_echo_n "checking for complete errno.h... " >&6; }
19957 if ${gl_cv_header_errno_h_complete+:} false; then :
19958 $as_echo_n "(cached) " >&6
19961 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19962 /* end confdefs.h. */
19965 #if !defined ETXTBSY
19968 #if !defined ENOMSG
19974 #if !defined ENOLINK
19977 #if !defined EPROTO
19980 #if !defined EMULTIHOP
19983 #if !defined EBADMSG
19986 #if !defined EOVERFLOW
19989 #if !defined ENOTSUP
19992 #if !defined ENETRESET
19995 #if !defined ECONNABORTED
19998 #if !defined ESTALE
20001 #if !defined EDQUOT
20004 #if !defined ECANCELED
20007 #if !defined EOWNERDEAD
20010 #if !defined ENOTRECOVERABLE
20013 #if !defined EILSEQ
20018 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20019 $EGREP "booboo" >/dev/null 2>&1; then :
20020 gl_cv_header_errno_h_complete=no
20022 gl_cv_header_errno_h_complete=yes
20028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_complete" >&5
20029 $as_echo "$gl_cv_header_errno_h_complete" >&6; }
20030 if test $gl_cv_header_errno_h_complete = yes; then
20041 if test $gl_cv_have_include_next = yes; then
20042 gl_cv_next_errno_h='<'errno.h'>'
20044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <errno.h>" >&5
20045 $as_echo_n "checking absolute name of <errno.h>... " >&6; }
20046 if ${gl_cv_next_errno_h+:} false; then :
20047 $as_echo_n "(cached) " >&6
20052 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20053 /* end confdefs.h. */
20057 aix*) gl_absname_cpp="$ac_cpp -C" ;;
20058 *) gl_absname_cpp="$ac_cpp" ;;
20063 gl_dirsep_regex='[/\\]'
20066 gl_dirsep_regex='\/'
20069 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
20070 gl_header_literal_regex=`echo 'errno.h' \
20071 | sed -e "$gl_make_literal_regex_sed"`
20072 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
20073 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
20079 gl_cv_absolute_errno_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
20080 sed -n "$gl_absolute_header_sed"`
20082 gl_header=$gl_cv_absolute_errno_h
20083 gl_cv_next_errno_h='"'$gl_header'"'
20087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_errno_h" >&5
20088 $as_echo "$gl_cv_next_errno_h" >&6; }
20090 NEXT_ERRNO_H=$gl_cv_next_errno_h
20092 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
20093 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
20094 gl_next_as_first_directive='<'errno.h'>'
20096 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
20097 gl_next_as_first_directive=$gl_cv_next_errno_h
20099 NEXT_AS_FIRST_DIRECTIVE_ERRNO_H=$gl_next_as_first_directive
20107 if test -n "$ERRNO_H"; then
20108 GL_GENERATE_ERRNO_H_TRUE=
20109 GL_GENERATE_ERRNO_H_FALSE='#'
20111 GL_GENERATE_ERRNO_H_TRUE='#'
20112 GL_GENERATE_ERRNO_H_FALSE=
20116 if test -n "$ERRNO_H"; then
20117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EMULTIHOP value" >&5
20118 $as_echo_n "checking for EMULTIHOP value... " >&6; }
20119 if ${gl_cv_header_errno_h_EMULTIHOP+:} false; then :
20120 $as_echo_n "(cached) " >&6
20123 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20124 /* end confdefs.h. */
20132 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20133 $EGREP "yes" >/dev/null 2>&1; then :
20134 gl_cv_header_errno_h_EMULTIHOP=yes
20136 gl_cv_header_errno_h_EMULTIHOP=no
20140 if test $gl_cv_header_errno_h_EMULTIHOP = no; then
20141 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20142 /* end confdefs.h. */
20144 #define _XOPEN_SOURCE_EXTENDED 1
20151 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20152 $EGREP "yes" >/dev/null 2>&1; then :
20153 gl_cv_header_errno_h_EMULTIHOP=hidden
20157 if test $gl_cv_header_errno_h_EMULTIHOP = hidden; then
20158 if ac_fn_c_compute_int "$LINENO" "EMULTIHOP" "gl_cv_header_errno_h_EMULTIHOP" "
20159 #define _XOPEN_SOURCE_EXTENDED 1
20161 /* The following two lines are a workaround against an autoconf-2.52 bug. */
20163 #include <stdlib.h>
20172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_EMULTIHOP" >&5
20173 $as_echo "$gl_cv_header_errno_h_EMULTIHOP" >&6; }
20174 case $gl_cv_header_errno_h_EMULTIHOP in
20176 EMULTIHOP_HIDDEN=0; EMULTIHOP_VALUE=
20179 EMULTIHOP_HIDDEN=1; EMULTIHOP_VALUE="$gl_cv_header_errno_h_EMULTIHOP"
20187 if test -n "$ERRNO_H"; then
20188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ENOLINK value" >&5
20189 $as_echo_n "checking for ENOLINK value... " >&6; }
20190 if ${gl_cv_header_errno_h_ENOLINK+:} false; then :
20191 $as_echo_n "(cached) " >&6
20194 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20195 /* end confdefs.h. */
20203 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20204 $EGREP "yes" >/dev/null 2>&1; then :
20205 gl_cv_header_errno_h_ENOLINK=yes
20207 gl_cv_header_errno_h_ENOLINK=no
20211 if test $gl_cv_header_errno_h_ENOLINK = no; then
20212 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20213 /* end confdefs.h. */
20215 #define _XOPEN_SOURCE_EXTENDED 1
20222 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20223 $EGREP "yes" >/dev/null 2>&1; then :
20224 gl_cv_header_errno_h_ENOLINK=hidden
20228 if test $gl_cv_header_errno_h_ENOLINK = hidden; then
20229 if ac_fn_c_compute_int "$LINENO" "ENOLINK" "gl_cv_header_errno_h_ENOLINK" "
20230 #define _XOPEN_SOURCE_EXTENDED 1
20232 /* The following two lines are a workaround against an autoconf-2.52 bug. */
20234 #include <stdlib.h>
20243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_ENOLINK" >&5
20244 $as_echo "$gl_cv_header_errno_h_ENOLINK" >&6; }
20245 case $gl_cv_header_errno_h_ENOLINK in
20247 ENOLINK_HIDDEN=0; ENOLINK_VALUE=
20250 ENOLINK_HIDDEN=1; ENOLINK_VALUE="$gl_cv_header_errno_h_ENOLINK"
20258 if test -n "$ERRNO_H"; then
20259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EOVERFLOW value" >&5
20260 $as_echo_n "checking for EOVERFLOW value... " >&6; }
20261 if ${gl_cv_header_errno_h_EOVERFLOW+:} false; then :
20262 $as_echo_n "(cached) " >&6
20265 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20266 /* end confdefs.h. */
20274 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20275 $EGREP "yes" >/dev/null 2>&1; then :
20276 gl_cv_header_errno_h_EOVERFLOW=yes
20278 gl_cv_header_errno_h_EOVERFLOW=no
20282 if test $gl_cv_header_errno_h_EOVERFLOW = no; then
20283 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20284 /* end confdefs.h. */
20286 #define _XOPEN_SOURCE_EXTENDED 1
20293 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20294 $EGREP "yes" >/dev/null 2>&1; then :
20295 gl_cv_header_errno_h_EOVERFLOW=hidden
20299 if test $gl_cv_header_errno_h_EOVERFLOW = hidden; then
20300 if ac_fn_c_compute_int "$LINENO" "EOVERFLOW" "gl_cv_header_errno_h_EOVERFLOW" "
20301 #define _XOPEN_SOURCE_EXTENDED 1
20303 /* The following two lines are a workaround against an autoconf-2.52 bug. */
20305 #include <stdlib.h>
20314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_EOVERFLOW" >&5
20315 $as_echo "$gl_cv_header_errno_h_EOVERFLOW" >&6; }
20316 case $gl_cv_header_errno_h_EOVERFLOW in
20318 EOVERFLOW_HIDDEN=0; EOVERFLOW_VALUE=
20321 EOVERFLOW_HIDDEN=1; EOVERFLOW_VALUE="$gl_cv_header_errno_h_EOVERFLOW"
20329 ac_fn_c_check_decl "$LINENO" "strerror_r" "ac_cv_have_decl_strerror_r" "$ac_includes_default"
20330 if test "x$ac_cv_have_decl_strerror_r" = xyes; then :
20336 cat >>confdefs.h <<_ACEOF
20337 #define HAVE_DECL_STRERROR_R $ac_have_decl
20340 for ac_func in strerror_r
20342 ac_fn_c_check_func "$LINENO" "strerror_r" "ac_cv_func_strerror_r"
20343 if test "x$ac_cv_func_strerror_r" = xyes; then :
20344 cat >>confdefs.h <<_ACEOF
20345 #define HAVE_STRERROR_R 1
20351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strerror_r returns char *" >&5
20352 $as_echo_n "checking whether strerror_r returns char *... " >&6; }
20353 if ${ac_cv_func_strerror_r_char_p+:} false; then :
20354 $as_echo_n "(cached) " >&6
20357 ac_cv_func_strerror_r_char_p=no
20358 if test $ac_cv_have_decl_strerror_r = yes; then
20359 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20360 /* end confdefs.h. */
20361 $ac_includes_default
20367 char x = *strerror_r (0, buf, sizeof buf);
20368 char *p = strerror_r (0, buf, sizeof buf);
20375 if ac_fn_c_try_compile "$LINENO"; then :
20376 ac_cv_func_strerror_r_char_p=yes
20378 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20380 # strerror_r is not declared. Choose between
20381 # systems that have relatively inaccessible declarations for the
20382 # function. BeOS and DEC UNIX 4.0 fall in this category, but the
20383 # former has a strerror_r that returns char*, while the latter
20384 # has a strerror_r that returns `int'.
20385 # This test should segfault on the DEC system.
20386 if test "$cross_compiling" = yes; then :
20389 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20390 /* end confdefs.h. */
20391 $ac_includes_default
20392 extern char *strerror_r ();
20397 char x = *strerror_r (0, buf, sizeof buf);
20398 return ! isalpha (x);
20403 if ac_fn_c_try_run "$LINENO"; then :
20404 ac_cv_func_strerror_r_char_p=yes
20406 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20407 conftest.$ac_objext conftest.beam conftest.$ac_ext
20413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strerror_r_char_p" >&5
20414 $as_echo "$ac_cv_func_strerror_r_char_p" >&6; }
20415 if test $ac_cv_func_strerror_r_char_p = yes; then
20417 $as_echo "#define STRERROR_R_CHAR_P 1" >>confdefs.h
20425 ac_fn_c_check_decl "$LINENO" "fchdir" "ac_cv_have_decl_fchdir" "$ac_includes_default"
20426 if test "x$ac_cv_have_decl_fchdir" = xyes; then :
20432 cat >>confdefs.h <<_ACEOF
20433 #define HAVE_DECL_FCHDIR $ac_have_decl
20439 GNULIB_NONBLOCKING=0;
20475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fcntl.h" >&5
20476 $as_echo_n "checking for working fcntl.h... " >&6; }
20477 if ${gl_cv_header_working_fcntl_h+:} false; then :
20478 $as_echo_n "(cached) " >&6
20480 if test "$cross_compiling" = yes; then :
20481 gl_cv_header_working_fcntl_h=cross-compiling
20483 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20484 /* end confdefs.h. */
20485 #include <sys/types.h>
20486 #include <sys/stat.h>
20488 # include <unistd.h>
20489 #else /* on Windows with MSVC */
20491 # include <stdlib.h>
20492 # defined sleep(n) _sleep ((n) * 1000)
20496 #define O_NOATIME 0
20499 #define O_NOFOLLOW 0
20501 static int const constants[] =
20503 O_CREAT, O_EXCL, O_NOCTTY, O_TRUNC, O_APPEND,
20504 O_NONBLOCK, O_SYNC, O_ACCMODE, O_RDONLY, O_RDWR, O_WRONLY
20511 int result = !constants;
20514 static char const sym[] = "conftest.sym";
20515 if (symlink ("/dev/null", sym) != 0)
20519 int fd = open (sym, O_WRONLY | O_NOFOLLOW | O_CREAT, 0);
20526 if (unlink (sym) != 0 || symlink (".", sym) != 0)
20530 int fd = open (sym, O_RDONLY | O_NOFOLLOW);
20541 static char const file[] = "confdefs.h";
20542 int fd = open (file, O_RDONLY | O_NOATIME);
20548 if (fstat (fd, &st0) != 0)
20554 if (read (fd, &c, 1) != 1)
20558 if (close (fd) != 0)
20563 if (stat (file, &st1) != 0)
20566 if (st0.st_atime != st1.st_atime)
20578 if ac_fn_c_try_run "$LINENO"; then :
20579 gl_cv_header_working_fcntl_h=yes
20582 4) gl_cv_header_working_fcntl_h='no (bad O_NOFOLLOW)';; #(
20583 64) gl_cv_header_working_fcntl_h='no (bad O_NOATIME)';; #(
20584 68) gl_cv_header_working_fcntl_h='no (bad O_NOATIME, O_NOFOLLOW)';; #(
20585 *) gl_cv_header_working_fcntl_h='no';;
20588 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20589 conftest.$ac_objext conftest.beam conftest.$ac_ext
20593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_fcntl_h" >&5
20594 $as_echo "$gl_cv_header_working_fcntl_h" >&6; }
20596 case $gl_cv_header_working_fcntl_h in #(
20597 *O_NOATIME* | no | cross-compiling) ac_val=0;; #(
20601 cat >>confdefs.h <<_ACEOF
20602 #define HAVE_WORKING_O_NOATIME $ac_val
20606 case $gl_cv_header_working_fcntl_h in #(
20607 *O_NOFOLLOW* | no | cross-compiling) ac_val=0;; #(
20611 cat >>confdefs.h <<_ACEOF
20612 #define HAVE_WORKING_O_NOFOLLOW $ac_val
20616 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
20617 if test "x$ac_cv_type_pid_t" = xyes; then :
20621 cat >>confdefs.h <<_ACEOF
20627 ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
20628 if test "x$ac_cv_type_mode_t" = xyes; then :
20632 cat >>confdefs.h <<_ACEOF
20659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mbstate_t" >&5
20660 $as_echo_n "checking for mbstate_t... " >&6; }
20661 if ${ac_cv_type_mbstate_t+:} false; then :
20662 $as_echo_n "(cached) " >&6
20664 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20665 /* end confdefs.h. */
20666 $ac_includes_default
20667 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
20669 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
20670 included before <wchar.h>. */
20671 #include <stddef.h>
20678 mbstate_t x; return sizeof x;
20683 if ac_fn_c_try_compile "$LINENO"; then :
20684 ac_cv_type_mbstate_t=yes
20686 ac_cv_type_mbstate_t=no
20688 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_mbstate_t" >&5
20691 $as_echo "$ac_cv_type_mbstate_t" >&6; }
20692 if test $ac_cv_type_mbstate_t = yes; then
20694 $as_echo "#define HAVE_MBSTATE_T 1" >>confdefs.h
20698 $as_echo "#define mbstate_t int" >>confdefs.h
20750 GNULIB_UTIMENSAT=0;
20764 REPLACE_FUTIMENS=0;
20770 REPLACE_UTIMENSAT=0;
20772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
20773 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
20774 if ${ac_cv_header_stat_broken+:} false; then :
20775 $as_echo_n "(cached) " >&6
20777 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20778 /* end confdefs.h. */
20779 #include <sys/types.h>
20780 #include <sys/stat.h>
20782 #if defined S_ISBLK && defined S_IFDIR
20783 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
20786 #if defined S_ISBLK && defined S_IFCHR
20787 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
20790 #if defined S_ISLNK && defined S_IFREG
20791 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
20794 #if defined S_ISSOCK && defined S_IFREG
20795 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
20799 if ac_fn_c_try_compile "$LINENO"; then :
20800 ac_cv_header_stat_broken=no
20802 ac_cv_header_stat_broken=yes
20804 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
20807 $as_echo "$ac_cv_header_stat_broken" >&6; }
20808 if test $ac_cv_header_stat_broken = yes; then
20810 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
20823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit off_t" >&5
20824 $as_echo_n "checking for 64-bit off_t... " >&6; }
20825 if ${gl_cv_type_off_t_64+:} false; then :
20826 $as_echo_n "(cached) " >&6
20828 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20829 /* end confdefs.h. */
20830 #include <sys/types.h>
20831 int verify_off_t_size[sizeof (off_t) >= 8 ? 1 : -1];
20841 if ac_fn_c_try_compile "$LINENO"; then :
20842 gl_cv_type_off_t_64=yes
20844 gl_cv_type_off_t_64=no
20846 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_type_off_t_64" >&5
20850 $as_echo "$gl_cv_type_off_t_64" >&6; }
20851 if test $gl_cv_type_off_t_64 = no; then
20852 WINDOWS_64_BIT_OFF_T=1
20854 WINDOWS_64_BIT_OFF_T=0
20856 WINDOWS_64_BIT_ST_SIZE=1
20859 WINDOWS_64_BIT_OFF_T=0
20860 WINDOWS_64_BIT_ST_SIZE=0
20884 if test $gl_cv_have_include_next = yes; then
20885 gl_cv_next_sys_stat_h='<'sys/stat.h'>'
20887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/stat.h>" >&5
20888 $as_echo_n "checking absolute name of <sys/stat.h>... " >&6; }
20889 if ${gl_cv_next_sys_stat_h+:} false; then :
20890 $as_echo_n "(cached) " >&6
20893 if test $ac_cv_header_sys_stat_h = yes; then
20898 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20899 /* end confdefs.h. */
20900 #include <sys/stat.h>
20903 aix*) gl_absname_cpp="$ac_cpp -C" ;;
20904 *) gl_absname_cpp="$ac_cpp" ;;
20909 gl_dirsep_regex='[/\\]'
20912 gl_dirsep_regex='\/'
20915 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
20916 gl_header_literal_regex=`echo 'sys/stat.h' \
20917 | sed -e "$gl_make_literal_regex_sed"`
20918 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
20919 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
20925 gl_cv_absolute_sys_stat_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
20926 sed -n "$gl_absolute_header_sed"`
20928 gl_header=$gl_cv_absolute_sys_stat_h
20929 gl_cv_next_sys_stat_h='"'$gl_header'"'
20931 gl_cv_next_sys_stat_h='<'sys/stat.h'>'
20936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_stat_h" >&5
20937 $as_echo "$gl_cv_next_sys_stat_h" >&6; }
20939 NEXT_SYS_STAT_H=$gl_cv_next_sys_stat_h
20941 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
20942 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
20943 gl_next_as_first_directive='<'sys/stat.h'>'
20945 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
20946 gl_next_as_first_directive=$gl_cv_next_sys_stat_h
20948 NEXT_AS_FIRST_DIRECTIVE_SYS_STAT_H=$gl_next_as_first_directive
20960 if test $WINDOWS_64_BIT_ST_SIZE = 1; then
20962 $as_echo "#define _GL_WINDOWS_64_BIT_ST_SIZE 1" >>confdefs.h
20966 ac_fn_c_check_type "$LINENO" "nlink_t" "ac_cv_type_nlink_t" "#include <sys/types.h>
20967 #include <sys/stat.h>
20969 if test "x$ac_cv_type_nlink_t" = xyes; then :
20973 $as_echo "#define nlink_t int" >>confdefs.h
20979 for gl_func in fchmodat fstat fstatat futimens lchmod lstat mkdirat mkfifo mkfifoat mknod mknodat stat utimensat; do
20980 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
20981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
20982 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
20983 if eval \${$as_gl_Symbol+:} false; then :
20984 $as_echo_n "(cached) " >&6
20986 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20987 /* end confdefs.h. */
20988 #include <sys/stat.h>
20999 if ac_fn_c_try_compile "$LINENO"; then :
21000 eval "$as_gl_Symbol=yes"
21002 eval "$as_gl_Symbol=no"
21004 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21006 eval ac_res=\$$as_gl_Symbol
21007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
21008 $as_echo "$ac_res" >&6; }
21009 if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
21010 cat >>confdefs.h <<_ACEOF
21011 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
21014 eval ac_cv_have_decl_$gl_func=yes
21020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat correctly handles trailing slash" >&5
21021 $as_echo_n "checking whether lstat correctly handles trailing slash... " >&6; }
21022 if ${gl_cv_func_lstat_dereferences_slashed_symlink+:} false; then :
21023 $as_echo_n "(cached) " >&6
21025 rm -f conftest.sym conftest.file
21026 echo >conftest.file
21027 if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
21028 if test "$cross_compiling" = yes; then :
21030 # Guess yes on glibc systems.
21031 *-gnu*) gl_cv_func_lstat_dereferences_slashed_symlink="guessing yes" ;;
21032 # If we don't know, assume the worst.
21033 *) gl_cv_func_lstat_dereferences_slashed_symlink="guessing no" ;;
21037 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21038 /* end confdefs.h. */
21039 $ac_includes_default
21044 /* Linux will dereference the symlink and fail, as required by
21045 POSIX. That is better in the sense that it means we will not
21046 have to compile and use the lstat wrapper. */
21047 return lstat ("conftest.sym/", &sbuf) == 0;
21053 if ac_fn_c_try_run "$LINENO"; then :
21054 gl_cv_func_lstat_dereferences_slashed_symlink=yes
21056 gl_cv_func_lstat_dereferences_slashed_symlink=no
21058 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21059 conftest.$ac_objext conftest.beam conftest.$ac_ext
21063 # If the 'ln -s' command failed, then we probably don't even
21064 # have an lstat function.
21065 gl_cv_func_lstat_dereferences_slashed_symlink="guessing no"
21067 rm -f conftest.sym conftest.file
21070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_lstat_dereferences_slashed_symlink" >&5
21071 $as_echo "$gl_cv_func_lstat_dereferences_slashed_symlink" >&6; }
21072 case "$gl_cv_func_lstat_dereferences_slashed_symlink" in
21075 cat >>confdefs.h <<_ACEOF
21076 #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
21100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getcwd (NULL, 0) allocates memory for result" >&5
21101 $as_echo_n "checking whether getcwd (NULL, 0) allocates memory for result... " >&6; }
21102 if ${gl_cv_func_getcwd_null+:} false; then :
21103 $as_echo_n "(cached) " >&6
21105 if test "$cross_compiling" = yes; then :
21107 # Guess yes on glibc systems.
21108 *-gnu*) gl_cv_func_getcwd_null="guessing yes";;
21109 # Guess yes on Cygwin.
21110 cygwin*) gl_cv_func_getcwd_null="guessing yes";;
21111 # If we don't know, assume the worst.
21112 *) gl_cv_func_getcwd_null="guessing no";;
21116 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21117 /* end confdefs.h. */
21120 # include <unistd.h>
21121 # else /* on Windows with MSVC */
21122 # include <direct.h>
21132 #if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
21133 /* mingw cwd does not start with '/', but getcwd does allocate.
21134 However, mingw fails to honor non-zero size. */
21136 if (chdir ("/") != 0)
21140 char *f = getcwd (NULL, 0);
21155 if ac_fn_c_try_run "$LINENO"; then :
21156 gl_cv_func_getcwd_null=yes
21158 gl_cv_func_getcwd_null=no
21160 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21161 conftest.$ac_objext conftest.beam conftest.$ac_ext
21165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getcwd_null" >&5
21166 $as_echo "$gl_cv_func_getcwd_null" >&6; }
21169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getcwd with POSIX signature" >&5
21170 $as_echo_n "checking for getcwd with POSIX signature... " >&6; }
21171 if ${gl_cv_func_getcwd_posix_signature+:} false; then :
21172 $as_echo_n "(cached) " >&6
21174 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21175 /* end confdefs.h. */
21176 #include <unistd.h>
21184 char *getcwd (char *, size_t);
21191 if ac_fn_c_try_compile "$LINENO"; then :
21192 gl_cv_func_getcwd_posix_signature=yes
21194 gl_cv_func_getcwd_posix_signature=no
21196 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getcwd_posix_signature" >&5
21200 $as_echo "$gl_cv_func_getcwd_posix_signature" >&6; }
21203 ac_fn_c_check_decl "$LINENO" "getcwd" "ac_cv_have_decl_getcwd" "$ac_includes_default"
21204 if test "x$ac_cv_have_decl_getcwd" = xyes; then :
21210 cat >>confdefs.h <<_ACEOF
21211 #define HAVE_DECL_GETCWD $ac_have_decl
21224 GNULIB_FPRINTF_POSIX=0;
21240 GNULIB_OBSTACK_PRINTF=0;
21241 GNULIB_OBSTACK_PRINTF_POSIX=0;
21246 GNULIB_PRINTF_POSIX=0;
21255 GNULIB_SPRINTF_POSIX=0;
21256 GNULIB_STDIO_H_NONBLOCKING=0;
21257 GNULIB_STDIO_H_SIGPIPE=0;
21259 GNULIB_VASPRINTF=0;
21264 GNULIB_VFPRINTF_POSIX=0;
21266 GNULIB_VPRINTF_POSIX=0;
21267 GNULIB_VSNPRINTF=0;
21268 GNULIB_VSPRINTF_POSIX=0;
21269 HAVE_DECL_FPURGE=1;
21270 HAVE_DECL_FSEEKO=1;
21271 HAVE_DECL_FTELLO=1;
21272 HAVE_DECL_GETDELIM=1;
21273 HAVE_DECL_GETLINE=1;
21274 HAVE_DECL_OBSTACK_PRINTF=1;
21275 HAVE_DECL_SNPRINTF=1;
21276 HAVE_DECL_VSNPRINTF=1;
21297 REPLACE_GETDELIM=0;
21299 REPLACE_OBSTACK_PRINTF=0;
21305 REPLACE_RENAMEAT=0;
21306 REPLACE_SNPRINTF=0;
21308 REPLACE_STDIO_READ_FUNCS=0;
21309 REPLACE_STDIO_WRITE_FUNCS=0;
21311 REPLACE_VASPRINTF=0;
21312 REPLACE_VDPRINTF=0;
21313 REPLACE_VFPRINTF=0;
21315 REPLACE_VSNPRINTF=0;
21316 REPLACE_VSPRINTF=0;
21319 ac_fn_c_check_decl "$LINENO" "getdelim" "ac_cv_have_decl_getdelim" "$ac_includes_default"
21320 if test "x$ac_cv_have_decl_getdelim" = xyes; then :
21326 cat >>confdefs.h <<_ACEOF
21327 #define HAVE_DECL_GETDELIM $ac_have_decl
21342 ac_fn_c_check_decl "$LINENO" "getline" "ac_cv_have_decl_getline" "$ac_includes_default"
21343 if test "x$ac_cv_have_decl_getline" = xyes; then :
21349 cat >>confdefs.h <<_ACEOF
21350 #define HAVE_DECL_GETLINE $ac_have_decl
21355 ac_fn_c_check_decl "$LINENO" "getlogin_r" "ac_cv_have_decl_getlogin_r" "$ac_includes_default"
21356 if test "x$ac_cv_have_decl_getlogin_r" = xyes; then :
21362 cat >>confdefs.h <<_ACEOF
21363 #define HAVE_DECL_GETLOGIN_R $ac_have_decl
21373 ac_fn_c_check_decl "$LINENO" "getlogin" "ac_cv_have_decl_getlogin" "$ac_includes_default"
21374 if test "x$ac_cv_have_decl_getlogin" = xyes; then :
21380 cat >>confdefs.h <<_ACEOF
21381 #define HAVE_DECL_GETLOGIN $ac_have_decl
21409 if test $gl_cv_have_include_next = yes; then
21410 gl_cv_next_getopt_h='<'getopt.h'>'
21412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <getopt.h>" >&5
21413 $as_echo_n "checking absolute name of <getopt.h>... " >&6; }
21414 if ${gl_cv_next_getopt_h+:} false; then :
21415 $as_echo_n "(cached) " >&6
21418 if test $ac_cv_header_getopt_h = yes; then
21423 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21424 /* end confdefs.h. */
21425 #include <getopt.h>
21428 aix*) gl_absname_cpp="$ac_cpp -C" ;;
21429 *) gl_absname_cpp="$ac_cpp" ;;
21434 gl_dirsep_regex='[/\\]'
21437 gl_dirsep_regex='\/'
21440 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
21441 gl_header_literal_regex=`echo 'getopt.h' \
21442 | sed -e "$gl_make_literal_regex_sed"`
21443 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
21444 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
21450 gl_cv_absolute_getopt_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
21451 sed -n "$gl_absolute_header_sed"`
21453 gl_header=$gl_cv_absolute_getopt_h
21454 gl_cv_next_getopt_h='"'$gl_header'"'
21456 gl_cv_next_getopt_h='<'getopt.h'>'
21461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_getopt_h" >&5
21462 $as_echo "$gl_cv_next_getopt_h" >&6; }
21464 NEXT_GETOPT_H=$gl_cv_next_getopt_h
21466 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
21467 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
21468 gl_next_as_first_directive='<'getopt.h'>'
21470 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
21471 gl_next_as_first_directive=$gl_cv_next_getopt_h
21473 NEXT_AS_FIRST_DIRECTIVE_GETOPT_H=$gl_next_as_first_directive
21478 if test $ac_cv_header_getopt_h = yes; then
21487 if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU; then
21488 for ac_header in getopt.h
21490 ac_fn_c_check_header_mongrel "$LINENO" "getopt.h" "ac_cv_header_getopt_h" "$ac_includes_default"
21491 if test "x$ac_cv_header_getopt_h" = xyes; then :
21492 cat >>confdefs.h <<_ACEOF
21493 #define HAVE_GETOPT_H 1
21497 gl_replace_getopt=yes
21504 if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU; then
21505 for ac_func in getopt_long_only
21507 ac_fn_c_check_func "$LINENO" "getopt_long_only" "ac_cv_func_getopt_long_only"
21508 if test "x$ac_cv_func_getopt_long_only" = xyes; then :
21509 cat >>confdefs.h <<_ACEOF
21510 #define HAVE_GETOPT_LONG_ONLY 1
21514 gl_replace_getopt=yes
21520 if test -z "$gl_replace_getopt"; then
21521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getopt is POSIX compatible" >&5
21522 $as_echo_n "checking whether getopt is POSIX compatible... " >&6; }
21523 if ${gl_cv_func_getopt_posix+:} false; then :
21524 $as_echo_n "(cached) " >&6
21527 if test $cross_compiling = no; then
21528 if test "$cross_compiling" = yes; then :
21529 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
21530 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
21531 as_fn_error $? "cannot run test program while cross compiling
21532 See \`config.log' for more details" "$LINENO" 5; }
21534 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21535 /* end confdefs.h. */
21537 #include <unistd.h>
21538 #include <stdlib.h>
21539 #include <string.h>
21544 static char program[] = "program";
21545 static char a[] = "-a";
21546 static char foo[] = "foo";
21547 static char bar[] = "bar";
21548 char *argv[] = { program, a, foo, bar, NULL };
21551 c = getopt (4, argv, "ab");
21554 c = getopt (4, argv, "ab");
21557 if (!(optind == 2))
21563 if ac_fn_c_try_run "$LINENO"; then :
21564 gl_cv_func_getopt_posix=maybe
21566 gl_cv_func_getopt_posix=no
21568 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21569 conftest.$ac_objext conftest.beam conftest.$ac_ext
21572 if test $gl_cv_func_getopt_posix = maybe; then
21573 if test "$cross_compiling" = yes; then :
21574 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
21575 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
21576 as_fn_error $? "cannot run test program while cross compiling
21577 See \`config.log' for more details" "$LINENO" 5; }
21579 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21580 /* end confdefs.h. */
21582 #include <unistd.h>
21583 #include <stdlib.h>
21584 #include <string.h>
21589 static char program[] = "program";
21590 static char donald[] = "donald";
21591 static char p[] = "-p";
21592 static char billy[] = "billy";
21593 static char duck[] = "duck";
21594 static char a[] = "-a";
21595 static char bar[] = "bar";
21596 char *argv[] = { program, donald, p, billy, duck, a, bar, NULL };
21599 c = getopt (7, argv, "+abp:q:");
21602 if (!(strcmp (argv[0], "program") == 0))
21604 if (!(strcmp (argv[1], "donald") == 0))
21606 if (!(strcmp (argv[2], "-p") == 0))
21608 if (!(strcmp (argv[3], "billy") == 0))
21610 if (!(strcmp (argv[4], "duck") == 0))
21612 if (!(strcmp (argv[5], "-a") == 0))
21614 if (!(strcmp (argv[6], "bar") == 0))
21616 if (!(optind == 1))
21622 if ac_fn_c_try_run "$LINENO"; then :
21623 gl_cv_func_getopt_posix=maybe
21625 gl_cv_func_getopt_posix=no
21627 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21628 conftest.$ac_objext conftest.beam conftest.$ac_ext
21632 if test $gl_cv_func_getopt_posix = maybe; then
21633 if test "$cross_compiling" = yes; then :
21634 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
21635 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
21636 as_fn_error $? "cannot run test program while cross compiling
21637 See \`config.log' for more details" "$LINENO" 5; }
21639 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21640 /* end confdefs.h. */
21642 #include <unistd.h>
21643 #include <stdlib.h>
21644 #include <string.h>
21649 static char program[] = "program";
21650 static char ab[] = "-ab";
21651 char *argv[3] = { program, ab, NULL };
21652 if (getopt (2, argv, "ab:") != 'a')
21654 if (getopt (2, argv, "ab:") != '?')
21664 if ac_fn_c_try_run "$LINENO"; then :
21665 gl_cv_func_getopt_posix=yes
21667 gl_cv_func_getopt_posix=no
21669 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21670 conftest.$ac_objext conftest.beam conftest.$ac_ext
21676 darwin* | aix* | mingw*) gl_cv_func_getopt_posix="guessing no";;
21677 *) gl_cv_func_getopt_posix="guessing yes";;
21682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getopt_posix" >&5
21683 $as_echo "$gl_cv_func_getopt_posix" >&6; }
21684 case "$gl_cv_func_getopt_posix" in
21685 *no) gl_replace_getopt=yes ;;
21689 if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU; then
21690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working GNU getopt function" >&5
21691 $as_echo_n "checking for working GNU getopt function... " >&6; }
21692 if ${gl_cv_func_getopt_gnu+:} false; then :
21693 $as_echo_n "(cached) " >&6
21695 # Even with POSIXLY_CORRECT, the GNU extension of leading '-' in the
21696 # optstring is necessary for programs like m4 that have POSIX-mandated
21697 # semantics for supporting options interspersed with files.
21698 # Also, since getopt_long is a GNU extension, we require optind=0.
21699 # Bash ties 'set -o posix' to a non-exported POSIXLY_CORRECT;
21700 # so take care to revert to the correct (non-)export state.
21701 gl_awk_probe='BEGIN { if ("POSIXLY_CORRECT" in ENVIRON) print "x" }'
21702 case ${POSIXLY_CORRECT+x}`$AWK "$gl_awk_probe" </dev/null` in
21703 xx) gl_had_POSIXLY_CORRECT=exported ;;
21704 x) gl_had_POSIXLY_CORRECT=yes ;;
21705 *) gl_had_POSIXLY_CORRECT= ;;
21708 export POSIXLY_CORRECT
21709 if test "$cross_compiling" = yes; then :
21710 gl_cv_func_getopt_gnu="guessing no"
21713 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21714 /* end confdefs.h. */
21715 #include <getopt.h>
21716 #include <stddef.h>
21717 #include <string.h>
21719 #include <stdlib.h>
21720 #if defined __MACH__ && defined __APPLE__
21721 /* Avoid a crash on Mac OS X. */
21722 #include <mach/mach.h>
21723 #include <mach/mach_error.h>
21724 #include <mach/thread_status.h>
21725 #include <mach/exception.h>
21726 #include <mach/task.h>
21727 #include <pthread.h>
21728 /* The exception port on which our thread listens. */
21729 static mach_port_t our_exception_port;
21730 /* The main function of the thread listening for exceptions of type
21733 mach_exception_thread (void *arg)
21735 /* Buffer for a message to be received. */
21737 mach_msg_header_t head;
21738 mach_msg_body_t msgh_body;
21741 mach_msg_return_t retval;
21742 /* Wait for a message on the exception port. */
21743 retval = mach_msg (&msg.head, MACH_RCV_MSG | MACH_RCV_LARGE, 0, sizeof (msg),
21744 our_exception_port, MACH_MSG_TIMEOUT_NONE, MACH_PORT_NULL);
21745 if (retval != MACH_MSG_SUCCESS)
21750 nocrash_init (void)
21752 mach_port_t self = mach_task_self ();
21753 /* Allocate a port on which the thread shall listen for exceptions. */
21754 if (mach_port_allocate (self, MACH_PORT_RIGHT_RECEIVE, &our_exception_port)
21756 /* See http://web.mit.edu/darwin/src/modules/xnu/osfmk/man/mach_port_insert_right.html. */
21757 if (mach_port_insert_right (self, our_exception_port, our_exception_port,
21758 MACH_MSG_TYPE_MAKE_SEND)
21760 /* The exceptions we want to catch. Only EXC_BAD_ACCESS is interesting
21762 exception_mask_t mask = EXC_MASK_BAD_ACCESS;
21763 /* Create the thread listening on the exception port. */
21764 pthread_attr_t attr;
21766 if (pthread_attr_init (&attr) == 0
21767 && pthread_attr_setdetachstate (&attr, PTHREAD_CREATE_DETACHED) == 0
21768 && pthread_create (&thread, &attr, mach_exception_thread, NULL) == 0) {
21769 pthread_attr_destroy (&attr);
21770 /* Replace the exception port info for these exceptions with our own.
21771 Note that we replace the exception port for the entire task, not only
21772 for a particular thread. This has the effect that when our exception
21773 port gets the message, the thread specific exception port has already
21774 been asked, and we don't need to bother about it.
21775 See http://web.mit.edu/darwin/src/modules/xnu/osfmk/man/task_set_exception_ports.html. */
21776 task_set_exception_ports (self, mask, our_exception_port,
21777 EXCEPTION_DEFAULT, MACHINE_THREAD_STATE);
21782 #elif (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
21783 /* Avoid a crash on native Windows. */
21784 #define WIN32_LEAN_AND_MEAN
21785 #include <windows.h>
21786 #include <winerror.h>
21788 exception_filter (EXCEPTION_POINTERS *ExceptionInfo)
21790 switch (ExceptionInfo->ExceptionRecord->ExceptionCode)
21792 case EXCEPTION_ACCESS_VIOLATION:
21793 case EXCEPTION_IN_PAGE_ERROR:
21794 case EXCEPTION_STACK_OVERFLOW:
21795 case EXCEPTION_GUARD_PAGE:
21796 case EXCEPTION_PRIV_INSTRUCTION:
21797 case EXCEPTION_ILLEGAL_INSTRUCTION:
21798 case EXCEPTION_DATATYPE_MISALIGNMENT:
21799 case EXCEPTION_ARRAY_BOUNDS_EXCEEDED:
21800 case EXCEPTION_NONCONTINUABLE_EXCEPTION:
21803 return EXCEPTION_CONTINUE_SEARCH;
21806 nocrash_init (void)
21808 SetUnhandledExceptionFilter ((LPTOP_LEVEL_EXCEPTION_FILTER) exception_filter);
21811 /* Avoid a crash on POSIX systems. */
21812 #include <signal.h>
21813 /* A POSIX signal handler. */
21815 exception_handler (int sig)
21820 nocrash_init (void)
21823 signal (SIGSEGV, exception_handler);
21826 signal (SIGBUS, exception_handler);
21840 /* This code succeeds on glibc 2.8, OpenBSD 4.0, Cygwin, mingw,
21841 and fails on Mac OS X 10.5, AIX 5.2, HP-UX 11, IRIX 6.5,
21842 OSF/1 5.1, Solaris 10. */
21844 static char conftest[] = "conftest";
21845 static char plus[] = "-+";
21846 char *argv[3] = { conftest, plus, NULL };
21848 if (getopt (2, argv, "+a") != '?')
21851 /* This code succeeds on glibc 2.8, mingw,
21852 and fails on Mac OS X 10.5, OpenBSD 4.0, AIX 5.2, HP-UX 11,
21853 IRIX 6.5, OSF/1 5.1, Solaris 10, Cygwin 1.5.x. */
21855 static char program[] = "program";
21856 static char p[] = "-p";
21857 static char foo[] = "foo";
21858 static char bar[] = "bar";
21859 char *argv[] = { program, p, foo, bar, NULL };
21862 if (getopt (4, argv, "p::") != 'p')
21864 else if (optarg != NULL)
21866 else if (getopt (4, argv, "p::") != -1)
21868 else if (optind != 2)
21871 /* This code succeeds on glibc 2.8 and fails on Cygwin 1.7.0. */
21873 static char program[] = "program";
21874 static char foo[] = "foo";
21875 static char p[] = "-p";
21876 char *argv[] = { program, foo, p, NULL };
21878 if (getopt (3, argv, "-p") != 1)
21880 else if (getopt (3, argv, "-p") != 'p')
21883 /* This code fails on glibc 2.11. */
21885 static char program[] = "program";
21886 static char b[] = "-b";
21887 static char a[] = "-a";
21888 char *argv[] = { program, b, a, NULL };
21889 optind = opterr = 0;
21890 if (getopt (3, argv, "+:a:b") != 'b')
21892 else if (getopt (3, argv, "+:a:b") != ':')
21895 /* This code dumps core on glibc 2.14. */
21897 static char program[] = "program";
21898 static char w[] = "-W";
21899 static char dummy[] = "dummy";
21900 char *argv[] = { program, w, dummy, NULL };
21901 optind = opterr = 1;
21902 if (getopt (3, argv, "W;") != 'W')
21911 if ac_fn_c_try_run "$LINENO"; then :
21912 gl_cv_func_getopt_gnu=yes
21914 gl_cv_func_getopt_gnu=no
21916 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21917 conftest.$ac_objext conftest.beam conftest.$ac_ext
21920 case $gl_had_POSIXLY_CORRECT in
21922 yes) { POSIXLY_CORRECT=; unset POSIXLY_CORRECT;}; POSIXLY_CORRECT=1 ;;
21923 *) { POSIXLY_CORRECT=; unset POSIXLY_CORRECT;} ;;
21927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getopt_gnu" >&5
21928 $as_echo "$gl_cv_func_getopt_gnu" >&6; }
21929 if test "$gl_cv_func_getopt_gnu" != yes; then
21930 gl_replace_getopt=yes
21932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working GNU getopt_long function" >&5
21933 $as_echo_n "checking for working GNU getopt_long function... " >&6; }
21934 if ${gl_cv_func_getopt_long_gnu+:} false; then :
21935 $as_echo_n "(cached) " >&6
21937 if test "$cross_compiling" = yes; then :
21939 openbsd*) gl_cv_func_getopt_long_gnu="guessing no";;
21940 *) gl_cv_func_getopt_long_gnu="guessing yes";;
21944 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21945 /* end confdefs.h. */
21946 #include <getopt.h>
21947 #include <stddef.h>
21948 #include <string.h>
21953 static const struct option long_options[] =
21955 { "xtremely-",no_argument, NULL, 1003 },
21956 { "xtra", no_argument, NULL, 1001 },
21957 { "xtreme", no_argument, NULL, 1002 },
21958 { "xtremely", no_argument, NULL, 1003 },
21959 { NULL, 0, NULL, 0 }
21961 /* This code fails on OpenBSD 5.0. */
21963 static char program[] = "program";
21964 static char xtremel[] = "--xtremel";
21965 char *argv[] = { program, xtremel, NULL };
21967 optind = 1; opterr = 0;
21968 if (getopt_long (2, argv, "", long_options, &option_index) != 1003)
21977 if ac_fn_c_try_run "$LINENO"; then :
21978 gl_cv_func_getopt_long_gnu=yes
21980 gl_cv_func_getopt_long_gnu=no
21982 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21983 conftest.$ac_objext conftest.beam conftest.$ac_ext
21988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getopt_long_gnu" >&5
21989 $as_echo "$gl_cv_func_getopt_long_gnu" >&6; }
21990 case "$gl_cv_func_getopt_long_gnu" in
21992 *) gl_replace_getopt=yes ;;
22004 if test $REPLACE_GETOPT = 1; then
22008 $as_echo "#define __GETOPT_PREFIX rpl_" >>confdefs.h
22015 ac_fn_c_check_decl "$LINENO" "getenv" "ac_cv_have_decl_getenv" "$ac_includes_default"
22016 if test "x$ac_cv_have_decl_getenv" = xyes; then :
22022 cat >>confdefs.h <<_ACEOF
22023 #define HAVE_DECL_GETENV $ac_have_decl
22039 GNULIB_GETTIMEOFDAY=0;
22040 HAVE_GETTIMEOFDAY=1;
22041 HAVE_STRUCT_TIMEVAL=1;
22043 REPLACE_GETTIMEOFDAY=0;
22044 REPLACE_STRUCT_TIMEVAL=0;
22076 if test $gl_cv_have_include_next = yes; then
22077 gl_cv_next_sys_time_h='<'sys/time.h'>'
22079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/time.h>" >&5
22080 $as_echo_n "checking absolute name of <sys/time.h>... " >&6; }
22081 if ${gl_cv_next_sys_time_h+:} false; then :
22082 $as_echo_n "(cached) " >&6
22085 if test $ac_cv_header_sys_time_h = yes; then
22090 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22091 /* end confdefs.h. */
22092 #include <sys/time.h>
22095 aix*) gl_absname_cpp="$ac_cpp -C" ;;
22096 *) gl_absname_cpp="$ac_cpp" ;;
22101 gl_dirsep_regex='[/\\]'
22104 gl_dirsep_regex='\/'
22107 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
22108 gl_header_literal_regex=`echo 'sys/time.h' \
22109 | sed -e "$gl_make_literal_regex_sed"`
22110 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
22111 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
22117 gl_cv_absolute_sys_time_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
22118 sed -n "$gl_absolute_header_sed"`
22120 gl_header=$gl_cv_absolute_sys_time_h
22121 gl_cv_next_sys_time_h='"'$gl_header'"'
22123 gl_cv_next_sys_time_h='<'sys/time.h'>'
22128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_time_h" >&5
22129 $as_echo "$gl_cv_next_sys_time_h" >&6; }
22131 NEXT_SYS_TIME_H=$gl_cv_next_sys_time_h
22133 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
22134 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
22135 gl_next_as_first_directive='<'sys/time.h'>'
22137 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
22138 gl_next_as_first_directive=$gl_cv_next_sys_time_h
22140 NEXT_AS_FIRST_DIRECTIVE_SYS_TIME_H=$gl_next_as_first_directive
22146 if test $ac_cv_header_sys_time_h != yes; then
22160 if test $ac_cv_header_sys_socket_h != yes; then
22161 for ac_header in winsock2.h
22163 ac_fn_c_check_header_mongrel "$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
22164 if test "x$ac_cv_header_winsock2_h" = xyes; then :
22165 cat >>confdefs.h <<_ACEOF
22166 #define HAVE_WINSOCK2_H 1
22174 if test "$ac_cv_header_winsock2_h" = yes; then
22176 UNISTD_H_HAVE_WINSOCK2_H=1
22177 SYS_IOCTL_H_HAVE_WINSOCK2_H=1
22183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timeval" >&5
22184 $as_echo_n "checking for struct timeval... " >&6; }
22185 if ${gl_cv_sys_struct_timeval+:} false; then :
22186 $as_echo_n "(cached) " >&6
22188 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22189 /* end confdefs.h. */
22190 #if HAVE_SYS_TIME_H
22191 #include <sys/time.h>
22194 #if HAVE_WINSOCK2_H
22195 # include <winsock2.h>
22201 static struct timeval x; x.tv_sec = x.tv_usec;
22206 if ac_fn_c_try_compile "$LINENO"; then :
22207 gl_cv_sys_struct_timeval=yes
22209 gl_cv_sys_struct_timeval=no
22211 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timeval" >&5
22215 $as_echo "$gl_cv_sys_struct_timeval" >&6; }
22216 if test $gl_cv_sys_struct_timeval != yes; then
22217 HAVE_STRUCT_TIMEVAL=0
22219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wide-enough struct timeval.tv_sec member" >&5
22220 $as_echo_n "checking for wide-enough struct timeval.tv_sec member... " >&6; }
22221 if ${gl_cv_sys_struct_timeval_tv_sec+:} false; then :
22222 $as_echo_n "(cached) " >&6
22224 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22225 /* end confdefs.h. */
22226 #if HAVE_SYS_TIME_H
22227 #include <sys/time.h>
22230 #if HAVE_WINSOCK2_H
22231 # include <winsock2.h>
22237 static struct timeval x;
22238 typedef int verify_tv_sec_type[
22239 sizeof (time_t) <= sizeof x.tv_sec ? 1 : -1
22246 if ac_fn_c_try_compile "$LINENO"; then :
22247 gl_cv_sys_struct_timeval_tv_sec=yes
22249 gl_cv_sys_struct_timeval_tv_sec=no
22251 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timeval_tv_sec" >&5
22255 $as_echo "$gl_cv_sys_struct_timeval_tv_sec" >&6; }
22256 if test $gl_cv_sys_struct_timeval_tv_sec != yes; then
22257 REPLACE_STRUCT_TIMEVAL=1
22262 for gl_func in gettimeofday; do
22263 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
22264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
22265 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
22266 if eval \${$as_gl_Symbol+:} false; then :
22267 $as_echo_n "(cached) " >&6
22269 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22270 /* end confdefs.h. */
22272 #if HAVE_SYS_TIME_H
22273 # include <sys/time.h>
22286 if ac_fn_c_try_compile "$LINENO"; then :
22287 eval "$as_gl_Symbol=yes"
22289 eval "$as_gl_Symbol=no"
22291 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22293 eval ac_res=\$$as_gl_Symbol
22294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
22295 $as_echo "$ac_res" >&6; }
22296 if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
22297 cat >>confdefs.h <<_ACEOF
22298 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
22301 eval ac_cv_have_decl_$gl_func=yes
22384 GNULIB_GETPEERNAME=0;
22385 GNULIB_GETSOCKNAME=0;
22386 GNULIB_GETSOCKOPT=0;
22392 GNULIB_SETSOCKOPT=0;
22395 HAVE_STRUCT_SOCKADDR_STORAGE=1;
22396 HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY=1;
22398 HAVE_SA_FAMILY_T=1;
22408 if test $ac_cv_header_sys_socket_h = no; then
22409 for ac_header in ws2tcpip.h
22411 ac_fn_c_check_header_mongrel "$LINENO" "ws2tcpip.h" "ac_cv_header_ws2tcpip_h" "$ac_includes_default"
22412 if test "x$ac_cv_header_ws2tcpip_h" = xyes; then :
22413 cat >>confdefs.h <<_ACEOF
22414 #define HAVE_WS2TCPIP_H 1
22430 $as_echo "#define _POSIX_PII_SOCKET 1" >>confdefs.h
22435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <sys/socket.h> is self-contained" >&5
22436 $as_echo_n "checking whether <sys/socket.h> is self-contained... " >&6; }
22437 if ${gl_cv_header_sys_socket_h_selfcontained+:} false; then :
22438 $as_echo_n "(cached) " >&6
22441 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22442 /* end confdefs.h. */
22443 #include <sys/socket.h>
22452 if ac_fn_c_try_compile "$LINENO"; then :
22453 gl_cv_header_sys_socket_h_selfcontained=yes
22455 gl_cv_header_sys_socket_h_selfcontained=no
22457 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_sys_socket_h_selfcontained" >&5
22461 $as_echo "$gl_cv_header_sys_socket_h_selfcontained" >&6; }
22462 if test $gl_cv_header_sys_socket_h_selfcontained = yes; then
22463 for ac_func in shutdown
22465 ac_fn_c_check_func "$LINENO" "shutdown" "ac_cv_func_shutdown"
22466 if test "x$ac_cv_func_shutdown" = xyes; then :
22467 cat >>confdefs.h <<_ACEOF
22468 #define HAVE_SHUTDOWN 1
22474 if test $ac_cv_func_shutdown = yes; then
22475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <sys/socket.h> defines the SHUT_* macros" >&5
22476 $as_echo_n "checking whether <sys/socket.h> defines the SHUT_* macros... " >&6; }
22477 if ${gl_cv_header_sys_socket_h_shut+:} false; then :
22478 $as_echo_n "(cached) " >&6
22481 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22482 /* end confdefs.h. */
22483 #include <sys/socket.h>
22487 int a[] = { SHUT_RD, SHUT_WR, SHUT_RDWR };
22492 if ac_fn_c_try_compile "$LINENO"; then :
22493 gl_cv_header_sys_socket_h_shut=yes
22495 gl_cv_header_sys_socket_h_shut=no
22497 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_sys_socket_h_shut" >&5
22501 $as_echo "$gl_cv_header_sys_socket_h_shut" >&6; }
22502 if test $gl_cv_header_sys_socket_h_shut = no; then
22503 SYS_SOCKET_H='sys/socket.h'
22507 # We need to check for ws2tcpip.h now.
22525 if test $gl_cv_have_include_next = yes; then
22526 gl_cv_next_sys_socket_h='<'sys/socket.h'>'
22528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/socket.h>" >&5
22529 $as_echo_n "checking absolute name of <sys/socket.h>... " >&6; }
22530 if ${gl_cv_next_sys_socket_h+:} false; then :
22531 $as_echo_n "(cached) " >&6
22534 if test $ac_cv_header_sys_socket_h = yes; then
22539 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22540 /* end confdefs.h. */
22541 #include <sys/socket.h>
22544 aix*) gl_absname_cpp="$ac_cpp -C" ;;
22545 *) gl_absname_cpp="$ac_cpp" ;;
22550 gl_dirsep_regex='[/\\]'
22553 gl_dirsep_regex='\/'
22556 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
22557 gl_header_literal_regex=`echo 'sys/socket.h' \
22558 | sed -e "$gl_make_literal_regex_sed"`
22559 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
22560 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
22566 gl_cv_absolute_sys_socket_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
22567 sed -n "$gl_absolute_header_sed"`
22569 gl_header=$gl_cv_absolute_sys_socket_h
22570 gl_cv_next_sys_socket_h='"'$gl_header'"'
22572 gl_cv_next_sys_socket_h='<'sys/socket.h'>'
22577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_socket_h" >&5
22578 $as_echo "$gl_cv_next_sys_socket_h" >&6; }
22580 NEXT_SYS_SOCKET_H=$gl_cv_next_sys_socket_h
22582 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
22583 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
22584 gl_next_as_first_directive='<'sys/socket.h'>'
22586 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
22587 gl_next_as_first_directive=$gl_cv_next_sys_socket_h
22589 NEXT_AS_FIRST_DIRECTIVE_SYS_SOCKET_H=$gl_next_as_first_directive
22594 if test $ac_cv_header_sys_socket_h = yes; then
22595 HAVE_SYS_SOCKET_H=1
22598 HAVE_SYS_SOCKET_H=0
22599 if test $ac_cv_header_ws2tcpip_h = yes; then
22608 ac_fn_c_check_type "$LINENO" "struct sockaddr_storage" "ac_cv_type_struct_sockaddr_storage" "
22609 /* sys/types.h is not needed according to POSIX, but the
22610 sys/socket.h in i386-unknown-freebsd4.10 and
22611 powerpc-apple-darwin5.5 required it. */
22612 #include <sys/types.h>
22613 #ifdef HAVE_SYS_SOCKET_H
22614 #include <sys/socket.h>
22616 #ifdef HAVE_WS2TCPIP_H
22617 #include <ws2tcpip.h>
22621 if test "x$ac_cv_type_struct_sockaddr_storage" = xyes; then :
22623 cat >>confdefs.h <<_ACEOF
22624 #define HAVE_STRUCT_SOCKADDR_STORAGE 1
22629 ac_fn_c_check_type "$LINENO" "sa_family_t" "ac_cv_type_sa_family_t" "
22630 /* sys/types.h is not needed according to POSIX, but the
22631 sys/socket.h in i386-unknown-freebsd4.10 and
22632 powerpc-apple-darwin5.5 required it. */
22633 #include <sys/types.h>
22634 #ifdef HAVE_SYS_SOCKET_H
22635 #include <sys/socket.h>
22637 #ifdef HAVE_WS2TCPIP_H
22638 #include <ws2tcpip.h>
22642 if test "x$ac_cv_type_sa_family_t" = xyes; then :
22644 cat >>confdefs.h <<_ACEOF
22645 #define HAVE_SA_FAMILY_T 1
22651 if test $ac_cv_type_struct_sockaddr_storage = no; then
22652 HAVE_STRUCT_SOCKADDR_STORAGE=0
22654 if test $ac_cv_type_sa_family_t = no; then
22657 if test $ac_cv_type_struct_sockaddr_storage != no; then
22658 ac_fn_c_check_member "$LINENO" "struct sockaddr_storage" "ss_family" "ac_cv_member_struct_sockaddr_storage_ss_family" "#include <sys/types.h>
22659 #ifdef HAVE_SYS_SOCKET_H
22660 #include <sys/socket.h>
22662 #ifdef HAVE_WS2TCPIP_H
22663 #include <ws2tcpip.h>
22667 if test "x$ac_cv_member_struct_sockaddr_storage_ss_family" = xyes; then :
22669 cat >>confdefs.h <<_ACEOF
22670 #define HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY 1
22675 HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY=0
22679 if test $HAVE_STRUCT_SOCKADDR_STORAGE = 0 || test $HAVE_SA_FAMILY_T = 0 \
22680 || test $HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY = 0; then
22681 SYS_SOCKET_H='sys/socket.h'
22693 if test $ac_cv_header_sys_socket_h != yes; then
22694 for ac_header in winsock2.h
22696 ac_fn_c_check_header_mongrel "$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
22697 if test "x$ac_cv_header_winsock2_h" = xyes; then :
22698 cat >>confdefs.h <<_ACEOF
22699 #define HAVE_WINSOCK2_H 1
22707 if test "$ac_cv_header_winsock2_h" = yes; then
22709 UNISTD_H_HAVE_WINSOCK2_H=1
22710 SYS_IOCTL_H_HAVE_WINSOCK2_H=1
22718 for gl_func in socket connect accept bind getpeername getsockname getsockopt listen recv send recvfrom sendto setsockopt shutdown accept4; do
22719 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
22720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
22721 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
22722 if eval \${$as_gl_Symbol+:} false; then :
22723 $as_echo_n "(cached) " >&6
22725 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22726 /* end confdefs.h. */
22728 /* Some systems require prerequisite headers. */
22729 #include <sys/types.h>
22730 #include <sys/socket.h>
22741 if ac_fn_c_try_compile "$LINENO"; then :
22742 eval "$as_gl_Symbol=yes"
22744 eval "$as_gl_Symbol=no"
22746 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22748 eval ac_res=\$$as_gl_Symbol
22749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
22750 $as_echo "$ac_res" >&6; }
22751 if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
22752 cat >>confdefs.h <<_ACEOF
22753 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
22756 eval ac_cv_have_decl_$gl_func=yes
22762 GNULIB_NL_LANGINFO=0;
22763 HAVE_NL_LANGINFO=1;
22764 REPLACE_NL_LANGINFO=0;
22772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C Library >= 2.1 or uClibc" >&5
22773 $as_echo_n "checking whether we are using the GNU C Library >= 2.1 or uClibc... " >&6; }
22774 if ${ac_cv_gnu_library_2_1+:} false; then :
22775 $as_echo_n "(cached) " >&6
22777 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22778 /* end confdefs.h. */
22780 #include <features.h>
22781 #ifdef __GNU_LIBRARY__
22782 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
22791 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22792 $EGREP "Lucky" >/dev/null 2>&1; then :
22793 ac_cv_gnu_library_2_1=yes
22795 ac_cv_gnu_library_2_1=no
22802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2_1" >&5
22803 $as_echo "$ac_cv_gnu_library_2_1" >&6; }
22805 GLIBC21="$ac_cv_gnu_library_2_1"
22809 GNULIB_LOCALECONV=0;
22810 GNULIB_SETLOCALE=0;
22811 GNULIB_DUPLOCALE=0;
22813 REPLACE_LOCALECONV=0;
22814 REPLACE_SETLOCALE=0;
22815 REPLACE_DUPLOCALE=0;
22816 REPLACE_STRUCT_LCONV=0;
22823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5
22824 $as_echo_n "checking for wchar_t... " >&6; }
22825 if ${gt_cv_c_wchar_t+:} false; then :
22826 $as_echo_n "(cached) " >&6
22828 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22829 /* end confdefs.h. */
22830 #include <stddef.h>
22831 wchar_t foo = (wchar_t)'\0';
22840 if ac_fn_c_try_compile "$LINENO"; then :
22841 gt_cv_c_wchar_t=yes
22845 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5
22848 $as_echo "$gt_cv_c_wchar_t" >&6; }
22849 if test $gt_cv_c_wchar_t = yes; then
22851 $as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h
22859 if test $gt_cv_c_wchar_t = no; then
22863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NULL can be used in arbitrary expressions" >&5
22864 $as_echo_n "checking whether NULL can be used in arbitrary expressions... " >&6; }
22865 if ${gl_cv_decl_null_works+:} false; then :
22866 $as_echo_n "(cached) " >&6
22868 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22869 /* end confdefs.h. */
22870 #include <stddef.h>
22871 int test[2 * (sizeof NULL == sizeof (void *)) -1];
22881 if ac_fn_c_try_compile "$LINENO"; then :
22882 gl_cv_decl_null_works=yes
22884 gl_cv_decl_null_works=no
22886 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_decl_null_works" >&5
22889 $as_echo "$gl_cv_decl_null_works" >&6; }
22890 if test $gl_cv_decl_null_works = no; then
22895 if test -n "$STDDEF_H"; then
22896 GL_GENERATE_STDDEF_H_TRUE=
22897 GL_GENERATE_STDDEF_H_FALSE='#'
22899 GL_GENERATE_STDDEF_H_TRUE='#'
22900 GL_GENERATE_STDDEF_H_FALSE=
22903 if test -n "$STDDEF_H"; then
22912 if test $gl_cv_have_include_next = yes; then
22913 gl_cv_next_stddef_h='<'stddef.h'>'
22915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stddef.h>" >&5
22916 $as_echo_n "checking absolute name of <stddef.h>... " >&6; }
22917 if ${gl_cv_next_stddef_h+:} false; then :
22918 $as_echo_n "(cached) " >&6
22923 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22924 /* end confdefs.h. */
22925 #include <stddef.h>
22928 aix*) gl_absname_cpp="$ac_cpp -C" ;;
22929 *) gl_absname_cpp="$ac_cpp" ;;
22934 gl_dirsep_regex='[/\\]'
22937 gl_dirsep_regex='\/'
22940 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
22941 gl_header_literal_regex=`echo 'stddef.h' \
22942 | sed -e "$gl_make_literal_regex_sed"`
22943 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
22944 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
22950 gl_cv_absolute_stddef_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
22951 sed -n "$gl_absolute_header_sed"`
22953 gl_header=$gl_cv_absolute_stddef_h
22954 gl_cv_next_stddef_h='"'$gl_header'"'
22958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stddef_h" >&5
22959 $as_echo "$gl_cv_next_stddef_h" >&6; }
22961 NEXT_STDDEF_H=$gl_cv_next_stddef_h
22963 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
22964 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
22965 gl_next_as_first_directive='<'stddef.h'>'
22967 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
22968 gl_next_as_first_directive=$gl_cv_next_stddef_h
22970 NEXT_AS_FIRST_DIRECTIVE_STDDEF_H=$gl_next_as_first_directive
22983 if test "X$prefix" = "XNONE"; then
22984 acl_final_prefix="$ac_default_prefix"
22986 acl_final_prefix="$prefix"
22988 if test "X$exec_prefix" = "XNONE"; then
22989 acl_final_exec_prefix='${prefix}'
22991 acl_final_exec_prefix="$exec_prefix"
22993 acl_save_prefix="$prefix"
22994 prefix="$acl_final_prefix"
22995 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
22996 prefix="$acl_save_prefix"
23000 # Check whether --with-gnu-ld was given.
23001 if test "${with_gnu_ld+set}" = set; then :
23002 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
23007 # Prepare PATH_SEPARATOR.
23008 # The user is always right.
23009 if test "${PATH_SEPARATOR+set}" != set; then
23010 # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
23011 # contains only /bin. Note that ksh looks also at the FPATH variable,
23012 # so we have to set that as well for the test.
23014 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
23015 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
23016 || PATH_SEPARATOR=';'
23021 if test "$GCC" = yes; then
23022 # Check if gcc -print-prog-name=ld gives a path.
23023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
23024 $as_echo_n "checking for ld used by $CC... " >&6; }
23027 # gcc leaves a trailing carriage return which upsets mingw
23028 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
23030 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
23033 # Accept absolute paths.
23035 re_direlt='/[^/][^/]*/\.\./'
23036 # Canonicalize the pathname of ld
23037 ac_prog=`echo "$ac_prog"| sed 's%\\\\%/%g'`
23038 while echo "$ac_prog" | grep "$re_direlt" > /dev/null 2>&1; do
23039 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
23041 test -z "$LD" && LD="$ac_prog"
23044 # If it fails, then pretend we aren't using GCC.
23048 # If it is relative, then search for the first ld in PATH.
23049 with_gnu_ld=unknown
23052 elif test "$with_gnu_ld" = yes; then
23053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
23054 $as_echo_n "checking for GNU ld... " >&6; }
23056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
23057 $as_echo_n "checking for non-GNU ld... " >&6; }
23059 if ${acl_cv_path_LD+:} false; then :
23060 $as_echo_n "(cached) " >&6
23062 if test -z "$LD"; then
23063 acl_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
23064 for ac_dir in $PATH; do
23065 IFS="$acl_save_ifs"
23066 test -z "$ac_dir" && ac_dir=.
23067 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
23068 acl_cv_path_LD="$ac_dir/$ac_prog"
23069 # Check to see if the program is GNU ld. I'd rather use --version,
23070 # but apparently some variants of GNU ld only accept -v.
23071 # Break only if it was the GNU/non-GNU ld that we prefer.
23072 case `"$acl_cv_path_LD" -v 2>&1 </dev/null` in
23073 *GNU* | *'with BFD'*)
23074 test "$with_gnu_ld" != no && break
23077 test "$with_gnu_ld" != yes && break
23082 IFS="$acl_save_ifs"
23084 acl_cv_path_LD="$LD" # Let the user override the test with a path.
23088 LD="$acl_cv_path_LD"
23089 if test -n "$LD"; then
23090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
23091 $as_echo "$LD" >&6; }
23093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23094 $as_echo "no" >&6; }
23096 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
23097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
23098 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
23099 if ${acl_cv_prog_gnu_ld+:} false; then :
23100 $as_echo_n "(cached) " >&6
23102 # I'd rather use --version here, but apparently some GNU lds only accept -v.
23103 case `$LD -v 2>&1 </dev/null` in
23104 *GNU* | *'with BFD'*)
23105 acl_cv_prog_gnu_ld=yes
23108 acl_cv_prog_gnu_ld=no
23112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
23113 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
23114 with_gnu_ld=$acl_cv_prog_gnu_ld
23119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
23120 $as_echo_n "checking for shared library run path origin... " >&6; }
23121 if ${acl_cv_rpath+:} false; then :
23122 $as_echo_n "(cached) " >&6
23125 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
23126 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
23128 rm -f ./conftest.sh
23132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
23133 $as_echo "$acl_cv_rpath" >&6; }
23135 acl_libext="$acl_cv_libext"
23136 acl_shlibext="$acl_cv_shlibext"
23137 acl_libname_spec="$acl_cv_libname_spec"
23138 acl_library_names_spec="$acl_cv_library_names_spec"
23139 acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
23140 acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
23141 acl_hardcode_direct="$acl_cv_hardcode_direct"
23142 acl_hardcode_minus_L="$acl_cv_hardcode_minus_L"
23143 # Check whether --enable-rpath was given.
23144 if test "${enable_rpath+set}" = set; then :
23145 enableval=$enable_rpath; :
23157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit host" >&5
23158 $as_echo_n "checking for 64-bit host... " >&6; }
23159 if ${gl_cv_solaris_64bit+:} false; then :
23160 $as_echo_n "(cached) " >&6
23162 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23163 /* end confdefs.h. */
23170 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23171 $EGREP "sixtyfour bits" >/dev/null 2>&1; then :
23172 gl_cv_solaris_64bit=yes
23174 gl_cv_solaris_64bit=no
23180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_solaris_64bit" >&5
23181 $as_echo "$gl_cv_solaris_64bit" >&6; }
23182 if test $gl_cv_solaris_64bit = yes; then
23183 acl_libdirstem=lib/64
23184 case "$host_cpu" in
23185 sparc*) acl_libdirstem2=lib/sparcv9 ;;
23186 i*86 | x86_64) acl_libdirstem2=lib/amd64 ;;
23191 searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
23192 if test -n "$searchpath"; then
23193 acl_save_IFS="${IFS= }"; IFS=":"
23194 for searchdir in $searchpath; do
23195 if test -d "$searchdir"; then
23196 case "$searchdir" in
23197 */lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
23199 # Better ignore directories of this form. They are misleading.
23201 *) searchdir=`cd "$searchdir" && pwd`
23202 case "$searchdir" in
23203 */lib64 ) acl_libdirstem=lib64 ;;
23208 IFS="$acl_save_IFS"
23212 test -n "$acl_libdirstem2" || acl_libdirstem2="$acl_libdirstem"
23216 gl_threads_api=none
23221 if test "$gl_use_threads" != no; then
23222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether imported symbols can be declared weak" >&5
23223 $as_echo_n "checking whether imported symbols can be declared weak... " >&6; }
23224 if ${gl_cv_have_weak+:} false; then :
23225 $as_echo_n "(cached) " >&6
23228 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23229 /* end confdefs.h. */
23230 extern void xyzzy ();
23240 if ac_fn_c_try_link "$LINENO"; then :
23241 gl_cv_have_weak=maybe
23243 rm -f core conftest.err conftest.$ac_objext \
23244 conftest$ac_exeext conftest.$ac_ext
23245 if test $gl_cv_have_weak = maybe; then
23246 if test "$cross_compiling" = yes; then :
23247 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23248 /* end confdefs.h. */
23250 Extensible Linking Format
23254 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23255 $EGREP "Extensible Linking Format" >/dev/null 2>&1; then :
23256 gl_cv_have_weak="guessing yes"
23258 gl_cv_have_weak="guessing no"
23264 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23265 /* end confdefs.h. */
23271 return (fputs == NULL);
23274 if ac_fn_c_try_run "$LINENO"; then :
23275 gl_cv_have_weak=yes
23279 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23280 conftest.$ac_objext conftest.beam conftest.$ac_ext
23286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_have_weak" >&5
23287 $as_echo "$gl_cv_have_weak" >&6; }
23288 if test "$gl_use_threads" = yes || test "$gl_use_threads" = posix; then
23289 # On OSF/1, the compiler needs the flag -pthread or -D_REENTRANT so that
23290 # it groks <pthread.h>. It's added above, in gl_THREADLIB_EARLY_BODY.
23291 ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
23292 if test "x$ac_cv_header_pthread_h" = xyes; then :
23293 gl_have_pthread_h=yes
23295 gl_have_pthread_h=no
23299 if test "$gl_have_pthread_h" = yes; then
23300 # Other possible tests:
23301 # -lpthreads (FSU threads, PCthreads)
23304 # Test whether both pthread_mutex_lock and pthread_mutexattr_init exist
23305 # in libc. IRIX 6.5 has the first one in both libc and libpthread, but
23306 # the second one only in libpthread, and lock.c needs it.
23307 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23308 /* end confdefs.h. */
23309 #include <pthread.h>
23313 pthread_mutex_lock((pthread_mutex_t*)0);
23314 pthread_mutexattr_init((pthread_mutexattr_t*)0);
23319 if ac_fn_c_try_link "$LINENO"; then :
23320 gl_have_pthread=yes
23322 rm -f core conftest.err conftest.$ac_objext \
23323 conftest$ac_exeext conftest.$ac_ext
23324 # Test for libpthread by looking for pthread_kill. (Not pthread_self,
23325 # since it is defined as a macro on OSF/1.)
23326 if test -n "$gl_have_pthread"; then
23327 # The program links fine without libpthread. But it may actually
23328 # need to link with libpthread in order to create multiple threads.
23329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lpthread" >&5
23330 $as_echo_n "checking for pthread_kill in -lpthread... " >&6; }
23331 if ${ac_cv_lib_pthread_pthread_kill+:} false; then :
23332 $as_echo_n "(cached) " >&6
23334 ac_check_lib_save_LIBS=$LIBS
23335 LIBS="-lpthread $LIBS"
23336 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23337 /* end confdefs.h. */
23339 /* Override any GCC internal prototype to avoid an error.
23340 Use char because int might match the return type of a GCC
23341 builtin and then its argument prototype would still apply. */
23345 char pthread_kill ();
23349 return pthread_kill ();
23354 if ac_fn_c_try_link "$LINENO"; then :
23355 ac_cv_lib_pthread_pthread_kill=yes
23357 ac_cv_lib_pthread_pthread_kill=no
23359 rm -f core conftest.err conftest.$ac_objext \
23360 conftest$ac_exeext conftest.$ac_ext
23361 LIBS=$ac_check_lib_save_LIBS
23363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_kill" >&5
23364 $as_echo "$ac_cv_lib_pthread_pthread_kill" >&6; }
23365 if test "x$ac_cv_lib_pthread_pthread_kill" = xyes; then :
23366 LIBMULTITHREAD=-lpthread LTLIBMULTITHREAD=-lpthread
23367 # On Solaris and HP-UX, most pthread functions exist also in libc.
23368 # Therefore pthread_in_use() needs to actually try to create a
23369 # thread: pthread_create from libc will fail, whereas
23370 # pthread_create will actually create a thread.
23374 $as_echo "#define PTHREAD_IN_USE_DETECTION_HARD 1" >>confdefs.h
23381 # Some library is needed. Try libpthread and libc_r.
23382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lpthread" >&5
23383 $as_echo_n "checking for pthread_kill in -lpthread... " >&6; }
23384 if ${ac_cv_lib_pthread_pthread_kill+:} false; then :
23385 $as_echo_n "(cached) " >&6
23387 ac_check_lib_save_LIBS=$LIBS
23388 LIBS="-lpthread $LIBS"
23389 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23390 /* end confdefs.h. */
23392 /* Override any GCC internal prototype to avoid an error.
23393 Use char because int might match the return type of a GCC
23394 builtin and then its argument prototype would still apply. */
23398 char pthread_kill ();
23402 return pthread_kill ();
23407 if ac_fn_c_try_link "$LINENO"; then :
23408 ac_cv_lib_pthread_pthread_kill=yes
23410 ac_cv_lib_pthread_pthread_kill=no
23412 rm -f core conftest.err conftest.$ac_objext \
23413 conftest$ac_exeext conftest.$ac_ext
23414 LIBS=$ac_check_lib_save_LIBS
23416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_kill" >&5
23417 $as_echo "$ac_cv_lib_pthread_pthread_kill" >&6; }
23418 if test "x$ac_cv_lib_pthread_pthread_kill" = xyes; then :
23419 gl_have_pthread=yes
23420 LIBTHREAD=-lpthread LTLIBTHREAD=-lpthread
23421 LIBMULTITHREAD=-lpthread LTLIBMULTITHREAD=-lpthread
23424 if test -z "$gl_have_pthread"; then
23426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lc_r" >&5
23427 $as_echo_n "checking for pthread_kill in -lc_r... " >&6; }
23428 if ${ac_cv_lib_c_r_pthread_kill+:} false; then :
23429 $as_echo_n "(cached) " >&6
23431 ac_check_lib_save_LIBS=$LIBS
23433 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23434 /* end confdefs.h. */
23436 /* Override any GCC internal prototype to avoid an error.
23437 Use char because int might match the return type of a GCC
23438 builtin and then its argument prototype would still apply. */
23442 char pthread_kill ();
23446 return pthread_kill ();
23451 if ac_fn_c_try_link "$LINENO"; then :
23452 ac_cv_lib_c_r_pthread_kill=yes
23454 ac_cv_lib_c_r_pthread_kill=no
23456 rm -f core conftest.err conftest.$ac_objext \
23457 conftest$ac_exeext conftest.$ac_ext
23458 LIBS=$ac_check_lib_save_LIBS
23460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_r_pthread_kill" >&5
23461 $as_echo "$ac_cv_lib_c_r_pthread_kill" >&6; }
23462 if test "x$ac_cv_lib_c_r_pthread_kill" = xyes; then :
23463 gl_have_pthread=yes
23464 LIBTHREAD=-lc_r LTLIBTHREAD=-lc_r
23465 LIBMULTITHREAD=-lc_r LTLIBMULTITHREAD=-lc_r
23470 if test -n "$gl_have_pthread"; then
23471 gl_threads_api=posix
23473 $as_echo "#define USE_POSIX_THREADS 1" >>confdefs.h
23475 if test -n "$LIBMULTITHREAD" || test -n "$LTLIBMULTITHREAD"; then
23476 if case "$gl_cv_have_weak" in *yes) true;; *) false;; esac; then
23478 $as_echo "#define USE_POSIX_THREADS_WEAK 1" >>confdefs.h
23487 if test -z "$gl_have_pthread"; then
23488 if test "$gl_use_threads" = yes || test "$gl_use_threads" = solaris; then
23489 gl_have_solaristhread=
23490 gl_save_LIBS="$LIBS"
23491 LIBS="$LIBS -lthread"
23492 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23493 /* end confdefs.h. */
23495 #include <thread.h>
23506 if ac_fn_c_try_link "$LINENO"; then :
23507 gl_have_solaristhread=yes
23509 rm -f core conftest.err conftest.$ac_objext \
23510 conftest$ac_exeext conftest.$ac_ext
23511 LIBS="$gl_save_LIBS"
23512 if test -n "$gl_have_solaristhread"; then
23513 gl_threads_api=solaris
23515 LTLIBTHREAD=-lthread
23516 LIBMULTITHREAD="$LIBTHREAD"
23517 LTLIBMULTITHREAD="$LTLIBTHREAD"
23519 $as_echo "#define USE_SOLARIS_THREADS 1" >>confdefs.h
23521 if case "$gl_cv_have_weak" in *yes) true;; *) false;; esac; then
23523 $as_echo "#define USE_SOLARIS_THREADS_WEAK 1" >>confdefs.h
23531 if test "$gl_use_threads" = pth; then
23532 gl_save_CPPFLAGS="$CPPFLAGS"
23538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libpth" >&5
23539 $as_echo_n "checking how to link with libpth... " >&6; }
23540 if ${ac_cv_libpth_libs+:} false; then :
23541 $as_echo_n "(cached) " >&6
23553 acl_save_prefix="$prefix"
23554 prefix="$acl_final_prefix"
23555 acl_save_exec_prefix="$exec_prefix"
23556 exec_prefix="$acl_final_exec_prefix"
23558 eval additional_includedir=\"$includedir\"
23559 eval additional_libdir=\"$libdir\"
23561 exec_prefix="$acl_save_exec_prefix"
23562 prefix="$acl_save_prefix"
23565 # Check whether --with-libpth-prefix was given.
23566 if test "${with_libpth_prefix+set}" = set; then :
23567 withval=$with_libpth_prefix;
23568 if test "X$withval" = "Xno"; then
23571 if test "X$withval" = "X"; then
23573 acl_save_prefix="$prefix"
23574 prefix="$acl_final_prefix"
23575 acl_save_exec_prefix="$exec_prefix"
23576 exec_prefix="$acl_final_exec_prefix"
23578 eval additional_includedir=\"$includedir\"
23579 eval additional_libdir=\"$libdir\"
23581 exec_prefix="$acl_save_exec_prefix"
23582 prefix="$acl_save_prefix"
23585 additional_includedir="$withval/include"
23586 additional_libdir="$withval/$acl_libdirstem"
23587 if test "$acl_libdirstem2" != "$acl_libdirstem" \
23588 && ! test -d "$withval/$acl_libdirstem"; then
23589 additional_libdir="$withval/$acl_libdirstem2"
23603 names_already_handled=
23604 names_next_round='pth '
23605 while test -n "$names_next_round"; do
23606 names_this_round="$names_next_round"
23608 for name in $names_this_round; do
23610 for n in $names_already_handled; do
23611 if test "$n" = "$name"; then
23612 already_handled=yes
23616 if test -z "$already_handled"; then
23617 names_already_handled="$names_already_handled $name"
23618 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'`
23619 eval value=\"\$HAVE_LIB$uppername\"
23620 if test -n "$value"; then
23621 if test "$value" = yes; then
23622 eval value=\"\$LIB$uppername\"
23623 test -z "$value" || LIBPTH="${LIBPTH}${LIBPTH:+ }$value"
23624 eval value=\"\$LTLIB$uppername\"
23625 test -z "$value" || LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }$value"
23634 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
23635 if test -n "$acl_shlibext"; then
23636 shrext=".$acl_shlibext" # typically: shrext=.so
23640 if test $use_additional = yes; then
23641 dir="$additional_libdir"
23642 if test -n "$acl_shlibext"; then
23643 if test -f "$dir/$libname$shrext"; then
23645 found_so="$dir/$libname$shrext"
23647 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
23648 ver=`(cd "$dir" && \
23649 for f in "$libname$shrext".*; do echo "$f"; done \
23650 | sed -e "s,^$libname$shrext\\\\.,," \
23651 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
23652 | sed 1q ) 2>/dev/null`
23653 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
23655 found_so="$dir/$libname$shrext.$ver"
23658 eval library_names=\"$acl_library_names_spec\"
23659 for f in $library_names; do
23660 if test -f "$dir/$f"; then
23669 if test "X$found_dir" = "X"; then
23670 if test -f "$dir/$libname.$acl_libext"; then
23672 found_a="$dir/$libname.$acl_libext"
23675 if test "X$found_dir" != "X"; then
23676 if test -f "$dir/$libname.la"; then
23677 found_la="$dir/$libname.la"
23681 if test "X$found_dir" = "X"; then
23682 for x in $LDFLAGS $LTLIBPTH; do
23684 acl_save_prefix="$prefix"
23685 prefix="$acl_final_prefix"
23686 acl_save_exec_prefix="$exec_prefix"
23687 exec_prefix="$acl_final_exec_prefix"
23689 exec_prefix="$acl_save_exec_prefix"
23690 prefix="$acl_save_prefix"
23694 dir=`echo "X$x" | sed -e 's/^X-L//'`
23695 if test -n "$acl_shlibext"; then
23696 if test -f "$dir/$libname$shrext"; then
23698 found_so="$dir/$libname$shrext"
23700 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
23701 ver=`(cd "$dir" && \
23702 for f in "$libname$shrext".*; do echo "$f"; done \
23703 | sed -e "s,^$libname$shrext\\\\.,," \
23704 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
23705 | sed 1q ) 2>/dev/null`
23706 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
23708 found_so="$dir/$libname$shrext.$ver"
23711 eval library_names=\"$acl_library_names_spec\"
23712 for f in $library_names; do
23713 if test -f "$dir/$f"; then
23722 if test "X$found_dir" = "X"; then
23723 if test -f "$dir/$libname.$acl_libext"; then
23725 found_a="$dir/$libname.$acl_libext"
23728 if test "X$found_dir" != "X"; then
23729 if test -f "$dir/$libname.la"; then
23730 found_la="$dir/$libname.la"
23735 if test "X$found_dir" != "X"; then
23740 if test "X$found_dir" != "X"; then
23741 LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-L$found_dir -l$name"
23742 if test "X$found_so" != "X"; then
23743 if test "$enable_rpath" = no \
23744 || test "X$found_dir" = "X/usr/$acl_libdirstem" \
23745 || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
23746 LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
23749 for x in $ltrpathdirs; do
23750 if test "X$x" = "X$found_dir"; then
23755 if test -z "$haveit"; then
23756 ltrpathdirs="$ltrpathdirs $found_dir"
23758 if test "$acl_hardcode_direct" = yes; then
23759 LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
23761 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
23762 LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
23764 for x in $rpathdirs; do
23765 if test "X$x" = "X$found_dir"; then
23770 if test -z "$haveit"; then
23771 rpathdirs="$rpathdirs $found_dir"
23775 for x in $LDFLAGS $LIBPTH; do
23777 acl_save_prefix="$prefix"
23778 prefix="$acl_final_prefix"
23779 acl_save_exec_prefix="$exec_prefix"
23780 exec_prefix="$acl_final_exec_prefix"
23782 exec_prefix="$acl_save_exec_prefix"
23783 prefix="$acl_save_prefix"
23785 if test "X$x" = "X-L$found_dir"; then
23790 if test -z "$haveit"; then
23791 LIBPTH="${LIBPTH}${LIBPTH:+ }-L$found_dir"
23793 if test "$acl_hardcode_minus_L" != no; then
23794 LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
23796 LIBPTH="${LIBPTH}${LIBPTH:+ }-l$name"
23802 if test "X$found_a" != "X"; then
23803 LIBPTH="${LIBPTH}${LIBPTH:+ }$found_a"
23805 LIBPTH="${LIBPTH}${LIBPTH:+ }-L$found_dir -l$name"
23808 additional_includedir=
23809 case "$found_dir" in
23810 */$acl_libdirstem | */$acl_libdirstem/)
23811 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
23812 if test "$name" = 'pth'; then
23813 LIBPTH_PREFIX="$basedir"
23815 additional_includedir="$basedir/include"
23817 */$acl_libdirstem2 | */$acl_libdirstem2/)
23818 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
23819 if test "$name" = 'pth'; then
23820 LIBPTH_PREFIX="$basedir"
23822 additional_includedir="$basedir/include"
23825 if test "X$additional_includedir" != "X"; then
23826 if test "X$additional_includedir" != "X/usr/include"; then
23828 if test "X$additional_includedir" = "X/usr/local/include"; then
23829 if test -n "$GCC"; then
23831 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
23835 if test -z "$haveit"; then
23836 for x in $CPPFLAGS $INCPTH; do
23838 acl_save_prefix="$prefix"
23839 prefix="$acl_final_prefix"
23840 acl_save_exec_prefix="$exec_prefix"
23841 exec_prefix="$acl_final_exec_prefix"
23843 exec_prefix="$acl_save_exec_prefix"
23844 prefix="$acl_save_prefix"
23846 if test "X$x" = "X-I$additional_includedir"; then
23851 if test -z "$haveit"; then
23852 if test -d "$additional_includedir"; then
23853 INCPTH="${INCPTH}${INCPTH:+ }-I$additional_includedir"
23859 if test -n "$found_la"; then
23860 save_libdir="$libdir"
23861 case "$found_la" in
23862 */* | *\\*) . "$found_la" ;;
23863 *) . "./$found_la" ;;
23865 libdir="$save_libdir"
23866 for dep in $dependency_libs; do
23869 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
23870 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
23871 && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
23873 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
23874 || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
23875 if test -n "$GCC"; then
23877 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
23881 if test -z "$haveit"; then
23883 for x in $LDFLAGS $LIBPTH; do
23885 acl_save_prefix="$prefix"
23886 prefix="$acl_final_prefix"
23887 acl_save_exec_prefix="$exec_prefix"
23888 exec_prefix="$acl_final_exec_prefix"
23890 exec_prefix="$acl_save_exec_prefix"
23891 prefix="$acl_save_prefix"
23893 if test "X$x" = "X-L$additional_libdir"; then
23898 if test -z "$haveit"; then
23899 if test -d "$additional_libdir"; then
23900 LIBPTH="${LIBPTH}${LIBPTH:+ }-L$additional_libdir"
23904 for x in $LDFLAGS $LTLIBPTH; do
23906 acl_save_prefix="$prefix"
23907 prefix="$acl_final_prefix"
23908 acl_save_exec_prefix="$exec_prefix"
23909 exec_prefix="$acl_final_exec_prefix"
23911 exec_prefix="$acl_save_exec_prefix"
23912 prefix="$acl_save_prefix"
23914 if test "X$x" = "X-L$additional_libdir"; then
23919 if test -z "$haveit"; then
23920 if test -d "$additional_libdir"; then
23921 LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-L$additional_libdir"
23928 dir=`echo "X$dep" | sed -e 's/^X-R//'`
23929 if test "$enable_rpath" != no; then
23931 for x in $rpathdirs; do
23932 if test "X$x" = "X$dir"; then
23937 if test -z "$haveit"; then
23938 rpathdirs="$rpathdirs $dir"
23941 for x in $ltrpathdirs; do
23942 if test "X$x" = "X$dir"; then
23947 if test -z "$haveit"; then
23948 ltrpathdirs="$ltrpathdirs $dir"
23953 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
23956 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
23959 LIBPTH="${LIBPTH}${LIBPTH:+ }$dep"
23960 LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }$dep"
23966 LIBPTH="${LIBPTH}${LIBPTH:+ }-l$name"
23967 LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-l$name"
23973 if test "X$rpathdirs" != "X"; then
23974 if test -n "$acl_hardcode_libdir_separator"; then
23976 for found_dir in $rpathdirs; do
23977 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
23979 acl_save_libdir="$libdir"
23981 eval flag=\"$acl_hardcode_libdir_flag_spec\"
23982 libdir="$acl_save_libdir"
23983 LIBPTH="${LIBPTH}${LIBPTH:+ }$flag"
23985 for found_dir in $rpathdirs; do
23986 acl_save_libdir="$libdir"
23987 libdir="$found_dir"
23988 eval flag=\"$acl_hardcode_libdir_flag_spec\"
23989 libdir="$acl_save_libdir"
23990 LIBPTH="${LIBPTH}${LIBPTH:+ }$flag"
23994 if test "X$ltrpathdirs" != "X"; then
23995 for found_dir in $ltrpathdirs; do
23996 LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-R$found_dir"
24005 ac_cv_libpth_libs="$LIBPTH"
24006 ac_cv_libpth_ltlibs="$LTLIBPTH"
24007 ac_cv_libpth_cppflags="$INCPTH"
24008 ac_cv_libpth_prefix="$LIBPTH_PREFIX"
24011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libpth_libs" >&5
24012 $as_echo "$ac_cv_libpth_libs" >&6; }
24013 LIBPTH="$ac_cv_libpth_libs"
24014 LTLIBPTH="$ac_cv_libpth_ltlibs"
24015 INCPTH="$ac_cv_libpth_cppflags"
24016 LIBPTH_PREFIX="$ac_cv_libpth_prefix"
24018 for element in $INCPTH; do
24020 for x in $CPPFLAGS; do
24022 acl_save_prefix="$prefix"
24023 prefix="$acl_final_prefix"
24024 acl_save_exec_prefix="$exec_prefix"
24025 exec_prefix="$acl_final_exec_prefix"
24027 exec_prefix="$acl_save_exec_prefix"
24028 prefix="$acl_save_prefix"
24030 if test "X$x" = "X$element"; then
24035 if test -z "$haveit"; then
24036 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
24048 gl_save_LIBS="$LIBS"
24049 LIBS="$LIBS $LIBPTH"
24050 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24051 /* end confdefs.h. */
24061 if ac_fn_c_try_link "$LINENO"; then :
24064 rm -f core conftest.err conftest.$ac_objext \
24065 conftest$ac_exeext conftest.$ac_ext
24066 LIBS="$gl_save_LIBS"
24067 if test -n "$gl_have_pth"; then
24069 LIBTHREAD="$LIBPTH"
24070 LTLIBTHREAD="$LTLIBPTH"
24071 LIBMULTITHREAD="$LIBTHREAD"
24072 LTLIBMULTITHREAD="$LTLIBTHREAD"
24074 $as_echo "#define USE_PTH_THREADS 1" >>confdefs.h
24076 if test -n "$LIBMULTITHREAD" || test -n "$LTLIBMULTITHREAD"; then
24077 if case "$gl_cv_have_weak" in *yes) true;; *) false;; esac; then
24079 $as_echo "#define USE_PTH_THREADS_WEAK 1" >>confdefs.h
24086 CPPFLAGS="$gl_save_CPPFLAGS"
24089 if test -z "$gl_have_pthread"; then
24090 case "$gl_use_threads" in
24091 yes | windows | win32) # The 'win32' is for backward compatibility.
24092 if { case "$host_os" in
24097 gl_threads_api=windows
24099 $as_echo "#define USE_WINDOWS_THREADS 1" >>confdefs.h
24106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for multithread API to use" >&5
24107 $as_echo_n "checking for multithread API to use... " >&6; }
24108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_threads_api" >&5
24109 $as_echo "$gl_threads_api" >&6; }
24125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether malloc, realloc, calloc are POSIX compliant" >&5
24126 $as_echo_n "checking whether malloc, realloc, calloc are POSIX compliant... " >&6; }
24127 if ${gl_cv_func_malloc_posix+:} false; then :
24128 $as_echo_n "(cached) " >&6
24131 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24132 /* end confdefs.h. */
24137 #if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
24145 if ac_fn_c_try_compile "$LINENO"; then :
24146 gl_cv_func_malloc_posix=yes
24148 gl_cv_func_malloc_posix=no
24150 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_malloc_posix" >&5
24154 $as_echo "$gl_cv_func_malloc_posix" >&6; }
24158 for ac_header in stdlib.h
24160 ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
24161 if test "x$ac_cv_header_stdlib_h" = xyes; then :
24162 cat >>confdefs.h <<_ACEOF
24163 #define HAVE_STDLIB_H 1
24170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible malloc" >&5
24171 $as_echo_n "checking for GNU libc compatible malloc... " >&6; }
24172 if ${ac_cv_func_malloc_0_nonnull+:} false; then :
24173 $as_echo_n "(cached) " >&6
24175 if test "$cross_compiling" = yes; then :
24177 # Guess yes on platforms where we know the result.
24178 *-gnu* | freebsd* | netbsd* | openbsd* \
24179 | hpux* | solaris* | cygwin* | mingw*)
24180 ac_cv_func_malloc_0_nonnull=yes ;;
24181 # If we don't know, assume the worst.
24182 *) ac_cv_func_malloc_0_nonnull=no ;;
24186 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24187 /* end confdefs.h. */
24188 #if defined STDC_HEADERS || defined HAVE_STDLIB_H
24189 # include <stdlib.h>
24197 return ! malloc (0);
24203 if ac_fn_c_try_run "$LINENO"; then :
24204 ac_cv_func_malloc_0_nonnull=yes
24206 ac_cv_func_malloc_0_nonnull=no
24208 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24209 conftest.$ac_objext conftest.beam conftest.$ac_ext
24214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_malloc_0_nonnull" >&5
24215 $as_echo "$ac_cv_func_malloc_0_nonnull" >&6; }
24216 if test $ac_cv_func_malloc_0_nonnull = yes; then :
24217 gl_cv_func_malloc_0_nonnull=1
24219 gl_cv_func_malloc_0_nonnull=0
24223 cat >>confdefs.h <<_ACEOF
24224 #define MALLOC_0_IS_NONNULL $gl_cv_func_malloc_0_nonnull
24229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
24230 $as_echo_n "checking for unsigned long long int... " >&6; }
24231 if ${ac_cv_type_unsigned_long_long_int+:} false; then :
24232 $as_echo_n "(cached) " >&6
24234 ac_cv_type_unsigned_long_long_int=yes
24235 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
24236 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24237 /* end confdefs.h. */
24239 /* For now, do not test the preprocessor; as of 2007 there are too many
24240 implementations with broken preprocessors. Perhaps this can
24241 be revisited in 2012. In the meantime, code should not expect
24242 #if to work with literals wider than 32 bits. */
24243 /* Test literals. */
24244 long long int ll = 9223372036854775807ll;
24245 long long int nll = -9223372036854775807LL;
24246 unsigned long long int ull = 18446744073709551615ULL;
24247 /* Test constant expressions. */
24248 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
24250 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
24256 /* Test availability of runtime routines for shift and division. */
24257 long long int llmax = 9223372036854775807ll;
24258 unsigned long long int ullmax = 18446744073709551615ull;
24259 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
24260 | (llmax / ll) | (llmax % ll)
24261 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
24262 | (ullmax / ull) | (ullmax % ull));
24268 if ac_fn_c_try_link "$LINENO"; then :
24271 ac_cv_type_unsigned_long_long_int=no
24273 rm -f core conftest.err conftest.$ac_objext \
24274 conftest$ac_exeext conftest.$ac_ext
24277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
24278 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
24279 if test $ac_cv_type_unsigned_long_long_int = yes; then
24281 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
24287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
24288 $as_echo_n "checking for long long int... " >&6; }
24289 if ${ac_cv_type_long_long_int+:} false; then :
24290 $as_echo_n "(cached) " >&6
24292 ac_cv_type_long_long_int=yes
24293 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
24294 ac_cv_type_long_long_int=$ac_cv_type_unsigned_long_long_int
24295 if test $ac_cv_type_long_long_int = yes; then
24296 if test "$cross_compiling" = yes; then :
24299 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24300 /* end confdefs.h. */
24301 #include <limits.h>
24304 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
24305 # define LLONG_MAX (HALF - 1 + HALF)
24310 long long int n = 1;
24314 long long int m = n << i;
24317 if (LLONG_MAX / 2 < m)
24325 if ac_fn_c_try_run "$LINENO"; then :
24328 ac_cv_type_long_long_int=no
24330 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24331 conftest.$ac_objext conftest.beam conftest.$ac_ext
24337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
24338 $as_echo "$ac_cv_type_long_long_int" >&6; }
24339 if test $ac_cv_type_long_long_int = yes; then
24341 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
24358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a traditional japanese locale" >&5
24359 $as_echo_n "checking for a traditional japanese locale... " >&6; }
24360 if ${gt_cv_locale_ja+:} false; then :
24361 $as_echo_n "(cached) " >&6
24364 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24365 /* end confdefs.h. */
24367 #include <locale.h>
24369 #if HAVE_LANGINFO_CODESET
24370 # include <langinfo.h>
24372 #include <stdlib.h>
24373 #include <string.h>
24379 /* Check whether the given locale name is recognized by the system. */
24380 #if (defined _WIN32 || defined __WIN32__) && !defined __CYGWIN__
24381 /* On native Windows, setlocale(category, "") looks at the system settings,
24382 not at the environment variables. Also, when an encoding suffix such
24383 as ".65001" or ".54936" is specified, it succeeds but sets the LC_CTYPE
24384 category of the locale to "C". */
24385 if (setlocale (LC_ALL, getenv ("LC_ALL")) == NULL
24386 || strcmp (setlocale (LC_CTYPE, NULL), "C") == 0)
24389 if (setlocale (LC_ALL, "") == NULL) return 1;
24391 /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
24392 On Mac OS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
24393 is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
24394 On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
24395 succeeds but then nl_langinfo(CODESET) is "646". In this situation,
24396 some unit tests fail.
24397 On MirBSD 10, when an unsupported locale is specified, setlocale()
24398 succeeds but then nl_langinfo(CODESET) is "UTF-8". */
24399 #if HAVE_LANGINFO_CODESET
24401 const char *cs = nl_langinfo (CODESET);
24402 if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0
24403 || strcmp (cs, "UTF-8") == 0)
24408 /* On Cygwin, avoid locale names without encoding suffix, because the
24409 locale_charset() function relies on the encoding suffix. Note that
24410 LC_ALL is set on the command line. */
24411 if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
24413 /* Check whether MB_CUR_MAX is > 1. This excludes the dysfunctional locales
24414 on Cygwin 1.5.x. */
24415 if (MB_CUR_MAX == 1)
24417 /* Check whether in a month name, no byte in the range 0x80..0x9F occurs.
24418 This excludes the UTF-8 encoding (except on MirBSD). */
24419 t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
24420 if (strftime (buf, sizeof (buf), "%B", &t) < 2) return 1;
24421 for (p = buf; *p != '\0'; p++)
24422 if ((unsigned char) *p >= 0x80 && (unsigned char) *p < 0xa0)
24428 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
24429 (eval $ac_link) 2>&5
24431 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24432 test $ac_status = 0; } && test -s conftest$ac_exeext; then
24434 # Handle native Windows specially, because there setlocale() interprets
24435 # "ar" as "Arabic" or "Arabic_Saudi Arabia.1256",
24436 # "fr" or "fra" as "French" or "French_France.1252",
24437 # "ge"(!) or "deu"(!) as "German" or "German_Germany.1252",
24438 # "ja" as "Japanese" or "Japanese_Japan.932",
24441 # Note that on native Windows, the Japanese locale is
24442 # Japanese_Japan.932, and CP932 is very different from EUC-JP, so we
24443 # cannot use it here.
24444 gt_cv_locale_ja=none
24447 # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
24448 # otherwise on Mac OS X 10.3.5 the LC_TIME=C from the beginning of the
24449 # configure script would override the LC_ALL setting. Likewise for
24450 # LC_CTYPE, which is also set at the beginning of the configure script.
24451 # Test for the AIX locale name.
24452 if (LC_ALL=ja_JP LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
24453 gt_cv_locale_ja=ja_JP
24455 # Test for the locale name with explicit encoding suffix.
24456 if (LC_ALL=ja_JP.EUC-JP LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
24457 gt_cv_locale_ja=ja_JP.EUC-JP
24459 # Test for the HP-UX, OSF/1, NetBSD locale name.
24460 if (LC_ALL=ja_JP.eucJP LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
24461 gt_cv_locale_ja=ja_JP.eucJP
24463 # Test for the IRIX, FreeBSD locale name.
24464 if (LC_ALL=ja_JP.EUC LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
24465 gt_cv_locale_ja=ja_JP.EUC
24467 # Test for the Solaris 7 locale name.
24468 if (LC_ALL=ja LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
24471 # Special test for NetBSD 1.6.
24472 if test -f /usr/share/locale/ja_JP.eucJP/LC_CTYPE; then
24473 gt_cv_locale_ja=ja_JP.eucJP
24476 gt_cv_locale_ja=none
24489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_ja" >&5
24490 $as_echo "$gt_cv_locale_ja" >&6; }
24491 LOCALE_JA=$gt_cv_locale_ja
24497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a transitional chinese locale" >&5
24498 $as_echo_n "checking for a transitional chinese locale... " >&6; }
24499 if ${gt_cv_locale_zh_CN+:} false; then :
24500 $as_echo_n "(cached) " >&6
24503 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24504 /* end confdefs.h. */
24506 #include <locale.h>
24507 #include <stdlib.h>
24509 #if HAVE_LANGINFO_CODESET
24510 # include <langinfo.h>
24512 #include <stdlib.h>
24513 #include <string.h>
24519 /* Check whether the given locale name is recognized by the system. */
24520 #if (defined _WIN32 || defined __WIN32__) && !defined __CYGWIN__
24521 /* On native Windows, setlocale(category, "") looks at the system settings,
24522 not at the environment variables. Also, when an encoding suffix such
24523 as ".65001" or ".54936" is specified, it succeeds but sets the LC_CTYPE
24524 category of the locale to "C". */
24525 if (setlocale (LC_ALL, getenv ("LC_ALL")) == NULL
24526 || strcmp (setlocale (LC_CTYPE, NULL), "C") == 0)
24529 if (setlocale (LC_ALL, "") == NULL) return 1;
24531 /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
24532 On Mac OS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
24533 is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
24534 On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
24535 succeeds but then nl_langinfo(CODESET) is "646". In this situation,
24536 some unit tests fail.
24537 On MirBSD 10, when an unsupported locale is specified, setlocale()
24538 succeeds but then nl_langinfo(CODESET) is "UTF-8". */
24539 #if HAVE_LANGINFO_CODESET
24541 const char *cs = nl_langinfo (CODESET);
24542 if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0
24543 || strcmp (cs, "UTF-8") == 0)
24548 /* On Cygwin, avoid locale names without encoding suffix, because the
24549 locale_charset() function relies on the encoding suffix. Note that
24550 LC_ALL is set on the command line. */
24551 if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
24553 /* Check whether in a month name, no byte in the range 0x80..0x9F occurs.
24554 This excludes the UTF-8 encoding (except on MirBSD). */
24555 t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
24556 if (strftime (buf, sizeof (buf), "%B", &t) < 2) return 1;
24557 for (p = buf; *p != '\0'; p++)
24558 if ((unsigned char) *p >= 0x80 && (unsigned char) *p < 0xa0)
24560 /* Check whether a typical GB18030 multibyte sequence is recognized as a
24561 single wide character. This excludes the GB2312 and GBK encodings. */
24562 if (mblen ("\203\062\332\066", 5) != 4)
24568 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
24569 (eval $ac_link) 2>&5
24571 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24572 test $ac_status = 0; } && test -s conftest$ac_exeext; then
24574 # Handle native Windows specially, because there setlocale() interprets
24575 # "ar" as "Arabic" or "Arabic_Saudi Arabia.1256",
24576 # "fr" or "fra" as "French" or "French_France.1252",
24577 # "ge"(!) or "deu"(!) as "German" or "German_Germany.1252",
24578 # "ja" as "Japanese" or "Japanese_Japan.932",
24581 # Test for the hypothetical native Windows locale name.
24582 if (LC_ALL=Chinese_China.54936 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
24583 gt_cv_locale_zh_CN=Chinese_China.54936
24586 gt_cv_locale_zh_CN=none
24590 # On Solaris 8, the locales zh_CN.GB18030, zh_CN.GBK, zh.GBK are
24591 # broken. One witness is the test case in gl_MBRTOWC_SANITYCHECK.
24592 # Another witness is that "LC_ALL=zh_CN.GB18030 bash -c true" dumps core.
24593 gt_cv_locale_zh_CN=none
24596 # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
24597 # otherwise on Mac OS X 10.3.5 the LC_TIME=C from the beginning of the
24598 # configure script would override the LC_ALL setting. Likewise for
24599 # LC_CTYPE, which is also set at the beginning of the configure script.
24600 # Test for the locale name without encoding suffix.
24601 if (LC_ALL=zh_CN LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
24602 gt_cv_locale_zh_CN=zh_CN
24604 # Test for the locale name with explicit encoding suffix.
24605 if (LC_ALL=zh_CN.GB18030 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
24606 gt_cv_locale_zh_CN=zh_CN.GB18030
24609 gt_cv_locale_zh_CN=none
24615 # If there was a link error, due to mblen(), the system is so old that
24616 # it certainly doesn't have a chinese locale.
24617 gt_cv_locale_zh_CN=none
24622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_zh_CN" >&5
24623 $as_echo "$gt_cv_locale_zh_CN" >&6; }
24624 LOCALE_ZH_CN=$gt_cv_locale_zh_CN
24629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a french Unicode locale" >&5
24630 $as_echo_n "checking for a french Unicode locale... " >&6; }
24631 if ${gt_cv_locale_fr_utf8+:} false; then :
24632 $as_echo_n "(cached) " >&6
24635 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24636 /* end confdefs.h. */
24638 #include <locale.h>
24640 #if HAVE_LANGINFO_CODESET
24641 # include <langinfo.h>
24643 #include <stdlib.h>
24644 #include <string.h>
24648 /* On BeOS and Haiku, locales are not implemented in libc. Rather, libintl
24649 imitates locale dependent behaviour by looking at the environment
24650 variables, and all locales use the UTF-8 encoding. */
24651 #if !(defined __BEOS__ || defined __HAIKU__)
24652 /* Check whether the given locale name is recognized by the system. */
24653 # if (defined _WIN32 || defined __WIN32__) && !defined __CYGWIN__
24654 /* On native Windows, setlocale(category, "") looks at the system settings,
24655 not at the environment variables. Also, when an encoding suffix such
24656 as ".65001" or ".54936" is specified, it succeeds but sets the LC_CTYPE
24657 category of the locale to "C". */
24658 if (setlocale (LC_ALL, getenv ("LC_ALL")) == NULL
24659 || strcmp (setlocale (LC_CTYPE, NULL), "C") == 0)
24662 if (setlocale (LC_ALL, "") == NULL) return 1;
24664 /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
24665 On Mac OS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
24666 is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
24667 On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
24668 succeeds but then nl_langinfo(CODESET) is "646". In this situation,
24669 some unit tests fail. */
24670 # if HAVE_LANGINFO_CODESET
24672 const char *cs = nl_langinfo (CODESET);
24673 if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0)
24678 /* On Cygwin, avoid locale names without encoding suffix, because the
24679 locale_charset() function relies on the encoding suffix. Note that
24680 LC_ALL is set on the command line. */
24681 if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
24683 /* Check whether in the abbreviation of the second month, the second
24684 character (should be U+00E9: LATIN SMALL LETTER E WITH ACUTE) is
24685 two bytes long, with UTF-8 encoding. */
24686 t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
24687 if (strftime (buf, sizeof (buf), "%b", &t) < 4
24688 || buf[1] != (char) 0xc3 || buf[2] != (char) 0xa9 || buf[3] != 'v')
24691 #if !defined __BIONIC__ /* Bionic libc's 'struct lconv' is just a dummy. */
24692 /* Check whether the decimal separator is a comma.
24693 On NetBSD 3.0 in the fr_FR.ISO8859-1 locale, localeconv()->decimal_point
24694 are nl_langinfo(RADIXCHAR) are both ".". */
24695 if (localeconv () ->decimal_point[0] != ',') return 1;
24701 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
24702 (eval $ac_link) 2>&5
24704 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24705 test $ac_status = 0; } && test -s conftest$ac_exeext; then
24707 # Handle native Windows specially, because there setlocale() interprets
24708 # "ar" as "Arabic" or "Arabic_Saudi Arabia.1256",
24709 # "fr" or "fra" as "French" or "French_France.1252",
24710 # "ge"(!) or "deu"(!) as "German" or "German_Germany.1252",
24711 # "ja" as "Japanese" or "Japanese_Japan.932",
24714 # Test for the hypothetical native Windows locale name.
24715 if (LC_ALL=French_France.65001 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
24716 gt_cv_locale_fr_utf8=French_France.65001
24719 gt_cv_locale_fr_utf8=none
24723 # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
24724 # otherwise on Mac OS X 10.3.5 the LC_TIME=C from the beginning of the
24725 # configure script would override the LC_ALL setting. Likewise for
24726 # LC_CTYPE, which is also set at the beginning of the configure script.
24727 # Test for the usual locale name.
24728 if (LC_ALL=fr_FR LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
24729 gt_cv_locale_fr_utf8=fr_FR
24731 # Test for the locale name with explicit encoding suffix.
24732 if (LC_ALL=fr_FR.UTF-8 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
24733 gt_cv_locale_fr_utf8=fr_FR.UTF-8
24735 # Test for the Solaris 7 locale name.
24736 if (LC_ALL=fr.UTF-8 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
24737 gt_cv_locale_fr_utf8=fr.UTF-8
24740 gt_cv_locale_fr_utf8=none
24750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_fr_utf8" >&5
24751 $as_echo "$gt_cv_locale_fr_utf8" >&6; }
24752 LOCALE_FR_UTF8=$gt_cv_locale_fr_utf8
24772 GNULIB_RAWMEMCHR=0;
24775 GNULIB_STRCHRNUL=0;
24783 GNULIB_STRCASESTR=0;
24790 GNULIB_MBSCASECMP=0;
24791 GNULIB_MBSNCASECMP=0;
24792 GNULIB_MBSPCASECMP=0;
24793 GNULIB_MBSCASESTR=0;
24800 GNULIB_STRERROR_R=0;
24801 GNULIB_STRSIGNAL=0;
24802 GNULIB_STRVERSCMP=0;
24807 HAVE_DECL_MEMMEM=1;
24809 HAVE_DECL_MEMRCHR=1;
24814 HAVE_DECL_STRDUP=1;
24815 HAVE_DECL_STRNDUP=1;
24816 HAVE_DECL_STRNLEN=1;
24820 HAVE_DECL_STRTOK_R=1;
24821 HAVE_DECL_STRERROR_R=1;
24822 HAVE_DECL_STRSIGNAL=1;
24829 REPLACE_STRCASESTR=0;
24830 REPLACE_STRCHRNUL=0;
24831 REPLACE_STRERROR=0;
24832 REPLACE_STRERROR_R=0;
24836 REPLACE_STRSIGNAL=0;
24837 REPLACE_STRTOK_R=0;
24838 UNDEFINE_STRTOK_R=0;
24844 # Check for mmap(). Don't use AC_FUNC_MMAP, because it checks too much: it
24845 # fails on HP-UX 11, because MAP_FIXED mappings do not work. But this is
24846 # irrelevant for anonymous mappings.
24847 ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
24848 if test "x$ac_cv_func_mmap" = xyes; then :
24855 # Try to allow MAP_ANONYMOUS.
24856 gl_have_mmap_anonymous=no
24857 if test $gl_have_mmap = yes; then
24858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANONYMOUS" >&5
24859 $as_echo_n "checking for MAP_ANONYMOUS... " >&6; }
24860 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24861 /* end confdefs.h. */
24863 #include <sys/mman.h>
24864 #ifdef MAP_ANONYMOUS
24865 I cannot identify this map
24869 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24870 $EGREP "I cannot identify this map" >/dev/null 2>&1; then :
24871 gl_have_mmap_anonymous=yes
24875 if test $gl_have_mmap_anonymous != yes; then
24876 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24877 /* end confdefs.h. */
24879 #include <sys/mman.h>
24881 I cannot identify this map
24885 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24886 $EGREP "I cannot identify this map" >/dev/null 2>&1; then :
24888 $as_echo "#define MAP_ANONYMOUS MAP_ANON" >>confdefs.h
24890 gl_have_mmap_anonymous=yes
24895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_have_mmap_anonymous" >&5
24896 $as_echo "$gl_have_mmap_anonymous" >&6; }
24897 if test $gl_have_mmap_anonymous = yes; then
24899 $as_echo "#define HAVE_MAP_ANONYMOUS 1" >>confdefs.h
24921 if test $HAVE_MEMCHR = 1; then
24922 # Detect platform-specific bugs in some versions of glibc:
24923 # memchr should not dereference anything with length 0
24924 # http://bugzilla.redhat.com/499689
24925 # memchr should not dereference overestimated length after a match
24926 # http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=521737
24927 # http://sourceware.org/bugzilla/show_bug.cgi?id=10162
24928 # Assume that memchr works on platforms that lack mprotect.
24929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether memchr works" >&5
24930 $as_echo_n "checking whether memchr works... " >&6; }
24931 if ${gl_cv_func_memchr_works+:} false; then :
24932 $as_echo_n "(cached) " >&6
24934 if test "$cross_compiling" = yes; then :
24935 gl_cv_func_memchr_works="guessing no"
24937 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24938 /* end confdefs.h. */
24940 #include <string.h>
24941 #if HAVE_SYS_MMAN_H
24942 # include <fcntl.h>
24943 # include <unistd.h>
24944 # include <sys/types.h>
24945 # include <sys/mman.h>
24947 # define MAP_FILE 0
24956 char *fence = NULL;
24957 #if HAVE_SYS_MMAN_H && HAVE_MPROTECT
24958 # if HAVE_MAP_ANONYMOUS
24959 const int flags = MAP_ANONYMOUS | MAP_PRIVATE;
24961 # else /* !HAVE_MAP_ANONYMOUS */
24962 const int flags = MAP_FILE | MAP_PRIVATE;
24963 int fd = open ("/dev/zero", O_RDONLY, 0666);
24967 int pagesize = getpagesize ();
24969 (char *) mmap (NULL, 2 * pagesize, PROT_READ | PROT_WRITE,
24971 if (two_pages != (char *)(-1)
24972 && mprotect (two_pages + pagesize, pagesize, PROT_NONE) == 0)
24973 fence = two_pages + pagesize;
24978 if (memchr (fence, 0, 0))
24980 strcpy (fence - 9, "12345678");
24981 if (memchr (fence - 9, 0, 79) != fence - 1)
24983 if (memchr (fence - 1, 0, 3) != fence - 1)
24992 if ac_fn_c_try_run "$LINENO"; then :
24993 gl_cv_func_memchr_works=yes
24995 gl_cv_func_memchr_works=no
24997 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24998 conftest.$ac_objext conftest.beam conftest.$ac_ext
25002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_memchr_works" >&5
25003 $as_echo "$gl_cv_func_memchr_works" >&6; }
25004 if test "$gl_cv_func_memchr_works" != yes; then
25010 ac_fn_c_check_decl "$LINENO" "memmem" "ac_cv_have_decl_memmem" "$ac_includes_default"
25011 if test "x$ac_cv_have_decl_memmem" = xyes; then :
25017 cat >>confdefs.h <<_ACEOF
25018 #define HAVE_DECL_MEMMEM $ac_have_decl
25026 for ac_func in memmem
25028 ac_fn_c_check_func "$LINENO" "memmem" "ac_cv_func_memmem"
25029 if test "x$ac_cv_func_memmem" = xyes; then :
25030 cat >>confdefs.h <<_ACEOF
25031 #define HAVE_MEMMEM 1
25037 if test $ac_cv_func_memmem = yes; then
25049 if test $ac_cv_have_decl_memmem = no; then
25052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether memmem works" >&5
25053 $as_echo_n "checking whether memmem works... " >&6; }
25054 if ${gl_cv_func_memmem_works_always+:} false; then :
25055 $as_echo_n "(cached) " >&6
25057 if test "$cross_compiling" = yes; then :
25058 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25059 /* end confdefs.h. */
25061 #ifdef __GNU_LIBRARY__
25062 #include <features.h>
25063 #if ((__GLIBC__ == 2 && ((__GLIBC_MINOR > 0 && __GLIBC_MINOR__ < 9) \
25064 || __GLIBC_MINOR__ > 12)) \
25065 || (__GLIBC__ > 2)) \
25066 || defined __UCLIBC__
25069 #elif defined __CYGWIN__
25070 #include <cygwin/version.h>
25071 #if CYGWIN_VERSION_DLL_COMBINED > CYGWIN_VERSION_DLL_MAKE_COMBINED (1007, 7)
25079 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25080 $EGREP "Lucky user" >/dev/null 2>&1; then :
25081 gl_cv_func_memmem_works_always="guessing yes"
25083 gl_cv_func_memmem_works_always="guessing no"
25089 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25090 /* end confdefs.h. */
25092 #include <string.h> /* for memmem */
25093 #define P "_EF_BF_BD"
25094 #define HAYSTACK "F_BD_CE_BD" P P P P "_C3_88_20" P P P "_C3_A7_20" P
25095 #define NEEDLE P P P P P
25102 if (memmem (HAYSTACK, strlen (HAYSTACK), NEEDLE, strlen (NEEDLE)))
25104 /* Check for empty needle behavior. */
25106 const char *haystack = "AAA";
25107 if (memmem (haystack, 3, NULL, 0) != haystack)
25116 if ac_fn_c_try_run "$LINENO"; then :
25117 gl_cv_func_memmem_works_always=yes
25119 gl_cv_func_memmem_works_always=no
25121 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25122 conftest.$ac_objext conftest.beam conftest.$ac_ext
25127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_memmem_works_always" >&5
25128 $as_echo "$gl_cv_func_memmem_works_always" >&6; }
25129 case "$gl_cv_func_memmem_works_always" in
25139 ac_fn_c_check_decl "$LINENO" "memrchr" "ac_cv_have_decl_memrchr" "$ac_includes_default"
25140 if test "x$ac_cv_have_decl_memrchr" = xyes; then :
25146 cat >>confdefs.h <<_ACEOF
25147 #define HAVE_DECL_MEMRCHR $ac_have_decl
25155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <limits.h> defines MIN and MAX" >&5
25156 $as_echo_n "checking whether <limits.h> defines MIN and MAX... " >&6; }
25157 if ${gl_cv_minmax_in_limits_h+:} false; then :
25158 $as_echo_n "(cached) " >&6
25160 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25161 /* end confdefs.h. */
25162 #include <limits.h>
25163 int x = MIN (42, 17);
25172 if ac_fn_c_try_compile "$LINENO"; then :
25173 gl_cv_minmax_in_limits_h=yes
25175 gl_cv_minmax_in_limits_h=no
25177 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_minmax_in_limits_h" >&5
25180 $as_echo "$gl_cv_minmax_in_limits_h" >&6; }
25181 if test $gl_cv_minmax_in_limits_h = yes; then
25183 $as_echo "#define HAVE_MINMAX_IN_LIMITS_H 1" >>confdefs.h
25192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <sys/param.h> defines MIN and MAX" >&5
25193 $as_echo_n "checking whether <sys/param.h> defines MIN and MAX... " >&6; }
25194 if ${gl_cv_minmax_in_sys_param_h+:} false; then :
25195 $as_echo_n "(cached) " >&6
25197 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25198 /* end confdefs.h. */
25199 #include <sys/param.h>
25200 int x = MIN (42, 17);
25209 if ac_fn_c_try_compile "$LINENO"; then :
25210 gl_cv_minmax_in_sys_param_h=yes
25212 gl_cv_minmax_in_sys_param_h=no
25214 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_minmax_in_sys_param_h" >&5
25217 $as_echo "$gl_cv_minmax_in_sys_param_h" >&6; }
25218 if test $gl_cv_minmax_in_sys_param_h = yes; then
25220 $as_echo "#define HAVE_MINMAX_IN_SYS_PARAM_H 1" >>confdefs.h
25233 gl_cv_c_multiarch=no
25234 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25235 /* end confdefs.h. */
25236 #ifndef __APPLE_CC__
25237 not a universal capable compiler
25242 if ac_fn_c_try_compile "$LINENO"; then :
25246 for word in ${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS}; do
25247 if test -n "$prev"; then
25249 i?86 | x86_64 | ppc | ppc64)
25250 if test -z "$arch" || test "$arch" = "$word"; then
25253 gl_cv_c_multiarch=yes
25259 if test "x$word" = "x-arch"; then
25266 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25267 if test $gl_cv_c_multiarch = yes; then
25268 APPLE_UNIVERSAL_BUILD=1
25270 APPLE_UNIVERSAL_BUILD=0
25276 GNULIB_NANOSLEEP=0;
25280 HAVE_DECL_LOCALTIME_R=1;
25284 REPLACE_LOCALTIME_R=GNULIB_PORTCHECK;
25285 REPLACE_MKTIME=GNULIB_PORTCHECK;
25286 REPLACE_NANOSLEEP=GNULIB_PORTCHECK;
25287 REPLACE_TIMEGM=GNULIB_PORTCHECK;
25289 : ${GNULIB_GETTIMEOFDAY=0};
25291 REPLACE_LOCALTIME=0;
25308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <sys/select.h> is self-contained" >&5
25309 $as_echo_n "checking whether <sys/select.h> is self-contained... " >&6; }
25310 if ${gl_cv_header_sys_select_h_selfcontained+:} false; then :
25311 $as_echo_n "(cached) " >&6
25314 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25315 /* end confdefs.h. */
25316 #include <sys/select.h>
25325 if ac_fn_c_try_compile "$LINENO"; then :
25326 gl_cv_header_sys_select_h_selfcontained=yes
25328 gl_cv_header_sys_select_h_selfcontained=no
25330 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25331 if test $gl_cv_header_sys_select_h_selfcontained = yes; then
25332 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25333 /* end confdefs.h. */
25334 #include <sys/select.h>
25338 int memset; int bzero;
25344 if ac_fn_c_try_compile "$LINENO"; then :
25345 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25346 /* end confdefs.h. */
25347 #include <sys/select.h>
25353 #define memset nonexistent_memset
25358 void *memset (void *, int, unsigned long);
25360 #define bzero nonexistent_bzero
25365 void bzero (void *, unsigned long);
25374 if ac_fn_c_try_link "$LINENO"; then :
25377 gl_cv_header_sys_select_h_selfcontained=no
25379 rm -f core conftest.err conftest.$ac_objext \
25380 conftest$ac_exeext conftest.$ac_ext
25383 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_sys_select_h_selfcontained" >&5
25388 $as_echo "$gl_cv_header_sys_select_h_selfcontained" >&6; }
25404 if test $gl_cv_have_include_next = yes; then
25405 gl_cv_next_sys_select_h='<'sys/select.h'>'
25407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/select.h>" >&5
25408 $as_echo_n "checking absolute name of <sys/select.h>... " >&6; }
25409 if ${gl_cv_next_sys_select_h+:} false; then :
25410 $as_echo_n "(cached) " >&6
25413 if test $ac_cv_header_sys_select_h = yes; then
25418 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25419 /* end confdefs.h. */
25420 #include <sys/select.h>
25423 aix*) gl_absname_cpp="$ac_cpp -C" ;;
25424 *) gl_absname_cpp="$ac_cpp" ;;
25429 gl_dirsep_regex='[/\\]'
25432 gl_dirsep_regex='\/'
25435 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
25436 gl_header_literal_regex=`echo 'sys/select.h' \
25437 | sed -e "$gl_make_literal_regex_sed"`
25438 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
25439 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
25445 gl_cv_absolute_sys_select_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
25446 sed -n "$gl_absolute_header_sed"`
25448 gl_header=$gl_cv_absolute_sys_select_h
25449 gl_cv_next_sys_select_h='"'$gl_header'"'
25451 gl_cv_next_sys_select_h='<'sys/select.h'>'
25456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_select_h" >&5
25457 $as_echo "$gl_cv_next_sys_select_h" >&6; }
25459 NEXT_SYS_SELECT_H=$gl_cv_next_sys_select_h
25461 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
25462 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
25463 gl_next_as_first_directive='<'sys/select.h'>'
25465 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
25466 gl_next_as_first_directive=$gl_cv_next_sys_select_h
25468 NEXT_AS_FIRST_DIRECTIVE_SYS_SELECT_H=$gl_next_as_first_directive
25473 if test $ac_cv_header_sys_select_h = yes; then
25474 HAVE_SYS_SELECT_H=1
25476 HAVE_SYS_SELECT_H=0
25489 if test $ac_cv_header_sys_socket_h != yes; then
25490 for ac_header in winsock2.h
25492 ac_fn_c_check_header_mongrel "$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
25493 if test "x$ac_cv_header_winsock2_h" = xyes; then :
25494 cat >>confdefs.h <<_ACEOF
25495 #define HAVE_WINSOCK2_H 1
25503 if test "$ac_cv_header_winsock2_h" = yes; then
25505 UNISTD_H_HAVE_WINSOCK2_H=1
25506 SYS_IOCTL_H_HAVE_WINSOCK2_H=1
25514 for gl_func in pselect select; do
25515 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
25516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
25517 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
25518 if eval \${$as_gl_Symbol+:} false; then :
25519 $as_echo_n "(cached) " >&6
25521 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25522 /* end confdefs.h. */
25524 /* Some systems require prerequisite headers. */
25525 #include <sys/types.h>
25526 #if !(defined __GLIBC__ && !defined __UCLIBC__) && HAVE_SYS_TIME_H
25527 # include <sys/time.h>
25529 #include <sys/select.h>
25540 if ac_fn_c_try_compile "$LINENO"; then :
25541 eval "$as_gl_Symbol=yes"
25543 eval "$as_gl_Symbol=no"
25545 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25547 eval ac_res=\$$as_gl_Symbol
25548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
25549 $as_echo "$ac_res" >&6; }
25550 if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
25551 cat >>confdefs.h <<_ACEOF
25552 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
25555 eval ac_cv_have_decl_$gl_func=yes
25571 if test $ac_cv_header_sys_socket_h != yes; then
25572 for ac_header in winsock2.h
25574 ac_fn_c_check_header_mongrel "$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
25575 if test "x$ac_cv_header_winsock2_h" = xyes; then :
25576 cat >>confdefs.h <<_ACEOF
25577 #define HAVE_WINSOCK2_H 1
25585 if test "$ac_cv_header_winsock2_h" = yes; then
25587 UNISTD_H_HAVE_WINSOCK2_H=1
25588 SYS_IOCTL_H_HAVE_WINSOCK2_H=1
25594 if test $HAVE_WINSOCK2_H = 1; then
25595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we need to call WSAStartup in winsock2.h and -lws2_32" >&5
25596 $as_echo_n "checking if we need to call WSAStartup in winsock2.h and -lws2_32... " >&6; }
25597 if ${gl_cv_func_wsastartup+:} false; then :
25598 $as_echo_n "(cached) " >&6
25601 gl_save_LIBS="$LIBS"
25602 LIBS="$LIBS -lws2_32"
25603 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25604 /* end confdefs.h. */
25606 #ifdef HAVE_WINSOCK2_H
25607 # include <winsock2.h>
25613 WORD wVersionRequested = MAKEWORD(1, 1);
25615 int err = WSAStartup(wVersionRequested, &wsaData);
25621 if ac_fn_c_try_link "$LINENO"; then :
25622 gl_cv_func_wsastartup=yes
25624 gl_cv_func_wsastartup=no
25626 rm -f core conftest.err conftest.$ac_objext \
25627 conftest$ac_exeext conftest.$ac_ext
25628 LIBS="$gl_save_LIBS"
25631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_wsastartup" >&5
25632 $as_echo "$gl_cv_func_wsastartup" >&6; }
25633 if test "$gl_cv_func_wsastartup" = "yes"; then
25635 $as_echo "#define WINDOWS_SOCKETS 1" >>confdefs.h
25637 LIBSOCKET='-lws2_32'
25640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing setsockopt" >&5
25641 $as_echo_n "checking for library containing setsockopt... " >&6; }
25642 if ${gl_cv_lib_socket+:} false; then :
25643 $as_echo_n "(cached) " >&6
25647 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25648 /* end confdefs.h. */
25662 if ac_fn_c_try_link "$LINENO"; then :
25665 gl_save_LIBS="$LIBS"
25666 LIBS="$gl_save_LIBS -lsocket"
25667 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25668 /* end confdefs.h. */
25682 if ac_fn_c_try_link "$LINENO"; then :
25683 gl_cv_lib_socket="-lsocket"
25685 rm -f core conftest.err conftest.$ac_objext \
25686 conftest$ac_exeext conftest.$ac_ext
25687 if test -z "$gl_cv_lib_socket"; then
25688 LIBS="$gl_save_LIBS -lnetwork"
25689 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25690 /* end confdefs.h. */
25704 if ac_fn_c_try_link "$LINENO"; then :
25705 gl_cv_lib_socket="-lnetwork"
25707 rm -f core conftest.err conftest.$ac_objext \
25708 conftest$ac_exeext conftest.$ac_ext
25709 if test -z "$gl_cv_lib_socket"; then
25710 LIBS="$gl_save_LIBS -lnet"
25711 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25712 /* end confdefs.h. */
25726 if ac_fn_c_try_link "$LINENO"; then :
25727 gl_cv_lib_socket="-lnet"
25729 rm -f core conftest.err conftest.$ac_objext \
25730 conftest$ac_exeext conftest.$ac_ext
25733 LIBS="$gl_save_LIBS"
25736 rm -f core conftest.err conftest.$ac_objext \
25737 conftest$ac_exeext conftest.$ac_ext
25738 if test -z "$gl_cv_lib_socket"; then
25739 gl_cv_lib_socket="none needed"
25743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_lib_socket" >&5
25744 $as_echo "$gl_cv_lib_socket" >&6; }
25745 if test "$gl_cv_lib_socket" != "none needed"; then
25746 LIBSOCKET="$gl_cv_lib_socket"
25761 if test "$ac_cv_header_winsock2_h" = yes; then
25771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether select supports a 0 argument" >&5
25772 $as_echo_n "checking whether select supports a 0 argument... " >&6; }
25773 if ${gl_cv_func_select_supports0+:} false; then :
25774 $as_echo_n "(cached) " >&6
25777 if test "$cross_compiling" = yes; then :
25780 # Guess no on Interix.
25781 interix*) gl_cv_func_select_supports0="guessing no";;
25782 # Guess yes otherwise.
25783 *) gl_cv_func_select_supports0="guessing yes";;
25787 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25788 /* end confdefs.h. */
25790 #include <sys/types.h>
25791 #include <sys/time.h>
25792 #if HAVE_SYS_SELECT_H
25793 #include <sys/select.h>
25797 struct timeval timeout;
25798 timeout.tv_sec = 0;
25799 timeout.tv_usec = 5;
25800 return select (0, (fd_set *)0, (fd_set *)0, (fd_set *)0, &timeout) < 0;
25803 if ac_fn_c_try_run "$LINENO"; then :
25804 gl_cv_func_select_supports0=yes
25806 gl_cv_func_select_supports0=no
25808 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25809 conftest.$ac_objext conftest.beam conftest.$ac_ext
25814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_select_supports0" >&5
25815 $as_echo "$gl_cv_func_select_supports0" >&6; }
25816 case "$gl_cv_func_select_supports0" in
25818 *) REPLACE_SELECT=1 ;;
25821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether select detects invalid fds" >&5
25822 $as_echo_n "checking whether select detects invalid fds... " >&6; }
25823 if ${gl_cv_func_select_detects_ebadf+:} false; then :
25824 $as_echo_n "(cached) " >&6
25827 if test "$cross_compiling" = yes; then :
25830 # Guess yes on glibc systems.
25831 *-gnu*) gl_cv_func_select_detects_ebadf="guessing yes" ;;
25832 # If we don't know, assume the worst.
25833 *) gl_cv_func_select_detects_ebadf="guessing no" ;;
25837 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25838 /* end confdefs.h. */
25840 #include <sys/types.h>
25841 #include <sys/time.h>
25842 #if HAVE_SYS_SELECT_H
25843 # include <sys/select.h>
25845 #include <unistd.h>
25857 struct timeval timeout;
25858 timeout.tv_sec = 0;
25859 timeout.tv_usec = 5;
25860 return select (17, &set, NULL, NULL, &timeout) != -1 || errno != EBADF;
25866 if ac_fn_c_try_run "$LINENO"; then :
25867 gl_cv_func_select_detects_ebadf=yes
25869 gl_cv_func_select_detects_ebadf=no
25871 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25872 conftest.$ac_objext conftest.beam conftest.$ac_ext
25877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_select_detects_ebadf" >&5
25878 $as_echo "$gl_cv_func_select_detects_ebadf" >&6; }
25879 case $gl_cv_func_select_detects_ebadf in
25881 *) REPLACE_SELECT=1 ;;
25885 LIB_SELECT="$LIBSOCKET"
25886 if test $REPLACE_SELECT = 1; then
25889 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25890 /* end confdefs.h. */
25892 #define WIN32_LEAN_AND_MEAN
25893 #include <windows.h>
25897 MsgWaitForMultipleObjects (0, NULL, 0, 0, 0);
25901 if ac_fn_c_try_link "$LINENO"; then :
25904 LIB_SELECT="$LIB_SELECT -luser32"
25906 rm -f core conftest.err conftest.$ac_objext \
25907 conftest$ac_exeext conftest.$ac_ext
25921 mingw*) gl_cv_have_nonblocking=no ;;
25922 *) gl_cv_have_nonblocking=yes ;;
25925 mingw*) gl_cv_have_open_O_NONBLOCK=no ;;
25926 *) gl_cv_have_open_O_NONBLOCK=yes ;;
25930 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25931 /* end confdefs.h. */
25938 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25939 $EGREP "MicrosoftCompiler" >/dev/null 2>&1; then :
25941 gl_c_asm_opt='-c -Fa'
25953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C symbols are prefixed with underscore at the linker level" >&5
25954 $as_echo_n "checking whether C symbols are prefixed with underscore at the linker level... " >&6; }
25955 if ${gl_cv_prog_as_underscore+:} false; then :
25956 $as_echo_n "(cached) " >&6
25958 cat > conftest.c <<EOF
25960 extern "C" int foo (void);
25962 int foo(void) { return 0; }
25964 # Look for the assembly language name in the .s file.
25965 { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $gl_c_asm_opt conftest.c'
25966 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25967 (eval $ac_try) 2>&5
25969 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25970 test $ac_status = 0; }; } >/dev/null 2>&1
25971 if grep _foo conftest.$gl_asmext >/dev/null ; then
25972 gl_cv_prog_as_underscore=yes
25974 gl_cv_prog_as_underscore=no
25979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_prog_as_underscore" >&5
25980 $as_echo "$gl_cv_prog_as_underscore" >&6; }
25981 if test $gl_cv_prog_as_underscore = yes; then
25982 USER_LABEL_PREFIX=_
25987 cat >>confdefs.h <<_ACEOF
25988 #define USER_LABEL_PREFIX $USER_LABEL_PREFIX
25991 ASM_SYMBOL_PREFIX='"'${USER_LABEL_PREFIX}'"'
25996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for promoted mode_t type" >&5
25997 $as_echo_n "checking for promoted mode_t type... " >&6; }
25998 if ${gl_cv_promoted_mode_t+:} false; then :
25999 $as_echo_n "(cached) " >&6
26002 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26003 /* end confdefs.h. */
26004 #include <sys/types.h>
26008 typedef int array[2 * (sizeof (mode_t) < sizeof (int)) - 1];
26013 if ac_fn_c_try_compile "$LINENO"; then :
26014 gl_cv_promoted_mode_t='int'
26016 gl_cv_promoted_mode_t='mode_t'
26018 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_promoted_mode_t" >&5
26022 $as_echo "$gl_cv_promoted_mode_t" >&6; }
26024 cat >>confdefs.h <<_ACEOF
26025 #define PROMOTED_MODE_T $gl_cv_promoted_mode_t
26035 GNULIB_PTHREAD_SIGMASK=0;
26037 GNULIB_SIGNAL_H_SIGPIPE=0;
26038 GNULIB_SIGPROCMASK=0;
26039 GNULIB_SIGACTION=0;
26040 HAVE_POSIX_SIGNALBLOCKING=1;
26041 HAVE_PTHREAD_SIGMASK=1;
26046 HAVE_STRUCT_SIGACTION_SA_SIGACTION=1;
26048 HAVE_TYPE_VOLATILE_SIG_ATOMIC_T=1;
26050 HAVE_SIGHANDLER_T=1;
26051 REPLACE_PTHREAD_SIGMASK=0;
26055 ac_fn_c_check_type "$LINENO" "sigset_t" "ac_cv_type_sigset_t" "
26056 #include <signal.h>
26057 /* Mingw defines sigset_t not in <signal.h>, but in <sys/types.h>. */
26058 #include <sys/types.h>
26061 if test "x$ac_cv_type_sigset_t" = xyes; then :
26063 cat >>confdefs.h <<_ACEOF
26064 #define HAVE_SIGSET_T 1
26067 gl_cv_type_sigset_t=yes
26069 gl_cv_type_sigset_t=no
26072 if test $gl_cv_type_sigset_t != yes; then
26077 ac_fn_c_check_decl "$LINENO" "alarm" "ac_cv_have_decl_alarm" "$ac_includes_default"
26078 if test "x$ac_cv_have_decl_alarm" = xyes; then :
26084 cat >>confdefs.h <<_ACEOF
26085 #define HAVE_DECL_ALARM $ac_have_decl
26099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long file names" >&5
26100 $as_echo_n "checking for long file names... " >&6; }
26101 if ${ac_cv_sys_long_file_names+:} false; then :
26102 $as_echo_n "(cached) " >&6
26104 ac_cv_sys_long_file_names=yes
26105 # Test for long file names in all the places we know might matter:
26106 # . the current directory, where building will happen
26107 # $prefix/lib where we will be installing things
26108 # $exec_prefix/lib likewise
26109 # $TMPDIR if set, where it might want to write temporary files
26110 # /tmp where it might want to write temporary files
26111 # /var/tmp likewise
26112 # /usr/tmp likewise
26113 for ac_dir in . "$TMPDIR" /tmp /var/tmp /usr/tmp "$prefix/lib" "$exec_prefix/lib"; do
26114 # Skip $TMPDIR if it is empty or bogus, and skip $exec_prefix/lib
26115 # in the usual case where exec_prefix is '${prefix}'.
26117 . | /* | ?:[\\/]*) ;; #(
26120 test -w "$ac_dir/." || continue # It is less confusing to not echo anything here.
26121 ac_xdir=$ac_dir/cf$$
26122 (umask 077 && mkdir "$ac_xdir" 2>/dev/null) || continue
26123 ac_tf1=$ac_xdir/conftest9012345
26124 ac_tf2=$ac_xdir/conftest9012346
26125 touch "$ac_tf1" 2>/dev/null && test -f "$ac_tf1" && test ! -f "$ac_tf2" ||
26126 ac_cv_sys_long_file_names=no
26127 rm -f -r "$ac_xdir" 2>/dev/null
26128 test $ac_cv_sys_long_file_names = no && break
26131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_long_file_names" >&5
26132 $as_echo "$ac_cv_sys_long_file_names" >&6; }
26133 if test $ac_cv_sys_long_file_names = yes; then
26135 $as_echo "#define HAVE_LONG_FILE_NAMES 1" >>confdefs.h
26150 ac_fn_c_check_decl "$LINENO" "setenv" "ac_cv_have_decl_setenv" "$ac_includes_default"
26151 if test "x$ac_cv_have_decl_setenv" = xyes; then :
26157 cat >>confdefs.h <<_ACEOF
26158 #define HAVE_DECL_SETENV $ac_have_decl
26176 if test $ac_cv_have_decl_setenv = no; then
26196 for ac_header in search.h
26198 ac_fn_c_check_header_mongrel "$LINENO" "search.h" "ac_cv_header_search_h" "$ac_includes_default"
26199 if test "x$ac_cv_header_search_h" = xyes; then :
26200 cat >>confdefs.h <<_ACEOF
26201 #define HAVE_SEARCH_H 1
26208 for ac_func in tsearch
26210 ac_fn_c_check_func "$LINENO" "tsearch" "ac_cv_func_tsearch"
26211 if test "x$ac_cv_func_tsearch" = xyes; then :
26212 cat >>confdefs.h <<_ACEOF
26213 #define HAVE_TSEARCH 1
26226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
26227 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
26228 if ${ac_cv_type_uid_t+:} false; then :
26229 $as_echo_n "(cached) " >&6
26231 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26232 /* end confdefs.h. */
26233 #include <sys/types.h>
26236 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26237 $EGREP "uid_t" >/dev/null 2>&1; then :
26238 ac_cv_type_uid_t=yes
26240 ac_cv_type_uid_t=no
26245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
26246 $as_echo "$ac_cv_type_uid_t" >&6; }
26247 if test $ac_cv_type_uid_t = no; then
26249 $as_echo "#define uid_t int" >>confdefs.h
26252 $as_echo "#define gid_t int" >>confdefs.h
26271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
26272 $as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
26273 if ${ac_cv_header_stdbool_h+:} false; then :
26274 $as_echo_n "(cached) " >&6
26276 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26277 /* end confdefs.h. */
26279 #include <stdbool.h>
26281 "error: bool is not defined"
26284 "error: false is not defined"
26287 "error: false is not 0"
26290 "error: true is not defined"
26293 "error: true is not 1"
26295 #ifndef __bool_true_false_are_defined
26296 "error: __bool_true_false_are_defined is not defined"
26299 struct s { _Bool s: 1; _Bool t; } s;
26301 char a[true == 1 ? 1 : -1];
26302 char b[false == 0 ? 1 : -1];
26303 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
26304 char d[(bool) 0.5 == true ? 1 : -1];
26305 /* See body of main program for 'e'. */
26306 char f[(_Bool) 0.0 == false ? 1 : -1];
26308 char h[sizeof (_Bool)];
26309 char i[sizeof s.t];
26310 enum { j = false, k = true, l = false * true, m = true * 256 };
26311 /* The following fails for
26312 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
26314 char o[sizeof n == m * sizeof n[0] ? 1 : -1];
26315 char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
26316 /* Catch a bug in an HP-UX C compiler. See
26317 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
26318 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
26330 /* Refer to every declared value, to avoid compiler optimizations. */
26331 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
26332 + !m + !n + !o + !p + !q + !pq);
26338 if ac_fn_c_try_compile "$LINENO"; then :
26339 ac_cv_header_stdbool_h=yes
26341 ac_cv_header_stdbool_h=no
26343 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
26346 $as_echo "$ac_cv_header_stdbool_h" >&6; }
26347 ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
26348 if test "x$ac_cv_type__Bool" = xyes; then :
26350 cat >>confdefs.h <<_ACEOF
26351 #define HAVE__BOOL 1
26371 if test $ac_cv_type_long_long_int = yes; then
26372 HAVE_LONG_LONG_INT=1
26374 HAVE_LONG_LONG_INT=0
26378 if test $ac_cv_type_unsigned_long_long_int = yes; then
26379 HAVE_UNSIGNED_LONG_LONG_INT=1
26381 HAVE_UNSIGNED_LONG_LONG_INT=0
26392 if test $ac_cv_header_wchar_h = yes; then
26399 if test $ac_cv_header_inttypes_h = yes; then
26406 if test $ac_cv_header_sys_types_h = yes; then
26428 if test $gl_cv_have_include_next = yes; then
26429 gl_cv_next_stdint_h='<'stdint.h'>'
26431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdint.h>" >&5
26432 $as_echo_n "checking absolute name of <stdint.h>... " >&6; }
26433 if ${gl_cv_next_stdint_h+:} false; then :
26434 $as_echo_n "(cached) " >&6
26437 if test $ac_cv_header_stdint_h = yes; then
26442 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26443 /* end confdefs.h. */
26444 #include <stdint.h>
26447 aix*) gl_absname_cpp="$ac_cpp -C" ;;
26448 *) gl_absname_cpp="$ac_cpp" ;;
26453 gl_dirsep_regex='[/\\]'
26456 gl_dirsep_regex='\/'
26459 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
26460 gl_header_literal_regex=`echo 'stdint.h' \
26461 | sed -e "$gl_make_literal_regex_sed"`
26462 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
26463 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
26469 gl_cv_absolute_stdint_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
26470 sed -n "$gl_absolute_header_sed"`
26472 gl_header=$gl_cv_absolute_stdint_h
26473 gl_cv_next_stdint_h='"'$gl_header'"'
26475 gl_cv_next_stdint_h='<'stdint.h'>'
26480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdint_h" >&5
26481 $as_echo "$gl_cv_next_stdint_h" >&6; }
26483 NEXT_STDINT_H=$gl_cv_next_stdint_h
26485 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
26486 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
26487 gl_next_as_first_directive='<'stdint.h'>'
26489 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
26490 gl_next_as_first_directive=$gl_cv_next_stdint_h
26492 NEXT_AS_FIRST_DIRECTIVE_STDINT_H=$gl_next_as_first_directive
26497 if test $ac_cv_header_stdint_h = yes; then
26504 if test $ac_cv_header_stdint_h = yes; then
26505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stdint.h conforms to C99" >&5
26506 $as_echo_n "checking whether stdint.h conforms to C99... " >&6; }
26507 if ${gl_cv_header_working_stdint_h+:} false; then :
26508 $as_echo_n "(cached) " >&6
26510 gl_cv_header_working_stdint_h=no
26511 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26512 /* end confdefs.h. */
26515 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
26516 #include <stdint.h>
26517 /* Dragonfly defines WCHAR_MIN, WCHAR_MAX only in <wchar.h>. */
26518 #if !(defined WCHAR_MIN && defined WCHAR_MAX)
26519 #error "WCHAR_MIN, WCHAR_MAX not defined in <stdint.h>"
26523 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
26524 included before <wchar.h>. */
26525 #include <stddef.h>
26526 #include <signal.h>
26528 # include <stdio.h>
26530 # include <wchar.h>
26535 int8_t a1 = INT8_MAX;
26536 int8_t a1min = INT8_MIN;
26539 int16_t a2 = INT16_MAX;
26540 int16_t a2min = INT16_MIN;
26543 int32_t a3 = INT32_MAX;
26544 int32_t a3min = INT32_MIN;
26547 int64_t a4 = INT64_MAX;
26548 int64_t a4min = INT64_MIN;
26551 uint8_t b1 = UINT8_MAX;
26553 typedef int b1[(unsigned char) -1 != 255 ? 1 : -1];
26556 uint16_t b2 = UINT16_MAX;
26559 uint32_t b3 = UINT32_MAX;
26562 uint64_t b4 = UINT64_MAX;
26564 int_least8_t c1 = INT8_C (0x7f);
26565 int_least8_t c1max = INT_LEAST8_MAX;
26566 int_least8_t c1min = INT_LEAST8_MIN;
26567 int_least16_t c2 = INT16_C (0x7fff);
26568 int_least16_t c2max = INT_LEAST16_MAX;
26569 int_least16_t c2min = INT_LEAST16_MIN;
26570 int_least32_t c3 = INT32_C (0x7fffffff);
26571 int_least32_t c3max = INT_LEAST32_MAX;
26572 int_least32_t c3min = INT_LEAST32_MIN;
26573 int_least64_t c4 = INT64_C (0x7fffffffffffffff);
26574 int_least64_t c4max = INT_LEAST64_MAX;
26575 int_least64_t c4min = INT_LEAST64_MIN;
26576 uint_least8_t d1 = UINT8_C (0xff);
26577 uint_least8_t d1max = UINT_LEAST8_MAX;
26578 uint_least16_t d2 = UINT16_C (0xffff);
26579 uint_least16_t d2max = UINT_LEAST16_MAX;
26580 uint_least32_t d3 = UINT32_C (0xffffffff);
26581 uint_least32_t d3max = UINT_LEAST32_MAX;
26582 uint_least64_t d4 = UINT64_C (0xffffffffffffffff);
26583 uint_least64_t d4max = UINT_LEAST64_MAX;
26584 int_fast8_t e1 = INT_FAST8_MAX;
26585 int_fast8_t e1min = INT_FAST8_MIN;
26586 int_fast16_t e2 = INT_FAST16_MAX;
26587 int_fast16_t e2min = INT_FAST16_MIN;
26588 int_fast32_t e3 = INT_FAST32_MAX;
26589 int_fast32_t e3min = INT_FAST32_MIN;
26590 int_fast64_t e4 = INT_FAST64_MAX;
26591 int_fast64_t e4min = INT_FAST64_MIN;
26592 uint_fast8_t f1 = UINT_FAST8_MAX;
26593 uint_fast16_t f2 = UINT_FAST16_MAX;
26594 uint_fast32_t f3 = UINT_FAST32_MAX;
26595 uint_fast64_t f4 = UINT_FAST64_MAX;
26597 intptr_t g = INTPTR_MAX;
26598 intptr_t gmin = INTPTR_MIN;
26601 uintptr_t h = UINTPTR_MAX;
26603 intmax_t i = INTMAX_MAX;
26604 uintmax_t j = UINTMAX_MAX;
26606 #include <limits.h> /* for CHAR_BIT */
26607 #define TYPE_MINIMUM(t) \
26608 ((t) ((t) 0 < (t) -1 ? (t) 0 : ~ TYPE_MAXIMUM (t)))
26609 #define TYPE_MAXIMUM(t) \
26610 ((t) ((t) 0 < (t) -1 \
26612 : ((((t) 1 << (sizeof (t) * CHAR_BIT - 2)) - 1) * 2 + 1)))
26615 PTRDIFF_MIN == TYPE_MINIMUM (ptrdiff_t)
26616 && PTRDIFF_MAX == TYPE_MAXIMUM (ptrdiff_t)
26618 /* Detect bug in FreeBSD 6.0 / ia64. */
26619 int check_SIG_ATOMIC:
26620 SIG_ATOMIC_MIN == TYPE_MINIMUM (sig_atomic_t)
26621 && SIG_ATOMIC_MAX == TYPE_MAXIMUM (sig_atomic_t)
26623 int check_SIZE: SIZE_MAX == TYPE_MAXIMUM (size_t) ? 1 : -1;
26625 WCHAR_MIN == TYPE_MINIMUM (wchar_t)
26626 && WCHAR_MAX == TYPE_MAXIMUM (wchar_t)
26628 /* Detect bug in mingw. */
26630 WINT_MIN == TYPE_MINIMUM (wint_t)
26631 && WINT_MAX == TYPE_MAXIMUM (wint_t)
26634 /* Detect bugs in glibc 2.4 and Solaris 10 stdint.h, among others. */
26636 (-1 < UINT8_C (0)) == (-1 < (uint_least8_t) 0) ? 1 : -1;
26637 int check_UINT16_C:
26638 (-1 < UINT16_C (0)) == (-1 < (uint_least16_t) 0) ? 1 : -1;
26640 /* Detect bugs in OpenBSD 3.9 stdint.h. */
26642 int check_uint8: (uint8_t) -1 == UINT8_MAX ? 1 : -1;
26645 int check_uint16: (uint16_t) -1 == UINT16_MAX ? 1 : -1;
26648 int check_uint32: (uint32_t) -1 == UINT32_MAX ? 1 : -1;
26651 int check_uint64: (uint64_t) -1 == UINT64_MAX ? 1 : -1;
26653 int check_uint_least8: (uint_least8_t) -1 == UINT_LEAST8_MAX ? 1 : -1;
26654 int check_uint_least16: (uint_least16_t) -1 == UINT_LEAST16_MAX ? 1 : -1;
26655 int check_uint_least32: (uint_least32_t) -1 == UINT_LEAST32_MAX ? 1 : -1;
26656 int check_uint_least64: (uint_least64_t) -1 == UINT_LEAST64_MAX ? 1 : -1;
26657 int check_uint_fast8: (uint_fast8_t) -1 == UINT_FAST8_MAX ? 1 : -1;
26658 int check_uint_fast16: (uint_fast16_t) -1 == UINT_FAST16_MAX ? 1 : -1;
26659 int check_uint_fast32: (uint_fast32_t) -1 == UINT_FAST32_MAX ? 1 : -1;
26660 int check_uint_fast64: (uint_fast64_t) -1 == UINT_FAST64_MAX ? 1 : -1;
26661 int check_uintptr: (uintptr_t) -1 == UINTPTR_MAX ? 1 : -1;
26662 int check_uintmax: (uintmax_t) -1 == UINTMAX_MAX ? 1 : -1;
26663 int check_size: (size_t) -1 == SIZE_MAX ? 1 : -1;
26674 if ac_fn_c_try_compile "$LINENO"; then :
26675 if test "$cross_compiling" = yes; then :
26676 gl_cv_header_working_stdint_h=yes
26679 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26680 /* end confdefs.h. */
26683 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
26684 #include <stdint.h>
26687 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
26688 included before <wchar.h>. */
26689 #include <stddef.h>
26690 #include <signal.h>
26692 # include <stdio.h>
26694 # include <wchar.h>
26699 #include <string.h>
26700 #define MVAL(macro) MVAL1(macro)
26701 #define MVAL1(expression) #expression
26702 static const char *macro_values[] =
26736 for (mv = macro_values; *mv != NULL; mv++)
26738 const char *value = *mv;
26739 /* Test whether it looks like a cast expression. */
26740 if (strncmp (value, "((unsigned int)"/*)*/, 15) == 0
26741 || strncmp (value, "((unsigned short)"/*)*/, 17) == 0
26742 || strncmp (value, "((unsigned char)"/*)*/, 16) == 0
26743 || strncmp (value, "((int)"/*)*/, 6) == 0
26744 || strncmp (value, "((signed short)"/*)*/, 15) == 0
26745 || strncmp (value, "((signed char)"/*)*/, 14) == 0)
26746 return mv - macro_values + 1;
26754 if ac_fn_c_try_run "$LINENO"; then :
26755 gl_cv_header_working_stdint_h=yes
26757 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
26758 conftest.$ac_objext conftest.beam conftest.$ac_ext
26763 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_stdint_h" >&5
26767 $as_echo "$gl_cv_header_working_stdint_h" >&6; }
26769 if test "$gl_cv_header_working_stdint_h" = yes; then
26772 for ac_header in sys/inttypes.h sys/bitypes.h
26774 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
26775 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
26776 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
26777 cat >>confdefs.h <<_ACEOF
26778 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
26785 if test $ac_cv_header_sys_inttypes_h = yes; then
26786 HAVE_SYS_INTTYPES_H=1
26788 HAVE_SYS_INTTYPES_H=0
26791 if test $ac_cv_header_sys_bitypes_h = yes; then
26792 HAVE_SYS_BITYPES_H=1
26794 HAVE_SYS_BITYPES_H=0
26800 if test $APPLE_UNIVERSAL_BUILD = 0; then
26803 for gltype in ptrdiff_t size_t ; do
26804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
26805 $as_echo_n "checking for bit size of $gltype... " >&6; }
26806 if eval \${gl_cv_bitsizeof_${gltype}+:} false; then :
26807 $as_echo_n "(cached) " >&6
26809 if ac_fn_c_compute_int "$LINENO" "sizeof ($gltype) * CHAR_BIT" "result" "
26810 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
26811 included before <wchar.h>. */
26812 #include <stddef.h>
26813 #include <signal.h>
26815 # include <stdio.h>
26817 # include <wchar.h>
26820 #include <limits.h>"; then :
26826 eval gl_cv_bitsizeof_${gltype}=\$result
26829 eval ac_res=\$gl_cv_bitsizeof_${gltype}
26830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
26831 $as_echo "$ac_res" >&6; }
26832 eval result=\$gl_cv_bitsizeof_${gltype}
26833 if test $result = unknown; then
26836 GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
26837 cat >>confdefs.h <<_ACEOF
26838 #define BITSIZEOF_${GLTYPE} $result
26841 eval BITSIZEOF_${GLTYPE}=\$result
26848 for gltype in sig_atomic_t wchar_t wint_t ; do
26849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
26850 $as_echo_n "checking for bit size of $gltype... " >&6; }
26851 if eval \${gl_cv_bitsizeof_${gltype}+:} false; then :
26852 $as_echo_n "(cached) " >&6
26854 if ac_fn_c_compute_int "$LINENO" "sizeof ($gltype) * CHAR_BIT" "result" "
26855 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
26856 included before <wchar.h>. */
26857 #include <stddef.h>
26858 #include <signal.h>
26860 # include <stdio.h>
26862 # include <wchar.h>
26865 #include <limits.h>"; then :
26871 eval gl_cv_bitsizeof_${gltype}=\$result
26874 eval ac_res=\$gl_cv_bitsizeof_${gltype}
26875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
26876 $as_echo "$ac_res" >&6; }
26877 eval result=\$gl_cv_bitsizeof_${gltype}
26878 if test $result = unknown; then
26881 GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
26882 cat >>confdefs.h <<_ACEOF
26883 #define BITSIZEOF_${GLTYPE} $result
26886 eval BITSIZEOF_${GLTYPE}=\$result
26892 for gltype in sig_atomic_t wchar_t wint_t ; do
26893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gltype is signed" >&5
26894 $as_echo_n "checking whether $gltype is signed... " >&6; }
26895 if eval \${gl_cv_type_${gltype}_signed+:} false; then :
26896 $as_echo_n "(cached) " >&6
26898 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26899 /* end confdefs.h. */
26901 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
26902 included before <wchar.h>. */
26903 #include <stddef.h>
26904 #include <signal.h>
26906 # include <stdio.h>
26908 # include <wchar.h>
26911 int verify[2 * (($gltype) -1 < ($gltype) 0) - 1];
26920 if ac_fn_c_try_compile "$LINENO"; then :
26925 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26926 eval gl_cv_type_${gltype}_signed=\$result
26929 eval ac_res=\$gl_cv_type_${gltype}_signed
26930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
26931 $as_echo "$ac_res" >&6; }
26932 eval result=\$gl_cv_type_${gltype}_signed
26933 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
26934 if test "$result" = yes; then
26935 cat >>confdefs.h <<_ACEOF
26936 #define HAVE_SIGNED_${GLTYPE} 1
26939 eval HAVE_SIGNED_${GLTYPE}=1
26941 eval HAVE_SIGNED_${GLTYPE}=0
26946 gl_cv_type_ptrdiff_t_signed=yes
26947 gl_cv_type_size_t_signed=no
26948 if test $APPLE_UNIVERSAL_BUILD = 0; then
26951 for gltype in ptrdiff_t size_t ; do
26952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
26953 $as_echo_n "checking for $gltype integer literal suffix... " >&6; }
26954 if eval \${gl_cv_type_${gltype}_suffix+:} false; then :
26955 $as_echo_n "(cached) " >&6
26957 eval gl_cv_type_${gltype}_suffix=no
26958 eval result=\$gl_cv_type_${gltype}_signed
26959 if test "$result" = yes; then
26964 for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do
26966 '') gltype1='int';;
26967 l) gltype1='long int';;
26968 ll) gltype1='long long int';;
26969 i64) gltype1='__int64';;
26970 u) gltype1='unsigned int';;
26971 ul) gltype1='unsigned long int';;
26972 ull) gltype1='unsigned long long int';;
26973 ui64)gltype1='unsigned __int64';;
26975 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26976 /* end confdefs.h. */
26978 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
26979 included before <wchar.h>. */
26980 #include <stddef.h>
26981 #include <signal.h>
26983 # include <stdio.h>
26985 # include <wchar.h>
26988 extern $gltype foo;
26989 extern $gltype1 foo;
26998 if ac_fn_c_try_compile "$LINENO"; then :
26999 eval gl_cv_type_${gltype}_suffix=\$glsuf
27001 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27002 eval result=\$gl_cv_type_${gltype}_suffix
27003 test "$result" != no && break
27006 eval ac_res=\$gl_cv_type_${gltype}_suffix
27007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
27008 $as_echo "$ac_res" >&6; }
27009 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
27010 eval result=\$gl_cv_type_${gltype}_suffix
27011 test "$result" = no && result=
27012 eval ${GLTYPE}_SUFFIX=\$result
27013 cat >>confdefs.h <<_ACEOF
27014 #define ${GLTYPE}_SUFFIX $result
27023 for gltype in sig_atomic_t wchar_t wint_t ; do
27024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
27025 $as_echo_n "checking for $gltype integer literal suffix... " >&6; }
27026 if eval \${gl_cv_type_${gltype}_suffix+:} false; then :
27027 $as_echo_n "(cached) " >&6
27029 eval gl_cv_type_${gltype}_suffix=no
27030 eval result=\$gl_cv_type_${gltype}_signed
27031 if test "$result" = yes; then
27036 for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do
27038 '') gltype1='int';;
27039 l) gltype1='long int';;
27040 ll) gltype1='long long int';;
27041 i64) gltype1='__int64';;
27042 u) gltype1='unsigned int';;
27043 ul) gltype1='unsigned long int';;
27044 ull) gltype1='unsigned long long int';;
27045 ui64)gltype1='unsigned __int64';;
27047 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27048 /* end confdefs.h. */
27050 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
27051 included before <wchar.h>. */
27052 #include <stddef.h>
27053 #include <signal.h>
27055 # include <stdio.h>
27057 # include <wchar.h>
27060 extern $gltype foo;
27061 extern $gltype1 foo;
27070 if ac_fn_c_try_compile "$LINENO"; then :
27071 eval gl_cv_type_${gltype}_suffix=\$glsuf
27073 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27074 eval result=\$gl_cv_type_${gltype}_suffix
27075 test "$result" != no && break
27078 eval ac_res=\$gl_cv_type_${gltype}_suffix
27079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
27080 $as_echo "$ac_res" >&6; }
27081 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
27082 eval result=\$gl_cv_type_${gltype}_suffix
27083 test "$result" = no && result=
27084 eval ${GLTYPE}_SUFFIX=\$result
27085 cat >>confdefs.h <<_ACEOF
27086 #define ${GLTYPE}_SUFFIX $result
27093 if test $BITSIZEOF_WINT_T -lt 32; then
27094 BITSIZEOF_WINT_T=32
27100 if test -n "$STDINT_H"; then
27101 GL_GENERATE_STDINT_H_TRUE=
27102 GL_GENERATE_STDINT_H_FALSE='#'
27104 GL_GENERATE_STDINT_H_TRUE='#'
27105 GL_GENERATE_STDINT_H_FALSE=
27113 HAVE_DECL_STRNCASECMP=1;
27121 for ac_func in strcasestr
27123 ac_fn_c_check_func "$LINENO" "strcasestr" "ac_cv_func_strcasestr"
27124 if test "x$ac_cv_func_strcasestr" = xyes; then :
27125 cat >>confdefs.h <<_ACEOF
27126 #define HAVE_STRCASESTR 1
27132 if test $ac_cv_func_strcasestr = no; then
27135 if test "$gl_cv_func_memchr_works" != yes; then
27136 REPLACE_STRCASESTR=1
27138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strcasestr works" >&5
27139 $as_echo_n "checking whether strcasestr works... " >&6; }
27140 if ${gl_cv_func_strcasestr_works_always+:} false; then :
27141 $as_echo_n "(cached) " >&6
27143 if test "$cross_compiling" = yes; then :
27144 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27145 /* end confdefs.h. */
27147 #ifdef __GNU_LIBRARY__
27148 #include <features.h>
27149 #if ((__GLIBC__ == 2 && __GLIBC_MINOR__ > 12) || (__GLIBC__ > 2)) \
27150 || defined __UCLIBC__
27153 #elif defined __CYGWIN__
27154 #include <cygwin/version.h>
27155 #if CYGWIN_VERSION_DLL_COMBINED > CYGWIN_VERSION_DLL_MAKE_COMBINED (1007, 7)
27163 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27164 $EGREP "Lucky user" >/dev/null 2>&1; then :
27165 gl_cv_func_strcasestr_works_always="guessing yes"
27167 gl_cv_func_strcasestr_works_always="guessing no"
27173 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27174 /* end confdefs.h. */
27176 #include <string.h> /* for strcasestr */
27177 #define P "_EF_BF_BD"
27178 #define HAYSTACK "F_BD_CE_BD" P P P P "_C3_88_20" P P P "_C3_A7_20" P
27179 #define NEEDLE P P P P P
27184 return !!strcasestr (HAYSTACK, NEEDLE);
27190 if ac_fn_c_try_run "$LINENO"; then :
27191 gl_cv_func_strcasestr_works_always=yes
27193 gl_cv_func_strcasestr_works_always=no
27195 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
27196 conftest.$ac_objext conftest.beam conftest.$ac_ext
27201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_strcasestr_works_always" >&5
27202 $as_echo "$gl_cv_func_strcasestr_works_always" >&6; }
27203 case "$gl_cv_func_strcasestr_works_always" in
27206 REPLACE_STRCASESTR=1
27218 ac_fn_c_check_decl "$LINENO" "strdup" "ac_cv_have_decl_strdup" "$ac_includes_default"
27219 if test "x$ac_cv_have_decl_strdup" = xyes; then :
27225 cat >>confdefs.h <<_ACEOF
27226 #define HAVE_DECL_STRDUP $ac_have_decl
27231 REPLACE_STRERROR_0=0
27232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strerror(0) succeeds" >&5
27233 $as_echo_n "checking whether strerror(0) succeeds... " >&6; }
27234 if ${gl_cv_func_strerror_0_works+:} false; then :
27235 $as_echo_n "(cached) " >&6
27237 if test "$cross_compiling" = yes; then :
27239 # Guess yes on glibc systems.
27240 *-gnu*) gl_cv_func_strerror_0_works="guessing yes" ;;
27241 # If we don't know, assume the worst.
27242 *) gl_cv_func_strerror_0_works="guessing no" ;;
27246 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27247 /* end confdefs.h. */
27248 #include <string.h>
27257 str = strerror (0);
27258 if (!*str) result |= 1;
27259 if (errno) result |= 2;
27260 if (strstr (str, "nknown") || strstr (str, "ndefined"))
27267 if ac_fn_c_try_run "$LINENO"; then :
27268 gl_cv_func_strerror_0_works=yes
27270 gl_cv_func_strerror_0_works=no
27272 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
27273 conftest.$ac_objext conftest.beam conftest.$ac_ext
27278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_strerror_0_works" >&5
27279 $as_echo "$gl_cv_func_strerror_0_works" >&6; }
27280 case "$gl_cv_func_strerror_0_works" in
27283 REPLACE_STRERROR_0=1
27285 $as_echo "#define REPLACE_STRERROR_0 1" >>confdefs.h
27301 if test $gl_cv_have_include_next = yes; then
27302 gl_cv_next_string_h='<'string.h'>'
27304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <string.h>" >&5
27305 $as_echo_n "checking absolute name of <string.h>... " >&6; }
27306 if ${gl_cv_next_string_h+:} false; then :
27307 $as_echo_n "(cached) " >&6
27312 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27313 /* end confdefs.h. */
27314 #include <string.h>
27317 aix*) gl_absname_cpp="$ac_cpp -C" ;;
27318 *) gl_absname_cpp="$ac_cpp" ;;
27323 gl_dirsep_regex='[/\\]'
27326 gl_dirsep_regex='\/'
27329 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
27330 gl_header_literal_regex=`echo 'string.h' \
27331 | sed -e "$gl_make_literal_regex_sed"`
27332 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
27333 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
27339 gl_cv_absolute_string_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
27340 sed -n "$gl_absolute_header_sed"`
27342 gl_header=$gl_cv_absolute_string_h
27343 gl_cv_next_string_h='"'$gl_header'"'
27347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_string_h" >&5
27348 $as_echo "$gl_cv_next_string_h" >&6; }
27350 NEXT_STRING_H=$gl_cv_next_string_h
27352 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
27353 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
27354 gl_next_as_first_directive='<'string.h'>'
27356 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
27357 gl_next_as_first_directive=$gl_cv_next_string_h
27359 NEXT_AS_FIRST_DIRECTIVE_STRING_H=$gl_next_as_first_directive
27366 for gl_func in ffsl ffsll memmem mempcpy memrchr rawmemchr stpcpy stpncpy strchrnul strdup strncat strndup strnlen strpbrk strsep strcasestr strtok_r strerror_r strsignal strverscmp; do
27367 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
27368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
27369 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
27370 if eval \${$as_gl_Symbol+:} false; then :
27371 $as_echo_n "(cached) " >&6
27373 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27374 /* end confdefs.h. */
27375 #include <string.h>
27386 if ac_fn_c_try_compile "$LINENO"; then :
27387 eval "$as_gl_Symbol=yes"
27389 eval "$as_gl_Symbol=no"
27391 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27393 eval ac_res=\$$as_gl_Symbol
27394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
27395 $as_echo "$ac_res" >&6; }
27396 if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
27397 cat >>confdefs.h <<_ACEOF
27398 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
27401 eval ac_cv_have_decl_$gl_func=yes
27429 if test $gl_cv_have_include_next = yes; then
27430 gl_cv_next_strings_h='<'strings.h'>'
27432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <strings.h>" >&5
27433 $as_echo_n "checking absolute name of <strings.h>... " >&6; }
27434 if ${gl_cv_next_strings_h+:} false; then :
27435 $as_echo_n "(cached) " >&6
27438 if test $ac_cv_header_strings_h = yes; then
27443 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27444 /* end confdefs.h. */
27445 #include <strings.h>
27448 aix*) gl_absname_cpp="$ac_cpp -C" ;;
27449 *) gl_absname_cpp="$ac_cpp" ;;
27454 gl_dirsep_regex='[/\\]'
27457 gl_dirsep_regex='\/'
27460 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
27461 gl_header_literal_regex=`echo 'strings.h' \
27462 | sed -e "$gl_make_literal_regex_sed"`
27463 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
27464 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
27470 gl_cv_absolute_strings_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
27471 sed -n "$gl_absolute_header_sed"`
27473 gl_header=$gl_cv_absolute_strings_h
27474 gl_cv_next_strings_h='"'$gl_header'"'
27476 gl_cv_next_strings_h='<'strings.h'>'
27481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_strings_h" >&5
27482 $as_echo "$gl_cv_next_strings_h" >&6; }
27484 NEXT_STRINGS_H=$gl_cv_next_strings_h
27486 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
27487 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
27488 gl_next_as_first_directive='<'strings.h'>'
27490 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
27491 gl_next_as_first_directive=$gl_cv_next_strings_h
27493 NEXT_AS_FIRST_DIRECTIVE_STRINGS_H=$gl_next_as_first_directive
27498 if test $ac_cv_header_strings_h = yes; then
27506 for gl_func in ffs strcasecmp strncasecmp; do
27507 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
27508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
27509 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
27510 if eval \${$as_gl_Symbol+:} false; then :
27511 $as_echo_n "(cached) " >&6
27513 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27514 /* end confdefs.h. */
27516 /* Minix 3.1.8 has a bug: <sys/types.h> must be included before
27518 #include <sys/types.h>
27519 #include <strings.h>
27530 if ac_fn_c_try_compile "$LINENO"; then :
27531 eval "$as_gl_Symbol=yes"
27533 eval "$as_gl_Symbol=no"
27535 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27537 eval ac_res=\$$as_gl_Symbol
27538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
27539 $as_echo "$ac_res" >&6; }
27540 if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
27541 cat >>confdefs.h <<_ACEOF
27542 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
27545 eval ac_cv_have_decl_$gl_func=yes
27551 ac_fn_c_check_decl "$LINENO" "strndup" "ac_cv_have_decl_strndup" "$ac_includes_default"
27552 if test "x$ac_cv_have_decl_strndup" = xyes; then :
27558 cat >>confdefs.h <<_ACEOF
27559 #define HAVE_DECL_STRNDUP $ac_have_decl
27569 ac_fn_c_check_decl "$LINENO" "strnlen" "ac_cv_have_decl_strnlen" "$ac_includes_default"
27570 if test "x$ac_cv_have_decl_strnlen" = xyes; then :
27576 cat >>confdefs.h <<_ACEOF
27577 #define HAVE_DECL_STRNLEN $ac_have_decl
27609 if test $gl_cv_have_include_next = yes; then
27610 gl_cv_next_sys_types_h='<'sys/types.h'>'
27612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/types.h>" >&5
27613 $as_echo_n "checking absolute name of <sys/types.h>... " >&6; }
27614 if ${gl_cv_next_sys_types_h+:} false; then :
27615 $as_echo_n "(cached) " >&6
27620 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27621 /* end confdefs.h. */
27622 #include <sys/types.h>
27625 aix*) gl_absname_cpp="$ac_cpp -C" ;;
27626 *) gl_absname_cpp="$ac_cpp" ;;
27631 gl_dirsep_regex='[/\\]'
27634 gl_dirsep_regex='\/'
27637 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
27638 gl_header_literal_regex=`echo 'sys/types.h' \
27639 | sed -e "$gl_make_literal_regex_sed"`
27640 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
27641 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
27647 gl_cv_absolute_sys_types_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
27648 sed -n "$gl_absolute_header_sed"`
27650 gl_header=$gl_cv_absolute_sys_types_h
27651 gl_cv_next_sys_types_h='"'$gl_header'"'
27655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_types_h" >&5
27656 $as_echo "$gl_cv_next_sys_types_h" >&6; }
27658 NEXT_SYS_TYPES_H=$gl_cv_next_sys_types_h
27660 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
27661 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
27662 gl_next_as_first_directive='<'sys/types.h'>'
27664 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
27665 gl_next_as_first_directive=$gl_cv_next_sys_types_h
27667 NEXT_AS_FIRST_DIRECTIVE_SYS_TYPES_H=$gl_next_as_first_directive
27699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <time.h>" >&5
27700 $as_echo_n "checking for struct timespec in <time.h>... " >&6; }
27701 if ${gl_cv_sys_struct_timespec_in_time_h+:} false; then :
27702 $as_echo_n "(cached) " >&6
27704 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27705 /* end confdefs.h. */
27711 static struct timespec x; x.tv_sec = x.tv_nsec;
27716 if ac_fn_c_try_compile "$LINENO"; then :
27717 gl_cv_sys_struct_timespec_in_time_h=yes
27719 gl_cv_sys_struct_timespec_in_time_h=no
27721 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_time_h" >&5
27724 $as_echo "$gl_cv_sys_struct_timespec_in_time_h" >&6; }
27726 TIME_H_DEFINES_STRUCT_TIMESPEC=0
27727 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC=0
27728 PTHREAD_H_DEFINES_STRUCT_TIMESPEC=0
27729 if test $gl_cv_sys_struct_timespec_in_time_h = yes; then
27730 TIME_H_DEFINES_STRUCT_TIMESPEC=1
27732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <sys/time.h>" >&5
27733 $as_echo_n "checking for struct timespec in <sys/time.h>... " >&6; }
27734 if ${gl_cv_sys_struct_timespec_in_sys_time_h+:} false; then :
27735 $as_echo_n "(cached) " >&6
27737 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27738 /* end confdefs.h. */
27739 #include <sys/time.h>
27744 static struct timespec x; x.tv_sec = x.tv_nsec;
27749 if ac_fn_c_try_compile "$LINENO"; then :
27750 gl_cv_sys_struct_timespec_in_sys_time_h=yes
27752 gl_cv_sys_struct_timespec_in_sys_time_h=no
27754 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_sys_time_h" >&5
27757 $as_echo "$gl_cv_sys_struct_timespec_in_sys_time_h" >&6; }
27758 if test $gl_cv_sys_struct_timespec_in_sys_time_h = yes; then
27759 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC=1
27761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <pthread.h>" >&5
27762 $as_echo_n "checking for struct timespec in <pthread.h>... " >&6; }
27763 if ${gl_cv_sys_struct_timespec_in_pthread_h+:} false; then :
27764 $as_echo_n "(cached) " >&6
27766 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27767 /* end confdefs.h. */
27768 #include <pthread.h>
27773 static struct timespec x; x.tv_sec = x.tv_nsec;
27778 if ac_fn_c_try_compile "$LINENO"; then :
27779 gl_cv_sys_struct_timespec_in_pthread_h=yes
27781 gl_cv_sys_struct_timespec_in_pthread_h=no
27783 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_pthread_h" >&5
27786 $as_echo "$gl_cv_sys_struct_timespec_in_pthread_h" >&6; }
27787 if test $gl_cv_sys_struct_timespec_in_pthread_h = yes; then
27788 PTHREAD_H_DEFINES_STRUCT_TIMESPEC=1
27807 if test $gl_cv_have_include_next = yes; then
27808 gl_cv_next_time_h='<'time.h'>'
27810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <time.h>" >&5
27811 $as_echo_n "checking absolute name of <time.h>... " >&6; }
27812 if ${gl_cv_next_time_h+:} false; then :
27813 $as_echo_n "(cached) " >&6
27818 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27819 /* end confdefs.h. */
27823 aix*) gl_absname_cpp="$ac_cpp -C" ;;
27824 *) gl_absname_cpp="$ac_cpp" ;;
27829 gl_dirsep_regex='[/\\]'
27832 gl_dirsep_regex='\/'
27835 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
27836 gl_header_literal_regex=`echo 'time.h' \
27837 | sed -e "$gl_make_literal_regex_sed"`
27838 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
27839 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
27845 gl_cv_absolute_time_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
27846 sed -n "$gl_absolute_header_sed"`
27848 gl_header=$gl_cv_absolute_time_h
27849 gl_cv_next_time_h='"'$gl_header'"'
27853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_time_h" >&5
27854 $as_echo "$gl_cv_next_time_h" >&6; }
27856 NEXT_TIME_H=$gl_cv_next_time_h
27858 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
27859 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
27860 gl_next_as_first_directive='<'time.h'>'
27862 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
27863 gl_next_as_first_directive=$gl_cv_next_time_h
27865 NEXT_AS_FIRST_DIRECTIVE_TIME_H=$gl_next_as_first_directive
27878 ac_fn_c_check_decl "$LINENO" "unsetenv" "ac_cv_have_decl_unsetenv" "$ac_includes_default"
27879 if test "x$ac_cv_have_decl_unsetenv" = xyes; then :
27885 cat >>confdefs.h <<_ACEOF
27886 #define HAVE_DECL_UNSETENV $ac_have_decl
27891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the utimes function works" >&5
27892 $as_echo_n "checking whether the utimes function works... " >&6; }
27893 if ${gl_cv_func_working_utimes+:} false; then :
27894 $as_echo_n "(cached) " >&6
27897 if test "$cross_compiling" = yes; then :
27898 gl_cv_func_working_utimes=no
27900 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27901 /* end confdefs.h. */
27903 #include <sys/types.h>
27904 #include <sys/stat.h>
27906 #include <sys/time.h>
27908 #include <unistd.h>
27909 #include <stdlib.h>
27914 inorder (time_t a, time_t b, time_t c)
27916 return a <= b && b <= c;
27923 char const *file = "conftest.utimes";
27924 static struct timeval timeval[2] = {{9, 10}, {999999, 999999}};
27926 /* Test whether utimes() essentially works. */
27929 FILE *f = fopen (file, "w");
27932 else if (fclose (f) != 0)
27934 else if (utimes (file, timeval) != 0)
27936 else if (lstat (file, &sbuf) != 0)
27938 else if (!(sbuf.st_atime == timeval[0].tv_sec
27939 && sbuf.st_mtime == timeval[1].tv_sec))
27941 if (unlink (file) != 0)
27945 /* Test whether utimes() with a NULL argument sets the file's timestamp
27946 to the current time. Use 'fstat' as well as 'time' to
27947 determine the "current" time, to accommodate NFS file systems
27948 if there is a time skew between the host and the NFS server. */
27950 int fd = open (file, O_WRONLY|O_CREAT, 0644);
27956 struct stat st0, st1, st2;
27957 if (time (&t0) == (time_t) -1)
27959 else if (fstat (fd, &st0) != 0)
27961 else if (utimes (file, timeval) != 0)
27963 else if (utimes (file, NULL) != 0)
27965 else if (fstat (fd, &st1) != 0)
27967 else if (write (fd, "\n", 1) != 1)
27969 else if (fstat (fd, &st2) != 0)
27971 else if (time (&t2) == (time_t) -1)
27975 int m_ok_POSIX = inorder (t0, st1.st_mtime, t2);
27976 int m_ok_NFS = inorder (st0.st_mtime, st1.st_mtime, st2.st_mtime);
27977 if (! (st1.st_atime == st1.st_mtime))
27979 if (! (m_ok_POSIX || m_ok_NFS))
27982 if (close (fd) != 0)
27985 if (unlink (file) != 0)
27989 /* Test whether utimes() with a NULL argument works on read-only files. */
27991 int fd = open (file, O_WRONLY|O_CREAT, 0444);
27994 else if (close (fd) != 0)
27996 else if (utimes (file, NULL) != 0)
27998 if (unlink (file) != 0)
28006 if ac_fn_c_try_run "$LINENO"; then :
28007 gl_cv_func_working_utimes=yes
28009 gl_cv_func_working_utimes=no
28011 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
28012 conftest.$ac_objext conftest.beam conftest.$ac_ext
28016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_working_utimes" >&5
28017 $as_echo "$gl_cv_func_working_utimes" >&6; }
28019 if test $gl_cv_func_working_utimes = yes; then
28021 $as_echo "#define HAVE_WORKING_UTIMES 1" >>confdefs.h
28041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct utimbuf" >&5
28042 $as_echo_n "checking for struct utimbuf... " >&6; }
28043 if ${gl_cv_sys_struct_utimbuf+:} false; then :
28044 $as_echo_n "(cached) " >&6
28046 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28047 /* end confdefs.h. */
28048 #if HAVE_SYS_TIME_H
28049 #include <sys/time.h>
28052 #ifdef HAVE_UTIME_H
28059 static struct utimbuf x; x.actime = x.modtime;
28064 if ac_fn_c_try_compile "$LINENO"; then :
28065 gl_cv_sys_struct_utimbuf=yes
28067 gl_cv_sys_struct_utimbuf=no
28069 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_utimbuf" >&5
28072 $as_echo "$gl_cv_sys_struct_utimbuf" >&6; }
28074 if test $gl_cv_sys_struct_utimbuf = yes; then
28076 $as_echo "#define HAVE_STRUCT_UTIMBUF 1" >>confdefs.h
28106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wint_t" >&5
28107 $as_echo_n "checking for wint_t... " >&6; }
28108 if ${gt_cv_c_wint_t+:} false; then :
28109 $as_echo_n "(cached) " >&6
28111 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28112 /* end confdefs.h. */
28114 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
28116 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be included
28117 before <wchar.h>. */
28118 #include <stddef.h>
28122 wint_t foo = (wchar_t)'\0';
28131 if ac_fn_c_try_compile "$LINENO"; then :
28136 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wint_t" >&5
28139 $as_echo "$gt_cv_c_wint_t" >&6; }
28140 if test $gt_cv_c_wint_t = yes; then
28142 $as_echo "#define HAVE_WINT_T 1" >>confdefs.h
28154 if test $ac_cv_header_features_h = yes; then
28162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
28163 $as_echo_n "checking for inttypes.h... " >&6; }
28164 if ${gl_cv_header_inttypes_h+:} false; then :
28165 $as_echo_n "(cached) " >&6
28167 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28168 /* end confdefs.h. */
28170 #include <sys/types.h>
28171 #include <inttypes.h>
28176 uintmax_t i = (uintmax_t) -1; return !i;
28181 if ac_fn_c_try_compile "$LINENO"; then :
28182 gl_cv_header_inttypes_h=yes
28184 gl_cv_header_inttypes_h=no
28186 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_inttypes_h" >&5
28189 $as_echo "$gl_cv_header_inttypes_h" >&6; }
28190 if test $gl_cv_header_inttypes_h = yes; then
28192 cat >>confdefs.h <<_ACEOF
28193 #define HAVE_INTTYPES_H_WITH_UINTMAX 1
28199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint.h" >&5
28200 $as_echo_n "checking for stdint.h... " >&6; }
28201 if ${gl_cv_header_stdint_h+:} false; then :
28202 $as_echo_n "(cached) " >&6
28204 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28205 /* end confdefs.h. */
28206 #include <sys/types.h>
28207 #include <stdint.h>
28211 uintmax_t i = (uintmax_t) -1; return !i;
28216 if ac_fn_c_try_compile "$LINENO"; then :
28217 gl_cv_header_stdint_h=yes
28219 gl_cv_header_stdint_h=no
28221 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_stdint_h" >&5
28224 $as_echo "$gl_cv_header_stdint_h" >&6; }
28225 if test $gl_cv_header_stdint_h = yes; then
28227 cat >>confdefs.h <<_ACEOF
28228 #define HAVE_STDINT_H_WITH_UINTMAX 1
28236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intmax_t" >&5
28237 $as_echo_n "checking for intmax_t... " >&6; }
28238 if ${gt_cv_c_intmax_t+:} false; then :
28239 $as_echo_n "(cached) " >&6
28241 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28242 /* end confdefs.h. */
28244 #include <stddef.h>
28245 #include <stdlib.h>
28246 #if HAVE_STDINT_H_WITH_UINTMAX
28247 #include <stdint.h>
28249 #if HAVE_INTTYPES_H_WITH_UINTMAX
28250 #include <inttypes.h>
28256 intmax_t x = -1; return !x;
28261 if ac_fn_c_try_compile "$LINENO"; then :
28262 gt_cv_c_intmax_t=yes
28264 gt_cv_c_intmax_t=no
28266 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_intmax_t" >&5
28269 $as_echo "$gt_cv_c_intmax_t" >&6; }
28270 if test $gt_cv_c_intmax_t = yes; then
28272 $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
28276 test $ac_cv_type_long_long_int = yes \
28277 && ac_type='long long' \
28280 cat >>confdefs.h <<_ACEOF
28281 #define intmax_t $ac_type
28287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the exponent in a 'double'" >&5
28288 $as_echo_n "checking where to find the exponent in a 'double'... " >&6; }
28289 if ${gl_cv_cc_double_expbit0+:} false; then :
28290 $as_echo_n "(cached) " >&6
28293 if test "$cross_compiling" = yes; then :
28295 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28296 /* end confdefs.h. */
28298 #if defined arm || defined __arm || defined __arm__
28303 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28304 $EGREP "mixed_endianness" >/dev/null 2>&1; then :
28305 gl_cv_cc_double_expbit0="unknown"
28309 if ${ac_cv_c_bigendian+:} false; then :
28310 $as_echo_n "(cached) " >&6
28312 ac_cv_c_bigendian=unknown
28313 # See if we're dealing with a universal compiler.
28314 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28315 /* end confdefs.h. */
28316 #ifndef __APPLE_CC__
28317 not a universal capable compiler
28322 if ac_fn_c_try_compile "$LINENO"; then :
28324 # Check for potential -arch flags. It is not universal unless
28325 # there are at least two -arch flags with different values.
28328 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
28329 if test -n "$ac_prev"; then
28331 i?86 | x86_64 | ppc | ppc64)
28332 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
28335 ac_cv_c_bigendian=universal
28341 elif test "x$ac_word" = "x-arch"; then
28346 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28347 if test $ac_cv_c_bigendian = unknown; then
28348 # See if sys/param.h defines the BYTE_ORDER macro.
28349 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28350 /* end confdefs.h. */
28351 #include <sys/types.h>
28352 #include <sys/param.h>
28357 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
28358 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
28360 bogus endian macros
28367 if ac_fn_c_try_compile "$LINENO"; then :
28368 # It does; now see whether it defined to BIG_ENDIAN or not.
28369 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28370 /* end confdefs.h. */
28371 #include <sys/types.h>
28372 #include <sys/param.h>
28377 #if BYTE_ORDER != BIG_ENDIAN
28385 if ac_fn_c_try_compile "$LINENO"; then :
28386 ac_cv_c_bigendian=yes
28388 ac_cv_c_bigendian=no
28390 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28392 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28394 if test $ac_cv_c_bigendian = unknown; then
28395 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
28396 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28397 /* end confdefs.h. */
28398 #include <limits.h>
28403 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
28404 bogus endian macros
28411 if ac_fn_c_try_compile "$LINENO"; then :
28412 # It does; now see whether it defined to _BIG_ENDIAN or not.
28413 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28414 /* end confdefs.h. */
28415 #include <limits.h>
28420 #ifndef _BIG_ENDIAN
28428 if ac_fn_c_try_compile "$LINENO"; then :
28429 ac_cv_c_bigendian=yes
28431 ac_cv_c_bigendian=no
28433 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28435 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28437 if test $ac_cv_c_bigendian = unknown; then
28438 # Compile a test program.
28439 if test "$cross_compiling" = yes; then :
28440 # Try to guess by grepping values from an object file.
28441 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28442 /* end confdefs.h. */
28443 short int ascii_mm[] =
28444 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
28445 short int ascii_ii[] =
28446 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
28447 int use_ascii (int i) {
28448 return ascii_mm[i] + ascii_ii[i];
28450 short int ebcdic_ii[] =
28451 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
28452 short int ebcdic_mm[] =
28453 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
28454 int use_ebcdic (int i) {
28455 return ebcdic_mm[i] + ebcdic_ii[i];
28462 return use_ascii (foo) == use_ebcdic (foo);
28467 if ac_fn_c_try_compile "$LINENO"; then :
28468 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
28469 ac_cv_c_bigendian=yes
28471 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
28472 if test "$ac_cv_c_bigendian" = unknown; then
28473 ac_cv_c_bigendian=no
28475 # finding both strings is unlikely to happen, but who knows?
28476 ac_cv_c_bigendian=unknown
28480 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28482 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28483 /* end confdefs.h. */
28484 $ac_includes_default
28489 /* Are we little or big endian? From Harbison&Steele. */
28493 char c[sizeof (long int)];
28496 return u.c[sizeof (long int) - 1] == 1;
28502 if ac_fn_c_try_run "$LINENO"; then :
28503 ac_cv_c_bigendian=no
28505 ac_cv_c_bigendian=yes
28507 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
28508 conftest.$ac_objext conftest.beam conftest.$ac_ext
28514 case $ac_cv_c_bigendian in #(
28516 gl_cv_cc_double_expbit0="word 0 bit 20";; #(
28518 gl_cv_cc_double_expbit0="word 1 bit 20" ;; #(
28521 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
28525 gl_cv_cc_double_expbit0="unknown" ;;
28534 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28535 /* end confdefs.h. */
28538 #include <stddef.h>
28540 #include <string.h>
28542 ((sizeof (double) + sizeof (unsigned int) - 1) / sizeof (unsigned int))
28543 typedef union { double value; unsigned int word[NWORDS]; } memory_double;
28544 static unsigned int ored_words[NWORDS];
28545 static unsigned int anded_words[NWORDS];
28546 static void add_to_ored_words (double x)
28550 /* Clear it first, in case sizeof (double) < sizeof (memory_double). */
28551 memset (&m, 0, sizeof (memory_double));
28553 for (i = 0; i < NWORDS; i++)
28555 ored_words[i] |= m.word[i];
28556 anded_words[i] &= m.word[i];
28562 FILE *fp = fopen ("conftest.out", "w");
28565 for (j = 0; j < NWORDS; j++)
28566 anded_words[j] = ~ (unsigned int) 0;
28567 add_to_ored_words (0.25);
28568 add_to_ored_words (0.5);
28569 add_to_ored_words (1.0);
28570 add_to_ored_words (2.0);
28571 add_to_ored_words (4.0);
28572 /* Remove bits that are common (e.g. if representation of the first mantissa
28573 bit is explicit). */
28574 for (j = 0; j < NWORDS; j++)
28575 ored_words[j] &= ~anded_words[j];
28576 /* Now find the nonzero word. */
28577 for (j = 0; j < NWORDS; j++)
28578 if (ored_words[j] != 0)
28583 for (i = j + 1; i < NWORDS; i++)
28584 if (ored_words[i] != 0)
28586 fprintf (fp, "unknown");
28587 return (fclose (fp) != 0);
28590 if ((ored_words[j] >> i) & 1)
28592 fprintf (fp, "word %d bit %d", (int) j, (int) i);
28593 return (fclose (fp) != 0);
28596 fprintf (fp, "unknown");
28597 return (fclose (fp) != 0);
28601 if ac_fn_c_try_run "$LINENO"; then :
28602 gl_cv_cc_double_expbit0=`cat conftest.out`
28604 gl_cv_cc_double_expbit0="unknown"
28606 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
28607 conftest.$ac_objext conftest.beam conftest.$ac_ext
28613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_double_expbit0" >&5
28614 $as_echo "$gl_cv_cc_double_expbit0" >&6; }
28615 case "$gl_cv_cc_double_expbit0" in
28617 word=`echo "$gl_cv_cc_double_expbit0" | sed -e 's/word //' -e 's/ bit.*//'`
28618 bit=`echo "$gl_cv_cc_double_expbit0" | sed -e 's/word.*bit //'`
28620 cat >>confdefs.h <<_ACEOF
28621 #define DBL_EXPBIT0_WORD $word
28625 cat >>confdefs.h <<_ACEOF
28626 #define DBL_EXPBIT0_BIT $bit
28649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether snprintf returns a byte count as in C99" >&5
28650 $as_echo_n "checking whether snprintf returns a byte count as in C99... " >&6; }
28651 if ${gl_cv_func_snprintf_retval_c99+:} false; then :
28652 $as_echo_n "(cached) " >&6
28655 if test "$cross_compiling" = yes; then :
28658 # Guess yes on glibc systems.
28659 *-gnu*) gl_cv_func_snprintf_retval_c99="guessing yes";;
28660 # Guess yes on FreeBSD >= 5.
28661 freebsd[1-4]*) gl_cv_func_snprintf_retval_c99="guessing no";;
28662 freebsd* | kfreebsd*) gl_cv_func_snprintf_retval_c99="guessing yes";;
28663 # Guess yes on Mac OS X >= 10.3.
28664 darwin[1-6].*) gl_cv_func_snprintf_retval_c99="guessing no";;
28665 darwin*) gl_cv_func_snprintf_retval_c99="guessing yes";;
28666 # Guess yes on OpenBSD >= 3.9.
28667 openbsd[1-2].* | openbsd3.[0-8] | openbsd3.[0-8].*)
28668 gl_cv_func_snprintf_retval_c99="guessing no";;
28669 openbsd*) gl_cv_func_snprintf_retval_c99="guessing yes";;
28670 # Guess yes on Solaris >= 2.10.
28671 solaris2.[1-9][0-9]*) gl_cv_func_printf_sizes_c99="guessing yes";;
28672 solaris*) gl_cv_func_printf_sizes_c99="guessing no";;
28673 # Guess yes on AIX >= 4.
28674 aix[1-3]*) gl_cv_func_snprintf_retval_c99="guessing no";;
28675 aix*) gl_cv_func_snprintf_retval_c99="guessing yes";;
28676 # Guess yes on NetBSD >= 3.
28677 netbsd[1-2]* | netbsdelf[1-2]* | netbsdaout[1-2]* | netbsdcoff[1-2]*)
28678 gl_cv_func_snprintf_retval_c99="guessing no";;
28679 netbsd*) gl_cv_func_snprintf_retval_c99="guessing yes";;
28680 # Guess yes on BeOS.
28681 beos*) gl_cv_func_snprintf_retval_c99="guessing yes";;
28682 # If we don't know, assume the worst.
28683 *) gl_cv_func_snprintf_retval_c99="guessing no";;
28687 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28688 /* end confdefs.h. */
28691 #include <string.h>
28693 # define my_snprintf snprintf
28695 # include <stdarg.h>
28696 static int my_snprintf (char *buf, int size, const char *format, ...)
28700 va_start (args, format);
28701 ret = vsnprintf (buf, size, format, args);
28706 static char buf[100];
28709 strcpy (buf, "ABCDEF");
28710 if (my_snprintf (buf, 3, "%d %d", 4567, 89) != 7)
28712 if (my_snprintf (buf, 0, "%d %d", 4567, 89) != 7)
28714 if (my_snprintf (NULL, 0, "%d %d", 4567, 89) != 7)
28719 if ac_fn_c_try_run "$LINENO"; then :
28720 gl_cv_func_snprintf_retval_c99=yes
28722 gl_cv_func_snprintf_retval_c99=no
28724 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
28725 conftest.$ac_objext conftest.beam conftest.$ac_ext
28730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_snprintf_retval_c99" >&5
28731 $as_echo "$gl_cv_func_snprintf_retval_c99" >&6; }
28738 for ac_func in snprintf strnlen wcslen wcsnlen mbrtowc wcrtomb
28740 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
28741 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
28742 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
28743 cat >>confdefs.h <<_ACEOF
28744 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
28750 ac_fn_c_check_decl "$LINENO" "_snprintf" "ac_cv_have_decl__snprintf" "#include <stdio.h>
28752 if test "x$ac_cv_have_decl__snprintf" = xyes; then :
28758 cat >>confdefs.h <<_ACEOF
28759 #define HAVE_DECL__SNPRINTF $ac_have_decl
28764 case "$gl_cv_func_snprintf_retval_c99" in
28767 $as_echo "#define HAVE_SNPRINTF_RETVAL_C99 1" >>confdefs.h
28773 ac_fn_c_check_decl "$LINENO" "vsnprintf" "ac_cv_have_decl_vsnprintf" "$ac_includes_default"
28774 if test "x$ac_cv_have_decl_vsnprintf" = xyes; then :
28780 cat >>confdefs.h <<_ACEOF
28781 #define HAVE_DECL_VSNPRINTF $ac_have_decl
28795 GNULIB_TOWCTRANS=0;
28799 REPLACE_ISWBLANK=0;
28808 GL_COND_LIBTOOL_TRUE=
28809 GL_COND_LIBTOOL_FALSE='#'
28811 GL_COND_LIBTOOL_TRUE='#'
28812 GL_COND_LIBTOOL_FALSE=
28815 gl_cond_libtool=true
28816 gl_m4_base='gnulib/m4'
28826 gl_source_base='gnulib/lib'
28827 LTALLOCA=`echo "$ALLOCA" | sed -e 's/\.[^.]* /.lo /g;s/\.[^.]*$/.lo/'`
28831 if test $ac_cv_func_alloca_works = no; then
28835 # Define an additional variable used in the Makefile substitution.
28836 if test $ac_cv_working_alloca_h = yes; then
28837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca as a compiler built-in" >&5
28838 $as_echo_n "checking for alloca as a compiler built-in... " >&6; }
28839 if ${gl_cv_rpl_alloca+:} false; then :
28840 $as_echo_n "(cached) " >&6
28843 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28844 /* end confdefs.h. */
28846 #if defined __GNUC__ || defined _AIX || defined _MSC_VER
28851 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28852 $EGREP "Need own alloca" >/dev/null 2>&1; then :
28853 gl_cv_rpl_alloca=yes
28855 gl_cv_rpl_alloca=no
28861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_rpl_alloca" >&5
28862 $as_echo "$gl_cv_rpl_alloca" >&6; }
28863 if test $gl_cv_rpl_alloca = yes; then
28865 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
28875 if test -n "$ALLOCA_H"; then
28876 GL_GENERATE_ALLOCA_H_TRUE=
28877 GL_GENERATE_ALLOCA_H_FALSE='#'
28879 GL_GENERATE_ALLOCA_H_TRUE='#'
28880 GL_GENERATE_ALLOCA_H_FALSE=
28889 ac_fn_c_check_decl "$LINENO" "program_invocation_name" "ac_cv_have_decl_program_invocation_name" "#include <errno.h>
28891 if test "x$ac_cv_have_decl_program_invocation_name" = xyes; then :
28897 cat >>confdefs.h <<_ACEOF
28898 #define HAVE_DECL_PROGRAM_INVOCATION_NAME $ac_have_decl
28900 if test $ac_have_decl = 1; then :
28904 $as_echo "#define GNULIB_PROGRAM_INVOCATION_NAME 1" >>confdefs.h
28908 ac_fn_c_check_decl "$LINENO" "program_invocation_short_name" "ac_cv_have_decl_program_invocation_short_name" "#include <errno.h>
28910 if test "x$ac_cv_have_decl_program_invocation_short_name" = xyes; then :
28916 cat >>confdefs.h <<_ACEOF
28917 #define HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME $ac_have_decl
28919 if test $ac_have_decl = 1; then :
28923 $as_echo "#define GNULIB_PROGRAM_INVOCATION_SHORT_NAME 1" >>confdefs.h
28928 # Check if program_invocation_name and program_invocation_short_name
28929 # are defined elsewhere. It is improbable that only one of them will
28930 # be defined and other not, I prefer to stay on the safe side and to
28931 # test each one separately.
28932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether program_invocation_name is defined" >&5
28933 $as_echo_n "checking whether program_invocation_name is defined... " >&6; }
28934 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28935 /* end confdefs.h. */
28940 program_invocation_name = "test";
28945 if ac_fn_c_try_link "$LINENO"; then :
28947 $as_echo "#define HAVE_PROGRAM_INVOCATION_NAME 1" >>confdefs.h
28949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28950 $as_echo "yes" >&6; }
28952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28953 $as_echo "no" >&6; }
28955 rm -f core conftest.err conftest.$ac_objext \
28956 conftest$ac_exeext conftest.$ac_ext
28958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether program_invocation_short_name is defined" >&5
28959 $as_echo_n "checking whether program_invocation_short_name is defined... " >&6; }
28960 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28961 /* end confdefs.h. */
28966 program_invocation_short_name = "test";
28971 if ac_fn_c_try_link "$LINENO"; then :
28973 $as_echo "#define HAVE_PROGRAM_INVOCATION_SHORT_NAME 1" >>confdefs.h
28975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28976 $as_echo "yes" >&6; }
28978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28979 $as_echo "no" >&6; }
28981 rm -f core conftest.err conftest.$ac_objext \
28982 conftest$ac_exeext conftest.$ac_ext
29098 XGETTEXT_EXTRA_OPTIONS="$XGETTEXT_EXTRA_OPTIONS --flag=argp_error:2:c-format"
29102 XGETTEXT_EXTRA_OPTIONS="$XGETTEXT_EXTRA_OPTIONS --flag=argp_failure:4:c-format"
29112 gl_LIBOBJS="$gl_LIBOBJS openat-proc.$ac_objext"
29126 if test $ac_cv_func_btowc = no; then
29133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether btowc(0) is correct" >&5
29134 $as_echo_n "checking whether btowc(0) is correct... " >&6; }
29135 if ${gl_cv_func_btowc_nul+:} false; then :
29136 $as_echo_n "(cached) " >&6
29139 if test "$cross_compiling" = yes; then :
29142 # Guess no on Cygwin.
29143 cygwin*) gl_cv_func_btowc_nul="guessing no" ;;
29144 # Guess yes otherwise.
29145 *) gl_cv_func_btowc_nul="guessing yes" ;;
29149 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29150 /* end confdefs.h. */
29152 #include <string.h>
29153 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
29155 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
29156 included before <wchar.h>. */
29157 #include <stddef.h>
29163 if (btowc ('\0') != 0)
29168 if ac_fn_c_try_run "$LINENO"; then :
29169 gl_cv_func_btowc_nul=yes
29171 gl_cv_func_btowc_nul=no
29173 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
29174 conftest.$ac_objext conftest.beam conftest.$ac_ext
29179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_btowc_nul" >&5
29180 $as_echo "$gl_cv_func_btowc_nul" >&6; }
29182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether btowc(EOF) is correct" >&5
29183 $as_echo_n "checking whether btowc(EOF) is correct... " >&6; }
29184 if ${gl_cv_func_btowc_eof+:} false; then :
29185 $as_echo_n "(cached) " >&6
29189 # Guess no on IRIX.
29190 irix*) gl_cv_func_btowc_eof="guessing no" ;;
29191 # Guess yes otherwise.
29192 *) gl_cv_func_btowc_eof="guessing yes" ;;
29194 if test $LOCALE_FR != none; then
29195 if test "$cross_compiling" = yes; then :
29198 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29199 /* end confdefs.h. */
29201 #include <locale.h>
29202 #include <string.h>
29203 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
29205 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
29206 included before <wchar.h>. */
29207 #include <stddef.h>
29213 if (setlocale (LC_ALL, "$LOCALE_FR") != NULL)
29215 if (btowc (EOF) != WEOF)
29221 if ac_fn_c_try_run "$LINENO"; then :
29222 gl_cv_func_btowc_eof=yes
29224 gl_cv_func_btowc_eof=no
29226 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
29227 conftest.$ac_objext conftest.beam conftest.$ac_ext
29233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_btowc_eof" >&5
29234 $as_echo "$gl_cv_func_btowc_eof" >&6; }
29236 case "$gl_cv_func_btowc_nul" in
29238 *) REPLACE_BTOWC=1 ;;
29240 case "$gl_cv_func_btowc_eof" in
29242 *) REPLACE_BTOWC=1 ;;
29246 if test $HAVE_BTOWC = 0 || test $REPLACE_BTOWC = 1; then
29255 gl_LIBOBJS="$gl_LIBOBJS btowc.$ac_objext"
29272 $as_echo "#define GNULIB_TEST_BTOWC 1" >>confdefs.h
29287 if test $ac_cv_func_canonicalize_file_name = no; then
29288 HAVE_CANONICALIZE_FILE_NAME=0
29290 case "$gl_cv_func_realpath_works" in
29292 *) REPLACE_CANONICALIZE_FILE_NAME=1 ;;
29298 cat >>confdefs.h <<_ACEOF
29299 #define GNULIB_CANONICALIZE 1
29305 $as_echo "#define GNULIB_TEST_CANONICALIZE 1" >>confdefs.h
29313 GNULIB_CANONICALIZE_FILE_NAME=1
29319 $as_echo "#define GNULIB_TEST_CANONICALIZE_FILE_NAME 1" >>confdefs.h
29326 if test $ac_cv_func_canonicalize_file_name = no; then
29327 HAVE_CANONICALIZE_FILE_NAME=0
29328 if test $ac_cv_func_realpath = no; then
29331 case "$gl_cv_func_realpath_works" in
29333 *) REPLACE_REALPATH=1 ;;
29337 case "$gl_cv_func_realpath_works" in
29341 REPLACE_CANONICALIZE_FILE_NAME=1
29347 if test $HAVE_CANONICALIZE_FILE_NAME = 0 || test $REPLACE_CANONICALIZE_FILE_NAME = 1; then
29356 gl_LIBOBJS="$gl_LIBOBJS canonicalize-lgpl.$ac_objext"
29361 cat >>confdefs.h <<_ACEOF
29362 #define GNULIB_CANONICALIZE_LGPL 1
29371 GNULIB_CANONICALIZE_FILE_NAME=1
29377 $as_echo "#define GNULIB_TEST_CANONICALIZE_FILE_NAME 1" >>confdefs.h
29392 $as_echo "#define GNULIB_TEST_REALPATH 1" >>confdefs.h
29407 $as_echo "#define GNULIB_TEST_CHDIR 1" >>confdefs.h
29413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether this system has an arbitrary file name length limit" >&5
29414 $as_echo_n "checking whether this system has an arbitrary file name length limit... " >&6; }
29415 if ${gl_cv_have_arbitrary_file_name_length_limit+:} false; then :
29416 $as_echo_n "(cached) " >&6
29418 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29419 /* end confdefs.h. */
29421 /* Arrange to define PATH_MAX, like "pathmax.h" does. */
29423 # include <unistd.h>
29425 #include <limits.h>
29426 #if defined HAVE_SYS_PARAM_H && !defined PATH_MAX && !defined MAXPATHLEN
29427 # include <sys/param.h>
29429 #if !defined PATH_MAX && defined MAXPATHLEN
29430 # define PATH_MAX MAXPATHLEN
29434 # define PATH_MAX 1024
29436 #if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
29438 # define PATH_MAX 260
29442 have_arbitrary_file_name_length_limit
29445 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
29446 $EGREP "have_arbitrary_file_name_length_limit" >/dev/null 2>&1; then :
29447 gl_cv_have_arbitrary_file_name_length_limit=yes
29449 gl_cv_have_arbitrary_file_name_length_limit=no
29454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_have_arbitrary_file_name_length_limit" >&5
29455 $as_echo "$gl_cv_have_arbitrary_file_name_length_limit" >&6; }
29457 if test $gl_cv_have_arbitrary_file_name_length_limit = yes; then
29466 gl_LIBOBJS="$gl_LIBOBJS chdir-long.$ac_objext"
29473 # Solaris 2.5.1 needs -lposix4 to get the clock_gettime function.
29474 # Solaris 7 prefers the library name -lrt to the obsolescent name -lposix4.
29476 # Save and restore LIBS so e.g., -lrt, isn't added to it. Otherwise, *all*
29477 # programs in the package would end up linked with that potentially-shared
29478 # library, inducing unnecessary run-time overhead.
29481 gl_saved_libs=$LIBS
29482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
29483 $as_echo_n "checking for library containing clock_gettime... " >&6; }
29484 if ${ac_cv_search_clock_gettime+:} false; then :
29485 $as_echo_n "(cached) " >&6
29487 ac_func_search_save_LIBS=$LIBS
29488 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29489 /* end confdefs.h. */
29491 /* Override any GCC internal prototype to avoid an error.
29492 Use char because int might match the return type of a GCC
29493 builtin and then its argument prototype would still apply. */
29497 char clock_gettime ();
29501 return clock_gettime ();
29506 for ac_lib in '' rt posix4; do
29507 if test -z "$ac_lib"; then
29508 ac_res="none required"
29511 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
29513 if ac_fn_c_try_link "$LINENO"; then :
29514 ac_cv_search_clock_gettime=$ac_res
29516 rm -f core conftest.err conftest.$ac_objext \
29518 if ${ac_cv_search_clock_gettime+:} false; then :
29522 if ${ac_cv_search_clock_gettime+:} false; then :
29525 ac_cv_search_clock_gettime=no
29527 rm conftest.$ac_ext
29528 LIBS=$ac_func_search_save_LIBS
29530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
29531 $as_echo "$ac_cv_search_clock_gettime" >&6; }
29532 ac_res=$ac_cv_search_clock_gettime
29533 if test "$ac_res" != no; then :
29534 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
29535 test "$ac_cv_search_clock_gettime" = "none required" ||
29536 LIB_CLOCK_GETTIME=$ac_cv_search_clock_gettime
29539 for ac_func in clock_gettime clock_settime
29541 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
29542 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
29543 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
29544 cat >>confdefs.h <<_ACEOF
29545 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
29551 LIBS=$gl_saved_libs
29555 $as_echo "#define GNULIB_TEST_CLOEXEC 1" >>confdefs.h
29561 if test $HAVE_MSVC_INVALID_PARAMETER_HANDLER = 1; then
29575 if test $ac_cv_header_sys_socket_h != yes; then
29576 for ac_header in winsock2.h
29578 ac_fn_c_check_header_mongrel "$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
29579 if test "x$ac_cv_header_winsock2_h" = xyes; then :
29580 cat >>confdefs.h <<_ACEOF
29581 #define HAVE_WINSOCK2_H 1
29589 if test "$ac_cv_header_winsock2_h" = yes; then
29591 UNISTD_H_HAVE_WINSOCK2_H=1
29592 SYS_IOCTL_H_HAVE_WINSOCK2_H=1
29598 if test $UNISTD_H_HAVE_WINSOCK2_H = 1; then
29603 if test $REPLACE_CLOSE = 0; then
29613 if test $ac_cv_func_fchdir = no; then
29617 if test $HAVE_FCHDIR = 0; then
29623 if test $REPLACE_CLOSE = 1; then
29632 gl_LIBOBJS="$gl_LIBOBJS close.$ac_objext"
29646 $as_echo "#define GNULIB_TEST_CLOSE 1" >>confdefs.h
29653 for ac_func in closedir
29655 ac_fn_c_check_func "$LINENO" "closedir" "ac_cv_func_closedir"
29656 if test "x$ac_cv_func_closedir" = xyes; then :
29657 cat >>confdefs.h <<_ACEOF
29658 #define HAVE_CLOSEDIR 1
29664 if test $ac_cv_func_closedir = no; then
29677 if test $ac_cv_func_fchdir = no; then
29681 if test $HAVE_FCHDIR = 0; then
29682 if test $HAVE_CLOSEDIR = 1; then
29688 if test $HAVE_CLOSEDIR = 0 || test $REPLACE_CLOSEDIR = 1; then
29697 gl_LIBOBJS="$gl_LIBOBJS closedir.$ac_objext"
29711 $as_echo "#define GNULIB_TEST_CLOSEDIR 1" >>confdefs.h
29716 if test "x$datarootdir" = x; then
29717 datarootdir='${datadir}'
29720 if test "x$docdir" = x; then
29721 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
29724 if test "x$htmldir" = x; then
29725 htmldir='${docdir}'
29728 if test "x$dvidir" = x; then
29732 if test "x$pdfdir" = x; then
29736 if test "x$psdir" = x; then
29740 if test "x$lispdir" = x; then
29741 lispdir='${datarootdir}/emacs/site-lisp'
29744 if test "x$localedir" = x; then
29745 localedir='${datarootdir}/locale'
29748 if test "x$runstatedir" = x; then
29749 runstatedir='${localstatedir}/run'
29753 pkglibexecdir='${libexecdir}/${PACKAGE}'
29756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for d_ino member in directory struct" >&5
29757 $as_echo_n "checking for d_ino member in directory struct... " >&6; }
29758 if ${gl_cv_struct_dirent_d_ino+:} false; then :
29759 $as_echo_n "(cached) " >&6
29761 if test "$cross_compiling" = yes; then :
29763 # Guess yes on glibc systems with Linux kernel.
29764 linux*-gnu*) gl_cv_struct_dirent_d_ino="guessing yes" ;;
29765 # If we don't know, assume the worst.
29766 *) gl_cv_struct_dirent_d_ino="guessing no" ;;
29770 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29771 /* end confdefs.h. */
29772 #include <sys/types.h>
29773 #include <sys/stat.h>
29774 #include <dirent.h>
29779 DIR *dp = opendir (".");
29787 if (lstat (e->d_name, &st) != 0)
29789 if (e->d_ino != st.st_ino)
29797 if ac_fn_c_try_run "$LINENO"; then :
29798 gl_cv_struct_dirent_d_ino=yes
29800 gl_cv_struct_dirent_d_ino=no
29802 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
29803 conftest.$ac_objext conftest.beam conftest.$ac_ext
29807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_struct_dirent_d_ino" >&5
29808 $as_echo "$gl_cv_struct_dirent_d_ino" >&6; }
29809 case "$gl_cv_struct_dirent_d_ino" in
29812 $as_echo "#define D_INO_IN_DIRENT 1" >>confdefs.h
29818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for d_type member in directory struct" >&5
29819 $as_echo_n "checking for d_type member in directory struct... " >&6; }
29820 if ${gl_cv_struct_dirent_d_type+:} false; then :
29821 $as_echo_n "(cached) " >&6
29823 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29824 /* end confdefs.h. */
29826 #include <sys/types.h>
29827 #include <dirent.h>
29832 struct dirent dp; dp.d_type = 0;
29837 if ac_fn_c_try_link "$LINENO"; then :
29838 gl_cv_struct_dirent_d_type=yes
29840 gl_cv_struct_dirent_d_type=no
29842 rm -f core conftest.err conftest.$ac_objext \
29843 conftest$ac_exeext conftest.$ac_ext
29847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_struct_dirent_d_type" >&5
29848 $as_echo "$gl_cv_struct_dirent_d_type" >&6; }
29849 if test $gl_cv_struct_dirent_d_type = yes; then
29851 $as_echo "#define HAVE_STRUCT_DIRENT_D_TYPE 1" >>confdefs.h
29874 if test $gl_cv_have_include_next = yes; then
29875 gl_cv_next_dirent_h='<'dirent.h'>'
29877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <dirent.h>" >&5
29878 $as_echo_n "checking absolute name of <dirent.h>... " >&6; }
29879 if ${gl_cv_next_dirent_h+:} false; then :
29880 $as_echo_n "(cached) " >&6
29883 if test $ac_cv_header_dirent_h = yes; then
29888 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29889 /* end confdefs.h. */
29890 #include <dirent.h>
29893 aix*) gl_absname_cpp="$ac_cpp -C" ;;
29894 *) gl_absname_cpp="$ac_cpp" ;;
29899 gl_dirsep_regex='[/\\]'
29902 gl_dirsep_regex='\/'
29905 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
29906 gl_header_literal_regex=`echo 'dirent.h' \
29907 | sed -e "$gl_make_literal_regex_sed"`
29908 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
29909 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
29915 gl_cv_absolute_dirent_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
29916 sed -n "$gl_absolute_header_sed"`
29918 gl_header=$gl_cv_absolute_dirent_h
29919 gl_cv_next_dirent_h='"'$gl_header'"'
29921 gl_cv_next_dirent_h='<'dirent.h'>'
29926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_dirent_h" >&5
29927 $as_echo "$gl_cv_next_dirent_h" >&6; }
29929 NEXT_DIRENT_H=$gl_cv_next_dirent_h
29931 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
29932 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
29933 gl_next_as_first_directive='<'dirent.h'>'
29935 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
29936 gl_next_as_first_directive=$gl_cv_next_dirent_h
29938 NEXT_AS_FIRST_DIRECTIVE_DIRENT_H=$gl_next_as_first_directive
29943 if test $ac_cv_header_dirent_h = yes; then
29951 for gl_func in alphasort closedir dirfd fdopendir opendir readdir rewinddir scandir; do
29952 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
29953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
29954 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
29955 if eval \${$as_gl_Symbol+:} false; then :
29956 $as_echo_n "(cached) " >&6
29958 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29959 /* end confdefs.h. */
29960 #include <dirent.h>
29971 if ac_fn_c_try_compile "$LINENO"; then :
29972 eval "$as_gl_Symbol=yes"
29974 eval "$as_gl_Symbol=no"
29976 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29978 eval ac_res=\$$as_gl_Symbol
29979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
29980 $as_echo "$ac_res" >&6; }
29981 if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
29982 cat >>confdefs.h <<_ACEOF
29983 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
29986 eval ac_cv_have_decl_$gl_func=yes
29996 for ac_func in dirfd
29998 ac_fn_c_check_func "$LINENO" "dirfd" "ac_cv_func_dirfd"
29999 if test "x$ac_cv_func_dirfd" = xyes; then :
30000 cat >>confdefs.h <<_ACEOF
30001 #define HAVE_DIRFD 1
30007 ac_fn_c_check_decl "$LINENO" "dirfd" "ac_cv_have_decl_dirfd" "#include <sys/types.h>
30008 #include <dirent.h>
30010 if test "x$ac_cv_have_decl_dirfd" = xyes; then :
30016 cat >>confdefs.h <<_ACEOF
30017 #define HAVE_DECL_DIRFD $ac_have_decl
30020 if test $ac_cv_have_decl_dirfd = no; then
30024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether dirfd is a macro" >&5
30025 $as_echo_n "checking whether dirfd is a macro... " >&6; }
30026 if ${gl_cv_func_dirfd_macro+:} false; then :
30027 $as_echo_n "(cached) " >&6
30029 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30030 /* end confdefs.h. */
30032 #include <sys/types.h>
30033 #include <dirent.h>
30035 dirent_header_defines_dirfd
30038 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30039 $EGREP "dirent_header_defines_dirfd" >/dev/null 2>&1; then :
30040 gl_cv_func_dirfd_macro=yes
30042 gl_cv_func_dirfd_macro=no
30047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_dirfd_macro" >&5
30048 $as_echo "$gl_cv_func_dirfd_macro" >&6; }
30050 # Use the replacement only if we have no function or macro with that name.
30051 if test $ac_cv_func_dirfd = no && test $gl_cv_func_dirfd_macro = no; then
30052 if test $ac_cv_have_decl_dirfd = yes; then
30053 # If the system declares dirfd already, let's declare rpl_dirfd instead.
30058 if test $ac_cv_func_dirfd = no && test $gl_cv_func_dirfd_macro = no; then
30067 gl_LIBOBJS="$gl_LIBOBJS dirfd.$ac_objext"
30070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to get the file descriptor associated with an open DIR*" >&5
30071 $as_echo_n "checking how to get the file descriptor associated with an open DIR*... " >&6; }
30072 if ${gl_cv_sys_dir_fd_member_name+:} false; then :
30073 $as_echo_n "(cached) " >&6
30076 dirfd_save_CFLAGS=$CFLAGS
30077 for ac_expr in d_fd dd_fd; do
30079 CFLAGS="$CFLAGS -DDIR_FD_MEMBER_NAME=$ac_expr"
30080 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30081 /* end confdefs.h. */
30083 #include <sys/types.h>
30084 #include <dirent.h>
30088 DIR *dir_p = opendir("."); (void) dir_p->DIR_FD_MEMBER_NAME;
30093 if ac_fn_c_try_compile "$LINENO"; then :
30097 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30098 CFLAGS=$dirfd_save_CFLAGS
30099 test "$dir_fd_found" = yes && break
30101 test "$dir_fd_found" = yes || ac_expr=no_such_member
30103 gl_cv_sys_dir_fd_member_name=$ac_expr
30107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_dir_fd_member_name" >&5
30108 $as_echo "$gl_cv_sys_dir_fd_member_name" >&6; }
30109 if test $gl_cv_sys_dir_fd_member_name != no_such_member; then
30111 cat >>confdefs.h <<_ACEOF
30112 #define DIR_FD_MEMBER_NAME $gl_cv_sys_dir_fd_member_name
30130 $as_echo "#define GNULIB_TEST_DIRFD 1" >>confdefs.h
30139 cat >>confdefs.h <<_ACEOF
30140 #define GNULIB_DIRNAME 1
30150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether // is distinct from /" >&5
30151 $as_echo_n "checking whether // is distinct from /... " >&6; }
30152 if ${gl_cv_double_slash_root+:} false; then :
30153 $as_echo_n "(cached) " >&6
30155 if test x"$cross_compiling" = xyes ; then
30156 # When cross-compiling, there is no way to tell whether // is special
30157 # short of a list of hosts. However, the only known hosts to date
30158 # that have a distinct // are Apollo DomainOS (too old to port to),
30159 # Cygwin, and z/OS. If anyone knows of another system for which // has
30160 # special semantics and is distinct from /, please report it to
30161 # <bug-gnulib@gnu.org>.
30163 *-cygwin | i370-ibm-openedition)
30164 gl_cv_double_slash_root=yes ;;
30166 # Be optimistic and assume that / and // are the same when we
30168 gl_cv_double_slash_root='unknown, assuming no' ;;
30171 set x `ls -di / // 2>/dev/null`
30172 if test "$2" = "$4" && wc //dev/null >/dev/null 2>&1; then
30173 gl_cv_double_slash_root=no
30175 gl_cv_double_slash_root=yes
30179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_double_slash_root" >&5
30180 $as_echo "$gl_cv_double_slash_root" >&6; }
30181 if test "$gl_cv_double_slash_root" = yes; then
30183 $as_echo "#define DOUBLE_SLASH_IS_DISTINCT_ROOT 1" >>confdefs.h
30190 if test $HAVE_MSVC_INVALID_PARAMETER_HANDLER = 1; then
30203 if test $ac_cv_func_fchdir = no; then
30207 if test $HAVE_FCHDIR = 0; then
30212 if test $REPLACE_DUP = 1; then
30221 gl_LIBOBJS="$gl_LIBOBJS dup.$ac_objext"
30236 $as_echo "#define GNULIB_TEST_DUP 1" >>confdefs.h
30245 $as_echo "#define HAVE_DUP2 1" >>confdefs.h
30248 if test $HAVE_DUP2 = 1; then
30249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether dup2 works" >&5
30250 $as_echo_n "checking whether dup2 works... " >&6; }
30251 if ${gl_cv_func_dup2_works+:} false; then :
30252 $as_echo_n "(cached) " >&6
30254 if test "$cross_compiling" = yes; then :
30256 mingw*) # on this platform, dup2 always returns 0 for success
30257 gl_cv_func_dup2_works="guessing no" ;;
30258 cygwin*) # on cygwin 1.5.x, dup2(1,1) returns 0
30259 gl_cv_func_dup2_works="guessing no" ;;
30260 linux*) # On linux between 2008-07-27 and 2009-05-11, dup2 of a
30261 # closed fd may yield -EBADF instead of -1 / errno=EBADF.
30262 gl_cv_func_dup2_works="guessing no" ;;
30263 freebsd*) # on FreeBSD 6.1, dup2(1,1000000) gives EMFILE, not EBADF.
30264 gl_cv_func_dup2_works="guessing no" ;;
30265 haiku*) # on Haiku alpha 2, dup2(1, 1) resets FD_CLOEXEC.
30266 gl_cv_func_dup2_works="guessing no" ;;
30267 *) gl_cv_func_dup2_works="guessing yes" ;;
30270 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30271 /* end confdefs.h. */
30273 #include <unistd.h>
30281 if (fcntl (1, F_SETFD, FD_CLOEXEC) == -1)
30284 if (dup2 (1, 1) == 0)
30287 if (fcntl (1, F_GETFD) != FD_CLOEXEC)
30291 if (dup2 (0, 0) != -1)
30293 /* Many gnulib modules require POSIX conformance of EBADF. */
30294 if (dup2 (2, 1000000) == -1 && errno != EBADF)
30296 /* Flush out some cygwin core dumps. */
30297 if (dup2 (2, -1) != -1 || errno != EBADF)
30308 if ac_fn_c_try_run "$LINENO"; then :
30309 gl_cv_func_dup2_works=yes
30311 gl_cv_func_dup2_works=no
30313 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
30314 conftest.$ac_objext conftest.beam conftest.$ac_ext
30319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_dup2_works" >&5
30320 $as_echo "$gl_cv_func_dup2_works" >&6; }
30321 case "$gl_cv_func_dup2_works" in
30325 for ac_func in setdtablesize
30327 ac_fn_c_check_func "$LINENO" "setdtablesize" "ac_cv_func_setdtablesize"
30328 if test "x$ac_cv_func_setdtablesize" = xyes; then :
30329 cat >>confdefs.h <<_ACEOF
30330 #define HAVE_SETDTABLESIZE 1
30349 if test $ac_cv_func_fchdir = no; then
30353 if test $HAVE_FCHDIR = 0; then
30354 if test $HAVE_DUP2 = 1; then
30360 if test $HAVE_DUP2 = 0 || test $REPLACE_DUP2 = 1; then
30369 gl_LIBOBJS="$gl_LIBOBJS dup2.$ac_objext"
30384 $as_echo "#define GNULIB_TEST_DUP2 1" >>confdefs.h
30400 $as_echo "#define GNULIB_TEST_ENVIRON 1" >>confdefs.h
30406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for error_at_line" >&5
30407 $as_echo_n "checking for error_at_line... " >&6; }
30408 if ${ac_cv_lib_error_at_line+:} false; then :
30409 $as_echo_n "(cached) " >&6
30411 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30412 /* end confdefs.h. */
30417 error_at_line (0, 0, "", 0, "an error occurred");
30422 if ac_fn_c_try_link "$LINENO"; then :
30423 ac_cv_lib_error_at_line=yes
30425 ac_cv_lib_error_at_line=no
30427 rm -f core conftest.err conftest.$ac_objext \
30428 conftest$ac_exeext conftest.$ac_ext
30430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_error_at_line" >&5
30431 $as_echo "$ac_cv_lib_error_at_line" >&6; }
30433 if test $ac_cv_lib_error_at_line = no; then
30442 gl_LIBOBJS="$gl_LIBOBJS error.$ac_objext"
30451 XGETTEXT_EXTRA_OPTIONS="$XGETTEXT_EXTRA_OPTIONS --flag=error:3:c-format"
30455 XGETTEXT_EXTRA_OPTIONS="$XGETTEXT_EXTRA_OPTIONS --flag=error_at_line:5:c-format"
30469 if test $ac_cv_have_decl_fchdir = no; then
30474 if test $HAVE_FCHDIR = 0; then
30483 gl_LIBOBJS="$gl_LIBOBJS fchdir.$ac_objext"
30487 $as_echo "#define REPLACE_FCHDIR 1" >>confdefs.h
30489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether open can visit directories" >&5
30490 $as_echo_n "checking whether open can visit directories... " >&6; }
30491 if ${gl_cv_func_open_directory_works+:} false; then :
30492 $as_echo_n "(cached) " >&6
30494 if test "$cross_compiling" = yes; then :
30496 # Guess yes on glibc systems.
30497 *-gnu*) gl_cv_func_open_directory_works="guessing yes" ;;
30498 # If we don't know, assume the worst.
30499 *) gl_cv_func_open_directory_works="guessing no" ;;
30503 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30504 /* end confdefs.h. */
30510 return open(".", O_RDONLY) < 0;
30515 if ac_fn_c_try_run "$LINENO"; then :
30516 gl_cv_func_open_directory_works=yes
30518 gl_cv_func_open_directory_works=no
30520 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
30521 conftest.$ac_objext conftest.beam conftest.$ac_ext
30525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_open_directory_works" >&5
30526 $as_echo "$gl_cv_func_open_directory_works" >&6; }
30527 case "$gl_cv_func_open_directory_works" in
30531 $as_echo "#define REPLACE_OPEN_DIRECTORY 1" >>confdefs.h
30548 $as_echo "#define GNULIB_TEST_FCHDIR 1" >>confdefs.h
30563 if test $ac_cv_func_fcntl = no; then
30573 if test $ac_cv_func_fcntl = no; then
30580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fcntl handles F_DUPFD correctly" >&5
30581 $as_echo_n "checking whether fcntl handles F_DUPFD correctly... " >&6; }
30582 if ${gl_cv_func_fcntl_f_dupfd_works+:} false; then :
30583 $as_echo_n "(cached) " >&6
30585 if test "$cross_compiling" = yes; then :
30586 # Guess that it works on glibc systems
30587 case $host_os in #((
30588 *-gnu*) gl_cv_func_fcntl_f_dupfd_works="guessing yes";;
30589 *) gl_cv_func_fcntl_f_dupfd_works="guessing no";;
30592 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30593 /* end confdefs.h. */
30602 if (fcntl (0, F_DUPFD, -1) != -1) result |= 1;
30603 if (errno != EINVAL) result |= 2;
30610 if ac_fn_c_try_run "$LINENO"; then :
30611 gl_cv_func_fcntl_f_dupfd_works=yes
30613 gl_cv_func_fcntl_f_dupfd_works=no
30615 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
30616 conftest.$ac_objext conftest.beam conftest.$ac_ext
30620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_fcntl_f_dupfd_works" >&5
30621 $as_echo "$gl_cv_func_fcntl_f_dupfd_works" >&6; }
30622 case $gl_cv_func_fcntl_f_dupfd_works in
30633 if test $ac_cv_func_fcntl = no; then
30640 $as_echo "#define FCNTL_DUPFD_BUGGY 1" >>confdefs.h
30644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fcntl understands F_DUPFD_CLOEXEC" >&5
30645 $as_echo_n "checking whether fcntl understands F_DUPFD_CLOEXEC... " >&6; }
30646 if ${gl_cv_func_fcntl_f_dupfd_cloexec+:} false; then :
30647 $as_echo_n "(cached) " >&6
30649 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30650 /* end confdefs.h. */
30653 #ifndef F_DUPFD_CLOEXEC
30665 if ac_fn_c_try_compile "$LINENO"; then :
30666 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30667 /* end confdefs.h. */
30670 /* The Linux kernel only added F_DUPFD_CLOEXEC in 2.6.24, so we always replace
30671 it to support the semantics on older kernels that failed with EINVAL. */
30683 if ac_fn_c_try_compile "$LINENO"; then :
30684 gl_cv_func_fcntl_f_dupfd_cloexec=yes
30686 gl_cv_func_fcntl_f_dupfd_cloexec="needs runtime check"
30688 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30690 gl_cv_func_fcntl_f_dupfd_cloexec=no
30692 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_fcntl_f_dupfd_cloexec" >&5
30695 $as_echo "$gl_cv_func_fcntl_f_dupfd_cloexec" >&6; }
30696 if test "$gl_cv_func_fcntl_f_dupfd_cloexec" != yes; then
30706 if test $ac_cv_func_fcntl = no; then
30724 if test $ac_cv_func_fchdir = no; then
30728 if test $HAVE_FCHDIR = 0; then
30738 if test $ac_cv_func_fcntl = no; then
30747 if test $HAVE_FCNTL = 0 || test $REPLACE_FCNTL = 1; then
30756 gl_LIBOBJS="$gl_LIBOBJS fcntl.$ac_objext"
30770 $as_echo "#define GNULIB_TEST_FCNTL 1" >>confdefs.h
30785 if test $gl_cv_have_include_next = yes; then
30786 gl_cv_next_fcntl_h='<'fcntl.h'>'
30788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <fcntl.h>" >&5
30789 $as_echo_n "checking absolute name of <fcntl.h>... " >&6; }
30790 if ${gl_cv_next_fcntl_h+:} false; then :
30791 $as_echo_n "(cached) " >&6
30796 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30797 /* end confdefs.h. */
30801 aix*) gl_absname_cpp="$ac_cpp -C" ;;
30802 *) gl_absname_cpp="$ac_cpp" ;;
30807 gl_dirsep_regex='[/\\]'
30810 gl_dirsep_regex='\/'
30813 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
30814 gl_header_literal_regex=`echo 'fcntl.h' \
30815 | sed -e "$gl_make_literal_regex_sed"`
30816 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
30817 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
30823 gl_cv_absolute_fcntl_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
30824 sed -n "$gl_absolute_header_sed"`
30826 gl_header=$gl_cv_absolute_fcntl_h
30827 gl_cv_next_fcntl_h='"'$gl_header'"'
30831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_fcntl_h" >&5
30832 $as_echo "$gl_cv_next_fcntl_h" >&6; }
30834 NEXT_FCNTL_H=$gl_cv_next_fcntl_h
30836 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
30837 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
30838 gl_next_as_first_directive='<'fcntl.h'>'
30840 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
30841 gl_next_as_first_directive=$gl_cv_next_fcntl_h
30843 NEXT_AS_FIRST_DIRECTIVE_FCNTL_H=$gl_next_as_first_directive
30854 for gl_func in fcntl openat; do
30855 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
30856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
30857 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
30858 if eval \${$as_gl_Symbol+:} false; then :
30859 $as_echo_n "(cached) " >&6
30861 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30862 /* end confdefs.h. */
30874 if ac_fn_c_try_compile "$LINENO"; then :
30875 eval "$as_gl_Symbol=yes"
30877 eval "$as_gl_Symbol=no"
30879 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30881 eval ac_res=\$$as_gl_Symbol
30882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
30883 $as_echo "$ac_res" >&6; }
30884 if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
30885 cat >>confdefs.h <<_ACEOF
30886 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
30889 eval ac_cv_have_decl_$gl_func=yes
30899 ac_fn_c_check_decl "$LINENO" "fdopendir" "ac_cv_have_decl_fdopendir" "
30900 #include <dirent.h>
30903 if test "x$ac_cv_have_decl_fdopendir" = xyes; then :
30909 cat >>confdefs.h <<_ACEOF
30910 #define HAVE_DECL_FDOPENDIR $ac_have_decl
30912 if test $ac_have_decl = 1; then :
30915 HAVE_DECL_FDOPENDIR=0
30925 if test $ac_cv_func_fdopendir = no; then
30928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fdopendir works" >&5
30929 $as_echo_n "checking whether fdopendir works... " >&6; }
30930 if ${gl_cv_func_fdopendir_works+:} false; then :
30931 $as_echo_n "(cached) " >&6
30933 if test "$cross_compiling" = yes; then :
30935 # Guess yes on glibc systems.
30936 *-gnu*) gl_cv_func_fdopendir_works="guessing yes" ;;
30937 # If we don't know, assume the worst.
30938 *) gl_cv_func_fdopendir_works="guessing no" ;;
30942 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30943 /* end confdefs.h. */
30945 #include <dirent.h>
30947 #include <unistd.h>
30948 #if !HAVE_DECL_FDOPENDIR
30950 # ifdef __cplusplus
30953 DIR *fdopendir (int);
30960 int fd = open ("conftest.c", O_RDONLY);
30961 if (fd < 0) result |= 1;
30962 if (fdopendir (fd)) result |= 2;
30963 if (close (fd)) result |= 4;
30969 if ac_fn_c_try_run "$LINENO"; then :
30970 gl_cv_func_fdopendir_works=yes
30972 gl_cv_func_fdopendir_works=no
30974 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
30975 conftest.$ac_objext conftest.beam conftest.$ac_ext
30979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_fdopendir_works" >&5
30980 $as_echo "$gl_cv_func_fdopendir_works" >&6; }
30981 case "$gl_cv_func_fdopendir_works" in
30984 REPLACE_FDOPENDIR=1
30989 if test $HAVE_FDOPENDIR = 0 || test $REPLACE_FDOPENDIR = 1; then
30998 gl_LIBOBJS="$gl_LIBOBJS fdopendir.$ac_objext"
31012 $as_echo "#define GNULIB_TEST_FDOPENDIR 1" >>confdefs.h
31018 cat >>confdefs.h <<_ACEOF
31019 #define GNULIB_FDOPENDIR 1
31036 REPLACE_FLOAT_LDBL=0
31038 aix* | beos* | openbsd* | mirbsd* | irix*)
31042 case "$host_cpu" in
31047 # On x86_64 systems, the C compiler may still be generating
31049 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31050 /* end confdefs.h. */
31051 #if defined __LP64__ || defined __x86_64__ || defined __amd64__
31055 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31056 $EGREP "yes" >/dev/null 2>&1; then :
31067 case "$host_cpu" in
31075 aix* | freebsd* | linux*)
31076 if test -n "$FLOAT_H"; then
31077 REPLACE_FLOAT_LDBL=1
31083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether conversion from 'int' to 'long double' works" >&5
31084 $as_echo_n "checking whether conversion from 'int' to 'long double' works... " >&6; }
31085 if ${gl_cv_func_itold_works+:} false; then :
31086 $as_echo_n "(cached) " >&6
31089 if test "$cross_compiling" = yes; then :
31092 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31093 /* end confdefs.h. */
31094 #if defined __LP64__ || defined __arch64__
31098 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31099 $EGREP "yes" >/dev/null 2>&1; then :
31100 gl_cv_func_itold_works="guessing no"
31102 gl_cv_func_itold_works="guessing yes"
31107 *) gl_cv_func_itold_works="guessing yes" ;;
31111 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31112 /* end confdefs.h. */
31115 volatile long double ld;
31124 if ac_fn_c_try_run "$LINENO"; then :
31125 gl_cv_func_itold_works=yes
31127 gl_cv_func_itold_works=no
31129 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
31130 conftest.$ac_objext conftest.beam conftest.$ac_ext
31135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_itold_works" >&5
31136 $as_echo "$gl_cv_func_itold_works" >&6; }
31137 case "$gl_cv_func_itold_works" in
31144 if test -n "$FLOAT_H"; then
31153 if test $gl_cv_have_include_next = yes; then
31154 gl_cv_next_float_h='<'float.h'>'
31156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <float.h>" >&5
31157 $as_echo_n "checking absolute name of <float.h>... " >&6; }
31158 if ${gl_cv_next_float_h+:} false; then :
31159 $as_echo_n "(cached) " >&6
31164 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31165 /* end confdefs.h. */
31169 aix*) gl_absname_cpp="$ac_cpp -C" ;;
31170 *) gl_absname_cpp="$ac_cpp" ;;
31175 gl_dirsep_regex='[/\\]'
31178 gl_dirsep_regex='\/'
31181 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
31182 gl_header_literal_regex=`echo 'float.h' \
31183 | sed -e "$gl_make_literal_regex_sed"`
31184 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
31185 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
31191 gl_cv_absolute_float_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
31192 sed -n "$gl_absolute_header_sed"`
31194 gl_header=$gl_cv_absolute_float_h
31195 gl_cv_next_float_h='"'$gl_header'"'
31199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_float_h" >&5
31200 $as_echo "$gl_cv_next_float_h" >&6; }
31202 NEXT_FLOAT_H=$gl_cv_next_float_h
31204 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
31205 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
31206 gl_next_as_first_directive='<'float.h'>'
31208 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
31209 gl_next_as_first_directive=$gl_cv_next_float_h
31211 NEXT_AS_FIRST_DIRECTIVE_FLOAT_H=$gl_next_as_first_directive
31218 if test -n "$FLOAT_H"; then
31219 GL_GENERATE_FLOAT_H_TRUE=
31220 GL_GENERATE_FLOAT_H_FALSE='#'
31222 GL_GENERATE_FLOAT_H_TRUE='#'
31223 GL_GENERATE_FLOAT_H_FALSE=
31228 if test $REPLACE_FLOAT_LDBL = 1; then
31237 gl_LIBOBJS="$gl_LIBOBJS float.$ac_objext"
31240 if test $REPLACE_ITOLD = 1; then
31249 gl_LIBOBJS="$gl_LIBOBJS itold.$ac_objext"
31261 if test $ac_cv_func_flock = no; then
31265 if test $HAVE_FLOCK = 0; then
31274 gl_LIBOBJS="$gl_LIBOBJS flock.$ac_objext"
31292 ac_fn_c_check_member "$LINENO" "struct flock" "l_type" "ac_cv_member_struct_flock_l_type" "#include <fcntl.h>
31294 if test "x$ac_cv_member_struct_flock_l_type" = xyes; then :
31296 cat >>confdefs.h <<_ACEOF
31297 #define HAVE_STRUCT_FLOCK_L_TYPE 1
31321 gl_fnmatch_required_lowercase=`
31322 echo $gl_fnmatch_required | LC_ALL=C tr '[A-Z]' '[a-z]'
31324 gl_fnmatch_cache_var="gl_cv_func_fnmatch_${gl_fnmatch_required_lowercase}"
31325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working $gl_fnmatch_required fnmatch" >&5
31326 $as_echo_n "checking for working $gl_fnmatch_required fnmatch... " >&6; }
31327 if eval \${$gl_fnmatch_cache_var+:} false; then :
31328 $as_echo_n "(cached) " >&6
31330 if test $gl_fnmatch_required = GNU; then
31331 gl_fnmatch_gnu_start=
31332 gl_fnmatch_gnu_end=
31334 gl_fnmatch_gnu_start='#if 0'
31335 gl_fnmatch_gnu_end='#endif'
31337 if test "$cross_compiling" = yes; then :
31338 eval "$gl_fnmatch_cache_var=\"guessing no\""
31340 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31341 /* end confdefs.h. */
31342 #include <fnmatch.h>
31344 y (char const *pattern, char const *string, int flags)
31346 return fnmatch (pattern, string, flags) == 0;
31349 n (char const *pattern, char const *string, int flags)
31351 return fnmatch (pattern, string, flags) == FNM_NOMATCH;
31357 char const *Apat = 'A' < '\\\\' ? "[A-\\\\\\\\]" : "[\\\\\\\\-A]";
31358 char const *apat = 'a' < '\\\\' ? "[a-\\\\\\\\]" : "[\\\\\\\\-a]";
31359 static char const A_1[] = { 'A' - 1, 0 };
31360 static char const A01[] = { 'A' + 1, 0 };
31361 static char const a_1[] = { 'a' - 1, 0 };
31362 static char const a01[] = { 'a' + 1, 0 };
31363 static char const bs_1[] = { '\\\\' - 1, 0 };
31364 static char const bs01[] = { '\\\\' + 1, 0 };
31366 if (!n ("a*", "", 0))
31368 if (!y ("a*", "abc", 0))
31370 if (!y ("[/b", "[/b", 0)) /*"]]"*/ /* glibc Bugzilla bug 12378 */
31372 if (!n ("d*/*1", "d/s/1", FNM_PATHNAME))
31374 if (!y ("a\\\\bc", "abc", 0))
31376 if (!n ("a\\\\bc", "abc", FNM_NOESCAPE))
31378 if (!y ("*x", ".x", 0))
31380 if (!n ("*x", ".x", FNM_PERIOD))
31382 if (!y (Apat, "\\\\", 0))
31384 if (!y (Apat, "A", 0))
31386 if (!y (apat, "\\\\", 0))
31388 if (!y (apat, "a", 0))
31390 if (!(n (Apat, A_1, 0) == ('A' < '\\\\')))
31392 if (!(n (apat, a_1, 0) == ('a' < '\\\\')))
31394 if (!(y (Apat, A01, 0) == ('A' < '\\\\')))
31396 if (!(y (apat, a01, 0) == ('a' < '\\\\')))
31398 if (!(y (Apat, bs_1, 0) == ('A' < '\\\\')))
31400 if (!(y (apat, bs_1, 0) == ('a' < '\\\\')))
31402 if (!(n (Apat, bs01, 0) == ('A' < '\\\\')))
31404 if (!(n (apat, bs01, 0) == ('a' < '\\\\')))
31406 $gl_fnmatch_gnu_start
31407 if (!y ("xxXX", "xXxX", FNM_CASEFOLD))
31409 if (!y ("a++(x|yy)b", "a+xyyyyxb", FNM_EXTMATCH))
31411 if (!n ("d*/*1", "d/s/1", FNM_FILE_NAME))
31413 if (!y ("*", "x", FNM_FILE_NAME | FNM_LEADING_DIR))
31415 if (!y ("x*", "x/y/z", FNM_FILE_NAME | FNM_LEADING_DIR))
31417 if (!y ("*c*", "c/x", FNM_FILE_NAME | FNM_LEADING_DIR))
31419 $gl_fnmatch_gnu_end
31426 if ac_fn_c_try_run "$LINENO"; then :
31427 eval "$gl_fnmatch_cache_var=yes"
31429 eval "$gl_fnmatch_cache_var=no"
31431 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
31432 conftest.$ac_objext conftest.beam conftest.$ac_ext
31437 eval ac_res=\$$gl_fnmatch_cache_var
31438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
31439 $as_echo "$ac_res" >&6; }
31440 eval "gl_fnmatch_result=\"\$$gl_fnmatch_cache_var\""
31441 if test "$gl_fnmatch_result" = yes; then
31442 rm -f "$gl_source_base/fnmatch.h"
31444 FNMATCH_H=fnmatch.h
31447 if test -n "$FNMATCH_H"; then
31448 GL_GENERATE_FNMATCH_H_TRUE=
31449 GL_GENERATE_FNMATCH_H_FALSE='#'
31451 GL_GENERATE_FNMATCH_H_TRUE='#'
31452 GL_GENERATE_FNMATCH_H_FALSE=
31456 if test -n "$FNMATCH_H"; then
31465 gl_LIBOBJS="$gl_LIBOBJS fnmatch.$ac_objext"
31469 cat >>confdefs.h <<_ACEOF
31470 #define fnmatch ${gl_fnmatch_required_lowercase}_fnmatch
31474 ac_fn_c_check_decl "$LINENO" "isblank" "ac_cv_have_decl_isblank" "#include <ctype.h>
31476 if test "x$ac_cv_have_decl_isblank" = xyes; then :
31482 cat >>confdefs.h <<_ACEOF
31483 #define HAVE_DECL_ISBLANK $ac_have_decl
31528 if test -n "$FNMATCH_H"; then
31537 gl_LIBOBJS="$gl_LIBOBJS fnmatch.$ac_objext"
31541 cat >>confdefs.h <<_ACEOF
31542 #define fnmatch ${gl_fnmatch_required_lowercase}_fnmatch
31546 ac_fn_c_check_decl "$LINENO" "isblank" "ac_cv_have_decl_isblank" "#include <ctype.h>
31548 if test "x$ac_cv_have_decl_isblank" = xyes; then :
31554 cat >>confdefs.h <<_ACEOF
31555 #define HAVE_DECL_ISBLANK $ac_have_decl
31599 if test $HAVE_MSVC_INVALID_PARAMETER_HANDLER = 1; then
31604 if test $WINDOWS_64_BIT_ST_SIZE = 1; then
31618 if test $ac_cv_func_fchdir = no; then
31622 if test $HAVE_FCHDIR = 0; then
31623 case "$gl_cv_func_open_directory_works" in
31632 if test $REPLACE_FSTAT = 1; then
31641 gl_LIBOBJS="$gl_LIBOBJS fstat.$ac_objext"
31656 $as_echo "#define GNULIB_TEST_FSTAT 1" >>confdefs.h
31672 if test $ac_cv_func_fstatat = no; then
31675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fstatat (..., 0) works" >&5
31676 $as_echo_n "checking whether fstatat (..., 0) works... " >&6; }
31677 if ${gl_cv_func_fstatat_zero_flag+:} false; then :
31678 $as_echo_n "(cached) " >&6
31680 if test "$cross_compiling" = yes; then :
31682 aix*) gl_cv_func_fstatat_zero_flag="guessing no";;
31683 *) gl_cv_func_fstatat_zero_flag="guessing yes";;
31687 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31688 /* end confdefs.h. */
31691 #include <sys/stat.h>
31696 return fstatat (AT_FDCWD, ".", &a, 0) != 0;
31700 if ac_fn_c_try_run "$LINENO"; then :
31701 gl_cv_func_fstatat_zero_flag=yes
31703 gl_cv_func_fstatat_zero_flag=no
31705 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
31706 conftest.$ac_objext conftest.beam conftest.$ac_ext
31711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_fstatat_zero_flag" >&5
31712 $as_echo "$gl_cv_func_fstatat_zero_flag" >&6; }
31714 case $gl_cv_func_fstatat_zero_flag+$gl_cv_func_lstat_dereferences_slashed_symlink in
31716 *) REPLACE_FSTATAT=1
31717 case $gl_cv_func_fstatat_zero_flag in
31720 $as_echo "#define HAVE_WORKING_FSTATAT_ZERO_FLAG 1" >>confdefs.h
31728 if test $HAVE_FSTATAT = 0 || test $REPLACE_FSTATAT = 1; then
31737 gl_LIBOBJS="$gl_LIBOBJS fstatat.$ac_objext"
31751 $as_echo "#define GNULIB_TEST_FSTATAT 1" >>confdefs.h
31765 if test $ac_cv_func_futimens = no; then
31768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether futimens works" >&5
31769 $as_echo_n "checking whether futimens works... " >&6; }
31770 if ${gl_cv_func_futimens_works+:} false; then :
31771 $as_echo_n "(cached) " >&6
31773 if test "$cross_compiling" = yes; then :
31774 gl_cv_func_futimens_works="guessing no"
31776 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31777 /* end confdefs.h. */
31780 #include <sys/stat.h>
31781 #include <unistd.h>
31787 struct timespec ts[2] = { { 1, UTIME_OMIT }, { 1, UTIME_NOW } };
31788 int fd = creat ("conftest.file", 0600);
31790 if (fd < 0) return 1;
31792 if (futimens (AT_FDCWD, NULL) == 0) return 2;
31793 if (errno != EBADF) return 3;
31794 if (futimens (fd, ts)) return 4;
31796 ts[0].tv_nsec = UTIME_NOW;
31797 ts[1].tv_nsec = UTIME_OMIT;
31798 if (futimens (fd, ts)) return 5;
31799 if (fstat (fd, &st)) return 6;
31800 if (st.st_ctime < st.st_atime) return 7;
31806 if ac_fn_c_try_run "$LINENO"; then :
31807 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31808 /* end confdefs.h. */
31811 /* The Linux kernel added futimens in 2.6.22, but has bugs with UTIME_OMIT
31812 in several file systems as recently as 2.6.32. Always replace futimens
31813 to support older kernels. */
31825 if ac_fn_c_try_compile "$LINENO"; then :
31826 gl_cv_func_futimens_works=yes
31828 gl_cv_func_futimens_works="needs runtime check"
31830 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31832 gl_cv_func_futimens_works=no
31834 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
31835 conftest.$ac_objext conftest.beam conftest.$ac_ext
31838 rm -f conftest.file
31840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_futimens_works" >&5
31841 $as_echo "$gl_cv_func_futimens_works" >&6; }
31842 if test "$gl_cv_func_futimens_works" != yes; then
31847 if test $HAVE_FUTIMENS = 0 || test $REPLACE_FUTIMENS = 1; then
31856 gl_LIBOBJS="$gl_LIBOBJS futimens.$ac_objext"
31870 $as_echo "#define GNULIB_TEST_FUTIMENS 1" >>confdefs.h
31882 gl_cv_func_getcwd_path_max=yes
31902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getcwd handles long file names properly" >&5
31903 $as_echo_n "checking whether getcwd handles long file names properly... " >&6; }
31904 if ${gl_cv_func_getcwd_path_max+:} false; then :
31905 $as_echo_n "(cached) " >&6
31907 # Arrange for deletion of the temporary directory this test creates.
31908 ac_clean_files="$ac_clean_files confdir3"
31909 if test "$cross_compiling" = yes; then :
31911 aix*) gl_cv_func_getcwd_path_max='no, it has the AIX bug';;
31912 *) gl_cv_func_getcwd_path_max=no;;
31915 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31916 /* end confdefs.h. */
31919 #include <stdlib.h>
31921 # include <unistd.h>
31923 # include <direct.h>
31925 #include <string.h>
31926 #include <limits.h>
31927 #include <sys/stat.h>
31928 #include <sys/types.h>
31932 /* Arrange to define PATH_MAX, like "pathmax.h" does. */
31934 # include <unistd.h>
31936 #include <limits.h>
31937 #if defined HAVE_SYS_PARAM_H && !defined PATH_MAX && !defined MAXPATHLEN
31938 # include <sys/param.h>
31940 #if !defined PATH_MAX && defined MAXPATHLEN
31941 # define PATH_MAX MAXPATHLEN
31945 # define PATH_MAX 1024
31947 #if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
31949 # define PATH_MAX 260
31954 # define AT_FDCWD 0
31956 #ifdef ENAMETOOLONG
31957 # define is_ENAMETOOLONG(x) ((x) == ENAMETOOLONG)
31959 # define is_ENAMETOOLONG(x) 0
31962 /* Use the getcwd function, not any macro. */
31965 /* Don't get link errors because mkdir is redefined to rpl_mkdir. */
31969 # define S_IRWXU 0700
31972 /* The length of this name must be 8. */
31973 #define DIR_NAME "confdir3"
31974 #define DIR_NAME_LEN 8
31975 #define DIR_NAME_SIZE (DIR_NAME_LEN + 1)
31977 /* The length of "../". */
31978 #define DOTDOTSLASH_LEN 3
31980 /* Leftover bytes in the buffer, to work around library or OS bugs. */
31981 #define BUF_SLOP 20
31987 /* The Hurd doesn't define this, so getcwd can't exhibit the bug --
31988 at least not on a local file system. And if we were to start worrying
31989 about remote file systems, we'd have to enable the wrapper function
31990 all of the time, just to be safe. That's not worth the cost. */
31992 #elif ((INT_MAX / (DIR_NAME_SIZE / DOTDOTSLASH_LEN + 1) \
31993 - DIR_NAME_SIZE - BUF_SLOP) \
31995 /* FIXME: Assuming there's a system for which this is true,
31996 this should be done in a compile test. */
31999 char buf[PATH_MAX * (DIR_NAME_SIZE / DOTDOTSLASH_LEN + 1)
32000 + DIR_NAME_SIZE + BUF_SLOP];
32001 char *cwd = getcwd (buf, PATH_MAX);
32002 size_t initial_cwd_len;
32005 size_t n_chdirs = 0;
32010 cwd_len = initial_cwd_len = strlen (cwd);
32014 size_t dotdot_max = PATH_MAX * (DIR_NAME_SIZE / DOTDOTSLASH_LEN);
32017 cwd_len += DIR_NAME_SIZE;
32018 /* If mkdir or chdir fails, it could be that this system cannot create
32019 any file with an absolute name longer than PATH_MAX, such as cygwin.
32020 If so, leave fail as 0, because the current working directory can't
32021 be too long for getcwd if it can't even be created. For other
32022 errors, be pessimistic and consider that as a failure, too. */
32023 if (mkdir (DIR_NAME, S_IRWXU) < 0 || chdir (DIR_NAME) < 0)
32025 if (! (errno == ERANGE || is_ENAMETOOLONG (errno)))
32030 if (PATH_MAX <= cwd_len && cwd_len < PATH_MAX + DIR_NAME_SIZE)
32032 c = getcwd (buf, PATH_MAX);
32033 if (!c && errno == ENOENT)
32043 if (! (errno == ERANGE || is_ENAMETOOLONG (errno)))
32050 if (dotdot_max <= cwd_len - initial_cwd_len)
32052 if (dotdot_max + DIR_NAME_SIZE < cwd_len - initial_cwd_len)
32054 c = getcwd (buf, cwd_len + 1);
32057 if (! (errno == ERANGE || errno == ENOENT
32058 || is_ENAMETOOLONG (errno)))
32063 if (AT_FDCWD || errno == ERANGE || errno == ENOENT)
32071 if (c && strlen (c) != cwd_len)
32079 /* Leaving behind such a deep directory is not polite.
32080 So clean up here, right away, even though the driving
32081 shell script would also clean up. */
32085 /* Try rmdir first, in case the chdir failed. */
32087 for (i = 0; i <= n_chdirs; i++)
32089 if (chdir ("..") < 0)
32091 if (rmdir (DIR_NAME) != 0)
32101 if ac_fn_c_try_run "$LINENO"; then :
32102 gl_cv_func_getcwd_path_max=yes
32105 10|11|12) gl_cv_func_getcwd_path_max='no, but it is partly working';;
32106 31) gl_cv_func_getcwd_path_max='no, it has the AIX bug';;
32107 *) gl_cv_func_getcwd_path_max=no;;
32110 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
32111 conftest.$ac_objext conftest.beam conftest.$ac_ext
32116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getcwd_path_max" >&5
32117 $as_echo "$gl_cv_func_getcwd_path_max" >&6; }
32119 case "$gl_cv_func_getcwd_null" in
32137 for ac_func in getpagesize
32139 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
32140 if test "x$ac_cv_func_getpagesize" = xyes; then :
32141 cat >>confdefs.h <<_ACEOF
32142 #define HAVE_GETPAGESIZE 1
32148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getcwd aborts when 4k < cwd_length < 16k" >&5
32149 $as_echo_n "checking whether getcwd aborts when 4k < cwd_length < 16k... " >&6; }
32150 if ${gl_cv_func_getcwd_abort_bug+:} false; then :
32151 $as_echo_n "(cached) " >&6
32153 # Remove any remnants of a previous test.
32154 rm -rf confdir-14B---
32155 # Arrange for deletion of the temporary directory this test creates.
32156 ac_clean_files="$ac_clean_files confdir-14B---"
32157 if test "$cross_compiling" = yes; then :
32158 gl_cv_func_getcwd_abort_bug=yes
32160 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32161 /* end confdefs.h. */
32164 #include <stdlib.h>
32166 # include <unistd.h>
32167 #else /* on Windows with MSVC */
32168 # include <direct.h>
32170 #include <string.h>
32171 #include <sys/stat.h>
32174 /* Arrange to define PATH_MAX, like "pathmax.h" does. */
32176 # include <unistd.h>
32178 #include <limits.h>
32179 #if defined HAVE_SYS_PARAM_H && !defined PATH_MAX && !defined MAXPATHLEN
32180 # include <sys/param.h>
32182 #if !defined PATH_MAX && defined MAXPATHLEN
32183 # define PATH_MAX MAXPATHLEN
32187 # define PATH_MAX 1024
32189 #if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
32191 # define PATH_MAX 260
32195 /* Don't get link errors because mkdir is redefined to rpl_mkdir. */
32199 # define S_IRWXU 0700
32202 /* FIXME: skip the run-test altogether on systems without getpagesize. */
32203 #if ! HAVE_GETPAGESIZE
32204 # define getpagesize() 0
32207 /* This size is chosen to be larger than PATH_MAX (4k), yet smaller than
32208 the 16kB pagesize on ia64 linux. Those conditions make the code below
32209 trigger a bug in glibc's getcwd implementation before 2.4.90-10. */
32210 #define TARGET_LEN (5 * 1024)
32216 size_t initial_cwd_len;
32219 /* The bug is triggered when PATH_MAX < getpagesize (), so skip
32220 this relatively expensive and invasive test if that's not true. */
32222 int bug_possible = PATH_MAX < getpagesize ();
32224 int bug_possible = 0;
32226 if (! bug_possible)
32229 cwd = getcwd (NULL, 0);
32233 initial_cwd_len = strlen (cwd);
32238 static char const dir_name[] = "confdir-14B---";
32239 size_t desired_depth = ((TARGET_LEN - 1 - initial_cwd_len)
32240 / sizeof dir_name);
32242 for (d = 0; d < desired_depth; d++)
32244 if (mkdir (dir_name, S_IRWXU) < 0 || chdir (dir_name) < 0)
32246 if (! (errno == ERANGE || errno == ENAMETOOLONG
32247 || errno == ENOENT))
32248 fail = 3; /* Unable to construct deep hierarchy. */
32253 /* If libc has the bug in question, this invocation of getcwd
32254 results in a failed assertion. */
32255 cwd = getcwd (NULL, 0);
32257 fail = 4; /* getcwd didn't assert, but it failed for a long name
32258 where the answer could have been learned. */
32261 /* Call rmdir first, in case the above chdir failed. */
32265 if (chdir ("..") < 0)
32278 if ac_fn_c_try_run "$LINENO"; then :
32279 gl_cv_func_getcwd_abort_bug=no
32282 if test $ret -ge 128 || test $ret = 4; then
32283 gl_cv_func_getcwd_abort_bug=yes
32285 gl_cv_func_getcwd_abort_bug=no
32288 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
32289 conftest.$ac_objext conftest.beam conftest.$ac_ext
32294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getcwd_abort_bug" >&5
32295 $as_echo "$gl_cv_func_getcwd_abort_bug" >&6; }
32296 if test $gl_cv_func_getcwd_abort_bug = yes; then :
32304 case "$gl_cv_func_getcwd_path_max" in
32305 "no"|"no, it has the AIX bug") ;;
32308 $as_echo "#define HAVE_MINIMALLY_WORKING_GETCWD 1" >>confdefs.h
32312 case "$gl_cv_func_getcwd_path_max" in
32313 "no, but it is partly working")
32315 $as_echo "#define HAVE_PARTLY_WORKING_GETCWD 1" >>confdefs.h
32320 if { case "$gl_cv_func_getcwd_null" in *yes) false;; *) true;; esac; } \
32321 || test $gl_cv_func_getcwd_posix_signature != yes \
32322 || test "$gl_cv_func_getcwd_path_max" != yes \
32323 || test $gl_abort_bug = yes; then
32327 if test $REPLACE_GETCWD = 1; then
32336 gl_LIBOBJS="$gl_LIBOBJS getcwd.$ac_objext"
32346 cat >>confdefs.h <<_ACEOF
32347 #define GNULIB_GETCWD 1
32362 $as_echo "#define GNULIB_TEST_GETCWD 1" >>confdefs.h
32371 case $gl_cv_func_getcwd_null,$gl_cv_func_getcwd_posix_signature in
32378 if test $REPLACE_GETCWD = 1; then
32387 gl_LIBOBJS="$gl_LIBOBJS getcwd-lgpl.$ac_objext"
32401 $as_echo "#define GNULIB_TEST_GETCWD 1" >>confdefs.h
32425 if test $ac_cv_func_getdelim = yes; then
32427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working getdelim function" >&5
32428 $as_echo_n "checking for working getdelim function... " >&6; }
32429 if ${gl_cv_func_working_getdelim+:} false; then :
32430 $as_echo_n "(cached) " >&6
32432 echo fooNbarN | tr -d '\012' | tr N '\012' > conftest.data
32433 if test "$cross_compiling" = yes; then :
32434 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32435 /* end confdefs.h. */
32437 #include <features.h>
32438 #ifdef __GNU_LIBRARY__
32439 #if (__GLIBC__ >= 2) && !defined __UCLIBC__
32445 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
32446 $EGREP "Lucky GNU user" >/dev/null 2>&1; then :
32447 gl_cv_func_working_getdelim="guessing yes"
32449 gl_cv_func_working_getdelim="guessing no"
32455 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32456 /* end confdefs.h. */
32458 # include <stdio.h>
32459 # include <stdlib.h>
32460 # include <string.h>
32463 FILE *in = fopen ("./conftest.data", "r");
32467 /* Test result for a NULL buffer and a zero size.
32468 Based on a test program from Karl Heuer. */
32471 int len = getdelim (&line, &siz, '\n', in);
32472 if (!(len == 4 && line && strcmp (line, "foo\n") == 0))
32476 /* Test result for a NULL buffer and a non-zero size.
32477 This crashes on FreeBSD 8.0. */
32479 size_t siz = (size_t)(~0) / 4;
32480 if (getdelim (&line, &siz, '\n', in) == -1)
32487 if ac_fn_c_try_run "$LINENO"; then :
32488 gl_cv_func_working_getdelim=yes
32490 gl_cv_func_working_getdelim=no
32492 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
32493 conftest.$ac_objext conftest.beam conftest.$ac_ext
32497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_working_getdelim" >&5
32498 $as_echo "$gl_cv_func_working_getdelim" >&6; }
32499 case "$gl_cv_func_working_getdelim" in
32508 if test $ac_cv_have_decl_getdelim = no; then
32509 HAVE_DECL_GETDELIM=0
32512 if test $HAVE_GETDELIM = 0 || test $REPLACE_GETDELIM = 1; then
32521 gl_LIBOBJS="$gl_LIBOBJS getdelim.$ac_objext"
32524 for ac_func in flockfile funlockfile
32526 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
32527 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
32528 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
32529 cat >>confdefs.h <<_ACEOF
32530 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
32536 ac_fn_c_check_decl "$LINENO" "getc_unlocked" "ac_cv_have_decl_getc_unlocked" "$ac_includes_default"
32537 if test "x$ac_cv_have_decl_getc_unlocked" = xyes; then :
32543 cat >>confdefs.h <<_ACEOF
32544 #define HAVE_DECL_GETC_UNLOCKED $ac_have_decl
32560 $as_echo "#define GNULIB_TEST_GETDELIM 1" >>confdefs.h
32574 if test $ac_cv_func_getdtablesize = yes; then
32575 # Cygwin 1.7.25 automatically increases the RLIMIT_NOFILE soft limit
32576 # up to an unchangeable hard limit; all other platforms correctly
32577 # require setrlimit before getdtablesize() can report a larger value.
32578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getdtablesize works" >&5
32579 $as_echo_n "checking whether getdtablesize works... " >&6; }
32580 if ${gl_cv_func_getdtablesize_works+:} false; then :
32581 $as_echo_n "(cached) " >&6
32583 if test "$cross_compiling" = yes; then :
32585 cygwin*) # on cygwin 1.5.25, getdtablesize() automatically grows
32586 gl_cv_func_getdtablesize_works="guessing no" ;;
32587 *) gl_cv_func_getdtablesize_works="guessing yes" ;;
32590 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32591 /* end confdefs.h. */
32593 #include <unistd.h>
32597 int size = getdtablesize();
32598 if (dup2 (0, getdtablesize()) != -1)
32600 if (size != getdtablesize())
32607 if ac_fn_c_try_run "$LINENO"; then :
32608 gl_cv_func_getdtablesize_works=yes
32610 gl_cv_func_getdtablesize_works=no
32612 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
32613 conftest.$ac_objext conftest.beam conftest.$ac_ext
32618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getdtablesize_works" >&5
32619 $as_echo "$gl_cv_func_getdtablesize_works" >&6; }
32620 case "$gl_cv_func_getdtablesize_works" in
32622 *) REPLACE_GETDTABLESIZE=1 ;;
32625 HAVE_GETDTABLESIZE=0
32628 if test $HAVE_GETDTABLESIZE = 0 || test $REPLACE_GETDTABLESIZE = 1; then
32637 gl_LIBOBJS="$gl_LIBOBJS getdtablesize.$ac_objext"
32646 GNULIB_GETDTABLESIZE=1
32652 $as_echo "#define GNULIB_TEST_GETDTABLESIZE 1" >>confdefs.h
32669 gl_getline_needs_run_time_check=no
32670 ac_fn_c_check_func "$LINENO" "getline" "ac_cv_func_getline"
32671 if test "x$ac_cv_func_getline" = xyes; then :
32672 gl_getline_needs_run_time_check=yes
32674 am_cv_func_working_getline=no
32677 if test $gl_getline_needs_run_time_check = yes; then
32678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working getline function" >&5
32679 $as_echo_n "checking for working getline function... " >&6; }
32680 if ${am_cv_func_working_getline+:} false; then :
32681 $as_echo_n "(cached) " >&6
32683 echo fooNbarN | tr -d '\012' | tr N '\012' > conftest.data
32684 if test "$cross_compiling" = yes; then :
32685 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32686 /* end confdefs.h. */
32688 #include <features.h>
32689 #ifdef __GNU_LIBRARY__
32690 #if (__GLIBC__ >= 2) && !defined __UCLIBC__
32696 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
32697 $EGREP "Lucky GNU user" >/dev/null 2>&1; then :
32698 am_cv_func_working_getline="guessing yes"
32700 am_cv_func_working_getline="guessing no"
32706 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32707 /* end confdefs.h. */
32709 # include <stdio.h>
32710 # include <stdlib.h>
32711 # include <string.h>
32714 FILE *in = fopen ("./conftest.data", "r");
32718 /* Test result for a NULL buffer and a zero size.
32719 Based on a test program from Karl Heuer. */
32722 int len = getline (&line, &siz, in);
32723 if (!(len == 4 && line && strcmp (line, "foo\n") == 0))
32727 /* Test result for a NULL buffer and a non-zero size.
32728 This crashes on FreeBSD 8.0. */
32730 size_t siz = (size_t)(~0) / 4;
32731 if (getline (&line, &siz, in) == -1)
32738 if ac_fn_c_try_run "$LINENO"; then :
32739 am_cv_func_working_getline=yes
32741 am_cv_func_working_getline=no
32743 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
32744 conftest.$ac_objext conftest.beam conftest.$ac_ext
32748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_working_getline" >&5
32749 $as_echo "$am_cv_func_working_getline" >&6; }
32752 if test $ac_cv_have_decl_getline = no; then
32753 HAVE_DECL_GETLINE=0
32756 case "$am_cv_func_working_getline" in
32762 if test $REPLACE_GETLINE = 1; then
32771 gl_LIBOBJS="$gl_LIBOBJS getline.$ac_objext"
32788 $as_echo "#define GNULIB_TEST_GETLINE 1" >>confdefs.h
32804 if test $ac_cv_have_decl_getlogin_r = no; then
32805 HAVE_DECL_GETLOGIN_R=0
32815 if test $ac_cv_func_getlogin_r = no; then
32820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getlogin_r works with small buffers" >&5
32821 $as_echo_n "checking whether getlogin_r works with small buffers... " >&6; }
32822 if ${gl_cv_func_getlogin_r_works+:} false; then :
32823 $as_echo_n "(cached) " >&6
32827 # Guess no on OSF/1.
32828 osf*) gl_cv_func_getlogin_r_works="guessing no" ;;
32829 # Guess yes otherwise.
32830 *) gl_cv_func_getlogin_r_works="guessing yes" ;;
32832 if test "$cross_compiling" = yes; then :
32835 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32836 /* end confdefs.h. */
32838 #include <stddef.h>
32839 #include <unistd.h>
32840 #if !HAVE_DECL_GETLOGIN_R
32842 # ifdef __cplusplus
32845 int getlogin_r (char *, size_t);
32853 if (getlogin_r (buf, 0) == 0)
32855 if (getlogin_r (buf, 1) == 0)
32860 if ac_fn_c_try_run "$LINENO"; then :
32861 gl_cv_func_getlogin_r_works=yes
32864 16 | 17) gl_cv_func_getlogin_r_works=no ;;
32868 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
32869 conftest.$ac_objext conftest.beam conftest.$ac_ext
32874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getlogin_r_works" >&5
32875 $as_echo "$gl_cv_func_getlogin_r_works" >&6; }
32876 case "$gl_cv_func_getlogin_r_works" in
32878 *) REPLACE_GETLOGIN_R=1 ;;
32882 if test $HAVE_GETLOGIN_R = 0 || test $REPLACE_GETLOGIN_R = 1; then
32891 gl_LIBOBJS="$gl_LIBOBJS getlogin_r.$ac_objext"
32908 GNULIB_GETLOGIN_R=1
32914 $as_echo "#define GNULIB_TEST_GETLOGIN_R 1" >>confdefs.h
32923 if test $REPLACE_GETOPT = 1; then
32932 gl_LIBOBJS="$gl_LIBOBJS getopt.$ac_objext"
32942 gl_LIBOBJS="$gl_LIBOBJS getopt1.$ac_objext"
32953 GNULIB_GL_UNISTD_H_GETOPT=1
32958 $as_echo "#define GNULIB_TEST_GETOPT_GNU 1" >>confdefs.h
32968 if test $REPLACE_GETOPT = 1; then
32972 $as_echo "#define __GETOPT_PREFIX rpl_" >>confdefs.h
32978 if test $REPLACE_GETOPT = 1; then
32987 gl_LIBOBJS="$gl_LIBOBJS getopt.$ac_objext"
32997 gl_LIBOBJS="$gl_LIBOBJS getopt1.$ac_objext"
33008 GNULIB_GL_UNISTD_H_GETOPT=1
33040 gl_gettimeofday_timezone=void
33041 if test $ac_cv_func_gettimeofday != yes; then
33042 HAVE_GETTIMEOFDAY=0
33047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gettimeofday clobbers localtime buffer" >&5
33048 $as_echo_n "checking whether gettimeofday clobbers localtime buffer... " >&6; }
33049 if ${gl_cv_func_gettimeofday_clobber+:} false; then :
33050 $as_echo_n "(cached) " >&6
33052 if test "$cross_compiling" = yes; then :
33053 # When cross-compiling:
33055 # Guess all is fine on glibc systems.
33056 *-gnu*) gl_cv_func_gettimeofday_clobber="guessing no" ;;
33057 # If we don't know, assume the worst.
33058 *) gl_cv_func_gettimeofday_clobber="guessing yes" ;;
33062 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33063 /* end confdefs.h. */
33064 #include <string.h>
33065 #include <sys/time.h>
33067 #include <stdlib.h>
33075 struct tm saved_lt;
33077 lt = localtime (&t);
33079 gettimeofday (&tv, NULL);
33080 return memcmp (lt, &saved_lt, sizeof (struct tm)) != 0;
33086 if ac_fn_c_try_run "$LINENO"; then :
33087 gl_cv_func_gettimeofday_clobber=no
33089 gl_cv_func_gettimeofday_clobber=yes
33091 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
33092 conftest.$ac_objext conftest.beam conftest.$ac_ext
33096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_gettimeofday_clobber" >&5
33097 $as_echo "$gl_cv_func_gettimeofday_clobber" >&6; }
33099 case "$gl_cv_func_gettimeofday_clobber" in
33101 REPLACE_GETTIMEOFDAY=1
33104 REPLACE_LOCALTIME=1
33107 $as_echo "#define GETTIMEOFDAY_CLOBBERS_LOCALTIME 1" >>confdefs.h
33112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gettimeofday with POSIX signature" >&5
33113 $as_echo_n "checking for gettimeofday with POSIX signature... " >&6; }
33114 if ${gl_cv_func_gettimeofday_posix_signature+:} false; then :
33115 $as_echo_n "(cached) " >&6
33117 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33118 /* end confdefs.h. */
33119 #include <sys/time.h>
33121 int gettimeofday (struct timeval *restrict, void *restrict);
33126 /* glibc uses struct timezone * rather than the POSIX void *
33127 if _GNU_SOURCE is defined. However, since the only portable
33128 use of gettimeofday uses NULL as the second parameter, and
33129 since the glibc definition is actually more typesafe, it is
33130 not worth wrapping this to get a compliant signature. */
33131 int (*f) (struct timeval *restrict, void *restrict)
33134 return !(x | c.tv_sec | c.tv_usec);
33140 if ac_fn_c_try_compile "$LINENO"; then :
33141 gl_cv_func_gettimeofday_posix_signature=yes
33143 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33144 /* end confdefs.h. */
33145 #include <sys/time.h>
33146 int gettimeofday (struct timeval *restrict, struct timezone *restrict);
33156 if ac_fn_c_try_compile "$LINENO"; then :
33157 gl_cv_func_gettimeofday_posix_signature=almost
33159 gl_cv_func_gettimeofday_posix_signature=no
33161 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33163 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_gettimeofday_posix_signature" >&5
33166 $as_echo "$gl_cv_func_gettimeofday_posix_signature" >&6; }
33167 if test $gl_cv_func_gettimeofday_posix_signature = almost; then
33168 gl_gettimeofday_timezone='struct timezone'
33169 elif test $gl_cv_func_gettimeofday_posix_signature != yes; then
33170 REPLACE_GETTIMEOFDAY=1
33172 if test $REPLACE_STRUCT_TIMEVAL = 1; then
33173 REPLACE_GETTIMEOFDAY=1
33178 cat >>confdefs.h <<_ACEOF
33179 #define GETTIMEOFDAY_TIMEZONE $gl_gettimeofday_timezone
33183 if test $HAVE_GETTIMEOFDAY = 0 || test $REPLACE_GETTIMEOFDAY = 1; then
33192 gl_LIBOBJS="$gl_LIBOBJS gettimeofday.$ac_objext"
33195 for ac_header in sys/timeb.h
33197 ac_fn_c_check_header_mongrel "$LINENO" "sys/timeb.h" "ac_cv_header_sys_timeb_h" "$ac_includes_default"
33198 if test "x$ac_cv_header_sys_timeb_h" = xyes; then :
33199 cat >>confdefs.h <<_ACEOF
33200 #define HAVE_SYS_TIMEB_H 1
33207 for ac_func in _ftime
33209 ac_fn_c_check_func "$LINENO" "_ftime" "ac_cv_func__ftime"
33210 if test "x$ac_cv_func__ftime" = xyes; then :
33211 cat >>confdefs.h <<_ACEOF
33212 #define HAVE__FTIME 1
33225 GNULIB_GETTIMEOFDAY=1
33231 $as_echo "#define GNULIB_TEST_GETTIMEOFDAY 1" >>confdefs.h
33236 for ac_header in glob.h
33238 ac_fn_c_check_header_mongrel "$LINENO" "glob.h" "ac_cv_header_glob_h" "$ac_includes_default"
33239 if test "x$ac_cv_header_glob_h" = xyes; then :
33240 cat >>confdefs.h <<_ACEOF
33241 #define HAVE_GLOB_H 1
33251 if test -z "$GLOB_H"; then
33252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU glob interface version 1" >&5
33253 $as_echo_n "checking for GNU glob interface version 1... " >&6; }
33254 if ${gl_cv_gnu_glob_interface_version_1+:} false; then :
33255 $as_echo_n "(cached) " >&6
33257 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33258 /* end confdefs.h. */
33259 #include <gnu-versions.h>
33260 char a[_GNU_GLOB_INTERFACE_VERSION == 1 ? 1 : -1];
33262 if ac_fn_c_try_compile "$LINENO"; then :
33263 gl_cv_gnu_glob_interface_version_1=yes
33265 gl_cv_gnu_glob_interface_version_1=no
33267 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_gnu_glob_interface_version_1" >&5
33270 $as_echo "$gl_cv_gnu_glob_interface_version_1" >&6; }
33272 if test "$gl_cv_gnu_glob_interface_version_1" = "no"; then
33277 if test -z "$GLOB_H"; then
33278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether glob lists broken symlinks" >&5
33279 $as_echo_n "checking whether glob lists broken symlinks... " >&6; }
33280 if ${gl_cv_glob_lists_symlinks+:} false; then :
33281 $as_echo_n "(cached) " >&6
33283 if ln -s conf-doesntexist conf$$-globtest 2>/dev/null; then
33284 gl_cv_glob_lists_symlinks=maybe
33286 # If we can't make a symlink, then we cannot test this issue. Be
33287 # pessimistic about this.
33288 gl_cv_glob_lists_symlinks=no
33291 if test $gl_cv_glob_lists_symlinks = maybe; then
33292 if test "$cross_compiling" = yes; then :
33293 gl_cv_glob_lists_symlinks=no
33295 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33296 /* end confdefs.h. */
33298 #include <stddef.h>
33304 if (glob ("conf*-globtest", 0, NULL, &found) == GLOB_NOMATCH) return 1;
33309 if ac_fn_c_try_run "$LINENO"; then :
33310 gl_cv_glob_lists_symlinks=yes
33312 gl_cv_glob_lists_symlinks=no
33314 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
33315 conftest.$ac_objext conftest.beam conftest.$ac_ext
33320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_glob_lists_symlinks" >&5
33321 $as_echo "$gl_cv_glob_lists_symlinks" >&6; }
33323 if test $gl_cv_glob_lists_symlinks = no; then
33328 rm -f conf$$-globtest
33331 if test -n "$GLOB_H"; then
33332 GL_GENERATE_GLOB_H_TRUE=
33333 GL_GENERATE_GLOB_H_FALSE='#'
33335 GL_GENERATE_GLOB_H_TRUE='#'
33336 GL_GENERATE_GLOB_H_FALSE=
33340 if test -n "$GLOB_H"; then
33349 gl_LIBOBJS="$gl_LIBOBJS glob.$ac_objext"
33361 if test $ac_cv_header_sys_cdefs_h = yes; then
33481 if test "$ac_cv_header_winsock2_h" = yes; then
33484 for ac_func in ioctl
33486 ac_fn_c_check_func "$LINENO" "ioctl" "ac_cv_func_ioctl"
33487 if test "x$ac_cv_func_ioctl" = xyes; then :
33488 cat >>confdefs.h <<_ACEOF
33489 #define HAVE_IOCTL 1
33495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ioctl with POSIX signature" >&5
33496 $as_echo_n "checking for ioctl with POSIX signature... " >&6; }
33497 if ${gl_cv_func_ioctl_posix_signature+:} false; then :
33498 $as_echo_n "(cached) " >&6
33500 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33501 /* end confdefs.h. */
33502 #include <sys/ioctl.h>
33510 int ioctl (int, int, ...);
33517 if ac_fn_c_try_compile "$LINENO"; then :
33518 gl_cv_func_ioctl_posix_signature=yes
33520 gl_cv_func_ioctl_posix_signature=no
33522 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_ioctl_posix_signature" >&5
33526 $as_echo "$gl_cv_func_ioctl_posix_signature" >&6; }
33527 if test $gl_cv_func_ioctl_posix_signature != yes; then
33532 if test $HAVE_IOCTL = 0 || test $REPLACE_IOCTL = 1; then
33541 gl_LIBOBJS="$gl_LIBOBJS ioctl.$ac_objext"
33555 $as_echo "#define GNULIB_TEST_IOCTL 1" >>confdefs.h
33579 if test $gl_cv_have_include_next = yes; then
33580 gl_cv_next_langinfo_h='<'langinfo.h'>'
33582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <langinfo.h>" >&5
33583 $as_echo_n "checking absolute name of <langinfo.h>... " >&6; }
33584 if ${gl_cv_next_langinfo_h+:} false; then :
33585 $as_echo_n "(cached) " >&6
33588 if test $ac_cv_header_langinfo_h = yes; then
33593 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33594 /* end confdefs.h. */
33595 #include <langinfo.h>
33598 aix*) gl_absname_cpp="$ac_cpp -C" ;;
33599 *) gl_absname_cpp="$ac_cpp" ;;
33604 gl_dirsep_regex='[/\\]'
33607 gl_dirsep_regex='\/'
33610 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
33611 gl_header_literal_regex=`echo 'langinfo.h' \
33612 | sed -e "$gl_make_literal_regex_sed"`
33613 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
33614 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
33620 gl_cv_absolute_langinfo_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
33621 sed -n "$gl_absolute_header_sed"`
33623 gl_header=$gl_cv_absolute_langinfo_h
33624 gl_cv_next_langinfo_h='"'$gl_header'"'
33626 gl_cv_next_langinfo_h='<'langinfo.h'>'
33631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_langinfo_h" >&5
33632 $as_echo "$gl_cv_next_langinfo_h" >&6; }
33634 NEXT_LANGINFO_H=$gl_cv_next_langinfo_h
33636 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
33637 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
33638 gl_next_as_first_directive='<'langinfo.h'>'
33640 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
33641 gl_next_as_first_directive=$gl_cv_next_langinfo_h
33643 NEXT_AS_FIRST_DIRECTIVE_LANGINFO_H=$gl_next_as_first_directive
33649 HAVE_LANGINFO_CODESET=0
33650 HAVE_LANGINFO_T_FMT_AMPM=0
33651 HAVE_LANGINFO_ERA=0
33652 HAVE_LANGINFO_YESEXPR=0
33660 if test $ac_cv_header_langinfo_h = yes; then
33662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether langinfo.h defines CODESET" >&5
33663 $as_echo_n "checking whether langinfo.h defines CODESET... " >&6; }
33664 if ${gl_cv_header_langinfo_codeset+:} false; then :
33665 $as_echo_n "(cached) " >&6
33667 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33668 /* end confdefs.h. */
33669 #include <langinfo.h>
33680 if ac_fn_c_try_compile "$LINENO"; then :
33681 gl_cv_header_langinfo_codeset=yes
33683 gl_cv_header_langinfo_codeset=no
33685 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_langinfo_codeset" >&5
33689 $as_echo "$gl_cv_header_langinfo_codeset" >&6; }
33690 if test $gl_cv_header_langinfo_codeset = yes; then
33691 HAVE_LANGINFO_CODESET=1
33693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether langinfo.h defines T_FMT_AMPM" >&5
33694 $as_echo_n "checking whether langinfo.h defines T_FMT_AMPM... " >&6; }
33695 if ${gl_cv_header_langinfo_t_fmt_ampm+:} false; then :
33696 $as_echo_n "(cached) " >&6
33698 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33699 /* end confdefs.h. */
33700 #include <langinfo.h>
33701 int a = T_FMT_AMPM;
33711 if ac_fn_c_try_compile "$LINENO"; then :
33712 gl_cv_header_langinfo_t_fmt_ampm=yes
33714 gl_cv_header_langinfo_t_fmt_ampm=no
33716 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_langinfo_t_fmt_ampm" >&5
33720 $as_echo "$gl_cv_header_langinfo_t_fmt_ampm" >&6; }
33721 if test $gl_cv_header_langinfo_t_fmt_ampm = yes; then
33722 HAVE_LANGINFO_T_FMT_AMPM=1
33724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether langinfo.h defines ERA" >&5
33725 $as_echo_n "checking whether langinfo.h defines ERA... " >&6; }
33726 if ${gl_cv_header_langinfo_era+:} false; then :
33727 $as_echo_n "(cached) " >&6
33729 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33730 /* end confdefs.h. */
33731 #include <langinfo.h>
33742 if ac_fn_c_try_compile "$LINENO"; then :
33743 gl_cv_header_langinfo_era=yes
33745 gl_cv_header_langinfo_era=no
33747 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_langinfo_era" >&5
33751 $as_echo "$gl_cv_header_langinfo_era" >&6; }
33752 if test $gl_cv_header_langinfo_era = yes; then
33753 HAVE_LANGINFO_ERA=1
33755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether langinfo.h defines YESEXPR" >&5
33756 $as_echo_n "checking whether langinfo.h defines YESEXPR... " >&6; }
33757 if ${gl_cv_header_langinfo_yesexpr+:} false; then :
33758 $as_echo_n "(cached) " >&6
33760 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33761 /* end confdefs.h. */
33762 #include <langinfo.h>
33773 if ac_fn_c_try_compile "$LINENO"; then :
33774 gl_cv_header_langinfo_yesexpr=yes
33776 gl_cv_header_langinfo_yesexpr=no
33778 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_langinfo_yesexpr" >&5
33782 $as_echo "$gl_cv_header_langinfo_yesexpr" >&6; }
33783 if test $gl_cv_header_langinfo_yesexpr = yes; then
33784 HAVE_LANGINFO_YESEXPR=1
33796 for gl_func in nl_langinfo; do
33797 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
33798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
33799 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
33800 if eval \${$as_gl_Symbol+:} false; then :
33801 $as_echo_n "(cached) " >&6
33803 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33804 /* end confdefs.h. */
33805 #include <langinfo.h>
33816 if ac_fn_c_try_compile "$LINENO"; then :
33817 eval "$as_gl_Symbol=yes"
33819 eval "$as_gl_Symbol=no"
33821 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33823 eval ac_res=\$$as_gl_Symbol
33824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
33825 $as_echo "$ac_res" >&6; }
33826 if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
33827 cat >>confdefs.h <<_ACEOF
33828 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
33831 eval ac_cv_have_decl_$gl_func=yes
33838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler flag to ignore unused libraries" >&5
33839 $as_echo_n "checking for C compiler flag to ignore unused libraries... " >&6; }
33840 if ${gl_cv_prog_c_ignore_unused_libraries+:} false; then :
33841 $as_echo_n "(cached) " >&6
33843 gl_cv_prog_c_ignore_unused_libraries=none
33844 gl_saved_ldflags=$LDFLAGS
33845 gl_saved_libs=$LIBS
33846 # Link with -lm to detect binutils 2.16 bug with --as-needed; see
33847 # <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00131.html>.
33849 # Use long option sequences like '-z ignore' to test for the feature,
33850 # to forestall problems with linkers that have -z, -i, -g, -n, etc. flags.
33851 # GCC + binutils likes '-Wl,--as-needed'.
33852 # GCC + Solaris ld likes '-Wl,-z,ignore'.
33853 # Sun C likes '-Wl,-z,ignore'. '-z ignore' is accepted but has no effect.
33854 # Don't try bare '--as-needed'; nothing likes it and the HP-UX 11.11
33855 # native cc issues annoying warnings and then ignores it,
33856 # which would cause us to incorrectly conclude that it worked.
33857 for gl_flags in '-Wl,--as-needed' \
33862 LDFLAGS="$gl_flags $LDFLAGS"
33863 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33864 /* end confdefs.h. */
33874 if ac_fn_c_try_link "$LINENO"; then :
33875 gl_cv_prog_c_ignore_unused_libraries=$gl_flags
33877 rm -f core conftest.err conftest.$ac_objext \
33878 conftest$ac_exeext conftest.$ac_ext
33879 LDFLAGS=$gl_saved_ldflags
33880 test "$gl_cv_prog_c_ignore_unused_libraries" != none &&
33883 LIBS=$gl_saved_libs
33886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_prog_c_ignore_unused_libraries" >&5
33887 $as_echo "$gl_cv_prog_c_ignore_unused_libraries" >&6; }
33888 IGNORE_UNUSED_LIBRARIES_CFLAGS=
33889 if test "$gl_cv_prog_c_ignore_unused_libraries" != none; then
33890 IGNORE_UNUSED_LIBRARIES_CFLAGS="$gl_cv_prog_c_ignore_unused_libraries"
33908 LOCALCHARSET_TESTS_ENVIRONMENT="CHARSETALIASDIR=\"\$(abs_top_builddir)/$gl_source_base\""
33921 $as_echo "#define _LCONV_C99 1" >>confdefs.h
33926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether locale.h conforms to POSIX:2001" >&5
33927 $as_echo_n "checking whether locale.h conforms to POSIX:2001... " >&6; }
33928 if ${gl_cv_header_locale_h_posix2001+:} false; then :
33929 $as_echo_n "(cached) " >&6
33931 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33932 /* end confdefs.h. */
33933 #include <locale.h>
33934 int x = LC_MESSAGES;
33935 int y = sizeof (((struct lconv *) 0)->decimal_point);
33944 if ac_fn_c_try_compile "$LINENO"; then :
33945 gl_cv_header_locale_h_posix2001=yes
33947 gl_cv_header_locale_h_posix2001=no
33949 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_locale_h_posix2001" >&5
33952 $as_echo "$gl_cv_header_locale_h_posix2001" >&6; }
33961 if test $ac_cv_header_xlocale_h = yes; then
33963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether locale.h defines locale_t" >&5
33964 $as_echo_n "checking whether locale.h defines locale_t... " >&6; }
33965 if ${gl_cv_header_locale_has_locale_t+:} false; then :
33966 $as_echo_n "(cached) " >&6
33968 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33969 /* end confdefs.h. */
33970 #include <locale.h>
33980 if ac_fn_c_try_compile "$LINENO"; then :
33981 gl_cv_header_locale_has_locale_t=yes
33983 gl_cv_header_locale_has_locale_t=no
33985 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_locale_has_locale_t" >&5
33989 $as_echo "$gl_cv_header_locale_has_locale_t" >&6; }
33990 if test $gl_cv_header_locale_has_locale_t = yes; then
33991 gl_cv_header_locale_h_needs_xlocale_h=no
33993 gl_cv_header_locale_h_needs_xlocale_h=yes
33997 gl_cv_header_locale_h_needs_xlocale_h=no
34001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct lconv is properly defined" >&5
34002 $as_echo_n "checking whether struct lconv is properly defined... " >&6; }
34003 if ${gl_cv_sys_struct_lconv_ok+:} false; then :
34004 $as_echo_n "(cached) " >&6
34006 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34007 /* end confdefs.h. */
34008 #include <locale.h>
34010 int x = sizeof (l.decimal_point);
34011 int y = sizeof (l.int_p_cs_precedes);
34020 if ac_fn_c_try_compile "$LINENO"; then :
34021 gl_cv_sys_struct_lconv_ok=yes
34023 gl_cv_sys_struct_lconv_ok=no
34025 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_lconv_ok" >&5
34029 $as_echo "$gl_cv_sys_struct_lconv_ok" >&6; }
34030 if test $gl_cv_sys_struct_lconv_ok = no; then
34031 REPLACE_STRUCT_LCONV=1
34042 if test $gl_cv_have_include_next = yes; then
34043 gl_cv_next_locale_h='<'locale.h'>'
34045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <locale.h>" >&5
34046 $as_echo_n "checking absolute name of <locale.h>... " >&6; }
34047 if ${gl_cv_next_locale_h+:} false; then :
34048 $as_echo_n "(cached) " >&6
34053 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34054 /* end confdefs.h. */
34055 #include <locale.h>
34058 aix*) gl_absname_cpp="$ac_cpp -C" ;;
34059 *) gl_absname_cpp="$ac_cpp" ;;
34064 gl_dirsep_regex='[/\\]'
34067 gl_dirsep_regex='\/'
34070 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
34071 gl_header_literal_regex=`echo 'locale.h' \
34072 | sed -e "$gl_make_literal_regex_sed"`
34073 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
34074 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
34080 gl_cv_absolute_locale_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
34081 sed -n "$gl_absolute_header_sed"`
34083 gl_header=$gl_cv_absolute_locale_h
34084 gl_cv_next_locale_h='"'$gl_header'"'
34088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_locale_h" >&5
34089 $as_echo "$gl_cv_next_locale_h" >&6; }
34091 NEXT_LOCALE_H=$gl_cv_next_locale_h
34093 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
34094 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
34095 gl_next_as_first_directive='<'locale.h'>'
34097 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
34098 gl_next_as_first_directive=$gl_cv_next_locale_h
34100 NEXT_AS_FIRST_DIRECTIVE_LOCALE_H=$gl_next_as_first_directive
34107 for gl_func in setlocale duplocale; do
34108 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
34109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
34110 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
34111 if eval \${$as_gl_Symbol+:} false; then :
34112 $as_echo_n "(cached) " >&6
34114 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34115 /* end confdefs.h. */
34116 #include <locale.h>
34117 /* Some systems provide declarations in a non-standard header. */
34119 # include <xlocale.h>
34131 if ac_fn_c_try_compile "$LINENO"; then :
34132 eval "$as_gl_Symbol=yes"
34134 eval "$as_gl_Symbol=no"
34136 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34138 eval ac_res=\$$as_gl_Symbol
34139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
34140 $as_echo "$ac_res" >&6; }
34141 if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
34142 cat >>confdefs.h <<_ACEOF
34143 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
34146 eval ac_cv_have_decl_$gl_func=yes
34155 if test $REPLACE_STRUCT_LCONV = 1; then
34156 REPLACE_LOCALECONV=1
34159 if test $REPLACE_LOCALECONV = 1; then
34168 gl_LIBOBJS="$gl_LIBOBJS localeconv.$ac_objext"
34171 ac_fn_c_check_member "$LINENO" "struct lconv" "decimal_point" "ac_cv_member_struct_lconv_decimal_point" "#include <locale.h>
34173 if test "x$ac_cv_member_struct_lconv_decimal_point" = xyes; then :
34175 cat >>confdefs.h <<_ACEOF
34176 #define HAVE_STRUCT_LCONV_DECIMAL_POINT 1
34189 GNULIB_LOCALECONV=1
34195 $as_echo "#define GNULIB_TEST_LOCALECONV 1" >>confdefs.h
34201 if test "$gl_threads_api" = posix; then
34202 # OSF/1 4.0 and Mac OS X 10.1 lack the pthread_rwlock_t type and the
34203 # pthread_rwlock_* functions.
34204 ac_fn_c_check_type "$LINENO" "pthread_rwlock_t" "ac_cv_type_pthread_rwlock_t" "#include <pthread.h>
34206 if test "x$ac_cv_type_pthread_rwlock_t" = xyes; then :
34208 $as_echo "#define HAVE_PTHREAD_RWLOCK 1" >>confdefs.h
34212 # glibc defines PTHREAD_MUTEX_RECURSIVE as enum, not as a macro.
34213 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34214 /* end confdefs.h. */
34216 #include <pthread.h>
34221 #if __FreeBSD__ == 4
34222 error "No, in FreeBSD 4.0 recursive mutexes actually don't work."
34223 #elif (defined __ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__ \
34224 && __ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__ < 1070)
34225 error "No, in Mac OS X < 10.7 recursive mutexes actually don't work."
34227 int x = (int)PTHREAD_MUTEX_RECURSIVE;
34235 if ac_fn_c_try_compile "$LINENO"; then :
34237 $as_echo "#define HAVE_PTHREAD_MUTEX_RECURSIVE 1" >>confdefs.h
34240 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34246 cat >>confdefs.h <<_ACEOF
34247 #define GNULIB_LOCK 1
34260 if test $ac_cv_func_lstat = yes; then
34262 case "$gl_cv_func_lstat_dereferences_slashed_symlink" in
34271 if test $REPLACE_LSTAT = 1; then
34280 gl_LIBOBJS="$gl_LIBOBJS lstat.$ac_objext"
34295 $as_echo "#define GNULIB_TEST_LSTAT 1" >>confdefs.h
34302 for ac_header in stdlib.h
34304 ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
34305 if test "x$ac_cv_header_stdlib_h" = xyes; then :
34306 cat >>confdefs.h <<_ACEOF
34307 #define HAVE_STDLIB_H 1
34314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible malloc" >&5
34315 $as_echo_n "checking for GNU libc compatible malloc... " >&6; }
34316 if ${ac_cv_func_malloc_0_nonnull+:} false; then :
34317 $as_echo_n "(cached) " >&6
34319 if test "$cross_compiling" = yes; then :
34321 # Guess yes on platforms where we know the result.
34322 *-gnu* | freebsd* | netbsd* | openbsd* \
34323 | hpux* | solaris* | cygwin* | mingw*)
34324 ac_cv_func_malloc_0_nonnull=yes ;;
34325 # If we don't know, assume the worst.
34326 *) ac_cv_func_malloc_0_nonnull=no ;;
34330 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34331 /* end confdefs.h. */
34332 #if defined STDC_HEADERS || defined HAVE_STDLIB_H
34333 # include <stdlib.h>
34341 return ! malloc (0);
34347 if ac_fn_c_try_run "$LINENO"; then :
34348 ac_cv_func_malloc_0_nonnull=yes
34350 ac_cv_func_malloc_0_nonnull=no
34352 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
34353 conftest.$ac_objext conftest.beam conftest.$ac_ext
34358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_malloc_0_nonnull" >&5
34359 $as_echo "$ac_cv_func_malloc_0_nonnull" >&6; }
34360 if test $ac_cv_func_malloc_0_nonnull = yes; then :
34362 $as_echo "#define HAVE_MALLOC_GNU 1" >>confdefs.h
34365 $as_echo "#define HAVE_MALLOC_GNU 0" >>confdefs.h
34372 if test $REPLACE_MALLOC = 1; then
34381 gl_LIBOBJS="$gl_LIBOBJS malloc.$ac_objext"
34386 cat >>confdefs.h <<_ACEOF
34387 #define GNULIB_MALLOC_GNU 1
34394 if test $gl_cv_func_malloc_posix = yes; then
34396 $as_echo "#define HAVE_MALLOC_POSIX 1" >>confdefs.h
34402 if test $REPLACE_MALLOC = 1; then
34411 gl_LIBOBJS="$gl_LIBOBJS malloc.$ac_objext"
34419 GNULIB_MALLOC_POSIX=1
34425 $as_echo "#define GNULIB_TEST_MALLOC_POSIX 1" >>confdefs.h
34455 if test $ac_cv_func_mbsinit = yes && test $ac_cv_func_mbrtowc = yes; then
34459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc handles incomplete characters" >&5
34460 $as_echo_n "checking whether mbrtowc handles incomplete characters... " >&6; }
34461 if ${gl_cv_func_mbrtowc_incomplete_state+:} false; then :
34462 $as_echo_n "(cached) " >&6
34466 # Guess no on AIX and OSF/1.
34467 aix* | osf*) gl_cv_func_mbrtowc_incomplete_state="guessing no" ;;
34468 # Guess yes otherwise.
34469 *) gl_cv_func_mbrtowc_incomplete_state="guessing yes" ;;
34471 if test $LOCALE_JA != none; then
34472 if test "$cross_compiling" = yes; then :
34475 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34476 /* end confdefs.h. */
34478 #include <locale.h>
34479 #include <string.h>
34480 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
34482 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
34483 included before <wchar.h>. */
34484 #include <stddef.h>
34490 if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
34492 const char input[] = "B\217\253\344\217\251\316er"; /* "Büßer" */
34496 memset (&state, '\0', sizeof (mbstate_t));
34497 if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
34498 if (mbsinit (&state))
34504 if ac_fn_c_try_run "$LINENO"; then :
34505 gl_cv_func_mbrtowc_incomplete_state=yes
34507 gl_cv_func_mbrtowc_incomplete_state=no
34509 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
34510 conftest.$ac_objext conftest.beam conftest.$ac_ext
34516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_incomplete_state" >&5
34517 $as_echo "$gl_cv_func_mbrtowc_incomplete_state" >&6; }
34522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc works as well as mbtowc" >&5
34523 $as_echo_n "checking whether mbrtowc works as well as mbtowc... " >&6; }
34524 if ${gl_cv_func_mbrtowc_sanitycheck+:} false; then :
34525 $as_echo_n "(cached) " >&6
34529 # Guess no on Solaris 8.
34530 solaris2.8) gl_cv_func_mbrtowc_sanitycheck="guessing no" ;;
34531 # Guess yes otherwise.
34532 *) gl_cv_func_mbrtowc_sanitycheck="guessing yes" ;;
34534 if test $LOCALE_ZH_CN != none; then
34535 if test "$cross_compiling" = yes; then :
34538 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34539 /* end confdefs.h. */
34541 #include <locale.h>
34542 #include <stdlib.h>
34543 #include <string.h>
34544 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
34546 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
34547 included before <wchar.h>. */
34548 #include <stddef.h>
34554 /* This fails on Solaris 8:
34555 mbrtowc returns 2, and sets wc to 0x00F0.
34556 mbtowc returns 4 (correct) and sets wc to 0x5EDC. */
34557 if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
34559 char input[] = "B\250\271\201\060\211\070er"; /* "Büßer" */
34563 memset (&state, '\0', sizeof (mbstate_t));
34564 if (mbrtowc (&wc, input + 3, 6, &state) != 4
34565 && mbtowc (&wc, input + 3, 6) == 4)
34571 if ac_fn_c_try_run "$LINENO"; then :
34572 gl_cv_func_mbrtowc_sanitycheck=yes
34574 gl_cv_func_mbrtowc_sanitycheck=no
34576 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
34577 conftest.$ac_objext conftest.beam conftest.$ac_ext
34583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_sanitycheck" >&5
34584 $as_echo "$gl_cv_func_mbrtowc_sanitycheck" >&6; }
34586 REPLACE_MBSTATE_T=0
34587 case "$gl_cv_func_mbrtowc_incomplete_state" in
34589 *) REPLACE_MBSTATE_T=1 ;;
34591 case "$gl_cv_func_mbrtowc_sanitycheck" in
34593 *) REPLACE_MBSTATE_T=1 ;;
34596 REPLACE_MBSTATE_T=1
34607 if test $ac_cv_func_mbrtowc = no; then
34609 ac_fn_c_check_decl "$LINENO" "mbrtowc" "ac_cv_have_decl_mbrtowc" "
34610 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
34612 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
34613 included before <wchar.h>. */
34614 #include <stddef.h>
34620 if test "x$ac_cv_have_decl_mbrtowc" = xyes; then :
34626 cat >>confdefs.h <<_ACEOF
34627 #define HAVE_DECL_MBRTOWC $ac_have_decl
34630 if test $ac_cv_have_decl_mbrtowc = yes; then
34634 if test $REPLACE_MBSTATE_T = 1; then
34640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc handles a NULL pwc argument" >&5
34641 $as_echo_n "checking whether mbrtowc handles a NULL pwc argument... " >&6; }
34642 if ${gl_cv_func_mbrtowc_null_arg1+:} false; then :
34643 $as_echo_n "(cached) " >&6
34647 # Guess no on Solaris.
34648 solaris*) gl_cv_func_mbrtowc_null_arg1="guessing no" ;;
34649 # Guess yes otherwise.
34650 *) gl_cv_func_mbrtowc_null_arg1="guessing yes" ;;
34652 if test $LOCALE_FR_UTF8 != none; then
34653 if test "$cross_compiling" = yes; then :
34656 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34657 /* end confdefs.h. */
34659 #include <locale.h>
34660 #include <stdlib.h>
34661 #include <string.h>
34662 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
34664 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
34665 included before <wchar.h>. */
34666 #include <stddef.h>
34674 if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL)
34676 char input[] = "\303\237er";
34681 memset (&state, '\0', sizeof (mbstate_t));
34682 wc = (wchar_t) 0xBADFACE;
34683 ret = mbrtowc (&wc, input, 5, &state);
34686 if (!mbsinit (&state))
34689 memset (&state, '\0', sizeof (mbstate_t));
34690 ret = mbrtowc (NULL, input, 5, &state);
34691 if (ret != 2) /* Solaris 7 fails here: ret is -1. */
34693 if (!mbsinit (&state))
34699 if ac_fn_c_try_run "$LINENO"; then :
34700 gl_cv_func_mbrtowc_null_arg1=yes
34702 gl_cv_func_mbrtowc_null_arg1=no
34704 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
34705 conftest.$ac_objext conftest.beam conftest.$ac_ext
34711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_null_arg1" >&5
34712 $as_echo "$gl_cv_func_mbrtowc_null_arg1" >&6; }
34717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc handles a NULL string argument" >&5
34718 $as_echo_n "checking whether mbrtowc handles a NULL string argument... " >&6; }
34719 if ${gl_cv_func_mbrtowc_null_arg2+:} false; then :
34720 $as_echo_n "(cached) " >&6
34724 # Guess no on OSF/1.
34725 osf*) gl_cv_func_mbrtowc_null_arg2="guessing no" ;;
34726 # Guess yes otherwise.
34727 *) gl_cv_func_mbrtowc_null_arg2="guessing yes" ;;
34729 if test $LOCALE_FR_UTF8 != none; then
34730 if test "$cross_compiling" = yes; then :
34733 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34734 /* end confdefs.h. */
34736 #include <locale.h>
34737 #include <string.h>
34738 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
34740 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
34741 included before <wchar.h>. */
34742 #include <stddef.h>
34748 if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL)
34754 memset (&state, '\0', sizeof (mbstate_t));
34755 wc = (wchar_t) 0xBADFACE;
34756 mbrtowc (&wc, NULL, 5, &state);
34757 /* Check that wc was not modified. */
34758 if (wc != (wchar_t) 0xBADFACE)
34764 if ac_fn_c_try_run "$LINENO"; then :
34765 gl_cv_func_mbrtowc_null_arg2=yes
34767 gl_cv_func_mbrtowc_null_arg2=no
34769 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
34770 conftest.$ac_objext conftest.beam conftest.$ac_ext
34776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_null_arg2" >&5
34777 $as_echo "$gl_cv_func_mbrtowc_null_arg2" >&6; }
34784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc has a correct return value" >&5
34785 $as_echo_n "checking whether mbrtowc has a correct return value... " >&6; }
34786 if ${gl_cv_func_mbrtowc_retval+:} false; then :
34787 $as_echo_n "(cached) " >&6
34791 # Guess no on HP-UX, Solaris, native Windows.
34792 hpux* | solaris* | mingw*) gl_cv_func_mbrtowc_retval="guessing no" ;;
34793 # Guess yes otherwise.
34794 *) gl_cv_func_mbrtowc_retval="guessing yes" ;;
34796 if test $LOCALE_FR_UTF8 != none || test $LOCALE_JA != none \
34797 || { case "$host_os" in mingw*) true;; *) false;; esac; }; then
34798 if test "$cross_compiling" = yes; then :
34801 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34802 /* end confdefs.h. */
34804 #include <locale.h>
34805 #include <string.h>
34806 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
34808 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
34809 included before <wchar.h>. */
34810 #include <stddef.h>
34817 int found_some_locale = 0;
34818 /* This fails on Solaris. */
34819 if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL)
34821 char input[] = "B\303\274\303\237er"; /* "Büßer" */
34825 memset (&state, '\0', sizeof (mbstate_t));
34826 if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
34829 if (mbrtowc (&wc, input + 2, 5, &state) != 1)
34832 found_some_locale = 1;
34834 /* This fails on HP-UX 11.11. */
34835 if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
34837 char input[] = "B\217\253\344\217\251\316er"; /* "Büßer" */
34841 memset (&state, '\0', sizeof (mbstate_t));
34842 if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
34845 if (mbrtowc (&wc, input + 2, 5, &state) != 2)
34848 found_some_locale = 1;
34850 /* This fails on native Windows. */
34851 if (setlocale (LC_ALL, "Japanese_Japan.932") != NULL)
34853 char input[] = "<\223\372\226\173\214\352>"; /* "<日本語>" */
34857 memset (&state, '\0', sizeof (mbstate_t));
34858 if (mbrtowc (&wc, input + 3, 1, &state) == (size_t)(-2))
34861 if (mbrtowc (&wc, input + 4, 4, &state) != 1)
34864 found_some_locale = 1;
34866 if (setlocale (LC_ALL, "Chinese_Taiwan.950") != NULL)
34868 char input[] = "<\244\351\245\273\273\171>"; /* "<日本語>" */
34872 memset (&state, '\0', sizeof (mbstate_t));
34873 if (mbrtowc (&wc, input + 3, 1, &state) == (size_t)(-2))
34876 if (mbrtowc (&wc, input + 4, 4, &state) != 1)
34879 found_some_locale = 1;
34881 if (setlocale (LC_ALL, "Chinese_China.936") != NULL)
34883 char input[] = "<\310\325\261\276\325\132>"; /* "<日本語>" */
34887 memset (&state, '\0', sizeof (mbstate_t));
34888 if (mbrtowc (&wc, input + 3, 1, &state) == (size_t)(-2))
34891 if (mbrtowc (&wc, input + 4, 4, &state) != 1)
34894 found_some_locale = 1;
34896 return (found_some_locale ? result : 77);
34899 if ac_fn_c_try_run "$LINENO"; then :
34900 gl_cv_func_mbrtowc_retval=yes
34902 if test $? != 77; then
34903 gl_cv_func_mbrtowc_retval=no
34907 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
34908 conftest.$ac_objext conftest.beam conftest.$ac_ext
34914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_retval" >&5
34915 $as_echo "$gl_cv_func_mbrtowc_retval" >&6; }
34920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc returns 0 when parsing a NUL character" >&5
34921 $as_echo_n "checking whether mbrtowc returns 0 when parsing a NUL character... " >&6; }
34922 if ${gl_cv_func_mbrtowc_nul_retval+:} false; then :
34923 $as_echo_n "(cached) " >&6
34927 # Guess no on Solaris 8 and 9.
34928 solaris2.[89]) gl_cv_func_mbrtowc_nul_retval="guessing no" ;;
34929 # Guess yes otherwise.
34930 *) gl_cv_func_mbrtowc_nul_retval="guessing yes" ;;
34932 if test $LOCALE_ZH_CN != none; then
34933 if test "$cross_compiling" = yes; then :
34936 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34937 /* end confdefs.h. */
34939 #include <locale.h>
34940 #include <string.h>
34941 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
34943 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
34944 included before <wchar.h>. */
34945 #include <stddef.h>
34951 /* This fails on Solaris 8 and 9. */
34952 if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
34957 memset (&state, '\0', sizeof (mbstate_t));
34958 if (mbrtowc (&wc, "", 1, &state) != 0)
34964 if ac_fn_c_try_run "$LINENO"; then :
34965 gl_cv_func_mbrtowc_nul_retval=yes
34967 gl_cv_func_mbrtowc_nul_retval=no
34969 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
34970 conftest.$ac_objext conftest.beam conftest.$ac_ext
34976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_nul_retval" >&5
34977 $as_echo "$gl_cv_func_mbrtowc_nul_retval" >&6; }
34979 case "$gl_cv_func_mbrtowc_null_arg1" in
34982 $as_echo "#define MBRTOWC_NULL_ARG1_BUG 1" >>confdefs.h
34987 case "$gl_cv_func_mbrtowc_null_arg2" in
34990 $as_echo "#define MBRTOWC_NULL_ARG2_BUG 1" >>confdefs.h
34995 case "$gl_cv_func_mbrtowc_retval" in
34998 $as_echo "#define MBRTOWC_RETVAL_BUG 1" >>confdefs.h
35003 case "$gl_cv_func_mbrtowc_nul_retval" in
35006 $as_echo "#define MBRTOWC_NUL_RETVAL_BUG 1" >>confdefs.h
35014 if test $HAVE_MBRTOWC = 0 || test $REPLACE_MBRTOWC = 1; then
35023 gl_LIBOBJS="$gl_LIBOBJS mbrtowc.$ac_objext"
35040 $as_echo "#define GNULIB_TEST_MBRTOWC 1" >>confdefs.h
35067 if test $ac_cv_func_mbsinit = yes && test $ac_cv_func_mbrtowc = yes; then
35071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc handles incomplete characters" >&5
35072 $as_echo_n "checking whether mbrtowc handles incomplete characters... " >&6; }
35073 if ${gl_cv_func_mbrtowc_incomplete_state+:} false; then :
35074 $as_echo_n "(cached) " >&6
35078 # Guess no on AIX and OSF/1.
35079 aix* | osf*) gl_cv_func_mbrtowc_incomplete_state="guessing no" ;;
35080 # Guess yes otherwise.
35081 *) gl_cv_func_mbrtowc_incomplete_state="guessing yes" ;;
35083 if test $LOCALE_JA != none; then
35084 if test "$cross_compiling" = yes; then :
35087 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35088 /* end confdefs.h. */
35090 #include <locale.h>
35091 #include <string.h>
35092 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
35094 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
35095 included before <wchar.h>. */
35096 #include <stddef.h>
35102 if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
35104 const char input[] = "B\217\253\344\217\251\316er"; /* "Büßer" */
35108 memset (&state, '\0', sizeof (mbstate_t));
35109 if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
35110 if (mbsinit (&state))
35116 if ac_fn_c_try_run "$LINENO"; then :
35117 gl_cv_func_mbrtowc_incomplete_state=yes
35119 gl_cv_func_mbrtowc_incomplete_state=no
35121 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
35122 conftest.$ac_objext conftest.beam conftest.$ac_ext
35128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_incomplete_state" >&5
35129 $as_echo "$gl_cv_func_mbrtowc_incomplete_state" >&6; }
35134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc works as well as mbtowc" >&5
35135 $as_echo_n "checking whether mbrtowc works as well as mbtowc... " >&6; }
35136 if ${gl_cv_func_mbrtowc_sanitycheck+:} false; then :
35137 $as_echo_n "(cached) " >&6
35141 # Guess no on Solaris 8.
35142 solaris2.8) gl_cv_func_mbrtowc_sanitycheck="guessing no" ;;
35143 # Guess yes otherwise.
35144 *) gl_cv_func_mbrtowc_sanitycheck="guessing yes" ;;
35146 if test $LOCALE_ZH_CN != none; then
35147 if test "$cross_compiling" = yes; then :
35150 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35151 /* end confdefs.h. */
35153 #include <locale.h>
35154 #include <stdlib.h>
35155 #include <string.h>
35156 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
35158 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
35159 included before <wchar.h>. */
35160 #include <stddef.h>
35166 /* This fails on Solaris 8:
35167 mbrtowc returns 2, and sets wc to 0x00F0.
35168 mbtowc returns 4 (correct) and sets wc to 0x5EDC. */
35169 if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
35171 char input[] = "B\250\271\201\060\211\070er"; /* "Büßer" */
35175 memset (&state, '\0', sizeof (mbstate_t));
35176 if (mbrtowc (&wc, input + 3, 6, &state) != 4
35177 && mbtowc (&wc, input + 3, 6) == 4)
35183 if ac_fn_c_try_run "$LINENO"; then :
35184 gl_cv_func_mbrtowc_sanitycheck=yes
35186 gl_cv_func_mbrtowc_sanitycheck=no
35188 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
35189 conftest.$ac_objext conftest.beam conftest.$ac_ext
35195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_sanitycheck" >&5
35196 $as_echo "$gl_cv_func_mbrtowc_sanitycheck" >&6; }
35198 REPLACE_MBSTATE_T=0
35199 case "$gl_cv_func_mbrtowc_incomplete_state" in
35201 *) REPLACE_MBSTATE_T=1 ;;
35203 case "$gl_cv_func_mbrtowc_sanitycheck" in
35205 *) REPLACE_MBSTATE_T=1 ;;
35208 REPLACE_MBSTATE_T=1
35219 if test $ac_cv_func_mbsinit = no; then
35221 ac_fn_c_check_decl "$LINENO" "mbsinit" "ac_cv_have_decl_mbsinit" "
35222 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
35224 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
35225 included before <wchar.h>. */
35226 #include <stddef.h>
35232 if test "x$ac_cv_have_decl_mbsinit" = xyes; then :
35238 cat >>confdefs.h <<_ACEOF
35239 #define HAVE_DECL_MBSINIT $ac_have_decl
35242 if test $ac_cv_have_decl_mbsinit = yes; then
35246 if test $REPLACE_MBSTATE_T = 1; then
35250 mingw*) REPLACE_MBSINIT=1 ;;
35255 if test $HAVE_MBSINIT = 0 || test $REPLACE_MBSINIT = 1; then
35264 gl_LIBOBJS="$gl_LIBOBJS mbsinit.$ac_objext"
35281 $as_echo "#define GNULIB_TEST_MBSINIT 1" >>confdefs.h
35307 if test $ac_cv_func_mbsinit = yes && test $ac_cv_func_mbrtowc = yes; then
35311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc handles incomplete characters" >&5
35312 $as_echo_n "checking whether mbrtowc handles incomplete characters... " >&6; }
35313 if ${gl_cv_func_mbrtowc_incomplete_state+:} false; then :
35314 $as_echo_n "(cached) " >&6
35318 # Guess no on AIX and OSF/1.
35319 aix* | osf*) gl_cv_func_mbrtowc_incomplete_state="guessing no" ;;
35320 # Guess yes otherwise.
35321 *) gl_cv_func_mbrtowc_incomplete_state="guessing yes" ;;
35323 if test $LOCALE_JA != none; then
35324 if test "$cross_compiling" = yes; then :
35327 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35328 /* end confdefs.h. */
35330 #include <locale.h>
35331 #include <string.h>
35332 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
35334 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
35335 included before <wchar.h>. */
35336 #include <stddef.h>
35342 if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
35344 const char input[] = "B\217\253\344\217\251\316er"; /* "Büßer" */
35348 memset (&state, '\0', sizeof (mbstate_t));
35349 if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
35350 if (mbsinit (&state))
35356 if ac_fn_c_try_run "$LINENO"; then :
35357 gl_cv_func_mbrtowc_incomplete_state=yes
35359 gl_cv_func_mbrtowc_incomplete_state=no
35361 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
35362 conftest.$ac_objext conftest.beam conftest.$ac_ext
35368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_incomplete_state" >&5
35369 $as_echo "$gl_cv_func_mbrtowc_incomplete_state" >&6; }
35374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc works as well as mbtowc" >&5
35375 $as_echo_n "checking whether mbrtowc works as well as mbtowc... " >&6; }
35376 if ${gl_cv_func_mbrtowc_sanitycheck+:} false; then :
35377 $as_echo_n "(cached) " >&6
35381 # Guess no on Solaris 8.
35382 solaris2.8) gl_cv_func_mbrtowc_sanitycheck="guessing no" ;;
35383 # Guess yes otherwise.
35384 *) gl_cv_func_mbrtowc_sanitycheck="guessing yes" ;;
35386 if test $LOCALE_ZH_CN != none; then
35387 if test "$cross_compiling" = yes; then :
35390 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35391 /* end confdefs.h. */
35393 #include <locale.h>
35394 #include <stdlib.h>
35395 #include <string.h>
35396 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
35398 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
35399 included before <wchar.h>. */
35400 #include <stddef.h>
35406 /* This fails on Solaris 8:
35407 mbrtowc returns 2, and sets wc to 0x00F0.
35408 mbtowc returns 4 (correct) and sets wc to 0x5EDC. */
35409 if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
35411 char input[] = "B\250\271\201\060\211\070er"; /* "Büßer" */
35415 memset (&state, '\0', sizeof (mbstate_t));
35416 if (mbrtowc (&wc, input + 3, 6, &state) != 4
35417 && mbtowc (&wc, input + 3, 6) == 4)
35423 if ac_fn_c_try_run "$LINENO"; then :
35424 gl_cv_func_mbrtowc_sanitycheck=yes
35426 gl_cv_func_mbrtowc_sanitycheck=no
35428 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
35429 conftest.$ac_objext conftest.beam conftest.$ac_ext
35435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_sanitycheck" >&5
35436 $as_echo "$gl_cv_func_mbrtowc_sanitycheck" >&6; }
35438 REPLACE_MBSTATE_T=0
35439 case "$gl_cv_func_mbrtowc_incomplete_state" in
35441 *) REPLACE_MBSTATE_T=1 ;;
35443 case "$gl_cv_func_mbrtowc_sanitycheck" in
35445 *) REPLACE_MBSTATE_T=1 ;;
35448 REPLACE_MBSTATE_T=1
35459 if test $ac_cv_func_mbsrtowcs = no; then
35461 ac_fn_c_check_decl "$LINENO" "mbsrtowcs" "ac_cv_have_decl_mbsrtowcs" "
35462 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
35464 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
35465 included before <wchar.h>. */
35466 #include <stddef.h>
35472 if test "x$ac_cv_have_decl_mbsrtowcs" = xyes; then :
35478 cat >>confdefs.h <<_ACEOF
35479 #define HAVE_DECL_MBSRTOWCS $ac_have_decl
35482 if test $ac_cv_have_decl_mbsrtowcs = yes; then
35483 REPLACE_MBSRTOWCS=1
35486 if test $REPLACE_MBSTATE_T = 1; then
35487 REPLACE_MBSRTOWCS=1
35495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbsrtowcs works" >&5
35496 $as_echo_n "checking whether mbsrtowcs works... " >&6; }
35497 if ${gl_cv_func_mbsrtowcs_works+:} false; then :
35498 $as_echo_n "(cached) " >&6
35502 # Guess no on HP-UX, Solaris, mingw.
35503 hpux* | solaris* | mingw*) gl_cv_func_mbsrtowcs_works="guessing no" ;;
35504 # Guess yes otherwise.
35505 *) gl_cv_func_mbsrtowcs_works="guessing yes" ;;
35507 if test $LOCALE_FR != none || test $LOCALE_FR_UTF8 != none || test $LOCALE_JA != none || test $LOCALE_ZH_CN != none; then
35508 if test "$cross_compiling" = yes; then :
35511 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35512 /* end confdefs.h. */
35514 #include <locale.h>
35515 #include <string.h>
35516 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
35518 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
35519 included before <wchar.h>. */
35520 #include <stddef.h>
35527 /* Test whether the function supports a NULL destination argument.
35528 This fails on native Windows. */
35529 if (setlocale (LC_ALL, "$LOCALE_FR") != NULL)
35531 const char input[] = "\337er";
35532 const char *src = input;
35535 memset (&state, '\0', sizeof (mbstate_t));
35536 if (mbsrtowcs (NULL, &src, 1, &state) != 3
35540 /* Test whether the function works when started with a conversion state
35541 in non-initial state. This fails on HP-UX 11.11 and Solaris 10. */
35542 if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL)
35544 const char input[] = "B\303\274\303\237er";
35547 memset (&state, '\0', sizeof (mbstate_t));
35548 if (mbrtowc (NULL, input + 1, 1, &state) == (size_t)(-2))
35549 if (!mbsinit (&state))
35551 const char *src = input + 2;
35552 if (mbsrtowcs (NULL, &src, 10, &state) != 4)
35556 if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
35558 const char input[] = "<\306\374\313\334\270\354>";
35561 memset (&state, '\0', sizeof (mbstate_t));
35562 if (mbrtowc (NULL, input + 3, 1, &state) == (size_t)(-2))
35563 if (!mbsinit (&state))
35565 const char *src = input + 4;
35566 if (mbsrtowcs (NULL, &src, 10, &state) != 3)
35570 if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
35572 const char input[] = "B\250\271\201\060\211\070er";
35575 memset (&state, '\0', sizeof (mbstate_t));
35576 if (mbrtowc (NULL, input + 1, 1, &state) == (size_t)(-2))
35577 if (!mbsinit (&state))
35579 const char *src = input + 2;
35580 if (mbsrtowcs (NULL, &src, 10, &state) != 4)
35587 if ac_fn_c_try_run "$LINENO"; then :
35588 gl_cv_func_mbsrtowcs_works=yes
35590 gl_cv_func_mbsrtowcs_works=no
35592 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
35593 conftest.$ac_objext conftest.beam conftest.$ac_ext
35599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbsrtowcs_works" >&5
35600 $as_echo "$gl_cv_func_mbsrtowcs_works" >&6; }
35602 case "$gl_cv_func_mbsrtowcs_works" in
35604 *) REPLACE_MBSRTOWCS=1 ;;
35609 if test $HAVE_MBSRTOWCS = 0 || test $REPLACE_MBSRTOWCS = 1; then
35618 gl_LIBOBJS="$gl_LIBOBJS mbsrtowcs.$ac_objext"
35628 gl_LIBOBJS="$gl_LIBOBJS mbsrtowcs-state.$ac_objext"
35645 $as_echo "#define GNULIB_TEST_MBSRTOWCS 1" >>confdefs.h
35656 if test $REPLACE_MBTOWC = 1; then
35665 gl_LIBOBJS="$gl_LIBOBJS mbtowc.$ac_objext"
35682 $as_echo "#define GNULIB_TEST_MBTOWC 1" >>confdefs.h
35687 if test $HAVE_MEMCHR = 0 || test $REPLACE_MEMCHR = 1; then
35696 gl_LIBOBJS="$gl_LIBOBJS memchr.$ac_objext"
35699 for ac_header in bp-sym.h
35701 ac_fn_c_check_header_mongrel "$LINENO" "bp-sym.h" "ac_cv_header_bp_sym_h" "$ac_includes_default"
35702 if test "x$ac_cv_header_bp_sym_h" = xyes; then :
35703 cat >>confdefs.h <<_ACEOF
35704 #define HAVE_BP_SYM_H 1
35724 $as_echo "#define GNULIB_TEST_MEMCHR 1" >>confdefs.h
35730 if test $HAVE_DECL_MEMMEM = 1 && test $REPLACE_MEMMEM = 0; then
35731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether memmem works in linear time" >&5
35732 $as_echo_n "checking whether memmem works in linear time... " >&6; }
35733 if ${gl_cv_func_memmem_works_fast+:} false; then :
35734 $as_echo_n "(cached) " >&6
35736 if test "$cross_compiling" = yes; then :
35737 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35738 /* end confdefs.h. */
35740 #include <features.h>
35741 #ifdef __GNU_LIBRARY__
35742 #if ((__GLIBC__ == 2 && __GLIBC_MINOR__ >= 9) || (__GLIBC__ > 2)) \
35743 && !defined __UCLIBC__
35748 #include <cygwin/version.h>
35749 #if CYGWIN_VERSION_DLL_COMBINED > CYGWIN_VERSION_DLL_MAKE_COMBINED (1007, 0)
35755 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
35756 $EGREP "Lucky user" >/dev/null 2>&1; then :
35757 gl_cv_func_memmem_works_fast="guessing yes"
35759 gl_cv_func_memmem_works_fast="guessing no"
35765 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35766 /* end confdefs.h. */
35768 #include <signal.h> /* for signal */
35769 #include <string.h> /* for memmem */
35770 #include <stdlib.h> /* for malloc */
35771 #include <unistd.h> /* for alarm */
35772 static void quit (int sig) { exit (sig + 128); }
35779 size_t m = 1000000;
35780 char *haystack = (char *) malloc (2 * m + 1);
35781 char *needle = (char *) malloc (m + 1);
35782 /* Failure to compile this test due to missing alarm is okay,
35783 since all such platforms (mingw) also lack memmem. */
35784 signal (SIGALRM, quit);
35786 /* Check for quadratic performance. */
35787 if (haystack && needle)
35789 memset (haystack, 'A', 2 * m);
35790 haystack[2 * m] = 'B';
35791 memset (needle, 'A', m);
35793 if (!memmem (haystack, 2 * m + 1, needle, m + 1))
35802 if ac_fn_c_try_run "$LINENO"; then :
35803 gl_cv_func_memmem_works_fast=yes
35805 gl_cv_func_memmem_works_fast=no
35807 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
35808 conftest.$ac_objext conftest.beam conftest.$ac_ext
35813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_memmem_works_fast" >&5
35814 $as_echo "$gl_cv_func_memmem_works_fast" >&6; }
35815 case "$gl_cv_func_memmem_works_fast" in
35823 if test $HAVE_MEMMEM = 0 || test $REPLACE_MEMMEM = 1; then
35832 gl_LIBOBJS="$gl_LIBOBJS memmem.$ac_objext"
35839 for ac_func in memmem
35841 ac_fn_c_check_func "$LINENO" "memmem" "ac_cv_func_memmem"
35842 if test "x$ac_cv_func_memmem" = xyes; then :
35843 cat >>confdefs.h <<_ACEOF
35844 #define HAVE_MEMMEM 1
35850 if test $ac_cv_func_memmem = yes; then
35862 if test $ac_cv_have_decl_memmem = no; then
35865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether memmem works" >&5
35866 $as_echo_n "checking whether memmem works... " >&6; }
35867 if ${gl_cv_func_memmem_works_always+:} false; then :
35868 $as_echo_n "(cached) " >&6
35870 if test "$cross_compiling" = yes; then :
35871 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35872 /* end confdefs.h. */
35874 #ifdef __GNU_LIBRARY__
35875 #include <features.h>
35876 #if ((__GLIBC__ == 2 && ((__GLIBC_MINOR > 0 && __GLIBC_MINOR__ < 9) \
35877 || __GLIBC_MINOR__ > 12)) \
35878 || (__GLIBC__ > 2)) \
35879 || defined __UCLIBC__
35882 #elif defined __CYGWIN__
35883 #include <cygwin/version.h>
35884 #if CYGWIN_VERSION_DLL_COMBINED > CYGWIN_VERSION_DLL_MAKE_COMBINED (1007, 7)
35892 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
35893 $EGREP "Lucky user" >/dev/null 2>&1; then :
35894 gl_cv_func_memmem_works_always="guessing yes"
35896 gl_cv_func_memmem_works_always="guessing no"
35902 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35903 /* end confdefs.h. */
35905 #include <string.h> /* for memmem */
35906 #define P "_EF_BF_BD"
35907 #define HAYSTACK "F_BD_CE_BD" P P P P "_C3_88_20" P P P "_C3_A7_20" P
35908 #define NEEDLE P P P P P
35915 if (memmem (HAYSTACK, strlen (HAYSTACK), NEEDLE, strlen (NEEDLE)))
35917 /* Check for empty needle behavior. */
35919 const char *haystack = "AAA";
35920 if (memmem (haystack, 3, NULL, 0) != haystack)
35929 if ac_fn_c_try_run "$LINENO"; then :
35930 gl_cv_func_memmem_works_always=yes
35932 gl_cv_func_memmem_works_always=no
35934 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
35935 conftest.$ac_objext conftest.beam conftest.$ac_ext
35940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_memmem_works_always" >&5
35941 $as_echo "$gl_cv_func_memmem_works_always" >&6; }
35942 case "$gl_cv_func_memmem_works_always" in
35951 if test $HAVE_MEMMEM = 0 || test $REPLACE_MEMMEM = 1; then
35960 gl_LIBOBJS="$gl_LIBOBJS memmem.$ac_objext"
35974 $as_echo "#define GNULIB_TEST_MEMMEM 1" >>confdefs.h
35984 for ac_func in mempcpy
35986 ac_fn_c_check_func "$LINENO" "mempcpy" "ac_cv_func_mempcpy"
35987 if test "x$ac_cv_func_mempcpy" = xyes; then :
35988 cat >>confdefs.h <<_ACEOF
35989 #define HAVE_MEMPCPY 1
35995 if test $ac_cv_func_mempcpy = no; then
35999 if test $HAVE_MEMPCPY = 0; then
36008 gl_LIBOBJS="$gl_LIBOBJS mempcpy.$ac_objext"
36025 $as_echo "#define GNULIB_TEST_MEMPCPY 1" >>confdefs.h
36040 if test $ac_cv_have_decl_memrchr = no; then
36041 HAVE_DECL_MEMRCHR=0
36044 for ac_func in memrchr
36046 ac_fn_c_check_func "$LINENO" "memrchr" "ac_cv_func_memrchr"
36047 if test "x$ac_cv_func_memrchr" = xyes; then :
36048 cat >>confdefs.h <<_ACEOF
36049 #define HAVE_MEMRCHR 1
36056 if test $ac_cv_func_memrchr = no; then
36065 gl_LIBOBJS="$gl_LIBOBJS memrchr.$ac_objext"
36080 $as_echo "#define GNULIB_TEST_MEMRCHR 1" >>confdefs.h
36089 for ac_func in mkdtemp
36091 ac_fn_c_check_func "$LINENO" "mkdtemp" "ac_cv_func_mkdtemp"
36092 if test "x$ac_cv_func_mkdtemp" = xyes; then :
36093 cat >>confdefs.h <<_ACEOF
36094 #define HAVE_MKDTEMP 1
36100 if test $ac_cv_func_mkdtemp = no; then
36104 if test $HAVE_MKDTEMP = 0; then
36113 gl_LIBOBJS="$gl_LIBOBJS mkdtemp.$ac_objext"
36129 $as_echo "#define GNULIB_TEST_MKDTEMP 1" >>confdefs.h
36143 if test $ac_cv_func_mkstemp = yes; then
36144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mkstemp" >&5
36145 $as_echo_n "checking for working mkstemp... " >&6; }
36146 if ${gl_cv_func_working_mkstemp+:} false; then :
36147 $as_echo_n "(cached) " >&6
36150 mkdir conftest.mkstemp
36151 if test "$cross_compiling" = yes; then :
36153 # Guess yes on glibc systems.
36154 *-gnu*) gl_cv_func_working_mkstemp="guessing yes" ;;
36155 # If we don't know, assume the worst.
36156 *) gl_cv_func_working_mkstemp="guessing no" ;;
36160 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36161 /* end confdefs.h. */
36162 $ac_includes_default
36168 off_t large = (off_t) 4294967295u;
36170 large = 2147483647;
36172 for (i = 0; i < 70; i++)
36174 char templ[] = "conftest.mkstemp/coXXXXXX";
36175 int (*mkstemp_function) (char *) = mkstemp;
36176 int fd = mkstemp_function (templ);
36182 if (lseek (fd, large, SEEK_SET) != large)
36184 if (fstat (fd, &st) < 0)
36186 else if (st.st_mode & 0077)
36197 if ac_fn_c_try_run "$LINENO"; then :
36198 gl_cv_func_working_mkstemp=yes
36200 gl_cv_func_working_mkstemp=no
36202 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
36203 conftest.$ac_objext conftest.beam conftest.$ac_ext
36206 rm -rf conftest.mkstemp
36209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_working_mkstemp" >&5
36210 $as_echo "$gl_cv_func_working_mkstemp" >&6; }
36211 case "$gl_cv_func_working_mkstemp" in
36221 if test $HAVE_MKSTEMP = 0 || test $REPLACE_MKSTEMP = 1; then
36230 gl_LIBOBJS="$gl_LIBOBJS mkstemp.$ac_objext"
36246 $as_echo "#define GNULIB_TEST_MKSTEMP 1" >>confdefs.h
36258 if test $ac_cv_func__set_invalid_parameter_handler = yes; then
36259 HAVE_MSVC_INVALID_PARAMETER_HANDLER=1
36261 $as_echo "#define HAVE_MSVC_INVALID_PARAMETER_HANDLER 1" >>confdefs.h
36264 HAVE_MSVC_INVALID_PARAMETER_HANDLER=0
36268 if test $HAVE_MSVC_INVALID_PARAMETER_HANDLER = 1; then
36277 gl_LIBOBJS="$gl_LIBOBJS msvc-inval.$ac_objext"
36283 if test $HAVE_MSVC_INVALID_PARAMETER_HANDLER = 1; then
36292 gl_LIBOBJS="$gl_LIBOBJS msvc-nothrow.$ac_objext"
36310 nanosleep_save_libs=$LIBS
36312 # Solaris 2.5.1 needs -lposix4 to get the nanosleep function.
36313 # Solaris 7 prefers the library name -lrt to the obsolescent name -lposix4.
36316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing nanosleep" >&5
36317 $as_echo_n "checking for library containing nanosleep... " >&6; }
36318 if ${ac_cv_search_nanosleep+:} false; then :
36319 $as_echo_n "(cached) " >&6
36321 ac_func_search_save_LIBS=$LIBS
36322 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36323 /* end confdefs.h. */
36325 /* Override any GCC internal prototype to avoid an error.
36326 Use char because int might match the return type of a GCC
36327 builtin and then its argument prototype would still apply. */
36335 return nanosleep ();
36340 for ac_lib in '' rt posix4; do
36341 if test -z "$ac_lib"; then
36342 ac_res="none required"
36345 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
36347 if ac_fn_c_try_link "$LINENO"; then :
36348 ac_cv_search_nanosleep=$ac_res
36350 rm -f core conftest.err conftest.$ac_objext \
36352 if ${ac_cv_search_nanosleep+:} false; then :
36356 if ${ac_cv_search_nanosleep+:} false; then :
36359 ac_cv_search_nanosleep=no
36361 rm conftest.$ac_ext
36362 LIBS=$ac_func_search_save_LIBS
36364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_nanosleep" >&5
36365 $as_echo "$ac_cv_search_nanosleep" >&6; }
36366 ac_res=$ac_cv_search_nanosleep
36367 if test "$ac_res" != no; then :
36368 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
36369 test "$ac_cv_search_nanosleep" = "none required" ||
36370 LIB_NANOSLEEP=$ac_cv_search_nanosleep
36373 if test "x$ac_cv_search_nanosleep" != xno; then
36376 if test $APPLE_UNIVERSAL_BUILD = 1; then
36377 # A universal build on Apple Mac OS X platforms.
36378 # The test result would be 'no (mishandles large arguments)' in 64-bit
36379 # mode but 'yes' in 32-bit mode. But we need a configuration result that
36380 # is valid in both modes.
36381 gl_cv_func_nanosleep='no (mishandles large arguments)'
36384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working nanosleep" >&5
36385 $as_echo_n "checking for working nanosleep... " >&6; }
36386 if ${gl_cv_func_nanosleep+:} false; then :
36387 $as_echo_n "(cached) " >&6
36390 if test "$cross_compiling" = yes; then :
36391 case "$host_os" in linux*) # Guess it halfway works when the kernel is Linux.
36392 gl_cv_func_nanosleep='guessing no (mishandles large arguments)' ;;
36393 *) # If we don't know, assume the worst.
36394 gl_cv_func_nanosleep='guessing no' ;;
36398 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36399 /* end confdefs.h. */
36402 #include <limits.h>
36403 #include <signal.h>
36404 #if HAVE_SYS_TIME_H
36405 #include <sys/time.h>
36408 #include <unistd.h>
36409 #define TYPE_SIGNED(t) (! ((t) 0 < (t) -1))
36410 #define TYPE_MAXIMUM(t) \
36411 ((t) (! TYPE_SIGNED (t) \
36413 : ((((t) 1 << (sizeof (t) * CHAR_BIT - 2)) - 1) * 2 + 1)))
36416 check_for_SIGALRM (int sig)
36418 if (sig != SIGALRM)
36425 static struct timespec ts_sleep;
36426 static struct timespec ts_remaining;
36427 static struct sigaction act;
36428 /* Test for major problems first. */
36431 act.sa_handler = check_for_SIGALRM;
36432 sigemptyset (&act.sa_mask);
36433 sigaction (SIGALRM, &act, NULL);
36434 ts_sleep.tv_sec = 0;
36435 ts_sleep.tv_nsec = 1;
36437 if (nanosleep (&ts_sleep, NULL) != 0)
36439 /* Test for a minor problem: the handling of large arguments. */
36440 ts_sleep.tv_sec = TYPE_MAXIMUM (time_t);
36441 ts_sleep.tv_nsec = 999999999;
36443 if (nanosleep (&ts_sleep, &ts_remaining) != -1)
36445 if (errno != EINTR)
36447 if (ts_remaining.tv_sec <= TYPE_MAXIMUM (time_t) - 10)
36452 if ac_fn_c_try_run "$LINENO"; then :
36453 gl_cv_func_nanosleep=yes
36455 case $? in 4|5|6) gl_cv_func_nanosleep='no (mishandles large arguments)';; *) gl_cv_func_nanosleep=no;;
36458 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
36459 conftest.$ac_objext conftest.beam conftest.$ac_ext
36464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_nanosleep" >&5
36465 $as_echo "$gl_cv_func_nanosleep" >&6; }
36466 case "$gl_cv_func_nanosleep" in
36468 REPLACE_NANOSLEEP=0
36471 REPLACE_NANOSLEEP=1
36472 case "$gl_cv_func_nanosleep" in
36473 *"mishandles large arguments"*)
36475 $as_echo "#define HAVE_BUG_BIG_NANOSLEEP 1" >>confdefs.h
36479 # The replacement uses select(). Add $LIBSOCKET to $LIB_NANOSLEEP.
36480 for ac_lib in $LIBSOCKET; do
36481 case " $LIB_NANOSLEEP " in
36483 *) LIB_NANOSLEEP="$LIB_NANOSLEEP $ac_lib";;
36493 LIBS=$nanosleep_save_libs
36495 if test $HAVE_NANOSLEEP = 0 || test $REPLACE_NANOSLEEP = 1; then
36504 gl_LIBOBJS="$gl_LIBOBJS nanosleep.$ac_objext"
36528 $as_echo "#define GNULIB_TEST_NANOSLEEP 1" >>confdefs.h
36542 if test $ac_cv_func_nl_langinfo = yes; then
36543 # On Irix 6.5, YESEXPR is defined, but nl_langinfo(YESEXPR) is broken.
36544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether YESEXPR works" >&5
36545 $as_echo_n "checking whether YESEXPR works... " >&6; }
36546 if ${gl_cv_func_nl_langinfo_yesexpr_works+:} false; then :
36547 $as_echo_n "(cached) " >&6
36549 if test "$cross_compiling" = yes; then :
36552 # Guess no on irix systems.
36553 irix*) gl_cv_func_nl_langinfo_yesexpr_works="guessing no";;
36554 # Guess yes elsewhere.
36555 *) gl_cv_func_nl_langinfo_yesexpr_works="guessing yes";;
36559 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36560 /* end confdefs.h. */
36561 #include <langinfo.h>
36566 return !*nl_langinfo(YESEXPR);
36572 if ac_fn_c_try_run "$LINENO"; then :
36573 gl_cv_func_nl_langinfo_yesexpr_works=yes
36575 gl_cv_func_nl_langinfo_yesexpr_works=no
36577 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
36578 conftest.$ac_objext conftest.beam conftest.$ac_ext
36583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_nl_langinfo_yesexpr_works" >&5
36584 $as_echo "$gl_cv_func_nl_langinfo_yesexpr_works" >&6; }
36585 case $gl_cv_func_nl_langinfo_yesexpr_works in
36586 *yes) FUNC_NL_LANGINFO_YESEXPR_WORKS=1 ;;
36587 *) FUNC_NL_LANGINFO_YESEXPR_WORKS=0 ;;
36590 cat >>confdefs.h <<_ACEOF
36591 #define FUNC_NL_LANGINFO_YESEXPR_WORKS $FUNC_NL_LANGINFO_YESEXPR_WORKS
36594 if test $HAVE_LANGINFO_CODESET = 1 && test $HAVE_LANGINFO_ERA = 1 \
36595 && test $FUNC_NL_LANGINFO_YESEXPR_WORKS = 1; then
36598 REPLACE_NL_LANGINFO=1
36600 $as_echo "#define REPLACE_NL_LANGINFO 1" >>confdefs.h
36607 if test $HAVE_NL_LANGINFO = 0 || test $REPLACE_NL_LANGINFO = 1; then
36616 gl_LIBOBJS="$gl_LIBOBJS nl_langinfo.$ac_objext"
36624 GNULIB_NL_LANGINFO=1
36630 $as_echo "#define GNULIB_TEST_NL_LANGINFO 1" >>confdefs.h
36642 GNULIB_NONBLOCKING=1
36648 $as_echo "#define GNULIB_TEST_NONBLOCKING 1" >>confdefs.h
36654 cat >>confdefs.h <<_ACEOF
36655 #define GNULIB_NONBLOCKING 1
36661 GNULIB_STDIO_H_NONBLOCKING=1
36663 GNULIB_UNISTD_H_NONBLOCKING=1
36678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether open recognizes a trailing slash" >&5
36679 $as_echo_n "checking whether open recognizes a trailing slash... " >&6; }
36680 if ${gl_cv_func_open_slash+:} false; then :
36681 $as_echo_n "(cached) " >&6
36683 # Assume that if we have lstat, we can also check symlinks.
36684 if test $ac_cv_func_lstat = yes; then
36686 ln -s conftest.tmp conftest.lnk
36688 if test "$cross_compiling" = yes; then :
36691 freebsd* | aix* | hpux* | solaris2.[0-9] | solaris2.[0-9].*)
36692 gl_cv_func_open_slash="guessing no" ;;
36694 gl_cv_func_open_slash="guessing yes" ;;
36698 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36699 /* end confdefs.h. */
36703 # include <unistd.h>
36709 if (open ("conftest.lnk/", O_RDONLY) != -1)
36712 if (open ("conftest.sl/", O_CREAT, 0600) >= 0)
36717 if ac_fn_c_try_run "$LINENO"; then :
36718 gl_cv_func_open_slash=yes
36720 gl_cv_func_open_slash=no
36722 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
36723 conftest.$ac_objext conftest.beam conftest.$ac_ext
36726 rm -f conftest.sl conftest.tmp conftest.lnk
36729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_open_slash" >&5
36730 $as_echo "$gl_cv_func_open_slash" >&6; }
36731 case "$gl_cv_func_open_slash" in
36734 $as_echo "#define OPEN_TRAILING_SLASH_BUG 1" >>confdefs.h
36742 if test $REPLACE_OPEN = 0; then
36752 if test $ac_cv_func_fchdir = no; then
36756 if test $HAVE_FCHDIR = 0; then
36762 if test $REPLACE_OPEN = 0; then
36766 if test $gl_cv_have_open_O_NONBLOCK != yes; then
36772 if test $REPLACE_OPEN = 1; then
36781 gl_LIBOBJS="$gl_LIBOBJS open.$ac_objext"
36799 $as_echo "#define GNULIB_TEST_OPEN 1" >>confdefs.h
36814 case $ac_cv_func_openat+$gl_cv_func_lstat_dereferences_slashed_symlink in
36818 # Solaris 9 has *at functions, but uniformly mishandles trailing
36819 # slash in all of them.
36827 if test $HAVE_OPENAT = 0 || test $REPLACE_OPENAT = 1; then
36836 gl_LIBOBJS="$gl_LIBOBJS openat.$ac_objext"
36845 cat >>confdefs.h <<_ACEOF
36846 #define GNULIB_OPENAT 1
36860 $as_echo "#define GNULIB_TEST_OPENAT 1" >>confdefs.h
36867 for ac_func in opendir
36869 ac_fn_c_check_func "$LINENO" "opendir" "ac_cv_func_opendir"
36870 if test "x$ac_cv_func_opendir" = xyes; then :
36871 cat >>confdefs.h <<_ACEOF
36872 #define HAVE_OPENDIR 1
36878 if test $ac_cv_func_opendir = no; then
36891 if test $ac_cv_func_fchdir = no; then
36895 if test $HAVE_FCHDIR = 0; then
36896 if test $HAVE_OPENDIR = 1; then
36902 if test $HAVE_OPENDIR = 0 || test $REPLACE_OPENDIR = 1; then
36911 gl_LIBOBJS="$gl_LIBOBJS opendir.$ac_objext"
36925 $as_echo "#define GNULIB_TEST_OPENDIR 1" >>confdefs.h
36942 for ac_func in raise
36944 ac_fn_c_check_func "$LINENO" "raise" "ac_cv_func_raise"
36945 if test "x$ac_cv_func_raise" = xyes; then :
36946 cat >>confdefs.h <<_ACEOF
36947 #define HAVE_RAISE 1
36953 if test $ac_cv_func_raise = no; then
36956 if test $HAVE_MSVC_INVALID_PARAMETER_HANDLER = 1; then
36963 if test $gl_cv_type_sigset_t = yes; then
36964 ac_fn_c_check_func "$LINENO" "sigprocmask" "ac_cv_func_sigprocmask"
36965 if test "x$ac_cv_func_sigprocmask" = xyes; then :
36966 gl_cv_func_sigprocmask=1
36970 if test -z "$gl_cv_func_sigprocmask"; then
36971 HAVE_POSIX_SIGNALBLOCKING=0
36974 if test $HAVE_POSIX_SIGNALBLOCKING = 0; then
36980 if test $HAVE_RAISE = 0 || test $REPLACE_RAISE = 1; then
36989 gl_LIBOBJS="$gl_LIBOBJS raise.$ac_objext"
37004 $as_echo "#define GNULIB_TEST_RAISE 1" >>confdefs.h
37012 for ac_func in rawmemchr
37014 ac_fn_c_check_func "$LINENO" "rawmemchr" "ac_cv_func_rawmemchr"
37015 if test "x$ac_cv_func_rawmemchr" = xyes; then :
37016 cat >>confdefs.h <<_ACEOF
37017 #define HAVE_RAWMEMCHR 1
37023 if test $ac_cv_func_rawmemchr = no; then
37027 if test $HAVE_RAWMEMCHR = 0; then
37036 gl_LIBOBJS="$gl_LIBOBJS rawmemchr.$ac_objext"
37051 $as_echo "#define GNULIB_TEST_RAWMEMCHR 1" >>confdefs.h
37058 for ac_func in readdir
37060 ac_fn_c_check_func "$LINENO" "readdir" "ac_cv_func_readdir"
37061 if test "x$ac_cv_func_readdir" = xyes; then :
37062 cat >>confdefs.h <<_ACEOF
37063 #define HAVE_READDIR 1
37069 if test $ac_cv_func_readdir = no; then
37073 if test $HAVE_READDIR = 0; then
37082 gl_LIBOBJS="$gl_LIBOBJS readdir.$ac_objext"
37096 $as_echo "#define GNULIB_TEST_READDIR 1" >>confdefs.h
37109 if test $ac_cv_func_readlink = no; then
37112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether readlink signature is correct" >&5
37113 $as_echo_n "checking whether readlink signature is correct... " >&6; }
37114 if ${gl_cv_decl_readlink_works+:} false; then :
37115 $as_echo_n "(cached) " >&6
37117 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37118 /* end confdefs.h. */
37119 #include <unistd.h>
37120 /* Cause compilation failure if original declaration has wrong type. */
37121 ssize_t readlink (const char *, char *, size_t);
37130 if ac_fn_c_try_compile "$LINENO"; then :
37131 gl_cv_decl_readlink_works=yes
37133 gl_cv_decl_readlink_works=no
37135 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_decl_readlink_works" >&5
37138 $as_echo "$gl_cv_decl_readlink_works" >&6; }
37139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether readlink handles trailing slash correctly" >&5
37140 $as_echo_n "checking whether readlink handles trailing slash correctly... " >&6; }
37141 if ${gl_cv_func_readlink_works+:} false; then :
37142 $as_echo_n "(cached) " >&6
37144 # We have readlink, so assume ln -s works.
37145 ln -s conftest.no-such conftest.link
37146 ln -s conftest.link conftest.lnk2
37147 if test "$cross_compiling" = yes; then :
37149 # Guess yes on glibc systems.
37150 *-gnu*) gl_cv_func_readlink_works="guessing yes" ;;
37151 # If we don't know, assume the worst.
37152 *) gl_cv_func_readlink_works="guessing no" ;;
37156 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37157 /* end confdefs.h. */
37158 #include <unistd.h>
37164 return readlink ("conftest.lnk2/", buf, sizeof buf) != -1;
37169 if ac_fn_c_try_run "$LINENO"; then :
37170 gl_cv_func_readlink_works=yes
37172 gl_cv_func_readlink_works=no
37174 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
37175 conftest.$ac_objext conftest.beam conftest.$ac_ext
37178 rm -f conftest.link conftest.lnk2
37180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_readlink_works" >&5
37181 $as_echo "$gl_cv_func_readlink_works" >&6; }
37182 case "$gl_cv_func_readlink_works" in
37184 if test "$gl_cv_decl_readlink_works" != yes; then
37190 $as_echo "#define READLINK_TRAILING_SLASH_BUG 1" >>confdefs.h
37197 if test $HAVE_READLINK = 0 || test $REPLACE_READLINK = 1; then
37206 gl_LIBOBJS="$gl_LIBOBJS readlink.$ac_objext"
37223 $as_echo "#define GNULIB_TEST_READLINK 1" >>confdefs.h
37230 if test $gl_cv_func_malloc_posix = yes; then
37232 $as_echo "#define HAVE_REALLOC_POSIX 1" >>confdefs.h
37238 if test $REPLACE_REALLOC = 1; then
37247 gl_LIBOBJS="$gl_LIBOBJS realloc.$ac_objext"
37255 GNULIB_REALLOC_POSIX=1
37261 $as_echo "#define GNULIB_TEST_REALLOC_POSIX 1" >>confdefs.h
37267 # Check whether --with-included-regex was given.
37268 if test "${with_included_regex+set}" = set; then :
37269 withval=$with_included_regex;
37273 case $with_included_regex in #(
37274 yes|no) ac_use_included_regex=$with_included_regex
37277 # If the system regex support is good enough that it passes the
37278 # following run test, then default to *not* using the included regex.c.
37279 # If cross compiling, assume the test would fail and use the included
37295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working re_compile_pattern" >&5
37296 $as_echo_n "checking for working re_compile_pattern... " >&6; }
37297 if ${gl_cv_func_re_compile_pattern_working+:} false; then :
37298 $as_echo_n "(cached) " >&6
37300 if test "$cross_compiling" = yes; then :
37301 gl_cv_func_re_compile_pattern_working=no
37303 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37304 /* end confdefs.h. */
37307 #include <locale.h>
37308 #include <limits.h>
37309 #include <string.h>
37311 #if defined M_CHECK_ACTION || HAVE_DECL_ALARM
37312 # include <signal.h>
37313 # include <unistd.h>
37317 # include <malloc.h>
37320 #ifdef M_CHECK_ACTION
37321 /* Exit with distinguishable exit code. */
37322 static void sigabrt_no_core (int sig) { raise (SIGTERM); }
37329 static struct re_pattern_buffer regex;
37330 unsigned char folded_chars[UCHAR_MAX + 1];
37333 struct re_registers regs;
37335 /* Some builds of glibc go into an infinite loop on this
37336 test. Use alarm to force death, and mallopt to avoid
37337 malloc recursion in diagnosing the corrupted heap. */
37338 #if HAVE_DECL_ALARM
37339 signal (SIGALRM, SIG_DFL);
37342 #ifdef M_CHECK_ACTION
37343 signal (SIGABRT, sigabrt_no_core);
37344 mallopt (M_CHECK_ACTION, 2);
37347 if (setlocale (LC_ALL, "en_US.UTF-8"))
37350 /* http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html
37351 This test needs valgrind to catch the bug on Debian
37352 GNU/Linux 3.1 x86, but it might catch the bug better
37353 on other platforms and it shouldn't hurt to try the
37355 static char const pat[] = "insert into";
37356 static char const data[] =
37357 "\xFF\0\x12\xA2\xAA\xC4\xB1,K\x12\xC4\xB1*\xACK";
37358 re_set_syntax (RE_SYNTAX_GREP | RE_HAT_LISTS_NOT_NEWLINE
37360 memset (®ex, 0, sizeof regex);
37361 s = re_compile_pattern (pat, sizeof pat - 1, ®ex);
37364 else if (re_search (®ex, data, sizeof data - 1,
37365 0, sizeof data - 1, ®s)
37371 /* This test is from glibc bug 15078.
37372 The test case is from Andreas Schwab in
37373 <http://www.sourceware.org/ml/libc-alpha/2013-01/msg00967.html>.
37375 static char const pat[] = "[^x]x";
37376 static char const data[] =
37377 /* <U1000><U103B><U103D><U1014><U103A><U102F><U1015><U103A> */
37388 memset (®ex, 0, sizeof regex);
37389 s = re_compile_pattern (pat, sizeof pat - 1, ®ex);
37394 i = re_search (®ex, data, sizeof data - 1,
37395 0, sizeof data - 1, 0);
37396 if (i != 0 && i != 21)
37401 if (! setlocale (LC_ALL, "C"))
37405 /* This test is from glibc bug 3957, reported by Andrew Mackey. */
37406 re_set_syntax (RE_SYNTAX_EGREP | RE_HAT_LISTS_NOT_NEWLINE);
37407 memset (®ex, 0, sizeof regex);
37408 s = re_compile_pattern ("a[^x]b", 6, ®ex);
37411 /* This should fail, but succeeds for glibc-2.5. */
37412 else if (re_search (®ex, "a\nb", 3, 0, 3, ®s) != -1)
37415 /* This regular expression is from Spencer ere test number 75
37417 re_set_syntax (RE_SYNTAX_POSIX_EGREP);
37418 memset (®ex, 0, sizeof regex);
37419 for (i = 0; i <= UCHAR_MAX; i++)
37420 folded_chars[i] = i;
37421 regex.translate = folded_chars;
37422 s = re_compile_pattern ("a[[:]:]]b\n", 11, ®ex);
37423 /* This should fail with _Invalid character class name_ error. */
37427 /* Ensure that [b-a] is diagnosed as invalid, when
37428 using RE_NO_EMPTY_RANGES. */
37429 re_set_syntax (RE_SYNTAX_POSIX_EGREP | RE_NO_EMPTY_RANGES);
37430 memset (®ex, 0, sizeof regex);
37431 s = re_compile_pattern ("a[b-a]", 6, ®ex);
37435 /* This should succeed, but does not for glibc-2.1.3. */
37436 memset (®ex, 0, sizeof regex);
37437 s = re_compile_pattern ("{1", 2, ®ex);
37441 /* The following example is derived from a problem report
37442 against gawk from Jorge Stolfi <stolfi@ic.unicamp.br>. */
37443 memset (®ex, 0, sizeof regex);
37444 s = re_compile_pattern ("[an\371]*n", 7, ®ex);
37447 /* This should match, but does not for glibc-2.2.1. */
37448 else if (re_match (®ex, "an", 2, 0, ®s) != 2)
37451 memset (®ex, 0, sizeof regex);
37452 s = re_compile_pattern ("x", 1, ®ex);
37455 /* glibc-2.2.93 does not work with a negative RANGE argument. */
37456 else if (re_search (®ex, "wxy", 3, 2, -2, ®s) != 1)
37459 /* The version of regex.c in older versions of gnulib
37460 ignored RE_ICASE. Detect that problem too. */
37461 re_set_syntax (RE_SYNTAX_EMACS | RE_ICASE);
37462 memset (®ex, 0, sizeof regex);
37463 s = re_compile_pattern ("x", 1, ®ex);
37466 else if (re_search (®ex, "WXY", 3, 0, 3, ®s) < 0)
37469 /* Catch a bug reported by Vin Shelton in
37470 http://lists.gnu.org/archive/html/bug-coreutils/2007-06/msg00089.html
37472 re_set_syntax (RE_SYNTAX_POSIX_BASIC
37473 & ~RE_CONTEXT_INVALID_DUP
37474 & ~RE_NO_EMPTY_RANGES);
37475 memset (®ex, 0, sizeof regex);
37476 s = re_compile_pattern ("[[:alnum:]_-]\\\\+$", 16, ®ex);
37480 /* REG_STARTEND was added to glibc on 2004-01-15.
37481 Reject older versions. */
37482 if (! REG_STARTEND)
37486 /* It would be nice to reject hosts whose regoff_t values are too
37487 narrow (including glibc on hosts with 64-bit ptrdiff_t and
37488 32-bit int), but we should wait until glibc implements this
37489 feature. Otherwise, support for equivalence classes and
37490 multibyte collation symbols would always be broken except
37491 when compiling --without-included-regex. */
37492 if (sizeof (regoff_t) < sizeof (ptrdiff_t)
37493 || sizeof (regoff_t) < sizeof (ssize_t))
37503 if ac_fn_c_try_run "$LINENO"; then :
37504 gl_cv_func_re_compile_pattern_working=yes
37506 gl_cv_func_re_compile_pattern_working=no
37508 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
37509 conftest.$ac_objext conftest.beam conftest.$ac_ext
37513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_re_compile_pattern_working" >&5
37514 $as_echo "$gl_cv_func_re_compile_pattern_working" >&6; }
37515 case $gl_cv_func_re_compile_pattern_working in #(
37516 yes) ac_use_included_regex=no;; #(
37517 no) ac_use_included_regex=yes;;
37520 *) as_fn_error $? "Invalid value for --with-included-regex: $with_included_regex" "$LINENO" 5
37524 if test $ac_use_included_regex = yes; then
37526 $as_echo "#define _REGEX_INCLUDE_LIMITS_H 1" >>confdefs.h
37529 $as_echo "#define _REGEX_LARGE_OFFSETS 1" >>confdefs.h
37532 $as_echo "#define re_syntax_options rpl_re_syntax_options" >>confdefs.h
37535 $as_echo "#define re_set_syntax rpl_re_set_syntax" >>confdefs.h
37538 $as_echo "#define re_compile_pattern rpl_re_compile_pattern" >>confdefs.h
37541 $as_echo "#define re_compile_fastmap rpl_re_compile_fastmap" >>confdefs.h
37544 $as_echo "#define re_search rpl_re_search" >>confdefs.h
37547 $as_echo "#define re_search_2 rpl_re_search_2" >>confdefs.h
37550 $as_echo "#define re_match rpl_re_match" >>confdefs.h
37553 $as_echo "#define re_match_2 rpl_re_match_2" >>confdefs.h
37556 $as_echo "#define re_set_registers rpl_re_set_registers" >>confdefs.h
37559 $as_echo "#define re_comp rpl_re_comp" >>confdefs.h
37562 $as_echo "#define re_exec rpl_re_exec" >>confdefs.h
37565 $as_echo "#define regcomp rpl_regcomp" >>confdefs.h
37568 $as_echo "#define regexec rpl_regexec" >>confdefs.h
37571 $as_echo "#define regerror rpl_regerror" >>confdefs.h
37574 $as_echo "#define regfree rpl_regfree" >>confdefs.h
37578 if test $ac_use_included_regex = yes; then
37587 gl_LIBOBJS="$gl_LIBOBJS regex.$ac_objext"
37596 for ac_header in libintl.h
37598 ac_fn_c_check_header_mongrel "$LINENO" "libintl.h" "ac_cv_header_libintl_h" "$ac_includes_default"
37599 if test "x$ac_cv_header_libintl_h" = xyes; then :
37600 cat >>confdefs.h <<_ACEOF
37601 #define HAVE_LIBINTL_H 1
37618 ac_fn_c_check_decl "$LINENO" "isblank" "ac_cv_have_decl_isblank" "#include <ctype.h>
37620 if test "x$ac_cv_have_decl_isblank" = xyes; then :
37626 cat >>confdefs.h <<_ACEOF
37627 #define HAVE_DECL_ISBLANK $ac_have_decl
37643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether rename honors trailing slash on destination" >&5
37644 $as_echo_n "checking whether rename honors trailing slash on destination... " >&6; }
37645 if ${gl_cv_func_rename_slash_dst_works+:} false; then :
37646 $as_echo_n "(cached) " >&6
37648 rm -rf conftest.f conftest.f1 conftest.f2 conftest.d1 conftest.d2 conftest.lnk
37649 touch conftest.f && touch conftest.f1 && mkdir conftest.d1 ||
37650 as_fn_error $? "cannot create temporary files" "$LINENO" 5
37651 # Assume that if we have lstat, we can also check symlinks.
37652 if test $ac_cv_func_lstat = yes; then
37653 ln -s conftest.f conftest.lnk
37655 if test "$cross_compiling" = yes; then :
37657 # Guess yes on glibc systems.
37658 *-gnu*) gl_cv_func_rename_slash_dst_works="guessing yes" ;;
37659 # If we don't know, assume the worst.
37660 *) gl_cv_func_rename_slash_dst_works="guessing no" ;;
37664 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37665 /* end confdefs.h. */
37667 # include <stdio.h>
37668 # include <stdlib.h>
37674 if (rename ("conftest.f1", "conftest.f2/") == 0)
37676 if (rename ("conftest.d1", "conftest.d2/") != 0)
37679 if (rename ("conftest.f", "conftest.lnk/") == 0)
37688 if ac_fn_c_try_run "$LINENO"; then :
37689 gl_cv_func_rename_slash_dst_works=yes
37691 gl_cv_func_rename_slash_dst_works=no
37693 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
37694 conftest.$ac_objext conftest.beam conftest.$ac_ext
37697 rm -rf conftest.f conftest.f1 conftest.f2 conftest.d1 conftest.d2 conftest.lnk
37700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_rename_slash_dst_works" >&5
37701 $as_echo "$gl_cv_func_rename_slash_dst_works" >&6; }
37702 case "$gl_cv_func_rename_slash_dst_works" in
37707 $as_echo "#define RENAME_TRAILING_SLASH_DEST_BUG 1" >>confdefs.h
37712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether rename honors trailing slash on source" >&5
37713 $as_echo_n "checking whether rename honors trailing slash on source... " >&6; }
37714 if ${gl_cv_func_rename_slash_src_works+:} false; then :
37715 $as_echo_n "(cached) " >&6
37717 rm -rf conftest.f conftest.f1 conftest.d1 conftest.d2 conftest.d3 conftest.lnk
37718 touch conftest.f && touch conftest.f1 && mkdir conftest.d1 ||
37719 as_fn_error $? "cannot create temporary files" "$LINENO" 5
37720 # Assume that if we have lstat, we can also check symlinks.
37721 if test $ac_cv_func_lstat = yes; then
37722 ln -s conftest.f conftest.lnk
37724 if test "$cross_compiling" = yes; then :
37726 # Guess yes on glibc systems.
37727 *-gnu*) gl_cv_func_rename_slash_src_works="guessing yes" ;;
37728 # If we don't know, assume the worst.
37729 *) gl_cv_func_rename_slash_src_works="guessing no" ;;
37733 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37734 /* end confdefs.h. */
37736 # include <stdio.h>
37737 # include <stdlib.h>
37743 if (rename ("conftest.f1/", "conftest.d3") == 0)
37745 if (rename ("conftest.d1/", "conftest.d2") != 0)
37748 if (rename ("conftest.lnk/", "conftest.f") == 0)
37757 if ac_fn_c_try_run "$LINENO"; then :
37758 gl_cv_func_rename_slash_src_works=yes
37760 gl_cv_func_rename_slash_src_works=no
37762 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
37763 conftest.$ac_objext conftest.beam conftest.$ac_ext
37766 rm -rf conftest.f conftest.f1 conftest.d1 conftest.d2 conftest.d3 conftest.lnk
37769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_rename_slash_src_works" >&5
37770 $as_echo "$gl_cv_func_rename_slash_src_works" >&6; }
37771 case "$gl_cv_func_rename_slash_src_works" in
37776 $as_echo "#define RENAME_TRAILING_SLASH_SOURCE_BUG 1" >>confdefs.h
37788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether rename manages hard links correctly" >&5
37789 $as_echo_n "checking whether rename manages hard links correctly... " >&6; }
37790 if ${gl_cv_func_rename_link_works+:} false; then :
37791 $as_echo_n "(cached) " >&6
37793 if test $ac_cv_func_link = yes; then
37794 rm -rf conftest.f conftest.f1
37795 if touch conftest.f && ln conftest.f conftest.f1 &&
37796 set x `ls -i conftest.f conftest.f1` && test "" = ""; then
37797 if test "$cross_compiling" = yes; then :
37799 # Guess yes on glibc systems.
37800 *-gnu*) gl_cv_func_rename_link_works="guessing yes" ;;
37801 # If we don't know, assume the worst.
37802 *) gl_cv_func_rename_link_works="guessing no" ;;
37806 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37807 /* end confdefs.h. */
37809 # include <stdio.h>
37810 # include <stdlib.h>
37811 # include <unistd.h>
37817 if (rename ("conftest.f", "conftest.f1"))
37819 if (unlink ("conftest.f1"))
37821 if (rename ("conftest.f", "conftest.f"))
37823 if (rename ("conftest.f1", "conftest.f1") == 0)
37831 if ac_fn_c_try_run "$LINENO"; then :
37832 gl_cv_func_rename_link_works=yes
37834 gl_cv_func_rename_link_works=no
37836 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
37837 conftest.$ac_objext conftest.beam conftest.$ac_ext
37841 gl_cv_func_rename_link_works="guessing no"
37843 rm -rf conftest.f conftest.f1
37845 gl_cv_func_rename_link_works=yes
37849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_rename_link_works" >&5
37850 $as_echo "$gl_cv_func_rename_link_works" >&6; }
37851 case "$gl_cv_func_rename_link_works" in
37856 $as_echo "#define RENAME_HARD_LINK_BUG 1" >>confdefs.h
37861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether rename manages existing destinations correctly" >&5
37862 $as_echo_n "checking whether rename manages existing destinations correctly... " >&6; }
37863 if ${gl_cv_func_rename_dest_works+:} false; then :
37864 $as_echo_n "(cached) " >&6
37866 rm -rf conftest.f conftest.d1 conftest.d2
37867 touch conftest.f && mkdir conftest.d1 conftest.d2 ||
37868 as_fn_error $? "cannot create temporary files" "$LINENO" 5
37869 if test "$cross_compiling" = yes; then :
37871 # Guess yes on glibc systems.
37872 *-gnu*) gl_cv_func_rename_dest_works="guessing yes" ;;
37873 # If we don't know, assume the worst.
37874 *) gl_cv_func_rename_dest_works="guessing no" ;;
37878 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37879 /* end confdefs.h. */
37881 # include <stdio.h>
37882 # include <stdlib.h>
37888 if (rename ("conftest.d1", "conftest.d2") != 0)
37890 if (rename ("conftest.d2", "conftest.f") == 0)
37898 if ac_fn_c_try_run "$LINENO"; then :
37899 gl_cv_func_rename_dest_works=yes
37901 gl_cv_func_rename_dest_works=no
37903 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
37904 conftest.$ac_objext conftest.beam conftest.$ac_ext
37907 rm -rf conftest.f conftest.d1 conftest.d2
37910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_rename_dest_works" >&5
37911 $as_echo "$gl_cv_func_rename_dest_works" >&6; }
37912 case "$gl_cv_func_rename_dest_works" in
37917 $as_echo "#define RENAME_DEST_EXISTS_BUG 1" >>confdefs.h
37922 if test $REPLACE_RENAME = 1; then
37931 gl_LIBOBJS="$gl_LIBOBJS rename.$ac_objext"
37945 $as_echo "#define GNULIB_TEST_RENAME 1" >>confdefs.h
37952 for ac_func in rewinddir
37954 ac_fn_c_check_func "$LINENO" "rewinddir" "ac_cv_func_rewinddir"
37955 if test "x$ac_cv_func_rewinddir" = xyes; then :
37956 cat >>confdefs.h <<_ACEOF
37957 #define HAVE_REWINDDIR 1
37963 if test $ac_cv_func_rewinddir = no; then
37967 if test $HAVE_REWINDDIR = 0; then
37976 gl_LIBOBJS="$gl_LIBOBJS rewinddir.$ac_objext"
37990 $as_echo "#define GNULIB_TEST_REWINDDIR 1" >>confdefs.h
38003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether rmdir works" >&5
38004 $as_echo_n "checking whether rmdir works... " >&6; }
38005 if ${gl_cv_func_rmdir_works+:} false; then :
38006 $as_echo_n "(cached) " >&6
38009 touch conftest.file
38010 if test "$cross_compiling" = yes; then :
38012 # Guess yes on glibc systems.
38013 *-gnu*) gl_cv_func_rmdir_works="guessing yes" ;;
38014 # If we don't know, assume the worst.
38015 *) gl_cv_func_rmdir_works="guessing no" ;;
38019 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38020 /* end confdefs.h. */
38024 # include <unistd.h>
38025 #else /* on Windows with MSVC */
38026 # include <direct.h>
38033 if (!rmdir ("conftest.file/"))
38035 else if (errno != ENOTDIR)
38037 if (!rmdir ("conftest.dir/./"))
38045 if ac_fn_c_try_run "$LINENO"; then :
38046 gl_cv_func_rmdir_works=yes
38048 gl_cv_func_rmdir_works=no
38050 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
38051 conftest.$ac_objext conftest.beam conftest.$ac_ext
38054 rm -rf conftest.dir conftest.file
38056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_rmdir_works" >&5
38057 $as_echo "$gl_cv_func_rmdir_works" >&6; }
38058 case "$gl_cv_func_rmdir_works" in
38065 if test $REPLACE_RMDIR = 1; then
38074 gl_LIBOBJS="$gl_LIBOBJS rmdir.$ac_objext"
38088 $as_echo "#define GNULIB_TEST_RMDIR 1" >>confdefs.h
38122 if test $ac_cv_func_secure_getenv = no; then
38123 HAVE_SECURE_GETENV=0
38126 if test $HAVE_SECURE_GETENV = 0; then
38135 gl_LIBOBJS="$gl_LIBOBJS secure_getenv.$ac_objext"
38138 for ac_func in __secure_getenv
38140 ac_fn_c_check_func "$LINENO" "__secure_getenv" "ac_cv_func___secure_getenv"
38141 if test "x$ac_cv_func___secure_getenv" = xyes; then :
38142 cat >>confdefs.h <<_ACEOF
38143 #define HAVE___SECURE_GETENV 1
38149 if test $ac_cv_func___secure_getenv = no; then
38150 for ac_func in issetugid
38152 ac_fn_c_check_func "$LINENO" "issetugid" "ac_cv_func_issetugid"
38153 if test "x$ac_cv_func_issetugid" = xyes; then :
38154 cat >>confdefs.h <<_ACEOF
38155 #define HAVE_ISSETUGID 1
38169 GNULIB_SECURE_GETENV=1
38175 $as_echo "#define GNULIB_TEST_SECURE_GETENV 1" >>confdefs.h
38182 if test "$ac_cv_header_winsock2_h" = yes; then
38192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether select supports a 0 argument" >&5
38193 $as_echo_n "checking whether select supports a 0 argument... " >&6; }
38194 if ${gl_cv_func_select_supports0+:} false; then :
38195 $as_echo_n "(cached) " >&6
38198 if test "$cross_compiling" = yes; then :
38201 # Guess no on Interix.
38202 interix*) gl_cv_func_select_supports0="guessing no";;
38203 # Guess yes otherwise.
38204 *) gl_cv_func_select_supports0="guessing yes";;
38208 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38209 /* end confdefs.h. */
38211 #include <sys/types.h>
38212 #include <sys/time.h>
38213 #if HAVE_SYS_SELECT_H
38214 #include <sys/select.h>
38218 struct timeval timeout;
38219 timeout.tv_sec = 0;
38220 timeout.tv_usec = 5;
38221 return select (0, (fd_set *)0, (fd_set *)0, (fd_set *)0, &timeout) < 0;
38224 if ac_fn_c_try_run "$LINENO"; then :
38225 gl_cv_func_select_supports0=yes
38227 gl_cv_func_select_supports0=no
38229 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
38230 conftest.$ac_objext conftest.beam conftest.$ac_ext
38235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_select_supports0" >&5
38236 $as_echo "$gl_cv_func_select_supports0" >&6; }
38237 case "$gl_cv_func_select_supports0" in
38239 *) REPLACE_SELECT=1 ;;
38242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether select detects invalid fds" >&5
38243 $as_echo_n "checking whether select detects invalid fds... " >&6; }
38244 if ${gl_cv_func_select_detects_ebadf+:} false; then :
38245 $as_echo_n "(cached) " >&6
38248 if test "$cross_compiling" = yes; then :
38251 # Guess yes on glibc systems.
38252 *-gnu*) gl_cv_func_select_detects_ebadf="guessing yes" ;;
38253 # If we don't know, assume the worst.
38254 *) gl_cv_func_select_detects_ebadf="guessing no" ;;
38258 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38259 /* end confdefs.h. */
38261 #include <sys/types.h>
38262 #include <sys/time.h>
38263 #if HAVE_SYS_SELECT_H
38264 # include <sys/select.h>
38266 #include <unistd.h>
38278 struct timeval timeout;
38279 timeout.tv_sec = 0;
38280 timeout.tv_usec = 5;
38281 return select (17, &set, NULL, NULL, &timeout) != -1 || errno != EBADF;
38287 if ac_fn_c_try_run "$LINENO"; then :
38288 gl_cv_func_select_detects_ebadf=yes
38290 gl_cv_func_select_detects_ebadf=no
38292 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
38293 conftest.$ac_objext conftest.beam conftest.$ac_ext
38298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_select_detects_ebadf" >&5
38299 $as_echo "$gl_cv_func_select_detects_ebadf" >&6; }
38300 case $gl_cv_func_select_detects_ebadf in
38302 *) REPLACE_SELECT=1 ;;
38306 LIB_SELECT="$LIBSOCKET"
38307 if test $REPLACE_SELECT = 1; then
38310 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38311 /* end confdefs.h. */
38313 #define WIN32_LEAN_AND_MEAN
38314 #include <windows.h>
38318 MsgWaitForMultipleObjects (0, NULL, 0, 0, 0);
38322 if ac_fn_c_try_link "$LINENO"; then :
38325 LIB_SELECT="$LIB_SELECT -luser32"
38327 rm -f core conftest.err conftest.$ac_objext \
38328 conftest$ac_exeext conftest.$ac_ext
38334 if test $REPLACE_SELECT = 1; then
38343 gl_LIBOBJS="$gl_LIBOBJS select.$ac_objext"
38357 $as_echo "#define GNULIB_TEST_SELECT 1" >>confdefs.h
38363 if test $ac_cv_func_setenv = no; then
38366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether setenv validates arguments" >&5
38367 $as_echo_n "checking whether setenv validates arguments... " >&6; }
38368 if ${gl_cv_func_setenv_works+:} false; then :
38369 $as_echo_n "(cached) " >&6
38371 if test "$cross_compiling" = yes; then :
38373 # Guess yes on glibc systems.
38374 *-gnu*) gl_cv_func_setenv_works="guessing yes" ;;
38375 # If we don't know, assume the worst.
38376 *) gl_cv_func_setenv_works="guessing no" ;;
38380 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38381 /* end confdefs.h. */
38383 #include <stdlib.h>
38385 #include <string.h>
38393 if (setenv ("", "", 0) != -1)
38395 else if (errno != EINVAL)
38399 if (setenv ("a", "=", 1) != 0)
38401 else if (strcmp (getenv ("a"), "=") != 0)
38410 if ac_fn_c_try_run "$LINENO"; then :
38411 gl_cv_func_setenv_works=yes
38413 gl_cv_func_setenv_works=no
38415 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
38416 conftest.$ac_objext conftest.beam conftest.$ac_ext
38420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_setenv_works" >&5
38421 $as_echo "$gl_cv_func_setenv_works" >&6; }
38422 case "$gl_cv_func_setenv_works" in
38430 if test $HAVE_SETENV = 0 || test $REPLACE_SETENV = 1; then
38439 gl_LIBOBJS="$gl_LIBOBJS setenv.$ac_objext"
38453 $as_echo "#define GNULIB_TEST_SETENV 1" >>confdefs.h
38466 if test $ac_cv_func_sigaction = yes; then
38467 ac_fn_c_check_member "$LINENO" "struct sigaction" "sa_sigaction" "ac_cv_member_struct_sigaction_sa_sigaction" "#include <signal.h>
38469 if test "x$ac_cv_member_struct_sigaction_sa_sigaction" = xyes; then :
38471 cat >>confdefs.h <<_ACEOF
38472 #define HAVE_STRUCT_SIGACTION_SA_SIGACTION 1
38478 if test $ac_cv_member_struct_sigaction_sa_sigaction = no; then
38479 HAVE_STRUCT_SIGACTION_SA_SIGACTION=0
38485 if test $HAVE_SIGACTION = 0; then
38494 gl_LIBOBJS="$gl_LIBOBJS sigaction.$ac_objext"
38511 ac_fn_c_check_type "$LINENO" "siginfo_t" "ac_cv_type_siginfo_t" "
38512 #include <signal.h>
38515 if test "x$ac_cv_type_siginfo_t" = xyes; then :
38517 cat >>confdefs.h <<_ACEOF
38518 #define HAVE_SIGINFO_T 1
38524 if test $ac_cv_type_siginfo_t = no; then
38540 $as_echo "#define GNULIB_TEST_SIGACTION 1" >>confdefs.h
38555 if test $gl_cv_have_include_next = yes; then
38556 gl_cv_next_signal_h='<'signal.h'>'
38558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <signal.h>" >&5
38559 $as_echo_n "checking absolute name of <signal.h>... " >&6; }
38560 if ${gl_cv_next_signal_h+:} false; then :
38561 $as_echo_n "(cached) " >&6
38566 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38567 /* end confdefs.h. */
38568 #include <signal.h>
38571 aix*) gl_absname_cpp="$ac_cpp -C" ;;
38572 *) gl_absname_cpp="$ac_cpp" ;;
38577 gl_dirsep_regex='[/\\]'
38580 gl_dirsep_regex='\/'
38583 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
38584 gl_header_literal_regex=`echo 'signal.h' \
38585 | sed -e "$gl_make_literal_regex_sed"`
38586 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
38587 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
38593 gl_cv_absolute_signal_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
38594 sed -n "$gl_absolute_header_sed"`
38596 gl_header=$gl_cv_absolute_signal_h
38597 gl_cv_next_signal_h='"'$gl_header'"'
38601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_signal_h" >&5
38602 $as_echo "$gl_cv_next_signal_h" >&6; }
38604 NEXT_SIGNAL_H=$gl_cv_next_signal_h
38606 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
38607 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
38608 gl_next_as_first_directive='<'signal.h'>'
38610 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
38611 gl_next_as_first_directive=$gl_cv_next_signal_h
38613 NEXT_AS_FIRST_DIRECTIVE_SIGNAL_H=$gl_next_as_first_directive
38619 # AIX declares sig_atomic_t to already include volatile, and C89 compilers
38620 # then choke on 'volatile sig_atomic_t'. C99 requires that it compile.
38621 ac_fn_c_check_type "$LINENO" "volatile sig_atomic_t" "ac_cv_type_volatile_sig_atomic_t" "
38622 #include <signal.h>
38625 if test "x$ac_cv_type_volatile_sig_atomic_t" = xyes; then :
38628 HAVE_TYPE_VOLATILE_SIG_ATOMIC_T=0
38637 ac_fn_c_check_type "$LINENO" "sighandler_t" "ac_cv_type_sighandler_t" "
38638 #include <signal.h>
38641 if test "x$ac_cv_type_sighandler_t" = xyes; then :
38644 HAVE_SIGHANDLER_T=0
38649 for gl_func in pthread_sigmask sigaction sigaddset sigdelset sigemptyset sigfillset sigismember sigpending sigprocmask; do
38650 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
38651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
38652 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
38653 if eval \${$as_gl_Symbol+:} false; then :
38654 $as_echo_n "(cached) " >&6
38656 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38657 /* end confdefs.h. */
38658 #include <signal.h>
38669 if ac_fn_c_try_compile "$LINENO"; then :
38670 eval "$as_gl_Symbol=yes"
38672 eval "$as_gl_Symbol=no"
38674 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38676 eval ac_res=\$$as_gl_Symbol
38677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
38678 $as_echo "$ac_res" >&6; }
38679 if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
38680 cat >>confdefs.h <<_ACEOF
38681 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
38684 eval ac_cv_have_decl_$gl_func=yes
38692 if test $gl_cv_type_sigset_t = yes; then
38693 ac_fn_c_check_func "$LINENO" "sigprocmask" "ac_cv_func_sigprocmask"
38694 if test "x$ac_cv_func_sigprocmask" = xyes; then :
38695 gl_cv_func_sigprocmask=1
38699 if test -z "$gl_cv_func_sigprocmask"; then
38700 HAVE_POSIX_SIGNALBLOCKING=0
38703 if test $HAVE_POSIX_SIGNALBLOCKING = 0; then
38712 gl_LIBOBJS="$gl_LIBOBJS sigprocmask.$ac_objext"
38721 GNULIB_SIGPROCMASK=1
38727 $as_echo "#define GNULIB_TEST_SIGPROCMASK 1" >>confdefs.h
38732 for ac_header in stdint.h
38734 ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
38735 if test "x$ac_cv_header_stdint_h" = xyes; then :
38736 cat >>confdefs.h <<_ACEOF
38737 #define HAVE_STDINT_H 1
38744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SIZE_MAX" >&5
38745 $as_echo_n "checking for SIZE_MAX... " >&6; }
38746 if ${gl_cv_size_max+:} false; then :
38747 $as_echo_n "(cached) " >&6
38751 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38752 /* end confdefs.h. */
38754 #include <limits.h>
38756 #include <stdint.h>
38763 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
38764 $EGREP "Found it" >/dev/null 2>&1; then :
38769 if test -z "$gl_cv_size_max"; then
38770 if ac_fn_c_compute_int "$LINENO" "sizeof (size_t) * CHAR_BIT - 1" "size_t_bits_minus_1" "#include <stddef.h>
38771 #include <limits.h>"; then :
38774 size_t_bits_minus_1=
38777 if ac_fn_c_compute_int "$LINENO" "sizeof (size_t) <= sizeof (unsigned int)" "fits_in_uint" "#include <stddef.h>"; then :
38783 if test -n "$size_t_bits_minus_1" && test -n "$fits_in_uint"; then
38784 if test $fits_in_uint = 1; then
38785 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38786 /* end confdefs.h. */
38787 #include <stddef.h>
38789 extern unsigned long foo;
38799 if ac_fn_c_try_compile "$LINENO"; then :
38802 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38804 if test $fits_in_uint = 1; then
38805 gl_cv_size_max="(((1U << $size_t_bits_minus_1) - 1) * 2 + 1)"
38807 gl_cv_size_max="(((1UL << $size_t_bits_minus_1) - 1) * 2 + 1)"
38810 gl_cv_size_max='((size_t)~(size_t)0)'
38815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_size_max" >&5
38816 $as_echo "$gl_cv_size_max" >&6; }
38817 if test "$gl_cv_size_max" != yes; then
38819 cat >>confdefs.h <<_ACEOF
38820 #define SIZE_MAX $gl_cv_size_max
38828 ac_fn_c_check_decl "$LINENO" "sleep" "ac_cv_have_decl_sleep" "#include <unistd.h>
38830 if test "x$ac_cv_have_decl_sleep" = xyes; then :
38836 cat >>confdefs.h <<_ACEOF
38837 #define HAVE_DECL_SLEEP $ac_have_decl
38847 if test $ac_cv_have_decl_sleep != yes; then
38850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working sleep" >&5
38851 $as_echo_n "checking for working sleep... " >&6; }
38852 if ${gl_cv_func_sleep_works+:} false; then :
38853 $as_echo_n "(cached) " >&6
38855 if test "$cross_compiling" = yes; then :
38857 # Guess yes on glibc systems.
38858 *-gnu*) gl_cv_func_sleep_works="guessing yes" ;;
38859 # If we don't know, assume the worst.
38860 *) gl_cv_func_sleep_works="guessing no" ;;
38864 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38865 /* end confdefs.h. */
38868 #include <unistd.h>
38869 #include <signal.h>
38871 handle_alarm (int sig)
38873 if (sig != SIGALRM)
38881 /* Failure to compile this test due to missing alarm is okay,
38882 since all such platforms (mingw) also lack sleep. */
38883 unsigned int pentecost = 50 * 24 * 60 * 60; /* 50 days. */
38884 unsigned int remaining;
38885 signal (SIGALRM, handle_alarm);
38887 remaining = sleep (pentecost);
38888 if (remaining > pentecost)
38890 if (remaining <= pentecost - 10)
38898 if ac_fn_c_try_run "$LINENO"; then :
38899 gl_cv_func_sleep_works=yes
38901 gl_cv_func_sleep_works=no
38903 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
38904 conftest.$ac_objext conftest.beam conftest.$ac_ext
38908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_sleep_works" >&5
38909 $as_echo "$gl_cv_func_sleep_works" >&6; }
38910 case "$gl_cv_func_sleep_works" in
38918 if test $HAVE_SLEEP = 0 || test $REPLACE_SLEEP = 1; then
38927 gl_LIBOBJS="$gl_LIBOBJS sleep.$ac_objext"
38941 $as_echo "#define GNULIB_TEST_SLEEP 1" >>confdefs.h
38956 if test $ac_cv_header_sys_socket_h != yes; then
38957 for ac_header in winsock2.h
38959 ac_fn_c_check_header_mongrel "$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
38960 if test "x$ac_cv_header_winsock2_h" = xyes; then :
38961 cat >>confdefs.h <<_ACEOF
38962 #define HAVE_WINSOCK2_H 1
38970 if test "$ac_cv_header_winsock2_h" = yes; then
38972 UNISTD_H_HAVE_WINSOCK2_H=1
38973 SYS_IOCTL_H_HAVE_WINSOCK2_H=1
38979 if test $HAVE_WINSOCK2_H = 1; then
38980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we need to call WSAStartup in winsock2.h and -lws2_32" >&5
38981 $as_echo_n "checking if we need to call WSAStartup in winsock2.h and -lws2_32... " >&6; }
38982 if ${gl_cv_func_wsastartup+:} false; then :
38983 $as_echo_n "(cached) " >&6
38986 gl_save_LIBS="$LIBS"
38987 LIBS="$LIBS -lws2_32"
38988 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38989 /* end confdefs.h. */
38991 #ifdef HAVE_WINSOCK2_H
38992 # include <winsock2.h>
38998 WORD wVersionRequested = MAKEWORD(1, 1);
39000 int err = WSAStartup(wVersionRequested, &wsaData);
39006 if ac_fn_c_try_link "$LINENO"; then :
39007 gl_cv_func_wsastartup=yes
39009 gl_cv_func_wsastartup=no
39011 rm -f core conftest.err conftest.$ac_objext \
39012 conftest$ac_exeext conftest.$ac_ext
39013 LIBS="$gl_save_LIBS"
39016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_wsastartup" >&5
39017 $as_echo "$gl_cv_func_wsastartup" >&6; }
39018 if test "$gl_cv_func_wsastartup" = "yes"; then
39020 $as_echo "#define WINDOWS_SOCKETS 1" >>confdefs.h
39022 LIBSOCKET='-lws2_32'
39025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing setsockopt" >&5
39026 $as_echo_n "checking for library containing setsockopt... " >&6; }
39027 if ${gl_cv_lib_socket+:} false; then :
39028 $as_echo_n "(cached) " >&6
39032 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39033 /* end confdefs.h. */
39047 if ac_fn_c_try_link "$LINENO"; then :
39050 gl_save_LIBS="$LIBS"
39051 LIBS="$gl_save_LIBS -lsocket"
39052 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39053 /* end confdefs.h. */
39067 if ac_fn_c_try_link "$LINENO"; then :
39068 gl_cv_lib_socket="-lsocket"
39070 rm -f core conftest.err conftest.$ac_objext \
39071 conftest$ac_exeext conftest.$ac_ext
39072 if test -z "$gl_cv_lib_socket"; then
39073 LIBS="$gl_save_LIBS -lnetwork"
39074 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39075 /* end confdefs.h. */
39089 if ac_fn_c_try_link "$LINENO"; then :
39090 gl_cv_lib_socket="-lnetwork"
39092 rm -f core conftest.err conftest.$ac_objext \
39093 conftest$ac_exeext conftest.$ac_ext
39094 if test -z "$gl_cv_lib_socket"; then
39095 LIBS="$gl_save_LIBS -lnet"
39096 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39097 /* end confdefs.h. */
39111 if ac_fn_c_try_link "$LINENO"; then :
39112 gl_cv_lib_socket="-lnet"
39114 rm -f core conftest.err conftest.$ac_objext \
39115 conftest$ac_exeext conftest.$ac_ext
39118 LIBS="$gl_save_LIBS"
39121 rm -f core conftest.err conftest.$ac_objext \
39122 conftest$ac_exeext conftest.$ac_ext
39123 if test -z "$gl_cv_lib_socket"; then
39124 gl_cv_lib_socket="none needed"
39128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_lib_socket" >&5
39129 $as_echo "$gl_cv_lib_socket" >&6; }
39130 if test "$gl_cv_lib_socket" != "none needed"; then
39131 LIBSOCKET="$gl_cv_lib_socket"
39143 ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "
39144 /* <sys/types.h> is not needed according to POSIX, but the
39145 <sys/socket.h> in i386-unknown-freebsd4.10 and
39146 powerpc-apple-darwin5.5 required it. */
39147 #include <sys/types.h>
39148 #if HAVE_SYS_SOCKET_H
39149 # include <sys/socket.h>
39150 #elif HAVE_WS2TCPIP_H
39151 # include <ws2tcpip.h>
39155 if test "x$ac_cv_type_socklen_t" = xyes; then :
39158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socklen_t equivalent" >&5
39159 $as_echo_n "checking for socklen_t equivalent... " >&6; }
39160 if ${gl_cv_socklen_t_equiv+:} false; then :
39161 $as_echo_n "(cached) " >&6
39163 # Systems have either "struct sockaddr *" or
39164 # "void *" as the second argument to getpeername
39165 gl_cv_socklen_t_equiv=
39166 for arg2 in "struct sockaddr" void; do
39167 for t in int size_t "unsigned int" "long int" "unsigned long int"; do
39168 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39169 /* end confdefs.h. */
39170 #include <sys/types.h>
39171 #include <sys/socket.h>
39173 int getpeername (int, $arg2 *, $t *);
39178 getpeername (0, 0, &len);
39183 if ac_fn_c_try_compile "$LINENO"; then :
39184 gl_cv_socklen_t_equiv="$t"
39186 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39187 test "$gl_cv_socklen_t_equiv" != "" && break
39189 test "$gl_cv_socklen_t_equiv" != "" && break
39194 if test "$gl_cv_socklen_t_equiv" = ""; then
39195 as_fn_error $? "Cannot find a type to use in place of socklen_t" "$LINENO" 5
39197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_socklen_t_equiv" >&5
39198 $as_echo "$gl_cv_socklen_t_equiv" >&6; }
39200 cat >>confdefs.h <<_ACEOF
39201 #define socklen_t $gl_cv_socklen_t_equiv
39207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ssize_t" >&5
39208 $as_echo_n "checking for ssize_t... " >&6; }
39209 if ${gt_cv_ssize_t+:} false; then :
39210 $as_echo_n "(cached) " >&6
39212 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39213 /* end confdefs.h. */
39214 #include <sys/types.h>
39218 int x = sizeof (ssize_t *) + sizeof (ssize_t);
39224 if ac_fn_c_try_compile "$LINENO"; then :
39229 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_ssize_t" >&5
39232 $as_echo "$gt_cv_ssize_t" >&6; }
39233 if test $gt_cv_ssize_t = no; then
39235 $as_echo "#define ssize_t int" >>confdefs.h
39248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat handles trailing slashes on directories" >&5
39249 $as_echo_n "checking whether stat handles trailing slashes on directories... " >&6; }
39250 if ${gl_cv_func_stat_dir_slash+:} false; then :
39251 $as_echo_n "(cached) " >&6
39253 if test "$cross_compiling" = yes; then :
39255 mingw*) gl_cv_func_stat_dir_slash="guessing no";;
39256 *) gl_cv_func_stat_dir_slash="guessing yes";;
39259 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39260 /* end confdefs.h. */
39261 #include <sys/stat.h>
39266 struct stat st; return stat (".", &st) != stat ("./", &st);
39271 if ac_fn_c_try_run "$LINENO"; then :
39272 gl_cv_func_stat_dir_slash=yes
39274 gl_cv_func_stat_dir_slash=no
39276 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
39277 conftest.$ac_objext conftest.beam conftest.$ac_ext
39281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_stat_dir_slash" >&5
39282 $as_echo "$gl_cv_func_stat_dir_slash" >&6; }
39283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat handles trailing slashes on files" >&5
39284 $as_echo_n "checking whether stat handles trailing slashes on files... " >&6; }
39285 if ${gl_cv_func_stat_file_slash+:} false; then :
39286 $as_echo_n "(cached) " >&6
39289 # Assume that if we have lstat, we can also check symlinks.
39290 if test $ac_cv_func_lstat = yes; then
39291 ln -s conftest.tmp conftest.lnk
39293 if test "$cross_compiling" = yes; then :
39295 # Guess yes on glibc systems.
39296 *-gnu*) gl_cv_func_stat_file_slash="guessing yes" ;;
39297 # If we don't know, assume the worst.
39298 *) gl_cv_func_stat_file_slash="guessing no" ;;
39302 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39303 /* end confdefs.h. */
39304 #include <sys/stat.h>
39311 if (!stat ("conftest.tmp/", &st))
39314 if (!stat ("conftest.lnk/", &st))
39323 if ac_fn_c_try_run "$LINENO"; then :
39324 gl_cv_func_stat_file_slash=yes
39326 gl_cv_func_stat_file_slash=no
39328 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
39329 conftest.$ac_objext conftest.beam conftest.$ac_ext
39332 rm -f conftest.tmp conftest.lnk
39334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_stat_file_slash" >&5
39335 $as_echo "$gl_cv_func_stat_file_slash" >&6; }
39336 case $gl_cv_func_stat_dir_slash in
39337 *no) REPLACE_STAT=1
39339 $as_echo "#define REPLACE_FUNC_STAT_DIR 1" >>confdefs.h
39342 case $gl_cv_func_stat_file_slash in
39343 *no) REPLACE_STAT=1
39345 $as_echo "#define REPLACE_FUNC_STAT_FILE 1" >>confdefs.h
39349 if test $REPLACE_STAT = 1; then
39358 gl_LIBOBJS="$gl_LIBOBJS stat.$ac_objext"
39373 $as_echo "#define GNULIB_TEST_STAT 1" >>confdefs.h
39387 ac_fn_c_check_member "$LINENO" "struct stat" "st_atim.tv_nsec" "ac_cv_member_struct_stat_st_atim_tv_nsec" "#include <sys/types.h>
39388 #include <sys/stat.h>
39390 if test "x$ac_cv_member_struct_stat_st_atim_tv_nsec" = xyes; then :
39392 cat >>confdefs.h <<_ACEOF
39393 #define HAVE_STRUCT_STAT_ST_ATIM_TV_NSEC 1
39396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct stat.st_atim is of type struct timespec" >&5
39397 $as_echo_n "checking whether struct stat.st_atim is of type struct timespec... " >&6; }
39398 if ${ac_cv_typeof_struct_stat_st_atim_is_struct_timespec+:} false; then :
39399 $as_echo_n "(cached) " >&6
39401 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39402 /* end confdefs.h. */
39404 #include <sys/types.h>
39405 #include <sys/stat.h>
39406 #if HAVE_SYS_TIME_H
39407 # include <sys/time.h>
39410 struct timespec ts;
39423 if ac_fn_c_try_compile "$LINENO"; then :
39424 ac_cv_typeof_struct_stat_st_atim_is_struct_timespec=yes
39426 ac_cv_typeof_struct_stat_st_atim_is_struct_timespec=no
39428 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_typeof_struct_stat_st_atim_is_struct_timespec" >&5
39431 $as_echo "$ac_cv_typeof_struct_stat_st_atim_is_struct_timespec" >&6; }
39432 if test $ac_cv_typeof_struct_stat_st_atim_is_struct_timespec = yes; then
39434 $as_echo "#define TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC 1" >>confdefs.h
39438 ac_fn_c_check_member "$LINENO" "struct stat" "st_atimespec.tv_nsec" "ac_cv_member_struct_stat_st_atimespec_tv_nsec" "#include <sys/types.h>
39439 #include <sys/stat.h>
39441 if test "x$ac_cv_member_struct_stat_st_atimespec_tv_nsec" = xyes; then :
39443 cat >>confdefs.h <<_ACEOF
39444 #define HAVE_STRUCT_STAT_ST_ATIMESPEC_TV_NSEC 1
39449 ac_fn_c_check_member "$LINENO" "struct stat" "st_atimensec" "ac_cv_member_struct_stat_st_atimensec" "#include <sys/types.h>
39450 #include <sys/stat.h>
39452 if test "x$ac_cv_member_struct_stat_st_atimensec" = xyes; then :
39454 cat >>confdefs.h <<_ACEOF
39455 #define HAVE_STRUCT_STAT_ST_ATIMENSEC 1
39460 ac_fn_c_check_member "$LINENO" "struct stat" "st_atim.st__tim.tv_nsec" "ac_cv_member_struct_stat_st_atim_st__tim_tv_nsec" "#include <sys/types.h>
39461 #include <sys/stat.h>
39463 if test "x$ac_cv_member_struct_stat_st_atim_st__tim_tv_nsec" = xyes; then :
39465 cat >>confdefs.h <<_ACEOF
39466 #define HAVE_STRUCT_STAT_ST_ATIM_ST__TIM_TV_NSEC 1
39488 ac_fn_c_check_member "$LINENO" "struct stat" "st_birthtimespec.tv_nsec" "ac_cv_member_struct_stat_st_birthtimespec_tv_nsec" "#include <sys/types.h>
39489 #include <sys/stat.h>
39491 if test "x$ac_cv_member_struct_stat_st_birthtimespec_tv_nsec" = xyes; then :
39493 cat >>confdefs.h <<_ACEOF
39494 #define HAVE_STRUCT_STAT_ST_BIRTHTIMESPEC_TV_NSEC 1
39499 ac_fn_c_check_member "$LINENO" "struct stat" "st_birthtimensec" "ac_cv_member_struct_stat_st_birthtimensec" "#include <sys/types.h>
39500 #include <sys/stat.h>
39502 if test "x$ac_cv_member_struct_stat_st_birthtimensec" = xyes; then :
39504 cat >>confdefs.h <<_ACEOF
39505 #define HAVE_STRUCT_STAT_ST_BIRTHTIMENSEC 1
39510 ac_fn_c_check_member "$LINENO" "struct stat" "st_birthtim.tv_nsec" "ac_cv_member_struct_stat_st_birthtim_tv_nsec" "#include <sys/types.h>
39511 #include <sys/stat.h>
39513 if test "x$ac_cv_member_struct_stat_st_birthtim_tv_nsec" = xyes; then :
39515 cat >>confdefs.h <<_ACEOF
39516 #define HAVE_STRUCT_STAT_ST_BIRTHTIM_TV_NSEC 1
39528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working stdalign.h" >&5
39529 $as_echo_n "checking for working stdalign.h... " >&6; }
39530 if ${gl_cv_header_working_stdalign_h+:} false; then :
39531 $as_echo_n "(cached) " >&6
39533 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39534 /* end confdefs.h. */
39535 #include <stdalign.h>
39536 #include <stddef.h>
39538 /* Test that alignof yields a result consistent with offsetof.
39539 This catches GCC bug 52023
39540 <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52023>. */
39542 template <class t> struct alignof_helper { char a; t b; };
39543 # define ao(type) offsetof (alignof_helper<type>, b)
39545 # define ao(type) offsetof (struct { char a; type b; }, b)
39547 char test_double[ao (double) % _Alignof (double) == 0 ? 1 : -1];
39548 char test_long[ao (long int) % _Alignof (long int) == 0 ? 1 : -1];
39549 char test_alignof[alignof (double) == _Alignof (double) ? 1 : -1];
39551 /* Test _Alignas only on platforms where gnulib can help. */
39553 ((defined __cplusplus && 201103 <= __cplusplus) \
39554 || __GNUC__ || __IBMC__ || __IBMCPP__ || __ICC \
39555 || 0x5110 <= __SUNPRO_C || 1300 <= _MSC_VER)
39556 struct alignas_test { char c; char alignas (8) alignas_8; };
39557 char test_alignas[offsetof (struct alignas_test, alignas_8) == 8
39569 if ac_fn_c_try_compile "$LINENO"; then :
39570 gl_cv_header_working_stdalign_h=yes
39572 gl_cv_header_working_stdalign_h=no
39574 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_stdalign_h" >&5
39577 $as_echo "$gl_cv_header_working_stdalign_h" >&6; }
39579 if test $gl_cv_header_working_stdalign_h = yes; then
39582 STDALIGN_H='stdalign.h'
39586 if test -n "$STDALIGN_H"; then
39587 GL_GENERATE_STDALIGN_H_TRUE=
39588 GL_GENERATE_STDALIGN_H_FALSE='#'
39590 GL_GENERATE_STDALIGN_H_TRUE='#'
39591 GL_GENERATE_STDALIGN_H_FALSE=
39597 NEXT_STDARG_H='<stdarg.h>'
39598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for va_copy" >&5
39599 $as_echo_n "checking for va_copy... " >&6; }
39600 if ${gl_cv_func_va_copy+:} false; then :
39601 $as_echo_n "(cached) " >&6
39604 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39605 /* end confdefs.h. */
39606 #include <stdarg.h>
39612 void (*func) (va_list, va_list) = va_copy;
39619 if ac_fn_c_try_compile "$LINENO"; then :
39620 gl_cv_func_va_copy=yes
39622 gl_cv_func_va_copy=no
39624 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_va_copy" >&5
39628 $as_echo "$gl_cv_func_va_copy" >&6; }
39629 if test $gl_cv_func_va_copy = no; then
39630 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39631 /* end confdefs.h. */
39632 #if defined _AIX && !defined __GNUC__
39637 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
39638 $EGREP "vaccine" >/dev/null 2>&1; then :
39645 if test $gl_aixcc = yes; then
39655 if test $gl_cv_have_include_next = yes; then
39656 gl_cv_next_stdarg_h='<'stdarg.h'>'
39658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdarg.h>" >&5
39659 $as_echo_n "checking absolute name of <stdarg.h>... " >&6; }
39660 if ${gl_cv_next_stdarg_h+:} false; then :
39661 $as_echo_n "(cached) " >&6
39666 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39667 /* end confdefs.h. */
39668 #include <stdarg.h>
39671 aix*) gl_absname_cpp="$ac_cpp -C" ;;
39672 *) gl_absname_cpp="$ac_cpp" ;;
39677 gl_dirsep_regex='[/\\]'
39680 gl_dirsep_regex='\/'
39683 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
39684 gl_header_literal_regex=`echo 'stdarg.h' \
39685 | sed -e "$gl_make_literal_regex_sed"`
39686 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
39687 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
39693 gl_cv_absolute_stdarg_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
39694 sed -n "$gl_absolute_header_sed"`
39696 gl_header=$gl_cv_absolute_stdarg_h
39697 gl_cv_next_stdarg_h='"'$gl_header'"'
39701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdarg_h" >&5
39702 $as_echo "$gl_cv_next_stdarg_h" >&6; }
39704 NEXT_STDARG_H=$gl_cv_next_stdarg_h
39706 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
39707 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
39708 gl_next_as_first_directive='<'stdarg.h'>'
39710 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
39711 gl_next_as_first_directive=$gl_cv_next_stdarg_h
39713 NEXT_AS_FIRST_DIRECTIVE_STDARG_H=$gl_next_as_first_directive
39718 if test "$gl_cv_next_stdarg_h" = '""'; then
39719 gl_cv_next_stdarg_h='"///usr/include/stdarg.h"'
39720 NEXT_STDARG_H="$gl_cv_next_stdarg_h"
39724 saved_as_echo_n="$as_echo_n"
39726 if ${gl_cv_func___va_copy+:} false; then :
39727 $as_echo_n "(cached) " >&6
39730 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39731 /* end confdefs.h. */
39732 #include <stdarg.h>
39745 if ac_fn_c_try_compile "$LINENO"; then :
39746 gl_cv_func___va_copy=yes
39748 gl_cv_func___va_copy=no
39750 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39753 as_echo_n="$saved_as_echo_n"
39755 if test $gl_cv_func___va_copy = yes; then
39757 $as_echo "#define va_copy __va_copy" >>confdefs.h
39762 $as_echo "#define va_copy gl_va_copy" >>confdefs.h
39768 if test -n "$STDARG_H"; then
39769 GL_GENERATE_STDARG_H_TRUE=
39770 GL_GENERATE_STDARG_H_FALSE='#'
39772 GL_GENERATE_STDARG_H_TRUE='#'
39773 GL_GENERATE_STDARG_H_FALSE=
39781 # Define two additional variables used in the Makefile substitution.
39783 if test "$ac_cv_header_stdbool_h" = yes; then
39786 STDBOOL_H='stdbool.h'
39789 if test -n "$STDBOOL_H"; then
39790 GL_GENERATE_STDBOOL_H_TRUE=
39791 GL_GENERATE_STDBOOL_H_FALSE='#'
39793 GL_GENERATE_STDBOOL_H_TRUE='#'
39794 GL_GENERATE_STDBOOL_H_FALSE=
39798 if test "$ac_cv_type__Bool" = yes; then
39809 if test $gt_cv_c_wchar_t = no; then
39813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NULL can be used in arbitrary expressions" >&5
39814 $as_echo_n "checking whether NULL can be used in arbitrary expressions... " >&6; }
39815 if ${gl_cv_decl_null_works+:} false; then :
39816 $as_echo_n "(cached) " >&6
39818 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39819 /* end confdefs.h. */
39820 #include <stddef.h>
39821 int test[2 * (sizeof NULL == sizeof (void *)) -1];
39831 if ac_fn_c_try_compile "$LINENO"; then :
39832 gl_cv_decl_null_works=yes
39834 gl_cv_decl_null_works=no
39836 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_decl_null_works" >&5
39839 $as_echo "$gl_cv_decl_null_works" >&6; }
39840 if test $gl_cv_decl_null_works = no; then
39845 if test -n "$STDDEF_H"; then
39846 GL_GENERATE_STDDEF_H_TRUE=
39847 GL_GENERATE_STDDEF_H_FALSE='#'
39849 GL_GENERATE_STDDEF_H_TRUE='#'
39850 GL_GENERATE_STDDEF_H_FALSE=
39853 if test -n "$STDDEF_H"; then
39862 if test $gl_cv_have_include_next = yes; then
39863 gl_cv_next_stddef_h='<'stddef.h'>'
39865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stddef.h>" >&5
39866 $as_echo_n "checking absolute name of <stddef.h>... " >&6; }
39867 if ${gl_cv_next_stddef_h+:} false; then :
39868 $as_echo_n "(cached) " >&6
39873 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39874 /* end confdefs.h. */
39875 #include <stddef.h>
39878 aix*) gl_absname_cpp="$ac_cpp -C" ;;
39879 *) gl_absname_cpp="$ac_cpp" ;;
39884 gl_dirsep_regex='[/\\]'
39887 gl_dirsep_regex='\/'
39890 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
39891 gl_header_literal_regex=`echo 'stddef.h' \
39892 | sed -e "$gl_make_literal_regex_sed"`
39893 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
39894 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
39900 gl_cv_absolute_stddef_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
39901 sed -n "$gl_absolute_header_sed"`
39903 gl_header=$gl_cv_absolute_stddef_h
39904 gl_cv_next_stddef_h='"'$gl_header'"'
39908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stddef_h" >&5
39909 $as_echo "$gl_cv_next_stddef_h" >&6; }
39911 NEXT_STDDEF_H=$gl_cv_next_stddef_h
39913 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
39914 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
39915 gl_next_as_first_directive='<'stddef.h'>'
39917 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
39918 gl_next_as_first_directive=$gl_cv_next_stddef_h
39920 NEXT_AS_FIRST_DIRECTIVE_STDDEF_H=$gl_next_as_first_directive
39938 if test $gl_cv_have_include_next = yes; then
39939 gl_cv_next_stdio_h='<'stdio.h'>'
39941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdio.h>" >&5
39942 $as_echo_n "checking absolute name of <stdio.h>... " >&6; }
39943 if ${gl_cv_next_stdio_h+:} false; then :
39944 $as_echo_n "(cached) " >&6
39949 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39950 /* end confdefs.h. */
39954 aix*) gl_absname_cpp="$ac_cpp -C" ;;
39955 *) gl_absname_cpp="$ac_cpp" ;;
39960 gl_dirsep_regex='[/\\]'
39963 gl_dirsep_regex='\/'
39966 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
39967 gl_header_literal_regex=`echo 'stdio.h' \
39968 | sed -e "$gl_make_literal_regex_sed"`
39969 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
39970 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
39976 gl_cv_absolute_stdio_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
39977 sed -n "$gl_absolute_header_sed"`
39979 gl_header=$gl_cv_absolute_stdio_h
39980 gl_cv_next_stdio_h='"'$gl_header'"'
39984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdio_h" >&5
39985 $as_echo "$gl_cv_next_stdio_h" >&6; }
39987 NEXT_STDIO_H=$gl_cv_next_stdio_h
39989 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
39990 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
39991 gl_next_as_first_directive='<'stdio.h'>'
39993 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
39994 gl_next_as_first_directive=$gl_cv_next_stdio_h
39996 NEXT_AS_FIRST_DIRECTIVE_STDIO_H=$gl_next_as_first_directive
40005 cat >>confdefs.h <<_ACEOF
40006 #define GNULIB_FSCANF 1
40013 cat >>confdefs.h <<_ACEOF
40014 #define GNULIB_SCANF 1
40027 if test $gl_cv_have_nonblocking != yes; then
40028 REPLACE_STDIO_READ_FUNCS=1
40037 gl_LIBOBJS="$gl_LIBOBJS stdio-read.$ac_objext"
40057 if test $gl_cv_have_nonblocking != yes; then
40058 REPLACE_STDIO_WRITE_FUNCS=1
40067 gl_LIBOBJS="$gl_LIBOBJS stdio-write.$ac_objext"
40073 for gl_func in dprintf fpurge fseeko ftello getdelim getline gets pclose popen renameat snprintf tmpfile vdprintf vsnprintf; do
40074 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
40075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
40076 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
40077 if eval \${$as_gl_Symbol+:} false; then :
40078 $as_echo_n "(cached) " >&6
40080 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40081 /* end confdefs.h. */
40093 if ac_fn_c_try_compile "$LINENO"; then :
40094 eval "$as_gl_Symbol=yes"
40096 eval "$as_gl_Symbol=no"
40098 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40100 eval ac_res=\$$as_gl_Symbol
40101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
40102 $as_echo "$ac_res" >&6; }
40103 if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
40104 cat >>confdefs.h <<_ACEOF
40105 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
40108 eval ac_cv_have_decl_$gl_func=yes
40123 if test $gl_cv_have_include_next = yes; then
40124 gl_cv_next_stdlib_h='<'stdlib.h'>'
40126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdlib.h>" >&5
40127 $as_echo_n "checking absolute name of <stdlib.h>... " >&6; }
40128 if ${gl_cv_next_stdlib_h+:} false; then :
40129 $as_echo_n "(cached) " >&6
40134 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40135 /* end confdefs.h. */
40136 #include <stdlib.h>
40139 aix*) gl_absname_cpp="$ac_cpp -C" ;;
40140 *) gl_absname_cpp="$ac_cpp" ;;
40145 gl_dirsep_regex='[/\\]'
40148 gl_dirsep_regex='\/'
40151 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
40152 gl_header_literal_regex=`echo 'stdlib.h' \
40153 | sed -e "$gl_make_literal_regex_sed"`
40154 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
40155 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
40161 gl_cv_absolute_stdlib_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
40162 sed -n "$gl_absolute_header_sed"`
40164 gl_header=$gl_cv_absolute_stdlib_h
40165 gl_cv_next_stdlib_h='"'$gl_header'"'
40169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdlib_h" >&5
40170 $as_echo "$gl_cv_next_stdlib_h" >&6; }
40172 NEXT_STDLIB_H=$gl_cv_next_stdlib_h
40174 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
40175 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
40176 gl_next_as_first_directive='<'stdlib.h'>'
40178 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
40179 gl_next_as_first_directive=$gl_cv_next_stdlib_h
40181 NEXT_AS_FIRST_DIRECTIVE_STDLIB_H=$gl_next_as_first_directive
40188 for gl_func in _Exit atoll canonicalize_file_name getloadavg getsubopt grantpt initstate initstate_r mkdtemp mkostemp mkostemps mkstemp mkstemps posix_openpt ptsname ptsname_r random random_r realpath rpmatch secure_getenv setenv setstate setstate_r srandom srandom_r strtod strtoll strtoull unlockpt unsetenv; do
40189 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
40190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
40191 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
40192 if eval \${$as_gl_Symbol+:} false; then :
40193 $as_echo_n "(cached) " >&6
40195 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40196 /* end confdefs.h. */
40197 #include <stdlib.h>
40198 #if HAVE_SYS_LOADAVG_H
40199 # include <sys/loadavg.h>
40202 # include <random.h>
40214 if ac_fn_c_try_compile "$LINENO"; then :
40215 eval "$as_gl_Symbol=yes"
40217 eval "$as_gl_Symbol=no"
40219 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40221 eval ac_res=\$$as_gl_Symbol
40222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
40223 $as_echo "$ac_res" >&6; }
40224 if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
40225 cat >>confdefs.h <<_ACEOF
40226 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
40229 eval ac_cv_have_decl_$gl_func=yes
40237 for ac_func in strcasecmp
40239 ac_fn_c_check_func "$LINENO" "strcasecmp" "ac_cv_func_strcasecmp"
40240 if test "x$ac_cv_func_strcasecmp" = xyes; then :
40241 cat >>confdefs.h <<_ACEOF
40242 #define HAVE_STRCASECMP 1
40248 if test $ac_cv_func_strcasecmp = no; then
40254 for ac_func in strncasecmp
40256 ac_fn_c_check_func "$LINENO" "strncasecmp" "ac_cv_func_strncasecmp"
40257 if test "x$ac_cv_func_strncasecmp" = xyes; then :
40258 cat >>confdefs.h <<_ACEOF
40259 #define HAVE_STRNCASECMP 1
40265 if test $ac_cv_func_strncasecmp = yes; then
40270 ac_fn_c_check_decl "$LINENO" "strncasecmp" "ac_cv_have_decl_strncasecmp" "$ac_includes_default"
40271 if test "x$ac_cv_have_decl_strncasecmp" = xyes; then :
40277 cat >>confdefs.h <<_ACEOF
40278 #define HAVE_DECL_STRNCASECMP $ac_have_decl
40281 if test $ac_cv_have_decl_strncasecmp = no; then
40282 HAVE_DECL_STRNCASECMP=0
40286 if test $HAVE_STRCASECMP = 0; then
40295 gl_LIBOBJS="$gl_LIBOBJS strcasecmp.$ac_objext"
40301 if test $HAVE_STRNCASECMP = 0; then
40310 gl_LIBOBJS="$gl_LIBOBJS strncasecmp.$ac_objext"
40318 if test $HAVE_STRCASESTR = 1 && test $REPLACE_STRCASESTR = 0; then
40319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strcasestr works in linear time" >&5
40320 $as_echo_n "checking whether strcasestr works in linear time... " >&6; }
40321 if ${gl_cv_func_strcasestr_linear+:} false; then :
40322 $as_echo_n "(cached) " >&6
40324 if test "$cross_compiling" = yes; then :
40325 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40326 /* end confdefs.h. */
40328 #include <features.h>
40329 #ifdef __GNU_LIBRARY__
40330 #if ((__GLIBC__ == 2 && __GLIBC_MINOR__ > 12) || (__GLIBC__ > 2)) \
40331 && !defined __UCLIBC__
40336 #include <cygwin/version.h>
40337 #if CYGWIN_VERSION_DLL_COMBINED > CYGWIN_VERSION_DLL_MAKE_COMBINED (1007, 7)
40343 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
40344 $EGREP "Lucky user" >/dev/null 2>&1; then :
40345 gl_cv_func_strcasestr_linear="guessing yes"
40347 gl_cv_func_strcasestr_linear="guessing no"
40353 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40354 /* end confdefs.h. */
40356 #include <signal.h> /* for signal */
40357 #include <string.h> /* for strcasestr */
40358 #include <stdlib.h> /* for malloc */
40359 #include <unistd.h> /* for alarm */
40360 static void quit (int sig) { exit (sig + 128); }
40367 size_t m = 1000000;
40368 char *haystack = (char *) malloc (2 * m + 2);
40369 char *needle = (char *) malloc (m + 2);
40370 /* Failure to compile this test due to missing alarm is okay,
40371 since all such platforms (mingw) also lack strcasestr. */
40372 signal (SIGALRM, quit);
40374 /* Check for quadratic performance. */
40375 if (haystack && needle)
40377 memset (haystack, 'A', 2 * m);
40378 haystack[2 * m] = 'B';
40379 haystack[2 * m + 1] = 0;
40380 memset (needle, 'A', m);
40383 if (!strcasestr (haystack, needle))
40392 if ac_fn_c_try_run "$LINENO"; then :
40393 gl_cv_func_strcasestr_linear=yes
40395 gl_cv_func_strcasestr_linear=no
40397 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
40398 conftest.$ac_objext conftest.beam conftest.$ac_ext
40403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_strcasestr_linear" >&5
40404 $as_echo "$gl_cv_func_strcasestr_linear" >&6; }
40405 case "$gl_cv_func_strcasestr_linear" in
40408 REPLACE_STRCASESTR=1
40413 if test $HAVE_STRCASESTR = 0 || test $REPLACE_STRCASESTR = 1; then
40422 gl_LIBOBJS="$gl_LIBOBJS strcasestr.$ac_objext"
40434 for ac_func in strcasestr
40436 ac_fn_c_check_func "$LINENO" "strcasestr" "ac_cv_func_strcasestr"
40437 if test "x$ac_cv_func_strcasestr" = xyes; then :
40438 cat >>confdefs.h <<_ACEOF
40439 #define HAVE_STRCASESTR 1
40445 if test $ac_cv_func_strcasestr = no; then
40448 if test "$gl_cv_func_memchr_works" != yes; then
40449 REPLACE_STRCASESTR=1
40451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strcasestr works" >&5
40452 $as_echo_n "checking whether strcasestr works... " >&6; }
40453 if ${gl_cv_func_strcasestr_works_always+:} false; then :
40454 $as_echo_n "(cached) " >&6
40456 if test "$cross_compiling" = yes; then :
40457 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40458 /* end confdefs.h. */
40460 #ifdef __GNU_LIBRARY__
40461 #include <features.h>
40462 #if ((__GLIBC__ == 2 && __GLIBC_MINOR__ > 12) || (__GLIBC__ > 2)) \
40463 || defined __UCLIBC__
40466 #elif defined __CYGWIN__
40467 #include <cygwin/version.h>
40468 #if CYGWIN_VERSION_DLL_COMBINED > CYGWIN_VERSION_DLL_MAKE_COMBINED (1007, 7)
40476 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
40477 $EGREP "Lucky user" >/dev/null 2>&1; then :
40478 gl_cv_func_strcasestr_works_always="guessing yes"
40480 gl_cv_func_strcasestr_works_always="guessing no"
40486 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40487 /* end confdefs.h. */
40489 #include <string.h> /* for strcasestr */
40490 #define P "_EF_BF_BD"
40491 #define HAYSTACK "F_BD_CE_BD" P P P P "_C3_88_20" P P P "_C3_A7_20" P
40492 #define NEEDLE P P P P P
40497 return !!strcasestr (HAYSTACK, NEEDLE);
40503 if ac_fn_c_try_run "$LINENO"; then :
40504 gl_cv_func_strcasestr_works_always=yes
40506 gl_cv_func_strcasestr_works_always=no
40508 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
40509 conftest.$ac_objext conftest.beam conftest.$ac_ext
40514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_strcasestr_works_always" >&5
40515 $as_echo "$gl_cv_func_strcasestr_works_always" >&6; }
40516 case "$gl_cv_func_strcasestr_works_always" in
40519 REPLACE_STRCASESTR=1
40525 if test $HAVE_STRCASESTR = 0 || test $REPLACE_STRCASESTR = 1; then
40534 gl_LIBOBJS="$gl_LIBOBJS strcasestr.$ac_objext"
40545 GNULIB_STRCASESTR=1
40551 $as_echo "#define GNULIB_TEST_STRCASESTR 1" >>confdefs.h
40559 for ac_func in strchrnul
40561 ac_fn_c_check_func "$LINENO" "strchrnul" "ac_cv_func_strchrnul"
40562 if test "x$ac_cv_func_strchrnul" = xyes; then :
40563 cat >>confdefs.h <<_ACEOF
40564 #define HAVE_STRCHRNUL 1
40570 if test $ac_cv_func_strchrnul = no; then
40573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strchrnul works" >&5
40574 $as_echo_n "checking whether strchrnul works... " >&6; }
40575 if ${gl_cv_func_strchrnul_works+:} false; then :
40576 $as_echo_n "(cached) " >&6
40578 if test "$cross_compiling" = yes; then :
40579 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40580 /* end confdefs.h. */
40582 #if defined __CYGWIN__
40583 #include <cygwin/version.h>
40584 #if CYGWIN_VERSION_DLL_COMBINED > CYGWIN_VERSION_DLL_MAKE_COMBINED (1007, 9)
40592 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
40593 $EGREP "Lucky user" >/dev/null 2>&1; then :
40594 gl_cv_func_strchrnul_works="guessing yes"
40596 gl_cv_func_strchrnul_works="guessing no"
40602 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40603 /* end confdefs.h. */
40605 #include <string.h> /* for strchrnul */
40610 const char *buf = "a";
40611 return strchrnul (buf, 'b') != buf + 1;
40617 if ac_fn_c_try_run "$LINENO"; then :
40618 gl_cv_func_strchrnul_works=yes
40620 gl_cv_func_strchrnul_works=no
40622 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
40623 conftest.$ac_objext conftest.beam conftest.$ac_ext
40628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_strchrnul_works" >&5
40629 $as_echo "$gl_cv_func_strchrnul_works" >&6; }
40630 case "$gl_cv_func_strchrnul_works" in
40632 *) REPLACE_STRCHRNUL=1 ;;
40636 if test $HAVE_STRCHRNUL = 0 || test $REPLACE_STRCHRNUL = 1; then
40645 gl_LIBOBJS="$gl_LIBOBJS strchrnul.$ac_objext"
40660 $as_echo "#define GNULIB_TEST_STRCHRNUL 1" >>confdefs.h
40674 if test $ac_cv_func_strdup = yes; then
40675 if test $gl_cv_func_malloc_posix != yes; then
40686 if test $ac_cv_have_decl_strdup = no; then
40690 if test $ac_cv_func_strdup = no || test $REPLACE_STRDUP = 1; then
40699 gl_LIBOBJS="$gl_LIBOBJS strdup.$ac_objext"
40714 $as_echo "#define GNULIB_TEST_STRDUP 1" >>confdefs.h
40723 if test "$ERRNO_H:$REPLACE_STRERROR_0" = :0; then
40724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strerror function" >&5
40725 $as_echo_n "checking for working strerror function... " >&6; }
40726 if ${gl_cv_func_working_strerror+:} false; then :
40727 $as_echo_n "(cached) " >&6
40729 if test "$cross_compiling" = yes; then :
40731 # Guess yes on glibc systems.
40732 *-gnu*) gl_cv_func_working_strerror="guessing yes" ;;
40733 # If we don't know, assume the worst.
40734 *) gl_cv_func_working_strerror="guessing no" ;;
40738 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40739 /* end confdefs.h. */
40740 #include <string.h>
40745 if (!*strerror (-2)) return 1;
40750 if ac_fn_c_try_run "$LINENO"; then :
40751 gl_cv_func_working_strerror=yes
40753 gl_cv_func_working_strerror=no
40755 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
40756 conftest.$ac_objext conftest.beam conftest.$ac_ext
40761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_working_strerror" >&5
40762 $as_echo "$gl_cv_func_working_strerror" >&6; }
40763 case "$gl_cv_func_working_strerror" in
40774 if test $REPLACE_STRERROR = 1; then
40783 gl_LIBOBJS="$gl_LIBOBJS strerror.$ac_objext"
40788 cat >>confdefs.h <<_ACEOF
40789 #define GNULIB_STRERROR 1
40804 $as_echo "#define GNULIB_TEST_STRERROR 1" >>confdefs.h
40810 if test -n "$ERRNO_H" || test $REPLACE_STRERROR_0 = 1; then
40819 gl_LIBOBJS="$gl_LIBOBJS strerror-override.$ac_objext"
40831 if test $ac_cv_header_sys_socket_h != yes; then
40832 for ac_header in winsock2.h
40834 ac_fn_c_check_header_mongrel "$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
40835 if test "x$ac_cv_header_winsock2_h" = xyes; then :
40836 cat >>confdefs.h <<_ACEOF
40837 #define HAVE_WINSOCK2_H 1
40845 if test "$ac_cv_header_winsock2_h" = yes; then
40847 UNISTD_H_HAVE_WINSOCK2_H=1
40848 SYS_IOCTL_H_HAVE_WINSOCK2_H=1
40879 if test $ac_cv_have_decl_strndup = no; then
40880 HAVE_DECL_STRNDUP=0
40883 if test $ac_cv_func_strndup = yes; then
40885 # AIX 4.3.3, AIX 5.1 have a function that fails to add the terminating '\0'.
40886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strndup" >&5
40887 $as_echo_n "checking for working strndup... " >&6; }
40888 if ${gl_cv_func_strndup_works+:} false; then :
40889 $as_echo_n "(cached) " >&6
40891 if test "$cross_compiling" = yes; then :
40894 aix | aix[3-6]*) gl_cv_func_strndup_works="guessing no";;
40895 *) gl_cv_func_strndup_works="guessing yes";;
40899 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40900 /* end confdefs.h. */
40902 #include <string.h>
40903 #include <stdlib.h>
40908 #if !HAVE_DECL_STRNDUP
40913 char *strndup (const char *, size_t);
40916 s = strndup ("some longer string", 15);
40918 s = strndup ("shorter string", 13);
40919 return s[13] != '\0';
40924 if ac_fn_c_try_run "$LINENO"; then :
40925 gl_cv_func_strndup_works=yes
40927 gl_cv_func_strndup_works=no
40929 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
40930 conftest.$ac_objext conftest.beam conftest.$ac_ext
40934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_strndup_works" >&5
40935 $as_echo "$gl_cv_func_strndup_works" >&6; }
40936 case $gl_cv_func_strndup_works in
40937 *no) REPLACE_STRNDUP=1 ;;
40943 if test $HAVE_STRNDUP = 0 || test $REPLACE_STRNDUP = 1; then
40952 gl_LIBOBJS="$gl_LIBOBJS strndup.$ac_objext"
40966 $as_echo "#define GNULIB_TEST_STRNDUP 1" >>confdefs.h
40982 if test $ac_cv_have_decl_strnlen = no; then
40983 HAVE_DECL_STRNLEN=0
40986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strnlen" >&5
40987 $as_echo_n "checking for working strnlen... " >&6; }
40988 if ${ac_cv_func_strnlen_working+:} false; then :
40989 $as_echo_n "(cached) " >&6
40991 if test "$cross_compiling" = yes; then :
40992 # Guess no on AIX systems, yes otherwise.
40994 aix*) ac_cv_func_strnlen_working=no;;
40995 *) ac_cv_func_strnlen_working=yes;;
40998 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40999 /* end confdefs.h. */
41000 $ac_includes_default
41006 #define S_LEN (sizeof S - 1)
41008 /* At least one implementation is buggy: that of AIX 4.3 would
41009 give strnlen (S, 1) == 3. */
41012 for (i = 0; i < S_LEN + 1; ++i)
41014 int expected = i <= S_LEN ? i : S_LEN;
41015 if (strnlen (S, i) != expected)
41024 if ac_fn_c_try_run "$LINENO"; then :
41025 ac_cv_func_strnlen_working=yes
41027 ac_cv_func_strnlen_working=no
41029 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
41030 conftest.$ac_objext conftest.beam conftest.$ac_ext
41034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strnlen_working" >&5
41035 $as_echo "$ac_cv_func_strnlen_working" >&6; }
41036 test $ac_cv_func_strnlen_working = no && :
41039 if test $ac_cv_func_strnlen_working = no; then
41044 if test $HAVE_DECL_STRNLEN = 0 || test $REPLACE_STRNLEN = 1; then
41053 gl_LIBOBJS="$gl_LIBOBJS strnlen.$ac_objext"
41068 $as_echo "#define GNULIB_TEST_STRNLEN 1" >>confdefs.h
41078 for ac_func in strsep
41080 ac_fn_c_check_func "$LINENO" "strsep" "ac_cv_func_strsep"
41081 if test "x$ac_cv_func_strsep" = xyes; then :
41082 cat >>confdefs.h <<_ACEOF
41083 #define HAVE_STRSEP 1
41089 if test $ac_cv_func_strsep = no; then
41093 if test $HAVE_STRSEP = 0; then
41102 gl_LIBOBJS="$gl_LIBOBJS strsep.$ac_objext"
41117 $as_echo "#define GNULIB_TEST_STRSEP 1" >>confdefs.h
41139 if test $gl_cv_have_include_next = yes; then
41140 gl_cv_next_sys_file_h='<'sys/file.h'>'
41142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/file.h>" >&5
41143 $as_echo_n "checking absolute name of <sys/file.h>... " >&6; }
41144 if ${gl_cv_next_sys_file_h+:} false; then :
41145 $as_echo_n "(cached) " >&6
41148 if test $ac_cv_header_sys_file_h = yes; then
41153 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41154 /* end confdefs.h. */
41155 #include <sys/file.h>
41158 aix*) gl_absname_cpp="$ac_cpp -C" ;;
41159 *) gl_absname_cpp="$ac_cpp" ;;
41164 gl_dirsep_regex='[/\\]'
41167 gl_dirsep_regex='\/'
41170 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
41171 gl_header_literal_regex=`echo 'sys/file.h' \
41172 | sed -e "$gl_make_literal_regex_sed"`
41173 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
41174 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
41180 gl_cv_absolute_sys_file_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
41181 sed -n "$gl_absolute_header_sed"`
41183 gl_header=$gl_cv_absolute_sys_file_h
41184 gl_cv_next_sys_file_h='"'$gl_header'"'
41186 gl_cv_next_sys_file_h='<'sys/file.h'>'
41191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_file_h" >&5
41192 $as_echo "$gl_cv_next_sys_file_h" >&6; }
41194 NEXT_SYS_FILE_H=$gl_cv_next_sys_file_h
41196 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
41197 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
41198 gl_next_as_first_directive='<'sys/file.h'>'
41200 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
41201 gl_next_as_first_directive=$gl_cv_next_sys_file_h
41203 NEXT_AS_FIRST_DIRECTIVE_SYS_FILE_H=$gl_next_as_first_directive
41209 if test $ac_cv_header_sys_file_h = yes; then
41217 for gl_func in flock; do
41218 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
41219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
41220 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
41221 if eval \${$as_gl_Symbol+:} false; then :
41222 $as_echo_n "(cached) " >&6
41224 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41225 /* end confdefs.h. */
41226 #include <sys/file.h>
41237 if ac_fn_c_try_compile "$LINENO"; then :
41238 eval "$as_gl_Symbol=yes"
41240 eval "$as_gl_Symbol=no"
41242 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
41244 eval ac_res=\$$as_gl_Symbol
41245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
41246 $as_echo "$ac_res" >&6; }
41247 if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
41248 cat >>confdefs.h <<_ACEOF
41249 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
41252 eval ac_cv_have_decl_$gl_func=yes
41268 if test $ac_cv_header_sys_ioctl_h = yes; then
41270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <sys/ioctl.h> declares ioctl" >&5
41271 $as_echo_n "checking whether <sys/ioctl.h> declares ioctl... " >&6; }
41272 if ${gl_cv_decl_ioctl_in_sys_ioctl_h+:} false; then :
41273 $as_echo_n "(cached) " >&6
41275 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41276 /* end confdefs.h. */
41277 #include <sys/ioctl.h>
41287 if ac_fn_c_try_compile "$LINENO"; then :
41288 gl_cv_decl_ioctl_in_sys_ioctl_h=yes
41290 gl_cv_decl_ioctl_in_sys_ioctl_h=no
41292 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
41295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_decl_ioctl_in_sys_ioctl_h" >&5
41296 $as_echo "$gl_cv_decl_ioctl_in_sys_ioctl_h" >&6; }
41316 if test $gl_cv_have_include_next = yes; then
41317 gl_cv_next_sys_ioctl_h='<'sys/ioctl.h'>'
41319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/ioctl.h>" >&5
41320 $as_echo_n "checking absolute name of <sys/ioctl.h>... " >&6; }
41321 if ${gl_cv_next_sys_ioctl_h+:} false; then :
41322 $as_echo_n "(cached) " >&6
41325 if test $ac_cv_header_sys_ioctl_h = yes; then
41330 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41331 /* end confdefs.h. */
41332 #include <sys/ioctl.h>
41335 aix*) gl_absname_cpp="$ac_cpp -C" ;;
41336 *) gl_absname_cpp="$ac_cpp" ;;
41341 gl_dirsep_regex='[/\\]'
41344 gl_dirsep_regex='\/'
41347 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
41348 gl_header_literal_regex=`echo 'sys/ioctl.h' \
41349 | sed -e "$gl_make_literal_regex_sed"`
41350 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
41351 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
41357 gl_cv_absolute_sys_ioctl_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
41358 sed -n "$gl_absolute_header_sed"`
41360 gl_header=$gl_cv_absolute_sys_ioctl_h
41361 gl_cv_next_sys_ioctl_h='"'$gl_header'"'
41363 gl_cv_next_sys_ioctl_h='<'sys/ioctl.h'>'
41368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_ioctl_h" >&5
41369 $as_echo "$gl_cv_next_sys_ioctl_h" >&6; }
41371 NEXT_SYS_IOCTL_H=$gl_cv_next_sys_ioctl_h
41373 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
41374 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
41375 gl_next_as_first_directive='<'sys/ioctl.h'>'
41377 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
41378 gl_next_as_first_directive=$gl_cv_next_sys_ioctl_h
41380 NEXT_AS_FIRST_DIRECTIVE_SYS_IOCTL_H=$gl_next_as_first_directive
41387 for gl_func in ioctl; do
41388 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
41389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
41390 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
41391 if eval \${$as_gl_Symbol+:} false; then :
41392 $as_echo_n "(cached) " >&6
41394 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41395 /* end confdefs.h. */
41396 #include <sys/ioctl.h>
41397 /* Some platforms declare ioctl in the wrong header. */
41398 #if !(defined __GLIBC__ && !defined __UCLIBC__)
41399 # include <unistd.h>
41411 if ac_fn_c_try_compile "$LINENO"; then :
41412 eval "$as_gl_Symbol=yes"
41414 eval "$as_gl_Symbol=no"
41416 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
41418 eval ac_res=\$$as_gl_Symbol
41419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
41420 $as_echo "$ac_res" >&6; }
41421 if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
41422 cat >>confdefs.h <<_ACEOF
41423 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
41426 eval ac_cv_have_decl_$gl_func=yes
41435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <sys/select.h> is self-contained" >&5
41436 $as_echo_n "checking whether <sys/select.h> is self-contained... " >&6; }
41437 if ${gl_cv_header_sys_select_h_selfcontained+:} false; then :
41438 $as_echo_n "(cached) " >&6
41441 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41442 /* end confdefs.h. */
41443 #include <sys/select.h>
41452 if ac_fn_c_try_compile "$LINENO"; then :
41453 gl_cv_header_sys_select_h_selfcontained=yes
41455 gl_cv_header_sys_select_h_selfcontained=no
41457 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
41458 if test $gl_cv_header_sys_select_h_selfcontained = yes; then
41459 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41460 /* end confdefs.h. */
41461 #include <sys/select.h>
41465 int memset; int bzero;
41471 if ac_fn_c_try_compile "$LINENO"; then :
41472 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41473 /* end confdefs.h. */
41474 #include <sys/select.h>
41480 #define memset nonexistent_memset
41485 void *memset (void *, int, unsigned long);
41487 #define bzero nonexistent_bzero
41492 void bzero (void *, unsigned long);
41501 if ac_fn_c_try_link "$LINENO"; then :
41504 gl_cv_header_sys_select_h_selfcontained=no
41506 rm -f core conftest.err conftest.$ac_objext \
41507 conftest$ac_exeext conftest.$ac_ext
41510 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
41514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_sys_select_h_selfcontained" >&5
41515 $as_echo "$gl_cv_header_sys_select_h_selfcontained" >&6; }
41531 if test $gl_cv_have_include_next = yes; then
41532 gl_cv_next_sys_select_h='<'sys/select.h'>'
41534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/select.h>" >&5
41535 $as_echo_n "checking absolute name of <sys/select.h>... " >&6; }
41536 if ${gl_cv_next_sys_select_h+:} false; then :
41537 $as_echo_n "(cached) " >&6
41540 if test $ac_cv_header_sys_select_h = yes; then
41545 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41546 /* end confdefs.h. */
41547 #include <sys/select.h>
41550 aix*) gl_absname_cpp="$ac_cpp -C" ;;
41551 *) gl_absname_cpp="$ac_cpp" ;;
41556 gl_dirsep_regex='[/\\]'
41559 gl_dirsep_regex='\/'
41562 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
41563 gl_header_literal_regex=`echo 'sys/select.h' \
41564 | sed -e "$gl_make_literal_regex_sed"`
41565 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
41566 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
41572 gl_cv_absolute_sys_select_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
41573 sed -n "$gl_absolute_header_sed"`
41575 gl_header=$gl_cv_absolute_sys_select_h
41576 gl_cv_next_sys_select_h='"'$gl_header'"'
41578 gl_cv_next_sys_select_h='<'sys/select.h'>'
41583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_select_h" >&5
41584 $as_echo "$gl_cv_next_sys_select_h" >&6; }
41586 NEXT_SYS_SELECT_H=$gl_cv_next_sys_select_h
41588 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
41589 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
41590 gl_next_as_first_directive='<'sys/select.h'>'
41592 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
41593 gl_next_as_first_directive=$gl_cv_next_sys_select_h
41595 NEXT_AS_FIRST_DIRECTIVE_SYS_SELECT_H=$gl_next_as_first_directive
41600 if test $ac_cv_header_sys_select_h = yes; then
41601 HAVE_SYS_SELECT_H=1
41603 HAVE_SYS_SELECT_H=0
41616 if test $ac_cv_header_sys_socket_h != yes; then
41617 for ac_header in winsock2.h
41619 ac_fn_c_check_header_mongrel "$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
41620 if test "x$ac_cv_header_winsock2_h" = xyes; then :
41621 cat >>confdefs.h <<_ACEOF
41622 #define HAVE_WINSOCK2_H 1
41630 if test "$ac_cv_header_winsock2_h" = yes; then
41632 UNISTD_H_HAVE_WINSOCK2_H=1
41633 SYS_IOCTL_H_HAVE_WINSOCK2_H=1
41641 for gl_func in pselect select; do
41642 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
41643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
41644 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
41645 if eval \${$as_gl_Symbol+:} false; then :
41646 $as_echo_n "(cached) " >&6
41648 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41649 /* end confdefs.h. */
41651 /* Some systems require prerequisite headers. */
41652 #include <sys/types.h>
41653 #if !(defined __GLIBC__ && !defined __UCLIBC__) && HAVE_SYS_TIME_H
41654 # include <sys/time.h>
41656 #include <sys/select.h>
41667 if ac_fn_c_try_compile "$LINENO"; then :
41668 eval "$as_gl_Symbol=yes"
41670 eval "$as_gl_Symbol=no"
41672 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
41674 eval ac_res=\$$as_gl_Symbol
41675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
41676 $as_echo "$ac_res" >&6; }
41677 if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
41678 cat >>confdefs.h <<_ACEOF
41679 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
41682 eval ac_cv_have_decl_$gl_func=yes
41695 $as_echo "#define _POSIX_PII_SOCKET 1" >>confdefs.h
41700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <sys/socket.h> is self-contained" >&5
41701 $as_echo_n "checking whether <sys/socket.h> is self-contained... " >&6; }
41702 if ${gl_cv_header_sys_socket_h_selfcontained+:} false; then :
41703 $as_echo_n "(cached) " >&6
41706 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41707 /* end confdefs.h. */
41708 #include <sys/socket.h>
41717 if ac_fn_c_try_compile "$LINENO"; then :
41718 gl_cv_header_sys_socket_h_selfcontained=yes
41720 gl_cv_header_sys_socket_h_selfcontained=no
41722 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
41725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_sys_socket_h_selfcontained" >&5
41726 $as_echo "$gl_cv_header_sys_socket_h_selfcontained" >&6; }
41727 if test $gl_cv_header_sys_socket_h_selfcontained = yes; then
41728 for ac_func in shutdown
41730 ac_fn_c_check_func "$LINENO" "shutdown" "ac_cv_func_shutdown"
41731 if test "x$ac_cv_func_shutdown" = xyes; then :
41732 cat >>confdefs.h <<_ACEOF
41733 #define HAVE_SHUTDOWN 1
41739 if test $ac_cv_func_shutdown = yes; then
41740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <sys/socket.h> defines the SHUT_* macros" >&5
41741 $as_echo_n "checking whether <sys/socket.h> defines the SHUT_* macros... " >&6; }
41742 if ${gl_cv_header_sys_socket_h_shut+:} false; then :
41743 $as_echo_n "(cached) " >&6
41746 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41747 /* end confdefs.h. */
41748 #include <sys/socket.h>
41752 int a[] = { SHUT_RD, SHUT_WR, SHUT_RDWR };
41757 if ac_fn_c_try_compile "$LINENO"; then :
41758 gl_cv_header_sys_socket_h_shut=yes
41760 gl_cv_header_sys_socket_h_shut=no
41762 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
41765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_sys_socket_h_shut" >&5
41766 $as_echo "$gl_cv_header_sys_socket_h_shut" >&6; }
41767 if test $gl_cv_header_sys_socket_h_shut = no; then
41768 SYS_SOCKET_H='sys/socket.h'
41772 # We need to check for ws2tcpip.h now.
41790 if test $gl_cv_have_include_next = yes; then
41791 gl_cv_next_sys_socket_h='<'sys/socket.h'>'
41793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/socket.h>" >&5
41794 $as_echo_n "checking absolute name of <sys/socket.h>... " >&6; }
41795 if ${gl_cv_next_sys_socket_h+:} false; then :
41796 $as_echo_n "(cached) " >&6
41799 if test $ac_cv_header_sys_socket_h = yes; then
41804 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41805 /* end confdefs.h. */
41806 #include <sys/socket.h>
41809 aix*) gl_absname_cpp="$ac_cpp -C" ;;
41810 *) gl_absname_cpp="$ac_cpp" ;;
41815 gl_dirsep_regex='[/\\]'
41818 gl_dirsep_regex='\/'
41821 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
41822 gl_header_literal_regex=`echo 'sys/socket.h' \
41823 | sed -e "$gl_make_literal_regex_sed"`
41824 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
41825 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
41831 gl_cv_absolute_sys_socket_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
41832 sed -n "$gl_absolute_header_sed"`
41834 gl_header=$gl_cv_absolute_sys_socket_h
41835 gl_cv_next_sys_socket_h='"'$gl_header'"'
41837 gl_cv_next_sys_socket_h='<'sys/socket.h'>'
41842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_socket_h" >&5
41843 $as_echo "$gl_cv_next_sys_socket_h" >&6; }
41845 NEXT_SYS_SOCKET_H=$gl_cv_next_sys_socket_h
41847 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
41848 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
41849 gl_next_as_first_directive='<'sys/socket.h'>'
41851 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
41852 gl_next_as_first_directive=$gl_cv_next_sys_socket_h
41854 NEXT_AS_FIRST_DIRECTIVE_SYS_SOCKET_H=$gl_next_as_first_directive
41859 if test $ac_cv_header_sys_socket_h = yes; then
41860 HAVE_SYS_SOCKET_H=1
41863 HAVE_SYS_SOCKET_H=0
41864 if test $ac_cv_header_ws2tcpip_h = yes; then
41873 ac_fn_c_check_type "$LINENO" "struct sockaddr_storage" "ac_cv_type_struct_sockaddr_storage" "
41874 /* sys/types.h is not needed according to POSIX, but the
41875 sys/socket.h in i386-unknown-freebsd4.10 and
41876 powerpc-apple-darwin5.5 required it. */
41877 #include <sys/types.h>
41878 #ifdef HAVE_SYS_SOCKET_H
41879 #include <sys/socket.h>
41881 #ifdef HAVE_WS2TCPIP_H
41882 #include <ws2tcpip.h>
41886 if test "x$ac_cv_type_struct_sockaddr_storage" = xyes; then :
41888 cat >>confdefs.h <<_ACEOF
41889 #define HAVE_STRUCT_SOCKADDR_STORAGE 1
41894 ac_fn_c_check_type "$LINENO" "sa_family_t" "ac_cv_type_sa_family_t" "
41895 /* sys/types.h is not needed according to POSIX, but the
41896 sys/socket.h in i386-unknown-freebsd4.10 and
41897 powerpc-apple-darwin5.5 required it. */
41898 #include <sys/types.h>
41899 #ifdef HAVE_SYS_SOCKET_H
41900 #include <sys/socket.h>
41902 #ifdef HAVE_WS2TCPIP_H
41903 #include <ws2tcpip.h>
41907 if test "x$ac_cv_type_sa_family_t" = xyes; then :
41909 cat >>confdefs.h <<_ACEOF
41910 #define HAVE_SA_FAMILY_T 1
41916 if test $ac_cv_type_struct_sockaddr_storage = no; then
41917 HAVE_STRUCT_SOCKADDR_STORAGE=0
41919 if test $ac_cv_type_sa_family_t = no; then
41922 if test $ac_cv_type_struct_sockaddr_storage != no; then
41923 ac_fn_c_check_member "$LINENO" "struct sockaddr_storage" "ss_family" "ac_cv_member_struct_sockaddr_storage_ss_family" "#include <sys/types.h>
41924 #ifdef HAVE_SYS_SOCKET_H
41925 #include <sys/socket.h>
41927 #ifdef HAVE_WS2TCPIP_H
41928 #include <ws2tcpip.h>
41932 if test "x$ac_cv_member_struct_sockaddr_storage_ss_family" = xyes; then :
41934 cat >>confdefs.h <<_ACEOF
41935 #define HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY 1
41940 HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY=0
41944 if test $HAVE_STRUCT_SOCKADDR_STORAGE = 0 || test $HAVE_SA_FAMILY_T = 0 \
41945 || test $HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY = 0; then
41946 SYS_SOCKET_H='sys/socket.h'
41958 if test $ac_cv_header_sys_socket_h != yes; then
41959 for ac_header in winsock2.h
41961 ac_fn_c_check_header_mongrel "$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
41962 if test "x$ac_cv_header_winsock2_h" = xyes; then :
41963 cat >>confdefs.h <<_ACEOF
41964 #define HAVE_WINSOCK2_H 1
41972 if test "$ac_cv_header_winsock2_h" = yes; then
41974 UNISTD_H_HAVE_WINSOCK2_H=1
41975 SYS_IOCTL_H_HAVE_WINSOCK2_H=1
41983 for gl_func in socket connect accept bind getpeername getsockname getsockopt listen recv send recvfrom sendto setsockopt shutdown accept4; do
41984 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
41985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
41986 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
41987 if eval \${$as_gl_Symbol+:} false; then :
41988 $as_echo_n "(cached) " >&6
41990 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41991 /* end confdefs.h. */
41993 /* Some systems require prerequisite headers. */
41994 #include <sys/types.h>
41995 #include <sys/socket.h>
42006 if ac_fn_c_try_compile "$LINENO"; then :
42007 eval "$as_gl_Symbol=yes"
42009 eval "$as_gl_Symbol=no"
42011 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
42013 eval ac_res=\$$as_gl_Symbol
42014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
42015 $as_echo "$ac_res" >&6; }
42016 if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
42017 cat >>confdefs.h <<_ACEOF
42018 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
42021 eval ac_cv_have_decl_$gl_func=yes
42047 if test $gl_cv_have_include_next = yes; then
42048 gl_cv_next_sys_stat_h='<'sys/stat.h'>'
42050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/stat.h>" >&5
42051 $as_echo_n "checking absolute name of <sys/stat.h>... " >&6; }
42052 if ${gl_cv_next_sys_stat_h+:} false; then :
42053 $as_echo_n "(cached) " >&6
42056 if test $ac_cv_header_sys_stat_h = yes; then
42061 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42062 /* end confdefs.h. */
42063 #include <sys/stat.h>
42066 aix*) gl_absname_cpp="$ac_cpp -C" ;;
42067 *) gl_absname_cpp="$ac_cpp" ;;
42072 gl_dirsep_regex='[/\\]'
42075 gl_dirsep_regex='\/'
42078 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
42079 gl_header_literal_regex=`echo 'sys/stat.h' \
42080 | sed -e "$gl_make_literal_regex_sed"`
42081 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
42082 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
42088 gl_cv_absolute_sys_stat_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
42089 sed -n "$gl_absolute_header_sed"`
42091 gl_header=$gl_cv_absolute_sys_stat_h
42092 gl_cv_next_sys_stat_h='"'$gl_header'"'
42094 gl_cv_next_sys_stat_h='<'sys/stat.h'>'
42099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_stat_h" >&5
42100 $as_echo "$gl_cv_next_sys_stat_h" >&6; }
42102 NEXT_SYS_STAT_H=$gl_cv_next_sys_stat_h
42104 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
42105 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
42106 gl_next_as_first_directive='<'sys/stat.h'>'
42108 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
42109 gl_next_as_first_directive=$gl_cv_next_sys_stat_h
42111 NEXT_AS_FIRST_DIRECTIVE_SYS_STAT_H=$gl_next_as_first_directive
42123 if test $WINDOWS_64_BIT_ST_SIZE = 1; then
42125 $as_echo "#define _GL_WINDOWS_64_BIT_ST_SIZE 1" >>confdefs.h
42129 ac_fn_c_check_type "$LINENO" "nlink_t" "ac_cv_type_nlink_t" "#include <sys/types.h>
42130 #include <sys/stat.h>
42132 if test "x$ac_cv_type_nlink_t" = xyes; then :
42136 $as_echo "#define nlink_t int" >>confdefs.h
42142 for gl_func in fchmodat fstat fstatat futimens lchmod lstat mkdirat mkfifo mkfifoat mknod mknodat stat utimensat; do
42143 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
42144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
42145 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
42146 if eval \${$as_gl_Symbol+:} false; then :
42147 $as_echo_n "(cached) " >&6
42149 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42150 /* end confdefs.h. */
42151 #include <sys/stat.h>
42162 if ac_fn_c_try_compile "$LINENO"; then :
42163 eval "$as_gl_Symbol=yes"
42165 eval "$as_gl_Symbol=no"
42167 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
42169 eval ac_res=\$$as_gl_Symbol
42170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
42171 $as_echo "$ac_res" >&6; }
42172 if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
42173 cat >>confdefs.h <<_ACEOF
42174 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
42177 eval ac_cv_have_decl_$gl_func=yes
42206 if test $gl_cv_have_include_next = yes; then
42207 gl_cv_next_sys_uio_h='<'sys/uio.h'>'
42209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/uio.h>" >&5
42210 $as_echo_n "checking absolute name of <sys/uio.h>... " >&6; }
42211 if ${gl_cv_next_sys_uio_h+:} false; then :
42212 $as_echo_n "(cached) " >&6
42215 if test $ac_cv_header_sys_uio_h = yes; then
42220 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42221 /* end confdefs.h. */
42222 #include <sys/uio.h>
42225 aix*) gl_absname_cpp="$ac_cpp -C" ;;
42226 *) gl_absname_cpp="$ac_cpp" ;;
42231 gl_dirsep_regex='[/\\]'
42234 gl_dirsep_regex='\/'
42237 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
42238 gl_header_literal_regex=`echo 'sys/uio.h' \
42239 | sed -e "$gl_make_literal_regex_sed"`
42240 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
42241 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
42247 gl_cv_absolute_sys_uio_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
42248 sed -n "$gl_absolute_header_sed"`
42250 gl_header=$gl_cv_absolute_sys_uio_h
42251 gl_cv_next_sys_uio_h='"'$gl_header'"'
42253 gl_cv_next_sys_uio_h='<'sys/uio.h'>'
42258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_uio_h" >&5
42259 $as_echo "$gl_cv_next_sys_uio_h" >&6; }
42261 NEXT_SYS_UIO_H=$gl_cv_next_sys_uio_h
42263 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
42264 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
42265 gl_next_as_first_directive='<'sys/uio.h'>'
42267 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
42268 gl_next_as_first_directive=$gl_cv_next_sys_uio_h
42270 NEXT_AS_FIRST_DIRECTIVE_SYS_UIO_H=$gl_next_as_first_directive
42275 if test $ac_cv_header_sys_uio_h = yes; then
42291 if test $ac_cv_header_sysexits_h = yes; then
42308 if test $gl_cv_have_include_next = yes; then
42309 gl_cv_next_sysexits_h='<'sysexits.h'>'
42311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sysexits.h>" >&5
42312 $as_echo_n "checking absolute name of <sysexits.h>... " >&6; }
42313 if ${gl_cv_next_sysexits_h+:} false; then :
42314 $as_echo_n "(cached) " >&6
42317 if test $ac_cv_header_sysexits_h = yes; then
42322 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42323 /* end confdefs.h. */
42324 #include <sysexits.h>
42327 aix*) gl_absname_cpp="$ac_cpp -C" ;;
42328 *) gl_absname_cpp="$ac_cpp" ;;
42333 gl_dirsep_regex='[/\\]'
42336 gl_dirsep_regex='\/'
42339 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
42340 gl_header_literal_regex=`echo 'sysexits.h' \
42341 | sed -e "$gl_make_literal_regex_sed"`
42342 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
42343 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
42349 gl_cv_absolute_sysexits_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
42350 sed -n "$gl_absolute_header_sed"`
42352 gl_header=$gl_cv_absolute_sysexits_h
42353 gl_cv_next_sysexits_h='"'$gl_header'"'
42355 gl_cv_next_sysexits_h='<'sysexits.h'>'
42360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sysexits_h" >&5
42361 $as_echo "$gl_cv_next_sysexits_h" >&6; }
42363 NEXT_SYSEXITS_H=$gl_cv_next_sysexits_h
42365 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
42366 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
42367 gl_next_as_first_directive='<'sysexits.h'>'
42369 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
42370 gl_next_as_first_directive=$gl_cv_next_sysexits_h
42372 NEXT_AS_FIRST_DIRECTIVE_SYSEXITS_H=$gl_next_as_first_directive
42377 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42378 /* end confdefs.h. */
42379 #include <sysexits.h>
42391 case EX_UNAVAILABLE:
42408 if ac_fn_c_try_compile "$LINENO"; then :
42411 SYSEXITS_H=sysexits.h
42413 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
42416 SYSEXITS_H=sysexits.h
42420 if test -n "$SYSEXITS_H"; then
42421 GL_GENERATE_SYSEXITS_H_TRUE=
42422 GL_GENERATE_SYSEXITS_H_FALSE='#'
42424 GL_GENERATE_SYSEXITS_H_TRUE='#'
42425 GL_GENERATE_SYSEXITS_H_FALSE=
42460 if test $gl_cv_have_include_next = yes; then
42461 gl_cv_next_unistd_h='<'unistd.h'>'
42463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <unistd.h>" >&5
42464 $as_echo_n "checking absolute name of <unistd.h>... " >&6; }
42465 if ${gl_cv_next_unistd_h+:} false; then :
42466 $as_echo_n "(cached) " >&6
42469 if test $ac_cv_header_unistd_h = yes; then
42474 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42475 /* end confdefs.h. */
42476 #include <unistd.h>
42479 aix*) gl_absname_cpp="$ac_cpp -C" ;;
42480 *) gl_absname_cpp="$ac_cpp" ;;
42485 gl_dirsep_regex='[/\\]'
42488 gl_dirsep_regex='\/'
42491 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
42492 gl_header_literal_regex=`echo 'unistd.h' \
42493 | sed -e "$gl_make_literal_regex_sed"`
42494 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
42495 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
42501 gl_cv_absolute_unistd_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
42502 sed -n "$gl_absolute_header_sed"`
42504 gl_header=$gl_cv_absolute_unistd_h
42505 gl_cv_next_unistd_h='"'$gl_header'"'
42507 gl_cv_next_unistd_h='<'unistd.h'>'
42512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_unistd_h" >&5
42513 $as_echo "$gl_cv_next_unistd_h" >&6; }
42515 NEXT_UNISTD_H=$gl_cv_next_unistd_h
42517 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
42518 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
42519 gl_next_as_first_directive='<'unistd.h'>'
42521 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
42522 gl_next_as_first_directive=$gl_cv_next_unistd_h
42524 NEXT_AS_FIRST_DIRECTIVE_UNISTD_H=$gl_next_as_first_directive
42529 if test $ac_cv_header_unistd_h = yes; then
42541 for gl_func in chdir chown dup dup2 dup3 environ euidaccess faccessat fchdir fchownat fdatasync fsync ftruncate getcwd getdomainname getdtablesize getgroups gethostname getlogin getlogin_r getpagesize getusershell setusershell endusershell group_member isatty lchown link linkat lseek pipe pipe2 pread pwrite readlink readlinkat rmdir sethostname sleep symlink symlinkat ttyname_r unlink unlinkat usleep; do
42542 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
42543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
42544 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
42545 if eval \${$as_gl_Symbol+:} false; then :
42546 $as_echo_n "(cached) " >&6
42548 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42549 /* end confdefs.h. */
42552 # include <unistd.h>
42554 /* Some systems declare various items in the wrong headers. */
42555 #if !(defined __GLIBC__ && !defined __UCLIBC__)
42556 # include <fcntl.h>
42557 # include <stdio.h>
42558 # include <stdlib.h>
42559 # if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
42573 if ac_fn_c_try_compile "$LINENO"; then :
42574 eval "$as_gl_Symbol=yes"
42576 eval "$as_gl_Symbol=no"
42578 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
42580 eval ac_res=\$$as_gl_Symbol
42581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
42582 $as_echo "$ac_res" >&6; }
42583 if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
42584 cat >>confdefs.h <<_ACEOF
42585 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
42588 eval ac_cv_have_decl_$gl_func=yes
42611 if test $ac_cv_have_decl_unsetenv = no; then
42612 HAVE_DECL_UNSETENV=0
42614 for ac_func in unsetenv
42616 ac_fn_c_check_func "$LINENO" "unsetenv" "ac_cv_func_unsetenv"
42617 if test "x$ac_cv_func_unsetenv" = xyes; then :
42618 cat >>confdefs.h <<_ACEOF
42619 #define HAVE_UNSETENV 1
42625 if test $ac_cv_func_unsetenv = no; then
42629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsetenv() return type" >&5
42630 $as_echo_n "checking for unsetenv() return type... " >&6; }
42631 if ${gt_cv_func_unsetenv_ret+:} false; then :
42632 $as_echo_n "(cached) " >&6
42634 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42635 /* end confdefs.h. */
42638 #define _BSD 1 /* unhide unsetenv declaration in OSF/1 5.1 <stdlib.h> */
42639 #include <stdlib.h>
42644 int unsetenv (const char *name);
42654 if ac_fn_c_try_compile "$LINENO"; then :
42655 gt_cv_func_unsetenv_ret='int'
42657 gt_cv_func_unsetenv_ret='void'
42659 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
42661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_unsetenv_ret" >&5
42662 $as_echo "$gt_cv_func_unsetenv_ret" >&6; }
42663 if test $gt_cv_func_unsetenv_ret = 'void'; then
42665 $as_echo "#define VOID_UNSETENV 1" >>confdefs.h
42670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether unsetenv obeys POSIX" >&5
42671 $as_echo_n "checking whether unsetenv obeys POSIX... " >&6; }
42672 if ${gl_cv_func_unsetenv_works+:} false; then :
42673 $as_echo_n "(cached) " >&6
42675 if test "$cross_compiling" = yes; then :
42677 # Guess yes on glibc systems.
42678 *-gnu*) gl_cv_func_unsetenv_works="guessing yes" ;;
42679 # If we don't know, assume the worst.
42680 *) gl_cv_func_unsetenv_works="guessing no" ;;
42684 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42685 /* end confdefs.h. */
42687 #include <stdlib.h>
42689 extern char **environ;
42695 char entry1[] = "a=1";
42696 char entry2[] = "b=2";
42697 char *env[] = { entry1, entry2, NULL };
42698 if (putenv ((char *) "a=1")) return 1;
42699 if (putenv (entry2)) return 2;
42702 if (getenv ("a")) return 3;
42703 if (!unsetenv ("") || errno != EINVAL) return 4;
42706 if (!getenv ("a")) return 5;
42709 if (getenv ("a")) return 6;
42715 if ac_fn_c_try_run "$LINENO"; then :
42716 gl_cv_func_unsetenv_works=yes
42718 gl_cv_func_unsetenv_works=no
42720 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
42721 conftest.$ac_objext conftest.beam conftest.$ac_ext
42725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_unsetenv_works" >&5
42726 $as_echo "$gl_cv_func_unsetenv_works" >&6; }
42727 case "$gl_cv_func_unsetenv_works" in
42735 if test $HAVE_UNSETENV = 0 || test $REPLACE_UNSETENV = 1; then
42744 gl_LIBOBJS="$gl_LIBOBJS unsetenv.$ac_objext"
42768 $as_echo "#define GNULIB_TEST_UNSETENV 1" >>confdefs.h
42796 if test $ac_cv_func_futimens = no && test $ac_cv_func_futimesat = yes; then
42797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether futimesat handles NULL file" >&5
42798 $as_echo_n "checking whether futimesat handles NULL file... " >&6; }
42799 if ${gl_cv_func_futimesat_works+:} false; then :
42800 $as_echo_n "(cached) " >&6
42802 touch conftest.file
42803 if test "$cross_compiling" = yes; then :
42805 # Guess yes on glibc systems.
42806 *-gnu*) gl_cv_func_futimesat_works="guessing yes" ;;
42807 # If we don't know, assume the worst.
42808 *) gl_cv_func_futimesat_works="guessing no" ;;
42812 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42813 /* end confdefs.h. */
42815 #include <stddef.h>
42816 #include <sys/times.h>
42822 int fd = open ("conftest.file", O_RDWR);
42823 if (fd < 0) return 1;
42824 if (futimesat (fd, NULL, NULL)) return 2;
42830 if ac_fn_c_try_run "$LINENO"; then :
42831 gl_cv_func_futimesat_works=yes
42833 gl_cv_func_futimesat_works=no
42835 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
42836 conftest.$ac_objext conftest.beam conftest.$ac_ext
42839 rm -f conftest.file
42841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_futimesat_works" >&5
42842 $as_echo "$gl_cv_func_futimesat_works" >&6; }
42843 case "$gl_cv_func_futimesat_works" in
42847 $as_echo "#define FUTIMESAT_NULL_BUG 1" >>confdefs.h
42861 if test $ac_cv_func_vasnprintf = no; then
42878 gl_LIBOBJS="$gl_LIBOBJS vasnprintf.$ac_objext"
42888 gl_LIBOBJS="$gl_LIBOBJS printf-args.$ac_objext"
42898 gl_LIBOBJS="$gl_LIBOBJS printf-parse.$ac_objext"
42908 gl_LIBOBJS="$gl_LIBOBJS asnprintf.$ac_objext"
42910 if test $ac_cv_func_vasnprintf = yes; then
42912 $as_echo "#define REPLACE_VASNPRINTF 1" >>confdefs.h
42926 ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
42927 if test "x$ac_cv_type_ptrdiff_t" = xyes; then :
42931 $as_echo "#define ptrdiff_t long" >>confdefs.h
42945 for ac_func in vasprintf
42947 ac_fn_c_check_func "$LINENO" "vasprintf" "ac_cv_func_vasprintf"
42948 if test "x$ac_cv_func_vasprintf" = xyes; then :
42949 cat >>confdefs.h <<_ACEOF
42950 #define HAVE_VASPRINTF 1
42956 if test $ac_cv_func_vasprintf = no; then
42966 gl_LIBOBJS="$gl_LIBOBJS vasprintf.$ac_objext"
42976 gl_LIBOBJS="$gl_LIBOBJS asprintf.$ac_objext"
42979 if test $ac_cv_func_vasprintf = yes; then
42980 REPLACE_VASPRINTF=1
43005 $as_echo "#define GNULIB_TEST_VASPRINTF 1" >>confdefs.h
43011 XGETTEXT_EXTRA_OPTIONS="$XGETTEXT_EXTRA_OPTIONS --flag=asprintf:2:c-format"
43015 XGETTEXT_EXTRA_OPTIONS="$XGETTEXT_EXTRA_OPTIONS --flag=vasprintf:2:c-format"
43019 gl_cv_func_vsnprintf_usable=no
43020 for ac_func in vsnprintf
43022 ac_fn_c_check_func "$LINENO" "vsnprintf" "ac_cv_func_vsnprintf"
43023 if test "x$ac_cv_func_vsnprintf" = xyes; then :
43024 cat >>confdefs.h <<_ACEOF
43025 #define HAVE_VSNPRINTF 1
43031 if test $ac_cv_func_vsnprintf = yes; then
43035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether snprintf respects a size of 1" >&5
43036 $as_echo_n "checking whether snprintf respects a size of 1... " >&6; }
43037 if ${gl_cv_func_snprintf_size1+:} false; then :
43038 $as_echo_n "(cached) " >&6
43041 if test "$cross_compiling" = yes; then :
43042 gl_cv_func_snprintf_size1="guessing yes"
43044 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
43045 /* end confdefs.h. */
43049 # define my_snprintf snprintf
43051 # include <stdarg.h>
43052 static int my_snprintf (char *buf, int size, const char *format, ...)
43056 va_start (args, format);
43057 ret = vsnprintf (buf, size, format, args);
43064 static char buf[8] = { 'D', 'E', 'A', 'D', 'B', 'E', 'E', 'F' };
43065 my_snprintf (buf, 1, "%d", 12345);
43066 return buf[1] != 'E';
43069 if ac_fn_c_try_run "$LINENO"; then :
43070 gl_cv_func_snprintf_size1=yes
43072 gl_cv_func_snprintf_size1=no
43074 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
43075 conftest.$ac_objext conftest.beam conftest.$ac_ext
43080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_snprintf_size1" >&5
43081 $as_echo "$gl_cv_func_snprintf_size1" >&6; }
43083 case "$gl_cv_func_snprintf_size1" in
43086 case "$gl_cv_func_snprintf_retval_c99" in
43090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether printf supports POSIX/XSI format strings with positions" >&5
43091 $as_echo_n "checking whether printf supports POSIX/XSI format strings with positions... " >&6; }
43092 if ${gl_cv_func_printf_positions+:} false; then :
43093 $as_echo_n "(cached) " >&6
43096 if test "$cross_compiling" = yes; then :
43099 netbsd[1-3]* | netbsdelf[1-3]* | netbsdaout[1-3]* | netbsdcoff[1-3]*)
43100 gl_cv_func_printf_positions="guessing no";;
43101 beos*) gl_cv_func_printf_positions="guessing no";;
43102 mingw* | pw*) gl_cv_func_printf_positions="guessing no";;
43103 *) gl_cv_func_printf_positions="guessing yes";;
43107 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
43108 /* end confdefs.h. */
43111 #include <string.h>
43112 /* The string "%2$d %1$d", with dollar characters protected from the shell's
43113 dollar expansion (possibly an autoconf bug). */
43114 static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' };
43115 static char buf[100];
43118 sprintf (buf, format, 33, 55);
43119 return (strcmp (buf, "55 33") != 0);
43122 if ac_fn_c_try_run "$LINENO"; then :
43123 gl_cv_func_printf_positions=yes
43125 gl_cv_func_printf_positions=no
43127 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
43128 conftest.$ac_objext conftest.beam conftest.$ac_ext
43133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_printf_positions" >&5
43134 $as_echo "$gl_cv_func_printf_positions" >&6; }
43136 case "$gl_cv_func_printf_positions" in
43138 gl_cv_func_vsnprintf_usable=yes
43146 if test $gl_cv_func_vsnprintf_usable = no; then
43157 gl_LIBOBJS="$gl_LIBOBJS vsnprintf.$ac_objext"
43159 if test $ac_cv_func_vsnprintf = yes; then
43160 REPLACE_VSNPRINTF=1
43172 if test $ac_cv_have_decl_vsnprintf = no; then
43173 HAVE_DECL_VSNPRINTF=0
43187 $as_echo "#define GNULIB_TEST_VSNPRINTF 1" >>confdefs.h
43209 if test $gl_cv_have_include_next = yes; then
43210 gl_cv_next_wchar_h='<'wchar.h'>'
43212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <wchar.h>" >&5
43213 $as_echo_n "checking absolute name of <wchar.h>... " >&6; }
43214 if ${gl_cv_next_wchar_h+:} false; then :
43215 $as_echo_n "(cached) " >&6
43218 if test $ac_cv_header_wchar_h = yes; then
43223 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
43224 /* end confdefs.h. */
43228 aix*) gl_absname_cpp="$ac_cpp -C" ;;
43229 *) gl_absname_cpp="$ac_cpp" ;;
43234 gl_dirsep_regex='[/\\]'
43237 gl_dirsep_regex='\/'
43240 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
43241 gl_header_literal_regex=`echo 'wchar.h' \
43242 | sed -e "$gl_make_literal_regex_sed"`
43243 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
43244 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
43250 gl_cv_absolute_wchar_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
43251 sed -n "$gl_absolute_header_sed"`
43253 gl_header=$gl_cv_absolute_wchar_h
43254 gl_cv_next_wchar_h='"'$gl_header'"'
43256 gl_cv_next_wchar_h='<'wchar.h'>'
43261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_wchar_h" >&5
43262 $as_echo "$gl_cv_next_wchar_h" >&6; }
43264 NEXT_WCHAR_H=$gl_cv_next_wchar_h
43266 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
43267 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
43268 gl_next_as_first_directive='<'wchar.h'>'
43270 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
43271 gl_next_as_first_directive=$gl_cv_next_wchar_h
43273 NEXT_AS_FIRST_DIRECTIVE_WCHAR_H=$gl_next_as_first_directive
43278 if test $ac_cv_header_wchar_h = yes; then
43288 if test $gt_cv_c_wint_t = yes; then
43296 for gl_func in btowc wctob mbsinit mbrtowc mbrlen mbsrtowcs mbsnrtowcs wcrtomb wcsrtombs wcsnrtombs wcwidth wmemchr wmemcmp wmemcpy wmemmove wmemset wcslen wcsnlen wcscpy wcpcpy wcsncpy wcpncpy wcscat wcsncat wcscmp wcsncmp wcscasecmp wcsncasecmp wcscoll wcsxfrm wcsdup wcschr wcsrchr wcscspn wcsspn wcspbrk wcsstr wcstok wcswidth ; do
43297 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
43298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
43299 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
43300 if eval \${$as_gl_Symbol+:} false; then :
43301 $as_echo_n "(cached) " >&6
43303 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
43304 /* end confdefs.h. */
43306 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
43308 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
43309 included before <wchar.h>. */
43310 #if !(defined __GLIBC__ && !defined __UCLIBC__)
43311 # include <stddef.h>
43312 # include <stdio.h>
43326 if ac_fn_c_try_compile "$LINENO"; then :
43327 eval "$as_gl_Symbol=yes"
43329 eval "$as_gl_Symbol=no"
43331 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
43333 eval ac_res=\$$as_gl_Symbol
43334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
43335 $as_echo "$ac_res" >&6; }
43336 if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
43337 cat >>confdefs.h <<_ACEOF
43338 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
43341 eval ac_cv_have_decl_$gl_func=yes
43368 if test $ac_cv_func_mbsinit = yes && test $ac_cv_func_mbrtowc = yes; then
43372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc handles incomplete characters" >&5
43373 $as_echo_n "checking whether mbrtowc handles incomplete characters... " >&6; }
43374 if ${gl_cv_func_mbrtowc_incomplete_state+:} false; then :
43375 $as_echo_n "(cached) " >&6
43379 # Guess no on AIX and OSF/1.
43380 aix* | osf*) gl_cv_func_mbrtowc_incomplete_state="guessing no" ;;
43381 # Guess yes otherwise.
43382 *) gl_cv_func_mbrtowc_incomplete_state="guessing yes" ;;
43384 if test $LOCALE_JA != none; then
43385 if test "$cross_compiling" = yes; then :
43388 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
43389 /* end confdefs.h. */
43391 #include <locale.h>
43392 #include <string.h>
43393 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
43395 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
43396 included before <wchar.h>. */
43397 #include <stddef.h>
43403 if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
43405 const char input[] = "B\217\253\344\217\251\316er"; /* "Büßer" */
43409 memset (&state, '\0', sizeof (mbstate_t));
43410 if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
43411 if (mbsinit (&state))
43417 if ac_fn_c_try_run "$LINENO"; then :
43418 gl_cv_func_mbrtowc_incomplete_state=yes
43420 gl_cv_func_mbrtowc_incomplete_state=no
43422 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
43423 conftest.$ac_objext conftest.beam conftest.$ac_ext
43429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_incomplete_state" >&5
43430 $as_echo "$gl_cv_func_mbrtowc_incomplete_state" >&6; }
43435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc works as well as mbtowc" >&5
43436 $as_echo_n "checking whether mbrtowc works as well as mbtowc... " >&6; }
43437 if ${gl_cv_func_mbrtowc_sanitycheck+:} false; then :
43438 $as_echo_n "(cached) " >&6
43442 # Guess no on Solaris 8.
43443 solaris2.8) gl_cv_func_mbrtowc_sanitycheck="guessing no" ;;
43444 # Guess yes otherwise.
43445 *) gl_cv_func_mbrtowc_sanitycheck="guessing yes" ;;
43447 if test $LOCALE_ZH_CN != none; then
43448 if test "$cross_compiling" = yes; then :
43451 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
43452 /* end confdefs.h. */
43454 #include <locale.h>
43455 #include <stdlib.h>
43456 #include <string.h>
43457 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
43459 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
43460 included before <wchar.h>. */
43461 #include <stddef.h>
43467 /* This fails on Solaris 8:
43468 mbrtowc returns 2, and sets wc to 0x00F0.
43469 mbtowc returns 4 (correct) and sets wc to 0x5EDC. */
43470 if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
43472 char input[] = "B\250\271\201\060\211\070er"; /* "Büßer" */
43476 memset (&state, '\0', sizeof (mbstate_t));
43477 if (mbrtowc (&wc, input + 3, 6, &state) != 4
43478 && mbtowc (&wc, input + 3, 6) == 4)
43484 if ac_fn_c_try_run "$LINENO"; then :
43485 gl_cv_func_mbrtowc_sanitycheck=yes
43487 gl_cv_func_mbrtowc_sanitycheck=no
43489 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
43490 conftest.$ac_objext conftest.beam conftest.$ac_ext
43496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_sanitycheck" >&5
43497 $as_echo "$gl_cv_func_mbrtowc_sanitycheck" >&6; }
43499 REPLACE_MBSTATE_T=0
43500 case "$gl_cv_func_mbrtowc_incomplete_state" in
43502 *) REPLACE_MBSTATE_T=1 ;;
43504 case "$gl_cv_func_mbrtowc_sanitycheck" in
43506 *) REPLACE_MBSTATE_T=1 ;;
43509 REPLACE_MBSTATE_T=1
43520 if test $ac_cv_func_wcrtomb = no; then
43522 ac_fn_c_check_decl "$LINENO" "wcrtomb" "ac_cv_have_decl_wcrtomb" "
43523 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
43525 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
43526 included before <wchar.h>. */
43527 #include <stddef.h>
43533 if test "x$ac_cv_have_decl_wcrtomb" = xyes; then :
43539 cat >>confdefs.h <<_ACEOF
43540 #define HAVE_DECL_WCRTOMB $ac_have_decl
43543 if test $ac_cv_have_decl_wcrtomb = yes; then
43547 if test $REPLACE_MBSTATE_T = 1; then
43555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether wcrtomb return value is correct" >&5
43556 $as_echo_n "checking whether wcrtomb return value is correct... " >&6; }
43557 if ${gl_cv_func_wcrtomb_retval+:} false; then :
43558 $as_echo_n "(cached) " >&6
43562 # Guess no on AIX 4, OSF/1 and Solaris.
43563 aix4* | osf* | solaris*) gl_cv_func_wcrtomb_retval="guessing no" ;;
43564 # Guess yes otherwise.
43565 *) gl_cv_func_wcrtomb_retval="guessing yes" ;;
43567 if test $LOCALE_FR != none || test $LOCALE_FR_UTF8 != none || test $LOCALE_JA != none || test $LOCALE_ZH_CN != none; then
43568 if test "$cross_compiling" = yes; then :
43571 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
43572 /* end confdefs.h. */
43574 #include <locale.h>
43575 #include <string.h>
43576 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
43578 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
43579 included before <wchar.h>. */
43580 #include <stddef.h>
43587 if (setlocale (LC_ALL, "$LOCALE_FR") != NULL)
43589 if (wcrtomb (NULL, 0, NULL) != 1)
43592 if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL)
43594 if (wcrtomb (NULL, 0, NULL) != 1)
43597 if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
43599 if (wcrtomb (NULL, 0, NULL) != 1)
43602 if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
43604 if (wcrtomb (NULL, 0, NULL) != 1)
43610 if ac_fn_c_try_run "$LINENO"; then :
43611 gl_cv_func_wcrtomb_retval=yes
43613 gl_cv_func_wcrtomb_retval=no
43615 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
43616 conftest.$ac_objext conftest.beam conftest.$ac_ext
43622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_wcrtomb_retval" >&5
43623 $as_echo "$gl_cv_func_wcrtomb_retval" >&6; }
43624 case "$gl_cv_func_wcrtomb_retval" in
43626 *) REPLACE_WCRTOMB=1 ;;
43631 if test $HAVE_WCRTOMB = 0 || test $REPLACE_WCRTOMB = 1; then
43640 gl_LIBOBJS="$gl_LIBOBJS wcrtomb.$ac_objext"
43657 $as_echo "#define GNULIB_TEST_WCRTOMB 1" >>confdefs.h
43672 if test $ac_cv_func_iswcntrl = yes; then
43680 if test $gt_cv_c_wint_t = yes; then
43702 if test $gl_cv_have_include_next = yes; then
43703 gl_cv_next_wctype_h='<'wctype.h'>'
43705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <wctype.h>" >&5
43706 $as_echo_n "checking absolute name of <wctype.h>... " >&6; }
43707 if ${gl_cv_next_wctype_h+:} false; then :
43708 $as_echo_n "(cached) " >&6
43711 if test $ac_cv_header_wctype_h = yes; then
43716 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
43717 /* end confdefs.h. */
43718 #include <wctype.h>
43721 aix*) gl_absname_cpp="$ac_cpp -C" ;;
43722 *) gl_absname_cpp="$ac_cpp" ;;
43727 gl_dirsep_regex='[/\\]'
43730 gl_dirsep_regex='\/'
43733 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
43734 gl_header_literal_regex=`echo 'wctype.h' \
43735 | sed -e "$gl_make_literal_regex_sed"`
43736 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
43737 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
43743 gl_cv_absolute_wctype_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
43744 sed -n "$gl_absolute_header_sed"`
43746 gl_header=$gl_cv_absolute_wctype_h
43747 gl_cv_next_wctype_h='"'$gl_header'"'
43749 gl_cv_next_wctype_h='<'wctype.h'>'
43754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_wctype_h" >&5
43755 $as_echo "$gl_cv_next_wctype_h" >&6; }
43757 NEXT_WCTYPE_H=$gl_cv_next_wctype_h
43759 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
43760 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
43761 gl_next_as_first_directive='<'wctype.h'>'
43763 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
43764 gl_next_as_first_directive=$gl_cv_next_wctype_h
43766 NEXT_AS_FIRST_DIRECTIVE_WCTYPE_H=$gl_next_as_first_directive
43771 if test $ac_cv_header_wctype_h = yes; then
43772 if test $ac_cv_func_iswcntrl = yes; then
43773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iswcntrl works" >&5
43774 $as_echo_n "checking whether iswcntrl works... " >&6; }
43775 if ${gl_cv_func_iswcntrl_works+:} false; then :
43776 $as_echo_n "(cached) " >&6
43779 if test "$cross_compiling" = yes; then :
43780 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
43781 /* end confdefs.h. */
43782 #include <stdlib.h>
43783 #if __GNU_LIBRARY__ == 1
43784 Linux libc5 i18n is broken.
43794 if ac_fn_c_try_compile "$LINENO"; then :
43795 gl_cv_func_iswcntrl_works="guessing yes"
43797 gl_cv_func_iswcntrl_works="guessing no"
43799 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
43802 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
43803 /* end confdefs.h. */
43805 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be
43806 included before <wchar.h>.
43807 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h>
43808 must be included before <wchar.h>. */
43809 #include <stddef.h>
43813 #include <wctype.h>
43814 int main () { return iswprint ('x') == 0; }
43817 if ac_fn_c_try_run "$LINENO"; then :
43818 gl_cv_func_iswcntrl_works=yes
43820 gl_cv_func_iswcntrl_works=no
43822 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
43823 conftest.$ac_objext conftest.beam conftest.$ac_ext
43828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_iswcntrl_works" >&5
43829 $as_echo "$gl_cv_func_iswcntrl_works" >&6; }
43837 case "$gl_cv_func_iswcntrl_works" in
43838 *yes) REPLACE_ISWCNTRL=0 ;;
43839 *) REPLACE_ISWCNTRL=1 ;;
43843 if test $HAVE_ISWCNTRL = 0 || test $REPLACE_ISWCNTRL = 1; then
43847 if test $REPLACE_ISWCNTRL = 1; then
43850 for ac_func in towlower
43852 ac_fn_c_check_func "$LINENO" "towlower" "ac_cv_func_towlower"
43853 if test "x$ac_cv_func_towlower" = xyes; then :
43854 cat >>confdefs.h <<_ACEOF
43855 #define HAVE_TOWLOWER 1
43861 if test $ac_cv_func_towlower = yes; then
43864 ac_fn_c_check_decl "$LINENO" "towlower" "ac_cv_have_decl_towlower" "/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be
43865 included before <wchar.h>.
43866 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h>
43867 must be included before <wchar.h>. */
43868 #include <stddef.h>
43873 # include <wctype.h>
43877 if test "x$ac_cv_have_decl_towlower" = xyes; then :
43883 cat >>confdefs.h <<_ACEOF
43884 #define HAVE_DECL_TOWLOWER $ac_have_decl
43887 if test $ac_cv_have_decl_towlower = yes; then
43896 if test $HAVE_ISWCNTRL = 0 || test $REPLACE_TOWLOWER = 1; then
43900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wctype_t" >&5
43901 $as_echo_n "checking for wctype_t... " >&6; }
43902 if ${gl_cv_type_wctype_t+:} false; then :
43903 $as_echo_n "(cached) " >&6
43905 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
43906 /* end confdefs.h. */
43907 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be
43908 included before <wchar.h>.
43909 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h>
43910 must be included before <wchar.h>. */
43911 #include <stddef.h>
43916 # include <wctype.h>
43928 if ac_fn_c_try_compile "$LINENO"; then :
43929 gl_cv_type_wctype_t=yes
43931 gl_cv_type_wctype_t=no
43933 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
43936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_type_wctype_t" >&5
43937 $as_echo "$gl_cv_type_wctype_t" >&6; }
43938 if test $gl_cv_type_wctype_t = no; then
43942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wctrans_t" >&5
43943 $as_echo_n "checking for wctrans_t... " >&6; }
43944 if ${gl_cv_type_wctrans_t+:} false; then :
43945 $as_echo_n "(cached) " >&6
43947 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
43948 /* end confdefs.h. */
43949 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be
43950 included before <wchar.h>.
43951 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h>
43952 must be included before <wchar.h>. */
43953 #include <stddef.h>
43957 #include <wctype.h>
43968 if ac_fn_c_try_compile "$LINENO"; then :
43969 gl_cv_type_wctrans_t=yes
43971 gl_cv_type_wctrans_t=no
43973 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
43976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_type_wctrans_t" >&5
43977 $as_echo "$gl_cv_type_wctrans_t" >&6; }
43978 if test $gl_cv_type_wctrans_t = no; then
43983 for gl_func in wctype iswctype wctrans towctrans ; do
43984 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
43985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
43986 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
43987 if eval \${$as_gl_Symbol+:} false; then :
43988 $as_echo_n "(cached) " >&6
43990 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
43991 /* end confdefs.h. */
43993 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
43995 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
43996 included before <wchar.h>. */
43997 #if !(defined __GLIBC__ && !defined __UCLIBC__)
43998 # include <stddef.h>
43999 # include <stdio.h>
44001 # include <wchar.h>
44003 #include <wctype.h>
44014 if ac_fn_c_try_compile "$LINENO"; then :
44015 eval "$as_gl_Symbol=yes"
44017 eval "$as_gl_Symbol=no"
44019 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
44021 eval ac_res=\$$as_gl_Symbol
44022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
44023 $as_echo "$ac_res" >&6; }
44024 if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
44025 cat >>confdefs.h <<_ACEOF
44026 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
44029 eval ac_cv_have_decl_$gl_func=yes
44040 for ac_header in stdint.h
44042 ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
44043 if test "x$ac_cv_header_stdint_h" = xyes; then :
44044 cat >>confdefs.h <<_ACEOF
44045 #define HAVE_STDINT_H 1
44061 XGETTEXT_EXTRA_OPTIONS="$XGETTEXT_EXTRA_OPTIONS --flag=xasprintf:1:c-format"
44063 # End of code from modules
44084 gl_source_base='tests'
44085 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
44087 gl_module_indicator_condition=$gltests_WITNESS
44098 for ac_header in fcntl.h sys/file.h linux/fiemap.h
44100 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
44101 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
44102 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
44103 cat >>confdefs.h <<_ACEOF
44104 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
44111 for ac_func in lchown posix_fadvise
44113 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
44114 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
44115 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
44116 cat >>confdefs.h <<_ACEOF
44117 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
44124 # Internationalization support.
44126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
44127 $as_echo_n "checking whether NLS is requested... " >&6; }
44128 # Check whether --enable-nls was given.
44129 if test "${enable_nls+set}" = set; then :
44130 enableval=$enable_nls; USE_NLS=$enableval
44135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
44136 $as_echo "$USE_NLS" >&6; }
44141 GETTEXT_MACRO_VERSION=0.18
44146 # Prepare PATH_SEPARATOR.
44147 # The user is always right.
44148 if test "${PATH_SEPARATOR+set}" != set; then
44149 # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
44150 # contains only /bin. Note that ksh looks also at the FPATH variable,
44151 # so we have to set that as well for the test.
44153 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
44154 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
44155 || PATH_SEPARATOR=';'
44159 # Find out how to test for executable files. Don't use a zero-byte file,
44160 # as systems may use methods other than mode bits to determine executability.
44161 cat >conf$$.file <<_ASEOF
44165 chmod +x conf$$.file
44166 if test -x conf$$.file >/dev/null 2>&1; then
44167 ac_executable_p="test -x"
44169 ac_executable_p="test -f"
44173 # Extract the first word of "msgfmt", so it can be a program name with args.
44174 set dummy msgfmt; ac_word=$2
44175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
44176 $as_echo_n "checking for $ac_word... " >&6; }
44177 if ${ac_cv_path_MSGFMT+:} false; then :
44178 $as_echo_n "(cached) " >&6
44182 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
44185 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
44186 for ac_dir in $PATH; do
44188 test -z "$ac_dir" && ac_dir=.
44189 for ac_exec_ext in '' $ac_executable_extensions; do
44190 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
44191 echo "$as_me: trying $ac_dir/$ac_word..." >&5
44192 if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
44193 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
44194 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
44201 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
44205 MSGFMT="$ac_cv_path_MSGFMT"
44206 if test "$MSGFMT" != ":"; then
44207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
44208 $as_echo "$MSGFMT" >&6; }
44210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
44211 $as_echo "no" >&6; }
44214 # Extract the first word of "gmsgfmt", so it can be a program name with args.
44215 set dummy gmsgfmt; ac_word=$2
44216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
44217 $as_echo_n "checking for $ac_word... " >&6; }
44218 if ${ac_cv_path_GMSGFMT+:} false; then :
44219 $as_echo_n "(cached) " >&6
44223 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
44226 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
44227 for as_dir in $PATH
44230 test -z "$as_dir" && as_dir=.
44231 for ac_exec_ext in '' $ac_executable_extensions; do
44232 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
44233 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
44234 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
44241 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
44245 GMSGFMT=$ac_cv_path_GMSGFMT
44246 if test -n "$GMSGFMT"; then
44247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
44248 $as_echo "$GMSGFMT" >&6; }
44250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
44251 $as_echo "no" >&6; }
44256 case `$MSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
44257 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) MSGFMT_015=: ;;
44258 *) MSGFMT_015=$MSGFMT ;;
44261 case `$GMSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
44262 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) GMSGFMT_015=: ;;
44263 *) GMSGFMT_015=$GMSGFMT ;;
44268 # Prepare PATH_SEPARATOR.
44269 # The user is always right.
44270 if test "${PATH_SEPARATOR+set}" != set; then
44271 # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
44272 # contains only /bin. Note that ksh looks also at the FPATH variable,
44273 # so we have to set that as well for the test.
44275 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
44276 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
44277 || PATH_SEPARATOR=';'
44281 # Find out how to test for executable files. Don't use a zero-byte file,
44282 # as systems may use methods other than mode bits to determine executability.
44283 cat >conf$$.file <<_ASEOF
44287 chmod +x conf$$.file
44288 if test -x conf$$.file >/dev/null 2>&1; then
44289 ac_executable_p="test -x"
44291 ac_executable_p="test -f"
44295 # Extract the first word of "xgettext", so it can be a program name with args.
44296 set dummy xgettext; ac_word=$2
44297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
44298 $as_echo_n "checking for $ac_word... " >&6; }
44299 if ${ac_cv_path_XGETTEXT+:} false; then :
44300 $as_echo_n "(cached) " >&6
44302 case "$XGETTEXT" in
44304 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
44307 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
44308 for ac_dir in $PATH; do
44310 test -z "$ac_dir" && ac_dir=.
44311 for ac_exec_ext in '' $ac_executable_extensions; do
44312 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
44313 echo "$as_me: trying $ac_dir/$ac_word..." >&5
44314 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
44315 (if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
44316 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
44323 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
44327 XGETTEXT="$ac_cv_path_XGETTEXT"
44328 if test "$XGETTEXT" != ":"; then
44329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
44330 $as_echo "$XGETTEXT" >&6; }
44332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
44333 $as_echo "no" >&6; }
44338 case `$XGETTEXT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
44339 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) XGETTEXT_015=: ;;
44340 *) XGETTEXT_015=$XGETTEXT ;;
44345 # Prepare PATH_SEPARATOR.
44346 # The user is always right.
44347 if test "${PATH_SEPARATOR+set}" != set; then
44348 # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
44349 # contains only /bin. Note that ksh looks also at the FPATH variable,
44350 # so we have to set that as well for the test.
44352 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
44353 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
44354 || PATH_SEPARATOR=';'
44358 # Find out how to test for executable files. Don't use a zero-byte file,
44359 # as systems may use methods other than mode bits to determine executability.
44360 cat >conf$$.file <<_ASEOF
44364 chmod +x conf$$.file
44365 if test -x conf$$.file >/dev/null 2>&1; then
44366 ac_executable_p="test -x"
44368 ac_executable_p="test -f"
44372 # Extract the first word of "msgmerge", so it can be a program name with args.
44373 set dummy msgmerge; ac_word=$2
44374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
44375 $as_echo_n "checking for $ac_word... " >&6; }
44376 if ${ac_cv_path_MSGMERGE+:} false; then :
44377 $as_echo_n "(cached) " >&6
44379 case "$MSGMERGE" in
44381 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
44384 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
44385 for ac_dir in $PATH; do
44387 test -z "$ac_dir" && ac_dir=.
44388 for ac_exec_ext in '' $ac_executable_extensions; do
44389 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
44390 echo "$as_me: trying $ac_dir/$ac_word..." >&5
44391 if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
44392 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
44399 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
44403 MSGMERGE="$ac_cv_path_MSGMERGE"
44404 if test "$MSGMERGE" != ":"; then
44405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
44406 $as_echo "$MSGMERGE" >&6; }
44408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
44409 $as_echo "no" >&6; }
44413 test -n "$localedir" || localedir='${datadir}/locale'
44416 test -n "${XGETTEXT_EXTRA_OPTIONS+set}" || XGETTEXT_EXTRA_OPTIONS=
44419 ac_config_commands="$ac_config_commands po-directories"
44435 acl_save_prefix="$prefix"
44436 prefix="$acl_final_prefix"
44437 acl_save_exec_prefix="$exec_prefix"
44438 exec_prefix="$acl_final_exec_prefix"
44440 eval additional_includedir=\"$includedir\"
44441 eval additional_libdir=\"$libdir\"
44443 exec_prefix="$acl_save_exec_prefix"
44444 prefix="$acl_save_prefix"
44447 # Check whether --with-libiconv-prefix was given.
44448 if test "${with_libiconv_prefix+set}" = set; then :
44449 withval=$with_libiconv_prefix;
44450 if test "X$withval" = "Xno"; then
44453 if test "X$withval" = "X"; then
44455 acl_save_prefix="$prefix"
44456 prefix="$acl_final_prefix"
44457 acl_save_exec_prefix="$exec_prefix"
44458 exec_prefix="$acl_final_exec_prefix"
44460 eval additional_includedir=\"$includedir\"
44461 eval additional_libdir=\"$libdir\"
44463 exec_prefix="$acl_save_exec_prefix"
44464 prefix="$acl_save_prefix"
44467 additional_includedir="$withval/include"
44468 additional_libdir="$withval/$acl_libdirstem"
44469 if test "$acl_libdirstem2" != "$acl_libdirstem" \
44470 && ! test -d "$withval/$acl_libdirstem"; then
44471 additional_libdir="$withval/$acl_libdirstem2"
44485 names_already_handled=
44486 names_next_round='iconv '
44487 while test -n "$names_next_round"; do
44488 names_this_round="$names_next_round"
44490 for name in $names_this_round; do
44492 for n in $names_already_handled; do
44493 if test "$n" = "$name"; then
44494 already_handled=yes
44498 if test -z "$already_handled"; then
44499 names_already_handled="$names_already_handled $name"
44500 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'`
44501 eval value=\"\$HAVE_LIB$uppername\"
44502 if test -n "$value"; then
44503 if test "$value" = yes; then
44504 eval value=\"\$LIB$uppername\"
44505 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
44506 eval value=\"\$LTLIB$uppername\"
44507 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
44516 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
44517 if test -n "$acl_shlibext"; then
44518 shrext=".$acl_shlibext" # typically: shrext=.so
44522 if test $use_additional = yes; then
44523 dir="$additional_libdir"
44524 if test -n "$acl_shlibext"; then
44525 if test -f "$dir/$libname$shrext"; then
44527 found_so="$dir/$libname$shrext"
44529 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
44530 ver=`(cd "$dir" && \
44531 for f in "$libname$shrext".*; do echo "$f"; done \
44532 | sed -e "s,^$libname$shrext\\\\.,," \
44533 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
44534 | sed 1q ) 2>/dev/null`
44535 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
44537 found_so="$dir/$libname$shrext.$ver"
44540 eval library_names=\"$acl_library_names_spec\"
44541 for f in $library_names; do
44542 if test -f "$dir/$f"; then
44551 if test "X$found_dir" = "X"; then
44552 if test -f "$dir/$libname.$acl_libext"; then
44554 found_a="$dir/$libname.$acl_libext"
44557 if test "X$found_dir" != "X"; then
44558 if test -f "$dir/$libname.la"; then
44559 found_la="$dir/$libname.la"
44563 if test "X$found_dir" = "X"; then
44564 for x in $LDFLAGS $LTLIBICONV; do
44566 acl_save_prefix="$prefix"
44567 prefix="$acl_final_prefix"
44568 acl_save_exec_prefix="$exec_prefix"
44569 exec_prefix="$acl_final_exec_prefix"
44571 exec_prefix="$acl_save_exec_prefix"
44572 prefix="$acl_save_prefix"
44576 dir=`echo "X$x" | sed -e 's/^X-L//'`
44577 if test -n "$acl_shlibext"; then
44578 if test -f "$dir/$libname$shrext"; then
44580 found_so="$dir/$libname$shrext"
44582 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
44583 ver=`(cd "$dir" && \
44584 for f in "$libname$shrext".*; do echo "$f"; done \
44585 | sed -e "s,^$libname$shrext\\\\.,," \
44586 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
44587 | sed 1q ) 2>/dev/null`
44588 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
44590 found_so="$dir/$libname$shrext.$ver"
44593 eval library_names=\"$acl_library_names_spec\"
44594 for f in $library_names; do
44595 if test -f "$dir/$f"; then
44604 if test "X$found_dir" = "X"; then
44605 if test -f "$dir/$libname.$acl_libext"; then
44607 found_a="$dir/$libname.$acl_libext"
44610 if test "X$found_dir" != "X"; then
44611 if test -f "$dir/$libname.la"; then
44612 found_la="$dir/$libname.la"
44617 if test "X$found_dir" != "X"; then
44622 if test "X$found_dir" != "X"; then
44623 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
44624 if test "X$found_so" != "X"; then
44625 if test "$enable_rpath" = no \
44626 || test "X$found_dir" = "X/usr/$acl_libdirstem" \
44627 || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
44628 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
44631 for x in $ltrpathdirs; do
44632 if test "X$x" = "X$found_dir"; then
44637 if test -z "$haveit"; then
44638 ltrpathdirs="$ltrpathdirs $found_dir"
44640 if test "$acl_hardcode_direct" = yes; then
44641 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
44643 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
44644 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
44646 for x in $rpathdirs; do
44647 if test "X$x" = "X$found_dir"; then
44652 if test -z "$haveit"; then
44653 rpathdirs="$rpathdirs $found_dir"
44657 for x in $LDFLAGS $LIBICONV; do
44659 acl_save_prefix="$prefix"
44660 prefix="$acl_final_prefix"
44661 acl_save_exec_prefix="$exec_prefix"
44662 exec_prefix="$acl_final_exec_prefix"
44664 exec_prefix="$acl_save_exec_prefix"
44665 prefix="$acl_save_prefix"
44667 if test "X$x" = "X-L$found_dir"; then
44672 if test -z "$haveit"; then
44673 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
44675 if test "$acl_hardcode_minus_L" != no; then
44676 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
44678 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
44684 if test "X$found_a" != "X"; then
44685 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
44687 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
44690 additional_includedir=
44691 case "$found_dir" in
44692 */$acl_libdirstem | */$acl_libdirstem/)
44693 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
44694 if test "$name" = 'iconv'; then
44695 LIBICONV_PREFIX="$basedir"
44697 additional_includedir="$basedir/include"
44699 */$acl_libdirstem2 | */$acl_libdirstem2/)
44700 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
44701 if test "$name" = 'iconv'; then
44702 LIBICONV_PREFIX="$basedir"
44704 additional_includedir="$basedir/include"
44707 if test "X$additional_includedir" != "X"; then
44708 if test "X$additional_includedir" != "X/usr/include"; then
44710 if test "X$additional_includedir" = "X/usr/local/include"; then
44711 if test -n "$GCC"; then
44713 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
44717 if test -z "$haveit"; then
44718 for x in $CPPFLAGS $INCICONV; do
44720 acl_save_prefix="$prefix"
44721 prefix="$acl_final_prefix"
44722 acl_save_exec_prefix="$exec_prefix"
44723 exec_prefix="$acl_final_exec_prefix"
44725 exec_prefix="$acl_save_exec_prefix"
44726 prefix="$acl_save_prefix"
44728 if test "X$x" = "X-I$additional_includedir"; then
44733 if test -z "$haveit"; then
44734 if test -d "$additional_includedir"; then
44735 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
44741 if test -n "$found_la"; then
44742 save_libdir="$libdir"
44743 case "$found_la" in
44744 */* | *\\*) . "$found_la" ;;
44745 *) . "./$found_la" ;;
44747 libdir="$save_libdir"
44748 for dep in $dependency_libs; do
44751 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
44752 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
44753 && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
44755 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
44756 || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
44757 if test -n "$GCC"; then
44759 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
44763 if test -z "$haveit"; then
44765 for x in $LDFLAGS $LIBICONV; do
44767 acl_save_prefix="$prefix"
44768 prefix="$acl_final_prefix"
44769 acl_save_exec_prefix="$exec_prefix"
44770 exec_prefix="$acl_final_exec_prefix"
44772 exec_prefix="$acl_save_exec_prefix"
44773 prefix="$acl_save_prefix"
44775 if test "X$x" = "X-L$additional_libdir"; then
44780 if test -z "$haveit"; then
44781 if test -d "$additional_libdir"; then
44782 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
44786 for x in $LDFLAGS $LTLIBICONV; do
44788 acl_save_prefix="$prefix"
44789 prefix="$acl_final_prefix"
44790 acl_save_exec_prefix="$exec_prefix"
44791 exec_prefix="$acl_final_exec_prefix"
44793 exec_prefix="$acl_save_exec_prefix"
44794 prefix="$acl_save_prefix"
44796 if test "X$x" = "X-L$additional_libdir"; then
44801 if test -z "$haveit"; then
44802 if test -d "$additional_libdir"; then
44803 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
44810 dir=`echo "X$dep" | sed -e 's/^X-R//'`
44811 if test "$enable_rpath" != no; then
44813 for x in $rpathdirs; do
44814 if test "X$x" = "X$dir"; then
44819 if test -z "$haveit"; then
44820 rpathdirs="$rpathdirs $dir"
44823 for x in $ltrpathdirs; do
44824 if test "X$x" = "X$dir"; then
44829 if test -z "$haveit"; then
44830 ltrpathdirs="$ltrpathdirs $dir"
44835 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
44838 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
44841 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
44842 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
44848 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
44849 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
44855 if test "X$rpathdirs" != "X"; then
44856 if test -n "$acl_hardcode_libdir_separator"; then
44858 for found_dir in $rpathdirs; do
44859 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
44861 acl_save_libdir="$libdir"
44863 eval flag=\"$acl_hardcode_libdir_flag_spec\"
44864 libdir="$acl_save_libdir"
44865 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
44867 for found_dir in $rpathdirs; do
44868 acl_save_libdir="$libdir"
44869 libdir="$found_dir"
44870 eval flag=\"$acl_hardcode_libdir_flag_spec\"
44871 libdir="$acl_save_libdir"
44872 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
44876 if test "X$ltrpathdirs" != "X"; then
44877 for found_dir in $ltrpathdirs; do
44878 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
44912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
44913 $as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
44914 if ${gt_cv_func_CFPreferencesCopyAppValue+:} false; then :
44915 $as_echo_n "(cached) " >&6
44917 gt_save_LIBS="$LIBS"
44918 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
44919 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
44920 /* end confdefs.h. */
44921 #include <CoreFoundation/CFPreferences.h>
44925 CFPreferencesCopyAppValue(NULL, NULL)
44930 if ac_fn_c_try_link "$LINENO"; then :
44931 gt_cv_func_CFPreferencesCopyAppValue=yes
44933 gt_cv_func_CFPreferencesCopyAppValue=no
44935 rm -f core conftest.err conftest.$ac_objext \
44936 conftest$ac_exeext conftest.$ac_ext
44937 LIBS="$gt_save_LIBS"
44939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
44940 $as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
44941 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
44943 $as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
44946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5
44947 $as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
44948 if ${gt_cv_func_CFLocaleCopyCurrent+:} false; then :
44949 $as_echo_n "(cached) " >&6
44951 gt_save_LIBS="$LIBS"
44952 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
44953 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
44954 /* end confdefs.h. */
44955 #include <CoreFoundation/CFLocale.h>
44959 CFLocaleCopyCurrent();
44964 if ac_fn_c_try_link "$LINENO"; then :
44965 gt_cv_func_CFLocaleCopyCurrent=yes
44967 gt_cv_func_CFLocaleCopyCurrent=no
44969 rm -f core conftest.err conftest.$ac_objext \
44970 conftest$ac_exeext conftest.$ac_ext
44971 LIBS="$gt_save_LIBS"
44973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
44974 $as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
44975 if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
44977 $as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h
44981 if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
44982 INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
44994 case " $gt_needs " in
44995 *" need-formatstring-macros "*) gt_api_version=3 ;;
44996 *" need-ngettext "*) gt_api_version=2 ;;
44997 *) gt_api_version=1 ;;
44999 gt_func_gnugettext_libc="gt_cv_func_gnugettext${gt_api_version}_libc"
45000 gt_func_gnugettext_libintl="gt_cv_func_gnugettext${gt_api_version}_libintl"
45002 if test "$USE_NLS" = "yes"; then
45003 gt_use_preinstalled_gnugettext=no
45006 if test $gt_api_version -ge 3; then
45007 gt_revision_test_code='
45008 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
45009 #define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1)
45011 typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1];
45014 gt_revision_test_code=
45016 if test $gt_api_version -ge 2; then
45017 gt_expression_test_code=' + * ngettext ("", "", 0)'
45019 gt_expression_test_code=
45022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
45023 $as_echo_n "checking for GNU gettext in libc... " >&6; }
45024 if eval \${$gt_func_gnugettext_libc+:} false; then :
45025 $as_echo_n "(cached) " >&6
45027 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
45028 /* end confdefs.h. */
45030 #include <libintl.h>
45031 $gt_revision_test_code
45032 extern int _nl_msg_cat_cntr;
45033 extern int *_nl_domain_bindings;
45039 bindtextdomain ("", "");
45040 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_domain_bindings
45046 if ac_fn_c_try_link "$LINENO"; then :
45047 eval "$gt_func_gnugettext_libc=yes"
45049 eval "$gt_func_gnugettext_libc=no"
45051 rm -f core conftest.err conftest.$ac_objext \
45052 conftest$ac_exeext conftest.$ac_ext
45054 eval ac_res=\$$gt_func_gnugettext_libc
45055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
45056 $as_echo "$ac_res" >&6; }
45058 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then
45064 am_save_CPPFLAGS="$CPPFLAGS"
45066 for element in $INCICONV; do
45068 for x in $CPPFLAGS; do
45070 acl_save_prefix="$prefix"
45071 prefix="$acl_final_prefix"
45072 acl_save_exec_prefix="$exec_prefix"
45073 exec_prefix="$acl_final_exec_prefix"
45075 exec_prefix="$acl_save_exec_prefix"
45076 prefix="$acl_save_prefix"
45078 if test "X$x" = "X$element"; then
45083 if test -z "$haveit"; then
45084 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
45089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
45090 $as_echo_n "checking for iconv... " >&6; }
45091 if ${am_cv_func_iconv+:} false; then :
45092 $as_echo_n "(cached) " >&6
45095 am_cv_func_iconv="no, consider installing GNU libiconv"
45097 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
45098 /* end confdefs.h. */
45100 #include <stdlib.h>
45106 iconv_t cd = iconv_open("","");
45107 iconv(cd,NULL,NULL,NULL,NULL);
45113 if ac_fn_c_try_link "$LINENO"; then :
45114 am_cv_func_iconv=yes
45116 rm -f core conftest.err conftest.$ac_objext \
45117 conftest$ac_exeext conftest.$ac_ext
45118 if test "$am_cv_func_iconv" != yes; then
45119 am_save_LIBS="$LIBS"
45120 LIBS="$LIBS $LIBICONV"
45121 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
45122 /* end confdefs.h. */
45124 #include <stdlib.h>
45130 iconv_t cd = iconv_open("","");
45131 iconv(cd,NULL,NULL,NULL,NULL);
45137 if ac_fn_c_try_link "$LINENO"; then :
45138 am_cv_lib_iconv=yes
45139 am_cv_func_iconv=yes
45141 rm -f core conftest.err conftest.$ac_objext \
45142 conftest$ac_exeext conftest.$ac_ext
45143 LIBS="$am_save_LIBS"
45147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
45148 $as_echo "$am_cv_func_iconv" >&6; }
45149 if test "$am_cv_func_iconv" = yes; then
45150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5
45151 $as_echo_n "checking for working iconv... " >&6; }
45152 if ${am_cv_func_iconv_works+:} false; then :
45153 $as_echo_n "(cached) " >&6
45156 am_save_LIBS="$LIBS"
45157 if test $am_cv_lib_iconv = yes; then
45158 LIBS="$LIBS $LIBICONV"
45160 if test "$cross_compiling" = yes; then :
45163 aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
45164 *) am_cv_func_iconv_works="guessing yes" ;;
45168 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
45169 /* end confdefs.h. */
45172 #include <string.h>
45176 /* Test against AIX 5.1 bug: Failures are not distinguishable from successful
45179 iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
45180 if (cd_utf8_to_88591 != (iconv_t)(-1))
45182 static const char input[] = "\342\202\254"; /* EURO SIGN */
45184 const char *inptr = input;
45185 size_t inbytesleft = strlen (input);
45186 char *outptr = buf;
45187 size_t outbytesleft = sizeof (buf);
45188 size_t res = iconv (cd_utf8_to_88591,
45189 (char **) &inptr, &inbytesleft,
45190 &outptr, &outbytesleft);
45193 iconv_close (cd_utf8_to_88591);
45196 /* Test against Solaris 10 bug: Failures are not distinguishable from
45197 successful returns. */
45199 iconv_t cd_ascii_to_88591 = iconv_open ("ISO8859-1", "646");
45200 if (cd_ascii_to_88591 != (iconv_t)(-1))
45202 static const char input[] = "\263";
45204 const char *inptr = input;
45205 size_t inbytesleft = strlen (input);
45206 char *outptr = buf;
45207 size_t outbytesleft = sizeof (buf);
45208 size_t res = iconv (cd_ascii_to_88591,
45209 (char **) &inptr, &inbytesleft,
45210 &outptr, &outbytesleft);
45213 iconv_close (cd_ascii_to_88591);
45216 /* Test against AIX 6.1..7.1 bug: Buffer overrun. */
45218 iconv_t cd_88591_to_utf8 = iconv_open ("UTF-8", "ISO-8859-1");
45219 if (cd_88591_to_utf8 != (iconv_t)(-1))
45221 static const char input[] = "\304";
45222 static char buf[2] = { (char)0xDE, (char)0xAD };
45223 const char *inptr = input;
45224 size_t inbytesleft = 1;
45225 char *outptr = buf;
45226 size_t outbytesleft = 1;
45227 size_t res = iconv (cd_88591_to_utf8,
45228 (char **) &inptr, &inbytesleft,
45229 &outptr, &outbytesleft);
45230 if (res != (size_t)(-1) || outptr - buf > 1 || buf[1] != (char)0xAD)
45232 iconv_close (cd_88591_to_utf8);
45235 #if 0 /* This bug could be worked around by the caller. */
45236 /* Test against HP-UX 11.11 bug: Positive return value instead of 0. */
45238 iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
45239 if (cd_88591_to_utf8 != (iconv_t)(-1))
45241 static const char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
45243 const char *inptr = input;
45244 size_t inbytesleft = strlen (input);
45245 char *outptr = buf;
45246 size_t outbytesleft = sizeof (buf);
45247 size_t res = iconv (cd_88591_to_utf8,
45248 (char **) &inptr, &inbytesleft,
45249 &outptr, &outbytesleft);
45252 iconv_close (cd_88591_to_utf8);
45256 /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
45258 if (/* Try standardized names. */
45259 iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1)
45260 /* Try IRIX, OSF/1 names. */
45261 && iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1)
45262 /* Try AIX names. */
45263 && iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1)
45264 /* Try HP-UX names. */
45265 && iconv_open ("utf8", "eucJP") == (iconv_t)(-1))
45270 if ac_fn_c_try_run "$LINENO"; then :
45271 am_cv_func_iconv_works=yes
45273 am_cv_func_iconv_works=no
45275 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
45276 conftest.$ac_objext conftest.beam conftest.$ac_ext
45279 LIBS="$am_save_LIBS"
45282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5
45283 $as_echo "$am_cv_func_iconv_works" >&6; }
45284 case "$am_cv_func_iconv_works" in
45285 *no) am_func_iconv=no am_cv_lib_iconv=no ;;
45286 *) am_func_iconv=yes ;;
45289 am_func_iconv=no am_cv_lib_iconv=no
45291 if test "$am_func_iconv" = yes; then
45293 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
45296 if test "$am_cv_lib_iconv" = yes; then
45297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
45298 $as_echo_n "checking how to link with libiconv... " >&6; }
45299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
45300 $as_echo "$LIBICONV" >&6; }
45302 CPPFLAGS="$am_save_CPPFLAGS"
45319 acl_save_prefix="$prefix"
45320 prefix="$acl_final_prefix"
45321 acl_save_exec_prefix="$exec_prefix"
45322 exec_prefix="$acl_final_exec_prefix"
45324 eval additional_includedir=\"$includedir\"
45325 eval additional_libdir=\"$libdir\"
45327 exec_prefix="$acl_save_exec_prefix"
45328 prefix="$acl_save_prefix"
45331 # Check whether --with-libintl-prefix was given.
45332 if test "${with_libintl_prefix+set}" = set; then :
45333 withval=$with_libintl_prefix;
45334 if test "X$withval" = "Xno"; then
45337 if test "X$withval" = "X"; then
45339 acl_save_prefix="$prefix"
45340 prefix="$acl_final_prefix"
45341 acl_save_exec_prefix="$exec_prefix"
45342 exec_prefix="$acl_final_exec_prefix"
45344 eval additional_includedir=\"$includedir\"
45345 eval additional_libdir=\"$libdir\"
45347 exec_prefix="$acl_save_exec_prefix"
45348 prefix="$acl_save_prefix"
45351 additional_includedir="$withval/include"
45352 additional_libdir="$withval/$acl_libdirstem"
45353 if test "$acl_libdirstem2" != "$acl_libdirstem" \
45354 && ! test -d "$withval/$acl_libdirstem"; then
45355 additional_libdir="$withval/$acl_libdirstem2"
45369 names_already_handled=
45370 names_next_round='intl '
45371 while test -n "$names_next_round"; do
45372 names_this_round="$names_next_round"
45374 for name in $names_this_round; do
45376 for n in $names_already_handled; do
45377 if test "$n" = "$name"; then
45378 already_handled=yes
45382 if test -z "$already_handled"; then
45383 names_already_handled="$names_already_handled $name"
45384 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'`
45385 eval value=\"\$HAVE_LIB$uppername\"
45386 if test -n "$value"; then
45387 if test "$value" = yes; then
45388 eval value=\"\$LIB$uppername\"
45389 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
45390 eval value=\"\$LTLIB$uppername\"
45391 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
45400 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
45401 if test -n "$acl_shlibext"; then
45402 shrext=".$acl_shlibext" # typically: shrext=.so
45406 if test $use_additional = yes; then
45407 dir="$additional_libdir"
45408 if test -n "$acl_shlibext"; then
45409 if test -f "$dir/$libname$shrext"; then
45411 found_so="$dir/$libname$shrext"
45413 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
45414 ver=`(cd "$dir" && \
45415 for f in "$libname$shrext".*; do echo "$f"; done \
45416 | sed -e "s,^$libname$shrext\\\\.,," \
45417 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
45418 | sed 1q ) 2>/dev/null`
45419 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
45421 found_so="$dir/$libname$shrext.$ver"
45424 eval library_names=\"$acl_library_names_spec\"
45425 for f in $library_names; do
45426 if test -f "$dir/$f"; then
45435 if test "X$found_dir" = "X"; then
45436 if test -f "$dir/$libname.$acl_libext"; then
45438 found_a="$dir/$libname.$acl_libext"
45441 if test "X$found_dir" != "X"; then
45442 if test -f "$dir/$libname.la"; then
45443 found_la="$dir/$libname.la"
45447 if test "X$found_dir" = "X"; then
45448 for x in $LDFLAGS $LTLIBINTL; do
45450 acl_save_prefix="$prefix"
45451 prefix="$acl_final_prefix"
45452 acl_save_exec_prefix="$exec_prefix"
45453 exec_prefix="$acl_final_exec_prefix"
45455 exec_prefix="$acl_save_exec_prefix"
45456 prefix="$acl_save_prefix"
45460 dir=`echo "X$x" | sed -e 's/^X-L//'`
45461 if test -n "$acl_shlibext"; then
45462 if test -f "$dir/$libname$shrext"; then
45464 found_so="$dir/$libname$shrext"
45466 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
45467 ver=`(cd "$dir" && \
45468 for f in "$libname$shrext".*; do echo "$f"; done \
45469 | sed -e "s,^$libname$shrext\\\\.,," \
45470 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
45471 | sed 1q ) 2>/dev/null`
45472 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
45474 found_so="$dir/$libname$shrext.$ver"
45477 eval library_names=\"$acl_library_names_spec\"
45478 for f in $library_names; do
45479 if test -f "$dir/$f"; then
45488 if test "X$found_dir" = "X"; then
45489 if test -f "$dir/$libname.$acl_libext"; then
45491 found_a="$dir/$libname.$acl_libext"
45494 if test "X$found_dir" != "X"; then
45495 if test -f "$dir/$libname.la"; then
45496 found_la="$dir/$libname.la"
45501 if test "X$found_dir" != "X"; then
45506 if test "X$found_dir" != "X"; then
45507 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
45508 if test "X$found_so" != "X"; then
45509 if test "$enable_rpath" = no \
45510 || test "X$found_dir" = "X/usr/$acl_libdirstem" \
45511 || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
45512 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
45515 for x in $ltrpathdirs; do
45516 if test "X$x" = "X$found_dir"; then
45521 if test -z "$haveit"; then
45522 ltrpathdirs="$ltrpathdirs $found_dir"
45524 if test "$acl_hardcode_direct" = yes; then
45525 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
45527 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
45528 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
45530 for x in $rpathdirs; do
45531 if test "X$x" = "X$found_dir"; then
45536 if test -z "$haveit"; then
45537 rpathdirs="$rpathdirs $found_dir"
45541 for x in $LDFLAGS $LIBINTL; do
45543 acl_save_prefix="$prefix"
45544 prefix="$acl_final_prefix"
45545 acl_save_exec_prefix="$exec_prefix"
45546 exec_prefix="$acl_final_exec_prefix"
45548 exec_prefix="$acl_save_exec_prefix"
45549 prefix="$acl_save_prefix"
45551 if test "X$x" = "X-L$found_dir"; then
45556 if test -z "$haveit"; then
45557 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
45559 if test "$acl_hardcode_minus_L" != no; then
45560 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
45562 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
45568 if test "X$found_a" != "X"; then
45569 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
45571 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
45574 additional_includedir=
45575 case "$found_dir" in
45576 */$acl_libdirstem | */$acl_libdirstem/)
45577 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
45578 if test "$name" = 'intl'; then
45579 LIBINTL_PREFIX="$basedir"
45581 additional_includedir="$basedir/include"
45583 */$acl_libdirstem2 | */$acl_libdirstem2/)
45584 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
45585 if test "$name" = 'intl'; then
45586 LIBINTL_PREFIX="$basedir"
45588 additional_includedir="$basedir/include"
45591 if test "X$additional_includedir" != "X"; then
45592 if test "X$additional_includedir" != "X/usr/include"; then
45594 if test "X$additional_includedir" = "X/usr/local/include"; then
45595 if test -n "$GCC"; then
45597 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
45601 if test -z "$haveit"; then
45602 for x in $CPPFLAGS $INCINTL; do
45604 acl_save_prefix="$prefix"
45605 prefix="$acl_final_prefix"
45606 acl_save_exec_prefix="$exec_prefix"
45607 exec_prefix="$acl_final_exec_prefix"
45609 exec_prefix="$acl_save_exec_prefix"
45610 prefix="$acl_save_prefix"
45612 if test "X$x" = "X-I$additional_includedir"; then
45617 if test -z "$haveit"; then
45618 if test -d "$additional_includedir"; then
45619 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
45625 if test -n "$found_la"; then
45626 save_libdir="$libdir"
45627 case "$found_la" in
45628 */* | *\\*) . "$found_la" ;;
45629 *) . "./$found_la" ;;
45631 libdir="$save_libdir"
45632 for dep in $dependency_libs; do
45635 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
45636 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
45637 && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
45639 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
45640 || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
45641 if test -n "$GCC"; then
45643 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
45647 if test -z "$haveit"; then
45649 for x in $LDFLAGS $LIBINTL; do
45651 acl_save_prefix="$prefix"
45652 prefix="$acl_final_prefix"
45653 acl_save_exec_prefix="$exec_prefix"
45654 exec_prefix="$acl_final_exec_prefix"
45656 exec_prefix="$acl_save_exec_prefix"
45657 prefix="$acl_save_prefix"
45659 if test "X$x" = "X-L$additional_libdir"; then
45664 if test -z "$haveit"; then
45665 if test -d "$additional_libdir"; then
45666 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
45670 for x in $LDFLAGS $LTLIBINTL; do
45672 acl_save_prefix="$prefix"
45673 prefix="$acl_final_prefix"
45674 acl_save_exec_prefix="$exec_prefix"
45675 exec_prefix="$acl_final_exec_prefix"
45677 exec_prefix="$acl_save_exec_prefix"
45678 prefix="$acl_save_prefix"
45680 if test "X$x" = "X-L$additional_libdir"; then
45685 if test -z "$haveit"; then
45686 if test -d "$additional_libdir"; then
45687 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
45694 dir=`echo "X$dep" | sed -e 's/^X-R//'`
45695 if test "$enable_rpath" != no; then
45697 for x in $rpathdirs; do
45698 if test "X$x" = "X$dir"; then
45703 if test -z "$haveit"; then
45704 rpathdirs="$rpathdirs $dir"
45707 for x in $ltrpathdirs; do
45708 if test "X$x" = "X$dir"; then
45713 if test -z "$haveit"; then
45714 ltrpathdirs="$ltrpathdirs $dir"
45719 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
45722 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
45725 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
45726 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
45732 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
45733 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
45739 if test "X$rpathdirs" != "X"; then
45740 if test -n "$acl_hardcode_libdir_separator"; then
45742 for found_dir in $rpathdirs; do
45743 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
45745 acl_save_libdir="$libdir"
45747 eval flag=\"$acl_hardcode_libdir_flag_spec\"
45748 libdir="$acl_save_libdir"
45749 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
45751 for found_dir in $rpathdirs; do
45752 acl_save_libdir="$libdir"
45753 libdir="$found_dir"
45754 eval flag=\"$acl_hardcode_libdir_flag_spec\"
45755 libdir="$acl_save_libdir"
45756 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
45760 if test "X$ltrpathdirs" != "X"; then
45761 for found_dir in $ltrpathdirs; do
45762 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
45771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
45772 $as_echo_n "checking for GNU gettext in libintl... " >&6; }
45773 if eval \${$gt_func_gnugettext_libintl+:} false; then :
45774 $as_echo_n "(cached) " >&6
45776 gt_save_CPPFLAGS="$CPPFLAGS"
45777 CPPFLAGS="$CPPFLAGS $INCINTL"
45778 gt_save_LIBS="$LIBS"
45779 LIBS="$LIBS $LIBINTL"
45780 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
45781 /* end confdefs.h. */
45783 #include <libintl.h>
45784 $gt_revision_test_code
45785 extern int _nl_msg_cat_cntr;
45790 const char *_nl_expand_alias (const char *);
45796 bindtextdomain ("", "");
45797 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
45803 if ac_fn_c_try_link "$LINENO"; then :
45804 eval "$gt_func_gnugettext_libintl=yes"
45806 eval "$gt_func_gnugettext_libintl=no"
45808 rm -f core conftest.err conftest.$ac_objext \
45809 conftest$ac_exeext conftest.$ac_ext
45810 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } && test -n "$LIBICONV"; then
45811 LIBS="$LIBS $LIBICONV"
45812 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
45813 /* end confdefs.h. */
45815 #include <libintl.h>
45816 $gt_revision_test_code
45817 extern int _nl_msg_cat_cntr;
45822 const char *_nl_expand_alias (const char *);
45828 bindtextdomain ("", "");
45829 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
45835 if ac_fn_c_try_link "$LINENO"; then :
45836 LIBINTL="$LIBINTL $LIBICONV"
45837 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
45838 eval "$gt_func_gnugettext_libintl=yes"
45841 rm -f core conftest.err conftest.$ac_objext \
45842 conftest$ac_exeext conftest.$ac_ext
45844 CPPFLAGS="$gt_save_CPPFLAGS"
45845 LIBS="$gt_save_LIBS"
45847 eval ac_res=\$$gt_func_gnugettext_libintl
45848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
45849 $as_echo "$ac_res" >&6; }
45852 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \
45853 || { { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \
45854 && test "$PACKAGE" != gettext-runtime \
45855 && test "$PACKAGE" != gettext-tools; }; then
45856 gt_use_preinstalled_gnugettext=yes
45865 if test -n "$INTL_MACOSX_LIBS"; then
45866 if test "$gt_use_preinstalled_gnugettext" = "yes" \
45867 || test "$nls_cv_use_gnu_gettext" = "yes"; then
45868 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
45869 LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
45873 if test "$gt_use_preinstalled_gnugettext" = "yes" \
45874 || test "$nls_cv_use_gnu_gettext" = "yes"; then
45876 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
45883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
45884 $as_echo_n "checking whether to use NLS... " >&6; }
45885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
45886 $as_echo "$USE_NLS" >&6; }
45887 if test "$USE_NLS" = "yes"; then
45888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
45889 $as_echo_n "checking where the gettext function comes from... " >&6; }
45890 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
45891 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
45892 gt_source="external libintl"
45897 gt_source="included intl directory"
45899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
45900 $as_echo "$gt_source" >&6; }
45903 if test "$USE_NLS" = "yes"; then
45905 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
45906 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
45907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
45908 $as_echo_n "checking how to link with libintl... " >&6; }
45909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
45910 $as_echo "$LIBINTL" >&6; }
45912 for element in $INCINTL; do
45914 for x in $CPPFLAGS; do
45916 acl_save_prefix="$prefix"
45917 prefix="$acl_final_prefix"
45918 acl_save_exec_prefix="$exec_prefix"
45919 exec_prefix="$acl_final_exec_prefix"
45921 exec_prefix="$acl_save_exec_prefix"
45922 prefix="$acl_save_prefix"
45924 if test "X$x" = "X$element"; then
45929 if test -z "$haveit"; then
45930 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
45937 $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
45940 $as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
45949 INTLLIBS="$LIBINTL"
45963 am_save_CPPFLAGS="$CPPFLAGS"
45965 for element in $INCICONV; do
45967 for x in $CPPFLAGS; do
45969 acl_save_prefix="$prefix"
45970 prefix="$acl_final_prefix"
45971 acl_save_exec_prefix="$exec_prefix"
45972 exec_prefix="$acl_final_exec_prefix"
45974 exec_prefix="$acl_save_exec_prefix"
45975 prefix="$acl_save_prefix"
45977 if test "X$x" = "X$element"; then
45982 if test -z "$haveit"; then
45983 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
45988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
45989 $as_echo_n "checking for iconv... " >&6; }
45990 if ${am_cv_func_iconv+:} false; then :
45991 $as_echo_n "(cached) " >&6
45994 am_cv_func_iconv="no, consider installing GNU libiconv"
45996 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
45997 /* end confdefs.h. */
45999 #include <stdlib.h>
46005 iconv_t cd = iconv_open("","");
46006 iconv(cd,NULL,NULL,NULL,NULL);
46012 if ac_fn_c_try_link "$LINENO"; then :
46013 am_cv_func_iconv=yes
46015 rm -f core conftest.err conftest.$ac_objext \
46016 conftest$ac_exeext conftest.$ac_ext
46017 if test "$am_cv_func_iconv" != yes; then
46018 am_save_LIBS="$LIBS"
46019 LIBS="$LIBS $LIBICONV"
46020 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
46021 /* end confdefs.h. */
46023 #include <stdlib.h>
46029 iconv_t cd = iconv_open("","");
46030 iconv(cd,NULL,NULL,NULL,NULL);
46036 if ac_fn_c_try_link "$LINENO"; then :
46037 am_cv_lib_iconv=yes
46038 am_cv_func_iconv=yes
46040 rm -f core conftest.err conftest.$ac_objext \
46041 conftest$ac_exeext conftest.$ac_ext
46042 LIBS="$am_save_LIBS"
46046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
46047 $as_echo "$am_cv_func_iconv" >&6; }
46048 if test "$am_cv_func_iconv" = yes; then
46049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5
46050 $as_echo_n "checking for working iconv... " >&6; }
46051 if ${am_cv_func_iconv_works+:} false; then :
46052 $as_echo_n "(cached) " >&6
46055 am_save_LIBS="$LIBS"
46056 if test $am_cv_lib_iconv = yes; then
46057 LIBS="$LIBS $LIBICONV"
46059 if test "$cross_compiling" = yes; then :
46062 aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
46063 *) am_cv_func_iconv_works="guessing yes" ;;
46067 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
46068 /* end confdefs.h. */
46071 #include <string.h>
46075 /* Test against AIX 5.1 bug: Failures are not distinguishable from successful
46078 iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
46079 if (cd_utf8_to_88591 != (iconv_t)(-1))
46081 static const char input[] = "\342\202\254"; /* EURO SIGN */
46083 const char *inptr = input;
46084 size_t inbytesleft = strlen (input);
46085 char *outptr = buf;
46086 size_t outbytesleft = sizeof (buf);
46087 size_t res = iconv (cd_utf8_to_88591,
46088 (char **) &inptr, &inbytesleft,
46089 &outptr, &outbytesleft);
46092 iconv_close (cd_utf8_to_88591);
46095 /* Test against Solaris 10 bug: Failures are not distinguishable from
46096 successful returns. */
46098 iconv_t cd_ascii_to_88591 = iconv_open ("ISO8859-1", "646");
46099 if (cd_ascii_to_88591 != (iconv_t)(-1))
46101 static const char input[] = "\263";
46103 const char *inptr = input;
46104 size_t inbytesleft = strlen (input);
46105 char *outptr = buf;
46106 size_t outbytesleft = sizeof (buf);
46107 size_t res = iconv (cd_ascii_to_88591,
46108 (char **) &inptr, &inbytesleft,
46109 &outptr, &outbytesleft);
46112 iconv_close (cd_ascii_to_88591);
46115 /* Test against AIX 6.1..7.1 bug: Buffer overrun. */
46117 iconv_t cd_88591_to_utf8 = iconv_open ("UTF-8", "ISO-8859-1");
46118 if (cd_88591_to_utf8 != (iconv_t)(-1))
46120 static const char input[] = "\304";
46121 static char buf[2] = { (char)0xDE, (char)0xAD };
46122 const char *inptr = input;
46123 size_t inbytesleft = 1;
46124 char *outptr = buf;
46125 size_t outbytesleft = 1;
46126 size_t res = iconv (cd_88591_to_utf8,
46127 (char **) &inptr, &inbytesleft,
46128 &outptr, &outbytesleft);
46129 if (res != (size_t)(-1) || outptr - buf > 1 || buf[1] != (char)0xAD)
46131 iconv_close (cd_88591_to_utf8);
46134 #if 0 /* This bug could be worked around by the caller. */
46135 /* Test against HP-UX 11.11 bug: Positive return value instead of 0. */
46137 iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
46138 if (cd_88591_to_utf8 != (iconv_t)(-1))
46140 static const char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
46142 const char *inptr = input;
46143 size_t inbytesleft = strlen (input);
46144 char *outptr = buf;
46145 size_t outbytesleft = sizeof (buf);
46146 size_t res = iconv (cd_88591_to_utf8,
46147 (char **) &inptr, &inbytesleft,
46148 &outptr, &outbytesleft);
46151 iconv_close (cd_88591_to_utf8);
46155 /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
46157 if (/* Try standardized names. */
46158 iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1)
46159 /* Try IRIX, OSF/1 names. */
46160 && iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1)
46161 /* Try AIX names. */
46162 && iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1)
46163 /* Try HP-UX names. */
46164 && iconv_open ("utf8", "eucJP") == (iconv_t)(-1))
46169 if ac_fn_c_try_run "$LINENO"; then :
46170 am_cv_func_iconv_works=yes
46172 am_cv_func_iconv_works=no
46174 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
46175 conftest.$ac_objext conftest.beam conftest.$ac_ext
46178 LIBS="$am_save_LIBS"
46181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5
46182 $as_echo "$am_cv_func_iconv_works" >&6; }
46183 case "$am_cv_func_iconv_works" in
46184 *no) am_func_iconv=no am_cv_lib_iconv=no ;;
46185 *) am_func_iconv=yes ;;
46188 am_func_iconv=no am_cv_lib_iconv=no
46190 if test "$am_func_iconv" = yes; then
46192 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
46195 if test "$am_cv_lib_iconv" = yes; then
46196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
46197 $as_echo_n "checking how to link with libiconv... " >&6; }
46198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
46199 $as_echo "$LIBICONV" >&6; }
46201 CPPFLAGS="$am_save_CPPFLAGS"
46208 if test "$am_cv_func_iconv" = yes; then
46209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
46210 $as_echo_n "checking for iconv declaration... " >&6; }
46211 if ${am_cv_proto_iconv+:} false; then :
46212 $as_echo_n "(cached) " >&6
46215 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
46216 /* end confdefs.h. */
46218 #include <stdlib.h>
46224 #if defined(__STDC__) || defined(_MSC_VER) || defined(__cplusplus)
46225 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
46238 if ac_fn_c_try_compile "$LINENO"; then :
46239 am_cv_proto_iconv_arg1=""
46241 am_cv_proto_iconv_arg1="const"
46243 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
46244 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);"
46247 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
46248 { $as_echo "$as_me:${as_lineno-$LINENO}: result:
46249 $am_cv_proto_iconv" >&5
46251 $am_cv_proto_iconv" >&6; }
46253 cat >>confdefs.h <<_ACEOF
46254 #define ICONV_CONST $am_cv_proto_iconv_arg1
46260 for ac_prog in po4a
46262 # Extract the first word of "$ac_prog", so it can be a program name with args.
46263 set dummy $ac_prog; ac_word=$2
46264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
46265 $as_echo_n "checking for $ac_word... " >&6; }
46266 if ${ac_cv_prog_PO4A+:} false; then :
46267 $as_echo_n "(cached) " >&6
46269 if test -n "$PO4A"; then
46270 ac_cv_prog_PO4A="$PO4A" # Let the user override the test.
46272 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
46273 for as_dir in $PATH
46276 test -z "$as_dir" && as_dir=.
46277 for ac_exec_ext in '' $ac_executable_extensions; do
46278 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
46279 ac_cv_prog_PO4A="$ac_prog"
46280 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
46289 PO4A=$ac_cv_prog_PO4A
46290 if test -n "$PO4A"; then
46291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PO4A" >&5
46292 $as_echo "$PO4A" >&6; }
46294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
46295 $as_echo "no" >&6; }
46299 test -n "$PO4A" && break
46303 if test -n "$PO4A"; then
46313 if test "$USE_NLS" = yes; then
46314 # The LINGUAS file contains the set of available languages.
46316 if test -n "$srcdir/man/LINGUAS"; then
46317 man_all_linguas=`sed -e "/^#/d" -e "s/#.*//" "$srcdir/man/LINGUAS"`
46319 if test -n "$PO4A" && test -n "$srcdir/man/LINGUAS.po4a"; then
46320 man_all_linguas_po4a=`sed -e "/^#/d" -e "s/#.*//" "$srcdir/man/LINGUAS.po4a"`
46321 man_all_linguas="$man_all_linguas $man_all_linguas_po4a"
46324 for presentlang in $man_all_linguas; do
46326 if test -n "$LINGUAS"; then
46327 desiredlanguages="$LINGUAS"
46329 desiredlanguages="$man_all_linguas"
46331 for desiredlang in $desiredlanguages; do
46332 # Use the presentlang catalog if desiredlang is
46333 # a. equal to presentlang, or
46334 # b. a variant of presentlang (because in this case,
46335 # presentlang can be used as a fallback for messages
46336 # which are not translated in the desiredlang catalog).
46337 case "$desiredlang" in
46338 "$presentlang"*) useit=yes;;
46341 if test $useit = yes; then
46342 man_inst_linguas="$man_inst_linguas $presentlang"
46345 if test -n "$PO4A"; then
46346 MAN_SUBDIRS="po4a $man_inst_linguas"
46348 MAN_SUBDIRS="$man_inst_linguas"
46356 # Checks for structures and compiler characteristics.
46357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
46358 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
46359 if ${ac_cv_c_const+:} false; then :
46360 $as_echo_n "(cached) " >&6
46362 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
46363 /* end confdefs.h. */
46369 #ifndef __cplusplus
46370 /* Ultrix mips cc rejects this sort of thing. */
46371 typedef int charset[2];
46372 const charset cs = { 0, 0 };
46373 /* SunOS 4.1.1 cc rejects this. */
46374 char const *const *pcpcc;
46376 /* NEC SVR4.0.2 mips cc rejects this. */
46377 struct point {int x, y;};
46378 static struct point const zero = {0,0};
46379 /* AIX XL C 1.02.0.0 rejects this.
46380 It does not let you subtract one const X* pointer from another in
46381 an arm of an if-expression whose if-part is not a constant
46383 const char *g = "string";
46384 pcpcc = &g + (g ? g-g : 0);
46385 /* HPUX 7.0 cc rejects these. */
46387 ppc = (char**) pcpcc;
46388 pcpcc = (char const *const *) ppc;
46389 { /* SCO 3.2v4 cc rejects this sort of thing. */
46392 char const *s = 0 ? (char *) 0 : (char const *) 0;
46397 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
46398 int x[] = {25, 17};
46399 const int *foo = &x[0];
46402 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
46403 typedef const int *iptr;
46407 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
46408 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
46409 struct s { int j; const int *ap[3]; } bx;
46410 struct s *b = &bx; b->j = 5;
46412 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
46413 const int foo = 10;
46414 if (!foo) return 0;
46416 return !cs[0] && !zero.x;
46423 if ac_fn_c_try_compile "$LINENO"; then :
46428 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
46430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
46431 $as_echo "$ac_cv_c_const" >&6; }
46432 if test $ac_cv_c_const = no; then
46434 $as_echo "#define const /**/" >>confdefs.h
46438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
46439 $as_echo_n "checking for inline... " >&6; }
46440 if ${ac_cv_c_inline+:} false; then :
46441 $as_echo_n "(cached) " >&6
46444 for ac_kw in inline __inline__ __inline; do
46445 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
46446 /* end confdefs.h. */
46447 #ifndef __cplusplus
46449 static $ac_kw foo_t static_foo () {return 0; }
46450 $ac_kw foo_t foo () {return 0; }
46454 if ac_fn_c_try_compile "$LINENO"; then :
46455 ac_cv_c_inline=$ac_kw
46457 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
46458 test "$ac_cv_c_inline" != no && break
46462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
46463 $as_echo "$ac_cv_c_inline" >&6; }
46465 case $ac_cv_c_inline in
46468 case $ac_cv_c_inline in
46470 *) ac_val=$ac_cv_c_inline;;
46472 cat >>confdefs.h <<_ACEOF
46473 #ifndef __cplusplus
46474 #define inline $ac_val
46480 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
46481 if test "x$ac_cv_type_pid_t" = xyes; then :
46485 cat >>confdefs.h <<_ACEOF
46491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
46492 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
46493 if ${ac_cv_type_uid_t+:} false; then :
46494 $as_echo_n "(cached) " >&6
46496 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
46497 /* end confdefs.h. */
46498 #include <sys/types.h>
46501 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
46502 $EGREP "uid_t" >/dev/null 2>&1; then :
46503 ac_cv_type_uid_t=yes
46505 ac_cv_type_uid_t=no
46510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
46511 $as_echo "$ac_cv_type_uid_t" >&6; }
46512 if test $ac_cv_type_uid_t = no; then
46514 $as_echo "#define uid_t int" >>confdefs.h
46517 $as_echo "#define gid_t int" >>confdefs.h
46521 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
46522 if test "x$ac_cv_type_size_t" = xyes; then :
46526 cat >>confdefs.h <<_ACEOF
46527 #define size_t unsigned int
46533 # Check for pipeline library.
46536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libpipeline" >&5
46537 $as_echo_n "checking for libpipeline... " >&6; }
46539 if test -n "$libpipeline_CFLAGS"; then
46540 pkg_cv_libpipeline_CFLAGS="$libpipeline_CFLAGS"
46541 elif test -n "$PKG_CONFIG"; then
46542 if test -n "$PKG_CONFIG" && \
46543 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpipeline >= 1.5.0\""; } >&5
46544 ($PKG_CONFIG --exists --print-errors "libpipeline >= 1.5.0") 2>&5
46546 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
46547 test $ac_status = 0; }; then
46548 pkg_cv_libpipeline_CFLAGS=`$PKG_CONFIG --cflags "libpipeline >= 1.5.0" 2>/dev/null`
46549 test "x$?" != "x0" && pkg_failed=yes
46556 if test -n "$libpipeline_LIBS"; then
46557 pkg_cv_libpipeline_LIBS="$libpipeline_LIBS"
46558 elif test -n "$PKG_CONFIG"; then
46559 if test -n "$PKG_CONFIG" && \
46560 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpipeline >= 1.5.0\""; } >&5
46561 ($PKG_CONFIG --exists --print-errors "libpipeline >= 1.5.0") 2>&5
46563 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
46564 test $ac_status = 0; }; then
46565 pkg_cv_libpipeline_LIBS=`$PKG_CONFIG --libs "libpipeline >= 1.5.0" 2>/dev/null`
46566 test "x$?" != "x0" && pkg_failed=yes
46576 if test $pkg_failed = yes; then
46577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
46578 $as_echo "no" >&6; }
46580 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
46581 _pkg_short_errors_supported=yes
46583 _pkg_short_errors_supported=no
46585 if test $_pkg_short_errors_supported = yes; then
46586 libpipeline_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libpipeline >= 1.5.0" 2>&1`
46588 libpipeline_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libpipeline >= 1.5.0" 2>&1`
46590 # Put the nasty error message in config.log where it belongs
46591 echo "$libpipeline_PKG_ERRORS" >&5
46593 as_fn_error $? "Package requirements (libpipeline >= 1.5.0) were not met:
46595 $libpipeline_PKG_ERRORS
46597 Consider adjusting the PKG_CONFIG_PATH environment variable if you
46598 installed software in a non-standard prefix.
46600 Alternatively, you may set the environment variables libpipeline_CFLAGS
46601 and libpipeline_LIBS to avoid the need to call pkg-config.
46602 See the pkg-config man page for more details." "$LINENO" 5
46603 elif test $pkg_failed = untried; then
46604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
46605 $as_echo "no" >&6; }
46606 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
46607 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
46608 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
46609 is in your PATH or set the PKG_CONFIG environment variable to the full
46610 path to pkg-config.
46612 Alternatively, you may set the environment variables libpipeline_CFLAGS
46613 and libpipeline_LIBS to avoid the need to call pkg-config.
46614 See the pkg-config man page for more details.
46616 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
46617 See \`config.log' for more details" "$LINENO" 5; }
46619 libpipeline_CFLAGS=$pkg_cv_libpipeline_CFLAGS
46620 libpipeline_LIBS=$pkg_cv_libpipeline_LIBS
46621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
46622 $as_echo "yes" >&6; }
46626 # Find a suitable database interface header and library.
46628 # Check for GNU dbm routines.
46629 if test "$db" = "no" || test "$db" = "gdbm"
46631 ac_fn_c_check_header_mongrel "$LINENO" "gdbm.h" "ac_cv_header_gdbm_h" "$ac_includes_default"
46632 if test "x$ac_cv_header_gdbm_h" = xyes; then :
46634 for lib in gdbm c dbm
46636 as_ac_Lib=`$as_echo "ac_cv_lib_$lib''_gdbm_fetch" | $as_tr_sh`
46637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gdbm_fetch in -l$lib" >&5
46638 $as_echo_n "checking for gdbm_fetch in -l$lib... " >&6; }
46639 if eval \${$as_ac_Lib+:} false; then :
46640 $as_echo_n "(cached) " >&6
46642 ac_check_lib_save_LIBS=$LIBS
46643 LIBS="-l$lib $LIBS"
46644 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
46645 /* end confdefs.h. */
46647 /* Override any GCC internal prototype to avoid an error.
46648 Use char because int might match the return type of a GCC
46649 builtin and then its argument prototype would still apply. */
46653 char gdbm_fetch ();
46657 return gdbm_fetch ();
46662 if ac_fn_c_try_link "$LINENO"; then :
46663 eval "$as_ac_Lib=yes"
46665 eval "$as_ac_Lib=no"
46667 rm -f core conftest.err conftest.$ac_objext \
46668 conftest$ac_exeext conftest.$ac_ext
46669 LIBS=$ac_check_lib_save_LIBS
46671 eval ac_res=\$$as_ac_Lib
46672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
46673 $as_echo "$ac_res" >&6; }
46674 if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
46675 test "$lib" = "c" || DBLIBS="-l$lib"
46677 $as_echo "#define GDBM 1" >>confdefs.h
46686 if test "$db" = "yes"
46688 man_save_LIBS="$LIBS"
46689 LIBS="$LIBS $DBLIBS"
46690 for ac_func in gdbm_exists
46692 ac_fn_c_check_func "$LINENO" "gdbm_exists" "ac_cv_func_gdbm_exists"
46693 if test "x$ac_cv_func_gdbm_exists" = xyes; then :
46694 cat >>confdefs.h <<_ACEOF
46695 #define HAVE_GDBM_EXISTS 1
46701 LIBS="$man_save_LIBS"
46712 # Check for Berkeley db routines (first version API).
46713 man_bdb_requested=no
46714 for trydb in db5 db
46716 if test "$db" = "$trydb"
46718 man_bdb_requested=yes
46721 if test "$db" = no || test "$man_bdb_requested" = yes
46723 for head in db5/db_185.h db_185.h
46725 for ac_header in $head
46727 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
46728 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
46729 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
46730 cat >>confdefs.h <<_ACEOF
46731 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
46740 if test "$got" = "yes"
46742 for lib in db5 db-5
46744 as_man_tr_bdb=`$as_echo "man_cv_bdb_header_${head}_lib_${lib}" | $as_tr_sh`
46745 man_saved_LIBS="$LIBS"
46746 LIBS="$LIBS -l$lib"
46747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dbopen from <${head}> in -l${lib}" >&5
46748 $as_echo_n "checking for dbopen from <${head}> in -l${lib}... " >&6; }
46749 if eval \${$as_man_tr_bdb+:} false; then :
46750 $as_echo_n "(cached) " >&6
46752 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
46753 /* end confdefs.h. */
46758 dbopen("foo", 0, 0, 0, (void *) 0)
46763 if ac_fn_c_try_link "$LINENO"; then :
46764 eval "$as_man_tr_bdb=yes"
46766 eval "$as_man_tr_bdb=no"
46768 rm -f core conftest.err conftest.$ac_objext \
46769 conftest$ac_exeext conftest.$ac_ext
46772 eval ac_res=\$$as_man_tr_bdb
46773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
46774 $as_echo "$ac_res" >&6; }
46775 if eval test \"x\$"$as_man_tr_bdb"\" = x"yes"; then :
46778 cat >>confdefs.h <<_ACEOF
46779 #define BDB_H <$head>
46783 cat >>confdefs.h <<_ACEOF
46794 LIBS="$man_saved_LIBS"
46795 test "$db" = "yes" && break
46798 test "$db" = "yes" && break
46801 man_bdb_requested=no
46802 for trydb in db4 db
46804 if test "$db" = "$trydb"
46806 man_bdb_requested=yes
46809 if test "$db" = no || test "$man_bdb_requested" = yes
46811 for head in db4/db_185.h db_185.h
46813 for ac_header in $head
46815 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
46816 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
46817 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
46818 cat >>confdefs.h <<_ACEOF
46819 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
46828 if test "$got" = "yes"
46830 for lib in db4 db-4
46832 as_man_tr_bdb=`$as_echo "man_cv_bdb_header_${head}_lib_${lib}" | $as_tr_sh`
46833 man_saved_LIBS="$LIBS"
46834 LIBS="$LIBS -l$lib"
46835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dbopen from <${head}> in -l${lib}" >&5
46836 $as_echo_n "checking for dbopen from <${head}> in -l${lib}... " >&6; }
46837 if eval \${$as_man_tr_bdb+:} false; then :
46838 $as_echo_n "(cached) " >&6
46840 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
46841 /* end confdefs.h. */
46846 dbopen("foo", 0, 0, 0, (void *) 0)
46851 if ac_fn_c_try_link "$LINENO"; then :
46852 eval "$as_man_tr_bdb=yes"
46854 eval "$as_man_tr_bdb=no"
46856 rm -f core conftest.err conftest.$ac_objext \
46857 conftest$ac_exeext conftest.$ac_ext
46860 eval ac_res=\$$as_man_tr_bdb
46861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
46862 $as_echo "$ac_res" >&6; }
46863 if eval test \"x\$"$as_man_tr_bdb"\" = x"yes"; then :
46866 cat >>confdefs.h <<_ACEOF
46867 #define BDB_H <$head>
46871 cat >>confdefs.h <<_ACEOF
46882 LIBS="$man_saved_LIBS"
46883 test "$db" = "yes" && break
46886 test "$db" = "yes" && break
46889 man_bdb_requested=no
46890 for trydb in db3 db
46892 if test "$db" = "$trydb"
46894 man_bdb_requested=yes
46897 if test "$db" = no || test "$man_bdb_requested" = yes
46899 for head in db3/db_185.h db_185.h
46901 for ac_header in $head
46903 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
46904 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
46905 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
46906 cat >>confdefs.h <<_ACEOF
46907 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
46916 if test "$got" = "yes"
46920 as_man_tr_bdb=`$as_echo "man_cv_bdb_header_${head}_lib_${lib}" | $as_tr_sh`
46921 man_saved_LIBS="$LIBS"
46922 LIBS="$LIBS -l$lib"
46923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dbopen from <${head}> in -l${lib}" >&5
46924 $as_echo_n "checking for dbopen from <${head}> in -l${lib}... " >&6; }
46925 if eval \${$as_man_tr_bdb+:} false; then :
46926 $as_echo_n "(cached) " >&6
46928 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
46929 /* end confdefs.h. */
46934 dbopen("foo", 0, 0, 0, (void *) 0)
46939 if ac_fn_c_try_link "$LINENO"; then :
46940 eval "$as_man_tr_bdb=yes"
46942 eval "$as_man_tr_bdb=no"
46944 rm -f core conftest.err conftest.$ac_objext \
46945 conftest$ac_exeext conftest.$ac_ext
46948 eval ac_res=\$$as_man_tr_bdb
46949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
46950 $as_echo "$ac_res" >&6; }
46951 if eval test \"x\$"$as_man_tr_bdb"\" = x"yes"; then :
46954 cat >>confdefs.h <<_ACEOF
46955 #define BDB_H <$head>
46959 cat >>confdefs.h <<_ACEOF
46970 LIBS="$man_saved_LIBS"
46971 test "$db" = "yes" && break
46974 test "$db" = "yes" && break
46977 man_bdb_requested=no
46978 for trydb in db2 db
46980 if test "$db" = "$trydb"
46982 man_bdb_requested=yes
46985 if test "$db" = no || test "$man_bdb_requested" = yes
46987 for head in db_185.h db2/db_185.h db2_185.h
46989 for ac_header in $head
46991 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
46992 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
46993 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
46994 cat >>confdefs.h <<_ACEOF
46995 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
47004 if test "$got" = "yes"
47008 as_man_tr_bdb=`$as_echo "man_cv_bdb_header_${head}_lib_${lib}" | $as_tr_sh`
47009 man_saved_LIBS="$LIBS"
47010 LIBS="$LIBS -l$lib"
47011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dbopen from <${head}> in -l${lib}" >&5
47012 $as_echo_n "checking for dbopen from <${head}> in -l${lib}... " >&6; }
47013 if eval \${$as_man_tr_bdb+:} false; then :
47014 $as_echo_n "(cached) " >&6
47016 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
47017 /* end confdefs.h. */
47022 dbopen("foo", 0, 0, 0, (void *) 0)
47027 if ac_fn_c_try_link "$LINENO"; then :
47028 eval "$as_man_tr_bdb=yes"
47030 eval "$as_man_tr_bdb=no"
47032 rm -f core conftest.err conftest.$ac_objext \
47033 conftest$ac_exeext conftest.$ac_ext
47036 eval ac_res=\$$as_man_tr_bdb
47037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
47038 $as_echo "$ac_res" >&6; }
47039 if eval test \"x\$"$as_man_tr_bdb"\" = x"yes"; then :
47042 cat >>confdefs.h <<_ACEOF
47043 #define BDB_H <$head>
47047 cat >>confdefs.h <<_ACEOF
47058 LIBS="$man_saved_LIBS"
47059 test "$db" = "yes" && break
47062 test "$db" = "yes" && break
47065 man_bdb_requested=no
47066 for trydb in db1 db
47068 if test "$db" = "$trydb"
47070 man_bdb_requested=yes
47073 if test "$db" = no || test "$man_bdb_requested" = yes
47075 for head in db/db.h db.h db1/db.h
47077 for ac_header in $head
47079 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
47080 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
47081 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
47082 cat >>confdefs.h <<_ACEOF
47083 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
47092 if test "$got" = "yes"
47094 for lib in db db1 c
47096 as_man_tr_bdb=`$as_echo "man_cv_bdb_header_${head}_lib_${lib}" | $as_tr_sh`
47097 man_saved_LIBS="$LIBS"
47098 LIBS="$LIBS -l$lib"
47099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dbopen from <${head}> in -l${lib}" >&5
47100 $as_echo_n "checking for dbopen from <${head}> in -l${lib}... " >&6; }
47101 if eval \${$as_man_tr_bdb+:} false; then :
47102 $as_echo_n "(cached) " >&6
47104 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
47105 /* end confdefs.h. */
47110 dbopen("foo", 0, 0, 0, (void *) 0)
47115 if ac_fn_c_try_link "$LINENO"; then :
47116 eval "$as_man_tr_bdb=yes"
47118 eval "$as_man_tr_bdb=no"
47120 rm -f core conftest.err conftest.$ac_objext \
47121 conftest$ac_exeext conftest.$ac_ext
47124 eval ac_res=\$$as_man_tr_bdb
47125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
47126 $as_echo "$ac_res" >&6; }
47127 if eval test \"x\$"$as_man_tr_bdb"\" = x"yes"; then :
47130 cat >>confdefs.h <<_ACEOF
47131 #define BDB_H <$head>
47135 cat >>confdefs.h <<_ACEOF
47146 LIBS="$man_saved_LIBS"
47147 test "$db" = "yes" && break
47150 test "$db" = "yes" && break
47155 # Check for UNIX ndbm routines.
47156 if test "$db" = "no" || test "$db" = "ndbm"
47158 ac_fn_c_check_header_mongrel "$LINENO" "ndbm.h" "ac_cv_header_ndbm_h" "$ac_includes_default"
47159 if test "x$ac_cv_header_ndbm_h" = xyes; then :
47161 for lib in ndbm c dbm
47163 as_ac_Lib=`$as_echo "ac_cv_lib_$lib''_dbm_fetch" | $as_tr_sh`
47164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dbm_fetch in -l$lib" >&5
47165 $as_echo_n "checking for dbm_fetch in -l$lib... " >&6; }
47166 if eval \${$as_ac_Lib+:} false; then :
47167 $as_echo_n "(cached) " >&6
47169 ac_check_lib_save_LIBS=$LIBS
47170 LIBS="-l$lib $LIBS"
47171 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
47172 /* end confdefs.h. */
47174 /* Override any GCC internal prototype to avoid an error.
47175 Use char because int might match the return type of a GCC
47176 builtin and then its argument prototype would still apply. */
47184 return dbm_fetch ();
47189 if ac_fn_c_try_link "$LINENO"; then :
47190 eval "$as_ac_Lib=yes"
47192 eval "$as_ac_Lib=no"
47194 rm -f core conftest.err conftest.$ac_objext \
47195 conftest$ac_exeext conftest.$ac_ext
47196 LIBS=$ac_check_lib_save_LIBS
47198 eval ac_res=\$$as_ac_Lib
47199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
47200 $as_echo "$ac_res" >&6; }
47201 if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
47202 test "$lib" = "c" || DBLIBS="-l$lib"
47204 $as_echo "#define NDBM 1" >>confdefs.h
47213 test "$db" = "yes" && break
47222 ac_fn_c_check_header_mongrel "$LINENO" "gdbm-ndbm.h" "ac_cv_header_gdbm_ndbm_h" "$ac_includes_default"
47223 if test "x$ac_cv_header_gdbm_ndbm_h" = xyes; then :
47225 for lib in gdbm_compat c dbm
47227 as_ac_Lib=`$as_echo "ac_cv_lib_$lib''_dbm_fetch" | $as_tr_sh`
47228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dbm_fetch in -l$lib" >&5
47229 $as_echo_n "checking for dbm_fetch in -l$lib... " >&6; }
47230 if eval \${$as_ac_Lib+:} false; then :
47231 $as_echo_n "(cached) " >&6
47233 ac_check_lib_save_LIBS=$LIBS
47234 LIBS="-l$lib $LIBS"
47235 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
47236 /* end confdefs.h. */
47238 /* Override any GCC internal prototype to avoid an error.
47239 Use char because int might match the return type of a GCC
47240 builtin and then its argument prototype would still apply. */
47248 return dbm_fetch ();
47253 if ac_fn_c_try_link "$LINENO"; then :
47254 eval "$as_ac_Lib=yes"
47256 eval "$as_ac_Lib=no"
47258 rm -f core conftest.err conftest.$ac_objext \
47259 conftest$ac_exeext conftest.$ac_ext
47260 LIBS=$ac_check_lib_save_LIBS
47262 eval ac_res=\$$as_ac_Lib
47263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
47264 $as_echo "$ac_res" >&6; }
47265 if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
47266 test "$lib" = "c" || DBLIBS="-l$lib"
47268 $as_echo "#define NDBM 1" >>confdefs.h
47277 test "$db" = "yes" && break
47287 if test "$db" != "yes"
47289 if test "$db" = "no"
47291 as_fn_error $? "Fatal: no supported database library/header found" "$LINENO" 5
47293 as_fn_error $? "Fatal: $db: unsupported database library" "$LINENO" 5
47298 # Check for libseccomp library.
47300 # Check whether --with-libseccomp was given.
47301 if test "${with_libseccomp+set}" = set; then :
47302 withval=$with_libseccomp;
47304 with_libseccomp=check
47307 if test "x$with_libseccomp" != "xno"; then
47310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libseccomp" >&5
47311 $as_echo_n "checking for libseccomp... " >&6; }
47313 if test -n "$libseccomp_CFLAGS"; then
47314 pkg_cv_libseccomp_CFLAGS="$libseccomp_CFLAGS"
47315 elif test -n "$PKG_CONFIG"; then
47316 if test -n "$PKG_CONFIG" && \
47317 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libseccomp\""; } >&5
47318 ($PKG_CONFIG --exists --print-errors "libseccomp") 2>&5
47320 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
47321 test $ac_status = 0; }; then
47322 pkg_cv_libseccomp_CFLAGS=`$PKG_CONFIG --cflags "libseccomp" 2>/dev/null`
47323 test "x$?" != "x0" && pkg_failed=yes
47330 if test -n "$libseccomp_LIBS"; then
47331 pkg_cv_libseccomp_LIBS="$libseccomp_LIBS"
47332 elif test -n "$PKG_CONFIG"; then
47333 if test -n "$PKG_CONFIG" && \
47334 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libseccomp\""; } >&5
47335 ($PKG_CONFIG --exists --print-errors "libseccomp") 2>&5
47337 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
47338 test $ac_status = 0; }; then
47339 pkg_cv_libseccomp_LIBS=`$PKG_CONFIG --libs "libseccomp" 2>/dev/null`
47340 test "x$?" != "x0" && pkg_failed=yes
47350 if test $pkg_failed = yes; then
47351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
47352 $as_echo "no" >&6; }
47354 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
47355 _pkg_short_errors_supported=yes
47357 _pkg_short_errors_supported=no
47359 if test $_pkg_short_errors_supported = yes; then
47360 libseccomp_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libseccomp" 2>&1`
47362 libseccomp_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libseccomp" 2>&1`
47364 # Put the nasty error message in config.log where it belongs
47365 echo "$libseccomp_PKG_ERRORS" >&5
47367 if test "x$with_libseccomp" = "xyes"; then
47368 as_fn_error $? "--with-libseccomp given but cannot find libseccomp" "$LINENO" 5
47370 elif test $pkg_failed = untried; then
47371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
47372 $as_echo "no" >&6; }
47373 if test "x$with_libseccomp" = "xyes"; then
47374 as_fn_error $? "--with-libseccomp given but cannot find libseccomp" "$LINENO" 5
47377 libseccomp_CFLAGS=$pkg_cv_libseccomp_CFLAGS
47378 libseccomp_LIBS=$pkg_cv_libseccomp_LIBS
47379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
47380 $as_echo "yes" >&6; }
47382 $as_echo "#define HAVE_LIBSECCOMP 1" >>confdefs.h
47388 { $as_echo "$as_me:${as_lineno-$LINENO}: default CC = \"$CC\"" >&5
47389 $as_echo "$as_me: default CC = \"$CC\"" >&6;}
47390 { $as_echo "$as_me:${as_lineno-$LINENO}: default CPP = \"$CPP\"" >&5
47391 $as_echo "$as_me: default CPP = \"$CPP\"" >&6;}
47392 { $as_echo "$as_me:${as_lineno-$LINENO}: default CPPFLAGS = \"$CPPFLAGS\"" >&5
47393 $as_echo "$as_me: default CPPFLAGS = \"$CPPFLAGS\"" >&6;}
47394 { $as_echo "$as_me:${as_lineno-$LINENO}: default CFLAGS = \"$CFLAGS\"" >&5
47395 $as_echo "$as_me: default CFLAGS = \"$CFLAGS\"" >&6;}
47396 { $as_echo "$as_me:${as_lineno-$LINENO}: default LDFLAGS = \"$LDFLAGS\"" >&5
47397 $as_echo "$as_me: default LDFLAGS = \"$LDFLAGS\"" >&6;}
47398 { $as_echo "$as_me:${as_lineno-$LINENO}: default LIBS = \"$LIBS\"" >&5
47399 $as_echo "$as_me: default LIBS = \"$LIBS\"" >&6;}
47400 { $as_echo "$as_me:${as_lineno-$LINENO}: default DBLIBS = \"$DBLIBS\"" >&5
47401 $as_echo "$as_me: default DBLIBS = \"$DBLIBS\"" >&6;}
47403 # Transformed versions of program names for use in Automake variables.
47404 man_transformed=`echo apropos | sed "$program_transform_name"`
47405 TRANS_APROPOS=$man_transformed
47407 TRANS_APROPOS_UPPER=`$as_echo "$man_transformed" | $as_tr_cpp`
47410 man_transformed=`echo catman | sed "$program_transform_name"`
47411 TRANS_CATMAN=$man_transformed
47413 TRANS_CATMAN_UPPER=`$as_echo "$man_transformed" | $as_tr_cpp`
47416 man_transformed=`echo lexgrog | sed "$program_transform_name"`
47417 TRANS_LEXGROG=$man_transformed
47419 TRANS_LEXGROG_UPPER=`$as_echo "$man_transformed" | $as_tr_cpp`
47422 man_transformed=`echo man | sed "$program_transform_name"`
47423 TRANS_MAN=$man_transformed
47425 TRANS_MAN_UPPER=`$as_echo "$man_transformed" | $as_tr_cpp`
47428 man_transformed=`echo manconv | sed "$program_transform_name"`
47429 TRANS_MANCONV=$man_transformed
47431 TRANS_MANCONV_UPPER=`$as_echo "$man_transformed" | $as_tr_cpp`
47434 man_transformed=`echo mandb | sed "$program_transform_name"`
47435 TRANS_MANDB=$man_transformed
47437 TRANS_MANDB_UPPER=`$as_echo "$man_transformed" | $as_tr_cpp`
47440 man_transformed=`echo manpath | sed "$program_transform_name"`
47441 TRANS_MANPATH=$man_transformed
47443 TRANS_MANPATH_UPPER=`$as_echo "$man_transformed" | $as_tr_cpp`
47446 man_transformed=`echo whatis | sed "$program_transform_name"`
47447 TRANS_WHATIS=$man_transformed
47449 TRANS_WHATIS_UPPER=`$as_echo "$man_transformed" | $as_tr_cpp`
47452 man_transformed=`echo zsoelim | sed "$program_transform_name"`
47453 TRANS_ZSOELIM=$man_transformed
47455 TRANS_ZSOELIM_UPPER=`$as_echo "$man_transformed" | $as_tr_cpp`
47459 # If we're cross-compiling, tests won't work.
47460 if test "x$cross_compiling" = xyes; then
47461 CROSS_COMPILING_TRUE=
47462 CROSS_COMPILING_FALSE='#'
47464 CROSS_COMPILING_TRUE='#'
47465 CROSS_COMPILING_FALSE=
47469 # Are Gnulib translations available?
47470 if test -f "$srcdir/gnulib/po/POTFILES.in"; then
47471 HAVE_GNULIB_PO_TRUE=
47472 HAVE_GNULIB_PO_FALSE='#'
47474 HAVE_GNULIB_PO_TRUE='#'
47475 HAVE_GNULIB_PO_FALSE=
47479 ac_config_files="$ac_config_files Makefile gnulib/lib/Makefile init/Makefile init/systemd/Makefile lib/Makefile src/Makefile src/man_db.conf src/tests/Makefile man/Makefile man/replace.sin man/po4a/Makefile man/da/Makefile man/de/Makefile man/es/Makefile man/fr/Makefile man/id/Makefile man/it/Makefile man/ja/Makefile man/nl/Makefile man/pl/Makefile man/pt_BR/Makefile man/ru/Makefile man/sr/Makefile man/sv/Makefile man/tr/Makefile man/zh_CN/Makefile manual/Makefile libdb/Makefile docs/Makefile tools/Makefile include/comp_src.h include/manconfig.h po/Makefile.in"
47481 if test -f "$srcdir/gnulib/po/Makefile.in.in"; then
47482 ac_config_files="$ac_config_files gnulib/po/Makefile.in"
47485 cat >confcache <<\_ACEOF
47486 # This file is a shell script that caches the results of configure
47487 # tests run on this system so they can be shared between configure
47488 # scripts and configure runs, see configure's option --config-cache.
47489 # It is not useful on other systems. If it contains results you don't
47490 # want to keep, you may remove or edit it.
47492 # config.status only pays attention to the cache file if you give it
47493 # the --recheck option to rerun configure.
47495 # `ac_cv_env_foo' variables (set or unset) will be overridden when
47496 # loading this file, other *unset* `ac_cv_foo' will be assigned the
47497 # following values.
47501 # The following way of writing the cache mishandles newlines in values,
47502 # but we know of no workaround that is simple, portable, and efficient.
47503 # So, we kill variables containing newlines.
47504 # Ultrix sh set writes to stderr and can't be redirected directly,
47505 # and sets the high bit in the cache file unless we assign to the vars.
47507 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
47508 eval ac_val=\$$ac_var
47512 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
47513 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
47516 _ | IFS | as_nl) ;; #(
47517 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
47518 *) { eval $ac_var=; unset $ac_var;} ;;
47524 case $as_nl`(ac_space=' '; set) 2>&1` in #(
47525 *${as_nl}ac_space=\ *)
47526 # `set' does not quote correctly, so add quotes: double-quote
47527 # substitution turns \\\\ into \\, and sed turns \\ into \.
47530 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
47533 # `set' quotes correctly as required by POSIX, so do not add quotes.
47534 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
47543 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
47545 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
47547 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
47548 if test -w "$cache_file"; then
47549 if test "x$cache_file" != "x/dev/null"; then
47550 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
47551 $as_echo "$as_me: updating cache $cache_file" >&6;}
47552 if test ! -f "$cache_file" || test -h "$cache_file"; then
47553 cat confcache >"$cache_file"
47555 case $cache_file in #(
47557 mv -f confcache "$cache_file"$$ &&
47558 mv -f "$cache_file"$$ "$cache_file" ;; #(
47560 mv -f confcache "$cache_file" ;;
47565 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
47566 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
47571 test "x$prefix" = xNONE && prefix=$ac_default_prefix
47572 # Let make expand exec_prefix.
47573 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
47575 DEFS=-DHAVE_CONFIG_H
47580 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
47581 # 1. Remove the extension, and $U if already installed.
47582 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
47583 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
47584 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
47585 # will be set to the directory where LIBOBJS objects are built.
47586 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
47587 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
47589 LIBOBJS=$ac_libobjs
47591 LTLIBOBJS=$ac_ltlibobjs
47594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
47595 $as_echo_n "checking that generated files are newer than configure... " >&6; }
47596 if test -n "$am_sleep_pid"; then
47597 # Hide warnings about reused PIDs.
47598 wait $am_sleep_pid 2>/dev/null
47600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
47601 $as_echo "done" >&6; }
47602 if test -n "$EXEEXT"; then
47604 am__EXEEXT_FALSE='#'
47606 am__EXEEXT_TRUE='#'
47610 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
47611 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
47612 Usually this means the macro was only invoked conditionally." "$LINENO" 5
47614 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
47615 as_fn_error $? "conditional \"AMDEP\" was never defined.
47616 Usually this means the macro was only invoked conditionally." "$LINENO" 5
47618 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
47619 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
47620 Usually this means the macro was only invoked conditionally." "$LINENO" 5
47622 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
47623 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
47624 Usually this means the macro was only invoked conditionally." "$LINENO" 5
47626 if test -z "${GL_COND_LIBTOOL_TRUE}" && test -z "${GL_COND_LIBTOOL_FALSE}"; then
47627 as_fn_error $? "conditional \"GL_COND_LIBTOOL\" was never defined.
47628 Usually this means the macro was only invoked conditionally." "$LINENO" 5
47630 if test -z "${GL_GENERATE_ALLOCA_H_TRUE}" && test -z "${GL_GENERATE_ALLOCA_H_FALSE}"; then
47631 as_fn_error $? "conditional \"GL_GENERATE_ALLOCA_H\" was never defined.
47632 Usually this means the macro was only invoked conditionally." "$LINENO" 5
47634 if test -z "${GL_GENERATE_ERRNO_H_TRUE}" && test -z "${GL_GENERATE_ERRNO_H_FALSE}"; then
47635 as_fn_error $? "conditional \"GL_GENERATE_ERRNO_H\" was never defined.
47636 Usually this means the macro was only invoked conditionally." "$LINENO" 5
47638 if test -z "${GL_GENERATE_FLOAT_H_TRUE}" && test -z "${GL_GENERATE_FLOAT_H_FALSE}"; then
47639 as_fn_error $? "conditional \"GL_GENERATE_FLOAT_H\" was never defined.
47640 Usually this means the macro was only invoked conditionally." "$LINENO" 5
47642 if test -z "${GL_GENERATE_FNMATCH_H_TRUE}" && test -z "${GL_GENERATE_FNMATCH_H_FALSE}"; then
47643 as_fn_error $? "conditional \"GL_GENERATE_FNMATCH_H\" was never defined.
47644 Usually this means the macro was only invoked conditionally." "$LINENO" 5
47646 if test -z "${GL_GENERATE_GLOB_H_TRUE}" && test -z "${GL_GENERATE_GLOB_H_FALSE}"; then
47647 as_fn_error $? "conditional \"GL_GENERATE_GLOB_H\" was never defined.
47648 Usually this means the macro was only invoked conditionally." "$LINENO" 5
47650 if test -z "${GL_GENERATE_STDDEF_H_TRUE}" && test -z "${GL_GENERATE_STDDEF_H_FALSE}"; then
47651 as_fn_error $? "conditional \"GL_GENERATE_STDDEF_H\" was never defined.
47652 Usually this means the macro was only invoked conditionally." "$LINENO" 5
47654 if test -z "${GL_GENERATE_STDALIGN_H_TRUE}" && test -z "${GL_GENERATE_STDALIGN_H_FALSE}"; then
47655 as_fn_error $? "conditional \"GL_GENERATE_STDALIGN_H\" was never defined.
47656 Usually this means the macro was only invoked conditionally." "$LINENO" 5
47658 if test -z "${GL_GENERATE_STDARG_H_TRUE}" && test -z "${GL_GENERATE_STDARG_H_FALSE}"; then
47659 as_fn_error $? "conditional \"GL_GENERATE_STDARG_H\" was never defined.
47660 Usually this means the macro was only invoked conditionally." "$LINENO" 5
47662 if test -z "${GL_GENERATE_STDBOOL_H_TRUE}" && test -z "${GL_GENERATE_STDBOOL_H_FALSE}"; then
47663 as_fn_error $? "conditional \"GL_GENERATE_STDBOOL_H\" was never defined.
47664 Usually this means the macro was only invoked conditionally." "$LINENO" 5
47666 if test -z "${GL_GENERATE_STDDEF_H_TRUE}" && test -z "${GL_GENERATE_STDDEF_H_FALSE}"; then
47667 as_fn_error $? "conditional \"GL_GENERATE_STDDEF_H\" was never defined.
47668 Usually this means the macro was only invoked conditionally." "$LINENO" 5
47670 if test -z "${GL_GENERATE_STDINT_H_TRUE}" && test -z "${GL_GENERATE_STDINT_H_FALSE}"; then
47671 as_fn_error $? "conditional \"GL_GENERATE_STDINT_H\" was never defined.
47672 Usually this means the macro was only invoked conditionally." "$LINENO" 5
47674 if test -z "${GL_GENERATE_SYSEXITS_H_TRUE}" && test -z "${GL_GENERATE_SYSEXITS_H_FALSE}"; then
47675 as_fn_error $? "conditional \"GL_GENERATE_SYSEXITS_H\" was never defined.
47676 Usually this means the macro was only invoked conditionally." "$LINENO" 5
47682 if test -n "$gl_LIBOBJS"; then
47683 # Remove the extension.
47684 sed_drop_objext='s/\.o$//;s/\.obj$//'
47685 for i in `for i in $gl_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
47686 gl_libobjs="$gl_libobjs $i.$ac_objext"
47687 gl_ltlibobjs="$gl_ltlibobjs $i.lo"
47690 gl_LIBOBJS=$gl_libobjs
47692 gl_LTLIBOBJS=$gl_ltlibobjs
47698 if test -n "$gltests_LIBOBJS"; then
47699 # Remove the extension.
47700 sed_drop_objext='s/\.o$//;s/\.obj$//'
47701 for i in `for i in $gltests_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
47702 gltests_libobjs="$gltests_libobjs $i.$ac_objext"
47703 gltests_ltlibobjs="$gltests_ltlibobjs $i.lo"
47706 gltests_LIBOBJS=$gltests_libobjs
47708 gltests_LTLIBOBJS=$gltests_ltlibobjs
47711 if test -z "${PO4A_TRUE}" && test -z "${PO4A_FALSE}"; then
47712 as_fn_error $? "conditional \"PO4A\" was never defined.
47713 Usually this means the macro was only invoked conditionally." "$LINENO" 5
47715 if test -z "${CROSS_COMPILING_TRUE}" && test -z "${CROSS_COMPILING_FALSE}"; then
47716 as_fn_error $? "conditional \"CROSS_COMPILING\" was never defined.
47717 Usually this means the macro was only invoked conditionally." "$LINENO" 5
47719 if test -z "${HAVE_GNULIB_PO_TRUE}" && test -z "${HAVE_GNULIB_PO_FALSE}"; then
47720 as_fn_error $? "conditional \"HAVE_GNULIB_PO\" was never defined.
47721 Usually this means the macro was only invoked conditionally." "$LINENO" 5
47724 : "${CONFIG_STATUS=./config.status}"
47726 ac_clean_files_save=$ac_clean_files
47727 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
47728 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
47729 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
47731 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
47733 # Generated by $as_me.
47734 # Run this file to recreate the current configuration.
47735 # Compiler output produced by configure, useful for debugging
47736 # configure, is in config.log if it exists.
47739 ac_cs_recheck=false
47742 SHELL=\${CONFIG_SHELL-$SHELL}
47745 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
47746 ## -------------------- ##
47747 ## M4sh Initialization. ##
47748 ## -------------------- ##
47750 # Be more Bourne compatible
47751 DUALCASE=1; export DUALCASE # for MKS sh
47752 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
47755 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
47756 # is contrary to our usage. Disable this feature.
47757 alias -g '${1+"$@"}'='"$@"'
47758 setopt NO_GLOB_SUBST
47760 case `(set -o) 2>/dev/null` in #(
47772 # Printing a long string crashes Solaris 7 /usr/bin/printf.
47773 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
47774 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
47775 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
47776 # Prefer a ksh shell builtin over an external printf program on Solaris,
47777 # but without wasting forks for bash or zsh.
47778 if test -z "$BASH_VERSION$ZSH_VERSION" \
47779 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47780 as_echo='print -r --'
47781 as_echo_n='print -rn --'
47782 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
47783 as_echo='printf %s\n'
47784 as_echo_n='printf %s'
47786 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
47787 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
47788 as_echo_n='/usr/ucb/echo -n'
47790 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
47791 as_echo_n_body='eval
47795 expr "X$arg" : "X\\(.*\\)$as_nl";
47796 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
47798 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
47800 export as_echo_n_body
47801 as_echo_n='sh -c $as_echo_n_body as_echo'
47803 export as_echo_body
47804 as_echo='sh -c $as_echo_body as_echo'
47807 # The user is always right.
47808 if test "${PATH_SEPARATOR+set}" != set; then
47810 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
47811 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
47818 # We need space, tab and new line, in precisely that order. Quoting is
47819 # there to prevent editors from complaining about space-tab.
47820 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
47821 # splitting by setting IFS to empty value.)
47824 # Find who we are. Look in the path if we contain no directory separator.
47827 *[\\/]* ) as_myself=$0 ;;
47828 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
47829 for as_dir in $PATH
47832 test -z "$as_dir" && as_dir=.
47833 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
47839 # We did not find ourselves, most probably we were run as `sh COMMAND'
47840 # in which case we are not to be found in the path.
47841 if test "x$as_myself" = x; then
47844 if test ! -f "$as_myself"; then
47845 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
47849 # Unset variables that we do not need and which cause bugs (e.g. in
47850 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
47851 # suppresses any "Segmentation fault" message there. '((' could
47852 # trigger a bug in pdksh 5.2.14.
47853 for as_var in BASH_ENV ENV MAIL MAILPATH
47854 do eval test x\${$as_var+set} = xset \
47855 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
47868 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
47871 # as_fn_error STATUS ERROR [LINENO LOG_FD]
47872 # ----------------------------------------
47873 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
47874 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
47875 # script with STATUS, using 1 if that was 0.
47878 as_status=$1; test $as_status -eq 0 && as_status=1
47880 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
47881 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
47883 $as_echo "$as_me: error: $2" >&2
47884 as_fn_exit $as_status
47888 # as_fn_set_status STATUS
47889 # -----------------------
47890 # Set $? to STATUS, without forking.
47891 as_fn_set_status ()
47894 } # as_fn_set_status
47896 # as_fn_exit STATUS
47897 # -----------------
47898 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
47902 as_fn_set_status $1
47908 # Portably unset VAR.
47911 { eval $1=; unset $1;}
47913 as_unset=as_fn_unset
47914 # as_fn_append VAR VALUE
47915 # ----------------------
47916 # Append the text in VALUE to the end of the definition contained in VAR. Take
47917 # advantage of any shell optimizations that allow amortized linear growth over
47918 # repeated appends, instead of the typical quadratic growth present in naive
47920 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
47921 eval 'as_fn_append ()
47932 # as_fn_arith ARG...
47933 # ------------------
47934 # Perform arithmetic evaluation on the ARGs, and store the result in the
47935 # global $as_val. Take advantage of shells that can avoid forks. The arguments
47936 # must be portable across $(()) and expr.
47937 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
47938 eval 'as_fn_arith ()
47945 as_val=`expr "$@" || test $? -eq 1`
47950 if expr a : '\(a\)' >/dev/null 2>&1 &&
47951 test "X`expr 00001 : '.*\(...\)'`" = X001; then
47957 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
47958 as_basename=basename
47963 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
47969 as_me=`$as_basename -- "$0" ||
47970 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
47971 X"$0" : 'X\(//\)$' \| \
47972 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
47974 sed '/^.*\/\([^/][^/]*\)\/*$/{
47988 # Avoid depending upon Character Ranges.
47989 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
47990 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
47991 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
47992 as_cr_digits='0123456789'
47993 as_cr_alnum=$as_cr_Letters$as_cr_digits
47995 ECHO_C= ECHO_N= ECHO_T=
47996 case `echo -n x` in #(((((
47998 case `echo 'xy\c'` in
47999 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
48001 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
48008 rm -f conf$$ conf$$.exe conf$$.file
48009 if test -d conf$$.dir; then
48010 rm -f conf$$.dir/conf$$.file
48013 mkdir conf$$.dir 2>/dev/null
48015 if (echo >conf$$.file) 2>/dev/null; then
48016 if ln -s conf$$.file conf$$ 2>/dev/null; then
48018 # ... but there are two gotchas:
48019 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
48020 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
48021 # In both cases, we have to default to `cp -pR'.
48022 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
48024 elif ln conf$$.file conf$$ 2>/dev/null; then
48032 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
48033 rmdir conf$$.dir 2>/dev/null
48038 # Create "$as_dir" as a directory, including parents if necessary.
48043 -*) as_dir=./$as_dir;;
48045 test -d "$as_dir" || eval $as_mkdir_p || {
48049 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
48050 *) as_qdir=$as_dir;;
48052 as_dirs="'$as_qdir' $as_dirs"
48053 as_dir=`$as_dirname -- "$as_dir" ||
48054 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
48055 X"$as_dir" : 'X\(//\)[^/]' \| \
48056 X"$as_dir" : 'X\(//\)$' \| \
48057 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
48058 $as_echo X"$as_dir" |
48059 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
48063 /^X\(\/\/\)[^/].*/{
48076 test -d "$as_dir" && break
48078 test -z "$as_dirs" || eval "mkdir $as_dirs"
48079 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
48083 if mkdir -p . 2>/dev/null; then
48084 as_mkdir_p='mkdir -p "$as_dir"'
48086 test -d ./-p && rmdir ./-p
48091 # as_fn_executable_p FILE
48092 # -----------------------
48093 # Test if FILE is an executable regular file.
48094 as_fn_executable_p ()
48096 test -f "$1" && test -x "$1"
48097 } # as_fn_executable_p
48098 as_test_x='test -x'
48099 as_executable_p=as_fn_executable_p
48101 # Sed expression to map a string onto a valid CPP name.
48102 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
48104 # Sed expression to map a string onto a valid variable name.
48105 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
48109 ## ----------------------------------- ##
48110 ## Main body of $CONFIG_STATUS script. ##
48111 ## ----------------------------------- ##
48113 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
48115 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
48116 # Save the log message, to keep $0 and so on meaningful, and to
48117 # report actual input values of CONFIG_FILES etc. instead of their
48118 # values after options handling.
48120 This file was extended by man-db $as_me 2.8.3, which was
48121 generated by GNU Autoconf 2.69. Invocation command line was
48123 CONFIG_FILES = $CONFIG_FILES
48124 CONFIG_HEADERS = $CONFIG_HEADERS
48125 CONFIG_LINKS = $CONFIG_LINKS
48126 CONFIG_COMMANDS = $CONFIG_COMMANDS
48129 on `(hostname || uname -n) 2>/dev/null | sed 1q`
48134 case $ac_config_files in *"
48135 "*) set x $ac_config_files; shift; ac_config_files=$*;;
48138 case $ac_config_headers in *"
48139 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
48143 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
48144 # Files that config.status was made for.
48145 config_files="$ac_config_files"
48146 config_headers="$ac_config_headers"
48147 config_commands="$ac_config_commands"
48151 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
48153 \`$as_me' instantiates files and other configuration actions
48154 from templates according to the current configuration. Unless the files
48155 and actions are specified as TAGs, all are instantiated by default.
48157 Usage: $0 [OPTION]... [TAG]...
48159 -h, --help print this help, then exit
48160 -V, --version print version number and configuration settings, then exit
48161 --config print configuration, then exit
48162 -q, --quiet, --silent
48163 do not print progress messages
48164 -d, --debug don't remove temporary files
48165 --recheck update $as_me by reconfiguring in the same conditions
48166 --file=FILE[:TEMPLATE]
48167 instantiate the configuration file FILE
48168 --header=FILE[:TEMPLATE]
48169 instantiate the configuration header FILE
48171 Configuration files:
48174 Configuration headers:
48177 Configuration commands:
48180 Report bugs to <cjwatson@debian.org>."
48183 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
48184 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
48186 man-db config.status 2.8.3
48187 configured by $0, generated by GNU Autoconf 2.69,
48188 with options \\"\$ac_cs_config\\"
48190 Copyright (C) 2012 Free Software Foundation, Inc.
48191 This config.status script is free software; the Free Software Foundation
48192 gives unlimited permission to copy, distribute and modify it."
48199 test -n "\$AWK" || AWK=awk
48202 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
48203 # The default lists apply if the user does not specify any file.
48209 ac_option=`expr "X$1" : 'X\([^=]*\)='`
48210 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
48214 ac_option=`expr "X$1" : 'X\([^=]*\)='`
48226 # Handling of the options.
48227 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
48229 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
48230 $as_echo "$ac_cs_version"; exit ;;
48231 --config | --confi | --conf | --con | --co | --c )
48232 $as_echo "$ac_cs_config"; exit ;;
48233 --debug | --debu | --deb | --de | --d | -d )
48235 --file | --fil | --fi | --f )
48238 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
48239 '') as_fn_error $? "missing file argument" ;;
48241 as_fn_append CONFIG_FILES " '$ac_optarg'"
48242 ac_need_defaults=false;;
48243 --header | --heade | --head | --hea )
48246 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
48248 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
48249 ac_need_defaults=false;;
48251 # Conflict between --help and --header
48252 as_fn_error $? "ambiguous option: \`$1'
48253 Try \`$0 --help' for more information.";;
48254 --help | --hel | -h )
48255 $as_echo "$ac_cs_usage"; exit ;;
48256 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
48257 | -silent | --silent | --silen | --sile | --sil | --si | --s)
48260 # This is an error.
48261 -*) as_fn_error $? "unrecognized option: \`$1'
48262 Try \`$0 --help' for more information." ;;
48264 *) as_fn_append ac_config_targets " $1"
48265 ac_need_defaults=false ;;
48271 ac_configure_extra_args=
48273 if $ac_cs_silent; then
48275 ac_configure_extra_args="$ac_configure_extra_args --silent"
48279 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
48280 if \$ac_cs_recheck; then
48281 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
48283 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
48284 CONFIG_SHELL='$SHELL'
48285 export CONFIG_SHELL
48290 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
48294 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
48295 ## Running $as_me. ##
48301 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
48305 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
48308 # The HP-UX ksh and POSIX shell print the target directory to stdout
48309 # if CDPATH is set.
48310 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
48312 sed_quote_subst='$sed_quote_subst'
48313 double_quote_subst='$double_quote_subst'
48314 delay_variable_subst='$delay_variable_subst'
48315 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
48316 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
48317 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
48318 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
48319 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
48320 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
48321 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
48322 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
48323 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
48324 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
48325 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
48326 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
48327 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
48328 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
48329 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
48330 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
48331 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
48332 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
48333 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
48334 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
48335 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
48336 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
48337 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
48338 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
48339 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
48340 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
48341 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
48342 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
48343 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
48344 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
48345 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
48346 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
48347 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
48348 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
48349 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
48350 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
48351 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
48352 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
48353 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
48354 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
48355 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
48356 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
48357 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
48358 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
48359 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
48360 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
48361 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
48362 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
48363 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
48364 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
48365 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
48366 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
48367 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
48368 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
48369 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
48370 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
48371 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
48372 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
48373 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`'
48374 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
48375 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
48376 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
48377 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
48378 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
48379 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
48380 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
48381 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
48382 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
48383 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
48384 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
48385 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
48386 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
48387 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
48388 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
48389 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
48390 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
48391 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
48392 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
48393 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
48394 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
48395 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
48396 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
48397 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
48398 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
48399 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
48400 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
48401 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
48402 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
48403 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
48404 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
48405 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
48406 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
48407 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
48408 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
48409 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
48410 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
48411 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
48412 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
48413 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
48414 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
48415 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
48416 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
48417 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
48418 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
48419 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
48420 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
48421 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
48422 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
48423 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
48424 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
48425 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
48426 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
48427 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
48428 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
48429 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
48430 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
48431 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
48432 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
48433 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
48434 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
48435 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
48436 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
48437 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
48438 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
48439 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
48440 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
48441 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
48442 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
48443 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
48444 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
48445 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
48446 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
48447 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
48448 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
48449 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
48452 LTCFLAGS='$LTCFLAGS'
48453 compiler='$compiler_DEFAULT'
48455 # A function that is used when there is no print builtin or printf.
48456 func_fallback_echo ()
48458 eval 'cat <<_LTECHO_EOF
48463 # Quote evaled strings.
48478 deplibs_check_method \
48483 sharedlib_from_linklib_cmd \
48486 archiver_list_spec \
48492 lt_cv_sys_global_symbol_pipe \
48493 lt_cv_sys_global_symbol_to_cdecl \
48494 lt_cv_sys_global_symbol_to_import \
48495 lt_cv_sys_global_symbol_to_c_name_address \
48496 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
48497 lt_cv_nm_interface \
48498 nm_file_list_spec \
48499 lt_cv_truncate_bin \
48500 lt_prog_compiler_no_builtin_flag \
48501 lt_prog_compiler_pic \
48502 lt_prog_compiler_wl \
48503 lt_prog_compiler_static \
48504 lt_cv_prog_compiler_c_o \
48513 export_dynamic_flag_spec \
48514 whole_archive_flag_spec \
48515 compiler_needs_object \
48517 allow_undefined_flag \
48518 no_undefined_flag \
48519 hardcode_libdir_flag_spec \
48520 hardcode_libdir_separator \
48524 variables_saved_for_relink \
48526 library_names_spec \
48528 install_override_mode \
48532 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
48533 *[\\\\\\\`\\"\\\$]*)
48534 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
48537 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
48542 # Double-quote double-evaled strings.
48543 for var in reload_cmds \
48544 old_postinstall_cmds \
48545 old_postuninstall_cmds \
48547 extract_expsyms_cmds \
48548 old_archive_from_new_cmds \
48549 old_archive_from_expsyms_cmds \
48551 archive_expsym_cmds \
48553 module_expsym_cmds \
48554 export_symbols_cmds \
48558 postuninstall_cmds \
48560 sys_lib_search_path_spec \
48561 configure_time_dlsearch_path \
48562 configure_time_lt_sys_library_path; do
48563 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
48564 *[\\\\\\\`\\"\\\$]*)
48565 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
48568 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
48573 ac_aux_dir='$ac_aux_dir'
48575 # See if we are running on zsh, and set the options that allow our
48576 # commands through without removal of \ escapes INIT.
48577 if test -n "\${ZSH_VERSION+set}"; then
48578 setopt NO_GLOB_SUBST
48589 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
48590 # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
48591 # from automake < 1.5.
48592 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
48593 # Capture the value of LINGUAS because we need it to compute CATALOGS.
48594 LINGUAS="${LINGUAS-%UNSET%}"
48599 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
48601 # Handling of arguments.
48602 for ac_config_target in $ac_config_targets
48604 case $ac_config_target in
48605 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
48606 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
48607 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
48608 "po-directories") CONFIG_COMMANDS="$CONFIG_COMMANDS po-directories" ;;
48609 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
48610 "gnulib/lib/Makefile") CONFIG_FILES="$CONFIG_FILES gnulib/lib/Makefile" ;;
48611 "init/Makefile") CONFIG_FILES="$CONFIG_FILES init/Makefile" ;;
48612 "init/systemd/Makefile") CONFIG_FILES="$CONFIG_FILES init/systemd/Makefile" ;;
48613 "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
48614 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
48615 "src/man_db.conf") CONFIG_FILES="$CONFIG_FILES src/man_db.conf" ;;
48616 "src/tests/Makefile") CONFIG_FILES="$CONFIG_FILES src/tests/Makefile" ;;
48617 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
48618 "man/replace.sin") CONFIG_FILES="$CONFIG_FILES man/replace.sin" ;;
48619 "man/po4a/Makefile") CONFIG_FILES="$CONFIG_FILES man/po4a/Makefile" ;;
48620 "man/da/Makefile") CONFIG_FILES="$CONFIG_FILES man/da/Makefile" ;;
48621 "man/de/Makefile") CONFIG_FILES="$CONFIG_FILES man/de/Makefile" ;;
48622 "man/es/Makefile") CONFIG_FILES="$CONFIG_FILES man/es/Makefile" ;;
48623 "man/fr/Makefile") CONFIG_FILES="$CONFIG_FILES man/fr/Makefile" ;;
48624 "man/id/Makefile") CONFIG_FILES="$CONFIG_FILES man/id/Makefile" ;;
48625 "man/it/Makefile") CONFIG_FILES="$CONFIG_FILES man/it/Makefile" ;;
48626 "man/ja/Makefile") CONFIG_FILES="$CONFIG_FILES man/ja/Makefile" ;;
48627 "man/nl/Makefile") CONFIG_FILES="$CONFIG_FILES man/nl/Makefile" ;;
48628 "man/pl/Makefile") CONFIG_FILES="$CONFIG_FILES man/pl/Makefile" ;;
48629 "man/pt_BR/Makefile") CONFIG_FILES="$CONFIG_FILES man/pt_BR/Makefile" ;;
48630 "man/ru/Makefile") CONFIG_FILES="$CONFIG_FILES man/ru/Makefile" ;;
48631 "man/sr/Makefile") CONFIG_FILES="$CONFIG_FILES man/sr/Makefile" ;;
48632 "man/sv/Makefile") CONFIG_FILES="$CONFIG_FILES man/sv/Makefile" ;;
48633 "man/tr/Makefile") CONFIG_FILES="$CONFIG_FILES man/tr/Makefile" ;;
48634 "man/zh_CN/Makefile") CONFIG_FILES="$CONFIG_FILES man/zh_CN/Makefile" ;;
48635 "manual/Makefile") CONFIG_FILES="$CONFIG_FILES manual/Makefile" ;;
48636 "libdb/Makefile") CONFIG_FILES="$CONFIG_FILES libdb/Makefile" ;;
48637 "docs/Makefile") CONFIG_FILES="$CONFIG_FILES docs/Makefile" ;;
48638 "tools/Makefile") CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
48639 "include/comp_src.h") CONFIG_FILES="$CONFIG_FILES include/comp_src.h" ;;
48640 "include/manconfig.h") CONFIG_FILES="$CONFIG_FILES include/manconfig.h" ;;
48641 "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
48642 "gnulib/po/Makefile.in") CONFIG_FILES="$CONFIG_FILES gnulib/po/Makefile.in" ;;
48644 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
48649 # If the user did not use the arguments to specify the items to instantiate,
48650 # then the envvar interface is used. Set only those that are not.
48651 # We use the long form for the default assignment because of an extremely
48652 # bizarre bug on SunOS 4.1.3.
48653 if $ac_need_defaults; then
48654 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
48655 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
48656 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
48659 # Have a temporary directory for convenience. Make it in the build tree
48660 # simply because there is no reason against having it here, and in addition,
48661 # creating and moving files from /tmp can sometimes cause problems.
48662 # Hook for its removal unless debugging.
48663 # Note that there is a small window in which the directory will not be cleaned:
48664 # after its creation but before its name has been assigned to `$tmp'.
48668 trap 'exit_status=$?
48669 : "${ac_tmp:=$tmp}"
48670 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
48672 trap 'as_fn_exit 1' 1 2 13 15
48674 # Create a (secure) tmp directory for tmp files.
48677 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
48681 tmp=./conf$$-$RANDOM
48682 (umask 077 && mkdir "$tmp")
48683 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
48686 # Set up the scripts for CONFIG_FILES section.
48687 # No need to generate them if there are no CONFIG_FILES.
48688 # This happens for instance with `./config.status config.h'.
48689 if test -n "$CONFIG_FILES"; then
48692 ac_cr=`echo X | tr X '\015'`
48693 # On cygwin, bash can eat \r inside `` if the user requested igncr.
48694 # But we know of no other shell where ac_cr would be empty at this
48695 # point, so we can use a bashism as a fallback.
48696 if test "x$ac_cr" = x; then
48697 eval ac_cr=\$\'\\r\'
48699 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
48700 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
48703 ac_cs_awk_cr=$ac_cr
48706 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
48711 echo "cat >conf$$subs.awk <<_ACEOF" &&
48712 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
48714 } >conf$$subs.sh ||
48715 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
48716 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
48718 for ac_last_try in false false false false false :; do
48719 . ./conf$$subs.sh ||
48720 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
48722 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
48723 if test $ac_delim_n = $ac_delim_num; then
48725 elif $ac_last_try; then
48726 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
48728 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
48731 rm -f conf$$subs.sh
48733 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
48734 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
48738 s/^/S["/; s/!.*/"]=/
48748 s/\(.\{148\}\)..*/\1/
48750 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
48755 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
48762 s/\(.\{148\}\)..*/\1/
48764 s/["\\]/\\&/g; s/^/"/; s/$/"/
48768 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
48773 ' <conf$$subs.awk | sed '
48778 ' >>$CONFIG_STATUS || ac_write_fail=1
48779 rm -f conf$$subs.awk
48780 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
48782 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
48783 for (key in S) S_is_set[key] = 1
48789 nfields = split(line, field, "@")
48791 len = length(field[1])
48792 for (i = 2; i < nfields; i++) {
48794 keylen = length(key)
48795 if (S_is_set[key]) {
48797 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
48798 len += length(value) + length(field[++i])
48809 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
48810 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
48811 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
48814 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
48815 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
48818 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
48819 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
48820 # trailing colons and then remove the whole line if VPATH becomes empty
48821 # (actually we leave an empty line to preserve line numbers).
48822 if test "x$srcdir" = x.; then
48823 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
48841 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
48842 fi # test -n "$CONFIG_FILES"
48844 # Set up the scripts for CONFIG_HEADERS section.
48845 # No need to generate them if there are no CONFIG_HEADERS.
48846 # This happens for instance with `./config.status Makefile'.
48847 if test -n "$CONFIG_HEADERS"; then
48848 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
48852 # Transform confdefs.h into an awk script `defines.awk', embedded as
48853 # here-document in config.status, that substitutes the proper values into
48854 # config.h.in to produce config.h.
48856 # Create a delimiter string that does not exist in confdefs.h, to ease
48857 # handling of long lines.
48859 for ac_last_try in false false :; do
48860 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
48861 if test -z "$ac_tt"; then
48863 elif $ac_last_try; then
48864 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
48866 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
48870 # For the awk script, D is an array of macro values keyed by name,
48871 # likewise P contains macro parameters if any. Preserve backslash
48872 # newline sequences.
48874 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
48876 s/.\{148\}/&'"$ac_delim"'/g
48879 s/^[ ]*#[ ]*define[ ][ ]*/ /
48886 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
48888 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
48892 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
48893 D["\1"]=" \3\\\\\\n"\\/p
48895 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
48900 s/.\{148\}/&'"$ac_delim"'/g
48905 s/["\\]/\\&/g; s/^/"/; s/$/"/p
48908 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
48910 ' <confdefs.h | sed '
48911 s/'"$ac_delim"'/"\\\
48912 "/g' >>$CONFIG_STATUS || ac_write_fail=1
48914 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
48915 for (key in D) D_is_set[key] = 1
48918 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
48920 split(line, arg, " ")
48921 if (arg[1] == "#") {
48925 defundef = substr(arg[1], 2)
48928 split(mac1, mac2, "(") #)
48930 prefix = substr(line, 1, index(line, defundef) - 1)
48931 if (D_is_set[macro]) {
48932 # Preserve the white space surrounding the "#".
48933 print prefix "define", macro P[macro] D[macro]
48936 # Replace #undef with comments. This is necessary, for example,
48937 # in the case of _POSIX_SOURCE, which is predefined and required
48938 # on some systems where configure will not decide to define it.
48939 if (defundef == "undef") {
48940 print "/*", prefix defundef, macro, "*/"
48948 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
48949 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
48950 fi # test -n "$CONFIG_HEADERS"
48953 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
48958 :[FHLC]) ac_mode=$ac_tag; continue;;
48960 case $ac_mode$ac_tag in
48962 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
48963 :[FH]-) ac_tag=-:-;;
48964 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
48981 -) ac_f="$ac_tmp/stdin";;
48982 *) # Look for the file first in the build tree, then in the source tree
48983 # (if the path is not absolute). The absolute path cannot be DOS-style,
48984 # because $ac_f cannot contain `:'.
48988 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
48990 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
48992 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
48993 as_fn_append ac_file_inputs " '$ac_f'"
48996 # Let's still pretend it is `configure' which instantiates (i.e., don't
48997 # use $as_me), people would be surprised to read:
48998 # /* config.h. Generated by config.status. */
48999 configure_input='Generated from '`
49000 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
49002 if test x"$ac_file" != x-; then
49003 configure_input="$ac_file. $configure_input"
49004 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
49005 $as_echo "$as_me: creating $ac_file" >&6;}
49007 # Neutralize special characters interpreted by sed in replacement strings.
49008 case $configure_input in #(
49009 *\&* | *\|* | *\\* )
49010 ac_sed_conf_input=`$as_echo "$configure_input" |
49011 sed 's/[\\\\&|]/\\\\&/g'`;; #(
49012 *) ac_sed_conf_input=$configure_input;;
49016 *:-:* | *:-) cat >"$ac_tmp/stdin" \
49017 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
49022 ac_dir=`$as_dirname -- "$ac_file" ||
49023 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
49024 X"$ac_file" : 'X\(//\)[^/]' \| \
49025 X"$ac_file" : 'X\(//\)$' \| \
49026 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
49027 $as_echo X"$ac_file" |
49028 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
49032 /^X\(\/\/\)[^/].*/{
49045 as_dir="$ac_dir"; as_fn_mkdir_p
49049 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
49051 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
49052 # A ".." for each directory in $ac_dir_suffix.
49053 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
49054 case $ac_top_builddir_sub in
49055 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
49056 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
49059 ac_abs_top_builddir=$ac_pwd
49060 ac_abs_builddir=$ac_pwd$ac_dir_suffix
49061 # for backward compatibility:
49062 ac_top_builddir=$ac_top_build_prefix
49065 .) # We are building in place.
49067 ac_top_srcdir=$ac_top_builddir_sub
49068 ac_abs_top_srcdir=$ac_pwd ;;
49069 [\\/]* | ?:[\\/]* ) # Absolute name.
49070 ac_srcdir=$srcdir$ac_dir_suffix;
49071 ac_top_srcdir=$srcdir
49072 ac_abs_top_srcdir=$srcdir ;;
49073 *) # Relative name.
49074 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
49075 ac_top_srcdir=$ac_top_build_prefix$srcdir
49076 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
49078 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
49088 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
49089 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
49091 ac_MKDIR_P=$MKDIR_P
49093 [\\/$]* | ?:[\\/]* ) ;;
49094 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
49098 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
49099 # If the template does not know about datarootdir, expand it.
49100 # FIXME: This hack should be removed a few years after 2.60.
49101 ac_datarootdir_hack=; ac_datarootdir_seen=
49112 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
49113 *datarootdir*) ac_datarootdir_seen=yes;;
49114 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
49115 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
49116 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
49118 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
49119 ac_datarootdir_hack='
49120 s&@datadir@&$datadir&g
49121 s&@docdir@&$docdir&g
49122 s&@infodir@&$infodir&g
49123 s&@localedir@&$localedir&g
49124 s&@mandir@&$mandir&g
49125 s&\\\${datarootdir}&$datarootdir&g' ;;
49129 # Neutralize VPATH when `$srcdir' = `.'.
49130 # Shell code in configure.ac might set extrasub.
49131 # FIXME: do we really want to maintain this feature?
49132 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
49133 ac_sed_extra="$ac_vpsub
49136 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
49138 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
49139 s|@configure_input@|$ac_sed_conf_input|;t t
49140 s&@top_builddir@&$ac_top_builddir_sub&;t t
49141 s&@top_build_prefix@&$ac_top_build_prefix&;t t
49142 s&@srcdir@&$ac_srcdir&;t t
49143 s&@abs_srcdir@&$ac_abs_srcdir&;t t
49144 s&@top_srcdir@&$ac_top_srcdir&;t t
49145 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
49146 s&@builddir@&$ac_builddir&;t t
49147 s&@abs_builddir@&$ac_abs_builddir&;t t
49148 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
49149 s&@INSTALL@&$ac_INSTALL&;t t
49150 s&@MKDIR_P@&$ac_MKDIR_P&;t t
49151 $ac_datarootdir_hack
49153 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
49154 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
49156 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
49157 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
49158 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
49159 "$ac_tmp/out"`; test -z "$ac_out"; } &&
49160 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
49161 which seems to be undefined. Please make sure it is defined" >&5
49162 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
49163 which seems to be undefined. Please make sure it is defined" >&2;}
49165 rm -f "$ac_tmp/stdin"
49167 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
49168 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
49170 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
49176 if test x"$ac_file" != x-; then
49178 $as_echo "/* $configure_input */" \
49179 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
49180 } >"$ac_tmp/config.h" \
49181 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
49182 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
49183 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
49184 $as_echo "$as_me: $ac_file is unchanged" >&6;}
49187 mv "$ac_tmp/config.h" "$ac_file" \
49188 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
49191 $as_echo "/* $configure_input */" \
49192 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
49193 || as_fn_error $? "could not create -" "$LINENO" 5
49195 # Compute "$ac_file"'s index in $config_headers.
49198 for _am_header in $config_headers :; do
49199 case $_am_header in
49200 $_am_arg | $_am_arg:* )
49203 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
49206 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
49207 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
49208 X"$_am_arg" : 'X\(//\)[^/]' \| \
49209 X"$_am_arg" : 'X\(//\)$' \| \
49210 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
49211 $as_echo X"$_am_arg" |
49212 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
49216 /^X\(\/\/\)[^/].*/{
49228 s/.*/./; q'`/stamp-h$_am_stamp_count
49231 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
49232 $as_echo "$as_me: executing $ac_file commands" >&6;}
49237 case $ac_file$ac_mode in
49238 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
49239 # Older Autoconf quotes --file arguments for eval, but not when files
49240 # are listed without --file. Let's play safe and only enable the eval
49241 # if we detect the quoting.
49242 case $CONFIG_FILES in
49243 *\'*) eval set x "$CONFIG_FILES" ;;
49244 *) set x $CONFIG_FILES ;;
49249 # Strip MF so we end up with the name of the file.
49250 mf=`echo "$mf" | sed -e 's/:.*$//'`
49251 # Check whether this is an Automake generated Makefile or not.
49252 # We used to match only the files named 'Makefile.in', but
49253 # some people rename them; so instead we look at the file content.
49254 # Grep'ing the first line is not enough: some people post-process
49255 # each Makefile.in and add a new line on top of each file to say so.
49256 # Grep'ing the whole file is not good either: AIX grep has a line
49257 # limit of 2048, but all sed's we know have understand at least 4000.
49258 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
49259 dirpart=`$as_dirname -- "$mf" ||
49260 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
49261 X"$mf" : 'X\(//\)[^/]' \| \
49262 X"$mf" : 'X\(//\)$' \| \
49263 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
49265 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
49269 /^X\(\/\/\)[^/].*/{
49285 # Extract the definition of DEPDIR, am__include, and am__quote
49286 # from the Makefile without running 'make'.
49287 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
49288 test -z "$DEPDIR" && continue
49289 am__include=`sed -n 's/^am__include = //p' < "$mf"`
49290 test -z "$am__include" && continue
49291 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
49292 # Find all dependency output files, they are included files with
49293 # $(DEPDIR) in their names. We invoke sed twice because it is the
49294 # simplest approach to changing $(DEPDIR) to its actual value in the
49296 for file in `sed -n "
49297 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
49298 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
49299 # Make sure the directory exists.
49300 test -f "$dirpart/$file" && continue
49301 fdir=`$as_dirname -- "$file" ||
49302 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
49303 X"$file" : 'X\(//\)[^/]' \| \
49304 X"$file" : 'X\(//\)$' \| \
49305 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
49306 $as_echo X"$file" |
49307 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
49311 /^X\(\/\/\)[^/].*/{
49324 as_dir=$dirpart/$fdir; as_fn_mkdir_p
49325 # echo "creating $dirpart/$file"
49326 echo '# dummy' > "$dirpart/$file"
49333 # See if we are running on zsh, and set the options that allow our
49334 # commands through without removal of \ escapes.
49335 if test -n "${ZSH_VERSION+set}"; then
49336 setopt NO_GLOB_SUBST
49340 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
49343 cat <<_LT_EOF >> "$cfgfile"
49345 # Generated automatically by $as_me ($PACKAGE) $VERSION
49346 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
49348 # Provide generalized library-building support services.
49349 # Written by Gordon Matzigkeit, 1996
49351 # Copyright (C) 2014 Free Software Foundation, Inc.
49352 # This is free software; see the source for copying conditions. There is NO
49353 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
49355 # GNU Libtool is free software; you can redistribute it and/or modify
49356 # it under the terms of the GNU General Public License as published by
49357 # the Free Software Foundation; either version 2 of of the License, or
49358 # (at your option) any later version.
49360 # As a special exception to the GNU General Public License, if you
49361 # distribute this file as part of a program or library that is built
49362 # using GNU Libtool, you may include this file under the same
49363 # distribution terms that you use for the rest of that program.
49365 # GNU Libtool is distributed in the hope that it will be useful, but
49366 # WITHOUT ANY WARRANTY; without even the implied warranty of
49367 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
49368 # GNU General Public License for more details.
49370 # You should have received a copy of the GNU General Public License
49371 # along with this program. If not, see <http://www.gnu.org/licenses/>.
49374 # The names of the tagged configurations supported by this script.
49377 # Configured defaults for sys_lib_dlsearch_path munging.
49378 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
49380 # ### BEGIN LIBTOOL CONFIG
49382 # Which release of libtool.m4 was used?
49383 macro_version=$macro_version
49384 macro_revision=$macro_revision
49386 # Whether or not to build static libraries.
49387 build_old_libs=$enable_static
49389 # Whether or not to build shared libraries.
49390 build_libtool_libs=$enable_shared
49392 # What type of objects to build.
49395 # Whether or not to optimize for fast installation.
49396 fast_install=$enable_fast_install
49398 # Shared archive member basename,for filename based shared library versioning on AIX.
49399 shared_archive_member_spec=$shared_archive_member_spec
49401 # Shell to use when invoking shell scripts.
49404 # An echo program that protects backslashes.
49407 # The PATH separator for the build system.
49408 PATH_SEPARATOR=$lt_PATH_SEPARATOR
49411 host_alias=$host_alias
49415 # The build system.
49416 build_alias=$build_alias
49420 # A sed program that does not truncate output.
49423 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
49424 Xsed="\$SED -e 1s/^X//"
49426 # A grep program that handles long lines.
49432 # A literal string matcher.
49435 # A BSD- or MS-compatible name lister.
49438 # Whether we need soft or hard links.
49441 # What is the maximum length of a command?
49442 max_cmd_len=$max_cmd_len
49444 # Object file suffix (normally "o").
49447 # Executable file suffix (normally "").
49450 # whether the shell understands "unset".
49453 # turn spaces into newlines.
49456 # turn newlines into spaces.
49459 # convert \$build file names to \$host format.
49460 to_host_file_cmd=$lt_cv_to_host_file_cmd
49462 # convert \$build files to toolchain format.
49463 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
49465 # An object symbol dumper.
49466 OBJDUMP=$lt_OBJDUMP
49468 # Method to check whether dependent libraries are shared objects.
49469 deplibs_check_method=$lt_deplibs_check_method
49471 # Command to use when deplibs_check_method = "file_magic".
49472 file_magic_cmd=$lt_file_magic_cmd
49474 # How to find potential files when deplibs_check_method = "file_magic".
49475 file_magic_glob=$lt_file_magic_glob
49477 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
49478 want_nocaseglob=$lt_want_nocaseglob
49480 # DLL creation program.
49481 DLLTOOL=$lt_DLLTOOL
49483 # Command to associate shared and link libraries.
49484 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
49489 # Flags to create an archive.
49490 AR_FLAGS=$lt_AR_FLAGS
49492 # How to feed a file listing to the archiver.
49493 archiver_list_spec=$lt_archiver_list_spec
49495 # A symbol stripping program.
49498 # Commands used to install an old-style archive.
49500 old_postinstall_cmds=$lt_old_postinstall_cmds
49501 old_postuninstall_cmds=$lt_old_postuninstall_cmds
49503 # Whether to use a lock for old archive extraction.
49504 lock_old_archive_extraction=$lock_old_archive_extraction
49509 # LTCC compiler flags.
49510 LTCFLAGS=$lt_CFLAGS
49512 # Take the output of nm and produce a listing of raw symbols and C names.
49513 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
49515 # Transform the output of nm in a proper C declaration.
49516 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
49518 # Transform the output of nm into a list of symbols to manually relocate.
49519 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
49521 # Transform the output of nm in a C name address pair.
49522 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
49524 # Transform the output of nm in a C name address pair when lib prefix is needed.
49525 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
49527 # The name lister interface.
49528 nm_interface=$lt_lt_cv_nm_interface
49530 # Specify filename containing input files for \$NM.
49531 nm_file_list_spec=$lt_nm_file_list_spec
49533 # The root where to search for dependent libraries,and where our libraries should be installed.
49534 lt_sysroot=$lt_sysroot
49536 # Command to truncate a binary pipe.
49537 lt_truncate_bin=$lt_lt_cv_truncate_bin
49539 # The name of the directory that contains temporary libtool files.
49542 # Used to examine libraries when file_magic_cmd begins with "file".
49543 MAGIC_CMD=$MAGIC_CMD
49545 # Must we lock files when doing compilation?
49546 need_locks=$lt_need_locks
49549 MANIFEST_TOOL=$lt_MANIFEST_TOOL
49551 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
49552 DSYMUTIL=$lt_DSYMUTIL
49554 # Tool to change global to local symbols on Mac OS X.
49557 # Tool to manipulate fat objects and archives on Mac OS X.
49560 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
49563 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
49564 OTOOL64=$lt_OTOOL64
49566 # Old archive suffix (normally "a").
49569 # Shared library suffix (normally ".so").
49570 shrext_cmds=$lt_shrext_cmds
49572 # The commands to extract the exported symbol list from a shared archive.
49573 extract_expsyms_cmds=$lt_extract_expsyms_cmds
49575 # Variables whose values should be saved in libtool wrapper scripts and
49576 # restored at link time.
49577 variables_saved_for_relink=$lt_variables_saved_for_relink
49579 # Do we need the "lib" prefix for modules?
49580 need_lib_prefix=$need_lib_prefix
49582 # Do we need a version for libraries?
49583 need_version=$need_version
49585 # Library versioning type.
49586 version_type=$version_type
49588 # Shared library runtime path variable.
49589 runpath_var=$runpath_var
49591 # Shared library path variable.
49592 shlibpath_var=$shlibpath_var
49594 # Is shlibpath searched before the hard-coded library search path?
49595 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
49597 # Format of library name prefix.
49598 libname_spec=$lt_libname_spec
49600 # List of archive names. First name is the real one, the rest are links.
49601 # The last name is the one that the linker finds with -lNAME
49602 library_names_spec=$lt_library_names_spec
49604 # The coded name of the library, if different from the real name.
49605 soname_spec=$lt_soname_spec
49607 # Permission mode override for installation of shared libraries.
49608 install_override_mode=$lt_install_override_mode
49610 # Command to use after installation of a shared archive.
49611 postinstall_cmds=$lt_postinstall_cmds
49613 # Command to use after uninstallation of a shared archive.
49614 postuninstall_cmds=$lt_postuninstall_cmds
49616 # Commands used to finish a libtool library installation in a directory.
49617 finish_cmds=$lt_finish_cmds
49619 # As "finish_cmds", except a single script fragment to be evaled but
49621 finish_eval=$lt_finish_eval
49623 # Whether we should hardcode library paths into libraries.
49624 hardcode_into_libs=$hardcode_into_libs
49626 # Compile-time system search path for libraries.
49627 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
49629 # Detected run-time system search path for libraries.
49630 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
49632 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
49633 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
49635 # Whether dlopen is supported.
49636 dlopen_support=$enable_dlopen
49638 # Whether dlopen of programs is supported.
49639 dlopen_self=$enable_dlopen_self
49641 # Whether dlopen of statically linked programs is supported.
49642 dlopen_self_static=$enable_dlopen_self_static
49644 # Commands to strip libraries.
49645 old_striplib=$lt_old_striplib
49646 striplib=$lt_striplib
49649 # The linker used to build libraries.
49652 # How to create reloadable object files.
49653 reload_flag=$lt_reload_flag
49654 reload_cmds=$lt_reload_cmds
49656 # Commands used to build an old-style archive.
49657 old_archive_cmds=$lt_old_archive_cmds
49659 # A language specific compiler.
49662 # Is the compiler the GNU compiler?
49665 # Compiler flag to turn off builtin functions.
49666 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
49668 # Additional compiler flags for building library objects.
49669 pic_flag=$lt_lt_prog_compiler_pic
49671 # How to pass a linker flag through the compiler.
49672 wl=$lt_lt_prog_compiler_wl
49674 # Compiler flag to prevent dynamic linking.
49675 link_static_flag=$lt_lt_prog_compiler_static
49677 # Does compiler simultaneously support -c and -o options?
49678 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
49680 # Whether or not to add -lc for building shared libraries.
49681 build_libtool_need_lc=$archive_cmds_need_lc
49683 # Whether or not to disallow shared libs when runtime libs are static.
49684 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
49686 # Compiler flag to allow reflexive dlopens.
49687 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
49689 # Compiler flag to generate shared objects directly from archives.
49690 whole_archive_flag_spec=$lt_whole_archive_flag_spec
49692 # Whether the compiler copes with passing no objects directly.
49693 compiler_needs_object=$lt_compiler_needs_object
49695 # Create an old-style archive from a shared archive.
49696 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
49698 # Create a temporary old-style archive to link instead of a shared archive.
49699 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
49701 # Commands used to build a shared archive.
49702 archive_cmds=$lt_archive_cmds
49703 archive_expsym_cmds=$lt_archive_expsym_cmds
49705 # Commands used to build a loadable module if different from building
49706 # a shared archive.
49707 module_cmds=$lt_module_cmds
49708 module_expsym_cmds=$lt_module_expsym_cmds
49710 # Whether we are building with GNU ld or not.
49711 with_gnu_ld=$lt_with_gnu_ld
49713 # Flag that allows shared libraries with undefined symbols to be built.
49714 allow_undefined_flag=$lt_allow_undefined_flag
49716 # Flag that enforces no undefined symbols.
49717 no_undefined_flag=$lt_no_undefined_flag
49719 # Flag to hardcode \$libdir into a binary during linking.
49720 # This must work even if \$libdir does not exist
49721 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
49723 # Whether we need a single "-rpath" flag with a separated argument.
49724 hardcode_libdir_separator=$lt_hardcode_libdir_separator
49726 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
49727 # DIR into the resulting binary.
49728 hardcode_direct=$hardcode_direct
49730 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
49731 # DIR into the resulting binary and the resulting library dependency is
49732 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
49733 # library is relocated.
49734 hardcode_direct_absolute=$hardcode_direct_absolute
49736 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
49737 # into the resulting binary.
49738 hardcode_minus_L=$hardcode_minus_L
49740 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
49741 # into the resulting binary.
49742 hardcode_shlibpath_var=$hardcode_shlibpath_var
49744 # Set to "yes" if building a shared library automatically hardcodes DIR
49745 # into the library and all subsequent libraries and executables linked
49747 hardcode_automatic=$hardcode_automatic
49749 # Set to yes if linker adds runtime paths of dependent libraries
49750 # to runtime path list.
49751 inherit_rpath=$inherit_rpath
49753 # Whether libtool must link a program against all its dependency libraries.
49754 link_all_deplibs=$link_all_deplibs
49756 # Set to "yes" if exported symbols are required.
49757 always_export_symbols=$always_export_symbols
49759 # The commands to list exported symbols.
49760 export_symbols_cmds=$lt_export_symbols_cmds
49762 # Symbols that should not be listed in the preloaded symbols.
49763 exclude_expsyms=$lt_exclude_expsyms
49765 # Symbols that must always be exported.
49766 include_expsyms=$lt_include_expsyms
49768 # Commands necessary for linking programs (against libraries) with templates.
49769 prelink_cmds=$lt_prelink_cmds
49771 # Commands necessary for finishing linking programs.
49772 postlink_cmds=$lt_postlink_cmds
49774 # Specify filename containing input files.
49775 file_list_spec=$lt_file_list_spec
49777 # How to hardcode a shared library path into an executable.
49778 hardcode_action=$hardcode_action
49780 # ### END LIBTOOL CONFIG
49784 cat <<'_LT_EOF' >> "$cfgfile"
49786 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
49788 # func_munge_path_list VARIABLE PATH
49789 # -----------------------------------
49790 # VARIABLE is name of variable containing _space_ separated list of
49791 # directories to be munged by the contents of PATH, which is string
49794 # string "DIR[ DIR]" will be prepended to VARIABLE
49796 # string "DIR[ DIR]" will be appended to VARIABLE
49797 # "DIRP[:DIRP]::[DIRA:]DIRA"
49798 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
49799 # "DIRA[ DIRA]" will be appended to VARIABLE
49801 # VARIABLE will be replaced by "DIR[ DIR]"
49802 func_munge_path_list ()
49808 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
49811 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
49814 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
49815 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
49818 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
49824 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
49825 func_cc_basename ()
49827 for cc_temp in $*""; do
49829 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
49830 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
49835 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
49839 # ### END FUNCTIONS SHARED WITH CONFIGURE
49845 cat <<\_LT_EOF >> "$cfgfile"
49846 # AIX sometimes has problems with the GCC collect2 program. For some
49847 # reason, if we set the COLLECT_NAMES environment variable, the problems
49848 # vanish in a puff of smoke.
49849 if test set != "${COLLECT_NAMES+set}"; then
49851 export COLLECT_NAMES
49858 ltmain=$ac_aux_dir/ltmain.sh
49861 # We use sed instead of cat because bash on DJGPP gets confused if
49862 # if finds mixed CR/LF and LF-only lines. Since sed operates in
49863 # text mode, it properly converts lines to CR/LF. This bash problem
49864 # is reportedly fixed, but why not run on old versions too?
49865 sed '$q' "$ltmain" >> "$cfgfile" \
49866 || (rm -f "$cfgfile"; exit 1)
49868 mv -f "$cfgfile" "$ofile" ||
49869 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
49873 "po-directories":C)
49874 for ac_file in $CONFIG_FILES; do
49875 # Support "outfile[:infile[:infile...]]"
49877 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
49879 # PO directories have a Makefile.in generated from Makefile.in.in.
49880 case "$ac_file" in */Makefile.in)
49881 # Adjust a relative srcdir.
49882 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
49883 ac_dir_suffix=/`echo "$ac_dir"|sed 's%^\./%%'`
49884 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
49885 # In autoconf-2.13 it is called $ac_given_srcdir.
49886 # In autoconf-2.50 it is called $srcdir.
49887 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
49888 case "$ac_given_srcdir" in
49889 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
49890 /*) top_srcdir="$ac_given_srcdir" ;;
49891 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
49893 # Treat a directory as a PO directory if and only if it has a
49894 # POTFILES.in file. This allows packages to have multiple PO
49895 # directories under different names or in different locations.
49896 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
49897 rm -f "$ac_dir/POTFILES"
49898 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
49899 gt_tab=`printf '\t'`
49900 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ${gt_tab}]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
49901 POMAKEFILEDEPS="POTFILES.in"
49902 # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
49903 # on $ac_dir but don't depend on user-specified configuration
49905 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
49906 # The LINGUAS file contains the set of available languages.
49907 if test -n "$OBSOLETE_ALL_LINGUAS"; then
49908 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
49910 ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
49911 # Hide the ALL_LINGUAS assignment from automake < 1.5.
49912 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
49913 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
49915 # The set of available languages was given in configure.in.
49916 # Hide the ALL_LINGUAS assignment from automake < 1.5.
49917 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
49920 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
49921 # Compute UPDATEPOFILES
49922 # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
49923 # Compute DUMMYPOFILES
49924 # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
49926 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
49927 case "$ac_given_srcdir" in
49929 *) srcdirpre='$(srcdir)/' ;;
49935 for lang in $ALL_LINGUAS; do
49936 POFILES="$POFILES $srcdirpre$lang.po"
49937 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
49938 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
49939 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
49941 # CATALOGS depends on both $ac_dir and the user's LINGUAS
49942 # environment variable.
49944 if test -n "$ALL_LINGUAS"; then
49945 for presentlang in $ALL_LINGUAS; do
49947 if test "%UNSET%" != "$LINGUAS"; then
49948 desiredlanguages="$LINGUAS"
49950 desiredlanguages="$ALL_LINGUAS"
49952 for desiredlang in $desiredlanguages; do
49953 # Use the presentlang catalog if desiredlang is
49954 # a. equal to presentlang, or
49955 # b. a variant of presentlang (because in this case,
49956 # presentlang can be used as a fallback for messages
49957 # which are not translated in the desiredlang catalog).
49958 case "$desiredlang" in
49959 "$presentlang"*) useit=yes;;
49962 if test $useit = yes; then
49963 INST_LINGUAS="$INST_LINGUAS $presentlang"
49968 if test -n "$INST_LINGUAS"; then
49969 for lang in $INST_LINGUAS; do
49970 CATALOGS="$CATALOGS $lang.gmo"
49973 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
49974 sed -e "/^POTFILES =/r $ac_dir/POTFILES" -e "/^# Makevars/r $ac_given_srcdir/$ac_dir/Makevars" -e "s|@POFILES@|$POFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" -e "s|@POMAKEFILEDEPS@|$POMAKEFILEDEPS|g" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
49975 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
49976 if test -f "$f"; then
49978 *.orig | *.bak | *~) ;;
49979 *) cat "$f" >> "$ac_dir/Makefile" ;;
49994 ac_clean_files=$ac_clean_files_save
49996 test $ac_write_fail = 0 ||
49997 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
50000 # configure is writing to config.log, and then calls config.status.
50001 # config.status does its own redirection, appending to config.log.
50002 # Unfortunately, on DOS this fails, as config.log is still kept open
50003 # by configure, so config.status won't be able to write to it; its
50004 # output is simply discarded. So we exec the FD to /dev/null,
50005 # effectively closing config.log, so it can be properly (re)opened and
50006 # appended to by config.status. When coming back to configure, we
50007 # need to make the FD available again.
50008 if test "$no_create" != yes; then
50010 ac_config_status_args=
50011 test "$silent" = yes &&
50012 ac_config_status_args="$ac_config_status_args --quiet"
50014 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
50016 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
50017 # would make configure fail if this is the last instruction.
50018 $ac_cs_success || as_fn_exit 1
50020 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
50021 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
50022 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}