2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for GnuTLS 3.3.27.
5 # Report bugs to <bugs@gnutls.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 bugs@gnutls.org
278 $0: about your system, including any error possibly output
279 $0: before this message. Then install a modern shell, or
280 $0: manually run the script under such a shell if you do
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='GnuTLS'
592 PACKAGE_TARNAME='gnutls'
593 PACKAGE_VERSION='3.3.27'
594 PACKAGE_STRING='GnuTLS 3.3.27'
595 PACKAGE_BUGREPORT='bugs@gnutls.org'
598 # Factoring default headers for most tests.
599 ac_includes_default="\
601 #ifdef HAVE_SYS_TYPES_H
602 # include <sys/types.h>
604 #ifdef HAVE_SYS_STAT_H
605 # include <sys/stat.h>
611 # ifdef HAVE_STDLIB_H
616 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
621 #ifdef HAVE_STRINGS_H
622 # include <strings.h>
624 #ifdef HAVE_INTTYPES_H
625 # include <inttypes.h>
637 ac_subst_vars='ggltests_LTLIBOBJS
669 GNUTLS_REQUIRES_PRIVATE
680 INSTALL_LIBOPTS_FALSE
683 GL_GENERATE_STDNORETURN_H_FALSE
684 GL_GENERATE_STDNORETURN_H_TRUE
687 ENABLE_TROUSERS_FALSE
691 HAVE_BUGGY_P11_KIT_FALSE
692 HAVE_BUGGY_P11_KIT_TRUE
703 ENABLE_ARCFOUR128_FALSE
704 ENABLE_ARCFOUR128_TRUE
705 ENABLE_SELF_CHECKS_FALSE
706 ENABLE_SELF_CHECKS_TRUE
707 ENABLE_NON_SUITEB_CURVES_FALSE
708 ENABLE_NON_SUITEB_CURVES_TRUE
736 NEXT_AS_FIRST_DIRECTIVE_SIGNAL_H
739 REPLACE_PTHREAD_SIGMASK
741 HAVE_TYPE_VOLATILE_SIG_ATOMIC_T
742 HAVE_STRUCT_SIGACTION_SA_SIGACTION
748 HAVE_POSIX_SIGNALBLOCKING
751 GNULIB_SIGNAL_H_SIGPIPE
753 GNULIB_PTHREAD_SIGMASK
756 NEXT_AS_FIRST_DIRECTIVE_SYS_SELECT_H
769 NEXT_AS_FIRST_DIRECTIVE_ARPA_INET_H
780 NEXT_AS_FIRST_DIRECTIVE_INTTYPES_H
782 UINT64_MAX_EQ_ULONG_MAX
783 UINT32_MAX_LT_UINTMAX_MAX
786 INT64_MAX_EQ_LONG_MAX
787 INT32_MAX_LT_INTMAX_MAX
798 NEXT_AS_FIRST_DIRECTIVE_FCNTL_H
811 NEXT_AS_FIRST_DIRECTIVE_WCHAR_H
907 NEXT_AS_FIRST_DIRECTIVE_UNISTD_H
909 PTHREAD_H_DEFINES_STRUCT_TIMESPEC
910 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC
911 TIME_H_DEFINES_STRUCT_TIMESPEC
912 NEXT_AS_FIRST_DIRECTIVE_TIME_H
923 HAVE_DECL_LOCALTIME_R
930 NEXT_AS_FIRST_DIRECTIVE_SYS_UIO_H
934 NEXT_AS_FIRST_DIRECTIVE_SYS_SOCKET_H
938 HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY
939 HAVE_STRUCT_SOCKADDR_STORAGE
956 NEXT_AS_FIRST_DIRECTIVE_STRINGS_H
958 NEXT_AS_FIRST_DIRECTIVE_STRING_H
960 HAVE_DECL_STRNCASECMP
964 NEXT_AS_FIRST_DIRECTIVE_STDLIB_H
966 NEXT_AS_FIRST_DIRECTIVE_STDIO_H
968 GL_GENERATE_STDINT_H_FALSE
969 GL_GENERATE_STDINT_H_TRUE
978 HAVE_SIGNED_SIG_ATOMIC_T
981 BITSIZEOF_SIG_ATOMIC_T
987 NEXT_AS_FIRST_DIRECTIVE_STDINT_H
992 HAVE_UNSIGNED_LONG_LONG_INT
994 NEXT_AS_FIRST_DIRECTIVE_STDDEF_H
996 GL_GENERATE_STDDEF_H_FALSE
997 GL_GENERATE_STDDEF_H_TRUE
1003 GL_GENERATE_STDBOOL_H_FALSE
1004 GL_GENERATE_STDBOOL_H_TRUE
1006 GL_GENERATE_STDALIGN_H_FALSE
1007 GL_GENERATE_STDALIGN_H_TRUE
1010 GL_GENERATE_NETINET_IN_H_FALSE
1011 GL_GENERATE_NETINET_IN_H_TRUE
1014 NEXT_AS_FIRST_DIRECTIVE_NETINET_IN_H
1017 NEXT_AS_FIRST_DIRECTIVE_NETDB_H
1019 REPLACE_GAI_STRERROR
1020 HAVE_DECL_GETNAMEINFO
1021 HAVE_DECL_GETADDRINFO
1022 HAVE_DECL_GAI_STRERROR
1023 HAVE_DECL_FREEADDRINFO
1024 HAVE_STRUCT_ADDRINFO
1026 APPLE_UNIVERSAL_BUILD
1044 HAVE_DECL_STRERROR_R
1114 REPLACE_CANONICALIZE_FILE_NAME
1119 HAVE_STRUCT_RANDOM_DATA
1141 HAVE_DECL_GETLOADAVG
1142 HAVE_CANONICALIZE_FILE_NAME
1153 GNULIB_SECURE_GETENV
1156 GNULIB_REALLOC_POSIX
1174 GNULIB_CANONICALIZE_FILE_NAME
1178 HAVE_LD_VERSION_SCRIPT_FALSE
1179 HAVE_LD_VERSION_SCRIPT_TRUE
1180 HAVE_LD_OUTPUT_DEF_FALSE
1181 HAVE_LD_OUTPUT_DEF_TRUE
1182 NEXT_AS_FIRST_DIRECTIVE_SYS_TIME_H
1184 REPLACE_STRUCT_TIMEVAL
1185 REPLACE_GETTIMEOFDAY
1190 WINDOWS_64_BIT_OFF_T
1191 NEXT_AS_FIRST_DIRECTIVE_SYS_TYPES_H
1200 REPLACE_STDIO_WRITE_FUNCS
1201 REPLACE_STDIO_READ_FUNCS
1210 REPLACE_OBSTACK_PRINTF
1235 HAVE_DECL_OBSTACK_PRINTF
1241 GNULIB_VSPRINTF_POSIX
1243 GNULIB_VPRINTF_POSIX
1245 GNULIB_VFPRINTF_POSIX
1252 GNULIB_STDIO_H_SIGPIPE
1253 GNULIB_STDIO_H_NONBLOCKING
1254 GNULIB_SPRINTF_POSIX
1268 GNULIB_OBSTACK_PRINTF_POSIX
1269 GNULIB_OBSTACK_PRINTF
1285 GNULIB_FPRINTF_POSIX
1294 WINDOWS_64_BIT_ST_SIZE
1295 NEXT_AS_FIRST_DIRECTIVE_SYS_STAT_H
1297 HAVE_MSVC_INVALID_PARAMETER_HANDLER
1332 GL_GENERATE_FLOAT_H_FALSE
1333 GL_GENERATE_FLOAT_H_TRUE
1335 NEXT_AS_FIRST_DIRECTIVE_FLOAT_H
1343 GL_GENERATE_ERRNO_H_FALSE
1344 GL_GENERATE_ERRNO_H_TRUE
1346 NEXT_AS_FIRST_DIRECTIVE_ERRNO_H
1349 PRAGMA_SYSTEM_HEADER
1350 INCLUDE_NEXT_AS_FIRST_DIRECTIVE
1352 GL_GENERATE_BYTESWAP_H_FALSE
1353 GL_GENERATE_BYTESWAP_H_TRUE
1355 GL_GENERATE_ALLOCA_H_FALSE
1356 GL_GENERATE_ALLOCA_H_TRUE
1360 GL_COND_LIBTOOL_FALSE
1361 GL_COND_LIBTOOL_TRUE
1385 XGETTEXT_EXTRA_OPTIONS
1393 GETTEXT_MACRO_VERSION
1395 GTK_DOC_USE_REBASE_FALSE
1396 GTK_DOC_USE_REBASE_TRUE
1397 GTK_DOC_USE_LIBTOOL_FALSE
1398 GTK_DOC_USE_LIBTOOL_TRUE
1399 GTK_DOC_BUILD_PDF_FALSE
1400 GTK_DOC_BUILD_PDF_TRUE
1401 GTK_DOC_BUILD_HTML_FALSE
1402 GTK_DOC_BUILD_HTML_TRUE
1403 ENABLE_GTK_DOC_FALSE
1415 UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS
1416 UNISTD_H_HAVE_WINSOCK2_H
1439 REPLACE_GETDTABLESIZE
1440 REPLACE_GETDOMAINNAME
1451 HAVE_DECL_SETHOSTNAME
1452 HAVE_DECL_GETUSERSHELL
1453 HAVE_DECL_GETPAGESIZE
1454 HAVE_DECL_GETLOGIN_R
1455 HAVE_DECL_GETDOMAINNAME
1494 GNULIB_UNISTD_H_SIGPIPE
1495 GNULIB_UNISTD_H_NONBLOCKING
1521 GNULIB_GETDTABLESIZE
1522 GNULIB_GETDOMAINNAME
1538 ENABLE_OPENSSL_FALSE
1540 ENABLE_SESSION_TICKETS_FALSE
1541 ENABLE_SESSION_TICKETS_TRUE
1544 ENABLE_OPENPGP_FALSE
1556 ENABLE_HEARTBEAT_FALSE
1557 ENABLE_HEARTBEAT_TRUE
1558 ENABLE_RSA_EXPORT_FALSE
1559 ENABLE_RSA_EXPORT_TRUE
1562 ENABLE_DTLS_SRTP_FALSE
1563 ENABLE_DTLS_SRTP_TRUE
1564 ENABLE_MINITASN1_FALSE
1565 ENABLE_MINITASN1_TRUE
1594 HAVE_GCC_GNU89_INLINE_OPTION_FALSE
1595 HAVE_GCC_GNU89_INLINE_OPTION_TRUE
1602 ENABLE_PADLOCK_FALSE
1611 WANT_TEST_SUITE_FALSE
1612 WANT_TEST_SUITE_TRUE
1623 am__fastdepCXX_FALSE
1630 am__fastdepCCAS_FALSE
1631 am__fastdepCCAS_TRUE
1660 AM_DEFAULT_VERBOSITY
1671 INSTALL_STRIP_PROGRAM
1722 program_transform_name
1735 enable_option_checking
1737 enable_dependency_tracking
1740 enable_hardware_acceleration
1743 with_included_libtasn1
1744 enable_dtls_srtp_support
1747 enable_heartbeat_support
1748 enable_srp_authentication
1749 enable_psk_authentication
1750 enable_anon_authentication
1753 enable_openpgp_authentication
1756 enable_session_tickets
1757 enable_openssl_compatibility
1767 with_libiconv_prefix
1770 with_libpthread_prefix
1772 enable_ld_version_script
1773 enable_valgrind_tests
1784 enable_non_suiteb_curves
1788 with_unbound_root_key_file
1789 with_system_priority_file
1793 enable_local_libopts
1794 enable_libopts_install
1795 with_autoopts_config
1798 with_libregex_cflags
1800 enable_optional_args
1803 with_default_trust_store_pkcs11
1804 with_default_trust_store_dir
1805 with_default_trust_store_file
1806 with_default_crl_file
1807 with_default_blacklist_file
1812 ac_precious_vars='build_alias
1844 # Initialize some variables set by options.
1846 ac_init_version=false
1847 ac_unrecognized_opts=
1848 ac_unrecognized_sep=
1849 # The variables have the same names as the options, with
1850 # dashes changed to underlines.
1851 cache_file=/dev/null
1858 program_transform_name=s,x,x,
1866 # Installation directory options.
1867 # These are left unexpanded so users can "make install exec_prefix=/foo"
1868 # and all the variables that are supposed to be based on exec_prefix
1869 # by default will actually change.
1870 # Use braces instead of parens because sh, perl, etc. also accept them.
1871 # (The list follows the same order as the GNU Coding Standards.)
1872 bindir='${exec_prefix}/bin'
1873 sbindir='${exec_prefix}/sbin'
1874 libexecdir='${exec_prefix}/libexec'
1875 datarootdir='${prefix}/share'
1876 datadir='${datarootdir}'
1877 sysconfdir='${prefix}/etc'
1878 sharedstatedir='${prefix}/com'
1879 localstatedir='${prefix}/var'
1880 runstatedir='${localstatedir}/run'
1881 includedir='${prefix}/include'
1882 oldincludedir='/usr/include'
1883 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1884 infodir='${datarootdir}/info'
1889 libdir='${exec_prefix}/lib'
1890 localedir='${datarootdir}/locale'
1891 mandir='${datarootdir}/man'
1897 # If the previous option needs an argument, assign it.
1898 if test -n "$ac_prev"; then
1899 eval $ac_prev=\$ac_option
1905 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1910 # Accept the important Cygnus configure options, so we can diagnose typos.
1912 case $ac_dashdash$ac_option in
1916 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1918 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1919 bindir=$ac_optarg ;;
1921 -build | --build | --buil | --bui | --bu)
1922 ac_prev=build_alias ;;
1923 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1924 build_alias=$ac_optarg ;;
1926 -cache-file | --cache-file | --cache-fil | --cache-fi \
1927 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1928 ac_prev=cache_file ;;
1929 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1930 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1931 cache_file=$ac_optarg ;;
1933 --config-cache | -C)
1934 cache_file=config.cache ;;
1936 -datadir | --datadir | --datadi | --datad)
1938 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1939 datadir=$ac_optarg ;;
1941 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1942 | --dataroo | --dataro | --datar)
1943 ac_prev=datarootdir ;;
1944 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1945 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1946 datarootdir=$ac_optarg ;;
1948 -disable-* | --disable-*)
1949 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1950 # Reject names that are not valid shell variable names.
1951 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1952 as_fn_error $? "invalid feature name: $ac_useropt"
1953 ac_useropt_orig=$ac_useropt
1954 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1955 case $ac_user_opts in
1957 "enable_$ac_useropt"
1959 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1960 ac_unrecognized_sep=', ';;
1962 eval enable_$ac_useropt=no ;;
1964 -docdir | --docdir | --docdi | --doc | --do)
1966 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1967 docdir=$ac_optarg ;;
1969 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1971 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1972 dvidir=$ac_optarg ;;
1974 -enable-* | --enable-*)
1975 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1976 # Reject names that are not valid shell variable names.
1977 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1978 as_fn_error $? "invalid feature name: $ac_useropt"
1979 ac_useropt_orig=$ac_useropt
1980 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1981 case $ac_user_opts in
1983 "enable_$ac_useropt"
1985 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1986 ac_unrecognized_sep=', ';;
1988 eval enable_$ac_useropt=\$ac_optarg ;;
1990 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1991 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1992 | --exec | --exe | --ex)
1993 ac_prev=exec_prefix ;;
1994 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1995 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1996 | --exec=* | --exe=* | --ex=*)
1997 exec_prefix=$ac_optarg ;;
1999 -gas | --gas | --ga | --g)
2000 # Obsolete; use --with-gas.
2003 -help | --help | --hel | --he | -h)
2004 ac_init_help=long ;;
2005 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
2006 ac_init_help=recursive ;;
2007 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
2008 ac_init_help=short ;;
2010 -host | --host | --hos | --ho)
2011 ac_prev=host_alias ;;
2012 -host=* | --host=* | --hos=* | --ho=*)
2013 host_alias=$ac_optarg ;;
2015 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
2017 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
2019 htmldir=$ac_optarg ;;
2021 -includedir | --includedir | --includedi | --included | --include \
2022 | --includ | --inclu | --incl | --inc)
2023 ac_prev=includedir ;;
2024 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
2025 | --includ=* | --inclu=* | --incl=* | --inc=*)
2026 includedir=$ac_optarg ;;
2028 -infodir | --infodir | --infodi | --infod | --info | --inf)
2030 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
2031 infodir=$ac_optarg ;;
2033 -libdir | --libdir | --libdi | --libd)
2035 -libdir=* | --libdir=* | --libdi=* | --libd=*)
2036 libdir=$ac_optarg ;;
2038 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
2039 | --libexe | --libex | --libe)
2040 ac_prev=libexecdir ;;
2041 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
2042 | --libexe=* | --libex=* | --libe=*)
2043 libexecdir=$ac_optarg ;;
2045 -localedir | --localedir | --localedi | --localed | --locale)
2046 ac_prev=localedir ;;
2047 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
2048 localedir=$ac_optarg ;;
2050 -localstatedir | --localstatedir | --localstatedi | --localstated \
2051 | --localstate | --localstat | --localsta | --localst | --locals)
2052 ac_prev=localstatedir ;;
2053 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
2054 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
2055 localstatedir=$ac_optarg ;;
2057 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
2059 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
2060 mandir=$ac_optarg ;;
2062 -nfp | --nfp | --nf)
2063 # Obsolete; use --without-fp.
2066 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
2067 | --no-cr | --no-c | -n)
2070 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
2071 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
2074 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
2075 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
2076 | --oldin | --oldi | --old | --ol | --o)
2077 ac_prev=oldincludedir ;;
2078 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
2079 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
2080 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
2081 oldincludedir=$ac_optarg ;;
2083 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
2085 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
2086 prefix=$ac_optarg ;;
2088 -program-prefix | --program-prefix | --program-prefi | --program-pref \
2089 | --program-pre | --program-pr | --program-p)
2090 ac_prev=program_prefix ;;
2091 -program-prefix=* | --program-prefix=* | --program-prefi=* \
2092 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
2093 program_prefix=$ac_optarg ;;
2095 -program-suffix | --program-suffix | --program-suffi | --program-suff \
2096 | --program-suf | --program-su | --program-s)
2097 ac_prev=program_suffix ;;
2098 -program-suffix=* | --program-suffix=* | --program-suffi=* \
2099 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
2100 program_suffix=$ac_optarg ;;
2102 -program-transform-name | --program-transform-name \
2103 | --program-transform-nam | --program-transform-na \
2104 | --program-transform-n | --program-transform- \
2105 | --program-transform | --program-transfor \
2106 | --program-transfo | --program-transf \
2107 | --program-trans | --program-tran \
2108 | --progr-tra | --program-tr | --program-t)
2109 ac_prev=program_transform_name ;;
2110 -program-transform-name=* | --program-transform-name=* \
2111 | --program-transform-nam=* | --program-transform-na=* \
2112 | --program-transform-n=* | --program-transform-=* \
2113 | --program-transform=* | --program-transfor=* \
2114 | --program-transfo=* | --program-transf=* \
2115 | --program-trans=* | --program-tran=* \
2116 | --progr-tra=* | --program-tr=* | --program-t=*)
2117 program_transform_name=$ac_optarg ;;
2119 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
2121 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
2122 pdfdir=$ac_optarg ;;
2124 -psdir | --psdir | --psdi | --psd | --ps)
2126 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
2129 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2130 | -silent | --silent | --silen | --sile | --sil)
2133 -runstatedir | --runstatedir | --runstatedi | --runstated \
2134 | --runstate | --runstat | --runsta | --runst | --runs \
2135 | --run | --ru | --r)
2136 ac_prev=runstatedir ;;
2137 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
2138 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
2139 | --run=* | --ru=* | --r=*)
2140 runstatedir=$ac_optarg ;;
2142 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
2144 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
2146 sbindir=$ac_optarg ;;
2148 -sharedstatedir | --sharedstatedir | --sharedstatedi \
2149 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
2150 | --sharedst | --shareds | --shared | --share | --shar \
2152 ac_prev=sharedstatedir ;;
2153 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
2154 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
2155 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
2157 sharedstatedir=$ac_optarg ;;
2159 -site | --site | --sit)
2161 -site=* | --site=* | --sit=*)
2164 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
2166 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
2167 srcdir=$ac_optarg ;;
2169 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
2170 | --syscon | --sysco | --sysc | --sys | --sy)
2171 ac_prev=sysconfdir ;;
2172 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
2173 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
2174 sysconfdir=$ac_optarg ;;
2176 -target | --target | --targe | --targ | --tar | --ta | --t)
2177 ac_prev=target_alias ;;
2178 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
2179 target_alias=$ac_optarg ;;
2181 -v | -verbose | --verbose | --verbos | --verbo | --verb)
2184 -version | --version | --versio | --versi | --vers | -V)
2185 ac_init_version=: ;;
2188 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
2189 # Reject names that are not valid shell variable names.
2190 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
2191 as_fn_error $? "invalid package name: $ac_useropt"
2192 ac_useropt_orig=$ac_useropt
2193 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
2194 case $ac_user_opts in
2198 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
2199 ac_unrecognized_sep=', ';;
2201 eval with_$ac_useropt=\$ac_optarg ;;
2203 -without-* | --without-*)
2204 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
2205 # Reject names that are not valid shell variable names.
2206 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
2207 as_fn_error $? "invalid package name: $ac_useropt"
2208 ac_useropt_orig=$ac_useropt
2209 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
2210 case $ac_user_opts in
2214 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
2215 ac_unrecognized_sep=', ';;
2217 eval with_$ac_useropt=no ;;
2220 # Obsolete; use --with-x.
2223 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
2224 | --x-incl | --x-inc | --x-in | --x-i)
2225 ac_prev=x_includes ;;
2226 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
2227 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
2228 x_includes=$ac_optarg ;;
2230 -x-libraries | --x-libraries | --x-librarie | --x-librari \
2231 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
2232 ac_prev=x_libraries ;;
2233 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
2234 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
2235 x_libraries=$ac_optarg ;;
2237 -*) as_fn_error $? "unrecognized option: \`$ac_option'
2238 Try \`$0 --help' for more information"
2242 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
2243 # Reject names that are not valid shell variable names.
2244 case $ac_envvar in #(
2245 '' | [0-9]* | *[!_$as_cr_alnum]* )
2246 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
2248 eval $ac_envvar=\$ac_optarg
2249 export $ac_envvar ;;
2252 # FIXME: should be removed in autoconf 3.0.
2253 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
2254 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
2255 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
2256 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
2262 if test -n "$ac_prev"; then
2263 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
2264 as_fn_error $? "missing argument to $ac_option"
2267 if test -n "$ac_unrecognized_opts"; then
2268 case $enable_option_checking in
2270 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
2271 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
2275 # Check all directory arguments for consistency.
2276 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
2277 datadir sysconfdir sharedstatedir localstatedir includedir \
2278 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
2279 libdir localedir mandir runstatedir
2281 eval ac_val=\$$ac_var
2282 # Remove trailing slashes.
2285 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
2286 eval $ac_var=\$ac_val;;
2288 # Be sure to have absolute directory names.
2290 [\\/$]* | ?:[\\/]* ) continue;;
2291 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
2293 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
2296 # There might be people who depend on the old broken behavior: `$host'
2297 # used to hold the argument of --host etc.
2298 # FIXME: To remove some day.
2301 target=$target_alias
2303 # FIXME: To remove some day.
2304 if test "x$host_alias" != x; then
2305 if test "x$build_alias" = x; then
2306 cross_compiling=maybe
2307 elif test "x$build_alias" != "x$host_alias"; then
2313 test -n "$host_alias" && ac_tool_prefix=$host_alias-
2315 test "$silent" = yes && exec 6>/dev/null
2318 ac_pwd=`pwd` && test -n "$ac_pwd" &&
2319 ac_ls_di=`ls -di .` &&
2320 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
2321 as_fn_error $? "working directory cannot be determined"
2322 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
2323 as_fn_error $? "pwd does not report name of working directory"
2326 # Find the source files, if location was not specified.
2327 if test -z "$srcdir"; then
2328 ac_srcdir_defaulted=yes
2329 # Try the directory containing this script, then the parent directory.
2330 ac_confdir=`$as_dirname -- "$as_myself" ||
2331 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
2332 X"$as_myself" : 'X\(//\)[^/]' \| \
2333 X"$as_myself" : 'X\(//\)$' \| \
2334 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
2335 $as_echo X"$as_myself" |
2336 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
2354 if test ! -r "$srcdir/$ac_unique_file"; then
2358 ac_srcdir_defaulted=no
2360 if test ! -r "$srcdir/$ac_unique_file"; then
2361 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
2362 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
2364 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
2366 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
2368 # When building in place, set srcdir=.
2369 if test "$ac_abs_confdir" = "$ac_pwd"; then
2372 # Remove unnecessary trailing slashes from srcdir.
2373 # Double slashes in file names in object file debugging info
2374 # mess up M-x gdb in Emacs.
2376 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
2378 for ac_var in $ac_precious_vars; do
2379 eval ac_env_${ac_var}_set=\${${ac_var}+set}
2380 eval ac_env_${ac_var}_value=\$${ac_var}
2381 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
2382 eval ac_cv_env_${ac_var}_value=\$${ac_var}
2386 # Report the --help message.
2388 if test "$ac_init_help" = "long"; then
2389 # Omit some internal or obsolete options to make the list less imposing.
2390 # This message is too long to be a string in the A/UX 3.1 sh.
2392 \`configure' configures GnuTLS 3.3.27 to adapt to many kinds of systems.
2394 Usage: $0 [OPTION]... [VAR=VALUE]...
2396 To assign environment variables (e.g., CC, CFLAGS...), specify them as
2397 VAR=VALUE. See below for descriptions of some of the useful variables.
2399 Defaults for the options are specified in brackets.
2402 -h, --help display this help and exit
2403 --help=short display options specific to this package
2404 --help=recursive display the short help of all the included packages
2405 -V, --version display version information and exit
2406 -q, --quiet, --silent do not print \`checking ...' messages
2407 --cache-file=FILE cache test results in FILE [disabled]
2408 -C, --config-cache alias for \`--cache-file=config.cache'
2409 -n, --no-create do not create output files
2410 --srcdir=DIR find the sources in DIR [configure dir or \`..']
2412 Installation directories:
2413 --prefix=PREFIX install architecture-independent files in PREFIX
2414 [$ac_default_prefix]
2415 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
2418 By default, \`make install' will install all the files in
2419 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
2420 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
2421 for instance \`--prefix=\$HOME'.
2423 For better control, use the options below.
2425 Fine tuning of the installation directories:
2426 --bindir=DIR user executables [EPREFIX/bin]
2427 --sbindir=DIR system admin executables [EPREFIX/sbin]
2428 --libexecdir=DIR program executables [EPREFIX/libexec]
2429 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
2430 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
2431 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
2432 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
2433 --libdir=DIR object code libraries [EPREFIX/lib]
2434 --includedir=DIR C header files [PREFIX/include]
2435 --oldincludedir=DIR C header files for non-gcc [/usr/include]
2436 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
2437 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
2438 --infodir=DIR info documentation [DATAROOTDIR/info]
2439 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
2440 --mandir=DIR man documentation [DATAROOTDIR/man]
2441 --docdir=DIR documentation root [DATAROOTDIR/doc/gnutls]
2442 --htmldir=DIR html documentation [DOCDIR]
2443 --dvidir=DIR dvi documentation [DOCDIR]
2444 --pdfdir=DIR pdf documentation [DOCDIR]
2445 --psdir=DIR ps documentation [DOCDIR]
2451 --program-prefix=PREFIX prepend PREFIX to installed program names
2452 --program-suffix=SUFFIX append SUFFIX to installed program names
2453 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
2456 --build=BUILD configure for building on BUILD [guessed]
2457 --host=HOST cross-compile to build programs to run on HOST [BUILD]
2461 if test -n "$ac_init_help"; then
2462 case $ac_init_help in
2463 short | recursive ) echo "Configuration of GnuTLS 3.3.27:";;
2468 --disable-option-checking ignore unrecognized --enable/--with options
2469 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
2470 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
2471 --enable-silent-rules less verbose build output (undo: "make V=1")
2472 --disable-silent-rules verbose build output (undo: "make V=0")
2473 --enable-dependency-tracking
2474 do not reject slow dependency extractors
2475 --disable-dependency-tracking
2476 speeds up one-time build
2477 --disable-largefile omit support for large files
2478 --disable-cxx unconditionally disable the C++ library
2479 --disable-hardware-acceleration
2480 unconditionally disable hardware acceleration
2481 --disable-padlock unconditionally disable padlock acceleration
2482 --disable-dtls-srtp-support
2483 disable support for the DTLS-SRTP extension
2484 --disable-alpn-support disable support for the Application Layer Protocol
2485 Negotiation (ALPN) extension
2486 --disable-rsa-export disable the RSA-EXPORT support
2487 --disable-heartbeat-support
2488 disable support for the heartbeat extension
2489 --disable-srp-authentication
2490 disable the SRP authentication support
2491 --disable-psk-authentication
2492 disable the PSK authentication support
2493 --disable-anon-authentication
2494 disable the anonymous authentication support
2495 --disable-dhe disable the DHE support
2496 --disable-ecdhe disable the ECDHE support
2497 --disable-openpgp-authentication
2498 disable the OpenPGP authentication support
2499 --enable-cryptodev enable cryptodev support
2500 --disable-ocsp disable OCSP support
2501 --disable-session-tickets
2502 disable session tickets support
2503 --disable-openssl-compatibility
2504 disable the OpenSSL compatibility support
2505 --disable-doc don't generate any documentation
2506 --disable-tests don't compile or run any tests
2507 --enable-gtk-doc use gtk-doc to build documentation [[default=no]]
2508 --enable-gtk-doc-html build documentation in html format [[default=yes]]
2509 --enable-gtk-doc-pdf build documentation in pdf format [[default=no]]
2510 --disable-nls do not use Native Language Support
2511 --disable-rpath do not hardcode runtime library paths
2512 --enable-ld-version-script
2513 enable linker version script (default is enabled
2515 --disable-valgrind-tests
2516 don't try to run self tests under valgrind
2517 --enable-gcc-warnings turn on lots of GCC warnings (for developers)
2518 --enable-static[=PKGS] build static libraries [default=no]
2519 --enable-shared[=PKGS] build shared libraries [default=yes]
2520 --enable-fast-install[=PKGS]
2521 optimize for fast installation [default=yes]
2522 --disable-libtool-lock avoid locking (might break parallel builds)
2523 --enable-self-checks enable self checking functionality
2524 --enable-fips140-mode enable FIPS140-2 mode (implies self checks)
2525 --disable-non-suiteb-curves
2526 disable curves not in SuiteB
2527 --disable-libdane disable the built of libdane
2528 --disable-nls disable nls support in libopts
2529 --enable-local-libopts Use the supplied libopts tearoff code
2530 --enable-libopts-install
2531 Install libopts with client installation
2532 --disable-optional-args not wanting optional option args
2533 --enable-guile build GNU Guile bindings
2534 --disable-crywrap unconditionally disable the crywrap TLS proxy
2538 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
2539 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
2540 --with-nettle-mini Link against a mini-nettle (that includes mini-gmp)
2541 --with-included-libtasn1
2542 use the included libtasn1
2543 --with-html-dir=PATH path to installed docs
2544 --with-gnu-ld assume the C compiler uses GNU ld default=no
2545 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
2546 --without-libiconv-prefix don't search for libiconv in includedir and libdir
2547 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
2548 --without-libintl-prefix don't search for libintl in includedir and libdir
2549 --with-librt-prefix[=DIR] search for librt in DIR/include and DIR/lib
2550 --without-librt-prefix don't search for librt in includedir and libdir
2551 --with-libpthread-prefix[=DIR] search for libpthread in DIR/include and DIR/lib
2552 --without-libpthread-prefix don't search for libpthread in includedir and libdir
2553 --with-libnsl-prefix[=DIR] search for libnsl in DIR/include and DIR/lib
2554 --without-libnsl-prefix don't search for libnsl in includedir and libdir
2555 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
2557 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
2558 --with-sysroot=DIR Search for dependent libraries within DIR
2559 (or the compiler's sysroot if not specified).
2560 --with-libdl-prefix[=DIR] search for libdl in DIR/include and DIR/lib
2561 --without-libdl-prefix don't search for libdl in includedir and libdir
2562 --with-arcfour128 include ARCFOUR128 in priority strings
2563 --with-ssl3 include SSL3.0 in priority strings
2564 --with-unbound-root-key-file
2565 specify the unbound root key file
2566 --with-system-priority-file
2567 specify the system priority file
2568 --without-p11-kit Build without p11-kit and PKCS#11 support
2569 --without-tpm Disable TPM (trousers) support.
2570 --with-trousers-lib=LIB set the location of the trousers library
2571 --with-autoopts-config specify the config-info script
2572 --with-regex-header a reg expr header is specified
2573 --with-libregex libregex installation prefix
2574 --with-libregex-cflags libregex compile flags
2575 --with-libregex-libs libregex link command arguments
2576 --without-zlib disable zlib compression support
2577 --with-libz-prefix[=DIR] search for libz in DIR/include and DIR/lib
2578 --without-libz-prefix don't search for libz in includedir and libdir
2579 --with-default-trust-store-pkcs11=URI
2580 use the given pkcs11 uri as default trust store
2581 --with-default-trust-store-dir=DIR
2582 use the given directory as default trust store
2583 --with-default-trust-store-file=FILE
2584 use the given file default trust store
2585 --with-default-crl-file=FILE
2586 use the given CRL file as default
2587 --with-default-blacklist-file=FILE
2588 use the given certificate blacklist file as default
2589 --with-guile-site-dir use the given directory as the Guile site (use with
2592 Some influential environment variables:
2593 PKG_CONFIG path to pkg-config utility
2594 CC C compiler command
2595 CFLAGS C compiler flags
2596 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
2597 nonstandard directory <lib dir>
2598 LIBS libraries to pass to the linker, e.g. -l<library>
2599 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
2600 you have headers in a nonstandard directory <include dir>
2602 CCAS assembler compiler command (defaults to CC)
2603 CCASFLAGS assembler compiler flags (defaults to CFLAGS)
2604 CXX C++ compiler command
2605 CXXFLAGS C++ compiler flags
2606 YACC The `Yet Another Compiler Compiler' implementation to use.
2607 Defaults to the first program found out of: `bison -y', `byacc',
2609 YFLAGS The list of arguments that will be passed by default to $YACC.
2610 This script will default YFLAGS to the empty string to avoid a
2611 default value of `-d' given by some make applications.
2613 C compiler flags for NETTLE, overriding pkg-config
2614 NETTLE_LIBS linker flags for NETTLE, overriding pkg-config
2616 C compiler flags for HOGWEED, overriding pkg-config
2618 linker flags for HOGWEED, overriding pkg-config
2619 GMP_CFLAGS C compiler flags for gmp
2620 GMP_LIBS linker flags for gmp
2622 C compiler flags for LIBTASN1, overriding pkg-config
2624 linker flags for LIBTASN1, overriding pkg-config
2625 CXXCPP C++ preprocessor
2627 C compiler flags for P11_KIT, overriding pkg-config
2629 linker flags for P11_KIT, overriding pkg-config
2631 C compiler flags for LIBIDN, overriding pkg-config
2632 LIBIDN_LIBS linker flags for LIBIDN, overriding pkg-config
2634 Use these variables to override the choices made by `configure' or to help
2635 it to find libraries and programs with nonstandard names/locations.
2637 Report bugs to <bugs@gnutls.org>.
2642 if test "$ac_init_help" = "recursive"; then
2643 # If there are subdirs, report their specific --help.
2644 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
2645 test -d "$ac_dir" ||
2646 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
2651 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
2653 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
2654 # A ".." for each directory in $ac_dir_suffix.
2655 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
2656 case $ac_top_builddir_sub in
2657 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
2658 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
2661 ac_abs_top_builddir=$ac_pwd
2662 ac_abs_builddir=$ac_pwd$ac_dir_suffix
2663 # for backward compatibility:
2664 ac_top_builddir=$ac_top_build_prefix
2667 .) # We are building in place.
2669 ac_top_srcdir=$ac_top_builddir_sub
2670 ac_abs_top_srcdir=$ac_pwd ;;
2671 [\\/]* | ?:[\\/]* ) # Absolute name.
2672 ac_srcdir=$srcdir$ac_dir_suffix;
2673 ac_top_srcdir=$srcdir
2674 ac_abs_top_srcdir=$srcdir ;;
2676 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
2677 ac_top_srcdir=$ac_top_build_prefix$srcdir
2678 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
2680 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
2682 cd "$ac_dir" || { ac_status=$?; continue; }
2683 # Check for guested configure.
2684 if test -f "$ac_srcdir/configure.gnu"; then
2686 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
2687 elif test -f "$ac_srcdir/configure"; then
2689 $SHELL "$ac_srcdir/configure" --help=recursive
2691 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
2693 cd "$ac_pwd" || { ac_status=$?; break; }
2697 test -n "$ac_init_help" && exit $ac_status
2698 if $ac_init_version; then
2700 GnuTLS configure 3.3.27
2701 generated by GNU Autoconf 2.69
2703 Copyright (C) 2012 Free Software Foundation, Inc.
2704 This configure script is free software; the Free Software Foundation
2705 gives unlimited permission to copy, distribute and modify it.
2710 ## ------------------------ ##
2711 ## Autoconf initialization. ##
2712 ## ------------------------ ##
2714 # ac_fn_c_try_compile LINENO
2715 # --------------------------
2716 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2717 ac_fn_c_try_compile ()
2719 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2720 rm -f conftest.$ac_objext
2721 if { { ac_try="$ac_compile"
2723 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2724 *) ac_try_echo=$ac_try;;
2726 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2727 $as_echo "$ac_try_echo"; } >&5
2728 (eval "$ac_compile") 2>conftest.err
2730 if test -s conftest.err; then
2731 grep -v '^ *+' conftest.err >conftest.er1
2732 cat conftest.er1 >&5
2733 mv -f conftest.er1 conftest.err
2735 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2736 test $ac_status = 0; } && {
2737 test -z "$ac_c_werror_flag" ||
2738 test ! -s conftest.err
2739 } && test -s conftest.$ac_objext; then :
2742 $as_echo "$as_me: failed program was:" >&5
2743 sed 's/^/| /' conftest.$ac_ext >&5
2747 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2748 as_fn_set_status $ac_retval
2750 } # ac_fn_c_try_compile
2752 # ac_fn_c_try_cpp LINENO
2753 # ----------------------
2754 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2757 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2758 if { { ac_try="$ac_cpp conftest.$ac_ext"
2760 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2761 *) ac_try_echo=$ac_try;;
2763 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2764 $as_echo "$ac_try_echo"; } >&5
2765 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2767 if test -s conftest.err; then
2768 grep -v '^ *+' conftest.err >conftest.er1
2769 cat conftest.er1 >&5
2770 mv -f conftest.er1 conftest.err
2772 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2773 test $ac_status = 0; } > conftest.i && {
2774 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2775 test ! -s conftest.err
2779 $as_echo "$as_me: failed program was:" >&5
2780 sed 's/^/| /' conftest.$ac_ext >&5
2784 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2785 as_fn_set_status $ac_retval
2789 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2790 # -------------------------------------------------------
2791 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2792 # the include files in INCLUDES and setting the cache variable VAR
2794 ac_fn_c_check_header_mongrel ()
2796 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2797 if eval \${$3+:} false; then :
2798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2799 $as_echo_n "checking for $2... " >&6; }
2800 if eval \${$3+:} false; then :
2801 $as_echo_n "(cached) " >&6
2804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2805 $as_echo "$ac_res" >&6; }
2807 # Is the header compilable?
2808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2809 $as_echo_n "checking $2 usability... " >&6; }
2810 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2811 /* end confdefs.h. */
2815 if ac_fn_c_try_compile "$LINENO"; then :
2816 ac_header_compiler=yes
2818 ac_header_compiler=no
2820 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2822 $as_echo "$ac_header_compiler" >&6; }
2824 # Is the header present?
2825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2826 $as_echo_n "checking $2 presence... " >&6; }
2827 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2828 /* end confdefs.h. */
2831 if ac_fn_c_try_cpp "$LINENO"; then :
2832 ac_header_preproc=yes
2834 ac_header_preproc=no
2836 rm -f conftest.err conftest.i conftest.$ac_ext
2837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2838 $as_echo "$ac_header_preproc" >&6; }
2840 # So? What about this header?
2841 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2843 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2844 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2845 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2846 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2849 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2850 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2851 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2852 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2853 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2854 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2855 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2856 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2857 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2858 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2859 ( $as_echo "## ------------------------------ ##
2860 ## Report this to bugs@gnutls.org ##
2861 ## ------------------------------ ##"
2862 ) | sed "s/^/$as_me: WARNING: /" >&2
2865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2866 $as_echo_n "checking for $2... " >&6; }
2867 if eval \${$3+:} false; then :
2868 $as_echo_n "(cached) " >&6
2870 eval "$3=\$ac_header_compiler"
2873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2874 $as_echo "$ac_res" >&6; }
2876 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2878 } # ac_fn_c_check_header_mongrel
2880 # ac_fn_c_try_run LINENO
2881 # ----------------------
2882 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2883 # that executables *can* be run.
2886 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2887 if { { ac_try="$ac_link"
2889 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2890 *) ac_try_echo=$ac_try;;
2892 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2893 $as_echo "$ac_try_echo"; } >&5
2894 (eval "$ac_link") 2>&5
2896 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2897 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2898 { { case "(($ac_try" in
2899 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2900 *) ac_try_echo=$ac_try;;
2902 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2903 $as_echo "$ac_try_echo"; } >&5
2904 (eval "$ac_try") 2>&5
2906 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2907 test $ac_status = 0; }; }; then :
2910 $as_echo "$as_me: program exited with status $ac_status" >&5
2911 $as_echo "$as_me: failed program was:" >&5
2912 sed 's/^/| /' conftest.$ac_ext >&5
2914 ac_retval=$ac_status
2916 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2917 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2918 as_fn_set_status $ac_retval
2922 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2923 # -------------------------------------------------------
2924 # Tests whether HEADER exists and can be compiled using the include files in
2925 # INCLUDES, setting the cache variable VAR accordingly.
2926 ac_fn_c_check_header_compile ()
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
2934 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2935 /* end confdefs.h. */
2939 if ac_fn_c_try_compile "$LINENO"; then :
2944 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2948 $as_echo "$ac_res" >&6; }
2949 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2951 } # ac_fn_c_check_header_compile
2953 # ac_fn_c_try_link LINENO
2954 # -----------------------
2955 # Try to link conftest.$ac_ext, and return whether this succeeded.
2958 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2959 rm -f conftest.$ac_objext conftest$ac_exeext
2960 if { { ac_try="$ac_link"
2962 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2963 *) ac_try_echo=$ac_try;;
2965 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2966 $as_echo "$ac_try_echo"; } >&5
2967 (eval "$ac_link") 2>conftest.err
2969 if test -s conftest.err; then
2970 grep -v '^ *+' conftest.err >conftest.er1
2971 cat conftest.er1 >&5
2972 mv -f conftest.er1 conftest.err
2974 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2975 test $ac_status = 0; } && {
2976 test -z "$ac_c_werror_flag" ||
2977 test ! -s conftest.err
2978 } && test -s conftest$ac_exeext && {
2979 test "$cross_compiling" = yes ||
2980 test -x conftest$ac_exeext
2984 $as_echo "$as_me: failed program was:" >&5
2985 sed 's/^/| /' conftest.$ac_ext >&5
2989 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2990 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2991 # interfere with the next link command; also delete a directory that is
2992 # left behind by Apple's compiler. We do this before executing the actions.
2993 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2994 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2995 as_fn_set_status $ac_retval
2997 } # ac_fn_c_try_link
2999 # ac_fn_cxx_try_compile LINENO
3000 # ----------------------------
3001 # Try to compile conftest.$ac_ext, and return whether this succeeded.
3002 ac_fn_cxx_try_compile ()
3004 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
3005 rm -f conftest.$ac_objext
3006 if { { ac_try="$ac_compile"
3008 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3009 *) ac_try_echo=$ac_try;;
3011 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3012 $as_echo "$ac_try_echo"; } >&5
3013 (eval "$ac_compile") 2>conftest.err
3015 if test -s conftest.err; then
3016 grep -v '^ *+' conftest.err >conftest.er1
3017 cat conftest.er1 >&5
3018 mv -f conftest.er1 conftest.err
3020 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3021 test $ac_status = 0; } && {
3022 test -z "$ac_cxx_werror_flag" ||
3023 test ! -s conftest.err
3024 } && test -s conftest.$ac_objext; then :
3027 $as_echo "$as_me: failed program was:" >&5
3028 sed 's/^/| /' conftest.$ac_ext >&5
3032 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
3033 as_fn_set_status $ac_retval
3035 } # ac_fn_cxx_try_compile
3037 # ac_fn_c_check_func LINENO FUNC VAR
3038 # ----------------------------------
3039 # Tests whether FUNC exists, setting the cache variable VAR accordingly
3040 ac_fn_c_check_func ()
3042 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
3043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
3044 $as_echo_n "checking for $2... " >&6; }
3045 if eval \${$3+:} false; then :
3046 $as_echo_n "(cached) " >&6
3048 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3049 /* end confdefs.h. */
3050 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
3051 For example, HP-UX 11i <limits.h> declares gettimeofday. */
3052 #define $2 innocuous_$2
3054 /* System header to define __stub macros and hopefully few prototypes,
3055 which can conflict with char $2 (); below.
3056 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3057 <limits.h> exists even on freestanding compilers. */
3060 # include <limits.h>
3062 # include <assert.h>
3067 /* Override any GCC internal prototype to avoid an error.
3068 Use char because int might match the return type of a GCC
3069 builtin and then its argument prototype would still apply. */
3074 /* The GNU C library defines this for functions which it implements
3075 to always fail with ENOSYS. Some functions are actually named
3076 something starting with __ and the normal name is an alias. */
3077 #if defined __stub_$2 || defined __stub___$2
3089 if ac_fn_c_try_link "$LINENO"; then :
3094 rm -f core conftest.err conftest.$ac_objext \
3095 conftest$ac_exeext conftest.$ac_ext
3098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
3099 $as_echo "$ac_res" >&6; }
3100 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
3102 } # ac_fn_c_check_func
3104 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
3105 # --------------------------------------------
3106 # Tries to find the compile-time value of EXPR in a program that includes
3107 # INCLUDES, setting VAR accordingly. Returns whether the value could be
3109 ac_fn_c_compute_int ()
3111 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
3112 if test "$cross_compiling" = yes; then
3113 # Depending upon the size, compute the lo and hi bounds.
3114 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3115 /* end confdefs.h. */
3120 static int test_array [1 - 2 * !(($2) >= 0)];
3122 return test_array [0];
3128 if ac_fn_c_try_compile "$LINENO"; then :
3131 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3132 /* end confdefs.h. */
3137 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
3139 return test_array [0];
3145 if ac_fn_c_try_compile "$LINENO"; then :
3146 ac_hi=$ac_mid; break
3148 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
3149 if test $ac_lo -le $ac_mid; then
3153 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
3155 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3158 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3159 /* end confdefs.h. */
3164 static int test_array [1 - 2 * !(($2) < 0)];
3166 return test_array [0];
3172 if ac_fn_c_try_compile "$LINENO"; then :
3175 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3176 /* end confdefs.h. */
3181 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
3183 return test_array [0];
3189 if ac_fn_c_try_compile "$LINENO"; then :
3190 ac_lo=$ac_mid; break
3192 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
3193 if test $ac_mid -le $ac_hi; then
3197 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
3199 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3204 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3206 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3207 # Binary search between lo and hi bounds.
3208 while test "x$ac_lo" != "x$ac_hi"; do
3209 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
3210 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3211 /* end confdefs.h. */
3216 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
3218 return test_array [0];
3224 if ac_fn_c_try_compile "$LINENO"; then :
3227 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
3229 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3232 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
3236 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3237 /* end confdefs.h. */
3239 static long int longval () { return $2; }
3240 static unsigned long int ulongval () { return $2; }
3247 FILE *f = fopen ("conftest.val", "w");
3252 long int i = longval ();
3255 fprintf (f, "%ld", i);
3259 unsigned long int i = ulongval ();
3262 fprintf (f, "%lu", i);
3264 /* Do not output a trailing newline, as this causes \r\n confusion
3265 on some platforms. */
3266 return ferror (f) || fclose (f) != 0;
3272 if ac_fn_c_try_run "$LINENO"; then :
3273 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
3277 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3278 conftest.$ac_objext conftest.beam conftest.$ac_ext
3282 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
3283 as_fn_set_status $ac_retval
3285 } # ac_fn_c_compute_int
3287 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
3288 # -------------------------------------------
3289 # Tests whether TYPE exists after having included INCLUDES, setting cache
3290 # variable VAR accordingly.
3291 ac_fn_c_check_type ()
3293 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
3294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
3295 $as_echo_n "checking for $2... " >&6; }
3296 if eval \${$3+:} false; then :
3297 $as_echo_n "(cached) " >&6
3300 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3301 /* end confdefs.h. */
3312 if ac_fn_c_try_compile "$LINENO"; then :
3313 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3314 /* end confdefs.h. */
3325 if ac_fn_c_try_compile "$LINENO"; then :
3330 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3332 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
3336 $as_echo "$ac_res" >&6; }
3337 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
3339 } # ac_fn_c_check_type
3341 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
3342 # ---------------------------------------------
3343 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
3345 ac_fn_c_check_decl ()
3347 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
3348 as_decl_name=`echo $2|sed 's/ *(.*//'`
3349 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
3350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
3351 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
3352 if eval \${$3+:} false; then :
3353 $as_echo_n "(cached) " >&6
3355 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3356 /* end confdefs.h. */
3361 #ifndef $as_decl_name
3363 (void) $as_decl_use;
3365 (void) $as_decl_name;
3373 if ac_fn_c_try_compile "$LINENO"; then :
3378 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
3382 $as_echo "$ac_res" >&6; }
3383 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
3385 } # ac_fn_c_check_decl
3387 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
3388 # ----------------------------------------------------
3389 # Tries to find if the field MEMBER exists in type AGGR, after including
3390 # INCLUDES, setting cache variable VAR accordingly.
3391 ac_fn_c_check_member ()
3393 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
3394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
3395 $as_echo_n "checking for $2.$3... " >&6; }
3396 if eval \${$4+:} false; then :
3397 $as_echo_n "(cached) " >&6
3399 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3400 /* end confdefs.h. */
3412 if ac_fn_c_try_compile "$LINENO"; then :
3415 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3416 /* end confdefs.h. */
3422 if (sizeof ac_aggr.$3)
3428 if ac_fn_c_try_compile "$LINENO"; then :
3433 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3435 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
3439 $as_echo "$ac_res" >&6; }
3440 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
3442 } # ac_fn_c_check_member
3444 # ac_fn_cxx_try_cpp LINENO
3445 # ------------------------
3446 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
3447 ac_fn_cxx_try_cpp ()
3449 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
3450 if { { ac_try="$ac_cpp conftest.$ac_ext"
3452 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3453 *) ac_try_echo=$ac_try;;
3455 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3456 $as_echo "$ac_try_echo"; } >&5
3457 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
3459 if test -s conftest.err; then
3460 grep -v '^ *+' conftest.err >conftest.er1
3461 cat conftest.er1 >&5
3462 mv -f conftest.er1 conftest.err
3464 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3465 test $ac_status = 0; } > conftest.i && {
3466 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
3467 test ! -s conftest.err
3471 $as_echo "$as_me: failed program was:" >&5
3472 sed 's/^/| /' conftest.$ac_ext >&5
3476 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
3477 as_fn_set_status $ac_retval
3479 } # ac_fn_cxx_try_cpp
3481 # ac_fn_cxx_try_link LINENO
3482 # -------------------------
3483 # Try to link conftest.$ac_ext, and return whether this succeeded.
3484 ac_fn_cxx_try_link ()
3486 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
3487 rm -f conftest.$ac_objext conftest$ac_exeext
3488 if { { ac_try="$ac_link"
3490 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3491 *) ac_try_echo=$ac_try;;
3493 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3494 $as_echo "$ac_try_echo"; } >&5
3495 (eval "$ac_link") 2>conftest.err
3497 if test -s conftest.err; then
3498 grep -v '^ *+' conftest.err >conftest.er1
3499 cat conftest.er1 >&5
3500 mv -f conftest.er1 conftest.err
3502 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3503 test $ac_status = 0; } && {
3504 test -z "$ac_cxx_werror_flag" ||
3505 test ! -s conftest.err
3506 } && test -s conftest$ac_exeext && {
3507 test "$cross_compiling" = yes ||
3508 test -x conftest$ac_exeext
3512 $as_echo "$as_me: failed program was:" >&5
3513 sed 's/^/| /' conftest.$ac_ext >&5
3517 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
3518 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
3519 # interfere with the next link command; also delete a directory that is
3520 # left behind by Apple's compiler. We do this before executing the actions.
3521 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
3522 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
3523 as_fn_set_status $ac_retval
3525 } # ac_fn_cxx_try_link
3526 cat >config.log <<_ACEOF
3527 This file contains any messages produced by compilers while
3528 running configure, to aid debugging if configure makes a mistake.
3530 It was created by GnuTLS $as_me 3.3.27, which was
3531 generated by GNU Autoconf 2.69. Invocation command line was
3543 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
3544 uname -m = `(uname -m) 2>/dev/null || echo unknown`
3545 uname -r = `(uname -r) 2>/dev/null || echo unknown`
3546 uname -s = `(uname -s) 2>/dev/null || echo unknown`
3547 uname -v = `(uname -v) 2>/dev/null || echo unknown`
3549 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
3550 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
3552 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
3553 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
3554 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
3555 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
3556 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
3557 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
3558 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
3562 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3566 test -z "$as_dir" && as_dir=.
3567 $as_echo "PATH: $as_dir"
3583 # Keep a trace of the command line.
3584 # Strip out --no-create and --no-recursion so they do not pile up.
3585 # Strip out --silent because we don't want to record it for future runs.
3586 # Also quote any args containing shell meta-characters.
3587 # Make two passes to allow for proper duplicate-argument suppression.
3591 ac_must_keep_next=false
3597 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
3598 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
3599 | -silent | --silent | --silen | --sile | --sil)
3602 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
3605 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
3607 as_fn_append ac_configure_args1 " '$ac_arg'"
3608 if test $ac_must_keep_next = true; then
3609 ac_must_keep_next=false # Got value, back to normal.
3612 *=* | --config-cache | -C | -disable-* | --disable-* \
3613 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
3614 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
3615 | -with-* | --with-* | -without-* | --without-* | --x)
3616 case "$ac_configure_args0 " in
3617 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
3620 -* ) ac_must_keep_next=true ;;
3623 as_fn_append ac_configure_args " '$ac_arg'"
3628 { ac_configure_args0=; unset ac_configure_args0;}
3629 { ac_configure_args1=; unset ac_configure_args1;}
3631 # When interrupted or exit'd, cleanup temporary files, and complete
3632 # config.log. We remove comments because anyway the quotes in there
3633 # would cause problems or look ugly.
3634 # WARNING: Use '\'' to represent an apostrophe within the trap.
3635 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
3636 trap 'exit_status=$?
3637 # Save into config.log some information that might help in debugging.
3641 $as_echo "## ---------------- ##
3642 ## Cache variables. ##
3643 ## ---------------- ##"
3645 # The following way of writing the cache mishandles newlines in values,
3647 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
3648 eval ac_val=\$$ac_var
3652 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
3653 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
3656 _ | IFS | as_nl) ;; #(
3657 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
3658 *) { eval $ac_var=; unset $ac_var;} ;;
3663 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
3664 *${as_nl}ac_space=\ *)
3666 "s/'\''/'\''\\\\'\'''\''/g;
3667 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
3670 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
3677 $as_echo "## ----------------- ##
3678 ## Output variables. ##
3679 ## ----------------- ##"
3681 for ac_var in $ac_subst_vars
3683 eval ac_val=\$$ac_var
3685 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3687 $as_echo "$ac_var='\''$ac_val'\''"
3691 if test -n "$ac_subst_files"; then
3692 $as_echo "## ------------------- ##
3693 ## File substitutions. ##
3694 ## ------------------- ##"
3696 for ac_var in $ac_subst_files
3698 eval ac_val=\$$ac_var
3700 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3702 $as_echo "$ac_var='\''$ac_val'\''"
3707 if test -s confdefs.h; then
3708 $as_echo "## ----------- ##
3715 test "$ac_signal" != 0 &&
3716 $as_echo "$as_me: caught signal $ac_signal"
3717 $as_echo "$as_me: exit $exit_status"
3719 rm -f core *.core core.conftest.* &&
3720 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
3723 for ac_signal in 1 2 13 15; do
3724 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
3728 # confdefs.h avoids OS command line length limits that DEFS can exceed.
3729 rm -f -r conftest* confdefs.h
3731 $as_echo "/* confdefs.h */" > confdefs.h
3733 # Predefined preprocessor variables.
3735 cat >>confdefs.h <<_ACEOF
3736 #define PACKAGE_NAME "$PACKAGE_NAME"
3739 cat >>confdefs.h <<_ACEOF
3740 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
3743 cat >>confdefs.h <<_ACEOF
3744 #define PACKAGE_VERSION "$PACKAGE_VERSION"
3747 cat >>confdefs.h <<_ACEOF
3748 #define PACKAGE_STRING "$PACKAGE_STRING"
3751 cat >>confdefs.h <<_ACEOF
3752 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
3755 cat >>confdefs.h <<_ACEOF
3756 #define PACKAGE_URL "$PACKAGE_URL"
3760 # Let the site file select an alternate cache file if it wants to.
3761 # Prefer an explicitly selected file to automatically selected ones.
3764 if test -n "$CONFIG_SITE"; then
3765 # We do not want a PATH search for config.site.
3766 case $CONFIG_SITE in #((
3767 -*) ac_site_file1=./$CONFIG_SITE;;
3768 */*) ac_site_file1=$CONFIG_SITE;;
3769 *) ac_site_file1=./$CONFIG_SITE;;
3771 elif test "x$prefix" != xNONE; then
3772 ac_site_file1=$prefix/share/config.site
3773 ac_site_file2=$prefix/etc/config.site
3775 ac_site_file1=$ac_default_prefix/share/config.site
3776 ac_site_file2=$ac_default_prefix/etc/config.site
3778 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
3780 test "x$ac_site_file" = xNONE && continue
3781 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
3782 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
3783 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
3784 sed 's/^/| /' "$ac_site_file" >&5
3786 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3787 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3788 as_fn_error $? "failed to load site script $ac_site_file
3789 See \`config.log' for more details" "$LINENO" 5; }
3793 if test -r "$cache_file"; then
3794 # Some versions of bash will fail to source /dev/null (special files
3795 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
3796 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
3797 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
3798 $as_echo "$as_me: loading cache $cache_file" >&6;}
3800 [\\/]* | ?:[\\/]* ) . "$cache_file";;
3801 *) . "./$cache_file";;
3805 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
3806 $as_echo "$as_me: creating cache $cache_file" >&6;}
3810 gl_header_list="$gl_header_list sys/socket.h"
3811 gt_needs="$gt_needs "
3812 gl_func_list="$gl_func_list _set_invalid_parameter_handler"
3813 gl_header_list="$gl_header_list sys/stat.h"
3814 gl_func_list="$gl_func_list getdelim"
3815 gl_header_list="$gl_header_list sys/time.h"
3816 gl_func_list="$gl_func_list gettimeofday"
3817 gl_header_list="$gl_header_list unistd.h"
3818 gl_header_list="$gl_header_list sys/mman.h"
3819 gl_func_list="$gl_func_list mprotect"
3820 gl_header_list="$gl_header_list netdb.h"
3821 gl_header_list="$gl_header_list netinet/in.h"
3822 gl_func_list="$gl_func_list snprintf"
3823 gl_header_list="$gl_header_list wchar.h"
3824 gl_header_list="$gl_header_list stdint.h"
3825 gl_header_list="$gl_header_list strings.h"
3826 gl_func_list="$gl_func_list strndup"
3827 gl_header_list="$gl_header_list sys/uio.h"
3828 gl_func_list="$gl_func_list localtime_r"
3829 gl_func_list="$gl_func_list vasnprintf"
3830 gl_header_list="$gl_header_list features.h"
3831 gl_header_list="$gl_header_list inttypes.h"
3832 gl_func_list="$gl_func_list shutdown"
3833 gl_header_list="$gl_header_list arpa/inet.h"
3834 gl_func_list="$gl_func_list getdtablesize"
3835 gl_header_list="$gl_header_list stdio_ext.h"
3836 gl_header_list="$gl_header_list termios.h"
3837 gl_func_list="$gl_func_list __fsetlocking"
3838 gl_func_list="$gl_func_list tcgetattr"
3839 gl_func_list="$gl_func_list tcsetattr"
3840 gl_func_list="$gl_func_list nanotime"
3841 gl_header_list="$gl_header_list sys/select.h"
3842 gl_func_list="$gl_func_list setenv"
3843 gl_func_list="$gl_func_list strdup"
3844 # Check that the precious variables saved in the cache have kept the same
3846 ac_cache_corrupted=false
3847 for ac_var in $ac_precious_vars; do
3848 eval ac_old_set=\$ac_cv_env_${ac_var}_set
3849 eval ac_new_set=\$ac_env_${ac_var}_set
3850 eval ac_old_val=\$ac_cv_env_${ac_var}_value
3851 eval ac_new_val=\$ac_env_${ac_var}_value
3852 case $ac_old_set,$ac_new_set in
3854 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3855 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3856 ac_cache_corrupted=: ;;
3858 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3859 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3860 ac_cache_corrupted=: ;;
3863 if test "x$ac_old_val" != "x$ac_new_val"; then
3864 # differences in whitespace do not lead to failure.
3865 ac_old_val_w=`echo x $ac_old_val`
3866 ac_new_val_w=`echo x $ac_new_val`
3867 if test "$ac_old_val_w" != "$ac_new_val_w"; then
3868 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3869 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3870 ac_cache_corrupted=:
3872 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3873 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3874 eval $ac_var=\$ac_old_val
3876 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
3877 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
3878 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
3879 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
3882 # Pass precious variables to config.status.
3883 if test "$ac_new_set" = set; then
3885 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3886 *) ac_arg=$ac_var=$ac_new_val ;;
3888 case " $ac_configure_args " in
3889 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
3890 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3894 if $ac_cache_corrupted; then
3895 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3896 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3897 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3898 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3899 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3901 ## -------------------- ##
3902 ## Main body of script. ##
3903 ## -------------------- ##
3906 ac_cpp='$CPP $CPPFLAGS'
3907 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3908 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3909 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3913 for ac_dir in build-aux "$srcdir"/build-aux; do
3914 if test -f "$ac_dir/install-sh"; then
3916 ac_install_sh="$ac_aux_dir/install-sh -c"
3918 elif test -f "$ac_dir/install.sh"; then
3920 ac_install_sh="$ac_aux_dir/install.sh -c"
3922 elif test -f "$ac_dir/shtool"; then
3924 ac_install_sh="$ac_aux_dir/shtool install -c"
3928 if test -z "$ac_aux_dir"; then
3929 as_fn_error $? "cannot find install-sh, install.sh, or shtool in build-aux \"$srcdir\"/build-aux" "$LINENO" 5
3932 # These three variables are undocumented and unsupported,
3933 # and are intended to be withdrawn in a future Autoconf release.
3934 # They can cause serious problems if a builder's source tree is in a directory
3935 # whose full name contains unusual characters.
3936 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3937 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3938 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3942 # Make sure we can run config.sub.
3943 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3944 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3947 $as_echo_n "checking build system type... " >&6; }
3948 if ${ac_cv_build+:} false; then :
3949 $as_echo_n "(cached) " >&6
3951 ac_build_alias=$build_alias
3952 test "x$ac_build_alias" = x &&
3953 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3954 test "x$ac_build_alias" = x &&
3955 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3956 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3957 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3961 $as_echo "$ac_cv_build" >&6; }
3962 case $ac_cv_build in
3964 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3967 ac_save_IFS=$IFS; IFS='-'
3973 # Remember, the first character of IFS is used to create $*,
3974 # except with old shells:
3977 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3981 $as_echo_n "checking host system type... " >&6; }
3982 if ${ac_cv_host+:} false; then :
3983 $as_echo_n "(cached) " >&6
3985 if test "x$host_alias" = x; then
3986 ac_cv_host=$ac_cv_build
3988 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3989 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3994 $as_echo "$ac_cv_host" >&6; }
3997 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4000 ac_save_IFS=$IFS; IFS='-'
4006 # Remember, the first character of IFS is used to create $*,
4007 # except with old shells:
4010 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4014 am__api_version='1.15'
4016 # Find a good install program. We prefer a C program (faster),
4017 # so one script is as good as another. But avoid the broken or
4018 # incompatible versions:
4019 # SysV /etc/install, /usr/sbin/install
4020 # SunOS /usr/etc/install
4021 # IRIX /sbin/install
4023 # AmigaOS /C/install, which installs bootblocks on floppy discs
4024 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4025 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4026 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4027 # OS/2's system install, which has a completely different semantic
4028 # ./install, which can be erroneously created by make from ./install.sh.
4029 # Reject install programs that cannot install multiple files.
4030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
4031 $as_echo_n "checking for a BSD-compatible install... " >&6; }
4032 if test -z "$INSTALL"; then
4033 if ${ac_cv_path_install+:} false; then :
4034 $as_echo_n "(cached) " >&6
4036 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4040 test -z "$as_dir" && as_dir=.
4041 # Account for people who put trailing slashes in PATH elements.
4042 case $as_dir/ in #((
4043 ./ | .// | /[cC]/* | \
4044 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4045 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
4048 # OSF1 and SCO ODT 3.0 have their own names for install.
4049 # Don't use installbsd from OSF since it installs stuff as root
4051 for ac_prog in ginstall scoinst install; do
4052 for ac_exec_ext in '' $ac_executable_extensions; do
4053 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
4054 if test $ac_prog = install &&
4055 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4056 # AIX install. It has an incompatible calling convention.
4058 elif test $ac_prog = install &&
4059 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4060 # program-specific install script used by HP pwplus--don't use.
4063 rm -rf conftest.one conftest.two conftest.dir
4064 echo one > conftest.one
4065 echo two > conftest.two
4067 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
4068 test -s conftest.one && test -s conftest.two &&
4069 test -s conftest.dir/conftest.one &&
4070 test -s conftest.dir/conftest.two
4072 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4085 rm -rf conftest.one conftest.two conftest.dir
4088 if test "${ac_cv_path_install+set}" = set; then
4089 INSTALL=$ac_cv_path_install
4091 # As a last resort, use the slow shell script. Don't cache a
4092 # value for INSTALL within a source directory, because that will
4093 # break other packages using the cache if that directory is
4094 # removed, or if the value is a relative name.
4095 INSTALL=$ac_install_sh
4098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
4099 $as_echo "$INSTALL" >&6; }
4101 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4102 # It thinks the first close brace ends the variable substitution.
4103 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4105 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4107 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
4110 $as_echo_n "checking whether build environment is sane... " >&6; }
4111 # Reject unsafe characters in $srcdir or the absolute working directory
4112 # name. Accept space and tab only in the latter.
4116 *[\\\"\#\$\&\'\`$am_lf]*)
4117 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
4120 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
4121 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
4124 # Do 'set' in a subshell so we don't clobber the current shell's
4125 # arguments. Must try -L first in case configure is actually a
4126 # symlink; some systems play weird games with the mod time of symlinks
4127 # (eg FreeBSD returns the mod time of the symlink's containing
4131 for am_try in 1 2; do
4132 echo "timestamp, slept: $am_has_slept" > conftest.file
4133 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
4134 if test "$*" = "X"; then
4136 set X `ls -t "$srcdir/configure" conftest.file`
4138 if test "$*" != "X $srcdir/configure conftest.file" \
4139 && test "$*" != "X conftest.file $srcdir/configure"; then
4141 # If neither matched, then we have a broken ls. This can happen
4142 # if, for instance, CONFIG_SHELL is bash and it inherits a
4143 # broken ls alias from the environment. This has actually
4144 # happened. Such a system could not be considered "sane".
4145 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
4146 alias in your environment" "$LINENO" 5
4148 if test "$2" = conftest.file || test $am_try -eq 2; then
4155 test "$2" = conftest.file
4161 as_fn_error $? "newly created file is older than distributed files!
4162 Check your system clock" "$LINENO" 5
4164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4165 $as_echo "yes" >&6; }
4166 # If we didn't sleep, we still need to ensure time stamps of config.status and
4167 # generated files are strictly newer.
4169 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
4176 test "$program_prefix" != NONE &&
4177 program_transform_name="s&^&$program_prefix&;$program_transform_name"
4178 # Use a double $ so make ignores it.
4179 test "$program_suffix" != NONE &&
4180 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
4181 # Double any \ or $.
4182 # By default was `s,x,x', remove it if useless.
4183 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
4184 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
4186 # Expand $ac_aux_dir to an absolute path.
4187 am_aux_dir=`cd "$ac_aux_dir" && pwd`
4189 if test x"${MISSING+set}" != xset; then
4192 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
4194 MISSING="\${SHELL} $am_aux_dir/missing" ;;
4197 # Use eval to expand $SHELL
4198 if eval "$MISSING --is-lightweight"; then
4199 am_missing_run="$MISSING "
4202 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
4203 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
4206 if test x"${install_sh+set}" != xset; then
4209 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
4211 install_sh="\${SHELL} $am_aux_dir/install-sh"
4215 # Installed binaries are usually stripped using 'strip' when the user
4216 # run "make install-strip". However 'strip' might not be the right
4217 # tool to use in cross-compilation environments, therefore Automake
4218 # will honor the 'STRIP' environment variable to overrule this program.
4219 if test "$cross_compiling" != no; then
4220 if test -n "$ac_tool_prefix"; then
4221 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4222 set dummy ${ac_tool_prefix}strip; ac_word=$2
4223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4224 $as_echo_n "checking for $ac_word... " >&6; }
4225 if ${ac_cv_prog_STRIP+:} false; then :
4226 $as_echo_n "(cached) " >&6
4228 if test -n "$STRIP"; then
4229 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4231 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4235 test -z "$as_dir" && as_dir=.
4236 for ac_exec_ext in '' $ac_executable_extensions; do
4237 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4238 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4239 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4248 STRIP=$ac_cv_prog_STRIP
4249 if test -n "$STRIP"; then
4250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
4251 $as_echo "$STRIP" >&6; }
4253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4254 $as_echo "no" >&6; }
4259 if test -z "$ac_cv_prog_STRIP"; then
4261 # Extract the first word of "strip", so it can be a program name with args.
4262 set dummy strip; ac_word=$2
4263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4264 $as_echo_n "checking for $ac_word... " >&6; }
4265 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
4266 $as_echo_n "(cached) " >&6
4268 if test -n "$ac_ct_STRIP"; then
4269 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4271 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4275 test -z "$as_dir" && as_dir=.
4276 for ac_exec_ext in '' $ac_executable_extensions; do
4277 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4278 ac_cv_prog_ac_ct_STRIP="strip"
4279 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4288 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4289 if test -n "$ac_ct_STRIP"; then
4290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
4291 $as_echo "$ac_ct_STRIP" >&6; }
4293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4294 $as_echo "no" >&6; }
4297 if test "x$ac_ct_STRIP" = x; then
4300 case $cross_compiling:$ac_tool_warned in
4302 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4303 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4304 ac_tool_warned=yes ;;
4309 STRIP="$ac_cv_prog_STRIP"
4313 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
4315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
4316 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
4317 if test -z "$MKDIR_P"; then
4318 if ${ac_cv_path_mkdir+:} false; then :
4319 $as_echo_n "(cached) " >&6
4321 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4322 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
4325 test -z "$as_dir" && as_dir=.
4326 for ac_prog in mkdir gmkdir; do
4327 for ac_exec_ext in '' $ac_executable_extensions; do
4328 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
4329 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
4330 'mkdir (GNU coreutils) '* | \
4331 'mkdir (coreutils) '* | \
4332 'mkdir (fileutils) '4.1*)
4333 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
4343 test -d ./--version && rmdir ./--version
4344 if test "${ac_cv_path_mkdir+set}" = set; then
4345 MKDIR_P="$ac_cv_path_mkdir -p"
4347 # As a last resort, use the slow shell script. Don't cache a
4348 # value for MKDIR_P within a source directory, because that will
4349 # break other packages using the cache if that directory is
4350 # removed, or if the value is a relative name.
4351 MKDIR_P="$ac_install_sh -d"
4354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
4355 $as_echo "$MKDIR_P" >&6; }
4357 for ac_prog in gawk mawk nawk awk
4359 # Extract the first word of "$ac_prog", so it can be a program name with args.
4360 set dummy $ac_prog; ac_word=$2
4361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4362 $as_echo_n "checking for $ac_word... " >&6; }
4363 if ${ac_cv_prog_AWK+:} false; then :
4364 $as_echo_n "(cached) " >&6
4366 if test -n "$AWK"; then
4367 ac_cv_prog_AWK="$AWK" # Let the user override the test.
4369 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4373 test -z "$as_dir" && as_dir=.
4374 for ac_exec_ext in '' $ac_executable_extensions; do
4375 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4376 ac_cv_prog_AWK="$ac_prog"
4377 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4387 if test -n "$AWK"; then
4388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4389 $as_echo "$AWK" >&6; }
4391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4392 $as_echo "no" >&6; }
4396 test -n "$AWK" && break
4399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4400 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4402 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4403 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
4404 $as_echo_n "(cached) " >&6
4406 cat >conftest.make <<\_ACEOF
4409 @echo '@@@%%%=$(MAKE)=@@@%%%'
4411 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
4412 case `${MAKE-make} -f conftest.make 2>/dev/null` in
4414 eval ac_cv_prog_make_${ac_make}_set=yes;;
4416 eval ac_cv_prog_make_${ac_make}_set=no;;
4420 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4422 $as_echo "yes" >&6; }
4425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4426 $as_echo "no" >&6; }
4427 SET_MAKE="MAKE=${MAKE-make}"
4430 rm -rf .tst 2>/dev/null
4431 mkdir .tst 2>/dev/null
4432 if test -d .tst; then
4437 rmdir .tst 2>/dev/null
4439 # Check whether --enable-silent-rules was given.
4440 if test "${enable_silent_rules+set}" = set; then :
4441 enableval=$enable_silent_rules;
4444 case $enable_silent_rules in # (((
4445 yes) AM_DEFAULT_VERBOSITY=0;;
4446 no) AM_DEFAULT_VERBOSITY=1;;
4447 *) AM_DEFAULT_VERBOSITY=1;;
4449 am_make=${MAKE-make}
4450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
4451 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
4452 if ${am_cv_make_support_nested_variables+:} false; then :
4453 $as_echo_n "(cached) " >&6
4455 if $as_echo 'TRUE=$(BAR$(V))
4461 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
4462 am_cv_make_support_nested_variables=yes
4464 am_cv_make_support_nested_variables=no
4467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
4468 $as_echo "$am_cv_make_support_nested_variables" >&6; }
4469 if test $am_cv_make_support_nested_variables = yes; then
4471 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
4473 AM_V=$AM_DEFAULT_VERBOSITY
4474 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
4478 if test "`cd $srcdir && pwd`" != "`pwd`"; then
4479 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
4480 # is not polluted with repeated "-I."
4481 am__isrc=' -I$(srcdir)'
4482 # test to see if srcdir already configured
4483 if test -f $srcdir/config.status; then
4484 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
4488 # test whether we have cygpath
4489 if test -z "$CYGPATH_W"; then
4490 if (cygpath --version) >/dev/null 2>/dev/null; then
4491 CYGPATH_W='cygpath -w'
4498 # Define the identity of the package.
4503 cat >>confdefs.h <<_ACEOF
4504 #define PACKAGE "$PACKAGE"
4508 cat >>confdefs.h <<_ACEOF
4509 #define VERSION "$VERSION"
4512 # Some tools Automake needs.
4514 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4517 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
4520 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4523 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
4526 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
4528 # For better backward compatibility. To be removed once Automake 1.9.x
4529 # dies out for good. For more background, see:
4530 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
4531 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
4532 mkdir_p='$(MKDIR_P)'
4534 # We need awk for the "check" target (and possibly the TAP driver). The
4535 # system "awk" is bad on some platforms.
4536 # Always define AMTAR for backward compatibility. Yes, it's still used
4537 # in the wild :-( We should find a proper way to deprecate it ...
4541 # We'll loop over all known methods to create a tar archive until one works.
4542 _am_tools='gnutar pax cpio none'
4544 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
4551 # POSIX will say in a future version that running "rm -f" with no argument
4552 # is OK; and we want to be able to make that assumption in our Makefile
4553 # recipes. So use an aggressive probe to check that the usage we want is
4554 # actually supported "in the wild" to an acceptable degree.
4555 # See automake bug#10828.
4556 # To make any issue more visible, cause the running configure to be aborted
4557 # by default if the 'rm' program in use doesn't match our expectations; the
4558 # user can still override this though.
4559 if rm -f && rm -fr && rm -rf; then : OK; else
4563 Your 'rm' program seems unable to run without file operands specified
4564 on the command line, even when the '-f' option is present. This is contrary
4565 to the behaviour of most rm programs out there, and not conforming with
4566 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
4568 Please tell bug-automake@gnu.org about your system, including the value
4569 of your $PATH and any error possibly output before this message. This
4570 can help us improve future automake versions.
4573 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
4574 echo 'Configuration will proceed anyway, since you have set the' >&2
4575 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
4579 Aborting the configuration process, to ensure you take notice of the issue.
4581 You can download and install GNU coreutils to get an 'rm' implementation
4582 that behaves properly: <http://www.gnu.org/software/coreutils/>.
4584 If you want to complete the configuration process using your problematic
4585 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
4586 to "yes", and re-run configure.
4589 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
4593 # Check whether --enable-silent-rules was given.
4594 if test "${enable_silent_rules+set}" = set; then :
4595 enableval=$enable_silent_rules;
4598 case $enable_silent_rules in # (((
4599 yes) AM_DEFAULT_VERBOSITY=0;;
4600 no) AM_DEFAULT_VERBOSITY=1;;
4601 *) AM_DEFAULT_VERBOSITY=0;;
4603 am_make=${MAKE-make}
4604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
4605 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
4606 if ${am_cv_make_support_nested_variables+:} false; then :
4607 $as_echo_n "(cached) " >&6
4609 if $as_echo 'TRUE=$(BAR$(V))
4615 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
4616 am_cv_make_support_nested_variables=yes
4618 am_cv_make_support_nested_variables=no
4621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
4622 $as_echo "$am_cv_make_support_nested_variables" >&6; }
4623 if test $am_cv_make_support_nested_variables = yes; then
4625 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
4627 AM_V=$AM_DEFAULT_VERBOSITY
4628 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
4632 ac_config_headers="$ac_config_headers config.h"
4635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ***
4636 *** Checking for compilation programs...
4639 *** Checking for compilation programs...
4644 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4645 if test -n "$ac_tool_prefix"; then
4646 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4647 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4649 $as_echo_n "checking for $ac_word... " >&6; }
4650 if ${ac_cv_path_PKG_CONFIG+:} false; then :
4651 $as_echo_n "(cached) " >&6
4655 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4658 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4662 test -z "$as_dir" && as_dir=.
4663 for ac_exec_ext in '' $ac_executable_extensions; do
4664 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4665 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4666 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4676 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4677 if test -n "$PKG_CONFIG"; then
4678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
4679 $as_echo "$PKG_CONFIG" >&6; }
4681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4682 $as_echo "no" >&6; }
4687 if test -z "$ac_cv_path_PKG_CONFIG"; then
4688 ac_pt_PKG_CONFIG=$PKG_CONFIG
4689 # Extract the first word of "pkg-config", so it can be a program name with args.
4690 set dummy pkg-config; ac_word=$2
4691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4692 $as_echo_n "checking for $ac_word... " >&6; }
4693 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
4694 $as_echo_n "(cached) " >&6
4696 case $ac_pt_PKG_CONFIG in
4698 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4701 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4705 test -z "$as_dir" && as_dir=.
4706 for ac_exec_ext in '' $ac_executable_extensions; do
4707 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4708 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4709 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4719 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
4720 if test -n "$ac_pt_PKG_CONFIG"; then
4721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
4722 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
4724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4725 $as_echo "no" >&6; }
4728 if test "x$ac_pt_PKG_CONFIG" = x; then
4731 case $cross_compiling:$ac_tool_warned in
4733 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4734 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4735 ac_tool_warned=yes ;;
4737 PKG_CONFIG=$ac_pt_PKG_CONFIG
4740 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4744 if test -n "$PKG_CONFIG"; then
4745 _pkg_min_version=0.9.0
4746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
4747 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
4748 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
4749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4750 $as_echo "yes" >&6; }
4752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4753 $as_echo "no" >&6; }
4759 ac_cpp='$CPP $CPPFLAGS'
4760 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4761 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4762 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4763 if test -n "$ac_tool_prefix"; then
4764 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4765 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4767 $as_echo_n "checking for $ac_word... " >&6; }
4768 if ${ac_cv_prog_CC+:} false; then :
4769 $as_echo_n "(cached) " >&6
4771 if test -n "$CC"; then
4772 ac_cv_prog_CC="$CC" # Let the user override the test.
4774 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4778 test -z "$as_dir" && as_dir=.
4779 for ac_exec_ext in '' $ac_executable_extensions; do
4780 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4781 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4782 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4792 if test -n "$CC"; then
4793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4794 $as_echo "$CC" >&6; }
4796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4797 $as_echo "no" >&6; }
4802 if test -z "$ac_cv_prog_CC"; then
4804 # Extract the first word of "gcc", so it can be a program name with args.
4805 set dummy gcc; ac_word=$2
4806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4807 $as_echo_n "checking for $ac_word... " >&6; }
4808 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4809 $as_echo_n "(cached) " >&6
4811 if test -n "$ac_ct_CC"; then
4812 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4814 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4818 test -z "$as_dir" && as_dir=.
4819 for ac_exec_ext in '' $ac_executable_extensions; do
4820 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4821 ac_cv_prog_ac_ct_CC="gcc"
4822 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4831 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4832 if test -n "$ac_ct_CC"; then
4833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4834 $as_echo "$ac_ct_CC" >&6; }
4836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4837 $as_echo "no" >&6; }
4840 if test "x$ac_ct_CC" = x; then
4843 case $cross_compiling:$ac_tool_warned in
4845 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4846 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4847 ac_tool_warned=yes ;;
4855 if test -z "$CC"; then
4856 if test -n "$ac_tool_prefix"; then
4857 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4858 set dummy ${ac_tool_prefix}cc; ac_word=$2
4859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4860 $as_echo_n "checking for $ac_word... " >&6; }
4861 if ${ac_cv_prog_CC+:} false; then :
4862 $as_echo_n "(cached) " >&6
4864 if test -n "$CC"; then
4865 ac_cv_prog_CC="$CC" # Let the user override the test.
4867 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4871 test -z "$as_dir" && as_dir=.
4872 for ac_exec_ext in '' $ac_executable_extensions; do
4873 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4874 ac_cv_prog_CC="${ac_tool_prefix}cc"
4875 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4885 if test -n "$CC"; then
4886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4887 $as_echo "$CC" >&6; }
4889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4890 $as_echo "no" >&6; }
4896 if test -z "$CC"; then
4897 # Extract the first word of "cc", so it can be a program name with args.
4898 set dummy cc; ac_word=$2
4899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4900 $as_echo_n "checking for $ac_word... " >&6; }
4901 if ${ac_cv_prog_CC+:} false; then :
4902 $as_echo_n "(cached) " >&6
4904 if test -n "$CC"; then
4905 ac_cv_prog_CC="$CC" # Let the user override the test.
4908 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4912 test -z "$as_dir" && as_dir=.
4913 for ac_exec_ext in '' $ac_executable_extensions; do
4914 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4915 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4916 ac_prog_rejected=yes
4920 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4927 if test $ac_prog_rejected = yes; then
4928 # We found a bogon in the path, so make sure we never use it.
4929 set dummy $ac_cv_prog_CC
4931 if test $# != 0; then
4932 # We chose a different compiler from the bogus one.
4933 # However, it has the same basename, so the bogon will be chosen
4934 # first if we set CC to just the basename; use the full file name.
4936 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4942 if test -n "$CC"; then
4943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4944 $as_echo "$CC" >&6; }
4946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4947 $as_echo "no" >&6; }
4952 if test -z "$CC"; then
4953 if test -n "$ac_tool_prefix"; then
4954 for ac_prog in cl.exe
4956 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4957 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4959 $as_echo_n "checking for $ac_word... " >&6; }
4960 if ${ac_cv_prog_CC+:} false; then :
4961 $as_echo_n "(cached) " >&6
4963 if test -n "$CC"; then
4964 ac_cv_prog_CC="$CC" # Let the user override the test.
4966 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4970 test -z "$as_dir" && as_dir=.
4971 for ac_exec_ext in '' $ac_executable_extensions; do
4972 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4973 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4974 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4984 if test -n "$CC"; then
4985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4986 $as_echo "$CC" >&6; }
4988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4989 $as_echo "no" >&6; }
4993 test -n "$CC" && break
4996 if test -z "$CC"; then
4998 for ac_prog in cl.exe
5000 # Extract the first word of "$ac_prog", so it can be a program name with args.
5001 set dummy $ac_prog; ac_word=$2
5002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5003 $as_echo_n "checking for $ac_word... " >&6; }
5004 if ${ac_cv_prog_ac_ct_CC+:} false; then :
5005 $as_echo_n "(cached) " >&6
5007 if test -n "$ac_ct_CC"; then
5008 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5010 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5014 test -z "$as_dir" && as_dir=.
5015 for ac_exec_ext in '' $ac_executable_extensions; do
5016 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5017 ac_cv_prog_ac_ct_CC="$ac_prog"
5018 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5027 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5028 if test -n "$ac_ct_CC"; then
5029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5030 $as_echo "$ac_ct_CC" >&6; }
5032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5033 $as_echo "no" >&6; }
5037 test -n "$ac_ct_CC" && break
5040 if test "x$ac_ct_CC" = x; then
5043 case $cross_compiling:$ac_tool_warned in
5045 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5046 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5047 ac_tool_warned=yes ;;
5056 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5057 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5058 as_fn_error $? "no acceptable C compiler found in \$PATH
5059 See \`config.log' for more details" "$LINENO" 5; }
5061 # Provide some information about the compiler.
5062 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
5065 for ac_option in --version -v -V -qversion; do
5066 { { ac_try="$ac_compiler $ac_option >&5"
5068 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5069 *) ac_try_echo=$ac_try;;
5071 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5072 $as_echo "$ac_try_echo"; } >&5
5073 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5075 if test -s conftest.err; then
5077 ... rest of stderr output deleted ...
5078 10q' conftest.err >conftest.er1
5079 cat conftest.er1 >&5
5081 rm -f conftest.er1 conftest.err
5082 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5083 test $ac_status = 0; }
5086 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5087 /* end confdefs.h. */
5097 ac_clean_files_save=$ac_clean_files
5098 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
5099 # Try to create an executable without -o first, disregard a.out.
5100 # It will help us diagnose broken compilers, and finding out an intuition
5102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
5103 $as_echo_n "checking whether the C compiler works... " >&6; }
5104 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
5106 # The possible output files:
5107 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
5110 for ac_file in $ac_files
5113 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
5114 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
5119 if { { ac_try="$ac_link_default"
5121 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5122 *) ac_try_echo=$ac_try;;
5124 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5125 $as_echo "$ac_try_echo"; } >&5
5126 (eval "$ac_link_default") 2>&5
5128 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5129 test $ac_status = 0; }; then :
5130 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
5131 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
5132 # in a Makefile. We should not override ac_cv_exeext if it was cached,
5133 # so that the user can short-circuit this test for compilers unknown to
5135 for ac_file in $ac_files ''
5137 test -f "$ac_file" || continue
5139 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
5142 # We found the default executable, but exeext='' is most
5146 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
5148 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
5150 # We set ac_cv_exeext here because the later test for it is not
5151 # safe: cross compilers may not add the suffix if given an `-o'
5152 # argument, so we may need to know it at that point already.
5153 # Even if this section looks crufty: it has the advantage of
5160 test "$ac_cv_exeext" = no && ac_cv_exeext=
5165 if test -z "$ac_file"; then :
5166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5167 $as_echo "no" >&6; }
5168 $as_echo "$as_me: failed program was:" >&5
5169 sed 's/^/| /' conftest.$ac_ext >&5
5171 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5172 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5173 as_fn_error 77 "C compiler cannot create executables
5174 See \`config.log' for more details" "$LINENO" 5; }
5176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5177 $as_echo "yes" >&6; }
5179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
5180 $as_echo_n "checking for C compiler default output file name... " >&6; }
5181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
5182 $as_echo "$ac_file" >&6; }
5183 ac_exeext=$ac_cv_exeext
5185 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
5186 ac_clean_files=$ac_clean_files_save
5187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
5188 $as_echo_n "checking for suffix of executables... " >&6; }
5189 if { { ac_try="$ac_link"
5191 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5192 *) ac_try_echo=$ac_try;;
5194 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5195 $as_echo "$ac_try_echo"; } >&5
5196 (eval "$ac_link") 2>&5
5198 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5199 test $ac_status = 0; }; then :
5200 # If both `conftest.exe' and `conftest' are `present' (well, observable)
5201 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
5202 # work properly (i.e., refer to `conftest.exe'), while it won't with
5204 for ac_file in conftest.exe conftest conftest.*; do
5205 test -f "$ac_file" || continue
5207 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
5208 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
5214 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5215 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5216 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
5217 See \`config.log' for more details" "$LINENO" 5; }
5219 rm -f conftest conftest$ac_cv_exeext
5220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
5221 $as_echo "$ac_cv_exeext" >&6; }
5223 rm -f conftest.$ac_ext
5224 EXEEXT=$ac_cv_exeext
5226 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5227 /* end confdefs.h. */
5232 FILE *f = fopen ("conftest.out", "w");
5233 return ferror (f) || fclose (f) != 0;
5239 ac_clean_files="$ac_clean_files conftest.out"
5240 # Check that the compiler produces executables we can run. If not, either
5241 # the compiler is broken, or we cross compile.
5242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
5243 $as_echo_n "checking whether we are cross compiling... " >&6; }
5244 if test "$cross_compiling" != yes; then
5245 { { ac_try="$ac_link"
5247 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5248 *) ac_try_echo=$ac_try;;
5250 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5251 $as_echo "$ac_try_echo"; } >&5
5252 (eval "$ac_link") 2>&5
5254 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5255 test $ac_status = 0; }
5256 if { ac_try='./conftest$ac_cv_exeext'
5257 { { case "(($ac_try" in
5258 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5259 *) ac_try_echo=$ac_try;;
5261 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5262 $as_echo "$ac_try_echo"; } >&5
5263 (eval "$ac_try") 2>&5
5265 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5266 test $ac_status = 0; }; }; then
5269 if test "$cross_compiling" = maybe; then
5272 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5273 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5274 as_fn_error $? "cannot run C compiled programs.
5275 If you meant to cross compile, use \`--host'.
5276 See \`config.log' for more details" "$LINENO" 5; }
5280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
5281 $as_echo "$cross_compiling" >&6; }
5283 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
5284 ac_clean_files=$ac_clean_files_save
5285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
5286 $as_echo_n "checking for suffix of object files... " >&6; }
5287 if ${ac_cv_objext+:} false; then :
5288 $as_echo_n "(cached) " >&6
5290 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5291 /* end confdefs.h. */
5301 rm -f conftest.o conftest.obj
5302 if { { ac_try="$ac_compile"
5304 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5305 *) ac_try_echo=$ac_try;;
5307 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5308 $as_echo "$ac_try_echo"; } >&5
5309 (eval "$ac_compile") 2>&5
5311 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5312 test $ac_status = 0; }; then :
5313 for ac_file in conftest.o conftest.obj conftest.*; do
5314 test -f "$ac_file" || continue;
5316 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
5317 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
5322 $as_echo "$as_me: failed program was:" >&5
5323 sed 's/^/| /' conftest.$ac_ext >&5
5325 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5326 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5327 as_fn_error $? "cannot compute suffix of object files: cannot compile
5328 See \`config.log' for more details" "$LINENO" 5; }
5330 rm -f conftest.$ac_cv_objext conftest.$ac_ext
5332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
5333 $as_echo "$ac_cv_objext" >&6; }
5334 OBJEXT=$ac_cv_objext
5336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
5337 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
5338 if ${ac_cv_c_compiler_gnu+:} false; then :
5339 $as_echo_n "(cached) " >&6
5341 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5342 /* end confdefs.h. */
5355 if ac_fn_c_try_compile "$LINENO"; then :
5360 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5361 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5365 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
5366 if test $ac_compiler_gnu = yes; then
5371 ac_test_CFLAGS=${CFLAGS+set}
5372 ac_save_CFLAGS=$CFLAGS
5373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5374 $as_echo_n "checking whether $CC accepts -g... " >&6; }
5375 if ${ac_cv_prog_cc_g+:} false; then :
5376 $as_echo_n "(cached) " >&6
5378 ac_save_c_werror_flag=$ac_c_werror_flag
5379 ac_c_werror_flag=yes
5382 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5383 /* end confdefs.h. */
5393 if ac_fn_c_try_compile "$LINENO"; then :
5397 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5398 /* end confdefs.h. */
5408 if ac_fn_c_try_compile "$LINENO"; then :
5411 ac_c_werror_flag=$ac_save_c_werror_flag
5413 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5414 /* end confdefs.h. */
5424 if ac_fn_c_try_compile "$LINENO"; then :
5427 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5429 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5431 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5432 ac_c_werror_flag=$ac_save_c_werror_flag
5434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5435 $as_echo "$ac_cv_prog_cc_g" >&6; }
5436 if test "$ac_test_CFLAGS" = set; then
5437 CFLAGS=$ac_save_CFLAGS
5438 elif test $ac_cv_prog_cc_g = yes; then
5439 if test "$GCC" = yes; then
5445 if test "$GCC" = yes; then
5451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
5452 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5453 if ${ac_cv_prog_cc_c89+:} false; then :
5454 $as_echo_n "(cached) " >&6
5456 ac_cv_prog_cc_c89=no
5458 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5459 /* end confdefs.h. */
5463 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5464 struct buf { int x; };
5465 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5466 static char *e (p, i)
5472 static char *f (char * (*g) (char **, int), char **p, ...)
5477 s = g (p, va_arg (v,int));
5482 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5483 function prototypes and stuff, but not '\xHH' hex character constants.
5484 These don't provoke an error unfortunately, instead are silently treated
5485 as 'x'. The following induces an error, until -std is added to get
5486 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5487 array size at least. It's necessary to write '\x00'==0 to get something
5488 that's true only with -std. */
5489 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5491 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5492 inside strings and character constants. */
5494 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5496 int test (int i, double x);
5497 struct s1 {int (*f) (int a);};
5498 struct s2 {int (*f) (double a);};
5499 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5505 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5510 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5511 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5513 CC="$ac_save_CC $ac_arg"
5514 if ac_fn_c_try_compile "$LINENO"; then :
5515 ac_cv_prog_cc_c89=$ac_arg
5517 rm -f core conftest.err conftest.$ac_objext
5518 test "x$ac_cv_prog_cc_c89" != "xno" && break
5520 rm -f conftest.$ac_ext
5525 case "x$ac_cv_prog_cc_c89" in
5527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5528 $as_echo "none needed" >&6; } ;;
5530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5531 $as_echo "unsupported" >&6; } ;;
5533 CC="$CC $ac_cv_prog_cc_c89"
5534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5535 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5537 if test "x$ac_cv_prog_cc_c89" != xno; then :
5542 ac_cpp='$CPP $CPPFLAGS'
5543 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5544 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5545 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5548 ac_cpp='$CPP $CPPFLAGS'
5549 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5550 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5551 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
5553 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
5554 if ${am_cv_prog_cc_c_o+:} false; then :
5555 $as_echo_n "(cached) " >&6
5557 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5558 /* end confdefs.h. */
5568 # Make sure it works both with $CC and with simple cc.
5569 # Following AC_PROG_CC_C_O, we do the test twice because some
5570 # compilers refuse to overwrite an existing .o file with -o,
5571 # though they will create one.
5572 am_cv_prog_cc_c_o=yes
5574 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
5575 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
5577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5578 (exit $ac_status); } \
5579 && test -f conftest2.$ac_objext; then
5582 am_cv_prog_cc_c_o=no
5586 rm -f core conftest*
5589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
5590 $as_echo "$am_cv_prog_cc_c_o" >&6; }
5591 if test "$am_cv_prog_cc_c_o" != yes; then
5592 # Losing compiler, so override with the script.
5593 # FIXME: It is wrong to rewrite CC.
5594 # But if we don't then we get into trouble of one sort or another.
5595 # A longer-term fix would be to have automake use am__CC in this case,
5596 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5597 CC="$am_aux_dir/compile $CC"
5600 ac_cpp='$CPP $CPPFLAGS'
5601 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5602 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5603 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5605 DEPDIR="${am__leading_dot}deps"
5607 ac_config_commands="$ac_config_commands depfiles"
5610 am_make=${MAKE-make}
5611 cat > confinc << 'END'
5613 @echo this is the am__doit target
5616 # If we don't find an include directive, just comment out the code.
5617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
5618 $as_echo_n "checking for style of include used by $am_make... " >&6; }
5622 # First try GNU make style include.
5623 echo "include confinc" > confmf
5624 # Ignore all kinds of additional output from 'make'.
5625 case `$am_make -s -f confmf 2> /dev/null` in #(
5626 *the\ am__doit\ target*)
5632 # Now try BSD make style include.
5633 if test "$am__include" = "#"; then
5634 echo '.include "confinc"' > confmf
5635 case `$am_make -s -f confmf 2> /dev/null` in #(
5636 *the\ am__doit\ target*)
5637 am__include=.include
5645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
5646 $as_echo "$_am_result" >&6; }
5647 rm -f confinc confmf
5649 # Check whether --enable-dependency-tracking was given.
5650 if test "${enable_dependency_tracking+set}" = set; then :
5651 enableval=$enable_dependency_tracking;
5654 if test "x$enable_dependency_tracking" != xno; then
5655 am_depcomp="$ac_aux_dir/depcomp"
5659 if test "x$enable_dependency_tracking" != xno; then
5669 depcc="$CC" am_compiler_list=
5671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5672 $as_echo_n "checking dependency style of $depcc... " >&6; }
5673 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
5674 $as_echo_n "(cached) " >&6
5676 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5677 # We make a subdir and do the tests there. Otherwise we can end up
5678 # making bogus files that we don't know about and never remove. For
5679 # instance it was reported that on HP-UX the gcc test will end up
5680 # making a dummy file named 'D' -- because '-MD' means "put the output
5684 # Copy depcomp to subdir because otherwise we won't find it if we're
5685 # using a relative directory.
5686 cp "$am_depcomp" conftest.dir
5688 # We will build objects and dependencies in a subdirectory because
5689 # it helps to detect inapplicable dependency modes. For instance
5690 # both Tru64's cc and ICC support -MD to output dependencies as a
5691 # side effect of compilation, but ICC will put the dependencies in
5692 # the current directory while Tru64 will put them in the object
5696 am_cv_CC_dependencies_compiler_type=none
5697 if test "$am_compiler_list" = ""; then
5698 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5701 case " $depcc " in #(
5702 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5705 for depmode in $am_compiler_list; do
5706 # Setup a source with many dependencies, because some compilers
5707 # like to wrap large dependency lists on column 80 (with \), and
5708 # we should not choose a depcomp mode which is confused by this.
5710 # We need to recreate these files for each test, as the compiler may
5711 # overwrite some of them when testing with obscure command lines.
5712 # This happens at least with the AIX C compiler.
5714 for i in 1 2 3 4 5 6; do
5715 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5716 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
5717 # Solaris 10 /bin/sh.
5718 echo '/* dummy */' > sub/conftst$i.h
5720 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5722 # We check with '-c' and '-o' for the sake of the "dashmstdout"
5723 # mode. It turns out that the SunPro C++ compiler does not properly
5724 # handle '-M -o', and we need to detect this. Also, some Intel
5725 # versions had trouble with output in subdirs.
5726 am__obj=sub/conftest.${OBJEXT-o}
5727 am__minus_obj="-o $am__obj"
5730 # This depmode causes a compiler race in universal mode.
5731 test "$am__universal" = false || continue
5734 # After this tag, mechanisms are not by side-effect, so they'll
5735 # only be used when explicitly requested.
5736 if test "x$enable_dependency_tracking" = xyes; then
5742 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
5743 # This compiler won't grok '-c -o', but also, the minuso test has
5744 # not run yet. These depmodes are late enough in the game, and
5745 # so weak that their functioning should not be impacted.
5746 am__obj=conftest.${OBJEXT-o}
5751 if depmode=$depmode \
5752 source=sub/conftest.c object=$am__obj \
5753 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5754 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5755 >/dev/null 2>conftest.err &&
5756 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5757 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5758 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5759 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5760 # icc doesn't choke on unknown options, it will just issue warnings
5761 # or remarks (even with -Werror). So we grep stderr for any message
5762 # that says an option was ignored or not supported.
5763 # When given -MP, icc 7.0 and 7.1 complain thusly:
5764 # icc: Command line warning: ignoring option '-M'; no argument required
5765 # The diagnosis changed in icc 8.0:
5766 # icc: Command line remark: option '-MP' not supported
5767 if (grep 'ignoring option' conftest.err ||
5768 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5769 am_cv_CC_dependencies_compiler_type=$depmode
5778 am_cv_CC_dependencies_compiler_type=none
5782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5783 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5784 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5787 test "x$enable_dependency_tracking" != xno \
5788 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5790 am__fastdepCC_FALSE='#'
5792 am__fastdepCC_TRUE='#'
5793 am__fastdepCC_FALSE=
5799 ac_cpp='$CPP $CPPFLAGS'
5800 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5801 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5802 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5804 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5805 # On Suns, sometimes $CPP names a directory.
5806 if test -n "$CPP" && test -d "$CPP"; then
5809 if test -z "$CPP"; then
5810 if ${ac_cv_prog_CPP+:} false; then :
5811 $as_echo_n "(cached) " >&6
5813 # Double quotes because CPP needs to be expanded
5814 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5817 for ac_c_preproc_warn_flag in '' yes
5819 # Use a header file that comes with gcc, so configuring glibc
5820 # with a fresh cross-compiler works.
5821 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5822 # <limits.h> exists even on freestanding compilers.
5823 # On the NeXT, cc -E runs the code through the compiler's parser,
5824 # not just through cpp. "Syntax error" is here to catch this case.
5825 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5826 /* end confdefs.h. */
5828 # include <limits.h>
5830 # include <assert.h>
5834 if ac_fn_c_try_cpp "$LINENO"; then :
5837 # Broken: fails on valid input.
5840 rm -f conftest.err conftest.i conftest.$ac_ext
5842 # OK, works on sane cases. Now check whether nonexistent headers
5843 # can be detected and how.
5844 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5845 /* end confdefs.h. */
5846 #include <ac_nonexistent.h>
5848 if ac_fn_c_try_cpp "$LINENO"; then :
5849 # Broken: success on invalid input.
5852 # Passes both tests.
5856 rm -f conftest.err conftest.i conftest.$ac_ext
5859 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5860 rm -f conftest.i conftest.err conftest.$ac_ext
5861 if $ac_preproc_ok; then :
5873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5874 $as_echo "$CPP" >&6; }
5876 for ac_c_preproc_warn_flag in '' yes
5878 # Use a header file that comes with gcc, so configuring glibc
5879 # with a fresh cross-compiler works.
5880 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5881 # <limits.h> exists even on freestanding compilers.
5882 # On the NeXT, cc -E runs the code through the compiler's parser,
5883 # not just through cpp. "Syntax error" is here to catch this case.
5884 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5885 /* end confdefs.h. */
5887 # include <limits.h>
5889 # include <assert.h>
5893 if ac_fn_c_try_cpp "$LINENO"; then :
5896 # Broken: fails on valid input.
5899 rm -f conftest.err conftest.i conftest.$ac_ext
5901 # OK, works on sane cases. Now check whether nonexistent headers
5902 # can be detected and how.
5903 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5904 /* end confdefs.h. */
5905 #include <ac_nonexistent.h>
5907 if ac_fn_c_try_cpp "$LINENO"; then :
5908 # Broken: success on invalid input.
5911 # Passes both tests.
5915 rm -f conftest.err conftest.i conftest.$ac_ext
5918 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5919 rm -f conftest.i conftest.err conftest.$ac_ext
5920 if $ac_preproc_ok; then :
5923 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5924 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5925 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
5926 See \`config.log' for more details" "$LINENO" 5; }
5930 ac_cpp='$CPP $CPPFLAGS'
5931 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5932 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5933 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5937 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5938 if ${ac_cv_path_GREP+:} false; then :
5939 $as_echo_n "(cached) " >&6
5941 if test -z "$GREP"; then
5942 ac_path_GREP_found=false
5943 # Loop through the user's path and test for each of PROGNAME-LIST
5944 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5945 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5948 test -z "$as_dir" && as_dir=.
5949 for ac_prog in grep ggrep; do
5950 for ac_exec_ext in '' $ac_executable_extensions; do
5951 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5952 as_fn_executable_p "$ac_path_GREP" || continue
5953 # Check for GNU ac_path_GREP and select it if it is found.
5954 # Check for GNU $ac_path_GREP
5955 case `"$ac_path_GREP" --version 2>&1` in
5957 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5960 $as_echo_n 0123456789 >"conftest.in"
5963 cat "conftest.in" "conftest.in" >"conftest.tmp"
5964 mv "conftest.tmp" "conftest.in"
5965 cp "conftest.in" "conftest.nl"
5966 $as_echo 'GREP' >> "conftest.nl"
5967 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5968 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5969 as_fn_arith $ac_count + 1 && ac_count=$as_val
5970 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5971 # Best one so far, save it but keep looking for a better one
5972 ac_cv_path_GREP="$ac_path_GREP"
5973 ac_path_GREP_max=$ac_count
5975 # 10*(2^10) chars as input seems more than enough
5976 test $ac_count -gt 10 && break
5978 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5981 $ac_path_GREP_found && break 3
5986 if test -z "$ac_cv_path_GREP"; then
5987 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5990 ac_cv_path_GREP=$GREP
5994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5995 $as_echo "$ac_cv_path_GREP" >&6; }
5996 GREP="$ac_cv_path_GREP"
5999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
6000 $as_echo_n "checking for egrep... " >&6; }
6001 if ${ac_cv_path_EGREP+:} false; then :
6002 $as_echo_n "(cached) " >&6
6004 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
6005 then ac_cv_path_EGREP="$GREP -E"
6007 if test -z "$EGREP"; then
6008 ac_path_EGREP_found=false
6009 # Loop through the user's path and test for each of PROGNAME-LIST
6010 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6011 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6014 test -z "$as_dir" && as_dir=.
6015 for ac_prog in egrep; do
6016 for ac_exec_ext in '' $ac_executable_extensions; do
6017 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
6018 as_fn_executable_p "$ac_path_EGREP" || continue
6019 # Check for GNU ac_path_EGREP and select it if it is found.
6020 # Check for GNU $ac_path_EGREP
6021 case `"$ac_path_EGREP" --version 2>&1` in
6023 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
6026 $as_echo_n 0123456789 >"conftest.in"
6029 cat "conftest.in" "conftest.in" >"conftest.tmp"
6030 mv "conftest.tmp" "conftest.in"
6031 cp "conftest.in" "conftest.nl"
6032 $as_echo 'EGREP' >> "conftest.nl"
6033 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6034 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6035 as_fn_arith $ac_count + 1 && ac_count=$as_val
6036 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
6037 # Best one so far, save it but keep looking for a better one
6038 ac_cv_path_EGREP="$ac_path_EGREP"
6039 ac_path_EGREP_max=$ac_count
6041 # 10*(2^10) chars as input seems more than enough
6042 test $ac_count -gt 10 && break
6044 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6047 $ac_path_EGREP_found && break 3
6052 if test -z "$ac_cv_path_EGREP"; then
6053 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6056 ac_cv_path_EGREP=$EGREP
6061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
6062 $as_echo "$ac_cv_path_EGREP" >&6; }
6063 EGREP="$ac_cv_path_EGREP"
6068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Minix Amsterdam compiler" >&5
6069 $as_echo_n "checking for Minix Amsterdam compiler... " >&6; }
6070 if ${gl_cv_c_amsterdam_compiler+:} false; then :
6071 $as_echo_n "(cached) " >&6
6074 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6075 /* end confdefs.h. */
6082 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6083 $EGREP "Amsterdam" >/dev/null 2>&1; then :
6084 gl_cv_c_amsterdam_compiler=yes
6086 gl_cv_c_amsterdam_compiler=no
6092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_c_amsterdam_compiler" >&5
6093 $as_echo "$gl_cv_c_amsterdam_compiler" >&6; }
6094 if test -z "$AR"; then
6095 if test $gl_cv_c_amsterdam_compiler = yes; then
6097 if test -z "$ARFLAGS"; then
6101 if test -n "$ac_tool_prefix"; then
6102 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6103 set dummy ${ac_tool_prefix}ar; ac_word=$2
6104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6105 $as_echo_n "checking for $ac_word... " >&6; }
6106 if ${ac_cv_prog_AR+:} false; then :
6107 $as_echo_n "(cached) " >&6
6109 if test -n "$AR"; then
6110 ac_cv_prog_AR="$AR" # Let the user override the test.
6112 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6116 test -z "$as_dir" && as_dir=.
6117 for ac_exec_ext in '' $ac_executable_extensions; do
6118 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6119 ac_cv_prog_AR="${ac_tool_prefix}ar"
6120 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6130 if test -n "$AR"; then
6131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6132 $as_echo "$AR" >&6; }
6134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6135 $as_echo "no" >&6; }
6140 if test -z "$ac_cv_prog_AR"; then
6142 # Extract the first word of "ar", so it can be a program name with args.
6143 set dummy ar; ac_word=$2
6144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6145 $as_echo_n "checking for $ac_word... " >&6; }
6146 if ${ac_cv_prog_ac_ct_AR+:} false; then :
6147 $as_echo_n "(cached) " >&6
6149 if test -n "$ac_ct_AR"; then
6150 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6152 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6156 test -z "$as_dir" && as_dir=.
6157 for ac_exec_ext in '' $ac_executable_extensions; do
6158 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6159 ac_cv_prog_ac_ct_AR="ar"
6160 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6169 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6170 if test -n "$ac_ct_AR"; then
6171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6172 $as_echo "$ac_ct_AR" >&6; }
6174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6175 $as_echo "no" >&6; }
6178 if test "x$ac_ct_AR" = x; then
6181 case $cross_compiling:$ac_tool_warned in
6183 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6184 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6185 ac_tool_warned=yes ;;
6193 if test -z "$ARFLAGS"; then
6198 if test -z "$ARFLAGS"; then
6204 if test -z "$RANLIB"; then
6205 if test $gl_cv_c_amsterdam_compiler = yes; then
6208 if test -n "$ac_tool_prefix"; then
6209 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6210 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6212 $as_echo_n "checking for $ac_word... " >&6; }
6213 if ${ac_cv_prog_RANLIB+:} false; then :
6214 $as_echo_n "(cached) " >&6
6216 if test -n "$RANLIB"; then
6217 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6219 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6223 test -z "$as_dir" && as_dir=.
6224 for ac_exec_ext in '' $ac_executable_extensions; do
6225 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6226 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6227 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6236 RANLIB=$ac_cv_prog_RANLIB
6237 if test -n "$RANLIB"; then
6238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6239 $as_echo "$RANLIB" >&6; }
6241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6242 $as_echo "no" >&6; }
6247 if test -z "$ac_cv_prog_RANLIB"; then
6248 ac_ct_RANLIB=$RANLIB
6249 # Extract the first word of "ranlib", so it can be a program name with args.
6250 set dummy ranlib; ac_word=$2
6251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6252 $as_echo_n "checking for $ac_word... " >&6; }
6253 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6254 $as_echo_n "(cached) " >&6
6256 if test -n "$ac_ct_RANLIB"; then
6257 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6259 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6263 test -z "$as_dir" && as_dir=.
6264 for ac_exec_ext in '' $ac_executable_extensions; do
6265 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6266 ac_cv_prog_ac_ct_RANLIB="ranlib"
6267 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6276 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6277 if test -n "$ac_ct_RANLIB"; then
6278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6279 $as_echo "$ac_ct_RANLIB" >&6; }
6281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6282 $as_echo "no" >&6; }
6285 if test "x$ac_ct_RANLIB" = x; then
6288 case $cross_compiling:$ac_tool_warned in
6290 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6291 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6292 ac_tool_warned=yes ;;
6294 RANLIB=$ac_ct_RANLIB
6297 RANLIB="$ac_cv_prog_RANLIB"
6304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6305 $as_echo_n "checking for ANSI C header files... " >&6; }
6306 if ${ac_cv_header_stdc+:} false; then :
6307 $as_echo_n "(cached) " >&6
6309 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6310 /* end confdefs.h. */
6324 if ac_fn_c_try_compile "$LINENO"; then :
6325 ac_cv_header_stdc=yes
6327 ac_cv_header_stdc=no
6329 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6331 if test $ac_cv_header_stdc = yes; then
6332 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6333 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6334 /* end confdefs.h. */
6338 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6339 $EGREP "memchr" >/dev/null 2>&1; then :
6342 ac_cv_header_stdc=no
6348 if test $ac_cv_header_stdc = yes; then
6349 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6350 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6351 /* end confdefs.h. */
6355 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6356 $EGREP "free" >/dev/null 2>&1; then :
6359 ac_cv_header_stdc=no
6365 if test $ac_cv_header_stdc = yes; then
6366 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6367 if test "$cross_compiling" = yes; then :
6370 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6371 /* end confdefs.h. */
6374 #if ((' ' & 0x0FF) == 0x020)
6375 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6376 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6378 # define ISLOWER(c) \
6379 (('a' <= (c) && (c) <= 'i') \
6380 || ('j' <= (c) && (c) <= 'r') \
6381 || ('s' <= (c) && (c) <= 'z'))
6382 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6385 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6390 for (i = 0; i < 256; i++)
6391 if (XOR (islower (i), ISLOWER (i))
6392 || toupper (i) != TOUPPER (i))
6397 if ac_fn_c_try_run "$LINENO"; then :
6400 ac_cv_header_stdc=no
6402 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6403 conftest.$ac_objext conftest.beam conftest.$ac_ext
6408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6409 $as_echo "$ac_cv_header_stdc" >&6; }
6410 if test $ac_cv_header_stdc = yes; then
6412 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
6416 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6417 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6418 inttypes.h stdint.h unistd.h
6420 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6421 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6423 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6424 cat >>confdefs.h <<_ACEOF
6425 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6434 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
6435 if test "x$ac_cv_header_minix_config_h" = xyes; then :
6442 if test "$MINIX" = yes; then
6444 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
6447 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
6450 $as_echo "#define _MINIX 1" >>confdefs.h
6453 $as_echo "#define _NETBSD_SOURCE 1" >>confdefs.h
6458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
6459 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
6460 if ${ac_cv_safe_to_define___extensions__+:} false; then :
6461 $as_echo_n "(cached) " >&6
6463 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6464 /* end confdefs.h. */
6466 # define __EXTENSIONS__ 1
6467 $ac_includes_default
6476 if ac_fn_c_try_compile "$LINENO"; then :
6477 ac_cv_safe_to_define___extensions__=yes
6479 ac_cv_safe_to_define___extensions__=no
6481 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
6484 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
6485 test $ac_cv_safe_to_define___extensions__ = yes &&
6486 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
6488 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
6490 $as_echo "#define _DARWIN_C_SOURCE 1" >>confdefs.h
6492 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
6494 $as_echo "#define __USE_MINGW_ANSI_STDIO 1" >>confdefs.h
6496 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
6498 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
6500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether _XOPEN_SOURCE should be defined" >&5
6501 $as_echo_n "checking whether _XOPEN_SOURCE should be defined... " >&6; }
6502 if ${ac_cv_should_define__xopen_source+:} false; then :
6503 $as_echo_n "(cached) " >&6
6505 ac_cv_should_define__xopen_source=no
6506 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6507 /* end confdefs.h. */
6519 if ac_fn_c_try_compile "$LINENO"; then :
6522 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6523 /* end confdefs.h. */
6525 #define _XOPEN_SOURCE 500
6536 if ac_fn_c_try_compile "$LINENO"; then :
6537 ac_cv_should_define__xopen_source=yes
6539 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6541 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_should_define__xopen_source" >&5
6544 $as_echo "$ac_cv_should_define__xopen_source" >&6; }
6545 test $ac_cv_should_define__xopen_source = yes &&
6546 $as_echo "#define _XOPEN_SOURCE 500" >>confdefs.h
6558 # IEEE behaviour is the default on all CPUs except Alpha and SH
6559 # (according to the test results of Bruno Haible's ieeefp/fenv_default.m4
6560 # and the GCC 4.1.2 manual).
6563 # On Alpha systems, a compiler option provides the behaviour.
6564 # See the ieee(3) manual page, also available at
6565 # <http://h30097.www3.hp.com/docs/base_doc/DOCUMENTATION/V51B_HTML/MAN/MAN3/0600____.HTM>
6566 if test -n "$GCC"; then
6567 # GCC has the option -mieee.
6568 # For full IEEE compliance (rarely needed), use option -mieee-with-inexact.
6569 CPPFLAGS="$CPPFLAGS -mieee"
6571 # Compaq (ex-DEC) C has the option -ieee, equivalent to -ieee_with_no_inexact.
6572 # For full IEEE compliance (rarely needed), use option -ieee_with_inexact.
6573 CPPFLAGS="$CPPFLAGS -ieee"
6577 if test -n "$GCC"; then
6578 # GCC has the option -mieee.
6579 CPPFLAGS="$CPPFLAGS -mieee"
6584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
6585 $as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
6586 if ${ac_cv_sys_largefile_source+:} false; then :
6587 $as_echo_n "(cached) " >&6
6590 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6591 /* end confdefs.h. */
6592 #include <sys/types.h> /* for off_t */
6597 int (*fp) (FILE *, off_t, int) = fseeko;
6598 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
6603 if ac_fn_c_try_link "$LINENO"; then :
6604 ac_cv_sys_largefile_source=no; break
6606 rm -f core conftest.err conftest.$ac_objext \
6607 conftest$ac_exeext conftest.$ac_ext
6608 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6609 /* end confdefs.h. */
6610 #define _LARGEFILE_SOURCE 1
6611 #include <sys/types.h> /* for off_t */
6616 int (*fp) (FILE *, off_t, int) = fseeko;
6617 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
6622 if ac_fn_c_try_link "$LINENO"; then :
6623 ac_cv_sys_largefile_source=1; break
6625 rm -f core conftest.err conftest.$ac_objext \
6626 conftest$ac_exeext conftest.$ac_ext
6627 ac_cv_sys_largefile_source=unknown
6631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
6632 $as_echo "$ac_cv_sys_largefile_source" >&6; }
6633 case $ac_cv_sys_largefile_source in #(
6636 cat >>confdefs.h <<_ACEOF
6637 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
6643 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
6644 # in glibc 2.1.3, but that breaks too many other things.
6645 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
6646 if test $ac_cv_sys_largefile_source != unknown; then
6648 $as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
6652 # Check whether --enable-largefile was given.
6653 if test "${enable_largefile+set}" = set; then :
6654 enableval=$enable_largefile;
6657 if test "$enable_largefile" != no; then
6659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
6660 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
6661 if ${ac_cv_sys_largefile_CC+:} false; then :
6662 $as_echo_n "(cached) " >&6
6664 ac_cv_sys_largefile_CC=no
6665 if test "$GCC" != yes; then
6668 # IRIX 6.2 and later do not support large files by default,
6669 # so use the C compiler's -n32 option if that helps.
6670 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6671 /* end confdefs.h. */
6672 #include <sys/types.h>
6673 /* Check that off_t can represent 2**63 - 1 correctly.
6674 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6675 since some C++ compilers masquerading as C compilers
6676 incorrectly reject 9223372036854775807. */
6677 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6678 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6679 && LARGE_OFF_T % 2147483647 == 1)
6689 if ac_fn_c_try_compile "$LINENO"; then :
6692 rm -f core conftest.err conftest.$ac_objext
6694 if ac_fn_c_try_compile "$LINENO"; then :
6695 ac_cv_sys_largefile_CC=' -n32'; break
6697 rm -f core conftest.err conftest.$ac_objext
6701 rm -f conftest.$ac_ext
6704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
6705 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
6706 if test "$ac_cv_sys_largefile_CC" != no; then
6707 CC=$CC$ac_cv_sys_largefile_CC
6710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
6711 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
6712 if ${ac_cv_sys_file_offset_bits+:} false; then :
6713 $as_echo_n "(cached) " >&6
6716 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6717 /* end confdefs.h. */
6718 #include <sys/types.h>
6719 /* Check that off_t can represent 2**63 - 1 correctly.
6720 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6721 since some C++ compilers masquerading as C compilers
6722 incorrectly reject 9223372036854775807. */
6723 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6724 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6725 && LARGE_OFF_T % 2147483647 == 1)
6735 if ac_fn_c_try_compile "$LINENO"; then :
6736 ac_cv_sys_file_offset_bits=no; break
6738 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6739 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6740 /* end confdefs.h. */
6741 #define _FILE_OFFSET_BITS 64
6742 #include <sys/types.h>
6743 /* Check that off_t can represent 2**63 - 1 correctly.
6744 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6745 since some C++ compilers masquerading as C compilers
6746 incorrectly reject 9223372036854775807. */
6747 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6748 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6749 && LARGE_OFF_T % 2147483647 == 1)
6759 if ac_fn_c_try_compile "$LINENO"; then :
6760 ac_cv_sys_file_offset_bits=64; break
6762 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6763 ac_cv_sys_file_offset_bits=unknown
6767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
6768 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
6769 case $ac_cv_sys_file_offset_bits in #(
6772 cat >>confdefs.h <<_ACEOF
6773 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
6778 if test $ac_cv_sys_file_offset_bits = unknown; then
6779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
6780 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
6781 if ${ac_cv_sys_large_files+:} false; then :
6782 $as_echo_n "(cached) " >&6
6785 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6786 /* end confdefs.h. */
6787 #include <sys/types.h>
6788 /* Check that off_t can represent 2**63 - 1 correctly.
6789 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6790 since some C++ compilers masquerading as C compilers
6791 incorrectly reject 9223372036854775807. */
6792 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6793 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6794 && LARGE_OFF_T % 2147483647 == 1)
6804 if ac_fn_c_try_compile "$LINENO"; then :
6805 ac_cv_sys_large_files=no; break
6807 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6808 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6809 /* end confdefs.h. */
6810 #define _LARGE_FILES 1
6811 #include <sys/types.h>
6812 /* Check that off_t can represent 2**63 - 1 correctly.
6813 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6814 since some C++ compilers masquerading as C compilers
6815 incorrectly reject 9223372036854775807. */
6816 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6817 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6818 && LARGE_OFF_T % 2147483647 == 1)
6828 if ac_fn_c_try_compile "$LINENO"; then :
6829 ac_cv_sys_large_files=1; break
6831 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6832 ac_cv_sys_large_files=unknown
6836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
6837 $as_echo "$ac_cv_sys_large_files" >&6; }
6838 case $ac_cv_sys_large_files in #(
6841 cat >>confdefs.h <<_ACEOF
6842 #define _LARGE_FILES $ac_cv_sys_large_files
6850 $as_echo "#define _DARWIN_USE_64_BIT_INODE 1" >>confdefs.h
6856 # Code from module absolute-header:
6857 # Code from module alloca:
6858 # Code from module alloca-opt:
6859 # Code from module alloca-opt-tests:
6860 # Code from module base64:
6861 # Code from module base64-tests:
6862 # Code from module binary-io:
6863 # Code from module binary-io-tests:
6864 # Code from module byteswap:
6865 # Code from module byteswap-tests:
6866 # Code from module c-ctype:
6867 # Code from module c-ctype-tests:
6868 # Code from module errno:
6869 # Code from module errno-tests:
6870 # Code from module extensions:
6872 # Code from module extern-inline:
6873 # Code from module fcntl-h:
6874 # Code from module fcntl-h-tests:
6875 # Code from module fdopen:
6876 # Code from module fdopen-tests:
6877 # Code from module fgetc-tests:
6878 # Code from module float:
6879 # Code from module float-tests:
6880 # Code from module fpieee:
6882 # Code from module fpucw:
6883 # Code from module fputc-tests:
6884 # Code from module fread-tests:
6885 # Code from module fstat:
6886 # Code from module fstat-tests:
6887 # Code from module ftell:
6888 # Code from module ftell-tests:
6889 # Code from module ftello:
6891 # Code from module ftello-tests:
6892 # Code from module func:
6893 # Code from module func-tests:
6894 # Code from module fwrite-tests:
6895 # Code from module gendocs:
6896 # Code from module getdelim:
6897 # Code from module getdelim-tests:
6898 # Code from module getline:
6899 # Code from module getline-tests:
6900 # Code from module getpagesize:
6901 # Code from module gettext:
6902 # Code from module gettext-h:
6903 # Code from module gettimeofday:
6904 # Code from module gettimeofday-tests:
6905 # Code from module gnumakefile:
6906 # Code from module hash-pjw-bare:
6907 # Code from module havelib:
6908 # Code from module iconv:
6909 # Code from module iconv-tests:
6910 # Code from module include_next:
6911 # Code from module intprops:
6912 # Code from module intprops-tests:
6913 # Code from module inttypes:
6914 # Code from module inttypes-incomplete:
6915 # Code from module inttypes-tests:
6916 # Code from module largefile:
6918 # Code from module lib-msvc-compat:
6919 # Code from module lib-symbol-versions:
6920 # Code from module lseek:
6921 # Code from module maintainer-makefile:
6922 # Code from module malloc-posix:
6923 # Code from module manywarnings:
6924 # Code from module memchr:
6925 # Code from module memchr-tests:
6926 # Code from module memmem-simple:
6927 # Code from module minmax:
6928 # Code from module msvc-inval:
6929 # Code from module msvc-nothrow:
6930 # Code from module multiarch:
6931 # Code from module netdb:
6932 # Code from module netdb-tests:
6933 # Code from module netinet_in:
6934 # Code from module netinet_in-tests:
6935 # Code from module pmccabe2html:
6936 # Code from module read-file:
6937 # Code from module read-file-tests:
6938 # Code from module realloc-posix:
6939 # Code from module size_max:
6940 # Code from module snippet/_Noreturn:
6941 # Code from module snippet/arg-nonnull:
6942 # Code from module snippet/c++defs:
6943 # Code from module snippet/warn-on-use:
6944 # Code from module snprintf:
6945 # Code from module snprintf-tests:
6946 # Code from module socklen:
6947 # Code from module ssize_t:
6948 # Code from module stdalign:
6949 # Code from module stdalign-tests:
6950 # Code from module stdbool:
6951 # Code from module stdbool-tests:
6952 # Code from module stddef:
6953 # Code from module stddef-tests:
6954 # Code from module stdint:
6955 # Code from module stdint-tests:
6956 # Code from module stdio:
6957 # Code from module stdio-tests:
6958 # Code from module stdlib:
6959 # Code from module stdlib-tests:
6960 # Code from module strcase:
6961 # Code from module string:
6962 # Code from module string-tests:
6963 # Code from module strings:
6964 # Code from module strings-tests:
6965 # Code from module strndup:
6966 # Code from module strnlen:
6967 # Code from module strnlen-tests:
6968 # Code from module strtok_r:
6969 # Code from module strverscmp:
6970 # Code from module strverscmp-tests:
6971 # Code from module sys_socket:
6972 # Code from module sys_socket-tests:
6973 # Code from module sys_stat:
6974 # Code from module sys_stat-tests:
6975 # Code from module sys_time:
6976 # Code from module sys_time-tests:
6977 # Code from module sys_types:
6978 # Code from module sys_types-tests:
6979 # Code from module sys_uio:
6980 # Code from module sys_uio-tests:
6981 # Code from module test-framework-sh:
6982 # Code from module test-framework-sh-tests:
6983 # Code from module time:
6984 # Code from module time-tests:
6985 # Code from module time_r:
6986 # Code from module u64:
6987 # Code from module u64-tests:
6988 # Code from module unistd:
6989 # Code from module unistd-tests:
6990 # Code from module useless-if-before-free:
6991 # Code from module valgrind-tests:
6992 # Code from module vasnprintf:
6993 # Code from module vasnprintf-tests:
6994 # Code from module vasprintf:
6995 # Code from module vasprintf-tests:
6996 # Code from module vc-list-files:
6997 # Code from module vc-list-files-tests:
6998 # Code from module verify:
6999 # Code from module verify-tests:
7000 # Code from module vsnprintf:
7001 # Code from module vsnprintf-tests:
7002 # Code from module warnings:
7003 # Code from module wchar:
7004 # Code from module wchar-tests:
7005 # Code from module xsize:
7009 # Code from module absolute-header:
7010 # Code from module accept:
7011 # Code from module alloca:
7012 # Code from module alloca-opt:
7013 # Code from module arpa_inet:
7014 # Code from module bind:
7015 # Code from module c-ctype:
7016 # Code from module clock-time:
7017 # Code from module close:
7018 # Code from module connect:
7019 # Code from module dup2:
7020 # Code from module environ:
7021 # Code from module errno:
7022 # Code from module error:
7023 # Code from module exitfail:
7024 # Code from module extensions:
7026 # Code from module extern-inline:
7027 # Code from module fd-hook:
7028 # Code from module float:
7029 # Code from module fseek:
7030 # Code from module fseeko:
7032 # Code from module fstat:
7033 # Code from module ftell:
7034 # Code from module ftello:
7036 # Code from module getaddrinfo:
7037 # Code from module getdelim:
7038 # Code from module getline:
7039 # Code from module getpass:
7040 # Code from module getpeername:
7041 # Code from module gettext-h:
7042 # Code from module gettime:
7043 # Code from module gettimeofday:
7044 # Code from module hostent:
7045 # Code from module include_next:
7046 # Code from module inet_ntop:
7047 # Code from module inet_pton:
7048 # Code from module intprops:
7049 # Code from module largefile:
7051 # Code from module listen:
7052 # Code from module lseek:
7053 # Code from module malloc-posix:
7054 # Code from module malloca:
7055 # Code from module memchr:
7056 # Code from module minmax:
7057 # Code from module mktime:
7058 # Code from module msvc-inval:
7059 # Code from module msvc-nothrow:
7060 # Code from module multiarch:
7061 # Code from module netdb:
7062 # Code from module netinet_in:
7063 # Code from module parse-datetime:
7064 # Code from module progname:
7065 # Code from module read-file:
7066 # Code from module realloc-posix:
7067 # Code from module recv:
7068 # Code from module recvfrom:
7069 # Code from module select:
7070 # Code from module send:
7071 # Code from module sendto:
7072 # Code from module servent:
7073 # Code from module setenv:
7074 # Code from module setsockopt:
7075 # Code from module shutdown:
7076 # Code from module signal-h:
7077 # Code from module size_max:
7078 # Code from module snippet/_Noreturn:
7079 # Code from module snippet/arg-nonnull:
7080 # Code from module snippet/c++defs:
7081 # Code from module snippet/warn-on-use:
7082 # Code from module snprintf:
7083 # Code from module socket:
7084 # Code from module socketlib:
7085 # Code from module sockets:
7086 # Code from module socklen:
7087 # Code from module ssize_t:
7088 # Code from module stdalign:
7089 # Code from module stdbool:
7090 # Code from module stddef:
7091 # Code from module stdint:
7092 # Code from module stdio:
7093 # Code from module stdlib:
7094 # Code from module strdup-posix:
7095 # Code from module strerror:
7096 # Code from module strerror-override:
7097 # Code from module string:
7098 # Code from module sys_select:
7099 # Code from module sys_socket:
7100 # Code from module sys_stat:
7101 # Code from module sys_time:
7102 # Code from module sys_types:
7103 # Code from module sys_uio:
7104 # Code from module time:
7105 # Code from module time_r:
7106 # Code from module timespec:
7107 # Code from module unistd:
7108 # Code from module unsetenv:
7109 # Code from module vasnprintf:
7110 # Code from module verify:
7111 # Code from module wchar:
7112 # Code from module xalloc:
7113 # Code from module xalloc-die:
7114 # Code from module xalloc-oversized:
7115 # Code from module xsize:
7117 # By default we simply use the C compiler to build assembly code.
7119 test "${CCAS+set}" = set || CCAS=$CC
7120 test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS
7124 depcc="$CCAS" am_compiler_list=
7126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
7127 $as_echo_n "checking dependency style of $depcc... " >&6; }
7128 if ${am_cv_CCAS_dependencies_compiler_type+:} false; then :
7129 $as_echo_n "(cached) " >&6
7131 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
7132 # We make a subdir and do the tests there. Otherwise we can end up
7133 # making bogus files that we don't know about and never remove. For
7134 # instance it was reported that on HP-UX the gcc test will end up
7135 # making a dummy file named 'D' -- because '-MD' means "put the output
7139 # Copy depcomp to subdir because otherwise we won't find it if we're
7140 # using a relative directory.
7141 cp "$am_depcomp" conftest.dir
7143 # We will build objects and dependencies in a subdirectory because
7144 # it helps to detect inapplicable dependency modes. For instance
7145 # both Tru64's cc and ICC support -MD to output dependencies as a
7146 # side effect of compilation, but ICC will put the dependencies in
7147 # the current directory while Tru64 will put them in the object
7151 am_cv_CCAS_dependencies_compiler_type=none
7152 if test "$am_compiler_list" = ""; then
7153 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
7158 for depmode in $am_compiler_list; do
7159 # Setup a source with many dependencies, because some compilers
7160 # like to wrap large dependency lists on column 80 (with \), and
7161 # we should not choose a depcomp mode which is confused by this.
7163 # We need to recreate these files for each test, as the compiler may
7164 # overwrite some of them when testing with obscure command lines.
7165 # This happens at least with the AIX C compiler.
7167 for i in 1 2 3 4 5 6; do
7168 echo '#include "conftst'$i'.h"' >> sub/conftest.c
7169 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
7170 # Solaris 10 /bin/sh.
7171 echo '/* dummy */' > sub/conftst$i.h
7173 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
7175 # We check with '-c' and '-o' for the sake of the "dashmstdout"
7176 # mode. It turns out that the SunPro C++ compiler does not properly
7177 # handle '-M -o', and we need to detect this. Also, some Intel
7178 # versions had trouble with output in subdirs.
7179 am__obj=sub/conftest.${OBJEXT-o}
7180 am__minus_obj="-o $am__obj"
7183 # This depmode causes a compiler race in universal mode.
7184 test "$am__universal" = false || continue
7187 # After this tag, mechanisms are not by side-effect, so they'll
7188 # only be used when explicitly requested.
7189 if test "x$enable_dependency_tracking" = xyes; then
7195 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
7196 # This compiler won't grok '-c -o', but also, the minuso test has
7197 # not run yet. These depmodes are late enough in the game, and
7198 # so weak that their functioning should not be impacted.
7199 am__obj=conftest.${OBJEXT-o}
7204 if depmode=$depmode \
7205 source=sub/conftest.c object=$am__obj \
7206 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
7207 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
7208 >/dev/null 2>conftest.err &&
7209 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
7210 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
7211 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
7212 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
7213 # icc doesn't choke on unknown options, it will just issue warnings
7214 # or remarks (even with -Werror). So we grep stderr for any message
7215 # that says an option was ignored or not supported.
7216 # When given -MP, icc 7.0 and 7.1 complain thusly:
7217 # icc: Command line warning: ignoring option '-M'; no argument required
7218 # The diagnosis changed in icc 8.0:
7219 # icc: Command line remark: option '-MP' not supported
7220 if (grep 'ignoring option' conftest.err ||
7221 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
7222 am_cv_CCAS_dependencies_compiler_type=$depmode
7231 am_cv_CCAS_dependencies_compiler_type=none
7235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CCAS_dependencies_compiler_type" >&5
7236 $as_echo "$am_cv_CCAS_dependencies_compiler_type" >&6; }
7237 CCASDEPMODE=depmode=$am_cv_CCAS_dependencies_compiler_type
7240 test "x$enable_dependency_tracking" != xno \
7241 && test "$am_cv_CCAS_dependencies_compiler_type" = gcc3; then
7242 am__fastdepCCAS_TRUE=
7243 am__fastdepCCAS_FALSE='#'
7245 am__fastdepCCAS_TRUE='#'
7246 am__fastdepCCAS_FALSE=
7250 if test -n "$ac_tool_prefix"; then
7251 for ac_prog in ar lib "link -lib"
7253 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7254 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7256 $as_echo_n "checking for $ac_word... " >&6; }
7257 if ${ac_cv_prog_AR+:} false; then :
7258 $as_echo_n "(cached) " >&6
7260 if test -n "$AR"; then
7261 ac_cv_prog_AR="$AR" # Let the user override the test.
7263 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7267 test -z "$as_dir" && as_dir=.
7268 for ac_exec_ext in '' $ac_executable_extensions; do
7269 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7270 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
7271 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7281 if test -n "$AR"; then
7282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7283 $as_echo "$AR" >&6; }
7285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7286 $as_echo "no" >&6; }
7290 test -n "$AR" && break
7293 if test -z "$AR"; then
7295 for ac_prog in ar lib "link -lib"
7297 # Extract the first word of "$ac_prog", so it can be a program name with args.
7298 set dummy $ac_prog; ac_word=$2
7299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7300 $as_echo_n "checking for $ac_word... " >&6; }
7301 if ${ac_cv_prog_ac_ct_AR+:} false; then :
7302 $as_echo_n "(cached) " >&6
7304 if test -n "$ac_ct_AR"; then
7305 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7307 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7311 test -z "$as_dir" && as_dir=.
7312 for ac_exec_ext in '' $ac_executable_extensions; do
7313 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7314 ac_cv_prog_ac_ct_AR="$ac_prog"
7315 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7324 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7325 if test -n "$ac_ct_AR"; then
7326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
7327 $as_echo "$ac_ct_AR" >&6; }
7329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7330 $as_echo "no" >&6; }
7334 test -n "$ac_ct_AR" && break
7337 if test "x$ac_ct_AR" = x; then
7340 case $cross_compiling:$ac_tool_warned in
7342 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7343 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7344 ac_tool_warned=yes ;;
7352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the archiver ($AR) interface" >&5
7353 $as_echo_n "checking the archiver ($AR) interface... " >&6; }
7354 if ${am_cv_ar_interface+:} false; then :
7355 $as_echo_n "(cached) " >&6
7358 ac_cpp='$CPP $CPPFLAGS'
7359 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7360 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7361 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7363 am_cv_ar_interface=ar
7364 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7365 /* end confdefs.h. */
7366 int some_variable = 0;
7368 if ac_fn_c_try_compile "$LINENO"; then :
7369 am_ar_try='$AR cru libconftest.a conftest.$ac_objext >&5'
7370 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
7371 (eval $am_ar_try) 2>&5
7373 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7374 test $ac_status = 0; }
7375 if test "$ac_status" -eq 0; then
7376 am_cv_ar_interface=ar
7378 am_ar_try='$AR -NOLOGO -OUT:conftest.lib conftest.$ac_objext >&5'
7379 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
7380 (eval $am_ar_try) 2>&5
7382 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7383 test $ac_status = 0; }
7384 if test "$ac_status" -eq 0; then
7385 am_cv_ar_interface=lib
7387 am_cv_ar_interface=unknown
7390 rm -f conftest.lib libconftest.a
7393 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7395 ac_cpp='$CPP $CPPFLAGS'
7396 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7397 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7398 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_ar_interface" >&5
7402 $as_echo "$am_cv_ar_interface" >&6; }
7404 case $am_cv_ar_interface in
7408 # Microsoft lib, so override with the ar-lib wrapper script.
7409 # FIXME: It is wrong to rewrite AR.
7410 # But if we don't then we get into trouble of one sort or another.
7411 # A longer-term fix would be to have automake use am__AR in this case,
7412 # and then we could set am__AR="$am_aux_dir/ar-lib \$(AR)" or something
7414 AR="$am_aux_dir/ar-lib $AR"
7417 as_fn_error $? "could not determine $AR interface" "$LINENO" 5
7422 ac_cpp='$CXXCPP $CPPFLAGS'
7423 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7424 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7425 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7426 if test -z "$CXX"; then
7427 if test -n "$CCC"; then
7430 if test -n "$ac_tool_prefix"; then
7431 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
7433 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7434 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7436 $as_echo_n "checking for $ac_word... " >&6; }
7437 if ${ac_cv_prog_CXX+:} false; then :
7438 $as_echo_n "(cached) " >&6
7440 if test -n "$CXX"; then
7441 ac_cv_prog_CXX="$CXX" # Let the user override the test.
7443 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7447 test -z "$as_dir" && as_dir=.
7448 for ac_exec_ext in '' $ac_executable_extensions; do
7449 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7450 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
7451 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7461 if test -n "$CXX"; then
7462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
7463 $as_echo "$CXX" >&6; }
7465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7466 $as_echo "no" >&6; }
7470 test -n "$CXX" && break
7473 if test -z "$CXX"; then
7475 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
7477 # Extract the first word of "$ac_prog", so it can be a program name with args.
7478 set dummy $ac_prog; ac_word=$2
7479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7480 $as_echo_n "checking for $ac_word... " >&6; }
7481 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
7482 $as_echo_n "(cached) " >&6
7484 if test -n "$ac_ct_CXX"; then
7485 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
7487 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7491 test -z "$as_dir" && as_dir=.
7492 for ac_exec_ext in '' $ac_executable_extensions; do
7493 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7494 ac_cv_prog_ac_ct_CXX="$ac_prog"
7495 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7504 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
7505 if test -n "$ac_ct_CXX"; then
7506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
7507 $as_echo "$ac_ct_CXX" >&6; }
7509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7510 $as_echo "no" >&6; }
7514 test -n "$ac_ct_CXX" && break
7517 if test "x$ac_ct_CXX" = x; then
7520 case $cross_compiling:$ac_tool_warned in
7522 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7523 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7524 ac_tool_warned=yes ;;
7532 # Provide some information about the compiler.
7533 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
7536 for ac_option in --version -v -V -qversion; do
7537 { { ac_try="$ac_compiler $ac_option >&5"
7539 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7540 *) ac_try_echo=$ac_try;;
7542 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7543 $as_echo "$ac_try_echo"; } >&5
7544 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
7546 if test -s conftest.err; then
7548 ... rest of stderr output deleted ...
7549 10q' conftest.err >conftest.er1
7550 cat conftest.er1 >&5
7552 rm -f conftest.er1 conftest.err
7553 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7554 test $ac_status = 0; }
7557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
7558 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
7559 if ${ac_cv_cxx_compiler_gnu+:} false; then :
7560 $as_echo_n "(cached) " >&6
7562 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7563 /* end confdefs.h. */
7576 if ac_fn_cxx_try_compile "$LINENO"; then :
7581 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7582 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
7585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
7586 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
7587 if test $ac_compiler_gnu = yes; then
7592 ac_test_CXXFLAGS=${CXXFLAGS+set}
7593 ac_save_CXXFLAGS=$CXXFLAGS
7594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
7595 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
7596 if ${ac_cv_prog_cxx_g+:} false; then :
7597 $as_echo_n "(cached) " >&6
7599 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
7600 ac_cxx_werror_flag=yes
7603 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7604 /* end confdefs.h. */
7614 if ac_fn_cxx_try_compile "$LINENO"; then :
7615 ac_cv_prog_cxx_g=yes
7618 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7619 /* end confdefs.h. */
7629 if ac_fn_cxx_try_compile "$LINENO"; then :
7632 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
7634 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7635 /* end confdefs.h. */
7645 if ac_fn_cxx_try_compile "$LINENO"; then :
7646 ac_cv_prog_cxx_g=yes
7648 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7650 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7652 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7653 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
7655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
7656 $as_echo "$ac_cv_prog_cxx_g" >&6; }
7657 if test "$ac_test_CXXFLAGS" = set; then
7658 CXXFLAGS=$ac_save_CXXFLAGS
7659 elif test $ac_cv_prog_cxx_g = yes; then
7660 if test "$GXX" = yes; then
7666 if test "$GXX" = yes; then
7673 ac_cpp='$CPP $CPPFLAGS'
7674 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7675 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7676 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7678 depcc="$CXX" am_compiler_list=
7680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
7681 $as_echo_n "checking dependency style of $depcc... " >&6; }
7682 if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
7683 $as_echo_n "(cached) " >&6
7685 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
7686 # We make a subdir and do the tests there. Otherwise we can end up
7687 # making bogus files that we don't know about and never remove. For
7688 # instance it was reported that on HP-UX the gcc test will end up
7689 # making a dummy file named 'D' -- because '-MD' means "put the output
7693 # Copy depcomp to subdir because otherwise we won't find it if we're
7694 # using a relative directory.
7695 cp "$am_depcomp" conftest.dir
7697 # We will build objects and dependencies in a subdirectory because
7698 # it helps to detect inapplicable dependency modes. For instance
7699 # both Tru64's cc and ICC support -MD to output dependencies as a
7700 # side effect of compilation, but ICC will put the dependencies in
7701 # the current directory while Tru64 will put them in the object
7705 am_cv_CXX_dependencies_compiler_type=none
7706 if test "$am_compiler_list" = ""; then
7707 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
7710 case " $depcc " in #(
7711 *\ -arch\ *\ -arch\ *) am__universal=true ;;
7714 for depmode in $am_compiler_list; do
7715 # Setup a source with many dependencies, because some compilers
7716 # like to wrap large dependency lists on column 80 (with \), and
7717 # we should not choose a depcomp mode which is confused by this.
7719 # We need to recreate these files for each test, as the compiler may
7720 # overwrite some of them when testing with obscure command lines.
7721 # This happens at least with the AIX C compiler.
7723 for i in 1 2 3 4 5 6; do
7724 echo '#include "conftst'$i'.h"' >> sub/conftest.c
7725 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
7726 # Solaris 10 /bin/sh.
7727 echo '/* dummy */' > sub/conftst$i.h
7729 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
7731 # We check with '-c' and '-o' for the sake of the "dashmstdout"
7732 # mode. It turns out that the SunPro C++ compiler does not properly
7733 # handle '-M -o', and we need to detect this. Also, some Intel
7734 # versions had trouble with output in subdirs.
7735 am__obj=sub/conftest.${OBJEXT-o}
7736 am__minus_obj="-o $am__obj"
7739 # This depmode causes a compiler race in universal mode.
7740 test "$am__universal" = false || continue
7743 # After this tag, mechanisms are not by side-effect, so they'll
7744 # only be used when explicitly requested.
7745 if test "x$enable_dependency_tracking" = xyes; then
7751 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
7752 # This compiler won't grok '-c -o', but also, the minuso test has
7753 # not run yet. These depmodes are late enough in the game, and
7754 # so weak that their functioning should not be impacted.
7755 am__obj=conftest.${OBJEXT-o}
7760 if depmode=$depmode \
7761 source=sub/conftest.c object=$am__obj \
7762 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
7763 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
7764 >/dev/null 2>conftest.err &&
7765 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
7766 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
7767 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
7768 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
7769 # icc doesn't choke on unknown options, it will just issue warnings
7770 # or remarks (even with -Werror). So we grep stderr for any message
7771 # that says an option was ignored or not supported.
7772 # When given -MP, icc 7.0 and 7.1 complain thusly:
7773 # icc: Command line warning: ignoring option '-M'; no argument required
7774 # The diagnosis changed in icc 8.0:
7775 # icc: Command line remark: option '-MP' not supported
7776 if (grep 'ignoring option' conftest.err ||
7777 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
7778 am_cv_CXX_dependencies_compiler_type=$depmode
7787 am_cv_CXX_dependencies_compiler_type=none
7791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
7792 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
7793 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
7796 test "x$enable_dependency_tracking" != xno \
7797 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
7798 am__fastdepCXX_TRUE=
7799 am__fastdepCXX_FALSE='#'
7801 am__fastdepCXX_TRUE='#'
7802 am__fastdepCXX_FALSE=
7807 for ac_prog in 'bison -y' byacc
7809 # Extract the first word of "$ac_prog", so it can be a program name with args.
7810 set dummy $ac_prog; ac_word=$2
7811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7812 $as_echo_n "checking for $ac_word... " >&6; }
7813 if ${ac_cv_prog_YACC+:} false; then :
7814 $as_echo_n "(cached) " >&6
7816 if test -n "$YACC"; then
7817 ac_cv_prog_YACC="$YACC" # Let the user override the test.
7819 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7823 test -z "$as_dir" && as_dir=.
7824 for ac_exec_ext in '' $ac_executable_extensions; do
7825 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7826 ac_cv_prog_YACC="$ac_prog"
7827 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7836 YACC=$ac_cv_prog_YACC
7837 if test -n "$YACC"; then
7838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
7839 $as_echo "$YACC" >&6; }
7841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7842 $as_echo "no" >&6; }
7846 test -n "$YACC" && break
7848 test -n "$YACC" || YACC="yacc"
7850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
7851 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
7852 if ${ac_cv_path_SED+:} false; then :
7853 $as_echo_n "(cached) " >&6
7855 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
7856 for ac_i in 1 2 3 4 5 6 7; do
7857 ac_script="$ac_script$as_nl$ac_script"
7859 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
7860 { ac_script=; unset ac_script;}
7861 if test -z "$SED"; then
7862 ac_path_SED_found=false
7863 # Loop through the user's path and test for each of PROGNAME-LIST
7864 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7868 test -z "$as_dir" && as_dir=.
7869 for ac_prog in sed gsed; do
7870 for ac_exec_ext in '' $ac_executable_extensions; do
7871 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
7872 as_fn_executable_p "$ac_path_SED" || continue
7873 # Check for GNU ac_path_SED and select it if it is found.
7874 # Check for GNU $ac_path_SED
7875 case `"$ac_path_SED" --version 2>&1` in
7877 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
7880 $as_echo_n 0123456789 >"conftest.in"
7883 cat "conftest.in" "conftest.in" >"conftest.tmp"
7884 mv "conftest.tmp" "conftest.in"
7885 cp "conftest.in" "conftest.nl"
7886 $as_echo '' >> "conftest.nl"
7887 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
7888 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7889 as_fn_arith $ac_count + 1 && ac_count=$as_val
7890 if test $ac_count -gt ${ac_path_SED_max-0}; then
7891 # Best one so far, save it but keep looking for a better one
7892 ac_cv_path_SED="$ac_path_SED"
7893 ac_path_SED_max=$ac_count
7895 # 10*(2^10) chars as input seems more than enough
7896 test $ac_count -gt 10 && break
7898 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7901 $ac_path_SED_found && break 3
7906 if test -z "$ac_cv_path_SED"; then
7907 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
7914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
7915 $as_echo "$ac_cv_path_SED" >&6; }
7916 SED="$ac_cv_path_SED"
7919 # Extract the first word of "autogen", so it can be a program name with args.
7920 set dummy autogen; ac_word=$2
7921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7922 $as_echo_n "checking for $ac_word... " >&6; }
7923 if ${ac_cv_prog_AUTOGEN+:} false; then :
7924 $as_echo_n "(cached) " >&6
7926 if test -n "$AUTOGEN"; then
7927 ac_cv_prog_AUTOGEN="$AUTOGEN" # Let the user override the test.
7929 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7933 test -z "$as_dir" && as_dir=.
7934 for ac_exec_ext in '' $ac_executable_extensions; do
7935 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7936 ac_cv_prog_AUTOGEN="autogen"
7937 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7944 test -z "$ac_cv_prog_AUTOGEN" && ac_cv_prog_AUTOGEN="/bin/true"
7947 AUTOGEN=$ac_cv_prog_AUTOGEN
7948 if test -n "$AUTOGEN"; then
7949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AUTOGEN" >&5
7950 $as_echo "$AUTOGEN" >&6; }
7952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7953 $as_echo "no" >&6; }
7960 if test x"$AUTOGEN" = "x/bin/true"; then
7961 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
7963 *** autogen not found. Will not link against libopts.
7965 $as_echo "$as_me: WARNING:
7967 *** autogen not found. Will not link against libopts.
7969 enable_local_libopts=yes
7972 # For includes/gnutls/gnutls.h.in.
7973 MAJOR_VERSION=`echo $PACKAGE_VERSION | sed 's/\(.*\)\..*\..*/\1/g'`
7975 MINOR_VERSION=`echo $PACKAGE_VERSION | sed 's/.*\.\(.*\)\..*/\1/g'`
7977 PATCH_VERSION=`echo $PACKAGE_VERSION | sed 's/.*\..*\.\([0-9]*\).*/\1/g'`
7979 NUMBER_VERSION=`printf "0x%02x%02x%02x" $MAJOR_VERSION $MINOR_VERSION $PATCH_VERSION`
7982 touch suppressions.valgrind
7983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
7984 $as_echo_n "checking for inline... " >&6; }
7985 if ${ac_cv_c_inline+:} false; then :
7986 $as_echo_n "(cached) " >&6
7989 for ac_kw in inline __inline__ __inline; do
7990 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7991 /* end confdefs.h. */
7994 static $ac_kw foo_t static_foo () {return 0; }
7995 $ac_kw foo_t foo () {return 0; }
7999 if ac_fn_c_try_compile "$LINENO"; then :
8000 ac_cv_c_inline=$ac_kw
8002 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8003 test "$ac_cv_c_inline" != no && break
8007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
8008 $as_echo "$ac_cv_c_inline" >&6; }
8010 case $ac_cv_c_inline in
8013 case $ac_cv_c_inline in
8015 *) ac_val=$ac_cv_c_inline;;
8017 cat >>confdefs.h <<_ACEOF
8019 #define inline $ac_val
8025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
8026 $as_echo_n "checking for ANSI C header files... " >&6; }
8027 if ${ac_cv_header_stdc+:} false; then :
8028 $as_echo_n "(cached) " >&6
8030 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8031 /* end confdefs.h. */
8045 if ac_fn_c_try_compile "$LINENO"; then :
8046 ac_cv_header_stdc=yes
8048 ac_cv_header_stdc=no
8050 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8052 if test $ac_cv_header_stdc = yes; then
8053 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8054 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8055 /* end confdefs.h. */
8059 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8060 $EGREP "memchr" >/dev/null 2>&1; then :
8063 ac_cv_header_stdc=no
8069 if test $ac_cv_header_stdc = yes; then
8070 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8071 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8072 /* end confdefs.h. */
8076 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8077 $EGREP "free" >/dev/null 2>&1; then :
8080 ac_cv_header_stdc=no
8086 if test $ac_cv_header_stdc = yes; then
8087 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8088 if test "$cross_compiling" = yes; then :
8091 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8092 /* end confdefs.h. */
8095 #if ((' ' & 0x0FF) == 0x020)
8096 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8097 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8099 # define ISLOWER(c) \
8100 (('a' <= (c) && (c) <= 'i') \
8101 || ('j' <= (c) && (c) <= 'r') \
8102 || ('s' <= (c) && (c) <= 'z'))
8103 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8106 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8111 for (i = 0; i < 256; i++)
8112 if (XOR (islower (i), ISLOWER (i))
8113 || toupper (i) != TOUPPER (i))
8118 if ac_fn_c_try_run "$LINENO"; then :
8121 ac_cv_header_stdc=no
8123 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8124 conftest.$ac_objext conftest.beam conftest.$ac_ext
8129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8130 $as_echo "$ac_cv_header_stdc" >&6; }
8131 if test $ac_cv_header_stdc = yes; then
8133 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
8139 # Check whether --enable-cxx was given.
8140 if test "${enable_cxx+set}" = set; then :
8141 enableval=$enable_cxx; use_cxx=$enableval
8146 if test "$use_cxx" != "no"; then
8148 ac_cpp='$CXXCPP $CPPFLAGS'
8149 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8150 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8151 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8154 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8155 /* end confdefs.h. */
8165 if ac_fn_cxx_try_compile "$LINENO"; then :
8170 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8172 ac_cpp='$CPP $CPPFLAGS'
8173 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8174 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8175 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8178 if test "$use_cxx" != "no"; then
8180 ENABLE_CXX_FALSE='#'
8186 if test -f tests/suite/mini-eagain2.c; then
8187 WANT_TEST_SUITE_TRUE=
8188 WANT_TEST_SUITE_FALSE='#'
8190 WANT_TEST_SUITE_TRUE='#'
8191 WANT_TEST_SUITE_FALSE=
8197 *mingw32* | *mingw64*)
8205 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
8207 *** In solaris hardware acceleration is disabled by default due to issues
8208 *** with the assembler. Use --enable-hardware-acceleration to enable it.
8210 $as_echo "$as_me: WARNING:
8212 *** In solaris hardware acceleration is disabled by default due to issues
8213 *** with the assembler. Use --enable-hardware-acceleration to enable it.
8221 if test "$have_win" = yes; then
8229 if test "$have_macosx" = yes; then
8237 if test "$have_elf" = yes; then
8246 # Check whether --enable-hardware-acceleration was given.
8247 if test "${enable_hardware_acceleration+set}" = set; then :
8248 enableval=$enable_hardware_acceleration; use_accel=$enableval
8254 if test "$use_accel" != "no"; then
8256 i?86 | x86_64 | amd64)
8257 for ac_header in cpuid.h
8259 ac_fn_c_check_header_mongrel "$LINENO" "cpuid.h" "ac_cv_header_cpuid_h" "$ac_includes_default"
8260 if test "x$ac_cv_header_cpuid_h" = xyes; then :
8261 cat >>confdefs.h <<_ACEOF
8262 #define HAVE_CPUID_H 1
8269 if test "$host_cpu" = "x86_64" || test "$host_cpu" = "amd64"; then
8281 # Check whether --enable-padlock was given.
8282 if test "${enable_padlock+set}" = set; then :
8283 enableval=$enable_padlock; use_padlock=$enableval
8289 if test "$use_padlock" != "no"; then
8291 $as_echo "#define ENABLE_PADLOCK 1" >>confdefs.h
8295 if test "$use_padlock" = "yes"; then
8296 ENABLE_PADLOCK_TRUE=
8297 ENABLE_PADLOCK_FALSE='#'
8299 ENABLE_PADLOCK_TRUE='#'
8300 ENABLE_PADLOCK_FALSE=
8303 if test x"$hw_accel" = x"x86-64"; then
8305 ASM_X86_64_FALSE='#'
8311 if test x"$hw_accel" = x"x86"; then
8313 ASM_X86_32_FALSE='#'
8319 if test x"$hw_accel" = x"x86" || test x"$hw_accel" = x"x86-64"; then
8327 if test "$gnu89_inline" = "yes"]; then
8328 HAVE_GCC_GNU89_INLINE_OPTION_TRUE=
8329 HAVE_GCC_GNU89_INLINE_OPTION_FALSE='#'
8331 HAVE_GCC_GNU89_INLINE_OPTION_TRUE='#'
8332 HAVE_GCC_GNU89_INLINE_OPTION_FALSE=
8335 if test "$GCC" = "yes"; then
8346 # Library code modified: REVISION++
8347 # Interfaces changed/added/removed: CURRENT++ REVISION=0
8348 # Interfaces added: AGE++
8349 # Interfaces removed: AGE=0 (+bump all symbol versions in .map)
8378 CRYWRAP_PATCHLEVEL=3
8381 # Used when creating the Windows libgnutls-XX.def files.
8382 DLL_VERSION=`expr ${LT_CURRENT} - ${LT_AGE}`
8387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NETTLE" >&5
8388 $as_echo_n "checking for NETTLE... " >&6; }
8390 if test -n "$PKG_CONFIG"; then
8391 if test -n "$NETTLE_CFLAGS"; then
8392 pkg_cv_NETTLE_CFLAGS="$NETTLE_CFLAGS"
8394 if test -n "$PKG_CONFIG" && \
8395 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"nettle >= 2.7\""; } >&5
8396 ($PKG_CONFIG --exists --print-errors "nettle >= 2.7") 2>&5
8398 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8399 test $ac_status = 0; }; then
8400 pkg_cv_NETTLE_CFLAGS=`$PKG_CONFIG --cflags "nettle >= 2.7" 2>/dev/null`
8408 if test -n "$PKG_CONFIG"; then
8409 if test -n "$NETTLE_LIBS"; then
8410 pkg_cv_NETTLE_LIBS="$NETTLE_LIBS"
8412 if test -n "$PKG_CONFIG" && \
8413 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"nettle >= 2.7\""; } >&5
8414 ($PKG_CONFIG --exists --print-errors "nettle >= 2.7") 2>&5
8416 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8417 test $ac_status = 0; }; then
8418 pkg_cv_NETTLE_LIBS=`$PKG_CONFIG --libs "nettle >= 2.7" 2>/dev/null`
8429 if test $pkg_failed = yes; then
8431 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
8432 _pkg_short_errors_supported=yes
8434 _pkg_short_errors_supported=no
8436 if test $_pkg_short_errors_supported = yes; then
8437 NETTLE_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "nettle >= 2.7"`
8439 NETTLE_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "nettle >= 2.7"`
8441 # Put the nasty error message in config.log where it belongs
8442 echo "$NETTLE_PKG_ERRORS" >&5
8444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8445 $as_echo "no" >&6; }
8449 *** Libnettle 2.7.1 was not found.
8452 elif test $pkg_failed = untried; then
8456 *** Libnettle 2.7.1 was not found.
8460 NETTLE_CFLAGS=$pkg_cv_NETTLE_CFLAGS
8461 NETTLE_LIBS=$pkg_cv_NETTLE_LIBS
8462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8463 $as_echo "yes" >&6; }
8468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for HOGWEED" >&5
8469 $as_echo_n "checking for HOGWEED... " >&6; }
8471 if test -n "$PKG_CONFIG"; then
8472 if test -n "$HOGWEED_CFLAGS"; then
8473 pkg_cv_HOGWEED_CFLAGS="$HOGWEED_CFLAGS"
8475 if test -n "$PKG_CONFIG" && \
8476 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"hogweed >= 2.7\""; } >&5
8477 ($PKG_CONFIG --exists --print-errors "hogweed >= 2.7") 2>&5
8479 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8480 test $ac_status = 0; }; then
8481 pkg_cv_HOGWEED_CFLAGS=`$PKG_CONFIG --cflags "hogweed >= 2.7" 2>/dev/null`
8489 if test -n "$PKG_CONFIG"; then
8490 if test -n "$HOGWEED_LIBS"; then
8491 pkg_cv_HOGWEED_LIBS="$HOGWEED_LIBS"
8493 if test -n "$PKG_CONFIG" && \
8494 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"hogweed >= 2.7\""; } >&5
8495 ($PKG_CONFIG --exists --print-errors "hogweed >= 2.7") 2>&5
8497 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8498 test $ac_status = 0; }; then
8499 pkg_cv_HOGWEED_LIBS=`$PKG_CONFIG --libs "hogweed >= 2.7" 2>/dev/null`
8510 if test $pkg_failed = yes; then
8512 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
8513 _pkg_short_errors_supported=yes
8515 _pkg_short_errors_supported=no
8517 if test $_pkg_short_errors_supported = yes; then
8518 HOGWEED_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "hogweed >= 2.7"`
8520 HOGWEED_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "hogweed >= 2.7"`
8522 # Put the nasty error message in config.log where it belongs
8523 echo "$HOGWEED_PKG_ERRORS" >&5
8525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8526 $as_echo "no" >&6; }
8530 *** Libhogweed (nettle's companion library) was not found. Note that you must compile nettle with gmp support.
8533 elif test $pkg_failed = untried; then
8537 *** Libhogweed (nettle's companion library) was not found. Note that you must compile nettle with gmp support.
8541 HOGWEED_CFLAGS=$pkg_cv_HOGWEED_CFLAGS
8542 HOGWEED_LIBS=$pkg_cv_HOGWEED_LIBS
8543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8544 $as_echo "yes" >&6; }
8547 if test "$cryptolib" = "nettle"; then
8549 ENABLE_NETTLE_FALSE='#'
8551 ENABLE_NETTLE_TRUE='#'
8552 ENABLE_NETTLE_FALSE=
8556 $as_echo "#define HAVE_LIBNETTLE 1" >>confdefs.h
8558 nettle_version=`$PKG_CONFIG --modversion nettle`
8560 if $PKG_CONFIG --atleast-version=3.0 nettle; then
8562 $as_echo "#define USE_NETTLE3 1" >>confdefs.h
8568 if test "$use_nettle3" = "yes"; then
8570 USE_NETTLE3_FALSE='#'
8572 USE_NETTLE3_TRUE='#'
8577 GNUTLS_REQUIRES_PRIVATE="Requires.private: nettle, hogweed"
8580 # Check whether --with-nettle-mini was given.
8581 if test "${with_nettle_mini+set}" = set; then :
8582 withval=$with_nettle_mini; mini_nettle=$withval
8590 if test "$mini_nettle" != no;then
8594 if test x$GMP_LIBS = x; then
8595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __gmpz_cmp in -lgmp" >&5
8596 $as_echo_n "checking for __gmpz_cmp in -lgmp... " >&6; }
8597 if ${ac_cv_lib_gmp___gmpz_cmp+:} false; then :
8598 $as_echo_n "(cached) " >&6
8600 ac_check_lib_save_LIBS=$LIBS
8602 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8603 /* end confdefs.h. */
8605 /* Override any GCC internal prototype to avoid an error.
8606 Use char because int might match the return type of a GCC
8607 builtin and then its argument prototype would still apply. */
8615 return __gmpz_cmp ();
8620 if ac_fn_c_try_link "$LINENO"; then :
8621 ac_cv_lib_gmp___gmpz_cmp=yes
8623 ac_cv_lib_gmp___gmpz_cmp=no
8625 rm -f core conftest.err conftest.$ac_objext \
8626 conftest$ac_exeext conftest.$ac_ext
8627 LIBS=$ac_check_lib_save_LIBS
8629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gmp___gmpz_cmp" >&5
8630 $as_echo "$ac_cv_lib_gmp___gmpz_cmp" >&6; }
8631 if test "x$ac_cv_lib_gmp___gmpz_cmp" = xyes; then :
8636 *** gmp was not found.
8646 # Check whether --with-included-libtasn1 was given.
8647 if test "${with_included_libtasn1+set}" = set; then :
8648 withval=$with_included_libtasn1; included_libtasn1=$withval
8650 included_libtasn1=no
8653 if test "$included_libtasn1" = "no"; then
8656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBTASN1" >&5
8657 $as_echo_n "checking for LIBTASN1... " >&6; }
8659 if test -n "$PKG_CONFIG"; then
8660 if test -n "$LIBTASN1_CFLAGS"; then
8661 pkg_cv_LIBTASN1_CFLAGS="$LIBTASN1_CFLAGS"
8663 if test -n "$PKG_CONFIG" && \
8664 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libtasn1 >= 3.9\""; } >&5
8665 ($PKG_CONFIG --exists --print-errors "libtasn1 >= 3.9") 2>&5
8667 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8668 test $ac_status = 0; }; then
8669 pkg_cv_LIBTASN1_CFLAGS=`$PKG_CONFIG --cflags "libtasn1 >= 3.9" 2>/dev/null`
8677 if test -n "$PKG_CONFIG"; then
8678 if test -n "$LIBTASN1_LIBS"; then
8679 pkg_cv_LIBTASN1_LIBS="$LIBTASN1_LIBS"
8681 if test -n "$PKG_CONFIG" && \
8682 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libtasn1 >= 3.9\""; } >&5
8683 ($PKG_CONFIG --exists --print-errors "libtasn1 >= 3.9") 2>&5
8685 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8686 test $ac_status = 0; }; then
8687 pkg_cv_LIBTASN1_LIBS=`$PKG_CONFIG --libs "libtasn1 >= 3.9" 2>/dev/null`
8698 if test $pkg_failed = yes; then
8700 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
8701 _pkg_short_errors_supported=yes
8703 _pkg_short_errors_supported=no
8705 if test $_pkg_short_errors_supported = yes; then
8706 LIBTASN1_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "libtasn1 >= 3.9"`
8708 LIBTASN1_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libtasn1 >= 3.9"`
8710 # Put the nasty error message in config.log where it belongs
8711 echo "$LIBTASN1_PKG_ERRORS" >&5
8713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8714 $as_echo "no" >&6; }
8715 included_libtasn1=yes
8716 elif test $pkg_failed = untried; then
8717 included_libtasn1=yes
8719 LIBTASN1_CFLAGS=$pkg_cv_LIBTASN1_CFLAGS
8720 LIBTASN1_LIBS=$pkg_cv_LIBTASN1_LIBS
8721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8722 $as_echo "yes" >&6; }
8725 if test "$included_libtasn1" = yes; then
8726 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
8728 *** Libtasn1 was not found. Will use the included one.
8730 $as_echo "$as_me: WARNING:
8732 *** Libtasn1 was not found. Will use the included one.
8736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use the included minitasn1" >&5
8737 $as_echo_n "checking whether to use the included minitasn1... " >&6; }
8738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $included_libtasn1" >&5
8739 $as_echo "$included_libtasn1" >&6; }
8740 if test "$included_libtasn1" = "yes"; then
8741 ENABLE_MINITASN1_TRUE=
8742 ENABLE_MINITASN1_FALSE='#'
8744 ENABLE_MINITASN1_TRUE='#'
8745 ENABLE_MINITASN1_FALSE=
8749 if test "$included_libtasn1" = "no"; then
8750 GNUTLS_REQUIRES_PRIVATE="${GNUTLS_REQUIRES_PRIVATE}, libtasn1"
8752 LIBS="$LIBS $LIBTASN1_LIBS"
8754 CFLAGS="$CFLAGS $LIBTASN1_CFLAGS"
8755 ac_fn_c_check_func "$LINENO" "asn1_decode_simple_ber" "ac_cv_func_asn1_decode_simple_ber"
8756 if test "x$ac_cv_func_asn1_decode_simple_ber" = xyes; then :
8758 $as_echo "#define HAVE_ASN1_DECODE_SIMPLE_BER 1" >>confdefs.h
8765 $as_echo "#define HAVE_ASN1_DECODE_SIMPLE_BER 1" >>confdefs.h
8769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C99 macros are supported" >&5
8770 $as_echo_n "checking whether C99 macros are supported... " >&6; }
8771 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8772 /* end confdefs.h. */
8778 #define test_mac(...)
8787 if ac_fn_c_try_compile "$LINENO"; then :
8790 $as_echo "#define C99_MACROS 1" >>confdefs.h
8792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8793 $as_echo "yes" >&6; }
8797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8798 $as_echo "no" >&6; }
8799 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: C99 macros not supported. This may affect compiling." >&5
8800 $as_echo "$as_me: WARNING: C99 macros not supported. This may affect compiling." >&2;}
8803 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to disable DTLS-SRTP extension" >&5
8807 $as_echo_n "checking whether to disable DTLS-SRTP extension... " >&6; }
8808 # Check whether --enable-dtls-srtp-support was given.
8809 if test "${enable_dtls_srtp_support+set}" = set; then :
8810 enableval=$enable_dtls_srtp_support; ac_enable_srtp=$enableval
8813 if test x$ac_enable_srtp != xno; then
8814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8815 $as_echo "no" >&6; }
8817 $as_echo "#define ENABLE_DTLS_SRTP 1" >>confdefs.h
8821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8822 $as_echo "yes" >&6; }
8824 if test "$ac_enable_srtp" != "no"; then
8825 ENABLE_DTLS_SRTP_TRUE=
8826 ENABLE_DTLS_SRTP_FALSE='#'
8828 ENABLE_DTLS_SRTP_TRUE='#'
8829 ENABLE_DTLS_SRTP_FALSE=
8833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to disable ALPN extension" >&5
8834 $as_echo_n "checking whether to disable ALPN extension... " >&6; }
8835 # Check whether --enable-alpn-support was given.
8836 if test "${enable_alpn_support+set}" = set; then :
8837 enableval=$enable_alpn_support; ac_enable_alpn=$enableval
8842 if test x$ac_enable_alpn != xno; then
8843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8844 $as_echo "no" >&6; }
8846 $as_echo "#define ENABLE_ALPN 1" >>confdefs.h
8850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8851 $as_echo "yes" >&6; }
8853 if test "$ac_enable_alpn" != "no"; then
8855 ENABLE_ALPN_FALSE='#'
8857 ENABLE_ALPN_TRUE='#'
8862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to disable RSA-EXPORT support" >&5
8863 $as_echo_n "checking whether to disable RSA-EXPORT support... " >&6; }
8864 # Check whether --enable-rsa-export was given.
8865 if test "${enable_rsa_export+set}" = set; then :
8866 enableval=$enable_rsa_export; ac_enable_rsa_export=$enableval
8868 ac_enable_rsa_export=yes
8871 if test x$ac_enable_rsa_export != xno; then
8872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8873 $as_echo "no" >&6; }
8875 $as_echo "#define ENABLE_RSA_EXPORT 1" >>confdefs.h
8879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8880 $as_echo "yes" >&6; }
8882 if test "$ac_enable_rsa_export" != "no"; then
8883 ENABLE_RSA_EXPORT_TRUE=
8884 ENABLE_RSA_EXPORT_FALSE='#'
8886 ENABLE_RSA_EXPORT_TRUE='#'
8887 ENABLE_RSA_EXPORT_FALSE=
8891 ac_enable_heartbeat=yes
8892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to disable TLS heartbeat support" >&5
8893 $as_echo_n "checking whether to disable TLS heartbeat support... " >&6; }
8894 # Check whether --enable-heartbeat-support was given.
8895 if test "${enable_heartbeat_support+set}" = set; then :
8896 enableval=$enable_heartbeat_support; ac_enable_heartbeat=$enableval
8899 if test x$ac_enable_heartbeat != xno; then
8900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8901 $as_echo "yes" >&6; }
8903 $as_echo "#define ENABLE_HEARTBEAT 1" >>confdefs.h
8906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8907 $as_echo "no" >&6; }
8909 if test "$ac_enable_heartbeat" != "no"; then
8910 ENABLE_HEARTBEAT_TRUE=
8911 ENABLE_HEARTBEAT_FALSE='#'
8913 ENABLE_HEARTBEAT_TRUE='#'
8914 ENABLE_HEARTBEAT_FALSE=
8919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to disable SRP authentication support" >&5
8920 $as_echo_n "checking whether to disable SRP authentication support... " >&6; }
8921 # Check whether --enable-srp-authentication was given.
8922 if test "${enable_srp_authentication+set}" = set; then :
8923 enableval=$enable_srp_authentication; ac_enable_srp=$enableval
8926 if test x$ac_enable_srp != xno; then
8927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8928 $as_echo "no" >&6; }
8930 $as_echo "#define ENABLE_SRP 1" >>confdefs.h
8934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8935 $as_echo "yes" >&6; }
8937 if test "$ac_enable_srp" != "no"; then
8939 ENABLE_SRP_FALSE='#'
8947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to disable PSK authentication support" >&5
8948 $as_echo_n "checking whether to disable PSK authentication support... " >&6; }
8949 # Check whether --enable-psk-authentication was given.
8950 if test "${enable_psk_authentication+set}" = set; then :
8951 enableval=$enable_psk_authentication; ac_enable_psk=$enableval
8954 if test x$ac_enable_psk != xno; then
8955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8956 $as_echo "no" >&6; }
8958 $as_echo "#define ENABLE_PSK 1" >>confdefs.h
8962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8963 $as_echo "yes" >&6; }
8965 if test "$ac_enable_psk" != "no"; then
8967 ENABLE_PSK_FALSE='#'
8975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to disable anonymous authentication support" >&5
8976 $as_echo_n "checking whether to disable anonymous authentication support... " >&6; }
8977 # Check whether --enable-anon-authentication was given.
8978 if test "${enable_anon_authentication+set}" = set; then :
8979 enableval=$enable_anon_authentication; ac_enable_anon=$enableval
8982 if test x$ac_enable_anon != xno; then
8983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8984 $as_echo "no" >&6; }
8986 $as_echo "#define ENABLE_ANON 1" >>confdefs.h
8990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8991 $as_echo "yes" >&6; }
8993 if test "$ac_enable_anon" != "no"; then
8995 ENABLE_ANON_FALSE='#'
8997 ENABLE_ANON_TRUE='#'
9002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to disable DHE support" >&5
9003 $as_echo_n "checking whether to disable DHE support... " >&6; }
9004 # Check whether --enable-dhe was given.
9005 if test "${enable_dhe+set}" = set; then :
9006 enableval=$enable_dhe; ac_enable_dhe=$enableval
9011 if test x$ac_enable_dhe != xno; then
9012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9013 $as_echo "no" >&6; }
9015 $as_echo "#define ENABLE_DHE 1" >>confdefs.h
9019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9020 $as_echo "yes" >&6; }
9022 if test "$ac_enable_dhe" != "no"; then
9024 ENABLE_DHE_FALSE='#'
9031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to disable ECDHE support" >&5
9032 $as_echo_n "checking whether to disable ECDHE support... " >&6; }
9033 # Check whether --enable-ecdhe was given.
9034 if test "${enable_ecdhe+set}" = set; then :
9035 enableval=$enable_ecdhe; ac_enable_ecdhe=$enableval
9040 if test x$ac_enable_ecdhe != xno; then
9041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9042 $as_echo "no" >&6; }
9044 $as_echo "#define ENABLE_ECDHE 1" >>confdefs.h
9048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9049 $as_echo "yes" >&6; }
9051 if test "$ac_enable_ecdhe" != "no"; then
9053 ENABLE_ECDHE_FALSE='#'
9055 ENABLE_ECDHE_TRUE='#'
9060 ac_enable_openpgp=yes
9061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to disable OpenPGP Certificate authentication support" >&5
9062 $as_echo_n "checking whether to disable OpenPGP Certificate authentication support... " >&6; }
9063 # Check whether --enable-openpgp-authentication was given.
9064 if test "${enable_openpgp_authentication+set}" = set; then :
9065 enableval=$enable_openpgp_authentication; ac_enable_openpgp=$enableval
9068 if test x$ac_enable_openpgp = xno; then
9069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9070 $as_echo "yes" >&6; }
9074 $as_echo "#define ENABLE_OPENPGP 1" >>confdefs.h
9076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9077 $as_echo "no" >&6; }
9079 if test "$ac_enable_openpgp" = "yes"; then
9080 ENABLE_OPENPGP_TRUE=
9081 ENABLE_OPENPGP_FALSE='#'
9083 ENABLE_OPENPGP_TRUE='#'
9084 ENABLE_OPENPGP_FALSE=
9089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to add cryptodev support" >&5
9090 $as_echo_n "checking whether to add cryptodev support... " >&6; }
9091 # Check whether --enable-cryptodev was given.
9092 if test "${enable_cryptodev+set}" = set; then :
9093 enableval=$enable_cryptodev; enable_cryptodev=$enableval
9098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_cryptodev" >&5
9099 $as_echo "$enable_cryptodev" >&6; }
9101 if test "$enable_cryptodev" = "yes"; then
9103 $as_echo "#define ENABLE_CRYPTODEV 1" >>confdefs.h
9107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to disable OCSP support" >&5
9108 $as_echo_n "checking whether to disable OCSP support... " >&6; }
9109 # Check whether --enable-ocsp was given.
9110 if test "${enable_ocsp+set}" = set; then :
9111 enableval=$enable_ocsp; ac_enable_ocsp=$enableval
9116 if test x$ac_enable_ocsp != xno; then
9118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9119 $as_echo "no" >&6; }
9121 $as_echo "#define ENABLE_OCSP 1" >>confdefs.h
9125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9126 $as_echo "yes" >&6; }
9128 if test "$ac_enable_ocsp" != "no"; then
9130 ENABLE_OCSP_FALSE='#'
9132 ENABLE_OCSP_TRUE='#'
9138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to disable session tickets support" >&5
9139 $as_echo_n "checking whether to disable session tickets support... " >&6; }
9140 # Check whether --enable-session-tickets was given.
9141 if test "${enable_session_tickets+set}" = set; then :
9142 enableval=$enable_session_tickets; ac_enable_session_tickets=$enableval
9144 ac_enable_session_tickets=yes
9147 if test x$ac_enable_session_tickets != xno; then
9148 ac_enable_session_tickets=yes
9149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9150 $as_echo "no" >&6; }
9152 $as_echo "#define ENABLE_SESSION_TICKETS 1" >>confdefs.h
9156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9157 $as_echo "yes" >&6; }
9159 if test "$ac_enable_session_tickets" != "no"; then
9160 ENABLE_SESSION_TICKETS_TRUE=
9161 ENABLE_SESSION_TICKETS_FALSE='#'
9163 ENABLE_SESSION_TICKETS_TRUE='#'
9164 ENABLE_SESSION_TICKETS_FALSE=
9168 # For storing integers in pointers without warnings
9169 # http://developer.gnome.org/doc/API/2.0/glib/glib-Type-Conversion-Macros.html#desc
9170 # The cast to long int works around a bug in the HP C Compiler
9171 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
9172 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
9173 # This bug is HP SR number 8606223364.
9174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
9175 $as_echo_n "checking size of void *... " >&6; }
9176 if ${ac_cv_sizeof_void_p+:} false; then :
9177 $as_echo_n "(cached) " >&6
9179 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
9182 if test "$ac_cv_type_void_p" = yes; then
9183 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9184 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9185 as_fn_error 77 "cannot compute sizeof (void *)
9186 See \`config.log' for more details" "$LINENO" 5; }
9188 ac_cv_sizeof_void_p=0
9193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
9194 $as_echo "$ac_cv_sizeof_void_p" >&6; }
9198 cat >>confdefs.h <<_ACEOF
9199 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
9203 # The cast to long int works around a bug in the HP C Compiler
9204 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
9205 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
9206 # This bug is HP SR number 8606223364.
9207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
9208 $as_echo_n "checking size of long long... " >&6; }
9209 if ${ac_cv_sizeof_long_long+:} false; then :
9210 $as_echo_n "(cached) " >&6
9212 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then :
9215 if test "$ac_cv_type_long_long" = yes; then
9216 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9217 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9218 as_fn_error 77 "cannot compute sizeof (long long)
9219 See \`config.log' for more details" "$LINENO" 5; }
9221 ac_cv_sizeof_long_long=0
9226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
9227 $as_echo "$ac_cv_sizeof_long_long" >&6; }
9231 cat >>confdefs.h <<_ACEOF
9232 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
9236 # The cast to long int works around a bug in the HP C Compiler
9237 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
9238 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
9239 # This bug is HP SR number 8606223364.
9240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
9241 $as_echo_n "checking size of long... " >&6; }
9242 if ${ac_cv_sizeof_long+:} false; then :
9243 $as_echo_n "(cached) " >&6
9245 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
9248 if test "$ac_cv_type_long" = yes; then
9249 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9250 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9251 as_fn_error 77 "cannot compute sizeof (long)
9252 See \`config.log' for more details" "$LINENO" 5; }
9259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
9260 $as_echo "$ac_cv_sizeof_long" >&6; }
9264 cat >>confdefs.h <<_ACEOF
9265 #define SIZEOF_LONG $ac_cv_sizeof_long
9269 # The cast to long int works around a bug in the HP C Compiler
9270 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
9271 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
9272 # This bug is HP SR number 8606223364.
9273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
9274 $as_echo_n "checking size of int... " >&6; }
9275 if ${ac_cv_sizeof_int+:} false; then :
9276 $as_echo_n "(cached) " >&6
9278 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
9281 if test "$ac_cv_type_int" = yes; then
9282 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9283 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9284 as_fn_error 77 "cannot compute sizeof (int)
9285 See \`config.log' for more details" "$LINENO" 5; }
9292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
9293 $as_echo "$ac_cv_sizeof_int" >&6; }
9297 cat >>confdefs.h <<_ACEOF
9298 #define SIZEOF_INT $ac_cv_sizeof_int
9302 if test x$ac_cv_sizeof_void_p = x$ac_cv_sizeof_long;then
9304 $as_echo "#define GNUTLS_POINTER_TO_INT_CAST (long)" >>confdefs.h
9306 elif test x$ac_cv_sizeof_void_p = x$ac_cv_sizeof_long_long;then
9308 $as_echo "#define GNUTLS_POINTER_TO_INT_CAST (long long)" >>confdefs.h
9311 $as_echo "#define GNUTLS_POINTER_TO_INT_CAST /**/" >>confdefs.h
9324 GNULIB_EUIDACCESS=0;
9332 GNULIB_GETDOMAINNAME=0;
9333 GNULIB_GETDTABLESIZE=0;
9335 GNULIB_GETHOSTNAME=0;
9337 GNULIB_GETLOGIN_R=0;
9338 GNULIB_GETPAGESIZE=0;
9339 GNULIB_GETUSERSHELL=0;
9340 GNULIB_GROUP_MEMBER=0;
9352 GNULIB_READLINKAT=0;
9354 GNULIB_SETHOSTNAME=0;
9359 GNULIB_UNISTD_H_NONBLOCKING=0;
9360 GNULIB_UNISTD_H_SIGPIPE=0;
9375 HAVE_GETDTABLESIZE=1;
9380 HAVE_GROUP_MEMBER=1;
9396 HAVE_DECL_ENVIRON=1;
9398 HAVE_DECL_FDATASYNC=1;
9399 HAVE_DECL_GETDOMAINNAME=1;
9400 HAVE_DECL_GETLOGIN_R=1;
9401 HAVE_DECL_GETPAGESIZE=1;
9402 HAVE_DECL_GETUSERSHELL=1;
9403 HAVE_DECL_SETHOSTNAME=1;
9404 HAVE_DECL_TTYNAME_R=1;
9412 REPLACE_FTRUNCATE=0;
9414 REPLACE_GETDOMAINNAME=0;
9415 REPLACE_GETDTABLESIZE=0;
9416 REPLACE_GETLOGIN_R=0;
9417 REPLACE_GETGROUPS=0;
9418 REPLACE_GETPAGESIZE=0;
9428 REPLACE_READLINKAT=0;
9432 REPLACE_SYMLINKAT=0;
9433 REPLACE_TTYNAME_R=0;
9438 UNISTD_H_HAVE_WINSOCK2_H=0;
9439 UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS=0;
9446 for ac_header in $gl_header_list
9448 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9449 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9450 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
9451 cat >>confdefs.h <<_ACEOF
9452 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9474 if test $ac_cv_header_sys_socket_h != yes; then
9475 for ac_header in winsock2.h
9477 ac_fn_c_check_header_mongrel "$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
9478 if test "x$ac_cv_header_winsock2_h" = xyes; then :
9479 cat >>confdefs.h <<_ACEOF
9480 #define HAVE_WINSOCK2_H 1
9488 if test "$ac_cv_header_winsock2_h" = yes; then
9490 UNISTD_H_HAVE_WINSOCK2_H=1
9491 SYS_IOCTL_H_HAVE_WINSOCK2_H=1
9497 if test $HAVE_WINSOCK2_H = 1; then
9498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we need to call WSAStartup in winsock2.h and -lws2_32" >&5
9499 $as_echo_n "checking if we need to call WSAStartup in winsock2.h and -lws2_32... " >&6; }
9500 if ${gl_cv_func_wsastartup+:} false; then :
9501 $as_echo_n "(cached) " >&6
9504 gl_save_LIBS="$LIBS"
9505 LIBS="$LIBS -lws2_32"
9506 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9507 /* end confdefs.h. */
9509 #ifdef HAVE_WINSOCK2_H
9510 # include <winsock2.h>
9516 WORD wVersionRequested = MAKEWORD(1, 1);
9518 int err = WSAStartup(wVersionRequested, &wsaData);
9524 if ac_fn_c_try_link "$LINENO"; then :
9525 gl_cv_func_wsastartup=yes
9527 gl_cv_func_wsastartup=no
9529 rm -f core conftest.err conftest.$ac_objext \
9530 conftest$ac_exeext conftest.$ac_ext
9531 LIBS="$gl_save_LIBS"
9534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_wsastartup" >&5
9535 $as_echo "$gl_cv_func_wsastartup" >&6; }
9536 if test "$gl_cv_func_wsastartup" = "yes"; then
9538 $as_echo "#define WINDOWS_SOCKETS 1" >>confdefs.h
9540 LIBSOCKET='-lws2_32'
9543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing setsockopt" >&5
9544 $as_echo_n "checking for library containing setsockopt... " >&6; }
9545 if ${gl_cv_lib_socket+:} false; then :
9546 $as_echo_n "(cached) " >&6
9550 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9551 /* end confdefs.h. */
9565 if ac_fn_c_try_link "$LINENO"; then :
9568 gl_save_LIBS="$LIBS"
9569 LIBS="$gl_save_LIBS -lsocket"
9570 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9571 /* end confdefs.h. */
9585 if ac_fn_c_try_link "$LINENO"; then :
9586 gl_cv_lib_socket="-lsocket"
9588 rm -f core conftest.err conftest.$ac_objext \
9589 conftest$ac_exeext conftest.$ac_ext
9590 if test -z "$gl_cv_lib_socket"; then
9591 LIBS="$gl_save_LIBS -lnetwork"
9592 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9593 /* end confdefs.h. */
9607 if ac_fn_c_try_link "$LINENO"; then :
9608 gl_cv_lib_socket="-lnetwork"
9610 rm -f core conftest.err conftest.$ac_objext \
9611 conftest$ac_exeext conftest.$ac_ext
9612 if test -z "$gl_cv_lib_socket"; then
9613 LIBS="$gl_save_LIBS -lnet"
9614 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9615 /* end confdefs.h. */
9629 if ac_fn_c_try_link "$LINENO"; then :
9630 gl_cv_lib_socket="-lnet"
9632 rm -f core conftest.err conftest.$ac_objext \
9633 conftest$ac_exeext conftest.$ac_ext
9636 LIBS="$gl_save_LIBS"
9639 rm -f core conftest.err conftest.$ac_objext \
9640 conftest$ac_exeext conftest.$ac_ext
9641 if test -z "$gl_cv_lib_socket"; then
9642 gl_cv_lib_socket="none needed"
9646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_lib_socket" >&5
9647 $as_echo "$gl_cv_lib_socket" >&6; }
9648 if test "$gl_cv_lib_socket" != "none needed"; then
9649 LIBSOCKET="$gl_cv_lib_socket"
9655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build OpenSSL compatibility layer" >&5
9656 $as_echo_n "checking whether to build OpenSSL compatibility layer... " >&6; }
9657 # Check whether --enable-openssl-compatibility was given.
9658 if test "${enable_openssl_compatibility+set}" = set; then :
9659 enableval=$enable_openssl_compatibility; enable_openssl=$enableval
9664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_openssl" >&5
9665 $as_echo "$enable_openssl" >&6; }
9666 if test "$enable_openssl" = "yes"; then
9667 ENABLE_OPENSSL_TRUE=
9668 ENABLE_OPENSSL_FALSE='#'
9670 ENABLE_OPENSSL_TRUE='#'
9671 ENABLE_OPENSSL_FALSE=
9675 # We link to ../lib's gnulib, which needs -lws2_32 via LIBSOCKET in Makefile.am.
9685 # Check whether --enable-doc was given.
9686 if test "${enable_doc+set}" = set; then :
9687 enableval=$enable_doc; enable_doc=$enableval
9692 if test "$enable_doc" != "no"; then
9694 ENABLE_DOC_FALSE='#'
9701 # Check whether --enable-tests was given.
9702 if test "${enable_tests+set}" = set; then :
9703 enableval=$enable_tests; enable_tests=$enableval
9708 if test "$enable_tests" != "no"; then
9710 ENABLE_TESTS_FALSE='#'
9712 ENABLE_TESTS_TRUE='#'
9719 # Extract the first word of "gtkdoc-check", so it can be a program name with args.
9720 set dummy gtkdoc-check; ac_word=$2
9721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9722 $as_echo_n "checking for $ac_word... " >&6; }
9723 if ${ac_cv_path_GTKDOC_CHECK+:} false; then :
9724 $as_echo_n "(cached) " >&6
9726 case $GTKDOC_CHECK in
9728 ac_cv_path_GTKDOC_CHECK="$GTKDOC_CHECK" # Let the user override the test with a path.
9731 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9735 test -z "$as_dir" && as_dir=.
9736 for ac_exec_ext in '' $ac_executable_extensions; do
9737 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9738 ac_cv_path_GTKDOC_CHECK="$as_dir/$ac_word$ac_exec_ext"
9739 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9749 GTKDOC_CHECK=$ac_cv_path_GTKDOC_CHECK
9750 if test -n "$GTKDOC_CHECK"; then
9751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTKDOC_CHECK" >&5
9752 $as_echo "$GTKDOC_CHECK" >&6; }
9754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9755 $as_echo "no" >&6; }
9759 for ac_prog in gtkdoc-rebase
9761 # Extract the first word of "$ac_prog", so it can be a program name with args.
9762 set dummy $ac_prog; ac_word=$2
9763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9764 $as_echo_n "checking for $ac_word... " >&6; }
9765 if ${ac_cv_path_GTKDOC_REBASE+:} false; then :
9766 $as_echo_n "(cached) " >&6
9768 case $GTKDOC_REBASE in
9770 ac_cv_path_GTKDOC_REBASE="$GTKDOC_REBASE" # Let the user override the test with a path.
9773 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9777 test -z "$as_dir" && as_dir=.
9778 for ac_exec_ext in '' $ac_executable_extensions; do
9779 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9780 ac_cv_path_GTKDOC_REBASE="$as_dir/$ac_word$ac_exec_ext"
9781 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9791 GTKDOC_REBASE=$ac_cv_path_GTKDOC_REBASE
9792 if test -n "$GTKDOC_REBASE"; then
9793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTKDOC_REBASE" >&5
9794 $as_echo "$GTKDOC_REBASE" >&6; }
9796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9797 $as_echo "no" >&6; }
9801 test -n "$GTKDOC_REBASE" && break
9803 test -n "$GTKDOC_REBASE" || GTKDOC_REBASE="true"
9805 # Extract the first word of "gtkdoc-mkpdf", so it can be a program name with args.
9806 set dummy gtkdoc-mkpdf; ac_word=$2
9807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9808 $as_echo_n "checking for $ac_word... " >&6; }
9809 if ${ac_cv_path_GTKDOC_MKPDF+:} false; then :
9810 $as_echo_n "(cached) " >&6
9812 case $GTKDOC_MKPDF in
9814 ac_cv_path_GTKDOC_MKPDF="$GTKDOC_MKPDF" # Let the user override the test with a path.
9817 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9821 test -z "$as_dir" && as_dir=.
9822 for ac_exec_ext in '' $ac_executable_extensions; do
9823 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9824 ac_cv_path_GTKDOC_MKPDF="$as_dir/$ac_word$ac_exec_ext"
9825 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9835 GTKDOC_MKPDF=$ac_cv_path_GTKDOC_MKPDF
9836 if test -n "$GTKDOC_MKPDF"; then
9837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTKDOC_MKPDF" >&5
9838 $as_echo "$GTKDOC_MKPDF" >&6; }
9840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9841 $as_echo "no" >&6; }
9847 # Check whether --with-html-dir was given.
9848 if test "${with_html_dir+set}" = set; then :
9849 withval=$with_html_dir;
9851 with_html_dir='${datadir}/gtk-doc/html'
9854 HTML_DIR="$with_html_dir"
9857 # Check whether --enable-gtk-doc was given.
9858 if test "${enable_gtk_doc+set}" = set; then :
9859 enableval=$enable_gtk_doc;
9865 if test x$enable_gtk_doc = xyes; then
9866 if test -n "$PKG_CONFIG" && \
9867 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gtk-doc >= 1.1\""; } >&5
9868 ($PKG_CONFIG --exists --print-errors "gtk-doc >= 1.1") 2>&5
9870 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9871 test $ac_status = 0; }; then
9874 as_fn_error $? "You need to have gtk-doc >= 1.1 installed to build $PACKAGE_NAME" "$LINENO" 5
9878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build gtk-doc documentation" >&5
9879 $as_echo_n "checking whether to build gtk-doc documentation... " >&6; }
9880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_gtk_doc" >&5
9881 $as_echo "$enable_gtk_doc" >&6; }
9883 # Check whether --enable-gtk-doc-html was given.
9884 if test "${enable_gtk_doc_html+set}" = set; then :
9885 enableval=$enable_gtk_doc_html;
9887 enable_gtk_doc_html=yes
9890 # Check whether --enable-gtk-doc-pdf was given.
9891 if test "${enable_gtk_doc_pdf+set}" = set; then :
9892 enableval=$enable_gtk_doc_pdf;
9894 enable_gtk_doc_pdf=no
9898 if test -z "$GTKDOC_MKPDF"; then
9899 enable_gtk_doc_pdf=no
9903 if test x$enable_gtk_doc = xyes; then
9904 ENABLE_GTK_DOC_TRUE=
9905 ENABLE_GTK_DOC_FALSE='#'
9907 ENABLE_GTK_DOC_TRUE='#'
9908 ENABLE_GTK_DOC_FALSE=
9911 if test x$enable_gtk_doc_html = xyes; then
9912 GTK_DOC_BUILD_HTML_TRUE=
9913 GTK_DOC_BUILD_HTML_FALSE='#'
9915 GTK_DOC_BUILD_HTML_TRUE='#'
9916 GTK_DOC_BUILD_HTML_FALSE=
9919 if test x$enable_gtk_doc_pdf = xyes; then
9920 GTK_DOC_BUILD_PDF_TRUE=
9921 GTK_DOC_BUILD_PDF_FALSE='#'
9923 GTK_DOC_BUILD_PDF_TRUE='#'
9924 GTK_DOC_BUILD_PDF_FALSE=
9927 if test -n "$LIBTOOL"; then
9928 GTK_DOC_USE_LIBTOOL_TRUE=
9929 GTK_DOC_USE_LIBTOOL_FALSE='#'
9931 GTK_DOC_USE_LIBTOOL_TRUE='#'
9932 GTK_DOC_USE_LIBTOOL_FALSE=
9935 if test -n "$GTKDOC_REBASE"; then
9936 GTK_DOC_USE_REBASE_TRUE=
9937 GTK_DOC_USE_REBASE_FALSE='#'
9939 GTK_DOC_USE_REBASE_TRUE='#'
9940 GTK_DOC_USE_REBASE_FALSE=
9947 [\\/$]* | ?:[\\/]*) ;;
9948 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
9952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
9953 $as_echo_n "checking whether NLS is requested... " >&6; }
9954 # Check whether --enable-nls was given.
9955 if test "${enable_nls+set}" = set; then :
9956 enableval=$enable_nls; USE_NLS=$enableval
9961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
9962 $as_echo "$USE_NLS" >&6; }
9967 GETTEXT_MACRO_VERSION=0.18
9972 # Prepare PATH_SEPARATOR.
9973 # The user is always right.
9974 if test "${PATH_SEPARATOR+set}" != set; then
9975 echo "#! /bin/sh" >conf$$.sh
9976 echo "exit 0" >>conf$$.sh
9978 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
9986 # Find out how to test for executable files. Don't use a zero-byte file,
9987 # as systems may use methods other than mode bits to determine executability.
9988 cat >conf$$.file <<_ASEOF
9992 chmod +x conf$$.file
9993 if test -x conf$$.file >/dev/null 2>&1; then
9994 ac_executable_p="test -x"
9996 ac_executable_p="test -f"
10000 # Extract the first word of "msgfmt", so it can be a program name with args.
10001 set dummy msgfmt; ac_word=$2
10002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10003 $as_echo_n "checking for $ac_word... " >&6; }
10004 if ${ac_cv_path_MSGFMT+:} false; then :
10005 $as_echo_n "(cached) " >&6
10009 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
10012 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
10013 for ac_dir in $PATH; do
10015 test -z "$ac_dir" && ac_dir=.
10016 for ac_exec_ext in '' $ac_executable_extensions; do
10017 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
10018 echo "$as_me: trying $ac_dir/$ac_word..." >&5
10019 if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
10020 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
10021 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
10028 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
10032 MSGFMT="$ac_cv_path_MSGFMT"
10033 if test "$MSGFMT" != ":"; then
10034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
10035 $as_echo "$MSGFMT" >&6; }
10037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10038 $as_echo "no" >&6; }
10041 # Extract the first word of "gmsgfmt", so it can be a program name with args.
10042 set dummy gmsgfmt; ac_word=$2
10043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10044 $as_echo_n "checking for $ac_word... " >&6; }
10045 if ${ac_cv_path_GMSGFMT+:} false; then :
10046 $as_echo_n "(cached) " >&6
10050 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
10053 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10054 for as_dir in $PATH
10057 test -z "$as_dir" && as_dir=.
10058 for ac_exec_ext in '' $ac_executable_extensions; do
10059 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10060 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
10061 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10068 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
10072 GMSGFMT=$ac_cv_path_GMSGFMT
10073 if test -n "$GMSGFMT"; then
10074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
10075 $as_echo "$GMSGFMT" >&6; }
10077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10078 $as_echo "no" >&6; }
10083 case `$MSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
10084 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) MSGFMT_015=: ;;
10085 *) MSGFMT_015=$MSGFMT ;;
10088 case `$GMSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
10089 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) GMSGFMT_015=: ;;
10090 *) GMSGFMT_015=$GMSGFMT ;;
10095 # Prepare PATH_SEPARATOR.
10096 # The user is always right.
10097 if test "${PATH_SEPARATOR+set}" != set; then
10098 echo "#! /bin/sh" >conf$$.sh
10099 echo "exit 0" >>conf$$.sh
10101 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
10109 # Find out how to test for executable files. Don't use a zero-byte file,
10110 # as systems may use methods other than mode bits to determine executability.
10111 cat >conf$$.file <<_ASEOF
10115 chmod +x conf$$.file
10116 if test -x conf$$.file >/dev/null 2>&1; then
10117 ac_executable_p="test -x"
10119 ac_executable_p="test -f"
10123 # Extract the first word of "xgettext", so it can be a program name with args.
10124 set dummy xgettext; ac_word=$2
10125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10126 $as_echo_n "checking for $ac_word... " >&6; }
10127 if ${ac_cv_path_XGETTEXT+:} false; then :
10128 $as_echo_n "(cached) " >&6
10130 case "$XGETTEXT" in
10132 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
10135 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
10136 for ac_dir in $PATH; do
10138 test -z "$ac_dir" && ac_dir=.
10139 for ac_exec_ext in '' $ac_executable_extensions; do
10140 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
10141 echo "$as_me: trying $ac_dir/$ac_word..." >&5
10142 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
10143 (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
10144 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
10151 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
10155 XGETTEXT="$ac_cv_path_XGETTEXT"
10156 if test "$XGETTEXT" != ":"; then
10157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
10158 $as_echo "$XGETTEXT" >&6; }
10160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10161 $as_echo "no" >&6; }
10166 case `$XGETTEXT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
10167 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) XGETTEXT_015=: ;;
10168 *) XGETTEXT_015=$XGETTEXT ;;
10173 # Prepare PATH_SEPARATOR.
10174 # The user is always right.
10175 if test "${PATH_SEPARATOR+set}" != set; then
10176 echo "#! /bin/sh" >conf$$.sh
10177 echo "exit 0" >>conf$$.sh
10179 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
10187 # Find out how to test for executable files. Don't use a zero-byte file,
10188 # as systems may use methods other than mode bits to determine executability.
10189 cat >conf$$.file <<_ASEOF
10193 chmod +x conf$$.file
10194 if test -x conf$$.file >/dev/null 2>&1; then
10195 ac_executable_p="test -x"
10197 ac_executable_p="test -f"
10201 # Extract the first word of "msgmerge", so it can be a program name with args.
10202 set dummy msgmerge; ac_word=$2
10203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10204 $as_echo_n "checking for $ac_word... " >&6; }
10205 if ${ac_cv_path_MSGMERGE+:} false; then :
10206 $as_echo_n "(cached) " >&6
10208 case "$MSGMERGE" in
10210 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
10213 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
10214 for ac_dir in $PATH; do
10216 test -z "$ac_dir" && ac_dir=.
10217 for ac_exec_ext in '' $ac_executable_extensions; do
10218 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
10219 echo "$as_me: trying $ac_dir/$ac_word..." >&5
10220 if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
10221 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
10228 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
10232 MSGMERGE="$ac_cv_path_MSGMERGE"
10233 if test "$MSGMERGE" != ":"; then
10234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
10235 $as_echo "$MSGMERGE" >&6; }
10237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10238 $as_echo "no" >&6; }
10242 test -n "$localedir" || localedir='${datadir}/locale'
10245 test -n "${XGETTEXT_EXTRA_OPTIONS+set}" || XGETTEXT_EXTRA_OPTIONS=
10248 ac_config_commands="$ac_config_commands po-directories"
10252 if test "X$prefix" = "XNONE"; then
10253 acl_final_prefix="$ac_default_prefix"
10255 acl_final_prefix="$prefix"
10257 if test "X$exec_prefix" = "XNONE"; then
10258 acl_final_exec_prefix='${prefix}'
10260 acl_final_exec_prefix="$exec_prefix"
10262 acl_save_prefix="$prefix"
10263 prefix="$acl_final_prefix"
10264 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
10265 prefix="$acl_save_prefix"
10268 # Check whether --with-gnu-ld was given.
10269 if test "${with_gnu_ld+set}" = set; then :
10270 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
10275 # Prepare PATH_SEPARATOR.
10276 # The user is always right.
10277 if test "${PATH_SEPARATOR+set}" != set; then
10278 echo "#! /bin/sh" >conf$$.sh
10279 echo "exit 0" >>conf$$.sh
10281 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
10289 if test "$GCC" = yes; then
10290 # Check if gcc -print-prog-name=ld gives a path.
10291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
10292 $as_echo_n "checking for ld used by GCC... " >&6; }
10295 # gcc leaves a trailing carriage return which upsets mingw
10296 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10298 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10301 # Accept absolute paths.
10302 [\\/]* | [A-Za-z]:[\\/]*)
10303 re_direlt='/[^/][^/]*/\.\./'
10304 # Canonicalize the path of ld
10305 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
10306 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10307 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
10309 test -z "$LD" && LD="$ac_prog"
10312 # If it fails, then pretend we aren't using GCC.
10316 # If it is relative, then search for the first ld in PATH.
10317 with_gnu_ld=unknown
10320 elif test "$with_gnu_ld" = yes; then
10321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
10322 $as_echo_n "checking for GNU ld... " >&6; }
10324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
10325 $as_echo_n "checking for non-GNU ld... " >&6; }
10327 if ${acl_cv_path_LD+:} false; then :
10328 $as_echo_n "(cached) " >&6
10330 if test -z "$LD"; then
10331 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
10332 for ac_dir in $PATH; do
10333 test -z "$ac_dir" && ac_dir=.
10334 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10335 acl_cv_path_LD="$ac_dir/$ac_prog"
10336 # Check to see if the program is GNU ld. I'd rather use --version,
10337 # but apparently some GNU ld's only accept -v.
10338 # Break only if it was the GNU/non-GNU ld that we prefer.
10339 case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
10340 *GNU* | *'with BFD'*)
10341 test "$with_gnu_ld" != no && break ;;
10343 test "$with_gnu_ld" != yes && break ;;
10349 acl_cv_path_LD="$LD" # Let the user override the test with a path.
10353 LD="$acl_cv_path_LD"
10354 if test -n "$LD"; then
10355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
10356 $as_echo "$LD" >&6; }
10358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10359 $as_echo "no" >&6; }
10361 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
10362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
10363 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
10364 if ${acl_cv_prog_gnu_ld+:} false; then :
10365 $as_echo_n "(cached) " >&6
10367 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
10368 case `$LD -v 2>&1 </dev/null` in
10369 *GNU* | *'with BFD'*)
10370 acl_cv_prog_gnu_ld=yes ;;
10372 acl_cv_prog_gnu_ld=no ;;
10375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
10376 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
10377 with_gnu_ld=$acl_cv_prog_gnu_ld
10382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
10383 $as_echo_n "checking for shared library run path origin... " >&6; }
10384 if ${acl_cv_rpath+:} false; then :
10385 $as_echo_n "(cached) " >&6
10388 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
10389 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
10391 rm -f ./conftest.sh
10395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
10396 $as_echo "$acl_cv_rpath" >&6; }
10398 acl_libext="$acl_cv_libext"
10399 acl_shlibext="$acl_cv_shlibext"
10400 acl_libname_spec="$acl_cv_libname_spec"
10401 acl_library_names_spec="$acl_cv_library_names_spec"
10402 acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
10403 acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
10404 acl_hardcode_direct="$acl_cv_hardcode_direct"
10405 acl_hardcode_minus_L="$acl_cv_hardcode_minus_L"
10406 # Check whether --enable-rpath was given.
10407 if test "${enable_rpath+set}" = set; then :
10408 enableval=$enable_rpath; :
10420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit host" >&5
10421 $as_echo_n "checking for 64-bit host... " >&6; }
10422 if ${gl_cv_solaris_64bit+:} false; then :
10423 $as_echo_n "(cached) " >&6
10425 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10426 /* end confdefs.h. */
10433 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10434 $EGREP "sixtyfour bits" >/dev/null 2>&1; then :
10435 gl_cv_solaris_64bit=yes
10437 gl_cv_solaris_64bit=no
10443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_solaris_64bit" >&5
10444 $as_echo "$gl_cv_solaris_64bit" >&6; }
10445 if test $gl_cv_solaris_64bit = yes; then
10446 acl_libdirstem=lib/64
10447 case "$host_cpu" in
10448 sparc*) acl_libdirstem2=lib/sparcv9 ;;
10449 i*86 | x86_64) acl_libdirstem2=lib/amd64 ;;
10454 searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
10455 if test -n "$searchpath"; then
10456 acl_save_IFS="${IFS= }"; IFS=":"
10457 for searchdir in $searchpath; do
10458 if test -d "$searchdir"; then
10459 case "$searchdir" in
10460 */lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
10462 # Better ignore directories of this form. They are misleading.
10464 *) searchdir=`cd "$searchdir" && pwd`
10465 case "$searchdir" in
10466 */lib64 ) acl_libdirstem=lib64 ;;
10471 IFS="$acl_save_IFS"
10475 test -n "$acl_libdirstem2" || acl_libdirstem2="$acl_libdirstem"
10490 acl_save_prefix="$prefix"
10491 prefix="$acl_final_prefix"
10492 acl_save_exec_prefix="$exec_prefix"
10493 exec_prefix="$acl_final_exec_prefix"
10495 eval additional_includedir=\"$includedir\"
10496 eval additional_libdir=\"$libdir\"
10498 exec_prefix="$acl_save_exec_prefix"
10499 prefix="$acl_save_prefix"
10502 # Check whether --with-libiconv-prefix was given.
10503 if test "${with_libiconv_prefix+set}" = set; then :
10504 withval=$with_libiconv_prefix;
10505 if test "X$withval" = "Xno"; then
10508 if test "X$withval" = "X"; then
10510 acl_save_prefix="$prefix"
10511 prefix="$acl_final_prefix"
10512 acl_save_exec_prefix="$exec_prefix"
10513 exec_prefix="$acl_final_exec_prefix"
10515 eval additional_includedir=\"$includedir\"
10516 eval additional_libdir=\"$libdir\"
10518 exec_prefix="$acl_save_exec_prefix"
10519 prefix="$acl_save_prefix"
10522 additional_includedir="$withval/include"
10523 additional_libdir="$withval/$acl_libdirstem"
10524 if test "$acl_libdirstem2" != "$acl_libdirstem" \
10525 && ! test -d "$withval/$acl_libdirstem"; then
10526 additional_libdir="$withval/$acl_libdirstem2"
10540 names_already_handled=
10541 names_next_round='iconv '
10542 while test -n "$names_next_round"; do
10543 names_this_round="$names_next_round"
10545 for name in $names_this_round; do
10547 for n in $names_already_handled; do
10548 if test "$n" = "$name"; then
10549 already_handled=yes
10553 if test -z "$already_handled"; then
10554 names_already_handled="$names_already_handled $name"
10555 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
10556 eval value=\"\$HAVE_LIB$uppername\"
10557 if test -n "$value"; then
10558 if test "$value" = yes; then
10559 eval value=\"\$LIB$uppername\"
10560 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
10561 eval value=\"\$LTLIB$uppername\"
10562 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
10571 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
10572 if test -n "$acl_shlibext"; then
10573 shrext=".$acl_shlibext" # typically: shrext=.so
10577 if test $use_additional = yes; then
10578 dir="$additional_libdir"
10579 if test -n "$acl_shlibext"; then
10580 if test -f "$dir/$libname$shrext"; then
10582 found_so="$dir/$libname$shrext"
10584 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
10585 ver=`(cd "$dir" && \
10586 for f in "$libname$shrext".*; do echo "$f"; done \
10587 | sed -e "s,^$libname$shrext\\\\.,," \
10588 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
10589 | sed 1q ) 2>/dev/null`
10590 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
10592 found_so="$dir/$libname$shrext.$ver"
10595 eval library_names=\"$acl_library_names_spec\"
10596 for f in $library_names; do
10597 if test -f "$dir/$f"; then
10606 if test "X$found_dir" = "X"; then
10607 if test -f "$dir/$libname.$acl_libext"; then
10609 found_a="$dir/$libname.$acl_libext"
10612 if test "X$found_dir" != "X"; then
10613 if test -f "$dir/$libname.la"; then
10614 found_la="$dir/$libname.la"
10618 if test "X$found_dir" = "X"; then
10619 for x in $LDFLAGS $LTLIBICONV; do
10621 acl_save_prefix="$prefix"
10622 prefix="$acl_final_prefix"
10623 acl_save_exec_prefix="$exec_prefix"
10624 exec_prefix="$acl_final_exec_prefix"
10626 exec_prefix="$acl_save_exec_prefix"
10627 prefix="$acl_save_prefix"
10631 dir=`echo "X$x" | sed -e 's/^X-L//'`
10632 if test -n "$acl_shlibext"; then
10633 if test -f "$dir/$libname$shrext"; then
10635 found_so="$dir/$libname$shrext"
10637 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
10638 ver=`(cd "$dir" && \
10639 for f in "$libname$shrext".*; do echo "$f"; done \
10640 | sed -e "s,^$libname$shrext\\\\.,," \
10641 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
10642 | sed 1q ) 2>/dev/null`
10643 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
10645 found_so="$dir/$libname$shrext.$ver"
10648 eval library_names=\"$acl_library_names_spec\"
10649 for f in $library_names; do
10650 if test -f "$dir/$f"; then
10659 if test "X$found_dir" = "X"; then
10660 if test -f "$dir/$libname.$acl_libext"; then
10662 found_a="$dir/$libname.$acl_libext"
10665 if test "X$found_dir" != "X"; then
10666 if test -f "$dir/$libname.la"; then
10667 found_la="$dir/$libname.la"
10672 if test "X$found_dir" != "X"; then
10677 if test "X$found_dir" != "X"; then
10678 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
10679 if test "X$found_so" != "X"; then
10680 if test "$enable_rpath" = no \
10681 || test "X$found_dir" = "X/usr/$acl_libdirstem" \
10682 || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
10683 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10686 for x in $ltrpathdirs; do
10687 if test "X$x" = "X$found_dir"; then
10692 if test -z "$haveit"; then
10693 ltrpathdirs="$ltrpathdirs $found_dir"
10695 if test "$acl_hardcode_direct" = yes; then
10696 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10698 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
10699 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10701 for x in $rpathdirs; do
10702 if test "X$x" = "X$found_dir"; then
10707 if test -z "$haveit"; then
10708 rpathdirs="$rpathdirs $found_dir"
10712 for x in $LDFLAGS $LIBICONV; do
10714 acl_save_prefix="$prefix"
10715 prefix="$acl_final_prefix"
10716 acl_save_exec_prefix="$exec_prefix"
10717 exec_prefix="$acl_final_exec_prefix"
10719 exec_prefix="$acl_save_exec_prefix"
10720 prefix="$acl_save_prefix"
10722 if test "X$x" = "X-L$found_dir"; then
10727 if test -z "$haveit"; then
10728 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
10730 if test "$acl_hardcode_minus_L" != no; then
10731 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10733 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
10739 if test "X$found_a" != "X"; then
10740 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
10742 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
10745 additional_includedir=
10746 case "$found_dir" in
10747 */$acl_libdirstem | */$acl_libdirstem/)
10748 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
10749 if test "$name" = 'iconv'; then
10750 LIBICONV_PREFIX="$basedir"
10752 additional_includedir="$basedir/include"
10754 */$acl_libdirstem2 | */$acl_libdirstem2/)
10755 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
10756 if test "$name" = 'iconv'; then
10757 LIBICONV_PREFIX="$basedir"
10759 additional_includedir="$basedir/include"
10762 if test "X$additional_includedir" != "X"; then
10763 if test "X$additional_includedir" != "X/usr/include"; then
10765 if test "X$additional_includedir" = "X/usr/local/include"; then
10766 if test -n "$GCC"; then
10768 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
10772 if test -z "$haveit"; then
10773 for x in $CPPFLAGS $INCICONV; do
10775 acl_save_prefix="$prefix"
10776 prefix="$acl_final_prefix"
10777 acl_save_exec_prefix="$exec_prefix"
10778 exec_prefix="$acl_final_exec_prefix"
10780 exec_prefix="$acl_save_exec_prefix"
10781 prefix="$acl_save_prefix"
10783 if test "X$x" = "X-I$additional_includedir"; then
10788 if test -z "$haveit"; then
10789 if test -d "$additional_includedir"; then
10790 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
10796 if test -n "$found_la"; then
10797 save_libdir="$libdir"
10798 case "$found_la" in
10799 */* | *\\*) . "$found_la" ;;
10800 *) . "./$found_la" ;;
10802 libdir="$save_libdir"
10803 for dep in $dependency_libs; do
10806 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
10807 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
10808 && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
10810 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
10811 || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
10812 if test -n "$GCC"; then
10814 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
10818 if test -z "$haveit"; then
10820 for x in $LDFLAGS $LIBICONV; do
10822 acl_save_prefix="$prefix"
10823 prefix="$acl_final_prefix"
10824 acl_save_exec_prefix="$exec_prefix"
10825 exec_prefix="$acl_final_exec_prefix"
10827 exec_prefix="$acl_save_exec_prefix"
10828 prefix="$acl_save_prefix"
10830 if test "X$x" = "X-L$additional_libdir"; then
10835 if test -z "$haveit"; then
10836 if test -d "$additional_libdir"; then
10837 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
10841 for x in $LDFLAGS $LTLIBICONV; do
10843 acl_save_prefix="$prefix"
10844 prefix="$acl_final_prefix"
10845 acl_save_exec_prefix="$exec_prefix"
10846 exec_prefix="$acl_final_exec_prefix"
10848 exec_prefix="$acl_save_exec_prefix"
10849 prefix="$acl_save_prefix"
10851 if test "X$x" = "X-L$additional_libdir"; then
10856 if test -z "$haveit"; then
10857 if test -d "$additional_libdir"; then
10858 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
10865 dir=`echo "X$dep" | sed -e 's/^X-R//'`
10866 if test "$enable_rpath" != no; then
10868 for x in $rpathdirs; do
10869 if test "X$x" = "X$dir"; then
10874 if test -z "$haveit"; then
10875 rpathdirs="$rpathdirs $dir"
10878 for x in $ltrpathdirs; do
10879 if test "X$x" = "X$dir"; then
10884 if test -z "$haveit"; then
10885 ltrpathdirs="$ltrpathdirs $dir"
10890 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
10893 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
10896 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
10897 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
10903 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
10904 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
10910 if test "X$rpathdirs" != "X"; then
10911 if test -n "$acl_hardcode_libdir_separator"; then
10913 for found_dir in $rpathdirs; do
10914 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
10916 acl_save_libdir="$libdir"
10918 eval flag=\"$acl_hardcode_libdir_flag_spec\"
10919 libdir="$acl_save_libdir"
10920 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
10922 for found_dir in $rpathdirs; do
10923 acl_save_libdir="$libdir"
10924 libdir="$found_dir"
10925 eval flag=\"$acl_hardcode_libdir_flag_spec\"
10926 libdir="$acl_save_libdir"
10927 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
10931 if test "X$ltrpathdirs" != "X"; then
10932 for found_dir in $ltrpathdirs; do
10933 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
10967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
10968 $as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
10969 if ${gt_cv_func_CFPreferencesCopyAppValue+:} false; then :
10970 $as_echo_n "(cached) " >&6
10972 gt_save_LIBS="$LIBS"
10973 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
10974 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10975 /* end confdefs.h. */
10976 #include <CoreFoundation/CFPreferences.h>
10980 CFPreferencesCopyAppValue(NULL, NULL)
10985 if ac_fn_c_try_link "$LINENO"; then :
10986 gt_cv_func_CFPreferencesCopyAppValue=yes
10988 gt_cv_func_CFPreferencesCopyAppValue=no
10990 rm -f core conftest.err conftest.$ac_objext \
10991 conftest$ac_exeext conftest.$ac_ext
10992 LIBS="$gt_save_LIBS"
10994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
10995 $as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
10996 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
10998 $as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
11001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5
11002 $as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
11003 if ${gt_cv_func_CFLocaleCopyCurrent+:} false; then :
11004 $as_echo_n "(cached) " >&6
11006 gt_save_LIBS="$LIBS"
11007 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
11008 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11009 /* end confdefs.h. */
11010 #include <CoreFoundation/CFLocale.h>
11014 CFLocaleCopyCurrent();
11019 if ac_fn_c_try_link "$LINENO"; then :
11020 gt_cv_func_CFLocaleCopyCurrent=yes
11022 gt_cv_func_CFLocaleCopyCurrent=no
11024 rm -f core conftest.err conftest.$ac_objext \
11025 conftest$ac_exeext conftest.$ac_ext
11026 LIBS="$gt_save_LIBS"
11028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
11029 $as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
11030 if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
11032 $as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h
11036 if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
11037 INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
11049 case " $gt_needs " in
11050 *" need-formatstring-macros "*) gt_api_version=3 ;;
11051 *" need-ngettext "*) gt_api_version=2 ;;
11052 *) gt_api_version=1 ;;
11054 gt_func_gnugettext_libc="gt_cv_func_gnugettext${gt_api_version}_libc"
11055 gt_func_gnugettext_libintl="gt_cv_func_gnugettext${gt_api_version}_libintl"
11057 if test "$USE_NLS" = "yes"; then
11058 gt_use_preinstalled_gnugettext=no
11061 if test $gt_api_version -ge 3; then
11062 gt_revision_test_code='
11063 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
11064 #define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1)
11066 typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1];
11069 gt_revision_test_code=
11071 if test $gt_api_version -ge 2; then
11072 gt_expression_test_code=' + * ngettext ("", "", 0)'
11074 gt_expression_test_code=
11077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
11078 $as_echo_n "checking for GNU gettext in libc... " >&6; }
11079 if eval \${$gt_func_gnugettext_libc+:} false; then :
11080 $as_echo_n "(cached) " >&6
11082 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11083 /* end confdefs.h. */
11084 #include <libintl.h>
11085 $gt_revision_test_code
11086 extern int _nl_msg_cat_cntr;
11087 extern int *_nl_domain_bindings;
11091 bindtextdomain ("", "");
11092 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_domain_bindings
11097 if ac_fn_c_try_link "$LINENO"; then :
11098 eval "$gt_func_gnugettext_libc=yes"
11100 eval "$gt_func_gnugettext_libc=no"
11102 rm -f core conftest.err conftest.$ac_objext \
11103 conftest$ac_exeext conftest.$ac_ext
11105 eval ac_res=\$$gt_func_gnugettext_libc
11106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
11107 $as_echo "$ac_res" >&6; }
11109 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then
11115 am_save_CPPFLAGS="$CPPFLAGS"
11117 for element in $INCICONV; do
11119 for x in $CPPFLAGS; do
11121 acl_save_prefix="$prefix"
11122 prefix="$acl_final_prefix"
11123 acl_save_exec_prefix="$exec_prefix"
11124 exec_prefix="$acl_final_exec_prefix"
11126 exec_prefix="$acl_save_exec_prefix"
11127 prefix="$acl_save_prefix"
11129 if test "X$x" = "X$element"; then
11134 if test -z "$haveit"; then
11135 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
11140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
11141 $as_echo_n "checking for iconv... " >&6; }
11142 if ${am_cv_func_iconv+:} false; then :
11143 $as_echo_n "(cached) " >&6
11146 am_cv_func_iconv="no, consider installing GNU libiconv"
11148 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11149 /* end confdefs.h. */
11150 #include <stdlib.h>
11155 iconv_t cd = iconv_open("","");
11156 iconv(cd,NULL,NULL,NULL,NULL);
11162 if ac_fn_c_try_link "$LINENO"; then :
11163 am_cv_func_iconv=yes
11165 rm -f core conftest.err conftest.$ac_objext \
11166 conftest$ac_exeext conftest.$ac_ext
11167 if test "$am_cv_func_iconv" != yes; then
11168 am_save_LIBS="$LIBS"
11169 LIBS="$LIBS $LIBICONV"
11170 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11171 /* end confdefs.h. */
11172 #include <stdlib.h>
11177 iconv_t cd = iconv_open("","");
11178 iconv(cd,NULL,NULL,NULL,NULL);
11184 if ac_fn_c_try_link "$LINENO"; then :
11185 am_cv_lib_iconv=yes
11186 am_cv_func_iconv=yes
11188 rm -f core conftest.err conftest.$ac_objext \
11189 conftest$ac_exeext conftest.$ac_ext
11190 LIBS="$am_save_LIBS"
11194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
11195 $as_echo "$am_cv_func_iconv" >&6; }
11196 if test "$am_cv_func_iconv" = yes; then
11197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5
11198 $as_echo_n "checking for working iconv... " >&6; }
11199 if ${am_cv_func_iconv_works+:} false; then :
11200 $as_echo_n "(cached) " >&6
11203 am_save_LIBS="$LIBS"
11204 if test $am_cv_lib_iconv = yes; then
11205 LIBS="$LIBS $LIBICONV"
11207 if test "$cross_compiling" = yes; then :
11209 aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
11210 *) am_cv_func_iconv_works="guessing yes" ;;
11213 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11214 /* end confdefs.h. */
11217 #include <string.h>
11220 /* Test against AIX 5.1 bug: Failures are not distinguishable from successful
11223 iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
11224 if (cd_utf8_to_88591 != (iconv_t)(-1))
11226 static const char input[] = "\342\202\254"; /* EURO SIGN */
11228 const char *inptr = input;
11229 size_t inbytesleft = strlen (input);
11230 char *outptr = buf;
11231 size_t outbytesleft = sizeof (buf);
11232 size_t res = iconv (cd_utf8_to_88591,
11233 (char **) &inptr, &inbytesleft,
11234 &outptr, &outbytesleft);
11239 /* Test against Solaris 10 bug: Failures are not distinguishable from
11240 successful returns. */
11242 iconv_t cd_ascii_to_88591 = iconv_open ("ISO8859-1", "646");
11243 if (cd_ascii_to_88591 != (iconv_t)(-1))
11245 static const char input[] = "\263";
11247 const char *inptr = input;
11248 size_t inbytesleft = strlen (input);
11249 char *outptr = buf;
11250 size_t outbytesleft = sizeof (buf);
11251 size_t res = iconv (cd_ascii_to_88591,
11252 (char **) &inptr, &inbytesleft,
11253 &outptr, &outbytesleft);
11258 #if 0 /* This bug could be worked around by the caller. */
11259 /* Test against HP-UX 11.11 bug: Positive return value instead of 0. */
11261 iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
11262 if (cd_88591_to_utf8 != (iconv_t)(-1))
11264 static const char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
11266 const char *inptr = input;
11267 size_t inbytesleft = strlen (input);
11268 char *outptr = buf;
11269 size_t outbytesleft = sizeof (buf);
11270 size_t res = iconv (cd_88591_to_utf8,
11271 (char **) &inptr, &inbytesleft,
11272 &outptr, &outbytesleft);
11278 /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
11280 if (/* Try standardized names. */
11281 iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1)
11282 /* Try IRIX, OSF/1 names. */
11283 && iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1)
11284 /* Try AIX names. */
11285 && iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1)
11286 /* Try HP-UX names. */
11287 && iconv_open ("utf8", "eucJP") == (iconv_t)(-1))
11292 if ac_fn_c_try_run "$LINENO"; then :
11293 am_cv_func_iconv_works=yes
11295 am_cv_func_iconv_works=no
11297 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11298 conftest.$ac_objext conftest.beam conftest.$ac_ext
11301 LIBS="$am_save_LIBS"
11304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5
11305 $as_echo "$am_cv_func_iconv_works" >&6; }
11306 case "$am_cv_func_iconv_works" in
11307 *no) am_func_iconv=no am_cv_lib_iconv=no ;;
11308 *) am_func_iconv=yes ;;
11311 am_func_iconv=no am_cv_lib_iconv=no
11313 if test "$am_func_iconv" = yes; then
11315 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
11318 if test "$am_cv_lib_iconv" = yes; then
11319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
11320 $as_echo_n "checking how to link with libiconv... " >&6; }
11321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
11322 $as_echo "$LIBICONV" >&6; }
11324 CPPFLAGS="$am_save_CPPFLAGS"
11341 acl_save_prefix="$prefix"
11342 prefix="$acl_final_prefix"
11343 acl_save_exec_prefix="$exec_prefix"
11344 exec_prefix="$acl_final_exec_prefix"
11346 eval additional_includedir=\"$includedir\"
11347 eval additional_libdir=\"$libdir\"
11349 exec_prefix="$acl_save_exec_prefix"
11350 prefix="$acl_save_prefix"
11353 # Check whether --with-libintl-prefix was given.
11354 if test "${with_libintl_prefix+set}" = set; then :
11355 withval=$with_libintl_prefix;
11356 if test "X$withval" = "Xno"; then
11359 if test "X$withval" = "X"; then
11361 acl_save_prefix="$prefix"
11362 prefix="$acl_final_prefix"
11363 acl_save_exec_prefix="$exec_prefix"
11364 exec_prefix="$acl_final_exec_prefix"
11366 eval additional_includedir=\"$includedir\"
11367 eval additional_libdir=\"$libdir\"
11369 exec_prefix="$acl_save_exec_prefix"
11370 prefix="$acl_save_prefix"
11373 additional_includedir="$withval/include"
11374 additional_libdir="$withval/$acl_libdirstem"
11375 if test "$acl_libdirstem2" != "$acl_libdirstem" \
11376 && ! test -d "$withval/$acl_libdirstem"; then
11377 additional_libdir="$withval/$acl_libdirstem2"
11391 names_already_handled=
11392 names_next_round='intl '
11393 while test -n "$names_next_round"; do
11394 names_this_round="$names_next_round"
11396 for name in $names_this_round; do
11398 for n in $names_already_handled; do
11399 if test "$n" = "$name"; then
11400 already_handled=yes
11404 if test -z "$already_handled"; then
11405 names_already_handled="$names_already_handled $name"
11406 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
11407 eval value=\"\$HAVE_LIB$uppername\"
11408 if test -n "$value"; then
11409 if test "$value" = yes; then
11410 eval value=\"\$LIB$uppername\"
11411 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
11412 eval value=\"\$LTLIB$uppername\"
11413 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
11422 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
11423 if test -n "$acl_shlibext"; then
11424 shrext=".$acl_shlibext" # typically: shrext=.so
11428 if test $use_additional = yes; then
11429 dir="$additional_libdir"
11430 if test -n "$acl_shlibext"; then
11431 if test -f "$dir/$libname$shrext"; then
11433 found_so="$dir/$libname$shrext"
11435 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
11436 ver=`(cd "$dir" && \
11437 for f in "$libname$shrext".*; do echo "$f"; done \
11438 | sed -e "s,^$libname$shrext\\\\.,," \
11439 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
11440 | sed 1q ) 2>/dev/null`
11441 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
11443 found_so="$dir/$libname$shrext.$ver"
11446 eval library_names=\"$acl_library_names_spec\"
11447 for f in $library_names; do
11448 if test -f "$dir/$f"; then
11457 if test "X$found_dir" = "X"; then
11458 if test -f "$dir/$libname.$acl_libext"; then
11460 found_a="$dir/$libname.$acl_libext"
11463 if test "X$found_dir" != "X"; then
11464 if test -f "$dir/$libname.la"; then
11465 found_la="$dir/$libname.la"
11469 if test "X$found_dir" = "X"; then
11470 for x in $LDFLAGS $LTLIBINTL; do
11472 acl_save_prefix="$prefix"
11473 prefix="$acl_final_prefix"
11474 acl_save_exec_prefix="$exec_prefix"
11475 exec_prefix="$acl_final_exec_prefix"
11477 exec_prefix="$acl_save_exec_prefix"
11478 prefix="$acl_save_prefix"
11482 dir=`echo "X$x" | sed -e 's/^X-L//'`
11483 if test -n "$acl_shlibext"; then
11484 if test -f "$dir/$libname$shrext"; then
11486 found_so="$dir/$libname$shrext"
11488 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
11489 ver=`(cd "$dir" && \
11490 for f in "$libname$shrext".*; do echo "$f"; done \
11491 | sed -e "s,^$libname$shrext\\\\.,," \
11492 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
11493 | sed 1q ) 2>/dev/null`
11494 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
11496 found_so="$dir/$libname$shrext.$ver"
11499 eval library_names=\"$acl_library_names_spec\"
11500 for f in $library_names; do
11501 if test -f "$dir/$f"; then
11510 if test "X$found_dir" = "X"; then
11511 if test -f "$dir/$libname.$acl_libext"; then
11513 found_a="$dir/$libname.$acl_libext"
11516 if test "X$found_dir" != "X"; then
11517 if test -f "$dir/$libname.la"; then
11518 found_la="$dir/$libname.la"
11523 if test "X$found_dir" != "X"; then
11528 if test "X$found_dir" != "X"; then
11529 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
11530 if test "X$found_so" != "X"; then
11531 if test "$enable_rpath" = no \
11532 || test "X$found_dir" = "X/usr/$acl_libdirstem" \
11533 || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
11534 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
11537 for x in $ltrpathdirs; do
11538 if test "X$x" = "X$found_dir"; then
11543 if test -z "$haveit"; then
11544 ltrpathdirs="$ltrpathdirs $found_dir"
11546 if test "$acl_hardcode_direct" = yes; then
11547 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
11549 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
11550 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
11552 for x in $rpathdirs; do
11553 if test "X$x" = "X$found_dir"; then
11558 if test -z "$haveit"; then
11559 rpathdirs="$rpathdirs $found_dir"
11563 for x in $LDFLAGS $LIBINTL; do
11565 acl_save_prefix="$prefix"
11566 prefix="$acl_final_prefix"
11567 acl_save_exec_prefix="$exec_prefix"
11568 exec_prefix="$acl_final_exec_prefix"
11570 exec_prefix="$acl_save_exec_prefix"
11571 prefix="$acl_save_prefix"
11573 if test "X$x" = "X-L$found_dir"; then
11578 if test -z "$haveit"; then
11579 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
11581 if test "$acl_hardcode_minus_L" != no; then
11582 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
11584 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
11590 if test "X$found_a" != "X"; then
11591 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
11593 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
11596 additional_includedir=
11597 case "$found_dir" in
11598 */$acl_libdirstem | */$acl_libdirstem/)
11599 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
11600 if test "$name" = 'intl'; then
11601 LIBINTL_PREFIX="$basedir"
11603 additional_includedir="$basedir/include"
11605 */$acl_libdirstem2 | */$acl_libdirstem2/)
11606 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
11607 if test "$name" = 'intl'; then
11608 LIBINTL_PREFIX="$basedir"
11610 additional_includedir="$basedir/include"
11613 if test "X$additional_includedir" != "X"; then
11614 if test "X$additional_includedir" != "X/usr/include"; then
11616 if test "X$additional_includedir" = "X/usr/local/include"; then
11617 if test -n "$GCC"; then
11619 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
11623 if test -z "$haveit"; then
11624 for x in $CPPFLAGS $INCINTL; do
11626 acl_save_prefix="$prefix"
11627 prefix="$acl_final_prefix"
11628 acl_save_exec_prefix="$exec_prefix"
11629 exec_prefix="$acl_final_exec_prefix"
11631 exec_prefix="$acl_save_exec_prefix"
11632 prefix="$acl_save_prefix"
11634 if test "X$x" = "X-I$additional_includedir"; then
11639 if test -z "$haveit"; then
11640 if test -d "$additional_includedir"; then
11641 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
11647 if test -n "$found_la"; then
11648 save_libdir="$libdir"
11649 case "$found_la" in
11650 */* | *\\*) . "$found_la" ;;
11651 *) . "./$found_la" ;;
11653 libdir="$save_libdir"
11654 for dep in $dependency_libs; do
11657 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
11658 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
11659 && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
11661 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
11662 || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
11663 if test -n "$GCC"; then
11665 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
11669 if test -z "$haveit"; then
11671 for x in $LDFLAGS $LIBINTL; do
11673 acl_save_prefix="$prefix"
11674 prefix="$acl_final_prefix"
11675 acl_save_exec_prefix="$exec_prefix"
11676 exec_prefix="$acl_final_exec_prefix"
11678 exec_prefix="$acl_save_exec_prefix"
11679 prefix="$acl_save_prefix"
11681 if test "X$x" = "X-L$additional_libdir"; then
11686 if test -z "$haveit"; then
11687 if test -d "$additional_libdir"; then
11688 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
11692 for x in $LDFLAGS $LTLIBINTL; do
11694 acl_save_prefix="$prefix"
11695 prefix="$acl_final_prefix"
11696 acl_save_exec_prefix="$exec_prefix"
11697 exec_prefix="$acl_final_exec_prefix"
11699 exec_prefix="$acl_save_exec_prefix"
11700 prefix="$acl_save_prefix"
11702 if test "X$x" = "X-L$additional_libdir"; then
11707 if test -z "$haveit"; then
11708 if test -d "$additional_libdir"; then
11709 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
11716 dir=`echo "X$dep" | sed -e 's/^X-R//'`
11717 if test "$enable_rpath" != no; then
11719 for x in $rpathdirs; do
11720 if test "X$x" = "X$dir"; then
11725 if test -z "$haveit"; then
11726 rpathdirs="$rpathdirs $dir"
11729 for x in $ltrpathdirs; do
11730 if test "X$x" = "X$dir"; then
11735 if test -z "$haveit"; then
11736 ltrpathdirs="$ltrpathdirs $dir"
11741 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
11744 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
11747 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
11748 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
11754 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
11755 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
11761 if test "X$rpathdirs" != "X"; then
11762 if test -n "$acl_hardcode_libdir_separator"; then
11764 for found_dir in $rpathdirs; do
11765 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
11767 acl_save_libdir="$libdir"
11769 eval flag=\"$acl_hardcode_libdir_flag_spec\"
11770 libdir="$acl_save_libdir"
11771 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
11773 for found_dir in $rpathdirs; do
11774 acl_save_libdir="$libdir"
11775 libdir="$found_dir"
11776 eval flag=\"$acl_hardcode_libdir_flag_spec\"
11777 libdir="$acl_save_libdir"
11778 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
11782 if test "X$ltrpathdirs" != "X"; then
11783 for found_dir in $ltrpathdirs; do
11784 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
11793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
11794 $as_echo_n "checking for GNU gettext in libintl... " >&6; }
11795 if eval \${$gt_func_gnugettext_libintl+:} false; then :
11796 $as_echo_n "(cached) " >&6
11798 gt_save_CPPFLAGS="$CPPFLAGS"
11799 CPPFLAGS="$CPPFLAGS $INCINTL"
11800 gt_save_LIBS="$LIBS"
11801 LIBS="$LIBS $LIBINTL"
11802 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11803 /* end confdefs.h. */
11804 #include <libintl.h>
11805 $gt_revision_test_code
11806 extern int _nl_msg_cat_cntr;
11811 const char *_nl_expand_alias (const char *);
11815 bindtextdomain ("", "");
11816 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
11821 if ac_fn_c_try_link "$LINENO"; then :
11822 eval "$gt_func_gnugettext_libintl=yes"
11824 eval "$gt_func_gnugettext_libintl=no"
11826 rm -f core conftest.err conftest.$ac_objext \
11827 conftest$ac_exeext conftest.$ac_ext
11828 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } && test -n "$LIBICONV"; then
11829 LIBS="$LIBS $LIBICONV"
11830 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11831 /* end confdefs.h. */
11832 #include <libintl.h>
11833 $gt_revision_test_code
11834 extern int _nl_msg_cat_cntr;
11839 const char *_nl_expand_alias (const char *);
11843 bindtextdomain ("", "");
11844 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
11849 if ac_fn_c_try_link "$LINENO"; then :
11850 LIBINTL="$LIBINTL $LIBICONV"
11851 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
11852 eval "$gt_func_gnugettext_libintl=yes"
11855 rm -f core conftest.err conftest.$ac_objext \
11856 conftest$ac_exeext conftest.$ac_ext
11858 CPPFLAGS="$gt_save_CPPFLAGS"
11859 LIBS="$gt_save_LIBS"
11861 eval ac_res=\$$gt_func_gnugettext_libintl
11862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
11863 $as_echo "$ac_res" >&6; }
11866 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \
11867 || { { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \
11868 && test "$PACKAGE" != gettext-runtime \
11869 && test "$PACKAGE" != gettext-tools; }; then
11870 gt_use_preinstalled_gnugettext=yes
11879 if test -n "$INTL_MACOSX_LIBS"; then
11880 if test "$gt_use_preinstalled_gnugettext" = "yes" \
11881 || test "$nls_cv_use_gnu_gettext" = "yes"; then
11882 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
11883 LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
11887 if test "$gt_use_preinstalled_gnugettext" = "yes" \
11888 || test "$nls_cv_use_gnu_gettext" = "yes"; then
11890 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
11897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
11898 $as_echo_n "checking whether to use NLS... " >&6; }
11899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
11900 $as_echo "$USE_NLS" >&6; }
11901 if test "$USE_NLS" = "yes"; then
11902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
11903 $as_echo_n "checking where the gettext function comes from... " >&6; }
11904 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
11905 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
11906 gt_source="external libintl"
11911 gt_source="included intl directory"
11913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
11914 $as_echo "$gt_source" >&6; }
11917 if test "$USE_NLS" = "yes"; then
11919 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
11920 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
11921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
11922 $as_echo_n "checking how to link with libintl... " >&6; }
11923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
11924 $as_echo "$LIBINTL" >&6; }
11926 for element in $INCINTL; do
11928 for x in $CPPFLAGS; do
11930 acl_save_prefix="$prefix"
11931 prefix="$acl_final_prefix"
11932 acl_save_exec_prefix="$exec_prefix"
11933 exec_prefix="$acl_final_exec_prefix"
11935 exec_prefix="$acl_save_exec_prefix"
11936 prefix="$acl_save_prefix"
11938 if test "X$x" = "X$element"; then
11943 if test -z "$haveit"; then
11944 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
11951 $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
11954 $as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
11963 INTLLIBS="$LIBINTL"
11972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
11973 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
11974 if ${ac_cv_c_bigendian+:} false; then :
11975 $as_echo_n "(cached) " >&6
11977 ac_cv_c_bigendian=unknown
11978 # See if we're dealing with a universal compiler.
11979 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11980 /* end confdefs.h. */
11981 #ifndef __APPLE_CC__
11982 not a universal capable compiler
11987 if ac_fn_c_try_compile "$LINENO"; then :
11989 # Check for potential -arch flags. It is not universal unless
11990 # there are at least two -arch flags with different values.
11993 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
11994 if test -n "$ac_prev"; then
11996 i?86 | x86_64 | ppc | ppc64)
11997 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
12000 ac_cv_c_bigendian=universal
12006 elif test "x$ac_word" = "x-arch"; then
12011 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12012 if test $ac_cv_c_bigendian = unknown; then
12013 # See if sys/param.h defines the BYTE_ORDER macro.
12014 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12015 /* end confdefs.h. */
12016 #include <sys/types.h>
12017 #include <sys/param.h>
12022 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
12023 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
12025 bogus endian macros
12032 if ac_fn_c_try_compile "$LINENO"; then :
12033 # It does; now see whether it defined to BIG_ENDIAN or not.
12034 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12035 /* end confdefs.h. */
12036 #include <sys/types.h>
12037 #include <sys/param.h>
12042 #if BYTE_ORDER != BIG_ENDIAN
12050 if ac_fn_c_try_compile "$LINENO"; then :
12051 ac_cv_c_bigendian=yes
12053 ac_cv_c_bigendian=no
12055 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12057 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12059 if test $ac_cv_c_bigendian = unknown; then
12060 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
12061 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12062 /* end confdefs.h. */
12063 #include <limits.h>
12068 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
12069 bogus endian macros
12076 if ac_fn_c_try_compile "$LINENO"; then :
12077 # It does; now see whether it defined to _BIG_ENDIAN or not.
12078 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12079 /* end confdefs.h. */
12080 #include <limits.h>
12085 #ifndef _BIG_ENDIAN
12093 if ac_fn_c_try_compile "$LINENO"; then :
12094 ac_cv_c_bigendian=yes
12096 ac_cv_c_bigendian=no
12098 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12100 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12102 if test $ac_cv_c_bigendian = unknown; then
12103 # Compile a test program.
12104 if test "$cross_compiling" = yes; then :
12105 # Try to guess by grepping values from an object file.
12106 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12107 /* end confdefs.h. */
12108 short int ascii_mm[] =
12109 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
12110 short int ascii_ii[] =
12111 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
12112 int use_ascii (int i) {
12113 return ascii_mm[i] + ascii_ii[i];
12115 short int ebcdic_ii[] =
12116 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
12117 short int ebcdic_mm[] =
12118 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
12119 int use_ebcdic (int i) {
12120 return ebcdic_mm[i] + ebcdic_ii[i];
12127 return use_ascii (foo) == use_ebcdic (foo);
12132 if ac_fn_c_try_compile "$LINENO"; then :
12133 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
12134 ac_cv_c_bigendian=yes
12136 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
12137 if test "$ac_cv_c_bigendian" = unknown; then
12138 ac_cv_c_bigendian=no
12140 # finding both strings is unlikely to happen, but who knows?
12141 ac_cv_c_bigendian=unknown
12145 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12147 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12148 /* end confdefs.h. */
12149 $ac_includes_default
12154 /* Are we little or big endian? From Harbison&Steele. */
12158 char c[sizeof (long int)];
12161 return u.c[sizeof (long int) - 1] == 1;
12167 if ac_fn_c_try_run "$LINENO"; then :
12168 ac_cv_c_bigendian=no
12170 ac_cv_c_bigendian=yes
12172 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12173 conftest.$ac_objext conftest.beam conftest.$ac_ext
12178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
12179 $as_echo "$ac_cv_c_bigendian" >&6; }
12180 case $ac_cv_c_bigendian in #(
12182 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
12188 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
12192 as_fn_error $? "unknown endianness
12193 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
12197 for ac_func in secure_getenv fork inet_ntop inet_pton getrusage getpwuid_r nanosleep daemon getpid clock_gettime iconv localtime vasprintf
12199 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12200 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12201 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
12202 cat >>confdefs.h <<_ACEOF
12203 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12209 if test "$ac_cv_func_vasprintf" != "yes";then
12210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for va_copy" >&5
12211 $as_echo_n "checking for va_copy... " >&6; }
12212 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12213 /* end confdefs.h. */
12215 #include <stdarg.h>
12228 if ac_fn_c_try_link "$LINENO"; then :
12230 $as_echo "#define HAVE_VA_COPY 1" >>confdefs.h
12232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: va_copy" >&5
12233 $as_echo "va_copy" >&6; }
12235 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12236 /* end confdefs.h. */
12238 #include <stdarg.h>
12251 if ac_fn_c_try_link "$LINENO"; then :
12253 $as_echo "#define HAVE___VA_COPY 1" >>confdefs.h
12255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: __va_copy" >&5
12256 $as_echo "__va_copy" >&6; }
12258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12259 $as_echo "no" >&6; }
12260 as_fn_error $? "Your system lacks vasprintf() and va_copy()" "$LINENO" 5
12262 rm -f core conftest.err conftest.$ac_objext \
12263 conftest$ac_exeext conftest.$ac_ext
12266 rm -f core conftest.err conftest.$ac_objext \
12267 conftest$ac_exeext conftest.$ac_ext
12270 if test "$ac_cv_func_fork" != "no"; then
12272 HAVE_FORK_FALSE='#'
12294 acl_save_prefix="$prefix"
12295 prefix="$acl_final_prefix"
12296 acl_save_exec_prefix="$exec_prefix"
12297 exec_prefix="$acl_final_exec_prefix"
12299 eval additional_includedir=\"$includedir\"
12300 eval additional_libdir=\"$libdir\"
12302 exec_prefix="$acl_save_exec_prefix"
12303 prefix="$acl_save_prefix"
12306 # Check whether --with-librt-prefix was given.
12307 if test "${with_librt_prefix+set}" = set; then :
12308 withval=$with_librt_prefix;
12309 if test "X$withval" = "Xno"; then
12312 if test "X$withval" = "X"; then
12314 acl_save_prefix="$prefix"
12315 prefix="$acl_final_prefix"
12316 acl_save_exec_prefix="$exec_prefix"
12317 exec_prefix="$acl_final_exec_prefix"
12319 eval additional_includedir=\"$includedir\"
12320 eval additional_libdir=\"$libdir\"
12322 exec_prefix="$acl_save_exec_prefix"
12323 prefix="$acl_save_prefix"
12326 additional_includedir="$withval/include"
12327 additional_libdir="$withval/$acl_libdirstem"
12328 if test "$acl_libdirstem2" != "$acl_libdirstem" \
12329 && ! test -d "$withval/$acl_libdirstem"; then
12330 additional_libdir="$withval/$acl_libdirstem2"
12344 names_already_handled=
12345 names_next_round='rt '
12346 while test -n "$names_next_round"; do
12347 names_this_round="$names_next_round"
12349 for name in $names_this_round; do
12351 for n in $names_already_handled; do
12352 if test "$n" = "$name"; then
12353 already_handled=yes
12357 if test -z "$already_handled"; then
12358 names_already_handled="$names_already_handled $name"
12359 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
12360 eval value=\"\$HAVE_LIB$uppername\"
12361 if test -n "$value"; then
12362 if test "$value" = yes; then
12363 eval value=\"\$LIB$uppername\"
12364 test -z "$value" || LIBRT="${LIBRT}${LIBRT:+ }$value"
12365 eval value=\"\$LTLIB$uppername\"
12366 test -z "$value" || LTLIBRT="${LTLIBRT}${LTLIBRT:+ }$value"
12375 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
12376 if test -n "$acl_shlibext"; then
12377 shrext=".$acl_shlibext" # typically: shrext=.so
12381 if test $use_additional = yes; then
12382 dir="$additional_libdir"
12383 if test -n "$acl_shlibext"; then
12384 if test -f "$dir/$libname$shrext"; then
12386 found_so="$dir/$libname$shrext"
12388 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
12389 ver=`(cd "$dir" && \
12390 for f in "$libname$shrext".*; do echo "$f"; done \
12391 | sed -e "s,^$libname$shrext\\\\.,," \
12392 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
12393 | sed 1q ) 2>/dev/null`
12394 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
12396 found_so="$dir/$libname$shrext.$ver"
12399 eval library_names=\"$acl_library_names_spec\"
12400 for f in $library_names; do
12401 if test -f "$dir/$f"; then
12410 if test "X$found_dir" = "X"; then
12411 if test -f "$dir/$libname.$acl_libext"; then
12413 found_a="$dir/$libname.$acl_libext"
12416 if test "X$found_dir" != "X"; then
12417 if test -f "$dir/$libname.la"; then
12418 found_la="$dir/$libname.la"
12422 if test "X$found_dir" = "X"; then
12423 for x in $LDFLAGS $LTLIBRT; do
12425 acl_save_prefix="$prefix"
12426 prefix="$acl_final_prefix"
12427 acl_save_exec_prefix="$exec_prefix"
12428 exec_prefix="$acl_final_exec_prefix"
12430 exec_prefix="$acl_save_exec_prefix"
12431 prefix="$acl_save_prefix"
12435 dir=`echo "X$x" | sed -e 's/^X-L//'`
12436 if test -n "$acl_shlibext"; then
12437 if test -f "$dir/$libname$shrext"; then
12439 found_so="$dir/$libname$shrext"
12441 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
12442 ver=`(cd "$dir" && \
12443 for f in "$libname$shrext".*; do echo "$f"; done \
12444 | sed -e "s,^$libname$shrext\\\\.,," \
12445 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
12446 | sed 1q ) 2>/dev/null`
12447 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
12449 found_so="$dir/$libname$shrext.$ver"
12452 eval library_names=\"$acl_library_names_spec\"
12453 for f in $library_names; do
12454 if test -f "$dir/$f"; then
12463 if test "X$found_dir" = "X"; then
12464 if test -f "$dir/$libname.$acl_libext"; then
12466 found_a="$dir/$libname.$acl_libext"
12469 if test "X$found_dir" != "X"; then
12470 if test -f "$dir/$libname.la"; then
12471 found_la="$dir/$libname.la"
12476 if test "X$found_dir" != "X"; then
12481 if test "X$found_dir" != "X"; then
12482 LTLIBRT="${LTLIBRT}${LTLIBRT:+ }-L$found_dir -l$name"
12483 if test "X$found_so" != "X"; then
12484 if test "$enable_rpath" = no \
12485 || test "X$found_dir" = "X/usr/$acl_libdirstem" \
12486 || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
12487 LIBRT="${LIBRT}${LIBRT:+ }$found_so"
12490 for x in $ltrpathdirs; do
12491 if test "X$x" = "X$found_dir"; then
12496 if test -z "$haveit"; then
12497 ltrpathdirs="$ltrpathdirs $found_dir"
12499 if test "$acl_hardcode_direct" = yes; then
12500 LIBRT="${LIBRT}${LIBRT:+ }$found_so"
12502 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
12503 LIBRT="${LIBRT}${LIBRT:+ }$found_so"
12505 for x in $rpathdirs; do
12506 if test "X$x" = "X$found_dir"; then
12511 if test -z "$haveit"; then
12512 rpathdirs="$rpathdirs $found_dir"
12516 for x in $LDFLAGS $LIBRT; do
12518 acl_save_prefix="$prefix"
12519 prefix="$acl_final_prefix"
12520 acl_save_exec_prefix="$exec_prefix"
12521 exec_prefix="$acl_final_exec_prefix"
12523 exec_prefix="$acl_save_exec_prefix"
12524 prefix="$acl_save_prefix"
12526 if test "X$x" = "X-L$found_dir"; then
12531 if test -z "$haveit"; then
12532 LIBRT="${LIBRT}${LIBRT:+ }-L$found_dir"
12534 if test "$acl_hardcode_minus_L" != no; then
12535 LIBRT="${LIBRT}${LIBRT:+ }$found_so"
12537 LIBRT="${LIBRT}${LIBRT:+ }-l$name"
12543 if test "X$found_a" != "X"; then
12544 LIBRT="${LIBRT}${LIBRT:+ }$found_a"
12546 LIBRT="${LIBRT}${LIBRT:+ }-L$found_dir -l$name"
12549 additional_includedir=
12550 case "$found_dir" in
12551 */$acl_libdirstem | */$acl_libdirstem/)
12552 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
12553 if test "$name" = 'rt'; then
12554 LIBRT_PREFIX="$basedir"
12556 additional_includedir="$basedir/include"
12558 */$acl_libdirstem2 | */$acl_libdirstem2/)
12559 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
12560 if test "$name" = 'rt'; then
12561 LIBRT_PREFIX="$basedir"
12563 additional_includedir="$basedir/include"
12566 if test "X$additional_includedir" != "X"; then
12567 if test "X$additional_includedir" != "X/usr/include"; then
12569 if test "X$additional_includedir" = "X/usr/local/include"; then
12570 if test -n "$GCC"; then
12572 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
12576 if test -z "$haveit"; then
12577 for x in $CPPFLAGS $INCRT; do
12579 acl_save_prefix="$prefix"
12580 prefix="$acl_final_prefix"
12581 acl_save_exec_prefix="$exec_prefix"
12582 exec_prefix="$acl_final_exec_prefix"
12584 exec_prefix="$acl_save_exec_prefix"
12585 prefix="$acl_save_prefix"
12587 if test "X$x" = "X-I$additional_includedir"; then
12592 if test -z "$haveit"; then
12593 if test -d "$additional_includedir"; then
12594 INCRT="${INCRT}${INCRT:+ }-I$additional_includedir"
12600 if test -n "$found_la"; then
12601 save_libdir="$libdir"
12602 case "$found_la" in
12603 */* | *\\*) . "$found_la" ;;
12604 *) . "./$found_la" ;;
12606 libdir="$save_libdir"
12607 for dep in $dependency_libs; do
12610 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
12611 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
12612 && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
12614 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
12615 || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
12616 if test -n "$GCC"; then
12618 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
12622 if test -z "$haveit"; then
12624 for x in $LDFLAGS $LIBRT; do
12626 acl_save_prefix="$prefix"
12627 prefix="$acl_final_prefix"
12628 acl_save_exec_prefix="$exec_prefix"
12629 exec_prefix="$acl_final_exec_prefix"
12631 exec_prefix="$acl_save_exec_prefix"
12632 prefix="$acl_save_prefix"
12634 if test "X$x" = "X-L$additional_libdir"; then
12639 if test -z "$haveit"; then
12640 if test -d "$additional_libdir"; then
12641 LIBRT="${LIBRT}${LIBRT:+ }-L$additional_libdir"
12645 for x in $LDFLAGS $LTLIBRT; do
12647 acl_save_prefix="$prefix"
12648 prefix="$acl_final_prefix"
12649 acl_save_exec_prefix="$exec_prefix"
12650 exec_prefix="$acl_final_exec_prefix"
12652 exec_prefix="$acl_save_exec_prefix"
12653 prefix="$acl_save_prefix"
12655 if test "X$x" = "X-L$additional_libdir"; then
12660 if test -z "$haveit"; then
12661 if test -d "$additional_libdir"; then
12662 LTLIBRT="${LTLIBRT}${LTLIBRT:+ }-L$additional_libdir"
12669 dir=`echo "X$dep" | sed -e 's/^X-R//'`
12670 if test "$enable_rpath" != no; then
12672 for x in $rpathdirs; do
12673 if test "X$x" = "X$dir"; then
12678 if test -z "$haveit"; then
12679 rpathdirs="$rpathdirs $dir"
12682 for x in $ltrpathdirs; do
12683 if test "X$x" = "X$dir"; then
12688 if test -z "$haveit"; then
12689 ltrpathdirs="$ltrpathdirs $dir"
12694 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
12697 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
12700 LIBRT="${LIBRT}${LIBRT:+ }$dep"
12701 LTLIBRT="${LTLIBRT}${LTLIBRT:+ }$dep"
12707 LIBRT="${LIBRT}${LIBRT:+ }-l$name"
12708 LTLIBRT="${LTLIBRT}${LTLIBRT:+ }-l$name"
12714 if test "X$rpathdirs" != "X"; then
12715 if test -n "$acl_hardcode_libdir_separator"; then
12717 for found_dir in $rpathdirs; do
12718 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
12720 acl_save_libdir="$libdir"
12722 eval flag=\"$acl_hardcode_libdir_flag_spec\"
12723 libdir="$acl_save_libdir"
12724 LIBRT="${LIBRT}${LIBRT:+ }$flag"
12726 for found_dir in $rpathdirs; do
12727 acl_save_libdir="$libdir"
12728 libdir="$found_dir"
12729 eval flag=\"$acl_hardcode_libdir_flag_spec\"
12730 libdir="$acl_save_libdir"
12731 LIBRT="${LIBRT}${LIBRT:+ }$flag"
12735 if test "X$ltrpathdirs" != "X"; then
12736 for found_dir in $ltrpathdirs; do
12737 LTLIBRT="${LTLIBRT}${LTLIBRT:+ }-R$found_dir"
12747 ac_save_CPPFLAGS="$CPPFLAGS"
12749 for element in $INCRT; do
12751 for x in $CPPFLAGS; do
12753 acl_save_prefix="$prefix"
12754 prefix="$acl_final_prefix"
12755 acl_save_exec_prefix="$exec_prefix"
12756 exec_prefix="$acl_final_exec_prefix"
12758 exec_prefix="$acl_save_exec_prefix"
12759 prefix="$acl_save_prefix"
12761 if test "X$x" = "X$element"; then
12766 if test -z "$haveit"; then
12767 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
12772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for librt" >&5
12773 $as_echo_n "checking for librt... " >&6; }
12774 if ${ac_cv_librt+:} false; then :
12775 $as_echo_n "(cached) " >&6
12778 ac_save_LIBS="$LIBS"
12780 *" -l"*) LIBS="$LIBS $LIBRT" ;;
12781 *) LIBS="$LIBRT $LIBS" ;;
12783 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12784 /* end confdefs.h. */
12786 #include <signal.h>
12791 timer_create (0,0,0);
12796 if ac_fn_c_try_link "$LINENO"; then :
12801 rm -f core conftest.err conftest.$ac_objext \
12802 conftest$ac_exeext conftest.$ac_ext
12803 LIBS="$ac_save_LIBS"
12806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_librt" >&5
12807 $as_echo "$ac_cv_librt" >&6; }
12808 if test "$ac_cv_librt" = yes; then
12811 $as_echo "#define HAVE_LIBRT 1" >>confdefs.h
12813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with librt" >&5
12814 $as_echo_n "checking how to link with librt... " >&6; }
12815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBRT" >&5
12816 $as_echo "$LIBRT" >&6; }
12819 CPPFLAGS="$ac_save_CPPFLAGS"
12832 if test "$have_win" != "yes";then
12833 for ac_func in pthread_mutex_lock
12835 ac_fn_c_check_func "$LINENO" "pthread_mutex_lock" "ac_cv_func_pthread_mutex_lock"
12836 if test "x$ac_cv_func_pthread_mutex_lock" = xyes; then :
12837 cat >>confdefs.h <<_ACEOF
12838 #define HAVE_PTHREAD_MUTEX_LOCK 1
12844 if test "$ac_cv_func_pthread_mutex_lock" != "yes";then
12860 acl_save_prefix="$prefix"
12861 prefix="$acl_final_prefix"
12862 acl_save_exec_prefix="$exec_prefix"
12863 exec_prefix="$acl_final_exec_prefix"
12865 eval additional_includedir=\"$includedir\"
12866 eval additional_libdir=\"$libdir\"
12868 exec_prefix="$acl_save_exec_prefix"
12869 prefix="$acl_save_prefix"
12872 # Check whether --with-libpthread-prefix was given.
12873 if test "${with_libpthread_prefix+set}" = set; then :
12874 withval=$with_libpthread_prefix;
12875 if test "X$withval" = "Xno"; then
12878 if test "X$withval" = "X"; then
12880 acl_save_prefix="$prefix"
12881 prefix="$acl_final_prefix"
12882 acl_save_exec_prefix="$exec_prefix"
12883 exec_prefix="$acl_final_exec_prefix"
12885 eval additional_includedir=\"$includedir\"
12886 eval additional_libdir=\"$libdir\"
12888 exec_prefix="$acl_save_exec_prefix"
12889 prefix="$acl_save_prefix"
12892 additional_includedir="$withval/include"
12893 additional_libdir="$withval/$acl_libdirstem"
12894 if test "$acl_libdirstem2" != "$acl_libdirstem" \
12895 && ! test -d "$withval/$acl_libdirstem"; then
12896 additional_libdir="$withval/$acl_libdirstem2"
12910 names_already_handled=
12911 names_next_round='pthread '
12912 while test -n "$names_next_round"; do
12913 names_this_round="$names_next_round"
12915 for name in $names_this_round; do
12917 for n in $names_already_handled; do
12918 if test "$n" = "$name"; then
12919 already_handled=yes
12923 if test -z "$already_handled"; then
12924 names_already_handled="$names_already_handled $name"
12925 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
12926 eval value=\"\$HAVE_LIB$uppername\"
12927 if test -n "$value"; then
12928 if test "$value" = yes; then
12929 eval value=\"\$LIB$uppername\"
12930 test -z "$value" || LIBPTHREAD="${LIBPTHREAD}${LIBPTHREAD:+ }$value"
12931 eval value=\"\$LTLIB$uppername\"
12932 test -z "$value" || LTLIBPTHREAD="${LTLIBPTHREAD}${LTLIBPTHREAD:+ }$value"
12941 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
12942 if test -n "$acl_shlibext"; then
12943 shrext=".$acl_shlibext" # typically: shrext=.so
12947 if test $use_additional = yes; then
12948 dir="$additional_libdir"
12949 if test -n "$acl_shlibext"; then
12950 if test -f "$dir/$libname$shrext"; then
12952 found_so="$dir/$libname$shrext"
12954 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
12955 ver=`(cd "$dir" && \
12956 for f in "$libname$shrext".*; do echo "$f"; done \
12957 | sed -e "s,^$libname$shrext\\\\.,," \
12958 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
12959 | sed 1q ) 2>/dev/null`
12960 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
12962 found_so="$dir/$libname$shrext.$ver"
12965 eval library_names=\"$acl_library_names_spec\"
12966 for f in $library_names; do
12967 if test -f "$dir/$f"; then
12976 if test "X$found_dir" = "X"; then
12977 if test -f "$dir/$libname.$acl_libext"; then
12979 found_a="$dir/$libname.$acl_libext"
12982 if test "X$found_dir" != "X"; then
12983 if test -f "$dir/$libname.la"; then
12984 found_la="$dir/$libname.la"
12988 if test "X$found_dir" = "X"; then
12989 for x in $LDFLAGS $LTLIBPTHREAD; do
12991 acl_save_prefix="$prefix"
12992 prefix="$acl_final_prefix"
12993 acl_save_exec_prefix="$exec_prefix"
12994 exec_prefix="$acl_final_exec_prefix"
12996 exec_prefix="$acl_save_exec_prefix"
12997 prefix="$acl_save_prefix"
13001 dir=`echo "X$x" | sed -e 's/^X-L//'`
13002 if test -n "$acl_shlibext"; then
13003 if test -f "$dir/$libname$shrext"; then
13005 found_so="$dir/$libname$shrext"
13007 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
13008 ver=`(cd "$dir" && \
13009 for f in "$libname$shrext".*; do echo "$f"; done \
13010 | sed -e "s,^$libname$shrext\\\\.,," \
13011 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
13012 | sed 1q ) 2>/dev/null`
13013 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
13015 found_so="$dir/$libname$shrext.$ver"
13018 eval library_names=\"$acl_library_names_spec\"
13019 for f in $library_names; do
13020 if test -f "$dir/$f"; then
13029 if test "X$found_dir" = "X"; then
13030 if test -f "$dir/$libname.$acl_libext"; then
13032 found_a="$dir/$libname.$acl_libext"
13035 if test "X$found_dir" != "X"; then
13036 if test -f "$dir/$libname.la"; then
13037 found_la="$dir/$libname.la"
13042 if test "X$found_dir" != "X"; then
13047 if test "X$found_dir" != "X"; then
13048 LTLIBPTHREAD="${LTLIBPTHREAD}${LTLIBPTHREAD:+ }-L$found_dir -l$name"
13049 if test "X$found_so" != "X"; then
13050 if test "$enable_rpath" = no \
13051 || test "X$found_dir" = "X/usr/$acl_libdirstem" \
13052 || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
13053 LIBPTHREAD="${LIBPTHREAD}${LIBPTHREAD:+ }$found_so"
13056 for x in $ltrpathdirs; do
13057 if test "X$x" = "X$found_dir"; then
13062 if test -z "$haveit"; then
13063 ltrpathdirs="$ltrpathdirs $found_dir"
13065 if test "$acl_hardcode_direct" = yes; then
13066 LIBPTHREAD="${LIBPTHREAD}${LIBPTHREAD:+ }$found_so"
13068 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
13069 LIBPTHREAD="${LIBPTHREAD}${LIBPTHREAD:+ }$found_so"
13071 for x in $rpathdirs; do
13072 if test "X$x" = "X$found_dir"; then
13077 if test -z "$haveit"; then
13078 rpathdirs="$rpathdirs $found_dir"
13082 for x in $LDFLAGS $LIBPTHREAD; do
13084 acl_save_prefix="$prefix"
13085 prefix="$acl_final_prefix"
13086 acl_save_exec_prefix="$exec_prefix"
13087 exec_prefix="$acl_final_exec_prefix"
13089 exec_prefix="$acl_save_exec_prefix"
13090 prefix="$acl_save_prefix"
13092 if test "X$x" = "X-L$found_dir"; then
13097 if test -z "$haveit"; then
13098 LIBPTHREAD="${LIBPTHREAD}${LIBPTHREAD:+ }-L$found_dir"
13100 if test "$acl_hardcode_minus_L" != no; then
13101 LIBPTHREAD="${LIBPTHREAD}${LIBPTHREAD:+ }$found_so"
13103 LIBPTHREAD="${LIBPTHREAD}${LIBPTHREAD:+ }-l$name"
13109 if test "X$found_a" != "X"; then
13110 LIBPTHREAD="${LIBPTHREAD}${LIBPTHREAD:+ }$found_a"
13112 LIBPTHREAD="${LIBPTHREAD}${LIBPTHREAD:+ }-L$found_dir -l$name"
13115 additional_includedir=
13116 case "$found_dir" in
13117 */$acl_libdirstem | */$acl_libdirstem/)
13118 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
13119 if test "$name" = 'pthread'; then
13120 LIBPTHREAD_PREFIX="$basedir"
13122 additional_includedir="$basedir/include"
13124 */$acl_libdirstem2 | */$acl_libdirstem2/)
13125 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
13126 if test "$name" = 'pthread'; then
13127 LIBPTHREAD_PREFIX="$basedir"
13129 additional_includedir="$basedir/include"
13132 if test "X$additional_includedir" != "X"; then
13133 if test "X$additional_includedir" != "X/usr/include"; then
13135 if test "X$additional_includedir" = "X/usr/local/include"; then
13136 if test -n "$GCC"; then
13138 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
13142 if test -z "$haveit"; then
13143 for x in $CPPFLAGS $INCPTHREAD; do
13145 acl_save_prefix="$prefix"
13146 prefix="$acl_final_prefix"
13147 acl_save_exec_prefix="$exec_prefix"
13148 exec_prefix="$acl_final_exec_prefix"
13150 exec_prefix="$acl_save_exec_prefix"
13151 prefix="$acl_save_prefix"
13153 if test "X$x" = "X-I$additional_includedir"; then
13158 if test -z "$haveit"; then
13159 if test -d "$additional_includedir"; then
13160 INCPTHREAD="${INCPTHREAD}${INCPTHREAD:+ }-I$additional_includedir"
13166 if test -n "$found_la"; then
13167 save_libdir="$libdir"
13168 case "$found_la" in
13169 */* | *\\*) . "$found_la" ;;
13170 *) . "./$found_la" ;;
13172 libdir="$save_libdir"
13173 for dep in $dependency_libs; do
13176 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
13177 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
13178 && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
13180 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
13181 || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
13182 if test -n "$GCC"; then
13184 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
13188 if test -z "$haveit"; then
13190 for x in $LDFLAGS $LIBPTHREAD; do
13192 acl_save_prefix="$prefix"
13193 prefix="$acl_final_prefix"
13194 acl_save_exec_prefix="$exec_prefix"
13195 exec_prefix="$acl_final_exec_prefix"
13197 exec_prefix="$acl_save_exec_prefix"
13198 prefix="$acl_save_prefix"
13200 if test "X$x" = "X-L$additional_libdir"; then
13205 if test -z "$haveit"; then
13206 if test -d "$additional_libdir"; then
13207 LIBPTHREAD="${LIBPTHREAD}${LIBPTHREAD:+ }-L$additional_libdir"
13211 for x in $LDFLAGS $LTLIBPTHREAD; do
13213 acl_save_prefix="$prefix"
13214 prefix="$acl_final_prefix"
13215 acl_save_exec_prefix="$exec_prefix"
13216 exec_prefix="$acl_final_exec_prefix"
13218 exec_prefix="$acl_save_exec_prefix"
13219 prefix="$acl_save_prefix"
13221 if test "X$x" = "X-L$additional_libdir"; then
13226 if test -z "$haveit"; then
13227 if test -d "$additional_libdir"; then
13228 LTLIBPTHREAD="${LTLIBPTHREAD}${LTLIBPTHREAD:+ }-L$additional_libdir"
13235 dir=`echo "X$dep" | sed -e 's/^X-R//'`
13236 if test "$enable_rpath" != no; then
13238 for x in $rpathdirs; do
13239 if test "X$x" = "X$dir"; then
13244 if test -z "$haveit"; then
13245 rpathdirs="$rpathdirs $dir"
13248 for x in $ltrpathdirs; do
13249 if test "X$x" = "X$dir"; then
13254 if test -z "$haveit"; then
13255 ltrpathdirs="$ltrpathdirs $dir"
13260 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
13263 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
13266 LIBPTHREAD="${LIBPTHREAD}${LIBPTHREAD:+ }$dep"
13267 LTLIBPTHREAD="${LTLIBPTHREAD}${LTLIBPTHREAD:+ }$dep"
13273 LIBPTHREAD="${LIBPTHREAD}${LIBPTHREAD:+ }-l$name"
13274 LTLIBPTHREAD="${LTLIBPTHREAD}${LTLIBPTHREAD:+ }-l$name"
13280 if test "X$rpathdirs" != "X"; then
13281 if test -n "$acl_hardcode_libdir_separator"; then
13283 for found_dir in $rpathdirs; do
13284 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
13286 acl_save_libdir="$libdir"
13288 eval flag=\"$acl_hardcode_libdir_flag_spec\"
13289 libdir="$acl_save_libdir"
13290 LIBPTHREAD="${LIBPTHREAD}${LIBPTHREAD:+ }$flag"
13292 for found_dir in $rpathdirs; do
13293 acl_save_libdir="$libdir"
13294 libdir="$found_dir"
13295 eval flag=\"$acl_hardcode_libdir_flag_spec\"
13296 libdir="$acl_save_libdir"
13297 LIBPTHREAD="${LIBPTHREAD}${LIBPTHREAD:+ }$flag"
13301 if test "X$ltrpathdirs" != "X"; then
13302 for found_dir in $ltrpathdirs; do
13303 LTLIBPTHREAD="${LTLIBPTHREAD}${LTLIBPTHREAD:+ }-R$found_dir"
13313 ac_save_CPPFLAGS="$CPPFLAGS"
13315 for element in $INCPTHREAD; do
13317 for x in $CPPFLAGS; do
13319 acl_save_prefix="$prefix"
13320 prefix="$acl_final_prefix"
13321 acl_save_exec_prefix="$exec_prefix"
13322 exec_prefix="$acl_final_exec_prefix"
13324 exec_prefix="$acl_save_exec_prefix"
13325 prefix="$acl_save_prefix"
13327 if test "X$x" = "X$element"; then
13332 if test -z "$haveit"; then
13333 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
13338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libpthread" >&5
13339 $as_echo_n "checking for libpthread... " >&6; }
13340 if ${ac_cv_libpthread+:} false; then :
13341 $as_echo_n "(cached) " >&6
13344 ac_save_LIBS="$LIBS"
13345 case " $LIBPTHREAD" in
13346 *" -l"*) LIBS="$LIBS $LIBPTHREAD" ;;
13347 *) LIBS="$LIBPTHREAD $LIBS" ;;
13349 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13350 /* end confdefs.h. */
13351 #include <pthread.h>
13355 pthread_mutex_lock (0);
13360 if ac_fn_c_try_link "$LINENO"; then :
13361 ac_cv_libpthread=yes
13363 ac_cv_libpthread='no'
13365 rm -f core conftest.err conftest.$ac_objext \
13366 conftest$ac_exeext conftest.$ac_ext
13367 LIBS="$ac_save_LIBS"
13370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libpthread" >&5
13371 $as_echo "$ac_cv_libpthread" >&6; }
13372 if test "$ac_cv_libpthread" = yes; then
13373 HAVE_LIBPTHREAD=yes
13375 $as_echo "#define HAVE_LIBPTHREAD 1" >>confdefs.h
13377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libpthread" >&5
13378 $as_echo_n "checking how to link with libpthread... " >&6; }
13379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBPTHREAD" >&5
13380 $as_echo "$LIBPTHREAD" >&6; }
13383 CPPFLAGS="$ac_save_CPPFLAGS"
13398 if test "$ac_cv_func_nanosleep" != "yes";then
13414 acl_save_prefix="$prefix"
13415 prefix="$acl_final_prefix"
13416 acl_save_exec_prefix="$exec_prefix"
13417 exec_prefix="$acl_final_exec_prefix"
13419 eval additional_includedir=\"$includedir\"
13420 eval additional_libdir=\"$libdir\"
13422 exec_prefix="$acl_save_exec_prefix"
13423 prefix="$acl_save_prefix"
13426 # Check whether --with-librt-prefix was given.
13427 if test "${with_librt_prefix+set}" = set; then :
13428 withval=$with_librt_prefix;
13429 if test "X$withval" = "Xno"; then
13432 if test "X$withval" = "X"; then
13434 acl_save_prefix="$prefix"
13435 prefix="$acl_final_prefix"
13436 acl_save_exec_prefix="$exec_prefix"
13437 exec_prefix="$acl_final_exec_prefix"
13439 eval additional_includedir=\"$includedir\"
13440 eval additional_libdir=\"$libdir\"
13442 exec_prefix="$acl_save_exec_prefix"
13443 prefix="$acl_save_prefix"
13446 additional_includedir="$withval/include"
13447 additional_libdir="$withval/$acl_libdirstem"
13448 if test "$acl_libdirstem2" != "$acl_libdirstem" \
13449 && ! test -d "$withval/$acl_libdirstem"; then
13450 additional_libdir="$withval/$acl_libdirstem2"
13464 names_already_handled=
13465 names_next_round='rt '
13466 while test -n "$names_next_round"; do
13467 names_this_round="$names_next_round"
13469 for name in $names_this_round; do
13471 for n in $names_already_handled; do
13472 if test "$n" = "$name"; then
13473 already_handled=yes
13477 if test -z "$already_handled"; then
13478 names_already_handled="$names_already_handled $name"
13479 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
13480 eval value=\"\$HAVE_LIB$uppername\"
13481 if test -n "$value"; then
13482 if test "$value" = yes; then
13483 eval value=\"\$LIB$uppername\"
13484 test -z "$value" || LIBRT="${LIBRT}${LIBRT:+ }$value"
13485 eval value=\"\$LTLIB$uppername\"
13486 test -z "$value" || LTLIBRT="${LTLIBRT}${LTLIBRT:+ }$value"
13495 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
13496 if test -n "$acl_shlibext"; then
13497 shrext=".$acl_shlibext" # typically: shrext=.so
13501 if test $use_additional = yes; then
13502 dir="$additional_libdir"
13503 if test -n "$acl_shlibext"; then
13504 if test -f "$dir/$libname$shrext"; then
13506 found_so="$dir/$libname$shrext"
13508 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
13509 ver=`(cd "$dir" && \
13510 for f in "$libname$shrext".*; do echo "$f"; done \
13511 | sed -e "s,^$libname$shrext\\\\.,," \
13512 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
13513 | sed 1q ) 2>/dev/null`
13514 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
13516 found_so="$dir/$libname$shrext.$ver"
13519 eval library_names=\"$acl_library_names_spec\"
13520 for f in $library_names; do
13521 if test -f "$dir/$f"; then
13530 if test "X$found_dir" = "X"; then
13531 if test -f "$dir/$libname.$acl_libext"; then
13533 found_a="$dir/$libname.$acl_libext"
13536 if test "X$found_dir" != "X"; then
13537 if test -f "$dir/$libname.la"; then
13538 found_la="$dir/$libname.la"
13542 if test "X$found_dir" = "X"; then
13543 for x in $LDFLAGS $LTLIBRT; do
13545 acl_save_prefix="$prefix"
13546 prefix="$acl_final_prefix"
13547 acl_save_exec_prefix="$exec_prefix"
13548 exec_prefix="$acl_final_exec_prefix"
13550 exec_prefix="$acl_save_exec_prefix"
13551 prefix="$acl_save_prefix"
13555 dir=`echo "X$x" | sed -e 's/^X-L//'`
13556 if test -n "$acl_shlibext"; then
13557 if test -f "$dir/$libname$shrext"; then
13559 found_so="$dir/$libname$shrext"
13561 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
13562 ver=`(cd "$dir" && \
13563 for f in "$libname$shrext".*; do echo "$f"; done \
13564 | sed -e "s,^$libname$shrext\\\\.,," \
13565 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
13566 | sed 1q ) 2>/dev/null`
13567 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
13569 found_so="$dir/$libname$shrext.$ver"
13572 eval library_names=\"$acl_library_names_spec\"
13573 for f in $library_names; do
13574 if test -f "$dir/$f"; then
13583 if test "X$found_dir" = "X"; then
13584 if test -f "$dir/$libname.$acl_libext"; then
13586 found_a="$dir/$libname.$acl_libext"
13589 if test "X$found_dir" != "X"; then
13590 if test -f "$dir/$libname.la"; then
13591 found_la="$dir/$libname.la"
13596 if test "X$found_dir" != "X"; then
13601 if test "X$found_dir" != "X"; then
13602 LTLIBRT="${LTLIBRT}${LTLIBRT:+ }-L$found_dir -l$name"
13603 if test "X$found_so" != "X"; then
13604 if test "$enable_rpath" = no \
13605 || test "X$found_dir" = "X/usr/$acl_libdirstem" \
13606 || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
13607 LIBRT="${LIBRT}${LIBRT:+ }$found_so"
13610 for x in $ltrpathdirs; do
13611 if test "X$x" = "X$found_dir"; then
13616 if test -z "$haveit"; then
13617 ltrpathdirs="$ltrpathdirs $found_dir"
13619 if test "$acl_hardcode_direct" = yes; then
13620 LIBRT="${LIBRT}${LIBRT:+ }$found_so"
13622 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
13623 LIBRT="${LIBRT}${LIBRT:+ }$found_so"
13625 for x in $rpathdirs; do
13626 if test "X$x" = "X$found_dir"; then
13631 if test -z "$haveit"; then
13632 rpathdirs="$rpathdirs $found_dir"
13636 for x in $LDFLAGS $LIBRT; do
13638 acl_save_prefix="$prefix"
13639 prefix="$acl_final_prefix"
13640 acl_save_exec_prefix="$exec_prefix"
13641 exec_prefix="$acl_final_exec_prefix"
13643 exec_prefix="$acl_save_exec_prefix"
13644 prefix="$acl_save_prefix"
13646 if test "X$x" = "X-L$found_dir"; then
13651 if test -z "$haveit"; then
13652 LIBRT="${LIBRT}${LIBRT:+ }-L$found_dir"
13654 if test "$acl_hardcode_minus_L" != no; then
13655 LIBRT="${LIBRT}${LIBRT:+ }$found_so"
13657 LIBRT="${LIBRT}${LIBRT:+ }-l$name"
13663 if test "X$found_a" != "X"; then
13664 LIBRT="${LIBRT}${LIBRT:+ }$found_a"
13666 LIBRT="${LIBRT}${LIBRT:+ }-L$found_dir -l$name"
13669 additional_includedir=
13670 case "$found_dir" in
13671 */$acl_libdirstem | */$acl_libdirstem/)
13672 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
13673 if test "$name" = 'rt'; then
13674 LIBRT_PREFIX="$basedir"
13676 additional_includedir="$basedir/include"
13678 */$acl_libdirstem2 | */$acl_libdirstem2/)
13679 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
13680 if test "$name" = 'rt'; then
13681 LIBRT_PREFIX="$basedir"
13683 additional_includedir="$basedir/include"
13686 if test "X$additional_includedir" != "X"; then
13687 if test "X$additional_includedir" != "X/usr/include"; then
13689 if test "X$additional_includedir" = "X/usr/local/include"; then
13690 if test -n "$GCC"; then
13692 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
13696 if test -z "$haveit"; then
13697 for x in $CPPFLAGS $INCRT; do
13699 acl_save_prefix="$prefix"
13700 prefix="$acl_final_prefix"
13701 acl_save_exec_prefix="$exec_prefix"
13702 exec_prefix="$acl_final_exec_prefix"
13704 exec_prefix="$acl_save_exec_prefix"
13705 prefix="$acl_save_prefix"
13707 if test "X$x" = "X-I$additional_includedir"; then
13712 if test -z "$haveit"; then
13713 if test -d "$additional_includedir"; then
13714 INCRT="${INCRT}${INCRT:+ }-I$additional_includedir"
13720 if test -n "$found_la"; then
13721 save_libdir="$libdir"
13722 case "$found_la" in
13723 */* | *\\*) . "$found_la" ;;
13724 *) . "./$found_la" ;;
13726 libdir="$save_libdir"
13727 for dep in $dependency_libs; do
13730 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
13731 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
13732 && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
13734 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
13735 || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
13736 if test -n "$GCC"; then
13738 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
13742 if test -z "$haveit"; then
13744 for x in $LDFLAGS $LIBRT; do
13746 acl_save_prefix="$prefix"
13747 prefix="$acl_final_prefix"
13748 acl_save_exec_prefix="$exec_prefix"
13749 exec_prefix="$acl_final_exec_prefix"
13751 exec_prefix="$acl_save_exec_prefix"
13752 prefix="$acl_save_prefix"
13754 if test "X$x" = "X-L$additional_libdir"; then
13759 if test -z "$haveit"; then
13760 if test -d "$additional_libdir"; then
13761 LIBRT="${LIBRT}${LIBRT:+ }-L$additional_libdir"
13765 for x in $LDFLAGS $LTLIBRT; do
13767 acl_save_prefix="$prefix"
13768 prefix="$acl_final_prefix"
13769 acl_save_exec_prefix="$exec_prefix"
13770 exec_prefix="$acl_final_exec_prefix"
13772 exec_prefix="$acl_save_exec_prefix"
13773 prefix="$acl_save_prefix"
13775 if test "X$x" = "X-L$additional_libdir"; then
13780 if test -z "$haveit"; then
13781 if test -d "$additional_libdir"; then
13782 LTLIBRT="${LTLIBRT}${LTLIBRT:+ }-L$additional_libdir"
13789 dir=`echo "X$dep" | sed -e 's/^X-R//'`
13790 if test "$enable_rpath" != no; then
13792 for x in $rpathdirs; do
13793 if test "X$x" = "X$dir"; then
13798 if test -z "$haveit"; then
13799 rpathdirs="$rpathdirs $dir"
13802 for x in $ltrpathdirs; do
13803 if test "X$x" = "X$dir"; then
13808 if test -z "$haveit"; then
13809 ltrpathdirs="$ltrpathdirs $dir"
13814 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
13817 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
13820 LIBRT="${LIBRT}${LIBRT:+ }$dep"
13821 LTLIBRT="${LTLIBRT}${LTLIBRT:+ }$dep"
13827 LIBRT="${LIBRT}${LIBRT:+ }-l$name"
13828 LTLIBRT="${LTLIBRT}${LTLIBRT:+ }-l$name"
13834 if test "X$rpathdirs" != "X"; then
13835 if test -n "$acl_hardcode_libdir_separator"; then
13837 for found_dir in $rpathdirs; do
13838 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
13840 acl_save_libdir="$libdir"
13842 eval flag=\"$acl_hardcode_libdir_flag_spec\"
13843 libdir="$acl_save_libdir"
13844 LIBRT="${LIBRT}${LIBRT:+ }$flag"
13846 for found_dir in $rpathdirs; do
13847 acl_save_libdir="$libdir"
13848 libdir="$found_dir"
13849 eval flag=\"$acl_hardcode_libdir_flag_spec\"
13850 libdir="$acl_save_libdir"
13851 LIBRT="${LIBRT}${LIBRT:+ }$flag"
13855 if test "X$ltrpathdirs" != "X"; then
13856 for found_dir in $ltrpathdirs; do
13857 LTLIBRT="${LTLIBRT}${LTLIBRT:+ }-R$found_dir"
13867 ac_save_CPPFLAGS="$CPPFLAGS"
13869 for element in $INCRT; do
13871 for x in $CPPFLAGS; do
13873 acl_save_prefix="$prefix"
13874 prefix="$acl_final_prefix"
13875 acl_save_exec_prefix="$exec_prefix"
13876 exec_prefix="$acl_final_exec_prefix"
13878 exec_prefix="$acl_save_exec_prefix"
13879 prefix="$acl_save_prefix"
13881 if test "X$x" = "X$element"; then
13886 if test -z "$haveit"; then
13887 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
13892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for librt" >&5
13893 $as_echo_n "checking for librt... " >&6; }
13894 if ${ac_cv_librt+:} false; then :
13895 $as_echo_n "(cached) " >&6
13898 ac_save_LIBS="$LIBS"
13900 *" -l"*) LIBS="$LIBS $LIBRT" ;;
13901 *) LIBS="$LIBRT $LIBS" ;;
13903 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13904 /* end confdefs.h. */
13914 if ac_fn_c_try_link "$LINENO"; then :
13919 rm -f core conftest.err conftest.$ac_objext \
13920 conftest$ac_exeext conftest.$ac_ext
13921 LIBS="$ac_save_LIBS"
13924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_librt" >&5
13925 $as_echo "$ac_cv_librt" >&6; }
13926 if test "$ac_cv_librt" = yes; then
13929 $as_echo "#define HAVE_LIBRT 1" >>confdefs.h
13931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with librt" >&5
13932 $as_echo_n "checking how to link with librt... " >&6; }
13933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBRT" >&5
13934 $as_echo "$LIBRT" >&6; }
13937 CPPFLAGS="$ac_save_CPPFLAGS"
13949 gnutls_needs_librt=yes
13952 if test "$ac_cv_func_inet_pton" != "yes";then
13968 acl_save_prefix="$prefix"
13969 prefix="$acl_final_prefix"
13970 acl_save_exec_prefix="$exec_prefix"
13971 exec_prefix="$acl_final_exec_prefix"
13973 eval additional_includedir=\"$includedir\"
13974 eval additional_libdir=\"$libdir\"
13976 exec_prefix="$acl_save_exec_prefix"
13977 prefix="$acl_save_prefix"
13980 # Check whether --with-libnsl-prefix was given.
13981 if test "${with_libnsl_prefix+set}" = set; then :
13982 withval=$with_libnsl_prefix;
13983 if test "X$withval" = "Xno"; then
13986 if test "X$withval" = "X"; then
13988 acl_save_prefix="$prefix"
13989 prefix="$acl_final_prefix"
13990 acl_save_exec_prefix="$exec_prefix"
13991 exec_prefix="$acl_final_exec_prefix"
13993 eval additional_includedir=\"$includedir\"
13994 eval additional_libdir=\"$libdir\"
13996 exec_prefix="$acl_save_exec_prefix"
13997 prefix="$acl_save_prefix"
14000 additional_includedir="$withval/include"
14001 additional_libdir="$withval/$acl_libdirstem"
14002 if test "$acl_libdirstem2" != "$acl_libdirstem" \
14003 && ! test -d "$withval/$acl_libdirstem"; then
14004 additional_libdir="$withval/$acl_libdirstem2"
14018 names_already_handled=
14019 names_next_round='nsl '
14020 while test -n "$names_next_round"; do
14021 names_this_round="$names_next_round"
14023 for name in $names_this_round; do
14025 for n in $names_already_handled; do
14026 if test "$n" = "$name"; then
14027 already_handled=yes
14031 if test -z "$already_handled"; then
14032 names_already_handled="$names_already_handled $name"
14033 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
14034 eval value=\"\$HAVE_LIB$uppername\"
14035 if test -n "$value"; then
14036 if test "$value" = yes; then
14037 eval value=\"\$LIB$uppername\"
14038 test -z "$value" || LIBNSL="${LIBNSL}${LIBNSL:+ }$value"
14039 eval value=\"\$LTLIB$uppername\"
14040 test -z "$value" || LTLIBNSL="${LTLIBNSL}${LTLIBNSL:+ }$value"
14049 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
14050 if test -n "$acl_shlibext"; then
14051 shrext=".$acl_shlibext" # typically: shrext=.so
14055 if test $use_additional = yes; then
14056 dir="$additional_libdir"
14057 if test -n "$acl_shlibext"; then
14058 if test -f "$dir/$libname$shrext"; then
14060 found_so="$dir/$libname$shrext"
14062 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
14063 ver=`(cd "$dir" && \
14064 for f in "$libname$shrext".*; do echo "$f"; done \
14065 | sed -e "s,^$libname$shrext\\\\.,," \
14066 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
14067 | sed 1q ) 2>/dev/null`
14068 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
14070 found_so="$dir/$libname$shrext.$ver"
14073 eval library_names=\"$acl_library_names_spec\"
14074 for f in $library_names; do
14075 if test -f "$dir/$f"; then
14084 if test "X$found_dir" = "X"; then
14085 if test -f "$dir/$libname.$acl_libext"; then
14087 found_a="$dir/$libname.$acl_libext"
14090 if test "X$found_dir" != "X"; then
14091 if test -f "$dir/$libname.la"; then
14092 found_la="$dir/$libname.la"
14096 if test "X$found_dir" = "X"; then
14097 for x in $LDFLAGS $LTLIBNSL; do
14099 acl_save_prefix="$prefix"
14100 prefix="$acl_final_prefix"
14101 acl_save_exec_prefix="$exec_prefix"
14102 exec_prefix="$acl_final_exec_prefix"
14104 exec_prefix="$acl_save_exec_prefix"
14105 prefix="$acl_save_prefix"
14109 dir=`echo "X$x" | sed -e 's/^X-L//'`
14110 if test -n "$acl_shlibext"; then
14111 if test -f "$dir/$libname$shrext"; then
14113 found_so="$dir/$libname$shrext"
14115 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
14116 ver=`(cd "$dir" && \
14117 for f in "$libname$shrext".*; do echo "$f"; done \
14118 | sed -e "s,^$libname$shrext\\\\.,," \
14119 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
14120 | sed 1q ) 2>/dev/null`
14121 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
14123 found_so="$dir/$libname$shrext.$ver"
14126 eval library_names=\"$acl_library_names_spec\"
14127 for f in $library_names; do
14128 if test -f "$dir/$f"; then
14137 if test "X$found_dir" = "X"; then
14138 if test -f "$dir/$libname.$acl_libext"; then
14140 found_a="$dir/$libname.$acl_libext"
14143 if test "X$found_dir" != "X"; then
14144 if test -f "$dir/$libname.la"; then
14145 found_la="$dir/$libname.la"
14150 if test "X$found_dir" != "X"; then
14155 if test "X$found_dir" != "X"; then
14156 LTLIBNSL="${LTLIBNSL}${LTLIBNSL:+ }-L$found_dir -l$name"
14157 if test "X$found_so" != "X"; then
14158 if test "$enable_rpath" = no \
14159 || test "X$found_dir" = "X/usr/$acl_libdirstem" \
14160 || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
14161 LIBNSL="${LIBNSL}${LIBNSL:+ }$found_so"
14164 for x in $ltrpathdirs; do
14165 if test "X$x" = "X$found_dir"; then
14170 if test -z "$haveit"; then
14171 ltrpathdirs="$ltrpathdirs $found_dir"
14173 if test "$acl_hardcode_direct" = yes; then
14174 LIBNSL="${LIBNSL}${LIBNSL:+ }$found_so"
14176 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
14177 LIBNSL="${LIBNSL}${LIBNSL:+ }$found_so"
14179 for x in $rpathdirs; do
14180 if test "X$x" = "X$found_dir"; then
14185 if test -z "$haveit"; then
14186 rpathdirs="$rpathdirs $found_dir"
14190 for x in $LDFLAGS $LIBNSL; do
14192 acl_save_prefix="$prefix"
14193 prefix="$acl_final_prefix"
14194 acl_save_exec_prefix="$exec_prefix"
14195 exec_prefix="$acl_final_exec_prefix"
14197 exec_prefix="$acl_save_exec_prefix"
14198 prefix="$acl_save_prefix"
14200 if test "X$x" = "X-L$found_dir"; then
14205 if test -z "$haveit"; then
14206 LIBNSL="${LIBNSL}${LIBNSL:+ }-L$found_dir"
14208 if test "$acl_hardcode_minus_L" != no; then
14209 LIBNSL="${LIBNSL}${LIBNSL:+ }$found_so"
14211 LIBNSL="${LIBNSL}${LIBNSL:+ }-l$name"
14217 if test "X$found_a" != "X"; then
14218 LIBNSL="${LIBNSL}${LIBNSL:+ }$found_a"
14220 LIBNSL="${LIBNSL}${LIBNSL:+ }-L$found_dir -l$name"
14223 additional_includedir=
14224 case "$found_dir" in
14225 */$acl_libdirstem | */$acl_libdirstem/)
14226 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
14227 if test "$name" = 'nsl'; then
14228 LIBNSL_PREFIX="$basedir"
14230 additional_includedir="$basedir/include"
14232 */$acl_libdirstem2 | */$acl_libdirstem2/)
14233 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
14234 if test "$name" = 'nsl'; then
14235 LIBNSL_PREFIX="$basedir"
14237 additional_includedir="$basedir/include"
14240 if test "X$additional_includedir" != "X"; then
14241 if test "X$additional_includedir" != "X/usr/include"; then
14243 if test "X$additional_includedir" = "X/usr/local/include"; then
14244 if test -n "$GCC"; then
14246 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
14250 if test -z "$haveit"; then
14251 for x in $CPPFLAGS $INCNSL; do
14253 acl_save_prefix="$prefix"
14254 prefix="$acl_final_prefix"
14255 acl_save_exec_prefix="$exec_prefix"
14256 exec_prefix="$acl_final_exec_prefix"
14258 exec_prefix="$acl_save_exec_prefix"
14259 prefix="$acl_save_prefix"
14261 if test "X$x" = "X-I$additional_includedir"; then
14266 if test -z "$haveit"; then
14267 if test -d "$additional_includedir"; then
14268 INCNSL="${INCNSL}${INCNSL:+ }-I$additional_includedir"
14274 if test -n "$found_la"; then
14275 save_libdir="$libdir"
14276 case "$found_la" in
14277 */* | *\\*) . "$found_la" ;;
14278 *) . "./$found_la" ;;
14280 libdir="$save_libdir"
14281 for dep in $dependency_libs; do
14284 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
14285 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
14286 && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
14288 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
14289 || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
14290 if test -n "$GCC"; then
14292 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
14296 if test -z "$haveit"; then
14298 for x in $LDFLAGS $LIBNSL; do
14300 acl_save_prefix="$prefix"
14301 prefix="$acl_final_prefix"
14302 acl_save_exec_prefix="$exec_prefix"
14303 exec_prefix="$acl_final_exec_prefix"
14305 exec_prefix="$acl_save_exec_prefix"
14306 prefix="$acl_save_prefix"
14308 if test "X$x" = "X-L$additional_libdir"; then
14313 if test -z "$haveit"; then
14314 if test -d "$additional_libdir"; then
14315 LIBNSL="${LIBNSL}${LIBNSL:+ }-L$additional_libdir"
14319 for x in $LDFLAGS $LTLIBNSL; do
14321 acl_save_prefix="$prefix"
14322 prefix="$acl_final_prefix"
14323 acl_save_exec_prefix="$exec_prefix"
14324 exec_prefix="$acl_final_exec_prefix"
14326 exec_prefix="$acl_save_exec_prefix"
14327 prefix="$acl_save_prefix"
14329 if test "X$x" = "X-L$additional_libdir"; then
14334 if test -z "$haveit"; then
14335 if test -d "$additional_libdir"; then
14336 LTLIBNSL="${LTLIBNSL}${LTLIBNSL:+ }-L$additional_libdir"
14343 dir=`echo "X$dep" | sed -e 's/^X-R//'`
14344 if test "$enable_rpath" != no; then
14346 for x in $rpathdirs; do
14347 if test "X$x" = "X$dir"; then
14352 if test -z "$haveit"; then
14353 rpathdirs="$rpathdirs $dir"
14356 for x in $ltrpathdirs; do
14357 if test "X$x" = "X$dir"; then
14362 if test -z "$haveit"; then
14363 ltrpathdirs="$ltrpathdirs $dir"
14368 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
14371 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
14374 LIBNSL="${LIBNSL}${LIBNSL:+ }$dep"
14375 LTLIBNSL="${LTLIBNSL}${LTLIBNSL:+ }$dep"
14381 LIBNSL="${LIBNSL}${LIBNSL:+ }-l$name"
14382 LTLIBNSL="${LTLIBNSL}${LTLIBNSL:+ }-l$name"
14388 if test "X$rpathdirs" != "X"; then
14389 if test -n "$acl_hardcode_libdir_separator"; then
14391 for found_dir in $rpathdirs; do
14392 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
14394 acl_save_libdir="$libdir"
14396 eval flag=\"$acl_hardcode_libdir_flag_spec\"
14397 libdir="$acl_save_libdir"
14398 LIBNSL="${LIBNSL}${LIBNSL:+ }$flag"
14400 for found_dir in $rpathdirs; do
14401 acl_save_libdir="$libdir"
14402 libdir="$found_dir"
14403 eval flag=\"$acl_hardcode_libdir_flag_spec\"
14404 libdir="$acl_save_libdir"
14405 LIBNSL="${LIBNSL}${LIBNSL:+ }$flag"
14409 if test "X$ltrpathdirs" != "X"; then
14410 for found_dir in $ltrpathdirs; do
14411 LTLIBNSL="${LTLIBNSL}${LTLIBNSL:+ }-R$found_dir"
14421 ac_save_CPPFLAGS="$CPPFLAGS"
14423 for element in $INCNSL; do
14425 for x in $CPPFLAGS; do
14427 acl_save_prefix="$prefix"
14428 prefix="$acl_final_prefix"
14429 acl_save_exec_prefix="$exec_prefix"
14430 exec_prefix="$acl_final_exec_prefix"
14432 exec_prefix="$acl_save_exec_prefix"
14433 prefix="$acl_save_prefix"
14435 if test "X$x" = "X$element"; then
14440 if test -z "$haveit"; then
14441 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
14446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libnsl" >&5
14447 $as_echo_n "checking for libnsl... " >&6; }
14448 if ${ac_cv_libnsl+:} false; then :
14449 $as_echo_n "(cached) " >&6
14452 ac_save_LIBS="$LIBS"
14454 *" -l"*) LIBS="$LIBS $LIBNSL" ;;
14455 *) LIBS="$LIBNSL $LIBS" ;;
14457 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14458 /* end confdefs.h. */
14459 #include <arpa/inet.h>
14468 if ac_fn_c_try_link "$LINENO"; then :
14473 rm -f core conftest.err conftest.$ac_objext \
14474 conftest$ac_exeext conftest.$ac_ext
14475 LIBS="$ac_save_LIBS"
14478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libnsl" >&5
14479 $as_echo "$ac_cv_libnsl" >&6; }
14480 if test "$ac_cv_libnsl" = yes; then
14483 $as_echo "#define HAVE_LIBNSL 1" >>confdefs.h
14485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libnsl" >&5
14486 $as_echo_n "checking how to link with libnsl... " >&6; }
14487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBNSL" >&5
14488 $as_echo "$LIBNSL" >&6; }
14491 CPPFLAGS="$ac_save_CPPFLAGS"
14505 if test "$ac_cv_func_clock_gettime" != "yes";then
14521 acl_save_prefix="$prefix"
14522 prefix="$acl_final_prefix"
14523 acl_save_exec_prefix="$exec_prefix"
14524 exec_prefix="$acl_final_exec_prefix"
14526 eval additional_includedir=\"$includedir\"
14527 eval additional_libdir=\"$libdir\"
14529 exec_prefix="$acl_save_exec_prefix"
14530 prefix="$acl_save_prefix"
14533 # Check whether --with-librt-prefix was given.
14534 if test "${with_librt_prefix+set}" = set; then :
14535 withval=$with_librt_prefix;
14536 if test "X$withval" = "Xno"; then
14539 if test "X$withval" = "X"; then
14541 acl_save_prefix="$prefix"
14542 prefix="$acl_final_prefix"
14543 acl_save_exec_prefix="$exec_prefix"
14544 exec_prefix="$acl_final_exec_prefix"
14546 eval additional_includedir=\"$includedir\"
14547 eval additional_libdir=\"$libdir\"
14549 exec_prefix="$acl_save_exec_prefix"
14550 prefix="$acl_save_prefix"
14553 additional_includedir="$withval/include"
14554 additional_libdir="$withval/$acl_libdirstem"
14555 if test "$acl_libdirstem2" != "$acl_libdirstem" \
14556 && ! test -d "$withval/$acl_libdirstem"; then
14557 additional_libdir="$withval/$acl_libdirstem2"
14571 names_already_handled=
14572 names_next_round='rt '
14573 while test -n "$names_next_round"; do
14574 names_this_round="$names_next_round"
14576 for name in $names_this_round; do
14578 for n in $names_already_handled; do
14579 if test "$n" = "$name"; then
14580 already_handled=yes
14584 if test -z "$already_handled"; then
14585 names_already_handled="$names_already_handled $name"
14586 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
14587 eval value=\"\$HAVE_LIB$uppername\"
14588 if test -n "$value"; then
14589 if test "$value" = yes; then
14590 eval value=\"\$LIB$uppername\"
14591 test -z "$value" || LIBRT="${LIBRT}${LIBRT:+ }$value"
14592 eval value=\"\$LTLIB$uppername\"
14593 test -z "$value" || LTLIBRT="${LTLIBRT}${LTLIBRT:+ }$value"
14602 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
14603 if test -n "$acl_shlibext"; then
14604 shrext=".$acl_shlibext" # typically: shrext=.so
14608 if test $use_additional = yes; then
14609 dir="$additional_libdir"
14610 if test -n "$acl_shlibext"; then
14611 if test -f "$dir/$libname$shrext"; then
14613 found_so="$dir/$libname$shrext"
14615 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
14616 ver=`(cd "$dir" && \
14617 for f in "$libname$shrext".*; do echo "$f"; done \
14618 | sed -e "s,^$libname$shrext\\\\.,," \
14619 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
14620 | sed 1q ) 2>/dev/null`
14621 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
14623 found_so="$dir/$libname$shrext.$ver"
14626 eval library_names=\"$acl_library_names_spec\"
14627 for f in $library_names; do
14628 if test -f "$dir/$f"; then
14637 if test "X$found_dir" = "X"; then
14638 if test -f "$dir/$libname.$acl_libext"; then
14640 found_a="$dir/$libname.$acl_libext"
14643 if test "X$found_dir" != "X"; then
14644 if test -f "$dir/$libname.la"; then
14645 found_la="$dir/$libname.la"
14649 if test "X$found_dir" = "X"; then
14650 for x in $LDFLAGS $LTLIBRT; do
14652 acl_save_prefix="$prefix"
14653 prefix="$acl_final_prefix"
14654 acl_save_exec_prefix="$exec_prefix"
14655 exec_prefix="$acl_final_exec_prefix"
14657 exec_prefix="$acl_save_exec_prefix"
14658 prefix="$acl_save_prefix"
14662 dir=`echo "X$x" | sed -e 's/^X-L//'`
14663 if test -n "$acl_shlibext"; then
14664 if test -f "$dir/$libname$shrext"; then
14666 found_so="$dir/$libname$shrext"
14668 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
14669 ver=`(cd "$dir" && \
14670 for f in "$libname$shrext".*; do echo "$f"; done \
14671 | sed -e "s,^$libname$shrext\\\\.,," \
14672 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
14673 | sed 1q ) 2>/dev/null`
14674 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
14676 found_so="$dir/$libname$shrext.$ver"
14679 eval library_names=\"$acl_library_names_spec\"
14680 for f in $library_names; do
14681 if test -f "$dir/$f"; then
14690 if test "X$found_dir" = "X"; then
14691 if test -f "$dir/$libname.$acl_libext"; then
14693 found_a="$dir/$libname.$acl_libext"
14696 if test "X$found_dir" != "X"; then
14697 if test -f "$dir/$libname.la"; then
14698 found_la="$dir/$libname.la"
14703 if test "X$found_dir" != "X"; then
14708 if test "X$found_dir" != "X"; then
14709 LTLIBRT="${LTLIBRT}${LTLIBRT:+ }-L$found_dir -l$name"
14710 if test "X$found_so" != "X"; then
14711 if test "$enable_rpath" = no \
14712 || test "X$found_dir" = "X/usr/$acl_libdirstem" \
14713 || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
14714 LIBRT="${LIBRT}${LIBRT:+ }$found_so"
14717 for x in $ltrpathdirs; do
14718 if test "X$x" = "X$found_dir"; then
14723 if test -z "$haveit"; then
14724 ltrpathdirs="$ltrpathdirs $found_dir"
14726 if test "$acl_hardcode_direct" = yes; then
14727 LIBRT="${LIBRT}${LIBRT:+ }$found_so"
14729 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
14730 LIBRT="${LIBRT}${LIBRT:+ }$found_so"
14732 for x in $rpathdirs; do
14733 if test "X$x" = "X$found_dir"; then
14738 if test -z "$haveit"; then
14739 rpathdirs="$rpathdirs $found_dir"
14743 for x in $LDFLAGS $LIBRT; do
14745 acl_save_prefix="$prefix"
14746 prefix="$acl_final_prefix"
14747 acl_save_exec_prefix="$exec_prefix"
14748 exec_prefix="$acl_final_exec_prefix"
14750 exec_prefix="$acl_save_exec_prefix"
14751 prefix="$acl_save_prefix"
14753 if test "X$x" = "X-L$found_dir"; then
14758 if test -z "$haveit"; then
14759 LIBRT="${LIBRT}${LIBRT:+ }-L$found_dir"
14761 if test "$acl_hardcode_minus_L" != no; then
14762 LIBRT="${LIBRT}${LIBRT:+ }$found_so"
14764 LIBRT="${LIBRT}${LIBRT:+ }-l$name"
14770 if test "X$found_a" != "X"; then
14771 LIBRT="${LIBRT}${LIBRT:+ }$found_a"
14773 LIBRT="${LIBRT}${LIBRT:+ }-L$found_dir -l$name"
14776 additional_includedir=
14777 case "$found_dir" in
14778 */$acl_libdirstem | */$acl_libdirstem/)
14779 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
14780 if test "$name" = 'rt'; then
14781 LIBRT_PREFIX="$basedir"
14783 additional_includedir="$basedir/include"
14785 */$acl_libdirstem2 | */$acl_libdirstem2/)
14786 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
14787 if test "$name" = 'rt'; then
14788 LIBRT_PREFIX="$basedir"
14790 additional_includedir="$basedir/include"
14793 if test "X$additional_includedir" != "X"; then
14794 if test "X$additional_includedir" != "X/usr/include"; then
14796 if test "X$additional_includedir" = "X/usr/local/include"; then
14797 if test -n "$GCC"; then
14799 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
14803 if test -z "$haveit"; then
14804 for x in $CPPFLAGS $INCRT; do
14806 acl_save_prefix="$prefix"
14807 prefix="$acl_final_prefix"
14808 acl_save_exec_prefix="$exec_prefix"
14809 exec_prefix="$acl_final_exec_prefix"
14811 exec_prefix="$acl_save_exec_prefix"
14812 prefix="$acl_save_prefix"
14814 if test "X$x" = "X-I$additional_includedir"; then
14819 if test -z "$haveit"; then
14820 if test -d "$additional_includedir"; then
14821 INCRT="${INCRT}${INCRT:+ }-I$additional_includedir"
14827 if test -n "$found_la"; then
14828 save_libdir="$libdir"
14829 case "$found_la" in
14830 */* | *\\*) . "$found_la" ;;
14831 *) . "./$found_la" ;;
14833 libdir="$save_libdir"
14834 for dep in $dependency_libs; do
14837 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
14838 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
14839 && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
14841 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
14842 || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
14843 if test -n "$GCC"; then
14845 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
14849 if test -z "$haveit"; then
14851 for x in $LDFLAGS $LIBRT; do
14853 acl_save_prefix="$prefix"
14854 prefix="$acl_final_prefix"
14855 acl_save_exec_prefix="$exec_prefix"
14856 exec_prefix="$acl_final_exec_prefix"
14858 exec_prefix="$acl_save_exec_prefix"
14859 prefix="$acl_save_prefix"
14861 if test "X$x" = "X-L$additional_libdir"; then
14866 if test -z "$haveit"; then
14867 if test -d "$additional_libdir"; then
14868 LIBRT="${LIBRT}${LIBRT:+ }-L$additional_libdir"
14872 for x in $LDFLAGS $LTLIBRT; do
14874 acl_save_prefix="$prefix"
14875 prefix="$acl_final_prefix"
14876 acl_save_exec_prefix="$exec_prefix"
14877 exec_prefix="$acl_final_exec_prefix"
14879 exec_prefix="$acl_save_exec_prefix"
14880 prefix="$acl_save_prefix"
14882 if test "X$x" = "X-L$additional_libdir"; then
14887 if test -z "$haveit"; then
14888 if test -d "$additional_libdir"; then
14889 LTLIBRT="${LTLIBRT}${LTLIBRT:+ }-L$additional_libdir"
14896 dir=`echo "X$dep" | sed -e 's/^X-R//'`
14897 if test "$enable_rpath" != no; then
14899 for x in $rpathdirs; do
14900 if test "X$x" = "X$dir"; then
14905 if test -z "$haveit"; then
14906 rpathdirs="$rpathdirs $dir"
14909 for x in $ltrpathdirs; do
14910 if test "X$x" = "X$dir"; then
14915 if test -z "$haveit"; then
14916 ltrpathdirs="$ltrpathdirs $dir"
14921 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
14924 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
14927 LIBRT="${LIBRT}${LIBRT:+ }$dep"
14928 LTLIBRT="${LTLIBRT}${LTLIBRT:+ }$dep"
14934 LIBRT="${LIBRT}${LIBRT:+ }-l$name"
14935 LTLIBRT="${LTLIBRT}${LTLIBRT:+ }-l$name"
14941 if test "X$rpathdirs" != "X"; then
14942 if test -n "$acl_hardcode_libdir_separator"; then
14944 for found_dir in $rpathdirs; do
14945 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
14947 acl_save_libdir="$libdir"
14949 eval flag=\"$acl_hardcode_libdir_flag_spec\"
14950 libdir="$acl_save_libdir"
14951 LIBRT="${LIBRT}${LIBRT:+ }$flag"
14953 for found_dir in $rpathdirs; do
14954 acl_save_libdir="$libdir"
14955 libdir="$found_dir"
14956 eval flag=\"$acl_hardcode_libdir_flag_spec\"
14957 libdir="$acl_save_libdir"
14958 LIBRT="${LIBRT}${LIBRT:+ }$flag"
14962 if test "X$ltrpathdirs" != "X"; then
14963 for found_dir in $ltrpathdirs; do
14964 LTLIBRT="${LTLIBRT}${LTLIBRT:+ }-R$found_dir"
14974 ac_save_CPPFLAGS="$CPPFLAGS"
14976 for element in $INCRT; do
14978 for x in $CPPFLAGS; do
14980 acl_save_prefix="$prefix"
14981 prefix="$acl_final_prefix"
14982 acl_save_exec_prefix="$exec_prefix"
14983 exec_prefix="$acl_final_exec_prefix"
14985 exec_prefix="$acl_save_exec_prefix"
14986 prefix="$acl_save_prefix"
14988 if test "X$x" = "X$element"; then
14993 if test -z "$haveit"; then
14994 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
14999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for librt" >&5
15000 $as_echo_n "checking for librt... " >&6; }
15001 if ${ac_cv_librt+:} false; then :
15002 $as_echo_n "(cached) " >&6
15005 ac_save_LIBS="$LIBS"
15007 *" -l"*) LIBS="$LIBS $LIBRT" ;;
15008 *) LIBS="$LIBRT $LIBS" ;;
15010 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15011 /* end confdefs.h. */
15016 clock_gettime (0, 0);
15021 if ac_fn_c_try_link "$LINENO"; then :
15026 rm -f core conftest.err conftest.$ac_objext \
15027 conftest$ac_exeext conftest.$ac_ext
15028 LIBS="$ac_save_LIBS"
15031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_librt" >&5
15032 $as_echo "$ac_cv_librt" >&6; }
15033 if test "$ac_cv_librt" = yes; then
15036 $as_echo "#define HAVE_LIBRT 1" >>confdefs.h
15038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with librt" >&5
15039 $as_echo_n "checking how to link with librt... " >&6; }
15040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBRT" >&5
15041 $as_echo "$LIBRT" >&6; }
15044 CPPFLAGS="$ac_save_CPPFLAGS"
15056 gnutls_needs_librt=yes
15060 if test "$ac_cv_func_iconv" != "yes";then
15076 acl_save_prefix="$prefix"
15077 prefix="$acl_final_prefix"
15078 acl_save_exec_prefix="$exec_prefix"
15079 exec_prefix="$acl_final_exec_prefix"
15081 eval additional_includedir=\"$includedir\"
15082 eval additional_libdir=\"$libdir\"
15084 exec_prefix="$acl_save_exec_prefix"
15085 prefix="$acl_save_prefix"
15088 # Check whether --with-libiconv-prefix was given.
15089 if test "${with_libiconv_prefix+set}" = set; then :
15090 withval=$with_libiconv_prefix;
15091 if test "X$withval" = "Xno"; then
15094 if test "X$withval" = "X"; then
15096 acl_save_prefix="$prefix"
15097 prefix="$acl_final_prefix"
15098 acl_save_exec_prefix="$exec_prefix"
15099 exec_prefix="$acl_final_exec_prefix"
15101 eval additional_includedir=\"$includedir\"
15102 eval additional_libdir=\"$libdir\"
15104 exec_prefix="$acl_save_exec_prefix"
15105 prefix="$acl_save_prefix"
15108 additional_includedir="$withval/include"
15109 additional_libdir="$withval/$acl_libdirstem"
15110 if test "$acl_libdirstem2" != "$acl_libdirstem" \
15111 && ! test -d "$withval/$acl_libdirstem"; then
15112 additional_libdir="$withval/$acl_libdirstem2"
15126 names_already_handled=
15127 names_next_round='iconv '
15128 while test -n "$names_next_round"; do
15129 names_this_round="$names_next_round"
15131 for name in $names_this_round; do
15133 for n in $names_already_handled; do
15134 if test "$n" = "$name"; then
15135 already_handled=yes
15139 if test -z "$already_handled"; then
15140 names_already_handled="$names_already_handled $name"
15141 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
15142 eval value=\"\$HAVE_LIB$uppername\"
15143 if test -n "$value"; then
15144 if test "$value" = yes; then
15145 eval value=\"\$LIB$uppername\"
15146 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
15147 eval value=\"\$LTLIB$uppername\"
15148 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
15157 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
15158 if test -n "$acl_shlibext"; then
15159 shrext=".$acl_shlibext" # typically: shrext=.so
15163 if test $use_additional = yes; then
15164 dir="$additional_libdir"
15165 if test -n "$acl_shlibext"; then
15166 if test -f "$dir/$libname$shrext"; then
15168 found_so="$dir/$libname$shrext"
15170 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
15171 ver=`(cd "$dir" && \
15172 for f in "$libname$shrext".*; do echo "$f"; done \
15173 | sed -e "s,^$libname$shrext\\\\.,," \
15174 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
15175 | sed 1q ) 2>/dev/null`
15176 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
15178 found_so="$dir/$libname$shrext.$ver"
15181 eval library_names=\"$acl_library_names_spec\"
15182 for f in $library_names; do
15183 if test -f "$dir/$f"; then
15192 if test "X$found_dir" = "X"; then
15193 if test -f "$dir/$libname.$acl_libext"; then
15195 found_a="$dir/$libname.$acl_libext"
15198 if test "X$found_dir" != "X"; then
15199 if test -f "$dir/$libname.la"; then
15200 found_la="$dir/$libname.la"
15204 if test "X$found_dir" = "X"; then
15205 for x in $LDFLAGS $LTLIBICONV; do
15207 acl_save_prefix="$prefix"
15208 prefix="$acl_final_prefix"
15209 acl_save_exec_prefix="$exec_prefix"
15210 exec_prefix="$acl_final_exec_prefix"
15212 exec_prefix="$acl_save_exec_prefix"
15213 prefix="$acl_save_prefix"
15217 dir=`echo "X$x" | sed -e 's/^X-L//'`
15218 if test -n "$acl_shlibext"; then
15219 if test -f "$dir/$libname$shrext"; then
15221 found_so="$dir/$libname$shrext"
15223 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
15224 ver=`(cd "$dir" && \
15225 for f in "$libname$shrext".*; do echo "$f"; done \
15226 | sed -e "s,^$libname$shrext\\\\.,," \
15227 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
15228 | sed 1q ) 2>/dev/null`
15229 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
15231 found_so="$dir/$libname$shrext.$ver"
15234 eval library_names=\"$acl_library_names_spec\"
15235 for f in $library_names; do
15236 if test -f "$dir/$f"; then
15245 if test "X$found_dir" = "X"; then
15246 if test -f "$dir/$libname.$acl_libext"; then
15248 found_a="$dir/$libname.$acl_libext"
15251 if test "X$found_dir" != "X"; then
15252 if test -f "$dir/$libname.la"; then
15253 found_la="$dir/$libname.la"
15258 if test "X$found_dir" != "X"; then
15263 if test "X$found_dir" != "X"; then
15264 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
15265 if test "X$found_so" != "X"; then
15266 if test "$enable_rpath" = no \
15267 || test "X$found_dir" = "X/usr/$acl_libdirstem" \
15268 || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
15269 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
15272 for x in $ltrpathdirs; do
15273 if test "X$x" = "X$found_dir"; then
15278 if test -z "$haveit"; then
15279 ltrpathdirs="$ltrpathdirs $found_dir"
15281 if test "$acl_hardcode_direct" = yes; then
15282 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
15284 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
15285 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
15287 for x in $rpathdirs; do
15288 if test "X$x" = "X$found_dir"; then
15293 if test -z "$haveit"; then
15294 rpathdirs="$rpathdirs $found_dir"
15298 for x in $LDFLAGS $LIBICONV; do
15300 acl_save_prefix="$prefix"
15301 prefix="$acl_final_prefix"
15302 acl_save_exec_prefix="$exec_prefix"
15303 exec_prefix="$acl_final_exec_prefix"
15305 exec_prefix="$acl_save_exec_prefix"
15306 prefix="$acl_save_prefix"
15308 if test "X$x" = "X-L$found_dir"; then
15313 if test -z "$haveit"; then
15314 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
15316 if test "$acl_hardcode_minus_L" != no; then
15317 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
15319 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
15325 if test "X$found_a" != "X"; then
15326 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
15328 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
15331 additional_includedir=
15332 case "$found_dir" in
15333 */$acl_libdirstem | */$acl_libdirstem/)
15334 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
15335 if test "$name" = 'iconv'; then
15336 LIBICONV_PREFIX="$basedir"
15338 additional_includedir="$basedir/include"
15340 */$acl_libdirstem2 | */$acl_libdirstem2/)
15341 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
15342 if test "$name" = 'iconv'; then
15343 LIBICONV_PREFIX="$basedir"
15345 additional_includedir="$basedir/include"
15348 if test "X$additional_includedir" != "X"; then
15349 if test "X$additional_includedir" != "X/usr/include"; then
15351 if test "X$additional_includedir" = "X/usr/local/include"; then
15352 if test -n "$GCC"; then
15354 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
15358 if test -z "$haveit"; then
15359 for x in $CPPFLAGS $INCICONV; do
15361 acl_save_prefix="$prefix"
15362 prefix="$acl_final_prefix"
15363 acl_save_exec_prefix="$exec_prefix"
15364 exec_prefix="$acl_final_exec_prefix"
15366 exec_prefix="$acl_save_exec_prefix"
15367 prefix="$acl_save_prefix"
15369 if test "X$x" = "X-I$additional_includedir"; then
15374 if test -z "$haveit"; then
15375 if test -d "$additional_includedir"; then
15376 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
15382 if test -n "$found_la"; then
15383 save_libdir="$libdir"
15384 case "$found_la" in
15385 */* | *\\*) . "$found_la" ;;
15386 *) . "./$found_la" ;;
15388 libdir="$save_libdir"
15389 for dep in $dependency_libs; do
15392 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
15393 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
15394 && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
15396 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
15397 || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
15398 if test -n "$GCC"; then
15400 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
15404 if test -z "$haveit"; then
15406 for x in $LDFLAGS $LIBICONV; do
15408 acl_save_prefix="$prefix"
15409 prefix="$acl_final_prefix"
15410 acl_save_exec_prefix="$exec_prefix"
15411 exec_prefix="$acl_final_exec_prefix"
15413 exec_prefix="$acl_save_exec_prefix"
15414 prefix="$acl_save_prefix"
15416 if test "X$x" = "X-L$additional_libdir"; then
15421 if test -z "$haveit"; then
15422 if test -d "$additional_libdir"; then
15423 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
15427 for x in $LDFLAGS $LTLIBICONV; do
15429 acl_save_prefix="$prefix"
15430 prefix="$acl_final_prefix"
15431 acl_save_exec_prefix="$exec_prefix"
15432 exec_prefix="$acl_final_exec_prefix"
15434 exec_prefix="$acl_save_exec_prefix"
15435 prefix="$acl_save_prefix"
15437 if test "X$x" = "X-L$additional_libdir"; then
15442 if test -z "$haveit"; then
15443 if test -d "$additional_libdir"; then
15444 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
15451 dir=`echo "X$dep" | sed -e 's/^X-R//'`
15452 if test "$enable_rpath" != no; then
15454 for x in $rpathdirs; do
15455 if test "X$x" = "X$dir"; then
15460 if test -z "$haveit"; then
15461 rpathdirs="$rpathdirs $dir"
15464 for x in $ltrpathdirs; do
15465 if test "X$x" = "X$dir"; then
15470 if test -z "$haveit"; then
15471 ltrpathdirs="$ltrpathdirs $dir"
15476 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
15479 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
15482 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
15483 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
15489 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
15490 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
15496 if test "X$rpathdirs" != "X"; then
15497 if test -n "$acl_hardcode_libdir_separator"; then
15499 for found_dir in $rpathdirs; do
15500 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
15502 acl_save_libdir="$libdir"
15504 eval flag=\"$acl_hardcode_libdir_flag_spec\"
15505 libdir="$acl_save_libdir"
15506 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
15508 for found_dir in $rpathdirs; do
15509 acl_save_libdir="$libdir"
15510 libdir="$found_dir"
15511 eval flag=\"$acl_hardcode_libdir_flag_spec\"
15512 libdir="$acl_save_libdir"
15513 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
15517 if test "X$ltrpathdirs" != "X"; then
15518 for found_dir in $ltrpathdirs; do
15519 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
15529 ac_save_CPPFLAGS="$CPPFLAGS"
15531 for element in $INCICONV; do
15533 for x in $CPPFLAGS; do
15535 acl_save_prefix="$prefix"
15536 prefix="$acl_final_prefix"
15537 acl_save_exec_prefix="$exec_prefix"
15538 exec_prefix="$acl_final_exec_prefix"
15540 exec_prefix="$acl_save_exec_prefix"
15541 prefix="$acl_save_prefix"
15543 if test "X$x" = "X$element"; then
15548 if test -z "$haveit"; then
15549 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
15554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libiconv" >&5
15555 $as_echo_n "checking for libiconv... " >&6; }
15556 if ${ac_cv_libiconv+:} false; then :
15557 $as_echo_n "(cached) " >&6
15560 ac_save_LIBS="$LIBS"
15561 case " $LIBICONV" in
15562 *" -l"*) LIBS="$LIBS $LIBICONV" ;;
15563 *) LIBS="$LIBICONV $LIBS" ;;
15565 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15566 /* end confdefs.h. */
15571 iconv (0, 0, 0, 0, 0);
15576 if ac_fn_c_try_link "$LINENO"; then :
15579 ac_cv_libiconv='no'
15581 rm -f core conftest.err conftest.$ac_objext \
15582 conftest$ac_exeext conftest.$ac_ext
15583 LIBS="$ac_save_LIBS"
15586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libiconv" >&5
15587 $as_echo "$ac_cv_libiconv" >&6; }
15588 if test "$ac_cv_libiconv" = yes; then
15591 $as_echo "#define HAVE_LIBICONV 1" >>confdefs.h
15593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
15594 $as_echo_n "checking how to link with libiconv... " >&6; }
15595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
15596 $as_echo "$LIBICONV" >&6; }
15599 CPPFLAGS="$ac_save_CPPFLAGS"
15611 if test "$HAVE_LIBICONV" = "yes";then
15612 ac_have_unicode=yes
15615 ac_have_unicode=yes
15618 if test "$ac_have_unicode" != "yes";then
15619 if test "$have_win" = "yes";then
15620 ac_have_unicode=yes
15629 LIBC_FATAL_STDERR_=1
15630 export LIBC_FATAL_STDERR_
15632 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
15633 if test "x$ac_cv_type_size_t" = xyes; then :
15637 cat >>confdefs.h <<_ACEOF
15638 #define size_t unsigned int
15643 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
15644 # for constant arguments. Useless!
15645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
15646 $as_echo_n "checking for working alloca.h... " >&6; }
15647 if ${ac_cv_working_alloca_h+:} false; then :
15648 $as_echo_n "(cached) " >&6
15650 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15651 /* end confdefs.h. */
15652 #include <alloca.h>
15656 char *p = (char *) alloca (2 * sizeof (int));
15662 if ac_fn_c_try_link "$LINENO"; then :
15663 ac_cv_working_alloca_h=yes
15665 ac_cv_working_alloca_h=no
15667 rm -f core conftest.err conftest.$ac_objext \
15668 conftest$ac_exeext conftest.$ac_ext
15670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
15671 $as_echo "$ac_cv_working_alloca_h" >&6; }
15672 if test $ac_cv_working_alloca_h = yes; then
15674 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
15678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
15679 $as_echo_n "checking for alloca... " >&6; }
15680 if ${ac_cv_func_alloca_works+:} false; then :
15681 $as_echo_n "(cached) " >&6
15683 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15684 /* end confdefs.h. */
15686 # define alloca __builtin_alloca
15689 # include <malloc.h>
15690 # define alloca _alloca
15692 # ifdef HAVE_ALLOCA_H
15693 # include <alloca.h>
15698 # ifndef alloca /* predefined by HP cc +Olibcalls */
15699 void *alloca (size_t);
15709 char *p = (char *) alloca (1);
15715 if ac_fn_c_try_link "$LINENO"; then :
15716 ac_cv_func_alloca_works=yes
15718 ac_cv_func_alloca_works=no
15720 rm -f core conftest.err conftest.$ac_objext \
15721 conftest$ac_exeext conftest.$ac_ext
15723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
15724 $as_echo "$ac_cv_func_alloca_works" >&6; }
15726 if test $ac_cv_func_alloca_works = yes; then
15728 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
15731 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
15732 # that cause trouble. Some versions do not even contain alloca or
15733 # contain a buggy version. If you still want to use their alloca,
15734 # use ar to extract alloca.o from them instead of compiling alloca.c.
15740 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
15742 $as_echo "#define C_ALLOCA 1" >>confdefs.h
15745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
15746 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
15747 if ${ac_cv_os_cray+:} false; then :
15748 $as_echo_n "(cached) " >&6
15750 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15751 /* end confdefs.h. */
15752 #if defined CRAY && ! defined CRAY2
15759 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15760 $EGREP "webecray" >/dev/null 2>&1; then :
15768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
15769 $as_echo "$ac_cv_os_cray" >&6; }
15770 if test $ac_cv_os_cray = yes; then
15771 for ac_func in _getb67 GETB67 getb67; do
15772 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15773 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
15774 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
15776 cat >>confdefs.h <<_ACEOF
15777 #define CRAY_STACKSEG_END $ac_func
15786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
15787 $as_echo_n "checking stack direction for C alloca... " >&6; }
15788 if ${ac_cv_c_stack_direction+:} false; then :
15789 $as_echo_n "(cached) " >&6
15791 if test "$cross_compiling" = yes; then :
15792 ac_cv_c_stack_direction=0
15794 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15795 /* end confdefs.h. */
15796 $ac_includes_default
15798 find_stack_direction (int *addr, int depth)
15800 int dir, dummy = 0;
15803 *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
15804 dir = depth ? find_stack_direction (addr, depth - 1) : 0;
15805 return dir + dummy;
15809 main (int argc, char **argv)
15811 return find_stack_direction (0, argc + !argv + 20) < 0;
15814 if ac_fn_c_try_run "$LINENO"; then :
15815 ac_cv_c_stack_direction=1
15817 ac_cv_c_stack_direction=-1
15819 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15820 conftest.$ac_objext conftest.beam conftest.$ac_ext
15824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
15825 $as_echo "$ac_cv_c_stack_direction" >&6; }
15826 cat >>confdefs.h <<_ACEOF
15827 #define STACK_DIRECTION $ac_cv_c_stack_direction
15833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
15834 $as_echo_n "checking for C/C++ restrict keyword... " >&6; }
15835 if ${ac_cv_c_restrict+:} false; then :
15836 $as_echo_n "(cached) " >&6
15838 ac_cv_c_restrict=no
15839 # The order here caters to the fact that C++ does not require restrict.
15840 for ac_kw in __restrict __restrict__ _Restrict restrict; do
15841 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15842 /* end confdefs.h. */
15843 typedef int *int_ptr;
15844 int foo (int_ptr $ac_kw ip) { return ip[0]; }
15845 int bar (int [$ac_kw]); /* Catch GCC bug 14050. */
15846 int bar (int ip[$ac_kw]) { return ip[0]; }
15854 return foo (t) + bar (t);
15860 if ac_fn_c_try_compile "$LINENO"; then :
15861 ac_cv_c_restrict=$ac_kw
15863 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15864 test "$ac_cv_c_restrict" != no && break
15868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
15869 $as_echo "$ac_cv_c_restrict" >&6; }
15871 case $ac_cv_c_restrict in
15873 no) $as_echo "#define restrict /**/" >>confdefs.h
15875 *) cat >>confdefs.h <<_ACEOF
15876 #define restrict $ac_cv_c_restrict
15883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the preprocessor supports include_next" >&5
15884 $as_echo_n "checking whether the preprocessor supports include_next... " >&6; }
15885 if ${gl_cv_have_include_next+:} false; then :
15886 $as_echo_n "(cached) " >&6
15888 rm -rf conftestd1a conftestd1b conftestd2
15889 mkdir conftestd1a conftestd1b conftestd2
15890 cat <<EOF > conftestd1a/conftest.h
15891 #define DEFINED_IN_CONFTESTD1
15892 #include_next <conftest.h>
15893 #ifdef DEFINED_IN_CONFTESTD2
15896 #error "include_next doesn't work"
15899 cat <<EOF > conftestd1b/conftest.h
15900 #define DEFINED_IN_CONFTESTD1
15902 #include_next <conftest.h>
15903 #ifdef DEFINED_IN_CONFTESTD2
15906 #error "include_next doesn't work"
15909 cat <<EOF > conftestd2/conftest.h
15910 #ifndef DEFINED_IN_CONFTESTD1
15911 #error "include_next test doesn't work"
15913 #define DEFINED_IN_CONFTESTD2
15915 gl_save_CPPFLAGS="$CPPFLAGS"
15916 CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1b -Iconftestd2"
15917 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15918 /* end confdefs.h. */
15919 #include <conftest.h>
15921 if ac_fn_c_try_compile "$LINENO"; then :
15922 gl_cv_have_include_next=yes
15924 CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1a -Iconftestd2"
15925 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15926 /* end confdefs.h. */
15927 #include <conftest.h>
15929 if ac_fn_c_try_compile "$LINENO"; then :
15930 gl_cv_have_include_next=buggy
15932 gl_cv_have_include_next=no
15934 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15937 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15938 CPPFLAGS="$gl_save_CPPFLAGS"
15939 rm -rf conftestd1a conftestd1b conftestd2
15942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_have_include_next" >&5
15943 $as_echo "$gl_cv_have_include_next" >&6; }
15944 PRAGMA_SYSTEM_HEADER=
15945 if test $gl_cv_have_include_next = yes; then
15946 INCLUDE_NEXT=include_next
15947 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next
15948 if test -n "$GCC"; then
15949 PRAGMA_SYSTEM_HEADER='#pragma GCC system_header'
15952 if test $gl_cv_have_include_next = buggy; then
15953 INCLUDE_NEXT=include
15954 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next
15956 INCLUDE_NEXT=include
15957 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include
15963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system header files limit the line length" >&5
15964 $as_echo_n "checking whether system header files limit the line length... " >&6; }
15965 if ${gl_cv_pragma_columns+:} false; then :
15966 $as_echo_n "(cached) " >&6
15968 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15969 /* end confdefs.h. */
15976 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15977 $EGREP "choke me" >/dev/null 2>&1; then :
15978 gl_cv_pragma_columns=yes
15980 gl_cv_pragma_columns=no
15986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_pragma_columns" >&5
15987 $as_echo "$gl_cv_pragma_columns" >&6; }
15988 if test $gl_cv_pragma_columns = yes; then
15989 PRAGMA_COLUMNS="#pragma COLUMNS 10000"
15997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for complete errno.h" >&5
15998 $as_echo_n "checking for complete errno.h... " >&6; }
15999 if ${gl_cv_header_errno_h_complete+:} false; then :
16000 $as_echo_n "(cached) " >&6
16003 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16004 /* end confdefs.h. */
16007 #if !defined ETXTBSY
16010 #if !defined ENOMSG
16016 #if !defined ENOLINK
16019 #if !defined EPROTO
16022 #if !defined EMULTIHOP
16025 #if !defined EBADMSG
16028 #if !defined EOVERFLOW
16031 #if !defined ENOTSUP
16034 #if !defined ENETRESET
16037 #if !defined ECONNABORTED
16040 #if !defined ESTALE
16043 #if !defined EDQUOT
16046 #if !defined ECANCELED
16049 #if !defined EOWNERDEAD
16052 #if !defined ENOTRECOVERABLE
16055 #if !defined EILSEQ
16060 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16061 $EGREP "booboo" >/dev/null 2>&1; then :
16062 gl_cv_header_errno_h_complete=no
16064 gl_cv_header_errno_h_complete=yes
16070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_complete" >&5
16071 $as_echo "$gl_cv_header_errno_h_complete" >&6; }
16072 if test $gl_cv_header_errno_h_complete = yes; then
16083 if test $gl_cv_have_include_next = yes; then
16084 gl_cv_next_errno_h='<'errno.h'>'
16086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <errno.h>" >&5
16087 $as_echo_n "checking absolute name of <errno.h>... " >&6; }
16088 if ${gl_cv_next_errno_h+:} false; then :
16089 $as_echo_n "(cached) " >&6
16094 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16095 /* end confdefs.h. */
16099 aix*) gl_absname_cpp="$ac_cpp -C" ;;
16100 *) gl_absname_cpp="$ac_cpp" ;;
16105 gl_dirsep_regex='[/\\]'
16108 gl_dirsep_regex='\/'
16111 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
16112 gl_header_literal_regex=`echo 'errno.h' \
16113 | sed -e "$gl_make_literal_regex_sed"`
16114 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
16115 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
16121 gl_cv_absolute_errno_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
16122 sed -n "$gl_absolute_header_sed"`
16124 gl_header=$gl_cv_absolute_errno_h
16125 gl_cv_next_errno_h='"'$gl_header'"'
16129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_errno_h" >&5
16130 $as_echo "$gl_cv_next_errno_h" >&6; }
16132 NEXT_ERRNO_H=$gl_cv_next_errno_h
16134 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
16135 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
16136 gl_next_as_first_directive='<'errno.h'>'
16138 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
16139 gl_next_as_first_directive=$gl_cv_next_errno_h
16141 NEXT_AS_FIRST_DIRECTIVE_ERRNO_H=$gl_next_as_first_directive
16149 if test -n "$ERRNO_H"; then
16150 GL_GENERATE_ERRNO_H_TRUE=
16151 GL_GENERATE_ERRNO_H_FALSE='#'
16153 GL_GENERATE_ERRNO_H_TRUE='#'
16154 GL_GENERATE_ERRNO_H_FALSE=
16158 if test -n "$ERRNO_H"; then
16159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EMULTIHOP value" >&5
16160 $as_echo_n "checking for EMULTIHOP value... " >&6; }
16161 if ${gl_cv_header_errno_h_EMULTIHOP+:} false; then :
16162 $as_echo_n "(cached) " >&6
16165 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16166 /* end confdefs.h. */
16174 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16175 $EGREP "yes" >/dev/null 2>&1; then :
16176 gl_cv_header_errno_h_EMULTIHOP=yes
16178 gl_cv_header_errno_h_EMULTIHOP=no
16182 if test $gl_cv_header_errno_h_EMULTIHOP = no; then
16183 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16184 /* end confdefs.h. */
16186 #define _XOPEN_SOURCE_EXTENDED 1
16193 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16194 $EGREP "yes" >/dev/null 2>&1; then :
16195 gl_cv_header_errno_h_EMULTIHOP=hidden
16199 if test $gl_cv_header_errno_h_EMULTIHOP = hidden; then
16200 if ac_fn_c_compute_int "$LINENO" "EMULTIHOP" "gl_cv_header_errno_h_EMULTIHOP" "
16201 #define _XOPEN_SOURCE_EXTENDED 1
16203 /* The following two lines are a workaround against an autoconf-2.52 bug. */
16205 #include <stdlib.h>
16214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_EMULTIHOP" >&5
16215 $as_echo "$gl_cv_header_errno_h_EMULTIHOP" >&6; }
16216 case $gl_cv_header_errno_h_EMULTIHOP in
16218 EMULTIHOP_HIDDEN=0; EMULTIHOP_VALUE=
16221 EMULTIHOP_HIDDEN=1; EMULTIHOP_VALUE="$gl_cv_header_errno_h_EMULTIHOP"
16229 if test -n "$ERRNO_H"; then
16230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ENOLINK value" >&5
16231 $as_echo_n "checking for ENOLINK value... " >&6; }
16232 if ${gl_cv_header_errno_h_ENOLINK+:} false; then :
16233 $as_echo_n "(cached) " >&6
16236 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16237 /* end confdefs.h. */
16245 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16246 $EGREP "yes" >/dev/null 2>&1; then :
16247 gl_cv_header_errno_h_ENOLINK=yes
16249 gl_cv_header_errno_h_ENOLINK=no
16253 if test $gl_cv_header_errno_h_ENOLINK = no; then
16254 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16255 /* end confdefs.h. */
16257 #define _XOPEN_SOURCE_EXTENDED 1
16264 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16265 $EGREP "yes" >/dev/null 2>&1; then :
16266 gl_cv_header_errno_h_ENOLINK=hidden
16270 if test $gl_cv_header_errno_h_ENOLINK = hidden; then
16271 if ac_fn_c_compute_int "$LINENO" "ENOLINK" "gl_cv_header_errno_h_ENOLINK" "
16272 #define _XOPEN_SOURCE_EXTENDED 1
16274 /* The following two lines are a workaround against an autoconf-2.52 bug. */
16276 #include <stdlib.h>
16285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_ENOLINK" >&5
16286 $as_echo "$gl_cv_header_errno_h_ENOLINK" >&6; }
16287 case $gl_cv_header_errno_h_ENOLINK in
16289 ENOLINK_HIDDEN=0; ENOLINK_VALUE=
16292 ENOLINK_HIDDEN=1; ENOLINK_VALUE="$gl_cv_header_errno_h_ENOLINK"
16300 if test -n "$ERRNO_H"; then
16301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EOVERFLOW value" >&5
16302 $as_echo_n "checking for EOVERFLOW value... " >&6; }
16303 if ${gl_cv_header_errno_h_EOVERFLOW+:} false; then :
16304 $as_echo_n "(cached) " >&6
16307 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16308 /* end confdefs.h. */
16316 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16317 $EGREP "yes" >/dev/null 2>&1; then :
16318 gl_cv_header_errno_h_EOVERFLOW=yes
16320 gl_cv_header_errno_h_EOVERFLOW=no
16324 if test $gl_cv_header_errno_h_EOVERFLOW = no; then
16325 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16326 /* end confdefs.h. */
16328 #define _XOPEN_SOURCE_EXTENDED 1
16335 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16336 $EGREP "yes" >/dev/null 2>&1; then :
16337 gl_cv_header_errno_h_EOVERFLOW=hidden
16341 if test $gl_cv_header_errno_h_EOVERFLOW = hidden; then
16342 if ac_fn_c_compute_int "$LINENO" "EOVERFLOW" "gl_cv_header_errno_h_EOVERFLOW" "
16343 #define _XOPEN_SOURCE_EXTENDED 1
16345 /* The following two lines are a workaround against an autoconf-2.52 bug. */
16347 #include <stdlib.h>
16356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_EOVERFLOW" >&5
16357 $as_echo "$gl_cv_header_errno_h_EOVERFLOW" >&6; }
16358 case $gl_cv_header_errno_h_EOVERFLOW in
16360 EOVERFLOW_HIDDEN=0; EOVERFLOW_VALUE=
16363 EOVERFLOW_HIDDEN=1; EOVERFLOW_VALUE="$gl_cv_header_errno_h_EOVERFLOW"
16387 GNULIB_UTIMENSAT=0;
16401 REPLACE_FUTIMENS=0;
16407 REPLACE_UTIMENSAT=0;
16413 for ac_func in $gl_func_list
16415 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16416 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
16417 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
16418 cat >>confdefs.h <<_ACEOF
16419 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16437 if test $ac_cv_func__set_invalid_parameter_handler = yes; then
16438 HAVE_MSVC_INVALID_PARAMETER_HANDLER=1
16440 $as_echo "#define HAVE_MSVC_INVALID_PARAMETER_HANDLER 1" >>confdefs.h
16443 HAVE_MSVC_INVALID_PARAMETER_HANDLER=0
16447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
16448 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
16449 if ${ac_cv_header_stat_broken+:} false; then :
16450 $as_echo_n "(cached) " >&6
16452 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16453 /* end confdefs.h. */
16454 #include <sys/types.h>
16455 #include <sys/stat.h>
16457 #if defined S_ISBLK && defined S_IFDIR
16458 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
16461 #if defined S_ISBLK && defined S_IFCHR
16462 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
16465 #if defined S_ISLNK && defined S_IFREG
16466 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
16469 #if defined S_ISSOCK && defined S_IFREG
16470 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
16474 if ac_fn_c_try_compile "$LINENO"; then :
16475 ac_cv_header_stat_broken=no
16477 ac_cv_header_stat_broken=yes
16479 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
16482 $as_echo "$ac_cv_header_stat_broken" >&6; }
16483 if test $ac_cv_header_stat_broken = yes; then
16485 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
16494 ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
16495 if test "x$ac_cv_type_mode_t" = xyes; then :
16499 cat >>confdefs.h <<_ACEOF
16509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit off_t" >&5
16510 $as_echo_n "checking for 64-bit off_t... " >&6; }
16511 if ${gl_cv_type_off_t_64+:} false; then :
16512 $as_echo_n "(cached) " >&6
16514 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16515 /* end confdefs.h. */
16516 #include <sys/types.h>
16517 int verify_off_t_size[sizeof (off_t) >= 8 ? 1 : -1];
16527 if ac_fn_c_try_compile "$LINENO"; then :
16528 gl_cv_type_off_t_64=yes
16530 gl_cv_type_off_t_64=no
16532 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_type_off_t_64" >&5
16536 $as_echo "$gl_cv_type_off_t_64" >&6; }
16537 if test $gl_cv_type_off_t_64 = no; then
16538 WINDOWS_64_BIT_OFF_T=1
16540 WINDOWS_64_BIT_OFF_T=0
16542 WINDOWS_64_BIT_ST_SIZE=1
16545 WINDOWS_64_BIT_OFF_T=0
16546 WINDOWS_64_BIT_ST_SIZE=0
16570 if test $gl_cv_have_include_next = yes; then
16571 gl_cv_next_sys_stat_h='<'sys/stat.h'>'
16573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/stat.h>" >&5
16574 $as_echo_n "checking absolute name of <sys/stat.h>... " >&6; }
16575 if ${gl_cv_next_sys_stat_h+:} false; then :
16576 $as_echo_n "(cached) " >&6
16579 if test $ac_cv_header_sys_stat_h = yes; then
16584 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16585 /* end confdefs.h. */
16586 #include <sys/stat.h>
16589 aix*) gl_absname_cpp="$ac_cpp -C" ;;
16590 *) gl_absname_cpp="$ac_cpp" ;;
16595 gl_dirsep_regex='[/\\]'
16598 gl_dirsep_regex='\/'
16601 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
16602 gl_header_literal_regex=`echo 'sys/stat.h' \
16603 | sed -e "$gl_make_literal_regex_sed"`
16604 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
16605 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
16611 gl_cv_absolute_sys_stat_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
16612 sed -n "$gl_absolute_header_sed"`
16614 gl_header=$gl_cv_absolute_sys_stat_h
16615 gl_cv_next_sys_stat_h='"'$gl_header'"'
16617 gl_cv_next_sys_stat_h='<'sys/stat.h'>'
16622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_stat_h" >&5
16623 $as_echo "$gl_cv_next_sys_stat_h" >&6; }
16625 NEXT_SYS_STAT_H=$gl_cv_next_sys_stat_h
16627 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
16628 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
16629 gl_next_as_first_directive='<'sys/stat.h'>'
16631 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
16632 gl_next_as_first_directive=$gl_cv_next_sys_stat_h
16634 NEXT_AS_FIRST_DIRECTIVE_SYS_STAT_H=$gl_next_as_first_directive
16646 if test $WINDOWS_64_BIT_ST_SIZE = 1; then
16648 $as_echo "#define _GL_WINDOWS_64_BIT_ST_SIZE 1" >>confdefs.h
16652 ac_fn_c_check_type "$LINENO" "nlink_t" "ac_cv_type_nlink_t" "#include <sys/types.h>
16653 #include <sys/stat.h>
16655 if test "x$ac_cv_type_nlink_t" = xyes; then :
16659 $as_echo "#define nlink_t int" >>confdefs.h
16665 for gl_func in fchmodat fstat fstatat futimens lchmod lstat mkdirat mkfifo mkfifoat mknod mknodat stat utimensat; do
16666 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
16667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
16668 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
16669 if eval \${$as_gl_Symbol+:} false; then :
16670 $as_echo_n "(cached) " >&6
16672 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16673 /* end confdefs.h. */
16674 #include <sys/stat.h>
16685 if ac_fn_c_try_compile "$LINENO"; then :
16686 eval "$as_gl_Symbol=yes"
16688 eval "$as_gl_Symbol=no"
16690 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16692 eval ac_res=\$$as_gl_Symbol
16693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
16694 $as_echo "$ac_res" >&6; }
16695 if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
16696 cat >>confdefs.h <<_ACEOF
16697 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
16700 eval ac_cv_have_decl_$gl_func=yes
16714 GNULIB_FPRINTF_POSIX=0;
16730 GNULIB_OBSTACK_PRINTF=0;
16731 GNULIB_OBSTACK_PRINTF_POSIX=0;
16736 GNULIB_PRINTF_POSIX=0;
16745 GNULIB_SPRINTF_POSIX=0;
16746 GNULIB_STDIO_H_NONBLOCKING=0;
16747 GNULIB_STDIO_H_SIGPIPE=0;
16749 GNULIB_VASPRINTF=0;
16754 GNULIB_VFPRINTF_POSIX=0;
16756 GNULIB_VPRINTF_POSIX=0;
16757 GNULIB_VSNPRINTF=0;
16758 GNULIB_VSPRINTF_POSIX=0;
16759 HAVE_DECL_FPURGE=1;
16760 HAVE_DECL_FSEEKO=1;
16761 HAVE_DECL_FTELLO=1;
16762 HAVE_DECL_GETDELIM=1;
16763 HAVE_DECL_GETLINE=1;
16764 HAVE_DECL_OBSTACK_PRINTF=1;
16765 HAVE_DECL_SNPRINTF=1;
16766 HAVE_DECL_VSNPRINTF=1;
16787 REPLACE_GETDELIM=0;
16789 REPLACE_OBSTACK_PRINTF=0;
16795 REPLACE_RENAMEAT=0;
16796 REPLACE_SNPRINTF=0;
16798 REPLACE_STDIO_READ_FUNCS=0;
16799 REPLACE_STDIO_WRITE_FUNCS=0;
16801 REPLACE_VASPRINTF=0;
16802 REPLACE_VDPRINTF=0;
16803 REPLACE_VFPRINTF=0;
16805 REPLACE_VSNPRINTF=0;
16806 REPLACE_VSPRINTF=0;
16809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stdin defaults to large file offsets" >&5
16810 $as_echo_n "checking whether stdin defaults to large file offsets... " >&6; }
16811 if ${gl_cv_var_stdin_large_offset+:} false; then :
16812 $as_echo_n "(cached) " >&6
16814 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16815 /* end confdefs.h. */
16820 #if defined __SL64 && defined __SCLE /* cygwin */
16821 /* Cygwin 1.5.24 and earlier fail to put stdin in 64-bit mode, making
16822 fseeko/ftello needlessly fail. This bug was fixed in 1.5.25, and
16823 it is easier to do a version check than building a runtime test. */
16824 # include <cygwin/version.h>
16825 # if CYGWIN_VERSION_DLL_COMBINED < CYGWIN_VERSION_DLL_MAKE_COMBINED (1005, 25)
16833 if ac_fn_c_try_link "$LINENO"; then :
16834 gl_cv_var_stdin_large_offset=yes
16836 gl_cv_var_stdin_large_offset=no
16838 rm -f core conftest.err conftest.$ac_objext \
16839 conftest$ac_exeext conftest.$ac_ext
16841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_var_stdin_large_offset" >&5
16842 $as_echo "$gl_cv_var_stdin_large_offset" >&6; }
16846 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
16847 if test "x$ac_cv_type_pid_t" = xyes; then :
16851 cat >>confdefs.h <<_ACEOF
16873 if test $gl_cv_have_include_next = yes; then
16874 gl_cv_next_sys_types_h='<'sys/types.h'>'
16876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/types.h>" >&5
16877 $as_echo_n "checking absolute name of <sys/types.h>... " >&6; }
16878 if ${gl_cv_next_sys_types_h+:} false; then :
16879 $as_echo_n "(cached) " >&6
16884 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16885 /* end confdefs.h. */
16886 #include <sys/types.h>
16889 aix*) gl_absname_cpp="$ac_cpp -C" ;;
16890 *) gl_absname_cpp="$ac_cpp" ;;
16895 gl_dirsep_regex='[/\\]'
16898 gl_dirsep_regex='\/'
16901 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
16902 gl_header_literal_regex=`echo 'sys/types.h' \
16903 | sed -e "$gl_make_literal_regex_sed"`
16904 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
16905 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
16911 gl_cv_absolute_sys_types_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
16912 sed -n "$gl_absolute_header_sed"`
16914 gl_header=$gl_cv_absolute_sys_types_h
16915 gl_cv_next_sys_types_h='"'$gl_header'"'
16919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_types_h" >&5
16920 $as_echo "$gl_cv_next_sys_types_h" >&6; }
16922 NEXT_SYS_TYPES_H=$gl_cv_next_sys_types_h
16924 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
16925 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
16926 gl_next_as_first_directive='<'sys/types.h'>'
16928 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
16929 gl_next_as_first_directive=$gl_cv_next_sys_types_h
16931 NEXT_AS_FIRST_DIRECTIVE_SYS_TYPES_H=$gl_next_as_first_directive
16944 ac_fn_c_check_decl "$LINENO" "ftello" "ac_cv_have_decl_ftello" "$ac_includes_default"
16945 if test "x$ac_cv_have_decl_ftello" = xyes; then :
16951 cat >>confdefs.h <<_ACEOF
16952 #define HAVE_DECL_FTELLO $ac_have_decl
16971 if test $ac_cv_have_decl_ftello = no; then
16975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ftello" >&5
16976 $as_echo_n "checking for ftello... " >&6; }
16977 if ${gl_cv_func_ftello+:} false; then :
16978 $as_echo_n "(cached) " >&6
16981 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16982 /* end confdefs.h. */
16992 if ac_fn_c_try_link "$LINENO"; then :
16993 gl_cv_func_ftello=yes
16995 gl_cv_func_ftello=no
16997 rm -f core conftest.err conftest.$ac_objext \
16998 conftest$ac_exeext conftest.$ac_ext
17001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_ftello" >&5
17002 $as_echo "$gl_cv_func_ftello" >&6; }
17003 if test $gl_cv_func_ftello = no; then
17006 if test $WINDOWS_64_BIT_OFF_T = 1; then
17009 if test $gl_cv_var_stdin_large_offset = no; then
17012 if test $REPLACE_FTELLO = 0; then
17014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ftello works" >&5
17015 $as_echo_n "checking whether ftello works... " >&6; }
17016 if ${gl_cv_func_ftello_works+:} false; then :
17017 $as_echo_n "(cached) " >&6
17021 # Guess no on Solaris.
17022 solaris*) gl_cv_func_ftello_works="guessing no" ;;
17023 # Guess yes otherwise.
17024 *) gl_cv_func_ftello_works="guessing yes" ;;
17026 if test "$cross_compiling" = yes; then :
17029 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17030 /* end confdefs.h. */
17033 #include <stdlib.h>
17034 #include <string.h>
17035 #define TESTFILE "conftest.tmp"
17041 /* Create a file with some contents. */
17042 fp = fopen (TESTFILE, "w");
17045 if (fwrite ("foogarsh", 1, 8, fp) < 8)
17050 /* The file's contents is now "foogarsh". */
17052 /* Try writing after reading to EOF. */
17053 fp = fopen (TESTFILE, "r+");
17056 if (fseek (fp, -1, SEEK_END))
17058 if (!(getc (fp) == 'h'))
17060 if (!(getc (fp) == EOF))
17062 if (!(ftell (fp) == 8))
17064 if (!(ftell (fp) == 8))
17066 if (!(putc ('!', fp) == '!'))
17068 if (!(ftell (fp) == 9))
17070 if (!(fclose (fp) == 0))
17072 fp = fopen (TESTFILE, "r");
17077 if (!(fread (buf, 1, 10, fp) == 9))
17079 if (!(memcmp (buf, "foogarsh!", 9) == 0))
17082 if (!(fclose (fp) == 0))
17085 /* The file's contents is now "foogarsh!". */
17090 if ac_fn_c_try_run "$LINENO"; then :
17091 gl_cv_func_ftello_works=yes
17093 gl_cv_func_ftello_works=no
17095 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17096 conftest.$ac_objext conftest.beam conftest.$ac_ext
17101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_ftello_works" >&5
17102 $as_echo "$gl_cv_func_ftello_works" >&6; }
17103 case "$gl_cv_func_ftello_works" in
17108 $as_echo "#define FTELLO_BROKEN_AFTER_SWITCHING_FROM_READ_TO_WRITE 1" >>confdefs.h
17116 ac_fn_c_check_decl "$LINENO" "getdelim" "ac_cv_have_decl_getdelim" "$ac_includes_default"
17117 if test "x$ac_cv_have_decl_getdelim" = xyes; then :
17123 cat >>confdefs.h <<_ACEOF
17124 #define HAVE_DECL_GETDELIM $ac_have_decl
17134 ac_fn_c_check_decl "$LINENO" "getline" "ac_cv_have_decl_getline" "$ac_includes_default"
17135 if test "x$ac_cv_have_decl_getline" = xyes; then :
17141 cat >>confdefs.h <<_ACEOF
17142 #define HAVE_DECL_GETLINE $ac_have_decl
17147 GNULIB_GETTIMEOFDAY=0;
17148 HAVE_GETTIMEOFDAY=1;
17149 HAVE_STRUCT_TIMEVAL=1;
17151 REPLACE_GETTIMEOFDAY=0;
17152 REPLACE_STRUCT_TIMEVAL=0;
17184 if test $gl_cv_have_include_next = yes; then
17185 gl_cv_next_sys_time_h='<'sys/time.h'>'
17187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/time.h>" >&5
17188 $as_echo_n "checking absolute name of <sys/time.h>... " >&6; }
17189 if ${gl_cv_next_sys_time_h+:} false; then :
17190 $as_echo_n "(cached) " >&6
17193 if test $ac_cv_header_sys_time_h = yes; then
17198 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17199 /* end confdefs.h. */
17200 #include <sys/time.h>
17203 aix*) gl_absname_cpp="$ac_cpp -C" ;;
17204 *) gl_absname_cpp="$ac_cpp" ;;
17209 gl_dirsep_regex='[/\\]'
17212 gl_dirsep_regex='\/'
17215 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
17216 gl_header_literal_regex=`echo 'sys/time.h' \
17217 | sed -e "$gl_make_literal_regex_sed"`
17218 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
17219 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
17225 gl_cv_absolute_sys_time_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
17226 sed -n "$gl_absolute_header_sed"`
17228 gl_header=$gl_cv_absolute_sys_time_h
17229 gl_cv_next_sys_time_h='"'$gl_header'"'
17231 gl_cv_next_sys_time_h='<'sys/time.h'>'
17236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_time_h" >&5
17237 $as_echo "$gl_cv_next_sys_time_h" >&6; }
17239 NEXT_SYS_TIME_H=$gl_cv_next_sys_time_h
17241 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
17242 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
17243 gl_next_as_first_directive='<'sys/time.h'>'
17245 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
17246 gl_next_as_first_directive=$gl_cv_next_sys_time_h
17248 NEXT_AS_FIRST_DIRECTIVE_SYS_TIME_H=$gl_next_as_first_directive
17254 if test $ac_cv_header_sys_time_h != yes; then
17268 if test $ac_cv_header_sys_socket_h != yes; then
17269 for ac_header in winsock2.h
17271 ac_fn_c_check_header_mongrel "$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
17272 if test "x$ac_cv_header_winsock2_h" = xyes; then :
17273 cat >>confdefs.h <<_ACEOF
17274 #define HAVE_WINSOCK2_H 1
17282 if test "$ac_cv_header_winsock2_h" = yes; then
17284 UNISTD_H_HAVE_WINSOCK2_H=1
17285 SYS_IOCTL_H_HAVE_WINSOCK2_H=1
17291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timeval" >&5
17292 $as_echo_n "checking for struct timeval... " >&6; }
17293 if ${gl_cv_sys_struct_timeval+:} false; then :
17294 $as_echo_n "(cached) " >&6
17296 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17297 /* end confdefs.h. */
17298 #if HAVE_SYS_TIME_H
17299 #include <sys/time.h>
17302 #if HAVE_WINSOCK2_H
17303 # include <winsock2.h>
17309 static struct timeval x; x.tv_sec = x.tv_usec;
17314 if ac_fn_c_try_compile "$LINENO"; then :
17315 gl_cv_sys_struct_timeval=yes
17317 gl_cv_sys_struct_timeval=no
17319 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timeval" >&5
17323 $as_echo "$gl_cv_sys_struct_timeval" >&6; }
17324 if test $gl_cv_sys_struct_timeval != yes; then
17325 HAVE_STRUCT_TIMEVAL=0
17327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wide-enough struct timeval.tv_sec member" >&5
17328 $as_echo_n "checking for wide-enough struct timeval.tv_sec member... " >&6; }
17329 if ${gl_cv_sys_struct_timeval_tv_sec+:} false; then :
17330 $as_echo_n "(cached) " >&6
17332 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17333 /* end confdefs.h. */
17334 #if HAVE_SYS_TIME_H
17335 #include <sys/time.h>
17338 #if HAVE_WINSOCK2_H
17339 # include <winsock2.h>
17345 static struct timeval x;
17346 typedef int verify_tv_sec_type[
17347 sizeof (time_t) <= sizeof x.tv_sec ? 1 : -1
17354 if ac_fn_c_try_compile "$LINENO"; then :
17355 gl_cv_sys_struct_timeval_tv_sec=yes
17357 gl_cv_sys_struct_timeval_tv_sec=no
17359 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timeval_tv_sec" >&5
17363 $as_echo "$gl_cv_sys_struct_timeval_tv_sec" >&6; }
17364 if test $gl_cv_sys_struct_timeval_tv_sec != yes; then
17365 REPLACE_STRUCT_TIMEVAL=1
17370 for gl_func in gettimeofday; do
17371 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
17372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
17373 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
17374 if eval \${$as_gl_Symbol+:} false; then :
17375 $as_echo_n "(cached) " >&6
17377 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17378 /* end confdefs.h. */
17380 #if HAVE_SYS_TIME_H
17381 # include <sys/time.h>
17394 if ac_fn_c_try_compile "$LINENO"; then :
17395 eval "$as_gl_Symbol=yes"
17397 eval "$as_gl_Symbol=no"
17399 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17401 eval ac_res=\$$as_gl_Symbol
17402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
17403 $as_echo "$ac_res" >&6; }
17404 if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
17405 cat >>confdefs.h <<_ACEOF
17406 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
17409 eval ac_cv_have_decl_$gl_func=yes
17430 GNULIB_CALLOC_POSIX=0;
17431 GNULIB_CANONICALIZE_FILE_NAME=0;
17432 GNULIB_GETLOADAVG=0;
17433 GNULIB_GETSUBOPT=0;
17435 GNULIB_MALLOC_POSIX=0;
17439 GNULIB_MKOSTEMPS=0;
17442 GNULIB_POSIX_OPENPT=0;
17444 GNULIB_PTSNAME_R=0;
17449 GNULIB_REALLOC_POSIX=0;
17452 GNULIB_SECURE_GETENV=0;
17457 GNULIB_SYSTEM_POSIX=0;
17463 HAVE_CANONICALIZE_FILE_NAME=1;
17464 HAVE_DECL_GETLOADAVG=1;
17472 HAVE_POSIX_OPENPT=1;
17480 HAVE_SECURE_GETENV=1;
17482 HAVE_DECL_SETENV=1;
17486 HAVE_STRUCT_RANDOM_DATA=1;
17487 HAVE_SYS_LOADAVG_H=0;
17489 HAVE_DECL_UNSETENV=1;
17491 REPLACE_CANONICALIZE_FILE_NAME=0;
17496 REPLACE_PTSNAME_R=0;
17499 REPLACE_RANDOM_R=0;
17501 REPLACE_REALPATH=0;
17504 REPLACE_UNSETENV=0;
17508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether malloc, realloc, calloc are POSIX compliant" >&5
17509 $as_echo_n "checking whether malloc, realloc, calloc are POSIX compliant... " >&6; }
17510 if ${gl_cv_func_malloc_posix+:} false; then :
17511 $as_echo_n "(cached) " >&6
17514 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17515 /* end confdefs.h. */
17520 #if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
17528 if ac_fn_c_try_compile "$LINENO"; then :
17529 gl_cv_func_malloc_posix=yes
17531 gl_cv_func_malloc_posix=no
17533 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_malloc_posix" >&5
17537 $as_echo "$gl_cv_func_malloc_posix" >&6; }
17556 GNULIB_RAWMEMCHR=0;
17559 GNULIB_STRCHRNUL=0;
17567 GNULIB_STRCASESTR=0;
17574 GNULIB_MBSCASECMP=0;
17575 GNULIB_MBSNCASECMP=0;
17576 GNULIB_MBSPCASECMP=0;
17577 GNULIB_MBSCASESTR=0;
17584 GNULIB_STRERROR_R=0;
17585 GNULIB_STRSIGNAL=0;
17586 GNULIB_STRVERSCMP=0;
17591 HAVE_DECL_MEMMEM=1;
17593 HAVE_DECL_MEMRCHR=1;
17598 HAVE_DECL_STRDUP=1;
17599 HAVE_DECL_STRNDUP=1;
17600 HAVE_DECL_STRNLEN=1;
17604 HAVE_DECL_STRTOK_R=1;
17605 HAVE_DECL_STRERROR_R=1;
17606 HAVE_DECL_STRSIGNAL=1;
17613 REPLACE_STRCASESTR=0;
17614 REPLACE_STRCHRNUL=0;
17615 REPLACE_STRERROR=0;
17616 REPLACE_STRERROR_R=0;
17620 REPLACE_STRSIGNAL=0;
17621 REPLACE_STRTOK_R=0;
17622 UNDEFINE_STRTOK_R=0;
17628 # Check for mmap(). Don't use AC_FUNC_MMAP, because it checks too much: it
17629 # fails on HP-UX 11, because MAP_FIXED mappings do not work. But this is
17630 # irrelevant for anonymous mappings.
17631 ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
17632 if test "x$ac_cv_func_mmap" = xyes; then :
17639 # Try to allow MAP_ANONYMOUS.
17640 gl_have_mmap_anonymous=no
17641 if test $gl_have_mmap = yes; then
17642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANONYMOUS" >&5
17643 $as_echo_n "checking for MAP_ANONYMOUS... " >&6; }
17644 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17645 /* end confdefs.h. */
17647 #include <sys/mman.h>
17648 #ifdef MAP_ANONYMOUS
17649 I cannot identify this map
17653 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17654 $EGREP "I cannot identify this map" >/dev/null 2>&1; then :
17655 gl_have_mmap_anonymous=yes
17659 if test $gl_have_mmap_anonymous != yes; then
17660 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17661 /* end confdefs.h. */
17663 #include <sys/mman.h>
17665 I cannot identify this map
17669 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17670 $EGREP "I cannot identify this map" >/dev/null 2>&1; then :
17672 $as_echo "#define MAP_ANONYMOUS MAP_ANON" >>confdefs.h
17674 gl_have_mmap_anonymous=yes
17679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_have_mmap_anonymous" >&5
17680 $as_echo "$gl_have_mmap_anonymous" >&6; }
17681 if test $gl_have_mmap_anonymous = yes; then
17683 $as_echo "#define HAVE_MAP_ANONYMOUS 1" >>confdefs.h
17705 if test $HAVE_MEMCHR = 1; then
17706 # Detect platform-specific bugs in some versions of glibc:
17707 # memchr should not dereference anything with length 0
17708 # http://bugzilla.redhat.com/499689
17709 # memchr should not dereference overestimated length after a match
17710 # http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=521737
17711 # http://sourceware.org/bugzilla/show_bug.cgi?id=10162
17712 # Assume that memchr works on platforms that lack mprotect.
17713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether memchr works" >&5
17714 $as_echo_n "checking whether memchr works... " >&6; }
17715 if ${gl_cv_func_memchr_works+:} false; then :
17716 $as_echo_n "(cached) " >&6
17718 if test "$cross_compiling" = yes; then :
17719 gl_cv_func_memchr_works="guessing no"
17721 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17722 /* end confdefs.h. */
17724 #include <string.h>
17725 #if HAVE_SYS_MMAN_H
17726 # include <fcntl.h>
17727 # include <unistd.h>
17728 # include <sys/types.h>
17729 # include <sys/mman.h>
17731 # define MAP_FILE 0
17740 char *fence = NULL;
17741 #if HAVE_SYS_MMAN_H && HAVE_MPROTECT
17742 # if HAVE_MAP_ANONYMOUS
17743 const int flags = MAP_ANONYMOUS | MAP_PRIVATE;
17745 # else /* !HAVE_MAP_ANONYMOUS */
17746 const int flags = MAP_FILE | MAP_PRIVATE;
17747 int fd = open ("/dev/zero", O_RDONLY, 0666);
17751 int pagesize = getpagesize ();
17753 (char *) mmap (NULL, 2 * pagesize, PROT_READ | PROT_WRITE,
17755 if (two_pages != (char *)(-1)
17756 && mprotect (two_pages + pagesize, pagesize, PROT_NONE) == 0)
17757 fence = two_pages + pagesize;
17762 if (memchr (fence, 0, 0))
17764 strcpy (fence - 9, "12345678");
17765 if (memchr (fence - 9, 0, 79) != fence - 1)
17767 if (memchr (fence - 1, 0, 3) != fence - 1)
17776 if ac_fn_c_try_run "$LINENO"; then :
17777 gl_cv_func_memchr_works=yes
17779 gl_cv_func_memchr_works=no
17781 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17782 conftest.$ac_objext conftest.beam conftest.$ac_ext
17786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_memchr_works" >&5
17787 $as_echo "$gl_cv_func_memchr_works" >&6; }
17788 if test "$gl_cv_func_memchr_works" != yes; then
17794 ac_fn_c_check_decl "$LINENO" "memmem" "ac_cv_have_decl_memmem" "$ac_includes_default"
17795 if test "x$ac_cv_have_decl_memmem" = xyes; then :
17801 cat >>confdefs.h <<_ACEOF
17802 #define HAVE_DECL_MEMMEM $ac_have_decl
17810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <limits.h> defines MIN and MAX" >&5
17811 $as_echo_n "checking whether <limits.h> defines MIN and MAX... " >&6; }
17812 if ${gl_cv_minmax_in_limits_h+:} false; then :
17813 $as_echo_n "(cached) " >&6
17815 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17816 /* end confdefs.h. */
17817 #include <limits.h>
17818 int x = MIN (42, 17);
17827 if ac_fn_c_try_compile "$LINENO"; then :
17828 gl_cv_minmax_in_limits_h=yes
17830 gl_cv_minmax_in_limits_h=no
17832 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_minmax_in_limits_h" >&5
17835 $as_echo "$gl_cv_minmax_in_limits_h" >&6; }
17836 if test $gl_cv_minmax_in_limits_h = yes; then
17838 $as_echo "#define HAVE_MINMAX_IN_LIMITS_H 1" >>confdefs.h
17847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <sys/param.h> defines MIN and MAX" >&5
17848 $as_echo_n "checking whether <sys/param.h> defines MIN and MAX... " >&6; }
17849 if ${gl_cv_minmax_in_sys_param_h+:} false; then :
17850 $as_echo_n "(cached) " >&6
17852 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17853 /* end confdefs.h. */
17854 #include <sys/param.h>
17855 int x = MIN (42, 17);
17864 if ac_fn_c_try_compile "$LINENO"; then :
17865 gl_cv_minmax_in_sys_param_h=yes
17867 gl_cv_minmax_in_sys_param_h=no
17869 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_minmax_in_sys_param_h" >&5
17872 $as_echo "$gl_cv_minmax_in_sys_param_h" >&6; }
17873 if test $gl_cv_minmax_in_sys_param_h = yes; then
17875 $as_echo "#define HAVE_MINMAX_IN_SYS_PARAM_H 1" >>confdefs.h
17883 gl_cv_c_multiarch=no
17884 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17885 /* end confdefs.h. */
17886 #ifndef __APPLE_CC__
17887 not a universal capable compiler
17892 if ac_fn_c_try_compile "$LINENO"; then :
17896 for word in ${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS}; do
17897 if test -n "$prev"; then
17899 i?86 | x86_64 | ppc | ppc64)
17900 if test -z "$arch" || test "$arch" = "$word"; then
17903 gl_cv_c_multiarch=yes
17909 if test "x$word" = "x-arch"; then
17916 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17917 if test $gl_cv_c_multiarch = yes; then
17918 APPLE_UNIVERSAL_BUILD=1
17920 APPLE_UNIVERSAL_BUILD=0
17925 GNULIB_GETADDRINFO=0;
17926 HAVE_STRUCT_ADDRINFO=1;
17927 HAVE_DECL_FREEADDRINFO=1;
17928 HAVE_DECL_GAI_STRERROR=1;
17929 HAVE_DECL_GETADDRINFO=1;
17930 HAVE_DECL_GETNAMEINFO=1;
17931 REPLACE_GAI_STRERROR=0;
17960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether snprintf returns a byte count as in C99" >&5
17961 $as_echo_n "checking whether snprintf returns a byte count as in C99... " >&6; }
17962 if ${gl_cv_func_snprintf_retval_c99+:} false; then :
17963 $as_echo_n "(cached) " >&6
17966 if test "$cross_compiling" = yes; then :
17969 # Guess yes on glibc systems.
17970 *-gnu*) gl_cv_func_snprintf_retval_c99="guessing yes";;
17971 # Guess yes on FreeBSD >= 5.
17972 freebsd[1-4].*) gl_cv_func_snprintf_retval_c99="guessing no";;
17973 freebsd* | kfreebsd*) gl_cv_func_snprintf_retval_c99="guessing yes";;
17974 # Guess yes on Mac OS X >= 10.3.
17975 darwin[1-6].*) gl_cv_func_snprintf_retval_c99="guessing no";;
17976 darwin*) gl_cv_func_snprintf_retval_c99="guessing yes";;
17977 # Guess yes on OpenBSD >= 3.9.
17978 openbsd[1-2].* | openbsd3.[0-8] | openbsd3.[0-8].*)
17979 gl_cv_func_snprintf_retval_c99="guessing no";;
17980 openbsd*) gl_cv_func_snprintf_retval_c99="guessing yes";;
17981 # Guess yes on Solaris >= 2.10.
17982 solaris2.[1-9][0-9]*) gl_cv_func_printf_sizes_c99="guessing yes";;
17983 solaris*) gl_cv_func_printf_sizes_c99="guessing no";;
17984 # Guess yes on AIX >= 4.
17985 aix[1-3]*) gl_cv_func_snprintf_retval_c99="guessing no";;
17986 aix*) gl_cv_func_snprintf_retval_c99="guessing yes";;
17987 # Guess yes on NetBSD >= 3.
17988 netbsd[1-2]* | netbsdelf[1-2]* | netbsdaout[1-2]* | netbsdcoff[1-2]*)
17989 gl_cv_func_snprintf_retval_c99="guessing no";;
17990 netbsd*) gl_cv_func_snprintf_retval_c99="guessing yes";;
17991 # Guess yes on BeOS.
17992 beos*) gl_cv_func_snprintf_retval_c99="guessing yes";;
17993 # If we don't know, assume the worst.
17994 *) gl_cv_func_snprintf_retval_c99="guessing no";;
17998 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17999 /* end confdefs.h. */
18002 #include <string.h>
18004 # define my_snprintf snprintf
18006 # include <stdarg.h>
18007 static int my_snprintf (char *buf, int size, const char *format, ...)
18011 va_start (args, format);
18012 ret = vsnprintf (buf, size, format, args);
18017 static char buf[100];
18020 strcpy (buf, "ABCDEF");
18021 if (my_snprintf (buf, 3, "%d %d", 4567, 89) != 7)
18023 if (my_snprintf (buf, 0, "%d %d", 4567, 89) != 7)
18025 if (my_snprintf (NULL, 0, "%d %d", 4567, 89) != 7)
18030 if ac_fn_c_try_run "$LINENO"; then :
18031 gl_cv_func_snprintf_retval_c99=yes
18033 gl_cv_func_snprintf_retval_c99=no
18035 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18036 conftest.$ac_objext conftest.beam conftest.$ac_ext
18041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_snprintf_retval_c99" >&5
18042 $as_echo "$gl_cv_func_snprintf_retval_c99" >&6; }
18045 ac_fn_c_check_decl "$LINENO" "snprintf" "ac_cv_have_decl_snprintf" "$ac_includes_default"
18046 if test "x$ac_cv_have_decl_snprintf" = xyes; then :
18052 cat >>confdefs.h <<_ACEOF
18053 #define HAVE_DECL_SNPRINTF $ac_have_decl
18064 if test $ac_cv_header_sys_socket_h = no; then
18065 for ac_header in ws2tcpip.h
18067 ac_fn_c_check_header_mongrel "$LINENO" "ws2tcpip.h" "ac_cv_header_ws2tcpip_h" "$ac_includes_default"
18068 if test "x$ac_cv_header_ws2tcpip_h" = xyes; then :
18069 cat >>confdefs.h <<_ACEOF
18070 #define HAVE_WS2TCPIP_H 1
18079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
18080 $as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
18081 if ${ac_cv_header_stdbool_h+:} false; then :
18082 $as_echo_n "(cached) " >&6
18084 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18085 /* end confdefs.h. */
18087 #include <stdbool.h>
18089 "error: bool is not defined"
18092 "error: false is not defined"
18095 "error: false is not 0"
18098 "error: true is not defined"
18101 "error: true is not 1"
18103 #ifndef __bool_true_false_are_defined
18104 "error: __bool_true_false_are_defined is not defined"
18107 struct s { _Bool s: 1; _Bool t; } s;
18109 char a[true == 1 ? 1 : -1];
18110 char b[false == 0 ? 1 : -1];
18111 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
18112 char d[(bool) 0.5 == true ? 1 : -1];
18113 /* See body of main program for 'e'. */
18114 char f[(_Bool) 0.0 == false ? 1 : -1];
18116 char h[sizeof (_Bool)];
18117 char i[sizeof s.t];
18118 enum { j = false, k = true, l = false * true, m = true * 256 };
18119 /* The following fails for
18120 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
18122 char o[sizeof n == m * sizeof n[0] ? 1 : -1];
18123 char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
18124 /* Catch a bug in an HP-UX C compiler. See
18125 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
18126 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
18138 /* Refer to every declared value, to avoid compiler optimizations. */
18139 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
18140 + !m + !n + !o + !p + !q + !pq);
18146 if ac_fn_c_try_compile "$LINENO"; then :
18147 ac_cv_header_stdbool_h=yes
18149 ac_cv_header_stdbool_h=no
18151 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
18154 $as_echo "$ac_cv_header_stdbool_h" >&6; }
18155 ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
18156 if test "x$ac_cv_type__Bool" = xyes; then :
18158 cat >>confdefs.h <<_ACEOF
18159 #define HAVE__BOOL 1
18168 HAVE_MAX_ALIGN_T=1;
18172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5
18173 $as_echo_n "checking for wchar_t... " >&6; }
18174 if ${gt_cv_c_wchar_t+:} false; then :
18175 $as_echo_n "(cached) " >&6
18177 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18178 /* end confdefs.h. */
18179 #include <stddef.h>
18180 wchar_t foo = (wchar_t)'\0';
18189 if ac_fn_c_try_compile "$LINENO"; then :
18190 gt_cv_c_wchar_t=yes
18194 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5
18197 $as_echo "$gt_cv_c_wchar_t" >&6; }
18198 if test $gt_cv_c_wchar_t = yes; then
18200 $as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h
18205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
18206 $as_echo_n "checking for long long int... " >&6; }
18207 if ${ac_cv_type_long_long_int+:} false; then :
18208 $as_echo_n "(cached) " >&6
18210 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18211 /* end confdefs.h. */
18213 /* For now, do not test the preprocessor; as of 2007 there are too many
18214 implementations with broken preprocessors. Perhaps this can
18215 be revisited in 2012. In the meantime, code should not expect
18216 #if to work with literals wider than 32 bits. */
18217 /* Test literals. */
18218 long long int ll = 9223372036854775807ll;
18219 long long int nll = -9223372036854775807LL;
18220 unsigned long long int ull = 18446744073709551615ULL;
18221 /* Test constant expressions. */
18222 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
18224 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
18230 /* Test availability of runtime routines for shift and division. */
18231 long long int llmax = 9223372036854775807ll;
18232 unsigned long long int ullmax = 18446744073709551615ull;
18233 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
18234 | (llmax / ll) | (llmax % ll)
18235 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
18236 | (ullmax / ull) | (ullmax % ull));
18242 if ac_fn_c_try_link "$LINENO"; then :
18243 if test "$cross_compiling" = yes; then :
18244 ac_cv_type_long_long_int=yes
18246 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18247 /* end confdefs.h. */
18248 #include <limits.h>
18251 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
18252 # define LLONG_MAX (HALF - 1 + HALF)
18257 long long int n = 1;
18261 long long int m = n << i;
18264 if (LLONG_MAX / 2 < m)
18272 if ac_fn_c_try_run "$LINENO"; then :
18273 ac_cv_type_long_long_int=yes
18275 ac_cv_type_long_long_int=no
18277 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18278 conftest.$ac_objext conftest.beam conftest.$ac_ext
18282 ac_cv_type_long_long_int=no
18284 rm -f core conftest.err conftest.$ac_objext \
18285 conftest$ac_exeext conftest.$ac_ext
18287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
18288 $as_echo "$ac_cv_type_long_long_int" >&6; }
18289 if test $ac_cv_type_long_long_int = yes; then
18291 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
18296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
18297 $as_echo_n "checking for unsigned long long int... " >&6; }
18298 if ${ac_cv_type_unsigned_long_long_int+:} false; then :
18299 $as_echo_n "(cached) " >&6
18301 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18302 /* end confdefs.h. */
18304 /* For now, do not test the preprocessor; as of 2007 there are too many
18305 implementations with broken preprocessors. Perhaps this can
18306 be revisited in 2012. In the meantime, code should not expect
18307 #if to work with literals wider than 32 bits. */
18308 /* Test literals. */
18309 long long int ll = 9223372036854775807ll;
18310 long long int nll = -9223372036854775807LL;
18311 unsigned long long int ull = 18446744073709551615ULL;
18312 /* Test constant expressions. */
18313 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
18315 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
18321 /* Test availability of runtime routines for shift and division. */
18322 long long int llmax = 9223372036854775807ll;
18323 unsigned long long int ullmax = 18446744073709551615ull;
18324 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
18325 | (llmax / ll) | (llmax % ll)
18326 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
18327 | (ullmax / ull) | (ullmax % ull));
18333 if ac_fn_c_try_link "$LINENO"; then :
18334 ac_cv_type_unsigned_long_long_int=yes
18336 ac_cv_type_unsigned_long_long_int=no
18338 rm -f core conftest.err conftest.$ac_objext \
18339 conftest$ac_exeext conftest.$ac_ext
18341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
18342 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
18343 if test $ac_cv_type_unsigned_long_long_int = yes; then
18345 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
18362 if test $ac_cv_type_long_long_int = yes; then
18363 HAVE_LONG_LONG_INT=1
18365 HAVE_LONG_LONG_INT=0
18369 if test $ac_cv_type_unsigned_long_long_int = yes; then
18370 HAVE_UNSIGNED_LONG_LONG_INT=1
18372 HAVE_UNSIGNED_LONG_LONG_INT=0
18383 if test $ac_cv_header_wchar_h = yes; then
18390 if test $ac_cv_header_inttypes_h = yes; then
18397 if test $ac_cv_header_sys_types_h = yes; then
18419 if test $gl_cv_have_include_next = yes; then
18420 gl_cv_next_stdint_h='<'stdint.h'>'
18422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdint.h>" >&5
18423 $as_echo_n "checking absolute name of <stdint.h>... " >&6; }
18424 if ${gl_cv_next_stdint_h+:} false; then :
18425 $as_echo_n "(cached) " >&6
18428 if test $ac_cv_header_stdint_h = yes; then
18433 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18434 /* end confdefs.h. */
18435 #include <stdint.h>
18438 aix*) gl_absname_cpp="$ac_cpp -C" ;;
18439 *) gl_absname_cpp="$ac_cpp" ;;
18444 gl_dirsep_regex='[/\\]'
18447 gl_dirsep_regex='\/'
18450 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
18451 gl_header_literal_regex=`echo 'stdint.h' \
18452 | sed -e "$gl_make_literal_regex_sed"`
18453 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
18454 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
18460 gl_cv_absolute_stdint_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
18461 sed -n "$gl_absolute_header_sed"`
18463 gl_header=$gl_cv_absolute_stdint_h
18464 gl_cv_next_stdint_h='"'$gl_header'"'
18466 gl_cv_next_stdint_h='<'stdint.h'>'
18471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdint_h" >&5
18472 $as_echo "$gl_cv_next_stdint_h" >&6; }
18474 NEXT_STDINT_H=$gl_cv_next_stdint_h
18476 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
18477 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
18478 gl_next_as_first_directive='<'stdint.h'>'
18480 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
18481 gl_next_as_first_directive=$gl_cv_next_stdint_h
18483 NEXT_AS_FIRST_DIRECTIVE_STDINT_H=$gl_next_as_first_directive
18488 if test $ac_cv_header_stdint_h = yes; then
18495 if test $ac_cv_header_stdint_h = yes; then
18496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stdint.h conforms to C99" >&5
18497 $as_echo_n "checking whether stdint.h conforms to C99... " >&6; }
18498 if ${gl_cv_header_working_stdint_h+:} false; then :
18499 $as_echo_n "(cached) " >&6
18501 gl_cv_header_working_stdint_h=no
18502 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18503 /* end confdefs.h. */
18506 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
18507 #include <stdint.h>
18508 /* Dragonfly defines WCHAR_MIN, WCHAR_MAX only in <wchar.h>. */
18509 #if !(defined WCHAR_MIN && defined WCHAR_MAX)
18510 #error "WCHAR_MIN, WCHAR_MAX not defined in <stdint.h>"
18514 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
18515 included before <wchar.h>. */
18516 #include <stddef.h>
18517 #include <signal.h>
18519 # include <stdio.h>
18521 # include <wchar.h>
18526 int8_t a1 = INT8_MAX;
18527 int8_t a1min = INT8_MIN;
18530 int16_t a2 = INT16_MAX;
18531 int16_t a2min = INT16_MIN;
18534 int32_t a3 = INT32_MAX;
18535 int32_t a3min = INT32_MIN;
18538 int64_t a4 = INT64_MAX;
18539 int64_t a4min = INT64_MIN;
18542 uint8_t b1 = UINT8_MAX;
18544 typedef int b1[(unsigned char) -1 != 255 ? 1 : -1];
18547 uint16_t b2 = UINT16_MAX;
18550 uint32_t b3 = UINT32_MAX;
18553 uint64_t b4 = UINT64_MAX;
18555 int_least8_t c1 = INT8_C (0x7f);
18556 int_least8_t c1max = INT_LEAST8_MAX;
18557 int_least8_t c1min = INT_LEAST8_MIN;
18558 int_least16_t c2 = INT16_C (0x7fff);
18559 int_least16_t c2max = INT_LEAST16_MAX;
18560 int_least16_t c2min = INT_LEAST16_MIN;
18561 int_least32_t c3 = INT32_C (0x7fffffff);
18562 int_least32_t c3max = INT_LEAST32_MAX;
18563 int_least32_t c3min = INT_LEAST32_MIN;
18564 int_least64_t c4 = INT64_C (0x7fffffffffffffff);
18565 int_least64_t c4max = INT_LEAST64_MAX;
18566 int_least64_t c4min = INT_LEAST64_MIN;
18567 uint_least8_t d1 = UINT8_C (0xff);
18568 uint_least8_t d1max = UINT_LEAST8_MAX;
18569 uint_least16_t d2 = UINT16_C (0xffff);
18570 uint_least16_t d2max = UINT_LEAST16_MAX;
18571 uint_least32_t d3 = UINT32_C (0xffffffff);
18572 uint_least32_t d3max = UINT_LEAST32_MAX;
18573 uint_least64_t d4 = UINT64_C (0xffffffffffffffff);
18574 uint_least64_t d4max = UINT_LEAST64_MAX;
18575 int_fast8_t e1 = INT_FAST8_MAX;
18576 int_fast8_t e1min = INT_FAST8_MIN;
18577 int_fast16_t e2 = INT_FAST16_MAX;
18578 int_fast16_t e2min = INT_FAST16_MIN;
18579 int_fast32_t e3 = INT_FAST32_MAX;
18580 int_fast32_t e3min = INT_FAST32_MIN;
18581 int_fast64_t e4 = INT_FAST64_MAX;
18582 int_fast64_t e4min = INT_FAST64_MIN;
18583 uint_fast8_t f1 = UINT_FAST8_MAX;
18584 uint_fast16_t f2 = UINT_FAST16_MAX;
18585 uint_fast32_t f3 = UINT_FAST32_MAX;
18586 uint_fast64_t f4 = UINT_FAST64_MAX;
18588 intptr_t g = INTPTR_MAX;
18589 intptr_t gmin = INTPTR_MIN;
18592 uintptr_t h = UINTPTR_MAX;
18594 intmax_t i = INTMAX_MAX;
18595 uintmax_t j = UINTMAX_MAX;
18597 #include <limits.h> /* for CHAR_BIT */
18598 #define TYPE_MINIMUM(t) \
18599 ((t) ((t) 0 < (t) -1 ? (t) 0 : ~ TYPE_MAXIMUM (t)))
18600 #define TYPE_MAXIMUM(t) \
18601 ((t) ((t) 0 < (t) -1 \
18603 : ((((t) 1 << (sizeof (t) * CHAR_BIT - 2)) - 1) * 2 + 1)))
18606 PTRDIFF_MIN == TYPE_MINIMUM (ptrdiff_t)
18607 && PTRDIFF_MAX == TYPE_MAXIMUM (ptrdiff_t)
18609 /* Detect bug in FreeBSD 6.0 / ia64. */
18610 int check_SIG_ATOMIC:
18611 SIG_ATOMIC_MIN == TYPE_MINIMUM (sig_atomic_t)
18612 && SIG_ATOMIC_MAX == TYPE_MAXIMUM (sig_atomic_t)
18614 int check_SIZE: SIZE_MAX == TYPE_MAXIMUM (size_t) ? 1 : -1;
18616 WCHAR_MIN == TYPE_MINIMUM (wchar_t)
18617 && WCHAR_MAX == TYPE_MAXIMUM (wchar_t)
18619 /* Detect bug in mingw. */
18621 WINT_MIN == TYPE_MINIMUM (wint_t)
18622 && WINT_MAX == TYPE_MAXIMUM (wint_t)
18625 /* Detect bugs in glibc 2.4 and Solaris 10 stdint.h, among others. */
18627 (-1 < UINT8_C (0)) == (-1 < (uint_least8_t) 0) ? 1 : -1;
18628 int check_UINT16_C:
18629 (-1 < UINT16_C (0)) == (-1 < (uint_least16_t) 0) ? 1 : -1;
18631 /* Detect bugs in OpenBSD 3.9 stdint.h. */
18633 int check_uint8: (uint8_t) -1 == UINT8_MAX ? 1 : -1;
18636 int check_uint16: (uint16_t) -1 == UINT16_MAX ? 1 : -1;
18639 int check_uint32: (uint32_t) -1 == UINT32_MAX ? 1 : -1;
18642 int check_uint64: (uint64_t) -1 == UINT64_MAX ? 1 : -1;
18644 int check_uint_least8: (uint_least8_t) -1 == UINT_LEAST8_MAX ? 1 : -1;
18645 int check_uint_least16: (uint_least16_t) -1 == UINT_LEAST16_MAX ? 1 : -1;
18646 int check_uint_least32: (uint_least32_t) -1 == UINT_LEAST32_MAX ? 1 : -1;
18647 int check_uint_least64: (uint_least64_t) -1 == UINT_LEAST64_MAX ? 1 : -1;
18648 int check_uint_fast8: (uint_fast8_t) -1 == UINT_FAST8_MAX ? 1 : -1;
18649 int check_uint_fast16: (uint_fast16_t) -1 == UINT_FAST16_MAX ? 1 : -1;
18650 int check_uint_fast32: (uint_fast32_t) -1 == UINT_FAST32_MAX ? 1 : -1;
18651 int check_uint_fast64: (uint_fast64_t) -1 == UINT_FAST64_MAX ? 1 : -1;
18652 int check_uintptr: (uintptr_t) -1 == UINTPTR_MAX ? 1 : -1;
18653 int check_uintmax: (uintmax_t) -1 == UINTMAX_MAX ? 1 : -1;
18654 int check_size: (size_t) -1 == SIZE_MAX ? 1 : -1;
18665 if ac_fn_c_try_compile "$LINENO"; then :
18666 if test "$cross_compiling" = yes; then :
18667 gl_cv_header_working_stdint_h=yes
18670 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18671 /* end confdefs.h. */
18674 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
18675 #include <stdint.h>
18678 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
18679 included before <wchar.h>. */
18680 #include <stddef.h>
18681 #include <signal.h>
18683 # include <stdio.h>
18685 # include <wchar.h>
18690 #include <string.h>
18691 #define MVAL(macro) MVAL1(macro)
18692 #define MVAL1(expression) #expression
18693 static const char *macro_values[] =
18727 for (mv = macro_values; *mv != NULL; mv++)
18729 const char *value = *mv;
18730 /* Test whether it looks like a cast expression. */
18731 if (strncmp (value, "((unsigned int)"/*)*/, 15) == 0
18732 || strncmp (value, "((unsigned short)"/*)*/, 17) == 0
18733 || strncmp (value, "((unsigned char)"/*)*/, 16) == 0
18734 || strncmp (value, "((int)"/*)*/, 6) == 0
18735 || strncmp (value, "((signed short)"/*)*/, 15) == 0
18736 || strncmp (value, "((signed char)"/*)*/, 14) == 0)
18737 return mv - macro_values + 1;
18745 if ac_fn_c_try_run "$LINENO"; then :
18746 gl_cv_header_working_stdint_h=yes
18748 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18749 conftest.$ac_objext conftest.beam conftest.$ac_ext
18754 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_stdint_h" >&5
18758 $as_echo "$gl_cv_header_working_stdint_h" >&6; }
18760 if test "$gl_cv_header_working_stdint_h" = yes; then
18763 for ac_header in sys/inttypes.h sys/bitypes.h
18765 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
18766 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
18767 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
18768 cat >>confdefs.h <<_ACEOF
18769 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
18776 if test $ac_cv_header_sys_inttypes_h = yes; then
18777 HAVE_SYS_INTTYPES_H=1
18779 HAVE_SYS_INTTYPES_H=0
18782 if test $ac_cv_header_sys_bitypes_h = yes; then
18783 HAVE_SYS_BITYPES_H=1
18785 HAVE_SYS_BITYPES_H=0
18791 if test $APPLE_UNIVERSAL_BUILD = 0; then
18794 for gltype in ptrdiff_t size_t ; do
18795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
18796 $as_echo_n "checking for bit size of $gltype... " >&6; }
18797 if eval \${gl_cv_bitsizeof_${gltype}+:} false; then :
18798 $as_echo_n "(cached) " >&6
18800 if ac_fn_c_compute_int "$LINENO" "sizeof ($gltype) * CHAR_BIT" "result" "
18801 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
18802 included before <wchar.h>. */
18803 #include <stddef.h>
18804 #include <signal.h>
18806 # include <stdio.h>
18808 # include <wchar.h>
18811 #include <limits.h>"; then :
18817 eval gl_cv_bitsizeof_${gltype}=\$result
18820 eval ac_res=\$gl_cv_bitsizeof_${gltype}
18821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18822 $as_echo "$ac_res" >&6; }
18823 eval result=\$gl_cv_bitsizeof_${gltype}
18824 if test $result = unknown; then
18827 GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
18828 cat >>confdefs.h <<_ACEOF
18829 #define BITSIZEOF_${GLTYPE} $result
18832 eval BITSIZEOF_${GLTYPE}=\$result
18839 for gltype in sig_atomic_t wchar_t wint_t ; do
18840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
18841 $as_echo_n "checking for bit size of $gltype... " >&6; }
18842 if eval \${gl_cv_bitsizeof_${gltype}+:} false; then :
18843 $as_echo_n "(cached) " >&6
18845 if ac_fn_c_compute_int "$LINENO" "sizeof ($gltype) * CHAR_BIT" "result" "
18846 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
18847 included before <wchar.h>. */
18848 #include <stddef.h>
18849 #include <signal.h>
18851 # include <stdio.h>
18853 # include <wchar.h>
18856 #include <limits.h>"; then :
18862 eval gl_cv_bitsizeof_${gltype}=\$result
18865 eval ac_res=\$gl_cv_bitsizeof_${gltype}
18866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18867 $as_echo "$ac_res" >&6; }
18868 eval result=\$gl_cv_bitsizeof_${gltype}
18869 if test $result = unknown; then
18872 GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
18873 cat >>confdefs.h <<_ACEOF
18874 #define BITSIZEOF_${GLTYPE} $result
18877 eval BITSIZEOF_${GLTYPE}=\$result
18883 for gltype in sig_atomic_t wchar_t wint_t ; do
18884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gltype is signed" >&5
18885 $as_echo_n "checking whether $gltype is signed... " >&6; }
18886 if eval \${gl_cv_type_${gltype}_signed+:} false; then :
18887 $as_echo_n "(cached) " >&6
18889 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18890 /* end confdefs.h. */
18892 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
18893 included before <wchar.h>. */
18894 #include <stddef.h>
18895 #include <signal.h>
18897 # include <stdio.h>
18899 # include <wchar.h>
18902 int verify[2 * (($gltype) -1 < ($gltype) 0) - 1];
18911 if ac_fn_c_try_compile "$LINENO"; then :
18916 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18917 eval gl_cv_type_${gltype}_signed=\$result
18920 eval ac_res=\$gl_cv_type_${gltype}_signed
18921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18922 $as_echo "$ac_res" >&6; }
18923 eval result=\$gl_cv_type_${gltype}_signed
18924 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
18925 if test "$result" = yes; then
18926 cat >>confdefs.h <<_ACEOF
18927 #define HAVE_SIGNED_${GLTYPE} 1
18930 eval HAVE_SIGNED_${GLTYPE}=1
18932 eval HAVE_SIGNED_${GLTYPE}=0
18937 gl_cv_type_ptrdiff_t_signed=yes
18938 gl_cv_type_size_t_signed=no
18939 if test $APPLE_UNIVERSAL_BUILD = 0; then
18942 for gltype in ptrdiff_t size_t ; do
18943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
18944 $as_echo_n "checking for $gltype integer literal suffix... " >&6; }
18945 if eval \${gl_cv_type_${gltype}_suffix+:} false; then :
18946 $as_echo_n "(cached) " >&6
18948 eval gl_cv_type_${gltype}_suffix=no
18949 eval result=\$gl_cv_type_${gltype}_signed
18950 if test "$result" = yes; then
18955 for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do
18957 '') gltype1='int';;
18958 l) gltype1='long int';;
18959 ll) gltype1='long long int';;
18960 i64) gltype1='__int64';;
18961 u) gltype1='unsigned int';;
18962 ul) gltype1='unsigned long int';;
18963 ull) gltype1='unsigned long long int';;
18964 ui64)gltype1='unsigned __int64';;
18966 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18967 /* end confdefs.h. */
18969 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
18970 included before <wchar.h>. */
18971 #include <stddef.h>
18972 #include <signal.h>
18974 # include <stdio.h>
18976 # include <wchar.h>
18979 extern $gltype foo;
18980 extern $gltype1 foo;
18989 if ac_fn_c_try_compile "$LINENO"; then :
18990 eval gl_cv_type_${gltype}_suffix=\$glsuf
18992 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18993 eval result=\$gl_cv_type_${gltype}_suffix
18994 test "$result" != no && break
18997 eval ac_res=\$gl_cv_type_${gltype}_suffix
18998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18999 $as_echo "$ac_res" >&6; }
19000 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
19001 eval result=\$gl_cv_type_${gltype}_suffix
19002 test "$result" = no && result=
19003 eval ${GLTYPE}_SUFFIX=\$result
19004 cat >>confdefs.h <<_ACEOF
19005 #define ${GLTYPE}_SUFFIX $result
19014 for gltype in sig_atomic_t wchar_t wint_t ; do
19015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
19016 $as_echo_n "checking for $gltype integer literal suffix... " >&6; }
19017 if eval \${gl_cv_type_${gltype}_suffix+:} false; then :
19018 $as_echo_n "(cached) " >&6
19020 eval gl_cv_type_${gltype}_suffix=no
19021 eval result=\$gl_cv_type_${gltype}_signed
19022 if test "$result" = yes; then
19027 for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do
19029 '') gltype1='int';;
19030 l) gltype1='long int';;
19031 ll) gltype1='long long int';;
19032 i64) gltype1='__int64';;
19033 u) gltype1='unsigned int';;
19034 ul) gltype1='unsigned long int';;
19035 ull) gltype1='unsigned long long int';;
19036 ui64)gltype1='unsigned __int64';;
19038 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19039 /* end confdefs.h. */
19041 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
19042 included before <wchar.h>. */
19043 #include <stddef.h>
19044 #include <signal.h>
19046 # include <stdio.h>
19048 # include <wchar.h>
19051 extern $gltype foo;
19052 extern $gltype1 foo;
19061 if ac_fn_c_try_compile "$LINENO"; then :
19062 eval gl_cv_type_${gltype}_suffix=\$glsuf
19064 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19065 eval result=\$gl_cv_type_${gltype}_suffix
19066 test "$result" != no && break
19069 eval ac_res=\$gl_cv_type_${gltype}_suffix
19070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
19071 $as_echo "$ac_res" >&6; }
19072 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
19073 eval result=\$gl_cv_type_${gltype}_suffix
19074 test "$result" = no && result=
19075 eval ${GLTYPE}_SUFFIX=\$result
19076 cat >>confdefs.h <<_ACEOF
19077 #define ${GLTYPE}_SUFFIX $result
19084 if test $BITSIZEOF_WINT_T -lt 32; then
19085 BITSIZEOF_WINT_T=32
19091 if test -n "$STDINT_H"; then
19092 GL_GENERATE_STDINT_H_TRUE=
19093 GL_GENERATE_STDINT_H_FALSE='#'
19095 GL_GENERATE_STDINT_H_TRUE='#'
19096 GL_GENERATE_STDINT_H_FALSE=
19104 HAVE_DECL_STRNCASECMP=1;
19117 if test $gl_cv_have_include_next = yes; then
19118 gl_cv_next_string_h='<'string.h'>'
19120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <string.h>" >&5
19121 $as_echo_n "checking absolute name of <string.h>... " >&6; }
19122 if ${gl_cv_next_string_h+:} false; then :
19123 $as_echo_n "(cached) " >&6
19128 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19129 /* end confdefs.h. */
19130 #include <string.h>
19133 aix*) gl_absname_cpp="$ac_cpp -C" ;;
19134 *) gl_absname_cpp="$ac_cpp" ;;
19139 gl_dirsep_regex='[/\\]'
19142 gl_dirsep_regex='\/'
19145 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
19146 gl_header_literal_regex=`echo 'string.h' \
19147 | sed -e "$gl_make_literal_regex_sed"`
19148 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
19149 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
19155 gl_cv_absolute_string_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
19156 sed -n "$gl_absolute_header_sed"`
19158 gl_header=$gl_cv_absolute_string_h
19159 gl_cv_next_string_h='"'$gl_header'"'
19163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_string_h" >&5
19164 $as_echo "$gl_cv_next_string_h" >&6; }
19166 NEXT_STRING_H=$gl_cv_next_string_h
19168 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
19169 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
19170 gl_next_as_first_directive='<'string.h'>'
19172 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
19173 gl_next_as_first_directive=$gl_cv_next_string_h
19175 NEXT_AS_FIRST_DIRECTIVE_STRING_H=$gl_next_as_first_directive
19182 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
19183 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
19184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
19185 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
19186 if eval \${$as_gl_Symbol+:} false; then :
19187 $as_echo_n "(cached) " >&6
19189 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19190 /* end confdefs.h. */
19191 #include <string.h>
19202 if ac_fn_c_try_compile "$LINENO"; then :
19203 eval "$as_gl_Symbol=yes"
19205 eval "$as_gl_Symbol=no"
19207 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19209 eval ac_res=\$$as_gl_Symbol
19210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
19211 $as_echo "$ac_res" >&6; }
19212 if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
19213 cat >>confdefs.h <<_ACEOF
19214 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
19217 eval ac_cv_have_decl_$gl_func=yes
19245 if test $gl_cv_have_include_next = yes; then
19246 gl_cv_next_strings_h='<'strings.h'>'
19248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <strings.h>" >&5
19249 $as_echo_n "checking absolute name of <strings.h>... " >&6; }
19250 if ${gl_cv_next_strings_h+:} false; then :
19251 $as_echo_n "(cached) " >&6
19254 if test $ac_cv_header_strings_h = yes; then
19259 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19260 /* end confdefs.h. */
19261 #include <strings.h>
19264 aix*) gl_absname_cpp="$ac_cpp -C" ;;
19265 *) gl_absname_cpp="$ac_cpp" ;;
19270 gl_dirsep_regex='[/\\]'
19273 gl_dirsep_regex='\/'
19276 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
19277 gl_header_literal_regex=`echo 'strings.h' \
19278 | sed -e "$gl_make_literal_regex_sed"`
19279 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
19280 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
19286 gl_cv_absolute_strings_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
19287 sed -n "$gl_absolute_header_sed"`
19289 gl_header=$gl_cv_absolute_strings_h
19290 gl_cv_next_strings_h='"'$gl_header'"'
19292 gl_cv_next_strings_h='<'strings.h'>'
19297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_strings_h" >&5
19298 $as_echo "$gl_cv_next_strings_h" >&6; }
19300 NEXT_STRINGS_H=$gl_cv_next_strings_h
19302 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
19303 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
19304 gl_next_as_first_directive='<'strings.h'>'
19306 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
19307 gl_next_as_first_directive=$gl_cv_next_strings_h
19309 NEXT_AS_FIRST_DIRECTIVE_STRINGS_H=$gl_next_as_first_directive
19314 if test $ac_cv_header_strings_h = yes; then
19322 for gl_func in ffs strcasecmp strncasecmp; do
19323 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
19324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
19325 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
19326 if eval \${$as_gl_Symbol+:} false; then :
19327 $as_echo_n "(cached) " >&6
19329 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19330 /* end confdefs.h. */
19332 /* Minix 3.1.8 has a bug: <sys/types.h> must be included before
19334 #include <sys/types.h>
19335 #include <strings.h>
19346 if ac_fn_c_try_compile "$LINENO"; then :
19347 eval "$as_gl_Symbol=yes"
19349 eval "$as_gl_Symbol=no"
19351 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19353 eval ac_res=\$$as_gl_Symbol
19354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
19355 $as_echo "$ac_res" >&6; }
19356 if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
19357 cat >>confdefs.h <<_ACEOF
19358 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
19361 eval ac_cv_have_decl_$gl_func=yes
19367 ac_fn_c_check_decl "$LINENO" "strndup" "ac_cv_have_decl_strndup" "$ac_includes_default"
19368 if test "x$ac_cv_have_decl_strndup" = xyes; then :
19374 cat >>confdefs.h <<_ACEOF
19375 #define HAVE_DECL_STRNDUP $ac_have_decl
19385 ac_fn_c_check_decl "$LINENO" "strnlen" "ac_cv_have_decl_strnlen" "$ac_includes_default"
19386 if test "x$ac_cv_have_decl_strnlen" = xyes; then :
19392 cat >>confdefs.h <<_ACEOF
19393 #define HAVE_DECL_STRNLEN $ac_have_decl
19398 ac_fn_c_check_decl "$LINENO" "strtok_r" "ac_cv_have_decl_strtok_r" "$ac_includes_default"
19399 if test "x$ac_cv_have_decl_strtok_r" = xyes; then :
19405 cat >>confdefs.h <<_ACEOF
19406 #define HAVE_DECL_STRTOK_R $ac_have_decl
19415 GNULIB_GETPEERNAME=0;
19416 GNULIB_GETSOCKNAME=0;
19417 GNULIB_GETSOCKOPT=0;
19423 GNULIB_SETSOCKOPT=0;
19426 HAVE_STRUCT_SOCKADDR_STORAGE=1;
19427 HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY=1;
19429 HAVE_SA_FAMILY_T=1;
19439 $as_echo "#define _POSIX_PII_SOCKET 1" >>confdefs.h
19444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <sys/socket.h> is self-contained" >&5
19445 $as_echo_n "checking whether <sys/socket.h> is self-contained... " >&6; }
19446 if ${gl_cv_header_sys_socket_h_selfcontained+:} false; then :
19447 $as_echo_n "(cached) " >&6
19450 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19451 /* end confdefs.h. */
19452 #include <sys/socket.h>
19461 if ac_fn_c_try_compile "$LINENO"; then :
19462 gl_cv_header_sys_socket_h_selfcontained=yes
19464 gl_cv_header_sys_socket_h_selfcontained=no
19466 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_sys_socket_h_selfcontained" >&5
19470 $as_echo "$gl_cv_header_sys_socket_h_selfcontained" >&6; }
19471 if test $gl_cv_header_sys_socket_h_selfcontained = yes; then
19472 for ac_func in shutdown
19474 ac_fn_c_check_func "$LINENO" "shutdown" "ac_cv_func_shutdown"
19475 if test "x$ac_cv_func_shutdown" = xyes; then :
19476 cat >>confdefs.h <<_ACEOF
19477 #define HAVE_SHUTDOWN 1
19483 if test $ac_cv_func_shutdown = yes; then
19484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <sys/socket.h> defines the SHUT_* macros" >&5
19485 $as_echo_n "checking whether <sys/socket.h> defines the SHUT_* macros... " >&6; }
19486 if ${gl_cv_header_sys_socket_h_shut+:} false; then :
19487 $as_echo_n "(cached) " >&6
19490 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19491 /* end confdefs.h. */
19492 #include <sys/socket.h>
19496 int a[] = { SHUT_RD, SHUT_WR, SHUT_RDWR };
19501 if ac_fn_c_try_compile "$LINENO"; then :
19502 gl_cv_header_sys_socket_h_shut=yes
19504 gl_cv_header_sys_socket_h_shut=no
19506 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_sys_socket_h_shut" >&5
19510 $as_echo "$gl_cv_header_sys_socket_h_shut" >&6; }
19511 if test $gl_cv_header_sys_socket_h_shut = no; then
19512 SYS_SOCKET_H='sys/socket.h'
19516 # We need to check for ws2tcpip.h now.
19534 if test $gl_cv_have_include_next = yes; then
19535 gl_cv_next_sys_socket_h='<'sys/socket.h'>'
19537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/socket.h>" >&5
19538 $as_echo_n "checking absolute name of <sys/socket.h>... " >&6; }
19539 if ${gl_cv_next_sys_socket_h+:} false; then :
19540 $as_echo_n "(cached) " >&6
19543 if test $ac_cv_header_sys_socket_h = yes; then
19548 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19549 /* end confdefs.h. */
19550 #include <sys/socket.h>
19553 aix*) gl_absname_cpp="$ac_cpp -C" ;;
19554 *) gl_absname_cpp="$ac_cpp" ;;
19559 gl_dirsep_regex='[/\\]'
19562 gl_dirsep_regex='\/'
19565 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
19566 gl_header_literal_regex=`echo 'sys/socket.h' \
19567 | sed -e "$gl_make_literal_regex_sed"`
19568 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
19569 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
19575 gl_cv_absolute_sys_socket_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
19576 sed -n "$gl_absolute_header_sed"`
19578 gl_header=$gl_cv_absolute_sys_socket_h
19579 gl_cv_next_sys_socket_h='"'$gl_header'"'
19581 gl_cv_next_sys_socket_h='<'sys/socket.h'>'
19586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_socket_h" >&5
19587 $as_echo "$gl_cv_next_sys_socket_h" >&6; }
19589 NEXT_SYS_SOCKET_H=$gl_cv_next_sys_socket_h
19591 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
19592 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
19593 gl_next_as_first_directive='<'sys/socket.h'>'
19595 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
19596 gl_next_as_first_directive=$gl_cv_next_sys_socket_h
19598 NEXT_AS_FIRST_DIRECTIVE_SYS_SOCKET_H=$gl_next_as_first_directive
19603 if test $ac_cv_header_sys_socket_h = yes; then
19604 HAVE_SYS_SOCKET_H=1
19607 HAVE_SYS_SOCKET_H=0
19608 if test $ac_cv_header_ws2tcpip_h = yes; then
19617 ac_fn_c_check_type "$LINENO" "struct sockaddr_storage" "ac_cv_type_struct_sockaddr_storage" "
19618 /* sys/types.h is not needed according to POSIX, but the
19619 sys/socket.h in i386-unknown-freebsd4.10 and
19620 powerpc-apple-darwin5.5 required it. */
19621 #include <sys/types.h>
19622 #ifdef HAVE_SYS_SOCKET_H
19623 #include <sys/socket.h>
19625 #ifdef HAVE_WS2TCPIP_H
19626 #include <ws2tcpip.h>
19630 if test "x$ac_cv_type_struct_sockaddr_storage" = xyes; then :
19632 cat >>confdefs.h <<_ACEOF
19633 #define HAVE_STRUCT_SOCKADDR_STORAGE 1
19638 ac_fn_c_check_type "$LINENO" "sa_family_t" "ac_cv_type_sa_family_t" "
19639 /* sys/types.h is not needed according to POSIX, but the
19640 sys/socket.h in i386-unknown-freebsd4.10 and
19641 powerpc-apple-darwin5.5 required it. */
19642 #include <sys/types.h>
19643 #ifdef HAVE_SYS_SOCKET_H
19644 #include <sys/socket.h>
19646 #ifdef HAVE_WS2TCPIP_H
19647 #include <ws2tcpip.h>
19651 if test "x$ac_cv_type_sa_family_t" = xyes; then :
19653 cat >>confdefs.h <<_ACEOF
19654 #define HAVE_SA_FAMILY_T 1
19660 if test $ac_cv_type_struct_sockaddr_storage = no; then
19661 HAVE_STRUCT_SOCKADDR_STORAGE=0
19663 if test $ac_cv_type_sa_family_t = no; then
19666 if test $ac_cv_type_struct_sockaddr_storage != no; then
19667 ac_fn_c_check_member "$LINENO" "struct sockaddr_storage" "ss_family" "ac_cv_member_struct_sockaddr_storage_ss_family" "#include <sys/types.h>
19668 #ifdef HAVE_SYS_SOCKET_H
19669 #include <sys/socket.h>
19671 #ifdef HAVE_WS2TCPIP_H
19672 #include <ws2tcpip.h>
19676 if test "x$ac_cv_member_struct_sockaddr_storage_ss_family" = xyes; then :
19678 cat >>confdefs.h <<_ACEOF
19679 #define HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY 1
19684 HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY=0
19688 if test $HAVE_STRUCT_SOCKADDR_STORAGE = 0 || test $HAVE_SA_FAMILY_T = 0 \
19689 || test $HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY = 0; then
19690 SYS_SOCKET_H='sys/socket.h'
19702 if test $ac_cv_header_sys_socket_h != yes; then
19703 for ac_header in winsock2.h
19705 ac_fn_c_check_header_mongrel "$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
19706 if test "x$ac_cv_header_winsock2_h" = xyes; then :
19707 cat >>confdefs.h <<_ACEOF
19708 #define HAVE_WINSOCK2_H 1
19716 if test "$ac_cv_header_winsock2_h" = yes; then
19718 UNISTD_H_HAVE_WINSOCK2_H=1
19719 SYS_IOCTL_H_HAVE_WINSOCK2_H=1
19727 for gl_func in socket connect accept bind getpeername getsockname getsockopt listen recv send recvfrom sendto setsockopt shutdown accept4; do
19728 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
19729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
19730 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
19731 if eval \${$as_gl_Symbol+:} false; then :
19732 $as_echo_n "(cached) " >&6
19734 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19735 /* end confdefs.h. */
19737 /* Some systems require prerequisite headers. */
19738 #include <sys/types.h>
19739 #include <sys/socket.h>
19750 if ac_fn_c_try_compile "$LINENO"; then :
19751 eval "$as_gl_Symbol=yes"
19753 eval "$as_gl_Symbol=no"
19755 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19757 eval ac_res=\$$as_gl_Symbol
19758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
19759 $as_echo "$ac_res" >&6; }
19760 if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
19761 cat >>confdefs.h <<_ACEOF
19762 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
19765 eval ac_cv_have_decl_$gl_func=yes
19779 GNULIB_NANOSLEEP=0;
19783 HAVE_DECL_LOCALTIME_R=1;
19787 REPLACE_LOCALTIME_R=GNULIB_PORTCHECK;
19788 REPLACE_MKTIME=GNULIB_PORTCHECK;
19789 REPLACE_NANOSLEEP=GNULIB_PORTCHECK;
19790 REPLACE_TIMEGM=GNULIB_PORTCHECK;
19792 : ${GNULIB_GETTIMEOFDAY=0};
19794 REPLACE_LOCALTIME=0;
19804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <time.h>" >&5
19805 $as_echo_n "checking for struct timespec in <time.h>... " >&6; }
19806 if ${gl_cv_sys_struct_timespec_in_time_h+:} false; then :
19807 $as_echo_n "(cached) " >&6
19809 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19810 /* end confdefs.h. */
19816 static struct timespec x; x.tv_sec = x.tv_nsec;
19821 if ac_fn_c_try_compile "$LINENO"; then :
19822 gl_cv_sys_struct_timespec_in_time_h=yes
19824 gl_cv_sys_struct_timespec_in_time_h=no
19826 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_time_h" >&5
19829 $as_echo "$gl_cv_sys_struct_timespec_in_time_h" >&6; }
19831 TIME_H_DEFINES_STRUCT_TIMESPEC=0
19832 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC=0
19833 PTHREAD_H_DEFINES_STRUCT_TIMESPEC=0
19834 if test $gl_cv_sys_struct_timespec_in_time_h = yes; then
19835 TIME_H_DEFINES_STRUCT_TIMESPEC=1
19837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <sys/time.h>" >&5
19838 $as_echo_n "checking for struct timespec in <sys/time.h>... " >&6; }
19839 if ${gl_cv_sys_struct_timespec_in_sys_time_h+:} false; then :
19840 $as_echo_n "(cached) " >&6
19842 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19843 /* end confdefs.h. */
19844 #include <sys/time.h>
19849 static struct timespec x; x.tv_sec = x.tv_nsec;
19854 if ac_fn_c_try_compile "$LINENO"; then :
19855 gl_cv_sys_struct_timespec_in_sys_time_h=yes
19857 gl_cv_sys_struct_timespec_in_sys_time_h=no
19859 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_sys_time_h" >&5
19862 $as_echo "$gl_cv_sys_struct_timespec_in_sys_time_h" >&6; }
19863 if test $gl_cv_sys_struct_timespec_in_sys_time_h = yes; then
19864 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC=1
19866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <pthread.h>" >&5
19867 $as_echo_n "checking for struct timespec in <pthread.h>... " >&6; }
19868 if ${gl_cv_sys_struct_timespec_in_pthread_h+:} false; then :
19869 $as_echo_n "(cached) " >&6
19871 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19872 /* end confdefs.h. */
19873 #include <pthread.h>
19878 static struct timespec x; x.tv_sec = x.tv_nsec;
19883 if ac_fn_c_try_compile "$LINENO"; then :
19884 gl_cv_sys_struct_timespec_in_pthread_h=yes
19886 gl_cv_sys_struct_timespec_in_pthread_h=no
19888 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_pthread_h" >&5
19891 $as_echo "$gl_cv_sys_struct_timespec_in_pthread_h" >&6; }
19892 if test $gl_cv_sys_struct_timespec_in_pthread_h = yes; then
19893 PTHREAD_H_DEFINES_STRUCT_TIMESPEC=1
19912 if test $gl_cv_have_include_next = yes; then
19913 gl_cv_next_time_h='<'time.h'>'
19915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <time.h>" >&5
19916 $as_echo_n "checking absolute name of <time.h>... " >&6; }
19917 if ${gl_cv_next_time_h+:} false; then :
19918 $as_echo_n "(cached) " >&6
19923 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19924 /* end confdefs.h. */
19928 aix*) gl_absname_cpp="$ac_cpp -C" ;;
19929 *) gl_absname_cpp="$ac_cpp" ;;
19934 gl_dirsep_regex='[/\\]'
19937 gl_dirsep_regex='\/'
19940 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
19941 gl_header_literal_regex=`echo 'time.h' \
19942 | sed -e "$gl_make_literal_regex_sed"`
19943 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
19944 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
19950 gl_cv_absolute_time_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
19951 sed -n "$gl_absolute_header_sed"`
19953 gl_header=$gl_cv_absolute_time_h
19954 gl_cv_next_time_h='"'$gl_header'"'
19958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_time_h" >&5
19959 $as_echo "$gl_cv_next_time_h" >&6; }
19961 NEXT_TIME_H=$gl_cv_next_time_h
19963 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
19964 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
19965 gl_next_as_first_directive='<'time.h'>'
19967 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
19968 gl_next_as_first_directive=$gl_cv_next_time_h
19970 NEXT_AS_FIRST_DIRECTIVE_TIME_H=$gl_next_as_first_directive
19988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wint_t" >&5
19989 $as_echo_n "checking for wint_t... " >&6; }
19990 if ${gt_cv_c_wint_t+:} false; then :
19991 $as_echo_n "(cached) " >&6
19993 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19994 /* end confdefs.h. */
19996 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
19998 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be included
19999 before <wchar.h>. */
20000 #include <stddef.h>
20004 wint_t foo = (wchar_t)'\0';
20013 if ac_fn_c_try_compile "$LINENO"; then :
20018 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wint_t" >&5
20021 $as_echo "$gt_cv_c_wint_t" >&6; }
20022 if test $gt_cv_c_wint_t = yes; then
20024 $as_echo "#define HAVE_WINT_T 1" >>confdefs.h
20041 if test $ac_cv_header_features_h = yes; then
20049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
20050 $as_echo_n "checking for inttypes.h... " >&6; }
20051 if ${gl_cv_header_inttypes_h+:} false; then :
20052 $as_echo_n "(cached) " >&6
20054 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20055 /* end confdefs.h. */
20056 #include <sys/types.h>
20057 #include <inttypes.h>
20061 uintmax_t i = (uintmax_t) -1; return !i;
20066 if ac_fn_c_try_compile "$LINENO"; then :
20067 gl_cv_header_inttypes_h=yes
20069 gl_cv_header_inttypes_h=no
20071 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_inttypes_h" >&5
20074 $as_echo "$gl_cv_header_inttypes_h" >&6; }
20075 if test $gl_cv_header_inttypes_h = yes; then
20077 cat >>confdefs.h <<_ACEOF
20078 #define HAVE_INTTYPES_H_WITH_UINTMAX 1
20084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint.h" >&5
20085 $as_echo_n "checking for stdint.h... " >&6; }
20086 if ${gl_cv_header_stdint_h+:} false; then :
20087 $as_echo_n "(cached) " >&6
20089 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20090 /* end confdefs.h. */
20091 #include <sys/types.h>
20092 #include <stdint.h>
20096 uintmax_t i = (uintmax_t) -1; return !i;
20101 if ac_fn_c_try_compile "$LINENO"; then :
20102 gl_cv_header_stdint_h=yes
20104 gl_cv_header_stdint_h=no
20106 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_stdint_h" >&5
20109 $as_echo "$gl_cv_header_stdint_h" >&6; }
20110 if test $gl_cv_header_stdint_h = yes; then
20112 cat >>confdefs.h <<_ACEOF
20113 #define HAVE_STDINT_H_WITH_UINTMAX 1
20121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intmax_t" >&5
20122 $as_echo_n "checking for intmax_t... " >&6; }
20123 if ${gt_cv_c_intmax_t+:} false; then :
20124 $as_echo_n "(cached) " >&6
20126 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20127 /* end confdefs.h. */
20129 #include <stddef.h>
20130 #include <stdlib.h>
20131 #if HAVE_STDINT_H_WITH_UINTMAX
20132 #include <stdint.h>
20134 #if HAVE_INTTYPES_H_WITH_UINTMAX
20135 #include <inttypes.h>
20141 intmax_t x = -1; return !x;
20146 if ac_fn_c_try_compile "$LINENO"; then :
20147 gt_cv_c_intmax_t=yes
20149 gt_cv_c_intmax_t=no
20151 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_intmax_t" >&5
20154 $as_echo "$gt_cv_c_intmax_t" >&6; }
20155 if test $gt_cv_c_intmax_t = yes; then
20157 $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
20161 test $ac_cv_type_long_long_int = yes \
20162 && ac_type='long long' \
20165 cat >>confdefs.h <<_ACEOF
20166 #define intmax_t $ac_type
20172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the exponent in a 'double'" >&5
20173 $as_echo_n "checking where to find the exponent in a 'double'... " >&6; }
20174 if ${gl_cv_cc_double_expbit0+:} false; then :
20175 $as_echo_n "(cached) " >&6
20178 if test "$cross_compiling" = yes; then :
20180 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20181 /* end confdefs.h. */
20183 #if defined arm || defined __arm || defined __arm__
20188 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20189 $EGREP "mixed_endianness" >/dev/null 2>&1; then :
20190 gl_cv_cc_double_expbit0="unknown"
20194 if ${ac_cv_c_bigendian+:} false; then :
20195 $as_echo_n "(cached) " >&6
20197 ac_cv_c_bigendian=unknown
20198 # See if we're dealing with a universal compiler.
20199 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20200 /* end confdefs.h. */
20201 #ifndef __APPLE_CC__
20202 not a universal capable compiler
20207 if ac_fn_c_try_compile "$LINENO"; then :
20209 # Check for potential -arch flags. It is not universal unless
20210 # there are at least two -arch flags with different values.
20213 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
20214 if test -n "$ac_prev"; then
20216 i?86 | x86_64 | ppc | ppc64)
20217 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
20220 ac_cv_c_bigendian=universal
20226 elif test "x$ac_word" = "x-arch"; then
20231 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20232 if test $ac_cv_c_bigendian = unknown; then
20233 # See if sys/param.h defines the BYTE_ORDER macro.
20234 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20235 /* end confdefs.h. */
20236 #include <sys/types.h>
20237 #include <sys/param.h>
20242 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
20243 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
20245 bogus endian macros
20252 if ac_fn_c_try_compile "$LINENO"; then :
20253 # It does; now see whether it defined to BIG_ENDIAN or not.
20254 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20255 /* end confdefs.h. */
20256 #include <sys/types.h>
20257 #include <sys/param.h>
20262 #if BYTE_ORDER != BIG_ENDIAN
20270 if ac_fn_c_try_compile "$LINENO"; then :
20271 ac_cv_c_bigendian=yes
20273 ac_cv_c_bigendian=no
20275 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20277 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20279 if test $ac_cv_c_bigendian = unknown; then
20280 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
20281 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20282 /* end confdefs.h. */
20283 #include <limits.h>
20288 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
20289 bogus endian macros
20296 if ac_fn_c_try_compile "$LINENO"; then :
20297 # It does; now see whether it defined to _BIG_ENDIAN or not.
20298 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20299 /* end confdefs.h. */
20300 #include <limits.h>
20305 #ifndef _BIG_ENDIAN
20313 if ac_fn_c_try_compile "$LINENO"; then :
20314 ac_cv_c_bigendian=yes
20316 ac_cv_c_bigendian=no
20318 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20320 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20322 if test $ac_cv_c_bigendian = unknown; then
20323 # Compile a test program.
20324 if test "$cross_compiling" = yes; then :
20325 # Try to guess by grepping values from an object file.
20326 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20327 /* end confdefs.h. */
20328 short int ascii_mm[] =
20329 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
20330 short int ascii_ii[] =
20331 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
20332 int use_ascii (int i) {
20333 return ascii_mm[i] + ascii_ii[i];
20335 short int ebcdic_ii[] =
20336 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
20337 short int ebcdic_mm[] =
20338 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
20339 int use_ebcdic (int i) {
20340 return ebcdic_mm[i] + ebcdic_ii[i];
20347 return use_ascii (foo) == use_ebcdic (foo);
20352 if ac_fn_c_try_compile "$LINENO"; then :
20353 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
20354 ac_cv_c_bigendian=yes
20356 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
20357 if test "$ac_cv_c_bigendian" = unknown; then
20358 ac_cv_c_bigendian=no
20360 # finding both strings is unlikely to happen, but who knows?
20361 ac_cv_c_bigendian=unknown
20365 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20367 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20368 /* end confdefs.h. */
20369 $ac_includes_default
20374 /* Are we little or big endian? From Harbison&Steele. */
20378 char c[sizeof (long int)];
20381 return u.c[sizeof (long int) - 1] == 1;
20387 if ac_fn_c_try_run "$LINENO"; then :
20388 ac_cv_c_bigendian=no
20390 ac_cv_c_bigendian=yes
20392 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20393 conftest.$ac_objext conftest.beam conftest.$ac_ext
20399 case $ac_cv_c_bigendian in #(
20401 gl_cv_cc_double_expbit0="word 0 bit 20";; #(
20403 gl_cv_cc_double_expbit0="word 1 bit 20" ;; #(
20406 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
20410 gl_cv_cc_double_expbit0="unknown" ;;
20419 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20420 /* end confdefs.h. */
20423 #include <stddef.h>
20425 #include <string.h>
20427 ((sizeof (double) + sizeof (unsigned int) - 1) / sizeof (unsigned int))
20428 typedef union { double value; unsigned int word[NWORDS]; } memory_double;
20429 static unsigned int ored_words[NWORDS];
20430 static unsigned int anded_words[NWORDS];
20431 static void add_to_ored_words (double x)
20435 /* Clear it first, in case sizeof (double) < sizeof (memory_double). */
20436 memset (&m, 0, sizeof (memory_double));
20438 for (i = 0; i < NWORDS; i++)
20440 ored_words[i] |= m.word[i];
20441 anded_words[i] &= m.word[i];
20447 FILE *fp = fopen ("conftest.out", "w");
20450 for (j = 0; j < NWORDS; j++)
20451 anded_words[j] = ~ (unsigned int) 0;
20452 add_to_ored_words (0.25);
20453 add_to_ored_words (0.5);
20454 add_to_ored_words (1.0);
20455 add_to_ored_words (2.0);
20456 add_to_ored_words (4.0);
20457 /* Remove bits that are common (e.g. if representation of the first mantissa
20458 bit is explicit). */
20459 for (j = 0; j < NWORDS; j++)
20460 ored_words[j] &= ~anded_words[j];
20461 /* Now find the nonzero word. */
20462 for (j = 0; j < NWORDS; j++)
20463 if (ored_words[j] != 0)
20468 for (i = j + 1; i < NWORDS; i++)
20469 if (ored_words[i] != 0)
20471 fprintf (fp, "unknown");
20472 return (fclose (fp) != 0);
20475 if ((ored_words[j] >> i) & 1)
20477 fprintf (fp, "word %d bit %d", (int) j, (int) i);
20478 return (fclose (fp) != 0);
20481 fprintf (fp, "unknown");
20482 return (fclose (fp) != 0);
20486 if ac_fn_c_try_run "$LINENO"; then :
20487 gl_cv_cc_double_expbit0=`cat conftest.out`
20489 gl_cv_cc_double_expbit0="unknown"
20491 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20492 conftest.$ac_objext conftest.beam conftest.$ac_ext
20498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_double_expbit0" >&5
20499 $as_echo "$gl_cv_cc_double_expbit0" >&6; }
20500 case "$gl_cv_cc_double_expbit0" in
20502 word=`echo "$gl_cv_cc_double_expbit0" | sed -e 's/word //' -e 's/ bit.*//'`
20503 bit=`echo "$gl_cv_cc_double_expbit0" | sed -e 's/word.*bit //'`
20505 cat >>confdefs.h <<_ACEOF
20506 #define DBL_EXPBIT0_WORD $word
20510 cat >>confdefs.h <<_ACEOF
20511 #define DBL_EXPBIT0_BIT $bit
20522 for ac_func in snprintf strnlen wcslen wcsnlen mbrtowc wcrtomb
20524 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20525 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
20526 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
20527 cat >>confdefs.h <<_ACEOF
20528 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20534 ac_fn_c_check_decl "$LINENO" "_snprintf" "ac_cv_have_decl__snprintf" "#include <stdio.h>
20536 if test "x$ac_cv_have_decl__snprintf" = xyes; then :
20542 cat >>confdefs.h <<_ACEOF
20543 #define HAVE_DECL__SNPRINTF $ac_have_decl
20548 case "$gl_cv_func_snprintf_retval_c99" in
20551 $as_echo "#define HAVE_SNPRINTF_RETVAL_C99 1" >>confdefs.h
20557 XGETTEXT_EXTRA_OPTIONS=
20560 ac_fn_c_check_decl "$LINENO" "vsnprintf" "ac_cv_have_decl_vsnprintf" "$ac_includes_default"
20561 if test "x$ac_cv_have_decl_vsnprintf" = xyes; then :
20567 cat >>confdefs.h <<_ACEOF
20568 #define HAVE_DECL_VSNPRINTF $ac_have_decl
20578 GNULIB_MBSRTOWCS=0;
20579 GNULIB_MBSNRTOWCS=0;
20581 GNULIB_WCSRTOMBS=0;
20582 GNULIB_WCSNRTOMBS=0;
20599 GNULIB_WCSCASECMP=0;
20600 GNULIB_WCSNCASECMP=0;
20637 HAVE_WCSNCASECMP=1;
20650 HAVE_DECL_WCWIDTH=1;
20651 REPLACE_MBSTATE_T=0;
20657 REPLACE_MBSRTOWCS=0;
20658 REPLACE_MBSNRTOWCS=0;
20660 REPLACE_WCSRTOMBS=0;
20661 REPLACE_WCSNRTOMBS=0;
20663 REPLACE_WCSWIDTH=0;
20666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <wchar.h> uses 'inline' correctly" >&5
20667 $as_echo_n "checking whether <wchar.h> uses 'inline' correctly... " >&6; }
20668 if ${gl_cv_header_wchar_h_correct_inline+:} false; then :
20669 $as_echo_n "(cached) " >&6
20671 gl_cv_header_wchar_h_correct_inline=yes
20672 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20673 /* end confdefs.h. */
20675 #define wcstod renamed_wcstod
20676 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
20678 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
20679 included before <wchar.h>. */
20680 #include <stddef.h>
20684 extern int zero (void);
20685 int main () { return zero(); }
20688 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
20689 (eval $ac_compile) 2>&5
20691 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20692 test $ac_status = 0; }; then
20693 mv conftest.$ac_objext conftest1.$ac_objext
20694 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20695 /* end confdefs.h. */
20697 #define wcstod renamed_wcstod
20698 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
20700 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
20701 included before <wchar.h>. */
20702 #include <stddef.h>
20706 int zero (void) { return 0; }
20709 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
20710 (eval $ac_compile) 2>&5
20712 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20713 test $ac_status = 0; }; then
20714 mv conftest.$ac_objext conftest2.$ac_objext
20715 if $CC -o conftest$ac_exeext $CFLAGS $LDFLAGS conftest1.$ac_objext conftest2.$ac_objext $LIBS >&5 2>&1; then
20718 gl_cv_header_wchar_h_correct_inline=no
20722 rm -f conftest1.$ac_objext conftest2.$ac_objext conftest$ac_exeext
20725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_wchar_h_correct_inline" >&5
20726 $as_echo "$gl_cv_header_wchar_h_correct_inline" >&6; }
20727 if test $gl_cv_header_wchar_h_correct_inline = no; then
20728 as_fn_error $? "<wchar.h> cannot be used with this compiler ($CC $CFLAGS $CPPFLAGS).
20729 This is a known interoperability problem of glibc <= 2.5 with gcc >= 4.3 in
20730 C99 mode. You have four options:
20731 - Add the flag -fgnu89-inline to CC and reconfigure, or
20732 - Fix your include files, using parts of
20733 <http://sourceware.org/git/?p=glibc.git;a=commitdiff;h=b037a293a48718af30d706c2e18c929d0e69a621>, or
20734 - Use a gcc version older than 4.3, or
20735 - Don't use the flags -std=c99 or -std=gnu99.
20736 Configuration aborted." "$LINENO" 5
20741 GNULIB_NONBLOCKING=0;
20752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fcntl.h" >&5
20753 $as_echo_n "checking for working fcntl.h... " >&6; }
20754 if ${gl_cv_header_working_fcntl_h+:} false; then :
20755 $as_echo_n "(cached) " >&6
20757 if test "$cross_compiling" = yes; then :
20758 gl_cv_header_working_fcntl_h=cross-compiling
20760 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20761 /* end confdefs.h. */
20762 #include <sys/types.h>
20763 #include <sys/stat.h>
20764 #include <unistd.h>
20767 #define O_NOATIME 0
20770 #define O_NOFOLLOW 0
20772 static int const constants[] =
20774 O_CREAT, O_EXCL, O_NOCTTY, O_TRUNC, O_APPEND,
20775 O_NONBLOCK, O_SYNC, O_ACCMODE, O_RDONLY, O_RDWR, O_WRONLY
20782 int status = !constants;
20784 static char const sym[] = "conftest.sym";
20785 if (symlink (".", sym) != 0
20786 || close (open (sym, O_RDONLY | O_NOFOLLOW)) == 0)
20791 static char const file[] = "confdefs.h";
20792 int fd = open (file, O_RDONLY | O_NOATIME);
20794 struct stat st0, st1;
20796 || fstat (fd, &st0) != 0
20798 || read (fd, &c, 1) != 1
20800 || stat (file, &st1) != 0
20801 || st0.st_atime != st1.st_atime)
20809 if ac_fn_c_try_run "$LINENO"; then :
20810 gl_cv_header_working_fcntl_h=yes
20813 32) gl_cv_header_working_fcntl_h='no (bad O_NOFOLLOW)';; #(
20814 64) gl_cv_header_working_fcntl_h='no (bad O_NOATIME)';; #(
20815 96) gl_cv_header_working_fcntl_h='no (bad O_NOATIME, O_NOFOLLOW)';; #(
20816 *) gl_cv_header_working_fcntl_h='no';;
20819 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20820 conftest.$ac_objext conftest.beam conftest.$ac_ext
20824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_fcntl_h" >&5
20825 $as_echo "$gl_cv_header_working_fcntl_h" >&6; }
20827 case $gl_cv_header_working_fcntl_h in #(
20828 *O_NOATIME* | no | cross-compiling) ac_val=0;; #(
20832 cat >>confdefs.h <<_ACEOF
20833 #define HAVE_WORKING_O_NOATIME $ac_val
20837 case $gl_cv_header_working_fcntl_h in #(
20838 *O_NOFOLLOW* | no | cross-compiling) ac_val=0;; #(
20842 cat >>confdefs.h <<_ACEOF
20843 #define HAVE_WORKING_O_NOFOLLOW $ac_val
20850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ungetc works on arbitrary bytes" >&5
20851 $as_echo_n "checking whether ungetc works on arbitrary bytes... " >&6; }
20852 if ${gl_cv_func_ungetc_works+:} false; then :
20853 $as_echo_n "(cached) " >&6
20855 if test "$cross_compiling" = yes; then :
20857 # Guess yes on glibc systems.
20858 *-gnu*) gl_cv_func_ungetc_works="guessing yes" ;;
20859 # If we don't know, assume the worst.
20860 *) gl_cv_func_ungetc_works="guessing no" ;;
20864 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20865 /* end confdefs.h. */
20873 if (!(f = fopen ("conftest.tmp", "w+"))) return 1;
20874 if (fputs ("abc", f) < 0) return 2;
20876 if (fgetc (f) != 'a') return 3;
20877 if (fgetc (f) != 'b') return 4;
20878 if (ungetc ('d', f) != 'd') return 5;
20879 if (ftell (f) != 1) return 6;
20880 if (fgetc (f) != 'd') return 7;
20881 if (ftell (f) != 2) return 8;
20882 if (fseek (f, 0, SEEK_CUR) != 0) return 9;
20883 if (ftell (f) != 2) return 10;
20884 if (fgetc (f) != 'c') return 11;
20885 fclose (f); remove ("conftest.tmp");
20890 if ac_fn_c_try_run "$LINENO"; then :
20891 gl_cv_func_ungetc_works=yes
20893 gl_cv_func_ungetc_works=no
20895 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20896 conftest.$ac_objext conftest.beam conftest.$ac_ext
20901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_ungetc_works" >&5
20902 $as_echo "$gl_cv_func_ungetc_works" >&6; }
20903 case "$gl_cv_func_ungetc_works" in
20907 $as_echo "#define FUNC_UNGETC_BROKEN 1" >>confdefs.h
20920 GNULIB_STRTOIMAX=0;
20921 GNULIB_STRTOUMAX=0;
20922 HAVE_DECL_IMAXABS=1;
20923 HAVE_DECL_IMAXDIV=1;
20924 HAVE_DECL_STRTOIMAX=1;
20925 HAVE_DECL_STRTOUMAX=1;
20926 REPLACE_STRTOIMAX=0;
20927 REPLACE_STRTOUMAX=0;
20928 INT32_MAX_LT_INTMAX_MAX=1;
20929 INT64_MAX_EQ_LONG_MAX='defined _LP64';
20930 PRI_MACROS_BROKEN=0;
20931 PRIPTR_PREFIX=__PRIPTR_PREFIX;
20932 UINT32_MAX_LT_UINTMAX_MAX=1;
20933 UINT64_MAX_EQ_ULONG_MAX='defined _LP64';
20961 if test $gl_cv_have_include_next = yes; then
20962 gl_cv_next_inttypes_h='<'inttypes.h'>'
20964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <inttypes.h>" >&5
20965 $as_echo_n "checking absolute name of <inttypes.h>... " >&6; }
20966 if ${gl_cv_next_inttypes_h+:} false; then :
20967 $as_echo_n "(cached) " >&6
20970 if test $ac_cv_header_inttypes_h = yes; then
20975 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20976 /* end confdefs.h. */
20977 #include <inttypes.h>
20980 aix*) gl_absname_cpp="$ac_cpp -C" ;;
20981 *) gl_absname_cpp="$ac_cpp" ;;
20986 gl_dirsep_regex='[/\\]'
20989 gl_dirsep_regex='\/'
20992 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
20993 gl_header_literal_regex=`echo 'inttypes.h' \
20994 | sed -e "$gl_make_literal_regex_sed"`
20995 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
20996 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
21002 gl_cv_absolute_inttypes_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
21003 sed -n "$gl_absolute_header_sed"`
21005 gl_header=$gl_cv_absolute_inttypes_h
21006 gl_cv_next_inttypes_h='"'$gl_header'"'
21008 gl_cv_next_inttypes_h='<'inttypes.h'>'
21013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_inttypes_h" >&5
21014 $as_echo "$gl_cv_next_inttypes_h" >&6; }
21016 NEXT_INTTYPES_H=$gl_cv_next_inttypes_h
21018 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
21019 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
21020 gl_next_as_first_directive='<'inttypes.h'>'
21022 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
21023 gl_next_as_first_directive=$gl_cv_next_inttypes_h
21025 NEXT_AS_FIRST_DIRECTIVE_INTTYPES_H=$gl_next_as_first_directive
21034 for gl_func in imaxabs imaxdiv strtoimax strtoumax; do
21035 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
21036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
21037 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
21038 if eval \${$as_gl_Symbol+:} false; then :
21039 $as_echo_n "(cached) " >&6
21041 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21042 /* end confdefs.h. */
21043 #include <inttypes.h>
21054 if ac_fn_c_try_compile "$LINENO"; then :
21055 eval "$as_gl_Symbol=yes"
21057 eval "$as_gl_Symbol=no"
21059 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21061 eval ac_res=\$$as_gl_Symbol
21062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
21063 $as_echo "$ac_res" >&6; }
21064 if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
21065 cat >>confdefs.h <<_ACEOF
21066 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
21069 eval ac_cv_have_decl_$gl_func=yes
21075 for ac_header in inttypes.h
21077 ac_fn_c_check_header_mongrel "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default"
21078 if test "x$ac_cv_header_inttypes_h" = xyes; then :
21079 cat >>confdefs.h <<_ACEOF
21080 #define HAVE_INTTYPES_H 1
21087 if test $ac_cv_header_inttypes_h = yes; then
21088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the inttypes.h PRIxNN macros are broken" >&5
21089 $as_echo_n "checking whether the inttypes.h PRIxNN macros are broken... " >&6; }
21090 if ${gt_cv_inttypes_pri_broken+:} false; then :
21091 $as_echo_n "(cached) " >&6
21094 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21095 /* end confdefs.h. */
21096 #include <inttypes.h>
21109 if ac_fn_c_try_compile "$LINENO"; then :
21110 gt_cv_inttypes_pri_broken=no
21112 gt_cv_inttypes_pri_broken=yes
21114 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_inttypes_pri_broken" >&5
21118 $as_echo "$gt_cv_inttypes_pri_broken" >&6; }
21120 if test "$gt_cv_inttypes_pri_broken" = yes; then
21122 cat >>confdefs.h <<_ACEOF
21123 #define PRI_MACROS_BROKEN 1
21126 PRI_MACROS_BROKEN=1
21128 PRI_MACROS_BROKEN=0
21139 GL_COND_LIBTOOL_TRUE=
21140 GL_COND_LIBTOOL_FALSE='#'
21142 GL_COND_LIBTOOL_TRUE='#'
21143 GL_COND_LIBTOOL_FALSE=
21146 gl_cond_libtool=true
21157 gl_source_base='gl'
21158 LTALLOCA=`echo "$ALLOCA" | sed -e 's/\.[^.]* /.lo /g;s/\.[^.]*$/.lo/'`
21162 if test $ac_cv_func_alloca_works = no; then
21166 # Define an additional variable used in the Makefile substitution.
21167 if test $ac_cv_working_alloca_h = yes; then
21168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca as a compiler built-in" >&5
21169 $as_echo_n "checking for alloca as a compiler built-in... " >&6; }
21170 if ${gl_cv_rpl_alloca+:} false; then :
21171 $as_echo_n "(cached) " >&6
21174 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21175 /* end confdefs.h. */
21177 #if defined __GNUC__ || defined _AIX || defined _MSC_VER
21182 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21183 $EGREP "Need own alloca" >/dev/null 2>&1; then :
21184 gl_cv_rpl_alloca=yes
21186 gl_cv_rpl_alloca=no
21192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_rpl_alloca" >&5
21193 $as_echo "$gl_cv_rpl_alloca" >&6; }
21194 if test $gl_cv_rpl_alloca = yes; then
21196 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
21206 if test -n "$ALLOCA_H"; then
21207 GL_GENERATE_ALLOCA_H_TRUE=
21208 GL_GENERATE_ALLOCA_H_FALSE='#'
21210 GL_GENERATE_ALLOCA_H_TRUE='#'
21211 GL_GENERATE_ALLOCA_H_FALSE=
21221 for ac_header in byteswap.h
21223 ac_fn_c_check_header_mongrel "$LINENO" "byteswap.h" "ac_cv_header_byteswap_h" "$ac_includes_default"
21224 if test "x$ac_cv_header_byteswap_h" = xyes; then :
21225 cat >>confdefs.h <<_ACEOF
21226 #define HAVE_BYTESWAP_H 1
21233 BYTESWAP_H='byteswap.h'
21240 if test -n "$BYTESWAP_H"; then
21241 GL_GENERATE_BYTESWAP_H_TRUE=
21242 GL_GENERATE_BYTESWAP_H_FALSE='#'
21244 GL_GENERATE_BYTESWAP_H_TRUE='#'
21245 GL_GENERATE_BYTESWAP_H_FALSE=
21255 REPLACE_FLOAT_LDBL=0
21257 aix* | beos* | openbsd* | mirbsd* | irix*)
21261 case "$host_cpu" in
21266 # On x86_64 systems, the C compiler may still be generating
21268 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21269 /* end confdefs.h. */
21270 #if defined __LP64__ || defined __x86_64__ || defined __amd64__
21274 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21275 $EGREP "yes" >/dev/null 2>&1; then :
21286 case "$host_cpu" in
21294 aix* | freebsd* | linux*)
21295 if test -n "$FLOAT_H"; then
21296 REPLACE_FLOAT_LDBL=1
21302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether conversion from 'int' to 'long double' works" >&5
21303 $as_echo_n "checking whether conversion from 'int' to 'long double' works... " >&6; }
21304 if ${gl_cv_func_itold_works+:} false; then :
21305 $as_echo_n "(cached) " >&6
21308 if test "$cross_compiling" = yes; then :
21311 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21312 /* end confdefs.h. */
21313 #if defined __LP64__ || defined __arch64__
21317 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21318 $EGREP "yes" >/dev/null 2>&1; then :
21319 gl_cv_func_itold_works="guessing no"
21321 gl_cv_func_itold_works="guessing yes"
21326 *) gl_cv_func_itold_works="guessing yes" ;;
21330 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21331 /* end confdefs.h. */
21334 volatile long double ld;
21343 if ac_fn_c_try_run "$LINENO"; then :
21344 gl_cv_func_itold_works=yes
21346 gl_cv_func_itold_works=no
21348 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21349 conftest.$ac_objext conftest.beam conftest.$ac_ext
21354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_itold_works" >&5
21355 $as_echo "$gl_cv_func_itold_works" >&6; }
21356 case "$gl_cv_func_itold_works" in
21363 if test -n "$FLOAT_H"; then
21372 if test $gl_cv_have_include_next = yes; then
21373 gl_cv_next_float_h='<'float.h'>'
21375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <float.h>" >&5
21376 $as_echo_n "checking absolute name of <float.h>... " >&6; }
21377 if ${gl_cv_next_float_h+:} false; then :
21378 $as_echo_n "(cached) " >&6
21383 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21384 /* end confdefs.h. */
21388 aix*) gl_absname_cpp="$ac_cpp -C" ;;
21389 *) gl_absname_cpp="$ac_cpp" ;;
21394 gl_dirsep_regex='[/\\]'
21397 gl_dirsep_regex='\/'
21400 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
21401 gl_header_literal_regex=`echo 'float.h' \
21402 | sed -e "$gl_make_literal_regex_sed"`
21403 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
21404 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
21410 gl_cv_absolute_float_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
21411 sed -n "$gl_absolute_header_sed"`
21413 gl_header=$gl_cv_absolute_float_h
21414 gl_cv_next_float_h='"'$gl_header'"'
21418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_float_h" >&5
21419 $as_echo "$gl_cv_next_float_h" >&6; }
21421 NEXT_FLOAT_H=$gl_cv_next_float_h
21423 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
21424 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
21425 gl_next_as_first_directive='<'float.h'>'
21427 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
21428 gl_next_as_first_directive=$gl_cv_next_float_h
21430 NEXT_AS_FIRST_DIRECTIVE_FLOAT_H=$gl_next_as_first_directive
21437 if test -n "$FLOAT_H"; then
21438 GL_GENERATE_FLOAT_H_TRUE=
21439 GL_GENERATE_FLOAT_H_FALSE='#'
21441 GL_GENERATE_FLOAT_H_TRUE='#'
21442 GL_GENERATE_FLOAT_H_FALSE=
21447 if test $REPLACE_FLOAT_LDBL = 1; then
21456 gl_LIBOBJS="$gl_LIBOBJS float.$ac_objext"
21459 if test $REPLACE_ITOLD = 1; then
21468 gl_LIBOBJS="$gl_LIBOBJS itold.$ac_objext"
21475 if test $HAVE_MSVC_INVALID_PARAMETER_HANDLER = 1; then
21480 if test $WINDOWS_64_BIT_ST_SIZE = 1; then
21486 if test $REPLACE_FSTAT = 1; then
21495 gl_LIBOBJS="$gl_LIBOBJS fstat.$ac_objext"
21510 $as_echo "#define GNULIB_TEST_FSTAT 1" >>confdefs.h
21517 if test $HAVE_FTELLO = 0 || test $REPLACE_FTELLO = 1; then
21521 if test $REPLACE_FTELL = 1; then
21530 gl_LIBOBJS="$gl_LIBOBJS ftell.$ac_objext"
21544 $as_echo "#define GNULIB_TEST_FTELL 1" >>confdefs.h
21563 if test $ac_cv_have_decl_ftello = no; then
21567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ftello" >&5
21568 $as_echo_n "checking for ftello... " >&6; }
21569 if ${gl_cv_func_ftello+:} false; then :
21570 $as_echo_n "(cached) " >&6
21573 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21574 /* end confdefs.h. */
21584 if ac_fn_c_try_link "$LINENO"; then :
21585 gl_cv_func_ftello=yes
21587 gl_cv_func_ftello=no
21589 rm -f core conftest.err conftest.$ac_objext \
21590 conftest$ac_exeext conftest.$ac_ext
21593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_ftello" >&5
21594 $as_echo "$gl_cv_func_ftello" >&6; }
21595 if test $gl_cv_func_ftello = no; then
21598 if test $WINDOWS_64_BIT_OFF_T = 1; then
21601 if test $gl_cv_var_stdin_large_offset = no; then
21604 if test $REPLACE_FTELLO = 0; then
21606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ftello works" >&5
21607 $as_echo_n "checking whether ftello works... " >&6; }
21608 if ${gl_cv_func_ftello_works+:} false; then :
21609 $as_echo_n "(cached) " >&6
21613 # Guess no on Solaris.
21614 solaris*) gl_cv_func_ftello_works="guessing no" ;;
21615 # Guess yes otherwise.
21616 *) gl_cv_func_ftello_works="guessing yes" ;;
21618 if test "$cross_compiling" = yes; then :
21621 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21622 /* end confdefs.h. */
21625 #include <stdlib.h>
21626 #include <string.h>
21627 #define TESTFILE "conftest.tmp"
21633 /* Create a file with some contents. */
21634 fp = fopen (TESTFILE, "w");
21637 if (fwrite ("foogarsh", 1, 8, fp) < 8)
21642 /* The file's contents is now "foogarsh". */
21644 /* Try writing after reading to EOF. */
21645 fp = fopen (TESTFILE, "r+");
21648 if (fseek (fp, -1, SEEK_END))
21650 if (!(getc (fp) == 'h'))
21652 if (!(getc (fp) == EOF))
21654 if (!(ftell (fp) == 8))
21656 if (!(ftell (fp) == 8))
21658 if (!(putc ('!', fp) == '!'))
21660 if (!(ftell (fp) == 9))
21662 if (!(fclose (fp) == 0))
21664 fp = fopen (TESTFILE, "r");
21669 if (!(fread (buf, 1, 10, fp) == 9))
21671 if (!(memcmp (buf, "foogarsh!", 9) == 0))
21674 if (!(fclose (fp) == 0))
21677 /* The file's contents is now "foogarsh!". */
21682 if ac_fn_c_try_run "$LINENO"; then :
21683 gl_cv_func_ftello_works=yes
21685 gl_cv_func_ftello_works=no
21687 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21688 conftest.$ac_objext conftest.beam conftest.$ac_ext
21693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_ftello_works" >&5
21694 $as_echo "$gl_cv_func_ftello_works" >&6; }
21695 case "$gl_cv_func_ftello_works" in
21700 $as_echo "#define FTELLO_BROKEN_AFTER_SWITCHING_FROM_READ_TO_WRITE 1" >>confdefs.h
21707 if test $HAVE_FTELLO = 0 || test $REPLACE_FTELLO = 1; then
21716 gl_LIBOBJS="$gl_LIBOBJS ftello.$ac_objext"
21719 for ac_func in _ftelli64
21721 ac_fn_c_check_func "$LINENO" "_ftelli64" "ac_cv_func__ftelli64"
21722 if test "x$ac_cv_func__ftelli64" = xyes; then :
21723 cat >>confdefs.h <<_ACEOF
21724 #define HAVE__FTELLI64 1
21743 $as_echo "#define GNULIB_TEST_FTELLO 1" >>confdefs.h
21748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether __func__ is available" >&5
21749 $as_echo_n "checking whether __func__ is available... " >&6; }
21750 if ${gl_cv_var_func+:} false; then :
21751 $as_echo_n "(cached) " >&6
21753 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21754 /* end confdefs.h. */
21759 const char *str = __func__;
21764 if ac_fn_c_try_compile "$LINENO"; then :
21769 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_var_func" >&5
21772 $as_echo "$gl_cv_var_func" >&6; }
21773 if test "$gl_cv_var_func" != yes; then
21775 $as_echo "#define __func__ \"<unknown function>\"" >>confdefs.h
21799 if test $ac_cv_func_getdelim = yes; then
21801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working getdelim function" >&5
21802 $as_echo_n "checking for working getdelim function... " >&6; }
21803 if ${gl_cv_func_working_getdelim+:} false; then :
21804 $as_echo_n "(cached) " >&6
21806 echo fooNbarN | tr -d '\012' | tr N '\012' > conftest.data
21807 if test "$cross_compiling" = yes; then :
21808 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21809 /* end confdefs.h. */
21811 #include <features.h>
21812 #ifdef __GNU_LIBRARY__
21813 #if (__GLIBC__ >= 2) && !defined __UCLIBC__
21819 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21820 $EGREP "Lucky GNU user" >/dev/null 2>&1; then :
21821 gl_cv_func_working_getdelim="guessing yes"
21823 gl_cv_func_working_getdelim="guessing no"
21829 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21830 /* end confdefs.h. */
21832 # include <stdio.h>
21833 # include <stdlib.h>
21834 # include <string.h>
21837 FILE *in = fopen ("./conftest.data", "r");
21841 /* Test result for a NULL buffer and a zero size.
21842 Based on a test program from Karl Heuer. */
21845 int len = getdelim (&line, &siz, '\n', in);
21846 if (!(len == 4 && line && strcmp (line, "foo\n") == 0))
21850 /* Test result for a NULL buffer and a non-zero size.
21851 This crashes on FreeBSD 8.0. */
21853 size_t siz = (size_t)(~0) / 4;
21854 if (getdelim (&line, &siz, '\n', in) == -1)
21861 if ac_fn_c_try_run "$LINENO"; then :
21862 gl_cv_func_working_getdelim=yes
21864 gl_cv_func_working_getdelim=no
21866 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21867 conftest.$ac_objext conftest.beam conftest.$ac_ext
21871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_working_getdelim" >&5
21872 $as_echo "$gl_cv_func_working_getdelim" >&6; }
21873 case "$gl_cv_func_working_getdelim" in
21882 if test $ac_cv_have_decl_getdelim = no; then
21883 HAVE_DECL_GETDELIM=0
21886 if test $HAVE_GETDELIM = 0 || test $REPLACE_GETDELIM = 1; then
21895 gl_LIBOBJS="$gl_LIBOBJS getdelim.$ac_objext"
21898 for ac_func in flockfile funlockfile
21900 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21901 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
21902 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
21903 cat >>confdefs.h <<_ACEOF
21904 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21910 ac_fn_c_check_decl "$LINENO" "getc_unlocked" "ac_cv_have_decl_getc_unlocked" "$ac_includes_default"
21911 if test "x$ac_cv_have_decl_getc_unlocked" = xyes; then :
21917 cat >>confdefs.h <<_ACEOF
21918 #define HAVE_DECL_GETC_UNLOCKED $ac_have_decl
21934 $as_echo "#define GNULIB_TEST_GETDELIM 1" >>confdefs.h
21951 gl_getline_needs_run_time_check=no
21952 ac_fn_c_check_func "$LINENO" "getline" "ac_cv_func_getline"
21953 if test "x$ac_cv_func_getline" = xyes; then :
21954 gl_getline_needs_run_time_check=yes
21956 am_cv_func_working_getline=no
21959 if test $gl_getline_needs_run_time_check = yes; then
21960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working getline function" >&5
21961 $as_echo_n "checking for working getline function... " >&6; }
21962 if ${am_cv_func_working_getline+:} false; then :
21963 $as_echo_n "(cached) " >&6
21965 echo fooNbarN | tr -d '\012' | tr N '\012' > conftest.data
21966 if test "$cross_compiling" = yes; then :
21967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21968 /* end confdefs.h. */
21970 #include <features.h>
21971 #ifdef __GNU_LIBRARY__
21972 #if (__GLIBC__ >= 2) && !defined __UCLIBC__
21978 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21979 $EGREP "Lucky GNU user" >/dev/null 2>&1; then :
21980 am_cv_func_working_getline="guessing yes"
21982 am_cv_func_working_getline="guessing no"
21988 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21989 /* end confdefs.h. */
21991 # include <stdio.h>
21992 # include <stdlib.h>
21993 # include <string.h>
21996 FILE *in = fopen ("./conftest.data", "r");
22000 /* Test result for a NULL buffer and a zero size.
22001 Based on a test program from Karl Heuer. */
22004 int len = getline (&line, &siz, in);
22005 if (!(len == 4 && line && strcmp (line, "foo\n") == 0))
22009 /* Test result for a NULL buffer and a non-zero size.
22010 This crashes on FreeBSD 8.0. */
22012 size_t siz = (size_t)(~0) / 4;
22013 if (getline (&line, &siz, in) == -1)
22020 if ac_fn_c_try_run "$LINENO"; then :
22021 am_cv_func_working_getline=yes
22023 am_cv_func_working_getline=no
22025 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22026 conftest.$ac_objext conftest.beam conftest.$ac_ext
22030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_working_getline" >&5
22031 $as_echo "$am_cv_func_working_getline" >&6; }
22034 if test $ac_cv_have_decl_getline = no; then
22035 HAVE_DECL_GETLINE=0
22038 case "$am_cv_func_working_getline" in
22044 if test $REPLACE_GETLINE = 1; then
22053 gl_LIBOBJS="$gl_LIBOBJS getline.$ac_objext"
22070 $as_echo "#define GNULIB_TEST_GETLINE 1" >>confdefs.h
22089 gl_gettimeofday_timezone=void
22090 if test $ac_cv_func_gettimeofday != yes; then
22091 HAVE_GETTIMEOFDAY=0
22096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gettimeofday clobbers localtime buffer" >&5
22097 $as_echo_n "checking whether gettimeofday clobbers localtime buffer... " >&6; }
22098 if ${gl_cv_func_gettimeofday_clobber+:} false; then :
22099 $as_echo_n "(cached) " >&6
22101 if test "$cross_compiling" = yes; then :
22102 # When cross-compiling:
22104 # Guess all is fine on glibc systems.
22105 *-gnu*) gl_cv_func_gettimeofday_clobber="guessing no" ;;
22106 # If we don't know, assume the worst.
22107 *) gl_cv_func_gettimeofday_clobber="guessing yes" ;;
22111 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22112 /* end confdefs.h. */
22113 #include <string.h>
22114 #include <sys/time.h>
22116 #include <stdlib.h>
22124 struct tm saved_lt;
22126 lt = localtime (&t);
22128 gettimeofday (&tv, NULL);
22129 return memcmp (lt, &saved_lt, sizeof (struct tm)) != 0;
22135 if ac_fn_c_try_run "$LINENO"; then :
22136 gl_cv_func_gettimeofday_clobber=no
22138 gl_cv_func_gettimeofday_clobber=yes
22140 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22141 conftest.$ac_objext conftest.beam conftest.$ac_ext
22145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_gettimeofday_clobber" >&5
22146 $as_echo "$gl_cv_func_gettimeofday_clobber" >&6; }
22148 case "$gl_cv_func_gettimeofday_clobber" in
22150 REPLACE_GETTIMEOFDAY=1
22153 REPLACE_LOCALTIME=1
22156 $as_echo "#define GETTIMEOFDAY_CLOBBERS_LOCALTIME 1" >>confdefs.h
22161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gettimeofday with POSIX signature" >&5
22162 $as_echo_n "checking for gettimeofday with POSIX signature... " >&6; }
22163 if ${gl_cv_func_gettimeofday_posix_signature+:} false; then :
22164 $as_echo_n "(cached) " >&6
22166 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22167 /* end confdefs.h. */
22168 #include <sys/time.h>
22170 int gettimeofday (struct timeval *restrict, void *restrict);
22175 /* glibc uses struct timezone * rather than the POSIX void *
22176 if _GNU_SOURCE is defined. However, since the only portable
22177 use of gettimeofday uses NULL as the second parameter, and
22178 since the glibc definition is actually more typesafe, it is
22179 not worth wrapping this to get a compliant signature. */
22180 int (*f) (struct timeval *restrict, void *restrict)
22183 return !(x | c.tv_sec | c.tv_usec);
22189 if ac_fn_c_try_compile "$LINENO"; then :
22190 gl_cv_func_gettimeofday_posix_signature=yes
22192 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22193 /* end confdefs.h. */
22194 #include <sys/time.h>
22195 int gettimeofday (struct timeval *restrict, struct timezone *restrict);
22205 if ac_fn_c_try_compile "$LINENO"; then :
22206 gl_cv_func_gettimeofday_posix_signature=almost
22208 gl_cv_func_gettimeofday_posix_signature=no
22210 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22212 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_gettimeofday_posix_signature" >&5
22215 $as_echo "$gl_cv_func_gettimeofday_posix_signature" >&6; }
22216 if test $gl_cv_func_gettimeofday_posix_signature = almost; then
22217 gl_gettimeofday_timezone='struct timezone'
22218 elif test $gl_cv_func_gettimeofday_posix_signature != yes; then
22219 REPLACE_GETTIMEOFDAY=1
22221 if test $REPLACE_STRUCT_TIMEVAL = 1; then
22222 REPLACE_GETTIMEOFDAY=1
22227 cat >>confdefs.h <<_ACEOF
22228 #define GETTIMEOFDAY_TIMEZONE $gl_gettimeofday_timezone
22232 if test $HAVE_GETTIMEOFDAY = 0 || test $REPLACE_GETTIMEOFDAY = 1; then
22241 gl_LIBOBJS="$gl_LIBOBJS gettimeofday.$ac_objext"
22244 for ac_header in sys/timeb.h
22246 ac_fn_c_check_header_mongrel "$LINENO" "sys/timeb.h" "ac_cv_header_sys_timeb_h" "$ac_includes_default"
22247 if test "x$ac_cv_header_sys_timeb_h" = xyes; then :
22248 cat >>confdefs.h <<_ACEOF
22249 #define HAVE_SYS_TIMEB_H 1
22256 for ac_func in _ftime
22258 ac_fn_c_check_func "$LINENO" "_ftime" "ac_cv_func__ftime"
22259 if test "x$ac_cv_func__ftime" = xyes; then :
22260 cat >>confdefs.h <<_ACEOF
22261 #define HAVE__FTIME 1
22274 GNULIB_GETTIMEOFDAY=1
22280 $as_echo "#define GNULIB_TEST_GETTIMEOFDAY 1" >>confdefs.h
22284 # Autoconf 2.61a.99 and earlier don't support linking a file only
22285 # in VPATH builds. But since GNUmakefile is for maintainer use
22286 # only, it does not matter if we skip the link with older autoconf.
22287 # Automake 1.10.1 and earlier try to remove GNUmakefile in non-VPATH
22288 # builds, so use a shell variable to bypass this.
22289 GNUmakefile=GNUmakefile
22290 ac_config_links="$ac_config_links $GNUmakefile:$GNUmakefile"
22297 am_save_CPPFLAGS="$CPPFLAGS"
22299 for element in $INCICONV; do
22301 for x in $CPPFLAGS; do
22303 acl_save_prefix="$prefix"
22304 prefix="$acl_final_prefix"
22305 acl_save_exec_prefix="$exec_prefix"
22306 exec_prefix="$acl_final_exec_prefix"
22308 exec_prefix="$acl_save_exec_prefix"
22309 prefix="$acl_save_prefix"
22311 if test "X$x" = "X$element"; then
22316 if test -z "$haveit"; then
22317 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
22322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
22323 $as_echo_n "checking for iconv... " >&6; }
22324 if ${am_cv_func_iconv+:} false; then :
22325 $as_echo_n "(cached) " >&6
22328 am_cv_func_iconv="no, consider installing GNU libiconv"
22330 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22331 /* end confdefs.h. */
22332 #include <stdlib.h>
22337 iconv_t cd = iconv_open("","");
22338 iconv(cd,NULL,NULL,NULL,NULL);
22344 if ac_fn_c_try_link "$LINENO"; then :
22345 am_cv_func_iconv=yes
22347 rm -f core conftest.err conftest.$ac_objext \
22348 conftest$ac_exeext conftest.$ac_ext
22349 if test "$am_cv_func_iconv" != yes; then
22350 am_save_LIBS="$LIBS"
22351 LIBS="$LIBS $LIBICONV"
22352 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22353 /* end confdefs.h. */
22354 #include <stdlib.h>
22359 iconv_t cd = iconv_open("","");
22360 iconv(cd,NULL,NULL,NULL,NULL);
22366 if ac_fn_c_try_link "$LINENO"; then :
22367 am_cv_lib_iconv=yes
22368 am_cv_func_iconv=yes
22370 rm -f core conftest.err conftest.$ac_objext \
22371 conftest$ac_exeext conftest.$ac_ext
22372 LIBS="$am_save_LIBS"
22376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
22377 $as_echo "$am_cv_func_iconv" >&6; }
22378 if test "$am_cv_func_iconv" = yes; then
22379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5
22380 $as_echo_n "checking for working iconv... " >&6; }
22381 if ${am_cv_func_iconv_works+:} false; then :
22382 $as_echo_n "(cached) " >&6
22385 am_save_LIBS="$LIBS"
22386 if test $am_cv_lib_iconv = yes; then
22387 LIBS="$LIBS $LIBICONV"
22389 if test "$cross_compiling" = yes; then :
22391 aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
22392 *) am_cv_func_iconv_works="guessing yes" ;;
22395 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22396 /* end confdefs.h. */
22399 #include <string.h>
22402 /* Test against AIX 5.1 bug: Failures are not distinguishable from successful
22405 iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
22406 if (cd_utf8_to_88591 != (iconv_t)(-1))
22408 static const char input[] = "\342\202\254"; /* EURO SIGN */
22410 const char *inptr = input;
22411 size_t inbytesleft = strlen (input);
22412 char *outptr = buf;
22413 size_t outbytesleft = sizeof (buf);
22414 size_t res = iconv (cd_utf8_to_88591,
22415 (char **) &inptr, &inbytesleft,
22416 &outptr, &outbytesleft);
22421 /* Test against Solaris 10 bug: Failures are not distinguishable from
22422 successful returns. */
22424 iconv_t cd_ascii_to_88591 = iconv_open ("ISO8859-1", "646");
22425 if (cd_ascii_to_88591 != (iconv_t)(-1))
22427 static const char input[] = "\263";
22429 const char *inptr = input;
22430 size_t inbytesleft = strlen (input);
22431 char *outptr = buf;
22432 size_t outbytesleft = sizeof (buf);
22433 size_t res = iconv (cd_ascii_to_88591,
22434 (char **) &inptr, &inbytesleft,
22435 &outptr, &outbytesleft);
22440 #if 0 /* This bug could be worked around by the caller. */
22441 /* Test against HP-UX 11.11 bug: Positive return value instead of 0. */
22443 iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
22444 if (cd_88591_to_utf8 != (iconv_t)(-1))
22446 static const char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
22448 const char *inptr = input;
22449 size_t inbytesleft = strlen (input);
22450 char *outptr = buf;
22451 size_t outbytesleft = sizeof (buf);
22452 size_t res = iconv (cd_88591_to_utf8,
22453 (char **) &inptr, &inbytesleft,
22454 &outptr, &outbytesleft);
22460 /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
22462 if (/* Try standardized names. */
22463 iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1)
22464 /* Try IRIX, OSF/1 names. */
22465 && iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1)
22466 /* Try AIX names. */
22467 && iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1)
22468 /* Try HP-UX names. */
22469 && iconv_open ("utf8", "eucJP") == (iconv_t)(-1))
22474 if ac_fn_c_try_run "$LINENO"; then :
22475 am_cv_func_iconv_works=yes
22477 am_cv_func_iconv_works=no
22479 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22480 conftest.$ac_objext conftest.beam conftest.$ac_ext
22483 LIBS="$am_save_LIBS"
22486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5
22487 $as_echo "$am_cv_func_iconv_works" >&6; }
22488 case "$am_cv_func_iconv_works" in
22489 *no) am_func_iconv=no am_cv_lib_iconv=no ;;
22490 *) am_func_iconv=yes ;;
22493 am_func_iconv=no am_cv_lib_iconv=no
22495 if test "$am_func_iconv" = yes; then
22497 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
22500 if test "$am_cv_lib_iconv" = yes; then
22501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
22502 $as_echo_n "checking how to link with libiconv... " >&6; }
22503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
22504 $as_echo "$LIBICONV" >&6; }
22506 CPPFLAGS="$am_save_CPPFLAGS"
22513 if test "$am_cv_func_iconv" = yes; then
22514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
22515 $as_echo_n "checking for iconv declaration... " >&6; }
22516 if ${am_cv_proto_iconv+:} false; then :
22517 $as_echo_n "(cached) " >&6
22520 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22521 /* end confdefs.h. */
22523 #include <stdlib.h>
22529 #if defined(__STDC__) || defined(__cplusplus)
22530 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
22543 if ac_fn_c_try_compile "$LINENO"; then :
22544 am_cv_proto_iconv_arg1=""
22546 am_cv_proto_iconv_arg1="const"
22548 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22549 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);"
22552 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
22553 { $as_echo "$as_me:${as_lineno-$LINENO}: result:
22554 $am_cv_proto_iconv" >&5
22556 $am_cv_proto_iconv" >&6; }
22558 cat >>confdefs.h <<_ACEOF
22559 #define ICONV_CONST $am_cv_proto_iconv_arg1
22567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gcc/ld supports -Wl,--output-def" >&5
22568 $as_echo_n "checking if gcc/ld supports -Wl,--output-def... " >&6; }
22569 if ${gl_cv_ld_output_def+:} false; then :
22570 $as_echo_n "(cached) " >&6
22572 if test "$enable_shared" = no; then
22573 gl_cv_ld_output_def="not needed, shared libraries are disabled"
22575 gl_ldflags_save=$LDFLAGS
22576 LDFLAGS="-Wl,--output-def,conftest.def"
22577 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22578 /* end confdefs.h. */
22588 if ac_fn_c_try_link "$LINENO"; then :
22589 gl_cv_ld_output_def=yes
22591 gl_cv_ld_output_def=no
22593 rm -f core conftest.err conftest.$ac_objext \
22594 conftest$ac_exeext conftest.$ac_ext
22596 LDFLAGS="$gl_ldflags_save"
22599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_ld_output_def" >&5
22600 $as_echo "$gl_cv_ld_output_def" >&6; }
22601 if test "x$gl_cv_ld_output_def" = "xyes"; then
22602 HAVE_LD_OUTPUT_DEF_TRUE=
22603 HAVE_LD_OUTPUT_DEF_FALSE='#'
22605 HAVE_LD_OUTPUT_DEF_TRUE='#'
22606 HAVE_LD_OUTPUT_DEF_FALSE=
22611 # Check whether --enable-ld-version-script was given.
22612 if test "${enable_ld_version_script+set}" = set; then :
22613 enableval=$enable_ld_version_script; have_ld_version_script=$enableval
22616 if test -z "$have_ld_version_script"; then
22617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if LD -Wl,--version-script works" >&5
22618 $as_echo_n "checking if LD -Wl,--version-script works... " >&6; }
22619 save_LDFLAGS="$LDFLAGS"
22620 LDFLAGS="$LDFLAGS -Wl,--version-script=conftest.map"
22621 cat > conftest.map <<EOF
22624 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22625 /* end confdefs.h. */
22635 if ac_fn_c_try_link "$LINENO"; then :
22636 accepts_syntax_errors=yes
22638 accepts_syntax_errors=no
22640 rm -f core conftest.err conftest.$ac_objext \
22641 conftest$ac_exeext conftest.$ac_ext
22642 if test "$accepts_syntax_errors" = no; then
22643 cat > conftest.map <<EOF
22652 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22653 /* end confdefs.h. */
22663 if ac_fn_c_try_link "$LINENO"; then :
22664 have_ld_version_script=yes
22666 have_ld_version_script=no
22668 rm -f core conftest.err conftest.$ac_objext \
22669 conftest$ac_exeext conftest.$ac_ext
22671 have_ld_version_script=no
22674 LDFLAGS="$save_LDFLAGS"
22675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_ld_version_script" >&5
22676 $as_echo "$have_ld_version_script" >&6; }
22678 if test "$have_ld_version_script" = "yes"; then
22679 HAVE_LD_VERSION_SCRIPT_TRUE=
22680 HAVE_LD_VERSION_SCRIPT_FALSE='#'
22682 HAVE_LD_VERSION_SCRIPT_TRUE='#'
22683 HAVE_LD_VERSION_SCRIPT_FALSE=
22699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lseek detects pipes" >&5
22700 $as_echo_n "checking whether lseek detects pipes... " >&6; }
22701 if ${gl_cv_func_lseek_pipe+:} false; then :
22702 $as_echo_n "(cached) " >&6
22706 gl_cv_func_lseek_pipe=no
22709 if test $cross_compiling = no; then
22710 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22711 /* end confdefs.h. */
22713 #include <sys/types.h> /* for off_t */
22714 #include <stdio.h> /* for SEEK_CUR */
22716 # include <unistd.h>
22717 #else /* on Windows with MSVC */
22725 /* Exit with success only if stdin is seekable. */
22726 return lseek (0, (off_t)0, SEEK_CUR) < 0;
22732 if ac_fn_c_try_link "$LINENO"; then :
22733 if test -s conftest$ac_exeext \
22734 && ./conftest$ac_exeext < conftest.$ac_ext \
22735 && test 1 = "`echo hi \
22736 | { ./conftest$ac_exeext; echo $?; cat >/dev/null; }`"; then
22737 gl_cv_func_lseek_pipe=yes
22739 gl_cv_func_lseek_pipe=no
22743 gl_cv_func_lseek_pipe=no
22745 rm -f core conftest.err conftest.$ac_objext \
22746 conftest$ac_exeext conftest.$ac_ext
22748 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22749 /* end confdefs.h. */
22751 #if defined __BEOS__
22752 /* BeOS mistakenly return 0 when trying to seek on pipes. */
22756 if ac_fn_c_try_compile "$LINENO"; then :
22757 gl_cv_func_lseek_pipe=yes
22759 gl_cv_func_lseek_pipe=no
22761 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_lseek_pipe" >&5
22768 $as_echo "$gl_cv_func_lseek_pipe" >&6; }
22769 if test $gl_cv_func_lseek_pipe = no; then
22772 $as_echo "#define LSEEK_PIPE_BROKEN 1" >>confdefs.h
22777 if test $WINDOWS_64_BIT_OFF_T = 1; then
22781 if test $REPLACE_LSEEK = 1; then
22790 gl_LIBOBJS="$gl_LIBOBJS lseek.$ac_objext"
22804 $as_echo "#define GNULIB_TEST_LSEEK 1" >>confdefs.h
22813 if test $gl_cv_func_malloc_posix = yes; then
22815 $as_echo "#define HAVE_MALLOC_POSIX 1" >>confdefs.h
22821 if test $REPLACE_MALLOC = 1; then
22830 gl_LIBOBJS="$gl_LIBOBJS malloc.$ac_objext"
22838 GNULIB_MALLOC_POSIX=1
22844 $as_echo "#define GNULIB_TEST_MALLOC_POSIX 1" >>confdefs.h
22849 if test $HAVE_MEMCHR = 0 || test $REPLACE_MEMCHR = 1; then
22858 gl_LIBOBJS="$gl_LIBOBJS memchr.$ac_objext"
22861 for ac_header in bp-sym.h
22863 ac_fn_c_check_header_mongrel "$LINENO" "bp-sym.h" "ac_cv_header_bp_sym_h" "$ac_includes_default"
22864 if test "x$ac_cv_header_bp_sym_h" = xyes; then :
22865 cat >>confdefs.h <<_ACEOF
22866 #define HAVE_BP_SYM_H 1
22886 $as_echo "#define GNULIB_TEST_MEMCHR 1" >>confdefs.h
22894 for ac_func in memmem
22896 ac_fn_c_check_func "$LINENO" "memmem" "ac_cv_func_memmem"
22897 if test "x$ac_cv_func_memmem" = xyes; then :
22898 cat >>confdefs.h <<_ACEOF
22899 #define HAVE_MEMMEM 1
22905 if test $ac_cv_func_memmem = yes; then
22917 if test $ac_cv_have_decl_memmem = no; then
22920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether memmem works" >&5
22921 $as_echo_n "checking whether memmem works... " >&6; }
22922 if ${gl_cv_func_memmem_works_always+:} false; then :
22923 $as_echo_n "(cached) " >&6
22925 if test "$cross_compiling" = yes; then :
22926 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22927 /* end confdefs.h. */
22929 #ifdef __GNU_LIBRARY__
22930 #include <features.h>
22931 #if ((__GLIBC__ == 2 && ((__GLIBC_MINOR > 0 && __GLIBC_MINOR__ < 9) \
22932 || __GLIBC_MINOR__ > 12)) \
22933 || (__GLIBC__ > 2)) \
22934 || defined __UCLIBC__
22937 #elif defined __CYGWIN__
22938 #include <cygwin/version.h>
22939 #if CYGWIN_VERSION_DLL_COMBINED > CYGWIN_VERSION_DLL_MAKE_COMBINED (1007, 7)
22947 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22948 $EGREP "Lucky user" >/dev/null 2>&1; then :
22949 gl_cv_func_memmem_works_always="guessing yes"
22951 gl_cv_func_memmem_works_always="guessing no"
22957 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22958 /* end confdefs.h. */
22960 #include <string.h> /* for memmem */
22961 #define P "_EF_BF_BD"
22962 #define HAYSTACK "F_BD_CE_BD" P P P P "_C3_88_20" P P P "_C3_A7_20" P
22963 #define NEEDLE P P P P P
22970 if (memmem (HAYSTACK, strlen (HAYSTACK), NEEDLE, strlen (NEEDLE)))
22972 /* Check for empty needle behavior. */
22974 const char *haystack = "AAA";
22975 if (memmem (haystack, 3, NULL, 0) != haystack)
22984 if ac_fn_c_try_run "$LINENO"; then :
22985 gl_cv_func_memmem_works_always=yes
22987 gl_cv_func_memmem_works_always=no
22989 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22990 conftest.$ac_objext conftest.beam conftest.$ac_ext
22995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_memmem_works_always" >&5
22996 $as_echo "$gl_cv_func_memmem_works_always" >&6; }
22997 case "$gl_cv_func_memmem_works_always" in
23006 if test $HAVE_MEMMEM = 0 || test $REPLACE_MEMMEM = 1; then
23015 gl_LIBOBJS="$gl_LIBOBJS memmem.$ac_objext"
23029 $as_echo "#define GNULIB_TEST_MEMMEM 1" >>confdefs.h
23044 if test $ac_cv_func__set_invalid_parameter_handler = yes; then
23045 HAVE_MSVC_INVALID_PARAMETER_HANDLER=1
23047 $as_echo "#define HAVE_MSVC_INVALID_PARAMETER_HANDLER 1" >>confdefs.h
23050 HAVE_MSVC_INVALID_PARAMETER_HANDLER=0
23054 if test $HAVE_MSVC_INVALID_PARAMETER_HANDLER = 1; then
23063 gl_LIBOBJS="$gl_LIBOBJS msvc-inval.$ac_objext"
23069 if test $HAVE_MSVC_INVALID_PARAMETER_HANDLER = 1; then
23078 gl_LIBOBJS="$gl_LIBOBJS msvc-nothrow.$ac_objext"
23099 if test $gl_cv_have_include_next = yes; then
23100 gl_cv_next_netdb_h='<'netdb.h'>'
23102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <netdb.h>" >&5
23103 $as_echo_n "checking absolute name of <netdb.h>... " >&6; }
23104 if ${gl_cv_next_netdb_h+:} false; then :
23105 $as_echo_n "(cached) " >&6
23108 if test $ac_cv_header_netdb_h = yes; then
23113 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23114 /* end confdefs.h. */
23118 aix*) gl_absname_cpp="$ac_cpp -C" ;;
23119 *) gl_absname_cpp="$ac_cpp" ;;
23124 gl_dirsep_regex='[/\\]'
23127 gl_dirsep_regex='\/'
23130 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
23131 gl_header_literal_regex=`echo 'netdb.h' \
23132 | sed -e "$gl_make_literal_regex_sed"`
23133 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
23134 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
23140 gl_cv_absolute_netdb_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
23141 sed -n "$gl_absolute_header_sed"`
23143 gl_header=$gl_cv_absolute_netdb_h
23144 gl_cv_next_netdb_h='"'$gl_header'"'
23146 gl_cv_next_netdb_h='<'netdb.h'>'
23151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_netdb_h" >&5
23152 $as_echo "$gl_cv_next_netdb_h" >&6; }
23154 NEXT_NETDB_H=$gl_cv_next_netdb_h
23156 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
23157 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
23158 gl_next_as_first_directive='<'netdb.h'>'
23160 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
23161 gl_next_as_first_directive=$gl_cv_next_netdb_h
23163 NEXT_AS_FIRST_DIRECTIVE_NETDB_H=$gl_next_as_first_directive
23168 if test $ac_cv_header_netdb_h = yes; then
23176 for gl_func in getaddrinfo freeaddrinfo gai_strerror getnameinfo; do
23177 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
23178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
23179 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
23180 if eval \${$as_gl_Symbol+:} false; then :
23181 $as_echo_n "(cached) " >&6
23183 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23184 /* end confdefs.h. */
23195 if ac_fn_c_try_compile "$LINENO"; then :
23196 eval "$as_gl_Symbol=yes"
23198 eval "$as_gl_Symbol=no"
23200 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23202 eval ac_res=\$$as_gl_Symbol
23203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
23204 $as_echo "$ac_res" >&6; }
23205 if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
23206 cat >>confdefs.h <<_ACEOF
23207 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
23210 eval ac_cv_have_decl_$gl_func=yes
23216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <netinet/in.h> is self-contained" >&5
23217 $as_echo_n "checking whether <netinet/in.h> is self-contained... " >&6; }
23218 if ${gl_cv_header_netinet_in_h_selfcontained+:} false; then :
23219 $as_echo_n "(cached) " >&6
23222 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23223 /* end confdefs.h. */
23224 #include <netinet/in.h>
23233 if ac_fn_c_try_compile "$LINENO"; then :
23234 gl_cv_header_netinet_in_h_selfcontained=yes
23236 gl_cv_header_netinet_in_h_selfcontained=no
23238 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_netinet_in_h_selfcontained" >&5
23242 $as_echo "$gl_cv_header_netinet_in_h_selfcontained" >&6; }
23243 if test $gl_cv_header_netinet_in_h_selfcontained = yes; then
23246 NETINET_IN_H='netinet/in.h'
23247 for ac_header in netinet/in.h
23249 ac_fn_c_check_header_mongrel "$LINENO" "netinet/in.h" "ac_cv_header_netinet_in_h" "$ac_includes_default"
23250 if test "x$ac_cv_header_netinet_in_h" = xyes; then :
23251 cat >>confdefs.h <<_ACEOF
23252 #define HAVE_NETINET_IN_H 1
23274 if test $gl_cv_have_include_next = yes; then
23275 gl_cv_next_netinet_in_h='<'netinet/in.h'>'
23277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <netinet/in.h>" >&5
23278 $as_echo_n "checking absolute name of <netinet/in.h>... " >&6; }
23279 if ${gl_cv_next_netinet_in_h+:} false; then :
23280 $as_echo_n "(cached) " >&6
23283 if test $ac_cv_header_netinet_in_h = yes; then
23288 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23289 /* end confdefs.h. */
23290 #include <netinet/in.h>
23293 aix*) gl_absname_cpp="$ac_cpp -C" ;;
23294 *) gl_absname_cpp="$ac_cpp" ;;
23299 gl_dirsep_regex='[/\\]'
23302 gl_dirsep_regex='\/'
23305 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
23306 gl_header_literal_regex=`echo 'netinet/in.h' \
23307 | sed -e "$gl_make_literal_regex_sed"`
23308 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
23309 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
23315 gl_cv_absolute_netinet_in_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
23316 sed -n "$gl_absolute_header_sed"`
23318 gl_header=$gl_cv_absolute_netinet_in_h
23319 gl_cv_next_netinet_in_h='"'$gl_header'"'
23321 gl_cv_next_netinet_in_h='<'netinet/in.h'>'
23326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_netinet_in_h" >&5
23327 $as_echo "$gl_cv_next_netinet_in_h" >&6; }
23329 NEXT_NETINET_IN_H=$gl_cv_next_netinet_in_h
23331 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
23332 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
23333 gl_next_as_first_directive='<'netinet/in.h'>'
23335 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
23336 gl_next_as_first_directive=$gl_cv_next_netinet_in_h
23338 NEXT_AS_FIRST_DIRECTIVE_NETINET_IN_H=$gl_next_as_first_directive
23343 if test $ac_cv_header_netinet_in_h = yes; then
23344 HAVE_NETINET_IN_H=1
23346 HAVE_NETINET_IN_H=0
23351 if test -n "$NETINET_IN_H"; then
23352 GL_GENERATE_NETINET_IN_H_TRUE=
23353 GL_GENERATE_NETINET_IN_H_FALSE='#'
23355 GL_GENERATE_NETINET_IN_H_TRUE='#'
23356 GL_GENERATE_NETINET_IN_H_FALSE=
23361 # Extract the first word of "pmccabe", so it can be a program name with args.
23362 set dummy pmccabe; ac_word=$2
23363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23364 $as_echo_n "checking for $ac_word... " >&6; }
23365 if ${ac_cv_path_PMCCABE+:} false; then :
23366 $as_echo_n "(cached) " >&6
23370 ac_cv_path_PMCCABE="$PMCCABE" # Let the user override the test with a path.
23373 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23374 for as_dir in $PATH
23377 test -z "$as_dir" && as_dir=.
23378 for ac_exec_ext in '' $ac_executable_extensions; do
23379 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23380 ac_cv_path_PMCCABE="$as_dir/$ac_word$ac_exec_ext"
23381 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23388 test -z "$ac_cv_path_PMCCABE" && ac_cv_path_PMCCABE="false"
23392 PMCCABE=$ac_cv_path_PMCCABE
23393 if test -n "$PMCCABE"; then
23394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PMCCABE" >&5
23395 $as_echo "$PMCCABE" >&6; }
23397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23398 $as_echo "no" >&6; }
23406 if test $gl_cv_func_malloc_posix = yes; then
23408 $as_echo "#define HAVE_REALLOC_POSIX 1" >>confdefs.h
23414 if test $REPLACE_REALLOC = 1; then
23423 gl_LIBOBJS="$gl_LIBOBJS realloc.$ac_objext"
23431 GNULIB_REALLOC_POSIX=1
23437 $as_echo "#define GNULIB_TEST_REALLOC_POSIX 1" >>confdefs.h
23442 for ac_header in stdint.h
23444 ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
23445 if test "x$ac_cv_header_stdint_h" = xyes; then :
23446 cat >>confdefs.h <<_ACEOF
23447 #define HAVE_STDINT_H 1
23454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SIZE_MAX" >&5
23455 $as_echo_n "checking for SIZE_MAX... " >&6; }
23456 if ${gl_cv_size_max+:} false; then :
23457 $as_echo_n "(cached) " >&6
23461 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23462 /* end confdefs.h. */
23464 #include <limits.h>
23466 #include <stdint.h>
23473 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23474 $EGREP "Found it" >/dev/null 2>&1; then :
23479 if test -z "$gl_cv_size_max"; then
23480 if ac_fn_c_compute_int "$LINENO" "sizeof (size_t) * CHAR_BIT - 1" "size_t_bits_minus_1" "#include <stddef.h>
23481 #include <limits.h>"; then :
23484 size_t_bits_minus_1=
23487 if ac_fn_c_compute_int "$LINENO" "sizeof (size_t) <= sizeof (unsigned int)" "fits_in_uint" "#include <stddef.h>"; then :
23493 if test -n "$size_t_bits_minus_1" && test -n "$fits_in_uint"; then
23494 if test $fits_in_uint = 1; then
23495 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23496 /* end confdefs.h. */
23497 #include <stddef.h>
23499 extern unsigned long foo;
23509 if ac_fn_c_try_compile "$LINENO"; then :
23512 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23514 if test $fits_in_uint = 1; then
23515 gl_cv_size_max="(((1U << $size_t_bits_minus_1) - 1) * 2 + 1)"
23517 gl_cv_size_max="(((1UL << $size_t_bits_minus_1) - 1) * 2 + 1)"
23520 gl_cv_size_max='((size_t)~(size_t)0)'
23525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_size_max" >&5
23526 $as_echo "$gl_cv_size_max" >&6; }
23527 if test "$gl_cv_size_max" != yes; then
23529 cat >>confdefs.h <<_ACEOF
23530 #define SIZE_MAX $gl_cv_size_max
23538 gl_cv_func_snprintf_usable=no
23539 for ac_func in snprintf
23541 ac_fn_c_check_func "$LINENO" "snprintf" "ac_cv_func_snprintf"
23542 if test "x$ac_cv_func_snprintf" = xyes; then :
23543 cat >>confdefs.h <<_ACEOF
23544 #define HAVE_SNPRINTF 1
23550 if test $ac_cv_func_snprintf = yes; then
23554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether snprintf respects a size of 1" >&5
23555 $as_echo_n "checking whether snprintf respects a size of 1... " >&6; }
23556 if ${gl_cv_func_snprintf_size1+:} false; then :
23557 $as_echo_n "(cached) " >&6
23560 if test "$cross_compiling" = yes; then :
23561 gl_cv_func_snprintf_size1="guessing yes"
23563 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23564 /* end confdefs.h. */
23568 # define my_snprintf snprintf
23570 # include <stdarg.h>
23571 static int my_snprintf (char *buf, int size, const char *format, ...)
23575 va_start (args, format);
23576 ret = vsnprintf (buf, size, format, args);
23583 static char buf[8] = { 'D', 'E', 'A', 'D', 'B', 'E', 'E', 'F' };
23584 my_snprintf (buf, 1, "%d", 12345);
23585 return buf[1] != 'E';
23588 if ac_fn_c_try_run "$LINENO"; then :
23589 gl_cv_func_snprintf_size1=yes
23591 gl_cv_func_snprintf_size1=no
23593 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23594 conftest.$ac_objext conftest.beam conftest.$ac_ext
23599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_snprintf_size1" >&5
23600 $as_echo "$gl_cv_func_snprintf_size1" >&6; }
23602 case "$gl_cv_func_snprintf_size1" in
23605 case "$gl_cv_func_snprintf_retval_c99" in
23609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether printf supports POSIX/XSI format strings with positions" >&5
23610 $as_echo_n "checking whether printf supports POSIX/XSI format strings with positions... " >&6; }
23611 if ${gl_cv_func_printf_positions+:} false; then :
23612 $as_echo_n "(cached) " >&6
23615 if test "$cross_compiling" = yes; then :
23618 netbsd[1-3]* | netbsdelf[1-3]* | netbsdaout[1-3]* | netbsdcoff[1-3]*)
23619 gl_cv_func_printf_positions="guessing no";;
23620 beos*) gl_cv_func_printf_positions="guessing no";;
23621 mingw* | pw*) gl_cv_func_printf_positions="guessing no";;
23622 *) gl_cv_func_printf_positions="guessing yes";;
23626 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23627 /* end confdefs.h. */
23630 #include <string.h>
23631 /* The string "%2$d %1$d", with dollar characters protected from the shell's
23632 dollar expansion (possibly an autoconf bug). */
23633 static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' };
23634 static char buf[100];
23637 sprintf (buf, format, 33, 55);
23638 return (strcmp (buf, "55 33") != 0);
23641 if ac_fn_c_try_run "$LINENO"; then :
23642 gl_cv_func_printf_positions=yes
23644 gl_cv_func_printf_positions=no
23646 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23647 conftest.$ac_objext conftest.beam conftest.$ac_ext
23652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_printf_positions" >&5
23653 $as_echo "$gl_cv_func_printf_positions" >&6; }
23655 case "$gl_cv_func_printf_positions" in
23657 gl_cv_func_snprintf_usable=yes
23665 if test $gl_cv_func_snprintf_usable = no; then
23676 gl_LIBOBJS="$gl_LIBOBJS snprintf.$ac_objext"
23678 if test $ac_cv_func_snprintf = yes; then
23691 if test $ac_cv_have_decl_snprintf = no; then
23692 HAVE_DECL_SNPRINTF=0
23706 $as_echo "#define GNULIB_TEST_SNPRINTF 1" >>confdefs.h
23712 cat >>confdefs.h <<_ACEOF
23713 #define GNULIB_SNPRINTF 1
23717 ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "
23718 /* <sys/types.h> is not needed according to POSIX, but the
23719 <sys/socket.h> in i386-unknown-freebsd4.10 and
23720 powerpc-apple-darwin5.5 required it. */
23721 #include <sys/types.h>
23722 #if HAVE_SYS_SOCKET_H
23723 # include <sys/socket.h>
23724 #elif HAVE_WS2TCPIP_H
23725 # include <ws2tcpip.h>
23729 if test "x$ac_cv_type_socklen_t" = xyes; then :
23732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socklen_t equivalent" >&5
23733 $as_echo_n "checking for socklen_t equivalent... " >&6; }
23734 if ${gl_cv_socklen_t_equiv+:} false; then :
23735 $as_echo_n "(cached) " >&6
23737 # Systems have either "struct sockaddr *" or
23738 # "void *" as the second argument to getpeername
23739 gl_cv_socklen_t_equiv=
23740 for arg2 in "struct sockaddr" void; do
23741 for t in int size_t "unsigned int" "long int" "unsigned long int"; do
23742 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23743 /* end confdefs.h. */
23744 #include <sys/types.h>
23745 #include <sys/socket.h>
23747 int getpeername (int, $arg2 *, $t *);
23752 getpeername (0, 0, &len);
23757 if ac_fn_c_try_compile "$LINENO"; then :
23758 gl_cv_socklen_t_equiv="$t"
23760 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23761 test "$gl_cv_socklen_t_equiv" != "" && break
23763 test "$gl_cv_socklen_t_equiv" != "" && break
23768 if test "$gl_cv_socklen_t_equiv" = ""; then
23769 as_fn_error $? "Cannot find a type to use in place of socklen_t" "$LINENO" 5
23771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_socklen_t_equiv" >&5
23772 $as_echo "$gl_cv_socklen_t_equiv" >&6; }
23774 cat >>confdefs.h <<_ACEOF
23775 #define socklen_t $gl_cv_socklen_t_equiv
23781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ssize_t" >&5
23782 $as_echo_n "checking for ssize_t... " >&6; }
23783 if ${gt_cv_ssize_t+:} false; then :
23784 $as_echo_n "(cached) " >&6
23786 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23787 /* end confdefs.h. */
23788 #include <sys/types.h>
23792 int x = sizeof (ssize_t *) + sizeof (ssize_t);
23798 if ac_fn_c_try_compile "$LINENO"; then :
23803 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_ssize_t" >&5
23806 $as_echo "$gt_cv_ssize_t" >&6; }
23807 if test $gt_cv_ssize_t = no; then
23809 $as_echo "#define ssize_t int" >>confdefs.h
23814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working stdalign.h" >&5
23815 $as_echo_n "checking for working stdalign.h... " >&6; }
23816 if ${gl_cv_header_working_stdalign_h+:} false; then :
23817 $as_echo_n "(cached) " >&6
23819 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23820 /* end confdefs.h. */
23821 #include <stdalign.h>
23822 #include <stddef.h>
23824 /* Test that alignof yields a result consistent with offsetof.
23825 This catches GCC bug 52023
23826 <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52023>. */
23828 template <class t> struct alignof_helper { char a; t b; };
23829 # define ao(type) offsetof (alignof_helper<type>, b)
23831 # define ao(type) offsetof (struct { char a; type b; }, b)
23833 char test_double[ao (double) % _Alignof (double) == 0 ? 1 : -1];
23834 char test_long[ao (long int) % _Alignof (long int) == 0 ? 1 : -1];
23835 char test_alignof[alignof (double) == _Alignof (double) ? 1 : -1];
23837 /* Test _Alignas only on platforms where gnulib can help. */
23839 ((defined __cplusplus && 201103 <= __cplusplus) \
23840 || (defined __APPLE__ && defined __MACH__ \
23841 ? 4 < __GNUC__ + (1 <= __GNUC_MINOR__) \
23843 || __HP_cc || __HP_aCC || __IBMC__ || __IBMCPP__ \
23844 || __ICC || 0x5110 <= __SUNPRO_C \
23845 || 1300 <= _MSC_VER)
23846 struct alignas_test { char c; char alignas (8) alignas_8; };
23847 char test_alignas[offsetof (struct alignas_test, alignas_8) == 8
23859 if ac_fn_c_try_compile "$LINENO"; then :
23860 gl_cv_header_working_stdalign_h=yes
23862 gl_cv_header_working_stdalign_h=no
23864 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_stdalign_h" >&5
23867 $as_echo "$gl_cv_header_working_stdalign_h" >&6; }
23869 if test $gl_cv_header_working_stdalign_h = yes; then
23872 STDALIGN_H='stdalign.h'
23876 if test -n "$STDALIGN_H"; then
23877 GL_GENERATE_STDALIGN_H_TRUE=
23878 GL_GENERATE_STDALIGN_H_FALSE='#'
23880 GL_GENERATE_STDALIGN_H_TRUE='#'
23881 GL_GENERATE_STDALIGN_H_FALSE=
23888 # Define two additional variables used in the Makefile substitution.
23890 if test "$ac_cv_header_stdbool_h" = yes; then
23893 STDBOOL_H='stdbool.h'
23896 if test -n "$STDBOOL_H"; then
23897 GL_GENERATE_STDBOOL_H_TRUE=
23898 GL_GENERATE_STDBOOL_H_FALSE='#'
23900 GL_GENERATE_STDBOOL_H_TRUE='#'
23901 GL_GENERATE_STDBOOL_H_FALSE=
23905 if test "$ac_cv_type__Bool" = yes; then
23916 ac_fn_c_check_type "$LINENO" "max_align_t" "ac_cv_type_max_align_t" "#include <stddef.h>
23919 if test "x$ac_cv_type_max_align_t" = xyes; then :
23922 HAVE_MAX_ALIGN_T=0; STDDEF_H=stddef.h
23925 if test $gt_cv_c_wchar_t = no; then
23929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NULL can be used in arbitrary expressions" >&5
23930 $as_echo_n "checking whether NULL can be used in arbitrary expressions... " >&6; }
23931 if ${gl_cv_decl_null_works+:} false; then :
23932 $as_echo_n "(cached) " >&6
23934 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23935 /* end confdefs.h. */
23936 #include <stddef.h>
23937 int test[2 * (sizeof NULL == sizeof (void *)) -1];
23947 if ac_fn_c_try_compile "$LINENO"; then :
23948 gl_cv_decl_null_works=yes
23950 gl_cv_decl_null_works=no
23952 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_decl_null_works" >&5
23955 $as_echo "$gl_cv_decl_null_works" >&6; }
23956 if test $gl_cv_decl_null_works = no; then
23961 if test -n "$STDDEF_H"; then
23962 GL_GENERATE_STDDEF_H_TRUE=
23963 GL_GENERATE_STDDEF_H_FALSE='#'
23965 GL_GENERATE_STDDEF_H_TRUE='#'
23966 GL_GENERATE_STDDEF_H_FALSE=
23969 if test -n "$STDDEF_H"; then
23978 if test $gl_cv_have_include_next = yes; then
23979 gl_cv_next_stddef_h='<'stddef.h'>'
23981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stddef.h>" >&5
23982 $as_echo_n "checking absolute name of <stddef.h>... " >&6; }
23983 if ${gl_cv_next_stddef_h+:} false; then :
23984 $as_echo_n "(cached) " >&6
23989 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23990 /* end confdefs.h. */
23991 #include <stddef.h>
23994 aix*) gl_absname_cpp="$ac_cpp -C" ;;
23995 *) gl_absname_cpp="$ac_cpp" ;;
24000 gl_dirsep_regex='[/\\]'
24003 gl_dirsep_regex='\/'
24006 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
24007 gl_header_literal_regex=`echo 'stddef.h' \
24008 | sed -e "$gl_make_literal_regex_sed"`
24009 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
24010 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
24016 gl_cv_absolute_stddef_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
24017 sed -n "$gl_absolute_header_sed"`
24019 gl_header=$gl_cv_absolute_stddef_h
24020 gl_cv_next_stddef_h='"'$gl_header'"'
24024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stddef_h" >&5
24025 $as_echo "$gl_cv_next_stddef_h" >&6; }
24027 NEXT_STDDEF_H=$gl_cv_next_stddef_h
24029 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
24030 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
24031 gl_next_as_first_directive='<'stddef.h'>'
24033 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
24034 gl_next_as_first_directive=$gl_cv_next_stddef_h
24036 NEXT_AS_FIRST_DIRECTIVE_STDDEF_H=$gl_next_as_first_directive
24056 if test $gl_cv_have_include_next = yes; then
24057 gl_cv_next_stdio_h='<'stdio.h'>'
24059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdio.h>" >&5
24060 $as_echo_n "checking absolute name of <stdio.h>... " >&6; }
24061 if ${gl_cv_next_stdio_h+:} false; then :
24062 $as_echo_n "(cached) " >&6
24067 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24068 /* end confdefs.h. */
24072 aix*) gl_absname_cpp="$ac_cpp -C" ;;
24073 *) gl_absname_cpp="$ac_cpp" ;;
24078 gl_dirsep_regex='[/\\]'
24081 gl_dirsep_regex='\/'
24084 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
24085 gl_header_literal_regex=`echo 'stdio.h' \
24086 | sed -e "$gl_make_literal_regex_sed"`
24087 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
24088 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
24094 gl_cv_absolute_stdio_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
24095 sed -n "$gl_absolute_header_sed"`
24097 gl_header=$gl_cv_absolute_stdio_h
24098 gl_cv_next_stdio_h='"'$gl_header'"'
24102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdio_h" >&5
24103 $as_echo "$gl_cv_next_stdio_h" >&6; }
24105 NEXT_STDIO_H=$gl_cv_next_stdio_h
24107 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
24108 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
24109 gl_next_as_first_directive='<'stdio.h'>'
24111 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
24112 gl_next_as_first_directive=$gl_cv_next_stdio_h
24114 NEXT_AS_FIRST_DIRECTIVE_STDIO_H=$gl_next_as_first_directive
24123 cat >>confdefs.h <<_ACEOF
24124 #define GNULIB_FSCANF 1
24131 cat >>confdefs.h <<_ACEOF
24132 #define GNULIB_SCANF 1
24157 for gl_func in dprintf fpurge fseeko ftello getdelim getline gets pclose popen renameat snprintf tmpfile vdprintf vsnprintf; do
24158 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
24159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
24160 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
24161 if eval \${$as_gl_Symbol+:} false; then :
24162 $as_echo_n "(cached) " >&6
24164 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24165 /* end confdefs.h. */
24177 if ac_fn_c_try_compile "$LINENO"; then :
24178 eval "$as_gl_Symbol=yes"
24180 eval "$as_gl_Symbol=no"
24182 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24184 eval ac_res=\$$as_gl_Symbol
24185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
24186 $as_echo "$ac_res" >&6; }
24187 if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
24188 cat >>confdefs.h <<_ACEOF
24189 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
24192 eval ac_cv_have_decl_$gl_func=yes
24207 if test $gl_cv_have_include_next = yes; then
24208 gl_cv_next_stdlib_h='<'stdlib.h'>'
24210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdlib.h>" >&5
24211 $as_echo_n "checking absolute name of <stdlib.h>... " >&6; }
24212 if ${gl_cv_next_stdlib_h+:} false; then :
24213 $as_echo_n "(cached) " >&6
24218 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24219 /* end confdefs.h. */
24220 #include <stdlib.h>
24223 aix*) gl_absname_cpp="$ac_cpp -C" ;;
24224 *) gl_absname_cpp="$ac_cpp" ;;
24229 gl_dirsep_regex='[/\\]'
24232 gl_dirsep_regex='\/'
24235 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
24236 gl_header_literal_regex=`echo 'stdlib.h' \
24237 | sed -e "$gl_make_literal_regex_sed"`
24238 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
24239 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
24245 gl_cv_absolute_stdlib_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
24246 sed -n "$gl_absolute_header_sed"`
24248 gl_header=$gl_cv_absolute_stdlib_h
24249 gl_cv_next_stdlib_h='"'$gl_header'"'
24253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdlib_h" >&5
24254 $as_echo "$gl_cv_next_stdlib_h" >&6; }
24256 NEXT_STDLIB_H=$gl_cv_next_stdlib_h
24258 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
24259 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
24260 gl_next_as_first_directive='<'stdlib.h'>'
24262 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
24263 gl_next_as_first_directive=$gl_cv_next_stdlib_h
24265 NEXT_AS_FIRST_DIRECTIVE_STDLIB_H=$gl_next_as_first_directive
24272 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
24273 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
24274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
24275 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
24276 if eval \${$as_gl_Symbol+:} false; then :
24277 $as_echo_n "(cached) " >&6
24279 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24280 /* end confdefs.h. */
24281 #include <stdlib.h>
24282 #if HAVE_SYS_LOADAVG_H
24283 # include <sys/loadavg.h>
24286 # include <random.h>
24298 if ac_fn_c_try_compile "$LINENO"; then :
24299 eval "$as_gl_Symbol=yes"
24301 eval "$as_gl_Symbol=no"
24303 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24305 eval ac_res=\$$as_gl_Symbol
24306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
24307 $as_echo "$ac_res" >&6; }
24308 if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
24309 cat >>confdefs.h <<_ACEOF
24310 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
24313 eval ac_cv_have_decl_$gl_func=yes
24321 for ac_func in strcasecmp
24323 ac_fn_c_check_func "$LINENO" "strcasecmp" "ac_cv_func_strcasecmp"
24324 if test "x$ac_cv_func_strcasecmp" = xyes; then :
24325 cat >>confdefs.h <<_ACEOF
24326 #define HAVE_STRCASECMP 1
24332 if test $ac_cv_func_strcasecmp = no; then
24338 for ac_func in strncasecmp
24340 ac_fn_c_check_func "$LINENO" "strncasecmp" "ac_cv_func_strncasecmp"
24341 if test "x$ac_cv_func_strncasecmp" = xyes; then :
24342 cat >>confdefs.h <<_ACEOF
24343 #define HAVE_STRNCASECMP 1
24349 if test $ac_cv_func_strncasecmp = yes; then
24354 ac_fn_c_check_decl "$LINENO" "strncasecmp" "ac_cv_have_decl_strncasecmp" "$ac_includes_default"
24355 if test "x$ac_cv_have_decl_strncasecmp" = xyes; then :
24361 cat >>confdefs.h <<_ACEOF
24362 #define HAVE_DECL_STRNCASECMP $ac_have_decl
24365 if test $ac_cv_have_decl_strncasecmp = no; then
24366 HAVE_DECL_STRNCASECMP=0
24370 if test $HAVE_STRCASECMP = 0; then
24379 gl_LIBOBJS="$gl_LIBOBJS strcasecmp.$ac_objext"
24385 if test $HAVE_STRNCASECMP = 0; then
24394 gl_LIBOBJS="$gl_LIBOBJS strncasecmp.$ac_objext"
24424 if test $ac_cv_have_decl_strndup = no; then
24425 HAVE_DECL_STRNDUP=0
24428 if test $ac_cv_func_strndup = yes; then
24430 # AIX 4.3.3, AIX 5.1 have a function that fails to add the terminating '\0'.
24431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strndup" >&5
24432 $as_echo_n "checking for working strndup... " >&6; }
24433 if ${gl_cv_func_strndup_works+:} false; then :
24434 $as_echo_n "(cached) " >&6
24436 if test "$cross_compiling" = yes; then :
24439 aix | aix[3-6]*) gl_cv_func_strndup_works="guessing no";;
24440 *) gl_cv_func_strndup_works="guessing yes";;
24444 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24445 /* end confdefs.h. */
24447 #include <string.h>
24448 #include <stdlib.h>
24453 #if !HAVE_DECL_STRNDUP
24458 char *strndup (const char *, size_t);
24461 s = strndup ("some longer string", 15);
24463 s = strndup ("shorter string", 13);
24464 return s[13] != '\0';
24469 if ac_fn_c_try_run "$LINENO"; then :
24470 gl_cv_func_strndup_works=yes
24472 gl_cv_func_strndup_works=no
24474 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24475 conftest.$ac_objext conftest.beam conftest.$ac_ext
24479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_strndup_works" >&5
24480 $as_echo "$gl_cv_func_strndup_works" >&6; }
24481 case $gl_cv_func_strndup_works in
24482 *no) REPLACE_STRNDUP=1 ;;
24488 if test $HAVE_STRNDUP = 0 || test $REPLACE_STRNDUP = 1; then
24497 gl_LIBOBJS="$gl_LIBOBJS strndup.$ac_objext"
24511 $as_echo "#define GNULIB_TEST_STRNDUP 1" >>confdefs.h
24527 if test $ac_cv_have_decl_strnlen = no; then
24528 HAVE_DECL_STRNLEN=0
24531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strnlen" >&5
24532 $as_echo_n "checking for working strnlen... " >&6; }
24533 if ${ac_cv_func_strnlen_working+:} false; then :
24534 $as_echo_n "(cached) " >&6
24536 if test "$cross_compiling" = yes; then :
24537 # Guess no on AIX systems, yes otherwise.
24539 aix*) ac_cv_func_strnlen_working=no;;
24540 *) ac_cv_func_strnlen_working=yes;;
24543 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24544 /* end confdefs.h. */
24545 $ac_includes_default
24551 #define S_LEN (sizeof S - 1)
24553 /* At least one implementation is buggy: that of AIX 4.3 would
24554 give strnlen (S, 1) == 3. */
24557 for (i = 0; i < S_LEN + 1; ++i)
24559 int expected = i <= S_LEN ? i : S_LEN;
24560 if (strnlen (S, i) != expected)
24569 if ac_fn_c_try_run "$LINENO"; then :
24570 ac_cv_func_strnlen_working=yes
24572 ac_cv_func_strnlen_working=no
24574 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24575 conftest.$ac_objext conftest.beam conftest.$ac_ext
24579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strnlen_working" >&5
24580 $as_echo "$ac_cv_func_strnlen_working" >&6; }
24581 test $ac_cv_func_strnlen_working = no && :
24584 if test $ac_cv_func_strnlen_working = no; then
24589 if test $HAVE_DECL_STRNLEN = 0 || test $REPLACE_STRNLEN = 1; then
24598 gl_LIBOBJS="$gl_LIBOBJS strnlen.$ac_objext"
24613 $as_echo "#define GNULIB_TEST_STRNLEN 1" >>confdefs.h
24621 for ac_func in strtok_r
24623 ac_fn_c_check_func "$LINENO" "strtok_r" "ac_cv_func_strtok_r"
24624 if test "x$ac_cv_func_strtok_r" = xyes; then :
24625 cat >>confdefs.h <<_ACEOF
24626 #define HAVE_STRTOK_R 1
24632 if test $ac_cv_func_strtok_r = yes; then
24634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strtok_r works" >&5
24635 $as_echo_n "checking whether strtok_r works... " >&6; }
24636 if ${gl_cv_func_strtok_r_works+:} false; then :
24637 $as_echo_n "(cached) " >&6
24639 if test "$cross_compiling" = yes; then :
24642 # Guess no on glibc systems.
24643 *-gnu*) gl_cv_func_strtok_r_works="guessing no";;
24644 *) gl_cv_func_strtok_r_works="guessing yes";;
24648 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24649 /* end confdefs.h. */
24651 #ifndef __OPTIMIZE__
24652 # define __OPTIMIZE__ 1
24654 #undef __OPTIMIZE_SIZE__
24655 #undef __NO_INLINE__
24656 #include <stdlib.h>
24657 #include <string.h>
24662 static const char dummy[] = "\177\01a";
24663 char delimiters[] = "xxxxxxxx";
24664 char *save_ptr = (char *) dummy;
24665 strtok_r (delimiters, "x", &save_ptr);
24666 strtok_r (NULL, "x", &save_ptr);
24674 if ac_fn_c_try_run "$LINENO"; then :
24675 gl_cv_func_strtok_r_works=yes
24677 gl_cv_func_strtok_r_works=no
24679 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24680 conftest.$ac_objext conftest.beam conftest.$ac_ext
24685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_strtok_r_works" >&5
24686 $as_echo "$gl_cv_func_strtok_r_works" >&6; }
24687 case "$gl_cv_func_strtok_r_works" in
24689 UNDEFINE_STRTOK_R=1
24702 if test $ac_cv_have_decl_strtok_r = no; then
24703 HAVE_DECL_STRTOK_R=0
24706 if test $HAVE_STRTOK_R = 0 || test $REPLACE_STRTOK_R = 1; then
24715 gl_LIBOBJS="$gl_LIBOBJS strtok_r.$ac_objext"
24732 $as_echo "#define GNULIB_TEST_STRTOK_R 1" >>confdefs.h
24740 for ac_func in strverscmp
24742 ac_fn_c_check_func "$LINENO" "strverscmp" "ac_cv_func_strverscmp"
24743 if test "x$ac_cv_func_strverscmp" = xyes; then :
24744 cat >>confdefs.h <<_ACEOF
24745 #define HAVE_STRVERSCMP 1
24751 if test $ac_cv_func_strverscmp = no; then
24755 if test $HAVE_STRVERSCMP = 0; then
24764 gl_LIBOBJS="$gl_LIBOBJS strverscmp.$ac_objext"
24775 GNULIB_STRVERSCMP=1
24781 $as_echo "#define GNULIB_TEST_STRVERSCMP 1" >>confdefs.h
24807 if test $gl_cv_have_include_next = yes; then
24808 gl_cv_next_sys_stat_h='<'sys/stat.h'>'
24810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/stat.h>" >&5
24811 $as_echo_n "checking absolute name of <sys/stat.h>... " >&6; }
24812 if ${gl_cv_next_sys_stat_h+:} false; then :
24813 $as_echo_n "(cached) " >&6
24816 if test $ac_cv_header_sys_stat_h = yes; then
24821 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24822 /* end confdefs.h. */
24823 #include <sys/stat.h>
24826 aix*) gl_absname_cpp="$ac_cpp -C" ;;
24827 *) gl_absname_cpp="$ac_cpp" ;;
24832 gl_dirsep_regex='[/\\]'
24835 gl_dirsep_regex='\/'
24838 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
24839 gl_header_literal_regex=`echo 'sys/stat.h' \
24840 | sed -e "$gl_make_literal_regex_sed"`
24841 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
24842 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
24848 gl_cv_absolute_sys_stat_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
24849 sed -n "$gl_absolute_header_sed"`
24851 gl_header=$gl_cv_absolute_sys_stat_h
24852 gl_cv_next_sys_stat_h='"'$gl_header'"'
24854 gl_cv_next_sys_stat_h='<'sys/stat.h'>'
24859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_stat_h" >&5
24860 $as_echo "$gl_cv_next_sys_stat_h" >&6; }
24862 NEXT_SYS_STAT_H=$gl_cv_next_sys_stat_h
24864 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
24865 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
24866 gl_next_as_first_directive='<'sys/stat.h'>'
24868 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
24869 gl_next_as_first_directive=$gl_cv_next_sys_stat_h
24871 NEXT_AS_FIRST_DIRECTIVE_SYS_STAT_H=$gl_next_as_first_directive
24883 if test $WINDOWS_64_BIT_ST_SIZE = 1; then
24885 $as_echo "#define _GL_WINDOWS_64_BIT_ST_SIZE 1" >>confdefs.h
24889 ac_fn_c_check_type "$LINENO" "nlink_t" "ac_cv_type_nlink_t" "#include <sys/types.h>
24890 #include <sys/stat.h>
24892 if test "x$ac_cv_type_nlink_t" = xyes; then :
24896 $as_echo "#define nlink_t int" >>confdefs.h
24902 for gl_func in fchmodat fstat fstatat futimens lchmod lstat mkdirat mkfifo mkfifoat mknod mknodat stat utimensat; do
24903 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
24904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
24905 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
24906 if eval \${$as_gl_Symbol+:} false; then :
24907 $as_echo_n "(cached) " >&6
24909 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24910 /* end confdefs.h. */
24911 #include <sys/stat.h>
24922 if ac_fn_c_try_compile "$LINENO"; then :
24923 eval "$as_gl_Symbol=yes"
24925 eval "$as_gl_Symbol=no"
24927 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24929 eval ac_res=\$$as_gl_Symbol
24930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
24931 $as_echo "$ac_res" >&6; }
24932 if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
24933 cat >>confdefs.h <<_ACEOF
24934 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
24937 eval ac_cv_have_decl_$gl_func=yes
24966 if test $gl_cv_have_include_next = yes; then
24967 gl_cv_next_sys_uio_h='<'sys/uio.h'>'
24969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/uio.h>" >&5
24970 $as_echo_n "checking absolute name of <sys/uio.h>... " >&6; }
24971 if ${gl_cv_next_sys_uio_h+:} false; then :
24972 $as_echo_n "(cached) " >&6
24975 if test $ac_cv_header_sys_uio_h = yes; then
24980 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24981 /* end confdefs.h. */
24982 #include <sys/uio.h>
24985 aix*) gl_absname_cpp="$ac_cpp -C" ;;
24986 *) gl_absname_cpp="$ac_cpp" ;;
24991 gl_dirsep_regex='[/\\]'
24994 gl_dirsep_regex='\/'
24997 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
24998 gl_header_literal_regex=`echo 'sys/uio.h' \
24999 | sed -e "$gl_make_literal_regex_sed"`
25000 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
25001 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
25007 gl_cv_absolute_sys_uio_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
25008 sed -n "$gl_absolute_header_sed"`
25010 gl_header=$gl_cv_absolute_sys_uio_h
25011 gl_cv_next_sys_uio_h='"'$gl_header'"'
25013 gl_cv_next_sys_uio_h='<'sys/uio.h'>'
25018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_uio_h" >&5
25019 $as_echo "$gl_cv_next_sys_uio_h" >&6; }
25021 NEXT_SYS_UIO_H=$gl_cv_next_sys_uio_h
25023 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
25024 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
25025 gl_next_as_first_directive='<'sys/uio.h'>'
25027 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
25028 gl_next_as_first_directive=$gl_cv_next_sys_uio_h
25030 NEXT_AS_FIRST_DIRECTIVE_SYS_UIO_H=$gl_next_as_first_directive
25035 if test $ac_cv_header_sys_uio_h = yes; then
25052 ac_fn_c_check_decl "$LINENO" "localtime_r" "ac_cv_have_decl_localtime_r" "#include <time.h>
25054 if test "x$ac_cv_have_decl_localtime_r" = xyes; then :
25060 cat >>confdefs.h <<_ACEOF
25061 #define HAVE_DECL_LOCALTIME_R $ac_have_decl
25064 if test $ac_cv_have_decl_localtime_r = no; then
25065 HAVE_DECL_LOCALTIME_R=0
25075 if test $ac_cv_func_localtime_r = yes; then
25077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether localtime_r is compatible with its POSIX signature" >&5
25078 $as_echo_n "checking whether localtime_r is compatible with its POSIX signature... " >&6; }
25079 if ${gl_cv_time_r_posix+:} false; then :
25080 $as_echo_n "(cached) " >&6
25082 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25083 /* end confdefs.h. */
25088 /* We don't need to append 'restrict's to the argument types,
25089 even though the POSIX signature has the 'restrict's,
25090 since C99 says they can't affect type compatibility. */
25091 struct tm * (*ptr) (time_t const *, struct tm *) = localtime_r;
25093 /* Check the return type is a pointer.
25094 On HP-UX 10 it is 'int'. */
25095 *localtime_r (0, 0);
25101 if ac_fn_c_try_compile "$LINENO"; then :
25102 gl_cv_time_r_posix=yes
25104 gl_cv_time_r_posix=no
25106 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_time_r_posix" >&5
25110 $as_echo "$gl_cv_time_r_posix" >&6; }
25111 if test $gl_cv_time_r_posix = yes; then
25112 REPLACE_LOCALTIME_R=0
25114 REPLACE_LOCALTIME_R=1
25120 if test $HAVE_LOCALTIME_R = 0 || test $REPLACE_LOCALTIME_R = 1; then
25129 gl_LIBOBJS="$gl_LIBOBJS time_r.$ac_objext"
25146 $as_echo "#define GNULIB_TEST_TIME_R 1" >>confdefs.h
25168 if test $gl_cv_have_include_next = yes; then
25169 gl_cv_next_unistd_h='<'unistd.h'>'
25171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <unistd.h>" >&5
25172 $as_echo_n "checking absolute name of <unistd.h>... " >&6; }
25173 if ${gl_cv_next_unistd_h+:} false; then :
25174 $as_echo_n "(cached) " >&6
25177 if test $ac_cv_header_unistd_h = yes; then
25182 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25183 /* end confdefs.h. */
25184 #include <unistd.h>
25187 aix*) gl_absname_cpp="$ac_cpp -C" ;;
25188 *) gl_absname_cpp="$ac_cpp" ;;
25193 gl_dirsep_regex='[/\\]'
25196 gl_dirsep_regex='\/'
25199 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
25200 gl_header_literal_regex=`echo 'unistd.h' \
25201 | sed -e "$gl_make_literal_regex_sed"`
25202 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
25203 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
25209 gl_cv_absolute_unistd_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
25210 sed -n "$gl_absolute_header_sed"`
25212 gl_header=$gl_cv_absolute_unistd_h
25213 gl_cv_next_unistd_h='"'$gl_header'"'
25215 gl_cv_next_unistd_h='<'unistd.h'>'
25220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_unistd_h" >&5
25221 $as_echo "$gl_cv_next_unistd_h" >&6; }
25223 NEXT_UNISTD_H=$gl_cv_next_unistd_h
25225 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
25226 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
25227 gl_next_as_first_directive='<'unistd.h'>'
25229 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
25230 gl_next_as_first_directive=$gl_cv_next_unistd_h
25232 NEXT_AS_FIRST_DIRECTIVE_UNISTD_H=$gl_next_as_first_directive
25237 if test $ac_cv_header_unistd_h = yes; then
25249 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
25250 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
25251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
25252 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
25253 if eval \${$as_gl_Symbol+:} false; then :
25254 $as_echo_n "(cached) " >&6
25256 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25257 /* end confdefs.h. */
25260 # include <unistd.h>
25262 /* Some systems declare various items in the wrong headers. */
25263 #if !(defined __GLIBC__ && !defined __UCLIBC__)
25264 # include <fcntl.h>
25265 # include <stdio.h>
25266 # include <stdlib.h>
25267 # if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
25281 if ac_fn_c_try_compile "$LINENO"; then :
25282 eval "$as_gl_Symbol=yes"
25284 eval "$as_gl_Symbol=no"
25286 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25288 eval ac_res=\$$as_gl_Symbol
25289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
25290 $as_echo "$ac_res" >&6; }
25291 if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
25292 cat >>confdefs.h <<_ACEOF
25293 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
25296 eval ac_cv_have_decl_$gl_func=yes
25302 # Check whether --enable-valgrind-tests was given.
25303 if test "${enable_valgrind_tests+set}" = set; then :
25304 enableval=$enable_valgrind_tests; opt_valgrind_tests=$enableval
25306 opt_valgrind_tests=yes
25310 # Run self-tests under valgrind?
25311 if test "$opt_valgrind_tests" = "yes" && test "$cross_compiling" = no; then
25312 for ac_prog in valgrind
25314 # Extract the first word of "$ac_prog", so it can be a program name with args.
25315 set dummy $ac_prog; ac_word=$2
25316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25317 $as_echo_n "checking for $ac_word... " >&6; }
25318 if ${ac_cv_prog_VALGRIND+:} false; then :
25319 $as_echo_n "(cached) " >&6
25321 if test -n "$VALGRIND"; then
25322 ac_cv_prog_VALGRIND="$VALGRIND" # Let the user override the test.
25324 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25325 for as_dir in $PATH
25328 test -z "$as_dir" && as_dir=.
25329 for ac_exec_ext in '' $ac_executable_extensions; do
25330 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25331 ac_cv_prog_VALGRIND="$ac_prog"
25332 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
25341 VALGRIND=$ac_cv_prog_VALGRIND
25342 if test -n "$VALGRIND"; then
25343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $VALGRIND" >&5
25344 $as_echo "$VALGRIND" >&6; }
25346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25347 $as_echo "no" >&6; }
25351 test -n "$VALGRIND" && break
25356 OPTS="-q --error-exitcode=1 --leak-check=full --suppressions=suppressions.valgrind"
25358 if test -n "$VALGRIND" \
25359 && $VALGRIND $OPTS $SHELL -c 'exit 0' > /dev/null 2>&1; then
25360 opt_valgrind_tests=yes
25361 VALGRIND="$VALGRIND $OPTS"
25363 opt_valgrind_tests=no
25367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether self tests are run under valgrind" >&5
25368 $as_echo_n "checking whether self tests are run under valgrind... " >&6; }
25369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $opt_valgrind_tests" >&5
25370 $as_echo "$opt_valgrind_tests" >&6; }
25380 if test $ac_cv_func_vasnprintf = no; then
25397 gl_LIBOBJS="$gl_LIBOBJS vasnprintf.$ac_objext"
25407 gl_LIBOBJS="$gl_LIBOBJS printf-args.$ac_objext"
25417 gl_LIBOBJS="$gl_LIBOBJS printf-parse.$ac_objext"
25427 gl_LIBOBJS="$gl_LIBOBJS asnprintf.$ac_objext"
25429 if test $ac_cv_func_vasnprintf = yes; then
25431 $as_echo "#define REPLACE_VASNPRINTF 1" >>confdefs.h
25445 ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
25446 if test "x$ac_cv_type_ptrdiff_t" = xyes; then :
25450 $as_echo "#define ptrdiff_t long" >>confdefs.h
25464 for ac_func in vasprintf
25466 ac_fn_c_check_func "$LINENO" "vasprintf" "ac_cv_func_vasprintf"
25467 if test "x$ac_cv_func_vasprintf" = xyes; then :
25468 cat >>confdefs.h <<_ACEOF
25469 #define HAVE_VASPRINTF 1
25475 if test $ac_cv_func_vasprintf = no; then
25485 gl_LIBOBJS="$gl_LIBOBJS vasprintf.$ac_objext"
25495 gl_LIBOBJS="$gl_LIBOBJS asprintf.$ac_objext"
25498 if test $ac_cv_func_vasprintf = yes; then
25499 REPLACE_VASPRINTF=1
25524 $as_echo "#define GNULIB_TEST_VASPRINTF 1" >>confdefs.h
25530 XGETTEXT_EXTRA_OPTIONS="$XGETTEXT_EXTRA_OPTIONS --flag=asprintf:2:c-format"
25534 XGETTEXT_EXTRA_OPTIONS="$XGETTEXT_EXTRA_OPTIONS --flag=vasprintf:2:c-format"
25538 gl_cv_func_vsnprintf_usable=no
25539 for ac_func in vsnprintf
25541 ac_fn_c_check_func "$LINENO" "vsnprintf" "ac_cv_func_vsnprintf"
25542 if test "x$ac_cv_func_vsnprintf" = xyes; then :
25543 cat >>confdefs.h <<_ACEOF
25544 #define HAVE_VSNPRINTF 1
25550 if test $ac_cv_func_vsnprintf = yes; then
25554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether snprintf respects a size of 1" >&5
25555 $as_echo_n "checking whether snprintf respects a size of 1... " >&6; }
25556 if ${gl_cv_func_snprintf_size1+:} false; then :
25557 $as_echo_n "(cached) " >&6
25560 if test "$cross_compiling" = yes; then :
25561 gl_cv_func_snprintf_size1="guessing yes"
25563 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25564 /* end confdefs.h. */
25568 # define my_snprintf snprintf
25570 # include <stdarg.h>
25571 static int my_snprintf (char *buf, int size, const char *format, ...)
25575 va_start (args, format);
25576 ret = vsnprintf (buf, size, format, args);
25583 static char buf[8] = { 'D', 'E', 'A', 'D', 'B', 'E', 'E', 'F' };
25584 my_snprintf (buf, 1, "%d", 12345);
25585 return buf[1] != 'E';
25588 if ac_fn_c_try_run "$LINENO"; then :
25589 gl_cv_func_snprintf_size1=yes
25591 gl_cv_func_snprintf_size1=no
25593 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25594 conftest.$ac_objext conftest.beam conftest.$ac_ext
25599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_snprintf_size1" >&5
25600 $as_echo "$gl_cv_func_snprintf_size1" >&6; }
25602 case "$gl_cv_func_snprintf_size1" in
25605 case "$gl_cv_func_snprintf_retval_c99" in
25609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether printf supports POSIX/XSI format strings with positions" >&5
25610 $as_echo_n "checking whether printf supports POSIX/XSI format strings with positions... " >&6; }
25611 if ${gl_cv_func_printf_positions+:} false; then :
25612 $as_echo_n "(cached) " >&6
25615 if test "$cross_compiling" = yes; then :
25618 netbsd[1-3]* | netbsdelf[1-3]* | netbsdaout[1-3]* | netbsdcoff[1-3]*)
25619 gl_cv_func_printf_positions="guessing no";;
25620 beos*) gl_cv_func_printf_positions="guessing no";;
25621 mingw* | pw*) gl_cv_func_printf_positions="guessing no";;
25622 *) gl_cv_func_printf_positions="guessing yes";;
25626 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25627 /* end confdefs.h. */
25630 #include <string.h>
25631 /* The string "%2$d %1$d", with dollar characters protected from the shell's
25632 dollar expansion (possibly an autoconf bug). */
25633 static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' };
25634 static char buf[100];
25637 sprintf (buf, format, 33, 55);
25638 return (strcmp (buf, "55 33") != 0);
25641 if ac_fn_c_try_run "$LINENO"; then :
25642 gl_cv_func_printf_positions=yes
25644 gl_cv_func_printf_positions=no
25646 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25647 conftest.$ac_objext conftest.beam conftest.$ac_ext
25652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_printf_positions" >&5
25653 $as_echo "$gl_cv_func_printf_positions" >&6; }
25655 case "$gl_cv_func_printf_positions" in
25657 gl_cv_func_vsnprintf_usable=yes
25665 if test $gl_cv_func_vsnprintf_usable = no; then
25676 gl_LIBOBJS="$gl_LIBOBJS vsnprintf.$ac_objext"
25678 if test $ac_cv_func_vsnprintf = yes; then
25679 REPLACE_VSNPRINTF=1
25691 if test $ac_cv_have_decl_vsnprintf = no; then
25692 HAVE_DECL_VSNPRINTF=0
25706 $as_echo "#define GNULIB_TEST_VSNPRINTF 1" >>confdefs.h
25728 if test $gl_cv_have_include_next = yes; then
25729 gl_cv_next_wchar_h='<'wchar.h'>'
25731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <wchar.h>" >&5
25732 $as_echo_n "checking absolute name of <wchar.h>... " >&6; }
25733 if ${gl_cv_next_wchar_h+:} false; then :
25734 $as_echo_n "(cached) " >&6
25737 if test $ac_cv_header_wchar_h = yes; then
25742 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25743 /* end confdefs.h. */
25747 aix*) gl_absname_cpp="$ac_cpp -C" ;;
25748 *) gl_absname_cpp="$ac_cpp" ;;
25753 gl_dirsep_regex='[/\\]'
25756 gl_dirsep_regex='\/'
25759 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
25760 gl_header_literal_regex=`echo 'wchar.h' \
25761 | sed -e "$gl_make_literal_regex_sed"`
25762 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
25763 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
25769 gl_cv_absolute_wchar_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
25770 sed -n "$gl_absolute_header_sed"`
25772 gl_header=$gl_cv_absolute_wchar_h
25773 gl_cv_next_wchar_h='"'$gl_header'"'
25775 gl_cv_next_wchar_h='<'wchar.h'>'
25780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_wchar_h" >&5
25781 $as_echo "$gl_cv_next_wchar_h" >&6; }
25783 NEXT_WCHAR_H=$gl_cv_next_wchar_h
25785 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
25786 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
25787 gl_next_as_first_directive='<'wchar.h'>'
25789 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
25790 gl_next_as_first_directive=$gl_cv_next_wchar_h
25792 NEXT_AS_FIRST_DIRECTIVE_WCHAR_H=$gl_next_as_first_directive
25797 if test $ac_cv_header_wchar_h = yes; then
25807 if test $gt_cv_c_wint_t = yes; then
25815 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
25816 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
25817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
25818 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
25819 if eval \${$as_gl_Symbol+:} false; then :
25820 $as_echo_n "(cached) " >&6
25822 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25823 /* end confdefs.h. */
25825 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
25827 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
25828 included before <wchar.h>. */
25829 #if !(defined __GLIBC__ && !defined __UCLIBC__)
25830 # include <stddef.h>
25831 # include <stdio.h>
25845 if ac_fn_c_try_compile "$LINENO"; then :
25846 eval "$as_gl_Symbol=yes"
25848 eval "$as_gl_Symbol=no"
25850 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25852 eval ac_res=\$$as_gl_Symbol
25853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
25854 $as_echo "$ac_res" >&6; }
25855 if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
25856 cat >>confdefs.h <<_ACEOF
25857 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
25860 eval ac_cv_have_decl_$gl_func=yes
25868 for ac_header in stdint.h
25870 ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
25871 if test "x$ac_cv_header_stdint_h" = xyes; then :
25872 cat >>confdefs.h <<_ACEOF
25873 #define HAVE_STDINT_H 1
25881 # End of code from modules
25902 gl_source_base='gl/tests'
25903 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
25905 gl_module_indicator_condition=$gltests_WITNESS
25918 if test $gl_cv_have_include_next = yes; then
25919 gl_cv_next_fcntl_h='<'fcntl.h'>'
25921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <fcntl.h>" >&5
25922 $as_echo_n "checking absolute name of <fcntl.h>... " >&6; }
25923 if ${gl_cv_next_fcntl_h+:} false; then :
25924 $as_echo_n "(cached) " >&6
25929 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25930 /* end confdefs.h. */
25934 aix*) gl_absname_cpp="$ac_cpp -C" ;;
25935 *) gl_absname_cpp="$ac_cpp" ;;
25940 gl_dirsep_regex='[/\\]'
25943 gl_dirsep_regex='\/'
25946 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
25947 gl_header_literal_regex=`echo 'fcntl.h' \
25948 | sed -e "$gl_make_literal_regex_sed"`
25949 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
25950 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
25956 gl_cv_absolute_fcntl_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
25957 sed -n "$gl_absolute_header_sed"`
25959 gl_header=$gl_cv_absolute_fcntl_h
25960 gl_cv_next_fcntl_h='"'$gl_header'"'
25964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_fcntl_h" >&5
25965 $as_echo "$gl_cv_next_fcntl_h" >&6; }
25967 NEXT_FCNTL_H=$gl_cv_next_fcntl_h
25969 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
25970 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
25971 gl_next_as_first_directive='<'fcntl.h'>'
25973 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
25974 gl_next_as_first_directive=$gl_cv_next_fcntl_h
25976 NEXT_AS_FIRST_DIRECTIVE_FCNTL_H=$gl_next_as_first_directive
25987 for gl_func in fcntl openat; do
25988 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
25989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
25990 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
25991 if eval \${$as_gl_Symbol+:} false; then :
25992 $as_echo_n "(cached) " >&6
25994 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25995 /* end confdefs.h. */
26007 if ac_fn_c_try_compile "$LINENO"; then :
26008 eval "$as_gl_Symbol=yes"
26010 eval "$as_gl_Symbol=no"
26012 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26014 eval ac_res=\$$as_gl_Symbol
26015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
26016 $as_echo "$ac_res" >&6; }
26017 if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
26018 cat >>confdefs.h <<_ACEOF
26019 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
26022 eval ac_cv_have_decl_$gl_func=yes
26030 if test $HAVE_MSVC_INVALID_PARAMETER_HANDLER = 1; then
26033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fdopen sets errno" >&5
26034 $as_echo_n "checking whether fdopen sets errno... " >&6; }
26035 if ${gl_cv_func_fdopen_works+:} false; then :
26036 $as_echo_n "(cached) " >&6
26039 if test "$cross_compiling" = yes; then :
26041 mingw*) gl_cv_func_fdopen_works="guessing no" ;;
26042 *) gl_cv_func_fdopen_works="guessing yes" ;;
26046 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26047 /* end confdefs.h. */
26056 fp = fdopen (-1, "r");
26057 if (fp == NULL && errno == 0)
26062 if ac_fn_c_try_run "$LINENO"; then :
26063 gl_cv_func_fdopen_works=yes
26065 gl_cv_func_fdopen_works=no
26067 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
26068 conftest.$ac_objext conftest.beam conftest.$ac_ext
26073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_fdopen_works" >&5
26074 $as_echo "$gl_cv_func_fdopen_works" >&6; }
26075 case "$gl_cv_func_fdopen_works" in
26076 *no) REPLACE_FDOPEN=1 ;;
26080 if test $REPLACE_FDOPEN = 1; then
26089 gltests_LIBOBJS="$gltests_LIBOBJS fdopen.$ac_objext"
26098 if test "$GNULIB_FDOPEN" != 1; then
26099 if test "$GNULIB_FDOPEN" = 0; then
26100 GNULIB_FDOPEN=$gl_module_indicator_condition
26102 GNULIB_FDOPEN="($GNULIB_FDOPEN || $gl_module_indicator_condition)"
26110 $as_echo "#define GNULIB_TEST_FDOPEN 1" >>confdefs.h
26119 for ac_func in getpagesize
26121 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
26122 if test "x$ac_cv_func_getpagesize" = xyes; then :
26123 cat >>confdefs.h <<_ACEOF
26124 #define HAVE_GETPAGESIZE 1
26130 if test $ac_cv_func_getpagesize = no; then
26132 for ac_header in OS.h
26134 ac_fn_c_check_header_mongrel "$LINENO" "OS.h" "ac_cv_header_OS_h" "$ac_includes_default"
26135 if test "x$ac_cv_header_OS_h" = xyes; then :
26136 cat >>confdefs.h <<_ACEOF
26137 #define HAVE_OS_H 1
26144 if test $ac_cv_header_OS_h = yes; then
26147 for ac_header in sys/param.h
26149 ac_fn_c_check_header_mongrel "$LINENO" "sys/param.h" "ac_cv_header_sys_param_h" "$ac_includes_default"
26150 if test "x$ac_cv_header_sys_param_h" = xyes; then :
26151 cat >>confdefs.h <<_ACEOF
26152 #define HAVE_SYS_PARAM_H 1
26159 if test $ac_cv_header_sys_param_h = yes; then
26165 REPLACE_GETPAGESIZE=1
26168 ac_fn_c_check_decl "$LINENO" "getpagesize" "ac_cv_have_decl_getpagesize" "$ac_includes_default"
26169 if test "x$ac_cv_have_decl_getpagesize" = xyes; then :
26172 HAVE_DECL_GETPAGESIZE=0
26176 if test $REPLACE_GETPAGESIZE = 1; then
26185 gltests_LIBOBJS="$gltests_LIBOBJS getpagesize.$ac_objext"
26193 if test "$GNULIB_GETPAGESIZE" != 1; then
26194 if test "$GNULIB_GETPAGESIZE" = 0; then
26195 GNULIB_GETPAGESIZE=$gl_module_indicator_condition
26197 GNULIB_GETPAGESIZE="($GNULIB_GETPAGESIZE || $gl_module_indicator_condition)"
26205 $as_echo "#define GNULIB_TEST_GETPAGESIZE 1" >>confdefs.h
26215 if test -n "$STDINT_H"; then
26216 PRIPTR_PREFIX='"l"'
26218 for glpfx in '' l ll I64; do
26220 '') gltype1='int';;
26221 l) gltype1='long int';;
26222 ll) gltype1='long long int';;
26223 I64) gltype1='__int64';;
26225 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26226 /* end confdefs.h. */
26227 #include <stdint.h>
26228 extern intptr_t foo;
26229 extern $gltype1 foo;
26238 if ac_fn_c_try_compile "$LINENO"; then :
26239 PRIPTR_PREFIX='"'$glpfx'"'
26241 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26242 test -n "$PRIPTR_PREFIX" && break
26248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether INT32_MAX < INTMAX_MAX" >&5
26249 $as_echo_n "checking whether INT32_MAX < INTMAX_MAX... " >&6; }
26250 if ${gl_cv_test_INT32_MAX_LT_INTMAX_MAX+:} false; then :
26251 $as_echo_n "(cached) " >&6
26253 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26254 /* end confdefs.h. */
26255 /* Work also in C++ mode. */
26256 #define __STDC_LIMIT_MACROS 1
26258 /* Work if build is not clean. */
26259 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H
26261 #include <limits.h>
26263 #include <stdint.h>
26266 #if defined INT32_MAX && defined INTMAX_MAX
26267 #define CONDITION (INT32_MAX < INTMAX_MAX)
26268 #elif HAVE_LONG_LONG_INT
26269 #define CONDITION (sizeof (int) < sizeof (long long int))
26271 #define CONDITION 0
26273 int test[CONDITION ? 1 : -1];
26282 if ac_fn_c_try_compile "$LINENO"; then :
26283 gl_cv_test_INT32_MAX_LT_INTMAX_MAX=yes
26285 gl_cv_test_INT32_MAX_LT_INTMAX_MAX=no
26287 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_test_INT32_MAX_LT_INTMAX_MAX" >&5
26290 $as_echo "$gl_cv_test_INT32_MAX_LT_INTMAX_MAX" >&6; }
26291 if test $gl_cv_test_INT32_MAX_LT_INTMAX_MAX = yes; then
26292 INT32_MAX_LT_INTMAX_MAX=1;
26294 INT32_MAX_LT_INTMAX_MAX=0;
26298 if test $APPLE_UNIVERSAL_BUILD = 0; then
26300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether INT64_MAX == LONG_MAX" >&5
26301 $as_echo_n "checking whether INT64_MAX == LONG_MAX... " >&6; }
26302 if ${gl_cv_test_INT64_MAX_EQ_LONG_MAX+:} false; then :
26303 $as_echo_n "(cached) " >&6
26305 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26306 /* end confdefs.h. */
26307 /* Work also in C++ mode. */
26308 #define __STDC_LIMIT_MACROS 1
26310 /* Work if build is not clean. */
26311 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H
26313 #include <limits.h>
26315 #include <stdint.h>
26318 #if defined INT64_MAX
26319 #define CONDITION (INT64_MAX == LONG_MAX)
26320 #elif HAVE_LONG_LONG_INT
26321 #define CONDITION (sizeof (long long int) == sizeof (long int))
26323 #define CONDITION 0
26325 int test[CONDITION ? 1 : -1];
26334 if ac_fn_c_try_compile "$LINENO"; then :
26335 gl_cv_test_INT64_MAX_EQ_LONG_MAX=yes
26337 gl_cv_test_INT64_MAX_EQ_LONG_MAX=no
26339 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_test_INT64_MAX_EQ_LONG_MAX" >&5
26342 $as_echo "$gl_cv_test_INT64_MAX_EQ_LONG_MAX" >&6; }
26343 if test $gl_cv_test_INT64_MAX_EQ_LONG_MAX = yes; then
26344 INT64_MAX_EQ_LONG_MAX=1;
26346 INT64_MAX_EQ_LONG_MAX=0;
26351 INT64_MAX_EQ_LONG_MAX=-1
26354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether UINT32_MAX < UINTMAX_MAX" >&5
26355 $as_echo_n "checking whether UINT32_MAX < UINTMAX_MAX... " >&6; }
26356 if ${gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX+:} false; then :
26357 $as_echo_n "(cached) " >&6
26359 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26360 /* end confdefs.h. */
26361 /* Work also in C++ mode. */
26362 #define __STDC_LIMIT_MACROS 1
26364 /* Work if build is not clean. */
26365 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H
26367 #include <limits.h>
26369 #include <stdint.h>
26372 #if defined UINT32_MAX && defined UINTMAX_MAX
26373 #define CONDITION (UINT32_MAX < UINTMAX_MAX)
26374 #elif HAVE_LONG_LONG_INT
26375 #define CONDITION (sizeof (unsigned int) < sizeof (unsigned long long int))
26377 #define CONDITION 0
26379 int test[CONDITION ? 1 : -1];
26388 if ac_fn_c_try_compile "$LINENO"; then :
26389 gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX=yes
26391 gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX=no
26393 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX" >&5
26396 $as_echo "$gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX" >&6; }
26397 if test $gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX = yes; then
26398 UINT32_MAX_LT_UINTMAX_MAX=1;
26400 UINT32_MAX_LT_UINTMAX_MAX=0;
26404 if test $APPLE_UNIVERSAL_BUILD = 0; then
26406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether UINT64_MAX == ULONG_MAX" >&5
26407 $as_echo_n "checking whether UINT64_MAX == ULONG_MAX... " >&6; }
26408 if ${gl_cv_test_UINT64_MAX_EQ_ULONG_MAX+:} false; then :
26409 $as_echo_n "(cached) " >&6
26411 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26412 /* end confdefs.h. */
26413 /* Work also in C++ mode. */
26414 #define __STDC_LIMIT_MACROS 1
26416 /* Work if build is not clean. */
26417 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H
26419 #include <limits.h>
26421 #include <stdint.h>
26424 #if defined UINT64_MAX
26425 #define CONDITION (UINT64_MAX == ULONG_MAX)
26426 #elif HAVE_LONG_LONG_INT
26427 #define CONDITION (sizeof (unsigned long long int) == sizeof (unsigned long int))
26429 #define CONDITION 0
26431 int test[CONDITION ? 1 : -1];
26440 if ac_fn_c_try_compile "$LINENO"; then :
26441 gl_cv_test_UINT64_MAX_EQ_ULONG_MAX=yes
26443 gl_cv_test_UINT64_MAX_EQ_ULONG_MAX=no
26445 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_test_UINT64_MAX_EQ_ULONG_MAX" >&5
26448 $as_echo "$gl_cv_test_UINT64_MAX_EQ_ULONG_MAX" >&6; }
26449 if test $gl_cv_test_UINT64_MAX_EQ_ULONG_MAX = yes; then
26450 UINT64_MAX_EQ_ULONG_MAX=1;
26452 UINT64_MAX_EQ_ULONG_MAX=0;
26457 UINT64_MAX_EQ_ULONG_MAX=-1
26465 # Check for mmap(). Don't use AC_FUNC_MMAP, because it checks too much: it
26466 # fails on HP-UX 11, because MAP_FIXED mappings do not work. But this is
26467 # irrelevant for anonymous mappings.
26468 ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
26469 if test "x$ac_cv_func_mmap" = xyes; then :
26476 # Try to allow MAP_ANONYMOUS.
26477 gl_have_mmap_anonymous=no
26478 if test $gl_have_mmap = yes; then
26479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANONYMOUS" >&5
26480 $as_echo_n "checking for MAP_ANONYMOUS... " >&6; }
26481 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26482 /* end confdefs.h. */
26484 #include <sys/mman.h>
26485 #ifdef MAP_ANONYMOUS
26486 I cannot identify this map
26490 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26491 $EGREP "I cannot identify this map" >/dev/null 2>&1; then :
26492 gl_have_mmap_anonymous=yes
26496 if test $gl_have_mmap_anonymous != yes; then
26497 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26498 /* end confdefs.h. */
26500 #include <sys/mman.h>
26502 I cannot identify this map
26506 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26507 $EGREP "I cannot identify this map" >/dev/null 2>&1; then :
26509 $as_echo "#define MAP_ANONYMOUS MAP_ANON" >>confdefs.h
26511 gl_have_mmap_anonymous=yes
26516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_have_mmap_anonymous" >&5
26517 $as_echo "$gl_have_mmap_anonymous" >&6; }
26518 if test $gl_have_mmap_anonymous = yes; then
26520 $as_echo "#define HAVE_MAP_ANONYMOUS 1" >>confdefs.h
26544 # Check for mmap(). Don't use AC_FUNC_MMAP, because it checks too much: it
26545 # fails on HP-UX 11, because MAP_FIXED mappings do not work. But this is
26546 # irrelevant for anonymous mappings.
26547 ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
26548 if test "x$ac_cv_func_mmap" = xyes; then :
26555 # Try to allow MAP_ANONYMOUS.
26556 gl_have_mmap_anonymous=no
26557 if test $gl_have_mmap = yes; then
26558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANONYMOUS" >&5
26559 $as_echo_n "checking for MAP_ANONYMOUS... " >&6; }
26560 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26561 /* end confdefs.h. */
26563 #include <sys/mman.h>
26564 #ifdef MAP_ANONYMOUS
26565 I cannot identify this map
26569 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26570 $EGREP "I cannot identify this map" >/dev/null 2>&1; then :
26571 gl_have_mmap_anonymous=yes
26575 if test $gl_have_mmap_anonymous != yes; then
26576 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26577 /* end confdefs.h. */
26579 #include <sys/mman.h>
26581 I cannot identify this map
26585 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26586 $EGREP "I cannot identify this map" >/dev/null 2>&1; then :
26588 $as_echo "#define MAP_ANONYMOUS MAP_ANON" >>confdefs.h
26590 gl_have_mmap_anonymous=yes
26595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_have_mmap_anonymous" >&5
26596 $as_echo "$gl_have_mmap_anonymous" >&6; }
26597 if test $gl_have_mmap_anonymous = yes; then
26599 $as_echo "#define HAVE_MAP_ANONYMOUS 1" >>confdefs.h
26626 # Check whether --enable-valgrind-tests was given.
26627 if test "${enable_valgrind_tests+set}" = set; then :
26628 enableval=$enable_valgrind_tests; opt_valgrind_tests=$enableval
26630 opt_valgrind_tests=yes
26634 # Run self-tests under valgrind?
26635 if test "$opt_valgrind_tests" = "yes" && test "$cross_compiling" = no; then
26636 for ac_prog in valgrind
26638 # Extract the first word of "$ac_prog", so it can be a program name with args.
26639 set dummy $ac_prog; ac_word=$2
26640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
26641 $as_echo_n "checking for $ac_word... " >&6; }
26642 if ${ac_cv_prog_VALGRIND+:} false; then :
26643 $as_echo_n "(cached) " >&6
26645 if test -n "$VALGRIND"; then
26646 ac_cv_prog_VALGRIND="$VALGRIND" # Let the user override the test.
26648 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26649 for as_dir in $PATH
26652 test -z "$as_dir" && as_dir=.
26653 for ac_exec_ext in '' $ac_executable_extensions; do
26654 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
26655 ac_cv_prog_VALGRIND="$ac_prog"
26656 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
26665 VALGRIND=$ac_cv_prog_VALGRIND
26666 if test -n "$VALGRIND"; then
26667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $VALGRIND" >&5
26668 $as_echo "$VALGRIND" >&6; }
26670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26671 $as_echo "no" >&6; }
26675 test -n "$VALGRIND" && break
26680 OPTS="-q --error-exitcode=1 --leak-check=full --suppressions=suppressions.valgrind"
26682 if test -n "$VALGRIND" \
26683 && $VALGRIND $OPTS $SHELL -c 'exit 0' > /dev/null 2>&1; then
26684 opt_valgrind_tests=yes
26685 VALGRIND="$VALGRIND $OPTS"
26687 opt_valgrind_tests=no
26691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether self tests are run under valgrind" >&5
26692 $as_echo_n "checking whether self tests are run under valgrind... " >&6; }
26693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $opt_valgrind_tests" >&5
26694 $as_echo "$opt_valgrind_tests" >&6; }
26696 abs_aux_dir=`cd "$ac_aux_dir"; pwd`
26708 LIBTESTS_LIBDEPS="$gltests_libdeps"
26712 GNULIB_INET_NTOP=0;
26713 GNULIB_INET_PTON=0;
26714 HAVE_DECL_INET_NTOP=1;
26715 HAVE_DECL_INET_PTON=1;
26716 REPLACE_INET_NTOP=0;
26717 REPLACE_INET_PTON=0;
26742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if environ is properly declared" >&5
26743 $as_echo_n "checking if environ is properly declared... " >&6; }
26744 if ${gt_cv_var_environ_declaration+:} false; then :
26745 $as_echo_n "(cached) " >&6
26748 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26749 /* end confdefs.h. */
26751 #include <unistd.h>
26753 /* mingw, BeOS, Haiku declare environ in <stdlib.h>, not in <unistd.h>. */
26754 #include <stdlib.h>
26756 extern struct { int foo; } environ;
26765 if ac_fn_c_try_compile "$LINENO"; then :
26766 gt_cv_var_environ_declaration=no
26768 gt_cv_var_environ_declaration=yes
26770 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_var_environ_declaration" >&5
26774 $as_echo "$gt_cv_var_environ_declaration" >&6; }
26775 if test $gt_cv_var_environ_declaration = yes; then
26777 $as_echo "#define HAVE_ENVIRON_DECL 1" >>confdefs.h
26782 if test $gt_cv_var_environ_declaration != yes; then
26783 HAVE_DECL_ENVIRON=0
26786 ac_fn_c_check_decl "$LINENO" "strerror_r" "ac_cv_have_decl_strerror_r" "$ac_includes_default"
26787 if test "x$ac_cv_have_decl_strerror_r" = xyes; then :
26793 cat >>confdefs.h <<_ACEOF
26794 #define HAVE_DECL_STRERROR_R $ac_have_decl
26797 for ac_func in strerror_r
26799 ac_fn_c_check_func "$LINENO" "strerror_r" "ac_cv_func_strerror_r"
26800 if test "x$ac_cv_func_strerror_r" = xyes; then :
26801 cat >>confdefs.h <<_ACEOF
26802 #define HAVE_STRERROR_R 1
26808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strerror_r returns char *" >&5
26809 $as_echo_n "checking whether strerror_r returns char *... " >&6; }
26810 if ${ac_cv_func_strerror_r_char_p+:} false; then :
26811 $as_echo_n "(cached) " >&6
26814 ac_cv_func_strerror_r_char_p=no
26815 if test $ac_cv_have_decl_strerror_r = yes; then
26816 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26817 /* end confdefs.h. */
26818 $ac_includes_default
26824 char x = *strerror_r (0, buf, sizeof buf);
26825 char *p = strerror_r (0, buf, sizeof buf);
26832 if ac_fn_c_try_compile "$LINENO"; then :
26833 ac_cv_func_strerror_r_char_p=yes
26835 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26837 # strerror_r is not declared. Choose between
26838 # systems that have relatively inaccessible declarations for the
26839 # function. BeOS and DEC UNIX 4.0 fall in this category, but the
26840 # former has a strerror_r that returns char*, while the latter
26841 # has a strerror_r that returns `int'.
26842 # This test should segfault on the DEC system.
26843 if test "$cross_compiling" = yes; then :
26846 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26847 /* end confdefs.h. */
26848 $ac_includes_default
26849 extern char *strerror_r ();
26854 char x = *strerror_r (0, buf, sizeof buf);
26855 return ! isalpha (x);
26860 if ac_fn_c_try_run "$LINENO"; then :
26861 ac_cv_func_strerror_r_char_p=yes
26863 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
26864 conftest.$ac_objext conftest.beam conftest.$ac_ext
26870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strerror_r_char_p" >&5
26871 $as_echo "$ac_cv_func_strerror_r_char_p" >&6; }
26872 if test $ac_cv_func_strerror_r_char_p = yes; then
26874 $as_echo "#define STRERROR_R_CHAR_P 1" >>confdefs.h
26879 ac_fn_c_check_decl "$LINENO" "fseeko" "ac_cv_have_decl_fseeko" "$ac_includes_default"
26880 if test "x$ac_cv_have_decl_fseeko" = xyes; then :
26886 cat >>confdefs.h <<_ACEOF
26887 #define HAVE_DECL_FSEEKO $ac_have_decl
26899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fseeko" >&5
26900 $as_echo_n "checking for fseeko... " >&6; }
26901 if ${gl_cv_func_fseeko+:} false; then :
26902 $as_echo_n "(cached) " >&6
26905 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26906 /* end confdefs.h. */
26912 fseeko (stdin, 0, 0);
26917 if ac_fn_c_try_link "$LINENO"; then :
26918 gl_cv_func_fseeko=yes
26920 gl_cv_func_fseeko=no
26922 rm -f core conftest.err conftest.$ac_objext \
26923 conftest$ac_exeext conftest.$ac_ext
26926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_fseeko" >&5
26927 $as_echo "$gl_cv_func_fseeko" >&6; }
26936 if test $ac_cv_have_decl_fseeko = no; then
26940 if test $gl_cv_func_fseeko = no; then
26943 if test $WINDOWS_64_BIT_OFF_T = 1; then
26946 if test $gl_cv_var_stdin_large_offset = no; then
26954 gl_saved_libs="$LIBS"
26955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5
26956 $as_echo_n "checking for library containing gethostbyname... " >&6; }
26957 if ${ac_cv_search_gethostbyname+:} false; then :
26958 $as_echo_n "(cached) " >&6
26960 ac_func_search_save_LIBS=$LIBS
26961 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26962 /* end confdefs.h. */
26964 /* Override any GCC internal prototype to avoid an error.
26965 Use char because int might match the return type of a GCC
26966 builtin and then its argument prototype would still apply. */
26970 char gethostbyname ();
26974 return gethostbyname ();
26979 for ac_lib in '' nsl network net; do
26980 if test -z "$ac_lib"; then
26981 ac_res="none required"
26984 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
26986 if ac_fn_c_try_link "$LINENO"; then :
26987 ac_cv_search_gethostbyname=$ac_res
26989 rm -f core conftest.err conftest.$ac_objext \
26991 if ${ac_cv_search_gethostbyname+:} false; then :
26995 if ${ac_cv_search_gethostbyname+:} false; then :
26998 ac_cv_search_gethostbyname=no
27000 rm conftest.$ac_ext
27001 LIBS=$ac_func_search_save_LIBS
27003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5
27004 $as_echo "$ac_cv_search_gethostbyname" >&6; }
27005 ac_res=$ac_cv_search_gethostbyname
27006 if test "$ac_res" != no; then :
27007 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27008 if test "$ac_cv_search_gethostbyname" != "none required"; then
27009 HOSTENT_LIB="$ac_cv_search_gethostbyname"
27013 LIBS="$gl_saved_libs"
27014 if test -z "$HOSTENT_LIB"; then
27015 for ac_func in gethostbyname
27017 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
27018 if test "x$ac_cv_func_gethostbyname" = xyes; then :
27019 cat >>confdefs.h <<_ACEOF
27020 #define HAVE_GETHOSTBYNAME 1
27025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in winsock2.h and -lws2_32" >&5
27026 $as_echo_n "checking for gethostbyname in winsock2.h and -lws2_32... " >&6; }
27027 if ${gl_cv_w32_gethostbyname+:} false; then :
27028 $as_echo_n "(cached) " >&6
27030 gl_cv_w32_gethostbyname=no
27031 gl_save_LIBS="$LIBS"
27032 LIBS="$LIBS -lws2_32"
27033 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27034 /* end confdefs.h. */
27036 #ifdef HAVE_WINSOCK2_H
27037 #include <winsock2.h>
27039 #include <stddef.h>
27044 gethostbyname(NULL);
27049 if ac_fn_c_try_link "$LINENO"; then :
27050 gl_cv_w32_gethostbyname=yes
27052 rm -f core conftest.err conftest.$ac_objext \
27053 conftest$ac_exeext conftest.$ac_ext
27054 LIBS="$gl_save_LIBS"
27057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_w32_gethostbyname" >&5
27058 $as_echo "$gl_cv_w32_gethostbyname" >&6; }
27059 if test "$gl_cv_w32_gethostbyname" = "yes"; then
27060 HOSTENT_LIB="-lws2_32"
27071 gl_saved_libs="$LIBS"
27072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getservbyname" >&5
27073 $as_echo_n "checking for library containing getservbyname... " >&6; }
27074 if ${ac_cv_search_getservbyname+:} false; then :
27075 $as_echo_n "(cached) " >&6
27077 ac_func_search_save_LIBS=$LIBS
27078 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27079 /* end confdefs.h. */
27081 /* Override any GCC internal prototype to avoid an error.
27082 Use char because int might match the return type of a GCC
27083 builtin and then its argument prototype would still apply. */
27087 char getservbyname ();
27091 return getservbyname ();
27096 for ac_lib in '' socket network net; do
27097 if test -z "$ac_lib"; then
27098 ac_res="none required"
27101 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
27103 if ac_fn_c_try_link "$LINENO"; then :
27104 ac_cv_search_getservbyname=$ac_res
27106 rm -f core conftest.err conftest.$ac_objext \
27108 if ${ac_cv_search_getservbyname+:} false; then :
27112 if ${ac_cv_search_getservbyname+:} false; then :
27115 ac_cv_search_getservbyname=no
27117 rm conftest.$ac_ext
27118 LIBS=$ac_func_search_save_LIBS
27120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getservbyname" >&5
27121 $as_echo "$ac_cv_search_getservbyname" >&6; }
27122 ac_res=$ac_cv_search_getservbyname
27123 if test "$ac_res" != no; then :
27124 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27125 if test "$ac_cv_search_getservbyname" != "none required"; then
27126 SERVENT_LIB="$ac_cv_search_getservbyname"
27130 LIBS="$gl_saved_libs"
27131 if test -z "$SERVENT_LIB"; then
27132 for ac_func in getservbyname
27134 ac_fn_c_check_func "$LINENO" "getservbyname" "ac_cv_func_getservbyname"
27135 if test "x$ac_cv_func_getservbyname" = xyes; then :
27136 cat >>confdefs.h <<_ACEOF
27137 #define HAVE_GETSERVBYNAME 1
27142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getservbyname in winsock2.h and -lws2_32" >&5
27143 $as_echo_n "checking for getservbyname in winsock2.h and -lws2_32... " >&6; }
27144 if ${gl_cv_w32_getservbyname+:} false; then :
27145 $as_echo_n "(cached) " >&6
27147 gl_cv_w32_getservbyname=no
27148 gl_save_LIBS="$LIBS"
27149 LIBS="$LIBS -lws2_32"
27150 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27151 /* end confdefs.h. */
27153 #ifdef HAVE_WINSOCK2_H
27154 #include <winsock2.h>
27156 #include <stddef.h>
27161 getservbyname(NULL,NULL);
27166 if ac_fn_c_try_link "$LINENO"; then :
27167 gl_cv_w32_getservbyname=yes
27169 rm -f core conftest.err conftest.$ac_objext \
27170 conftest$ac_exeext conftest.$ac_ext
27171 LIBS="$gl_save_LIBS"
27174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_w32_getservbyname" >&5
27175 $as_echo "$gl_cv_w32_getservbyname" >&6; }
27176 if test "$gl_cv_w32_getservbyname" = "yes"; then
27177 SERVENT_LIB="-lws2_32"
27205 if test $ac_cv_header_sys_socket_h != yes; then
27206 for ac_header in winsock2.h
27208 ac_fn_c_check_header_mongrel "$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
27209 if test "x$ac_cv_header_winsock2_h" = xyes; then :
27210 cat >>confdefs.h <<_ACEOF
27211 #define HAVE_WINSOCK2_H 1
27219 if test "$ac_cv_header_winsock2_h" = yes; then
27221 UNISTD_H_HAVE_WINSOCK2_H=1
27222 SYS_IOCTL_H_HAVE_WINSOCK2_H=1
27228 if test $HAVE_WINSOCK2_H = 1; then
27229 ac_fn_c_check_decl "$LINENO" "inet_ntop" "ac_cv_have_decl_inet_ntop" "#include <ws2tcpip.h>
27231 if test "x$ac_cv_have_decl_inet_ntop" = xyes; then :
27237 cat >>confdefs.h <<_ACEOF
27238 #define HAVE_DECL_INET_NTOP $ac_have_decl
27241 if test $ac_cv_have_decl_inet_ntop = yes; then
27242 REPLACE_INET_NTOP=1
27243 INET_NTOP_LIB="-lws2_32"
27245 HAVE_DECL_INET_NTOP=0
27250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing inet_ntop" >&5
27251 $as_echo_n "checking for library containing inet_ntop... " >&6; }
27252 if ${ac_cv_search_inet_ntop+:} false; then :
27253 $as_echo_n "(cached) " >&6
27255 ac_func_search_save_LIBS=$LIBS
27256 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27257 /* end confdefs.h. */
27259 /* Override any GCC internal prototype to avoid an error.
27260 Use char because int might match the return type of a GCC
27261 builtin and then its argument prototype would still apply. */
27269 return inet_ntop ();
27274 for ac_lib in '' nsl resolv; do
27275 if test -z "$ac_lib"; then
27276 ac_res="none required"
27279 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
27281 if ac_fn_c_try_link "$LINENO"; then :
27282 ac_cv_search_inet_ntop=$ac_res
27284 rm -f core conftest.err conftest.$ac_objext \
27286 if ${ac_cv_search_inet_ntop+:} false; then :
27290 if ${ac_cv_search_inet_ntop+:} false; then :
27293 ac_cv_search_inet_ntop=no
27295 rm conftest.$ac_ext
27296 LIBS=$ac_func_search_save_LIBS
27298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_ntop" >&5
27299 $as_echo "$ac_cv_search_inet_ntop" >&6; }
27300 ac_res=$ac_cv_search_inet_ntop
27301 if test "$ac_res" != no; then :
27302 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27305 for ac_func in inet_ntop
27307 ac_fn_c_check_func "$LINENO" "inet_ntop" "ac_cv_func_inet_ntop"
27308 if test "x$ac_cv_func_inet_ntop" = xyes; then :
27309 cat >>confdefs.h <<_ACEOF
27310 #define HAVE_INET_NTOP 1
27316 if test $ac_cv_func_inet_ntop = no; then
27324 if test "$ac_cv_search_inet_ntop" != "no" \
27325 && test "$ac_cv_search_inet_ntop" != "none required"; then
27326 INET_NTOP_LIB="$ac_cv_search_inet_ntop"
27336 ac_fn_c_check_decl "$LINENO" "inet_ntop" "ac_cv_have_decl_inet_ntop" "#include <arpa/inet.h>
27338 # include <netdb.h>
27342 if test "x$ac_cv_have_decl_inet_ntop" = xyes; then :
27348 cat >>confdefs.h <<_ACEOF
27349 #define HAVE_DECL_INET_NTOP $ac_have_decl
27352 if test $ac_cv_have_decl_inet_ntop = no; then
27353 HAVE_DECL_INET_NTOP=0
27368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IPv4 sockets" >&5
27369 $as_echo_n "checking for IPv4 sockets... " >&6; }
27370 if ${gl_cv_socket_ipv4+:} false; then :
27371 $as_echo_n "(cached) " >&6
27373 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27374 /* end confdefs.h. */
27375 #include <sys/types.h>
27376 #ifdef HAVE_SYS_SOCKET_H
27377 #include <sys/socket.h>
27379 #ifdef HAVE_NETINET_IN_H
27380 #include <netinet/in.h>
27382 #ifdef HAVE_WINSOCK2_H
27383 #include <winsock2.h>
27388 int x = AF_INET; struct in_addr y; struct sockaddr_in z;
27389 if (&x && &y && &z) return 0;
27394 if ac_fn_c_try_compile "$LINENO"; then :
27395 gl_cv_socket_ipv4=yes
27397 gl_cv_socket_ipv4=no
27399 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_socket_ipv4" >&5
27403 $as_echo "$gl_cv_socket_ipv4" >&6; }
27404 if test $gl_cv_socket_ipv4 = yes; then
27406 $as_echo "#define HAVE_IPV4 1" >>confdefs.h
27410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IPv6 sockets" >&5
27411 $as_echo_n "checking for IPv6 sockets... " >&6; }
27412 if ${gl_cv_socket_ipv6+:} false; then :
27413 $as_echo_n "(cached) " >&6
27415 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27416 /* end confdefs.h. */
27417 #include <sys/types.h>
27418 #ifdef HAVE_SYS_SOCKET_H
27419 #include <sys/socket.h>
27421 #ifdef HAVE_NETINET_IN_H
27422 #include <netinet/in.h>
27424 #ifdef HAVE_WINSOCK2_H
27425 #include <winsock2.h>
27427 #ifdef HAVE_WS2TCPIP_H
27428 #include <ws2tcpip.h>
27433 int x = AF_INET6; struct in6_addr y; struct sockaddr_in6 z;
27434 if (&x && &y && &z) return 0;
27439 if ac_fn_c_try_compile "$LINENO"; then :
27440 gl_cv_socket_ipv6=yes
27442 gl_cv_socket_ipv6=no
27444 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_socket_ipv6" >&5
27448 $as_echo "$gl_cv_socket_ipv6" >&6; }
27449 if test $gl_cv_socket_ipv6 = yes; then
27451 $as_echo "#define HAVE_IPV6 1" >>confdefs.h
27456 ac_fn_c_check_decl "$LINENO" "getpass" "ac_cv_have_decl_getpass" "$ac_includes_default"
27457 if test "x$ac_cv_have_decl_getpass" = xyes; then :
27463 cat >>confdefs.h <<_ACEOF
27464 #define HAVE_DECL_GETPASS $ac_have_decl
27494 ac_fn_c_check_decl "$LINENO" "fflush_unlocked" "ac_cv_have_decl_fflush_unlocked" "$ac_includes_default"
27495 if test "x$ac_cv_have_decl_fflush_unlocked" = xyes; then :
27501 cat >>confdefs.h <<_ACEOF
27502 #define HAVE_DECL_FFLUSH_UNLOCKED $ac_have_decl
27507 ac_fn_c_check_decl "$LINENO" "flockfile" "ac_cv_have_decl_flockfile" "$ac_includes_default"
27508 if test "x$ac_cv_have_decl_flockfile" = xyes; then :
27514 cat >>confdefs.h <<_ACEOF
27515 #define HAVE_DECL_FLOCKFILE $ac_have_decl
27520 ac_fn_c_check_decl "$LINENO" "fputs_unlocked" "ac_cv_have_decl_fputs_unlocked" "$ac_includes_default"
27521 if test "x$ac_cv_have_decl_fputs_unlocked" = xyes; then :
27527 cat >>confdefs.h <<_ACEOF
27528 #define HAVE_DECL_FPUTS_UNLOCKED $ac_have_decl
27533 ac_fn_c_check_decl "$LINENO" "funlockfile" "ac_cv_have_decl_funlockfile" "$ac_includes_default"
27534 if test "x$ac_cv_have_decl_funlockfile" = xyes; then :
27540 cat >>confdefs.h <<_ACEOF
27541 #define HAVE_DECL_FUNLOCKFILE $ac_have_decl
27546 ac_fn_c_check_decl "$LINENO" "putc_unlocked" "ac_cv_have_decl_putc_unlocked" "$ac_includes_default"
27547 if test "x$ac_cv_have_decl_putc_unlocked" = xyes; then :
27553 cat >>confdefs.h <<_ACEOF
27554 #define HAVE_DECL_PUTC_UNLOCKED $ac_have_decl
27566 for ac_header in stdlib.h
27568 ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
27569 if test "x$ac_cv_header_stdlib_h" = xyes; then :
27570 cat >>confdefs.h <<_ACEOF
27571 #define HAVE_STDLIB_H 1
27578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible malloc" >&5
27579 $as_echo_n "checking for GNU libc compatible malloc... " >&6; }
27580 if ${ac_cv_func_malloc_0_nonnull+:} false; then :
27581 $as_echo_n "(cached) " >&6
27583 if test "$cross_compiling" = yes; then :
27585 # Guess yes on platforms where we know the result.
27586 *-gnu* | freebsd* | netbsd* | openbsd* \
27587 | hpux* | solaris* | cygwin* | mingw*)
27588 ac_cv_func_malloc_0_nonnull=yes ;;
27589 # If we don't know, assume the worst.
27590 *) ac_cv_func_malloc_0_nonnull=no ;;
27594 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27595 /* end confdefs.h. */
27596 #if defined STDC_HEADERS || defined HAVE_STDLIB_H
27597 # include <stdlib.h>
27605 return ! malloc (0);
27611 if ac_fn_c_try_run "$LINENO"; then :
27612 ac_cv_func_malloc_0_nonnull=yes
27614 ac_cv_func_malloc_0_nonnull=no
27616 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
27617 conftest.$ac_objext conftest.beam conftest.$ac_ext
27622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_malloc_0_nonnull" >&5
27623 $as_echo "$ac_cv_func_malloc_0_nonnull" >&6; }
27624 if test $ac_cv_func_malloc_0_nonnull = yes; then :
27625 gl_cv_func_malloc_0_nonnull=1
27627 gl_cv_func_malloc_0_nonnull=0
27631 cat >>confdefs.h <<_ACEOF
27632 #define MALLOC_0_IS_NONNULL $gl_cv_func_malloc_0_nonnull
27637 ac_fn_c_check_decl "$LINENO" "alarm" "ac_cv_have_decl_alarm" "$ac_includes_default"
27638 if test "x$ac_cv_have_decl_alarm" = xyes; then :
27644 cat >>confdefs.h <<_ACEOF
27645 #define HAVE_DECL_ALARM $ac_have_decl
27650 # parse-datetime.y works with bison only.
27651 : ${YACC='bison -y'}
27654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compound literals" >&5
27655 $as_echo_n "checking for compound literals... " >&6; }
27656 if ${gl_cv_compound_literals+:} false; then :
27657 $as_echo_n "(cached) " >&6
27659 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27660 /* end confdefs.h. */
27661 struct s { int i, j; };
27665 struct s t = (struct s) { 3, 4 };
27666 if (t.i != 0) return 0;
27671 if ac_fn_c_try_compile "$LINENO"; then :
27672 gl_cv_compound_literals=yes
27674 gl_cv_compound_literals=no
27676 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_compound_literals" >&5
27679 $as_echo "$gl_cv_compound_literals" >&6; }
27680 if test $gl_cv_compound_literals = yes; then
27682 $as_echo "#define HAVE_COMPOUND_LITERALS 1" >>confdefs.h
27686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
27687 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
27688 if ${ac_cv_struct_tm+:} false; then :
27689 $as_echo_n "(cached) " >&6
27691 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27692 /* end confdefs.h. */
27693 #include <sys/types.h>
27700 int *p = &tm.tm_sec;
27706 if ac_fn_c_try_compile "$LINENO"; then :
27707 ac_cv_struct_tm=time.h
27709 ac_cv_struct_tm=sys/time.h
27711 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
27714 $as_echo "$ac_cv_struct_tm" >&6; }
27715 if test $ac_cv_struct_tm = sys/time.h; then
27717 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
27722 ac_fn_c_check_member "$LINENO" "struct tm" "tm_gmtoff" "ac_cv_member_struct_tm_tm_gmtoff" "#include <time.h>
27724 if test "x$ac_cv_member_struct_tm_tm_gmtoff" = xyes; then :
27726 $as_echo "#define HAVE_TM_GMTOFF 1" >>confdefs.h
27746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <sys/select.h> is self-contained" >&5
27747 $as_echo_n "checking whether <sys/select.h> is self-contained... " >&6; }
27748 if ${gl_cv_header_sys_select_h_selfcontained+:} false; then :
27749 $as_echo_n "(cached) " >&6
27752 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27753 /* end confdefs.h. */
27754 #include <sys/select.h>
27763 if ac_fn_c_try_compile "$LINENO"; then :
27764 gl_cv_header_sys_select_h_selfcontained=yes
27766 gl_cv_header_sys_select_h_selfcontained=no
27768 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27769 if test $gl_cv_header_sys_select_h_selfcontained = yes; then
27770 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27771 /* end confdefs.h. */
27772 #include <sys/select.h>
27776 int memset; int bzero;
27782 if ac_fn_c_try_compile "$LINENO"; then :
27783 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27784 /* end confdefs.h. */
27785 #include <sys/select.h>
27791 #define memset nonexistent_memset
27796 void *memset (void *, int, unsigned long);
27798 #define bzero nonexistent_bzero
27803 void bzero (void *, unsigned long);
27812 if ac_fn_c_try_link "$LINENO"; then :
27815 gl_cv_header_sys_select_h_selfcontained=no
27817 rm -f core conftest.err conftest.$ac_objext \
27818 conftest$ac_exeext conftest.$ac_ext
27821 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_sys_select_h_selfcontained" >&5
27826 $as_echo "$gl_cv_header_sys_select_h_selfcontained" >&6; }
27842 if test $gl_cv_have_include_next = yes; then
27843 gl_cv_next_sys_select_h='<'sys/select.h'>'
27845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/select.h>" >&5
27846 $as_echo_n "checking absolute name of <sys/select.h>... " >&6; }
27847 if ${gl_cv_next_sys_select_h+:} false; then :
27848 $as_echo_n "(cached) " >&6
27851 if test $ac_cv_header_sys_select_h = yes; then
27856 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27857 /* end confdefs.h. */
27858 #include <sys/select.h>
27861 aix*) gl_absname_cpp="$ac_cpp -C" ;;
27862 *) gl_absname_cpp="$ac_cpp" ;;
27867 gl_dirsep_regex='[/\\]'
27870 gl_dirsep_regex='\/'
27873 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
27874 gl_header_literal_regex=`echo 'sys/select.h' \
27875 | sed -e "$gl_make_literal_regex_sed"`
27876 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
27877 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
27883 gl_cv_absolute_sys_select_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
27884 sed -n "$gl_absolute_header_sed"`
27886 gl_header=$gl_cv_absolute_sys_select_h
27887 gl_cv_next_sys_select_h='"'$gl_header'"'
27889 gl_cv_next_sys_select_h='<'sys/select.h'>'
27894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_select_h" >&5
27895 $as_echo "$gl_cv_next_sys_select_h" >&6; }
27897 NEXT_SYS_SELECT_H=$gl_cv_next_sys_select_h
27899 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
27900 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
27901 gl_next_as_first_directive='<'sys/select.h'>'
27903 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
27904 gl_next_as_first_directive=$gl_cv_next_sys_select_h
27906 NEXT_AS_FIRST_DIRECTIVE_SYS_SELECT_H=$gl_next_as_first_directive
27911 if test $ac_cv_header_sys_select_h = yes; then
27912 HAVE_SYS_SELECT_H=1
27914 HAVE_SYS_SELECT_H=0
27927 if test $ac_cv_header_sys_socket_h != yes; then
27928 for ac_header in winsock2.h
27930 ac_fn_c_check_header_mongrel "$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
27931 if test "x$ac_cv_header_winsock2_h" = xyes; then :
27932 cat >>confdefs.h <<_ACEOF
27933 #define HAVE_WINSOCK2_H 1
27941 if test "$ac_cv_header_winsock2_h" = yes; then
27943 UNISTD_H_HAVE_WINSOCK2_H=1
27944 SYS_IOCTL_H_HAVE_WINSOCK2_H=1
27952 for gl_func in pselect select; do
27953 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
27954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
27955 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
27956 if eval \${$as_gl_Symbol+:} false; then :
27957 $as_echo_n "(cached) " >&6
27959 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27960 /* end confdefs.h. */
27962 /* Some systems require prerequisite headers. */
27963 #include <sys/types.h>
27964 #if !(defined __GLIBC__ && !defined __UCLIBC__) && HAVE_SYS_TIME_H
27965 # include <sys/time.h>
27967 #include <sys/select.h>
27978 if ac_fn_c_try_compile "$LINENO"; then :
27979 eval "$as_gl_Symbol=yes"
27981 eval "$as_gl_Symbol=no"
27983 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27985 eval ac_res=\$$as_gl_Symbol
27986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
27987 $as_echo "$ac_res" >&6; }
27988 if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
27989 cat >>confdefs.h <<_ACEOF
27990 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
27993 eval ac_cv_have_decl_$gl_func=yes
27999 ac_fn_c_check_decl "$LINENO" "setenv" "ac_cv_have_decl_setenv" "$ac_includes_default"
28000 if test "x$ac_cv_have_decl_setenv" = xyes; then :
28006 cat >>confdefs.h <<_ACEOF
28007 #define HAVE_DECL_SETENV $ac_have_decl
28025 if test $ac_cv_have_decl_setenv = no; then
28045 for ac_header in search.h
28047 ac_fn_c_check_header_mongrel "$LINENO" "search.h" "ac_cv_header_search_h" "$ac_includes_default"
28048 if test "x$ac_cv_header_search_h" = xyes; then :
28049 cat >>confdefs.h <<_ACEOF
28050 #define HAVE_SEARCH_H 1
28057 for ac_func in tsearch
28059 ac_fn_c_check_func "$LINENO" "tsearch" "ac_cv_func_tsearch"
28060 if test "x$ac_cv_func_tsearch" = xyes; then :
28061 cat >>confdefs.h <<_ACEOF
28062 #define HAVE_TSEARCH 1
28071 GNULIB_PTHREAD_SIGMASK=0;
28073 GNULIB_SIGNAL_H_SIGPIPE=0;
28074 GNULIB_SIGPROCMASK=0;
28075 GNULIB_SIGACTION=0;
28076 HAVE_POSIX_SIGNALBLOCKING=1;
28077 HAVE_PTHREAD_SIGMASK=1;
28082 HAVE_STRUCT_SIGACTION_SA_SIGACTION=1;
28084 HAVE_TYPE_VOLATILE_SIG_ATOMIC_T=1;
28086 HAVE_SIGHANDLER_T=1;
28087 REPLACE_PTHREAD_SIGMASK=0;
28091 ac_fn_c_check_type "$LINENO" "sigset_t" "ac_cv_type_sigset_t" "
28092 #include <signal.h>
28093 /* Mingw defines sigset_t not in <signal.h>, but in <sys/types.h>. */
28094 #include <sys/types.h>
28097 if test "x$ac_cv_type_sigset_t" = xyes; then :
28099 cat >>confdefs.h <<_ACEOF
28100 #define HAVE_SIGSET_T 1
28103 gl_cv_type_sigset_t=yes
28105 gl_cv_type_sigset_t=no
28108 if test $gl_cv_type_sigset_t != yes; then
28112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
28113 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
28114 if ${ac_cv_type_uid_t+:} false; then :
28115 $as_echo_n "(cached) " >&6
28117 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28118 /* end confdefs.h. */
28119 #include <sys/types.h>
28122 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28123 $EGREP "uid_t" >/dev/null 2>&1; then :
28124 ac_cv_type_uid_t=yes
28126 ac_cv_type_uid_t=no
28131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
28132 $as_echo "$ac_cv_type_uid_t" >&6; }
28133 if test $ac_cv_type_uid_t = no; then
28135 $as_echo "#define uid_t int" >>confdefs.h
28138 $as_echo "#define gid_t int" >>confdefs.h
28148 ac_fn_c_check_decl "$LINENO" "strdup" "ac_cv_have_decl_strdup" "$ac_includes_default"
28149 if test "x$ac_cv_have_decl_strdup" = xyes; then :
28155 cat >>confdefs.h <<_ACEOF
28156 #define HAVE_DECL_STRDUP $ac_have_decl
28161 REPLACE_STRERROR_0=0
28162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strerror(0) succeeds" >&5
28163 $as_echo_n "checking whether strerror(0) succeeds... " >&6; }
28164 if ${gl_cv_func_strerror_0_works+:} false; then :
28165 $as_echo_n "(cached) " >&6
28167 if test "$cross_compiling" = yes; then :
28169 # Guess yes on glibc systems.
28170 *-gnu*) gl_cv_func_strerror_0_works="guessing yes" ;;
28171 # If we don't know, assume the worst.
28172 *) gl_cv_func_strerror_0_works="guessing no" ;;
28176 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28177 /* end confdefs.h. */
28178 #include <string.h>
28187 str = strerror (0);
28188 if (!*str) result |= 1;
28189 if (errno) result |= 2;
28190 if (strstr (str, "nknown") || strstr (str, "ndefined"))
28197 if ac_fn_c_try_run "$LINENO"; then :
28198 gl_cv_func_strerror_0_works=yes
28200 gl_cv_func_strerror_0_works=no
28202 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
28203 conftest.$ac_objext conftest.beam conftest.$ac_ext
28208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_strerror_0_works" >&5
28209 $as_echo "$gl_cv_func_strerror_0_works" >&6; }
28210 case "$gl_cv_func_strerror_0_works" in
28213 REPLACE_STRERROR_0=1
28215 $as_echo "#define REPLACE_STRERROR_0 1" >>confdefs.h
28221 ac_fn_c_check_decl "$LINENO" "unsetenv" "ac_cv_have_decl_unsetenv" "$ac_includes_default"
28222 if test "x$ac_cv_have_decl_unsetenv" = xyes; then :
28228 cat >>confdefs.h <<_ACEOF
28229 #define HAVE_DECL_UNSETENV $ac_have_decl
28235 GL_COND_LIBTOOL_TRUE=
28236 GL_COND_LIBTOOL_FALSE='#'
28238 GL_COND_LIBTOOL_TRUE='#'
28239 GL_COND_LIBTOOL_FALSE=
28242 gl_cond_libtool=true
28243 gl_m4_base='src/gl/m4'
28253 gl_source_base='src/gl'
28255 if test "$ac_cv_header_winsock2_h" = yes; then
28264 ggl_LIBOBJS="$ggl_LIBOBJS accept.$ac_objext"
28278 $as_echo "#define GNULIB_TEST_ACCEPT 1" >>confdefs.h
28282 LTALLOCA=`echo "$ALLOCA" | sed -e 's/\.[^.]* /.lo /g;s/\.[^.]*$/.lo/'`
28286 if test $ac_cv_func_alloca_works = no; then
28290 # Define an additional variable used in the Makefile substitution.
28291 if test $ac_cv_working_alloca_h = yes; then
28292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca as a compiler built-in" >&5
28293 $as_echo_n "checking for alloca as a compiler built-in... " >&6; }
28294 if ${gl_cv_rpl_alloca+:} false; then :
28295 $as_echo_n "(cached) " >&6
28298 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28299 /* end confdefs.h. */
28301 #if defined __GNUC__ || defined _AIX || defined _MSC_VER
28306 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28307 $EGREP "Need own alloca" >/dev/null 2>&1; then :
28308 gl_cv_rpl_alloca=yes
28310 gl_cv_rpl_alloca=no
28316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_rpl_alloca" >&5
28317 $as_echo "$gl_cv_rpl_alloca" >&6; }
28318 if test $gl_cv_rpl_alloca = yes; then
28320 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
28330 if test -n "$ALLOCA_H"; then
28331 GL_GENERATE_ALLOCA_H_TRUE=
28332 GL_GENERATE_ALLOCA_H_FALSE='#'
28334 GL_GENERATE_ALLOCA_H_TRUE='#'
28335 GL_GENERATE_ALLOCA_H_FALSE=
28349 if test $ac_cv_header_arpa_inet_h = yes; then
28370 if test $gl_cv_have_include_next = yes; then
28371 gl_cv_next_arpa_inet_h='<'arpa/inet.h'>'
28373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <arpa/inet.h>" >&5
28374 $as_echo_n "checking absolute name of <arpa/inet.h>... " >&6; }
28375 if ${gl_cv_next_arpa_inet_h+:} false; then :
28376 $as_echo_n "(cached) " >&6
28379 if test $ac_cv_header_arpa_inet_h = yes; then
28384 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28385 /* end confdefs.h. */
28386 #include <arpa/inet.h>
28389 aix*) gl_absname_cpp="$ac_cpp -C" ;;
28390 *) gl_absname_cpp="$ac_cpp" ;;
28395 gl_dirsep_regex='[/\\]'
28398 gl_dirsep_regex='\/'
28401 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
28402 gl_header_literal_regex=`echo 'arpa/inet.h' \
28403 | sed -e "$gl_make_literal_regex_sed"`
28404 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
28405 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
28411 gl_cv_absolute_arpa_inet_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
28412 sed -n "$gl_absolute_header_sed"`
28414 gl_header=$gl_cv_absolute_arpa_inet_h
28415 gl_cv_next_arpa_inet_h='"'$gl_header'"'
28417 gl_cv_next_arpa_inet_h='<'arpa/inet.h'>'
28422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_arpa_inet_h" >&5
28423 $as_echo "$gl_cv_next_arpa_inet_h" >&6; }
28425 NEXT_ARPA_INET_H=$gl_cv_next_arpa_inet_h
28427 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
28428 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
28429 gl_next_as_first_directive='<'arpa/inet.h'>'
28431 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
28432 gl_next_as_first_directive=$gl_cv_next_arpa_inet_h
28434 NEXT_AS_FIRST_DIRECTIVE_ARPA_INET_H=$gl_next_as_first_directive
28443 for gl_func in inet_ntop inet_pton; do
28444 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
28445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
28446 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
28447 if eval \${$as_gl_Symbol+:} false; then :
28448 $as_echo_n "(cached) " >&6
28450 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28451 /* end confdefs.h. */
28453 /* On some systems, this header is not self-consistent. */
28454 #if !(defined __GLIBC__ || defined __UCLIBC__)
28455 # include <sys/socket.h>
28458 # include <netdb.h>
28460 #include <arpa/inet.h>
28471 if ac_fn_c_try_compile "$LINENO"; then :
28472 eval "$as_gl_Symbol=yes"
28474 eval "$as_gl_Symbol=no"
28476 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28478 eval ac_res=\$$as_gl_Symbol
28479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
28480 $as_echo "$ac_res" >&6; }
28481 if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
28482 cat >>confdefs.h <<_ACEOF
28483 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
28486 eval ac_cv_have_decl_$gl_func=yes
28493 if test "$ac_cv_header_winsock2_h" = yes; then
28502 ggl_LIBOBJS="$ggl_LIBOBJS bind.$ac_objext"
28516 $as_echo "#define GNULIB_TEST_BIND 1" >>confdefs.h
28523 # Solaris 2.5.1 needs -lposix4 to get the clock_gettime function.
28524 # Solaris 7 prefers the library name -lrt to the obsolescent name -lposix4.
28526 # Save and restore LIBS so e.g., -lrt, isn't added to it. Otherwise, *all*
28527 # programs in the package would end up linked with that potentially-shared
28528 # library, inducing unnecessary run-time overhead.
28531 gl_saved_libs=$LIBS
28532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
28533 $as_echo_n "checking for library containing clock_gettime... " >&6; }
28534 if ${ac_cv_search_clock_gettime+:} false; then :
28535 $as_echo_n "(cached) " >&6
28537 ac_func_search_save_LIBS=$LIBS
28538 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28539 /* end confdefs.h. */
28541 /* Override any GCC internal prototype to avoid an error.
28542 Use char because int might match the return type of a GCC
28543 builtin and then its argument prototype would still apply. */
28547 char clock_gettime ();
28551 return clock_gettime ();
28556 for ac_lib in '' rt posix4; do
28557 if test -z "$ac_lib"; then
28558 ac_res="none required"
28561 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
28563 if ac_fn_c_try_link "$LINENO"; then :
28564 ac_cv_search_clock_gettime=$ac_res
28566 rm -f core conftest.err conftest.$ac_objext \
28568 if ${ac_cv_search_clock_gettime+:} false; then :
28572 if ${ac_cv_search_clock_gettime+:} false; then :
28575 ac_cv_search_clock_gettime=no
28577 rm conftest.$ac_ext
28578 LIBS=$ac_func_search_save_LIBS
28580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
28581 $as_echo "$ac_cv_search_clock_gettime" >&6; }
28582 ac_res=$ac_cv_search_clock_gettime
28583 if test "$ac_res" != no; then :
28584 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28585 test "$ac_cv_search_clock_gettime" = "none required" ||
28586 LIB_CLOCK_GETTIME=$ac_cv_search_clock_gettime
28589 for ac_func in clock_gettime clock_settime
28591 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
28592 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
28593 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
28594 cat >>confdefs.h <<_ACEOF
28595 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
28601 LIBS=$gl_saved_libs
28606 if test $HAVE_MSVC_INVALID_PARAMETER_HANDLER = 1; then
28620 if test $ac_cv_header_sys_socket_h != yes; then
28621 for ac_header in winsock2.h
28623 ac_fn_c_check_header_mongrel "$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
28624 if test "x$ac_cv_header_winsock2_h" = xyes; then :
28625 cat >>confdefs.h <<_ACEOF
28626 #define HAVE_WINSOCK2_H 1
28634 if test "$ac_cv_header_winsock2_h" = yes; then
28636 UNISTD_H_HAVE_WINSOCK2_H=1
28637 SYS_IOCTL_H_HAVE_WINSOCK2_H=1
28643 if test $UNISTD_H_HAVE_WINSOCK2_H = 1; then
28649 if test $REPLACE_CLOSE = 1; then
28658 ggl_LIBOBJS="$ggl_LIBOBJS close.$ac_objext"
28672 $as_echo "#define GNULIB_TEST_CLOSE 1" >>confdefs.h
28677 if test "$ac_cv_header_winsock2_h" = yes; then
28686 ggl_LIBOBJS="$ggl_LIBOBJS connect.$ac_objext"
28700 $as_echo "#define GNULIB_TEST_CONNECT 1" >>confdefs.h
28716 $as_echo "#define HAVE_DUP2 1" >>confdefs.h
28719 if test $HAVE_DUP2 = 1; then
28720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether dup2 works" >&5
28721 $as_echo_n "checking whether dup2 works... " >&6; }
28722 if ${gl_cv_func_dup2_works+:} false; then :
28723 $as_echo_n "(cached) " >&6
28725 if test "$cross_compiling" = yes; then :
28727 mingw*) # on this platform, dup2 always returns 0 for success
28728 gl_cv_func_dup2_works="guessing no" ;;
28729 cygwin*) # on cygwin 1.5.x, dup2(1,1) returns 0
28730 gl_cv_func_dup2_works="guessing no" ;;
28731 linux*) # On linux between 2008-07-27 and 2009-05-11, dup2 of a
28732 # closed fd may yield -EBADF instead of -1 / errno=EBADF.
28733 gl_cv_func_dup2_works="guessing no" ;;
28735 # on AIX 7.1 and FreeBSD 6.1, dup2 (1,toobig) gives EMFILE,
28737 gl_cv_func_dup2_works="guessing no" ;;
28738 haiku*) # on Haiku alpha 2, dup2(1, 1) resets FD_CLOEXEC.
28739 gl_cv_func_dup2_works="guessing no" ;;
28740 *) gl_cv_func_dup2_works="guessing yes" ;;
28743 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28744 /* end confdefs.h. */
28746 #include <unistd.h>
28753 #ifdef HAVE_GETDTABLESIZE
28754 int bad_fd = getdtablesize ();
28756 int bad_fd = 1000000;
28759 if (fcntl (1, F_SETFD, FD_CLOEXEC) == -1)
28762 if (dup2 (1, 1) == 0)
28765 if (fcntl (1, F_GETFD) != FD_CLOEXEC)
28769 if (dup2 (0, 0) != -1)
28771 /* Many gnulib modules require POSIX conformance of EBADF. */
28772 if (dup2 (2, bad_fd) == -1 && errno != EBADF)
28774 /* Flush out some cygwin core dumps. */
28775 if (dup2 (2, -1) != -1 || errno != EBADF)
28786 if ac_fn_c_try_run "$LINENO"; then :
28787 gl_cv_func_dup2_works=yes
28789 gl_cv_func_dup2_works=no
28791 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
28792 conftest.$ac_objext conftest.beam conftest.$ac_ext
28797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_dup2_works" >&5
28798 $as_echo "$gl_cv_func_dup2_works" >&6; }
28799 case "$gl_cv_func_dup2_works" in
28803 for ac_func in setdtablesize
28805 ac_fn_c_check_func "$LINENO" "setdtablesize" "ac_cv_func_setdtablesize"
28806 if test "x$ac_cv_func_setdtablesize" = xyes; then :
28807 cat >>confdefs.h <<_ACEOF
28808 #define HAVE_SETDTABLESIZE 1
28819 if test $HAVE_DUP2 = 0 || test $REPLACE_DUP2 = 1; then
28828 ggl_LIBOBJS="$ggl_LIBOBJS dup2.$ac_objext"
28843 $as_echo "#define GNULIB_TEST_DUP2 1" >>confdefs.h
28859 $as_echo "#define GNULIB_TEST_ENVIRON 1" >>confdefs.h
28865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for error_at_line" >&5
28866 $as_echo_n "checking for error_at_line... " >&6; }
28867 if ${ac_cv_lib_error_at_line+:} false; then :
28868 $as_echo_n "(cached) " >&6
28870 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28871 /* end confdefs.h. */
28876 error_at_line (0, 0, "", 0, "an error occurred");
28881 if ac_fn_c_try_link "$LINENO"; then :
28882 ac_cv_lib_error_at_line=yes
28884 ac_cv_lib_error_at_line=no
28886 rm -f core conftest.err conftest.$ac_objext \
28887 conftest$ac_exeext conftest.$ac_ext
28889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_error_at_line" >&5
28890 $as_echo "$ac_cv_lib_error_at_line" >&6; }
28892 if test $ac_cv_lib_error_at_line = no; then
28901 ggl_LIBOBJS="$ggl_LIBOBJS error.$ac_objext"
28910 XGETTEXT_EXTRA_OPTIONS="$XGETTEXT_EXTRA_OPTIONS --flag=error:3:c-format"
28914 XGETTEXT_EXTRA_OPTIONS="$XGETTEXT_EXTRA_OPTIONS --flag=error_at_line:5:c-format"
28921 REPLACE_FLOAT_LDBL=0
28923 aix* | beos* | openbsd* | mirbsd* | irix*)
28927 case "$host_cpu" in
28932 # On x86_64 systems, the C compiler may still be generating
28934 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28935 /* end confdefs.h. */
28936 #if defined __LP64__ || defined __x86_64__ || defined __amd64__
28940 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28941 $EGREP "yes" >/dev/null 2>&1; then :
28952 case "$host_cpu" in
28960 aix* | freebsd* | linux*)
28961 if test -n "$FLOAT_H"; then
28962 REPLACE_FLOAT_LDBL=1
28968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether conversion from 'int' to 'long double' works" >&5
28969 $as_echo_n "checking whether conversion from 'int' to 'long double' works... " >&6; }
28970 if ${gl_cv_func_itold_works+:} false; then :
28971 $as_echo_n "(cached) " >&6
28974 if test "$cross_compiling" = yes; then :
28977 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28978 /* end confdefs.h. */
28979 #if defined __LP64__ || defined __arch64__
28983 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28984 $EGREP "yes" >/dev/null 2>&1; then :
28985 gl_cv_func_itold_works="guessing no"
28987 gl_cv_func_itold_works="guessing yes"
28992 *) gl_cv_func_itold_works="guessing yes" ;;
28996 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28997 /* end confdefs.h. */
29000 volatile long double ld;
29009 if ac_fn_c_try_run "$LINENO"; then :
29010 gl_cv_func_itold_works=yes
29012 gl_cv_func_itold_works=no
29014 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
29015 conftest.$ac_objext conftest.beam conftest.$ac_ext
29020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_itold_works" >&5
29021 $as_echo "$gl_cv_func_itold_works" >&6; }
29022 case "$gl_cv_func_itold_works" in
29029 if test -n "$FLOAT_H"; then
29038 if test $gl_cv_have_include_next = yes; then
29039 gl_cv_next_float_h='<'float.h'>'
29041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <float.h>" >&5
29042 $as_echo_n "checking absolute name of <float.h>... " >&6; }
29043 if ${gl_cv_next_float_h+:} false; then :
29044 $as_echo_n "(cached) " >&6
29049 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29050 /* end confdefs.h. */
29054 aix*) gl_absname_cpp="$ac_cpp -C" ;;
29055 *) gl_absname_cpp="$ac_cpp" ;;
29060 gl_dirsep_regex='[/\\]'
29063 gl_dirsep_regex='\/'
29066 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
29067 gl_header_literal_regex=`echo 'float.h' \
29068 | sed -e "$gl_make_literal_regex_sed"`
29069 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
29070 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
29076 gl_cv_absolute_float_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
29077 sed -n "$gl_absolute_header_sed"`
29079 gl_header=$gl_cv_absolute_float_h
29080 gl_cv_next_float_h='"'$gl_header'"'
29084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_float_h" >&5
29085 $as_echo "$gl_cv_next_float_h" >&6; }
29087 NEXT_FLOAT_H=$gl_cv_next_float_h
29089 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
29090 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
29091 gl_next_as_first_directive='<'float.h'>'
29093 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
29094 gl_next_as_first_directive=$gl_cv_next_float_h
29096 NEXT_AS_FIRST_DIRECTIVE_FLOAT_H=$gl_next_as_first_directive
29103 if test -n "$FLOAT_H"; then
29104 GL_GENERATE_FLOAT_H_TRUE=
29105 GL_GENERATE_FLOAT_H_FALSE='#'
29107 GL_GENERATE_FLOAT_H_TRUE='#'
29108 GL_GENERATE_FLOAT_H_FALSE=
29113 if test $REPLACE_FLOAT_LDBL = 1; then
29122 ggl_LIBOBJS="$ggl_LIBOBJS float.$ac_objext"
29125 if test $REPLACE_ITOLD = 1; then
29134 ggl_LIBOBJS="$ggl_LIBOBJS itold.$ac_objext"
29140 if test $HAVE_FSEEKO = 0 || test $REPLACE_FSEEKO = 1; then
29144 if test $REPLACE_FSEEK = 1; then
29153 ggl_LIBOBJS="$ggl_LIBOBJS fseek.$ac_objext"
29167 $as_echo "#define GNULIB_TEST_FSEEK 1" >>confdefs.h
29179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fseeko" >&5
29180 $as_echo_n "checking for fseeko... " >&6; }
29181 if ${gl_cv_func_fseeko+:} false; then :
29182 $as_echo_n "(cached) " >&6
29185 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29186 /* end confdefs.h. */
29192 fseeko (stdin, 0, 0);
29197 if ac_fn_c_try_link "$LINENO"; then :
29198 gl_cv_func_fseeko=yes
29200 gl_cv_func_fseeko=no
29202 rm -f core conftest.err conftest.$ac_objext \
29203 conftest$ac_exeext conftest.$ac_ext
29206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_fseeko" >&5
29207 $as_echo "$gl_cv_func_fseeko" >&6; }
29216 if test $ac_cv_have_decl_fseeko = no; then
29220 if test $gl_cv_func_fseeko = no; then
29223 if test $WINDOWS_64_BIT_OFF_T = 1; then
29226 if test $gl_cv_var_stdin_large_offset = no; then
29232 if test $HAVE_FSEEKO = 0 || test $REPLACE_FSEEKO = 1; then
29241 ggl_LIBOBJS="$ggl_LIBOBJS fseeko.$ac_objext"
29244 for ac_func in _fseeki64
29246 ac_fn_c_check_func "$LINENO" "_fseeki64" "ac_cv_func__fseeki64"
29247 if test "x$ac_cv_func__fseeki64" = xyes; then :
29248 cat >>confdefs.h <<_ACEOF
29249 #define HAVE__FSEEKI64 1
29268 $as_echo "#define GNULIB_TEST_FSEEKO 1" >>confdefs.h
29276 if test $HAVE_MSVC_INVALID_PARAMETER_HANDLER = 1; then
29281 if test $WINDOWS_64_BIT_ST_SIZE = 1; then
29287 if test $REPLACE_FSTAT = 1; then
29296 ggl_LIBOBJS="$ggl_LIBOBJS fstat.$ac_objext"
29311 $as_echo "#define GNULIB_TEST_FSTAT 1" >>confdefs.h
29318 if test $HAVE_FTELLO = 0 || test $REPLACE_FTELLO = 1; then
29322 if test $REPLACE_FTELL = 1; then
29331 ggl_LIBOBJS="$ggl_LIBOBJS ftell.$ac_objext"
29345 $as_echo "#define GNULIB_TEST_FTELL 1" >>confdefs.h
29364 if test $ac_cv_have_decl_ftello = no; then
29368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ftello" >&5
29369 $as_echo_n "checking for ftello... " >&6; }
29370 if ${gl_cv_func_ftello+:} false; then :
29371 $as_echo_n "(cached) " >&6
29374 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29375 /* end confdefs.h. */
29385 if ac_fn_c_try_link "$LINENO"; then :
29386 gl_cv_func_ftello=yes
29388 gl_cv_func_ftello=no
29390 rm -f core conftest.err conftest.$ac_objext \
29391 conftest$ac_exeext conftest.$ac_ext
29394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_ftello" >&5
29395 $as_echo "$gl_cv_func_ftello" >&6; }
29396 if test $gl_cv_func_ftello = no; then
29399 if test $WINDOWS_64_BIT_OFF_T = 1; then
29402 if test $gl_cv_var_stdin_large_offset = no; then
29405 if test $REPLACE_FTELLO = 0; then
29407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ftello works" >&5
29408 $as_echo_n "checking whether ftello works... " >&6; }
29409 if ${gl_cv_func_ftello_works+:} false; then :
29410 $as_echo_n "(cached) " >&6
29414 # Guess no on Solaris.
29415 solaris*) gl_cv_func_ftello_works="guessing no" ;;
29416 # Guess yes otherwise.
29417 *) gl_cv_func_ftello_works="guessing yes" ;;
29419 if test "$cross_compiling" = yes; then :
29422 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29423 /* end confdefs.h. */
29426 #include <stdlib.h>
29427 #include <string.h>
29428 #define TESTFILE "conftest.tmp"
29434 /* Create a file with some contents. */
29435 fp = fopen (TESTFILE, "w");
29438 if (fwrite ("foogarsh", 1, 8, fp) < 8)
29443 /* The file's contents is now "foogarsh". */
29445 /* Try writing after reading to EOF. */
29446 fp = fopen (TESTFILE, "r+");
29449 if (fseek (fp, -1, SEEK_END))
29451 if (!(getc (fp) == 'h'))
29453 if (!(getc (fp) == EOF))
29455 if (!(ftell (fp) == 8))
29457 if (!(ftell (fp) == 8))
29459 if (!(putc ('!', fp) == '!'))
29461 if (!(ftell (fp) == 9))
29463 if (!(fclose (fp) == 0))
29465 fp = fopen (TESTFILE, "r");
29470 if (!(fread (buf, 1, 10, fp) == 9))
29472 if (!(memcmp (buf, "foogarsh!", 9) == 0))
29475 if (!(fclose (fp) == 0))
29478 /* The file's contents is now "foogarsh!". */
29483 if ac_fn_c_try_run "$LINENO"; then :
29484 gl_cv_func_ftello_works=yes
29486 gl_cv_func_ftello_works=no
29488 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
29489 conftest.$ac_objext conftest.beam conftest.$ac_ext
29494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_ftello_works" >&5
29495 $as_echo "$gl_cv_func_ftello_works" >&6; }
29496 case "$gl_cv_func_ftello_works" in
29501 $as_echo "#define FTELLO_BROKEN_AFTER_SWITCHING_FROM_READ_TO_WRITE 1" >>confdefs.h
29508 if test $HAVE_FTELLO = 0 || test $REPLACE_FTELLO = 1; then
29517 ggl_LIBOBJS="$ggl_LIBOBJS ftello.$ac_objext"
29520 for ac_func in _ftelli64
29522 ac_fn_c_check_func "$LINENO" "_ftelli64" "ac_cv_func__ftelli64"
29523 if test "x$ac_cv_func__ftelli64" = xyes; then :
29524 cat >>confdefs.h <<_ACEOF
29525 #define HAVE__FTELLI64 1
29544 $as_echo "#define GNULIB_TEST_FTELLO 1" >>confdefs.h
29549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to do getaddrinfo, freeaddrinfo and getnameinfo" >&5
29550 $as_echo "$as_me: checking how to do getaddrinfo, freeaddrinfo and getnameinfo" >&6;}
29552 gai_saved_LIBS="$LIBS"
29554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getaddrinfo" >&5
29555 $as_echo_n "checking for library containing getaddrinfo... " >&6; }
29556 if ${ac_cv_search_getaddrinfo+:} false; then :
29557 $as_echo_n "(cached) " >&6
29559 ac_func_search_save_LIBS=$LIBS
29560 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29561 /* end confdefs.h. */
29563 /* Override any GCC internal prototype to avoid an error.
29564 Use char because int might match the return type of a GCC
29565 builtin and then its argument prototype would still apply. */
29569 char getaddrinfo ();
29573 return getaddrinfo ();
29578 for ac_lib in '' socket network net; do
29579 if test -z "$ac_lib"; then
29580 ac_res="none required"
29583 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
29585 if ac_fn_c_try_link "$LINENO"; then :
29586 ac_cv_search_getaddrinfo=$ac_res
29588 rm -f core conftest.err conftest.$ac_objext \
29590 if ${ac_cv_search_getaddrinfo+:} false; then :
29594 if ${ac_cv_search_getaddrinfo+:} false; then :
29597 ac_cv_search_getaddrinfo=no
29599 rm conftest.$ac_ext
29600 LIBS=$ac_func_search_save_LIBS
29602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getaddrinfo" >&5
29603 $as_echo "$ac_cv_search_getaddrinfo" >&6; }
29604 ac_res=$ac_cv_search_getaddrinfo
29605 if test "$ac_res" != no; then :
29606 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
29607 if test "$ac_cv_search_getaddrinfo" != "none required"; then
29608 GETADDRINFO_LIB="$ac_cv_search_getaddrinfo"
29612 LIBS="$gai_saved_LIBS $GETADDRINFO_LIB"
29615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getaddrinfo" >&5
29616 $as_echo_n "checking for getaddrinfo... " >&6; }
29617 if ${gl_cv_func_getaddrinfo+:} false; then :
29618 $as_echo_n "(cached) " >&6
29621 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29622 /* end confdefs.h. */
29624 #include <sys/types.h>
29625 #ifdef HAVE_SYS_SOCKET_H
29626 #include <sys/socket.h>
29628 #ifdef HAVE_NETDB_H
29631 #include <stddef.h>
29636 getaddrinfo("", "", NULL, NULL);
29641 if ac_fn_c_try_link "$LINENO"; then :
29642 gl_cv_func_getaddrinfo=yes
29644 gl_cv_func_getaddrinfo=no
29646 rm -f core conftest.err conftest.$ac_objext \
29647 conftest$ac_exeext conftest.$ac_ext
29649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getaddrinfo" >&5
29650 $as_echo "$gl_cv_func_getaddrinfo" >&6; }
29651 if test $gl_cv_func_getaddrinfo = no; then
29652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getaddrinfo in ws2tcpip.h and -lws2_32" >&5
29653 $as_echo_n "checking for getaddrinfo in ws2tcpip.h and -lws2_32... " >&6; }
29654 if ${gl_cv_w32_getaddrinfo+:} false; then :
29655 $as_echo_n "(cached) " >&6
29658 gl_cv_w32_getaddrinfo=no
29659 am_save_LIBS="$LIBS"
29660 LIBS="$LIBS -lws2_32"
29661 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29662 /* end confdefs.h. */
29664 #ifdef HAVE_WS2TCPIP_H
29665 #include <ws2tcpip.h>
29667 #include <stddef.h>
29672 getaddrinfo(NULL, NULL, NULL, NULL);
29677 if ac_fn_c_try_link "$LINENO"; then :
29678 gl_cv_w32_getaddrinfo=yes
29680 rm -f core conftest.err conftest.$ac_objext \
29681 conftest$ac_exeext conftest.$ac_ext
29682 LIBS="$am_save_LIBS"
29685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_w32_getaddrinfo" >&5
29686 $as_echo "$gl_cv_w32_getaddrinfo" >&6; }
29687 if test "$gl_cv_w32_getaddrinfo" = "yes"; then
29688 GETADDRINFO_LIB="-lws2_32"
29689 LIBS="$gai_saved_LIBS $GETADDRINFO_LIB"
29695 # We can't use AC_REPLACE_FUNCS here because gai_strerror may be an
29696 # inline function declared in ws2tcpip.h, so we need to get that
29697 # header included somehow.
29698 ac_fn_c_check_decl "$LINENO" "gai_strerror" "ac_cv_have_decl_gai_strerror" "
29699 #include <sys/types.h>
29700 #ifdef HAVE_SYS_SOCKET_H
29701 #include <sys/socket.h>
29703 #ifdef HAVE_NETDB_H
29706 #ifdef HAVE_WS2TCPIP_H
29707 #include <ws2tcpip.h>
29709 #include <stddef.h>
29712 if test "x$ac_cv_have_decl_gai_strerror" = xyes; then :
29718 cat >>confdefs.h <<_ACEOF
29719 #define HAVE_DECL_GAI_STRERROR $ac_have_decl
29722 if test $ac_cv_have_decl_gai_strerror = yes; then
29723 ac_fn_c_check_decl "$LINENO" "gai_strerrorA" "ac_cv_have_decl_gai_strerrorA" "
29724 #include <sys/types.h>
29725 #ifdef HAVE_SYS_SOCKET_H
29726 #include <sys/socket.h>
29728 #ifdef HAVE_NETDB_H
29731 #ifdef HAVE_WS2TCPIP_H
29732 #include <ws2tcpip.h>
29734 #include <stddef.h>
29737 if test "x$ac_cv_have_decl_gai_strerrorA" = xyes; then :
29743 cat >>confdefs.h <<_ACEOF
29744 #define HAVE_DECL_GAI_STRERRORA $ac_have_decl
29747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gai_strerror with POSIX signature" >&5
29748 $as_echo_n "checking for gai_strerror with POSIX signature... " >&6; }
29749 if ${gl_cv_func_gai_strerror_posix_signature+:} false; then :
29750 $as_echo_n "(cached) " >&6
29753 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29754 /* end confdefs.h. */
29756 #include <sys/types.h>
29757 #ifdef HAVE_SYS_SOCKET_H
29758 #include <sys/socket.h>
29760 #ifdef HAVE_NETDB_H
29763 #ifdef HAVE_WS2TCPIP_H
29764 #include <ws2tcpip.h>
29766 #include <stddef.h>
29771 const char *gai_strerror(int);
29773 if ac_fn_c_try_compile "$LINENO"; then :
29774 gl_cv_func_gai_strerror_posix_signature=yes
29776 gl_cv_func_gai_strerror_posix_signature=no
29778 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_gai_strerror_posix_signature" >&5
29781 $as_echo "$gl_cv_func_gai_strerror_posix_signature" >&6; }
29782 if test $gl_cv_func_gai_strerror_posix_signature = no; then
29783 REPLACE_GAI_STRERROR=1
29787 LIBS="$gai_saved_LIBS"
29796 ac_fn_c_check_member "$LINENO" "struct sockaddr" "sa_len" "ac_cv_member_struct_sockaddr_sa_len" "
29797 #include <sys/types.h>
29798 #include <sys/socket.h>
29801 if test "x$ac_cv_member_struct_sockaddr_sa_len" = xyes; then :
29803 cat >>confdefs.h <<_ACEOF
29804 #define HAVE_STRUCT_SOCKADDR_SA_LEN 1
29819 ac_fn_c_check_decl "$LINENO" "getaddrinfo" "ac_cv_have_decl_getaddrinfo" "
29820 /* sys/types.h is not needed according to POSIX, but the
29821 sys/socket.h in i386-unknown-freebsd4.10 and
29822 powerpc-apple-darwin5.5 required it. */
29823 #include <sys/types.h>
29824 #ifdef HAVE_SYS_SOCKET_H
29825 #include <sys/socket.h>
29827 #ifdef HAVE_NETDB_H
29830 #ifdef HAVE_WS2TCPIP_H
29831 #include <ws2tcpip.h>
29835 if test "x$ac_cv_have_decl_getaddrinfo" = xyes; then :
29841 cat >>confdefs.h <<_ACEOF
29842 #define HAVE_DECL_GETADDRINFO $ac_have_decl
29844 ac_fn_c_check_decl "$LINENO" "freeaddrinfo" "ac_cv_have_decl_freeaddrinfo" "
29845 /* sys/types.h is not needed according to POSIX, but the
29846 sys/socket.h in i386-unknown-freebsd4.10 and
29847 powerpc-apple-darwin5.5 required it. */
29848 #include <sys/types.h>
29849 #ifdef HAVE_SYS_SOCKET_H
29850 #include <sys/socket.h>
29852 #ifdef HAVE_NETDB_H
29855 #ifdef HAVE_WS2TCPIP_H
29856 #include <ws2tcpip.h>
29860 if test "x$ac_cv_have_decl_freeaddrinfo" = xyes; then :
29866 cat >>confdefs.h <<_ACEOF
29867 #define HAVE_DECL_FREEADDRINFO $ac_have_decl
29869 ac_fn_c_check_decl "$LINENO" "getnameinfo" "ac_cv_have_decl_getnameinfo" "
29870 /* sys/types.h is not needed according to POSIX, but the
29871 sys/socket.h in i386-unknown-freebsd4.10 and
29872 powerpc-apple-darwin5.5 required it. */
29873 #include <sys/types.h>
29874 #ifdef HAVE_SYS_SOCKET_H
29875 #include <sys/socket.h>
29877 #ifdef HAVE_NETDB_H
29880 #ifdef HAVE_WS2TCPIP_H
29881 #include <ws2tcpip.h>
29885 if test "x$ac_cv_have_decl_getnameinfo" = xyes; then :
29891 cat >>confdefs.h <<_ACEOF
29892 #define HAVE_DECL_GETNAMEINFO $ac_have_decl
29895 if test $ac_cv_have_decl_getaddrinfo = no; then
29896 HAVE_DECL_GETADDRINFO=0
29898 if test $ac_cv_have_decl_freeaddrinfo = no; then
29899 HAVE_DECL_FREEADDRINFO=0
29901 if test $ac_cv_have_decl_gai_strerror = no; then
29902 HAVE_DECL_GAI_STRERROR=0
29904 if test $ac_cv_have_decl_getnameinfo = no; then
29905 HAVE_DECL_GETNAMEINFO=0
29908 ac_fn_c_check_type "$LINENO" "struct addrinfo" "ac_cv_type_struct_addrinfo" "
29909 #include <sys/types.h>
29910 #ifdef HAVE_SYS_SOCKET_H
29911 #include <sys/socket.h>
29913 #ifdef HAVE_NETDB_H
29916 #ifdef HAVE_WS2TCPIP_H
29917 #include <ws2tcpip.h>
29921 if test "x$ac_cv_type_struct_addrinfo" = xyes; then :
29923 cat >>confdefs.h <<_ACEOF
29924 #define HAVE_STRUCT_ADDRINFO 1
29930 if test $ac_cv_type_struct_addrinfo = no; then
29931 HAVE_STRUCT_ADDRINFO=0
29934 case " $GETADDRINFO_LIB " in
29935 *" $HOSTENT_LIB "*) ;;
29936 *) GETADDRINFO_LIB="$GETADDRINFO_LIB $HOSTENT_LIB" ;;
29939 case " $GETADDRINFO_LIB " in
29940 *" $SERVENT_LIB "*) ;;
29941 *) GETADDRINFO_LIB="$GETADDRINFO_LIB $SERVENT_LIB" ;;
29944 case " $GETADDRINFO_LIB " in
29945 *" $INET_NTOP_LIB "*) ;;
29946 *) GETADDRINFO_LIB="$GETADDRINFO_LIB $INET_NTOP_LIB" ;;
29952 if test $HAVE_GETADDRINFO = 0; then
29961 ggl_LIBOBJS="$ggl_LIBOBJS getaddrinfo.$ac_objext"
29964 if test $HAVE_DECL_GAI_STRERROR = 0 || test $REPLACE_GAI_STRERROR = 1; then
29973 ggl_LIBOBJS="$ggl_LIBOBJS gai_strerror.$ac_objext"
29981 GNULIB_GETADDRINFO=1
29987 $as_echo "#define GNULIB_TEST_GETADDRINFO 1" >>confdefs.h
30011 if test $ac_cv_func_getdelim = yes; then
30013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working getdelim function" >&5
30014 $as_echo_n "checking for working getdelim function... " >&6; }
30015 if ${gl_cv_func_working_getdelim+:} false; then :
30016 $as_echo_n "(cached) " >&6
30018 echo fooNbarN | tr -d '\012' | tr N '\012' > conftest.data
30019 if test "$cross_compiling" = yes; then :
30020 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30021 /* end confdefs.h. */
30023 #include <features.h>
30024 #ifdef __GNU_LIBRARY__
30025 #if (__GLIBC__ >= 2) && !defined __UCLIBC__
30031 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30032 $EGREP "Lucky GNU user" >/dev/null 2>&1; then :
30033 gl_cv_func_working_getdelim="guessing yes"
30035 gl_cv_func_working_getdelim="guessing no"
30041 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30042 /* end confdefs.h. */
30044 # include <stdio.h>
30045 # include <stdlib.h>
30046 # include <string.h>
30049 FILE *in = fopen ("./conftest.data", "r");
30053 /* Test result for a NULL buffer and a zero size.
30054 Based on a test program from Karl Heuer. */
30057 int len = getdelim (&line, &siz, '\n', in);
30058 if (!(len == 4 && line && strcmp (line, "foo\n") == 0))
30062 /* Test result for a NULL buffer and a non-zero size.
30063 This crashes on FreeBSD 8.0. */
30065 size_t siz = (size_t)(~0) / 4;
30066 if (getdelim (&line, &siz, '\n', in) == -1)
30073 if ac_fn_c_try_run "$LINENO"; then :
30074 gl_cv_func_working_getdelim=yes
30076 gl_cv_func_working_getdelim=no
30078 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
30079 conftest.$ac_objext conftest.beam conftest.$ac_ext
30083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_working_getdelim" >&5
30084 $as_echo "$gl_cv_func_working_getdelim" >&6; }
30085 case "$gl_cv_func_working_getdelim" in
30094 if test $ac_cv_have_decl_getdelim = no; then
30095 HAVE_DECL_GETDELIM=0
30098 if test $HAVE_GETDELIM = 0 || test $REPLACE_GETDELIM = 1; then
30107 ggl_LIBOBJS="$ggl_LIBOBJS getdelim.$ac_objext"
30110 for ac_func in flockfile funlockfile
30112 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
30113 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
30114 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
30115 cat >>confdefs.h <<_ACEOF
30116 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
30122 ac_fn_c_check_decl "$LINENO" "getc_unlocked" "ac_cv_have_decl_getc_unlocked" "$ac_includes_default"
30123 if test "x$ac_cv_have_decl_getc_unlocked" = xyes; then :
30129 cat >>confdefs.h <<_ACEOF
30130 #define HAVE_DECL_GETC_UNLOCKED $ac_have_decl
30146 $as_echo "#define GNULIB_TEST_GETDELIM 1" >>confdefs.h
30163 gl_getline_needs_run_time_check=no
30164 ac_fn_c_check_func "$LINENO" "getline" "ac_cv_func_getline"
30165 if test "x$ac_cv_func_getline" = xyes; then :
30166 gl_getline_needs_run_time_check=yes
30168 am_cv_func_working_getline=no
30171 if test $gl_getline_needs_run_time_check = yes; then
30172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working getline function" >&5
30173 $as_echo_n "checking for working getline function... " >&6; }
30174 if ${am_cv_func_working_getline+:} false; then :
30175 $as_echo_n "(cached) " >&6
30177 echo fooNbarN | tr -d '\012' | tr N '\012' > conftest.data
30178 if test "$cross_compiling" = yes; then :
30179 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30180 /* end confdefs.h. */
30182 #include <features.h>
30183 #ifdef __GNU_LIBRARY__
30184 #if (__GLIBC__ >= 2) && !defined __UCLIBC__
30190 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30191 $EGREP "Lucky GNU user" >/dev/null 2>&1; then :
30192 am_cv_func_working_getline="guessing yes"
30194 am_cv_func_working_getline="guessing no"
30200 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30201 /* end confdefs.h. */
30203 # include <stdio.h>
30204 # include <stdlib.h>
30205 # include <string.h>
30208 FILE *in = fopen ("./conftest.data", "r");
30212 /* Test result for a NULL buffer and a zero size.
30213 Based on a test program from Karl Heuer. */
30216 int len = getline (&line, &siz, in);
30217 if (!(len == 4 && line && strcmp (line, "foo\n") == 0))
30221 /* Test result for a NULL buffer and a non-zero size.
30222 This crashes on FreeBSD 8.0. */
30224 size_t siz = (size_t)(~0) / 4;
30225 if (getline (&line, &siz, in) == -1)
30232 if ac_fn_c_try_run "$LINENO"; then :
30233 am_cv_func_working_getline=yes
30235 am_cv_func_working_getline=no
30237 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
30238 conftest.$ac_objext conftest.beam conftest.$ac_ext
30242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_working_getline" >&5
30243 $as_echo "$am_cv_func_working_getline" >&6; }
30246 if test $ac_cv_have_decl_getline = no; then
30247 HAVE_DECL_GETLINE=0
30250 case "$am_cv_func_working_getline" in
30256 if test $REPLACE_GETLINE = 1; then
30265 ggl_LIBOBJS="$ggl_LIBOBJS getline.$ac_objext"
30282 $as_echo "#define GNULIB_TEST_GETLINE 1" >>confdefs.h
30289 for ac_func in getpass
30291 ac_fn_c_check_func "$LINENO" "getpass" "ac_cv_func_getpass"
30292 if test "x$ac_cv_func_getpass" = xyes; then :
30293 cat >>confdefs.h <<_ACEOF
30294 #define HAVE_GETPASS 1
30307 if test $ac_cv_func_getpass = yes; then
30313 if test $HAVE_GETPASS = 0; then
30322 ggl_LIBOBJS="$ggl_LIBOBJS getpass.$ac_objext"
30348 ac_fn_c_check_decl "$LINENO" "__fsetlocking" "ac_cv_have_decl___fsetlocking" "#include <stdio.h>
30349 #if HAVE_STDIO_EXT_H
30350 #include <stdio_ext.h>
30353 if test "x$ac_cv_have_decl___fsetlocking" = xyes; then :
30359 cat >>confdefs.h <<_ACEOF
30360 #define HAVE_DECL___FSETLOCKING $ac_have_decl
30402 if test "$ac_cv_header_winsock2_h" = yes; then
30411 ggl_LIBOBJS="$ggl_LIBOBJS getpeername.$ac_objext"
30419 GNULIB_GETPEERNAME=1
30425 $as_echo "#define GNULIB_TEST_GETPEERNAME 1" >>confdefs.h
30457 gl_gettimeofday_timezone=void
30458 if test $ac_cv_func_gettimeofday != yes; then
30459 HAVE_GETTIMEOFDAY=0
30464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gettimeofday clobbers localtime buffer" >&5
30465 $as_echo_n "checking whether gettimeofday clobbers localtime buffer... " >&6; }
30466 if ${gl_cv_func_gettimeofday_clobber+:} false; then :
30467 $as_echo_n "(cached) " >&6
30469 if test "$cross_compiling" = yes; then :
30470 # When cross-compiling:
30472 # Guess all is fine on glibc systems.
30473 *-gnu*) gl_cv_func_gettimeofday_clobber="guessing no" ;;
30474 # If we don't know, assume the worst.
30475 *) gl_cv_func_gettimeofday_clobber="guessing yes" ;;
30479 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30480 /* end confdefs.h. */
30481 #include <string.h>
30482 #include <sys/time.h>
30484 #include <stdlib.h>
30492 struct tm saved_lt;
30494 lt = localtime (&t);
30496 gettimeofday (&tv, NULL);
30497 return memcmp (lt, &saved_lt, sizeof (struct tm)) != 0;
30503 if ac_fn_c_try_run "$LINENO"; then :
30504 gl_cv_func_gettimeofday_clobber=no
30506 gl_cv_func_gettimeofday_clobber=yes
30508 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
30509 conftest.$ac_objext conftest.beam conftest.$ac_ext
30513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_gettimeofday_clobber" >&5
30514 $as_echo "$gl_cv_func_gettimeofday_clobber" >&6; }
30516 case "$gl_cv_func_gettimeofday_clobber" in
30518 REPLACE_GETTIMEOFDAY=1
30521 REPLACE_LOCALTIME=1
30524 $as_echo "#define GETTIMEOFDAY_CLOBBERS_LOCALTIME 1" >>confdefs.h
30529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gettimeofday with POSIX signature" >&5
30530 $as_echo_n "checking for gettimeofday with POSIX signature... " >&6; }
30531 if ${gl_cv_func_gettimeofday_posix_signature+:} false; then :
30532 $as_echo_n "(cached) " >&6
30534 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30535 /* end confdefs.h. */
30536 #include <sys/time.h>
30538 int gettimeofday (struct timeval *restrict, void *restrict);
30543 /* glibc uses struct timezone * rather than the POSIX void *
30544 if _GNU_SOURCE is defined. However, since the only portable
30545 use of gettimeofday uses NULL as the second parameter, and
30546 since the glibc definition is actually more typesafe, it is
30547 not worth wrapping this to get a compliant signature. */
30548 int (*f) (struct timeval *restrict, void *restrict)
30551 return !(x | c.tv_sec | c.tv_usec);
30557 if ac_fn_c_try_compile "$LINENO"; then :
30558 gl_cv_func_gettimeofday_posix_signature=yes
30560 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30561 /* end confdefs.h. */
30562 #include <sys/time.h>
30563 int gettimeofday (struct timeval *restrict, struct timezone *restrict);
30573 if ac_fn_c_try_compile "$LINENO"; then :
30574 gl_cv_func_gettimeofday_posix_signature=almost
30576 gl_cv_func_gettimeofday_posix_signature=no
30578 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30580 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_gettimeofday_posix_signature" >&5
30583 $as_echo "$gl_cv_func_gettimeofday_posix_signature" >&6; }
30584 if test $gl_cv_func_gettimeofday_posix_signature = almost; then
30585 gl_gettimeofday_timezone='struct timezone'
30586 elif test $gl_cv_func_gettimeofday_posix_signature != yes; then
30587 REPLACE_GETTIMEOFDAY=1
30589 if test $REPLACE_STRUCT_TIMEVAL = 1; then
30590 REPLACE_GETTIMEOFDAY=1
30595 cat >>confdefs.h <<_ACEOF
30596 #define GETTIMEOFDAY_TIMEZONE $gl_gettimeofday_timezone
30600 if test $HAVE_GETTIMEOFDAY = 0 || test $REPLACE_GETTIMEOFDAY = 1; then
30609 ggl_LIBOBJS="$ggl_LIBOBJS gettimeofday.$ac_objext"
30612 for ac_header in sys/timeb.h
30614 ac_fn_c_check_header_mongrel "$LINENO" "sys/timeb.h" "ac_cv_header_sys_timeb_h" "$ac_includes_default"
30615 if test "x$ac_cv_header_sys_timeb_h" = xyes; then :
30616 cat >>confdefs.h <<_ACEOF
30617 #define HAVE_SYS_TIMEB_H 1
30624 for ac_func in _ftime
30626 ac_fn_c_check_func "$LINENO" "_ftime" "ac_cv_func__ftime"
30627 if test "x$ac_cv_func__ftime" = xyes; then :
30628 cat >>confdefs.h <<_ACEOF
30629 #define HAVE__FTIME 1
30642 GNULIB_GETTIMEOFDAY=1
30648 $as_echo "#define GNULIB_TEST_GETTIMEOFDAY 1" >>confdefs.h
30654 gl_saved_libs="$LIBS"
30655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5
30656 $as_echo_n "checking for library containing gethostbyname... " >&6; }
30657 if ${ac_cv_search_gethostbyname+:} false; then :
30658 $as_echo_n "(cached) " >&6
30660 ac_func_search_save_LIBS=$LIBS
30661 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30662 /* end confdefs.h. */
30664 /* Override any GCC internal prototype to avoid an error.
30665 Use char because int might match the return type of a GCC
30666 builtin and then its argument prototype would still apply. */
30670 char gethostbyname ();
30674 return gethostbyname ();
30679 for ac_lib in '' nsl network net; do
30680 if test -z "$ac_lib"; then
30681 ac_res="none required"
30684 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
30686 if ac_fn_c_try_link "$LINENO"; then :
30687 ac_cv_search_gethostbyname=$ac_res
30689 rm -f core conftest.err conftest.$ac_objext \
30691 if ${ac_cv_search_gethostbyname+:} false; then :
30695 if ${ac_cv_search_gethostbyname+:} false; then :
30698 ac_cv_search_gethostbyname=no
30700 rm conftest.$ac_ext
30701 LIBS=$ac_func_search_save_LIBS
30703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5
30704 $as_echo "$ac_cv_search_gethostbyname" >&6; }
30705 ac_res=$ac_cv_search_gethostbyname
30706 if test "$ac_res" != no; then :
30707 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
30708 if test "$ac_cv_search_gethostbyname" != "none required"; then
30709 HOSTENT_LIB="$ac_cv_search_gethostbyname"
30713 LIBS="$gl_saved_libs"
30714 if test -z "$HOSTENT_LIB"; then
30715 for ac_func in gethostbyname
30717 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
30718 if test "x$ac_cv_func_gethostbyname" = xyes; then :
30719 cat >>confdefs.h <<_ACEOF
30720 #define HAVE_GETHOSTBYNAME 1
30725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in winsock2.h and -lws2_32" >&5
30726 $as_echo_n "checking for gethostbyname in winsock2.h and -lws2_32... " >&6; }
30727 if ${gl_cv_w32_gethostbyname+:} false; then :
30728 $as_echo_n "(cached) " >&6
30730 gl_cv_w32_gethostbyname=no
30731 gl_save_LIBS="$LIBS"
30732 LIBS="$LIBS -lws2_32"
30733 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30734 /* end confdefs.h. */
30736 #ifdef HAVE_WINSOCK2_H
30737 #include <winsock2.h>
30739 #include <stddef.h>
30744 gethostbyname(NULL);
30749 if ac_fn_c_try_link "$LINENO"; then :
30750 gl_cv_w32_gethostbyname=yes
30752 rm -f core conftest.err conftest.$ac_objext \
30753 conftest$ac_exeext conftest.$ac_ext
30754 LIBS="$gl_save_LIBS"
30757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_w32_gethostbyname" >&5
30758 $as_echo "$gl_cv_w32_gethostbyname" >&6; }
30759 if test "$gl_cv_w32_gethostbyname" = "yes"; then
30760 HOSTENT_LIB="-lws2_32"
30788 if test $ac_cv_header_sys_socket_h != yes; then
30789 for ac_header in winsock2.h
30791 ac_fn_c_check_header_mongrel "$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
30792 if test "x$ac_cv_header_winsock2_h" = xyes; then :
30793 cat >>confdefs.h <<_ACEOF
30794 #define HAVE_WINSOCK2_H 1
30802 if test "$ac_cv_header_winsock2_h" = yes; then
30804 UNISTD_H_HAVE_WINSOCK2_H=1
30805 SYS_IOCTL_H_HAVE_WINSOCK2_H=1
30811 if test $HAVE_WINSOCK2_H = 1; then
30812 ac_fn_c_check_decl "$LINENO" "inet_ntop" "ac_cv_have_decl_inet_ntop" "#include <ws2tcpip.h>
30814 if test "x$ac_cv_have_decl_inet_ntop" = xyes; then :
30820 cat >>confdefs.h <<_ACEOF
30821 #define HAVE_DECL_INET_NTOP $ac_have_decl
30824 if test $ac_cv_have_decl_inet_ntop = yes; then
30825 REPLACE_INET_NTOP=1
30826 INET_NTOP_LIB="-lws2_32"
30828 HAVE_DECL_INET_NTOP=0
30833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing inet_ntop" >&5
30834 $as_echo_n "checking for library containing inet_ntop... " >&6; }
30835 if ${ac_cv_search_inet_ntop+:} false; then :
30836 $as_echo_n "(cached) " >&6
30838 ac_func_search_save_LIBS=$LIBS
30839 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30840 /* end confdefs.h. */
30842 /* Override any GCC internal prototype to avoid an error.
30843 Use char because int might match the return type of a GCC
30844 builtin and then its argument prototype would still apply. */
30852 return inet_ntop ();
30857 for ac_lib in '' nsl resolv; do
30858 if test -z "$ac_lib"; then
30859 ac_res="none required"
30862 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
30864 if ac_fn_c_try_link "$LINENO"; then :
30865 ac_cv_search_inet_ntop=$ac_res
30867 rm -f core conftest.err conftest.$ac_objext \
30869 if ${ac_cv_search_inet_ntop+:} false; then :
30873 if ${ac_cv_search_inet_ntop+:} false; then :
30876 ac_cv_search_inet_ntop=no
30878 rm conftest.$ac_ext
30879 LIBS=$ac_func_search_save_LIBS
30881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_ntop" >&5
30882 $as_echo "$ac_cv_search_inet_ntop" >&6; }
30883 ac_res=$ac_cv_search_inet_ntop
30884 if test "$ac_res" != no; then :
30885 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
30888 for ac_func in inet_ntop
30890 ac_fn_c_check_func "$LINENO" "inet_ntop" "ac_cv_func_inet_ntop"
30891 if test "x$ac_cv_func_inet_ntop" = xyes; then :
30892 cat >>confdefs.h <<_ACEOF
30893 #define HAVE_INET_NTOP 1
30899 if test $ac_cv_func_inet_ntop = no; then
30907 if test "$ac_cv_search_inet_ntop" != "no" \
30908 && test "$ac_cv_search_inet_ntop" != "none required"; then
30909 INET_NTOP_LIB="$ac_cv_search_inet_ntop"
30919 ac_fn_c_check_decl "$LINENO" "inet_ntop" "ac_cv_have_decl_inet_ntop" "#include <arpa/inet.h>
30921 # include <netdb.h>
30925 if test "x$ac_cv_have_decl_inet_ntop" = xyes; then :
30931 cat >>confdefs.h <<_ACEOF
30932 #define HAVE_DECL_INET_NTOP $ac_have_decl
30935 if test $ac_cv_have_decl_inet_ntop = no; then
30936 HAVE_DECL_INET_NTOP=0
30941 if test $HAVE_INET_NTOP = 0 || test $REPLACE_INET_NTOP = 1; then
30950 ggl_LIBOBJS="$ggl_LIBOBJS inet_ntop.$ac_objext"
30985 if test $ac_cv_header_sys_socket_h != yes; then
30986 for ac_header in winsock2.h
30988 ac_fn_c_check_header_mongrel "$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
30989 if test "x$ac_cv_header_winsock2_h" = xyes; then :
30990 cat >>confdefs.h <<_ACEOF
30991 #define HAVE_WINSOCK2_H 1
30999 if test "$ac_cv_header_winsock2_h" = yes; then
31001 UNISTD_H_HAVE_WINSOCK2_H=1
31002 SYS_IOCTL_H_HAVE_WINSOCK2_H=1
31008 if test $HAVE_WINSOCK2_H = 1; then
31009 ac_fn_c_check_decl "$LINENO" "inet_pton" "ac_cv_have_decl_inet_pton" "#include <ws2tcpip.h>
31011 if test "x$ac_cv_have_decl_inet_pton" = xyes; then :
31017 cat >>confdefs.h <<_ACEOF
31018 #define HAVE_DECL_INET_PTON $ac_have_decl
31021 if test $ac_cv_have_decl_inet_pton = yes; then
31022 REPLACE_INET_PTON=1
31023 INET_PTON_LIB="-lws2_32"
31025 HAVE_DECL_INET_PTON=0
31030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing inet_pton" >&5
31031 $as_echo_n "checking for library containing inet_pton... " >&6; }
31032 if ${ac_cv_search_inet_pton+:} false; then :
31033 $as_echo_n "(cached) " >&6
31035 ac_func_search_save_LIBS=$LIBS
31036 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31037 /* end confdefs.h. */
31039 /* Override any GCC internal prototype to avoid an error.
31040 Use char because int might match the return type of a GCC
31041 builtin and then its argument prototype would still apply. */
31049 return inet_pton ();
31054 for ac_lib in '' nsl resolv; do
31055 if test -z "$ac_lib"; then
31056 ac_res="none required"
31059 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
31061 if ac_fn_c_try_link "$LINENO"; then :
31062 ac_cv_search_inet_pton=$ac_res
31064 rm -f core conftest.err conftest.$ac_objext \
31066 if ${ac_cv_search_inet_pton+:} false; then :
31070 if ${ac_cv_search_inet_pton+:} false; then :
31073 ac_cv_search_inet_pton=no
31075 rm conftest.$ac_ext
31076 LIBS=$ac_func_search_save_LIBS
31078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_pton" >&5
31079 $as_echo "$ac_cv_search_inet_pton" >&6; }
31080 ac_res=$ac_cv_search_inet_pton
31081 if test "$ac_res" != no; then :
31082 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
31085 for ac_func in inet_pton
31087 ac_fn_c_check_func "$LINENO" "inet_pton" "ac_cv_func_inet_pton"
31088 if test "x$ac_cv_func_inet_pton" = xyes; then :
31089 cat >>confdefs.h <<_ACEOF
31090 #define HAVE_INET_PTON 1
31096 if test $ac_cv_func_inet_pton = no; then
31104 if test "$ac_cv_search_inet_pton" != "no" \
31105 && test "$ac_cv_search_inet_pton" != "none required"; then
31106 INET_PTON_LIB="$ac_cv_search_inet_pton"
31116 ac_fn_c_check_decl "$LINENO" "inet_pton" "ac_cv_have_decl_inet_pton" "#include <arpa/inet.h>
31118 # include <netdb.h>
31122 if test "x$ac_cv_have_decl_inet_pton" = xyes; then :
31128 cat >>confdefs.h <<_ACEOF
31129 #define HAVE_DECL_INET_PTON $ac_have_decl
31132 if test $ac_cv_have_decl_inet_pton = no; then
31133 HAVE_DECL_INET_PTON=0
31138 if test $HAVE_INET_PTON = 0 || test $REPLACE_INET_NTOP = 1; then
31147 ggl_LIBOBJS="$ggl_LIBOBJS inet_pton.$ac_objext"
31165 if test "$ac_cv_header_winsock2_h" = yes; then
31174 ggl_LIBOBJS="$ggl_LIBOBJS listen.$ac_objext"
31188 $as_echo "#define GNULIB_TEST_LISTEN 1" >>confdefs.h
31204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lseek detects pipes" >&5
31205 $as_echo_n "checking whether lseek detects pipes... " >&6; }
31206 if ${gl_cv_func_lseek_pipe+:} false; then :
31207 $as_echo_n "(cached) " >&6
31211 gl_cv_func_lseek_pipe=no
31214 if test $cross_compiling = no; then
31215 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31216 /* end confdefs.h. */
31218 #include <sys/types.h> /* for off_t */
31219 #include <stdio.h> /* for SEEK_CUR */
31221 # include <unistd.h>
31222 #else /* on Windows with MSVC */
31230 /* Exit with success only if stdin is seekable. */
31231 return lseek (0, (off_t)0, SEEK_CUR) < 0;
31237 if ac_fn_c_try_link "$LINENO"; then :
31238 if test -s conftest$ac_exeext \
31239 && ./conftest$ac_exeext < conftest.$ac_ext \
31240 && test 1 = "`echo hi \
31241 | { ./conftest$ac_exeext; echo $?; cat >/dev/null; }`"; then
31242 gl_cv_func_lseek_pipe=yes
31244 gl_cv_func_lseek_pipe=no
31248 gl_cv_func_lseek_pipe=no
31250 rm -f core conftest.err conftest.$ac_objext \
31251 conftest$ac_exeext conftest.$ac_ext
31253 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31254 /* end confdefs.h. */
31256 #if defined __BEOS__
31257 /* BeOS mistakenly return 0 when trying to seek on pipes. */
31261 if ac_fn_c_try_compile "$LINENO"; then :
31262 gl_cv_func_lseek_pipe=yes
31264 gl_cv_func_lseek_pipe=no
31266 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_lseek_pipe" >&5
31273 $as_echo "$gl_cv_func_lseek_pipe" >&6; }
31274 if test $gl_cv_func_lseek_pipe = no; then
31277 $as_echo "#define LSEEK_PIPE_BROKEN 1" >>confdefs.h
31282 if test $WINDOWS_64_BIT_OFF_T = 1; then
31286 if test $REPLACE_LSEEK = 1; then
31295 ggl_LIBOBJS="$ggl_LIBOBJS lseek.$ac_objext"
31309 $as_echo "#define GNULIB_TEST_LSEEK 1" >>confdefs.h
31316 if test $gl_cv_func_malloc_posix = yes; then
31318 $as_echo "#define HAVE_MALLOC_POSIX 1" >>confdefs.h
31324 if test $REPLACE_MALLOC = 1; then
31333 ggl_LIBOBJS="$ggl_LIBOBJS malloc.$ac_objext"
31341 GNULIB_MALLOC_POSIX=1
31347 $as_echo "#define GNULIB_TEST_MALLOC_POSIX 1" >>confdefs.h
31356 if test $HAVE_MEMCHR = 0 || test $REPLACE_MEMCHR = 1; then
31365 ggl_LIBOBJS="$ggl_LIBOBJS memchr.$ac_objext"
31368 for ac_header in bp-sym.h
31370 ac_fn_c_check_header_mongrel "$LINENO" "bp-sym.h" "ac_cv_header_bp_sym_h" "$ac_includes_default"
31371 if test "x$ac_cv_header_bp_sym_h" = xyes; then :
31372 cat >>confdefs.h <<_ACEOF
31373 #define HAVE_BP_SYM_H 1
31393 $as_echo "#define GNULIB_TEST_MEMCHR 1" >>confdefs.h
31418 if test $APPLE_UNIVERSAL_BUILD = 1; then
31419 # A universal build on Apple Mac OS X platforms.
31420 # The test result would be 'yes' in 32-bit mode and 'no' in 64-bit mode.
31421 # But we need a configuration result that is valid in both modes.
31422 gl_cv_func_working_mktime=no
31424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mktime" >&5
31425 $as_echo_n "checking for working mktime... " >&6; }
31426 if ${gl_cv_func_working_mktime+:} false; then :
31427 $as_echo_n "(cached) " >&6
31429 if test "$cross_compiling" = yes; then :
31430 gl_cv_func_working_mktime=no
31432 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31433 /* end confdefs.h. */
31434 /* Test program from Paul Eggert and Tony Leneis. */
31435 #include <limits.h>
31436 #include <stdlib.h>
31439 #ifdef HAVE_UNISTD_H
31440 # include <unistd.h>
31443 #if HAVE_DECL_ALARM
31444 # include <signal.h>
31447 /* Work around redefinition to rpl_putenv by other config tests. */
31450 static time_t time_t_max;
31451 static time_t time_t_min;
31453 /* Values we'll use to set the TZ environment variable. */
31454 static char *tz_strings[] = {
31455 (char *) 0, "TZ=GMT0", "TZ=JST-9",
31456 "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
31458 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
31460 /* Return 0 if mktime fails to convert a date in the spring-forward gap.
31461 Based on a problem report from Andreas Jaeger. */
31463 spring_forward_gap ()
31465 /* glibc (up to about 1998-10-07) failed this test. */
31468 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
31469 instead of "TZ=America/Vancouver" in order to detect the bug even
31470 on systems that don't support the Olson extension, or don't have the
31471 full zoneinfo tables installed. */
31472 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
31481 return mktime (&tm) != (time_t) -1;
31485 mktime_test1 (time_t now)
31488 return ! (lt = localtime (&now)) || mktime (lt) == now;
31492 mktime_test (time_t now)
31494 return (mktime_test1 (now)
31495 && mktime_test1 ((time_t) (time_t_max - now))
31496 && mktime_test1 ((time_t) (time_t_min + now)));
31502 /* Based on code from Ariel Faigon. */
31512 return tm.tm_mon == 2 && tm.tm_mday == 31;
31516 bigtime_test (int j)
31520 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
31521 now = mktime (&tm);
31522 if (now != (time_t) -1)
31524 struct tm *lt = localtime (&now);
31526 && lt->tm_year == tm.tm_year
31527 && lt->tm_mon == tm.tm_mon
31528 && lt->tm_mday == tm.tm_mday
31529 && lt->tm_hour == tm.tm_hour
31530 && lt->tm_min == tm.tm_min
31531 && lt->tm_sec == tm.tm_sec
31532 && lt->tm_yday == tm.tm_yday
31533 && lt->tm_wday == tm.tm_wday
31534 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
31535 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
31544 /* The correct answer for 2050-02-01 00:00:00 in Pacific time,
31545 ignoring leap seconds. */
31546 unsigned long int answer = 2527315200UL;
31550 tm.tm_year = 2050 - 1900;
31553 tm.tm_hour = tm.tm_min = tm.tm_sec = 0;
31556 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
31557 instead of "TZ=America/Vancouver" in order to detect the bug even
31558 on systems that don't support the Olson extension, or don't have the
31559 full zoneinfo tables installed. */
31560 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
31564 /* Check that the result is either a failure, or close enough
31565 to the correct answer that we can assume the discrepancy is
31566 due to leap seconds. */
31567 return (t == (time_t) -1
31568 || (0 < t && answer - 120 <= t && t <= answer + 120));
31577 int time_t_signed_magnitude = (time_t) ~ (time_t) 0 < (time_t) -1;
31578 int time_t_signed = ! ((time_t) 0 < (time_t) -1);
31580 #if HAVE_DECL_ALARM
31581 /* This test makes some buggy mktime implementations loop.
31582 Give up after 60 seconds; a mktime slower than that
31583 isn't worth using anyway. */
31584 signal (SIGALRM, SIG_DFL);
31588 time_t_max = (! time_t_signed
31590 : ((((time_t) 1 << (sizeof (time_t) * CHAR_BIT - 2)) - 1)
31592 time_t_min = (! time_t_signed
31594 : time_t_signed_magnitude
31598 delta = time_t_max / 997; /* a suitable prime number */
31599 for (i = 0; i < N_STRINGS; i++)
31602 putenv (tz_strings[i]);
31604 for (t = 0; t <= time_t_max - delta && (result & 1) == 0; t += delta)
31605 if (! mktime_test (t))
31607 if ((result & 2) == 0
31608 && ! (mktime_test ((time_t) 1)
31609 && mktime_test ((time_t) (60 * 60))
31610 && mktime_test ((time_t) (60 * 60 * 24))))
31613 for (j = 1; (result & 4) == 0; j <<= 1)
31615 if (! bigtime_test (j))
31617 if (INT_MAX / 2 < j)
31620 if ((result & 8) == 0 && ! bigtime_test (INT_MAX))
31623 if (! irix_6_4_bug ())
31625 if (! spring_forward_gap ())
31627 if (! year_2050_test ())
31632 if ac_fn_c_try_run "$LINENO"; then :
31633 gl_cv_func_working_mktime=yes
31635 gl_cv_func_working_mktime=no
31637 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
31638 conftest.$ac_objext conftest.beam conftest.$ac_ext
31643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_working_mktime" >&5
31644 $as_echo "$gl_cv_func_working_mktime" >&6; }
31646 if test $gl_cv_func_working_mktime = no; then
31652 if test $REPLACE_MKTIME = 1; then
31661 ggl_LIBOBJS="$ggl_LIBOBJS mktime.$ac_objext"
31676 $as_echo "#define GNULIB_TEST_MKTIME 1" >>confdefs.h
31688 if test $ac_cv_func__set_invalid_parameter_handler = yes; then
31689 HAVE_MSVC_INVALID_PARAMETER_HANDLER=1
31691 $as_echo "#define HAVE_MSVC_INVALID_PARAMETER_HANDLER 1" >>confdefs.h
31694 HAVE_MSVC_INVALID_PARAMETER_HANDLER=0
31698 if test $HAVE_MSVC_INVALID_PARAMETER_HANDLER = 1; then
31707 ggl_LIBOBJS="$ggl_LIBOBJS msvc-inval.$ac_objext"
31713 if test $HAVE_MSVC_INVALID_PARAMETER_HANDLER = 1; then
31722 ggl_LIBOBJS="$ggl_LIBOBJS msvc-nothrow.$ac_objext"
31743 if test $gl_cv_have_include_next = yes; then
31744 gl_cv_next_netdb_h='<'netdb.h'>'
31746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <netdb.h>" >&5
31747 $as_echo_n "checking absolute name of <netdb.h>... " >&6; }
31748 if ${gl_cv_next_netdb_h+:} false; then :
31749 $as_echo_n "(cached) " >&6
31752 if test $ac_cv_header_netdb_h = yes; then
31757 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31758 /* end confdefs.h. */
31762 aix*) gl_absname_cpp="$ac_cpp -C" ;;
31763 *) gl_absname_cpp="$ac_cpp" ;;
31768 gl_dirsep_regex='[/\\]'
31771 gl_dirsep_regex='\/'
31774 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
31775 gl_header_literal_regex=`echo 'netdb.h' \
31776 | sed -e "$gl_make_literal_regex_sed"`
31777 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
31778 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
31784 gl_cv_absolute_netdb_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
31785 sed -n "$gl_absolute_header_sed"`
31787 gl_header=$gl_cv_absolute_netdb_h
31788 gl_cv_next_netdb_h='"'$gl_header'"'
31790 gl_cv_next_netdb_h='<'netdb.h'>'
31795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_netdb_h" >&5
31796 $as_echo "$gl_cv_next_netdb_h" >&6; }
31798 NEXT_NETDB_H=$gl_cv_next_netdb_h
31800 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
31801 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
31802 gl_next_as_first_directive='<'netdb.h'>'
31804 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
31805 gl_next_as_first_directive=$gl_cv_next_netdb_h
31807 NEXT_AS_FIRST_DIRECTIVE_NETDB_H=$gl_next_as_first_directive
31812 if test $ac_cv_header_netdb_h = yes; then
31820 for gl_func in getaddrinfo freeaddrinfo gai_strerror getnameinfo; do
31821 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
31822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
31823 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
31824 if eval \${$as_gl_Symbol+:} false; then :
31825 $as_echo_n "(cached) " >&6
31827 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31828 /* end confdefs.h. */
31839 if ac_fn_c_try_compile "$LINENO"; then :
31840 eval "$as_gl_Symbol=yes"
31842 eval "$as_gl_Symbol=no"
31844 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31846 eval ac_res=\$$as_gl_Symbol
31847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
31848 $as_echo "$ac_res" >&6; }
31849 if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
31850 cat >>confdefs.h <<_ACEOF
31851 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
31854 eval ac_cv_have_decl_$gl_func=yes
31860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <netinet/in.h> is self-contained" >&5
31861 $as_echo_n "checking whether <netinet/in.h> is self-contained... " >&6; }
31862 if ${gl_cv_header_netinet_in_h_selfcontained+:} false; then :
31863 $as_echo_n "(cached) " >&6
31866 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31867 /* end confdefs.h. */
31868 #include <netinet/in.h>
31877 if ac_fn_c_try_compile "$LINENO"; then :
31878 gl_cv_header_netinet_in_h_selfcontained=yes
31880 gl_cv_header_netinet_in_h_selfcontained=no
31882 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_netinet_in_h_selfcontained" >&5
31886 $as_echo "$gl_cv_header_netinet_in_h_selfcontained" >&6; }
31887 if test $gl_cv_header_netinet_in_h_selfcontained = yes; then
31890 NETINET_IN_H='netinet/in.h'
31891 for ac_header in netinet/in.h
31893 ac_fn_c_check_header_mongrel "$LINENO" "netinet/in.h" "ac_cv_header_netinet_in_h" "$ac_includes_default"
31894 if test "x$ac_cv_header_netinet_in_h" = xyes; then :
31895 cat >>confdefs.h <<_ACEOF
31896 #define HAVE_NETINET_IN_H 1
31918 if test $gl_cv_have_include_next = yes; then
31919 gl_cv_next_netinet_in_h='<'netinet/in.h'>'
31921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <netinet/in.h>" >&5
31922 $as_echo_n "checking absolute name of <netinet/in.h>... " >&6; }
31923 if ${gl_cv_next_netinet_in_h+:} false; then :
31924 $as_echo_n "(cached) " >&6
31927 if test $ac_cv_header_netinet_in_h = yes; then
31932 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31933 /* end confdefs.h. */
31934 #include <netinet/in.h>
31937 aix*) gl_absname_cpp="$ac_cpp -C" ;;
31938 *) gl_absname_cpp="$ac_cpp" ;;
31943 gl_dirsep_regex='[/\\]'
31946 gl_dirsep_regex='\/'
31949 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
31950 gl_header_literal_regex=`echo 'netinet/in.h' \
31951 | sed -e "$gl_make_literal_regex_sed"`
31952 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
31953 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
31959 gl_cv_absolute_netinet_in_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
31960 sed -n "$gl_absolute_header_sed"`
31962 gl_header=$gl_cv_absolute_netinet_in_h
31963 gl_cv_next_netinet_in_h='"'$gl_header'"'
31965 gl_cv_next_netinet_in_h='<'netinet/in.h'>'
31970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_netinet_in_h" >&5
31971 $as_echo "$gl_cv_next_netinet_in_h" >&6; }
31973 NEXT_NETINET_IN_H=$gl_cv_next_netinet_in_h
31975 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
31976 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
31977 gl_next_as_first_directive='<'netinet/in.h'>'
31979 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
31980 gl_next_as_first_directive=$gl_cv_next_netinet_in_h
31982 NEXT_AS_FIRST_DIRECTIVE_NETINET_IN_H=$gl_next_as_first_directive
31987 if test $ac_cv_header_netinet_in_h = yes; then
31988 HAVE_NETINET_IN_H=1
31990 HAVE_NETINET_IN_H=0
31995 if test -n "$NETINET_IN_H"; then
31996 GL_GENERATE_NETINET_IN_H_TRUE=
31997 GL_GENERATE_NETINET_IN_H_FALSE='#'
31999 GL_GENERATE_NETINET_IN_H_TRUE='#'
32000 GL_GENERATE_NETINET_IN_H_FALSE=
32011 ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
32012 #include <$ac_cv_struct_tm>
32015 if test "x$ac_cv_member_struct_tm_tm_zone" = xyes; then :
32017 cat >>confdefs.h <<_ACEOF
32018 #define HAVE_STRUCT_TM_TM_ZONE 1
32024 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
32026 $as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
32029 ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
32031 if test "x$ac_cv_have_decl_tzname" = xyes; then :
32037 cat >>confdefs.h <<_ACEOF
32038 #define HAVE_DECL_TZNAME $ac_have_decl
32041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
32042 $as_echo_n "checking for tzname... " >&6; }
32043 if ${ac_cv_var_tzname+:} false; then :
32044 $as_echo_n "(cached) " >&6
32046 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32047 /* end confdefs.h. */
32049 #if !HAVE_DECL_TZNAME
32050 extern char *tzname[];
32056 return tzname[0][0];
32061 if ac_fn_c_try_link "$LINENO"; then :
32062 ac_cv_var_tzname=yes
32064 ac_cv_var_tzname=no
32066 rm -f core conftest.err conftest.$ac_objext \
32067 conftest$ac_exeext conftest.$ac_ext
32069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
32070 $as_echo "$ac_cv_var_tzname" >&6; }
32071 if test $ac_cv_var_tzname = yes; then
32073 $as_echo "#define HAVE_TZNAME 1" >>confdefs.h
32080 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32081 /* end confdefs.h. */
32083 #include <time.h> /* for time_t */
32084 #include <limits.h> /* for CHAR_BIT, LONG_MIN, LONG_MAX */
32085 #define TYPE_MINIMUM(t) \
32086 ((t) ((t) 0 < (t) -1 ? (t) 0 : ~ TYPE_MAXIMUM (t)))
32087 #define TYPE_MAXIMUM(t) \
32088 ((t) ((t) 0 < (t) -1 \
32090 : ((((t) 1 << (sizeof (t) * CHAR_BIT - 2)) - 1) * 2 + 1)))
32091 typedef int verify_min[2 * (LONG_MIN <= TYPE_MINIMUM (time_t)) - 1];
32092 typedef int verify_max[2 * (TYPE_MAXIMUM (time_t) <= LONG_MAX) - 1];
32095 if ac_fn_c_try_compile "$LINENO"; then :
32097 $as_echo "#define TIME_T_FITS_IN_LONG_INT 1" >>confdefs.h
32101 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32103 ac_fn_c_check_decl "$LINENO" "program_invocation_name" "ac_cv_have_decl_program_invocation_name" "#include <errno.h>
32105 if test "x$ac_cv_have_decl_program_invocation_name" = xyes; then :
32111 cat >>confdefs.h <<_ACEOF
32112 #define HAVE_DECL_PROGRAM_INVOCATION_NAME $ac_have_decl
32115 ac_fn_c_check_decl "$LINENO" "program_invocation_short_name" "ac_cv_have_decl_program_invocation_short_name" "#include <errno.h>
32117 if test "x$ac_cv_have_decl_program_invocation_short_name" = xyes; then :
32123 cat >>confdefs.h <<_ACEOF
32124 #define HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME $ac_have_decl
32131 if test $gl_cv_func_malloc_posix = yes; then
32133 $as_echo "#define HAVE_REALLOC_POSIX 1" >>confdefs.h
32139 if test $REPLACE_REALLOC = 1; then
32148 ggl_LIBOBJS="$ggl_LIBOBJS realloc.$ac_objext"
32156 GNULIB_REALLOC_POSIX=1
32162 $as_echo "#define GNULIB_TEST_REALLOC_POSIX 1" >>confdefs.h
32167 if test "$ac_cv_header_winsock2_h" = yes; then
32176 ggl_LIBOBJS="$ggl_LIBOBJS recv.$ac_objext"
32190 $as_echo "#define GNULIB_TEST_RECV 1" >>confdefs.h
32195 if test "$ac_cv_header_winsock2_h" = yes; then
32204 ggl_LIBOBJS="$ggl_LIBOBJS recvfrom.$ac_objext"
32218 $as_echo "#define GNULIB_TEST_RECVFROM 1" >>confdefs.h
32225 if test "$ac_cv_header_winsock2_h" = yes; then
32235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether select supports a 0 argument" >&5
32236 $as_echo_n "checking whether select supports a 0 argument... " >&6; }
32237 if ${gl_cv_func_select_supports0+:} false; then :
32238 $as_echo_n "(cached) " >&6
32241 if test "$cross_compiling" = yes; then :
32244 # Guess no on Interix.
32245 interix*) gl_cv_func_select_supports0="guessing no";;
32246 # Guess yes otherwise.
32247 *) gl_cv_func_select_supports0="guessing yes";;
32251 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32252 /* end confdefs.h. */
32254 #include <sys/types.h>
32255 #include <sys/time.h>
32256 #if HAVE_SYS_SELECT_H
32257 #include <sys/select.h>
32261 struct timeval timeout;
32262 timeout.tv_sec = 0;
32263 timeout.tv_usec = 5;
32264 return select (0, (fd_set *)0, (fd_set *)0, (fd_set *)0, &timeout) < 0;
32267 if ac_fn_c_try_run "$LINENO"; then :
32268 gl_cv_func_select_supports0=yes
32270 gl_cv_func_select_supports0=no
32272 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
32273 conftest.$ac_objext conftest.beam conftest.$ac_ext
32278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_select_supports0" >&5
32279 $as_echo "$gl_cv_func_select_supports0" >&6; }
32280 case "$gl_cv_func_select_supports0" in
32282 *) REPLACE_SELECT=1 ;;
32285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether select detects invalid fds" >&5
32286 $as_echo_n "checking whether select detects invalid fds... " >&6; }
32287 if ${gl_cv_func_select_detects_ebadf+:} false; then :
32288 $as_echo_n "(cached) " >&6
32291 if test "$cross_compiling" = yes; then :
32294 # Guess yes on glibc systems.
32295 *-gnu*) gl_cv_func_select_detects_ebadf="guessing yes" ;;
32296 # If we don't know, assume the worst.
32297 *) gl_cv_func_select_detects_ebadf="guessing no" ;;
32301 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32302 /* end confdefs.h. */
32304 #include <sys/types.h>
32305 #include <sys/time.h>
32306 #if HAVE_SYS_SELECT_H
32307 # include <sys/select.h>
32309 #include <unistd.h>
32321 struct timeval timeout;
32322 timeout.tv_sec = 0;
32323 timeout.tv_usec = 5;
32324 return select (17, &set, NULL, NULL, &timeout) != -1 || errno != EBADF;
32330 if ac_fn_c_try_run "$LINENO"; then :
32331 gl_cv_func_select_detects_ebadf=yes
32333 gl_cv_func_select_detects_ebadf=no
32335 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
32336 conftest.$ac_objext conftest.beam conftest.$ac_ext
32341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_select_detects_ebadf" >&5
32342 $as_echo "$gl_cv_func_select_detects_ebadf" >&6; }
32343 case $gl_cv_func_select_detects_ebadf in
32345 *) REPLACE_SELECT=1 ;;
32349 LIB_SELECT="$LIBSOCKET"
32350 if test $REPLACE_SELECT = 1; then
32353 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32354 /* end confdefs.h. */
32356 #define WIN32_LEAN_AND_MEAN
32357 #include <windows.h>
32361 MsgWaitForMultipleObjects (0, NULL, 0, 0, 0);
32365 if ac_fn_c_try_link "$LINENO"; then :
32368 LIB_SELECT="$LIB_SELECT -luser32"
32370 rm -f core conftest.err conftest.$ac_objext \
32371 conftest$ac_exeext conftest.$ac_ext
32377 if test $REPLACE_SELECT = 1; then
32386 ggl_LIBOBJS="$ggl_LIBOBJS select.$ac_objext"
32400 $as_echo "#define GNULIB_TEST_SELECT 1" >>confdefs.h
32405 if test "$ac_cv_header_winsock2_h" = yes; then
32414 ggl_LIBOBJS="$ggl_LIBOBJS send.$ac_objext"
32428 $as_echo "#define GNULIB_TEST_SEND 1" >>confdefs.h
32433 if test "$ac_cv_header_winsock2_h" = yes; then
32442 ggl_LIBOBJS="$ggl_LIBOBJS sendto.$ac_objext"
32456 $as_echo "#define GNULIB_TEST_SENDTO 1" >>confdefs.h
32462 gl_saved_libs="$LIBS"
32463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getservbyname" >&5
32464 $as_echo_n "checking for library containing getservbyname... " >&6; }
32465 if ${ac_cv_search_getservbyname+:} false; then :
32466 $as_echo_n "(cached) " >&6
32468 ac_func_search_save_LIBS=$LIBS
32469 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32470 /* end confdefs.h. */
32472 /* Override any GCC internal prototype to avoid an error.
32473 Use char because int might match the return type of a GCC
32474 builtin and then its argument prototype would still apply. */
32478 char getservbyname ();
32482 return getservbyname ();
32487 for ac_lib in '' socket network net; do
32488 if test -z "$ac_lib"; then
32489 ac_res="none required"
32492 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
32494 if ac_fn_c_try_link "$LINENO"; then :
32495 ac_cv_search_getservbyname=$ac_res
32497 rm -f core conftest.err conftest.$ac_objext \
32499 if ${ac_cv_search_getservbyname+:} false; then :
32503 if ${ac_cv_search_getservbyname+:} false; then :
32506 ac_cv_search_getservbyname=no
32508 rm conftest.$ac_ext
32509 LIBS=$ac_func_search_save_LIBS
32511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getservbyname" >&5
32512 $as_echo "$ac_cv_search_getservbyname" >&6; }
32513 ac_res=$ac_cv_search_getservbyname
32514 if test "$ac_res" != no; then :
32515 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
32516 if test "$ac_cv_search_getservbyname" != "none required"; then
32517 SERVENT_LIB="$ac_cv_search_getservbyname"
32521 LIBS="$gl_saved_libs"
32522 if test -z "$SERVENT_LIB"; then
32523 for ac_func in getservbyname
32525 ac_fn_c_check_func "$LINENO" "getservbyname" "ac_cv_func_getservbyname"
32526 if test "x$ac_cv_func_getservbyname" = xyes; then :
32527 cat >>confdefs.h <<_ACEOF
32528 #define HAVE_GETSERVBYNAME 1
32533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getservbyname in winsock2.h and -lws2_32" >&5
32534 $as_echo_n "checking for getservbyname in winsock2.h and -lws2_32... " >&6; }
32535 if ${gl_cv_w32_getservbyname+:} false; then :
32536 $as_echo_n "(cached) " >&6
32538 gl_cv_w32_getservbyname=no
32539 gl_save_LIBS="$LIBS"
32540 LIBS="$LIBS -lws2_32"
32541 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32542 /* end confdefs.h. */
32544 #ifdef HAVE_WINSOCK2_H
32545 #include <winsock2.h>
32547 #include <stddef.h>
32552 getservbyname(NULL,NULL);
32557 if ac_fn_c_try_link "$LINENO"; then :
32558 gl_cv_w32_getservbyname=yes
32560 rm -f core conftest.err conftest.$ac_objext \
32561 conftest$ac_exeext conftest.$ac_ext
32562 LIBS="$gl_save_LIBS"
32565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_w32_getservbyname" >&5
32566 $as_echo "$gl_cv_w32_getservbyname" >&6; }
32567 if test "$gl_cv_w32_getservbyname" = "yes"; then
32568 SERVENT_LIB="-lws2_32"
32579 if test $ac_cv_func_setenv = no; then
32582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether setenv validates arguments" >&5
32583 $as_echo_n "checking whether setenv validates arguments... " >&6; }
32584 if ${gl_cv_func_setenv_works+:} false; then :
32585 $as_echo_n "(cached) " >&6
32587 if test "$cross_compiling" = yes; then :
32589 # Guess yes on glibc systems.
32590 *-gnu*) gl_cv_func_setenv_works="guessing yes" ;;
32591 # If we don't know, assume the worst.
32592 *) gl_cv_func_setenv_works="guessing no" ;;
32596 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32597 /* end confdefs.h. */
32599 #include <stdlib.h>
32601 #include <string.h>
32609 if (setenv ("", "", 0) != -1)
32611 else if (errno != EINVAL)
32615 if (setenv ("a", "=", 1) != 0)
32617 else if (strcmp (getenv ("a"), "=") != 0)
32626 if ac_fn_c_try_run "$LINENO"; then :
32627 gl_cv_func_setenv_works=yes
32629 gl_cv_func_setenv_works=no
32631 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
32632 conftest.$ac_objext conftest.beam conftest.$ac_ext
32636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_setenv_works" >&5
32637 $as_echo "$gl_cv_func_setenv_works" >&6; }
32638 case "$gl_cv_func_setenv_works" in
32646 if test $HAVE_SETENV = 0 || test $REPLACE_SETENV = 1; then
32655 ggl_LIBOBJS="$ggl_LIBOBJS setenv.$ac_objext"
32669 $as_echo "#define GNULIB_TEST_SETENV 1" >>confdefs.h
32674 if test "$ac_cv_header_winsock2_h" = yes; then
32683 ggl_LIBOBJS="$ggl_LIBOBJS setsockopt.$ac_objext"
32691 GNULIB_SETSOCKOPT=1
32697 $as_echo "#define GNULIB_TEST_SETSOCKOPT 1" >>confdefs.h
32702 if test "$ac_cv_header_winsock2_h" = yes; then
32711 ggl_LIBOBJS="$ggl_LIBOBJS shutdown.$ac_objext"
32725 $as_echo "#define GNULIB_TEST_SHUTDOWN 1" >>confdefs.h
32740 if test $gl_cv_have_include_next = yes; then
32741 gl_cv_next_signal_h='<'signal.h'>'
32743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <signal.h>" >&5
32744 $as_echo_n "checking absolute name of <signal.h>... " >&6; }
32745 if ${gl_cv_next_signal_h+:} false; then :
32746 $as_echo_n "(cached) " >&6
32751 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32752 /* end confdefs.h. */
32753 #include <signal.h>
32756 aix*) gl_absname_cpp="$ac_cpp -C" ;;
32757 *) gl_absname_cpp="$ac_cpp" ;;
32762 gl_dirsep_regex='[/\\]'
32765 gl_dirsep_regex='\/'
32768 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
32769 gl_header_literal_regex=`echo 'signal.h' \
32770 | sed -e "$gl_make_literal_regex_sed"`
32771 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
32772 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
32778 gl_cv_absolute_signal_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
32779 sed -n "$gl_absolute_header_sed"`
32781 gl_header=$gl_cv_absolute_signal_h
32782 gl_cv_next_signal_h='"'$gl_header'"'
32786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_signal_h" >&5
32787 $as_echo "$gl_cv_next_signal_h" >&6; }
32789 NEXT_SIGNAL_H=$gl_cv_next_signal_h
32791 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
32792 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
32793 gl_next_as_first_directive='<'signal.h'>'
32795 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
32796 gl_next_as_first_directive=$gl_cv_next_signal_h
32798 NEXT_AS_FIRST_DIRECTIVE_SIGNAL_H=$gl_next_as_first_directive
32804 # AIX declares sig_atomic_t to already include volatile, and C89 compilers
32805 # then choke on 'volatile sig_atomic_t'. C99 requires that it compile.
32806 ac_fn_c_check_type "$LINENO" "volatile sig_atomic_t" "ac_cv_type_volatile_sig_atomic_t" "
32807 #include <signal.h>
32810 if test "x$ac_cv_type_volatile_sig_atomic_t" = xyes; then :
32813 HAVE_TYPE_VOLATILE_SIG_ATOMIC_T=0
32822 ac_fn_c_check_type "$LINENO" "sighandler_t" "ac_cv_type_sighandler_t" "
32823 #include <signal.h>
32826 if test "x$ac_cv_type_sighandler_t" = xyes; then :
32829 HAVE_SIGHANDLER_T=0
32834 for gl_func in pthread_sigmask sigaction sigaddset sigdelset sigemptyset sigfillset sigismember sigpending sigprocmask; do
32835 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
32836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
32837 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
32838 if eval \${$as_gl_Symbol+:} false; then :
32839 $as_echo_n "(cached) " >&6
32841 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32842 /* end confdefs.h. */
32843 #include <signal.h>
32854 if ac_fn_c_try_compile "$LINENO"; then :
32855 eval "$as_gl_Symbol=yes"
32857 eval "$as_gl_Symbol=no"
32859 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32861 eval ac_res=\$$as_gl_Symbol
32862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
32863 $as_echo "$ac_res" >&6; }
32864 if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
32865 cat >>confdefs.h <<_ACEOF
32866 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
32869 eval ac_cv_have_decl_$gl_func=yes
32875 for ac_header in stdint.h
32877 ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
32878 if test "x$ac_cv_header_stdint_h" = xyes; then :
32879 cat >>confdefs.h <<_ACEOF
32880 #define HAVE_STDINT_H 1
32887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SIZE_MAX" >&5
32888 $as_echo_n "checking for SIZE_MAX... " >&6; }
32889 if ${gl_cv_size_max+:} false; then :
32890 $as_echo_n "(cached) " >&6
32894 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32895 /* end confdefs.h. */
32897 #include <limits.h>
32899 #include <stdint.h>
32906 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
32907 $EGREP "Found it" >/dev/null 2>&1; then :
32912 if test -z "$gl_cv_size_max"; then
32913 if ac_fn_c_compute_int "$LINENO" "sizeof (size_t) * CHAR_BIT - 1" "size_t_bits_minus_1" "#include <stddef.h>
32914 #include <limits.h>"; then :
32917 size_t_bits_minus_1=
32920 if ac_fn_c_compute_int "$LINENO" "sizeof (size_t) <= sizeof (unsigned int)" "fits_in_uint" "#include <stddef.h>"; then :
32926 if test -n "$size_t_bits_minus_1" && test -n "$fits_in_uint"; then
32927 if test $fits_in_uint = 1; then
32928 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32929 /* end confdefs.h. */
32930 #include <stddef.h>
32932 extern unsigned long foo;
32942 if ac_fn_c_try_compile "$LINENO"; then :
32945 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32947 if test $fits_in_uint = 1; then
32948 gl_cv_size_max="(((1U << $size_t_bits_minus_1) - 1) * 2 + 1)"
32950 gl_cv_size_max="(((1UL << $size_t_bits_minus_1) - 1) * 2 + 1)"
32953 gl_cv_size_max='((size_t)~(size_t)0)'
32958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_size_max" >&5
32959 $as_echo "$gl_cv_size_max" >&6; }
32960 if test "$gl_cv_size_max" != yes; then
32962 cat >>confdefs.h <<_ACEOF
32963 #define SIZE_MAX $gl_cv_size_max
32971 gl_cv_func_snprintf_usable=no
32972 for ac_func in snprintf
32974 ac_fn_c_check_func "$LINENO" "snprintf" "ac_cv_func_snprintf"
32975 if test "x$ac_cv_func_snprintf" = xyes; then :
32976 cat >>confdefs.h <<_ACEOF
32977 #define HAVE_SNPRINTF 1
32983 if test $ac_cv_func_snprintf = yes; then
32987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether snprintf respects a size of 1" >&5
32988 $as_echo_n "checking whether snprintf respects a size of 1... " >&6; }
32989 if ${gl_cv_func_snprintf_size1+:} false; then :
32990 $as_echo_n "(cached) " >&6
32993 if test "$cross_compiling" = yes; then :
32994 gl_cv_func_snprintf_size1="guessing yes"
32996 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32997 /* end confdefs.h. */
33001 # define my_snprintf snprintf
33003 # include <stdarg.h>
33004 static int my_snprintf (char *buf, int size, const char *format, ...)
33008 va_start (args, format);
33009 ret = vsnprintf (buf, size, format, args);
33016 static char buf[8] = { 'D', 'E', 'A', 'D', 'B', 'E', 'E', 'F' };
33017 my_snprintf (buf, 1, "%d", 12345);
33018 return buf[1] != 'E';
33021 if ac_fn_c_try_run "$LINENO"; then :
33022 gl_cv_func_snprintf_size1=yes
33024 gl_cv_func_snprintf_size1=no
33026 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
33027 conftest.$ac_objext conftest.beam conftest.$ac_ext
33032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_snprintf_size1" >&5
33033 $as_echo "$gl_cv_func_snprintf_size1" >&6; }
33035 case "$gl_cv_func_snprintf_size1" in
33038 case "$gl_cv_func_snprintf_retval_c99" in
33042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether printf supports POSIX/XSI format strings with positions" >&5
33043 $as_echo_n "checking whether printf supports POSIX/XSI format strings with positions... " >&6; }
33044 if ${gl_cv_func_printf_positions+:} false; then :
33045 $as_echo_n "(cached) " >&6
33048 if test "$cross_compiling" = yes; then :
33051 netbsd[1-3]* | netbsdelf[1-3]* | netbsdaout[1-3]* | netbsdcoff[1-3]*)
33052 gl_cv_func_printf_positions="guessing no";;
33053 beos*) gl_cv_func_printf_positions="guessing no";;
33054 mingw* | pw*) gl_cv_func_printf_positions="guessing no";;
33055 *) gl_cv_func_printf_positions="guessing yes";;
33059 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33060 /* end confdefs.h. */
33063 #include <string.h>
33064 /* The string "%2$d %1$d", with dollar characters protected from the shell's
33065 dollar expansion (possibly an autoconf bug). */
33066 static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' };
33067 static char buf[100];
33070 sprintf (buf, format, 33, 55);
33071 return (strcmp (buf, "55 33") != 0);
33074 if ac_fn_c_try_run "$LINENO"; then :
33075 gl_cv_func_printf_positions=yes
33077 gl_cv_func_printf_positions=no
33079 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
33080 conftest.$ac_objext conftest.beam conftest.$ac_ext
33085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_printf_positions" >&5
33086 $as_echo "$gl_cv_func_printf_positions" >&6; }
33088 case "$gl_cv_func_printf_positions" in
33090 gl_cv_func_snprintf_usable=yes
33098 if test $gl_cv_func_snprintf_usable = no; then
33109 ggl_LIBOBJS="$ggl_LIBOBJS snprintf.$ac_objext"
33111 if test $ac_cv_func_snprintf = yes; then
33124 if test $ac_cv_have_decl_snprintf = no; then
33125 HAVE_DECL_SNPRINTF=0
33139 $as_echo "#define GNULIB_TEST_SNPRINTF 1" >>confdefs.h
33145 cat >>confdefs.h <<_ACEOF
33146 #define GNULIB_SNPRINTF 1
33151 if test "$ac_cv_header_winsock2_h" = yes; then
33160 ggl_LIBOBJS="$ggl_LIBOBJS socket.$ac_objext"
33163 # When this module is used, sockets may actually occur as file descriptors,
33164 # hence it is worth warning if the modules 'close' and 'ioctl' are not used.
33168 if test "$ac_cv_header_winsock2_h" = yes; then
33169 UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS=1
33170 SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS=1
33183 $as_echo "#define GNULIB_TEST_SOCKET 1" >>confdefs.h
33189 ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "
33190 /* <sys/types.h> is not needed according to POSIX, but the
33191 <sys/socket.h> in i386-unknown-freebsd4.10 and
33192 powerpc-apple-darwin5.5 required it. */
33193 #include <sys/types.h>
33194 #if HAVE_SYS_SOCKET_H
33195 # include <sys/socket.h>
33196 #elif HAVE_WS2TCPIP_H
33197 # include <ws2tcpip.h>
33201 if test "x$ac_cv_type_socklen_t" = xyes; then :
33204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socklen_t equivalent" >&5
33205 $as_echo_n "checking for socklen_t equivalent... " >&6; }
33206 if ${gl_cv_socklen_t_equiv+:} false; then :
33207 $as_echo_n "(cached) " >&6
33209 # Systems have either "struct sockaddr *" or
33210 # "void *" as the second argument to getpeername
33211 gl_cv_socklen_t_equiv=
33212 for arg2 in "struct sockaddr" void; do
33213 for t in int size_t "unsigned int" "long int" "unsigned long int"; do
33214 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33215 /* end confdefs.h. */
33216 #include <sys/types.h>
33217 #include <sys/socket.h>
33219 int getpeername (int, $arg2 *, $t *);
33224 getpeername (0, 0, &len);
33229 if ac_fn_c_try_compile "$LINENO"; then :
33230 gl_cv_socklen_t_equiv="$t"
33232 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33233 test "$gl_cv_socklen_t_equiv" != "" && break
33235 test "$gl_cv_socklen_t_equiv" != "" && break
33240 if test "$gl_cv_socklen_t_equiv" = ""; then
33241 as_fn_error $? "Cannot find a type to use in place of socklen_t" "$LINENO" 5
33243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_socklen_t_equiv" >&5
33244 $as_echo "$gl_cv_socklen_t_equiv" >&6; }
33246 cat >>confdefs.h <<_ACEOF
33247 #define socklen_t $gl_cv_socklen_t_equiv
33253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ssize_t" >&5
33254 $as_echo_n "checking for ssize_t... " >&6; }
33255 if ${gt_cv_ssize_t+:} false; then :
33256 $as_echo_n "(cached) " >&6
33258 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33259 /* end confdefs.h. */
33260 #include <sys/types.h>
33264 int x = sizeof (ssize_t *) + sizeof (ssize_t);
33270 if ac_fn_c_try_compile "$LINENO"; then :
33275 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_ssize_t" >&5
33278 $as_echo "$gt_cv_ssize_t" >&6; }
33279 if test $gt_cv_ssize_t = no; then
33281 $as_echo "#define ssize_t int" >>confdefs.h
33286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working stdalign.h" >&5
33287 $as_echo_n "checking for working stdalign.h... " >&6; }
33288 if ${gl_cv_header_working_stdalign_h+:} false; then :
33289 $as_echo_n "(cached) " >&6
33291 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33292 /* end confdefs.h. */
33293 #include <stdalign.h>
33294 #include <stddef.h>
33296 /* Test that alignof yields a result consistent with offsetof.
33297 This catches GCC bug 52023
33298 <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52023>. */
33300 template <class t> struct alignof_helper { char a; t b; };
33301 # define ao(type) offsetof (alignof_helper<type>, b)
33303 # define ao(type) offsetof (struct { char a; type b; }, b)
33305 char test_double[ao (double) % _Alignof (double) == 0 ? 1 : -1];
33306 char test_long[ao (long int) % _Alignof (long int) == 0 ? 1 : -1];
33307 char test_alignof[alignof (double) == _Alignof (double) ? 1 : -1];
33309 /* Test _Alignas only on platforms where gnulib can help. */
33311 ((defined __cplusplus && 201103 <= __cplusplus) \
33312 || (defined __APPLE__ && defined __MACH__ \
33313 ? 4 < __GNUC__ + (1 <= __GNUC_MINOR__) \
33315 || __HP_cc || __HP_aCC || __IBMC__ || __IBMCPP__ \
33316 || __ICC || 0x5110 <= __SUNPRO_C \
33317 || 1300 <= _MSC_VER)
33318 struct alignas_test { char c; char alignas (8) alignas_8; };
33319 char test_alignas[offsetof (struct alignas_test, alignas_8) == 8
33331 if ac_fn_c_try_compile "$LINENO"; then :
33332 gl_cv_header_working_stdalign_h=yes
33334 gl_cv_header_working_stdalign_h=no
33336 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_stdalign_h" >&5
33339 $as_echo "$gl_cv_header_working_stdalign_h" >&6; }
33341 if test $gl_cv_header_working_stdalign_h = yes; then
33344 STDALIGN_H='stdalign.h'
33348 if test -n "$STDALIGN_H"; then
33349 GL_GENERATE_STDALIGN_H_TRUE=
33350 GL_GENERATE_STDALIGN_H_FALSE='#'
33352 GL_GENERATE_STDALIGN_H_TRUE='#'
33353 GL_GENERATE_STDALIGN_H_FALSE=
33360 # Define two additional variables used in the Makefile substitution.
33362 if test "$ac_cv_header_stdbool_h" = yes; then
33365 STDBOOL_H='stdbool.h'
33368 if test -n "$STDBOOL_H"; then
33369 GL_GENERATE_STDBOOL_H_TRUE=
33370 GL_GENERATE_STDBOOL_H_FALSE='#'
33372 GL_GENERATE_STDBOOL_H_TRUE='#'
33373 GL_GENERATE_STDBOOL_H_FALSE=
33377 if test "$ac_cv_type__Bool" = yes; then
33388 ac_fn_c_check_type "$LINENO" "max_align_t" "ac_cv_type_max_align_t" "#include <stddef.h>
33391 if test "x$ac_cv_type_max_align_t" = xyes; then :
33394 HAVE_MAX_ALIGN_T=0; STDDEF_H=stddef.h
33397 if test $gt_cv_c_wchar_t = no; then
33401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NULL can be used in arbitrary expressions" >&5
33402 $as_echo_n "checking whether NULL can be used in arbitrary expressions... " >&6; }
33403 if ${gl_cv_decl_null_works+:} false; then :
33404 $as_echo_n "(cached) " >&6
33406 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33407 /* end confdefs.h. */
33408 #include <stddef.h>
33409 int test[2 * (sizeof NULL == sizeof (void *)) -1];
33419 if ac_fn_c_try_compile "$LINENO"; then :
33420 gl_cv_decl_null_works=yes
33422 gl_cv_decl_null_works=no
33424 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_decl_null_works" >&5
33427 $as_echo "$gl_cv_decl_null_works" >&6; }
33428 if test $gl_cv_decl_null_works = no; then
33433 if test -n "$STDDEF_H"; then
33434 GL_GENERATE_STDDEF_H_TRUE=
33435 GL_GENERATE_STDDEF_H_FALSE='#'
33437 GL_GENERATE_STDDEF_H_TRUE='#'
33438 GL_GENERATE_STDDEF_H_FALSE=
33441 if test -n "$STDDEF_H"; then
33450 if test $gl_cv_have_include_next = yes; then
33451 gl_cv_next_stddef_h='<'stddef.h'>'
33453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stddef.h>" >&5
33454 $as_echo_n "checking absolute name of <stddef.h>... " >&6; }
33455 if ${gl_cv_next_stddef_h+:} false; then :
33456 $as_echo_n "(cached) " >&6
33461 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33462 /* end confdefs.h. */
33463 #include <stddef.h>
33466 aix*) gl_absname_cpp="$ac_cpp -C" ;;
33467 *) gl_absname_cpp="$ac_cpp" ;;
33472 gl_dirsep_regex='[/\\]'
33475 gl_dirsep_regex='\/'
33478 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
33479 gl_header_literal_regex=`echo 'stddef.h' \
33480 | sed -e "$gl_make_literal_regex_sed"`
33481 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
33482 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
33488 gl_cv_absolute_stddef_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
33489 sed -n "$gl_absolute_header_sed"`
33491 gl_header=$gl_cv_absolute_stddef_h
33492 gl_cv_next_stddef_h='"'$gl_header'"'
33496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stddef_h" >&5
33497 $as_echo "$gl_cv_next_stddef_h" >&6; }
33499 NEXT_STDDEF_H=$gl_cv_next_stddef_h
33501 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
33502 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
33503 gl_next_as_first_directive='<'stddef.h'>'
33505 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
33506 gl_next_as_first_directive=$gl_cv_next_stddef_h
33508 NEXT_AS_FIRST_DIRECTIVE_STDDEF_H=$gl_next_as_first_directive
33528 if test $gl_cv_have_include_next = yes; then
33529 gl_cv_next_stdio_h='<'stdio.h'>'
33531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdio.h>" >&5
33532 $as_echo_n "checking absolute name of <stdio.h>... " >&6; }
33533 if ${gl_cv_next_stdio_h+:} false; then :
33534 $as_echo_n "(cached) " >&6
33539 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33540 /* end confdefs.h. */
33544 aix*) gl_absname_cpp="$ac_cpp -C" ;;
33545 *) gl_absname_cpp="$ac_cpp" ;;
33550 gl_dirsep_regex='[/\\]'
33553 gl_dirsep_regex='\/'
33556 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
33557 gl_header_literal_regex=`echo 'stdio.h' \
33558 | sed -e "$gl_make_literal_regex_sed"`
33559 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
33560 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
33566 gl_cv_absolute_stdio_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
33567 sed -n "$gl_absolute_header_sed"`
33569 gl_header=$gl_cv_absolute_stdio_h
33570 gl_cv_next_stdio_h='"'$gl_header'"'
33574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdio_h" >&5
33575 $as_echo "$gl_cv_next_stdio_h" >&6; }
33577 NEXT_STDIO_H=$gl_cv_next_stdio_h
33579 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
33580 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
33581 gl_next_as_first_directive='<'stdio.h'>'
33583 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
33584 gl_next_as_first_directive=$gl_cv_next_stdio_h
33586 NEXT_AS_FIRST_DIRECTIVE_STDIO_H=$gl_next_as_first_directive
33595 cat >>confdefs.h <<_ACEOF
33596 #define GNULIB_FSCANF 1
33603 cat >>confdefs.h <<_ACEOF
33604 #define GNULIB_SCANF 1
33629 for gl_func in dprintf fpurge fseeko ftello getdelim getline gets pclose popen renameat snprintf tmpfile vdprintf vsnprintf; do
33630 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
33631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
33632 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
33633 if eval \${$as_gl_Symbol+:} false; then :
33634 $as_echo_n "(cached) " >&6
33636 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33637 /* end confdefs.h. */
33649 if ac_fn_c_try_compile "$LINENO"; then :
33650 eval "$as_gl_Symbol=yes"
33652 eval "$as_gl_Symbol=no"
33654 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33656 eval ac_res=\$$as_gl_Symbol
33657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
33658 $as_echo "$ac_res" >&6; }
33659 if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
33660 cat >>confdefs.h <<_ACEOF
33661 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
33664 eval ac_cv_have_decl_$gl_func=yes
33679 if test $gl_cv_have_include_next = yes; then
33680 gl_cv_next_stdlib_h='<'stdlib.h'>'
33682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdlib.h>" >&5
33683 $as_echo_n "checking absolute name of <stdlib.h>... " >&6; }
33684 if ${gl_cv_next_stdlib_h+:} false; then :
33685 $as_echo_n "(cached) " >&6
33690 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33691 /* end confdefs.h. */
33692 #include <stdlib.h>
33695 aix*) gl_absname_cpp="$ac_cpp -C" ;;
33696 *) gl_absname_cpp="$ac_cpp" ;;
33701 gl_dirsep_regex='[/\\]'
33704 gl_dirsep_regex='\/'
33707 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
33708 gl_header_literal_regex=`echo 'stdlib.h' \
33709 | sed -e "$gl_make_literal_regex_sed"`
33710 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
33711 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
33717 gl_cv_absolute_stdlib_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
33718 sed -n "$gl_absolute_header_sed"`
33720 gl_header=$gl_cv_absolute_stdlib_h
33721 gl_cv_next_stdlib_h='"'$gl_header'"'
33725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdlib_h" >&5
33726 $as_echo "$gl_cv_next_stdlib_h" >&6; }
33728 NEXT_STDLIB_H=$gl_cv_next_stdlib_h
33730 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
33731 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
33732 gl_next_as_first_directive='<'stdlib.h'>'
33734 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
33735 gl_next_as_first_directive=$gl_cv_next_stdlib_h
33737 NEXT_AS_FIRST_DIRECTIVE_STDLIB_H=$gl_next_as_first_directive
33744 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
33745 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
33746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
33747 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
33748 if eval \${$as_gl_Symbol+:} false; then :
33749 $as_echo_n "(cached) " >&6
33751 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33752 /* end confdefs.h. */
33753 #include <stdlib.h>
33754 #if HAVE_SYS_LOADAVG_H
33755 # include <sys/loadavg.h>
33758 # include <random.h>
33770 if ac_fn_c_try_compile "$LINENO"; then :
33771 eval "$as_gl_Symbol=yes"
33773 eval "$as_gl_Symbol=no"
33775 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33777 eval ac_res=\$$as_gl_Symbol
33778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
33779 $as_echo "$ac_res" >&6; }
33780 if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
33781 cat >>confdefs.h <<_ACEOF
33782 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
33785 eval ac_cv_have_decl_$gl_func=yes
33800 if test $ac_cv_func_strdup = yes; then
33801 if test $gl_cv_func_malloc_posix != yes; then
33812 if test $ac_cv_have_decl_strdup = no; then
33816 if test $ac_cv_func_strdup = no || test $REPLACE_STRDUP = 1; then
33825 ggl_LIBOBJS="$ggl_LIBOBJS strdup.$ac_objext"
33840 $as_echo "#define GNULIB_TEST_STRDUP 1" >>confdefs.h
33849 if test "$ERRNO_H:$REPLACE_STRERROR_0" = :0; then
33850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strerror function" >&5
33851 $as_echo_n "checking for working strerror function... " >&6; }
33852 if ${gl_cv_func_working_strerror+:} false; then :
33853 $as_echo_n "(cached) " >&6
33855 if test "$cross_compiling" = yes; then :
33857 # Guess yes on glibc systems.
33858 *-gnu*) gl_cv_func_working_strerror="guessing yes" ;;
33859 # If we don't know, assume the worst.
33860 *) gl_cv_func_working_strerror="guessing no" ;;
33864 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33865 /* end confdefs.h. */
33866 #include <string.h>
33871 if (!*strerror (-2)) return 1;
33876 if ac_fn_c_try_run "$LINENO"; then :
33877 gl_cv_func_working_strerror=yes
33879 gl_cv_func_working_strerror=no
33881 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
33882 conftest.$ac_objext conftest.beam conftest.$ac_ext
33887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_working_strerror" >&5
33888 $as_echo "$gl_cv_func_working_strerror" >&6; }
33889 case "$gl_cv_func_working_strerror" in
33900 if test $REPLACE_STRERROR = 1; then
33909 ggl_LIBOBJS="$ggl_LIBOBJS strerror.$ac_objext"
33914 cat >>confdefs.h <<_ACEOF
33915 #define GNULIB_STRERROR 1
33930 $as_echo "#define GNULIB_TEST_STRERROR 1" >>confdefs.h
33936 if test -n "$ERRNO_H" || test $REPLACE_STRERROR_0 = 1; then
33945 ggl_LIBOBJS="$ggl_LIBOBJS strerror-override.$ac_objext"
33957 if test $ac_cv_header_sys_socket_h != yes; then
33958 for ac_header in winsock2.h
33960 ac_fn_c_check_header_mongrel "$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
33961 if test "x$ac_cv_header_winsock2_h" = xyes; then :
33962 cat >>confdefs.h <<_ACEOF
33963 #define HAVE_WINSOCK2_H 1
33971 if test "$ac_cv_header_winsock2_h" = yes; then
33973 UNISTD_H_HAVE_WINSOCK2_H=1
33974 SYS_IOCTL_H_HAVE_WINSOCK2_H=1
33987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <sys/select.h> is self-contained" >&5
33988 $as_echo_n "checking whether <sys/select.h> is self-contained... " >&6; }
33989 if ${gl_cv_header_sys_select_h_selfcontained+:} false; then :
33990 $as_echo_n "(cached) " >&6
33993 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33994 /* end confdefs.h. */
33995 #include <sys/select.h>
34004 if ac_fn_c_try_compile "$LINENO"; then :
34005 gl_cv_header_sys_select_h_selfcontained=yes
34007 gl_cv_header_sys_select_h_selfcontained=no
34009 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34010 if test $gl_cv_header_sys_select_h_selfcontained = yes; then
34011 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34012 /* end confdefs.h. */
34013 #include <sys/select.h>
34017 int memset; int bzero;
34023 if ac_fn_c_try_compile "$LINENO"; then :
34024 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34025 /* end confdefs.h. */
34026 #include <sys/select.h>
34032 #define memset nonexistent_memset
34037 void *memset (void *, int, unsigned long);
34039 #define bzero nonexistent_bzero
34044 void bzero (void *, unsigned long);
34053 if ac_fn_c_try_link "$LINENO"; then :
34056 gl_cv_header_sys_select_h_selfcontained=no
34058 rm -f core conftest.err conftest.$ac_objext \
34059 conftest$ac_exeext conftest.$ac_ext
34062 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_sys_select_h_selfcontained" >&5
34067 $as_echo "$gl_cv_header_sys_select_h_selfcontained" >&6; }
34083 if test $gl_cv_have_include_next = yes; then
34084 gl_cv_next_sys_select_h='<'sys/select.h'>'
34086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/select.h>" >&5
34087 $as_echo_n "checking absolute name of <sys/select.h>... " >&6; }
34088 if ${gl_cv_next_sys_select_h+:} false; then :
34089 $as_echo_n "(cached) " >&6
34092 if test $ac_cv_header_sys_select_h = yes; then
34097 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34098 /* end confdefs.h. */
34099 #include <sys/select.h>
34102 aix*) gl_absname_cpp="$ac_cpp -C" ;;
34103 *) gl_absname_cpp="$ac_cpp" ;;
34108 gl_dirsep_regex='[/\\]'
34111 gl_dirsep_regex='\/'
34114 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
34115 gl_header_literal_regex=`echo 'sys/select.h' \
34116 | sed -e "$gl_make_literal_regex_sed"`
34117 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
34118 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
34124 gl_cv_absolute_sys_select_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
34125 sed -n "$gl_absolute_header_sed"`
34127 gl_header=$gl_cv_absolute_sys_select_h
34128 gl_cv_next_sys_select_h='"'$gl_header'"'
34130 gl_cv_next_sys_select_h='<'sys/select.h'>'
34135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_select_h" >&5
34136 $as_echo "$gl_cv_next_sys_select_h" >&6; }
34138 NEXT_SYS_SELECT_H=$gl_cv_next_sys_select_h
34140 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
34141 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
34142 gl_next_as_first_directive='<'sys/select.h'>'
34144 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
34145 gl_next_as_first_directive=$gl_cv_next_sys_select_h
34147 NEXT_AS_FIRST_DIRECTIVE_SYS_SELECT_H=$gl_next_as_first_directive
34152 if test $ac_cv_header_sys_select_h = yes; then
34153 HAVE_SYS_SELECT_H=1
34155 HAVE_SYS_SELECT_H=0
34168 if test $ac_cv_header_sys_socket_h != yes; then
34169 for ac_header in winsock2.h
34171 ac_fn_c_check_header_mongrel "$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
34172 if test "x$ac_cv_header_winsock2_h" = xyes; then :
34173 cat >>confdefs.h <<_ACEOF
34174 #define HAVE_WINSOCK2_H 1
34182 if test "$ac_cv_header_winsock2_h" = yes; then
34184 UNISTD_H_HAVE_WINSOCK2_H=1
34185 SYS_IOCTL_H_HAVE_WINSOCK2_H=1
34193 for gl_func in pselect select; do
34194 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
34195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
34196 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
34197 if eval \${$as_gl_Symbol+:} false; then :
34198 $as_echo_n "(cached) " >&6
34200 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34201 /* end confdefs.h. */
34203 /* Some systems require prerequisite headers. */
34204 #include <sys/types.h>
34205 #if !(defined __GLIBC__ && !defined __UCLIBC__) && HAVE_SYS_TIME_H
34206 # include <sys/time.h>
34208 #include <sys/select.h>
34219 if ac_fn_c_try_compile "$LINENO"; then :
34220 eval "$as_gl_Symbol=yes"
34222 eval "$as_gl_Symbol=no"
34224 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34226 eval ac_res=\$$as_gl_Symbol
34227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
34228 $as_echo "$ac_res" >&6; }
34229 if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
34230 cat >>confdefs.h <<_ACEOF
34231 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
34234 eval ac_cv_have_decl_$gl_func=yes
34262 if test $gl_cv_have_include_next = yes; then
34263 gl_cv_next_sys_stat_h='<'sys/stat.h'>'
34265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/stat.h>" >&5
34266 $as_echo_n "checking absolute name of <sys/stat.h>... " >&6; }
34267 if ${gl_cv_next_sys_stat_h+:} false; then :
34268 $as_echo_n "(cached) " >&6
34271 if test $ac_cv_header_sys_stat_h = yes; then
34276 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34277 /* end confdefs.h. */
34278 #include <sys/stat.h>
34281 aix*) gl_absname_cpp="$ac_cpp -C" ;;
34282 *) gl_absname_cpp="$ac_cpp" ;;
34287 gl_dirsep_regex='[/\\]'
34290 gl_dirsep_regex='\/'
34293 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
34294 gl_header_literal_regex=`echo 'sys/stat.h' \
34295 | sed -e "$gl_make_literal_regex_sed"`
34296 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
34297 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
34303 gl_cv_absolute_sys_stat_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
34304 sed -n "$gl_absolute_header_sed"`
34306 gl_header=$gl_cv_absolute_sys_stat_h
34307 gl_cv_next_sys_stat_h='"'$gl_header'"'
34309 gl_cv_next_sys_stat_h='<'sys/stat.h'>'
34314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_stat_h" >&5
34315 $as_echo "$gl_cv_next_sys_stat_h" >&6; }
34317 NEXT_SYS_STAT_H=$gl_cv_next_sys_stat_h
34319 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
34320 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
34321 gl_next_as_first_directive='<'sys/stat.h'>'
34323 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
34324 gl_next_as_first_directive=$gl_cv_next_sys_stat_h
34326 NEXT_AS_FIRST_DIRECTIVE_SYS_STAT_H=$gl_next_as_first_directive
34338 if test $WINDOWS_64_BIT_ST_SIZE = 1; then
34340 $as_echo "#define _GL_WINDOWS_64_BIT_ST_SIZE 1" >>confdefs.h
34344 ac_fn_c_check_type "$LINENO" "nlink_t" "ac_cv_type_nlink_t" "#include <sys/types.h>
34345 #include <sys/stat.h>
34347 if test "x$ac_cv_type_nlink_t" = xyes; then :
34351 $as_echo "#define nlink_t int" >>confdefs.h
34357 for gl_func in fchmodat fstat fstatat futimens lchmod lstat mkdirat mkfifo mkfifoat mknod mknodat stat utimensat; do
34358 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
34359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
34360 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
34361 if eval \${$as_gl_Symbol+:} false; then :
34362 $as_echo_n "(cached) " >&6
34364 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34365 /* end confdefs.h. */
34366 #include <sys/stat.h>
34377 if ac_fn_c_try_compile "$LINENO"; then :
34378 eval "$as_gl_Symbol=yes"
34380 eval "$as_gl_Symbol=no"
34382 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34384 eval ac_res=\$$as_gl_Symbol
34385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
34386 $as_echo "$ac_res" >&6; }
34387 if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
34388 cat >>confdefs.h <<_ACEOF
34389 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
34392 eval ac_cv_have_decl_$gl_func=yes
34421 if test $gl_cv_have_include_next = yes; then
34422 gl_cv_next_sys_uio_h='<'sys/uio.h'>'
34424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/uio.h>" >&5
34425 $as_echo_n "checking absolute name of <sys/uio.h>... " >&6; }
34426 if ${gl_cv_next_sys_uio_h+:} false; then :
34427 $as_echo_n "(cached) " >&6
34430 if test $ac_cv_header_sys_uio_h = yes; then
34435 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34436 /* end confdefs.h. */
34437 #include <sys/uio.h>
34440 aix*) gl_absname_cpp="$ac_cpp -C" ;;
34441 *) gl_absname_cpp="$ac_cpp" ;;
34446 gl_dirsep_regex='[/\\]'
34449 gl_dirsep_regex='\/'
34452 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
34453 gl_header_literal_regex=`echo 'sys/uio.h' \
34454 | sed -e "$gl_make_literal_regex_sed"`
34455 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
34456 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
34462 gl_cv_absolute_sys_uio_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
34463 sed -n "$gl_absolute_header_sed"`
34465 gl_header=$gl_cv_absolute_sys_uio_h
34466 gl_cv_next_sys_uio_h='"'$gl_header'"'
34468 gl_cv_next_sys_uio_h='<'sys/uio.h'>'
34473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_uio_h" >&5
34474 $as_echo "$gl_cv_next_sys_uio_h" >&6; }
34476 NEXT_SYS_UIO_H=$gl_cv_next_sys_uio_h
34478 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
34479 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
34480 gl_next_as_first_directive='<'sys/uio.h'>'
34482 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
34483 gl_next_as_first_directive=$gl_cv_next_sys_uio_h
34485 NEXT_AS_FIRST_DIRECTIVE_SYS_UIO_H=$gl_next_as_first_directive
34490 if test $ac_cv_header_sys_uio_h = yes; then
34507 ac_fn_c_check_decl "$LINENO" "localtime_r" "ac_cv_have_decl_localtime_r" "#include <time.h>
34509 if test "x$ac_cv_have_decl_localtime_r" = xyes; then :
34515 cat >>confdefs.h <<_ACEOF
34516 #define HAVE_DECL_LOCALTIME_R $ac_have_decl
34519 if test $ac_cv_have_decl_localtime_r = no; then
34520 HAVE_DECL_LOCALTIME_R=0
34530 if test $ac_cv_func_localtime_r = yes; then
34532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether localtime_r is compatible with its POSIX signature" >&5
34533 $as_echo_n "checking whether localtime_r is compatible with its POSIX signature... " >&6; }
34534 if ${gl_cv_time_r_posix+:} false; then :
34535 $as_echo_n "(cached) " >&6
34537 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34538 /* end confdefs.h. */
34543 /* We don't need to append 'restrict's to the argument types,
34544 even though the POSIX signature has the 'restrict's,
34545 since C99 says they can't affect type compatibility. */
34546 struct tm * (*ptr) (time_t const *, struct tm *) = localtime_r;
34548 /* Check the return type is a pointer.
34549 On HP-UX 10 it is 'int'. */
34550 *localtime_r (0, 0);
34556 if ac_fn_c_try_compile "$LINENO"; then :
34557 gl_cv_time_r_posix=yes
34559 gl_cv_time_r_posix=no
34561 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_time_r_posix" >&5
34565 $as_echo "$gl_cv_time_r_posix" >&6; }
34566 if test $gl_cv_time_r_posix = yes; then
34567 REPLACE_LOCALTIME_R=0
34569 REPLACE_LOCALTIME_R=1
34575 if test $HAVE_LOCALTIME_R = 0 || test $REPLACE_LOCALTIME_R = 1; then
34584 ggl_LIBOBJS="$ggl_LIBOBJS time_r.$ac_objext"
34601 $as_echo "#define GNULIB_TEST_TIME_R 1" >>confdefs.h
34624 if test $gl_cv_have_include_next = yes; then
34625 gl_cv_next_unistd_h='<'unistd.h'>'
34627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <unistd.h>" >&5
34628 $as_echo_n "checking absolute name of <unistd.h>... " >&6; }
34629 if ${gl_cv_next_unistd_h+:} false; then :
34630 $as_echo_n "(cached) " >&6
34633 if test $ac_cv_header_unistd_h = yes; then
34638 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34639 /* end confdefs.h. */
34640 #include <unistd.h>
34643 aix*) gl_absname_cpp="$ac_cpp -C" ;;
34644 *) gl_absname_cpp="$ac_cpp" ;;
34649 gl_dirsep_regex='[/\\]'
34652 gl_dirsep_regex='\/'
34655 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
34656 gl_header_literal_regex=`echo 'unistd.h' \
34657 | sed -e "$gl_make_literal_regex_sed"`
34658 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
34659 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
34665 gl_cv_absolute_unistd_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
34666 sed -n "$gl_absolute_header_sed"`
34668 gl_header=$gl_cv_absolute_unistd_h
34669 gl_cv_next_unistd_h='"'$gl_header'"'
34671 gl_cv_next_unistd_h='<'unistd.h'>'
34676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_unistd_h" >&5
34677 $as_echo "$gl_cv_next_unistd_h" >&6; }
34679 NEXT_UNISTD_H=$gl_cv_next_unistd_h
34681 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
34682 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
34683 gl_next_as_first_directive='<'unistd.h'>'
34685 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
34686 gl_next_as_first_directive=$gl_cv_next_unistd_h
34688 NEXT_AS_FIRST_DIRECTIVE_UNISTD_H=$gl_next_as_first_directive
34693 if test $ac_cv_header_unistd_h = yes; then
34705 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
34706 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
34707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
34708 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
34709 if eval \${$as_gl_Symbol+:} false; then :
34710 $as_echo_n "(cached) " >&6
34712 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34713 /* end confdefs.h. */
34716 # include <unistd.h>
34718 /* Some systems declare various items in the wrong headers. */
34719 #if !(defined __GLIBC__ && !defined __UCLIBC__)
34720 # include <fcntl.h>
34721 # include <stdio.h>
34722 # include <stdlib.h>
34723 # if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
34737 if ac_fn_c_try_compile "$LINENO"; then :
34738 eval "$as_gl_Symbol=yes"
34740 eval "$as_gl_Symbol=no"
34742 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34744 eval ac_res=\$$as_gl_Symbol
34745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
34746 $as_echo "$ac_res" >&6; }
34747 if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
34748 cat >>confdefs.h <<_ACEOF
34749 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
34752 eval ac_cv_have_decl_$gl_func=yes
34766 if test $ac_cv_have_decl_unsetenv = no; then
34767 HAVE_DECL_UNSETENV=0
34769 for ac_func in unsetenv
34771 ac_fn_c_check_func "$LINENO" "unsetenv" "ac_cv_func_unsetenv"
34772 if test "x$ac_cv_func_unsetenv" = xyes; then :
34773 cat >>confdefs.h <<_ACEOF
34774 #define HAVE_UNSETENV 1
34780 if test $ac_cv_func_unsetenv = no; then
34784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsetenv() return type" >&5
34785 $as_echo_n "checking for unsetenv() return type... " >&6; }
34786 if ${gt_cv_func_unsetenv_ret+:} false; then :
34787 $as_echo_n "(cached) " >&6
34789 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34790 /* end confdefs.h. */
34793 #define _BSD 1 /* unhide unsetenv declaration in OSF/1 5.1 <stdlib.h> */
34794 #include <stdlib.h>
34799 int unsetenv (const char *name);
34809 if ac_fn_c_try_compile "$LINENO"; then :
34810 gt_cv_func_unsetenv_ret='int'
34812 gt_cv_func_unsetenv_ret='void'
34814 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_unsetenv_ret" >&5
34817 $as_echo "$gt_cv_func_unsetenv_ret" >&6; }
34818 if test $gt_cv_func_unsetenv_ret = 'void'; then
34820 $as_echo "#define VOID_UNSETENV 1" >>confdefs.h
34825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether unsetenv obeys POSIX" >&5
34826 $as_echo_n "checking whether unsetenv obeys POSIX... " >&6; }
34827 if ${gl_cv_func_unsetenv_works+:} false; then :
34828 $as_echo_n "(cached) " >&6
34830 if test "$cross_compiling" = yes; then :
34832 # Guess yes on glibc systems.
34833 *-gnu*) gl_cv_func_unsetenv_works="guessing yes" ;;
34834 # If we don't know, assume the worst.
34835 *) gl_cv_func_unsetenv_works="guessing no" ;;
34839 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34840 /* end confdefs.h. */
34842 #include <stdlib.h>
34844 extern char **environ;
34850 char entry1[] = "a=1";
34851 char entry2[] = "b=2";
34852 char *env[] = { entry1, entry2, NULL };
34853 if (putenv ((char *) "a=1")) return 1;
34854 if (putenv (entry2)) return 2;
34857 if (getenv ("a")) return 3;
34858 if (!unsetenv ("") || errno != EINVAL) return 4;
34861 if (!getenv ("a")) return 5;
34864 if (getenv ("a")) return 6;
34870 if ac_fn_c_try_run "$LINENO"; then :
34871 gl_cv_func_unsetenv_works=yes
34873 gl_cv_func_unsetenv_works=no
34875 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
34876 conftest.$ac_objext conftest.beam conftest.$ac_ext
34880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_unsetenv_works" >&5
34881 $as_echo "$gl_cv_func_unsetenv_works" >&6; }
34882 case "$gl_cv_func_unsetenv_works" in
34890 if test $HAVE_UNSETENV = 0 || test $REPLACE_UNSETENV = 1; then
34899 ggl_LIBOBJS="$ggl_LIBOBJS unsetenv.$ac_objext"
34923 $as_echo "#define GNULIB_TEST_UNSETENV 1" >>confdefs.h
34935 if test $ac_cv_func_vasnprintf = no; then
34952 ggl_LIBOBJS="$ggl_LIBOBJS vasnprintf.$ac_objext"
34962 ggl_LIBOBJS="$ggl_LIBOBJS printf-args.$ac_objext"
34972 ggl_LIBOBJS="$ggl_LIBOBJS printf-parse.$ac_objext"
34982 ggl_LIBOBJS="$ggl_LIBOBJS asnprintf.$ac_objext"
34984 if test $ac_cv_func_vasnprintf = yes; then
34986 $as_echo "#define REPLACE_VASNPRINTF 1" >>confdefs.h
35000 ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
35001 if test "x$ac_cv_type_ptrdiff_t" = xyes; then :
35005 $as_echo "#define ptrdiff_t long" >>confdefs.h
35036 if test $gl_cv_have_include_next = yes; then
35037 gl_cv_next_wchar_h='<'wchar.h'>'
35039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <wchar.h>" >&5
35040 $as_echo_n "checking absolute name of <wchar.h>... " >&6; }
35041 if ${gl_cv_next_wchar_h+:} false; then :
35042 $as_echo_n "(cached) " >&6
35045 if test $ac_cv_header_wchar_h = yes; then
35050 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35051 /* end confdefs.h. */
35055 aix*) gl_absname_cpp="$ac_cpp -C" ;;
35056 *) gl_absname_cpp="$ac_cpp" ;;
35061 gl_dirsep_regex='[/\\]'
35064 gl_dirsep_regex='\/'
35067 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
35068 gl_header_literal_regex=`echo 'wchar.h' \
35069 | sed -e "$gl_make_literal_regex_sed"`
35070 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
35071 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
35077 gl_cv_absolute_wchar_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
35078 sed -n "$gl_absolute_header_sed"`
35080 gl_header=$gl_cv_absolute_wchar_h
35081 gl_cv_next_wchar_h='"'$gl_header'"'
35083 gl_cv_next_wchar_h='<'wchar.h'>'
35088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_wchar_h" >&5
35089 $as_echo "$gl_cv_next_wchar_h" >&6; }
35091 NEXT_WCHAR_H=$gl_cv_next_wchar_h
35093 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
35094 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
35095 gl_next_as_first_directive='<'wchar.h'>'
35097 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
35098 gl_next_as_first_directive=$gl_cv_next_wchar_h
35100 NEXT_AS_FIRST_DIRECTIVE_WCHAR_H=$gl_next_as_first_directive
35105 if test $ac_cv_header_wchar_h = yes; then
35115 if test $gt_cv_c_wint_t = yes; then
35123 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
35124 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
35125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
35126 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
35127 if eval \${$as_gl_Symbol+:} false; then :
35128 $as_echo_n "(cached) " >&6
35130 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35131 /* end confdefs.h. */
35133 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
35135 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
35136 included before <wchar.h>. */
35137 #if !(defined __GLIBC__ && !defined __UCLIBC__)
35138 # include <stddef.h>
35139 # include <stdio.h>
35153 if ac_fn_c_try_compile "$LINENO"; then :
35154 eval "$as_gl_Symbol=yes"
35156 eval "$as_gl_Symbol=no"
35158 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35160 eval ac_res=\$$as_gl_Symbol
35161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
35162 $as_echo "$ac_res" >&6; }
35163 if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
35164 cat >>confdefs.h <<_ACEOF
35165 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
35168 eval ac_cv_have_decl_$gl_func=yes
35177 for ac_header in stdint.h
35179 ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
35180 if test "x$ac_cv_header_stdint_h" = xyes; then :
35181 cat >>confdefs.h <<_ACEOF
35182 #define HAVE_STDINT_H 1
35190 # End of code from modules
35211 gl_source_base='tests'
35212 ggltests_WITNESS=IN_`echo "${PACKAGE-$PACKAGE_TARNAME}" | LC_ALL=C tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ | LC_ALL=C sed -e 's/[^A-Z0-9_]/_/g'`_GNULIB_TESTS
35214 gl_module_indicator_condition=$ggltests_WITNESS
35227 # Check whether --enable-gcc-warnings was given.
35228 if test "${enable_gcc_warnings+set}" = set; then :
35229 enableval=$enable_gcc_warnings; case $enableval in
35231 *) as_fn_error $? "bad value $enableval for gcc-warnings option" "$LINENO" 5 ;;
35233 gl_gcc_warnings=$enableval
35240 if test "$gl_gcc_warnings" = yes; then
35241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Werror -Wunknown-warning-option" >&5
35242 $as_echo_n "checking whether C compiler handles -Werror -Wunknown-warning-option... " >&6; }
35243 if ${gl_cv_warn_c__Werror__Wunknown_warning_option+:} false; then :
35244 $as_echo_n "(cached) " >&6
35247 gl_save_compiler_FLAGS="$CFLAGS"
35248 as_fn_append CFLAGS " $gl_unknown_warnings_are_errors -Werror -Wunknown-warning-option"
35249 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35250 /* end confdefs.h. */
35260 if ac_fn_c_try_link "$LINENO"; then :
35261 gl_cv_warn_c__Werror__Wunknown_warning_option=yes
35263 gl_cv_warn_c__Werror__Wunknown_warning_option=no
35265 rm -f core conftest.err conftest.$ac_objext \
35266 conftest$ac_exeext conftest.$ac_ext
35267 CFLAGS="$gl_save_compiler_FLAGS"
35270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Werror__Wunknown_warning_option" >&5
35271 $as_echo "$gl_cv_warn_c__Werror__Wunknown_warning_option" >&6; }
35272 if test "x$gl_cv_warn_c__Werror__Wunknown_warning_option" = xyes; then :
35273 gl_unknown_warnings_are_errors='-Wunknown-warning-option -Werror'
35275 gl_unknown_warnings_are_errors=
35279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wframe-larger-than=1024" >&5
35280 $as_echo_n "checking whether C compiler handles -Wframe-larger-than=1024... " >&6; }
35281 if ${gl_cv_warn_c__Wframe_larger_than_1024+:} false; then :
35282 $as_echo_n "(cached) " >&6
35285 gl_save_compiler_FLAGS="$CFLAGS"
35286 as_fn_append CFLAGS " $gl_unknown_warnings_are_errors -Wframe-larger-than=1024"
35287 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35288 /* end confdefs.h. */
35298 if ac_fn_c_try_link "$LINENO"; then :
35299 gl_cv_warn_c__Wframe_larger_than_1024=yes
35301 gl_cv_warn_c__Wframe_larger_than_1024=no
35303 rm -f core conftest.err conftest.$ac_objext \
35304 conftest$ac_exeext conftest.$ac_ext
35305 CFLAGS="$gl_save_compiler_FLAGS"
35308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wframe_larger_than_1024" >&5
35309 $as_echo "$gl_cv_warn_c__Wframe_larger_than_1024" >&6; }
35310 if test "x$gl_cv_warn_c__Wframe_larger_than_1024" = xyes; then :
35311 as_fn_append WSTACK_CFLAGS " -Wframe-larger-than=1024"
35316 nw="$nw -Wsystem-headers" # Don't let system headers trigger warnings
35317 nw="$nw -Wc++-compat" # We don't care about C++ compilers
35318 nw="$nw -Wundef" # Warns on '#if GNULIB_FOO' etc in gnulib
35319 nw="$nw -Wtraditional" # Warns on #elif which we use often
35320 nw="$nw -Wlogical-op" # Too many false positives
35321 nw="$nw -Wold-style-definition" #
35322 nw="$nw -Wpadded" # Our structs are not padded
35323 nw="$nw -Wunreachable-code" # Too many false positives
35324 nw="$nw -Wtraditional-conversion" # Too many warnings for now
35325 nw="$nw -Wcast-qual" # Too many warnings for now
35326 nw="$nw -Waggregate-return" # Too many warnings for now
35327 nw="$nw -Wshadow" # Too many warnings for now
35328 nw="$nw -Wswitch-default" # Too many warnings for now
35329 nw="$nw -Wswitch-enum" # Too many warnings for now
35330 nw="$nw -Wconversion" # Too many warnings for now
35331 nw="$nw -Wsign-conversion" # Too many warnings for now
35332 nw="$nw -Wformat-y2k" # Too many warnings for now
35333 nw="$nw -Woverlength-strings" # We use some in tests/
35334 nw="$nw -Wvla" # There is no point to avoid C99 variable length arrays
35335 nw="$nw -Wformat-nonliteral" # Incompatible with gettext _()
35336 nw="$nw -Wunsafe-loop-optimizations"
35337 nw="$nw -Wstrict-overflow"
35338 nw="$nw -Wmissing-noreturn"
35339 nw="$nw -Winline" # Too compiler dependent
35340 nw="$nw -Wsuggest-attribute=pure" # Is it worth using attributes?
35341 nw="$nw -Wsuggest-attribute=const" # Is it worth using attributes?
35342 nw="$nw -Wsuggest-attribute=noreturn" # Is it worth using attributes?
35343 nw="$nw -Wstack-protector" # Some functions cannot be protected
35344 nw="$nw -Wredundant-decls" # Some files cannot be compiled with that (gl_fd_to_handle)
35348 if test -n "$GCC"; then
35350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -Wno-missing-field-initializers is supported" >&5
35351 $as_echo_n "checking whether -Wno-missing-field-initializers is supported... " >&6; }
35352 if ${gl_cv_cc_nomfi_supported+:} false; then :
35353 $as_echo_n "(cached) " >&6
35356 gl_save_CFLAGS="$CFLAGS"
35357 CFLAGS="$CFLAGS -W -Werror -Wno-missing-field-initializers"
35358 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35359 /* end confdefs.h. */
35369 if ac_fn_c_try_compile "$LINENO"; then :
35370 gl_cv_cc_nomfi_supported=yes
35372 gl_cv_cc_nomfi_supported=no
35374 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35375 CFLAGS="$gl_save_CFLAGS"
35378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_nomfi_supported" >&5
35379 $as_echo "$gl_cv_cc_nomfi_supported" >&6; }
35381 if test "$gl_cv_cc_nomfi_supported" = yes; then
35382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -Wno-missing-field-initializers is needed" >&5
35383 $as_echo_n "checking whether -Wno-missing-field-initializers is needed... " >&6; }
35384 if ${gl_cv_cc_nomfi_needed+:} false; then :
35385 $as_echo_n "(cached) " >&6
35388 gl_save_CFLAGS="$CFLAGS"
35389 CFLAGS="$CFLAGS -W -Werror"
35390 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35391 /* end confdefs.h. */
35394 typedef struct { int a; int b; } s_t;
35406 if ac_fn_c_try_compile "$LINENO"; then :
35407 gl_cv_cc_nomfi_needed=no
35409 gl_cv_cc_nomfi_needed=yes
35411 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35412 CFLAGS="$gl_save_CFLAGS"
35416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_nomfi_needed" >&5
35417 $as_echo "$gl_cv_cc_nomfi_needed" >&6; }
35420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -Wuninitialized is supported" >&5
35421 $as_echo_n "checking whether -Wuninitialized is supported... " >&6; }
35422 if ${gl_cv_cc_uninitialized_supported+:} false; then :
35423 $as_echo_n "(cached) " >&6
35426 gl_save_CFLAGS="$CFLAGS"
35427 CFLAGS="$CFLAGS -Werror -Wuninitialized"
35428 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35429 /* end confdefs.h. */
35439 if ac_fn_c_try_compile "$LINENO"; then :
35440 gl_cv_cc_uninitialized_supported=yes
35442 gl_cv_cc_uninitialized_supported=no
35444 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35445 CFLAGS="$gl_save_CFLAGS"
35448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_uninitialized_supported" >&5
35449 $as_echo "$gl_cv_cc_uninitialized_supported" >&6; }
35453 # List all gcc warning categories.
35454 # To compare this list to your installed GCC's, run this Bash command:
35457 # <(sed -n 's/^ *\(-[^ ]*\) .*/\1/p' manywarnings.m4 | sort) \
35458 # <(gcc --help=warnings | sed -n 's/^ \(-[^ ]*\) .*/\1/p' | sort |
35460 # awk '/^[^#]/ {print ws}' ../build-aux/gcc-warning.spec))
35463 for gl_manywarn_item in \
35467 -Waggressive-loop-optimizations \
35471 -Wbad-function-cast \
35472 -Wbuiltin-macro-redefined \
35474 -Wchar-subscripts \
35478 -Wcoverage-mismatch \
35482 -Wdeprecated-declarations \
35483 -Wdisabled-optimization \
35485 -Wdouble-promotion \
35490 -Wformat-contains-nul \
35491 -Wformat-extra-args \
35492 -Wformat-nonliteral \
35493 -Wformat-security \
35495 -Wformat-zero-length \
35496 -Wfree-nonheap-object \
35497 -Wignored-qualifiers \
35499 -Wimplicit-function-declaration \
35503 -Wint-to-pointer-cast \
35504 -Winvalid-memory-model \
35506 -Wjump-misses-init \
35509 -Wmaybe-uninitialized \
35511 -Wmissing-declarations \
35512 -Wmissing-field-initializers \
35513 -Wmissing-include-dirs \
35514 -Wmissing-parameter-type \
35515 -Wmissing-prototypes \
35520 -Wold-style-declaration \
35521 -Wold-style-definition \
35524 -Woverlength-strings \
35527 -Wpacked-bitfield-compat \
35531 -Wpointer-to-int-cast \
35533 -Wreturn-local-addr \
35537 -Wsizeof-pointer-memaccess \
35538 -Wstack-protector \
35539 -Wstrict-aliasing \
35540 -Wstrict-overflow \
35541 -Wstrict-prototypes \
35542 -Wsuggest-attribute=const \
35543 -Wsuggest-attribute=format \
35544 -Wsuggest-attribute=noreturn \
35545 -Wsuggest-attribute=pure \
35554 -Wunknown-pragmas \
35555 -Wunsafe-loop-optimizations \
35557 -Wunused-but-set-parameter \
35558 -Wunused-but-set-variable \
35559 -Wunused-function \
35561 -Wunused-local-typedefs \
35563 -Wunused-parameter \
35566 -Wunused-variable \
35568 -Wvariadic-macros \
35569 -Wvector-operation-performance \
35571 -Wvolatile-register-var \
35575 gl_manywarn_set="$gl_manywarn_set $gl_manywarn_item"
35578 # gcc --help=warnings outputs an unusual form for this option; list
35579 # it here so that the above 'comm' command doesn't report a false match.
35580 gl_manywarn_set="$gl_manywarn_set -Wnormalized=nfc"
35582 # These are needed for older GCC versions.
35583 if test -n "$GCC"; then
35584 case `($CC --version) 2>/dev/null` in
35585 'gcc (GCC) '[0-3].* | \
35586 'gcc (GCC) '4.[0-7].*)
35587 gl_manywarn_set="$gl_manywarn_set -fdiagnostics-show-option"
35588 gl_manywarn_set="$gl_manywarn_set -funit-at-a-time"
35593 # Disable specific options as needed.
35594 if test "$gl_cv_cc_nomfi_needed" = yes; then
35595 gl_manywarn_set="$gl_manywarn_set -Wno-missing-field-initializers"
35598 if test "$gl_cv_cc_uninitialized_supported" = no; then
35599 gl_manywarn_set="$gl_manywarn_set -Wno-uninitialized"
35602 ws=$gl_manywarn_set
35610 *" $gl_warn_item "*)
35613 gl_warn_set="$gl_warn_set $gl_warn_item"
35621 as_gl_Warn=`$as_echo "gl_cv_warn_c_$w" | $as_tr_sh`
35623 case $gl_positive in
35624 -Wno-*) gl_positive=-W`expr "X$gl_positive" : 'X-Wno-\(.*\)'` ;;
35626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles $w" >&5
35627 $as_echo_n "checking whether C compiler handles $w... " >&6; }
35628 if eval \${$as_gl_Warn+:} false; then :
35629 $as_echo_n "(cached) " >&6
35632 gl_save_compiler_FLAGS="$CFLAGS"
35633 as_fn_append CFLAGS " $gl_unknown_warnings_are_errors $gl_positive"
35634 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35635 /* end confdefs.h. */
35645 if ac_fn_c_try_link "$LINENO"; then :
35646 eval "$as_gl_Warn=yes"
35648 eval "$as_gl_Warn=no"
35650 rm -f core conftest.err conftest.$ac_objext \
35651 conftest$ac_exeext conftest.$ac_ext
35652 CFLAGS="$gl_save_compiler_FLAGS"
35655 eval ac_res=\$$as_gl_Warn
35656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
35657 $as_echo "$ac_res" >&6; }
35658 if eval test \"x\$"$as_gl_Warn"\" = x"yes"; then :
35659 as_fn_append WARN_CFLAGS " $w"
35666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-missing-field-initializers" >&5
35667 $as_echo_n "checking whether C compiler handles -Wno-missing-field-initializers... " >&6; }
35668 if ${gl_cv_warn_c__Wno_missing_field_initializers+:} false; then :
35669 $as_echo_n "(cached) " >&6
35672 gl_save_compiler_FLAGS="$CFLAGS"
35673 as_fn_append CFLAGS " $gl_unknown_warnings_are_errors -Wmissing-field-initializers"
35674 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35675 /* end confdefs.h. */
35685 if ac_fn_c_try_link "$LINENO"; then :
35686 gl_cv_warn_c__Wno_missing_field_initializers=yes
35688 gl_cv_warn_c__Wno_missing_field_initializers=no
35690 rm -f core conftest.err conftest.$ac_objext \
35691 conftest$ac_exeext conftest.$ac_ext
35692 CFLAGS="$gl_save_compiler_FLAGS"
35695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_missing_field_initializers" >&5
35696 $as_echo "$gl_cv_warn_c__Wno_missing_field_initializers" >&6; }
35697 if test "x$gl_cv_warn_c__Wno_missing_field_initializers" = xyes; then :
35698 as_fn_append WARN_CFLAGS " -Wno-missing-field-initializers"
35703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-format-y2k" >&5
35704 $as_echo_n "checking whether C compiler handles -Wno-format-y2k... " >&6; }
35705 if ${gl_cv_warn_c__Wno_format_y2k+:} false; then :
35706 $as_echo_n "(cached) " >&6
35709 gl_save_compiler_FLAGS="$CFLAGS"
35710 as_fn_append CFLAGS " $gl_unknown_warnings_are_errors -Wformat-y2k"
35711 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35712 /* end confdefs.h. */
35722 if ac_fn_c_try_link "$LINENO"; then :
35723 gl_cv_warn_c__Wno_format_y2k=yes
35725 gl_cv_warn_c__Wno_format_y2k=no
35727 rm -f core conftest.err conftest.$ac_objext \
35728 conftest$ac_exeext conftest.$ac_ext
35729 CFLAGS="$gl_save_compiler_FLAGS"
35732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_format_y2k" >&5
35733 $as_echo "$gl_cv_warn_c__Wno_format_y2k" >&6; }
35734 if test "x$gl_cv_warn_c__Wno_format_y2k" = xyes; then :
35735 as_fn_append WARN_CFLAGS " -Wno-format-y2k"
35738 # Too many warnings for now
35740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-unused-value" >&5
35741 $as_echo_n "checking whether C compiler handles -Wno-unused-value... " >&6; }
35742 if ${gl_cv_warn_c__Wno_unused_value+:} false; then :
35743 $as_echo_n "(cached) " >&6
35746 gl_save_compiler_FLAGS="$CFLAGS"
35747 as_fn_append CFLAGS " $gl_unknown_warnings_are_errors -Wunused-value"
35748 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35749 /* end confdefs.h. */
35759 if ac_fn_c_try_link "$LINENO"; then :
35760 gl_cv_warn_c__Wno_unused_value=yes
35762 gl_cv_warn_c__Wno_unused_value=no
35764 rm -f core conftest.err conftest.$ac_objext \
35765 conftest$ac_exeext conftest.$ac_ext
35766 CFLAGS="$gl_save_compiler_FLAGS"
35769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_unused_value" >&5
35770 $as_echo "$gl_cv_warn_c__Wno_unused_value" >&6; }
35771 if test "x$gl_cv_warn_c__Wno_unused_value" = xyes; then :
35772 as_fn_append WARN_CFLAGS " -Wno-unused-value"
35775 # warnings for things we don't want to get
35777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-unused-result" >&5
35778 $as_echo_n "checking whether C compiler handles -Wno-unused-result... " >&6; }
35779 if ${gl_cv_warn_c__Wno_unused_result+:} false; then :
35780 $as_echo_n "(cached) " >&6
35783 gl_save_compiler_FLAGS="$CFLAGS"
35784 as_fn_append CFLAGS " $gl_unknown_warnings_are_errors -Wunused-result"
35785 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35786 /* end confdefs.h. */
35796 if ac_fn_c_try_link "$LINENO"; then :
35797 gl_cv_warn_c__Wno_unused_result=yes
35799 gl_cv_warn_c__Wno_unused_result=no
35801 rm -f core conftest.err conftest.$ac_objext \
35802 conftest$ac_exeext conftest.$ac_ext
35803 CFLAGS="$gl_save_compiler_FLAGS"
35806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_unused_result" >&5
35807 $as_echo "$gl_cv_warn_c__Wno_unused_result" >&6; }
35808 if test "x$gl_cv_warn_c__Wno_unused_result" = xyes; then :
35809 as_fn_append WARN_CFLAGS " -Wno-unused-result"
35812 # warnings for things we don't want to get
35814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-unused-parameter" >&5
35815 $as_echo_n "checking whether C compiler handles -Wno-unused-parameter... " >&6; }
35816 if ${gl_cv_warn_c__Wno_unused_parameter+:} false; then :
35817 $as_echo_n "(cached) " >&6
35820 gl_save_compiler_FLAGS="$CFLAGS"
35821 as_fn_append CFLAGS " $gl_unknown_warnings_are_errors -Wunused-parameter"
35822 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35823 /* end confdefs.h. */
35833 if ac_fn_c_try_link "$LINENO"; then :
35834 gl_cv_warn_c__Wno_unused_parameter=yes
35836 gl_cv_warn_c__Wno_unused_parameter=no
35838 rm -f core conftest.err conftest.$ac_objext \
35839 conftest$ac_exeext conftest.$ac_ext
35840 CFLAGS="$gl_save_compiler_FLAGS"
35843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_unused_parameter" >&5
35844 $as_echo "$gl_cv_warn_c__Wno_unused_parameter" >&6; }
35845 if test "x$gl_cv_warn_c__Wno_unused_parameter" = xyes; then :
35846 as_fn_append WARN_CFLAGS " -Wno-unused-parameter"
35849 # Too many warnings for now
35851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-stack-protector" >&5
35852 $as_echo_n "checking whether C compiler handles -Wno-stack-protector... " >&6; }
35853 if ${gl_cv_warn_c__Wno_stack_protector+:} false; then :
35854 $as_echo_n "(cached) " >&6
35857 gl_save_compiler_FLAGS="$CFLAGS"
35858 as_fn_append CFLAGS " $gl_unknown_warnings_are_errors -Wstack-protector"
35859 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35860 /* end confdefs.h. */
35870 if ac_fn_c_try_link "$LINENO"; then :
35871 gl_cv_warn_c__Wno_stack_protector=yes
35873 gl_cv_warn_c__Wno_stack_protector=no
35875 rm -f core conftest.err conftest.$ac_objext \
35876 conftest$ac_exeext conftest.$ac_ext
35877 CFLAGS="$gl_save_compiler_FLAGS"
35880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_stack_protector" >&5
35881 $as_echo "$gl_cv_warn_c__Wno_stack_protector" >&6; }
35882 if test "x$gl_cv_warn_c__Wno_stack_protector" = xyes; then :
35883 as_fn_append WARN_CFLAGS " -Wno-stack-protector"
35886 # Some functions cannot be protected
35888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-int-to-pointer-cast" >&5
35889 $as_echo_n "checking whether C compiler handles -Wno-int-to-pointer-cast... " >&6; }
35890 if ${gl_cv_warn_c__Wno_int_to_pointer_cast+:} false; then :
35891 $as_echo_n "(cached) " >&6
35894 gl_save_compiler_FLAGS="$CFLAGS"
35895 as_fn_append CFLAGS " $gl_unknown_warnings_are_errors -Wint-to-pointer-cast"
35896 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35897 /* end confdefs.h. */
35907 if ac_fn_c_try_link "$LINENO"; then :
35908 gl_cv_warn_c__Wno_int_to_pointer_cast=yes
35910 gl_cv_warn_c__Wno_int_to_pointer_cast=no
35912 rm -f core conftest.err conftest.$ac_objext \
35913 conftest$ac_exeext conftest.$ac_ext
35914 CFLAGS="$gl_save_compiler_FLAGS"
35917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_int_to_pointer_cast" >&5
35918 $as_echo "$gl_cv_warn_c__Wno_int_to_pointer_cast" >&6; }
35919 if test "x$gl_cv_warn_c__Wno_int_to_pointer_cast" = xyes; then :
35920 as_fn_append WARN_CFLAGS " -Wno-int-to-pointer-cast"
35923 # Some files cannot be compiled with that (gl_fd_to_handle)
35925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -fdiagnostics-show-option" >&5
35926 $as_echo_n "checking whether C compiler handles -fdiagnostics-show-option... " >&6; }
35927 if ${gl_cv_warn_c__fdiagnostics_show_option+:} false; then :
35928 $as_echo_n "(cached) " >&6
35931 gl_save_compiler_FLAGS="$CFLAGS"
35932 as_fn_append CFLAGS " $gl_unknown_warnings_are_errors -fdiagnostics-show-option"
35933 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35934 /* end confdefs.h. */
35944 if ac_fn_c_try_link "$LINENO"; then :
35945 gl_cv_warn_c__fdiagnostics_show_option=yes
35947 gl_cv_warn_c__fdiagnostics_show_option=no
35949 rm -f core conftest.err conftest.$ac_objext \
35950 conftest$ac_exeext conftest.$ac_ext
35951 CFLAGS="$gl_save_compiler_FLAGS"
35954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__fdiagnostics_show_option" >&5
35955 $as_echo "$gl_cv_warn_c__fdiagnostics_show_option" >&6; }
35956 if test "x$gl_cv_warn_c__fdiagnostics_show_option" = xyes; then :
35957 as_fn_append WARN_CFLAGS " -fdiagnostics-show-option"
35967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
35968 $as_echo_n "checking whether ln -s works... " >&6; }
35970 if test "$LN_S" = "ln -s"; then
35971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35972 $as_echo "yes" >&6; }
35974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
35975 $as_echo "no, using $LN_S" >&6; }
35980 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
35981 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
35986 macro_version='2.4.2'
35987 macro_revision='1.3337'
36001 ltmain="$ac_aux_dir/ltmain.sh"
36003 # Backslashify metacharacters that are still active within
36004 # double-quoted strings.
36005 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
36007 # Same as above, but do not quote variable references.
36008 double_quote_subst='s/\(["`\\]\)/\\\1/g'
36010 # Sed substitution to delay expansion of an escaped shell variable in a
36011 # double_quote_subst'ed string.
36012 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
36014 # Sed substitution to delay expansion of an escaped single quote.
36015 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
36017 # Sed substitution to avoid accidental globbing in evaled expressions
36018 no_glob_subst='s/\*/\\\*/g'
36020 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
36021 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
36022 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
36024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
36025 $as_echo_n "checking how to print strings... " >&6; }
36026 # Test print first, because it will be a builtin if present.
36027 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
36028 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
36030 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
36033 # Use this function as a fallback that always works.
36034 func_fallback_echo ()
36036 eval 'cat <<_LTECHO_EOF
36040 ECHO='func_fallback_echo'
36043 # func_echo_all arg...
36044 # Invoke $ECHO with all args, space-separated.
36051 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
36052 $as_echo "printf" >&6; } ;;
36053 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
36054 $as_echo "print -r" >&6; } ;;
36055 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
36056 $as_echo "cat" >&6; } ;;
36072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
36073 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
36074 if ${ac_cv_path_SED+:} false; then :
36075 $as_echo_n "(cached) " >&6
36077 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
36078 for ac_i in 1 2 3 4 5 6 7; do
36079 ac_script="$ac_script$as_nl$ac_script"
36081 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
36082 { ac_script=; unset ac_script;}
36083 if test -z "$SED"; then
36084 ac_path_SED_found=false
36085 # Loop through the user's path and test for each of PROGNAME-LIST
36086 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
36087 for as_dir in $PATH
36090 test -z "$as_dir" && as_dir=.
36091 for ac_prog in sed gsed; do
36092 for ac_exec_ext in '' $ac_executable_extensions; do
36093 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
36094 as_fn_executable_p "$ac_path_SED" || continue
36095 # Check for GNU ac_path_SED and select it if it is found.
36096 # Check for GNU $ac_path_SED
36097 case `"$ac_path_SED" --version 2>&1` in
36099 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
36102 $as_echo_n 0123456789 >"conftest.in"
36105 cat "conftest.in" "conftest.in" >"conftest.tmp"
36106 mv "conftest.tmp" "conftest.in"
36107 cp "conftest.in" "conftest.nl"
36108 $as_echo '' >> "conftest.nl"
36109 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
36110 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
36111 as_fn_arith $ac_count + 1 && ac_count=$as_val
36112 if test $ac_count -gt ${ac_path_SED_max-0}; then
36113 # Best one so far, save it but keep looking for a better one
36114 ac_cv_path_SED="$ac_path_SED"
36115 ac_path_SED_max=$ac_count
36117 # 10*(2^10) chars as input seems more than enough
36118 test $ac_count -gt 10 && break
36120 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
36123 $ac_path_SED_found && break 3
36128 if test -z "$ac_cv_path_SED"; then
36129 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
36132 ac_cv_path_SED=$SED
36136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
36137 $as_echo "$ac_cv_path_SED" >&6; }
36138 SED="$ac_cv_path_SED"
36141 test -z "$SED" && SED=sed
36142 Xsed="$SED -e 1s/^X//"
36154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
36155 $as_echo_n "checking for fgrep... " >&6; }
36156 if ${ac_cv_path_FGREP+:} false; then :
36157 $as_echo_n "(cached) " >&6
36159 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
36160 then ac_cv_path_FGREP="$GREP -F"
36162 if test -z "$FGREP"; then
36163 ac_path_FGREP_found=false
36164 # Loop through the user's path and test for each of PROGNAME-LIST
36165 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
36166 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
36169 test -z "$as_dir" && as_dir=.
36170 for ac_prog in fgrep; do
36171 for ac_exec_ext in '' $ac_executable_extensions; do
36172 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
36173 as_fn_executable_p "$ac_path_FGREP" || continue
36174 # Check for GNU ac_path_FGREP and select it if it is found.
36175 # Check for GNU $ac_path_FGREP
36176 case `"$ac_path_FGREP" --version 2>&1` in
36178 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
36181 $as_echo_n 0123456789 >"conftest.in"
36184 cat "conftest.in" "conftest.in" >"conftest.tmp"
36185 mv "conftest.tmp" "conftest.in"
36186 cp "conftest.in" "conftest.nl"
36187 $as_echo 'FGREP' >> "conftest.nl"
36188 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
36189 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
36190 as_fn_arith $ac_count + 1 && ac_count=$as_val
36191 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
36192 # Best one so far, save it but keep looking for a better one
36193 ac_cv_path_FGREP="$ac_path_FGREP"
36194 ac_path_FGREP_max=$ac_count
36196 # 10*(2^10) chars as input seems more than enough
36197 test $ac_count -gt 10 && break
36199 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
36202 $ac_path_FGREP_found && break 3
36207 if test -z "$ac_cv_path_FGREP"; then
36208 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
36211 ac_cv_path_FGREP=$FGREP
36216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
36217 $as_echo "$ac_cv_path_FGREP" >&6; }
36218 FGREP="$ac_cv_path_FGREP"
36221 test -z "$GREP" && GREP=grep
36241 # Check whether --with-gnu-ld was given.
36242 if test "${with_gnu_ld+set}" = set; then :
36243 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
36249 if test "$GCC" = yes; then
36250 # Check if gcc -print-prog-name=ld gives a path.
36251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
36252 $as_echo_n "checking for ld used by $CC... " >&6; }
36255 # gcc leaves a trailing carriage return which upsets mingw
36256 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
36258 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
36261 # Accept absolute paths.
36263 re_direlt='/[^/][^/]*/\.\./'
36264 # Canonicalize the pathname of ld
36265 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
36266 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
36267 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
36269 test -z "$LD" && LD="$ac_prog"
36272 # If it fails, then pretend we aren't using GCC.
36276 # If it is relative, then search for the first ld in PATH.
36277 with_gnu_ld=unknown
36280 elif test "$with_gnu_ld" = yes; then
36281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
36282 $as_echo_n "checking for GNU ld... " >&6; }
36284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
36285 $as_echo_n "checking for non-GNU ld... " >&6; }
36287 if ${lt_cv_path_LD+:} false; then :
36288 $as_echo_n "(cached) " >&6
36290 if test -z "$LD"; then
36291 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
36292 for ac_dir in $PATH; do
36294 test -z "$ac_dir" && ac_dir=.
36295 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
36296 lt_cv_path_LD="$ac_dir/$ac_prog"
36297 # Check to see if the program is GNU ld. I'd rather use --version,
36298 # but apparently some variants of GNU ld only accept -v.
36299 # Break only if it was the GNU/non-GNU ld that we prefer.
36300 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
36301 *GNU* | *'with BFD'*)
36302 test "$with_gnu_ld" != no && break
36305 test "$with_gnu_ld" != yes && break
36312 lt_cv_path_LD="$LD" # Let the user override the test with a path.
36316 LD="$lt_cv_path_LD"
36317 if test -n "$LD"; then
36318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
36319 $as_echo "$LD" >&6; }
36321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36322 $as_echo "no" >&6; }
36324 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
36325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
36326 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
36327 if ${lt_cv_prog_gnu_ld+:} false; then :
36328 $as_echo_n "(cached) " >&6
36330 # I'd rather use --version here, but apparently some GNU lds only accept -v.
36331 case `$LD -v 2>&1 </dev/null` in
36332 *GNU* | *'with BFD'*)
36333 lt_cv_prog_gnu_ld=yes
36336 lt_cv_prog_gnu_ld=no
36340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
36341 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
36342 with_gnu_ld=$lt_cv_prog_gnu_ld
36352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
36353 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
36354 if ${lt_cv_path_NM+:} false; then :
36355 $as_echo_n "(cached) " >&6
36357 if test -n "$NM"; then
36358 # Let the user override the test.
36359 lt_cv_path_NM="$NM"
36361 lt_nm_to_check="${ac_tool_prefix}nm"
36362 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
36363 lt_nm_to_check="$lt_nm_to_check nm"
36365 for lt_tmp_nm in $lt_nm_to_check; do
36366 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
36367 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
36369 test -z "$ac_dir" && ac_dir=.
36370 tmp_nm="$ac_dir/$lt_tmp_nm"
36371 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
36372 # Check to see if the nm accepts a BSD-compat flag.
36373 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
36374 # nm: unknown option "B" ignored
36375 # Tru64's nm complains that /dev/null is an invalid object file
36376 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
36377 */dev/null* | *'Invalid file or object type'*)
36378 lt_cv_path_NM="$tmp_nm -B"
36382 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
36384 lt_cv_path_NM="$tmp_nm -p"
36388 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
36389 continue # so that we can try to find one that supports BSD flags
36398 : ${lt_cv_path_NM=no}
36401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
36402 $as_echo "$lt_cv_path_NM" >&6; }
36403 if test "$lt_cv_path_NM" != "no"; then
36404 NM="$lt_cv_path_NM"
36406 # Didn't find any BSD compatible name lister, look for dumpbin.
36407 if test -n "$DUMPBIN"; then :
36408 # Let the user override the test.
36410 if test -n "$ac_tool_prefix"; then
36411 for ac_prog in dumpbin "link -dump"
36413 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
36414 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
36415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
36416 $as_echo_n "checking for $ac_word... " >&6; }
36417 if ${ac_cv_prog_DUMPBIN+:} false; then :
36418 $as_echo_n "(cached) " >&6
36420 if test -n "$DUMPBIN"; then
36421 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
36423 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
36424 for as_dir in $PATH
36427 test -z "$as_dir" && as_dir=.
36428 for ac_exec_ext in '' $ac_executable_extensions; do
36429 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
36430 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
36431 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
36440 DUMPBIN=$ac_cv_prog_DUMPBIN
36441 if test -n "$DUMPBIN"; then
36442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
36443 $as_echo "$DUMPBIN" >&6; }
36445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36446 $as_echo "no" >&6; }
36450 test -n "$DUMPBIN" && break
36453 if test -z "$DUMPBIN"; then
36454 ac_ct_DUMPBIN=$DUMPBIN
36455 for ac_prog in dumpbin "link -dump"
36457 # Extract the first word of "$ac_prog", so it can be a program name with args.
36458 set dummy $ac_prog; ac_word=$2
36459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
36460 $as_echo_n "checking for $ac_word... " >&6; }
36461 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
36462 $as_echo_n "(cached) " >&6
36464 if test -n "$ac_ct_DUMPBIN"; then
36465 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
36467 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
36468 for as_dir in $PATH
36471 test -z "$as_dir" && as_dir=.
36472 for ac_exec_ext in '' $ac_executable_extensions; do
36473 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
36474 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
36475 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
36484 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
36485 if test -n "$ac_ct_DUMPBIN"; then
36486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
36487 $as_echo "$ac_ct_DUMPBIN" >&6; }
36489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36490 $as_echo "no" >&6; }
36494 test -n "$ac_ct_DUMPBIN" && break
36497 if test "x$ac_ct_DUMPBIN" = x; then
36500 case $cross_compiling:$ac_tool_warned in
36502 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
36503 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
36504 ac_tool_warned=yes ;;
36506 DUMPBIN=$ac_ct_DUMPBIN
36510 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
36512 DUMPBIN="$DUMPBIN -symbols"
36520 if test "$DUMPBIN" != ":"; then
36524 test -z "$NM" && NM=nm
36531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
36532 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
36533 if ${lt_cv_nm_interface+:} false; then :
36534 $as_echo_n "(cached) " >&6
36536 lt_cv_nm_interface="BSD nm"
36537 echo "int some_variable = 0;" > conftest.$ac_ext
36538 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
36539 (eval "$ac_compile" 2>conftest.err)
36540 cat conftest.err >&5
36541 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
36542 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
36543 cat conftest.err >&5
36544 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
36545 cat conftest.out >&5
36546 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
36547 lt_cv_nm_interface="MS dumpbin"
36551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
36552 $as_echo "$lt_cv_nm_interface" >&6; }
36554 # find the maximum length of command line arguments
36555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
36556 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
36557 if ${lt_cv_sys_max_cmd_len+:} false; then :
36558 $as_echo_n "(cached) " >&6
36565 # On DJGPP, this test can blow up pretty badly due to problems in libc
36566 # (any single argument exceeding 2000 bytes causes a buffer overrun
36567 # during glob expansion). Even if it were fixed, the result of this
36568 # check would be larger than it should be.
36569 lt_cv_sys_max_cmd_len=12288; # 12K is about right
36573 # Under GNU Hurd, this test is not required because there is
36574 # no limit to the length of command line arguments.
36575 # Libtool will interpret -1 as no limit whatsoever
36576 lt_cv_sys_max_cmd_len=-1;
36579 cygwin* | mingw* | cegcc*)
36580 # On Win9x/ME, this test blows up -- it succeeds, but takes
36581 # about 5 minutes as the teststring grows exponentially.
36582 # Worse, since 9x/ME are not pre-emptively multitasking,
36583 # you end up with a "frozen" computer, even though with patience
36584 # the test eventually succeeds (with a max line length of 256k).
36585 # Instead, let's just punt: use the minimum linelength reported by
36586 # all of the supported platforms: 8192 (on NT/2K/XP).
36587 lt_cv_sys_max_cmd_len=8192;
36591 # On MiNT this can take a long time and run out of memory.
36592 lt_cv_sys_max_cmd_len=8192;
36596 # On AmigaOS with pdksh, this test takes hours, literally.
36597 # So we just punt and use a minimum line length of 8192.
36598 lt_cv_sys_max_cmd_len=8192;
36601 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
36602 # This has been around since 386BSD, at least. Likely further.
36603 if test -x /sbin/sysctl; then
36604 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
36605 elif test -x /usr/sbin/sysctl; then
36606 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
36608 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
36610 # And add a safety zone
36611 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
36612 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
36616 # We know the value 262144 and hardcode it with a safety zone (like BSD)
36617 lt_cv_sys_max_cmd_len=196608
36621 # The test takes a long time on OS/2.
36622 lt_cv_sys_max_cmd_len=8192
36626 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
36627 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
36628 # nice to cause kernel panics so lets avoid the loop below.
36629 # First set a reasonable default.
36630 lt_cv_sys_max_cmd_len=16384
36632 if test -x /sbin/sysconfig; then
36633 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
36634 *1*) lt_cv_sys_max_cmd_len=-1 ;;
36639 lt_cv_sys_max_cmd_len=102400
36641 sysv5* | sco5v6* | sysv4.2uw2*)
36642 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
36643 if test -n "$kargmax"; then
36644 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
36646 lt_cv_sys_max_cmd_len=32768
36650 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
36651 if test -n "$lt_cv_sys_max_cmd_len" && \
36652 test undefined != "$lt_cv_sys_max_cmd_len"; then
36653 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
36654 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
36656 # Make teststring a little bigger before we do anything with it.
36657 # a 1K string should be a reasonable start.
36658 for i in 1 2 3 4 5 6 7 8 ; do
36659 teststring=$teststring$teststring
36661 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
36662 # If test is not a shell built-in, we'll probably end up computing a
36663 # maximum length that is only half of the actual maximum length, but
36665 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
36666 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
36667 test $i != 17 # 1/2 MB should be enough
36670 teststring=$teststring$teststring
36672 # Only check the string length outside the loop.
36673 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
36675 # Add a significant safety factor because C++ compilers can tack on
36676 # massive amounts of additional arguments before passing them to the
36677 # linker. It appears as though 1/2 is a usable value.
36678 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
36685 if test -n $lt_cv_sys_max_cmd_len ; then
36686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
36687 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
36689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
36690 $as_echo "none" >&6; }
36692 max_cmd_len=$lt_cv_sys_max_cmd_len
36703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
36704 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
36705 # Try some XSI features
36707 ( _lt_dummy="a/b/c"
36708 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
36710 && eval 'test $(( 1 + 1 )) -eq 2 \
36711 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
36713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
36714 $as_echo "$xsi_shell" >&6; }
36717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
36718 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
36720 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
36722 && lt_shell_append=yes
36723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
36724 $as_echo "$lt_shell_append" >&6; }
36727 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
36737 # test EBCDIC or ASCII
36738 case `echo X|tr X '\101'` in
36739 A) # ASCII based system
36740 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
36741 lt_SP2NL='tr \040 \012'
36742 lt_NL2SP='tr \015\012 \040\040'
36744 *) # EBCDIC based system
36745 lt_SP2NL='tr \100 \n'
36746 lt_NL2SP='tr \r\n \100\100'
36758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
36759 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
36760 if ${lt_cv_to_host_file_cmd+:} false; then :
36761 $as_echo_n "(cached) " >&6
36766 *-*-mingw* ) # actually msys
36767 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
36770 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
36772 * ) # otherwise, assume *nix
36773 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
36779 *-*-mingw* ) # actually msys
36780 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
36783 lt_cv_to_host_file_cmd=func_convert_file_noop
36785 * ) # otherwise, assume *nix
36786 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
36790 * ) # unhandled hosts (and "normal" native builds)
36791 lt_cv_to_host_file_cmd=func_convert_file_noop
36797 to_host_file_cmd=$lt_cv_to_host_file_cmd
36798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
36799 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
36805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
36806 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
36807 if ${lt_cv_to_tool_file_cmd+:} false; then :
36808 $as_echo_n "(cached) " >&6
36810 #assume ordinary cross tools, or native build.
36811 lt_cv_to_tool_file_cmd=func_convert_file_noop
36815 *-*-mingw* ) # actually msys
36816 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
36824 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
36825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
36826 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
36832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
36833 $as_echo_n "checking for $LD option to reload object files... " >&6; }
36834 if ${lt_cv_ld_reload_flag+:} false; then :
36835 $as_echo_n "(cached) " >&6
36837 lt_cv_ld_reload_flag='-r'
36839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
36840 $as_echo "$lt_cv_ld_reload_flag" >&6; }
36841 reload_flag=$lt_cv_ld_reload_flag
36842 case $reload_flag in
36844 *) reload_flag=" $reload_flag" ;;
36846 reload_cmds='$LD$reload_flag -o $output$reload_objs'
36848 cygwin* | mingw* | pw32* | cegcc*)
36849 if test "$GCC" != yes; then
36854 if test "$GCC" = yes; then
36855 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
36857 reload_cmds='$LD$reload_flag -o $output$reload_objs'
36870 if test -n "$ac_tool_prefix"; then
36871 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
36872 set dummy ${ac_tool_prefix}objdump; ac_word=$2
36873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
36874 $as_echo_n "checking for $ac_word... " >&6; }
36875 if ${ac_cv_prog_OBJDUMP+:} false; then :
36876 $as_echo_n "(cached) " >&6
36878 if test -n "$OBJDUMP"; then
36879 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
36881 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
36882 for as_dir in $PATH
36885 test -z "$as_dir" && as_dir=.
36886 for ac_exec_ext in '' $ac_executable_extensions; do
36887 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
36888 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
36889 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
36898 OBJDUMP=$ac_cv_prog_OBJDUMP
36899 if test -n "$OBJDUMP"; then
36900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
36901 $as_echo "$OBJDUMP" >&6; }
36903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36904 $as_echo "no" >&6; }
36909 if test -z "$ac_cv_prog_OBJDUMP"; then
36910 ac_ct_OBJDUMP=$OBJDUMP
36911 # Extract the first word of "objdump", so it can be a program name with args.
36912 set dummy objdump; ac_word=$2
36913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
36914 $as_echo_n "checking for $ac_word... " >&6; }
36915 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
36916 $as_echo_n "(cached) " >&6
36918 if test -n "$ac_ct_OBJDUMP"; then
36919 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
36921 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
36922 for as_dir in $PATH
36925 test -z "$as_dir" && as_dir=.
36926 for ac_exec_ext in '' $ac_executable_extensions; do
36927 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
36928 ac_cv_prog_ac_ct_OBJDUMP="objdump"
36929 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
36938 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
36939 if test -n "$ac_ct_OBJDUMP"; then
36940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
36941 $as_echo "$ac_ct_OBJDUMP" >&6; }
36943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36944 $as_echo "no" >&6; }
36947 if test "x$ac_ct_OBJDUMP" = x; then
36950 case $cross_compiling:$ac_tool_warned in
36952 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
36953 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
36954 ac_tool_warned=yes ;;
36956 OBJDUMP=$ac_ct_OBJDUMP
36959 OBJDUMP="$ac_cv_prog_OBJDUMP"
36962 test -z "$OBJDUMP" && OBJDUMP=objdump
36972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
36973 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
36974 if ${lt_cv_deplibs_check_method+:} false; then :
36975 $as_echo_n "(cached) " >&6
36977 lt_cv_file_magic_cmd='$MAGIC_CMD'
36978 lt_cv_file_magic_test_file=
36979 lt_cv_deplibs_check_method='unknown'
36980 # Need to set the preceding variable on all platforms that support
36981 # interlibrary dependencies.
36982 # 'none' -- dependencies not supported.
36983 # `unknown' -- same as none, but documents that we really don't know.
36984 # 'pass_all' -- all dependencies passed with no checks.
36985 # 'test_compile' -- check by making test program.
36986 # 'file_magic [[regex]]' -- check by looking for files in library path
36987 # which responds to the $file_magic_cmd with a given extended regex.
36988 # If you have `file' or equivalent on your system and you're not sure
36989 # whether `pass_all' will *always* work, you probably want this one.
36993 lt_cv_deplibs_check_method=pass_all
36997 lt_cv_deplibs_check_method=pass_all
37001 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
37002 lt_cv_file_magic_cmd='/usr/bin/file -L'
37003 lt_cv_file_magic_test_file=/shlib/libc.so
37007 # func_win32_libid is a shell function defined in ltmain.sh
37008 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
37009 lt_cv_file_magic_cmd='func_win32_libid'
37013 # Base MSYS/MinGW do not provide the 'file' command needed by
37014 # func_win32_libid shell function, so use a weaker test based on 'objdump',
37015 # unless we find 'file', for example because we are cross-compiling.
37016 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
37017 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
37018 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
37019 lt_cv_file_magic_cmd='func_win32_libid'
37021 # Keep this pattern in sync with the one in func_win32_libid.
37022 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
37023 lt_cv_file_magic_cmd='$OBJDUMP -f'
37028 # use the weaker test based on 'objdump'. See mingw*.
37029 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
37030 lt_cv_file_magic_cmd='$OBJDUMP -f'
37033 darwin* | rhapsody*)
37034 lt_cv_deplibs_check_method=pass_all
37037 freebsd* | dragonfly*)
37038 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
37041 # Not sure whether the presence of OpenBSD here was a mistake.
37042 # Let's accept both of them until this is cleared up.
37043 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
37044 lt_cv_file_magic_cmd=/usr/bin/file
37045 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
37049 lt_cv_deplibs_check_method=pass_all
37054 lt_cv_deplibs_check_method=pass_all
37057 hpux10.20* | hpux11*)
37058 lt_cv_file_magic_cmd=/usr/bin/file
37061 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
37062 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
37065 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]'
37066 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
37069 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
37070 lt_cv_file_magic_test_file=/usr/lib/libc.sl
37076 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
37077 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
37080 irix5* | irix6* | nonstopux*)
37082 *-32|*"-32 ") libmagic=32-bit;;
37083 *-n32|*"-n32 ") libmagic=N32;;
37084 *-64|*"-64 ") libmagic=64-bit;;
37085 *) libmagic=never-match;;
37087 lt_cv_deplibs_check_method=pass_all
37090 # This must be glibc/ELF.
37091 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
37092 lt_cv_deplibs_check_method=pass_all
37095 netbsd* | netbsdelf*-gnu)
37096 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
37097 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
37099 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
37104 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
37105 lt_cv_file_magic_cmd=/usr/bin/file
37106 lt_cv_file_magic_test_file=/usr/lib/libnls.so
37110 lt_cv_deplibs_check_method=pass_all
37114 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
37115 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
37117 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
37121 osf3* | osf4* | osf5*)
37122 lt_cv_deplibs_check_method=pass_all
37126 lt_cv_deplibs_check_method=pass_all
37130 lt_cv_deplibs_check_method=pass_all
37133 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
37134 lt_cv_deplibs_check_method=pass_all
37138 case $host_vendor in
37140 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]'
37141 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
37144 lt_cv_deplibs_check_method=pass_all
37147 lt_cv_file_magic_cmd='/bin/file'
37148 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
37151 lt_cv_file_magic_cmd='/bin/file'
37152 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
37153 lt_cv_file_magic_test_file=/lib/libc.so
37156 lt_cv_deplibs_check_method=pass_all
37159 lt_cv_deplibs_check_method=pass_all
37165 lt_cv_deplibs_check_method=pass_all
37170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
37171 $as_echo "$lt_cv_deplibs_check_method" >&6; }
37175 if test "$build" = "$host"; then
37178 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
37179 want_nocaseglob=yes
37181 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
37187 file_magic_cmd=$lt_cv_file_magic_cmd
37188 deplibs_check_method=$lt_cv_deplibs_check_method
37189 test -z "$deplibs_check_method" && deplibs_check_method=unknown
37212 if test -n "$ac_tool_prefix"; then
37213 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
37214 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
37215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
37216 $as_echo_n "checking for $ac_word... " >&6; }
37217 if ${ac_cv_prog_DLLTOOL+:} false; then :
37218 $as_echo_n "(cached) " >&6
37220 if test -n "$DLLTOOL"; then
37221 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
37223 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
37224 for as_dir in $PATH
37227 test -z "$as_dir" && as_dir=.
37228 for ac_exec_ext in '' $ac_executable_extensions; do
37229 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
37230 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
37231 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
37240 DLLTOOL=$ac_cv_prog_DLLTOOL
37241 if test -n "$DLLTOOL"; then
37242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
37243 $as_echo "$DLLTOOL" >&6; }
37245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37246 $as_echo "no" >&6; }
37251 if test -z "$ac_cv_prog_DLLTOOL"; then
37252 ac_ct_DLLTOOL=$DLLTOOL
37253 # Extract the first word of "dlltool", so it can be a program name with args.
37254 set dummy dlltool; ac_word=$2
37255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
37256 $as_echo_n "checking for $ac_word... " >&6; }
37257 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
37258 $as_echo_n "(cached) " >&6
37260 if test -n "$ac_ct_DLLTOOL"; then
37261 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
37263 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
37264 for as_dir in $PATH
37267 test -z "$as_dir" && as_dir=.
37268 for ac_exec_ext in '' $ac_executable_extensions; do
37269 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
37270 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
37271 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
37280 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
37281 if test -n "$ac_ct_DLLTOOL"; then
37282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
37283 $as_echo "$ac_ct_DLLTOOL" >&6; }
37285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37286 $as_echo "no" >&6; }
37289 if test "x$ac_ct_DLLTOOL" = x; then
37292 case $cross_compiling:$ac_tool_warned in
37294 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
37295 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
37296 ac_tool_warned=yes ;;
37298 DLLTOOL=$ac_ct_DLLTOOL
37301 DLLTOOL="$ac_cv_prog_DLLTOOL"
37304 test -z "$DLLTOOL" && DLLTOOL=dlltool
37315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
37316 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
37317 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
37318 $as_echo_n "(cached) " >&6
37320 lt_cv_sharedlib_from_linklib_cmd='unknown'
37323 cygwin* | mingw* | pw32* | cegcc*)
37324 # two different shell functions defined in ltmain.sh
37325 # decide which to use based on capabilities of $DLLTOOL
37326 case `$DLLTOOL --help 2>&1` in
37327 *--identify-strict*)
37328 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
37331 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
37336 # fallback: assume linklib IS sharedlib
37337 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
37342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
37343 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
37344 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
37345 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
37353 if test -n "$ac_tool_prefix"; then
37356 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
37357 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
37358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
37359 $as_echo_n "checking for $ac_word... " >&6; }
37360 if ${ac_cv_prog_AR+:} false; then :
37361 $as_echo_n "(cached) " >&6
37363 if test -n "$AR"; then
37364 ac_cv_prog_AR="$AR" # Let the user override the test.
37366 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
37367 for as_dir in $PATH
37370 test -z "$as_dir" && as_dir=.
37371 for ac_exec_ext in '' $ac_executable_extensions; do
37372 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
37373 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
37374 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
37384 if test -n "$AR"; then
37385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
37386 $as_echo "$AR" >&6; }
37388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37389 $as_echo "no" >&6; }
37393 test -n "$AR" && break
37396 if test -z "$AR"; then
37400 # Extract the first word of "$ac_prog", so it can be a program name with args.
37401 set dummy $ac_prog; ac_word=$2
37402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
37403 $as_echo_n "checking for $ac_word... " >&6; }
37404 if ${ac_cv_prog_ac_ct_AR+:} false; then :
37405 $as_echo_n "(cached) " >&6
37407 if test -n "$ac_ct_AR"; then
37408 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
37410 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
37411 for as_dir in $PATH
37414 test -z "$as_dir" && as_dir=.
37415 for ac_exec_ext in '' $ac_executable_extensions; do
37416 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
37417 ac_cv_prog_ac_ct_AR="$ac_prog"
37418 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
37427 ac_ct_AR=$ac_cv_prog_ac_ct_AR
37428 if test -n "$ac_ct_AR"; then
37429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
37430 $as_echo "$ac_ct_AR" >&6; }
37432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37433 $as_echo "no" >&6; }
37437 test -n "$ac_ct_AR" && break
37440 if test "x$ac_ct_AR" = x; then
37443 case $cross_compiling:$ac_tool_warned in
37445 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
37446 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
37447 ac_tool_warned=yes ;;
37466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
37467 $as_echo_n "checking for archiver @FILE support... " >&6; }
37468 if ${lt_cv_ar_at_file+:} false; then :
37469 $as_echo_n "(cached) " >&6
37471 lt_cv_ar_at_file=no
37472 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37473 /* end confdefs.h. */
37483 if ac_fn_c_try_compile "$LINENO"; then :
37484 echo conftest.$ac_objext > conftest.lst
37485 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
37486 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
37487 (eval $lt_ar_try) 2>&5
37489 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
37490 test $ac_status = 0; }
37491 if test "$ac_status" -eq 0; then
37492 # Ensure the archiver fails upon bogus file names.
37493 rm -f conftest.$ac_objext libconftest.a
37494 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
37495 (eval $lt_ar_try) 2>&5
37497 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
37498 test $ac_status = 0; }
37499 if test "$ac_status" -ne 0; then
37503 rm -f conftest.* libconftest.a
37506 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
37510 $as_echo "$lt_cv_ar_at_file" >&6; }
37512 if test "x$lt_cv_ar_at_file" = xno; then
37513 archiver_list_spec=
37515 archiver_list_spec=$lt_cv_ar_at_file
37524 if test -n "$ac_tool_prefix"; then
37525 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
37526 set dummy ${ac_tool_prefix}strip; ac_word=$2
37527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
37528 $as_echo_n "checking for $ac_word... " >&6; }
37529 if ${ac_cv_prog_STRIP+:} false; then :
37530 $as_echo_n "(cached) " >&6
37532 if test -n "$STRIP"; then
37533 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
37535 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
37536 for as_dir in $PATH
37539 test -z "$as_dir" && as_dir=.
37540 for ac_exec_ext in '' $ac_executable_extensions; do
37541 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
37542 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
37543 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
37552 STRIP=$ac_cv_prog_STRIP
37553 if test -n "$STRIP"; then
37554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
37555 $as_echo "$STRIP" >&6; }
37557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37558 $as_echo "no" >&6; }
37563 if test -z "$ac_cv_prog_STRIP"; then
37565 # Extract the first word of "strip", so it can be a program name with args.
37566 set dummy strip; ac_word=$2
37567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
37568 $as_echo_n "checking for $ac_word... " >&6; }
37569 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
37570 $as_echo_n "(cached) " >&6
37572 if test -n "$ac_ct_STRIP"; then
37573 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
37575 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
37576 for as_dir in $PATH
37579 test -z "$as_dir" && as_dir=.
37580 for ac_exec_ext in '' $ac_executable_extensions; do
37581 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
37582 ac_cv_prog_ac_ct_STRIP="strip"
37583 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
37592 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
37593 if test -n "$ac_ct_STRIP"; then
37594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
37595 $as_echo "$ac_ct_STRIP" >&6; }
37597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37598 $as_echo "no" >&6; }
37601 if test "x$ac_ct_STRIP" = x; then
37604 case $cross_compiling:$ac_tool_warned in
37606 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
37607 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
37608 ac_tool_warned=yes ;;
37613 STRIP="$ac_cv_prog_STRIP"
37616 test -z "$STRIP" && STRIP=:
37623 if test -n "$ac_tool_prefix"; then
37624 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
37625 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
37626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
37627 $as_echo_n "checking for $ac_word... " >&6; }
37628 if ${ac_cv_prog_RANLIB+:} false; then :
37629 $as_echo_n "(cached) " >&6
37631 if test -n "$RANLIB"; then
37632 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
37634 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
37635 for as_dir in $PATH
37638 test -z "$as_dir" && as_dir=.
37639 for ac_exec_ext in '' $ac_executable_extensions; do
37640 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
37641 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
37642 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
37651 RANLIB=$ac_cv_prog_RANLIB
37652 if test -n "$RANLIB"; then
37653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
37654 $as_echo "$RANLIB" >&6; }
37656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37657 $as_echo "no" >&6; }
37662 if test -z "$ac_cv_prog_RANLIB"; then
37663 ac_ct_RANLIB=$RANLIB
37664 # Extract the first word of "ranlib", so it can be a program name with args.
37665 set dummy ranlib; ac_word=$2
37666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
37667 $as_echo_n "checking for $ac_word... " >&6; }
37668 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
37669 $as_echo_n "(cached) " >&6
37671 if test -n "$ac_ct_RANLIB"; then
37672 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
37674 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
37675 for as_dir in $PATH
37678 test -z "$as_dir" && as_dir=.
37679 for ac_exec_ext in '' $ac_executable_extensions; do
37680 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
37681 ac_cv_prog_ac_ct_RANLIB="ranlib"
37682 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
37691 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
37692 if test -n "$ac_ct_RANLIB"; then
37693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
37694 $as_echo "$ac_ct_RANLIB" >&6; }
37696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37697 $as_echo "no" >&6; }
37700 if test "x$ac_ct_RANLIB" = x; then
37703 case $cross_compiling:$ac_tool_warned in
37705 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
37706 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
37707 ac_tool_warned=yes ;;
37709 RANLIB=$ac_ct_RANLIB
37712 RANLIB="$ac_cv_prog_RANLIB"
37715 test -z "$RANLIB" && RANLIB=:
37722 # Determine commands to create old-style static archives.
37723 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
37724 old_postinstall_cmds='chmod 644 $oldlib'
37725 old_postuninstall_cmds=
37727 if test -n "$RANLIB"; then
37730 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
37733 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
37736 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
37741 lock_old_archive_extraction=yes ;;
37743 lock_old_archive_extraction=no ;;
37784 # If no C compiler was specified, use CC.
37787 # If no C compiler flags were specified, use CFLAGS.
37788 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
37790 # Allow CC to be a program name with arguments.
37794 # Check for command to grab the raw symbol name followed by C symbol from nm.
37795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
37796 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
37797 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
37798 $as_echo_n "(cached) " >&6
37801 # These are sane defaults that work on at least a few old systems.
37802 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
37804 # Character class describing NM global symbol codes.
37805 symcode='[BCDEGRST]'
37807 # Regexp to match symbols that can be accessed directly from C.
37808 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
37810 # Define system-specific variables.
37815 cygwin* | mingw* | pw32* | cegcc*)
37816 symcode='[ABCDGISTW]'
37819 if test "$host_cpu" = ia64; then
37820 symcode='[ABCDEGRST]'
37823 irix* | nonstopux*)
37824 symcode='[BCDEGRST]'
37827 symcode='[BCDEGQRST]'
37838 sysv5* | sco5v6* | unixware* | OpenUNIX*)
37846 # If we're using GNU nm, then use its standard symbol codes.
37847 case `$NM -V 2>&1` in
37848 *GNU* | *'with BFD'*)
37849 symcode='[ABCDGIRSTW]' ;;
37852 # Transform an extracted symbol line into a proper C declaration.
37853 # Some systems (esp. on ia64) link data and code symbols differently,
37854 # so use this general approach.
37855 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
37857 # Transform an extracted symbol line into symbol name and symbol address
37858 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
37859 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'"
37861 # Handle CRLF in mingw tool chain
37865 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
37869 # Try without a prefix underscore, then with it.
37870 for ac_symprfx in "" "_"; do
37872 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
37873 symxfrm="\\1 $ac_symprfx\\2 \\2"
37875 # Write the raw and C identifiers.
37876 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
37877 # Fake it for dumpbin and say T for any non-static function
37878 # and D for any global variable.
37879 # Also find C++ and __fastcall symbols from MSVC++,
37880 # which start with @ or ?.
37881 lt_cv_sys_global_symbol_pipe="$AWK '"\
37882 " {last_section=section; section=\$ 3};"\
37883 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
37884 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
37885 " \$ 0!~/External *\|/{next};"\
37886 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
37887 " {if(hide[section]) next};"\
37888 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
37889 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
37890 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
37891 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
37892 " ' prfx=^$ac_symprfx"
37894 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
37896 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
37898 # Check to see that the pipe works correctly.
37902 cat > conftest.$ac_ext <<_LT_EOF
37907 void nm_test_func(void);
37908 void nm_test_func(void){}
37912 int main(){nm_test_var='a';nm_test_func();return(0);}
37915 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
37916 (eval $ac_compile) 2>&5
37918 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
37919 test $ac_status = 0; }; then
37920 # Now try to grab the symbols.
37922 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
37923 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
37925 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
37926 test $ac_status = 0; } && test -s "$nlist"; then
37927 # Try sorting and uniquifying the output.
37928 if sort "$nlist" | uniq > "$nlist"T; then
37929 mv -f "$nlist"T "$nlist"
37934 # Make sure that we snagged all the symbols we need.
37935 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
37936 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
37937 cat <<_LT_EOF > conftest.$ac_ext
37938 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
37939 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
37940 /* DATA imports from DLLs on WIN32 con't be const, because runtime
37941 relocations are performed -- see ld's documentation on pseudo-relocs. */
37942 # define LT_DLSYM_CONST
37943 #elif defined(__osf__)
37944 /* This system does not cope well with relocations in const data. */
37945 # define LT_DLSYM_CONST
37947 # define LT_DLSYM_CONST const
37955 # Now generate the symbol file.
37956 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
37958 cat <<_LT_EOF >> conftest.$ac_ext
37960 /* The mapping between symbol names and symbols. */
37961 LT_DLSYM_CONST struct {
37965 lt__PROGRAM__LTX_preloaded_symbols[] =
37967 { "@PROGRAM@", (void *) 0 },
37969 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
37970 cat <<\_LT_EOF >> conftest.$ac_ext
37974 /* This works around a problem in FreeBSD linker */
37975 #ifdef FREEBSD_WORKAROUND
37976 static const void *lt_preloaded_setup() {
37977 return lt__PROGRAM__LTX_preloaded_symbols;
37985 # Now try linking the two files.
37986 mv conftest.$ac_objext conftstm.$ac_objext
37987 lt_globsym_save_LIBS=$LIBS
37988 lt_globsym_save_CFLAGS=$CFLAGS
37989 LIBS="conftstm.$ac_objext"
37990 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
37991 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
37992 (eval $ac_link) 2>&5
37994 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
37995 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
37998 LIBS=$lt_globsym_save_LIBS
37999 CFLAGS=$lt_globsym_save_CFLAGS
38001 echo "cannot find nm_test_func in $nlist" >&5
38004 echo "cannot find nm_test_var in $nlist" >&5
38007 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
38010 echo "$progname: failed program was:" >&5
38011 cat conftest.$ac_ext >&5
38013 rm -rf conftest* conftst*
38015 # Do not use the global_symbol_pipe unless it works.
38016 if test "$pipe_works" = yes; then
38019 lt_cv_sys_global_symbol_pipe=
38025 if test -z "$lt_cv_sys_global_symbol_pipe"; then
38026 lt_cv_sys_global_symbol_to_cdecl=
38028 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
38029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
38030 $as_echo "failed" >&6; }
38032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
38033 $as_echo "ok" >&6; }
38036 # Response file support.
38037 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
38038 nm_file_list_spec='@'
38039 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
38040 nm_file_list_spec='@'
38069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
38070 $as_echo_n "checking for sysroot... " >&6; }
38072 # Check whether --with-sysroot was given.
38073 if test "${with_sysroot+set}" = set; then :
38074 withval=$with_sysroot;
38081 case ${with_sysroot} in #(
38083 if test "$GCC" = yes; then
38084 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
38088 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
38093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
38094 $as_echo "${with_sysroot}" >&6; }
38095 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
38099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
38100 $as_echo "${lt_sysroot:-no}" >&6; }
38106 # Check whether --enable-libtool-lock was given.
38107 if test "${enable_libtool_lock+set}" = set; then :
38108 enableval=$enable_libtool_lock;
38111 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
38113 # Some flags need to be propagated to the compiler or linker for good
38117 # Find out which ABI we are using.
38118 echo 'int i;' > conftest.$ac_ext
38119 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
38120 (eval $ac_compile) 2>&5
38122 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
38123 test $ac_status = 0; }; then
38124 case `/usr/bin/file conftest.$ac_objext` in
38126 HPUX_IA64_MODE="32"
38129 HPUX_IA64_MODE="64"
38136 # Find out which ABI we are using.
38137 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
38138 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
38139 (eval $ac_compile) 2>&5
38141 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
38142 test $ac_status = 0; }; then
38143 if test "$lt_cv_prog_gnu_ld" = yes; then
38144 case `/usr/bin/file conftest.$ac_objext` in
38146 LD="${LD-ld} -melf32bsmip"
38149 LD="${LD-ld} -melf32bmipn32"
38152 LD="${LD-ld} -melf64bmip"
38156 case `/usr/bin/file conftest.$ac_objext` in
38172 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
38173 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
38174 # Find out which ABI we are using.
38175 echo 'int i;' > conftest.$ac_ext
38176 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
38177 (eval $ac_compile) 2>&5
38179 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
38180 test $ac_status = 0; }; then
38181 case `/usr/bin/file conftest.o` in
38184 x86_64-*kfreebsd*-gnu)
38185 LD="${LD-ld} -m elf_i386_fbsd"
38188 case `/usr/bin/file conftest.o` in
38190 LD="${LD-ld} -m elf32_x86_64"
38193 LD="${LD-ld} -m elf_i386"
38198 LD="${LD-ld} -m elf32lppclinux"
38201 LD="${LD-ld} -m elf32ppclinux"
38204 LD="${LD-ld} -m elf_s390"
38207 LD="${LD-ld} -m elf32_sparc"
38213 x86_64-*kfreebsd*-gnu)
38214 LD="${LD-ld} -m elf_x86_64_fbsd"
38217 LD="${LD-ld} -m elf_x86_64"
38220 LD="${LD-ld} -m elf64lppc"
38223 LD="${LD-ld} -m elf64ppc"
38225 s390*-*linux*|s390*-*tpf*)
38226 LD="${LD-ld} -m elf64_s390"
38229 LD="${LD-ld} -m elf64_sparc"
38239 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
38240 SAVE_CFLAGS="$CFLAGS"
38241 CFLAGS="$CFLAGS -belf"
38242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
38243 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
38244 if ${lt_cv_cc_needs_belf+:} false; then :
38245 $as_echo_n "(cached) " >&6
38248 ac_cpp='$CPP $CPPFLAGS'
38249 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
38250 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
38251 ac_compiler_gnu=$ac_cv_c_compiler_gnu
38253 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38254 /* end confdefs.h. */
38264 if ac_fn_c_try_link "$LINENO"; then :
38265 lt_cv_cc_needs_belf=yes
38267 lt_cv_cc_needs_belf=no
38269 rm -f core conftest.err conftest.$ac_objext \
38270 conftest$ac_exeext conftest.$ac_ext
38272 ac_cpp='$CPP $CPPFLAGS'
38273 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
38274 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
38275 ac_compiler_gnu=$ac_cv_c_compiler_gnu
38278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
38279 $as_echo "$lt_cv_cc_needs_belf" >&6; }
38280 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
38281 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
38282 CFLAGS="$SAVE_CFLAGS"
38286 # Find out which ABI we are using.
38287 echo 'int i;' > conftest.$ac_ext
38288 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
38289 (eval $ac_compile) 2>&5
38291 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
38292 test $ac_status = 0; }; then
38293 case `/usr/bin/file conftest.o` in
38295 case $lt_cv_prog_gnu_ld in
38299 LD="${LD-ld} -m elf_x86_64"
38302 LD="${LD-ld} -m elf64_sparc"
38305 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
38306 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
38311 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
38323 need_locks="$enable_libtool_lock"
38325 if test -n "$ac_tool_prefix"; then
38326 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
38327 set dummy ${ac_tool_prefix}mt; ac_word=$2
38328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
38329 $as_echo_n "checking for $ac_word... " >&6; }
38330 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
38331 $as_echo_n "(cached) " >&6
38333 if test -n "$MANIFEST_TOOL"; then
38334 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
38336 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
38337 for as_dir in $PATH
38340 test -z "$as_dir" && as_dir=.
38341 for ac_exec_ext in '' $ac_executable_extensions; do
38342 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
38343 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
38344 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
38353 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
38354 if test -n "$MANIFEST_TOOL"; then
38355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
38356 $as_echo "$MANIFEST_TOOL" >&6; }
38358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38359 $as_echo "no" >&6; }
38364 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
38365 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
38366 # Extract the first word of "mt", so it can be a program name with args.
38367 set dummy mt; ac_word=$2
38368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
38369 $as_echo_n "checking for $ac_word... " >&6; }
38370 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
38371 $as_echo_n "(cached) " >&6
38373 if test -n "$ac_ct_MANIFEST_TOOL"; then
38374 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
38376 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
38377 for as_dir in $PATH
38380 test -z "$as_dir" && as_dir=.
38381 for ac_exec_ext in '' $ac_executable_extensions; do
38382 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
38383 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
38384 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
38393 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
38394 if test -n "$ac_ct_MANIFEST_TOOL"; then
38395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
38396 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
38398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38399 $as_echo "no" >&6; }
38402 if test "x$ac_ct_MANIFEST_TOOL" = x; then
38405 case $cross_compiling:$ac_tool_warned in
38407 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
38408 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
38409 ac_tool_warned=yes ;;
38411 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
38414 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
38417 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
38418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
38419 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
38420 if ${lt_cv_path_mainfest_tool+:} false; then :
38421 $as_echo_n "(cached) " >&6
38423 lt_cv_path_mainfest_tool=no
38424 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
38425 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
38426 cat conftest.err >&5
38427 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
38428 lt_cv_path_mainfest_tool=yes
38432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
38433 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
38434 if test "x$lt_cv_path_mainfest_tool" != xyes; then
38444 rhapsody* | darwin*)
38445 if test -n "$ac_tool_prefix"; then
38446 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
38447 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
38448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
38449 $as_echo_n "checking for $ac_word... " >&6; }
38450 if ${ac_cv_prog_DSYMUTIL+:} false; then :
38451 $as_echo_n "(cached) " >&6
38453 if test -n "$DSYMUTIL"; then
38454 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
38456 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
38457 for as_dir in $PATH
38460 test -z "$as_dir" && as_dir=.
38461 for ac_exec_ext in '' $ac_executable_extensions; do
38462 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
38463 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
38464 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
38473 DSYMUTIL=$ac_cv_prog_DSYMUTIL
38474 if test -n "$DSYMUTIL"; then
38475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
38476 $as_echo "$DSYMUTIL" >&6; }
38478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38479 $as_echo "no" >&6; }
38484 if test -z "$ac_cv_prog_DSYMUTIL"; then
38485 ac_ct_DSYMUTIL=$DSYMUTIL
38486 # Extract the first word of "dsymutil", so it can be a program name with args.
38487 set dummy dsymutil; ac_word=$2
38488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
38489 $as_echo_n "checking for $ac_word... " >&6; }
38490 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
38491 $as_echo_n "(cached) " >&6
38493 if test -n "$ac_ct_DSYMUTIL"; then
38494 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
38496 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
38497 for as_dir in $PATH
38500 test -z "$as_dir" && as_dir=.
38501 for ac_exec_ext in '' $ac_executable_extensions; do
38502 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
38503 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
38504 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
38513 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
38514 if test -n "$ac_ct_DSYMUTIL"; then
38515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
38516 $as_echo "$ac_ct_DSYMUTIL" >&6; }
38518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38519 $as_echo "no" >&6; }
38522 if test "x$ac_ct_DSYMUTIL" = x; then
38525 case $cross_compiling:$ac_tool_warned in
38527 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
38528 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
38529 ac_tool_warned=yes ;;
38531 DSYMUTIL=$ac_ct_DSYMUTIL
38534 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
38537 if test -n "$ac_tool_prefix"; then
38538 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
38539 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
38540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
38541 $as_echo_n "checking for $ac_word... " >&6; }
38542 if ${ac_cv_prog_NMEDIT+:} false; then :
38543 $as_echo_n "(cached) " >&6
38545 if test -n "$NMEDIT"; then
38546 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
38548 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
38549 for as_dir in $PATH
38552 test -z "$as_dir" && as_dir=.
38553 for ac_exec_ext in '' $ac_executable_extensions; do
38554 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
38555 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
38556 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
38565 NMEDIT=$ac_cv_prog_NMEDIT
38566 if test -n "$NMEDIT"; then
38567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
38568 $as_echo "$NMEDIT" >&6; }
38570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38571 $as_echo "no" >&6; }
38576 if test -z "$ac_cv_prog_NMEDIT"; then
38577 ac_ct_NMEDIT=$NMEDIT
38578 # Extract the first word of "nmedit", so it can be a program name with args.
38579 set dummy nmedit; ac_word=$2
38580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
38581 $as_echo_n "checking for $ac_word... " >&6; }
38582 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
38583 $as_echo_n "(cached) " >&6
38585 if test -n "$ac_ct_NMEDIT"; then
38586 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
38588 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
38589 for as_dir in $PATH
38592 test -z "$as_dir" && as_dir=.
38593 for ac_exec_ext in '' $ac_executable_extensions; do
38594 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
38595 ac_cv_prog_ac_ct_NMEDIT="nmedit"
38596 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
38605 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
38606 if test -n "$ac_ct_NMEDIT"; then
38607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
38608 $as_echo "$ac_ct_NMEDIT" >&6; }
38610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38611 $as_echo "no" >&6; }
38614 if test "x$ac_ct_NMEDIT" = x; then
38617 case $cross_compiling:$ac_tool_warned in
38619 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
38620 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
38621 ac_tool_warned=yes ;;
38623 NMEDIT=$ac_ct_NMEDIT
38626 NMEDIT="$ac_cv_prog_NMEDIT"
38629 if test -n "$ac_tool_prefix"; then
38630 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
38631 set dummy ${ac_tool_prefix}lipo; ac_word=$2
38632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
38633 $as_echo_n "checking for $ac_word... " >&6; }
38634 if ${ac_cv_prog_LIPO+:} false; then :
38635 $as_echo_n "(cached) " >&6
38637 if test -n "$LIPO"; then
38638 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
38640 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
38641 for as_dir in $PATH
38644 test -z "$as_dir" && as_dir=.
38645 for ac_exec_ext in '' $ac_executable_extensions; do
38646 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
38647 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
38648 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
38657 LIPO=$ac_cv_prog_LIPO
38658 if test -n "$LIPO"; then
38659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
38660 $as_echo "$LIPO" >&6; }
38662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38663 $as_echo "no" >&6; }
38668 if test -z "$ac_cv_prog_LIPO"; then
38670 # Extract the first word of "lipo", so it can be a program name with args.
38671 set dummy lipo; ac_word=$2
38672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
38673 $as_echo_n "checking for $ac_word... " >&6; }
38674 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
38675 $as_echo_n "(cached) " >&6
38677 if test -n "$ac_ct_LIPO"; then
38678 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
38680 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
38681 for as_dir in $PATH
38684 test -z "$as_dir" && as_dir=.
38685 for ac_exec_ext in '' $ac_executable_extensions; do
38686 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
38687 ac_cv_prog_ac_ct_LIPO="lipo"
38688 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
38697 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
38698 if test -n "$ac_ct_LIPO"; then
38699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
38700 $as_echo "$ac_ct_LIPO" >&6; }
38702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38703 $as_echo "no" >&6; }
38706 if test "x$ac_ct_LIPO" = x; then
38709 case $cross_compiling:$ac_tool_warned in
38711 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
38712 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
38713 ac_tool_warned=yes ;;
38718 LIPO="$ac_cv_prog_LIPO"
38721 if test -n "$ac_tool_prefix"; then
38722 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
38723 set dummy ${ac_tool_prefix}otool; ac_word=$2
38724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
38725 $as_echo_n "checking for $ac_word... " >&6; }
38726 if ${ac_cv_prog_OTOOL+:} false; then :
38727 $as_echo_n "(cached) " >&6
38729 if test -n "$OTOOL"; then
38730 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
38732 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
38733 for as_dir in $PATH
38736 test -z "$as_dir" && as_dir=.
38737 for ac_exec_ext in '' $ac_executable_extensions; do
38738 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
38739 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
38740 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
38749 OTOOL=$ac_cv_prog_OTOOL
38750 if test -n "$OTOOL"; then
38751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
38752 $as_echo "$OTOOL" >&6; }
38754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38755 $as_echo "no" >&6; }
38760 if test -z "$ac_cv_prog_OTOOL"; then
38762 # Extract the first word of "otool", so it can be a program name with args.
38763 set dummy otool; ac_word=$2
38764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
38765 $as_echo_n "checking for $ac_word... " >&6; }
38766 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
38767 $as_echo_n "(cached) " >&6
38769 if test -n "$ac_ct_OTOOL"; then
38770 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
38772 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
38773 for as_dir in $PATH
38776 test -z "$as_dir" && as_dir=.
38777 for ac_exec_ext in '' $ac_executable_extensions; do
38778 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
38779 ac_cv_prog_ac_ct_OTOOL="otool"
38780 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
38789 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
38790 if test -n "$ac_ct_OTOOL"; then
38791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
38792 $as_echo "$ac_ct_OTOOL" >&6; }
38794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38795 $as_echo "no" >&6; }
38798 if test "x$ac_ct_OTOOL" = x; then
38801 case $cross_compiling:$ac_tool_warned in
38803 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
38804 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
38805 ac_tool_warned=yes ;;
38810 OTOOL="$ac_cv_prog_OTOOL"
38813 if test -n "$ac_tool_prefix"; then
38814 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
38815 set dummy ${ac_tool_prefix}otool64; ac_word=$2
38816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
38817 $as_echo_n "checking for $ac_word... " >&6; }
38818 if ${ac_cv_prog_OTOOL64+:} false; then :
38819 $as_echo_n "(cached) " >&6
38821 if test -n "$OTOOL64"; then
38822 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
38824 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
38825 for as_dir in $PATH
38828 test -z "$as_dir" && as_dir=.
38829 for ac_exec_ext in '' $ac_executable_extensions; do
38830 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
38831 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
38832 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
38841 OTOOL64=$ac_cv_prog_OTOOL64
38842 if test -n "$OTOOL64"; then
38843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
38844 $as_echo "$OTOOL64" >&6; }
38846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38847 $as_echo "no" >&6; }
38852 if test -z "$ac_cv_prog_OTOOL64"; then
38853 ac_ct_OTOOL64=$OTOOL64
38854 # Extract the first word of "otool64", so it can be a program name with args.
38855 set dummy otool64; ac_word=$2
38856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
38857 $as_echo_n "checking for $ac_word... " >&6; }
38858 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
38859 $as_echo_n "(cached) " >&6
38861 if test -n "$ac_ct_OTOOL64"; then
38862 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
38864 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
38865 for as_dir in $PATH
38868 test -z "$as_dir" && as_dir=.
38869 for ac_exec_ext in '' $ac_executable_extensions; do
38870 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
38871 ac_cv_prog_ac_ct_OTOOL64="otool64"
38872 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
38881 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
38882 if test -n "$ac_ct_OTOOL64"; then
38883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
38884 $as_echo "$ac_ct_OTOOL64" >&6; }
38886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38887 $as_echo "no" >&6; }
38890 if test "x$ac_ct_OTOOL64" = x; then
38893 case $cross_compiling:$ac_tool_warned in
38895 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
38896 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
38897 ac_tool_warned=yes ;;
38899 OTOOL64=$ac_ct_OTOOL64
38902 OTOOL64="$ac_cv_prog_OTOOL64"
38931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
38932 $as_echo_n "checking for -single_module linker flag... " >&6; }
38933 if ${lt_cv_apple_cc_single_mod+:} false; then :
38934 $as_echo_n "(cached) " >&6
38936 lt_cv_apple_cc_single_mod=no
38937 if test -z "${LT_MULTI_MODULE}"; then
38938 # By default we will add the -single_module flag. You can override
38939 # by either setting the environment variable LT_MULTI_MODULE
38940 # non-empty at configure time, or by adding -multi_module to the
38942 rm -rf libconftest.dylib*
38943 echo "int foo(void){return 1;}" > conftest.c
38944 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
38945 -dynamiclib -Wl,-single_module conftest.c" >&5
38946 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
38947 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
38949 # If there is a non-empty error log, and "single_module"
38950 # appears in it, assume the flag caused a linker warning
38951 if test -s conftest.err && $GREP single_module conftest.err; then
38952 cat conftest.err >&5
38953 # Otherwise, if the output was created with a 0 exit code from
38954 # the compiler, it worked.
38955 elif test -f libconftest.dylib && test $_lt_result -eq 0; then
38956 lt_cv_apple_cc_single_mod=yes
38958 cat conftest.err >&5
38960 rm -rf libconftest.dylib*
38964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
38965 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
38967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
38968 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
38969 if ${lt_cv_ld_exported_symbols_list+:} false; then :
38970 $as_echo_n "(cached) " >&6
38972 lt_cv_ld_exported_symbols_list=no
38973 save_LDFLAGS=$LDFLAGS
38974 echo "_main" > conftest.sym
38975 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
38976 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38977 /* end confdefs.h. */
38987 if ac_fn_c_try_link "$LINENO"; then :
38988 lt_cv_ld_exported_symbols_list=yes
38990 lt_cv_ld_exported_symbols_list=no
38992 rm -f core conftest.err conftest.$ac_objext \
38993 conftest$ac_exeext conftest.$ac_ext
38994 LDFLAGS="$save_LDFLAGS"
38997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
38998 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
39000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
39001 $as_echo_n "checking for -force_load linker flag... " >&6; }
39002 if ${lt_cv_ld_force_load+:} false; then :
39003 $as_echo_n "(cached) " >&6
39005 lt_cv_ld_force_load=no
39006 cat > conftest.c << _LT_EOF
39007 int forced_loaded() { return 2;}
39009 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
39010 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
39011 echo "$AR cru libconftest.a conftest.o" >&5
39012 $AR cru libconftest.a conftest.o 2>&5
39013 echo "$RANLIB libconftest.a" >&5
39014 $RANLIB libconftest.a 2>&5
39015 cat > conftest.c << _LT_EOF
39016 int main() { return 0;}
39018 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
39019 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
39021 if test -s conftest.err && $GREP force_load conftest.err; then
39022 cat conftest.err >&5
39023 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
39024 lt_cv_ld_force_load=yes
39026 cat conftest.err >&5
39028 rm -f conftest.err libconftest.a conftest conftest.c
39029 rm -rf conftest.dSYM
39032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
39033 $as_echo "$lt_cv_ld_force_load" >&6; }
39035 rhapsody* | darwin1.[012])
39036 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
39038 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
39039 darwin*) # darwin 5.x on
39040 # if running on 10.5 or later, the deployment target defaults
39041 # to the OS version, if on x86, and 10.4, the deployment
39042 # target defaults to 10.4. Don't you love it?
39043 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
39044 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
39045 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
39047 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
39049 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
39053 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
39054 _lt_dar_single_mod='$single_module'
39056 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
39057 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
39059 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
39061 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
39062 _lt_dsymutil='~$DSYMUTIL $lib || :'
39069 for ac_header in dlfcn.h
39071 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
39073 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
39074 cat >>confdefs.h <<_ACEOF
39075 #define HAVE_DLFCN_H 1
39084 func_stripname_cnf ()
39087 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
39088 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
39090 } # func_stripname_cnf
39097 # Check whether --enable-static was given.
39098 if test "${enable_static+set}" = set; then :
39099 enableval=$enable_static; p=${PACKAGE-default}
39101 yes) enable_static=yes ;;
39102 no) enable_static=no ;;
39105 # Look at the argument we got. We use all the common list separators.
39106 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
39107 for pkg in $enableval; do
39109 if test "X$pkg" = "X$p"; then
39132 enable_win32_dll=no
39135 # Check whether --enable-shared was given.
39136 if test "${enable_shared+set}" = set; then :
39137 enableval=$enable_shared; p=${PACKAGE-default}
39139 yes) enable_shared=yes ;;
39140 no) enable_shared=no ;;
39143 # Look at the argument we got. We use all the common list separators.
39144 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
39145 for pkg in $enableval; do
39147 if test "X$pkg" = "X$p"; then
39168 # Check whether --with-pic was given.
39169 if test "${with_pic+set}" = set; then :
39170 withval=$with_pic; lt_p=${PACKAGE-default}
39172 yes|no) pic_mode=$withval ;;
39175 # Look at the argument we got. We use all the common list separators.
39176 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
39177 for lt_pkg in $withval; do
39179 if test "X$lt_pkg" = "X$lt_p"; then
39191 test -z "$pic_mode" && pic_mode=default
39199 # Check whether --enable-fast-install was given.
39200 if test "${enable_fast_install+set}" = set; then :
39201 enableval=$enable_fast_install; p=${PACKAGE-default}
39203 yes) enable_fast_install=yes ;;
39204 no) enable_fast_install=no ;;
39206 enable_fast_install=no
39207 # Look at the argument we got. We use all the common list separators.
39208 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
39209 for pkg in $enableval; do
39211 if test "X$pkg" = "X$p"; then
39212 enable_fast_install=yes
39219 enable_fast_install=yes
39232 # This can be used to rebuild libtool when needed
39233 LIBTOOL_DEPS="$ltmain"
39235 # Always use our own libtool.
39236 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
39267 test -z "$LN_S" && LN_S="ln -s"
39282 if test -n "${ZSH_VERSION+set}" ; then
39283 setopt NO_GLOB_SUBST
39286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
39287 $as_echo_n "checking for objdir... " >&6; }
39288 if ${lt_cv_objdir+:} false; then :
39289 $as_echo_n "(cached) " >&6
39291 rm -f .libs 2>/dev/null
39292 mkdir .libs 2>/dev/null
39293 if test -d .libs; then
39296 # MS-DOS does not allow filenames that begin with a dot.
39299 rmdir .libs 2>/dev/null
39301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
39302 $as_echo "$lt_cv_objdir" >&6; }
39303 objdir=$lt_cv_objdir
39309 cat >>confdefs.h <<_ACEOF
39310 #define LT_OBJDIR "$lt_cv_objdir/"
39318 # AIX sometimes has problems with the GCC collect2 program. For some
39319 # reason, if we set the COLLECT_NAMES environment variable, the problems
39320 # vanish in a puff of smoke.
39321 if test "X${COLLECT_NAMES+set}" != Xset; then
39323 export COLLECT_NAMES
39328 # Global variables:
39330 can_build_shared=yes
39332 # All known linkers require a `.a' archive for static linking (except MSVC,
39333 # which needs '.lib').
39336 with_gnu_ld="$lt_cv_prog_gnu_ld"
39339 old_CFLAGS="$CFLAGS"
39341 # Set sane defaults for various variables
39342 test -z "$CC" && CC=cc
39343 test -z "$LTCC" && LTCC=$CC
39344 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
39345 test -z "$LD" && LD=ld
39346 test -z "$ac_objext" && ac_objext=o
39348 for cc_temp in $compiler""; do
39350 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
39351 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
39356 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
39359 # Only perform the check for file, if the check method requires it
39360 test -z "$MAGIC_CMD" && MAGIC_CMD=file
39361 case $deplibs_check_method in
39363 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
39364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
39365 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
39366 if ${lt_cv_path_MAGIC_CMD+:} false; then :
39367 $as_echo_n "(cached) " >&6
39371 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
39374 lt_save_MAGIC_CMD="$MAGIC_CMD"
39375 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
39376 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
39377 for ac_dir in $ac_dummy; do
39379 test -z "$ac_dir" && ac_dir=.
39380 if test -f $ac_dir/${ac_tool_prefix}file; then
39381 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
39382 if test -n "$file_magic_test_file"; then
39383 case $deplibs_check_method in
39385 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
39386 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
39387 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
39388 $EGREP "$file_magic_regex" > /dev/null; then
39393 *** Warning: the command libtool uses to detect shared libraries,
39394 *** $file_magic_cmd, produces output that libtool cannot recognize.
39395 *** The result is that libtool may fail to recognize shared libraries
39396 *** as such. This will affect the creation of libtool libraries that
39397 *** depend on shared libraries, but programs linked with such libtool
39398 *** libraries will work regardless of this problem. Nevertheless, you
39399 *** may want to report the problem to your system manager and/or to
39400 *** bug-libtool@gnu.org
39410 MAGIC_CMD="$lt_save_MAGIC_CMD"
39415 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
39416 if test -n "$MAGIC_CMD"; then
39417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
39418 $as_echo "$MAGIC_CMD" >&6; }
39420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39421 $as_echo "no" >&6; }
39428 if test -z "$lt_cv_path_MAGIC_CMD"; then
39429 if test -n "$ac_tool_prefix"; then
39430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
39431 $as_echo_n "checking for file... " >&6; }
39432 if ${lt_cv_path_MAGIC_CMD+:} false; then :
39433 $as_echo_n "(cached) " >&6
39437 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
39440 lt_save_MAGIC_CMD="$MAGIC_CMD"
39441 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
39442 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
39443 for ac_dir in $ac_dummy; do
39445 test -z "$ac_dir" && ac_dir=.
39446 if test -f $ac_dir/file; then
39447 lt_cv_path_MAGIC_CMD="$ac_dir/file"
39448 if test -n "$file_magic_test_file"; then
39449 case $deplibs_check_method in
39451 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
39452 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
39453 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
39454 $EGREP "$file_magic_regex" > /dev/null; then
39459 *** Warning: the command libtool uses to detect shared libraries,
39460 *** $file_magic_cmd, produces output that libtool cannot recognize.
39461 *** The result is that libtool may fail to recognize shared libraries
39462 *** as such. This will affect the creation of libtool libraries that
39463 *** depend on shared libraries, but programs linked with such libtool
39464 *** libraries will work regardless of this problem. Nevertheless, you
39465 *** may want to report the problem to your system manager and/or to
39466 *** bug-libtool@gnu.org
39476 MAGIC_CMD="$lt_save_MAGIC_CMD"
39481 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
39482 if test -n "$MAGIC_CMD"; then
39483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
39484 $as_echo "$MAGIC_CMD" >&6; }
39486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39487 $as_echo "no" >&6; }
39500 # Use C for the default configuration in the libtool script
39504 ac_cpp='$CPP $CPPFLAGS'
39505 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
39506 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
39507 ac_compiler_gnu=$ac_cv_c_compiler_gnu
39510 # Source file extension for C test sources.
39513 # Object file extension for compiled C test sources.
39517 # Code to be used in simple compile tests
39518 lt_simple_compile_test_code="int some_variable = 0;"
39520 # Code to be used in simple link tests
39521 lt_simple_link_test_code='int main(){return(0);}'
39529 # If no C compiler was specified, use CC.
39532 # If no C compiler flags were specified, use CFLAGS.
39533 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
39535 # Allow CC to be a program name with arguments.
39538 # Save the default compiler, since it gets overwritten when the other
39539 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
39540 compiler_DEFAULT=$CC
39542 # save warnings/boilerplate of simple test code
39543 ac_outfile=conftest.$ac_objext
39544 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
39545 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
39546 _lt_compiler_boilerplate=`cat conftest.err`
39549 ac_outfile=conftest.$ac_objext
39550 echo "$lt_simple_link_test_code" >conftest.$ac_ext
39551 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
39552 _lt_linker_boilerplate=`cat conftest.err`
39557 ## There is no encapsulation within the following macros, do not change
39558 ## the running order or otherwise move them around unless you know exactly
39559 ## what you are doing...
39560 if test -n "$compiler"; then
39562 lt_prog_compiler_no_builtin_flag=
39564 if test "$GCC" = yes; then
39565 case $cc_basename in
39567 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
39569 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
39572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
39573 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
39574 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
39575 $as_echo_n "(cached) " >&6
39577 lt_cv_prog_compiler_rtti_exceptions=no
39578 ac_outfile=conftest.$ac_objext
39579 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
39580 lt_compiler_flag="-fno-rtti -fno-exceptions"
39581 # Insert the option either (1) after the last *FLAGS variable, or
39582 # (2) before a word containing "conftest.", or (3) at the end.
39583 # Note that $ac_compile itself does not contain backslashes and begins
39584 # with a dollar sign (not a hyphen), so the echo should work correctly.
39585 # The option is referenced via a variable to avoid confusing sed.
39586 lt_compile=`echo "$ac_compile" | $SED \
39587 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
39588 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
39589 -e 's:$: $lt_compiler_flag:'`
39590 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
39591 (eval "$lt_compile" 2>conftest.err)
39593 cat conftest.err >&5
39594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39595 if (exit $ac_status) && test -s "$ac_outfile"; then
39596 # The compiler can only warn and ignore the option if not recognized
39597 # So say no if there are warnings other than the usual output.
39598 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
39599 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
39600 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
39601 lt_cv_prog_compiler_rtti_exceptions=yes
39607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
39608 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
39610 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
39611 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
39623 lt_prog_compiler_wl=
39624 lt_prog_compiler_pic=
39625 lt_prog_compiler_static=
39628 if test "$GCC" = yes; then
39629 lt_prog_compiler_wl='-Wl,'
39630 lt_prog_compiler_static='-static'
39634 # All AIX code is PIC.
39635 if test "$host_cpu" = ia64; then
39636 # AIX 5 now supports IA64 processor
39637 lt_prog_compiler_static='-Bstatic'
39644 # see comment about AmigaOS4 .so support
39645 lt_prog_compiler_pic='-fPIC'
39648 # FIXME: we need at least 68020 code to build shared libraries, but
39649 # adding the `-m68020' flag to GCC prevents building anything better,
39651 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
39656 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
39657 # PIC is the default for these OSes.
39660 mingw* | cygwin* | pw32* | os2* | cegcc*)
39661 # This hack is so that the source file can tell whether it is being
39662 # built for inclusion in a dll (and should export symbols for example).
39663 # Although the cygwin gcc ignores -fPIC, still need this for old-style
39664 # (--disable-auto-import) libraries
39665 lt_prog_compiler_pic='-DDLL_EXPORT'
39668 darwin* | rhapsody*)
39669 # PIC is the default on this platform
39670 # Common symbols not allowed in MH_DYLIB files
39671 lt_prog_compiler_pic='-fno-common'
39675 # PIC is the default for Haiku.
39676 # The "-static" flag exists, but is broken.
39677 lt_prog_compiler_static=
39681 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
39682 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
39683 # sets the default TLS model and affects inlining.
39689 lt_prog_compiler_pic='-fPIC'
39695 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
39696 # Instead, we relocate shared libraries at runtime.
39700 # Just because we use GCC doesn't mean we suddenly get shared libraries
39701 # on systems that don't support them.
39702 lt_prog_compiler_can_build_shared=no
39707 # QNX uses GNU C++, but need to define -shared option too, otherwise
39708 # it will coredump.
39709 lt_prog_compiler_pic='-fPIC -shared'
39713 if test -d /usr/nec; then
39714 lt_prog_compiler_pic=-Kconform_pic
39719 lt_prog_compiler_pic='-fPIC'
39723 case $cc_basename in
39724 nvcc*) # Cuda Compiler Driver 2.2
39725 lt_prog_compiler_wl='-Xlinker '
39726 if test -n "$lt_prog_compiler_pic"; then
39727 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
39732 # PORTME Check for flag to pass linker flags through the system compiler.
39735 lt_prog_compiler_wl='-Wl,'
39736 if test "$host_cpu" = ia64; then
39737 # AIX 5 now supports IA64 processor
39738 lt_prog_compiler_static='-Bstatic'
39740 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
39744 mingw* | cygwin* | pw32* | os2* | cegcc*)
39745 # This hack is so that the source file can tell whether it is being
39746 # built for inclusion in a dll (and should export symbols for example).
39747 lt_prog_compiler_pic='-DDLL_EXPORT'
39750 hpux9* | hpux10* | hpux11*)
39751 lt_prog_compiler_wl='-Wl,'
39752 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
39753 # not for PA HP-UX.
39759 lt_prog_compiler_pic='+Z'
39762 # Is there a better lt_prog_compiler_static that works with the bundled CC?
39763 lt_prog_compiler_static='${wl}-a ${wl}archive'
39766 irix5* | irix6* | nonstopux*)
39767 lt_prog_compiler_wl='-Wl,'
39768 # PIC (with -KPIC) is the default.
39769 lt_prog_compiler_static='-non_shared'
39772 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
39773 case $cc_basename in
39774 # old Intel for x86_64 which still supported -KPIC.
39776 lt_prog_compiler_wl='-Wl,'
39777 lt_prog_compiler_pic='-KPIC'
39778 lt_prog_compiler_static='-static'
39780 # icc used to be incompatible with GCC.
39781 # ICC 10 doesn't accept -KPIC any more.
39783 lt_prog_compiler_wl='-Wl,'
39784 lt_prog_compiler_pic='-fPIC'
39785 lt_prog_compiler_static='-static'
39787 # Lahey Fortran 8.1.
39789 lt_prog_compiler_wl='-Wl,'
39790 lt_prog_compiler_pic='--shared'
39791 lt_prog_compiler_static='--static'
39794 # NAG Fortran compiler
39795 lt_prog_compiler_wl='-Wl,-Wl,,'
39796 lt_prog_compiler_pic='-PIC'
39797 lt_prog_compiler_static='-Bstatic'
39799 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
39800 # Portland Group compilers (*not* the Pentium gcc compiler,
39801 # which looks to be a dead project)
39802 lt_prog_compiler_wl='-Wl,'
39803 lt_prog_compiler_pic='-fpic'
39804 lt_prog_compiler_static='-Bstatic'
39807 lt_prog_compiler_wl='-Wl,'
39808 # All Alpha code is PIC.
39809 lt_prog_compiler_static='-non_shared'
39811 xl* | bgxl* | bgf* | mpixl*)
39812 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
39813 lt_prog_compiler_wl='-Wl,'
39814 lt_prog_compiler_pic='-qpic'
39815 lt_prog_compiler_static='-qstaticlink'
39818 case `$CC -V 2>&1 | sed 5q` in
39819 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
39820 # Sun Fortran 8.3 passes all unrecognized flags to the linker
39821 lt_prog_compiler_pic='-KPIC'
39822 lt_prog_compiler_static='-Bstatic'
39823 lt_prog_compiler_wl=''
39825 *Sun\ F* | *Sun*Fortran*)
39826 lt_prog_compiler_pic='-KPIC'
39827 lt_prog_compiler_static='-Bstatic'
39828 lt_prog_compiler_wl='-Qoption ld '
39832 lt_prog_compiler_pic='-KPIC'
39833 lt_prog_compiler_static='-Bstatic'
39834 lt_prog_compiler_wl='-Wl,'
39836 *Intel*\ [CF]*Compiler*)
39837 lt_prog_compiler_wl='-Wl,'
39838 lt_prog_compiler_pic='-fPIC'
39839 lt_prog_compiler_static='-static'
39842 lt_prog_compiler_wl='-Wl,'
39843 lt_prog_compiler_pic='-fpic'
39844 lt_prog_compiler_static='-Bstatic'
39852 lt_prog_compiler_pic='-KPIC'
39853 lt_prog_compiler_static='-Bstatic'
39857 # QNX uses GNU C++, but need to define -shared option too, otherwise
39858 # it will coredump.
39859 lt_prog_compiler_pic='-fPIC -shared'
39862 osf3* | osf4* | osf5*)
39863 lt_prog_compiler_wl='-Wl,'
39864 # All OSF/1 code is PIC.
39865 lt_prog_compiler_static='-non_shared'
39869 lt_prog_compiler_static='-non_shared'
39873 lt_prog_compiler_pic='-KPIC'
39874 lt_prog_compiler_static='-Bstatic'
39875 case $cc_basename in
39876 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
39877 lt_prog_compiler_wl='-Qoption ld ';;
39879 lt_prog_compiler_wl='-Wl,';;
39884 lt_prog_compiler_wl='-Qoption ld '
39885 lt_prog_compiler_pic='-PIC'
39886 lt_prog_compiler_static='-Bstatic'
39889 sysv4 | sysv4.2uw2* | sysv4.3*)
39890 lt_prog_compiler_wl='-Wl,'
39891 lt_prog_compiler_pic='-KPIC'
39892 lt_prog_compiler_static='-Bstatic'
39896 if test -d /usr/nec ;then
39897 lt_prog_compiler_pic='-Kconform_pic'
39898 lt_prog_compiler_static='-Bstatic'
39902 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
39903 lt_prog_compiler_wl='-Wl,'
39904 lt_prog_compiler_pic='-KPIC'
39905 lt_prog_compiler_static='-Bstatic'
39909 lt_prog_compiler_wl='-Wl,'
39910 lt_prog_compiler_can_build_shared=no
39914 lt_prog_compiler_pic='-pic'
39915 lt_prog_compiler_static='-Bstatic'
39919 lt_prog_compiler_can_build_shared=no
39925 # For platforms which do not support PIC, -DPIC is meaningless:
39927 lt_prog_compiler_pic=
39930 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
39934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
39935 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
39936 if ${lt_cv_prog_compiler_pic+:} false; then :
39937 $as_echo_n "(cached) " >&6
39939 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
39941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
39942 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
39943 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
39946 # Check to make sure the PIC flag actually works.
39948 if test -n "$lt_prog_compiler_pic"; then
39949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
39950 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
39951 if ${lt_cv_prog_compiler_pic_works+:} false; then :
39952 $as_echo_n "(cached) " >&6
39954 lt_cv_prog_compiler_pic_works=no
39955 ac_outfile=conftest.$ac_objext
39956 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
39957 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
39958 # Insert the option either (1) after the last *FLAGS variable, or
39959 # (2) before a word containing "conftest.", or (3) at the end.
39960 # Note that $ac_compile itself does not contain backslashes and begins
39961 # with a dollar sign (not a hyphen), so the echo should work correctly.
39962 # The option is referenced via a variable to avoid confusing sed.
39963 lt_compile=`echo "$ac_compile" | $SED \
39964 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
39965 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
39966 -e 's:$: $lt_compiler_flag:'`
39967 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
39968 (eval "$lt_compile" 2>conftest.err)
39970 cat conftest.err >&5
39971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39972 if (exit $ac_status) && test -s "$ac_outfile"; then
39973 # The compiler can only warn and ignore the option if not recognized
39974 # So say no if there are warnings other than the usual output.
39975 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
39976 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
39977 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
39978 lt_cv_prog_compiler_pic_works=yes
39984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
39985 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
39987 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
39988 case $lt_prog_compiler_pic in
39990 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
39993 lt_prog_compiler_pic=
39994 lt_prog_compiler_can_build_shared=no
40010 # Check to make sure the static flag actually works.
40012 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
40013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
40014 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
40015 if ${lt_cv_prog_compiler_static_works+:} false; then :
40016 $as_echo_n "(cached) " >&6
40018 lt_cv_prog_compiler_static_works=no
40019 save_LDFLAGS="$LDFLAGS"
40020 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
40021 echo "$lt_simple_link_test_code" > conftest.$ac_ext
40022 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
40023 # The linker can only warn and ignore the option if not recognized
40024 # So say no if there are warnings
40025 if test -s conftest.err; then
40026 # Append any errors to the config.log.
40027 cat conftest.err 1>&5
40028 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
40029 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
40030 if diff conftest.exp conftest.er2 >/dev/null; then
40031 lt_cv_prog_compiler_static_works=yes
40034 lt_cv_prog_compiler_static_works=yes
40038 LDFLAGS="$save_LDFLAGS"
40041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
40042 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
40044 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
40047 lt_prog_compiler_static=
40056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
40057 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
40058 if ${lt_cv_prog_compiler_c_o+:} false; then :
40059 $as_echo_n "(cached) " >&6
40061 lt_cv_prog_compiler_c_o=no
40062 $RM -r conftest 2>/dev/null
40066 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
40068 lt_compiler_flag="-o out/conftest2.$ac_objext"
40069 # Insert the option either (1) after the last *FLAGS variable, or
40070 # (2) before a word containing "conftest.", or (3) at the end.
40071 # Note that $ac_compile itself does not contain backslashes and begins
40072 # with a dollar sign (not a hyphen), so the echo should work correctly.
40073 lt_compile=`echo "$ac_compile" | $SED \
40074 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
40075 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
40076 -e 's:$: $lt_compiler_flag:'`
40077 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
40078 (eval "$lt_compile" 2>out/conftest.err)
40080 cat out/conftest.err >&5
40081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40082 if (exit $ac_status) && test -s out/conftest2.$ac_objext
40084 # The compiler can only warn and ignore the option if not recognized
40085 # So say no if there are warnings
40086 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
40087 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
40088 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
40089 lt_cv_prog_compiler_c_o=yes
40094 # SGI C++ compiler will create directory out/ii_files/ for
40095 # template instantiation
40096 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
40097 $RM out/* && rmdir out
40103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
40104 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
40111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
40112 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
40113 if ${lt_cv_prog_compiler_c_o+:} false; then :
40114 $as_echo_n "(cached) " >&6
40116 lt_cv_prog_compiler_c_o=no
40117 $RM -r conftest 2>/dev/null
40121 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
40123 lt_compiler_flag="-o out/conftest2.$ac_objext"
40124 # Insert the option either (1) after the last *FLAGS variable, or
40125 # (2) before a word containing "conftest.", or (3) at the end.
40126 # Note that $ac_compile itself does not contain backslashes and begins
40127 # with a dollar sign (not a hyphen), so the echo should work correctly.
40128 lt_compile=`echo "$ac_compile" | $SED \
40129 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
40130 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
40131 -e 's:$: $lt_compiler_flag:'`
40132 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
40133 (eval "$lt_compile" 2>out/conftest.err)
40135 cat out/conftest.err >&5
40136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40137 if (exit $ac_status) && test -s out/conftest2.$ac_objext
40139 # The compiler can only warn and ignore the option if not recognized
40140 # So say no if there are warnings
40141 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
40142 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
40143 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
40144 lt_cv_prog_compiler_c_o=yes
40149 # SGI C++ compiler will create directory out/ii_files/ for
40150 # template instantiation
40151 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
40152 $RM out/* && rmdir out
40158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
40159 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
40164 hard_links="nottested"
40165 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
40166 # do not overwrite the value of need_locks provided by the user
40167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
40168 $as_echo_n "checking if we can lock with hard links... " >&6; }
40171 ln conftest.a conftest.b 2>/dev/null && hard_links=no
40173 ln conftest.a conftest.b 2>&5 || hard_links=no
40174 ln conftest.a conftest.b 2>/dev/null && hard_links=no
40175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
40176 $as_echo "$hard_links" >&6; }
40177 if test "$hard_links" = no; then
40178 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
40179 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
40191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
40192 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
40195 allow_undefined_flag=
40196 always_export_symbols=no
40198 archive_expsym_cmds=
40199 compiler_needs_object=no
40200 enable_shared_with_static_runtimes=no
40201 export_dynamic_flag_spec=
40202 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
40203 hardcode_automatic=no
40205 hardcode_direct_absolute=no
40206 hardcode_libdir_flag_spec=
40207 hardcode_libdir_separator=
40208 hardcode_minus_L=no
40209 hardcode_shlibpath_var=unsupported
40211 link_all_deplibs=unknown
40213 module_expsym_cmds=
40214 old_archive_from_new_cmds=
40215 old_archive_from_expsyms_cmds=
40216 thread_safe_flag_spec=
40217 whole_archive_flag_spec=
40218 # include_expsyms should be a list of space-separated symbols to be *always*
40219 # included in the symbol list
40221 # exclude_expsyms can be an extended regexp of symbols to exclude
40222 # it will be wrapped by ` (' and `)$', so one must not match beginning or
40223 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
40224 # as well as any symbol that contains `d'.
40225 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
40226 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
40227 # platforms (ab)use it in PIC code, but their linkers get confused if
40228 # the symbol is explicitly referenced. Since portable code cannot
40229 # rely on this symbol name, it's probably fine to never include it in
40230 # preloaded symbol tables.
40231 # Exclude shared library initialization/finalization symbols.
40232 extract_expsyms_cmds=
40235 cygwin* | mingw* | pw32* | cegcc*)
40236 # FIXME: the MSVC++ port hasn't been tested in a loooong time
40237 # When not using gcc, we currently assume that we are using
40238 # Microsoft Visual C++.
40239 if test "$GCC" != yes; then
40244 # we just hope/assume this is gcc and not c89 (= MSVC++)
40250 linux* | k*bsd*-gnu | gnu*)
40251 link_all_deplibs=no
40257 # On some targets, GNU ld is compatible enough with the native linker
40258 # that we're better off using the native interface for both.
40259 lt_use_gnu_ld_interface=no
40260 if test "$with_gnu_ld" = yes; then
40263 # The AIX port of GNU ld has always aspired to compatibility
40264 # with the native linker. However, as the warning in the GNU ld
40265 # block says, versions before 2.19.5* couldn't really create working
40266 # shared libraries, regardless of the interface used.
40267 case `$LD -v 2>&1` in
40268 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
40269 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
40270 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
40272 lt_use_gnu_ld_interface=yes
40277 lt_use_gnu_ld_interface=yes
40282 if test "$lt_use_gnu_ld_interface" = yes; then
40283 # If archive_cmds runs LD, not CC, wlarc should be empty
40286 # Set some defaults for GNU ld with shared library support. These
40287 # are reset later if shared libraries are not supported. Putting them
40288 # here allows them to be overridden if necessary.
40289 runpath_var=LD_RUN_PATH
40290 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
40291 export_dynamic_flag_spec='${wl}--export-dynamic'
40292 # ancient GNU ld didn't support --whole-archive et. al.
40293 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
40294 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
40296 whole_archive_flag_spec=
40298 supports_anon_versioning=no
40299 case `$LD -v 2>&1` in
40300 *GNU\ gold*) supports_anon_versioning=yes ;;
40301 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
40302 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
40303 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
40304 *\ 2.11.*) ;; # other 2.11 versions
40305 *) supports_anon_versioning=yes ;;
40308 # See if GNU ld supports shared libraries.
40311 # On AIX/PPC, the GNU linker is very broken
40312 if test "$host_cpu" != ia64; then
40316 *** Warning: the GNU linker, at least up to release 2.19, is reported
40317 *** to be unable to reliably create shared libraries on AIX.
40318 *** Therefore, libtool is disabling shared libraries support. If you
40319 *** really care for shared libraries, you may want to install binutils
40320 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
40321 *** You will then need to restart the configuration process.
40330 # see comment about AmigaOS4 .so support
40331 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
40332 archive_expsym_cmds=''
40335 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)'
40336 hardcode_libdir_flag_spec='-L$libdir'
40337 hardcode_minus_L=yes
40343 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
40344 allow_undefined_flag=unsupported
40345 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
40346 # support --undefined. This deserves some investigation. FIXME
40347 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
40353 cygwin* | mingw* | pw32* | cegcc*)
40354 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
40355 # as there is no search path for DLLs.
40356 hardcode_libdir_flag_spec='-L$libdir'
40357 export_dynamic_flag_spec='${wl}--export-all-symbols'
40358 allow_undefined_flag=unsupported
40359 always_export_symbols=no
40360 enable_shared_with_static_runtimes=yes
40361 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'
40362 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
40364 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
40365 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
40366 # If the export-symbols file already is a .def file (1st line
40367 # is EXPORTS), use it as is; otherwise, prepend...
40368 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
40369 cp $export_symbols $output_objdir/$soname.def;
40371 echo EXPORTS > $output_objdir/$soname.def;
40372 cat $export_symbols >> $output_objdir/$soname.def;
40374 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
40381 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
40382 link_all_deplibs=yes
40387 hardcode_shlibpath_var=no
40388 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
40389 export_dynamic_flag_spec='${wl}-E'
40390 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
40391 # Instead, shared libraries are loaded at an image base (0x10000000 by
40392 # default) and relocated if they conflict, which is a slow very memory
40393 # consuming and fragmenting process. To avoid this, we pick a random,
40394 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
40395 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
40396 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
40397 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'
40400 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
40402 if test "$host_os" = linux-dietlibc; then
40403 case $cc_basename in
40404 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
40407 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
40408 && test "$tmp_diet" = no
40410 tmp_addflag=' $pic_flag'
40411 tmp_sharedflag='-shared'
40412 case $cc_basename,$host_cpu in
40413 pgcc*) # Portland Group C compiler
40414 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'
40415 tmp_addflag=' $pic_flag'
40417 pgf77* | pgf90* | pgf95* | pgfortran*)
40418 # Portland Group f77 and f90 compilers
40419 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'
40420 tmp_addflag=' $pic_flag -Mnomain' ;;
40421 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
40422 tmp_addflag=' -i_dynamic' ;;
40423 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
40424 tmp_addflag=' -i_dynamic -nofor_main' ;;
40425 ifc* | ifort*) # Intel Fortran compiler
40426 tmp_addflag=' -nofor_main' ;;
40427 lf95*) # Lahey Fortran 8.1
40428 whole_archive_flag_spec=
40429 tmp_sharedflag='--shared' ;;
40430 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
40431 tmp_sharedflag='-qmkshrobj'
40433 nvcc*) # Cuda Compiler Driver 2.2
40434 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'
40435 compiler_needs_object=yes
40438 case `$CC -V 2>&1 | sed 5q` in
40439 *Sun\ C*) # Sun C 5.9
40440 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'
40441 compiler_needs_object=yes
40442 tmp_sharedflag='-G' ;;
40443 *Sun\ F*) # Sun Fortran 8.3
40444 tmp_sharedflag='-G' ;;
40446 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
40448 if test "x$supports_anon_versioning" = xyes; then
40449 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
40450 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
40451 echo "local: *; };" >> $output_objdir/$libname.ver~
40452 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
40455 case $cc_basename in
40456 xlf* | bgf* | bgxlf* | mpixlf*)
40457 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
40458 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
40459 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
40460 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
40461 if test "x$supports_anon_versioning" = xyes; then
40462 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
40463 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
40464 echo "local: *; };" >> $output_objdir/$libname.ver~
40465 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
40474 netbsd* | netbsdelf*-gnu)
40475 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
40476 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
40479 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
40480 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
40485 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
40489 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
40490 *** create shared libraries on Solaris systems. Therefore, libtool
40491 *** is disabling shared libraries support. We urge you to upgrade GNU
40492 *** binutils to release 2.9.1 or newer. Another option is to modify
40493 *** your PATH or compiler configuration so that the native linker is
40494 *** used, and then restart.
40497 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
40498 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
40499 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
40505 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
40506 case `$LD -v 2>&1` in
40507 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
40511 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
40512 *** reliably create shared libraries on SCO systems. Therefore, libtool
40513 *** is disabling shared libraries support. We urge you to upgrade GNU
40514 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
40515 *** your PATH or compiler configuration so that the native linker is
40516 *** used, and then restart.
40521 # For security reasons, it is highly recommended that you always
40522 # use absolute paths for naming shared libraries, and exclude the
40523 # DT_RUNPATH tag from executables and libraries. But doing so
40524 # requires that you compile everything twice, which is a pain.
40525 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
40526 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
40527 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
40528 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
40537 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
40539 hardcode_direct=yes
40540 hardcode_shlibpath_var=no
40544 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
40545 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
40546 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
40553 if test "$ld_shlibs" = no; then
40555 hardcode_libdir_flag_spec=
40556 export_dynamic_flag_spec=
40557 whole_archive_flag_spec=
40560 # PORTME fill in a description of your system's linker (not GNU ld)
40563 allow_undefined_flag=unsupported
40564 always_export_symbols=yes
40565 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'
40566 # Note: this linker hardcodes the directories in LIBPATH if there
40567 # are no directories specified by -L.
40568 hardcode_minus_L=yes
40569 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
40570 # Neither direct hardcoding nor static linking is supported with a
40572 hardcode_direct=unsupported
40577 if test "$host_cpu" = ia64; then
40578 # On IA64, the linker does run time linking by default, so we don't
40579 # have to do anything special.
40580 aix_use_runtimelinking=no
40581 exp_sym_flag='-Bexport'
40584 # If we're using GNU nm, then we don't want the "-C" option.
40585 # -C means demangle to AIX nm, but means don't demangle with GNU nm
40586 # Also, AIX nm treats weak defined symbols like other global
40587 # defined symbols, whereas GNU nm marks them as "W".
40588 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
40589 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
40591 export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
40593 aix_use_runtimelinking=no
40595 # Test if we are trying to use run time linking or normal
40596 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
40597 # need to do runtime linking.
40598 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
40599 for ld_flag in $LDFLAGS; do
40600 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
40601 aix_use_runtimelinking=yes
40608 exp_sym_flag='-bexport'
40609 no_entry_flag='-bnoentry'
40612 # When large executables or shared objects are built, AIX ld can
40613 # have problems creating the table of contents. If linking a library
40614 # or program results in "error TOC overflow" add -mminimal-toc to
40615 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
40616 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
40619 hardcode_direct=yes
40620 hardcode_direct_absolute=yes
40621 hardcode_libdir_separator=':'
40622 link_all_deplibs=yes
40623 file_list_spec='${wl}-f,'
40625 if test "$GCC" = yes; then
40626 case $host_os in aix4.[012]|aix4.[012].*)
40627 # We only want to do this on AIX 4.2 and lower, the check
40628 # below for broken collect2 doesn't work under 4.3+
40629 collect2name=`${CC} -print-prog-name=collect2`
40630 if test -f "$collect2name" &&
40631 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
40633 # We have reworked collect2
40636 # We have old collect2
40637 hardcode_direct=unsupported
40638 # It fails to find uninstalled libraries when the uninstalled
40639 # path is not listed in the libpath. Setting hardcode_minus_L
40640 # to unsupported forces relinking
40641 hardcode_minus_L=yes
40642 hardcode_libdir_flag_spec='-L$libdir'
40643 hardcode_libdir_separator=
40647 shared_flag='-shared'
40648 if test "$aix_use_runtimelinking" = yes; then
40649 shared_flag="$shared_flag "'${wl}-G'
40651 link_all_deplibs=no
40654 if test "$host_cpu" = ia64; then
40655 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
40656 # chokes on -Wl,-G. The following line is correct:
40659 if test "$aix_use_runtimelinking" = yes; then
40660 shared_flag='${wl}-G'
40662 shared_flag='${wl}-bM:SRE'
40667 export_dynamic_flag_spec='${wl}-bexpall'
40668 # It seems that -bexpall does not export symbols beginning with
40669 # underscore (_), so it is better to generate a list of symbols to export.
40670 always_export_symbols=yes
40671 if test "$aix_use_runtimelinking" = yes; then
40672 # Warning - without using the other runtime loading flags (-brtl),
40673 # -berok will link without error, but may produce a broken library.
40674 allow_undefined_flag='-berok'
40675 # Determine the default libpath from the value encoded in an
40676 # empty executable.
40677 if test "${lt_cv_aix_libpath+set}" = set; then
40678 aix_libpath=$lt_cv_aix_libpath
40680 if ${lt_cv_aix_libpath_+:} false; then :
40681 $as_echo_n "(cached) " >&6
40683 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40684 /* end confdefs.h. */
40694 if ac_fn_c_try_link "$LINENO"; then :
40696 lt_aix_libpath_sed='
40697 /Import File Strings/,/^$/ {
40699 s/^0 *\([^ ]*\) *$/\1/
40703 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
40704 # Check for a 64-bit object if we didn't find anything.
40705 if test -z "$lt_cv_aix_libpath_"; then
40706 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
40709 rm -f core conftest.err conftest.$ac_objext \
40710 conftest$ac_exeext conftest.$ac_ext
40711 if test -z "$lt_cv_aix_libpath_"; then
40712 lt_cv_aix_libpath_="/usr/lib:/lib"
40717 aix_libpath=$lt_cv_aix_libpath_
40720 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
40721 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
40723 if test "$host_cpu" = ia64; then
40724 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
40725 allow_undefined_flag="-z nodefs"
40726 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"
40728 # Determine the default libpath from the value encoded in an
40729 # empty executable.
40730 if test "${lt_cv_aix_libpath+set}" = set; then
40731 aix_libpath=$lt_cv_aix_libpath
40733 if ${lt_cv_aix_libpath_+:} false; then :
40734 $as_echo_n "(cached) " >&6
40736 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40737 /* end confdefs.h. */
40747 if ac_fn_c_try_link "$LINENO"; then :
40749 lt_aix_libpath_sed='
40750 /Import File Strings/,/^$/ {
40752 s/^0 *\([^ ]*\) *$/\1/
40756 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
40757 # Check for a 64-bit object if we didn't find anything.
40758 if test -z "$lt_cv_aix_libpath_"; then
40759 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
40762 rm -f core conftest.err conftest.$ac_objext \
40763 conftest$ac_exeext conftest.$ac_ext
40764 if test -z "$lt_cv_aix_libpath_"; then
40765 lt_cv_aix_libpath_="/usr/lib:/lib"
40770 aix_libpath=$lt_cv_aix_libpath_
40773 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
40774 # Warning - without using the other run time loading flags,
40775 # -berok will link without error, but may produce a broken library.
40776 no_undefined_flag=' ${wl}-bernotok'
40777 allow_undefined_flag=' ${wl}-berok'
40778 if test "$with_gnu_ld" = yes; then
40779 # We only use this code for GNU lds that support --whole-archive.
40780 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
40782 # Exported symbols can be pulled into shared objects from archives
40783 whole_archive_flag_spec='$convenience'
40785 archive_cmds_need_lc=yes
40786 # This is similar to how AIX traditionally builds its shared libraries.
40787 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
40795 # see comment about AmigaOS4 .so support
40796 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
40797 archive_expsym_cmds=''
40800 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)'
40801 hardcode_libdir_flag_spec='-L$libdir'
40802 hardcode_minus_L=yes
40808 export_dynamic_flag_spec=-rdynamic
40811 cygwin* | mingw* | pw32* | cegcc*)
40812 # When not using gcc, we currently assume that we are using
40813 # Microsoft Visual C++.
40814 # hardcode_libdir_flag_spec is actually meaningless, as there is
40815 # no search path for DLLs.
40816 case $cc_basename in
40819 hardcode_libdir_flag_spec=' '
40820 allow_undefined_flag=unsupported
40821 always_export_symbols=yes
40823 # Tell ltmain to make .lib files, not .a files.
40825 # Tell ltmain to make .dll files, not .so files.
40827 # FIXME: Setting linknames here is a bad hack.
40828 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
40829 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
40830 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
40832 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
40834 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
40836 # The linker will not automatically build a static lib if we build a DLL.
40837 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
40838 enable_shared_with_static_runtimes=yes
40839 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
40840 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
40842 old_postinstall_cmds='chmod 644 $oldlib'
40843 postlink_cmds='lt_outputfile="@OUTPUT@"~
40844 lt_tool_outputfile="@TOOL_OUTPUT@"~
40845 case $lt_outputfile in
40848 lt_outputfile="$lt_outputfile.exe"
40849 lt_tool_outputfile="$lt_tool_outputfile.exe"
40852 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
40853 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
40854 $RM "$lt_outputfile.manifest";
40858 # Assume MSVC wrapper
40859 hardcode_libdir_flag_spec=' '
40860 allow_undefined_flag=unsupported
40861 # Tell ltmain to make .lib files, not .a files.
40863 # Tell ltmain to make .dll files, not .so files.
40865 # FIXME: Setting linknames here is a bad hack.
40866 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
40867 # The linker will automatically build a .lib file if we build a DLL.
40868 old_archive_from_new_cmds='true'
40869 # FIXME: Should let the user specify the lib program.
40870 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
40871 enable_shared_with_static_runtimes=yes
40876 darwin* | rhapsody*)
40879 archive_cmds_need_lc=no
40881 hardcode_automatic=yes
40882 hardcode_shlibpath_var=unsupported
40883 if test "$lt_cv_ld_force_load" = "yes"; then
40884 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\"`'
40887 whole_archive_flag_spec=''
40889 link_all_deplibs=yes
40890 allow_undefined_flag="$_lt_dar_allow_undefined"
40891 case $cc_basename in
40892 ifort*) _lt_dar_can_shared=yes ;;
40893 *) _lt_dar_can_shared=$GCC ;;
40895 if test "$_lt_dar_can_shared" = "yes"; then
40896 output_verbose_link_cmd=func_echo_all
40897 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
40898 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
40899 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}"
40900 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}"
40909 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
40910 hardcode_libdir_flag_spec='-L$libdir'
40911 hardcode_shlibpath_var=no
40914 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
40915 # support. Future versions do this automatically, but an explicit c++rt0.o
40916 # does not break anything, and helps significantly (at the cost of a little
40919 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
40920 hardcode_libdir_flag_spec='-R$libdir'
40921 hardcode_direct=yes
40922 hardcode_shlibpath_var=no
40925 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
40927 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
40928 hardcode_direct=yes
40929 hardcode_minus_L=yes
40930 hardcode_shlibpath_var=no
40933 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
40934 freebsd* | dragonfly*)
40935 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
40936 hardcode_libdir_flag_spec='-R$libdir'
40937 hardcode_direct=yes
40938 hardcode_shlibpath_var=no
40942 if test "$GCC" = yes; then
40943 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
40945 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
40947 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
40948 hardcode_libdir_separator=:
40949 hardcode_direct=yes
40951 # hardcode_minus_L: Not really in the search PATH,
40952 # but as the default location of the library.
40953 hardcode_minus_L=yes
40954 export_dynamic_flag_spec='${wl}-E'
40958 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
40959 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
40961 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
40963 if test "$with_gnu_ld" = no; then
40964 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
40965 hardcode_libdir_separator=:
40966 hardcode_direct=yes
40967 hardcode_direct_absolute=yes
40968 export_dynamic_flag_spec='${wl}-E'
40969 # hardcode_minus_L: Not really in the search PATH,
40970 # but as the default location of the library.
40971 hardcode_minus_L=yes
40976 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
40979 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
40982 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
40985 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
40991 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
40994 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
40998 # Older versions of the 11.00 compiler do not understand -b yet
40999 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
41000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
41001 $as_echo_n "checking if $CC understands -b... " >&6; }
41002 if ${lt_cv_prog_compiler__b+:} false; then :
41003 $as_echo_n "(cached) " >&6
41005 lt_cv_prog_compiler__b=no
41006 save_LDFLAGS="$LDFLAGS"
41007 LDFLAGS="$LDFLAGS -b"
41008 echo "$lt_simple_link_test_code" > conftest.$ac_ext
41009 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
41010 # The linker can only warn and ignore the option if not recognized
41011 # So say no if there are warnings
41012 if test -s conftest.err; then
41013 # Append any errors to the config.log.
41014 cat conftest.err 1>&5
41015 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
41016 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
41017 if diff conftest.exp conftest.er2 >/dev/null; then
41018 lt_cv_prog_compiler__b=yes
41021 lt_cv_prog_compiler__b=yes
41025 LDFLAGS="$save_LDFLAGS"
41028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
41029 $as_echo "$lt_cv_prog_compiler__b" >&6; }
41031 if test x"$lt_cv_prog_compiler__b" = xyes; then
41032 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
41034 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
41040 if test "$with_gnu_ld" = no; then
41041 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
41042 hardcode_libdir_separator=:
41047 hardcode_shlibpath_var=no
41050 hardcode_direct=yes
41051 hardcode_direct_absolute=yes
41052 export_dynamic_flag_spec='${wl}-E'
41054 # hardcode_minus_L: Not really in the search PATH,
41055 # but as the default location of the library.
41056 hardcode_minus_L=yes
41062 irix5* | irix6* | nonstopux*)
41063 if test "$GCC" = yes; then
41064 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'
41065 # Try to use the -exported_symbol ld option, if it does not
41066 # work, assume that -exports_file does not work either and
41067 # implicitly export all symbols.
41068 # This should be the same for all languages, so no per-tag cache variable.
41069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
41070 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
41071 if ${lt_cv_irix_exported_symbol+:} false; then :
41072 $as_echo_n "(cached) " >&6
41074 save_LDFLAGS="$LDFLAGS"
41075 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
41076 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41077 /* end confdefs.h. */
41078 int foo (void) { return 0; }
41080 if ac_fn_c_try_link "$LINENO"; then :
41081 lt_cv_irix_exported_symbol=yes
41083 lt_cv_irix_exported_symbol=no
41085 rm -f core conftest.err conftest.$ac_objext \
41086 conftest$ac_exeext conftest.$ac_ext
41087 LDFLAGS="$save_LDFLAGS"
41089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
41090 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
41091 if test "$lt_cv_irix_exported_symbol" = yes; then
41092 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'
41095 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'
41096 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'
41098 archive_cmds_need_lc='no'
41099 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
41100 hardcode_libdir_separator=:
41102 link_all_deplibs=yes
41105 netbsd* | netbsdelf*-gnu)
41106 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
41107 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
41109 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
41111 hardcode_libdir_flag_spec='-R$libdir'
41112 hardcode_direct=yes
41113 hardcode_shlibpath_var=no
41117 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
41118 hardcode_direct=yes
41119 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
41120 hardcode_libdir_separator=:
41121 hardcode_shlibpath_var=no
41128 if test -f /usr/libexec/ld.so; then
41129 hardcode_direct=yes
41130 hardcode_shlibpath_var=no
41131 hardcode_direct_absolute=yes
41132 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
41133 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
41134 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
41135 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
41136 export_dynamic_flag_spec='${wl}-E'
41139 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
41140 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
41141 hardcode_libdir_flag_spec='-R$libdir'
41144 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
41145 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
41155 hardcode_libdir_flag_spec='-L$libdir'
41156 hardcode_minus_L=yes
41157 allow_undefined_flag=unsupported
41158 archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
41159 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
41163 if test "$GCC" = yes; then
41164 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
41165 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'
41167 allow_undefined_flag=' -expect_unresolved \*'
41168 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'
41170 archive_cmds_need_lc='no'
41171 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
41172 hardcode_libdir_separator=:
41175 osf4* | osf5*) # as osf3* with the addition of -msym flag
41176 if test "$GCC" = yes; then
41177 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
41178 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'
41179 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
41181 allow_undefined_flag=' -expect_unresolved \*'
41182 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'
41183 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~
41184 $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'
41186 # Both c and cxx compiler support -rpath directly
41187 hardcode_libdir_flag_spec='-rpath $libdir'
41189 archive_cmds_need_lc='no'
41190 hardcode_libdir_separator=:
41194 no_undefined_flag=' -z defs'
41195 if test "$GCC" = yes; then
41197 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
41198 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
41199 $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'
41201 case `$CC -V 2>&1` in
41204 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
41205 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
41206 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
41210 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
41211 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
41212 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
41216 hardcode_libdir_flag_spec='-R$libdir'
41217 hardcode_shlibpath_var=no
41219 solaris2.[0-5] | solaris2.[0-5].*) ;;
41221 # The compiler driver will combine and reorder linker options,
41222 # but understands `-z linker_flag'. GCC discards it without `$wl',
41223 # but is careful enough not to reorder.
41224 # Supported since Solaris 2.6 (maybe 2.5.1?)
41225 if test "$GCC" = yes; then
41226 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
41228 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
41232 link_all_deplibs=yes
41236 if test "x$host_vendor" = xsequent; then
41237 # Use $CC to link under sequent, because it throws in some extra .o
41238 # files that make .init and .fini sections work.
41239 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
41241 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
41243 hardcode_libdir_flag_spec='-L$libdir'
41244 hardcode_direct=yes
41245 hardcode_minus_L=yes
41246 hardcode_shlibpath_var=no
41250 case $host_vendor in
41252 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
41253 hardcode_direct=yes # is this really true???
41256 ## LD is ld it makes a PLAMLIB
41257 ## CC just makes a GrossModule.
41258 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
41259 reload_cmds='$CC -r -o $output$reload_objs'
41263 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
41264 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
41267 runpath_var='LD_RUN_PATH'
41268 hardcode_shlibpath_var=no
41272 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
41273 hardcode_shlibpath_var=no
41274 export_dynamic_flag_spec='-Bexport'
41278 if test -d /usr/nec; then
41279 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
41280 hardcode_shlibpath_var=no
41281 runpath_var=LD_RUN_PATH
41282 hardcode_runpath_var=yes
41287 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
41288 no_undefined_flag='${wl}-z,text'
41289 archive_cmds_need_lc=no
41290 hardcode_shlibpath_var=no
41291 runpath_var='LD_RUN_PATH'
41293 if test "$GCC" = yes; then
41294 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
41295 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
41297 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
41298 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
41302 sysv5* | sco3.2v5* | sco5v6*)
41303 # Note: We can NOT use -z defs as we might desire, because we do not
41304 # link with -lc, and that would cause any symbols used from libc to
41305 # always be unresolved, which means just about no library would
41306 # ever link correctly. If we're not using GNU ld we use -z text
41307 # though, which does catch some bad symbols but isn't as heavy-handed
41309 no_undefined_flag='${wl}-z,text'
41310 allow_undefined_flag='${wl}-z,nodefs'
41311 archive_cmds_need_lc=no
41312 hardcode_shlibpath_var=no
41313 hardcode_libdir_flag_spec='${wl}-R,$libdir'
41314 hardcode_libdir_separator=':'
41315 link_all_deplibs=yes
41316 export_dynamic_flag_spec='${wl}-Bexport'
41317 runpath_var='LD_RUN_PATH'
41319 if test "$GCC" = yes; then
41320 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
41321 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
41323 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
41324 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
41329 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
41330 hardcode_libdir_flag_spec='-L$libdir'
41331 hardcode_shlibpath_var=no
41339 if test x$host_vendor = xsni; then
41341 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
41342 export_dynamic_flag_spec='${wl}-Blargedynsym'
41348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
41349 $as_echo "$ld_shlibs" >&6; }
41350 test "$ld_shlibs" = no && can_build_shared=no
41352 with_gnu_ld=$with_gnu_ld
41369 # Do we need to explicitly link libc?
41371 case "x$archive_cmds_need_lc" in
41373 # Assume -lc should be added
41374 archive_cmds_need_lc=yes
41376 if test "$enable_shared" = yes && test "$GCC" = yes; then
41377 case $archive_cmds in
41379 # FIXME: we may have to deal with multi-command sequences.
41382 # Test whether the compiler implicitly links with -lc since on some
41383 # systems, -lgcc has to come before -lc. If gcc already passes -lc
41384 # to ld, don't add -lc before -lgcc.
41385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
41386 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
41387 if ${lt_cv_archive_cmds_need_lc+:} false; then :
41388 $as_echo_n "(cached) " >&6
41391 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
41393 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
41394 (eval $ac_compile) 2>&5
41396 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
41397 test $ac_status = 0; } 2>conftest.err; then
41400 libobjs=conftest.$ac_objext
41402 wl=$lt_prog_compiler_wl
41403 pic_flag=$lt_prog_compiler_pic
41409 lt_save_allow_undefined_flag=$allow_undefined_flag
41410 allow_undefined_flag=
41411 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
41412 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
41414 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
41415 test $ac_status = 0; }
41417 lt_cv_archive_cmds_need_lc=no
41419 lt_cv_archive_cmds_need_lc=yes
41421 allow_undefined_flag=$lt_save_allow_undefined_flag
41423 cat conftest.err 1>&5
41428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
41429 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
41430 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
41588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
41589 $as_echo_n "checking dynamic linker characteristics... " >&6; }
41591 if test "$GCC" = yes; then
41593 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
41594 *) lt_awk_arg="/^libraries:/" ;;
41597 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
41598 *) lt_sed_strip_eq="s,=/,/,g" ;;
41600 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
41601 case $lt_search_path_spec in
41603 # if the path contains ";" then we assume it to be the separator
41604 # otherwise default to the standard path separator (i.e. ":") - it is
41605 # assumed that no part of a normal pathname contains ";" but that should
41606 # okay in the real world where ";" in dirpaths is itself problematic.
41607 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
41610 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
41613 # Ok, now we have the path, separated by spaces, we can step through it
41614 # and add multilib dir if necessary.
41615 lt_tmp_lt_search_path_spec=
41616 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
41617 for lt_sys_path in $lt_search_path_spec; do
41618 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
41619 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
41621 test -d "$lt_sys_path" && \
41622 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
41625 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
41626 BEGIN {RS=" "; FS="/|\n";} {
41629 for (lt_i = NF; lt_i > 0; lt_i--) {
41630 if ($lt_i != "" && $lt_i != ".") {
41631 if ($lt_i == "..") {
41634 if (lt_count == 0) {
41635 lt_foo="/" $lt_i lt_foo;
41642 if (lt_foo != "") { lt_freq[lt_foo]++; }
41643 if (lt_freq[lt_foo] == 1) { print lt_foo; }
41645 # AWK program above erroneously prepends '/' to C:/dos/paths
41648 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
41649 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
41651 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
41653 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
41655 library_names_spec=
41656 libname_spec='lib$name'
41660 postuninstall_cmds=
41664 shlibpath_overrides_runpath=unknown
41666 dynamic_linker="$host_os ld.so"
41667 sys_lib_dlsearch_path_spec="/lib /usr/lib"
41668 need_lib_prefix=unknown
41669 hardcode_into_libs=no
41671 # when you set need_version to no, make sure it does not cause -set_version
41672 # flags to be left without arguments
41673 need_version=unknown
41677 version_type=linux # correct to gnu/linux during the next big refactor
41678 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
41679 shlibpath_var=LIBPATH
41681 # AIX 3 has no versioning support, so we append a major version to the name.
41682 soname_spec='${libname}${release}${shared_ext}$major'
41686 version_type=linux # correct to gnu/linux during the next big refactor
41689 hardcode_into_libs=yes
41690 if test "$host_cpu" = ia64; then
41691 # AIX 5 supports IA64
41692 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
41693 shlibpath_var=LD_LIBRARY_PATH
41695 # With GCC up to 2.95.x, collect2 would create an import file
41696 # for dependence libraries. The import file would start with
41697 # the line `#! .'. This would cause the generated library to
41698 # depend on `.', always an invalid library. This was fixed in
41699 # development snapshots of GCC prior to 3.0.
41701 aix4 | aix4.[01] | aix4.[01].*)
41702 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
41704 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
41707 can_build_shared=no
41711 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
41712 # soname into executable. Probably we can add versioning support to
41713 # collect2, so additional links can be useful in future.
41714 if test "$aix_use_runtimelinking" = yes; then
41715 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
41716 # instead of lib<name>.a to let people know that these are not
41717 # typical AIX shared libraries.
41718 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
41720 # We preserve .a as extension for shared libraries through AIX4.2
41721 # and later when we are not doing run time linking.
41722 library_names_spec='${libname}${release}.a $libname.a'
41723 soname_spec='${libname}${release}${shared_ext}$major'
41725 shlibpath_var=LIBPATH
41732 # Since July 2007 AmigaOS4 officially supports .so libraries.
41733 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
41734 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
41737 library_names_spec='$libname.ixlibrary $libname.a'
41738 # Create ${libname}_ixlibrary.a entries in /sys/libs.
41739 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $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'
41745 library_names_spec='${libname}${shared_ext}'
41746 dynamic_linker="$host_os ld.so"
41747 shlibpath_var=LIBRARY_PATH
41751 version_type=linux # correct to gnu/linux during the next big refactor
41753 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
41754 soname_spec='${libname}${release}${shared_ext}$major'
41755 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
41756 shlibpath_var=LD_LIBRARY_PATH
41757 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
41758 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
41759 # the default ld.so.conf also contains /usr/contrib/lib and
41760 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
41761 # libtool to hard-code these into programs
41764 cygwin* | mingw* | pw32* | cegcc*)
41765 version_type=windows
41770 case $GCC,$cc_basename in
41773 library_names_spec='$libname.dll.a'
41774 # DLL is installed to $(libdir)/../bin by postinstall_cmds
41775 postinstall_cmds='base_file=`basename \${file}`~
41776 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
41777 dldir=$destdir/`dirname \$dlpath`~
41778 test -d \$dldir || mkdir -p \$dldir~
41779 $install_prog $dir/$dlname \$dldir/$dlname~
41780 chmod a+x \$dldir/$dlname~
41781 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
41782 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
41784 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
41785 dlpath=$dir/\$dldll~
41787 shlibpath_overrides_runpath=yes
41791 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
41792 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
41794 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
41797 # MinGW DLLs use traditional 'lib' prefix
41798 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
41801 # pw32 DLLs use 'pw' prefix rather than 'lib'
41802 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
41805 dynamic_linker='Win32 ld.exe'
41810 libname_spec='$name'
41811 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
41812 library_names_spec='${libname}.dll.lib'
41816 sys_lib_search_path_spec=
41819 for lt_path in $LIB
41822 # Let DOS variable expansion print the short 8.3 style file name.
41823 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
41824 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
41827 # Convert to MSYS style.
41828 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
41831 # Convert to unix form, then to dos form, then back to unix form
41832 # but this time dos style (no spaces!) so that the unix form looks
41833 # like /cygdrive/c/PROGRA~1:/cygdr...
41834 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
41835 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
41836 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
41839 sys_lib_search_path_spec="$LIB"
41840 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
41841 # It is most probably a Windows format PATH.
41842 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
41844 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
41846 # FIXME: find the short name or the path components, as spaces are
41847 # common. (e.g. "Program Files" -> "PROGRA~1")
41851 # DLL is installed to $(libdir)/../bin by postinstall_cmds
41852 postinstall_cmds='base_file=`basename \${file}`~
41853 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
41854 dldir=$destdir/`dirname \$dlpath`~
41855 test -d \$dldir || mkdir -p \$dldir~
41856 $install_prog $dir/$dlname \$dldir/$dlname'
41857 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
41858 dlpath=$dir/\$dldll~
41860 shlibpath_overrides_runpath=yes
41861 dynamic_linker='Win32 link.exe'
41865 # Assume MSVC wrapper
41866 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
41867 dynamic_linker='Win32 ld.exe'
41870 # FIXME: first we should search . and the directory the executable is in
41874 darwin* | rhapsody*)
41875 dynamic_linker="$host_os dyld"
41876 version_type=darwin
41879 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
41880 soname_spec='${libname}${release}${major}$shared_ext'
41881 shlibpath_overrides_runpath=yes
41882 shlibpath_var=DYLD_LIBRARY_PATH
41883 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
41885 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
41886 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
41890 version_type=linux # correct to gnu/linux during the next big refactor
41893 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
41894 soname_spec='${libname}${release}${shared_ext}$major'
41895 shlibpath_var=LD_LIBRARY_PATH
41898 freebsd* | dragonfly*)
41899 # DragonFly does not have aout. When/if they implement a new
41900 # versioning mechanism, adjust this.
41901 if test -x /usr/bin/objformat; then
41902 objformat=`/usr/bin/objformat`
41905 freebsd[23].*) objformat=aout ;;
41906 *) objformat=elf ;;
41909 version_type=freebsd-$objformat
41910 case $version_type in
41912 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
41917 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
41921 shlibpath_var=LD_LIBRARY_PATH
41924 shlibpath_overrides_runpath=yes
41926 freebsd3.[01]* | freebsdelf3.[01]*)
41927 shlibpath_overrides_runpath=yes
41928 hardcode_into_libs=yes
41930 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
41931 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
41932 shlibpath_overrides_runpath=no
41933 hardcode_into_libs=yes
41935 *) # from 4.6 on, and DragonFly
41936 shlibpath_overrides_runpath=yes
41937 hardcode_into_libs=yes
41943 version_type=linux # correct to gnu/linux during the next big refactor
41946 dynamic_linker="$host_os runtime_loader"
41947 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
41948 soname_spec='${libname}${release}${shared_ext}$major'
41949 shlibpath_var=LIBRARY_PATH
41950 shlibpath_overrides_runpath=yes
41951 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
41952 hardcode_into_libs=yes
41955 hpux9* | hpux10* | hpux11*)
41956 # Give a soname corresponding to the major version so that dld.sl refuses to
41957 # link against other versions.
41964 hardcode_into_libs=yes
41965 dynamic_linker="$host_os dld.so"
41966 shlibpath_var=LD_LIBRARY_PATH
41967 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
41968 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
41969 soname_spec='${libname}${release}${shared_ext}$major'
41970 if test "X$HPUX_IA64_MODE" = X32; then
41971 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
41973 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
41975 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
41979 hardcode_into_libs=yes
41980 dynamic_linker="$host_os dld.sl"
41981 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
41982 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
41983 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
41984 soname_spec='${libname}${release}${shared_ext}$major'
41985 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
41986 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
41990 dynamic_linker="$host_os dld.sl"
41991 shlibpath_var=SHLIB_PATH
41992 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
41993 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
41994 soname_spec='${libname}${release}${shared_ext}$major'
41997 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
41998 postinstall_cmds='chmod 555 $lib'
41999 # or fails outright, so override atomically:
42000 install_override_mode=555
42004 version_type=linux # correct to gnu/linux during the next big refactor
42007 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
42008 soname_spec='${libname}${release}${shared_ext}$major'
42009 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
42010 shlibpath_var=LD_LIBRARY_PATH
42011 shlibpath_overrides_runpath=no
42012 hardcode_into_libs=yes
42015 irix5* | irix6* | nonstopux*)
42017 nonstopux*) version_type=nonstopux ;;
42019 if test "$lt_cv_prog_gnu_ld" = yes; then
42020 version_type=linux # correct to gnu/linux during the next big refactor
42027 soname_spec='${libname}${release}${shared_ext}$major'
42028 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
42030 irix5* | nonstopux*)
42031 libsuff= shlibsuff=
42034 case $LD in # libtool.m4 will add one of these switches to LD
42035 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
42036 libsuff= shlibsuff= libmagic=32-bit;;
42037 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
42038 libsuff=32 shlibsuff=N32 libmagic=N32;;
42039 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
42040 libsuff=64 shlibsuff=64 libmagic=64-bit;;
42041 *) libsuff= shlibsuff= libmagic=never-match;;
42045 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
42046 shlibpath_overrides_runpath=no
42047 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
42048 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
42049 hardcode_into_libs=yes
42052 # No shared lib support for Linux oldld, aout, or coff.
42053 linux*oldld* | linux*aout* | linux*coff*)
42057 # This must be glibc/ELF.
42058 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
42059 version_type=linux # correct to gnu/linux during the next big refactor
42062 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
42063 soname_spec='${libname}${release}${shared_ext}$major'
42064 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
42065 shlibpath_var=LD_LIBRARY_PATH
42066 shlibpath_overrides_runpath=no
42068 # Some binutils ld are patched to set DT_RUNPATH
42069 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
42070 $as_echo_n "(cached) " >&6
42072 lt_cv_shlibpath_overrides_runpath=no
42073 save_LDFLAGS=$LDFLAGS
42074 save_libdir=$libdir
42075 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
42076 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
42077 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42078 /* end confdefs.h. */
42088 if ac_fn_c_try_link "$LINENO"; then :
42089 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
42090 lt_cv_shlibpath_overrides_runpath=yes
42093 rm -f core conftest.err conftest.$ac_objext \
42094 conftest$ac_exeext conftest.$ac_ext
42095 LDFLAGS=$save_LDFLAGS
42096 libdir=$save_libdir
42100 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
42102 # This implies no fast_install, which is unacceptable.
42103 # Some rework will be needed to allow for fast_install
42104 # before this can be enabled.
42105 hardcode_into_libs=yes
42107 # Append ld.so.conf contents to the search path
42108 if test -f /etc/ld.so.conf; then
42109 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' ' '`
42110 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
42113 # We used to test for /lib/ld.so.1 and disable shared libraries on
42114 # powerpc, because MkLinux only supported shared libraries with the
42115 # GNU dynamic linker. Since this was broken with cross compilers,
42116 # most powerpc-linux boxes support dynamic linking these days and
42117 # people can always --disable-shared, the test was removed, and we
42118 # assume the GNU/Linux dynamic linker is in use.
42119 dynamic_linker='GNU/Linux ld.so'
42126 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
42127 soname_spec='${libname}${release}${shared_ext}$major'
42128 shlibpath_var=LD_LIBRARY_PATH
42129 shlibpath_overrides_runpath=no
42130 hardcode_into_libs=yes
42131 dynamic_linker='NetBSD ld.elf_so'
42138 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
42139 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
42140 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
42141 dynamic_linker='NetBSD (a.out) ld.so'
42143 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
42144 soname_spec='${libname}${release}${shared_ext}$major'
42145 dynamic_linker='NetBSD ld.elf_so'
42147 shlibpath_var=LD_LIBRARY_PATH
42148 shlibpath_overrides_runpath=yes
42149 hardcode_into_libs=yes
42153 version_type=linux # correct to gnu/linux during the next big refactor
42154 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
42155 shlibpath_var=LD_LIBRARY_PATH
42156 shlibpath_overrides_runpath=yes
42163 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
42164 soname_spec='${libname}${release}${shared_ext}$major'
42165 shlibpath_var=LD_LIBRARY_PATH
42166 shlibpath_overrides_runpath=no
42167 hardcode_into_libs=yes
42168 dynamic_linker='ldqnx.so'
42173 sys_lib_dlsearch_path_spec="/usr/lib"
42175 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
42177 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
42178 *) need_version=no ;;
42180 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
42181 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
42182 shlibpath_var=LD_LIBRARY_PATH
42183 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
42185 openbsd2.[89] | openbsd2.[89].*)
42186 shlibpath_overrides_runpath=no
42189 shlibpath_overrides_runpath=yes
42193 shlibpath_overrides_runpath=yes
42198 libname_spec='$name'
42201 library_names_spec='$libname${shared_ext} $libname.a'
42202 dynamic_linker='OS/2 ld.exe'
42203 shlibpath_var=LIBPATH
42206 osf3* | osf4* | osf5*)
42210 soname_spec='${libname}${release}${shared_ext}$major'
42211 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
42212 shlibpath_var=LD_LIBRARY_PATH
42213 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
42214 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
42222 version_type=linux # correct to gnu/linux during the next big refactor
42225 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
42226 soname_spec='${libname}${release}${shared_ext}$major'
42227 shlibpath_var=LD_LIBRARY_PATH
42228 shlibpath_overrides_runpath=yes
42229 hardcode_into_libs=yes
42230 # ldd complains unless libraries are executable
42231 postinstall_cmds='chmod +x $lib'
42236 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
42237 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
42238 shlibpath_var=LD_LIBRARY_PATH
42239 shlibpath_overrides_runpath=yes
42240 if test "$with_gnu_ld" = yes; then
42247 version_type=linux # correct to gnu/linux during the next big refactor
42248 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
42249 soname_spec='${libname}${release}${shared_ext}$major'
42250 shlibpath_var=LD_LIBRARY_PATH
42251 case $host_vendor in
42253 shlibpath_overrides_runpath=no
42255 runpath_var=LD_RUN_PATH
42263 shlibpath_overrides_runpath=no
42264 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
42270 if test -d /usr/nec ;then
42271 version_type=linux # correct to gnu/linux during the next big refactor
42272 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
42273 soname_spec='$libname${shared_ext}.$major'
42274 shlibpath_var=LD_LIBRARY_PATH
42278 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
42279 version_type=freebsd-elf
42282 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
42283 soname_spec='${libname}${release}${shared_ext}$major'
42284 shlibpath_var=LD_LIBRARY_PATH
42285 shlibpath_overrides_runpath=yes
42286 hardcode_into_libs=yes
42287 if test "$with_gnu_ld" = yes; then
42288 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
42290 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
42293 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
42297 sys_lib_dlsearch_path_spec='/usr/lib'
42301 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
42302 version_type=linux # correct to gnu/linux during the next big refactor
42305 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
42306 shlibpath_var=LD_LIBRARY_PATH
42307 shlibpath_overrides_runpath=no
42308 hardcode_into_libs=yes
42312 version_type=linux # correct to gnu/linux during the next big refactor
42313 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
42314 soname_spec='${libname}${release}${shared_ext}$major'
42315 shlibpath_var=LD_LIBRARY_PATH
42322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
42323 $as_echo "$dynamic_linker" >&6; }
42324 test "$dynamic_linker" = no && can_build_shared=no
42326 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
42327 if test "$GCC" = yes; then
42328 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
42331 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
42332 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
42334 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
42335 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
42429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
42430 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
42432 if test -n "$hardcode_libdir_flag_spec" ||
42433 test -n "$runpath_var" ||
42434 test "X$hardcode_automatic" = "Xyes" ; then
42436 # We can hardcode non-existent directories.
42437 if test "$hardcode_direct" != no &&
42438 # If the only mechanism to avoid hardcoding is shlibpath_var, we
42439 # have to relink, otherwise we might link with an installed library
42440 # when we should be linking with a yet-to-be-installed one
42441 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
42442 test "$hardcode_minus_L" != no; then
42443 # Linking always hardcodes the temporary library directory.
42444 hardcode_action=relink
42446 # We can link without hardcoding, and we can hardcode nonexisting dirs.
42447 hardcode_action=immediate
42450 # We cannot hardcode anything, or else we can only hardcode existing
42452 hardcode_action=unsupported
42454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
42455 $as_echo "$hardcode_action" >&6; }
42457 if test "$hardcode_action" = relink ||
42458 test "$inherit_rpath" = yes; then
42459 # Fast installation is not supported
42460 enable_fast_install=no
42461 elif test "$shlibpath_overrides_runpath" = yes ||
42462 test "$enable_shared" = no; then
42463 # Fast installation is not necessary
42464 enable_fast_install=needless
42472 if test "x$enable_dlopen" != xyes; then
42473 enable_dlopen=unknown
42474 enable_dlopen_self=unknown
42475 enable_dlopen_self_static=unknown
42482 lt_cv_dlopen="load_add_on"
42484 lt_cv_dlopen_self=yes
42487 mingw* | pw32* | cegcc*)
42488 lt_cv_dlopen="LoadLibrary"
42493 lt_cv_dlopen="dlopen"
42498 # if libdl is installed we need to link against it
42499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
42500 $as_echo_n "checking for dlopen in -ldl... " >&6; }
42501 if ${ac_cv_lib_dl_dlopen+:} false; then :
42502 $as_echo_n "(cached) " >&6
42504 ac_check_lib_save_LIBS=$LIBS
42506 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42507 /* end confdefs.h. */
42509 /* Override any GCC internal prototype to avoid an error.
42510 Use char because int might match the return type of a GCC
42511 builtin and then its argument prototype would still apply. */
42524 if ac_fn_c_try_link "$LINENO"; then :
42525 ac_cv_lib_dl_dlopen=yes
42527 ac_cv_lib_dl_dlopen=no
42529 rm -f core conftest.err conftest.$ac_objext \
42530 conftest$ac_exeext conftest.$ac_ext
42531 LIBS=$ac_check_lib_save_LIBS
42533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
42534 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
42535 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
42536 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
42539 lt_cv_dlopen="dyld"
42541 lt_cv_dlopen_self=yes
42548 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
42549 if test "x$ac_cv_func_shl_load" = xyes; then :
42550 lt_cv_dlopen="shl_load"
42552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
42553 $as_echo_n "checking for shl_load in -ldld... " >&6; }
42554 if ${ac_cv_lib_dld_shl_load+:} false; then :
42555 $as_echo_n "(cached) " >&6
42557 ac_check_lib_save_LIBS=$LIBS
42559 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42560 /* end confdefs.h. */
42562 /* Override any GCC internal prototype to avoid an error.
42563 Use char because int might match the return type of a GCC
42564 builtin and then its argument prototype would still apply. */
42572 return shl_load ();
42577 if ac_fn_c_try_link "$LINENO"; then :
42578 ac_cv_lib_dld_shl_load=yes
42580 ac_cv_lib_dld_shl_load=no
42582 rm -f core conftest.err conftest.$ac_objext \
42583 conftest$ac_exeext conftest.$ac_ext
42584 LIBS=$ac_check_lib_save_LIBS
42586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
42587 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
42588 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
42589 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
42591 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
42592 if test "x$ac_cv_func_dlopen" = xyes; then :
42593 lt_cv_dlopen="dlopen"
42595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
42596 $as_echo_n "checking for dlopen in -ldl... " >&6; }
42597 if ${ac_cv_lib_dl_dlopen+:} false; then :
42598 $as_echo_n "(cached) " >&6
42600 ac_check_lib_save_LIBS=$LIBS
42602 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42603 /* end confdefs.h. */
42605 /* Override any GCC internal prototype to avoid an error.
42606 Use char because int might match the return type of a GCC
42607 builtin and then its argument prototype would still apply. */
42620 if ac_fn_c_try_link "$LINENO"; then :
42621 ac_cv_lib_dl_dlopen=yes
42623 ac_cv_lib_dl_dlopen=no
42625 rm -f core conftest.err conftest.$ac_objext \
42626 conftest$ac_exeext conftest.$ac_ext
42627 LIBS=$ac_check_lib_save_LIBS
42629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
42630 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
42631 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
42632 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
42634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
42635 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
42636 if ${ac_cv_lib_svld_dlopen+:} false; then :
42637 $as_echo_n "(cached) " >&6
42639 ac_check_lib_save_LIBS=$LIBS
42640 LIBS="-lsvld $LIBS"
42641 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42642 /* end confdefs.h. */
42644 /* Override any GCC internal prototype to avoid an error.
42645 Use char because int might match the return type of a GCC
42646 builtin and then its argument prototype would still apply. */
42659 if ac_fn_c_try_link "$LINENO"; then :
42660 ac_cv_lib_svld_dlopen=yes
42662 ac_cv_lib_svld_dlopen=no
42664 rm -f core conftest.err conftest.$ac_objext \
42665 conftest$ac_exeext conftest.$ac_ext
42666 LIBS=$ac_check_lib_save_LIBS
42668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
42669 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
42670 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
42671 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
42673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
42674 $as_echo_n "checking for dld_link in -ldld... " >&6; }
42675 if ${ac_cv_lib_dld_dld_link+:} false; then :
42676 $as_echo_n "(cached) " >&6
42678 ac_check_lib_save_LIBS=$LIBS
42680 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42681 /* end confdefs.h. */
42683 /* Override any GCC internal prototype to avoid an error.
42684 Use char because int might match the return type of a GCC
42685 builtin and then its argument prototype would still apply. */
42693 return dld_link ();
42698 if ac_fn_c_try_link "$LINENO"; then :
42699 ac_cv_lib_dld_dld_link=yes
42701 ac_cv_lib_dld_dld_link=no
42703 rm -f core conftest.err conftest.$ac_objext \
42704 conftest$ac_exeext conftest.$ac_ext
42705 LIBS=$ac_check_lib_save_LIBS
42707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
42708 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
42709 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
42710 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
42731 if test "x$lt_cv_dlopen" != xno; then
42737 case $lt_cv_dlopen in
42739 save_CPPFLAGS="$CPPFLAGS"
42740 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
42742 save_LDFLAGS="$LDFLAGS"
42743 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
42746 LIBS="$lt_cv_dlopen_libs $LIBS"
42748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
42749 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
42750 if ${lt_cv_dlopen_self+:} false; then :
42751 $as_echo_n "(cached) " >&6
42753 if test "$cross_compiling" = yes; then :
42754 lt_cv_dlopen_self=cross
42756 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
42757 lt_status=$lt_dlunknown
42758 cat > conftest.$ac_ext <<_LT_EOF
42759 #line $LINENO "configure"
42760 #include "confdefs.h"
42769 # define LT_DLGLOBAL RTLD_GLOBAL
42772 # define LT_DLGLOBAL DL_GLOBAL
42774 # define LT_DLGLOBAL 0
42778 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
42779 find out it does not work in some platform. */
42780 #ifndef LT_DLLAZY_OR_NOW
42782 # define LT_DLLAZY_OR_NOW RTLD_LAZY
42785 # define LT_DLLAZY_OR_NOW DL_LAZY
42788 # define LT_DLLAZY_OR_NOW RTLD_NOW
42791 # define LT_DLLAZY_OR_NOW DL_NOW
42793 # define LT_DLLAZY_OR_NOW 0
42800 /* When -fvisbility=hidden is used, assume the code has been annotated
42801 correspondingly for the symbols needed. */
42802 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
42803 int fnord () __attribute__((visibility("default")));
42806 int fnord () { return 42; }
42809 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
42810 int status = $lt_dlunknown;
42814 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
42817 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
42818 else puts (dlerror ());
42820 /* dlclose (self); */
42828 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
42829 (eval $ac_link) 2>&5
42831 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
42832 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
42833 (./conftest; exit; ) >&5 2>/dev/null
42835 case x$lt_status in
42836 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
42837 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
42838 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
42841 # compilation failed
42842 lt_cv_dlopen_self=no
42849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
42850 $as_echo "$lt_cv_dlopen_self" >&6; }
42852 if test "x$lt_cv_dlopen_self" = xyes; then
42853 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
42854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
42855 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
42856 if ${lt_cv_dlopen_self_static+:} false; then :
42857 $as_echo_n "(cached) " >&6
42859 if test "$cross_compiling" = yes; then :
42860 lt_cv_dlopen_self_static=cross
42862 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
42863 lt_status=$lt_dlunknown
42864 cat > conftest.$ac_ext <<_LT_EOF
42865 #line $LINENO "configure"
42866 #include "confdefs.h"
42875 # define LT_DLGLOBAL RTLD_GLOBAL
42878 # define LT_DLGLOBAL DL_GLOBAL
42880 # define LT_DLGLOBAL 0
42884 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
42885 find out it does not work in some platform. */
42886 #ifndef LT_DLLAZY_OR_NOW
42888 # define LT_DLLAZY_OR_NOW RTLD_LAZY
42891 # define LT_DLLAZY_OR_NOW DL_LAZY
42894 # define LT_DLLAZY_OR_NOW RTLD_NOW
42897 # define LT_DLLAZY_OR_NOW DL_NOW
42899 # define LT_DLLAZY_OR_NOW 0
42906 /* When -fvisbility=hidden is used, assume the code has been annotated
42907 correspondingly for the symbols needed. */
42908 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
42909 int fnord () __attribute__((visibility("default")));
42912 int fnord () { return 42; }
42915 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
42916 int status = $lt_dlunknown;
42920 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
42923 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
42924 else puts (dlerror ());
42926 /* dlclose (self); */
42934 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
42935 (eval $ac_link) 2>&5
42937 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
42938 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
42939 (./conftest; exit; ) >&5 2>/dev/null
42941 case x$lt_status in
42942 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
42943 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
42944 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
42947 # compilation failed
42948 lt_cv_dlopen_self_static=no
42955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
42956 $as_echo "$lt_cv_dlopen_self_static" >&6; }
42959 CPPFLAGS="$save_CPPFLAGS"
42960 LDFLAGS="$save_LDFLAGS"
42965 case $lt_cv_dlopen_self in
42966 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
42967 *) enable_dlopen_self=unknown ;;
42970 case $lt_cv_dlopen_self_static in
42971 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
42972 *) enable_dlopen_self_static=unknown ;;
42994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
42995 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
42996 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
42997 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
42998 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
42999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
43000 $as_echo "yes" >&6; }
43002 # FIXME - insert some real tests, host_os isn't really good enough
43005 if test -n "$STRIP" ; then
43006 striplib="$STRIP -x"
43007 old_striplib="$STRIP -S"
43008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
43009 $as_echo "yes" >&6; }
43011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
43012 $as_echo "no" >&6; }
43016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
43017 $as_echo "no" >&6; }
43033 # Report which library types will actually be built
43034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
43035 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
43036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
43037 $as_echo "$can_build_shared" >&6; }
43039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
43040 $as_echo_n "checking whether to build shared libraries... " >&6; }
43041 test "$can_build_shared" = "no" && enable_shared=no
43043 # On AIX, shared libraries and static libraries use the same namespace, and
43044 # are all built from PIC.
43047 test "$enable_shared" = yes && enable_static=no
43048 if test -n "$RANLIB"; then
43049 archive_cmds="$archive_cmds~\$RANLIB \$lib"
43050 postinstall_cmds='$RANLIB $lib'
43055 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
43056 test "$enable_shared" = yes && enable_static=no
43060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
43061 $as_echo "$enable_shared" >&6; }
43063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
43064 $as_echo_n "checking whether to build static libraries... " >&6; }
43065 # Make sure either enable_shared or enable_static is yes.
43066 test "$enable_shared" = yes || enable_static=yes
43067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
43068 $as_echo "$enable_static" >&6; }
43075 ac_cpp='$CPP $CPPFLAGS'
43076 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
43077 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
43078 ac_compiler_gnu=$ac_cv_c_compiler_gnu
43082 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
43083 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
43084 (test "X$CXX" != "Xg++"))) ; then
43086 ac_cpp='$CXXCPP $CPPFLAGS'
43087 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
43088 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
43089 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
43090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
43091 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
43092 if test -z "$CXXCPP"; then
43093 if ${ac_cv_prog_CXXCPP+:} false; then :
43094 $as_echo_n "(cached) " >&6
43096 # Double quotes because CXXCPP needs to be expanded
43097 for CXXCPP in "$CXX -E" "/lib/cpp"
43099 ac_preproc_ok=false
43100 for ac_cxx_preproc_warn_flag in '' yes
43102 # Use a header file that comes with gcc, so configuring glibc
43103 # with a fresh cross-compiler works.
43104 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
43105 # <limits.h> exists even on freestanding compilers.
43106 # On the NeXT, cc -E runs the code through the compiler's parser,
43107 # not just through cpp. "Syntax error" is here to catch this case.
43108 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
43109 /* end confdefs.h. */
43111 # include <limits.h>
43113 # include <assert.h>
43117 if ac_fn_cxx_try_cpp "$LINENO"; then :
43120 # Broken: fails on valid input.
43123 rm -f conftest.err conftest.i conftest.$ac_ext
43125 # OK, works on sane cases. Now check whether nonexistent headers
43126 # can be detected and how.
43127 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
43128 /* end confdefs.h. */
43129 #include <ac_nonexistent.h>
43131 if ac_fn_cxx_try_cpp "$LINENO"; then :
43132 # Broken: success on invalid input.
43135 # Passes both tests.
43139 rm -f conftest.err conftest.i conftest.$ac_ext
43142 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
43143 rm -f conftest.i conftest.err conftest.$ac_ext
43144 if $ac_preproc_ok; then :
43149 ac_cv_prog_CXXCPP=$CXXCPP
43152 CXXCPP=$ac_cv_prog_CXXCPP
43154 ac_cv_prog_CXXCPP=$CXXCPP
43156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
43157 $as_echo "$CXXCPP" >&6; }
43158 ac_preproc_ok=false
43159 for ac_cxx_preproc_warn_flag in '' yes
43161 # Use a header file that comes with gcc, so configuring glibc
43162 # with a fresh cross-compiler works.
43163 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
43164 # <limits.h> exists even on freestanding compilers.
43165 # On the NeXT, cc -E runs the code through the compiler's parser,
43166 # not just through cpp. "Syntax error" is here to catch this case.
43167 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
43168 /* end confdefs.h. */
43170 # include <limits.h>
43172 # include <assert.h>
43176 if ac_fn_cxx_try_cpp "$LINENO"; then :
43179 # Broken: fails on valid input.
43182 rm -f conftest.err conftest.i conftest.$ac_ext
43184 # OK, works on sane cases. Now check whether nonexistent headers
43185 # can be detected and how.
43186 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
43187 /* end confdefs.h. */
43188 #include <ac_nonexistent.h>
43190 if ac_fn_cxx_try_cpp "$LINENO"; then :
43191 # Broken: success on invalid input.
43194 # Passes both tests.
43198 rm -f conftest.err conftest.i conftest.$ac_ext
43201 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
43202 rm -f conftest.i conftest.err conftest.$ac_ext
43203 if $ac_preproc_ok; then :
43206 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
43207 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
43208 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
43209 See \`config.log' for more details" "$LINENO" 5; }
43213 ac_cpp='$CPP $CPPFLAGS'
43214 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
43215 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
43216 ac_compiler_gnu=$ac_cv_c_compiler_gnu
43219 _lt_caught_CXX_error=yes
43223 ac_cpp='$CXXCPP $CPPFLAGS'
43224 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
43225 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
43226 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
43228 archive_cmds_need_lc_CXX=no
43229 allow_undefined_flag_CXX=
43230 always_export_symbols_CXX=no
43231 archive_expsym_cmds_CXX=
43232 compiler_needs_object_CXX=no
43233 export_dynamic_flag_spec_CXX=
43234 hardcode_direct_CXX=no
43235 hardcode_direct_absolute_CXX=no
43236 hardcode_libdir_flag_spec_CXX=
43237 hardcode_libdir_separator_CXX=
43238 hardcode_minus_L_CXX=no
43239 hardcode_shlibpath_var_CXX=unsupported
43240 hardcode_automatic_CXX=no
43241 inherit_rpath_CXX=no
43243 module_expsym_cmds_CXX=
43244 link_all_deplibs_CXX=unknown
43245 old_archive_cmds_CXX=$old_archive_cmds
43246 reload_flag_CXX=$reload_flag
43247 reload_cmds_CXX=$reload_cmds
43248 no_undefined_flag_CXX=
43249 whole_archive_flag_spec_CXX=
43250 enable_shared_with_static_runtimes_CXX=no
43252 # Source file extension for C++ test sources.
43255 # Object file extension for compiled C++ test sources.
43259 # No sense in running all these tests if we already determined that
43260 # the CXX compiler isn't working. Some variables (like enable_shared)
43261 # are currently assumed to apply to all compilers on this platform,
43262 # and will be corrupted by setting them based on a non-working compiler.
43263 if test "$_lt_caught_CXX_error" != yes; then
43264 # Code to be used in simple compile tests
43265 lt_simple_compile_test_code="int some_variable = 0;"
43267 # Code to be used in simple link tests
43268 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
43270 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
43277 # If no C compiler was specified, use CC.
43280 # If no C compiler flags were specified, use CFLAGS.
43281 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
43283 # Allow CC to be a program name with arguments.
43287 # save warnings/boilerplate of simple test code
43288 ac_outfile=conftest.$ac_objext
43289 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
43290 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
43291 _lt_compiler_boilerplate=`cat conftest.err`
43294 ac_outfile=conftest.$ac_objext
43295 echo "$lt_simple_link_test_code" >conftest.$ac_ext
43296 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
43297 _lt_linker_boilerplate=`cat conftest.err`
43301 # Allow CC to be a program name with arguments.
43303 lt_save_CFLAGS=$CFLAGS
43307 lt_save_with_gnu_ld=$with_gnu_ld
43308 lt_save_path_LD=$lt_cv_path_LD
43309 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
43310 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
43312 $as_unset lt_cv_prog_gnu_ld
43314 if test -n "${lt_cv_path_LDCXX+set}"; then
43315 lt_cv_path_LD=$lt_cv_path_LDCXX
43317 $as_unset lt_cv_path_LD
43319 test -z "${LDCXX+set}" || LD=$LDCXX
43324 for cc_temp in $compiler""; do
43326 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
43327 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
43332 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
43335 if test -n "$compiler"; then
43336 # We don't want -fno-exception when compiling C++ code, so set the
43337 # no_builtin_flag separately
43338 if test "$GXX" = yes; then
43339 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
43341 lt_prog_compiler_no_builtin_flag_CXX=
43344 if test "$GXX" = yes; then
43345 # Set up default GNU C++ configuration
43349 # Check whether --with-gnu-ld was given.
43350 if test "${with_gnu_ld+set}" = set; then :
43351 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
43357 if test "$GCC" = yes; then
43358 # Check if gcc -print-prog-name=ld gives a path.
43359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
43360 $as_echo_n "checking for ld used by $CC... " >&6; }
43363 # gcc leaves a trailing carriage return which upsets mingw
43364 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
43366 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
43369 # Accept absolute paths.
43371 re_direlt='/[^/][^/]*/\.\./'
43372 # Canonicalize the pathname of ld
43373 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
43374 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
43375 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
43377 test -z "$LD" && LD="$ac_prog"
43380 # If it fails, then pretend we aren't using GCC.
43384 # If it is relative, then search for the first ld in PATH.
43385 with_gnu_ld=unknown
43388 elif test "$with_gnu_ld" = yes; then
43389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
43390 $as_echo_n "checking for GNU ld... " >&6; }
43392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
43393 $as_echo_n "checking for non-GNU ld... " >&6; }
43395 if ${lt_cv_path_LD+:} false; then :
43396 $as_echo_n "(cached) " >&6
43398 if test -z "$LD"; then
43399 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
43400 for ac_dir in $PATH; do
43402 test -z "$ac_dir" && ac_dir=.
43403 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
43404 lt_cv_path_LD="$ac_dir/$ac_prog"
43405 # Check to see if the program is GNU ld. I'd rather use --version,
43406 # but apparently some variants of GNU ld only accept -v.
43407 # Break only if it was the GNU/non-GNU ld that we prefer.
43408 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
43409 *GNU* | *'with BFD'*)
43410 test "$with_gnu_ld" != no && break
43413 test "$with_gnu_ld" != yes && break
43420 lt_cv_path_LD="$LD" # Let the user override the test with a path.
43424 LD="$lt_cv_path_LD"
43425 if test -n "$LD"; then
43426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
43427 $as_echo "$LD" >&6; }
43429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
43430 $as_echo "no" >&6; }
43432 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
43433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
43434 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
43435 if ${lt_cv_prog_gnu_ld+:} false; then :
43436 $as_echo_n "(cached) " >&6
43438 # I'd rather use --version here, but apparently some GNU lds only accept -v.
43439 case `$LD -v 2>&1 </dev/null` in
43440 *GNU* | *'with BFD'*)
43441 lt_cv_prog_gnu_ld=yes
43444 lt_cv_prog_gnu_ld=no
43448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
43449 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
43450 with_gnu_ld=$lt_cv_prog_gnu_ld
43458 # Check if GNU C++ uses GNU ld as the underlying linker, since the
43459 # archiving commands below assume that GNU ld is being used.
43460 if test "$with_gnu_ld" = yes; then
43461 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
43462 archive_expsym_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
43464 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
43465 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
43467 # If archive_cmds runs LD, not CC, wlarc should be empty
43468 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
43469 # investigate it a little bit more. (MM)
43472 # ancient GNU ld didn't support --whole-archive et. al.
43473 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
43474 $GREP 'no-whole-archive' > /dev/null; then
43475 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
43477 whole_archive_flag_spec_CXX=
43483 # A generic and very simple default shared library creation
43484 # command for GNU C++ for the case where it uses the native
43485 # linker, instead of GNU ld. If possible, this setting should
43486 # overridden to take advantage of the native linker features on
43487 # the platform it is being used on.
43488 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
43491 # Commands to make compiler produce verbose output that lists
43492 # what "hidden" libraries, object files and flags are used when
43493 # linking a shared library.
43494 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
43502 # PORTME: fill in a description of your system's C++ link characteristics
43503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
43504 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
43508 # FIXME: insert proper C++ library support
43512 if test "$host_cpu" = ia64; then
43513 # On IA64, the linker does run time linking by default, so we don't
43514 # have to do anything special.
43515 aix_use_runtimelinking=no
43516 exp_sym_flag='-Bexport'
43519 aix_use_runtimelinking=no
43521 # Test if we are trying to use run time linking or normal
43522 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
43523 # need to do runtime linking.
43524 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
43525 for ld_flag in $LDFLAGS; do
43528 aix_use_runtimelinking=yes
43536 exp_sym_flag='-bexport'
43537 no_entry_flag='-bnoentry'
43540 # When large executables or shared objects are built, AIX ld can
43541 # have problems creating the table of contents. If linking a library
43542 # or program results in "error TOC overflow" add -mminimal-toc to
43543 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
43544 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
43546 archive_cmds_CXX=''
43547 hardcode_direct_CXX=yes
43548 hardcode_direct_absolute_CXX=yes
43549 hardcode_libdir_separator_CXX=':'
43550 link_all_deplibs_CXX=yes
43551 file_list_spec_CXX='${wl}-f,'
43553 if test "$GXX" = yes; then
43554 case $host_os in aix4.[012]|aix4.[012].*)
43555 # We only want to do this on AIX 4.2 and lower, the check
43556 # below for broken collect2 doesn't work under 4.3+
43557 collect2name=`${CC} -print-prog-name=collect2`
43558 if test -f "$collect2name" &&
43559 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
43561 # We have reworked collect2
43564 # We have old collect2
43565 hardcode_direct_CXX=unsupported
43566 # It fails to find uninstalled libraries when the uninstalled
43567 # path is not listed in the libpath. Setting hardcode_minus_L
43568 # to unsupported forces relinking
43569 hardcode_minus_L_CXX=yes
43570 hardcode_libdir_flag_spec_CXX='-L$libdir'
43571 hardcode_libdir_separator_CXX=
43574 shared_flag='-shared'
43575 if test "$aix_use_runtimelinking" = yes; then
43576 shared_flag="$shared_flag "'${wl}-G'
43580 if test "$host_cpu" = ia64; then
43581 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
43582 # chokes on -Wl,-G. The following line is correct:
43585 if test "$aix_use_runtimelinking" = yes; then
43586 shared_flag='${wl}-G'
43588 shared_flag='${wl}-bM:SRE'
43593 export_dynamic_flag_spec_CXX='${wl}-bexpall'
43594 # It seems that -bexpall does not export symbols beginning with
43595 # underscore (_), so it is better to generate a list of symbols to
43597 always_export_symbols_CXX=yes
43598 if test "$aix_use_runtimelinking" = yes; then
43599 # Warning - without using the other runtime loading flags (-brtl),
43600 # -berok will link without error, but may produce a broken library.
43601 allow_undefined_flag_CXX='-berok'
43602 # Determine the default libpath from the value encoded in an empty
43604 if test "${lt_cv_aix_libpath+set}" = set; then
43605 aix_libpath=$lt_cv_aix_libpath
43607 if ${lt_cv_aix_libpath__CXX+:} false; then :
43608 $as_echo_n "(cached) " >&6
43610 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
43611 /* end confdefs.h. */
43621 if ac_fn_cxx_try_link "$LINENO"; then :
43623 lt_aix_libpath_sed='
43624 /Import File Strings/,/^$/ {
43626 s/^0 *\([^ ]*\) *$/\1/
43630 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
43631 # Check for a 64-bit object if we didn't find anything.
43632 if test -z "$lt_cv_aix_libpath__CXX"; then
43633 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
43636 rm -f core conftest.err conftest.$ac_objext \
43637 conftest$ac_exeext conftest.$ac_ext
43638 if test -z "$lt_cv_aix_libpath__CXX"; then
43639 lt_cv_aix_libpath__CXX="/usr/lib:/lib"
43644 aix_libpath=$lt_cv_aix_libpath__CXX
43647 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
43649 archive_expsym_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
43651 if test "$host_cpu" = ia64; then
43652 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
43653 allow_undefined_flag_CXX="-z nodefs"
43654 archive_expsym_cmds_CXX="\$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"
43656 # Determine the default libpath from the value encoded in an
43657 # empty executable.
43658 if test "${lt_cv_aix_libpath+set}" = set; then
43659 aix_libpath=$lt_cv_aix_libpath
43661 if ${lt_cv_aix_libpath__CXX+:} false; then :
43662 $as_echo_n "(cached) " >&6
43664 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
43665 /* end confdefs.h. */
43675 if ac_fn_cxx_try_link "$LINENO"; then :
43677 lt_aix_libpath_sed='
43678 /Import File Strings/,/^$/ {
43680 s/^0 *\([^ ]*\) *$/\1/
43684 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
43685 # Check for a 64-bit object if we didn't find anything.
43686 if test -z "$lt_cv_aix_libpath__CXX"; then
43687 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
43690 rm -f core conftest.err conftest.$ac_objext \
43691 conftest$ac_exeext conftest.$ac_ext
43692 if test -z "$lt_cv_aix_libpath__CXX"; then
43693 lt_cv_aix_libpath__CXX="/usr/lib:/lib"
43698 aix_libpath=$lt_cv_aix_libpath__CXX
43701 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
43702 # Warning - without using the other run time loading flags,
43703 # -berok will link without error, but may produce a broken library.
43704 no_undefined_flag_CXX=' ${wl}-bernotok'
43705 allow_undefined_flag_CXX=' ${wl}-berok'
43706 if test "$with_gnu_ld" = yes; then
43707 # We only use this code for GNU lds that support --whole-archive.
43708 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
43710 # Exported symbols can be pulled into shared objects from archives
43711 whole_archive_flag_spec_CXX='$convenience'
43713 archive_cmds_need_lc_CXX=yes
43714 # This is similar to how AIX traditionally builds its shared
43716 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
43722 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
43723 allow_undefined_flag_CXX=unsupported
43724 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
43725 # support --undefined. This deserves some investigation. FIXME
43726 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
43733 case $cc_basename in
43735 # FIXME: insert proper C++ library support
43741 cygwin* | mingw* | pw32* | cegcc*)
43742 case $GXX,$cc_basename in
43745 # hardcode_libdir_flag_spec is actually meaningless, as there is
43746 # no search path for DLLs.
43747 hardcode_libdir_flag_spec_CXX=' '
43748 allow_undefined_flag_CXX=unsupported
43749 always_export_symbols_CXX=yes
43750 file_list_spec_CXX='@'
43751 # Tell ltmain to make .lib files, not .a files.
43753 # Tell ltmain to make .dll files, not .so files.
43755 # FIXME: Setting linknames here is a bad hack.
43756 archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
43757 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
43758 $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
43760 $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
43762 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
43764 # The linker will not automatically build a static lib if we build a DLL.
43765 # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
43766 enable_shared_with_static_runtimes_CXX=yes
43768 old_postinstall_cmds_CXX='chmod 644 $oldlib'
43769 postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
43770 lt_tool_outputfile="@TOOL_OUTPUT@"~
43771 case $lt_outputfile in
43774 lt_outputfile="$lt_outputfile.exe"
43775 lt_tool_outputfile="$lt_tool_outputfile.exe"
43778 func_to_tool_file "$lt_outputfile"~
43779 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
43780 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
43781 $RM "$lt_outputfile.manifest";
43786 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
43787 # as there is no search path for DLLs.
43788 hardcode_libdir_flag_spec_CXX='-L$libdir'
43789 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
43790 allow_undefined_flag_CXX=unsupported
43791 always_export_symbols_CXX=no
43792 enable_shared_with_static_runtimes_CXX=yes
43794 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
43795 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
43796 # If the export-symbols file already is a .def file (1st line
43797 # is EXPORTS), use it as is; otherwise, prepend...
43798 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
43799 cp $export_symbols $output_objdir/$soname.def;
43801 echo EXPORTS > $output_objdir/$soname.def;
43802 cat $export_symbols >> $output_objdir/$soname.def;
43804 $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
43811 darwin* | rhapsody*)
43814 archive_cmds_need_lc_CXX=no
43815 hardcode_direct_CXX=no
43816 hardcode_automatic_CXX=yes
43817 hardcode_shlibpath_var_CXX=unsupported
43818 if test "$lt_cv_ld_force_load" = "yes"; then
43819 whole_archive_flag_spec_CXX='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
43822 whole_archive_flag_spec_CXX=''
43824 link_all_deplibs_CXX=yes
43825 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
43826 case $cc_basename in
43827 ifort*) _lt_dar_can_shared=yes ;;
43828 *) _lt_dar_can_shared=$GCC ;;
43830 if test "$_lt_dar_can_shared" = "yes"; then
43831 output_verbose_link_cmd=func_echo_all
43832 archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
43833 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
43834 archive_expsym_cmds_CXX="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}"
43835 module_expsym_cmds_CXX="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}"
43836 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
43837 archive_cmds_CXX="\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dsymutil}"
43838 archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dar_export_syms}${_lt_dsymutil}"
43848 case $cc_basename in
43850 # FIXME: insert proper C++ library support
43854 # Green Hills C++ Compiler
43855 # FIXME: insert proper C++ library support
43859 # FIXME: insert proper C++ library support
43866 # C++ shared libraries reported to be fairly broken before
43872 archive_cmds_need_lc_CXX=no
43875 freebsd* | dragonfly*)
43876 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
43882 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
43883 link_all_deplibs_CXX=yes
43887 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
43888 hardcode_libdir_separator_CXX=:
43889 export_dynamic_flag_spec_CXX='${wl}-E'
43890 hardcode_direct_CXX=yes
43891 hardcode_minus_L_CXX=yes # Not in the search PATH,
43892 # but as the default
43893 # location of the library.
43895 case $cc_basename in
43897 # FIXME: insert proper C++ library support
43901 archive_cmds_CXX='$RM $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
43902 # Commands to make compiler produce verbose output that lists
43903 # what "hidden" libraries, object files and flags are used when
43904 # linking a shared library.
43906 # There doesn't appear to be a way to prevent this compiler from
43907 # explicitly linking system object files so we need to strip them
43908 # from the output so that they don't get included in the library
43910 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
43913 if test "$GXX" = yes; then
43914 archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
43916 # FIXME: insert proper C++ library support
43924 if test $with_gnu_ld = no; then
43925 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
43926 hardcode_libdir_separator_CXX=:
43932 export_dynamic_flag_spec_CXX='${wl}-E'
43938 hardcode_direct_CXX=no
43939 hardcode_shlibpath_var_CXX=no
43942 hardcode_direct_CXX=yes
43943 hardcode_direct_absolute_CXX=yes
43944 hardcode_minus_L_CXX=yes # Not in the search PATH,
43945 # but as the default
43946 # location of the library.
43950 case $cc_basename in
43952 # FIXME: insert proper C++ library support
43958 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
43961 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
43964 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
43967 # Commands to make compiler produce verbose output that lists
43968 # what "hidden" libraries, object files and flags are used when
43969 # linking a shared library.
43971 # There doesn't appear to be a way to prevent this compiler from
43972 # explicitly linking system object files so we need to strip them
43973 # from the output so that they don't get included in the library
43975 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
43978 if test "$GXX" = yes; then
43979 if test $with_gnu_ld = no; then
43982 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
43985 archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
43988 archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
43993 # FIXME: insert proper C++ library support
44001 hardcode_direct_CXX=no
44002 hardcode_shlibpath_var_CXX=no
44003 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
44004 export_dynamic_flag_spec_CXX='${wl}-E'
44005 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
44006 # Instead, shared libraries are loaded at an image base (0x10000000 by
44007 # default) and relocated if they conflict, which is a slow very memory
44008 # consuming and fragmenting process. To avoid this, we pick a random,
44009 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
44010 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
44011 archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
44012 archive_expsym_cmds_CXX='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'
44015 case $cc_basename in
44018 archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
44020 # Archives containing C++ object files must be created using
44021 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
44022 # necessary to make sure instantiated templates are included
44024 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
44027 if test "$GXX" = yes; then
44028 if test "$with_gnu_ld" = no; then
44029 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $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'
44031 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` -o $lib'
44034 link_all_deplibs_CXX=yes
44037 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
44038 hardcode_libdir_separator_CXX=:
44039 inherit_rpath_CXX=yes
44042 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
44043 case $cc_basename in
44045 # Kuck and Associates, Inc. (KAI) C++ Compiler
44047 # KCC will only create a shared library if the output file
44048 # ends with ".so" (or ".sl" for HP-UX), so rename the library
44049 # to its proper name (with version) after linking.
44050 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
44051 archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib'
44052 # Commands to make compiler produce verbose output that lists
44053 # what "hidden" libraries, object files and flags are used when
44054 # linking a shared library.
44056 # There doesn't appear to be a way to prevent this compiler from
44057 # explicitly linking system object files so we need to strip them
44058 # from the output so that they don't get included in the library
44060 output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | $GREP "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
44062 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
44063 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
44065 # Archives containing C++ object files must be created using
44066 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
44067 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
44072 # version 8.0 and above of icpc choke on multiply defined symbols
44073 # if we add $predep_objects and $postdep_objects, however 7.1 and
44074 # earlier do not add the objects themselves.
44075 case `$CC -V 2>&1` in
44077 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
44078 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
44080 *) # Version 8.0 or newer
44083 ia64*) tmp_idyn=' -i_dynamic';;
44085 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
44086 archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
44089 archive_cmds_need_lc_CXX=no
44090 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
44091 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
44092 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
44095 # Portland Group C++ compiler
44097 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
44098 prelink_cmds_CXX='tpldir=Template.dir~
44100 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
44101 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
44102 old_archive_cmds_CXX='tpldir=Template.dir~
44104 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
44105 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
44107 archive_cmds_CXX='tpldir=Template.dir~
44109 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
44110 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
44111 archive_expsym_cmds_CXX='tpldir=Template.dir~
44113 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
44114 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
44116 *) # Version 6 and above use weak symbols
44117 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
44118 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
44122 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
44123 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
44124 whole_archive_flag_spec_CXX='${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'
44128 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
44129 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib ${wl}-retain-symbols-file $wl$export_symbols'
44131 runpath_var=LD_RUN_PATH
44132 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
44133 hardcode_libdir_separator_CXX=:
44135 # Commands to make compiler produce verbose output that lists
44136 # what "hidden" libraries, object files and flags are used when
44137 # linking a shared library.
44139 # There doesn't appear to be a way to prevent this compiler from
44140 # explicitly linking system object files so we need to strip them
44141 # from the output so that they don't get included in the library
44143 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "X$list" | $Xsed'
44145 xl* | mpixl* | bgxl*)
44146 # IBM XL 8.0 on PPC, with GNU ld
44147 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
44148 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
44149 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
44150 if test "x$supports_anon_versioning" = xyes; then
44151 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
44152 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
44153 echo "local: *; };" >> $output_objdir/$libname.ver~
44154 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
44158 case `$CC -V 2>&1 | sed 5q` in
44161 no_undefined_flag_CXX=' -zdefs'
44162 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
44163 archive_expsym_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols'
44164 hardcode_libdir_flag_spec_CXX='-R$libdir'
44165 whole_archive_flag_spec_CXX='${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'
44166 compiler_needs_object_CXX=yes
44168 # Not sure whether something based on
44169 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
44171 output_verbose_link_cmd='func_echo_all'
44173 # Archives containing C++ object files must be created using
44174 # "CC -xar", where "CC" is the Sun C++ compiler. This is
44175 # necessary to make sure instantiated templates are included
44177 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
44185 # FIXME: insert proper C++ library support
44190 # FIXME: insert proper C++ library support
44195 case $cc_basename in
44197 # FIXME: insert proper C++ library support
44201 # FIXME: insert proper C++ library support
44208 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
44209 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
44211 hardcode_libdir_flag_spec_CXX='-R$libdir'
44212 hardcode_direct_CXX=yes
44213 hardcode_shlibpath_var_CXX=no
44215 # Workaround some broken pre-1.5 toolchains
44216 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
44224 # C++ shared libraries are fairly broken
44229 if test -f /usr/libexec/ld.so; then
44230 hardcode_direct_CXX=yes
44231 hardcode_shlibpath_var_CXX=no
44232 hardcode_direct_absolute_CXX=yes
44233 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
44234 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
44235 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
44236 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
44237 export_dynamic_flag_spec_CXX='${wl}-E'
44238 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
44240 output_verbose_link_cmd=func_echo_all
44246 osf3* | osf4* | osf5*)
44247 case $cc_basename in
44249 # Kuck and Associates, Inc. (KAI) C++ Compiler
44251 # KCC will only create a shared library if the output file
44252 # ends with ".so" (or ".sl" for HP-UX), so rename the library
44253 # to its proper name (with version) after linking.
44254 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo "$lib" | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
44256 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
44257 hardcode_libdir_separator_CXX=:
44259 # Archives containing C++ object files must be created using
44260 # the KAI C++ compiler.
44262 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
44263 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
44267 # Rational C++ 2.4.1
44268 # FIXME: insert proper C++ library support
44274 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
44275 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && func_echo_all "${wl}-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
44276 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
44279 allow_undefined_flag_CXX=' -expect_unresolved \*'
44280 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
44281 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
44282 echo "-hidden">> $lib.exp~
44283 $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname ${wl}-input ${wl}$lib.exp `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~
44285 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
44289 hardcode_libdir_separator_CXX=:
44291 # Commands to make compiler produce verbose output that lists
44292 # what "hidden" libraries, object files and flags are used when
44293 # linking a shared library.
44295 # There doesn't appear to be a way to prevent this compiler from
44296 # explicitly linking system object files so we need to strip them
44297 # from the output so that they don't get included in the library
44299 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
44302 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
44303 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
44306 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $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'
44309 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $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'
44313 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
44314 hardcode_libdir_separator_CXX=:
44316 # Commands to make compiler produce verbose output that lists
44317 # what "hidden" libraries, object files and flags are used when
44318 # linking a shared library.
44319 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
44322 # FIXME: insert proper C++ library support
44330 # FIXME: insert proper C++ library support
44335 case $cc_basename in
44338 # FIXME: insert proper C++ library support
44343 # FIXME: insert proper C++ library support
44347 # FIXME: insert proper C++ library support
44354 case $cc_basename in
44356 # Sun C++ 4.2, 5.x and Centerline C++
44357 archive_cmds_need_lc_CXX=yes
44358 no_undefined_flag_CXX=' -zdefs'
44359 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
44360 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
44361 $CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
44363 hardcode_libdir_flag_spec_CXX='-R$libdir'
44364 hardcode_shlibpath_var_CXX=no
44366 solaris2.[0-5] | solaris2.[0-5].*) ;;
44368 # The compiler driver will combine and reorder linker options,
44369 # but understands `-z linker_flag'.
44370 # Supported since Solaris 2.6 (maybe 2.5.1?)
44371 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
44374 link_all_deplibs_CXX=yes
44376 output_verbose_link_cmd='func_echo_all'
44378 # Archives containing C++ object files must be created using
44379 # "CC -xar", where "CC" is the Sun C++ compiler. This is
44380 # necessary to make sure instantiated templates are included
44382 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
44385 # Green Hills C++ Compiler
44386 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
44388 # The C++ compiler must be used to create the archive.
44389 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
44392 # GNU C++ compiler with Solaris linker
44393 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
44394 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
44395 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
44396 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
44397 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
44398 $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
44400 # Commands to make compiler produce verbose output that lists
44401 # what "hidden" libraries, object files and flags are used when
44402 # linking a shared library.
44403 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
44405 # g++ 2.7 appears to require `-G' NOT `-shared' on this
44407 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
44408 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
44409 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
44411 # Commands to make compiler produce verbose output that lists
44412 # what "hidden" libraries, object files and flags are used when
44413 # linking a shared library.
44414 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
44417 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
44419 solaris2.[0-5] | solaris2.[0-5].*) ;;
44421 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
44429 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
44430 no_undefined_flag_CXX='${wl}-z,text'
44431 archive_cmds_need_lc_CXX=no
44432 hardcode_shlibpath_var_CXX=no
44433 runpath_var='LD_RUN_PATH'
44435 case $cc_basename in
44437 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
44438 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
44441 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
44442 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
44447 sysv5* | sco3.2v5* | sco5v6*)
44448 # Note: We can NOT use -z defs as we might desire, because we do not
44449 # link with -lc, and that would cause any symbols used from libc to
44450 # always be unresolved, which means just about no library would
44451 # ever link correctly. If we're not using GNU ld we use -z text
44452 # though, which does catch some bad symbols but isn't as heavy-handed
44454 no_undefined_flag_CXX='${wl}-z,text'
44455 allow_undefined_flag_CXX='${wl}-z,nodefs'
44456 archive_cmds_need_lc_CXX=no
44457 hardcode_shlibpath_var_CXX=no
44458 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
44459 hardcode_libdir_separator_CXX=':'
44460 link_all_deplibs_CXX=yes
44461 export_dynamic_flag_spec_CXX='${wl}-Bexport'
44462 runpath_var='LD_RUN_PATH'
44464 case $cc_basename in
44466 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
44467 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
44468 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
44469 '"$old_archive_cmds_CXX"
44470 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
44471 '"$reload_cmds_CXX"
44474 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
44475 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
44481 case $cc_basename in
44483 # NonStop-UX NCC 3.20
44484 # FIXME: insert proper C++ library support
44488 # FIXME: insert proper C++ library support
44495 # FIXME: insert proper C++ library support
44500 # FIXME: insert proper C++ library support
44505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
44506 $as_echo "$ld_shlibs_CXX" >&6; }
44507 test "$ld_shlibs_CXX" = no && can_build_shared=no
44513 ## There is no encapsulation within the following macros, do not change
44514 ## the running order or otherwise move them around unless you know exactly
44515 ## what you are doing...
44516 # Dependencies to place before and after the object being linked:
44517 predep_objects_CXX=
44518 postdep_objects_CXX=
44521 compiler_lib_search_path_CXX=
44523 cat > conftest.$ac_ext <<_LT_EOF
44527 Foo (void) { a = 0; }
44534 _lt_libdeps_save_CFLAGS=$CFLAGS
44535 case "$CC $CFLAGS " in #(
44536 *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
44537 *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
44538 *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
44541 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
44542 (eval $ac_compile) 2>&5
44544 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
44545 test $ac_status = 0; }; then
44546 # Parse the compiler output and extract the necessary
44547 # objects, libraries and library flags.
44549 # Sentinel used to keep track of whether or not we are before
44550 # the conftest object file.
44551 pre_test_object_deps_done=no
44553 for p in `eval "$output_verbose_link_cmd"`; do
44554 case ${prev}${p} in
44557 # Some compilers place space between "-{L,R}" and the path.
44558 # Remove the space.
44559 if test $p = "-L" ||
44560 test $p = "-R"; then
44565 # Expand the sysroot to ease extracting the directories later.
44566 if test -z "$prev"; then
44568 -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
44569 -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
44570 -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
44574 =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
44576 if test "$pre_test_object_deps_done" = no; then
44579 # Internal compiler library paths should come after those
44580 # provided the user. The postdeps already come after the
44581 # user supplied libs so there is no need to process them.
44582 if test -z "$compiler_lib_search_path_CXX"; then
44583 compiler_lib_search_path_CXX="${prev}${p}"
44585 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
44588 # The "-l" case would never come before the object being
44589 # linked, so don't bother handling this case.
44592 if test -z "$postdeps_CXX"; then
44593 postdeps_CXX="${prev}${p}"
44595 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
44601 *.lto.$objext) ;; # Ignore GCC LTO objects
44603 # This assumes that the test object file only shows up
44604 # once in the compiler output.
44605 if test "$p" = "conftest.$objext"; then
44606 pre_test_object_deps_done=yes
44610 if test "$pre_test_object_deps_done" = no; then
44611 if test -z "$predep_objects_CXX"; then
44612 predep_objects_CXX="$p"
44614 predep_objects_CXX="$predep_objects_CXX $p"
44617 if test -z "$postdep_objects_CXX"; then
44618 postdep_objects_CXX="$p"
44620 postdep_objects_CXX="$postdep_objects_CXX $p"
44625 *) ;; # Ignore the rest.
44633 echo "libtool.m4: error: problem compiling CXX test program"
44636 $RM -f confest.$objext
44637 CFLAGS=$_lt_libdeps_save_CFLAGS
44639 # PORTME: override above test on systems where it is broken
44642 # Interix 3.5 installs completely hosed .la files for C++, so rather than
44643 # hack all around it, let's just trust "g++" to DTRT.
44644 predep_objects_CXX=
44645 postdep_objects_CXX=
44650 case `$CC -V 2>&1 | sed 5q` in
44654 # The more standards-conforming stlport4 library is
44655 # incompatible with the Cstd library. Avoid specifying
44656 # it if it's in CXXFLAGS. Ignore libCrun as
44657 # -library=stlport4 depends on it.
44658 case " $CXX $CXXFLAGS " in
44659 *" -library=stlport4 "*)
44660 solaris_use_stlport4=yes
44664 if test "$solaris_use_stlport4" != yes; then
44665 postdeps_CXX='-library=Cstd -library=Crun'
44672 case $cc_basename in
44674 # The more standards-conforming stlport4 library is
44675 # incompatible with the Cstd library. Avoid specifying
44676 # it if it's in CXXFLAGS. Ignore libCrun as
44677 # -library=stlport4 depends on it.
44678 case " $CXX $CXXFLAGS " in
44679 *" -library=stlport4 "*)
44680 solaris_use_stlport4=yes
44684 # Adding this requires a known-good setup of shared libraries for
44685 # Sun compiler versions before 5.6, else PIC objects from an old
44686 # archive will be linked into the output, leading to subtle bugs.
44687 if test "$solaris_use_stlport4" != yes; then
44688 postdeps_CXX='-library=Cstd -library=Crun'
44696 case " $postdeps_CXX " in
44697 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
44699 compiler_lib_search_dirs_CXX=
44700 if test -n "${compiler_lib_search_path_CXX}"; then
44701 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
44734 lt_prog_compiler_wl_CXX=
44735 lt_prog_compiler_pic_CXX=
44736 lt_prog_compiler_static_CXX=
44739 # C++ specific cases for pic, static, wl, etc.
44740 if test "$GXX" = yes; then
44741 lt_prog_compiler_wl_CXX='-Wl,'
44742 lt_prog_compiler_static_CXX='-static'
44746 # All AIX code is PIC.
44747 if test "$host_cpu" = ia64; then
44748 # AIX 5 now supports IA64 processor
44749 lt_prog_compiler_static_CXX='-Bstatic'
44756 # see comment about AmigaOS4 .so support
44757 lt_prog_compiler_pic_CXX='-fPIC'
44760 # FIXME: we need at least 68020 code to build shared libraries, but
44761 # adding the `-m68020' flag to GCC prevents building anything better,
44763 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
44768 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
44769 # PIC is the default for these OSes.
44771 mingw* | cygwin* | os2* | pw32* | cegcc*)
44772 # This hack is so that the source file can tell whether it is being
44773 # built for inclusion in a dll (and should export symbols for example).
44774 # Although the cygwin gcc ignores -fPIC, still need this for old-style
44775 # (--disable-auto-import) libraries
44776 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
44778 darwin* | rhapsody*)
44779 # PIC is the default on this platform
44780 # Common symbols not allowed in MH_DYLIB files
44781 lt_prog_compiler_pic_CXX='-fno-common'
44784 # DJGPP does not support shared libraries at all
44785 lt_prog_compiler_pic_CXX=
44788 # PIC is the default for Haiku.
44789 # The "-static" flag exists, but is broken.
44790 lt_prog_compiler_static_CXX=
44793 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
44794 # Instead, we relocate shared libraries at runtime.
44797 if test -d /usr/nec; then
44798 lt_prog_compiler_pic_CXX=-Kconform_pic
44802 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
44803 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
44804 # sets the default TLS model and affects inlining.
44809 lt_prog_compiler_pic_CXX='-fPIC'
44814 # QNX uses GNU C++, but need to define -shared option too, otherwise
44815 # it will coredump.
44816 lt_prog_compiler_pic_CXX='-fPIC -shared'
44819 lt_prog_compiler_pic_CXX='-fPIC'
44825 # All AIX code is PIC.
44826 if test "$host_cpu" = ia64; then
44827 # AIX 5 now supports IA64 processor
44828 lt_prog_compiler_static_CXX='-Bstatic'
44830 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
44834 case $cc_basename in
44836 # Green Hills C++ Compiler
44837 # _LT_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
44841 mingw* | cygwin* | os2* | pw32* | cegcc*)
44842 # This hack is so that the source file can tell whether it is being
44843 # built for inclusion in a dll (and should export symbols for example).
44844 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
44847 case $cc_basename in
44849 lt_prog_compiler_pic_CXX='-KPIC'
44852 # Green Hills C++ Compiler
44853 lt_prog_compiler_pic_CXX='-pic'
44859 freebsd* | dragonfly*)
44860 # FreeBSD uses GNU C++
44862 hpux9* | hpux10* | hpux11*)
44863 case $cc_basename in
44865 lt_prog_compiler_wl_CXX='-Wl,'
44866 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
44867 if test "$host_cpu" != ia64; then
44868 lt_prog_compiler_pic_CXX='+Z'
44872 lt_prog_compiler_wl_CXX='-Wl,'
44873 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
44879 lt_prog_compiler_pic_CXX='+Z'
44888 # This is c89, which is MS Visual C++ (no shared libs)
44889 # Anyone wants to do a port?
44891 irix5* | irix6* | nonstopux*)
44892 case $cc_basename in
44894 lt_prog_compiler_wl_CXX='-Wl,'
44895 lt_prog_compiler_static_CXX='-non_shared'
44896 # CC pic flag -KPIC is the default.
44902 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
44903 case $cc_basename in
44906 lt_prog_compiler_wl_CXX='--backend -Wl,'
44907 lt_prog_compiler_pic_CXX='-fPIC'
44910 # old Intel C++ for x86_64 which still supported -KPIC.
44911 lt_prog_compiler_wl_CXX='-Wl,'
44912 lt_prog_compiler_pic_CXX='-KPIC'
44913 lt_prog_compiler_static_CXX='-static'
44916 # Intel C++, used to be incompatible with GCC.
44917 # ICC 10 doesn't accept -KPIC any more.
44918 lt_prog_compiler_wl_CXX='-Wl,'
44919 lt_prog_compiler_pic_CXX='-fPIC'
44920 lt_prog_compiler_static_CXX='-static'
44923 # Portland Group C++ compiler
44924 lt_prog_compiler_wl_CXX='-Wl,'
44925 lt_prog_compiler_pic_CXX='-fpic'
44926 lt_prog_compiler_static_CXX='-Bstatic'
44930 # Make sure the PIC flag is empty. It appears that all Alpha
44931 # Linux and Compaq Tru64 Unix objects are PIC.
44932 lt_prog_compiler_pic_CXX=
44933 lt_prog_compiler_static_CXX='-non_shared'
44935 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
44936 # IBM XL 8.0, 9.0 on PPC and BlueGene
44937 lt_prog_compiler_wl_CXX='-Wl,'
44938 lt_prog_compiler_pic_CXX='-qpic'
44939 lt_prog_compiler_static_CXX='-qstaticlink'
44942 case `$CC -V 2>&1 | sed 5q` in
44945 lt_prog_compiler_pic_CXX='-KPIC'
44946 lt_prog_compiler_static_CXX='-Bstatic'
44947 lt_prog_compiler_wl_CXX='-Qoption ld '
44958 case $cc_basename in
44960 lt_prog_compiler_pic_CXX='-W c,exportall'
44966 netbsd* | netbsdelf*-gnu)
44969 # QNX uses GNU C++, but need to define -shared option too, otherwise
44970 # it will coredump.
44971 lt_prog_compiler_pic_CXX='-fPIC -shared'
44973 osf3* | osf4* | osf5*)
44974 case $cc_basename in
44976 lt_prog_compiler_wl_CXX='--backend -Wl,'
44979 # Rational C++ 2.4.1
44980 lt_prog_compiler_pic_CXX='-pic'
44983 # Digital/Compaq C++
44984 lt_prog_compiler_wl_CXX='-Wl,'
44985 # Make sure the PIC flag is empty. It appears that all Alpha
44986 # Linux and Compaq Tru64 Unix objects are PIC.
44987 lt_prog_compiler_pic_CXX=
44988 lt_prog_compiler_static_CXX='-non_shared'
44997 case $cc_basename in
44999 # Sun C++ 4.2, 5.x and Centerline C++
45000 lt_prog_compiler_pic_CXX='-KPIC'
45001 lt_prog_compiler_static_CXX='-Bstatic'
45002 lt_prog_compiler_wl_CXX='-Qoption ld '
45005 # Green Hills C++ Compiler
45006 lt_prog_compiler_pic_CXX='-PIC'
45013 case $cc_basename in
45016 lt_prog_compiler_pic_CXX='-pic'
45017 lt_prog_compiler_static_CXX='-Bstatic'
45021 lt_prog_compiler_pic_CXX='-pic'
45027 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
45028 case $cc_basename in
45030 lt_prog_compiler_wl_CXX='-Wl,'
45031 lt_prog_compiler_pic_CXX='-KPIC'
45032 lt_prog_compiler_static_CXX='-Bstatic'
45037 case $cc_basename in
45039 # NonStop-UX NCC 3.20
45040 lt_prog_compiler_pic_CXX='-KPIC'
45049 lt_prog_compiler_can_build_shared_CXX=no
45055 # For platforms which do not support PIC, -DPIC is meaningless:
45057 lt_prog_compiler_pic_CXX=
45060 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
45064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
45065 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
45066 if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
45067 $as_echo_n "(cached) " >&6
45069 lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
45071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
45072 $as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
45073 lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
45076 # Check to make sure the PIC flag actually works.
45078 if test -n "$lt_prog_compiler_pic_CXX"; then
45079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
45080 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
45081 if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
45082 $as_echo_n "(cached) " >&6
45084 lt_cv_prog_compiler_pic_works_CXX=no
45085 ac_outfile=conftest.$ac_objext
45086 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
45087 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
45088 # Insert the option either (1) after the last *FLAGS variable, or
45089 # (2) before a word containing "conftest.", or (3) at the end.
45090 # Note that $ac_compile itself does not contain backslashes and begins
45091 # with a dollar sign (not a hyphen), so the echo should work correctly.
45092 # The option is referenced via a variable to avoid confusing sed.
45093 lt_compile=`echo "$ac_compile" | $SED \
45094 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
45095 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
45096 -e 's:$: $lt_compiler_flag:'`
45097 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
45098 (eval "$lt_compile" 2>conftest.err)
45100 cat conftest.err >&5
45101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45102 if (exit $ac_status) && test -s "$ac_outfile"; then
45103 # The compiler can only warn and ignore the option if not recognized
45104 # So say no if there are warnings other than the usual output.
45105 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
45106 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
45107 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
45108 lt_cv_prog_compiler_pic_works_CXX=yes
45114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
45115 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
45117 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
45118 case $lt_prog_compiler_pic_CXX in
45120 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
45123 lt_prog_compiler_pic_CXX=
45124 lt_prog_compiler_can_build_shared_CXX=no
45134 # Check to make sure the static flag actually works.
45136 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
45137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
45138 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
45139 if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
45140 $as_echo_n "(cached) " >&6
45142 lt_cv_prog_compiler_static_works_CXX=no
45143 save_LDFLAGS="$LDFLAGS"
45144 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
45145 echo "$lt_simple_link_test_code" > conftest.$ac_ext
45146 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
45147 # The linker can only warn and ignore the option if not recognized
45148 # So say no if there are warnings
45149 if test -s conftest.err; then
45150 # Append any errors to the config.log.
45151 cat conftest.err 1>&5
45152 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
45153 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
45154 if diff conftest.exp conftest.er2 >/dev/null; then
45155 lt_cv_prog_compiler_static_works_CXX=yes
45158 lt_cv_prog_compiler_static_works_CXX=yes
45162 LDFLAGS="$save_LDFLAGS"
45165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
45166 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
45168 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
45171 lt_prog_compiler_static_CXX=
45177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
45178 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
45179 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
45180 $as_echo_n "(cached) " >&6
45182 lt_cv_prog_compiler_c_o_CXX=no
45183 $RM -r conftest 2>/dev/null
45187 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
45189 lt_compiler_flag="-o out/conftest2.$ac_objext"
45190 # Insert the option either (1) after the last *FLAGS variable, or
45191 # (2) before a word containing "conftest.", or (3) at the end.
45192 # Note that $ac_compile itself does not contain backslashes and begins
45193 # with a dollar sign (not a hyphen), so the echo should work correctly.
45194 lt_compile=`echo "$ac_compile" | $SED \
45195 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
45196 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
45197 -e 's:$: $lt_compiler_flag:'`
45198 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
45199 (eval "$lt_compile" 2>out/conftest.err)
45201 cat out/conftest.err >&5
45202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45203 if (exit $ac_status) && test -s out/conftest2.$ac_objext
45205 # The compiler can only warn and ignore the option if not recognized
45206 # So say no if there are warnings
45207 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
45208 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
45209 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
45210 lt_cv_prog_compiler_c_o_CXX=yes
45215 # SGI C++ compiler will create directory out/ii_files/ for
45216 # template instantiation
45217 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
45218 $RM out/* && rmdir out
45224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
45225 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
45229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
45230 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
45231 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
45232 $as_echo_n "(cached) " >&6
45234 lt_cv_prog_compiler_c_o_CXX=no
45235 $RM -r conftest 2>/dev/null
45239 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
45241 lt_compiler_flag="-o out/conftest2.$ac_objext"
45242 # Insert the option either (1) after the last *FLAGS variable, or
45243 # (2) before a word containing "conftest.", or (3) at the end.
45244 # Note that $ac_compile itself does not contain backslashes and begins
45245 # with a dollar sign (not a hyphen), so the echo should work correctly.
45246 lt_compile=`echo "$ac_compile" | $SED \
45247 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
45248 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
45249 -e 's:$: $lt_compiler_flag:'`
45250 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
45251 (eval "$lt_compile" 2>out/conftest.err)
45253 cat out/conftest.err >&5
45254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45255 if (exit $ac_status) && test -s out/conftest2.$ac_objext
45257 # The compiler can only warn and ignore the option if not recognized
45258 # So say no if there are warnings
45259 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
45260 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
45261 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
45262 lt_cv_prog_compiler_c_o_CXX=yes
45267 # SGI C++ compiler will create directory out/ii_files/ for
45268 # template instantiation
45269 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
45270 $RM out/* && rmdir out
45276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
45277 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
45282 hard_links="nottested"
45283 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
45284 # do not overwrite the value of need_locks provided by the user
45285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
45286 $as_echo_n "checking if we can lock with hard links... " >&6; }
45289 ln conftest.a conftest.b 2>/dev/null && hard_links=no
45291 ln conftest.a conftest.b 2>&5 || hard_links=no
45292 ln conftest.a conftest.b 2>/dev/null && hard_links=no
45293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
45294 $as_echo "$hard_links" >&6; }
45295 if test "$hard_links" = no; then
45296 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
45297 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
45306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
45307 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
45309 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
45310 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
45313 # If we're using GNU nm, then we don't want the "-C" option.
45314 # -C means demangle to AIX nm, but means don't demangle with GNU nm
45315 # Also, AIX nm treats weak defined symbols like other global defined
45316 # symbols, whereas GNU nm marks them as "W".
45317 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
45318 export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
45320 export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
45324 export_symbols_cmds_CXX="$ltdll_cmds"
45326 cygwin* | mingw* | cegcc*)
45327 case $cc_basename in
45329 exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
45332 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
45333 exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
45337 linux* | k*bsd*-gnu | gnu*)
45338 link_all_deplibs_CXX=no
45341 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
45345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
45346 $as_echo "$ld_shlibs_CXX" >&6; }
45347 test "$ld_shlibs_CXX" = no && can_build_shared=no
45349 with_gnu_ld_CXX=$with_gnu_ld
45357 # Do we need to explicitly link libc?
45359 case "x$archive_cmds_need_lc_CXX" in
45361 # Assume -lc should be added
45362 archive_cmds_need_lc_CXX=yes
45364 if test "$enable_shared" = yes && test "$GCC" = yes; then
45365 case $archive_cmds_CXX in
45367 # FIXME: we may have to deal with multi-command sequences.
45370 # Test whether the compiler implicitly links with -lc since on some
45371 # systems, -lgcc has to come before -lc. If gcc already passes -lc
45372 # to ld, don't add -lc before -lgcc.
45373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
45374 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
45375 if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
45376 $as_echo_n "(cached) " >&6
45379 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
45381 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
45382 (eval $ac_compile) 2>&5
45384 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
45385 test $ac_status = 0; } 2>conftest.err; then
45388 libobjs=conftest.$ac_objext
45390 wl=$lt_prog_compiler_wl_CXX
45391 pic_flag=$lt_prog_compiler_pic_CXX
45397 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
45398 allow_undefined_flag_CXX=
45399 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
45400 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
45402 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
45403 test $ac_status = 0; }
45405 lt_cv_archive_cmds_need_lc_CXX=no
45407 lt_cv_archive_cmds_need_lc_CXX=yes
45409 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
45411 cat conftest.err 1>&5
45416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
45417 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
45418 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
45486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
45487 $as_echo_n "checking dynamic linker characteristics... " >&6; }
45489 library_names_spec=
45490 libname_spec='lib$name'
45494 postuninstall_cmds=
45498 shlibpath_overrides_runpath=unknown
45500 dynamic_linker="$host_os ld.so"
45501 sys_lib_dlsearch_path_spec="/lib /usr/lib"
45502 need_lib_prefix=unknown
45503 hardcode_into_libs=no
45505 # when you set need_version to no, make sure it does not cause -set_version
45506 # flags to be left without arguments
45507 need_version=unknown
45511 version_type=linux # correct to gnu/linux during the next big refactor
45512 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
45513 shlibpath_var=LIBPATH
45515 # AIX 3 has no versioning support, so we append a major version to the name.
45516 soname_spec='${libname}${release}${shared_ext}$major'
45520 version_type=linux # correct to gnu/linux during the next big refactor
45523 hardcode_into_libs=yes
45524 if test "$host_cpu" = ia64; then
45525 # AIX 5 supports IA64
45526 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
45527 shlibpath_var=LD_LIBRARY_PATH
45529 # With GCC up to 2.95.x, collect2 would create an import file
45530 # for dependence libraries. The import file would start with
45531 # the line `#! .'. This would cause the generated library to
45532 # depend on `.', always an invalid library. This was fixed in
45533 # development snapshots of GCC prior to 3.0.
45535 aix4 | aix4.[01] | aix4.[01].*)
45536 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
45538 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
45541 can_build_shared=no
45545 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
45546 # soname into executable. Probably we can add versioning support to
45547 # collect2, so additional links can be useful in future.
45548 if test "$aix_use_runtimelinking" = yes; then
45549 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
45550 # instead of lib<name>.a to let people know that these are not
45551 # typical AIX shared libraries.
45552 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
45554 # We preserve .a as extension for shared libraries through AIX4.2
45555 # and later when we are not doing run time linking.
45556 library_names_spec='${libname}${release}.a $libname.a'
45557 soname_spec='${libname}${release}${shared_ext}$major'
45559 shlibpath_var=LIBPATH
45566 # Since July 2007 AmigaOS4 officially supports .so libraries.
45567 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
45568 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
45571 library_names_spec='$libname.ixlibrary $libname.a'
45572 # Create ${libname}_ixlibrary.a entries in /sys/libs.
45573 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $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'
45579 library_names_spec='${libname}${shared_ext}'
45580 dynamic_linker="$host_os ld.so"
45581 shlibpath_var=LIBRARY_PATH
45585 version_type=linux # correct to gnu/linux during the next big refactor
45587 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
45588 soname_spec='${libname}${release}${shared_ext}$major'
45589 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
45590 shlibpath_var=LD_LIBRARY_PATH
45591 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
45592 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
45593 # the default ld.so.conf also contains /usr/contrib/lib and
45594 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
45595 # libtool to hard-code these into programs
45598 cygwin* | mingw* | pw32* | cegcc*)
45599 version_type=windows
45604 case $GCC,$cc_basename in
45607 library_names_spec='$libname.dll.a'
45608 # DLL is installed to $(libdir)/../bin by postinstall_cmds
45609 postinstall_cmds='base_file=`basename \${file}`~
45610 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
45611 dldir=$destdir/`dirname \$dlpath`~
45612 test -d \$dldir || mkdir -p \$dldir~
45613 $install_prog $dir/$dlname \$dldir/$dlname~
45614 chmod a+x \$dldir/$dlname~
45615 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
45616 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
45618 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
45619 dlpath=$dir/\$dldll~
45621 shlibpath_overrides_runpath=yes
45625 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
45626 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
45630 # MinGW DLLs use traditional 'lib' prefix
45631 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
45634 # pw32 DLLs use 'pw' prefix rather than 'lib'
45635 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
45638 dynamic_linker='Win32 ld.exe'
45643 libname_spec='$name'
45644 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
45645 library_names_spec='${libname}.dll.lib'
45649 sys_lib_search_path_spec=
45652 for lt_path in $LIB
45655 # Let DOS variable expansion print the short 8.3 style file name.
45656 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
45657 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
45660 # Convert to MSYS style.
45661 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
45664 # Convert to unix form, then to dos form, then back to unix form
45665 # but this time dos style (no spaces!) so that the unix form looks
45666 # like /cygdrive/c/PROGRA~1:/cygdr...
45667 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
45668 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
45669 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
45672 sys_lib_search_path_spec="$LIB"
45673 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
45674 # It is most probably a Windows format PATH.
45675 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
45677 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
45679 # FIXME: find the short name or the path components, as spaces are
45680 # common. (e.g. "Program Files" -> "PROGRA~1")
45684 # DLL is installed to $(libdir)/../bin by postinstall_cmds
45685 postinstall_cmds='base_file=`basename \${file}`~
45686 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
45687 dldir=$destdir/`dirname \$dlpath`~
45688 test -d \$dldir || mkdir -p \$dldir~
45689 $install_prog $dir/$dlname \$dldir/$dlname'
45690 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
45691 dlpath=$dir/\$dldll~
45693 shlibpath_overrides_runpath=yes
45694 dynamic_linker='Win32 link.exe'
45698 # Assume MSVC wrapper
45699 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
45700 dynamic_linker='Win32 ld.exe'
45703 # FIXME: first we should search . and the directory the executable is in
45707 darwin* | rhapsody*)
45708 dynamic_linker="$host_os dyld"
45709 version_type=darwin
45712 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
45713 soname_spec='${libname}${release}${major}$shared_ext'
45714 shlibpath_overrides_runpath=yes
45715 shlibpath_var=DYLD_LIBRARY_PATH
45716 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
45718 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
45722 version_type=linux # correct to gnu/linux during the next big refactor
45725 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
45726 soname_spec='${libname}${release}${shared_ext}$major'
45727 shlibpath_var=LD_LIBRARY_PATH
45730 freebsd* | dragonfly*)
45731 # DragonFly does not have aout. When/if they implement a new
45732 # versioning mechanism, adjust this.
45733 if test -x /usr/bin/objformat; then
45734 objformat=`/usr/bin/objformat`
45737 freebsd[23].*) objformat=aout ;;
45738 *) objformat=elf ;;
45741 version_type=freebsd-$objformat
45742 case $version_type in
45744 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
45749 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
45753 shlibpath_var=LD_LIBRARY_PATH
45756 shlibpath_overrides_runpath=yes
45758 freebsd3.[01]* | freebsdelf3.[01]*)
45759 shlibpath_overrides_runpath=yes
45760 hardcode_into_libs=yes
45762 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
45763 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
45764 shlibpath_overrides_runpath=no
45765 hardcode_into_libs=yes
45767 *) # from 4.6 on, and DragonFly
45768 shlibpath_overrides_runpath=yes
45769 hardcode_into_libs=yes
45775 version_type=linux # correct to gnu/linux during the next big refactor
45778 dynamic_linker="$host_os runtime_loader"
45779 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
45780 soname_spec='${libname}${release}${shared_ext}$major'
45781 shlibpath_var=LIBRARY_PATH
45782 shlibpath_overrides_runpath=yes
45783 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
45784 hardcode_into_libs=yes
45787 hpux9* | hpux10* | hpux11*)
45788 # Give a soname corresponding to the major version so that dld.sl refuses to
45789 # link against other versions.
45796 hardcode_into_libs=yes
45797 dynamic_linker="$host_os dld.so"
45798 shlibpath_var=LD_LIBRARY_PATH
45799 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
45800 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
45801 soname_spec='${libname}${release}${shared_ext}$major'
45802 if test "X$HPUX_IA64_MODE" = X32; then
45803 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
45805 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
45807 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
45811 hardcode_into_libs=yes
45812 dynamic_linker="$host_os dld.sl"
45813 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
45814 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
45815 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
45816 soname_spec='${libname}${release}${shared_ext}$major'
45817 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
45818 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
45822 dynamic_linker="$host_os dld.sl"
45823 shlibpath_var=SHLIB_PATH
45824 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
45825 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
45826 soname_spec='${libname}${release}${shared_ext}$major'
45829 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
45830 postinstall_cmds='chmod 555 $lib'
45831 # or fails outright, so override atomically:
45832 install_override_mode=555
45836 version_type=linux # correct to gnu/linux during the next big refactor
45839 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
45840 soname_spec='${libname}${release}${shared_ext}$major'
45841 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
45842 shlibpath_var=LD_LIBRARY_PATH
45843 shlibpath_overrides_runpath=no
45844 hardcode_into_libs=yes
45847 irix5* | irix6* | nonstopux*)
45849 nonstopux*) version_type=nonstopux ;;
45851 if test "$lt_cv_prog_gnu_ld" = yes; then
45852 version_type=linux # correct to gnu/linux during the next big refactor
45859 soname_spec='${libname}${release}${shared_ext}$major'
45860 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
45862 irix5* | nonstopux*)
45863 libsuff= shlibsuff=
45866 case $LD in # libtool.m4 will add one of these switches to LD
45867 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
45868 libsuff= shlibsuff= libmagic=32-bit;;
45869 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
45870 libsuff=32 shlibsuff=N32 libmagic=N32;;
45871 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
45872 libsuff=64 shlibsuff=64 libmagic=64-bit;;
45873 *) libsuff= shlibsuff= libmagic=never-match;;
45877 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
45878 shlibpath_overrides_runpath=no
45879 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
45880 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
45881 hardcode_into_libs=yes
45884 # No shared lib support for Linux oldld, aout, or coff.
45885 linux*oldld* | linux*aout* | linux*coff*)
45889 # This must be glibc/ELF.
45890 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
45891 version_type=linux # correct to gnu/linux during the next big refactor
45894 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
45895 soname_spec='${libname}${release}${shared_ext}$major'
45896 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
45897 shlibpath_var=LD_LIBRARY_PATH
45898 shlibpath_overrides_runpath=no
45900 # Some binutils ld are patched to set DT_RUNPATH
45901 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
45902 $as_echo_n "(cached) " >&6
45904 lt_cv_shlibpath_overrides_runpath=no
45905 save_LDFLAGS=$LDFLAGS
45906 save_libdir=$libdir
45907 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
45908 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
45909 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
45910 /* end confdefs.h. */
45920 if ac_fn_cxx_try_link "$LINENO"; then :
45921 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
45922 lt_cv_shlibpath_overrides_runpath=yes
45925 rm -f core conftest.err conftest.$ac_objext \
45926 conftest$ac_exeext conftest.$ac_ext
45927 LDFLAGS=$save_LDFLAGS
45928 libdir=$save_libdir
45932 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
45934 # This implies no fast_install, which is unacceptable.
45935 # Some rework will be needed to allow for fast_install
45936 # before this can be enabled.
45937 hardcode_into_libs=yes
45939 # Append ld.so.conf contents to the search path
45940 if test -f /etc/ld.so.conf; then
45941 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' ' '`
45942 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
45945 # We used to test for /lib/ld.so.1 and disable shared libraries on
45946 # powerpc, because MkLinux only supported shared libraries with the
45947 # GNU dynamic linker. Since this was broken with cross compilers,
45948 # most powerpc-linux boxes support dynamic linking these days and
45949 # people can always --disable-shared, the test was removed, and we
45950 # assume the GNU/Linux dynamic linker is in use.
45951 dynamic_linker='GNU/Linux ld.so'
45958 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
45959 soname_spec='${libname}${release}${shared_ext}$major'
45960 shlibpath_var=LD_LIBRARY_PATH
45961 shlibpath_overrides_runpath=no
45962 hardcode_into_libs=yes
45963 dynamic_linker='NetBSD ld.elf_so'
45970 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
45971 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
45972 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
45973 dynamic_linker='NetBSD (a.out) ld.so'
45975 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
45976 soname_spec='${libname}${release}${shared_ext}$major'
45977 dynamic_linker='NetBSD ld.elf_so'
45979 shlibpath_var=LD_LIBRARY_PATH
45980 shlibpath_overrides_runpath=yes
45981 hardcode_into_libs=yes
45985 version_type=linux # correct to gnu/linux during the next big refactor
45986 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
45987 shlibpath_var=LD_LIBRARY_PATH
45988 shlibpath_overrides_runpath=yes
45995 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
45996 soname_spec='${libname}${release}${shared_ext}$major'
45997 shlibpath_var=LD_LIBRARY_PATH
45998 shlibpath_overrides_runpath=no
45999 hardcode_into_libs=yes
46000 dynamic_linker='ldqnx.so'
46005 sys_lib_dlsearch_path_spec="/usr/lib"
46007 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
46009 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
46010 *) need_version=no ;;
46012 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
46013 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
46014 shlibpath_var=LD_LIBRARY_PATH
46015 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
46017 openbsd2.[89] | openbsd2.[89].*)
46018 shlibpath_overrides_runpath=no
46021 shlibpath_overrides_runpath=yes
46025 shlibpath_overrides_runpath=yes
46030 libname_spec='$name'
46033 library_names_spec='$libname${shared_ext} $libname.a'
46034 dynamic_linker='OS/2 ld.exe'
46035 shlibpath_var=LIBPATH
46038 osf3* | osf4* | osf5*)
46042 soname_spec='${libname}${release}${shared_ext}$major'
46043 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
46044 shlibpath_var=LD_LIBRARY_PATH
46045 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
46046 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
46054 version_type=linux # correct to gnu/linux during the next big refactor
46057 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
46058 soname_spec='${libname}${release}${shared_ext}$major'
46059 shlibpath_var=LD_LIBRARY_PATH
46060 shlibpath_overrides_runpath=yes
46061 hardcode_into_libs=yes
46062 # ldd complains unless libraries are executable
46063 postinstall_cmds='chmod +x $lib'
46068 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
46069 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
46070 shlibpath_var=LD_LIBRARY_PATH
46071 shlibpath_overrides_runpath=yes
46072 if test "$with_gnu_ld" = yes; then
46079 version_type=linux # correct to gnu/linux during the next big refactor
46080 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
46081 soname_spec='${libname}${release}${shared_ext}$major'
46082 shlibpath_var=LD_LIBRARY_PATH
46083 case $host_vendor in
46085 shlibpath_overrides_runpath=no
46087 runpath_var=LD_RUN_PATH
46095 shlibpath_overrides_runpath=no
46096 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
46102 if test -d /usr/nec ;then
46103 version_type=linux # correct to gnu/linux during the next big refactor
46104 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
46105 soname_spec='$libname${shared_ext}.$major'
46106 shlibpath_var=LD_LIBRARY_PATH
46110 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
46111 version_type=freebsd-elf
46114 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
46115 soname_spec='${libname}${release}${shared_ext}$major'
46116 shlibpath_var=LD_LIBRARY_PATH
46117 shlibpath_overrides_runpath=yes
46118 hardcode_into_libs=yes
46119 if test "$with_gnu_ld" = yes; then
46120 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
46122 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
46125 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
46129 sys_lib_dlsearch_path_spec='/usr/lib'
46133 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
46134 version_type=linux # correct to gnu/linux during the next big refactor
46137 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
46138 shlibpath_var=LD_LIBRARY_PATH
46139 shlibpath_overrides_runpath=no
46140 hardcode_into_libs=yes
46144 version_type=linux # correct to gnu/linux during the next big refactor
46145 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
46146 soname_spec='${libname}${release}${shared_ext}$major'
46147 shlibpath_var=LD_LIBRARY_PATH
46154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
46155 $as_echo "$dynamic_linker" >&6; }
46156 test "$dynamic_linker" = no && can_build_shared=no
46158 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
46159 if test "$GCC" = yes; then
46160 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
46163 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
46164 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
46166 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
46167 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
46207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
46208 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
46209 hardcode_action_CXX=
46210 if test -n "$hardcode_libdir_flag_spec_CXX" ||
46211 test -n "$runpath_var_CXX" ||
46212 test "X$hardcode_automatic_CXX" = "Xyes" ; then
46214 # We can hardcode non-existent directories.
46215 if test "$hardcode_direct_CXX" != no &&
46216 # If the only mechanism to avoid hardcoding is shlibpath_var, we
46217 # have to relink, otherwise we might link with an installed library
46218 # when we should be linking with a yet-to-be-installed one
46219 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
46220 test "$hardcode_minus_L_CXX" != no; then
46221 # Linking always hardcodes the temporary library directory.
46222 hardcode_action_CXX=relink
46224 # We can link without hardcoding, and we can hardcode nonexisting dirs.
46225 hardcode_action_CXX=immediate
46228 # We cannot hardcode anything, or else we can only hardcode existing
46230 hardcode_action_CXX=unsupported
46232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
46233 $as_echo "$hardcode_action_CXX" >&6; }
46235 if test "$hardcode_action_CXX" = relink ||
46236 test "$inherit_rpath_CXX" = yes; then
46237 # Fast installation is not supported
46238 enable_fast_install=no
46239 elif test "$shlibpath_overrides_runpath" = yes ||
46240 test "$enable_shared" = no; then
46241 # Fast installation is not necessary
46242 enable_fast_install=needless
46251 fi # test -n "$compiler"
46254 CFLAGS=$lt_save_CFLAGS
46258 with_gnu_ld=$lt_save_with_gnu_ld
46259 lt_cv_path_LDCXX=$lt_cv_path_LD
46260 lt_cv_path_LD=$lt_save_path_LD
46261 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
46262 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
46263 fi # test "$_lt_caught_CXX_error" != yes
46266 ac_cpp='$CPP $CPPFLAGS'
46267 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
46268 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
46269 ac_compiler_gnu=$ac_cv_c_compiler_gnu
46285 ac_config_commands="$ac_config_commands libtool"
46290 # Only expand once:
46296 # Check whether --enable-self-checks was given.
46297 if test "${enable_self_checks+set}" = set; then :
46298 enableval=$enable_self_checks; enable_self_checks=$enableval
46300 enable_self_checks=no
46319 acl_save_prefix="$prefix"
46320 prefix="$acl_final_prefix"
46321 acl_save_exec_prefix="$exec_prefix"
46322 exec_prefix="$acl_final_exec_prefix"
46324 eval additional_includedir=\"$includedir\"
46325 eval additional_libdir=\"$libdir\"
46327 exec_prefix="$acl_save_exec_prefix"
46328 prefix="$acl_save_prefix"
46331 # Check whether --with-libdl-prefix was given.
46332 if test "${with_libdl_prefix+set}" = set; then :
46333 withval=$with_libdl_prefix;
46334 if test "X$withval" = "Xno"; then
46337 if test "X$withval" = "X"; then
46339 acl_save_prefix="$prefix"
46340 prefix="$acl_final_prefix"
46341 acl_save_exec_prefix="$exec_prefix"
46342 exec_prefix="$acl_final_exec_prefix"
46344 eval additional_includedir=\"$includedir\"
46345 eval additional_libdir=\"$libdir\"
46347 exec_prefix="$acl_save_exec_prefix"
46348 prefix="$acl_save_prefix"
46351 additional_includedir="$withval/include"
46352 additional_libdir="$withval/$acl_libdirstem"
46353 if test "$acl_libdirstem2" != "$acl_libdirstem" \
46354 && ! test -d "$withval/$acl_libdirstem"; then
46355 additional_libdir="$withval/$acl_libdirstem2"
46369 names_already_handled=
46370 names_next_round='dl '
46371 while test -n "$names_next_round"; do
46372 names_this_round="$names_next_round"
46374 for name in $names_this_round; do
46376 for n in $names_already_handled; do
46377 if test "$n" = "$name"; then
46378 already_handled=yes
46382 if test -z "$already_handled"; then
46383 names_already_handled="$names_already_handled $name"
46384 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
46385 eval value=\"\$HAVE_LIB$uppername\"
46386 if test -n "$value"; then
46387 if test "$value" = yes; then
46388 eval value=\"\$LIB$uppername\"
46389 test -z "$value" || LIBDL="${LIBDL}${LIBDL:+ }$value"
46390 eval value=\"\$LTLIB$uppername\"
46391 test -z "$value" || LTLIBDL="${LTLIBDL}${LTLIBDL:+ }$value"
46400 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
46401 if test -n "$acl_shlibext"; then
46402 shrext=".$acl_shlibext" # typically: shrext=.so
46406 if test $use_additional = yes; then
46407 dir="$additional_libdir"
46408 if test -n "$acl_shlibext"; then
46409 if test -f "$dir/$libname$shrext"; then
46411 found_so="$dir/$libname$shrext"
46413 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
46414 ver=`(cd "$dir" && \
46415 for f in "$libname$shrext".*; do echo "$f"; done \
46416 | sed -e "s,^$libname$shrext\\\\.,," \
46417 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
46418 | sed 1q ) 2>/dev/null`
46419 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
46421 found_so="$dir/$libname$shrext.$ver"
46424 eval library_names=\"$acl_library_names_spec\"
46425 for f in $library_names; do
46426 if test -f "$dir/$f"; then
46435 if test "X$found_dir" = "X"; then
46436 if test -f "$dir/$libname.$acl_libext"; then
46438 found_a="$dir/$libname.$acl_libext"
46441 if test "X$found_dir" != "X"; then
46442 if test -f "$dir/$libname.la"; then
46443 found_la="$dir/$libname.la"
46447 if test "X$found_dir" = "X"; then
46448 for x in $LDFLAGS $LTLIBDL; do
46450 acl_save_prefix="$prefix"
46451 prefix="$acl_final_prefix"
46452 acl_save_exec_prefix="$exec_prefix"
46453 exec_prefix="$acl_final_exec_prefix"
46455 exec_prefix="$acl_save_exec_prefix"
46456 prefix="$acl_save_prefix"
46460 dir=`echo "X$x" | sed -e 's/^X-L//'`
46461 if test -n "$acl_shlibext"; then
46462 if test -f "$dir/$libname$shrext"; then
46464 found_so="$dir/$libname$shrext"
46466 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
46467 ver=`(cd "$dir" && \
46468 for f in "$libname$shrext".*; do echo "$f"; done \
46469 | sed -e "s,^$libname$shrext\\\\.,," \
46470 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
46471 | sed 1q ) 2>/dev/null`
46472 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
46474 found_so="$dir/$libname$shrext.$ver"
46477 eval library_names=\"$acl_library_names_spec\"
46478 for f in $library_names; do
46479 if test -f "$dir/$f"; then
46488 if test "X$found_dir" = "X"; then
46489 if test -f "$dir/$libname.$acl_libext"; then
46491 found_a="$dir/$libname.$acl_libext"
46494 if test "X$found_dir" != "X"; then
46495 if test -f "$dir/$libname.la"; then
46496 found_la="$dir/$libname.la"
46501 if test "X$found_dir" != "X"; then
46506 if test "X$found_dir" != "X"; then
46507 LTLIBDL="${LTLIBDL}${LTLIBDL:+ }-L$found_dir -l$name"
46508 if test "X$found_so" != "X"; then
46509 if test "$enable_rpath" = no \
46510 || test "X$found_dir" = "X/usr/$acl_libdirstem" \
46511 || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
46512 LIBDL="${LIBDL}${LIBDL:+ }$found_so"
46515 for x in $ltrpathdirs; do
46516 if test "X$x" = "X$found_dir"; then
46521 if test -z "$haveit"; then
46522 ltrpathdirs="$ltrpathdirs $found_dir"
46524 if test "$acl_hardcode_direct" = yes; then
46525 LIBDL="${LIBDL}${LIBDL:+ }$found_so"
46527 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
46528 LIBDL="${LIBDL}${LIBDL:+ }$found_so"
46530 for x in $rpathdirs; do
46531 if test "X$x" = "X$found_dir"; then
46536 if test -z "$haveit"; then
46537 rpathdirs="$rpathdirs $found_dir"
46541 for x in $LDFLAGS $LIBDL; do
46543 acl_save_prefix="$prefix"
46544 prefix="$acl_final_prefix"
46545 acl_save_exec_prefix="$exec_prefix"
46546 exec_prefix="$acl_final_exec_prefix"
46548 exec_prefix="$acl_save_exec_prefix"
46549 prefix="$acl_save_prefix"
46551 if test "X$x" = "X-L$found_dir"; then
46556 if test -z "$haveit"; then
46557 LIBDL="${LIBDL}${LIBDL:+ }-L$found_dir"
46559 if test "$acl_hardcode_minus_L" != no; then
46560 LIBDL="${LIBDL}${LIBDL:+ }$found_so"
46562 LIBDL="${LIBDL}${LIBDL:+ }-l$name"
46568 if test "X$found_a" != "X"; then
46569 LIBDL="${LIBDL}${LIBDL:+ }$found_a"
46571 LIBDL="${LIBDL}${LIBDL:+ }-L$found_dir -l$name"
46574 additional_includedir=
46575 case "$found_dir" in
46576 */$acl_libdirstem | */$acl_libdirstem/)
46577 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
46578 if test "$name" = 'dl'; then
46579 LIBDL_PREFIX="$basedir"
46581 additional_includedir="$basedir/include"
46583 */$acl_libdirstem2 | */$acl_libdirstem2/)
46584 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
46585 if test "$name" = 'dl'; then
46586 LIBDL_PREFIX="$basedir"
46588 additional_includedir="$basedir/include"
46591 if test "X$additional_includedir" != "X"; then
46592 if test "X$additional_includedir" != "X/usr/include"; then
46594 if test "X$additional_includedir" = "X/usr/local/include"; then
46595 if test -n "$GCC"; then
46597 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
46601 if test -z "$haveit"; then
46602 for x in $CPPFLAGS $INCDL; do
46604 acl_save_prefix="$prefix"
46605 prefix="$acl_final_prefix"
46606 acl_save_exec_prefix="$exec_prefix"
46607 exec_prefix="$acl_final_exec_prefix"
46609 exec_prefix="$acl_save_exec_prefix"
46610 prefix="$acl_save_prefix"
46612 if test "X$x" = "X-I$additional_includedir"; then
46617 if test -z "$haveit"; then
46618 if test -d "$additional_includedir"; then
46619 INCDL="${INCDL}${INCDL:+ }-I$additional_includedir"
46625 if test -n "$found_la"; then
46626 save_libdir="$libdir"
46627 case "$found_la" in
46628 */* | *\\*) . "$found_la" ;;
46629 *) . "./$found_la" ;;
46631 libdir="$save_libdir"
46632 for dep in $dependency_libs; do
46635 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
46636 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
46637 && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
46639 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
46640 || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
46641 if test -n "$GCC"; then
46643 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
46647 if test -z "$haveit"; then
46649 for x in $LDFLAGS $LIBDL; do
46651 acl_save_prefix="$prefix"
46652 prefix="$acl_final_prefix"
46653 acl_save_exec_prefix="$exec_prefix"
46654 exec_prefix="$acl_final_exec_prefix"
46656 exec_prefix="$acl_save_exec_prefix"
46657 prefix="$acl_save_prefix"
46659 if test "X$x" = "X-L$additional_libdir"; then
46664 if test -z "$haveit"; then
46665 if test -d "$additional_libdir"; then
46666 LIBDL="${LIBDL}${LIBDL:+ }-L$additional_libdir"
46670 for x in $LDFLAGS $LTLIBDL; do
46672 acl_save_prefix="$prefix"
46673 prefix="$acl_final_prefix"
46674 acl_save_exec_prefix="$exec_prefix"
46675 exec_prefix="$acl_final_exec_prefix"
46677 exec_prefix="$acl_save_exec_prefix"
46678 prefix="$acl_save_prefix"
46680 if test "X$x" = "X-L$additional_libdir"; then
46685 if test -z "$haveit"; then
46686 if test -d "$additional_libdir"; then
46687 LTLIBDL="${LTLIBDL}${LTLIBDL:+ }-L$additional_libdir"
46694 dir=`echo "X$dep" | sed -e 's/^X-R//'`
46695 if test "$enable_rpath" != no; then
46697 for x in $rpathdirs; do
46698 if test "X$x" = "X$dir"; then
46703 if test -z "$haveit"; then
46704 rpathdirs="$rpathdirs $dir"
46707 for x in $ltrpathdirs; do
46708 if test "X$x" = "X$dir"; then
46713 if test -z "$haveit"; then
46714 ltrpathdirs="$ltrpathdirs $dir"
46719 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
46722 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
46725 LIBDL="${LIBDL}${LIBDL:+ }$dep"
46726 LTLIBDL="${LTLIBDL}${LTLIBDL:+ }$dep"
46732 LIBDL="${LIBDL}${LIBDL:+ }-l$name"
46733 LTLIBDL="${LTLIBDL}${LTLIBDL:+ }-l$name"
46739 if test "X$rpathdirs" != "X"; then
46740 if test -n "$acl_hardcode_libdir_separator"; then
46742 for found_dir in $rpathdirs; do
46743 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
46745 acl_save_libdir="$libdir"
46747 eval flag=\"$acl_hardcode_libdir_flag_spec\"
46748 libdir="$acl_save_libdir"
46749 LIBDL="${LIBDL}${LIBDL:+ }$flag"
46751 for found_dir in $rpathdirs; do
46752 acl_save_libdir="$libdir"
46753 libdir="$found_dir"
46754 eval flag=\"$acl_hardcode_libdir_flag_spec\"
46755 libdir="$acl_save_libdir"
46756 LIBDL="${LIBDL}${LIBDL:+ }$flag"
46760 if test "X$ltrpathdirs" != "X"; then
46761 for found_dir in $ltrpathdirs; do
46762 LTLIBDL="${LTLIBDL}${LTLIBDL:+ }-R$found_dir"
46772 ac_save_CPPFLAGS="$CPPFLAGS"
46774 for element in $INCDL; do
46776 for x in $CPPFLAGS; do
46778 acl_save_prefix="$prefix"
46779 prefix="$acl_final_prefix"
46780 acl_save_exec_prefix="$exec_prefix"
46781 exec_prefix="$acl_final_exec_prefix"
46783 exec_prefix="$acl_save_exec_prefix"
46784 prefix="$acl_save_prefix"
46786 if test "X$x" = "X$element"; then
46791 if test -z "$haveit"; then
46792 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
46797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libdl" >&5
46798 $as_echo_n "checking for libdl... " >&6; }
46799 if ${ac_cv_libdl+:} false; then :
46800 $as_echo_n "(cached) " >&6
46803 ac_save_LIBS="$LIBS"
46805 *" -l"*) LIBS="$LIBS $LIBDL" ;;
46806 *) LIBS="$LIBDL $LIBS" ;;
46808 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
46809 /* end confdefs.h. */
46819 if ac_fn_c_try_link "$LINENO"; then :
46824 rm -f core conftest.err conftest.$ac_objext \
46825 conftest$ac_exeext conftest.$ac_ext
46826 LIBS="$ac_save_LIBS"
46829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libdl" >&5
46830 $as_echo "$ac_cv_libdl" >&6; }
46831 if test "$ac_cv_libdl" = yes; then
46834 $as_echo "#define HAVE_LIBDL 1" >>confdefs.h
46836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libdl" >&5
46837 $as_echo_n "checking how to link with libdl... " >&6; }
46838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBDL" >&5
46839 $as_echo "$LIBDL" >&6; }
46842 CPPFLAGS="$ac_save_CPPFLAGS"
46855 # Check whether --enable-fips140-mode was given.
46856 if test "${enable_fips140_mode+set}" = set; then :
46857 enableval=$enable_fips140_mode; enable_fips=$enableval
46862 if test "$enable_fips" = "yes"; then
46863 ENABLE_FIPS140_TRUE=
46864 ENABLE_FIPS140_FALSE='#'
46866 ENABLE_FIPS140_TRUE='#'
46867 ENABLE_FIPS140_FALSE=
46870 if test "$enable_fips" = "yes" ;then
46871 if test "x$HAVE_LIBDL" = "xyes";then
46872 enable_self_checks=yes
46875 $as_echo "#define ENABLE_FIPS140 1" >>confdefs.h
46878 FIPS140_LIBS=$LIBDL
46882 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
46884 *** This system is not supported in FIPS140 mode.
46885 *** libdl and dladdr() are required.
46887 $as_echo "$as_me: WARNING:
46889 *** This system is not supported in FIPS140 mode.
46890 *** libdl and dladdr() are required.
46895 # Check whether --enable-non-suiteb-curves was given.
46896 if test "${enable_non_suiteb_curves+set}" = set; then :
46897 enableval=$enable_non_suiteb_curves; enable_non_suiteb=$enableval
46899 enable_non_suiteb=yes
46902 if test "$enable_non_suiteb" = "yes" ;then
46904 $as_echo "#define ENABLE_NON_SUITEB_CURVES 1" >>confdefs.h
46907 if test "$enable_non_suiteb" = "yes"; then
46908 ENABLE_NON_SUITEB_CURVES_TRUE=
46909 ENABLE_NON_SUITEB_CURVES_FALSE='#'
46911 ENABLE_NON_SUITEB_CURVES_TRUE='#'
46912 ENABLE_NON_SUITEB_CURVES_FALSE=
46916 if test "$enable_self_checks" = "yes"; then
46917 ENABLE_SELF_CHECKS_TRUE=
46918 ENABLE_SELF_CHECKS_FALSE='#'
46920 ENABLE_SELF_CHECKS_TRUE='#'
46921 ENABLE_SELF_CHECKS_FALSE=
46924 if test "$enable_self_checks" = "yes" ;then
46926 $as_echo "#define ENABLE_SELF_CHECKS 1" >>confdefs.h
46931 # Check whether --with-arcfour128 was given.
46932 if test "${with_arcfour128+set}" = set; then :
46933 withval=$with_arcfour128; enable_arcfour=$withval
46938 if test "$enable_arcfour" = "yes" ;then
46940 $as_echo "#define ENABLE_ARCFOUR128 1" >>confdefs.h
46943 if test "$enable_arcfour" = "yes"; then
46944 ENABLE_ARCFOUR128_TRUE=
46945 ENABLE_ARCFOUR128_FALSE='#'
46947 ENABLE_ARCFOUR128_TRUE='#'
46948 ENABLE_ARCFOUR128_FALSE=
46953 # Check whether --with-ssl3 was given.
46954 if test "${with_ssl3+set}" = set; then :
46955 withval=$with_ssl3; enable_ssl3=$withval
46960 if test "$enable_ssl3" = "yes" ;then
46962 $as_echo "#define ENABLE_SSL3 1" >>confdefs.h
46965 if test "$enable_ssl3" = "yes"; then
46967 ENABLE_SSL3_FALSE='#'
46969 ENABLE_SSL3_TRUE='#'
46974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build libdane" >&5
46975 $as_echo_n "checking whether to build libdane... " >&6; }
46976 # Check whether --enable-libdane was given.
46977 if test "${enable_libdane+set}" = set; then :
46978 enableval=$enable_libdane; enable_dane=$enableval
46983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_dane" >&5
46984 $as_echo "$enable_dane" >&6; }
46986 if test "$enable_dane" != "no"; then
46987 LIBS="$oldlibs -lunbound"
46988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unbound library" >&5
46989 $as_echo_n "checking for unbound library... " >&6; }
46990 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
46991 /* end confdefs.h. */
46993 #include <unbound.h>
46998 struct ub_ctx* ctx;
46999 ctx = ub_ctx_create();
47004 if ac_fn_c_try_link "$LINENO"; then :
47005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
47006 $as_echo "yes" >&6; }
47007 UNBOUND_LIBS=-lunbound
47011 $as_echo "#define HAVE_DANE 1" >>confdefs.h
47015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
47016 $as_echo "no" >&6; }
47017 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
47019 *** libunbound was not found. Libdane will not be built.
47021 $as_echo "$as_me: WARNING:
47023 *** libunbound was not found. Libdane will not be built.
47027 rm -f core conftest.err conftest.$ac_objext \
47028 conftest$ac_exeext conftest.$ac_ext
47032 if test "$enable_dane" = "yes"; then
47034 ENABLE_DANE_FALSE='#'
47036 ENABLE_DANE_TRUE='#'
47042 # Check whether --with-unbound-root-key-file was given.
47043 if test "${with_unbound_root_key_file+set}" = set; then :
47044 withval=$with_unbound_root_key_file; unbound_root_key_file="$withval"
47046 if test "$have_win" = yes; then
47047 unbound_root_key_file="C:\\Program Files\\Unbound\\root.key"
47049 if test -f /var/lib/unbound/root.key;then
47050 unbound_root_key_file="/var/lib/unbound/root.key"
47052 if test -f /usr/share/dns/root.key;then
47053 unbound_root_key_file="/usr/share/dns/root.key"
47055 unbound_root_key_file="/etc/unbound/root.key"
47064 cat >>confdefs.h <<_ACEOF
47065 #define UNBOUND_ROOT_KEY_FILE "$unbound_root_key_file"
47070 # Check whether --with-system-priority-file was given.
47071 if test "${with_system_priority_file+set}" = set; then :
47072 withval=$with_system_priority_file; system_priority_file="$withval"
47074 system_priority_file="/etc/gnutls/default-priorities"
47080 cat >>confdefs.h <<_ACEOF
47081 #define SYSTEM_PRIORITY_FILE "$system_priority_file"
47086 P11_KIT_MINIMUM=0.20.7
47088 # Check whether --with-p11-kit was given.
47089 if test "${with_p11_kit+set}" = set; then :
47090 withval=$with_p11_kit;
47093 if test "$with_p11_kit" != "no"; then
47096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for P11_KIT" >&5
47097 $as_echo_n "checking for P11_KIT... " >&6; }
47099 if test -n "$PKG_CONFIG"; then
47100 if test -n "$P11_KIT_CFLAGS"; then
47101 pkg_cv_P11_KIT_CFLAGS="$P11_KIT_CFLAGS"
47103 if test -n "$PKG_CONFIG" && \
47104 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"p11-kit-1 >= \$P11_KIT_MINIMUM\""; } >&5
47105 ($PKG_CONFIG --exists --print-errors "p11-kit-1 >= $P11_KIT_MINIMUM") 2>&5
47107 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
47108 test $ac_status = 0; }; then
47109 pkg_cv_P11_KIT_CFLAGS=`$PKG_CONFIG --cflags "p11-kit-1 >= $P11_KIT_MINIMUM" 2>/dev/null`
47117 if test -n "$PKG_CONFIG"; then
47118 if test -n "$P11_KIT_LIBS"; then
47119 pkg_cv_P11_KIT_LIBS="$P11_KIT_LIBS"
47121 if test -n "$PKG_CONFIG" && \
47122 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"p11-kit-1 >= \$P11_KIT_MINIMUM\""; } >&5
47123 ($PKG_CONFIG --exists --print-errors "p11-kit-1 >= $P11_KIT_MINIMUM") 2>&5
47125 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
47126 test $ac_status = 0; }; then
47127 pkg_cv_P11_KIT_LIBS=`$PKG_CONFIG --libs "p11-kit-1 >= $P11_KIT_MINIMUM" 2>/dev/null`
47138 if test $pkg_failed = yes; then
47140 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
47141 _pkg_short_errors_supported=yes
47143 _pkg_short_errors_supported=no
47145 if test $_pkg_short_errors_supported = yes; then
47146 P11_KIT_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "p11-kit-1 >= $P11_KIT_MINIMUM"`
47148 P11_KIT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "p11-kit-1 >= $P11_KIT_MINIMUM"`
47150 # Put the nasty error message in config.log where it belongs
47151 echo "$P11_KIT_PKG_ERRORS" >&5
47153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
47154 $as_echo "no" >&6; }
47156 elif test $pkg_failed = untried; then
47159 P11_KIT_CFLAGS=$pkg_cv_P11_KIT_CFLAGS
47160 P11_KIT_LIBS=$pkg_cv_P11_KIT_LIBS
47161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
47162 $as_echo "yes" >&6; }
47165 if test "$with_p11_kit" != "no";then
47167 $as_echo "#define ENABLE_PKCS11 1" >>confdefs.h
47169 if test "x$GNUTLS_REQUIRES_PRIVATE" = "x"; then
47170 GNUTLS_REQUIRES_PRIVATE="Requires.private: p11-kit-1"
47172 GNUTLS_REQUIRES_PRIVATE="${GNUTLS_REQUIRES_PRIVATE}, p11-kit-1"
47174 if ! $PKG_CONFIG --atleast-version=0.22.0 p11-kit-1; then
47175 with_buggy_p11_kit=yes
47177 if $PKG_CONFIG --atleast-version=0.23.1 p11-kit-1; then
47179 $as_echo "#define P11_KIT_HAS_PIN_VALUE 1" >>confdefs.h
47184 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
47186 *** p11-kit >= $P11_KIT_MINIMUM was not found. PKCS #11 support will be disabled.
47187 *** You may get it from http://p11-glue.freedesktop.org/p11-kit.html
47189 $as_echo "$as_me: WARNING:
47191 *** p11-kit >= $P11_KIT_MINIMUM was not found. PKCS #11 support will be disabled.
47192 *** You may get it from http://p11-glue.freedesktop.org/p11-kit.html
47197 if test "$with_p11_kit" != "no"; then
47198 ENABLE_PKCS11_TRUE=
47199 ENABLE_PKCS11_FALSE='#'
47201 ENABLE_PKCS11_TRUE='#'
47202 ENABLE_PKCS11_FALSE=
47205 if test "$with_buggy_p11_kit" = "yes"; then
47206 HAVE_BUGGY_P11_KIT_TRUE=
47207 HAVE_BUGGY_P11_KIT_FALSE='#'
47209 HAVE_BUGGY_P11_KIT_TRUE='#'
47210 HAVE_BUGGY_P11_KIT_FALSE=
47215 # Check whether --with-tpm was given.
47216 if test "${with_tpm+set}" = set; then :
47217 withval=$with_tpm; with_tpm=$withval
47222 if test "$with_tpm" != "no"; then
47223 LIBS="$oldlibs -ltspi"
47224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tss library" >&5
47225 $as_echo_n "checking for tss library... " >&6; }
47226 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
47227 /* end confdefs.h. */
47229 #include <trousers/tss.h>
47230 #include <trousers/trousers.h>
47235 int err = Tspi_Context_Create((void *)0);
47236 Trspi_Error_String(err);
47241 if ac_fn_c_try_link "$LINENO"; then :
47242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
47243 $as_echo "yes" >&6; }
47248 $as_echo "#define HAVE_TROUSERS 1" >>confdefs.h
47252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
47253 $as_echo "no" >&6; }
47254 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
47256 *** trousers was not found. TPM support will be disabled.
47258 $as_echo "$as_me: WARNING:
47260 *** trousers was not found. TPM support will be disabled.
47264 rm -f core conftest.err conftest.$ac_objext \
47265 conftest$ac_exeext conftest.$ac_ext
47269 if test "$with_tpm" != "no"; then
47270 ENABLE_TROUSERS_TRUE=
47271 ENABLE_TROUSERS_FALSE='#'
47273 ENABLE_TROUSERS_TRUE='#'
47274 ENABLE_TROUSERS_FALSE=
47278 for l in /usr/lib64 /usr/lib /lib64 /lib /usr/lib/x86_64-linux-gnu/; do
47279 if test -f "${l}/libtspi.so.1";then
47280 default_trousers_lib="${l}/libtspi.so.1"
47286 # Check whether --with-trousers-lib was given.
47287 if test "${with_trousers_lib+set}" = set; then :
47288 withval=$with_trousers_lib; ac_trousers_lib=$withval
47290 ac_trousers_lib=$default_trousers_lib
47294 if test "$with_tpm" != "no" && test -z "$ac_trousers_lib"; then
47297 *** unable to find trousers library, please specify with --with-trousers-lib=<lib file>
47303 cat >>confdefs.h <<_ACEOF
47304 #define TROUSERS_LIB "$ac_trousers_lib"
47311 ac_header_dirent=no
47312 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
47313 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
47314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
47315 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
47316 if eval \${$as_ac_Header+:} false; then :
47317 $as_echo_n "(cached) " >&6
47319 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
47320 /* end confdefs.h. */
47321 #include <sys/types.h>
47333 if ac_fn_c_try_compile "$LINENO"; then :
47334 eval "$as_ac_Header=yes"
47336 eval "$as_ac_Header=no"
47338 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
47340 eval ac_res=\$$as_ac_Header
47341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
47342 $as_echo "$ac_res" >&6; }
47343 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
47344 cat >>confdefs.h <<_ACEOF
47345 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
47348 ac_header_dirent=$ac_hdr; break
47352 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
47353 if test $ac_header_dirent = dirent.h; then
47354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
47355 $as_echo_n "checking for library containing opendir... " >&6; }
47356 if ${ac_cv_search_opendir+:} false; then :
47357 $as_echo_n "(cached) " >&6
47359 ac_func_search_save_LIBS=$LIBS
47360 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
47361 /* end confdefs.h. */
47363 /* Override any GCC internal prototype to avoid an error.
47364 Use char because int might match the return type of a GCC
47365 builtin and then its argument prototype would still apply. */
47378 for ac_lib in '' dir; do
47379 if test -z "$ac_lib"; then
47380 ac_res="none required"
47383 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
47385 if ac_fn_c_try_link "$LINENO"; then :
47386 ac_cv_search_opendir=$ac_res
47388 rm -f core conftest.err conftest.$ac_objext \
47390 if ${ac_cv_search_opendir+:} false; then :
47394 if ${ac_cv_search_opendir+:} false; then :
47397 ac_cv_search_opendir=no
47399 rm conftest.$ac_ext
47400 LIBS=$ac_func_search_save_LIBS
47402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
47403 $as_echo "$ac_cv_search_opendir" >&6; }
47404 ac_res=$ac_cv_search_opendir
47405 if test "$ac_res" != no; then :
47406 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
47411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
47412 $as_echo_n "checking for library containing opendir... " >&6; }
47413 if ${ac_cv_search_opendir+:} false; then :
47414 $as_echo_n "(cached) " >&6
47416 ac_func_search_save_LIBS=$LIBS
47417 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
47418 /* end confdefs.h. */
47420 /* Override any GCC internal prototype to avoid an error.
47421 Use char because int might match the return type of a GCC
47422 builtin and then its argument prototype would still apply. */
47435 for ac_lib in '' x; do
47436 if test -z "$ac_lib"; then
47437 ac_res="none required"
47440 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
47442 if ac_fn_c_try_link "$LINENO"; then :
47443 ac_cv_search_opendir=$ac_res
47445 rm -f core conftest.err conftest.$ac_objext \
47447 if ${ac_cv_search_opendir+:} false; then :
47451 if ${ac_cv_search_opendir+:} false; then :
47454 ac_cv_search_opendir=no
47456 rm conftest.$ac_ext
47457 LIBS=$ac_func_search_save_LIBS
47459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
47460 $as_echo "$ac_cv_search_opendir" >&6; }
47461 ac_res=$ac_cv_search_opendir
47462 if test "$ac_res" != no; then :
47463 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
47470 # =================
47472 # =================
47474 sys/mman.h sys/param.h sys/poll.h sys/procset.h \
47475 sys/select.h sys/socket.h sys/stropts.h sys/time.h \
47476 sys/un.h sys/wait.h dlfcn.h errno.h \
47477 fcntl.h libgen.h libintl.h memory.h \
47478 netinet/in.h setjmp.h stdbool.h sysexits.h \
47481 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
47482 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
47483 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
47484 cat >>confdefs.h <<_ACEOF
47485 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
47493 for ac_header in stdarg.h varargs.h
47495 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
47496 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
47497 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
47498 cat >>confdefs.h <<_ACEOF
47499 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
47501 lo_have_arg_hdr=true;break
47503 lo_have_arg_hdr=false
47509 for ac_header in string.h strings.h
47511 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
47512 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
47513 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
47514 cat >>confdefs.h <<_ACEOF
47515 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
47517 lo_have_str_hdr=true;break
47519 lo_have_str_hdr=false
47525 for ac_header in limits.h sys/limits.h values.h
47527 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
47528 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
47529 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
47530 cat >>confdefs.h <<_ACEOF
47531 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
47533 lo_have_lim_hdr=true;break
47535 lo_have_lim_hdr=false
47541 for ac_header in inttypes.h stdint.h
47543 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
47544 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
47545 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
47546 cat >>confdefs.h <<_ACEOF
47547 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
47549 lo_have_typ_hdr=true;break
47551 lo_have_typ_hdr=false
47557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working stdnoreturn.h" >&5
47558 $as_echo_n "checking for working stdnoreturn.h... " >&6; }
47559 if ${gl_cv_header_working_stdnoreturn_h+:} false; then :
47560 $as_echo_n "(cached) " >&6
47562 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
47563 /* end confdefs.h. */
47564 #include <stdlib.h>
47565 #include <stdnoreturn.h>
47566 /* Do not check for 'noreturn' after the return type.
47567 C11 allows it, but it's rarely done that way
47568 and circa-2012 bleeding-edge GCC rejects it when given
47569 -Werror=old-style-declaration. */
47570 noreturn void foo1 (void) { exit (0); }
47571 _Noreturn void foo2 (void) { exit (0); }
47572 int testit (int argc, char **argv) {
47575 (argv[0][0] ? foo1 : foo2) ();
47586 if ac_fn_c_try_compile "$LINENO"; then :
47587 gl_cv_header_working_stdnoreturn_h=yes
47589 gl_cv_header_working_stdnoreturn_h=no
47591 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
47593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_stdnoreturn_h" >&5
47594 $as_echo "$gl_cv_header_working_stdnoreturn_h" >&6; }
47596 if test $gl_cv_header_working_stdnoreturn_h = yes; then
47599 STDNORETURN_H='stdnoreturn.h'
47603 if test -n "$STDNORETURN_H"; then
47604 GL_GENERATE_STDNORETURN_H_TRUE=
47605 GL_GENERATE_STDNORETURN_H_FALSE='#'
47607 GL_GENERATE_STDNORETURN_H_TRUE='#'
47608 GL_GENERATE_STDNORETURN_H_FALSE=
47613 # ----------------------------------------------------------------------
47614 # check for various programs used during the build.
47615 # On OS/X, "wchar.h" needs "runetype.h" to work properly.
47616 # ----------------------------------------------------------------------
47617 for ac_header in runetype.h wchar.h
47619 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
47620 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "
47621 $ac_includes_default
47622 #if HAVE_RUNETYPE_H
47623 # include <runetype.h>
47627 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
47628 cat >>confdefs.h <<_ACEOF
47629 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
47637 # Check whether --enable-nls was given.
47638 if test "${enable_nls+set}" = set; then :
47639 enableval=$enable_nls;
47642 if test "x$enable_nls" != "xno" && \
47643 test "X${ac_cv_header_libintl_h}" = Xyes; then :
47646 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
47650 # --------------------------------------------
47651 # Verify certain entries from AC_CHECK_HEADERS
47652 # --------------------------------------------
47653 ${lo_have_arg_hdr} || \
47654 as_fn_error $? "you must have stdarg.h or varargs.h on your system" "$LINENO" 5
47656 ${lo_have_str_hdr} || \
47657 as_fn_error $? "you must have string.h or strings.h on your system" "$LINENO" 5
47659 ${lo_have_lim_hdr} || \
47660 as_fn_error $? "you must have one of limits.h, sys/limits.h or values.h" "$LINENO" 5
47662 ${lo_have_typ_hdr} || \
47663 as_fn_error $? "you must have inttypes.h or stdint.h on your system" "$LINENO" 5
47665 for f in sys_types sys_param sys_stat string errno stdlib memory setjmp
47666 do eval as_ac_var=\${ac_cv_header_${f}_h}
47667 test "X${as_ac_var}" = Xyes || {
47668 as_fn_error $? "you must have ${f}.h on your system" "$LINENO" 5
47671 test "X${ac_cv_header_inttypes_h-no}" = Xyes || \
47672 echo '#include <stdint.h>' > inttypes.h
47674 # ----------------------------------------------------------------------
47675 # Checks for typedefs
47676 # ----------------------------------------------------------------------
47677 ac_fn_c_check_type "$LINENO" "wchar_t" "ac_cv_type_wchar_t" "$ac_includes_default"
47678 if test "x$ac_cv_type_wchar_t" = xyes; then :
47680 cat >>confdefs.h <<_ACEOF
47681 #define HAVE_WCHAR_T 1
47687 ac_fn_c_check_type "$LINENO" "wint_t" "ac_cv_type_wint_t" "
47688 $ac_includes_default
47689 #if HAVE_RUNETYPE_H
47690 # include <runetype.h>
47693 # include <wchar.h>
47697 if test "x$ac_cv_type_wint_t" = xyes; then :
47699 cat >>confdefs.h <<_ACEOF
47700 #define HAVE_WINT_T 1
47706 ac_fn_c_check_type "$LINENO" "int8_t" "ac_cv_type_int8_t" "$ac_includes_default"
47707 if test "x$ac_cv_type_int8_t" = xyes; then :
47709 cat >>confdefs.h <<_ACEOF
47710 #define HAVE_INT8_T 1
47715 ac_fn_c_check_type "$LINENO" "uint8_t" "ac_cv_type_uint8_t" "$ac_includes_default"
47716 if test "x$ac_cv_type_uint8_t" = xyes; then :
47718 cat >>confdefs.h <<_ACEOF
47719 #define HAVE_UINT8_T 1
47724 ac_fn_c_check_type "$LINENO" "int16_t" "ac_cv_type_int16_t" "$ac_includes_default"
47725 if test "x$ac_cv_type_int16_t" = xyes; then :
47727 cat >>confdefs.h <<_ACEOF
47728 #define HAVE_INT16_T 1
47733 ac_fn_c_check_type "$LINENO" "uint16_t" "ac_cv_type_uint16_t" "$ac_includes_default"
47734 if test "x$ac_cv_type_uint16_t" = xyes; then :
47736 cat >>confdefs.h <<_ACEOF
47737 #define HAVE_UINT16_T 1
47742 ac_fn_c_check_type "$LINENO" "int32_t" "ac_cv_type_int32_t" "$ac_includes_default"
47743 if test "x$ac_cv_type_int32_t" = xyes; then :
47745 cat >>confdefs.h <<_ACEOF
47746 #define HAVE_INT32_T 1
47751 ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "$ac_includes_default"
47752 if test "x$ac_cv_type_uint32_t" = xyes; then :
47754 cat >>confdefs.h <<_ACEOF
47755 #define HAVE_UINT32_T 1
47760 ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
47761 if test "x$ac_cv_type_intptr_t" = xyes; then :
47763 cat >>confdefs.h <<_ACEOF
47764 #define HAVE_INTPTR_T 1
47769 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
47770 if test "x$ac_cv_type_uintptr_t" = xyes; then :
47772 cat >>confdefs.h <<_ACEOF
47773 #define HAVE_UINTPTR_T 1
47778 ac_fn_c_check_type "$LINENO" "uint_t" "ac_cv_type_uint_t" "$ac_includes_default"
47779 if test "x$ac_cv_type_uint_t" = xyes; then :
47781 cat >>confdefs.h <<_ACEOF
47782 #define HAVE_UINT_T 1
47787 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
47788 if test "x$ac_cv_type_pid_t" = xyes; then :
47790 cat >>confdefs.h <<_ACEOF
47791 #define HAVE_PID_T 1
47796 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
47797 if test "x$ac_cv_type_size_t" = xyes; then :
47799 cat >>confdefs.h <<_ACEOF
47800 #define HAVE_SIZE_T 1
47805 ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
47806 if test "x$ac_cv_type_ptrdiff_t" = xyes; then :
47808 cat >>confdefs.h <<_ACEOF
47809 #define HAVE_PTRDIFF_T 1
47815 # The cast to long int works around a bug in the HP C Compiler
47816 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
47817 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
47818 # This bug is HP SR number 8606223364.
47819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of char *" >&5
47820 $as_echo_n "checking size of char *... " >&6; }
47821 if ${ac_cv_sizeof_char_p+:} false; then :
47822 $as_echo_n "(cached) " >&6
47824 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (char *))" "ac_cv_sizeof_char_p" "$ac_includes_default"; then :
47827 if test "$ac_cv_type_char_p" = yes; then
47828 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
47829 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
47830 as_fn_error 77 "cannot compute sizeof (char *)
47831 See \`config.log' for more details" "$LINENO" 5; }
47833 ac_cv_sizeof_char_p=0
47838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_char_p" >&5
47839 $as_echo "$ac_cv_sizeof_char_p" >&6; }
47843 cat >>confdefs.h <<_ACEOF
47844 #define SIZEOF_CHAR_P $ac_cv_sizeof_char_p
47848 # The cast to long int works around a bug in the HP C Compiler
47849 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
47850 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
47851 # This bug is HP SR number 8606223364.
47852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
47853 $as_echo_n "checking size of int... " >&6; }
47854 if ${ac_cv_sizeof_int+:} false; then :
47855 $as_echo_n "(cached) " >&6
47857 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
47860 if test "$ac_cv_type_int" = yes; then
47861 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
47862 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
47863 as_fn_error 77 "cannot compute sizeof (int)
47864 See \`config.log' for more details" "$LINENO" 5; }
47871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
47872 $as_echo "$ac_cv_sizeof_int" >&6; }
47876 cat >>confdefs.h <<_ACEOF
47877 #define SIZEOF_INT $ac_cv_sizeof_int
47881 # The cast to long int works around a bug in the HP C Compiler
47882 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
47883 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
47884 # This bug is HP SR number 8606223364.
47885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
47886 $as_echo_n "checking size of long... " >&6; }
47887 if ${ac_cv_sizeof_long+:} false; then :
47888 $as_echo_n "(cached) " >&6
47890 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
47893 if test "$ac_cv_type_long" = yes; then
47894 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
47895 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
47896 as_fn_error 77 "cannot compute sizeof (long)
47897 See \`config.log' for more details" "$LINENO" 5; }
47899 ac_cv_sizeof_long=0
47904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
47905 $as_echo "$ac_cv_sizeof_long" >&6; }
47909 cat >>confdefs.h <<_ACEOF
47910 #define SIZEOF_LONG $ac_cv_sizeof_long
47914 # The cast to long int works around a bug in the HP C Compiler
47915 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
47916 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
47917 # This bug is HP SR number 8606223364.
47918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
47919 $as_echo_n "checking size of short... " >&6; }
47920 if ${ac_cv_sizeof_short+:} false; then :
47921 $as_echo_n "(cached) " >&6
47923 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
47926 if test "$ac_cv_type_short" = yes; then
47927 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
47928 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
47929 as_fn_error 77 "cannot compute sizeof (short)
47930 See \`config.log' for more details" "$LINENO" 5; }
47932 ac_cv_sizeof_short=0
47937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
47938 $as_echo "$ac_cv_sizeof_short" >&6; }
47942 cat >>confdefs.h <<_ACEOF
47943 #define SIZEOF_SHORT $ac_cv_sizeof_short
47951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pathfind in -lgen" >&5
47952 $as_echo_n "checking for pathfind in -lgen... " >&6; }
47953 if ${ac_cv_lib_gen_pathfind+:} false; then :
47954 $as_echo_n "(cached) " >&6
47956 ac_check_lib_save_LIBS=$LIBS
47958 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
47959 /* end confdefs.h. */
47961 /* Override any GCC internal prototype to avoid an error.
47962 Use char because int might match the return type of a GCC
47963 builtin and then its argument prototype would still apply. */
47971 return pathfind ();
47976 if ac_fn_c_try_link "$LINENO"; then :
47977 ac_cv_lib_gen_pathfind=yes
47979 ac_cv_lib_gen_pathfind=no
47981 rm -f core conftest.err conftest.$ac_objext \
47982 conftest$ac_exeext conftest.$ac_ext
47983 LIBS=$ac_check_lib_save_LIBS
47985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gen_pathfind" >&5
47986 $as_echo "$ac_cv_lib_gen_pathfind" >&6; }
47987 if test "x$ac_cv_lib_gen_pathfind" = xyes; then :
47988 cat >>confdefs.h <<_ACEOF
47989 #define HAVE_LIBGEN 1
47996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gettext in -lintl" >&5
47997 $as_echo_n "checking for gettext in -lintl... " >&6; }
47998 if ${ac_cv_lib_intl_gettext+:} false; then :
47999 $as_echo_n "(cached) " >&6
48001 ac_check_lib_save_LIBS=$LIBS
48002 LIBS="-lintl $LIBS"
48003 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
48004 /* end confdefs.h. */
48006 /* Override any GCC internal prototype to avoid an error.
48007 Use char because int might match the return type of a GCC
48008 builtin and then its argument prototype would still apply. */
48021 if ac_fn_c_try_link "$LINENO"; then :
48022 ac_cv_lib_intl_gettext=yes
48024 ac_cv_lib_intl_gettext=no
48026 rm -f core conftest.err conftest.$ac_objext \
48027 conftest$ac_exeext conftest.$ac_ext
48028 LIBS=$ac_check_lib_save_LIBS
48030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_gettext" >&5
48031 $as_echo "$ac_cv_lib_intl_gettext" >&6; }
48032 if test "x$ac_cv_lib_intl_gettext" = xyes; then :
48033 cat >>confdefs.h <<_ACEOF
48034 #define HAVE_LIBINTL 1
48037 LIBS="-lintl $LIBS"
48041 for ac_func in vprintf
48043 ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
48044 if test "x$ac_cv_func_vprintf" = xyes; then :
48045 cat >>confdefs.h <<_ACEOF
48046 #define HAVE_VPRINTF 1
48049 ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
48050 if test "x$ac_cv_func__doprnt" = xyes; then :
48052 $as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
48060 for ac_header in vfork.h
48062 ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
48063 if test "x$ac_cv_header_vfork_h" = xyes; then :
48064 cat >>confdefs.h <<_ACEOF
48065 #define HAVE_VFORK_H 1
48072 for ac_func in fork vfork
48074 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
48075 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
48076 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
48077 cat >>confdefs.h <<_ACEOF
48078 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
48084 if test "x$ac_cv_func_fork" = xyes; then
48085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
48086 $as_echo_n "checking for working fork... " >&6; }
48087 if ${ac_cv_func_fork_works+:} false; then :
48088 $as_echo_n "(cached) " >&6
48090 if test "$cross_compiling" = yes; then :
48091 ac_cv_func_fork_works=cross
48093 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
48094 /* end confdefs.h. */
48095 $ac_includes_default
48100 /* By Ruediger Kuhlmann. */
48101 return fork () < 0;
48107 if ac_fn_c_try_run "$LINENO"; then :
48108 ac_cv_func_fork_works=yes
48110 ac_cv_func_fork_works=no
48112 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
48113 conftest.$ac_objext conftest.beam conftest.$ac_ext
48117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
48118 $as_echo "$ac_cv_func_fork_works" >&6; }
48121 ac_cv_func_fork_works=$ac_cv_func_fork
48123 if test "x$ac_cv_func_fork_works" = xcross; then
48125 *-*-amigaos* | *-*-msdosdjgpp*)
48126 # Override, as these systems have only a dummy fork() stub
48127 ac_cv_func_fork_works=no
48130 ac_cv_func_fork_works=yes
48133 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
48134 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
48136 ac_cv_func_vfork_works=$ac_cv_func_vfork
48137 if test "x$ac_cv_func_vfork" = xyes; then
48138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
48139 $as_echo_n "checking for working vfork... " >&6; }
48140 if ${ac_cv_func_vfork_works+:} false; then :
48141 $as_echo_n "(cached) " >&6
48143 if test "$cross_compiling" = yes; then :
48144 ac_cv_func_vfork_works=cross
48146 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
48147 /* end confdefs.h. */
48148 /* Thanks to Paul Eggert for this test. */
48149 $ac_includes_default
48150 #include <sys/wait.h>
48151 #ifdef HAVE_VFORK_H
48152 # include <vfork.h>
48154 /* On some sparc systems, changes by the child to local and incoming
48155 argument registers are propagated back to the parent. The compiler
48156 is told about this with #include <vfork.h>, but some compilers
48157 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
48158 static variable whose address is put into a register that is
48159 clobbered by the vfork. */
48162 sparc_address_test (int arg)
48164 sparc_address_test (arg) int arg;
48167 static pid_t child;
48185 pid_t parent = getpid ();
48188 sparc_address_test (0);
48193 /* Here is another test for sparc vfork register problems. This
48194 test uses lots of local variables, at least as many local
48195 variables as main has allocated so far including compiler
48196 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
48197 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
48198 reuse the register of parent for one of the local variables,
48199 since it will think that parent can't possibly be used any more
48200 in this routine. Assigning to the local variable will thus
48201 munge parent in the parent process. */
48203 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
48204 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
48205 /* Convince the compiler that p..p7 are live; otherwise, it might
48206 use the same hardware register for all 8 local variables. */
48207 if (p != p1 || p != p2 || p != p3 || p != p4
48208 || p != p5 || p != p6 || p != p7)
48211 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
48212 from child file descriptors. If the child closes a descriptor
48213 before it execs or exits, this munges the parent's descriptor
48214 as well. Test for this by closing stdout in the child. */
48215 _exit(close(fileno(stdout)) != 0);
48220 while (wait(&status) != child)
48223 /* Was there some problem with vforking? */
48226 /* Did the child fail? (This shouldn't happen.) */
48229 /* Did the vfork/compiler bug occur? */
48230 || parent != getpid()
48232 /* Did the file descriptor bug occur? */
48233 || fstat(fileno(stdout), &st) != 0
48238 if ac_fn_c_try_run "$LINENO"; then :
48239 ac_cv_func_vfork_works=yes
48241 ac_cv_func_vfork_works=no
48243 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
48244 conftest.$ac_objext conftest.beam conftest.$ac_ext
48248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
48249 $as_echo "$ac_cv_func_vfork_works" >&6; }
48252 if test "x$ac_cv_func_fork_works" = xcross; then
48253 ac_cv_func_vfork_works=$ac_cv_func_vfork
48254 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
48255 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
48258 if test "x$ac_cv_func_vfork_works" = xyes; then
48260 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
48264 $as_echo "#define vfork fork" >>confdefs.h
48267 if test "x$ac_cv_func_fork_works" = xyes; then
48269 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
48273 for ac_func in mmap canonicalize_file_name snprintf strdup strchr \
48274 strrchr strsignal fchmod fstat chmod
48276 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
48277 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
48278 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
48279 cat >>confdefs.h <<_ACEOF
48280 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
48286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
48287 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
48288 if ${ac_cv_path_SED+:} false; then :
48289 $as_echo_n "(cached) " >&6
48291 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
48292 for ac_i in 1 2 3 4 5 6 7; do
48293 ac_script="$ac_script$as_nl$ac_script"
48295 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
48296 { ac_script=; unset ac_script;}
48297 if test -z "$SED"; then
48298 ac_path_SED_found=false
48299 # Loop through the user's path and test for each of PROGNAME-LIST
48300 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
48301 for as_dir in $PATH
48304 test -z "$as_dir" && as_dir=.
48305 for ac_prog in sed gsed; do
48306 for ac_exec_ext in '' $ac_executable_extensions; do
48307 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
48308 as_fn_executable_p "$ac_path_SED" || continue
48309 # Check for GNU ac_path_SED and select it if it is found.
48310 # Check for GNU $ac_path_SED
48311 case `"$ac_path_SED" --version 2>&1` in
48313 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
48316 $as_echo_n 0123456789 >"conftest.in"
48319 cat "conftest.in" "conftest.in" >"conftest.tmp"
48320 mv "conftest.tmp" "conftest.in"
48321 cp "conftest.in" "conftest.nl"
48322 $as_echo '' >> "conftest.nl"
48323 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
48324 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
48325 as_fn_arith $ac_count + 1 && ac_count=$as_val
48326 if test $ac_count -gt ${ac_path_SED_max-0}; then
48327 # Best one so far, save it but keep looking for a better one
48328 ac_cv_path_SED="$ac_path_SED"
48329 ac_path_SED_max=$ac_count
48331 # 10*(2^10) chars as input seems more than enough
48332 test $ac_count -gt 10 && break
48334 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
48337 $ac_path_SED_found && break 3
48342 if test -z "$ac_cv_path_SED"; then
48343 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
48346 ac_cv_path_SED=$SED
48350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
48351 $as_echo "$ac_cv_path_SED" >&6; }
48352 SED="$ac_cv_path_SED"
48357 POSIX_SHELL=`which bash`
48358 test -x "$POSIX_SHELL" && break
48359 POSIX_SHELL=`which dash`
48360 test -x "$POSIX_SHELL" && break
48361 POSIX_SHELL=/usr/xpg4/bin/sh
48362 test -x "$POSIX_SHELL" && break
48363 POSIX_SHELL=`/bin/sh -c '
48365 if ! true ; then exit 1 ; fi
48367 test -x "$POSIX_SHELL" && break
48368 as_fn_error $? "cannot locate a working POSIX shell" "$LINENO" 5
48371 cat >>confdefs.h <<_ACEOF
48372 #define POSIX_SHELL "${POSIX_SHELL}"
48379 LIBOPTS_BUILD_BLOCKED=''
48382 NEED_LIBOPTS_DIR=''
48384 # Check whether --enable-local-libopts was given.
48385 if test "${enable_local_libopts+set}" = set; then :
48386 enableval=$enable_local_libopts;
48387 if test x$enableval = xyes ; then
48388 { $as_echo "$as_me:${as_lineno-$LINENO}: Using supplied libopts tearoff" >&5
48389 $as_echo "$as_me: Using supplied libopts tearoff" >&6;}
48390 LIBOPTS_CFLAGS='-I$(top_srcdir)/src/libopts'
48391 NEED_LIBOPTS_DIR=true
48392 LIBOPTS_LDADD='$(top_builddir)/src/libopts/libopts.la'
48397 # Check whether --enable-libopts-install was given.
48398 if test "${enable_libopts_install+set}" = set; then :
48399 enableval=$enable_libopts_install;
48402 if test "X${enable_libopts_install}" = Xyes; then
48403 INSTALL_LIBOPTS_TRUE=
48404 INSTALL_LIBOPTS_FALSE='#'
48406 INSTALL_LIBOPTS_TRUE='#'
48407 INSTALL_LIBOPTS_FALSE=
48411 if test -z "${NEED_LIBOPTS_DIR}" ; then
48412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether autoopts-config can be found" >&5
48413 $as_echo_n "checking whether autoopts-config can be found... " >&6; }
48415 # Check whether --with-autoopts-config was given.
48416 if test "${with_autoopts_config+set}" = set; then :
48417 withval=$with_autoopts_config; lo_cv_with_autoopts_config=${with_autoopts_config}
48419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether autoopts-config is specified" >&5
48420 $as_echo_n "checking whether autoopts-config is specified... " >&6; }
48421 if ${lo_cv_with_autoopts_config+:} false; then :
48422 $as_echo_n "(cached) " >&6
48424 if autoopts-config --help 2>/dev/null 1>&2
48425 then lo_cv_with_autoopts_config=autoopts-config
48426 elif libopts-config --help 2>/dev/null 1>&2
48427 then lo_cv_with_autoopts_config=libopts-config
48428 else lo_cv_with_autoopts_config=no ; fi
48430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lo_cv_with_autoopts_config" >&5
48431 $as_echo "$lo_cv_with_autoopts_config" >&6; }
48434 # end of AC_ARG_WITH
48436 if ${lo_cv_test_autoopts+:} false; then :
48437 $as_echo_n "(cached) " >&6
48440 if test -z "${lo_cv_with_autoopts_config}" \
48441 -o X"${lo_cv_with_autoopts_config}" = Xno
48443 if autoopts-config --help 2>/dev/null 1>&2
48444 then lo_cv_with_autoopts_config=autoopts-config
48445 elif libopts-config --help 2>/dev/null 1>&2
48446 then lo_cv_with_autoopts_config=libopts-config
48447 else lo_cv_with_autoopts_config=false ; fi
48449 lo_cv_test_autoopts=`
48450 ${lo_cv_with_autoopts_config} --libs` 2> /dev/null
48451 if test $? -ne 0 -o -z "${lo_cv_test_autoopts}"
48452 then lo_cv_test_autoopts=no ; fi
48456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lo_cv_test_autoopts}" >&5
48457 $as_echo "${lo_cv_test_autoopts}" >&6; }
48459 if test "X${lo_cv_test_autoopts}" != Xno
48461 LIBOPTS_LDADD="${lo_cv_test_autoopts}"
48462 LIBOPTS_CFLAGS="`${lo_cv_with_autoopts_config} --cflags`"
48464 LIBOPTS_LDADD='$(top_builddir)/src/libopts/libopts.la'
48465 LIBOPTS_CFLAGS='-I$(top_srcdir)/src/libopts'
48466 NEED_LIBOPTS_DIR=true
48468 fi # end of if test -z "${NEED_LIBOPTS_DIR}"
48469 if test -n "${LIBOPTS_BUILD_BLOCKED}" ; then
48470 NEED_LIBOPTS_DIR=''
48472 if test -n "${NEED_LIBOPTS_DIR}"; then
48474 NEED_LIBOPTS_FALSE='#'
48476 NEED_LIBOPTS_TRUE='#'
48477 NEED_LIBOPTS_FALSE=
48482 LIBOPTS_DIR=src/libopts
48485 # end of AC_DEFUN of LIBOPTS_CHECK_COMMON
48488 if test -z "$NEED_LIBOPTS_TRUE"; then :
48492 # Check to see if a reg expr header is specified.
48495 # Check whether --with-regex-header was given.
48496 if test "${with_regex_header+set}" = set; then :
48497 withval=$with_regex_header; libopts_cv_with_regex_header=${with_regex_header}
48499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a reg expr header is specified" >&5
48500 $as_echo_n "checking whether a reg expr header is specified... " >&6; }
48501 if ${libopts_cv_with_regex_header+:} false; then :
48502 $as_echo_n "(cached) " >&6
48504 libopts_cv_with_regex_header=no
48506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libopts_cv_with_regex_header" >&5
48507 $as_echo "$libopts_cv_with_regex_header" >&6; }
48510 # end of AC_ARG_WITH
48511 if test "X${libopts_cv_with_regex_header}" != Xno
48513 cat >>confdefs.h <<_ACEOF
48514 #define REGEX_HEADER <${libopts_cv_with_regex_header}>
48519 $as_echo "#define REGEX_HEADER <regex.h>" >>confdefs.h
48525 # Check to see if a working libregex can be found.
48528 # Check whether --with-libregex was given.
48529 if test "${with_libregex+set}" = set; then :
48530 withval=$with_libregex; libopts_cv_with_libregex_root=${with_libregex}
48532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether with-libregex was specified" >&5
48533 $as_echo_n "checking whether with-libregex was specified... " >&6; }
48534 if ${libopts_cv_with_libregex_root+:} false; then :
48535 $as_echo_n "(cached) " >&6
48537 libopts_cv_with_libregex_root=no
48539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libopts_cv_with_libregex_root" >&5
48540 $as_echo "$libopts_cv_with_libregex_root" >&6; }
48543 # end of AC_ARG_WITH libregex
48545 if test "${with_libregex+set}" = set && \
48546 test "X${withval}" = Xno
48547 then ## disabled by request
48548 libopts_cv_with_libregex_root=no
48549 libopts_cv_with_libregex_cflags=no
48550 libopts_cv_with_libregex_libs=no
48554 # Check whether --with-libregex-cflags was given.
48555 if test "${with_libregex_cflags+set}" = set; then :
48556 withval=$with_libregex_cflags; libopts_cv_with_libregex_cflags=${with_libregex_cflags}
48558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether with-libregex-cflags was specified" >&5
48559 $as_echo_n "checking whether with-libregex-cflags was specified... " >&6; }
48560 if ${libopts_cv_with_libregex_cflags+:} false; then :
48561 $as_echo_n "(cached) " >&6
48563 libopts_cv_with_libregex_cflags=no
48565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libopts_cv_with_libregex_cflags" >&5
48566 $as_echo "$libopts_cv_with_libregex_cflags" >&6; }
48569 # end of AC_ARG_WITH libregex-cflags
48572 # Check whether --with-libregex-libs was given.
48573 if test "${with_libregex_libs+set}" = set; then :
48574 withval=$with_libregex_libs; libopts_cv_with_libregex_libs=${with_libregex_libs}
48576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether with-libregex-libs was specified" >&5
48577 $as_echo_n "checking whether with-libregex-libs was specified... " >&6; }
48578 if ${libopts_cv_with_libregex_libs+:} false; then :
48579 $as_echo_n "(cached) " >&6
48581 libopts_cv_with_libregex_libs=no
48583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libopts_cv_with_libregex_libs" >&5
48584 $as_echo "$libopts_cv_with_libregex_libs" >&6; }
48587 # end of AC_ARG_WITH libregex-libs
48589 case "X${libopts_cv_with_libregex_cflags}" in
48591 case "X${libopts_cv_with_libregex_root}" in
48592 Xyes|Xno|X ) libopts_cv_with_libregex_cflags=no ;;
48593 * ) libopts_cv_with_libregex_cflags=-I${libopts_cv_with_libregex_root}/include ;;
48596 case "X${libopts_cv_with_libregex_libs}" in
48598 case "X${libopts_cv_with_libregex_root}" in
48599 Xyes|Xno|X ) libopts_cv_with_libregex_libs=no ;;
48600 * ) libopts_cv_with_libregex_libs="-L${libopts_cv_with_libregex_root}/lib -lregex" ;;
48603 libopts_save_CPPFLAGS="${CPPFLAGS}"
48604 libopts_save_LIBS="${LIBS}"
48605 case "X${libopts_cv_with_libregex_cflags}" in
48607 libopts_cv_with_libregex_cflags="" ;;
48608 * ) CPPFLAGS="${CPPFLAGS} ${libopts_cv_with_libregex_cflags}" ;;
48610 case "X${libopts_cv_with_libregex_libs}" in
48612 libopts_cv_with_libregex_libs="" ;;
48614 LIBS="${LIBS} ${libopts_cv_with_libregex_libs}" ;;
48618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether libregex functions properly" >&5
48619 $as_echo_n "checking whether libregex functions properly... " >&6; }
48620 if ${libopts_cv_with_libregex+:} false; then :
48621 $as_echo_n "(cached) " >&6
48624 if test "$cross_compiling" = yes; then :
48625 libopts_cv_with_libregex=no
48627 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
48628 /* end confdefs.h. */
48630 #include <stdlib.h>
48631 #include <sys/types.h>
48632 #include REGEX_HEADER
48634 void comp_re(char const * pzPat) {
48635 int res = regcomp( &re, pzPat, REG_EXTENDED|REG_ICASE|REG_NEWLINE );
48636 if (res == 0) return;
48640 comp_re( "^.*\$" );
48641 comp_re( "()|no.*" );
48643 if (regexec( &re, "X", 2, m, 0 ) != 0) return 1;
48644 if ((m[0].rm_so != 0) || (m[0].rm_eo != 1)) {
48645 fputs( "error: regex -->.<-- did not match\n", stderr );
48650 if ac_fn_c_try_run "$LINENO"; then :
48651 libopts_cv_with_libregex=yes
48653 libopts_cv_with_libregex=no
48655 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
48656 conftest.$ac_objext conftest.beam conftest.$ac_ext
48658 # end of AC_RUN_IFELSE
48661 # end of AC_CACHE_VAL for libopts_cv_with_libregex
48662 fi ## disabled by request
48663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${libopts_cv_with_libregex}" >&5
48664 $as_echo "${libopts_cv_with_libregex}" >&6; }
48665 if test "X${libopts_cv_with_libregex}" != Xno
48668 $as_echo "#define WITH_LIBREGEX 1" >>confdefs.h
48671 CPPFLAGS="${libopts_save_CPPFLAGS}"
48672 LIBS="${libopts_save_LIBS}"
48673 libopts_cv_with_libregex_root=no
48674 libopts_cv_with_libregex_cflags=no
48675 libopts_cv_with_libregex_libs=no
48676 libopts_cv_with_libregex=no
48681 # Check to see if pathfind(3) works.
48683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pathfind(3) works" >&5
48684 $as_echo_n "checking whether pathfind(3) works... " >&6; }
48685 if ${libopts_cv_run_pathfind+:} false; then :
48686 $as_echo_n "(cached) " >&6
48689 if test "$cross_compiling" = yes; then :
48690 libopts_cv_run_pathfind=no
48693 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
48694 /* end confdefs.h. */
48695 #include <string.h>
48696 #include <stdlib.h>
48697 int main (int argc, char ** argv) {
48698 char * pz = pathfind( getenv( "PATH" ), "sh", "x" );
48699 return (pz == 0) ? 1 : 0;
48702 if ac_fn_c_try_run "$LINENO"; then :
48703 libopts_cv_run_pathfind=yes
48705 libopts_cv_run_pathfind=no
48707 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
48708 conftest.$ac_objext conftest.beam conftest.$ac_ext
48710 # end of RUN_IFELSE
48713 # end of AC_CACHE_VAL for libopts_cv_run_pathfind
48714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${libopts_cv_run_pathfind}" >&5
48715 $as_echo "${libopts_cv_run_pathfind}" >&6; }
48716 if test "X${libopts_cv_run_pathfind}" != Xno
48719 $as_echo "#define HAVE_PATHFIND 1" >>confdefs.h
48725 # Check to see if /dev/zero is readable device.
48727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether /dev/zero is readable device" >&5
48728 $as_echo_n "checking whether /dev/zero is readable device... " >&6; }
48729 if ${libopts_cv_test_dev_zero+:} false; then :
48730 $as_echo_n "(cached) " >&6
48733 libopts_cv_test_dev_zero=`exec 2> /dev/null
48734 dzero=\`ls -lL /dev/zero | egrep ^c......r\`
48735 test -z "${dzero}" && exit 1
48737 if test $? -ne 0 || test -z "$libopts_cv_test_dev_zero"
48738 then libopts_cv_test_dev_zero=no
48742 # end of CACHE_VAL of libopts_cv_test_dev_zero
48743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${libopts_cv_test_dev_zero}" >&5
48744 $as_echo "${libopts_cv_test_dev_zero}" >&6; }
48745 if test "X${libopts_cv_test_dev_zero}" != Xno
48748 $as_echo "#define HAVE_DEV_ZERO 1" >>confdefs.h
48754 # Check to see if we have a functional realpath(3C).
48756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we have a functional realpath(3C)" >&5
48757 $as_echo_n "checking whether we have a functional realpath(3C)... " >&6; }
48758 if ${libopts_cv_run_realpath+:} false; then :
48759 $as_echo_n "(cached) " >&6
48762 if test "$cross_compiling" = yes; then :
48763 libopts_cv_run_realpath=no
48766 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
48767 /* end confdefs.h. */
48768 #include <limits.h>
48769 #include <stdlib.h>
48770 int main (int argc, char ** argv) {
48774 char zPath[PATH_MAX+1];
48776 char *pz = realpath(argv[0], zPath);
48777 return (pz == zPath) ? 0 : 1;
48780 if ac_fn_c_try_run "$LINENO"; then :
48781 libopts_cv_run_realpath=yes
48783 libopts_cv_run_realpath=no
48785 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
48786 conftest.$ac_objext conftest.beam conftest.$ac_ext
48788 # end of RUN_IFELSE
48791 # end of AC_CACHE_VAL for libopts_cv_run_realpath
48792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${libopts_cv_run_realpath}" >&5
48793 $as_echo "${libopts_cv_run_realpath}" >&6; }
48794 if test "X${libopts_cv_run_realpath}" != Xno
48797 $as_echo "#define HAVE_REALPATH 1" >>confdefs.h
48803 # Check to see if strftime() works.
48805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strftime() works" >&5
48806 $as_echo_n "checking whether strftime() works... " >&6; }
48807 if ${libopts_cv_run_strftime+:} false; then :
48808 $as_echo_n "(cached) " >&6
48811 if test "$cross_compiling" = yes; then :
48812 libopts_cv_run_strftime=no
48815 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
48816 /* end confdefs.h. */
48818 #include <string.h>
48821 static char const z[] = "Thursday Aug 28 240";
48823 tm.tm_sec = 36; /* seconds after the minute [0, 61] */
48824 tm.tm_min = 44; /* minutes after the hour [0, 59] */
48825 tm.tm_hour = 12; /* hour since midnight [0, 23] */
48826 tm.tm_mday = 28; /* day of the month [1, 31] */
48827 tm.tm_mon = 7; /* months since January [0, 11] */
48828 tm.tm_year = 86; /* years since 1900 */
48829 tm.tm_wday = 4; /* days since Sunday [0, 6] */
48830 tm.tm_yday = 239; /* days since January 1 [0, 365] */
48831 tm.tm_isdst = 1; /* flag for daylight savings time */
48832 strftime( t_buf, sizeof( t_buf ), "%A %b %d %j", &tm );
48833 return (strcmp( t_buf, z ) != 0); }
48835 if ac_fn_c_try_run "$LINENO"; then :
48836 libopts_cv_run_strftime=yes
48838 libopts_cv_run_strftime=no
48840 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
48841 conftest.$ac_objext conftest.beam conftest.$ac_ext
48843 # end of RUN_IFELSE
48846 # end of AC_CACHE_VAL for libopts_cv_run_strftime
48847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${libopts_cv_run_strftime}" >&5
48848 $as_echo "${libopts_cv_run_strftime}" >&6; }
48849 if test "X${libopts_cv_run_strftime}" != Xno
48852 $as_echo "#define HAVE_STRFTIME 1" >>confdefs.h
48858 # Check to see if fopen accepts "b" mode.
48860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fopen accepts \"b\" mode" >&5
48861 $as_echo_n "checking whether fopen accepts \"b\" mode... " >&6; }
48862 if ${libopts_cv_run_fopen_binary+:} false; then :
48863 $as_echo_n "(cached) " >&6
48866 if test "$cross_compiling" = yes; then :
48867 libopts_cv_run_fopen_binary=no
48870 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
48871 /* end confdefs.h. */
48873 int main (int argc, char ** argv) {
48874 FILE * fp = fopen("conftest.$ac_ext", "rb");
48875 return (fp == NULL) ? 1 : fclose(fp); }
48877 if ac_fn_c_try_run "$LINENO"; then :
48878 libopts_cv_run_fopen_binary=yes
48880 libopts_cv_run_fopen_binary=no
48882 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
48883 conftest.$ac_objext conftest.beam conftest.$ac_ext
48885 # end of RUN_IFELSE
48888 # end of AC_CACHE_VAL for libopts_cv_run_fopen_binary
48889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${libopts_cv_run_fopen_binary}" >&5
48890 $as_echo "${libopts_cv_run_fopen_binary}" >&6; }
48891 if test "X${libopts_cv_run_fopen_binary}" != Xno
48894 $as_echo "#define FOPEN_BINARY_FLAG \"b\"" >>confdefs.h
48898 $as_echo "#define FOPEN_BINARY_FLAG \"\"" >>confdefs.h
48904 # Check to see if fopen accepts "t" mode.
48906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fopen accepts \"t\" mode" >&5
48907 $as_echo_n "checking whether fopen accepts \"t\" mode... " >&6; }
48908 if ${libopts_cv_run_fopen_text+:} false; then :
48909 $as_echo_n "(cached) " >&6
48912 if test "$cross_compiling" = yes; then :
48913 libopts_cv_run_fopen_text=no
48916 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
48917 /* end confdefs.h. */
48919 int main (int argc, char ** argv) {
48920 FILE * fp = fopen("conftest.$ac_ext", "rt");
48921 return (fp == NULL) ? 1 : fclose(fp); }
48923 if ac_fn_c_try_run "$LINENO"; then :
48924 libopts_cv_run_fopen_text=yes
48926 libopts_cv_run_fopen_text=no
48928 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
48929 conftest.$ac_objext conftest.beam conftest.$ac_ext
48931 # end of RUN_IFELSE
48934 # end of AC_CACHE_VAL for libopts_cv_run_fopen_text
48935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${libopts_cv_run_fopen_text}" >&5
48936 $as_echo "${libopts_cv_run_fopen_text}" >&6; }
48937 if test "X${libopts_cv_run_fopen_text}" != Xno
48940 $as_echo "#define FOPEN_TEXT_FLAG \"t\"" >>confdefs.h
48944 $as_echo "#define FOPEN_TEXT_FLAG \"\"" >>confdefs.h
48950 # Check to see if not wanting optional option args.
48952 # Check whether --enable-optional-args was given.
48953 if test "${enable_optional_args+set}" = set; then :
48954 enableval=$enable_optional_args; libopts_cv_enable_optional_args=${enable_optional_args}
48956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether not wanting optional option args" >&5
48957 $as_echo_n "checking whether not wanting optional option args... " >&6; }
48958 if ${libopts_cv_enable_optional_args+:} false; then :
48959 $as_echo_n "(cached) " >&6
48961 libopts_cv_enable_optional_args=yes
48963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libopts_cv_enable_optional_args" >&5
48964 $as_echo "$libopts_cv_enable_optional_args" >&6; }
48967 # end of AC_ARG_ENABLE
48968 if test "X${libopts_cv_enable_optional_args}" = Xno
48971 $as_echo "#define NO_OPTIONAL_OPT_ARGS 1" >>confdefs.h
48980 ac_config_files="$ac_config_files src/libopts/Makefile"
48982 # end of AC_DEFUN of LIBOPTS_CHECK
48984 if test "$NEED_LIBOPTS_DIR" = "true";then
48986 for i in ${srcdir}/src/*-args.c.bak ${srcdir}/src/*-args.h.bak; do
48987 nam=`echo $i|sed 's/.bak//g'`
48994 if test -z "$missing_baks"; then
48998 enable_local_libopts=yes
49000 enable_local_libopts=no
49002 if test "$enable_local_libopts" = "yes"; then
49004 NEED_LIBOPTS_FALSE='#'
49006 NEED_LIBOPTS_TRUE='#'
49007 NEED_LIBOPTS_FALSE=
49011 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "
49012 #include <sys/types.h>
49015 if test "x$ac_cv_type_ssize_t" = xyes; then :
49017 DEFINE_SSIZE_T="#include <sys/types.h>"
49023 $as_echo "#define NO_SSIZE_T 1" >>confdefs.h
49025 DEFINE_SSIZE_T="typedef int ssize_t;"
49032 # The cast to long int works around a bug in the HP C Compiler
49033 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
49034 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
49035 # This bug is HP SR number 8606223364.
49036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long int" >&5
49037 $as_echo_n "checking size of unsigned long int... " >&6; }
49038 if ${ac_cv_sizeof_unsigned_long_int+:} false; then :
49039 $as_echo_n "(cached) " >&6
49041 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned long int))" "ac_cv_sizeof_unsigned_long_int" "$ac_includes_default"; then :
49044 if test "$ac_cv_type_unsigned_long_int" = yes; then
49045 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
49046 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
49047 as_fn_error 77 "cannot compute sizeof (unsigned long int)
49048 See \`config.log' for more details" "$LINENO" 5; }
49050 ac_cv_sizeof_unsigned_long_int=0
49055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long_int" >&5
49056 $as_echo "$ac_cv_sizeof_unsigned_long_int" >&6; }
49060 cat >>confdefs.h <<_ACEOF
49061 #define SIZEOF_UNSIGNED_LONG_INT $ac_cv_sizeof_unsigned_long_int
49065 # The cast to long int works around a bug in the HP C Compiler
49066 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
49067 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
49068 # This bug is HP SR number 8606223364.
49069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned int" >&5
49070 $as_echo_n "checking size of unsigned int... " >&6; }
49071 if ${ac_cv_sizeof_unsigned_int+:} false; then :
49072 $as_echo_n "(cached) " >&6
49074 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned int))" "ac_cv_sizeof_unsigned_int" "$ac_includes_default"; then :
49077 if test "$ac_cv_type_unsigned_int" = yes; then
49078 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
49079 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
49080 as_fn_error 77 "cannot compute sizeof (unsigned int)
49081 See \`config.log' for more details" "$LINENO" 5; }
49083 ac_cv_sizeof_unsigned_int=0
49088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_int" >&5
49089 $as_echo "$ac_cv_sizeof_unsigned_int" >&6; }
49093 cat >>confdefs.h <<_ACEOF
49094 #define SIZEOF_UNSIGNED_INT $ac_cv_sizeof_unsigned_int
49100 # Check whether --with-zlib was given.
49101 if test "${with_zlib+set}" = set; then :
49102 withval=$with_zlib; ac_zlib=$withval
49107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include zlib compression support" >&5
49108 $as_echo_n "checking whether to include zlib compression support... " >&6; }
49109 if test x$ac_zlib != xno; then
49110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
49111 $as_echo "yes" >&6; }
49127 acl_save_prefix="$prefix"
49128 prefix="$acl_final_prefix"
49129 acl_save_exec_prefix="$exec_prefix"
49130 exec_prefix="$acl_final_exec_prefix"
49132 eval additional_includedir=\"$includedir\"
49133 eval additional_libdir=\"$libdir\"
49135 exec_prefix="$acl_save_exec_prefix"
49136 prefix="$acl_save_prefix"
49139 # Check whether --with-libz-prefix was given.
49140 if test "${with_libz_prefix+set}" = set; then :
49141 withval=$with_libz_prefix;
49142 if test "X$withval" = "Xno"; then
49145 if test "X$withval" = "X"; then
49147 acl_save_prefix="$prefix"
49148 prefix="$acl_final_prefix"
49149 acl_save_exec_prefix="$exec_prefix"
49150 exec_prefix="$acl_final_exec_prefix"
49152 eval additional_includedir=\"$includedir\"
49153 eval additional_libdir=\"$libdir\"
49155 exec_prefix="$acl_save_exec_prefix"
49156 prefix="$acl_save_prefix"
49159 additional_includedir="$withval/include"
49160 additional_libdir="$withval/$acl_libdirstem"
49161 if test "$acl_libdirstem2" != "$acl_libdirstem" \
49162 && ! test -d "$withval/$acl_libdirstem"; then
49163 additional_libdir="$withval/$acl_libdirstem2"
49177 names_already_handled=
49178 names_next_round='z '
49179 while test -n "$names_next_round"; do
49180 names_this_round="$names_next_round"
49182 for name in $names_this_round; do
49184 for n in $names_already_handled; do
49185 if test "$n" = "$name"; then
49186 already_handled=yes
49190 if test -z "$already_handled"; then
49191 names_already_handled="$names_already_handled $name"
49192 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
49193 eval value=\"\$HAVE_LIB$uppername\"
49194 if test -n "$value"; then
49195 if test "$value" = yes; then
49196 eval value=\"\$LIB$uppername\"
49197 test -z "$value" || LIBZ="${LIBZ}${LIBZ:+ }$value"
49198 eval value=\"\$LTLIB$uppername\"
49199 test -z "$value" || LTLIBZ="${LTLIBZ}${LTLIBZ:+ }$value"
49208 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
49209 if test -n "$acl_shlibext"; then
49210 shrext=".$acl_shlibext" # typically: shrext=.so
49214 if test $use_additional = yes; then
49215 dir="$additional_libdir"
49216 if test -n "$acl_shlibext"; then
49217 if test -f "$dir/$libname$shrext"; then
49219 found_so="$dir/$libname$shrext"
49221 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
49222 ver=`(cd "$dir" && \
49223 for f in "$libname$shrext".*; do echo "$f"; done \
49224 | sed -e "s,^$libname$shrext\\\\.,," \
49225 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
49226 | sed 1q ) 2>/dev/null`
49227 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
49229 found_so="$dir/$libname$shrext.$ver"
49232 eval library_names=\"$acl_library_names_spec\"
49233 for f in $library_names; do
49234 if test -f "$dir/$f"; then
49243 if test "X$found_dir" = "X"; then
49244 if test -f "$dir/$libname.$acl_libext"; then
49246 found_a="$dir/$libname.$acl_libext"
49249 if test "X$found_dir" != "X"; then
49250 if test -f "$dir/$libname.la"; then
49251 found_la="$dir/$libname.la"
49255 if test "X$found_dir" = "X"; then
49256 for x in $LDFLAGS $LTLIBZ; do
49258 acl_save_prefix="$prefix"
49259 prefix="$acl_final_prefix"
49260 acl_save_exec_prefix="$exec_prefix"
49261 exec_prefix="$acl_final_exec_prefix"
49263 exec_prefix="$acl_save_exec_prefix"
49264 prefix="$acl_save_prefix"
49268 dir=`echo "X$x" | sed -e 's/^X-L//'`
49269 if test -n "$acl_shlibext"; then
49270 if test -f "$dir/$libname$shrext"; then
49272 found_so="$dir/$libname$shrext"
49274 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
49275 ver=`(cd "$dir" && \
49276 for f in "$libname$shrext".*; do echo "$f"; done \
49277 | sed -e "s,^$libname$shrext\\\\.,," \
49278 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
49279 | sed 1q ) 2>/dev/null`
49280 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
49282 found_so="$dir/$libname$shrext.$ver"
49285 eval library_names=\"$acl_library_names_spec\"
49286 for f in $library_names; do
49287 if test -f "$dir/$f"; then
49296 if test "X$found_dir" = "X"; then
49297 if test -f "$dir/$libname.$acl_libext"; then
49299 found_a="$dir/$libname.$acl_libext"
49302 if test "X$found_dir" != "X"; then
49303 if test -f "$dir/$libname.la"; then
49304 found_la="$dir/$libname.la"
49309 if test "X$found_dir" != "X"; then
49314 if test "X$found_dir" != "X"; then
49315 LTLIBZ="${LTLIBZ}${LTLIBZ:+ }-L$found_dir -l$name"
49316 if test "X$found_so" != "X"; then
49317 if test "$enable_rpath" = no \
49318 || test "X$found_dir" = "X/usr/$acl_libdirstem" \
49319 || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
49320 LIBZ="${LIBZ}${LIBZ:+ }$found_so"
49323 for x in $ltrpathdirs; do
49324 if test "X$x" = "X$found_dir"; then
49329 if test -z "$haveit"; then
49330 ltrpathdirs="$ltrpathdirs $found_dir"
49332 if test "$acl_hardcode_direct" = yes; then
49333 LIBZ="${LIBZ}${LIBZ:+ }$found_so"
49335 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
49336 LIBZ="${LIBZ}${LIBZ:+ }$found_so"
49338 for x in $rpathdirs; do
49339 if test "X$x" = "X$found_dir"; then
49344 if test -z "$haveit"; then
49345 rpathdirs="$rpathdirs $found_dir"
49349 for x in $LDFLAGS $LIBZ; do
49351 acl_save_prefix="$prefix"
49352 prefix="$acl_final_prefix"
49353 acl_save_exec_prefix="$exec_prefix"
49354 exec_prefix="$acl_final_exec_prefix"
49356 exec_prefix="$acl_save_exec_prefix"
49357 prefix="$acl_save_prefix"
49359 if test "X$x" = "X-L$found_dir"; then
49364 if test -z "$haveit"; then
49365 LIBZ="${LIBZ}${LIBZ:+ }-L$found_dir"
49367 if test "$acl_hardcode_minus_L" != no; then
49368 LIBZ="${LIBZ}${LIBZ:+ }$found_so"
49370 LIBZ="${LIBZ}${LIBZ:+ }-l$name"
49376 if test "X$found_a" != "X"; then
49377 LIBZ="${LIBZ}${LIBZ:+ }$found_a"
49379 LIBZ="${LIBZ}${LIBZ:+ }-L$found_dir -l$name"
49382 additional_includedir=
49383 case "$found_dir" in
49384 */$acl_libdirstem | */$acl_libdirstem/)
49385 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
49386 if test "$name" = 'z'; then
49387 LIBZ_PREFIX="$basedir"
49389 additional_includedir="$basedir/include"
49391 */$acl_libdirstem2 | */$acl_libdirstem2/)
49392 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
49393 if test "$name" = 'z'; then
49394 LIBZ_PREFIX="$basedir"
49396 additional_includedir="$basedir/include"
49399 if test "X$additional_includedir" != "X"; then
49400 if test "X$additional_includedir" != "X/usr/include"; then
49402 if test "X$additional_includedir" = "X/usr/local/include"; then
49403 if test -n "$GCC"; then
49405 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
49409 if test -z "$haveit"; then
49410 for x in $CPPFLAGS $INCZ; do
49412 acl_save_prefix="$prefix"
49413 prefix="$acl_final_prefix"
49414 acl_save_exec_prefix="$exec_prefix"
49415 exec_prefix="$acl_final_exec_prefix"
49417 exec_prefix="$acl_save_exec_prefix"
49418 prefix="$acl_save_prefix"
49420 if test "X$x" = "X-I$additional_includedir"; then
49425 if test -z "$haveit"; then
49426 if test -d "$additional_includedir"; then
49427 INCZ="${INCZ}${INCZ:+ }-I$additional_includedir"
49433 if test -n "$found_la"; then
49434 save_libdir="$libdir"
49435 case "$found_la" in
49436 */* | *\\*) . "$found_la" ;;
49437 *) . "./$found_la" ;;
49439 libdir="$save_libdir"
49440 for dep in $dependency_libs; do
49443 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
49444 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
49445 && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
49447 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
49448 || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
49449 if test -n "$GCC"; then
49451 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
49455 if test -z "$haveit"; then
49457 for x in $LDFLAGS $LIBZ; do
49459 acl_save_prefix="$prefix"
49460 prefix="$acl_final_prefix"
49461 acl_save_exec_prefix="$exec_prefix"
49462 exec_prefix="$acl_final_exec_prefix"
49464 exec_prefix="$acl_save_exec_prefix"
49465 prefix="$acl_save_prefix"
49467 if test "X$x" = "X-L$additional_libdir"; then
49472 if test -z "$haveit"; then
49473 if test -d "$additional_libdir"; then
49474 LIBZ="${LIBZ}${LIBZ:+ }-L$additional_libdir"
49478 for x in $LDFLAGS $LTLIBZ; do
49480 acl_save_prefix="$prefix"
49481 prefix="$acl_final_prefix"
49482 acl_save_exec_prefix="$exec_prefix"
49483 exec_prefix="$acl_final_exec_prefix"
49485 exec_prefix="$acl_save_exec_prefix"
49486 prefix="$acl_save_prefix"
49488 if test "X$x" = "X-L$additional_libdir"; then
49493 if test -z "$haveit"; then
49494 if test -d "$additional_libdir"; then
49495 LTLIBZ="${LTLIBZ}${LTLIBZ:+ }-L$additional_libdir"
49502 dir=`echo "X$dep" | sed -e 's/^X-R//'`
49503 if test "$enable_rpath" != no; then
49505 for x in $rpathdirs; do
49506 if test "X$x" = "X$dir"; then
49511 if test -z "$haveit"; then
49512 rpathdirs="$rpathdirs $dir"
49515 for x in $ltrpathdirs; do
49516 if test "X$x" = "X$dir"; then
49521 if test -z "$haveit"; then
49522 ltrpathdirs="$ltrpathdirs $dir"
49527 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
49530 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
49533 LIBZ="${LIBZ}${LIBZ:+ }$dep"
49534 LTLIBZ="${LTLIBZ}${LTLIBZ:+ }$dep"
49540 LIBZ="${LIBZ}${LIBZ:+ }-l$name"
49541 LTLIBZ="${LTLIBZ}${LTLIBZ:+ }-l$name"
49547 if test "X$rpathdirs" != "X"; then
49548 if test -n "$acl_hardcode_libdir_separator"; then
49550 for found_dir in $rpathdirs; do
49551 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
49553 acl_save_libdir="$libdir"
49555 eval flag=\"$acl_hardcode_libdir_flag_spec\"
49556 libdir="$acl_save_libdir"
49557 LIBZ="${LIBZ}${LIBZ:+ }$flag"
49559 for found_dir in $rpathdirs; do
49560 acl_save_libdir="$libdir"
49561 libdir="$found_dir"
49562 eval flag=\"$acl_hardcode_libdir_flag_spec\"
49563 libdir="$acl_save_libdir"
49564 LIBZ="${LIBZ}${LIBZ:+ }$flag"
49568 if test "X$ltrpathdirs" != "X"; then
49569 for found_dir in $ltrpathdirs; do
49570 LTLIBZ="${LTLIBZ}${LTLIBZ:+ }-R$found_dir"
49580 ac_save_CPPFLAGS="$CPPFLAGS"
49582 for element in $INCZ; do
49584 for x in $CPPFLAGS; do
49586 acl_save_prefix="$prefix"
49587 prefix="$acl_final_prefix"
49588 acl_save_exec_prefix="$exec_prefix"
49589 exec_prefix="$acl_final_exec_prefix"
49591 exec_prefix="$acl_save_exec_prefix"
49592 prefix="$acl_save_prefix"
49594 if test "X$x" = "X$element"; then
49599 if test -z "$haveit"; then
49600 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
49605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libz" >&5
49606 $as_echo_n "checking for libz... " >&6; }
49607 if ${ac_cv_libz+:} false; then :
49608 $as_echo_n "(cached) " >&6
49611 ac_save_LIBS="$LIBS"
49613 *" -l"*) LIBS="$LIBS $LIBZ" ;;
49614 *) LIBS="$LIBZ $LIBS" ;;
49616 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
49617 /* end confdefs.h. */
49622 compress (0, 0, 0, 0);
49627 if ac_fn_c_try_link "$LINENO"; then :
49632 rm -f core conftest.err conftest.$ac_objext \
49633 conftest$ac_exeext conftest.$ac_ext
49634 LIBS="$ac_save_LIBS"
49637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libz" >&5
49638 $as_echo "$ac_cv_libz" >&6; }
49639 if test "$ac_cv_libz" = yes; then
49642 $as_echo "#define HAVE_LIBZ 1" >>confdefs.h
49644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libz" >&5
49645 $as_echo_n "checking how to link with libz... " >&6; }
49646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBZ" >&5
49647 $as_echo "$LIBZ" >&6; }
49650 CPPFLAGS="$ac_save_CPPFLAGS"
49662 if test x$ac_cv_libz != xyes; then
49663 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ***
49664 *** ZLIB was not found. You will not be able to use ZLIB compression." >&5
49665 $as_echo "$as_me: WARNING: ***
49666 *** ZLIB was not found. You will not be able to use ZLIB compression." >&2;}
49669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
49670 $as_echo "no" >&6; }
49673 if test -n "$PKG_CONFIG" && \
49674 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"zlib\""; } >&5
49675 ($PKG_CONFIG --exists --print-errors "zlib") 2>&5
49677 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
49678 test $ac_status = 0; }; then
49679 ZLIB_HAS_PKGCONFIG=y
49681 ZLIB_HAS_PKGCONFIG=n
49684 if test x$ac_zlib != xno; then
49685 if test "$ZLIB_HAS_PKGCONFIG" = "y" ; then
49686 if test "x$GNUTLS_REQUIRES_PRIVATE" = x; then
49687 GNUTLS_REQUIRES_PRIVATE="Requires.private: zlib"
49689 GNUTLS_REQUIRES_PRIVATE="$GNUTLS_REQUIRES_PRIVATE, zlib"
49698 # Check whether --with-default-trust-store-pkcs11 was given.
49699 if test "${with_default_trust_store_pkcs11+set}" = set; then :
49700 withval=$with_default_trust_store_pkcs11;
49704 if test "x$with_default_trust_store_pkcs11" != x; then
49705 if test "x$with_p11_kit" = xno; then
49706 as_fn_error $? "cannot use pkcs11 store without p11-kit" "$LINENO" 5
49709 cat >>confdefs.h <<_ACEOF
49710 #define DEFAULT_TRUST_STORE_PKCS11 "$with_default_trust_store_pkcs11"
49716 # Check whether --with-default-trust-store-dir was given.
49717 if test "${with_default_trust_store_dir+set}" = set; then :
49718 withval=$with_default_trust_store_dir;
49722 if test "x$with_default_trust_store_dir" != x; then
49724 cat >>confdefs.h <<_ACEOF
49725 #define DEFAULT_TRUST_STORE_DIR "$with_default_trust_store_dir"
49731 # Check whether --with-default-trust-store-file was given.
49732 if test "${with_default_trust_store_file+set}" = set; then :
49733 withval=$with_default_trust_store_file; with_default_trust_store_file="$withval"
49735 if test "$build" = "$host" && test x$with_default_trust_store_pkcs11 = x && test x$with_default_trust_store_dir = x;then
49737 /etc/ssl/ca-bundle.pem \
49738 /etc/ssl/certs/ca-certificates.crt \
49739 /etc/pki/tls/cert.pem \
49740 /usr/local/share/certs/ca-root-nss.crt \
49743 if test -e "$i"; then
49744 with_default_trust_store_file="$i"
49753 if test "$with_default_trust_store_file" = "no";then
49754 with_default_trust_store_file=""
49758 # Check whether --with-default-crl-file was given.
49759 if test "${with_default_crl_file+set}" = set; then :
49760 withval=$with_default_crl_file;
49765 # Check whether --with-default-blacklist-file was given.
49766 if test "${with_default_blacklist_file+set}" = set; then :
49767 withval=$with_default_blacklist_file;
49771 if test "x$with_default_trust_store_file" != x; then
49773 cat >>confdefs.h <<_ACEOF
49774 #define DEFAULT_TRUST_STORE_FILE "$with_default_trust_store_file"
49779 if test "x$with_default_crl_file" != x; then
49781 cat >>confdefs.h <<_ACEOF
49782 #define DEFAULT_CRL_FILE "$with_default_crl_file"
49787 if test "x$with_default_blacklist_file" != x; then
49789 cat >>confdefs.h <<_ACEOF
49790 #define DEFAULT_BLACKLIST_FILE "$with_default_blacklist_file"
49795 opt_guile_bindings=yes
49796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether building Guile bindings" >&5
49797 $as_echo_n "checking whether building Guile bindings... " >&6; }
49798 # Check whether --enable-guile was given.
49799 if test "${enable_guile+set}" = set; then :
49800 enableval=$enable_guile; opt_guile_bindings=$enableval
49803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $opt_guile_bindings" >&5
49804 $as_echo "$opt_guile_bindings" >&6; }
49807 # Check whether --with-guile-site-dir was given.
49808 if test "${with_guile_site_dir+set}" = set; then :
49809 withval=$with_guile_site_dir;
49813 if test "$opt_guile_bindings" = "yes"; then
49814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ***
49815 *** Detecting GNU Guile...
49818 *** Detecting GNU Guile...
49821 # Extract the first word of "guile-snarf", so it can be a program name with args.
49822 set dummy guile-snarf; ac_word=$2
49823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
49824 $as_echo_n "checking for $ac_word... " >&6; }
49825 if ${ac_cv_path_guile_snarf+:} false; then :
49826 $as_echo_n "(cached) " >&6
49828 case $guile_snarf in
49830 ac_cv_path_guile_snarf="$guile_snarf" # Let the user override the test with a path.
49833 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
49834 for as_dir in $PATH
49837 test -z "$as_dir" && as_dir=.
49838 for ac_exec_ext in '' $ac_executable_extensions; do
49839 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
49840 ac_cv_path_guile_snarf="$as_dir/$ac_word$ac_exec_ext"
49841 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
49851 guile_snarf=$ac_cv_path_guile_snarf
49852 if test -n "$guile_snarf"; then
49853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $guile_snarf" >&5
49854 $as_echo "$guile_snarf" >&6; }
49856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
49857 $as_echo "no" >&6; }
49861 if test "x$guile_snarf" = "x"; then
49862 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`guile-snarf' from Guile 1.8 not found. Guile bindings not built." >&5
49863 $as_echo "$as_me: WARNING: \`guile-snarf' from Guile 1.8 not found. Guile bindings not built." >&2;}
49864 opt_guile_bindings=no
49866 # Extract the first word of "guile", so it can be a program name with args.
49867 set dummy guile; ac_word=$2
49868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
49869 $as_echo_n "checking for $ac_word... " >&6; }
49870 if ${ac_cv_path_GUILE+:} false; then :
49871 $as_echo_n "(cached) " >&6
49875 ac_cv_path_GUILE="$GUILE" # Let the user override the test with a path.
49878 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
49879 for as_dir in $PATH
49882 test -z "$as_dir" && as_dir=.
49883 for ac_exec_ext in '' $ac_executable_extensions; do
49884 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
49885 ac_cv_path_GUILE="$as_dir/$ac_word$ac_exec_ext"
49886 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
49896 GUILE=$ac_cv_path_GUILE
49897 if test -n "$GUILE"; then
49898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GUILE" >&5
49899 $as_echo "$GUILE" >&6; }
49901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
49902 $as_echo "no" >&6; }
49906 if test "$GUILE" = "" ; then
49907 as_fn_error $? "guile required but not found" "$LINENO" 5
49910 # Extract the first word of "guile-config", so it can be a program name with args.
49911 set dummy guile-config; ac_word=$2
49912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
49913 $as_echo_n "checking for $ac_word... " >&6; }
49914 if ${ac_cv_path_GUILE_CONFIG+:} false; then :
49915 $as_echo_n "(cached) " >&6
49917 case $GUILE_CONFIG in
49919 ac_cv_path_GUILE_CONFIG="$GUILE_CONFIG" # Let the user override the test with a path.
49922 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
49923 for as_dir in $PATH
49926 test -z "$as_dir" && as_dir=.
49927 for ac_exec_ext in '' $ac_executable_extensions; do
49928 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
49929 ac_cv_path_GUILE_CONFIG="$as_dir/$ac_word$ac_exec_ext"
49930 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
49940 GUILE_CONFIG=$ac_cv_path_GUILE_CONFIG
49941 if test -n "$GUILE_CONFIG"; then
49942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GUILE_CONFIG" >&5
49943 $as_echo "$GUILE_CONFIG" >&6; }
49945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
49946 $as_echo "no" >&6; }
49950 if test "$GUILE_CONFIG" = "" ; then
49951 as_fn_error $? "guile-config required but not found" "$LINENO" 5
49954 # Extract the first word of "guile-tools", so it can be a program name with args.
49955 set dummy guile-tools; ac_word=$2
49956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
49957 $as_echo_n "checking for $ac_word... " >&6; }
49958 if ${ac_cv_path_GUILE_TOOLS+:} false; then :
49959 $as_echo_n "(cached) " >&6
49961 case $GUILE_TOOLS in
49963 ac_cv_path_GUILE_TOOLS="$GUILE_TOOLS" # Let the user override the test with a path.
49966 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
49967 for as_dir in $PATH
49970 test -z "$as_dir" && as_dir=.
49971 for ac_exec_ext in '' $ac_executable_extensions; do
49972 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
49973 ac_cv_path_GUILE_TOOLS="$as_dir/$ac_word$ac_exec_ext"
49974 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
49984 GUILE_TOOLS=$ac_cv_path_GUILE_TOOLS
49985 if test -n "$GUILE_TOOLS"; then
49986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GUILE_TOOLS" >&5
49987 $as_echo "$GUILE_TOOLS" >&6; }
49989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
49990 $as_echo "no" >&6; }
49996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking libguile compile flags" >&5
49997 $as_echo_n "checking libguile compile flags... " >&6; }
49998 GUILE_CFLAGS="`$GUILE_CONFIG compile`"
49999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GUILE_CFLAGS" >&5
50000 $as_echo "$GUILE_CFLAGS" >&6; }
50001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking libguile link flags" >&5
50002 $as_echo_n "checking libguile link flags... " >&6; }
50003 GUILE_LDFLAGS="`$GUILE_CONFIG link`"
50004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GUILE_LDFLAGS" >&5
50005 $as_echo "$GUILE_LDFLAGS" >&6; }
50010 save_CFLAGS="$CFLAGS"
50012 CFLAGS="$CFLAGS $GUILE_CFLAGS"
50013 LIBS="$LIBS $GUILE_LDFLAGS"
50014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether GNU Guile is recent enough" >&5
50015 $as_echo_n "checking whether GNU Guile is recent enough... " >&6; }
50016 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
50017 /* end confdefs.h. */
50022 scm_from_locale_string ("")
50027 if ac_fn_c_try_link "$LINENO"; then :
50030 opt_guile_bindings=no
50032 rm -f core conftest.err conftest.$ac_objext \
50033 conftest$ac_exeext conftest.$ac_ext
50034 CFLAGS="$save_CFLAGS"
50037 if test "$opt_guile_bindings" = "yes"; then
50038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
50039 $as_echo "yes" >&6; }
50040 case "x$with_guile_site_dir" in
50042 # Use the default $(GUILE_SITE).
50043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Guile site directory" >&5
50044 $as_echo_n "checking for Guile site directory... " >&6; }
50045 GUILE_SITE=`$GUILE_CONFIG info pkgdatadir`/site
50046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GUILE_SITE" >&5
50047 $as_echo "$GUILE_SITE" >&6; }
50052 # Automatically derive $(GUILE_SITE) from $(pkgdatadir). This
50053 # hack is used to allow `distcheck' to work (see
50054 # `DISTCHECK_CONFIGURE_FLAGS' in the top-level `Makefile.am').
50055 GUILE_SITE="\$(datadir)/guile/site"
50059 # Use the user-specified directory as $(GUILE_SITE).
50060 GUILE_SITE="$with_guile_site_dir"
50064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc supports -fgnu89-inline" >&5
50065 $as_echo_n "checking whether gcc supports -fgnu89-inline... " >&6; }
50066 _gcc_cflags_save="$CFLAGS"
50067 CFLAGS="${CFLAGS} -fgnu89-inline"
50068 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
50069 /* end confdefs.h. */
50079 if ac_fn_c_try_compile "$LINENO"; then :
50084 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
50085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gnu89_inline" >&5
50086 $as_echo "$gnu89_inline" >&6; }
50087 CFLAGS="$_gcc_cflags_save"
50089 # Optional Guile functions.
50090 save_CFLAGS="$CFLAGS"
50092 CFLAGS="$CFLAGS $GUILE_CFLAGS"
50093 LIBS="$LIBS $GUILE_LDFLAGS"
50094 for ac_func in scm_gc_malloc_pointerless
50096 ac_fn_c_check_func "$LINENO" "scm_gc_malloc_pointerless" "ac_cv_func_scm_gc_malloc_pointerless"
50097 if test "x$ac_cv_func_scm_gc_malloc_pointerless" = xyes; then :
50098 cat >>confdefs.h <<_ACEOF
50099 #define HAVE_SCM_GC_MALLOC_POINTERLESS 1
50105 CFLAGS="$save_CFLAGS"
50108 # The place where guile-gnutls.la will go.
50109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the Guile effective version" >&5
50110 $as_echo_n "checking the Guile effective version... " >&6; }
50111 guile_effective_version="`$GUILE -c '(display (effective-version))'`"
50112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $guile_effective_version" >&5
50113 $as_echo "$guile_effective_version" >&6; }
50114 guileextensiondir="$libdir/guile/$guile_effective_version"
50117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
50118 $as_echo "no" >&6; }
50119 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: A sufficiently recent GNU Guile not found. Guile bindings not built." >&5
50120 $as_echo "$as_me: WARNING: A sufficiently recent GNU Guile not found. Guile bindings not built." >&2;}
50121 opt_guile_bindings=no
50125 if test "$opt_guile_bindings" = "yes"; then
50127 HAVE_GUILE_FALSE='#'
50129 HAVE_GUILE_TRUE='#'
50134 LIBGNUTLS_LIBS="-L${libdir} -lgnutls $LIBS"
50135 LIBGNUTLS_CFLAGS="-I${includedir}"
50139 if test "$gnutls_needs_librt" = "yes"; then
50141 NEEDS_LIBRT_FALSE='#'
50143 NEEDS_LIBRT_TRUE='#'
50149 $as_echo "#define GNUTLS_COMPAT_H 1" >>confdefs.h
50152 $as_echo "#define GNUTLS_INTERNAL_BUILD 1" >>confdefs.h
50156 $as_echo "#define fread_file _gnutls_fread_file" >>confdefs.h
50159 $as_echo "#define read_file _gnutls_read_file" >>confdefs.h
50162 $as_echo "#define read_binary_file _gnutls_read_binary_file" >>confdefs.h
50165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ***
50166 *** Checking dependencies for crywrap...
50169 *** Checking dependencies for crywrap...
50174 if test "$have_win" != "yes"; then
50176 for ac_header in arpa/inet.h netinet/in.h sys/select.h sys/types.h sys/wait.h
50178 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
50179 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
50180 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
50181 cat >>confdefs.h <<_ACEOF
50182 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
50190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
50191 $as_echo_n "checking return type of signal handlers... " >&6; }
50192 if ${ac_cv_type_signal+:} false; then :
50193 $as_echo_n "(cached) " >&6
50195 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
50196 /* end confdefs.h. */
50197 #include <sys/types.h>
50198 #include <signal.h>
50203 return *(signal (0, 0)) (0) == 1;
50208 if ac_fn_c_try_compile "$LINENO"; then :
50209 ac_cv_type_signal=int
50211 ac_cv_type_signal=void
50213 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
50215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
50216 $as_echo "$ac_cv_type_signal" >&6; }
50218 cat >>confdefs.h <<_ACEOF
50219 #define RETSIGTYPE $ac_cv_type_signal
50223 for ac_header in sys/select.h sys/socket.h
50225 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
50226 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
50227 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
50228 cat >>confdefs.h <<_ACEOF
50229 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
50236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking types of arguments for select" >&5
50237 $as_echo_n "checking types of arguments for select... " >&6; }
50238 if ${ac_cv_func_select_args+:} false; then :
50239 $as_echo_n "(cached) " >&6
50241 for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
50242 for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do
50243 for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
50244 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
50245 /* end confdefs.h. */
50246 $ac_includes_default
50247 #ifdef HAVE_SYS_SELECT_H
50248 # include <sys/select.h>
50250 #ifdef HAVE_SYS_SOCKET_H
50251 # include <sys/socket.h>
50257 extern int select ($ac_arg1,
50258 $ac_arg234, $ac_arg234, $ac_arg234,
50264 if ac_fn_c_try_compile "$LINENO"; then :
50265 ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
50267 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
50271 # Provide a safe default value.
50272 : "${ac_cv_func_select_args=int,int *,struct timeval *}"
50275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_select_args" >&5
50276 $as_echo "$ac_cv_func_select_args" >&6; }
50277 ac_save_IFS=$IFS; IFS=','
50278 set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
50282 cat >>confdefs.h <<_ACEOF
50283 #define SELECT_TYPE_ARG1 $1
50287 cat >>confdefs.h <<_ACEOF
50288 #define SELECT_TYPE_ARG234 ($2)
50292 cat >>confdefs.h <<_ACEOF
50293 #define SELECT_TYPE_ARG5 ($3)
50298 for ac_func in alarm atexit dup2 epoll_create kqueue memchr memset munmap \
50299 putenv regcomp scandir select socket strcasecmp strchr \
50300 strdup strerror strncasecmp strrchr strstr strtoul uname
50302 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
50303 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
50304 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
50305 cat >>confdefs.h <<_ACEOF
50306 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
50313 # Check whether --enable-crywrap was given.
50314 if test "${enable_crywrap+set}" = set; then :
50315 enableval=$enable_crywrap;
50321 if test "x$enable_crywrap" != "xno" ; then
50324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBIDN" >&5
50325 $as_echo_n "checking for LIBIDN... " >&6; }
50327 if test -n "$PKG_CONFIG"; then
50328 if test -n "$LIBIDN_CFLAGS"; then
50329 pkg_cv_LIBIDN_CFLAGS="$LIBIDN_CFLAGS"
50331 if test -n "$PKG_CONFIG" && \
50332 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libidn >= 0.0.0\""; } >&5
50333 ($PKG_CONFIG --exists --print-errors "libidn >= 0.0.0") 2>&5
50335 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
50336 test $ac_status = 0; }; then
50337 pkg_cv_LIBIDN_CFLAGS=`$PKG_CONFIG --cflags "libidn >= 0.0.0" 2>/dev/null`
50345 if test -n "$PKG_CONFIG"; then
50346 if test -n "$LIBIDN_LIBS"; then
50347 pkg_cv_LIBIDN_LIBS="$LIBIDN_LIBS"
50349 if test -n "$PKG_CONFIG" && \
50350 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libidn >= 0.0.0\""; } >&5
50351 ($PKG_CONFIG --exists --print-errors "libidn >= 0.0.0") 2>&5
50353 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
50354 test $ac_status = 0; }; then
50355 pkg_cv_LIBIDN_LIBS=`$PKG_CONFIG --libs "libidn >= 0.0.0" 2>/dev/null`
50366 if test $pkg_failed = yes; then
50368 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
50369 _pkg_short_errors_supported=yes
50371 _pkg_short_errors_supported=no
50373 if test $_pkg_short_errors_supported = yes; then
50374 LIBIDN_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "libidn >= 0.0.0"`
50376 LIBIDN_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libidn >= 0.0.0"`
50378 # Put the nasty error message in config.log where it belongs
50379 echo "$LIBIDN_PKG_ERRORS" >&5
50381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
50382 $as_echo "no" >&6; }
50384 elif test $pkg_failed = untried; then
50387 LIBIDN_CFLAGS=$pkg_cv_LIBIDN_CFLAGS
50388 LIBIDN_LIBS=$pkg_cv_LIBIDN_LIBS
50389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
50390 $as_echo "yes" >&6; }
50393 for ac_func in argp_usage
50395 ac_fn_c_check_func "$LINENO" "argp_usage" "ac_cv_func_argp_usage"
50396 if test "x$ac_cv_func_argp_usage" = xyes; then :
50397 cat >>confdefs.h <<_ACEOF
50398 #define HAVE_ARGP_USAGE 1
50408 if test "x$libidn" != "xno" && test "$ac_cv_func_daemon" != "no" && test "$ac_argp" != "no";then
50414 if test "x$crywrap" != "xno"; then
50415 ENABLE_CRYWRAP_TRUE=
50416 ENABLE_CRYWRAP_FALSE='#'
50418 ENABLE_CRYWRAP_TRUE='#'
50419 ENABLE_CRYWRAP_FALSE=
50428 ac_config_files="$ac_config_files guile/pre-inst-guile"
50430 ac_config_files="$ac_config_files Makefile doc/Makefile doc/credentials/Makefile doc/credentials/openpgp/Makefile doc/credentials/srp/Makefile doc/credentials/x509/Makefile doc/cyclo/Makefile doc/doxygen/Doxyfile doc/examples/Makefile doc/latex/Makefile doc/manpages/Makefile doc/reference/Makefile doc/reference/version.xml doc/scripts/Makefile extra/Makefile extra/includes/Makefile libdane/Makefile libdane/includes/Makefile libdane/gnutls-dane.pc gl/Makefile gl/tests/Makefile guile/Makefile guile/modules/Makefile guile/src/Makefile guile/tests/Makefile lib/Makefile lib/accelerated/Makefile lib/accelerated/x86/Makefile lib/algorithms/Makefile lib/auth/Makefile lib/ext/Makefile lib/extras/Makefile lib/gnutls.pc lib/includes/Makefile lib/includes/gnutls/gnutls.h lib/minitasn1/Makefile lib/nettle/Makefile lib/opencdk/Makefile lib/openpgp/Makefile lib/x509/Makefile po/Makefile.in src/Makefile src/crywrap/Makefile src/gl/Makefile tests/Makefile tests/cert-tests/Makefile tests/dsa/Makefile tests/dtls/Makefile tests/srp/Makefile tests/ecdsa/Makefile tests/key-tests/Makefile tests/openpgp-certs/Makefile tests/pkcs1-padding/Makefile tests/pkcs12-decode/Makefile tests/pkcs8-decode/Makefile tests/rsa-md5-collision/Makefile tests/safe-renegotiation/Makefile tests/scripts/Makefile tests/sha2/Makefile tests/slow/Makefile tests/suite/Makefile tests/userid/Makefile"
50433 cat >confcache <<\_ACEOF
50434 # This file is a shell script that caches the results of configure
50435 # tests run on this system so they can be shared between configure
50436 # scripts and configure runs, see configure's option --config-cache.
50437 # It is not useful on other systems. If it contains results you don't
50438 # want to keep, you may remove or edit it.
50440 # config.status only pays attention to the cache file if you give it
50441 # the --recheck option to rerun configure.
50443 # `ac_cv_env_foo' variables (set or unset) will be overridden when
50444 # loading this file, other *unset* `ac_cv_foo' will be assigned the
50445 # following values.
50449 # The following way of writing the cache mishandles newlines in values,
50450 # but we know of no workaround that is simple, portable, and efficient.
50451 # So, we kill variables containing newlines.
50452 # Ultrix sh set writes to stderr and can't be redirected directly,
50453 # and sets the high bit in the cache file unless we assign to the vars.
50455 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
50456 eval ac_val=\$$ac_var
50460 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
50461 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
50464 _ | IFS | as_nl) ;; #(
50465 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
50466 *) { eval $ac_var=; unset $ac_var;} ;;
50472 case $as_nl`(ac_space=' '; set) 2>&1` in #(
50473 *${as_nl}ac_space=\ *)
50474 # `set' does not quote correctly, so add quotes: double-quote
50475 # substitution turns \\\\ into \\, and sed turns \\ into \.
50478 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
50481 # `set' quotes correctly as required by POSIX, so do not add quotes.
50482 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
50491 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
50493 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
50495 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
50496 if test -w "$cache_file"; then
50497 if test "x$cache_file" != "x/dev/null"; then
50498 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
50499 $as_echo "$as_me: updating cache $cache_file" >&6;}
50500 if test ! -f "$cache_file" || test -h "$cache_file"; then
50501 cat confcache >"$cache_file"
50503 case $cache_file in #(
50505 mv -f confcache "$cache_file"$$ &&
50506 mv -f "$cache_file"$$ "$cache_file" ;; #(
50508 mv -f confcache "$cache_file" ;;
50513 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
50514 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
50519 test "x$prefix" = xNONE && prefix=$ac_default_prefix
50520 # Let make expand exec_prefix.
50521 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
50523 DEFS=-DHAVE_CONFIG_H
50528 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
50529 # 1. Remove the extension, and $U if already installed.
50530 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
50531 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
50532 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
50533 # will be set to the directory where LIBOBJS objects are built.
50534 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
50535 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
50537 LIBOBJS=$ac_libobjs
50539 LTLIBOBJS=$ac_ltlibobjs
50542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
50543 $as_echo_n "checking that generated files are newer than configure... " >&6; }
50544 if test -n "$am_sleep_pid"; then
50545 # Hide warnings about reused PIDs.
50546 wait $am_sleep_pid 2>/dev/null
50548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
50549 $as_echo "done" >&6; }
50550 if test -n "$EXEEXT"; then
50552 am__EXEEXT_FALSE='#'
50554 am__EXEEXT_TRUE='#'
50558 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
50559 as_fn_error $? "conditional \"AMDEP\" was never defined.
50560 Usually this means the macro was only invoked conditionally." "$LINENO" 5
50562 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
50563 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
50564 Usually this means the macro was only invoked conditionally." "$LINENO" 5
50566 if test -z "${am__fastdepCCAS_TRUE}" && test -z "${am__fastdepCCAS_FALSE}"; then
50567 as_fn_error $? "conditional \"am__fastdepCCAS\" was never defined.
50568 Usually this means the macro was only invoked conditionally." "$LINENO" 5
50570 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
50571 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
50572 Usually this means the macro was only invoked conditionally." "$LINENO" 5
50574 if test -z "${ENABLE_CXX_TRUE}" && test -z "${ENABLE_CXX_FALSE}"; then
50575 as_fn_error $? "conditional \"ENABLE_CXX\" was never defined.
50576 Usually this means the macro was only invoked conditionally." "$LINENO" 5
50578 if test -z "${WANT_TEST_SUITE_TRUE}" && test -z "${WANT_TEST_SUITE_FALSE}"; then
50579 as_fn_error $? "conditional \"WANT_TEST_SUITE\" was never defined.
50580 Usually this means the macro was only invoked conditionally." "$LINENO" 5
50582 if test -z "${WINDOWS_TRUE}" && test -z "${WINDOWS_FALSE}"; then
50583 as_fn_error $? "conditional \"WINDOWS\" was never defined.
50584 Usually this means the macro was only invoked conditionally." "$LINENO" 5
50586 if test -z "${MACOSX_TRUE}" && test -z "${MACOSX_FALSE}"; then
50587 as_fn_error $? "conditional \"MACOSX\" was never defined.
50588 Usually this means the macro was only invoked conditionally." "$LINENO" 5
50590 if test -z "${ELF_TRUE}" && test -z "${ELF_FALSE}"; then
50591 as_fn_error $? "conditional \"ELF\" was never defined.
50592 Usually this means the macro was only invoked conditionally." "$LINENO" 5
50594 if test -z "${ENABLE_PADLOCK_TRUE}" && test -z "${ENABLE_PADLOCK_FALSE}"; then
50595 as_fn_error $? "conditional \"ENABLE_PADLOCK\" was never defined.
50596 Usually this means the macro was only invoked conditionally." "$LINENO" 5
50598 if test -z "${ASM_X86_64_TRUE}" && test -z "${ASM_X86_64_FALSE}"; then
50599 as_fn_error $? "conditional \"ASM_X86_64\" was never defined.
50600 Usually this means the macro was only invoked conditionally." "$LINENO" 5
50602 if test -z "${ASM_X86_32_TRUE}" && test -z "${ASM_X86_32_FALSE}"; then
50603 as_fn_error $? "conditional \"ASM_X86_32\" was never defined.
50604 Usually this means the macro was only invoked conditionally." "$LINENO" 5
50606 if test -z "${ASM_X86_TRUE}" && test -z "${ASM_X86_FALSE}"; then
50607 as_fn_error $? "conditional \"ASM_X86\" was never defined.
50608 Usually this means the macro was only invoked conditionally." "$LINENO" 5
50610 if test -z "${HAVE_GCC_GNU89_INLINE_OPTION_TRUE}" && test -z "${HAVE_GCC_GNU89_INLINE_OPTION_FALSE}"; then
50611 as_fn_error $? "conditional \"HAVE_GCC_GNU89_INLINE_OPTION\" was never defined.
50612 Usually this means the macro was only invoked conditionally." "$LINENO" 5
50614 if test -z "${HAVE_GCC_TRUE}" && test -z "${HAVE_GCC_FALSE}"; then
50615 as_fn_error $? "conditional \"HAVE_GCC\" was never defined.
50616 Usually this means the macro was only invoked conditionally." "$LINENO" 5
50618 if test -z "${ENABLE_NETTLE_TRUE}" && test -z "${ENABLE_NETTLE_FALSE}"; then
50619 as_fn_error $? "conditional \"ENABLE_NETTLE\" was never defined.
50620 Usually this means the macro was only invoked conditionally." "$LINENO" 5
50622 if test -z "${USE_NETTLE3_TRUE}" && test -z "${USE_NETTLE3_FALSE}"; then
50623 as_fn_error $? "conditional \"USE_NETTLE3\" was never defined.
50624 Usually this means the macro was only invoked conditionally." "$LINENO" 5
50626 if test -z "${ENABLE_MINITASN1_TRUE}" && test -z "${ENABLE_MINITASN1_FALSE}"; then
50627 as_fn_error $? "conditional \"ENABLE_MINITASN1\" was never defined.
50628 Usually this means the macro was only invoked conditionally." "$LINENO" 5
50630 if test -z "${ENABLE_DTLS_SRTP_TRUE}" && test -z "${ENABLE_DTLS_SRTP_FALSE}"; then
50631 as_fn_error $? "conditional \"ENABLE_DTLS_SRTP\" was never defined.
50632 Usually this means the macro was only invoked conditionally." "$LINENO" 5
50634 if test -z "${ENABLE_ALPN_TRUE}" && test -z "${ENABLE_ALPN_FALSE}"; then
50635 as_fn_error $? "conditional \"ENABLE_ALPN\" was never defined.
50636 Usually this means the macro was only invoked conditionally." "$LINENO" 5
50638 if test -z "${ENABLE_RSA_EXPORT_TRUE}" && test -z "${ENABLE_RSA_EXPORT_FALSE}"; then
50639 as_fn_error $? "conditional \"ENABLE_RSA_EXPORT\" was never defined.
50640 Usually this means the macro was only invoked conditionally." "$LINENO" 5
50642 if test -z "${ENABLE_HEARTBEAT_TRUE}" && test -z "${ENABLE_HEARTBEAT_FALSE}"; then
50643 as_fn_error $? "conditional \"ENABLE_HEARTBEAT\" was never defined.
50644 Usually this means the macro was only invoked conditionally." "$LINENO" 5
50646 if test -z "${ENABLE_SRP_TRUE}" && test -z "${ENABLE_SRP_FALSE}"; then
50647 as_fn_error $? "conditional \"ENABLE_SRP\" was never defined.
50648 Usually this means the macro was only invoked conditionally." "$LINENO" 5
50650 if test -z "${ENABLE_PSK_TRUE}" && test -z "${ENABLE_PSK_FALSE}"; then
50651 as_fn_error $? "conditional \"ENABLE_PSK\" was never defined.
50652 Usually this means the macro was only invoked conditionally." "$LINENO" 5
50654 if test -z "${ENABLE_ANON_TRUE}" && test -z "${ENABLE_ANON_FALSE}"; then
50655 as_fn_error $? "conditional \"ENABLE_ANON\" was never defined.
50656 Usually this means the macro was only invoked conditionally." "$LINENO" 5
50658 if test -z "${ENABLE_DHE_TRUE}" && test -z "${ENABLE_DHE_FALSE}"; then
50659 as_fn_error $? "conditional \"ENABLE_DHE\" was never defined.
50660 Usually this means the macro was only invoked conditionally." "$LINENO" 5
50662 if test -z "${ENABLE_ECDHE_TRUE}" && test -z "${ENABLE_ECDHE_FALSE}"; then
50663 as_fn_error $? "conditional \"ENABLE_ECDHE\" was never defined.
50664 Usually this means the macro was only invoked conditionally." "$LINENO" 5
50666 if test -z "${ENABLE_OPENPGP_TRUE}" && test -z "${ENABLE_OPENPGP_FALSE}"; then
50667 as_fn_error $? "conditional \"ENABLE_OPENPGP\" was never defined.
50668 Usually this means the macro was only invoked conditionally." "$LINENO" 5
50670 if test -z "${ENABLE_OCSP_TRUE}" && test -z "${ENABLE_OCSP_FALSE}"; then
50671 as_fn_error $? "conditional \"ENABLE_OCSP\" was never defined.
50672 Usually this means the macro was only invoked conditionally." "$LINENO" 5
50674 if test -z "${ENABLE_SESSION_TICKETS_TRUE}" && test -z "${ENABLE_SESSION_TICKETS_FALSE}"; then
50675 as_fn_error $? "conditional \"ENABLE_SESSION_TICKETS\" was never defined.
50676 Usually this means the macro was only invoked conditionally." "$LINENO" 5
50678 if test -z "${ENABLE_OPENSSL_TRUE}" && test -z "${ENABLE_OPENSSL_FALSE}"; then
50679 as_fn_error $? "conditional \"ENABLE_OPENSSL\" was never defined.
50680 Usually this means the macro was only invoked conditionally." "$LINENO" 5
50682 if test -z "${ENABLE_DOC_TRUE}" && test -z "${ENABLE_DOC_FALSE}"; then
50683 as_fn_error $? "conditional \"ENABLE_DOC\" was never defined.
50684 Usually this means the macro was only invoked conditionally." "$LINENO" 5
50686 if test -z "${ENABLE_TESTS_TRUE}" && test -z "${ENABLE_TESTS_FALSE}"; then
50687 as_fn_error $? "conditional \"ENABLE_TESTS\" was never defined.
50688 Usually this means the macro was only invoked conditionally." "$LINENO" 5
50690 if test -z "${ENABLE_GTK_DOC_TRUE}" && test -z "${ENABLE_GTK_DOC_FALSE}"; then
50691 as_fn_error $? "conditional \"ENABLE_GTK_DOC\" was never defined.
50692 Usually this means the macro was only invoked conditionally." "$LINENO" 5
50694 if test -z "${GTK_DOC_BUILD_HTML_TRUE}" && test -z "${GTK_DOC_BUILD_HTML_FALSE}"; then
50695 as_fn_error $? "conditional \"GTK_DOC_BUILD_HTML\" was never defined.
50696 Usually this means the macro was only invoked conditionally." "$LINENO" 5
50698 if test -z "${GTK_DOC_BUILD_PDF_TRUE}" && test -z "${GTK_DOC_BUILD_PDF_FALSE}"; then
50699 as_fn_error $? "conditional \"GTK_DOC_BUILD_PDF\" was never defined.
50700 Usually this means the macro was only invoked conditionally." "$LINENO" 5
50702 if test -z "${GTK_DOC_USE_LIBTOOL_TRUE}" && test -z "${GTK_DOC_USE_LIBTOOL_FALSE}"; then
50703 as_fn_error $? "conditional \"GTK_DOC_USE_LIBTOOL\" was never defined.
50704 Usually this means the macro was only invoked conditionally." "$LINENO" 5
50706 if test -z "${GTK_DOC_USE_REBASE_TRUE}" && test -z "${GTK_DOC_USE_REBASE_FALSE}"; then
50707 as_fn_error $? "conditional \"GTK_DOC_USE_REBASE\" was never defined.
50708 Usually this means the macro was only invoked conditionally." "$LINENO" 5
50711 if test -z "${HAVE_FORK_TRUE}" && test -z "${HAVE_FORK_FALSE}"; then
50712 as_fn_error $? "conditional \"HAVE_FORK\" was never defined.
50713 Usually this means the macro was only invoked conditionally." "$LINENO" 5
50715 if test -z "${GL_COND_LIBTOOL_TRUE}" && test -z "${GL_COND_LIBTOOL_FALSE}"; then
50716 as_fn_error $? "conditional \"GL_COND_LIBTOOL\" was never defined.
50717 Usually this means the macro was only invoked conditionally." "$LINENO" 5
50719 if test -z "${GL_GENERATE_ALLOCA_H_TRUE}" && test -z "${GL_GENERATE_ALLOCA_H_FALSE}"; then
50720 as_fn_error $? "conditional \"GL_GENERATE_ALLOCA_H\" was never defined.
50721 Usually this means the macro was only invoked conditionally." "$LINENO" 5
50723 if test -z "${GL_GENERATE_BYTESWAP_H_TRUE}" && test -z "${GL_GENERATE_BYTESWAP_H_FALSE}"; then
50724 as_fn_error $? "conditional \"GL_GENERATE_BYTESWAP_H\" was never defined.
50725 Usually this means the macro was only invoked conditionally." "$LINENO" 5
50727 if test -z "${GL_GENERATE_ERRNO_H_TRUE}" && test -z "${GL_GENERATE_ERRNO_H_FALSE}"; then
50728 as_fn_error $? "conditional \"GL_GENERATE_ERRNO_H\" was never defined.
50729 Usually this means the macro was only invoked conditionally." "$LINENO" 5
50731 if test -z "${GL_GENERATE_FLOAT_H_TRUE}" && test -z "${GL_GENERATE_FLOAT_H_FALSE}"; then
50732 as_fn_error $? "conditional \"GL_GENERATE_FLOAT_H\" was never defined.
50733 Usually this means the macro was only invoked conditionally." "$LINENO" 5
50735 if test -z "${HAVE_LD_OUTPUT_DEF_TRUE}" && test -z "${HAVE_LD_OUTPUT_DEF_FALSE}"; then
50736 as_fn_error $? "conditional \"HAVE_LD_OUTPUT_DEF\" was never defined.
50737 Usually this means the macro was only invoked conditionally." "$LINENO" 5
50739 if test -z "${HAVE_LD_VERSION_SCRIPT_TRUE}" && test -z "${HAVE_LD_VERSION_SCRIPT_FALSE}"; then
50740 as_fn_error $? "conditional \"HAVE_LD_VERSION_SCRIPT\" was never defined.
50741 Usually this means the macro was only invoked conditionally." "$LINENO" 5
50743 CONFIG_INCLUDE=config.h
50745 if test -z "${GL_GENERATE_NETINET_IN_H_TRUE}" && test -z "${GL_GENERATE_NETINET_IN_H_FALSE}"; then
50746 as_fn_error $? "conditional \"GL_GENERATE_NETINET_IN_H\" was never defined.
50747 Usually this means the macro was only invoked conditionally." "$LINENO" 5
50749 if test -z "${GL_GENERATE_STDALIGN_H_TRUE}" && test -z "${GL_GENERATE_STDALIGN_H_FALSE}"; then
50750 as_fn_error $? "conditional \"GL_GENERATE_STDALIGN_H\" was never defined.
50751 Usually this means the macro was only invoked conditionally." "$LINENO" 5
50753 if test -z "${GL_GENERATE_STDBOOL_H_TRUE}" && test -z "${GL_GENERATE_STDBOOL_H_FALSE}"; then
50754 as_fn_error $? "conditional \"GL_GENERATE_STDBOOL_H\" was never defined.
50755 Usually this means the macro was only invoked conditionally." "$LINENO" 5
50757 if test -z "${GL_GENERATE_STDDEF_H_TRUE}" && test -z "${GL_GENERATE_STDDEF_H_FALSE}"; then
50758 as_fn_error $? "conditional \"GL_GENERATE_STDDEF_H\" was never defined.
50759 Usually this means the macro was only invoked conditionally." "$LINENO" 5
50761 if test -z "${GL_GENERATE_STDINT_H_TRUE}" && test -z "${GL_GENERATE_STDINT_H_FALSE}"; then
50762 as_fn_error $? "conditional \"GL_GENERATE_STDINT_H\" was never defined.
50763 Usually this means the macro was only invoked conditionally." "$LINENO" 5
50769 if test -n "$gl_LIBOBJS"; then
50770 # Remove the extension.
50771 sed_drop_objext='s/\.o$//;s/\.obj$//'
50772 for i in `for i in $gl_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
50773 gl_libobjs="$gl_libobjs $i.$ac_objext"
50774 gl_ltlibobjs="$gl_ltlibobjs $i.lo"
50777 gl_LIBOBJS=$gl_libobjs
50779 gl_LTLIBOBJS=$gl_ltlibobjs
50785 if test -n "$gltests_LIBOBJS"; then
50786 # Remove the extension.
50787 sed_drop_objext='s/\.o$//;s/\.obj$//'
50788 for i in `for i in $gltests_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
50789 gltests_libobjs="$gltests_libobjs $i.$ac_objext"
50790 gltests_ltlibobjs="$gltests_ltlibobjs $i.lo"
50793 gltests_LIBOBJS=$gltests_libobjs
50795 gltests_LTLIBOBJS=$gltests_ltlibobjs
50798 if test -z "${GL_COND_LIBTOOL_TRUE}" && test -z "${GL_COND_LIBTOOL_FALSE}"; then
50799 as_fn_error $? "conditional \"GL_COND_LIBTOOL\" was never defined.
50800 Usually this means the macro was only invoked conditionally." "$LINENO" 5
50802 if test -z "${GL_GENERATE_ALLOCA_H_TRUE}" && test -z "${GL_GENERATE_ALLOCA_H_FALSE}"; then
50803 as_fn_error $? "conditional \"GL_GENERATE_ALLOCA_H\" was never defined.
50804 Usually this means the macro was only invoked conditionally." "$LINENO" 5
50806 if test -z "${GL_GENERATE_FLOAT_H_TRUE}" && test -z "${GL_GENERATE_FLOAT_H_FALSE}"; then
50807 as_fn_error $? "conditional \"GL_GENERATE_FLOAT_H\" was never defined.
50808 Usually this means the macro was only invoked conditionally." "$LINENO" 5
50810 if test -z "${GL_GENERATE_NETINET_IN_H_TRUE}" && test -z "${GL_GENERATE_NETINET_IN_H_FALSE}"; then
50811 as_fn_error $? "conditional \"GL_GENERATE_NETINET_IN_H\" was never defined.
50812 Usually this means the macro was only invoked conditionally." "$LINENO" 5
50814 if test -z "${GL_GENERATE_STDALIGN_H_TRUE}" && test -z "${GL_GENERATE_STDALIGN_H_FALSE}"; then
50815 as_fn_error $? "conditional \"GL_GENERATE_STDALIGN_H\" was never defined.
50816 Usually this means the macro was only invoked conditionally." "$LINENO" 5
50818 if test -z "${GL_GENERATE_STDBOOL_H_TRUE}" && test -z "${GL_GENERATE_STDBOOL_H_FALSE}"; then
50819 as_fn_error $? "conditional \"GL_GENERATE_STDBOOL_H\" was never defined.
50820 Usually this means the macro was only invoked conditionally." "$LINENO" 5
50822 if test -z "${GL_GENERATE_STDDEF_H_TRUE}" && test -z "${GL_GENERATE_STDDEF_H_FALSE}"; then
50823 as_fn_error $? "conditional \"GL_GENERATE_STDDEF_H\" was never defined.
50824 Usually this means the macro was only invoked conditionally." "$LINENO" 5
50829 if test -n "$ggl_LIBOBJS"; then
50830 # Remove the extension.
50831 sed_drop_objext='s/\.o$//;s/\.obj$//'
50832 for i in `for i in $ggl_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
50833 ggl_libobjs="$ggl_libobjs $i.$ac_objext"
50834 ggl_ltlibobjs="$ggl_ltlibobjs $i.lo"
50837 ggl_LIBOBJS=$ggl_libobjs
50839 ggl_LTLIBOBJS=$ggl_ltlibobjs
50844 ggltests_ltlibobjs=
50845 if test -n "$ggltests_LIBOBJS"; then
50846 # Remove the extension.
50847 sed_drop_objext='s/\.o$//;s/\.obj$//'
50848 for i in `for i in $ggltests_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
50849 ggltests_libobjs="$ggltests_libobjs $i.$ac_objext"
50850 ggltests_ltlibobjs="$ggltests_ltlibobjs $i.lo"
50853 ggltests_LIBOBJS=$ggltests_libobjs
50855 ggltests_LTLIBOBJS=$ggltests_ltlibobjs
50858 if test -z "${ENABLE_FIPS140_TRUE}" && test -z "${ENABLE_FIPS140_FALSE}"; then
50859 as_fn_error $? "conditional \"ENABLE_FIPS140\" was never defined.
50860 Usually this means the macro was only invoked conditionally." "$LINENO" 5
50862 if test -z "${ENABLE_NON_SUITEB_CURVES_TRUE}" && test -z "${ENABLE_NON_SUITEB_CURVES_FALSE}"; then
50863 as_fn_error $? "conditional \"ENABLE_NON_SUITEB_CURVES\" was never defined.
50864 Usually this means the macro was only invoked conditionally." "$LINENO" 5
50866 if test -z "${ENABLE_SELF_CHECKS_TRUE}" && test -z "${ENABLE_SELF_CHECKS_FALSE}"; then
50867 as_fn_error $? "conditional \"ENABLE_SELF_CHECKS\" was never defined.
50868 Usually this means the macro was only invoked conditionally." "$LINENO" 5
50870 if test -z "${ENABLE_ARCFOUR128_TRUE}" && test -z "${ENABLE_ARCFOUR128_FALSE}"; then
50871 as_fn_error $? "conditional \"ENABLE_ARCFOUR128\" was never defined.
50872 Usually this means the macro was only invoked conditionally." "$LINENO" 5
50874 if test -z "${ENABLE_SSL3_TRUE}" && test -z "${ENABLE_SSL3_FALSE}"; then
50875 as_fn_error $? "conditional \"ENABLE_SSL3\" was never defined.
50876 Usually this means the macro was only invoked conditionally." "$LINENO" 5
50878 if test -z "${ENABLE_DANE_TRUE}" && test -z "${ENABLE_DANE_FALSE}"; then
50879 as_fn_error $? "conditional \"ENABLE_DANE\" was never defined.
50880 Usually this means the macro was only invoked conditionally." "$LINENO" 5
50882 if test -z "${ENABLE_PKCS11_TRUE}" && test -z "${ENABLE_PKCS11_FALSE}"; then
50883 as_fn_error $? "conditional \"ENABLE_PKCS11\" was never defined.
50884 Usually this means the macro was only invoked conditionally." "$LINENO" 5
50886 if test -z "${HAVE_BUGGY_P11_KIT_TRUE}" && test -z "${HAVE_BUGGY_P11_KIT_FALSE}"; then
50887 as_fn_error $? "conditional \"HAVE_BUGGY_P11_KIT\" was never defined.
50888 Usually this means the macro was only invoked conditionally." "$LINENO" 5
50890 if test -z "${ENABLE_TROUSERS_TRUE}" && test -z "${ENABLE_TROUSERS_FALSE}"; then
50891 as_fn_error $? "conditional \"ENABLE_TROUSERS\" was never defined.
50892 Usually this means the macro was only invoked conditionally." "$LINENO" 5
50894 if test -z "${GL_GENERATE_STDNORETURN_H_TRUE}" && test -z "${GL_GENERATE_STDNORETURN_H_FALSE}"; then
50895 as_fn_error $? "conditional \"GL_GENERATE_STDNORETURN_H\" was never defined.
50896 Usually this means the macro was only invoked conditionally." "$LINENO" 5
50898 if test -z "${INSTALL_LIBOPTS_TRUE}" && test -z "${INSTALL_LIBOPTS_FALSE}"; then
50899 as_fn_error $? "conditional \"INSTALL_LIBOPTS\" was never defined.
50900 Usually this means the macro was only invoked conditionally." "$LINENO" 5
50902 if test -z "${NEED_LIBOPTS_TRUE}" && test -z "${NEED_LIBOPTS_FALSE}"; then
50903 as_fn_error $? "conditional \"NEED_LIBOPTS\" was never defined.
50904 Usually this means the macro was only invoked conditionally." "$LINENO" 5
50906 if test -z "${NEED_LIBOPTS_TRUE}" && test -z "${NEED_LIBOPTS_FALSE}"; then
50907 as_fn_error $? "conditional \"NEED_LIBOPTS\" was never defined.
50908 Usually this means the macro was only invoked conditionally." "$LINENO" 5
50910 if test -z "${HAVE_GUILE_TRUE}" && test -z "${HAVE_GUILE_FALSE}"; then
50911 as_fn_error $? "conditional \"HAVE_GUILE\" was never defined.
50912 Usually this means the macro was only invoked conditionally." "$LINENO" 5
50914 if test -z "${NEEDS_LIBRT_TRUE}" && test -z "${NEEDS_LIBRT_FALSE}"; then
50915 as_fn_error $? "conditional \"NEEDS_LIBRT\" was never defined.
50916 Usually this means the macro was only invoked conditionally." "$LINENO" 5
50918 if test -z "${ENABLE_CRYWRAP_TRUE}" && test -z "${ENABLE_CRYWRAP_FALSE}"; then
50919 as_fn_error $? "conditional \"ENABLE_CRYWRAP\" was never defined.
50920 Usually this means the macro was only invoked conditionally." "$LINENO" 5
50923 : "${CONFIG_STATUS=./config.status}"
50925 ac_clean_files_save=$ac_clean_files
50926 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
50927 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
50928 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
50930 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
50932 # Generated by $as_me.
50933 # Run this file to recreate the current configuration.
50934 # Compiler output produced by configure, useful for debugging
50935 # configure, is in config.log if it exists.
50938 ac_cs_recheck=false
50941 SHELL=\${CONFIG_SHELL-$SHELL}
50944 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
50945 ## -------------------- ##
50946 ## M4sh Initialization. ##
50947 ## -------------------- ##
50949 # Be more Bourne compatible
50950 DUALCASE=1; export DUALCASE # for MKS sh
50951 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
50954 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
50955 # is contrary to our usage. Disable this feature.
50956 alias -g '${1+"$@"}'='"$@"'
50957 setopt NO_GLOB_SUBST
50959 case `(set -o) 2>/dev/null` in #(
50971 # Printing a long string crashes Solaris 7 /usr/bin/printf.
50972 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
50973 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
50974 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
50975 # Prefer a ksh shell builtin over an external printf program on Solaris,
50976 # but without wasting forks for bash or zsh.
50977 if test -z "$BASH_VERSION$ZSH_VERSION" \
50978 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
50979 as_echo='print -r --'
50980 as_echo_n='print -rn --'
50981 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50982 as_echo='printf %s\n'
50983 as_echo_n='printf %s'
50985 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
50986 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
50987 as_echo_n='/usr/ucb/echo -n'
50989 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
50990 as_echo_n_body='eval
50994 expr "X$arg" : "X\\(.*\\)$as_nl";
50995 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
50997 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
50999 export as_echo_n_body
51000 as_echo_n='sh -c $as_echo_n_body as_echo'
51002 export as_echo_body
51003 as_echo='sh -c $as_echo_body as_echo'
51006 # The user is always right.
51007 if test "${PATH_SEPARATOR+set}" != set; then
51009 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
51010 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
51017 # We need space, tab and new line, in precisely that order. Quoting is
51018 # there to prevent editors from complaining about space-tab.
51019 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
51020 # splitting by setting IFS to empty value.)
51023 # Find who we are. Look in the path if we contain no directory separator.
51026 *[\\/]* ) as_myself=$0 ;;
51027 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
51028 for as_dir in $PATH
51031 test -z "$as_dir" && as_dir=.
51032 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
51038 # We did not find ourselves, most probably we were run as `sh COMMAND'
51039 # in which case we are not to be found in the path.
51040 if test "x$as_myself" = x; then
51043 if test ! -f "$as_myself"; then
51044 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
51048 # Unset variables that we do not need and which cause bugs (e.g. in
51049 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
51050 # suppresses any "Segmentation fault" message there. '((' could
51051 # trigger a bug in pdksh 5.2.14.
51052 for as_var in BASH_ENV ENV MAIL MAILPATH
51053 do eval test x\${$as_var+set} = xset \
51054 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
51067 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
51070 # as_fn_error STATUS ERROR [LINENO LOG_FD]
51071 # ----------------------------------------
51072 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
51073 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
51074 # script with STATUS, using 1 if that was 0.
51077 as_status=$1; test $as_status -eq 0 && as_status=1
51079 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
51080 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
51082 $as_echo "$as_me: error: $2" >&2
51083 as_fn_exit $as_status
51087 # as_fn_set_status STATUS
51088 # -----------------------
51089 # Set $? to STATUS, without forking.
51090 as_fn_set_status ()
51093 } # as_fn_set_status
51095 # as_fn_exit STATUS
51096 # -----------------
51097 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
51101 as_fn_set_status $1
51107 # Portably unset VAR.
51110 { eval $1=; unset $1;}
51112 as_unset=as_fn_unset
51113 # as_fn_append VAR VALUE
51114 # ----------------------
51115 # Append the text in VALUE to the end of the definition contained in VAR. Take
51116 # advantage of any shell optimizations that allow amortized linear growth over
51117 # repeated appends, instead of the typical quadratic growth present in naive
51119 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
51120 eval 'as_fn_append ()
51131 # as_fn_arith ARG...
51132 # ------------------
51133 # Perform arithmetic evaluation on the ARGs, and store the result in the
51134 # global $as_val. Take advantage of shells that can avoid forks. The arguments
51135 # must be portable across $(()) and expr.
51136 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
51137 eval 'as_fn_arith ()
51144 as_val=`expr "$@" || test $? -eq 1`
51149 if expr a : '\(a\)' >/dev/null 2>&1 &&
51150 test "X`expr 00001 : '.*\(...\)'`" = X001; then
51156 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
51157 as_basename=basename
51162 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
51168 as_me=`$as_basename -- "$0" ||
51169 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
51170 X"$0" : 'X\(//\)$' \| \
51171 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
51173 sed '/^.*\/\([^/][^/]*\)\/*$/{
51187 # Avoid depending upon Character Ranges.
51188 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
51189 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
51190 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
51191 as_cr_digits='0123456789'
51192 as_cr_alnum=$as_cr_Letters$as_cr_digits
51194 ECHO_C= ECHO_N= ECHO_T=
51195 case `echo -n x` in #(((((
51197 case `echo 'xy\c'` in
51198 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
51200 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
51207 rm -f conf$$ conf$$.exe conf$$.file
51208 if test -d conf$$.dir; then
51209 rm -f conf$$.dir/conf$$.file
51212 mkdir conf$$.dir 2>/dev/null
51214 if (echo >conf$$.file) 2>/dev/null; then
51215 if ln -s conf$$.file conf$$ 2>/dev/null; then
51217 # ... but there are two gotchas:
51218 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
51219 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
51220 # In both cases, we have to default to `cp -pR'.
51221 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
51223 elif ln conf$$.file conf$$ 2>/dev/null; then
51231 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
51232 rmdir conf$$.dir 2>/dev/null
51237 # Create "$as_dir" as a directory, including parents if necessary.
51242 -*) as_dir=./$as_dir;;
51244 test -d "$as_dir" || eval $as_mkdir_p || {
51248 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
51249 *) as_qdir=$as_dir;;
51251 as_dirs="'$as_qdir' $as_dirs"
51252 as_dir=`$as_dirname -- "$as_dir" ||
51253 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
51254 X"$as_dir" : 'X\(//\)[^/]' \| \
51255 X"$as_dir" : 'X\(//\)$' \| \
51256 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
51257 $as_echo X"$as_dir" |
51258 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
51262 /^X\(\/\/\)[^/].*/{
51275 test -d "$as_dir" && break
51277 test -z "$as_dirs" || eval "mkdir $as_dirs"
51278 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
51282 if mkdir -p . 2>/dev/null; then
51283 as_mkdir_p='mkdir -p "$as_dir"'
51285 test -d ./-p && rmdir ./-p
51290 # as_fn_executable_p FILE
51291 # -----------------------
51292 # Test if FILE is an executable regular file.
51293 as_fn_executable_p ()
51295 test -f "$1" && test -x "$1"
51296 } # as_fn_executable_p
51297 as_test_x='test -x'
51298 as_executable_p=as_fn_executable_p
51300 # Sed expression to map a string onto a valid CPP name.
51301 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
51303 # Sed expression to map a string onto a valid variable name.
51304 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
51308 ## ----------------------------------- ##
51309 ## Main body of $CONFIG_STATUS script. ##
51310 ## ----------------------------------- ##
51312 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
51314 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
51315 # Save the log message, to keep $0 and so on meaningful, and to
51316 # report actual input values of CONFIG_FILES etc. instead of their
51317 # values after options handling.
51319 This file was extended by GnuTLS $as_me 3.3.27, which was
51320 generated by GNU Autoconf 2.69. Invocation command line was
51322 CONFIG_FILES = $CONFIG_FILES
51323 CONFIG_HEADERS = $CONFIG_HEADERS
51324 CONFIG_LINKS = $CONFIG_LINKS
51325 CONFIG_COMMANDS = $CONFIG_COMMANDS
51328 on `(hostname || uname -n) 2>/dev/null | sed 1q`
51333 case $ac_config_files in *"
51334 "*) set x $ac_config_files; shift; ac_config_files=$*;;
51337 case $ac_config_headers in *"
51338 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
51342 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
51343 # Files that config.status was made for.
51344 config_files="$ac_config_files"
51345 config_headers="$ac_config_headers"
51346 config_links="$ac_config_links"
51347 config_commands="$ac_config_commands"
51351 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
51353 \`$as_me' instantiates files and other configuration actions
51354 from templates according to the current configuration. Unless the files
51355 and actions are specified as TAGs, all are instantiated by default.
51357 Usage: $0 [OPTION]... [TAG]...
51359 -h, --help print this help, then exit
51360 -V, --version print version number and configuration settings, then exit
51361 --config print configuration, then exit
51362 -q, --quiet, --silent
51363 do not print progress messages
51364 -d, --debug don't remove temporary files
51365 --recheck update $as_me by reconfiguring in the same conditions
51366 --file=FILE[:TEMPLATE]
51367 instantiate the configuration file FILE
51368 --header=FILE[:TEMPLATE]
51369 instantiate the configuration header FILE
51371 Configuration files:
51374 Configuration headers:
51377 Configuration links:
51380 Configuration commands:
51383 Report bugs to <bugs@gnutls.org>."
51386 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
51387 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
51389 GnuTLS config.status 3.3.27
51390 configured by $0, generated by GNU Autoconf 2.69,
51391 with options \\"\$ac_cs_config\\"
51393 Copyright (C) 2012 Free Software Foundation, Inc.
51394 This config.status script is free software; the Free Software Foundation
51395 gives unlimited permission to copy, distribute and modify it."
51402 test -n "\$AWK" || AWK=awk
51405 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
51406 # The default lists apply if the user does not specify any file.
51412 ac_option=`expr "X$1" : 'X\([^=]*\)='`
51413 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
51417 ac_option=`expr "X$1" : 'X\([^=]*\)='`
51429 # Handling of the options.
51430 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
51432 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
51433 $as_echo "$ac_cs_version"; exit ;;
51434 --config | --confi | --conf | --con | --co | --c )
51435 $as_echo "$ac_cs_config"; exit ;;
51436 --debug | --debu | --deb | --de | --d | -d )
51438 --file | --fil | --fi | --f )
51441 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
51442 '') as_fn_error $? "missing file argument" ;;
51444 as_fn_append CONFIG_FILES " '$ac_optarg'"
51445 ac_need_defaults=false;;
51446 --header | --heade | --head | --hea )
51449 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
51451 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
51452 ac_need_defaults=false;;
51454 # Conflict between --help and --header
51455 as_fn_error $? "ambiguous option: \`$1'
51456 Try \`$0 --help' for more information.";;
51457 --help | --hel | -h )
51458 $as_echo "$ac_cs_usage"; exit ;;
51459 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
51460 | -silent | --silent | --silen | --sile | --sil | --si | --s)
51463 # This is an error.
51464 -*) as_fn_error $? "unrecognized option: \`$1'
51465 Try \`$0 --help' for more information." ;;
51467 *) as_fn_append ac_config_targets " $1"
51468 ac_need_defaults=false ;;
51474 ac_configure_extra_args=
51476 if $ac_cs_silent; then
51478 ac_configure_extra_args="$ac_configure_extra_args --silent"
51482 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
51483 if \$ac_cs_recheck; then
51484 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
51486 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
51487 CONFIG_SHELL='$SHELL'
51488 export CONFIG_SHELL
51493 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
51497 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
51498 ## Running $as_me. ##
51504 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
51508 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
51509 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
51510 # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
51511 # from automake < 1.5.
51512 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
51513 # Capture the value of LINGUAS because we need it to compute CATALOGS.
51514 LINGUAS="${LINGUAS-%UNSET%}"
51516 GNUmakefile=$GNUmakefile
51519 # The HP-UX ksh and POSIX shell print the target directory to stdout
51520 # if CDPATH is set.
51521 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
51523 sed_quote_subst='$sed_quote_subst'
51524 double_quote_subst='$double_quote_subst'
51525 delay_variable_subst='$delay_variable_subst'
51526 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
51527 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
51528 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
51529 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
51530 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
51531 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
51532 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
51533 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
51534 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
51535 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
51536 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
51537 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
51538 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
51539 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
51540 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
51541 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
51542 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
51543 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
51544 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
51545 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
51546 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
51547 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
51548 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
51549 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
51550 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
51551 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
51552 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
51553 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
51554 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
51555 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
51556 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
51557 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
51558 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
51559 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
51560 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
51561 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
51562 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
51563 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
51564 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
51565 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
51566 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
51567 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
51568 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
51569 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
51570 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
51571 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
51572 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
51573 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
51574 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
51575 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
51576 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
51577 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
51578 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
51579 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
51580 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
51581 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
51582 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"`'
51583 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
51584 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
51585 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
51586 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
51587 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
51588 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
51589 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
51590 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
51591 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
51592 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
51593 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
51594 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
51595 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
51596 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
51597 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
51598 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
51599 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
51600 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
51601 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
51602 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
51603 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
51604 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
51605 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
51606 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
51607 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
51608 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
51609 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
51610 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
51611 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
51612 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
51613 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
51614 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
51615 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
51616 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
51617 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
51618 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
51619 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
51620 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
51621 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
51622 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
51623 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
51624 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
51625 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
51626 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
51627 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
51628 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
51629 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
51630 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
51631 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
51632 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
51633 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
51634 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
51635 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
51636 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
51637 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
51638 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
51639 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
51640 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
51641 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
51642 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
51643 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
51644 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
51645 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
51646 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
51647 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
51648 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
51649 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
51650 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
51651 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
51652 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
51653 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
51654 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
51655 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
51656 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
51657 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
51658 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
51659 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
51660 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
51661 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
51662 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
51663 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
51664 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
51665 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
51666 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
51667 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
51668 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
51669 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
51670 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
51671 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
51672 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
51673 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
51674 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
51675 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
51676 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
51677 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
51678 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
51679 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
51680 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
51681 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
51682 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
51683 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
51684 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
51685 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
51686 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
51687 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
51688 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
51689 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
51690 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
51691 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
51692 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
51693 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
51694 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
51695 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
51696 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
51697 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
51698 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
51699 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
51700 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
51701 postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
51702 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
51703 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
51704 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
51705 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
51706 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
51707 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
51708 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
51709 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
51712 LTCFLAGS='$LTCFLAGS'
51713 compiler='$compiler_DEFAULT'
51715 # A function that is used when there is no print builtin or printf.
51716 func_fallback_echo ()
51718 eval 'cat <<_LTECHO_EOF
51723 # Quote evaled strings.
51738 deplibs_check_method \
51743 sharedlib_from_linklib_cmd \
51746 archiver_list_spec \
51752 lt_cv_sys_global_symbol_pipe \
51753 lt_cv_sys_global_symbol_to_cdecl \
51754 lt_cv_sys_global_symbol_to_c_name_address \
51755 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
51756 nm_file_list_spec \
51757 lt_prog_compiler_no_builtin_flag \
51758 lt_prog_compiler_pic \
51759 lt_prog_compiler_wl \
51760 lt_prog_compiler_static \
51761 lt_cv_prog_compiler_c_o \
51770 export_dynamic_flag_spec \
51771 whole_archive_flag_spec \
51772 compiler_needs_object \
51774 allow_undefined_flag \
51775 no_undefined_flag \
51776 hardcode_libdir_flag_spec \
51777 hardcode_libdir_separator \
51781 variables_saved_for_relink \
51783 library_names_spec \
51785 install_override_mode \
51789 compiler_lib_search_dirs \
51794 compiler_lib_search_path \
51798 lt_prog_compiler_no_builtin_flag_CXX \
51799 lt_prog_compiler_pic_CXX \
51800 lt_prog_compiler_wl_CXX \
51801 lt_prog_compiler_static_CXX \
51802 lt_cv_prog_compiler_c_o_CXX \
51803 export_dynamic_flag_spec_CXX \
51804 whole_archive_flag_spec_CXX \
51805 compiler_needs_object_CXX \
51807 allow_undefined_flag_CXX \
51808 no_undefined_flag_CXX \
51809 hardcode_libdir_flag_spec_CXX \
51810 hardcode_libdir_separator_CXX \
51811 exclude_expsyms_CXX \
51812 include_expsyms_CXX \
51813 file_list_spec_CXX \
51814 compiler_lib_search_dirs_CXX \
51815 predep_objects_CXX \
51816 postdep_objects_CXX \
51819 compiler_lib_search_path_CXX; do
51820 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
51821 *[\\\\\\\`\\"\\\$]*)
51822 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
51825 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
51830 # Double-quote double-evaled strings.
51831 for var in reload_cmds \
51832 old_postinstall_cmds \
51833 old_postuninstall_cmds \
51835 extract_expsyms_cmds \
51836 old_archive_from_new_cmds \
51837 old_archive_from_expsyms_cmds \
51839 archive_expsym_cmds \
51841 module_expsym_cmds \
51842 export_symbols_cmds \
51846 postuninstall_cmds \
51848 sys_lib_search_path_spec \
51849 sys_lib_dlsearch_path_spec \
51851 old_archive_cmds_CXX \
51852 old_archive_from_new_cmds_CXX \
51853 old_archive_from_expsyms_cmds_CXX \
51855 archive_expsym_cmds_CXX \
51857 module_expsym_cmds_CXX \
51858 export_symbols_cmds_CXX \
51860 postlink_cmds_CXX; do
51861 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
51862 *[\\\\\\\`\\"\\\$]*)
51863 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
51866 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
51871 ac_aux_dir='$ac_aux_dir'
51872 xsi_shell='$xsi_shell'
51873 lt_shell_append='$lt_shell_append'
51875 # See if we are running on zsh, and set the options which allow our
51876 # commands through without removal of \ escapes INIT.
51877 if test -n "\${ZSH_VERSION+set}" ; then
51878 setopt NO_GLOB_SUBST
51884 TIMESTAMP='$TIMESTAMP'
51895 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
51897 # Handling of arguments.
51898 for ac_config_target in $ac_config_targets
51900 case $ac_config_target in
51901 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
51902 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
51903 "po-directories") CONFIG_COMMANDS="$CONFIG_COMMANDS po-directories" ;;
51904 "$GNUmakefile") CONFIG_LINKS="$CONFIG_LINKS $GNUmakefile:$GNUmakefile" ;;
51905 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
51906 "src/libopts/Makefile") CONFIG_FILES="$CONFIG_FILES src/libopts/Makefile" ;;
51907 "guile/pre-inst-guile") CONFIG_FILES="$CONFIG_FILES guile/pre-inst-guile" ;;
51908 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
51909 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
51910 "doc/credentials/Makefile") CONFIG_FILES="$CONFIG_FILES doc/credentials/Makefile" ;;
51911 "doc/credentials/openpgp/Makefile") CONFIG_FILES="$CONFIG_FILES doc/credentials/openpgp/Makefile" ;;
51912 "doc/credentials/srp/Makefile") CONFIG_FILES="$CONFIG_FILES doc/credentials/srp/Makefile" ;;
51913 "doc/credentials/x509/Makefile") CONFIG_FILES="$CONFIG_FILES doc/credentials/x509/Makefile" ;;
51914 "doc/cyclo/Makefile") CONFIG_FILES="$CONFIG_FILES doc/cyclo/Makefile" ;;
51915 "doc/doxygen/Doxyfile") CONFIG_FILES="$CONFIG_FILES doc/doxygen/Doxyfile" ;;
51916 "doc/examples/Makefile") CONFIG_FILES="$CONFIG_FILES doc/examples/Makefile" ;;
51917 "doc/latex/Makefile") CONFIG_FILES="$CONFIG_FILES doc/latex/Makefile" ;;
51918 "doc/manpages/Makefile") CONFIG_FILES="$CONFIG_FILES doc/manpages/Makefile" ;;
51919 "doc/reference/Makefile") CONFIG_FILES="$CONFIG_FILES doc/reference/Makefile" ;;
51920 "doc/reference/version.xml") CONFIG_FILES="$CONFIG_FILES doc/reference/version.xml" ;;
51921 "doc/scripts/Makefile") CONFIG_FILES="$CONFIG_FILES doc/scripts/Makefile" ;;
51922 "extra/Makefile") CONFIG_FILES="$CONFIG_FILES extra/Makefile" ;;
51923 "extra/includes/Makefile") CONFIG_FILES="$CONFIG_FILES extra/includes/Makefile" ;;
51924 "libdane/Makefile") CONFIG_FILES="$CONFIG_FILES libdane/Makefile" ;;
51925 "libdane/includes/Makefile") CONFIG_FILES="$CONFIG_FILES libdane/includes/Makefile" ;;
51926 "libdane/gnutls-dane.pc") CONFIG_FILES="$CONFIG_FILES libdane/gnutls-dane.pc" ;;
51927 "gl/Makefile") CONFIG_FILES="$CONFIG_FILES gl/Makefile" ;;
51928 "gl/tests/Makefile") CONFIG_FILES="$CONFIG_FILES gl/tests/Makefile" ;;
51929 "guile/Makefile") CONFIG_FILES="$CONFIG_FILES guile/Makefile" ;;
51930 "guile/modules/Makefile") CONFIG_FILES="$CONFIG_FILES guile/modules/Makefile" ;;
51931 "guile/src/Makefile") CONFIG_FILES="$CONFIG_FILES guile/src/Makefile" ;;
51932 "guile/tests/Makefile") CONFIG_FILES="$CONFIG_FILES guile/tests/Makefile" ;;
51933 "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
51934 "lib/accelerated/Makefile") CONFIG_FILES="$CONFIG_FILES lib/accelerated/Makefile" ;;
51935 "lib/accelerated/x86/Makefile") CONFIG_FILES="$CONFIG_FILES lib/accelerated/x86/Makefile" ;;
51936 "lib/algorithms/Makefile") CONFIG_FILES="$CONFIG_FILES lib/algorithms/Makefile" ;;
51937 "lib/auth/Makefile") CONFIG_FILES="$CONFIG_FILES lib/auth/Makefile" ;;
51938 "lib/ext/Makefile") CONFIG_FILES="$CONFIG_FILES lib/ext/Makefile" ;;
51939 "lib/extras/Makefile") CONFIG_FILES="$CONFIG_FILES lib/extras/Makefile" ;;
51940 "lib/gnutls.pc") CONFIG_FILES="$CONFIG_FILES lib/gnutls.pc" ;;
51941 "lib/includes/Makefile") CONFIG_FILES="$CONFIG_FILES lib/includes/Makefile" ;;
51942 "lib/includes/gnutls/gnutls.h") CONFIG_FILES="$CONFIG_FILES lib/includes/gnutls/gnutls.h" ;;
51943 "lib/minitasn1/Makefile") CONFIG_FILES="$CONFIG_FILES lib/minitasn1/Makefile" ;;
51944 "lib/nettle/Makefile") CONFIG_FILES="$CONFIG_FILES lib/nettle/Makefile" ;;
51945 "lib/opencdk/Makefile") CONFIG_FILES="$CONFIG_FILES lib/opencdk/Makefile" ;;
51946 "lib/openpgp/Makefile") CONFIG_FILES="$CONFIG_FILES lib/openpgp/Makefile" ;;
51947 "lib/x509/Makefile") CONFIG_FILES="$CONFIG_FILES lib/x509/Makefile" ;;
51948 "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
51949 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
51950 "src/crywrap/Makefile") CONFIG_FILES="$CONFIG_FILES src/crywrap/Makefile" ;;
51951 "src/gl/Makefile") CONFIG_FILES="$CONFIG_FILES src/gl/Makefile" ;;
51952 "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
51953 "tests/cert-tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/cert-tests/Makefile" ;;
51954 "tests/dsa/Makefile") CONFIG_FILES="$CONFIG_FILES tests/dsa/Makefile" ;;
51955 "tests/dtls/Makefile") CONFIG_FILES="$CONFIG_FILES tests/dtls/Makefile" ;;
51956 "tests/srp/Makefile") CONFIG_FILES="$CONFIG_FILES tests/srp/Makefile" ;;
51957 "tests/ecdsa/Makefile") CONFIG_FILES="$CONFIG_FILES tests/ecdsa/Makefile" ;;
51958 "tests/key-tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/key-tests/Makefile" ;;
51959 "tests/openpgp-certs/Makefile") CONFIG_FILES="$CONFIG_FILES tests/openpgp-certs/Makefile" ;;
51960 "tests/pkcs1-padding/Makefile") CONFIG_FILES="$CONFIG_FILES tests/pkcs1-padding/Makefile" ;;
51961 "tests/pkcs12-decode/Makefile") CONFIG_FILES="$CONFIG_FILES tests/pkcs12-decode/Makefile" ;;
51962 "tests/pkcs8-decode/Makefile") CONFIG_FILES="$CONFIG_FILES tests/pkcs8-decode/Makefile" ;;
51963 "tests/rsa-md5-collision/Makefile") CONFIG_FILES="$CONFIG_FILES tests/rsa-md5-collision/Makefile" ;;
51964 "tests/safe-renegotiation/Makefile") CONFIG_FILES="$CONFIG_FILES tests/safe-renegotiation/Makefile" ;;
51965 "tests/scripts/Makefile") CONFIG_FILES="$CONFIG_FILES tests/scripts/Makefile" ;;
51966 "tests/sha2/Makefile") CONFIG_FILES="$CONFIG_FILES tests/sha2/Makefile" ;;
51967 "tests/slow/Makefile") CONFIG_FILES="$CONFIG_FILES tests/slow/Makefile" ;;
51968 "tests/suite/Makefile") CONFIG_FILES="$CONFIG_FILES tests/suite/Makefile" ;;
51969 "tests/userid/Makefile") CONFIG_FILES="$CONFIG_FILES tests/userid/Makefile" ;;
51971 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
51976 # If the user did not use the arguments to specify the items to instantiate,
51977 # then the envvar interface is used. Set only those that are not.
51978 # We use the long form for the default assignment because of an extremely
51979 # bizarre bug on SunOS 4.1.3.
51980 if $ac_need_defaults; then
51981 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
51982 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
51983 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
51984 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
51987 # Have a temporary directory for convenience. Make it in the build tree
51988 # simply because there is no reason against having it here, and in addition,
51989 # creating and moving files from /tmp can sometimes cause problems.
51990 # Hook for its removal unless debugging.
51991 # Note that there is a small window in which the directory will not be cleaned:
51992 # after its creation but before its name has been assigned to `$tmp'.
51996 trap 'exit_status=$?
51997 : "${ac_tmp:=$tmp}"
51998 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
52000 trap 'as_fn_exit 1' 1 2 13 15
52002 # Create a (secure) tmp directory for tmp files.
52005 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
52009 tmp=./conf$$-$RANDOM
52010 (umask 077 && mkdir "$tmp")
52011 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
52014 # Set up the scripts for CONFIG_FILES section.
52015 # No need to generate them if there are no CONFIG_FILES.
52016 # This happens for instance with `./config.status config.h'.
52017 if test -n "$CONFIG_FILES"; then
52020 ac_cr=`echo X | tr X '\015'`
52021 # On cygwin, bash can eat \r inside `` if the user requested igncr.
52022 # But we know of no other shell where ac_cr would be empty at this
52023 # point, so we can use a bashism as a fallback.
52024 if test "x$ac_cr" = x; then
52025 eval ac_cr=\$\'\\r\'
52027 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
52028 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
52031 ac_cs_awk_cr=$ac_cr
52034 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
52039 echo "cat >conf$$subs.awk <<_ACEOF" &&
52040 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
52042 } >conf$$subs.sh ||
52043 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
52044 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
52046 for ac_last_try in false false false false false :; do
52047 . ./conf$$subs.sh ||
52048 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
52050 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
52051 if test $ac_delim_n = $ac_delim_num; then
52053 elif $ac_last_try; then
52054 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
52056 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
52059 rm -f conf$$subs.sh
52061 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
52062 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
52066 s/^/S["/; s/!.*/"]=/
52076 s/\(.\{148\}\)..*/\1/
52078 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
52083 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
52090 s/\(.\{148\}\)..*/\1/
52092 s/["\\]/\\&/g; s/^/"/; s/$/"/
52096 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
52101 ' <conf$$subs.awk | sed '
52106 ' >>$CONFIG_STATUS || ac_write_fail=1
52107 rm -f conf$$subs.awk
52108 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
52110 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
52111 for (key in S) S_is_set[key] = 1
52117 nfields = split(line, field, "@")
52119 len = length(field[1])
52120 for (i = 2; i < nfields; i++) {
52122 keylen = length(key)
52123 if (S_is_set[key]) {
52125 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
52126 len += length(value) + length(field[++i])
52137 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
52138 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
52139 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
52142 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
52143 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
52146 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
52147 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
52148 # trailing colons and then remove the whole line if VPATH becomes empty
52149 # (actually we leave an empty line to preserve line numbers).
52150 if test "x$srcdir" = x.; then
52151 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
52169 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
52170 fi # test -n "$CONFIG_FILES"
52172 # Set up the scripts for CONFIG_HEADERS section.
52173 # No need to generate them if there are no CONFIG_HEADERS.
52174 # This happens for instance with `./config.status Makefile'.
52175 if test -n "$CONFIG_HEADERS"; then
52176 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
52180 # Transform confdefs.h into an awk script `defines.awk', embedded as
52181 # here-document in config.status, that substitutes the proper values into
52182 # config.h.in to produce config.h.
52184 # Create a delimiter string that does not exist in confdefs.h, to ease
52185 # handling of long lines.
52187 for ac_last_try in false false :; do
52188 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
52189 if test -z "$ac_tt"; then
52191 elif $ac_last_try; then
52192 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
52194 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
52198 # For the awk script, D is an array of macro values keyed by name,
52199 # likewise P contains macro parameters if any. Preserve backslash
52200 # newline sequences.
52202 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
52204 s/.\{148\}/&'"$ac_delim"'/g
52207 s/^[ ]*#[ ]*define[ ][ ]*/ /
52214 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
52216 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
52220 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
52221 D["\1"]=" \3\\\\\\n"\\/p
52223 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
52228 s/.\{148\}/&'"$ac_delim"'/g
52233 s/["\\]/\\&/g; s/^/"/; s/$/"/p
52236 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
52238 ' <confdefs.h | sed '
52239 s/'"$ac_delim"'/"\\\
52240 "/g' >>$CONFIG_STATUS || ac_write_fail=1
52242 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
52243 for (key in D) D_is_set[key] = 1
52246 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
52248 split(line, arg, " ")
52249 if (arg[1] == "#") {
52253 defundef = substr(arg[1], 2)
52256 split(mac1, mac2, "(") #)
52258 prefix = substr(line, 1, index(line, defundef) - 1)
52259 if (D_is_set[macro]) {
52260 # Preserve the white space surrounding the "#".
52261 print prefix "define", macro P[macro] D[macro]
52264 # Replace #undef with comments. This is necessary, for example,
52265 # in the case of _POSIX_SOURCE, which is predefined and required
52266 # on some systems where configure will not decide to define it.
52267 if (defundef == "undef") {
52268 print "/*", prefix defundef, macro, "*/"
52276 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
52277 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
52278 fi # test -n "$CONFIG_HEADERS"
52281 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :L $CONFIG_LINKS :C $CONFIG_COMMANDS"
52286 :[FHLC]) ac_mode=$ac_tag; continue;;
52288 case $ac_mode$ac_tag in
52290 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
52291 :[FH]-) ac_tag=-:-;;
52292 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
52309 -) ac_f="$ac_tmp/stdin";;
52310 *) # Look for the file first in the build tree, then in the source tree
52311 # (if the path is not absolute). The absolute path cannot be DOS-style,
52312 # because $ac_f cannot contain `:'.
52316 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
52318 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
52320 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
52321 as_fn_append ac_file_inputs " '$ac_f'"
52324 # Let's still pretend it is `configure' which instantiates (i.e., don't
52325 # use $as_me), people would be surprised to read:
52326 # /* config.h. Generated by config.status. */
52327 configure_input='Generated from '`
52328 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
52330 if test x"$ac_file" != x-; then
52331 configure_input="$ac_file. $configure_input"
52332 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
52333 $as_echo "$as_me: creating $ac_file" >&6;}
52335 # Neutralize special characters interpreted by sed in replacement strings.
52336 case $configure_input in #(
52337 *\&* | *\|* | *\\* )
52338 ac_sed_conf_input=`$as_echo "$configure_input" |
52339 sed 's/[\\\\&|]/\\\\&/g'`;; #(
52340 *) ac_sed_conf_input=$configure_input;;
52344 *:-:* | *:-) cat >"$ac_tmp/stdin" \
52345 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
52350 ac_dir=`$as_dirname -- "$ac_file" ||
52351 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
52352 X"$ac_file" : 'X\(//\)[^/]' \| \
52353 X"$ac_file" : 'X\(//\)$' \| \
52354 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
52355 $as_echo X"$ac_file" |
52356 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
52360 /^X\(\/\/\)[^/].*/{
52373 as_dir="$ac_dir"; as_fn_mkdir_p
52377 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
52379 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
52380 # A ".." for each directory in $ac_dir_suffix.
52381 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
52382 case $ac_top_builddir_sub in
52383 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
52384 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
52387 ac_abs_top_builddir=$ac_pwd
52388 ac_abs_builddir=$ac_pwd$ac_dir_suffix
52389 # for backward compatibility:
52390 ac_top_builddir=$ac_top_build_prefix
52393 .) # We are building in place.
52395 ac_top_srcdir=$ac_top_builddir_sub
52396 ac_abs_top_srcdir=$ac_pwd ;;
52397 [\\/]* | ?:[\\/]* ) # Absolute name.
52398 ac_srcdir=$srcdir$ac_dir_suffix;
52399 ac_top_srcdir=$srcdir
52400 ac_abs_top_srcdir=$srcdir ;;
52401 *) # Relative name.
52402 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
52403 ac_top_srcdir=$ac_top_build_prefix$srcdir
52404 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
52406 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
52416 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
52417 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
52419 ac_MKDIR_P=$MKDIR_P
52421 [\\/$]* | ?:[\\/]* ) ;;
52422 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
52426 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
52427 # If the template does not know about datarootdir, expand it.
52428 # FIXME: This hack should be removed a few years after 2.60.
52429 ac_datarootdir_hack=; ac_datarootdir_seen=
52440 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
52441 *datarootdir*) ac_datarootdir_seen=yes;;
52442 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
52443 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
52444 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
52446 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
52447 ac_datarootdir_hack='
52448 s&@datadir@&$datadir&g
52449 s&@docdir@&$docdir&g
52450 s&@infodir@&$infodir&g
52451 s&@localedir@&$localedir&g
52452 s&@mandir@&$mandir&g
52453 s&\\\${datarootdir}&$datarootdir&g' ;;
52457 # Neutralize VPATH when `$srcdir' = `.'.
52458 # Shell code in configure.ac might set extrasub.
52459 # FIXME: do we really want to maintain this feature?
52460 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
52461 ac_sed_extra="$ac_vpsub
52464 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
52466 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
52467 s|@configure_input@|$ac_sed_conf_input|;t t
52468 s&@top_builddir@&$ac_top_builddir_sub&;t t
52469 s&@top_build_prefix@&$ac_top_build_prefix&;t t
52470 s&@srcdir@&$ac_srcdir&;t t
52471 s&@abs_srcdir@&$ac_abs_srcdir&;t t
52472 s&@top_srcdir@&$ac_top_srcdir&;t t
52473 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
52474 s&@builddir@&$ac_builddir&;t t
52475 s&@abs_builddir@&$ac_abs_builddir&;t t
52476 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
52477 s&@INSTALL@&$ac_INSTALL&;t t
52478 s&@MKDIR_P@&$ac_MKDIR_P&;t t
52479 $ac_datarootdir_hack
52481 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
52482 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
52484 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
52485 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
52486 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
52487 "$ac_tmp/out"`; test -z "$ac_out"; } &&
52488 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
52489 which seems to be undefined. Please make sure it is defined" >&5
52490 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
52491 which seems to be undefined. Please make sure it is defined" >&2;}
52493 rm -f "$ac_tmp/stdin"
52495 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
52496 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
52498 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
52504 if test x"$ac_file" != x-; then
52506 $as_echo "/* $configure_input */" \
52507 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
52508 } >"$ac_tmp/config.h" \
52509 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
52510 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
52511 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
52512 $as_echo "$as_me: $ac_file is unchanged" >&6;}
52515 mv "$ac_tmp/config.h" "$ac_file" \
52516 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
52519 $as_echo "/* $configure_input */" \
52520 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
52521 || as_fn_error $? "could not create -" "$LINENO" 5
52523 # Compute "$ac_file"'s index in $config_headers.
52526 for _am_header in $config_headers :; do
52527 case $_am_header in
52528 $_am_arg | $_am_arg:* )
52531 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
52534 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
52535 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
52536 X"$_am_arg" : 'X\(//\)[^/]' \| \
52537 X"$_am_arg" : 'X\(//\)$' \| \
52538 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
52539 $as_echo X"$_am_arg" |
52540 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
52544 /^X\(\/\/\)[^/].*/{
52556 s/.*/./; q'`/stamp-h$_am_stamp_count
52563 if test "$ac_source" = "$ac_file" && test "$srcdir" = '.'; then
52566 # Prefer the file from the source tree if names are identical.
52567 if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then
52568 ac_source=$srcdir/$ac_source
52571 { $as_echo "$as_me:${as_lineno-$LINENO}: linking $ac_source to $ac_file" >&5
52572 $as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
52574 if test ! -r "$ac_source"; then
52575 as_fn_error $? "$ac_source: file not found" "$LINENO" 5
52579 # Try a relative symlink, then a hard link, then a copy.
52581 [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;;
52582 *) ac_rel_source=$ac_top_build_prefix$ac_source ;;
52584 ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
52585 ln "$ac_source" "$ac_file" 2>/dev/null ||
52586 cp -p "$ac_source" "$ac_file" ||
52587 as_fn_error $? "cannot link or copy $ac_source to $ac_file" "$LINENO" 5
52590 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
52591 $as_echo "$as_me: executing $ac_file commands" >&6;}
52596 case $ac_file$ac_mode in
52597 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
52598 # Older Autoconf quotes --file arguments for eval, but not when files
52599 # are listed without --file. Let's play safe and only enable the eval
52600 # if we detect the quoting.
52601 case $CONFIG_FILES in
52602 *\'*) eval set x "$CONFIG_FILES" ;;
52603 *) set x $CONFIG_FILES ;;
52608 # Strip MF so we end up with the name of the file.
52609 mf=`echo "$mf" | sed -e 's/:.*$//'`
52610 # Check whether this is an Automake generated Makefile or not.
52611 # We used to match only the files named 'Makefile.in', but
52612 # some people rename them; so instead we look at the file content.
52613 # Grep'ing the first line is not enough: some people post-process
52614 # each Makefile.in and add a new line on top of each file to say so.
52615 # Grep'ing the whole file is not good either: AIX grep has a line
52616 # limit of 2048, but all sed's we know have understand at least 4000.
52617 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
52618 dirpart=`$as_dirname -- "$mf" ||
52619 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
52620 X"$mf" : 'X\(//\)[^/]' \| \
52621 X"$mf" : 'X\(//\)$' \| \
52622 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
52624 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
52628 /^X\(\/\/\)[^/].*/{
52644 # Extract the definition of DEPDIR, am__include, and am__quote
52645 # from the Makefile without running 'make'.
52646 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
52647 test -z "$DEPDIR" && continue
52648 am__include=`sed -n 's/^am__include = //p' < "$mf"`
52649 test -z "$am__include" && continue
52650 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
52651 # Find all dependency output files, they are included files with
52652 # $(DEPDIR) in their names. We invoke sed twice because it is the
52653 # simplest approach to changing $(DEPDIR) to its actual value in the
52655 for file in `sed -n "
52656 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
52657 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
52658 # Make sure the directory exists.
52659 test -f "$dirpart/$file" && continue
52660 fdir=`$as_dirname -- "$file" ||
52661 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
52662 X"$file" : 'X\(//\)[^/]' \| \
52663 X"$file" : 'X\(//\)$' \| \
52664 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
52665 $as_echo X"$file" |
52666 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
52670 /^X\(\/\/\)[^/].*/{
52683 as_dir=$dirpart/$fdir; as_fn_mkdir_p
52684 # echo "creating $dirpart/$file"
52685 echo '# dummy' > "$dirpart/$file"
52690 "po-directories":C)
52691 for ac_file in $CONFIG_FILES; do
52692 # Support "outfile[:infile[:infile...]]"
52694 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
52696 # PO directories have a Makefile.in generated from Makefile.in.in.
52697 case "$ac_file" in */Makefile.in)
52698 # Adjust a relative srcdir.
52699 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
52700 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
52701 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
52702 # In autoconf-2.13 it is called $ac_given_srcdir.
52703 # In autoconf-2.50 it is called $srcdir.
52704 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
52705 case "$ac_given_srcdir" in
52706 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
52707 /*) top_srcdir="$ac_given_srcdir" ;;
52708 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
52710 # Treat a directory as a PO directory if and only if it has a
52711 # POTFILES.in file. This allows packages to have multiple PO
52712 # directories under different names or in different locations.
52713 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
52714 rm -f "$ac_dir/POTFILES"
52715 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
52716 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
52717 POMAKEFILEDEPS="POTFILES.in"
52718 # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
52719 # on $ac_dir but don't depend on user-specified configuration
52721 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
52722 # The LINGUAS file contains the set of available languages.
52723 if test -n "$OBSOLETE_ALL_LINGUAS"; then
52724 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
52726 ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
52727 # Hide the ALL_LINGUAS assigment from automake < 1.5.
52728 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
52729 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
52731 # The set of available languages was given in configure.in.
52732 # Hide the ALL_LINGUAS assigment from automake < 1.5.
52733 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
52736 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
52737 # Compute UPDATEPOFILES
52738 # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
52739 # Compute DUMMYPOFILES
52740 # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
52742 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
52743 case "$ac_given_srcdir" in
52745 *) srcdirpre='$(srcdir)/' ;;
52751 for lang in $ALL_LINGUAS; do
52752 POFILES="$POFILES $srcdirpre$lang.po"
52753 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
52754 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
52755 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
52757 # CATALOGS depends on both $ac_dir and the user's LINGUAS
52758 # environment variable.
52760 if test -n "$ALL_LINGUAS"; then
52761 for presentlang in $ALL_LINGUAS; do
52763 if test "%UNSET%" != "$LINGUAS"; then
52764 desiredlanguages="$LINGUAS"
52766 desiredlanguages="$ALL_LINGUAS"
52768 for desiredlang in $desiredlanguages; do
52769 # Use the presentlang catalog if desiredlang is
52770 # a. equal to presentlang, or
52771 # b. a variant of presentlang (because in this case,
52772 # presentlang can be used as a fallback for messages
52773 # which are not translated in the desiredlang catalog).
52774 case "$desiredlang" in
52775 "$presentlang"*) useit=yes;;
52778 if test $useit = yes; then
52779 INST_LINGUAS="$INST_LINGUAS $presentlang"
52784 if test -n "$INST_LINGUAS"; then
52785 for lang in $INST_LINGUAS; do
52786 CATALOGS="$CATALOGS $lang.gmo"
52789 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
52790 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"
52791 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
52792 if test -f "$f"; then
52794 *.orig | *.bak | *~) ;;
52795 *) cat "$f" >> "$ac_dir/Makefile" ;;
52805 # See if we are running on zsh, and set the options which allow our
52806 # commands through without removal of \ escapes.
52807 if test -n "${ZSH_VERSION+set}" ; then
52808 setopt NO_GLOB_SUBST
52811 cfgfile="${ofile}T"
52812 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
52815 cat <<_LT_EOF >> "$cfgfile"
52818 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
52819 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
52820 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
52821 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
52823 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
52824 # 2006, 2007, 2008, 2009, 2010, 2011 Free Software
52826 # Written by Gordon Matzigkeit, 1996
52828 # This file is part of GNU Libtool.
52830 # GNU Libtool is free software; you can redistribute it and/or
52831 # modify it under the terms of the GNU General Public License as
52832 # published by the Free Software Foundation; either version 2 of
52833 # the License, or (at your option) any later version.
52835 # As a special exception to the GNU General Public License,
52836 # if you distribute this file as part of a program or library that
52837 # is built using GNU Libtool, you may include this file under the
52838 # same distribution terms that you use for the rest of that program.
52840 # GNU Libtool is distributed in the hope that it will be useful,
52841 # but WITHOUT ANY WARRANTY; without even the implied warranty of
52842 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
52843 # GNU General Public License for more details.
52845 # You should have received a copy of the GNU General Public License
52846 # along with GNU Libtool; see the file COPYING. If not, a copy
52847 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
52848 # obtained by writing to the Free Software Foundation, Inc.,
52849 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
52852 # The names of the tagged configurations supported by this script.
52853 available_tags="CXX "
52855 # ### BEGIN LIBTOOL CONFIG
52857 # Which release of libtool.m4 was used?
52858 macro_version=$macro_version
52859 macro_revision=$macro_revision
52861 # Whether or not to build static libraries.
52862 build_old_libs=$enable_static
52864 # Whether or not to build shared libraries.
52865 build_libtool_libs=$enable_shared
52867 # What type of objects to build.
52870 # Whether or not to optimize for fast installation.
52871 fast_install=$enable_fast_install
52873 # Shell to use when invoking shell scripts.
52876 # An echo program that protects backslashes.
52879 # The PATH separator for the build system.
52880 PATH_SEPARATOR=$lt_PATH_SEPARATOR
52883 host_alias=$host_alias
52887 # The build system.
52888 build_alias=$build_alias
52892 # A sed program that does not truncate output.
52895 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
52896 Xsed="\$SED -e 1s/^X//"
52898 # A grep program that handles long lines.
52904 # A literal string matcher.
52907 # A BSD- or MS-compatible name lister.
52910 # Whether we need soft or hard links.
52913 # What is the maximum length of a command?
52914 max_cmd_len=$max_cmd_len
52916 # Object file suffix (normally "o").
52919 # Executable file suffix (normally "").
52922 # whether the shell understands "unset".
52925 # turn spaces into newlines.
52928 # turn newlines into spaces.
52931 # convert \$build file names to \$host format.
52932 to_host_file_cmd=$lt_cv_to_host_file_cmd
52934 # convert \$build files to toolchain format.
52935 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
52937 # An object symbol dumper.
52938 OBJDUMP=$lt_OBJDUMP
52940 # Method to check whether dependent libraries are shared objects.
52941 deplibs_check_method=$lt_deplibs_check_method
52943 # Command to use when deplibs_check_method = "file_magic".
52944 file_magic_cmd=$lt_file_magic_cmd
52946 # How to find potential files when deplibs_check_method = "file_magic".
52947 file_magic_glob=$lt_file_magic_glob
52949 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
52950 want_nocaseglob=$lt_want_nocaseglob
52952 # DLL creation program.
52953 DLLTOOL=$lt_DLLTOOL
52955 # Command to associate shared and link libraries.
52956 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
52961 # Flags to create an archive.
52962 AR_FLAGS=$lt_AR_FLAGS
52964 # How to feed a file listing to the archiver.
52965 archiver_list_spec=$lt_archiver_list_spec
52967 # A symbol stripping program.
52970 # Commands used to install an old-style archive.
52972 old_postinstall_cmds=$lt_old_postinstall_cmds
52973 old_postuninstall_cmds=$lt_old_postuninstall_cmds
52975 # Whether to use a lock for old archive extraction.
52976 lock_old_archive_extraction=$lock_old_archive_extraction
52981 # LTCC compiler flags.
52982 LTCFLAGS=$lt_CFLAGS
52984 # Take the output of nm and produce a listing of raw symbols and C names.
52985 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
52987 # Transform the output of nm in a proper C declaration.
52988 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
52990 # Transform the output of nm in a C name address pair.
52991 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
52993 # Transform the output of nm in a C name address pair when lib prefix is needed.
52994 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
52996 # Specify filename containing input files for \$NM.
52997 nm_file_list_spec=$lt_nm_file_list_spec
52999 # The root where to search for dependent libraries,and in which our libraries should be installed.
53000 lt_sysroot=$lt_sysroot
53002 # The name of the directory that contains temporary libtool files.
53005 # Used to examine libraries when file_magic_cmd begins with "file".
53006 MAGIC_CMD=$MAGIC_CMD
53008 # Must we lock files when doing compilation?
53009 need_locks=$lt_need_locks
53012 MANIFEST_TOOL=$lt_MANIFEST_TOOL
53014 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
53015 DSYMUTIL=$lt_DSYMUTIL
53017 # Tool to change global to local symbols on Mac OS X.
53020 # Tool to manipulate fat objects and archives on Mac OS X.
53023 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
53026 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
53027 OTOOL64=$lt_OTOOL64
53029 # Old archive suffix (normally "a").
53032 # Shared library suffix (normally ".so").
53033 shrext_cmds=$lt_shrext_cmds
53035 # The commands to extract the exported symbol list from a shared archive.
53036 extract_expsyms_cmds=$lt_extract_expsyms_cmds
53038 # Variables whose values should be saved in libtool wrapper scripts and
53039 # restored at link time.
53040 variables_saved_for_relink=$lt_variables_saved_for_relink
53042 # Do we need the "lib" prefix for modules?
53043 need_lib_prefix=$need_lib_prefix
53045 # Do we need a version for libraries?
53046 need_version=$need_version
53048 # Library versioning type.
53049 version_type=$version_type
53051 # Shared library runtime path variable.
53052 runpath_var=$runpath_var
53054 # Shared library path variable.
53055 shlibpath_var=$shlibpath_var
53057 # Is shlibpath searched before the hard-coded library search path?
53058 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
53060 # Format of library name prefix.
53061 libname_spec=$lt_libname_spec
53063 # List of archive names. First name is the real one, the rest are links.
53064 # The last name is the one that the linker finds with -lNAME
53065 library_names_spec=$lt_library_names_spec
53067 # The coded name of the library, if different from the real name.
53068 soname_spec=$lt_soname_spec
53070 # Permission mode override for installation of shared libraries.
53071 install_override_mode=$lt_install_override_mode
53073 # Command to use after installation of a shared archive.
53074 postinstall_cmds=$lt_postinstall_cmds
53076 # Command to use after uninstallation of a shared archive.
53077 postuninstall_cmds=$lt_postuninstall_cmds
53079 # Commands used to finish a libtool library installation in a directory.
53080 finish_cmds=$lt_finish_cmds
53082 # As "finish_cmds", except a single script fragment to be evaled but
53084 finish_eval=$lt_finish_eval
53086 # Whether we should hardcode library paths into libraries.
53087 hardcode_into_libs=$hardcode_into_libs
53089 # Compile-time system search path for libraries.
53090 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
53092 # Run-time system search path for libraries.
53093 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
53095 # Whether dlopen is supported.
53096 dlopen_support=$enable_dlopen
53098 # Whether dlopen of programs is supported.
53099 dlopen_self=$enable_dlopen_self
53101 # Whether dlopen of statically linked programs is supported.
53102 dlopen_self_static=$enable_dlopen_self_static
53104 # Commands to strip libraries.
53105 old_striplib=$lt_old_striplib
53106 striplib=$lt_striplib
53109 # The linker used to build libraries.
53112 # How to create reloadable object files.
53113 reload_flag=$lt_reload_flag
53114 reload_cmds=$lt_reload_cmds
53116 # Commands used to build an old-style archive.
53117 old_archive_cmds=$lt_old_archive_cmds
53119 # A language specific compiler.
53122 # Is the compiler the GNU compiler?
53125 # Compiler flag to turn off builtin functions.
53126 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
53128 # Additional compiler flags for building library objects.
53129 pic_flag=$lt_lt_prog_compiler_pic
53131 # How to pass a linker flag through the compiler.
53132 wl=$lt_lt_prog_compiler_wl
53134 # Compiler flag to prevent dynamic linking.
53135 link_static_flag=$lt_lt_prog_compiler_static
53137 # Does compiler simultaneously support -c and -o options?
53138 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
53140 # Whether or not to add -lc for building shared libraries.
53141 build_libtool_need_lc=$archive_cmds_need_lc
53143 # Whether or not to disallow shared libs when runtime libs are static.
53144 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
53146 # Compiler flag to allow reflexive dlopens.
53147 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
53149 # Compiler flag to generate shared objects directly from archives.
53150 whole_archive_flag_spec=$lt_whole_archive_flag_spec
53152 # Whether the compiler copes with passing no objects directly.
53153 compiler_needs_object=$lt_compiler_needs_object
53155 # Create an old-style archive from a shared archive.
53156 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
53158 # Create a temporary old-style archive to link instead of a shared archive.
53159 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
53161 # Commands used to build a shared archive.
53162 archive_cmds=$lt_archive_cmds
53163 archive_expsym_cmds=$lt_archive_expsym_cmds
53165 # Commands used to build a loadable module if different from building
53166 # a shared archive.
53167 module_cmds=$lt_module_cmds
53168 module_expsym_cmds=$lt_module_expsym_cmds
53170 # Whether we are building with GNU ld or not.
53171 with_gnu_ld=$lt_with_gnu_ld
53173 # Flag that allows shared libraries with undefined symbols to be built.
53174 allow_undefined_flag=$lt_allow_undefined_flag
53176 # Flag that enforces no undefined symbols.
53177 no_undefined_flag=$lt_no_undefined_flag
53179 # Flag to hardcode \$libdir into a binary during linking.
53180 # This must work even if \$libdir does not exist
53181 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
53183 # Whether we need a single "-rpath" flag with a separated argument.
53184 hardcode_libdir_separator=$lt_hardcode_libdir_separator
53186 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
53187 # DIR into the resulting binary.
53188 hardcode_direct=$hardcode_direct
53190 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
53191 # DIR into the resulting binary and the resulting library dependency is
53192 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
53193 # library is relocated.
53194 hardcode_direct_absolute=$hardcode_direct_absolute
53196 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
53197 # into the resulting binary.
53198 hardcode_minus_L=$hardcode_minus_L
53200 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
53201 # into the resulting binary.
53202 hardcode_shlibpath_var=$hardcode_shlibpath_var
53204 # Set to "yes" if building a shared library automatically hardcodes DIR
53205 # into the library and all subsequent libraries and executables linked
53207 hardcode_automatic=$hardcode_automatic
53209 # Set to yes if linker adds runtime paths of dependent libraries
53210 # to runtime path list.
53211 inherit_rpath=$inherit_rpath
53213 # Whether libtool must link a program against all its dependency libraries.
53214 link_all_deplibs=$link_all_deplibs
53216 # Set to "yes" if exported symbols are required.
53217 always_export_symbols=$always_export_symbols
53219 # The commands to list exported symbols.
53220 export_symbols_cmds=$lt_export_symbols_cmds
53222 # Symbols that should not be listed in the preloaded symbols.
53223 exclude_expsyms=$lt_exclude_expsyms
53225 # Symbols that must always be exported.
53226 include_expsyms=$lt_include_expsyms
53228 # Commands necessary for linking programs (against libraries) with templates.
53229 prelink_cmds=$lt_prelink_cmds
53231 # Commands necessary for finishing linking programs.
53232 postlink_cmds=$lt_postlink_cmds
53234 # Specify filename containing input files.
53235 file_list_spec=$lt_file_list_spec
53237 # How to hardcode a shared library path into an executable.
53238 hardcode_action=$hardcode_action
53240 # The directories searched by this compiler when creating a shared library.
53241 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
53243 # Dependencies to place before and after the objects being linked to
53244 # create a shared library.
53245 predep_objects=$lt_predep_objects
53246 postdep_objects=$lt_postdep_objects
53247 predeps=$lt_predeps
53248 postdeps=$lt_postdeps
53250 # The library search path used internally by the compiler when linking
53251 # a shared library.
53252 compiler_lib_search_path=$lt_compiler_lib_search_path
53254 # ### END LIBTOOL CONFIG
53260 cat <<\_LT_EOF >> "$cfgfile"
53261 # AIX sometimes has problems with the GCC collect2 program. For some
53262 # reason, if we set the COLLECT_NAMES environment variable, the problems
53263 # vanish in a puff of smoke.
53264 if test "X${COLLECT_NAMES+set}" != Xset; then
53266 export COLLECT_NAMES
53273 ltmain="$ac_aux_dir/ltmain.sh"
53276 # We use sed instead of cat because bash on DJGPP gets confused if
53277 # if finds mixed CR/LF and LF-only lines. Since sed operates in
53278 # text mode, it properly converts lines to CR/LF. This bash problem
53279 # is reportedly fixed, but why not run on old versions too?
53280 sed '$q' "$ltmain" >> "$cfgfile" \
53281 || (rm -f "$cfgfile"; exit 1)
53283 if test x"$xsi_shell" = xyes; then
53284 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
53288 \ */*) func_dirname_result="${1%/*}${2}" ;;\
53289 \ * ) func_dirname_result="${3}" ;;\
53291 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
53292 && mv -f "$cfgfile.tmp" "$cfgfile" \
53293 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
53294 test 0 -eq $? || _lt_function_replace_fail=:
53297 sed -e '/^func_basename ()$/,/^} # func_basename /c\
53300 \ func_basename_result="${1##*/}"\
53301 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
53302 && mv -f "$cfgfile.tmp" "$cfgfile" \
53303 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
53304 test 0 -eq $? || _lt_function_replace_fail=:
53307 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
53308 func_dirname_and_basename ()\
53311 \ */*) func_dirname_result="${1%/*}${2}" ;;\
53312 \ * ) func_dirname_result="${3}" ;;\
53314 \ func_basename_result="${1##*/}"\
53315 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
53316 && mv -f "$cfgfile.tmp" "$cfgfile" \
53317 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
53318 test 0 -eq $? || _lt_function_replace_fail=:
53321 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
53324 \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
53325 \ # positional parameters, so assign one to ordinary parameter first.\
53326 \ func_stripname_result=${3}\
53327 \ func_stripname_result=${func_stripname_result#"${1}"}\
53328 \ func_stripname_result=${func_stripname_result%"${2}"}\
53329 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
53330 && mv -f "$cfgfile.tmp" "$cfgfile" \
53331 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
53332 test 0 -eq $? || _lt_function_replace_fail=:
53335 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
53336 func_split_long_opt ()\
53338 \ func_split_long_opt_name=${1%%=*}\
53339 \ func_split_long_opt_arg=${1#*=}\
53340 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
53341 && mv -f "$cfgfile.tmp" "$cfgfile" \
53342 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
53343 test 0 -eq $? || _lt_function_replace_fail=:
53346 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
53347 func_split_short_opt ()\
53349 \ func_split_short_opt_arg=${1#??}\
53350 \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
53351 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
53352 && mv -f "$cfgfile.tmp" "$cfgfile" \
53353 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
53354 test 0 -eq $? || _lt_function_replace_fail=:
53357 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
53361 \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
53362 \ *) func_lo2o_result=${1} ;;\
53364 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
53365 && mv -f "$cfgfile.tmp" "$cfgfile" \
53366 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
53367 test 0 -eq $? || _lt_function_replace_fail=:
53370 sed -e '/^func_xform ()$/,/^} # func_xform /c\
53373 func_xform_result=${1%.*}.lo\
53374 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
53375 && mv -f "$cfgfile.tmp" "$cfgfile" \
53376 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
53377 test 0 -eq $? || _lt_function_replace_fail=:
53380 sed -e '/^func_arith ()$/,/^} # func_arith /c\
53383 func_arith_result=$(( $* ))\
53384 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
53385 && mv -f "$cfgfile.tmp" "$cfgfile" \
53386 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
53387 test 0 -eq $? || _lt_function_replace_fail=:
53390 sed -e '/^func_len ()$/,/^} # func_len /c\
53393 func_len_result=${#1}\
53394 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
53395 && mv -f "$cfgfile.tmp" "$cfgfile" \
53396 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
53397 test 0 -eq $? || _lt_function_replace_fail=:
53401 if test x"$lt_shell_append" = xyes; then
53402 sed -e '/^func_append ()$/,/^} # func_append /c\
53405 eval "${1}+=\\${2}"\
53406 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
53407 && mv -f "$cfgfile.tmp" "$cfgfile" \
53408 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
53409 test 0 -eq $? || _lt_function_replace_fail=:
53412 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
53413 func_append_quoted ()\
53415 \ func_quote_for_eval "${2}"\
53416 \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
53417 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
53418 && mv -f "$cfgfile.tmp" "$cfgfile" \
53419 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
53420 test 0 -eq $? || _lt_function_replace_fail=:
53423 # Save a `func_append' function call where possible by direct use of '+='
53424 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
53425 && mv -f "$cfgfile.tmp" "$cfgfile" \
53426 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
53427 test 0 -eq $? || _lt_function_replace_fail=:
53429 # Save a `func_append' function call even when '+=' is not available
53430 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
53431 && mv -f "$cfgfile.tmp" "$cfgfile" \
53432 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
53433 test 0 -eq $? || _lt_function_replace_fail=:
53436 if test x"$_lt_function_replace_fail" = x":"; then
53437 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
53438 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
53442 mv -f "$cfgfile" "$ofile" ||
53443 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
53447 cat <<_LT_EOF >> "$ofile"
53449 # ### BEGIN LIBTOOL TAG CONFIG: CXX
53451 # The linker used to build libraries.
53454 # How to create reloadable object files.
53455 reload_flag=$lt_reload_flag_CXX
53456 reload_cmds=$lt_reload_cmds_CXX
53458 # Commands used to build an old-style archive.
53459 old_archive_cmds=$lt_old_archive_cmds_CXX
53461 # A language specific compiler.
53462 CC=$lt_compiler_CXX
53464 # Is the compiler the GNU compiler?
53467 # Compiler flag to turn off builtin functions.
53468 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
53470 # Additional compiler flags for building library objects.
53471 pic_flag=$lt_lt_prog_compiler_pic_CXX
53473 # How to pass a linker flag through the compiler.
53474 wl=$lt_lt_prog_compiler_wl_CXX
53476 # Compiler flag to prevent dynamic linking.
53477 link_static_flag=$lt_lt_prog_compiler_static_CXX
53479 # Does compiler simultaneously support -c and -o options?
53480 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
53482 # Whether or not to add -lc for building shared libraries.
53483 build_libtool_need_lc=$archive_cmds_need_lc_CXX
53485 # Whether or not to disallow shared libs when runtime libs are static.
53486 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
53488 # Compiler flag to allow reflexive dlopens.
53489 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
53491 # Compiler flag to generate shared objects directly from archives.
53492 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
53494 # Whether the compiler copes with passing no objects directly.
53495 compiler_needs_object=$lt_compiler_needs_object_CXX
53497 # Create an old-style archive from a shared archive.
53498 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
53500 # Create a temporary old-style archive to link instead of a shared archive.
53501 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
53503 # Commands used to build a shared archive.
53504 archive_cmds=$lt_archive_cmds_CXX
53505 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
53507 # Commands used to build a loadable module if different from building
53508 # a shared archive.
53509 module_cmds=$lt_module_cmds_CXX
53510 module_expsym_cmds=$lt_module_expsym_cmds_CXX
53512 # Whether we are building with GNU ld or not.
53513 with_gnu_ld=$lt_with_gnu_ld_CXX
53515 # Flag that allows shared libraries with undefined symbols to be built.
53516 allow_undefined_flag=$lt_allow_undefined_flag_CXX
53518 # Flag that enforces no undefined symbols.
53519 no_undefined_flag=$lt_no_undefined_flag_CXX
53521 # Flag to hardcode \$libdir into a binary during linking.
53522 # This must work even if \$libdir does not exist
53523 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
53525 # Whether we need a single "-rpath" flag with a separated argument.
53526 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
53528 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
53529 # DIR into the resulting binary.
53530 hardcode_direct=$hardcode_direct_CXX
53532 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
53533 # DIR into the resulting binary and the resulting library dependency is
53534 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
53535 # library is relocated.
53536 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
53538 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
53539 # into the resulting binary.
53540 hardcode_minus_L=$hardcode_minus_L_CXX
53542 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
53543 # into the resulting binary.
53544 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
53546 # Set to "yes" if building a shared library automatically hardcodes DIR
53547 # into the library and all subsequent libraries and executables linked
53549 hardcode_automatic=$hardcode_automatic_CXX
53551 # Set to yes if linker adds runtime paths of dependent libraries
53552 # to runtime path list.
53553 inherit_rpath=$inherit_rpath_CXX
53555 # Whether libtool must link a program against all its dependency libraries.
53556 link_all_deplibs=$link_all_deplibs_CXX
53558 # Set to "yes" if exported symbols are required.
53559 always_export_symbols=$always_export_symbols_CXX
53561 # The commands to list exported symbols.
53562 export_symbols_cmds=$lt_export_symbols_cmds_CXX
53564 # Symbols that should not be listed in the preloaded symbols.
53565 exclude_expsyms=$lt_exclude_expsyms_CXX
53567 # Symbols that must always be exported.
53568 include_expsyms=$lt_include_expsyms_CXX
53570 # Commands necessary for linking programs (against libraries) with templates.
53571 prelink_cmds=$lt_prelink_cmds_CXX
53573 # Commands necessary for finishing linking programs.
53574 postlink_cmds=$lt_postlink_cmds_CXX
53576 # Specify filename containing input files.
53577 file_list_spec=$lt_file_list_spec_CXX
53579 # How to hardcode a shared library path into an executable.
53580 hardcode_action=$hardcode_action_CXX
53582 # The directories searched by this compiler when creating a shared library.
53583 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
53585 # Dependencies to place before and after the objects being linked to
53586 # create a shared library.
53587 predep_objects=$lt_predep_objects_CXX
53588 postdep_objects=$lt_postdep_objects_CXX
53589 predeps=$lt_predeps_CXX
53590 postdeps=$lt_postdeps_CXX
53592 # The library search path used internally by the compiler when linking
53593 # a shared library.
53594 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
53596 # ### END LIBTOOL TAG CONFIG: CXX
53600 "guile/pre-inst-guile":F) chmod +x guile/pre-inst-guile ;;
53608 ac_clean_files=$ac_clean_files_save
53610 test $ac_write_fail = 0 ||
53611 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
53614 # configure is writing to config.log, and then calls config.status.
53615 # config.status does its own redirection, appending to config.log.
53616 # Unfortunately, on DOS this fails, as config.log is still kept open
53617 # by configure, so config.status won't be able to write to it; its
53618 # output is simply discarded. So we exec the FD to /dev/null,
53619 # effectively closing config.log, so it can be properly (re)opened and
53620 # appended to by config.status. When coming back to configure, we
53621 # need to make the FD available again.
53622 if test "$no_create" != yes; then
53624 ac_config_status_args=
53625 test "$silent" = yes &&
53626 ac_config_status_args="$ac_config_status_args --quiet"
53628 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
53630 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
53631 # would make configure fail if this is the last instruction.
53632 $ac_cs_success || as_fn_exit 1
53634 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
53635 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
53636 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
53640 { $as_echo "$as_me:${as_lineno-$LINENO}: summary of build options:
53642 version: ${VERSION} shared $LT_CURRENT:$LT_REVISION:$LT_AGE
53643 Host/Target system: ${host}
53644 Build system: ${build}
53645 Install prefix: ${prefix}
53648 Library types: Shared=${enable_shared}, Static=${enable_static}
53649 Local libopts: ${enable_local_libopts}
53650 Local libtasn1: ${included_libtasn1}
53651 Use nettle-mini: ${mini_nettle}
53652 nettle-version: ${nettle_version}
53654 $as_echo "$as_me: summary of build options:
53656 version: ${VERSION} shared $LT_CURRENT:$LT_REVISION:$LT_AGE
53657 Host/Target system: ${host}
53658 Build system: ${build}
53659 Install prefix: ${prefix}
53662 Library types: Shared=${enable_shared}, Static=${enable_static}
53663 Local libopts: ${enable_local_libopts}
53664 Local libtasn1: ${included_libtasn1}
53665 Use nettle-mini: ${mini_nettle}
53666 nettle-version: ${nettle_version}
53669 { $as_echo "$as_me:${as_lineno-$LINENO}: External hardware support:
53671 /dev/crypto: $enable_cryptodev
53672 Hardware accel: $hw_accel
53673 Padlock accel: $use_padlock
53674 PKCS#11 support: $with_p11_kit
53675 TPM support: $with_tpm
53677 $as_echo "$as_me: External hardware support:
53679 /dev/crypto: $enable_cryptodev
53680 Hardware accel: $hw_accel
53681 Padlock accel: $use_padlock
53682 PKCS#11 support: $with_p11_kit
53683 TPM support: $with_tpm
53685 if test -n "$ac_trousers_lib";then
53686 { $as_echo "$as_me:${as_lineno-$LINENO}:
53687 TPM library: $ac_trousers_lib
53690 TPM library: $ac_trousers_lib
53694 { $as_echo "$as_me:${as_lineno-$LINENO}: Optional features:
53695 (note that included applications might not compile properly
53696 if features are disabled)
53698 DTLS-SRTP support: $ac_enable_srtp
53699 ALPN support: $ac_enable_alpn
53700 OCSP support: $ac_enable_ocsp
53701 Ses. ticket support: $ac_enable_session_tickets
53702 OpenPGP support: $ac_enable_openpgp
53703 SRP support: $ac_enable_srp
53704 PSK support: $ac_enable_psk
53705 DHE support: $ac_enable_dhe
53706 ECDHE support: $ac_enable_ecdhe
53707 RSA-EXPORT support: $ac_enable_rsa_export
53708 Anon auth support: $ac_enable_anon
53709 Heartbeat support: $ac_enable_heartbeat
53710 Unicode support: $ac_have_unicode
53711 Self checks: $enable_self_checks
53712 Non-SuiteB curves: $enable_non_suiteb
53713 FIPS140 mode: $enable_fips
53715 $as_echo "$as_me: Optional features:
53716 (note that included applications might not compile properly
53717 if features are disabled)
53719 DTLS-SRTP support: $ac_enable_srtp
53720 ALPN support: $ac_enable_alpn
53721 OCSP support: $ac_enable_ocsp
53722 Ses. ticket support: $ac_enable_session_tickets
53723 OpenPGP support: $ac_enable_openpgp
53724 SRP support: $ac_enable_srp
53725 PSK support: $ac_enable_psk
53726 DHE support: $ac_enable_dhe
53727 ECDHE support: $ac_enable_ecdhe
53728 RSA-EXPORT support: $ac_enable_rsa_export
53729 Anon auth support: $ac_enable_anon
53730 Heartbeat support: $ac_enable_heartbeat
53731 Unicode support: $ac_have_unicode
53732 Self checks: $enable_self_checks
53733 Non-SuiteB curves: $enable_non_suiteb
53734 FIPS140 mode: $enable_fips
53737 { $as_echo "$as_me:${as_lineno-$LINENO}: Optional applications:
53739 crywrap app: $libidn
53741 $as_echo "$as_me: Optional applications:
53743 crywrap app: $libidn
53746 { $as_echo "$as_me:${as_lineno-$LINENO}: Optional libraries:
53748 Guile wrappers: $opt_guile_bindings
53749 C++ library: $use_cxx
53750 DANE library: $enable_dane
53751 OpenSSL compat: $enable_openssl
53753 $as_echo "$as_me: Optional libraries:
53755 Guile wrappers: $opt_guile_bindings
53756 C++ library: $use_cxx
53757 DANE library: $enable_dane
53758 OpenSSL compat: $enable_openssl
53761 { $as_echo "$as_me:${as_lineno-$LINENO}: System files:
53763 Trust store pkcs11: $with_default_trust_store_pkcs11
53764 Trust store dir: $with_default_trust_store_dir
53765 Trust store file: $with_default_trust_store_file
53766 Blacklist file: $with_default_blacklist_file
53767 CRL file: $with_default_crl_file
53768 Priority file: $system_priority_file
53769 DNSSEC root key file: $unbound_root_key_file
53771 $as_echo "$as_me: System files:
53773 Trust store pkcs11: $with_default_trust_store_pkcs11
53774 Trust store dir: $with_default_trust_store_dir
53775 Trust store file: $with_default_trust_store_file
53776 Blacklist file: $with_default_blacklist_file
53777 CRL file: $with_default_crl_file
53778 Priority file: $system_priority_file
53779 DNSSEC root key file: $unbound_root_key_file
53782 if test ! -f "$unbound_root_key_file"; then
53783 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
53785 *** The DNSSEC root key file in $unbound_root_key_file was not found.
53786 *** This file is needed for the verification of DNSSEC responses.
53787 *** Use the command: unbound-anchor -a \"$unbound_root_key_file\"
53788 *** to generate or update it.
53790 $as_echo "$as_me: WARNING:
53792 *** The DNSSEC root key file in $unbound_root_key_file was not found.
53793 *** This file is needed for the verification of DNSSEC responses.
53794 *** Use the command: unbound-anchor -a \"$unbound_root_key_file\"
53795 *** to generate or update it.