2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for GnuTLS 3.3.5.
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.5'
594 PACKAGE_STRING='GnuTLS 3.3.5'
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 ENABLE_TROUSERS_FALSE
695 ENABLE_SELF_CHECKS_FALSE
696 ENABLE_SELF_CHECKS_TRUE
724 NEXT_AS_FIRST_DIRECTIVE_SIGNAL_H
727 REPLACE_PTHREAD_SIGMASK
729 HAVE_TYPE_VOLATILE_SIG_ATOMIC_T
730 HAVE_STRUCT_SIGACTION_SA_SIGACTION
736 HAVE_POSIX_SIGNALBLOCKING
739 GNULIB_SIGNAL_H_SIGPIPE
741 GNULIB_PTHREAD_SIGMASK
744 NEXT_AS_FIRST_DIRECTIVE_SYS_SELECT_H
757 NEXT_AS_FIRST_DIRECTIVE_ARPA_INET_H
768 NEXT_AS_FIRST_DIRECTIVE_INTTYPES_H
770 UINT64_MAX_EQ_ULONG_MAX
771 UINT32_MAX_LT_UINTMAX_MAX
774 INT64_MAX_EQ_LONG_MAX
775 INT32_MAX_LT_INTMAX_MAX
786 NEXT_AS_FIRST_DIRECTIVE_FCNTL_H
799 NEXT_AS_FIRST_DIRECTIVE_WCHAR_H
895 NEXT_AS_FIRST_DIRECTIVE_UNISTD_H
897 PTHREAD_H_DEFINES_STRUCT_TIMESPEC
898 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC
899 TIME_H_DEFINES_STRUCT_TIMESPEC
900 NEXT_AS_FIRST_DIRECTIVE_TIME_H
911 HAVE_DECL_LOCALTIME_R
918 NEXT_AS_FIRST_DIRECTIVE_SYS_UIO_H
922 NEXT_AS_FIRST_DIRECTIVE_SYS_SOCKET_H
926 HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY
927 HAVE_STRUCT_SOCKADDR_STORAGE
944 NEXT_AS_FIRST_DIRECTIVE_STRINGS_H
946 NEXT_AS_FIRST_DIRECTIVE_STRING_H
948 HAVE_DECL_STRNCASECMP
952 NEXT_AS_FIRST_DIRECTIVE_STDLIB_H
954 NEXT_AS_FIRST_DIRECTIVE_STDIO_H
956 GL_GENERATE_STDINT_H_FALSE
957 GL_GENERATE_STDINT_H_TRUE
966 HAVE_SIGNED_SIG_ATOMIC_T
969 BITSIZEOF_SIG_ATOMIC_T
975 NEXT_AS_FIRST_DIRECTIVE_STDINT_H
980 HAVE_UNSIGNED_LONG_LONG_INT
982 NEXT_AS_FIRST_DIRECTIVE_STDDEF_H
984 GL_GENERATE_STDDEF_H_FALSE
985 GL_GENERATE_STDDEF_H_TRUE
990 GL_GENERATE_STDBOOL_H_FALSE
991 GL_GENERATE_STDBOOL_H_TRUE
993 GL_GENERATE_STDALIGN_H_FALSE
994 GL_GENERATE_STDALIGN_H_TRUE
997 GL_GENERATE_NETINET_IN_H_FALSE
998 GL_GENERATE_NETINET_IN_H_TRUE
1001 NEXT_AS_FIRST_DIRECTIVE_NETINET_IN_H
1004 NEXT_AS_FIRST_DIRECTIVE_NETDB_H
1006 REPLACE_GAI_STRERROR
1007 HAVE_DECL_GETNAMEINFO
1008 HAVE_DECL_GETADDRINFO
1009 HAVE_DECL_GAI_STRERROR
1010 HAVE_DECL_FREEADDRINFO
1011 HAVE_STRUCT_ADDRINFO
1013 APPLE_UNIVERSAL_BUILD
1031 HAVE_DECL_STRERROR_R
1100 REPLACE_CANONICALIZE_FILE_NAME
1105 HAVE_STRUCT_RANDOM_DATA
1127 HAVE_DECL_GETLOADAVG
1128 HAVE_CANONICALIZE_FILE_NAME
1139 GNULIB_SECURE_GETENV
1142 GNULIB_REALLOC_POSIX
1159 GNULIB_CANONICALIZE_FILE_NAME
1164 HAVE_LD_VERSION_SCRIPT_FALSE
1165 HAVE_LD_VERSION_SCRIPT_TRUE
1166 HAVE_LD_OUTPUT_DEF_FALSE
1167 HAVE_LD_OUTPUT_DEF_TRUE
1168 NEXT_AS_FIRST_DIRECTIVE_SYS_TIME_H
1170 REPLACE_STRUCT_TIMEVAL
1171 REPLACE_GETTIMEOFDAY
1176 WINDOWS_64_BIT_OFF_T
1177 NEXT_AS_FIRST_DIRECTIVE_SYS_TYPES_H
1186 REPLACE_STDIO_WRITE_FUNCS
1187 REPLACE_STDIO_READ_FUNCS
1196 REPLACE_OBSTACK_PRINTF
1221 HAVE_DECL_OBSTACK_PRINTF
1227 GNULIB_VSPRINTF_POSIX
1229 GNULIB_VPRINTF_POSIX
1231 GNULIB_VFPRINTF_POSIX
1238 GNULIB_STDIO_H_SIGPIPE
1239 GNULIB_STDIO_H_NONBLOCKING
1240 GNULIB_SPRINTF_POSIX
1254 GNULIB_OBSTACK_PRINTF_POSIX
1255 GNULIB_OBSTACK_PRINTF
1271 GNULIB_FPRINTF_POSIX
1280 WINDOWS_64_BIT_ST_SIZE
1281 NEXT_AS_FIRST_DIRECTIVE_SYS_STAT_H
1283 HAVE_MSVC_INVALID_PARAMETER_HANDLER
1318 GL_GENERATE_FLOAT_H_FALSE
1319 GL_GENERATE_FLOAT_H_TRUE
1321 NEXT_AS_FIRST_DIRECTIVE_FLOAT_H
1329 GL_GENERATE_ERRNO_H_FALSE
1330 GL_GENERATE_ERRNO_H_TRUE
1332 NEXT_AS_FIRST_DIRECTIVE_ERRNO_H
1335 PRAGMA_SYSTEM_HEADER
1336 INCLUDE_NEXT_AS_FIRST_DIRECTIVE
1338 GL_GENERATE_BYTESWAP_H_FALSE
1339 GL_GENERATE_BYTESWAP_H_TRUE
1341 GL_GENERATE_ALLOCA_H_FALSE
1342 GL_GENERATE_ALLOCA_H_TRUE
1346 GL_COND_LIBTOOL_FALSE
1347 GL_COND_LIBTOOL_TRUE
1367 XGETTEXT_EXTRA_OPTIONS
1375 GETTEXT_MACRO_VERSION
1377 GTK_DOC_USE_REBASE_FALSE
1378 GTK_DOC_USE_REBASE_TRUE
1379 GTK_DOC_USE_LIBTOOL_FALSE
1380 GTK_DOC_USE_LIBTOOL_TRUE
1381 GTK_DOC_BUILD_PDF_FALSE
1382 GTK_DOC_BUILD_PDF_TRUE
1383 GTK_DOC_BUILD_HTML_FALSE
1384 GTK_DOC_BUILD_HTML_TRUE
1385 ENABLE_GTK_DOC_FALSE
1397 UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS
1398 UNISTD_H_HAVE_WINSOCK2_H
1419 REPLACE_GETDTABLESIZE
1420 REPLACE_GETDOMAINNAME
1431 HAVE_DECL_SETHOSTNAME
1432 HAVE_DECL_GETUSERSHELL
1433 HAVE_DECL_GETPAGESIZE
1434 HAVE_DECL_GETLOGIN_R
1435 HAVE_DECL_GETDOMAINNAME
1474 GNULIB_UNISTD_H_SIGPIPE
1475 GNULIB_UNISTD_H_NONBLOCKING
1501 GNULIB_GETDTABLESIZE
1502 GNULIB_GETDOMAINNAME
1518 ENABLE_OPENSSL_FALSE
1520 ENABLE_SESSION_TICKETS_FALSE
1521 ENABLE_SESSION_TICKETS_TRUE
1524 ENABLE_OPENPGP_FALSE
1536 ENABLE_HEARTBEAT_FALSE
1537 ENABLE_HEARTBEAT_TRUE
1538 ENABLE_RSA_EXPORT_FALSE
1539 ENABLE_RSA_EXPORT_TRUE
1542 ENABLE_DTLS_SRTP_FALSE
1543 ENABLE_DTLS_SRTP_TRUE
1544 ENABLE_MINITASN1_FALSE
1545 ENABLE_MINITASN1_TRUE
1576 HAVE_GCC_GNU89_INLINE_OPTION_FALSE
1577 HAVE_GCC_GNU89_INLINE_OPTION_TRUE
1590 WANT_TEST_SUITE_FALSE
1591 WANT_TEST_SUITE_TRUE
1601 am__fastdepCXX_FALSE
1608 am__fastdepCCAS_FALSE
1609 am__fastdepCCAS_TRUE
1637 AM_DEFAULT_VERBOSITY
1648 INSTALL_STRIP_PROGRAM
1698 program_transform_name
1711 enable_option_checking
1713 enable_dependency_tracking
1716 enable_hardware_acceleration
1718 with_included_libtasn1
1719 enable_dtls_srtp_support
1722 enable_heartbeat_support
1723 enable_srp_authentication
1724 enable_psk_authentication
1725 enable_anon_authentication
1728 enable_openpgp_authentication
1731 enable_session_tickets
1732 enable_openssl_compatibility
1742 with_libiconv_prefix
1745 with_libpthread_prefix
1746 enable_ld_version_script
1747 enable_valgrind_tests
1758 enable_non_suiteb_curves
1760 with_unbound_root_key_file
1761 with_system_priority_file
1764 enable_local_libopts
1765 enable_libopts_install
1766 with_autoopts_config
1769 with_libregex_cflags
1771 enable_optional_args
1774 with_default_trust_store_pkcs11
1775 with_default_trust_store_file
1776 with_default_crl_file
1777 with_default_blacklist_file
1782 ac_precious_vars='build_alias
1814 # Initialize some variables set by options.
1816 ac_init_version=false
1817 ac_unrecognized_opts=
1818 ac_unrecognized_sep=
1819 # The variables have the same names as the options, with
1820 # dashes changed to underlines.
1821 cache_file=/dev/null
1828 program_transform_name=s,x,x,
1836 # Installation directory options.
1837 # These are left unexpanded so users can "make install exec_prefix=/foo"
1838 # and all the variables that are supposed to be based on exec_prefix
1839 # by default will actually change.
1840 # Use braces instead of parens because sh, perl, etc. also accept them.
1841 # (The list follows the same order as the GNU Coding Standards.)
1842 bindir='${exec_prefix}/bin'
1843 sbindir='${exec_prefix}/sbin'
1844 libexecdir='${exec_prefix}/libexec'
1845 datarootdir='${prefix}/share'
1846 datadir='${datarootdir}'
1847 sysconfdir='${prefix}/etc'
1848 sharedstatedir='${prefix}/com'
1849 localstatedir='${prefix}/var'
1850 includedir='${prefix}/include'
1851 oldincludedir='/usr/include'
1852 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1853 infodir='${datarootdir}/info'
1858 libdir='${exec_prefix}/lib'
1859 localedir='${datarootdir}/locale'
1860 mandir='${datarootdir}/man'
1866 # If the previous option needs an argument, assign it.
1867 if test -n "$ac_prev"; then
1868 eval $ac_prev=\$ac_option
1874 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1879 # Accept the important Cygnus configure options, so we can diagnose typos.
1881 case $ac_dashdash$ac_option in
1885 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1887 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1888 bindir=$ac_optarg ;;
1890 -build | --build | --buil | --bui | --bu)
1891 ac_prev=build_alias ;;
1892 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1893 build_alias=$ac_optarg ;;
1895 -cache-file | --cache-file | --cache-fil | --cache-fi \
1896 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1897 ac_prev=cache_file ;;
1898 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1899 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1900 cache_file=$ac_optarg ;;
1902 --config-cache | -C)
1903 cache_file=config.cache ;;
1905 -datadir | --datadir | --datadi | --datad)
1907 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1908 datadir=$ac_optarg ;;
1910 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1911 | --dataroo | --dataro | --datar)
1912 ac_prev=datarootdir ;;
1913 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1914 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1915 datarootdir=$ac_optarg ;;
1917 -disable-* | --disable-*)
1918 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1919 # Reject names that are not valid shell variable names.
1920 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1921 as_fn_error $? "invalid feature name: $ac_useropt"
1922 ac_useropt_orig=$ac_useropt
1923 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1924 case $ac_user_opts in
1926 "enable_$ac_useropt"
1928 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1929 ac_unrecognized_sep=', ';;
1931 eval enable_$ac_useropt=no ;;
1933 -docdir | --docdir | --docdi | --doc | --do)
1935 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1936 docdir=$ac_optarg ;;
1938 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1940 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1941 dvidir=$ac_optarg ;;
1943 -enable-* | --enable-*)
1944 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1945 # Reject names that are not valid shell variable names.
1946 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1947 as_fn_error $? "invalid feature name: $ac_useropt"
1948 ac_useropt_orig=$ac_useropt
1949 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1950 case $ac_user_opts in
1952 "enable_$ac_useropt"
1954 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1955 ac_unrecognized_sep=', ';;
1957 eval enable_$ac_useropt=\$ac_optarg ;;
1959 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1960 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1961 | --exec | --exe | --ex)
1962 ac_prev=exec_prefix ;;
1963 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1964 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1965 | --exec=* | --exe=* | --ex=*)
1966 exec_prefix=$ac_optarg ;;
1968 -gas | --gas | --ga | --g)
1969 # Obsolete; use --with-gas.
1972 -help | --help | --hel | --he | -h)
1973 ac_init_help=long ;;
1974 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1975 ac_init_help=recursive ;;
1976 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1977 ac_init_help=short ;;
1979 -host | --host | --hos | --ho)
1980 ac_prev=host_alias ;;
1981 -host=* | --host=* | --hos=* | --ho=*)
1982 host_alias=$ac_optarg ;;
1984 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1986 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1988 htmldir=$ac_optarg ;;
1990 -includedir | --includedir | --includedi | --included | --include \
1991 | --includ | --inclu | --incl | --inc)
1992 ac_prev=includedir ;;
1993 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1994 | --includ=* | --inclu=* | --incl=* | --inc=*)
1995 includedir=$ac_optarg ;;
1997 -infodir | --infodir | --infodi | --infod | --info | --inf)
1999 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
2000 infodir=$ac_optarg ;;
2002 -libdir | --libdir | --libdi | --libd)
2004 -libdir=* | --libdir=* | --libdi=* | --libd=*)
2005 libdir=$ac_optarg ;;
2007 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
2008 | --libexe | --libex | --libe)
2009 ac_prev=libexecdir ;;
2010 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
2011 | --libexe=* | --libex=* | --libe=*)
2012 libexecdir=$ac_optarg ;;
2014 -localedir | --localedir | --localedi | --localed | --locale)
2015 ac_prev=localedir ;;
2016 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
2017 localedir=$ac_optarg ;;
2019 -localstatedir | --localstatedir | --localstatedi | --localstated \
2020 | --localstate | --localstat | --localsta | --localst | --locals)
2021 ac_prev=localstatedir ;;
2022 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
2023 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
2024 localstatedir=$ac_optarg ;;
2026 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
2028 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
2029 mandir=$ac_optarg ;;
2031 -nfp | --nfp | --nf)
2032 # Obsolete; use --without-fp.
2035 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
2036 | --no-cr | --no-c | -n)
2039 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
2040 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
2043 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
2044 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
2045 | --oldin | --oldi | --old | --ol | --o)
2046 ac_prev=oldincludedir ;;
2047 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
2048 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
2049 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
2050 oldincludedir=$ac_optarg ;;
2052 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
2054 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
2055 prefix=$ac_optarg ;;
2057 -program-prefix | --program-prefix | --program-prefi | --program-pref \
2058 | --program-pre | --program-pr | --program-p)
2059 ac_prev=program_prefix ;;
2060 -program-prefix=* | --program-prefix=* | --program-prefi=* \
2061 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
2062 program_prefix=$ac_optarg ;;
2064 -program-suffix | --program-suffix | --program-suffi | --program-suff \
2065 | --program-suf | --program-su | --program-s)
2066 ac_prev=program_suffix ;;
2067 -program-suffix=* | --program-suffix=* | --program-suffi=* \
2068 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
2069 program_suffix=$ac_optarg ;;
2071 -program-transform-name | --program-transform-name \
2072 | --program-transform-nam | --program-transform-na \
2073 | --program-transform-n | --program-transform- \
2074 | --program-transform | --program-transfor \
2075 | --program-transfo | --program-transf \
2076 | --program-trans | --program-tran \
2077 | --progr-tra | --program-tr | --program-t)
2078 ac_prev=program_transform_name ;;
2079 -program-transform-name=* | --program-transform-name=* \
2080 | --program-transform-nam=* | --program-transform-na=* \
2081 | --program-transform-n=* | --program-transform-=* \
2082 | --program-transform=* | --program-transfor=* \
2083 | --program-transfo=* | --program-transf=* \
2084 | --program-trans=* | --program-tran=* \
2085 | --progr-tra=* | --program-tr=* | --program-t=*)
2086 program_transform_name=$ac_optarg ;;
2088 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
2090 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
2091 pdfdir=$ac_optarg ;;
2093 -psdir | --psdir | --psdi | --psd | --ps)
2095 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
2098 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2099 | -silent | --silent | --silen | --sile | --sil)
2102 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
2104 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
2106 sbindir=$ac_optarg ;;
2108 -sharedstatedir | --sharedstatedir | --sharedstatedi \
2109 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
2110 | --sharedst | --shareds | --shared | --share | --shar \
2112 ac_prev=sharedstatedir ;;
2113 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
2114 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
2115 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
2117 sharedstatedir=$ac_optarg ;;
2119 -site | --site | --sit)
2121 -site=* | --site=* | --sit=*)
2124 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
2126 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
2127 srcdir=$ac_optarg ;;
2129 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
2130 | --syscon | --sysco | --sysc | --sys | --sy)
2131 ac_prev=sysconfdir ;;
2132 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
2133 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
2134 sysconfdir=$ac_optarg ;;
2136 -target | --target | --targe | --targ | --tar | --ta | --t)
2137 ac_prev=target_alias ;;
2138 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
2139 target_alias=$ac_optarg ;;
2141 -v | -verbose | --verbose | --verbos | --verbo | --verb)
2144 -version | --version | --versio | --versi | --vers | -V)
2145 ac_init_version=: ;;
2148 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
2149 # Reject names that are not valid shell variable names.
2150 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
2151 as_fn_error $? "invalid package name: $ac_useropt"
2152 ac_useropt_orig=$ac_useropt
2153 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
2154 case $ac_user_opts in
2158 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
2159 ac_unrecognized_sep=', ';;
2161 eval with_$ac_useropt=\$ac_optarg ;;
2163 -without-* | --without-*)
2164 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
2165 # Reject names that are not valid shell variable names.
2166 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
2167 as_fn_error $? "invalid package name: $ac_useropt"
2168 ac_useropt_orig=$ac_useropt
2169 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
2170 case $ac_user_opts in
2174 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
2175 ac_unrecognized_sep=', ';;
2177 eval with_$ac_useropt=no ;;
2180 # Obsolete; use --with-x.
2183 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
2184 | --x-incl | --x-inc | --x-in | --x-i)
2185 ac_prev=x_includes ;;
2186 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
2187 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
2188 x_includes=$ac_optarg ;;
2190 -x-libraries | --x-libraries | --x-librarie | --x-librari \
2191 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
2192 ac_prev=x_libraries ;;
2193 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
2194 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
2195 x_libraries=$ac_optarg ;;
2197 -*) as_fn_error $? "unrecognized option: \`$ac_option'
2198 Try \`$0 --help' for more information"
2202 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
2203 # Reject names that are not valid shell variable names.
2204 case $ac_envvar in #(
2205 '' | [0-9]* | *[!_$as_cr_alnum]* )
2206 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
2208 eval $ac_envvar=\$ac_optarg
2209 export $ac_envvar ;;
2212 # FIXME: should be removed in autoconf 3.0.
2213 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
2214 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
2215 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
2216 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
2222 if test -n "$ac_prev"; then
2223 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
2224 as_fn_error $? "missing argument to $ac_option"
2227 if test -n "$ac_unrecognized_opts"; then
2228 case $enable_option_checking in
2230 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
2231 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
2235 # Check all directory arguments for consistency.
2236 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
2237 datadir sysconfdir sharedstatedir localstatedir includedir \
2238 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
2239 libdir localedir mandir
2241 eval ac_val=\$$ac_var
2242 # Remove trailing slashes.
2245 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
2246 eval $ac_var=\$ac_val;;
2248 # Be sure to have absolute directory names.
2250 [\\/$]* | ?:[\\/]* ) continue;;
2251 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
2253 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
2256 # There might be people who depend on the old broken behavior: `$host'
2257 # used to hold the argument of --host etc.
2258 # FIXME: To remove some day.
2261 target=$target_alias
2263 # FIXME: To remove some day.
2264 if test "x$host_alias" != x; then
2265 if test "x$build_alias" = x; then
2266 cross_compiling=maybe
2267 elif test "x$build_alias" != "x$host_alias"; then
2273 test -n "$host_alias" && ac_tool_prefix=$host_alias-
2275 test "$silent" = yes && exec 6>/dev/null
2278 ac_pwd=`pwd` && test -n "$ac_pwd" &&
2279 ac_ls_di=`ls -di .` &&
2280 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
2281 as_fn_error $? "working directory cannot be determined"
2282 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
2283 as_fn_error $? "pwd does not report name of working directory"
2286 # Find the source files, if location was not specified.
2287 if test -z "$srcdir"; then
2288 ac_srcdir_defaulted=yes
2289 # Try the directory containing this script, then the parent directory.
2290 ac_confdir=`$as_dirname -- "$as_myself" ||
2291 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
2292 X"$as_myself" : 'X\(//\)[^/]' \| \
2293 X"$as_myself" : 'X\(//\)$' \| \
2294 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
2295 $as_echo X"$as_myself" |
2296 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
2314 if test ! -r "$srcdir/$ac_unique_file"; then
2318 ac_srcdir_defaulted=no
2320 if test ! -r "$srcdir/$ac_unique_file"; then
2321 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
2322 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
2324 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
2326 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
2328 # When building in place, set srcdir=.
2329 if test "$ac_abs_confdir" = "$ac_pwd"; then
2332 # Remove unnecessary trailing slashes from srcdir.
2333 # Double slashes in file names in object file debugging info
2334 # mess up M-x gdb in Emacs.
2336 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
2338 for ac_var in $ac_precious_vars; do
2339 eval ac_env_${ac_var}_set=\${${ac_var}+set}
2340 eval ac_env_${ac_var}_value=\$${ac_var}
2341 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
2342 eval ac_cv_env_${ac_var}_value=\$${ac_var}
2346 # Report the --help message.
2348 if test "$ac_init_help" = "long"; then
2349 # Omit some internal or obsolete options to make the list less imposing.
2350 # This message is too long to be a string in the A/UX 3.1 sh.
2352 \`configure' configures GnuTLS 3.3.5 to adapt to many kinds of systems.
2354 Usage: $0 [OPTION]... [VAR=VALUE]...
2356 To assign environment variables (e.g., CC, CFLAGS...), specify them as
2357 VAR=VALUE. See below for descriptions of some of the useful variables.
2359 Defaults for the options are specified in brackets.
2362 -h, --help display this help and exit
2363 --help=short display options specific to this package
2364 --help=recursive display the short help of all the included packages
2365 -V, --version display version information and exit
2366 -q, --quiet, --silent do not print \`checking ...' messages
2367 --cache-file=FILE cache test results in FILE [disabled]
2368 -C, --config-cache alias for \`--cache-file=config.cache'
2369 -n, --no-create do not create output files
2370 --srcdir=DIR find the sources in DIR [configure dir or \`..']
2372 Installation directories:
2373 --prefix=PREFIX install architecture-independent files in PREFIX
2374 [$ac_default_prefix]
2375 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
2378 By default, \`make install' will install all the files in
2379 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
2380 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
2381 for instance \`--prefix=\$HOME'.
2383 For better control, use the options below.
2385 Fine tuning of the installation directories:
2386 --bindir=DIR user executables [EPREFIX/bin]
2387 --sbindir=DIR system admin executables [EPREFIX/sbin]
2388 --libexecdir=DIR program executables [EPREFIX/libexec]
2389 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
2390 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
2391 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
2392 --libdir=DIR object code libraries [EPREFIX/lib]
2393 --includedir=DIR C header files [PREFIX/include]
2394 --oldincludedir=DIR C header files for non-gcc [/usr/include]
2395 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
2396 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
2397 --infodir=DIR info documentation [DATAROOTDIR/info]
2398 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
2399 --mandir=DIR man documentation [DATAROOTDIR/man]
2400 --docdir=DIR documentation root [DATAROOTDIR/doc/gnutls]
2401 --htmldir=DIR html documentation [DOCDIR]
2402 --dvidir=DIR dvi documentation [DOCDIR]
2403 --pdfdir=DIR pdf documentation [DOCDIR]
2404 --psdir=DIR ps documentation [DOCDIR]
2410 --program-prefix=PREFIX prepend PREFIX to installed program names
2411 --program-suffix=SUFFIX append SUFFIX to installed program names
2412 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
2415 --build=BUILD configure for building on BUILD [guessed]
2416 --host=HOST cross-compile to build programs to run on HOST [BUILD]
2420 if test -n "$ac_init_help"; then
2421 case $ac_init_help in
2422 short | recursive ) echo "Configuration of GnuTLS 3.3.5:";;
2427 --disable-option-checking ignore unrecognized --enable/--with options
2428 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
2429 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
2430 --enable-silent-rules less verbose build output (undo: "make V=1")
2431 --disable-silent-rules verbose build output (undo: "make V=0")
2432 --enable-dependency-tracking
2433 do not reject slow dependency extractors
2434 --disable-dependency-tracking
2435 speeds up one-time build
2436 --disable-largefile omit support for large files
2437 --disable-cxx unconditionally disable the C++ library
2438 --disable-hardware-acceleration
2439 unconditionally disable hardware acceleration
2440 --disable-dtls-srtp-support
2441 disable support for the DTLS-SRTP extension
2442 --disable-alpn-support disable support for the Application Layer Protocol
2443 Negotiation (ALPN) extension
2444 --disable-rsa-export disable the RSA-EXPORT support
2445 --disable-heartbeat-support
2446 disable support for the heartbeat extension
2447 --disable-srp-authentication
2448 disable the SRP authentication support
2449 --disable-psk-authentication
2450 disable the PSK authentication support
2451 --disable-anon-authentication
2452 disable the anonymous authentication support
2453 --disable-dhe disable the DHE support
2454 --disable-ecdhe disable the ECDHE support
2455 --disable-openpgp-authentication
2456 disable the OpenPGP authentication support
2457 --enable-cryptodev enable cryptodev support
2458 --disable-ocsp disable OCSP support
2459 --disable-session-tickets
2460 disable session tickets support
2461 --disable-openssl-compatibility
2462 disable the OpenSSL compatibility support
2463 --disable-doc don't generate any documentation
2464 --disable-tests don't compile or run any tests
2465 --enable-gtk-doc use gtk-doc to build documentation [[default=no]]
2466 --enable-gtk-doc-html build documentation in html format [[default=yes]]
2467 --enable-gtk-doc-pdf build documentation in pdf format [[default=no]]
2468 --disable-nls do not use Native Language Support
2469 --disable-rpath do not hardcode runtime library paths
2470 --enable-ld-version-script
2471 enable linker version script (default is enabled
2473 --enable-valgrind-tests run self tests under valgrind
2474 --enable-gcc-warnings turn on lots of GCC warnings (for developers)
2475 --enable-static[=PKGS] build static libraries [default=no]
2476 --enable-shared[=PKGS] build shared libraries [default=yes]
2477 --enable-fast-install[=PKGS]
2478 optimize for fast installation [default=yes]
2479 --disable-libtool-lock avoid locking (might break parallel builds)
2480 --enable-self-checks enable self checking functionality
2481 --enable-fips140-mode enable FIPS140-2 mode (implies self checks)
2482 --disable-non-suiteb-curves
2483 disable curves not in SuiteB
2484 --disable-libdane disable the built of libdane
2485 --disable-nls disable nls support in libopts
2486 --enable-local-libopts Use the supplied libopts tearoff code
2487 --enable-libopts-install
2488 Install libopts with client installation
2489 --disable-optional-args not wanting optional option args
2490 --enable-guile build GNU Guile bindings
2491 --disable-crywrap unconditionally disable the crywrap TLS proxy
2495 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
2496 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
2497 --with-nettle-mini Link against a mini-nettle (that includes mini-gmp)
2498 --with-included-libtasn1
2499 use the included libtasn1
2500 --with-html-dir=PATH path to installed docs
2501 --with-gnu-ld assume the C compiler uses GNU ld default=no
2502 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
2503 --without-libiconv-prefix don't search for libiconv in includedir and libdir
2504 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
2505 --without-libintl-prefix don't search for libintl in includedir and libdir
2506 --with-librt-prefix[=DIR] search for librt in DIR/include and DIR/lib
2507 --without-librt-prefix don't search for librt in includedir and libdir
2508 --with-libpthread-prefix[=DIR] search for libpthread in DIR/include and DIR/lib
2509 --without-libpthread-prefix don't search for libpthread in includedir and libdir
2510 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
2512 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
2513 --with-sysroot=DIR Search for dependent libraries within DIR
2514 (or the compiler's sysroot if not specified).
2515 --with-libdl-prefix[=DIR] search for libdl in DIR/include and DIR/lib
2516 --without-libdl-prefix don't search for libdl in includedir and libdir
2517 --with-unbound-root-key-file
2518 specify the unbound root key file
2519 --with-system-priority-file
2520 specify the system priority file
2521 --without-p11-kit Build without p11-kit and PKCS#11 support
2522 --without-tpm Disable TPM (trousers) support.
2523 --with-autoopts-config specify the config-info script
2524 --with-regex-header a reg expr header is specified
2525 --with-libregex libregex installation prefix
2526 --with-libregex-cflags libregex compile flags
2527 --with-libregex-libs libregex link command arguments
2528 --without-zlib disable zlib compression support
2529 --with-libz-prefix[=DIR] search for libz in DIR/include and DIR/lib
2530 --without-libz-prefix don't search for libz in includedir and libdir
2531 --with-default-trust-store-pkcs11=URI
2532 use the given pkcs11 uri as default trust store
2533 --with-default-trust-store-file=FILE
2534 use the given file default trust store
2535 --with-default-crl-file=FILE
2536 use the given CRL file as default
2537 --with-default-blacklist-file=FILE
2538 use the given certificate blacklist file as default
2539 --with-guile-site-dir use the given directory as the Guile site (use with
2542 Some influential environment variables:
2543 CC C compiler command
2544 CFLAGS C compiler flags
2545 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
2546 nonstandard directory <lib dir>
2547 LIBS libraries to pass to the linker, e.g. -l<library>
2548 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
2549 you have headers in a nonstandard directory <include dir>
2551 CCAS assembler compiler command (defaults to CC)
2552 CCASFLAGS assembler compiler flags (defaults to CFLAGS)
2553 CXX C++ compiler command
2554 CXXFLAGS C++ compiler flags
2555 YACC The `Yet Another Compiler Compiler' implementation to use.
2556 Defaults to the first program found out of: `bison -y', `byacc',
2558 YFLAGS The list of arguments that will be passed by default to $YACC.
2559 This script will default YFLAGS to the empty string to avoid a
2560 default value of `-d' given by some make applications.
2561 PKG_CONFIG path to pkg-config utility
2563 C compiler flags for NETTLE, overriding pkg-config
2564 NETTLE_LIBS linker flags for NETTLE, overriding pkg-config
2566 C compiler flags for HOGWEED, overriding pkg-config
2568 linker flags for HOGWEED, overriding pkg-config
2569 GMP_CFLAGS C compiler flags for gmp
2570 GMP_LIBS linker flags for gmp
2572 C compiler flags for LIBTASN1, overriding pkg-config
2574 linker flags for LIBTASN1, overriding pkg-config
2575 CXXCPP C++ preprocessor
2577 C compiler flags for P11_KIT, overriding pkg-config
2579 linker flags for P11_KIT, overriding pkg-config
2581 C compiler flags for LIBIDN, overriding pkg-config
2582 LIBIDN_LIBS linker flags for LIBIDN, overriding pkg-config
2584 Use these variables to override the choices made by `configure' or to help
2585 it to find libraries and programs with nonstandard names/locations.
2587 Report bugs to <bugs@gnutls.org>.
2592 if test "$ac_init_help" = "recursive"; then
2593 # If there are subdirs, report their specific --help.
2594 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
2595 test -d "$ac_dir" ||
2596 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
2601 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
2603 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
2604 # A ".." for each directory in $ac_dir_suffix.
2605 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
2606 case $ac_top_builddir_sub in
2607 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
2608 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
2611 ac_abs_top_builddir=$ac_pwd
2612 ac_abs_builddir=$ac_pwd$ac_dir_suffix
2613 # for backward compatibility:
2614 ac_top_builddir=$ac_top_build_prefix
2617 .) # We are building in place.
2619 ac_top_srcdir=$ac_top_builddir_sub
2620 ac_abs_top_srcdir=$ac_pwd ;;
2621 [\\/]* | ?:[\\/]* ) # Absolute name.
2622 ac_srcdir=$srcdir$ac_dir_suffix;
2623 ac_top_srcdir=$srcdir
2624 ac_abs_top_srcdir=$srcdir ;;
2626 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
2627 ac_top_srcdir=$ac_top_build_prefix$srcdir
2628 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
2630 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
2632 cd "$ac_dir" || { ac_status=$?; continue; }
2633 # Check for guested configure.
2634 if test -f "$ac_srcdir/configure.gnu"; then
2636 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
2637 elif test -f "$ac_srcdir/configure"; then
2639 $SHELL "$ac_srcdir/configure" --help=recursive
2641 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
2643 cd "$ac_pwd" || { ac_status=$?; break; }
2647 test -n "$ac_init_help" && exit $ac_status
2648 if $ac_init_version; then
2650 GnuTLS configure 3.3.5
2651 generated by GNU Autoconf 2.69
2653 Copyright (C) 2012 Free Software Foundation, Inc.
2654 This configure script is free software; the Free Software Foundation
2655 gives unlimited permission to copy, distribute and modify it.
2660 ## ------------------------ ##
2661 ## Autoconf initialization. ##
2662 ## ------------------------ ##
2664 # ac_fn_c_try_compile LINENO
2665 # --------------------------
2666 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2667 ac_fn_c_try_compile ()
2669 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2670 rm -f conftest.$ac_objext
2671 if { { ac_try="$ac_compile"
2673 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2674 *) ac_try_echo=$ac_try;;
2676 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2677 $as_echo "$ac_try_echo"; } >&5
2678 (eval "$ac_compile") 2>conftest.err
2680 if test -s conftest.err; then
2681 grep -v '^ *+' conftest.err >conftest.er1
2682 cat conftest.er1 >&5
2683 mv -f conftest.er1 conftest.err
2685 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2686 test $ac_status = 0; } && {
2687 test -z "$ac_c_werror_flag" ||
2688 test ! -s conftest.err
2689 } && test -s conftest.$ac_objext; then :
2692 $as_echo "$as_me: failed program was:" >&5
2693 sed 's/^/| /' conftest.$ac_ext >&5
2697 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2698 as_fn_set_status $ac_retval
2700 } # ac_fn_c_try_compile
2702 # ac_fn_c_try_cpp LINENO
2703 # ----------------------
2704 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2707 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2708 if { { ac_try="$ac_cpp conftest.$ac_ext"
2710 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2711 *) ac_try_echo=$ac_try;;
2713 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2714 $as_echo "$ac_try_echo"; } >&5
2715 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2717 if test -s conftest.err; then
2718 grep -v '^ *+' conftest.err >conftest.er1
2719 cat conftest.er1 >&5
2720 mv -f conftest.er1 conftest.err
2722 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2723 test $ac_status = 0; } > conftest.i && {
2724 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2725 test ! -s conftest.err
2729 $as_echo "$as_me: failed program was:" >&5
2730 sed 's/^/| /' conftest.$ac_ext >&5
2734 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2735 as_fn_set_status $ac_retval
2739 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2740 # -------------------------------------------------------
2741 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2742 # the include files in INCLUDES and setting the cache variable VAR
2744 ac_fn_c_check_header_mongrel ()
2746 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2747 if eval \${$3+:} false; then :
2748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2749 $as_echo_n "checking for $2... " >&6; }
2750 if eval \${$3+:} false; then :
2751 $as_echo_n "(cached) " >&6
2754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2755 $as_echo "$ac_res" >&6; }
2757 # Is the header compilable?
2758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2759 $as_echo_n "checking $2 usability... " >&6; }
2760 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2761 /* end confdefs.h. */
2765 if ac_fn_c_try_compile "$LINENO"; then :
2766 ac_header_compiler=yes
2768 ac_header_compiler=no
2770 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2772 $as_echo "$ac_header_compiler" >&6; }
2774 # Is the header present?
2775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2776 $as_echo_n "checking $2 presence... " >&6; }
2777 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2778 /* end confdefs.h. */
2781 if ac_fn_c_try_cpp "$LINENO"; then :
2782 ac_header_preproc=yes
2784 ac_header_preproc=no
2786 rm -f conftest.err conftest.i conftest.$ac_ext
2787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2788 $as_echo "$ac_header_preproc" >&6; }
2790 # So? What about this header?
2791 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2793 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2794 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2795 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2796 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2799 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2800 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2801 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2802 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2803 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2804 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2805 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2806 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2807 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2808 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2809 ( $as_echo "## ------------------------------ ##
2810 ## Report this to bugs@gnutls.org ##
2811 ## ------------------------------ ##"
2812 ) | sed "s/^/$as_me: WARNING: /" >&2
2815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2816 $as_echo_n "checking for $2... " >&6; }
2817 if eval \${$3+:} false; then :
2818 $as_echo_n "(cached) " >&6
2820 eval "$3=\$ac_header_compiler"
2823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2824 $as_echo "$ac_res" >&6; }
2826 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2828 } # ac_fn_c_check_header_mongrel
2830 # ac_fn_c_try_run LINENO
2831 # ----------------------
2832 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2833 # that executables *can* be run.
2836 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2837 if { { ac_try="$ac_link"
2839 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2840 *) ac_try_echo=$ac_try;;
2842 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2843 $as_echo "$ac_try_echo"; } >&5
2844 (eval "$ac_link") 2>&5
2846 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2847 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2848 { { case "(($ac_try" in
2849 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2850 *) ac_try_echo=$ac_try;;
2852 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2853 $as_echo "$ac_try_echo"; } >&5
2854 (eval "$ac_try") 2>&5
2856 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2857 test $ac_status = 0; }; }; then :
2860 $as_echo "$as_me: program exited with status $ac_status" >&5
2861 $as_echo "$as_me: failed program was:" >&5
2862 sed 's/^/| /' conftest.$ac_ext >&5
2864 ac_retval=$ac_status
2866 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2867 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2868 as_fn_set_status $ac_retval
2872 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2873 # -------------------------------------------------------
2874 # Tests whether HEADER exists and can be compiled using the include files in
2875 # INCLUDES, setting the cache variable VAR accordingly.
2876 ac_fn_c_check_header_compile ()
2878 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2880 $as_echo_n "checking for $2... " >&6; }
2881 if eval \${$3+:} false; then :
2882 $as_echo_n "(cached) " >&6
2884 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2885 /* end confdefs.h. */
2889 if ac_fn_c_try_compile "$LINENO"; then :
2894 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2898 $as_echo "$ac_res" >&6; }
2899 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2901 } # ac_fn_c_check_header_compile
2903 # ac_fn_c_try_link LINENO
2904 # -----------------------
2905 # Try to link conftest.$ac_ext, and return whether this succeeded.
2908 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2909 rm -f conftest.$ac_objext conftest$ac_exeext
2910 if { { ac_try="$ac_link"
2912 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2913 *) ac_try_echo=$ac_try;;
2915 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2916 $as_echo "$ac_try_echo"; } >&5
2917 (eval "$ac_link") 2>conftest.err
2919 if test -s conftest.err; then
2920 grep -v '^ *+' conftest.err >conftest.er1
2921 cat conftest.er1 >&5
2922 mv -f conftest.er1 conftest.err
2924 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2925 test $ac_status = 0; } && {
2926 test -z "$ac_c_werror_flag" ||
2927 test ! -s conftest.err
2928 } && test -s conftest$ac_exeext && {
2929 test "$cross_compiling" = yes ||
2930 test -x conftest$ac_exeext
2934 $as_echo "$as_me: failed program was:" >&5
2935 sed 's/^/| /' conftest.$ac_ext >&5
2939 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2940 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2941 # interfere with the next link command; also delete a directory that is
2942 # left behind by Apple's compiler. We do this before executing the actions.
2943 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2944 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2945 as_fn_set_status $ac_retval
2947 } # ac_fn_c_try_link
2949 # ac_fn_cxx_try_compile LINENO
2950 # ----------------------------
2951 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2952 ac_fn_cxx_try_compile ()
2954 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2955 rm -f conftest.$ac_objext
2956 if { { ac_try="$ac_compile"
2958 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2959 *) ac_try_echo=$ac_try;;
2961 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2962 $as_echo "$ac_try_echo"; } >&5
2963 (eval "$ac_compile") 2>conftest.err
2965 if test -s conftest.err; then
2966 grep -v '^ *+' conftest.err >conftest.er1
2967 cat conftest.er1 >&5
2968 mv -f conftest.er1 conftest.err
2970 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2971 test $ac_status = 0; } && {
2972 test -z "$ac_cxx_werror_flag" ||
2973 test ! -s conftest.err
2974 } && test -s conftest.$ac_objext; then :
2977 $as_echo "$as_me: failed program was:" >&5
2978 sed 's/^/| /' conftest.$ac_ext >&5
2982 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2983 as_fn_set_status $ac_retval
2985 } # ac_fn_cxx_try_compile
2987 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2988 # --------------------------------------------
2989 # Tries to find the compile-time value of EXPR in a program that includes
2990 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2992 ac_fn_c_compute_int ()
2994 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2995 if test "$cross_compiling" = yes; then
2996 # Depending upon the size, compute the lo and hi bounds.
2997 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2998 /* end confdefs.h. */
3003 static int test_array [1 - 2 * !(($2) >= 0)];
3005 return test_array [0];
3011 if ac_fn_c_try_compile "$LINENO"; then :
3014 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3015 /* end confdefs.h. */
3020 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
3022 return test_array [0];
3028 if ac_fn_c_try_compile "$LINENO"; then :
3029 ac_hi=$ac_mid; break
3031 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
3032 if test $ac_lo -le $ac_mid; then
3036 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
3038 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3041 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3042 /* end confdefs.h. */
3047 static int test_array [1 - 2 * !(($2) < 0)];
3049 return test_array [0];
3055 if ac_fn_c_try_compile "$LINENO"; then :
3058 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3059 /* end confdefs.h. */
3064 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
3066 return test_array [0];
3072 if ac_fn_c_try_compile "$LINENO"; then :
3073 ac_lo=$ac_mid; break
3075 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
3076 if test $ac_mid -le $ac_hi; then
3080 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
3082 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3087 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3089 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3090 # Binary search between lo and hi bounds.
3091 while test "x$ac_lo" != "x$ac_hi"; do
3092 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
3093 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3094 /* end confdefs.h. */
3099 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
3101 return test_array [0];
3107 if ac_fn_c_try_compile "$LINENO"; then :
3110 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
3112 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3115 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
3119 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3120 /* end confdefs.h. */
3122 static long int longval () { return $2; }
3123 static unsigned long int ulongval () { return $2; }
3130 FILE *f = fopen ("conftest.val", "w");
3135 long int i = longval ();
3138 fprintf (f, "%ld", i);
3142 unsigned long int i = ulongval ();
3145 fprintf (f, "%lu", i);
3147 /* Do not output a trailing newline, as this causes \r\n confusion
3148 on some platforms. */
3149 return ferror (f) || fclose (f) != 0;
3155 if ac_fn_c_try_run "$LINENO"; then :
3156 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
3160 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3161 conftest.$ac_objext conftest.beam conftest.$ac_ext
3165 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
3166 as_fn_set_status $ac_retval
3168 } # ac_fn_c_compute_int
3170 # ac_fn_c_check_func LINENO FUNC VAR
3171 # ----------------------------------
3172 # Tests whether FUNC exists, setting the cache variable VAR accordingly
3173 ac_fn_c_check_func ()
3175 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
3176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
3177 $as_echo_n "checking for $2... " >&6; }
3178 if eval \${$3+:} false; then :
3179 $as_echo_n "(cached) " >&6
3181 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3182 /* end confdefs.h. */
3183 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
3184 For example, HP-UX 11i <limits.h> declares gettimeofday. */
3185 #define $2 innocuous_$2
3187 /* System header to define __stub macros and hopefully few prototypes,
3188 which can conflict with char $2 (); below.
3189 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3190 <limits.h> exists even on freestanding compilers. */
3193 # include <limits.h>
3195 # include <assert.h>
3200 /* Override any GCC internal prototype to avoid an error.
3201 Use char because int might match the return type of a GCC
3202 builtin and then its argument prototype would still apply. */
3207 /* The GNU C library defines this for functions which it implements
3208 to always fail with ENOSYS. Some functions are actually named
3209 something starting with __ and the normal name is an alias. */
3210 #if defined __stub_$2 || defined __stub___$2
3222 if ac_fn_c_try_link "$LINENO"; then :
3227 rm -f core conftest.err conftest.$ac_objext \
3228 conftest$ac_exeext conftest.$ac_ext
3231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
3232 $as_echo "$ac_res" >&6; }
3233 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
3235 } # ac_fn_c_check_func
3237 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
3238 # -------------------------------------------
3239 # Tests whether TYPE exists after having included INCLUDES, setting cache
3240 # variable VAR accordingly.
3241 ac_fn_c_check_type ()
3243 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
3244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
3245 $as_echo_n "checking for $2... " >&6; }
3246 if eval \${$3+:} false; then :
3247 $as_echo_n "(cached) " >&6
3250 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3251 /* end confdefs.h. */
3262 if ac_fn_c_try_compile "$LINENO"; then :
3263 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3264 /* end confdefs.h. */
3275 if ac_fn_c_try_compile "$LINENO"; then :
3280 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3282 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
3286 $as_echo "$ac_res" >&6; }
3287 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
3289 } # ac_fn_c_check_type
3291 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
3292 # ---------------------------------------------
3293 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
3295 ac_fn_c_check_decl ()
3297 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
3298 as_decl_name=`echo $2|sed 's/ *(.*//'`
3299 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
3300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
3301 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
3302 if eval \${$3+:} false; then :
3303 $as_echo_n "(cached) " >&6
3305 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3306 /* end confdefs.h. */
3311 #ifndef $as_decl_name
3313 (void) $as_decl_use;
3315 (void) $as_decl_name;
3323 if ac_fn_c_try_compile "$LINENO"; then :
3328 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
3332 $as_echo "$ac_res" >&6; }
3333 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
3335 } # ac_fn_c_check_decl
3337 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
3338 # ----------------------------------------------------
3339 # Tries to find if the field MEMBER exists in type AGGR, after including
3340 # INCLUDES, setting cache variable VAR accordingly.
3341 ac_fn_c_check_member ()
3343 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
3344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
3345 $as_echo_n "checking for $2.$3... " >&6; }
3346 if eval \${$4+:} false; then :
3347 $as_echo_n "(cached) " >&6
3349 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3350 /* end confdefs.h. */
3362 if ac_fn_c_try_compile "$LINENO"; then :
3365 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3366 /* end confdefs.h. */
3372 if (sizeof ac_aggr.$3)
3378 if ac_fn_c_try_compile "$LINENO"; then :
3383 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3385 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
3389 $as_echo "$ac_res" >&6; }
3390 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
3392 } # ac_fn_c_check_member
3394 # ac_fn_cxx_try_cpp LINENO
3395 # ------------------------
3396 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
3397 ac_fn_cxx_try_cpp ()
3399 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
3400 if { { ac_try="$ac_cpp conftest.$ac_ext"
3402 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3403 *) ac_try_echo=$ac_try;;
3405 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3406 $as_echo "$ac_try_echo"; } >&5
3407 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
3409 if test -s conftest.err; then
3410 grep -v '^ *+' conftest.err >conftest.er1
3411 cat conftest.er1 >&5
3412 mv -f conftest.er1 conftest.err
3414 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3415 test $ac_status = 0; } > conftest.i && {
3416 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
3417 test ! -s conftest.err
3421 $as_echo "$as_me: failed program was:" >&5
3422 sed 's/^/| /' conftest.$ac_ext >&5
3426 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
3427 as_fn_set_status $ac_retval
3429 } # ac_fn_cxx_try_cpp
3431 # ac_fn_cxx_try_link LINENO
3432 # -------------------------
3433 # Try to link conftest.$ac_ext, and return whether this succeeded.
3434 ac_fn_cxx_try_link ()
3436 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
3437 rm -f conftest.$ac_objext conftest$ac_exeext
3438 if { { ac_try="$ac_link"
3440 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3441 *) ac_try_echo=$ac_try;;
3443 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3444 $as_echo "$ac_try_echo"; } >&5
3445 (eval "$ac_link") 2>conftest.err
3447 if test -s conftest.err; then
3448 grep -v '^ *+' conftest.err >conftest.er1
3449 cat conftest.er1 >&5
3450 mv -f conftest.er1 conftest.err
3452 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3453 test $ac_status = 0; } && {
3454 test -z "$ac_cxx_werror_flag" ||
3455 test ! -s conftest.err
3456 } && test -s conftest$ac_exeext && {
3457 test "$cross_compiling" = yes ||
3458 test -x conftest$ac_exeext
3462 $as_echo "$as_me: failed program was:" >&5
3463 sed 's/^/| /' conftest.$ac_ext >&5
3467 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
3468 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
3469 # interfere with the next link command; also delete a directory that is
3470 # left behind by Apple's compiler. We do this before executing the actions.
3471 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
3472 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
3473 as_fn_set_status $ac_retval
3475 } # ac_fn_cxx_try_link
3476 cat >config.log <<_ACEOF
3477 This file contains any messages produced by compilers while
3478 running configure, to aid debugging if configure makes a mistake.
3480 It was created by GnuTLS $as_me 3.3.5, which was
3481 generated by GNU Autoconf 2.69. Invocation command line was
3493 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
3494 uname -m = `(uname -m) 2>/dev/null || echo unknown`
3495 uname -r = `(uname -r) 2>/dev/null || echo unknown`
3496 uname -s = `(uname -s) 2>/dev/null || echo unknown`
3497 uname -v = `(uname -v) 2>/dev/null || echo unknown`
3499 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
3500 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
3502 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
3503 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
3504 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
3505 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
3506 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
3507 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
3508 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
3512 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3516 test -z "$as_dir" && as_dir=.
3517 $as_echo "PATH: $as_dir"
3533 # Keep a trace of the command line.
3534 # Strip out --no-create and --no-recursion so they do not pile up.
3535 # Strip out --silent because we don't want to record it for future runs.
3536 # Also quote any args containing shell meta-characters.
3537 # Make two passes to allow for proper duplicate-argument suppression.
3541 ac_must_keep_next=false
3547 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
3548 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
3549 | -silent | --silent | --silen | --sile | --sil)
3552 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
3555 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
3557 as_fn_append ac_configure_args1 " '$ac_arg'"
3558 if test $ac_must_keep_next = true; then
3559 ac_must_keep_next=false # Got value, back to normal.
3562 *=* | --config-cache | -C | -disable-* | --disable-* \
3563 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
3564 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
3565 | -with-* | --with-* | -without-* | --without-* | --x)
3566 case "$ac_configure_args0 " in
3567 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
3570 -* ) ac_must_keep_next=true ;;
3573 as_fn_append ac_configure_args " '$ac_arg'"
3578 { ac_configure_args0=; unset ac_configure_args0;}
3579 { ac_configure_args1=; unset ac_configure_args1;}
3581 # When interrupted or exit'd, cleanup temporary files, and complete
3582 # config.log. We remove comments because anyway the quotes in there
3583 # would cause problems or look ugly.
3584 # WARNING: Use '\'' to represent an apostrophe within the trap.
3585 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
3586 trap 'exit_status=$?
3587 # Save into config.log some information that might help in debugging.
3591 $as_echo "## ---------------- ##
3592 ## Cache variables. ##
3593 ## ---------------- ##"
3595 # The following way of writing the cache mishandles newlines in values,
3597 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
3598 eval ac_val=\$$ac_var
3602 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
3603 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
3606 _ | IFS | as_nl) ;; #(
3607 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
3608 *) { eval $ac_var=; unset $ac_var;} ;;
3613 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
3614 *${as_nl}ac_space=\ *)
3616 "s/'\''/'\''\\\\'\'''\''/g;
3617 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
3620 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
3627 $as_echo "## ----------------- ##
3628 ## Output variables. ##
3629 ## ----------------- ##"
3631 for ac_var in $ac_subst_vars
3633 eval ac_val=\$$ac_var
3635 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3637 $as_echo "$ac_var='\''$ac_val'\''"
3641 if test -n "$ac_subst_files"; then
3642 $as_echo "## ------------------- ##
3643 ## File substitutions. ##
3644 ## ------------------- ##"
3646 for ac_var in $ac_subst_files
3648 eval ac_val=\$$ac_var
3650 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3652 $as_echo "$ac_var='\''$ac_val'\''"
3657 if test -s confdefs.h; then
3658 $as_echo "## ----------- ##
3665 test "$ac_signal" != 0 &&
3666 $as_echo "$as_me: caught signal $ac_signal"
3667 $as_echo "$as_me: exit $exit_status"
3669 rm -f core *.core core.conftest.* &&
3670 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
3673 for ac_signal in 1 2 13 15; do
3674 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
3678 # confdefs.h avoids OS command line length limits that DEFS can exceed.
3679 rm -f -r conftest* confdefs.h
3681 $as_echo "/* confdefs.h */" > confdefs.h
3683 # Predefined preprocessor variables.
3685 cat >>confdefs.h <<_ACEOF
3686 #define PACKAGE_NAME "$PACKAGE_NAME"
3689 cat >>confdefs.h <<_ACEOF
3690 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
3693 cat >>confdefs.h <<_ACEOF
3694 #define PACKAGE_VERSION "$PACKAGE_VERSION"
3697 cat >>confdefs.h <<_ACEOF
3698 #define PACKAGE_STRING "$PACKAGE_STRING"
3701 cat >>confdefs.h <<_ACEOF
3702 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
3705 cat >>confdefs.h <<_ACEOF
3706 #define PACKAGE_URL "$PACKAGE_URL"
3710 # Let the site file select an alternate cache file if it wants to.
3711 # Prefer an explicitly selected file to automatically selected ones.
3714 if test -n "$CONFIG_SITE"; then
3715 # We do not want a PATH search for config.site.
3716 case $CONFIG_SITE in #((
3717 -*) ac_site_file1=./$CONFIG_SITE;;
3718 */*) ac_site_file1=$CONFIG_SITE;;
3719 *) ac_site_file1=./$CONFIG_SITE;;
3721 elif test "x$prefix" != xNONE; then
3722 ac_site_file1=$prefix/share/config.site
3723 ac_site_file2=$prefix/etc/config.site
3725 ac_site_file1=$ac_default_prefix/share/config.site
3726 ac_site_file2=$ac_default_prefix/etc/config.site
3728 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
3730 test "x$ac_site_file" = xNONE && continue
3731 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
3732 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
3733 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
3734 sed 's/^/| /' "$ac_site_file" >&5
3736 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3737 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3738 as_fn_error $? "failed to load site script $ac_site_file
3739 See \`config.log' for more details" "$LINENO" 5; }
3743 if test -r "$cache_file"; then
3744 # Some versions of bash will fail to source /dev/null (special files
3745 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
3746 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
3747 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
3748 $as_echo "$as_me: loading cache $cache_file" >&6;}
3750 [\\/]* | ?:[\\/]* ) . "$cache_file";;
3751 *) . "./$cache_file";;
3755 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
3756 $as_echo "$as_me: creating cache $cache_file" >&6;}
3760 gl_header_list="$gl_header_list sys/socket.h"
3761 gt_needs="$gt_needs "
3762 gl_func_list="$gl_func_list _set_invalid_parameter_handler"
3763 gl_header_list="$gl_header_list sys/stat.h"
3764 gl_func_list="$gl_func_list getdelim"
3765 gl_header_list="$gl_header_list sys/time.h"
3766 gl_func_list="$gl_func_list gettimeofday"
3767 gl_header_list="$gl_header_list unistd.h"
3768 gl_header_list="$gl_header_list sys/mman.h"
3769 gl_func_list="$gl_func_list mprotect"
3770 gl_header_list="$gl_header_list netdb.h"
3771 gl_header_list="$gl_header_list netinet/in.h"
3772 gl_func_list="$gl_func_list snprintf"
3773 gl_header_list="$gl_header_list wchar.h"
3774 gl_header_list="$gl_header_list stdint.h"
3775 gl_header_list="$gl_header_list strings.h"
3776 gl_func_list="$gl_func_list strndup"
3777 gl_header_list="$gl_header_list sys/uio.h"
3778 gl_func_list="$gl_func_list localtime_r"
3779 gl_func_list="$gl_func_list vasnprintf"
3780 gl_header_list="$gl_header_list features.h"
3781 gl_header_list="$gl_header_list inttypes.h"
3782 gl_func_list="$gl_func_list shutdown"
3783 gl_header_list="$gl_header_list arpa/inet.h"
3784 gl_header_list="$gl_header_list stdio_ext.h"
3785 gl_header_list="$gl_header_list termios.h"
3786 gl_func_list="$gl_func_list __fsetlocking"
3787 gl_func_list="$gl_func_list tcgetattr"
3788 gl_func_list="$gl_func_list tcsetattr"
3789 gl_func_list="$gl_func_list nanotime"
3790 gl_header_list="$gl_header_list sys/select.h"
3791 gl_func_list="$gl_func_list setenv"
3792 gl_func_list="$gl_func_list strdup"
3793 # Check that the precious variables saved in the cache have kept the same
3795 ac_cache_corrupted=false
3796 for ac_var in $ac_precious_vars; do
3797 eval ac_old_set=\$ac_cv_env_${ac_var}_set
3798 eval ac_new_set=\$ac_env_${ac_var}_set
3799 eval ac_old_val=\$ac_cv_env_${ac_var}_value
3800 eval ac_new_val=\$ac_env_${ac_var}_value
3801 case $ac_old_set,$ac_new_set in
3803 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3804 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3805 ac_cache_corrupted=: ;;
3807 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3808 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3809 ac_cache_corrupted=: ;;
3812 if test "x$ac_old_val" != "x$ac_new_val"; then
3813 # differences in whitespace do not lead to failure.
3814 ac_old_val_w=`echo x $ac_old_val`
3815 ac_new_val_w=`echo x $ac_new_val`
3816 if test "$ac_old_val_w" != "$ac_new_val_w"; then
3817 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3818 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3819 ac_cache_corrupted=:
3821 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3822 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3823 eval $ac_var=\$ac_old_val
3825 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
3826 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
3827 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
3828 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
3831 # Pass precious variables to config.status.
3832 if test "$ac_new_set" = set; then
3834 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3835 *) ac_arg=$ac_var=$ac_new_val ;;
3837 case " $ac_configure_args " in
3838 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
3839 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3843 if $ac_cache_corrupted; then
3844 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3845 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3846 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3847 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3848 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3850 ## -------------------- ##
3851 ## Main body of script. ##
3852 ## -------------------- ##
3855 ac_cpp='$CPP $CPPFLAGS'
3856 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3857 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3858 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3862 for ac_dir in build-aux "$srcdir"/build-aux; do
3863 if test -f "$ac_dir/install-sh"; then
3865 ac_install_sh="$ac_aux_dir/install-sh -c"
3867 elif test -f "$ac_dir/install.sh"; then
3869 ac_install_sh="$ac_aux_dir/install.sh -c"
3871 elif test -f "$ac_dir/shtool"; then
3873 ac_install_sh="$ac_aux_dir/shtool install -c"
3877 if test -z "$ac_aux_dir"; then
3878 as_fn_error $? "cannot find install-sh, install.sh, or shtool in build-aux \"$srcdir\"/build-aux" "$LINENO" 5
3881 # These three variables are undocumented and unsupported,
3882 # and are intended to be withdrawn in a future Autoconf release.
3883 # They can cause serious problems if a builder's source tree is in a directory
3884 # whose full name contains unusual characters.
3885 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3886 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3887 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3891 # Make sure we can run config.sub.
3892 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3893 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3896 $as_echo_n "checking build system type... " >&6; }
3897 if ${ac_cv_build+:} false; then :
3898 $as_echo_n "(cached) " >&6
3900 ac_build_alias=$build_alias
3901 test "x$ac_build_alias" = x &&
3902 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3903 test "x$ac_build_alias" = x &&
3904 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3905 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3906 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3910 $as_echo "$ac_cv_build" >&6; }
3911 case $ac_cv_build in
3913 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3916 ac_save_IFS=$IFS; IFS='-'
3922 # Remember, the first character of IFS is used to create $*,
3923 # except with old shells:
3926 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3930 $as_echo_n "checking host system type... " >&6; }
3931 if ${ac_cv_host+:} false; then :
3932 $as_echo_n "(cached) " >&6
3934 if test "x$host_alias" = x; then
3935 ac_cv_host=$ac_cv_build
3937 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3938 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3943 $as_echo "$ac_cv_host" >&6; }
3946 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3949 ac_save_IFS=$IFS; IFS='-'
3955 # Remember, the first character of IFS is used to create $*,
3956 # except with old shells:
3959 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3963 am__api_version='1.14'
3965 # Find a good install program. We prefer a C program (faster),
3966 # so one script is as good as another. But avoid the broken or
3967 # incompatible versions:
3968 # SysV /etc/install, /usr/sbin/install
3969 # SunOS /usr/etc/install
3970 # IRIX /sbin/install
3972 # AmigaOS /C/install, which installs bootblocks on floppy discs
3973 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3974 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3975 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3976 # OS/2's system install, which has a completely different semantic
3977 # ./install, which can be erroneously created by make from ./install.sh.
3978 # Reject install programs that cannot install multiple files.
3979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3980 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3981 if test -z "$INSTALL"; then
3982 if ${ac_cv_path_install+:} false; then :
3983 $as_echo_n "(cached) " >&6
3985 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3989 test -z "$as_dir" && as_dir=.
3990 # Account for people who put trailing slashes in PATH elements.
3991 case $as_dir/ in #((
3992 ./ | .// | /[cC]/* | \
3993 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3994 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3997 # OSF1 and SCO ODT 3.0 have their own names for install.
3998 # Don't use installbsd from OSF since it installs stuff as root
4000 for ac_prog in ginstall scoinst install; do
4001 for ac_exec_ext in '' $ac_executable_extensions; do
4002 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
4003 if test $ac_prog = install &&
4004 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4005 # AIX install. It has an incompatible calling convention.
4007 elif test $ac_prog = install &&
4008 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4009 # program-specific install script used by HP pwplus--don't use.
4012 rm -rf conftest.one conftest.two conftest.dir
4013 echo one > conftest.one
4014 echo two > conftest.two
4016 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
4017 test -s conftest.one && test -s conftest.two &&
4018 test -s conftest.dir/conftest.one &&
4019 test -s conftest.dir/conftest.two
4021 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4034 rm -rf conftest.one conftest.two conftest.dir
4037 if test "${ac_cv_path_install+set}" = set; then
4038 INSTALL=$ac_cv_path_install
4040 # As a last resort, use the slow shell script. Don't cache a
4041 # value for INSTALL within a source directory, because that will
4042 # break other packages using the cache if that directory is
4043 # removed, or if the value is a relative name.
4044 INSTALL=$ac_install_sh
4047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
4048 $as_echo "$INSTALL" >&6; }
4050 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4051 # It thinks the first close brace ends the variable substitution.
4052 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4054 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4056 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
4059 $as_echo_n "checking whether build environment is sane... " >&6; }
4060 # Reject unsafe characters in $srcdir or the absolute working directory
4061 # name. Accept space and tab only in the latter.
4065 *[\\\"\#\$\&\'\`$am_lf]*)
4066 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
4069 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
4070 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
4073 # Do 'set' in a subshell so we don't clobber the current shell's
4074 # arguments. Must try -L first in case configure is actually a
4075 # symlink; some systems play weird games with the mod time of symlinks
4076 # (eg FreeBSD returns the mod time of the symlink's containing
4080 for am_try in 1 2; do
4081 echo "timestamp, slept: $am_has_slept" > conftest.file
4082 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
4083 if test "$*" = "X"; then
4085 set X `ls -t "$srcdir/configure" conftest.file`
4087 if test "$*" != "X $srcdir/configure conftest.file" \
4088 && test "$*" != "X conftest.file $srcdir/configure"; then
4090 # If neither matched, then we have a broken ls. This can happen
4091 # if, for instance, CONFIG_SHELL is bash and it inherits a
4092 # broken ls alias from the environment. This has actually
4093 # happened. Such a system could not be considered "sane".
4094 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
4095 alias in your environment" "$LINENO" 5
4097 if test "$2" = conftest.file || test $am_try -eq 2; then
4104 test "$2" = conftest.file
4110 as_fn_error $? "newly created file is older than distributed files!
4111 Check your system clock" "$LINENO" 5
4113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4114 $as_echo "yes" >&6; }
4115 # If we didn't sleep, we still need to ensure time stamps of config.status and
4116 # generated files are strictly newer.
4118 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
4125 test "$program_prefix" != NONE &&
4126 program_transform_name="s&^&$program_prefix&;$program_transform_name"
4127 # Use a double $ so make ignores it.
4128 test "$program_suffix" != NONE &&
4129 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
4130 # Double any \ or $.
4131 # By default was `s,x,x', remove it if useless.
4132 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
4133 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
4135 # expand $ac_aux_dir to an absolute path
4136 am_aux_dir=`cd $ac_aux_dir && pwd`
4138 if test x"${MISSING+set}" != xset; then
4141 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
4143 MISSING="\${SHELL} $am_aux_dir/missing" ;;
4146 # Use eval to expand $SHELL
4147 if eval "$MISSING --is-lightweight"; then
4148 am_missing_run="$MISSING "
4151 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
4152 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
4155 if test x"${install_sh}" != xset; then
4158 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
4160 install_sh="\${SHELL} $am_aux_dir/install-sh"
4164 # Installed binaries are usually stripped using 'strip' when the user
4165 # run "make install-strip". However 'strip' might not be the right
4166 # tool to use in cross-compilation environments, therefore Automake
4167 # will honor the 'STRIP' environment variable to overrule this program.
4168 if test "$cross_compiling" != no; then
4169 if test -n "$ac_tool_prefix"; then
4170 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4171 set dummy ${ac_tool_prefix}strip; ac_word=$2
4172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4173 $as_echo_n "checking for $ac_word... " >&6; }
4174 if ${ac_cv_prog_STRIP+:} false; then :
4175 $as_echo_n "(cached) " >&6
4177 if test -n "$STRIP"; then
4178 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4180 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4184 test -z "$as_dir" && as_dir=.
4185 for ac_exec_ext in '' $ac_executable_extensions; do
4186 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4187 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4188 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4197 STRIP=$ac_cv_prog_STRIP
4198 if test -n "$STRIP"; then
4199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
4200 $as_echo "$STRIP" >&6; }
4202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4203 $as_echo "no" >&6; }
4208 if test -z "$ac_cv_prog_STRIP"; then
4210 # Extract the first word of "strip", so it can be a program name with args.
4211 set dummy strip; ac_word=$2
4212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4213 $as_echo_n "checking for $ac_word... " >&6; }
4214 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
4215 $as_echo_n "(cached) " >&6
4217 if test -n "$ac_ct_STRIP"; then
4218 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4220 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4224 test -z "$as_dir" && as_dir=.
4225 for ac_exec_ext in '' $ac_executable_extensions; do
4226 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4227 ac_cv_prog_ac_ct_STRIP="strip"
4228 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4237 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4238 if test -n "$ac_ct_STRIP"; then
4239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
4240 $as_echo "$ac_ct_STRIP" >&6; }
4242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4243 $as_echo "no" >&6; }
4246 if test "x$ac_ct_STRIP" = x; then
4249 case $cross_compiling:$ac_tool_warned in
4251 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4252 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4253 ac_tool_warned=yes ;;
4258 STRIP="$ac_cv_prog_STRIP"
4262 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
4264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
4265 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
4266 if test -z "$MKDIR_P"; then
4267 if ${ac_cv_path_mkdir+:} false; then :
4268 $as_echo_n "(cached) " >&6
4270 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4271 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
4274 test -z "$as_dir" && as_dir=.
4275 for ac_prog in mkdir gmkdir; do
4276 for ac_exec_ext in '' $ac_executable_extensions; do
4277 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
4278 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
4279 'mkdir (GNU coreutils) '* | \
4280 'mkdir (coreutils) '* | \
4281 'mkdir (fileutils) '4.1*)
4282 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
4292 test -d ./--version && rmdir ./--version
4293 if test "${ac_cv_path_mkdir+set}" = set; then
4294 MKDIR_P="$ac_cv_path_mkdir -p"
4296 # As a last resort, use the slow shell script. Don't cache a
4297 # value for MKDIR_P within a source directory, because that will
4298 # break other packages using the cache if that directory is
4299 # removed, or if the value is a relative name.
4300 MKDIR_P="$ac_install_sh -d"
4303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
4304 $as_echo "$MKDIR_P" >&6; }
4306 for ac_prog in gawk mawk nawk awk
4308 # Extract the first word of "$ac_prog", so it can be a program name with args.
4309 set dummy $ac_prog; ac_word=$2
4310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4311 $as_echo_n "checking for $ac_word... " >&6; }
4312 if ${ac_cv_prog_AWK+:} false; then :
4313 $as_echo_n "(cached) " >&6
4315 if test -n "$AWK"; then
4316 ac_cv_prog_AWK="$AWK" # Let the user override the test.
4318 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4322 test -z "$as_dir" && as_dir=.
4323 for ac_exec_ext in '' $ac_executable_extensions; do
4324 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4325 ac_cv_prog_AWK="$ac_prog"
4326 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4336 if test -n "$AWK"; then
4337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4338 $as_echo "$AWK" >&6; }
4340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4341 $as_echo "no" >&6; }
4345 test -n "$AWK" && break
4348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4349 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4351 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4352 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
4353 $as_echo_n "(cached) " >&6
4355 cat >conftest.make <<\_ACEOF
4358 @echo '@@@%%%=$(MAKE)=@@@%%%'
4360 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
4361 case `${MAKE-make} -f conftest.make 2>/dev/null` in
4363 eval ac_cv_prog_make_${ac_make}_set=yes;;
4365 eval ac_cv_prog_make_${ac_make}_set=no;;
4369 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4371 $as_echo "yes" >&6; }
4374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4375 $as_echo "no" >&6; }
4376 SET_MAKE="MAKE=${MAKE-make}"
4379 rm -rf .tst 2>/dev/null
4380 mkdir .tst 2>/dev/null
4381 if test -d .tst; then
4386 rmdir .tst 2>/dev/null
4388 # Check whether --enable-silent-rules was given.
4389 if test "${enable_silent_rules+set}" = set; then :
4390 enableval=$enable_silent_rules;
4393 case $enable_silent_rules in # (((
4394 yes) AM_DEFAULT_VERBOSITY=0;;
4395 no) AM_DEFAULT_VERBOSITY=1;;
4396 *) AM_DEFAULT_VERBOSITY=1;;
4398 am_make=${MAKE-make}
4399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
4400 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
4401 if ${am_cv_make_support_nested_variables+:} false; then :
4402 $as_echo_n "(cached) " >&6
4404 if $as_echo 'TRUE=$(BAR$(V))
4410 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
4411 am_cv_make_support_nested_variables=yes
4413 am_cv_make_support_nested_variables=no
4416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
4417 $as_echo "$am_cv_make_support_nested_variables" >&6; }
4418 if test $am_cv_make_support_nested_variables = yes; then
4420 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
4422 AM_V=$AM_DEFAULT_VERBOSITY
4423 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
4427 if test "`cd $srcdir && pwd`" != "`pwd`"; then
4428 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
4429 # is not polluted with repeated "-I."
4430 am__isrc=' -I$(srcdir)'
4431 # test to see if srcdir already configured
4432 if test -f $srcdir/config.status; then
4433 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
4437 # test whether we have cygpath
4438 if test -z "$CYGPATH_W"; then
4439 if (cygpath --version) >/dev/null 2>/dev/null; then
4440 CYGPATH_W='cygpath -w'
4447 # Define the identity of the package.
4452 cat >>confdefs.h <<_ACEOF
4453 #define PACKAGE "$PACKAGE"
4457 cat >>confdefs.h <<_ACEOF
4458 #define VERSION "$VERSION"
4461 # Some tools Automake needs.
4463 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4466 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
4469 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4472 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
4475 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
4477 # For better backward compatibility. To be removed once Automake 1.9.x
4478 # dies out for good. For more background, see:
4479 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
4480 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
4481 mkdir_p='$(MKDIR_P)'
4483 # We need awk for the "check" target. The system "awk" is bad on
4485 # Always define AMTAR for backward compatibility. Yes, it's still used
4486 # in the wild :-( We should find a proper way to deprecate it ...
4490 # We'll loop over all known methods to create a tar archive until one works.
4491 _am_tools='gnutar pax cpio none'
4493 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
4500 # POSIX will say in a future version that running "rm -f" with no argument
4501 # is OK; and we want to be able to make that assumption in our Makefile
4502 # recipes. So use an aggressive probe to check that the usage we want is
4503 # actually supported "in the wild" to an acceptable degree.
4504 # See automake bug#10828.
4505 # To make any issue more visible, cause the running configure to be aborted
4506 # by default if the 'rm' program in use doesn't match our expectations; the
4507 # user can still override this though.
4508 if rm -f && rm -fr && rm -rf; then : OK; else
4512 Your 'rm' program seems unable to run without file operands specified
4513 on the command line, even when the '-f' option is present. This is contrary
4514 to the behaviour of most rm programs out there, and not conforming with
4515 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
4517 Please tell bug-automake@gnu.org about your system, including the value
4518 of your $PATH and any error possibly output before this message. This
4519 can help us improve future automake versions.
4522 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
4523 echo 'Configuration will proceed anyway, since you have set the' >&2
4524 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
4528 Aborting the configuration process, to ensure you take notice of the issue.
4530 You can download and install GNU coreutils to get an 'rm' implementation
4531 that behaves properly: <http://www.gnu.org/software/coreutils/>.
4533 If you want to complete the configuration process using your problematic
4534 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
4535 to "yes", and re-run configure.
4538 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
4542 # Check whether --enable-silent-rules was given.
4543 if test "${enable_silent_rules+set}" = set; then :
4544 enableval=$enable_silent_rules;
4547 case $enable_silent_rules in # (((
4548 yes) AM_DEFAULT_VERBOSITY=0;;
4549 no) AM_DEFAULT_VERBOSITY=1;;
4550 *) AM_DEFAULT_VERBOSITY=0;;
4552 am_make=${MAKE-make}
4553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
4554 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
4555 if ${am_cv_make_support_nested_variables+:} false; then :
4556 $as_echo_n "(cached) " >&6
4558 if $as_echo 'TRUE=$(BAR$(V))
4564 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
4565 am_cv_make_support_nested_variables=yes
4567 am_cv_make_support_nested_variables=no
4570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
4571 $as_echo "$am_cv_make_support_nested_variables" >&6; }
4572 if test $am_cv_make_support_nested_variables = yes; then
4574 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
4576 AM_V=$AM_DEFAULT_VERBOSITY
4577 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
4581 ac_config_headers="$ac_config_headers config.h"
4584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ***
4585 *** Checking for compilation programs...
4588 *** Checking for compilation programs...
4592 ac_cpp='$CPP $CPPFLAGS'
4593 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4594 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4595 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4596 if test -n "$ac_tool_prefix"; then
4597 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4598 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4600 $as_echo_n "checking for $ac_word... " >&6; }
4601 if ${ac_cv_prog_CC+:} false; then :
4602 $as_echo_n "(cached) " >&6
4604 if test -n "$CC"; then
4605 ac_cv_prog_CC="$CC" # Let the user override the test.
4607 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4611 test -z "$as_dir" && as_dir=.
4612 for ac_exec_ext in '' $ac_executable_extensions; do
4613 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4614 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4615 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4625 if test -n "$CC"; then
4626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4627 $as_echo "$CC" >&6; }
4629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4630 $as_echo "no" >&6; }
4635 if test -z "$ac_cv_prog_CC"; then
4637 # Extract the first word of "gcc", so it can be a program name with args.
4638 set dummy gcc; ac_word=$2
4639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4640 $as_echo_n "checking for $ac_word... " >&6; }
4641 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4642 $as_echo_n "(cached) " >&6
4644 if test -n "$ac_ct_CC"; then
4645 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4647 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4651 test -z "$as_dir" && as_dir=.
4652 for ac_exec_ext in '' $ac_executable_extensions; do
4653 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4654 ac_cv_prog_ac_ct_CC="gcc"
4655 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4664 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4665 if test -n "$ac_ct_CC"; then
4666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4667 $as_echo "$ac_ct_CC" >&6; }
4669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4670 $as_echo "no" >&6; }
4673 if test "x$ac_ct_CC" = x; then
4676 case $cross_compiling:$ac_tool_warned in
4678 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4679 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4680 ac_tool_warned=yes ;;
4688 if test -z "$CC"; then
4689 if test -n "$ac_tool_prefix"; then
4690 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4691 set dummy ${ac_tool_prefix}cc; ac_word=$2
4692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4693 $as_echo_n "checking for $ac_word... " >&6; }
4694 if ${ac_cv_prog_CC+:} false; then :
4695 $as_echo_n "(cached) " >&6
4697 if test -n "$CC"; then
4698 ac_cv_prog_CC="$CC" # Let the user override the test.
4700 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4704 test -z "$as_dir" && as_dir=.
4705 for ac_exec_ext in '' $ac_executable_extensions; do
4706 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4707 ac_cv_prog_CC="${ac_tool_prefix}cc"
4708 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4718 if test -n "$CC"; then
4719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4720 $as_echo "$CC" >&6; }
4722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4723 $as_echo "no" >&6; }
4729 if test -z "$CC"; then
4730 # Extract the first word of "cc", so it can be a program name with args.
4731 set dummy cc; ac_word=$2
4732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4733 $as_echo_n "checking for $ac_word... " >&6; }
4734 if ${ac_cv_prog_CC+:} false; then :
4735 $as_echo_n "(cached) " >&6
4737 if test -n "$CC"; then
4738 ac_cv_prog_CC="$CC" # Let the user override the test.
4741 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4745 test -z "$as_dir" && as_dir=.
4746 for ac_exec_ext in '' $ac_executable_extensions; do
4747 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4748 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4749 ac_prog_rejected=yes
4753 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4760 if test $ac_prog_rejected = yes; then
4761 # We found a bogon in the path, so make sure we never use it.
4762 set dummy $ac_cv_prog_CC
4764 if test $# != 0; then
4765 # We chose a different compiler from the bogus one.
4766 # However, it has the same basename, so the bogon will be chosen
4767 # first if we set CC to just the basename; use the full file name.
4769 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4775 if test -n "$CC"; then
4776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4777 $as_echo "$CC" >&6; }
4779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4780 $as_echo "no" >&6; }
4785 if test -z "$CC"; then
4786 if test -n "$ac_tool_prefix"; then
4787 for ac_prog in cl.exe
4789 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4790 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4792 $as_echo_n "checking for $ac_word... " >&6; }
4793 if ${ac_cv_prog_CC+:} false; then :
4794 $as_echo_n "(cached) " >&6
4796 if test -n "$CC"; then
4797 ac_cv_prog_CC="$CC" # Let the user override the test.
4799 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4803 test -z "$as_dir" && as_dir=.
4804 for ac_exec_ext in '' $ac_executable_extensions; do
4805 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4806 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4807 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4817 if test -n "$CC"; then
4818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4819 $as_echo "$CC" >&6; }
4821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4822 $as_echo "no" >&6; }
4826 test -n "$CC" && break
4829 if test -z "$CC"; then
4831 for ac_prog in cl.exe
4833 # Extract the first word of "$ac_prog", so it can be a program name with args.
4834 set dummy $ac_prog; ac_word=$2
4835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4836 $as_echo_n "checking for $ac_word... " >&6; }
4837 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4838 $as_echo_n "(cached) " >&6
4840 if test -n "$ac_ct_CC"; then
4841 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4843 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4847 test -z "$as_dir" && as_dir=.
4848 for ac_exec_ext in '' $ac_executable_extensions; do
4849 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4850 ac_cv_prog_ac_ct_CC="$ac_prog"
4851 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4860 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4861 if test -n "$ac_ct_CC"; then
4862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4863 $as_echo "$ac_ct_CC" >&6; }
4865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4866 $as_echo "no" >&6; }
4870 test -n "$ac_ct_CC" && break
4873 if test "x$ac_ct_CC" = x; then
4876 case $cross_compiling:$ac_tool_warned in
4878 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4879 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4880 ac_tool_warned=yes ;;
4889 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4890 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4891 as_fn_error $? "no acceptable C compiler found in \$PATH
4892 See \`config.log' for more details" "$LINENO" 5; }
4894 # Provide some information about the compiler.
4895 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4898 for ac_option in --version -v -V -qversion; do
4899 { { ac_try="$ac_compiler $ac_option >&5"
4901 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4902 *) ac_try_echo=$ac_try;;
4904 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4905 $as_echo "$ac_try_echo"; } >&5
4906 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4908 if test -s conftest.err; then
4910 ... rest of stderr output deleted ...
4911 10q' conftest.err >conftest.er1
4912 cat conftest.er1 >&5
4914 rm -f conftest.er1 conftest.err
4915 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4916 test $ac_status = 0; }
4919 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4920 /* end confdefs.h. */
4930 ac_clean_files_save=$ac_clean_files
4931 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4932 # Try to create an executable without -o first, disregard a.out.
4933 # It will help us diagnose broken compilers, and finding out an intuition
4935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4936 $as_echo_n "checking whether the C compiler works... " >&6; }
4937 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4939 # The possible output files:
4940 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4943 for ac_file in $ac_files
4946 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4947 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4952 if { { ac_try="$ac_link_default"
4954 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4955 *) ac_try_echo=$ac_try;;
4957 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4958 $as_echo "$ac_try_echo"; } >&5
4959 (eval "$ac_link_default") 2>&5
4961 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4962 test $ac_status = 0; }; then :
4963 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4964 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4965 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4966 # so that the user can short-circuit this test for compilers unknown to
4968 for ac_file in $ac_files ''
4970 test -f "$ac_file" || continue
4972 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4975 # We found the default executable, but exeext='' is most
4979 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4981 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4983 # We set ac_cv_exeext here because the later test for it is not
4984 # safe: cross compilers may not add the suffix if given an `-o'
4985 # argument, so we may need to know it at that point already.
4986 # Even if this section looks crufty: it has the advantage of
4993 test "$ac_cv_exeext" = no && ac_cv_exeext=
4998 if test -z "$ac_file"; then :
4999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5000 $as_echo "no" >&6; }
5001 $as_echo "$as_me: failed program was:" >&5
5002 sed 's/^/| /' conftest.$ac_ext >&5
5004 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5005 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5006 as_fn_error 77 "C compiler cannot create executables
5007 See \`config.log' for more details" "$LINENO" 5; }
5009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5010 $as_echo "yes" >&6; }
5012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
5013 $as_echo_n "checking for C compiler default output file name... " >&6; }
5014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
5015 $as_echo "$ac_file" >&6; }
5016 ac_exeext=$ac_cv_exeext
5018 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
5019 ac_clean_files=$ac_clean_files_save
5020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
5021 $as_echo_n "checking for suffix of executables... " >&6; }
5022 if { { ac_try="$ac_link"
5024 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5025 *) ac_try_echo=$ac_try;;
5027 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5028 $as_echo "$ac_try_echo"; } >&5
5029 (eval "$ac_link") 2>&5
5031 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5032 test $ac_status = 0; }; then :
5033 # If both `conftest.exe' and `conftest' are `present' (well, observable)
5034 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
5035 # work properly (i.e., refer to `conftest.exe'), while it won't with
5037 for ac_file in conftest.exe conftest conftest.*; do
5038 test -f "$ac_file" || continue
5040 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
5041 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
5047 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5048 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5049 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
5050 See \`config.log' for more details" "$LINENO" 5; }
5052 rm -f conftest conftest$ac_cv_exeext
5053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
5054 $as_echo "$ac_cv_exeext" >&6; }
5056 rm -f conftest.$ac_ext
5057 EXEEXT=$ac_cv_exeext
5059 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5060 /* end confdefs.h. */
5065 FILE *f = fopen ("conftest.out", "w");
5066 return ferror (f) || fclose (f) != 0;
5072 ac_clean_files="$ac_clean_files conftest.out"
5073 # Check that the compiler produces executables we can run. If not, either
5074 # the compiler is broken, or we cross compile.
5075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
5076 $as_echo_n "checking whether we are cross compiling... " >&6; }
5077 if test "$cross_compiling" != yes; then
5078 { { ac_try="$ac_link"
5080 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5081 *) ac_try_echo=$ac_try;;
5083 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5084 $as_echo "$ac_try_echo"; } >&5
5085 (eval "$ac_link") 2>&5
5087 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5088 test $ac_status = 0; }
5089 if { ac_try='./conftest$ac_cv_exeext'
5090 { { case "(($ac_try" in
5091 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5092 *) ac_try_echo=$ac_try;;
5094 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5095 $as_echo "$ac_try_echo"; } >&5
5096 (eval "$ac_try") 2>&5
5098 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5099 test $ac_status = 0; }; }; then
5102 if test "$cross_compiling" = maybe; then
5105 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5106 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5107 as_fn_error $? "cannot run C compiled programs.
5108 If you meant to cross compile, use \`--host'.
5109 See \`config.log' for more details" "$LINENO" 5; }
5113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
5114 $as_echo "$cross_compiling" >&6; }
5116 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
5117 ac_clean_files=$ac_clean_files_save
5118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
5119 $as_echo_n "checking for suffix of object files... " >&6; }
5120 if ${ac_cv_objext+:} false; then :
5121 $as_echo_n "(cached) " >&6
5123 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5124 /* end confdefs.h. */
5134 rm -f conftest.o conftest.obj
5135 if { { ac_try="$ac_compile"
5137 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5138 *) ac_try_echo=$ac_try;;
5140 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5141 $as_echo "$ac_try_echo"; } >&5
5142 (eval "$ac_compile") 2>&5
5144 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5145 test $ac_status = 0; }; then :
5146 for ac_file in conftest.o conftest.obj conftest.*; do
5147 test -f "$ac_file" || continue;
5149 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
5150 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
5155 $as_echo "$as_me: failed program was:" >&5
5156 sed 's/^/| /' conftest.$ac_ext >&5
5158 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5159 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5160 as_fn_error $? "cannot compute suffix of object files: cannot compile
5161 See \`config.log' for more details" "$LINENO" 5; }
5163 rm -f conftest.$ac_cv_objext conftest.$ac_ext
5165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
5166 $as_echo "$ac_cv_objext" >&6; }
5167 OBJEXT=$ac_cv_objext
5169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
5170 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
5171 if ${ac_cv_c_compiler_gnu+:} false; then :
5172 $as_echo_n "(cached) " >&6
5174 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5175 /* end confdefs.h. */
5188 if ac_fn_c_try_compile "$LINENO"; then :
5193 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5194 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5198 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
5199 if test $ac_compiler_gnu = yes; then
5204 ac_test_CFLAGS=${CFLAGS+set}
5205 ac_save_CFLAGS=$CFLAGS
5206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5207 $as_echo_n "checking whether $CC accepts -g... " >&6; }
5208 if ${ac_cv_prog_cc_g+:} false; then :
5209 $as_echo_n "(cached) " >&6
5211 ac_save_c_werror_flag=$ac_c_werror_flag
5212 ac_c_werror_flag=yes
5215 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5216 /* end confdefs.h. */
5226 if ac_fn_c_try_compile "$LINENO"; then :
5230 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5231 /* end confdefs.h. */
5241 if ac_fn_c_try_compile "$LINENO"; then :
5244 ac_c_werror_flag=$ac_save_c_werror_flag
5246 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5247 /* end confdefs.h. */
5257 if ac_fn_c_try_compile "$LINENO"; then :
5260 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5262 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5264 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5265 ac_c_werror_flag=$ac_save_c_werror_flag
5267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5268 $as_echo "$ac_cv_prog_cc_g" >&6; }
5269 if test "$ac_test_CFLAGS" = set; then
5270 CFLAGS=$ac_save_CFLAGS
5271 elif test $ac_cv_prog_cc_g = yes; then
5272 if test "$GCC" = yes; then
5278 if test "$GCC" = yes; then
5284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
5285 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5286 if ${ac_cv_prog_cc_c89+:} false; then :
5287 $as_echo_n "(cached) " >&6
5289 ac_cv_prog_cc_c89=no
5291 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5292 /* end confdefs.h. */
5296 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5297 struct buf { int x; };
5298 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5299 static char *e (p, i)
5305 static char *f (char * (*g) (char **, int), char **p, ...)
5310 s = g (p, va_arg (v,int));
5315 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5316 function prototypes and stuff, but not '\xHH' hex character constants.
5317 These don't provoke an error unfortunately, instead are silently treated
5318 as 'x'. The following induces an error, until -std is added to get
5319 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5320 array size at least. It's necessary to write '\x00'==0 to get something
5321 that's true only with -std. */
5322 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5324 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5325 inside strings and character constants. */
5327 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5329 int test (int i, double x);
5330 struct s1 {int (*f) (int a);};
5331 struct s2 {int (*f) (double a);};
5332 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5338 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5343 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5344 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5346 CC="$ac_save_CC $ac_arg"
5347 if ac_fn_c_try_compile "$LINENO"; then :
5348 ac_cv_prog_cc_c89=$ac_arg
5350 rm -f core conftest.err conftest.$ac_objext
5351 test "x$ac_cv_prog_cc_c89" != "xno" && break
5353 rm -f conftest.$ac_ext
5358 case "x$ac_cv_prog_cc_c89" in
5360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5361 $as_echo "none needed" >&6; } ;;
5363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5364 $as_echo "unsupported" >&6; } ;;
5366 CC="$CC $ac_cv_prog_cc_c89"
5367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5368 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5370 if test "x$ac_cv_prog_cc_c89" != xno; then :
5375 ac_cpp='$CPP $CPPFLAGS'
5376 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5377 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5378 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5381 ac_cpp='$CPP $CPPFLAGS'
5382 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5383 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5384 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
5386 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
5387 if ${am_cv_prog_cc_c_o+:} false; then :
5388 $as_echo_n "(cached) " >&6
5390 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5391 /* end confdefs.h. */
5401 # Make sure it works both with $CC and with simple cc.
5402 # Following AC_PROG_CC_C_O, we do the test twice because some
5403 # compilers refuse to overwrite an existing .o file with -o,
5404 # though they will create one.
5405 am_cv_prog_cc_c_o=yes
5407 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
5408 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
5410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5411 (exit $ac_status); } \
5412 && test -f conftest2.$ac_objext; then
5415 am_cv_prog_cc_c_o=no
5419 rm -f core conftest*
5422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
5423 $as_echo "$am_cv_prog_cc_c_o" >&6; }
5424 if test "$am_cv_prog_cc_c_o" != yes; then
5425 # Losing compiler, so override with the script.
5426 # FIXME: It is wrong to rewrite CC.
5427 # But if we don't then we get into trouble of one sort or another.
5428 # A longer-term fix would be to have automake use am__CC in this case,
5429 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5430 CC="$am_aux_dir/compile $CC"
5433 ac_cpp='$CPP $CPPFLAGS'
5434 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5435 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5436 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5438 DEPDIR="${am__leading_dot}deps"
5440 ac_config_commands="$ac_config_commands depfiles"
5443 am_make=${MAKE-make}
5444 cat > confinc << 'END'
5446 @echo this is the am__doit target
5449 # If we don't find an include directive, just comment out the code.
5450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
5451 $as_echo_n "checking for style of include used by $am_make... " >&6; }
5455 # First try GNU make style include.
5456 echo "include confinc" > confmf
5457 # Ignore all kinds of additional output from 'make'.
5458 case `$am_make -s -f confmf 2> /dev/null` in #(
5459 *the\ am__doit\ target*)
5465 # Now try BSD make style include.
5466 if test "$am__include" = "#"; then
5467 echo '.include "confinc"' > confmf
5468 case `$am_make -s -f confmf 2> /dev/null` in #(
5469 *the\ am__doit\ target*)
5470 am__include=.include
5478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
5479 $as_echo "$_am_result" >&6; }
5480 rm -f confinc confmf
5482 # Check whether --enable-dependency-tracking was given.
5483 if test "${enable_dependency_tracking+set}" = set; then :
5484 enableval=$enable_dependency_tracking;
5487 if test "x$enable_dependency_tracking" != xno; then
5488 am_depcomp="$ac_aux_dir/depcomp"
5492 if test "x$enable_dependency_tracking" != xno; then
5502 depcc="$CC" am_compiler_list=
5504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5505 $as_echo_n "checking dependency style of $depcc... " >&6; }
5506 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
5507 $as_echo_n "(cached) " >&6
5509 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5510 # We make a subdir and do the tests there. Otherwise we can end up
5511 # making bogus files that we don't know about and never remove. For
5512 # instance it was reported that on HP-UX the gcc test will end up
5513 # making a dummy file named 'D' -- because '-MD' means "put the output
5517 # Copy depcomp to subdir because otherwise we won't find it if we're
5518 # using a relative directory.
5519 cp "$am_depcomp" conftest.dir
5521 # We will build objects and dependencies in a subdirectory because
5522 # it helps to detect inapplicable dependency modes. For instance
5523 # both Tru64's cc and ICC support -MD to output dependencies as a
5524 # side effect of compilation, but ICC will put the dependencies in
5525 # the current directory while Tru64 will put them in the object
5529 am_cv_CC_dependencies_compiler_type=none
5530 if test "$am_compiler_list" = ""; then
5531 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5534 case " $depcc " in #(
5535 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5538 for depmode in $am_compiler_list; do
5539 # Setup a source with many dependencies, because some compilers
5540 # like to wrap large dependency lists on column 80 (with \), and
5541 # we should not choose a depcomp mode which is confused by this.
5543 # We need to recreate these files for each test, as the compiler may
5544 # overwrite some of them when testing with obscure command lines.
5545 # This happens at least with the AIX C compiler.
5547 for i in 1 2 3 4 5 6; do
5548 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5549 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
5550 # Solaris 10 /bin/sh.
5551 echo '/* dummy */' > sub/conftst$i.h
5553 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5555 # We check with '-c' and '-o' for the sake of the "dashmstdout"
5556 # mode. It turns out that the SunPro C++ compiler does not properly
5557 # handle '-M -o', and we need to detect this. Also, some Intel
5558 # versions had trouble with output in subdirs.
5559 am__obj=sub/conftest.${OBJEXT-o}
5560 am__minus_obj="-o $am__obj"
5563 # This depmode causes a compiler race in universal mode.
5564 test "$am__universal" = false || continue
5567 # After this tag, mechanisms are not by side-effect, so they'll
5568 # only be used when explicitly requested.
5569 if test "x$enable_dependency_tracking" = xyes; then
5575 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
5576 # This compiler won't grok '-c -o', but also, the minuso test has
5577 # not run yet. These depmodes are late enough in the game, and
5578 # so weak that their functioning should not be impacted.
5579 am__obj=conftest.${OBJEXT-o}
5584 if depmode=$depmode \
5585 source=sub/conftest.c object=$am__obj \
5586 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5587 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5588 >/dev/null 2>conftest.err &&
5589 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5590 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5591 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5592 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5593 # icc doesn't choke on unknown options, it will just issue warnings
5594 # or remarks (even with -Werror). So we grep stderr for any message
5595 # that says an option was ignored or not supported.
5596 # When given -MP, icc 7.0 and 7.1 complain thusly:
5597 # icc: Command line warning: ignoring option '-M'; no argument required
5598 # The diagnosis changed in icc 8.0:
5599 # icc: Command line remark: option '-MP' not supported
5600 if (grep 'ignoring option' conftest.err ||
5601 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5602 am_cv_CC_dependencies_compiler_type=$depmode
5611 am_cv_CC_dependencies_compiler_type=none
5615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5616 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5617 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5620 test "x$enable_dependency_tracking" != xno \
5621 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5623 am__fastdepCC_FALSE='#'
5625 am__fastdepCC_TRUE='#'
5626 am__fastdepCC_FALSE=
5632 ac_cpp='$CPP $CPPFLAGS'
5633 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5634 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5635 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5637 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5638 # On Suns, sometimes $CPP names a directory.
5639 if test -n "$CPP" && test -d "$CPP"; then
5642 if test -z "$CPP"; then
5643 if ${ac_cv_prog_CPP+:} false; then :
5644 $as_echo_n "(cached) " >&6
5646 # Double quotes because CPP needs to be expanded
5647 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5650 for ac_c_preproc_warn_flag in '' yes
5652 # Use a header file that comes with gcc, so configuring glibc
5653 # with a fresh cross-compiler works.
5654 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5655 # <limits.h> exists even on freestanding compilers.
5656 # On the NeXT, cc -E runs the code through the compiler's parser,
5657 # not just through cpp. "Syntax error" is here to catch this case.
5658 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5659 /* end confdefs.h. */
5661 # include <limits.h>
5663 # include <assert.h>
5667 if ac_fn_c_try_cpp "$LINENO"; then :
5670 # Broken: fails on valid input.
5673 rm -f conftest.err conftest.i conftest.$ac_ext
5675 # OK, works on sane cases. Now check whether nonexistent headers
5676 # can be detected and how.
5677 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5678 /* end confdefs.h. */
5679 #include <ac_nonexistent.h>
5681 if ac_fn_c_try_cpp "$LINENO"; then :
5682 # Broken: success on invalid input.
5685 # Passes both tests.
5689 rm -f conftest.err conftest.i conftest.$ac_ext
5692 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5693 rm -f conftest.i conftest.err conftest.$ac_ext
5694 if $ac_preproc_ok; then :
5706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5707 $as_echo "$CPP" >&6; }
5709 for ac_c_preproc_warn_flag in '' yes
5711 # Use a header file that comes with gcc, so configuring glibc
5712 # with a fresh cross-compiler works.
5713 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5714 # <limits.h> exists even on freestanding compilers.
5715 # On the NeXT, cc -E runs the code through the compiler's parser,
5716 # not just through cpp. "Syntax error" is here to catch this case.
5717 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5718 /* end confdefs.h. */
5720 # include <limits.h>
5722 # include <assert.h>
5726 if ac_fn_c_try_cpp "$LINENO"; then :
5729 # Broken: fails on valid input.
5732 rm -f conftest.err conftest.i conftest.$ac_ext
5734 # OK, works on sane cases. Now check whether nonexistent headers
5735 # can be detected and how.
5736 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5737 /* end confdefs.h. */
5738 #include <ac_nonexistent.h>
5740 if ac_fn_c_try_cpp "$LINENO"; then :
5741 # Broken: success on invalid input.
5744 # Passes both tests.
5748 rm -f conftest.err conftest.i conftest.$ac_ext
5751 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5752 rm -f conftest.i conftest.err conftest.$ac_ext
5753 if $ac_preproc_ok; then :
5756 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5757 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5758 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
5759 See \`config.log' for more details" "$LINENO" 5; }
5763 ac_cpp='$CPP $CPPFLAGS'
5764 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5765 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5766 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5770 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5771 if ${ac_cv_path_GREP+:} false; then :
5772 $as_echo_n "(cached) " >&6
5774 if test -z "$GREP"; then
5775 ac_path_GREP_found=false
5776 # Loop through the user's path and test for each of PROGNAME-LIST
5777 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5778 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5781 test -z "$as_dir" && as_dir=.
5782 for ac_prog in grep ggrep; do
5783 for ac_exec_ext in '' $ac_executable_extensions; do
5784 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5785 as_fn_executable_p "$ac_path_GREP" || continue
5786 # Check for GNU ac_path_GREP and select it if it is found.
5787 # Check for GNU $ac_path_GREP
5788 case `"$ac_path_GREP" --version 2>&1` in
5790 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5793 $as_echo_n 0123456789 >"conftest.in"
5796 cat "conftest.in" "conftest.in" >"conftest.tmp"
5797 mv "conftest.tmp" "conftest.in"
5798 cp "conftest.in" "conftest.nl"
5799 $as_echo 'GREP' >> "conftest.nl"
5800 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5801 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5802 as_fn_arith $ac_count + 1 && ac_count=$as_val
5803 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5804 # Best one so far, save it but keep looking for a better one
5805 ac_cv_path_GREP="$ac_path_GREP"
5806 ac_path_GREP_max=$ac_count
5808 # 10*(2^10) chars as input seems more than enough
5809 test $ac_count -gt 10 && break
5811 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5814 $ac_path_GREP_found && break 3
5819 if test -z "$ac_cv_path_GREP"; then
5820 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5823 ac_cv_path_GREP=$GREP
5827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5828 $as_echo "$ac_cv_path_GREP" >&6; }
5829 GREP="$ac_cv_path_GREP"
5832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5833 $as_echo_n "checking for egrep... " >&6; }
5834 if ${ac_cv_path_EGREP+:} false; then :
5835 $as_echo_n "(cached) " >&6
5837 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5838 then ac_cv_path_EGREP="$GREP -E"
5840 if test -z "$EGREP"; then
5841 ac_path_EGREP_found=false
5842 # Loop through the user's path and test for each of PROGNAME-LIST
5843 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5844 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5847 test -z "$as_dir" && as_dir=.
5848 for ac_prog in egrep; do
5849 for ac_exec_ext in '' $ac_executable_extensions; do
5850 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5851 as_fn_executable_p "$ac_path_EGREP" || continue
5852 # Check for GNU ac_path_EGREP and select it if it is found.
5853 # Check for GNU $ac_path_EGREP
5854 case `"$ac_path_EGREP" --version 2>&1` in
5856 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5859 $as_echo_n 0123456789 >"conftest.in"
5862 cat "conftest.in" "conftest.in" >"conftest.tmp"
5863 mv "conftest.tmp" "conftest.in"
5864 cp "conftest.in" "conftest.nl"
5865 $as_echo 'EGREP' >> "conftest.nl"
5866 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5867 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5868 as_fn_arith $ac_count + 1 && ac_count=$as_val
5869 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5870 # Best one so far, save it but keep looking for a better one
5871 ac_cv_path_EGREP="$ac_path_EGREP"
5872 ac_path_EGREP_max=$ac_count
5874 # 10*(2^10) chars as input seems more than enough
5875 test $ac_count -gt 10 && break
5877 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5880 $ac_path_EGREP_found && break 3
5885 if test -z "$ac_cv_path_EGREP"; then
5886 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5889 ac_cv_path_EGREP=$EGREP
5894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5895 $as_echo "$ac_cv_path_EGREP" >&6; }
5896 EGREP="$ac_cv_path_EGREP"
5901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Minix Amsterdam compiler" >&5
5902 $as_echo_n "checking for Minix Amsterdam compiler... " >&6; }
5903 if ${gl_cv_c_amsterdam_compiler+:} false; then :
5904 $as_echo_n "(cached) " >&6
5907 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5908 /* end confdefs.h. */
5915 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5916 $EGREP "Amsterdam" >/dev/null 2>&1; then :
5917 gl_cv_c_amsterdam_compiler=yes
5919 gl_cv_c_amsterdam_compiler=no
5925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_c_amsterdam_compiler" >&5
5926 $as_echo "$gl_cv_c_amsterdam_compiler" >&6; }
5927 if test -z "$AR"; then
5928 if test $gl_cv_c_amsterdam_compiler = yes; then
5930 if test -z "$ARFLAGS"; then
5934 if test -n "$ac_tool_prefix"; then
5935 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5936 set dummy ${ac_tool_prefix}ar; ac_word=$2
5937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5938 $as_echo_n "checking for $ac_word... " >&6; }
5939 if ${ac_cv_prog_AR+:} false; then :
5940 $as_echo_n "(cached) " >&6
5942 if test -n "$AR"; then
5943 ac_cv_prog_AR="$AR" # Let the user override the test.
5945 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5949 test -z "$as_dir" && as_dir=.
5950 for ac_exec_ext in '' $ac_executable_extensions; do
5951 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5952 ac_cv_prog_AR="${ac_tool_prefix}ar"
5953 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5963 if test -n "$AR"; then
5964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5965 $as_echo "$AR" >&6; }
5967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5968 $as_echo "no" >&6; }
5973 if test -z "$ac_cv_prog_AR"; then
5975 # Extract the first word of "ar", so it can be a program name with args.
5976 set dummy ar; ac_word=$2
5977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5978 $as_echo_n "checking for $ac_word... " >&6; }
5979 if ${ac_cv_prog_ac_ct_AR+:} false; then :
5980 $as_echo_n "(cached) " >&6
5982 if test -n "$ac_ct_AR"; then
5983 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5985 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5989 test -z "$as_dir" && as_dir=.
5990 for ac_exec_ext in '' $ac_executable_extensions; do
5991 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5992 ac_cv_prog_ac_ct_AR="ar"
5993 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6002 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6003 if test -n "$ac_ct_AR"; then
6004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6005 $as_echo "$ac_ct_AR" >&6; }
6007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6008 $as_echo "no" >&6; }
6011 if test "x$ac_ct_AR" = x; then
6014 case $cross_compiling:$ac_tool_warned in
6016 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6017 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6018 ac_tool_warned=yes ;;
6026 if test -z "$ARFLAGS"; then
6031 if test -z "$ARFLAGS"; then
6037 if test -z "$RANLIB"; then
6038 if test $gl_cv_c_amsterdam_compiler = yes; then
6041 if test -n "$ac_tool_prefix"; then
6042 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6043 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6045 $as_echo_n "checking for $ac_word... " >&6; }
6046 if ${ac_cv_prog_RANLIB+:} false; then :
6047 $as_echo_n "(cached) " >&6
6049 if test -n "$RANLIB"; then
6050 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6052 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6056 test -z "$as_dir" && as_dir=.
6057 for ac_exec_ext in '' $ac_executable_extensions; do
6058 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6059 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6060 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6069 RANLIB=$ac_cv_prog_RANLIB
6070 if test -n "$RANLIB"; then
6071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6072 $as_echo "$RANLIB" >&6; }
6074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6075 $as_echo "no" >&6; }
6080 if test -z "$ac_cv_prog_RANLIB"; then
6081 ac_ct_RANLIB=$RANLIB
6082 # Extract the first word of "ranlib", so it can be a program name with args.
6083 set dummy ranlib; ac_word=$2
6084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6085 $as_echo_n "checking for $ac_word... " >&6; }
6086 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6087 $as_echo_n "(cached) " >&6
6089 if test -n "$ac_ct_RANLIB"; then
6090 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6092 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6096 test -z "$as_dir" && as_dir=.
6097 for ac_exec_ext in '' $ac_executable_extensions; do
6098 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6099 ac_cv_prog_ac_ct_RANLIB="ranlib"
6100 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6109 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6110 if test -n "$ac_ct_RANLIB"; then
6111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6112 $as_echo "$ac_ct_RANLIB" >&6; }
6114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6115 $as_echo "no" >&6; }
6118 if test "x$ac_ct_RANLIB" = x; then
6121 case $cross_compiling:$ac_tool_warned in
6123 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6124 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6125 ac_tool_warned=yes ;;
6127 RANLIB=$ac_ct_RANLIB
6130 RANLIB="$ac_cv_prog_RANLIB"
6137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6138 $as_echo_n "checking for ANSI C header files... " >&6; }
6139 if ${ac_cv_header_stdc+:} false; then :
6140 $as_echo_n "(cached) " >&6
6142 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6143 /* end confdefs.h. */
6157 if ac_fn_c_try_compile "$LINENO"; then :
6158 ac_cv_header_stdc=yes
6160 ac_cv_header_stdc=no
6162 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6164 if test $ac_cv_header_stdc = yes; then
6165 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6166 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6167 /* end confdefs.h. */
6171 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6172 $EGREP "memchr" >/dev/null 2>&1; then :
6175 ac_cv_header_stdc=no
6181 if test $ac_cv_header_stdc = yes; then
6182 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6183 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6184 /* end confdefs.h. */
6188 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6189 $EGREP "free" >/dev/null 2>&1; then :
6192 ac_cv_header_stdc=no
6198 if test $ac_cv_header_stdc = yes; then
6199 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6200 if test "$cross_compiling" = yes; then :
6203 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6204 /* end confdefs.h. */
6207 #if ((' ' & 0x0FF) == 0x020)
6208 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6209 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6211 # define ISLOWER(c) \
6212 (('a' <= (c) && (c) <= 'i') \
6213 || ('j' <= (c) && (c) <= 'r') \
6214 || ('s' <= (c) && (c) <= 'z'))
6215 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6218 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6223 for (i = 0; i < 256; i++)
6224 if (XOR (islower (i), ISLOWER (i))
6225 || toupper (i) != TOUPPER (i))
6230 if ac_fn_c_try_run "$LINENO"; then :
6233 ac_cv_header_stdc=no
6235 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6236 conftest.$ac_objext conftest.beam conftest.$ac_ext
6241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6242 $as_echo "$ac_cv_header_stdc" >&6; }
6243 if test $ac_cv_header_stdc = yes; then
6245 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
6249 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6250 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6251 inttypes.h stdint.h unistd.h
6253 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6254 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6256 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6257 cat >>confdefs.h <<_ACEOF
6258 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6267 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
6268 if test "x$ac_cv_header_minix_config_h" = xyes; then :
6275 if test "$MINIX" = yes; then
6277 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
6280 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
6283 $as_echo "#define _MINIX 1" >>confdefs.h
6286 $as_echo "#define _NETBSD_SOURCE 1" >>confdefs.h
6291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
6292 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
6293 if ${ac_cv_safe_to_define___extensions__+:} false; then :
6294 $as_echo_n "(cached) " >&6
6296 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6297 /* end confdefs.h. */
6299 # define __EXTENSIONS__ 1
6300 $ac_includes_default
6309 if ac_fn_c_try_compile "$LINENO"; then :
6310 ac_cv_safe_to_define___extensions__=yes
6312 ac_cv_safe_to_define___extensions__=no
6314 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
6317 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
6318 test $ac_cv_safe_to_define___extensions__ = yes &&
6319 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
6321 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
6323 $as_echo "#define _DARWIN_C_SOURCE 1" >>confdefs.h
6325 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
6327 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
6329 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
6331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether _XOPEN_SOURCE should be defined" >&5
6332 $as_echo_n "checking whether _XOPEN_SOURCE should be defined... " >&6; }
6333 if ${ac_cv_should_define__xopen_source+:} false; then :
6334 $as_echo_n "(cached) " >&6
6336 ac_cv_should_define__xopen_source=no
6337 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6338 /* end confdefs.h. */
6350 if ac_fn_c_try_compile "$LINENO"; then :
6353 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6354 /* end confdefs.h. */
6356 #define _XOPEN_SOURCE 500
6367 if ac_fn_c_try_compile "$LINENO"; then :
6368 ac_cv_should_define__xopen_source=yes
6370 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6372 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_should_define__xopen_source" >&5
6375 $as_echo "$ac_cv_should_define__xopen_source" >&6; }
6376 test $ac_cv_should_define__xopen_source = yes &&
6377 $as_echo "#define _XOPEN_SOURCE 500" >>confdefs.h
6389 # IEEE behaviour is the default on all CPUs except Alpha and SH
6390 # (according to the test results of Bruno Haible's ieeefp/fenv_default.m4
6391 # and the GCC 4.1.2 manual).
6394 # On Alpha systems, a compiler option provides the behaviour.
6395 # See the ieee(3) manual page, also available at
6396 # <http://h30097.www3.hp.com/docs/base_doc/DOCUMENTATION/V51B_HTML/MAN/MAN3/0600____.HTM>
6397 if test -n "$GCC"; then
6398 # GCC has the option -mieee.
6399 # For full IEEE compliance (rarely needed), use option -mieee-with-inexact.
6400 CPPFLAGS="$CPPFLAGS -mieee"
6402 # Compaq (ex-DEC) C has the option -ieee, equivalent to -ieee_with_no_inexact.
6403 # For full IEEE compliance (rarely needed), use option -ieee_with_inexact.
6404 CPPFLAGS="$CPPFLAGS -ieee"
6408 if test -n "$GCC"; then
6409 # GCC has the option -mieee.
6410 CPPFLAGS="$CPPFLAGS -mieee"
6415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
6416 $as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
6417 if ${ac_cv_sys_largefile_source+:} false; then :
6418 $as_echo_n "(cached) " >&6
6421 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6422 /* end confdefs.h. */
6423 #include <sys/types.h> /* for off_t */
6428 int (*fp) (FILE *, off_t, int) = fseeko;
6429 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
6434 if ac_fn_c_try_link "$LINENO"; then :
6435 ac_cv_sys_largefile_source=no; break
6437 rm -f core conftest.err conftest.$ac_objext \
6438 conftest$ac_exeext conftest.$ac_ext
6439 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6440 /* end confdefs.h. */
6441 #define _LARGEFILE_SOURCE 1
6442 #include <sys/types.h> /* for off_t */
6447 int (*fp) (FILE *, off_t, int) = fseeko;
6448 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
6453 if ac_fn_c_try_link "$LINENO"; then :
6454 ac_cv_sys_largefile_source=1; break
6456 rm -f core conftest.err conftest.$ac_objext \
6457 conftest$ac_exeext conftest.$ac_ext
6458 ac_cv_sys_largefile_source=unknown
6462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
6463 $as_echo "$ac_cv_sys_largefile_source" >&6; }
6464 case $ac_cv_sys_largefile_source in #(
6467 cat >>confdefs.h <<_ACEOF
6468 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
6474 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
6475 # in glibc 2.1.3, but that breaks too many other things.
6476 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
6477 if test $ac_cv_sys_largefile_source != unknown; then
6479 $as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
6483 # Check whether --enable-largefile was given.
6484 if test "${enable_largefile+set}" = set; then :
6485 enableval=$enable_largefile;
6488 if test "$enable_largefile" != no; then
6490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
6491 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
6492 if ${ac_cv_sys_largefile_CC+:} false; then :
6493 $as_echo_n "(cached) " >&6
6495 ac_cv_sys_largefile_CC=no
6496 if test "$GCC" != yes; then
6499 # IRIX 6.2 and later do not support large files by default,
6500 # so use the C compiler's -n32 option if that helps.
6501 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6502 /* end confdefs.h. */
6503 #include <sys/types.h>
6504 /* Check that off_t can represent 2**63 - 1 correctly.
6505 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6506 since some C++ compilers masquerading as C compilers
6507 incorrectly reject 9223372036854775807. */
6508 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6509 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6510 && LARGE_OFF_T % 2147483647 == 1)
6520 if ac_fn_c_try_compile "$LINENO"; then :
6523 rm -f core conftest.err conftest.$ac_objext
6525 if ac_fn_c_try_compile "$LINENO"; then :
6526 ac_cv_sys_largefile_CC=' -n32'; break
6528 rm -f core conftest.err conftest.$ac_objext
6532 rm -f conftest.$ac_ext
6535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
6536 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
6537 if test "$ac_cv_sys_largefile_CC" != no; then
6538 CC=$CC$ac_cv_sys_largefile_CC
6541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
6542 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
6543 if ${ac_cv_sys_file_offset_bits+:} false; then :
6544 $as_echo_n "(cached) " >&6
6547 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6548 /* end confdefs.h. */
6549 #include <sys/types.h>
6550 /* Check that off_t can represent 2**63 - 1 correctly.
6551 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6552 since some C++ compilers masquerading as C compilers
6553 incorrectly reject 9223372036854775807. */
6554 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6555 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6556 && LARGE_OFF_T % 2147483647 == 1)
6566 if ac_fn_c_try_compile "$LINENO"; then :
6567 ac_cv_sys_file_offset_bits=no; break
6569 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6570 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6571 /* end confdefs.h. */
6572 #define _FILE_OFFSET_BITS 64
6573 #include <sys/types.h>
6574 /* Check that off_t can represent 2**63 - 1 correctly.
6575 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6576 since some C++ compilers masquerading as C compilers
6577 incorrectly reject 9223372036854775807. */
6578 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6579 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6580 && LARGE_OFF_T % 2147483647 == 1)
6590 if ac_fn_c_try_compile "$LINENO"; then :
6591 ac_cv_sys_file_offset_bits=64; break
6593 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6594 ac_cv_sys_file_offset_bits=unknown
6598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
6599 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
6600 case $ac_cv_sys_file_offset_bits in #(
6603 cat >>confdefs.h <<_ACEOF
6604 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
6609 if test $ac_cv_sys_file_offset_bits = unknown; then
6610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
6611 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
6612 if ${ac_cv_sys_large_files+:} false; then :
6613 $as_echo_n "(cached) " >&6
6616 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6617 /* end confdefs.h. */
6618 #include <sys/types.h>
6619 /* Check that off_t can represent 2**63 - 1 correctly.
6620 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6621 since some C++ compilers masquerading as C compilers
6622 incorrectly reject 9223372036854775807. */
6623 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6624 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6625 && LARGE_OFF_T % 2147483647 == 1)
6635 if ac_fn_c_try_compile "$LINENO"; then :
6636 ac_cv_sys_large_files=no; break
6638 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6639 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6640 /* end confdefs.h. */
6641 #define _LARGE_FILES 1
6642 #include <sys/types.h>
6643 /* Check that off_t can represent 2**63 - 1 correctly.
6644 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6645 since some C++ compilers masquerading as C compilers
6646 incorrectly reject 9223372036854775807. */
6647 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6648 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6649 && LARGE_OFF_T % 2147483647 == 1)
6659 if ac_fn_c_try_compile "$LINENO"; then :
6660 ac_cv_sys_large_files=1; break
6662 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6663 ac_cv_sys_large_files=unknown
6667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
6668 $as_echo "$ac_cv_sys_large_files" >&6; }
6669 case $ac_cv_sys_large_files in #(
6672 cat >>confdefs.h <<_ACEOF
6673 #define _LARGE_FILES $ac_cv_sys_large_files
6681 $as_echo "#define _DARWIN_USE_64_BIT_INODE 1" >>confdefs.h
6687 # Code from module absolute-header:
6688 # Code from module alloca:
6689 # Code from module alloca-opt:
6690 # Code from module alloca-opt-tests:
6691 # Code from module base64:
6692 # Code from module base64-tests:
6693 # Code from module binary-io:
6694 # Code from module binary-io-tests:
6695 # Code from module byteswap:
6696 # Code from module byteswap-tests:
6697 # Code from module c-ctype:
6698 # Code from module c-ctype-tests:
6699 # Code from module errno:
6700 # Code from module errno-tests:
6701 # Code from module extensions:
6703 # Code from module extern-inline:
6704 # Code from module fcntl-h:
6705 # Code from module fcntl-h-tests:
6706 # Code from module fdopen:
6707 # Code from module fdopen-tests:
6708 # Code from module fgetc-tests:
6709 # Code from module float:
6710 # Code from module float-tests:
6711 # Code from module fpieee:
6713 # Code from module fpucw:
6714 # Code from module fputc-tests:
6715 # Code from module fread-tests:
6716 # Code from module fstat:
6717 # Code from module fstat-tests:
6718 # Code from module ftell:
6719 # Code from module ftell-tests:
6720 # Code from module ftello:
6722 # Code from module ftello-tests:
6723 # Code from module func:
6724 # Code from module func-tests:
6725 # Code from module fwrite-tests:
6726 # Code from module gendocs:
6727 # Code from module getdelim:
6728 # Code from module getdelim-tests:
6729 # Code from module getline:
6730 # Code from module getline-tests:
6731 # Code from module getpagesize:
6732 # Code from module gettext:
6733 # Code from module gettext-h:
6734 # Code from module gettimeofday:
6735 # Code from module gettimeofday-tests:
6736 # Code from module gnumakefile:
6737 # Code from module hash-pjw-bare:
6738 # Code from module havelib:
6739 # Code from module iconv:
6740 # Code from module iconv-tests:
6741 # Code from module include_next:
6742 # Code from module intprops:
6743 # Code from module intprops-tests:
6744 # Code from module inttypes:
6745 # Code from module inttypes-incomplete:
6746 # Code from module inttypes-tests:
6747 # Code from module largefile:
6749 # Code from module lib-msvc-compat:
6750 # Code from module lib-symbol-versions:
6751 # Code from module lseek:
6752 # Code from module maintainer-makefile:
6753 # Code from module malloc-posix:
6754 # Code from module manywarnings:
6755 # Code from module memchr:
6756 # Code from module memchr-tests:
6757 # Code from module memmem-simple:
6758 # Code from module minmax:
6759 # Code from module msvc-inval:
6760 # Code from module msvc-nothrow:
6761 # Code from module multiarch:
6762 # Code from module netdb:
6763 # Code from module netdb-tests:
6764 # Code from module netinet_in:
6765 # Code from module netinet_in-tests:
6766 # Code from module pmccabe2html:
6767 # Code from module read-file:
6768 # Code from module read-file-tests:
6769 # Code from module realloc-posix:
6770 # Code from module size_max:
6771 # Code from module snippet/_Noreturn:
6772 # Code from module snippet/arg-nonnull:
6773 # Code from module snippet/c++defs:
6774 # Code from module snippet/warn-on-use:
6775 # Code from module snprintf:
6776 # Code from module snprintf-tests:
6777 # Code from module socklen:
6778 # Code from module ssize_t:
6779 # Code from module stdalign:
6780 # Code from module stdalign-tests:
6781 # Code from module stdbool:
6782 # Code from module stdbool-tests:
6783 # Code from module stddef:
6784 # Code from module stddef-tests:
6785 # Code from module stdint:
6786 # Code from module stdint-tests:
6787 # Code from module stdio:
6788 # Code from module stdio-tests:
6789 # Code from module stdlib:
6790 # Code from module stdlib-tests:
6791 # Code from module strcase:
6792 # Code from module string:
6793 # Code from module string-tests:
6794 # Code from module strings:
6795 # Code from module strings-tests:
6796 # Code from module strndup:
6797 # Code from module strnlen:
6798 # Code from module strnlen-tests:
6799 # Code from module strtok_r:
6800 # Code from module strverscmp:
6801 # Code from module strverscmp-tests:
6802 # Code from module sys_socket:
6803 # Code from module sys_socket-tests:
6804 # Code from module sys_stat:
6805 # Code from module sys_stat-tests:
6806 # Code from module sys_time:
6807 # Code from module sys_time-tests:
6808 # Code from module sys_types:
6809 # Code from module sys_types-tests:
6810 # Code from module sys_uio:
6811 # Code from module sys_uio-tests:
6812 # Code from module test-framework-sh:
6813 # Code from module test-framework-sh-tests:
6814 # Code from module time:
6815 # Code from module time-tests:
6816 # Code from module time_r:
6817 # Code from module u64:
6818 # Code from module u64-tests:
6819 # Code from module unistd:
6820 # Code from module unistd-tests:
6821 # Code from module useless-if-before-free:
6822 # Code from module valgrind-tests:
6823 # Code from module vasnprintf:
6824 # Code from module vasnprintf-tests:
6825 # Code from module vasprintf:
6826 # Code from module vasprintf-tests:
6827 # Code from module vc-list-files:
6828 # Code from module vc-list-files-tests:
6829 # Code from module verify:
6830 # Code from module verify-tests:
6831 # Code from module vsnprintf:
6832 # Code from module vsnprintf-tests:
6833 # Code from module warnings:
6834 # Code from module wchar:
6835 # Code from module wchar-tests:
6836 # Code from module xsize:
6840 # Code from module absolute-header:
6841 # Code from module accept:
6842 # Code from module alloca:
6843 # Code from module alloca-opt:
6844 # Code from module arpa_inet:
6845 # Code from module bind:
6846 # Code from module c-ctype:
6847 # Code from module clock-time:
6848 # Code from module close:
6849 # Code from module connect:
6850 # Code from module dup2:
6851 # Code from module environ:
6852 # Code from module errno:
6853 # Code from module error:
6854 # Code from module exitfail:
6855 # Code from module extensions:
6857 # Code from module extern-inline:
6858 # Code from module fd-hook:
6859 # Code from module float:
6860 # Code from module fseek:
6861 # Code from module fseeko:
6863 # Code from module fstat:
6864 # Code from module getaddrinfo:
6865 # Code from module getdelim:
6866 # Code from module getline:
6867 # Code from module getpass:
6868 # Code from module getpeername:
6869 # Code from module gettext-h:
6870 # Code from module gettime:
6871 # Code from module gettimeofday:
6872 # Code from module hostent:
6873 # Code from module include_next:
6874 # Code from module inet_ntop:
6875 # Code from module inet_pton:
6876 # Code from module intprops:
6877 # Code from module largefile:
6879 # Code from module listen:
6880 # Code from module lseek:
6881 # Code from module malloc-posix:
6882 # Code from module malloca:
6883 # Code from module memchr:
6884 # Code from module mktime:
6885 # Code from module msvc-inval:
6886 # Code from module msvc-nothrow:
6887 # Code from module multiarch:
6888 # Code from module netdb:
6889 # Code from module netinet_in:
6890 # Code from module parse-datetime:
6891 # Code from module progname:
6892 # Code from module realloc-posix:
6893 # Code from module recv:
6894 # Code from module recvfrom:
6895 # Code from module select:
6896 # Code from module send:
6897 # Code from module sendto:
6898 # Code from module servent:
6899 # Code from module setenv:
6900 # Code from module setsockopt:
6901 # Code from module shutdown:
6902 # Code from module signal-h:
6903 # Code from module size_max:
6904 # Code from module snippet/_Noreturn:
6905 # Code from module snippet/arg-nonnull:
6906 # Code from module snippet/c++defs:
6907 # Code from module snippet/warn-on-use:
6908 # Code from module snprintf:
6909 # Code from module socket:
6910 # Code from module socketlib:
6911 # Code from module sockets:
6912 # Code from module socklen:
6913 # Code from module ssize_t:
6914 # Code from module stdalign:
6915 # Code from module stdbool:
6916 # Code from module stddef:
6917 # Code from module stdint:
6918 # Code from module stdio:
6919 # Code from module stdlib:
6920 # Code from module strdup-posix:
6921 # Code from module strerror:
6922 # Code from module strerror-override:
6923 # Code from module string:
6924 # Code from module sys_select:
6925 # Code from module sys_socket:
6926 # Code from module sys_stat:
6927 # Code from module sys_time:
6928 # Code from module sys_types:
6929 # Code from module sys_uio:
6930 # Code from module time:
6931 # Code from module time_r:
6932 # Code from module timespec:
6933 # Code from module unistd:
6934 # Code from module unsetenv:
6935 # Code from module vasnprintf:
6936 # Code from module verify:
6937 # Code from module wchar:
6938 # Code from module xalloc:
6939 # Code from module xalloc-die:
6940 # Code from module xalloc-oversized:
6941 # Code from module xsize:
6943 # By default we simply use the C compiler to build assembly code.
6945 test "${CCAS+set}" = set || CCAS=$CC
6946 test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS
6950 depcc="$CCAS" am_compiler_list=
6952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
6953 $as_echo_n "checking dependency style of $depcc... " >&6; }
6954 if ${am_cv_CCAS_dependencies_compiler_type+:} false; then :
6955 $as_echo_n "(cached) " >&6
6957 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6958 # We make a subdir and do the tests there. Otherwise we can end up
6959 # making bogus files that we don't know about and never remove. For
6960 # instance it was reported that on HP-UX the gcc test will end up
6961 # making a dummy file named 'D' -- because '-MD' means "put the output
6965 # Copy depcomp to subdir because otherwise we won't find it if we're
6966 # using a relative directory.
6967 cp "$am_depcomp" conftest.dir
6969 # We will build objects and dependencies in a subdirectory because
6970 # it helps to detect inapplicable dependency modes. For instance
6971 # both Tru64's cc and ICC support -MD to output dependencies as a
6972 # side effect of compilation, but ICC will put the dependencies in
6973 # the current directory while Tru64 will put them in the object
6977 am_cv_CCAS_dependencies_compiler_type=none
6978 if test "$am_compiler_list" = ""; then
6979 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6984 for depmode in $am_compiler_list; do
6985 # Setup a source with many dependencies, because some compilers
6986 # like to wrap large dependency lists on column 80 (with \), and
6987 # we should not choose a depcomp mode which is confused by this.
6989 # We need to recreate these files for each test, as the compiler may
6990 # overwrite some of them when testing with obscure command lines.
6991 # This happens at least with the AIX C compiler.
6993 for i in 1 2 3 4 5 6; do
6994 echo '#include "conftst'$i'.h"' >> sub/conftest.c
6995 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
6996 # Solaris 10 /bin/sh.
6997 echo '/* dummy */' > sub/conftst$i.h
6999 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
7001 # We check with '-c' and '-o' for the sake of the "dashmstdout"
7002 # mode. It turns out that the SunPro C++ compiler does not properly
7003 # handle '-M -o', and we need to detect this. Also, some Intel
7004 # versions had trouble with output in subdirs.
7005 am__obj=sub/conftest.${OBJEXT-o}
7006 am__minus_obj="-o $am__obj"
7009 # This depmode causes a compiler race in universal mode.
7010 test "$am__universal" = false || continue
7013 # After this tag, mechanisms are not by side-effect, so they'll
7014 # only be used when explicitly requested.
7015 if test "x$enable_dependency_tracking" = xyes; then
7021 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
7022 # This compiler won't grok '-c -o', but also, the minuso test has
7023 # not run yet. These depmodes are late enough in the game, and
7024 # so weak that their functioning should not be impacted.
7025 am__obj=conftest.${OBJEXT-o}
7030 if depmode=$depmode \
7031 source=sub/conftest.c object=$am__obj \
7032 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
7033 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
7034 >/dev/null 2>conftest.err &&
7035 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
7036 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
7037 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
7038 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
7039 # icc doesn't choke on unknown options, it will just issue warnings
7040 # or remarks (even with -Werror). So we grep stderr for any message
7041 # that says an option was ignored or not supported.
7042 # When given -MP, icc 7.0 and 7.1 complain thusly:
7043 # icc: Command line warning: ignoring option '-M'; no argument required
7044 # The diagnosis changed in icc 8.0:
7045 # icc: Command line remark: option '-MP' not supported
7046 if (grep 'ignoring option' conftest.err ||
7047 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
7048 am_cv_CCAS_dependencies_compiler_type=$depmode
7057 am_cv_CCAS_dependencies_compiler_type=none
7061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CCAS_dependencies_compiler_type" >&5
7062 $as_echo "$am_cv_CCAS_dependencies_compiler_type" >&6; }
7063 CCASDEPMODE=depmode=$am_cv_CCAS_dependencies_compiler_type
7066 test "x$enable_dependency_tracking" != xno \
7067 && test "$am_cv_CCAS_dependencies_compiler_type" = gcc3; then
7068 am__fastdepCCAS_TRUE=
7069 am__fastdepCCAS_FALSE='#'
7071 am__fastdepCCAS_TRUE='#'
7072 am__fastdepCCAS_FALSE=
7076 if test -n "$ac_tool_prefix"; then
7077 for ac_prog in ar lib "link -lib"
7079 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7080 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7082 $as_echo_n "checking for $ac_word... " >&6; }
7083 if ${ac_cv_prog_AR+:} false; then :
7084 $as_echo_n "(cached) " >&6
7086 if test -n "$AR"; then
7087 ac_cv_prog_AR="$AR" # Let the user override the test.
7089 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7093 test -z "$as_dir" && as_dir=.
7094 for ac_exec_ext in '' $ac_executable_extensions; do
7095 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7096 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
7097 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7107 if test -n "$AR"; then
7108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7109 $as_echo "$AR" >&6; }
7111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7112 $as_echo "no" >&6; }
7116 test -n "$AR" && break
7119 if test -z "$AR"; then
7121 for ac_prog in ar lib "link -lib"
7123 # Extract the first word of "$ac_prog", so it can be a program name with args.
7124 set dummy $ac_prog; ac_word=$2
7125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7126 $as_echo_n "checking for $ac_word... " >&6; }
7127 if ${ac_cv_prog_ac_ct_AR+:} false; then :
7128 $as_echo_n "(cached) " >&6
7130 if test -n "$ac_ct_AR"; then
7131 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7133 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7137 test -z "$as_dir" && as_dir=.
7138 for ac_exec_ext in '' $ac_executable_extensions; do
7139 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7140 ac_cv_prog_ac_ct_AR="$ac_prog"
7141 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7150 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7151 if test -n "$ac_ct_AR"; then
7152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
7153 $as_echo "$ac_ct_AR" >&6; }
7155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7156 $as_echo "no" >&6; }
7160 test -n "$ac_ct_AR" && break
7163 if test "x$ac_ct_AR" = x; then
7166 case $cross_compiling:$ac_tool_warned in
7168 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7169 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7170 ac_tool_warned=yes ;;
7178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the archiver ($AR) interface" >&5
7179 $as_echo_n "checking the archiver ($AR) interface... " >&6; }
7180 if ${am_cv_ar_interface+:} false; then :
7181 $as_echo_n "(cached) " >&6
7184 ac_cpp='$CPP $CPPFLAGS'
7185 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7186 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7187 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7189 am_cv_ar_interface=ar
7190 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7191 /* end confdefs.h. */
7192 int some_variable = 0;
7194 if ac_fn_c_try_compile "$LINENO"; then :
7195 am_ar_try='$AR cru libconftest.a conftest.$ac_objext >&5'
7196 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
7197 (eval $am_ar_try) 2>&5
7199 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7200 test $ac_status = 0; }
7201 if test "$ac_status" -eq 0; then
7202 am_cv_ar_interface=ar
7204 am_ar_try='$AR -NOLOGO -OUT:conftest.lib conftest.$ac_objext >&5'
7205 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
7206 (eval $am_ar_try) 2>&5
7208 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7209 test $ac_status = 0; }
7210 if test "$ac_status" -eq 0; then
7211 am_cv_ar_interface=lib
7213 am_cv_ar_interface=unknown
7216 rm -f conftest.lib libconftest.a
7219 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7221 ac_cpp='$CPP $CPPFLAGS'
7222 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7223 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7224 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_ar_interface" >&5
7228 $as_echo "$am_cv_ar_interface" >&6; }
7230 case $am_cv_ar_interface in
7234 # Microsoft lib, so override with the ar-lib wrapper script.
7235 # FIXME: It is wrong to rewrite AR.
7236 # But if we don't then we get into trouble of one sort or another.
7237 # A longer-term fix would be to have automake use am__AR in this case,
7238 # and then we could set am__AR="$am_aux_dir/ar-lib \$(AR)" or something
7240 AR="$am_aux_dir/ar-lib $AR"
7243 as_fn_error $? "could not determine $AR interface" "$LINENO" 5
7248 ac_cpp='$CXXCPP $CPPFLAGS'
7249 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7250 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7251 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7252 if test -z "$CXX"; then
7253 if test -n "$CCC"; then
7256 if test -n "$ac_tool_prefix"; then
7257 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
7259 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7260 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7262 $as_echo_n "checking for $ac_word... " >&6; }
7263 if ${ac_cv_prog_CXX+:} false; then :
7264 $as_echo_n "(cached) " >&6
7266 if test -n "$CXX"; then
7267 ac_cv_prog_CXX="$CXX" # Let the user override the test.
7269 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7273 test -z "$as_dir" && as_dir=.
7274 for ac_exec_ext in '' $ac_executable_extensions; do
7275 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7276 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
7277 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7287 if test -n "$CXX"; then
7288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
7289 $as_echo "$CXX" >&6; }
7291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7292 $as_echo "no" >&6; }
7296 test -n "$CXX" && break
7299 if test -z "$CXX"; then
7301 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
7303 # Extract the first word of "$ac_prog", so it can be a program name with args.
7304 set dummy $ac_prog; ac_word=$2
7305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7306 $as_echo_n "checking for $ac_word... " >&6; }
7307 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
7308 $as_echo_n "(cached) " >&6
7310 if test -n "$ac_ct_CXX"; then
7311 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
7313 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7317 test -z "$as_dir" && as_dir=.
7318 for ac_exec_ext in '' $ac_executable_extensions; do
7319 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7320 ac_cv_prog_ac_ct_CXX="$ac_prog"
7321 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7330 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
7331 if test -n "$ac_ct_CXX"; then
7332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
7333 $as_echo "$ac_ct_CXX" >&6; }
7335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7336 $as_echo "no" >&6; }
7340 test -n "$ac_ct_CXX" && break
7343 if test "x$ac_ct_CXX" = x; then
7346 case $cross_compiling:$ac_tool_warned in
7348 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7349 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7350 ac_tool_warned=yes ;;
7358 # Provide some information about the compiler.
7359 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
7362 for ac_option in --version -v -V -qversion; do
7363 { { ac_try="$ac_compiler $ac_option >&5"
7365 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7366 *) ac_try_echo=$ac_try;;
7368 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7369 $as_echo "$ac_try_echo"; } >&5
7370 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
7372 if test -s conftest.err; then
7374 ... rest of stderr output deleted ...
7375 10q' conftest.err >conftest.er1
7376 cat conftest.er1 >&5
7378 rm -f conftest.er1 conftest.err
7379 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7380 test $ac_status = 0; }
7383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
7384 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
7385 if ${ac_cv_cxx_compiler_gnu+:} false; then :
7386 $as_echo_n "(cached) " >&6
7388 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7389 /* end confdefs.h. */
7402 if ac_fn_cxx_try_compile "$LINENO"; then :
7407 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7408 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
7411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
7412 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
7413 if test $ac_compiler_gnu = yes; then
7418 ac_test_CXXFLAGS=${CXXFLAGS+set}
7419 ac_save_CXXFLAGS=$CXXFLAGS
7420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
7421 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
7422 if ${ac_cv_prog_cxx_g+:} false; then :
7423 $as_echo_n "(cached) " >&6
7425 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
7426 ac_cxx_werror_flag=yes
7429 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7430 /* end confdefs.h. */
7440 if ac_fn_cxx_try_compile "$LINENO"; then :
7441 ac_cv_prog_cxx_g=yes
7444 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7445 /* end confdefs.h. */
7455 if ac_fn_cxx_try_compile "$LINENO"; then :
7458 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
7460 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7461 /* end confdefs.h. */
7471 if ac_fn_cxx_try_compile "$LINENO"; then :
7472 ac_cv_prog_cxx_g=yes
7474 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7476 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7478 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7479 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
7481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
7482 $as_echo "$ac_cv_prog_cxx_g" >&6; }
7483 if test "$ac_test_CXXFLAGS" = set; then
7484 CXXFLAGS=$ac_save_CXXFLAGS
7485 elif test $ac_cv_prog_cxx_g = yes; then
7486 if test "$GXX" = yes; then
7492 if test "$GXX" = yes; then
7499 ac_cpp='$CPP $CPPFLAGS'
7500 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7501 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7502 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7504 depcc="$CXX" am_compiler_list=
7506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
7507 $as_echo_n "checking dependency style of $depcc... " >&6; }
7508 if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
7509 $as_echo_n "(cached) " >&6
7511 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
7512 # We make a subdir and do the tests there. Otherwise we can end up
7513 # making bogus files that we don't know about and never remove. For
7514 # instance it was reported that on HP-UX the gcc test will end up
7515 # making a dummy file named 'D' -- because '-MD' means "put the output
7519 # Copy depcomp to subdir because otherwise we won't find it if we're
7520 # using a relative directory.
7521 cp "$am_depcomp" conftest.dir
7523 # We will build objects and dependencies in a subdirectory because
7524 # it helps to detect inapplicable dependency modes. For instance
7525 # both Tru64's cc and ICC support -MD to output dependencies as a
7526 # side effect of compilation, but ICC will put the dependencies in
7527 # the current directory while Tru64 will put them in the object
7531 am_cv_CXX_dependencies_compiler_type=none
7532 if test "$am_compiler_list" = ""; then
7533 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
7536 case " $depcc " in #(
7537 *\ -arch\ *\ -arch\ *) am__universal=true ;;
7540 for depmode in $am_compiler_list; do
7541 # Setup a source with many dependencies, because some compilers
7542 # like to wrap large dependency lists on column 80 (with \), and
7543 # we should not choose a depcomp mode which is confused by this.
7545 # We need to recreate these files for each test, as the compiler may
7546 # overwrite some of them when testing with obscure command lines.
7547 # This happens at least with the AIX C compiler.
7549 for i in 1 2 3 4 5 6; do
7550 echo '#include "conftst'$i'.h"' >> sub/conftest.c
7551 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
7552 # Solaris 10 /bin/sh.
7553 echo '/* dummy */' > sub/conftst$i.h
7555 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
7557 # We check with '-c' and '-o' for the sake of the "dashmstdout"
7558 # mode. It turns out that the SunPro C++ compiler does not properly
7559 # handle '-M -o', and we need to detect this. Also, some Intel
7560 # versions had trouble with output in subdirs.
7561 am__obj=sub/conftest.${OBJEXT-o}
7562 am__minus_obj="-o $am__obj"
7565 # This depmode causes a compiler race in universal mode.
7566 test "$am__universal" = false || continue
7569 # After this tag, mechanisms are not by side-effect, so they'll
7570 # only be used when explicitly requested.
7571 if test "x$enable_dependency_tracking" = xyes; then
7577 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
7578 # This compiler won't grok '-c -o', but also, the minuso test has
7579 # not run yet. These depmodes are late enough in the game, and
7580 # so weak that their functioning should not be impacted.
7581 am__obj=conftest.${OBJEXT-o}
7586 if depmode=$depmode \
7587 source=sub/conftest.c object=$am__obj \
7588 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
7589 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
7590 >/dev/null 2>conftest.err &&
7591 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
7592 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
7593 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
7594 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
7595 # icc doesn't choke on unknown options, it will just issue warnings
7596 # or remarks (even with -Werror). So we grep stderr for any message
7597 # that says an option was ignored or not supported.
7598 # When given -MP, icc 7.0 and 7.1 complain thusly:
7599 # icc: Command line warning: ignoring option '-M'; no argument required
7600 # The diagnosis changed in icc 8.0:
7601 # icc: Command line remark: option '-MP' not supported
7602 if (grep 'ignoring option' conftest.err ||
7603 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
7604 am_cv_CXX_dependencies_compiler_type=$depmode
7613 am_cv_CXX_dependencies_compiler_type=none
7617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
7618 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
7619 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
7622 test "x$enable_dependency_tracking" != xno \
7623 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
7624 am__fastdepCXX_TRUE=
7625 am__fastdepCXX_FALSE='#'
7627 am__fastdepCXX_TRUE='#'
7628 am__fastdepCXX_FALSE=
7633 for ac_prog in 'bison -y' byacc
7635 # Extract the first word of "$ac_prog", so it can be a program name with args.
7636 set dummy $ac_prog; ac_word=$2
7637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7638 $as_echo_n "checking for $ac_word... " >&6; }
7639 if ${ac_cv_prog_YACC+:} false; then :
7640 $as_echo_n "(cached) " >&6
7642 if test -n "$YACC"; then
7643 ac_cv_prog_YACC="$YACC" # Let the user override the test.
7645 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7649 test -z "$as_dir" && as_dir=.
7650 for ac_exec_ext in '' $ac_executable_extensions; do
7651 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7652 ac_cv_prog_YACC="$ac_prog"
7653 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7662 YACC=$ac_cv_prog_YACC
7663 if test -n "$YACC"; then
7664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
7665 $as_echo "$YACC" >&6; }
7667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7668 $as_echo "no" >&6; }
7672 test -n "$YACC" && break
7674 test -n "$YACC" || YACC="yacc"
7676 # Extract the first word of "autogen", so it can be a program name with args.
7677 set dummy autogen; ac_word=$2
7678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7679 $as_echo_n "checking for $ac_word... " >&6; }
7680 if ${ac_cv_prog_AUTOGEN+:} false; then :
7681 $as_echo_n "(cached) " >&6
7683 if test -n "$AUTOGEN"; then
7684 ac_cv_prog_AUTOGEN="$AUTOGEN" # Let the user override the test.
7686 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7690 test -z "$as_dir" && as_dir=.
7691 for ac_exec_ext in '' $ac_executable_extensions; do
7692 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7693 ac_cv_prog_AUTOGEN="autogen"
7694 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7701 test -z "$ac_cv_prog_AUTOGEN" && ac_cv_prog_AUTOGEN="/bin/true"
7704 AUTOGEN=$ac_cv_prog_AUTOGEN
7705 if test -n "$AUTOGEN"; then
7706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AUTOGEN" >&5
7707 $as_echo "$AUTOGEN" >&6; }
7709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7710 $as_echo "no" >&6; }
7715 if test x"$AUTOGEN" = "x/bin/true"; then
7716 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
7718 *** autogen not found. Will not link against libopts.
7720 $as_echo "$as_me: WARNING:
7722 *** autogen not found. Will not link against libopts.
7724 enable_local_libopts=yes
7727 # For includes/gnutls/gnutls.h.in.
7728 MAJOR_VERSION=`echo $PACKAGE_VERSION | sed 's/\(.*\)\..*\..*/\1/g'`
7730 MINOR_VERSION=`echo $PACKAGE_VERSION | sed 's/.*\.\(.*\)\..*/\1/g'`
7732 PATCH_VERSION=`echo $PACKAGE_VERSION | sed 's/.*\..*\.\([0-9]*\).*/\1/g'`
7734 NUMBER_VERSION=`printf "0x%02x%02x%02x" $MAJOR_VERSION $MINOR_VERSION $PATCH_VERSION`
7737 touch suppressions.valgrind
7738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
7739 $as_echo_n "checking for inline... " >&6; }
7740 if ${ac_cv_c_inline+:} false; then :
7741 $as_echo_n "(cached) " >&6
7744 for ac_kw in inline __inline__ __inline; do
7745 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7746 /* end confdefs.h. */
7749 static $ac_kw foo_t static_foo () {return 0; }
7750 $ac_kw foo_t foo () {return 0; }
7754 if ac_fn_c_try_compile "$LINENO"; then :
7755 ac_cv_c_inline=$ac_kw
7757 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7758 test "$ac_cv_c_inline" != no && break
7762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
7763 $as_echo "$ac_cv_c_inline" >&6; }
7765 case $ac_cv_c_inline in
7768 case $ac_cv_c_inline in
7770 *) ac_val=$ac_cv_c_inline;;
7772 cat >>confdefs.h <<_ACEOF
7774 #define inline $ac_val
7780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7781 $as_echo_n "checking for ANSI C header files... " >&6; }
7782 if ${ac_cv_header_stdc+:} false; then :
7783 $as_echo_n "(cached) " >&6
7785 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7786 /* end confdefs.h. */
7800 if ac_fn_c_try_compile "$LINENO"; then :
7801 ac_cv_header_stdc=yes
7803 ac_cv_header_stdc=no
7805 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7807 if test $ac_cv_header_stdc = yes; then
7808 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7809 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7810 /* end confdefs.h. */
7814 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7815 $EGREP "memchr" >/dev/null 2>&1; then :
7818 ac_cv_header_stdc=no
7824 if test $ac_cv_header_stdc = yes; then
7825 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7826 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7827 /* end confdefs.h. */
7831 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7832 $EGREP "free" >/dev/null 2>&1; then :
7835 ac_cv_header_stdc=no
7841 if test $ac_cv_header_stdc = yes; then
7842 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7843 if test "$cross_compiling" = yes; then :
7846 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7847 /* end confdefs.h. */
7850 #if ((' ' & 0x0FF) == 0x020)
7851 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7852 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7854 # define ISLOWER(c) \
7855 (('a' <= (c) && (c) <= 'i') \
7856 || ('j' <= (c) && (c) <= 'r') \
7857 || ('s' <= (c) && (c) <= 'z'))
7858 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7861 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7866 for (i = 0; i < 256; i++)
7867 if (XOR (islower (i), ISLOWER (i))
7868 || toupper (i) != TOUPPER (i))
7873 if ac_fn_c_try_run "$LINENO"; then :
7876 ac_cv_header_stdc=no
7878 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7879 conftest.$ac_objext conftest.beam conftest.$ac_ext
7884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7885 $as_echo "$ac_cv_header_stdc" >&6; }
7886 if test $ac_cv_header_stdc = yes; then
7888 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7894 # Check whether --enable-cxx was given.
7895 if test "${enable_cxx+set}" = set; then :
7896 enableval=$enable_cxx; use_cxx=$enableval
7901 if test "$use_cxx" != "no"; then
7903 ac_cpp='$CXXCPP $CPPFLAGS'
7904 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7905 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7906 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7909 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7910 /* end confdefs.h. */
7920 if ac_fn_cxx_try_compile "$LINENO"; then :
7925 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7927 ac_cpp='$CPP $CPPFLAGS'
7928 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7929 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7930 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7933 if test "$use_cxx" != "no"; then
7935 ENABLE_CXX_FALSE='#'
7941 if test -f tests/suite/mini-eagain2.c; then
7942 WANT_TEST_SUITE_TRUE=
7943 WANT_TEST_SUITE_FALSE='#'
7945 WANT_TEST_SUITE_TRUE='#'
7946 WANT_TEST_SUITE_FALSE=
7951 *mingw32* | *mingw64*)
7962 if test "$have_win" = yes; then
7970 if test "$have_macosx" = yes; then
7978 if test "$have_elf" = yes; then
7987 # Check whether --enable-hardware-acceleration was given.
7988 if test "${enable_hardware_acceleration+set}" = set; then :
7989 enableval=$enable_hardware_acceleration; use_accel=$enableval
7997 if test "$use_accel" != "no"; then
7999 i?86 | x86_64 | amd64)
8000 for ac_header in cpuid.h
8002 ac_fn_c_check_header_mongrel "$LINENO" "cpuid.h" "ac_cv_header_cpuid_h" "$ac_includes_default"
8003 if test "x$ac_cv_header_cpuid_h" = xyes; then :
8004 cat >>confdefs.h <<_ACEOF
8005 #define HAVE_CPUID_H 1
8012 if test "$host_cpu" = "x86_64" || test "$host_cpu" = "amd64"; then
8024 if test x"$hw_accel" = x"x86-64"; then
8026 ASM_X86_64_FALSE='#'
8032 if test x"$hw_accel" = x"x86"; then
8034 ASM_X86_32_FALSE='#'
8040 if test x"$hw_accel" = x"x86" || test x"$hw_accel" = x"x86-64"; then
8048 if test "$gnu89_inline" = "yes"]; then
8049 HAVE_GCC_GNU89_INLINE_OPTION_TRUE=
8050 HAVE_GCC_GNU89_INLINE_OPTION_FALSE='#'
8052 HAVE_GCC_GNU89_INLINE_OPTION_TRUE='#'
8053 HAVE_GCC_GNU89_INLINE_OPTION_FALSE=
8056 if test "$GCC" = "yes"; then
8068 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
8069 if test -n "$ac_tool_prefix"; then
8070 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
8071 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
8072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8073 $as_echo_n "checking for $ac_word... " >&6; }
8074 if ${ac_cv_path_PKG_CONFIG+:} false; then :
8075 $as_echo_n "(cached) " >&6
8079 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
8082 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8086 test -z "$as_dir" && as_dir=.
8087 for ac_exec_ext in '' $ac_executable_extensions; do
8088 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8089 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8090 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8100 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
8101 if test -n "$PKG_CONFIG"; then
8102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
8103 $as_echo "$PKG_CONFIG" >&6; }
8105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8106 $as_echo "no" >&6; }
8111 if test -z "$ac_cv_path_PKG_CONFIG"; then
8112 ac_pt_PKG_CONFIG=$PKG_CONFIG
8113 # Extract the first word of "pkg-config", so it can be a program name with args.
8114 set dummy pkg-config; ac_word=$2
8115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8116 $as_echo_n "checking for $ac_word... " >&6; }
8117 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
8118 $as_echo_n "(cached) " >&6
8120 case $ac_pt_PKG_CONFIG in
8122 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
8125 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8129 test -z "$as_dir" && as_dir=.
8130 for ac_exec_ext in '' $ac_executable_extensions; do
8131 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8132 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8133 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8143 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
8144 if test -n "$ac_pt_PKG_CONFIG"; then
8145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
8146 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
8148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8149 $as_echo "no" >&6; }
8152 if test "x$ac_pt_PKG_CONFIG" = x; then
8155 case $cross_compiling:$ac_tool_warned in
8157 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8158 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8159 ac_tool_warned=yes ;;
8161 PKG_CONFIG=$ac_pt_PKG_CONFIG
8164 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
8168 if test -n "$PKG_CONFIG"; then
8169 _pkg_min_version=0.9.0
8170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
8171 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
8172 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
8173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8174 $as_echo "yes" >&6; }
8176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8177 $as_echo "no" >&6; }
8183 # Library code modified: REVISION++
8184 # Interfaces changed/added/removed: CURRENT++ REVISION=0
8185 # Interfaces added: AGE++
8186 # Interfaces removed: AGE=0 (+bump all symbol versions in .map)
8222 CRYWRAP_PATCHLEVEL=3
8225 # Used when creating the Windows libgnutls-XX.def files.
8226 DLL_VERSION=`expr ${LT_CURRENT} - ${LT_AGE}`
8231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NETTLE" >&5
8232 $as_echo_n "checking for NETTLE... " >&6; }
8234 if test -n "$PKG_CONFIG"; then
8235 if test -n "$NETTLE_CFLAGS"; then
8236 pkg_cv_NETTLE_CFLAGS="$NETTLE_CFLAGS"
8238 if test -n "$PKG_CONFIG" && \
8239 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"nettle >= 2.7\""; } >&5
8240 ($PKG_CONFIG --exists --print-errors "nettle >= 2.7") 2>&5
8242 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8243 test $ac_status = 0; }; then
8244 pkg_cv_NETTLE_CFLAGS=`$PKG_CONFIG --cflags "nettle >= 2.7" 2>/dev/null`
8252 if test -n "$PKG_CONFIG"; then
8253 if test -n "$NETTLE_LIBS"; then
8254 pkg_cv_NETTLE_LIBS="$NETTLE_LIBS"
8256 if test -n "$PKG_CONFIG" && \
8257 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"nettle >= 2.7\""; } >&5
8258 ($PKG_CONFIG --exists --print-errors "nettle >= 2.7") 2>&5
8260 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8261 test $ac_status = 0; }; then
8262 pkg_cv_NETTLE_LIBS=`$PKG_CONFIG --libs "nettle >= 2.7" 2>/dev/null`
8273 if test $pkg_failed = yes; then
8275 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
8276 _pkg_short_errors_supported=yes
8278 _pkg_short_errors_supported=no
8280 if test $_pkg_short_errors_supported = yes; then
8281 NETTLE_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "nettle >= 2.7"`
8283 NETTLE_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "nettle >= 2.7"`
8285 # Put the nasty error message in config.log where it belongs
8286 echo "$NETTLE_PKG_ERRORS" >&5
8288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8289 $as_echo "no" >&6; }
8293 *** Libnettle 2.7 was not found.
8296 elif test $pkg_failed = untried; then
8300 *** Libnettle 2.7 was not found.
8304 NETTLE_CFLAGS=$pkg_cv_NETTLE_CFLAGS
8305 NETTLE_LIBS=$pkg_cv_NETTLE_LIBS
8306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8307 $as_echo "yes" >&6; }
8312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for HOGWEED" >&5
8313 $as_echo_n "checking for HOGWEED... " >&6; }
8315 if test -n "$PKG_CONFIG"; then
8316 if test -n "$HOGWEED_CFLAGS"; then
8317 pkg_cv_HOGWEED_CFLAGS="$HOGWEED_CFLAGS"
8319 if test -n "$PKG_CONFIG" && \
8320 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"hogweed >= 2.7\""; } >&5
8321 ($PKG_CONFIG --exists --print-errors "hogweed >= 2.7") 2>&5
8323 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8324 test $ac_status = 0; }; then
8325 pkg_cv_HOGWEED_CFLAGS=`$PKG_CONFIG --cflags "hogweed >= 2.7" 2>/dev/null`
8333 if test -n "$PKG_CONFIG"; then
8334 if test -n "$HOGWEED_LIBS"; then
8335 pkg_cv_HOGWEED_LIBS="$HOGWEED_LIBS"
8337 if test -n "$PKG_CONFIG" && \
8338 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"hogweed >= 2.7\""; } >&5
8339 ($PKG_CONFIG --exists --print-errors "hogweed >= 2.7") 2>&5
8341 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8342 test $ac_status = 0; }; then
8343 pkg_cv_HOGWEED_LIBS=`$PKG_CONFIG --libs "hogweed >= 2.7" 2>/dev/null`
8354 if test $pkg_failed = yes; then
8356 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
8357 _pkg_short_errors_supported=yes
8359 _pkg_short_errors_supported=no
8361 if test $_pkg_short_errors_supported = yes; then
8362 HOGWEED_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "hogweed >= 2.7"`
8364 HOGWEED_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "hogweed >= 2.7"`
8366 # Put the nasty error message in config.log where it belongs
8367 echo "$HOGWEED_PKG_ERRORS" >&5
8369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8370 $as_echo "no" >&6; }
8374 *** Libhogweed (nettle's companion library) was not found. Note that you must compile nettle with gmp support.
8377 elif test $pkg_failed = untried; then
8381 *** Libhogweed (nettle's companion library) was not found. Note that you must compile nettle with gmp support.
8385 HOGWEED_CFLAGS=$pkg_cv_HOGWEED_CFLAGS
8386 HOGWEED_LIBS=$pkg_cv_HOGWEED_LIBS
8387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8388 $as_echo "yes" >&6; }
8391 if test "$cryptolib" = "nettle"; then
8393 ENABLE_NETTLE_FALSE='#'
8395 ENABLE_NETTLE_TRUE='#'
8396 ENABLE_NETTLE_FALSE=
8400 $as_echo "#define HAVE_LIBNETTLE 1" >>confdefs.h
8403 GNUTLS_REQUIRES_PRIVATE="Requires.private: nettle, hogweed"
8406 # Check whether --with-nettle-mini was given.
8407 if test "${with_nettle_mini+set}" = set; then :
8408 withval=$with_nettle_mini; mini_nettle=$withval
8416 if test "$mini_nettle" != no;then
8420 if test x$GMP_LIBS = x; then
8421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __gmpz_cmp in -lgmp" >&5
8422 $as_echo_n "checking for __gmpz_cmp in -lgmp... " >&6; }
8423 if ${ac_cv_lib_gmp___gmpz_cmp+:} false; then :
8424 $as_echo_n "(cached) " >&6
8426 ac_check_lib_save_LIBS=$LIBS
8428 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8429 /* end confdefs.h. */
8431 /* Override any GCC internal prototype to avoid an error.
8432 Use char because int might match the return type of a GCC
8433 builtin and then its argument prototype would still apply. */
8441 return __gmpz_cmp ();
8446 if ac_fn_c_try_link "$LINENO"; then :
8447 ac_cv_lib_gmp___gmpz_cmp=yes
8449 ac_cv_lib_gmp___gmpz_cmp=no
8451 rm -f core conftest.err conftest.$ac_objext \
8452 conftest$ac_exeext conftest.$ac_ext
8453 LIBS=$ac_check_lib_save_LIBS
8455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gmp___gmpz_cmp" >&5
8456 $as_echo "$ac_cv_lib_gmp___gmpz_cmp" >&6; }
8457 if test "x$ac_cv_lib_gmp___gmpz_cmp" = xyes; then :
8462 *** gmp was not found.
8472 # Check whether --with-included-libtasn1 was given.
8473 if test "${with_included_libtasn1+set}" = set; then :
8474 withval=$with_included_libtasn1; included_libtasn1=$withval
8476 included_libtasn1=no
8479 if test "$included_libtasn1" = "no"; then
8482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBTASN1" >&5
8483 $as_echo_n "checking for LIBTASN1... " >&6; }
8485 if test -n "$PKG_CONFIG"; then
8486 if test -n "$LIBTASN1_CFLAGS"; then
8487 pkg_cv_LIBTASN1_CFLAGS="$LIBTASN1_CFLAGS"
8489 if test -n "$PKG_CONFIG" && \
8490 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libtasn1 >= 3.4\""; } >&5
8491 ($PKG_CONFIG --exists --print-errors "libtasn1 >= 3.4") 2>&5
8493 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8494 test $ac_status = 0; }; then
8495 pkg_cv_LIBTASN1_CFLAGS=`$PKG_CONFIG --cflags "libtasn1 >= 3.4" 2>/dev/null`
8503 if test -n "$PKG_CONFIG"; then
8504 if test -n "$LIBTASN1_LIBS"; then
8505 pkg_cv_LIBTASN1_LIBS="$LIBTASN1_LIBS"
8507 if test -n "$PKG_CONFIG" && \
8508 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libtasn1 >= 3.4\""; } >&5
8509 ($PKG_CONFIG --exists --print-errors "libtasn1 >= 3.4") 2>&5
8511 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8512 test $ac_status = 0; }; then
8513 pkg_cv_LIBTASN1_LIBS=`$PKG_CONFIG --libs "libtasn1 >= 3.4" 2>/dev/null`
8524 if test $pkg_failed = yes; then
8526 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
8527 _pkg_short_errors_supported=yes
8529 _pkg_short_errors_supported=no
8531 if test $_pkg_short_errors_supported = yes; then
8532 LIBTASN1_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "libtasn1 >= 3.4"`
8534 LIBTASN1_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libtasn1 >= 3.4"`
8536 # Put the nasty error message in config.log where it belongs
8537 echo "$LIBTASN1_PKG_ERRORS" >&5
8539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8540 $as_echo "no" >&6; }
8541 included_libtasn1=yes
8542 elif test $pkg_failed = untried; then
8543 included_libtasn1=yes
8545 LIBTASN1_CFLAGS=$pkg_cv_LIBTASN1_CFLAGS
8546 LIBTASN1_LIBS=$pkg_cv_LIBTASN1_LIBS
8547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8548 $as_echo "yes" >&6; }
8551 if test "$included_libtasn1" = yes; then
8552 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
8554 *** Libtasn1 was not found. Will use the included one.
8556 $as_echo "$as_me: WARNING:
8558 *** Libtasn1 was not found. Will use the included one.
8562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use the included minitasn1" >&5
8563 $as_echo_n "checking whether to use the included minitasn1... " >&6; }
8564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $included_libtasn1" >&5
8565 $as_echo "$included_libtasn1" >&6; }
8566 if test "$included_libtasn1" = "yes"; then
8567 ENABLE_MINITASN1_TRUE=
8568 ENABLE_MINITASN1_FALSE='#'
8570 ENABLE_MINITASN1_TRUE='#'
8571 ENABLE_MINITASN1_FALSE=
8575 if test "$included_libtasn1" = "no"; then
8576 GNUTLS_REQUIRES_PRIVATE="${GNUTLS_REQUIRES_PRIVATE}, libtasn1"
8579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C99 macros are supported" >&5
8580 $as_echo_n "checking whether C99 macros are supported... " >&6; }
8581 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8582 /* end confdefs.h. */
8588 #define test_mac(...)
8597 if ac_fn_c_try_compile "$LINENO"; then :
8600 $as_echo "#define C99_MACROS 1" >>confdefs.h
8602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8603 $as_echo "yes" >&6; }
8607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8608 $as_echo "no" >&6; }
8609 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: C99 macros not supported. This may affect compiling." >&5
8610 $as_echo "$as_me: WARNING: C99 macros not supported. This may affect compiling." >&2;}
8613 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to disable DTLS-SRTP extension" >&5
8617 $as_echo_n "checking whether to disable DTLS-SRTP extension... " >&6; }
8618 # Check whether --enable-dtls-srtp-support was given.
8619 if test "${enable_dtls_srtp_support+set}" = set; then :
8620 enableval=$enable_dtls_srtp_support; ac_enable_srtp=$enableval
8623 if test x$ac_enable_srtp != xno; then
8624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8625 $as_echo "no" >&6; }
8627 $as_echo "#define ENABLE_DTLS_SRTP 1" >>confdefs.h
8631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8632 $as_echo "yes" >&6; }
8634 if test "$ac_enable_srtp" != "no"; then
8635 ENABLE_DTLS_SRTP_TRUE=
8636 ENABLE_DTLS_SRTP_FALSE='#'
8638 ENABLE_DTLS_SRTP_TRUE='#'
8639 ENABLE_DTLS_SRTP_FALSE=
8643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to disable ALPN extension" >&5
8644 $as_echo_n "checking whether to disable ALPN extension... " >&6; }
8645 # Check whether --enable-alpn-support was given.
8646 if test "${enable_alpn_support+set}" = set; then :
8647 enableval=$enable_alpn_support; ac_enable_alpn=$enableval
8652 if test x$ac_enable_alpn != xno; then
8653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8654 $as_echo "no" >&6; }
8656 $as_echo "#define ENABLE_ALPN 1" >>confdefs.h
8660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8661 $as_echo "yes" >&6; }
8663 if test "$ac_enable_alpn" != "no"; then
8665 ENABLE_ALPN_FALSE='#'
8667 ENABLE_ALPN_TRUE='#'
8672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to disable RSA-EXPORT support" >&5
8673 $as_echo_n "checking whether to disable RSA-EXPORT support... " >&6; }
8674 # Check whether --enable-rsa-export was given.
8675 if test "${enable_rsa_export+set}" = set; then :
8676 enableval=$enable_rsa_export; ac_enable_rsa_export=$enableval
8678 ac_enable_rsa_export=yes
8681 if test x$ac_enable_rsa_export != xno; then
8682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8683 $as_echo "no" >&6; }
8685 $as_echo "#define ENABLE_RSA_EXPORT 1" >>confdefs.h
8689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8690 $as_echo "yes" >&6; }
8692 if test "$ac_enable_rsa_export" != "no"; then
8693 ENABLE_RSA_EXPORT_TRUE=
8694 ENABLE_RSA_EXPORT_FALSE='#'
8696 ENABLE_RSA_EXPORT_TRUE='#'
8697 ENABLE_RSA_EXPORT_FALSE=
8701 ac_enable_heartbeat=yes
8702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to disable TLS heartbeat support" >&5
8703 $as_echo_n "checking whether to disable TLS heartbeat support... " >&6; }
8704 # Check whether --enable-heartbeat-support was given.
8705 if test "${enable_heartbeat_support+set}" = set; then :
8706 enableval=$enable_heartbeat_support; ac_enable_heartbeat=$enableval
8709 if test x$ac_enable_heartbeat != xno; then
8710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8711 $as_echo "yes" >&6; }
8713 $as_echo "#define ENABLE_HEARTBEAT 1" >>confdefs.h
8716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8717 $as_echo "no" >&6; }
8719 if test "$ac_enable_heartbeat" != "no"; then
8720 ENABLE_HEARTBEAT_TRUE=
8721 ENABLE_HEARTBEAT_FALSE='#'
8723 ENABLE_HEARTBEAT_TRUE='#'
8724 ENABLE_HEARTBEAT_FALSE=
8729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to disable SRP authentication support" >&5
8730 $as_echo_n "checking whether to disable SRP authentication support... " >&6; }
8731 # Check whether --enable-srp-authentication was given.
8732 if test "${enable_srp_authentication+set}" = set; then :
8733 enableval=$enable_srp_authentication; ac_enable_srp=$enableval
8736 if test x$ac_enable_srp != xno; then
8737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8738 $as_echo "no" >&6; }
8740 $as_echo "#define ENABLE_SRP 1" >>confdefs.h
8744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8745 $as_echo "yes" >&6; }
8747 if test "$ac_enable_srp" != "no"; then
8749 ENABLE_SRP_FALSE='#'
8757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to disable PSK authentication support" >&5
8758 $as_echo_n "checking whether to disable PSK authentication support... " >&6; }
8759 # Check whether --enable-psk-authentication was given.
8760 if test "${enable_psk_authentication+set}" = set; then :
8761 enableval=$enable_psk_authentication; ac_enable_psk=$enableval
8764 if test x$ac_enable_psk != xno; then
8765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8766 $as_echo "no" >&6; }
8768 $as_echo "#define ENABLE_PSK 1" >>confdefs.h
8772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8773 $as_echo "yes" >&6; }
8775 if test "$ac_enable_psk" != "no"; then
8777 ENABLE_PSK_FALSE='#'
8785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to disable anonymous authentication support" >&5
8786 $as_echo_n "checking whether to disable anonymous authentication support... " >&6; }
8787 # Check whether --enable-anon-authentication was given.
8788 if test "${enable_anon_authentication+set}" = set; then :
8789 enableval=$enable_anon_authentication; ac_enable_anon=$enableval
8792 if test x$ac_enable_anon != xno; then
8793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8794 $as_echo "no" >&6; }
8796 $as_echo "#define ENABLE_ANON 1" >>confdefs.h
8800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8801 $as_echo "yes" >&6; }
8803 if test "$ac_enable_anon" != "no"; then
8805 ENABLE_ANON_FALSE='#'
8807 ENABLE_ANON_TRUE='#'
8812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to disable DHE support" >&5
8813 $as_echo_n "checking whether to disable DHE support... " >&6; }
8814 # Check whether --enable-dhe was given.
8815 if test "${enable_dhe+set}" = set; then :
8816 enableval=$enable_dhe; ac_enable_dhe=$enableval
8821 if test x$ac_enable_dhe != xno; then
8822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8823 $as_echo "no" >&6; }
8825 $as_echo "#define ENABLE_DHE 1" >>confdefs.h
8829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8830 $as_echo "yes" >&6; }
8832 if test "$ac_enable_dhe" != "no"; then
8834 ENABLE_DHE_FALSE='#'
8841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to disable ECDHE support" >&5
8842 $as_echo_n "checking whether to disable ECDHE support... " >&6; }
8843 # Check whether --enable-ecdhe was given.
8844 if test "${enable_ecdhe+set}" = set; then :
8845 enableval=$enable_ecdhe; ac_enable_ecdhe=$enableval
8850 if test x$ac_enable_ecdhe != xno; then
8851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8852 $as_echo "no" >&6; }
8854 $as_echo "#define ENABLE_ECDHE 1" >>confdefs.h
8858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8859 $as_echo "yes" >&6; }
8861 if test "$ac_enable_ecdhe" != "no"; then
8863 ENABLE_ECDHE_FALSE='#'
8865 ENABLE_ECDHE_TRUE='#'
8870 ac_enable_openpgp=yes
8871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to disable OpenPGP Certificate authentication support" >&5
8872 $as_echo_n "checking whether to disable OpenPGP Certificate authentication support... " >&6; }
8873 # Check whether --enable-openpgp-authentication was given.
8874 if test "${enable_openpgp_authentication+set}" = set; then :
8875 enableval=$enable_openpgp_authentication; ac_enable_openpgp=$enableval
8878 if test x$ac_enable_openpgp = xno; then
8879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8880 $as_echo "yes" >&6; }
8884 $as_echo "#define ENABLE_OPENPGP 1" >>confdefs.h
8886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8887 $as_echo "no" >&6; }
8889 if test "$ac_enable_openpgp" = "yes"; then
8890 ENABLE_OPENPGP_TRUE=
8891 ENABLE_OPENPGP_FALSE='#'
8893 ENABLE_OPENPGP_TRUE='#'
8894 ENABLE_OPENPGP_FALSE=
8899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to add cryptodev support" >&5
8900 $as_echo_n "checking whether to add cryptodev support... " >&6; }
8901 # Check whether --enable-cryptodev was given.
8902 if test "${enable_cryptodev+set}" = set; then :
8903 enableval=$enable_cryptodev; enable_cryptodev=$enableval
8908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_cryptodev" >&5
8909 $as_echo "$enable_cryptodev" >&6; }
8911 if test "$enable_cryptodev" = "yes"; then
8913 $as_echo "#define ENABLE_CRYPTODEV 1" >>confdefs.h
8917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to disable OCSP support" >&5
8918 $as_echo_n "checking whether to disable OCSP support... " >&6; }
8919 # Check whether --enable-ocsp was given.
8920 if test "${enable_ocsp+set}" = set; then :
8921 enableval=$enable_ocsp; ac_enable_ocsp=$enableval
8926 if test x$ac_enable_ocsp != xno; then
8928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8929 $as_echo "no" >&6; }
8931 $as_echo "#define ENABLE_OCSP 1" >>confdefs.h
8935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8936 $as_echo "yes" >&6; }
8938 if test "$ac_enable_ocsp" != "no"; then
8940 ENABLE_OCSP_FALSE='#'
8942 ENABLE_OCSP_TRUE='#'
8948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to disable session tickets support" >&5
8949 $as_echo_n "checking whether to disable session tickets support... " >&6; }
8950 # Check whether --enable-session-tickets was given.
8951 if test "${enable_session_tickets+set}" = set; then :
8952 enableval=$enable_session_tickets; ac_enable_session_tickets=$enableval
8954 ac_enable_session_tickets=yes
8957 if test x$ac_enable_session_tickets != xno; then
8958 ac_enable_session_tickets=yes
8959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8960 $as_echo "no" >&6; }
8962 $as_echo "#define ENABLE_SESSION_TICKETS 1" >>confdefs.h
8966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8967 $as_echo "yes" >&6; }
8969 if test "$ac_enable_session_tickets" != "no"; then
8970 ENABLE_SESSION_TICKETS_TRUE=
8971 ENABLE_SESSION_TICKETS_FALSE='#'
8973 ENABLE_SESSION_TICKETS_TRUE='#'
8974 ENABLE_SESSION_TICKETS_FALSE=
8978 # For storing integers in pointers without warnings
8979 # http://developer.gnome.org/doc/API/2.0/glib/glib-Type-Conversion-Macros.html#desc
8980 # The cast to long int works around a bug in the HP C Compiler
8981 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8982 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8983 # This bug is HP SR number 8606223364.
8984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
8985 $as_echo_n "checking size of void *... " >&6; }
8986 if ${ac_cv_sizeof_void_p+:} false; then :
8987 $as_echo_n "(cached) " >&6
8989 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
8992 if test "$ac_cv_type_void_p" = yes; then
8993 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8994 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8995 as_fn_error 77 "cannot compute sizeof (void *)
8996 See \`config.log' for more details" "$LINENO" 5; }
8998 ac_cv_sizeof_void_p=0
9003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
9004 $as_echo "$ac_cv_sizeof_void_p" >&6; }
9008 cat >>confdefs.h <<_ACEOF
9009 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
9013 # The cast to long int works around a bug in the HP C Compiler
9014 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
9015 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
9016 # This bug is HP SR number 8606223364.
9017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
9018 $as_echo_n "checking size of long long... " >&6; }
9019 if ${ac_cv_sizeof_long_long+:} false; then :
9020 $as_echo_n "(cached) " >&6
9022 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then :
9025 if test "$ac_cv_type_long_long" = yes; then
9026 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9027 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9028 as_fn_error 77 "cannot compute sizeof (long long)
9029 See \`config.log' for more details" "$LINENO" 5; }
9031 ac_cv_sizeof_long_long=0
9036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
9037 $as_echo "$ac_cv_sizeof_long_long" >&6; }
9041 cat >>confdefs.h <<_ACEOF
9042 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
9046 # The cast to long int works around a bug in the HP C Compiler
9047 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
9048 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
9049 # This bug is HP SR number 8606223364.
9050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
9051 $as_echo_n "checking size of long... " >&6; }
9052 if ${ac_cv_sizeof_long+:} false; then :
9053 $as_echo_n "(cached) " >&6
9055 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
9058 if test "$ac_cv_type_long" = yes; then
9059 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9060 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9061 as_fn_error 77 "cannot compute sizeof (long)
9062 See \`config.log' for more details" "$LINENO" 5; }
9069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
9070 $as_echo "$ac_cv_sizeof_long" >&6; }
9074 cat >>confdefs.h <<_ACEOF
9075 #define SIZEOF_LONG $ac_cv_sizeof_long
9079 # The cast to long int works around a bug in the HP C Compiler
9080 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
9081 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
9082 # This bug is HP SR number 8606223364.
9083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
9084 $as_echo_n "checking size of int... " >&6; }
9085 if ${ac_cv_sizeof_int+:} false; then :
9086 $as_echo_n "(cached) " >&6
9088 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
9091 if test "$ac_cv_type_int" = yes; then
9092 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9093 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9094 as_fn_error 77 "cannot compute sizeof (int)
9095 See \`config.log' for more details" "$LINENO" 5; }
9102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
9103 $as_echo "$ac_cv_sizeof_int" >&6; }
9107 cat >>confdefs.h <<_ACEOF
9108 #define SIZEOF_INT $ac_cv_sizeof_int
9112 if test x$ac_cv_sizeof_void_p = x$ac_cv_sizeof_long;then
9114 $as_echo "#define GNUTLS_POINTER_TO_INT_CAST (long)" >>confdefs.h
9116 elif test x$ac_cv_sizeof_void_p = x$ac_cv_sizeof_long_long;then
9118 $as_echo "#define GNUTLS_POINTER_TO_INT_CAST (long long)" >>confdefs.h
9121 $as_echo "#define GNUTLS_POINTER_TO_INT_CAST /**/" >>confdefs.h
9134 GNULIB_EUIDACCESS=0;
9142 GNULIB_GETDOMAINNAME=0;
9143 GNULIB_GETDTABLESIZE=0;
9145 GNULIB_GETHOSTNAME=0;
9147 GNULIB_GETLOGIN_R=0;
9148 GNULIB_GETPAGESIZE=0;
9149 GNULIB_GETUSERSHELL=0;
9150 GNULIB_GROUP_MEMBER=0;
9162 GNULIB_READLINKAT=0;
9164 GNULIB_SETHOSTNAME=0;
9169 GNULIB_UNISTD_H_NONBLOCKING=0;
9170 GNULIB_UNISTD_H_SIGPIPE=0;
9185 HAVE_GETDTABLESIZE=1;
9190 HAVE_GROUP_MEMBER=1;
9206 HAVE_DECL_ENVIRON=1;
9208 HAVE_DECL_FDATASYNC=1;
9209 HAVE_DECL_GETDOMAINNAME=1;
9210 HAVE_DECL_GETLOGIN_R=1;
9211 HAVE_DECL_GETPAGESIZE=1;
9212 HAVE_DECL_GETUSERSHELL=1;
9213 HAVE_DECL_SETHOSTNAME=1;
9214 HAVE_DECL_TTYNAME_R=1;
9222 REPLACE_FTRUNCATE=0;
9224 REPLACE_GETDOMAINNAME=0;
9225 REPLACE_GETDTABLESIZE=0;
9226 REPLACE_GETLOGIN_R=0;
9227 REPLACE_GETGROUPS=0;
9228 REPLACE_GETPAGESIZE=0;
9241 REPLACE_TTYNAME_R=0;
9246 UNISTD_H_HAVE_WINSOCK2_H=0;
9247 UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS=0;
9254 for ac_header in $gl_header_list
9256 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9257 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9258 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
9259 cat >>confdefs.h <<_ACEOF
9260 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9282 if test $ac_cv_header_sys_socket_h != yes; then
9283 for ac_header in winsock2.h
9285 ac_fn_c_check_header_mongrel "$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
9286 if test "x$ac_cv_header_winsock2_h" = xyes; then :
9287 cat >>confdefs.h <<_ACEOF
9288 #define HAVE_WINSOCK2_H 1
9296 if test "$ac_cv_header_winsock2_h" = yes; then
9298 UNISTD_H_HAVE_WINSOCK2_H=1
9299 SYS_IOCTL_H_HAVE_WINSOCK2_H=1
9305 if test $HAVE_WINSOCK2_H = 1; then
9306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we need to call WSAStartup in winsock2.h and -lws2_32" >&5
9307 $as_echo_n "checking if we need to call WSAStartup in winsock2.h and -lws2_32... " >&6; }
9308 if ${gl_cv_func_wsastartup+:} false; then :
9309 $as_echo_n "(cached) " >&6
9312 gl_save_LIBS="$LIBS"
9313 LIBS="$LIBS -lws2_32"
9314 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9315 /* end confdefs.h. */
9317 #ifdef HAVE_WINSOCK2_H
9318 # include <winsock2.h>
9324 WORD wVersionRequested = MAKEWORD(1, 1);
9326 int err = WSAStartup(wVersionRequested, &wsaData);
9332 if ac_fn_c_try_link "$LINENO"; then :
9333 gl_cv_func_wsastartup=yes
9335 gl_cv_func_wsastartup=no
9337 rm -f core conftest.err conftest.$ac_objext \
9338 conftest$ac_exeext conftest.$ac_ext
9339 LIBS="$gl_save_LIBS"
9342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_wsastartup" >&5
9343 $as_echo "$gl_cv_func_wsastartup" >&6; }
9344 if test "$gl_cv_func_wsastartup" = "yes"; then
9346 $as_echo "#define WINDOWS_SOCKETS 1" >>confdefs.h
9348 LIBSOCKET='-lws2_32'
9351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing setsockopt" >&5
9352 $as_echo_n "checking for library containing setsockopt... " >&6; }
9353 if ${gl_cv_lib_socket+:} false; then :
9354 $as_echo_n "(cached) " >&6
9358 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9359 /* end confdefs.h. */
9373 if ac_fn_c_try_link "$LINENO"; then :
9376 gl_save_LIBS="$LIBS"
9377 LIBS="$gl_save_LIBS -lsocket"
9378 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9379 /* end confdefs.h. */
9393 if ac_fn_c_try_link "$LINENO"; then :
9394 gl_cv_lib_socket="-lsocket"
9396 rm -f core conftest.err conftest.$ac_objext \
9397 conftest$ac_exeext conftest.$ac_ext
9398 if test -z "$gl_cv_lib_socket"; then
9399 LIBS="$gl_save_LIBS -lnetwork"
9400 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9401 /* end confdefs.h. */
9415 if ac_fn_c_try_link "$LINENO"; then :
9416 gl_cv_lib_socket="-lnetwork"
9418 rm -f core conftest.err conftest.$ac_objext \
9419 conftest$ac_exeext conftest.$ac_ext
9420 if test -z "$gl_cv_lib_socket"; then
9421 LIBS="$gl_save_LIBS -lnet"
9422 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9423 /* end confdefs.h. */
9437 if ac_fn_c_try_link "$LINENO"; then :
9438 gl_cv_lib_socket="-lnet"
9440 rm -f core conftest.err conftest.$ac_objext \
9441 conftest$ac_exeext conftest.$ac_ext
9444 LIBS="$gl_save_LIBS"
9447 rm -f core conftest.err conftest.$ac_objext \
9448 conftest$ac_exeext conftest.$ac_ext
9449 if test -z "$gl_cv_lib_socket"; then
9450 gl_cv_lib_socket="none needed"
9454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_lib_socket" >&5
9455 $as_echo "$gl_cv_lib_socket" >&6; }
9456 if test "$gl_cv_lib_socket" != "none needed"; then
9457 LIBSOCKET="$gl_cv_lib_socket"
9463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build OpenSSL compatibility layer" >&5
9464 $as_echo_n "checking whether to build OpenSSL compatibility layer... " >&6; }
9465 # Check whether --enable-openssl-compatibility was given.
9466 if test "${enable_openssl_compatibility+set}" = set; then :
9467 enableval=$enable_openssl_compatibility; enable_openssl=$enableval
9472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_openssl" >&5
9473 $as_echo "$enable_openssl" >&6; }
9474 if test "$enable_openssl" = "yes"; then
9475 ENABLE_OPENSSL_TRUE=
9476 ENABLE_OPENSSL_FALSE='#'
9478 ENABLE_OPENSSL_TRUE='#'
9479 ENABLE_OPENSSL_FALSE=
9483 # We link to ../lib's gnulib, which needs -lws2_32 via LIBSOCKET in Makefile.am.
9493 # Check whether --enable-doc was given.
9494 if test "${enable_doc+set}" = set; then :
9495 enableval=$enable_doc; enable_doc=$enableval
9500 if test "$enable_doc" != "no"; then
9502 ENABLE_DOC_FALSE='#'
9509 # Check whether --enable-tests was given.
9510 if test "${enable_tests+set}" = set; then :
9511 enableval=$enable_tests; enable_tests=$enableval
9516 if test "$enable_tests" != "no"; then
9518 ENABLE_TESTS_FALSE='#'
9520 ENABLE_TESTS_TRUE='#'
9527 # Extract the first word of "gtkdoc-check", so it can be a program name with args.
9528 set dummy gtkdoc-check; ac_word=$2
9529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9530 $as_echo_n "checking for $ac_word... " >&6; }
9531 if ${ac_cv_path_GTKDOC_CHECK+:} false; then :
9532 $as_echo_n "(cached) " >&6
9534 case $GTKDOC_CHECK in
9536 ac_cv_path_GTKDOC_CHECK="$GTKDOC_CHECK" # Let the user override the test with a path.
9539 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9543 test -z "$as_dir" && as_dir=.
9544 for ac_exec_ext in '' $ac_executable_extensions; do
9545 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9546 ac_cv_path_GTKDOC_CHECK="$as_dir/$ac_word$ac_exec_ext"
9547 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9557 GTKDOC_CHECK=$ac_cv_path_GTKDOC_CHECK
9558 if test -n "$GTKDOC_CHECK"; then
9559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTKDOC_CHECK" >&5
9560 $as_echo "$GTKDOC_CHECK" >&6; }
9562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9563 $as_echo "no" >&6; }
9567 for ac_prog in gtkdoc-rebase
9569 # Extract the first word of "$ac_prog", so it can be a program name with args.
9570 set dummy $ac_prog; ac_word=$2
9571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9572 $as_echo_n "checking for $ac_word... " >&6; }
9573 if ${ac_cv_path_GTKDOC_REBASE+:} false; then :
9574 $as_echo_n "(cached) " >&6
9576 case $GTKDOC_REBASE in
9578 ac_cv_path_GTKDOC_REBASE="$GTKDOC_REBASE" # Let the user override the test with a path.
9581 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9585 test -z "$as_dir" && as_dir=.
9586 for ac_exec_ext in '' $ac_executable_extensions; do
9587 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9588 ac_cv_path_GTKDOC_REBASE="$as_dir/$ac_word$ac_exec_ext"
9589 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9599 GTKDOC_REBASE=$ac_cv_path_GTKDOC_REBASE
9600 if test -n "$GTKDOC_REBASE"; then
9601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTKDOC_REBASE" >&5
9602 $as_echo "$GTKDOC_REBASE" >&6; }
9604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9605 $as_echo "no" >&6; }
9609 test -n "$GTKDOC_REBASE" && break
9611 test -n "$GTKDOC_REBASE" || GTKDOC_REBASE="true"
9613 # Extract the first word of "gtkdoc-mkpdf", so it can be a program name with args.
9614 set dummy gtkdoc-mkpdf; ac_word=$2
9615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9616 $as_echo_n "checking for $ac_word... " >&6; }
9617 if ${ac_cv_path_GTKDOC_MKPDF+:} false; then :
9618 $as_echo_n "(cached) " >&6
9620 case $GTKDOC_MKPDF in
9622 ac_cv_path_GTKDOC_MKPDF="$GTKDOC_MKPDF" # Let the user override the test with a path.
9625 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9629 test -z "$as_dir" && as_dir=.
9630 for ac_exec_ext in '' $ac_executable_extensions; do
9631 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9632 ac_cv_path_GTKDOC_MKPDF="$as_dir/$ac_word$ac_exec_ext"
9633 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9643 GTKDOC_MKPDF=$ac_cv_path_GTKDOC_MKPDF
9644 if test -n "$GTKDOC_MKPDF"; then
9645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTKDOC_MKPDF" >&5
9646 $as_echo "$GTKDOC_MKPDF" >&6; }
9648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9649 $as_echo "no" >&6; }
9655 # Check whether --with-html-dir was given.
9656 if test "${with_html_dir+set}" = set; then :
9657 withval=$with_html_dir;
9659 with_html_dir='${datadir}/gtk-doc/html'
9662 HTML_DIR="$with_html_dir"
9665 # Check whether --enable-gtk-doc was given.
9666 if test "${enable_gtk_doc+set}" = set; then :
9667 enableval=$enable_gtk_doc;
9673 if test x$enable_gtk_doc = xyes; then
9674 if test -n "$PKG_CONFIG" && \
9675 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gtk-doc >= 1.1\""; } >&5
9676 ($PKG_CONFIG --exists --print-errors "gtk-doc >= 1.1") 2>&5
9678 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9679 test $ac_status = 0; }; then
9682 as_fn_error $? "You need to have gtk-doc >= 1.1 installed to build $PACKAGE_NAME" "$LINENO" 5
9686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build gtk-doc documentation" >&5
9687 $as_echo_n "checking whether to build gtk-doc documentation... " >&6; }
9688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_gtk_doc" >&5
9689 $as_echo "$enable_gtk_doc" >&6; }
9691 # Check whether --enable-gtk-doc-html was given.
9692 if test "${enable_gtk_doc_html+set}" = set; then :
9693 enableval=$enable_gtk_doc_html;
9695 enable_gtk_doc_html=yes
9698 # Check whether --enable-gtk-doc-pdf was given.
9699 if test "${enable_gtk_doc_pdf+set}" = set; then :
9700 enableval=$enable_gtk_doc_pdf;
9702 enable_gtk_doc_pdf=no
9706 if test -z "$GTKDOC_MKPDF"; then
9707 enable_gtk_doc_pdf=no
9711 if test x$enable_gtk_doc = xyes; then
9712 ENABLE_GTK_DOC_TRUE=
9713 ENABLE_GTK_DOC_FALSE='#'
9715 ENABLE_GTK_DOC_TRUE='#'
9716 ENABLE_GTK_DOC_FALSE=
9719 if test x$enable_gtk_doc_html = xyes; then
9720 GTK_DOC_BUILD_HTML_TRUE=
9721 GTK_DOC_BUILD_HTML_FALSE='#'
9723 GTK_DOC_BUILD_HTML_TRUE='#'
9724 GTK_DOC_BUILD_HTML_FALSE=
9727 if test x$enable_gtk_doc_pdf = xyes; then
9728 GTK_DOC_BUILD_PDF_TRUE=
9729 GTK_DOC_BUILD_PDF_FALSE='#'
9731 GTK_DOC_BUILD_PDF_TRUE='#'
9732 GTK_DOC_BUILD_PDF_FALSE=
9735 if test -n "$LIBTOOL"; then
9736 GTK_DOC_USE_LIBTOOL_TRUE=
9737 GTK_DOC_USE_LIBTOOL_FALSE='#'
9739 GTK_DOC_USE_LIBTOOL_TRUE='#'
9740 GTK_DOC_USE_LIBTOOL_FALSE=
9743 if test -n "$GTKDOC_REBASE"; then
9744 GTK_DOC_USE_REBASE_TRUE=
9745 GTK_DOC_USE_REBASE_FALSE='#'
9747 GTK_DOC_USE_REBASE_TRUE='#'
9748 GTK_DOC_USE_REBASE_FALSE=
9755 [\\/$]* | ?:[\\/]*) ;;
9756 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
9760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
9761 $as_echo_n "checking whether NLS is requested... " >&6; }
9762 # Check whether --enable-nls was given.
9763 if test "${enable_nls+set}" = set; then :
9764 enableval=$enable_nls; USE_NLS=$enableval
9769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
9770 $as_echo "$USE_NLS" >&6; }
9775 GETTEXT_MACRO_VERSION=0.18
9780 # Prepare PATH_SEPARATOR.
9781 # The user is always right.
9782 if test "${PATH_SEPARATOR+set}" != set; then
9783 echo "#! /bin/sh" >conf$$.sh
9784 echo "exit 0" >>conf$$.sh
9786 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
9794 # Find out how to test for executable files. Don't use a zero-byte file,
9795 # as systems may use methods other than mode bits to determine executability.
9796 cat >conf$$.file <<_ASEOF
9800 chmod +x conf$$.file
9801 if test -x conf$$.file >/dev/null 2>&1; then
9802 ac_executable_p="test -x"
9804 ac_executable_p="test -f"
9808 # Extract the first word of "msgfmt", so it can be a program name with args.
9809 set dummy msgfmt; ac_word=$2
9810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9811 $as_echo_n "checking for $ac_word... " >&6; }
9812 if ${ac_cv_path_MSGFMT+:} false; then :
9813 $as_echo_n "(cached) " >&6
9817 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
9820 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
9821 for ac_dir in $PATH; do
9823 test -z "$ac_dir" && ac_dir=.
9824 for ac_exec_ext in '' $ac_executable_extensions; do
9825 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
9826 echo "$as_me: trying $ac_dir/$ac_word..." >&5
9827 if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
9828 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
9829 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
9836 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
9840 MSGFMT="$ac_cv_path_MSGFMT"
9841 if test "$MSGFMT" != ":"; then
9842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
9843 $as_echo "$MSGFMT" >&6; }
9845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9846 $as_echo "no" >&6; }
9849 # Extract the first word of "gmsgfmt", so it can be a program name with args.
9850 set dummy gmsgfmt; ac_word=$2
9851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9852 $as_echo_n "checking for $ac_word... " >&6; }
9853 if ${ac_cv_path_GMSGFMT+:} false; then :
9854 $as_echo_n "(cached) " >&6
9858 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
9861 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9865 test -z "$as_dir" && as_dir=.
9866 for ac_exec_ext in '' $ac_executable_extensions; do
9867 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9868 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
9869 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9876 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
9880 GMSGFMT=$ac_cv_path_GMSGFMT
9881 if test -n "$GMSGFMT"; then
9882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
9883 $as_echo "$GMSGFMT" >&6; }
9885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9886 $as_echo "no" >&6; }
9891 case `$MSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
9892 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) MSGFMT_015=: ;;
9893 *) MSGFMT_015=$MSGFMT ;;
9896 case `$GMSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
9897 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) GMSGFMT_015=: ;;
9898 *) GMSGFMT_015=$GMSGFMT ;;
9903 # Prepare PATH_SEPARATOR.
9904 # The user is always right.
9905 if test "${PATH_SEPARATOR+set}" != set; then
9906 echo "#! /bin/sh" >conf$$.sh
9907 echo "exit 0" >>conf$$.sh
9909 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
9917 # Find out how to test for executable files. Don't use a zero-byte file,
9918 # as systems may use methods other than mode bits to determine executability.
9919 cat >conf$$.file <<_ASEOF
9923 chmod +x conf$$.file
9924 if test -x conf$$.file >/dev/null 2>&1; then
9925 ac_executable_p="test -x"
9927 ac_executable_p="test -f"
9931 # Extract the first word of "xgettext", so it can be a program name with args.
9932 set dummy xgettext; ac_word=$2
9933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9934 $as_echo_n "checking for $ac_word... " >&6; }
9935 if ${ac_cv_path_XGETTEXT+:} false; then :
9936 $as_echo_n "(cached) " >&6
9940 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
9943 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
9944 for ac_dir in $PATH; do
9946 test -z "$ac_dir" && ac_dir=.
9947 for ac_exec_ext in '' $ac_executable_extensions; do
9948 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
9949 echo "$as_me: trying $ac_dir/$ac_word..." >&5
9950 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
9951 (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
9952 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
9959 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
9963 XGETTEXT="$ac_cv_path_XGETTEXT"
9964 if test "$XGETTEXT" != ":"; then
9965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
9966 $as_echo "$XGETTEXT" >&6; }
9968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9969 $as_echo "no" >&6; }
9974 case `$XGETTEXT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
9975 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) XGETTEXT_015=: ;;
9976 *) XGETTEXT_015=$XGETTEXT ;;
9981 # Prepare PATH_SEPARATOR.
9982 # The user is always right.
9983 if test "${PATH_SEPARATOR+set}" != set; then
9984 echo "#! /bin/sh" >conf$$.sh
9985 echo "exit 0" >>conf$$.sh
9987 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
9995 # Find out how to test for executable files. Don't use a zero-byte file,
9996 # as systems may use methods other than mode bits to determine executability.
9997 cat >conf$$.file <<_ASEOF
10001 chmod +x conf$$.file
10002 if test -x conf$$.file >/dev/null 2>&1; then
10003 ac_executable_p="test -x"
10005 ac_executable_p="test -f"
10009 # Extract the first word of "msgmerge", so it can be a program name with args.
10010 set dummy msgmerge; ac_word=$2
10011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10012 $as_echo_n "checking for $ac_word... " >&6; }
10013 if ${ac_cv_path_MSGMERGE+:} false; then :
10014 $as_echo_n "(cached) " >&6
10016 case "$MSGMERGE" in
10018 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
10021 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
10022 for ac_dir in $PATH; do
10024 test -z "$ac_dir" && ac_dir=.
10025 for ac_exec_ext in '' $ac_executable_extensions; do
10026 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
10027 echo "$as_me: trying $ac_dir/$ac_word..." >&5
10028 if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
10029 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
10036 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
10040 MSGMERGE="$ac_cv_path_MSGMERGE"
10041 if test "$MSGMERGE" != ":"; then
10042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
10043 $as_echo "$MSGMERGE" >&6; }
10045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10046 $as_echo "no" >&6; }
10050 test -n "$localedir" || localedir='${datadir}/locale'
10053 test -n "${XGETTEXT_EXTRA_OPTIONS+set}" || XGETTEXT_EXTRA_OPTIONS=
10056 ac_config_commands="$ac_config_commands po-directories"
10060 if test "X$prefix" = "XNONE"; then
10061 acl_final_prefix="$ac_default_prefix"
10063 acl_final_prefix="$prefix"
10065 if test "X$exec_prefix" = "XNONE"; then
10066 acl_final_exec_prefix='${prefix}'
10068 acl_final_exec_prefix="$exec_prefix"
10070 acl_save_prefix="$prefix"
10071 prefix="$acl_final_prefix"
10072 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
10073 prefix="$acl_save_prefix"
10076 # Check whether --with-gnu-ld was given.
10077 if test "${with_gnu_ld+set}" = set; then :
10078 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
10083 # Prepare PATH_SEPARATOR.
10084 # The user is always right.
10085 if test "${PATH_SEPARATOR+set}" != set; then
10086 echo "#! /bin/sh" >conf$$.sh
10087 echo "exit 0" >>conf$$.sh
10089 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
10097 if test "$GCC" = yes; then
10098 # Check if gcc -print-prog-name=ld gives a path.
10099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
10100 $as_echo_n "checking for ld used by GCC... " >&6; }
10103 # gcc leaves a trailing carriage return which upsets mingw
10104 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10106 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10109 # Accept absolute paths.
10110 [\\/]* | [A-Za-z]:[\\/]*)
10111 re_direlt='/[^/][^/]*/\.\./'
10112 # Canonicalize the path of ld
10113 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
10114 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10115 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
10117 test -z "$LD" && LD="$ac_prog"
10120 # If it fails, then pretend we aren't using GCC.
10124 # If it is relative, then search for the first ld in PATH.
10125 with_gnu_ld=unknown
10128 elif test "$with_gnu_ld" = yes; then
10129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
10130 $as_echo_n "checking for GNU ld... " >&6; }
10132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
10133 $as_echo_n "checking for non-GNU ld... " >&6; }
10135 if ${acl_cv_path_LD+:} false; then :
10136 $as_echo_n "(cached) " >&6
10138 if test -z "$LD"; then
10139 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
10140 for ac_dir in $PATH; do
10141 test -z "$ac_dir" && ac_dir=.
10142 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10143 acl_cv_path_LD="$ac_dir/$ac_prog"
10144 # Check to see if the program is GNU ld. I'd rather use --version,
10145 # but apparently some GNU ld's only accept -v.
10146 # Break only if it was the GNU/non-GNU ld that we prefer.
10147 case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
10148 *GNU* | *'with BFD'*)
10149 test "$with_gnu_ld" != no && break ;;
10151 test "$with_gnu_ld" != yes && break ;;
10157 acl_cv_path_LD="$LD" # Let the user override the test with a path.
10161 LD="$acl_cv_path_LD"
10162 if test -n "$LD"; then
10163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
10164 $as_echo "$LD" >&6; }
10166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10167 $as_echo "no" >&6; }
10169 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
10170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
10171 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
10172 if ${acl_cv_prog_gnu_ld+:} false; then :
10173 $as_echo_n "(cached) " >&6
10175 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
10176 case `$LD -v 2>&1 </dev/null` in
10177 *GNU* | *'with BFD'*)
10178 acl_cv_prog_gnu_ld=yes ;;
10180 acl_cv_prog_gnu_ld=no ;;
10183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
10184 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
10185 with_gnu_ld=$acl_cv_prog_gnu_ld
10190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
10191 $as_echo_n "checking for shared library run path origin... " >&6; }
10192 if ${acl_cv_rpath+:} false; then :
10193 $as_echo_n "(cached) " >&6
10196 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
10197 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
10199 rm -f ./conftest.sh
10203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
10204 $as_echo "$acl_cv_rpath" >&6; }
10206 acl_libext="$acl_cv_libext"
10207 acl_shlibext="$acl_cv_shlibext"
10208 acl_libname_spec="$acl_cv_libname_spec"
10209 acl_library_names_spec="$acl_cv_library_names_spec"
10210 acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
10211 acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
10212 acl_hardcode_direct="$acl_cv_hardcode_direct"
10213 acl_hardcode_minus_L="$acl_cv_hardcode_minus_L"
10214 # Check whether --enable-rpath was given.
10215 if test "${enable_rpath+set}" = set; then :
10216 enableval=$enable_rpath; :
10228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit host" >&5
10229 $as_echo_n "checking for 64-bit host... " >&6; }
10230 if ${gl_cv_solaris_64bit+:} false; then :
10231 $as_echo_n "(cached) " >&6
10233 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10234 /* end confdefs.h. */
10241 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10242 $EGREP "sixtyfour bits" >/dev/null 2>&1; then :
10243 gl_cv_solaris_64bit=yes
10245 gl_cv_solaris_64bit=no
10251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_solaris_64bit" >&5
10252 $as_echo "$gl_cv_solaris_64bit" >&6; }
10253 if test $gl_cv_solaris_64bit = yes; then
10254 acl_libdirstem=lib/64
10255 case "$host_cpu" in
10256 sparc*) acl_libdirstem2=lib/sparcv9 ;;
10257 i*86 | x86_64) acl_libdirstem2=lib/amd64 ;;
10262 searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
10263 if test -n "$searchpath"; then
10264 acl_save_IFS="${IFS= }"; IFS=":"
10265 for searchdir in $searchpath; do
10266 if test -d "$searchdir"; then
10267 case "$searchdir" in
10268 */lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
10270 # Better ignore directories of this form. They are misleading.
10272 *) searchdir=`cd "$searchdir" && pwd`
10273 case "$searchdir" in
10274 */lib64 ) acl_libdirstem=lib64 ;;
10279 IFS="$acl_save_IFS"
10283 test -n "$acl_libdirstem2" || acl_libdirstem2="$acl_libdirstem"
10298 acl_save_prefix="$prefix"
10299 prefix="$acl_final_prefix"
10300 acl_save_exec_prefix="$exec_prefix"
10301 exec_prefix="$acl_final_exec_prefix"
10303 eval additional_includedir=\"$includedir\"
10304 eval additional_libdir=\"$libdir\"
10306 exec_prefix="$acl_save_exec_prefix"
10307 prefix="$acl_save_prefix"
10310 # Check whether --with-libiconv-prefix was given.
10311 if test "${with_libiconv_prefix+set}" = set; then :
10312 withval=$with_libiconv_prefix;
10313 if test "X$withval" = "Xno"; then
10316 if test "X$withval" = "X"; then
10318 acl_save_prefix="$prefix"
10319 prefix="$acl_final_prefix"
10320 acl_save_exec_prefix="$exec_prefix"
10321 exec_prefix="$acl_final_exec_prefix"
10323 eval additional_includedir=\"$includedir\"
10324 eval additional_libdir=\"$libdir\"
10326 exec_prefix="$acl_save_exec_prefix"
10327 prefix="$acl_save_prefix"
10330 additional_includedir="$withval/include"
10331 additional_libdir="$withval/$acl_libdirstem"
10332 if test "$acl_libdirstem2" != "$acl_libdirstem" \
10333 && ! test -d "$withval/$acl_libdirstem"; then
10334 additional_libdir="$withval/$acl_libdirstem2"
10348 names_already_handled=
10349 names_next_round='iconv '
10350 while test -n "$names_next_round"; do
10351 names_this_round="$names_next_round"
10353 for name in $names_this_round; do
10355 for n in $names_already_handled; do
10356 if test "$n" = "$name"; then
10357 already_handled=yes
10361 if test -z "$already_handled"; then
10362 names_already_handled="$names_already_handled $name"
10363 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
10364 eval value=\"\$HAVE_LIB$uppername\"
10365 if test -n "$value"; then
10366 if test "$value" = yes; then
10367 eval value=\"\$LIB$uppername\"
10368 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
10369 eval value=\"\$LTLIB$uppername\"
10370 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
10379 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
10380 if test -n "$acl_shlibext"; then
10381 shrext=".$acl_shlibext" # typically: shrext=.so
10385 if test $use_additional = yes; then
10386 dir="$additional_libdir"
10387 if test -n "$acl_shlibext"; then
10388 if test -f "$dir/$libname$shrext"; then
10390 found_so="$dir/$libname$shrext"
10392 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
10393 ver=`(cd "$dir" && \
10394 for f in "$libname$shrext".*; do echo "$f"; done \
10395 | sed -e "s,^$libname$shrext\\\\.,," \
10396 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
10397 | sed 1q ) 2>/dev/null`
10398 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
10400 found_so="$dir/$libname$shrext.$ver"
10403 eval library_names=\"$acl_library_names_spec\"
10404 for f in $library_names; do
10405 if test -f "$dir/$f"; then
10414 if test "X$found_dir" = "X"; then
10415 if test -f "$dir/$libname.$acl_libext"; then
10417 found_a="$dir/$libname.$acl_libext"
10420 if test "X$found_dir" != "X"; then
10421 if test -f "$dir/$libname.la"; then
10422 found_la="$dir/$libname.la"
10426 if test "X$found_dir" = "X"; then
10427 for x in $LDFLAGS $LTLIBICONV; do
10429 acl_save_prefix="$prefix"
10430 prefix="$acl_final_prefix"
10431 acl_save_exec_prefix="$exec_prefix"
10432 exec_prefix="$acl_final_exec_prefix"
10434 exec_prefix="$acl_save_exec_prefix"
10435 prefix="$acl_save_prefix"
10439 dir=`echo "X$x" | sed -e 's/^X-L//'`
10440 if test -n "$acl_shlibext"; then
10441 if test -f "$dir/$libname$shrext"; then
10443 found_so="$dir/$libname$shrext"
10445 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
10446 ver=`(cd "$dir" && \
10447 for f in "$libname$shrext".*; do echo "$f"; done \
10448 | sed -e "s,^$libname$shrext\\\\.,," \
10449 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
10450 | sed 1q ) 2>/dev/null`
10451 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
10453 found_so="$dir/$libname$shrext.$ver"
10456 eval library_names=\"$acl_library_names_spec\"
10457 for f in $library_names; do
10458 if test -f "$dir/$f"; then
10467 if test "X$found_dir" = "X"; then
10468 if test -f "$dir/$libname.$acl_libext"; then
10470 found_a="$dir/$libname.$acl_libext"
10473 if test "X$found_dir" != "X"; then
10474 if test -f "$dir/$libname.la"; then
10475 found_la="$dir/$libname.la"
10480 if test "X$found_dir" != "X"; then
10485 if test "X$found_dir" != "X"; then
10486 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
10487 if test "X$found_so" != "X"; then
10488 if test "$enable_rpath" = no \
10489 || test "X$found_dir" = "X/usr/$acl_libdirstem" \
10490 || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
10491 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10494 for x in $ltrpathdirs; do
10495 if test "X$x" = "X$found_dir"; then
10500 if test -z "$haveit"; then
10501 ltrpathdirs="$ltrpathdirs $found_dir"
10503 if test "$acl_hardcode_direct" = yes; then
10504 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10506 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
10507 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10509 for x in $rpathdirs; do
10510 if test "X$x" = "X$found_dir"; then
10515 if test -z "$haveit"; then
10516 rpathdirs="$rpathdirs $found_dir"
10520 for x in $LDFLAGS $LIBICONV; do
10522 acl_save_prefix="$prefix"
10523 prefix="$acl_final_prefix"
10524 acl_save_exec_prefix="$exec_prefix"
10525 exec_prefix="$acl_final_exec_prefix"
10527 exec_prefix="$acl_save_exec_prefix"
10528 prefix="$acl_save_prefix"
10530 if test "X$x" = "X-L$found_dir"; then
10535 if test -z "$haveit"; then
10536 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
10538 if test "$acl_hardcode_minus_L" != no; then
10539 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10541 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
10547 if test "X$found_a" != "X"; then
10548 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
10550 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
10553 additional_includedir=
10554 case "$found_dir" in
10555 */$acl_libdirstem | */$acl_libdirstem/)
10556 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
10557 if test "$name" = 'iconv'; then
10558 LIBICONV_PREFIX="$basedir"
10560 additional_includedir="$basedir/include"
10562 */$acl_libdirstem2 | */$acl_libdirstem2/)
10563 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
10564 if test "$name" = 'iconv'; then
10565 LIBICONV_PREFIX="$basedir"
10567 additional_includedir="$basedir/include"
10570 if test "X$additional_includedir" != "X"; then
10571 if test "X$additional_includedir" != "X/usr/include"; then
10573 if test "X$additional_includedir" = "X/usr/local/include"; then
10574 if test -n "$GCC"; then
10576 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
10580 if test -z "$haveit"; then
10581 for x in $CPPFLAGS $INCICONV; do
10583 acl_save_prefix="$prefix"
10584 prefix="$acl_final_prefix"
10585 acl_save_exec_prefix="$exec_prefix"
10586 exec_prefix="$acl_final_exec_prefix"
10588 exec_prefix="$acl_save_exec_prefix"
10589 prefix="$acl_save_prefix"
10591 if test "X$x" = "X-I$additional_includedir"; then
10596 if test -z "$haveit"; then
10597 if test -d "$additional_includedir"; then
10598 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
10604 if test -n "$found_la"; then
10605 save_libdir="$libdir"
10606 case "$found_la" in
10607 */* | *\\*) . "$found_la" ;;
10608 *) . "./$found_la" ;;
10610 libdir="$save_libdir"
10611 for dep in $dependency_libs; do
10614 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
10615 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
10616 && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
10618 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
10619 || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
10620 if test -n "$GCC"; then
10622 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
10626 if test -z "$haveit"; then
10628 for x in $LDFLAGS $LIBICONV; do
10630 acl_save_prefix="$prefix"
10631 prefix="$acl_final_prefix"
10632 acl_save_exec_prefix="$exec_prefix"
10633 exec_prefix="$acl_final_exec_prefix"
10635 exec_prefix="$acl_save_exec_prefix"
10636 prefix="$acl_save_prefix"
10638 if test "X$x" = "X-L$additional_libdir"; then
10643 if test -z "$haveit"; then
10644 if test -d "$additional_libdir"; then
10645 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
10649 for x in $LDFLAGS $LTLIBICONV; do
10651 acl_save_prefix="$prefix"
10652 prefix="$acl_final_prefix"
10653 acl_save_exec_prefix="$exec_prefix"
10654 exec_prefix="$acl_final_exec_prefix"
10656 exec_prefix="$acl_save_exec_prefix"
10657 prefix="$acl_save_prefix"
10659 if test "X$x" = "X-L$additional_libdir"; then
10664 if test -z "$haveit"; then
10665 if test -d "$additional_libdir"; then
10666 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
10673 dir=`echo "X$dep" | sed -e 's/^X-R//'`
10674 if test "$enable_rpath" != no; then
10676 for x in $rpathdirs; do
10677 if test "X$x" = "X$dir"; then
10682 if test -z "$haveit"; then
10683 rpathdirs="$rpathdirs $dir"
10686 for x in $ltrpathdirs; do
10687 if test "X$x" = "X$dir"; then
10692 if test -z "$haveit"; then
10693 ltrpathdirs="$ltrpathdirs $dir"
10698 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
10701 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
10704 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
10705 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
10711 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
10712 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
10718 if test "X$rpathdirs" != "X"; then
10719 if test -n "$acl_hardcode_libdir_separator"; then
10721 for found_dir in $rpathdirs; do
10722 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
10724 acl_save_libdir="$libdir"
10726 eval flag=\"$acl_hardcode_libdir_flag_spec\"
10727 libdir="$acl_save_libdir"
10728 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
10730 for found_dir in $rpathdirs; do
10731 acl_save_libdir="$libdir"
10732 libdir="$found_dir"
10733 eval flag=\"$acl_hardcode_libdir_flag_spec\"
10734 libdir="$acl_save_libdir"
10735 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
10739 if test "X$ltrpathdirs" != "X"; then
10740 for found_dir in $ltrpathdirs; do
10741 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
10775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
10776 $as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
10777 if ${gt_cv_func_CFPreferencesCopyAppValue+:} false; then :
10778 $as_echo_n "(cached) " >&6
10780 gt_save_LIBS="$LIBS"
10781 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
10782 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10783 /* end confdefs.h. */
10784 #include <CoreFoundation/CFPreferences.h>
10788 CFPreferencesCopyAppValue(NULL, NULL)
10793 if ac_fn_c_try_link "$LINENO"; then :
10794 gt_cv_func_CFPreferencesCopyAppValue=yes
10796 gt_cv_func_CFPreferencesCopyAppValue=no
10798 rm -f core conftest.err conftest.$ac_objext \
10799 conftest$ac_exeext conftest.$ac_ext
10800 LIBS="$gt_save_LIBS"
10802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
10803 $as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
10804 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
10806 $as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
10809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5
10810 $as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
10811 if ${gt_cv_func_CFLocaleCopyCurrent+:} false; then :
10812 $as_echo_n "(cached) " >&6
10814 gt_save_LIBS="$LIBS"
10815 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
10816 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10817 /* end confdefs.h. */
10818 #include <CoreFoundation/CFLocale.h>
10822 CFLocaleCopyCurrent();
10827 if ac_fn_c_try_link "$LINENO"; then :
10828 gt_cv_func_CFLocaleCopyCurrent=yes
10830 gt_cv_func_CFLocaleCopyCurrent=no
10832 rm -f core conftest.err conftest.$ac_objext \
10833 conftest$ac_exeext conftest.$ac_ext
10834 LIBS="$gt_save_LIBS"
10836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
10837 $as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
10838 if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
10840 $as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h
10844 if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
10845 INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
10857 case " $gt_needs " in
10858 *" need-formatstring-macros "*) gt_api_version=3 ;;
10859 *" need-ngettext "*) gt_api_version=2 ;;
10860 *) gt_api_version=1 ;;
10862 gt_func_gnugettext_libc="gt_cv_func_gnugettext${gt_api_version}_libc"
10863 gt_func_gnugettext_libintl="gt_cv_func_gnugettext${gt_api_version}_libintl"
10865 if test "$USE_NLS" = "yes"; then
10866 gt_use_preinstalled_gnugettext=no
10869 if test $gt_api_version -ge 3; then
10870 gt_revision_test_code='
10871 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
10872 #define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1)
10874 typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1];
10877 gt_revision_test_code=
10879 if test $gt_api_version -ge 2; then
10880 gt_expression_test_code=' + * ngettext ("", "", 0)'
10882 gt_expression_test_code=
10885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
10886 $as_echo_n "checking for GNU gettext in libc... " >&6; }
10887 if eval \${$gt_func_gnugettext_libc+:} false; then :
10888 $as_echo_n "(cached) " >&6
10890 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10891 /* end confdefs.h. */
10892 #include <libintl.h>
10893 $gt_revision_test_code
10894 extern int _nl_msg_cat_cntr;
10895 extern int *_nl_domain_bindings;
10899 bindtextdomain ("", "");
10900 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_domain_bindings
10905 if ac_fn_c_try_link "$LINENO"; then :
10906 eval "$gt_func_gnugettext_libc=yes"
10908 eval "$gt_func_gnugettext_libc=no"
10910 rm -f core conftest.err conftest.$ac_objext \
10911 conftest$ac_exeext conftest.$ac_ext
10913 eval ac_res=\$$gt_func_gnugettext_libc
10914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
10915 $as_echo "$ac_res" >&6; }
10917 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then
10923 am_save_CPPFLAGS="$CPPFLAGS"
10925 for element in $INCICONV; do
10927 for x in $CPPFLAGS; do
10929 acl_save_prefix="$prefix"
10930 prefix="$acl_final_prefix"
10931 acl_save_exec_prefix="$exec_prefix"
10932 exec_prefix="$acl_final_exec_prefix"
10934 exec_prefix="$acl_save_exec_prefix"
10935 prefix="$acl_save_prefix"
10937 if test "X$x" = "X$element"; then
10942 if test -z "$haveit"; then
10943 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
10948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
10949 $as_echo_n "checking for iconv... " >&6; }
10950 if ${am_cv_func_iconv+:} false; then :
10951 $as_echo_n "(cached) " >&6
10954 am_cv_func_iconv="no, consider installing GNU libiconv"
10956 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10957 /* end confdefs.h. */
10958 #include <stdlib.h>
10963 iconv_t cd = iconv_open("","");
10964 iconv(cd,NULL,NULL,NULL,NULL);
10970 if ac_fn_c_try_link "$LINENO"; then :
10971 am_cv_func_iconv=yes
10973 rm -f core conftest.err conftest.$ac_objext \
10974 conftest$ac_exeext conftest.$ac_ext
10975 if test "$am_cv_func_iconv" != yes; then
10976 am_save_LIBS="$LIBS"
10977 LIBS="$LIBS $LIBICONV"
10978 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10979 /* end confdefs.h. */
10980 #include <stdlib.h>
10985 iconv_t cd = iconv_open("","");
10986 iconv(cd,NULL,NULL,NULL,NULL);
10992 if ac_fn_c_try_link "$LINENO"; then :
10993 am_cv_lib_iconv=yes
10994 am_cv_func_iconv=yes
10996 rm -f core conftest.err conftest.$ac_objext \
10997 conftest$ac_exeext conftest.$ac_ext
10998 LIBS="$am_save_LIBS"
11002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
11003 $as_echo "$am_cv_func_iconv" >&6; }
11004 if test "$am_cv_func_iconv" = yes; then
11005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5
11006 $as_echo_n "checking for working iconv... " >&6; }
11007 if ${am_cv_func_iconv_works+:} false; then :
11008 $as_echo_n "(cached) " >&6
11011 am_save_LIBS="$LIBS"
11012 if test $am_cv_lib_iconv = yes; then
11013 LIBS="$LIBS $LIBICONV"
11015 if test "$cross_compiling" = yes; then :
11017 aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
11018 *) am_cv_func_iconv_works="guessing yes" ;;
11021 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11022 /* end confdefs.h. */
11025 #include <string.h>
11028 /* Test against AIX 5.1 bug: Failures are not distinguishable from successful
11031 iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
11032 if (cd_utf8_to_88591 != (iconv_t)(-1))
11034 static const char input[] = "\342\202\254"; /* EURO SIGN */
11036 const char *inptr = input;
11037 size_t inbytesleft = strlen (input);
11038 char *outptr = buf;
11039 size_t outbytesleft = sizeof (buf);
11040 size_t res = iconv (cd_utf8_to_88591,
11041 (char **) &inptr, &inbytesleft,
11042 &outptr, &outbytesleft);
11047 /* Test against Solaris 10 bug: Failures are not distinguishable from
11048 successful returns. */
11050 iconv_t cd_ascii_to_88591 = iconv_open ("ISO8859-1", "646");
11051 if (cd_ascii_to_88591 != (iconv_t)(-1))
11053 static const char input[] = "\263";
11055 const char *inptr = input;
11056 size_t inbytesleft = strlen (input);
11057 char *outptr = buf;
11058 size_t outbytesleft = sizeof (buf);
11059 size_t res = iconv (cd_ascii_to_88591,
11060 (char **) &inptr, &inbytesleft,
11061 &outptr, &outbytesleft);
11066 #if 0 /* This bug could be worked around by the caller. */
11067 /* Test against HP-UX 11.11 bug: Positive return value instead of 0. */
11069 iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
11070 if (cd_88591_to_utf8 != (iconv_t)(-1))
11072 static const char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
11074 const char *inptr = input;
11075 size_t inbytesleft = strlen (input);
11076 char *outptr = buf;
11077 size_t outbytesleft = sizeof (buf);
11078 size_t res = iconv (cd_88591_to_utf8,
11079 (char **) &inptr, &inbytesleft,
11080 &outptr, &outbytesleft);
11086 /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
11088 if (/* Try standardized names. */
11089 iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1)
11090 /* Try IRIX, OSF/1 names. */
11091 && iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1)
11092 /* Try AIX names. */
11093 && iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1)
11094 /* Try HP-UX names. */
11095 && iconv_open ("utf8", "eucJP") == (iconv_t)(-1))
11100 if ac_fn_c_try_run "$LINENO"; then :
11101 am_cv_func_iconv_works=yes
11103 am_cv_func_iconv_works=no
11105 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11106 conftest.$ac_objext conftest.beam conftest.$ac_ext
11109 LIBS="$am_save_LIBS"
11112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5
11113 $as_echo "$am_cv_func_iconv_works" >&6; }
11114 case "$am_cv_func_iconv_works" in
11115 *no) am_func_iconv=no am_cv_lib_iconv=no ;;
11116 *) am_func_iconv=yes ;;
11119 am_func_iconv=no am_cv_lib_iconv=no
11121 if test "$am_func_iconv" = yes; then
11123 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
11126 if test "$am_cv_lib_iconv" = yes; then
11127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
11128 $as_echo_n "checking how to link with libiconv... " >&6; }
11129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
11130 $as_echo "$LIBICONV" >&6; }
11132 CPPFLAGS="$am_save_CPPFLAGS"
11149 acl_save_prefix="$prefix"
11150 prefix="$acl_final_prefix"
11151 acl_save_exec_prefix="$exec_prefix"
11152 exec_prefix="$acl_final_exec_prefix"
11154 eval additional_includedir=\"$includedir\"
11155 eval additional_libdir=\"$libdir\"
11157 exec_prefix="$acl_save_exec_prefix"
11158 prefix="$acl_save_prefix"
11161 # Check whether --with-libintl-prefix was given.
11162 if test "${with_libintl_prefix+set}" = set; then :
11163 withval=$with_libintl_prefix;
11164 if test "X$withval" = "Xno"; then
11167 if test "X$withval" = "X"; then
11169 acl_save_prefix="$prefix"
11170 prefix="$acl_final_prefix"
11171 acl_save_exec_prefix="$exec_prefix"
11172 exec_prefix="$acl_final_exec_prefix"
11174 eval additional_includedir=\"$includedir\"
11175 eval additional_libdir=\"$libdir\"
11177 exec_prefix="$acl_save_exec_prefix"
11178 prefix="$acl_save_prefix"
11181 additional_includedir="$withval/include"
11182 additional_libdir="$withval/$acl_libdirstem"
11183 if test "$acl_libdirstem2" != "$acl_libdirstem" \
11184 && ! test -d "$withval/$acl_libdirstem"; then
11185 additional_libdir="$withval/$acl_libdirstem2"
11199 names_already_handled=
11200 names_next_round='intl '
11201 while test -n "$names_next_round"; do
11202 names_this_round="$names_next_round"
11204 for name in $names_this_round; do
11206 for n in $names_already_handled; do
11207 if test "$n" = "$name"; then
11208 already_handled=yes
11212 if test -z "$already_handled"; then
11213 names_already_handled="$names_already_handled $name"
11214 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
11215 eval value=\"\$HAVE_LIB$uppername\"
11216 if test -n "$value"; then
11217 if test "$value" = yes; then
11218 eval value=\"\$LIB$uppername\"
11219 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
11220 eval value=\"\$LTLIB$uppername\"
11221 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
11230 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
11231 if test -n "$acl_shlibext"; then
11232 shrext=".$acl_shlibext" # typically: shrext=.so
11236 if test $use_additional = yes; then
11237 dir="$additional_libdir"
11238 if test -n "$acl_shlibext"; then
11239 if test -f "$dir/$libname$shrext"; then
11241 found_so="$dir/$libname$shrext"
11243 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
11244 ver=`(cd "$dir" && \
11245 for f in "$libname$shrext".*; do echo "$f"; done \
11246 | sed -e "s,^$libname$shrext\\\\.,," \
11247 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
11248 | sed 1q ) 2>/dev/null`
11249 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
11251 found_so="$dir/$libname$shrext.$ver"
11254 eval library_names=\"$acl_library_names_spec\"
11255 for f in $library_names; do
11256 if test -f "$dir/$f"; then
11265 if test "X$found_dir" = "X"; then
11266 if test -f "$dir/$libname.$acl_libext"; then
11268 found_a="$dir/$libname.$acl_libext"
11271 if test "X$found_dir" != "X"; then
11272 if test -f "$dir/$libname.la"; then
11273 found_la="$dir/$libname.la"
11277 if test "X$found_dir" = "X"; then
11278 for x in $LDFLAGS $LTLIBINTL; do
11280 acl_save_prefix="$prefix"
11281 prefix="$acl_final_prefix"
11282 acl_save_exec_prefix="$exec_prefix"
11283 exec_prefix="$acl_final_exec_prefix"
11285 exec_prefix="$acl_save_exec_prefix"
11286 prefix="$acl_save_prefix"
11290 dir=`echo "X$x" | sed -e 's/^X-L//'`
11291 if test -n "$acl_shlibext"; then
11292 if test -f "$dir/$libname$shrext"; then
11294 found_so="$dir/$libname$shrext"
11296 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
11297 ver=`(cd "$dir" && \
11298 for f in "$libname$shrext".*; do echo "$f"; done \
11299 | sed -e "s,^$libname$shrext\\\\.,," \
11300 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
11301 | sed 1q ) 2>/dev/null`
11302 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
11304 found_so="$dir/$libname$shrext.$ver"
11307 eval library_names=\"$acl_library_names_spec\"
11308 for f in $library_names; do
11309 if test -f "$dir/$f"; then
11318 if test "X$found_dir" = "X"; then
11319 if test -f "$dir/$libname.$acl_libext"; then
11321 found_a="$dir/$libname.$acl_libext"
11324 if test "X$found_dir" != "X"; then
11325 if test -f "$dir/$libname.la"; then
11326 found_la="$dir/$libname.la"
11331 if test "X$found_dir" != "X"; then
11336 if test "X$found_dir" != "X"; then
11337 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
11338 if test "X$found_so" != "X"; then
11339 if test "$enable_rpath" = no \
11340 || test "X$found_dir" = "X/usr/$acl_libdirstem" \
11341 || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
11342 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
11345 for x in $ltrpathdirs; do
11346 if test "X$x" = "X$found_dir"; then
11351 if test -z "$haveit"; then
11352 ltrpathdirs="$ltrpathdirs $found_dir"
11354 if test "$acl_hardcode_direct" = yes; then
11355 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
11357 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
11358 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
11360 for x in $rpathdirs; do
11361 if test "X$x" = "X$found_dir"; then
11366 if test -z "$haveit"; then
11367 rpathdirs="$rpathdirs $found_dir"
11371 for x in $LDFLAGS $LIBINTL; do
11373 acl_save_prefix="$prefix"
11374 prefix="$acl_final_prefix"
11375 acl_save_exec_prefix="$exec_prefix"
11376 exec_prefix="$acl_final_exec_prefix"
11378 exec_prefix="$acl_save_exec_prefix"
11379 prefix="$acl_save_prefix"
11381 if test "X$x" = "X-L$found_dir"; then
11386 if test -z "$haveit"; then
11387 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
11389 if test "$acl_hardcode_minus_L" != no; then
11390 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
11392 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
11398 if test "X$found_a" != "X"; then
11399 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
11401 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
11404 additional_includedir=
11405 case "$found_dir" in
11406 */$acl_libdirstem | */$acl_libdirstem/)
11407 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
11408 if test "$name" = 'intl'; then
11409 LIBINTL_PREFIX="$basedir"
11411 additional_includedir="$basedir/include"
11413 */$acl_libdirstem2 | */$acl_libdirstem2/)
11414 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
11415 if test "$name" = 'intl'; then
11416 LIBINTL_PREFIX="$basedir"
11418 additional_includedir="$basedir/include"
11421 if test "X$additional_includedir" != "X"; then
11422 if test "X$additional_includedir" != "X/usr/include"; then
11424 if test "X$additional_includedir" = "X/usr/local/include"; then
11425 if test -n "$GCC"; then
11427 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
11431 if test -z "$haveit"; then
11432 for x in $CPPFLAGS $INCINTL; do
11434 acl_save_prefix="$prefix"
11435 prefix="$acl_final_prefix"
11436 acl_save_exec_prefix="$exec_prefix"
11437 exec_prefix="$acl_final_exec_prefix"
11439 exec_prefix="$acl_save_exec_prefix"
11440 prefix="$acl_save_prefix"
11442 if test "X$x" = "X-I$additional_includedir"; then
11447 if test -z "$haveit"; then
11448 if test -d "$additional_includedir"; then
11449 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
11455 if test -n "$found_la"; then
11456 save_libdir="$libdir"
11457 case "$found_la" in
11458 */* | *\\*) . "$found_la" ;;
11459 *) . "./$found_la" ;;
11461 libdir="$save_libdir"
11462 for dep in $dependency_libs; do
11465 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
11466 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
11467 && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
11469 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
11470 || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
11471 if test -n "$GCC"; then
11473 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
11477 if test -z "$haveit"; then
11479 for x in $LDFLAGS $LIBINTL; do
11481 acl_save_prefix="$prefix"
11482 prefix="$acl_final_prefix"
11483 acl_save_exec_prefix="$exec_prefix"
11484 exec_prefix="$acl_final_exec_prefix"
11486 exec_prefix="$acl_save_exec_prefix"
11487 prefix="$acl_save_prefix"
11489 if test "X$x" = "X-L$additional_libdir"; then
11494 if test -z "$haveit"; then
11495 if test -d "$additional_libdir"; then
11496 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
11500 for x in $LDFLAGS $LTLIBINTL; do
11502 acl_save_prefix="$prefix"
11503 prefix="$acl_final_prefix"
11504 acl_save_exec_prefix="$exec_prefix"
11505 exec_prefix="$acl_final_exec_prefix"
11507 exec_prefix="$acl_save_exec_prefix"
11508 prefix="$acl_save_prefix"
11510 if test "X$x" = "X-L$additional_libdir"; then
11515 if test -z "$haveit"; then
11516 if test -d "$additional_libdir"; then
11517 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
11524 dir=`echo "X$dep" | sed -e 's/^X-R//'`
11525 if test "$enable_rpath" != no; then
11527 for x in $rpathdirs; do
11528 if test "X$x" = "X$dir"; then
11533 if test -z "$haveit"; then
11534 rpathdirs="$rpathdirs $dir"
11537 for x in $ltrpathdirs; do
11538 if test "X$x" = "X$dir"; then
11543 if test -z "$haveit"; then
11544 ltrpathdirs="$ltrpathdirs $dir"
11549 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
11552 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
11555 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
11556 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
11562 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
11563 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
11569 if test "X$rpathdirs" != "X"; then
11570 if test -n "$acl_hardcode_libdir_separator"; then
11572 for found_dir in $rpathdirs; do
11573 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
11575 acl_save_libdir="$libdir"
11577 eval flag=\"$acl_hardcode_libdir_flag_spec\"
11578 libdir="$acl_save_libdir"
11579 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
11581 for found_dir in $rpathdirs; do
11582 acl_save_libdir="$libdir"
11583 libdir="$found_dir"
11584 eval flag=\"$acl_hardcode_libdir_flag_spec\"
11585 libdir="$acl_save_libdir"
11586 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
11590 if test "X$ltrpathdirs" != "X"; then
11591 for found_dir in $ltrpathdirs; do
11592 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
11601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
11602 $as_echo_n "checking for GNU gettext in libintl... " >&6; }
11603 if eval \${$gt_func_gnugettext_libintl+:} false; then :
11604 $as_echo_n "(cached) " >&6
11606 gt_save_CPPFLAGS="$CPPFLAGS"
11607 CPPFLAGS="$CPPFLAGS $INCINTL"
11608 gt_save_LIBS="$LIBS"
11609 LIBS="$LIBS $LIBINTL"
11610 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11611 /* end confdefs.h. */
11612 #include <libintl.h>
11613 $gt_revision_test_code
11614 extern int _nl_msg_cat_cntr;
11619 const char *_nl_expand_alias (const char *);
11623 bindtextdomain ("", "");
11624 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
11629 if ac_fn_c_try_link "$LINENO"; then :
11630 eval "$gt_func_gnugettext_libintl=yes"
11632 eval "$gt_func_gnugettext_libintl=no"
11634 rm -f core conftest.err conftest.$ac_objext \
11635 conftest$ac_exeext conftest.$ac_ext
11636 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } && test -n "$LIBICONV"; then
11637 LIBS="$LIBS $LIBICONV"
11638 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11639 /* end confdefs.h. */
11640 #include <libintl.h>
11641 $gt_revision_test_code
11642 extern int _nl_msg_cat_cntr;
11647 const char *_nl_expand_alias (const char *);
11651 bindtextdomain ("", "");
11652 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
11657 if ac_fn_c_try_link "$LINENO"; then :
11658 LIBINTL="$LIBINTL $LIBICONV"
11659 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
11660 eval "$gt_func_gnugettext_libintl=yes"
11663 rm -f core conftest.err conftest.$ac_objext \
11664 conftest$ac_exeext conftest.$ac_ext
11666 CPPFLAGS="$gt_save_CPPFLAGS"
11667 LIBS="$gt_save_LIBS"
11669 eval ac_res=\$$gt_func_gnugettext_libintl
11670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
11671 $as_echo "$ac_res" >&6; }
11674 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \
11675 || { { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \
11676 && test "$PACKAGE" != gettext-runtime \
11677 && test "$PACKAGE" != gettext-tools; }; then
11678 gt_use_preinstalled_gnugettext=yes
11687 if test -n "$INTL_MACOSX_LIBS"; then
11688 if test "$gt_use_preinstalled_gnugettext" = "yes" \
11689 || test "$nls_cv_use_gnu_gettext" = "yes"; then
11690 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
11691 LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
11695 if test "$gt_use_preinstalled_gnugettext" = "yes" \
11696 || test "$nls_cv_use_gnu_gettext" = "yes"; then
11698 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
11705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
11706 $as_echo_n "checking whether to use NLS... " >&6; }
11707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
11708 $as_echo "$USE_NLS" >&6; }
11709 if test "$USE_NLS" = "yes"; then
11710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
11711 $as_echo_n "checking where the gettext function comes from... " >&6; }
11712 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
11713 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
11714 gt_source="external libintl"
11719 gt_source="included intl directory"
11721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
11722 $as_echo "$gt_source" >&6; }
11725 if test "$USE_NLS" = "yes"; then
11727 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
11728 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
11729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
11730 $as_echo_n "checking how to link with libintl... " >&6; }
11731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
11732 $as_echo "$LIBINTL" >&6; }
11734 for element in $INCINTL; do
11736 for x in $CPPFLAGS; do
11738 acl_save_prefix="$prefix"
11739 prefix="$acl_final_prefix"
11740 acl_save_exec_prefix="$exec_prefix"
11741 exec_prefix="$acl_final_exec_prefix"
11743 exec_prefix="$acl_save_exec_prefix"
11744 prefix="$acl_save_prefix"
11746 if test "X$x" = "X$element"; then
11751 if test -z "$haveit"; then
11752 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
11759 $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
11762 $as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
11771 INTLLIBS="$LIBINTL"
11780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
11781 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
11782 if ${ac_cv_c_bigendian+:} false; then :
11783 $as_echo_n "(cached) " >&6
11785 ac_cv_c_bigendian=unknown
11786 # See if we're dealing with a universal compiler.
11787 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11788 /* end confdefs.h. */
11789 #ifndef __APPLE_CC__
11790 not a universal capable compiler
11795 if ac_fn_c_try_compile "$LINENO"; then :
11797 # Check for potential -arch flags. It is not universal unless
11798 # there are at least two -arch flags with different values.
11801 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
11802 if test -n "$ac_prev"; then
11804 i?86 | x86_64 | ppc | ppc64)
11805 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
11808 ac_cv_c_bigendian=universal
11814 elif test "x$ac_word" = "x-arch"; then
11819 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11820 if test $ac_cv_c_bigendian = unknown; then
11821 # See if sys/param.h defines the BYTE_ORDER macro.
11822 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11823 /* end confdefs.h. */
11824 #include <sys/types.h>
11825 #include <sys/param.h>
11830 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
11831 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
11833 bogus endian macros
11840 if ac_fn_c_try_compile "$LINENO"; then :
11841 # It does; now see whether it defined to BIG_ENDIAN or not.
11842 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11843 /* end confdefs.h. */
11844 #include <sys/types.h>
11845 #include <sys/param.h>
11850 #if BYTE_ORDER != BIG_ENDIAN
11858 if ac_fn_c_try_compile "$LINENO"; then :
11859 ac_cv_c_bigendian=yes
11861 ac_cv_c_bigendian=no
11863 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11865 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11867 if test $ac_cv_c_bigendian = unknown; then
11868 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
11869 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11870 /* end confdefs.h. */
11871 #include <limits.h>
11876 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
11877 bogus endian macros
11884 if ac_fn_c_try_compile "$LINENO"; then :
11885 # It does; now see whether it defined to _BIG_ENDIAN or not.
11886 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11887 /* end confdefs.h. */
11888 #include <limits.h>
11893 #ifndef _BIG_ENDIAN
11901 if ac_fn_c_try_compile "$LINENO"; then :
11902 ac_cv_c_bigendian=yes
11904 ac_cv_c_bigendian=no
11906 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11908 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11910 if test $ac_cv_c_bigendian = unknown; then
11911 # Compile a test program.
11912 if test "$cross_compiling" = yes; then :
11913 # Try to guess by grepping values from an object file.
11914 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11915 /* end confdefs.h. */
11916 short int ascii_mm[] =
11917 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
11918 short int ascii_ii[] =
11919 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
11920 int use_ascii (int i) {
11921 return ascii_mm[i] + ascii_ii[i];
11923 short int ebcdic_ii[] =
11924 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
11925 short int ebcdic_mm[] =
11926 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
11927 int use_ebcdic (int i) {
11928 return ebcdic_mm[i] + ebcdic_ii[i];
11935 return use_ascii (foo) == use_ebcdic (foo);
11940 if ac_fn_c_try_compile "$LINENO"; then :
11941 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
11942 ac_cv_c_bigendian=yes
11944 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
11945 if test "$ac_cv_c_bigendian" = unknown; then
11946 ac_cv_c_bigendian=no
11948 # finding both strings is unlikely to happen, but who knows?
11949 ac_cv_c_bigendian=unknown
11953 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11955 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11956 /* end confdefs.h. */
11957 $ac_includes_default
11962 /* Are we little or big endian? From Harbison&Steele. */
11966 char c[sizeof (long int)];
11969 return u.c[sizeof (long int) - 1] == 1;
11975 if ac_fn_c_try_run "$LINENO"; then :
11976 ac_cv_c_bigendian=no
11978 ac_cv_c_bigendian=yes
11980 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11981 conftest.$ac_objext conftest.beam conftest.$ac_ext
11986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
11987 $as_echo "$ac_cv_c_bigendian" >&6; }
11988 case $ac_cv_c_bigendian in #(
11990 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
11996 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
12000 as_fn_error $? "unknown endianness
12001 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
12005 for ac_func in fork getrusage getpwuid_r nanosleep daemon getpid clock_gettime iconv localtime vasprintf
12007 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12008 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12009 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
12010 cat >>confdefs.h <<_ACEOF
12011 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12017 if test "$ac_cv_func_fork" != "no"; then
12019 HAVE_FORK_FALSE='#'
12041 acl_save_prefix="$prefix"
12042 prefix="$acl_final_prefix"
12043 acl_save_exec_prefix="$exec_prefix"
12044 exec_prefix="$acl_final_exec_prefix"
12046 eval additional_includedir=\"$includedir\"
12047 eval additional_libdir=\"$libdir\"
12049 exec_prefix="$acl_save_exec_prefix"
12050 prefix="$acl_save_prefix"
12053 # Check whether --with-librt-prefix was given.
12054 if test "${with_librt_prefix+set}" = set; then :
12055 withval=$with_librt_prefix;
12056 if test "X$withval" = "Xno"; then
12059 if test "X$withval" = "X"; then
12061 acl_save_prefix="$prefix"
12062 prefix="$acl_final_prefix"
12063 acl_save_exec_prefix="$exec_prefix"
12064 exec_prefix="$acl_final_exec_prefix"
12066 eval additional_includedir=\"$includedir\"
12067 eval additional_libdir=\"$libdir\"
12069 exec_prefix="$acl_save_exec_prefix"
12070 prefix="$acl_save_prefix"
12073 additional_includedir="$withval/include"
12074 additional_libdir="$withval/$acl_libdirstem"
12075 if test "$acl_libdirstem2" != "$acl_libdirstem" \
12076 && ! test -d "$withval/$acl_libdirstem"; then
12077 additional_libdir="$withval/$acl_libdirstem2"
12091 names_already_handled=
12092 names_next_round='rt '
12093 while test -n "$names_next_round"; do
12094 names_this_round="$names_next_round"
12096 for name in $names_this_round; do
12098 for n in $names_already_handled; do
12099 if test "$n" = "$name"; then
12100 already_handled=yes
12104 if test -z "$already_handled"; then
12105 names_already_handled="$names_already_handled $name"
12106 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
12107 eval value=\"\$HAVE_LIB$uppername\"
12108 if test -n "$value"; then
12109 if test "$value" = yes; then
12110 eval value=\"\$LIB$uppername\"
12111 test -z "$value" || LIBRT="${LIBRT}${LIBRT:+ }$value"
12112 eval value=\"\$LTLIB$uppername\"
12113 test -z "$value" || LTLIBRT="${LTLIBRT}${LTLIBRT:+ }$value"
12122 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
12123 if test -n "$acl_shlibext"; then
12124 shrext=".$acl_shlibext" # typically: shrext=.so
12128 if test $use_additional = yes; then
12129 dir="$additional_libdir"
12130 if test -n "$acl_shlibext"; then
12131 if test -f "$dir/$libname$shrext"; then
12133 found_so="$dir/$libname$shrext"
12135 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
12136 ver=`(cd "$dir" && \
12137 for f in "$libname$shrext".*; do echo "$f"; done \
12138 | sed -e "s,^$libname$shrext\\\\.,," \
12139 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
12140 | sed 1q ) 2>/dev/null`
12141 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
12143 found_so="$dir/$libname$shrext.$ver"
12146 eval library_names=\"$acl_library_names_spec\"
12147 for f in $library_names; do
12148 if test -f "$dir/$f"; then
12157 if test "X$found_dir" = "X"; then
12158 if test -f "$dir/$libname.$acl_libext"; then
12160 found_a="$dir/$libname.$acl_libext"
12163 if test "X$found_dir" != "X"; then
12164 if test -f "$dir/$libname.la"; then
12165 found_la="$dir/$libname.la"
12169 if test "X$found_dir" = "X"; then
12170 for x in $LDFLAGS $LTLIBRT; do
12172 acl_save_prefix="$prefix"
12173 prefix="$acl_final_prefix"
12174 acl_save_exec_prefix="$exec_prefix"
12175 exec_prefix="$acl_final_exec_prefix"
12177 exec_prefix="$acl_save_exec_prefix"
12178 prefix="$acl_save_prefix"
12182 dir=`echo "X$x" | sed -e 's/^X-L//'`
12183 if test -n "$acl_shlibext"; then
12184 if test -f "$dir/$libname$shrext"; then
12186 found_so="$dir/$libname$shrext"
12188 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
12189 ver=`(cd "$dir" && \
12190 for f in "$libname$shrext".*; do echo "$f"; done \
12191 | sed -e "s,^$libname$shrext\\\\.,," \
12192 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
12193 | sed 1q ) 2>/dev/null`
12194 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
12196 found_so="$dir/$libname$shrext.$ver"
12199 eval library_names=\"$acl_library_names_spec\"
12200 for f in $library_names; do
12201 if test -f "$dir/$f"; then
12210 if test "X$found_dir" = "X"; then
12211 if test -f "$dir/$libname.$acl_libext"; then
12213 found_a="$dir/$libname.$acl_libext"
12216 if test "X$found_dir" != "X"; then
12217 if test -f "$dir/$libname.la"; then
12218 found_la="$dir/$libname.la"
12223 if test "X$found_dir" != "X"; then
12228 if test "X$found_dir" != "X"; then
12229 LTLIBRT="${LTLIBRT}${LTLIBRT:+ }-L$found_dir -l$name"
12230 if test "X$found_so" != "X"; then
12231 if test "$enable_rpath" = no \
12232 || test "X$found_dir" = "X/usr/$acl_libdirstem" \
12233 || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
12234 LIBRT="${LIBRT}${LIBRT:+ }$found_so"
12237 for x in $ltrpathdirs; do
12238 if test "X$x" = "X$found_dir"; then
12243 if test -z "$haveit"; then
12244 ltrpathdirs="$ltrpathdirs $found_dir"
12246 if test "$acl_hardcode_direct" = yes; then
12247 LIBRT="${LIBRT}${LIBRT:+ }$found_so"
12249 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
12250 LIBRT="${LIBRT}${LIBRT:+ }$found_so"
12252 for x in $rpathdirs; do
12253 if test "X$x" = "X$found_dir"; then
12258 if test -z "$haveit"; then
12259 rpathdirs="$rpathdirs $found_dir"
12263 for x in $LDFLAGS $LIBRT; do
12265 acl_save_prefix="$prefix"
12266 prefix="$acl_final_prefix"
12267 acl_save_exec_prefix="$exec_prefix"
12268 exec_prefix="$acl_final_exec_prefix"
12270 exec_prefix="$acl_save_exec_prefix"
12271 prefix="$acl_save_prefix"
12273 if test "X$x" = "X-L$found_dir"; then
12278 if test -z "$haveit"; then
12279 LIBRT="${LIBRT}${LIBRT:+ }-L$found_dir"
12281 if test "$acl_hardcode_minus_L" != no; then
12282 LIBRT="${LIBRT}${LIBRT:+ }$found_so"
12284 LIBRT="${LIBRT}${LIBRT:+ }-l$name"
12290 if test "X$found_a" != "X"; then
12291 LIBRT="${LIBRT}${LIBRT:+ }$found_a"
12293 LIBRT="${LIBRT}${LIBRT:+ }-L$found_dir -l$name"
12296 additional_includedir=
12297 case "$found_dir" in
12298 */$acl_libdirstem | */$acl_libdirstem/)
12299 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
12300 if test "$name" = 'rt'; then
12301 LIBRT_PREFIX="$basedir"
12303 additional_includedir="$basedir/include"
12305 */$acl_libdirstem2 | */$acl_libdirstem2/)
12306 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
12307 if test "$name" = 'rt'; then
12308 LIBRT_PREFIX="$basedir"
12310 additional_includedir="$basedir/include"
12313 if test "X$additional_includedir" != "X"; then
12314 if test "X$additional_includedir" != "X/usr/include"; then
12316 if test "X$additional_includedir" = "X/usr/local/include"; then
12317 if test -n "$GCC"; then
12319 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
12323 if test -z "$haveit"; then
12324 for x in $CPPFLAGS $INCRT; do
12326 acl_save_prefix="$prefix"
12327 prefix="$acl_final_prefix"
12328 acl_save_exec_prefix="$exec_prefix"
12329 exec_prefix="$acl_final_exec_prefix"
12331 exec_prefix="$acl_save_exec_prefix"
12332 prefix="$acl_save_prefix"
12334 if test "X$x" = "X-I$additional_includedir"; then
12339 if test -z "$haveit"; then
12340 if test -d "$additional_includedir"; then
12341 INCRT="${INCRT}${INCRT:+ }-I$additional_includedir"
12347 if test -n "$found_la"; then
12348 save_libdir="$libdir"
12349 case "$found_la" in
12350 */* | *\\*) . "$found_la" ;;
12351 *) . "./$found_la" ;;
12353 libdir="$save_libdir"
12354 for dep in $dependency_libs; do
12357 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
12358 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
12359 && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
12361 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
12362 || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
12363 if test -n "$GCC"; then
12365 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
12369 if test -z "$haveit"; then
12371 for x in $LDFLAGS $LIBRT; do
12373 acl_save_prefix="$prefix"
12374 prefix="$acl_final_prefix"
12375 acl_save_exec_prefix="$exec_prefix"
12376 exec_prefix="$acl_final_exec_prefix"
12378 exec_prefix="$acl_save_exec_prefix"
12379 prefix="$acl_save_prefix"
12381 if test "X$x" = "X-L$additional_libdir"; then
12386 if test -z "$haveit"; then
12387 if test -d "$additional_libdir"; then
12388 LIBRT="${LIBRT}${LIBRT:+ }-L$additional_libdir"
12392 for x in $LDFLAGS $LTLIBRT; do
12394 acl_save_prefix="$prefix"
12395 prefix="$acl_final_prefix"
12396 acl_save_exec_prefix="$exec_prefix"
12397 exec_prefix="$acl_final_exec_prefix"
12399 exec_prefix="$acl_save_exec_prefix"
12400 prefix="$acl_save_prefix"
12402 if test "X$x" = "X-L$additional_libdir"; then
12407 if test -z "$haveit"; then
12408 if test -d "$additional_libdir"; then
12409 LTLIBRT="${LTLIBRT}${LTLIBRT:+ }-L$additional_libdir"
12416 dir=`echo "X$dep" | sed -e 's/^X-R//'`
12417 if test "$enable_rpath" != no; then
12419 for x in $rpathdirs; do
12420 if test "X$x" = "X$dir"; then
12425 if test -z "$haveit"; then
12426 rpathdirs="$rpathdirs $dir"
12429 for x in $ltrpathdirs; do
12430 if test "X$x" = "X$dir"; then
12435 if test -z "$haveit"; then
12436 ltrpathdirs="$ltrpathdirs $dir"
12441 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
12444 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
12447 LIBRT="${LIBRT}${LIBRT:+ }$dep"
12448 LTLIBRT="${LTLIBRT}${LTLIBRT:+ }$dep"
12454 LIBRT="${LIBRT}${LIBRT:+ }-l$name"
12455 LTLIBRT="${LTLIBRT}${LTLIBRT:+ }-l$name"
12461 if test "X$rpathdirs" != "X"; then
12462 if test -n "$acl_hardcode_libdir_separator"; then
12464 for found_dir in $rpathdirs; do
12465 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
12467 acl_save_libdir="$libdir"
12469 eval flag=\"$acl_hardcode_libdir_flag_spec\"
12470 libdir="$acl_save_libdir"
12471 LIBRT="${LIBRT}${LIBRT:+ }$flag"
12473 for found_dir in $rpathdirs; do
12474 acl_save_libdir="$libdir"
12475 libdir="$found_dir"
12476 eval flag=\"$acl_hardcode_libdir_flag_spec\"
12477 libdir="$acl_save_libdir"
12478 LIBRT="${LIBRT}${LIBRT:+ }$flag"
12482 if test "X$ltrpathdirs" != "X"; then
12483 for found_dir in $ltrpathdirs; do
12484 LTLIBRT="${LTLIBRT}${LTLIBRT:+ }-R$found_dir"
12494 ac_save_CPPFLAGS="$CPPFLAGS"
12496 for element in $INCRT; do
12498 for x in $CPPFLAGS; do
12500 acl_save_prefix="$prefix"
12501 prefix="$acl_final_prefix"
12502 acl_save_exec_prefix="$exec_prefix"
12503 exec_prefix="$acl_final_exec_prefix"
12505 exec_prefix="$acl_save_exec_prefix"
12506 prefix="$acl_save_prefix"
12508 if test "X$x" = "X$element"; then
12513 if test -z "$haveit"; then
12514 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
12519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for librt" >&5
12520 $as_echo_n "checking for librt... " >&6; }
12521 if ${ac_cv_librt+:} false; then :
12522 $as_echo_n "(cached) " >&6
12525 ac_save_LIBS="$LIBS"
12527 *" -l"*) LIBS="$LIBS $LIBRT" ;;
12528 *) LIBS="$LIBRT $LIBS" ;;
12530 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12531 /* end confdefs.h. */
12533 #include <signal.h>
12538 timer_create (0,0,0);
12543 if ac_fn_c_try_link "$LINENO"; then :
12548 rm -f core conftest.err conftest.$ac_objext \
12549 conftest$ac_exeext conftest.$ac_ext
12550 LIBS="$ac_save_LIBS"
12553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_librt" >&5
12554 $as_echo "$ac_cv_librt" >&6; }
12555 if test "$ac_cv_librt" = yes; then
12558 $as_echo "#define HAVE_LIBRT 1" >>confdefs.h
12560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with librt" >&5
12561 $as_echo_n "checking how to link with librt... " >&6; }
12562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBRT" >&5
12563 $as_echo "$LIBRT" >&6; }
12566 CPPFLAGS="$ac_save_CPPFLAGS"
12579 if test "$have_win" != "yes";then
12580 for ac_func in pthread_mutex_lock
12582 ac_fn_c_check_func "$LINENO" "pthread_mutex_lock" "ac_cv_func_pthread_mutex_lock"
12583 if test "x$ac_cv_func_pthread_mutex_lock" = xyes; then :
12584 cat >>confdefs.h <<_ACEOF
12585 #define HAVE_PTHREAD_MUTEX_LOCK 1
12591 if test "$ac_cv_func_pthread_mutex_lock" != "yes";then
12607 acl_save_prefix="$prefix"
12608 prefix="$acl_final_prefix"
12609 acl_save_exec_prefix="$exec_prefix"
12610 exec_prefix="$acl_final_exec_prefix"
12612 eval additional_includedir=\"$includedir\"
12613 eval additional_libdir=\"$libdir\"
12615 exec_prefix="$acl_save_exec_prefix"
12616 prefix="$acl_save_prefix"
12619 # Check whether --with-libpthread-prefix was given.
12620 if test "${with_libpthread_prefix+set}" = set; then :
12621 withval=$with_libpthread_prefix;
12622 if test "X$withval" = "Xno"; then
12625 if test "X$withval" = "X"; then
12627 acl_save_prefix="$prefix"
12628 prefix="$acl_final_prefix"
12629 acl_save_exec_prefix="$exec_prefix"
12630 exec_prefix="$acl_final_exec_prefix"
12632 eval additional_includedir=\"$includedir\"
12633 eval additional_libdir=\"$libdir\"
12635 exec_prefix="$acl_save_exec_prefix"
12636 prefix="$acl_save_prefix"
12639 additional_includedir="$withval/include"
12640 additional_libdir="$withval/$acl_libdirstem"
12641 if test "$acl_libdirstem2" != "$acl_libdirstem" \
12642 && ! test -d "$withval/$acl_libdirstem"; then
12643 additional_libdir="$withval/$acl_libdirstem2"
12657 names_already_handled=
12658 names_next_round='pthread '
12659 while test -n "$names_next_round"; do
12660 names_this_round="$names_next_round"
12662 for name in $names_this_round; do
12664 for n in $names_already_handled; do
12665 if test "$n" = "$name"; then
12666 already_handled=yes
12670 if test -z "$already_handled"; then
12671 names_already_handled="$names_already_handled $name"
12672 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
12673 eval value=\"\$HAVE_LIB$uppername\"
12674 if test -n "$value"; then
12675 if test "$value" = yes; then
12676 eval value=\"\$LIB$uppername\"
12677 test -z "$value" || LIBPTHREAD="${LIBPTHREAD}${LIBPTHREAD:+ }$value"
12678 eval value=\"\$LTLIB$uppername\"
12679 test -z "$value" || LTLIBPTHREAD="${LTLIBPTHREAD}${LTLIBPTHREAD:+ }$value"
12688 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
12689 if test -n "$acl_shlibext"; then
12690 shrext=".$acl_shlibext" # typically: shrext=.so
12694 if test $use_additional = yes; then
12695 dir="$additional_libdir"
12696 if test -n "$acl_shlibext"; then
12697 if test -f "$dir/$libname$shrext"; then
12699 found_so="$dir/$libname$shrext"
12701 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
12702 ver=`(cd "$dir" && \
12703 for f in "$libname$shrext".*; do echo "$f"; done \
12704 | sed -e "s,^$libname$shrext\\\\.,," \
12705 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
12706 | sed 1q ) 2>/dev/null`
12707 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
12709 found_so="$dir/$libname$shrext.$ver"
12712 eval library_names=\"$acl_library_names_spec\"
12713 for f in $library_names; do
12714 if test -f "$dir/$f"; then
12723 if test "X$found_dir" = "X"; then
12724 if test -f "$dir/$libname.$acl_libext"; then
12726 found_a="$dir/$libname.$acl_libext"
12729 if test "X$found_dir" != "X"; then
12730 if test -f "$dir/$libname.la"; then
12731 found_la="$dir/$libname.la"
12735 if test "X$found_dir" = "X"; then
12736 for x in $LDFLAGS $LTLIBPTHREAD; do
12738 acl_save_prefix="$prefix"
12739 prefix="$acl_final_prefix"
12740 acl_save_exec_prefix="$exec_prefix"
12741 exec_prefix="$acl_final_exec_prefix"
12743 exec_prefix="$acl_save_exec_prefix"
12744 prefix="$acl_save_prefix"
12748 dir=`echo "X$x" | sed -e 's/^X-L//'`
12749 if test -n "$acl_shlibext"; then
12750 if test -f "$dir/$libname$shrext"; then
12752 found_so="$dir/$libname$shrext"
12754 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
12755 ver=`(cd "$dir" && \
12756 for f in "$libname$shrext".*; do echo "$f"; done \
12757 | sed -e "s,^$libname$shrext\\\\.,," \
12758 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
12759 | sed 1q ) 2>/dev/null`
12760 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
12762 found_so="$dir/$libname$shrext.$ver"
12765 eval library_names=\"$acl_library_names_spec\"
12766 for f in $library_names; do
12767 if test -f "$dir/$f"; then
12776 if test "X$found_dir" = "X"; then
12777 if test -f "$dir/$libname.$acl_libext"; then
12779 found_a="$dir/$libname.$acl_libext"
12782 if test "X$found_dir" != "X"; then
12783 if test -f "$dir/$libname.la"; then
12784 found_la="$dir/$libname.la"
12789 if test "X$found_dir" != "X"; then
12794 if test "X$found_dir" != "X"; then
12795 LTLIBPTHREAD="${LTLIBPTHREAD}${LTLIBPTHREAD:+ }-L$found_dir -l$name"
12796 if test "X$found_so" != "X"; then
12797 if test "$enable_rpath" = no \
12798 || test "X$found_dir" = "X/usr/$acl_libdirstem" \
12799 || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
12800 LIBPTHREAD="${LIBPTHREAD}${LIBPTHREAD:+ }$found_so"
12803 for x in $ltrpathdirs; do
12804 if test "X$x" = "X$found_dir"; then
12809 if test -z "$haveit"; then
12810 ltrpathdirs="$ltrpathdirs $found_dir"
12812 if test "$acl_hardcode_direct" = yes; then
12813 LIBPTHREAD="${LIBPTHREAD}${LIBPTHREAD:+ }$found_so"
12815 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
12816 LIBPTHREAD="${LIBPTHREAD}${LIBPTHREAD:+ }$found_so"
12818 for x in $rpathdirs; do
12819 if test "X$x" = "X$found_dir"; then
12824 if test -z "$haveit"; then
12825 rpathdirs="$rpathdirs $found_dir"
12829 for x in $LDFLAGS $LIBPTHREAD; do
12831 acl_save_prefix="$prefix"
12832 prefix="$acl_final_prefix"
12833 acl_save_exec_prefix="$exec_prefix"
12834 exec_prefix="$acl_final_exec_prefix"
12836 exec_prefix="$acl_save_exec_prefix"
12837 prefix="$acl_save_prefix"
12839 if test "X$x" = "X-L$found_dir"; then
12844 if test -z "$haveit"; then
12845 LIBPTHREAD="${LIBPTHREAD}${LIBPTHREAD:+ }-L$found_dir"
12847 if test "$acl_hardcode_minus_L" != no; then
12848 LIBPTHREAD="${LIBPTHREAD}${LIBPTHREAD:+ }$found_so"
12850 LIBPTHREAD="${LIBPTHREAD}${LIBPTHREAD:+ }-l$name"
12856 if test "X$found_a" != "X"; then
12857 LIBPTHREAD="${LIBPTHREAD}${LIBPTHREAD:+ }$found_a"
12859 LIBPTHREAD="${LIBPTHREAD}${LIBPTHREAD:+ }-L$found_dir -l$name"
12862 additional_includedir=
12863 case "$found_dir" in
12864 */$acl_libdirstem | */$acl_libdirstem/)
12865 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
12866 if test "$name" = 'pthread'; then
12867 LIBPTHREAD_PREFIX="$basedir"
12869 additional_includedir="$basedir/include"
12871 */$acl_libdirstem2 | */$acl_libdirstem2/)
12872 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
12873 if test "$name" = 'pthread'; then
12874 LIBPTHREAD_PREFIX="$basedir"
12876 additional_includedir="$basedir/include"
12879 if test "X$additional_includedir" != "X"; then
12880 if test "X$additional_includedir" != "X/usr/include"; then
12882 if test "X$additional_includedir" = "X/usr/local/include"; then
12883 if test -n "$GCC"; then
12885 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
12889 if test -z "$haveit"; then
12890 for x in $CPPFLAGS $INCPTHREAD; do
12892 acl_save_prefix="$prefix"
12893 prefix="$acl_final_prefix"
12894 acl_save_exec_prefix="$exec_prefix"
12895 exec_prefix="$acl_final_exec_prefix"
12897 exec_prefix="$acl_save_exec_prefix"
12898 prefix="$acl_save_prefix"
12900 if test "X$x" = "X-I$additional_includedir"; then
12905 if test -z "$haveit"; then
12906 if test -d "$additional_includedir"; then
12907 INCPTHREAD="${INCPTHREAD}${INCPTHREAD:+ }-I$additional_includedir"
12913 if test -n "$found_la"; then
12914 save_libdir="$libdir"
12915 case "$found_la" in
12916 */* | *\\*) . "$found_la" ;;
12917 *) . "./$found_la" ;;
12919 libdir="$save_libdir"
12920 for dep in $dependency_libs; do
12923 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
12924 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
12925 && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
12927 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
12928 || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
12929 if test -n "$GCC"; then
12931 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
12935 if test -z "$haveit"; then
12937 for x in $LDFLAGS $LIBPTHREAD; do
12939 acl_save_prefix="$prefix"
12940 prefix="$acl_final_prefix"
12941 acl_save_exec_prefix="$exec_prefix"
12942 exec_prefix="$acl_final_exec_prefix"
12944 exec_prefix="$acl_save_exec_prefix"
12945 prefix="$acl_save_prefix"
12947 if test "X$x" = "X-L$additional_libdir"; then
12952 if test -z "$haveit"; then
12953 if test -d "$additional_libdir"; then
12954 LIBPTHREAD="${LIBPTHREAD}${LIBPTHREAD:+ }-L$additional_libdir"
12958 for x in $LDFLAGS $LTLIBPTHREAD; do
12960 acl_save_prefix="$prefix"
12961 prefix="$acl_final_prefix"
12962 acl_save_exec_prefix="$exec_prefix"
12963 exec_prefix="$acl_final_exec_prefix"
12965 exec_prefix="$acl_save_exec_prefix"
12966 prefix="$acl_save_prefix"
12968 if test "X$x" = "X-L$additional_libdir"; then
12973 if test -z "$haveit"; then
12974 if test -d "$additional_libdir"; then
12975 LTLIBPTHREAD="${LTLIBPTHREAD}${LTLIBPTHREAD:+ }-L$additional_libdir"
12982 dir=`echo "X$dep" | sed -e 's/^X-R//'`
12983 if test "$enable_rpath" != no; then
12985 for x in $rpathdirs; do
12986 if test "X$x" = "X$dir"; then
12991 if test -z "$haveit"; then
12992 rpathdirs="$rpathdirs $dir"
12995 for x in $ltrpathdirs; do
12996 if test "X$x" = "X$dir"; then
13001 if test -z "$haveit"; then
13002 ltrpathdirs="$ltrpathdirs $dir"
13007 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
13010 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
13013 LIBPTHREAD="${LIBPTHREAD}${LIBPTHREAD:+ }$dep"
13014 LTLIBPTHREAD="${LTLIBPTHREAD}${LTLIBPTHREAD:+ }$dep"
13020 LIBPTHREAD="${LIBPTHREAD}${LIBPTHREAD:+ }-l$name"
13021 LTLIBPTHREAD="${LTLIBPTHREAD}${LTLIBPTHREAD:+ }-l$name"
13027 if test "X$rpathdirs" != "X"; then
13028 if test -n "$acl_hardcode_libdir_separator"; then
13030 for found_dir in $rpathdirs; do
13031 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
13033 acl_save_libdir="$libdir"
13035 eval flag=\"$acl_hardcode_libdir_flag_spec\"
13036 libdir="$acl_save_libdir"
13037 LIBPTHREAD="${LIBPTHREAD}${LIBPTHREAD:+ }$flag"
13039 for found_dir in $rpathdirs; do
13040 acl_save_libdir="$libdir"
13041 libdir="$found_dir"
13042 eval flag=\"$acl_hardcode_libdir_flag_spec\"
13043 libdir="$acl_save_libdir"
13044 LIBPTHREAD="${LIBPTHREAD}${LIBPTHREAD:+ }$flag"
13048 if test "X$ltrpathdirs" != "X"; then
13049 for found_dir in $ltrpathdirs; do
13050 LTLIBPTHREAD="${LTLIBPTHREAD}${LTLIBPTHREAD:+ }-R$found_dir"
13060 ac_save_CPPFLAGS="$CPPFLAGS"
13062 for element in $INCPTHREAD; do
13064 for x in $CPPFLAGS; do
13066 acl_save_prefix="$prefix"
13067 prefix="$acl_final_prefix"
13068 acl_save_exec_prefix="$exec_prefix"
13069 exec_prefix="$acl_final_exec_prefix"
13071 exec_prefix="$acl_save_exec_prefix"
13072 prefix="$acl_save_prefix"
13074 if test "X$x" = "X$element"; then
13079 if test -z "$haveit"; then
13080 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
13085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libpthread" >&5
13086 $as_echo_n "checking for libpthread... " >&6; }
13087 if ${ac_cv_libpthread+:} false; then :
13088 $as_echo_n "(cached) " >&6
13091 ac_save_LIBS="$LIBS"
13092 case " $LIBPTHREAD" in
13093 *" -l"*) LIBS="$LIBS $LIBPTHREAD" ;;
13094 *) LIBS="$LIBPTHREAD $LIBS" ;;
13096 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13097 /* end confdefs.h. */
13098 #include <pthread.h>
13102 pthread_mutex_lock (0);
13107 if ac_fn_c_try_link "$LINENO"; then :
13108 ac_cv_libpthread=yes
13110 ac_cv_libpthread='no'
13112 rm -f core conftest.err conftest.$ac_objext \
13113 conftest$ac_exeext conftest.$ac_ext
13114 LIBS="$ac_save_LIBS"
13117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libpthread" >&5
13118 $as_echo "$ac_cv_libpthread" >&6; }
13119 if test "$ac_cv_libpthread" = yes; then
13120 HAVE_LIBPTHREAD=yes
13122 $as_echo "#define HAVE_LIBPTHREAD 1" >>confdefs.h
13124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libpthread" >&5
13125 $as_echo_n "checking how to link with libpthread... " >&6; }
13126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBPTHREAD" >&5
13127 $as_echo "$LIBPTHREAD" >&6; }
13130 CPPFLAGS="$ac_save_CPPFLAGS"
13145 if test "$ac_cv_func_nanosleep" != "yes";then
13161 acl_save_prefix="$prefix"
13162 prefix="$acl_final_prefix"
13163 acl_save_exec_prefix="$exec_prefix"
13164 exec_prefix="$acl_final_exec_prefix"
13166 eval additional_includedir=\"$includedir\"
13167 eval additional_libdir=\"$libdir\"
13169 exec_prefix="$acl_save_exec_prefix"
13170 prefix="$acl_save_prefix"
13173 # Check whether --with-librt-prefix was given.
13174 if test "${with_librt_prefix+set}" = set; then :
13175 withval=$with_librt_prefix;
13176 if test "X$withval" = "Xno"; then
13179 if test "X$withval" = "X"; then
13181 acl_save_prefix="$prefix"
13182 prefix="$acl_final_prefix"
13183 acl_save_exec_prefix="$exec_prefix"
13184 exec_prefix="$acl_final_exec_prefix"
13186 eval additional_includedir=\"$includedir\"
13187 eval additional_libdir=\"$libdir\"
13189 exec_prefix="$acl_save_exec_prefix"
13190 prefix="$acl_save_prefix"
13193 additional_includedir="$withval/include"
13194 additional_libdir="$withval/$acl_libdirstem"
13195 if test "$acl_libdirstem2" != "$acl_libdirstem" \
13196 && ! test -d "$withval/$acl_libdirstem"; then
13197 additional_libdir="$withval/$acl_libdirstem2"
13211 names_already_handled=
13212 names_next_round='rt '
13213 while test -n "$names_next_round"; do
13214 names_this_round="$names_next_round"
13216 for name in $names_this_round; do
13218 for n in $names_already_handled; do
13219 if test "$n" = "$name"; then
13220 already_handled=yes
13224 if test -z "$already_handled"; then
13225 names_already_handled="$names_already_handled $name"
13226 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
13227 eval value=\"\$HAVE_LIB$uppername\"
13228 if test -n "$value"; then
13229 if test "$value" = yes; then
13230 eval value=\"\$LIB$uppername\"
13231 test -z "$value" || LIBRT="${LIBRT}${LIBRT:+ }$value"
13232 eval value=\"\$LTLIB$uppername\"
13233 test -z "$value" || LTLIBRT="${LTLIBRT}${LTLIBRT:+ }$value"
13242 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
13243 if test -n "$acl_shlibext"; then
13244 shrext=".$acl_shlibext" # typically: shrext=.so
13248 if test $use_additional = yes; then
13249 dir="$additional_libdir"
13250 if test -n "$acl_shlibext"; then
13251 if test -f "$dir/$libname$shrext"; then
13253 found_so="$dir/$libname$shrext"
13255 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
13256 ver=`(cd "$dir" && \
13257 for f in "$libname$shrext".*; do echo "$f"; done \
13258 | sed -e "s,^$libname$shrext\\\\.,," \
13259 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
13260 | sed 1q ) 2>/dev/null`
13261 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
13263 found_so="$dir/$libname$shrext.$ver"
13266 eval library_names=\"$acl_library_names_spec\"
13267 for f in $library_names; do
13268 if test -f "$dir/$f"; then
13277 if test "X$found_dir" = "X"; then
13278 if test -f "$dir/$libname.$acl_libext"; then
13280 found_a="$dir/$libname.$acl_libext"
13283 if test "X$found_dir" != "X"; then
13284 if test -f "$dir/$libname.la"; then
13285 found_la="$dir/$libname.la"
13289 if test "X$found_dir" = "X"; then
13290 for x in $LDFLAGS $LTLIBRT; do
13292 acl_save_prefix="$prefix"
13293 prefix="$acl_final_prefix"
13294 acl_save_exec_prefix="$exec_prefix"
13295 exec_prefix="$acl_final_exec_prefix"
13297 exec_prefix="$acl_save_exec_prefix"
13298 prefix="$acl_save_prefix"
13302 dir=`echo "X$x" | sed -e 's/^X-L//'`
13303 if test -n "$acl_shlibext"; then
13304 if test -f "$dir/$libname$shrext"; then
13306 found_so="$dir/$libname$shrext"
13308 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
13309 ver=`(cd "$dir" && \
13310 for f in "$libname$shrext".*; do echo "$f"; done \
13311 | sed -e "s,^$libname$shrext\\\\.,," \
13312 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
13313 | sed 1q ) 2>/dev/null`
13314 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
13316 found_so="$dir/$libname$shrext.$ver"
13319 eval library_names=\"$acl_library_names_spec\"
13320 for f in $library_names; do
13321 if test -f "$dir/$f"; then
13330 if test "X$found_dir" = "X"; then
13331 if test -f "$dir/$libname.$acl_libext"; then
13333 found_a="$dir/$libname.$acl_libext"
13336 if test "X$found_dir" != "X"; then
13337 if test -f "$dir/$libname.la"; then
13338 found_la="$dir/$libname.la"
13343 if test "X$found_dir" != "X"; then
13348 if test "X$found_dir" != "X"; then
13349 LTLIBRT="${LTLIBRT}${LTLIBRT:+ }-L$found_dir -l$name"
13350 if test "X$found_so" != "X"; then
13351 if test "$enable_rpath" = no \
13352 || test "X$found_dir" = "X/usr/$acl_libdirstem" \
13353 || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
13354 LIBRT="${LIBRT}${LIBRT:+ }$found_so"
13357 for x in $ltrpathdirs; do
13358 if test "X$x" = "X$found_dir"; then
13363 if test -z "$haveit"; then
13364 ltrpathdirs="$ltrpathdirs $found_dir"
13366 if test "$acl_hardcode_direct" = yes; then
13367 LIBRT="${LIBRT}${LIBRT:+ }$found_so"
13369 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
13370 LIBRT="${LIBRT}${LIBRT:+ }$found_so"
13372 for x in $rpathdirs; do
13373 if test "X$x" = "X$found_dir"; then
13378 if test -z "$haveit"; then
13379 rpathdirs="$rpathdirs $found_dir"
13383 for x in $LDFLAGS $LIBRT; do
13385 acl_save_prefix="$prefix"
13386 prefix="$acl_final_prefix"
13387 acl_save_exec_prefix="$exec_prefix"
13388 exec_prefix="$acl_final_exec_prefix"
13390 exec_prefix="$acl_save_exec_prefix"
13391 prefix="$acl_save_prefix"
13393 if test "X$x" = "X-L$found_dir"; then
13398 if test -z "$haveit"; then
13399 LIBRT="${LIBRT}${LIBRT:+ }-L$found_dir"
13401 if test "$acl_hardcode_minus_L" != no; then
13402 LIBRT="${LIBRT}${LIBRT:+ }$found_so"
13404 LIBRT="${LIBRT}${LIBRT:+ }-l$name"
13410 if test "X$found_a" != "X"; then
13411 LIBRT="${LIBRT}${LIBRT:+ }$found_a"
13413 LIBRT="${LIBRT}${LIBRT:+ }-L$found_dir -l$name"
13416 additional_includedir=
13417 case "$found_dir" in
13418 */$acl_libdirstem | */$acl_libdirstem/)
13419 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
13420 if test "$name" = 'rt'; then
13421 LIBRT_PREFIX="$basedir"
13423 additional_includedir="$basedir/include"
13425 */$acl_libdirstem2 | */$acl_libdirstem2/)
13426 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
13427 if test "$name" = 'rt'; then
13428 LIBRT_PREFIX="$basedir"
13430 additional_includedir="$basedir/include"
13433 if test "X$additional_includedir" != "X"; then
13434 if test "X$additional_includedir" != "X/usr/include"; then
13436 if test "X$additional_includedir" = "X/usr/local/include"; then
13437 if test -n "$GCC"; then
13439 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
13443 if test -z "$haveit"; then
13444 for x in $CPPFLAGS $INCRT; do
13446 acl_save_prefix="$prefix"
13447 prefix="$acl_final_prefix"
13448 acl_save_exec_prefix="$exec_prefix"
13449 exec_prefix="$acl_final_exec_prefix"
13451 exec_prefix="$acl_save_exec_prefix"
13452 prefix="$acl_save_prefix"
13454 if test "X$x" = "X-I$additional_includedir"; then
13459 if test -z "$haveit"; then
13460 if test -d "$additional_includedir"; then
13461 INCRT="${INCRT}${INCRT:+ }-I$additional_includedir"
13467 if test -n "$found_la"; then
13468 save_libdir="$libdir"
13469 case "$found_la" in
13470 */* | *\\*) . "$found_la" ;;
13471 *) . "./$found_la" ;;
13473 libdir="$save_libdir"
13474 for dep in $dependency_libs; do
13477 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
13478 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
13479 && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
13481 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
13482 || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
13483 if test -n "$GCC"; then
13485 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
13489 if test -z "$haveit"; then
13491 for x in $LDFLAGS $LIBRT; do
13493 acl_save_prefix="$prefix"
13494 prefix="$acl_final_prefix"
13495 acl_save_exec_prefix="$exec_prefix"
13496 exec_prefix="$acl_final_exec_prefix"
13498 exec_prefix="$acl_save_exec_prefix"
13499 prefix="$acl_save_prefix"
13501 if test "X$x" = "X-L$additional_libdir"; then
13506 if test -z "$haveit"; then
13507 if test -d "$additional_libdir"; then
13508 LIBRT="${LIBRT}${LIBRT:+ }-L$additional_libdir"
13512 for x in $LDFLAGS $LTLIBRT; do
13514 acl_save_prefix="$prefix"
13515 prefix="$acl_final_prefix"
13516 acl_save_exec_prefix="$exec_prefix"
13517 exec_prefix="$acl_final_exec_prefix"
13519 exec_prefix="$acl_save_exec_prefix"
13520 prefix="$acl_save_prefix"
13522 if test "X$x" = "X-L$additional_libdir"; then
13527 if test -z "$haveit"; then
13528 if test -d "$additional_libdir"; then
13529 LTLIBRT="${LTLIBRT}${LTLIBRT:+ }-L$additional_libdir"
13536 dir=`echo "X$dep" | sed -e 's/^X-R//'`
13537 if test "$enable_rpath" != no; then
13539 for x in $rpathdirs; do
13540 if test "X$x" = "X$dir"; then
13545 if test -z "$haveit"; then
13546 rpathdirs="$rpathdirs $dir"
13549 for x in $ltrpathdirs; do
13550 if test "X$x" = "X$dir"; then
13555 if test -z "$haveit"; then
13556 ltrpathdirs="$ltrpathdirs $dir"
13561 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
13564 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
13567 LIBRT="${LIBRT}${LIBRT:+ }$dep"
13568 LTLIBRT="${LTLIBRT}${LTLIBRT:+ }$dep"
13574 LIBRT="${LIBRT}${LIBRT:+ }-l$name"
13575 LTLIBRT="${LTLIBRT}${LTLIBRT:+ }-l$name"
13581 if test "X$rpathdirs" != "X"; then
13582 if test -n "$acl_hardcode_libdir_separator"; then
13584 for found_dir in $rpathdirs; do
13585 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
13587 acl_save_libdir="$libdir"
13589 eval flag=\"$acl_hardcode_libdir_flag_spec\"
13590 libdir="$acl_save_libdir"
13591 LIBRT="${LIBRT}${LIBRT:+ }$flag"
13593 for found_dir in $rpathdirs; do
13594 acl_save_libdir="$libdir"
13595 libdir="$found_dir"
13596 eval flag=\"$acl_hardcode_libdir_flag_spec\"
13597 libdir="$acl_save_libdir"
13598 LIBRT="${LIBRT}${LIBRT:+ }$flag"
13602 if test "X$ltrpathdirs" != "X"; then
13603 for found_dir in $ltrpathdirs; do
13604 LTLIBRT="${LTLIBRT}${LTLIBRT:+ }-R$found_dir"
13614 ac_save_CPPFLAGS="$CPPFLAGS"
13616 for element in $INCRT; do
13618 for x in $CPPFLAGS; do
13620 acl_save_prefix="$prefix"
13621 prefix="$acl_final_prefix"
13622 acl_save_exec_prefix="$exec_prefix"
13623 exec_prefix="$acl_final_exec_prefix"
13625 exec_prefix="$acl_save_exec_prefix"
13626 prefix="$acl_save_prefix"
13628 if test "X$x" = "X$element"; then
13633 if test -z "$haveit"; then
13634 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
13639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for librt" >&5
13640 $as_echo_n "checking for librt... " >&6; }
13641 if ${ac_cv_librt+:} false; then :
13642 $as_echo_n "(cached) " >&6
13645 ac_save_LIBS="$LIBS"
13647 *" -l"*) LIBS="$LIBS $LIBRT" ;;
13648 *) LIBS="$LIBRT $LIBS" ;;
13650 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13651 /* end confdefs.h. */
13661 if ac_fn_c_try_link "$LINENO"; then :
13666 rm -f core conftest.err conftest.$ac_objext \
13667 conftest$ac_exeext conftest.$ac_ext
13668 LIBS="$ac_save_LIBS"
13671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_librt" >&5
13672 $as_echo "$ac_cv_librt" >&6; }
13673 if test "$ac_cv_librt" = yes; then
13676 $as_echo "#define HAVE_LIBRT 1" >>confdefs.h
13678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with librt" >&5
13679 $as_echo_n "checking how to link with librt... " >&6; }
13680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBRT" >&5
13681 $as_echo "$LIBRT" >&6; }
13684 CPPFLAGS="$ac_save_CPPFLAGS"
13696 gnutls_needs_librt=yes
13699 if test "$ac_cv_func_clock_gettime" != "yes";then
13715 acl_save_prefix="$prefix"
13716 prefix="$acl_final_prefix"
13717 acl_save_exec_prefix="$exec_prefix"
13718 exec_prefix="$acl_final_exec_prefix"
13720 eval additional_includedir=\"$includedir\"
13721 eval additional_libdir=\"$libdir\"
13723 exec_prefix="$acl_save_exec_prefix"
13724 prefix="$acl_save_prefix"
13727 # Check whether --with-librt-prefix was given.
13728 if test "${with_librt_prefix+set}" = set; then :
13729 withval=$with_librt_prefix;
13730 if test "X$withval" = "Xno"; then
13733 if test "X$withval" = "X"; then
13735 acl_save_prefix="$prefix"
13736 prefix="$acl_final_prefix"
13737 acl_save_exec_prefix="$exec_prefix"
13738 exec_prefix="$acl_final_exec_prefix"
13740 eval additional_includedir=\"$includedir\"
13741 eval additional_libdir=\"$libdir\"
13743 exec_prefix="$acl_save_exec_prefix"
13744 prefix="$acl_save_prefix"
13747 additional_includedir="$withval/include"
13748 additional_libdir="$withval/$acl_libdirstem"
13749 if test "$acl_libdirstem2" != "$acl_libdirstem" \
13750 && ! test -d "$withval/$acl_libdirstem"; then
13751 additional_libdir="$withval/$acl_libdirstem2"
13765 names_already_handled=
13766 names_next_round='rt '
13767 while test -n "$names_next_round"; do
13768 names_this_round="$names_next_round"
13770 for name in $names_this_round; do
13772 for n in $names_already_handled; do
13773 if test "$n" = "$name"; then
13774 already_handled=yes
13778 if test -z "$already_handled"; then
13779 names_already_handled="$names_already_handled $name"
13780 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
13781 eval value=\"\$HAVE_LIB$uppername\"
13782 if test -n "$value"; then
13783 if test "$value" = yes; then
13784 eval value=\"\$LIB$uppername\"
13785 test -z "$value" || LIBRT="${LIBRT}${LIBRT:+ }$value"
13786 eval value=\"\$LTLIB$uppername\"
13787 test -z "$value" || LTLIBRT="${LTLIBRT}${LTLIBRT:+ }$value"
13796 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
13797 if test -n "$acl_shlibext"; then
13798 shrext=".$acl_shlibext" # typically: shrext=.so
13802 if test $use_additional = yes; then
13803 dir="$additional_libdir"
13804 if test -n "$acl_shlibext"; then
13805 if test -f "$dir/$libname$shrext"; then
13807 found_so="$dir/$libname$shrext"
13809 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
13810 ver=`(cd "$dir" && \
13811 for f in "$libname$shrext".*; do echo "$f"; done \
13812 | sed -e "s,^$libname$shrext\\\\.,," \
13813 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
13814 | sed 1q ) 2>/dev/null`
13815 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
13817 found_so="$dir/$libname$shrext.$ver"
13820 eval library_names=\"$acl_library_names_spec\"
13821 for f in $library_names; do
13822 if test -f "$dir/$f"; then
13831 if test "X$found_dir" = "X"; then
13832 if test -f "$dir/$libname.$acl_libext"; then
13834 found_a="$dir/$libname.$acl_libext"
13837 if test "X$found_dir" != "X"; then
13838 if test -f "$dir/$libname.la"; then
13839 found_la="$dir/$libname.la"
13843 if test "X$found_dir" = "X"; then
13844 for x in $LDFLAGS $LTLIBRT; do
13846 acl_save_prefix="$prefix"
13847 prefix="$acl_final_prefix"
13848 acl_save_exec_prefix="$exec_prefix"
13849 exec_prefix="$acl_final_exec_prefix"
13851 exec_prefix="$acl_save_exec_prefix"
13852 prefix="$acl_save_prefix"
13856 dir=`echo "X$x" | sed -e 's/^X-L//'`
13857 if test -n "$acl_shlibext"; then
13858 if test -f "$dir/$libname$shrext"; then
13860 found_so="$dir/$libname$shrext"
13862 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
13863 ver=`(cd "$dir" && \
13864 for f in "$libname$shrext".*; do echo "$f"; done \
13865 | sed -e "s,^$libname$shrext\\\\.,," \
13866 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
13867 | sed 1q ) 2>/dev/null`
13868 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
13870 found_so="$dir/$libname$shrext.$ver"
13873 eval library_names=\"$acl_library_names_spec\"
13874 for f in $library_names; do
13875 if test -f "$dir/$f"; then
13884 if test "X$found_dir" = "X"; then
13885 if test -f "$dir/$libname.$acl_libext"; then
13887 found_a="$dir/$libname.$acl_libext"
13890 if test "X$found_dir" != "X"; then
13891 if test -f "$dir/$libname.la"; then
13892 found_la="$dir/$libname.la"
13897 if test "X$found_dir" != "X"; then
13902 if test "X$found_dir" != "X"; then
13903 LTLIBRT="${LTLIBRT}${LTLIBRT:+ }-L$found_dir -l$name"
13904 if test "X$found_so" != "X"; then
13905 if test "$enable_rpath" = no \
13906 || test "X$found_dir" = "X/usr/$acl_libdirstem" \
13907 || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
13908 LIBRT="${LIBRT}${LIBRT:+ }$found_so"
13911 for x in $ltrpathdirs; do
13912 if test "X$x" = "X$found_dir"; then
13917 if test -z "$haveit"; then
13918 ltrpathdirs="$ltrpathdirs $found_dir"
13920 if test "$acl_hardcode_direct" = yes; then
13921 LIBRT="${LIBRT}${LIBRT:+ }$found_so"
13923 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
13924 LIBRT="${LIBRT}${LIBRT:+ }$found_so"
13926 for x in $rpathdirs; do
13927 if test "X$x" = "X$found_dir"; then
13932 if test -z "$haveit"; then
13933 rpathdirs="$rpathdirs $found_dir"
13937 for x in $LDFLAGS $LIBRT; do
13939 acl_save_prefix="$prefix"
13940 prefix="$acl_final_prefix"
13941 acl_save_exec_prefix="$exec_prefix"
13942 exec_prefix="$acl_final_exec_prefix"
13944 exec_prefix="$acl_save_exec_prefix"
13945 prefix="$acl_save_prefix"
13947 if test "X$x" = "X-L$found_dir"; then
13952 if test -z "$haveit"; then
13953 LIBRT="${LIBRT}${LIBRT:+ }-L$found_dir"
13955 if test "$acl_hardcode_minus_L" != no; then
13956 LIBRT="${LIBRT}${LIBRT:+ }$found_so"
13958 LIBRT="${LIBRT}${LIBRT:+ }-l$name"
13964 if test "X$found_a" != "X"; then
13965 LIBRT="${LIBRT}${LIBRT:+ }$found_a"
13967 LIBRT="${LIBRT}${LIBRT:+ }-L$found_dir -l$name"
13970 additional_includedir=
13971 case "$found_dir" in
13972 */$acl_libdirstem | */$acl_libdirstem/)
13973 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
13974 if test "$name" = 'rt'; then
13975 LIBRT_PREFIX="$basedir"
13977 additional_includedir="$basedir/include"
13979 */$acl_libdirstem2 | */$acl_libdirstem2/)
13980 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
13981 if test "$name" = 'rt'; then
13982 LIBRT_PREFIX="$basedir"
13984 additional_includedir="$basedir/include"
13987 if test "X$additional_includedir" != "X"; then
13988 if test "X$additional_includedir" != "X/usr/include"; then
13990 if test "X$additional_includedir" = "X/usr/local/include"; then
13991 if test -n "$GCC"; then
13993 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
13997 if test -z "$haveit"; then
13998 for x in $CPPFLAGS $INCRT; do
14000 acl_save_prefix="$prefix"
14001 prefix="$acl_final_prefix"
14002 acl_save_exec_prefix="$exec_prefix"
14003 exec_prefix="$acl_final_exec_prefix"
14005 exec_prefix="$acl_save_exec_prefix"
14006 prefix="$acl_save_prefix"
14008 if test "X$x" = "X-I$additional_includedir"; then
14013 if test -z "$haveit"; then
14014 if test -d "$additional_includedir"; then
14015 INCRT="${INCRT}${INCRT:+ }-I$additional_includedir"
14021 if test -n "$found_la"; then
14022 save_libdir="$libdir"
14023 case "$found_la" in
14024 */* | *\\*) . "$found_la" ;;
14025 *) . "./$found_la" ;;
14027 libdir="$save_libdir"
14028 for dep in $dependency_libs; do
14031 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
14032 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
14033 && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
14035 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
14036 || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
14037 if test -n "$GCC"; then
14039 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
14043 if test -z "$haveit"; then
14045 for x in $LDFLAGS $LIBRT; do
14047 acl_save_prefix="$prefix"
14048 prefix="$acl_final_prefix"
14049 acl_save_exec_prefix="$exec_prefix"
14050 exec_prefix="$acl_final_exec_prefix"
14052 exec_prefix="$acl_save_exec_prefix"
14053 prefix="$acl_save_prefix"
14055 if test "X$x" = "X-L$additional_libdir"; then
14060 if test -z "$haveit"; then
14061 if test -d "$additional_libdir"; then
14062 LIBRT="${LIBRT}${LIBRT:+ }-L$additional_libdir"
14066 for x in $LDFLAGS $LTLIBRT; do
14068 acl_save_prefix="$prefix"
14069 prefix="$acl_final_prefix"
14070 acl_save_exec_prefix="$exec_prefix"
14071 exec_prefix="$acl_final_exec_prefix"
14073 exec_prefix="$acl_save_exec_prefix"
14074 prefix="$acl_save_prefix"
14076 if test "X$x" = "X-L$additional_libdir"; then
14081 if test -z "$haveit"; then
14082 if test -d "$additional_libdir"; then
14083 LTLIBRT="${LTLIBRT}${LTLIBRT:+ }-L$additional_libdir"
14090 dir=`echo "X$dep" | sed -e 's/^X-R//'`
14091 if test "$enable_rpath" != no; then
14093 for x in $rpathdirs; do
14094 if test "X$x" = "X$dir"; then
14099 if test -z "$haveit"; then
14100 rpathdirs="$rpathdirs $dir"
14103 for x in $ltrpathdirs; do
14104 if test "X$x" = "X$dir"; then
14109 if test -z "$haveit"; then
14110 ltrpathdirs="$ltrpathdirs $dir"
14115 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
14118 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
14121 LIBRT="${LIBRT}${LIBRT:+ }$dep"
14122 LTLIBRT="${LTLIBRT}${LTLIBRT:+ }$dep"
14128 LIBRT="${LIBRT}${LIBRT:+ }-l$name"
14129 LTLIBRT="${LTLIBRT}${LTLIBRT:+ }-l$name"
14135 if test "X$rpathdirs" != "X"; then
14136 if test -n "$acl_hardcode_libdir_separator"; then
14138 for found_dir in $rpathdirs; do
14139 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
14141 acl_save_libdir="$libdir"
14143 eval flag=\"$acl_hardcode_libdir_flag_spec\"
14144 libdir="$acl_save_libdir"
14145 LIBRT="${LIBRT}${LIBRT:+ }$flag"
14147 for found_dir in $rpathdirs; do
14148 acl_save_libdir="$libdir"
14149 libdir="$found_dir"
14150 eval flag=\"$acl_hardcode_libdir_flag_spec\"
14151 libdir="$acl_save_libdir"
14152 LIBRT="${LIBRT}${LIBRT:+ }$flag"
14156 if test "X$ltrpathdirs" != "X"; then
14157 for found_dir in $ltrpathdirs; do
14158 LTLIBRT="${LTLIBRT}${LTLIBRT:+ }-R$found_dir"
14168 ac_save_CPPFLAGS="$CPPFLAGS"
14170 for element in $INCRT; do
14172 for x in $CPPFLAGS; do
14174 acl_save_prefix="$prefix"
14175 prefix="$acl_final_prefix"
14176 acl_save_exec_prefix="$exec_prefix"
14177 exec_prefix="$acl_final_exec_prefix"
14179 exec_prefix="$acl_save_exec_prefix"
14180 prefix="$acl_save_prefix"
14182 if test "X$x" = "X$element"; then
14187 if test -z "$haveit"; then
14188 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
14193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for librt" >&5
14194 $as_echo_n "checking for librt... " >&6; }
14195 if ${ac_cv_librt+:} false; then :
14196 $as_echo_n "(cached) " >&6
14199 ac_save_LIBS="$LIBS"
14201 *" -l"*) LIBS="$LIBS $LIBRT" ;;
14202 *) LIBS="$LIBRT $LIBS" ;;
14204 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14205 /* end confdefs.h. */
14210 clock_gettime (0, 0);
14215 if ac_fn_c_try_link "$LINENO"; then :
14220 rm -f core conftest.err conftest.$ac_objext \
14221 conftest$ac_exeext conftest.$ac_ext
14222 LIBS="$ac_save_LIBS"
14225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_librt" >&5
14226 $as_echo "$ac_cv_librt" >&6; }
14227 if test "$ac_cv_librt" = yes; then
14230 $as_echo "#define HAVE_LIBRT 1" >>confdefs.h
14232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with librt" >&5
14233 $as_echo_n "checking how to link with librt... " >&6; }
14234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBRT" >&5
14235 $as_echo "$LIBRT" >&6; }
14238 CPPFLAGS="$ac_save_CPPFLAGS"
14250 gnutls_needs_librt=yes
14254 if test "$ac_cv_func_iconv" != "yes";then
14270 acl_save_prefix="$prefix"
14271 prefix="$acl_final_prefix"
14272 acl_save_exec_prefix="$exec_prefix"
14273 exec_prefix="$acl_final_exec_prefix"
14275 eval additional_includedir=\"$includedir\"
14276 eval additional_libdir=\"$libdir\"
14278 exec_prefix="$acl_save_exec_prefix"
14279 prefix="$acl_save_prefix"
14282 # Check whether --with-libiconv-prefix was given.
14283 if test "${with_libiconv_prefix+set}" = set; then :
14284 withval=$with_libiconv_prefix;
14285 if test "X$withval" = "Xno"; then
14288 if test "X$withval" = "X"; then
14290 acl_save_prefix="$prefix"
14291 prefix="$acl_final_prefix"
14292 acl_save_exec_prefix="$exec_prefix"
14293 exec_prefix="$acl_final_exec_prefix"
14295 eval additional_includedir=\"$includedir\"
14296 eval additional_libdir=\"$libdir\"
14298 exec_prefix="$acl_save_exec_prefix"
14299 prefix="$acl_save_prefix"
14302 additional_includedir="$withval/include"
14303 additional_libdir="$withval/$acl_libdirstem"
14304 if test "$acl_libdirstem2" != "$acl_libdirstem" \
14305 && ! test -d "$withval/$acl_libdirstem"; then
14306 additional_libdir="$withval/$acl_libdirstem2"
14320 names_already_handled=
14321 names_next_round='iconv '
14322 while test -n "$names_next_round"; do
14323 names_this_round="$names_next_round"
14325 for name in $names_this_round; do
14327 for n in $names_already_handled; do
14328 if test "$n" = "$name"; then
14329 already_handled=yes
14333 if test -z "$already_handled"; then
14334 names_already_handled="$names_already_handled $name"
14335 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
14336 eval value=\"\$HAVE_LIB$uppername\"
14337 if test -n "$value"; then
14338 if test "$value" = yes; then
14339 eval value=\"\$LIB$uppername\"
14340 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
14341 eval value=\"\$LTLIB$uppername\"
14342 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
14351 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
14352 if test -n "$acl_shlibext"; then
14353 shrext=".$acl_shlibext" # typically: shrext=.so
14357 if test $use_additional = yes; then
14358 dir="$additional_libdir"
14359 if test -n "$acl_shlibext"; then
14360 if test -f "$dir/$libname$shrext"; then
14362 found_so="$dir/$libname$shrext"
14364 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
14365 ver=`(cd "$dir" && \
14366 for f in "$libname$shrext".*; do echo "$f"; done \
14367 | sed -e "s,^$libname$shrext\\\\.,," \
14368 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
14369 | sed 1q ) 2>/dev/null`
14370 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
14372 found_so="$dir/$libname$shrext.$ver"
14375 eval library_names=\"$acl_library_names_spec\"
14376 for f in $library_names; do
14377 if test -f "$dir/$f"; then
14386 if test "X$found_dir" = "X"; then
14387 if test -f "$dir/$libname.$acl_libext"; then
14389 found_a="$dir/$libname.$acl_libext"
14392 if test "X$found_dir" != "X"; then
14393 if test -f "$dir/$libname.la"; then
14394 found_la="$dir/$libname.la"
14398 if test "X$found_dir" = "X"; then
14399 for x in $LDFLAGS $LTLIBICONV; do
14401 acl_save_prefix="$prefix"
14402 prefix="$acl_final_prefix"
14403 acl_save_exec_prefix="$exec_prefix"
14404 exec_prefix="$acl_final_exec_prefix"
14406 exec_prefix="$acl_save_exec_prefix"
14407 prefix="$acl_save_prefix"
14411 dir=`echo "X$x" | sed -e 's/^X-L//'`
14412 if test -n "$acl_shlibext"; then
14413 if test -f "$dir/$libname$shrext"; then
14415 found_so="$dir/$libname$shrext"
14417 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
14418 ver=`(cd "$dir" && \
14419 for f in "$libname$shrext".*; do echo "$f"; done \
14420 | sed -e "s,^$libname$shrext\\\\.,," \
14421 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
14422 | sed 1q ) 2>/dev/null`
14423 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
14425 found_so="$dir/$libname$shrext.$ver"
14428 eval library_names=\"$acl_library_names_spec\"
14429 for f in $library_names; do
14430 if test -f "$dir/$f"; then
14439 if test "X$found_dir" = "X"; then
14440 if test -f "$dir/$libname.$acl_libext"; then
14442 found_a="$dir/$libname.$acl_libext"
14445 if test "X$found_dir" != "X"; then
14446 if test -f "$dir/$libname.la"; then
14447 found_la="$dir/$libname.la"
14452 if test "X$found_dir" != "X"; then
14457 if test "X$found_dir" != "X"; then
14458 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
14459 if test "X$found_so" != "X"; then
14460 if test "$enable_rpath" = no \
14461 || test "X$found_dir" = "X/usr/$acl_libdirstem" \
14462 || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
14463 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
14466 for x in $ltrpathdirs; do
14467 if test "X$x" = "X$found_dir"; then
14472 if test -z "$haveit"; then
14473 ltrpathdirs="$ltrpathdirs $found_dir"
14475 if test "$acl_hardcode_direct" = yes; then
14476 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
14478 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
14479 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
14481 for x in $rpathdirs; do
14482 if test "X$x" = "X$found_dir"; then
14487 if test -z "$haveit"; then
14488 rpathdirs="$rpathdirs $found_dir"
14492 for x in $LDFLAGS $LIBICONV; do
14494 acl_save_prefix="$prefix"
14495 prefix="$acl_final_prefix"
14496 acl_save_exec_prefix="$exec_prefix"
14497 exec_prefix="$acl_final_exec_prefix"
14499 exec_prefix="$acl_save_exec_prefix"
14500 prefix="$acl_save_prefix"
14502 if test "X$x" = "X-L$found_dir"; then
14507 if test -z "$haveit"; then
14508 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
14510 if test "$acl_hardcode_minus_L" != no; then
14511 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
14513 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
14519 if test "X$found_a" != "X"; then
14520 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
14522 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
14525 additional_includedir=
14526 case "$found_dir" in
14527 */$acl_libdirstem | */$acl_libdirstem/)
14528 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
14529 if test "$name" = 'iconv'; then
14530 LIBICONV_PREFIX="$basedir"
14532 additional_includedir="$basedir/include"
14534 */$acl_libdirstem2 | */$acl_libdirstem2/)
14535 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
14536 if test "$name" = 'iconv'; then
14537 LIBICONV_PREFIX="$basedir"
14539 additional_includedir="$basedir/include"
14542 if test "X$additional_includedir" != "X"; then
14543 if test "X$additional_includedir" != "X/usr/include"; then
14545 if test "X$additional_includedir" = "X/usr/local/include"; then
14546 if test -n "$GCC"; then
14548 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
14552 if test -z "$haveit"; then
14553 for x in $CPPFLAGS $INCICONV; do
14555 acl_save_prefix="$prefix"
14556 prefix="$acl_final_prefix"
14557 acl_save_exec_prefix="$exec_prefix"
14558 exec_prefix="$acl_final_exec_prefix"
14560 exec_prefix="$acl_save_exec_prefix"
14561 prefix="$acl_save_prefix"
14563 if test "X$x" = "X-I$additional_includedir"; then
14568 if test -z "$haveit"; then
14569 if test -d "$additional_includedir"; then
14570 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
14576 if test -n "$found_la"; then
14577 save_libdir="$libdir"
14578 case "$found_la" in
14579 */* | *\\*) . "$found_la" ;;
14580 *) . "./$found_la" ;;
14582 libdir="$save_libdir"
14583 for dep in $dependency_libs; do
14586 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
14587 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
14588 && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
14590 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
14591 || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
14592 if test -n "$GCC"; then
14594 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
14598 if test -z "$haveit"; then
14600 for x in $LDFLAGS $LIBICONV; do
14602 acl_save_prefix="$prefix"
14603 prefix="$acl_final_prefix"
14604 acl_save_exec_prefix="$exec_prefix"
14605 exec_prefix="$acl_final_exec_prefix"
14607 exec_prefix="$acl_save_exec_prefix"
14608 prefix="$acl_save_prefix"
14610 if test "X$x" = "X-L$additional_libdir"; then
14615 if test -z "$haveit"; then
14616 if test -d "$additional_libdir"; then
14617 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
14621 for x in $LDFLAGS $LTLIBICONV; do
14623 acl_save_prefix="$prefix"
14624 prefix="$acl_final_prefix"
14625 acl_save_exec_prefix="$exec_prefix"
14626 exec_prefix="$acl_final_exec_prefix"
14628 exec_prefix="$acl_save_exec_prefix"
14629 prefix="$acl_save_prefix"
14631 if test "X$x" = "X-L$additional_libdir"; then
14636 if test -z "$haveit"; then
14637 if test -d "$additional_libdir"; then
14638 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
14645 dir=`echo "X$dep" | sed -e 's/^X-R//'`
14646 if test "$enable_rpath" != no; then
14648 for x in $rpathdirs; do
14649 if test "X$x" = "X$dir"; then
14654 if test -z "$haveit"; then
14655 rpathdirs="$rpathdirs $dir"
14658 for x in $ltrpathdirs; do
14659 if test "X$x" = "X$dir"; then
14664 if test -z "$haveit"; then
14665 ltrpathdirs="$ltrpathdirs $dir"
14670 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
14673 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
14676 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
14677 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
14683 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
14684 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
14690 if test "X$rpathdirs" != "X"; then
14691 if test -n "$acl_hardcode_libdir_separator"; then
14693 for found_dir in $rpathdirs; do
14694 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
14696 acl_save_libdir="$libdir"
14698 eval flag=\"$acl_hardcode_libdir_flag_spec\"
14699 libdir="$acl_save_libdir"
14700 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
14702 for found_dir in $rpathdirs; do
14703 acl_save_libdir="$libdir"
14704 libdir="$found_dir"
14705 eval flag=\"$acl_hardcode_libdir_flag_spec\"
14706 libdir="$acl_save_libdir"
14707 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
14711 if test "X$ltrpathdirs" != "X"; then
14712 for found_dir in $ltrpathdirs; do
14713 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
14723 ac_save_CPPFLAGS="$CPPFLAGS"
14725 for element in $INCICONV; do
14727 for x in $CPPFLAGS; do
14729 acl_save_prefix="$prefix"
14730 prefix="$acl_final_prefix"
14731 acl_save_exec_prefix="$exec_prefix"
14732 exec_prefix="$acl_final_exec_prefix"
14734 exec_prefix="$acl_save_exec_prefix"
14735 prefix="$acl_save_prefix"
14737 if test "X$x" = "X$element"; then
14742 if test -z "$haveit"; then
14743 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
14748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libiconv" >&5
14749 $as_echo_n "checking for libiconv... " >&6; }
14750 if ${ac_cv_libiconv+:} false; then :
14751 $as_echo_n "(cached) " >&6
14754 ac_save_LIBS="$LIBS"
14755 case " $LIBICONV" in
14756 *" -l"*) LIBS="$LIBS $LIBICONV" ;;
14757 *) LIBS="$LIBICONV $LIBS" ;;
14759 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14760 /* end confdefs.h. */
14765 iconv (0, 0, 0, 0, 0);
14770 if ac_fn_c_try_link "$LINENO"; then :
14773 ac_cv_libiconv='no'
14775 rm -f core conftest.err conftest.$ac_objext \
14776 conftest$ac_exeext conftest.$ac_ext
14777 LIBS="$ac_save_LIBS"
14780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libiconv" >&5
14781 $as_echo "$ac_cv_libiconv" >&6; }
14782 if test "$ac_cv_libiconv" = yes; then
14785 $as_echo "#define HAVE_LIBICONV 1" >>confdefs.h
14787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
14788 $as_echo_n "checking how to link with libiconv... " >&6; }
14789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
14790 $as_echo "$LIBICONV" >&6; }
14793 CPPFLAGS="$ac_save_CPPFLAGS"
14805 if test "$HAVE_LIBICONV" = "yes";then
14806 ac_have_unicode=yes
14809 ac_have_unicode=yes
14812 if test "$ac_have_unicode" != "yes";then
14813 if test "$have_win" = "yes";then
14814 ac_have_unicode=yes
14823 LIBC_FATAL_STDERR_=1
14824 export LIBC_FATAL_STDERR_
14826 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
14827 if test "x$ac_cv_type_size_t" = xyes; then :
14831 cat >>confdefs.h <<_ACEOF
14832 #define size_t unsigned int
14837 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
14838 # for constant arguments. Useless!
14839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
14840 $as_echo_n "checking for working alloca.h... " >&6; }
14841 if ${ac_cv_working_alloca_h+:} false; then :
14842 $as_echo_n "(cached) " >&6
14844 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14845 /* end confdefs.h. */
14846 #include <alloca.h>
14850 char *p = (char *) alloca (2 * sizeof (int));
14856 if ac_fn_c_try_link "$LINENO"; then :
14857 ac_cv_working_alloca_h=yes
14859 ac_cv_working_alloca_h=no
14861 rm -f core conftest.err conftest.$ac_objext \
14862 conftest$ac_exeext conftest.$ac_ext
14864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
14865 $as_echo "$ac_cv_working_alloca_h" >&6; }
14866 if test $ac_cv_working_alloca_h = yes; then
14868 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
14872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
14873 $as_echo_n "checking for alloca... " >&6; }
14874 if ${ac_cv_func_alloca_works+:} false; then :
14875 $as_echo_n "(cached) " >&6
14877 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14878 /* end confdefs.h. */
14880 # define alloca __builtin_alloca
14883 # include <malloc.h>
14884 # define alloca _alloca
14886 # ifdef HAVE_ALLOCA_H
14887 # include <alloca.h>
14892 # ifndef alloca /* predefined by HP cc +Olibcalls */
14893 void *alloca (size_t);
14903 char *p = (char *) alloca (1);
14909 if ac_fn_c_try_link "$LINENO"; then :
14910 ac_cv_func_alloca_works=yes
14912 ac_cv_func_alloca_works=no
14914 rm -f core conftest.err conftest.$ac_objext \
14915 conftest$ac_exeext conftest.$ac_ext
14917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
14918 $as_echo "$ac_cv_func_alloca_works" >&6; }
14920 if test $ac_cv_func_alloca_works = yes; then
14922 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
14925 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
14926 # that cause trouble. Some versions do not even contain alloca or
14927 # contain a buggy version. If you still want to use their alloca,
14928 # use ar to extract alloca.o from them instead of compiling alloca.c.
14934 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
14936 $as_echo "#define C_ALLOCA 1" >>confdefs.h
14939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
14940 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
14941 if ${ac_cv_os_cray+:} false; then :
14942 $as_echo_n "(cached) " >&6
14944 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14945 /* end confdefs.h. */
14946 #if defined CRAY && ! defined CRAY2
14953 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14954 $EGREP "webecray" >/dev/null 2>&1; then :
14962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
14963 $as_echo "$ac_cv_os_cray" >&6; }
14964 if test $ac_cv_os_cray = yes; then
14965 for ac_func in _getb67 GETB67 getb67; do
14966 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14967 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
14968 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
14970 cat >>confdefs.h <<_ACEOF
14971 #define CRAY_STACKSEG_END $ac_func
14980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
14981 $as_echo_n "checking stack direction for C alloca... " >&6; }
14982 if ${ac_cv_c_stack_direction+:} false; then :
14983 $as_echo_n "(cached) " >&6
14985 if test "$cross_compiling" = yes; then :
14986 ac_cv_c_stack_direction=0
14988 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14989 /* end confdefs.h. */
14990 $ac_includes_default
14992 find_stack_direction (int *addr, int depth)
14994 int dir, dummy = 0;
14997 *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
14998 dir = depth ? find_stack_direction (addr, depth - 1) : 0;
14999 return dir + dummy;
15003 main (int argc, char **argv)
15005 return find_stack_direction (0, argc + !argv + 20) < 0;
15008 if ac_fn_c_try_run "$LINENO"; then :
15009 ac_cv_c_stack_direction=1
15011 ac_cv_c_stack_direction=-1
15013 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15014 conftest.$ac_objext conftest.beam conftest.$ac_ext
15018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
15019 $as_echo "$ac_cv_c_stack_direction" >&6; }
15020 cat >>confdefs.h <<_ACEOF
15021 #define STACK_DIRECTION $ac_cv_c_stack_direction
15027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
15028 $as_echo_n "checking for C/C++ restrict keyword... " >&6; }
15029 if ${ac_cv_c_restrict+:} false; then :
15030 $as_echo_n "(cached) " >&6
15032 ac_cv_c_restrict=no
15033 # The order here caters to the fact that C++ does not require restrict.
15034 for ac_kw in __restrict __restrict__ _Restrict restrict; do
15035 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15036 /* end confdefs.h. */
15037 typedef int * int_ptr;
15038 int foo (int_ptr $ac_kw ip) {
15045 int * $ac_kw t = s;
15052 if ac_fn_c_try_compile "$LINENO"; then :
15053 ac_cv_c_restrict=$ac_kw
15055 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15056 test "$ac_cv_c_restrict" != no && break
15060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
15061 $as_echo "$ac_cv_c_restrict" >&6; }
15063 case $ac_cv_c_restrict in
15065 no) $as_echo "#define restrict /**/" >>confdefs.h
15067 *) cat >>confdefs.h <<_ACEOF
15068 #define restrict $ac_cv_c_restrict
15075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the preprocessor supports include_next" >&5
15076 $as_echo_n "checking whether the preprocessor supports include_next... " >&6; }
15077 if ${gl_cv_have_include_next+:} false; then :
15078 $as_echo_n "(cached) " >&6
15080 rm -rf conftestd1a conftestd1b conftestd2
15081 mkdir conftestd1a conftestd1b conftestd2
15082 cat <<EOF > conftestd1a/conftest.h
15083 #define DEFINED_IN_CONFTESTD1
15084 #include_next <conftest.h>
15085 #ifdef DEFINED_IN_CONFTESTD2
15088 #error "include_next doesn't work"
15091 cat <<EOF > conftestd1b/conftest.h
15092 #define DEFINED_IN_CONFTESTD1
15094 #include_next <conftest.h>
15095 #ifdef DEFINED_IN_CONFTESTD2
15098 #error "include_next doesn't work"
15101 cat <<EOF > conftestd2/conftest.h
15102 #ifndef DEFINED_IN_CONFTESTD1
15103 #error "include_next test doesn't work"
15105 #define DEFINED_IN_CONFTESTD2
15107 gl_save_CPPFLAGS="$CPPFLAGS"
15108 CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1b -Iconftestd2"
15109 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15110 /* end confdefs.h. */
15111 #include <conftest.h>
15113 if ac_fn_c_try_compile "$LINENO"; then :
15114 gl_cv_have_include_next=yes
15116 CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1a -Iconftestd2"
15117 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15118 /* end confdefs.h. */
15119 #include <conftest.h>
15121 if ac_fn_c_try_compile "$LINENO"; then :
15122 gl_cv_have_include_next=buggy
15124 gl_cv_have_include_next=no
15126 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15129 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15130 CPPFLAGS="$gl_save_CPPFLAGS"
15131 rm -rf conftestd1a conftestd1b conftestd2
15134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_have_include_next" >&5
15135 $as_echo "$gl_cv_have_include_next" >&6; }
15136 PRAGMA_SYSTEM_HEADER=
15137 if test $gl_cv_have_include_next = yes; then
15138 INCLUDE_NEXT=include_next
15139 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next
15140 if test -n "$GCC"; then
15141 PRAGMA_SYSTEM_HEADER='#pragma GCC system_header'
15144 if test $gl_cv_have_include_next = buggy; then
15145 INCLUDE_NEXT=include
15146 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next
15148 INCLUDE_NEXT=include
15149 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include
15155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system header files limit the line length" >&5
15156 $as_echo_n "checking whether system header files limit the line length... " >&6; }
15157 if ${gl_cv_pragma_columns+:} false; then :
15158 $as_echo_n "(cached) " >&6
15160 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15161 /* end confdefs.h. */
15168 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15169 $EGREP "choke me" >/dev/null 2>&1; then :
15170 gl_cv_pragma_columns=yes
15172 gl_cv_pragma_columns=no
15178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_pragma_columns" >&5
15179 $as_echo "$gl_cv_pragma_columns" >&6; }
15180 if test $gl_cv_pragma_columns = yes; then
15181 PRAGMA_COLUMNS="#pragma COLUMNS 10000"
15189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for complete errno.h" >&5
15190 $as_echo_n "checking for complete errno.h... " >&6; }
15191 if ${gl_cv_header_errno_h_complete+:} false; then :
15192 $as_echo_n "(cached) " >&6
15195 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15196 /* end confdefs.h. */
15199 #if !defined ETXTBSY
15202 #if !defined ENOMSG
15208 #if !defined ENOLINK
15211 #if !defined EPROTO
15214 #if !defined EMULTIHOP
15217 #if !defined EBADMSG
15220 #if !defined EOVERFLOW
15223 #if !defined ENOTSUP
15226 #if !defined ENETRESET
15229 #if !defined ECONNABORTED
15232 #if !defined ESTALE
15235 #if !defined EDQUOT
15238 #if !defined ECANCELED
15241 #if !defined EOWNERDEAD
15244 #if !defined ENOTRECOVERABLE
15247 #if !defined EILSEQ
15252 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15253 $EGREP "booboo" >/dev/null 2>&1; then :
15254 gl_cv_header_errno_h_complete=no
15256 gl_cv_header_errno_h_complete=yes
15262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_complete" >&5
15263 $as_echo "$gl_cv_header_errno_h_complete" >&6; }
15264 if test $gl_cv_header_errno_h_complete = yes; then
15275 if test $gl_cv_have_include_next = yes; then
15276 gl_cv_next_errno_h='<'errno.h'>'
15278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <errno.h>" >&5
15279 $as_echo_n "checking absolute name of <errno.h>... " >&6; }
15280 if ${gl_cv_next_errno_h+:} false; then :
15281 $as_echo_n "(cached) " >&6
15286 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15287 /* end confdefs.h. */
15291 aix*) gl_absname_cpp="$ac_cpp -C" ;;
15292 *) gl_absname_cpp="$ac_cpp" ;;
15297 gl_dirsep_regex='[/\\]'
15300 gl_dirsep_regex='\/'
15303 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
15304 gl_header_literal_regex=`echo 'errno.h' \
15305 | sed -e "$gl_make_literal_regex_sed"`
15306 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
15307 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
15313 gl_cv_absolute_errno_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
15314 sed -n "$gl_absolute_header_sed"`
15316 gl_header=$gl_cv_absolute_errno_h
15317 gl_cv_next_errno_h='"'$gl_header'"'
15321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_errno_h" >&5
15322 $as_echo "$gl_cv_next_errno_h" >&6; }
15324 NEXT_ERRNO_H=$gl_cv_next_errno_h
15326 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
15327 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
15328 gl_next_as_first_directive='<'errno.h'>'
15330 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
15331 gl_next_as_first_directive=$gl_cv_next_errno_h
15333 NEXT_AS_FIRST_DIRECTIVE_ERRNO_H=$gl_next_as_first_directive
15341 if test -n "$ERRNO_H"; then
15342 GL_GENERATE_ERRNO_H_TRUE=
15343 GL_GENERATE_ERRNO_H_FALSE='#'
15345 GL_GENERATE_ERRNO_H_TRUE='#'
15346 GL_GENERATE_ERRNO_H_FALSE=
15350 if test -n "$ERRNO_H"; then
15351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EMULTIHOP value" >&5
15352 $as_echo_n "checking for EMULTIHOP value... " >&6; }
15353 if ${gl_cv_header_errno_h_EMULTIHOP+:} false; then :
15354 $as_echo_n "(cached) " >&6
15357 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15358 /* end confdefs.h. */
15366 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15367 $EGREP "yes" >/dev/null 2>&1; then :
15368 gl_cv_header_errno_h_EMULTIHOP=yes
15370 gl_cv_header_errno_h_EMULTIHOP=no
15374 if test $gl_cv_header_errno_h_EMULTIHOP = no; then
15375 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15376 /* end confdefs.h. */
15378 #define _XOPEN_SOURCE_EXTENDED 1
15385 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15386 $EGREP "yes" >/dev/null 2>&1; then :
15387 gl_cv_header_errno_h_EMULTIHOP=hidden
15391 if test $gl_cv_header_errno_h_EMULTIHOP = hidden; then
15392 if ac_fn_c_compute_int "$LINENO" "EMULTIHOP" "gl_cv_header_errno_h_EMULTIHOP" "
15393 #define _XOPEN_SOURCE_EXTENDED 1
15395 /* The following two lines are a workaround against an autoconf-2.52 bug. */
15397 #include <stdlib.h>
15406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_EMULTIHOP" >&5
15407 $as_echo "$gl_cv_header_errno_h_EMULTIHOP" >&6; }
15408 case $gl_cv_header_errno_h_EMULTIHOP in
15410 EMULTIHOP_HIDDEN=0; EMULTIHOP_VALUE=
15413 EMULTIHOP_HIDDEN=1; EMULTIHOP_VALUE="$gl_cv_header_errno_h_EMULTIHOP"
15421 if test -n "$ERRNO_H"; then
15422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ENOLINK value" >&5
15423 $as_echo_n "checking for ENOLINK value... " >&6; }
15424 if ${gl_cv_header_errno_h_ENOLINK+:} false; then :
15425 $as_echo_n "(cached) " >&6
15428 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15429 /* end confdefs.h. */
15437 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15438 $EGREP "yes" >/dev/null 2>&1; then :
15439 gl_cv_header_errno_h_ENOLINK=yes
15441 gl_cv_header_errno_h_ENOLINK=no
15445 if test $gl_cv_header_errno_h_ENOLINK = no; then
15446 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15447 /* end confdefs.h. */
15449 #define _XOPEN_SOURCE_EXTENDED 1
15456 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15457 $EGREP "yes" >/dev/null 2>&1; then :
15458 gl_cv_header_errno_h_ENOLINK=hidden
15462 if test $gl_cv_header_errno_h_ENOLINK = hidden; then
15463 if ac_fn_c_compute_int "$LINENO" "ENOLINK" "gl_cv_header_errno_h_ENOLINK" "
15464 #define _XOPEN_SOURCE_EXTENDED 1
15466 /* The following two lines are a workaround against an autoconf-2.52 bug. */
15468 #include <stdlib.h>
15477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_ENOLINK" >&5
15478 $as_echo "$gl_cv_header_errno_h_ENOLINK" >&6; }
15479 case $gl_cv_header_errno_h_ENOLINK in
15481 ENOLINK_HIDDEN=0; ENOLINK_VALUE=
15484 ENOLINK_HIDDEN=1; ENOLINK_VALUE="$gl_cv_header_errno_h_ENOLINK"
15492 if test -n "$ERRNO_H"; then
15493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EOVERFLOW value" >&5
15494 $as_echo_n "checking for EOVERFLOW value... " >&6; }
15495 if ${gl_cv_header_errno_h_EOVERFLOW+:} false; then :
15496 $as_echo_n "(cached) " >&6
15499 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15500 /* end confdefs.h. */
15508 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15509 $EGREP "yes" >/dev/null 2>&1; then :
15510 gl_cv_header_errno_h_EOVERFLOW=yes
15512 gl_cv_header_errno_h_EOVERFLOW=no
15516 if test $gl_cv_header_errno_h_EOVERFLOW = no; then
15517 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15518 /* end confdefs.h. */
15520 #define _XOPEN_SOURCE_EXTENDED 1
15527 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15528 $EGREP "yes" >/dev/null 2>&1; then :
15529 gl_cv_header_errno_h_EOVERFLOW=hidden
15533 if test $gl_cv_header_errno_h_EOVERFLOW = hidden; then
15534 if ac_fn_c_compute_int "$LINENO" "EOVERFLOW" "gl_cv_header_errno_h_EOVERFLOW" "
15535 #define _XOPEN_SOURCE_EXTENDED 1
15537 /* The following two lines are a workaround against an autoconf-2.52 bug. */
15539 #include <stdlib.h>
15548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_EOVERFLOW" >&5
15549 $as_echo "$gl_cv_header_errno_h_EOVERFLOW" >&6; }
15550 case $gl_cv_header_errno_h_EOVERFLOW in
15552 EOVERFLOW_HIDDEN=0; EOVERFLOW_VALUE=
15555 EOVERFLOW_HIDDEN=1; EOVERFLOW_VALUE="$gl_cv_header_errno_h_EOVERFLOW"
15579 GNULIB_UTIMENSAT=0;
15593 REPLACE_FUTIMENS=0;
15599 REPLACE_UTIMENSAT=0;
15605 for ac_func in $gl_func_list
15607 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15608 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
15609 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
15610 cat >>confdefs.h <<_ACEOF
15611 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15629 if test $ac_cv_func__set_invalid_parameter_handler = yes; then
15630 HAVE_MSVC_INVALID_PARAMETER_HANDLER=1
15632 $as_echo "#define HAVE_MSVC_INVALID_PARAMETER_HANDLER 1" >>confdefs.h
15635 HAVE_MSVC_INVALID_PARAMETER_HANDLER=0
15639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
15640 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
15641 if ${ac_cv_header_stat_broken+:} false; then :
15642 $as_echo_n "(cached) " >&6
15644 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15645 /* end confdefs.h. */
15646 #include <sys/types.h>
15647 #include <sys/stat.h>
15649 #if defined S_ISBLK && defined S_IFDIR
15650 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
15653 #if defined S_ISBLK && defined S_IFCHR
15654 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
15657 #if defined S_ISLNK && defined S_IFREG
15658 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
15661 #if defined S_ISSOCK && defined S_IFREG
15662 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
15666 if ac_fn_c_try_compile "$LINENO"; then :
15667 ac_cv_header_stat_broken=no
15669 ac_cv_header_stat_broken=yes
15671 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
15674 $as_echo "$ac_cv_header_stat_broken" >&6; }
15675 if test $ac_cv_header_stat_broken = yes; then
15677 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
15686 ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
15687 if test "x$ac_cv_type_mode_t" = xyes; then :
15691 cat >>confdefs.h <<_ACEOF
15701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit off_t" >&5
15702 $as_echo_n "checking for 64-bit off_t... " >&6; }
15703 if ${gl_cv_type_off_t_64+:} false; then :
15704 $as_echo_n "(cached) " >&6
15706 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15707 /* end confdefs.h. */
15708 #include <sys/types.h>
15709 int verify_off_t_size[sizeof (off_t) >= 8 ? 1 : -1];
15719 if ac_fn_c_try_compile "$LINENO"; then :
15720 gl_cv_type_off_t_64=yes
15722 gl_cv_type_off_t_64=no
15724 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_type_off_t_64" >&5
15728 $as_echo "$gl_cv_type_off_t_64" >&6; }
15729 if test $gl_cv_type_off_t_64 = no; then
15730 WINDOWS_64_BIT_OFF_T=1
15732 WINDOWS_64_BIT_OFF_T=0
15734 WINDOWS_64_BIT_ST_SIZE=1
15737 WINDOWS_64_BIT_OFF_T=0
15738 WINDOWS_64_BIT_ST_SIZE=0
15762 if test $gl_cv_have_include_next = yes; then
15763 gl_cv_next_sys_stat_h='<'sys/stat.h'>'
15765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/stat.h>" >&5
15766 $as_echo_n "checking absolute name of <sys/stat.h>... " >&6; }
15767 if ${gl_cv_next_sys_stat_h+:} false; then :
15768 $as_echo_n "(cached) " >&6
15771 if test $ac_cv_header_sys_stat_h = yes; then
15776 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15777 /* end confdefs.h. */
15778 #include <sys/stat.h>
15781 aix*) gl_absname_cpp="$ac_cpp -C" ;;
15782 *) gl_absname_cpp="$ac_cpp" ;;
15787 gl_dirsep_regex='[/\\]'
15790 gl_dirsep_regex='\/'
15793 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
15794 gl_header_literal_regex=`echo 'sys/stat.h' \
15795 | sed -e "$gl_make_literal_regex_sed"`
15796 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
15797 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
15803 gl_cv_absolute_sys_stat_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
15804 sed -n "$gl_absolute_header_sed"`
15806 gl_header=$gl_cv_absolute_sys_stat_h
15807 gl_cv_next_sys_stat_h='"'$gl_header'"'
15809 gl_cv_next_sys_stat_h='<'sys/stat.h'>'
15814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_stat_h" >&5
15815 $as_echo "$gl_cv_next_sys_stat_h" >&6; }
15817 NEXT_SYS_STAT_H=$gl_cv_next_sys_stat_h
15819 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
15820 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
15821 gl_next_as_first_directive='<'sys/stat.h'>'
15823 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
15824 gl_next_as_first_directive=$gl_cv_next_sys_stat_h
15826 NEXT_AS_FIRST_DIRECTIVE_SYS_STAT_H=$gl_next_as_first_directive
15838 if test $WINDOWS_64_BIT_ST_SIZE = 1; then
15840 $as_echo "#define _GL_WINDOWS_64_BIT_ST_SIZE 1" >>confdefs.h
15844 ac_fn_c_check_type "$LINENO" "nlink_t" "ac_cv_type_nlink_t" "#include <sys/types.h>
15845 #include <sys/stat.h>
15847 if test "x$ac_cv_type_nlink_t" = xyes; then :
15851 $as_echo "#define nlink_t int" >>confdefs.h
15857 for gl_func in fchmodat fstat fstatat futimens lchmod lstat mkdirat mkfifo mkfifoat mknod mknodat stat utimensat; do
15858 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
15859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
15860 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
15861 if eval \${$as_gl_Symbol+:} false; then :
15862 $as_echo_n "(cached) " >&6
15864 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15865 /* end confdefs.h. */
15866 #include <sys/stat.h>
15877 if ac_fn_c_try_compile "$LINENO"; then :
15878 eval "$as_gl_Symbol=yes"
15880 eval "$as_gl_Symbol=no"
15882 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15884 eval ac_res=\$$as_gl_Symbol
15885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
15886 $as_echo "$ac_res" >&6; }
15887 if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
15888 cat >>confdefs.h <<_ACEOF
15889 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
15892 eval ac_cv_have_decl_$gl_func=yes
15906 GNULIB_FPRINTF_POSIX=0;
15922 GNULIB_OBSTACK_PRINTF=0;
15923 GNULIB_OBSTACK_PRINTF_POSIX=0;
15928 GNULIB_PRINTF_POSIX=0;
15937 GNULIB_SPRINTF_POSIX=0;
15938 GNULIB_STDIO_H_NONBLOCKING=0;
15939 GNULIB_STDIO_H_SIGPIPE=0;
15941 GNULIB_VASPRINTF=0;
15946 GNULIB_VFPRINTF_POSIX=0;
15948 GNULIB_VPRINTF_POSIX=0;
15949 GNULIB_VSNPRINTF=0;
15950 GNULIB_VSPRINTF_POSIX=0;
15951 HAVE_DECL_FPURGE=1;
15952 HAVE_DECL_FSEEKO=1;
15953 HAVE_DECL_FTELLO=1;
15954 HAVE_DECL_GETDELIM=1;
15955 HAVE_DECL_GETLINE=1;
15956 HAVE_DECL_OBSTACK_PRINTF=1;
15957 HAVE_DECL_SNPRINTF=1;
15958 HAVE_DECL_VSNPRINTF=1;
15979 REPLACE_GETDELIM=0;
15981 REPLACE_OBSTACK_PRINTF=0;
15987 REPLACE_RENAMEAT=0;
15988 REPLACE_SNPRINTF=0;
15990 REPLACE_STDIO_READ_FUNCS=0;
15991 REPLACE_STDIO_WRITE_FUNCS=0;
15993 REPLACE_VASPRINTF=0;
15994 REPLACE_VDPRINTF=0;
15995 REPLACE_VFPRINTF=0;
15997 REPLACE_VSNPRINTF=0;
15998 REPLACE_VSPRINTF=0;
16001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stdin defaults to large file offsets" >&5
16002 $as_echo_n "checking whether stdin defaults to large file offsets... " >&6; }
16003 if ${gl_cv_var_stdin_large_offset+:} false; then :
16004 $as_echo_n "(cached) " >&6
16006 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16007 /* end confdefs.h. */
16012 #if defined __SL64 && defined __SCLE /* cygwin */
16013 /* Cygwin 1.5.24 and earlier fail to put stdin in 64-bit mode, making
16014 fseeko/ftello needlessly fail. This bug was fixed in 1.5.25, and
16015 it is easier to do a version check than building a runtime test. */
16016 # include <cygwin/version.h>
16017 # if CYGWIN_VERSION_DLL_COMBINED < CYGWIN_VERSION_DLL_MAKE_COMBINED (1005, 25)
16025 if ac_fn_c_try_link "$LINENO"; then :
16026 gl_cv_var_stdin_large_offset=yes
16028 gl_cv_var_stdin_large_offset=no
16030 rm -f core conftest.err conftest.$ac_objext \
16031 conftest$ac_exeext conftest.$ac_ext
16033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_var_stdin_large_offset" >&5
16034 $as_echo "$gl_cv_var_stdin_large_offset" >&6; }
16038 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
16039 if test "x$ac_cv_type_pid_t" = xyes; then :
16043 cat >>confdefs.h <<_ACEOF
16065 if test $gl_cv_have_include_next = yes; then
16066 gl_cv_next_sys_types_h='<'sys/types.h'>'
16068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/types.h>" >&5
16069 $as_echo_n "checking absolute name of <sys/types.h>... " >&6; }
16070 if ${gl_cv_next_sys_types_h+:} false; then :
16071 $as_echo_n "(cached) " >&6
16076 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16077 /* end confdefs.h. */
16078 #include <sys/types.h>
16081 aix*) gl_absname_cpp="$ac_cpp -C" ;;
16082 *) gl_absname_cpp="$ac_cpp" ;;
16087 gl_dirsep_regex='[/\\]'
16090 gl_dirsep_regex='\/'
16093 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
16094 gl_header_literal_regex=`echo 'sys/types.h' \
16095 | sed -e "$gl_make_literal_regex_sed"`
16096 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
16097 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
16103 gl_cv_absolute_sys_types_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
16104 sed -n "$gl_absolute_header_sed"`
16106 gl_header=$gl_cv_absolute_sys_types_h
16107 gl_cv_next_sys_types_h='"'$gl_header'"'
16111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_types_h" >&5
16112 $as_echo "$gl_cv_next_sys_types_h" >&6; }
16114 NEXT_SYS_TYPES_H=$gl_cv_next_sys_types_h
16116 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
16117 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
16118 gl_next_as_first_directive='<'sys/types.h'>'
16120 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
16121 gl_next_as_first_directive=$gl_cv_next_sys_types_h
16123 NEXT_AS_FIRST_DIRECTIVE_SYS_TYPES_H=$gl_next_as_first_directive
16136 ac_fn_c_check_decl "$LINENO" "ftello" "ac_cv_have_decl_ftello" "$ac_includes_default"
16137 if test "x$ac_cv_have_decl_ftello" = xyes; then :
16143 cat >>confdefs.h <<_ACEOF
16144 #define HAVE_DECL_FTELLO $ac_have_decl
16163 if test $ac_cv_have_decl_ftello = no; then
16167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ftello" >&5
16168 $as_echo_n "checking for ftello... " >&6; }
16169 if ${gl_cv_func_ftello+:} false; then :
16170 $as_echo_n "(cached) " >&6
16173 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16174 /* end confdefs.h. */
16184 if ac_fn_c_try_link "$LINENO"; then :
16185 gl_cv_func_ftello=yes
16187 gl_cv_func_ftello=no
16189 rm -f core conftest.err conftest.$ac_objext \
16190 conftest$ac_exeext conftest.$ac_ext
16193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_ftello" >&5
16194 $as_echo "$gl_cv_func_ftello" >&6; }
16195 if test $gl_cv_func_ftello = no; then
16198 if test $WINDOWS_64_BIT_OFF_T = 1; then
16201 if test $gl_cv_var_stdin_large_offset = no; then
16204 if test $REPLACE_FTELLO = 0; then
16206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ftello works" >&5
16207 $as_echo_n "checking whether ftello works... " >&6; }
16208 if ${gl_cv_func_ftello_works+:} false; then :
16209 $as_echo_n "(cached) " >&6
16213 # Guess no on Solaris.
16214 solaris*) gl_cv_func_ftello_works="guessing no" ;;
16215 # Guess yes otherwise.
16216 *) gl_cv_func_ftello_works="guessing yes" ;;
16218 if test "$cross_compiling" = yes; then :
16221 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16222 /* end confdefs.h. */
16225 #include <stdlib.h>
16226 #include <string.h>
16227 #define TESTFILE "conftest.tmp"
16233 /* Create a file with some contents. */
16234 fp = fopen (TESTFILE, "w");
16237 if (fwrite ("foogarsh", 1, 8, fp) < 8)
16242 /* The file's contents is now "foogarsh". */
16244 /* Try writing after reading to EOF. */
16245 fp = fopen (TESTFILE, "r+");
16248 if (fseek (fp, -1, SEEK_END))
16250 if (!(getc (fp) == 'h'))
16252 if (!(getc (fp) == EOF))
16254 if (!(ftell (fp) == 8))
16256 if (!(ftell (fp) == 8))
16258 if (!(putc ('!', fp) == '!'))
16260 if (!(ftell (fp) == 9))
16262 if (!(fclose (fp) == 0))
16264 fp = fopen (TESTFILE, "r");
16269 if (!(fread (buf, 1, 10, fp) == 9))
16271 if (!(memcmp (buf, "foogarsh!", 9) == 0))
16274 if (!(fclose (fp) == 0))
16277 /* The file's contents is now "foogarsh!". */
16282 if ac_fn_c_try_run "$LINENO"; then :
16283 gl_cv_func_ftello_works=yes
16285 gl_cv_func_ftello_works=no
16287 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16288 conftest.$ac_objext conftest.beam conftest.$ac_ext
16293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_ftello_works" >&5
16294 $as_echo "$gl_cv_func_ftello_works" >&6; }
16295 case "$gl_cv_func_ftello_works" in
16300 $as_echo "#define FTELLO_BROKEN_AFTER_SWITCHING_FROM_READ_TO_WRITE 1" >>confdefs.h
16308 ac_fn_c_check_decl "$LINENO" "getdelim" "ac_cv_have_decl_getdelim" "$ac_includes_default"
16309 if test "x$ac_cv_have_decl_getdelim" = xyes; then :
16315 cat >>confdefs.h <<_ACEOF
16316 #define HAVE_DECL_GETDELIM $ac_have_decl
16326 ac_fn_c_check_decl "$LINENO" "getline" "ac_cv_have_decl_getline" "$ac_includes_default"
16327 if test "x$ac_cv_have_decl_getline" = xyes; then :
16333 cat >>confdefs.h <<_ACEOF
16334 #define HAVE_DECL_GETLINE $ac_have_decl
16339 GNULIB_GETTIMEOFDAY=0;
16340 HAVE_GETTIMEOFDAY=1;
16341 HAVE_STRUCT_TIMEVAL=1;
16343 REPLACE_GETTIMEOFDAY=0;
16344 REPLACE_STRUCT_TIMEVAL=0;
16376 if test $gl_cv_have_include_next = yes; then
16377 gl_cv_next_sys_time_h='<'sys/time.h'>'
16379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/time.h>" >&5
16380 $as_echo_n "checking absolute name of <sys/time.h>... " >&6; }
16381 if ${gl_cv_next_sys_time_h+:} false; then :
16382 $as_echo_n "(cached) " >&6
16385 if test $ac_cv_header_sys_time_h = yes; then
16390 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16391 /* end confdefs.h. */
16392 #include <sys/time.h>
16395 aix*) gl_absname_cpp="$ac_cpp -C" ;;
16396 *) gl_absname_cpp="$ac_cpp" ;;
16401 gl_dirsep_regex='[/\\]'
16404 gl_dirsep_regex='\/'
16407 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
16408 gl_header_literal_regex=`echo 'sys/time.h' \
16409 | sed -e "$gl_make_literal_regex_sed"`
16410 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
16411 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
16417 gl_cv_absolute_sys_time_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
16418 sed -n "$gl_absolute_header_sed"`
16420 gl_header=$gl_cv_absolute_sys_time_h
16421 gl_cv_next_sys_time_h='"'$gl_header'"'
16423 gl_cv_next_sys_time_h='<'sys/time.h'>'
16428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_time_h" >&5
16429 $as_echo "$gl_cv_next_sys_time_h" >&6; }
16431 NEXT_SYS_TIME_H=$gl_cv_next_sys_time_h
16433 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
16434 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
16435 gl_next_as_first_directive='<'sys/time.h'>'
16437 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
16438 gl_next_as_first_directive=$gl_cv_next_sys_time_h
16440 NEXT_AS_FIRST_DIRECTIVE_SYS_TIME_H=$gl_next_as_first_directive
16446 if test $ac_cv_header_sys_time_h != yes; then
16460 if test $ac_cv_header_sys_socket_h != yes; then
16461 for ac_header in winsock2.h
16463 ac_fn_c_check_header_mongrel "$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
16464 if test "x$ac_cv_header_winsock2_h" = xyes; then :
16465 cat >>confdefs.h <<_ACEOF
16466 #define HAVE_WINSOCK2_H 1
16474 if test "$ac_cv_header_winsock2_h" = yes; then
16476 UNISTD_H_HAVE_WINSOCK2_H=1
16477 SYS_IOCTL_H_HAVE_WINSOCK2_H=1
16483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timeval" >&5
16484 $as_echo_n "checking for struct timeval... " >&6; }
16485 if ${gl_cv_sys_struct_timeval+:} false; then :
16486 $as_echo_n "(cached) " >&6
16488 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16489 /* end confdefs.h. */
16490 #if HAVE_SYS_TIME_H
16491 #include <sys/time.h>
16494 #if HAVE_WINSOCK2_H
16495 # include <winsock2.h>
16501 static struct timeval x; x.tv_sec = x.tv_usec;
16506 if ac_fn_c_try_compile "$LINENO"; then :
16507 gl_cv_sys_struct_timeval=yes
16509 gl_cv_sys_struct_timeval=no
16511 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timeval" >&5
16515 $as_echo "$gl_cv_sys_struct_timeval" >&6; }
16516 if test $gl_cv_sys_struct_timeval != yes; then
16517 HAVE_STRUCT_TIMEVAL=0
16519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wide-enough struct timeval.tv_sec member" >&5
16520 $as_echo_n "checking for wide-enough struct timeval.tv_sec member... " >&6; }
16521 if ${gl_cv_sys_struct_timeval_tv_sec+:} false; then :
16522 $as_echo_n "(cached) " >&6
16524 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16525 /* end confdefs.h. */
16526 #if HAVE_SYS_TIME_H
16527 #include <sys/time.h>
16530 #if HAVE_WINSOCK2_H
16531 # include <winsock2.h>
16537 static struct timeval x;
16538 typedef int verify_tv_sec_type[
16539 sizeof (time_t) <= sizeof x.tv_sec ? 1 : -1
16546 if ac_fn_c_try_compile "$LINENO"; then :
16547 gl_cv_sys_struct_timeval_tv_sec=yes
16549 gl_cv_sys_struct_timeval_tv_sec=no
16551 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timeval_tv_sec" >&5
16555 $as_echo "$gl_cv_sys_struct_timeval_tv_sec" >&6; }
16556 if test $gl_cv_sys_struct_timeval_tv_sec != yes; then
16557 REPLACE_STRUCT_TIMEVAL=1
16562 for gl_func in gettimeofday; do
16563 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
16564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
16565 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
16566 if eval \${$as_gl_Symbol+:} false; then :
16567 $as_echo_n "(cached) " >&6
16569 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16570 /* end confdefs.h. */
16572 #if HAVE_SYS_TIME_H
16573 # include <sys/time.h>
16586 if ac_fn_c_try_compile "$LINENO"; then :
16587 eval "$as_gl_Symbol=yes"
16589 eval "$as_gl_Symbol=no"
16591 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16593 eval ac_res=\$$as_gl_Symbol
16594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
16595 $as_echo "$ac_res" >&6; }
16596 if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
16597 cat >>confdefs.h <<_ACEOF
16598 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
16601 eval ac_cv_have_decl_$gl_func=yes
16619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
16620 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
16621 if ${ac_cv_path_SED+:} false; then :
16622 $as_echo_n "(cached) " >&6
16624 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
16625 for ac_i in 1 2 3 4 5 6 7; do
16626 ac_script="$ac_script$as_nl$ac_script"
16628 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
16629 { ac_script=; unset ac_script;}
16630 if test -z "$SED"; then
16631 ac_path_SED_found=false
16632 # Loop through the user's path and test for each of PROGNAME-LIST
16633 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16634 for as_dir in $PATH
16637 test -z "$as_dir" && as_dir=.
16638 for ac_prog in sed gsed; do
16639 for ac_exec_ext in '' $ac_executable_extensions; do
16640 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
16641 as_fn_executable_p "$ac_path_SED" || continue
16642 # Check for GNU ac_path_SED and select it if it is found.
16643 # Check for GNU $ac_path_SED
16644 case `"$ac_path_SED" --version 2>&1` in
16646 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
16649 $as_echo_n 0123456789 >"conftest.in"
16652 cat "conftest.in" "conftest.in" >"conftest.tmp"
16653 mv "conftest.tmp" "conftest.in"
16654 cp "conftest.in" "conftest.nl"
16655 $as_echo '' >> "conftest.nl"
16656 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
16657 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
16658 as_fn_arith $ac_count + 1 && ac_count=$as_val
16659 if test $ac_count -gt ${ac_path_SED_max-0}; then
16660 # Best one so far, save it but keep looking for a better one
16661 ac_cv_path_SED="$ac_path_SED"
16662 ac_path_SED_max=$ac_count
16664 # 10*(2^10) chars as input seems more than enough
16665 test $ac_count -gt 10 && break
16667 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
16670 $ac_path_SED_found && break 3
16675 if test -z "$ac_cv_path_SED"; then
16676 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
16679 ac_cv_path_SED=$SED
16683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
16684 $as_echo "$ac_cv_path_SED" >&6; }
16685 SED="$ac_cv_path_SED"
16691 GNULIB_CALLOC_POSIX=0;
16692 GNULIB_CANONICALIZE_FILE_NAME=0;
16693 GNULIB_GETLOADAVG=0;
16694 GNULIB_GETSUBOPT=0;
16696 GNULIB_MALLOC_POSIX=0;
16700 GNULIB_MKOSTEMPS=0;
16703 GNULIB_POSIX_OPENPT=0;
16705 GNULIB_PTSNAME_R=0;
16709 GNULIB_REALLOC_POSIX=0;
16712 GNULIB_SECURE_GETENV=0;
16717 GNULIB_SYSTEM_POSIX=0;
16723 HAVE_CANONICALIZE_FILE_NAME=1;
16724 HAVE_DECL_GETLOADAVG=1;
16732 HAVE_POSIX_OPENPT=1;
16740 HAVE_SECURE_GETENV=1;
16742 HAVE_DECL_SETENV=1;
16746 HAVE_STRUCT_RANDOM_DATA=1;
16747 HAVE_SYS_LOADAVG_H=0;
16749 HAVE_DECL_UNSETENV=1;
16751 REPLACE_CANONICALIZE_FILE_NAME=0;
16756 REPLACE_PTSNAME_R=0;
16758 REPLACE_RANDOM_R=0;
16760 REPLACE_REALPATH=0;
16763 REPLACE_UNSETENV=0;
16767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether malloc, realloc, calloc are POSIX compliant" >&5
16768 $as_echo_n "checking whether malloc, realloc, calloc are POSIX compliant... " >&6; }
16769 if ${gl_cv_func_malloc_posix+:} false; then :
16770 $as_echo_n "(cached) " >&6
16773 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16774 /* end confdefs.h. */
16779 #if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
16787 if ac_fn_c_try_compile "$LINENO"; then :
16788 gl_cv_func_malloc_posix=yes
16790 gl_cv_func_malloc_posix=no
16792 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_malloc_posix" >&5
16796 $as_echo "$gl_cv_func_malloc_posix" >&6; }
16815 GNULIB_RAWMEMCHR=0;
16818 GNULIB_STRCHRNUL=0;
16826 GNULIB_STRCASESTR=0;
16833 GNULIB_MBSCASECMP=0;
16834 GNULIB_MBSNCASECMP=0;
16835 GNULIB_MBSPCASECMP=0;
16836 GNULIB_MBSCASESTR=0;
16843 GNULIB_STRERROR_R=0;
16844 GNULIB_STRSIGNAL=0;
16845 GNULIB_STRVERSCMP=0;
16850 HAVE_DECL_MEMMEM=1;
16852 HAVE_DECL_MEMRCHR=1;
16857 HAVE_DECL_STRDUP=1;
16858 HAVE_DECL_STRNDUP=1;
16859 HAVE_DECL_STRNLEN=1;
16863 HAVE_DECL_STRTOK_R=1;
16864 HAVE_DECL_STRERROR_R=1;
16865 HAVE_DECL_STRSIGNAL=1;
16872 REPLACE_STRCASESTR=0;
16873 REPLACE_STRCHRNUL=0;
16874 REPLACE_STRERROR=0;
16875 REPLACE_STRERROR_R=0;
16879 REPLACE_STRSIGNAL=0;
16880 REPLACE_STRTOK_R=0;
16881 UNDEFINE_STRTOK_R=0;
16887 # Check for mmap(). Don't use AC_FUNC_MMAP, because it checks too much: it
16888 # fails on HP-UX 11, because MAP_FIXED mappings do not work. But this is
16889 # irrelevant for anonymous mappings.
16890 ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
16891 if test "x$ac_cv_func_mmap" = xyes; then :
16898 # Try to allow MAP_ANONYMOUS.
16899 gl_have_mmap_anonymous=no
16900 if test $gl_have_mmap = yes; then
16901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANONYMOUS" >&5
16902 $as_echo_n "checking for MAP_ANONYMOUS... " >&6; }
16903 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16904 /* end confdefs.h. */
16906 #include <sys/mman.h>
16907 #ifdef MAP_ANONYMOUS
16908 I cannot identify this map
16912 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16913 $EGREP "I cannot identify this map" >/dev/null 2>&1; then :
16914 gl_have_mmap_anonymous=yes
16918 if test $gl_have_mmap_anonymous != yes; then
16919 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16920 /* end confdefs.h. */
16922 #include <sys/mman.h>
16924 I cannot identify this map
16928 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16929 $EGREP "I cannot identify this map" >/dev/null 2>&1; then :
16931 $as_echo "#define MAP_ANONYMOUS MAP_ANON" >>confdefs.h
16933 gl_have_mmap_anonymous=yes
16938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_have_mmap_anonymous" >&5
16939 $as_echo "$gl_have_mmap_anonymous" >&6; }
16940 if test $gl_have_mmap_anonymous = yes; then
16942 $as_echo "#define HAVE_MAP_ANONYMOUS 1" >>confdefs.h
16964 if test $HAVE_MEMCHR = 1; then
16965 # Detect platform-specific bugs in some versions of glibc:
16966 # memchr should not dereference anything with length 0
16967 # http://bugzilla.redhat.com/499689
16968 # memchr should not dereference overestimated length after a match
16969 # http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=521737
16970 # http://sourceware.org/bugzilla/show_bug.cgi?id=10162
16971 # Assume that memchr works on platforms that lack mprotect.
16972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether memchr works" >&5
16973 $as_echo_n "checking whether memchr works... " >&6; }
16974 if ${gl_cv_func_memchr_works+:} false; then :
16975 $as_echo_n "(cached) " >&6
16977 if test "$cross_compiling" = yes; then :
16978 gl_cv_func_memchr_works="guessing no"
16980 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16981 /* end confdefs.h. */
16983 #include <string.h>
16984 #if HAVE_SYS_MMAN_H
16985 # include <fcntl.h>
16986 # include <unistd.h>
16987 # include <sys/types.h>
16988 # include <sys/mman.h>
16990 # define MAP_FILE 0
16999 char *fence = NULL;
17000 #if HAVE_SYS_MMAN_H && HAVE_MPROTECT
17001 # if HAVE_MAP_ANONYMOUS
17002 const int flags = MAP_ANONYMOUS | MAP_PRIVATE;
17004 # else /* !HAVE_MAP_ANONYMOUS */
17005 const int flags = MAP_FILE | MAP_PRIVATE;
17006 int fd = open ("/dev/zero", O_RDONLY, 0666);
17010 int pagesize = getpagesize ();
17012 (char *) mmap (NULL, 2 * pagesize, PROT_READ | PROT_WRITE,
17014 if (two_pages != (char *)(-1)
17015 && mprotect (two_pages + pagesize, pagesize, PROT_NONE) == 0)
17016 fence = two_pages + pagesize;
17021 if (memchr (fence, 0, 0))
17023 strcpy (fence - 9, "12345678");
17024 if (memchr (fence - 9, 0, 79) != fence - 1)
17026 if (memchr (fence - 1, 0, 3) != fence - 1)
17035 if ac_fn_c_try_run "$LINENO"; then :
17036 gl_cv_func_memchr_works=yes
17038 gl_cv_func_memchr_works=no
17040 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17041 conftest.$ac_objext conftest.beam conftest.$ac_ext
17045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_memchr_works" >&5
17046 $as_echo "$gl_cv_func_memchr_works" >&6; }
17047 if test "$gl_cv_func_memchr_works" != yes; then
17053 ac_fn_c_check_decl "$LINENO" "memmem" "ac_cv_have_decl_memmem" "$ac_includes_default"
17054 if test "x$ac_cv_have_decl_memmem" = xyes; then :
17060 cat >>confdefs.h <<_ACEOF
17061 #define HAVE_DECL_MEMMEM $ac_have_decl
17069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <limits.h> defines MIN and MAX" >&5
17070 $as_echo_n "checking whether <limits.h> defines MIN and MAX... " >&6; }
17071 if ${gl_cv_minmax_in_limits_h+:} false; then :
17072 $as_echo_n "(cached) " >&6
17074 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17075 /* end confdefs.h. */
17076 #include <limits.h>
17077 int x = MIN (42, 17);
17086 if ac_fn_c_try_compile "$LINENO"; then :
17087 gl_cv_minmax_in_limits_h=yes
17089 gl_cv_minmax_in_limits_h=no
17091 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_minmax_in_limits_h" >&5
17094 $as_echo "$gl_cv_minmax_in_limits_h" >&6; }
17095 if test $gl_cv_minmax_in_limits_h = yes; then
17097 $as_echo "#define HAVE_MINMAX_IN_LIMITS_H 1" >>confdefs.h
17106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <sys/param.h> defines MIN and MAX" >&5
17107 $as_echo_n "checking whether <sys/param.h> defines MIN and MAX... " >&6; }
17108 if ${gl_cv_minmax_in_sys_param_h+:} false; then :
17109 $as_echo_n "(cached) " >&6
17111 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17112 /* end confdefs.h. */
17113 #include <sys/param.h>
17114 int x = MIN (42, 17);
17123 if ac_fn_c_try_compile "$LINENO"; then :
17124 gl_cv_minmax_in_sys_param_h=yes
17126 gl_cv_minmax_in_sys_param_h=no
17128 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_minmax_in_sys_param_h" >&5
17131 $as_echo "$gl_cv_minmax_in_sys_param_h" >&6; }
17132 if test $gl_cv_minmax_in_sys_param_h = yes; then
17134 $as_echo "#define HAVE_MINMAX_IN_SYS_PARAM_H 1" >>confdefs.h
17142 gl_cv_c_multiarch=no
17143 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17144 /* end confdefs.h. */
17145 #ifndef __APPLE_CC__
17146 not a universal capable compiler
17151 if ac_fn_c_try_compile "$LINENO"; then :
17155 for word in ${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS}; do
17156 if test -n "$prev"; then
17158 i?86 | x86_64 | ppc | ppc64)
17159 if test -z "$arch" || test "$arch" = "$word"; then
17162 gl_cv_c_multiarch=yes
17168 if test "x$word" = "x-arch"; then
17175 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17176 if test $gl_cv_c_multiarch = yes; then
17177 APPLE_UNIVERSAL_BUILD=1
17179 APPLE_UNIVERSAL_BUILD=0
17184 GNULIB_GETADDRINFO=0;
17185 HAVE_STRUCT_ADDRINFO=1;
17186 HAVE_DECL_FREEADDRINFO=1;
17187 HAVE_DECL_GAI_STRERROR=1;
17188 HAVE_DECL_GETADDRINFO=1;
17189 HAVE_DECL_GETNAMEINFO=1;
17190 REPLACE_GAI_STRERROR=0;
17219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether snprintf returns a byte count as in C99" >&5
17220 $as_echo_n "checking whether snprintf returns a byte count as in C99... " >&6; }
17221 if ${gl_cv_func_snprintf_retval_c99+:} false; then :
17222 $as_echo_n "(cached) " >&6
17225 if test "$cross_compiling" = yes; then :
17228 # Guess yes on glibc systems.
17229 *-gnu*) gl_cv_func_snprintf_retval_c99="guessing yes";;
17230 # Guess yes on FreeBSD >= 5.
17231 freebsd[1-4]*) gl_cv_func_snprintf_retval_c99="guessing no";;
17232 freebsd* | kfreebsd*) gl_cv_func_snprintf_retval_c99="guessing yes";;
17233 # Guess yes on Mac OS X >= 10.3.
17234 darwin[1-6].*) gl_cv_func_snprintf_retval_c99="guessing no";;
17235 darwin*) gl_cv_func_snprintf_retval_c99="guessing yes";;
17236 # Guess yes on OpenBSD >= 3.9.
17237 openbsd[1-2].* | openbsd3.[0-8] | openbsd3.[0-8].*)
17238 gl_cv_func_snprintf_retval_c99="guessing no";;
17239 openbsd*) gl_cv_func_snprintf_retval_c99="guessing yes";;
17240 # Guess yes on Solaris >= 2.10.
17241 solaris2.[1-9][0-9]*) gl_cv_func_printf_sizes_c99="guessing yes";;
17242 solaris*) gl_cv_func_printf_sizes_c99="guessing no";;
17243 # Guess yes on AIX >= 4.
17244 aix[1-3]*) gl_cv_func_snprintf_retval_c99="guessing no";;
17245 aix*) gl_cv_func_snprintf_retval_c99="guessing yes";;
17246 # Guess yes on NetBSD >= 3.
17247 netbsd[1-2]* | netbsdelf[1-2]* | netbsdaout[1-2]* | netbsdcoff[1-2]*)
17248 gl_cv_func_snprintf_retval_c99="guessing no";;
17249 netbsd*) gl_cv_func_snprintf_retval_c99="guessing yes";;
17250 # Guess yes on BeOS.
17251 beos*) gl_cv_func_snprintf_retval_c99="guessing yes";;
17252 # If we don't know, assume the worst.
17253 *) gl_cv_func_snprintf_retval_c99="guessing no";;
17257 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17258 /* end confdefs.h. */
17261 #include <string.h>
17263 # define my_snprintf snprintf
17265 # include <stdarg.h>
17266 static int my_snprintf (char *buf, int size, const char *format, ...)
17270 va_start (args, format);
17271 ret = vsnprintf (buf, size, format, args);
17276 static char buf[100];
17279 strcpy (buf, "ABCDEF");
17280 if (my_snprintf (buf, 3, "%d %d", 4567, 89) != 7)
17282 if (my_snprintf (buf, 0, "%d %d", 4567, 89) != 7)
17284 if (my_snprintf (NULL, 0, "%d %d", 4567, 89) != 7)
17289 if ac_fn_c_try_run "$LINENO"; then :
17290 gl_cv_func_snprintf_retval_c99=yes
17292 gl_cv_func_snprintf_retval_c99=no
17294 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17295 conftest.$ac_objext conftest.beam conftest.$ac_ext
17300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_snprintf_retval_c99" >&5
17301 $as_echo "$gl_cv_func_snprintf_retval_c99" >&6; }
17304 ac_fn_c_check_decl "$LINENO" "snprintf" "ac_cv_have_decl_snprintf" "$ac_includes_default"
17305 if test "x$ac_cv_have_decl_snprintf" = xyes; then :
17311 cat >>confdefs.h <<_ACEOF
17312 #define HAVE_DECL_SNPRINTF $ac_have_decl
17323 if test $ac_cv_header_sys_socket_h = no; then
17324 for ac_header in ws2tcpip.h
17326 ac_fn_c_check_header_mongrel "$LINENO" "ws2tcpip.h" "ac_cv_header_ws2tcpip_h" "$ac_includes_default"
17327 if test "x$ac_cv_header_ws2tcpip_h" = xyes; then :
17328 cat >>confdefs.h <<_ACEOF
17329 #define HAVE_WS2TCPIP_H 1
17338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
17339 $as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
17340 if ${ac_cv_header_stdbool_h+:} false; then :
17341 $as_echo_n "(cached) " >&6
17343 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17344 /* end confdefs.h. */
17346 #include <stdbool.h>
17348 "error: bool is not defined"
17351 "error: false is not defined"
17354 "error: false is not 0"
17357 "error: true is not defined"
17360 "error: true is not 1"
17362 #ifndef __bool_true_false_are_defined
17363 "error: __bool_true_false_are_defined is not defined"
17366 struct s { _Bool s: 1; _Bool t; } s;
17368 char a[true == 1 ? 1 : -1];
17369 char b[false == 0 ? 1 : -1];
17370 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
17371 char d[(bool) 0.5 == true ? 1 : -1];
17372 /* See body of main program for 'e'. */
17373 char f[(_Bool) 0.0 == false ? 1 : -1];
17375 char h[sizeof (_Bool)];
17376 char i[sizeof s.t];
17377 enum { j = false, k = true, l = false * true, m = true * 256 };
17378 /* The following fails for
17379 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
17381 char o[sizeof n == m * sizeof n[0] ? 1 : -1];
17382 char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
17383 /* Catch a bug in an HP-UX C compiler. See
17384 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
17385 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
17397 /* Refer to every declared value, to avoid compiler optimizations. */
17398 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
17399 + !m + !n + !o + !p + !q + !pq);
17405 if ac_fn_c_try_compile "$LINENO"; then :
17406 ac_cv_header_stdbool_h=yes
17408 ac_cv_header_stdbool_h=no
17410 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
17413 $as_echo "$ac_cv_header_stdbool_h" >&6; }
17414 ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
17415 if test "x$ac_cv_type__Bool" = xyes; then :
17417 cat >>confdefs.h <<_ACEOF
17418 #define HAVE__BOOL 1
17430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5
17431 $as_echo_n "checking for wchar_t... " >&6; }
17432 if ${gt_cv_c_wchar_t+:} false; then :
17433 $as_echo_n "(cached) " >&6
17435 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17436 /* end confdefs.h. */
17437 #include <stddef.h>
17438 wchar_t foo = (wchar_t)'\0';
17447 if ac_fn_c_try_compile "$LINENO"; then :
17448 gt_cv_c_wchar_t=yes
17452 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5
17455 $as_echo "$gt_cv_c_wchar_t" >&6; }
17456 if test $gt_cv_c_wchar_t = yes; then
17458 $as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h
17463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
17464 $as_echo_n "checking for long long int... " >&6; }
17465 if ${ac_cv_type_long_long_int+:} false; then :
17466 $as_echo_n "(cached) " >&6
17468 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17469 /* end confdefs.h. */
17471 /* For now, do not test the preprocessor; as of 2007 there are too many
17472 implementations with broken preprocessors. Perhaps this can
17473 be revisited in 2012. In the meantime, code should not expect
17474 #if to work with literals wider than 32 bits. */
17475 /* Test literals. */
17476 long long int ll = 9223372036854775807ll;
17477 long long int nll = -9223372036854775807LL;
17478 unsigned long long int ull = 18446744073709551615ULL;
17479 /* Test constant expressions. */
17480 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
17482 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
17488 /* Test availability of runtime routines for shift and division. */
17489 long long int llmax = 9223372036854775807ll;
17490 unsigned long long int ullmax = 18446744073709551615ull;
17491 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
17492 | (llmax / ll) | (llmax % ll)
17493 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
17494 | (ullmax / ull) | (ullmax % ull));
17500 if ac_fn_c_try_link "$LINENO"; then :
17501 if test "$cross_compiling" = yes; then :
17502 ac_cv_type_long_long_int=yes
17504 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17505 /* end confdefs.h. */
17506 #include <limits.h>
17509 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
17510 # define LLONG_MAX (HALF - 1 + HALF)
17515 long long int n = 1;
17519 long long int m = n << i;
17522 if (LLONG_MAX / 2 < m)
17530 if ac_fn_c_try_run "$LINENO"; then :
17531 ac_cv_type_long_long_int=yes
17533 ac_cv_type_long_long_int=no
17535 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17536 conftest.$ac_objext conftest.beam conftest.$ac_ext
17540 ac_cv_type_long_long_int=no
17542 rm -f core conftest.err conftest.$ac_objext \
17543 conftest$ac_exeext conftest.$ac_ext
17545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
17546 $as_echo "$ac_cv_type_long_long_int" >&6; }
17547 if test $ac_cv_type_long_long_int = yes; then
17549 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
17554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
17555 $as_echo_n "checking for unsigned long long int... " >&6; }
17556 if ${ac_cv_type_unsigned_long_long_int+:} false; then :
17557 $as_echo_n "(cached) " >&6
17559 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17560 /* end confdefs.h. */
17562 /* For now, do not test the preprocessor; as of 2007 there are too many
17563 implementations with broken preprocessors. Perhaps this can
17564 be revisited in 2012. In the meantime, code should not expect
17565 #if to work with literals wider than 32 bits. */
17566 /* Test literals. */
17567 long long int ll = 9223372036854775807ll;
17568 long long int nll = -9223372036854775807LL;
17569 unsigned long long int ull = 18446744073709551615ULL;
17570 /* Test constant expressions. */
17571 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
17573 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
17579 /* Test availability of runtime routines for shift and division. */
17580 long long int llmax = 9223372036854775807ll;
17581 unsigned long long int ullmax = 18446744073709551615ull;
17582 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
17583 | (llmax / ll) | (llmax % ll)
17584 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
17585 | (ullmax / ull) | (ullmax % ull));
17591 if ac_fn_c_try_link "$LINENO"; then :
17592 ac_cv_type_unsigned_long_long_int=yes
17594 ac_cv_type_unsigned_long_long_int=no
17596 rm -f core conftest.err conftest.$ac_objext \
17597 conftest$ac_exeext conftest.$ac_ext
17599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
17600 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
17601 if test $ac_cv_type_unsigned_long_long_int = yes; then
17603 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
17620 if test $ac_cv_type_long_long_int = yes; then
17621 HAVE_LONG_LONG_INT=1
17623 HAVE_LONG_LONG_INT=0
17627 if test $ac_cv_type_unsigned_long_long_int = yes; then
17628 HAVE_UNSIGNED_LONG_LONG_INT=1
17630 HAVE_UNSIGNED_LONG_LONG_INT=0
17641 if test $ac_cv_header_wchar_h = yes; then
17648 if test $ac_cv_header_inttypes_h = yes; then
17655 if test $ac_cv_header_sys_types_h = yes; then
17677 if test $gl_cv_have_include_next = yes; then
17678 gl_cv_next_stdint_h='<'stdint.h'>'
17680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdint.h>" >&5
17681 $as_echo_n "checking absolute name of <stdint.h>... " >&6; }
17682 if ${gl_cv_next_stdint_h+:} false; then :
17683 $as_echo_n "(cached) " >&6
17686 if test $ac_cv_header_stdint_h = yes; then
17691 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17692 /* end confdefs.h. */
17693 #include <stdint.h>
17696 aix*) gl_absname_cpp="$ac_cpp -C" ;;
17697 *) gl_absname_cpp="$ac_cpp" ;;
17702 gl_dirsep_regex='[/\\]'
17705 gl_dirsep_regex='\/'
17708 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
17709 gl_header_literal_regex=`echo 'stdint.h' \
17710 | sed -e "$gl_make_literal_regex_sed"`
17711 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
17712 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
17718 gl_cv_absolute_stdint_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
17719 sed -n "$gl_absolute_header_sed"`
17721 gl_header=$gl_cv_absolute_stdint_h
17722 gl_cv_next_stdint_h='"'$gl_header'"'
17724 gl_cv_next_stdint_h='<'stdint.h'>'
17729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdint_h" >&5
17730 $as_echo "$gl_cv_next_stdint_h" >&6; }
17732 NEXT_STDINT_H=$gl_cv_next_stdint_h
17734 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
17735 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
17736 gl_next_as_first_directive='<'stdint.h'>'
17738 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
17739 gl_next_as_first_directive=$gl_cv_next_stdint_h
17741 NEXT_AS_FIRST_DIRECTIVE_STDINT_H=$gl_next_as_first_directive
17746 if test $ac_cv_header_stdint_h = yes; then
17753 if test $ac_cv_header_stdint_h = yes; then
17754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stdint.h conforms to C99" >&5
17755 $as_echo_n "checking whether stdint.h conforms to C99... " >&6; }
17756 if ${gl_cv_header_working_stdint_h+:} false; then :
17757 $as_echo_n "(cached) " >&6
17759 gl_cv_header_working_stdint_h=no
17760 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17761 /* end confdefs.h. */
17764 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
17765 #include <stdint.h>
17766 /* Dragonfly defines WCHAR_MIN, WCHAR_MAX only in <wchar.h>. */
17767 #if !(defined WCHAR_MIN && defined WCHAR_MAX)
17768 #error "WCHAR_MIN, WCHAR_MAX not defined in <stdint.h>"
17772 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
17773 included before <wchar.h>. */
17774 #include <stddef.h>
17775 #include <signal.h>
17777 # include <stdio.h>
17779 # include <wchar.h>
17784 int8_t a1 = INT8_MAX;
17785 int8_t a1min = INT8_MIN;
17788 int16_t a2 = INT16_MAX;
17789 int16_t a2min = INT16_MIN;
17792 int32_t a3 = INT32_MAX;
17793 int32_t a3min = INT32_MIN;
17796 int64_t a4 = INT64_MAX;
17797 int64_t a4min = INT64_MIN;
17800 uint8_t b1 = UINT8_MAX;
17802 typedef int b1[(unsigned char) -1 != 255 ? 1 : -1];
17805 uint16_t b2 = UINT16_MAX;
17808 uint32_t b3 = UINT32_MAX;
17811 uint64_t b4 = UINT64_MAX;
17813 int_least8_t c1 = INT8_C (0x7f);
17814 int_least8_t c1max = INT_LEAST8_MAX;
17815 int_least8_t c1min = INT_LEAST8_MIN;
17816 int_least16_t c2 = INT16_C (0x7fff);
17817 int_least16_t c2max = INT_LEAST16_MAX;
17818 int_least16_t c2min = INT_LEAST16_MIN;
17819 int_least32_t c3 = INT32_C (0x7fffffff);
17820 int_least32_t c3max = INT_LEAST32_MAX;
17821 int_least32_t c3min = INT_LEAST32_MIN;
17822 int_least64_t c4 = INT64_C (0x7fffffffffffffff);
17823 int_least64_t c4max = INT_LEAST64_MAX;
17824 int_least64_t c4min = INT_LEAST64_MIN;
17825 uint_least8_t d1 = UINT8_C (0xff);
17826 uint_least8_t d1max = UINT_LEAST8_MAX;
17827 uint_least16_t d2 = UINT16_C (0xffff);
17828 uint_least16_t d2max = UINT_LEAST16_MAX;
17829 uint_least32_t d3 = UINT32_C (0xffffffff);
17830 uint_least32_t d3max = UINT_LEAST32_MAX;
17831 uint_least64_t d4 = UINT64_C (0xffffffffffffffff);
17832 uint_least64_t d4max = UINT_LEAST64_MAX;
17833 int_fast8_t e1 = INT_FAST8_MAX;
17834 int_fast8_t e1min = INT_FAST8_MIN;
17835 int_fast16_t e2 = INT_FAST16_MAX;
17836 int_fast16_t e2min = INT_FAST16_MIN;
17837 int_fast32_t e3 = INT_FAST32_MAX;
17838 int_fast32_t e3min = INT_FAST32_MIN;
17839 int_fast64_t e4 = INT_FAST64_MAX;
17840 int_fast64_t e4min = INT_FAST64_MIN;
17841 uint_fast8_t f1 = UINT_FAST8_MAX;
17842 uint_fast16_t f2 = UINT_FAST16_MAX;
17843 uint_fast32_t f3 = UINT_FAST32_MAX;
17844 uint_fast64_t f4 = UINT_FAST64_MAX;
17846 intptr_t g = INTPTR_MAX;
17847 intptr_t gmin = INTPTR_MIN;
17850 uintptr_t h = UINTPTR_MAX;
17852 intmax_t i = INTMAX_MAX;
17853 uintmax_t j = UINTMAX_MAX;
17855 #include <limits.h> /* for CHAR_BIT */
17856 #define TYPE_MINIMUM(t) \
17857 ((t) ((t) 0 < (t) -1 ? (t) 0 : ~ TYPE_MAXIMUM (t)))
17858 #define TYPE_MAXIMUM(t) \
17859 ((t) ((t) 0 < (t) -1 \
17861 : ((((t) 1 << (sizeof (t) * CHAR_BIT - 2)) - 1) * 2 + 1)))
17864 PTRDIFF_MIN == TYPE_MINIMUM (ptrdiff_t)
17865 && PTRDIFF_MAX == TYPE_MAXIMUM (ptrdiff_t)
17867 /* Detect bug in FreeBSD 6.0 / ia64. */
17868 int check_SIG_ATOMIC:
17869 SIG_ATOMIC_MIN == TYPE_MINIMUM (sig_atomic_t)
17870 && SIG_ATOMIC_MAX == TYPE_MAXIMUM (sig_atomic_t)
17872 int check_SIZE: SIZE_MAX == TYPE_MAXIMUM (size_t) ? 1 : -1;
17874 WCHAR_MIN == TYPE_MINIMUM (wchar_t)
17875 && WCHAR_MAX == TYPE_MAXIMUM (wchar_t)
17877 /* Detect bug in mingw. */
17879 WINT_MIN == TYPE_MINIMUM (wint_t)
17880 && WINT_MAX == TYPE_MAXIMUM (wint_t)
17883 /* Detect bugs in glibc 2.4 and Solaris 10 stdint.h, among others. */
17885 (-1 < UINT8_C (0)) == (-1 < (uint_least8_t) 0) ? 1 : -1;
17886 int check_UINT16_C:
17887 (-1 < UINT16_C (0)) == (-1 < (uint_least16_t) 0) ? 1 : -1;
17889 /* Detect bugs in OpenBSD 3.9 stdint.h. */
17891 int check_uint8: (uint8_t) -1 == UINT8_MAX ? 1 : -1;
17894 int check_uint16: (uint16_t) -1 == UINT16_MAX ? 1 : -1;
17897 int check_uint32: (uint32_t) -1 == UINT32_MAX ? 1 : -1;
17900 int check_uint64: (uint64_t) -1 == UINT64_MAX ? 1 : -1;
17902 int check_uint_least8: (uint_least8_t) -1 == UINT_LEAST8_MAX ? 1 : -1;
17903 int check_uint_least16: (uint_least16_t) -1 == UINT_LEAST16_MAX ? 1 : -1;
17904 int check_uint_least32: (uint_least32_t) -1 == UINT_LEAST32_MAX ? 1 : -1;
17905 int check_uint_least64: (uint_least64_t) -1 == UINT_LEAST64_MAX ? 1 : -1;
17906 int check_uint_fast8: (uint_fast8_t) -1 == UINT_FAST8_MAX ? 1 : -1;
17907 int check_uint_fast16: (uint_fast16_t) -1 == UINT_FAST16_MAX ? 1 : -1;
17908 int check_uint_fast32: (uint_fast32_t) -1 == UINT_FAST32_MAX ? 1 : -1;
17909 int check_uint_fast64: (uint_fast64_t) -1 == UINT_FAST64_MAX ? 1 : -1;
17910 int check_uintptr: (uintptr_t) -1 == UINTPTR_MAX ? 1 : -1;
17911 int check_uintmax: (uintmax_t) -1 == UINTMAX_MAX ? 1 : -1;
17912 int check_size: (size_t) -1 == SIZE_MAX ? 1 : -1;
17923 if ac_fn_c_try_compile "$LINENO"; then :
17924 if test "$cross_compiling" = yes; then :
17925 gl_cv_header_working_stdint_h=yes
17928 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17929 /* end confdefs.h. */
17932 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
17933 #include <stdint.h>
17936 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
17937 included before <wchar.h>. */
17938 #include <stddef.h>
17939 #include <signal.h>
17941 # include <stdio.h>
17943 # include <wchar.h>
17948 #include <string.h>
17949 #define MVAL(macro) MVAL1(macro)
17950 #define MVAL1(expression) #expression
17951 static const char *macro_values[] =
17985 for (mv = macro_values; *mv != NULL; mv++)
17987 const char *value = *mv;
17988 /* Test whether it looks like a cast expression. */
17989 if (strncmp (value, "((unsigned int)"/*)*/, 15) == 0
17990 || strncmp (value, "((unsigned short)"/*)*/, 17) == 0
17991 || strncmp (value, "((unsigned char)"/*)*/, 16) == 0
17992 || strncmp (value, "((int)"/*)*/, 6) == 0
17993 || strncmp (value, "((signed short)"/*)*/, 15) == 0
17994 || strncmp (value, "((signed char)"/*)*/, 14) == 0)
17995 return mv - macro_values + 1;
18003 if ac_fn_c_try_run "$LINENO"; then :
18004 gl_cv_header_working_stdint_h=yes
18006 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18007 conftest.$ac_objext conftest.beam conftest.$ac_ext
18012 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_stdint_h" >&5
18016 $as_echo "$gl_cv_header_working_stdint_h" >&6; }
18018 if test "$gl_cv_header_working_stdint_h" = yes; then
18021 for ac_header in sys/inttypes.h sys/bitypes.h
18023 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
18024 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
18025 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
18026 cat >>confdefs.h <<_ACEOF
18027 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
18034 if test $ac_cv_header_sys_inttypes_h = yes; then
18035 HAVE_SYS_INTTYPES_H=1
18037 HAVE_SYS_INTTYPES_H=0
18040 if test $ac_cv_header_sys_bitypes_h = yes; then
18041 HAVE_SYS_BITYPES_H=1
18043 HAVE_SYS_BITYPES_H=0
18049 if test $APPLE_UNIVERSAL_BUILD = 0; then
18052 for gltype in ptrdiff_t size_t ; do
18053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
18054 $as_echo_n "checking for bit size of $gltype... " >&6; }
18055 if eval \${gl_cv_bitsizeof_${gltype}+:} false; then :
18056 $as_echo_n "(cached) " >&6
18058 if ac_fn_c_compute_int "$LINENO" "sizeof ($gltype) * CHAR_BIT" "result" "
18059 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
18060 included before <wchar.h>. */
18061 #include <stddef.h>
18062 #include <signal.h>
18064 # include <stdio.h>
18066 # include <wchar.h>
18069 #include <limits.h>"; then :
18075 eval gl_cv_bitsizeof_${gltype}=\$result
18078 eval ac_res=\$gl_cv_bitsizeof_${gltype}
18079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18080 $as_echo "$ac_res" >&6; }
18081 eval result=\$gl_cv_bitsizeof_${gltype}
18082 if test $result = unknown; then
18085 GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
18086 cat >>confdefs.h <<_ACEOF
18087 #define BITSIZEOF_${GLTYPE} $result
18090 eval BITSIZEOF_${GLTYPE}=\$result
18097 for gltype in sig_atomic_t wchar_t wint_t ; do
18098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
18099 $as_echo_n "checking for bit size of $gltype... " >&6; }
18100 if eval \${gl_cv_bitsizeof_${gltype}+:} false; then :
18101 $as_echo_n "(cached) " >&6
18103 if ac_fn_c_compute_int "$LINENO" "sizeof ($gltype) * CHAR_BIT" "result" "
18104 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
18105 included before <wchar.h>. */
18106 #include <stddef.h>
18107 #include <signal.h>
18109 # include <stdio.h>
18111 # include <wchar.h>
18114 #include <limits.h>"; then :
18120 eval gl_cv_bitsizeof_${gltype}=\$result
18123 eval ac_res=\$gl_cv_bitsizeof_${gltype}
18124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18125 $as_echo "$ac_res" >&6; }
18126 eval result=\$gl_cv_bitsizeof_${gltype}
18127 if test $result = unknown; then
18130 GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
18131 cat >>confdefs.h <<_ACEOF
18132 #define BITSIZEOF_${GLTYPE} $result
18135 eval BITSIZEOF_${GLTYPE}=\$result
18141 for gltype in sig_atomic_t wchar_t wint_t ; do
18142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gltype is signed" >&5
18143 $as_echo_n "checking whether $gltype is signed... " >&6; }
18144 if eval \${gl_cv_type_${gltype}_signed+:} false; then :
18145 $as_echo_n "(cached) " >&6
18147 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18148 /* end confdefs.h. */
18150 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
18151 included before <wchar.h>. */
18152 #include <stddef.h>
18153 #include <signal.h>
18155 # include <stdio.h>
18157 # include <wchar.h>
18160 int verify[2 * (($gltype) -1 < ($gltype) 0) - 1];
18169 if ac_fn_c_try_compile "$LINENO"; then :
18174 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18175 eval gl_cv_type_${gltype}_signed=\$result
18178 eval ac_res=\$gl_cv_type_${gltype}_signed
18179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18180 $as_echo "$ac_res" >&6; }
18181 eval result=\$gl_cv_type_${gltype}_signed
18182 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
18183 if test "$result" = yes; then
18184 cat >>confdefs.h <<_ACEOF
18185 #define HAVE_SIGNED_${GLTYPE} 1
18188 eval HAVE_SIGNED_${GLTYPE}=1
18190 eval HAVE_SIGNED_${GLTYPE}=0
18195 gl_cv_type_ptrdiff_t_signed=yes
18196 gl_cv_type_size_t_signed=no
18197 if test $APPLE_UNIVERSAL_BUILD = 0; then
18200 for gltype in ptrdiff_t size_t ; do
18201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
18202 $as_echo_n "checking for $gltype integer literal suffix... " >&6; }
18203 if eval \${gl_cv_type_${gltype}_suffix+:} false; then :
18204 $as_echo_n "(cached) " >&6
18206 eval gl_cv_type_${gltype}_suffix=no
18207 eval result=\$gl_cv_type_${gltype}_signed
18208 if test "$result" = yes; then
18213 for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do
18215 '') gltype1='int';;
18216 l) gltype1='long int';;
18217 ll) gltype1='long long int';;
18218 i64) gltype1='__int64';;
18219 u) gltype1='unsigned int';;
18220 ul) gltype1='unsigned long int';;
18221 ull) gltype1='unsigned long long int';;
18222 ui64)gltype1='unsigned __int64';;
18224 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18225 /* end confdefs.h. */
18227 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
18228 included before <wchar.h>. */
18229 #include <stddef.h>
18230 #include <signal.h>
18232 # include <stdio.h>
18234 # include <wchar.h>
18237 extern $gltype foo;
18238 extern $gltype1 foo;
18247 if ac_fn_c_try_compile "$LINENO"; then :
18248 eval gl_cv_type_${gltype}_suffix=\$glsuf
18250 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18251 eval result=\$gl_cv_type_${gltype}_suffix
18252 test "$result" != no && break
18255 eval ac_res=\$gl_cv_type_${gltype}_suffix
18256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18257 $as_echo "$ac_res" >&6; }
18258 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
18259 eval result=\$gl_cv_type_${gltype}_suffix
18260 test "$result" = no && result=
18261 eval ${GLTYPE}_SUFFIX=\$result
18262 cat >>confdefs.h <<_ACEOF
18263 #define ${GLTYPE}_SUFFIX $result
18272 for gltype in sig_atomic_t wchar_t wint_t ; do
18273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
18274 $as_echo_n "checking for $gltype integer literal suffix... " >&6; }
18275 if eval \${gl_cv_type_${gltype}_suffix+:} false; then :
18276 $as_echo_n "(cached) " >&6
18278 eval gl_cv_type_${gltype}_suffix=no
18279 eval result=\$gl_cv_type_${gltype}_signed
18280 if test "$result" = yes; then
18285 for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do
18287 '') gltype1='int';;
18288 l) gltype1='long int';;
18289 ll) gltype1='long long int';;
18290 i64) gltype1='__int64';;
18291 u) gltype1='unsigned int';;
18292 ul) gltype1='unsigned long int';;
18293 ull) gltype1='unsigned long long int';;
18294 ui64)gltype1='unsigned __int64';;
18296 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18297 /* end confdefs.h. */
18299 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
18300 included before <wchar.h>. */
18301 #include <stddef.h>
18302 #include <signal.h>
18304 # include <stdio.h>
18306 # include <wchar.h>
18309 extern $gltype foo;
18310 extern $gltype1 foo;
18319 if ac_fn_c_try_compile "$LINENO"; then :
18320 eval gl_cv_type_${gltype}_suffix=\$glsuf
18322 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18323 eval result=\$gl_cv_type_${gltype}_suffix
18324 test "$result" != no && break
18327 eval ac_res=\$gl_cv_type_${gltype}_suffix
18328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18329 $as_echo "$ac_res" >&6; }
18330 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
18331 eval result=\$gl_cv_type_${gltype}_suffix
18332 test "$result" = no && result=
18333 eval ${GLTYPE}_SUFFIX=\$result
18334 cat >>confdefs.h <<_ACEOF
18335 #define ${GLTYPE}_SUFFIX $result
18342 if test $BITSIZEOF_WINT_T -lt 32; then
18343 BITSIZEOF_WINT_T=32
18349 if test -n "$STDINT_H"; then
18350 GL_GENERATE_STDINT_H_TRUE=
18351 GL_GENERATE_STDINT_H_FALSE='#'
18353 GL_GENERATE_STDINT_H_TRUE='#'
18354 GL_GENERATE_STDINT_H_FALSE=
18362 HAVE_DECL_STRNCASECMP=1;
18375 if test $gl_cv_have_include_next = yes; then
18376 gl_cv_next_string_h='<'string.h'>'
18378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <string.h>" >&5
18379 $as_echo_n "checking absolute name of <string.h>... " >&6; }
18380 if ${gl_cv_next_string_h+:} false; then :
18381 $as_echo_n "(cached) " >&6
18386 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18387 /* end confdefs.h. */
18388 #include <string.h>
18391 aix*) gl_absname_cpp="$ac_cpp -C" ;;
18392 *) gl_absname_cpp="$ac_cpp" ;;
18397 gl_dirsep_regex='[/\\]'
18400 gl_dirsep_regex='\/'
18403 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
18404 gl_header_literal_regex=`echo 'string.h' \
18405 | sed -e "$gl_make_literal_regex_sed"`
18406 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
18407 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
18413 gl_cv_absolute_string_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
18414 sed -n "$gl_absolute_header_sed"`
18416 gl_header=$gl_cv_absolute_string_h
18417 gl_cv_next_string_h='"'$gl_header'"'
18421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_string_h" >&5
18422 $as_echo "$gl_cv_next_string_h" >&6; }
18424 NEXT_STRING_H=$gl_cv_next_string_h
18426 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
18427 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
18428 gl_next_as_first_directive='<'string.h'>'
18430 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
18431 gl_next_as_first_directive=$gl_cv_next_string_h
18433 NEXT_AS_FIRST_DIRECTIVE_STRING_H=$gl_next_as_first_directive
18440 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
18441 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
18442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
18443 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
18444 if eval \${$as_gl_Symbol+:} false; then :
18445 $as_echo_n "(cached) " >&6
18447 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18448 /* end confdefs.h. */
18449 #include <string.h>
18460 if ac_fn_c_try_compile "$LINENO"; then :
18461 eval "$as_gl_Symbol=yes"
18463 eval "$as_gl_Symbol=no"
18465 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18467 eval ac_res=\$$as_gl_Symbol
18468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18469 $as_echo "$ac_res" >&6; }
18470 if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
18471 cat >>confdefs.h <<_ACEOF
18472 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
18475 eval ac_cv_have_decl_$gl_func=yes
18503 if test $gl_cv_have_include_next = yes; then
18504 gl_cv_next_strings_h='<'strings.h'>'
18506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <strings.h>" >&5
18507 $as_echo_n "checking absolute name of <strings.h>... " >&6; }
18508 if ${gl_cv_next_strings_h+:} false; then :
18509 $as_echo_n "(cached) " >&6
18512 if test $ac_cv_header_strings_h = yes; then
18517 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18518 /* end confdefs.h. */
18519 #include <strings.h>
18522 aix*) gl_absname_cpp="$ac_cpp -C" ;;
18523 *) gl_absname_cpp="$ac_cpp" ;;
18528 gl_dirsep_regex='[/\\]'
18531 gl_dirsep_regex='\/'
18534 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
18535 gl_header_literal_regex=`echo 'strings.h' \
18536 | sed -e "$gl_make_literal_regex_sed"`
18537 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
18538 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
18544 gl_cv_absolute_strings_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
18545 sed -n "$gl_absolute_header_sed"`
18547 gl_header=$gl_cv_absolute_strings_h
18548 gl_cv_next_strings_h='"'$gl_header'"'
18550 gl_cv_next_strings_h='<'strings.h'>'
18555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_strings_h" >&5
18556 $as_echo "$gl_cv_next_strings_h" >&6; }
18558 NEXT_STRINGS_H=$gl_cv_next_strings_h
18560 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
18561 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
18562 gl_next_as_first_directive='<'strings.h'>'
18564 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
18565 gl_next_as_first_directive=$gl_cv_next_strings_h
18567 NEXT_AS_FIRST_DIRECTIVE_STRINGS_H=$gl_next_as_first_directive
18572 if test $ac_cv_header_strings_h = yes; then
18580 for gl_func in ffs strcasecmp strncasecmp; do
18581 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
18582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
18583 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
18584 if eval \${$as_gl_Symbol+:} false; then :
18585 $as_echo_n "(cached) " >&6
18587 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18588 /* end confdefs.h. */
18590 /* Minix 3.1.8 has a bug: <sys/types.h> must be included before
18592 #include <sys/types.h>
18593 #include <strings.h>
18604 if ac_fn_c_try_compile "$LINENO"; then :
18605 eval "$as_gl_Symbol=yes"
18607 eval "$as_gl_Symbol=no"
18609 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18611 eval ac_res=\$$as_gl_Symbol
18612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18613 $as_echo "$ac_res" >&6; }
18614 if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
18615 cat >>confdefs.h <<_ACEOF
18616 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
18619 eval ac_cv_have_decl_$gl_func=yes
18625 ac_fn_c_check_decl "$LINENO" "strndup" "ac_cv_have_decl_strndup" "$ac_includes_default"
18626 if test "x$ac_cv_have_decl_strndup" = xyes; then :
18632 cat >>confdefs.h <<_ACEOF
18633 #define HAVE_DECL_STRNDUP $ac_have_decl
18643 ac_fn_c_check_decl "$LINENO" "strnlen" "ac_cv_have_decl_strnlen" "$ac_includes_default"
18644 if test "x$ac_cv_have_decl_strnlen" = xyes; then :
18650 cat >>confdefs.h <<_ACEOF
18651 #define HAVE_DECL_STRNLEN $ac_have_decl
18656 ac_fn_c_check_decl "$LINENO" "strtok_r" "ac_cv_have_decl_strtok_r" "$ac_includes_default"
18657 if test "x$ac_cv_have_decl_strtok_r" = xyes; then :
18663 cat >>confdefs.h <<_ACEOF
18664 #define HAVE_DECL_STRTOK_R $ac_have_decl
18673 GNULIB_GETPEERNAME=0;
18674 GNULIB_GETSOCKNAME=0;
18675 GNULIB_GETSOCKOPT=0;
18681 GNULIB_SETSOCKOPT=0;
18684 HAVE_STRUCT_SOCKADDR_STORAGE=1;
18685 HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY=1;
18687 HAVE_SA_FAMILY_T=1;
18699 GNULIB_NANOSLEEP=0;
18703 HAVE_DECL_LOCALTIME_R=1;
18707 REPLACE_LOCALTIME_R=GNULIB_PORTCHECK;
18708 REPLACE_MKTIME=GNULIB_PORTCHECK;
18709 REPLACE_NANOSLEEP=GNULIB_PORTCHECK;
18710 REPLACE_TIMEGM=GNULIB_PORTCHECK;
18712 : ${GNULIB_GETTIMEOFDAY=0};
18714 REPLACE_LOCALTIME=0;
18724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <time.h>" >&5
18725 $as_echo_n "checking for struct timespec in <time.h>... " >&6; }
18726 if ${gl_cv_sys_struct_timespec_in_time_h+:} false; then :
18727 $as_echo_n "(cached) " >&6
18729 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18730 /* end confdefs.h. */
18736 static struct timespec x; x.tv_sec = x.tv_nsec;
18741 if ac_fn_c_try_compile "$LINENO"; then :
18742 gl_cv_sys_struct_timespec_in_time_h=yes
18744 gl_cv_sys_struct_timespec_in_time_h=no
18746 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_time_h" >&5
18749 $as_echo "$gl_cv_sys_struct_timespec_in_time_h" >&6; }
18751 TIME_H_DEFINES_STRUCT_TIMESPEC=0
18752 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC=0
18753 PTHREAD_H_DEFINES_STRUCT_TIMESPEC=0
18754 if test $gl_cv_sys_struct_timespec_in_time_h = yes; then
18755 TIME_H_DEFINES_STRUCT_TIMESPEC=1
18757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <sys/time.h>" >&5
18758 $as_echo_n "checking for struct timespec in <sys/time.h>... " >&6; }
18759 if ${gl_cv_sys_struct_timespec_in_sys_time_h+:} false; then :
18760 $as_echo_n "(cached) " >&6
18762 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18763 /* end confdefs.h. */
18764 #include <sys/time.h>
18769 static struct timespec x; x.tv_sec = x.tv_nsec;
18774 if ac_fn_c_try_compile "$LINENO"; then :
18775 gl_cv_sys_struct_timespec_in_sys_time_h=yes
18777 gl_cv_sys_struct_timespec_in_sys_time_h=no
18779 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_sys_time_h" >&5
18782 $as_echo "$gl_cv_sys_struct_timespec_in_sys_time_h" >&6; }
18783 if test $gl_cv_sys_struct_timespec_in_sys_time_h = yes; then
18784 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC=1
18786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <pthread.h>" >&5
18787 $as_echo_n "checking for struct timespec in <pthread.h>... " >&6; }
18788 if ${gl_cv_sys_struct_timespec_in_pthread_h+:} false; then :
18789 $as_echo_n "(cached) " >&6
18791 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18792 /* end confdefs.h. */
18793 #include <pthread.h>
18798 static struct timespec x; x.tv_sec = x.tv_nsec;
18803 if ac_fn_c_try_compile "$LINENO"; then :
18804 gl_cv_sys_struct_timespec_in_pthread_h=yes
18806 gl_cv_sys_struct_timespec_in_pthread_h=no
18808 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_pthread_h" >&5
18811 $as_echo "$gl_cv_sys_struct_timespec_in_pthread_h" >&6; }
18812 if test $gl_cv_sys_struct_timespec_in_pthread_h = yes; then
18813 PTHREAD_H_DEFINES_STRUCT_TIMESPEC=1
18832 if test $gl_cv_have_include_next = yes; then
18833 gl_cv_next_time_h='<'time.h'>'
18835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <time.h>" >&5
18836 $as_echo_n "checking absolute name of <time.h>... " >&6; }
18837 if ${gl_cv_next_time_h+:} false; then :
18838 $as_echo_n "(cached) " >&6
18843 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18844 /* end confdefs.h. */
18848 aix*) gl_absname_cpp="$ac_cpp -C" ;;
18849 *) gl_absname_cpp="$ac_cpp" ;;
18854 gl_dirsep_regex='[/\\]'
18857 gl_dirsep_regex='\/'
18860 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
18861 gl_header_literal_regex=`echo 'time.h' \
18862 | sed -e "$gl_make_literal_regex_sed"`
18863 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
18864 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
18870 gl_cv_absolute_time_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
18871 sed -n "$gl_absolute_header_sed"`
18873 gl_header=$gl_cv_absolute_time_h
18874 gl_cv_next_time_h='"'$gl_header'"'
18878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_time_h" >&5
18879 $as_echo "$gl_cv_next_time_h" >&6; }
18881 NEXT_TIME_H=$gl_cv_next_time_h
18883 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
18884 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
18885 gl_next_as_first_directive='<'time.h'>'
18887 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
18888 gl_next_as_first_directive=$gl_cv_next_time_h
18890 NEXT_AS_FIRST_DIRECTIVE_TIME_H=$gl_next_as_first_directive
18908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wint_t" >&5
18909 $as_echo_n "checking for wint_t... " >&6; }
18910 if ${gt_cv_c_wint_t+:} false; then :
18911 $as_echo_n "(cached) " >&6
18913 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18914 /* end confdefs.h. */
18916 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
18918 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be included
18919 before <wchar.h>. */
18920 #include <stddef.h>
18924 wint_t foo = (wchar_t)'\0';
18933 if ac_fn_c_try_compile "$LINENO"; then :
18938 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wint_t" >&5
18941 $as_echo "$gt_cv_c_wint_t" >&6; }
18942 if test $gt_cv_c_wint_t = yes; then
18944 $as_echo "#define HAVE_WINT_T 1" >>confdefs.h
18961 if test $ac_cv_header_features_h = yes; then
18969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
18970 $as_echo_n "checking for inttypes.h... " >&6; }
18971 if ${gl_cv_header_inttypes_h+:} false; then :
18972 $as_echo_n "(cached) " >&6
18974 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18975 /* end confdefs.h. */
18976 #include <sys/types.h>
18977 #include <inttypes.h>
18981 uintmax_t i = (uintmax_t) -1; return !i;
18986 if ac_fn_c_try_compile "$LINENO"; then :
18987 gl_cv_header_inttypes_h=yes
18989 gl_cv_header_inttypes_h=no
18991 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_inttypes_h" >&5
18994 $as_echo "$gl_cv_header_inttypes_h" >&6; }
18995 if test $gl_cv_header_inttypes_h = yes; then
18997 cat >>confdefs.h <<_ACEOF
18998 #define HAVE_INTTYPES_H_WITH_UINTMAX 1
19004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint.h" >&5
19005 $as_echo_n "checking for stdint.h... " >&6; }
19006 if ${gl_cv_header_stdint_h+:} false; then :
19007 $as_echo_n "(cached) " >&6
19009 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19010 /* end confdefs.h. */
19011 #include <sys/types.h>
19012 #include <stdint.h>
19016 uintmax_t i = (uintmax_t) -1; return !i;
19021 if ac_fn_c_try_compile "$LINENO"; then :
19022 gl_cv_header_stdint_h=yes
19024 gl_cv_header_stdint_h=no
19026 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_stdint_h" >&5
19029 $as_echo "$gl_cv_header_stdint_h" >&6; }
19030 if test $gl_cv_header_stdint_h = yes; then
19032 cat >>confdefs.h <<_ACEOF
19033 #define HAVE_STDINT_H_WITH_UINTMAX 1
19041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intmax_t" >&5
19042 $as_echo_n "checking for intmax_t... " >&6; }
19043 if ${gt_cv_c_intmax_t+:} false; then :
19044 $as_echo_n "(cached) " >&6
19046 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19047 /* end confdefs.h. */
19049 #include <stddef.h>
19050 #include <stdlib.h>
19051 #if HAVE_STDINT_H_WITH_UINTMAX
19052 #include <stdint.h>
19054 #if HAVE_INTTYPES_H_WITH_UINTMAX
19055 #include <inttypes.h>
19061 intmax_t x = -1; return !x;
19066 if ac_fn_c_try_compile "$LINENO"; then :
19067 gt_cv_c_intmax_t=yes
19069 gt_cv_c_intmax_t=no
19071 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_intmax_t" >&5
19074 $as_echo "$gt_cv_c_intmax_t" >&6; }
19075 if test $gt_cv_c_intmax_t = yes; then
19077 $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
19081 test $ac_cv_type_long_long_int = yes \
19082 && ac_type='long long' \
19085 cat >>confdefs.h <<_ACEOF
19086 #define intmax_t $ac_type
19092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the exponent in a 'double'" >&5
19093 $as_echo_n "checking where to find the exponent in a 'double'... " >&6; }
19094 if ${gl_cv_cc_double_expbit0+:} false; then :
19095 $as_echo_n "(cached) " >&6
19098 if test "$cross_compiling" = yes; then :
19100 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19101 /* end confdefs.h. */
19103 #if defined arm || defined __arm || defined __arm__
19108 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19109 $EGREP "mixed_endianness" >/dev/null 2>&1; then :
19110 gl_cv_cc_double_expbit0="unknown"
19114 if ${ac_cv_c_bigendian+:} false; then :
19115 $as_echo_n "(cached) " >&6
19117 ac_cv_c_bigendian=unknown
19118 # See if we're dealing with a universal compiler.
19119 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19120 /* end confdefs.h. */
19121 #ifndef __APPLE_CC__
19122 not a universal capable compiler
19127 if ac_fn_c_try_compile "$LINENO"; then :
19129 # Check for potential -arch flags. It is not universal unless
19130 # there are at least two -arch flags with different values.
19133 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
19134 if test -n "$ac_prev"; then
19136 i?86 | x86_64 | ppc | ppc64)
19137 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
19140 ac_cv_c_bigendian=universal
19146 elif test "x$ac_word" = "x-arch"; then
19151 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19152 if test $ac_cv_c_bigendian = unknown; then
19153 # See if sys/param.h defines the BYTE_ORDER macro.
19154 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19155 /* end confdefs.h. */
19156 #include <sys/types.h>
19157 #include <sys/param.h>
19162 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
19163 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
19165 bogus endian macros
19172 if ac_fn_c_try_compile "$LINENO"; then :
19173 # It does; now see whether it defined to BIG_ENDIAN or not.
19174 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19175 /* end confdefs.h. */
19176 #include <sys/types.h>
19177 #include <sys/param.h>
19182 #if BYTE_ORDER != BIG_ENDIAN
19190 if ac_fn_c_try_compile "$LINENO"; then :
19191 ac_cv_c_bigendian=yes
19193 ac_cv_c_bigendian=no
19195 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19197 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19199 if test $ac_cv_c_bigendian = unknown; then
19200 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
19201 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19202 /* end confdefs.h. */
19203 #include <limits.h>
19208 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
19209 bogus endian macros
19216 if ac_fn_c_try_compile "$LINENO"; then :
19217 # It does; now see whether it defined to _BIG_ENDIAN or not.
19218 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19219 /* end confdefs.h. */
19220 #include <limits.h>
19225 #ifndef _BIG_ENDIAN
19233 if ac_fn_c_try_compile "$LINENO"; then :
19234 ac_cv_c_bigendian=yes
19236 ac_cv_c_bigendian=no
19238 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19240 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19242 if test $ac_cv_c_bigendian = unknown; then
19243 # Compile a test program.
19244 if test "$cross_compiling" = yes; then :
19245 # Try to guess by grepping values from an object file.
19246 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19247 /* end confdefs.h. */
19248 short int ascii_mm[] =
19249 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
19250 short int ascii_ii[] =
19251 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
19252 int use_ascii (int i) {
19253 return ascii_mm[i] + ascii_ii[i];
19255 short int ebcdic_ii[] =
19256 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
19257 short int ebcdic_mm[] =
19258 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
19259 int use_ebcdic (int i) {
19260 return ebcdic_mm[i] + ebcdic_ii[i];
19267 return use_ascii (foo) == use_ebcdic (foo);
19272 if ac_fn_c_try_compile "$LINENO"; then :
19273 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
19274 ac_cv_c_bigendian=yes
19276 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
19277 if test "$ac_cv_c_bigendian" = unknown; then
19278 ac_cv_c_bigendian=no
19280 # finding both strings is unlikely to happen, but who knows?
19281 ac_cv_c_bigendian=unknown
19285 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19287 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19288 /* end confdefs.h. */
19289 $ac_includes_default
19294 /* Are we little or big endian? From Harbison&Steele. */
19298 char c[sizeof (long int)];
19301 return u.c[sizeof (long int) - 1] == 1;
19307 if ac_fn_c_try_run "$LINENO"; then :
19308 ac_cv_c_bigendian=no
19310 ac_cv_c_bigendian=yes
19312 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19313 conftest.$ac_objext conftest.beam conftest.$ac_ext
19319 case $ac_cv_c_bigendian in #(
19321 gl_cv_cc_double_expbit0="word 0 bit 20";; #(
19323 gl_cv_cc_double_expbit0="word 1 bit 20" ;; #(
19326 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
19330 gl_cv_cc_double_expbit0="unknown" ;;
19339 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19340 /* end confdefs.h. */
19343 #include <stddef.h>
19345 #include <string.h>
19347 ((sizeof (double) + sizeof (unsigned int) - 1) / sizeof (unsigned int))
19348 typedef union { double value; unsigned int word[NWORDS]; } memory_double;
19349 static unsigned int ored_words[NWORDS];
19350 static unsigned int anded_words[NWORDS];
19351 static void add_to_ored_words (double x)
19355 /* Clear it first, in case sizeof (double) < sizeof (memory_double). */
19356 memset (&m, 0, sizeof (memory_double));
19358 for (i = 0; i < NWORDS; i++)
19360 ored_words[i] |= m.word[i];
19361 anded_words[i] &= m.word[i];
19367 FILE *fp = fopen ("conftest.out", "w");
19370 for (j = 0; j < NWORDS; j++)
19371 anded_words[j] = ~ (unsigned int) 0;
19372 add_to_ored_words (0.25);
19373 add_to_ored_words (0.5);
19374 add_to_ored_words (1.0);
19375 add_to_ored_words (2.0);
19376 add_to_ored_words (4.0);
19377 /* Remove bits that are common (e.g. if representation of the first mantissa
19378 bit is explicit). */
19379 for (j = 0; j < NWORDS; j++)
19380 ored_words[j] &= ~anded_words[j];
19381 /* Now find the nonzero word. */
19382 for (j = 0; j < NWORDS; j++)
19383 if (ored_words[j] != 0)
19388 for (i = j + 1; i < NWORDS; i++)
19389 if (ored_words[i] != 0)
19391 fprintf (fp, "unknown");
19392 return (fclose (fp) != 0);
19395 if ((ored_words[j] >> i) & 1)
19397 fprintf (fp, "word %d bit %d", (int) j, (int) i);
19398 return (fclose (fp) != 0);
19401 fprintf (fp, "unknown");
19402 return (fclose (fp) != 0);
19406 if ac_fn_c_try_run "$LINENO"; then :
19407 gl_cv_cc_double_expbit0=`cat conftest.out`
19409 gl_cv_cc_double_expbit0="unknown"
19411 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19412 conftest.$ac_objext conftest.beam conftest.$ac_ext
19418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_double_expbit0" >&5
19419 $as_echo "$gl_cv_cc_double_expbit0" >&6; }
19420 case "$gl_cv_cc_double_expbit0" in
19422 word=`echo "$gl_cv_cc_double_expbit0" | sed -e 's/word //' -e 's/ bit.*//'`
19423 bit=`echo "$gl_cv_cc_double_expbit0" | sed -e 's/word.*bit //'`
19425 cat >>confdefs.h <<_ACEOF
19426 #define DBL_EXPBIT0_WORD $word
19430 cat >>confdefs.h <<_ACEOF
19431 #define DBL_EXPBIT0_BIT $bit
19442 for ac_func in snprintf strnlen wcslen wcsnlen mbrtowc wcrtomb
19444 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19445 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
19446 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
19447 cat >>confdefs.h <<_ACEOF
19448 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19454 ac_fn_c_check_decl "$LINENO" "_snprintf" "ac_cv_have_decl__snprintf" "#include <stdio.h>
19456 if test "x$ac_cv_have_decl__snprintf" = xyes; then :
19462 cat >>confdefs.h <<_ACEOF
19463 #define HAVE_DECL__SNPRINTF $ac_have_decl
19468 case "$gl_cv_func_snprintf_retval_c99" in
19471 $as_echo "#define HAVE_SNPRINTF_RETVAL_C99 1" >>confdefs.h
19477 XGETTEXT_EXTRA_OPTIONS=
19480 ac_fn_c_check_decl "$LINENO" "vsnprintf" "ac_cv_have_decl_vsnprintf" "$ac_includes_default"
19481 if test "x$ac_cv_have_decl_vsnprintf" = xyes; then :
19487 cat >>confdefs.h <<_ACEOF
19488 #define HAVE_DECL_VSNPRINTF $ac_have_decl
19498 GNULIB_MBSRTOWCS=0;
19499 GNULIB_MBSNRTOWCS=0;
19501 GNULIB_WCSRTOMBS=0;
19502 GNULIB_WCSNRTOMBS=0;
19519 GNULIB_WCSCASECMP=0;
19520 GNULIB_WCSNCASECMP=0;
19557 HAVE_WCSNCASECMP=1;
19570 HAVE_DECL_WCWIDTH=1;
19571 REPLACE_MBSTATE_T=0;
19577 REPLACE_MBSRTOWCS=0;
19578 REPLACE_MBSNRTOWCS=0;
19580 REPLACE_WCSRTOMBS=0;
19581 REPLACE_WCSNRTOMBS=0;
19583 REPLACE_WCSWIDTH=0;
19586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <wchar.h> uses 'inline' correctly" >&5
19587 $as_echo_n "checking whether <wchar.h> uses 'inline' correctly... " >&6; }
19588 if ${gl_cv_header_wchar_h_correct_inline+:} false; then :
19589 $as_echo_n "(cached) " >&6
19591 gl_cv_header_wchar_h_correct_inline=yes
19592 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19593 /* end confdefs.h. */
19595 #define wcstod renamed_wcstod
19596 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
19598 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
19599 included before <wchar.h>. */
19600 #include <stddef.h>
19604 extern int zero (void);
19605 int main () { return zero(); }
19608 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
19609 (eval $ac_compile) 2>&5
19611 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19612 test $ac_status = 0; }; then
19613 mv conftest.$ac_objext conftest1.$ac_objext
19614 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19615 /* end confdefs.h. */
19617 #define wcstod renamed_wcstod
19618 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
19620 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
19621 included before <wchar.h>. */
19622 #include <stddef.h>
19626 int zero (void) { return 0; }
19629 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
19630 (eval $ac_compile) 2>&5
19632 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19633 test $ac_status = 0; }; then
19634 mv conftest.$ac_objext conftest2.$ac_objext
19635 if $CC -o conftest$ac_exeext $CFLAGS $LDFLAGS conftest1.$ac_objext conftest2.$ac_objext $LIBS >&5 2>&1; then
19638 gl_cv_header_wchar_h_correct_inline=no
19642 rm -f conftest1.$ac_objext conftest2.$ac_objext conftest$ac_exeext
19645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_wchar_h_correct_inline" >&5
19646 $as_echo "$gl_cv_header_wchar_h_correct_inline" >&6; }
19647 if test $gl_cv_header_wchar_h_correct_inline = no; then
19648 as_fn_error $? "<wchar.h> cannot be used with this compiler ($CC $CFLAGS $CPPFLAGS).
19649 This is a known interoperability problem of glibc <= 2.5 with gcc >= 4.3 in
19650 C99 mode. You have four options:
19651 - Add the flag -fgnu89-inline to CC and reconfigure, or
19652 - Fix your include files, using parts of
19653 <http://sourceware.org/git/?p=glibc.git;a=commitdiff;h=b037a293a48718af30d706c2e18c929d0e69a621>, or
19654 - Use a gcc version older than 4.3, or
19655 - Don't use the flags -std=c99 or -std=gnu99.
19656 Configuration aborted." "$LINENO" 5
19661 GNULIB_NONBLOCKING=0;
19672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fcntl.h" >&5
19673 $as_echo_n "checking for working fcntl.h... " >&6; }
19674 if ${gl_cv_header_working_fcntl_h+:} false; then :
19675 $as_echo_n "(cached) " >&6
19677 if test "$cross_compiling" = yes; then :
19678 gl_cv_header_working_fcntl_h=cross-compiling
19680 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19681 /* end confdefs.h. */
19682 #include <sys/types.h>
19683 #include <sys/stat.h>
19684 #include <unistd.h>
19687 #define O_NOATIME 0
19690 #define O_NOFOLLOW 0
19692 static int const constants[] =
19694 O_CREAT, O_EXCL, O_NOCTTY, O_TRUNC, O_APPEND,
19695 O_NONBLOCK, O_SYNC, O_ACCMODE, O_RDONLY, O_RDWR, O_WRONLY
19702 int status = !constants;
19704 static char const sym[] = "conftest.sym";
19705 if (symlink (".", sym) != 0
19706 || close (open (sym, O_RDONLY | O_NOFOLLOW)) == 0)
19711 static char const file[] = "confdefs.h";
19712 int fd = open (file, O_RDONLY | O_NOATIME);
19714 struct stat st0, st1;
19716 || fstat (fd, &st0) != 0
19718 || read (fd, &c, 1) != 1
19720 || stat (file, &st1) != 0
19721 || st0.st_atime != st1.st_atime)
19729 if ac_fn_c_try_run "$LINENO"; then :
19730 gl_cv_header_working_fcntl_h=yes
19733 32) gl_cv_header_working_fcntl_h='no (bad O_NOFOLLOW)';; #(
19734 64) gl_cv_header_working_fcntl_h='no (bad O_NOATIME)';; #(
19735 96) gl_cv_header_working_fcntl_h='no (bad O_NOATIME, O_NOFOLLOW)';; #(
19736 *) gl_cv_header_working_fcntl_h='no';;
19739 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19740 conftest.$ac_objext conftest.beam conftest.$ac_ext
19744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_fcntl_h" >&5
19745 $as_echo "$gl_cv_header_working_fcntl_h" >&6; }
19747 case $gl_cv_header_working_fcntl_h in #(
19748 *O_NOATIME* | no | cross-compiling) ac_val=0;; #(
19752 cat >>confdefs.h <<_ACEOF
19753 #define HAVE_WORKING_O_NOATIME $ac_val
19757 case $gl_cv_header_working_fcntl_h in #(
19758 *O_NOFOLLOW* | no | cross-compiling) ac_val=0;; #(
19762 cat >>confdefs.h <<_ACEOF
19763 #define HAVE_WORKING_O_NOFOLLOW $ac_val
19770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ungetc works on arbitrary bytes" >&5
19771 $as_echo_n "checking whether ungetc works on arbitrary bytes... " >&6; }
19772 if ${gl_cv_func_ungetc_works+:} false; then :
19773 $as_echo_n "(cached) " >&6
19775 if test "$cross_compiling" = yes; then :
19777 # Guess yes on glibc systems.
19778 *-gnu*) gl_cv_func_ungetc_works="guessing yes" ;;
19779 # If we don't know, assume the worst.
19780 *) gl_cv_func_ungetc_works="guessing no" ;;
19784 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19785 /* end confdefs.h. */
19793 if (!(f = fopen ("conftest.tmp", "w+"))) return 1;
19794 if (fputs ("abc", f) < 0) return 2;
19796 if (fgetc (f) != 'a') return 3;
19797 if (fgetc (f) != 'b') return 4;
19798 if (ungetc ('d', f) != 'd') return 5;
19799 if (ftell (f) != 1) return 6;
19800 if (fgetc (f) != 'd') return 7;
19801 if (ftell (f) != 2) return 8;
19802 if (fseek (f, 0, SEEK_CUR) != 0) return 9;
19803 if (ftell (f) != 2) return 10;
19804 if (fgetc (f) != 'c') return 11;
19805 fclose (f); remove ("conftest.tmp");
19810 if ac_fn_c_try_run "$LINENO"; then :
19811 gl_cv_func_ungetc_works=yes
19813 gl_cv_func_ungetc_works=no
19815 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19816 conftest.$ac_objext conftest.beam conftest.$ac_ext
19821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_ungetc_works" >&5
19822 $as_echo "$gl_cv_func_ungetc_works" >&6; }
19823 case "$gl_cv_func_ungetc_works" in
19827 $as_echo "#define FUNC_UNGETC_BROKEN 1" >>confdefs.h
19840 GNULIB_STRTOIMAX=0;
19841 GNULIB_STRTOUMAX=0;
19842 HAVE_DECL_IMAXABS=1;
19843 HAVE_DECL_IMAXDIV=1;
19844 HAVE_DECL_STRTOIMAX=1;
19845 HAVE_DECL_STRTOUMAX=1;
19846 REPLACE_STRTOIMAX=0;
19847 REPLACE_STRTOUMAX=0;
19848 INT32_MAX_LT_INTMAX_MAX=1;
19849 INT64_MAX_EQ_LONG_MAX='defined _LP64';
19850 PRI_MACROS_BROKEN=0;
19851 PRIPTR_PREFIX=__PRIPTR_PREFIX;
19852 UINT32_MAX_LT_UINTMAX_MAX=1;
19853 UINT64_MAX_EQ_ULONG_MAX='defined _LP64';
19881 if test $gl_cv_have_include_next = yes; then
19882 gl_cv_next_inttypes_h='<'inttypes.h'>'
19884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <inttypes.h>" >&5
19885 $as_echo_n "checking absolute name of <inttypes.h>... " >&6; }
19886 if ${gl_cv_next_inttypes_h+:} false; then :
19887 $as_echo_n "(cached) " >&6
19890 if test $ac_cv_header_inttypes_h = yes; then
19895 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19896 /* end confdefs.h. */
19897 #include <inttypes.h>
19900 aix*) gl_absname_cpp="$ac_cpp -C" ;;
19901 *) gl_absname_cpp="$ac_cpp" ;;
19906 gl_dirsep_regex='[/\\]'
19909 gl_dirsep_regex='\/'
19912 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
19913 gl_header_literal_regex=`echo 'inttypes.h' \
19914 | sed -e "$gl_make_literal_regex_sed"`
19915 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
19916 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
19922 gl_cv_absolute_inttypes_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
19923 sed -n "$gl_absolute_header_sed"`
19925 gl_header=$gl_cv_absolute_inttypes_h
19926 gl_cv_next_inttypes_h='"'$gl_header'"'
19928 gl_cv_next_inttypes_h='<'inttypes.h'>'
19933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_inttypes_h" >&5
19934 $as_echo "$gl_cv_next_inttypes_h" >&6; }
19936 NEXT_INTTYPES_H=$gl_cv_next_inttypes_h
19938 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
19939 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
19940 gl_next_as_first_directive='<'inttypes.h'>'
19942 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
19943 gl_next_as_first_directive=$gl_cv_next_inttypes_h
19945 NEXT_AS_FIRST_DIRECTIVE_INTTYPES_H=$gl_next_as_first_directive
19954 for gl_func in imaxabs imaxdiv strtoimax strtoumax; do
19955 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
19956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
19957 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
19958 if eval \${$as_gl_Symbol+:} false; then :
19959 $as_echo_n "(cached) " >&6
19961 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19962 /* end confdefs.h. */
19963 #include <inttypes.h>
19974 if ac_fn_c_try_compile "$LINENO"; then :
19975 eval "$as_gl_Symbol=yes"
19977 eval "$as_gl_Symbol=no"
19979 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19981 eval ac_res=\$$as_gl_Symbol
19982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
19983 $as_echo "$ac_res" >&6; }
19984 if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
19985 cat >>confdefs.h <<_ACEOF
19986 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
19989 eval ac_cv_have_decl_$gl_func=yes
19995 for ac_header in inttypes.h
19997 ac_fn_c_check_header_mongrel "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default"
19998 if test "x$ac_cv_header_inttypes_h" = xyes; then :
19999 cat >>confdefs.h <<_ACEOF
20000 #define HAVE_INTTYPES_H 1
20007 if test $ac_cv_header_inttypes_h = yes; then
20008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the inttypes.h PRIxNN macros are broken" >&5
20009 $as_echo_n "checking whether the inttypes.h PRIxNN macros are broken... " >&6; }
20010 if ${gt_cv_inttypes_pri_broken+:} false; then :
20011 $as_echo_n "(cached) " >&6
20014 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20015 /* end confdefs.h. */
20016 #include <inttypes.h>
20029 if ac_fn_c_try_compile "$LINENO"; then :
20030 gt_cv_inttypes_pri_broken=no
20032 gt_cv_inttypes_pri_broken=yes
20034 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_inttypes_pri_broken" >&5
20038 $as_echo "$gt_cv_inttypes_pri_broken" >&6; }
20040 if test "$gt_cv_inttypes_pri_broken" = yes; then
20042 cat >>confdefs.h <<_ACEOF
20043 #define PRI_MACROS_BROKEN 1
20046 PRI_MACROS_BROKEN=1
20048 PRI_MACROS_BROKEN=0
20059 GL_COND_LIBTOOL_TRUE=
20060 GL_COND_LIBTOOL_FALSE='#'
20062 GL_COND_LIBTOOL_TRUE='#'
20063 GL_COND_LIBTOOL_FALSE=
20066 gl_cond_libtool=true
20077 gl_source_base='gl'
20078 LTALLOCA=`echo "$ALLOCA" | sed -e 's/\.[^.]* /.lo /g;s/\.[^.]*$/.lo/'`
20082 if test $ac_cv_func_alloca_works = no; then
20086 # Define an additional variable used in the Makefile substitution.
20087 if test $ac_cv_working_alloca_h = yes; then
20088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca as a compiler built-in" >&5
20089 $as_echo_n "checking for alloca as a compiler built-in... " >&6; }
20090 if ${gl_cv_rpl_alloca+:} false; then :
20091 $as_echo_n "(cached) " >&6
20094 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20095 /* end confdefs.h. */
20097 #if defined __GNUC__ || defined _AIX || defined _MSC_VER
20102 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20103 $EGREP "Need own alloca" >/dev/null 2>&1; then :
20104 gl_cv_rpl_alloca=yes
20106 gl_cv_rpl_alloca=no
20112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_rpl_alloca" >&5
20113 $as_echo "$gl_cv_rpl_alloca" >&6; }
20114 if test $gl_cv_rpl_alloca = yes; then
20116 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
20126 if test -n "$ALLOCA_H"; then
20127 GL_GENERATE_ALLOCA_H_TRUE=
20128 GL_GENERATE_ALLOCA_H_FALSE='#'
20130 GL_GENERATE_ALLOCA_H_TRUE='#'
20131 GL_GENERATE_ALLOCA_H_FALSE=
20141 for ac_header in byteswap.h
20143 ac_fn_c_check_header_mongrel "$LINENO" "byteswap.h" "ac_cv_header_byteswap_h" "$ac_includes_default"
20144 if test "x$ac_cv_header_byteswap_h" = xyes; then :
20145 cat >>confdefs.h <<_ACEOF
20146 #define HAVE_BYTESWAP_H 1
20153 BYTESWAP_H='byteswap.h'
20160 if test -n "$BYTESWAP_H"; then
20161 GL_GENERATE_BYTESWAP_H_TRUE=
20162 GL_GENERATE_BYTESWAP_H_FALSE='#'
20164 GL_GENERATE_BYTESWAP_H_TRUE='#'
20165 GL_GENERATE_BYTESWAP_H_FALSE=
20175 REPLACE_FLOAT_LDBL=0
20177 aix* | beos* | openbsd* | mirbsd* | irix*)
20181 case "$host_cpu" in
20186 # On x86_64 systems, the C compiler may still be generating
20188 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20189 /* end confdefs.h. */
20190 #if defined __LP64__ || defined __x86_64__ || defined __amd64__
20194 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20195 $EGREP "yes" >/dev/null 2>&1; then :
20206 case "$host_cpu" in
20214 aix* | freebsd* | linux*)
20215 if test -n "$FLOAT_H"; then
20216 REPLACE_FLOAT_LDBL=1
20222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether conversion from 'int' to 'long double' works" >&5
20223 $as_echo_n "checking whether conversion from 'int' to 'long double' works... " >&6; }
20224 if ${gl_cv_func_itold_works+:} false; then :
20225 $as_echo_n "(cached) " >&6
20228 if test "$cross_compiling" = yes; then :
20231 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20232 /* end confdefs.h. */
20233 #if defined __LP64__ || defined __arch64__
20237 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20238 $EGREP "yes" >/dev/null 2>&1; then :
20239 gl_cv_func_itold_works="guessing no"
20241 gl_cv_func_itold_works="guessing yes"
20246 *) gl_cv_func_itold_works="guessing yes" ;;
20250 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20251 /* end confdefs.h. */
20254 volatile long double ld;
20263 if ac_fn_c_try_run "$LINENO"; then :
20264 gl_cv_func_itold_works=yes
20266 gl_cv_func_itold_works=no
20268 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20269 conftest.$ac_objext conftest.beam conftest.$ac_ext
20274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_itold_works" >&5
20275 $as_echo "$gl_cv_func_itold_works" >&6; }
20276 case "$gl_cv_func_itold_works" in
20283 if test -n "$FLOAT_H"; then
20292 if test $gl_cv_have_include_next = yes; then
20293 gl_cv_next_float_h='<'float.h'>'
20295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <float.h>" >&5
20296 $as_echo_n "checking absolute name of <float.h>... " >&6; }
20297 if ${gl_cv_next_float_h+:} false; then :
20298 $as_echo_n "(cached) " >&6
20303 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20304 /* end confdefs.h. */
20308 aix*) gl_absname_cpp="$ac_cpp -C" ;;
20309 *) gl_absname_cpp="$ac_cpp" ;;
20314 gl_dirsep_regex='[/\\]'
20317 gl_dirsep_regex='\/'
20320 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
20321 gl_header_literal_regex=`echo 'float.h' \
20322 | sed -e "$gl_make_literal_regex_sed"`
20323 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
20324 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
20330 gl_cv_absolute_float_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
20331 sed -n "$gl_absolute_header_sed"`
20333 gl_header=$gl_cv_absolute_float_h
20334 gl_cv_next_float_h='"'$gl_header'"'
20338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_float_h" >&5
20339 $as_echo "$gl_cv_next_float_h" >&6; }
20341 NEXT_FLOAT_H=$gl_cv_next_float_h
20343 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
20344 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
20345 gl_next_as_first_directive='<'float.h'>'
20347 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
20348 gl_next_as_first_directive=$gl_cv_next_float_h
20350 NEXT_AS_FIRST_DIRECTIVE_FLOAT_H=$gl_next_as_first_directive
20357 if test -n "$FLOAT_H"; then
20358 GL_GENERATE_FLOAT_H_TRUE=
20359 GL_GENERATE_FLOAT_H_FALSE='#'
20361 GL_GENERATE_FLOAT_H_TRUE='#'
20362 GL_GENERATE_FLOAT_H_FALSE=
20367 if test $REPLACE_FLOAT_LDBL = 1; then
20376 gl_LIBOBJS="$gl_LIBOBJS float.$ac_objext"
20379 if test $REPLACE_ITOLD = 1; then
20388 gl_LIBOBJS="$gl_LIBOBJS itold.$ac_objext"
20395 if test $HAVE_MSVC_INVALID_PARAMETER_HANDLER = 1; then
20400 if test $WINDOWS_64_BIT_ST_SIZE = 1; then
20406 if test $REPLACE_FSTAT = 1; then
20415 gl_LIBOBJS="$gl_LIBOBJS fstat.$ac_objext"
20430 $as_echo "#define GNULIB_TEST_FSTAT 1" >>confdefs.h
20437 if test $HAVE_FTELLO = 0 || test $REPLACE_FTELLO = 1; then
20441 if test $REPLACE_FTELL = 1; then
20450 gl_LIBOBJS="$gl_LIBOBJS ftell.$ac_objext"
20464 $as_echo "#define GNULIB_TEST_FTELL 1" >>confdefs.h
20483 if test $ac_cv_have_decl_ftello = no; then
20487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ftello" >&5
20488 $as_echo_n "checking for ftello... " >&6; }
20489 if ${gl_cv_func_ftello+:} false; then :
20490 $as_echo_n "(cached) " >&6
20493 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20494 /* end confdefs.h. */
20504 if ac_fn_c_try_link "$LINENO"; then :
20505 gl_cv_func_ftello=yes
20507 gl_cv_func_ftello=no
20509 rm -f core conftest.err conftest.$ac_objext \
20510 conftest$ac_exeext conftest.$ac_ext
20513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_ftello" >&5
20514 $as_echo "$gl_cv_func_ftello" >&6; }
20515 if test $gl_cv_func_ftello = no; then
20518 if test $WINDOWS_64_BIT_OFF_T = 1; then
20521 if test $gl_cv_var_stdin_large_offset = no; then
20524 if test $REPLACE_FTELLO = 0; then
20526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ftello works" >&5
20527 $as_echo_n "checking whether ftello works... " >&6; }
20528 if ${gl_cv_func_ftello_works+:} false; then :
20529 $as_echo_n "(cached) " >&6
20533 # Guess no on Solaris.
20534 solaris*) gl_cv_func_ftello_works="guessing no" ;;
20535 # Guess yes otherwise.
20536 *) gl_cv_func_ftello_works="guessing yes" ;;
20538 if test "$cross_compiling" = yes; then :
20541 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20542 /* end confdefs.h. */
20545 #include <stdlib.h>
20546 #include <string.h>
20547 #define TESTFILE "conftest.tmp"
20553 /* Create a file with some contents. */
20554 fp = fopen (TESTFILE, "w");
20557 if (fwrite ("foogarsh", 1, 8, fp) < 8)
20562 /* The file's contents is now "foogarsh". */
20564 /* Try writing after reading to EOF. */
20565 fp = fopen (TESTFILE, "r+");
20568 if (fseek (fp, -1, SEEK_END))
20570 if (!(getc (fp) == 'h'))
20572 if (!(getc (fp) == EOF))
20574 if (!(ftell (fp) == 8))
20576 if (!(ftell (fp) == 8))
20578 if (!(putc ('!', fp) == '!'))
20580 if (!(ftell (fp) == 9))
20582 if (!(fclose (fp) == 0))
20584 fp = fopen (TESTFILE, "r");
20589 if (!(fread (buf, 1, 10, fp) == 9))
20591 if (!(memcmp (buf, "foogarsh!", 9) == 0))
20594 if (!(fclose (fp) == 0))
20597 /* The file's contents is now "foogarsh!". */
20602 if ac_fn_c_try_run "$LINENO"; then :
20603 gl_cv_func_ftello_works=yes
20605 gl_cv_func_ftello_works=no
20607 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20608 conftest.$ac_objext conftest.beam conftest.$ac_ext
20613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_ftello_works" >&5
20614 $as_echo "$gl_cv_func_ftello_works" >&6; }
20615 case "$gl_cv_func_ftello_works" in
20620 $as_echo "#define FTELLO_BROKEN_AFTER_SWITCHING_FROM_READ_TO_WRITE 1" >>confdefs.h
20627 if test $HAVE_FTELLO = 0 || test $REPLACE_FTELLO = 1; then
20636 gl_LIBOBJS="$gl_LIBOBJS ftello.$ac_objext"
20639 for ac_func in _ftelli64
20641 ac_fn_c_check_func "$LINENO" "_ftelli64" "ac_cv_func__ftelli64"
20642 if test "x$ac_cv_func__ftelli64" = xyes; then :
20643 cat >>confdefs.h <<_ACEOF
20644 #define HAVE__FTELLI64 1
20663 $as_echo "#define GNULIB_TEST_FTELLO 1" >>confdefs.h
20668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether __func__ is available" >&5
20669 $as_echo_n "checking whether __func__ is available... " >&6; }
20670 if ${gl_cv_var_func+:} false; then :
20671 $as_echo_n "(cached) " >&6
20673 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20674 /* end confdefs.h. */
20679 const char *str = __func__;
20684 if ac_fn_c_try_compile "$LINENO"; then :
20689 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_var_func" >&5
20692 $as_echo "$gl_cv_var_func" >&6; }
20693 if test "$gl_cv_var_func" != yes; then
20695 $as_echo "#define __func__ \"<unknown function>\"" >>confdefs.h
20719 if test $ac_cv_func_getdelim = yes; then
20721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working getdelim function" >&5
20722 $as_echo_n "checking for working getdelim function... " >&6; }
20723 if ${gl_cv_func_working_getdelim+:} false; then :
20724 $as_echo_n "(cached) " >&6
20726 echo fooNbarN | tr -d '\012' | tr N '\012' > conftest.data
20727 if test "$cross_compiling" = yes; then :
20728 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20729 /* end confdefs.h. */
20731 #include <features.h>
20732 #ifdef __GNU_LIBRARY__
20733 #if (__GLIBC__ >= 2) && !defined __UCLIBC__
20739 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20740 $EGREP "Lucky GNU user" >/dev/null 2>&1; then :
20741 gl_cv_func_working_getdelim="guessing yes"
20743 gl_cv_func_working_getdelim="guessing no"
20749 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20750 /* end confdefs.h. */
20752 # include <stdio.h>
20753 # include <stdlib.h>
20754 # include <string.h>
20757 FILE *in = fopen ("./conftest.data", "r");
20761 /* Test result for a NULL buffer and a zero size.
20762 Based on a test program from Karl Heuer. */
20765 int len = getdelim (&line, &siz, '\n', in);
20766 if (!(len == 4 && line && strcmp (line, "foo\n") == 0))
20770 /* Test result for a NULL buffer and a non-zero size.
20771 This crashes on FreeBSD 8.0. */
20773 size_t siz = (size_t)(~0) / 4;
20774 if (getdelim (&line, &siz, '\n', in) == -1)
20781 if ac_fn_c_try_run "$LINENO"; then :
20782 gl_cv_func_working_getdelim=yes
20784 gl_cv_func_working_getdelim=no
20786 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20787 conftest.$ac_objext conftest.beam conftest.$ac_ext
20791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_working_getdelim" >&5
20792 $as_echo "$gl_cv_func_working_getdelim" >&6; }
20793 case "$gl_cv_func_working_getdelim" in
20802 if test $ac_cv_have_decl_getdelim = no; then
20803 HAVE_DECL_GETDELIM=0
20806 if test $HAVE_GETDELIM = 0 || test $REPLACE_GETDELIM = 1; then
20815 gl_LIBOBJS="$gl_LIBOBJS getdelim.$ac_objext"
20818 for ac_func in flockfile funlockfile
20820 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20821 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
20822 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
20823 cat >>confdefs.h <<_ACEOF
20824 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20830 ac_fn_c_check_decl "$LINENO" "getc_unlocked" "ac_cv_have_decl_getc_unlocked" "$ac_includes_default"
20831 if test "x$ac_cv_have_decl_getc_unlocked" = xyes; then :
20837 cat >>confdefs.h <<_ACEOF
20838 #define HAVE_DECL_GETC_UNLOCKED $ac_have_decl
20854 $as_echo "#define GNULIB_TEST_GETDELIM 1" >>confdefs.h
20871 gl_getline_needs_run_time_check=no
20872 ac_fn_c_check_func "$LINENO" "getline" "ac_cv_func_getline"
20873 if test "x$ac_cv_func_getline" = xyes; then :
20874 gl_getline_needs_run_time_check=yes
20876 am_cv_func_working_getline=no
20879 if test $gl_getline_needs_run_time_check = yes; then
20880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working getline function" >&5
20881 $as_echo_n "checking for working getline function... " >&6; }
20882 if ${am_cv_func_working_getline+:} false; then :
20883 $as_echo_n "(cached) " >&6
20885 echo fooNbarN | tr -d '\012' | tr N '\012' > conftest.data
20886 if test "$cross_compiling" = yes; then :
20887 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20888 /* end confdefs.h. */
20890 #include <features.h>
20891 #ifdef __GNU_LIBRARY__
20892 #if (__GLIBC__ >= 2) && !defined __UCLIBC__
20898 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20899 $EGREP "Lucky GNU user" >/dev/null 2>&1; then :
20900 am_cv_func_working_getline="guessing yes"
20902 am_cv_func_working_getline="guessing no"
20908 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20909 /* end confdefs.h. */
20911 # include <stdio.h>
20912 # include <stdlib.h>
20913 # include <string.h>
20916 FILE *in = fopen ("./conftest.data", "r");
20920 /* Test result for a NULL buffer and a zero size.
20921 Based on a test program from Karl Heuer. */
20924 int len = getline (&line, &siz, in);
20925 if (!(len == 4 && line && strcmp (line, "foo\n") == 0))
20929 /* Test result for a NULL buffer and a non-zero size.
20930 This crashes on FreeBSD 8.0. */
20932 size_t siz = (size_t)(~0) / 4;
20933 if (getline (&line, &siz, in) == -1)
20940 if ac_fn_c_try_run "$LINENO"; then :
20941 am_cv_func_working_getline=yes
20943 am_cv_func_working_getline=no
20945 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20946 conftest.$ac_objext conftest.beam conftest.$ac_ext
20950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_working_getline" >&5
20951 $as_echo "$am_cv_func_working_getline" >&6; }
20954 if test $ac_cv_have_decl_getline = no; then
20955 HAVE_DECL_GETLINE=0
20958 case "$am_cv_func_working_getline" in
20964 if test $REPLACE_GETLINE = 1; then
20973 gl_LIBOBJS="$gl_LIBOBJS getline.$ac_objext"
20990 $as_echo "#define GNULIB_TEST_GETLINE 1" >>confdefs.h
21009 gl_gettimeofday_timezone=void
21010 if test $ac_cv_func_gettimeofday != yes; then
21011 HAVE_GETTIMEOFDAY=0
21016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gettimeofday clobbers localtime buffer" >&5
21017 $as_echo_n "checking whether gettimeofday clobbers localtime buffer... " >&6; }
21018 if ${gl_cv_func_gettimeofday_clobber+:} false; then :
21019 $as_echo_n "(cached) " >&6
21021 if test "$cross_compiling" = yes; then :
21022 # When cross-compiling:
21024 # Guess all is fine on glibc systems.
21025 *-gnu*) gl_cv_func_gettimeofday_clobber="guessing no" ;;
21026 # If we don't know, assume the worst.
21027 *) gl_cv_func_gettimeofday_clobber="guessing yes" ;;
21031 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21032 /* end confdefs.h. */
21033 #include <string.h>
21034 #include <sys/time.h>
21036 #include <stdlib.h>
21044 struct tm saved_lt;
21046 lt = localtime (&t);
21048 gettimeofday (&tv, NULL);
21049 return memcmp (lt, &saved_lt, sizeof (struct tm)) != 0;
21055 if ac_fn_c_try_run "$LINENO"; then :
21056 gl_cv_func_gettimeofday_clobber=no
21058 gl_cv_func_gettimeofday_clobber=yes
21060 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21061 conftest.$ac_objext conftest.beam conftest.$ac_ext
21065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_gettimeofday_clobber" >&5
21066 $as_echo "$gl_cv_func_gettimeofday_clobber" >&6; }
21068 case "$gl_cv_func_gettimeofday_clobber" in
21070 REPLACE_GETTIMEOFDAY=1
21073 REPLACE_LOCALTIME=1
21076 $as_echo "#define GETTIMEOFDAY_CLOBBERS_LOCALTIME 1" >>confdefs.h
21081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gettimeofday with POSIX signature" >&5
21082 $as_echo_n "checking for gettimeofday with POSIX signature... " >&6; }
21083 if ${gl_cv_func_gettimeofday_posix_signature+:} false; then :
21084 $as_echo_n "(cached) " >&6
21086 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21087 /* end confdefs.h. */
21088 #include <sys/time.h>
21090 int gettimeofday (struct timeval *restrict, void *restrict);
21095 /* glibc uses struct timezone * rather than the POSIX void *
21096 if _GNU_SOURCE is defined. However, since the only portable
21097 use of gettimeofday uses NULL as the second parameter, and
21098 since the glibc definition is actually more typesafe, it is
21099 not worth wrapping this to get a compliant signature. */
21100 int (*f) (struct timeval *restrict, void *restrict)
21103 return !(x | c.tv_sec | c.tv_usec);
21109 if ac_fn_c_try_compile "$LINENO"; then :
21110 gl_cv_func_gettimeofday_posix_signature=yes
21112 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21113 /* end confdefs.h. */
21114 #include <sys/time.h>
21115 int gettimeofday (struct timeval *restrict, struct timezone *restrict);
21125 if ac_fn_c_try_compile "$LINENO"; then :
21126 gl_cv_func_gettimeofday_posix_signature=almost
21128 gl_cv_func_gettimeofday_posix_signature=no
21130 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21132 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_gettimeofday_posix_signature" >&5
21135 $as_echo "$gl_cv_func_gettimeofday_posix_signature" >&6; }
21136 if test $gl_cv_func_gettimeofday_posix_signature = almost; then
21137 gl_gettimeofday_timezone='struct timezone'
21138 elif test $gl_cv_func_gettimeofday_posix_signature != yes; then
21139 REPLACE_GETTIMEOFDAY=1
21141 if test $REPLACE_STRUCT_TIMEVAL = 1; then
21142 REPLACE_GETTIMEOFDAY=1
21147 cat >>confdefs.h <<_ACEOF
21148 #define GETTIMEOFDAY_TIMEZONE $gl_gettimeofday_timezone
21152 if test $HAVE_GETTIMEOFDAY = 0 || test $REPLACE_GETTIMEOFDAY = 1; then
21161 gl_LIBOBJS="$gl_LIBOBJS gettimeofday.$ac_objext"
21164 for ac_header in sys/timeb.h
21166 ac_fn_c_check_header_mongrel "$LINENO" "sys/timeb.h" "ac_cv_header_sys_timeb_h" "$ac_includes_default"
21167 if test "x$ac_cv_header_sys_timeb_h" = xyes; then :
21168 cat >>confdefs.h <<_ACEOF
21169 #define HAVE_SYS_TIMEB_H 1
21176 for ac_func in _ftime
21178 ac_fn_c_check_func "$LINENO" "_ftime" "ac_cv_func__ftime"
21179 if test "x$ac_cv_func__ftime" = xyes; then :
21180 cat >>confdefs.h <<_ACEOF
21181 #define HAVE__FTIME 1
21194 GNULIB_GETTIMEOFDAY=1
21200 $as_echo "#define GNULIB_TEST_GETTIMEOFDAY 1" >>confdefs.h
21204 # Autoconf 2.61a.99 and earlier don't support linking a file only
21205 # in VPATH builds. But since GNUmakefile is for maintainer use
21206 # only, it does not matter if we skip the link with older autoconf.
21207 # Automake 1.10.1 and earlier try to remove GNUmakefile in non-VPATH
21208 # builds, so use a shell variable to bypass this.
21209 GNUmakefile=GNUmakefile
21210 ac_config_links="$ac_config_links $GNUmakefile:$GNUmakefile"
21217 am_save_CPPFLAGS="$CPPFLAGS"
21219 for element in $INCICONV; do
21221 for x in $CPPFLAGS; do
21223 acl_save_prefix="$prefix"
21224 prefix="$acl_final_prefix"
21225 acl_save_exec_prefix="$exec_prefix"
21226 exec_prefix="$acl_final_exec_prefix"
21228 exec_prefix="$acl_save_exec_prefix"
21229 prefix="$acl_save_prefix"
21231 if test "X$x" = "X$element"; then
21236 if test -z "$haveit"; then
21237 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
21242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
21243 $as_echo_n "checking for iconv... " >&6; }
21244 if ${am_cv_func_iconv+:} false; then :
21245 $as_echo_n "(cached) " >&6
21248 am_cv_func_iconv="no, consider installing GNU libiconv"
21250 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21251 /* end confdefs.h. */
21252 #include <stdlib.h>
21257 iconv_t cd = iconv_open("","");
21258 iconv(cd,NULL,NULL,NULL,NULL);
21264 if ac_fn_c_try_link "$LINENO"; then :
21265 am_cv_func_iconv=yes
21267 rm -f core conftest.err conftest.$ac_objext \
21268 conftest$ac_exeext conftest.$ac_ext
21269 if test "$am_cv_func_iconv" != yes; then
21270 am_save_LIBS="$LIBS"
21271 LIBS="$LIBS $LIBICONV"
21272 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21273 /* end confdefs.h. */
21274 #include <stdlib.h>
21279 iconv_t cd = iconv_open("","");
21280 iconv(cd,NULL,NULL,NULL,NULL);
21286 if ac_fn_c_try_link "$LINENO"; then :
21287 am_cv_lib_iconv=yes
21288 am_cv_func_iconv=yes
21290 rm -f core conftest.err conftest.$ac_objext \
21291 conftest$ac_exeext conftest.$ac_ext
21292 LIBS="$am_save_LIBS"
21296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
21297 $as_echo "$am_cv_func_iconv" >&6; }
21298 if test "$am_cv_func_iconv" = yes; then
21299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5
21300 $as_echo_n "checking for working iconv... " >&6; }
21301 if ${am_cv_func_iconv_works+:} false; then :
21302 $as_echo_n "(cached) " >&6
21305 am_save_LIBS="$LIBS"
21306 if test $am_cv_lib_iconv = yes; then
21307 LIBS="$LIBS $LIBICONV"
21309 if test "$cross_compiling" = yes; then :
21311 aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
21312 *) am_cv_func_iconv_works="guessing yes" ;;
21315 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21316 /* end confdefs.h. */
21319 #include <string.h>
21322 /* Test against AIX 5.1 bug: Failures are not distinguishable from successful
21325 iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
21326 if (cd_utf8_to_88591 != (iconv_t)(-1))
21328 static const char input[] = "\342\202\254"; /* EURO SIGN */
21330 const char *inptr = input;
21331 size_t inbytesleft = strlen (input);
21332 char *outptr = buf;
21333 size_t outbytesleft = sizeof (buf);
21334 size_t res = iconv (cd_utf8_to_88591,
21335 (char **) &inptr, &inbytesleft,
21336 &outptr, &outbytesleft);
21341 /* Test against Solaris 10 bug: Failures are not distinguishable from
21342 successful returns. */
21344 iconv_t cd_ascii_to_88591 = iconv_open ("ISO8859-1", "646");
21345 if (cd_ascii_to_88591 != (iconv_t)(-1))
21347 static const char input[] = "\263";
21349 const char *inptr = input;
21350 size_t inbytesleft = strlen (input);
21351 char *outptr = buf;
21352 size_t outbytesleft = sizeof (buf);
21353 size_t res = iconv (cd_ascii_to_88591,
21354 (char **) &inptr, &inbytesleft,
21355 &outptr, &outbytesleft);
21360 #if 0 /* This bug could be worked around by the caller. */
21361 /* Test against HP-UX 11.11 bug: Positive return value instead of 0. */
21363 iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
21364 if (cd_88591_to_utf8 != (iconv_t)(-1))
21366 static const char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
21368 const char *inptr = input;
21369 size_t inbytesleft = strlen (input);
21370 char *outptr = buf;
21371 size_t outbytesleft = sizeof (buf);
21372 size_t res = iconv (cd_88591_to_utf8,
21373 (char **) &inptr, &inbytesleft,
21374 &outptr, &outbytesleft);
21380 /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
21382 if (/* Try standardized names. */
21383 iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1)
21384 /* Try IRIX, OSF/1 names. */
21385 && iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1)
21386 /* Try AIX names. */
21387 && iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1)
21388 /* Try HP-UX names. */
21389 && iconv_open ("utf8", "eucJP") == (iconv_t)(-1))
21394 if ac_fn_c_try_run "$LINENO"; then :
21395 am_cv_func_iconv_works=yes
21397 am_cv_func_iconv_works=no
21399 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21400 conftest.$ac_objext conftest.beam conftest.$ac_ext
21403 LIBS="$am_save_LIBS"
21406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5
21407 $as_echo "$am_cv_func_iconv_works" >&6; }
21408 case "$am_cv_func_iconv_works" in
21409 *no) am_func_iconv=no am_cv_lib_iconv=no ;;
21410 *) am_func_iconv=yes ;;
21413 am_func_iconv=no am_cv_lib_iconv=no
21415 if test "$am_func_iconv" = yes; then
21417 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
21420 if test "$am_cv_lib_iconv" = yes; then
21421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
21422 $as_echo_n "checking how to link with libiconv... " >&6; }
21423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
21424 $as_echo "$LIBICONV" >&6; }
21426 CPPFLAGS="$am_save_CPPFLAGS"
21433 if test "$am_cv_func_iconv" = yes; then
21434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
21435 $as_echo_n "checking for iconv declaration... " >&6; }
21436 if ${am_cv_proto_iconv+:} false; then :
21437 $as_echo_n "(cached) " >&6
21440 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21441 /* end confdefs.h. */
21443 #include <stdlib.h>
21449 #if defined(__STDC__) || defined(__cplusplus)
21450 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
21463 if ac_fn_c_try_compile "$LINENO"; then :
21464 am_cv_proto_iconv_arg1=""
21466 am_cv_proto_iconv_arg1="const"
21468 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21469 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);"
21472 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
21473 { $as_echo "$as_me:${as_lineno-$LINENO}: result:
21474 $am_cv_proto_iconv" >&5
21476 $am_cv_proto_iconv" >&6; }
21478 cat >>confdefs.h <<_ACEOF
21479 #define ICONV_CONST $am_cv_proto_iconv_arg1
21487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gcc/ld supports -Wl,--output-def" >&5
21488 $as_echo_n "checking if gcc/ld supports -Wl,--output-def... " >&6; }
21489 if ${gl_cv_ld_output_def+:} false; then :
21490 $as_echo_n "(cached) " >&6
21492 if test "$enable_shared" = no; then
21493 gl_cv_ld_output_def="not needed, shared libraries are disabled"
21495 gl_ldflags_save=$LDFLAGS
21496 LDFLAGS="-Wl,--output-def,conftest.def"
21497 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21498 /* end confdefs.h. */
21508 if ac_fn_c_try_link "$LINENO"; then :
21509 gl_cv_ld_output_def=yes
21511 gl_cv_ld_output_def=no
21513 rm -f core conftest.err conftest.$ac_objext \
21514 conftest$ac_exeext conftest.$ac_ext
21516 LDFLAGS="$gl_ldflags_save"
21519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_ld_output_def" >&5
21520 $as_echo "$gl_cv_ld_output_def" >&6; }
21521 if test "x$gl_cv_ld_output_def" = "xyes"; then
21522 HAVE_LD_OUTPUT_DEF_TRUE=
21523 HAVE_LD_OUTPUT_DEF_FALSE='#'
21525 HAVE_LD_OUTPUT_DEF_TRUE='#'
21526 HAVE_LD_OUTPUT_DEF_FALSE=
21531 # Check whether --enable-ld-version-script was given.
21532 if test "${enable_ld_version_script+set}" = set; then :
21533 enableval=$enable_ld_version_script; have_ld_version_script=$enableval
21536 if test -z "$have_ld_version_script"; then
21537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if LD -Wl,--version-script works" >&5
21538 $as_echo_n "checking if LD -Wl,--version-script works... " >&6; }
21539 save_LDFLAGS="$LDFLAGS"
21540 LDFLAGS="$LDFLAGS -Wl,--version-script=conftest.map"
21541 cat > conftest.map <<EOF
21544 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21545 /* end confdefs.h. */
21555 if ac_fn_c_try_link "$LINENO"; then :
21556 accepts_syntax_errors=yes
21558 accepts_syntax_errors=no
21560 rm -f core conftest.err conftest.$ac_objext \
21561 conftest$ac_exeext conftest.$ac_ext
21562 if test "$accepts_syntax_errors" = no; then
21563 cat > conftest.map <<EOF
21572 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21573 /* end confdefs.h. */
21583 if ac_fn_c_try_link "$LINENO"; then :
21584 have_ld_version_script=yes
21586 have_ld_version_script=no
21588 rm -f core conftest.err conftest.$ac_objext \
21589 conftest$ac_exeext conftest.$ac_ext
21591 have_ld_version_script=no
21594 LDFLAGS="$save_LDFLAGS"
21595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_ld_version_script" >&5
21596 $as_echo "$have_ld_version_script" >&6; }
21598 if test "$have_ld_version_script" = "yes"; then
21599 HAVE_LD_VERSION_SCRIPT_TRUE=
21600 HAVE_LD_VERSION_SCRIPT_FALSE='#'
21602 HAVE_LD_VERSION_SCRIPT_TRUE='#'
21603 HAVE_LD_VERSION_SCRIPT_FALSE=
21619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lseek detects pipes" >&5
21620 $as_echo_n "checking whether lseek detects pipes... " >&6; }
21621 if ${gl_cv_func_lseek_pipe+:} false; then :
21622 $as_echo_n "(cached) " >&6
21626 gl_cv_func_lseek_pipe=no
21629 if test $cross_compiling = no; then
21630 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21631 /* end confdefs.h. */
21633 #include <sys/types.h> /* for off_t */
21634 #include <stdio.h> /* for SEEK_CUR */
21636 # include <unistd.h>
21637 #else /* on Windows with MSVC */
21645 /* Exit with success only if stdin is seekable. */
21646 return lseek (0, (off_t)0, SEEK_CUR) < 0;
21652 if ac_fn_c_try_link "$LINENO"; then :
21653 if test -s conftest$ac_exeext \
21654 && ./conftest$ac_exeext < conftest.$ac_ext \
21655 && test 1 = "`echo hi \
21656 | { ./conftest$ac_exeext; echo $?; cat >/dev/null; }`"; then
21657 gl_cv_func_lseek_pipe=yes
21659 gl_cv_func_lseek_pipe=no
21663 gl_cv_func_lseek_pipe=no
21665 rm -f core conftest.err conftest.$ac_objext \
21666 conftest$ac_exeext conftest.$ac_ext
21668 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21669 /* end confdefs.h. */
21671 #if defined __BEOS__
21672 /* BeOS mistakenly return 0 when trying to seek on pipes. */
21676 if ac_fn_c_try_compile "$LINENO"; then :
21677 gl_cv_func_lseek_pipe=yes
21679 gl_cv_func_lseek_pipe=no
21681 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_lseek_pipe" >&5
21688 $as_echo "$gl_cv_func_lseek_pipe" >&6; }
21689 if test $gl_cv_func_lseek_pipe = no; then
21692 $as_echo "#define LSEEK_PIPE_BROKEN 1" >>confdefs.h
21697 if test $WINDOWS_64_BIT_OFF_T = 1; then
21701 if test $REPLACE_LSEEK = 1; then
21710 gl_LIBOBJS="$gl_LIBOBJS lseek.$ac_objext"
21724 $as_echo "#define GNULIB_TEST_LSEEK 1" >>confdefs.h
21733 if test $gl_cv_func_malloc_posix = yes; then
21735 $as_echo "#define HAVE_MALLOC_POSIX 1" >>confdefs.h
21741 if test $REPLACE_MALLOC = 1; then
21750 gl_LIBOBJS="$gl_LIBOBJS malloc.$ac_objext"
21758 GNULIB_MALLOC_POSIX=1
21764 $as_echo "#define GNULIB_TEST_MALLOC_POSIX 1" >>confdefs.h
21769 if test $HAVE_MEMCHR = 0 || test $REPLACE_MEMCHR = 1; then
21778 gl_LIBOBJS="$gl_LIBOBJS memchr.$ac_objext"
21781 for ac_header in bp-sym.h
21783 ac_fn_c_check_header_mongrel "$LINENO" "bp-sym.h" "ac_cv_header_bp_sym_h" "$ac_includes_default"
21784 if test "x$ac_cv_header_bp_sym_h" = xyes; then :
21785 cat >>confdefs.h <<_ACEOF
21786 #define HAVE_BP_SYM_H 1
21806 $as_echo "#define GNULIB_TEST_MEMCHR 1" >>confdefs.h
21814 for ac_func in memmem
21816 ac_fn_c_check_func "$LINENO" "memmem" "ac_cv_func_memmem"
21817 if test "x$ac_cv_func_memmem" = xyes; then :
21818 cat >>confdefs.h <<_ACEOF
21819 #define HAVE_MEMMEM 1
21825 if test $ac_cv_func_memmem = yes; then
21837 if test $ac_cv_have_decl_memmem = no; then
21840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether memmem works" >&5
21841 $as_echo_n "checking whether memmem works... " >&6; }
21842 if ${gl_cv_func_memmem_works_always+:} false; then :
21843 $as_echo_n "(cached) " >&6
21845 if test "$cross_compiling" = yes; then :
21846 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21847 /* end confdefs.h. */
21849 #ifdef __GNU_LIBRARY__
21850 #include <features.h>
21851 #if ((__GLIBC__ == 2 && ((__GLIBC_MINOR > 0 && __GLIBC_MINOR__ < 9) \
21852 || __GLIBC_MINOR__ > 12)) \
21853 || (__GLIBC__ > 2)) \
21854 || defined __UCLIBC__
21857 #elif defined __CYGWIN__
21858 #include <cygwin/version.h>
21859 #if CYGWIN_VERSION_DLL_COMBINED > CYGWIN_VERSION_DLL_MAKE_COMBINED (1007, 7)
21867 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21868 $EGREP "Lucky user" >/dev/null 2>&1; then :
21869 gl_cv_func_memmem_works_always="guessing yes"
21871 gl_cv_func_memmem_works_always="guessing no"
21877 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21878 /* end confdefs.h. */
21880 #include <string.h> /* for memmem */
21881 #define P "_EF_BF_BD"
21882 #define HAYSTACK "F_BD_CE_BD" P P P P "_C3_88_20" P P P "_C3_A7_20" P
21883 #define NEEDLE P P P P P
21890 if (memmem (HAYSTACK, strlen (HAYSTACK), NEEDLE, strlen (NEEDLE)))
21892 /* Check for empty needle behavior. */
21894 const char *haystack = "AAA";
21895 if (memmem (haystack, 3, NULL, 0) != haystack)
21904 if ac_fn_c_try_run "$LINENO"; then :
21905 gl_cv_func_memmem_works_always=yes
21907 gl_cv_func_memmem_works_always=no
21909 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21910 conftest.$ac_objext conftest.beam conftest.$ac_ext
21915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_memmem_works_always" >&5
21916 $as_echo "$gl_cv_func_memmem_works_always" >&6; }
21917 case "$gl_cv_func_memmem_works_always" in
21926 if test $HAVE_MEMMEM = 0 || test $REPLACE_MEMMEM = 1; then
21935 gl_LIBOBJS="$gl_LIBOBJS memmem.$ac_objext"
21949 $as_echo "#define GNULIB_TEST_MEMMEM 1" >>confdefs.h
21964 if test $ac_cv_func__set_invalid_parameter_handler = yes; then
21965 HAVE_MSVC_INVALID_PARAMETER_HANDLER=1
21967 $as_echo "#define HAVE_MSVC_INVALID_PARAMETER_HANDLER 1" >>confdefs.h
21970 HAVE_MSVC_INVALID_PARAMETER_HANDLER=0
21974 if test $HAVE_MSVC_INVALID_PARAMETER_HANDLER = 1; then
21983 gl_LIBOBJS="$gl_LIBOBJS msvc-inval.$ac_objext"
21989 if test $HAVE_MSVC_INVALID_PARAMETER_HANDLER = 1; then
21998 gl_LIBOBJS="$gl_LIBOBJS msvc-nothrow.$ac_objext"
22019 if test $gl_cv_have_include_next = yes; then
22020 gl_cv_next_netdb_h='<'netdb.h'>'
22022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <netdb.h>" >&5
22023 $as_echo_n "checking absolute name of <netdb.h>... " >&6; }
22024 if ${gl_cv_next_netdb_h+:} false; then :
22025 $as_echo_n "(cached) " >&6
22028 if test $ac_cv_header_netdb_h = yes; then
22033 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22034 /* end confdefs.h. */
22038 aix*) gl_absname_cpp="$ac_cpp -C" ;;
22039 *) gl_absname_cpp="$ac_cpp" ;;
22044 gl_dirsep_regex='[/\\]'
22047 gl_dirsep_regex='\/'
22050 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
22051 gl_header_literal_regex=`echo 'netdb.h' \
22052 | sed -e "$gl_make_literal_regex_sed"`
22053 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
22054 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
22060 gl_cv_absolute_netdb_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
22061 sed -n "$gl_absolute_header_sed"`
22063 gl_header=$gl_cv_absolute_netdb_h
22064 gl_cv_next_netdb_h='"'$gl_header'"'
22066 gl_cv_next_netdb_h='<'netdb.h'>'
22071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_netdb_h" >&5
22072 $as_echo "$gl_cv_next_netdb_h" >&6; }
22074 NEXT_NETDB_H=$gl_cv_next_netdb_h
22076 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
22077 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
22078 gl_next_as_first_directive='<'netdb.h'>'
22080 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
22081 gl_next_as_first_directive=$gl_cv_next_netdb_h
22083 NEXT_AS_FIRST_DIRECTIVE_NETDB_H=$gl_next_as_first_directive
22088 if test $ac_cv_header_netdb_h = yes; then
22096 for gl_func in getaddrinfo freeaddrinfo gai_strerror getnameinfo; do
22097 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
22098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
22099 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
22100 if eval \${$as_gl_Symbol+:} false; then :
22101 $as_echo_n "(cached) " >&6
22103 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22104 /* end confdefs.h. */
22115 if ac_fn_c_try_compile "$LINENO"; then :
22116 eval "$as_gl_Symbol=yes"
22118 eval "$as_gl_Symbol=no"
22120 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22122 eval ac_res=\$$as_gl_Symbol
22123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
22124 $as_echo "$ac_res" >&6; }
22125 if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
22126 cat >>confdefs.h <<_ACEOF
22127 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
22130 eval ac_cv_have_decl_$gl_func=yes
22136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <netinet/in.h> is self-contained" >&5
22137 $as_echo_n "checking whether <netinet/in.h> is self-contained... " >&6; }
22138 if ${gl_cv_header_netinet_in_h_selfcontained+:} false; then :
22139 $as_echo_n "(cached) " >&6
22142 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22143 /* end confdefs.h. */
22144 #include <netinet/in.h>
22153 if ac_fn_c_try_compile "$LINENO"; then :
22154 gl_cv_header_netinet_in_h_selfcontained=yes
22156 gl_cv_header_netinet_in_h_selfcontained=no
22158 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_netinet_in_h_selfcontained" >&5
22162 $as_echo "$gl_cv_header_netinet_in_h_selfcontained" >&6; }
22163 if test $gl_cv_header_netinet_in_h_selfcontained = yes; then
22166 NETINET_IN_H='netinet/in.h'
22167 for ac_header in netinet/in.h
22169 ac_fn_c_check_header_mongrel "$LINENO" "netinet/in.h" "ac_cv_header_netinet_in_h" "$ac_includes_default"
22170 if test "x$ac_cv_header_netinet_in_h" = xyes; then :
22171 cat >>confdefs.h <<_ACEOF
22172 #define HAVE_NETINET_IN_H 1
22194 if test $gl_cv_have_include_next = yes; then
22195 gl_cv_next_netinet_in_h='<'netinet/in.h'>'
22197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <netinet/in.h>" >&5
22198 $as_echo_n "checking absolute name of <netinet/in.h>... " >&6; }
22199 if ${gl_cv_next_netinet_in_h+:} false; then :
22200 $as_echo_n "(cached) " >&6
22203 if test $ac_cv_header_netinet_in_h = yes; then
22208 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22209 /* end confdefs.h. */
22210 #include <netinet/in.h>
22213 aix*) gl_absname_cpp="$ac_cpp -C" ;;
22214 *) gl_absname_cpp="$ac_cpp" ;;
22219 gl_dirsep_regex='[/\\]'
22222 gl_dirsep_regex='\/'
22225 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
22226 gl_header_literal_regex=`echo 'netinet/in.h' \
22227 | sed -e "$gl_make_literal_regex_sed"`
22228 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
22229 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
22235 gl_cv_absolute_netinet_in_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
22236 sed -n "$gl_absolute_header_sed"`
22238 gl_header=$gl_cv_absolute_netinet_in_h
22239 gl_cv_next_netinet_in_h='"'$gl_header'"'
22241 gl_cv_next_netinet_in_h='<'netinet/in.h'>'
22246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_netinet_in_h" >&5
22247 $as_echo "$gl_cv_next_netinet_in_h" >&6; }
22249 NEXT_NETINET_IN_H=$gl_cv_next_netinet_in_h
22251 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
22252 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
22253 gl_next_as_first_directive='<'netinet/in.h'>'
22255 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
22256 gl_next_as_first_directive=$gl_cv_next_netinet_in_h
22258 NEXT_AS_FIRST_DIRECTIVE_NETINET_IN_H=$gl_next_as_first_directive
22263 if test $ac_cv_header_netinet_in_h = yes; then
22264 HAVE_NETINET_IN_H=1
22266 HAVE_NETINET_IN_H=0
22271 if test -n "$NETINET_IN_H"; then
22272 GL_GENERATE_NETINET_IN_H_TRUE=
22273 GL_GENERATE_NETINET_IN_H_FALSE='#'
22275 GL_GENERATE_NETINET_IN_H_TRUE='#'
22276 GL_GENERATE_NETINET_IN_H_FALSE=
22281 # Extract the first word of "pmccabe", so it can be a program name with args.
22282 set dummy pmccabe; ac_word=$2
22283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22284 $as_echo_n "checking for $ac_word... " >&6; }
22285 if ${ac_cv_path_PMCCABE+:} false; then :
22286 $as_echo_n "(cached) " >&6
22290 ac_cv_path_PMCCABE="$PMCCABE" # Let the user override the test with a path.
22293 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22294 for as_dir in $PATH
22297 test -z "$as_dir" && as_dir=.
22298 for ac_exec_ext in '' $ac_executable_extensions; do
22299 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22300 ac_cv_path_PMCCABE="$as_dir/$ac_word$ac_exec_ext"
22301 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22308 test -z "$ac_cv_path_PMCCABE" && ac_cv_path_PMCCABE="false"
22312 PMCCABE=$ac_cv_path_PMCCABE
22313 if test -n "$PMCCABE"; then
22314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PMCCABE" >&5
22315 $as_echo "$PMCCABE" >&6; }
22317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22318 $as_echo "no" >&6; }
22326 if test $gl_cv_func_malloc_posix = yes; then
22328 $as_echo "#define HAVE_REALLOC_POSIX 1" >>confdefs.h
22334 if test $REPLACE_REALLOC = 1; then
22343 gl_LIBOBJS="$gl_LIBOBJS realloc.$ac_objext"
22351 GNULIB_REALLOC_POSIX=1
22357 $as_echo "#define GNULIB_TEST_REALLOC_POSIX 1" >>confdefs.h
22362 for ac_header in stdint.h
22364 ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
22365 if test "x$ac_cv_header_stdint_h" = xyes; then :
22366 cat >>confdefs.h <<_ACEOF
22367 #define HAVE_STDINT_H 1
22374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SIZE_MAX" >&5
22375 $as_echo_n "checking for SIZE_MAX... " >&6; }
22376 if ${gl_cv_size_max+:} false; then :
22377 $as_echo_n "(cached) " >&6
22381 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22382 /* end confdefs.h. */
22384 #include <limits.h>
22386 #include <stdint.h>
22393 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22394 $EGREP "Found it" >/dev/null 2>&1; then :
22399 if test -z "$gl_cv_size_max"; then
22400 if ac_fn_c_compute_int "$LINENO" "sizeof (size_t) * CHAR_BIT - 1" "size_t_bits_minus_1" "#include <stddef.h>
22401 #include <limits.h>"; then :
22404 size_t_bits_minus_1=
22407 if ac_fn_c_compute_int "$LINENO" "sizeof (size_t) <= sizeof (unsigned int)" "fits_in_uint" "#include <stddef.h>"; then :
22413 if test -n "$size_t_bits_minus_1" && test -n "$fits_in_uint"; then
22414 if test $fits_in_uint = 1; then
22415 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22416 /* end confdefs.h. */
22417 #include <stddef.h>
22419 extern unsigned long foo;
22429 if ac_fn_c_try_compile "$LINENO"; then :
22432 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22434 if test $fits_in_uint = 1; then
22435 gl_cv_size_max="(((1U << $size_t_bits_minus_1) - 1) * 2 + 1)"
22437 gl_cv_size_max="(((1UL << $size_t_bits_minus_1) - 1) * 2 + 1)"
22440 gl_cv_size_max='((size_t)~(size_t)0)'
22445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_size_max" >&5
22446 $as_echo "$gl_cv_size_max" >&6; }
22447 if test "$gl_cv_size_max" != yes; then
22449 cat >>confdefs.h <<_ACEOF
22450 #define SIZE_MAX $gl_cv_size_max
22458 gl_cv_func_snprintf_usable=no
22459 for ac_func in snprintf
22461 ac_fn_c_check_func "$LINENO" "snprintf" "ac_cv_func_snprintf"
22462 if test "x$ac_cv_func_snprintf" = xyes; then :
22463 cat >>confdefs.h <<_ACEOF
22464 #define HAVE_SNPRINTF 1
22470 if test $ac_cv_func_snprintf = yes; then
22474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether snprintf respects a size of 1" >&5
22475 $as_echo_n "checking whether snprintf respects a size of 1... " >&6; }
22476 if ${gl_cv_func_snprintf_size1+:} false; then :
22477 $as_echo_n "(cached) " >&6
22480 if test "$cross_compiling" = yes; then :
22481 gl_cv_func_snprintf_size1="guessing yes"
22483 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22484 /* end confdefs.h. */
22488 # define my_snprintf snprintf
22490 # include <stdarg.h>
22491 static int my_snprintf (char *buf, int size, const char *format, ...)
22495 va_start (args, format);
22496 ret = vsnprintf (buf, size, format, args);
22503 static char buf[8] = { 'D', 'E', 'A', 'D', 'B', 'E', 'E', 'F' };
22504 my_snprintf (buf, 1, "%d", 12345);
22505 return buf[1] != 'E';
22508 if ac_fn_c_try_run "$LINENO"; then :
22509 gl_cv_func_snprintf_size1=yes
22511 gl_cv_func_snprintf_size1=no
22513 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22514 conftest.$ac_objext conftest.beam conftest.$ac_ext
22519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_snprintf_size1" >&5
22520 $as_echo "$gl_cv_func_snprintf_size1" >&6; }
22522 case "$gl_cv_func_snprintf_size1" in
22525 case "$gl_cv_func_snprintf_retval_c99" in
22529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether printf supports POSIX/XSI format strings with positions" >&5
22530 $as_echo_n "checking whether printf supports POSIX/XSI format strings with positions... " >&6; }
22531 if ${gl_cv_func_printf_positions+:} false; then :
22532 $as_echo_n "(cached) " >&6
22535 if test "$cross_compiling" = yes; then :
22538 netbsd[1-3]* | netbsdelf[1-3]* | netbsdaout[1-3]* | netbsdcoff[1-3]*)
22539 gl_cv_func_printf_positions="guessing no";;
22540 beos*) gl_cv_func_printf_positions="guessing no";;
22541 mingw* | pw*) gl_cv_func_printf_positions="guessing no";;
22542 *) gl_cv_func_printf_positions="guessing yes";;
22546 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22547 /* end confdefs.h. */
22550 #include <string.h>
22551 /* The string "%2$d %1$d", with dollar characters protected from the shell's
22552 dollar expansion (possibly an autoconf bug). */
22553 static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' };
22554 static char buf[100];
22557 sprintf (buf, format, 33, 55);
22558 return (strcmp (buf, "55 33") != 0);
22561 if ac_fn_c_try_run "$LINENO"; then :
22562 gl_cv_func_printf_positions=yes
22564 gl_cv_func_printf_positions=no
22566 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22567 conftest.$ac_objext conftest.beam conftest.$ac_ext
22572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_printf_positions" >&5
22573 $as_echo "$gl_cv_func_printf_positions" >&6; }
22575 case "$gl_cv_func_printf_positions" in
22577 gl_cv_func_snprintf_usable=yes
22585 if test $gl_cv_func_snprintf_usable = no; then
22596 gl_LIBOBJS="$gl_LIBOBJS snprintf.$ac_objext"
22598 if test $ac_cv_func_snprintf = yes; then
22611 if test $ac_cv_have_decl_snprintf = no; then
22612 HAVE_DECL_SNPRINTF=0
22626 $as_echo "#define GNULIB_TEST_SNPRINTF 1" >>confdefs.h
22632 cat >>confdefs.h <<_ACEOF
22633 #define GNULIB_SNPRINTF 1
22637 ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "
22638 /* <sys/types.h> is not needed according to POSIX, but the
22639 <sys/socket.h> in i386-unknown-freebsd4.10 and
22640 powerpc-apple-darwin5.5 required it. */
22641 #include <sys/types.h>
22642 #if HAVE_SYS_SOCKET_H
22643 # include <sys/socket.h>
22644 #elif HAVE_WS2TCPIP_H
22645 # include <ws2tcpip.h>
22649 if test "x$ac_cv_type_socklen_t" = xyes; then :
22652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socklen_t equivalent" >&5
22653 $as_echo_n "checking for socklen_t equivalent... " >&6; }
22654 if ${gl_cv_socklen_t_equiv+:} false; then :
22655 $as_echo_n "(cached) " >&6
22657 # Systems have either "struct sockaddr *" or
22658 # "void *" as the second argument to getpeername
22659 gl_cv_socklen_t_equiv=
22660 for arg2 in "struct sockaddr" void; do
22661 for t in int size_t "unsigned int" "long int" "unsigned long int"; do
22662 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22663 /* end confdefs.h. */
22664 #include <sys/types.h>
22665 #include <sys/socket.h>
22667 int getpeername (int, $arg2 *, $t *);
22672 getpeername (0, 0, &len);
22677 if ac_fn_c_try_compile "$LINENO"; then :
22678 gl_cv_socklen_t_equiv="$t"
22680 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22681 test "$gl_cv_socklen_t_equiv" != "" && break
22683 test "$gl_cv_socklen_t_equiv" != "" && break
22688 if test "$gl_cv_socklen_t_equiv" = ""; then
22689 as_fn_error $? "Cannot find a type to use in place of socklen_t" "$LINENO" 5
22691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_socklen_t_equiv" >&5
22692 $as_echo "$gl_cv_socklen_t_equiv" >&6; }
22694 cat >>confdefs.h <<_ACEOF
22695 #define socklen_t $gl_cv_socklen_t_equiv
22701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ssize_t" >&5
22702 $as_echo_n "checking for ssize_t... " >&6; }
22703 if ${gt_cv_ssize_t+:} false; then :
22704 $as_echo_n "(cached) " >&6
22706 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22707 /* end confdefs.h. */
22708 #include <sys/types.h>
22712 int x = sizeof (ssize_t *) + sizeof (ssize_t);
22718 if ac_fn_c_try_compile "$LINENO"; then :
22723 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_ssize_t" >&5
22726 $as_echo "$gt_cv_ssize_t" >&6; }
22727 if test $gt_cv_ssize_t = no; then
22729 $as_echo "#define ssize_t int" >>confdefs.h
22734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working stdalign.h" >&5
22735 $as_echo_n "checking for working stdalign.h... " >&6; }
22736 if ${gl_cv_header_working_stdalign_h+:} false; then :
22737 $as_echo_n "(cached) " >&6
22739 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22740 /* end confdefs.h. */
22741 #include <stdalign.h>
22742 #include <stddef.h>
22744 /* Test that alignof yields a result consistent with offsetof.
22745 This catches GCC bug 52023
22746 <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52023>. */
22748 template <class t> struct alignof_helper { char a; t b; };
22749 # define ao(type) offsetof (alignof_helper<type>, b)
22751 # define ao(type) offsetof (struct { char a; type b; }, b)
22753 char test_double[ao (double) % _Alignof (double) == 0 ? 1 : -1];
22754 char test_long[ao (long int) % _Alignof (long int) == 0 ? 1 : -1];
22755 char test_alignof[alignof (double) == _Alignof (double) ? 1 : -1];
22757 /* Test _Alignas only on platforms where gnulib can help. */
22759 ((defined __cplusplus && 201103 <= __cplusplus) \
22760 || __GNUC__ || __IBMC__ || __IBMCPP__ || __ICC \
22761 || 0x5110 <= __SUNPRO_C || 1300 <= _MSC_VER)
22762 struct alignas_test { char c; char alignas (8) alignas_8; };
22763 char test_alignas[offsetof (struct alignas_test, alignas_8) == 8
22775 if ac_fn_c_try_compile "$LINENO"; then :
22776 gl_cv_header_working_stdalign_h=yes
22778 gl_cv_header_working_stdalign_h=no
22780 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_stdalign_h" >&5
22783 $as_echo "$gl_cv_header_working_stdalign_h" >&6; }
22785 if test $gl_cv_header_working_stdalign_h = yes; then
22788 STDALIGN_H='stdalign.h'
22792 if test -n "$STDALIGN_H"; then
22793 GL_GENERATE_STDALIGN_H_TRUE=
22794 GL_GENERATE_STDALIGN_H_FALSE='#'
22796 GL_GENERATE_STDALIGN_H_TRUE='#'
22797 GL_GENERATE_STDALIGN_H_FALSE=
22804 # Define two additional variables used in the Makefile substitution.
22806 if test "$ac_cv_header_stdbool_h" = yes; then
22809 STDBOOL_H='stdbool.h'
22812 if test -n "$STDBOOL_H"; then
22813 GL_GENERATE_STDBOOL_H_TRUE=
22814 GL_GENERATE_STDBOOL_H_FALSE='#'
22816 GL_GENERATE_STDBOOL_H_TRUE='#'
22817 GL_GENERATE_STDBOOL_H_FALSE=
22821 if test "$ac_cv_type__Bool" = yes; then
22832 if test $gt_cv_c_wchar_t = no; then
22836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NULL can be used in arbitrary expressions" >&5
22837 $as_echo_n "checking whether NULL can be used in arbitrary expressions... " >&6; }
22838 if ${gl_cv_decl_null_works+:} false; then :
22839 $as_echo_n "(cached) " >&6
22841 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22842 /* end confdefs.h. */
22843 #include <stddef.h>
22844 int test[2 * (sizeof NULL == sizeof (void *)) -1];
22854 if ac_fn_c_try_compile "$LINENO"; then :
22855 gl_cv_decl_null_works=yes
22857 gl_cv_decl_null_works=no
22859 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_decl_null_works" >&5
22862 $as_echo "$gl_cv_decl_null_works" >&6; }
22863 if test $gl_cv_decl_null_works = no; then
22868 if test -n "$STDDEF_H"; then
22869 GL_GENERATE_STDDEF_H_TRUE=
22870 GL_GENERATE_STDDEF_H_FALSE='#'
22872 GL_GENERATE_STDDEF_H_TRUE='#'
22873 GL_GENERATE_STDDEF_H_FALSE=
22876 if test -n "$STDDEF_H"; then
22885 if test $gl_cv_have_include_next = yes; then
22886 gl_cv_next_stddef_h='<'stddef.h'>'
22888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stddef.h>" >&5
22889 $as_echo_n "checking absolute name of <stddef.h>... " >&6; }
22890 if ${gl_cv_next_stddef_h+:} false; then :
22891 $as_echo_n "(cached) " >&6
22896 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22897 /* end confdefs.h. */
22898 #include <stddef.h>
22901 aix*) gl_absname_cpp="$ac_cpp -C" ;;
22902 *) gl_absname_cpp="$ac_cpp" ;;
22907 gl_dirsep_regex='[/\\]'
22910 gl_dirsep_regex='\/'
22913 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
22914 gl_header_literal_regex=`echo 'stddef.h' \
22915 | sed -e "$gl_make_literal_regex_sed"`
22916 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
22917 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
22923 gl_cv_absolute_stddef_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
22924 sed -n "$gl_absolute_header_sed"`
22926 gl_header=$gl_cv_absolute_stddef_h
22927 gl_cv_next_stddef_h='"'$gl_header'"'
22931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stddef_h" >&5
22932 $as_echo "$gl_cv_next_stddef_h" >&6; }
22934 NEXT_STDDEF_H=$gl_cv_next_stddef_h
22936 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
22937 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
22938 gl_next_as_first_directive='<'stddef.h'>'
22940 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
22941 gl_next_as_first_directive=$gl_cv_next_stddef_h
22943 NEXT_AS_FIRST_DIRECTIVE_STDDEF_H=$gl_next_as_first_directive
22961 if test $gl_cv_have_include_next = yes; then
22962 gl_cv_next_stdio_h='<'stdio.h'>'
22964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdio.h>" >&5
22965 $as_echo_n "checking absolute name of <stdio.h>... " >&6; }
22966 if ${gl_cv_next_stdio_h+:} false; then :
22967 $as_echo_n "(cached) " >&6
22972 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22973 /* end confdefs.h. */
22977 aix*) gl_absname_cpp="$ac_cpp -C" ;;
22978 *) gl_absname_cpp="$ac_cpp" ;;
22983 gl_dirsep_regex='[/\\]'
22986 gl_dirsep_regex='\/'
22989 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
22990 gl_header_literal_regex=`echo 'stdio.h' \
22991 | sed -e "$gl_make_literal_regex_sed"`
22992 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
22993 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
22999 gl_cv_absolute_stdio_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
23000 sed -n "$gl_absolute_header_sed"`
23002 gl_header=$gl_cv_absolute_stdio_h
23003 gl_cv_next_stdio_h='"'$gl_header'"'
23007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdio_h" >&5
23008 $as_echo "$gl_cv_next_stdio_h" >&6; }
23010 NEXT_STDIO_H=$gl_cv_next_stdio_h
23012 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
23013 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
23014 gl_next_as_first_directive='<'stdio.h'>'
23016 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
23017 gl_next_as_first_directive=$gl_cv_next_stdio_h
23019 NEXT_AS_FIRST_DIRECTIVE_STDIO_H=$gl_next_as_first_directive
23028 cat >>confdefs.h <<_ACEOF
23029 #define GNULIB_FSCANF 1
23036 cat >>confdefs.h <<_ACEOF
23037 #define GNULIB_SCANF 1
23062 for gl_func in dprintf fpurge fseeko ftello getdelim getline gets pclose popen renameat snprintf tmpfile vdprintf vsnprintf; do
23063 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
23064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
23065 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
23066 if eval \${$as_gl_Symbol+:} false; then :
23067 $as_echo_n "(cached) " >&6
23069 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23070 /* end confdefs.h. */
23082 if ac_fn_c_try_compile "$LINENO"; then :
23083 eval "$as_gl_Symbol=yes"
23085 eval "$as_gl_Symbol=no"
23087 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23089 eval ac_res=\$$as_gl_Symbol
23090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
23091 $as_echo "$ac_res" >&6; }
23092 if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
23093 cat >>confdefs.h <<_ACEOF
23094 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
23097 eval ac_cv_have_decl_$gl_func=yes
23112 if test $gl_cv_have_include_next = yes; then
23113 gl_cv_next_stdlib_h='<'stdlib.h'>'
23115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdlib.h>" >&5
23116 $as_echo_n "checking absolute name of <stdlib.h>... " >&6; }
23117 if ${gl_cv_next_stdlib_h+:} false; then :
23118 $as_echo_n "(cached) " >&6
23123 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23124 /* end confdefs.h. */
23125 #include <stdlib.h>
23128 aix*) gl_absname_cpp="$ac_cpp -C" ;;
23129 *) gl_absname_cpp="$ac_cpp" ;;
23134 gl_dirsep_regex='[/\\]'
23137 gl_dirsep_regex='\/'
23140 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
23141 gl_header_literal_regex=`echo 'stdlib.h' \
23142 | sed -e "$gl_make_literal_regex_sed"`
23143 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
23144 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
23150 gl_cv_absolute_stdlib_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
23151 sed -n "$gl_absolute_header_sed"`
23153 gl_header=$gl_cv_absolute_stdlib_h
23154 gl_cv_next_stdlib_h='"'$gl_header'"'
23158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdlib_h" >&5
23159 $as_echo "$gl_cv_next_stdlib_h" >&6; }
23161 NEXT_STDLIB_H=$gl_cv_next_stdlib_h
23163 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
23164 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
23165 gl_next_as_first_directive='<'stdlib.h'>'
23167 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
23168 gl_next_as_first_directive=$gl_cv_next_stdlib_h
23170 NEXT_AS_FIRST_DIRECTIVE_STDLIB_H=$gl_next_as_first_directive
23177 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
23178 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
23179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
23180 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
23181 if eval \${$as_gl_Symbol+:} false; then :
23182 $as_echo_n "(cached) " >&6
23184 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23185 /* end confdefs.h. */
23186 #include <stdlib.h>
23187 #if HAVE_SYS_LOADAVG_H
23188 # include <sys/loadavg.h>
23191 # include <random.h>
23203 if ac_fn_c_try_compile "$LINENO"; then :
23204 eval "$as_gl_Symbol=yes"
23206 eval "$as_gl_Symbol=no"
23208 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23210 eval ac_res=\$$as_gl_Symbol
23211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
23212 $as_echo "$ac_res" >&6; }
23213 if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
23214 cat >>confdefs.h <<_ACEOF
23215 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
23218 eval ac_cv_have_decl_$gl_func=yes
23226 for ac_func in strcasecmp
23228 ac_fn_c_check_func "$LINENO" "strcasecmp" "ac_cv_func_strcasecmp"
23229 if test "x$ac_cv_func_strcasecmp" = xyes; then :
23230 cat >>confdefs.h <<_ACEOF
23231 #define HAVE_STRCASECMP 1
23237 if test $ac_cv_func_strcasecmp = no; then
23243 for ac_func in strncasecmp
23245 ac_fn_c_check_func "$LINENO" "strncasecmp" "ac_cv_func_strncasecmp"
23246 if test "x$ac_cv_func_strncasecmp" = xyes; then :
23247 cat >>confdefs.h <<_ACEOF
23248 #define HAVE_STRNCASECMP 1
23254 if test $ac_cv_func_strncasecmp = yes; then
23259 ac_fn_c_check_decl "$LINENO" "strncasecmp" "ac_cv_have_decl_strncasecmp" "$ac_includes_default"
23260 if test "x$ac_cv_have_decl_strncasecmp" = xyes; then :
23266 cat >>confdefs.h <<_ACEOF
23267 #define HAVE_DECL_STRNCASECMP $ac_have_decl
23270 if test $ac_cv_have_decl_strncasecmp = no; then
23271 HAVE_DECL_STRNCASECMP=0
23275 if test $HAVE_STRCASECMP = 0; then
23284 gl_LIBOBJS="$gl_LIBOBJS strcasecmp.$ac_objext"
23290 if test $HAVE_STRNCASECMP = 0; then
23299 gl_LIBOBJS="$gl_LIBOBJS strncasecmp.$ac_objext"
23329 if test $ac_cv_have_decl_strndup = no; then
23330 HAVE_DECL_STRNDUP=0
23333 if test $ac_cv_func_strndup = yes; then
23335 # AIX 4.3.3, AIX 5.1 have a function that fails to add the terminating '\0'.
23336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strndup" >&5
23337 $as_echo_n "checking for working strndup... " >&6; }
23338 if ${gl_cv_func_strndup_works+:} false; then :
23339 $as_echo_n "(cached) " >&6
23341 if test "$cross_compiling" = yes; then :
23344 aix | aix[3-6]*) gl_cv_func_strndup_works="guessing no";;
23345 *) gl_cv_func_strndup_works="guessing yes";;
23349 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23350 /* end confdefs.h. */
23352 #include <string.h>
23353 #include <stdlib.h>
23358 #if !HAVE_DECL_STRNDUP
23363 char *strndup (const char *, size_t);
23366 s = strndup ("some longer string", 15);
23368 s = strndup ("shorter string", 13);
23369 return s[13] != '\0';
23374 if ac_fn_c_try_run "$LINENO"; then :
23375 gl_cv_func_strndup_works=yes
23377 gl_cv_func_strndup_works=no
23379 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23380 conftest.$ac_objext conftest.beam conftest.$ac_ext
23384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_strndup_works" >&5
23385 $as_echo "$gl_cv_func_strndup_works" >&6; }
23386 case $gl_cv_func_strndup_works in
23387 *no) REPLACE_STRNDUP=1 ;;
23393 if test $HAVE_STRNDUP = 0 || test $REPLACE_STRNDUP = 1; then
23402 gl_LIBOBJS="$gl_LIBOBJS strndup.$ac_objext"
23416 $as_echo "#define GNULIB_TEST_STRNDUP 1" >>confdefs.h
23432 if test $ac_cv_have_decl_strnlen = no; then
23433 HAVE_DECL_STRNLEN=0
23436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strnlen" >&5
23437 $as_echo_n "checking for working strnlen... " >&6; }
23438 if ${ac_cv_func_strnlen_working+:} false; then :
23439 $as_echo_n "(cached) " >&6
23441 if test "$cross_compiling" = yes; then :
23442 # Guess no on AIX systems, yes otherwise.
23444 aix*) ac_cv_func_strnlen_working=no;;
23445 *) ac_cv_func_strnlen_working=yes;;
23448 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23449 /* end confdefs.h. */
23450 $ac_includes_default
23456 #define S_LEN (sizeof S - 1)
23458 /* At least one implementation is buggy: that of AIX 4.3 would
23459 give strnlen (S, 1) == 3. */
23462 for (i = 0; i < S_LEN + 1; ++i)
23464 int expected = i <= S_LEN ? i : S_LEN;
23465 if (strnlen (S, i) != expected)
23474 if ac_fn_c_try_run "$LINENO"; then :
23475 ac_cv_func_strnlen_working=yes
23477 ac_cv_func_strnlen_working=no
23479 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23480 conftest.$ac_objext conftest.beam conftest.$ac_ext
23484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strnlen_working" >&5
23485 $as_echo "$ac_cv_func_strnlen_working" >&6; }
23486 test $ac_cv_func_strnlen_working = no && :
23489 if test $ac_cv_func_strnlen_working = no; then
23494 if test $HAVE_DECL_STRNLEN = 0 || test $REPLACE_STRNLEN = 1; then
23503 gl_LIBOBJS="$gl_LIBOBJS strnlen.$ac_objext"
23518 $as_echo "#define GNULIB_TEST_STRNLEN 1" >>confdefs.h
23526 for ac_func in strtok_r
23528 ac_fn_c_check_func "$LINENO" "strtok_r" "ac_cv_func_strtok_r"
23529 if test "x$ac_cv_func_strtok_r" = xyes; then :
23530 cat >>confdefs.h <<_ACEOF
23531 #define HAVE_STRTOK_R 1
23537 if test $ac_cv_func_strtok_r = yes; then
23539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strtok_r works" >&5
23540 $as_echo_n "checking whether strtok_r works... " >&6; }
23541 if ${gl_cv_func_strtok_r_works+:} false; then :
23542 $as_echo_n "(cached) " >&6
23544 if test "$cross_compiling" = yes; then :
23547 # Guess no on glibc systems.
23548 *-gnu*) gl_cv_func_strtok_r_works="guessing no";;
23549 *) gl_cv_func_strtok_r_works="guessing yes";;
23553 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23554 /* end confdefs.h. */
23556 #ifndef __OPTIMIZE__
23557 # define __OPTIMIZE__ 1
23559 #undef __OPTIMIZE_SIZE__
23560 #undef __NO_INLINE__
23561 #include <stdlib.h>
23562 #include <string.h>
23567 static const char dummy[] = "\177\01a";
23568 char delimiters[] = "xxxxxxxx";
23569 char *save_ptr = (char *) dummy;
23570 strtok_r (delimiters, "x", &save_ptr);
23571 strtok_r (NULL, "x", &save_ptr);
23579 if ac_fn_c_try_run "$LINENO"; then :
23580 gl_cv_func_strtok_r_works=yes
23582 gl_cv_func_strtok_r_works=no
23584 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23585 conftest.$ac_objext conftest.beam conftest.$ac_ext
23590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_strtok_r_works" >&5
23591 $as_echo "$gl_cv_func_strtok_r_works" >&6; }
23592 case "$gl_cv_func_strtok_r_works" in
23594 UNDEFINE_STRTOK_R=1
23607 if test $ac_cv_have_decl_strtok_r = no; then
23608 HAVE_DECL_STRTOK_R=0
23611 if test $HAVE_STRTOK_R = 0 || test $REPLACE_STRTOK_R = 1; then
23620 gl_LIBOBJS="$gl_LIBOBJS strtok_r.$ac_objext"
23637 $as_echo "#define GNULIB_TEST_STRTOK_R 1" >>confdefs.h
23645 for ac_func in strverscmp
23647 ac_fn_c_check_func "$LINENO" "strverscmp" "ac_cv_func_strverscmp"
23648 if test "x$ac_cv_func_strverscmp" = xyes; then :
23649 cat >>confdefs.h <<_ACEOF
23650 #define HAVE_STRVERSCMP 1
23656 if test $ac_cv_func_strverscmp = no; then
23660 if test $HAVE_STRVERSCMP = 0; then
23669 gl_LIBOBJS="$gl_LIBOBJS strverscmp.$ac_objext"
23680 GNULIB_STRVERSCMP=1
23686 $as_echo "#define GNULIB_TEST_STRVERSCMP 1" >>confdefs.h
23697 $as_echo "#define _POSIX_PII_SOCKET 1" >>confdefs.h
23702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <sys/socket.h> is self-contained" >&5
23703 $as_echo_n "checking whether <sys/socket.h> is self-contained... " >&6; }
23704 if ${gl_cv_header_sys_socket_h_selfcontained+:} false; then :
23705 $as_echo_n "(cached) " >&6
23708 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23709 /* end confdefs.h. */
23710 #include <sys/socket.h>
23719 if ac_fn_c_try_compile "$LINENO"; then :
23720 gl_cv_header_sys_socket_h_selfcontained=yes
23722 gl_cv_header_sys_socket_h_selfcontained=no
23724 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_sys_socket_h_selfcontained" >&5
23728 $as_echo "$gl_cv_header_sys_socket_h_selfcontained" >&6; }
23729 if test $gl_cv_header_sys_socket_h_selfcontained = yes; then
23730 for ac_func in shutdown
23732 ac_fn_c_check_func "$LINENO" "shutdown" "ac_cv_func_shutdown"
23733 if test "x$ac_cv_func_shutdown" = xyes; then :
23734 cat >>confdefs.h <<_ACEOF
23735 #define HAVE_SHUTDOWN 1
23741 if test $ac_cv_func_shutdown = yes; then
23742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <sys/socket.h> defines the SHUT_* macros" >&5
23743 $as_echo_n "checking whether <sys/socket.h> defines the SHUT_* macros... " >&6; }
23744 if ${gl_cv_header_sys_socket_h_shut+:} false; then :
23745 $as_echo_n "(cached) " >&6
23748 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23749 /* end confdefs.h. */
23750 #include <sys/socket.h>
23754 int a[] = { SHUT_RD, SHUT_WR, SHUT_RDWR };
23759 if ac_fn_c_try_compile "$LINENO"; then :
23760 gl_cv_header_sys_socket_h_shut=yes
23762 gl_cv_header_sys_socket_h_shut=no
23764 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_sys_socket_h_shut" >&5
23768 $as_echo "$gl_cv_header_sys_socket_h_shut" >&6; }
23769 if test $gl_cv_header_sys_socket_h_shut = no; then
23770 SYS_SOCKET_H='sys/socket.h'
23774 # We need to check for ws2tcpip.h now.
23792 if test $gl_cv_have_include_next = yes; then
23793 gl_cv_next_sys_socket_h='<'sys/socket.h'>'
23795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/socket.h>" >&5
23796 $as_echo_n "checking absolute name of <sys/socket.h>... " >&6; }
23797 if ${gl_cv_next_sys_socket_h+:} false; then :
23798 $as_echo_n "(cached) " >&6
23801 if test $ac_cv_header_sys_socket_h = yes; then
23806 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23807 /* end confdefs.h. */
23808 #include <sys/socket.h>
23811 aix*) gl_absname_cpp="$ac_cpp -C" ;;
23812 *) gl_absname_cpp="$ac_cpp" ;;
23817 gl_dirsep_regex='[/\\]'
23820 gl_dirsep_regex='\/'
23823 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
23824 gl_header_literal_regex=`echo 'sys/socket.h' \
23825 | sed -e "$gl_make_literal_regex_sed"`
23826 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
23827 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
23833 gl_cv_absolute_sys_socket_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
23834 sed -n "$gl_absolute_header_sed"`
23836 gl_header=$gl_cv_absolute_sys_socket_h
23837 gl_cv_next_sys_socket_h='"'$gl_header'"'
23839 gl_cv_next_sys_socket_h='<'sys/socket.h'>'
23844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_socket_h" >&5
23845 $as_echo "$gl_cv_next_sys_socket_h" >&6; }
23847 NEXT_SYS_SOCKET_H=$gl_cv_next_sys_socket_h
23849 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
23850 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
23851 gl_next_as_first_directive='<'sys/socket.h'>'
23853 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
23854 gl_next_as_first_directive=$gl_cv_next_sys_socket_h
23856 NEXT_AS_FIRST_DIRECTIVE_SYS_SOCKET_H=$gl_next_as_first_directive
23861 if test $ac_cv_header_sys_socket_h = yes; then
23862 HAVE_SYS_SOCKET_H=1
23865 HAVE_SYS_SOCKET_H=0
23866 if test $ac_cv_header_ws2tcpip_h = yes; then
23875 ac_fn_c_check_type "$LINENO" "struct sockaddr_storage" "ac_cv_type_struct_sockaddr_storage" "
23876 /* sys/types.h is not needed according to POSIX, but the
23877 sys/socket.h in i386-unknown-freebsd4.10 and
23878 powerpc-apple-darwin5.5 required it. */
23879 #include <sys/types.h>
23880 #ifdef HAVE_SYS_SOCKET_H
23881 #include <sys/socket.h>
23883 #ifdef HAVE_WS2TCPIP_H
23884 #include <ws2tcpip.h>
23888 if test "x$ac_cv_type_struct_sockaddr_storage" = xyes; then :
23890 cat >>confdefs.h <<_ACEOF
23891 #define HAVE_STRUCT_SOCKADDR_STORAGE 1
23896 ac_fn_c_check_type "$LINENO" "sa_family_t" "ac_cv_type_sa_family_t" "
23897 /* sys/types.h is not needed according to POSIX, but the
23898 sys/socket.h in i386-unknown-freebsd4.10 and
23899 powerpc-apple-darwin5.5 required it. */
23900 #include <sys/types.h>
23901 #ifdef HAVE_SYS_SOCKET_H
23902 #include <sys/socket.h>
23904 #ifdef HAVE_WS2TCPIP_H
23905 #include <ws2tcpip.h>
23909 if test "x$ac_cv_type_sa_family_t" = xyes; then :
23911 cat >>confdefs.h <<_ACEOF
23912 #define HAVE_SA_FAMILY_T 1
23918 if test $ac_cv_type_struct_sockaddr_storage = no; then
23919 HAVE_STRUCT_SOCKADDR_STORAGE=0
23921 if test $ac_cv_type_sa_family_t = no; then
23924 if test $ac_cv_type_struct_sockaddr_storage != no; then
23925 ac_fn_c_check_member "$LINENO" "struct sockaddr_storage" "ss_family" "ac_cv_member_struct_sockaddr_storage_ss_family" "#include <sys/types.h>
23926 #ifdef HAVE_SYS_SOCKET_H
23927 #include <sys/socket.h>
23929 #ifdef HAVE_WS2TCPIP_H
23930 #include <ws2tcpip.h>
23934 if test "x$ac_cv_member_struct_sockaddr_storage_ss_family" = xyes; then :
23936 cat >>confdefs.h <<_ACEOF
23937 #define HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY 1
23942 HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY=0
23946 if test $HAVE_STRUCT_SOCKADDR_STORAGE = 0 || test $HAVE_SA_FAMILY_T = 0 \
23947 || test $HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY = 0; then
23948 SYS_SOCKET_H='sys/socket.h'
23960 if test $ac_cv_header_sys_socket_h != yes; then
23961 for ac_header in winsock2.h
23963 ac_fn_c_check_header_mongrel "$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
23964 if test "x$ac_cv_header_winsock2_h" = xyes; then :
23965 cat >>confdefs.h <<_ACEOF
23966 #define HAVE_WINSOCK2_H 1
23974 if test "$ac_cv_header_winsock2_h" = yes; then
23976 UNISTD_H_HAVE_WINSOCK2_H=1
23977 SYS_IOCTL_H_HAVE_WINSOCK2_H=1
23985 for gl_func in socket connect accept bind getpeername getsockname getsockopt listen recv send recvfrom sendto setsockopt shutdown accept4; do
23986 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
23987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
23988 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
23989 if eval \${$as_gl_Symbol+:} false; then :
23990 $as_echo_n "(cached) " >&6
23992 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23993 /* end confdefs.h. */
23995 /* Some systems require prerequisite headers. */
23996 #include <sys/types.h>
23997 #include <sys/socket.h>
24008 if ac_fn_c_try_compile "$LINENO"; then :
24009 eval "$as_gl_Symbol=yes"
24011 eval "$as_gl_Symbol=no"
24013 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24015 eval ac_res=\$$as_gl_Symbol
24016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
24017 $as_echo "$ac_res" >&6; }
24018 if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
24019 cat >>confdefs.h <<_ACEOF
24020 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
24023 eval ac_cv_have_decl_$gl_func=yes
24049 if test $gl_cv_have_include_next = yes; then
24050 gl_cv_next_sys_stat_h='<'sys/stat.h'>'
24052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/stat.h>" >&5
24053 $as_echo_n "checking absolute name of <sys/stat.h>... " >&6; }
24054 if ${gl_cv_next_sys_stat_h+:} false; then :
24055 $as_echo_n "(cached) " >&6
24058 if test $ac_cv_header_sys_stat_h = yes; then
24063 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24064 /* end confdefs.h. */
24065 #include <sys/stat.h>
24068 aix*) gl_absname_cpp="$ac_cpp -C" ;;
24069 *) gl_absname_cpp="$ac_cpp" ;;
24074 gl_dirsep_regex='[/\\]'
24077 gl_dirsep_regex='\/'
24080 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
24081 gl_header_literal_regex=`echo 'sys/stat.h' \
24082 | sed -e "$gl_make_literal_regex_sed"`
24083 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
24084 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
24090 gl_cv_absolute_sys_stat_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
24091 sed -n "$gl_absolute_header_sed"`
24093 gl_header=$gl_cv_absolute_sys_stat_h
24094 gl_cv_next_sys_stat_h='"'$gl_header'"'
24096 gl_cv_next_sys_stat_h='<'sys/stat.h'>'
24101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_stat_h" >&5
24102 $as_echo "$gl_cv_next_sys_stat_h" >&6; }
24104 NEXT_SYS_STAT_H=$gl_cv_next_sys_stat_h
24106 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
24107 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
24108 gl_next_as_first_directive='<'sys/stat.h'>'
24110 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
24111 gl_next_as_first_directive=$gl_cv_next_sys_stat_h
24113 NEXT_AS_FIRST_DIRECTIVE_SYS_STAT_H=$gl_next_as_first_directive
24125 if test $WINDOWS_64_BIT_ST_SIZE = 1; then
24127 $as_echo "#define _GL_WINDOWS_64_BIT_ST_SIZE 1" >>confdefs.h
24131 ac_fn_c_check_type "$LINENO" "nlink_t" "ac_cv_type_nlink_t" "#include <sys/types.h>
24132 #include <sys/stat.h>
24134 if test "x$ac_cv_type_nlink_t" = xyes; then :
24138 $as_echo "#define nlink_t int" >>confdefs.h
24144 for gl_func in fchmodat fstat fstatat futimens lchmod lstat mkdirat mkfifo mkfifoat mknod mknodat stat utimensat; do
24145 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
24146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
24147 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
24148 if eval \${$as_gl_Symbol+:} false; then :
24149 $as_echo_n "(cached) " >&6
24151 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24152 /* end confdefs.h. */
24153 #include <sys/stat.h>
24164 if ac_fn_c_try_compile "$LINENO"; then :
24165 eval "$as_gl_Symbol=yes"
24167 eval "$as_gl_Symbol=no"
24169 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24171 eval ac_res=\$$as_gl_Symbol
24172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
24173 $as_echo "$ac_res" >&6; }
24174 if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
24175 cat >>confdefs.h <<_ACEOF
24176 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
24179 eval ac_cv_have_decl_$gl_func=yes
24208 if test $gl_cv_have_include_next = yes; then
24209 gl_cv_next_sys_uio_h='<'sys/uio.h'>'
24211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/uio.h>" >&5
24212 $as_echo_n "checking absolute name of <sys/uio.h>... " >&6; }
24213 if ${gl_cv_next_sys_uio_h+:} false; then :
24214 $as_echo_n "(cached) " >&6
24217 if test $ac_cv_header_sys_uio_h = yes; then
24222 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24223 /* end confdefs.h. */
24224 #include <sys/uio.h>
24227 aix*) gl_absname_cpp="$ac_cpp -C" ;;
24228 *) gl_absname_cpp="$ac_cpp" ;;
24233 gl_dirsep_regex='[/\\]'
24236 gl_dirsep_regex='\/'
24239 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
24240 gl_header_literal_regex=`echo 'sys/uio.h' \
24241 | sed -e "$gl_make_literal_regex_sed"`
24242 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
24243 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
24249 gl_cv_absolute_sys_uio_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
24250 sed -n "$gl_absolute_header_sed"`
24252 gl_header=$gl_cv_absolute_sys_uio_h
24253 gl_cv_next_sys_uio_h='"'$gl_header'"'
24255 gl_cv_next_sys_uio_h='<'sys/uio.h'>'
24260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_uio_h" >&5
24261 $as_echo "$gl_cv_next_sys_uio_h" >&6; }
24263 NEXT_SYS_UIO_H=$gl_cv_next_sys_uio_h
24265 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
24266 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
24267 gl_next_as_first_directive='<'sys/uio.h'>'
24269 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
24270 gl_next_as_first_directive=$gl_cv_next_sys_uio_h
24272 NEXT_AS_FIRST_DIRECTIVE_SYS_UIO_H=$gl_next_as_first_directive
24277 if test $ac_cv_header_sys_uio_h = yes; then
24294 ac_fn_c_check_decl "$LINENO" "localtime_r" "ac_cv_have_decl_localtime_r" "#include <time.h>
24296 if test "x$ac_cv_have_decl_localtime_r" = xyes; then :
24302 cat >>confdefs.h <<_ACEOF
24303 #define HAVE_DECL_LOCALTIME_R $ac_have_decl
24306 if test $ac_cv_have_decl_localtime_r = no; then
24307 HAVE_DECL_LOCALTIME_R=0
24317 if test $ac_cv_func_localtime_r = yes; then
24319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether localtime_r is compatible with its POSIX signature" >&5
24320 $as_echo_n "checking whether localtime_r is compatible with its POSIX signature... " >&6; }
24321 if ${gl_cv_time_r_posix+:} false; then :
24322 $as_echo_n "(cached) " >&6
24324 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24325 /* end confdefs.h. */
24330 /* We don't need to append 'restrict's to the argument types,
24331 even though the POSIX signature has the 'restrict's,
24332 since C99 says they can't affect type compatibility. */
24333 struct tm * (*ptr) (time_t const *, struct tm *) = localtime_r;
24335 /* Check the return type is a pointer.
24336 On HP-UX 10 it is 'int'. */
24337 *localtime_r (0, 0);
24343 if ac_fn_c_try_compile "$LINENO"; then :
24344 gl_cv_time_r_posix=yes
24346 gl_cv_time_r_posix=no
24348 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_time_r_posix" >&5
24352 $as_echo "$gl_cv_time_r_posix" >&6; }
24353 if test $gl_cv_time_r_posix = yes; then
24354 REPLACE_LOCALTIME_R=0
24356 REPLACE_LOCALTIME_R=1
24362 if test $HAVE_LOCALTIME_R = 0 || test $REPLACE_LOCALTIME_R = 1; then
24371 gl_LIBOBJS="$gl_LIBOBJS time_r.$ac_objext"
24388 $as_echo "#define GNULIB_TEST_TIME_R 1" >>confdefs.h
24410 if test $gl_cv_have_include_next = yes; then
24411 gl_cv_next_unistd_h='<'unistd.h'>'
24413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <unistd.h>" >&5
24414 $as_echo_n "checking absolute name of <unistd.h>... " >&6; }
24415 if ${gl_cv_next_unistd_h+:} false; then :
24416 $as_echo_n "(cached) " >&6
24419 if test $ac_cv_header_unistd_h = yes; then
24424 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24425 /* end confdefs.h. */
24426 #include <unistd.h>
24429 aix*) gl_absname_cpp="$ac_cpp -C" ;;
24430 *) gl_absname_cpp="$ac_cpp" ;;
24435 gl_dirsep_regex='[/\\]'
24438 gl_dirsep_regex='\/'
24441 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
24442 gl_header_literal_regex=`echo 'unistd.h' \
24443 | sed -e "$gl_make_literal_regex_sed"`
24444 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
24445 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
24451 gl_cv_absolute_unistd_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
24452 sed -n "$gl_absolute_header_sed"`
24454 gl_header=$gl_cv_absolute_unistd_h
24455 gl_cv_next_unistd_h='"'$gl_header'"'
24457 gl_cv_next_unistd_h='<'unistd.h'>'
24462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_unistd_h" >&5
24463 $as_echo "$gl_cv_next_unistd_h" >&6; }
24465 NEXT_UNISTD_H=$gl_cv_next_unistd_h
24467 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
24468 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
24469 gl_next_as_first_directive='<'unistd.h'>'
24471 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
24472 gl_next_as_first_directive=$gl_cv_next_unistd_h
24474 NEXT_AS_FIRST_DIRECTIVE_UNISTD_H=$gl_next_as_first_directive
24479 if test $ac_cv_header_unistd_h = yes; then
24491 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
24492 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
24493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
24494 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
24495 if eval \${$as_gl_Symbol+:} false; then :
24496 $as_echo_n "(cached) " >&6
24498 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24499 /* end confdefs.h. */
24502 # include <unistd.h>
24504 /* Some systems declare various items in the wrong headers. */
24505 #if !(defined __GLIBC__ && !defined __UCLIBC__)
24506 # include <fcntl.h>
24507 # include <stdio.h>
24508 # include <stdlib.h>
24509 # if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
24523 if ac_fn_c_try_compile "$LINENO"; then :
24524 eval "$as_gl_Symbol=yes"
24526 eval "$as_gl_Symbol=no"
24528 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24530 eval ac_res=\$$as_gl_Symbol
24531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
24532 $as_echo "$ac_res" >&6; }
24533 if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
24534 cat >>confdefs.h <<_ACEOF
24535 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
24538 eval ac_cv_have_decl_$gl_func=yes
24544 # Check whether --enable-valgrind-tests was given.
24545 if test "${enable_valgrind_tests+set}" = set; then :
24546 enableval=$enable_valgrind_tests; opt_valgrind_tests=$enableval
24548 opt_valgrind_tests=yes
24552 # Run self-tests under valgrind?
24553 if test "$opt_valgrind_tests" = "yes" && test "$cross_compiling" = no; then
24554 for ac_prog in valgrind
24556 # Extract the first word of "$ac_prog", so it can be a program name with args.
24557 set dummy $ac_prog; ac_word=$2
24558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24559 $as_echo_n "checking for $ac_word... " >&6; }
24560 if ${ac_cv_prog_VALGRIND+:} false; then :
24561 $as_echo_n "(cached) " >&6
24563 if test -n "$VALGRIND"; then
24564 ac_cv_prog_VALGRIND="$VALGRIND" # Let the user override the test.
24566 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24567 for as_dir in $PATH
24570 test -z "$as_dir" && as_dir=.
24571 for ac_exec_ext in '' $ac_executable_extensions; do
24572 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24573 ac_cv_prog_VALGRIND="$ac_prog"
24574 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24583 VALGRIND=$ac_cv_prog_VALGRIND
24584 if test -n "$VALGRIND"; then
24585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $VALGRIND" >&5
24586 $as_echo "$VALGRIND" >&6; }
24588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24589 $as_echo "no" >&6; }
24593 test -n "$VALGRIND" && break
24598 OPTS="-q --error-exitcode=1 --leak-check=full --suppressions=suppressions.valgrind"
24600 if test -n "$VALGRIND" \
24601 && $VALGRIND $OPTS $SHELL -c 'exit 0' > /dev/null 2>&1; then
24602 opt_valgrind_tests=yes
24603 VALGRIND="$VALGRIND $OPTS"
24605 opt_valgrind_tests=no
24609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether self tests are run under valgrind" >&5
24610 $as_echo_n "checking whether self tests are run under valgrind... " >&6; }
24611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $opt_valgrind_tests" >&5
24612 $as_echo "$opt_valgrind_tests" >&6; }
24622 if test $ac_cv_func_vasnprintf = no; then
24639 gl_LIBOBJS="$gl_LIBOBJS vasnprintf.$ac_objext"
24649 gl_LIBOBJS="$gl_LIBOBJS printf-args.$ac_objext"
24659 gl_LIBOBJS="$gl_LIBOBJS printf-parse.$ac_objext"
24669 gl_LIBOBJS="$gl_LIBOBJS asnprintf.$ac_objext"
24671 if test $ac_cv_func_vasnprintf = yes; then
24673 $as_echo "#define REPLACE_VASNPRINTF 1" >>confdefs.h
24687 ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
24688 if test "x$ac_cv_type_ptrdiff_t" = xyes; then :
24692 $as_echo "#define ptrdiff_t long" >>confdefs.h
24706 for ac_func in vasprintf
24708 ac_fn_c_check_func "$LINENO" "vasprintf" "ac_cv_func_vasprintf"
24709 if test "x$ac_cv_func_vasprintf" = xyes; then :
24710 cat >>confdefs.h <<_ACEOF
24711 #define HAVE_VASPRINTF 1
24717 if test $ac_cv_func_vasprintf = no; then
24727 gl_LIBOBJS="$gl_LIBOBJS vasprintf.$ac_objext"
24737 gl_LIBOBJS="$gl_LIBOBJS asprintf.$ac_objext"
24740 if test $ac_cv_func_vasprintf = yes; then
24741 REPLACE_VASPRINTF=1
24766 $as_echo "#define GNULIB_TEST_VASPRINTF 1" >>confdefs.h
24772 XGETTEXT_EXTRA_OPTIONS="$XGETTEXT_EXTRA_OPTIONS --flag=asprintf:2:c-format"
24776 XGETTEXT_EXTRA_OPTIONS="$XGETTEXT_EXTRA_OPTIONS --flag=vasprintf:2:c-format"
24780 gl_cv_func_vsnprintf_usable=no
24781 for ac_func in vsnprintf
24783 ac_fn_c_check_func "$LINENO" "vsnprintf" "ac_cv_func_vsnprintf"
24784 if test "x$ac_cv_func_vsnprintf" = xyes; then :
24785 cat >>confdefs.h <<_ACEOF
24786 #define HAVE_VSNPRINTF 1
24792 if test $ac_cv_func_vsnprintf = yes; then
24796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether snprintf respects a size of 1" >&5
24797 $as_echo_n "checking whether snprintf respects a size of 1... " >&6; }
24798 if ${gl_cv_func_snprintf_size1+:} false; then :
24799 $as_echo_n "(cached) " >&6
24802 if test "$cross_compiling" = yes; then :
24803 gl_cv_func_snprintf_size1="guessing yes"
24805 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24806 /* end confdefs.h. */
24810 # define my_snprintf snprintf
24812 # include <stdarg.h>
24813 static int my_snprintf (char *buf, int size, const char *format, ...)
24817 va_start (args, format);
24818 ret = vsnprintf (buf, size, format, args);
24825 static char buf[8] = { 'D', 'E', 'A', 'D', 'B', 'E', 'E', 'F' };
24826 my_snprintf (buf, 1, "%d", 12345);
24827 return buf[1] != 'E';
24830 if ac_fn_c_try_run "$LINENO"; then :
24831 gl_cv_func_snprintf_size1=yes
24833 gl_cv_func_snprintf_size1=no
24835 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24836 conftest.$ac_objext conftest.beam conftest.$ac_ext
24841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_snprintf_size1" >&5
24842 $as_echo "$gl_cv_func_snprintf_size1" >&6; }
24844 case "$gl_cv_func_snprintf_size1" in
24847 case "$gl_cv_func_snprintf_retval_c99" in
24851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether printf supports POSIX/XSI format strings with positions" >&5
24852 $as_echo_n "checking whether printf supports POSIX/XSI format strings with positions... " >&6; }
24853 if ${gl_cv_func_printf_positions+:} false; then :
24854 $as_echo_n "(cached) " >&6
24857 if test "$cross_compiling" = yes; then :
24860 netbsd[1-3]* | netbsdelf[1-3]* | netbsdaout[1-3]* | netbsdcoff[1-3]*)
24861 gl_cv_func_printf_positions="guessing no";;
24862 beos*) gl_cv_func_printf_positions="guessing no";;
24863 mingw* | pw*) gl_cv_func_printf_positions="guessing no";;
24864 *) gl_cv_func_printf_positions="guessing yes";;
24868 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24869 /* end confdefs.h. */
24872 #include <string.h>
24873 /* The string "%2$d %1$d", with dollar characters protected from the shell's
24874 dollar expansion (possibly an autoconf bug). */
24875 static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' };
24876 static char buf[100];
24879 sprintf (buf, format, 33, 55);
24880 return (strcmp (buf, "55 33") != 0);
24883 if ac_fn_c_try_run "$LINENO"; then :
24884 gl_cv_func_printf_positions=yes
24886 gl_cv_func_printf_positions=no
24888 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24889 conftest.$ac_objext conftest.beam conftest.$ac_ext
24894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_printf_positions" >&5
24895 $as_echo "$gl_cv_func_printf_positions" >&6; }
24897 case "$gl_cv_func_printf_positions" in
24899 gl_cv_func_vsnprintf_usable=yes
24907 if test $gl_cv_func_vsnprintf_usable = no; then
24918 gl_LIBOBJS="$gl_LIBOBJS vsnprintf.$ac_objext"
24920 if test $ac_cv_func_vsnprintf = yes; then
24921 REPLACE_VSNPRINTF=1
24933 if test $ac_cv_have_decl_vsnprintf = no; then
24934 HAVE_DECL_VSNPRINTF=0
24948 $as_echo "#define GNULIB_TEST_VSNPRINTF 1" >>confdefs.h
24970 if test $gl_cv_have_include_next = yes; then
24971 gl_cv_next_wchar_h='<'wchar.h'>'
24973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <wchar.h>" >&5
24974 $as_echo_n "checking absolute name of <wchar.h>... " >&6; }
24975 if ${gl_cv_next_wchar_h+:} false; then :
24976 $as_echo_n "(cached) " >&6
24979 if test $ac_cv_header_wchar_h = yes; then
24984 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24985 /* end confdefs.h. */
24989 aix*) gl_absname_cpp="$ac_cpp -C" ;;
24990 *) gl_absname_cpp="$ac_cpp" ;;
24995 gl_dirsep_regex='[/\\]'
24998 gl_dirsep_regex='\/'
25001 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
25002 gl_header_literal_regex=`echo 'wchar.h' \
25003 | sed -e "$gl_make_literal_regex_sed"`
25004 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
25005 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
25011 gl_cv_absolute_wchar_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
25012 sed -n "$gl_absolute_header_sed"`
25014 gl_header=$gl_cv_absolute_wchar_h
25015 gl_cv_next_wchar_h='"'$gl_header'"'
25017 gl_cv_next_wchar_h='<'wchar.h'>'
25022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_wchar_h" >&5
25023 $as_echo "$gl_cv_next_wchar_h" >&6; }
25025 NEXT_WCHAR_H=$gl_cv_next_wchar_h
25027 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
25028 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
25029 gl_next_as_first_directive='<'wchar.h'>'
25031 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
25032 gl_next_as_first_directive=$gl_cv_next_wchar_h
25034 NEXT_AS_FIRST_DIRECTIVE_WCHAR_H=$gl_next_as_first_directive
25039 if test $ac_cv_header_wchar_h = yes; then
25049 if test $gt_cv_c_wint_t = yes; then
25057 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
25058 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
25059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
25060 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
25061 if eval \${$as_gl_Symbol+:} false; then :
25062 $as_echo_n "(cached) " >&6
25064 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25065 /* end confdefs.h. */
25067 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
25069 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
25070 included before <wchar.h>. */
25071 #if !(defined __GLIBC__ && !defined __UCLIBC__)
25072 # include <stddef.h>
25073 # include <stdio.h>
25087 if ac_fn_c_try_compile "$LINENO"; then :
25088 eval "$as_gl_Symbol=yes"
25090 eval "$as_gl_Symbol=no"
25092 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25094 eval ac_res=\$$as_gl_Symbol
25095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
25096 $as_echo "$ac_res" >&6; }
25097 if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
25098 cat >>confdefs.h <<_ACEOF
25099 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
25102 eval ac_cv_have_decl_$gl_func=yes
25110 for ac_header in stdint.h
25112 ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
25113 if test "x$ac_cv_header_stdint_h" = xyes; then :
25114 cat >>confdefs.h <<_ACEOF
25115 #define HAVE_STDINT_H 1
25123 # End of code from modules
25144 gl_source_base='gl/tests'
25145 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
25147 gl_module_indicator_condition=$gltests_WITNESS
25160 if test $gl_cv_have_include_next = yes; then
25161 gl_cv_next_fcntl_h='<'fcntl.h'>'
25163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <fcntl.h>" >&5
25164 $as_echo_n "checking absolute name of <fcntl.h>... " >&6; }
25165 if ${gl_cv_next_fcntl_h+:} false; then :
25166 $as_echo_n "(cached) " >&6
25171 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25172 /* end confdefs.h. */
25176 aix*) gl_absname_cpp="$ac_cpp -C" ;;
25177 *) gl_absname_cpp="$ac_cpp" ;;
25182 gl_dirsep_regex='[/\\]'
25185 gl_dirsep_regex='\/'
25188 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
25189 gl_header_literal_regex=`echo 'fcntl.h' \
25190 | sed -e "$gl_make_literal_regex_sed"`
25191 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
25192 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
25198 gl_cv_absolute_fcntl_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
25199 sed -n "$gl_absolute_header_sed"`
25201 gl_header=$gl_cv_absolute_fcntl_h
25202 gl_cv_next_fcntl_h='"'$gl_header'"'
25206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_fcntl_h" >&5
25207 $as_echo "$gl_cv_next_fcntl_h" >&6; }
25209 NEXT_FCNTL_H=$gl_cv_next_fcntl_h
25211 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
25212 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
25213 gl_next_as_first_directive='<'fcntl.h'>'
25215 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
25216 gl_next_as_first_directive=$gl_cv_next_fcntl_h
25218 NEXT_AS_FIRST_DIRECTIVE_FCNTL_H=$gl_next_as_first_directive
25229 for gl_func in fcntl openat; do
25230 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
25231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
25232 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
25233 if eval \${$as_gl_Symbol+:} false; then :
25234 $as_echo_n "(cached) " >&6
25236 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25237 /* end confdefs.h. */
25249 if ac_fn_c_try_compile "$LINENO"; then :
25250 eval "$as_gl_Symbol=yes"
25252 eval "$as_gl_Symbol=no"
25254 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25256 eval ac_res=\$$as_gl_Symbol
25257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
25258 $as_echo "$ac_res" >&6; }
25259 if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
25260 cat >>confdefs.h <<_ACEOF
25261 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
25264 eval ac_cv_have_decl_$gl_func=yes
25272 if test $HAVE_MSVC_INVALID_PARAMETER_HANDLER = 1; then
25275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fdopen sets errno" >&5
25276 $as_echo_n "checking whether fdopen sets errno... " >&6; }
25277 if ${gl_cv_func_fdopen_works+:} false; then :
25278 $as_echo_n "(cached) " >&6
25281 if test "$cross_compiling" = yes; then :
25283 mingw*) gl_cv_func_fdopen_works="guessing no" ;;
25284 *) gl_cv_func_fdopen_works="guessing yes" ;;
25288 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25289 /* end confdefs.h. */
25298 fp = fdopen (-1, "r");
25299 if (fp == NULL && errno == 0)
25304 if ac_fn_c_try_run "$LINENO"; then :
25305 gl_cv_func_fdopen_works=yes
25307 gl_cv_func_fdopen_works=no
25309 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25310 conftest.$ac_objext conftest.beam conftest.$ac_ext
25315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_fdopen_works" >&5
25316 $as_echo "$gl_cv_func_fdopen_works" >&6; }
25317 case "$gl_cv_func_fdopen_works" in
25318 *no) REPLACE_FDOPEN=1 ;;
25322 if test $REPLACE_FDOPEN = 1; then
25331 gltests_LIBOBJS="$gltests_LIBOBJS fdopen.$ac_objext"
25340 if test "$GNULIB_FDOPEN" != 1; then
25341 if test "$GNULIB_FDOPEN" = 0; then
25342 GNULIB_FDOPEN=$gl_module_indicator_condition
25344 GNULIB_FDOPEN="($GNULIB_FDOPEN || $gl_module_indicator_condition)"
25352 $as_echo "#define GNULIB_TEST_FDOPEN 1" >>confdefs.h
25361 for ac_func in getpagesize
25363 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
25364 if test "x$ac_cv_func_getpagesize" = xyes; then :
25365 cat >>confdefs.h <<_ACEOF
25366 #define HAVE_GETPAGESIZE 1
25372 if test $ac_cv_func_getpagesize = no; then
25374 for ac_header in OS.h
25376 ac_fn_c_check_header_mongrel "$LINENO" "OS.h" "ac_cv_header_OS_h" "$ac_includes_default"
25377 if test "x$ac_cv_header_OS_h" = xyes; then :
25378 cat >>confdefs.h <<_ACEOF
25379 #define HAVE_OS_H 1
25386 if test $ac_cv_header_OS_h = yes; then
25389 for ac_header in sys/param.h
25391 ac_fn_c_check_header_mongrel "$LINENO" "sys/param.h" "ac_cv_header_sys_param_h" "$ac_includes_default"
25392 if test "x$ac_cv_header_sys_param_h" = xyes; then :
25393 cat >>confdefs.h <<_ACEOF
25394 #define HAVE_SYS_PARAM_H 1
25401 if test $ac_cv_header_sys_param_h = yes; then
25407 REPLACE_GETPAGESIZE=1
25410 ac_fn_c_check_decl "$LINENO" "getpagesize" "ac_cv_have_decl_getpagesize" "$ac_includes_default"
25411 if test "x$ac_cv_have_decl_getpagesize" = xyes; then :
25414 HAVE_DECL_GETPAGESIZE=0
25418 if test $REPLACE_GETPAGESIZE = 1; then
25427 gltests_LIBOBJS="$gltests_LIBOBJS getpagesize.$ac_objext"
25435 if test "$GNULIB_GETPAGESIZE" != 1; then
25436 if test "$GNULIB_GETPAGESIZE" = 0; then
25437 GNULIB_GETPAGESIZE=$gl_module_indicator_condition
25439 GNULIB_GETPAGESIZE="($GNULIB_GETPAGESIZE || $gl_module_indicator_condition)"
25447 $as_echo "#define GNULIB_TEST_GETPAGESIZE 1" >>confdefs.h
25457 if test -n "$STDINT_H"; then
25458 PRIPTR_PREFIX='"l"'
25460 for glpfx in '' l ll I64; do
25462 '') gltype1='int';;
25463 l) gltype1='long int';;
25464 ll) gltype1='long long int';;
25465 I64) gltype1='__int64';;
25467 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25468 /* end confdefs.h. */
25469 #include <stdint.h>
25470 extern intptr_t foo;
25471 extern $gltype1 foo;
25480 if ac_fn_c_try_compile "$LINENO"; then :
25481 PRIPTR_PREFIX='"'$glpfx'"'
25483 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25484 test -n "$PRIPTR_PREFIX" && break
25490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether INT32_MAX < INTMAX_MAX" >&5
25491 $as_echo_n "checking whether INT32_MAX < INTMAX_MAX... " >&6; }
25492 if ${gl_cv_test_INT32_MAX_LT_INTMAX_MAX+:} false; then :
25493 $as_echo_n "(cached) " >&6
25495 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25496 /* end confdefs.h. */
25497 /* Work also in C++ mode. */
25498 #define __STDC_LIMIT_MACROS 1
25500 /* Work if build is not clean. */
25501 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H
25503 #include <limits.h>
25505 #include <stdint.h>
25508 #if defined INT32_MAX && defined INTMAX_MAX
25509 #define CONDITION (INT32_MAX < INTMAX_MAX)
25510 #elif HAVE_LONG_LONG_INT
25511 #define CONDITION (sizeof (int) < sizeof (long long int))
25513 #define CONDITION 0
25515 int test[CONDITION ? 1 : -1];
25524 if ac_fn_c_try_compile "$LINENO"; then :
25525 gl_cv_test_INT32_MAX_LT_INTMAX_MAX=yes
25527 gl_cv_test_INT32_MAX_LT_INTMAX_MAX=no
25529 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_test_INT32_MAX_LT_INTMAX_MAX" >&5
25532 $as_echo "$gl_cv_test_INT32_MAX_LT_INTMAX_MAX" >&6; }
25533 if test $gl_cv_test_INT32_MAX_LT_INTMAX_MAX = yes; then
25534 INT32_MAX_LT_INTMAX_MAX=1;
25536 INT32_MAX_LT_INTMAX_MAX=0;
25540 if test $APPLE_UNIVERSAL_BUILD = 0; then
25542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether INT64_MAX == LONG_MAX" >&5
25543 $as_echo_n "checking whether INT64_MAX == LONG_MAX... " >&6; }
25544 if ${gl_cv_test_INT64_MAX_EQ_LONG_MAX+:} false; then :
25545 $as_echo_n "(cached) " >&6
25547 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25548 /* end confdefs.h. */
25549 /* Work also in C++ mode. */
25550 #define __STDC_LIMIT_MACROS 1
25552 /* Work if build is not clean. */
25553 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H
25555 #include <limits.h>
25557 #include <stdint.h>
25560 #if defined INT64_MAX
25561 #define CONDITION (INT64_MAX == LONG_MAX)
25562 #elif HAVE_LONG_LONG_INT
25563 #define CONDITION (sizeof (long long int) == sizeof (long int))
25565 #define CONDITION 0
25567 int test[CONDITION ? 1 : -1];
25576 if ac_fn_c_try_compile "$LINENO"; then :
25577 gl_cv_test_INT64_MAX_EQ_LONG_MAX=yes
25579 gl_cv_test_INT64_MAX_EQ_LONG_MAX=no
25581 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_test_INT64_MAX_EQ_LONG_MAX" >&5
25584 $as_echo "$gl_cv_test_INT64_MAX_EQ_LONG_MAX" >&6; }
25585 if test $gl_cv_test_INT64_MAX_EQ_LONG_MAX = yes; then
25586 INT64_MAX_EQ_LONG_MAX=1;
25588 INT64_MAX_EQ_LONG_MAX=0;
25593 INT64_MAX_EQ_LONG_MAX=-1
25596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether UINT32_MAX < UINTMAX_MAX" >&5
25597 $as_echo_n "checking whether UINT32_MAX < UINTMAX_MAX... " >&6; }
25598 if ${gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX+:} false; then :
25599 $as_echo_n "(cached) " >&6
25601 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25602 /* end confdefs.h. */
25603 /* Work also in C++ mode. */
25604 #define __STDC_LIMIT_MACROS 1
25606 /* Work if build is not clean. */
25607 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H
25609 #include <limits.h>
25611 #include <stdint.h>
25614 #if defined UINT32_MAX && defined UINTMAX_MAX
25615 #define CONDITION (UINT32_MAX < UINTMAX_MAX)
25616 #elif HAVE_LONG_LONG_INT
25617 #define CONDITION (sizeof (unsigned int) < sizeof (unsigned long long int))
25619 #define CONDITION 0
25621 int test[CONDITION ? 1 : -1];
25630 if ac_fn_c_try_compile "$LINENO"; then :
25631 gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX=yes
25633 gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX=no
25635 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX" >&5
25638 $as_echo "$gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX" >&6; }
25639 if test $gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX = yes; then
25640 UINT32_MAX_LT_UINTMAX_MAX=1;
25642 UINT32_MAX_LT_UINTMAX_MAX=0;
25646 if test $APPLE_UNIVERSAL_BUILD = 0; then
25648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether UINT64_MAX == ULONG_MAX" >&5
25649 $as_echo_n "checking whether UINT64_MAX == ULONG_MAX... " >&6; }
25650 if ${gl_cv_test_UINT64_MAX_EQ_ULONG_MAX+:} false; then :
25651 $as_echo_n "(cached) " >&6
25653 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25654 /* end confdefs.h. */
25655 /* Work also in C++ mode. */
25656 #define __STDC_LIMIT_MACROS 1
25658 /* Work if build is not clean. */
25659 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H
25661 #include <limits.h>
25663 #include <stdint.h>
25666 #if defined UINT64_MAX
25667 #define CONDITION (UINT64_MAX == ULONG_MAX)
25668 #elif HAVE_LONG_LONG_INT
25669 #define CONDITION (sizeof (unsigned long long int) == sizeof (unsigned long int))
25671 #define CONDITION 0
25673 int test[CONDITION ? 1 : -1];
25682 if ac_fn_c_try_compile "$LINENO"; then :
25683 gl_cv_test_UINT64_MAX_EQ_ULONG_MAX=yes
25685 gl_cv_test_UINT64_MAX_EQ_ULONG_MAX=no
25687 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_test_UINT64_MAX_EQ_ULONG_MAX" >&5
25690 $as_echo "$gl_cv_test_UINT64_MAX_EQ_ULONG_MAX" >&6; }
25691 if test $gl_cv_test_UINT64_MAX_EQ_ULONG_MAX = yes; then
25692 UINT64_MAX_EQ_ULONG_MAX=1;
25694 UINT64_MAX_EQ_ULONG_MAX=0;
25699 UINT64_MAX_EQ_ULONG_MAX=-1
25707 # Check for mmap(). Don't use AC_FUNC_MMAP, because it checks too much: it
25708 # fails on HP-UX 11, because MAP_FIXED mappings do not work. But this is
25709 # irrelevant for anonymous mappings.
25710 ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
25711 if test "x$ac_cv_func_mmap" = xyes; then :
25718 # Try to allow MAP_ANONYMOUS.
25719 gl_have_mmap_anonymous=no
25720 if test $gl_have_mmap = yes; then
25721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANONYMOUS" >&5
25722 $as_echo_n "checking for MAP_ANONYMOUS... " >&6; }
25723 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25724 /* end confdefs.h. */
25726 #include <sys/mman.h>
25727 #ifdef MAP_ANONYMOUS
25728 I cannot identify this map
25732 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25733 $EGREP "I cannot identify this map" >/dev/null 2>&1; then :
25734 gl_have_mmap_anonymous=yes
25738 if test $gl_have_mmap_anonymous != yes; then
25739 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25740 /* end confdefs.h. */
25742 #include <sys/mman.h>
25744 I cannot identify this map
25748 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25749 $EGREP "I cannot identify this map" >/dev/null 2>&1; then :
25751 $as_echo "#define MAP_ANONYMOUS MAP_ANON" >>confdefs.h
25753 gl_have_mmap_anonymous=yes
25758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_have_mmap_anonymous" >&5
25759 $as_echo "$gl_have_mmap_anonymous" >&6; }
25760 if test $gl_have_mmap_anonymous = yes; then
25762 $as_echo "#define HAVE_MAP_ANONYMOUS 1" >>confdefs.h
25786 # Check for mmap(). Don't use AC_FUNC_MMAP, because it checks too much: it
25787 # fails on HP-UX 11, because MAP_FIXED mappings do not work. But this is
25788 # irrelevant for anonymous mappings.
25789 ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
25790 if test "x$ac_cv_func_mmap" = xyes; then :
25797 # Try to allow MAP_ANONYMOUS.
25798 gl_have_mmap_anonymous=no
25799 if test $gl_have_mmap = yes; then
25800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANONYMOUS" >&5
25801 $as_echo_n "checking for MAP_ANONYMOUS... " >&6; }
25802 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25803 /* end confdefs.h. */
25805 #include <sys/mman.h>
25806 #ifdef MAP_ANONYMOUS
25807 I cannot identify this map
25811 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25812 $EGREP "I cannot identify this map" >/dev/null 2>&1; then :
25813 gl_have_mmap_anonymous=yes
25817 if test $gl_have_mmap_anonymous != yes; then
25818 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25819 /* end confdefs.h. */
25821 #include <sys/mman.h>
25823 I cannot identify this map
25827 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25828 $EGREP "I cannot identify this map" >/dev/null 2>&1; then :
25830 $as_echo "#define MAP_ANONYMOUS MAP_ANON" >>confdefs.h
25832 gl_have_mmap_anonymous=yes
25837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_have_mmap_anonymous" >&5
25838 $as_echo "$gl_have_mmap_anonymous" >&6; }
25839 if test $gl_have_mmap_anonymous = yes; then
25841 $as_echo "#define HAVE_MAP_ANONYMOUS 1" >>confdefs.h
25868 # Check whether --enable-valgrind-tests was given.
25869 if test "${enable_valgrind_tests+set}" = set; then :
25870 enableval=$enable_valgrind_tests; opt_valgrind_tests=$enableval
25872 opt_valgrind_tests=yes
25876 # Run self-tests under valgrind?
25877 if test "$opt_valgrind_tests" = "yes" && test "$cross_compiling" = no; then
25878 for ac_prog in valgrind
25880 # Extract the first word of "$ac_prog", so it can be a program name with args.
25881 set dummy $ac_prog; ac_word=$2
25882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25883 $as_echo_n "checking for $ac_word... " >&6; }
25884 if ${ac_cv_prog_VALGRIND+:} false; then :
25885 $as_echo_n "(cached) " >&6
25887 if test -n "$VALGRIND"; then
25888 ac_cv_prog_VALGRIND="$VALGRIND" # Let the user override the test.
25890 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25891 for as_dir in $PATH
25894 test -z "$as_dir" && as_dir=.
25895 for ac_exec_ext in '' $ac_executable_extensions; do
25896 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25897 ac_cv_prog_VALGRIND="$ac_prog"
25898 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
25907 VALGRIND=$ac_cv_prog_VALGRIND
25908 if test -n "$VALGRIND"; then
25909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $VALGRIND" >&5
25910 $as_echo "$VALGRIND" >&6; }
25912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25913 $as_echo "no" >&6; }
25917 test -n "$VALGRIND" && break
25922 OPTS="-q --error-exitcode=1 --leak-check=full --suppressions=suppressions.valgrind"
25924 if test -n "$VALGRIND" \
25925 && $VALGRIND $OPTS $SHELL -c 'exit 0' > /dev/null 2>&1; then
25926 opt_valgrind_tests=yes
25927 VALGRIND="$VALGRIND $OPTS"
25929 opt_valgrind_tests=no
25933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether self tests are run under valgrind" >&5
25934 $as_echo_n "checking whether self tests are run under valgrind... " >&6; }
25935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $opt_valgrind_tests" >&5
25936 $as_echo "$opt_valgrind_tests" >&6; }
25938 abs_aux_dir=`cd "$ac_aux_dir"; pwd`
25950 LIBTESTS_LIBDEPS="$gltests_libdeps"
25954 GNULIB_INET_NTOP=0;
25955 GNULIB_INET_PTON=0;
25956 HAVE_DECL_INET_NTOP=1;
25957 HAVE_DECL_INET_PTON=1;
25958 REPLACE_INET_NTOP=0;
25959 REPLACE_INET_PTON=0;
25979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if environ is properly declared" >&5
25980 $as_echo_n "checking if environ is properly declared... " >&6; }
25981 if ${gt_cv_var_environ_declaration+:} false; then :
25982 $as_echo_n "(cached) " >&6
25985 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25986 /* end confdefs.h. */
25988 #include <unistd.h>
25990 /* mingw, BeOS, Haiku declare environ in <stdlib.h>, not in <unistd.h>. */
25991 #include <stdlib.h>
25993 extern struct { int foo; } environ;
26002 if ac_fn_c_try_compile "$LINENO"; then :
26003 gt_cv_var_environ_declaration=no
26005 gt_cv_var_environ_declaration=yes
26007 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_var_environ_declaration" >&5
26011 $as_echo "$gt_cv_var_environ_declaration" >&6; }
26012 if test $gt_cv_var_environ_declaration = yes; then
26014 $as_echo "#define HAVE_ENVIRON_DECL 1" >>confdefs.h
26019 if test $gt_cv_var_environ_declaration != yes; then
26020 HAVE_DECL_ENVIRON=0
26023 ac_fn_c_check_decl "$LINENO" "strerror_r" "ac_cv_have_decl_strerror_r" "$ac_includes_default"
26024 if test "x$ac_cv_have_decl_strerror_r" = xyes; then :
26030 cat >>confdefs.h <<_ACEOF
26031 #define HAVE_DECL_STRERROR_R $ac_have_decl
26034 for ac_func in strerror_r
26036 ac_fn_c_check_func "$LINENO" "strerror_r" "ac_cv_func_strerror_r"
26037 if test "x$ac_cv_func_strerror_r" = xyes; then :
26038 cat >>confdefs.h <<_ACEOF
26039 #define HAVE_STRERROR_R 1
26045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strerror_r returns char *" >&5
26046 $as_echo_n "checking whether strerror_r returns char *... " >&6; }
26047 if ${ac_cv_func_strerror_r_char_p+:} false; then :
26048 $as_echo_n "(cached) " >&6
26051 ac_cv_func_strerror_r_char_p=no
26052 if test $ac_cv_have_decl_strerror_r = yes; then
26053 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26054 /* end confdefs.h. */
26055 $ac_includes_default
26061 char x = *strerror_r (0, buf, sizeof buf);
26062 char *p = strerror_r (0, buf, sizeof buf);
26069 if ac_fn_c_try_compile "$LINENO"; then :
26070 ac_cv_func_strerror_r_char_p=yes
26072 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26074 # strerror_r is not declared. Choose between
26075 # systems that have relatively inaccessible declarations for the
26076 # function. BeOS and DEC UNIX 4.0 fall in this category, but the
26077 # former has a strerror_r that returns char*, while the latter
26078 # has a strerror_r that returns `int'.
26079 # This test should segfault on the DEC system.
26080 if test "$cross_compiling" = yes; then :
26083 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26084 /* end confdefs.h. */
26085 $ac_includes_default
26086 extern char *strerror_r ();
26091 char x = *strerror_r (0, buf, sizeof buf);
26092 return ! isalpha (x);
26097 if ac_fn_c_try_run "$LINENO"; then :
26098 ac_cv_func_strerror_r_char_p=yes
26100 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
26101 conftest.$ac_objext conftest.beam conftest.$ac_ext
26107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strerror_r_char_p" >&5
26108 $as_echo "$ac_cv_func_strerror_r_char_p" >&6; }
26109 if test $ac_cv_func_strerror_r_char_p = yes; then
26111 $as_echo "#define STRERROR_R_CHAR_P 1" >>confdefs.h
26116 ac_fn_c_check_decl "$LINENO" "fseeko" "ac_cv_have_decl_fseeko" "$ac_includes_default"
26117 if test "x$ac_cv_have_decl_fseeko" = xyes; then :
26123 cat >>confdefs.h <<_ACEOF
26124 #define HAVE_DECL_FSEEKO $ac_have_decl
26136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fseeko" >&5
26137 $as_echo_n "checking for fseeko... " >&6; }
26138 if ${gl_cv_func_fseeko+:} false; then :
26139 $as_echo_n "(cached) " >&6
26142 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26143 /* end confdefs.h. */
26149 fseeko (stdin, 0, 0);
26154 if ac_fn_c_try_link "$LINENO"; then :
26155 gl_cv_func_fseeko=yes
26157 gl_cv_func_fseeko=no
26159 rm -f core conftest.err conftest.$ac_objext \
26160 conftest$ac_exeext conftest.$ac_ext
26163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_fseeko" >&5
26164 $as_echo "$gl_cv_func_fseeko" >&6; }
26173 if test $ac_cv_have_decl_fseeko = no; then
26177 if test $gl_cv_func_fseeko = no; then
26180 if test $WINDOWS_64_BIT_OFF_T = 1; then
26183 if test $gl_cv_var_stdin_large_offset = no; then
26191 gl_saved_libs="$LIBS"
26192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5
26193 $as_echo_n "checking for library containing gethostbyname... " >&6; }
26194 if ${ac_cv_search_gethostbyname+:} false; then :
26195 $as_echo_n "(cached) " >&6
26197 ac_func_search_save_LIBS=$LIBS
26198 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26199 /* end confdefs.h. */
26201 /* Override any GCC internal prototype to avoid an error.
26202 Use char because int might match the return type of a GCC
26203 builtin and then its argument prototype would still apply. */
26207 char gethostbyname ();
26211 return gethostbyname ();
26216 for ac_lib in '' nsl network net; do
26217 if test -z "$ac_lib"; then
26218 ac_res="none required"
26221 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
26223 if ac_fn_c_try_link "$LINENO"; then :
26224 ac_cv_search_gethostbyname=$ac_res
26226 rm -f core conftest.err conftest.$ac_objext \
26228 if ${ac_cv_search_gethostbyname+:} false; then :
26232 if ${ac_cv_search_gethostbyname+:} false; then :
26235 ac_cv_search_gethostbyname=no
26237 rm conftest.$ac_ext
26238 LIBS=$ac_func_search_save_LIBS
26240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5
26241 $as_echo "$ac_cv_search_gethostbyname" >&6; }
26242 ac_res=$ac_cv_search_gethostbyname
26243 if test "$ac_res" != no; then :
26244 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
26245 if test "$ac_cv_search_gethostbyname" != "none required"; then
26246 HOSTENT_LIB="$ac_cv_search_gethostbyname"
26250 LIBS="$gl_saved_libs"
26251 if test -z "$HOSTENT_LIB"; then
26252 for ac_func in gethostbyname
26254 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
26255 if test "x$ac_cv_func_gethostbyname" = xyes; then :
26256 cat >>confdefs.h <<_ACEOF
26257 #define HAVE_GETHOSTBYNAME 1
26262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in winsock2.h and -lws2_32" >&5
26263 $as_echo_n "checking for gethostbyname in winsock2.h and -lws2_32... " >&6; }
26264 if ${gl_cv_w32_gethostbyname+:} false; then :
26265 $as_echo_n "(cached) " >&6
26267 gl_cv_w32_gethostbyname=no
26268 gl_save_LIBS="$LIBS"
26269 LIBS="$LIBS -lws2_32"
26270 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26271 /* end confdefs.h. */
26273 #ifdef HAVE_WINSOCK2_H
26274 #include <winsock2.h>
26276 #include <stddef.h>
26281 gethostbyname(NULL);
26286 if ac_fn_c_try_link "$LINENO"; then :
26287 gl_cv_w32_gethostbyname=yes
26289 rm -f core conftest.err conftest.$ac_objext \
26290 conftest$ac_exeext conftest.$ac_ext
26291 LIBS="$gl_save_LIBS"
26294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_w32_gethostbyname" >&5
26295 $as_echo "$gl_cv_w32_gethostbyname" >&6; }
26296 if test "$gl_cv_w32_gethostbyname" = "yes"; then
26297 HOSTENT_LIB="-lws2_32"
26308 gl_saved_libs="$LIBS"
26309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getservbyname" >&5
26310 $as_echo_n "checking for library containing getservbyname... " >&6; }
26311 if ${ac_cv_search_getservbyname+:} false; then :
26312 $as_echo_n "(cached) " >&6
26314 ac_func_search_save_LIBS=$LIBS
26315 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26316 /* end confdefs.h. */
26318 /* Override any GCC internal prototype to avoid an error.
26319 Use char because int might match the return type of a GCC
26320 builtin and then its argument prototype would still apply. */
26324 char getservbyname ();
26328 return getservbyname ();
26333 for ac_lib in '' socket network net; do
26334 if test -z "$ac_lib"; then
26335 ac_res="none required"
26338 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
26340 if ac_fn_c_try_link "$LINENO"; then :
26341 ac_cv_search_getservbyname=$ac_res
26343 rm -f core conftest.err conftest.$ac_objext \
26345 if ${ac_cv_search_getservbyname+:} false; then :
26349 if ${ac_cv_search_getservbyname+:} false; then :
26352 ac_cv_search_getservbyname=no
26354 rm conftest.$ac_ext
26355 LIBS=$ac_func_search_save_LIBS
26357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getservbyname" >&5
26358 $as_echo "$ac_cv_search_getservbyname" >&6; }
26359 ac_res=$ac_cv_search_getservbyname
26360 if test "$ac_res" != no; then :
26361 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
26362 if test "$ac_cv_search_getservbyname" != "none required"; then
26363 SERVENT_LIB="$ac_cv_search_getservbyname"
26367 LIBS="$gl_saved_libs"
26368 if test -z "$SERVENT_LIB"; then
26369 for ac_func in getservbyname
26371 ac_fn_c_check_func "$LINENO" "getservbyname" "ac_cv_func_getservbyname"
26372 if test "x$ac_cv_func_getservbyname" = xyes; then :
26373 cat >>confdefs.h <<_ACEOF
26374 #define HAVE_GETSERVBYNAME 1
26379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getservbyname in winsock2.h and -lws2_32" >&5
26380 $as_echo_n "checking for getservbyname in winsock2.h and -lws2_32... " >&6; }
26381 if ${gl_cv_w32_getservbyname+:} false; then :
26382 $as_echo_n "(cached) " >&6
26384 gl_cv_w32_getservbyname=no
26385 gl_save_LIBS="$LIBS"
26386 LIBS="$LIBS -lws2_32"
26387 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26388 /* end confdefs.h. */
26390 #ifdef HAVE_WINSOCK2_H
26391 #include <winsock2.h>
26393 #include <stddef.h>
26398 getservbyname(NULL,NULL);
26403 if ac_fn_c_try_link "$LINENO"; then :
26404 gl_cv_w32_getservbyname=yes
26406 rm -f core conftest.err conftest.$ac_objext \
26407 conftest$ac_exeext conftest.$ac_ext
26408 LIBS="$gl_save_LIBS"
26411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_w32_getservbyname" >&5
26412 $as_echo "$gl_cv_w32_getservbyname" >&6; }
26413 if test "$gl_cv_w32_getservbyname" = "yes"; then
26414 SERVENT_LIB="-lws2_32"
26442 if test $ac_cv_header_sys_socket_h != yes; then
26443 for ac_header in winsock2.h
26445 ac_fn_c_check_header_mongrel "$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
26446 if test "x$ac_cv_header_winsock2_h" = xyes; then :
26447 cat >>confdefs.h <<_ACEOF
26448 #define HAVE_WINSOCK2_H 1
26456 if test "$ac_cv_header_winsock2_h" = yes; then
26458 UNISTD_H_HAVE_WINSOCK2_H=1
26459 SYS_IOCTL_H_HAVE_WINSOCK2_H=1
26465 if test $HAVE_WINSOCK2_H = 1; then
26466 ac_fn_c_check_decl "$LINENO" "inet_ntop" "ac_cv_have_decl_inet_ntop" "#include <ws2tcpip.h>
26468 if test "x$ac_cv_have_decl_inet_ntop" = xyes; then :
26474 cat >>confdefs.h <<_ACEOF
26475 #define HAVE_DECL_INET_NTOP $ac_have_decl
26478 if test $ac_cv_have_decl_inet_ntop = yes; then
26479 REPLACE_INET_NTOP=1
26480 INET_NTOP_LIB="-lws2_32"
26482 HAVE_DECL_INET_NTOP=0
26487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing inet_ntop" >&5
26488 $as_echo_n "checking for library containing inet_ntop... " >&6; }
26489 if ${ac_cv_search_inet_ntop+:} false; then :
26490 $as_echo_n "(cached) " >&6
26492 ac_func_search_save_LIBS=$LIBS
26493 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26494 /* end confdefs.h. */
26496 /* Override any GCC internal prototype to avoid an error.
26497 Use char because int might match the return type of a GCC
26498 builtin and then its argument prototype would still apply. */
26506 return inet_ntop ();
26511 for ac_lib in '' nsl resolv; do
26512 if test -z "$ac_lib"; then
26513 ac_res="none required"
26516 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
26518 if ac_fn_c_try_link "$LINENO"; then :
26519 ac_cv_search_inet_ntop=$ac_res
26521 rm -f core conftest.err conftest.$ac_objext \
26523 if ${ac_cv_search_inet_ntop+:} false; then :
26527 if ${ac_cv_search_inet_ntop+:} false; then :
26530 ac_cv_search_inet_ntop=no
26532 rm conftest.$ac_ext
26533 LIBS=$ac_func_search_save_LIBS
26535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_ntop" >&5
26536 $as_echo "$ac_cv_search_inet_ntop" >&6; }
26537 ac_res=$ac_cv_search_inet_ntop
26538 if test "$ac_res" != no; then :
26539 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
26542 for ac_func in inet_ntop
26544 ac_fn_c_check_func "$LINENO" "inet_ntop" "ac_cv_func_inet_ntop"
26545 if test "x$ac_cv_func_inet_ntop" = xyes; then :
26546 cat >>confdefs.h <<_ACEOF
26547 #define HAVE_INET_NTOP 1
26553 if test $ac_cv_func_inet_ntop = no; then
26561 if test "$ac_cv_search_inet_ntop" != "no" \
26562 && test "$ac_cv_search_inet_ntop" != "none required"; then
26563 INET_NTOP_LIB="$ac_cv_search_inet_ntop"
26573 ac_fn_c_check_decl "$LINENO" "inet_ntop" "ac_cv_have_decl_inet_ntop" "#include <arpa/inet.h>
26575 # include <netdb.h>
26579 if test "x$ac_cv_have_decl_inet_ntop" = xyes; then :
26585 cat >>confdefs.h <<_ACEOF
26586 #define HAVE_DECL_INET_NTOP $ac_have_decl
26589 if test $ac_cv_have_decl_inet_ntop = no; then
26590 HAVE_DECL_INET_NTOP=0
26605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IPv4 sockets" >&5
26606 $as_echo_n "checking for IPv4 sockets... " >&6; }
26607 if ${gl_cv_socket_ipv4+:} false; then :
26608 $as_echo_n "(cached) " >&6
26610 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26611 /* end confdefs.h. */
26612 #include <sys/types.h>
26613 #ifdef HAVE_SYS_SOCKET_H
26614 #include <sys/socket.h>
26616 #ifdef HAVE_NETINET_IN_H
26617 #include <netinet/in.h>
26619 #ifdef HAVE_WINSOCK2_H
26620 #include <winsock2.h>
26625 int x = AF_INET; struct in_addr y; struct sockaddr_in z;
26626 if (&x && &y && &z) return 0;
26631 if ac_fn_c_try_compile "$LINENO"; then :
26632 gl_cv_socket_ipv4=yes
26634 gl_cv_socket_ipv4=no
26636 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_socket_ipv4" >&5
26640 $as_echo "$gl_cv_socket_ipv4" >&6; }
26641 if test $gl_cv_socket_ipv4 = yes; then
26643 $as_echo "#define HAVE_IPV4 1" >>confdefs.h
26647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IPv6 sockets" >&5
26648 $as_echo_n "checking for IPv6 sockets... " >&6; }
26649 if ${gl_cv_socket_ipv6+:} false; then :
26650 $as_echo_n "(cached) " >&6
26652 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26653 /* end confdefs.h. */
26654 #include <sys/types.h>
26655 #ifdef HAVE_SYS_SOCKET_H
26656 #include <sys/socket.h>
26658 #ifdef HAVE_NETINET_IN_H
26659 #include <netinet/in.h>
26661 #ifdef HAVE_WINSOCK2_H
26662 #include <winsock2.h>
26664 #ifdef HAVE_WS2TCPIP_H
26665 #include <ws2tcpip.h>
26670 int x = AF_INET6; struct in6_addr y; struct sockaddr_in6 z;
26671 if (&x && &y && &z) return 0;
26676 if ac_fn_c_try_compile "$LINENO"; then :
26677 gl_cv_socket_ipv6=yes
26679 gl_cv_socket_ipv6=no
26681 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_socket_ipv6" >&5
26685 $as_echo "$gl_cv_socket_ipv6" >&6; }
26686 if test $gl_cv_socket_ipv6 = yes; then
26688 $as_echo "#define HAVE_IPV6 1" >>confdefs.h
26693 ac_fn_c_check_decl "$LINENO" "getpass" "ac_cv_have_decl_getpass" "$ac_includes_default"
26694 if test "x$ac_cv_have_decl_getpass" = xyes; then :
26700 cat >>confdefs.h <<_ACEOF
26701 #define HAVE_DECL_GETPASS $ac_have_decl
26731 ac_fn_c_check_decl "$LINENO" "fflush_unlocked" "ac_cv_have_decl_fflush_unlocked" "$ac_includes_default"
26732 if test "x$ac_cv_have_decl_fflush_unlocked" = xyes; then :
26738 cat >>confdefs.h <<_ACEOF
26739 #define HAVE_DECL_FFLUSH_UNLOCKED $ac_have_decl
26744 ac_fn_c_check_decl "$LINENO" "flockfile" "ac_cv_have_decl_flockfile" "$ac_includes_default"
26745 if test "x$ac_cv_have_decl_flockfile" = xyes; then :
26751 cat >>confdefs.h <<_ACEOF
26752 #define HAVE_DECL_FLOCKFILE $ac_have_decl
26757 ac_fn_c_check_decl "$LINENO" "fputs_unlocked" "ac_cv_have_decl_fputs_unlocked" "$ac_includes_default"
26758 if test "x$ac_cv_have_decl_fputs_unlocked" = xyes; then :
26764 cat >>confdefs.h <<_ACEOF
26765 #define HAVE_DECL_FPUTS_UNLOCKED $ac_have_decl
26770 ac_fn_c_check_decl "$LINENO" "funlockfile" "ac_cv_have_decl_funlockfile" "$ac_includes_default"
26771 if test "x$ac_cv_have_decl_funlockfile" = xyes; then :
26777 cat >>confdefs.h <<_ACEOF
26778 #define HAVE_DECL_FUNLOCKFILE $ac_have_decl
26783 ac_fn_c_check_decl "$LINENO" "putc_unlocked" "ac_cv_have_decl_putc_unlocked" "$ac_includes_default"
26784 if test "x$ac_cv_have_decl_putc_unlocked" = xyes; then :
26790 cat >>confdefs.h <<_ACEOF
26791 #define HAVE_DECL_PUTC_UNLOCKED $ac_have_decl
26803 for ac_header in stdlib.h
26805 ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
26806 if test "x$ac_cv_header_stdlib_h" = xyes; then :
26807 cat >>confdefs.h <<_ACEOF
26808 #define HAVE_STDLIB_H 1
26815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible malloc" >&5
26816 $as_echo_n "checking for GNU libc compatible malloc... " >&6; }
26817 if ${ac_cv_func_malloc_0_nonnull+:} false; then :
26818 $as_echo_n "(cached) " >&6
26820 if test "$cross_compiling" = yes; then :
26822 # Guess yes on platforms where we know the result.
26823 *-gnu* | freebsd* | netbsd* | openbsd* \
26824 | hpux* | solaris* | cygwin* | mingw*)
26825 ac_cv_func_malloc_0_nonnull=yes ;;
26826 # If we don't know, assume the worst.
26827 *) ac_cv_func_malloc_0_nonnull=no ;;
26831 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26832 /* end confdefs.h. */
26833 #if defined STDC_HEADERS || defined HAVE_STDLIB_H
26834 # include <stdlib.h>
26842 return ! malloc (0);
26848 if ac_fn_c_try_run "$LINENO"; then :
26849 ac_cv_func_malloc_0_nonnull=yes
26851 ac_cv_func_malloc_0_nonnull=no
26853 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
26854 conftest.$ac_objext conftest.beam conftest.$ac_ext
26859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_malloc_0_nonnull" >&5
26860 $as_echo "$ac_cv_func_malloc_0_nonnull" >&6; }
26861 if test $ac_cv_func_malloc_0_nonnull = yes; then :
26862 gl_cv_func_malloc_0_nonnull=1
26864 gl_cv_func_malloc_0_nonnull=0
26868 cat >>confdefs.h <<_ACEOF
26869 #define MALLOC_0_IS_NONNULL $gl_cv_func_malloc_0_nonnull
26874 ac_fn_c_check_decl "$LINENO" "alarm" "ac_cv_have_decl_alarm" "$ac_includes_default"
26875 if test "x$ac_cv_have_decl_alarm" = xyes; then :
26881 cat >>confdefs.h <<_ACEOF
26882 #define HAVE_DECL_ALARM $ac_have_decl
26887 # parse-datetime.y works with bison only.
26888 : ${YACC='bison -y'}
26891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compound literals" >&5
26892 $as_echo_n "checking for compound literals... " >&6; }
26893 if ${gl_cv_compound_literals+:} false; then :
26894 $as_echo_n "(cached) " >&6
26896 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26897 /* end confdefs.h. */
26898 struct s { int i, j; };
26902 struct s t = (struct s) { 3, 4 };
26903 if (t.i != 0) return 0;
26908 if ac_fn_c_try_compile "$LINENO"; then :
26909 gl_cv_compound_literals=yes
26911 gl_cv_compound_literals=no
26913 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_compound_literals" >&5
26916 $as_echo "$gl_cv_compound_literals" >&6; }
26917 if test $gl_cv_compound_literals = yes; then
26919 $as_echo "#define HAVE_COMPOUND_LITERALS 1" >>confdefs.h
26923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
26924 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
26925 if ${ac_cv_struct_tm+:} false; then :
26926 $as_echo_n "(cached) " >&6
26928 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26929 /* end confdefs.h. */
26930 #include <sys/types.h>
26937 int *p = &tm.tm_sec;
26943 if ac_fn_c_try_compile "$LINENO"; then :
26944 ac_cv_struct_tm=time.h
26946 ac_cv_struct_tm=sys/time.h
26948 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
26951 $as_echo "$ac_cv_struct_tm" >&6; }
26952 if test $ac_cv_struct_tm = sys/time.h; then
26954 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
26959 ac_fn_c_check_member "$LINENO" "struct tm" "tm_gmtoff" "ac_cv_member_struct_tm_tm_gmtoff" "#include <time.h>
26961 if test "x$ac_cv_member_struct_tm_tm_gmtoff" = xyes; then :
26963 $as_echo "#define HAVE_TM_GMTOFF 1" >>confdefs.h
26983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <sys/select.h> is self-contained" >&5
26984 $as_echo_n "checking whether <sys/select.h> is self-contained... " >&6; }
26985 if ${gl_cv_header_sys_select_h_selfcontained+:} false; then :
26986 $as_echo_n "(cached) " >&6
26989 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26990 /* end confdefs.h. */
26991 #include <sys/select.h>
27000 if ac_fn_c_try_compile "$LINENO"; then :
27001 gl_cv_header_sys_select_h_selfcontained=yes
27003 gl_cv_header_sys_select_h_selfcontained=no
27005 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27006 if test $gl_cv_header_sys_select_h_selfcontained = yes; then
27007 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27008 /* end confdefs.h. */
27009 #include <sys/select.h>
27013 int memset; int bzero;
27019 if ac_fn_c_try_compile "$LINENO"; then :
27020 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27021 /* end confdefs.h. */
27022 #include <sys/select.h>
27028 #define memset nonexistent_memset
27033 void *memset (void *, int, unsigned long);
27035 #define bzero nonexistent_bzero
27040 void bzero (void *, unsigned long);
27049 if ac_fn_c_try_link "$LINENO"; then :
27052 gl_cv_header_sys_select_h_selfcontained=no
27054 rm -f core conftest.err conftest.$ac_objext \
27055 conftest$ac_exeext conftest.$ac_ext
27058 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_sys_select_h_selfcontained" >&5
27063 $as_echo "$gl_cv_header_sys_select_h_selfcontained" >&6; }
27079 if test $gl_cv_have_include_next = yes; then
27080 gl_cv_next_sys_select_h='<'sys/select.h'>'
27082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/select.h>" >&5
27083 $as_echo_n "checking absolute name of <sys/select.h>... " >&6; }
27084 if ${gl_cv_next_sys_select_h+:} false; then :
27085 $as_echo_n "(cached) " >&6
27088 if test $ac_cv_header_sys_select_h = yes; then
27093 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27094 /* end confdefs.h. */
27095 #include <sys/select.h>
27098 aix*) gl_absname_cpp="$ac_cpp -C" ;;
27099 *) gl_absname_cpp="$ac_cpp" ;;
27104 gl_dirsep_regex='[/\\]'
27107 gl_dirsep_regex='\/'
27110 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
27111 gl_header_literal_regex=`echo 'sys/select.h' \
27112 | sed -e "$gl_make_literal_regex_sed"`
27113 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
27114 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
27120 gl_cv_absolute_sys_select_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
27121 sed -n "$gl_absolute_header_sed"`
27123 gl_header=$gl_cv_absolute_sys_select_h
27124 gl_cv_next_sys_select_h='"'$gl_header'"'
27126 gl_cv_next_sys_select_h='<'sys/select.h'>'
27131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_select_h" >&5
27132 $as_echo "$gl_cv_next_sys_select_h" >&6; }
27134 NEXT_SYS_SELECT_H=$gl_cv_next_sys_select_h
27136 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
27137 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
27138 gl_next_as_first_directive='<'sys/select.h'>'
27140 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
27141 gl_next_as_first_directive=$gl_cv_next_sys_select_h
27143 NEXT_AS_FIRST_DIRECTIVE_SYS_SELECT_H=$gl_next_as_first_directive
27148 if test $ac_cv_header_sys_select_h = yes; then
27149 HAVE_SYS_SELECT_H=1
27151 HAVE_SYS_SELECT_H=0
27164 if test $ac_cv_header_sys_socket_h != yes; then
27165 for ac_header in winsock2.h
27167 ac_fn_c_check_header_mongrel "$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
27168 if test "x$ac_cv_header_winsock2_h" = xyes; then :
27169 cat >>confdefs.h <<_ACEOF
27170 #define HAVE_WINSOCK2_H 1
27178 if test "$ac_cv_header_winsock2_h" = yes; then
27180 UNISTD_H_HAVE_WINSOCK2_H=1
27181 SYS_IOCTL_H_HAVE_WINSOCK2_H=1
27189 for gl_func in pselect select; do
27190 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
27191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
27192 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
27193 if eval \${$as_gl_Symbol+:} false; then :
27194 $as_echo_n "(cached) " >&6
27196 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27197 /* end confdefs.h. */
27199 /* Some systems require prerequisite headers. */
27200 #include <sys/types.h>
27201 #if !(defined __GLIBC__ && !defined __UCLIBC__) && HAVE_SYS_TIME_H
27202 # include <sys/time.h>
27204 #include <sys/select.h>
27215 if ac_fn_c_try_compile "$LINENO"; then :
27216 eval "$as_gl_Symbol=yes"
27218 eval "$as_gl_Symbol=no"
27220 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27222 eval ac_res=\$$as_gl_Symbol
27223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
27224 $as_echo "$ac_res" >&6; }
27225 if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
27226 cat >>confdefs.h <<_ACEOF
27227 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
27230 eval ac_cv_have_decl_$gl_func=yes
27236 ac_fn_c_check_decl "$LINENO" "setenv" "ac_cv_have_decl_setenv" "$ac_includes_default"
27237 if test "x$ac_cv_have_decl_setenv" = xyes; then :
27243 cat >>confdefs.h <<_ACEOF
27244 #define HAVE_DECL_SETENV $ac_have_decl
27262 if test $ac_cv_have_decl_setenv = no; then
27282 for ac_header in search.h
27284 ac_fn_c_check_header_mongrel "$LINENO" "search.h" "ac_cv_header_search_h" "$ac_includes_default"
27285 if test "x$ac_cv_header_search_h" = xyes; then :
27286 cat >>confdefs.h <<_ACEOF
27287 #define HAVE_SEARCH_H 1
27294 for ac_func in tsearch
27296 ac_fn_c_check_func "$LINENO" "tsearch" "ac_cv_func_tsearch"
27297 if test "x$ac_cv_func_tsearch" = xyes; then :
27298 cat >>confdefs.h <<_ACEOF
27299 #define HAVE_TSEARCH 1
27308 GNULIB_PTHREAD_SIGMASK=0;
27310 GNULIB_SIGNAL_H_SIGPIPE=0;
27311 GNULIB_SIGPROCMASK=0;
27312 GNULIB_SIGACTION=0;
27313 HAVE_POSIX_SIGNALBLOCKING=1;
27314 HAVE_PTHREAD_SIGMASK=1;
27319 HAVE_STRUCT_SIGACTION_SA_SIGACTION=1;
27321 HAVE_TYPE_VOLATILE_SIG_ATOMIC_T=1;
27323 HAVE_SIGHANDLER_T=1;
27324 REPLACE_PTHREAD_SIGMASK=0;
27328 ac_fn_c_check_type "$LINENO" "sigset_t" "ac_cv_type_sigset_t" "
27329 #include <signal.h>
27330 /* Mingw defines sigset_t not in <signal.h>, but in <sys/types.h>. */
27331 #include <sys/types.h>
27334 if test "x$ac_cv_type_sigset_t" = xyes; then :
27336 cat >>confdefs.h <<_ACEOF
27337 #define HAVE_SIGSET_T 1
27340 gl_cv_type_sigset_t=yes
27342 gl_cv_type_sigset_t=no
27345 if test $gl_cv_type_sigset_t != yes; then
27349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
27350 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
27351 if ${ac_cv_type_uid_t+:} false; then :
27352 $as_echo_n "(cached) " >&6
27354 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27355 /* end confdefs.h. */
27356 #include <sys/types.h>
27359 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27360 $EGREP "uid_t" >/dev/null 2>&1; then :
27361 ac_cv_type_uid_t=yes
27363 ac_cv_type_uid_t=no
27368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
27369 $as_echo "$ac_cv_type_uid_t" >&6; }
27370 if test $ac_cv_type_uid_t = no; then
27372 $as_echo "#define uid_t int" >>confdefs.h
27375 $as_echo "#define gid_t int" >>confdefs.h
27385 ac_fn_c_check_decl "$LINENO" "strdup" "ac_cv_have_decl_strdup" "$ac_includes_default"
27386 if test "x$ac_cv_have_decl_strdup" = xyes; then :
27392 cat >>confdefs.h <<_ACEOF
27393 #define HAVE_DECL_STRDUP $ac_have_decl
27398 REPLACE_STRERROR_0=0
27399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strerror(0) succeeds" >&5
27400 $as_echo_n "checking whether strerror(0) succeeds... " >&6; }
27401 if ${gl_cv_func_strerror_0_works+:} false; then :
27402 $as_echo_n "(cached) " >&6
27404 if test "$cross_compiling" = yes; then :
27406 # Guess yes on glibc systems.
27407 *-gnu*) gl_cv_func_strerror_0_works="guessing yes" ;;
27408 # If we don't know, assume the worst.
27409 *) gl_cv_func_strerror_0_works="guessing no" ;;
27413 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27414 /* end confdefs.h. */
27415 #include <string.h>
27424 str = strerror (0);
27425 if (!*str) result |= 1;
27426 if (errno) result |= 2;
27427 if (strstr (str, "nknown") || strstr (str, "ndefined"))
27434 if ac_fn_c_try_run "$LINENO"; then :
27435 gl_cv_func_strerror_0_works=yes
27437 gl_cv_func_strerror_0_works=no
27439 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
27440 conftest.$ac_objext conftest.beam conftest.$ac_ext
27445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_strerror_0_works" >&5
27446 $as_echo "$gl_cv_func_strerror_0_works" >&6; }
27447 case "$gl_cv_func_strerror_0_works" in
27450 REPLACE_STRERROR_0=1
27452 $as_echo "#define REPLACE_STRERROR_0 1" >>confdefs.h
27458 ac_fn_c_check_decl "$LINENO" "unsetenv" "ac_cv_have_decl_unsetenv" "$ac_includes_default"
27459 if test "x$ac_cv_have_decl_unsetenv" = xyes; then :
27465 cat >>confdefs.h <<_ACEOF
27466 #define HAVE_DECL_UNSETENV $ac_have_decl
27472 GL_COND_LIBTOOL_TRUE=
27473 GL_COND_LIBTOOL_FALSE='#'
27475 GL_COND_LIBTOOL_TRUE='#'
27476 GL_COND_LIBTOOL_FALSE=
27479 gl_cond_libtool=true
27480 gl_m4_base='src/gl/m4'
27490 gl_source_base='src/gl'
27492 if test "$ac_cv_header_winsock2_h" = yes; then
27501 ggl_LIBOBJS="$ggl_LIBOBJS accept.$ac_objext"
27515 $as_echo "#define GNULIB_TEST_ACCEPT 1" >>confdefs.h
27519 LTALLOCA=`echo "$ALLOCA" | sed -e 's/\.[^.]* /.lo /g;s/\.[^.]*$/.lo/'`
27523 if test $ac_cv_func_alloca_works = no; then
27527 # Define an additional variable used in the Makefile substitution.
27528 if test $ac_cv_working_alloca_h = yes; then
27529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca as a compiler built-in" >&5
27530 $as_echo_n "checking for alloca as a compiler built-in... " >&6; }
27531 if ${gl_cv_rpl_alloca+:} false; then :
27532 $as_echo_n "(cached) " >&6
27535 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27536 /* end confdefs.h. */
27538 #if defined __GNUC__ || defined _AIX || defined _MSC_VER
27543 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27544 $EGREP "Need own alloca" >/dev/null 2>&1; then :
27545 gl_cv_rpl_alloca=yes
27547 gl_cv_rpl_alloca=no
27553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_rpl_alloca" >&5
27554 $as_echo "$gl_cv_rpl_alloca" >&6; }
27555 if test $gl_cv_rpl_alloca = yes; then
27557 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
27567 if test -n "$ALLOCA_H"; then
27568 GL_GENERATE_ALLOCA_H_TRUE=
27569 GL_GENERATE_ALLOCA_H_FALSE='#'
27571 GL_GENERATE_ALLOCA_H_TRUE='#'
27572 GL_GENERATE_ALLOCA_H_FALSE=
27586 if test $ac_cv_header_arpa_inet_h = yes; then
27607 if test $gl_cv_have_include_next = yes; then
27608 gl_cv_next_arpa_inet_h='<'arpa/inet.h'>'
27610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <arpa/inet.h>" >&5
27611 $as_echo_n "checking absolute name of <arpa/inet.h>... " >&6; }
27612 if ${gl_cv_next_arpa_inet_h+:} false; then :
27613 $as_echo_n "(cached) " >&6
27616 if test $ac_cv_header_arpa_inet_h = yes; then
27621 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27622 /* end confdefs.h. */
27623 #include <arpa/inet.h>
27626 aix*) gl_absname_cpp="$ac_cpp -C" ;;
27627 *) gl_absname_cpp="$ac_cpp" ;;
27632 gl_dirsep_regex='[/\\]'
27635 gl_dirsep_regex='\/'
27638 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
27639 gl_header_literal_regex=`echo 'arpa/inet.h' \
27640 | sed -e "$gl_make_literal_regex_sed"`
27641 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
27642 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
27648 gl_cv_absolute_arpa_inet_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
27649 sed -n "$gl_absolute_header_sed"`
27651 gl_header=$gl_cv_absolute_arpa_inet_h
27652 gl_cv_next_arpa_inet_h='"'$gl_header'"'
27654 gl_cv_next_arpa_inet_h='<'arpa/inet.h'>'
27659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_arpa_inet_h" >&5
27660 $as_echo "$gl_cv_next_arpa_inet_h" >&6; }
27662 NEXT_ARPA_INET_H=$gl_cv_next_arpa_inet_h
27664 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
27665 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
27666 gl_next_as_first_directive='<'arpa/inet.h'>'
27668 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
27669 gl_next_as_first_directive=$gl_cv_next_arpa_inet_h
27671 NEXT_AS_FIRST_DIRECTIVE_ARPA_INET_H=$gl_next_as_first_directive
27680 for gl_func in inet_ntop inet_pton; do
27681 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
27682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
27683 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
27684 if eval \${$as_gl_Symbol+:} false; then :
27685 $as_echo_n "(cached) " >&6
27687 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27688 /* end confdefs.h. */
27690 /* On some systems, this header is not self-consistent. */
27691 #if !(defined __GLIBC__ || defined __UCLIBC__)
27692 # include <sys/socket.h>
27695 # include <netdb.h>
27697 #include <arpa/inet.h>
27708 if ac_fn_c_try_compile "$LINENO"; then :
27709 eval "$as_gl_Symbol=yes"
27711 eval "$as_gl_Symbol=no"
27713 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27715 eval ac_res=\$$as_gl_Symbol
27716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
27717 $as_echo "$ac_res" >&6; }
27718 if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
27719 cat >>confdefs.h <<_ACEOF
27720 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
27723 eval ac_cv_have_decl_$gl_func=yes
27730 if test "$ac_cv_header_winsock2_h" = yes; then
27739 ggl_LIBOBJS="$ggl_LIBOBJS bind.$ac_objext"
27753 $as_echo "#define GNULIB_TEST_BIND 1" >>confdefs.h
27760 # Solaris 2.5.1 needs -lposix4 to get the clock_gettime function.
27761 # Solaris 7 prefers the library name -lrt to the obsolescent name -lposix4.
27763 # Save and restore LIBS so e.g., -lrt, isn't added to it. Otherwise, *all*
27764 # programs in the package would end up linked with that potentially-shared
27765 # library, inducing unnecessary run-time overhead.
27768 gl_saved_libs=$LIBS
27769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
27770 $as_echo_n "checking for library containing clock_gettime... " >&6; }
27771 if ${ac_cv_search_clock_gettime+:} false; then :
27772 $as_echo_n "(cached) " >&6
27774 ac_func_search_save_LIBS=$LIBS
27775 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27776 /* end confdefs.h. */
27778 /* Override any GCC internal prototype to avoid an error.
27779 Use char because int might match the return type of a GCC
27780 builtin and then its argument prototype would still apply. */
27784 char clock_gettime ();
27788 return clock_gettime ();
27793 for ac_lib in '' rt posix4; do
27794 if test -z "$ac_lib"; then
27795 ac_res="none required"
27798 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
27800 if ac_fn_c_try_link "$LINENO"; then :
27801 ac_cv_search_clock_gettime=$ac_res
27803 rm -f core conftest.err conftest.$ac_objext \
27805 if ${ac_cv_search_clock_gettime+:} false; then :
27809 if ${ac_cv_search_clock_gettime+:} false; then :
27812 ac_cv_search_clock_gettime=no
27814 rm conftest.$ac_ext
27815 LIBS=$ac_func_search_save_LIBS
27817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
27818 $as_echo "$ac_cv_search_clock_gettime" >&6; }
27819 ac_res=$ac_cv_search_clock_gettime
27820 if test "$ac_res" != no; then :
27821 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27822 test "$ac_cv_search_clock_gettime" = "none required" ||
27823 LIB_CLOCK_GETTIME=$ac_cv_search_clock_gettime
27826 for ac_func in clock_gettime clock_settime
27828 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
27829 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
27830 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
27831 cat >>confdefs.h <<_ACEOF
27832 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
27838 LIBS=$gl_saved_libs
27843 if test $HAVE_MSVC_INVALID_PARAMETER_HANDLER = 1; then
27857 if test $ac_cv_header_sys_socket_h != yes; then
27858 for ac_header in winsock2.h
27860 ac_fn_c_check_header_mongrel "$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
27861 if test "x$ac_cv_header_winsock2_h" = xyes; then :
27862 cat >>confdefs.h <<_ACEOF
27863 #define HAVE_WINSOCK2_H 1
27871 if test "$ac_cv_header_winsock2_h" = yes; then
27873 UNISTD_H_HAVE_WINSOCK2_H=1
27874 SYS_IOCTL_H_HAVE_WINSOCK2_H=1
27880 if test $UNISTD_H_HAVE_WINSOCK2_H = 1; then
27886 if test $REPLACE_CLOSE = 1; then
27895 ggl_LIBOBJS="$ggl_LIBOBJS close.$ac_objext"
27909 $as_echo "#define GNULIB_TEST_CLOSE 1" >>confdefs.h
27914 if test "$ac_cv_header_winsock2_h" = yes; then
27923 ggl_LIBOBJS="$ggl_LIBOBJS connect.$ac_objext"
27937 $as_echo "#define GNULIB_TEST_CONNECT 1" >>confdefs.h
27946 $as_echo "#define HAVE_DUP2 1" >>confdefs.h
27949 if test $HAVE_DUP2 = 1; then
27950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether dup2 works" >&5
27951 $as_echo_n "checking whether dup2 works... " >&6; }
27952 if ${gl_cv_func_dup2_works+:} false; then :
27953 $as_echo_n "(cached) " >&6
27955 if test "$cross_compiling" = yes; then :
27957 mingw*) # on this platform, dup2 always returns 0 for success
27958 gl_cv_func_dup2_works="guessing no" ;;
27959 cygwin*) # on cygwin 1.5.x, dup2(1,1) returns 0
27960 gl_cv_func_dup2_works="guessing no" ;;
27961 linux*) # On linux between 2008-07-27 and 2009-05-11, dup2 of a
27962 # closed fd may yield -EBADF instead of -1 / errno=EBADF.
27963 gl_cv_func_dup2_works="guessing no" ;;
27964 freebsd*) # on FreeBSD 6.1, dup2(1,1000000) gives EMFILE, not EBADF.
27965 gl_cv_func_dup2_works="guessing no" ;;
27966 haiku*) # on Haiku alpha 2, dup2(1, 1) resets FD_CLOEXEC.
27967 gl_cv_func_dup2_works="guessing no" ;;
27968 *) gl_cv_func_dup2_works="guessing yes" ;;
27971 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27972 /* end confdefs.h. */
27974 #include <unistd.h>
27982 if (fcntl (1, F_SETFD, FD_CLOEXEC) == -1)
27985 if (dup2 (1, 1) == 0)
27988 if (fcntl (1, F_GETFD) != FD_CLOEXEC)
27992 if (dup2 (0, 0) != -1)
27994 /* Many gnulib modules require POSIX conformance of EBADF. */
27995 if (dup2 (2, 1000000) == -1 && errno != EBADF)
27997 /* Flush out some cygwin core dumps. */
27998 if (dup2 (2, -1) != -1 || errno != EBADF)
28009 if ac_fn_c_try_run "$LINENO"; then :
28010 gl_cv_func_dup2_works=yes
28012 gl_cv_func_dup2_works=no
28014 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
28015 conftest.$ac_objext conftest.beam conftest.$ac_ext
28020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_dup2_works" >&5
28021 $as_echo "$gl_cv_func_dup2_works" >&6; }
28022 case "$gl_cv_func_dup2_works" in
28026 for ac_func in setdtablesize
28028 ac_fn_c_check_func "$LINENO" "setdtablesize" "ac_cv_func_setdtablesize"
28029 if test "x$ac_cv_func_setdtablesize" = xyes; then :
28030 cat >>confdefs.h <<_ACEOF
28031 #define HAVE_SETDTABLESIZE 1
28042 if test $HAVE_DUP2 = 0 || test $REPLACE_DUP2 = 1; then
28051 ggl_LIBOBJS="$ggl_LIBOBJS dup2.$ac_objext"
28066 $as_echo "#define GNULIB_TEST_DUP2 1" >>confdefs.h
28082 $as_echo "#define GNULIB_TEST_ENVIRON 1" >>confdefs.h
28088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for error_at_line" >&5
28089 $as_echo_n "checking for error_at_line... " >&6; }
28090 if ${ac_cv_lib_error_at_line+:} false; then :
28091 $as_echo_n "(cached) " >&6
28093 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28094 /* end confdefs.h. */
28099 error_at_line (0, 0, "", 0, "an error occurred");
28104 if ac_fn_c_try_link "$LINENO"; then :
28105 ac_cv_lib_error_at_line=yes
28107 ac_cv_lib_error_at_line=no
28109 rm -f core conftest.err conftest.$ac_objext \
28110 conftest$ac_exeext conftest.$ac_ext
28112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_error_at_line" >&5
28113 $as_echo "$ac_cv_lib_error_at_line" >&6; }
28115 if test $ac_cv_lib_error_at_line = no; then
28124 ggl_LIBOBJS="$ggl_LIBOBJS error.$ac_objext"
28133 XGETTEXT_EXTRA_OPTIONS="$XGETTEXT_EXTRA_OPTIONS --flag=error:3:c-format"
28137 XGETTEXT_EXTRA_OPTIONS="$XGETTEXT_EXTRA_OPTIONS --flag=error_at_line:5:c-format"
28144 REPLACE_FLOAT_LDBL=0
28146 aix* | beos* | openbsd* | mirbsd* | irix*)
28150 case "$host_cpu" in
28155 # On x86_64 systems, the C compiler may still be generating
28157 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28158 /* end confdefs.h. */
28159 #if defined __LP64__ || defined __x86_64__ || defined __amd64__
28163 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28164 $EGREP "yes" >/dev/null 2>&1; then :
28175 case "$host_cpu" in
28183 aix* | freebsd* | linux*)
28184 if test -n "$FLOAT_H"; then
28185 REPLACE_FLOAT_LDBL=1
28191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether conversion from 'int' to 'long double' works" >&5
28192 $as_echo_n "checking whether conversion from 'int' to 'long double' works... " >&6; }
28193 if ${gl_cv_func_itold_works+:} false; then :
28194 $as_echo_n "(cached) " >&6
28197 if test "$cross_compiling" = yes; then :
28200 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28201 /* end confdefs.h. */
28202 #if defined __LP64__ || defined __arch64__
28206 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28207 $EGREP "yes" >/dev/null 2>&1; then :
28208 gl_cv_func_itold_works="guessing no"
28210 gl_cv_func_itold_works="guessing yes"
28215 *) gl_cv_func_itold_works="guessing yes" ;;
28219 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28220 /* end confdefs.h. */
28223 volatile long double ld;
28232 if ac_fn_c_try_run "$LINENO"; then :
28233 gl_cv_func_itold_works=yes
28235 gl_cv_func_itold_works=no
28237 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
28238 conftest.$ac_objext conftest.beam conftest.$ac_ext
28243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_itold_works" >&5
28244 $as_echo "$gl_cv_func_itold_works" >&6; }
28245 case "$gl_cv_func_itold_works" in
28252 if test -n "$FLOAT_H"; then
28261 if test $gl_cv_have_include_next = yes; then
28262 gl_cv_next_float_h='<'float.h'>'
28264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <float.h>" >&5
28265 $as_echo_n "checking absolute name of <float.h>... " >&6; }
28266 if ${gl_cv_next_float_h+:} false; then :
28267 $as_echo_n "(cached) " >&6
28272 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28273 /* end confdefs.h. */
28277 aix*) gl_absname_cpp="$ac_cpp -C" ;;
28278 *) gl_absname_cpp="$ac_cpp" ;;
28283 gl_dirsep_regex='[/\\]'
28286 gl_dirsep_regex='\/'
28289 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
28290 gl_header_literal_regex=`echo 'float.h' \
28291 | sed -e "$gl_make_literal_regex_sed"`
28292 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
28293 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
28299 gl_cv_absolute_float_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
28300 sed -n "$gl_absolute_header_sed"`
28302 gl_header=$gl_cv_absolute_float_h
28303 gl_cv_next_float_h='"'$gl_header'"'
28307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_float_h" >&5
28308 $as_echo "$gl_cv_next_float_h" >&6; }
28310 NEXT_FLOAT_H=$gl_cv_next_float_h
28312 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
28313 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
28314 gl_next_as_first_directive='<'float.h'>'
28316 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
28317 gl_next_as_first_directive=$gl_cv_next_float_h
28319 NEXT_AS_FIRST_DIRECTIVE_FLOAT_H=$gl_next_as_first_directive
28326 if test -n "$FLOAT_H"; then
28327 GL_GENERATE_FLOAT_H_TRUE=
28328 GL_GENERATE_FLOAT_H_FALSE='#'
28330 GL_GENERATE_FLOAT_H_TRUE='#'
28331 GL_GENERATE_FLOAT_H_FALSE=
28336 if test $REPLACE_FLOAT_LDBL = 1; then
28345 ggl_LIBOBJS="$ggl_LIBOBJS float.$ac_objext"
28348 if test $REPLACE_ITOLD = 1; then
28357 ggl_LIBOBJS="$ggl_LIBOBJS itold.$ac_objext"
28363 if test $HAVE_FSEEKO = 0 || test $REPLACE_FSEEKO = 1; then
28367 if test $REPLACE_FSEEK = 1; then
28376 ggl_LIBOBJS="$ggl_LIBOBJS fseek.$ac_objext"
28390 $as_echo "#define GNULIB_TEST_FSEEK 1" >>confdefs.h
28402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fseeko" >&5
28403 $as_echo_n "checking for fseeko... " >&6; }
28404 if ${gl_cv_func_fseeko+:} false; then :
28405 $as_echo_n "(cached) " >&6
28408 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28409 /* end confdefs.h. */
28415 fseeko (stdin, 0, 0);
28420 if ac_fn_c_try_link "$LINENO"; then :
28421 gl_cv_func_fseeko=yes
28423 gl_cv_func_fseeko=no
28425 rm -f core conftest.err conftest.$ac_objext \
28426 conftest$ac_exeext conftest.$ac_ext
28429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_fseeko" >&5
28430 $as_echo "$gl_cv_func_fseeko" >&6; }
28439 if test $ac_cv_have_decl_fseeko = no; then
28443 if test $gl_cv_func_fseeko = no; then
28446 if test $WINDOWS_64_BIT_OFF_T = 1; then
28449 if test $gl_cv_var_stdin_large_offset = no; then
28455 if test $HAVE_FSEEKO = 0 || test $REPLACE_FSEEKO = 1; then
28464 ggl_LIBOBJS="$ggl_LIBOBJS fseeko.$ac_objext"
28467 for ac_func in _fseeki64
28469 ac_fn_c_check_func "$LINENO" "_fseeki64" "ac_cv_func__fseeki64"
28470 if test "x$ac_cv_func__fseeki64" = xyes; then :
28471 cat >>confdefs.h <<_ACEOF
28472 #define HAVE__FSEEKI64 1
28491 $as_echo "#define GNULIB_TEST_FSEEKO 1" >>confdefs.h
28499 if test $HAVE_MSVC_INVALID_PARAMETER_HANDLER = 1; then
28504 if test $WINDOWS_64_BIT_ST_SIZE = 1; then
28510 if test $REPLACE_FSTAT = 1; then
28519 ggl_LIBOBJS="$ggl_LIBOBJS fstat.$ac_objext"
28534 $as_echo "#define GNULIB_TEST_FSTAT 1" >>confdefs.h
28539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to do getaddrinfo, freeaddrinfo and getnameinfo" >&5
28540 $as_echo "$as_me: checking how to do getaddrinfo, freeaddrinfo and getnameinfo" >&6;}
28542 gai_saved_LIBS="$LIBS"
28544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getaddrinfo" >&5
28545 $as_echo_n "checking for library containing getaddrinfo... " >&6; }
28546 if ${ac_cv_search_getaddrinfo+:} false; then :
28547 $as_echo_n "(cached) " >&6
28549 ac_func_search_save_LIBS=$LIBS
28550 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28551 /* end confdefs.h. */
28553 /* Override any GCC internal prototype to avoid an error.
28554 Use char because int might match the return type of a GCC
28555 builtin and then its argument prototype would still apply. */
28559 char getaddrinfo ();
28563 return getaddrinfo ();
28568 for ac_lib in '' socket network net; do
28569 if test -z "$ac_lib"; then
28570 ac_res="none required"
28573 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
28575 if ac_fn_c_try_link "$LINENO"; then :
28576 ac_cv_search_getaddrinfo=$ac_res
28578 rm -f core conftest.err conftest.$ac_objext \
28580 if ${ac_cv_search_getaddrinfo+:} false; then :
28584 if ${ac_cv_search_getaddrinfo+:} false; then :
28587 ac_cv_search_getaddrinfo=no
28589 rm conftest.$ac_ext
28590 LIBS=$ac_func_search_save_LIBS
28592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getaddrinfo" >&5
28593 $as_echo "$ac_cv_search_getaddrinfo" >&6; }
28594 ac_res=$ac_cv_search_getaddrinfo
28595 if test "$ac_res" != no; then :
28596 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28597 if test "$ac_cv_search_getaddrinfo" != "none required"; then
28598 GETADDRINFO_LIB="$ac_cv_search_getaddrinfo"
28602 LIBS="$gai_saved_LIBS $GETADDRINFO_LIB"
28605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getaddrinfo" >&5
28606 $as_echo_n "checking for getaddrinfo... " >&6; }
28607 if ${gl_cv_func_getaddrinfo+:} false; then :
28608 $as_echo_n "(cached) " >&6
28611 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28612 /* end confdefs.h. */
28614 #include <sys/types.h>
28615 #ifdef HAVE_SYS_SOCKET_H
28616 #include <sys/socket.h>
28618 #ifdef HAVE_NETDB_H
28621 #include <stddef.h>
28626 getaddrinfo("", "", NULL, NULL);
28631 if ac_fn_c_try_link "$LINENO"; then :
28632 gl_cv_func_getaddrinfo=yes
28634 gl_cv_func_getaddrinfo=no
28636 rm -f core conftest.err conftest.$ac_objext \
28637 conftest$ac_exeext conftest.$ac_ext
28639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getaddrinfo" >&5
28640 $as_echo "$gl_cv_func_getaddrinfo" >&6; }
28641 if test $gl_cv_func_getaddrinfo = no; then
28642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getaddrinfo in ws2tcpip.h and -lws2_32" >&5
28643 $as_echo_n "checking for getaddrinfo in ws2tcpip.h and -lws2_32... " >&6; }
28644 if ${gl_cv_w32_getaddrinfo+:} false; then :
28645 $as_echo_n "(cached) " >&6
28648 gl_cv_w32_getaddrinfo=no
28649 am_save_LIBS="$LIBS"
28650 LIBS="$LIBS -lws2_32"
28651 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28652 /* end confdefs.h. */
28654 #ifdef HAVE_WS2TCPIP_H
28655 #include <ws2tcpip.h>
28657 #include <stddef.h>
28662 getaddrinfo(NULL, NULL, NULL, NULL);
28667 if ac_fn_c_try_link "$LINENO"; then :
28668 gl_cv_w32_getaddrinfo=yes
28670 rm -f core conftest.err conftest.$ac_objext \
28671 conftest$ac_exeext conftest.$ac_ext
28672 LIBS="$am_save_LIBS"
28675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_w32_getaddrinfo" >&5
28676 $as_echo "$gl_cv_w32_getaddrinfo" >&6; }
28677 if test "$gl_cv_w32_getaddrinfo" = "yes"; then
28678 GETADDRINFO_LIB="-lws2_32"
28679 LIBS="$gai_saved_LIBS $GETADDRINFO_LIB"
28685 # We can't use AC_REPLACE_FUNCS here because gai_strerror may be an
28686 # inline function declared in ws2tcpip.h, so we need to get that
28687 # header included somehow.
28688 ac_fn_c_check_decl "$LINENO" "gai_strerror" "ac_cv_have_decl_gai_strerror" "
28689 #include <sys/types.h>
28690 #ifdef HAVE_SYS_SOCKET_H
28691 #include <sys/socket.h>
28693 #ifdef HAVE_NETDB_H
28696 #ifdef HAVE_WS2TCPIP_H
28697 #include <ws2tcpip.h>
28699 #include <stddef.h>
28702 if test "x$ac_cv_have_decl_gai_strerror" = xyes; then :
28708 cat >>confdefs.h <<_ACEOF
28709 #define HAVE_DECL_GAI_STRERROR $ac_have_decl
28712 if test $ac_cv_have_decl_gai_strerror = yes; then
28713 ac_fn_c_check_decl "$LINENO" "gai_strerrorA" "ac_cv_have_decl_gai_strerrorA" "
28714 #include <sys/types.h>
28715 #ifdef HAVE_SYS_SOCKET_H
28716 #include <sys/socket.h>
28718 #ifdef HAVE_NETDB_H
28721 #ifdef HAVE_WS2TCPIP_H
28722 #include <ws2tcpip.h>
28724 #include <stddef.h>
28727 if test "x$ac_cv_have_decl_gai_strerrorA" = xyes; then :
28733 cat >>confdefs.h <<_ACEOF
28734 #define HAVE_DECL_GAI_STRERRORA $ac_have_decl
28737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gai_strerror with POSIX signature" >&5
28738 $as_echo_n "checking for gai_strerror with POSIX signature... " >&6; }
28739 if ${gl_cv_func_gai_strerror_posix_signature+:} false; then :
28740 $as_echo_n "(cached) " >&6
28743 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28744 /* end confdefs.h. */
28746 #include <sys/types.h>
28747 #ifdef HAVE_SYS_SOCKET_H
28748 #include <sys/socket.h>
28750 #ifdef HAVE_NETDB_H
28753 #ifdef HAVE_WS2TCPIP_H
28754 #include <ws2tcpip.h>
28756 #include <stddef.h>
28761 const char *gai_strerror(int);
28763 if ac_fn_c_try_compile "$LINENO"; then :
28764 gl_cv_func_gai_strerror_posix_signature=yes
28766 gl_cv_func_gai_strerror_posix_signature=no
28768 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_gai_strerror_posix_signature" >&5
28771 $as_echo "$gl_cv_func_gai_strerror_posix_signature" >&6; }
28772 if test $gl_cv_func_gai_strerror_posix_signature = no; then
28773 REPLACE_GAI_STRERROR=1
28777 LIBS="$gai_saved_LIBS"
28786 ac_fn_c_check_member "$LINENO" "struct sockaddr" "sa_len" "ac_cv_member_struct_sockaddr_sa_len" "
28787 #include <sys/types.h>
28788 #include <sys/socket.h>
28791 if test "x$ac_cv_member_struct_sockaddr_sa_len" = xyes; then :
28793 cat >>confdefs.h <<_ACEOF
28794 #define HAVE_STRUCT_SOCKADDR_SA_LEN 1
28809 ac_fn_c_check_decl "$LINENO" "getaddrinfo" "ac_cv_have_decl_getaddrinfo" "
28810 /* sys/types.h is not needed according to POSIX, but the
28811 sys/socket.h in i386-unknown-freebsd4.10 and
28812 powerpc-apple-darwin5.5 required it. */
28813 #include <sys/types.h>
28814 #ifdef HAVE_SYS_SOCKET_H
28815 #include <sys/socket.h>
28817 #ifdef HAVE_NETDB_H
28820 #ifdef HAVE_WS2TCPIP_H
28821 #include <ws2tcpip.h>
28825 if test "x$ac_cv_have_decl_getaddrinfo" = xyes; then :
28831 cat >>confdefs.h <<_ACEOF
28832 #define HAVE_DECL_GETADDRINFO $ac_have_decl
28834 ac_fn_c_check_decl "$LINENO" "freeaddrinfo" "ac_cv_have_decl_freeaddrinfo" "
28835 /* sys/types.h is not needed according to POSIX, but the
28836 sys/socket.h in i386-unknown-freebsd4.10 and
28837 powerpc-apple-darwin5.5 required it. */
28838 #include <sys/types.h>
28839 #ifdef HAVE_SYS_SOCKET_H
28840 #include <sys/socket.h>
28842 #ifdef HAVE_NETDB_H
28845 #ifdef HAVE_WS2TCPIP_H
28846 #include <ws2tcpip.h>
28850 if test "x$ac_cv_have_decl_freeaddrinfo" = xyes; then :
28856 cat >>confdefs.h <<_ACEOF
28857 #define HAVE_DECL_FREEADDRINFO $ac_have_decl
28859 ac_fn_c_check_decl "$LINENO" "getnameinfo" "ac_cv_have_decl_getnameinfo" "
28860 /* sys/types.h is not needed according to POSIX, but the
28861 sys/socket.h in i386-unknown-freebsd4.10 and
28862 powerpc-apple-darwin5.5 required it. */
28863 #include <sys/types.h>
28864 #ifdef HAVE_SYS_SOCKET_H
28865 #include <sys/socket.h>
28867 #ifdef HAVE_NETDB_H
28870 #ifdef HAVE_WS2TCPIP_H
28871 #include <ws2tcpip.h>
28875 if test "x$ac_cv_have_decl_getnameinfo" = xyes; then :
28881 cat >>confdefs.h <<_ACEOF
28882 #define HAVE_DECL_GETNAMEINFO $ac_have_decl
28885 if test $ac_cv_have_decl_getaddrinfo = no; then
28886 HAVE_DECL_GETADDRINFO=0
28888 if test $ac_cv_have_decl_freeaddrinfo = no; then
28889 HAVE_DECL_FREEADDRINFO=0
28891 if test $ac_cv_have_decl_gai_strerror = no; then
28892 HAVE_DECL_GAI_STRERROR=0
28894 if test $ac_cv_have_decl_getnameinfo = no; then
28895 HAVE_DECL_GETNAMEINFO=0
28898 ac_fn_c_check_type "$LINENO" "struct addrinfo" "ac_cv_type_struct_addrinfo" "
28899 #include <sys/types.h>
28900 #ifdef HAVE_SYS_SOCKET_H
28901 #include <sys/socket.h>
28903 #ifdef HAVE_NETDB_H
28906 #ifdef HAVE_WS2TCPIP_H
28907 #include <ws2tcpip.h>
28911 if test "x$ac_cv_type_struct_addrinfo" = xyes; then :
28913 cat >>confdefs.h <<_ACEOF
28914 #define HAVE_STRUCT_ADDRINFO 1
28920 if test $ac_cv_type_struct_addrinfo = no; then
28921 HAVE_STRUCT_ADDRINFO=0
28924 case " $GETADDRINFO_LIB " in
28925 *" $HOSTENT_LIB "*) ;;
28926 *) GETADDRINFO_LIB="$GETADDRINFO_LIB $HOSTENT_LIB" ;;
28929 case " $GETADDRINFO_LIB " in
28930 *" $SERVENT_LIB "*) ;;
28931 *) GETADDRINFO_LIB="$GETADDRINFO_LIB $SERVENT_LIB" ;;
28934 case " $GETADDRINFO_LIB " in
28935 *" $INET_NTOP_LIB "*) ;;
28936 *) GETADDRINFO_LIB="$GETADDRINFO_LIB $INET_NTOP_LIB" ;;
28942 if test $HAVE_GETADDRINFO = 0; then
28951 ggl_LIBOBJS="$ggl_LIBOBJS getaddrinfo.$ac_objext"
28954 if test $HAVE_DECL_GAI_STRERROR = 0 || test $REPLACE_GAI_STRERROR = 1; then
28963 ggl_LIBOBJS="$ggl_LIBOBJS gai_strerror.$ac_objext"
28971 GNULIB_GETADDRINFO=1
28977 $as_echo "#define GNULIB_TEST_GETADDRINFO 1" >>confdefs.h
29001 if test $ac_cv_func_getdelim = yes; then
29003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working getdelim function" >&5
29004 $as_echo_n "checking for working getdelim function... " >&6; }
29005 if ${gl_cv_func_working_getdelim+:} false; then :
29006 $as_echo_n "(cached) " >&6
29008 echo fooNbarN | tr -d '\012' | tr N '\012' > conftest.data
29009 if test "$cross_compiling" = yes; then :
29010 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29011 /* end confdefs.h. */
29013 #include <features.h>
29014 #ifdef __GNU_LIBRARY__
29015 #if (__GLIBC__ >= 2) && !defined __UCLIBC__
29021 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
29022 $EGREP "Lucky GNU user" >/dev/null 2>&1; then :
29023 gl_cv_func_working_getdelim="guessing yes"
29025 gl_cv_func_working_getdelim="guessing no"
29031 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29032 /* end confdefs.h. */
29034 # include <stdio.h>
29035 # include <stdlib.h>
29036 # include <string.h>
29039 FILE *in = fopen ("./conftest.data", "r");
29043 /* Test result for a NULL buffer and a zero size.
29044 Based on a test program from Karl Heuer. */
29047 int len = getdelim (&line, &siz, '\n', in);
29048 if (!(len == 4 && line && strcmp (line, "foo\n") == 0))
29052 /* Test result for a NULL buffer and a non-zero size.
29053 This crashes on FreeBSD 8.0. */
29055 size_t siz = (size_t)(~0) / 4;
29056 if (getdelim (&line, &siz, '\n', in) == -1)
29063 if ac_fn_c_try_run "$LINENO"; then :
29064 gl_cv_func_working_getdelim=yes
29066 gl_cv_func_working_getdelim=no
29068 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
29069 conftest.$ac_objext conftest.beam conftest.$ac_ext
29073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_working_getdelim" >&5
29074 $as_echo "$gl_cv_func_working_getdelim" >&6; }
29075 case "$gl_cv_func_working_getdelim" in
29084 if test $ac_cv_have_decl_getdelim = no; then
29085 HAVE_DECL_GETDELIM=0
29088 if test $HAVE_GETDELIM = 0 || test $REPLACE_GETDELIM = 1; then
29097 ggl_LIBOBJS="$ggl_LIBOBJS getdelim.$ac_objext"
29100 for ac_func in flockfile funlockfile
29102 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
29103 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
29104 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
29105 cat >>confdefs.h <<_ACEOF
29106 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
29112 ac_fn_c_check_decl "$LINENO" "getc_unlocked" "ac_cv_have_decl_getc_unlocked" "$ac_includes_default"
29113 if test "x$ac_cv_have_decl_getc_unlocked" = xyes; then :
29119 cat >>confdefs.h <<_ACEOF
29120 #define HAVE_DECL_GETC_UNLOCKED $ac_have_decl
29136 $as_echo "#define GNULIB_TEST_GETDELIM 1" >>confdefs.h
29153 gl_getline_needs_run_time_check=no
29154 ac_fn_c_check_func "$LINENO" "getline" "ac_cv_func_getline"
29155 if test "x$ac_cv_func_getline" = xyes; then :
29156 gl_getline_needs_run_time_check=yes
29158 am_cv_func_working_getline=no
29161 if test $gl_getline_needs_run_time_check = yes; then
29162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working getline function" >&5
29163 $as_echo_n "checking for working getline function... " >&6; }
29164 if ${am_cv_func_working_getline+:} false; then :
29165 $as_echo_n "(cached) " >&6
29167 echo fooNbarN | tr -d '\012' | tr N '\012' > conftest.data
29168 if test "$cross_compiling" = yes; then :
29169 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29170 /* end confdefs.h. */
29172 #include <features.h>
29173 #ifdef __GNU_LIBRARY__
29174 #if (__GLIBC__ >= 2) && !defined __UCLIBC__
29180 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
29181 $EGREP "Lucky GNU user" >/dev/null 2>&1; then :
29182 am_cv_func_working_getline="guessing yes"
29184 am_cv_func_working_getline="guessing no"
29190 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29191 /* end confdefs.h. */
29193 # include <stdio.h>
29194 # include <stdlib.h>
29195 # include <string.h>
29198 FILE *in = fopen ("./conftest.data", "r");
29202 /* Test result for a NULL buffer and a zero size.
29203 Based on a test program from Karl Heuer. */
29206 int len = getline (&line, &siz, in);
29207 if (!(len == 4 && line && strcmp (line, "foo\n") == 0))
29211 /* Test result for a NULL buffer and a non-zero size.
29212 This crashes on FreeBSD 8.0. */
29214 size_t siz = (size_t)(~0) / 4;
29215 if (getline (&line, &siz, in) == -1)
29222 if ac_fn_c_try_run "$LINENO"; then :
29223 am_cv_func_working_getline=yes
29225 am_cv_func_working_getline=no
29227 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
29228 conftest.$ac_objext conftest.beam conftest.$ac_ext
29232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_working_getline" >&5
29233 $as_echo "$am_cv_func_working_getline" >&6; }
29236 if test $ac_cv_have_decl_getline = no; then
29237 HAVE_DECL_GETLINE=0
29240 case "$am_cv_func_working_getline" in
29246 if test $REPLACE_GETLINE = 1; then
29255 ggl_LIBOBJS="$ggl_LIBOBJS getline.$ac_objext"
29272 $as_echo "#define GNULIB_TEST_GETLINE 1" >>confdefs.h
29279 for ac_func in getpass
29281 ac_fn_c_check_func "$LINENO" "getpass" "ac_cv_func_getpass"
29282 if test "x$ac_cv_func_getpass" = xyes; then :
29283 cat >>confdefs.h <<_ACEOF
29284 #define HAVE_GETPASS 1
29297 if test $ac_cv_func_getpass = yes; then
29303 if test $HAVE_GETPASS = 0; then
29312 ggl_LIBOBJS="$ggl_LIBOBJS getpass.$ac_objext"
29338 ac_fn_c_check_decl "$LINENO" "__fsetlocking" "ac_cv_have_decl___fsetlocking" "#include <stdio.h>
29339 #if HAVE_STDIO_EXT_H
29340 #include <stdio_ext.h>
29343 if test "x$ac_cv_have_decl___fsetlocking" = xyes; then :
29349 cat >>confdefs.h <<_ACEOF
29350 #define HAVE_DECL___FSETLOCKING $ac_have_decl
29392 if test "$ac_cv_header_winsock2_h" = yes; then
29401 ggl_LIBOBJS="$ggl_LIBOBJS getpeername.$ac_objext"
29409 GNULIB_GETPEERNAME=1
29415 $as_echo "#define GNULIB_TEST_GETPEERNAME 1" >>confdefs.h
29447 gl_gettimeofday_timezone=void
29448 if test $ac_cv_func_gettimeofday != yes; then
29449 HAVE_GETTIMEOFDAY=0
29454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gettimeofday clobbers localtime buffer" >&5
29455 $as_echo_n "checking whether gettimeofday clobbers localtime buffer... " >&6; }
29456 if ${gl_cv_func_gettimeofday_clobber+:} false; then :
29457 $as_echo_n "(cached) " >&6
29459 if test "$cross_compiling" = yes; then :
29460 # When cross-compiling:
29462 # Guess all is fine on glibc systems.
29463 *-gnu*) gl_cv_func_gettimeofday_clobber="guessing no" ;;
29464 # If we don't know, assume the worst.
29465 *) gl_cv_func_gettimeofday_clobber="guessing yes" ;;
29469 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29470 /* end confdefs.h. */
29471 #include <string.h>
29472 #include <sys/time.h>
29474 #include <stdlib.h>
29482 struct tm saved_lt;
29484 lt = localtime (&t);
29486 gettimeofday (&tv, NULL);
29487 return memcmp (lt, &saved_lt, sizeof (struct tm)) != 0;
29493 if ac_fn_c_try_run "$LINENO"; then :
29494 gl_cv_func_gettimeofday_clobber=no
29496 gl_cv_func_gettimeofday_clobber=yes
29498 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
29499 conftest.$ac_objext conftest.beam conftest.$ac_ext
29503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_gettimeofday_clobber" >&5
29504 $as_echo "$gl_cv_func_gettimeofday_clobber" >&6; }
29506 case "$gl_cv_func_gettimeofday_clobber" in
29508 REPLACE_GETTIMEOFDAY=1
29511 REPLACE_LOCALTIME=1
29514 $as_echo "#define GETTIMEOFDAY_CLOBBERS_LOCALTIME 1" >>confdefs.h
29519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gettimeofday with POSIX signature" >&5
29520 $as_echo_n "checking for gettimeofday with POSIX signature... " >&6; }
29521 if ${gl_cv_func_gettimeofday_posix_signature+:} false; then :
29522 $as_echo_n "(cached) " >&6
29524 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29525 /* end confdefs.h. */
29526 #include <sys/time.h>
29528 int gettimeofday (struct timeval *restrict, void *restrict);
29533 /* glibc uses struct timezone * rather than the POSIX void *
29534 if _GNU_SOURCE is defined. However, since the only portable
29535 use of gettimeofday uses NULL as the second parameter, and
29536 since the glibc definition is actually more typesafe, it is
29537 not worth wrapping this to get a compliant signature. */
29538 int (*f) (struct timeval *restrict, void *restrict)
29541 return !(x | c.tv_sec | c.tv_usec);
29547 if ac_fn_c_try_compile "$LINENO"; then :
29548 gl_cv_func_gettimeofday_posix_signature=yes
29550 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29551 /* end confdefs.h. */
29552 #include <sys/time.h>
29553 int gettimeofday (struct timeval *restrict, struct timezone *restrict);
29563 if ac_fn_c_try_compile "$LINENO"; then :
29564 gl_cv_func_gettimeofday_posix_signature=almost
29566 gl_cv_func_gettimeofday_posix_signature=no
29568 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29570 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_gettimeofday_posix_signature" >&5
29573 $as_echo "$gl_cv_func_gettimeofday_posix_signature" >&6; }
29574 if test $gl_cv_func_gettimeofday_posix_signature = almost; then
29575 gl_gettimeofday_timezone='struct timezone'
29576 elif test $gl_cv_func_gettimeofday_posix_signature != yes; then
29577 REPLACE_GETTIMEOFDAY=1
29579 if test $REPLACE_STRUCT_TIMEVAL = 1; then
29580 REPLACE_GETTIMEOFDAY=1
29585 cat >>confdefs.h <<_ACEOF
29586 #define GETTIMEOFDAY_TIMEZONE $gl_gettimeofday_timezone
29590 if test $HAVE_GETTIMEOFDAY = 0 || test $REPLACE_GETTIMEOFDAY = 1; then
29599 ggl_LIBOBJS="$ggl_LIBOBJS gettimeofday.$ac_objext"
29602 for ac_header in sys/timeb.h
29604 ac_fn_c_check_header_mongrel "$LINENO" "sys/timeb.h" "ac_cv_header_sys_timeb_h" "$ac_includes_default"
29605 if test "x$ac_cv_header_sys_timeb_h" = xyes; then :
29606 cat >>confdefs.h <<_ACEOF
29607 #define HAVE_SYS_TIMEB_H 1
29614 for ac_func in _ftime
29616 ac_fn_c_check_func "$LINENO" "_ftime" "ac_cv_func__ftime"
29617 if test "x$ac_cv_func__ftime" = xyes; then :
29618 cat >>confdefs.h <<_ACEOF
29619 #define HAVE__FTIME 1
29632 GNULIB_GETTIMEOFDAY=1
29638 $as_echo "#define GNULIB_TEST_GETTIMEOFDAY 1" >>confdefs.h
29644 gl_saved_libs="$LIBS"
29645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5
29646 $as_echo_n "checking for library containing gethostbyname... " >&6; }
29647 if ${ac_cv_search_gethostbyname+:} false; then :
29648 $as_echo_n "(cached) " >&6
29650 ac_func_search_save_LIBS=$LIBS
29651 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29652 /* end confdefs.h. */
29654 /* Override any GCC internal prototype to avoid an error.
29655 Use char because int might match the return type of a GCC
29656 builtin and then its argument prototype would still apply. */
29660 char gethostbyname ();
29664 return gethostbyname ();
29669 for ac_lib in '' nsl network net; do
29670 if test -z "$ac_lib"; then
29671 ac_res="none required"
29674 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
29676 if ac_fn_c_try_link "$LINENO"; then :
29677 ac_cv_search_gethostbyname=$ac_res
29679 rm -f core conftest.err conftest.$ac_objext \
29681 if ${ac_cv_search_gethostbyname+:} false; then :
29685 if ${ac_cv_search_gethostbyname+:} false; then :
29688 ac_cv_search_gethostbyname=no
29690 rm conftest.$ac_ext
29691 LIBS=$ac_func_search_save_LIBS
29693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5
29694 $as_echo "$ac_cv_search_gethostbyname" >&6; }
29695 ac_res=$ac_cv_search_gethostbyname
29696 if test "$ac_res" != no; then :
29697 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
29698 if test "$ac_cv_search_gethostbyname" != "none required"; then
29699 HOSTENT_LIB="$ac_cv_search_gethostbyname"
29703 LIBS="$gl_saved_libs"
29704 if test -z "$HOSTENT_LIB"; then
29705 for ac_func in gethostbyname
29707 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
29708 if test "x$ac_cv_func_gethostbyname" = xyes; then :
29709 cat >>confdefs.h <<_ACEOF
29710 #define HAVE_GETHOSTBYNAME 1
29715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in winsock2.h and -lws2_32" >&5
29716 $as_echo_n "checking for gethostbyname in winsock2.h and -lws2_32... " >&6; }
29717 if ${gl_cv_w32_gethostbyname+:} false; then :
29718 $as_echo_n "(cached) " >&6
29720 gl_cv_w32_gethostbyname=no
29721 gl_save_LIBS="$LIBS"
29722 LIBS="$LIBS -lws2_32"
29723 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29724 /* end confdefs.h. */
29726 #ifdef HAVE_WINSOCK2_H
29727 #include <winsock2.h>
29729 #include <stddef.h>
29734 gethostbyname(NULL);
29739 if ac_fn_c_try_link "$LINENO"; then :
29740 gl_cv_w32_gethostbyname=yes
29742 rm -f core conftest.err conftest.$ac_objext \
29743 conftest$ac_exeext conftest.$ac_ext
29744 LIBS="$gl_save_LIBS"
29747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_w32_gethostbyname" >&5
29748 $as_echo "$gl_cv_w32_gethostbyname" >&6; }
29749 if test "$gl_cv_w32_gethostbyname" = "yes"; then
29750 HOSTENT_LIB="-lws2_32"
29778 if test $ac_cv_header_sys_socket_h != yes; then
29779 for ac_header in winsock2.h
29781 ac_fn_c_check_header_mongrel "$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
29782 if test "x$ac_cv_header_winsock2_h" = xyes; then :
29783 cat >>confdefs.h <<_ACEOF
29784 #define HAVE_WINSOCK2_H 1
29792 if test "$ac_cv_header_winsock2_h" = yes; then
29794 UNISTD_H_HAVE_WINSOCK2_H=1
29795 SYS_IOCTL_H_HAVE_WINSOCK2_H=1
29801 if test $HAVE_WINSOCK2_H = 1; then
29802 ac_fn_c_check_decl "$LINENO" "inet_ntop" "ac_cv_have_decl_inet_ntop" "#include <ws2tcpip.h>
29804 if test "x$ac_cv_have_decl_inet_ntop" = xyes; then :
29810 cat >>confdefs.h <<_ACEOF
29811 #define HAVE_DECL_INET_NTOP $ac_have_decl
29814 if test $ac_cv_have_decl_inet_ntop = yes; then
29815 REPLACE_INET_NTOP=1
29816 INET_NTOP_LIB="-lws2_32"
29818 HAVE_DECL_INET_NTOP=0
29823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing inet_ntop" >&5
29824 $as_echo_n "checking for library containing inet_ntop... " >&6; }
29825 if ${ac_cv_search_inet_ntop+:} false; then :
29826 $as_echo_n "(cached) " >&6
29828 ac_func_search_save_LIBS=$LIBS
29829 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29830 /* end confdefs.h. */
29832 /* Override any GCC internal prototype to avoid an error.
29833 Use char because int might match the return type of a GCC
29834 builtin and then its argument prototype would still apply. */
29842 return inet_ntop ();
29847 for ac_lib in '' nsl resolv; do
29848 if test -z "$ac_lib"; then
29849 ac_res="none required"
29852 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
29854 if ac_fn_c_try_link "$LINENO"; then :
29855 ac_cv_search_inet_ntop=$ac_res
29857 rm -f core conftest.err conftest.$ac_objext \
29859 if ${ac_cv_search_inet_ntop+:} false; then :
29863 if ${ac_cv_search_inet_ntop+:} false; then :
29866 ac_cv_search_inet_ntop=no
29868 rm conftest.$ac_ext
29869 LIBS=$ac_func_search_save_LIBS
29871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_ntop" >&5
29872 $as_echo "$ac_cv_search_inet_ntop" >&6; }
29873 ac_res=$ac_cv_search_inet_ntop
29874 if test "$ac_res" != no; then :
29875 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
29878 for ac_func in inet_ntop
29880 ac_fn_c_check_func "$LINENO" "inet_ntop" "ac_cv_func_inet_ntop"
29881 if test "x$ac_cv_func_inet_ntop" = xyes; then :
29882 cat >>confdefs.h <<_ACEOF
29883 #define HAVE_INET_NTOP 1
29889 if test $ac_cv_func_inet_ntop = no; then
29897 if test "$ac_cv_search_inet_ntop" != "no" \
29898 && test "$ac_cv_search_inet_ntop" != "none required"; then
29899 INET_NTOP_LIB="$ac_cv_search_inet_ntop"
29909 ac_fn_c_check_decl "$LINENO" "inet_ntop" "ac_cv_have_decl_inet_ntop" "#include <arpa/inet.h>
29911 # include <netdb.h>
29915 if test "x$ac_cv_have_decl_inet_ntop" = xyes; then :
29921 cat >>confdefs.h <<_ACEOF
29922 #define HAVE_DECL_INET_NTOP $ac_have_decl
29925 if test $ac_cv_have_decl_inet_ntop = no; then
29926 HAVE_DECL_INET_NTOP=0
29931 if test $HAVE_INET_NTOP = 0 || test $REPLACE_INET_NTOP = 1; then
29940 ggl_LIBOBJS="$ggl_LIBOBJS inet_ntop.$ac_objext"
29975 if test $ac_cv_header_sys_socket_h != yes; then
29976 for ac_header in winsock2.h
29978 ac_fn_c_check_header_mongrel "$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
29979 if test "x$ac_cv_header_winsock2_h" = xyes; then :
29980 cat >>confdefs.h <<_ACEOF
29981 #define HAVE_WINSOCK2_H 1
29989 if test "$ac_cv_header_winsock2_h" = yes; then
29991 UNISTD_H_HAVE_WINSOCK2_H=1
29992 SYS_IOCTL_H_HAVE_WINSOCK2_H=1
29998 if test $HAVE_WINSOCK2_H = 1; then
29999 ac_fn_c_check_decl "$LINENO" "inet_pton" "ac_cv_have_decl_inet_pton" "#include <ws2tcpip.h>
30001 if test "x$ac_cv_have_decl_inet_pton" = xyes; then :
30007 cat >>confdefs.h <<_ACEOF
30008 #define HAVE_DECL_INET_PTON $ac_have_decl
30011 if test $ac_cv_have_decl_inet_pton = yes; then
30012 REPLACE_INET_PTON=1
30013 INET_PTON_LIB="-lws2_32"
30015 HAVE_DECL_INET_PTON=0
30020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing inet_pton" >&5
30021 $as_echo_n "checking for library containing inet_pton... " >&6; }
30022 if ${ac_cv_search_inet_pton+:} false; then :
30023 $as_echo_n "(cached) " >&6
30025 ac_func_search_save_LIBS=$LIBS
30026 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30027 /* end confdefs.h. */
30029 /* Override any GCC internal prototype to avoid an error.
30030 Use char because int might match the return type of a GCC
30031 builtin and then its argument prototype would still apply. */
30039 return inet_pton ();
30044 for ac_lib in '' nsl resolv; do
30045 if test -z "$ac_lib"; then
30046 ac_res="none required"
30049 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
30051 if ac_fn_c_try_link "$LINENO"; then :
30052 ac_cv_search_inet_pton=$ac_res
30054 rm -f core conftest.err conftest.$ac_objext \
30056 if ${ac_cv_search_inet_pton+:} false; then :
30060 if ${ac_cv_search_inet_pton+:} false; then :
30063 ac_cv_search_inet_pton=no
30065 rm conftest.$ac_ext
30066 LIBS=$ac_func_search_save_LIBS
30068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_pton" >&5
30069 $as_echo "$ac_cv_search_inet_pton" >&6; }
30070 ac_res=$ac_cv_search_inet_pton
30071 if test "$ac_res" != no; then :
30072 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
30075 for ac_func in inet_pton
30077 ac_fn_c_check_func "$LINENO" "inet_pton" "ac_cv_func_inet_pton"
30078 if test "x$ac_cv_func_inet_pton" = xyes; then :
30079 cat >>confdefs.h <<_ACEOF
30080 #define HAVE_INET_PTON 1
30086 if test $ac_cv_func_inet_pton = no; then
30094 if test "$ac_cv_search_inet_pton" != "no" \
30095 && test "$ac_cv_search_inet_pton" != "none required"; then
30096 INET_PTON_LIB="$ac_cv_search_inet_pton"
30106 ac_fn_c_check_decl "$LINENO" "inet_pton" "ac_cv_have_decl_inet_pton" "#include <arpa/inet.h>
30108 # include <netdb.h>
30112 if test "x$ac_cv_have_decl_inet_pton" = xyes; then :
30118 cat >>confdefs.h <<_ACEOF
30119 #define HAVE_DECL_INET_PTON $ac_have_decl
30122 if test $ac_cv_have_decl_inet_pton = no; then
30123 HAVE_DECL_INET_PTON=0
30128 if test $HAVE_INET_PTON = 0 || test $REPLACE_INET_NTOP = 1; then
30137 ggl_LIBOBJS="$ggl_LIBOBJS inet_pton.$ac_objext"
30155 if test "$ac_cv_header_winsock2_h" = yes; then
30164 ggl_LIBOBJS="$ggl_LIBOBJS listen.$ac_objext"
30178 $as_echo "#define GNULIB_TEST_LISTEN 1" >>confdefs.h
30194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lseek detects pipes" >&5
30195 $as_echo_n "checking whether lseek detects pipes... " >&6; }
30196 if ${gl_cv_func_lseek_pipe+:} false; then :
30197 $as_echo_n "(cached) " >&6
30201 gl_cv_func_lseek_pipe=no
30204 if test $cross_compiling = no; then
30205 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30206 /* end confdefs.h. */
30208 #include <sys/types.h> /* for off_t */
30209 #include <stdio.h> /* for SEEK_CUR */
30211 # include <unistd.h>
30212 #else /* on Windows with MSVC */
30220 /* Exit with success only if stdin is seekable. */
30221 return lseek (0, (off_t)0, SEEK_CUR) < 0;
30227 if ac_fn_c_try_link "$LINENO"; then :
30228 if test -s conftest$ac_exeext \
30229 && ./conftest$ac_exeext < conftest.$ac_ext \
30230 && test 1 = "`echo hi \
30231 | { ./conftest$ac_exeext; echo $?; cat >/dev/null; }`"; then
30232 gl_cv_func_lseek_pipe=yes
30234 gl_cv_func_lseek_pipe=no
30238 gl_cv_func_lseek_pipe=no
30240 rm -f core conftest.err conftest.$ac_objext \
30241 conftest$ac_exeext conftest.$ac_ext
30243 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30244 /* end confdefs.h. */
30246 #if defined __BEOS__
30247 /* BeOS mistakenly return 0 when trying to seek on pipes. */
30251 if ac_fn_c_try_compile "$LINENO"; then :
30252 gl_cv_func_lseek_pipe=yes
30254 gl_cv_func_lseek_pipe=no
30256 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_lseek_pipe" >&5
30263 $as_echo "$gl_cv_func_lseek_pipe" >&6; }
30264 if test $gl_cv_func_lseek_pipe = no; then
30267 $as_echo "#define LSEEK_PIPE_BROKEN 1" >>confdefs.h
30272 if test $WINDOWS_64_BIT_OFF_T = 1; then
30276 if test $REPLACE_LSEEK = 1; then
30285 ggl_LIBOBJS="$ggl_LIBOBJS lseek.$ac_objext"
30299 $as_echo "#define GNULIB_TEST_LSEEK 1" >>confdefs.h
30306 if test $gl_cv_func_malloc_posix = yes; then
30308 $as_echo "#define HAVE_MALLOC_POSIX 1" >>confdefs.h
30314 if test $REPLACE_MALLOC = 1; then
30323 ggl_LIBOBJS="$ggl_LIBOBJS malloc.$ac_objext"
30331 GNULIB_MALLOC_POSIX=1
30337 $as_echo "#define GNULIB_TEST_MALLOC_POSIX 1" >>confdefs.h
30346 if test $HAVE_MEMCHR = 0 || test $REPLACE_MEMCHR = 1; then
30355 ggl_LIBOBJS="$ggl_LIBOBJS memchr.$ac_objext"
30358 for ac_header in bp-sym.h
30360 ac_fn_c_check_header_mongrel "$LINENO" "bp-sym.h" "ac_cv_header_bp_sym_h" "$ac_includes_default"
30361 if test "x$ac_cv_header_bp_sym_h" = xyes; then :
30362 cat >>confdefs.h <<_ACEOF
30363 #define HAVE_BP_SYM_H 1
30383 $as_echo "#define GNULIB_TEST_MEMCHR 1" >>confdefs.h
30405 if test $APPLE_UNIVERSAL_BUILD = 1; then
30406 # A universal build on Apple Mac OS X platforms.
30407 # The test result would be 'yes' in 32-bit mode and 'no' in 64-bit mode.
30408 # But we need a configuration result that is valid in both modes.
30409 gl_cv_func_working_mktime=no
30411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mktime" >&5
30412 $as_echo_n "checking for working mktime... " >&6; }
30413 if ${gl_cv_func_working_mktime+:} false; then :
30414 $as_echo_n "(cached) " >&6
30416 if test "$cross_compiling" = yes; then :
30417 gl_cv_func_working_mktime=no
30419 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30420 /* end confdefs.h. */
30421 /* Test program from Paul Eggert and Tony Leneis. */
30422 #include <limits.h>
30423 #include <stdlib.h>
30426 #ifdef HAVE_UNISTD_H
30427 # include <unistd.h>
30430 #if HAVE_DECL_ALARM
30431 # include <signal.h>
30434 /* Work around redefinition to rpl_putenv by other config tests. */
30437 static time_t time_t_max;
30438 static time_t time_t_min;
30440 /* Values we'll use to set the TZ environment variable. */
30441 static char *tz_strings[] = {
30442 (char *) 0, "TZ=GMT0", "TZ=JST-9",
30443 "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
30445 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
30447 /* Return 0 if mktime fails to convert a date in the spring-forward gap.
30448 Based on a problem report from Andreas Jaeger. */
30450 spring_forward_gap ()
30452 /* glibc (up to about 1998-10-07) failed this test. */
30455 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
30456 instead of "TZ=America/Vancouver" in order to detect the bug even
30457 on systems that don't support the Olson extension, or don't have the
30458 full zoneinfo tables installed. */
30459 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
30468 return mktime (&tm) != (time_t) -1;
30472 mktime_test1 (time_t now)
30475 return ! (lt = localtime (&now)) || mktime (lt) == now;
30479 mktime_test (time_t now)
30481 return (mktime_test1 (now)
30482 && mktime_test1 ((time_t) (time_t_max - now))
30483 && mktime_test1 ((time_t) (time_t_min + now)));
30489 /* Based on code from Ariel Faigon. */
30499 return tm.tm_mon == 2 && tm.tm_mday == 31;
30503 bigtime_test (int j)
30507 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
30508 now = mktime (&tm);
30509 if (now != (time_t) -1)
30511 struct tm *lt = localtime (&now);
30513 && lt->tm_year == tm.tm_year
30514 && lt->tm_mon == tm.tm_mon
30515 && lt->tm_mday == tm.tm_mday
30516 && lt->tm_hour == tm.tm_hour
30517 && lt->tm_min == tm.tm_min
30518 && lt->tm_sec == tm.tm_sec
30519 && lt->tm_yday == tm.tm_yday
30520 && lt->tm_wday == tm.tm_wday
30521 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
30522 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
30531 /* The correct answer for 2050-02-01 00:00:00 in Pacific time,
30532 ignoring leap seconds. */
30533 unsigned long int answer = 2527315200UL;
30537 tm.tm_year = 2050 - 1900;
30540 tm.tm_hour = tm.tm_min = tm.tm_sec = 0;
30543 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
30544 instead of "TZ=America/Vancouver" in order to detect the bug even
30545 on systems that don't support the Olson extension, or don't have the
30546 full zoneinfo tables installed. */
30547 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
30551 /* Check that the result is either a failure, or close enough
30552 to the correct answer that we can assume the discrepancy is
30553 due to leap seconds. */
30554 return (t == (time_t) -1
30555 || (0 < t && answer - 120 <= t && t <= answer + 120));
30564 int time_t_signed_magnitude = (time_t) ~ (time_t) 0 < (time_t) -1;
30565 int time_t_signed = ! ((time_t) 0 < (time_t) -1);
30567 #if HAVE_DECL_ALARM
30568 /* This test makes some buggy mktime implementations loop.
30569 Give up after 60 seconds; a mktime slower than that
30570 isn't worth using anyway. */
30571 signal (SIGALRM, SIG_DFL);
30575 time_t_max = (! time_t_signed
30577 : ((((time_t) 1 << (sizeof (time_t) * CHAR_BIT - 2)) - 1)
30579 time_t_min = (! time_t_signed
30581 : time_t_signed_magnitude
30585 delta = time_t_max / 997; /* a suitable prime number */
30586 for (i = 0; i < N_STRINGS; i++)
30589 putenv (tz_strings[i]);
30591 for (t = 0; t <= time_t_max - delta && (result & 1) == 0; t += delta)
30592 if (! mktime_test (t))
30594 if ((result & 2) == 0
30595 && ! (mktime_test ((time_t) 1)
30596 && mktime_test ((time_t) (60 * 60))
30597 && mktime_test ((time_t) (60 * 60 * 24))))
30600 for (j = 1; (result & 4) == 0; j <<= 1)
30602 if (! bigtime_test (j))
30604 if (INT_MAX / 2 < j)
30607 if ((result & 8) == 0 && ! bigtime_test (INT_MAX))
30610 if (! irix_6_4_bug ())
30612 if (! spring_forward_gap ())
30614 if (! year_2050_test ())
30619 if ac_fn_c_try_run "$LINENO"; then :
30620 gl_cv_func_working_mktime=yes
30622 gl_cv_func_working_mktime=no
30624 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
30625 conftest.$ac_objext conftest.beam conftest.$ac_ext
30630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_working_mktime" >&5
30631 $as_echo "$gl_cv_func_working_mktime" >&6; }
30633 if test $gl_cv_func_working_mktime = no; then
30639 if test $REPLACE_MKTIME = 1; then
30648 ggl_LIBOBJS="$ggl_LIBOBJS mktime.$ac_objext"
30663 $as_echo "#define GNULIB_TEST_MKTIME 1" >>confdefs.h
30675 if test $ac_cv_func__set_invalid_parameter_handler = yes; then
30676 HAVE_MSVC_INVALID_PARAMETER_HANDLER=1
30678 $as_echo "#define HAVE_MSVC_INVALID_PARAMETER_HANDLER 1" >>confdefs.h
30681 HAVE_MSVC_INVALID_PARAMETER_HANDLER=0
30685 if test $HAVE_MSVC_INVALID_PARAMETER_HANDLER = 1; then
30694 ggl_LIBOBJS="$ggl_LIBOBJS msvc-inval.$ac_objext"
30700 if test $HAVE_MSVC_INVALID_PARAMETER_HANDLER = 1; then
30709 ggl_LIBOBJS="$ggl_LIBOBJS msvc-nothrow.$ac_objext"
30730 if test $gl_cv_have_include_next = yes; then
30731 gl_cv_next_netdb_h='<'netdb.h'>'
30733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <netdb.h>" >&5
30734 $as_echo_n "checking absolute name of <netdb.h>... " >&6; }
30735 if ${gl_cv_next_netdb_h+:} false; then :
30736 $as_echo_n "(cached) " >&6
30739 if test $ac_cv_header_netdb_h = yes; then
30744 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30745 /* end confdefs.h. */
30749 aix*) gl_absname_cpp="$ac_cpp -C" ;;
30750 *) gl_absname_cpp="$ac_cpp" ;;
30755 gl_dirsep_regex='[/\\]'
30758 gl_dirsep_regex='\/'
30761 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
30762 gl_header_literal_regex=`echo 'netdb.h' \
30763 | sed -e "$gl_make_literal_regex_sed"`
30764 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
30765 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
30771 gl_cv_absolute_netdb_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
30772 sed -n "$gl_absolute_header_sed"`
30774 gl_header=$gl_cv_absolute_netdb_h
30775 gl_cv_next_netdb_h='"'$gl_header'"'
30777 gl_cv_next_netdb_h='<'netdb.h'>'
30782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_netdb_h" >&5
30783 $as_echo "$gl_cv_next_netdb_h" >&6; }
30785 NEXT_NETDB_H=$gl_cv_next_netdb_h
30787 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
30788 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
30789 gl_next_as_first_directive='<'netdb.h'>'
30791 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
30792 gl_next_as_first_directive=$gl_cv_next_netdb_h
30794 NEXT_AS_FIRST_DIRECTIVE_NETDB_H=$gl_next_as_first_directive
30799 if test $ac_cv_header_netdb_h = yes; then
30807 for gl_func in getaddrinfo freeaddrinfo gai_strerror getnameinfo; do
30808 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
30809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
30810 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
30811 if eval \${$as_gl_Symbol+:} false; then :
30812 $as_echo_n "(cached) " >&6
30814 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30815 /* end confdefs.h. */
30826 if ac_fn_c_try_compile "$LINENO"; then :
30827 eval "$as_gl_Symbol=yes"
30829 eval "$as_gl_Symbol=no"
30831 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30833 eval ac_res=\$$as_gl_Symbol
30834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
30835 $as_echo "$ac_res" >&6; }
30836 if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
30837 cat >>confdefs.h <<_ACEOF
30838 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
30841 eval ac_cv_have_decl_$gl_func=yes
30847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <netinet/in.h> is self-contained" >&5
30848 $as_echo_n "checking whether <netinet/in.h> is self-contained... " >&6; }
30849 if ${gl_cv_header_netinet_in_h_selfcontained+:} false; then :
30850 $as_echo_n "(cached) " >&6
30853 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30854 /* end confdefs.h. */
30855 #include <netinet/in.h>
30864 if ac_fn_c_try_compile "$LINENO"; then :
30865 gl_cv_header_netinet_in_h_selfcontained=yes
30867 gl_cv_header_netinet_in_h_selfcontained=no
30869 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_netinet_in_h_selfcontained" >&5
30873 $as_echo "$gl_cv_header_netinet_in_h_selfcontained" >&6; }
30874 if test $gl_cv_header_netinet_in_h_selfcontained = yes; then
30877 NETINET_IN_H='netinet/in.h'
30878 for ac_header in netinet/in.h
30880 ac_fn_c_check_header_mongrel "$LINENO" "netinet/in.h" "ac_cv_header_netinet_in_h" "$ac_includes_default"
30881 if test "x$ac_cv_header_netinet_in_h" = xyes; then :
30882 cat >>confdefs.h <<_ACEOF
30883 #define HAVE_NETINET_IN_H 1
30905 if test $gl_cv_have_include_next = yes; then
30906 gl_cv_next_netinet_in_h='<'netinet/in.h'>'
30908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <netinet/in.h>" >&5
30909 $as_echo_n "checking absolute name of <netinet/in.h>... " >&6; }
30910 if ${gl_cv_next_netinet_in_h+:} false; then :
30911 $as_echo_n "(cached) " >&6
30914 if test $ac_cv_header_netinet_in_h = yes; then
30919 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30920 /* end confdefs.h. */
30921 #include <netinet/in.h>
30924 aix*) gl_absname_cpp="$ac_cpp -C" ;;
30925 *) gl_absname_cpp="$ac_cpp" ;;
30930 gl_dirsep_regex='[/\\]'
30933 gl_dirsep_regex='\/'
30936 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
30937 gl_header_literal_regex=`echo 'netinet/in.h' \
30938 | sed -e "$gl_make_literal_regex_sed"`
30939 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
30940 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
30946 gl_cv_absolute_netinet_in_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
30947 sed -n "$gl_absolute_header_sed"`
30949 gl_header=$gl_cv_absolute_netinet_in_h
30950 gl_cv_next_netinet_in_h='"'$gl_header'"'
30952 gl_cv_next_netinet_in_h='<'netinet/in.h'>'
30957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_netinet_in_h" >&5
30958 $as_echo "$gl_cv_next_netinet_in_h" >&6; }
30960 NEXT_NETINET_IN_H=$gl_cv_next_netinet_in_h
30962 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
30963 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
30964 gl_next_as_first_directive='<'netinet/in.h'>'
30966 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
30967 gl_next_as_first_directive=$gl_cv_next_netinet_in_h
30969 NEXT_AS_FIRST_DIRECTIVE_NETINET_IN_H=$gl_next_as_first_directive
30974 if test $ac_cv_header_netinet_in_h = yes; then
30975 HAVE_NETINET_IN_H=1
30977 HAVE_NETINET_IN_H=0
30982 if test -n "$NETINET_IN_H"; then
30983 GL_GENERATE_NETINET_IN_H_TRUE=
30984 GL_GENERATE_NETINET_IN_H_FALSE='#'
30986 GL_GENERATE_NETINET_IN_H_TRUE='#'
30987 GL_GENERATE_NETINET_IN_H_FALSE=
30998 ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
30999 #include <$ac_cv_struct_tm>
31002 if test "x$ac_cv_member_struct_tm_tm_zone" = xyes; then :
31004 cat >>confdefs.h <<_ACEOF
31005 #define HAVE_STRUCT_TM_TM_ZONE 1
31011 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
31013 $as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
31016 ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
31018 if test "x$ac_cv_have_decl_tzname" = xyes; then :
31024 cat >>confdefs.h <<_ACEOF
31025 #define HAVE_DECL_TZNAME $ac_have_decl
31028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
31029 $as_echo_n "checking for tzname... " >&6; }
31030 if ${ac_cv_var_tzname+:} false; then :
31031 $as_echo_n "(cached) " >&6
31033 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31034 /* end confdefs.h. */
31036 #if !HAVE_DECL_TZNAME
31037 extern char *tzname[];
31043 return tzname[0][0];
31048 if ac_fn_c_try_link "$LINENO"; then :
31049 ac_cv_var_tzname=yes
31051 ac_cv_var_tzname=no
31053 rm -f core conftest.err conftest.$ac_objext \
31054 conftest$ac_exeext conftest.$ac_ext
31056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
31057 $as_echo "$ac_cv_var_tzname" >&6; }
31058 if test $ac_cv_var_tzname = yes; then
31060 $as_echo "#define HAVE_TZNAME 1" >>confdefs.h
31067 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31068 /* end confdefs.h. */
31070 #include <time.h> /* for time_t */
31071 #include <limits.h> /* for CHAR_BIT, LONG_MIN, LONG_MAX */
31072 #define TYPE_MINIMUM(t) \
31073 ((t) ((t) 0 < (t) -1 ? (t) 0 : ~ TYPE_MAXIMUM (t)))
31074 #define TYPE_MAXIMUM(t) \
31075 ((t) ((t) 0 < (t) -1 \
31077 : ((((t) 1 << (sizeof (t) * CHAR_BIT - 2)) - 1) * 2 + 1)))
31078 typedef int verify_min[2 * (LONG_MIN <= TYPE_MINIMUM (time_t)) - 1];
31079 typedef int verify_max[2 * (TYPE_MAXIMUM (time_t) <= LONG_MAX) - 1];
31082 if ac_fn_c_try_compile "$LINENO"; then :
31084 $as_echo "#define TIME_T_FITS_IN_LONG_INT 1" >>confdefs.h
31088 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31090 ac_fn_c_check_decl "$LINENO" "program_invocation_name" "ac_cv_have_decl_program_invocation_name" "#include <errno.h>
31092 if test "x$ac_cv_have_decl_program_invocation_name" = xyes; then :
31098 cat >>confdefs.h <<_ACEOF
31099 #define HAVE_DECL_PROGRAM_INVOCATION_NAME $ac_have_decl
31102 ac_fn_c_check_decl "$LINENO" "program_invocation_short_name" "ac_cv_have_decl_program_invocation_short_name" "#include <errno.h>
31104 if test "x$ac_cv_have_decl_program_invocation_short_name" = xyes; then :
31110 cat >>confdefs.h <<_ACEOF
31111 #define HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME $ac_have_decl
31117 if test $gl_cv_func_malloc_posix = yes; then
31119 $as_echo "#define HAVE_REALLOC_POSIX 1" >>confdefs.h
31125 if test $REPLACE_REALLOC = 1; then
31134 ggl_LIBOBJS="$ggl_LIBOBJS realloc.$ac_objext"
31142 GNULIB_REALLOC_POSIX=1
31148 $as_echo "#define GNULIB_TEST_REALLOC_POSIX 1" >>confdefs.h
31153 if test "$ac_cv_header_winsock2_h" = yes; then
31162 ggl_LIBOBJS="$ggl_LIBOBJS recv.$ac_objext"
31176 $as_echo "#define GNULIB_TEST_RECV 1" >>confdefs.h
31181 if test "$ac_cv_header_winsock2_h" = yes; then
31190 ggl_LIBOBJS="$ggl_LIBOBJS recvfrom.$ac_objext"
31204 $as_echo "#define GNULIB_TEST_RECVFROM 1" >>confdefs.h
31211 if test "$ac_cv_header_winsock2_h" = yes; then
31221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether select supports a 0 argument" >&5
31222 $as_echo_n "checking whether select supports a 0 argument... " >&6; }
31223 if ${gl_cv_func_select_supports0+:} false; then :
31224 $as_echo_n "(cached) " >&6
31227 if test "$cross_compiling" = yes; then :
31230 # Guess no on Interix.
31231 interix*) gl_cv_func_select_supports0="guessing no";;
31232 # Guess yes otherwise.
31233 *) gl_cv_func_select_supports0="guessing yes";;
31237 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31238 /* end confdefs.h. */
31240 #include <sys/types.h>
31241 #include <sys/time.h>
31242 #if HAVE_SYS_SELECT_H
31243 #include <sys/select.h>
31247 struct timeval timeout;
31248 timeout.tv_sec = 0;
31249 timeout.tv_usec = 5;
31250 return select (0, (fd_set *)0, (fd_set *)0, (fd_set *)0, &timeout) < 0;
31253 if ac_fn_c_try_run "$LINENO"; then :
31254 gl_cv_func_select_supports0=yes
31256 gl_cv_func_select_supports0=no
31258 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
31259 conftest.$ac_objext conftest.beam conftest.$ac_ext
31264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_select_supports0" >&5
31265 $as_echo "$gl_cv_func_select_supports0" >&6; }
31266 case "$gl_cv_func_select_supports0" in
31268 *) REPLACE_SELECT=1 ;;
31271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether select detects invalid fds" >&5
31272 $as_echo_n "checking whether select detects invalid fds... " >&6; }
31273 if ${gl_cv_func_select_detects_ebadf+:} false; then :
31274 $as_echo_n "(cached) " >&6
31277 if test "$cross_compiling" = yes; then :
31280 # Guess yes on glibc systems.
31281 *-gnu*) gl_cv_func_select_detects_ebadf="guessing yes" ;;
31282 # If we don't know, assume the worst.
31283 *) gl_cv_func_select_detects_ebadf="guessing no" ;;
31287 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31288 /* end confdefs.h. */
31290 #include <sys/types.h>
31291 #include <sys/time.h>
31292 #if HAVE_SYS_SELECT_H
31293 # include <sys/select.h>
31295 #include <unistd.h>
31307 struct timeval timeout;
31308 timeout.tv_sec = 0;
31309 timeout.tv_usec = 5;
31310 return select (17, &set, NULL, NULL, &timeout) != -1 || errno != EBADF;
31316 if ac_fn_c_try_run "$LINENO"; then :
31317 gl_cv_func_select_detects_ebadf=yes
31319 gl_cv_func_select_detects_ebadf=no
31321 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
31322 conftest.$ac_objext conftest.beam conftest.$ac_ext
31327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_select_detects_ebadf" >&5
31328 $as_echo "$gl_cv_func_select_detects_ebadf" >&6; }
31329 case $gl_cv_func_select_detects_ebadf in
31331 *) REPLACE_SELECT=1 ;;
31335 LIB_SELECT="$LIBSOCKET"
31336 if test $REPLACE_SELECT = 1; then
31339 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31340 /* end confdefs.h. */
31342 #define WIN32_LEAN_AND_MEAN
31343 #include <windows.h>
31347 MsgWaitForMultipleObjects (0, NULL, 0, 0, 0);
31351 if ac_fn_c_try_link "$LINENO"; then :
31354 LIB_SELECT="$LIB_SELECT -luser32"
31356 rm -f core conftest.err conftest.$ac_objext \
31357 conftest$ac_exeext conftest.$ac_ext
31363 if test $REPLACE_SELECT = 1; then
31372 ggl_LIBOBJS="$ggl_LIBOBJS select.$ac_objext"
31386 $as_echo "#define GNULIB_TEST_SELECT 1" >>confdefs.h
31391 if test "$ac_cv_header_winsock2_h" = yes; then
31400 ggl_LIBOBJS="$ggl_LIBOBJS send.$ac_objext"
31414 $as_echo "#define GNULIB_TEST_SEND 1" >>confdefs.h
31419 if test "$ac_cv_header_winsock2_h" = yes; then
31428 ggl_LIBOBJS="$ggl_LIBOBJS sendto.$ac_objext"
31442 $as_echo "#define GNULIB_TEST_SENDTO 1" >>confdefs.h
31448 gl_saved_libs="$LIBS"
31449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getservbyname" >&5
31450 $as_echo_n "checking for library containing getservbyname... " >&6; }
31451 if ${ac_cv_search_getservbyname+:} false; then :
31452 $as_echo_n "(cached) " >&6
31454 ac_func_search_save_LIBS=$LIBS
31455 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31456 /* end confdefs.h. */
31458 /* Override any GCC internal prototype to avoid an error.
31459 Use char because int might match the return type of a GCC
31460 builtin and then its argument prototype would still apply. */
31464 char getservbyname ();
31468 return getservbyname ();
31473 for ac_lib in '' socket network net; do
31474 if test -z "$ac_lib"; then
31475 ac_res="none required"
31478 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
31480 if ac_fn_c_try_link "$LINENO"; then :
31481 ac_cv_search_getservbyname=$ac_res
31483 rm -f core conftest.err conftest.$ac_objext \
31485 if ${ac_cv_search_getservbyname+:} false; then :
31489 if ${ac_cv_search_getservbyname+:} false; then :
31492 ac_cv_search_getservbyname=no
31494 rm conftest.$ac_ext
31495 LIBS=$ac_func_search_save_LIBS
31497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getservbyname" >&5
31498 $as_echo "$ac_cv_search_getservbyname" >&6; }
31499 ac_res=$ac_cv_search_getservbyname
31500 if test "$ac_res" != no; then :
31501 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
31502 if test "$ac_cv_search_getservbyname" != "none required"; then
31503 SERVENT_LIB="$ac_cv_search_getservbyname"
31507 LIBS="$gl_saved_libs"
31508 if test -z "$SERVENT_LIB"; then
31509 for ac_func in getservbyname
31511 ac_fn_c_check_func "$LINENO" "getservbyname" "ac_cv_func_getservbyname"
31512 if test "x$ac_cv_func_getservbyname" = xyes; then :
31513 cat >>confdefs.h <<_ACEOF
31514 #define HAVE_GETSERVBYNAME 1
31519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getservbyname in winsock2.h and -lws2_32" >&5
31520 $as_echo_n "checking for getservbyname in winsock2.h and -lws2_32... " >&6; }
31521 if ${gl_cv_w32_getservbyname+:} false; then :
31522 $as_echo_n "(cached) " >&6
31524 gl_cv_w32_getservbyname=no
31525 gl_save_LIBS="$LIBS"
31526 LIBS="$LIBS -lws2_32"
31527 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31528 /* end confdefs.h. */
31530 #ifdef HAVE_WINSOCK2_H
31531 #include <winsock2.h>
31533 #include <stddef.h>
31538 getservbyname(NULL,NULL);
31543 if ac_fn_c_try_link "$LINENO"; then :
31544 gl_cv_w32_getservbyname=yes
31546 rm -f core conftest.err conftest.$ac_objext \
31547 conftest$ac_exeext conftest.$ac_ext
31548 LIBS="$gl_save_LIBS"
31551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_w32_getservbyname" >&5
31552 $as_echo "$gl_cv_w32_getservbyname" >&6; }
31553 if test "$gl_cv_w32_getservbyname" = "yes"; then
31554 SERVENT_LIB="-lws2_32"
31565 if test $ac_cv_func_setenv = no; then
31568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether setenv validates arguments" >&5
31569 $as_echo_n "checking whether setenv validates arguments... " >&6; }
31570 if ${gl_cv_func_setenv_works+:} false; then :
31571 $as_echo_n "(cached) " >&6
31573 if test "$cross_compiling" = yes; then :
31575 # Guess yes on glibc systems.
31576 *-gnu*) gl_cv_func_setenv_works="guessing yes" ;;
31577 # If we don't know, assume the worst.
31578 *) gl_cv_func_setenv_works="guessing no" ;;
31582 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31583 /* end confdefs.h. */
31585 #include <stdlib.h>
31587 #include <string.h>
31595 if (setenv ("", "", 0) != -1)
31597 else if (errno != EINVAL)
31601 if (setenv ("a", "=", 1) != 0)
31603 else if (strcmp (getenv ("a"), "=") != 0)
31612 if ac_fn_c_try_run "$LINENO"; then :
31613 gl_cv_func_setenv_works=yes
31615 gl_cv_func_setenv_works=no
31617 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
31618 conftest.$ac_objext conftest.beam conftest.$ac_ext
31622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_setenv_works" >&5
31623 $as_echo "$gl_cv_func_setenv_works" >&6; }
31624 case "$gl_cv_func_setenv_works" in
31632 if test $HAVE_SETENV = 0 || test $REPLACE_SETENV = 1; then
31641 ggl_LIBOBJS="$ggl_LIBOBJS setenv.$ac_objext"
31655 $as_echo "#define GNULIB_TEST_SETENV 1" >>confdefs.h
31660 if test "$ac_cv_header_winsock2_h" = yes; then
31669 ggl_LIBOBJS="$ggl_LIBOBJS setsockopt.$ac_objext"
31677 GNULIB_SETSOCKOPT=1
31683 $as_echo "#define GNULIB_TEST_SETSOCKOPT 1" >>confdefs.h
31688 if test "$ac_cv_header_winsock2_h" = yes; then
31697 ggl_LIBOBJS="$ggl_LIBOBJS shutdown.$ac_objext"
31711 $as_echo "#define GNULIB_TEST_SHUTDOWN 1" >>confdefs.h
31726 if test $gl_cv_have_include_next = yes; then
31727 gl_cv_next_signal_h='<'signal.h'>'
31729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <signal.h>" >&5
31730 $as_echo_n "checking absolute name of <signal.h>... " >&6; }
31731 if ${gl_cv_next_signal_h+:} false; then :
31732 $as_echo_n "(cached) " >&6
31737 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31738 /* end confdefs.h. */
31739 #include <signal.h>
31742 aix*) gl_absname_cpp="$ac_cpp -C" ;;
31743 *) gl_absname_cpp="$ac_cpp" ;;
31748 gl_dirsep_regex='[/\\]'
31751 gl_dirsep_regex='\/'
31754 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
31755 gl_header_literal_regex=`echo 'signal.h' \
31756 | sed -e "$gl_make_literal_regex_sed"`
31757 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
31758 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
31764 gl_cv_absolute_signal_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
31765 sed -n "$gl_absolute_header_sed"`
31767 gl_header=$gl_cv_absolute_signal_h
31768 gl_cv_next_signal_h='"'$gl_header'"'
31772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_signal_h" >&5
31773 $as_echo "$gl_cv_next_signal_h" >&6; }
31775 NEXT_SIGNAL_H=$gl_cv_next_signal_h
31777 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
31778 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
31779 gl_next_as_first_directive='<'signal.h'>'
31781 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
31782 gl_next_as_first_directive=$gl_cv_next_signal_h
31784 NEXT_AS_FIRST_DIRECTIVE_SIGNAL_H=$gl_next_as_first_directive
31790 # AIX declares sig_atomic_t to already include volatile, and C89 compilers
31791 # then choke on 'volatile sig_atomic_t'. C99 requires that it compile.
31792 ac_fn_c_check_type "$LINENO" "volatile sig_atomic_t" "ac_cv_type_volatile_sig_atomic_t" "
31793 #include <signal.h>
31796 if test "x$ac_cv_type_volatile_sig_atomic_t" = xyes; then :
31799 HAVE_TYPE_VOLATILE_SIG_ATOMIC_T=0
31808 ac_fn_c_check_type "$LINENO" "sighandler_t" "ac_cv_type_sighandler_t" "
31809 #include <signal.h>
31812 if test "x$ac_cv_type_sighandler_t" = xyes; then :
31815 HAVE_SIGHANDLER_T=0
31820 for gl_func in pthread_sigmask sigaction sigaddset sigdelset sigemptyset sigfillset sigismember sigpending sigprocmask; 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. */
31829 #include <signal.h>
31840 if ac_fn_c_try_compile "$LINENO"; then :
31841 eval "$as_gl_Symbol=yes"
31843 eval "$as_gl_Symbol=no"
31845 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31847 eval ac_res=\$$as_gl_Symbol
31848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
31849 $as_echo "$ac_res" >&6; }
31850 if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
31851 cat >>confdefs.h <<_ACEOF
31852 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
31855 eval ac_cv_have_decl_$gl_func=yes
31861 for ac_header in stdint.h
31863 ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
31864 if test "x$ac_cv_header_stdint_h" = xyes; then :
31865 cat >>confdefs.h <<_ACEOF
31866 #define HAVE_STDINT_H 1
31873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SIZE_MAX" >&5
31874 $as_echo_n "checking for SIZE_MAX... " >&6; }
31875 if ${gl_cv_size_max+:} false; then :
31876 $as_echo_n "(cached) " >&6
31880 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31881 /* end confdefs.h. */
31883 #include <limits.h>
31885 #include <stdint.h>
31892 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31893 $EGREP "Found it" >/dev/null 2>&1; then :
31898 if test -z "$gl_cv_size_max"; then
31899 if ac_fn_c_compute_int "$LINENO" "sizeof (size_t) * CHAR_BIT - 1" "size_t_bits_minus_1" "#include <stddef.h>
31900 #include <limits.h>"; then :
31903 size_t_bits_minus_1=
31906 if ac_fn_c_compute_int "$LINENO" "sizeof (size_t) <= sizeof (unsigned int)" "fits_in_uint" "#include <stddef.h>"; then :
31912 if test -n "$size_t_bits_minus_1" && test -n "$fits_in_uint"; then
31913 if test $fits_in_uint = 1; then
31914 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31915 /* end confdefs.h. */
31916 #include <stddef.h>
31918 extern unsigned long foo;
31928 if ac_fn_c_try_compile "$LINENO"; then :
31931 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31933 if test $fits_in_uint = 1; then
31934 gl_cv_size_max="(((1U << $size_t_bits_minus_1) - 1) * 2 + 1)"
31936 gl_cv_size_max="(((1UL << $size_t_bits_minus_1) - 1) * 2 + 1)"
31939 gl_cv_size_max='((size_t)~(size_t)0)'
31944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_size_max" >&5
31945 $as_echo "$gl_cv_size_max" >&6; }
31946 if test "$gl_cv_size_max" != yes; then
31948 cat >>confdefs.h <<_ACEOF
31949 #define SIZE_MAX $gl_cv_size_max
31957 gl_cv_func_snprintf_usable=no
31958 for ac_func in snprintf
31960 ac_fn_c_check_func "$LINENO" "snprintf" "ac_cv_func_snprintf"
31961 if test "x$ac_cv_func_snprintf" = xyes; then :
31962 cat >>confdefs.h <<_ACEOF
31963 #define HAVE_SNPRINTF 1
31969 if test $ac_cv_func_snprintf = yes; then
31973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether snprintf respects a size of 1" >&5
31974 $as_echo_n "checking whether snprintf respects a size of 1... " >&6; }
31975 if ${gl_cv_func_snprintf_size1+:} false; then :
31976 $as_echo_n "(cached) " >&6
31979 if test "$cross_compiling" = yes; then :
31980 gl_cv_func_snprintf_size1="guessing yes"
31982 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31983 /* end confdefs.h. */
31987 # define my_snprintf snprintf
31989 # include <stdarg.h>
31990 static int my_snprintf (char *buf, int size, const char *format, ...)
31994 va_start (args, format);
31995 ret = vsnprintf (buf, size, format, args);
32002 static char buf[8] = { 'D', 'E', 'A', 'D', 'B', 'E', 'E', 'F' };
32003 my_snprintf (buf, 1, "%d", 12345);
32004 return buf[1] != 'E';
32007 if ac_fn_c_try_run "$LINENO"; then :
32008 gl_cv_func_snprintf_size1=yes
32010 gl_cv_func_snprintf_size1=no
32012 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
32013 conftest.$ac_objext conftest.beam conftest.$ac_ext
32018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_snprintf_size1" >&5
32019 $as_echo "$gl_cv_func_snprintf_size1" >&6; }
32021 case "$gl_cv_func_snprintf_size1" in
32024 case "$gl_cv_func_snprintf_retval_c99" in
32028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether printf supports POSIX/XSI format strings with positions" >&5
32029 $as_echo_n "checking whether printf supports POSIX/XSI format strings with positions... " >&6; }
32030 if ${gl_cv_func_printf_positions+:} false; then :
32031 $as_echo_n "(cached) " >&6
32034 if test "$cross_compiling" = yes; then :
32037 netbsd[1-3]* | netbsdelf[1-3]* | netbsdaout[1-3]* | netbsdcoff[1-3]*)
32038 gl_cv_func_printf_positions="guessing no";;
32039 beos*) gl_cv_func_printf_positions="guessing no";;
32040 mingw* | pw*) gl_cv_func_printf_positions="guessing no";;
32041 *) gl_cv_func_printf_positions="guessing yes";;
32045 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32046 /* end confdefs.h. */
32049 #include <string.h>
32050 /* The string "%2$d %1$d", with dollar characters protected from the shell's
32051 dollar expansion (possibly an autoconf bug). */
32052 static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' };
32053 static char buf[100];
32056 sprintf (buf, format, 33, 55);
32057 return (strcmp (buf, "55 33") != 0);
32060 if ac_fn_c_try_run "$LINENO"; then :
32061 gl_cv_func_printf_positions=yes
32063 gl_cv_func_printf_positions=no
32065 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
32066 conftest.$ac_objext conftest.beam conftest.$ac_ext
32071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_printf_positions" >&5
32072 $as_echo "$gl_cv_func_printf_positions" >&6; }
32074 case "$gl_cv_func_printf_positions" in
32076 gl_cv_func_snprintf_usable=yes
32084 if test $gl_cv_func_snprintf_usable = no; then
32095 ggl_LIBOBJS="$ggl_LIBOBJS snprintf.$ac_objext"
32097 if test $ac_cv_func_snprintf = yes; then
32110 if test $ac_cv_have_decl_snprintf = no; then
32111 HAVE_DECL_SNPRINTF=0
32125 $as_echo "#define GNULIB_TEST_SNPRINTF 1" >>confdefs.h
32131 cat >>confdefs.h <<_ACEOF
32132 #define GNULIB_SNPRINTF 1
32137 if test "$ac_cv_header_winsock2_h" = yes; then
32146 ggl_LIBOBJS="$ggl_LIBOBJS socket.$ac_objext"
32149 # When this module is used, sockets may actually occur as file descriptors,
32150 # hence it is worth warning if the modules 'close' and 'ioctl' are not used.
32154 if test "$ac_cv_header_winsock2_h" = yes; then
32155 UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS=1
32156 SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS=1
32169 $as_echo "#define GNULIB_TEST_SOCKET 1" >>confdefs.h
32184 if test $ac_cv_header_sys_socket_h != yes; then
32185 for ac_header in winsock2.h
32187 ac_fn_c_check_header_mongrel "$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
32188 if test "x$ac_cv_header_winsock2_h" = xyes; then :
32189 cat >>confdefs.h <<_ACEOF
32190 #define HAVE_WINSOCK2_H 1
32198 if test "$ac_cv_header_winsock2_h" = yes; then
32200 UNISTD_H_HAVE_WINSOCK2_H=1
32201 SYS_IOCTL_H_HAVE_WINSOCK2_H=1
32207 if test $HAVE_WINSOCK2_H = 1; then
32208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we need to call WSAStartup in winsock2.h and -lws2_32" >&5
32209 $as_echo_n "checking if we need to call WSAStartup in winsock2.h and -lws2_32... " >&6; }
32210 if ${gl_cv_func_wsastartup+:} false; then :
32211 $as_echo_n "(cached) " >&6
32214 gl_save_LIBS="$LIBS"
32215 LIBS="$LIBS -lws2_32"
32216 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32217 /* end confdefs.h. */
32219 #ifdef HAVE_WINSOCK2_H
32220 # include <winsock2.h>
32226 WORD wVersionRequested = MAKEWORD(1, 1);
32228 int err = WSAStartup(wVersionRequested, &wsaData);
32234 if ac_fn_c_try_link "$LINENO"; then :
32235 gl_cv_func_wsastartup=yes
32237 gl_cv_func_wsastartup=no
32239 rm -f core conftest.err conftest.$ac_objext \
32240 conftest$ac_exeext conftest.$ac_ext
32241 LIBS="$gl_save_LIBS"
32244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_wsastartup" >&5
32245 $as_echo "$gl_cv_func_wsastartup" >&6; }
32246 if test "$gl_cv_func_wsastartup" = "yes"; then
32248 $as_echo "#define WINDOWS_SOCKETS 1" >>confdefs.h
32250 LIBSOCKET='-lws2_32'
32253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing setsockopt" >&5
32254 $as_echo_n "checking for library containing setsockopt... " >&6; }
32255 if ${gl_cv_lib_socket+:} false; then :
32256 $as_echo_n "(cached) " >&6
32260 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32261 /* end confdefs.h. */
32275 if ac_fn_c_try_link "$LINENO"; then :
32278 gl_save_LIBS="$LIBS"
32279 LIBS="$gl_save_LIBS -lsocket"
32280 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32281 /* end confdefs.h. */
32295 if ac_fn_c_try_link "$LINENO"; then :
32296 gl_cv_lib_socket="-lsocket"
32298 rm -f core conftest.err conftest.$ac_objext \
32299 conftest$ac_exeext conftest.$ac_ext
32300 if test -z "$gl_cv_lib_socket"; then
32301 LIBS="$gl_save_LIBS -lnetwork"
32302 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32303 /* end confdefs.h. */
32317 if ac_fn_c_try_link "$LINENO"; then :
32318 gl_cv_lib_socket="-lnetwork"
32320 rm -f core conftest.err conftest.$ac_objext \
32321 conftest$ac_exeext conftest.$ac_ext
32322 if test -z "$gl_cv_lib_socket"; then
32323 LIBS="$gl_save_LIBS -lnet"
32324 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32325 /* end confdefs.h. */
32339 if ac_fn_c_try_link "$LINENO"; then :
32340 gl_cv_lib_socket="-lnet"
32342 rm -f core conftest.err conftest.$ac_objext \
32343 conftest$ac_exeext conftest.$ac_ext
32346 LIBS="$gl_save_LIBS"
32349 rm -f core conftest.err conftest.$ac_objext \
32350 conftest$ac_exeext conftest.$ac_ext
32351 if test -z "$gl_cv_lib_socket"; then
32352 gl_cv_lib_socket="none needed"
32356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_lib_socket" >&5
32357 $as_echo "$gl_cv_lib_socket" >&6; }
32358 if test "$gl_cv_lib_socket" != "none needed"; then
32359 LIBSOCKET="$gl_cv_lib_socket"
32371 ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "
32372 /* <sys/types.h> is not needed according to POSIX, but the
32373 <sys/socket.h> in i386-unknown-freebsd4.10 and
32374 powerpc-apple-darwin5.5 required it. */
32375 #include <sys/types.h>
32376 #if HAVE_SYS_SOCKET_H
32377 # include <sys/socket.h>
32378 #elif HAVE_WS2TCPIP_H
32379 # include <ws2tcpip.h>
32383 if test "x$ac_cv_type_socklen_t" = xyes; then :
32386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socklen_t equivalent" >&5
32387 $as_echo_n "checking for socklen_t equivalent... " >&6; }
32388 if ${gl_cv_socklen_t_equiv+:} false; then :
32389 $as_echo_n "(cached) " >&6
32391 # Systems have either "struct sockaddr *" or
32392 # "void *" as the second argument to getpeername
32393 gl_cv_socklen_t_equiv=
32394 for arg2 in "struct sockaddr" void; do
32395 for t in int size_t "unsigned int" "long int" "unsigned long int"; do
32396 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32397 /* end confdefs.h. */
32398 #include <sys/types.h>
32399 #include <sys/socket.h>
32401 int getpeername (int, $arg2 *, $t *);
32406 getpeername (0, 0, &len);
32411 if ac_fn_c_try_compile "$LINENO"; then :
32412 gl_cv_socklen_t_equiv="$t"
32414 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32415 test "$gl_cv_socklen_t_equiv" != "" && break
32417 test "$gl_cv_socklen_t_equiv" != "" && break
32422 if test "$gl_cv_socklen_t_equiv" = ""; then
32423 as_fn_error $? "Cannot find a type to use in place of socklen_t" "$LINENO" 5
32425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_socklen_t_equiv" >&5
32426 $as_echo "$gl_cv_socklen_t_equiv" >&6; }
32428 cat >>confdefs.h <<_ACEOF
32429 #define socklen_t $gl_cv_socklen_t_equiv
32435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ssize_t" >&5
32436 $as_echo_n "checking for ssize_t... " >&6; }
32437 if ${gt_cv_ssize_t+:} false; then :
32438 $as_echo_n "(cached) " >&6
32440 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32441 /* end confdefs.h. */
32442 #include <sys/types.h>
32446 int x = sizeof (ssize_t *) + sizeof (ssize_t);
32452 if ac_fn_c_try_compile "$LINENO"; then :
32457 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_ssize_t" >&5
32460 $as_echo "$gt_cv_ssize_t" >&6; }
32461 if test $gt_cv_ssize_t = no; then
32463 $as_echo "#define ssize_t int" >>confdefs.h
32468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working stdalign.h" >&5
32469 $as_echo_n "checking for working stdalign.h... " >&6; }
32470 if ${gl_cv_header_working_stdalign_h+:} false; then :
32471 $as_echo_n "(cached) " >&6
32473 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32474 /* end confdefs.h. */
32475 #include <stdalign.h>
32476 #include <stddef.h>
32478 /* Test that alignof yields a result consistent with offsetof.
32479 This catches GCC bug 52023
32480 <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52023>. */
32482 template <class t> struct alignof_helper { char a; t b; };
32483 # define ao(type) offsetof (alignof_helper<type>, b)
32485 # define ao(type) offsetof (struct { char a; type b; }, b)
32487 char test_double[ao (double) % _Alignof (double) == 0 ? 1 : -1];
32488 char test_long[ao (long int) % _Alignof (long int) == 0 ? 1 : -1];
32489 char test_alignof[alignof (double) == _Alignof (double) ? 1 : -1];
32491 /* Test _Alignas only on platforms where gnulib can help. */
32493 ((defined __cplusplus && 201103 <= __cplusplus) \
32494 || __GNUC__ || __IBMC__ || __IBMCPP__ || __ICC \
32495 || 0x5110 <= __SUNPRO_C || 1300 <= _MSC_VER)
32496 struct alignas_test { char c; char alignas (8) alignas_8; };
32497 char test_alignas[offsetof (struct alignas_test, alignas_8) == 8
32509 if ac_fn_c_try_compile "$LINENO"; then :
32510 gl_cv_header_working_stdalign_h=yes
32512 gl_cv_header_working_stdalign_h=no
32514 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_stdalign_h" >&5
32517 $as_echo "$gl_cv_header_working_stdalign_h" >&6; }
32519 if test $gl_cv_header_working_stdalign_h = yes; then
32522 STDALIGN_H='stdalign.h'
32526 if test -n "$STDALIGN_H"; then
32527 GL_GENERATE_STDALIGN_H_TRUE=
32528 GL_GENERATE_STDALIGN_H_FALSE='#'
32530 GL_GENERATE_STDALIGN_H_TRUE='#'
32531 GL_GENERATE_STDALIGN_H_FALSE=
32538 # Define two additional variables used in the Makefile substitution.
32540 if test "$ac_cv_header_stdbool_h" = yes; then
32543 STDBOOL_H='stdbool.h'
32546 if test -n "$STDBOOL_H"; then
32547 GL_GENERATE_STDBOOL_H_TRUE=
32548 GL_GENERATE_STDBOOL_H_FALSE='#'
32550 GL_GENERATE_STDBOOL_H_TRUE='#'
32551 GL_GENERATE_STDBOOL_H_FALSE=
32555 if test "$ac_cv_type__Bool" = yes; then
32566 if test $gt_cv_c_wchar_t = no; then
32570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NULL can be used in arbitrary expressions" >&5
32571 $as_echo_n "checking whether NULL can be used in arbitrary expressions... " >&6; }
32572 if ${gl_cv_decl_null_works+:} false; then :
32573 $as_echo_n "(cached) " >&6
32575 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32576 /* end confdefs.h. */
32577 #include <stddef.h>
32578 int test[2 * (sizeof NULL == sizeof (void *)) -1];
32588 if ac_fn_c_try_compile "$LINENO"; then :
32589 gl_cv_decl_null_works=yes
32591 gl_cv_decl_null_works=no
32593 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_decl_null_works" >&5
32596 $as_echo "$gl_cv_decl_null_works" >&6; }
32597 if test $gl_cv_decl_null_works = no; then
32602 if test -n "$STDDEF_H"; then
32603 GL_GENERATE_STDDEF_H_TRUE=
32604 GL_GENERATE_STDDEF_H_FALSE='#'
32606 GL_GENERATE_STDDEF_H_TRUE='#'
32607 GL_GENERATE_STDDEF_H_FALSE=
32610 if test -n "$STDDEF_H"; then
32619 if test $gl_cv_have_include_next = yes; then
32620 gl_cv_next_stddef_h='<'stddef.h'>'
32622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stddef.h>" >&5
32623 $as_echo_n "checking absolute name of <stddef.h>... " >&6; }
32624 if ${gl_cv_next_stddef_h+:} false; then :
32625 $as_echo_n "(cached) " >&6
32630 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32631 /* end confdefs.h. */
32632 #include <stddef.h>
32635 aix*) gl_absname_cpp="$ac_cpp -C" ;;
32636 *) gl_absname_cpp="$ac_cpp" ;;
32641 gl_dirsep_regex='[/\\]'
32644 gl_dirsep_regex='\/'
32647 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
32648 gl_header_literal_regex=`echo 'stddef.h' \
32649 | sed -e "$gl_make_literal_regex_sed"`
32650 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
32651 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
32657 gl_cv_absolute_stddef_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
32658 sed -n "$gl_absolute_header_sed"`
32660 gl_header=$gl_cv_absolute_stddef_h
32661 gl_cv_next_stddef_h='"'$gl_header'"'
32665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stddef_h" >&5
32666 $as_echo "$gl_cv_next_stddef_h" >&6; }
32668 NEXT_STDDEF_H=$gl_cv_next_stddef_h
32670 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
32671 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
32672 gl_next_as_first_directive='<'stddef.h'>'
32674 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
32675 gl_next_as_first_directive=$gl_cv_next_stddef_h
32677 NEXT_AS_FIRST_DIRECTIVE_STDDEF_H=$gl_next_as_first_directive
32695 if test $gl_cv_have_include_next = yes; then
32696 gl_cv_next_stdio_h='<'stdio.h'>'
32698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdio.h>" >&5
32699 $as_echo_n "checking absolute name of <stdio.h>... " >&6; }
32700 if ${gl_cv_next_stdio_h+:} false; then :
32701 $as_echo_n "(cached) " >&6
32706 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32707 /* end confdefs.h. */
32711 aix*) gl_absname_cpp="$ac_cpp -C" ;;
32712 *) gl_absname_cpp="$ac_cpp" ;;
32717 gl_dirsep_regex='[/\\]'
32720 gl_dirsep_regex='\/'
32723 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
32724 gl_header_literal_regex=`echo 'stdio.h' \
32725 | sed -e "$gl_make_literal_regex_sed"`
32726 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
32727 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
32733 gl_cv_absolute_stdio_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
32734 sed -n "$gl_absolute_header_sed"`
32736 gl_header=$gl_cv_absolute_stdio_h
32737 gl_cv_next_stdio_h='"'$gl_header'"'
32741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdio_h" >&5
32742 $as_echo "$gl_cv_next_stdio_h" >&6; }
32744 NEXT_STDIO_H=$gl_cv_next_stdio_h
32746 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
32747 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
32748 gl_next_as_first_directive='<'stdio.h'>'
32750 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
32751 gl_next_as_first_directive=$gl_cv_next_stdio_h
32753 NEXT_AS_FIRST_DIRECTIVE_STDIO_H=$gl_next_as_first_directive
32762 cat >>confdefs.h <<_ACEOF
32763 #define GNULIB_FSCANF 1
32770 cat >>confdefs.h <<_ACEOF
32771 #define GNULIB_SCANF 1
32796 for gl_func in dprintf fpurge fseeko ftello getdelim getline gets pclose popen renameat snprintf tmpfile vdprintf vsnprintf; do
32797 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
32798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
32799 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
32800 if eval \${$as_gl_Symbol+:} false; then :
32801 $as_echo_n "(cached) " >&6
32803 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32804 /* end confdefs.h. */
32816 if ac_fn_c_try_compile "$LINENO"; then :
32817 eval "$as_gl_Symbol=yes"
32819 eval "$as_gl_Symbol=no"
32821 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32823 eval ac_res=\$$as_gl_Symbol
32824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
32825 $as_echo "$ac_res" >&6; }
32826 if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
32827 cat >>confdefs.h <<_ACEOF
32828 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
32831 eval ac_cv_have_decl_$gl_func=yes
32846 if test $gl_cv_have_include_next = yes; then
32847 gl_cv_next_stdlib_h='<'stdlib.h'>'
32849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdlib.h>" >&5
32850 $as_echo_n "checking absolute name of <stdlib.h>... " >&6; }
32851 if ${gl_cv_next_stdlib_h+:} false; then :
32852 $as_echo_n "(cached) " >&6
32857 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32858 /* end confdefs.h. */
32859 #include <stdlib.h>
32862 aix*) gl_absname_cpp="$ac_cpp -C" ;;
32863 *) gl_absname_cpp="$ac_cpp" ;;
32868 gl_dirsep_regex='[/\\]'
32871 gl_dirsep_regex='\/'
32874 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
32875 gl_header_literal_regex=`echo 'stdlib.h' \
32876 | sed -e "$gl_make_literal_regex_sed"`
32877 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
32878 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
32884 gl_cv_absolute_stdlib_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
32885 sed -n "$gl_absolute_header_sed"`
32887 gl_header=$gl_cv_absolute_stdlib_h
32888 gl_cv_next_stdlib_h='"'$gl_header'"'
32892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdlib_h" >&5
32893 $as_echo "$gl_cv_next_stdlib_h" >&6; }
32895 NEXT_STDLIB_H=$gl_cv_next_stdlib_h
32897 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
32898 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
32899 gl_next_as_first_directive='<'stdlib.h'>'
32901 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
32902 gl_next_as_first_directive=$gl_cv_next_stdlib_h
32904 NEXT_AS_FIRST_DIRECTIVE_STDLIB_H=$gl_next_as_first_directive
32911 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
32912 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
32913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
32914 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
32915 if eval \${$as_gl_Symbol+:} false; then :
32916 $as_echo_n "(cached) " >&6
32918 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32919 /* end confdefs.h. */
32920 #include <stdlib.h>
32921 #if HAVE_SYS_LOADAVG_H
32922 # include <sys/loadavg.h>
32925 # include <random.h>
32937 if ac_fn_c_try_compile "$LINENO"; then :
32938 eval "$as_gl_Symbol=yes"
32940 eval "$as_gl_Symbol=no"
32942 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32944 eval ac_res=\$$as_gl_Symbol
32945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
32946 $as_echo "$ac_res" >&6; }
32947 if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
32948 cat >>confdefs.h <<_ACEOF
32949 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
32952 eval ac_cv_have_decl_$gl_func=yes
32967 if test $ac_cv_func_strdup = yes; then
32968 if test $gl_cv_func_malloc_posix != yes; then
32979 if test $ac_cv_have_decl_strdup = no; then
32983 if test $ac_cv_func_strdup = no || test $REPLACE_STRDUP = 1; then
32992 ggl_LIBOBJS="$ggl_LIBOBJS strdup.$ac_objext"
33007 $as_echo "#define GNULIB_TEST_STRDUP 1" >>confdefs.h
33016 if test "$ERRNO_H:$REPLACE_STRERROR_0" = :0; then
33017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strerror function" >&5
33018 $as_echo_n "checking for working strerror function... " >&6; }
33019 if ${gl_cv_func_working_strerror+:} false; then :
33020 $as_echo_n "(cached) " >&6
33022 if test "$cross_compiling" = yes; then :
33024 # Guess yes on glibc systems.
33025 *-gnu*) gl_cv_func_working_strerror="guessing yes" ;;
33026 # If we don't know, assume the worst.
33027 *) gl_cv_func_working_strerror="guessing no" ;;
33031 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33032 /* end confdefs.h. */
33033 #include <string.h>
33038 if (!*strerror (-2)) return 1;
33043 if ac_fn_c_try_run "$LINENO"; then :
33044 gl_cv_func_working_strerror=yes
33046 gl_cv_func_working_strerror=no
33048 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
33049 conftest.$ac_objext conftest.beam conftest.$ac_ext
33054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_working_strerror" >&5
33055 $as_echo "$gl_cv_func_working_strerror" >&6; }
33056 case "$gl_cv_func_working_strerror" in
33067 if test $REPLACE_STRERROR = 1; then
33076 ggl_LIBOBJS="$ggl_LIBOBJS strerror.$ac_objext"
33081 cat >>confdefs.h <<_ACEOF
33082 #define GNULIB_STRERROR 1
33097 $as_echo "#define GNULIB_TEST_STRERROR 1" >>confdefs.h
33103 if test -n "$ERRNO_H" || test $REPLACE_STRERROR_0 = 1; then
33112 ggl_LIBOBJS="$ggl_LIBOBJS strerror-override.$ac_objext"
33124 if test $ac_cv_header_sys_socket_h != yes; then
33125 for ac_header in winsock2.h
33127 ac_fn_c_check_header_mongrel "$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
33128 if test "x$ac_cv_header_winsock2_h" = xyes; then :
33129 cat >>confdefs.h <<_ACEOF
33130 #define HAVE_WINSOCK2_H 1
33138 if test "$ac_cv_header_winsock2_h" = yes; then
33140 UNISTD_H_HAVE_WINSOCK2_H=1
33141 SYS_IOCTL_H_HAVE_WINSOCK2_H=1
33154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <sys/select.h> is self-contained" >&5
33155 $as_echo_n "checking whether <sys/select.h> is self-contained... " >&6; }
33156 if ${gl_cv_header_sys_select_h_selfcontained+:} false; then :
33157 $as_echo_n "(cached) " >&6
33160 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33161 /* end confdefs.h. */
33162 #include <sys/select.h>
33171 if ac_fn_c_try_compile "$LINENO"; then :
33172 gl_cv_header_sys_select_h_selfcontained=yes
33174 gl_cv_header_sys_select_h_selfcontained=no
33176 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33177 if test $gl_cv_header_sys_select_h_selfcontained = yes; then
33178 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33179 /* end confdefs.h. */
33180 #include <sys/select.h>
33184 int memset; int bzero;
33190 if ac_fn_c_try_compile "$LINENO"; then :
33191 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33192 /* end confdefs.h. */
33193 #include <sys/select.h>
33199 #define memset nonexistent_memset
33204 void *memset (void *, int, unsigned long);
33206 #define bzero nonexistent_bzero
33211 void bzero (void *, unsigned long);
33220 if ac_fn_c_try_link "$LINENO"; then :
33223 gl_cv_header_sys_select_h_selfcontained=no
33225 rm -f core conftest.err conftest.$ac_objext \
33226 conftest$ac_exeext conftest.$ac_ext
33229 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_sys_select_h_selfcontained" >&5
33234 $as_echo "$gl_cv_header_sys_select_h_selfcontained" >&6; }
33250 if test $gl_cv_have_include_next = yes; then
33251 gl_cv_next_sys_select_h='<'sys/select.h'>'
33253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/select.h>" >&5
33254 $as_echo_n "checking absolute name of <sys/select.h>... " >&6; }
33255 if ${gl_cv_next_sys_select_h+:} false; then :
33256 $as_echo_n "(cached) " >&6
33259 if test $ac_cv_header_sys_select_h = yes; then
33264 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33265 /* end confdefs.h. */
33266 #include <sys/select.h>
33269 aix*) gl_absname_cpp="$ac_cpp -C" ;;
33270 *) gl_absname_cpp="$ac_cpp" ;;
33275 gl_dirsep_regex='[/\\]'
33278 gl_dirsep_regex='\/'
33281 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
33282 gl_header_literal_regex=`echo 'sys/select.h' \
33283 | sed -e "$gl_make_literal_regex_sed"`
33284 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
33285 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
33291 gl_cv_absolute_sys_select_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
33292 sed -n "$gl_absolute_header_sed"`
33294 gl_header=$gl_cv_absolute_sys_select_h
33295 gl_cv_next_sys_select_h='"'$gl_header'"'
33297 gl_cv_next_sys_select_h='<'sys/select.h'>'
33302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_select_h" >&5
33303 $as_echo "$gl_cv_next_sys_select_h" >&6; }
33305 NEXT_SYS_SELECT_H=$gl_cv_next_sys_select_h
33307 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
33308 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
33309 gl_next_as_first_directive='<'sys/select.h'>'
33311 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
33312 gl_next_as_first_directive=$gl_cv_next_sys_select_h
33314 NEXT_AS_FIRST_DIRECTIVE_SYS_SELECT_H=$gl_next_as_first_directive
33319 if test $ac_cv_header_sys_select_h = yes; then
33320 HAVE_SYS_SELECT_H=1
33322 HAVE_SYS_SELECT_H=0
33335 if test $ac_cv_header_sys_socket_h != yes; then
33336 for ac_header in winsock2.h
33338 ac_fn_c_check_header_mongrel "$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
33339 if test "x$ac_cv_header_winsock2_h" = xyes; then :
33340 cat >>confdefs.h <<_ACEOF
33341 #define HAVE_WINSOCK2_H 1
33349 if test "$ac_cv_header_winsock2_h" = yes; then
33351 UNISTD_H_HAVE_WINSOCK2_H=1
33352 SYS_IOCTL_H_HAVE_WINSOCK2_H=1
33360 for gl_func in pselect select; do
33361 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
33362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
33363 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
33364 if eval \${$as_gl_Symbol+:} false; then :
33365 $as_echo_n "(cached) " >&6
33367 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33368 /* end confdefs.h. */
33370 /* Some systems require prerequisite headers. */
33371 #include <sys/types.h>
33372 #if !(defined __GLIBC__ && !defined __UCLIBC__) && HAVE_SYS_TIME_H
33373 # include <sys/time.h>
33375 #include <sys/select.h>
33386 if ac_fn_c_try_compile "$LINENO"; then :
33387 eval "$as_gl_Symbol=yes"
33389 eval "$as_gl_Symbol=no"
33391 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33393 eval ac_res=\$$as_gl_Symbol
33394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
33395 $as_echo "$ac_res" >&6; }
33396 if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
33397 cat >>confdefs.h <<_ACEOF
33398 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
33401 eval ac_cv_have_decl_$gl_func=yes
33414 $as_echo "#define _POSIX_PII_SOCKET 1" >>confdefs.h
33419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <sys/socket.h> is self-contained" >&5
33420 $as_echo_n "checking whether <sys/socket.h> is self-contained... " >&6; }
33421 if ${gl_cv_header_sys_socket_h_selfcontained+:} false; then :
33422 $as_echo_n "(cached) " >&6
33425 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33426 /* end confdefs.h. */
33427 #include <sys/socket.h>
33436 if ac_fn_c_try_compile "$LINENO"; then :
33437 gl_cv_header_sys_socket_h_selfcontained=yes
33439 gl_cv_header_sys_socket_h_selfcontained=no
33441 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_sys_socket_h_selfcontained" >&5
33445 $as_echo "$gl_cv_header_sys_socket_h_selfcontained" >&6; }
33446 if test $gl_cv_header_sys_socket_h_selfcontained = yes; then
33447 for ac_func in shutdown
33449 ac_fn_c_check_func "$LINENO" "shutdown" "ac_cv_func_shutdown"
33450 if test "x$ac_cv_func_shutdown" = xyes; then :
33451 cat >>confdefs.h <<_ACEOF
33452 #define HAVE_SHUTDOWN 1
33458 if test $ac_cv_func_shutdown = yes; then
33459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <sys/socket.h> defines the SHUT_* macros" >&5
33460 $as_echo_n "checking whether <sys/socket.h> defines the SHUT_* macros... " >&6; }
33461 if ${gl_cv_header_sys_socket_h_shut+:} false; then :
33462 $as_echo_n "(cached) " >&6
33465 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33466 /* end confdefs.h. */
33467 #include <sys/socket.h>
33471 int a[] = { SHUT_RD, SHUT_WR, SHUT_RDWR };
33476 if ac_fn_c_try_compile "$LINENO"; then :
33477 gl_cv_header_sys_socket_h_shut=yes
33479 gl_cv_header_sys_socket_h_shut=no
33481 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_sys_socket_h_shut" >&5
33485 $as_echo "$gl_cv_header_sys_socket_h_shut" >&6; }
33486 if test $gl_cv_header_sys_socket_h_shut = no; then
33487 SYS_SOCKET_H='sys/socket.h'
33491 # We need to check for ws2tcpip.h now.
33509 if test $gl_cv_have_include_next = yes; then
33510 gl_cv_next_sys_socket_h='<'sys/socket.h'>'
33512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/socket.h>" >&5
33513 $as_echo_n "checking absolute name of <sys/socket.h>... " >&6; }
33514 if ${gl_cv_next_sys_socket_h+:} false; then :
33515 $as_echo_n "(cached) " >&6
33518 if test $ac_cv_header_sys_socket_h = yes; then
33523 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33524 /* end confdefs.h. */
33525 #include <sys/socket.h>
33528 aix*) gl_absname_cpp="$ac_cpp -C" ;;
33529 *) gl_absname_cpp="$ac_cpp" ;;
33534 gl_dirsep_regex='[/\\]'
33537 gl_dirsep_regex='\/'
33540 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
33541 gl_header_literal_regex=`echo 'sys/socket.h' \
33542 | sed -e "$gl_make_literal_regex_sed"`
33543 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
33544 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
33550 gl_cv_absolute_sys_socket_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
33551 sed -n "$gl_absolute_header_sed"`
33553 gl_header=$gl_cv_absolute_sys_socket_h
33554 gl_cv_next_sys_socket_h='"'$gl_header'"'
33556 gl_cv_next_sys_socket_h='<'sys/socket.h'>'
33561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_socket_h" >&5
33562 $as_echo "$gl_cv_next_sys_socket_h" >&6; }
33564 NEXT_SYS_SOCKET_H=$gl_cv_next_sys_socket_h
33566 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
33567 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
33568 gl_next_as_first_directive='<'sys/socket.h'>'
33570 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
33571 gl_next_as_first_directive=$gl_cv_next_sys_socket_h
33573 NEXT_AS_FIRST_DIRECTIVE_SYS_SOCKET_H=$gl_next_as_first_directive
33578 if test $ac_cv_header_sys_socket_h = yes; then
33579 HAVE_SYS_SOCKET_H=1
33582 HAVE_SYS_SOCKET_H=0
33583 if test $ac_cv_header_ws2tcpip_h = yes; then
33592 ac_fn_c_check_type "$LINENO" "struct sockaddr_storage" "ac_cv_type_struct_sockaddr_storage" "
33593 /* sys/types.h is not needed according to POSIX, but the
33594 sys/socket.h in i386-unknown-freebsd4.10 and
33595 powerpc-apple-darwin5.5 required it. */
33596 #include <sys/types.h>
33597 #ifdef HAVE_SYS_SOCKET_H
33598 #include <sys/socket.h>
33600 #ifdef HAVE_WS2TCPIP_H
33601 #include <ws2tcpip.h>
33605 if test "x$ac_cv_type_struct_sockaddr_storage" = xyes; then :
33607 cat >>confdefs.h <<_ACEOF
33608 #define HAVE_STRUCT_SOCKADDR_STORAGE 1
33613 ac_fn_c_check_type "$LINENO" "sa_family_t" "ac_cv_type_sa_family_t" "
33614 /* sys/types.h is not needed according to POSIX, but the
33615 sys/socket.h in i386-unknown-freebsd4.10 and
33616 powerpc-apple-darwin5.5 required it. */
33617 #include <sys/types.h>
33618 #ifdef HAVE_SYS_SOCKET_H
33619 #include <sys/socket.h>
33621 #ifdef HAVE_WS2TCPIP_H
33622 #include <ws2tcpip.h>
33626 if test "x$ac_cv_type_sa_family_t" = xyes; then :
33628 cat >>confdefs.h <<_ACEOF
33629 #define HAVE_SA_FAMILY_T 1
33635 if test $ac_cv_type_struct_sockaddr_storage = no; then
33636 HAVE_STRUCT_SOCKADDR_STORAGE=0
33638 if test $ac_cv_type_sa_family_t = no; then
33641 if test $ac_cv_type_struct_sockaddr_storage != no; then
33642 ac_fn_c_check_member "$LINENO" "struct sockaddr_storage" "ss_family" "ac_cv_member_struct_sockaddr_storage_ss_family" "#include <sys/types.h>
33643 #ifdef HAVE_SYS_SOCKET_H
33644 #include <sys/socket.h>
33646 #ifdef HAVE_WS2TCPIP_H
33647 #include <ws2tcpip.h>
33651 if test "x$ac_cv_member_struct_sockaddr_storage_ss_family" = xyes; then :
33653 cat >>confdefs.h <<_ACEOF
33654 #define HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY 1
33659 HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY=0
33663 if test $HAVE_STRUCT_SOCKADDR_STORAGE = 0 || test $HAVE_SA_FAMILY_T = 0 \
33664 || test $HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY = 0; then
33665 SYS_SOCKET_H='sys/socket.h'
33677 if test $ac_cv_header_sys_socket_h != yes; then
33678 for ac_header in winsock2.h
33680 ac_fn_c_check_header_mongrel "$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
33681 if test "x$ac_cv_header_winsock2_h" = xyes; then :
33682 cat >>confdefs.h <<_ACEOF
33683 #define HAVE_WINSOCK2_H 1
33691 if test "$ac_cv_header_winsock2_h" = yes; then
33693 UNISTD_H_HAVE_WINSOCK2_H=1
33694 SYS_IOCTL_H_HAVE_WINSOCK2_H=1
33702 for gl_func in socket connect accept bind getpeername getsockname getsockopt listen recv send recvfrom sendto setsockopt shutdown accept4; do
33703 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
33704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
33705 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
33706 if eval \${$as_gl_Symbol+:} false; then :
33707 $as_echo_n "(cached) " >&6
33709 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33710 /* end confdefs.h. */
33712 /* Some systems require prerequisite headers. */
33713 #include <sys/types.h>
33714 #include <sys/socket.h>
33725 if ac_fn_c_try_compile "$LINENO"; then :
33726 eval "$as_gl_Symbol=yes"
33728 eval "$as_gl_Symbol=no"
33730 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33732 eval ac_res=\$$as_gl_Symbol
33733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
33734 $as_echo "$ac_res" >&6; }
33735 if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
33736 cat >>confdefs.h <<_ACEOF
33737 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
33740 eval ac_cv_have_decl_$gl_func=yes
33766 if test $gl_cv_have_include_next = yes; then
33767 gl_cv_next_sys_stat_h='<'sys/stat.h'>'
33769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/stat.h>" >&5
33770 $as_echo_n "checking absolute name of <sys/stat.h>... " >&6; }
33771 if ${gl_cv_next_sys_stat_h+:} false; then :
33772 $as_echo_n "(cached) " >&6
33775 if test $ac_cv_header_sys_stat_h = yes; then
33780 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33781 /* end confdefs.h. */
33782 #include <sys/stat.h>
33785 aix*) gl_absname_cpp="$ac_cpp -C" ;;
33786 *) gl_absname_cpp="$ac_cpp" ;;
33791 gl_dirsep_regex='[/\\]'
33794 gl_dirsep_regex='\/'
33797 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
33798 gl_header_literal_regex=`echo 'sys/stat.h' \
33799 | sed -e "$gl_make_literal_regex_sed"`
33800 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
33801 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
33807 gl_cv_absolute_sys_stat_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
33808 sed -n "$gl_absolute_header_sed"`
33810 gl_header=$gl_cv_absolute_sys_stat_h
33811 gl_cv_next_sys_stat_h='"'$gl_header'"'
33813 gl_cv_next_sys_stat_h='<'sys/stat.h'>'
33818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_stat_h" >&5
33819 $as_echo "$gl_cv_next_sys_stat_h" >&6; }
33821 NEXT_SYS_STAT_H=$gl_cv_next_sys_stat_h
33823 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
33824 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
33825 gl_next_as_first_directive='<'sys/stat.h'>'
33827 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
33828 gl_next_as_first_directive=$gl_cv_next_sys_stat_h
33830 NEXT_AS_FIRST_DIRECTIVE_SYS_STAT_H=$gl_next_as_first_directive
33842 if test $WINDOWS_64_BIT_ST_SIZE = 1; then
33844 $as_echo "#define _GL_WINDOWS_64_BIT_ST_SIZE 1" >>confdefs.h
33848 ac_fn_c_check_type "$LINENO" "nlink_t" "ac_cv_type_nlink_t" "#include <sys/types.h>
33849 #include <sys/stat.h>
33851 if test "x$ac_cv_type_nlink_t" = xyes; then :
33855 $as_echo "#define nlink_t int" >>confdefs.h
33861 for gl_func in fchmodat fstat fstatat futimens lchmod lstat mkdirat mkfifo mkfifoat mknod mknodat stat utimensat; do
33862 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
33863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
33864 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
33865 if eval \${$as_gl_Symbol+:} false; then :
33866 $as_echo_n "(cached) " >&6
33868 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33869 /* end confdefs.h. */
33870 #include <sys/stat.h>
33881 if ac_fn_c_try_compile "$LINENO"; then :
33882 eval "$as_gl_Symbol=yes"
33884 eval "$as_gl_Symbol=no"
33886 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33888 eval ac_res=\$$as_gl_Symbol
33889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
33890 $as_echo "$ac_res" >&6; }
33891 if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
33892 cat >>confdefs.h <<_ACEOF
33893 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
33896 eval ac_cv_have_decl_$gl_func=yes
33925 if test $gl_cv_have_include_next = yes; then
33926 gl_cv_next_sys_uio_h='<'sys/uio.h'>'
33928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/uio.h>" >&5
33929 $as_echo_n "checking absolute name of <sys/uio.h>... " >&6; }
33930 if ${gl_cv_next_sys_uio_h+:} false; then :
33931 $as_echo_n "(cached) " >&6
33934 if test $ac_cv_header_sys_uio_h = yes; then
33939 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33940 /* end confdefs.h. */
33941 #include <sys/uio.h>
33944 aix*) gl_absname_cpp="$ac_cpp -C" ;;
33945 *) gl_absname_cpp="$ac_cpp" ;;
33950 gl_dirsep_regex='[/\\]'
33953 gl_dirsep_regex='\/'
33956 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
33957 gl_header_literal_regex=`echo 'sys/uio.h' \
33958 | sed -e "$gl_make_literal_regex_sed"`
33959 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
33960 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
33966 gl_cv_absolute_sys_uio_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
33967 sed -n "$gl_absolute_header_sed"`
33969 gl_header=$gl_cv_absolute_sys_uio_h
33970 gl_cv_next_sys_uio_h='"'$gl_header'"'
33972 gl_cv_next_sys_uio_h='<'sys/uio.h'>'
33977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_uio_h" >&5
33978 $as_echo "$gl_cv_next_sys_uio_h" >&6; }
33980 NEXT_SYS_UIO_H=$gl_cv_next_sys_uio_h
33982 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
33983 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
33984 gl_next_as_first_directive='<'sys/uio.h'>'
33986 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
33987 gl_next_as_first_directive=$gl_cv_next_sys_uio_h
33989 NEXT_AS_FIRST_DIRECTIVE_SYS_UIO_H=$gl_next_as_first_directive
33994 if test $ac_cv_header_sys_uio_h = yes; then
34011 ac_fn_c_check_decl "$LINENO" "localtime_r" "ac_cv_have_decl_localtime_r" "#include <time.h>
34013 if test "x$ac_cv_have_decl_localtime_r" = xyes; then :
34019 cat >>confdefs.h <<_ACEOF
34020 #define HAVE_DECL_LOCALTIME_R $ac_have_decl
34023 if test $ac_cv_have_decl_localtime_r = no; then
34024 HAVE_DECL_LOCALTIME_R=0
34034 if test $ac_cv_func_localtime_r = yes; then
34036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether localtime_r is compatible with its POSIX signature" >&5
34037 $as_echo_n "checking whether localtime_r is compatible with its POSIX signature... " >&6; }
34038 if ${gl_cv_time_r_posix+:} false; then :
34039 $as_echo_n "(cached) " >&6
34041 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34042 /* end confdefs.h. */
34047 /* We don't need to append 'restrict's to the argument types,
34048 even though the POSIX signature has the 'restrict's,
34049 since C99 says they can't affect type compatibility. */
34050 struct tm * (*ptr) (time_t const *, struct tm *) = localtime_r;
34052 /* Check the return type is a pointer.
34053 On HP-UX 10 it is 'int'. */
34054 *localtime_r (0, 0);
34060 if ac_fn_c_try_compile "$LINENO"; then :
34061 gl_cv_time_r_posix=yes
34063 gl_cv_time_r_posix=no
34065 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_time_r_posix" >&5
34069 $as_echo "$gl_cv_time_r_posix" >&6; }
34070 if test $gl_cv_time_r_posix = yes; then
34071 REPLACE_LOCALTIME_R=0
34073 REPLACE_LOCALTIME_R=1
34079 if test $HAVE_LOCALTIME_R = 0 || test $REPLACE_LOCALTIME_R = 1; then
34088 ggl_LIBOBJS="$ggl_LIBOBJS time_r.$ac_objext"
34105 $as_echo "#define GNULIB_TEST_TIME_R 1" >>confdefs.h
34128 if test $gl_cv_have_include_next = yes; then
34129 gl_cv_next_unistd_h='<'unistd.h'>'
34131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <unistd.h>" >&5
34132 $as_echo_n "checking absolute name of <unistd.h>... " >&6; }
34133 if ${gl_cv_next_unistd_h+:} false; then :
34134 $as_echo_n "(cached) " >&6
34137 if test $ac_cv_header_unistd_h = yes; then
34142 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34143 /* end confdefs.h. */
34144 #include <unistd.h>
34147 aix*) gl_absname_cpp="$ac_cpp -C" ;;
34148 *) gl_absname_cpp="$ac_cpp" ;;
34153 gl_dirsep_regex='[/\\]'
34156 gl_dirsep_regex='\/'
34159 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
34160 gl_header_literal_regex=`echo 'unistd.h' \
34161 | sed -e "$gl_make_literal_regex_sed"`
34162 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
34163 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
34169 gl_cv_absolute_unistd_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
34170 sed -n "$gl_absolute_header_sed"`
34172 gl_header=$gl_cv_absolute_unistd_h
34173 gl_cv_next_unistd_h='"'$gl_header'"'
34175 gl_cv_next_unistd_h='<'unistd.h'>'
34180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_unistd_h" >&5
34181 $as_echo "$gl_cv_next_unistd_h" >&6; }
34183 NEXT_UNISTD_H=$gl_cv_next_unistd_h
34185 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
34186 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
34187 gl_next_as_first_directive='<'unistd.h'>'
34189 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
34190 gl_next_as_first_directive=$gl_cv_next_unistd_h
34192 NEXT_AS_FIRST_DIRECTIVE_UNISTD_H=$gl_next_as_first_directive
34197 if test $ac_cv_header_unistd_h = yes; then
34209 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
34210 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
34211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
34212 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
34213 if eval \${$as_gl_Symbol+:} false; then :
34214 $as_echo_n "(cached) " >&6
34216 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34217 /* end confdefs.h. */
34220 # include <unistd.h>
34222 /* Some systems declare various items in the wrong headers. */
34223 #if !(defined __GLIBC__ && !defined __UCLIBC__)
34224 # include <fcntl.h>
34225 # include <stdio.h>
34226 # include <stdlib.h>
34227 # if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
34241 if ac_fn_c_try_compile "$LINENO"; then :
34242 eval "$as_gl_Symbol=yes"
34244 eval "$as_gl_Symbol=no"
34246 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34248 eval ac_res=\$$as_gl_Symbol
34249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
34250 $as_echo "$ac_res" >&6; }
34251 if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
34252 cat >>confdefs.h <<_ACEOF
34253 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
34256 eval ac_cv_have_decl_$gl_func=yes
34270 if test $ac_cv_have_decl_unsetenv = no; then
34271 HAVE_DECL_UNSETENV=0
34273 for ac_func in unsetenv
34275 ac_fn_c_check_func "$LINENO" "unsetenv" "ac_cv_func_unsetenv"
34276 if test "x$ac_cv_func_unsetenv" = xyes; then :
34277 cat >>confdefs.h <<_ACEOF
34278 #define HAVE_UNSETENV 1
34284 if test $ac_cv_func_unsetenv = no; then
34288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsetenv() return type" >&5
34289 $as_echo_n "checking for unsetenv() return type... " >&6; }
34290 if ${gt_cv_func_unsetenv_ret+:} false; then :
34291 $as_echo_n "(cached) " >&6
34293 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34294 /* end confdefs.h. */
34297 #define _BSD 1 /* unhide unsetenv declaration in OSF/1 5.1 <stdlib.h> */
34298 #include <stdlib.h>
34303 int unsetenv (const char *name);
34313 if ac_fn_c_try_compile "$LINENO"; then :
34314 gt_cv_func_unsetenv_ret='int'
34316 gt_cv_func_unsetenv_ret='void'
34318 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_unsetenv_ret" >&5
34321 $as_echo "$gt_cv_func_unsetenv_ret" >&6; }
34322 if test $gt_cv_func_unsetenv_ret = 'void'; then
34324 $as_echo "#define VOID_UNSETENV 1" >>confdefs.h
34329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether unsetenv obeys POSIX" >&5
34330 $as_echo_n "checking whether unsetenv obeys POSIX... " >&6; }
34331 if ${gl_cv_func_unsetenv_works+:} false; then :
34332 $as_echo_n "(cached) " >&6
34334 if test "$cross_compiling" = yes; then :
34336 # Guess yes on glibc systems.
34337 *-gnu*) gl_cv_func_unsetenv_works="guessing yes" ;;
34338 # If we don't know, assume the worst.
34339 *) gl_cv_func_unsetenv_works="guessing no" ;;
34343 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34344 /* end confdefs.h. */
34346 #include <stdlib.h>
34348 extern char **environ;
34354 char entry1[] = "a=1";
34355 char entry2[] = "b=2";
34356 char *env[] = { entry1, entry2, NULL };
34357 if (putenv ((char *) "a=1")) return 1;
34358 if (putenv (entry2)) return 2;
34361 if (getenv ("a")) return 3;
34362 if (!unsetenv ("") || errno != EINVAL) return 4;
34365 if (!getenv ("a")) return 5;
34368 if (getenv ("a")) return 6;
34374 if ac_fn_c_try_run "$LINENO"; then :
34375 gl_cv_func_unsetenv_works=yes
34377 gl_cv_func_unsetenv_works=no
34379 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
34380 conftest.$ac_objext conftest.beam conftest.$ac_ext
34384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_unsetenv_works" >&5
34385 $as_echo "$gl_cv_func_unsetenv_works" >&6; }
34386 case "$gl_cv_func_unsetenv_works" in
34394 if test $HAVE_UNSETENV = 0 || test $REPLACE_UNSETENV = 1; then
34403 ggl_LIBOBJS="$ggl_LIBOBJS unsetenv.$ac_objext"
34427 $as_echo "#define GNULIB_TEST_UNSETENV 1" >>confdefs.h
34439 if test $ac_cv_func_vasnprintf = no; then
34456 ggl_LIBOBJS="$ggl_LIBOBJS vasnprintf.$ac_objext"
34466 ggl_LIBOBJS="$ggl_LIBOBJS printf-args.$ac_objext"
34476 ggl_LIBOBJS="$ggl_LIBOBJS printf-parse.$ac_objext"
34486 ggl_LIBOBJS="$ggl_LIBOBJS asnprintf.$ac_objext"
34488 if test $ac_cv_func_vasnprintf = yes; then
34490 $as_echo "#define REPLACE_VASNPRINTF 1" >>confdefs.h
34504 ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
34505 if test "x$ac_cv_type_ptrdiff_t" = xyes; then :
34509 $as_echo "#define ptrdiff_t long" >>confdefs.h
34540 if test $gl_cv_have_include_next = yes; then
34541 gl_cv_next_wchar_h='<'wchar.h'>'
34543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <wchar.h>" >&5
34544 $as_echo_n "checking absolute name of <wchar.h>... " >&6; }
34545 if ${gl_cv_next_wchar_h+:} false; then :
34546 $as_echo_n "(cached) " >&6
34549 if test $ac_cv_header_wchar_h = yes; then
34554 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34555 /* end confdefs.h. */
34559 aix*) gl_absname_cpp="$ac_cpp -C" ;;
34560 *) gl_absname_cpp="$ac_cpp" ;;
34565 gl_dirsep_regex='[/\\]'
34568 gl_dirsep_regex='\/'
34571 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
34572 gl_header_literal_regex=`echo 'wchar.h' \
34573 | sed -e "$gl_make_literal_regex_sed"`
34574 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
34575 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
34581 gl_cv_absolute_wchar_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
34582 sed -n "$gl_absolute_header_sed"`
34584 gl_header=$gl_cv_absolute_wchar_h
34585 gl_cv_next_wchar_h='"'$gl_header'"'
34587 gl_cv_next_wchar_h='<'wchar.h'>'
34592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_wchar_h" >&5
34593 $as_echo "$gl_cv_next_wchar_h" >&6; }
34595 NEXT_WCHAR_H=$gl_cv_next_wchar_h
34597 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
34598 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
34599 gl_next_as_first_directive='<'wchar.h'>'
34601 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
34602 gl_next_as_first_directive=$gl_cv_next_wchar_h
34604 NEXT_AS_FIRST_DIRECTIVE_WCHAR_H=$gl_next_as_first_directive
34609 if test $ac_cv_header_wchar_h = yes; then
34619 if test $gt_cv_c_wint_t = yes; then
34627 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
34628 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
34629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
34630 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
34631 if eval \${$as_gl_Symbol+:} false; then :
34632 $as_echo_n "(cached) " >&6
34634 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34635 /* end confdefs.h. */
34637 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
34639 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
34640 included before <wchar.h>. */
34641 #if !(defined __GLIBC__ && !defined __UCLIBC__)
34642 # include <stddef.h>
34643 # include <stdio.h>
34657 if ac_fn_c_try_compile "$LINENO"; then :
34658 eval "$as_gl_Symbol=yes"
34660 eval "$as_gl_Symbol=no"
34662 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34664 eval ac_res=\$$as_gl_Symbol
34665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
34666 $as_echo "$ac_res" >&6; }
34667 if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
34668 cat >>confdefs.h <<_ACEOF
34669 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
34672 eval ac_cv_have_decl_$gl_func=yes
34681 for ac_header in stdint.h
34683 ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
34684 if test "x$ac_cv_header_stdint_h" = xyes; then :
34685 cat >>confdefs.h <<_ACEOF
34686 #define HAVE_STDINT_H 1
34694 # End of code from modules
34715 gl_source_base='tests'
34716 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
34718 gl_module_indicator_condition=$ggltests_WITNESS
34731 # Check whether --enable-gcc-warnings was given.
34732 if test "${enable_gcc_warnings+set}" = set; then :
34733 enableval=$enable_gcc_warnings; case $enableval in
34735 *) as_fn_error $? "bad value $enableval for gcc-warnings option" "$LINENO" 5 ;;
34737 gl_gcc_warnings=$enableval
34744 if test "$gl_gcc_warnings" = yes; then
34745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Werror -Wunknown-warning-option" >&5
34746 $as_echo_n "checking whether C compiler handles -Werror -Wunknown-warning-option... " >&6; }
34747 if ${gl_cv_warn_c__Werror__Wunknown_warning_option+:} false; then :
34748 $as_echo_n "(cached) " >&6
34751 gl_save_compiler_FLAGS="$CFLAGS"
34752 as_fn_append CFLAGS " $gl_unknown_warnings_are_errors -Werror -Wunknown-warning-option"
34753 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34754 /* end confdefs.h. */
34764 if ac_fn_c_try_link "$LINENO"; then :
34765 gl_cv_warn_c__Werror__Wunknown_warning_option=yes
34767 gl_cv_warn_c__Werror__Wunknown_warning_option=no
34769 rm -f core conftest.err conftest.$ac_objext \
34770 conftest$ac_exeext conftest.$ac_ext
34771 CFLAGS="$gl_save_compiler_FLAGS"
34774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Werror__Wunknown_warning_option" >&5
34775 $as_echo "$gl_cv_warn_c__Werror__Wunknown_warning_option" >&6; }
34776 if test "x$gl_cv_warn_c__Werror__Wunknown_warning_option" = xyes; then :
34777 gl_unknown_warnings_are_errors='-Wunknown-warning-option -Werror'
34779 gl_unknown_warnings_are_errors=
34783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wframe-larger-than=1024" >&5
34784 $as_echo_n "checking whether C compiler handles -Wframe-larger-than=1024... " >&6; }
34785 if ${gl_cv_warn_c__Wframe_larger_than_1024+:} false; then :
34786 $as_echo_n "(cached) " >&6
34789 gl_save_compiler_FLAGS="$CFLAGS"
34790 as_fn_append CFLAGS " $gl_unknown_warnings_are_errors -Wframe-larger-than=1024"
34791 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34792 /* end confdefs.h. */
34802 if ac_fn_c_try_link "$LINENO"; then :
34803 gl_cv_warn_c__Wframe_larger_than_1024=yes
34805 gl_cv_warn_c__Wframe_larger_than_1024=no
34807 rm -f core conftest.err conftest.$ac_objext \
34808 conftest$ac_exeext conftest.$ac_ext
34809 CFLAGS="$gl_save_compiler_FLAGS"
34812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wframe_larger_than_1024" >&5
34813 $as_echo "$gl_cv_warn_c__Wframe_larger_than_1024" >&6; }
34814 if test "x$gl_cv_warn_c__Wframe_larger_than_1024" = xyes; then :
34815 as_fn_append WSTACK_CFLAGS " -Wframe-larger-than=1024"
34820 nw="$nw -Wsystem-headers" # Don't let system headers trigger warnings
34821 nw="$nw -Wc++-compat" # We don't care about C++ compilers
34822 nw="$nw -Wundef" # Warns on '#if GNULIB_FOO' etc in gnulib
34823 nw="$nw -Wtraditional" # Warns on #elif which we use often
34824 nw="$nw -Wlogical-op" # Too many false positives
34825 nw="$nw -Wold-style-definition" #
34826 nw="$nw -Wpadded" # Our structs are not padded
34827 nw="$nw -Wunreachable-code" # Too many false positives
34828 nw="$nw -Wtraditional-conversion" # Too many warnings for now
34829 nw="$nw -Wcast-qual" # Too many warnings for now
34830 nw="$nw -Waggregate-return" # Too many warnings for now
34831 nw="$nw -Wshadow" # Too many warnings for now
34832 nw="$nw -Wswitch-default" # Too many warnings for now
34833 nw="$nw -Wswitch-enum" # Too many warnings for now
34834 nw="$nw -Wconversion" # Too many warnings for now
34835 nw="$nw -Wsign-conversion" # Too many warnings for now
34836 nw="$nw -Wformat-y2k" # Too many warnings for now
34837 nw="$nw -Woverlength-strings" # We use some in tests/
34838 nw="$nw -Wvla" # There is no point to avoid C99 variable length arrays
34839 nw="$nw -Wformat-nonliteral" # Incompatible with gettext _()
34840 nw="$nw -Wunsafe-loop-optimizations"
34841 nw="$nw -Wstrict-overflow"
34842 nw="$nw -Wmissing-noreturn"
34843 nw="$nw -Winline" # Too compiler dependent
34844 nw="$nw -Wsuggest-attribute=pure" # Is it worth using attributes?
34845 nw="$nw -Wsuggest-attribute=const" # Is it worth using attributes?
34846 nw="$nw -Wsuggest-attribute=noreturn" # Is it worth using attributes?
34847 nw="$nw -Wstack-protector" # Some functions cannot be protected
34848 nw="$nw -Wredundant-decls" # Some files cannot be compiled with that (gl_fd_to_handle)
34852 if test -n "$GCC"; then
34854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -Wno-missing-field-initializers is supported" >&5
34855 $as_echo_n "checking whether -Wno-missing-field-initializers is supported... " >&6; }
34856 if ${gl_cv_cc_nomfi_supported+:} false; then :
34857 $as_echo_n "(cached) " >&6
34860 gl_save_CFLAGS="$CFLAGS"
34861 CFLAGS="$CFLAGS -W -Werror -Wno-missing-field-initializers"
34862 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34863 /* end confdefs.h. */
34873 if ac_fn_c_try_compile "$LINENO"; then :
34874 gl_cv_cc_nomfi_supported=yes
34876 gl_cv_cc_nomfi_supported=no
34878 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34879 CFLAGS="$gl_save_CFLAGS"
34882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_nomfi_supported" >&5
34883 $as_echo "$gl_cv_cc_nomfi_supported" >&6; }
34885 if test "$gl_cv_cc_nomfi_supported" = yes; then
34886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -Wno-missing-field-initializers is needed" >&5
34887 $as_echo_n "checking whether -Wno-missing-field-initializers is needed... " >&6; }
34888 if ${gl_cv_cc_nomfi_needed+:} false; then :
34889 $as_echo_n "(cached) " >&6
34892 gl_save_CFLAGS="$CFLAGS"
34893 CFLAGS="$CFLAGS -W -Werror"
34894 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34895 /* end confdefs.h. */
34898 typedef struct { int a; int b; } s_t;
34910 if ac_fn_c_try_compile "$LINENO"; then :
34911 gl_cv_cc_nomfi_needed=no
34913 gl_cv_cc_nomfi_needed=yes
34915 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34916 CFLAGS="$gl_save_CFLAGS"
34920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_nomfi_needed" >&5
34921 $as_echo "$gl_cv_cc_nomfi_needed" >&6; }
34924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -Wuninitialized is supported" >&5
34925 $as_echo_n "checking whether -Wuninitialized is supported... " >&6; }
34926 if ${gl_cv_cc_uninitialized_supported+:} false; then :
34927 $as_echo_n "(cached) " >&6
34930 gl_save_CFLAGS="$CFLAGS"
34931 CFLAGS="$CFLAGS -Werror -Wuninitialized"
34932 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34933 /* end confdefs.h. */
34943 if ac_fn_c_try_compile "$LINENO"; then :
34944 gl_cv_cc_uninitialized_supported=yes
34946 gl_cv_cc_uninitialized_supported=no
34948 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34949 CFLAGS="$gl_save_CFLAGS"
34952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_uninitialized_supported" >&5
34953 $as_echo "$gl_cv_cc_uninitialized_supported" >&6; }
34957 # List all gcc warning categories.
34959 for gl_manywarn_item in \
34963 -Waggressive-loop-optimizations \
34967 -Wbad-function-cast \
34968 -Wbuiltin-macro-redefined \
34970 -Wchar-subscripts \
34974 -Wcoverage-mismatch \
34977 -Wdeprecated-declarations \
34978 -Wdisabled-optimization \
34980 -Wdouble-promotion \
34985 -Wformat-contains-nul \
34986 -Wformat-extra-args \
34987 -Wformat-nonliteral \
34988 -Wformat-security \
34990 -Wformat-zero-length \
34991 -Wfree-nonheap-object \
34992 -Wignored-qualifiers \
34994 -Wimplicit-function-declaration \
34998 -Wint-to-pointer-cast \
34999 -Winvalid-memory-model \
35001 -Wjump-misses-init \
35004 -Wmaybe-uninitialized \
35006 -Wmissing-declarations \
35007 -Wmissing-field-initializers \
35008 -Wmissing-include-dirs \
35009 -Wmissing-parameter-type \
35010 -Wmissing-prototypes \
35016 -Wold-style-declaration \
35017 -Wold-style-definition \
35019 -Woverlength-strings \
35022 -Wpacked-bitfield-compat \
35026 -Wpointer-to-int-cast \
35028 -Wreturn-local-addr \
35032 -Wsizeof-pointer-memaccess \
35033 -Wstack-protector \
35034 -Wstrict-aliasing \
35035 -Wstrict-overflow \
35036 -Wstrict-prototypes \
35037 -Wsuggest-attribute=const \
35038 -Wsuggest-attribute=format \
35039 -Wsuggest-attribute=noreturn \
35040 -Wsuggest-attribute=pure \
35049 -Wunknown-pragmas \
35050 -Wunsafe-loop-optimizations \
35052 -Wunused-but-set-parameter \
35053 -Wunused-but-set-variable \
35054 -Wunused-function \
35056 -Wunused-local-typedefs \
35058 -Wunused-parameter \
35061 -Wunused-variable \
35063 -Wvariadic-macros \
35064 -Wvector-operation-performance \
35066 -Wvolatile-register-var \
35068 -fdiagnostics-show-option \
35072 gl_manywarn_set="$gl_manywarn_set $gl_manywarn_item"
35075 # Disable specific options as needed.
35076 if test "$gl_cv_cc_nomfi_needed" = yes; then
35077 gl_manywarn_set="$gl_manywarn_set -Wno-missing-field-initializers"
35080 if test "$gl_cv_cc_uninitialized_supported" = no; then
35081 gl_manywarn_set="$gl_manywarn_set -Wno-uninitialized"
35084 ws=$gl_manywarn_set
35092 *" $gl_warn_item "*)
35095 gl_warn_set="$gl_warn_set $gl_warn_item"
35103 as_gl_Warn=`$as_echo "gl_cv_warn_c_$w" | $as_tr_sh`
35105 case $gl_positive in
35106 -Wno-*) gl_positive=-W`expr "X$gl_positive" : 'X-Wno-\(.*\)'` ;;
35108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles $w" >&5
35109 $as_echo_n "checking whether C compiler handles $w... " >&6; }
35110 if eval \${$as_gl_Warn+:} false; then :
35111 $as_echo_n "(cached) " >&6
35114 gl_save_compiler_FLAGS="$CFLAGS"
35115 as_fn_append CFLAGS " $gl_unknown_warnings_are_errors $gl_positive"
35116 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35117 /* end confdefs.h. */
35127 if ac_fn_c_try_link "$LINENO"; then :
35128 eval "$as_gl_Warn=yes"
35130 eval "$as_gl_Warn=no"
35132 rm -f core conftest.err conftest.$ac_objext \
35133 conftest$ac_exeext conftest.$ac_ext
35134 CFLAGS="$gl_save_compiler_FLAGS"
35137 eval ac_res=\$$as_gl_Warn
35138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
35139 $as_echo "$ac_res" >&6; }
35140 if eval test \"x\$"$as_gl_Warn"\" = x"yes"; then :
35141 as_fn_append WARN_CFLAGS " $w"
35148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-missing-field-initializers" >&5
35149 $as_echo_n "checking whether C compiler handles -Wno-missing-field-initializers... " >&6; }
35150 if ${gl_cv_warn_c__Wno_missing_field_initializers+:} false; then :
35151 $as_echo_n "(cached) " >&6
35154 gl_save_compiler_FLAGS="$CFLAGS"
35155 as_fn_append CFLAGS " $gl_unknown_warnings_are_errors -Wmissing-field-initializers"
35156 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35157 /* end confdefs.h. */
35167 if ac_fn_c_try_link "$LINENO"; then :
35168 gl_cv_warn_c__Wno_missing_field_initializers=yes
35170 gl_cv_warn_c__Wno_missing_field_initializers=no
35172 rm -f core conftest.err conftest.$ac_objext \
35173 conftest$ac_exeext conftest.$ac_ext
35174 CFLAGS="$gl_save_compiler_FLAGS"
35177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_missing_field_initializers" >&5
35178 $as_echo "$gl_cv_warn_c__Wno_missing_field_initializers" >&6; }
35179 if test "x$gl_cv_warn_c__Wno_missing_field_initializers" = xyes; then :
35180 as_fn_append WARN_CFLAGS " -Wno-missing-field-initializers"
35185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-format-y2k" >&5
35186 $as_echo_n "checking whether C compiler handles -Wno-format-y2k... " >&6; }
35187 if ${gl_cv_warn_c__Wno_format_y2k+:} false; then :
35188 $as_echo_n "(cached) " >&6
35191 gl_save_compiler_FLAGS="$CFLAGS"
35192 as_fn_append CFLAGS " $gl_unknown_warnings_are_errors -Wformat-y2k"
35193 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35194 /* end confdefs.h. */
35204 if ac_fn_c_try_link "$LINENO"; then :
35205 gl_cv_warn_c__Wno_format_y2k=yes
35207 gl_cv_warn_c__Wno_format_y2k=no
35209 rm -f core conftest.err conftest.$ac_objext \
35210 conftest$ac_exeext conftest.$ac_ext
35211 CFLAGS="$gl_save_compiler_FLAGS"
35214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_format_y2k" >&5
35215 $as_echo "$gl_cv_warn_c__Wno_format_y2k" >&6; }
35216 if test "x$gl_cv_warn_c__Wno_format_y2k" = xyes; then :
35217 as_fn_append WARN_CFLAGS " -Wno-format-y2k"
35220 # Too many warnings for now
35222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-unused-value" >&5
35223 $as_echo_n "checking whether C compiler handles -Wno-unused-value... " >&6; }
35224 if ${gl_cv_warn_c__Wno_unused_value+:} false; then :
35225 $as_echo_n "(cached) " >&6
35228 gl_save_compiler_FLAGS="$CFLAGS"
35229 as_fn_append CFLAGS " $gl_unknown_warnings_are_errors -Wunused-value"
35230 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35231 /* end confdefs.h. */
35241 if ac_fn_c_try_link "$LINENO"; then :
35242 gl_cv_warn_c__Wno_unused_value=yes
35244 gl_cv_warn_c__Wno_unused_value=no
35246 rm -f core conftest.err conftest.$ac_objext \
35247 conftest$ac_exeext conftest.$ac_ext
35248 CFLAGS="$gl_save_compiler_FLAGS"
35251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_unused_value" >&5
35252 $as_echo "$gl_cv_warn_c__Wno_unused_value" >&6; }
35253 if test "x$gl_cv_warn_c__Wno_unused_value" = xyes; then :
35254 as_fn_append WARN_CFLAGS " -Wno-unused-value"
35257 # warnings for things we don't want to get
35259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-unused-result" >&5
35260 $as_echo_n "checking whether C compiler handles -Wno-unused-result... " >&6; }
35261 if ${gl_cv_warn_c__Wno_unused_result+:} false; then :
35262 $as_echo_n "(cached) " >&6
35265 gl_save_compiler_FLAGS="$CFLAGS"
35266 as_fn_append CFLAGS " $gl_unknown_warnings_are_errors -Wunused-result"
35267 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35268 /* end confdefs.h. */
35278 if ac_fn_c_try_link "$LINENO"; then :
35279 gl_cv_warn_c__Wno_unused_result=yes
35281 gl_cv_warn_c__Wno_unused_result=no
35283 rm -f core conftest.err conftest.$ac_objext \
35284 conftest$ac_exeext conftest.$ac_ext
35285 CFLAGS="$gl_save_compiler_FLAGS"
35288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_unused_result" >&5
35289 $as_echo "$gl_cv_warn_c__Wno_unused_result" >&6; }
35290 if test "x$gl_cv_warn_c__Wno_unused_result" = xyes; then :
35291 as_fn_append WARN_CFLAGS " -Wno-unused-result"
35294 # warnings for things we don't want to get
35296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-unused-parameter" >&5
35297 $as_echo_n "checking whether C compiler handles -Wno-unused-parameter... " >&6; }
35298 if ${gl_cv_warn_c__Wno_unused_parameter+:} false; then :
35299 $as_echo_n "(cached) " >&6
35302 gl_save_compiler_FLAGS="$CFLAGS"
35303 as_fn_append CFLAGS " $gl_unknown_warnings_are_errors -Wunused-parameter"
35304 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35305 /* end confdefs.h. */
35315 if ac_fn_c_try_link "$LINENO"; then :
35316 gl_cv_warn_c__Wno_unused_parameter=yes
35318 gl_cv_warn_c__Wno_unused_parameter=no
35320 rm -f core conftest.err conftest.$ac_objext \
35321 conftest$ac_exeext conftest.$ac_ext
35322 CFLAGS="$gl_save_compiler_FLAGS"
35325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_unused_parameter" >&5
35326 $as_echo "$gl_cv_warn_c__Wno_unused_parameter" >&6; }
35327 if test "x$gl_cv_warn_c__Wno_unused_parameter" = xyes; then :
35328 as_fn_append WARN_CFLAGS " -Wno-unused-parameter"
35331 # Too many warnings for now
35333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-stack-protector" >&5
35334 $as_echo_n "checking whether C compiler handles -Wno-stack-protector... " >&6; }
35335 if ${gl_cv_warn_c__Wno_stack_protector+:} false; then :
35336 $as_echo_n "(cached) " >&6
35339 gl_save_compiler_FLAGS="$CFLAGS"
35340 as_fn_append CFLAGS " $gl_unknown_warnings_are_errors -Wstack-protector"
35341 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35342 /* end confdefs.h. */
35352 if ac_fn_c_try_link "$LINENO"; then :
35353 gl_cv_warn_c__Wno_stack_protector=yes
35355 gl_cv_warn_c__Wno_stack_protector=no
35357 rm -f core conftest.err conftest.$ac_objext \
35358 conftest$ac_exeext conftest.$ac_ext
35359 CFLAGS="$gl_save_compiler_FLAGS"
35362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_stack_protector" >&5
35363 $as_echo "$gl_cv_warn_c__Wno_stack_protector" >&6; }
35364 if test "x$gl_cv_warn_c__Wno_stack_protector" = xyes; then :
35365 as_fn_append WARN_CFLAGS " -Wno-stack-protector"
35368 # Some functions cannot be protected
35370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-int-to-pointer-cast" >&5
35371 $as_echo_n "checking whether C compiler handles -Wno-int-to-pointer-cast... " >&6; }
35372 if ${gl_cv_warn_c__Wno_int_to_pointer_cast+:} false; then :
35373 $as_echo_n "(cached) " >&6
35376 gl_save_compiler_FLAGS="$CFLAGS"
35377 as_fn_append CFLAGS " $gl_unknown_warnings_are_errors -Wint-to-pointer-cast"
35378 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35379 /* end confdefs.h. */
35389 if ac_fn_c_try_link "$LINENO"; then :
35390 gl_cv_warn_c__Wno_int_to_pointer_cast=yes
35392 gl_cv_warn_c__Wno_int_to_pointer_cast=no
35394 rm -f core conftest.err conftest.$ac_objext \
35395 conftest$ac_exeext conftest.$ac_ext
35396 CFLAGS="$gl_save_compiler_FLAGS"
35399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_int_to_pointer_cast" >&5
35400 $as_echo "$gl_cv_warn_c__Wno_int_to_pointer_cast" >&6; }
35401 if test "x$gl_cv_warn_c__Wno_int_to_pointer_cast" = xyes; then :
35402 as_fn_append WARN_CFLAGS " -Wno-int-to-pointer-cast"
35405 # Some files cannot be compiled with that (gl_fd_to_handle)
35407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -fdiagnostics-show-option" >&5
35408 $as_echo_n "checking whether C compiler handles -fdiagnostics-show-option... " >&6; }
35409 if ${gl_cv_warn_c__fdiagnostics_show_option+:} false; then :
35410 $as_echo_n "(cached) " >&6
35413 gl_save_compiler_FLAGS="$CFLAGS"
35414 as_fn_append CFLAGS " $gl_unknown_warnings_are_errors -fdiagnostics-show-option"
35415 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35416 /* end confdefs.h. */
35426 if ac_fn_c_try_link "$LINENO"; then :
35427 gl_cv_warn_c__fdiagnostics_show_option=yes
35429 gl_cv_warn_c__fdiagnostics_show_option=no
35431 rm -f core conftest.err conftest.$ac_objext \
35432 conftest$ac_exeext conftest.$ac_ext
35433 CFLAGS="$gl_save_compiler_FLAGS"
35436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__fdiagnostics_show_option" >&5
35437 $as_echo "$gl_cv_warn_c__fdiagnostics_show_option" >&6; }
35438 if test "x$gl_cv_warn_c__fdiagnostics_show_option" = xyes; then :
35439 as_fn_append WARN_CFLAGS " -fdiagnostics-show-option"
35449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
35450 $as_echo_n "checking whether ln -s works... " >&6; }
35452 if test "$LN_S" = "ln -s"; then
35453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35454 $as_echo "yes" >&6; }
35456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
35457 $as_echo "no, using $LN_S" >&6; }
35462 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
35463 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
35468 macro_version='2.4.2'
35469 macro_revision='1.3337'
35483 ltmain="$ac_aux_dir/ltmain.sh"
35485 # Backslashify metacharacters that are still active within
35486 # double-quoted strings.
35487 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
35489 # Same as above, but do not quote variable references.
35490 double_quote_subst='s/\(["`\\]\)/\\\1/g'
35492 # Sed substitution to delay expansion of an escaped shell variable in a
35493 # double_quote_subst'ed string.
35494 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
35496 # Sed substitution to delay expansion of an escaped single quote.
35497 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
35499 # Sed substitution to avoid accidental globbing in evaled expressions
35500 no_glob_subst='s/\*/\\\*/g'
35502 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
35503 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
35504 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
35506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
35507 $as_echo_n "checking how to print strings... " >&6; }
35508 # Test print first, because it will be a builtin if present.
35509 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
35510 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
35512 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
35515 # Use this function as a fallback that always works.
35516 func_fallback_echo ()
35518 eval 'cat <<_LTECHO_EOF
35522 ECHO='func_fallback_echo'
35525 # func_echo_all arg...
35526 # Invoke $ECHO with all args, space-separated.
35533 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
35534 $as_echo "printf" >&6; } ;;
35535 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
35536 $as_echo "print -r" >&6; } ;;
35537 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
35538 $as_echo "cat" >&6; } ;;
35554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
35555 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
35556 if ${ac_cv_path_SED+:} false; then :
35557 $as_echo_n "(cached) " >&6
35559 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
35560 for ac_i in 1 2 3 4 5 6 7; do
35561 ac_script="$ac_script$as_nl$ac_script"
35563 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
35564 { ac_script=; unset ac_script;}
35565 if test -z "$SED"; then
35566 ac_path_SED_found=false
35567 # Loop through the user's path and test for each of PROGNAME-LIST
35568 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35569 for as_dir in $PATH
35572 test -z "$as_dir" && as_dir=.
35573 for ac_prog in sed gsed; do
35574 for ac_exec_ext in '' $ac_executable_extensions; do
35575 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
35576 as_fn_executable_p "$ac_path_SED" || continue
35577 # Check for GNU ac_path_SED and select it if it is found.
35578 # Check for GNU $ac_path_SED
35579 case `"$ac_path_SED" --version 2>&1` in
35581 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
35584 $as_echo_n 0123456789 >"conftest.in"
35587 cat "conftest.in" "conftest.in" >"conftest.tmp"
35588 mv "conftest.tmp" "conftest.in"
35589 cp "conftest.in" "conftest.nl"
35590 $as_echo '' >> "conftest.nl"
35591 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
35592 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
35593 as_fn_arith $ac_count + 1 && ac_count=$as_val
35594 if test $ac_count -gt ${ac_path_SED_max-0}; then
35595 # Best one so far, save it but keep looking for a better one
35596 ac_cv_path_SED="$ac_path_SED"
35597 ac_path_SED_max=$ac_count
35599 # 10*(2^10) chars as input seems more than enough
35600 test $ac_count -gt 10 && break
35602 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
35605 $ac_path_SED_found && break 3
35610 if test -z "$ac_cv_path_SED"; then
35611 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
35614 ac_cv_path_SED=$SED
35618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
35619 $as_echo "$ac_cv_path_SED" >&6; }
35620 SED="$ac_cv_path_SED"
35623 test -z "$SED" && SED=sed
35624 Xsed="$SED -e 1s/^X//"
35636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
35637 $as_echo_n "checking for fgrep... " >&6; }
35638 if ${ac_cv_path_FGREP+:} false; then :
35639 $as_echo_n "(cached) " >&6
35641 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
35642 then ac_cv_path_FGREP="$GREP -F"
35644 if test -z "$FGREP"; then
35645 ac_path_FGREP_found=false
35646 # Loop through the user's path and test for each of PROGNAME-LIST
35647 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35648 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
35651 test -z "$as_dir" && as_dir=.
35652 for ac_prog in fgrep; do
35653 for ac_exec_ext in '' $ac_executable_extensions; do
35654 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
35655 as_fn_executable_p "$ac_path_FGREP" || continue
35656 # Check for GNU ac_path_FGREP and select it if it is found.
35657 # Check for GNU $ac_path_FGREP
35658 case `"$ac_path_FGREP" --version 2>&1` in
35660 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
35663 $as_echo_n 0123456789 >"conftest.in"
35666 cat "conftest.in" "conftest.in" >"conftest.tmp"
35667 mv "conftest.tmp" "conftest.in"
35668 cp "conftest.in" "conftest.nl"
35669 $as_echo 'FGREP' >> "conftest.nl"
35670 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
35671 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
35672 as_fn_arith $ac_count + 1 && ac_count=$as_val
35673 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
35674 # Best one so far, save it but keep looking for a better one
35675 ac_cv_path_FGREP="$ac_path_FGREP"
35676 ac_path_FGREP_max=$ac_count
35678 # 10*(2^10) chars as input seems more than enough
35679 test $ac_count -gt 10 && break
35681 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
35684 $ac_path_FGREP_found && break 3
35689 if test -z "$ac_cv_path_FGREP"; then
35690 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
35693 ac_cv_path_FGREP=$FGREP
35698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
35699 $as_echo "$ac_cv_path_FGREP" >&6; }
35700 FGREP="$ac_cv_path_FGREP"
35703 test -z "$GREP" && GREP=grep
35723 # Check whether --with-gnu-ld was given.
35724 if test "${with_gnu_ld+set}" = set; then :
35725 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
35731 if test "$GCC" = yes; then
35732 # Check if gcc -print-prog-name=ld gives a path.
35733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
35734 $as_echo_n "checking for ld used by $CC... " >&6; }
35737 # gcc leaves a trailing carriage return which upsets mingw
35738 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
35740 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
35743 # Accept absolute paths.
35745 re_direlt='/[^/][^/]*/\.\./'
35746 # Canonicalize the pathname of ld
35747 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
35748 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
35749 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
35751 test -z "$LD" && LD="$ac_prog"
35754 # If it fails, then pretend we aren't using GCC.
35758 # If it is relative, then search for the first ld in PATH.
35759 with_gnu_ld=unknown
35762 elif test "$with_gnu_ld" = yes; then
35763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
35764 $as_echo_n "checking for GNU ld... " >&6; }
35766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
35767 $as_echo_n "checking for non-GNU ld... " >&6; }
35769 if ${lt_cv_path_LD+:} false; then :
35770 $as_echo_n "(cached) " >&6
35772 if test -z "$LD"; then
35773 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
35774 for ac_dir in $PATH; do
35776 test -z "$ac_dir" && ac_dir=.
35777 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
35778 lt_cv_path_LD="$ac_dir/$ac_prog"
35779 # Check to see if the program is GNU ld. I'd rather use --version,
35780 # but apparently some variants of GNU ld only accept -v.
35781 # Break only if it was the GNU/non-GNU ld that we prefer.
35782 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
35783 *GNU* | *'with BFD'*)
35784 test "$with_gnu_ld" != no && break
35787 test "$with_gnu_ld" != yes && break
35794 lt_cv_path_LD="$LD" # Let the user override the test with a path.
35798 LD="$lt_cv_path_LD"
35799 if test -n "$LD"; then
35800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
35801 $as_echo "$LD" >&6; }
35803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35804 $as_echo "no" >&6; }
35806 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
35807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
35808 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
35809 if ${lt_cv_prog_gnu_ld+:} false; then :
35810 $as_echo_n "(cached) " >&6
35812 # I'd rather use --version here, but apparently some GNU lds only accept -v.
35813 case `$LD -v 2>&1 </dev/null` in
35814 *GNU* | *'with BFD'*)
35815 lt_cv_prog_gnu_ld=yes
35818 lt_cv_prog_gnu_ld=no
35822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
35823 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
35824 with_gnu_ld=$lt_cv_prog_gnu_ld
35834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
35835 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
35836 if ${lt_cv_path_NM+:} false; then :
35837 $as_echo_n "(cached) " >&6
35839 if test -n "$NM"; then
35840 # Let the user override the test.
35841 lt_cv_path_NM="$NM"
35843 lt_nm_to_check="${ac_tool_prefix}nm"
35844 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
35845 lt_nm_to_check="$lt_nm_to_check nm"
35847 for lt_tmp_nm in $lt_nm_to_check; do
35848 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
35849 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
35851 test -z "$ac_dir" && ac_dir=.
35852 tmp_nm="$ac_dir/$lt_tmp_nm"
35853 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
35854 # Check to see if the nm accepts a BSD-compat flag.
35855 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
35856 # nm: unknown option "B" ignored
35857 # Tru64's nm complains that /dev/null is an invalid object file
35858 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
35859 */dev/null* | *'Invalid file or object type'*)
35860 lt_cv_path_NM="$tmp_nm -B"
35864 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
35866 lt_cv_path_NM="$tmp_nm -p"
35870 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
35871 continue # so that we can try to find one that supports BSD flags
35880 : ${lt_cv_path_NM=no}
35883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
35884 $as_echo "$lt_cv_path_NM" >&6; }
35885 if test "$lt_cv_path_NM" != "no"; then
35886 NM="$lt_cv_path_NM"
35888 # Didn't find any BSD compatible name lister, look for dumpbin.
35889 if test -n "$DUMPBIN"; then :
35890 # Let the user override the test.
35892 if test -n "$ac_tool_prefix"; then
35893 for ac_prog in dumpbin "link -dump"
35895 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
35896 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
35897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
35898 $as_echo_n "checking for $ac_word... " >&6; }
35899 if ${ac_cv_prog_DUMPBIN+:} false; then :
35900 $as_echo_n "(cached) " >&6
35902 if test -n "$DUMPBIN"; then
35903 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
35905 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35906 for as_dir in $PATH
35909 test -z "$as_dir" && as_dir=.
35910 for ac_exec_ext in '' $ac_executable_extensions; do
35911 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
35912 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
35913 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
35922 DUMPBIN=$ac_cv_prog_DUMPBIN
35923 if test -n "$DUMPBIN"; then
35924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
35925 $as_echo "$DUMPBIN" >&6; }
35927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35928 $as_echo "no" >&6; }
35932 test -n "$DUMPBIN" && break
35935 if test -z "$DUMPBIN"; then
35936 ac_ct_DUMPBIN=$DUMPBIN
35937 for ac_prog in dumpbin "link -dump"
35939 # Extract the first word of "$ac_prog", so it can be a program name with args.
35940 set dummy $ac_prog; ac_word=$2
35941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
35942 $as_echo_n "checking for $ac_word... " >&6; }
35943 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
35944 $as_echo_n "(cached) " >&6
35946 if test -n "$ac_ct_DUMPBIN"; then
35947 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
35949 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35950 for as_dir in $PATH
35953 test -z "$as_dir" && as_dir=.
35954 for ac_exec_ext in '' $ac_executable_extensions; do
35955 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
35956 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
35957 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
35966 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
35967 if test -n "$ac_ct_DUMPBIN"; then
35968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
35969 $as_echo "$ac_ct_DUMPBIN" >&6; }
35971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35972 $as_echo "no" >&6; }
35976 test -n "$ac_ct_DUMPBIN" && break
35979 if test "x$ac_ct_DUMPBIN" = x; then
35982 case $cross_compiling:$ac_tool_warned in
35984 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
35985 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
35986 ac_tool_warned=yes ;;
35988 DUMPBIN=$ac_ct_DUMPBIN
35992 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
35994 DUMPBIN="$DUMPBIN -symbols"
36002 if test "$DUMPBIN" != ":"; then
36006 test -z "$NM" && NM=nm
36013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
36014 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
36015 if ${lt_cv_nm_interface+:} false; then :
36016 $as_echo_n "(cached) " >&6
36018 lt_cv_nm_interface="BSD nm"
36019 echo "int some_variable = 0;" > conftest.$ac_ext
36020 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
36021 (eval "$ac_compile" 2>conftest.err)
36022 cat conftest.err >&5
36023 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
36024 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
36025 cat conftest.err >&5
36026 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
36027 cat conftest.out >&5
36028 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
36029 lt_cv_nm_interface="MS dumpbin"
36033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
36034 $as_echo "$lt_cv_nm_interface" >&6; }
36036 # find the maximum length of command line arguments
36037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
36038 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
36039 if ${lt_cv_sys_max_cmd_len+:} false; then :
36040 $as_echo_n "(cached) " >&6
36047 # On DJGPP, this test can blow up pretty badly due to problems in libc
36048 # (any single argument exceeding 2000 bytes causes a buffer overrun
36049 # during glob expansion). Even if it were fixed, the result of this
36050 # check would be larger than it should be.
36051 lt_cv_sys_max_cmd_len=12288; # 12K is about right
36055 # Under GNU Hurd, this test is not required because there is
36056 # no limit to the length of command line arguments.
36057 # Libtool will interpret -1 as no limit whatsoever
36058 lt_cv_sys_max_cmd_len=-1;
36061 cygwin* | mingw* | cegcc*)
36062 # On Win9x/ME, this test blows up -- it succeeds, but takes
36063 # about 5 minutes as the teststring grows exponentially.
36064 # Worse, since 9x/ME are not pre-emptively multitasking,
36065 # you end up with a "frozen" computer, even though with patience
36066 # the test eventually succeeds (with a max line length of 256k).
36067 # Instead, let's just punt: use the minimum linelength reported by
36068 # all of the supported platforms: 8192 (on NT/2K/XP).
36069 lt_cv_sys_max_cmd_len=8192;
36073 # On MiNT this can take a long time and run out of memory.
36074 lt_cv_sys_max_cmd_len=8192;
36078 # On AmigaOS with pdksh, this test takes hours, literally.
36079 # So we just punt and use a minimum line length of 8192.
36080 lt_cv_sys_max_cmd_len=8192;
36083 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
36084 # This has been around since 386BSD, at least. Likely further.
36085 if test -x /sbin/sysctl; then
36086 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
36087 elif test -x /usr/sbin/sysctl; then
36088 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
36090 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
36092 # And add a safety zone
36093 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
36094 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
36098 # We know the value 262144 and hardcode it with a safety zone (like BSD)
36099 lt_cv_sys_max_cmd_len=196608
36103 # The test takes a long time on OS/2.
36104 lt_cv_sys_max_cmd_len=8192
36108 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
36109 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
36110 # nice to cause kernel panics so lets avoid the loop below.
36111 # First set a reasonable default.
36112 lt_cv_sys_max_cmd_len=16384
36114 if test -x /sbin/sysconfig; then
36115 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
36116 *1*) lt_cv_sys_max_cmd_len=-1 ;;
36121 lt_cv_sys_max_cmd_len=102400
36123 sysv5* | sco5v6* | sysv4.2uw2*)
36124 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
36125 if test -n "$kargmax"; then
36126 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
36128 lt_cv_sys_max_cmd_len=32768
36132 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
36133 if test -n "$lt_cv_sys_max_cmd_len" && \
36134 test undefined != "$lt_cv_sys_max_cmd_len"; then
36135 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
36136 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
36138 # Make teststring a little bigger before we do anything with it.
36139 # a 1K string should be a reasonable start.
36140 for i in 1 2 3 4 5 6 7 8 ; do
36141 teststring=$teststring$teststring
36143 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
36144 # If test is not a shell built-in, we'll probably end up computing a
36145 # maximum length that is only half of the actual maximum length, but
36147 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
36148 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
36149 test $i != 17 # 1/2 MB should be enough
36152 teststring=$teststring$teststring
36154 # Only check the string length outside the loop.
36155 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
36157 # Add a significant safety factor because C++ compilers can tack on
36158 # massive amounts of additional arguments before passing them to the
36159 # linker. It appears as though 1/2 is a usable value.
36160 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
36167 if test -n $lt_cv_sys_max_cmd_len ; then
36168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
36169 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
36171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
36172 $as_echo "none" >&6; }
36174 max_cmd_len=$lt_cv_sys_max_cmd_len
36185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
36186 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
36187 # Try some XSI features
36189 ( _lt_dummy="a/b/c"
36190 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
36192 && eval 'test $(( 1 + 1 )) -eq 2 \
36193 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
36195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
36196 $as_echo "$xsi_shell" >&6; }
36199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
36200 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
36202 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
36204 && lt_shell_append=yes
36205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
36206 $as_echo "$lt_shell_append" >&6; }
36209 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
36219 # test EBCDIC or ASCII
36220 case `echo X|tr X '\101'` in
36221 A) # ASCII based system
36222 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
36223 lt_SP2NL='tr \040 \012'
36224 lt_NL2SP='tr \015\012 \040\040'
36226 *) # EBCDIC based system
36227 lt_SP2NL='tr \100 \n'
36228 lt_NL2SP='tr \r\n \100\100'
36240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
36241 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
36242 if ${lt_cv_to_host_file_cmd+:} false; then :
36243 $as_echo_n "(cached) " >&6
36248 *-*-mingw* ) # actually msys
36249 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
36252 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
36254 * ) # otherwise, assume *nix
36255 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
36261 *-*-mingw* ) # actually msys
36262 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
36265 lt_cv_to_host_file_cmd=func_convert_file_noop
36267 * ) # otherwise, assume *nix
36268 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
36272 * ) # unhandled hosts (and "normal" native builds)
36273 lt_cv_to_host_file_cmd=func_convert_file_noop
36279 to_host_file_cmd=$lt_cv_to_host_file_cmd
36280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
36281 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
36287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
36288 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
36289 if ${lt_cv_to_tool_file_cmd+:} false; then :
36290 $as_echo_n "(cached) " >&6
36292 #assume ordinary cross tools, or native build.
36293 lt_cv_to_tool_file_cmd=func_convert_file_noop
36297 *-*-mingw* ) # actually msys
36298 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
36306 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
36307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
36308 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
36314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
36315 $as_echo_n "checking for $LD option to reload object files... " >&6; }
36316 if ${lt_cv_ld_reload_flag+:} false; then :
36317 $as_echo_n "(cached) " >&6
36319 lt_cv_ld_reload_flag='-r'
36321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
36322 $as_echo "$lt_cv_ld_reload_flag" >&6; }
36323 reload_flag=$lt_cv_ld_reload_flag
36324 case $reload_flag in
36326 *) reload_flag=" $reload_flag" ;;
36328 reload_cmds='$LD$reload_flag -o $output$reload_objs'
36330 cygwin* | mingw* | pw32* | cegcc*)
36331 if test "$GCC" != yes; then
36336 if test "$GCC" = yes; then
36337 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
36339 reload_cmds='$LD$reload_flag -o $output$reload_objs'
36352 if test -n "$ac_tool_prefix"; then
36353 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
36354 set dummy ${ac_tool_prefix}objdump; ac_word=$2
36355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
36356 $as_echo_n "checking for $ac_word... " >&6; }
36357 if ${ac_cv_prog_OBJDUMP+:} false; then :
36358 $as_echo_n "(cached) " >&6
36360 if test -n "$OBJDUMP"; then
36361 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
36363 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
36364 for as_dir in $PATH
36367 test -z "$as_dir" && as_dir=.
36368 for ac_exec_ext in '' $ac_executable_extensions; do
36369 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
36370 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
36371 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
36380 OBJDUMP=$ac_cv_prog_OBJDUMP
36381 if test -n "$OBJDUMP"; then
36382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
36383 $as_echo "$OBJDUMP" >&6; }
36385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36386 $as_echo "no" >&6; }
36391 if test -z "$ac_cv_prog_OBJDUMP"; then
36392 ac_ct_OBJDUMP=$OBJDUMP
36393 # Extract the first word of "objdump", so it can be a program name with args.
36394 set dummy objdump; ac_word=$2
36395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
36396 $as_echo_n "checking for $ac_word... " >&6; }
36397 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
36398 $as_echo_n "(cached) " >&6
36400 if test -n "$ac_ct_OBJDUMP"; then
36401 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
36403 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
36404 for as_dir in $PATH
36407 test -z "$as_dir" && as_dir=.
36408 for ac_exec_ext in '' $ac_executable_extensions; do
36409 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
36410 ac_cv_prog_ac_ct_OBJDUMP="objdump"
36411 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
36420 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
36421 if test -n "$ac_ct_OBJDUMP"; then
36422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
36423 $as_echo "$ac_ct_OBJDUMP" >&6; }
36425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36426 $as_echo "no" >&6; }
36429 if test "x$ac_ct_OBJDUMP" = x; then
36432 case $cross_compiling:$ac_tool_warned in
36434 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
36435 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
36436 ac_tool_warned=yes ;;
36438 OBJDUMP=$ac_ct_OBJDUMP
36441 OBJDUMP="$ac_cv_prog_OBJDUMP"
36444 test -z "$OBJDUMP" && OBJDUMP=objdump
36454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
36455 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
36456 if ${lt_cv_deplibs_check_method+:} false; then :
36457 $as_echo_n "(cached) " >&6
36459 lt_cv_file_magic_cmd='$MAGIC_CMD'
36460 lt_cv_file_magic_test_file=
36461 lt_cv_deplibs_check_method='unknown'
36462 # Need to set the preceding variable on all platforms that support
36463 # interlibrary dependencies.
36464 # 'none' -- dependencies not supported.
36465 # `unknown' -- same as none, but documents that we really don't know.
36466 # 'pass_all' -- all dependencies passed with no checks.
36467 # 'test_compile' -- check by making test program.
36468 # 'file_magic [[regex]]' -- check by looking for files in library path
36469 # which responds to the $file_magic_cmd with a given extended regex.
36470 # If you have `file' or equivalent on your system and you're not sure
36471 # whether `pass_all' will *always* work, you probably want this one.
36475 lt_cv_deplibs_check_method=pass_all
36479 lt_cv_deplibs_check_method=pass_all
36483 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
36484 lt_cv_file_magic_cmd='/usr/bin/file -L'
36485 lt_cv_file_magic_test_file=/shlib/libc.so
36489 # func_win32_libid is a shell function defined in ltmain.sh
36490 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
36491 lt_cv_file_magic_cmd='func_win32_libid'
36495 # Base MSYS/MinGW do not provide the 'file' command needed by
36496 # func_win32_libid shell function, so use a weaker test based on 'objdump',
36497 # unless we find 'file', for example because we are cross-compiling.
36498 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
36499 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
36500 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
36501 lt_cv_file_magic_cmd='func_win32_libid'
36503 # Keep this pattern in sync with the one in func_win32_libid.
36504 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
36505 lt_cv_file_magic_cmd='$OBJDUMP -f'
36510 # use the weaker test based on 'objdump'. See mingw*.
36511 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
36512 lt_cv_file_magic_cmd='$OBJDUMP -f'
36515 darwin* | rhapsody*)
36516 lt_cv_deplibs_check_method=pass_all
36519 freebsd* | dragonfly*)
36520 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
36523 # Not sure whether the presence of OpenBSD here was a mistake.
36524 # Let's accept both of them until this is cleared up.
36525 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
36526 lt_cv_file_magic_cmd=/usr/bin/file
36527 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
36531 lt_cv_deplibs_check_method=pass_all
36536 lt_cv_deplibs_check_method=pass_all
36539 hpux10.20* | hpux11*)
36540 lt_cv_file_magic_cmd=/usr/bin/file
36543 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
36544 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
36547 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]'
36548 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
36551 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
36552 lt_cv_file_magic_test_file=/usr/lib/libc.sl
36558 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
36559 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
36562 irix5* | irix6* | nonstopux*)
36564 *-32|*"-32 ") libmagic=32-bit;;
36565 *-n32|*"-n32 ") libmagic=N32;;
36566 *-64|*"-64 ") libmagic=64-bit;;
36567 *) libmagic=never-match;;
36569 lt_cv_deplibs_check_method=pass_all
36572 # This must be glibc/ELF.
36573 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
36574 lt_cv_deplibs_check_method=pass_all
36577 netbsd* | netbsdelf*-gnu)
36578 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
36579 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
36581 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
36586 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
36587 lt_cv_file_magic_cmd=/usr/bin/file
36588 lt_cv_file_magic_test_file=/usr/lib/libnls.so
36592 lt_cv_deplibs_check_method=pass_all
36596 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
36597 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
36599 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
36603 osf3* | osf4* | osf5*)
36604 lt_cv_deplibs_check_method=pass_all
36608 lt_cv_deplibs_check_method=pass_all
36612 lt_cv_deplibs_check_method=pass_all
36615 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
36616 lt_cv_deplibs_check_method=pass_all
36620 case $host_vendor in
36622 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]'
36623 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
36626 lt_cv_deplibs_check_method=pass_all
36629 lt_cv_file_magic_cmd='/bin/file'
36630 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
36633 lt_cv_file_magic_cmd='/bin/file'
36634 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
36635 lt_cv_file_magic_test_file=/lib/libc.so
36638 lt_cv_deplibs_check_method=pass_all
36641 lt_cv_deplibs_check_method=pass_all
36647 lt_cv_deplibs_check_method=pass_all
36652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
36653 $as_echo "$lt_cv_deplibs_check_method" >&6; }
36657 if test "$build" = "$host"; then
36660 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
36661 want_nocaseglob=yes
36663 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
36669 file_magic_cmd=$lt_cv_file_magic_cmd
36670 deplibs_check_method=$lt_cv_deplibs_check_method
36671 test -z "$deplibs_check_method" && deplibs_check_method=unknown
36694 if test -n "$ac_tool_prefix"; then
36695 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
36696 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
36697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
36698 $as_echo_n "checking for $ac_word... " >&6; }
36699 if ${ac_cv_prog_DLLTOOL+:} false; then :
36700 $as_echo_n "(cached) " >&6
36702 if test -n "$DLLTOOL"; then
36703 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
36705 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
36706 for as_dir in $PATH
36709 test -z "$as_dir" && as_dir=.
36710 for ac_exec_ext in '' $ac_executable_extensions; do
36711 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
36712 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
36713 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
36722 DLLTOOL=$ac_cv_prog_DLLTOOL
36723 if test -n "$DLLTOOL"; then
36724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
36725 $as_echo "$DLLTOOL" >&6; }
36727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36728 $as_echo "no" >&6; }
36733 if test -z "$ac_cv_prog_DLLTOOL"; then
36734 ac_ct_DLLTOOL=$DLLTOOL
36735 # Extract the first word of "dlltool", so it can be a program name with args.
36736 set dummy dlltool; ac_word=$2
36737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
36738 $as_echo_n "checking for $ac_word... " >&6; }
36739 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
36740 $as_echo_n "(cached) " >&6
36742 if test -n "$ac_ct_DLLTOOL"; then
36743 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
36745 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
36746 for as_dir in $PATH
36749 test -z "$as_dir" && as_dir=.
36750 for ac_exec_ext in '' $ac_executable_extensions; do
36751 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
36752 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
36753 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
36762 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
36763 if test -n "$ac_ct_DLLTOOL"; then
36764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
36765 $as_echo "$ac_ct_DLLTOOL" >&6; }
36767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36768 $as_echo "no" >&6; }
36771 if test "x$ac_ct_DLLTOOL" = x; then
36774 case $cross_compiling:$ac_tool_warned in
36776 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
36777 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
36778 ac_tool_warned=yes ;;
36780 DLLTOOL=$ac_ct_DLLTOOL
36783 DLLTOOL="$ac_cv_prog_DLLTOOL"
36786 test -z "$DLLTOOL" && DLLTOOL=dlltool
36797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
36798 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
36799 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
36800 $as_echo_n "(cached) " >&6
36802 lt_cv_sharedlib_from_linklib_cmd='unknown'
36805 cygwin* | mingw* | pw32* | cegcc*)
36806 # two different shell functions defined in ltmain.sh
36807 # decide which to use based on capabilities of $DLLTOOL
36808 case `$DLLTOOL --help 2>&1` in
36809 *--identify-strict*)
36810 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
36813 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
36818 # fallback: assume linklib IS sharedlib
36819 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
36824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
36825 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
36826 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
36827 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
36835 if test -n "$ac_tool_prefix"; then
36838 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
36839 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
36840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
36841 $as_echo_n "checking for $ac_word... " >&6; }
36842 if ${ac_cv_prog_AR+:} false; then :
36843 $as_echo_n "(cached) " >&6
36845 if test -n "$AR"; then
36846 ac_cv_prog_AR="$AR" # Let the user override the test.
36848 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
36849 for as_dir in $PATH
36852 test -z "$as_dir" && as_dir=.
36853 for ac_exec_ext in '' $ac_executable_extensions; do
36854 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
36855 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
36856 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
36866 if test -n "$AR"; then
36867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
36868 $as_echo "$AR" >&6; }
36870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36871 $as_echo "no" >&6; }
36875 test -n "$AR" && break
36878 if test -z "$AR"; then
36882 # Extract the first word of "$ac_prog", so it can be a program name with args.
36883 set dummy $ac_prog; ac_word=$2
36884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
36885 $as_echo_n "checking for $ac_word... " >&6; }
36886 if ${ac_cv_prog_ac_ct_AR+:} false; then :
36887 $as_echo_n "(cached) " >&6
36889 if test -n "$ac_ct_AR"; then
36890 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
36892 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
36893 for as_dir in $PATH
36896 test -z "$as_dir" && as_dir=.
36897 for ac_exec_ext in '' $ac_executable_extensions; do
36898 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
36899 ac_cv_prog_ac_ct_AR="$ac_prog"
36900 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
36909 ac_ct_AR=$ac_cv_prog_ac_ct_AR
36910 if test -n "$ac_ct_AR"; then
36911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
36912 $as_echo "$ac_ct_AR" >&6; }
36914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36915 $as_echo "no" >&6; }
36919 test -n "$ac_ct_AR" && break
36922 if test "x$ac_ct_AR" = x; then
36925 case $cross_compiling:$ac_tool_warned in
36927 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
36928 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
36929 ac_tool_warned=yes ;;
36948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
36949 $as_echo_n "checking for archiver @FILE support... " >&6; }
36950 if ${lt_cv_ar_at_file+:} false; then :
36951 $as_echo_n "(cached) " >&6
36953 lt_cv_ar_at_file=no
36954 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36955 /* end confdefs.h. */
36965 if ac_fn_c_try_compile "$LINENO"; then :
36966 echo conftest.$ac_objext > conftest.lst
36967 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
36968 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
36969 (eval $lt_ar_try) 2>&5
36971 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
36972 test $ac_status = 0; }
36973 if test "$ac_status" -eq 0; then
36974 # Ensure the archiver fails upon bogus file names.
36975 rm -f conftest.$ac_objext libconftest.a
36976 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
36977 (eval $lt_ar_try) 2>&5
36979 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
36980 test $ac_status = 0; }
36981 if test "$ac_status" -ne 0; then
36985 rm -f conftest.* libconftest.a
36988 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
36992 $as_echo "$lt_cv_ar_at_file" >&6; }
36994 if test "x$lt_cv_ar_at_file" = xno; then
36995 archiver_list_spec=
36997 archiver_list_spec=$lt_cv_ar_at_file
37006 if test -n "$ac_tool_prefix"; then
37007 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
37008 set dummy ${ac_tool_prefix}strip; ac_word=$2
37009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
37010 $as_echo_n "checking for $ac_word... " >&6; }
37011 if ${ac_cv_prog_STRIP+:} false; then :
37012 $as_echo_n "(cached) " >&6
37014 if test -n "$STRIP"; then
37015 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
37017 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
37018 for as_dir in $PATH
37021 test -z "$as_dir" && as_dir=.
37022 for ac_exec_ext in '' $ac_executable_extensions; do
37023 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
37024 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
37025 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
37034 STRIP=$ac_cv_prog_STRIP
37035 if test -n "$STRIP"; then
37036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
37037 $as_echo "$STRIP" >&6; }
37039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37040 $as_echo "no" >&6; }
37045 if test -z "$ac_cv_prog_STRIP"; then
37047 # Extract the first word of "strip", so it can be a program name with args.
37048 set dummy strip; ac_word=$2
37049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
37050 $as_echo_n "checking for $ac_word... " >&6; }
37051 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
37052 $as_echo_n "(cached) " >&6
37054 if test -n "$ac_ct_STRIP"; then
37055 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
37057 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
37058 for as_dir in $PATH
37061 test -z "$as_dir" && as_dir=.
37062 for ac_exec_ext in '' $ac_executable_extensions; do
37063 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
37064 ac_cv_prog_ac_ct_STRIP="strip"
37065 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
37074 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
37075 if test -n "$ac_ct_STRIP"; then
37076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
37077 $as_echo "$ac_ct_STRIP" >&6; }
37079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37080 $as_echo "no" >&6; }
37083 if test "x$ac_ct_STRIP" = x; then
37086 case $cross_compiling:$ac_tool_warned in
37088 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
37089 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
37090 ac_tool_warned=yes ;;
37095 STRIP="$ac_cv_prog_STRIP"
37098 test -z "$STRIP" && STRIP=:
37105 if test -n "$ac_tool_prefix"; then
37106 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
37107 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
37108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
37109 $as_echo_n "checking for $ac_word... " >&6; }
37110 if ${ac_cv_prog_RANLIB+:} false; then :
37111 $as_echo_n "(cached) " >&6
37113 if test -n "$RANLIB"; then
37114 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
37116 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
37117 for as_dir in $PATH
37120 test -z "$as_dir" && as_dir=.
37121 for ac_exec_ext in '' $ac_executable_extensions; do
37122 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
37123 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
37124 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
37133 RANLIB=$ac_cv_prog_RANLIB
37134 if test -n "$RANLIB"; then
37135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
37136 $as_echo "$RANLIB" >&6; }
37138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37139 $as_echo "no" >&6; }
37144 if test -z "$ac_cv_prog_RANLIB"; then
37145 ac_ct_RANLIB=$RANLIB
37146 # Extract the first word of "ranlib", so it can be a program name with args.
37147 set dummy ranlib; ac_word=$2
37148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
37149 $as_echo_n "checking for $ac_word... " >&6; }
37150 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
37151 $as_echo_n "(cached) " >&6
37153 if test -n "$ac_ct_RANLIB"; then
37154 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
37156 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
37157 for as_dir in $PATH
37160 test -z "$as_dir" && as_dir=.
37161 for ac_exec_ext in '' $ac_executable_extensions; do
37162 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
37163 ac_cv_prog_ac_ct_RANLIB="ranlib"
37164 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
37173 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
37174 if test -n "$ac_ct_RANLIB"; then
37175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
37176 $as_echo "$ac_ct_RANLIB" >&6; }
37178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37179 $as_echo "no" >&6; }
37182 if test "x$ac_ct_RANLIB" = x; then
37185 case $cross_compiling:$ac_tool_warned in
37187 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
37188 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
37189 ac_tool_warned=yes ;;
37191 RANLIB=$ac_ct_RANLIB
37194 RANLIB="$ac_cv_prog_RANLIB"
37197 test -z "$RANLIB" && RANLIB=:
37204 # Determine commands to create old-style static archives.
37205 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
37206 old_postinstall_cmds='chmod 644 $oldlib'
37207 old_postuninstall_cmds=
37209 if test -n "$RANLIB"; then
37212 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
37215 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
37218 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
37223 lock_old_archive_extraction=yes ;;
37225 lock_old_archive_extraction=no ;;
37266 # If no C compiler was specified, use CC.
37269 # If no C compiler flags were specified, use CFLAGS.
37270 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
37272 # Allow CC to be a program name with arguments.
37276 # Check for command to grab the raw symbol name followed by C symbol from nm.
37277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
37278 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
37279 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
37280 $as_echo_n "(cached) " >&6
37283 # These are sane defaults that work on at least a few old systems.
37284 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
37286 # Character class describing NM global symbol codes.
37287 symcode='[BCDEGRST]'
37289 # Regexp to match symbols that can be accessed directly from C.
37290 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
37292 # Define system-specific variables.
37297 cygwin* | mingw* | pw32* | cegcc*)
37298 symcode='[ABCDGISTW]'
37301 if test "$host_cpu" = ia64; then
37302 symcode='[ABCDEGRST]'
37305 irix* | nonstopux*)
37306 symcode='[BCDEGRST]'
37309 symcode='[BCDEGQRST]'
37320 sysv5* | sco5v6* | unixware* | OpenUNIX*)
37328 # If we're using GNU nm, then use its standard symbol codes.
37329 case `$NM -V 2>&1` in
37330 *GNU* | *'with BFD'*)
37331 symcode='[ABCDGIRSTW]' ;;
37334 # Transform an extracted symbol line into a proper C declaration.
37335 # Some systems (esp. on ia64) link data and code symbols differently,
37336 # so use this general approach.
37337 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
37339 # Transform an extracted symbol line into symbol name and symbol address
37340 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
37341 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'"
37343 # Handle CRLF in mingw tool chain
37347 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
37351 # Try without a prefix underscore, then with it.
37352 for ac_symprfx in "" "_"; do
37354 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
37355 symxfrm="\\1 $ac_symprfx\\2 \\2"
37357 # Write the raw and C identifiers.
37358 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
37359 # Fake it for dumpbin and say T for any non-static function
37360 # and D for any global variable.
37361 # Also find C++ and __fastcall symbols from MSVC++,
37362 # which start with @ or ?.
37363 lt_cv_sys_global_symbol_pipe="$AWK '"\
37364 " {last_section=section; section=\$ 3};"\
37365 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
37366 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
37367 " \$ 0!~/External *\|/{next};"\
37368 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
37369 " {if(hide[section]) next};"\
37370 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
37371 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
37372 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
37373 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
37374 " ' prfx=^$ac_symprfx"
37376 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
37378 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
37380 # Check to see that the pipe works correctly.
37384 cat > conftest.$ac_ext <<_LT_EOF
37389 void nm_test_func(void);
37390 void nm_test_func(void){}
37394 int main(){nm_test_var='a';nm_test_func();return(0);}
37397 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
37398 (eval $ac_compile) 2>&5
37400 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
37401 test $ac_status = 0; }; then
37402 # Now try to grab the symbols.
37404 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
37405 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
37407 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
37408 test $ac_status = 0; } && test -s "$nlist"; then
37409 # Try sorting and uniquifying the output.
37410 if sort "$nlist" | uniq > "$nlist"T; then
37411 mv -f "$nlist"T "$nlist"
37416 # Make sure that we snagged all the symbols we need.
37417 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
37418 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
37419 cat <<_LT_EOF > conftest.$ac_ext
37420 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
37421 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
37422 /* DATA imports from DLLs on WIN32 con't be const, because runtime
37423 relocations are performed -- see ld's documentation on pseudo-relocs. */
37424 # define LT_DLSYM_CONST
37425 #elif defined(__osf__)
37426 /* This system does not cope well with relocations in const data. */
37427 # define LT_DLSYM_CONST
37429 # define LT_DLSYM_CONST const
37437 # Now generate the symbol file.
37438 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
37440 cat <<_LT_EOF >> conftest.$ac_ext
37442 /* The mapping between symbol names and symbols. */
37443 LT_DLSYM_CONST struct {
37447 lt__PROGRAM__LTX_preloaded_symbols[] =
37449 { "@PROGRAM@", (void *) 0 },
37451 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
37452 cat <<\_LT_EOF >> conftest.$ac_ext
37456 /* This works around a problem in FreeBSD linker */
37457 #ifdef FREEBSD_WORKAROUND
37458 static const void *lt_preloaded_setup() {
37459 return lt__PROGRAM__LTX_preloaded_symbols;
37467 # Now try linking the two files.
37468 mv conftest.$ac_objext conftstm.$ac_objext
37469 lt_globsym_save_LIBS=$LIBS
37470 lt_globsym_save_CFLAGS=$CFLAGS
37471 LIBS="conftstm.$ac_objext"
37472 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
37473 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
37474 (eval $ac_link) 2>&5
37476 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
37477 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
37480 LIBS=$lt_globsym_save_LIBS
37481 CFLAGS=$lt_globsym_save_CFLAGS
37483 echo "cannot find nm_test_func in $nlist" >&5
37486 echo "cannot find nm_test_var in $nlist" >&5
37489 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
37492 echo "$progname: failed program was:" >&5
37493 cat conftest.$ac_ext >&5
37495 rm -rf conftest* conftst*
37497 # Do not use the global_symbol_pipe unless it works.
37498 if test "$pipe_works" = yes; then
37501 lt_cv_sys_global_symbol_pipe=
37507 if test -z "$lt_cv_sys_global_symbol_pipe"; then
37508 lt_cv_sys_global_symbol_to_cdecl=
37510 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
37511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
37512 $as_echo "failed" >&6; }
37514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
37515 $as_echo "ok" >&6; }
37518 # Response file support.
37519 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
37520 nm_file_list_spec='@'
37521 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
37522 nm_file_list_spec='@'
37551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
37552 $as_echo_n "checking for sysroot... " >&6; }
37554 # Check whether --with-sysroot was given.
37555 if test "${with_sysroot+set}" = set; then :
37556 withval=$with_sysroot;
37563 case ${with_sysroot} in #(
37565 if test "$GCC" = yes; then
37566 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
37570 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
37575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
37576 $as_echo "${with_sysroot}" >&6; }
37577 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
37581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
37582 $as_echo "${lt_sysroot:-no}" >&6; }
37588 # Check whether --enable-libtool-lock was given.
37589 if test "${enable_libtool_lock+set}" = set; then :
37590 enableval=$enable_libtool_lock;
37593 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
37595 # Some flags need to be propagated to the compiler or linker for good
37599 # Find out which ABI we are using.
37600 echo 'int i;' > conftest.$ac_ext
37601 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
37602 (eval $ac_compile) 2>&5
37604 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
37605 test $ac_status = 0; }; then
37606 case `/usr/bin/file conftest.$ac_objext` in
37608 HPUX_IA64_MODE="32"
37611 HPUX_IA64_MODE="64"
37618 # Find out which ABI we are using.
37619 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
37620 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
37621 (eval $ac_compile) 2>&5
37623 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
37624 test $ac_status = 0; }; then
37625 if test "$lt_cv_prog_gnu_ld" = yes; then
37626 case `/usr/bin/file conftest.$ac_objext` in
37628 LD="${LD-ld} -melf32bsmip"
37631 LD="${LD-ld} -melf32bmipn32"
37634 LD="${LD-ld} -melf64bmip"
37638 case `/usr/bin/file conftest.$ac_objext` in
37654 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
37655 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
37656 # Find out which ABI we are using.
37657 echo 'int i;' > conftest.$ac_ext
37658 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
37659 (eval $ac_compile) 2>&5
37661 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
37662 test $ac_status = 0; }; then
37663 case `/usr/bin/file conftest.o` in
37666 x86_64-*kfreebsd*-gnu)
37667 LD="${LD-ld} -m elf_i386_fbsd"
37670 case `/usr/bin/file conftest.o` in
37672 LD="${LD-ld} -m elf32_x86_64"
37675 LD="${LD-ld} -m elf_i386"
37680 LD="${LD-ld} -m elf32lppclinux"
37683 LD="${LD-ld} -m elf32ppclinux"
37686 LD="${LD-ld} -m elf_s390"
37689 LD="${LD-ld} -m elf32_sparc"
37695 x86_64-*kfreebsd*-gnu)
37696 LD="${LD-ld} -m elf_x86_64_fbsd"
37699 LD="${LD-ld} -m elf_x86_64"
37702 LD="${LD-ld} -m elf64lppc"
37705 LD="${LD-ld} -m elf64ppc"
37707 s390*-*linux*|s390*-*tpf*)
37708 LD="${LD-ld} -m elf64_s390"
37711 LD="${LD-ld} -m elf64_sparc"
37721 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
37722 SAVE_CFLAGS="$CFLAGS"
37723 CFLAGS="$CFLAGS -belf"
37724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
37725 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
37726 if ${lt_cv_cc_needs_belf+:} false; then :
37727 $as_echo_n "(cached) " >&6
37730 ac_cpp='$CPP $CPPFLAGS'
37731 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
37732 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
37733 ac_compiler_gnu=$ac_cv_c_compiler_gnu
37735 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37736 /* end confdefs.h. */
37746 if ac_fn_c_try_link "$LINENO"; then :
37747 lt_cv_cc_needs_belf=yes
37749 lt_cv_cc_needs_belf=no
37751 rm -f core conftest.err conftest.$ac_objext \
37752 conftest$ac_exeext conftest.$ac_ext
37754 ac_cpp='$CPP $CPPFLAGS'
37755 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
37756 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
37757 ac_compiler_gnu=$ac_cv_c_compiler_gnu
37760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
37761 $as_echo "$lt_cv_cc_needs_belf" >&6; }
37762 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
37763 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
37764 CFLAGS="$SAVE_CFLAGS"
37768 # Find out which ABI we are using.
37769 echo 'int i;' > conftest.$ac_ext
37770 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
37771 (eval $ac_compile) 2>&5
37773 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
37774 test $ac_status = 0; }; then
37775 case `/usr/bin/file conftest.o` in
37777 case $lt_cv_prog_gnu_ld in
37781 LD="${LD-ld} -m elf_x86_64"
37784 LD="${LD-ld} -m elf64_sparc"
37787 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
37788 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
37793 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
37805 need_locks="$enable_libtool_lock"
37807 if test -n "$ac_tool_prefix"; then
37808 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
37809 set dummy ${ac_tool_prefix}mt; ac_word=$2
37810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
37811 $as_echo_n "checking for $ac_word... " >&6; }
37812 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
37813 $as_echo_n "(cached) " >&6
37815 if test -n "$MANIFEST_TOOL"; then
37816 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
37818 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
37819 for as_dir in $PATH
37822 test -z "$as_dir" && as_dir=.
37823 for ac_exec_ext in '' $ac_executable_extensions; do
37824 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
37825 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
37826 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
37835 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
37836 if test -n "$MANIFEST_TOOL"; then
37837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
37838 $as_echo "$MANIFEST_TOOL" >&6; }
37840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37841 $as_echo "no" >&6; }
37846 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
37847 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
37848 # Extract the first word of "mt", so it can be a program name with args.
37849 set dummy mt; ac_word=$2
37850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
37851 $as_echo_n "checking for $ac_word... " >&6; }
37852 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
37853 $as_echo_n "(cached) " >&6
37855 if test -n "$ac_ct_MANIFEST_TOOL"; then
37856 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
37858 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
37859 for as_dir in $PATH
37862 test -z "$as_dir" && as_dir=.
37863 for ac_exec_ext in '' $ac_executable_extensions; do
37864 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
37865 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
37866 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
37875 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
37876 if test -n "$ac_ct_MANIFEST_TOOL"; then
37877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
37878 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
37880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37881 $as_echo "no" >&6; }
37884 if test "x$ac_ct_MANIFEST_TOOL" = x; then
37887 case $cross_compiling:$ac_tool_warned in
37889 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
37890 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
37891 ac_tool_warned=yes ;;
37893 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
37896 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
37899 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
37900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
37901 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
37902 if ${lt_cv_path_mainfest_tool+:} false; then :
37903 $as_echo_n "(cached) " >&6
37905 lt_cv_path_mainfest_tool=no
37906 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
37907 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
37908 cat conftest.err >&5
37909 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
37910 lt_cv_path_mainfest_tool=yes
37914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
37915 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
37916 if test "x$lt_cv_path_mainfest_tool" != xyes; then
37926 rhapsody* | darwin*)
37927 if test -n "$ac_tool_prefix"; then
37928 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
37929 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
37930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
37931 $as_echo_n "checking for $ac_word... " >&6; }
37932 if ${ac_cv_prog_DSYMUTIL+:} false; then :
37933 $as_echo_n "(cached) " >&6
37935 if test -n "$DSYMUTIL"; then
37936 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
37938 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
37939 for as_dir in $PATH
37942 test -z "$as_dir" && as_dir=.
37943 for ac_exec_ext in '' $ac_executable_extensions; do
37944 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
37945 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
37946 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
37955 DSYMUTIL=$ac_cv_prog_DSYMUTIL
37956 if test -n "$DSYMUTIL"; then
37957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
37958 $as_echo "$DSYMUTIL" >&6; }
37960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37961 $as_echo "no" >&6; }
37966 if test -z "$ac_cv_prog_DSYMUTIL"; then
37967 ac_ct_DSYMUTIL=$DSYMUTIL
37968 # Extract the first word of "dsymutil", so it can be a program name with args.
37969 set dummy dsymutil; ac_word=$2
37970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
37971 $as_echo_n "checking for $ac_word... " >&6; }
37972 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
37973 $as_echo_n "(cached) " >&6
37975 if test -n "$ac_ct_DSYMUTIL"; then
37976 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
37978 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
37979 for as_dir in $PATH
37982 test -z "$as_dir" && as_dir=.
37983 for ac_exec_ext in '' $ac_executable_extensions; do
37984 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
37985 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
37986 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
37995 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
37996 if test -n "$ac_ct_DSYMUTIL"; then
37997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
37998 $as_echo "$ac_ct_DSYMUTIL" >&6; }
38000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38001 $as_echo "no" >&6; }
38004 if test "x$ac_ct_DSYMUTIL" = x; then
38007 case $cross_compiling:$ac_tool_warned in
38009 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
38010 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
38011 ac_tool_warned=yes ;;
38013 DSYMUTIL=$ac_ct_DSYMUTIL
38016 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
38019 if test -n "$ac_tool_prefix"; then
38020 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
38021 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
38022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
38023 $as_echo_n "checking for $ac_word... " >&6; }
38024 if ${ac_cv_prog_NMEDIT+:} false; then :
38025 $as_echo_n "(cached) " >&6
38027 if test -n "$NMEDIT"; then
38028 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
38030 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
38031 for as_dir in $PATH
38034 test -z "$as_dir" && as_dir=.
38035 for ac_exec_ext in '' $ac_executable_extensions; do
38036 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
38037 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
38038 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
38047 NMEDIT=$ac_cv_prog_NMEDIT
38048 if test -n "$NMEDIT"; then
38049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
38050 $as_echo "$NMEDIT" >&6; }
38052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38053 $as_echo "no" >&6; }
38058 if test -z "$ac_cv_prog_NMEDIT"; then
38059 ac_ct_NMEDIT=$NMEDIT
38060 # Extract the first word of "nmedit", so it can be a program name with args.
38061 set dummy nmedit; ac_word=$2
38062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
38063 $as_echo_n "checking for $ac_word... " >&6; }
38064 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
38065 $as_echo_n "(cached) " >&6
38067 if test -n "$ac_ct_NMEDIT"; then
38068 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
38070 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
38071 for as_dir in $PATH
38074 test -z "$as_dir" && as_dir=.
38075 for ac_exec_ext in '' $ac_executable_extensions; do
38076 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
38077 ac_cv_prog_ac_ct_NMEDIT="nmedit"
38078 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
38087 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
38088 if test -n "$ac_ct_NMEDIT"; then
38089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
38090 $as_echo "$ac_ct_NMEDIT" >&6; }
38092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38093 $as_echo "no" >&6; }
38096 if test "x$ac_ct_NMEDIT" = x; then
38099 case $cross_compiling:$ac_tool_warned in
38101 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
38102 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
38103 ac_tool_warned=yes ;;
38105 NMEDIT=$ac_ct_NMEDIT
38108 NMEDIT="$ac_cv_prog_NMEDIT"
38111 if test -n "$ac_tool_prefix"; then
38112 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
38113 set dummy ${ac_tool_prefix}lipo; ac_word=$2
38114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
38115 $as_echo_n "checking for $ac_word... " >&6; }
38116 if ${ac_cv_prog_LIPO+:} false; then :
38117 $as_echo_n "(cached) " >&6
38119 if test -n "$LIPO"; then
38120 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
38122 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
38123 for as_dir in $PATH
38126 test -z "$as_dir" && as_dir=.
38127 for ac_exec_ext in '' $ac_executable_extensions; do
38128 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
38129 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
38130 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
38139 LIPO=$ac_cv_prog_LIPO
38140 if test -n "$LIPO"; then
38141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
38142 $as_echo "$LIPO" >&6; }
38144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38145 $as_echo "no" >&6; }
38150 if test -z "$ac_cv_prog_LIPO"; then
38152 # Extract the first word of "lipo", so it can be a program name with args.
38153 set dummy lipo; ac_word=$2
38154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
38155 $as_echo_n "checking for $ac_word... " >&6; }
38156 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
38157 $as_echo_n "(cached) " >&6
38159 if test -n "$ac_ct_LIPO"; then
38160 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
38162 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
38163 for as_dir in $PATH
38166 test -z "$as_dir" && as_dir=.
38167 for ac_exec_ext in '' $ac_executable_extensions; do
38168 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
38169 ac_cv_prog_ac_ct_LIPO="lipo"
38170 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
38179 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
38180 if test -n "$ac_ct_LIPO"; then
38181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
38182 $as_echo "$ac_ct_LIPO" >&6; }
38184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38185 $as_echo "no" >&6; }
38188 if test "x$ac_ct_LIPO" = x; then
38191 case $cross_compiling:$ac_tool_warned in
38193 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
38194 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
38195 ac_tool_warned=yes ;;
38200 LIPO="$ac_cv_prog_LIPO"
38203 if test -n "$ac_tool_prefix"; then
38204 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
38205 set dummy ${ac_tool_prefix}otool; ac_word=$2
38206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
38207 $as_echo_n "checking for $ac_word... " >&6; }
38208 if ${ac_cv_prog_OTOOL+:} false; then :
38209 $as_echo_n "(cached) " >&6
38211 if test -n "$OTOOL"; then
38212 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
38214 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
38215 for as_dir in $PATH
38218 test -z "$as_dir" && as_dir=.
38219 for ac_exec_ext in '' $ac_executable_extensions; do
38220 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
38221 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
38222 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
38231 OTOOL=$ac_cv_prog_OTOOL
38232 if test -n "$OTOOL"; then
38233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
38234 $as_echo "$OTOOL" >&6; }
38236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38237 $as_echo "no" >&6; }
38242 if test -z "$ac_cv_prog_OTOOL"; then
38244 # Extract the first word of "otool", so it can be a program name with args.
38245 set dummy otool; ac_word=$2
38246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
38247 $as_echo_n "checking for $ac_word... " >&6; }
38248 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
38249 $as_echo_n "(cached) " >&6
38251 if test -n "$ac_ct_OTOOL"; then
38252 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
38254 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
38255 for as_dir in $PATH
38258 test -z "$as_dir" && as_dir=.
38259 for ac_exec_ext in '' $ac_executable_extensions; do
38260 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
38261 ac_cv_prog_ac_ct_OTOOL="otool"
38262 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
38271 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
38272 if test -n "$ac_ct_OTOOL"; then
38273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
38274 $as_echo "$ac_ct_OTOOL" >&6; }
38276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38277 $as_echo "no" >&6; }
38280 if test "x$ac_ct_OTOOL" = x; then
38283 case $cross_compiling:$ac_tool_warned in
38285 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
38286 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
38287 ac_tool_warned=yes ;;
38292 OTOOL="$ac_cv_prog_OTOOL"
38295 if test -n "$ac_tool_prefix"; then
38296 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
38297 set dummy ${ac_tool_prefix}otool64; ac_word=$2
38298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
38299 $as_echo_n "checking for $ac_word... " >&6; }
38300 if ${ac_cv_prog_OTOOL64+:} false; then :
38301 $as_echo_n "(cached) " >&6
38303 if test -n "$OTOOL64"; then
38304 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
38306 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
38307 for as_dir in $PATH
38310 test -z "$as_dir" && as_dir=.
38311 for ac_exec_ext in '' $ac_executable_extensions; do
38312 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
38313 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
38314 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
38323 OTOOL64=$ac_cv_prog_OTOOL64
38324 if test -n "$OTOOL64"; then
38325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
38326 $as_echo "$OTOOL64" >&6; }
38328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38329 $as_echo "no" >&6; }
38334 if test -z "$ac_cv_prog_OTOOL64"; then
38335 ac_ct_OTOOL64=$OTOOL64
38336 # Extract the first word of "otool64", so it can be a program name with args.
38337 set dummy otool64; ac_word=$2
38338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
38339 $as_echo_n "checking for $ac_word... " >&6; }
38340 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
38341 $as_echo_n "(cached) " >&6
38343 if test -n "$ac_ct_OTOOL64"; then
38344 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
38346 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
38347 for as_dir in $PATH
38350 test -z "$as_dir" && as_dir=.
38351 for ac_exec_ext in '' $ac_executable_extensions; do
38352 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
38353 ac_cv_prog_ac_ct_OTOOL64="otool64"
38354 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
38363 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
38364 if test -n "$ac_ct_OTOOL64"; then
38365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
38366 $as_echo "$ac_ct_OTOOL64" >&6; }
38368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38369 $as_echo "no" >&6; }
38372 if test "x$ac_ct_OTOOL64" = x; then
38375 case $cross_compiling:$ac_tool_warned in
38377 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
38378 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
38379 ac_tool_warned=yes ;;
38381 OTOOL64=$ac_ct_OTOOL64
38384 OTOOL64="$ac_cv_prog_OTOOL64"
38413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
38414 $as_echo_n "checking for -single_module linker flag... " >&6; }
38415 if ${lt_cv_apple_cc_single_mod+:} false; then :
38416 $as_echo_n "(cached) " >&6
38418 lt_cv_apple_cc_single_mod=no
38419 if test -z "${LT_MULTI_MODULE}"; then
38420 # By default we will add the -single_module flag. You can override
38421 # by either setting the environment variable LT_MULTI_MODULE
38422 # non-empty at configure time, or by adding -multi_module to the
38424 rm -rf libconftest.dylib*
38425 echo "int foo(void){return 1;}" > conftest.c
38426 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
38427 -dynamiclib -Wl,-single_module conftest.c" >&5
38428 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
38429 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
38431 # If there is a non-empty error log, and "single_module"
38432 # appears in it, assume the flag caused a linker warning
38433 if test -s conftest.err && $GREP single_module conftest.err; then
38434 cat conftest.err >&5
38435 # Otherwise, if the output was created with a 0 exit code from
38436 # the compiler, it worked.
38437 elif test -f libconftest.dylib && test $_lt_result -eq 0; then
38438 lt_cv_apple_cc_single_mod=yes
38440 cat conftest.err >&5
38442 rm -rf libconftest.dylib*
38446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
38447 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
38449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
38450 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
38451 if ${lt_cv_ld_exported_symbols_list+:} false; then :
38452 $as_echo_n "(cached) " >&6
38454 lt_cv_ld_exported_symbols_list=no
38455 save_LDFLAGS=$LDFLAGS
38456 echo "_main" > conftest.sym
38457 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
38458 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38459 /* end confdefs.h. */
38469 if ac_fn_c_try_link "$LINENO"; then :
38470 lt_cv_ld_exported_symbols_list=yes
38472 lt_cv_ld_exported_symbols_list=no
38474 rm -f core conftest.err conftest.$ac_objext \
38475 conftest$ac_exeext conftest.$ac_ext
38476 LDFLAGS="$save_LDFLAGS"
38479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
38480 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
38482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
38483 $as_echo_n "checking for -force_load linker flag... " >&6; }
38484 if ${lt_cv_ld_force_load+:} false; then :
38485 $as_echo_n "(cached) " >&6
38487 lt_cv_ld_force_load=no
38488 cat > conftest.c << _LT_EOF
38489 int forced_loaded() { return 2;}
38491 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
38492 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
38493 echo "$AR cru libconftest.a conftest.o" >&5
38494 $AR cru libconftest.a conftest.o 2>&5
38495 echo "$RANLIB libconftest.a" >&5
38496 $RANLIB libconftest.a 2>&5
38497 cat > conftest.c << _LT_EOF
38498 int main() { return 0;}
38500 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
38501 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
38503 if test -s conftest.err && $GREP force_load conftest.err; then
38504 cat conftest.err >&5
38505 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
38506 lt_cv_ld_force_load=yes
38508 cat conftest.err >&5
38510 rm -f conftest.err libconftest.a conftest conftest.c
38511 rm -rf conftest.dSYM
38514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
38515 $as_echo "$lt_cv_ld_force_load" >&6; }
38517 rhapsody* | darwin1.[012])
38518 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
38520 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
38521 darwin*) # darwin 5.x on
38522 # if running on 10.5 or later, the deployment target defaults
38523 # to the OS version, if on x86, and 10.4, the deployment
38524 # target defaults to 10.4. Don't you love it?
38525 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
38526 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
38527 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
38529 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
38531 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
38535 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
38536 _lt_dar_single_mod='$single_module'
38538 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
38539 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
38541 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
38543 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
38544 _lt_dsymutil='~$DSYMUTIL $lib || :'
38551 for ac_header in dlfcn.h
38553 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
38555 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
38556 cat >>confdefs.h <<_ACEOF
38557 #define HAVE_DLFCN_H 1
38566 func_stripname_cnf ()
38569 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
38570 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
38572 } # func_stripname_cnf
38579 # Check whether --enable-static was given.
38580 if test "${enable_static+set}" = set; then :
38581 enableval=$enable_static; p=${PACKAGE-default}
38583 yes) enable_static=yes ;;
38584 no) enable_static=no ;;
38587 # Look at the argument we got. We use all the common list separators.
38588 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
38589 for pkg in $enableval; do
38591 if test "X$pkg" = "X$p"; then
38614 enable_win32_dll=no
38617 # Check whether --enable-shared was given.
38618 if test "${enable_shared+set}" = set; then :
38619 enableval=$enable_shared; p=${PACKAGE-default}
38621 yes) enable_shared=yes ;;
38622 no) enable_shared=no ;;
38625 # Look at the argument we got. We use all the common list separators.
38626 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
38627 for pkg in $enableval; do
38629 if test "X$pkg" = "X$p"; then
38650 # Check whether --with-pic was given.
38651 if test "${with_pic+set}" = set; then :
38652 withval=$with_pic; lt_p=${PACKAGE-default}
38654 yes|no) pic_mode=$withval ;;
38657 # Look at the argument we got. We use all the common list separators.
38658 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
38659 for lt_pkg in $withval; do
38661 if test "X$lt_pkg" = "X$lt_p"; then
38673 test -z "$pic_mode" && pic_mode=default
38681 # Check whether --enable-fast-install was given.
38682 if test "${enable_fast_install+set}" = set; then :
38683 enableval=$enable_fast_install; p=${PACKAGE-default}
38685 yes) enable_fast_install=yes ;;
38686 no) enable_fast_install=no ;;
38688 enable_fast_install=no
38689 # Look at the argument we got. We use all the common list separators.
38690 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
38691 for pkg in $enableval; do
38693 if test "X$pkg" = "X$p"; then
38694 enable_fast_install=yes
38701 enable_fast_install=yes
38714 # This can be used to rebuild libtool when needed
38715 LIBTOOL_DEPS="$ltmain"
38717 # Always use our own libtool.
38718 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
38749 test -z "$LN_S" && LN_S="ln -s"
38764 if test -n "${ZSH_VERSION+set}" ; then
38765 setopt NO_GLOB_SUBST
38768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
38769 $as_echo_n "checking for objdir... " >&6; }
38770 if ${lt_cv_objdir+:} false; then :
38771 $as_echo_n "(cached) " >&6
38773 rm -f .libs 2>/dev/null
38774 mkdir .libs 2>/dev/null
38775 if test -d .libs; then
38778 # MS-DOS does not allow filenames that begin with a dot.
38781 rmdir .libs 2>/dev/null
38783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
38784 $as_echo "$lt_cv_objdir" >&6; }
38785 objdir=$lt_cv_objdir
38791 cat >>confdefs.h <<_ACEOF
38792 #define LT_OBJDIR "$lt_cv_objdir/"
38800 # AIX sometimes has problems with the GCC collect2 program. For some
38801 # reason, if we set the COLLECT_NAMES environment variable, the problems
38802 # vanish in a puff of smoke.
38803 if test "X${COLLECT_NAMES+set}" != Xset; then
38805 export COLLECT_NAMES
38810 # Global variables:
38812 can_build_shared=yes
38814 # All known linkers require a `.a' archive for static linking (except MSVC,
38815 # which needs '.lib').
38818 with_gnu_ld="$lt_cv_prog_gnu_ld"
38821 old_CFLAGS="$CFLAGS"
38823 # Set sane defaults for various variables
38824 test -z "$CC" && CC=cc
38825 test -z "$LTCC" && LTCC=$CC
38826 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
38827 test -z "$LD" && LD=ld
38828 test -z "$ac_objext" && ac_objext=o
38830 for cc_temp in $compiler""; do
38832 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
38833 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
38838 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
38841 # Only perform the check for file, if the check method requires it
38842 test -z "$MAGIC_CMD" && MAGIC_CMD=file
38843 case $deplibs_check_method in
38845 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
38846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
38847 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
38848 if ${lt_cv_path_MAGIC_CMD+:} false; then :
38849 $as_echo_n "(cached) " >&6
38853 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
38856 lt_save_MAGIC_CMD="$MAGIC_CMD"
38857 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
38858 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
38859 for ac_dir in $ac_dummy; do
38861 test -z "$ac_dir" && ac_dir=.
38862 if test -f $ac_dir/${ac_tool_prefix}file; then
38863 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
38864 if test -n "$file_magic_test_file"; then
38865 case $deplibs_check_method in
38867 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
38868 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
38869 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
38870 $EGREP "$file_magic_regex" > /dev/null; then
38875 *** Warning: the command libtool uses to detect shared libraries,
38876 *** $file_magic_cmd, produces output that libtool cannot recognize.
38877 *** The result is that libtool may fail to recognize shared libraries
38878 *** as such. This will affect the creation of libtool libraries that
38879 *** depend on shared libraries, but programs linked with such libtool
38880 *** libraries will work regardless of this problem. Nevertheless, you
38881 *** may want to report the problem to your system manager and/or to
38882 *** bug-libtool@gnu.org
38892 MAGIC_CMD="$lt_save_MAGIC_CMD"
38897 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
38898 if test -n "$MAGIC_CMD"; then
38899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
38900 $as_echo "$MAGIC_CMD" >&6; }
38902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38903 $as_echo "no" >&6; }
38910 if test -z "$lt_cv_path_MAGIC_CMD"; then
38911 if test -n "$ac_tool_prefix"; then
38912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
38913 $as_echo_n "checking for file... " >&6; }
38914 if ${lt_cv_path_MAGIC_CMD+:} false; then :
38915 $as_echo_n "(cached) " >&6
38919 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
38922 lt_save_MAGIC_CMD="$MAGIC_CMD"
38923 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
38924 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
38925 for ac_dir in $ac_dummy; do
38927 test -z "$ac_dir" && ac_dir=.
38928 if test -f $ac_dir/file; then
38929 lt_cv_path_MAGIC_CMD="$ac_dir/file"
38930 if test -n "$file_magic_test_file"; then
38931 case $deplibs_check_method in
38933 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
38934 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
38935 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
38936 $EGREP "$file_magic_regex" > /dev/null; then
38941 *** Warning: the command libtool uses to detect shared libraries,
38942 *** $file_magic_cmd, produces output that libtool cannot recognize.
38943 *** The result is that libtool may fail to recognize shared libraries
38944 *** as such. This will affect the creation of libtool libraries that
38945 *** depend on shared libraries, but programs linked with such libtool
38946 *** libraries will work regardless of this problem. Nevertheless, you
38947 *** may want to report the problem to your system manager and/or to
38948 *** bug-libtool@gnu.org
38958 MAGIC_CMD="$lt_save_MAGIC_CMD"
38963 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
38964 if test -n "$MAGIC_CMD"; then
38965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
38966 $as_echo "$MAGIC_CMD" >&6; }
38968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38969 $as_echo "no" >&6; }
38982 # Use C for the default configuration in the libtool script
38986 ac_cpp='$CPP $CPPFLAGS'
38987 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
38988 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
38989 ac_compiler_gnu=$ac_cv_c_compiler_gnu
38992 # Source file extension for C test sources.
38995 # Object file extension for compiled C test sources.
38999 # Code to be used in simple compile tests
39000 lt_simple_compile_test_code="int some_variable = 0;"
39002 # Code to be used in simple link tests
39003 lt_simple_link_test_code='int main(){return(0);}'
39011 # If no C compiler was specified, use CC.
39014 # If no C compiler flags were specified, use CFLAGS.
39015 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
39017 # Allow CC to be a program name with arguments.
39020 # Save the default compiler, since it gets overwritten when the other
39021 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
39022 compiler_DEFAULT=$CC
39024 # save warnings/boilerplate of simple test code
39025 ac_outfile=conftest.$ac_objext
39026 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
39027 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
39028 _lt_compiler_boilerplate=`cat conftest.err`
39031 ac_outfile=conftest.$ac_objext
39032 echo "$lt_simple_link_test_code" >conftest.$ac_ext
39033 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
39034 _lt_linker_boilerplate=`cat conftest.err`
39039 ## There is no encapsulation within the following macros, do not change
39040 ## the running order or otherwise move them around unless you know exactly
39041 ## what you are doing...
39042 if test -n "$compiler"; then
39044 lt_prog_compiler_no_builtin_flag=
39046 if test "$GCC" = yes; then
39047 case $cc_basename in
39049 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
39051 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
39054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
39055 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
39056 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
39057 $as_echo_n "(cached) " >&6
39059 lt_cv_prog_compiler_rtti_exceptions=no
39060 ac_outfile=conftest.$ac_objext
39061 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
39062 lt_compiler_flag="-fno-rtti -fno-exceptions"
39063 # Insert the option either (1) after the last *FLAGS variable, or
39064 # (2) before a word containing "conftest.", or (3) at the end.
39065 # Note that $ac_compile itself does not contain backslashes and begins
39066 # with a dollar sign (not a hyphen), so the echo should work correctly.
39067 # The option is referenced via a variable to avoid confusing sed.
39068 lt_compile=`echo "$ac_compile" | $SED \
39069 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
39070 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
39071 -e 's:$: $lt_compiler_flag:'`
39072 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
39073 (eval "$lt_compile" 2>conftest.err)
39075 cat conftest.err >&5
39076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39077 if (exit $ac_status) && test -s "$ac_outfile"; then
39078 # The compiler can only warn and ignore the option if not recognized
39079 # So say no if there are warnings other than the usual output.
39080 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
39081 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
39082 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
39083 lt_cv_prog_compiler_rtti_exceptions=yes
39089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
39090 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
39092 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
39093 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
39105 lt_prog_compiler_wl=
39106 lt_prog_compiler_pic=
39107 lt_prog_compiler_static=
39110 if test "$GCC" = yes; then
39111 lt_prog_compiler_wl='-Wl,'
39112 lt_prog_compiler_static='-static'
39116 # All AIX code is PIC.
39117 if test "$host_cpu" = ia64; then
39118 # AIX 5 now supports IA64 processor
39119 lt_prog_compiler_static='-Bstatic'
39126 # see comment about AmigaOS4 .so support
39127 lt_prog_compiler_pic='-fPIC'
39130 # FIXME: we need at least 68020 code to build shared libraries, but
39131 # adding the `-m68020' flag to GCC prevents building anything better,
39133 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
39138 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
39139 # PIC is the default for these OSes.
39142 mingw* | cygwin* | pw32* | os2* | cegcc*)
39143 # This hack is so that the source file can tell whether it is being
39144 # built for inclusion in a dll (and should export symbols for example).
39145 # Although the cygwin gcc ignores -fPIC, still need this for old-style
39146 # (--disable-auto-import) libraries
39147 lt_prog_compiler_pic='-DDLL_EXPORT'
39150 darwin* | rhapsody*)
39151 # PIC is the default on this platform
39152 # Common symbols not allowed in MH_DYLIB files
39153 lt_prog_compiler_pic='-fno-common'
39157 # PIC is the default for Haiku.
39158 # The "-static" flag exists, but is broken.
39159 lt_prog_compiler_static=
39163 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
39164 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
39165 # sets the default TLS model and affects inlining.
39171 lt_prog_compiler_pic='-fPIC'
39177 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
39178 # Instead, we relocate shared libraries at runtime.
39182 # Just because we use GCC doesn't mean we suddenly get shared libraries
39183 # on systems that don't support them.
39184 lt_prog_compiler_can_build_shared=no
39189 # QNX uses GNU C++, but need to define -shared option too, otherwise
39190 # it will coredump.
39191 lt_prog_compiler_pic='-fPIC -shared'
39195 if test -d /usr/nec; then
39196 lt_prog_compiler_pic=-Kconform_pic
39201 lt_prog_compiler_pic='-fPIC'
39205 case $cc_basename in
39206 nvcc*) # Cuda Compiler Driver 2.2
39207 lt_prog_compiler_wl='-Xlinker '
39208 if test -n "$lt_prog_compiler_pic"; then
39209 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
39214 # PORTME Check for flag to pass linker flags through the system compiler.
39217 lt_prog_compiler_wl='-Wl,'
39218 if test "$host_cpu" = ia64; then
39219 # AIX 5 now supports IA64 processor
39220 lt_prog_compiler_static='-Bstatic'
39222 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
39226 mingw* | cygwin* | pw32* | os2* | cegcc*)
39227 # This hack is so that the source file can tell whether it is being
39228 # built for inclusion in a dll (and should export symbols for example).
39229 lt_prog_compiler_pic='-DDLL_EXPORT'
39232 hpux9* | hpux10* | hpux11*)
39233 lt_prog_compiler_wl='-Wl,'
39234 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
39235 # not for PA HP-UX.
39241 lt_prog_compiler_pic='+Z'
39244 # Is there a better lt_prog_compiler_static that works with the bundled CC?
39245 lt_prog_compiler_static='${wl}-a ${wl}archive'
39248 irix5* | irix6* | nonstopux*)
39249 lt_prog_compiler_wl='-Wl,'
39250 # PIC (with -KPIC) is the default.
39251 lt_prog_compiler_static='-non_shared'
39254 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
39255 case $cc_basename in
39256 # old Intel for x86_64 which still supported -KPIC.
39258 lt_prog_compiler_wl='-Wl,'
39259 lt_prog_compiler_pic='-KPIC'
39260 lt_prog_compiler_static='-static'
39262 # icc used to be incompatible with GCC.
39263 # ICC 10 doesn't accept -KPIC any more.
39265 lt_prog_compiler_wl='-Wl,'
39266 lt_prog_compiler_pic='-fPIC'
39267 lt_prog_compiler_static='-static'
39269 # Lahey Fortran 8.1.
39271 lt_prog_compiler_wl='-Wl,'
39272 lt_prog_compiler_pic='--shared'
39273 lt_prog_compiler_static='--static'
39276 # NAG Fortran compiler
39277 lt_prog_compiler_wl='-Wl,-Wl,,'
39278 lt_prog_compiler_pic='-PIC'
39279 lt_prog_compiler_static='-Bstatic'
39281 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
39282 # Portland Group compilers (*not* the Pentium gcc compiler,
39283 # which looks to be a dead project)
39284 lt_prog_compiler_wl='-Wl,'
39285 lt_prog_compiler_pic='-fpic'
39286 lt_prog_compiler_static='-Bstatic'
39289 lt_prog_compiler_wl='-Wl,'
39290 # All Alpha code is PIC.
39291 lt_prog_compiler_static='-non_shared'
39293 xl* | bgxl* | bgf* | mpixl*)
39294 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
39295 lt_prog_compiler_wl='-Wl,'
39296 lt_prog_compiler_pic='-qpic'
39297 lt_prog_compiler_static='-qstaticlink'
39300 case `$CC -V 2>&1 | sed 5q` in
39301 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
39302 # Sun Fortran 8.3 passes all unrecognized flags to the linker
39303 lt_prog_compiler_pic='-KPIC'
39304 lt_prog_compiler_static='-Bstatic'
39305 lt_prog_compiler_wl=''
39307 *Sun\ F* | *Sun*Fortran*)
39308 lt_prog_compiler_pic='-KPIC'
39309 lt_prog_compiler_static='-Bstatic'
39310 lt_prog_compiler_wl='-Qoption ld '
39314 lt_prog_compiler_pic='-KPIC'
39315 lt_prog_compiler_static='-Bstatic'
39316 lt_prog_compiler_wl='-Wl,'
39318 *Intel*\ [CF]*Compiler*)
39319 lt_prog_compiler_wl='-Wl,'
39320 lt_prog_compiler_pic='-fPIC'
39321 lt_prog_compiler_static='-static'
39324 lt_prog_compiler_wl='-Wl,'
39325 lt_prog_compiler_pic='-fpic'
39326 lt_prog_compiler_static='-Bstatic'
39334 lt_prog_compiler_pic='-KPIC'
39335 lt_prog_compiler_static='-Bstatic'
39339 # QNX uses GNU C++, but need to define -shared option too, otherwise
39340 # it will coredump.
39341 lt_prog_compiler_pic='-fPIC -shared'
39344 osf3* | osf4* | osf5*)
39345 lt_prog_compiler_wl='-Wl,'
39346 # All OSF/1 code is PIC.
39347 lt_prog_compiler_static='-non_shared'
39351 lt_prog_compiler_static='-non_shared'
39355 lt_prog_compiler_pic='-KPIC'
39356 lt_prog_compiler_static='-Bstatic'
39357 case $cc_basename in
39358 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
39359 lt_prog_compiler_wl='-Qoption ld ';;
39361 lt_prog_compiler_wl='-Wl,';;
39366 lt_prog_compiler_wl='-Qoption ld '
39367 lt_prog_compiler_pic='-PIC'
39368 lt_prog_compiler_static='-Bstatic'
39371 sysv4 | sysv4.2uw2* | sysv4.3*)
39372 lt_prog_compiler_wl='-Wl,'
39373 lt_prog_compiler_pic='-KPIC'
39374 lt_prog_compiler_static='-Bstatic'
39378 if test -d /usr/nec ;then
39379 lt_prog_compiler_pic='-Kconform_pic'
39380 lt_prog_compiler_static='-Bstatic'
39384 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
39385 lt_prog_compiler_wl='-Wl,'
39386 lt_prog_compiler_pic='-KPIC'
39387 lt_prog_compiler_static='-Bstatic'
39391 lt_prog_compiler_wl='-Wl,'
39392 lt_prog_compiler_can_build_shared=no
39396 lt_prog_compiler_pic='-pic'
39397 lt_prog_compiler_static='-Bstatic'
39401 lt_prog_compiler_can_build_shared=no
39407 # For platforms which do not support PIC, -DPIC is meaningless:
39409 lt_prog_compiler_pic=
39412 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
39416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
39417 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
39418 if ${lt_cv_prog_compiler_pic+:} false; then :
39419 $as_echo_n "(cached) " >&6
39421 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
39423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
39424 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
39425 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
39428 # Check to make sure the PIC flag actually works.
39430 if test -n "$lt_prog_compiler_pic"; then
39431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
39432 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
39433 if ${lt_cv_prog_compiler_pic_works+:} false; then :
39434 $as_echo_n "(cached) " >&6
39436 lt_cv_prog_compiler_pic_works=no
39437 ac_outfile=conftest.$ac_objext
39438 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
39439 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
39440 # Insert the option either (1) after the last *FLAGS variable, or
39441 # (2) before a word containing "conftest.", or (3) at the end.
39442 # Note that $ac_compile itself does not contain backslashes and begins
39443 # with a dollar sign (not a hyphen), so the echo should work correctly.
39444 # The option is referenced via a variable to avoid confusing sed.
39445 lt_compile=`echo "$ac_compile" | $SED \
39446 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
39447 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
39448 -e 's:$: $lt_compiler_flag:'`
39449 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
39450 (eval "$lt_compile" 2>conftest.err)
39452 cat conftest.err >&5
39453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39454 if (exit $ac_status) && test -s "$ac_outfile"; then
39455 # The compiler can only warn and ignore the option if not recognized
39456 # So say no if there are warnings other than the usual output.
39457 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
39458 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
39459 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
39460 lt_cv_prog_compiler_pic_works=yes
39466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
39467 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
39469 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
39470 case $lt_prog_compiler_pic in
39472 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
39475 lt_prog_compiler_pic=
39476 lt_prog_compiler_can_build_shared=no
39492 # Check to make sure the static flag actually works.
39494 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
39495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
39496 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
39497 if ${lt_cv_prog_compiler_static_works+:} false; then :
39498 $as_echo_n "(cached) " >&6
39500 lt_cv_prog_compiler_static_works=no
39501 save_LDFLAGS="$LDFLAGS"
39502 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
39503 echo "$lt_simple_link_test_code" > conftest.$ac_ext
39504 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
39505 # The linker can only warn and ignore the option if not recognized
39506 # So say no if there are warnings
39507 if test -s conftest.err; then
39508 # Append any errors to the config.log.
39509 cat conftest.err 1>&5
39510 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
39511 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
39512 if diff conftest.exp conftest.er2 >/dev/null; then
39513 lt_cv_prog_compiler_static_works=yes
39516 lt_cv_prog_compiler_static_works=yes
39520 LDFLAGS="$save_LDFLAGS"
39523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
39524 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
39526 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
39529 lt_prog_compiler_static=
39538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
39539 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
39540 if ${lt_cv_prog_compiler_c_o+:} false; then :
39541 $as_echo_n "(cached) " >&6
39543 lt_cv_prog_compiler_c_o=no
39544 $RM -r conftest 2>/dev/null
39548 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
39550 lt_compiler_flag="-o out/conftest2.$ac_objext"
39551 # Insert the option either (1) after the last *FLAGS variable, or
39552 # (2) before a word containing "conftest.", or (3) at the end.
39553 # Note that $ac_compile itself does not contain backslashes and begins
39554 # with a dollar sign (not a hyphen), so the echo should work correctly.
39555 lt_compile=`echo "$ac_compile" | $SED \
39556 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
39557 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
39558 -e 's:$: $lt_compiler_flag:'`
39559 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
39560 (eval "$lt_compile" 2>out/conftest.err)
39562 cat out/conftest.err >&5
39563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39564 if (exit $ac_status) && test -s out/conftest2.$ac_objext
39566 # The compiler can only warn and ignore the option if not recognized
39567 # So say no if there are warnings
39568 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
39569 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
39570 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
39571 lt_cv_prog_compiler_c_o=yes
39576 # SGI C++ compiler will create directory out/ii_files/ for
39577 # template instantiation
39578 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
39579 $RM out/* && rmdir out
39585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
39586 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
39593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
39594 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
39595 if ${lt_cv_prog_compiler_c_o+:} false; then :
39596 $as_echo_n "(cached) " >&6
39598 lt_cv_prog_compiler_c_o=no
39599 $RM -r conftest 2>/dev/null
39603 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
39605 lt_compiler_flag="-o out/conftest2.$ac_objext"
39606 # Insert the option either (1) after the last *FLAGS variable, or
39607 # (2) before a word containing "conftest.", or (3) at the end.
39608 # Note that $ac_compile itself does not contain backslashes and begins
39609 # with a dollar sign (not a hyphen), so the echo should work correctly.
39610 lt_compile=`echo "$ac_compile" | $SED \
39611 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
39612 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
39613 -e 's:$: $lt_compiler_flag:'`
39614 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
39615 (eval "$lt_compile" 2>out/conftest.err)
39617 cat out/conftest.err >&5
39618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39619 if (exit $ac_status) && test -s out/conftest2.$ac_objext
39621 # The compiler can only warn and ignore the option if not recognized
39622 # So say no if there are warnings
39623 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
39624 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
39625 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
39626 lt_cv_prog_compiler_c_o=yes
39631 # SGI C++ compiler will create directory out/ii_files/ for
39632 # template instantiation
39633 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
39634 $RM out/* && rmdir out
39640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
39641 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
39646 hard_links="nottested"
39647 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
39648 # do not overwrite the value of need_locks provided by the user
39649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
39650 $as_echo_n "checking if we can lock with hard links... " >&6; }
39653 ln conftest.a conftest.b 2>/dev/null && hard_links=no
39655 ln conftest.a conftest.b 2>&5 || hard_links=no
39656 ln conftest.a conftest.b 2>/dev/null && hard_links=no
39657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
39658 $as_echo "$hard_links" >&6; }
39659 if test "$hard_links" = no; then
39660 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
39661 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
39673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
39674 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
39677 allow_undefined_flag=
39678 always_export_symbols=no
39680 archive_expsym_cmds=
39681 compiler_needs_object=no
39682 enable_shared_with_static_runtimes=no
39683 export_dynamic_flag_spec=
39684 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
39685 hardcode_automatic=no
39687 hardcode_direct_absolute=no
39688 hardcode_libdir_flag_spec=
39689 hardcode_libdir_separator=
39690 hardcode_minus_L=no
39691 hardcode_shlibpath_var=unsupported
39693 link_all_deplibs=unknown
39695 module_expsym_cmds=
39696 old_archive_from_new_cmds=
39697 old_archive_from_expsyms_cmds=
39698 thread_safe_flag_spec=
39699 whole_archive_flag_spec=
39700 # include_expsyms should be a list of space-separated symbols to be *always*
39701 # included in the symbol list
39703 # exclude_expsyms can be an extended regexp of symbols to exclude
39704 # it will be wrapped by ` (' and `)$', so one must not match beginning or
39705 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
39706 # as well as any symbol that contains `d'.
39707 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
39708 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
39709 # platforms (ab)use it in PIC code, but their linkers get confused if
39710 # the symbol is explicitly referenced. Since portable code cannot
39711 # rely on this symbol name, it's probably fine to never include it in
39712 # preloaded symbol tables.
39713 # Exclude shared library initialization/finalization symbols.
39714 extract_expsyms_cmds=
39717 cygwin* | mingw* | pw32* | cegcc*)
39718 # FIXME: the MSVC++ port hasn't been tested in a loooong time
39719 # When not using gcc, we currently assume that we are using
39720 # Microsoft Visual C++.
39721 if test "$GCC" != yes; then
39726 # we just hope/assume this is gcc and not c89 (= MSVC++)
39732 linux* | k*bsd*-gnu | gnu*)
39733 link_all_deplibs=no
39739 # On some targets, GNU ld is compatible enough with the native linker
39740 # that we're better off using the native interface for both.
39741 lt_use_gnu_ld_interface=no
39742 if test "$with_gnu_ld" = yes; then
39745 # The AIX port of GNU ld has always aspired to compatibility
39746 # with the native linker. However, as the warning in the GNU ld
39747 # block says, versions before 2.19.5* couldn't really create working
39748 # shared libraries, regardless of the interface used.
39749 case `$LD -v 2>&1` in
39750 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
39751 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
39752 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
39754 lt_use_gnu_ld_interface=yes
39759 lt_use_gnu_ld_interface=yes
39764 if test "$lt_use_gnu_ld_interface" = yes; then
39765 # If archive_cmds runs LD, not CC, wlarc should be empty
39768 # Set some defaults for GNU ld with shared library support. These
39769 # are reset later if shared libraries are not supported. Putting them
39770 # here allows them to be overridden if necessary.
39771 runpath_var=LD_RUN_PATH
39772 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
39773 export_dynamic_flag_spec='${wl}--export-dynamic'
39774 # ancient GNU ld didn't support --whole-archive et. al.
39775 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
39776 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
39778 whole_archive_flag_spec=
39780 supports_anon_versioning=no
39781 case `$LD -v 2>&1` in
39782 *GNU\ gold*) supports_anon_versioning=yes ;;
39783 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
39784 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
39785 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
39786 *\ 2.11.*) ;; # other 2.11 versions
39787 *) supports_anon_versioning=yes ;;
39790 # See if GNU ld supports shared libraries.
39793 # On AIX/PPC, the GNU linker is very broken
39794 if test "$host_cpu" != ia64; then
39798 *** Warning: the GNU linker, at least up to release 2.19, is reported
39799 *** to be unable to reliably create shared libraries on AIX.
39800 *** Therefore, libtool is disabling shared libraries support. If you
39801 *** really care for shared libraries, you may want to install binutils
39802 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
39803 *** You will then need to restart the configuration process.
39812 # see comment about AmigaOS4 .so support
39813 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
39814 archive_expsym_cmds=''
39817 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)'
39818 hardcode_libdir_flag_spec='-L$libdir'
39819 hardcode_minus_L=yes
39825 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
39826 allow_undefined_flag=unsupported
39827 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
39828 # support --undefined. This deserves some investigation. FIXME
39829 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
39835 cygwin* | mingw* | pw32* | cegcc*)
39836 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
39837 # as there is no search path for DLLs.
39838 hardcode_libdir_flag_spec='-L$libdir'
39839 export_dynamic_flag_spec='${wl}--export-all-symbols'
39840 allow_undefined_flag=unsupported
39841 always_export_symbols=no
39842 enable_shared_with_static_runtimes=yes
39843 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'
39844 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
39846 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
39847 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
39848 # If the export-symbols file already is a .def file (1st line
39849 # is EXPORTS), use it as is; otherwise, prepend...
39850 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
39851 cp $export_symbols $output_objdir/$soname.def;
39853 echo EXPORTS > $output_objdir/$soname.def;
39854 cat $export_symbols >> $output_objdir/$soname.def;
39856 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
39863 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
39864 link_all_deplibs=yes
39869 hardcode_shlibpath_var=no
39870 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
39871 export_dynamic_flag_spec='${wl}-E'
39872 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
39873 # Instead, shared libraries are loaded at an image base (0x10000000 by
39874 # default) and relocated if they conflict, which is a slow very memory
39875 # consuming and fragmenting process. To avoid this, we pick a random,
39876 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
39877 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
39878 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
39879 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'
39882 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
39884 if test "$host_os" = linux-dietlibc; then
39885 case $cc_basename in
39886 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
39889 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
39890 && test "$tmp_diet" = no
39892 tmp_addflag=' $pic_flag'
39893 tmp_sharedflag='-shared'
39894 case $cc_basename,$host_cpu in
39895 pgcc*) # Portland Group C compiler
39896 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'
39897 tmp_addflag=' $pic_flag'
39899 pgf77* | pgf90* | pgf95* | pgfortran*)
39900 # Portland Group f77 and f90 compilers
39901 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'
39902 tmp_addflag=' $pic_flag -Mnomain' ;;
39903 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
39904 tmp_addflag=' -i_dynamic' ;;
39905 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
39906 tmp_addflag=' -i_dynamic -nofor_main' ;;
39907 ifc* | ifort*) # Intel Fortran compiler
39908 tmp_addflag=' -nofor_main' ;;
39909 lf95*) # Lahey Fortran 8.1
39910 whole_archive_flag_spec=
39911 tmp_sharedflag='--shared' ;;
39912 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
39913 tmp_sharedflag='-qmkshrobj'
39915 nvcc*) # Cuda Compiler Driver 2.2
39916 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'
39917 compiler_needs_object=yes
39920 case `$CC -V 2>&1 | sed 5q` in
39921 *Sun\ C*) # Sun C 5.9
39922 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'
39923 compiler_needs_object=yes
39924 tmp_sharedflag='-G' ;;
39925 *Sun\ F*) # Sun Fortran 8.3
39926 tmp_sharedflag='-G' ;;
39928 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
39930 if test "x$supports_anon_versioning" = xyes; then
39931 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
39932 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
39933 echo "local: *; };" >> $output_objdir/$libname.ver~
39934 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
39937 case $cc_basename in
39938 xlf* | bgf* | bgxlf* | mpixlf*)
39939 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
39940 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
39941 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
39942 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
39943 if test "x$supports_anon_versioning" = xyes; then
39944 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
39945 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
39946 echo "local: *; };" >> $output_objdir/$libname.ver~
39947 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
39956 netbsd* | netbsdelf*-gnu)
39957 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
39958 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
39961 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
39962 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
39967 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
39971 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
39972 *** create shared libraries on Solaris systems. Therefore, libtool
39973 *** is disabling shared libraries support. We urge you to upgrade GNU
39974 *** binutils to release 2.9.1 or newer. Another option is to modify
39975 *** your PATH or compiler configuration so that the native linker is
39976 *** used, and then restart.
39979 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
39980 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
39981 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
39987 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
39988 case `$LD -v 2>&1` in
39989 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
39993 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
39994 *** reliably create shared libraries on SCO systems. Therefore, libtool
39995 *** is disabling shared libraries support. We urge you to upgrade GNU
39996 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
39997 *** your PATH or compiler configuration so that the native linker is
39998 *** used, and then restart.
40003 # For security reasons, it is highly recommended that you always
40004 # use absolute paths for naming shared libraries, and exclude the
40005 # DT_RUNPATH tag from executables and libraries. But doing so
40006 # requires that you compile everything twice, which is a pain.
40007 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
40008 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
40009 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
40010 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
40019 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
40021 hardcode_direct=yes
40022 hardcode_shlibpath_var=no
40026 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
40027 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
40028 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
40035 if test "$ld_shlibs" = no; then
40037 hardcode_libdir_flag_spec=
40038 export_dynamic_flag_spec=
40039 whole_archive_flag_spec=
40042 # PORTME fill in a description of your system's linker (not GNU ld)
40045 allow_undefined_flag=unsupported
40046 always_export_symbols=yes
40047 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'
40048 # Note: this linker hardcodes the directories in LIBPATH if there
40049 # are no directories specified by -L.
40050 hardcode_minus_L=yes
40051 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
40052 # Neither direct hardcoding nor static linking is supported with a
40054 hardcode_direct=unsupported
40059 if test "$host_cpu" = ia64; then
40060 # On IA64, the linker does run time linking by default, so we don't
40061 # have to do anything special.
40062 aix_use_runtimelinking=no
40063 exp_sym_flag='-Bexport'
40066 # If we're using GNU nm, then we don't want the "-C" option.
40067 # -C means demangle to AIX nm, but means don't demangle with GNU nm
40068 # Also, AIX nm treats weak defined symbols like other global
40069 # defined symbols, whereas GNU nm marks them as "W".
40070 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
40071 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'
40073 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'
40075 aix_use_runtimelinking=no
40077 # Test if we are trying to use run time linking or normal
40078 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
40079 # need to do runtime linking.
40080 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
40081 for ld_flag in $LDFLAGS; do
40082 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
40083 aix_use_runtimelinking=yes
40090 exp_sym_flag='-bexport'
40091 no_entry_flag='-bnoentry'
40094 # When large executables or shared objects are built, AIX ld can
40095 # have problems creating the table of contents. If linking a library
40096 # or program results in "error TOC overflow" add -mminimal-toc to
40097 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
40098 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
40101 hardcode_direct=yes
40102 hardcode_direct_absolute=yes
40103 hardcode_libdir_separator=':'
40104 link_all_deplibs=yes
40105 file_list_spec='${wl}-f,'
40107 if test "$GCC" = yes; then
40108 case $host_os in aix4.[012]|aix4.[012].*)
40109 # We only want to do this on AIX 4.2 and lower, the check
40110 # below for broken collect2 doesn't work under 4.3+
40111 collect2name=`${CC} -print-prog-name=collect2`
40112 if test -f "$collect2name" &&
40113 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
40115 # We have reworked collect2
40118 # We have old collect2
40119 hardcode_direct=unsupported
40120 # It fails to find uninstalled libraries when the uninstalled
40121 # path is not listed in the libpath. Setting hardcode_minus_L
40122 # to unsupported forces relinking
40123 hardcode_minus_L=yes
40124 hardcode_libdir_flag_spec='-L$libdir'
40125 hardcode_libdir_separator=
40129 shared_flag='-shared'
40130 if test "$aix_use_runtimelinking" = yes; then
40131 shared_flag="$shared_flag "'${wl}-G'
40133 link_all_deplibs=no
40136 if test "$host_cpu" = ia64; then
40137 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
40138 # chokes on -Wl,-G. The following line is correct:
40141 if test "$aix_use_runtimelinking" = yes; then
40142 shared_flag='${wl}-G'
40144 shared_flag='${wl}-bM:SRE'
40149 export_dynamic_flag_spec='${wl}-bexpall'
40150 # It seems that -bexpall does not export symbols beginning with
40151 # underscore (_), so it is better to generate a list of symbols to export.
40152 always_export_symbols=yes
40153 if test "$aix_use_runtimelinking" = yes; then
40154 # Warning - without using the other runtime loading flags (-brtl),
40155 # -berok will link without error, but may produce a broken library.
40156 allow_undefined_flag='-berok'
40157 # Determine the default libpath from the value encoded in an
40158 # empty executable.
40159 if test "${lt_cv_aix_libpath+set}" = set; then
40160 aix_libpath=$lt_cv_aix_libpath
40162 if ${lt_cv_aix_libpath_+:} false; then :
40163 $as_echo_n "(cached) " >&6
40165 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40166 /* end confdefs.h. */
40176 if ac_fn_c_try_link "$LINENO"; then :
40178 lt_aix_libpath_sed='
40179 /Import File Strings/,/^$/ {
40181 s/^0 *\([^ ]*\) *$/\1/
40185 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
40186 # Check for a 64-bit object if we didn't find anything.
40187 if test -z "$lt_cv_aix_libpath_"; then
40188 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
40191 rm -f core conftest.err conftest.$ac_objext \
40192 conftest$ac_exeext conftest.$ac_ext
40193 if test -z "$lt_cv_aix_libpath_"; then
40194 lt_cv_aix_libpath_="/usr/lib:/lib"
40199 aix_libpath=$lt_cv_aix_libpath_
40202 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
40203 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"
40205 if test "$host_cpu" = ia64; then
40206 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
40207 allow_undefined_flag="-z nodefs"
40208 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"
40210 # Determine the default libpath from the value encoded in an
40211 # empty executable.
40212 if test "${lt_cv_aix_libpath+set}" = set; then
40213 aix_libpath=$lt_cv_aix_libpath
40215 if ${lt_cv_aix_libpath_+:} false; then :
40216 $as_echo_n "(cached) " >&6
40218 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40219 /* end confdefs.h. */
40229 if ac_fn_c_try_link "$LINENO"; then :
40231 lt_aix_libpath_sed='
40232 /Import File Strings/,/^$/ {
40234 s/^0 *\([^ ]*\) *$/\1/
40238 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
40239 # Check for a 64-bit object if we didn't find anything.
40240 if test -z "$lt_cv_aix_libpath_"; then
40241 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
40244 rm -f core conftest.err conftest.$ac_objext \
40245 conftest$ac_exeext conftest.$ac_ext
40246 if test -z "$lt_cv_aix_libpath_"; then
40247 lt_cv_aix_libpath_="/usr/lib:/lib"
40252 aix_libpath=$lt_cv_aix_libpath_
40255 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
40256 # Warning - without using the other run time loading flags,
40257 # -berok will link without error, but may produce a broken library.
40258 no_undefined_flag=' ${wl}-bernotok'
40259 allow_undefined_flag=' ${wl}-berok'
40260 if test "$with_gnu_ld" = yes; then
40261 # We only use this code for GNU lds that support --whole-archive.
40262 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
40264 # Exported symbols can be pulled into shared objects from archives
40265 whole_archive_flag_spec='$convenience'
40267 archive_cmds_need_lc=yes
40268 # This is similar to how AIX traditionally builds its shared libraries.
40269 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'
40277 # see comment about AmigaOS4 .so support
40278 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
40279 archive_expsym_cmds=''
40282 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)'
40283 hardcode_libdir_flag_spec='-L$libdir'
40284 hardcode_minus_L=yes
40290 export_dynamic_flag_spec=-rdynamic
40293 cygwin* | mingw* | pw32* | cegcc*)
40294 # When not using gcc, we currently assume that we are using
40295 # Microsoft Visual C++.
40296 # hardcode_libdir_flag_spec is actually meaningless, as there is
40297 # no search path for DLLs.
40298 case $cc_basename in
40301 hardcode_libdir_flag_spec=' '
40302 allow_undefined_flag=unsupported
40303 always_export_symbols=yes
40305 # Tell ltmain to make .lib files, not .a files.
40307 # Tell ltmain to make .dll files, not .so files.
40309 # FIXME: Setting linknames here is a bad hack.
40310 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
40311 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
40312 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
40314 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
40316 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
40318 # The linker will not automatically build a static lib if we build a DLL.
40319 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
40320 enable_shared_with_static_runtimes=yes
40321 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
40322 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
40324 old_postinstall_cmds='chmod 644 $oldlib'
40325 postlink_cmds='lt_outputfile="@OUTPUT@"~
40326 lt_tool_outputfile="@TOOL_OUTPUT@"~
40327 case $lt_outputfile in
40330 lt_outputfile="$lt_outputfile.exe"
40331 lt_tool_outputfile="$lt_tool_outputfile.exe"
40334 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
40335 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
40336 $RM "$lt_outputfile.manifest";
40340 # Assume MSVC wrapper
40341 hardcode_libdir_flag_spec=' '
40342 allow_undefined_flag=unsupported
40343 # Tell ltmain to make .lib files, not .a files.
40345 # Tell ltmain to make .dll files, not .so files.
40347 # FIXME: Setting linknames here is a bad hack.
40348 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
40349 # The linker will automatically build a .lib file if we build a DLL.
40350 old_archive_from_new_cmds='true'
40351 # FIXME: Should let the user specify the lib program.
40352 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
40353 enable_shared_with_static_runtimes=yes
40358 darwin* | rhapsody*)
40361 archive_cmds_need_lc=no
40363 hardcode_automatic=yes
40364 hardcode_shlibpath_var=unsupported
40365 if test "$lt_cv_ld_force_load" = "yes"; then
40366 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\"`'
40369 whole_archive_flag_spec=''
40371 link_all_deplibs=yes
40372 allow_undefined_flag="$_lt_dar_allow_undefined"
40373 case $cc_basename in
40374 ifort*) _lt_dar_can_shared=yes ;;
40375 *) _lt_dar_can_shared=$GCC ;;
40377 if test "$_lt_dar_can_shared" = "yes"; then
40378 output_verbose_link_cmd=func_echo_all
40379 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
40380 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
40381 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}"
40382 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}"
40391 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
40392 hardcode_libdir_flag_spec='-L$libdir'
40393 hardcode_shlibpath_var=no
40396 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
40397 # support. Future versions do this automatically, but an explicit c++rt0.o
40398 # does not break anything, and helps significantly (at the cost of a little
40401 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
40402 hardcode_libdir_flag_spec='-R$libdir'
40403 hardcode_direct=yes
40404 hardcode_shlibpath_var=no
40407 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
40409 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
40410 hardcode_direct=yes
40411 hardcode_minus_L=yes
40412 hardcode_shlibpath_var=no
40415 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
40416 freebsd* | dragonfly*)
40417 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
40418 hardcode_libdir_flag_spec='-R$libdir'
40419 hardcode_direct=yes
40420 hardcode_shlibpath_var=no
40424 if test "$GCC" = yes; then
40425 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'
40427 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'
40429 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
40430 hardcode_libdir_separator=:
40431 hardcode_direct=yes
40433 # hardcode_minus_L: Not really in the search PATH,
40434 # but as the default location of the library.
40435 hardcode_minus_L=yes
40436 export_dynamic_flag_spec='${wl}-E'
40440 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
40441 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
40443 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
40445 if test "$with_gnu_ld" = no; then
40446 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
40447 hardcode_libdir_separator=:
40448 hardcode_direct=yes
40449 hardcode_direct_absolute=yes
40450 export_dynamic_flag_spec='${wl}-E'
40451 # hardcode_minus_L: Not really in the search PATH,
40452 # but as the default location of the library.
40453 hardcode_minus_L=yes
40458 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
40461 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
40464 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
40467 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
40473 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
40476 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
40480 # Older versions of the 11.00 compiler do not understand -b yet
40481 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
40482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
40483 $as_echo_n "checking if $CC understands -b... " >&6; }
40484 if ${lt_cv_prog_compiler__b+:} false; then :
40485 $as_echo_n "(cached) " >&6
40487 lt_cv_prog_compiler__b=no
40488 save_LDFLAGS="$LDFLAGS"
40489 LDFLAGS="$LDFLAGS -b"
40490 echo "$lt_simple_link_test_code" > conftest.$ac_ext
40491 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
40492 # The linker can only warn and ignore the option if not recognized
40493 # So say no if there are warnings
40494 if test -s conftest.err; then
40495 # Append any errors to the config.log.
40496 cat conftest.err 1>&5
40497 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
40498 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
40499 if diff conftest.exp conftest.er2 >/dev/null; then
40500 lt_cv_prog_compiler__b=yes
40503 lt_cv_prog_compiler__b=yes
40507 LDFLAGS="$save_LDFLAGS"
40510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
40511 $as_echo "$lt_cv_prog_compiler__b" >&6; }
40513 if test x"$lt_cv_prog_compiler__b" = xyes; then
40514 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
40516 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
40522 if test "$with_gnu_ld" = no; then
40523 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
40524 hardcode_libdir_separator=:
40529 hardcode_shlibpath_var=no
40532 hardcode_direct=yes
40533 hardcode_direct_absolute=yes
40534 export_dynamic_flag_spec='${wl}-E'
40536 # hardcode_minus_L: Not really in the search PATH,
40537 # but as the default location of the library.
40538 hardcode_minus_L=yes
40544 irix5* | irix6* | nonstopux*)
40545 if test "$GCC" = yes; then
40546 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'
40547 # Try to use the -exported_symbol ld option, if it does not
40548 # work, assume that -exports_file does not work either and
40549 # implicitly export all symbols.
40550 # This should be the same for all languages, so no per-tag cache variable.
40551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
40552 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
40553 if ${lt_cv_irix_exported_symbol+:} false; then :
40554 $as_echo_n "(cached) " >&6
40556 save_LDFLAGS="$LDFLAGS"
40557 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
40558 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40559 /* end confdefs.h. */
40560 int foo (void) { return 0; }
40562 if ac_fn_c_try_link "$LINENO"; then :
40563 lt_cv_irix_exported_symbol=yes
40565 lt_cv_irix_exported_symbol=no
40567 rm -f core conftest.err conftest.$ac_objext \
40568 conftest$ac_exeext conftest.$ac_ext
40569 LDFLAGS="$save_LDFLAGS"
40571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
40572 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
40573 if test "$lt_cv_irix_exported_symbol" = yes; then
40574 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'
40577 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'
40578 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'
40580 archive_cmds_need_lc='no'
40581 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
40582 hardcode_libdir_separator=:
40584 link_all_deplibs=yes
40587 netbsd* | netbsdelf*-gnu)
40588 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
40589 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
40591 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
40593 hardcode_libdir_flag_spec='-R$libdir'
40594 hardcode_direct=yes
40595 hardcode_shlibpath_var=no
40599 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
40600 hardcode_direct=yes
40601 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
40602 hardcode_libdir_separator=:
40603 hardcode_shlibpath_var=no
40610 if test -f /usr/libexec/ld.so; then
40611 hardcode_direct=yes
40612 hardcode_shlibpath_var=no
40613 hardcode_direct_absolute=yes
40614 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
40615 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
40616 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
40617 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
40618 export_dynamic_flag_spec='${wl}-E'
40621 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
40622 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
40623 hardcode_libdir_flag_spec='-R$libdir'
40626 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
40627 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
40637 hardcode_libdir_flag_spec='-L$libdir'
40638 hardcode_minus_L=yes
40639 allow_undefined_flag=unsupported
40640 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'
40641 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
40645 if test "$GCC" = yes; then
40646 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
40647 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'
40649 allow_undefined_flag=' -expect_unresolved \*'
40650 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'
40652 archive_cmds_need_lc='no'
40653 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
40654 hardcode_libdir_separator=:
40657 osf4* | osf5*) # as osf3* with the addition of -msym flag
40658 if test "$GCC" = yes; then
40659 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
40660 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'
40661 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
40663 allow_undefined_flag=' -expect_unresolved \*'
40664 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'
40665 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~
40666 $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'
40668 # Both c and cxx compiler support -rpath directly
40669 hardcode_libdir_flag_spec='-rpath $libdir'
40671 archive_cmds_need_lc='no'
40672 hardcode_libdir_separator=:
40676 no_undefined_flag=' -z defs'
40677 if test "$GCC" = yes; then
40679 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
40680 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
40681 $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'
40683 case `$CC -V 2>&1` in
40686 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
40687 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
40688 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
40692 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
40693 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
40694 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
40698 hardcode_libdir_flag_spec='-R$libdir'
40699 hardcode_shlibpath_var=no
40701 solaris2.[0-5] | solaris2.[0-5].*) ;;
40703 # The compiler driver will combine and reorder linker options,
40704 # but understands `-z linker_flag'. GCC discards it without `$wl',
40705 # but is careful enough not to reorder.
40706 # Supported since Solaris 2.6 (maybe 2.5.1?)
40707 if test "$GCC" = yes; then
40708 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
40710 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
40714 link_all_deplibs=yes
40718 if test "x$host_vendor" = xsequent; then
40719 # Use $CC to link under sequent, because it throws in some extra .o
40720 # files that make .init and .fini sections work.
40721 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
40723 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
40725 hardcode_libdir_flag_spec='-L$libdir'
40726 hardcode_direct=yes
40727 hardcode_minus_L=yes
40728 hardcode_shlibpath_var=no
40732 case $host_vendor in
40734 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
40735 hardcode_direct=yes # is this really true???
40738 ## LD is ld it makes a PLAMLIB
40739 ## CC just makes a GrossModule.
40740 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
40741 reload_cmds='$CC -r -o $output$reload_objs'
40745 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
40746 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
40749 runpath_var='LD_RUN_PATH'
40750 hardcode_shlibpath_var=no
40754 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
40755 hardcode_shlibpath_var=no
40756 export_dynamic_flag_spec='-Bexport'
40760 if test -d /usr/nec; then
40761 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
40762 hardcode_shlibpath_var=no
40763 runpath_var=LD_RUN_PATH
40764 hardcode_runpath_var=yes
40769 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
40770 no_undefined_flag='${wl}-z,text'
40771 archive_cmds_need_lc=no
40772 hardcode_shlibpath_var=no
40773 runpath_var='LD_RUN_PATH'
40775 if test "$GCC" = yes; then
40776 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
40777 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
40779 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
40780 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
40784 sysv5* | sco3.2v5* | sco5v6*)
40785 # Note: We can NOT use -z defs as we might desire, because we do not
40786 # link with -lc, and that would cause any symbols used from libc to
40787 # always be unresolved, which means just about no library would
40788 # ever link correctly. If we're not using GNU ld we use -z text
40789 # though, which does catch some bad symbols but isn't as heavy-handed
40791 no_undefined_flag='${wl}-z,text'
40792 allow_undefined_flag='${wl}-z,nodefs'
40793 archive_cmds_need_lc=no
40794 hardcode_shlibpath_var=no
40795 hardcode_libdir_flag_spec='${wl}-R,$libdir'
40796 hardcode_libdir_separator=':'
40797 link_all_deplibs=yes
40798 export_dynamic_flag_spec='${wl}-Bexport'
40799 runpath_var='LD_RUN_PATH'
40801 if test "$GCC" = yes; then
40802 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
40803 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
40805 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
40806 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
40811 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
40812 hardcode_libdir_flag_spec='-L$libdir'
40813 hardcode_shlibpath_var=no
40821 if test x$host_vendor = xsni; then
40823 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
40824 export_dynamic_flag_spec='${wl}-Blargedynsym'
40830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
40831 $as_echo "$ld_shlibs" >&6; }
40832 test "$ld_shlibs" = no && can_build_shared=no
40834 with_gnu_ld=$with_gnu_ld
40851 # Do we need to explicitly link libc?
40853 case "x$archive_cmds_need_lc" in
40855 # Assume -lc should be added
40856 archive_cmds_need_lc=yes
40858 if test "$enable_shared" = yes && test "$GCC" = yes; then
40859 case $archive_cmds in
40861 # FIXME: we may have to deal with multi-command sequences.
40864 # Test whether the compiler implicitly links with -lc since on some
40865 # systems, -lgcc has to come before -lc. If gcc already passes -lc
40866 # to ld, don't add -lc before -lgcc.
40867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
40868 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
40869 if ${lt_cv_archive_cmds_need_lc+:} false; then :
40870 $as_echo_n "(cached) " >&6
40873 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
40875 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
40876 (eval $ac_compile) 2>&5
40878 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
40879 test $ac_status = 0; } 2>conftest.err; then
40882 libobjs=conftest.$ac_objext
40884 wl=$lt_prog_compiler_wl
40885 pic_flag=$lt_prog_compiler_pic
40891 lt_save_allow_undefined_flag=$allow_undefined_flag
40892 allow_undefined_flag=
40893 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
40894 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
40896 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
40897 test $ac_status = 0; }
40899 lt_cv_archive_cmds_need_lc=no
40901 lt_cv_archive_cmds_need_lc=yes
40903 allow_undefined_flag=$lt_save_allow_undefined_flag
40905 cat conftest.err 1>&5
40910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
40911 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
40912 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
41070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
41071 $as_echo_n "checking dynamic linker characteristics... " >&6; }
41073 if test "$GCC" = yes; then
41075 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
41076 *) lt_awk_arg="/^libraries:/" ;;
41079 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
41080 *) lt_sed_strip_eq="s,=/,/,g" ;;
41082 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
41083 case $lt_search_path_spec in
41085 # if the path contains ";" then we assume it to be the separator
41086 # otherwise default to the standard path separator (i.e. ":") - it is
41087 # assumed that no part of a normal pathname contains ";" but that should
41088 # okay in the real world where ";" in dirpaths is itself problematic.
41089 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
41092 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
41095 # Ok, now we have the path, separated by spaces, we can step through it
41096 # and add multilib dir if necessary.
41097 lt_tmp_lt_search_path_spec=
41098 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
41099 for lt_sys_path in $lt_search_path_spec; do
41100 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
41101 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
41103 test -d "$lt_sys_path" && \
41104 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
41107 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
41108 BEGIN {RS=" "; FS="/|\n";} {
41111 for (lt_i = NF; lt_i > 0; lt_i--) {
41112 if ($lt_i != "" && $lt_i != ".") {
41113 if ($lt_i == "..") {
41116 if (lt_count == 0) {
41117 lt_foo="/" $lt_i lt_foo;
41124 if (lt_foo != "") { lt_freq[lt_foo]++; }
41125 if (lt_freq[lt_foo] == 1) { print lt_foo; }
41127 # AWK program above erroneously prepends '/' to C:/dos/paths
41130 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
41131 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
41133 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
41135 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
41137 library_names_spec=
41138 libname_spec='lib$name'
41142 postuninstall_cmds=
41146 shlibpath_overrides_runpath=unknown
41148 dynamic_linker="$host_os ld.so"
41149 sys_lib_dlsearch_path_spec="/lib /usr/lib"
41150 need_lib_prefix=unknown
41151 hardcode_into_libs=no
41153 # when you set need_version to no, make sure it does not cause -set_version
41154 # flags to be left without arguments
41155 need_version=unknown
41159 version_type=linux # correct to gnu/linux during the next big refactor
41160 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
41161 shlibpath_var=LIBPATH
41163 # AIX 3 has no versioning support, so we append a major version to the name.
41164 soname_spec='${libname}${release}${shared_ext}$major'
41168 version_type=linux # correct to gnu/linux during the next big refactor
41171 hardcode_into_libs=yes
41172 if test "$host_cpu" = ia64; then
41173 # AIX 5 supports IA64
41174 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
41175 shlibpath_var=LD_LIBRARY_PATH
41177 # With GCC up to 2.95.x, collect2 would create an import file
41178 # for dependence libraries. The import file would start with
41179 # the line `#! .'. This would cause the generated library to
41180 # depend on `.', always an invalid library. This was fixed in
41181 # development snapshots of GCC prior to 3.0.
41183 aix4 | aix4.[01] | aix4.[01].*)
41184 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
41186 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
41189 can_build_shared=no
41193 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
41194 # soname into executable. Probably we can add versioning support to
41195 # collect2, so additional links can be useful in future.
41196 if test "$aix_use_runtimelinking" = yes; then
41197 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
41198 # instead of lib<name>.a to let people know that these are not
41199 # typical AIX shared libraries.
41200 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
41202 # We preserve .a as extension for shared libraries through AIX4.2
41203 # and later when we are not doing run time linking.
41204 library_names_spec='${libname}${release}.a $libname.a'
41205 soname_spec='${libname}${release}${shared_ext}$major'
41207 shlibpath_var=LIBPATH
41214 # Since July 2007 AmigaOS4 officially supports .so libraries.
41215 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
41216 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
41219 library_names_spec='$libname.ixlibrary $libname.a'
41220 # Create ${libname}_ixlibrary.a entries in /sys/libs.
41221 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'
41227 library_names_spec='${libname}${shared_ext}'
41228 dynamic_linker="$host_os ld.so"
41229 shlibpath_var=LIBRARY_PATH
41233 version_type=linux # correct to gnu/linux during the next big refactor
41235 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
41236 soname_spec='${libname}${release}${shared_ext}$major'
41237 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
41238 shlibpath_var=LD_LIBRARY_PATH
41239 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
41240 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
41241 # the default ld.so.conf also contains /usr/contrib/lib and
41242 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
41243 # libtool to hard-code these into programs
41246 cygwin* | mingw* | pw32* | cegcc*)
41247 version_type=windows
41252 case $GCC,$cc_basename in
41255 library_names_spec='$libname.dll.a'
41256 # DLL is installed to $(libdir)/../bin by postinstall_cmds
41257 postinstall_cmds='base_file=`basename \${file}`~
41258 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
41259 dldir=$destdir/`dirname \$dlpath`~
41260 test -d \$dldir || mkdir -p \$dldir~
41261 $install_prog $dir/$dlname \$dldir/$dlname~
41262 chmod a+x \$dldir/$dlname~
41263 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
41264 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
41266 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
41267 dlpath=$dir/\$dldll~
41269 shlibpath_overrides_runpath=yes
41273 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
41274 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
41276 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
41279 # MinGW DLLs use traditional 'lib' prefix
41280 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
41283 # pw32 DLLs use 'pw' prefix rather than 'lib'
41284 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
41287 dynamic_linker='Win32 ld.exe'
41292 libname_spec='$name'
41293 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
41294 library_names_spec='${libname}.dll.lib'
41298 sys_lib_search_path_spec=
41301 for lt_path in $LIB
41304 # Let DOS variable expansion print the short 8.3 style file name.
41305 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
41306 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
41309 # Convert to MSYS style.
41310 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
41313 # Convert to unix form, then to dos form, then back to unix form
41314 # but this time dos style (no spaces!) so that the unix form looks
41315 # like /cygdrive/c/PROGRA~1:/cygdr...
41316 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
41317 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
41318 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
41321 sys_lib_search_path_spec="$LIB"
41322 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
41323 # It is most probably a Windows format PATH.
41324 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
41326 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
41328 # FIXME: find the short name or the path components, as spaces are
41329 # common. (e.g. "Program Files" -> "PROGRA~1")
41333 # DLL is installed to $(libdir)/../bin by postinstall_cmds
41334 postinstall_cmds='base_file=`basename \${file}`~
41335 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
41336 dldir=$destdir/`dirname \$dlpath`~
41337 test -d \$dldir || mkdir -p \$dldir~
41338 $install_prog $dir/$dlname \$dldir/$dlname'
41339 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
41340 dlpath=$dir/\$dldll~
41342 shlibpath_overrides_runpath=yes
41343 dynamic_linker='Win32 link.exe'
41347 # Assume MSVC wrapper
41348 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
41349 dynamic_linker='Win32 ld.exe'
41352 # FIXME: first we should search . and the directory the executable is in
41356 darwin* | rhapsody*)
41357 dynamic_linker="$host_os dyld"
41358 version_type=darwin
41361 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
41362 soname_spec='${libname}${release}${major}$shared_ext'
41363 shlibpath_overrides_runpath=yes
41364 shlibpath_var=DYLD_LIBRARY_PATH
41365 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
41367 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
41368 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
41372 version_type=linux # correct to gnu/linux during the next big refactor
41375 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
41376 soname_spec='${libname}${release}${shared_ext}$major'
41377 shlibpath_var=LD_LIBRARY_PATH
41380 freebsd* | dragonfly*)
41381 # DragonFly does not have aout. When/if they implement a new
41382 # versioning mechanism, adjust this.
41383 if test -x /usr/bin/objformat; then
41384 objformat=`/usr/bin/objformat`
41387 freebsd[23].*) objformat=aout ;;
41388 *) objformat=elf ;;
41391 version_type=freebsd-$objformat
41392 case $version_type in
41394 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
41399 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
41403 shlibpath_var=LD_LIBRARY_PATH
41406 shlibpath_overrides_runpath=yes
41408 freebsd3.[01]* | freebsdelf3.[01]*)
41409 shlibpath_overrides_runpath=yes
41410 hardcode_into_libs=yes
41412 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
41413 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
41414 shlibpath_overrides_runpath=no
41415 hardcode_into_libs=yes
41417 *) # from 4.6 on, and DragonFly
41418 shlibpath_overrides_runpath=yes
41419 hardcode_into_libs=yes
41425 version_type=linux # correct to gnu/linux during the next big refactor
41428 dynamic_linker="$host_os runtime_loader"
41429 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
41430 soname_spec='${libname}${release}${shared_ext}$major'
41431 shlibpath_var=LIBRARY_PATH
41432 shlibpath_overrides_runpath=yes
41433 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
41434 hardcode_into_libs=yes
41437 hpux9* | hpux10* | hpux11*)
41438 # Give a soname corresponding to the major version so that dld.sl refuses to
41439 # link against other versions.
41446 hardcode_into_libs=yes
41447 dynamic_linker="$host_os dld.so"
41448 shlibpath_var=LD_LIBRARY_PATH
41449 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
41450 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
41451 soname_spec='${libname}${release}${shared_ext}$major'
41452 if test "X$HPUX_IA64_MODE" = X32; then
41453 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
41455 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
41457 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
41461 hardcode_into_libs=yes
41462 dynamic_linker="$host_os dld.sl"
41463 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
41464 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
41465 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
41466 soname_spec='${libname}${release}${shared_ext}$major'
41467 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
41468 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
41472 dynamic_linker="$host_os dld.sl"
41473 shlibpath_var=SHLIB_PATH
41474 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
41475 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
41476 soname_spec='${libname}${release}${shared_ext}$major'
41479 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
41480 postinstall_cmds='chmod 555 $lib'
41481 # or fails outright, so override atomically:
41482 install_override_mode=555
41486 version_type=linux # correct to gnu/linux during the next big refactor
41489 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
41490 soname_spec='${libname}${release}${shared_ext}$major'
41491 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
41492 shlibpath_var=LD_LIBRARY_PATH
41493 shlibpath_overrides_runpath=no
41494 hardcode_into_libs=yes
41497 irix5* | irix6* | nonstopux*)
41499 nonstopux*) version_type=nonstopux ;;
41501 if test "$lt_cv_prog_gnu_ld" = yes; then
41502 version_type=linux # correct to gnu/linux during the next big refactor
41509 soname_spec='${libname}${release}${shared_ext}$major'
41510 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
41512 irix5* | nonstopux*)
41513 libsuff= shlibsuff=
41516 case $LD in # libtool.m4 will add one of these switches to LD
41517 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
41518 libsuff= shlibsuff= libmagic=32-bit;;
41519 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
41520 libsuff=32 shlibsuff=N32 libmagic=N32;;
41521 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
41522 libsuff=64 shlibsuff=64 libmagic=64-bit;;
41523 *) libsuff= shlibsuff= libmagic=never-match;;
41527 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
41528 shlibpath_overrides_runpath=no
41529 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
41530 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
41531 hardcode_into_libs=yes
41534 # No shared lib support for Linux oldld, aout, or coff.
41535 linux*oldld* | linux*aout* | linux*coff*)
41539 # This must be glibc/ELF.
41540 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
41541 version_type=linux # correct to gnu/linux during the next big refactor
41544 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
41545 soname_spec='${libname}${release}${shared_ext}$major'
41546 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
41547 shlibpath_var=LD_LIBRARY_PATH
41548 shlibpath_overrides_runpath=no
41550 # Some binutils ld are patched to set DT_RUNPATH
41551 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
41552 $as_echo_n "(cached) " >&6
41554 lt_cv_shlibpath_overrides_runpath=no
41555 save_LDFLAGS=$LDFLAGS
41556 save_libdir=$libdir
41557 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
41558 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
41559 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41560 /* end confdefs.h. */
41570 if ac_fn_c_try_link "$LINENO"; then :
41571 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
41572 lt_cv_shlibpath_overrides_runpath=yes
41575 rm -f core conftest.err conftest.$ac_objext \
41576 conftest$ac_exeext conftest.$ac_ext
41577 LDFLAGS=$save_LDFLAGS
41578 libdir=$save_libdir
41582 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
41584 # This implies no fast_install, which is unacceptable.
41585 # Some rework will be needed to allow for fast_install
41586 # before this can be enabled.
41587 hardcode_into_libs=yes
41589 # Append ld.so.conf contents to the search path
41590 if test -f /etc/ld.so.conf; then
41591 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' ' '`
41592 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
41595 # We used to test for /lib/ld.so.1 and disable shared libraries on
41596 # powerpc, because MkLinux only supported shared libraries with the
41597 # GNU dynamic linker. Since this was broken with cross compilers,
41598 # most powerpc-linux boxes support dynamic linking these days and
41599 # people can always --disable-shared, the test was removed, and we
41600 # assume the GNU/Linux dynamic linker is in use.
41601 dynamic_linker='GNU/Linux ld.so'
41608 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
41609 soname_spec='${libname}${release}${shared_ext}$major'
41610 shlibpath_var=LD_LIBRARY_PATH
41611 shlibpath_overrides_runpath=no
41612 hardcode_into_libs=yes
41613 dynamic_linker='NetBSD ld.elf_so'
41620 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
41621 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
41622 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
41623 dynamic_linker='NetBSD (a.out) ld.so'
41625 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
41626 soname_spec='${libname}${release}${shared_ext}$major'
41627 dynamic_linker='NetBSD ld.elf_so'
41629 shlibpath_var=LD_LIBRARY_PATH
41630 shlibpath_overrides_runpath=yes
41631 hardcode_into_libs=yes
41635 version_type=linux # correct to gnu/linux during the next big refactor
41636 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
41637 shlibpath_var=LD_LIBRARY_PATH
41638 shlibpath_overrides_runpath=yes
41645 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
41646 soname_spec='${libname}${release}${shared_ext}$major'
41647 shlibpath_var=LD_LIBRARY_PATH
41648 shlibpath_overrides_runpath=no
41649 hardcode_into_libs=yes
41650 dynamic_linker='ldqnx.so'
41655 sys_lib_dlsearch_path_spec="/usr/lib"
41657 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
41659 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
41660 *) need_version=no ;;
41662 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
41663 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
41664 shlibpath_var=LD_LIBRARY_PATH
41665 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
41667 openbsd2.[89] | openbsd2.[89].*)
41668 shlibpath_overrides_runpath=no
41671 shlibpath_overrides_runpath=yes
41675 shlibpath_overrides_runpath=yes
41680 libname_spec='$name'
41683 library_names_spec='$libname${shared_ext} $libname.a'
41684 dynamic_linker='OS/2 ld.exe'
41685 shlibpath_var=LIBPATH
41688 osf3* | osf4* | osf5*)
41692 soname_spec='${libname}${release}${shared_ext}$major'
41693 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
41694 shlibpath_var=LD_LIBRARY_PATH
41695 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
41696 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
41704 version_type=linux # correct to gnu/linux during the next big refactor
41707 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
41708 soname_spec='${libname}${release}${shared_ext}$major'
41709 shlibpath_var=LD_LIBRARY_PATH
41710 shlibpath_overrides_runpath=yes
41711 hardcode_into_libs=yes
41712 # ldd complains unless libraries are executable
41713 postinstall_cmds='chmod +x $lib'
41718 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
41719 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
41720 shlibpath_var=LD_LIBRARY_PATH
41721 shlibpath_overrides_runpath=yes
41722 if test "$with_gnu_ld" = yes; then
41729 version_type=linux # correct to gnu/linux during the next big refactor
41730 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
41731 soname_spec='${libname}${release}${shared_ext}$major'
41732 shlibpath_var=LD_LIBRARY_PATH
41733 case $host_vendor in
41735 shlibpath_overrides_runpath=no
41737 runpath_var=LD_RUN_PATH
41745 shlibpath_overrides_runpath=no
41746 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
41752 if test -d /usr/nec ;then
41753 version_type=linux # correct to gnu/linux during the next big refactor
41754 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
41755 soname_spec='$libname${shared_ext}.$major'
41756 shlibpath_var=LD_LIBRARY_PATH
41760 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
41761 version_type=freebsd-elf
41764 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
41765 soname_spec='${libname}${release}${shared_ext}$major'
41766 shlibpath_var=LD_LIBRARY_PATH
41767 shlibpath_overrides_runpath=yes
41768 hardcode_into_libs=yes
41769 if test "$with_gnu_ld" = yes; then
41770 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
41772 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
41775 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
41779 sys_lib_dlsearch_path_spec='/usr/lib'
41783 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
41784 version_type=linux # correct to gnu/linux during the next big refactor
41787 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
41788 shlibpath_var=LD_LIBRARY_PATH
41789 shlibpath_overrides_runpath=no
41790 hardcode_into_libs=yes
41794 version_type=linux # correct to gnu/linux during the next big refactor
41795 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
41796 soname_spec='${libname}${release}${shared_ext}$major'
41797 shlibpath_var=LD_LIBRARY_PATH
41804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
41805 $as_echo "$dynamic_linker" >&6; }
41806 test "$dynamic_linker" = no && can_build_shared=no
41808 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
41809 if test "$GCC" = yes; then
41810 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
41813 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
41814 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
41816 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
41817 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
41911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
41912 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
41914 if test -n "$hardcode_libdir_flag_spec" ||
41915 test -n "$runpath_var" ||
41916 test "X$hardcode_automatic" = "Xyes" ; then
41918 # We can hardcode non-existent directories.
41919 if test "$hardcode_direct" != no &&
41920 # If the only mechanism to avoid hardcoding is shlibpath_var, we
41921 # have to relink, otherwise we might link with an installed library
41922 # when we should be linking with a yet-to-be-installed one
41923 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
41924 test "$hardcode_minus_L" != no; then
41925 # Linking always hardcodes the temporary library directory.
41926 hardcode_action=relink
41928 # We can link without hardcoding, and we can hardcode nonexisting dirs.
41929 hardcode_action=immediate
41932 # We cannot hardcode anything, or else we can only hardcode existing
41934 hardcode_action=unsupported
41936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
41937 $as_echo "$hardcode_action" >&6; }
41939 if test "$hardcode_action" = relink ||
41940 test "$inherit_rpath" = yes; then
41941 # Fast installation is not supported
41942 enable_fast_install=no
41943 elif test "$shlibpath_overrides_runpath" = yes ||
41944 test "$enable_shared" = no; then
41945 # Fast installation is not necessary
41946 enable_fast_install=needless
41954 if test "x$enable_dlopen" != xyes; then
41955 enable_dlopen=unknown
41956 enable_dlopen_self=unknown
41957 enable_dlopen_self_static=unknown
41964 lt_cv_dlopen="load_add_on"
41966 lt_cv_dlopen_self=yes
41969 mingw* | pw32* | cegcc*)
41970 lt_cv_dlopen="LoadLibrary"
41975 lt_cv_dlopen="dlopen"
41980 # if libdl is installed we need to link against it
41981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
41982 $as_echo_n "checking for dlopen in -ldl... " >&6; }
41983 if ${ac_cv_lib_dl_dlopen+:} false; then :
41984 $as_echo_n "(cached) " >&6
41986 ac_check_lib_save_LIBS=$LIBS
41988 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41989 /* end confdefs.h. */
41991 /* Override any GCC internal prototype to avoid an error.
41992 Use char because int might match the return type of a GCC
41993 builtin and then its argument prototype would still apply. */
42006 if ac_fn_c_try_link "$LINENO"; then :
42007 ac_cv_lib_dl_dlopen=yes
42009 ac_cv_lib_dl_dlopen=no
42011 rm -f core conftest.err conftest.$ac_objext \
42012 conftest$ac_exeext conftest.$ac_ext
42013 LIBS=$ac_check_lib_save_LIBS
42015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
42016 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
42017 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
42018 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
42021 lt_cv_dlopen="dyld"
42023 lt_cv_dlopen_self=yes
42030 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
42031 if test "x$ac_cv_func_shl_load" = xyes; then :
42032 lt_cv_dlopen="shl_load"
42034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
42035 $as_echo_n "checking for shl_load in -ldld... " >&6; }
42036 if ${ac_cv_lib_dld_shl_load+:} false; then :
42037 $as_echo_n "(cached) " >&6
42039 ac_check_lib_save_LIBS=$LIBS
42041 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42042 /* end confdefs.h. */
42044 /* Override any GCC internal prototype to avoid an error.
42045 Use char because int might match the return type of a GCC
42046 builtin and then its argument prototype would still apply. */
42054 return shl_load ();
42059 if ac_fn_c_try_link "$LINENO"; then :
42060 ac_cv_lib_dld_shl_load=yes
42062 ac_cv_lib_dld_shl_load=no
42064 rm -f core conftest.err conftest.$ac_objext \
42065 conftest$ac_exeext conftest.$ac_ext
42066 LIBS=$ac_check_lib_save_LIBS
42068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
42069 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
42070 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
42071 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
42073 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
42074 if test "x$ac_cv_func_dlopen" = xyes; then :
42075 lt_cv_dlopen="dlopen"
42077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
42078 $as_echo_n "checking for dlopen in -ldl... " >&6; }
42079 if ${ac_cv_lib_dl_dlopen+:} false; then :
42080 $as_echo_n "(cached) " >&6
42082 ac_check_lib_save_LIBS=$LIBS
42084 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42085 /* end confdefs.h. */
42087 /* Override any GCC internal prototype to avoid an error.
42088 Use char because int might match the return type of a GCC
42089 builtin and then its argument prototype would still apply. */
42102 if ac_fn_c_try_link "$LINENO"; then :
42103 ac_cv_lib_dl_dlopen=yes
42105 ac_cv_lib_dl_dlopen=no
42107 rm -f core conftest.err conftest.$ac_objext \
42108 conftest$ac_exeext conftest.$ac_ext
42109 LIBS=$ac_check_lib_save_LIBS
42111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
42112 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
42113 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
42114 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
42116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
42117 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
42118 if ${ac_cv_lib_svld_dlopen+:} false; then :
42119 $as_echo_n "(cached) " >&6
42121 ac_check_lib_save_LIBS=$LIBS
42122 LIBS="-lsvld $LIBS"
42123 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42124 /* end confdefs.h. */
42126 /* Override any GCC internal prototype to avoid an error.
42127 Use char because int might match the return type of a GCC
42128 builtin and then its argument prototype would still apply. */
42141 if ac_fn_c_try_link "$LINENO"; then :
42142 ac_cv_lib_svld_dlopen=yes
42144 ac_cv_lib_svld_dlopen=no
42146 rm -f core conftest.err conftest.$ac_objext \
42147 conftest$ac_exeext conftest.$ac_ext
42148 LIBS=$ac_check_lib_save_LIBS
42150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
42151 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
42152 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
42153 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
42155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
42156 $as_echo_n "checking for dld_link in -ldld... " >&6; }
42157 if ${ac_cv_lib_dld_dld_link+:} false; then :
42158 $as_echo_n "(cached) " >&6
42160 ac_check_lib_save_LIBS=$LIBS
42162 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42163 /* end confdefs.h. */
42165 /* Override any GCC internal prototype to avoid an error.
42166 Use char because int might match the return type of a GCC
42167 builtin and then its argument prototype would still apply. */
42175 return dld_link ();
42180 if ac_fn_c_try_link "$LINENO"; then :
42181 ac_cv_lib_dld_dld_link=yes
42183 ac_cv_lib_dld_dld_link=no
42185 rm -f core conftest.err conftest.$ac_objext \
42186 conftest$ac_exeext conftest.$ac_ext
42187 LIBS=$ac_check_lib_save_LIBS
42189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
42190 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
42191 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
42192 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
42213 if test "x$lt_cv_dlopen" != xno; then
42219 case $lt_cv_dlopen in
42221 save_CPPFLAGS="$CPPFLAGS"
42222 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
42224 save_LDFLAGS="$LDFLAGS"
42225 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
42228 LIBS="$lt_cv_dlopen_libs $LIBS"
42230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
42231 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
42232 if ${lt_cv_dlopen_self+:} false; then :
42233 $as_echo_n "(cached) " >&6
42235 if test "$cross_compiling" = yes; then :
42236 lt_cv_dlopen_self=cross
42238 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
42239 lt_status=$lt_dlunknown
42240 cat > conftest.$ac_ext <<_LT_EOF
42241 #line $LINENO "configure"
42242 #include "confdefs.h"
42251 # define LT_DLGLOBAL RTLD_GLOBAL
42254 # define LT_DLGLOBAL DL_GLOBAL
42256 # define LT_DLGLOBAL 0
42260 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
42261 find out it does not work in some platform. */
42262 #ifndef LT_DLLAZY_OR_NOW
42264 # define LT_DLLAZY_OR_NOW RTLD_LAZY
42267 # define LT_DLLAZY_OR_NOW DL_LAZY
42270 # define LT_DLLAZY_OR_NOW RTLD_NOW
42273 # define LT_DLLAZY_OR_NOW DL_NOW
42275 # define LT_DLLAZY_OR_NOW 0
42282 /* When -fvisbility=hidden is used, assume the code has been annotated
42283 correspondingly for the symbols needed. */
42284 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
42285 int fnord () __attribute__((visibility("default")));
42288 int fnord () { return 42; }
42291 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
42292 int status = $lt_dlunknown;
42296 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
42299 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
42300 else puts (dlerror ());
42302 /* dlclose (self); */
42310 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
42311 (eval $ac_link) 2>&5
42313 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
42314 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
42315 (./conftest; exit; ) >&5 2>/dev/null
42317 case x$lt_status in
42318 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
42319 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
42320 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
42323 # compilation failed
42324 lt_cv_dlopen_self=no
42331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
42332 $as_echo "$lt_cv_dlopen_self" >&6; }
42334 if test "x$lt_cv_dlopen_self" = xyes; then
42335 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
42336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
42337 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
42338 if ${lt_cv_dlopen_self_static+:} false; then :
42339 $as_echo_n "(cached) " >&6
42341 if test "$cross_compiling" = yes; then :
42342 lt_cv_dlopen_self_static=cross
42344 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
42345 lt_status=$lt_dlunknown
42346 cat > conftest.$ac_ext <<_LT_EOF
42347 #line $LINENO "configure"
42348 #include "confdefs.h"
42357 # define LT_DLGLOBAL RTLD_GLOBAL
42360 # define LT_DLGLOBAL DL_GLOBAL
42362 # define LT_DLGLOBAL 0
42366 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
42367 find out it does not work in some platform. */
42368 #ifndef LT_DLLAZY_OR_NOW
42370 # define LT_DLLAZY_OR_NOW RTLD_LAZY
42373 # define LT_DLLAZY_OR_NOW DL_LAZY
42376 # define LT_DLLAZY_OR_NOW RTLD_NOW
42379 # define LT_DLLAZY_OR_NOW DL_NOW
42381 # define LT_DLLAZY_OR_NOW 0
42388 /* When -fvisbility=hidden is used, assume the code has been annotated
42389 correspondingly for the symbols needed. */
42390 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
42391 int fnord () __attribute__((visibility("default")));
42394 int fnord () { return 42; }
42397 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
42398 int status = $lt_dlunknown;
42402 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
42405 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
42406 else puts (dlerror ());
42408 /* dlclose (self); */
42416 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
42417 (eval $ac_link) 2>&5
42419 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
42420 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
42421 (./conftest; exit; ) >&5 2>/dev/null
42423 case x$lt_status in
42424 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
42425 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
42426 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
42429 # compilation failed
42430 lt_cv_dlopen_self_static=no
42437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
42438 $as_echo "$lt_cv_dlopen_self_static" >&6; }
42441 CPPFLAGS="$save_CPPFLAGS"
42442 LDFLAGS="$save_LDFLAGS"
42447 case $lt_cv_dlopen_self in
42448 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
42449 *) enable_dlopen_self=unknown ;;
42452 case $lt_cv_dlopen_self_static in
42453 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
42454 *) enable_dlopen_self_static=unknown ;;
42476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
42477 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
42478 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
42479 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
42480 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
42481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
42482 $as_echo "yes" >&6; }
42484 # FIXME - insert some real tests, host_os isn't really good enough
42487 if test -n "$STRIP" ; then
42488 striplib="$STRIP -x"
42489 old_striplib="$STRIP -S"
42490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
42491 $as_echo "yes" >&6; }
42493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
42494 $as_echo "no" >&6; }
42498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
42499 $as_echo "no" >&6; }
42515 # Report which library types will actually be built
42516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
42517 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
42518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
42519 $as_echo "$can_build_shared" >&6; }
42521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
42522 $as_echo_n "checking whether to build shared libraries... " >&6; }
42523 test "$can_build_shared" = "no" && enable_shared=no
42525 # On AIX, shared libraries and static libraries use the same namespace, and
42526 # are all built from PIC.
42529 test "$enable_shared" = yes && enable_static=no
42530 if test -n "$RANLIB"; then
42531 archive_cmds="$archive_cmds~\$RANLIB \$lib"
42532 postinstall_cmds='$RANLIB $lib'
42537 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
42538 test "$enable_shared" = yes && enable_static=no
42542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
42543 $as_echo "$enable_shared" >&6; }
42545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
42546 $as_echo_n "checking whether to build static libraries... " >&6; }
42547 # Make sure either enable_shared or enable_static is yes.
42548 test "$enable_shared" = yes || enable_static=yes
42549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
42550 $as_echo "$enable_static" >&6; }
42557 ac_cpp='$CPP $CPPFLAGS'
42558 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
42559 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
42560 ac_compiler_gnu=$ac_cv_c_compiler_gnu
42564 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
42565 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
42566 (test "X$CXX" != "Xg++"))) ; then
42568 ac_cpp='$CXXCPP $CPPFLAGS'
42569 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
42570 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
42571 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
42572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
42573 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
42574 if test -z "$CXXCPP"; then
42575 if ${ac_cv_prog_CXXCPP+:} false; then :
42576 $as_echo_n "(cached) " >&6
42578 # Double quotes because CXXCPP needs to be expanded
42579 for CXXCPP in "$CXX -E" "/lib/cpp"
42581 ac_preproc_ok=false
42582 for ac_cxx_preproc_warn_flag in '' yes
42584 # Use a header file that comes with gcc, so configuring glibc
42585 # with a fresh cross-compiler works.
42586 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42587 # <limits.h> exists even on freestanding compilers.
42588 # On the NeXT, cc -E runs the code through the compiler's parser,
42589 # not just through cpp. "Syntax error" is here to catch this case.
42590 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42591 /* end confdefs.h. */
42593 # include <limits.h>
42595 # include <assert.h>
42599 if ac_fn_cxx_try_cpp "$LINENO"; then :
42602 # Broken: fails on valid input.
42605 rm -f conftest.err conftest.i conftest.$ac_ext
42607 # OK, works on sane cases. Now check whether nonexistent headers
42608 # can be detected and how.
42609 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42610 /* end confdefs.h. */
42611 #include <ac_nonexistent.h>
42613 if ac_fn_cxx_try_cpp "$LINENO"; then :
42614 # Broken: success on invalid input.
42617 # Passes both tests.
42621 rm -f conftest.err conftest.i conftest.$ac_ext
42624 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
42625 rm -f conftest.i conftest.err conftest.$ac_ext
42626 if $ac_preproc_ok; then :
42631 ac_cv_prog_CXXCPP=$CXXCPP
42634 CXXCPP=$ac_cv_prog_CXXCPP
42636 ac_cv_prog_CXXCPP=$CXXCPP
42638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
42639 $as_echo "$CXXCPP" >&6; }
42640 ac_preproc_ok=false
42641 for ac_cxx_preproc_warn_flag in '' yes
42643 # Use a header file that comes with gcc, so configuring glibc
42644 # with a fresh cross-compiler works.
42645 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42646 # <limits.h> exists even on freestanding compilers.
42647 # On the NeXT, cc -E runs the code through the compiler's parser,
42648 # not just through cpp. "Syntax error" is here to catch this case.
42649 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42650 /* end confdefs.h. */
42652 # include <limits.h>
42654 # include <assert.h>
42658 if ac_fn_cxx_try_cpp "$LINENO"; then :
42661 # Broken: fails on valid input.
42664 rm -f conftest.err conftest.i conftest.$ac_ext
42666 # OK, works on sane cases. Now check whether nonexistent headers
42667 # can be detected and how.
42668 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42669 /* end confdefs.h. */
42670 #include <ac_nonexistent.h>
42672 if ac_fn_cxx_try_cpp "$LINENO"; then :
42673 # Broken: success on invalid input.
42676 # Passes both tests.
42680 rm -f conftest.err conftest.i conftest.$ac_ext
42683 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
42684 rm -f conftest.i conftest.err conftest.$ac_ext
42685 if $ac_preproc_ok; then :
42688 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
42689 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
42690 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
42691 See \`config.log' for more details" "$LINENO" 5; }
42695 ac_cpp='$CPP $CPPFLAGS'
42696 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
42697 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
42698 ac_compiler_gnu=$ac_cv_c_compiler_gnu
42701 _lt_caught_CXX_error=yes
42705 ac_cpp='$CXXCPP $CPPFLAGS'
42706 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
42707 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
42708 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
42710 archive_cmds_need_lc_CXX=no
42711 allow_undefined_flag_CXX=
42712 always_export_symbols_CXX=no
42713 archive_expsym_cmds_CXX=
42714 compiler_needs_object_CXX=no
42715 export_dynamic_flag_spec_CXX=
42716 hardcode_direct_CXX=no
42717 hardcode_direct_absolute_CXX=no
42718 hardcode_libdir_flag_spec_CXX=
42719 hardcode_libdir_separator_CXX=
42720 hardcode_minus_L_CXX=no
42721 hardcode_shlibpath_var_CXX=unsupported
42722 hardcode_automatic_CXX=no
42723 inherit_rpath_CXX=no
42725 module_expsym_cmds_CXX=
42726 link_all_deplibs_CXX=unknown
42727 old_archive_cmds_CXX=$old_archive_cmds
42728 reload_flag_CXX=$reload_flag
42729 reload_cmds_CXX=$reload_cmds
42730 no_undefined_flag_CXX=
42731 whole_archive_flag_spec_CXX=
42732 enable_shared_with_static_runtimes_CXX=no
42734 # Source file extension for C++ test sources.
42737 # Object file extension for compiled C++ test sources.
42741 # No sense in running all these tests if we already determined that
42742 # the CXX compiler isn't working. Some variables (like enable_shared)
42743 # are currently assumed to apply to all compilers on this platform,
42744 # and will be corrupted by setting them based on a non-working compiler.
42745 if test "$_lt_caught_CXX_error" != yes; then
42746 # Code to be used in simple compile tests
42747 lt_simple_compile_test_code="int some_variable = 0;"
42749 # Code to be used in simple link tests
42750 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
42752 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
42759 # If no C compiler was specified, use CC.
42762 # If no C compiler flags were specified, use CFLAGS.
42763 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
42765 # Allow CC to be a program name with arguments.
42769 # save warnings/boilerplate of simple test code
42770 ac_outfile=conftest.$ac_objext
42771 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
42772 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
42773 _lt_compiler_boilerplate=`cat conftest.err`
42776 ac_outfile=conftest.$ac_objext
42777 echo "$lt_simple_link_test_code" >conftest.$ac_ext
42778 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
42779 _lt_linker_boilerplate=`cat conftest.err`
42783 # Allow CC to be a program name with arguments.
42785 lt_save_CFLAGS=$CFLAGS
42789 lt_save_with_gnu_ld=$with_gnu_ld
42790 lt_save_path_LD=$lt_cv_path_LD
42791 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
42792 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
42794 $as_unset lt_cv_prog_gnu_ld
42796 if test -n "${lt_cv_path_LDCXX+set}"; then
42797 lt_cv_path_LD=$lt_cv_path_LDCXX
42799 $as_unset lt_cv_path_LD
42801 test -z "${LDCXX+set}" || LD=$LDCXX
42806 for cc_temp in $compiler""; do
42808 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
42809 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
42814 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
42817 if test -n "$compiler"; then
42818 # We don't want -fno-exception when compiling C++ code, so set the
42819 # no_builtin_flag separately
42820 if test "$GXX" = yes; then
42821 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
42823 lt_prog_compiler_no_builtin_flag_CXX=
42826 if test "$GXX" = yes; then
42827 # Set up default GNU C++ configuration
42831 # Check whether --with-gnu-ld was given.
42832 if test "${with_gnu_ld+set}" = set; then :
42833 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
42839 if test "$GCC" = yes; then
42840 # Check if gcc -print-prog-name=ld gives a path.
42841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
42842 $as_echo_n "checking for ld used by $CC... " >&6; }
42845 # gcc leaves a trailing carriage return which upsets mingw
42846 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
42848 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
42851 # Accept absolute paths.
42853 re_direlt='/[^/][^/]*/\.\./'
42854 # Canonicalize the pathname of ld
42855 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
42856 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
42857 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
42859 test -z "$LD" && LD="$ac_prog"
42862 # If it fails, then pretend we aren't using GCC.
42866 # If it is relative, then search for the first ld in PATH.
42867 with_gnu_ld=unknown
42870 elif test "$with_gnu_ld" = yes; then
42871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
42872 $as_echo_n "checking for GNU ld... " >&6; }
42874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
42875 $as_echo_n "checking for non-GNU ld... " >&6; }
42877 if ${lt_cv_path_LD+:} false; then :
42878 $as_echo_n "(cached) " >&6
42880 if test -z "$LD"; then
42881 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
42882 for ac_dir in $PATH; do
42884 test -z "$ac_dir" && ac_dir=.
42885 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
42886 lt_cv_path_LD="$ac_dir/$ac_prog"
42887 # Check to see if the program is GNU ld. I'd rather use --version,
42888 # but apparently some variants of GNU ld only accept -v.
42889 # Break only if it was the GNU/non-GNU ld that we prefer.
42890 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
42891 *GNU* | *'with BFD'*)
42892 test "$with_gnu_ld" != no && break
42895 test "$with_gnu_ld" != yes && break
42902 lt_cv_path_LD="$LD" # Let the user override the test with a path.
42906 LD="$lt_cv_path_LD"
42907 if test -n "$LD"; then
42908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
42909 $as_echo "$LD" >&6; }
42911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
42912 $as_echo "no" >&6; }
42914 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
42915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
42916 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
42917 if ${lt_cv_prog_gnu_ld+:} false; then :
42918 $as_echo_n "(cached) " >&6
42920 # I'd rather use --version here, but apparently some GNU lds only accept -v.
42921 case `$LD -v 2>&1 </dev/null` in
42922 *GNU* | *'with BFD'*)
42923 lt_cv_prog_gnu_ld=yes
42926 lt_cv_prog_gnu_ld=no
42930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
42931 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
42932 with_gnu_ld=$lt_cv_prog_gnu_ld
42940 # Check if GNU C++ uses GNU ld as the underlying linker, since the
42941 # archiving commands below assume that GNU ld is being used.
42942 if test "$with_gnu_ld" = yes; then
42943 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
42944 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'
42946 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
42947 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
42949 # If archive_cmds runs LD, not CC, wlarc should be empty
42950 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
42951 # investigate it a little bit more. (MM)
42954 # ancient GNU ld didn't support --whole-archive et. al.
42955 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
42956 $GREP 'no-whole-archive' > /dev/null; then
42957 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
42959 whole_archive_flag_spec_CXX=
42965 # A generic and very simple default shared library creation
42966 # command for GNU C++ for the case where it uses the native
42967 # linker, instead of GNU ld. If possible, this setting should
42968 # overridden to take advantage of the native linker features on
42969 # the platform it is being used on.
42970 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
42973 # Commands to make compiler produce verbose output that lists
42974 # what "hidden" libraries, object files and flags are used when
42975 # linking a shared library.
42976 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
42984 # PORTME: fill in a description of your system's C++ link characteristics
42985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
42986 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
42990 # FIXME: insert proper C++ library support
42994 if test "$host_cpu" = ia64; then
42995 # On IA64, the linker does run time linking by default, so we don't
42996 # have to do anything special.
42997 aix_use_runtimelinking=no
42998 exp_sym_flag='-Bexport'
43001 aix_use_runtimelinking=no
43003 # Test if we are trying to use run time linking or normal
43004 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
43005 # need to do runtime linking.
43006 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
43007 for ld_flag in $LDFLAGS; do
43010 aix_use_runtimelinking=yes
43018 exp_sym_flag='-bexport'
43019 no_entry_flag='-bnoentry'
43022 # When large executables or shared objects are built, AIX ld can
43023 # have problems creating the table of contents. If linking a library
43024 # or program results in "error TOC overflow" add -mminimal-toc to
43025 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
43026 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
43028 archive_cmds_CXX=''
43029 hardcode_direct_CXX=yes
43030 hardcode_direct_absolute_CXX=yes
43031 hardcode_libdir_separator_CXX=':'
43032 link_all_deplibs_CXX=yes
43033 file_list_spec_CXX='${wl}-f,'
43035 if test "$GXX" = yes; then
43036 case $host_os in aix4.[012]|aix4.[012].*)
43037 # We only want to do this on AIX 4.2 and lower, the check
43038 # below for broken collect2 doesn't work under 4.3+
43039 collect2name=`${CC} -print-prog-name=collect2`
43040 if test -f "$collect2name" &&
43041 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
43043 # We have reworked collect2
43046 # We have old collect2
43047 hardcode_direct_CXX=unsupported
43048 # It fails to find uninstalled libraries when the uninstalled
43049 # path is not listed in the libpath. Setting hardcode_minus_L
43050 # to unsupported forces relinking
43051 hardcode_minus_L_CXX=yes
43052 hardcode_libdir_flag_spec_CXX='-L$libdir'
43053 hardcode_libdir_separator_CXX=
43056 shared_flag='-shared'
43057 if test "$aix_use_runtimelinking" = yes; then
43058 shared_flag="$shared_flag "'${wl}-G'
43062 if test "$host_cpu" = ia64; then
43063 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
43064 # chokes on -Wl,-G. The following line is correct:
43067 if test "$aix_use_runtimelinking" = yes; then
43068 shared_flag='${wl}-G'
43070 shared_flag='${wl}-bM:SRE'
43075 export_dynamic_flag_spec_CXX='${wl}-bexpall'
43076 # It seems that -bexpall does not export symbols beginning with
43077 # underscore (_), so it is better to generate a list of symbols to
43079 always_export_symbols_CXX=yes
43080 if test "$aix_use_runtimelinking" = yes; then
43081 # Warning - without using the other runtime loading flags (-brtl),
43082 # -berok will link without error, but may produce a broken library.
43083 allow_undefined_flag_CXX='-berok'
43084 # Determine the default libpath from the value encoded in an empty
43086 if test "${lt_cv_aix_libpath+set}" = set; then
43087 aix_libpath=$lt_cv_aix_libpath
43089 if ${lt_cv_aix_libpath__CXX+:} false; then :
43090 $as_echo_n "(cached) " >&6
43092 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
43093 /* end confdefs.h. */
43103 if ac_fn_cxx_try_link "$LINENO"; then :
43105 lt_aix_libpath_sed='
43106 /Import File Strings/,/^$/ {
43108 s/^0 *\([^ ]*\) *$/\1/
43112 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
43113 # Check for a 64-bit object if we didn't find anything.
43114 if test -z "$lt_cv_aix_libpath__CXX"; then
43115 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
43118 rm -f core conftest.err conftest.$ac_objext \
43119 conftest$ac_exeext conftest.$ac_ext
43120 if test -z "$lt_cv_aix_libpath__CXX"; then
43121 lt_cv_aix_libpath__CXX="/usr/lib:/lib"
43126 aix_libpath=$lt_cv_aix_libpath__CXX
43129 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
43131 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"
43133 if test "$host_cpu" = ia64; then
43134 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
43135 allow_undefined_flag_CXX="-z nodefs"
43136 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"
43138 # Determine the default libpath from the value encoded in an
43139 # empty executable.
43140 if test "${lt_cv_aix_libpath+set}" = set; then
43141 aix_libpath=$lt_cv_aix_libpath
43143 if ${lt_cv_aix_libpath__CXX+:} false; then :
43144 $as_echo_n "(cached) " >&6
43146 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
43147 /* end confdefs.h. */
43157 if ac_fn_cxx_try_link "$LINENO"; then :
43159 lt_aix_libpath_sed='
43160 /Import File Strings/,/^$/ {
43162 s/^0 *\([^ ]*\) *$/\1/
43166 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
43167 # Check for a 64-bit object if we didn't find anything.
43168 if test -z "$lt_cv_aix_libpath__CXX"; then
43169 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
43172 rm -f core conftest.err conftest.$ac_objext \
43173 conftest$ac_exeext conftest.$ac_ext
43174 if test -z "$lt_cv_aix_libpath__CXX"; then
43175 lt_cv_aix_libpath__CXX="/usr/lib:/lib"
43180 aix_libpath=$lt_cv_aix_libpath__CXX
43183 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
43184 # Warning - without using the other run time loading flags,
43185 # -berok will link without error, but may produce a broken library.
43186 no_undefined_flag_CXX=' ${wl}-bernotok'
43187 allow_undefined_flag_CXX=' ${wl}-berok'
43188 if test "$with_gnu_ld" = yes; then
43189 # We only use this code for GNU lds that support --whole-archive.
43190 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
43192 # Exported symbols can be pulled into shared objects from archives
43193 whole_archive_flag_spec_CXX='$convenience'
43195 archive_cmds_need_lc_CXX=yes
43196 # This is similar to how AIX traditionally builds its shared
43198 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'
43204 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
43205 allow_undefined_flag_CXX=unsupported
43206 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
43207 # support --undefined. This deserves some investigation. FIXME
43208 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
43215 case $cc_basename in
43217 # FIXME: insert proper C++ library support
43223 cygwin* | mingw* | pw32* | cegcc*)
43224 case $GXX,$cc_basename in
43227 # hardcode_libdir_flag_spec is actually meaningless, as there is
43228 # no search path for DLLs.
43229 hardcode_libdir_flag_spec_CXX=' '
43230 allow_undefined_flag_CXX=unsupported
43231 always_export_symbols_CXX=yes
43232 file_list_spec_CXX='@'
43233 # Tell ltmain to make .lib files, not .a files.
43235 # Tell ltmain to make .dll files, not .so files.
43237 # FIXME: Setting linknames here is a bad hack.
43238 archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
43239 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
43240 $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
43242 $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
43244 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
43246 # The linker will not automatically build a static lib if we build a DLL.
43247 # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
43248 enable_shared_with_static_runtimes_CXX=yes
43250 old_postinstall_cmds_CXX='chmod 644 $oldlib'
43251 postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
43252 lt_tool_outputfile="@TOOL_OUTPUT@"~
43253 case $lt_outputfile in
43256 lt_outputfile="$lt_outputfile.exe"
43257 lt_tool_outputfile="$lt_tool_outputfile.exe"
43260 func_to_tool_file "$lt_outputfile"~
43261 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
43262 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
43263 $RM "$lt_outputfile.manifest";
43268 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
43269 # as there is no search path for DLLs.
43270 hardcode_libdir_flag_spec_CXX='-L$libdir'
43271 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
43272 allow_undefined_flag_CXX=unsupported
43273 always_export_symbols_CXX=no
43274 enable_shared_with_static_runtimes_CXX=yes
43276 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
43277 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'
43278 # If the export-symbols file already is a .def file (1st line
43279 # is EXPORTS), use it as is; otherwise, prepend...
43280 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
43281 cp $export_symbols $output_objdir/$soname.def;
43283 echo EXPORTS > $output_objdir/$soname.def;
43284 cat $export_symbols >> $output_objdir/$soname.def;
43286 $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'
43293 darwin* | rhapsody*)
43296 archive_cmds_need_lc_CXX=no
43297 hardcode_direct_CXX=no
43298 hardcode_automatic_CXX=yes
43299 hardcode_shlibpath_var_CXX=unsupported
43300 if test "$lt_cv_ld_force_load" = "yes"; then
43301 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\"`'
43304 whole_archive_flag_spec_CXX=''
43306 link_all_deplibs_CXX=yes
43307 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
43308 case $cc_basename in
43309 ifort*) _lt_dar_can_shared=yes ;;
43310 *) _lt_dar_can_shared=$GCC ;;
43312 if test "$_lt_dar_can_shared" = "yes"; then
43313 output_verbose_link_cmd=func_echo_all
43314 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}"
43315 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
43316 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}"
43317 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}"
43318 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
43319 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}"
43320 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}"
43330 case $cc_basename in
43332 # FIXME: insert proper C++ library support
43336 # Green Hills C++ Compiler
43337 # FIXME: insert proper C++ library support
43341 # FIXME: insert proper C++ library support
43348 # C++ shared libraries reported to be fairly broken before
43354 archive_cmds_need_lc_CXX=no
43357 freebsd* | dragonfly*)
43358 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
43364 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
43365 link_all_deplibs_CXX=yes
43369 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
43370 hardcode_libdir_separator_CXX=:
43371 export_dynamic_flag_spec_CXX='${wl}-E'
43372 hardcode_direct_CXX=yes
43373 hardcode_minus_L_CXX=yes # Not in the search PATH,
43374 # but as the default
43375 # location of the library.
43377 case $cc_basename in
43379 # FIXME: insert proper C++ library support
43383 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'
43384 # Commands to make compiler produce verbose output that lists
43385 # what "hidden" libraries, object files and flags are used when
43386 # linking a shared library.
43388 # There doesn't appear to be a way to prevent this compiler from
43389 # explicitly linking system object files so we need to strip them
43390 # from the output so that they don't get included in the library
43392 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"'
43395 if test "$GXX" = yes; then
43396 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'
43398 # FIXME: insert proper C++ library support
43406 if test $with_gnu_ld = no; then
43407 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
43408 hardcode_libdir_separator_CXX=:
43414 export_dynamic_flag_spec_CXX='${wl}-E'
43420 hardcode_direct_CXX=no
43421 hardcode_shlibpath_var_CXX=no
43424 hardcode_direct_CXX=yes
43425 hardcode_direct_absolute_CXX=yes
43426 hardcode_minus_L_CXX=yes # Not in the search PATH,
43427 # but as the default
43428 # location of the library.
43432 case $cc_basename in
43434 # FIXME: insert proper C++ library support
43440 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
43443 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
43446 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
43449 # Commands to make compiler produce verbose output that lists
43450 # what "hidden" libraries, object files and flags are used when
43451 # linking a shared library.
43453 # There doesn't appear to be a way to prevent this compiler from
43454 # explicitly linking system object files so we need to strip them
43455 # from the output so that they don't get included in the library
43457 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"'
43460 if test "$GXX" = yes; then
43461 if test $with_gnu_ld = no; then
43464 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
43467 archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
43470 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'
43475 # FIXME: insert proper C++ library support
43483 hardcode_direct_CXX=no
43484 hardcode_shlibpath_var_CXX=no
43485 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
43486 export_dynamic_flag_spec_CXX='${wl}-E'
43487 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
43488 # Instead, shared libraries are loaded at an image base (0x10000000 by
43489 # default) and relocated if they conflict, which is a slow very memory
43490 # consuming and fragmenting process. To avoid this, we pick a random,
43491 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
43492 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
43493 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'
43494 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'
43497 case $cc_basename in
43500 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'
43502 # Archives containing C++ object files must be created using
43503 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
43504 # necessary to make sure instantiated templates are included
43506 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
43509 if test "$GXX" = yes; then
43510 if test "$with_gnu_ld" = no; then
43511 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'
43513 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'
43516 link_all_deplibs_CXX=yes
43519 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
43520 hardcode_libdir_separator_CXX=:
43521 inherit_rpath_CXX=yes
43524 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
43525 case $cc_basename in
43527 # Kuck and Associates, Inc. (KAI) C++ Compiler
43529 # KCC will only create a shared library if the output file
43530 # ends with ".so" (or ".sl" for HP-UX), so rename the library
43531 # to its proper name (with version) after linking.
43532 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'
43533 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'
43534 # Commands to make compiler produce verbose output that lists
43535 # what "hidden" libraries, object files and flags are used when
43536 # linking a shared library.
43538 # There doesn't appear to be a way to prevent this compiler from
43539 # explicitly linking system object files so we need to strip them
43540 # from the output so that they don't get included in the library
43542 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"'
43544 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
43545 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
43547 # Archives containing C++ object files must be created using
43548 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
43549 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
43554 # version 8.0 and above of icpc choke on multiply defined symbols
43555 # if we add $predep_objects and $postdep_objects, however 7.1 and
43556 # earlier do not add the objects themselves.
43557 case `$CC -V 2>&1` in
43559 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
43560 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'
43562 *) # Version 8.0 or newer
43565 ia64*) tmp_idyn=' -i_dynamic';;
43567 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
43568 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'
43571 archive_cmds_need_lc_CXX=no
43572 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
43573 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
43574 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
43577 # Portland Group C++ compiler
43579 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
43580 prelink_cmds_CXX='tpldir=Template.dir~
43582 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
43583 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
43584 old_archive_cmds_CXX='tpldir=Template.dir~
43586 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
43587 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
43589 archive_cmds_CXX='tpldir=Template.dir~
43591 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
43592 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
43593 archive_expsym_cmds_CXX='tpldir=Template.dir~
43595 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
43596 $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'
43598 *) # Version 6 and above use weak symbols
43599 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
43600 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'
43604 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
43605 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
43606 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'
43610 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
43611 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'
43613 runpath_var=LD_RUN_PATH
43614 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
43615 hardcode_libdir_separator_CXX=:
43617 # Commands to make compiler produce verbose output that lists
43618 # what "hidden" libraries, object files and flags are used when
43619 # linking a shared library.
43621 # There doesn't appear to be a way to prevent this compiler from
43622 # explicitly linking system object files so we need to strip them
43623 # from the output so that they don't get included in the library
43625 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'
43627 xl* | mpixl* | bgxl*)
43628 # IBM XL 8.0 on PPC, with GNU ld
43629 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
43630 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
43631 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
43632 if test "x$supports_anon_versioning" = xyes; then
43633 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
43634 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
43635 echo "local: *; };" >> $output_objdir/$libname.ver~
43636 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
43640 case `$CC -V 2>&1 | sed 5q` in
43643 no_undefined_flag_CXX=' -zdefs'
43644 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
43645 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'
43646 hardcode_libdir_flag_spec_CXX='-R$libdir'
43647 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'
43648 compiler_needs_object_CXX=yes
43650 # Not sure whether something based on
43651 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
43653 output_verbose_link_cmd='func_echo_all'
43655 # Archives containing C++ object files must be created using
43656 # "CC -xar", where "CC" is the Sun C++ compiler. This is
43657 # necessary to make sure instantiated templates are included
43659 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
43667 # FIXME: insert proper C++ library support
43672 # FIXME: insert proper C++ library support
43677 case $cc_basename in
43679 # FIXME: insert proper C++ library support
43683 # FIXME: insert proper C++ library support
43690 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
43691 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
43693 hardcode_libdir_flag_spec_CXX='-R$libdir'
43694 hardcode_direct_CXX=yes
43695 hardcode_shlibpath_var_CXX=no
43697 # Workaround some broken pre-1.5 toolchains
43698 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
43706 # C++ shared libraries are fairly broken
43711 if test -f /usr/libexec/ld.so; then
43712 hardcode_direct_CXX=yes
43713 hardcode_shlibpath_var_CXX=no
43714 hardcode_direct_absolute_CXX=yes
43715 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
43716 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
43717 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
43718 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
43719 export_dynamic_flag_spec_CXX='${wl}-E'
43720 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
43722 output_verbose_link_cmd=func_echo_all
43728 osf3* | osf4* | osf5*)
43729 case $cc_basename in
43731 # Kuck and Associates, Inc. (KAI) C++ Compiler
43733 # KCC will only create a shared library if the output file
43734 # ends with ".so" (or ".sl" for HP-UX), so rename the library
43735 # to its proper name (with version) after linking.
43736 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'
43738 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
43739 hardcode_libdir_separator_CXX=:
43741 # Archives containing C++ object files must be created using
43742 # the KAI C++ compiler.
43744 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
43745 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
43749 # Rational C++ 2.4.1
43750 # FIXME: insert proper C++ library support
43756 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
43757 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'
43758 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
43761 allow_undefined_flag_CXX=' -expect_unresolved \*'
43762 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'
43763 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
43764 echo "-hidden">> $lib.exp~
43765 $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~
43767 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
43771 hardcode_libdir_separator_CXX=:
43773 # Commands to make compiler produce verbose output that lists
43774 # what "hidden" libraries, object files and flags are used when
43775 # linking a shared library.
43777 # There doesn't appear to be a way to prevent this compiler from
43778 # explicitly linking system object files so we need to strip them
43779 # from the output so that they don't get included in the library
43781 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"'
43784 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
43785 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
43788 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'
43791 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'
43795 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
43796 hardcode_libdir_separator_CXX=:
43798 # Commands to make compiler produce verbose output that lists
43799 # what "hidden" libraries, object files and flags are used when
43800 # linking a shared library.
43801 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
43804 # FIXME: insert proper C++ library support
43812 # FIXME: insert proper C++ library support
43817 case $cc_basename in
43820 # FIXME: insert proper C++ library support
43825 # FIXME: insert proper C++ library support
43829 # FIXME: insert proper C++ library support
43836 case $cc_basename in
43838 # Sun C++ 4.2, 5.x and Centerline C++
43839 archive_cmds_need_lc_CXX=yes
43840 no_undefined_flag_CXX=' -zdefs'
43841 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
43842 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
43843 $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'
43845 hardcode_libdir_flag_spec_CXX='-R$libdir'
43846 hardcode_shlibpath_var_CXX=no
43848 solaris2.[0-5] | solaris2.[0-5].*) ;;
43850 # The compiler driver will combine and reorder linker options,
43851 # but understands `-z linker_flag'.
43852 # Supported since Solaris 2.6 (maybe 2.5.1?)
43853 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
43856 link_all_deplibs_CXX=yes
43858 output_verbose_link_cmd='func_echo_all'
43860 # Archives containing C++ object files must be created using
43861 # "CC -xar", where "CC" is the Sun C++ compiler. This is
43862 # necessary to make sure instantiated templates are included
43864 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
43867 # Green Hills C++ Compiler
43868 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
43870 # The C++ compiler must be used to create the archive.
43871 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
43874 # GNU C++ compiler with Solaris linker
43875 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
43876 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
43877 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
43878 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
43879 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
43880 $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
43882 # Commands to make compiler produce verbose output that lists
43883 # what "hidden" libraries, object files and flags are used when
43884 # linking a shared library.
43885 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
43887 # g++ 2.7 appears to require `-G' NOT `-shared' on this
43889 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
43890 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
43891 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
43893 # Commands to make compiler produce verbose output that lists
43894 # what "hidden" libraries, object files and flags are used when
43895 # linking a shared library.
43896 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
43899 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
43901 solaris2.[0-5] | solaris2.[0-5].*) ;;
43903 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
43911 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
43912 no_undefined_flag_CXX='${wl}-z,text'
43913 archive_cmds_need_lc_CXX=no
43914 hardcode_shlibpath_var_CXX=no
43915 runpath_var='LD_RUN_PATH'
43917 case $cc_basename in
43919 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
43920 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
43923 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
43924 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
43929 sysv5* | sco3.2v5* | sco5v6*)
43930 # Note: We can NOT use -z defs as we might desire, because we do not
43931 # link with -lc, and that would cause any symbols used from libc to
43932 # always be unresolved, which means just about no library would
43933 # ever link correctly. If we're not using GNU ld we use -z text
43934 # though, which does catch some bad symbols but isn't as heavy-handed
43936 no_undefined_flag_CXX='${wl}-z,text'
43937 allow_undefined_flag_CXX='${wl}-z,nodefs'
43938 archive_cmds_need_lc_CXX=no
43939 hardcode_shlibpath_var_CXX=no
43940 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
43941 hardcode_libdir_separator_CXX=':'
43942 link_all_deplibs_CXX=yes
43943 export_dynamic_flag_spec_CXX='${wl}-Bexport'
43944 runpath_var='LD_RUN_PATH'
43946 case $cc_basename in
43948 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
43949 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
43950 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
43951 '"$old_archive_cmds_CXX"
43952 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
43953 '"$reload_cmds_CXX"
43956 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
43957 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
43963 case $cc_basename in
43965 # NonStop-UX NCC 3.20
43966 # FIXME: insert proper C++ library support
43970 # FIXME: insert proper C++ library support
43977 # FIXME: insert proper C++ library support
43982 # FIXME: insert proper C++ library support
43987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
43988 $as_echo "$ld_shlibs_CXX" >&6; }
43989 test "$ld_shlibs_CXX" = no && can_build_shared=no
43995 ## There is no encapsulation within the following macros, do not change
43996 ## the running order or otherwise move them around unless you know exactly
43997 ## what you are doing...
43998 # Dependencies to place before and after the object being linked:
43999 predep_objects_CXX=
44000 postdep_objects_CXX=
44003 compiler_lib_search_path_CXX=
44005 cat > conftest.$ac_ext <<_LT_EOF
44009 Foo (void) { a = 0; }
44016 _lt_libdeps_save_CFLAGS=$CFLAGS
44017 case "$CC $CFLAGS " in #(
44018 *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
44019 *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
44020 *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
44023 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
44024 (eval $ac_compile) 2>&5
44026 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
44027 test $ac_status = 0; }; then
44028 # Parse the compiler output and extract the necessary
44029 # objects, libraries and library flags.
44031 # Sentinel used to keep track of whether or not we are before
44032 # the conftest object file.
44033 pre_test_object_deps_done=no
44035 for p in `eval "$output_verbose_link_cmd"`; do
44036 case ${prev}${p} in
44039 # Some compilers place space between "-{L,R}" and the path.
44040 # Remove the space.
44041 if test $p = "-L" ||
44042 test $p = "-R"; then
44047 # Expand the sysroot to ease extracting the directories later.
44048 if test -z "$prev"; then
44050 -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
44051 -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
44052 -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
44056 =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
44058 if test "$pre_test_object_deps_done" = no; then
44061 # Internal compiler library paths should come after those
44062 # provided the user. The postdeps already come after the
44063 # user supplied libs so there is no need to process them.
44064 if test -z "$compiler_lib_search_path_CXX"; then
44065 compiler_lib_search_path_CXX="${prev}${p}"
44067 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
44070 # The "-l" case would never come before the object being
44071 # linked, so don't bother handling this case.
44074 if test -z "$postdeps_CXX"; then
44075 postdeps_CXX="${prev}${p}"
44077 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
44083 *.lto.$objext) ;; # Ignore GCC LTO objects
44085 # This assumes that the test object file only shows up
44086 # once in the compiler output.
44087 if test "$p" = "conftest.$objext"; then
44088 pre_test_object_deps_done=yes
44092 if test "$pre_test_object_deps_done" = no; then
44093 if test -z "$predep_objects_CXX"; then
44094 predep_objects_CXX="$p"
44096 predep_objects_CXX="$predep_objects_CXX $p"
44099 if test -z "$postdep_objects_CXX"; then
44100 postdep_objects_CXX="$p"
44102 postdep_objects_CXX="$postdep_objects_CXX $p"
44107 *) ;; # Ignore the rest.
44115 echo "libtool.m4: error: problem compiling CXX test program"
44118 $RM -f confest.$objext
44119 CFLAGS=$_lt_libdeps_save_CFLAGS
44121 # PORTME: override above test on systems where it is broken
44124 # Interix 3.5 installs completely hosed .la files for C++, so rather than
44125 # hack all around it, let's just trust "g++" to DTRT.
44126 predep_objects_CXX=
44127 postdep_objects_CXX=
44132 case `$CC -V 2>&1 | sed 5q` in
44136 # The more standards-conforming stlport4 library is
44137 # incompatible with the Cstd library. Avoid specifying
44138 # it if it's in CXXFLAGS. Ignore libCrun as
44139 # -library=stlport4 depends on it.
44140 case " $CXX $CXXFLAGS " in
44141 *" -library=stlport4 "*)
44142 solaris_use_stlport4=yes
44146 if test "$solaris_use_stlport4" != yes; then
44147 postdeps_CXX='-library=Cstd -library=Crun'
44154 case $cc_basename in
44156 # The more standards-conforming stlport4 library is
44157 # incompatible with the Cstd library. Avoid specifying
44158 # it if it's in CXXFLAGS. Ignore libCrun as
44159 # -library=stlport4 depends on it.
44160 case " $CXX $CXXFLAGS " in
44161 *" -library=stlport4 "*)
44162 solaris_use_stlport4=yes
44166 # Adding this requires a known-good setup of shared libraries for
44167 # Sun compiler versions before 5.6, else PIC objects from an old
44168 # archive will be linked into the output, leading to subtle bugs.
44169 if test "$solaris_use_stlport4" != yes; then
44170 postdeps_CXX='-library=Cstd -library=Crun'
44178 case " $postdeps_CXX " in
44179 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
44181 compiler_lib_search_dirs_CXX=
44182 if test -n "${compiler_lib_search_path_CXX}"; then
44183 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
44216 lt_prog_compiler_wl_CXX=
44217 lt_prog_compiler_pic_CXX=
44218 lt_prog_compiler_static_CXX=
44221 # C++ specific cases for pic, static, wl, etc.
44222 if test "$GXX" = yes; then
44223 lt_prog_compiler_wl_CXX='-Wl,'
44224 lt_prog_compiler_static_CXX='-static'
44228 # All AIX code is PIC.
44229 if test "$host_cpu" = ia64; then
44230 # AIX 5 now supports IA64 processor
44231 lt_prog_compiler_static_CXX='-Bstatic'
44238 # see comment about AmigaOS4 .so support
44239 lt_prog_compiler_pic_CXX='-fPIC'
44242 # FIXME: we need at least 68020 code to build shared libraries, but
44243 # adding the `-m68020' flag to GCC prevents building anything better,
44245 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
44250 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
44251 # PIC is the default for these OSes.
44253 mingw* | cygwin* | os2* | pw32* | cegcc*)
44254 # This hack is so that the source file can tell whether it is being
44255 # built for inclusion in a dll (and should export symbols for example).
44256 # Although the cygwin gcc ignores -fPIC, still need this for old-style
44257 # (--disable-auto-import) libraries
44258 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
44260 darwin* | rhapsody*)
44261 # PIC is the default on this platform
44262 # Common symbols not allowed in MH_DYLIB files
44263 lt_prog_compiler_pic_CXX='-fno-common'
44266 # DJGPP does not support shared libraries at all
44267 lt_prog_compiler_pic_CXX=
44270 # PIC is the default for Haiku.
44271 # The "-static" flag exists, but is broken.
44272 lt_prog_compiler_static_CXX=
44275 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
44276 # Instead, we relocate shared libraries at runtime.
44279 if test -d /usr/nec; then
44280 lt_prog_compiler_pic_CXX=-Kconform_pic
44284 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
44285 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
44286 # sets the default TLS model and affects inlining.
44291 lt_prog_compiler_pic_CXX='-fPIC'
44296 # QNX uses GNU C++, but need to define -shared option too, otherwise
44297 # it will coredump.
44298 lt_prog_compiler_pic_CXX='-fPIC -shared'
44301 lt_prog_compiler_pic_CXX='-fPIC'
44307 # All AIX code is PIC.
44308 if test "$host_cpu" = ia64; then
44309 # AIX 5 now supports IA64 processor
44310 lt_prog_compiler_static_CXX='-Bstatic'
44312 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
44316 case $cc_basename in
44318 # Green Hills C++ Compiler
44319 # _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"
44323 mingw* | cygwin* | os2* | pw32* | cegcc*)
44324 # This hack is so that the source file can tell whether it is being
44325 # built for inclusion in a dll (and should export symbols for example).
44326 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
44329 case $cc_basename in
44331 lt_prog_compiler_pic_CXX='-KPIC'
44334 # Green Hills C++ Compiler
44335 lt_prog_compiler_pic_CXX='-pic'
44341 freebsd* | dragonfly*)
44342 # FreeBSD uses GNU C++
44344 hpux9* | hpux10* | hpux11*)
44345 case $cc_basename in
44347 lt_prog_compiler_wl_CXX='-Wl,'
44348 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
44349 if test "$host_cpu" != ia64; then
44350 lt_prog_compiler_pic_CXX='+Z'
44354 lt_prog_compiler_wl_CXX='-Wl,'
44355 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
44361 lt_prog_compiler_pic_CXX='+Z'
44370 # This is c89, which is MS Visual C++ (no shared libs)
44371 # Anyone wants to do a port?
44373 irix5* | irix6* | nonstopux*)
44374 case $cc_basename in
44376 lt_prog_compiler_wl_CXX='-Wl,'
44377 lt_prog_compiler_static_CXX='-non_shared'
44378 # CC pic flag -KPIC is the default.
44384 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
44385 case $cc_basename in
44388 lt_prog_compiler_wl_CXX='--backend -Wl,'
44389 lt_prog_compiler_pic_CXX='-fPIC'
44392 # old Intel C++ for x86_64 which still supported -KPIC.
44393 lt_prog_compiler_wl_CXX='-Wl,'
44394 lt_prog_compiler_pic_CXX='-KPIC'
44395 lt_prog_compiler_static_CXX='-static'
44398 # Intel C++, used to be incompatible with GCC.
44399 # ICC 10 doesn't accept -KPIC any more.
44400 lt_prog_compiler_wl_CXX='-Wl,'
44401 lt_prog_compiler_pic_CXX='-fPIC'
44402 lt_prog_compiler_static_CXX='-static'
44405 # Portland Group C++ compiler
44406 lt_prog_compiler_wl_CXX='-Wl,'
44407 lt_prog_compiler_pic_CXX='-fpic'
44408 lt_prog_compiler_static_CXX='-Bstatic'
44412 # Make sure the PIC flag is empty. It appears that all Alpha
44413 # Linux and Compaq Tru64 Unix objects are PIC.
44414 lt_prog_compiler_pic_CXX=
44415 lt_prog_compiler_static_CXX='-non_shared'
44417 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
44418 # IBM XL 8.0, 9.0 on PPC and BlueGene
44419 lt_prog_compiler_wl_CXX='-Wl,'
44420 lt_prog_compiler_pic_CXX='-qpic'
44421 lt_prog_compiler_static_CXX='-qstaticlink'
44424 case `$CC -V 2>&1 | sed 5q` in
44427 lt_prog_compiler_pic_CXX='-KPIC'
44428 lt_prog_compiler_static_CXX='-Bstatic'
44429 lt_prog_compiler_wl_CXX='-Qoption ld '
44440 case $cc_basename in
44442 lt_prog_compiler_pic_CXX='-W c,exportall'
44448 netbsd* | netbsdelf*-gnu)
44451 # QNX uses GNU C++, but need to define -shared option too, otherwise
44452 # it will coredump.
44453 lt_prog_compiler_pic_CXX='-fPIC -shared'
44455 osf3* | osf4* | osf5*)
44456 case $cc_basename in
44458 lt_prog_compiler_wl_CXX='--backend -Wl,'
44461 # Rational C++ 2.4.1
44462 lt_prog_compiler_pic_CXX='-pic'
44465 # Digital/Compaq C++
44466 lt_prog_compiler_wl_CXX='-Wl,'
44467 # Make sure the PIC flag is empty. It appears that all Alpha
44468 # Linux and Compaq Tru64 Unix objects are PIC.
44469 lt_prog_compiler_pic_CXX=
44470 lt_prog_compiler_static_CXX='-non_shared'
44479 case $cc_basename in
44481 # Sun C++ 4.2, 5.x and Centerline C++
44482 lt_prog_compiler_pic_CXX='-KPIC'
44483 lt_prog_compiler_static_CXX='-Bstatic'
44484 lt_prog_compiler_wl_CXX='-Qoption ld '
44487 # Green Hills C++ Compiler
44488 lt_prog_compiler_pic_CXX='-PIC'
44495 case $cc_basename in
44498 lt_prog_compiler_pic_CXX='-pic'
44499 lt_prog_compiler_static_CXX='-Bstatic'
44503 lt_prog_compiler_pic_CXX='-pic'
44509 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
44510 case $cc_basename in
44512 lt_prog_compiler_wl_CXX='-Wl,'
44513 lt_prog_compiler_pic_CXX='-KPIC'
44514 lt_prog_compiler_static_CXX='-Bstatic'
44519 case $cc_basename in
44521 # NonStop-UX NCC 3.20
44522 lt_prog_compiler_pic_CXX='-KPIC'
44531 lt_prog_compiler_can_build_shared_CXX=no
44537 # For platforms which do not support PIC, -DPIC is meaningless:
44539 lt_prog_compiler_pic_CXX=
44542 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
44546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
44547 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
44548 if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
44549 $as_echo_n "(cached) " >&6
44551 lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
44553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
44554 $as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
44555 lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
44558 # Check to make sure the PIC flag actually works.
44560 if test -n "$lt_prog_compiler_pic_CXX"; then
44561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
44562 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
44563 if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
44564 $as_echo_n "(cached) " >&6
44566 lt_cv_prog_compiler_pic_works_CXX=no
44567 ac_outfile=conftest.$ac_objext
44568 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
44569 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
44570 # Insert the option either (1) after the last *FLAGS variable, or
44571 # (2) before a word containing "conftest.", or (3) at the end.
44572 # Note that $ac_compile itself does not contain backslashes and begins
44573 # with a dollar sign (not a hyphen), so the echo should work correctly.
44574 # The option is referenced via a variable to avoid confusing sed.
44575 lt_compile=`echo "$ac_compile" | $SED \
44576 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
44577 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
44578 -e 's:$: $lt_compiler_flag:'`
44579 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
44580 (eval "$lt_compile" 2>conftest.err)
44582 cat conftest.err >&5
44583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44584 if (exit $ac_status) && test -s "$ac_outfile"; then
44585 # The compiler can only warn and ignore the option if not recognized
44586 # So say no if there are warnings other than the usual output.
44587 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
44588 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
44589 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
44590 lt_cv_prog_compiler_pic_works_CXX=yes
44596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
44597 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
44599 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
44600 case $lt_prog_compiler_pic_CXX in
44602 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
44605 lt_prog_compiler_pic_CXX=
44606 lt_prog_compiler_can_build_shared_CXX=no
44616 # Check to make sure the static flag actually works.
44618 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
44619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
44620 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
44621 if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
44622 $as_echo_n "(cached) " >&6
44624 lt_cv_prog_compiler_static_works_CXX=no
44625 save_LDFLAGS="$LDFLAGS"
44626 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
44627 echo "$lt_simple_link_test_code" > conftest.$ac_ext
44628 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
44629 # The linker can only warn and ignore the option if not recognized
44630 # So say no if there are warnings
44631 if test -s conftest.err; then
44632 # Append any errors to the config.log.
44633 cat conftest.err 1>&5
44634 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
44635 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
44636 if diff conftest.exp conftest.er2 >/dev/null; then
44637 lt_cv_prog_compiler_static_works_CXX=yes
44640 lt_cv_prog_compiler_static_works_CXX=yes
44644 LDFLAGS="$save_LDFLAGS"
44647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
44648 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
44650 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
44653 lt_prog_compiler_static_CXX=
44659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
44660 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
44661 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
44662 $as_echo_n "(cached) " >&6
44664 lt_cv_prog_compiler_c_o_CXX=no
44665 $RM -r conftest 2>/dev/null
44669 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
44671 lt_compiler_flag="-o out/conftest2.$ac_objext"
44672 # Insert the option either (1) after the last *FLAGS variable, or
44673 # (2) before a word containing "conftest.", or (3) at the end.
44674 # Note that $ac_compile itself does not contain backslashes and begins
44675 # with a dollar sign (not a hyphen), so the echo should work correctly.
44676 lt_compile=`echo "$ac_compile" | $SED \
44677 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
44678 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
44679 -e 's:$: $lt_compiler_flag:'`
44680 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
44681 (eval "$lt_compile" 2>out/conftest.err)
44683 cat out/conftest.err >&5
44684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44685 if (exit $ac_status) && test -s out/conftest2.$ac_objext
44687 # The compiler can only warn and ignore the option if not recognized
44688 # So say no if there are warnings
44689 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
44690 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
44691 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
44692 lt_cv_prog_compiler_c_o_CXX=yes
44697 # SGI C++ compiler will create directory out/ii_files/ for
44698 # template instantiation
44699 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
44700 $RM out/* && rmdir out
44706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
44707 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
44711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
44712 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
44713 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
44714 $as_echo_n "(cached) " >&6
44716 lt_cv_prog_compiler_c_o_CXX=no
44717 $RM -r conftest 2>/dev/null
44721 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
44723 lt_compiler_flag="-o out/conftest2.$ac_objext"
44724 # Insert the option either (1) after the last *FLAGS variable, or
44725 # (2) before a word containing "conftest.", or (3) at the end.
44726 # Note that $ac_compile itself does not contain backslashes and begins
44727 # with a dollar sign (not a hyphen), so the echo should work correctly.
44728 lt_compile=`echo "$ac_compile" | $SED \
44729 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
44730 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
44731 -e 's:$: $lt_compiler_flag:'`
44732 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
44733 (eval "$lt_compile" 2>out/conftest.err)
44735 cat out/conftest.err >&5
44736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44737 if (exit $ac_status) && test -s out/conftest2.$ac_objext
44739 # The compiler can only warn and ignore the option if not recognized
44740 # So say no if there are warnings
44741 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
44742 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
44743 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
44744 lt_cv_prog_compiler_c_o_CXX=yes
44749 # SGI C++ compiler will create directory out/ii_files/ for
44750 # template instantiation
44751 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
44752 $RM out/* && rmdir out
44758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
44759 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
44764 hard_links="nottested"
44765 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
44766 # do not overwrite the value of need_locks provided by the user
44767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
44768 $as_echo_n "checking if we can lock with hard links... " >&6; }
44771 ln conftest.a conftest.b 2>/dev/null && hard_links=no
44773 ln conftest.a conftest.b 2>&5 || hard_links=no
44774 ln conftest.a conftest.b 2>/dev/null && hard_links=no
44775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
44776 $as_echo "$hard_links" >&6; }
44777 if test "$hard_links" = no; then
44778 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
44779 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
44788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
44789 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
44791 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
44792 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
44795 # If we're using GNU nm, then we don't want the "-C" option.
44796 # -C means demangle to AIX nm, but means don't demangle with GNU nm
44797 # Also, AIX nm treats weak defined symbols like other global defined
44798 # symbols, whereas GNU nm marks them as "W".
44799 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
44800 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'
44802 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'
44806 export_symbols_cmds_CXX="$ltdll_cmds"
44808 cygwin* | mingw* | cegcc*)
44809 case $cc_basename in
44811 exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
44814 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'
44815 exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
44819 linux* | k*bsd*-gnu | gnu*)
44820 link_all_deplibs_CXX=no
44823 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
44827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
44828 $as_echo "$ld_shlibs_CXX" >&6; }
44829 test "$ld_shlibs_CXX" = no && can_build_shared=no
44831 with_gnu_ld_CXX=$with_gnu_ld
44839 # Do we need to explicitly link libc?
44841 case "x$archive_cmds_need_lc_CXX" in
44843 # Assume -lc should be added
44844 archive_cmds_need_lc_CXX=yes
44846 if test "$enable_shared" = yes && test "$GCC" = yes; then
44847 case $archive_cmds_CXX in
44849 # FIXME: we may have to deal with multi-command sequences.
44852 # Test whether the compiler implicitly links with -lc since on some
44853 # systems, -lgcc has to come before -lc. If gcc already passes -lc
44854 # to ld, don't add -lc before -lgcc.
44855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
44856 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
44857 if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
44858 $as_echo_n "(cached) " >&6
44861 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
44863 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
44864 (eval $ac_compile) 2>&5
44866 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
44867 test $ac_status = 0; } 2>conftest.err; then
44870 libobjs=conftest.$ac_objext
44872 wl=$lt_prog_compiler_wl_CXX
44873 pic_flag=$lt_prog_compiler_pic_CXX
44879 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
44880 allow_undefined_flag_CXX=
44881 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
44882 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
44884 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
44885 test $ac_status = 0; }
44887 lt_cv_archive_cmds_need_lc_CXX=no
44889 lt_cv_archive_cmds_need_lc_CXX=yes
44891 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
44893 cat conftest.err 1>&5
44898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
44899 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
44900 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
44968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
44969 $as_echo_n "checking dynamic linker characteristics... " >&6; }
44971 library_names_spec=
44972 libname_spec='lib$name'
44976 postuninstall_cmds=
44980 shlibpath_overrides_runpath=unknown
44982 dynamic_linker="$host_os ld.so"
44983 sys_lib_dlsearch_path_spec="/lib /usr/lib"
44984 need_lib_prefix=unknown
44985 hardcode_into_libs=no
44987 # when you set need_version to no, make sure it does not cause -set_version
44988 # flags to be left without arguments
44989 need_version=unknown
44993 version_type=linux # correct to gnu/linux during the next big refactor
44994 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
44995 shlibpath_var=LIBPATH
44997 # AIX 3 has no versioning support, so we append a major version to the name.
44998 soname_spec='${libname}${release}${shared_ext}$major'
45002 version_type=linux # correct to gnu/linux during the next big refactor
45005 hardcode_into_libs=yes
45006 if test "$host_cpu" = ia64; then
45007 # AIX 5 supports IA64
45008 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
45009 shlibpath_var=LD_LIBRARY_PATH
45011 # With GCC up to 2.95.x, collect2 would create an import file
45012 # for dependence libraries. The import file would start with
45013 # the line `#! .'. This would cause the generated library to
45014 # depend on `.', always an invalid library. This was fixed in
45015 # development snapshots of GCC prior to 3.0.
45017 aix4 | aix4.[01] | aix4.[01].*)
45018 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
45020 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
45023 can_build_shared=no
45027 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
45028 # soname into executable. Probably we can add versioning support to
45029 # collect2, so additional links can be useful in future.
45030 if test "$aix_use_runtimelinking" = yes; then
45031 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
45032 # instead of lib<name>.a to let people know that these are not
45033 # typical AIX shared libraries.
45034 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
45036 # We preserve .a as extension for shared libraries through AIX4.2
45037 # and later when we are not doing run time linking.
45038 library_names_spec='${libname}${release}.a $libname.a'
45039 soname_spec='${libname}${release}${shared_ext}$major'
45041 shlibpath_var=LIBPATH
45048 # Since July 2007 AmigaOS4 officially supports .so libraries.
45049 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
45050 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
45053 library_names_spec='$libname.ixlibrary $libname.a'
45054 # Create ${libname}_ixlibrary.a entries in /sys/libs.
45055 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'
45061 library_names_spec='${libname}${shared_ext}'
45062 dynamic_linker="$host_os ld.so"
45063 shlibpath_var=LIBRARY_PATH
45067 version_type=linux # correct to gnu/linux during the next big refactor
45069 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
45070 soname_spec='${libname}${release}${shared_ext}$major'
45071 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
45072 shlibpath_var=LD_LIBRARY_PATH
45073 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
45074 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
45075 # the default ld.so.conf also contains /usr/contrib/lib and
45076 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
45077 # libtool to hard-code these into programs
45080 cygwin* | mingw* | pw32* | cegcc*)
45081 version_type=windows
45086 case $GCC,$cc_basename in
45089 library_names_spec='$libname.dll.a'
45090 # DLL is installed to $(libdir)/../bin by postinstall_cmds
45091 postinstall_cmds='base_file=`basename \${file}`~
45092 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
45093 dldir=$destdir/`dirname \$dlpath`~
45094 test -d \$dldir || mkdir -p \$dldir~
45095 $install_prog $dir/$dlname \$dldir/$dlname~
45096 chmod a+x \$dldir/$dlname~
45097 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
45098 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
45100 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
45101 dlpath=$dir/\$dldll~
45103 shlibpath_overrides_runpath=yes
45107 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
45108 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
45112 # MinGW DLLs use traditional 'lib' prefix
45113 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
45116 # pw32 DLLs use 'pw' prefix rather than 'lib'
45117 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
45120 dynamic_linker='Win32 ld.exe'
45125 libname_spec='$name'
45126 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
45127 library_names_spec='${libname}.dll.lib'
45131 sys_lib_search_path_spec=
45134 for lt_path in $LIB
45137 # Let DOS variable expansion print the short 8.3 style file name.
45138 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
45139 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
45142 # Convert to MSYS style.
45143 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
45146 # Convert to unix form, then to dos form, then back to unix form
45147 # but this time dos style (no spaces!) so that the unix form looks
45148 # like /cygdrive/c/PROGRA~1:/cygdr...
45149 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
45150 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
45151 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
45154 sys_lib_search_path_spec="$LIB"
45155 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
45156 # It is most probably a Windows format PATH.
45157 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
45159 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
45161 # FIXME: find the short name or the path components, as spaces are
45162 # common. (e.g. "Program Files" -> "PROGRA~1")
45166 # DLL is installed to $(libdir)/../bin by postinstall_cmds
45167 postinstall_cmds='base_file=`basename \${file}`~
45168 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
45169 dldir=$destdir/`dirname \$dlpath`~
45170 test -d \$dldir || mkdir -p \$dldir~
45171 $install_prog $dir/$dlname \$dldir/$dlname'
45172 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
45173 dlpath=$dir/\$dldll~
45175 shlibpath_overrides_runpath=yes
45176 dynamic_linker='Win32 link.exe'
45180 # Assume MSVC wrapper
45181 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
45182 dynamic_linker='Win32 ld.exe'
45185 # FIXME: first we should search . and the directory the executable is in
45189 darwin* | rhapsody*)
45190 dynamic_linker="$host_os dyld"
45191 version_type=darwin
45194 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
45195 soname_spec='${libname}${release}${major}$shared_ext'
45196 shlibpath_overrides_runpath=yes
45197 shlibpath_var=DYLD_LIBRARY_PATH
45198 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
45200 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
45204 version_type=linux # correct to gnu/linux during the next big refactor
45207 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
45208 soname_spec='${libname}${release}${shared_ext}$major'
45209 shlibpath_var=LD_LIBRARY_PATH
45212 freebsd* | dragonfly*)
45213 # DragonFly does not have aout. When/if they implement a new
45214 # versioning mechanism, adjust this.
45215 if test -x /usr/bin/objformat; then
45216 objformat=`/usr/bin/objformat`
45219 freebsd[23].*) objformat=aout ;;
45220 *) objformat=elf ;;
45223 version_type=freebsd-$objformat
45224 case $version_type in
45226 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
45231 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
45235 shlibpath_var=LD_LIBRARY_PATH
45238 shlibpath_overrides_runpath=yes
45240 freebsd3.[01]* | freebsdelf3.[01]*)
45241 shlibpath_overrides_runpath=yes
45242 hardcode_into_libs=yes
45244 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
45245 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
45246 shlibpath_overrides_runpath=no
45247 hardcode_into_libs=yes
45249 *) # from 4.6 on, and DragonFly
45250 shlibpath_overrides_runpath=yes
45251 hardcode_into_libs=yes
45257 version_type=linux # correct to gnu/linux during the next big refactor
45260 dynamic_linker="$host_os runtime_loader"
45261 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
45262 soname_spec='${libname}${release}${shared_ext}$major'
45263 shlibpath_var=LIBRARY_PATH
45264 shlibpath_overrides_runpath=yes
45265 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
45266 hardcode_into_libs=yes
45269 hpux9* | hpux10* | hpux11*)
45270 # Give a soname corresponding to the major version so that dld.sl refuses to
45271 # link against other versions.
45278 hardcode_into_libs=yes
45279 dynamic_linker="$host_os dld.so"
45280 shlibpath_var=LD_LIBRARY_PATH
45281 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
45282 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
45283 soname_spec='${libname}${release}${shared_ext}$major'
45284 if test "X$HPUX_IA64_MODE" = X32; then
45285 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
45287 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
45289 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
45293 hardcode_into_libs=yes
45294 dynamic_linker="$host_os dld.sl"
45295 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
45296 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
45297 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
45298 soname_spec='${libname}${release}${shared_ext}$major'
45299 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
45300 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
45304 dynamic_linker="$host_os dld.sl"
45305 shlibpath_var=SHLIB_PATH
45306 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
45307 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
45308 soname_spec='${libname}${release}${shared_ext}$major'
45311 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
45312 postinstall_cmds='chmod 555 $lib'
45313 # or fails outright, so override atomically:
45314 install_override_mode=555
45318 version_type=linux # correct to gnu/linux during the next big refactor
45321 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
45322 soname_spec='${libname}${release}${shared_ext}$major'
45323 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
45324 shlibpath_var=LD_LIBRARY_PATH
45325 shlibpath_overrides_runpath=no
45326 hardcode_into_libs=yes
45329 irix5* | irix6* | nonstopux*)
45331 nonstopux*) version_type=nonstopux ;;
45333 if test "$lt_cv_prog_gnu_ld" = yes; then
45334 version_type=linux # correct to gnu/linux during the next big refactor
45341 soname_spec='${libname}${release}${shared_ext}$major'
45342 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
45344 irix5* | nonstopux*)
45345 libsuff= shlibsuff=
45348 case $LD in # libtool.m4 will add one of these switches to LD
45349 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
45350 libsuff= shlibsuff= libmagic=32-bit;;
45351 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
45352 libsuff=32 shlibsuff=N32 libmagic=N32;;
45353 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
45354 libsuff=64 shlibsuff=64 libmagic=64-bit;;
45355 *) libsuff= shlibsuff= libmagic=never-match;;
45359 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
45360 shlibpath_overrides_runpath=no
45361 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
45362 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
45363 hardcode_into_libs=yes
45366 # No shared lib support for Linux oldld, aout, or coff.
45367 linux*oldld* | linux*aout* | linux*coff*)
45371 # This must be glibc/ELF.
45372 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
45373 version_type=linux # correct to gnu/linux during the next big refactor
45376 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
45377 soname_spec='${libname}${release}${shared_ext}$major'
45378 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
45379 shlibpath_var=LD_LIBRARY_PATH
45380 shlibpath_overrides_runpath=no
45382 # Some binutils ld are patched to set DT_RUNPATH
45383 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
45384 $as_echo_n "(cached) " >&6
45386 lt_cv_shlibpath_overrides_runpath=no
45387 save_LDFLAGS=$LDFLAGS
45388 save_libdir=$libdir
45389 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
45390 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
45391 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
45392 /* end confdefs.h. */
45402 if ac_fn_cxx_try_link "$LINENO"; then :
45403 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
45404 lt_cv_shlibpath_overrides_runpath=yes
45407 rm -f core conftest.err conftest.$ac_objext \
45408 conftest$ac_exeext conftest.$ac_ext
45409 LDFLAGS=$save_LDFLAGS
45410 libdir=$save_libdir
45414 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
45416 # This implies no fast_install, which is unacceptable.
45417 # Some rework will be needed to allow for fast_install
45418 # before this can be enabled.
45419 hardcode_into_libs=yes
45421 # Append ld.so.conf contents to the search path
45422 if test -f /etc/ld.so.conf; then
45423 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' ' '`
45424 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
45427 # We used to test for /lib/ld.so.1 and disable shared libraries on
45428 # powerpc, because MkLinux only supported shared libraries with the
45429 # GNU dynamic linker. Since this was broken with cross compilers,
45430 # most powerpc-linux boxes support dynamic linking these days and
45431 # people can always --disable-shared, the test was removed, and we
45432 # assume the GNU/Linux dynamic linker is in use.
45433 dynamic_linker='GNU/Linux ld.so'
45440 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
45441 soname_spec='${libname}${release}${shared_ext}$major'
45442 shlibpath_var=LD_LIBRARY_PATH
45443 shlibpath_overrides_runpath=no
45444 hardcode_into_libs=yes
45445 dynamic_linker='NetBSD ld.elf_so'
45452 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
45453 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
45454 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
45455 dynamic_linker='NetBSD (a.out) ld.so'
45457 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
45458 soname_spec='${libname}${release}${shared_ext}$major'
45459 dynamic_linker='NetBSD ld.elf_so'
45461 shlibpath_var=LD_LIBRARY_PATH
45462 shlibpath_overrides_runpath=yes
45463 hardcode_into_libs=yes
45467 version_type=linux # correct to gnu/linux during the next big refactor
45468 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
45469 shlibpath_var=LD_LIBRARY_PATH
45470 shlibpath_overrides_runpath=yes
45477 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
45478 soname_spec='${libname}${release}${shared_ext}$major'
45479 shlibpath_var=LD_LIBRARY_PATH
45480 shlibpath_overrides_runpath=no
45481 hardcode_into_libs=yes
45482 dynamic_linker='ldqnx.so'
45487 sys_lib_dlsearch_path_spec="/usr/lib"
45489 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
45491 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
45492 *) need_version=no ;;
45494 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
45495 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
45496 shlibpath_var=LD_LIBRARY_PATH
45497 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
45499 openbsd2.[89] | openbsd2.[89].*)
45500 shlibpath_overrides_runpath=no
45503 shlibpath_overrides_runpath=yes
45507 shlibpath_overrides_runpath=yes
45512 libname_spec='$name'
45515 library_names_spec='$libname${shared_ext} $libname.a'
45516 dynamic_linker='OS/2 ld.exe'
45517 shlibpath_var=LIBPATH
45520 osf3* | osf4* | osf5*)
45524 soname_spec='${libname}${release}${shared_ext}$major'
45525 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
45526 shlibpath_var=LD_LIBRARY_PATH
45527 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
45528 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
45536 version_type=linux # correct to gnu/linux during the next big refactor
45539 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
45540 soname_spec='${libname}${release}${shared_ext}$major'
45541 shlibpath_var=LD_LIBRARY_PATH
45542 shlibpath_overrides_runpath=yes
45543 hardcode_into_libs=yes
45544 # ldd complains unless libraries are executable
45545 postinstall_cmds='chmod +x $lib'
45550 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
45551 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
45552 shlibpath_var=LD_LIBRARY_PATH
45553 shlibpath_overrides_runpath=yes
45554 if test "$with_gnu_ld" = yes; then
45561 version_type=linux # correct to gnu/linux during the next big refactor
45562 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
45563 soname_spec='${libname}${release}${shared_ext}$major'
45564 shlibpath_var=LD_LIBRARY_PATH
45565 case $host_vendor in
45567 shlibpath_overrides_runpath=no
45569 runpath_var=LD_RUN_PATH
45577 shlibpath_overrides_runpath=no
45578 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
45584 if test -d /usr/nec ;then
45585 version_type=linux # correct to gnu/linux during the next big refactor
45586 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
45587 soname_spec='$libname${shared_ext}.$major'
45588 shlibpath_var=LD_LIBRARY_PATH
45592 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
45593 version_type=freebsd-elf
45596 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
45597 soname_spec='${libname}${release}${shared_ext}$major'
45598 shlibpath_var=LD_LIBRARY_PATH
45599 shlibpath_overrides_runpath=yes
45600 hardcode_into_libs=yes
45601 if test "$with_gnu_ld" = yes; then
45602 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
45604 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
45607 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
45611 sys_lib_dlsearch_path_spec='/usr/lib'
45615 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
45616 version_type=linux # correct to gnu/linux during the next big refactor
45619 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
45620 shlibpath_var=LD_LIBRARY_PATH
45621 shlibpath_overrides_runpath=no
45622 hardcode_into_libs=yes
45626 version_type=linux # correct to gnu/linux during the next big refactor
45627 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
45628 soname_spec='${libname}${release}${shared_ext}$major'
45629 shlibpath_var=LD_LIBRARY_PATH
45636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
45637 $as_echo "$dynamic_linker" >&6; }
45638 test "$dynamic_linker" = no && can_build_shared=no
45640 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
45641 if test "$GCC" = yes; then
45642 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
45645 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
45646 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
45648 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
45649 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
45689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
45690 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
45691 hardcode_action_CXX=
45692 if test -n "$hardcode_libdir_flag_spec_CXX" ||
45693 test -n "$runpath_var_CXX" ||
45694 test "X$hardcode_automatic_CXX" = "Xyes" ; then
45696 # We can hardcode non-existent directories.
45697 if test "$hardcode_direct_CXX" != no &&
45698 # If the only mechanism to avoid hardcoding is shlibpath_var, we
45699 # have to relink, otherwise we might link with an installed library
45700 # when we should be linking with a yet-to-be-installed one
45701 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
45702 test "$hardcode_minus_L_CXX" != no; then
45703 # Linking always hardcodes the temporary library directory.
45704 hardcode_action_CXX=relink
45706 # We can link without hardcoding, and we can hardcode nonexisting dirs.
45707 hardcode_action_CXX=immediate
45710 # We cannot hardcode anything, or else we can only hardcode existing
45712 hardcode_action_CXX=unsupported
45714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
45715 $as_echo "$hardcode_action_CXX" >&6; }
45717 if test "$hardcode_action_CXX" = relink ||
45718 test "$inherit_rpath_CXX" = yes; then
45719 # Fast installation is not supported
45720 enable_fast_install=no
45721 elif test "$shlibpath_overrides_runpath" = yes ||
45722 test "$enable_shared" = no; then
45723 # Fast installation is not necessary
45724 enable_fast_install=needless
45733 fi # test -n "$compiler"
45736 CFLAGS=$lt_save_CFLAGS
45740 with_gnu_ld=$lt_save_with_gnu_ld
45741 lt_cv_path_LDCXX=$lt_cv_path_LD
45742 lt_cv_path_LD=$lt_save_path_LD
45743 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
45744 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
45745 fi # test "$_lt_caught_CXX_error" != yes
45748 ac_cpp='$CPP $CPPFLAGS'
45749 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
45750 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
45751 ac_compiler_gnu=$ac_cv_c_compiler_gnu
45767 ac_config_commands="$ac_config_commands libtool"
45772 # Only expand once:
45778 # Check whether --enable-self-checks was given.
45779 if test "${enable_self_checks+set}" = set; then :
45780 enableval=$enable_self_checks; enable_self_checks=$enableval
45782 enable_self_checks=no
45786 # Check whether --enable-fips140-mode was given.
45787 if test "${enable_fips140_mode+set}" = set; then :
45788 enableval=$enable_fips140_mode; enable_fips=$enableval
45793 if test "$enable_fips" = "yes"; then
45794 ENABLE_FIPS140_TRUE=
45795 ENABLE_FIPS140_FALSE='#'
45797 ENABLE_FIPS140_TRUE='#'
45798 ENABLE_FIPS140_FALSE=
45801 if test "$enable_fips" = "yes" ;then
45817 acl_save_prefix="$prefix"
45818 prefix="$acl_final_prefix"
45819 acl_save_exec_prefix="$exec_prefix"
45820 exec_prefix="$acl_final_exec_prefix"
45822 eval additional_includedir=\"$includedir\"
45823 eval additional_libdir=\"$libdir\"
45825 exec_prefix="$acl_save_exec_prefix"
45826 prefix="$acl_save_prefix"
45829 # Check whether --with-libdl-prefix was given.
45830 if test "${with_libdl_prefix+set}" = set; then :
45831 withval=$with_libdl_prefix;
45832 if test "X$withval" = "Xno"; then
45835 if test "X$withval" = "X"; then
45837 acl_save_prefix="$prefix"
45838 prefix="$acl_final_prefix"
45839 acl_save_exec_prefix="$exec_prefix"
45840 exec_prefix="$acl_final_exec_prefix"
45842 eval additional_includedir=\"$includedir\"
45843 eval additional_libdir=\"$libdir\"
45845 exec_prefix="$acl_save_exec_prefix"
45846 prefix="$acl_save_prefix"
45849 additional_includedir="$withval/include"
45850 additional_libdir="$withval/$acl_libdirstem"
45851 if test "$acl_libdirstem2" != "$acl_libdirstem" \
45852 && ! test -d "$withval/$acl_libdirstem"; then
45853 additional_libdir="$withval/$acl_libdirstem2"
45867 names_already_handled=
45868 names_next_round='dl '
45869 while test -n "$names_next_round"; do
45870 names_this_round="$names_next_round"
45872 for name in $names_this_round; do
45874 for n in $names_already_handled; do
45875 if test "$n" = "$name"; then
45876 already_handled=yes
45880 if test -z "$already_handled"; then
45881 names_already_handled="$names_already_handled $name"
45882 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
45883 eval value=\"\$HAVE_LIB$uppername\"
45884 if test -n "$value"; then
45885 if test "$value" = yes; then
45886 eval value=\"\$LIB$uppername\"
45887 test -z "$value" || LIBDL="${LIBDL}${LIBDL:+ }$value"
45888 eval value=\"\$LTLIB$uppername\"
45889 test -z "$value" || LTLIBDL="${LTLIBDL}${LTLIBDL:+ }$value"
45898 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
45899 if test -n "$acl_shlibext"; then
45900 shrext=".$acl_shlibext" # typically: shrext=.so
45904 if test $use_additional = yes; then
45905 dir="$additional_libdir"
45906 if test -n "$acl_shlibext"; then
45907 if test -f "$dir/$libname$shrext"; then
45909 found_so="$dir/$libname$shrext"
45911 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
45912 ver=`(cd "$dir" && \
45913 for f in "$libname$shrext".*; do echo "$f"; done \
45914 | sed -e "s,^$libname$shrext\\\\.,," \
45915 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
45916 | sed 1q ) 2>/dev/null`
45917 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
45919 found_so="$dir/$libname$shrext.$ver"
45922 eval library_names=\"$acl_library_names_spec\"
45923 for f in $library_names; do
45924 if test -f "$dir/$f"; then
45933 if test "X$found_dir" = "X"; then
45934 if test -f "$dir/$libname.$acl_libext"; then
45936 found_a="$dir/$libname.$acl_libext"
45939 if test "X$found_dir" != "X"; then
45940 if test -f "$dir/$libname.la"; then
45941 found_la="$dir/$libname.la"
45945 if test "X$found_dir" = "X"; then
45946 for x in $LDFLAGS $LTLIBDL; do
45948 acl_save_prefix="$prefix"
45949 prefix="$acl_final_prefix"
45950 acl_save_exec_prefix="$exec_prefix"
45951 exec_prefix="$acl_final_exec_prefix"
45953 exec_prefix="$acl_save_exec_prefix"
45954 prefix="$acl_save_prefix"
45958 dir=`echo "X$x" | sed -e 's/^X-L//'`
45959 if test -n "$acl_shlibext"; then
45960 if test -f "$dir/$libname$shrext"; then
45962 found_so="$dir/$libname$shrext"
45964 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
45965 ver=`(cd "$dir" && \
45966 for f in "$libname$shrext".*; do echo "$f"; done \
45967 | sed -e "s,^$libname$shrext\\\\.,," \
45968 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
45969 | sed 1q ) 2>/dev/null`
45970 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
45972 found_so="$dir/$libname$shrext.$ver"
45975 eval library_names=\"$acl_library_names_spec\"
45976 for f in $library_names; do
45977 if test -f "$dir/$f"; then
45986 if test "X$found_dir" = "X"; then
45987 if test -f "$dir/$libname.$acl_libext"; then
45989 found_a="$dir/$libname.$acl_libext"
45992 if test "X$found_dir" != "X"; then
45993 if test -f "$dir/$libname.la"; then
45994 found_la="$dir/$libname.la"
45999 if test "X$found_dir" != "X"; then
46004 if test "X$found_dir" != "X"; then
46005 LTLIBDL="${LTLIBDL}${LTLIBDL:+ }-L$found_dir -l$name"
46006 if test "X$found_so" != "X"; then
46007 if test "$enable_rpath" = no \
46008 || test "X$found_dir" = "X/usr/$acl_libdirstem" \
46009 || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
46010 LIBDL="${LIBDL}${LIBDL:+ }$found_so"
46013 for x in $ltrpathdirs; do
46014 if test "X$x" = "X$found_dir"; then
46019 if test -z "$haveit"; then
46020 ltrpathdirs="$ltrpathdirs $found_dir"
46022 if test "$acl_hardcode_direct" = yes; then
46023 LIBDL="${LIBDL}${LIBDL:+ }$found_so"
46025 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
46026 LIBDL="${LIBDL}${LIBDL:+ }$found_so"
46028 for x in $rpathdirs; do
46029 if test "X$x" = "X$found_dir"; then
46034 if test -z "$haveit"; then
46035 rpathdirs="$rpathdirs $found_dir"
46039 for x in $LDFLAGS $LIBDL; do
46041 acl_save_prefix="$prefix"
46042 prefix="$acl_final_prefix"
46043 acl_save_exec_prefix="$exec_prefix"
46044 exec_prefix="$acl_final_exec_prefix"
46046 exec_prefix="$acl_save_exec_prefix"
46047 prefix="$acl_save_prefix"
46049 if test "X$x" = "X-L$found_dir"; then
46054 if test -z "$haveit"; then
46055 LIBDL="${LIBDL}${LIBDL:+ }-L$found_dir"
46057 if test "$acl_hardcode_minus_L" != no; then
46058 LIBDL="${LIBDL}${LIBDL:+ }$found_so"
46060 LIBDL="${LIBDL}${LIBDL:+ }-l$name"
46066 if test "X$found_a" != "X"; then
46067 LIBDL="${LIBDL}${LIBDL:+ }$found_a"
46069 LIBDL="${LIBDL}${LIBDL:+ }-L$found_dir -l$name"
46072 additional_includedir=
46073 case "$found_dir" in
46074 */$acl_libdirstem | */$acl_libdirstem/)
46075 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
46076 if test "$name" = 'dl'; then
46077 LIBDL_PREFIX="$basedir"
46079 additional_includedir="$basedir/include"
46081 */$acl_libdirstem2 | */$acl_libdirstem2/)
46082 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
46083 if test "$name" = 'dl'; then
46084 LIBDL_PREFIX="$basedir"
46086 additional_includedir="$basedir/include"
46089 if test "X$additional_includedir" != "X"; then
46090 if test "X$additional_includedir" != "X/usr/include"; then
46092 if test "X$additional_includedir" = "X/usr/local/include"; then
46093 if test -n "$GCC"; then
46095 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
46099 if test -z "$haveit"; then
46100 for x in $CPPFLAGS $INCDL; do
46102 acl_save_prefix="$prefix"
46103 prefix="$acl_final_prefix"
46104 acl_save_exec_prefix="$exec_prefix"
46105 exec_prefix="$acl_final_exec_prefix"
46107 exec_prefix="$acl_save_exec_prefix"
46108 prefix="$acl_save_prefix"
46110 if test "X$x" = "X-I$additional_includedir"; then
46115 if test -z "$haveit"; then
46116 if test -d "$additional_includedir"; then
46117 INCDL="${INCDL}${INCDL:+ }-I$additional_includedir"
46123 if test -n "$found_la"; then
46124 save_libdir="$libdir"
46125 case "$found_la" in
46126 */* | *\\*) . "$found_la" ;;
46127 *) . "./$found_la" ;;
46129 libdir="$save_libdir"
46130 for dep in $dependency_libs; do
46133 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
46134 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
46135 && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
46137 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
46138 || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
46139 if test -n "$GCC"; then
46141 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
46145 if test -z "$haveit"; then
46147 for x in $LDFLAGS $LIBDL; do
46149 acl_save_prefix="$prefix"
46150 prefix="$acl_final_prefix"
46151 acl_save_exec_prefix="$exec_prefix"
46152 exec_prefix="$acl_final_exec_prefix"
46154 exec_prefix="$acl_save_exec_prefix"
46155 prefix="$acl_save_prefix"
46157 if test "X$x" = "X-L$additional_libdir"; then
46162 if test -z "$haveit"; then
46163 if test -d "$additional_libdir"; then
46164 LIBDL="${LIBDL}${LIBDL:+ }-L$additional_libdir"
46168 for x in $LDFLAGS $LTLIBDL; do
46170 acl_save_prefix="$prefix"
46171 prefix="$acl_final_prefix"
46172 acl_save_exec_prefix="$exec_prefix"
46173 exec_prefix="$acl_final_exec_prefix"
46175 exec_prefix="$acl_save_exec_prefix"
46176 prefix="$acl_save_prefix"
46178 if test "X$x" = "X-L$additional_libdir"; then
46183 if test -z "$haveit"; then
46184 if test -d "$additional_libdir"; then
46185 LTLIBDL="${LTLIBDL}${LTLIBDL:+ }-L$additional_libdir"
46192 dir=`echo "X$dep" | sed -e 's/^X-R//'`
46193 if test "$enable_rpath" != no; then
46195 for x in $rpathdirs; do
46196 if test "X$x" = "X$dir"; then
46201 if test -z "$haveit"; then
46202 rpathdirs="$rpathdirs $dir"
46205 for x in $ltrpathdirs; do
46206 if test "X$x" = "X$dir"; then
46211 if test -z "$haveit"; then
46212 ltrpathdirs="$ltrpathdirs $dir"
46217 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
46220 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
46223 LIBDL="${LIBDL}${LIBDL:+ }$dep"
46224 LTLIBDL="${LTLIBDL}${LTLIBDL:+ }$dep"
46230 LIBDL="${LIBDL}${LIBDL:+ }-l$name"
46231 LTLIBDL="${LTLIBDL}${LTLIBDL:+ }-l$name"
46237 if test "X$rpathdirs" != "X"; then
46238 if test -n "$acl_hardcode_libdir_separator"; then
46240 for found_dir in $rpathdirs; do
46241 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
46243 acl_save_libdir="$libdir"
46245 eval flag=\"$acl_hardcode_libdir_flag_spec\"
46246 libdir="$acl_save_libdir"
46247 LIBDL="${LIBDL}${LIBDL:+ }$flag"
46249 for found_dir in $rpathdirs; do
46250 acl_save_libdir="$libdir"
46251 libdir="$found_dir"
46252 eval flag=\"$acl_hardcode_libdir_flag_spec\"
46253 libdir="$acl_save_libdir"
46254 LIBDL="${LIBDL}${LIBDL:+ }$flag"
46258 if test "X$ltrpathdirs" != "X"; then
46259 for found_dir in $ltrpathdirs; do
46260 LTLIBDL="${LTLIBDL}${LTLIBDL:+ }-R$found_dir"
46270 ac_save_CPPFLAGS="$CPPFLAGS"
46272 for element in $INCDL; do
46274 for x in $CPPFLAGS; do
46276 acl_save_prefix="$prefix"
46277 prefix="$acl_final_prefix"
46278 acl_save_exec_prefix="$exec_prefix"
46279 exec_prefix="$acl_final_exec_prefix"
46281 exec_prefix="$acl_save_exec_prefix"
46282 prefix="$acl_save_prefix"
46284 if test "X$x" = "X$element"; then
46289 if test -z "$haveit"; then
46290 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
46295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libdl" >&5
46296 $as_echo_n "checking for libdl... " >&6; }
46297 if ${ac_cv_libdl+:} false; then :
46298 $as_echo_n "(cached) " >&6
46301 ac_save_LIBS="$LIBS"
46303 *" -l"*) LIBS="$LIBS $LIBDL" ;;
46304 *) LIBS="$LIBDL $LIBS" ;;
46306 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
46307 /* end confdefs.h. */
46317 if ac_fn_c_try_link "$LINENO"; then :
46322 rm -f core conftest.err conftest.$ac_objext \
46323 conftest$ac_exeext conftest.$ac_ext
46324 LIBS="$ac_save_LIBS"
46327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libdl" >&5
46328 $as_echo "$ac_cv_libdl" >&6; }
46329 if test "$ac_cv_libdl" = yes; then
46332 $as_echo "#define HAVE_LIBDL 1" >>confdefs.h
46334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libdl" >&5
46335 $as_echo_n "checking how to link with libdl... " >&6; }
46336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBDL" >&5
46337 $as_echo "$LIBDL" >&6; }
46340 CPPFLAGS="$ac_save_CPPFLAGS"
46352 if test "x$HAVE_LIBDL" = "xyes";then
46353 enable_self_checks=yes
46356 $as_echo "#define ENABLE_FIPS140 1" >>confdefs.h
46359 FIPS140_LIBS=$LIBDL
46363 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
46365 *** This system is not supported in FIPS140 mode.
46366 *** libdl and dladdr() are required.
46368 $as_echo "$as_me: WARNING:
46370 *** This system is not supported in FIPS140 mode.
46371 *** libdl and dladdr() are required.
46376 # Check whether --enable-non-suiteb-curves was given.
46377 if test "${enable_non_suiteb_curves+set}" = set; then :
46378 enableval=$enable_non_suiteb_curves; enable_non_suiteb=$enableval
46380 enable_non_suiteb=yes
46383 if test "$enable_non_suiteb" = "yes" ;then
46385 $as_echo "#define ENABLE_NON_SUITEB_CURVES 1" >>confdefs.h
46389 if test "$enable_self_checks" = "yes"; then
46390 ENABLE_SELF_CHECKS_TRUE=
46391 ENABLE_SELF_CHECKS_FALSE='#'
46393 ENABLE_SELF_CHECKS_TRUE='#'
46394 ENABLE_SELF_CHECKS_FALSE=
46397 if test "$enable_self_checks" = "yes" ;then
46399 $as_echo "#define ENABLE_SELF_CHECKS 1" >>confdefs.h
46403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build libdane" >&5
46404 $as_echo_n "checking whether to build libdane... " >&6; }
46405 # Check whether --enable-libdane was given.
46406 if test "${enable_libdane+set}" = set; then :
46407 enableval=$enable_libdane; enable_dane=$enableval
46412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_dane" >&5
46413 $as_echo "$enable_dane" >&6; }
46415 if test "$enable_dane" != "no"; then
46416 LIBS="$oldlibs -lunbound"
46417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unbound library" >&5
46418 $as_echo_n "checking for unbound library... " >&6; }
46419 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
46420 /* end confdefs.h. */
46422 #include <unbound.h>
46427 struct ub_ctx* ctx;
46428 ctx = ub_ctx_create();
46433 if ac_fn_c_try_link "$LINENO"; then :
46434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
46435 $as_echo "yes" >&6; }
46436 UNBOUND_LIBS=-lunbound
46440 $as_echo "#define HAVE_DANE 1" >>confdefs.h
46444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
46445 $as_echo "no" >&6; }
46446 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
46448 *** libunbound was not found. Libdane will not be built.
46450 $as_echo "$as_me: WARNING:
46452 *** libunbound was not found. Libdane will not be built.
46456 rm -f core conftest.err conftest.$ac_objext \
46457 conftest$ac_exeext conftest.$ac_ext
46461 if test "$enable_dane" = "yes"; then
46463 ENABLE_DANE_FALSE='#'
46465 ENABLE_DANE_TRUE='#'
46471 # Check whether --with-unbound-root-key-file was given.
46472 if test "${with_unbound_root_key_file+set}" = set; then :
46473 withval=$with_unbound_root_key_file; unbound_root_key_file="$withval"
46475 if test "$have_win" = yes; then
46476 unbound_root_key_file="C:\\Program Files\\Unbound\\root.key"
46478 if test -f /var/lib/unbound/root.key;then
46479 unbound_root_key_file="/var/lib/unbound/root.key"
46481 unbound_root_key_file="/etc/unbound/root.key"
46489 cat >>confdefs.h <<_ACEOF
46490 #define UNBOUND_ROOT_KEY_FILE "$unbound_root_key_file"
46495 # Check whether --with-system-priority-file was given.
46496 if test "${with_system_priority_file+set}" = set; then :
46497 withval=$with_system_priority_file; system_priority_file="$withval"
46499 system_priority_file="/etc/gnutls/default-priorities"
46505 cat >>confdefs.h <<_ACEOF
46506 #define SYSTEM_PRIORITY_FILE "$system_priority_file"
46510 P11_KIT_MINIMUM=0.20.0
46512 # Check whether --with-p11-kit was given.
46513 if test "${with_p11_kit+set}" = set; then :
46514 withval=$with_p11_kit;
46517 if test "$with_p11_kit" != "no"; then
46520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for P11_KIT" >&5
46521 $as_echo_n "checking for P11_KIT... " >&6; }
46523 if test -n "$PKG_CONFIG"; then
46524 if test -n "$P11_KIT_CFLAGS"; then
46525 pkg_cv_P11_KIT_CFLAGS="$P11_KIT_CFLAGS"
46527 if test -n "$PKG_CONFIG" && \
46528 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"p11-kit-1 >= \$P11_KIT_MINIMUM\""; } >&5
46529 ($PKG_CONFIG --exists --print-errors "p11-kit-1 >= $P11_KIT_MINIMUM") 2>&5
46531 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
46532 test $ac_status = 0; }; then
46533 pkg_cv_P11_KIT_CFLAGS=`$PKG_CONFIG --cflags "p11-kit-1 >= $P11_KIT_MINIMUM" 2>/dev/null`
46541 if test -n "$PKG_CONFIG"; then
46542 if test -n "$P11_KIT_LIBS"; then
46543 pkg_cv_P11_KIT_LIBS="$P11_KIT_LIBS"
46545 if test -n "$PKG_CONFIG" && \
46546 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"p11-kit-1 >= \$P11_KIT_MINIMUM\""; } >&5
46547 ($PKG_CONFIG --exists --print-errors "p11-kit-1 >= $P11_KIT_MINIMUM") 2>&5
46549 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
46550 test $ac_status = 0; }; then
46551 pkg_cv_P11_KIT_LIBS=`$PKG_CONFIG --libs "p11-kit-1 >= $P11_KIT_MINIMUM" 2>/dev/null`
46562 if test $pkg_failed = yes; then
46564 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
46565 _pkg_short_errors_supported=yes
46567 _pkg_short_errors_supported=no
46569 if test $_pkg_short_errors_supported = yes; then
46570 P11_KIT_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "p11-kit-1 >= $P11_KIT_MINIMUM"`
46572 P11_KIT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "p11-kit-1 >= $P11_KIT_MINIMUM"`
46574 # Put the nasty error message in config.log where it belongs
46575 echo "$P11_KIT_PKG_ERRORS" >&5
46577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
46578 $as_echo "no" >&6; }
46580 elif test $pkg_failed = untried; then
46583 P11_KIT_CFLAGS=$pkg_cv_P11_KIT_CFLAGS
46584 P11_KIT_LIBS=$pkg_cv_P11_KIT_LIBS
46585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
46586 $as_echo "yes" >&6; }
46589 if test "$with_p11_kit" != "no";then
46591 $as_echo "#define ENABLE_PKCS11 1" >>confdefs.h
46593 if test "x$GNUTLS_REQUIRES_PRIVATE" = "x"; then
46594 GNUTLS_REQUIRES_PRIVATE="Requires.private: p11-kit-1"
46596 GNUTLS_REQUIRES_PRIVATE="${GNUTLS_REQUIRES_PRIVATE}, p11-kit-1"
46600 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
46602 *** p11-kit >= $P11_KIT_MINIMUM was not found. PKCS #11 support will be disabled.
46603 *** You may get it from http://p11-glue.freedesktop.org/p11-kit.html
46605 $as_echo "$as_me: WARNING:
46607 *** p11-kit >= $P11_KIT_MINIMUM was not found. PKCS #11 support will be disabled.
46608 *** You may get it from http://p11-glue.freedesktop.org/p11-kit.html
46613 if test "$with_p11_kit" != "no"; then
46614 ENABLE_PKCS11_TRUE=
46615 ENABLE_PKCS11_FALSE='#'
46617 ENABLE_PKCS11_TRUE='#'
46618 ENABLE_PKCS11_FALSE=
46623 # Check whether --with-tpm was given.
46624 if test "${with_tpm+set}" = set; then :
46625 withval=$with_tpm; with_tpm=$withval
46630 if test "$with_tpm" != "no"; then
46631 LIBS="$oldlibs -ltspi"
46632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tss library" >&5
46633 $as_echo_n "checking for tss library... " >&6; }
46634 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
46635 /* end confdefs.h. */
46637 #include <trousers/tss.h>
46638 #include <trousers/trousers.h>
46643 int err = Tspi_Context_Create((void *)0);
46644 Trspi_Error_String(err);
46649 if ac_fn_c_try_link "$LINENO"; then :
46650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
46651 $as_echo "yes" >&6; }
46656 $as_echo "#define HAVE_TROUSERS 1" >>confdefs.h
46660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
46661 $as_echo "no" >&6; }
46662 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
46664 *** trousers was not found. TPM support will be disabled.
46666 $as_echo "$as_me: WARNING:
46668 *** trousers was not found. TPM support will be disabled.
46672 rm -f core conftest.err conftest.$ac_objext \
46673 conftest$ac_exeext conftest.$ac_ext
46677 if test "$with_tpm" != "no"; then
46678 ENABLE_TROUSERS_TRUE=
46679 ENABLE_TROUSERS_FALSE='#'
46681 ENABLE_TROUSERS_TRUE='#'
46682 ENABLE_TROUSERS_FALSE=
46688 ac_header_dirent=no
46689 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
46690 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
46691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
46692 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
46693 if eval \${$as_ac_Header+:} false; then :
46694 $as_echo_n "(cached) " >&6
46696 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
46697 /* end confdefs.h. */
46698 #include <sys/types.h>
46710 if ac_fn_c_try_compile "$LINENO"; then :
46711 eval "$as_ac_Header=yes"
46713 eval "$as_ac_Header=no"
46715 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
46717 eval ac_res=\$$as_ac_Header
46718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
46719 $as_echo "$ac_res" >&6; }
46720 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
46721 cat >>confdefs.h <<_ACEOF
46722 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
46725 ac_header_dirent=$ac_hdr; break
46729 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
46730 if test $ac_header_dirent = dirent.h; then
46731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
46732 $as_echo_n "checking for library containing opendir... " >&6; }
46733 if ${ac_cv_search_opendir+:} false; then :
46734 $as_echo_n "(cached) " >&6
46736 ac_func_search_save_LIBS=$LIBS
46737 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
46738 /* end confdefs.h. */
46740 /* Override any GCC internal prototype to avoid an error.
46741 Use char because int might match the return type of a GCC
46742 builtin and then its argument prototype would still apply. */
46755 for ac_lib in '' dir; do
46756 if test -z "$ac_lib"; then
46757 ac_res="none required"
46760 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
46762 if ac_fn_c_try_link "$LINENO"; then :
46763 ac_cv_search_opendir=$ac_res
46765 rm -f core conftest.err conftest.$ac_objext \
46767 if ${ac_cv_search_opendir+:} false; then :
46771 if ${ac_cv_search_opendir+:} false; then :
46774 ac_cv_search_opendir=no
46776 rm conftest.$ac_ext
46777 LIBS=$ac_func_search_save_LIBS
46779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
46780 $as_echo "$ac_cv_search_opendir" >&6; }
46781 ac_res=$ac_cv_search_opendir
46782 if test "$ac_res" != no; then :
46783 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
46788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
46789 $as_echo_n "checking for library containing opendir... " >&6; }
46790 if ${ac_cv_search_opendir+:} false; then :
46791 $as_echo_n "(cached) " >&6
46793 ac_func_search_save_LIBS=$LIBS
46794 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
46795 /* end confdefs.h. */
46797 /* Override any GCC internal prototype to avoid an error.
46798 Use char because int might match the return type of a GCC
46799 builtin and then its argument prototype would still apply. */
46812 for ac_lib in '' x; do
46813 if test -z "$ac_lib"; then
46814 ac_res="none required"
46817 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
46819 if ac_fn_c_try_link "$LINENO"; then :
46820 ac_cv_search_opendir=$ac_res
46822 rm -f core conftest.err conftest.$ac_objext \
46824 if ${ac_cv_search_opendir+:} false; then :
46828 if ${ac_cv_search_opendir+:} false; then :
46831 ac_cv_search_opendir=no
46833 rm conftest.$ac_ext
46834 LIBS=$ac_func_search_save_LIBS
46836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
46837 $as_echo "$ac_cv_search_opendir" >&6; }
46838 ac_res=$ac_cv_search_opendir
46839 if test "$ac_res" != no; then :
46840 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
46847 # =================
46849 # =================
46851 sys/mman.h sys/param.h sys/poll.h sys/procset.h \
46852 sys/select.h sys/socket.h sys/stropts.h sys/time.h \
46853 sys/un.h sys/wait.h dlfcn.h errno.h \
46854 fcntl.h libgen.h libintl.h memory.h \
46855 netinet/in.h setjmp.h stdbool.h sysexits.h \
46858 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
46859 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
46860 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
46861 cat >>confdefs.h <<_ACEOF
46862 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
46870 for ac_header in stdarg.h varargs.h
46872 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
46873 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
46874 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
46875 cat >>confdefs.h <<_ACEOF
46876 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
46878 lo_have_arg_hdr=true;break
46880 lo_have_arg_hdr=false
46886 for ac_header in string.h strings.h
46888 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
46889 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
46890 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
46891 cat >>confdefs.h <<_ACEOF
46892 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
46894 lo_have_str_hdr=true;break
46896 lo_have_str_hdr=false
46902 for ac_header in limits.h sys/limits.h values.h
46904 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
46905 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
46906 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
46907 cat >>confdefs.h <<_ACEOF
46908 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
46910 lo_have_lim_hdr=true;break
46912 lo_have_lim_hdr=false
46918 for ac_header in inttypes.h stdint.h
46920 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
46921 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
46922 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
46923 cat >>confdefs.h <<_ACEOF
46924 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
46926 lo_have_typ_hdr=true;break
46928 lo_have_typ_hdr=false
46934 # ----------------------------------------------------------------------
46935 # check for various programs used during the build.
46936 # On OS/X, "wchar.h" needs "runetype.h" to work properly.
46937 # ----------------------------------------------------------------------
46938 for ac_header in runetype.h wchar.h
46940 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
46941 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "
46942 $ac_includes_default
46943 #if HAVE_RUNETYPE_H
46944 # include <runetype.h>
46948 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
46949 cat >>confdefs.h <<_ACEOF
46950 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
46958 # Check whether --enable-nls was given.
46959 if test "${enable_nls+set}" = set; then :
46960 enableval=$enable_nls;
46963 if test "x$enable_nls" != "xno" && \
46964 test "X${ac_cv_header_libintl_h}" = Xyes; then :
46967 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
46971 # --------------------------------------------
46972 # Verify certain entries from AC_CHECK_HEADERS
46973 # --------------------------------------------
46974 ${lo_have_arg_hdr} || \
46975 as_fn_error $? "you must have stdarg.h or varargs.h on your system" "$LINENO" 5
46977 ${lo_have_str_hdr} || \
46978 as_fn_error $? "you must have string.h or strings.h on your system" "$LINENO" 5
46980 ${lo_have_lim_hdr} || \
46981 as_fn_error $? "you must have one of limits.h, sys/limits.h or values.h" "$LINENO" 5
46983 ${lo_have_typ_hdr} || \
46984 as_fn_error $? "you must have inttypes.h or stdint.h on your system" "$LINENO" 5
46986 for f in sys_types sys_param sys_stat string errno stdlib memory setjmp
46987 do eval as_ac_var=\${ac_cv_header_${f}_h}
46988 test "X${as_ac_var}" = Xyes || {
46989 as_fn_error $? "you must have ${f}.h on your system" "$LINENO" 5
46992 test "X${ac_cv_header_inttypes_h-no}" = Xyes || \
46993 echo '#include <stdint.h>' > inttypes.h
46995 # ----------------------------------------------------------------------
46996 # Checks for typedefs
46997 # ----------------------------------------------------------------------
46998 ac_fn_c_check_type "$LINENO" "wchar_t" "ac_cv_type_wchar_t" "$ac_includes_default"
46999 if test "x$ac_cv_type_wchar_t" = xyes; then :
47001 cat >>confdefs.h <<_ACEOF
47002 #define HAVE_WCHAR_T 1
47008 ac_fn_c_check_type "$LINENO" "wint_t" "ac_cv_type_wint_t" "
47009 $ac_includes_default
47010 #if HAVE_RUNETYPE_H
47011 # include <runetype.h>
47014 # include <wchar.h>
47018 if test "x$ac_cv_type_wint_t" = xyes; then :
47020 cat >>confdefs.h <<_ACEOF
47021 #define HAVE_WINT_T 1
47027 ac_fn_c_check_type "$LINENO" "int8_t" "ac_cv_type_int8_t" "$ac_includes_default"
47028 if test "x$ac_cv_type_int8_t" = xyes; then :
47030 cat >>confdefs.h <<_ACEOF
47031 #define HAVE_INT8_T 1
47036 ac_fn_c_check_type "$LINENO" "uint8_t" "ac_cv_type_uint8_t" "$ac_includes_default"
47037 if test "x$ac_cv_type_uint8_t" = xyes; then :
47039 cat >>confdefs.h <<_ACEOF
47040 #define HAVE_UINT8_T 1
47045 ac_fn_c_check_type "$LINENO" "int16_t" "ac_cv_type_int16_t" "$ac_includes_default"
47046 if test "x$ac_cv_type_int16_t" = xyes; then :
47048 cat >>confdefs.h <<_ACEOF
47049 #define HAVE_INT16_T 1
47054 ac_fn_c_check_type "$LINENO" "uint16_t" "ac_cv_type_uint16_t" "$ac_includes_default"
47055 if test "x$ac_cv_type_uint16_t" = xyes; then :
47057 cat >>confdefs.h <<_ACEOF
47058 #define HAVE_UINT16_T 1
47063 ac_fn_c_check_type "$LINENO" "int32_t" "ac_cv_type_int32_t" "$ac_includes_default"
47064 if test "x$ac_cv_type_int32_t" = xyes; then :
47066 cat >>confdefs.h <<_ACEOF
47067 #define HAVE_INT32_T 1
47072 ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "$ac_includes_default"
47073 if test "x$ac_cv_type_uint32_t" = xyes; then :
47075 cat >>confdefs.h <<_ACEOF
47076 #define HAVE_UINT32_T 1
47081 ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
47082 if test "x$ac_cv_type_intptr_t" = xyes; then :
47084 cat >>confdefs.h <<_ACEOF
47085 #define HAVE_INTPTR_T 1
47090 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
47091 if test "x$ac_cv_type_uintptr_t" = xyes; then :
47093 cat >>confdefs.h <<_ACEOF
47094 #define HAVE_UINTPTR_T 1
47099 ac_fn_c_check_type "$LINENO" "uint_t" "ac_cv_type_uint_t" "$ac_includes_default"
47100 if test "x$ac_cv_type_uint_t" = xyes; then :
47102 cat >>confdefs.h <<_ACEOF
47103 #define HAVE_UINT_T 1
47108 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
47109 if test "x$ac_cv_type_pid_t" = xyes; then :
47111 cat >>confdefs.h <<_ACEOF
47112 #define HAVE_PID_T 1
47117 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
47118 if test "x$ac_cv_type_size_t" = xyes; then :
47120 cat >>confdefs.h <<_ACEOF
47121 #define HAVE_SIZE_T 1
47127 # The cast to long int works around a bug in the HP C Compiler
47128 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
47129 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
47130 # This bug is HP SR number 8606223364.
47131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of char*" >&5
47132 $as_echo_n "checking size of char*... " >&6; }
47133 if ${ac_cv_sizeof_charp+:} false; then :
47134 $as_echo_n "(cached) " >&6
47136 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (char*))" "ac_cv_sizeof_charp" "$ac_includes_default"; then :
47139 if test "$ac_cv_type_charp" = yes; then
47140 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
47141 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
47142 as_fn_error 77 "cannot compute sizeof (char*)
47143 See \`config.log' for more details" "$LINENO" 5; }
47145 ac_cv_sizeof_charp=0
47150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_charp" >&5
47151 $as_echo "$ac_cv_sizeof_charp" >&6; }
47155 cat >>confdefs.h <<_ACEOF
47156 #define SIZEOF_CHARP $ac_cv_sizeof_charp
47160 # The cast to long int works around a bug in the HP C Compiler
47161 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
47162 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
47163 # This bug is HP SR number 8606223364.
47164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
47165 $as_echo_n "checking size of int... " >&6; }
47166 if ${ac_cv_sizeof_int+:} false; then :
47167 $as_echo_n "(cached) " >&6
47169 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
47172 if test "$ac_cv_type_int" = yes; then
47173 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
47174 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
47175 as_fn_error 77 "cannot compute sizeof (int)
47176 See \`config.log' for more details" "$LINENO" 5; }
47183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
47184 $as_echo "$ac_cv_sizeof_int" >&6; }
47188 cat >>confdefs.h <<_ACEOF
47189 #define SIZEOF_INT $ac_cv_sizeof_int
47193 # The cast to long int works around a bug in the HP C Compiler
47194 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
47195 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
47196 # This bug is HP SR number 8606223364.
47197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
47198 $as_echo_n "checking size of long... " >&6; }
47199 if ${ac_cv_sizeof_long+:} false; then :
47200 $as_echo_n "(cached) " >&6
47202 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
47205 if test "$ac_cv_type_long" = yes; then
47206 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
47207 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
47208 as_fn_error 77 "cannot compute sizeof (long)
47209 See \`config.log' for more details" "$LINENO" 5; }
47211 ac_cv_sizeof_long=0
47216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
47217 $as_echo "$ac_cv_sizeof_long" >&6; }
47221 cat >>confdefs.h <<_ACEOF
47222 #define SIZEOF_LONG $ac_cv_sizeof_long
47226 # The cast to long int works around a bug in the HP C Compiler
47227 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
47228 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
47229 # This bug is HP SR number 8606223364.
47230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
47231 $as_echo_n "checking size of short... " >&6; }
47232 if ${ac_cv_sizeof_short+:} false; then :
47233 $as_echo_n "(cached) " >&6
47235 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
47238 if test "$ac_cv_type_short" = yes; then
47239 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
47240 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
47241 as_fn_error 77 "cannot compute sizeof (short)
47242 See \`config.log' for more details" "$LINENO" 5; }
47244 ac_cv_sizeof_short=0
47249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
47250 $as_echo "$ac_cv_sizeof_short" >&6; }
47254 cat >>confdefs.h <<_ACEOF
47255 #define SIZEOF_SHORT $ac_cv_sizeof_short
47263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pathfind in -lgen" >&5
47264 $as_echo_n "checking for pathfind in -lgen... " >&6; }
47265 if ${ac_cv_lib_gen_pathfind+:} false; then :
47266 $as_echo_n "(cached) " >&6
47268 ac_check_lib_save_LIBS=$LIBS
47270 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
47271 /* end confdefs.h. */
47273 /* Override any GCC internal prototype to avoid an error.
47274 Use char because int might match the return type of a GCC
47275 builtin and then its argument prototype would still apply. */
47283 return pathfind ();
47288 if ac_fn_c_try_link "$LINENO"; then :
47289 ac_cv_lib_gen_pathfind=yes
47291 ac_cv_lib_gen_pathfind=no
47293 rm -f core conftest.err conftest.$ac_objext \
47294 conftest$ac_exeext conftest.$ac_ext
47295 LIBS=$ac_check_lib_save_LIBS
47297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gen_pathfind" >&5
47298 $as_echo "$ac_cv_lib_gen_pathfind" >&6; }
47299 if test "x$ac_cv_lib_gen_pathfind" = xyes; then :
47300 cat >>confdefs.h <<_ACEOF
47301 #define HAVE_LIBGEN 1
47308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gettext in -lintl" >&5
47309 $as_echo_n "checking for gettext in -lintl... " >&6; }
47310 if ${ac_cv_lib_intl_gettext+:} false; then :
47311 $as_echo_n "(cached) " >&6
47313 ac_check_lib_save_LIBS=$LIBS
47314 LIBS="-lintl $LIBS"
47315 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
47316 /* end confdefs.h. */
47318 /* Override any GCC internal prototype to avoid an error.
47319 Use char because int might match the return type of a GCC
47320 builtin and then its argument prototype would still apply. */
47333 if ac_fn_c_try_link "$LINENO"; then :
47334 ac_cv_lib_intl_gettext=yes
47336 ac_cv_lib_intl_gettext=no
47338 rm -f core conftest.err conftest.$ac_objext \
47339 conftest$ac_exeext conftest.$ac_ext
47340 LIBS=$ac_check_lib_save_LIBS
47342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_gettext" >&5
47343 $as_echo "$ac_cv_lib_intl_gettext" >&6; }
47344 if test "x$ac_cv_lib_intl_gettext" = xyes; then :
47345 cat >>confdefs.h <<_ACEOF
47346 #define HAVE_LIBINTL 1
47349 LIBS="-lintl $LIBS"
47353 for ac_func in vprintf
47355 ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
47356 if test "x$ac_cv_func_vprintf" = xyes; then :
47357 cat >>confdefs.h <<_ACEOF
47358 #define HAVE_VPRINTF 1
47361 ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
47362 if test "x$ac_cv_func__doprnt" = xyes; then :
47364 $as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
47372 for ac_header in vfork.h
47374 ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
47375 if test "x$ac_cv_header_vfork_h" = xyes; then :
47376 cat >>confdefs.h <<_ACEOF
47377 #define HAVE_VFORK_H 1
47384 for ac_func in fork vfork
47386 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
47387 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
47388 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
47389 cat >>confdefs.h <<_ACEOF
47390 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
47396 if test "x$ac_cv_func_fork" = xyes; then
47397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
47398 $as_echo_n "checking for working fork... " >&6; }
47399 if ${ac_cv_func_fork_works+:} false; then :
47400 $as_echo_n "(cached) " >&6
47402 if test "$cross_compiling" = yes; then :
47403 ac_cv_func_fork_works=cross
47405 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
47406 /* end confdefs.h. */
47407 $ac_includes_default
47412 /* By Ruediger Kuhlmann. */
47413 return fork () < 0;
47419 if ac_fn_c_try_run "$LINENO"; then :
47420 ac_cv_func_fork_works=yes
47422 ac_cv_func_fork_works=no
47424 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
47425 conftest.$ac_objext conftest.beam conftest.$ac_ext
47429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
47430 $as_echo "$ac_cv_func_fork_works" >&6; }
47433 ac_cv_func_fork_works=$ac_cv_func_fork
47435 if test "x$ac_cv_func_fork_works" = xcross; then
47437 *-*-amigaos* | *-*-msdosdjgpp*)
47438 # Override, as these systems have only a dummy fork() stub
47439 ac_cv_func_fork_works=no
47442 ac_cv_func_fork_works=yes
47445 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
47446 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
47448 ac_cv_func_vfork_works=$ac_cv_func_vfork
47449 if test "x$ac_cv_func_vfork" = xyes; then
47450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
47451 $as_echo_n "checking for working vfork... " >&6; }
47452 if ${ac_cv_func_vfork_works+:} false; then :
47453 $as_echo_n "(cached) " >&6
47455 if test "$cross_compiling" = yes; then :
47456 ac_cv_func_vfork_works=cross
47458 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
47459 /* end confdefs.h. */
47460 /* Thanks to Paul Eggert for this test. */
47461 $ac_includes_default
47462 #include <sys/wait.h>
47463 #ifdef HAVE_VFORK_H
47464 # include <vfork.h>
47466 /* On some sparc systems, changes by the child to local and incoming
47467 argument registers are propagated back to the parent. The compiler
47468 is told about this with #include <vfork.h>, but some compilers
47469 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
47470 static variable whose address is put into a register that is
47471 clobbered by the vfork. */
47474 sparc_address_test (int arg)
47476 sparc_address_test (arg) int arg;
47479 static pid_t child;
47497 pid_t parent = getpid ();
47500 sparc_address_test (0);
47505 /* Here is another test for sparc vfork register problems. This
47506 test uses lots of local variables, at least as many local
47507 variables as main has allocated so far including compiler
47508 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
47509 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
47510 reuse the register of parent for one of the local variables,
47511 since it will think that parent can't possibly be used any more
47512 in this routine. Assigning to the local variable will thus
47513 munge parent in the parent process. */
47515 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
47516 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
47517 /* Convince the compiler that p..p7 are live; otherwise, it might
47518 use the same hardware register for all 8 local variables. */
47519 if (p != p1 || p != p2 || p != p3 || p != p4
47520 || p != p5 || p != p6 || p != p7)
47523 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
47524 from child file descriptors. If the child closes a descriptor
47525 before it execs or exits, this munges the parent's descriptor
47526 as well. Test for this by closing stdout in the child. */
47527 _exit(close(fileno(stdout)) != 0);
47532 while (wait(&status) != child)
47535 /* Was there some problem with vforking? */
47538 /* Did the child fail? (This shouldn't happen.) */
47541 /* Did the vfork/compiler bug occur? */
47542 || parent != getpid()
47544 /* Did the file descriptor bug occur? */
47545 || fstat(fileno(stdout), &st) != 0
47550 if ac_fn_c_try_run "$LINENO"; then :
47551 ac_cv_func_vfork_works=yes
47553 ac_cv_func_vfork_works=no
47555 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
47556 conftest.$ac_objext conftest.beam conftest.$ac_ext
47560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
47561 $as_echo "$ac_cv_func_vfork_works" >&6; }
47564 if test "x$ac_cv_func_fork_works" = xcross; then
47565 ac_cv_func_vfork_works=$ac_cv_func_vfork
47566 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
47567 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
47570 if test "x$ac_cv_func_vfork_works" = xyes; then
47572 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
47576 $as_echo "#define vfork fork" >>confdefs.h
47579 if test "x$ac_cv_func_fork_works" = xyes; then
47581 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
47585 for ac_func in mmap canonicalize_file_name snprintf strdup strchr \
47586 strrchr strsignal fchmod fstat chmod
47588 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
47589 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
47590 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
47591 cat >>confdefs.h <<_ACEOF
47592 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
47598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
47599 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
47600 if ${ac_cv_path_SED+:} false; then :
47601 $as_echo_n "(cached) " >&6
47603 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
47604 for ac_i in 1 2 3 4 5 6 7; do
47605 ac_script="$ac_script$as_nl$ac_script"
47607 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
47608 { ac_script=; unset ac_script;}
47609 if test -z "$SED"; then
47610 ac_path_SED_found=false
47611 # Loop through the user's path and test for each of PROGNAME-LIST
47612 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
47613 for as_dir in $PATH
47616 test -z "$as_dir" && as_dir=.
47617 for ac_prog in sed gsed; do
47618 for ac_exec_ext in '' $ac_executable_extensions; do
47619 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
47620 as_fn_executable_p "$ac_path_SED" || continue
47621 # Check for GNU ac_path_SED and select it if it is found.
47622 # Check for GNU $ac_path_SED
47623 case `"$ac_path_SED" --version 2>&1` in
47625 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
47628 $as_echo_n 0123456789 >"conftest.in"
47631 cat "conftest.in" "conftest.in" >"conftest.tmp"
47632 mv "conftest.tmp" "conftest.in"
47633 cp "conftest.in" "conftest.nl"
47634 $as_echo '' >> "conftest.nl"
47635 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
47636 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
47637 as_fn_arith $ac_count + 1 && ac_count=$as_val
47638 if test $ac_count -gt ${ac_path_SED_max-0}; then
47639 # Best one so far, save it but keep looking for a better one
47640 ac_cv_path_SED="$ac_path_SED"
47641 ac_path_SED_max=$ac_count
47643 # 10*(2^10) chars as input seems more than enough
47644 test $ac_count -gt 10 && break
47646 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
47649 $ac_path_SED_found && break 3
47654 if test -z "$ac_cv_path_SED"; then
47655 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
47658 ac_cv_path_SED=$SED
47662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
47663 $as_echo "$ac_cv_path_SED" >&6; }
47664 SED="$ac_cv_path_SED"
47669 POSIX_SHELL=`which bash`
47670 test -x "$POSIX_SHELL" && break
47671 POSIX_SHELL=`which dash`
47672 test -x "$POSIX_SHELL" && break
47673 POSIX_SHELL=/usr/xpg4/bin/sh
47674 test -x "$POSIX_SHELL" && break
47675 POSIX_SHELL=`/bin/sh -c '
47677 if ! true ; then exit 1 ; fi
47679 test -x "$POSIX_SHELL" && break
47680 as_fn_error $? "cannot locate a working POSIX shell" "$LINENO" 5
47683 cat >>confdefs.h <<_ACEOF
47684 #define POSIX_SHELL "${POSIX_SHELL}"
47691 LIBOPTS_BUILD_BLOCKED=''
47694 NEED_LIBOPTS_DIR=''
47696 # Check whether --enable-local-libopts was given.
47697 if test "${enable_local_libopts+set}" = set; then :
47698 enableval=$enable_local_libopts;
47699 if test x$enableval = xyes ; then
47700 { $as_echo "$as_me:${as_lineno-$LINENO}: Using supplied libopts tearoff" >&5
47701 $as_echo "$as_me: Using supplied libopts tearoff" >&6;}
47702 LIBOPTS_CFLAGS='-I$(top_srcdir)/src/libopts'
47703 NEED_LIBOPTS_DIR=true
47704 LIBOPTS_LDADD='$(top_builddir)/src/libopts/libopts.la'
47709 # Check whether --enable-libopts-install was given.
47710 if test "${enable_libopts_install+set}" = set; then :
47711 enableval=$enable_libopts_install;
47714 if test "X${enable_libopts_install}" = Xyes; then
47715 INSTALL_LIBOPTS_TRUE=
47716 INSTALL_LIBOPTS_FALSE='#'
47718 INSTALL_LIBOPTS_TRUE='#'
47719 INSTALL_LIBOPTS_FALSE=
47723 if test -z "${NEED_LIBOPTS_DIR}" ; then
47724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether autoopts-config can be found" >&5
47725 $as_echo_n "checking whether autoopts-config can be found... " >&6; }
47727 # Check whether --with-autoopts-config was given.
47728 if test "${with_autoopts_config+set}" = set; then :
47729 withval=$with_autoopts_config; lo_cv_with_autoopts_config=${with_autoopts_config}
47731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether autoopts-config is specified" >&5
47732 $as_echo_n "checking whether autoopts-config is specified... " >&6; }
47733 if ${lo_cv_with_autoopts_config+:} false; then :
47734 $as_echo_n "(cached) " >&6
47736 if autoopts-config --help 2>/dev/null 1>&2
47737 then lo_cv_with_autoopts_config=autoopts-config
47738 elif libopts-config --help 2>/dev/null 1>&2
47739 then lo_cv_with_autoopts_config=libopts-config
47740 else lo_cv_with_autoopts_config=no ; fi
47742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lo_cv_with_autoopts_config" >&5
47743 $as_echo "$lo_cv_with_autoopts_config" >&6; }
47746 # end of AC_ARG_WITH
47748 if ${lo_cv_test_autoopts+:} false; then :
47749 $as_echo_n "(cached) " >&6
47752 if test -z "${lo_cv_with_autoopts_config}" \
47753 -o X"${lo_cv_with_autoopts_config}" = Xno
47755 if autoopts-config --help 2>/dev/null 1>&2
47756 then lo_cv_with_autoopts_config=autoopts-config
47757 elif libopts-config --help 2>/dev/null 1>&2
47758 then lo_cv_with_autoopts_config=libopts-config
47759 else lo_cv_with_autoopts_config=false ; fi
47761 lo_cv_test_autoopts=`
47762 ${lo_cv_with_autoopts_config} --libs` 2> /dev/null
47763 if test $? -ne 0 -o -z "${lo_cv_test_autoopts}"
47764 then lo_cv_test_autoopts=no ; fi
47768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lo_cv_test_autoopts}" >&5
47769 $as_echo "${lo_cv_test_autoopts}" >&6; }
47771 if test "X${lo_cv_test_autoopts}" != Xno
47773 LIBOPTS_LDADD="${lo_cv_test_autoopts}"
47774 LIBOPTS_CFLAGS="`${lo_cv_with_autoopts_config} --cflags`"
47776 LIBOPTS_LDADD='$(top_builddir)/src/libopts/libopts.la'
47777 LIBOPTS_CFLAGS='-I$(top_srcdir)/src/libopts'
47778 NEED_LIBOPTS_DIR=true
47780 fi # end of if test -z "${NEED_LIBOPTS_DIR}"
47781 if test -n "${LIBOPTS_BUILD_BLOCKED}" ; then
47782 NEED_LIBOPTS_DIR=''
47784 if test -n "${NEED_LIBOPTS_DIR}"; then
47786 NEED_LIBOPTS_FALSE='#'
47788 NEED_LIBOPTS_TRUE='#'
47789 NEED_LIBOPTS_FALSE=
47794 LIBOPTS_DIR=src/libopts
47797 # end of AC_DEFUN of LIBOPTS_CHECK_COMMON
47800 if test -z "$NEED_LIBOPTS_TRUE"; then :
47804 # Check to see if a reg expr header is specified.
47807 # Check whether --with-regex-header was given.
47808 if test "${with_regex_header+set}" = set; then :
47809 withval=$with_regex_header; libopts_cv_with_regex_header=${with_regex_header}
47811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a reg expr header is specified" >&5
47812 $as_echo_n "checking whether a reg expr header is specified... " >&6; }
47813 if ${libopts_cv_with_regex_header+:} false; then :
47814 $as_echo_n "(cached) " >&6
47816 libopts_cv_with_regex_header=no
47818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libopts_cv_with_regex_header" >&5
47819 $as_echo "$libopts_cv_with_regex_header" >&6; }
47822 # end of AC_ARG_WITH
47823 if test "X${libopts_cv_with_regex_header}" != Xno
47825 cat >>confdefs.h <<_ACEOF
47826 #define REGEX_HEADER <${libopts_cv_with_regex_header}>
47831 $as_echo "#define REGEX_HEADER <regex.h>" >>confdefs.h
47837 # Check to see if a working libregex can be found.
47840 # Check whether --with-libregex was given.
47841 if test "${with_libregex+set}" = set; then :
47842 withval=$with_libregex; libopts_cv_with_libregex_root=${with_libregex}
47844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether with-libregex was specified" >&5
47845 $as_echo_n "checking whether with-libregex was specified... " >&6; }
47846 if ${libopts_cv_with_libregex_root+:} false; then :
47847 $as_echo_n "(cached) " >&6
47849 libopts_cv_with_libregex_root=no
47851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libopts_cv_with_libregex_root" >&5
47852 $as_echo "$libopts_cv_with_libregex_root" >&6; }
47855 # end of AC_ARG_WITH libregex
47857 if test "${with_libregex+set}" = set && \
47858 test "X${withval}" = Xno
47859 then ## disabled by request
47860 libopts_cv_with_libregex_root=no
47861 libopts_cv_with_libregex_cflags=no
47862 libopts_cv_with_libregex_libs=no
47866 # Check whether --with-libregex-cflags was given.
47867 if test "${with_libregex_cflags+set}" = set; then :
47868 withval=$with_libregex_cflags; libopts_cv_with_libregex_cflags=${with_libregex_cflags}
47870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether with-libregex-cflags was specified" >&5
47871 $as_echo_n "checking whether with-libregex-cflags was specified... " >&6; }
47872 if ${libopts_cv_with_libregex_cflags+:} false; then :
47873 $as_echo_n "(cached) " >&6
47875 libopts_cv_with_libregex_cflags=no
47877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libopts_cv_with_libregex_cflags" >&5
47878 $as_echo "$libopts_cv_with_libregex_cflags" >&6; }
47881 # end of AC_ARG_WITH libregex-cflags
47884 # Check whether --with-libregex-libs was given.
47885 if test "${with_libregex_libs+set}" = set; then :
47886 withval=$with_libregex_libs; libopts_cv_with_libregex_libs=${with_libregex_libs}
47888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether with-libregex-libs was specified" >&5
47889 $as_echo_n "checking whether with-libregex-libs was specified... " >&6; }
47890 if ${libopts_cv_with_libregex_libs+:} false; then :
47891 $as_echo_n "(cached) " >&6
47893 libopts_cv_with_libregex_libs=no
47895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libopts_cv_with_libregex_libs" >&5
47896 $as_echo "$libopts_cv_with_libregex_libs" >&6; }
47899 # end of AC_ARG_WITH libregex-libs
47901 case "X${libopts_cv_with_libregex_cflags}" in
47903 case "X${libopts_cv_with_libregex_root}" in
47904 Xyes|Xno|X ) libopts_cv_with_libregex_cflags=no ;;
47905 * ) libopts_cv_with_libregex_cflags=-I${libopts_cv_with_libregex_root}/include ;;
47908 case "X${libopts_cv_with_libregex_libs}" in
47910 case "X${libopts_cv_with_libregex_root}" in
47911 Xyes|Xno|X ) libopts_cv_with_libregex_libs=no ;;
47912 * ) libopts_cv_with_libregex_libs="-L${libopts_cv_with_libregex_root}/lib -lregex";;
47915 libopts_save_CPPFLAGS="${CPPFLAGS}"
47916 libopts_save_LIBS="${LIBS}"
47917 case "X${libopts_cv_with_libregex_cflags}" in
47919 libopts_cv_with_libregex_cflags="" ;;
47920 * ) CPPFLAGS="${CPPFLAGS} ${libopts_cv_with_libregex_cflags}" ;;
47922 case "X${libopts_cv_with_libregex_libs}" in
47924 libopts_cv_with_libregex_libs="" ;;
47926 LIBS="${LIBS} ${libopts_cv_with_libregex_libs}" ;;
47930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether libregex functions properly" >&5
47931 $as_echo_n "checking whether libregex functions properly... " >&6; }
47932 if ${libopts_cv_with_libregex+:} false; then :
47933 $as_echo_n "(cached) " >&6
47936 if test "$cross_compiling" = yes; then :
47937 libopts_cv_with_libregex=no
47939 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
47940 /* end confdefs.h. */
47942 #include <stdlib.h>
47943 #include <sys/types.h>
47944 #include REGEX_HEADER
47946 void comp_re( char const* pzPat ) {
47947 int res = regcomp( &re, pzPat, REG_EXTENDED|REG_ICASE|REG_NEWLINE );
47948 if (res == 0) return;
47952 comp_re( "^.*\$" );
47953 comp_re( "()|no.*" );
47955 if (regexec( &re, "X", 2, m, 0 ) != 0) return 1;
47956 if ((m[0].rm_so != 0) || (m[0].rm_eo != 1)) {
47957 fputs( "error: regex -->.<-- did not match\n", stderr );
47962 if ac_fn_c_try_run "$LINENO"; then :
47963 libopts_cv_with_libregex=yes
47965 libopts_cv_with_libregex=no
47967 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
47968 conftest.$ac_objext conftest.beam conftest.$ac_ext
47970 # end of AC_RUN_IFELSE
47973 # end of AC_CACHE_VAL for libopts_cv_with_libregex
47974 fi ## disabled by request
47975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${libopts_cv_with_libregex}" >&5
47976 $as_echo "${libopts_cv_with_libregex}" >&6; }
47977 if test "X${libopts_cv_with_libregex}" != Xno
47980 $as_echo "#define WITH_LIBREGEX 1" >>confdefs.h
47983 CPPFLAGS="${libopts_save_CPPFLAGS}"
47984 LIBS="${libopts_save_LIBS}"
47985 libopts_cv_with_libregex_root=no
47986 libopts_cv_with_libregex_cflags=no
47987 libopts_cv_with_libregex_libs=no
47988 libopts_cv_with_libregex=no
47993 # Check to see if pathfind(3) works.
47995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pathfind(3) works" >&5
47996 $as_echo_n "checking whether pathfind(3) works... " >&6; }
47997 if ${libopts_cv_run_pathfind+:} false; then :
47998 $as_echo_n "(cached) " >&6
48001 if test "$cross_compiling" = yes; then :
48002 libopts_cv_run_pathfind=no
48005 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
48006 /* end confdefs.h. */
48007 #include <string.h>
48008 #include <stdlib.h>
48009 int main (int argc, char** argv) {
48010 char* pz = pathfind( getenv( "PATH" ), "sh", "x" );
48011 return (pz == 0) ? 1 : 0;
48014 if ac_fn_c_try_run "$LINENO"; then :
48015 libopts_cv_run_pathfind=yes
48017 libopts_cv_run_pathfind=no
48019 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
48020 conftest.$ac_objext conftest.beam conftest.$ac_ext
48022 # end of RUN_IFELSE
48025 # end of AC_CACHE_VAL for libopts_cv_run_pathfind
48026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${libopts_cv_run_pathfind}" >&5
48027 $as_echo "${libopts_cv_run_pathfind}" >&6; }
48028 if test "X${libopts_cv_run_pathfind}" != Xno
48031 $as_echo "#define HAVE_PATHFIND 1" >>confdefs.h
48037 # Check to see if /dev/zero is readable device.
48039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether /dev/zero is readable device" >&5
48040 $as_echo_n "checking whether /dev/zero is readable device... " >&6; }
48041 if ${libopts_cv_test_dev_zero+:} false; then :
48042 $as_echo_n "(cached) " >&6
48045 libopts_cv_test_dev_zero=`exec 2> /dev/null
48046 dzero=\`ls -lL /dev/zero | egrep ^c......r\`
48047 test -z "${dzero}" && exit 1
48049 if test $? -ne 0 || test -z "$libopts_cv_test_dev_zero"
48050 then libopts_cv_test_dev_zero=no
48054 # end of CACHE_VAL of libopts_cv_test_dev_zero
48055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${libopts_cv_test_dev_zero}" >&5
48056 $as_echo "${libopts_cv_test_dev_zero}" >&6; }
48057 if test "X${libopts_cv_test_dev_zero}" != Xno
48060 $as_echo "#define HAVE_DEV_ZERO 1" >>confdefs.h
48066 # Check to see if we have a functional realpath(3C).
48068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we have a functional realpath(3C)" >&5
48069 $as_echo_n "checking whether we have a functional realpath(3C)... " >&6; }
48070 if ${libopts_cv_run_realpath+:} false; then :
48071 $as_echo_n "(cached) " >&6
48074 if test "$cross_compiling" = yes; then :
48075 libopts_cv_run_realpath=no
48078 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
48079 /* end confdefs.h. */
48080 #include <limits.h>
48081 #include <stdlib.h>
48082 int main (int argc, char** argv) {
48086 char zPath[PATH_MAX+1];
48088 char *pz = realpath(argv[0], zPath);
48089 return (pz == zPath) ? 0 : 1;
48092 if ac_fn_c_try_run "$LINENO"; then :
48093 libopts_cv_run_realpath=yes
48095 libopts_cv_run_realpath=no
48097 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
48098 conftest.$ac_objext conftest.beam conftest.$ac_ext
48100 # end of RUN_IFELSE
48103 # end of AC_CACHE_VAL for libopts_cv_run_realpath
48104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${libopts_cv_run_realpath}" >&5
48105 $as_echo "${libopts_cv_run_realpath}" >&6; }
48106 if test "X${libopts_cv_run_realpath}" != Xno
48109 $as_echo "#define HAVE_REALPATH 1" >>confdefs.h
48115 # Check to see if strftime() works.
48117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strftime() works" >&5
48118 $as_echo_n "checking whether strftime() works... " >&6; }
48119 if ${libopts_cv_run_strftime+:} false; then :
48120 $as_echo_n "(cached) " >&6
48123 if test "$cross_compiling" = yes; then :
48124 libopts_cv_run_strftime=no
48127 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
48128 /* end confdefs.h. */
48130 #include <string.h>
48133 static char const z[] = "Thursday Aug 28 240";
48135 tm.tm_sec = 36; /* seconds after the minute [0, 61] */
48136 tm.tm_min = 44; /* minutes after the hour [0, 59] */
48137 tm.tm_hour = 12; /* hour since midnight [0, 23] */
48138 tm.tm_mday = 28; /* day of the month [1, 31] */
48139 tm.tm_mon = 7; /* months since January [0, 11] */
48140 tm.tm_year = 86; /* years since 1900 */
48141 tm.tm_wday = 4; /* days since Sunday [0, 6] */
48142 tm.tm_yday = 239; /* days since January 1 [0, 365] */
48143 tm.tm_isdst = 1; /* flag for daylight savings time */
48144 strftime( t_buf, sizeof( t_buf ), "%A %b %d %j", &tm );
48145 return (strcmp( t_buf, z ) != 0); }
48147 if ac_fn_c_try_run "$LINENO"; then :
48148 libopts_cv_run_strftime=yes
48150 libopts_cv_run_strftime=no
48152 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
48153 conftest.$ac_objext conftest.beam conftest.$ac_ext
48155 # end of RUN_IFELSE
48158 # end of AC_CACHE_VAL for libopts_cv_run_strftime
48159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${libopts_cv_run_strftime}" >&5
48160 $as_echo "${libopts_cv_run_strftime}" >&6; }
48161 if test "X${libopts_cv_run_strftime}" != Xno
48164 $as_echo "#define HAVE_STRFTIME 1" >>confdefs.h
48170 # Check to see if fopen accepts "b" mode.
48172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fopen accepts \"b\" mode" >&5
48173 $as_echo_n "checking whether fopen accepts \"b\" mode... " >&6; }
48174 if ${libopts_cv_run_fopen_binary+:} false; then :
48175 $as_echo_n "(cached) " >&6
48178 if test "$cross_compiling" = yes; then :
48179 libopts_cv_run_fopen_binary=no
48182 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
48183 /* end confdefs.h. */
48185 int main (int argc, char** argv) {
48186 FILE* fp = fopen("conftest.$ac_ext", "rb");
48187 return (fp == NULL) ? 1 : fclose(fp); }
48189 if ac_fn_c_try_run "$LINENO"; then :
48190 libopts_cv_run_fopen_binary=yes
48192 libopts_cv_run_fopen_binary=no
48194 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
48195 conftest.$ac_objext conftest.beam conftest.$ac_ext
48197 # end of RUN_IFELSE
48200 # end of AC_CACHE_VAL for libopts_cv_run_fopen_binary
48201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${libopts_cv_run_fopen_binary}" >&5
48202 $as_echo "${libopts_cv_run_fopen_binary}" >&6; }
48203 if test "X${libopts_cv_run_fopen_binary}" != Xno
48206 $as_echo "#define FOPEN_BINARY_FLAG \"b\"" >>confdefs.h
48210 $as_echo "#define FOPEN_BINARY_FLAG \"\"" >>confdefs.h
48216 # Check to see if fopen accepts "t" mode.
48218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fopen accepts \"t\" mode" >&5
48219 $as_echo_n "checking whether fopen accepts \"t\" mode... " >&6; }
48220 if ${libopts_cv_run_fopen_text+:} false; then :
48221 $as_echo_n "(cached) " >&6
48224 if test "$cross_compiling" = yes; then :
48225 libopts_cv_run_fopen_text=no
48228 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
48229 /* end confdefs.h. */
48231 int main (int argc, char** argv) {
48232 FILE* fp = fopen("conftest.$ac_ext", "rt");
48233 return (fp == NULL) ? 1 : fclose(fp); }
48235 if ac_fn_c_try_run "$LINENO"; then :
48236 libopts_cv_run_fopen_text=yes
48238 libopts_cv_run_fopen_text=no
48240 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
48241 conftest.$ac_objext conftest.beam conftest.$ac_ext
48243 # end of RUN_IFELSE
48246 # end of AC_CACHE_VAL for libopts_cv_run_fopen_text
48247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${libopts_cv_run_fopen_text}" >&5
48248 $as_echo "${libopts_cv_run_fopen_text}" >&6; }
48249 if test "X${libopts_cv_run_fopen_text}" != Xno
48252 $as_echo "#define FOPEN_TEXT_FLAG \"t\"" >>confdefs.h
48256 $as_echo "#define FOPEN_TEXT_FLAG \"\"" >>confdefs.h
48262 # Check to see if not wanting optional option args.
48264 # Check whether --enable-optional-args was given.
48265 if test "${enable_optional_args+set}" = set; then :
48266 enableval=$enable_optional_args; libopts_cv_enable_optional_args=${enable_optional_args}
48268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether not wanting optional option args" >&5
48269 $as_echo_n "checking whether not wanting optional option args... " >&6; }
48270 if ${libopts_cv_enable_optional_args+:} false; then :
48271 $as_echo_n "(cached) " >&6
48273 libopts_cv_enable_optional_args=yes
48275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libopts_cv_enable_optional_args" >&5
48276 $as_echo "$libopts_cv_enable_optional_args" >&6; }
48279 # end of AC_ARG_ENABLE
48280 if test "X${libopts_cv_enable_optional_args}" = Xno
48283 $as_echo "#define NO_OPTIONAL_OPT_ARGS 1" >>confdefs.h
48292 ac_config_files="$ac_config_files src/libopts/Makefile"
48294 # end of AC_DEFUN of LIBOPTS_CHECK
48296 if test "$NEED_LIBOPTS_DIR" = "true";then
48298 for i in ${srcdir}/src/*-args.c.bak ${srcdir}/src/*-args.h.bak; do
48299 nam=`echo $i|sed 's/.bak//g'`
48306 if test -z "$missing_baks"; then
48310 enable_local_libopts=yes
48312 enable_local_libopts=no
48314 if test "$enable_local_libopts" = "yes"; then
48316 NEED_LIBOPTS_FALSE='#'
48318 NEED_LIBOPTS_TRUE='#'
48319 NEED_LIBOPTS_FALSE=
48323 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "
48324 #include <sys/types.h>
48327 if test "x$ac_cv_type_ssize_t" = xyes; then :
48329 DEFINE_SSIZE_T="#include <sys/types.h>"
48335 $as_echo "#define NO_SSIZE_T 1" >>confdefs.h
48337 DEFINE_SSIZE_T="typedef int ssize_t;"
48344 # The cast to long int works around a bug in the HP C Compiler
48345 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
48346 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
48347 # This bug is HP SR number 8606223364.
48348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long int" >&5
48349 $as_echo_n "checking size of unsigned long int... " >&6; }
48350 if ${ac_cv_sizeof_unsigned_long_int+:} false; then :
48351 $as_echo_n "(cached) " >&6
48353 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned long int))" "ac_cv_sizeof_unsigned_long_int" "$ac_includes_default"; then :
48356 if test "$ac_cv_type_unsigned_long_int" = yes; then
48357 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
48358 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
48359 as_fn_error 77 "cannot compute sizeof (unsigned long int)
48360 See \`config.log' for more details" "$LINENO" 5; }
48362 ac_cv_sizeof_unsigned_long_int=0
48367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long_int" >&5
48368 $as_echo "$ac_cv_sizeof_unsigned_long_int" >&6; }
48372 cat >>confdefs.h <<_ACEOF
48373 #define SIZEOF_UNSIGNED_LONG_INT $ac_cv_sizeof_unsigned_long_int
48377 # The cast to long int works around a bug in the HP C Compiler
48378 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
48379 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
48380 # This bug is HP SR number 8606223364.
48381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned int" >&5
48382 $as_echo_n "checking size of unsigned int... " >&6; }
48383 if ${ac_cv_sizeof_unsigned_int+:} false; then :
48384 $as_echo_n "(cached) " >&6
48386 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned int))" "ac_cv_sizeof_unsigned_int" "$ac_includes_default"; then :
48389 if test "$ac_cv_type_unsigned_int" = yes; then
48390 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
48391 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
48392 as_fn_error 77 "cannot compute sizeof (unsigned int)
48393 See \`config.log' for more details" "$LINENO" 5; }
48395 ac_cv_sizeof_unsigned_int=0
48400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_int" >&5
48401 $as_echo "$ac_cv_sizeof_unsigned_int" >&6; }
48405 cat >>confdefs.h <<_ACEOF
48406 #define SIZEOF_UNSIGNED_INT $ac_cv_sizeof_unsigned_int
48412 # Check whether --with-zlib was given.
48413 if test "${with_zlib+set}" = set; then :
48414 withval=$with_zlib; ac_zlib=$withval
48419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include zlib compression support" >&5
48420 $as_echo_n "checking whether to include zlib compression support... " >&6; }
48421 if test x$ac_zlib != xno; then
48422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
48423 $as_echo "yes" >&6; }
48439 acl_save_prefix="$prefix"
48440 prefix="$acl_final_prefix"
48441 acl_save_exec_prefix="$exec_prefix"
48442 exec_prefix="$acl_final_exec_prefix"
48444 eval additional_includedir=\"$includedir\"
48445 eval additional_libdir=\"$libdir\"
48447 exec_prefix="$acl_save_exec_prefix"
48448 prefix="$acl_save_prefix"
48451 # Check whether --with-libz-prefix was given.
48452 if test "${with_libz_prefix+set}" = set; then :
48453 withval=$with_libz_prefix;
48454 if test "X$withval" = "Xno"; then
48457 if test "X$withval" = "X"; then
48459 acl_save_prefix="$prefix"
48460 prefix="$acl_final_prefix"
48461 acl_save_exec_prefix="$exec_prefix"
48462 exec_prefix="$acl_final_exec_prefix"
48464 eval additional_includedir=\"$includedir\"
48465 eval additional_libdir=\"$libdir\"
48467 exec_prefix="$acl_save_exec_prefix"
48468 prefix="$acl_save_prefix"
48471 additional_includedir="$withval/include"
48472 additional_libdir="$withval/$acl_libdirstem"
48473 if test "$acl_libdirstem2" != "$acl_libdirstem" \
48474 && ! test -d "$withval/$acl_libdirstem"; then
48475 additional_libdir="$withval/$acl_libdirstem2"
48489 names_already_handled=
48490 names_next_round='z '
48491 while test -n "$names_next_round"; do
48492 names_this_round="$names_next_round"
48494 for name in $names_this_round; do
48496 for n in $names_already_handled; do
48497 if test "$n" = "$name"; then
48498 already_handled=yes
48502 if test -z "$already_handled"; then
48503 names_already_handled="$names_already_handled $name"
48504 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
48505 eval value=\"\$HAVE_LIB$uppername\"
48506 if test -n "$value"; then
48507 if test "$value" = yes; then
48508 eval value=\"\$LIB$uppername\"
48509 test -z "$value" || LIBZ="${LIBZ}${LIBZ:+ }$value"
48510 eval value=\"\$LTLIB$uppername\"
48511 test -z "$value" || LTLIBZ="${LTLIBZ}${LTLIBZ:+ }$value"
48520 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
48521 if test -n "$acl_shlibext"; then
48522 shrext=".$acl_shlibext" # typically: shrext=.so
48526 if test $use_additional = yes; then
48527 dir="$additional_libdir"
48528 if test -n "$acl_shlibext"; then
48529 if test -f "$dir/$libname$shrext"; then
48531 found_so="$dir/$libname$shrext"
48533 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
48534 ver=`(cd "$dir" && \
48535 for f in "$libname$shrext".*; do echo "$f"; done \
48536 | sed -e "s,^$libname$shrext\\\\.,," \
48537 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
48538 | sed 1q ) 2>/dev/null`
48539 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
48541 found_so="$dir/$libname$shrext.$ver"
48544 eval library_names=\"$acl_library_names_spec\"
48545 for f in $library_names; do
48546 if test -f "$dir/$f"; then
48555 if test "X$found_dir" = "X"; then
48556 if test -f "$dir/$libname.$acl_libext"; then
48558 found_a="$dir/$libname.$acl_libext"
48561 if test "X$found_dir" != "X"; then
48562 if test -f "$dir/$libname.la"; then
48563 found_la="$dir/$libname.la"
48567 if test "X$found_dir" = "X"; then
48568 for x in $LDFLAGS $LTLIBZ; do
48570 acl_save_prefix="$prefix"
48571 prefix="$acl_final_prefix"
48572 acl_save_exec_prefix="$exec_prefix"
48573 exec_prefix="$acl_final_exec_prefix"
48575 exec_prefix="$acl_save_exec_prefix"
48576 prefix="$acl_save_prefix"
48580 dir=`echo "X$x" | sed -e 's/^X-L//'`
48581 if test -n "$acl_shlibext"; then
48582 if test -f "$dir/$libname$shrext"; then
48584 found_so="$dir/$libname$shrext"
48586 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
48587 ver=`(cd "$dir" && \
48588 for f in "$libname$shrext".*; do echo "$f"; done \
48589 | sed -e "s,^$libname$shrext\\\\.,," \
48590 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
48591 | sed 1q ) 2>/dev/null`
48592 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
48594 found_so="$dir/$libname$shrext.$ver"
48597 eval library_names=\"$acl_library_names_spec\"
48598 for f in $library_names; do
48599 if test -f "$dir/$f"; then
48608 if test "X$found_dir" = "X"; then
48609 if test -f "$dir/$libname.$acl_libext"; then
48611 found_a="$dir/$libname.$acl_libext"
48614 if test "X$found_dir" != "X"; then
48615 if test -f "$dir/$libname.la"; then
48616 found_la="$dir/$libname.la"
48621 if test "X$found_dir" != "X"; then
48626 if test "X$found_dir" != "X"; then
48627 LTLIBZ="${LTLIBZ}${LTLIBZ:+ }-L$found_dir -l$name"
48628 if test "X$found_so" != "X"; then
48629 if test "$enable_rpath" = no \
48630 || test "X$found_dir" = "X/usr/$acl_libdirstem" \
48631 || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
48632 LIBZ="${LIBZ}${LIBZ:+ }$found_so"
48635 for x in $ltrpathdirs; do
48636 if test "X$x" = "X$found_dir"; then
48641 if test -z "$haveit"; then
48642 ltrpathdirs="$ltrpathdirs $found_dir"
48644 if test "$acl_hardcode_direct" = yes; then
48645 LIBZ="${LIBZ}${LIBZ:+ }$found_so"
48647 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
48648 LIBZ="${LIBZ}${LIBZ:+ }$found_so"
48650 for x in $rpathdirs; do
48651 if test "X$x" = "X$found_dir"; then
48656 if test -z "$haveit"; then
48657 rpathdirs="$rpathdirs $found_dir"
48661 for x in $LDFLAGS $LIBZ; do
48663 acl_save_prefix="$prefix"
48664 prefix="$acl_final_prefix"
48665 acl_save_exec_prefix="$exec_prefix"
48666 exec_prefix="$acl_final_exec_prefix"
48668 exec_prefix="$acl_save_exec_prefix"
48669 prefix="$acl_save_prefix"
48671 if test "X$x" = "X-L$found_dir"; then
48676 if test -z "$haveit"; then
48677 LIBZ="${LIBZ}${LIBZ:+ }-L$found_dir"
48679 if test "$acl_hardcode_minus_L" != no; then
48680 LIBZ="${LIBZ}${LIBZ:+ }$found_so"
48682 LIBZ="${LIBZ}${LIBZ:+ }-l$name"
48688 if test "X$found_a" != "X"; then
48689 LIBZ="${LIBZ}${LIBZ:+ }$found_a"
48691 LIBZ="${LIBZ}${LIBZ:+ }-L$found_dir -l$name"
48694 additional_includedir=
48695 case "$found_dir" in
48696 */$acl_libdirstem | */$acl_libdirstem/)
48697 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
48698 if test "$name" = 'z'; then
48699 LIBZ_PREFIX="$basedir"
48701 additional_includedir="$basedir/include"
48703 */$acl_libdirstem2 | */$acl_libdirstem2/)
48704 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
48705 if test "$name" = 'z'; then
48706 LIBZ_PREFIX="$basedir"
48708 additional_includedir="$basedir/include"
48711 if test "X$additional_includedir" != "X"; then
48712 if test "X$additional_includedir" != "X/usr/include"; then
48714 if test "X$additional_includedir" = "X/usr/local/include"; then
48715 if test -n "$GCC"; then
48717 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
48721 if test -z "$haveit"; then
48722 for x in $CPPFLAGS $INCZ; do
48724 acl_save_prefix="$prefix"
48725 prefix="$acl_final_prefix"
48726 acl_save_exec_prefix="$exec_prefix"
48727 exec_prefix="$acl_final_exec_prefix"
48729 exec_prefix="$acl_save_exec_prefix"
48730 prefix="$acl_save_prefix"
48732 if test "X$x" = "X-I$additional_includedir"; then
48737 if test -z "$haveit"; then
48738 if test -d "$additional_includedir"; then
48739 INCZ="${INCZ}${INCZ:+ }-I$additional_includedir"
48745 if test -n "$found_la"; then
48746 save_libdir="$libdir"
48747 case "$found_la" in
48748 */* | *\\*) . "$found_la" ;;
48749 *) . "./$found_la" ;;
48751 libdir="$save_libdir"
48752 for dep in $dependency_libs; do
48755 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
48756 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
48757 && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
48759 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
48760 || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
48761 if test -n "$GCC"; then
48763 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
48767 if test -z "$haveit"; then
48769 for x in $LDFLAGS $LIBZ; do
48771 acl_save_prefix="$prefix"
48772 prefix="$acl_final_prefix"
48773 acl_save_exec_prefix="$exec_prefix"
48774 exec_prefix="$acl_final_exec_prefix"
48776 exec_prefix="$acl_save_exec_prefix"
48777 prefix="$acl_save_prefix"
48779 if test "X$x" = "X-L$additional_libdir"; then
48784 if test -z "$haveit"; then
48785 if test -d "$additional_libdir"; then
48786 LIBZ="${LIBZ}${LIBZ:+ }-L$additional_libdir"
48790 for x in $LDFLAGS $LTLIBZ; do
48792 acl_save_prefix="$prefix"
48793 prefix="$acl_final_prefix"
48794 acl_save_exec_prefix="$exec_prefix"
48795 exec_prefix="$acl_final_exec_prefix"
48797 exec_prefix="$acl_save_exec_prefix"
48798 prefix="$acl_save_prefix"
48800 if test "X$x" = "X-L$additional_libdir"; then
48805 if test -z "$haveit"; then
48806 if test -d "$additional_libdir"; then
48807 LTLIBZ="${LTLIBZ}${LTLIBZ:+ }-L$additional_libdir"
48814 dir=`echo "X$dep" | sed -e 's/^X-R//'`
48815 if test "$enable_rpath" != no; then
48817 for x in $rpathdirs; do
48818 if test "X$x" = "X$dir"; then
48823 if test -z "$haveit"; then
48824 rpathdirs="$rpathdirs $dir"
48827 for x in $ltrpathdirs; do
48828 if test "X$x" = "X$dir"; then
48833 if test -z "$haveit"; then
48834 ltrpathdirs="$ltrpathdirs $dir"
48839 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
48842 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
48845 LIBZ="${LIBZ}${LIBZ:+ }$dep"
48846 LTLIBZ="${LTLIBZ}${LTLIBZ:+ }$dep"
48852 LIBZ="${LIBZ}${LIBZ:+ }-l$name"
48853 LTLIBZ="${LTLIBZ}${LTLIBZ:+ }-l$name"
48859 if test "X$rpathdirs" != "X"; then
48860 if test -n "$acl_hardcode_libdir_separator"; then
48862 for found_dir in $rpathdirs; do
48863 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
48865 acl_save_libdir="$libdir"
48867 eval flag=\"$acl_hardcode_libdir_flag_spec\"
48868 libdir="$acl_save_libdir"
48869 LIBZ="${LIBZ}${LIBZ:+ }$flag"
48871 for found_dir in $rpathdirs; do
48872 acl_save_libdir="$libdir"
48873 libdir="$found_dir"
48874 eval flag=\"$acl_hardcode_libdir_flag_spec\"
48875 libdir="$acl_save_libdir"
48876 LIBZ="${LIBZ}${LIBZ:+ }$flag"
48880 if test "X$ltrpathdirs" != "X"; then
48881 for found_dir in $ltrpathdirs; do
48882 LTLIBZ="${LTLIBZ}${LTLIBZ:+ }-R$found_dir"
48892 ac_save_CPPFLAGS="$CPPFLAGS"
48894 for element in $INCZ; do
48896 for x in $CPPFLAGS; do
48898 acl_save_prefix="$prefix"
48899 prefix="$acl_final_prefix"
48900 acl_save_exec_prefix="$exec_prefix"
48901 exec_prefix="$acl_final_exec_prefix"
48903 exec_prefix="$acl_save_exec_prefix"
48904 prefix="$acl_save_prefix"
48906 if test "X$x" = "X$element"; then
48911 if test -z "$haveit"; then
48912 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
48917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libz" >&5
48918 $as_echo_n "checking for libz... " >&6; }
48919 if ${ac_cv_libz+:} false; then :
48920 $as_echo_n "(cached) " >&6
48923 ac_save_LIBS="$LIBS"
48925 *" -l"*) LIBS="$LIBS $LIBZ" ;;
48926 *) LIBS="$LIBZ $LIBS" ;;
48928 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
48929 /* end confdefs.h. */
48934 compress (0, 0, 0, 0);
48939 if ac_fn_c_try_link "$LINENO"; then :
48944 rm -f core conftest.err conftest.$ac_objext \
48945 conftest$ac_exeext conftest.$ac_ext
48946 LIBS="$ac_save_LIBS"
48949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libz" >&5
48950 $as_echo "$ac_cv_libz" >&6; }
48951 if test "$ac_cv_libz" = yes; then
48954 $as_echo "#define HAVE_LIBZ 1" >>confdefs.h
48956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libz" >&5
48957 $as_echo_n "checking how to link with libz... " >&6; }
48958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBZ" >&5
48959 $as_echo "$LIBZ" >&6; }
48962 CPPFLAGS="$ac_save_CPPFLAGS"
48974 if test x$ac_cv_libz != xyes; then
48975 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ***
48976 *** ZLIB was not found. You will not be able to use ZLIB compression." >&5
48977 $as_echo "$as_me: WARNING: ***
48978 *** ZLIB was not found. You will not be able to use ZLIB compression." >&2;}
48981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
48982 $as_echo "no" >&6; }
48985 if test -n "$PKG_CONFIG" && \
48986 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"zlib\""; } >&5
48987 ($PKG_CONFIG --exists --print-errors "zlib") 2>&5
48989 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
48990 test $ac_status = 0; }; then
48991 ZLIB_HAS_PKGCONFIG=y
48993 ZLIB_HAS_PKGCONFIG=n
48996 if test x$ac_zlib != xno; then
48997 if test "$ZLIB_HAS_PKGCONFIG" = "y" ; then
48998 if test "x$GNUTLS_REQUIRES_PRIVATE" = x; then
48999 GNUTLS_REQUIRES_PRIVATE="Requires.private: zlib"
49001 GNUTLS_REQUIRES_PRIVATE="$GNUTLS_REQUIRES_PRIVATE, zlib"
49010 # Check whether --with-default-trust-store-pkcs11 was given.
49011 if test "${with_default_trust_store_pkcs11+set}" = set; then :
49012 withval=$with_default_trust_store_pkcs11;
49016 if test "x$with_default_trust_store_pkcs11" != x; then
49017 if test "x$with_p11_kit" = xno; then
49018 as_fn_error $? "cannot use pkcs11 store without p11-kit" "$LINENO" 5
49021 cat >>confdefs.h <<_ACEOF
49022 #define DEFAULT_TRUST_STORE_PKCS11 "$with_default_trust_store_pkcs11"
49028 # Check whether --with-default-trust-store-file was given.
49029 if test "${with_default_trust_store_file+set}" = set; then :
49030 withval=$with_default_trust_store_file; with_default_trust_store_file="$withval"
49032 if test "$build" = "$host" && test x$with_default_trust_store_pkcs11 = x;then
49034 /etc/ssl/ca-bundle.pem \
49035 /etc/ssl/certs/ca-certificates.crt \
49036 /etc/pki/tls/cert.pem \
49037 /usr/local/share/certs/ca-root-nss.crt \
49040 if test -e "$i"; then
49041 with_default_trust_store_file="$i"
49050 if test "$with_default_trust_store_file" = "no";then
49051 with_default_trust_store_file=""
49055 # Check whether --with-default-crl-file was given.
49056 if test "${with_default_crl_file+set}" = set; then :
49057 withval=$with_default_crl_file;
49062 # Check whether --with-default-blacklist-file was given.
49063 if test "${with_default_blacklist_file+set}" = set; then :
49064 withval=$with_default_blacklist_file;
49068 if test "x$with_default_trust_store_file" != x; then
49070 cat >>confdefs.h <<_ACEOF
49071 #define DEFAULT_TRUST_STORE_FILE "$with_default_trust_store_file"
49076 if test "x$with_default_crl_file" != x; then
49078 cat >>confdefs.h <<_ACEOF
49079 #define DEFAULT_CRL_FILE "$with_default_crl_file"
49084 if test "x$with_default_blacklist_file" != x; then
49086 cat >>confdefs.h <<_ACEOF
49087 #define DEFAULT_BLACKLIST_FILE "$with_default_blacklist_file"
49092 opt_guile_bindings=yes
49093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether building Guile bindings" >&5
49094 $as_echo_n "checking whether building Guile bindings... " >&6; }
49095 # Check whether --enable-guile was given.
49096 if test "${enable_guile+set}" = set; then :
49097 enableval=$enable_guile; opt_guile_bindings=$enableval
49100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $opt_guile_bindings" >&5
49101 $as_echo "$opt_guile_bindings" >&6; }
49104 # Check whether --with-guile-site-dir was given.
49105 if test "${with_guile_site_dir+set}" = set; then :
49106 withval=$with_guile_site_dir;
49110 if test "$opt_guile_bindings" = "yes"; then
49111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ***
49112 *** Detecting GNU Guile...
49115 *** Detecting GNU Guile...
49118 # Extract the first word of "guile-snarf", so it can be a program name with args.
49119 set dummy guile-snarf; ac_word=$2
49120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
49121 $as_echo_n "checking for $ac_word... " >&6; }
49122 if ${ac_cv_path_guile_snarf+:} false; then :
49123 $as_echo_n "(cached) " >&6
49125 case $guile_snarf in
49127 ac_cv_path_guile_snarf="$guile_snarf" # Let the user override the test with a path.
49130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
49131 for as_dir in $PATH
49134 test -z "$as_dir" && as_dir=.
49135 for ac_exec_ext in '' $ac_executable_extensions; do
49136 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
49137 ac_cv_path_guile_snarf="$as_dir/$ac_word$ac_exec_ext"
49138 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
49148 guile_snarf=$ac_cv_path_guile_snarf
49149 if test -n "$guile_snarf"; then
49150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $guile_snarf" >&5
49151 $as_echo "$guile_snarf" >&6; }
49153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
49154 $as_echo "no" >&6; }
49158 if test "x$guile_snarf" = "x"; then
49159 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`guile-snarf' from Guile 1.8 not found. Guile bindings not built." >&5
49160 $as_echo "$as_me: WARNING: \`guile-snarf' from Guile 1.8 not found. Guile bindings not built." >&2;}
49161 opt_guile_bindings=no
49163 # Extract the first word of "guile", so it can be a program name with args.
49164 set dummy guile; ac_word=$2
49165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
49166 $as_echo_n "checking for $ac_word... " >&6; }
49167 if ${ac_cv_path_GUILE+:} false; then :
49168 $as_echo_n "(cached) " >&6
49172 ac_cv_path_GUILE="$GUILE" # Let the user override the test with a path.
49175 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
49176 for as_dir in $PATH
49179 test -z "$as_dir" && as_dir=.
49180 for ac_exec_ext in '' $ac_executable_extensions; do
49181 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
49182 ac_cv_path_GUILE="$as_dir/$ac_word$ac_exec_ext"
49183 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
49193 GUILE=$ac_cv_path_GUILE
49194 if test -n "$GUILE"; then
49195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GUILE" >&5
49196 $as_echo "$GUILE" >&6; }
49198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
49199 $as_echo "no" >&6; }
49203 if test "$GUILE" = "" ; then
49204 as_fn_error $? "guile required but not found" "$LINENO" 5
49207 # Extract the first word of "guile-config", so it can be a program name with args.
49208 set dummy guile-config; ac_word=$2
49209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
49210 $as_echo_n "checking for $ac_word... " >&6; }
49211 if ${ac_cv_path_GUILE_CONFIG+:} false; then :
49212 $as_echo_n "(cached) " >&6
49214 case $GUILE_CONFIG in
49216 ac_cv_path_GUILE_CONFIG="$GUILE_CONFIG" # Let the user override the test with a path.
49219 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
49220 for as_dir in $PATH
49223 test -z "$as_dir" && as_dir=.
49224 for ac_exec_ext in '' $ac_executable_extensions; do
49225 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
49226 ac_cv_path_GUILE_CONFIG="$as_dir/$ac_word$ac_exec_ext"
49227 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
49237 GUILE_CONFIG=$ac_cv_path_GUILE_CONFIG
49238 if test -n "$GUILE_CONFIG"; then
49239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GUILE_CONFIG" >&5
49240 $as_echo "$GUILE_CONFIG" >&6; }
49242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
49243 $as_echo "no" >&6; }
49247 if test "$GUILE_CONFIG" = "" ; then
49248 as_fn_error $? "guile-config required but not found" "$LINENO" 5
49251 # Extract the first word of "guile-tools", so it can be a program name with args.
49252 set dummy guile-tools; ac_word=$2
49253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
49254 $as_echo_n "checking for $ac_word... " >&6; }
49255 if ${ac_cv_path_GUILE_TOOLS+:} false; then :
49256 $as_echo_n "(cached) " >&6
49258 case $GUILE_TOOLS in
49260 ac_cv_path_GUILE_TOOLS="$GUILE_TOOLS" # Let the user override the test with a path.
49263 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
49264 for as_dir in $PATH
49267 test -z "$as_dir" && as_dir=.
49268 for ac_exec_ext in '' $ac_executable_extensions; do
49269 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
49270 ac_cv_path_GUILE_TOOLS="$as_dir/$ac_word$ac_exec_ext"
49271 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
49281 GUILE_TOOLS=$ac_cv_path_GUILE_TOOLS
49282 if test -n "$GUILE_TOOLS"; then
49283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GUILE_TOOLS" >&5
49284 $as_echo "$GUILE_TOOLS" >&6; }
49286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
49287 $as_echo "no" >&6; }
49293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking libguile compile flags" >&5
49294 $as_echo_n "checking libguile compile flags... " >&6; }
49295 GUILE_CFLAGS="`$GUILE_CONFIG compile`"
49296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GUILE_CFLAGS" >&5
49297 $as_echo "$GUILE_CFLAGS" >&6; }
49298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking libguile link flags" >&5
49299 $as_echo_n "checking libguile link flags... " >&6; }
49300 GUILE_LDFLAGS="`$GUILE_CONFIG link`"
49301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GUILE_LDFLAGS" >&5
49302 $as_echo "$GUILE_LDFLAGS" >&6; }
49307 save_CFLAGS="$CFLAGS"
49309 CFLAGS="$CFLAGS $GUILE_CFLAGS"
49310 LIBS="$LIBS $GUILE_LDFLAGS"
49311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether GNU Guile is recent enough" >&5
49312 $as_echo_n "checking whether GNU Guile is recent enough... " >&6; }
49313 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
49314 /* end confdefs.h. */
49319 scm_from_locale_string ("")
49324 if ac_fn_c_try_link "$LINENO"; then :
49327 opt_guile_bindings=no
49329 rm -f core conftest.err conftest.$ac_objext \
49330 conftest$ac_exeext conftest.$ac_ext
49331 CFLAGS="$save_CFLAGS"
49334 if test "$opt_guile_bindings" = "yes"; then
49335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
49336 $as_echo "yes" >&6; }
49337 case "x$with_guile_site_dir" in
49339 # Use the default $(GUILE_SITE).
49340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Guile site directory" >&5
49341 $as_echo_n "checking for Guile site directory... " >&6; }
49342 GUILE_SITE=`$GUILE_CONFIG info pkgdatadir`/site
49343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GUILE_SITE" >&5
49344 $as_echo "$GUILE_SITE" >&6; }
49349 # Automatically derive $(GUILE_SITE) from $(pkgdatadir). This
49350 # hack is used to allow `distcheck' to work (see
49351 # `DISTCHECK_CONFIGURE_FLAGS' in the top-level `Makefile.am').
49352 GUILE_SITE="\$(datadir)/guile/site"
49356 # Use the user-specified directory as $(GUILE_SITE).
49357 GUILE_SITE="$with_guile_site_dir"
49361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc supports -fgnu89-inline" >&5
49362 $as_echo_n "checking whether gcc supports -fgnu89-inline... " >&6; }
49363 _gcc_cflags_save="$CFLAGS"
49364 CFLAGS="${CFLAGS} -fgnu89-inline"
49365 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
49366 /* end confdefs.h. */
49376 if ac_fn_c_try_compile "$LINENO"; then :
49381 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
49382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gnu89_inline" >&5
49383 $as_echo "$gnu89_inline" >&6; }
49384 CFLAGS="$_gcc_cflags_save"
49386 # Optional Guile functions.
49387 save_CFLAGS="$CFLAGS"
49389 CFLAGS="$CFLAGS $GUILE_CFLAGS"
49390 LIBS="$LIBS $GUILE_LDFLAGS"
49391 for ac_func in scm_gc_malloc_pointerless
49393 ac_fn_c_check_func "$LINENO" "scm_gc_malloc_pointerless" "ac_cv_func_scm_gc_malloc_pointerless"
49394 if test "x$ac_cv_func_scm_gc_malloc_pointerless" = xyes; then :
49395 cat >>confdefs.h <<_ACEOF
49396 #define HAVE_SCM_GC_MALLOC_POINTERLESS 1
49402 CFLAGS="$save_CFLAGS"
49405 # The place where guile-gnutls.la will go.
49406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the Guile effective version" >&5
49407 $as_echo_n "checking the Guile effective version... " >&6; }
49408 guile_effective_version="`$GUILE -c '(display (effective-version))'`"
49409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $guile_effective_version" >&5
49410 $as_echo "$guile_effective_version" >&6; }
49411 guileextensiondir="$libdir/guile/$guile_effective_version"
49414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
49415 $as_echo "no" >&6; }
49416 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: A sufficiently recent GNU Guile not found. Guile bindings not built." >&5
49417 $as_echo "$as_me: WARNING: A sufficiently recent GNU Guile not found. Guile bindings not built." >&2;}
49418 opt_guile_bindings=no
49422 if test "$opt_guile_bindings" = "yes"; then
49424 HAVE_GUILE_FALSE='#'
49426 HAVE_GUILE_TRUE='#'
49431 LIBGNUTLS_LIBS="-L${libdir} -lgnutls $LIBS"
49432 LIBGNUTLS_CFLAGS="-I${includedir}"
49436 if test "$gnutls_needs_librt" = "yes"; then
49438 NEEDS_LIBRT_FALSE='#'
49440 NEEDS_LIBRT_TRUE='#'
49446 $as_echo "#define GNUTLS_COMPAT_H 1" >>confdefs.h
49449 $as_echo "#define GNUTLS_INTERNAL_BUILD 1" >>confdefs.h
49453 $as_echo "#define fread_file _gnutls_fread_file" >>confdefs.h
49456 $as_echo "#define read_file _gnutls_read_file" >>confdefs.h
49459 $as_echo "#define read_binary_file _gnutls_read_binary_file" >>confdefs.h
49462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ***
49463 *** Checking dependencies for crywrap...
49466 *** Checking dependencies for crywrap...
49471 if test "$have_win" != "yes"; then
49473 for ac_header in arpa/inet.h netinet/in.h sys/select.h sys/types.h sys/wait.h
49475 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
49476 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
49477 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
49478 cat >>confdefs.h <<_ACEOF
49479 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
49487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
49488 $as_echo_n "checking return type of signal handlers... " >&6; }
49489 if ${ac_cv_type_signal+:} false; then :
49490 $as_echo_n "(cached) " >&6
49492 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
49493 /* end confdefs.h. */
49494 #include <sys/types.h>
49495 #include <signal.h>
49500 return *(signal (0, 0)) (0) == 1;
49505 if ac_fn_c_try_compile "$LINENO"; then :
49506 ac_cv_type_signal=int
49508 ac_cv_type_signal=void
49510 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
49512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
49513 $as_echo "$ac_cv_type_signal" >&6; }
49515 cat >>confdefs.h <<_ACEOF
49516 #define RETSIGTYPE $ac_cv_type_signal
49520 for ac_header in sys/select.h sys/socket.h
49522 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
49523 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
49524 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
49525 cat >>confdefs.h <<_ACEOF
49526 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
49533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking types of arguments for select" >&5
49534 $as_echo_n "checking types of arguments for select... " >&6; }
49535 if ${ac_cv_func_select_args+:} false; then :
49536 $as_echo_n "(cached) " >&6
49538 for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
49539 for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do
49540 for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
49541 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
49542 /* end confdefs.h. */
49543 $ac_includes_default
49544 #ifdef HAVE_SYS_SELECT_H
49545 # include <sys/select.h>
49547 #ifdef HAVE_SYS_SOCKET_H
49548 # include <sys/socket.h>
49554 extern int select ($ac_arg1,
49555 $ac_arg234, $ac_arg234, $ac_arg234,
49561 if ac_fn_c_try_compile "$LINENO"; then :
49562 ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
49564 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
49568 # Provide a safe default value.
49569 : "${ac_cv_func_select_args=int,int *,struct timeval *}"
49572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_select_args" >&5
49573 $as_echo "$ac_cv_func_select_args" >&6; }
49574 ac_save_IFS=$IFS; IFS=','
49575 set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
49579 cat >>confdefs.h <<_ACEOF
49580 #define SELECT_TYPE_ARG1 $1
49584 cat >>confdefs.h <<_ACEOF
49585 #define SELECT_TYPE_ARG234 ($2)
49589 cat >>confdefs.h <<_ACEOF
49590 #define SELECT_TYPE_ARG5 ($3)
49595 for ac_func in alarm atexit dup2 epoll_create kqueue memchr memset munmap \
49596 putenv regcomp scandir select socket strcasecmp strchr \
49597 strdup strerror strncasecmp strrchr strstr strtoul uname
49599 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
49600 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
49601 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
49602 cat >>confdefs.h <<_ACEOF
49603 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
49610 # Check whether --enable-crywrap was given.
49611 if test "${enable_crywrap+set}" = set; then :
49612 enableval=$enable_crywrap;
49618 if test "x$enable_crywrap" != "xno" ; then
49621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBIDN" >&5
49622 $as_echo_n "checking for LIBIDN... " >&6; }
49624 if test -n "$PKG_CONFIG"; then
49625 if test -n "$LIBIDN_CFLAGS"; then
49626 pkg_cv_LIBIDN_CFLAGS="$LIBIDN_CFLAGS"
49628 if test -n "$PKG_CONFIG" && \
49629 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libidn >= 0.0.0\""; } >&5
49630 ($PKG_CONFIG --exists --print-errors "libidn >= 0.0.0") 2>&5
49632 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
49633 test $ac_status = 0; }; then
49634 pkg_cv_LIBIDN_CFLAGS=`$PKG_CONFIG --cflags "libidn >= 0.0.0" 2>/dev/null`
49642 if test -n "$PKG_CONFIG"; then
49643 if test -n "$LIBIDN_LIBS"; then
49644 pkg_cv_LIBIDN_LIBS="$LIBIDN_LIBS"
49646 if test -n "$PKG_CONFIG" && \
49647 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libidn >= 0.0.0\""; } >&5
49648 ($PKG_CONFIG --exists --print-errors "libidn >= 0.0.0") 2>&5
49650 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
49651 test $ac_status = 0; }; then
49652 pkg_cv_LIBIDN_LIBS=`$PKG_CONFIG --libs "libidn >= 0.0.0" 2>/dev/null`
49663 if test $pkg_failed = yes; then
49665 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
49666 _pkg_short_errors_supported=yes
49668 _pkg_short_errors_supported=no
49670 if test $_pkg_short_errors_supported = yes; then
49671 LIBIDN_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "libidn >= 0.0.0"`
49673 LIBIDN_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libidn >= 0.0.0"`
49675 # Put the nasty error message in config.log where it belongs
49676 echo "$LIBIDN_PKG_ERRORS" >&5
49678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
49679 $as_echo "no" >&6; }
49681 elif test $pkg_failed = untried; then
49684 LIBIDN_CFLAGS=$pkg_cv_LIBIDN_CFLAGS
49685 LIBIDN_LIBS=$pkg_cv_LIBIDN_LIBS
49686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
49687 $as_echo "yes" >&6; }
49690 for ac_func in argp_usage
49692 ac_fn_c_check_func "$LINENO" "argp_usage" "ac_cv_func_argp_usage"
49693 if test "x$ac_cv_func_argp_usage" = xyes; then :
49694 cat >>confdefs.h <<_ACEOF
49695 #define HAVE_ARGP_USAGE 1
49705 if test "x$libidn" != "xno" && test "$ac_cv_func_daemon" != "no" && test "$ac_argp" != "no";then
49711 if test "x$crywrap" != "xno"; then
49712 ENABLE_CRYWRAP_TRUE=
49713 ENABLE_CRYWRAP_FALSE='#'
49715 ENABLE_CRYWRAP_TRUE='#'
49716 ENABLE_CRYWRAP_FALSE=
49725 ac_config_files="$ac_config_files guile/pre-inst-guile"
49727 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"
49730 cat >confcache <<\_ACEOF
49731 # This file is a shell script that caches the results of configure
49732 # tests run on this system so they can be shared between configure
49733 # scripts and configure runs, see configure's option --config-cache.
49734 # It is not useful on other systems. If it contains results you don't
49735 # want to keep, you may remove or edit it.
49737 # config.status only pays attention to the cache file if you give it
49738 # the --recheck option to rerun configure.
49740 # `ac_cv_env_foo' variables (set or unset) will be overridden when
49741 # loading this file, other *unset* `ac_cv_foo' will be assigned the
49742 # following values.
49746 # The following way of writing the cache mishandles newlines in values,
49747 # but we know of no workaround that is simple, portable, and efficient.
49748 # So, we kill variables containing newlines.
49749 # Ultrix sh set writes to stderr and can't be redirected directly,
49750 # and sets the high bit in the cache file unless we assign to the vars.
49752 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
49753 eval ac_val=\$$ac_var
49757 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
49758 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
49761 _ | IFS | as_nl) ;; #(
49762 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
49763 *) { eval $ac_var=; unset $ac_var;} ;;
49769 case $as_nl`(ac_space=' '; set) 2>&1` in #(
49770 *${as_nl}ac_space=\ *)
49771 # `set' does not quote correctly, so add quotes: double-quote
49772 # substitution turns \\\\ into \\, and sed turns \\ into \.
49775 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
49778 # `set' quotes correctly as required by POSIX, so do not add quotes.
49779 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
49788 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
49790 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
49792 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
49793 if test -w "$cache_file"; then
49794 if test "x$cache_file" != "x/dev/null"; then
49795 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
49796 $as_echo "$as_me: updating cache $cache_file" >&6;}
49797 if test ! -f "$cache_file" || test -h "$cache_file"; then
49798 cat confcache >"$cache_file"
49800 case $cache_file in #(
49802 mv -f confcache "$cache_file"$$ &&
49803 mv -f "$cache_file"$$ "$cache_file" ;; #(
49805 mv -f confcache "$cache_file" ;;
49810 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
49811 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
49816 test "x$prefix" = xNONE && prefix=$ac_default_prefix
49817 # Let make expand exec_prefix.
49818 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
49820 DEFS=-DHAVE_CONFIG_H
49825 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
49826 # 1. Remove the extension, and $U if already installed.
49827 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
49828 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
49829 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
49830 # will be set to the directory where LIBOBJS objects are built.
49831 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
49832 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
49834 LIBOBJS=$ac_libobjs
49836 LTLIBOBJS=$ac_ltlibobjs
49839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
49840 $as_echo_n "checking that generated files are newer than configure... " >&6; }
49841 if test -n "$am_sleep_pid"; then
49842 # Hide warnings about reused PIDs.
49843 wait $am_sleep_pid 2>/dev/null
49845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
49846 $as_echo "done" >&6; }
49847 if test -n "$EXEEXT"; then
49849 am__EXEEXT_FALSE='#'
49851 am__EXEEXT_TRUE='#'
49855 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
49856 as_fn_error $? "conditional \"AMDEP\" was never defined.
49857 Usually this means the macro was only invoked conditionally." "$LINENO" 5
49859 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
49860 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
49861 Usually this means the macro was only invoked conditionally." "$LINENO" 5
49863 if test -z "${am__fastdepCCAS_TRUE}" && test -z "${am__fastdepCCAS_FALSE}"; then
49864 as_fn_error $? "conditional \"am__fastdepCCAS\" was never defined.
49865 Usually this means the macro was only invoked conditionally." "$LINENO" 5
49867 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
49868 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
49869 Usually this means the macro was only invoked conditionally." "$LINENO" 5
49871 if test -z "${ENABLE_CXX_TRUE}" && test -z "${ENABLE_CXX_FALSE}"; then
49872 as_fn_error $? "conditional \"ENABLE_CXX\" was never defined.
49873 Usually this means the macro was only invoked conditionally." "$LINENO" 5
49875 if test -z "${WANT_TEST_SUITE_TRUE}" && test -z "${WANT_TEST_SUITE_FALSE}"; then
49876 as_fn_error $? "conditional \"WANT_TEST_SUITE\" was never defined.
49877 Usually this means the macro was only invoked conditionally." "$LINENO" 5
49879 if test -z "${WINDOWS_TRUE}" && test -z "${WINDOWS_FALSE}"; then
49880 as_fn_error $? "conditional \"WINDOWS\" was never defined.
49881 Usually this means the macro was only invoked conditionally." "$LINENO" 5
49883 if test -z "${MACOSX_TRUE}" && test -z "${MACOSX_FALSE}"; then
49884 as_fn_error $? "conditional \"MACOSX\" was never defined.
49885 Usually this means the macro was only invoked conditionally." "$LINENO" 5
49887 if test -z "${ELF_TRUE}" && test -z "${ELF_FALSE}"; then
49888 as_fn_error $? "conditional \"ELF\" was never defined.
49889 Usually this means the macro was only invoked conditionally." "$LINENO" 5
49891 if test -z "${ASM_X86_64_TRUE}" && test -z "${ASM_X86_64_FALSE}"; then
49892 as_fn_error $? "conditional \"ASM_X86_64\" was never defined.
49893 Usually this means the macro was only invoked conditionally." "$LINENO" 5
49895 if test -z "${ASM_X86_32_TRUE}" && test -z "${ASM_X86_32_FALSE}"; then
49896 as_fn_error $? "conditional \"ASM_X86_32\" was never defined.
49897 Usually this means the macro was only invoked conditionally." "$LINENO" 5
49899 if test -z "${ASM_X86_TRUE}" && test -z "${ASM_X86_FALSE}"; then
49900 as_fn_error $? "conditional \"ASM_X86\" was never defined.
49901 Usually this means the macro was only invoked conditionally." "$LINENO" 5
49903 if test -z "${HAVE_GCC_GNU89_INLINE_OPTION_TRUE}" && test -z "${HAVE_GCC_GNU89_INLINE_OPTION_FALSE}"; then
49904 as_fn_error $? "conditional \"HAVE_GCC_GNU89_INLINE_OPTION\" was never defined.
49905 Usually this means the macro was only invoked conditionally." "$LINENO" 5
49907 if test -z "${HAVE_GCC_TRUE}" && test -z "${HAVE_GCC_FALSE}"; then
49908 as_fn_error $? "conditional \"HAVE_GCC\" was never defined.
49909 Usually this means the macro was only invoked conditionally." "$LINENO" 5
49911 if test -z "${ENABLE_NETTLE_TRUE}" && test -z "${ENABLE_NETTLE_FALSE}"; then
49912 as_fn_error $? "conditional \"ENABLE_NETTLE\" was never defined.
49913 Usually this means the macro was only invoked conditionally." "$LINENO" 5
49915 if test -z "${ENABLE_MINITASN1_TRUE}" && test -z "${ENABLE_MINITASN1_FALSE}"; then
49916 as_fn_error $? "conditional \"ENABLE_MINITASN1\" was never defined.
49917 Usually this means the macro was only invoked conditionally." "$LINENO" 5
49919 if test -z "${ENABLE_DTLS_SRTP_TRUE}" && test -z "${ENABLE_DTLS_SRTP_FALSE}"; then
49920 as_fn_error $? "conditional \"ENABLE_DTLS_SRTP\" was never defined.
49921 Usually this means the macro was only invoked conditionally." "$LINENO" 5
49923 if test -z "${ENABLE_ALPN_TRUE}" && test -z "${ENABLE_ALPN_FALSE}"; then
49924 as_fn_error $? "conditional \"ENABLE_ALPN\" was never defined.
49925 Usually this means the macro was only invoked conditionally." "$LINENO" 5
49927 if test -z "${ENABLE_RSA_EXPORT_TRUE}" && test -z "${ENABLE_RSA_EXPORT_FALSE}"; then
49928 as_fn_error $? "conditional \"ENABLE_RSA_EXPORT\" was never defined.
49929 Usually this means the macro was only invoked conditionally." "$LINENO" 5
49931 if test -z "${ENABLE_HEARTBEAT_TRUE}" && test -z "${ENABLE_HEARTBEAT_FALSE}"; then
49932 as_fn_error $? "conditional \"ENABLE_HEARTBEAT\" was never defined.
49933 Usually this means the macro was only invoked conditionally." "$LINENO" 5
49935 if test -z "${ENABLE_SRP_TRUE}" && test -z "${ENABLE_SRP_FALSE}"; then
49936 as_fn_error $? "conditional \"ENABLE_SRP\" was never defined.
49937 Usually this means the macro was only invoked conditionally." "$LINENO" 5
49939 if test -z "${ENABLE_PSK_TRUE}" && test -z "${ENABLE_PSK_FALSE}"; then
49940 as_fn_error $? "conditional \"ENABLE_PSK\" was never defined.
49941 Usually this means the macro was only invoked conditionally." "$LINENO" 5
49943 if test -z "${ENABLE_ANON_TRUE}" && test -z "${ENABLE_ANON_FALSE}"; then
49944 as_fn_error $? "conditional \"ENABLE_ANON\" was never defined.
49945 Usually this means the macro was only invoked conditionally." "$LINENO" 5
49947 if test -z "${ENABLE_DHE_TRUE}" && test -z "${ENABLE_DHE_FALSE}"; then
49948 as_fn_error $? "conditional \"ENABLE_DHE\" was never defined.
49949 Usually this means the macro was only invoked conditionally." "$LINENO" 5
49951 if test -z "${ENABLE_ECDHE_TRUE}" && test -z "${ENABLE_ECDHE_FALSE}"; then
49952 as_fn_error $? "conditional \"ENABLE_ECDHE\" was never defined.
49953 Usually this means the macro was only invoked conditionally." "$LINENO" 5
49955 if test -z "${ENABLE_OPENPGP_TRUE}" && test -z "${ENABLE_OPENPGP_FALSE}"; then
49956 as_fn_error $? "conditional \"ENABLE_OPENPGP\" was never defined.
49957 Usually this means the macro was only invoked conditionally." "$LINENO" 5
49959 if test -z "${ENABLE_OCSP_TRUE}" && test -z "${ENABLE_OCSP_FALSE}"; then
49960 as_fn_error $? "conditional \"ENABLE_OCSP\" was never defined.
49961 Usually this means the macro was only invoked conditionally." "$LINENO" 5
49963 if test -z "${ENABLE_SESSION_TICKETS_TRUE}" && test -z "${ENABLE_SESSION_TICKETS_FALSE}"; then
49964 as_fn_error $? "conditional \"ENABLE_SESSION_TICKETS\" was never defined.
49965 Usually this means the macro was only invoked conditionally." "$LINENO" 5
49967 if test -z "${ENABLE_OPENSSL_TRUE}" && test -z "${ENABLE_OPENSSL_FALSE}"; then
49968 as_fn_error $? "conditional \"ENABLE_OPENSSL\" was never defined.
49969 Usually this means the macro was only invoked conditionally." "$LINENO" 5
49971 if test -z "${ENABLE_DOC_TRUE}" && test -z "${ENABLE_DOC_FALSE}"; then
49972 as_fn_error $? "conditional \"ENABLE_DOC\" was never defined.
49973 Usually this means the macro was only invoked conditionally." "$LINENO" 5
49975 if test -z "${ENABLE_TESTS_TRUE}" && test -z "${ENABLE_TESTS_FALSE}"; then
49976 as_fn_error $? "conditional \"ENABLE_TESTS\" was never defined.
49977 Usually this means the macro was only invoked conditionally." "$LINENO" 5
49979 if test -z "${ENABLE_GTK_DOC_TRUE}" && test -z "${ENABLE_GTK_DOC_FALSE}"; then
49980 as_fn_error $? "conditional \"ENABLE_GTK_DOC\" was never defined.
49981 Usually this means the macro was only invoked conditionally." "$LINENO" 5
49983 if test -z "${GTK_DOC_BUILD_HTML_TRUE}" && test -z "${GTK_DOC_BUILD_HTML_FALSE}"; then
49984 as_fn_error $? "conditional \"GTK_DOC_BUILD_HTML\" was never defined.
49985 Usually this means the macro was only invoked conditionally." "$LINENO" 5
49987 if test -z "${GTK_DOC_BUILD_PDF_TRUE}" && test -z "${GTK_DOC_BUILD_PDF_FALSE}"; then
49988 as_fn_error $? "conditional \"GTK_DOC_BUILD_PDF\" was never defined.
49989 Usually this means the macro was only invoked conditionally." "$LINENO" 5
49991 if test -z "${GTK_DOC_USE_LIBTOOL_TRUE}" && test -z "${GTK_DOC_USE_LIBTOOL_FALSE}"; then
49992 as_fn_error $? "conditional \"GTK_DOC_USE_LIBTOOL\" was never defined.
49993 Usually this means the macro was only invoked conditionally." "$LINENO" 5
49995 if test -z "${GTK_DOC_USE_REBASE_TRUE}" && test -z "${GTK_DOC_USE_REBASE_FALSE}"; then
49996 as_fn_error $? "conditional \"GTK_DOC_USE_REBASE\" was never defined.
49997 Usually this means the macro was only invoked conditionally." "$LINENO" 5
50000 if test -z "${HAVE_FORK_TRUE}" && test -z "${HAVE_FORK_FALSE}"; then
50001 as_fn_error $? "conditional \"HAVE_FORK\" was never defined.
50002 Usually this means the macro was only invoked conditionally." "$LINENO" 5
50004 if test -z "${GL_COND_LIBTOOL_TRUE}" && test -z "${GL_COND_LIBTOOL_FALSE}"; then
50005 as_fn_error $? "conditional \"GL_COND_LIBTOOL\" was never defined.
50006 Usually this means the macro was only invoked conditionally." "$LINENO" 5
50008 if test -z "${GL_GENERATE_ALLOCA_H_TRUE}" && test -z "${GL_GENERATE_ALLOCA_H_FALSE}"; then
50009 as_fn_error $? "conditional \"GL_GENERATE_ALLOCA_H\" was never defined.
50010 Usually this means the macro was only invoked conditionally." "$LINENO" 5
50012 if test -z "${GL_GENERATE_BYTESWAP_H_TRUE}" && test -z "${GL_GENERATE_BYTESWAP_H_FALSE}"; then
50013 as_fn_error $? "conditional \"GL_GENERATE_BYTESWAP_H\" was never defined.
50014 Usually this means the macro was only invoked conditionally." "$LINENO" 5
50016 if test -z "${GL_GENERATE_ERRNO_H_TRUE}" && test -z "${GL_GENERATE_ERRNO_H_FALSE}"; then
50017 as_fn_error $? "conditional \"GL_GENERATE_ERRNO_H\" was never defined.
50018 Usually this means the macro was only invoked conditionally." "$LINENO" 5
50020 if test -z "${GL_GENERATE_FLOAT_H_TRUE}" && test -z "${GL_GENERATE_FLOAT_H_FALSE}"; then
50021 as_fn_error $? "conditional \"GL_GENERATE_FLOAT_H\" was never defined.
50022 Usually this means the macro was only invoked conditionally." "$LINENO" 5
50024 if test -z "${HAVE_LD_OUTPUT_DEF_TRUE}" && test -z "${HAVE_LD_OUTPUT_DEF_FALSE}"; then
50025 as_fn_error $? "conditional \"HAVE_LD_OUTPUT_DEF\" was never defined.
50026 Usually this means the macro was only invoked conditionally." "$LINENO" 5
50028 if test -z "${HAVE_LD_VERSION_SCRIPT_TRUE}" && test -z "${HAVE_LD_VERSION_SCRIPT_FALSE}"; then
50029 as_fn_error $? "conditional \"HAVE_LD_VERSION_SCRIPT\" was never defined.
50030 Usually this means the macro was only invoked conditionally." "$LINENO" 5
50032 CONFIG_INCLUDE=config.h
50034 if test -z "${GL_GENERATE_NETINET_IN_H_TRUE}" && test -z "${GL_GENERATE_NETINET_IN_H_FALSE}"; then
50035 as_fn_error $? "conditional \"GL_GENERATE_NETINET_IN_H\" was never defined.
50036 Usually this means the macro was only invoked conditionally." "$LINENO" 5
50038 if test -z "${GL_GENERATE_STDALIGN_H_TRUE}" && test -z "${GL_GENERATE_STDALIGN_H_FALSE}"; then
50039 as_fn_error $? "conditional \"GL_GENERATE_STDALIGN_H\" was never defined.
50040 Usually this means the macro was only invoked conditionally." "$LINENO" 5
50042 if test -z "${GL_GENERATE_STDBOOL_H_TRUE}" && test -z "${GL_GENERATE_STDBOOL_H_FALSE}"; then
50043 as_fn_error $? "conditional \"GL_GENERATE_STDBOOL_H\" was never defined.
50044 Usually this means the macro was only invoked conditionally." "$LINENO" 5
50046 if test -z "${GL_GENERATE_STDDEF_H_TRUE}" && test -z "${GL_GENERATE_STDDEF_H_FALSE}"; then
50047 as_fn_error $? "conditional \"GL_GENERATE_STDDEF_H\" was never defined.
50048 Usually this means the macro was only invoked conditionally." "$LINENO" 5
50050 if test -z "${GL_GENERATE_STDINT_H_TRUE}" && test -z "${GL_GENERATE_STDINT_H_FALSE}"; then
50051 as_fn_error $? "conditional \"GL_GENERATE_STDINT_H\" was never defined.
50052 Usually this means the macro was only invoked conditionally." "$LINENO" 5
50058 if test -n "$gl_LIBOBJS"; then
50059 # Remove the extension.
50060 sed_drop_objext='s/\.o$//;s/\.obj$//'
50061 for i in `for i in $gl_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
50062 gl_libobjs="$gl_libobjs $i.$ac_objext"
50063 gl_ltlibobjs="$gl_ltlibobjs $i.lo"
50066 gl_LIBOBJS=$gl_libobjs
50068 gl_LTLIBOBJS=$gl_ltlibobjs
50074 if test -n "$gltests_LIBOBJS"; then
50075 # Remove the extension.
50076 sed_drop_objext='s/\.o$//;s/\.obj$//'
50077 for i in `for i in $gltests_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
50078 gltests_libobjs="$gltests_libobjs $i.$ac_objext"
50079 gltests_ltlibobjs="$gltests_ltlibobjs $i.lo"
50082 gltests_LIBOBJS=$gltests_libobjs
50084 gltests_LTLIBOBJS=$gltests_ltlibobjs
50087 if test -z "${GL_COND_LIBTOOL_TRUE}" && test -z "${GL_COND_LIBTOOL_FALSE}"; then
50088 as_fn_error $? "conditional \"GL_COND_LIBTOOL\" was never defined.
50089 Usually this means the macro was only invoked conditionally." "$LINENO" 5
50091 if test -z "${GL_GENERATE_ALLOCA_H_TRUE}" && test -z "${GL_GENERATE_ALLOCA_H_FALSE}"; then
50092 as_fn_error $? "conditional \"GL_GENERATE_ALLOCA_H\" was never defined.
50093 Usually this means the macro was only invoked conditionally." "$LINENO" 5
50095 if test -z "${GL_GENERATE_FLOAT_H_TRUE}" && test -z "${GL_GENERATE_FLOAT_H_FALSE}"; then
50096 as_fn_error $? "conditional \"GL_GENERATE_FLOAT_H\" was never defined.
50097 Usually this means the macro was only invoked conditionally." "$LINENO" 5
50099 if test -z "${GL_GENERATE_NETINET_IN_H_TRUE}" && test -z "${GL_GENERATE_NETINET_IN_H_FALSE}"; then
50100 as_fn_error $? "conditional \"GL_GENERATE_NETINET_IN_H\" was never defined.
50101 Usually this means the macro was only invoked conditionally." "$LINENO" 5
50103 if test -z "${GL_GENERATE_STDALIGN_H_TRUE}" && test -z "${GL_GENERATE_STDALIGN_H_FALSE}"; then
50104 as_fn_error $? "conditional \"GL_GENERATE_STDALIGN_H\" was never defined.
50105 Usually this means the macro was only invoked conditionally." "$LINENO" 5
50107 if test -z "${GL_GENERATE_STDBOOL_H_TRUE}" && test -z "${GL_GENERATE_STDBOOL_H_FALSE}"; then
50108 as_fn_error $? "conditional \"GL_GENERATE_STDBOOL_H\" was never defined.
50109 Usually this means the macro was only invoked conditionally." "$LINENO" 5
50111 if test -z "${GL_GENERATE_STDDEF_H_TRUE}" && test -z "${GL_GENERATE_STDDEF_H_FALSE}"; then
50112 as_fn_error $? "conditional \"GL_GENERATE_STDDEF_H\" was never defined.
50113 Usually this means the macro was only invoked conditionally." "$LINENO" 5
50118 if test -n "$ggl_LIBOBJS"; then
50119 # Remove the extension.
50120 sed_drop_objext='s/\.o$//;s/\.obj$//'
50121 for i in `for i in $ggl_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
50122 ggl_libobjs="$ggl_libobjs $i.$ac_objext"
50123 ggl_ltlibobjs="$ggl_ltlibobjs $i.lo"
50126 ggl_LIBOBJS=$ggl_libobjs
50128 ggl_LTLIBOBJS=$ggl_ltlibobjs
50133 ggltests_ltlibobjs=
50134 if test -n "$ggltests_LIBOBJS"; then
50135 # Remove the extension.
50136 sed_drop_objext='s/\.o$//;s/\.obj$//'
50137 for i in `for i in $ggltests_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
50138 ggltests_libobjs="$ggltests_libobjs $i.$ac_objext"
50139 ggltests_ltlibobjs="$ggltests_ltlibobjs $i.lo"
50142 ggltests_LIBOBJS=$ggltests_libobjs
50144 ggltests_LTLIBOBJS=$ggltests_ltlibobjs
50147 if test -z "${ENABLE_FIPS140_TRUE}" && test -z "${ENABLE_FIPS140_FALSE}"; then
50148 as_fn_error $? "conditional \"ENABLE_FIPS140\" was never defined.
50149 Usually this means the macro was only invoked conditionally." "$LINENO" 5
50151 if test -z "${ENABLE_SELF_CHECKS_TRUE}" && test -z "${ENABLE_SELF_CHECKS_FALSE}"; then
50152 as_fn_error $? "conditional \"ENABLE_SELF_CHECKS\" was never defined.
50153 Usually this means the macro was only invoked conditionally." "$LINENO" 5
50155 if test -z "${ENABLE_DANE_TRUE}" && test -z "${ENABLE_DANE_FALSE}"; then
50156 as_fn_error $? "conditional \"ENABLE_DANE\" was never defined.
50157 Usually this means the macro was only invoked conditionally." "$LINENO" 5
50159 if test -z "${ENABLE_PKCS11_TRUE}" && test -z "${ENABLE_PKCS11_FALSE}"; then
50160 as_fn_error $? "conditional \"ENABLE_PKCS11\" was never defined.
50161 Usually this means the macro was only invoked conditionally." "$LINENO" 5
50163 if test -z "${ENABLE_TROUSERS_TRUE}" && test -z "${ENABLE_TROUSERS_FALSE}"; then
50164 as_fn_error $? "conditional \"ENABLE_TROUSERS\" was never defined.
50165 Usually this means the macro was only invoked conditionally." "$LINENO" 5
50167 if test -z "${INSTALL_LIBOPTS_TRUE}" && test -z "${INSTALL_LIBOPTS_FALSE}"; then
50168 as_fn_error $? "conditional \"INSTALL_LIBOPTS\" was never defined.
50169 Usually this means the macro was only invoked conditionally." "$LINENO" 5
50171 if test -z "${NEED_LIBOPTS_TRUE}" && test -z "${NEED_LIBOPTS_FALSE}"; then
50172 as_fn_error $? "conditional \"NEED_LIBOPTS\" was never defined.
50173 Usually this means the macro was only invoked conditionally." "$LINENO" 5
50175 if test -z "${NEED_LIBOPTS_TRUE}" && test -z "${NEED_LIBOPTS_FALSE}"; then
50176 as_fn_error $? "conditional \"NEED_LIBOPTS\" was never defined.
50177 Usually this means the macro was only invoked conditionally." "$LINENO" 5
50179 if test -z "${HAVE_GUILE_TRUE}" && test -z "${HAVE_GUILE_FALSE}"; then
50180 as_fn_error $? "conditional \"HAVE_GUILE\" was never defined.
50181 Usually this means the macro was only invoked conditionally." "$LINENO" 5
50183 if test -z "${NEEDS_LIBRT_TRUE}" && test -z "${NEEDS_LIBRT_FALSE}"; then
50184 as_fn_error $? "conditional \"NEEDS_LIBRT\" was never defined.
50185 Usually this means the macro was only invoked conditionally." "$LINENO" 5
50187 if test -z "${ENABLE_CRYWRAP_TRUE}" && test -z "${ENABLE_CRYWRAP_FALSE}"; then
50188 as_fn_error $? "conditional \"ENABLE_CRYWRAP\" was never defined.
50189 Usually this means the macro was only invoked conditionally." "$LINENO" 5
50192 : "${CONFIG_STATUS=./config.status}"
50194 ac_clean_files_save=$ac_clean_files
50195 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
50196 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
50197 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
50199 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
50201 # Generated by $as_me.
50202 # Run this file to recreate the current configuration.
50203 # Compiler output produced by configure, useful for debugging
50204 # configure, is in config.log if it exists.
50207 ac_cs_recheck=false
50210 SHELL=\${CONFIG_SHELL-$SHELL}
50213 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
50214 ## -------------------- ##
50215 ## M4sh Initialization. ##
50216 ## -------------------- ##
50218 # Be more Bourne compatible
50219 DUALCASE=1; export DUALCASE # for MKS sh
50220 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
50223 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
50224 # is contrary to our usage. Disable this feature.
50225 alias -g '${1+"$@"}'='"$@"'
50226 setopt NO_GLOB_SUBST
50228 case `(set -o) 2>/dev/null` in #(
50240 # Printing a long string crashes Solaris 7 /usr/bin/printf.
50241 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
50242 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
50243 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
50244 # Prefer a ksh shell builtin over an external printf program on Solaris,
50245 # but without wasting forks for bash or zsh.
50246 if test -z "$BASH_VERSION$ZSH_VERSION" \
50247 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
50248 as_echo='print -r --'
50249 as_echo_n='print -rn --'
50250 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50251 as_echo='printf %s\n'
50252 as_echo_n='printf %s'
50254 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
50255 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
50256 as_echo_n='/usr/ucb/echo -n'
50258 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
50259 as_echo_n_body='eval
50263 expr "X$arg" : "X\\(.*\\)$as_nl";
50264 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
50266 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
50268 export as_echo_n_body
50269 as_echo_n='sh -c $as_echo_n_body as_echo'
50271 export as_echo_body
50272 as_echo='sh -c $as_echo_body as_echo'
50275 # The user is always right.
50276 if test "${PATH_SEPARATOR+set}" != set; then
50278 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
50279 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
50286 # We need space, tab and new line, in precisely that order. Quoting is
50287 # there to prevent editors from complaining about space-tab.
50288 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
50289 # splitting by setting IFS to empty value.)
50292 # Find who we are. Look in the path if we contain no directory separator.
50295 *[\\/]* ) as_myself=$0 ;;
50296 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
50297 for as_dir in $PATH
50300 test -z "$as_dir" && as_dir=.
50301 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
50307 # We did not find ourselves, most probably we were run as `sh COMMAND'
50308 # in which case we are not to be found in the path.
50309 if test "x$as_myself" = x; then
50312 if test ! -f "$as_myself"; then
50313 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
50317 # Unset variables that we do not need and which cause bugs (e.g. in
50318 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
50319 # suppresses any "Segmentation fault" message there. '((' could
50320 # trigger a bug in pdksh 5.2.14.
50321 for as_var in BASH_ENV ENV MAIL MAILPATH
50322 do eval test x\${$as_var+set} = xset \
50323 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
50336 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
50339 # as_fn_error STATUS ERROR [LINENO LOG_FD]
50340 # ----------------------------------------
50341 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
50342 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
50343 # script with STATUS, using 1 if that was 0.
50346 as_status=$1; test $as_status -eq 0 && as_status=1
50348 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
50349 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
50351 $as_echo "$as_me: error: $2" >&2
50352 as_fn_exit $as_status
50356 # as_fn_set_status STATUS
50357 # -----------------------
50358 # Set $? to STATUS, without forking.
50359 as_fn_set_status ()
50362 } # as_fn_set_status
50364 # as_fn_exit STATUS
50365 # -----------------
50366 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
50370 as_fn_set_status $1
50376 # Portably unset VAR.
50379 { eval $1=; unset $1;}
50381 as_unset=as_fn_unset
50382 # as_fn_append VAR VALUE
50383 # ----------------------
50384 # Append the text in VALUE to the end of the definition contained in VAR. Take
50385 # advantage of any shell optimizations that allow amortized linear growth over
50386 # repeated appends, instead of the typical quadratic growth present in naive
50388 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
50389 eval 'as_fn_append ()
50400 # as_fn_arith ARG...
50401 # ------------------
50402 # Perform arithmetic evaluation on the ARGs, and store the result in the
50403 # global $as_val. Take advantage of shells that can avoid forks. The arguments
50404 # must be portable across $(()) and expr.
50405 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
50406 eval 'as_fn_arith ()
50413 as_val=`expr "$@" || test $? -eq 1`
50418 if expr a : '\(a\)' >/dev/null 2>&1 &&
50419 test "X`expr 00001 : '.*\(...\)'`" = X001; then
50425 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
50426 as_basename=basename
50431 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
50437 as_me=`$as_basename -- "$0" ||
50438 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
50439 X"$0" : 'X\(//\)$' \| \
50440 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
50442 sed '/^.*\/\([^/][^/]*\)\/*$/{
50456 # Avoid depending upon Character Ranges.
50457 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
50458 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
50459 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
50460 as_cr_digits='0123456789'
50461 as_cr_alnum=$as_cr_Letters$as_cr_digits
50463 ECHO_C= ECHO_N= ECHO_T=
50464 case `echo -n x` in #(((((
50466 case `echo 'xy\c'` in
50467 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
50469 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
50476 rm -f conf$$ conf$$.exe conf$$.file
50477 if test -d conf$$.dir; then
50478 rm -f conf$$.dir/conf$$.file
50481 mkdir conf$$.dir 2>/dev/null
50483 if (echo >conf$$.file) 2>/dev/null; then
50484 if ln -s conf$$.file conf$$ 2>/dev/null; then
50486 # ... but there are two gotchas:
50487 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
50488 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
50489 # In both cases, we have to default to `cp -pR'.
50490 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
50492 elif ln conf$$.file conf$$ 2>/dev/null; then
50500 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
50501 rmdir conf$$.dir 2>/dev/null
50506 # Create "$as_dir" as a directory, including parents if necessary.
50511 -*) as_dir=./$as_dir;;
50513 test -d "$as_dir" || eval $as_mkdir_p || {
50517 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
50518 *) as_qdir=$as_dir;;
50520 as_dirs="'$as_qdir' $as_dirs"
50521 as_dir=`$as_dirname -- "$as_dir" ||
50522 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
50523 X"$as_dir" : 'X\(//\)[^/]' \| \
50524 X"$as_dir" : 'X\(//\)$' \| \
50525 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
50526 $as_echo X"$as_dir" |
50527 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
50531 /^X\(\/\/\)[^/].*/{
50544 test -d "$as_dir" && break
50546 test -z "$as_dirs" || eval "mkdir $as_dirs"
50547 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
50551 if mkdir -p . 2>/dev/null; then
50552 as_mkdir_p='mkdir -p "$as_dir"'
50554 test -d ./-p && rmdir ./-p
50559 # as_fn_executable_p FILE
50560 # -----------------------
50561 # Test if FILE is an executable regular file.
50562 as_fn_executable_p ()
50564 test -f "$1" && test -x "$1"
50565 } # as_fn_executable_p
50566 as_test_x='test -x'
50567 as_executable_p=as_fn_executable_p
50569 # Sed expression to map a string onto a valid CPP name.
50570 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
50572 # Sed expression to map a string onto a valid variable name.
50573 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
50577 ## ----------------------------------- ##
50578 ## Main body of $CONFIG_STATUS script. ##
50579 ## ----------------------------------- ##
50581 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
50583 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
50584 # Save the log message, to keep $0 and so on meaningful, and to
50585 # report actual input values of CONFIG_FILES etc. instead of their
50586 # values after options handling.
50588 This file was extended by GnuTLS $as_me 3.3.5, which was
50589 generated by GNU Autoconf 2.69. Invocation command line was
50591 CONFIG_FILES = $CONFIG_FILES
50592 CONFIG_HEADERS = $CONFIG_HEADERS
50593 CONFIG_LINKS = $CONFIG_LINKS
50594 CONFIG_COMMANDS = $CONFIG_COMMANDS
50597 on `(hostname || uname -n) 2>/dev/null | sed 1q`
50602 case $ac_config_files in *"
50603 "*) set x $ac_config_files; shift; ac_config_files=$*;;
50606 case $ac_config_headers in *"
50607 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
50611 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
50612 # Files that config.status was made for.
50613 config_files="$ac_config_files"
50614 config_headers="$ac_config_headers"
50615 config_links="$ac_config_links"
50616 config_commands="$ac_config_commands"
50620 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
50622 \`$as_me' instantiates files and other configuration actions
50623 from templates according to the current configuration. Unless the files
50624 and actions are specified as TAGs, all are instantiated by default.
50626 Usage: $0 [OPTION]... [TAG]...
50628 -h, --help print this help, then exit
50629 -V, --version print version number and configuration settings, then exit
50630 --config print configuration, then exit
50631 -q, --quiet, --silent
50632 do not print progress messages
50633 -d, --debug don't remove temporary files
50634 --recheck update $as_me by reconfiguring in the same conditions
50635 --file=FILE[:TEMPLATE]
50636 instantiate the configuration file FILE
50637 --header=FILE[:TEMPLATE]
50638 instantiate the configuration header FILE
50640 Configuration files:
50643 Configuration headers:
50646 Configuration links:
50649 Configuration commands:
50652 Report bugs to <bugs@gnutls.org>."
50655 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
50656 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
50658 GnuTLS config.status 3.3.5
50659 configured by $0, generated by GNU Autoconf 2.69,
50660 with options \\"\$ac_cs_config\\"
50662 Copyright (C) 2012 Free Software Foundation, Inc.
50663 This config.status script is free software; the Free Software Foundation
50664 gives unlimited permission to copy, distribute and modify it."
50671 test -n "\$AWK" || AWK=awk
50674 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
50675 # The default lists apply if the user does not specify any file.
50681 ac_option=`expr "X$1" : 'X\([^=]*\)='`
50682 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
50686 ac_option=`expr "X$1" : 'X\([^=]*\)='`
50698 # Handling of the options.
50699 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
50701 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
50702 $as_echo "$ac_cs_version"; exit ;;
50703 --config | --confi | --conf | --con | --co | --c )
50704 $as_echo "$ac_cs_config"; exit ;;
50705 --debug | --debu | --deb | --de | --d | -d )
50707 --file | --fil | --fi | --f )
50710 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
50711 '') as_fn_error $? "missing file argument" ;;
50713 as_fn_append CONFIG_FILES " '$ac_optarg'"
50714 ac_need_defaults=false;;
50715 --header | --heade | --head | --hea )
50718 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
50720 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
50721 ac_need_defaults=false;;
50723 # Conflict between --help and --header
50724 as_fn_error $? "ambiguous option: \`$1'
50725 Try \`$0 --help' for more information.";;
50726 --help | --hel | -h )
50727 $as_echo "$ac_cs_usage"; exit ;;
50728 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
50729 | -silent | --silent | --silen | --sile | --sil | --si | --s)
50732 # This is an error.
50733 -*) as_fn_error $? "unrecognized option: \`$1'
50734 Try \`$0 --help' for more information." ;;
50736 *) as_fn_append ac_config_targets " $1"
50737 ac_need_defaults=false ;;
50743 ac_configure_extra_args=
50745 if $ac_cs_silent; then
50747 ac_configure_extra_args="$ac_configure_extra_args --silent"
50751 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
50752 if \$ac_cs_recheck; then
50753 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
50755 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
50756 CONFIG_SHELL='$SHELL'
50757 export CONFIG_SHELL
50762 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
50766 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
50767 ## Running $as_me. ##
50773 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
50777 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
50778 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
50779 # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
50780 # from automake < 1.5.
50781 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
50782 # Capture the value of LINGUAS because we need it to compute CATALOGS.
50783 LINGUAS="${LINGUAS-%UNSET%}"
50785 GNUmakefile=$GNUmakefile
50788 # The HP-UX ksh and POSIX shell print the target directory to stdout
50789 # if CDPATH is set.
50790 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
50792 sed_quote_subst='$sed_quote_subst'
50793 double_quote_subst='$double_quote_subst'
50794 delay_variable_subst='$delay_variable_subst'
50795 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
50796 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
50797 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
50798 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
50799 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
50800 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
50801 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
50802 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
50803 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
50804 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
50805 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
50806 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
50807 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
50808 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
50809 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
50810 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
50811 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
50812 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
50813 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
50814 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
50815 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
50816 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
50817 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
50818 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
50819 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
50820 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
50821 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
50822 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
50823 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
50824 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
50825 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
50826 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
50827 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
50828 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
50829 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
50830 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
50831 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
50832 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
50833 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
50834 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
50835 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
50836 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
50837 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
50838 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
50839 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
50840 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
50841 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
50842 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
50843 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
50844 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
50845 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
50846 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
50847 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
50848 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
50849 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
50850 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
50851 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"`'
50852 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
50853 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
50854 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
50855 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
50856 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
50857 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
50858 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
50859 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
50860 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
50861 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
50862 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
50863 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
50864 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
50865 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
50866 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
50867 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
50868 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
50869 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
50870 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
50871 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
50872 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
50873 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
50874 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
50875 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
50876 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
50877 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
50878 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
50879 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
50880 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
50881 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
50882 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
50883 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
50884 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
50885 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
50886 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
50887 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
50888 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
50889 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
50890 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
50891 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
50892 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
50893 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
50894 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
50895 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
50896 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
50897 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
50898 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
50899 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
50900 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
50901 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
50902 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
50903 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
50904 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
50905 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
50906 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
50907 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
50908 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
50909 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
50910 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
50911 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
50912 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
50913 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
50914 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
50915 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
50916 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
50917 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
50918 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
50919 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
50920 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
50921 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
50922 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
50923 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
50924 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
50925 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
50926 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
50927 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
50928 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
50929 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
50930 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
50931 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
50932 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
50933 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
50934 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
50935 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
50936 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
50937 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
50938 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
50939 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
50940 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
50941 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
50942 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
50943 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
50944 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
50945 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
50946 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
50947 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
50948 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
50949 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
50950 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
50951 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
50952 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
50953 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
50954 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
50955 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
50956 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
50957 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
50958 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
50959 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
50960 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
50961 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
50962 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
50963 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
50964 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
50965 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
50966 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
50967 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
50968 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
50969 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
50970 postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
50971 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
50972 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
50973 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
50974 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
50975 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
50976 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
50977 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
50978 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
50981 LTCFLAGS='$LTCFLAGS'
50982 compiler='$compiler_DEFAULT'
50984 # A function that is used when there is no print builtin or printf.
50985 func_fallback_echo ()
50987 eval 'cat <<_LTECHO_EOF
50992 # Quote evaled strings.
51007 deplibs_check_method \
51012 sharedlib_from_linklib_cmd \
51015 archiver_list_spec \
51021 lt_cv_sys_global_symbol_pipe \
51022 lt_cv_sys_global_symbol_to_cdecl \
51023 lt_cv_sys_global_symbol_to_c_name_address \
51024 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
51025 nm_file_list_spec \
51026 lt_prog_compiler_no_builtin_flag \
51027 lt_prog_compiler_pic \
51028 lt_prog_compiler_wl \
51029 lt_prog_compiler_static \
51030 lt_cv_prog_compiler_c_o \
51039 export_dynamic_flag_spec \
51040 whole_archive_flag_spec \
51041 compiler_needs_object \
51043 allow_undefined_flag \
51044 no_undefined_flag \
51045 hardcode_libdir_flag_spec \
51046 hardcode_libdir_separator \
51050 variables_saved_for_relink \
51052 library_names_spec \
51054 install_override_mode \
51058 compiler_lib_search_dirs \
51063 compiler_lib_search_path \
51067 lt_prog_compiler_no_builtin_flag_CXX \
51068 lt_prog_compiler_pic_CXX \
51069 lt_prog_compiler_wl_CXX \
51070 lt_prog_compiler_static_CXX \
51071 lt_cv_prog_compiler_c_o_CXX \
51072 export_dynamic_flag_spec_CXX \
51073 whole_archive_flag_spec_CXX \
51074 compiler_needs_object_CXX \
51076 allow_undefined_flag_CXX \
51077 no_undefined_flag_CXX \
51078 hardcode_libdir_flag_spec_CXX \
51079 hardcode_libdir_separator_CXX \
51080 exclude_expsyms_CXX \
51081 include_expsyms_CXX \
51082 file_list_spec_CXX \
51083 compiler_lib_search_dirs_CXX \
51084 predep_objects_CXX \
51085 postdep_objects_CXX \
51088 compiler_lib_search_path_CXX; do
51089 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
51090 *[\\\\\\\`\\"\\\$]*)
51091 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
51094 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
51099 # Double-quote double-evaled strings.
51100 for var in reload_cmds \
51101 old_postinstall_cmds \
51102 old_postuninstall_cmds \
51104 extract_expsyms_cmds \
51105 old_archive_from_new_cmds \
51106 old_archive_from_expsyms_cmds \
51108 archive_expsym_cmds \
51110 module_expsym_cmds \
51111 export_symbols_cmds \
51115 postuninstall_cmds \
51117 sys_lib_search_path_spec \
51118 sys_lib_dlsearch_path_spec \
51120 old_archive_cmds_CXX \
51121 old_archive_from_new_cmds_CXX \
51122 old_archive_from_expsyms_cmds_CXX \
51124 archive_expsym_cmds_CXX \
51126 module_expsym_cmds_CXX \
51127 export_symbols_cmds_CXX \
51129 postlink_cmds_CXX; do
51130 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
51131 *[\\\\\\\`\\"\\\$]*)
51132 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
51135 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
51140 ac_aux_dir='$ac_aux_dir'
51141 xsi_shell='$xsi_shell'
51142 lt_shell_append='$lt_shell_append'
51144 # See if we are running on zsh, and set the options which allow our
51145 # commands through without removal of \ escapes INIT.
51146 if test -n "\${ZSH_VERSION+set}" ; then
51147 setopt NO_GLOB_SUBST
51153 TIMESTAMP='$TIMESTAMP'
51164 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
51166 # Handling of arguments.
51167 for ac_config_target in $ac_config_targets
51169 case $ac_config_target in
51170 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
51171 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
51172 "po-directories") CONFIG_COMMANDS="$CONFIG_COMMANDS po-directories" ;;
51173 "$GNUmakefile") CONFIG_LINKS="$CONFIG_LINKS $GNUmakefile:$GNUmakefile" ;;
51174 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
51175 "src/libopts/Makefile") CONFIG_FILES="$CONFIG_FILES src/libopts/Makefile" ;;
51176 "guile/pre-inst-guile") CONFIG_FILES="$CONFIG_FILES guile/pre-inst-guile" ;;
51177 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
51178 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
51179 "doc/credentials/Makefile") CONFIG_FILES="$CONFIG_FILES doc/credentials/Makefile" ;;
51180 "doc/credentials/openpgp/Makefile") CONFIG_FILES="$CONFIG_FILES doc/credentials/openpgp/Makefile" ;;
51181 "doc/credentials/srp/Makefile") CONFIG_FILES="$CONFIG_FILES doc/credentials/srp/Makefile" ;;
51182 "doc/credentials/x509/Makefile") CONFIG_FILES="$CONFIG_FILES doc/credentials/x509/Makefile" ;;
51183 "doc/cyclo/Makefile") CONFIG_FILES="$CONFIG_FILES doc/cyclo/Makefile" ;;
51184 "doc/doxygen/Doxyfile") CONFIG_FILES="$CONFIG_FILES doc/doxygen/Doxyfile" ;;
51185 "doc/examples/Makefile") CONFIG_FILES="$CONFIG_FILES doc/examples/Makefile" ;;
51186 "doc/latex/Makefile") CONFIG_FILES="$CONFIG_FILES doc/latex/Makefile" ;;
51187 "doc/manpages/Makefile") CONFIG_FILES="$CONFIG_FILES doc/manpages/Makefile" ;;
51188 "doc/reference/Makefile") CONFIG_FILES="$CONFIG_FILES doc/reference/Makefile" ;;
51189 "doc/reference/version.xml") CONFIG_FILES="$CONFIG_FILES doc/reference/version.xml" ;;
51190 "doc/scripts/Makefile") CONFIG_FILES="$CONFIG_FILES doc/scripts/Makefile" ;;
51191 "extra/Makefile") CONFIG_FILES="$CONFIG_FILES extra/Makefile" ;;
51192 "extra/includes/Makefile") CONFIG_FILES="$CONFIG_FILES extra/includes/Makefile" ;;
51193 "libdane/Makefile") CONFIG_FILES="$CONFIG_FILES libdane/Makefile" ;;
51194 "libdane/includes/Makefile") CONFIG_FILES="$CONFIG_FILES libdane/includes/Makefile" ;;
51195 "libdane/gnutls-dane.pc") CONFIG_FILES="$CONFIG_FILES libdane/gnutls-dane.pc" ;;
51196 "gl/Makefile") CONFIG_FILES="$CONFIG_FILES gl/Makefile" ;;
51197 "gl/tests/Makefile") CONFIG_FILES="$CONFIG_FILES gl/tests/Makefile" ;;
51198 "guile/Makefile") CONFIG_FILES="$CONFIG_FILES guile/Makefile" ;;
51199 "guile/modules/Makefile") CONFIG_FILES="$CONFIG_FILES guile/modules/Makefile" ;;
51200 "guile/src/Makefile") CONFIG_FILES="$CONFIG_FILES guile/src/Makefile" ;;
51201 "guile/tests/Makefile") CONFIG_FILES="$CONFIG_FILES guile/tests/Makefile" ;;
51202 "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
51203 "lib/accelerated/Makefile") CONFIG_FILES="$CONFIG_FILES lib/accelerated/Makefile" ;;
51204 "lib/accelerated/x86/Makefile") CONFIG_FILES="$CONFIG_FILES lib/accelerated/x86/Makefile" ;;
51205 "lib/algorithms/Makefile") CONFIG_FILES="$CONFIG_FILES lib/algorithms/Makefile" ;;
51206 "lib/auth/Makefile") CONFIG_FILES="$CONFIG_FILES lib/auth/Makefile" ;;
51207 "lib/ext/Makefile") CONFIG_FILES="$CONFIG_FILES lib/ext/Makefile" ;;
51208 "lib/extras/Makefile") CONFIG_FILES="$CONFIG_FILES lib/extras/Makefile" ;;
51209 "lib/gnutls.pc") CONFIG_FILES="$CONFIG_FILES lib/gnutls.pc" ;;
51210 "lib/includes/Makefile") CONFIG_FILES="$CONFIG_FILES lib/includes/Makefile" ;;
51211 "lib/includes/gnutls/gnutls.h") CONFIG_FILES="$CONFIG_FILES lib/includes/gnutls/gnutls.h" ;;
51212 "lib/minitasn1/Makefile") CONFIG_FILES="$CONFIG_FILES lib/minitasn1/Makefile" ;;
51213 "lib/nettle/Makefile") CONFIG_FILES="$CONFIG_FILES lib/nettle/Makefile" ;;
51214 "lib/opencdk/Makefile") CONFIG_FILES="$CONFIG_FILES lib/opencdk/Makefile" ;;
51215 "lib/openpgp/Makefile") CONFIG_FILES="$CONFIG_FILES lib/openpgp/Makefile" ;;
51216 "lib/x509/Makefile") CONFIG_FILES="$CONFIG_FILES lib/x509/Makefile" ;;
51217 "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
51218 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
51219 "src/crywrap/Makefile") CONFIG_FILES="$CONFIG_FILES src/crywrap/Makefile" ;;
51220 "src/gl/Makefile") CONFIG_FILES="$CONFIG_FILES src/gl/Makefile" ;;
51221 "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
51222 "tests/cert-tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/cert-tests/Makefile" ;;
51223 "tests/dsa/Makefile") CONFIG_FILES="$CONFIG_FILES tests/dsa/Makefile" ;;
51224 "tests/dtls/Makefile") CONFIG_FILES="$CONFIG_FILES tests/dtls/Makefile" ;;
51225 "tests/srp/Makefile") CONFIG_FILES="$CONFIG_FILES tests/srp/Makefile" ;;
51226 "tests/ecdsa/Makefile") CONFIG_FILES="$CONFIG_FILES tests/ecdsa/Makefile" ;;
51227 "tests/key-tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/key-tests/Makefile" ;;
51228 "tests/openpgp-certs/Makefile") CONFIG_FILES="$CONFIG_FILES tests/openpgp-certs/Makefile" ;;
51229 "tests/pkcs1-padding/Makefile") CONFIG_FILES="$CONFIG_FILES tests/pkcs1-padding/Makefile" ;;
51230 "tests/pkcs12-decode/Makefile") CONFIG_FILES="$CONFIG_FILES tests/pkcs12-decode/Makefile" ;;
51231 "tests/pkcs8-decode/Makefile") CONFIG_FILES="$CONFIG_FILES tests/pkcs8-decode/Makefile" ;;
51232 "tests/rsa-md5-collision/Makefile") CONFIG_FILES="$CONFIG_FILES tests/rsa-md5-collision/Makefile" ;;
51233 "tests/safe-renegotiation/Makefile") CONFIG_FILES="$CONFIG_FILES tests/safe-renegotiation/Makefile" ;;
51234 "tests/scripts/Makefile") CONFIG_FILES="$CONFIG_FILES tests/scripts/Makefile" ;;
51235 "tests/sha2/Makefile") CONFIG_FILES="$CONFIG_FILES tests/sha2/Makefile" ;;
51236 "tests/slow/Makefile") CONFIG_FILES="$CONFIG_FILES tests/slow/Makefile" ;;
51237 "tests/suite/Makefile") CONFIG_FILES="$CONFIG_FILES tests/suite/Makefile" ;;
51238 "tests/userid/Makefile") CONFIG_FILES="$CONFIG_FILES tests/userid/Makefile" ;;
51240 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
51245 # If the user did not use the arguments to specify the items to instantiate,
51246 # then the envvar interface is used. Set only those that are not.
51247 # We use the long form for the default assignment because of an extremely
51248 # bizarre bug on SunOS 4.1.3.
51249 if $ac_need_defaults; then
51250 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
51251 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
51252 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
51253 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
51256 # Have a temporary directory for convenience. Make it in the build tree
51257 # simply because there is no reason against having it here, and in addition,
51258 # creating and moving files from /tmp can sometimes cause problems.
51259 # Hook for its removal unless debugging.
51260 # Note that there is a small window in which the directory will not be cleaned:
51261 # after its creation but before its name has been assigned to `$tmp'.
51265 trap 'exit_status=$?
51266 : "${ac_tmp:=$tmp}"
51267 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
51269 trap 'as_fn_exit 1' 1 2 13 15
51271 # Create a (secure) tmp directory for tmp files.
51274 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
51278 tmp=./conf$$-$RANDOM
51279 (umask 077 && mkdir "$tmp")
51280 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
51283 # Set up the scripts for CONFIG_FILES section.
51284 # No need to generate them if there are no CONFIG_FILES.
51285 # This happens for instance with `./config.status config.h'.
51286 if test -n "$CONFIG_FILES"; then
51289 ac_cr=`echo X | tr X '\015'`
51290 # On cygwin, bash can eat \r inside `` if the user requested igncr.
51291 # But we know of no other shell where ac_cr would be empty at this
51292 # point, so we can use a bashism as a fallback.
51293 if test "x$ac_cr" = x; then
51294 eval ac_cr=\$\'\\r\'
51296 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
51297 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
51300 ac_cs_awk_cr=$ac_cr
51303 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
51308 echo "cat >conf$$subs.awk <<_ACEOF" &&
51309 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
51311 } >conf$$subs.sh ||
51312 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
51313 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
51315 for ac_last_try in false false false false false :; do
51316 . ./conf$$subs.sh ||
51317 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
51319 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
51320 if test $ac_delim_n = $ac_delim_num; then
51322 elif $ac_last_try; then
51323 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
51325 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
51328 rm -f conf$$subs.sh
51330 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
51331 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
51335 s/^/S["/; s/!.*/"]=/
51345 s/\(.\{148\}\)..*/\1/
51347 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
51352 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
51359 s/\(.\{148\}\)..*/\1/
51361 s/["\\]/\\&/g; s/^/"/; s/$/"/
51365 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
51370 ' <conf$$subs.awk | sed '
51375 ' >>$CONFIG_STATUS || ac_write_fail=1
51376 rm -f conf$$subs.awk
51377 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
51379 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
51380 for (key in S) S_is_set[key] = 1
51386 nfields = split(line, field, "@")
51388 len = length(field[1])
51389 for (i = 2; i < nfields; i++) {
51391 keylen = length(key)
51392 if (S_is_set[key]) {
51394 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
51395 len += length(value) + length(field[++i])
51406 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
51407 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
51408 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
51411 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
51412 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
51415 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
51416 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
51417 # trailing colons and then remove the whole line if VPATH becomes empty
51418 # (actually we leave an empty line to preserve line numbers).
51419 if test "x$srcdir" = x.; then
51420 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
51438 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
51439 fi # test -n "$CONFIG_FILES"
51441 # Set up the scripts for CONFIG_HEADERS section.
51442 # No need to generate them if there are no CONFIG_HEADERS.
51443 # This happens for instance with `./config.status Makefile'.
51444 if test -n "$CONFIG_HEADERS"; then
51445 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
51449 # Transform confdefs.h into an awk script `defines.awk', embedded as
51450 # here-document in config.status, that substitutes the proper values into
51451 # config.h.in to produce config.h.
51453 # Create a delimiter string that does not exist in confdefs.h, to ease
51454 # handling of long lines.
51456 for ac_last_try in false false :; do
51457 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
51458 if test -z "$ac_tt"; then
51460 elif $ac_last_try; then
51461 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
51463 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
51467 # For the awk script, D is an array of macro values keyed by name,
51468 # likewise P contains macro parameters if any. Preserve backslash
51469 # newline sequences.
51471 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
51473 s/.\{148\}/&'"$ac_delim"'/g
51476 s/^[ ]*#[ ]*define[ ][ ]*/ /
51483 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
51485 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
51489 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
51490 D["\1"]=" \3\\\\\\n"\\/p
51492 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
51497 s/.\{148\}/&'"$ac_delim"'/g
51502 s/["\\]/\\&/g; s/^/"/; s/$/"/p
51505 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
51507 ' <confdefs.h | sed '
51508 s/'"$ac_delim"'/"\\\
51509 "/g' >>$CONFIG_STATUS || ac_write_fail=1
51511 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
51512 for (key in D) D_is_set[key] = 1
51515 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
51517 split(line, arg, " ")
51518 if (arg[1] == "#") {
51522 defundef = substr(arg[1], 2)
51525 split(mac1, mac2, "(") #)
51527 prefix = substr(line, 1, index(line, defundef) - 1)
51528 if (D_is_set[macro]) {
51529 # Preserve the white space surrounding the "#".
51530 print prefix "define", macro P[macro] D[macro]
51533 # Replace #undef with comments. This is necessary, for example,
51534 # in the case of _POSIX_SOURCE, which is predefined and required
51535 # on some systems where configure will not decide to define it.
51536 if (defundef == "undef") {
51537 print "/*", prefix defundef, macro, "*/"
51545 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
51546 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
51547 fi # test -n "$CONFIG_HEADERS"
51550 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :L $CONFIG_LINKS :C $CONFIG_COMMANDS"
51555 :[FHLC]) ac_mode=$ac_tag; continue;;
51557 case $ac_mode$ac_tag in
51559 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
51560 :[FH]-) ac_tag=-:-;;
51561 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
51578 -) ac_f="$ac_tmp/stdin";;
51579 *) # Look for the file first in the build tree, then in the source tree
51580 # (if the path is not absolute). The absolute path cannot be DOS-style,
51581 # because $ac_f cannot contain `:'.
51585 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
51587 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
51589 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
51590 as_fn_append ac_file_inputs " '$ac_f'"
51593 # Let's still pretend it is `configure' which instantiates (i.e., don't
51594 # use $as_me), people would be surprised to read:
51595 # /* config.h. Generated by config.status. */
51596 configure_input='Generated from '`
51597 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
51599 if test x"$ac_file" != x-; then
51600 configure_input="$ac_file. $configure_input"
51601 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
51602 $as_echo "$as_me: creating $ac_file" >&6;}
51604 # Neutralize special characters interpreted by sed in replacement strings.
51605 case $configure_input in #(
51606 *\&* | *\|* | *\\* )
51607 ac_sed_conf_input=`$as_echo "$configure_input" |
51608 sed 's/[\\\\&|]/\\\\&/g'`;; #(
51609 *) ac_sed_conf_input=$configure_input;;
51613 *:-:* | *:-) cat >"$ac_tmp/stdin" \
51614 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
51619 ac_dir=`$as_dirname -- "$ac_file" ||
51620 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
51621 X"$ac_file" : 'X\(//\)[^/]' \| \
51622 X"$ac_file" : 'X\(//\)$' \| \
51623 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
51624 $as_echo X"$ac_file" |
51625 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
51629 /^X\(\/\/\)[^/].*/{
51642 as_dir="$ac_dir"; as_fn_mkdir_p
51646 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
51648 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
51649 # A ".." for each directory in $ac_dir_suffix.
51650 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
51651 case $ac_top_builddir_sub in
51652 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
51653 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
51656 ac_abs_top_builddir=$ac_pwd
51657 ac_abs_builddir=$ac_pwd$ac_dir_suffix
51658 # for backward compatibility:
51659 ac_top_builddir=$ac_top_build_prefix
51662 .) # We are building in place.
51664 ac_top_srcdir=$ac_top_builddir_sub
51665 ac_abs_top_srcdir=$ac_pwd ;;
51666 [\\/]* | ?:[\\/]* ) # Absolute name.
51667 ac_srcdir=$srcdir$ac_dir_suffix;
51668 ac_top_srcdir=$srcdir
51669 ac_abs_top_srcdir=$srcdir ;;
51670 *) # Relative name.
51671 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
51672 ac_top_srcdir=$ac_top_build_prefix$srcdir
51673 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
51675 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
51685 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
51686 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
51688 ac_MKDIR_P=$MKDIR_P
51690 [\\/$]* | ?:[\\/]* ) ;;
51691 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
51695 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
51696 # If the template does not know about datarootdir, expand it.
51697 # FIXME: This hack should be removed a few years after 2.60.
51698 ac_datarootdir_hack=; ac_datarootdir_seen=
51709 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
51710 *datarootdir*) ac_datarootdir_seen=yes;;
51711 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
51712 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
51713 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
51715 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
51716 ac_datarootdir_hack='
51717 s&@datadir@&$datadir&g
51718 s&@docdir@&$docdir&g
51719 s&@infodir@&$infodir&g
51720 s&@localedir@&$localedir&g
51721 s&@mandir@&$mandir&g
51722 s&\\\${datarootdir}&$datarootdir&g' ;;
51726 # Neutralize VPATH when `$srcdir' = `.'.
51727 # Shell code in configure.ac might set extrasub.
51728 # FIXME: do we really want to maintain this feature?
51729 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
51730 ac_sed_extra="$ac_vpsub
51733 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
51735 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
51736 s|@configure_input@|$ac_sed_conf_input|;t t
51737 s&@top_builddir@&$ac_top_builddir_sub&;t t
51738 s&@top_build_prefix@&$ac_top_build_prefix&;t t
51739 s&@srcdir@&$ac_srcdir&;t t
51740 s&@abs_srcdir@&$ac_abs_srcdir&;t t
51741 s&@top_srcdir@&$ac_top_srcdir&;t t
51742 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
51743 s&@builddir@&$ac_builddir&;t t
51744 s&@abs_builddir@&$ac_abs_builddir&;t t
51745 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
51746 s&@INSTALL@&$ac_INSTALL&;t t
51747 s&@MKDIR_P@&$ac_MKDIR_P&;t t
51748 $ac_datarootdir_hack
51750 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
51751 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
51753 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
51754 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
51755 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
51756 "$ac_tmp/out"`; test -z "$ac_out"; } &&
51757 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
51758 which seems to be undefined. Please make sure it is defined" >&5
51759 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
51760 which seems to be undefined. Please make sure it is defined" >&2;}
51762 rm -f "$ac_tmp/stdin"
51764 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
51765 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
51767 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
51773 if test x"$ac_file" != x-; then
51775 $as_echo "/* $configure_input */" \
51776 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
51777 } >"$ac_tmp/config.h" \
51778 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
51779 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
51780 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
51781 $as_echo "$as_me: $ac_file is unchanged" >&6;}
51784 mv "$ac_tmp/config.h" "$ac_file" \
51785 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
51788 $as_echo "/* $configure_input */" \
51789 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
51790 || as_fn_error $? "could not create -" "$LINENO" 5
51792 # Compute "$ac_file"'s index in $config_headers.
51795 for _am_header in $config_headers :; do
51796 case $_am_header in
51797 $_am_arg | $_am_arg:* )
51800 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
51803 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
51804 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
51805 X"$_am_arg" : 'X\(//\)[^/]' \| \
51806 X"$_am_arg" : 'X\(//\)$' \| \
51807 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
51808 $as_echo X"$_am_arg" |
51809 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
51813 /^X\(\/\/\)[^/].*/{
51825 s/.*/./; q'`/stamp-h$_am_stamp_count
51832 if test "$ac_source" = "$ac_file" && test "$srcdir" = '.'; then
51835 # Prefer the file from the source tree if names are identical.
51836 if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then
51837 ac_source=$srcdir/$ac_source
51840 { $as_echo "$as_me:${as_lineno-$LINENO}: linking $ac_source to $ac_file" >&5
51841 $as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
51843 if test ! -r "$ac_source"; then
51844 as_fn_error $? "$ac_source: file not found" "$LINENO" 5
51848 # Try a relative symlink, then a hard link, then a copy.
51850 [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;;
51851 *) ac_rel_source=$ac_top_build_prefix$ac_source ;;
51853 ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
51854 ln "$ac_source" "$ac_file" 2>/dev/null ||
51855 cp -p "$ac_source" "$ac_file" ||
51856 as_fn_error $? "cannot link or copy $ac_source to $ac_file" "$LINENO" 5
51859 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
51860 $as_echo "$as_me: executing $ac_file commands" >&6;}
51865 case $ac_file$ac_mode in
51866 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
51867 # Older Autoconf quotes --file arguments for eval, but not when files
51868 # are listed without --file. Let's play safe and only enable the eval
51869 # if we detect the quoting.
51870 case $CONFIG_FILES in
51871 *\'*) eval set x "$CONFIG_FILES" ;;
51872 *) set x $CONFIG_FILES ;;
51877 # Strip MF so we end up with the name of the file.
51878 mf=`echo "$mf" | sed -e 's/:.*$//'`
51879 # Check whether this is an Automake generated Makefile or not.
51880 # We used to match only the files named 'Makefile.in', but
51881 # some people rename them; so instead we look at the file content.
51882 # Grep'ing the first line is not enough: some people post-process
51883 # each Makefile.in and add a new line on top of each file to say so.
51884 # Grep'ing the whole file is not good either: AIX grep has a line
51885 # limit of 2048, but all sed's we know have understand at least 4000.
51886 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
51887 dirpart=`$as_dirname -- "$mf" ||
51888 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
51889 X"$mf" : 'X\(//\)[^/]' \| \
51890 X"$mf" : 'X\(//\)$' \| \
51891 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
51893 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
51897 /^X\(\/\/\)[^/].*/{
51913 # Extract the definition of DEPDIR, am__include, and am__quote
51914 # from the Makefile without running 'make'.
51915 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
51916 test -z "$DEPDIR" && continue
51917 am__include=`sed -n 's/^am__include = //p' < "$mf"`
51918 test -z "$am__include" && continue
51919 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
51920 # Find all dependency output files, they are included files with
51921 # $(DEPDIR) in their names. We invoke sed twice because it is the
51922 # simplest approach to changing $(DEPDIR) to its actual value in the
51924 for file in `sed -n "
51925 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
51926 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
51927 # Make sure the directory exists.
51928 test -f "$dirpart/$file" && continue
51929 fdir=`$as_dirname -- "$file" ||
51930 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
51931 X"$file" : 'X\(//\)[^/]' \| \
51932 X"$file" : 'X\(//\)$' \| \
51933 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
51934 $as_echo X"$file" |
51935 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
51939 /^X\(\/\/\)[^/].*/{
51952 as_dir=$dirpart/$fdir; as_fn_mkdir_p
51953 # echo "creating $dirpart/$file"
51954 echo '# dummy' > "$dirpart/$file"
51959 "po-directories":C)
51960 for ac_file in $CONFIG_FILES; do
51961 # Support "outfile[:infile[:infile...]]"
51963 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
51965 # PO directories have a Makefile.in generated from Makefile.in.in.
51966 case "$ac_file" in */Makefile.in)
51967 # Adjust a relative srcdir.
51968 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
51969 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
51970 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
51971 # In autoconf-2.13 it is called $ac_given_srcdir.
51972 # In autoconf-2.50 it is called $srcdir.
51973 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
51974 case "$ac_given_srcdir" in
51975 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
51976 /*) top_srcdir="$ac_given_srcdir" ;;
51977 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
51979 # Treat a directory as a PO directory if and only if it has a
51980 # POTFILES.in file. This allows packages to have multiple PO
51981 # directories under different names or in different locations.
51982 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
51983 rm -f "$ac_dir/POTFILES"
51984 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
51985 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
51986 POMAKEFILEDEPS="POTFILES.in"
51987 # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
51988 # on $ac_dir but don't depend on user-specified configuration
51990 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
51991 # The LINGUAS file contains the set of available languages.
51992 if test -n "$OBSOLETE_ALL_LINGUAS"; then
51993 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
51995 ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
51996 # Hide the ALL_LINGUAS assigment from automake < 1.5.
51997 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
51998 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
52000 # The set of available languages was given in configure.in.
52001 # Hide the ALL_LINGUAS assigment from automake < 1.5.
52002 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
52005 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
52006 # Compute UPDATEPOFILES
52007 # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
52008 # Compute DUMMYPOFILES
52009 # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
52011 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
52012 case "$ac_given_srcdir" in
52014 *) srcdirpre='$(srcdir)/' ;;
52020 for lang in $ALL_LINGUAS; do
52021 POFILES="$POFILES $srcdirpre$lang.po"
52022 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
52023 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
52024 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
52026 # CATALOGS depends on both $ac_dir and the user's LINGUAS
52027 # environment variable.
52029 if test -n "$ALL_LINGUAS"; then
52030 for presentlang in $ALL_LINGUAS; do
52032 if test "%UNSET%" != "$LINGUAS"; then
52033 desiredlanguages="$LINGUAS"
52035 desiredlanguages="$ALL_LINGUAS"
52037 for desiredlang in $desiredlanguages; do
52038 # Use the presentlang catalog if desiredlang is
52039 # a. equal to presentlang, or
52040 # b. a variant of presentlang (because in this case,
52041 # presentlang can be used as a fallback for messages
52042 # which are not translated in the desiredlang catalog).
52043 case "$desiredlang" in
52044 "$presentlang"*) useit=yes;;
52047 if test $useit = yes; then
52048 INST_LINGUAS="$INST_LINGUAS $presentlang"
52053 if test -n "$INST_LINGUAS"; then
52054 for lang in $INST_LINGUAS; do
52055 CATALOGS="$CATALOGS $lang.gmo"
52058 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
52059 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"
52060 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
52061 if test -f "$f"; then
52063 *.orig | *.bak | *~) ;;
52064 *) cat "$f" >> "$ac_dir/Makefile" ;;
52074 # See if we are running on zsh, and set the options which allow our
52075 # commands through without removal of \ escapes.
52076 if test -n "${ZSH_VERSION+set}" ; then
52077 setopt NO_GLOB_SUBST
52080 cfgfile="${ofile}T"
52081 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
52084 cat <<_LT_EOF >> "$cfgfile"
52087 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
52088 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
52089 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
52090 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
52092 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
52093 # 2006, 2007, 2008, 2009, 2010, 2011 Free Software
52095 # Written by Gordon Matzigkeit, 1996
52097 # This file is part of GNU Libtool.
52099 # GNU Libtool is free software; you can redistribute it and/or
52100 # modify it under the terms of the GNU General Public License as
52101 # published by the Free Software Foundation; either version 2 of
52102 # the License, or (at your option) any later version.
52104 # As a special exception to the GNU General Public License,
52105 # if you distribute this file as part of a program or library that
52106 # is built using GNU Libtool, you may include this file under the
52107 # same distribution terms that you use for the rest of that program.
52109 # GNU Libtool is distributed in the hope that it will be useful,
52110 # but WITHOUT ANY WARRANTY; without even the implied warranty of
52111 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
52112 # GNU General Public License for more details.
52114 # You should have received a copy of the GNU General Public License
52115 # along with GNU Libtool; see the file COPYING. If not, a copy
52116 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
52117 # obtained by writing to the Free Software Foundation, Inc.,
52118 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
52121 # The names of the tagged configurations supported by this script.
52122 available_tags="CXX "
52124 # ### BEGIN LIBTOOL CONFIG
52126 # Which release of libtool.m4 was used?
52127 macro_version=$macro_version
52128 macro_revision=$macro_revision
52130 # Whether or not to build static libraries.
52131 build_old_libs=$enable_static
52133 # Whether or not to build shared libraries.
52134 build_libtool_libs=$enable_shared
52136 # What type of objects to build.
52139 # Whether or not to optimize for fast installation.
52140 fast_install=$enable_fast_install
52142 # Shell to use when invoking shell scripts.
52145 # An echo program that protects backslashes.
52148 # The PATH separator for the build system.
52149 PATH_SEPARATOR=$lt_PATH_SEPARATOR
52152 host_alias=$host_alias
52156 # The build system.
52157 build_alias=$build_alias
52161 # A sed program that does not truncate output.
52164 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
52165 Xsed="\$SED -e 1s/^X//"
52167 # A grep program that handles long lines.
52173 # A literal string matcher.
52176 # A BSD- or MS-compatible name lister.
52179 # Whether we need soft or hard links.
52182 # What is the maximum length of a command?
52183 max_cmd_len=$max_cmd_len
52185 # Object file suffix (normally "o").
52188 # Executable file suffix (normally "").
52191 # whether the shell understands "unset".
52194 # turn spaces into newlines.
52197 # turn newlines into spaces.
52200 # convert \$build file names to \$host format.
52201 to_host_file_cmd=$lt_cv_to_host_file_cmd
52203 # convert \$build files to toolchain format.
52204 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
52206 # An object symbol dumper.
52207 OBJDUMP=$lt_OBJDUMP
52209 # Method to check whether dependent libraries are shared objects.
52210 deplibs_check_method=$lt_deplibs_check_method
52212 # Command to use when deplibs_check_method = "file_magic".
52213 file_magic_cmd=$lt_file_magic_cmd
52215 # How to find potential files when deplibs_check_method = "file_magic".
52216 file_magic_glob=$lt_file_magic_glob
52218 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
52219 want_nocaseglob=$lt_want_nocaseglob
52221 # DLL creation program.
52222 DLLTOOL=$lt_DLLTOOL
52224 # Command to associate shared and link libraries.
52225 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
52230 # Flags to create an archive.
52231 AR_FLAGS=$lt_AR_FLAGS
52233 # How to feed a file listing to the archiver.
52234 archiver_list_spec=$lt_archiver_list_spec
52236 # A symbol stripping program.
52239 # Commands used to install an old-style archive.
52241 old_postinstall_cmds=$lt_old_postinstall_cmds
52242 old_postuninstall_cmds=$lt_old_postuninstall_cmds
52244 # Whether to use a lock for old archive extraction.
52245 lock_old_archive_extraction=$lock_old_archive_extraction
52250 # LTCC compiler flags.
52251 LTCFLAGS=$lt_CFLAGS
52253 # Take the output of nm and produce a listing of raw symbols and C names.
52254 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
52256 # Transform the output of nm in a proper C declaration.
52257 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
52259 # Transform the output of nm in a C name address pair.
52260 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
52262 # Transform the output of nm in a C name address pair when lib prefix is needed.
52263 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
52265 # Specify filename containing input files for \$NM.
52266 nm_file_list_spec=$lt_nm_file_list_spec
52268 # The root where to search for dependent libraries,and in which our libraries should be installed.
52269 lt_sysroot=$lt_sysroot
52271 # The name of the directory that contains temporary libtool files.
52274 # Used to examine libraries when file_magic_cmd begins with "file".
52275 MAGIC_CMD=$MAGIC_CMD
52277 # Must we lock files when doing compilation?
52278 need_locks=$lt_need_locks
52281 MANIFEST_TOOL=$lt_MANIFEST_TOOL
52283 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
52284 DSYMUTIL=$lt_DSYMUTIL
52286 # Tool to change global to local symbols on Mac OS X.
52289 # Tool to manipulate fat objects and archives on Mac OS X.
52292 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
52295 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
52296 OTOOL64=$lt_OTOOL64
52298 # Old archive suffix (normally "a").
52301 # Shared library suffix (normally ".so").
52302 shrext_cmds=$lt_shrext_cmds
52304 # The commands to extract the exported symbol list from a shared archive.
52305 extract_expsyms_cmds=$lt_extract_expsyms_cmds
52307 # Variables whose values should be saved in libtool wrapper scripts and
52308 # restored at link time.
52309 variables_saved_for_relink=$lt_variables_saved_for_relink
52311 # Do we need the "lib" prefix for modules?
52312 need_lib_prefix=$need_lib_prefix
52314 # Do we need a version for libraries?
52315 need_version=$need_version
52317 # Library versioning type.
52318 version_type=$version_type
52320 # Shared library runtime path variable.
52321 runpath_var=$runpath_var
52323 # Shared library path variable.
52324 shlibpath_var=$shlibpath_var
52326 # Is shlibpath searched before the hard-coded library search path?
52327 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
52329 # Format of library name prefix.
52330 libname_spec=$lt_libname_spec
52332 # List of archive names. First name is the real one, the rest are links.
52333 # The last name is the one that the linker finds with -lNAME
52334 library_names_spec=$lt_library_names_spec
52336 # The coded name of the library, if different from the real name.
52337 soname_spec=$lt_soname_spec
52339 # Permission mode override for installation of shared libraries.
52340 install_override_mode=$lt_install_override_mode
52342 # Command to use after installation of a shared archive.
52343 postinstall_cmds=$lt_postinstall_cmds
52345 # Command to use after uninstallation of a shared archive.
52346 postuninstall_cmds=$lt_postuninstall_cmds
52348 # Commands used to finish a libtool library installation in a directory.
52349 finish_cmds=$lt_finish_cmds
52351 # As "finish_cmds", except a single script fragment to be evaled but
52353 finish_eval=$lt_finish_eval
52355 # Whether we should hardcode library paths into libraries.
52356 hardcode_into_libs=$hardcode_into_libs
52358 # Compile-time system search path for libraries.
52359 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
52361 # Run-time system search path for libraries.
52362 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
52364 # Whether dlopen is supported.
52365 dlopen_support=$enable_dlopen
52367 # Whether dlopen of programs is supported.
52368 dlopen_self=$enable_dlopen_self
52370 # Whether dlopen of statically linked programs is supported.
52371 dlopen_self_static=$enable_dlopen_self_static
52373 # Commands to strip libraries.
52374 old_striplib=$lt_old_striplib
52375 striplib=$lt_striplib
52378 # The linker used to build libraries.
52381 # How to create reloadable object files.
52382 reload_flag=$lt_reload_flag
52383 reload_cmds=$lt_reload_cmds
52385 # Commands used to build an old-style archive.
52386 old_archive_cmds=$lt_old_archive_cmds
52388 # A language specific compiler.
52391 # Is the compiler the GNU compiler?
52394 # Compiler flag to turn off builtin functions.
52395 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
52397 # Additional compiler flags for building library objects.
52398 pic_flag=$lt_lt_prog_compiler_pic
52400 # How to pass a linker flag through the compiler.
52401 wl=$lt_lt_prog_compiler_wl
52403 # Compiler flag to prevent dynamic linking.
52404 link_static_flag=$lt_lt_prog_compiler_static
52406 # Does compiler simultaneously support -c and -o options?
52407 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
52409 # Whether or not to add -lc for building shared libraries.
52410 build_libtool_need_lc=$archive_cmds_need_lc
52412 # Whether or not to disallow shared libs when runtime libs are static.
52413 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
52415 # Compiler flag to allow reflexive dlopens.
52416 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
52418 # Compiler flag to generate shared objects directly from archives.
52419 whole_archive_flag_spec=$lt_whole_archive_flag_spec
52421 # Whether the compiler copes with passing no objects directly.
52422 compiler_needs_object=$lt_compiler_needs_object
52424 # Create an old-style archive from a shared archive.
52425 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
52427 # Create a temporary old-style archive to link instead of a shared archive.
52428 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
52430 # Commands used to build a shared archive.
52431 archive_cmds=$lt_archive_cmds
52432 archive_expsym_cmds=$lt_archive_expsym_cmds
52434 # Commands used to build a loadable module if different from building
52435 # a shared archive.
52436 module_cmds=$lt_module_cmds
52437 module_expsym_cmds=$lt_module_expsym_cmds
52439 # Whether we are building with GNU ld or not.
52440 with_gnu_ld=$lt_with_gnu_ld
52442 # Flag that allows shared libraries with undefined symbols to be built.
52443 allow_undefined_flag=$lt_allow_undefined_flag
52445 # Flag that enforces no undefined symbols.
52446 no_undefined_flag=$lt_no_undefined_flag
52448 # Flag to hardcode \$libdir into a binary during linking.
52449 # This must work even if \$libdir does not exist
52450 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
52452 # Whether we need a single "-rpath" flag with a separated argument.
52453 hardcode_libdir_separator=$lt_hardcode_libdir_separator
52455 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
52456 # DIR into the resulting binary.
52457 hardcode_direct=$hardcode_direct
52459 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
52460 # DIR into the resulting binary and the resulting library dependency is
52461 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
52462 # library is relocated.
52463 hardcode_direct_absolute=$hardcode_direct_absolute
52465 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
52466 # into the resulting binary.
52467 hardcode_minus_L=$hardcode_minus_L
52469 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
52470 # into the resulting binary.
52471 hardcode_shlibpath_var=$hardcode_shlibpath_var
52473 # Set to "yes" if building a shared library automatically hardcodes DIR
52474 # into the library and all subsequent libraries and executables linked
52476 hardcode_automatic=$hardcode_automatic
52478 # Set to yes if linker adds runtime paths of dependent libraries
52479 # to runtime path list.
52480 inherit_rpath=$inherit_rpath
52482 # Whether libtool must link a program against all its dependency libraries.
52483 link_all_deplibs=$link_all_deplibs
52485 # Set to "yes" if exported symbols are required.
52486 always_export_symbols=$always_export_symbols
52488 # The commands to list exported symbols.
52489 export_symbols_cmds=$lt_export_symbols_cmds
52491 # Symbols that should not be listed in the preloaded symbols.
52492 exclude_expsyms=$lt_exclude_expsyms
52494 # Symbols that must always be exported.
52495 include_expsyms=$lt_include_expsyms
52497 # Commands necessary for linking programs (against libraries) with templates.
52498 prelink_cmds=$lt_prelink_cmds
52500 # Commands necessary for finishing linking programs.
52501 postlink_cmds=$lt_postlink_cmds
52503 # Specify filename containing input files.
52504 file_list_spec=$lt_file_list_spec
52506 # How to hardcode a shared library path into an executable.
52507 hardcode_action=$hardcode_action
52509 # The directories searched by this compiler when creating a shared library.
52510 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
52512 # Dependencies to place before and after the objects being linked to
52513 # create a shared library.
52514 predep_objects=$lt_predep_objects
52515 postdep_objects=$lt_postdep_objects
52516 predeps=$lt_predeps
52517 postdeps=$lt_postdeps
52519 # The library search path used internally by the compiler when linking
52520 # a shared library.
52521 compiler_lib_search_path=$lt_compiler_lib_search_path
52523 # ### END LIBTOOL CONFIG
52529 cat <<\_LT_EOF >> "$cfgfile"
52530 # AIX sometimes has problems with the GCC collect2 program. For some
52531 # reason, if we set the COLLECT_NAMES environment variable, the problems
52532 # vanish in a puff of smoke.
52533 if test "X${COLLECT_NAMES+set}" != Xset; then
52535 export COLLECT_NAMES
52542 ltmain="$ac_aux_dir/ltmain.sh"
52545 # We use sed instead of cat because bash on DJGPP gets confused if
52546 # if finds mixed CR/LF and LF-only lines. Since sed operates in
52547 # text mode, it properly converts lines to CR/LF. This bash problem
52548 # is reportedly fixed, but why not run on old versions too?
52549 sed '$q' "$ltmain" >> "$cfgfile" \
52550 || (rm -f "$cfgfile"; exit 1)
52552 if test x"$xsi_shell" = xyes; then
52553 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
52557 \ */*) func_dirname_result="${1%/*}${2}" ;;\
52558 \ * ) func_dirname_result="${3}" ;;\
52560 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
52561 && mv -f "$cfgfile.tmp" "$cfgfile" \
52562 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
52563 test 0 -eq $? || _lt_function_replace_fail=:
52566 sed -e '/^func_basename ()$/,/^} # func_basename /c\
52569 \ func_basename_result="${1##*/}"\
52570 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
52571 && mv -f "$cfgfile.tmp" "$cfgfile" \
52572 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
52573 test 0 -eq $? || _lt_function_replace_fail=:
52576 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
52577 func_dirname_and_basename ()\
52580 \ */*) func_dirname_result="${1%/*}${2}" ;;\
52581 \ * ) func_dirname_result="${3}" ;;\
52583 \ func_basename_result="${1##*/}"\
52584 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
52585 && mv -f "$cfgfile.tmp" "$cfgfile" \
52586 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
52587 test 0 -eq $? || _lt_function_replace_fail=:
52590 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
52593 \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
52594 \ # positional parameters, so assign one to ordinary parameter first.\
52595 \ func_stripname_result=${3}\
52596 \ func_stripname_result=${func_stripname_result#"${1}"}\
52597 \ func_stripname_result=${func_stripname_result%"${2}"}\
52598 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
52599 && mv -f "$cfgfile.tmp" "$cfgfile" \
52600 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
52601 test 0 -eq $? || _lt_function_replace_fail=:
52604 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
52605 func_split_long_opt ()\
52607 \ func_split_long_opt_name=${1%%=*}\
52608 \ func_split_long_opt_arg=${1#*=}\
52609 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
52610 && mv -f "$cfgfile.tmp" "$cfgfile" \
52611 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
52612 test 0 -eq $? || _lt_function_replace_fail=:
52615 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
52616 func_split_short_opt ()\
52618 \ func_split_short_opt_arg=${1#??}\
52619 \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
52620 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
52621 && mv -f "$cfgfile.tmp" "$cfgfile" \
52622 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
52623 test 0 -eq $? || _lt_function_replace_fail=:
52626 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
52630 \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
52631 \ *) func_lo2o_result=${1} ;;\
52633 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
52634 && mv -f "$cfgfile.tmp" "$cfgfile" \
52635 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
52636 test 0 -eq $? || _lt_function_replace_fail=:
52639 sed -e '/^func_xform ()$/,/^} # func_xform /c\
52642 func_xform_result=${1%.*}.lo\
52643 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
52644 && mv -f "$cfgfile.tmp" "$cfgfile" \
52645 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
52646 test 0 -eq $? || _lt_function_replace_fail=:
52649 sed -e '/^func_arith ()$/,/^} # func_arith /c\
52652 func_arith_result=$(( $* ))\
52653 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
52654 && mv -f "$cfgfile.tmp" "$cfgfile" \
52655 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
52656 test 0 -eq $? || _lt_function_replace_fail=:
52659 sed -e '/^func_len ()$/,/^} # func_len /c\
52662 func_len_result=${#1}\
52663 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
52664 && mv -f "$cfgfile.tmp" "$cfgfile" \
52665 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
52666 test 0 -eq $? || _lt_function_replace_fail=:
52670 if test x"$lt_shell_append" = xyes; then
52671 sed -e '/^func_append ()$/,/^} # func_append /c\
52674 eval "${1}+=\\${2}"\
52675 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
52676 && mv -f "$cfgfile.tmp" "$cfgfile" \
52677 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
52678 test 0 -eq $? || _lt_function_replace_fail=:
52681 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
52682 func_append_quoted ()\
52684 \ func_quote_for_eval "${2}"\
52685 \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
52686 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
52687 && mv -f "$cfgfile.tmp" "$cfgfile" \
52688 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
52689 test 0 -eq $? || _lt_function_replace_fail=:
52692 # Save a `func_append' function call where possible by direct use of '+='
52693 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
52694 && mv -f "$cfgfile.tmp" "$cfgfile" \
52695 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
52696 test 0 -eq $? || _lt_function_replace_fail=:
52698 # Save a `func_append' function call even when '+=' is not available
52699 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
52700 && mv -f "$cfgfile.tmp" "$cfgfile" \
52701 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
52702 test 0 -eq $? || _lt_function_replace_fail=:
52705 if test x"$_lt_function_replace_fail" = x":"; then
52706 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
52707 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
52711 mv -f "$cfgfile" "$ofile" ||
52712 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
52716 cat <<_LT_EOF >> "$ofile"
52718 # ### BEGIN LIBTOOL TAG CONFIG: CXX
52720 # The linker used to build libraries.
52723 # How to create reloadable object files.
52724 reload_flag=$lt_reload_flag_CXX
52725 reload_cmds=$lt_reload_cmds_CXX
52727 # Commands used to build an old-style archive.
52728 old_archive_cmds=$lt_old_archive_cmds_CXX
52730 # A language specific compiler.
52731 CC=$lt_compiler_CXX
52733 # Is the compiler the GNU compiler?
52736 # Compiler flag to turn off builtin functions.
52737 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
52739 # Additional compiler flags for building library objects.
52740 pic_flag=$lt_lt_prog_compiler_pic_CXX
52742 # How to pass a linker flag through the compiler.
52743 wl=$lt_lt_prog_compiler_wl_CXX
52745 # Compiler flag to prevent dynamic linking.
52746 link_static_flag=$lt_lt_prog_compiler_static_CXX
52748 # Does compiler simultaneously support -c and -o options?
52749 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
52751 # Whether or not to add -lc for building shared libraries.
52752 build_libtool_need_lc=$archive_cmds_need_lc_CXX
52754 # Whether or not to disallow shared libs when runtime libs are static.
52755 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
52757 # Compiler flag to allow reflexive dlopens.
52758 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
52760 # Compiler flag to generate shared objects directly from archives.
52761 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
52763 # Whether the compiler copes with passing no objects directly.
52764 compiler_needs_object=$lt_compiler_needs_object_CXX
52766 # Create an old-style archive from a shared archive.
52767 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
52769 # Create a temporary old-style archive to link instead of a shared archive.
52770 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
52772 # Commands used to build a shared archive.
52773 archive_cmds=$lt_archive_cmds_CXX
52774 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
52776 # Commands used to build a loadable module if different from building
52777 # a shared archive.
52778 module_cmds=$lt_module_cmds_CXX
52779 module_expsym_cmds=$lt_module_expsym_cmds_CXX
52781 # Whether we are building with GNU ld or not.
52782 with_gnu_ld=$lt_with_gnu_ld_CXX
52784 # Flag that allows shared libraries with undefined symbols to be built.
52785 allow_undefined_flag=$lt_allow_undefined_flag_CXX
52787 # Flag that enforces no undefined symbols.
52788 no_undefined_flag=$lt_no_undefined_flag_CXX
52790 # Flag to hardcode \$libdir into a binary during linking.
52791 # This must work even if \$libdir does not exist
52792 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
52794 # Whether we need a single "-rpath" flag with a separated argument.
52795 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
52797 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
52798 # DIR into the resulting binary.
52799 hardcode_direct=$hardcode_direct_CXX
52801 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
52802 # DIR into the resulting binary and the resulting library dependency is
52803 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
52804 # library is relocated.
52805 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
52807 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
52808 # into the resulting binary.
52809 hardcode_minus_L=$hardcode_minus_L_CXX
52811 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
52812 # into the resulting binary.
52813 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
52815 # Set to "yes" if building a shared library automatically hardcodes DIR
52816 # into the library and all subsequent libraries and executables linked
52818 hardcode_automatic=$hardcode_automatic_CXX
52820 # Set to yes if linker adds runtime paths of dependent libraries
52821 # to runtime path list.
52822 inherit_rpath=$inherit_rpath_CXX
52824 # Whether libtool must link a program against all its dependency libraries.
52825 link_all_deplibs=$link_all_deplibs_CXX
52827 # Set to "yes" if exported symbols are required.
52828 always_export_symbols=$always_export_symbols_CXX
52830 # The commands to list exported symbols.
52831 export_symbols_cmds=$lt_export_symbols_cmds_CXX
52833 # Symbols that should not be listed in the preloaded symbols.
52834 exclude_expsyms=$lt_exclude_expsyms_CXX
52836 # Symbols that must always be exported.
52837 include_expsyms=$lt_include_expsyms_CXX
52839 # Commands necessary for linking programs (against libraries) with templates.
52840 prelink_cmds=$lt_prelink_cmds_CXX
52842 # Commands necessary for finishing linking programs.
52843 postlink_cmds=$lt_postlink_cmds_CXX
52845 # Specify filename containing input files.
52846 file_list_spec=$lt_file_list_spec_CXX
52848 # How to hardcode a shared library path into an executable.
52849 hardcode_action=$hardcode_action_CXX
52851 # The directories searched by this compiler when creating a shared library.
52852 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
52854 # Dependencies to place before and after the objects being linked to
52855 # create a shared library.
52856 predep_objects=$lt_predep_objects_CXX
52857 postdep_objects=$lt_postdep_objects_CXX
52858 predeps=$lt_predeps_CXX
52859 postdeps=$lt_postdeps_CXX
52861 # The library search path used internally by the compiler when linking
52862 # a shared library.
52863 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
52865 # ### END LIBTOOL TAG CONFIG: CXX
52869 "guile/pre-inst-guile":F) chmod +x guile/pre-inst-guile ;;
52877 ac_clean_files=$ac_clean_files_save
52879 test $ac_write_fail = 0 ||
52880 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
52883 # configure is writing to config.log, and then calls config.status.
52884 # config.status does its own redirection, appending to config.log.
52885 # Unfortunately, on DOS this fails, as config.log is still kept open
52886 # by configure, so config.status won't be able to write to it; its
52887 # output is simply discarded. So we exec the FD to /dev/null,
52888 # effectively closing config.log, so it can be properly (re)opened and
52889 # appended to by config.status. When coming back to configure, we
52890 # need to make the FD available again.
52891 if test "$no_create" != yes; then
52893 ac_config_status_args=
52894 test "$silent" = yes &&
52895 ac_config_status_args="$ac_config_status_args --quiet"
52897 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
52899 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
52900 # would make configure fail if this is the last instruction.
52901 $ac_cs_success || as_fn_exit 1
52903 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
52904 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
52905 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
52909 { $as_echo "$as_me:${as_lineno-$LINENO}: summary of build options:
52911 version: ${VERSION} shared $LT_CURRENT:$LT_REVISION:$LT_AGE
52912 Host/Target system: ${host}
52913 Build system: ${build}
52914 Install prefix: ${prefix}
52917 Library types: Shared=${enable_shared}, Static=${enable_static}
52918 Local libopts: ${enable_local_libopts}
52919 Local libtasn1: ${included_libtasn1}
52920 Use nettle-mini: ${mini_nettle}
52922 $as_echo "$as_me: summary of build options:
52924 version: ${VERSION} shared $LT_CURRENT:$LT_REVISION:$LT_AGE
52925 Host/Target system: ${host}
52926 Build system: ${build}
52927 Install prefix: ${prefix}
52930 Library types: Shared=${enable_shared}, Static=${enable_static}
52931 Local libopts: ${enable_local_libopts}
52932 Local libtasn1: ${included_libtasn1}
52933 Use nettle-mini: ${mini_nettle}
52936 { $as_echo "$as_me:${as_lineno-$LINENO}: External hardware support:
52938 /dev/crypto: $enable_cryptodev
52939 Hardware accel: $hw_accel
52940 PKCS#11 support: $with_p11_kit
52941 TPM support: $with_tpm
52943 $as_echo "$as_me: External hardware support:
52945 /dev/crypto: $enable_cryptodev
52946 Hardware accel: $hw_accel
52947 PKCS#11 support: $with_p11_kit
52948 TPM support: $with_tpm
52951 { $as_echo "$as_me:${as_lineno-$LINENO}: Optional features:
52952 (note that included applications might not compile properly
52953 if features are disabled)
52955 DTLS-SRTP support: $ac_enable_srtp
52956 ALPN support: $ac_enable_alpn
52957 OCSP support: $ac_enable_ocsp
52958 Ses. ticket support: $ac_enable_session_tickets
52959 OpenPGP support: $ac_enable_openpgp
52960 SRP support: $ac_enable_srp
52961 PSK support: $ac_enable_psk
52962 DHE support: $ac_enable_dhe
52963 ECDHE support: $ac_enable_ecdhe
52964 RSA-EXPORT support: $ac_enable_rsa_export
52965 Anon auth support: $ac_enable_anon
52966 Heartbeat support: $ac_enable_heartbeat
52967 Unicode support: $ac_have_unicode
52968 Self checks: $enable_self_checks
52969 Non-SuiteB curves: $enable_non_suiteb
52970 FIPS140 mode: $enable_fips
52972 $as_echo "$as_me: Optional features:
52973 (note that included applications might not compile properly
52974 if features are disabled)
52976 DTLS-SRTP support: $ac_enable_srtp
52977 ALPN support: $ac_enable_alpn
52978 OCSP support: $ac_enable_ocsp
52979 Ses. ticket support: $ac_enable_session_tickets
52980 OpenPGP support: $ac_enable_openpgp
52981 SRP support: $ac_enable_srp
52982 PSK support: $ac_enable_psk
52983 DHE support: $ac_enable_dhe
52984 ECDHE support: $ac_enable_ecdhe
52985 RSA-EXPORT support: $ac_enable_rsa_export
52986 Anon auth support: $ac_enable_anon
52987 Heartbeat support: $ac_enable_heartbeat
52988 Unicode support: $ac_have_unicode
52989 Self checks: $enable_self_checks
52990 Non-SuiteB curves: $enable_non_suiteb
52991 FIPS140 mode: $enable_fips
52994 { $as_echo "$as_me:${as_lineno-$LINENO}: Optional applications:
52996 crywrap app: $libidn
52998 $as_echo "$as_me: Optional applications:
53000 crywrap app: $libidn
53003 { $as_echo "$as_me:${as_lineno-$LINENO}: Optional libraries:
53005 Guile wrappers: $opt_guile_bindings
53006 C++ library: $use_cxx
53007 DANE library: $enable_dane
53008 OpenSSL compat: $enable_openssl
53010 $as_echo "$as_me: Optional libraries:
53012 Guile wrappers: $opt_guile_bindings
53013 C++ library: $use_cxx
53014 DANE library: $enable_dane
53015 OpenSSL compat: $enable_openssl
53018 { $as_echo "$as_me:${as_lineno-$LINENO}: System files:
53020 Trust store pkcs11: $with_default_trust_store_pkcs11
53021 Trust store file: $with_default_trust_store_file
53022 Blacklist file: $with_default_blacklist_file
53023 CRL file: $with_default_crl_file
53024 Priority file: $system_priority_file
53025 DNSSEC root key file: $unbound_root_key_file
53027 $as_echo "$as_me: System files:
53029 Trust store pkcs11: $with_default_trust_store_pkcs11
53030 Trust store file: $with_default_trust_store_file
53031 Blacklist file: $with_default_blacklist_file
53032 CRL file: $with_default_crl_file
53033 Priority file: $system_priority_file
53034 DNSSEC root key file: $unbound_root_key_file
53037 if test ! -f "$unbound_root_key_file"; then
53038 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
53040 *** The DNSSEC root key file in $unbound_root_key_file was not found.
53041 *** This file is needed for the verification of DNSSEC responses.
53042 *** Use the command: unbound-anchor -a \"$unbound_root_key_file\"
53043 *** to generate or update it.
53045 $as_echo "$as_me: WARNING:
53047 *** The DNSSEC root key file in $unbound_root_key_file was not found.
53048 *** This file is needed for the verification of DNSSEC responses.
53049 *** Use the command: unbound-anchor -a \"$unbound_root_key_file\"
53050 *** to generate or update it.