2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.68 for libgsasl 1.8.0.
5 # Report bugs to <bug-gsasl@gnu.org>.
8 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
9 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
13 # This configure script is free software; the Free Software Foundation
14 # gives unlimited permission to copy, distribute and modify it.
15 ## -------------------- ##
16 ## M4sh Initialization. ##
17 ## -------------------- ##
19 # Be more Bourne compatible
20 DUALCASE=1; export DUALCASE # for MKS sh
21 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
24 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25 # is contrary to our usage. Disable this feature.
26 alias -g '${1+"$@"}'='"$@"'
29 case `(set -o) 2>/dev/null` in #(
41 # Printing a long string crashes Solaris 7 /usr/bin/printf.
42 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
43 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
44 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
45 # Prefer a ksh shell builtin over an external printf program on Solaris,
46 # but without wasting forks for bash or zsh.
47 if test -z "$BASH_VERSION$ZSH_VERSION" \
48 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
50 as_echo_n='print -rn --'
51 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
55 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
56 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
57 as_echo_n='/usr/ucb/echo -n'
59 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
64 expr "X$arg" : "X\\(.*\\)$as_nl";
65 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
67 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
70 as_echo_n='sh -c $as_echo_n_body as_echo'
73 as_echo='sh -c $as_echo_body as_echo'
76 # The user is always right.
77 if test "${PATH_SEPARATOR+set}" != set; then
79 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
80 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
87 # We need space, tab and new line, in precisely that order. Quoting is
88 # there to prevent editors from complaining about space-tab.
89 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
90 # splitting by setting IFS to empty value.)
93 # Find who we are. Look in the path if we contain no directory separator.
96 *[\\/]* ) as_myself=$0 ;;
97 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
101 test -z "$as_dir" && as_dir=.
102 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
108 # We did not find ourselves, most probably we were run as `sh COMMAND'
109 # in which case we are not to be found in the path.
110 if test "x$as_myself" = x; then
113 if test ! -f "$as_myself"; then
114 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
118 # Unset variables that we do not need and which cause bugs (e.g. in
119 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
120 # suppresses any "Segmentation fault" message there. '((' could
121 # trigger a bug in pdksh 5.2.14.
122 for as_var in BASH_ENV ENV MAIL MAILPATH
123 do eval test x\${$as_var+set} = xset \
124 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
137 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
139 if test "x$CONFIG_SHELL" = x; then
140 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
143 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
144 # is contrary to our usage. Disable this feature.
145 alias -g '\${1+\"\$@\"}'='\"\$@\"'
148 case \`(set -o) 2>/dev/null\` in #(
156 as_required="as_fn_return () { (exit \$1); }
157 as_fn_success () { as_fn_return 0; }
158 as_fn_failure () { as_fn_return 1; }
159 as_fn_ret_success () { return 0; }
160 as_fn_ret_failure () { return 1; }
163 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
164 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
165 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
166 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
167 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
170 exitcode=1; echo positional parameters were not saved.
172 test x\$exitcode = x0 || exit 1"
173 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
174 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
175 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
176 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
177 test \$(( 1 + 1 )) = 2 || exit 1
179 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
180 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
181 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
182 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
183 PATH=/empty FPATH=/empty; export PATH FPATH
184 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
185 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
186 if (eval "$as_required") 2>/dev/null; then :
191 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
194 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
196 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
199 test -z "$as_dir" && as_dir=.
203 for as_base in sh bash ksh sh5; do
204 # Try only shells that exist, to save several forks.
205 as_shell=$as_dir/$as_base
206 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
207 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
208 CONFIG_SHELL=$as_shell as_have_required=yes
209 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
217 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
218 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
219 CONFIG_SHELL=$SHELL as_have_required=yes
224 if test "x$CONFIG_SHELL" != x; then :
225 # We cannot yet assume a decent shell, so we have to provide a
226 # neutralization value for shells without unset; and this also
227 # works around shells that cannot unset nonexistent variables.
228 # Preserve -v and -x to the replacement shell.
231 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
234 *v*x* | *x*v* ) as_opts=-vx ;;
239 exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
242 if test x$as_have_required = xno; then :
243 $as_echo "$0: This script requires a shell more modern than all"
244 $as_echo "$0: the shells that I found on your system."
245 if test x${ZSH_VERSION+set} = xset ; then
246 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
247 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
249 $as_echo "$0: Please tell bug-autoconf@gnu.org and bug-gsasl@gnu.org
250 $0: about your system, including any error possibly output
251 $0: before this message. Then install a modern shell, or
252 $0: manually run the script under such a shell if you do
259 SHELL=${CONFIG_SHELL-/bin/sh}
261 # Unset more variables known to interfere with behavior of common tools.
262 CLICOLOR_FORCE= GREP_OPTIONS=
263 unset CLICOLOR_FORCE GREP_OPTIONS
265 ## --------------------- ##
266 ## M4sh Shell Functions. ##
267 ## --------------------- ##
270 # Portably unset VAR.
273 { eval $1=; unset $1;}
277 # as_fn_set_status STATUS
278 # -----------------------
279 # Set $? to STATUS, without forking.
287 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
297 # Create "$as_dir" as a directory, including parents if necessary.
302 -*) as_dir=./$as_dir;;
304 test -d "$as_dir" || eval $as_mkdir_p || {
308 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
311 as_dirs="'$as_qdir' $as_dirs"
312 as_dir=`$as_dirname -- "$as_dir" ||
313 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
314 X"$as_dir" : 'X\(//\)[^/]' \| \
315 X"$as_dir" : 'X\(//\)$' \| \
316 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
317 $as_echo X"$as_dir" |
318 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
335 test -d "$as_dir" && break
337 test -z "$as_dirs" || eval "mkdir $as_dirs"
338 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
342 # as_fn_append VAR VALUE
343 # ----------------------
344 # Append the text in VALUE to the end of the definition contained in VAR. Take
345 # advantage of any shell optimizations that allow amortized linear growth over
346 # repeated appends, instead of the typical quadratic growth present in naive
348 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
349 eval 'as_fn_append ()
362 # Perform arithmetic evaluation on the ARGs, and store the result in the
363 # global $as_val. Take advantage of shells that can avoid forks. The arguments
364 # must be portable across $(()) and expr.
365 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
373 as_val=`expr "$@" || test $? -eq 1`
378 # as_fn_error STATUS ERROR [LINENO LOG_FD]
379 # ----------------------------------------
380 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
381 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
382 # script with STATUS, using 1 if that was 0.
385 as_status=$1; test $as_status -eq 0 && as_status=1
387 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
388 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
390 $as_echo "$as_me: error: $2" >&2
391 as_fn_exit $as_status
394 if expr a : '\(a\)' >/dev/null 2>&1 &&
395 test "X`expr 00001 : '.*\(...\)'`" = X001; then
401 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
407 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
413 as_me=`$as_basename -- "$0" ||
414 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
415 X"$0" : 'X\(//\)$' \| \
416 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
418 sed '/^.*\/\([^/][^/]*\)\/*$/{
432 # Avoid depending upon Character Ranges.
433 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
434 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
435 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
436 as_cr_digits='0123456789'
437 as_cr_alnum=$as_cr_Letters$as_cr_digits
440 as_lineno_1=$LINENO as_lineno_1a=$LINENO
441 as_lineno_2=$LINENO as_lineno_2a=$LINENO
442 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
443 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
444 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
456 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
460 chmod +x "$as_me.lineno" ||
461 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
463 # Don't try to exec as it changes $[0], causing all sort of problems
464 # (the dirname of $[0] is not the place where we might find the
465 # original and so on. Autoconf is especially sensitive to this).
467 # Exit status is that of the last command.
471 ECHO_C= ECHO_N= ECHO_T=
472 case `echo -n x` in #(((((
474 case `echo 'xy\c'` in
475 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
477 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
484 rm -f conf$$ conf$$.exe conf$$.file
485 if test -d conf$$.dir; then
486 rm -f conf$$.dir/conf$$.file
489 mkdir conf$$.dir 2>/dev/null
491 if (echo >conf$$.file) 2>/dev/null; then
492 if ln -s conf$$.file conf$$ 2>/dev/null; then
494 # ... but there are two gotchas:
495 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
496 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
497 # In both cases, we have to default to `cp -p'.
498 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
500 elif ln conf$$.file conf$$ 2>/dev/null; then
508 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
509 rmdir conf$$.dir 2>/dev/null
511 if mkdir -p . 2>/dev/null; then
512 as_mkdir_p='mkdir -p "$as_dir"'
514 test -d ./-p && rmdir ./-p
518 if test -x / >/dev/null 2>&1; then
521 if ls -dL / >/dev/null 2>&1; then
528 if test -d "$1"; then
534 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
535 ???[sx]*):;;*)false;;esac;fi
539 as_executable_p=$as_test_x
541 # Sed expression to map a string onto a valid CPP name.
542 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
544 # Sed expression to map a string onto a valid variable name.
545 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
547 SHELL=${CONFIG_SHELL-/bin/sh}
550 test -n "$DJDIR" || exec 7<&0 </dev/null
554 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
555 # so uname gets run too.
556 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
561 ac_default_prefix=/usr/local
563 ac_config_libobj_dir=.
570 # Identity of this package.
571 PACKAGE_NAME='libgsasl'
572 PACKAGE_TARNAME='libgsasl'
573 PACKAGE_VERSION='1.8.0'
574 PACKAGE_STRING='libgsasl 1.8.0'
575 PACKAGE_BUGREPORT='bug-gsasl@gnu.org'
578 # Factoring default headers for most tests.
579 ac_includes_default="\
581 #ifdef HAVE_SYS_TYPES_H
582 # include <sys/types.h>
584 #ifdef HAVE_SYS_STAT_H
585 # include <sys/stat.h>
591 # ifdef HAVE_STDLIB_H
596 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
601 #ifdef HAVE_STRINGS_H
602 # include <strings.h>
604 #ifdef HAVE_INTTYPES_H
605 # include <inttypes.h>
617 ac_subst_vars='gltests_LTLIBOBJS
632 NEXT_AS_FIRST_DIRECTIVE_INTTYPES_H
634 UINT64_MAX_EQ_ULONG_MAX
635 UINT32_MAX_LT_UINTMAX_MAX
638 INT64_MAX_EQ_LONG_MAX
639 INT32_MAX_LT_INTMAX_MAX
649 HAVE_MSVC_INVALID_PARAMETER_HANDLER
652 NEXT_AS_FIRST_DIRECTIVE_WCHAR_H
747 NEXT_AS_FIRST_DIRECTIVE_UNISTD_H
749 UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS
750 UNISTD_H_HAVE_WINSOCK2_H
771 REPLACE_GETDOMAINNAME
782 HAVE_DECL_SETHOSTNAME
783 HAVE_DECL_GETUSERSHELL
784 HAVE_DECL_GETPAGESIZE
786 HAVE_DECL_GETDOMAINNAME
825 GNULIB_UNISTD_H_SIGPIPE
826 GNULIB_UNISTD_H_NONBLOCKING
870 NEXT_AS_FIRST_DIRECTIVE_SYS_TYPES_H
872 NEXT_AS_FIRST_DIRECTIVE_STRING_H
874 NEXT_AS_FIRST_DIRECTIVE_STDLIB_H
876 NEXT_AS_FIRST_DIRECTIVE_STDIO_H
878 GL_GENERATE_STDINT_H_FALSE
879 GL_GENERATE_STDINT_H_TRUE
888 HAVE_SIGNED_SIG_ATOMIC_T
891 BITSIZEOF_SIG_ATOMIC_T
897 NEXT_AS_FIRST_DIRECTIVE_STDINT_H
902 HAVE_UNSIGNED_LONG_LONG_INT
904 NEXT_AS_FIRST_DIRECTIVE_STDDEF_H
906 GL_GENERATE_STDDEF_H_FALSE
907 GL_GENERATE_STDDEF_H_TRUE
912 GL_GENERATE_STDBOOL_H_FALSE
913 GL_GENERATE_STDBOOL_H_TRUE
915 GL_GENERATE_STDALIGN_H_FALSE
916 GL_GENERATE_STDALIGN_H_TRUE
930 REPLACE_CANONICALIZE_FILE_NAME
935 HAVE_STRUCT_RANDOM_DATA
957 HAVE_CANONICALIZE_FILE_NAME
987 GNULIB_CANONICALIZE_FILE_NAME
991 APPLE_UNIVERSAL_BUILD
1009 HAVE_DECL_STRERROR_R
1067 HAVE_LD_VERSION_SCRIPT_FALSE
1068 HAVE_LD_VERSION_SCRIPT_TRUE
1069 HAVE_LD_OUTPUT_DEF_FALSE
1070 HAVE_LD_OUTPUT_DEF_TRUE
1078 REPLACE_STDIO_WRITE_FUNCS
1079 REPLACE_STDIO_READ_FUNCS
1088 REPLACE_OBSTACK_PRINTF
1113 HAVE_DECL_OBSTACK_PRINTF
1119 GNULIB_VSPRINTF_POSIX
1121 GNULIB_VPRINTF_POSIX
1123 GNULIB_VFPRINTF_POSIX
1130 GNULIB_STDIO_H_SIGPIPE
1131 GNULIB_STDIO_H_NONBLOCKING
1132 GNULIB_SPRINTF_POSIX
1146 GNULIB_OBSTACK_PRINTF_POSIX
1147 GNULIB_OBSTACK_PRINTF
1163 GNULIB_FPRINTF_POSIX
1173 GL_GENERATE_FLOAT_H_FALSE
1174 GL_GENERATE_FLOAT_H_TRUE
1176 NEXT_AS_FIRST_DIRECTIVE_FLOAT_H
1184 GL_GENERATE_ERRNO_H_FALSE
1185 GL_GENERATE_ERRNO_H_TRUE
1187 NEXT_AS_FIRST_DIRECTIVE_ERRNO_H
1190 PRAGMA_SYSTEM_HEADER
1191 INCLUDE_NEXT_AS_FIRST_DIRECTIVE
1197 GL_GENERATE_ALLOCA_H_FALSE
1198 GL_GENERATE_ALLOCA_H_TRUE
1201 GL_COND_LIBTOOL_FALSE
1202 GL_COND_LIBTOOL_TRUE
1263 XGETTEXT_EXTRA_OPTIONS
1271 GETTEXT_MACRO_VERSION
1323 AM_DEFAULT_VERBOSITY
1334 INSTALL_STRIP_PROGRAM
1380 program_transform_name
1393 enable_option_checking
1395 enable_dependency_tracking
1405 with_libiconv_prefix
1423 with_libgssapi32_prefix
1425 with_libshishi_prefix
1432 with_libgcrypt_prefix
1433 enable_random_device
1434 enable_pseudo_random_device
1436 enable_ld_version_script
1438 ac_precious_vars='build_alias
1449 # Initialize some variables set by options.
1451 ac_init_version=false
1452 ac_unrecognized_opts=
1453 ac_unrecognized_sep=
1454 # The variables have the same names as the options, with
1455 # dashes changed to underlines.
1456 cache_file=/dev/null
1463 program_transform_name=s,x,x,
1471 # Installation directory options.
1472 # These are left unexpanded so users can "make install exec_prefix=/foo"
1473 # and all the variables that are supposed to be based on exec_prefix
1474 # by default will actually change.
1475 # Use braces instead of parens because sh, perl, etc. also accept them.
1476 # (The list follows the same order as the GNU Coding Standards.)
1477 bindir='${exec_prefix}/bin'
1478 sbindir='${exec_prefix}/sbin'
1479 libexecdir='${exec_prefix}/libexec'
1480 datarootdir='${prefix}/share'
1481 datadir='${datarootdir}'
1482 sysconfdir='${prefix}/etc'
1483 sharedstatedir='${prefix}/com'
1484 localstatedir='${prefix}/var'
1485 includedir='${prefix}/include'
1486 oldincludedir='/usr/include'
1487 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1488 infodir='${datarootdir}/info'
1493 libdir='${exec_prefix}/lib'
1494 localedir='${datarootdir}/locale'
1495 mandir='${datarootdir}/man'
1501 # If the previous option needs an argument, assign it.
1502 if test -n "$ac_prev"; then
1503 eval $ac_prev=\$ac_option
1509 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1514 # Accept the important Cygnus configure options, so we can diagnose typos.
1516 case $ac_dashdash$ac_option in
1520 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1522 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1523 bindir=$ac_optarg ;;
1525 -build | --build | --buil | --bui | --bu)
1526 ac_prev=build_alias ;;
1527 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1528 build_alias=$ac_optarg ;;
1530 -cache-file | --cache-file | --cache-fil | --cache-fi \
1531 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1532 ac_prev=cache_file ;;
1533 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1534 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1535 cache_file=$ac_optarg ;;
1537 --config-cache | -C)
1538 cache_file=config.cache ;;
1540 -datadir | --datadir | --datadi | --datad)
1542 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1543 datadir=$ac_optarg ;;
1545 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1546 | --dataroo | --dataro | --datar)
1547 ac_prev=datarootdir ;;
1548 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1549 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1550 datarootdir=$ac_optarg ;;
1552 -disable-* | --disable-*)
1553 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1554 # Reject names that are not valid shell variable names.
1555 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1556 as_fn_error $? "invalid feature name: $ac_useropt"
1557 ac_useropt_orig=$ac_useropt
1558 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1559 case $ac_user_opts in
1561 "enable_$ac_useropt"
1563 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1564 ac_unrecognized_sep=', ';;
1566 eval enable_$ac_useropt=no ;;
1568 -docdir | --docdir | --docdi | --doc | --do)
1570 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1571 docdir=$ac_optarg ;;
1573 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1575 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1576 dvidir=$ac_optarg ;;
1578 -enable-* | --enable-*)
1579 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1580 # Reject names that are not valid shell variable names.
1581 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1582 as_fn_error $? "invalid feature name: $ac_useropt"
1583 ac_useropt_orig=$ac_useropt
1584 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1585 case $ac_user_opts in
1587 "enable_$ac_useropt"
1589 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1590 ac_unrecognized_sep=', ';;
1592 eval enable_$ac_useropt=\$ac_optarg ;;
1594 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1595 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1596 | --exec | --exe | --ex)
1597 ac_prev=exec_prefix ;;
1598 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1599 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1600 | --exec=* | --exe=* | --ex=*)
1601 exec_prefix=$ac_optarg ;;
1603 -gas | --gas | --ga | --g)
1604 # Obsolete; use --with-gas.
1607 -help | --help | --hel | --he | -h)
1608 ac_init_help=long ;;
1609 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1610 ac_init_help=recursive ;;
1611 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1612 ac_init_help=short ;;
1614 -host | --host | --hos | --ho)
1615 ac_prev=host_alias ;;
1616 -host=* | --host=* | --hos=* | --ho=*)
1617 host_alias=$ac_optarg ;;
1619 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1621 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1623 htmldir=$ac_optarg ;;
1625 -includedir | --includedir | --includedi | --included | --include \
1626 | --includ | --inclu | --incl | --inc)
1627 ac_prev=includedir ;;
1628 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1629 | --includ=* | --inclu=* | --incl=* | --inc=*)
1630 includedir=$ac_optarg ;;
1632 -infodir | --infodir | --infodi | --infod | --info | --inf)
1634 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1635 infodir=$ac_optarg ;;
1637 -libdir | --libdir | --libdi | --libd)
1639 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1640 libdir=$ac_optarg ;;
1642 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1643 | --libexe | --libex | --libe)
1644 ac_prev=libexecdir ;;
1645 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1646 | --libexe=* | --libex=* | --libe=*)
1647 libexecdir=$ac_optarg ;;
1649 -localedir | --localedir | --localedi | --localed | --locale)
1650 ac_prev=localedir ;;
1651 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1652 localedir=$ac_optarg ;;
1654 -localstatedir | --localstatedir | --localstatedi | --localstated \
1655 | --localstate | --localstat | --localsta | --localst | --locals)
1656 ac_prev=localstatedir ;;
1657 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1658 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1659 localstatedir=$ac_optarg ;;
1661 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1663 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1664 mandir=$ac_optarg ;;
1666 -nfp | --nfp | --nf)
1667 # Obsolete; use --without-fp.
1670 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1671 | --no-cr | --no-c | -n)
1674 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1675 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1678 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1679 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1680 | --oldin | --oldi | --old | --ol | --o)
1681 ac_prev=oldincludedir ;;
1682 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1683 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1684 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1685 oldincludedir=$ac_optarg ;;
1687 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1689 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1690 prefix=$ac_optarg ;;
1692 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1693 | --program-pre | --program-pr | --program-p)
1694 ac_prev=program_prefix ;;
1695 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1696 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1697 program_prefix=$ac_optarg ;;
1699 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1700 | --program-suf | --program-su | --program-s)
1701 ac_prev=program_suffix ;;
1702 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1703 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1704 program_suffix=$ac_optarg ;;
1706 -program-transform-name | --program-transform-name \
1707 | --program-transform-nam | --program-transform-na \
1708 | --program-transform-n | --program-transform- \
1709 | --program-transform | --program-transfor \
1710 | --program-transfo | --program-transf \
1711 | --program-trans | --program-tran \
1712 | --progr-tra | --program-tr | --program-t)
1713 ac_prev=program_transform_name ;;
1714 -program-transform-name=* | --program-transform-name=* \
1715 | --program-transform-nam=* | --program-transform-na=* \
1716 | --program-transform-n=* | --program-transform-=* \
1717 | --program-transform=* | --program-transfor=* \
1718 | --program-transfo=* | --program-transf=* \
1719 | --program-trans=* | --program-tran=* \
1720 | --progr-tra=* | --program-tr=* | --program-t=*)
1721 program_transform_name=$ac_optarg ;;
1723 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1725 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1726 pdfdir=$ac_optarg ;;
1728 -psdir | --psdir | --psdi | --psd | --ps)
1730 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1733 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1734 | -silent | --silent | --silen | --sile | --sil)
1737 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1739 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1741 sbindir=$ac_optarg ;;
1743 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1744 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1745 | --sharedst | --shareds | --shared | --share | --shar \
1747 ac_prev=sharedstatedir ;;
1748 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1749 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1750 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1752 sharedstatedir=$ac_optarg ;;
1754 -site | --site | --sit)
1756 -site=* | --site=* | --sit=*)
1759 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1761 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1762 srcdir=$ac_optarg ;;
1764 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1765 | --syscon | --sysco | --sysc | --sys | --sy)
1766 ac_prev=sysconfdir ;;
1767 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1768 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1769 sysconfdir=$ac_optarg ;;
1771 -target | --target | --targe | --targ | --tar | --ta | --t)
1772 ac_prev=target_alias ;;
1773 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1774 target_alias=$ac_optarg ;;
1776 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1779 -version | --version | --versio | --versi | --vers | -V)
1780 ac_init_version=: ;;
1783 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1784 # Reject names that are not valid shell variable names.
1785 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1786 as_fn_error $? "invalid package name: $ac_useropt"
1787 ac_useropt_orig=$ac_useropt
1788 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1789 case $ac_user_opts in
1793 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1794 ac_unrecognized_sep=', ';;
1796 eval with_$ac_useropt=\$ac_optarg ;;
1798 -without-* | --without-*)
1799 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1800 # Reject names that are not valid shell variable names.
1801 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1802 as_fn_error $? "invalid package name: $ac_useropt"
1803 ac_useropt_orig=$ac_useropt
1804 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1805 case $ac_user_opts in
1809 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1810 ac_unrecognized_sep=', ';;
1812 eval with_$ac_useropt=no ;;
1815 # Obsolete; use --with-x.
1818 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1819 | --x-incl | --x-inc | --x-in | --x-i)
1820 ac_prev=x_includes ;;
1821 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1822 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1823 x_includes=$ac_optarg ;;
1825 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1826 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1827 ac_prev=x_libraries ;;
1828 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1829 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1830 x_libraries=$ac_optarg ;;
1832 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1833 Try \`$0 --help' for more information"
1837 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1838 # Reject names that are not valid shell variable names.
1839 case $ac_envvar in #(
1840 '' | [0-9]* | *[!_$as_cr_alnum]* )
1841 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1843 eval $ac_envvar=\$ac_optarg
1844 export $ac_envvar ;;
1847 # FIXME: should be removed in autoconf 3.0.
1848 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1849 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1850 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1851 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1857 if test -n "$ac_prev"; then
1858 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1859 as_fn_error $? "missing argument to $ac_option"
1862 if test -n "$ac_unrecognized_opts"; then
1863 case $enable_option_checking in
1865 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1866 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1870 # Check all directory arguments for consistency.
1871 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1872 datadir sysconfdir sharedstatedir localstatedir includedir \
1873 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1874 libdir localedir mandir
1876 eval ac_val=\$$ac_var
1877 # Remove trailing slashes.
1880 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1881 eval $ac_var=\$ac_val;;
1883 # Be sure to have absolute directory names.
1885 [\\/$]* | ?:[\\/]* ) continue;;
1886 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1888 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1891 # There might be people who depend on the old broken behavior: `$host'
1892 # used to hold the argument of --host etc.
1893 # FIXME: To remove some day.
1896 target=$target_alias
1898 # FIXME: To remove some day.
1899 if test "x$host_alias" != x; then
1900 if test "x$build_alias" = x; then
1901 cross_compiling=maybe
1902 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1903 If a cross compiler is detected then cross compile mode will be used" >&2
1904 elif test "x$build_alias" != "x$host_alias"; then
1910 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1912 test "$silent" = yes && exec 6>/dev/null
1915 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1916 ac_ls_di=`ls -di .` &&
1917 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1918 as_fn_error $? "working directory cannot be determined"
1919 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1920 as_fn_error $? "pwd does not report name of working directory"
1923 # Find the source files, if location was not specified.
1924 if test -z "$srcdir"; then
1925 ac_srcdir_defaulted=yes
1926 # Try the directory containing this script, then the parent directory.
1927 ac_confdir=`$as_dirname -- "$as_myself" ||
1928 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1929 X"$as_myself" : 'X\(//\)[^/]' \| \
1930 X"$as_myself" : 'X\(//\)$' \| \
1931 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1932 $as_echo X"$as_myself" |
1933 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1951 if test ! -r "$srcdir/$ac_unique_file"; then
1955 ac_srcdir_defaulted=no
1957 if test ! -r "$srcdir/$ac_unique_file"; then
1958 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1959 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1961 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1963 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1965 # When building in place, set srcdir=.
1966 if test "$ac_abs_confdir" = "$ac_pwd"; then
1969 # Remove unnecessary trailing slashes from srcdir.
1970 # Double slashes in file names in object file debugging info
1971 # mess up M-x gdb in Emacs.
1973 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1975 for ac_var in $ac_precious_vars; do
1976 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1977 eval ac_env_${ac_var}_value=\$${ac_var}
1978 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1979 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1983 # Report the --help message.
1985 if test "$ac_init_help" = "long"; then
1986 # Omit some internal or obsolete options to make the list less imposing.
1987 # This message is too long to be a string in the A/UX 3.1 sh.
1989 \`configure' configures libgsasl 1.8.0 to adapt to many kinds of systems.
1991 Usage: $0 [OPTION]... [VAR=VALUE]...
1993 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1994 VAR=VALUE. See below for descriptions of some of the useful variables.
1996 Defaults for the options are specified in brackets.
1999 -h, --help display this help and exit
2000 --help=short display options specific to this package
2001 --help=recursive display the short help of all the included packages
2002 -V, --version display version information and exit
2003 -q, --quiet, --silent do not print \`checking ...' messages
2004 --cache-file=FILE cache test results in FILE [disabled]
2005 -C, --config-cache alias for \`--cache-file=config.cache'
2006 -n, --no-create do not create output files
2007 --srcdir=DIR find the sources in DIR [configure dir or \`..']
2009 Installation directories:
2010 --prefix=PREFIX install architecture-independent files in PREFIX
2011 [$ac_default_prefix]
2012 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
2015 By default, \`make install' will install all the files in
2016 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
2017 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
2018 for instance \`--prefix=\$HOME'.
2020 For better control, use the options below.
2022 Fine tuning of the installation directories:
2023 --bindir=DIR user executables [EPREFIX/bin]
2024 --sbindir=DIR system admin executables [EPREFIX/sbin]
2025 --libexecdir=DIR program executables [EPREFIX/libexec]
2026 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
2027 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
2028 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
2029 --libdir=DIR object code libraries [EPREFIX/lib]
2030 --includedir=DIR C header files [PREFIX/include]
2031 --oldincludedir=DIR C header files for non-gcc [/usr/include]
2032 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
2033 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
2034 --infodir=DIR info documentation [DATAROOTDIR/info]
2035 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
2036 --mandir=DIR man documentation [DATAROOTDIR/man]
2037 --docdir=DIR documentation root [DATAROOTDIR/doc/libgsasl]
2038 --htmldir=DIR html documentation [DOCDIR]
2039 --dvidir=DIR dvi documentation [DOCDIR]
2040 --pdfdir=DIR pdf documentation [DOCDIR]
2041 --psdir=DIR ps documentation [DOCDIR]
2047 --program-prefix=PREFIX prepend PREFIX to installed program names
2048 --program-suffix=SUFFIX append SUFFIX to installed program names
2049 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
2052 --build=BUILD configure for building on BUILD [guessed]
2053 --host=HOST cross-compile to build programs to run on HOST [BUILD]
2057 if test -n "$ac_init_help"; then
2058 case $ac_init_help in
2059 short | recursive ) echo "Configuration of libgsasl 1.8.0:";;
2064 --disable-option-checking ignore unrecognized --enable/--with options
2065 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
2066 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
2067 --enable-silent-rules less verbose build output (undo: `make V=1')
2068 --disable-silent-rules verbose build output (undo: `make V=0')
2069 --disable-dependency-tracking speeds up one-time build
2070 --enable-dependency-tracking do not reject slow dependency extractors
2071 --enable-shared[=PKGS] build shared libraries [default=yes]
2072 --enable-static[=PKGS] build static libraries [default=yes]
2073 --enable-fast-install[=PKGS]
2074 optimize for fast installation [default=yes]
2075 --disable-libtool-lock avoid locking (might break parallel builds)
2076 --disable-nls do not use Native Language Support
2077 --disable-rpath do not hardcode runtime library paths
2078 --disable-anonymous don't use the ANONYMOUS mechanism
2079 --disable-external don't use the EXTERNAL mechanism
2080 --disable-plain don't use the PLAIN mechanism
2081 --disable-login don't use the LOGIN mechanism
2082 --disable-securid don't use the SECURID mechanism
2083 --disable-ntlm don't use the NTLM mechanism
2084 --disable-cram-md5 don't use the CRAM-MD5 mechanism
2085 --disable-digest-md5 don't use the DIGEST-MD5 mechanism
2086 --enable-scram-sha1 use the SCRAM-SHA-1 mechanism
2087 --disable-saml20 don't use the SAML20 mechanism
2088 --disable-openid20 don't use the OPENID20 mechanism
2089 --disable-gs2 don't use the GS2 mechanism
2090 --disable-gssapi don't use the GSSAPI mechanism
2091 --enable-kerberos_v5 use the KERBEROS_V5 mechanism
2092 --disable-client disable client code
2093 --disable-server disable server code
2094 --disable-obsolete disable backwards compatibility code
2095 --enable-random-device device with (strong) randomness (for Nettle)
2096 --enable-pseudo-random-device
2097 device with pseudo randomness (for Nettle)
2098 --enable-nonce-device device with unpredictable nonces (for Nettle)
2099 --enable-ld-version-script
2100 enable linker version script (default is enabled
2104 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
2105 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
2106 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
2108 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
2109 --with-sysroot=DIR Search for dependent libraries within DIR
2110 (or the compiler's sysroot if not specified).
2111 --with-gnu-ld assume the C compiler uses GNU ld default=no
2112 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
2113 --without-libiconv-prefix don't search for libiconv in includedir and libdir
2114 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
2115 --without-libintl-prefix don't search for libintl in includedir and libdir
2116 --with-libntlm-prefix[=DIR] search for libntlm in DIR/include and DIR/lib
2117 --without-libntlm-prefix don't search for libntlm in includedir and libdir
2118 --with-gssapi-impl=no/gss/kfw/mit/heimdal/yes
2119 select GSS-API implementation
2120 --with-libgss-prefix[=DIR] search for libgss in DIR/include and DIR/lib
2121 --without-libgss-prefix don't search for libgss in includedir and libdir
2122 --with-libgssapi32-prefix[=DIR] search for libgssapi32 in DIR/include and DIR/lib
2123 --without-libgssapi32-prefix don't search for libgssapi32 in includedir and libdir
2124 --with-libshishi-prefix[=DIR] search for libshishi in DIR/include and DIR/lib
2125 --without-libshishi-prefix don't search for libshishi in includedir and libdir
2126 --without-stringprep disable non-ASCII support
2127 --with-libidn-prefix[=DIR] search for libidn in DIR/include and DIR/lib
2128 --without-libidn-prefix don't search for libidn in includedir and libdir
2129 --with-libgcrypt use libgcrypt for low-level crypto
2130 --with-libgcrypt-prefix[=DIR] search for libgcrypt in DIR/include and DIR/lib
2131 --without-libgcrypt-prefix don't search for libgcrypt in includedir and libdir
2133 Some influential environment variables:
2134 CC C compiler command
2135 CFLAGS C compiler flags
2136 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
2137 nonstandard directory <lib dir>
2138 LIBS libraries to pass to the linker, e.g. -l<library>
2139 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
2140 you have headers in a nonstandard directory <include dir>
2143 Use these variables to override the choices made by `configure' or to help
2144 it to find libraries and programs with nonstandard names/locations.
2146 Report bugs to <bug-gsasl@gnu.org>.
2151 if test "$ac_init_help" = "recursive"; then
2152 # If there are subdirs, report their specific --help.
2153 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
2154 test -d "$ac_dir" ||
2155 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
2160 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
2162 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
2163 # A ".." for each directory in $ac_dir_suffix.
2164 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
2165 case $ac_top_builddir_sub in
2166 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
2167 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
2170 ac_abs_top_builddir=$ac_pwd
2171 ac_abs_builddir=$ac_pwd$ac_dir_suffix
2172 # for backward compatibility:
2173 ac_top_builddir=$ac_top_build_prefix
2176 .) # We are building in place.
2178 ac_top_srcdir=$ac_top_builddir_sub
2179 ac_abs_top_srcdir=$ac_pwd ;;
2180 [\\/]* | ?:[\\/]* ) # Absolute name.
2181 ac_srcdir=$srcdir$ac_dir_suffix;
2182 ac_top_srcdir=$srcdir
2183 ac_abs_top_srcdir=$srcdir ;;
2185 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
2186 ac_top_srcdir=$ac_top_build_prefix$srcdir
2187 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
2189 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
2191 cd "$ac_dir" || { ac_status=$?; continue; }
2192 # Check for guested configure.
2193 if test -f "$ac_srcdir/configure.gnu"; then
2195 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
2196 elif test -f "$ac_srcdir/configure"; then
2198 $SHELL "$ac_srcdir/configure" --help=recursive
2200 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
2202 cd "$ac_pwd" || { ac_status=$?; break; }
2206 test -n "$ac_init_help" && exit $ac_status
2207 if $ac_init_version; then
2209 libgsasl configure 1.8.0
2210 generated by GNU Autoconf 2.68
2212 Copyright (C) 2010 Free Software Foundation, Inc.
2213 This configure script is free software; the Free Software Foundation
2214 gives unlimited permission to copy, distribute and modify it.
2219 ## ------------------------ ##
2220 ## Autoconf initialization. ##
2221 ## ------------------------ ##
2223 # ac_fn_c_try_compile LINENO
2224 # --------------------------
2225 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2226 ac_fn_c_try_compile ()
2228 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2229 rm -f conftest.$ac_objext
2230 if { { ac_try="$ac_compile"
2232 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2233 *) ac_try_echo=$ac_try;;
2235 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2236 $as_echo "$ac_try_echo"; } >&5
2237 (eval "$ac_compile") 2>conftest.err
2239 if test -s conftest.err; then
2240 grep -v '^ *+' conftest.err >conftest.er1
2241 cat conftest.er1 >&5
2242 mv -f conftest.er1 conftest.err
2244 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2245 test $ac_status = 0; } && {
2246 test -z "$ac_c_werror_flag" ||
2247 test ! -s conftest.err
2248 } && test -s conftest.$ac_objext; then :
2251 $as_echo "$as_me: failed program was:" >&5
2252 sed 's/^/| /' conftest.$ac_ext >&5
2256 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2257 as_fn_set_status $ac_retval
2259 } # ac_fn_c_try_compile
2261 # ac_fn_c_try_cpp LINENO
2262 # ----------------------
2263 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2266 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2267 if { { ac_try="$ac_cpp conftest.$ac_ext"
2269 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2270 *) ac_try_echo=$ac_try;;
2272 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2273 $as_echo "$ac_try_echo"; } >&5
2274 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2276 if test -s conftest.err; then
2277 grep -v '^ *+' conftest.err >conftest.er1
2278 cat conftest.er1 >&5
2279 mv -f conftest.er1 conftest.err
2281 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2282 test $ac_status = 0; } > conftest.i && {
2283 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2284 test ! -s conftest.err
2288 $as_echo "$as_me: failed program was:" >&5
2289 sed 's/^/| /' conftest.$ac_ext >&5
2293 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2294 as_fn_set_status $ac_retval
2298 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2299 # -------------------------------------------------------
2300 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2301 # the include files in INCLUDES and setting the cache variable VAR
2303 ac_fn_c_check_header_mongrel ()
2305 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2306 if eval \${$3+:} false; then :
2307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2308 $as_echo_n "checking for $2... " >&6; }
2309 if eval \${$3+:} false; then :
2310 $as_echo_n "(cached) " >&6
2313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2314 $as_echo "$ac_res" >&6; }
2316 # Is the header compilable?
2317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2318 $as_echo_n "checking $2 usability... " >&6; }
2319 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2320 /* end confdefs.h. */
2324 if ac_fn_c_try_compile "$LINENO"; then :
2325 ac_header_compiler=yes
2327 ac_header_compiler=no
2329 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2331 $as_echo "$ac_header_compiler" >&6; }
2333 # Is the header present?
2334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2335 $as_echo_n "checking $2 presence... " >&6; }
2336 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2337 /* end confdefs.h. */
2340 if ac_fn_c_try_cpp "$LINENO"; then :
2341 ac_header_preproc=yes
2343 ac_header_preproc=no
2345 rm -f conftest.err conftest.i conftest.$ac_ext
2346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2347 $as_echo "$ac_header_preproc" >&6; }
2349 # So? What about this header?
2350 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2352 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2353 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2354 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2355 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2358 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2359 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2360 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2361 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2362 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2363 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2364 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2365 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2366 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2367 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2368 ( $as_echo "## -------------------------------- ##
2369 ## Report this to bug-gsasl@gnu.org ##
2370 ## -------------------------------- ##"
2371 ) | sed "s/^/$as_me: WARNING: /" >&2
2374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2375 $as_echo_n "checking for $2... " >&6; }
2376 if eval \${$3+:} false; then :
2377 $as_echo_n "(cached) " >&6
2379 eval "$3=\$ac_header_compiler"
2382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2383 $as_echo "$ac_res" >&6; }
2385 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2387 } # ac_fn_c_check_header_mongrel
2389 # ac_fn_c_try_run LINENO
2390 # ----------------------
2391 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2392 # that executables *can* be run.
2395 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2396 if { { ac_try="$ac_link"
2398 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2399 *) ac_try_echo=$ac_try;;
2401 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2402 $as_echo "$ac_try_echo"; } >&5
2403 (eval "$ac_link") 2>&5
2405 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2406 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2407 { { case "(($ac_try" in
2408 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2409 *) ac_try_echo=$ac_try;;
2411 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2412 $as_echo "$ac_try_echo"; } >&5
2413 (eval "$ac_try") 2>&5
2415 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2416 test $ac_status = 0; }; }; then :
2419 $as_echo "$as_me: program exited with status $ac_status" >&5
2420 $as_echo "$as_me: failed program was:" >&5
2421 sed 's/^/| /' conftest.$ac_ext >&5
2423 ac_retval=$ac_status
2425 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2426 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2427 as_fn_set_status $ac_retval
2431 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2432 # -------------------------------------------------------
2433 # Tests whether HEADER exists and can be compiled using the include files in
2434 # INCLUDES, setting the cache variable VAR accordingly.
2435 ac_fn_c_check_header_compile ()
2437 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2439 $as_echo_n "checking for $2... " >&6; }
2440 if eval \${$3+:} false; then :
2441 $as_echo_n "(cached) " >&6
2443 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2444 /* end confdefs.h. */
2448 if ac_fn_c_try_compile "$LINENO"; then :
2453 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2457 $as_echo "$ac_res" >&6; }
2458 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2460 } # ac_fn_c_check_header_compile
2462 # ac_fn_c_try_link LINENO
2463 # -----------------------
2464 # Try to link conftest.$ac_ext, and return whether this succeeded.
2467 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2468 rm -f conftest.$ac_objext conftest$ac_exeext
2469 if { { ac_try="$ac_link"
2471 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2472 *) ac_try_echo=$ac_try;;
2474 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2475 $as_echo "$ac_try_echo"; } >&5
2476 (eval "$ac_link") 2>conftest.err
2478 if test -s conftest.err; then
2479 grep -v '^ *+' conftest.err >conftest.er1
2480 cat conftest.er1 >&5
2481 mv -f conftest.er1 conftest.err
2483 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2484 test $ac_status = 0; } && {
2485 test -z "$ac_c_werror_flag" ||
2486 test ! -s conftest.err
2487 } && test -s conftest$ac_exeext && {
2488 test "$cross_compiling" = yes ||
2489 $as_test_x conftest$ac_exeext
2493 $as_echo "$as_me: failed program was:" >&5
2494 sed 's/^/| /' conftest.$ac_ext >&5
2498 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2499 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2500 # interfere with the next link command; also delete a directory that is
2501 # left behind by Apple's compiler. We do this before executing the actions.
2502 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2503 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2504 as_fn_set_status $ac_retval
2506 } # ac_fn_c_try_link
2508 # ac_fn_c_check_func LINENO FUNC VAR
2509 # ----------------------------------
2510 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2511 ac_fn_c_check_func ()
2513 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2515 $as_echo_n "checking for $2... " >&6; }
2516 if eval \${$3+:} false; then :
2517 $as_echo_n "(cached) " >&6
2519 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2520 /* end confdefs.h. */
2521 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2522 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2523 #define $2 innocuous_$2
2525 /* System header to define __stub macros and hopefully few prototypes,
2526 which can conflict with char $2 (); below.
2527 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2528 <limits.h> exists even on freestanding compilers. */
2531 # include <limits.h>
2533 # include <assert.h>
2538 /* Override any GCC internal prototype to avoid an error.
2539 Use char because int might match the return type of a GCC
2540 builtin and then its argument prototype would still apply. */
2545 /* The GNU C library defines this for functions which it implements
2546 to always fail with ENOSYS. Some functions are actually named
2547 something starting with __ and the normal name is an alias. */
2548 #if defined __stub_$2 || defined __stub___$2
2560 if ac_fn_c_try_link "$LINENO"; then :
2565 rm -f core conftest.err conftest.$ac_objext \
2566 conftest$ac_exeext conftest.$ac_ext
2569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2570 $as_echo "$ac_res" >&6; }
2571 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2573 } # ac_fn_c_check_func
2575 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2576 # -------------------------------------------
2577 # Tests whether TYPE exists after having included INCLUDES, setting cache
2578 # variable VAR accordingly.
2579 ac_fn_c_check_type ()
2581 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2583 $as_echo_n "checking for $2... " >&6; }
2584 if eval \${$3+:} false; then :
2585 $as_echo_n "(cached) " >&6
2588 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2589 /* end confdefs.h. */
2600 if ac_fn_c_try_compile "$LINENO"; then :
2601 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2602 /* end confdefs.h. */
2613 if ac_fn_c_try_compile "$LINENO"; then :
2618 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2620 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2624 $as_echo "$ac_res" >&6; }
2625 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2627 } # ac_fn_c_check_type
2629 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2630 # --------------------------------------------
2631 # Tries to find the compile-time value of EXPR in a program that includes
2632 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2634 ac_fn_c_compute_int ()
2636 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2637 if test "$cross_compiling" = yes; then
2638 # Depending upon the size, compute the lo and hi bounds.
2639 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2640 /* end confdefs.h. */
2645 static int test_array [1 - 2 * !(($2) >= 0)];
2652 if ac_fn_c_try_compile "$LINENO"; then :
2655 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2656 /* end confdefs.h. */
2661 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2668 if ac_fn_c_try_compile "$LINENO"; then :
2669 ac_hi=$ac_mid; break
2671 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2672 if test $ac_lo -le $ac_mid; then
2676 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2678 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2681 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2682 /* end confdefs.h. */
2687 static int test_array [1 - 2 * !(($2) < 0)];
2694 if ac_fn_c_try_compile "$LINENO"; then :
2697 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2698 /* end confdefs.h. */
2703 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2710 if ac_fn_c_try_compile "$LINENO"; then :
2711 ac_lo=$ac_mid; break
2713 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2714 if test $ac_mid -le $ac_hi; then
2718 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2720 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2725 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2727 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2728 # Binary search between lo and hi bounds.
2729 while test "x$ac_lo" != "x$ac_hi"; do
2730 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2731 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2732 /* end confdefs.h. */
2737 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2744 if ac_fn_c_try_compile "$LINENO"; then :
2747 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2749 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2752 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2756 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2757 /* end confdefs.h. */
2759 static long int longval () { return $2; }
2760 static unsigned long int ulongval () { return $2; }
2767 FILE *f = fopen ("conftest.val", "w");
2772 long int i = longval ();
2775 fprintf (f, "%ld", i);
2779 unsigned long int i = ulongval ();
2782 fprintf (f, "%lu", i);
2784 /* Do not output a trailing newline, as this causes \r\n confusion
2785 on some platforms. */
2786 return ferror (f) || fclose (f) != 0;
2792 if ac_fn_c_try_run "$LINENO"; then :
2793 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2797 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2798 conftest.$ac_objext conftest.beam conftest.$ac_ext
2802 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2803 as_fn_set_status $ac_retval
2805 } # ac_fn_c_compute_int
2807 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2808 # ---------------------------------------------
2809 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2811 ac_fn_c_check_decl ()
2813 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2814 as_decl_name=`echo $2|sed 's/ *(.*//'`
2815 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2817 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2818 if eval \${$3+:} false; then :
2819 $as_echo_n "(cached) " >&6
2821 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2822 /* end confdefs.h. */
2827 #ifndef $as_decl_name
2829 (void) $as_decl_use;
2831 (void) $as_decl_name;
2839 if ac_fn_c_try_compile "$LINENO"; then :
2844 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2848 $as_echo "$ac_res" >&6; }
2849 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2851 } # ac_fn_c_check_decl
2852 cat >config.log <<_ACEOF
2853 This file contains any messages produced by compilers while
2854 running configure, to aid debugging if configure makes a mistake.
2856 It was created by libgsasl $as_me 1.8.0, which was
2857 generated by GNU Autoconf 2.68. Invocation command line was
2869 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2870 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2871 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2872 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2873 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2875 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2876 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2878 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2879 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2880 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2881 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2882 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2883 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2884 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2888 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2892 test -z "$as_dir" && as_dir=.
2893 $as_echo "PATH: $as_dir"
2909 # Keep a trace of the command line.
2910 # Strip out --no-create and --no-recursion so they do not pile up.
2911 # Strip out --silent because we don't want to record it for future runs.
2912 # Also quote any args containing shell meta-characters.
2913 # Make two passes to allow for proper duplicate-argument suppression.
2917 ac_must_keep_next=false
2923 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2924 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2925 | -silent | --silent | --silen | --sile | --sil)
2928 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2931 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2933 as_fn_append ac_configure_args1 " '$ac_arg'"
2934 if test $ac_must_keep_next = true; then
2935 ac_must_keep_next=false # Got value, back to normal.
2938 *=* | --config-cache | -C | -disable-* | --disable-* \
2939 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2940 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2941 | -with-* | --with-* | -without-* | --without-* | --x)
2942 case "$ac_configure_args0 " in
2943 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2946 -* ) ac_must_keep_next=true ;;
2949 as_fn_append ac_configure_args " '$ac_arg'"
2954 { ac_configure_args0=; unset ac_configure_args0;}
2955 { ac_configure_args1=; unset ac_configure_args1;}
2957 # When interrupted or exit'd, cleanup temporary files, and complete
2958 # config.log. We remove comments because anyway the quotes in there
2959 # would cause problems or look ugly.
2960 # WARNING: Use '\'' to represent an apostrophe within the trap.
2961 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2962 trap 'exit_status=$?
2963 # Save into config.log some information that might help in debugging.
2967 $as_echo "## ---------------- ##
2968 ## Cache variables. ##
2969 ## ---------------- ##"
2971 # The following way of writing the cache mishandles newlines in values,
2973 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2974 eval ac_val=\$$ac_var
2978 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2979 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2982 _ | IFS | as_nl) ;; #(
2983 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2984 *) { eval $ac_var=; unset $ac_var;} ;;
2989 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2990 *${as_nl}ac_space=\ *)
2992 "s/'\''/'\''\\\\'\'''\''/g;
2993 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2996 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
3003 $as_echo "## ----------------- ##
3004 ## Output variables. ##
3005 ## ----------------- ##"
3007 for ac_var in $ac_subst_vars
3009 eval ac_val=\$$ac_var
3011 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3013 $as_echo "$ac_var='\''$ac_val'\''"
3017 if test -n "$ac_subst_files"; then
3018 $as_echo "## ------------------- ##
3019 ## File substitutions. ##
3020 ## ------------------- ##"
3022 for ac_var in $ac_subst_files
3024 eval ac_val=\$$ac_var
3026 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3028 $as_echo "$ac_var='\''$ac_val'\''"
3033 if test -s confdefs.h; then
3034 $as_echo "## ----------- ##
3041 test "$ac_signal" != 0 &&
3042 $as_echo "$as_me: caught signal $ac_signal"
3043 $as_echo "$as_me: exit $exit_status"
3045 rm -f core *.core core.conftest.* &&
3046 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
3049 for ac_signal in 1 2 13 15; do
3050 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
3054 # confdefs.h avoids OS command line length limits that DEFS can exceed.
3055 rm -f -r conftest* confdefs.h
3057 $as_echo "/* confdefs.h */" > confdefs.h
3059 # Predefined preprocessor variables.
3061 cat >>confdefs.h <<_ACEOF
3062 #define PACKAGE_NAME "$PACKAGE_NAME"
3065 cat >>confdefs.h <<_ACEOF
3066 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
3069 cat >>confdefs.h <<_ACEOF
3070 #define PACKAGE_VERSION "$PACKAGE_VERSION"
3073 cat >>confdefs.h <<_ACEOF
3074 #define PACKAGE_STRING "$PACKAGE_STRING"
3077 cat >>confdefs.h <<_ACEOF
3078 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
3081 cat >>confdefs.h <<_ACEOF
3082 #define PACKAGE_URL "$PACKAGE_URL"
3086 # Let the site file select an alternate cache file if it wants to.
3087 # Prefer an explicitly selected file to automatically selected ones.
3090 if test -n "$CONFIG_SITE"; then
3091 # We do not want a PATH search for config.site.
3092 case $CONFIG_SITE in #((
3093 -*) ac_site_file1=./$CONFIG_SITE;;
3094 */*) ac_site_file1=$CONFIG_SITE;;
3095 *) ac_site_file1=./$CONFIG_SITE;;
3097 elif test "x$prefix" != xNONE; then
3098 ac_site_file1=$prefix/share/config.site
3099 ac_site_file2=$prefix/etc/config.site
3101 ac_site_file1=$ac_default_prefix/share/config.site
3102 ac_site_file2=$ac_default_prefix/etc/config.site
3104 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
3106 test "x$ac_site_file" = xNONE && continue
3107 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
3108 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
3109 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
3110 sed 's/^/| /' "$ac_site_file" >&5
3112 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3113 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3114 as_fn_error $? "failed to load site script $ac_site_file
3115 See \`config.log' for more details" "$LINENO" 5; }
3119 if test -r "$cache_file"; then
3120 # Some versions of bash will fail to source /dev/null (special files
3121 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
3122 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
3123 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
3124 $as_echo "$as_me: loading cache $cache_file" >&6;}
3126 [\\/]* | ?:[\\/]* ) . "$cache_file";;
3127 *) . "./$cache_file";;
3131 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
3132 $as_echo "$as_me: creating cache $cache_file" >&6;}
3136 gt_needs="$gt_needs "
3137 as_fn_append ac_func_list " getdelim"
3138 as_fn_append ac_header_list " sys/mman.h"
3139 as_fn_append ac_func_list " mprotect"
3140 as_fn_append ac_header_list " wchar.h"
3141 as_fn_append ac_header_list " stdint.h"
3142 as_fn_append ac_func_list " strndup"
3143 as_fn_append ac_header_list " unistd.h"
3144 as_fn_append ac_func_list " vasnprintf"
3145 as_fn_append ac_header_list " features.h"
3146 as_fn_append ac_func_list " snprintf"
3147 as_fn_append ac_func_list " _set_invalid_parameter_handler"
3148 as_fn_append ac_header_list " inttypes.h"
3149 # Check that the precious variables saved in the cache have kept the same
3151 ac_cache_corrupted=false
3152 for ac_var in $ac_precious_vars; do
3153 eval ac_old_set=\$ac_cv_env_${ac_var}_set
3154 eval ac_new_set=\$ac_env_${ac_var}_set
3155 eval ac_old_val=\$ac_cv_env_${ac_var}_value
3156 eval ac_new_val=\$ac_env_${ac_var}_value
3157 case $ac_old_set,$ac_new_set in
3159 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3160 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3161 ac_cache_corrupted=: ;;
3163 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3164 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3165 ac_cache_corrupted=: ;;
3168 if test "x$ac_old_val" != "x$ac_new_val"; then
3169 # differences in whitespace do not lead to failure.
3170 ac_old_val_w=`echo x $ac_old_val`
3171 ac_new_val_w=`echo x $ac_new_val`
3172 if test "$ac_old_val_w" != "$ac_new_val_w"; then
3173 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3174 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3175 ac_cache_corrupted=:
3177 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3178 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3179 eval $ac_var=\$ac_old_val
3181 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
3182 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
3183 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
3184 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
3187 # Pass precious variables to config.status.
3188 if test "$ac_new_set" = set; then
3190 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3191 *) ac_arg=$ac_var=$ac_new_val ;;
3193 case " $ac_configure_args " in
3194 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
3195 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3199 if $ac_cache_corrupted; then
3200 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3201 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3202 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3203 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3204 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3206 ## -------------------- ##
3207 ## Main body of script. ##
3208 ## -------------------- ##
3211 ac_cpp='$CPP $CPPFLAGS'
3212 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3213 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3214 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3218 for ac_dir in build-aux "$srcdir"/build-aux; do
3219 if test -f "$ac_dir/install-sh"; then
3221 ac_install_sh="$ac_aux_dir/install-sh -c"
3223 elif test -f "$ac_dir/install.sh"; then
3225 ac_install_sh="$ac_aux_dir/install.sh -c"
3227 elif test -f "$ac_dir/shtool"; then
3229 ac_install_sh="$ac_aux_dir/shtool install -c"
3233 if test -z "$ac_aux_dir"; then
3234 as_fn_error $? "cannot find install-sh, install.sh, or shtool in build-aux \"$srcdir\"/build-aux" "$LINENO" 5
3237 # These three variables are undocumented and unsupported,
3238 # and are intended to be withdrawn in a future Autoconf release.
3239 # They can cause serious problems if a builder's source tree is in a directory
3240 # whose full name contains unusual characters.
3241 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3242 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3243 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3248 # Library code modified: REVISION++
3249 # Interfaces changed/added/removed: CURRENT++ REVISION=0
3250 # Interfaces added: AGE++
3251 # Interfaces removed: AGE=0
3259 # Used when creating libgsasl-XX.def.
3260 DLL_VERSION=`expr ${LT_CURRENT} - ${LT_AGE}`
3263 am__api_version='1.11'
3265 # Find a good install program. We prefer a C program (faster),
3266 # so one script is as good as another. But avoid the broken or
3267 # incompatible versions:
3268 # SysV /etc/install, /usr/sbin/install
3269 # SunOS /usr/etc/install
3270 # IRIX /sbin/install
3272 # AmigaOS /C/install, which installs bootblocks on floppy discs
3273 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3274 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3275 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3276 # OS/2's system install, which has a completely different semantic
3277 # ./install, which can be erroneously created by make from ./install.sh.
3278 # Reject install programs that cannot install multiple files.
3279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3280 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3281 if test -z "$INSTALL"; then
3282 if ${ac_cv_path_install+:} false; then :
3283 $as_echo_n "(cached) " >&6
3285 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3289 test -z "$as_dir" && as_dir=.
3290 # Account for people who put trailing slashes in PATH elements.
3291 case $as_dir/ in #((
3292 ./ | .// | /[cC]/* | \
3293 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3294 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3297 # OSF1 and SCO ODT 3.0 have their own names for install.
3298 # Don't use installbsd from OSF since it installs stuff as root
3300 for ac_prog in ginstall scoinst install; do
3301 for ac_exec_ext in '' $ac_executable_extensions; do
3302 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3303 if test $ac_prog = install &&
3304 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3305 # AIX install. It has an incompatible calling convention.
3307 elif test $ac_prog = install &&
3308 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3309 # program-specific install script used by HP pwplus--don't use.
3312 rm -rf conftest.one conftest.two conftest.dir
3313 echo one > conftest.one
3314 echo two > conftest.two
3316 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3317 test -s conftest.one && test -s conftest.two &&
3318 test -s conftest.dir/conftest.one &&
3319 test -s conftest.dir/conftest.two
3321 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3334 rm -rf conftest.one conftest.two conftest.dir
3337 if test "${ac_cv_path_install+set}" = set; then
3338 INSTALL=$ac_cv_path_install
3340 # As a last resort, use the slow shell script. Don't cache a
3341 # value for INSTALL within a source directory, because that will
3342 # break other packages using the cache if that directory is
3343 # removed, or if the value is a relative name.
3344 INSTALL=$ac_install_sh
3347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3348 $as_echo "$INSTALL" >&6; }
3350 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3351 # It thinks the first close brace ends the variable substitution.
3352 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3354 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3356 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3359 $as_echo_n "checking whether build environment is sane... " >&6; }
3362 echo timestamp > conftest.file
3363 # Reject unsafe characters in $srcdir or the absolute working directory
3364 # name. Accept space and tab only in the latter.
3368 *[\\\"\#\$\&\'\`$am_lf]*)
3369 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
3372 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
3373 as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
3376 # Do `set' in a subshell so we don't clobber the current shell's
3377 # arguments. Must try -L first in case configure is actually a
3378 # symlink; some systems play weird games with the mod time of symlinks
3379 # (eg FreeBSD returns the mod time of the symlink's containing
3382 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3383 if test "$*" = "X"; then
3385 set X `ls -t "$srcdir/configure" conftest.file`
3388 if test "$*" != "X $srcdir/configure conftest.file" \
3389 && test "$*" != "X conftest.file $srcdir/configure"; then
3391 # If neither matched, then we have a broken ls. This can happen
3392 # if, for instance, CONFIG_SHELL is bash and it inherits a
3393 # broken ls alias from the environment. This has actually
3394 # happened. Such a system could not be considered "sane".
3395 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
3396 alias in your environment" "$LINENO" 5
3399 test "$2" = conftest.file
3405 as_fn_error $? "newly created file is older than distributed files!
3406 Check your system clock" "$LINENO" 5
3408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3409 $as_echo "yes" >&6; }
3410 test "$program_prefix" != NONE &&
3411 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3412 # Use a double $ so make ignores it.
3413 test "$program_suffix" != NONE &&
3414 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3415 # Double any \ or $.
3416 # By default was `s,x,x', remove it if useless.
3417 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3418 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3420 # expand $ac_aux_dir to an absolute path
3421 am_aux_dir=`cd $ac_aux_dir && pwd`
3423 if test x"${MISSING+set}" != xset; then
3426 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3428 MISSING="\${SHELL} $am_aux_dir/missing" ;;
3431 # Use eval to expand $SHELL
3432 if eval "$MISSING --run true"; then
3433 am_missing_run="$MISSING --run "
3436 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
3437 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
3440 if test x"${install_sh}" != xset; then
3443 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3445 install_sh="\${SHELL} $am_aux_dir/install-sh"
3449 # Installed binaries are usually stripped using `strip' when the user
3450 # run `make install-strip'. However `strip' might not be the right
3451 # tool to use in cross-compilation environments, therefore Automake
3452 # will honor the `STRIP' environment variable to overrule this program.
3453 if test "$cross_compiling" != no; then
3454 if test -n "$ac_tool_prefix"; then
3455 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3456 set dummy ${ac_tool_prefix}strip; ac_word=$2
3457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3458 $as_echo_n "checking for $ac_word... " >&6; }
3459 if ${ac_cv_prog_STRIP+:} false; then :
3460 $as_echo_n "(cached) " >&6
3462 if test -n "$STRIP"; then
3463 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3465 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3469 test -z "$as_dir" && as_dir=.
3470 for ac_exec_ext in '' $ac_executable_extensions; do
3471 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3472 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3473 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3482 STRIP=$ac_cv_prog_STRIP
3483 if test -n "$STRIP"; then
3484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3485 $as_echo "$STRIP" >&6; }
3487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3488 $as_echo "no" >&6; }
3493 if test -z "$ac_cv_prog_STRIP"; then
3495 # Extract the first word of "strip", so it can be a program name with args.
3496 set dummy strip; ac_word=$2
3497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3498 $as_echo_n "checking for $ac_word... " >&6; }
3499 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
3500 $as_echo_n "(cached) " >&6
3502 if test -n "$ac_ct_STRIP"; then
3503 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3505 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3509 test -z "$as_dir" && as_dir=.
3510 for ac_exec_ext in '' $ac_executable_extensions; do
3511 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3512 ac_cv_prog_ac_ct_STRIP="strip"
3513 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3522 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3523 if test -n "$ac_ct_STRIP"; then
3524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3525 $as_echo "$ac_ct_STRIP" >&6; }
3527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3528 $as_echo "no" >&6; }
3531 if test "x$ac_ct_STRIP" = x; then
3534 case $cross_compiling:$ac_tool_warned in
3536 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3537 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3538 ac_tool_warned=yes ;;
3543 STRIP="$ac_cv_prog_STRIP"
3547 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3550 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3551 if test -z "$MKDIR_P"; then
3552 if ${ac_cv_path_mkdir+:} false; then :
3553 $as_echo_n "(cached) " >&6
3555 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3556 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3559 test -z "$as_dir" && as_dir=.
3560 for ac_prog in mkdir gmkdir; do
3561 for ac_exec_ext in '' $ac_executable_extensions; do
3562 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
3563 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3564 'mkdir (GNU coreutils) '* | \
3565 'mkdir (coreutils) '* | \
3566 'mkdir (fileutils) '4.1*)
3567 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3577 test -d ./--version && rmdir ./--version
3578 if test "${ac_cv_path_mkdir+set}" = set; then
3579 MKDIR_P="$ac_cv_path_mkdir -p"
3581 # As a last resort, use the slow shell script. Don't cache a
3582 # value for MKDIR_P within a source directory, because that will
3583 # break other packages using the cache if that directory is
3584 # removed, or if the value is a relative name.
3585 MKDIR_P="$ac_install_sh -d"
3588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3589 $as_echo "$MKDIR_P" >&6; }
3594 [\\/$]* | ?:[\\/]*) ;;
3595 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3598 for ac_prog in gawk mawk nawk awk
3600 # Extract the first word of "$ac_prog", so it can be a program name with args.
3601 set dummy $ac_prog; ac_word=$2
3602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3603 $as_echo_n "checking for $ac_word... " >&6; }
3604 if ${ac_cv_prog_AWK+:} false; then :
3605 $as_echo_n "(cached) " >&6
3607 if test -n "$AWK"; then
3608 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3610 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3614 test -z "$as_dir" && as_dir=.
3615 for ac_exec_ext in '' $ac_executable_extensions; do
3616 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3617 ac_cv_prog_AWK="$ac_prog"
3618 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3628 if test -n "$AWK"; then
3629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3630 $as_echo "$AWK" >&6; }
3632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3633 $as_echo "no" >&6; }
3637 test -n "$AWK" && break
3640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3641 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3643 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3644 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3645 $as_echo_n "(cached) " >&6
3647 cat >conftest.make <<\_ACEOF
3650 @echo '@@@%%%=$(MAKE)=@@@%%%'
3652 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3653 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3655 eval ac_cv_prog_make_${ac_make}_set=yes;;
3657 eval ac_cv_prog_make_${ac_make}_set=no;;
3661 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3663 $as_echo "yes" >&6; }
3666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3667 $as_echo "no" >&6; }
3668 SET_MAKE="MAKE=${MAKE-make}"
3671 rm -rf .tst 2>/dev/null
3672 mkdir .tst 2>/dev/null
3673 if test -d .tst; then
3678 rmdir .tst 2>/dev/null
3680 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3681 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3682 # is not polluted with repeated "-I."
3683 am__isrc=' -I$(srcdir)'
3684 # test to see if srcdir already configured
3685 if test -f $srcdir/config.status; then
3686 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3690 # test whether we have cygpath
3691 if test -z "$CYGPATH_W"; then
3692 if (cygpath --version) >/dev/null 2>/dev/null; then
3693 CYGPATH_W='cygpath -w'
3700 # Define the identity of the package.
3705 cat >>confdefs.h <<_ACEOF
3706 #define PACKAGE "$PACKAGE"
3710 cat >>confdefs.h <<_ACEOF
3711 #define VERSION "$VERSION"
3714 # Some tools Automake needs.
3716 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3719 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3722 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3725 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3728 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3730 # We need awk for the "check" target. The system "awk" is bad on
3732 # Always define AMTAR for backward compatibility. Yes, it's still used
3733 # in the wild :-( We should find a proper way to deprecate it ...
3736 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3742 # Check whether --enable-silent-rules was given.
3743 if test "${enable_silent_rules+set}" = set; then :
3744 enableval=$enable_silent_rules;
3747 case $enable_silent_rules in
3748 yes) AM_DEFAULT_VERBOSITY=0;;
3749 no) AM_DEFAULT_VERBOSITY=1;;
3750 *) AM_DEFAULT_VERBOSITY=0;;
3752 am_make=${MAKE-make}
3753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3754 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3755 if ${am_cv_make_support_nested_variables+:} false; then :
3756 $as_echo_n "(cached) " >&6
3758 if $as_echo 'TRUE=$(BAR$(V))
3764 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3765 am_cv_make_support_nested_variables=yes
3767 am_cv_make_support_nested_variables=no
3770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3771 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3772 if test $am_cv_make_support_nested_variables = yes; then
3774 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3776 AM_V=$AM_DEFAULT_VERBOSITY
3777 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3781 ac_config_headers="$ac_config_headers config.h"
3784 # Checks for programs.
3786 ac_cpp='$CPP $CPPFLAGS'
3787 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3788 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3789 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3790 if test -n "$ac_tool_prefix"; then
3791 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3792 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3794 $as_echo_n "checking for $ac_word... " >&6; }
3795 if ${ac_cv_prog_CC+:} false; then :
3796 $as_echo_n "(cached) " >&6
3798 if test -n "$CC"; then
3799 ac_cv_prog_CC="$CC" # Let the user override the test.
3801 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3805 test -z "$as_dir" && as_dir=.
3806 for ac_exec_ext in '' $ac_executable_extensions; do
3807 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3808 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3809 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3819 if test -n "$CC"; then
3820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3821 $as_echo "$CC" >&6; }
3823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3824 $as_echo "no" >&6; }
3829 if test -z "$ac_cv_prog_CC"; then
3831 # Extract the first word of "gcc", so it can be a program name with args.
3832 set dummy gcc; ac_word=$2
3833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3834 $as_echo_n "checking for $ac_word... " >&6; }
3835 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3836 $as_echo_n "(cached) " >&6
3838 if test -n "$ac_ct_CC"; then
3839 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3841 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3845 test -z "$as_dir" && as_dir=.
3846 for ac_exec_ext in '' $ac_executable_extensions; do
3847 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3848 ac_cv_prog_ac_ct_CC="gcc"
3849 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3858 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3859 if test -n "$ac_ct_CC"; then
3860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3861 $as_echo "$ac_ct_CC" >&6; }
3863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3864 $as_echo "no" >&6; }
3867 if test "x$ac_ct_CC" = x; then
3870 case $cross_compiling:$ac_tool_warned in
3872 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3873 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3874 ac_tool_warned=yes ;;
3882 if test -z "$CC"; then
3883 if test -n "$ac_tool_prefix"; then
3884 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3885 set dummy ${ac_tool_prefix}cc; ac_word=$2
3886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3887 $as_echo_n "checking for $ac_word... " >&6; }
3888 if ${ac_cv_prog_CC+:} false; then :
3889 $as_echo_n "(cached) " >&6
3891 if test -n "$CC"; then
3892 ac_cv_prog_CC="$CC" # Let the user override the test.
3894 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3898 test -z "$as_dir" && as_dir=.
3899 for ac_exec_ext in '' $ac_executable_extensions; do
3900 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3901 ac_cv_prog_CC="${ac_tool_prefix}cc"
3902 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3912 if test -n "$CC"; then
3913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3914 $as_echo "$CC" >&6; }
3916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3917 $as_echo "no" >&6; }
3923 if test -z "$CC"; then
3924 # Extract the first word of "cc", so it can be a program name with args.
3925 set dummy cc; ac_word=$2
3926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3927 $as_echo_n "checking for $ac_word... " >&6; }
3928 if ${ac_cv_prog_CC+:} false; then :
3929 $as_echo_n "(cached) " >&6
3931 if test -n "$CC"; then
3932 ac_cv_prog_CC="$CC" # Let the user override the test.
3935 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3939 test -z "$as_dir" && as_dir=.
3940 for ac_exec_ext in '' $ac_executable_extensions; do
3941 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3942 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3943 ac_prog_rejected=yes
3947 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3954 if test $ac_prog_rejected = yes; then
3955 # We found a bogon in the path, so make sure we never use it.
3956 set dummy $ac_cv_prog_CC
3958 if test $# != 0; then
3959 # We chose a different compiler from the bogus one.
3960 # However, it has the same basename, so the bogon will be chosen
3961 # first if we set CC to just the basename; use the full file name.
3963 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3969 if test -n "$CC"; then
3970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3971 $as_echo "$CC" >&6; }
3973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3974 $as_echo "no" >&6; }
3979 if test -z "$CC"; then
3980 if test -n "$ac_tool_prefix"; then
3981 for ac_prog in cl.exe
3983 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3984 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3986 $as_echo_n "checking for $ac_word... " >&6; }
3987 if ${ac_cv_prog_CC+:} false; then :
3988 $as_echo_n "(cached) " >&6
3990 if test -n "$CC"; then
3991 ac_cv_prog_CC="$CC" # Let the user override the test.
3993 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3997 test -z "$as_dir" && as_dir=.
3998 for ac_exec_ext in '' $ac_executable_extensions; do
3999 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4000 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4001 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4011 if test -n "$CC"; then
4012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4013 $as_echo "$CC" >&6; }
4015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4016 $as_echo "no" >&6; }
4020 test -n "$CC" && break
4023 if test -z "$CC"; then
4025 for ac_prog in cl.exe
4027 # Extract the first word of "$ac_prog", so it can be a program name with args.
4028 set dummy $ac_prog; ac_word=$2
4029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4030 $as_echo_n "checking for $ac_word... " >&6; }
4031 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4032 $as_echo_n "(cached) " >&6
4034 if test -n "$ac_ct_CC"; then
4035 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4037 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4041 test -z "$as_dir" && as_dir=.
4042 for ac_exec_ext in '' $ac_executable_extensions; do
4043 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4044 ac_cv_prog_ac_ct_CC="$ac_prog"
4045 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4054 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4055 if test -n "$ac_ct_CC"; then
4056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4057 $as_echo "$ac_ct_CC" >&6; }
4059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4060 $as_echo "no" >&6; }
4064 test -n "$ac_ct_CC" && break
4067 if test "x$ac_ct_CC" = x; then
4070 case $cross_compiling:$ac_tool_warned in
4072 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4073 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4074 ac_tool_warned=yes ;;
4083 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4084 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4085 as_fn_error $? "no acceptable C compiler found in \$PATH
4086 See \`config.log' for more details" "$LINENO" 5; }
4088 # Provide some information about the compiler.
4089 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4092 for ac_option in --version -v -V -qversion; do
4093 { { ac_try="$ac_compiler $ac_option >&5"
4095 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4096 *) ac_try_echo=$ac_try;;
4098 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4099 $as_echo "$ac_try_echo"; } >&5
4100 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4102 if test -s conftest.err; then
4104 ... rest of stderr output deleted ...
4105 10q' conftest.err >conftest.er1
4106 cat conftest.er1 >&5
4108 rm -f conftest.er1 conftest.err
4109 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4110 test $ac_status = 0; }
4113 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4114 /* end confdefs.h. */
4124 ac_clean_files_save=$ac_clean_files
4125 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4126 # Try to create an executable without -o first, disregard a.out.
4127 # It will help us diagnose broken compilers, and finding out an intuition
4129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4130 $as_echo_n "checking whether the C compiler works... " >&6; }
4131 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4133 # The possible output files:
4134 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4137 for ac_file in $ac_files
4140 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4141 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4146 if { { ac_try="$ac_link_default"
4148 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4149 *) ac_try_echo=$ac_try;;
4151 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4152 $as_echo "$ac_try_echo"; } >&5
4153 (eval "$ac_link_default") 2>&5
4155 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4156 test $ac_status = 0; }; then :
4157 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4158 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4159 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4160 # so that the user can short-circuit this test for compilers unknown to
4162 for ac_file in $ac_files ''
4164 test -f "$ac_file" || continue
4166 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4169 # We found the default executable, but exeext='' is most
4173 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4175 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4177 # We set ac_cv_exeext here because the later test for it is not
4178 # safe: cross compilers may not add the suffix if given an `-o'
4179 # argument, so we may need to know it at that point already.
4180 # Even if this section looks crufty: it has the advantage of
4187 test "$ac_cv_exeext" = no && ac_cv_exeext=
4192 if test -z "$ac_file"; then :
4193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4194 $as_echo "no" >&6; }
4195 $as_echo "$as_me: failed program was:" >&5
4196 sed 's/^/| /' conftest.$ac_ext >&5
4198 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4199 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4200 as_fn_error 77 "C compiler cannot create executables
4201 See \`config.log' for more details" "$LINENO" 5; }
4203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4204 $as_echo "yes" >&6; }
4206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4207 $as_echo_n "checking for C compiler default output file name... " >&6; }
4208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4209 $as_echo "$ac_file" >&6; }
4210 ac_exeext=$ac_cv_exeext
4212 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4213 ac_clean_files=$ac_clean_files_save
4214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4215 $as_echo_n "checking for suffix of executables... " >&6; }
4216 if { { ac_try="$ac_link"
4218 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4219 *) ac_try_echo=$ac_try;;
4221 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4222 $as_echo "$ac_try_echo"; } >&5
4223 (eval "$ac_link") 2>&5
4225 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4226 test $ac_status = 0; }; then :
4227 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4228 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4229 # work properly (i.e., refer to `conftest.exe'), while it won't with
4231 for ac_file in conftest.exe conftest conftest.*; do
4232 test -f "$ac_file" || continue
4234 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4235 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4241 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4242 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4243 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4244 See \`config.log' for more details" "$LINENO" 5; }
4246 rm -f conftest conftest$ac_cv_exeext
4247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4248 $as_echo "$ac_cv_exeext" >&6; }
4250 rm -f conftest.$ac_ext
4251 EXEEXT=$ac_cv_exeext
4253 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4254 /* end confdefs.h. */
4259 FILE *f = fopen ("conftest.out", "w");
4260 return ferror (f) || fclose (f) != 0;
4266 ac_clean_files="$ac_clean_files conftest.out"
4267 # Check that the compiler produces executables we can run. If not, either
4268 # the compiler is broken, or we cross compile.
4269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4270 $as_echo_n "checking whether we are cross compiling... " >&6; }
4271 if test "$cross_compiling" != yes; then
4272 { { ac_try="$ac_link"
4274 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4275 *) ac_try_echo=$ac_try;;
4277 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4278 $as_echo "$ac_try_echo"; } >&5
4279 (eval "$ac_link") 2>&5
4281 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4282 test $ac_status = 0; }
4283 if { ac_try='./conftest$ac_cv_exeext'
4284 { { case "(($ac_try" in
4285 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4286 *) ac_try_echo=$ac_try;;
4288 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4289 $as_echo "$ac_try_echo"; } >&5
4290 (eval "$ac_try") 2>&5
4292 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4293 test $ac_status = 0; }; }; then
4296 if test "$cross_compiling" = maybe; then
4299 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4300 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4301 as_fn_error $? "cannot run C compiled programs.
4302 If you meant to cross compile, use \`--host'.
4303 See \`config.log' for more details" "$LINENO" 5; }
4307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4308 $as_echo "$cross_compiling" >&6; }
4310 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4311 ac_clean_files=$ac_clean_files_save
4312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4313 $as_echo_n "checking for suffix of object files... " >&6; }
4314 if ${ac_cv_objext+:} false; then :
4315 $as_echo_n "(cached) " >&6
4317 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4318 /* end confdefs.h. */
4328 rm -f conftest.o conftest.obj
4329 if { { ac_try="$ac_compile"
4331 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4332 *) ac_try_echo=$ac_try;;
4334 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4335 $as_echo "$ac_try_echo"; } >&5
4336 (eval "$ac_compile") 2>&5
4338 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4339 test $ac_status = 0; }; then :
4340 for ac_file in conftest.o conftest.obj conftest.*; do
4341 test -f "$ac_file" || continue;
4343 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4344 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4349 $as_echo "$as_me: failed program was:" >&5
4350 sed 's/^/| /' conftest.$ac_ext >&5
4352 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4353 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4354 as_fn_error $? "cannot compute suffix of object files: cannot compile
4355 See \`config.log' for more details" "$LINENO" 5; }
4357 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4360 $as_echo "$ac_cv_objext" >&6; }
4361 OBJEXT=$ac_cv_objext
4363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4364 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4365 if ${ac_cv_c_compiler_gnu+:} false; then :
4366 $as_echo_n "(cached) " >&6
4368 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4369 /* end confdefs.h. */
4382 if ac_fn_c_try_compile "$LINENO"; then :
4387 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4388 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4392 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4393 if test $ac_compiler_gnu = yes; then
4398 ac_test_CFLAGS=${CFLAGS+set}
4399 ac_save_CFLAGS=$CFLAGS
4400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4401 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4402 if ${ac_cv_prog_cc_g+:} false; then :
4403 $as_echo_n "(cached) " >&6
4405 ac_save_c_werror_flag=$ac_c_werror_flag
4406 ac_c_werror_flag=yes
4409 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4410 /* end confdefs.h. */
4420 if ac_fn_c_try_compile "$LINENO"; then :
4424 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4425 /* end confdefs.h. */
4435 if ac_fn_c_try_compile "$LINENO"; then :
4438 ac_c_werror_flag=$ac_save_c_werror_flag
4440 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4441 /* end confdefs.h. */
4451 if ac_fn_c_try_compile "$LINENO"; then :
4454 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4456 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4458 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4459 ac_c_werror_flag=$ac_save_c_werror_flag
4461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4462 $as_echo "$ac_cv_prog_cc_g" >&6; }
4463 if test "$ac_test_CFLAGS" = set; then
4464 CFLAGS=$ac_save_CFLAGS
4465 elif test $ac_cv_prog_cc_g = yes; then
4466 if test "$GCC" = yes; then
4472 if test "$GCC" = yes; then
4478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4479 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4480 if ${ac_cv_prog_cc_c89+:} false; then :
4481 $as_echo_n "(cached) " >&6
4483 ac_cv_prog_cc_c89=no
4485 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4486 /* end confdefs.h. */
4489 #include <sys/types.h>
4490 #include <sys/stat.h>
4491 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4492 struct buf { int x; };
4493 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4494 static char *e (p, i)
4500 static char *f (char * (*g) (char **, int), char **p, ...)
4505 s = g (p, va_arg (v,int));
4510 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4511 function prototypes and stuff, but not '\xHH' hex character constants.
4512 These don't provoke an error unfortunately, instead are silently treated
4513 as 'x'. The following induces an error, until -std is added to get
4514 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4515 array size at least. It's necessary to write '\x00'==0 to get something
4516 that's true only with -std. */
4517 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4519 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4520 inside strings and character constants. */
4522 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4524 int test (int i, double x);
4525 struct s1 {int (*f) (int a);};
4526 struct s2 {int (*f) (double a);};
4527 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4533 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4538 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4539 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4541 CC="$ac_save_CC $ac_arg"
4542 if ac_fn_c_try_compile "$LINENO"; then :
4543 ac_cv_prog_cc_c89=$ac_arg
4545 rm -f core conftest.err conftest.$ac_objext
4546 test "x$ac_cv_prog_cc_c89" != "xno" && break
4548 rm -f conftest.$ac_ext
4553 case "x$ac_cv_prog_cc_c89" in
4555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4556 $as_echo "none needed" >&6; } ;;
4558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4559 $as_echo "unsupported" >&6; } ;;
4561 CC="$CC $ac_cv_prog_cc_c89"
4562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4563 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4565 if test "x$ac_cv_prog_cc_c89" != xno; then :
4570 ac_cpp='$CPP $CPPFLAGS'
4571 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4572 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4573 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4574 DEPDIR="${am__leading_dot}deps"
4576 ac_config_commands="$ac_config_commands depfiles"
4579 am_make=${MAKE-make}
4580 cat > confinc << 'END'
4582 @echo this is the am__doit target
4585 # If we don't find an include directive, just comment out the code.
4586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4587 $as_echo_n "checking for style of include used by $am_make... " >&6; }
4591 # First try GNU make style include.
4592 echo "include confinc" > confmf
4593 # Ignore all kinds of additional output from `make'.
4594 case `$am_make -s -f confmf 2> /dev/null` in #(
4595 *the\ am__doit\ target*)
4601 # Now try BSD make style include.
4602 if test "$am__include" = "#"; then
4603 echo '.include "confinc"' > confmf
4604 case `$am_make -s -f confmf 2> /dev/null` in #(
4605 *the\ am__doit\ target*)
4606 am__include=.include
4614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4615 $as_echo "$_am_result" >&6; }
4616 rm -f confinc confmf
4618 # Check whether --enable-dependency-tracking was given.
4619 if test "${enable_dependency_tracking+set}" = set; then :
4620 enableval=$enable_dependency_tracking;
4623 if test "x$enable_dependency_tracking" != xno; then
4624 am_depcomp="$ac_aux_dir/depcomp"
4628 if test "x$enable_dependency_tracking" != xno; then
4638 depcc="$CC" am_compiler_list=
4640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4641 $as_echo_n "checking dependency style of $depcc... " >&6; }
4642 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4643 $as_echo_n "(cached) " >&6
4645 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4646 # We make a subdir and do the tests there. Otherwise we can end up
4647 # making bogus files that we don't know about and never remove. For
4648 # instance it was reported that on HP-UX the gcc test will end up
4649 # making a dummy file named `D' -- because `-MD' means `put the output
4653 # Copy depcomp to subdir because otherwise we won't find it if we're
4654 # using a relative directory.
4655 cp "$am_depcomp" conftest.dir
4657 # We will build objects and dependencies in a subdirectory because
4658 # it helps to detect inapplicable dependency modes. For instance
4659 # both Tru64's cc and ICC support -MD to output dependencies as a
4660 # side effect of compilation, but ICC will put the dependencies in
4661 # the current directory while Tru64 will put them in the object
4665 am_cv_CC_dependencies_compiler_type=none
4666 if test "$am_compiler_list" = ""; then
4667 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4670 case " $depcc " in #(
4671 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4674 for depmode in $am_compiler_list; do
4675 # Setup a source with many dependencies, because some compilers
4676 # like to wrap large dependency lists on column 80 (with \), and
4677 # we should not choose a depcomp mode which is confused by this.
4679 # We need to recreate these files for each test, as the compiler may
4680 # overwrite some of them when testing with obscure command lines.
4681 # This happens at least with the AIX C compiler.
4683 for i in 1 2 3 4 5 6; do
4684 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4685 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4686 # Solaris 8's {/usr,}/bin/sh.
4687 touch sub/conftst$i.h
4689 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4691 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4692 # mode. It turns out that the SunPro C++ compiler does not properly
4693 # handle `-M -o', and we need to detect this. Also, some Intel
4694 # versions had trouble with output in subdirs
4695 am__obj=sub/conftest.${OBJEXT-o}
4696 am__minus_obj="-o $am__obj"
4699 # This depmode causes a compiler race in universal mode.
4700 test "$am__universal" = false || continue
4703 # after this tag, mechanisms are not by side-effect, so they'll
4704 # only be used when explicitly requested
4705 if test "x$enable_dependency_tracking" = xyes; then
4711 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4712 # This compiler won't grok `-c -o', but also, the minuso test has
4713 # not run yet. These depmodes are late enough in the game, and
4714 # so weak that their functioning should not be impacted.
4715 am__obj=conftest.${OBJEXT-o}
4720 if depmode=$depmode \
4721 source=sub/conftest.c object=$am__obj \
4722 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4723 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4724 >/dev/null 2>conftest.err &&
4725 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4726 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4727 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4728 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4729 # icc doesn't choke on unknown options, it will just issue warnings
4730 # or remarks (even with -Werror). So we grep stderr for any message
4731 # that says an option was ignored or not supported.
4732 # When given -MP, icc 7.0 and 7.1 complain thusly:
4733 # icc: Command line warning: ignoring option '-M'; no argument required
4734 # The diagnosis changed in icc 8.0:
4735 # icc: Command line remark: option '-MP' not supported
4736 if (grep 'ignoring option' conftest.err ||
4737 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4738 am_cv_CC_dependencies_compiler_type=$depmode
4747 am_cv_CC_dependencies_compiler_type=none
4751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4752 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4753 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4756 test "x$enable_dependency_tracking" != xno \
4757 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4759 am__fastdepCC_FALSE='#'
4761 am__fastdepCC_TRUE='#'
4762 am__fastdepCC_FALSE=
4768 ac_cpp='$CPP $CPPFLAGS'
4769 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4770 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4771 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4773 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4774 # On Suns, sometimes $CPP names a directory.
4775 if test -n "$CPP" && test -d "$CPP"; then
4778 if test -z "$CPP"; then
4779 if ${ac_cv_prog_CPP+:} false; then :
4780 $as_echo_n "(cached) " >&6
4782 # Double quotes because CPP needs to be expanded
4783 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4786 for ac_c_preproc_warn_flag in '' yes
4788 # Use a header file that comes with gcc, so configuring glibc
4789 # with a fresh cross-compiler works.
4790 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4791 # <limits.h> exists even on freestanding compilers.
4792 # On the NeXT, cc -E runs the code through the compiler's parser,
4793 # not just through cpp. "Syntax error" is here to catch this case.
4794 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4795 /* end confdefs.h. */
4797 # include <limits.h>
4799 # include <assert.h>
4803 if ac_fn_c_try_cpp "$LINENO"; then :
4806 # Broken: fails on valid input.
4809 rm -f conftest.err conftest.i conftest.$ac_ext
4811 # OK, works on sane cases. Now check whether nonexistent headers
4812 # can be detected and how.
4813 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4814 /* end confdefs.h. */
4815 #include <ac_nonexistent.h>
4817 if ac_fn_c_try_cpp "$LINENO"; then :
4818 # Broken: success on invalid input.
4821 # Passes both tests.
4825 rm -f conftest.err conftest.i conftest.$ac_ext
4828 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4829 rm -f conftest.i conftest.err conftest.$ac_ext
4830 if $ac_preproc_ok; then :
4842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4843 $as_echo "$CPP" >&6; }
4845 for ac_c_preproc_warn_flag in '' yes
4847 # Use a header file that comes with gcc, so configuring glibc
4848 # with a fresh cross-compiler works.
4849 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4850 # <limits.h> exists even on freestanding compilers.
4851 # On the NeXT, cc -E runs the code through the compiler's parser,
4852 # not just through cpp. "Syntax error" is here to catch this case.
4853 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4854 /* end confdefs.h. */
4856 # include <limits.h>
4858 # include <assert.h>
4862 if ac_fn_c_try_cpp "$LINENO"; then :
4865 # Broken: fails on valid input.
4868 rm -f conftest.err conftest.i conftest.$ac_ext
4870 # OK, works on sane cases. Now check whether nonexistent headers
4871 # can be detected and how.
4872 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4873 /* end confdefs.h. */
4874 #include <ac_nonexistent.h>
4876 if ac_fn_c_try_cpp "$LINENO"; then :
4877 # Broken: success on invalid input.
4880 # Passes both tests.
4884 rm -f conftest.err conftest.i conftest.$ac_ext
4887 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4888 rm -f conftest.i conftest.err conftest.$ac_ext
4889 if $ac_preproc_ok; then :
4892 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4893 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4894 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4895 See \`config.log' for more details" "$LINENO" 5; }
4899 ac_cpp='$CPP $CPPFLAGS'
4900 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4901 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4902 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4906 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4907 if ${ac_cv_path_GREP+:} false; then :
4908 $as_echo_n "(cached) " >&6
4910 if test -z "$GREP"; then
4911 ac_path_GREP_found=false
4912 # Loop through the user's path and test for each of PROGNAME-LIST
4913 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4914 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4917 test -z "$as_dir" && as_dir=.
4918 for ac_prog in grep ggrep; do
4919 for ac_exec_ext in '' $ac_executable_extensions; do
4920 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4921 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4922 # Check for GNU ac_path_GREP and select it if it is found.
4923 # Check for GNU $ac_path_GREP
4924 case `"$ac_path_GREP" --version 2>&1` in
4926 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4929 $as_echo_n 0123456789 >"conftest.in"
4932 cat "conftest.in" "conftest.in" >"conftest.tmp"
4933 mv "conftest.tmp" "conftest.in"
4934 cp "conftest.in" "conftest.nl"
4935 $as_echo 'GREP' >> "conftest.nl"
4936 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4937 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4938 as_fn_arith $ac_count + 1 && ac_count=$as_val
4939 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4940 # Best one so far, save it but keep looking for a better one
4941 ac_cv_path_GREP="$ac_path_GREP"
4942 ac_path_GREP_max=$ac_count
4944 # 10*(2^10) chars as input seems more than enough
4945 test $ac_count -gt 10 && break
4947 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4950 $ac_path_GREP_found && break 3
4955 if test -z "$ac_cv_path_GREP"; then
4956 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4959 ac_cv_path_GREP=$GREP
4963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4964 $as_echo "$ac_cv_path_GREP" >&6; }
4965 GREP="$ac_cv_path_GREP"
4968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4969 $as_echo_n "checking for egrep... " >&6; }
4970 if ${ac_cv_path_EGREP+:} false; then :
4971 $as_echo_n "(cached) " >&6
4973 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4974 then ac_cv_path_EGREP="$GREP -E"
4976 if test -z "$EGREP"; then
4977 ac_path_EGREP_found=false
4978 # Loop through the user's path and test for each of PROGNAME-LIST
4979 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4980 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4983 test -z "$as_dir" && as_dir=.
4984 for ac_prog in egrep; do
4985 for ac_exec_ext in '' $ac_executable_extensions; do
4986 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4987 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4988 # Check for GNU ac_path_EGREP and select it if it is found.
4989 # Check for GNU $ac_path_EGREP
4990 case `"$ac_path_EGREP" --version 2>&1` in
4992 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4995 $as_echo_n 0123456789 >"conftest.in"
4998 cat "conftest.in" "conftest.in" >"conftest.tmp"
4999 mv "conftest.tmp" "conftest.in"
5000 cp "conftest.in" "conftest.nl"
5001 $as_echo 'EGREP' >> "conftest.nl"
5002 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5003 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5004 as_fn_arith $ac_count + 1 && ac_count=$as_val
5005 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5006 # Best one so far, save it but keep looking for a better one
5007 ac_cv_path_EGREP="$ac_path_EGREP"
5008 ac_path_EGREP_max=$ac_count
5010 # 10*(2^10) chars as input seems more than enough
5011 test $ac_count -gt 10 && break
5013 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5016 $ac_path_EGREP_found && break 3
5021 if test -z "$ac_cv_path_EGREP"; then
5022 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5025 ac_cv_path_EGREP=$EGREP
5030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5031 $as_echo "$ac_cv_path_EGREP" >&6; }
5032 EGREP="$ac_cv_path_EGREP"
5037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Minix Amsterdam compiler" >&5
5038 $as_echo_n "checking for Minix Amsterdam compiler... " >&6; }
5039 if ${gl_cv_c_amsterdam_compiler+:} false; then :
5040 $as_echo_n "(cached) " >&6
5043 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5044 /* end confdefs.h. */
5051 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5052 $EGREP "Amsterdam" >/dev/null 2>&1; then :
5053 gl_cv_c_amsterdam_compiler=yes
5055 gl_cv_c_amsterdam_compiler=no
5061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_c_amsterdam_compiler" >&5
5062 $as_echo "$gl_cv_c_amsterdam_compiler" >&6; }
5063 if test -z "$AR"; then
5064 if test $gl_cv_c_amsterdam_compiler = yes; then
5066 if test -z "$ARFLAGS"; then
5070 if test -n "$ac_tool_prefix"; then
5071 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5072 set dummy ${ac_tool_prefix}ar; ac_word=$2
5073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5074 $as_echo_n "checking for $ac_word... " >&6; }
5075 if ${ac_cv_prog_AR+:} false; then :
5076 $as_echo_n "(cached) " >&6
5078 if test -n "$AR"; then
5079 ac_cv_prog_AR="$AR" # Let the user override the test.
5081 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5085 test -z "$as_dir" && as_dir=.
5086 for ac_exec_ext in '' $ac_executable_extensions; do
5087 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5088 ac_cv_prog_AR="${ac_tool_prefix}ar"
5089 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5099 if test -n "$AR"; then
5100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5101 $as_echo "$AR" >&6; }
5103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5104 $as_echo "no" >&6; }
5109 if test -z "$ac_cv_prog_AR"; then
5111 # Extract the first word of "ar", so it can be a program name with args.
5112 set dummy ar; ac_word=$2
5113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5114 $as_echo_n "checking for $ac_word... " >&6; }
5115 if ${ac_cv_prog_ac_ct_AR+:} false; then :
5116 $as_echo_n "(cached) " >&6
5118 if test -n "$ac_ct_AR"; then
5119 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5121 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5125 test -z "$as_dir" && as_dir=.
5126 for ac_exec_ext in '' $ac_executable_extensions; do
5127 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5128 ac_cv_prog_ac_ct_AR="ar"
5129 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5138 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5139 if test -n "$ac_ct_AR"; then
5140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5141 $as_echo "$ac_ct_AR" >&6; }
5143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5144 $as_echo "no" >&6; }
5147 if test "x$ac_ct_AR" = x; then
5150 case $cross_compiling:$ac_tool_warned in
5152 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5153 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5154 ac_tool_warned=yes ;;
5162 if test -z "$ARFLAGS"; then
5167 if test -z "$ARFLAGS"; then
5173 if test -z "$RANLIB"; then
5174 if test $gl_cv_c_amsterdam_compiler = yes; then
5177 if test -n "$ac_tool_prefix"; then
5178 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5179 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5181 $as_echo_n "checking for $ac_word... " >&6; }
5182 if ${ac_cv_prog_RANLIB+:} false; then :
5183 $as_echo_n "(cached) " >&6
5185 if test -n "$RANLIB"; then
5186 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5188 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5192 test -z "$as_dir" && as_dir=.
5193 for ac_exec_ext in '' $ac_executable_extensions; do
5194 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5195 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5196 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5205 RANLIB=$ac_cv_prog_RANLIB
5206 if test -n "$RANLIB"; then
5207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5208 $as_echo "$RANLIB" >&6; }
5210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5211 $as_echo "no" >&6; }
5216 if test -z "$ac_cv_prog_RANLIB"; then
5217 ac_ct_RANLIB=$RANLIB
5218 # Extract the first word of "ranlib", so it can be a program name with args.
5219 set dummy ranlib; ac_word=$2
5220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5221 $as_echo_n "checking for $ac_word... " >&6; }
5222 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
5223 $as_echo_n "(cached) " >&6
5225 if test -n "$ac_ct_RANLIB"; then
5226 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5228 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5232 test -z "$as_dir" && as_dir=.
5233 for ac_exec_ext in '' $ac_executable_extensions; do
5234 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5235 ac_cv_prog_ac_ct_RANLIB="ranlib"
5236 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5245 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5246 if test -n "$ac_ct_RANLIB"; then
5247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5248 $as_echo "$ac_ct_RANLIB" >&6; }
5250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5251 $as_echo "no" >&6; }
5254 if test "x$ac_ct_RANLIB" = x; then
5257 case $cross_compiling:$ac_tool_warned in
5259 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5260 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5261 ac_tool_warned=yes ;;
5263 RANLIB=$ac_ct_RANLIB
5266 RANLIB="$ac_cv_prog_RANLIB"
5273 # Make sure we can run config.sub.
5274 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
5275 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
5277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
5278 $as_echo_n "checking build system type... " >&6; }
5279 if ${ac_cv_build+:} false; then :
5280 $as_echo_n "(cached) " >&6
5282 ac_build_alias=$build_alias
5283 test "x$ac_build_alias" = x &&
5284 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
5285 test "x$ac_build_alias" = x &&
5286 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
5287 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
5288 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
5291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
5292 $as_echo "$ac_cv_build" >&6; }
5293 case $ac_cv_build in
5295 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
5298 ac_save_IFS=$IFS; IFS='-'
5304 # Remember, the first character of IFS is used to create $*,
5305 # except with old shells:
5308 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
5311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
5312 $as_echo_n "checking host system type... " >&6; }
5313 if ${ac_cv_host+:} false; then :
5314 $as_echo_n "(cached) " >&6
5316 if test "x$host_alias" = x; then
5317 ac_cv_host=$ac_cv_build
5319 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
5320 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
5324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
5325 $as_echo "$ac_cv_host" >&6; }
5328 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
5331 ac_save_IFS=$IFS; IFS='-'
5337 # Remember, the first character of IFS is used to create $*,
5338 # except with old shells:
5341 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
5344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5345 $as_echo_n "checking for ANSI C header files... " >&6; }
5346 if ${ac_cv_header_stdc+:} false; then :
5347 $as_echo_n "(cached) " >&6
5349 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5350 /* end confdefs.h. */
5364 if ac_fn_c_try_compile "$LINENO"; then :
5365 ac_cv_header_stdc=yes
5367 ac_cv_header_stdc=no
5369 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5371 if test $ac_cv_header_stdc = yes; then
5372 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5373 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5374 /* end confdefs.h. */
5378 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5379 $EGREP "memchr" >/dev/null 2>&1; then :
5382 ac_cv_header_stdc=no
5388 if test $ac_cv_header_stdc = yes; then
5389 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5390 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5391 /* end confdefs.h. */
5395 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5396 $EGREP "free" >/dev/null 2>&1; then :
5399 ac_cv_header_stdc=no
5405 if test $ac_cv_header_stdc = yes; then
5406 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5407 if test "$cross_compiling" = yes; then :
5410 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5411 /* end confdefs.h. */
5414 #if ((' ' & 0x0FF) == 0x020)
5415 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5416 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5418 # define ISLOWER(c) \
5419 (('a' <= (c) && (c) <= 'i') \
5420 || ('j' <= (c) && (c) <= 'r') \
5421 || ('s' <= (c) && (c) <= 'z'))
5422 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5425 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5430 for (i = 0; i < 256; i++)
5431 if (XOR (islower (i), ISLOWER (i))
5432 || toupper (i) != TOUPPER (i))
5437 if ac_fn_c_try_run "$LINENO"; then :
5440 ac_cv_header_stdc=no
5442 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5443 conftest.$ac_objext conftest.beam conftest.$ac_ext
5448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5449 $as_echo "$ac_cv_header_stdc" >&6; }
5450 if test $ac_cv_header_stdc = yes; then
5452 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5456 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5457 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5458 inttypes.h stdint.h unistd.h
5460 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5461 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5463 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5464 cat >>confdefs.h <<_ACEOF
5465 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5476 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
5477 if test "x$ac_cv_header_minix_config_h" = xyes; then :
5484 if test "$MINIX" = yes; then
5486 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5489 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5492 $as_echo "#define _MINIX 1" >>confdefs.h
5499 $as_echo "#define _XOPEN_SOURCE 500" >>confdefs.h
5505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5506 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5507 if ${ac_cv_safe_to_define___extensions__+:} false; then :
5508 $as_echo_n "(cached) " >&6
5510 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5511 /* end confdefs.h. */
5513 # define __EXTENSIONS__ 1
5514 $ac_includes_default
5523 if ac_fn_c_try_compile "$LINENO"; then :
5524 ac_cv_safe_to_define___extensions__=yes
5526 ac_cv_safe_to_define___extensions__=no
5528 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5531 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5532 test $ac_cv_safe_to_define___extensions__ = yes &&
5533 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5535 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5537 $as_echo "#define _DARWIN_C_SOURCE 1" >>confdefs.h
5539 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5541 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5543 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5555 # IEEE behaviour is the default on all CPUs except Alpha and SH
5556 # (according to the test results of Bruno Haible's ieeefp/fenv_default.m4
5557 # and the GCC 4.1.2 manual).
5560 # On Alpha systems, a compiler option provides the behaviour.
5561 # See the ieee(3) manual page, also available at
5562 # <http://h30097.www3.hp.com/docs/base_doc/DOCUMENTATION/V51B_HTML/MAN/MAN3/0600____.HTM>
5563 if test -n "$GCC"; then
5564 # GCC has the option -mieee.
5565 # For full IEEE compliance (rarely needed), use option -mieee-with-inexact.
5566 CPPFLAGS="$CPPFLAGS -mieee"
5568 # Compaq (ex-DEC) C has the option -ieee, equivalent to -ieee_with_no_inexact.
5569 # For full IEEE compliance (rarely needed), use option -ieee_with_inexact.
5570 CPPFLAGS="$CPPFLAGS -ieee"
5574 if test -n "$GCC"; then
5575 # GCC has the option -mieee.
5576 CPPFLAGS="$CPPFLAGS -mieee"
5583 # Code from module alloca-opt:
5584 # Code from module alloca-opt-tests:
5585 # Code from module base64:
5586 # Code from module base64-tests:
5587 # Code from module c-ctype:
5588 # Code from module c-ctype-tests:
5589 # Code from module crypto/gc:
5590 # Code from module crypto/gc-hmac-md5:
5591 # Code from module crypto/gc-hmac-md5-tests:
5592 # Code from module crypto/gc-hmac-sha1:
5593 # Code from module crypto/gc-hmac-sha1-tests:
5594 # Code from module crypto/gc-md5:
5595 # Code from module crypto/gc-md5-tests:
5596 # Code from module crypto/gc-pbkdf2-sha1:
5597 # Code from module crypto/gc-pbkdf2-sha1-tests:
5598 # Code from module crypto/gc-random:
5599 # Code from module crypto/gc-sha1:
5600 # Code from module crypto/gc-sha1-tests:
5601 # Code from module crypto/gc-tests:
5602 # Code from module crypto/hmac-md5:
5603 # Code from module crypto/hmac-md5-tests:
5604 # Code from module crypto/hmac-sha1:
5605 # Code from module crypto/hmac-sha1-tests:
5606 # Code from module crypto/md5:
5607 # Code from module crypto/md5-tests:
5608 # Code from module crypto/sha1:
5609 # Code from module crypto/sha1-tests:
5610 # Code from module errno:
5611 # Code from module errno-tests:
5612 # Code from module extensions:
5614 # Code from module fdopen:
5615 # Code from module fdopen-tests:
5616 # Code from module fgetc-tests:
5617 # Code from module float:
5618 # Code from module float-tests:
5619 # Code from module fpieee:
5621 # Code from module fpucw:
5622 # Code from module fputc-tests:
5623 # Code from module fread-tests:
5624 # Code from module fwrite-tests:
5625 # Code from module getdelim:
5626 # Code from module getdelim-tests:
5627 # Code from module getline:
5628 # Code from module getline-tests:
5629 # Code from module getpagesize:
5630 # Code from module gettext:
5631 # Code from module gettext-h:
5632 # Code from module gnumakefile:
5633 # Code from module gss-extra:
5634 # Code from module havelib:
5635 # Code from module include_next:
5636 # Code from module intprops:
5637 # Code from module intprops-tests:
5638 # Code from module inttypes:
5639 # Code from module inttypes-incomplete:
5640 # Code from module inttypes-tests:
5641 # Code from module lib-msvc-compat:
5642 # Code from module lib-symbol-versions:
5643 # Code from module lib-symbol-visibility:
5644 # Code from module maintainer-makefile:
5645 # Code from module memchr:
5646 # Code from module memchr-tests:
5647 # Code from module memmem:
5648 # Code from module memmem-simple:
5649 # Code from module memmem-tests:
5650 # Code from module memxor:
5651 # Code from module minmax:
5652 # Code from module msvc-inval:
5653 # Code from module multiarch:
5654 # Code from module realloc-posix:
5655 # Code from module size_max:
5656 # Code from module snippet/_Noreturn:
5657 # Code from module snippet/arg-nonnull:
5658 # Code from module snippet/c++defs:
5659 # Code from module snippet/warn-on-use:
5660 # Code from module ssize_t:
5661 # Code from module stdalign:
5662 # Code from module stdalign-tests:
5663 # Code from module stdbool:
5664 # Code from module stdbool-tests:
5665 # Code from module stddef:
5666 # Code from module stddef-tests:
5667 # Code from module stdint:
5668 # Code from module stdint-tests:
5669 # Code from module stdio:
5670 # Code from module stdio-tests:
5671 # Code from module stdlib:
5672 # Code from module stdlib-tests:
5673 # Code from module string:
5674 # Code from module string-tests:
5675 # Code from module strndup:
5676 # Code from module strnlen:
5677 # Code from module strnlen-tests:
5678 # Code from module strverscmp:
5679 # Code from module strverscmp-tests:
5680 # Code from module sys_types:
5681 # Code from module sys_types-tests:
5682 # Code from module test-framework-sh:
5683 # Code from module test-framework-sh-tests:
5684 # Code from module unistd:
5685 # Code from module unistd-tests:
5686 # Code from module useless-if-before-free:
5687 # Code from module vasnprintf:
5688 # Code from module vasnprintf-tests:
5689 # Code from module vasprintf:
5690 # Code from module vasprintf-tests:
5691 # Code from module vc-list-files:
5692 # Code from module verify:
5693 # Code from module verify-tests:
5694 # Code from module wchar:
5695 # Code from module wchar-tests:
5696 # Code from module xsize:
5698 enable_win32_dll=yes
5701 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
5702 if test -n "$ac_tool_prefix"; then
5703 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
5704 set dummy ${ac_tool_prefix}as; ac_word=$2
5705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5706 $as_echo_n "checking for $ac_word... " >&6; }
5707 if ${ac_cv_prog_AS+:} false; then :
5708 $as_echo_n "(cached) " >&6
5710 if test -n "$AS"; then
5711 ac_cv_prog_AS="$AS" # Let the user override the test.
5713 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5717 test -z "$as_dir" && as_dir=.
5718 for ac_exec_ext in '' $ac_executable_extensions; do
5719 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5720 ac_cv_prog_AS="${ac_tool_prefix}as"
5721 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5731 if test -n "$AS"; then
5732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
5733 $as_echo "$AS" >&6; }
5735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5736 $as_echo "no" >&6; }
5741 if test -z "$ac_cv_prog_AS"; then
5743 # Extract the first word of "as", so it can be a program name with args.
5744 set dummy as; ac_word=$2
5745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5746 $as_echo_n "checking for $ac_word... " >&6; }
5747 if ${ac_cv_prog_ac_ct_AS+:} false; then :
5748 $as_echo_n "(cached) " >&6
5750 if test -n "$ac_ct_AS"; then
5751 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
5753 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5757 test -z "$as_dir" && as_dir=.
5758 for ac_exec_ext in '' $ac_executable_extensions; do
5759 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5760 ac_cv_prog_ac_ct_AS="as"
5761 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5770 ac_ct_AS=$ac_cv_prog_ac_ct_AS
5771 if test -n "$ac_ct_AS"; then
5772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
5773 $as_echo "$ac_ct_AS" >&6; }
5775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5776 $as_echo "no" >&6; }
5779 if test "x$ac_ct_AS" = x; then
5782 case $cross_compiling:$ac_tool_warned in
5784 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5785 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5786 ac_tool_warned=yes ;;
5794 if test -n "$ac_tool_prefix"; then
5795 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5796 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5798 $as_echo_n "checking for $ac_word... " >&6; }
5799 if ${ac_cv_prog_DLLTOOL+:} false; then :
5800 $as_echo_n "(cached) " >&6
5802 if test -n "$DLLTOOL"; then
5803 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5805 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5809 test -z "$as_dir" && as_dir=.
5810 for ac_exec_ext in '' $ac_executable_extensions; do
5811 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5812 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5813 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5822 DLLTOOL=$ac_cv_prog_DLLTOOL
5823 if test -n "$DLLTOOL"; then
5824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5825 $as_echo "$DLLTOOL" >&6; }
5827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5828 $as_echo "no" >&6; }
5833 if test -z "$ac_cv_prog_DLLTOOL"; then
5834 ac_ct_DLLTOOL=$DLLTOOL
5835 # Extract the first word of "dlltool", so it can be a program name with args.
5836 set dummy dlltool; ac_word=$2
5837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5838 $as_echo_n "checking for $ac_word... " >&6; }
5839 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
5840 $as_echo_n "(cached) " >&6
5842 if test -n "$ac_ct_DLLTOOL"; then
5843 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5845 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5849 test -z "$as_dir" && as_dir=.
5850 for ac_exec_ext in '' $ac_executable_extensions; do
5851 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5852 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5853 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5862 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5863 if test -n "$ac_ct_DLLTOOL"; then
5864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5865 $as_echo "$ac_ct_DLLTOOL" >&6; }
5867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5868 $as_echo "no" >&6; }
5871 if test "x$ac_ct_DLLTOOL" = x; then
5874 case $cross_compiling:$ac_tool_warned in
5876 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5877 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5878 ac_tool_warned=yes ;;
5880 DLLTOOL=$ac_ct_DLLTOOL
5883 DLLTOOL="$ac_cv_prog_DLLTOOL"
5886 if test -n "$ac_tool_prefix"; then
5887 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5888 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5890 $as_echo_n "checking for $ac_word... " >&6; }
5891 if ${ac_cv_prog_OBJDUMP+:} false; then :
5892 $as_echo_n "(cached) " >&6
5894 if test -n "$OBJDUMP"; then
5895 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5897 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5901 test -z "$as_dir" && as_dir=.
5902 for ac_exec_ext in '' $ac_executable_extensions; do
5903 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5904 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5905 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5914 OBJDUMP=$ac_cv_prog_OBJDUMP
5915 if test -n "$OBJDUMP"; then
5916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5917 $as_echo "$OBJDUMP" >&6; }
5919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5920 $as_echo "no" >&6; }
5925 if test -z "$ac_cv_prog_OBJDUMP"; then
5926 ac_ct_OBJDUMP=$OBJDUMP
5927 # Extract the first word of "objdump", so it can be a program name with args.
5928 set dummy objdump; ac_word=$2
5929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5930 $as_echo_n "checking for $ac_word... " >&6; }
5931 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5932 $as_echo_n "(cached) " >&6
5934 if test -n "$ac_ct_OBJDUMP"; then
5935 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5937 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5941 test -z "$as_dir" && as_dir=.
5942 for ac_exec_ext in '' $ac_executable_extensions; do
5943 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5944 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5945 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5954 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5955 if test -n "$ac_ct_OBJDUMP"; then
5956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5957 $as_echo "$ac_ct_OBJDUMP" >&6; }
5959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5960 $as_echo "no" >&6; }
5963 if test "x$ac_ct_OBJDUMP" = x; then
5966 case $cross_compiling:$ac_tool_warned in
5968 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5969 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5970 ac_tool_warned=yes ;;
5972 OBJDUMP=$ac_ct_OBJDUMP
5975 OBJDUMP="$ac_cv_prog_OBJDUMP"
5981 test -z "$AS" && AS=as
5987 test -z "$DLLTOOL" && DLLTOOL=dlltool
5993 test -z "$OBJDUMP" && OBJDUMP=objdump
6003 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
6004 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
6009 macro_version='2.4.2'
6010 macro_revision='1.3337'
6024 ltmain="$ac_aux_dir/ltmain.sh"
6026 # Backslashify metacharacters that are still active within
6027 # double-quoted strings.
6028 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
6030 # Same as above, but do not quote variable references.
6031 double_quote_subst='s/\(["`\\]\)/\\\1/g'
6033 # Sed substitution to delay expansion of an escaped shell variable in a
6034 # double_quote_subst'ed string.
6035 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6037 # Sed substitution to delay expansion of an escaped single quote.
6038 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
6040 # Sed substitution to avoid accidental globbing in evaled expressions
6041 no_glob_subst='s/\*/\\\*/g'
6043 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
6044 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
6045 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
6047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
6048 $as_echo_n "checking how to print strings... " >&6; }
6049 # Test print first, because it will be a builtin if present.
6050 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
6051 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
6053 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
6056 # Use this function as a fallback that always works.
6057 func_fallback_echo ()
6059 eval 'cat <<_LTECHO_EOF
6063 ECHO='func_fallback_echo'
6066 # func_echo_all arg...
6067 # Invoke $ECHO with all args, space-separated.
6074 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
6075 $as_echo "printf" >&6; } ;;
6076 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
6077 $as_echo "print -r" >&6; } ;;
6078 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
6079 $as_echo "cat" >&6; } ;;
6095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
6096 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
6097 if ${ac_cv_path_SED+:} false; then :
6098 $as_echo_n "(cached) " >&6
6100 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
6101 for ac_i in 1 2 3 4 5 6 7; do
6102 ac_script="$ac_script$as_nl$ac_script"
6104 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
6105 { ac_script=; unset ac_script;}
6106 if test -z "$SED"; then
6107 ac_path_SED_found=false
6108 # Loop through the user's path and test for each of PROGNAME-LIST
6109 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6113 test -z "$as_dir" && as_dir=.
6114 for ac_prog in sed gsed; do
6115 for ac_exec_ext in '' $ac_executable_extensions; do
6116 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
6117 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
6118 # Check for GNU ac_path_SED and select it if it is found.
6119 # Check for GNU $ac_path_SED
6120 case `"$ac_path_SED" --version 2>&1` in
6122 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
6125 $as_echo_n 0123456789 >"conftest.in"
6128 cat "conftest.in" "conftest.in" >"conftest.tmp"
6129 mv "conftest.tmp" "conftest.in"
6130 cp "conftest.in" "conftest.nl"
6131 $as_echo '' >> "conftest.nl"
6132 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
6133 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6134 as_fn_arith $ac_count + 1 && ac_count=$as_val
6135 if test $ac_count -gt ${ac_path_SED_max-0}; then
6136 # Best one so far, save it but keep looking for a better one
6137 ac_cv_path_SED="$ac_path_SED"
6138 ac_path_SED_max=$ac_count
6140 # 10*(2^10) chars as input seems more than enough
6141 test $ac_count -gt 10 && break
6143 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6146 $ac_path_SED_found && break 3
6151 if test -z "$ac_cv_path_SED"; then
6152 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
6159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
6160 $as_echo "$ac_cv_path_SED" >&6; }
6161 SED="$ac_cv_path_SED"
6164 test -z "$SED" && SED=sed
6165 Xsed="$SED -e 1s/^X//"
6177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
6178 $as_echo_n "checking for fgrep... " >&6; }
6179 if ${ac_cv_path_FGREP+:} false; then :
6180 $as_echo_n "(cached) " >&6
6182 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
6183 then ac_cv_path_FGREP="$GREP -F"
6185 if test -z "$FGREP"; then
6186 ac_path_FGREP_found=false
6187 # Loop through the user's path and test for each of PROGNAME-LIST
6188 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6189 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6192 test -z "$as_dir" && as_dir=.
6193 for ac_prog in fgrep; do
6194 for ac_exec_ext in '' $ac_executable_extensions; do
6195 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
6196 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
6197 # Check for GNU ac_path_FGREP and select it if it is found.
6198 # Check for GNU $ac_path_FGREP
6199 case `"$ac_path_FGREP" --version 2>&1` in
6201 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
6204 $as_echo_n 0123456789 >"conftest.in"
6207 cat "conftest.in" "conftest.in" >"conftest.tmp"
6208 mv "conftest.tmp" "conftest.in"
6209 cp "conftest.in" "conftest.nl"
6210 $as_echo 'FGREP' >> "conftest.nl"
6211 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
6212 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6213 as_fn_arith $ac_count + 1 && ac_count=$as_val
6214 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
6215 # Best one so far, save it but keep looking for a better one
6216 ac_cv_path_FGREP="$ac_path_FGREP"
6217 ac_path_FGREP_max=$ac_count
6219 # 10*(2^10) chars as input seems more than enough
6220 test $ac_count -gt 10 && break
6222 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6225 $ac_path_FGREP_found && break 3
6230 if test -z "$ac_cv_path_FGREP"; then
6231 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6234 ac_cv_path_FGREP=$FGREP
6239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
6240 $as_echo "$ac_cv_path_FGREP" >&6; }
6241 FGREP="$ac_cv_path_FGREP"
6244 test -z "$GREP" && GREP=grep
6264 # Check whether --with-gnu-ld was given.
6265 if test "${with_gnu_ld+set}" = set; then :
6266 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
6272 if test "$GCC" = yes; then
6273 # Check if gcc -print-prog-name=ld gives a path.
6274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
6275 $as_echo_n "checking for ld used by $CC... " >&6; }
6278 # gcc leaves a trailing carriage return which upsets mingw
6279 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6281 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6284 # Accept absolute paths.
6286 re_direlt='/[^/][^/]*/\.\./'
6287 # Canonicalize the pathname of ld
6288 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
6289 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
6290 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
6292 test -z "$LD" && LD="$ac_prog"
6295 # If it fails, then pretend we aren't using GCC.
6299 # If it is relative, then search for the first ld in PATH.
6303 elif test "$with_gnu_ld" = yes; then
6304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
6305 $as_echo_n "checking for GNU ld... " >&6; }
6307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
6308 $as_echo_n "checking for non-GNU ld... " >&6; }
6310 if ${lt_cv_path_LD+:} false; then :
6311 $as_echo_n "(cached) " >&6
6313 if test -z "$LD"; then
6314 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6315 for ac_dir in $PATH; do
6317 test -z "$ac_dir" && ac_dir=.
6318 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6319 lt_cv_path_LD="$ac_dir/$ac_prog"
6320 # Check to see if the program is GNU ld. I'd rather use --version,
6321 # but apparently some variants of GNU ld only accept -v.
6322 # Break only if it was the GNU/non-GNU ld that we prefer.
6323 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6324 *GNU* | *'with BFD'*)
6325 test "$with_gnu_ld" != no && break
6328 test "$with_gnu_ld" != yes && break
6335 lt_cv_path_LD="$LD" # Let the user override the test with a path.
6340 if test -n "$LD"; then
6341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
6342 $as_echo "$LD" >&6; }
6344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6345 $as_echo "no" >&6; }
6347 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
6348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
6349 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
6350 if ${lt_cv_prog_gnu_ld+:} false; then :
6351 $as_echo_n "(cached) " >&6
6353 # I'd rather use --version here, but apparently some GNU lds only accept -v.
6354 case `$LD -v 2>&1 </dev/null` in
6355 *GNU* | *'with BFD'*)
6356 lt_cv_prog_gnu_ld=yes
6359 lt_cv_prog_gnu_ld=no
6363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
6364 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
6365 with_gnu_ld=$lt_cv_prog_gnu_ld
6375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
6376 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
6377 if ${lt_cv_path_NM+:} false; then :
6378 $as_echo_n "(cached) " >&6
6380 if test -n "$NM"; then
6381 # Let the user override the test.
6384 lt_nm_to_check="${ac_tool_prefix}nm"
6385 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6386 lt_nm_to_check="$lt_nm_to_check nm"
6388 for lt_tmp_nm in $lt_nm_to_check; do
6389 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6390 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6392 test -z "$ac_dir" && ac_dir=.
6393 tmp_nm="$ac_dir/$lt_tmp_nm"
6394 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6395 # Check to see if the nm accepts a BSD-compat flag.
6396 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6397 # nm: unknown option "B" ignored
6398 # Tru64's nm complains that /dev/null is an invalid object file
6399 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6400 */dev/null* | *'Invalid file or object type'*)
6401 lt_cv_path_NM="$tmp_nm -B"
6405 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6407 lt_cv_path_NM="$tmp_nm -p"
6411 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6412 continue # so that we can try to find one that supports BSD flags
6421 : ${lt_cv_path_NM=no}
6424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
6425 $as_echo "$lt_cv_path_NM" >&6; }
6426 if test "$lt_cv_path_NM" != "no"; then
6429 # Didn't find any BSD compatible name lister, look for dumpbin.
6430 if test -n "$DUMPBIN"; then :
6431 # Let the user override the test.
6433 if test -n "$ac_tool_prefix"; then
6434 for ac_prog in dumpbin "link -dump"
6436 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6437 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6439 $as_echo_n "checking for $ac_word... " >&6; }
6440 if ${ac_cv_prog_DUMPBIN+:} false; then :
6441 $as_echo_n "(cached) " >&6
6443 if test -n "$DUMPBIN"; then
6444 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
6446 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6450 test -z "$as_dir" && as_dir=.
6451 for ac_exec_ext in '' $ac_executable_extensions; do
6452 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6453 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
6454 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6463 DUMPBIN=$ac_cv_prog_DUMPBIN
6464 if test -n "$DUMPBIN"; then
6465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
6466 $as_echo "$DUMPBIN" >&6; }
6468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6469 $as_echo "no" >&6; }
6473 test -n "$DUMPBIN" && break
6476 if test -z "$DUMPBIN"; then
6477 ac_ct_DUMPBIN=$DUMPBIN
6478 for ac_prog in dumpbin "link -dump"
6480 # Extract the first word of "$ac_prog", so it can be a program name with args.
6481 set dummy $ac_prog; ac_word=$2
6482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6483 $as_echo_n "checking for $ac_word... " >&6; }
6484 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
6485 $as_echo_n "(cached) " >&6
6487 if test -n "$ac_ct_DUMPBIN"; then
6488 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
6490 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6494 test -z "$as_dir" && as_dir=.
6495 for ac_exec_ext in '' $ac_executable_extensions; do
6496 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6497 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
6498 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6507 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
6508 if test -n "$ac_ct_DUMPBIN"; then
6509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
6510 $as_echo "$ac_ct_DUMPBIN" >&6; }
6512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6513 $as_echo "no" >&6; }
6517 test -n "$ac_ct_DUMPBIN" && break
6520 if test "x$ac_ct_DUMPBIN" = x; then
6523 case $cross_compiling:$ac_tool_warned in
6525 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6526 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6527 ac_tool_warned=yes ;;
6529 DUMPBIN=$ac_ct_DUMPBIN
6533 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
6535 DUMPBIN="$DUMPBIN -symbols"
6543 if test "$DUMPBIN" != ":"; then
6547 test -z "$NM" && NM=nm
6554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
6555 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
6556 if ${lt_cv_nm_interface+:} false; then :
6557 $as_echo_n "(cached) " >&6
6559 lt_cv_nm_interface="BSD nm"
6560 echo "int some_variable = 0;" > conftest.$ac_ext
6561 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
6562 (eval "$ac_compile" 2>conftest.err)
6563 cat conftest.err >&5
6564 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6565 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6566 cat conftest.err >&5
6567 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
6568 cat conftest.out >&5
6569 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6570 lt_cv_nm_interface="MS dumpbin"
6574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6575 $as_echo "$lt_cv_nm_interface" >&6; }
6577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6578 $as_echo_n "checking whether ln -s works... " >&6; }
6580 if test "$LN_S" = "ln -s"; then
6581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6582 $as_echo "yes" >&6; }
6584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6585 $as_echo "no, using $LN_S" >&6; }
6588 # find the maximum length of command line arguments
6589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6590 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
6591 if ${lt_cv_sys_max_cmd_len+:} false; then :
6592 $as_echo_n "(cached) " >&6
6599 # On DJGPP, this test can blow up pretty badly due to problems in libc
6600 # (any single argument exceeding 2000 bytes causes a buffer overrun
6601 # during glob expansion). Even if it were fixed, the result of this
6602 # check would be larger than it should be.
6603 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6607 # Under GNU Hurd, this test is not required because there is
6608 # no limit to the length of command line arguments.
6609 # Libtool will interpret -1 as no limit whatsoever
6610 lt_cv_sys_max_cmd_len=-1;
6613 cygwin* | mingw* | cegcc*)
6614 # On Win9x/ME, this test blows up -- it succeeds, but takes
6615 # about 5 minutes as the teststring grows exponentially.
6616 # Worse, since 9x/ME are not pre-emptively multitasking,
6617 # you end up with a "frozen" computer, even though with patience
6618 # the test eventually succeeds (with a max line length of 256k).
6619 # Instead, let's just punt: use the minimum linelength reported by
6620 # all of the supported platforms: 8192 (on NT/2K/XP).
6621 lt_cv_sys_max_cmd_len=8192;
6625 # On MiNT this can take a long time and run out of memory.
6626 lt_cv_sys_max_cmd_len=8192;
6630 # On AmigaOS with pdksh, this test takes hours, literally.
6631 # So we just punt and use a minimum line length of 8192.
6632 lt_cv_sys_max_cmd_len=8192;
6635 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6636 # This has been around since 386BSD, at least. Likely further.
6637 if test -x /sbin/sysctl; then
6638 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6639 elif test -x /usr/sbin/sysctl; then
6640 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6642 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6644 # And add a safety zone
6645 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6646 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6650 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6651 lt_cv_sys_max_cmd_len=196608
6655 # The test takes a long time on OS/2.
6656 lt_cv_sys_max_cmd_len=8192
6660 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6661 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6662 # nice to cause kernel panics so lets avoid the loop below.
6663 # First set a reasonable default.
6664 lt_cv_sys_max_cmd_len=16384
6666 if test -x /sbin/sysconfig; then
6667 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6668 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6673 lt_cv_sys_max_cmd_len=102400
6675 sysv5* | sco5v6* | sysv4.2uw2*)
6676 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6677 if test -n "$kargmax"; then
6678 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6680 lt_cv_sys_max_cmd_len=32768
6684 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6685 if test -n "$lt_cv_sys_max_cmd_len"; then
6686 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6687 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6689 # Make teststring a little bigger before we do anything with it.
6690 # a 1K string should be a reasonable start.
6691 for i in 1 2 3 4 5 6 7 8 ; do
6692 teststring=$teststring$teststring
6694 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6695 # If test is not a shell built-in, we'll probably end up computing a
6696 # maximum length that is only half of the actual maximum length, but
6698 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
6699 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
6700 test $i != 17 # 1/2 MB should be enough
6703 teststring=$teststring$teststring
6705 # Only check the string length outside the loop.
6706 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6708 # Add a significant safety factor because C++ compilers can tack on
6709 # massive amounts of additional arguments before passing them to the
6710 # linker. It appears as though 1/2 is a usable value.
6711 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6718 if test -n $lt_cv_sys_max_cmd_len ; then
6719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6720 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6723 $as_echo "none" >&6; }
6725 max_cmd_len=$lt_cv_sys_max_cmd_len
6736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
6737 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
6738 # Try some XSI features
6741 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
6743 && eval 'test $(( 1 + 1 )) -eq 2 \
6744 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
6746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
6747 $as_echo "$xsi_shell" >&6; }
6750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
6751 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
6753 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6755 && lt_shell_append=yes
6756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
6757 $as_echo "$lt_shell_append" >&6; }
6760 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6770 # test EBCDIC or ASCII
6771 case `echo X|tr X '\101'` in
6772 A) # ASCII based system
6773 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6774 lt_SP2NL='tr \040 \012'
6775 lt_NL2SP='tr \015\012 \040\040'
6777 *) # EBCDIC based system
6778 lt_SP2NL='tr \100 \n'
6779 lt_NL2SP='tr \r\n \100\100'
6791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
6792 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
6793 if ${lt_cv_to_host_file_cmd+:} false; then :
6794 $as_echo_n "(cached) " >&6
6799 *-*-mingw* ) # actually msys
6800 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
6803 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
6805 * ) # otherwise, assume *nix
6806 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
6812 *-*-mingw* ) # actually msys
6813 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
6816 lt_cv_to_host_file_cmd=func_convert_file_noop
6818 * ) # otherwise, assume *nix
6819 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
6823 * ) # unhandled hosts (and "normal" native builds)
6824 lt_cv_to_host_file_cmd=func_convert_file_noop
6830 to_host_file_cmd=$lt_cv_to_host_file_cmd
6831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
6832 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
6838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
6839 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
6840 if ${lt_cv_to_tool_file_cmd+:} false; then :
6841 $as_echo_n "(cached) " >&6
6843 #assume ordinary cross tools, or native build.
6844 lt_cv_to_tool_file_cmd=func_convert_file_noop
6848 *-*-mingw* ) # actually msys
6849 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
6857 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
6858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
6859 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
6865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6866 $as_echo_n "checking for $LD option to reload object files... " >&6; }
6867 if ${lt_cv_ld_reload_flag+:} false; then :
6868 $as_echo_n "(cached) " >&6
6870 lt_cv_ld_reload_flag='-r'
6872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6873 $as_echo "$lt_cv_ld_reload_flag" >&6; }
6874 reload_flag=$lt_cv_ld_reload_flag
6875 case $reload_flag in
6877 *) reload_flag=" $reload_flag" ;;
6879 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6881 cygwin* | mingw* | pw32* | cegcc*)
6882 if test "$GCC" != yes; then
6887 if test "$GCC" = yes; then
6888 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6890 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6903 if test -n "$ac_tool_prefix"; then
6904 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6905 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6907 $as_echo_n "checking for $ac_word... " >&6; }
6908 if ${ac_cv_prog_OBJDUMP+:} false; then :
6909 $as_echo_n "(cached) " >&6
6911 if test -n "$OBJDUMP"; then
6912 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6914 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6918 test -z "$as_dir" && as_dir=.
6919 for ac_exec_ext in '' $ac_executable_extensions; do
6920 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6921 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6922 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6931 OBJDUMP=$ac_cv_prog_OBJDUMP
6932 if test -n "$OBJDUMP"; then
6933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6934 $as_echo "$OBJDUMP" >&6; }
6936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6937 $as_echo "no" >&6; }
6942 if test -z "$ac_cv_prog_OBJDUMP"; then
6943 ac_ct_OBJDUMP=$OBJDUMP
6944 # Extract the first word of "objdump", so it can be a program name with args.
6945 set dummy objdump; ac_word=$2
6946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6947 $as_echo_n "checking for $ac_word... " >&6; }
6948 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
6949 $as_echo_n "(cached) " >&6
6951 if test -n "$ac_ct_OBJDUMP"; then
6952 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6954 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6958 test -z "$as_dir" && as_dir=.
6959 for ac_exec_ext in '' $ac_executable_extensions; do
6960 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6961 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6962 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6971 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6972 if test -n "$ac_ct_OBJDUMP"; then
6973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6974 $as_echo "$ac_ct_OBJDUMP" >&6; }
6976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6977 $as_echo "no" >&6; }
6980 if test "x$ac_ct_OBJDUMP" = x; then
6983 case $cross_compiling:$ac_tool_warned in
6985 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6986 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6987 ac_tool_warned=yes ;;
6989 OBJDUMP=$ac_ct_OBJDUMP
6992 OBJDUMP="$ac_cv_prog_OBJDUMP"
6995 test -z "$OBJDUMP" && OBJDUMP=objdump
7002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
7003 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
7004 if ${lt_cv_deplibs_check_method+:} false; then :
7005 $as_echo_n "(cached) " >&6
7007 lt_cv_file_magic_cmd='$MAGIC_CMD'
7008 lt_cv_file_magic_test_file=
7009 lt_cv_deplibs_check_method='unknown'
7010 # Need to set the preceding variable on all platforms that support
7011 # interlibrary dependencies.
7012 # 'none' -- dependencies not supported.
7013 # `unknown' -- same as none, but documents that we really don't know.
7014 # 'pass_all' -- all dependencies passed with no checks.
7015 # 'test_compile' -- check by making test program.
7016 # 'file_magic [[regex]]' -- check by looking for files in library path
7017 # which responds to the $file_magic_cmd with a given extended regex.
7018 # If you have `file' or equivalent on your system and you're not sure
7019 # whether `pass_all' will *always* work, you probably want this one.
7023 lt_cv_deplibs_check_method=pass_all
7027 lt_cv_deplibs_check_method=pass_all
7031 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
7032 lt_cv_file_magic_cmd='/usr/bin/file -L'
7033 lt_cv_file_magic_test_file=/shlib/libc.so
7037 # func_win32_libid is a shell function defined in ltmain.sh
7038 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7039 lt_cv_file_magic_cmd='func_win32_libid'
7043 # Base MSYS/MinGW do not provide the 'file' command needed by
7044 # func_win32_libid shell function, so use a weaker test based on 'objdump',
7045 # unless we find 'file', for example because we are cross-compiling.
7046 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
7047 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
7048 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7049 lt_cv_file_magic_cmd='func_win32_libid'
7051 # Keep this pattern in sync with the one in func_win32_libid.
7052 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
7053 lt_cv_file_magic_cmd='$OBJDUMP -f'
7058 # use the weaker test based on 'objdump'. See mingw*.
7059 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
7060 lt_cv_file_magic_cmd='$OBJDUMP -f'
7063 darwin* | rhapsody*)
7064 lt_cv_deplibs_check_method=pass_all
7067 freebsd* | dragonfly*)
7068 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7071 # Not sure whether the presence of OpenBSD here was a mistake.
7072 # Let's accept both of them until this is cleared up.
7073 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
7074 lt_cv_file_magic_cmd=/usr/bin/file
7075 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
7079 lt_cv_deplibs_check_method=pass_all
7084 lt_cv_deplibs_check_method=pass_all
7088 lt_cv_deplibs_check_method=pass_all
7091 hpux10.20* | hpux11*)
7092 lt_cv_file_magic_cmd=/usr/bin/file
7095 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
7096 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
7099 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]'
7100 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
7103 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
7104 lt_cv_file_magic_test_file=/usr/lib/libc.sl
7110 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
7111 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
7114 irix5* | irix6* | nonstopux*)
7116 *-32|*"-32 ") libmagic=32-bit;;
7117 *-n32|*"-n32 ") libmagic=N32;;
7118 *-64|*"-64 ") libmagic=64-bit;;
7119 *) libmagic=never-match;;
7121 lt_cv_deplibs_check_method=pass_all
7124 # This must be glibc/ELF.
7125 linux* | k*bsd*-gnu | kopensolaris*-gnu)
7126 lt_cv_deplibs_check_method=pass_all
7129 netbsd* | netbsdelf*-gnu)
7130 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7131 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7133 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
7138 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
7139 lt_cv_file_magic_cmd=/usr/bin/file
7140 lt_cv_file_magic_test_file=/usr/lib/libnls.so
7144 lt_cv_deplibs_check_method=pass_all
7148 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7149 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
7151 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7155 osf3* | osf4* | osf5*)
7156 lt_cv_deplibs_check_method=pass_all
7160 lt_cv_deplibs_check_method=pass_all
7164 lt_cv_deplibs_check_method=pass_all
7167 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
7168 lt_cv_deplibs_check_method=pass_all
7172 case $host_vendor in
7174 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]'
7175 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
7178 lt_cv_deplibs_check_method=pass_all
7181 lt_cv_file_magic_cmd='/bin/file'
7182 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
7185 lt_cv_file_magic_cmd='/bin/file'
7186 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
7187 lt_cv_file_magic_test_file=/lib/libc.so
7190 lt_cv_deplibs_check_method=pass_all
7193 lt_cv_deplibs_check_method=pass_all
7199 lt_cv_deplibs_check_method=pass_all
7204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
7205 $as_echo "$lt_cv_deplibs_check_method" >&6; }
7209 if test "$build" = "$host"; then
7212 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
7215 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
7221 file_magic_cmd=$lt_cv_file_magic_cmd
7222 deplibs_check_method=$lt_cv_deplibs_check_method
7223 test -z "$deplibs_check_method" && deplibs_check_method=unknown
7246 if test -n "$ac_tool_prefix"; then
7247 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
7248 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
7249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7250 $as_echo_n "checking for $ac_word... " >&6; }
7251 if ${ac_cv_prog_DLLTOOL+:} false; then :
7252 $as_echo_n "(cached) " >&6
7254 if test -n "$DLLTOOL"; then
7255 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
7257 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7261 test -z "$as_dir" && as_dir=.
7262 for ac_exec_ext in '' $ac_executable_extensions; do
7263 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7264 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
7265 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7274 DLLTOOL=$ac_cv_prog_DLLTOOL
7275 if test -n "$DLLTOOL"; then
7276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
7277 $as_echo "$DLLTOOL" >&6; }
7279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7280 $as_echo "no" >&6; }
7285 if test -z "$ac_cv_prog_DLLTOOL"; then
7286 ac_ct_DLLTOOL=$DLLTOOL
7287 # Extract the first word of "dlltool", so it can be a program name with args.
7288 set dummy dlltool; ac_word=$2
7289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7290 $as_echo_n "checking for $ac_word... " >&6; }
7291 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
7292 $as_echo_n "(cached) " >&6
7294 if test -n "$ac_ct_DLLTOOL"; then
7295 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
7297 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7301 test -z "$as_dir" && as_dir=.
7302 for ac_exec_ext in '' $ac_executable_extensions; do
7303 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7304 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
7305 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7314 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
7315 if test -n "$ac_ct_DLLTOOL"; then
7316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
7317 $as_echo "$ac_ct_DLLTOOL" >&6; }
7319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7320 $as_echo "no" >&6; }
7323 if test "x$ac_ct_DLLTOOL" = x; then
7326 case $cross_compiling:$ac_tool_warned in
7328 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7329 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7330 ac_tool_warned=yes ;;
7332 DLLTOOL=$ac_ct_DLLTOOL
7335 DLLTOOL="$ac_cv_prog_DLLTOOL"
7338 test -z "$DLLTOOL" && DLLTOOL=dlltool
7346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
7347 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
7348 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
7349 $as_echo_n "(cached) " >&6
7351 lt_cv_sharedlib_from_linklib_cmd='unknown'
7354 cygwin* | mingw* | pw32* | cegcc*)
7355 # two different shell functions defined in ltmain.sh
7356 # decide which to use based on capabilities of $DLLTOOL
7357 case `$DLLTOOL --help 2>&1` in
7358 *--identify-strict*)
7359 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
7362 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
7367 # fallback: assume linklib IS sharedlib
7368 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
7373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
7374 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
7375 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
7376 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
7384 if test -n "$ac_tool_prefix"; then
7387 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7388 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7390 $as_echo_n "checking for $ac_word... " >&6; }
7391 if ${ac_cv_prog_AR+:} false; then :
7392 $as_echo_n "(cached) " >&6
7394 if test -n "$AR"; then
7395 ac_cv_prog_AR="$AR" # Let the user override the test.
7397 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7401 test -z "$as_dir" && as_dir=.
7402 for ac_exec_ext in '' $ac_executable_extensions; do
7403 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7404 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
7405 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7415 if test -n "$AR"; then
7416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7417 $as_echo "$AR" >&6; }
7419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7420 $as_echo "no" >&6; }
7424 test -n "$AR" && break
7427 if test -z "$AR"; then
7431 # Extract the first word of "$ac_prog", so it can be a program name with args.
7432 set dummy $ac_prog; ac_word=$2
7433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7434 $as_echo_n "checking for $ac_word... " >&6; }
7435 if ${ac_cv_prog_ac_ct_AR+:} false; then :
7436 $as_echo_n "(cached) " >&6
7438 if test -n "$ac_ct_AR"; then
7439 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7441 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7445 test -z "$as_dir" && as_dir=.
7446 for ac_exec_ext in '' $ac_executable_extensions; do
7447 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7448 ac_cv_prog_ac_ct_AR="$ac_prog"
7449 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7458 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7459 if test -n "$ac_ct_AR"; then
7460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
7461 $as_echo "$ac_ct_AR" >&6; }
7463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7464 $as_echo "no" >&6; }
7468 test -n "$ac_ct_AR" && break
7471 if test "x$ac_ct_AR" = x; then
7474 case $cross_compiling:$ac_tool_warned in
7476 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7477 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7478 ac_tool_warned=yes ;;
7497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
7498 $as_echo_n "checking for archiver @FILE support... " >&6; }
7499 if ${lt_cv_ar_at_file+:} false; then :
7500 $as_echo_n "(cached) " >&6
7503 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7504 /* end confdefs.h. */
7514 if ac_fn_c_try_compile "$LINENO"; then :
7515 echo conftest.$ac_objext > conftest.lst
7516 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
7517 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
7518 (eval $lt_ar_try) 2>&5
7520 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7521 test $ac_status = 0; }
7522 if test "$ac_status" -eq 0; then
7523 # Ensure the archiver fails upon bogus file names.
7524 rm -f conftest.$ac_objext libconftest.a
7525 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
7526 (eval $lt_ar_try) 2>&5
7528 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7529 test $ac_status = 0; }
7530 if test "$ac_status" -ne 0; then
7534 rm -f conftest.* libconftest.a
7537 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
7541 $as_echo "$lt_cv_ar_at_file" >&6; }
7543 if test "x$lt_cv_ar_at_file" = xno; then
7546 archiver_list_spec=$lt_cv_ar_at_file
7555 if test -n "$ac_tool_prefix"; then
7556 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7557 set dummy ${ac_tool_prefix}strip; ac_word=$2
7558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7559 $as_echo_n "checking for $ac_word... " >&6; }
7560 if ${ac_cv_prog_STRIP+:} false; then :
7561 $as_echo_n "(cached) " >&6
7563 if test -n "$STRIP"; then
7564 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7566 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7570 test -z "$as_dir" && as_dir=.
7571 for ac_exec_ext in '' $ac_executable_extensions; do
7572 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7573 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7574 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7583 STRIP=$ac_cv_prog_STRIP
7584 if test -n "$STRIP"; then
7585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
7586 $as_echo "$STRIP" >&6; }
7588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7589 $as_echo "no" >&6; }
7594 if test -z "$ac_cv_prog_STRIP"; then
7596 # Extract the first word of "strip", so it can be a program name with args.
7597 set dummy strip; ac_word=$2
7598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7599 $as_echo_n "checking for $ac_word... " >&6; }
7600 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
7601 $as_echo_n "(cached) " >&6
7603 if test -n "$ac_ct_STRIP"; then
7604 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7606 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7610 test -z "$as_dir" && as_dir=.
7611 for ac_exec_ext in '' $ac_executable_extensions; do
7612 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7613 ac_cv_prog_ac_ct_STRIP="strip"
7614 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7623 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7624 if test -n "$ac_ct_STRIP"; then
7625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
7626 $as_echo "$ac_ct_STRIP" >&6; }
7628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7629 $as_echo "no" >&6; }
7632 if test "x$ac_ct_STRIP" = x; then
7635 case $cross_compiling:$ac_tool_warned in
7637 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7638 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7639 ac_tool_warned=yes ;;
7644 STRIP="$ac_cv_prog_STRIP"
7647 test -z "$STRIP" && STRIP=:
7654 if test -n "$ac_tool_prefix"; then
7655 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7656 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7658 $as_echo_n "checking for $ac_word... " >&6; }
7659 if ${ac_cv_prog_RANLIB+:} false; then :
7660 $as_echo_n "(cached) " >&6
7662 if test -n "$RANLIB"; then
7663 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7665 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7669 test -z "$as_dir" && as_dir=.
7670 for ac_exec_ext in '' $ac_executable_extensions; do
7671 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7672 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7673 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7682 RANLIB=$ac_cv_prog_RANLIB
7683 if test -n "$RANLIB"; then
7684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7685 $as_echo "$RANLIB" >&6; }
7687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7688 $as_echo "no" >&6; }
7693 if test -z "$ac_cv_prog_RANLIB"; then
7694 ac_ct_RANLIB=$RANLIB
7695 # Extract the first word of "ranlib", so it can be a program name with args.
7696 set dummy ranlib; ac_word=$2
7697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7698 $as_echo_n "checking for $ac_word... " >&6; }
7699 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
7700 $as_echo_n "(cached) " >&6
7702 if test -n "$ac_ct_RANLIB"; then
7703 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7705 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7709 test -z "$as_dir" && as_dir=.
7710 for ac_exec_ext in '' $ac_executable_extensions; do
7711 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7712 ac_cv_prog_ac_ct_RANLIB="ranlib"
7713 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7722 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7723 if test -n "$ac_ct_RANLIB"; then
7724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7725 $as_echo "$ac_ct_RANLIB" >&6; }
7727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7728 $as_echo "no" >&6; }
7731 if test "x$ac_ct_RANLIB" = x; then
7734 case $cross_compiling:$ac_tool_warned in
7736 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7737 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7738 ac_tool_warned=yes ;;
7740 RANLIB=$ac_ct_RANLIB
7743 RANLIB="$ac_cv_prog_RANLIB"
7746 test -z "$RANLIB" && RANLIB=:
7753 # Determine commands to create old-style static archives.
7754 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7755 old_postinstall_cmds='chmod 644 $oldlib'
7756 old_postuninstall_cmds=
7758 if test -n "$RANLIB"; then
7761 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
7764 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
7767 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
7772 lock_old_archive_extraction=yes ;;
7774 lock_old_archive_extraction=no ;;
7815 # If no C compiler was specified, use CC.
7818 # If no C compiler flags were specified, use CFLAGS.
7819 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7821 # Allow CC to be a program name with arguments.
7825 # Check for command to grab the raw symbol name followed by C symbol from nm.
7826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7827 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
7828 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
7829 $as_echo_n "(cached) " >&6
7832 # These are sane defaults that work on at least a few old systems.
7833 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
7835 # Character class describing NM global symbol codes.
7836 symcode='[BCDEGRST]'
7838 # Regexp to match symbols that can be accessed directly from C.
7839 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7841 # Define system-specific variables.
7846 cygwin* | mingw* | pw32* | cegcc*)
7847 symcode='[ABCDGISTW]'
7850 if test "$host_cpu" = ia64; then
7851 symcode='[ABCDEGRST]'
7855 symcode='[BCDEGRST]'
7858 symcode='[BCDEGQRST]'
7869 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7877 # If we're using GNU nm, then use its standard symbol codes.
7878 case `$NM -V 2>&1` in
7879 *GNU* | *'with BFD'*)
7880 symcode='[ABCDGIRSTW]' ;;
7883 # Transform an extracted symbol line into a proper C declaration.
7884 # Some systems (esp. on ia64) link data and code symbols differently,
7885 # so use this general approach.
7886 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7888 # Transform an extracted symbol line into symbol name and symbol address
7889 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
7890 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'"
7892 # Handle CRLF in mingw tool chain
7896 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7900 # Try without a prefix underscore, then with it.
7901 for ac_symprfx in "" "_"; do
7903 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7904 symxfrm="\\1 $ac_symprfx\\2 \\2"
7906 # Write the raw and C identifiers.
7907 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7908 # Fake it for dumpbin and say T for any non-static function
7909 # and D for any global variable.
7910 # Also find C++ and __fastcall symbols from MSVC++,
7911 # which start with @ or ?.
7912 lt_cv_sys_global_symbol_pipe="$AWK '"\
7913 " {last_section=section; section=\$ 3};"\
7914 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
7915 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7916 " \$ 0!~/External *\|/{next};"\
7917 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7918 " {if(hide[section]) next};"\
7919 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
7920 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
7921 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
7922 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
7923 " ' prfx=^$ac_symprfx"
7925 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7927 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
7929 # Check to see that the pipe works correctly.
7933 cat > conftest.$ac_ext <<_LT_EOF
7938 void nm_test_func(void);
7939 void nm_test_func(void){}
7943 int main(){nm_test_var='a';nm_test_func();return(0);}
7946 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7947 (eval $ac_compile) 2>&5
7949 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7950 test $ac_status = 0; }; then
7951 # Now try to grab the symbols.
7953 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7954 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7956 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7957 test $ac_status = 0; } && test -s "$nlist"; then
7958 # Try sorting and uniquifying the output.
7959 if sort "$nlist" | uniq > "$nlist"T; then
7960 mv -f "$nlist"T "$nlist"
7965 # Make sure that we snagged all the symbols we need.
7966 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7967 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7968 cat <<_LT_EOF > conftest.$ac_ext
7969 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
7970 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
7971 /* DATA imports from DLLs on WIN32 con't be const, because runtime
7972 relocations are performed -- see ld's documentation on pseudo-relocs. */
7973 # define LT_DLSYM_CONST
7974 #elif defined(__osf__)
7975 /* This system does not cope well with relocations in const data. */
7976 # define LT_DLSYM_CONST
7978 # define LT_DLSYM_CONST const
7986 # Now generate the symbol file.
7987 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7989 cat <<_LT_EOF >> conftest.$ac_ext
7991 /* The mapping between symbol names and symbols. */
7992 LT_DLSYM_CONST struct {
7996 lt__PROGRAM__LTX_preloaded_symbols[] =
7998 { "@PROGRAM@", (void *) 0 },
8000 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
8001 cat <<\_LT_EOF >> conftest.$ac_ext
8005 /* This works around a problem in FreeBSD linker */
8006 #ifdef FREEBSD_WORKAROUND
8007 static const void *lt_preloaded_setup() {
8008 return lt__PROGRAM__LTX_preloaded_symbols;
8016 # Now try linking the two files.
8017 mv conftest.$ac_objext conftstm.$ac_objext
8018 lt_globsym_save_LIBS=$LIBS
8019 lt_globsym_save_CFLAGS=$CFLAGS
8020 LIBS="conftstm.$ac_objext"
8021 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
8022 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
8023 (eval $ac_link) 2>&5
8025 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8026 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
8029 LIBS=$lt_globsym_save_LIBS
8030 CFLAGS=$lt_globsym_save_CFLAGS
8032 echo "cannot find nm_test_func in $nlist" >&5
8035 echo "cannot find nm_test_var in $nlist" >&5
8038 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
8041 echo "$progname: failed program was:" >&5
8042 cat conftest.$ac_ext >&5
8044 rm -rf conftest* conftst*
8046 # Do not use the global_symbol_pipe unless it works.
8047 if test "$pipe_works" = yes; then
8050 lt_cv_sys_global_symbol_pipe=
8056 if test -z "$lt_cv_sys_global_symbol_pipe"; then
8057 lt_cv_sys_global_symbol_to_cdecl=
8059 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
8060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
8061 $as_echo "failed" >&6; }
8063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
8064 $as_echo "ok" >&6; }
8067 # Response file support.
8068 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
8069 nm_file_list_spec='@'
8070 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
8071 nm_file_list_spec='@'
8100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
8101 $as_echo_n "checking for sysroot... " >&6; }
8103 # Check whether --with-sysroot was given.
8104 if test "${with_sysroot+set}" = set; then :
8105 withval=$with_sysroot;
8112 case ${with_sysroot} in #(
8114 if test "$GCC" = yes; then
8115 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
8119 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
8124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
8125 $as_echo "${with_sysroot}" >&6; }
8126 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
8130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
8131 $as_echo "${lt_sysroot:-no}" >&6; }
8137 # Check whether --enable-libtool-lock was given.
8138 if test "${enable_libtool_lock+set}" = set; then :
8139 enableval=$enable_libtool_lock;
8142 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
8144 # Some flags need to be propagated to the compiler or linker for good
8148 # Find out which ABI we are using.
8149 echo 'int i;' > conftest.$ac_ext
8150 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8151 (eval $ac_compile) 2>&5
8153 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8154 test $ac_status = 0; }; then
8155 case `/usr/bin/file conftest.$ac_objext` in
8167 # Find out which ABI we are using.
8168 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
8169 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8170 (eval $ac_compile) 2>&5
8172 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8173 test $ac_status = 0; }; then
8174 if test "$lt_cv_prog_gnu_ld" = yes; then
8175 case `/usr/bin/file conftest.$ac_objext` in
8177 LD="${LD-ld} -melf32bsmip"
8180 LD="${LD-ld} -melf32bmipn32"
8183 LD="${LD-ld} -melf64bmip"
8187 case `/usr/bin/file conftest.$ac_objext` in
8203 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
8204 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
8205 # Find out which ABI we are using.
8206 echo 'int i;' > conftest.$ac_ext
8207 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8208 (eval $ac_compile) 2>&5
8210 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8211 test $ac_status = 0; }; then
8212 case `/usr/bin/file conftest.o` in
8215 x86_64-*kfreebsd*-gnu)
8216 LD="${LD-ld} -m elf_i386_fbsd"
8219 LD="${LD-ld} -m elf_i386"
8221 ppc64-*linux*|powerpc64-*linux*)
8222 LD="${LD-ld} -m elf32ppclinux"
8225 LD="${LD-ld} -m elf_s390"
8228 LD="${LD-ld} -m elf32_sparc"
8234 x86_64-*kfreebsd*-gnu)
8235 LD="${LD-ld} -m elf_x86_64_fbsd"
8238 LD="${LD-ld} -m elf_x86_64"
8240 ppc*-*linux*|powerpc*-*linux*)
8241 LD="${LD-ld} -m elf64ppc"
8243 s390*-*linux*|s390*-*tpf*)
8244 LD="${LD-ld} -m elf64_s390"
8247 LD="${LD-ld} -m elf64_sparc"
8257 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
8258 SAVE_CFLAGS="$CFLAGS"
8259 CFLAGS="$CFLAGS -belf"
8260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
8261 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
8262 if ${lt_cv_cc_needs_belf+:} false; then :
8263 $as_echo_n "(cached) " >&6
8266 ac_cpp='$CPP $CPPFLAGS'
8267 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8268 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8269 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8271 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8272 /* end confdefs.h. */
8282 if ac_fn_c_try_link "$LINENO"; then :
8283 lt_cv_cc_needs_belf=yes
8285 lt_cv_cc_needs_belf=no
8287 rm -f core conftest.err conftest.$ac_objext \
8288 conftest$ac_exeext conftest.$ac_ext
8290 ac_cpp='$CPP $CPPFLAGS'
8291 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8292 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8293 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
8297 $as_echo "$lt_cv_cc_needs_belf" >&6; }
8298 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
8299 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
8300 CFLAGS="$SAVE_CFLAGS"
8304 # Find out which ABI we are using.
8305 echo 'int i;' > conftest.$ac_ext
8306 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8307 (eval $ac_compile) 2>&5
8309 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8310 test $ac_status = 0; }; then
8311 case `/usr/bin/file conftest.o` in
8313 case $lt_cv_prog_gnu_ld in
8317 LD="${LD-ld} -m elf_x86_64"
8320 LD="${LD-ld} -m elf64_sparc"
8323 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
8324 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
8329 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
8341 need_locks="$enable_libtool_lock"
8343 if test -n "$ac_tool_prefix"; then
8344 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
8345 set dummy ${ac_tool_prefix}mt; ac_word=$2
8346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8347 $as_echo_n "checking for $ac_word... " >&6; }
8348 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
8349 $as_echo_n "(cached) " >&6
8351 if test -n "$MANIFEST_TOOL"; then
8352 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
8354 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8358 test -z "$as_dir" && as_dir=.
8359 for ac_exec_ext in '' $ac_executable_extensions; do
8360 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8361 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
8362 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8371 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
8372 if test -n "$MANIFEST_TOOL"; then
8373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
8374 $as_echo "$MANIFEST_TOOL" >&6; }
8376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8377 $as_echo "no" >&6; }
8382 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
8383 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
8384 # Extract the first word of "mt", so it can be a program name with args.
8385 set dummy mt; ac_word=$2
8386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8387 $as_echo_n "checking for $ac_word... " >&6; }
8388 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
8389 $as_echo_n "(cached) " >&6
8391 if test -n "$ac_ct_MANIFEST_TOOL"; then
8392 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
8394 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8398 test -z "$as_dir" && as_dir=.
8399 for ac_exec_ext in '' $ac_executable_extensions; do
8400 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8401 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
8402 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8411 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
8412 if test -n "$ac_ct_MANIFEST_TOOL"; then
8413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
8414 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
8416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8417 $as_echo "no" >&6; }
8420 if test "x$ac_ct_MANIFEST_TOOL" = x; then
8423 case $cross_compiling:$ac_tool_warned in
8425 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8426 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8427 ac_tool_warned=yes ;;
8429 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
8432 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
8435 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
8436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
8437 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
8438 if ${lt_cv_path_mainfest_tool+:} false; then :
8439 $as_echo_n "(cached) " >&6
8441 lt_cv_path_mainfest_tool=no
8442 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
8443 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
8444 cat conftest.err >&5
8445 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
8446 lt_cv_path_mainfest_tool=yes
8450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
8451 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
8452 if test "x$lt_cv_path_mainfest_tool" != xyes; then
8462 rhapsody* | darwin*)
8463 if test -n "$ac_tool_prefix"; then
8464 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
8465 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
8466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8467 $as_echo_n "checking for $ac_word... " >&6; }
8468 if ${ac_cv_prog_DSYMUTIL+:} false; then :
8469 $as_echo_n "(cached) " >&6
8471 if test -n "$DSYMUTIL"; then
8472 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
8474 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8478 test -z "$as_dir" && as_dir=.
8479 for ac_exec_ext in '' $ac_executable_extensions; do
8480 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8481 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
8482 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8491 DSYMUTIL=$ac_cv_prog_DSYMUTIL
8492 if test -n "$DSYMUTIL"; then
8493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
8494 $as_echo "$DSYMUTIL" >&6; }
8496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8497 $as_echo "no" >&6; }
8502 if test -z "$ac_cv_prog_DSYMUTIL"; then
8503 ac_ct_DSYMUTIL=$DSYMUTIL
8504 # Extract the first word of "dsymutil", so it can be a program name with args.
8505 set dummy dsymutil; ac_word=$2
8506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8507 $as_echo_n "checking for $ac_word... " >&6; }
8508 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
8509 $as_echo_n "(cached) " >&6
8511 if test -n "$ac_ct_DSYMUTIL"; then
8512 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
8514 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8518 test -z "$as_dir" && as_dir=.
8519 for ac_exec_ext in '' $ac_executable_extensions; do
8520 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8521 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
8522 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8531 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
8532 if test -n "$ac_ct_DSYMUTIL"; then
8533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
8534 $as_echo "$ac_ct_DSYMUTIL" >&6; }
8536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8537 $as_echo "no" >&6; }
8540 if test "x$ac_ct_DSYMUTIL" = x; then
8543 case $cross_compiling:$ac_tool_warned in
8545 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8546 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8547 ac_tool_warned=yes ;;
8549 DSYMUTIL=$ac_ct_DSYMUTIL
8552 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
8555 if test -n "$ac_tool_prefix"; then
8556 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
8557 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
8558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8559 $as_echo_n "checking for $ac_word... " >&6; }
8560 if ${ac_cv_prog_NMEDIT+:} false; then :
8561 $as_echo_n "(cached) " >&6
8563 if test -n "$NMEDIT"; then
8564 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
8566 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8570 test -z "$as_dir" && as_dir=.
8571 for ac_exec_ext in '' $ac_executable_extensions; do
8572 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8573 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
8574 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8583 NMEDIT=$ac_cv_prog_NMEDIT
8584 if test -n "$NMEDIT"; then
8585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
8586 $as_echo "$NMEDIT" >&6; }
8588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8589 $as_echo "no" >&6; }
8594 if test -z "$ac_cv_prog_NMEDIT"; then
8595 ac_ct_NMEDIT=$NMEDIT
8596 # Extract the first word of "nmedit", so it can be a program name with args.
8597 set dummy nmedit; ac_word=$2
8598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8599 $as_echo_n "checking for $ac_word... " >&6; }
8600 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
8601 $as_echo_n "(cached) " >&6
8603 if test -n "$ac_ct_NMEDIT"; then
8604 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
8606 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8610 test -z "$as_dir" && as_dir=.
8611 for ac_exec_ext in '' $ac_executable_extensions; do
8612 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8613 ac_cv_prog_ac_ct_NMEDIT="nmedit"
8614 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8623 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
8624 if test -n "$ac_ct_NMEDIT"; then
8625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
8626 $as_echo "$ac_ct_NMEDIT" >&6; }
8628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8629 $as_echo "no" >&6; }
8632 if test "x$ac_ct_NMEDIT" = x; then
8635 case $cross_compiling:$ac_tool_warned in
8637 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8638 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8639 ac_tool_warned=yes ;;
8641 NMEDIT=$ac_ct_NMEDIT
8644 NMEDIT="$ac_cv_prog_NMEDIT"
8647 if test -n "$ac_tool_prefix"; then
8648 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
8649 set dummy ${ac_tool_prefix}lipo; ac_word=$2
8650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8651 $as_echo_n "checking for $ac_word... " >&6; }
8652 if ${ac_cv_prog_LIPO+:} false; then :
8653 $as_echo_n "(cached) " >&6
8655 if test -n "$LIPO"; then
8656 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8658 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8662 test -z "$as_dir" && as_dir=.
8663 for ac_exec_ext in '' $ac_executable_extensions; do
8664 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8665 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
8666 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8675 LIPO=$ac_cv_prog_LIPO
8676 if test -n "$LIPO"; then
8677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8678 $as_echo "$LIPO" >&6; }
8680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8681 $as_echo "no" >&6; }
8686 if test -z "$ac_cv_prog_LIPO"; then
8688 # Extract the first word of "lipo", so it can be a program name with args.
8689 set dummy lipo; ac_word=$2
8690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8691 $as_echo_n "checking for $ac_word... " >&6; }
8692 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
8693 $as_echo_n "(cached) " >&6
8695 if test -n "$ac_ct_LIPO"; then
8696 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
8698 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8702 test -z "$as_dir" && as_dir=.
8703 for ac_exec_ext in '' $ac_executable_extensions; do
8704 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8705 ac_cv_prog_ac_ct_LIPO="lipo"
8706 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8715 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
8716 if test -n "$ac_ct_LIPO"; then
8717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
8718 $as_echo "$ac_ct_LIPO" >&6; }
8720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8721 $as_echo "no" >&6; }
8724 if test "x$ac_ct_LIPO" = x; then
8727 case $cross_compiling:$ac_tool_warned in
8729 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8730 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8731 ac_tool_warned=yes ;;
8736 LIPO="$ac_cv_prog_LIPO"
8739 if test -n "$ac_tool_prefix"; then
8740 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
8741 set dummy ${ac_tool_prefix}otool; ac_word=$2
8742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8743 $as_echo_n "checking for $ac_word... " >&6; }
8744 if ${ac_cv_prog_OTOOL+:} false; then :
8745 $as_echo_n "(cached) " >&6
8747 if test -n "$OTOOL"; then
8748 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
8750 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8754 test -z "$as_dir" && as_dir=.
8755 for ac_exec_ext in '' $ac_executable_extensions; do
8756 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8757 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
8758 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8767 OTOOL=$ac_cv_prog_OTOOL
8768 if test -n "$OTOOL"; then
8769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8770 $as_echo "$OTOOL" >&6; }
8772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8773 $as_echo "no" >&6; }
8778 if test -z "$ac_cv_prog_OTOOL"; then
8780 # Extract the first word of "otool", so it can be a program name with args.
8781 set dummy otool; ac_word=$2
8782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8783 $as_echo_n "checking for $ac_word... " >&6; }
8784 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
8785 $as_echo_n "(cached) " >&6
8787 if test -n "$ac_ct_OTOOL"; then
8788 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8790 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8794 test -z "$as_dir" && as_dir=.
8795 for ac_exec_ext in '' $ac_executable_extensions; do
8796 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8797 ac_cv_prog_ac_ct_OTOOL="otool"
8798 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8807 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8808 if test -n "$ac_ct_OTOOL"; then
8809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8810 $as_echo "$ac_ct_OTOOL" >&6; }
8812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8813 $as_echo "no" >&6; }
8816 if test "x$ac_ct_OTOOL" = x; then
8819 case $cross_compiling:$ac_tool_warned in
8821 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8822 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8823 ac_tool_warned=yes ;;
8828 OTOOL="$ac_cv_prog_OTOOL"
8831 if test -n "$ac_tool_prefix"; then
8832 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8833 set dummy ${ac_tool_prefix}otool64; ac_word=$2
8834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8835 $as_echo_n "checking for $ac_word... " >&6; }
8836 if ${ac_cv_prog_OTOOL64+:} false; then :
8837 $as_echo_n "(cached) " >&6
8839 if test -n "$OTOOL64"; then
8840 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8842 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8846 test -z "$as_dir" && as_dir=.
8847 for ac_exec_ext in '' $ac_executable_extensions; do
8848 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8849 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8850 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8859 OTOOL64=$ac_cv_prog_OTOOL64
8860 if test -n "$OTOOL64"; then
8861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8862 $as_echo "$OTOOL64" >&6; }
8864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8865 $as_echo "no" >&6; }
8870 if test -z "$ac_cv_prog_OTOOL64"; then
8871 ac_ct_OTOOL64=$OTOOL64
8872 # Extract the first word of "otool64", so it can be a program name with args.
8873 set dummy otool64; ac_word=$2
8874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8875 $as_echo_n "checking for $ac_word... " >&6; }
8876 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
8877 $as_echo_n "(cached) " >&6
8879 if test -n "$ac_ct_OTOOL64"; then
8880 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8882 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8886 test -z "$as_dir" && as_dir=.
8887 for ac_exec_ext in '' $ac_executable_extensions; do
8888 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8889 ac_cv_prog_ac_ct_OTOOL64="otool64"
8890 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8899 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8900 if test -n "$ac_ct_OTOOL64"; then
8901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8902 $as_echo "$ac_ct_OTOOL64" >&6; }
8904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8905 $as_echo "no" >&6; }
8908 if test "x$ac_ct_OTOOL64" = x; then
8911 case $cross_compiling:$ac_tool_warned in
8913 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8914 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8915 ac_tool_warned=yes ;;
8917 OTOOL64=$ac_ct_OTOOL64
8920 OTOOL64="$ac_cv_prog_OTOOL64"
8949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8950 $as_echo_n "checking for -single_module linker flag... " >&6; }
8951 if ${lt_cv_apple_cc_single_mod+:} false; then :
8952 $as_echo_n "(cached) " >&6
8954 lt_cv_apple_cc_single_mod=no
8955 if test -z "${LT_MULTI_MODULE}"; then
8956 # By default we will add the -single_module flag. You can override
8957 # by either setting the environment variable LT_MULTI_MODULE
8958 # non-empty at configure time, or by adding -multi_module to the
8960 rm -rf libconftest.dylib*
8961 echo "int foo(void){return 1;}" > conftest.c
8962 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8963 -dynamiclib -Wl,-single_module conftest.c" >&5
8964 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8965 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8967 # If there is a non-empty error log, and "single_module"
8968 # appears in it, assume the flag caused a linker warning
8969 if test -s conftest.err && $GREP single_module conftest.err; then
8970 cat conftest.err >&5
8971 # Otherwise, if the output was created with a 0 exit code from
8972 # the compiler, it worked.
8973 elif test -f libconftest.dylib && test $_lt_result -eq 0; then
8974 lt_cv_apple_cc_single_mod=yes
8976 cat conftest.err >&5
8978 rm -rf libconftest.dylib*
8982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8983 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8986 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8987 if ${lt_cv_ld_exported_symbols_list+:} false; then :
8988 $as_echo_n "(cached) " >&6
8990 lt_cv_ld_exported_symbols_list=no
8991 save_LDFLAGS=$LDFLAGS
8992 echo "_main" > conftest.sym
8993 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8994 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8995 /* end confdefs.h. */
9005 if ac_fn_c_try_link "$LINENO"; then :
9006 lt_cv_ld_exported_symbols_list=yes
9008 lt_cv_ld_exported_symbols_list=no
9010 rm -f core conftest.err conftest.$ac_objext \
9011 conftest$ac_exeext conftest.$ac_ext
9012 LDFLAGS="$save_LDFLAGS"
9015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
9016 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
9018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
9019 $as_echo_n "checking for -force_load linker flag... " >&6; }
9020 if ${lt_cv_ld_force_load+:} false; then :
9021 $as_echo_n "(cached) " >&6
9023 lt_cv_ld_force_load=no
9024 cat > conftest.c << _LT_EOF
9025 int forced_loaded() { return 2;}
9027 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
9028 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
9029 echo "$AR cru libconftest.a conftest.o" >&5
9030 $AR cru libconftest.a conftest.o 2>&5
9031 echo "$RANLIB libconftest.a" >&5
9032 $RANLIB libconftest.a 2>&5
9033 cat > conftest.c << _LT_EOF
9034 int main() { return 0;}
9036 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
9037 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
9039 if test -s conftest.err && $GREP force_load conftest.err; then
9040 cat conftest.err >&5
9041 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
9042 lt_cv_ld_force_load=yes
9044 cat conftest.err >&5
9046 rm -f conftest.err libconftest.a conftest conftest.c
9047 rm -rf conftest.dSYM
9050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
9051 $as_echo "$lt_cv_ld_force_load" >&6; }
9053 rhapsody* | darwin1.[012])
9054 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
9056 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
9057 darwin*) # darwin 5.x on
9058 # if running on 10.5 or later, the deployment target defaults
9059 # to the OS version, if on x86, and 10.4, the deployment
9060 # target defaults to 10.4. Don't you love it?
9061 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
9062 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
9063 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
9065 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
9067 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
9071 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
9072 _lt_dar_single_mod='$single_module'
9074 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
9075 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
9077 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
9079 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
9080 _lt_dsymutil='~$DSYMUTIL $lib || :'
9087 for ac_header in dlfcn.h
9089 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
9091 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
9092 cat >>confdefs.h <<_ACEOF
9093 #define HAVE_DLFCN_H 1
9112 # Check whether --enable-shared was given.
9113 if test "${enable_shared+set}" = set; then :
9114 enableval=$enable_shared; p=${PACKAGE-default}
9116 yes) enable_shared=yes ;;
9117 no) enable_shared=no ;;
9120 # Look at the argument we got. We use all the common list separators.
9121 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9122 for pkg in $enableval; do
9124 if test "X$pkg" = "X$p"; then
9143 # Check whether --enable-static was given.
9144 if test "${enable_static+set}" = set; then :
9145 enableval=$enable_static; p=${PACKAGE-default}
9147 yes) enable_static=yes ;;
9148 no) enable_static=no ;;
9151 # Look at the argument we got. We use all the common list separators.
9152 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9153 for pkg in $enableval; do
9155 if test "X$pkg" = "X$p"; then
9175 # Check whether --with-pic was given.
9176 if test "${with_pic+set}" = set; then :
9177 withval=$with_pic; lt_p=${PACKAGE-default}
9179 yes|no) pic_mode=$withval ;;
9182 # Look at the argument we got. We use all the common list separators.
9183 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9184 for lt_pkg in $withval; do
9186 if test "X$lt_pkg" = "X$lt_p"; then
9198 test -z "$pic_mode" && pic_mode=default
9206 # Check whether --enable-fast-install was given.
9207 if test "${enable_fast_install+set}" = set; then :
9208 enableval=$enable_fast_install; p=${PACKAGE-default}
9210 yes) enable_fast_install=yes ;;
9211 no) enable_fast_install=no ;;
9213 enable_fast_install=no
9214 # Look at the argument we got. We use all the common list separators.
9215 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9216 for pkg in $enableval; do
9218 if test "X$pkg" = "X$p"; then
9219 enable_fast_install=yes
9226 enable_fast_install=yes
9239 # This can be used to rebuild libtool when needed
9240 LIBTOOL_DEPS="$ltmain"
9242 # Always use our own libtool.
9243 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
9274 test -z "$LN_S" && LN_S="ln -s"
9289 if test -n "${ZSH_VERSION+set}" ; then
9290 setopt NO_GLOB_SUBST
9293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
9294 $as_echo_n "checking for objdir... " >&6; }
9295 if ${lt_cv_objdir+:} false; then :
9296 $as_echo_n "(cached) " >&6
9298 rm -f .libs 2>/dev/null
9299 mkdir .libs 2>/dev/null
9300 if test -d .libs; then
9303 # MS-DOS does not allow filenames that begin with a dot.
9306 rmdir .libs 2>/dev/null
9308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
9309 $as_echo "$lt_cv_objdir" >&6; }
9310 objdir=$lt_cv_objdir
9316 cat >>confdefs.h <<_ACEOF
9317 #define LT_OBJDIR "$lt_cv_objdir/"
9325 # AIX sometimes has problems with the GCC collect2 program. For some
9326 # reason, if we set the COLLECT_NAMES environment variable, the problems
9327 # vanish in a puff of smoke.
9328 if test "X${COLLECT_NAMES+set}" != Xset; then
9330 export COLLECT_NAMES
9337 can_build_shared=yes
9339 # All known linkers require a `.a' archive for static linking (except MSVC,
9340 # which needs '.lib').
9343 with_gnu_ld="$lt_cv_prog_gnu_ld"
9346 old_CFLAGS="$CFLAGS"
9348 # Set sane defaults for various variables
9349 test -z "$CC" && CC=cc
9350 test -z "$LTCC" && LTCC=$CC
9351 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
9352 test -z "$LD" && LD=ld
9353 test -z "$ac_objext" && ac_objext=o
9355 for cc_temp in $compiler""; do
9357 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9358 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9363 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
9366 # Only perform the check for file, if the check method requires it
9367 test -z "$MAGIC_CMD" && MAGIC_CMD=file
9368 case $deplibs_check_method in
9370 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
9371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
9372 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
9373 if ${lt_cv_path_MAGIC_CMD+:} false; then :
9374 $as_echo_n "(cached) " >&6
9378 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9381 lt_save_MAGIC_CMD="$MAGIC_CMD"
9382 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9383 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9384 for ac_dir in $ac_dummy; do
9386 test -z "$ac_dir" && ac_dir=.
9387 if test -f $ac_dir/${ac_tool_prefix}file; then
9388 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
9389 if test -n "$file_magic_test_file"; then
9390 case $deplibs_check_method in
9392 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9393 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9394 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9395 $EGREP "$file_magic_regex" > /dev/null; then
9400 *** Warning: the command libtool uses to detect shared libraries,
9401 *** $file_magic_cmd, produces output that libtool cannot recognize.
9402 *** The result is that libtool may fail to recognize shared libraries
9403 *** as such. This will affect the creation of libtool libraries that
9404 *** depend on shared libraries, but programs linked with such libtool
9405 *** libraries will work regardless of this problem. Nevertheless, you
9406 *** may want to report the problem to your system manager and/or to
9407 *** bug-libtool@gnu.org
9417 MAGIC_CMD="$lt_save_MAGIC_CMD"
9422 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9423 if test -n "$MAGIC_CMD"; then
9424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9425 $as_echo "$MAGIC_CMD" >&6; }
9427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9428 $as_echo "no" >&6; }
9435 if test -z "$lt_cv_path_MAGIC_CMD"; then
9436 if test -n "$ac_tool_prefix"; then
9437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
9438 $as_echo_n "checking for file... " >&6; }
9439 if ${lt_cv_path_MAGIC_CMD+:} false; then :
9440 $as_echo_n "(cached) " >&6
9444 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9447 lt_save_MAGIC_CMD="$MAGIC_CMD"
9448 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9449 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9450 for ac_dir in $ac_dummy; do
9452 test -z "$ac_dir" && ac_dir=.
9453 if test -f $ac_dir/file; then
9454 lt_cv_path_MAGIC_CMD="$ac_dir/file"
9455 if test -n "$file_magic_test_file"; then
9456 case $deplibs_check_method in
9458 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9459 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9460 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9461 $EGREP "$file_magic_regex" > /dev/null; then
9466 *** Warning: the command libtool uses to detect shared libraries,
9467 *** $file_magic_cmd, produces output that libtool cannot recognize.
9468 *** The result is that libtool may fail to recognize shared libraries
9469 *** as such. This will affect the creation of libtool libraries that
9470 *** depend on shared libraries, but programs linked with such libtool
9471 *** libraries will work regardless of this problem. Nevertheless, you
9472 *** may want to report the problem to your system manager and/or to
9473 *** bug-libtool@gnu.org
9483 MAGIC_CMD="$lt_save_MAGIC_CMD"
9488 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9489 if test -n "$MAGIC_CMD"; then
9490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9491 $as_echo "$MAGIC_CMD" >&6; }
9493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9494 $as_echo "no" >&6; }
9507 # Use C for the default configuration in the libtool script
9511 ac_cpp='$CPP $CPPFLAGS'
9512 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9513 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9514 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9517 # Source file extension for C test sources.
9520 # Object file extension for compiled C test sources.
9524 # Code to be used in simple compile tests
9525 lt_simple_compile_test_code="int some_variable = 0;"
9527 # Code to be used in simple link tests
9528 lt_simple_link_test_code='int main(){return(0);}'
9536 # If no C compiler was specified, use CC.
9539 # If no C compiler flags were specified, use CFLAGS.
9540 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9542 # Allow CC to be a program name with arguments.
9545 # Save the default compiler, since it gets overwritten when the other
9546 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9547 compiler_DEFAULT=$CC
9549 # save warnings/boilerplate of simple test code
9550 ac_outfile=conftest.$ac_objext
9551 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9552 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9553 _lt_compiler_boilerplate=`cat conftest.err`
9556 ac_outfile=conftest.$ac_objext
9557 echo "$lt_simple_link_test_code" >conftest.$ac_ext
9558 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9559 _lt_linker_boilerplate=`cat conftest.err`
9564 ## There is no encapsulation within the following macros, do not change
9565 ## the running order or otherwise move them around unless you know exactly
9566 ## what you are doing...
9567 if test -n "$compiler"; then
9569 lt_prog_compiler_no_builtin_flag=
9571 if test "$GCC" = yes; then
9572 case $cc_basename in
9574 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
9576 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
9579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9580 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9581 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
9582 $as_echo_n "(cached) " >&6
9584 lt_cv_prog_compiler_rtti_exceptions=no
9585 ac_outfile=conftest.$ac_objext
9586 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9587 lt_compiler_flag="-fno-rtti -fno-exceptions"
9588 # Insert the option either (1) after the last *FLAGS variable, or
9589 # (2) before a word containing "conftest.", or (3) at the end.
9590 # Note that $ac_compile itself does not contain backslashes and begins
9591 # with a dollar sign (not a hyphen), so the echo should work correctly.
9592 # The option is referenced via a variable to avoid confusing sed.
9593 lt_compile=`echo "$ac_compile" | $SED \
9594 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9595 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9596 -e 's:$: $lt_compiler_flag:'`
9597 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9598 (eval "$lt_compile" 2>conftest.err)
9600 cat conftest.err >&5
9601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9602 if (exit $ac_status) && test -s "$ac_outfile"; then
9603 # The compiler can only warn and ignore the option if not recognized
9604 # So say no if there are warnings other than the usual output.
9605 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9606 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9607 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9608 lt_cv_prog_compiler_rtti_exceptions=yes
9614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9615 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9617 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
9618 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9630 lt_prog_compiler_wl=
9631 lt_prog_compiler_pic=
9632 lt_prog_compiler_static=
9635 if test "$GCC" = yes; then
9636 lt_prog_compiler_wl='-Wl,'
9637 lt_prog_compiler_static='-static'
9641 # All AIX code is PIC.
9642 if test "$host_cpu" = ia64; then
9643 # AIX 5 now supports IA64 processor
9644 lt_prog_compiler_static='-Bstatic'
9651 # see comment about AmigaOS4 .so support
9652 lt_prog_compiler_pic='-fPIC'
9655 # FIXME: we need at least 68020 code to build shared libraries, but
9656 # adding the `-m68020' flag to GCC prevents building anything better,
9658 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9663 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9664 # PIC is the default for these OSes.
9667 mingw* | cygwin* | pw32* | os2* | cegcc*)
9668 # This hack is so that the source file can tell whether it is being
9669 # built for inclusion in a dll (and should export symbols for example).
9670 # Although the cygwin gcc ignores -fPIC, still need this for old-style
9671 # (--disable-auto-import) libraries
9672 lt_prog_compiler_pic='-DDLL_EXPORT'
9675 darwin* | rhapsody*)
9676 # PIC is the default on this platform
9677 # Common symbols not allowed in MH_DYLIB files
9678 lt_prog_compiler_pic='-fno-common'
9682 # PIC is the default for Haiku.
9683 # The "-static" flag exists, but is broken.
9684 lt_prog_compiler_static=
9688 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9689 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
9690 # sets the default TLS model and affects inlining.
9696 lt_prog_compiler_pic='-fPIC'
9702 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9703 # Instead, we relocate shared libraries at runtime.
9707 # Just because we use GCC doesn't mean we suddenly get shared libraries
9708 # on systems that don't support them.
9709 lt_prog_compiler_can_build_shared=no
9714 # QNX uses GNU C++, but need to define -shared option too, otherwise
9716 lt_prog_compiler_pic='-fPIC -shared'
9720 if test -d /usr/nec; then
9721 lt_prog_compiler_pic=-Kconform_pic
9726 lt_prog_compiler_pic='-fPIC'
9730 case $cc_basename in
9731 nvcc*) # Cuda Compiler Driver 2.2
9732 lt_prog_compiler_wl='-Xlinker '
9733 if test -n "$lt_prog_compiler_pic"; then
9734 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
9739 # PORTME Check for flag to pass linker flags through the system compiler.
9742 lt_prog_compiler_wl='-Wl,'
9743 if test "$host_cpu" = ia64; then
9744 # AIX 5 now supports IA64 processor
9745 lt_prog_compiler_static='-Bstatic'
9747 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9751 mingw* | cygwin* | pw32* | os2* | cegcc*)
9752 # This hack is so that the source file can tell whether it is being
9753 # built for inclusion in a dll (and should export symbols for example).
9754 lt_prog_compiler_pic='-DDLL_EXPORT'
9757 hpux9* | hpux10* | hpux11*)
9758 lt_prog_compiler_wl='-Wl,'
9759 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9766 lt_prog_compiler_pic='+Z'
9769 # Is there a better lt_prog_compiler_static that works with the bundled CC?
9770 lt_prog_compiler_static='${wl}-a ${wl}archive'
9773 irix5* | irix6* | nonstopux*)
9774 lt_prog_compiler_wl='-Wl,'
9775 # PIC (with -KPIC) is the default.
9776 lt_prog_compiler_static='-non_shared'
9779 linux* | k*bsd*-gnu | kopensolaris*-gnu)
9780 case $cc_basename in
9781 # old Intel for x86_64 which still supported -KPIC.
9783 lt_prog_compiler_wl='-Wl,'
9784 lt_prog_compiler_pic='-KPIC'
9785 lt_prog_compiler_static='-static'
9787 # icc used to be incompatible with GCC.
9788 # ICC 10 doesn't accept -KPIC any more.
9790 lt_prog_compiler_wl='-Wl,'
9791 lt_prog_compiler_pic='-fPIC'
9792 lt_prog_compiler_static='-static'
9794 # Lahey Fortran 8.1.
9796 lt_prog_compiler_wl='-Wl,'
9797 lt_prog_compiler_pic='--shared'
9798 lt_prog_compiler_static='--static'
9801 # NAG Fortran compiler
9802 lt_prog_compiler_wl='-Wl,-Wl,,'
9803 lt_prog_compiler_pic='-PIC'
9804 lt_prog_compiler_static='-Bstatic'
9806 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9807 # Portland Group compilers (*not* the Pentium gcc compiler,
9808 # which looks to be a dead project)
9809 lt_prog_compiler_wl='-Wl,'
9810 lt_prog_compiler_pic='-fpic'
9811 lt_prog_compiler_static='-Bstatic'
9814 lt_prog_compiler_wl='-Wl,'
9815 # All Alpha code is PIC.
9816 lt_prog_compiler_static='-non_shared'
9818 xl* | bgxl* | bgf* | mpixl*)
9819 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9820 lt_prog_compiler_wl='-Wl,'
9821 lt_prog_compiler_pic='-qpic'
9822 lt_prog_compiler_static='-qstaticlink'
9825 case `$CC -V 2>&1 | sed 5q` in
9826 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
9827 # Sun Fortran 8.3 passes all unrecognized flags to the linker
9828 lt_prog_compiler_pic='-KPIC'
9829 lt_prog_compiler_static='-Bstatic'
9830 lt_prog_compiler_wl=''
9832 *Sun\ F* | *Sun*Fortran*)
9833 lt_prog_compiler_pic='-KPIC'
9834 lt_prog_compiler_static='-Bstatic'
9835 lt_prog_compiler_wl='-Qoption ld '
9839 lt_prog_compiler_pic='-KPIC'
9840 lt_prog_compiler_static='-Bstatic'
9841 lt_prog_compiler_wl='-Wl,'
9843 *Intel*\ [CF]*Compiler*)
9844 lt_prog_compiler_wl='-Wl,'
9845 lt_prog_compiler_pic='-fPIC'
9846 lt_prog_compiler_static='-static'
9849 lt_prog_compiler_wl='-Wl,'
9850 lt_prog_compiler_pic='-fpic'
9851 lt_prog_compiler_static='-Bstatic'
9859 lt_prog_compiler_pic='-KPIC'
9860 lt_prog_compiler_static='-Bstatic'
9864 # QNX uses GNU C++, but need to define -shared option too, otherwise
9866 lt_prog_compiler_pic='-fPIC -shared'
9869 osf3* | osf4* | osf5*)
9870 lt_prog_compiler_wl='-Wl,'
9871 # All OSF/1 code is PIC.
9872 lt_prog_compiler_static='-non_shared'
9876 lt_prog_compiler_static='-non_shared'
9880 lt_prog_compiler_pic='-KPIC'
9881 lt_prog_compiler_static='-Bstatic'
9882 case $cc_basename in
9883 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
9884 lt_prog_compiler_wl='-Qoption ld ';;
9886 lt_prog_compiler_wl='-Wl,';;
9891 lt_prog_compiler_wl='-Qoption ld '
9892 lt_prog_compiler_pic='-PIC'
9893 lt_prog_compiler_static='-Bstatic'
9896 sysv4 | sysv4.2uw2* | sysv4.3*)
9897 lt_prog_compiler_wl='-Wl,'
9898 lt_prog_compiler_pic='-KPIC'
9899 lt_prog_compiler_static='-Bstatic'
9903 if test -d /usr/nec ;then
9904 lt_prog_compiler_pic='-Kconform_pic'
9905 lt_prog_compiler_static='-Bstatic'
9909 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9910 lt_prog_compiler_wl='-Wl,'
9911 lt_prog_compiler_pic='-KPIC'
9912 lt_prog_compiler_static='-Bstatic'
9916 lt_prog_compiler_wl='-Wl,'
9917 lt_prog_compiler_can_build_shared=no
9921 lt_prog_compiler_pic='-pic'
9922 lt_prog_compiler_static='-Bstatic'
9926 lt_prog_compiler_can_build_shared=no
9932 # For platforms which do not support PIC, -DPIC is meaningless:
9934 lt_prog_compiler_pic=
9937 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9942 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9943 if ${lt_cv_prog_compiler_pic+:} false; then :
9944 $as_echo_n "(cached) " >&6
9946 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
9948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
9949 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
9950 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
9953 # Check to make sure the PIC flag actually works.
9955 if test -n "$lt_prog_compiler_pic"; then
9956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9957 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9958 if ${lt_cv_prog_compiler_pic_works+:} false; then :
9959 $as_echo_n "(cached) " >&6
9961 lt_cv_prog_compiler_pic_works=no
9962 ac_outfile=conftest.$ac_objext
9963 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9964 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9965 # Insert the option either (1) after the last *FLAGS variable, or
9966 # (2) before a word containing "conftest.", or (3) at the end.
9967 # Note that $ac_compile itself does not contain backslashes and begins
9968 # with a dollar sign (not a hyphen), so the echo should work correctly.
9969 # The option is referenced via a variable to avoid confusing sed.
9970 lt_compile=`echo "$ac_compile" | $SED \
9971 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9972 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9973 -e 's:$: $lt_compiler_flag:'`
9974 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9975 (eval "$lt_compile" 2>conftest.err)
9977 cat conftest.err >&5
9978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9979 if (exit $ac_status) && test -s "$ac_outfile"; then
9980 # The compiler can only warn and ignore the option if not recognized
9981 # So say no if there are warnings other than the usual output.
9982 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9983 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9984 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9985 lt_cv_prog_compiler_pic_works=yes
9991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9992 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9994 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9995 case $lt_prog_compiler_pic in
9997 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
10000 lt_prog_compiler_pic=
10001 lt_prog_compiler_can_build_shared=no
10017 # Check to make sure the static flag actually works.
10019 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
10020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
10021 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
10022 if ${lt_cv_prog_compiler_static_works+:} false; then :
10023 $as_echo_n "(cached) " >&6
10025 lt_cv_prog_compiler_static_works=no
10026 save_LDFLAGS="$LDFLAGS"
10027 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
10028 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10029 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10030 # The linker can only warn and ignore the option if not recognized
10031 # So say no if there are warnings
10032 if test -s conftest.err; then
10033 # Append any errors to the config.log.
10034 cat conftest.err 1>&5
10035 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10036 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10037 if diff conftest.exp conftest.er2 >/dev/null; then
10038 lt_cv_prog_compiler_static_works=yes
10041 lt_cv_prog_compiler_static_works=yes
10045 LDFLAGS="$save_LDFLAGS"
10048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
10049 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
10051 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
10054 lt_prog_compiler_static=
10063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10064 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10065 if ${lt_cv_prog_compiler_c_o+:} false; then :
10066 $as_echo_n "(cached) " >&6
10068 lt_cv_prog_compiler_c_o=no
10069 $RM -r conftest 2>/dev/null
10073 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10075 lt_compiler_flag="-o out/conftest2.$ac_objext"
10076 # Insert the option either (1) after the last *FLAGS variable, or
10077 # (2) before a word containing "conftest.", or (3) at the end.
10078 # Note that $ac_compile itself does not contain backslashes and begins
10079 # with a dollar sign (not a hyphen), so the echo should work correctly.
10080 lt_compile=`echo "$ac_compile" | $SED \
10081 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10082 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10083 -e 's:$: $lt_compiler_flag:'`
10084 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10085 (eval "$lt_compile" 2>out/conftest.err)
10087 cat out/conftest.err >&5
10088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10089 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10091 # The compiler can only warn and ignore the option if not recognized
10092 # So say no if there are warnings
10093 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10094 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10095 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10096 lt_cv_prog_compiler_c_o=yes
10101 # SGI C++ compiler will create directory out/ii_files/ for
10102 # template instantiation
10103 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10104 $RM out/* && rmdir out
10110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10111 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10119 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10120 if ${lt_cv_prog_compiler_c_o+:} false; then :
10121 $as_echo_n "(cached) " >&6
10123 lt_cv_prog_compiler_c_o=no
10124 $RM -r conftest 2>/dev/null
10128 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10130 lt_compiler_flag="-o out/conftest2.$ac_objext"
10131 # Insert the option either (1) after the last *FLAGS variable, or
10132 # (2) before a word containing "conftest.", or (3) at the end.
10133 # Note that $ac_compile itself does not contain backslashes and begins
10134 # with a dollar sign (not a hyphen), so the echo should work correctly.
10135 lt_compile=`echo "$ac_compile" | $SED \
10136 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10137 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10138 -e 's:$: $lt_compiler_flag:'`
10139 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10140 (eval "$lt_compile" 2>out/conftest.err)
10142 cat out/conftest.err >&5
10143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10144 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10146 # The compiler can only warn and ignore the option if not recognized
10147 # So say no if there are warnings
10148 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10149 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10150 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10151 lt_cv_prog_compiler_c_o=yes
10156 # SGI C++ compiler will create directory out/ii_files/ for
10157 # template instantiation
10158 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10159 $RM out/* && rmdir out
10165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10166 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10171 hard_links="nottested"
10172 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
10173 # do not overwrite the value of need_locks provided by the user
10174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
10175 $as_echo_n "checking if we can lock with hard links... " >&6; }
10178 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10180 ln conftest.a conftest.b 2>&5 || hard_links=no
10181 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
10183 $as_echo "$hard_links" >&6; }
10184 if test "$hard_links" = no; then
10185 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
10186 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
10198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10199 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
10202 allow_undefined_flag=
10203 always_export_symbols=no
10205 archive_expsym_cmds=
10206 compiler_needs_object=no
10207 enable_shared_with_static_runtimes=no
10208 export_dynamic_flag_spec=
10209 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10210 hardcode_automatic=no
10212 hardcode_direct_absolute=no
10213 hardcode_libdir_flag_spec=
10214 hardcode_libdir_separator=
10215 hardcode_minus_L=no
10216 hardcode_shlibpath_var=unsupported
10218 link_all_deplibs=unknown
10220 module_expsym_cmds=
10221 old_archive_from_new_cmds=
10222 old_archive_from_expsyms_cmds=
10223 thread_safe_flag_spec=
10224 whole_archive_flag_spec=
10225 # include_expsyms should be a list of space-separated symbols to be *always*
10226 # included in the symbol list
10228 # exclude_expsyms can be an extended regexp of symbols to exclude
10229 # it will be wrapped by ` (' and `)$', so one must not match beginning or
10230 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
10231 # as well as any symbol that contains `d'.
10232 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
10233 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
10234 # platforms (ab)use it in PIC code, but their linkers get confused if
10235 # the symbol is explicitly referenced. Since portable code cannot
10236 # rely on this symbol name, it's probably fine to never include it in
10237 # preloaded symbol tables.
10238 # Exclude shared library initialization/finalization symbols.
10239 extract_expsyms_cmds=
10242 cygwin* | mingw* | pw32* | cegcc*)
10243 # FIXME: the MSVC++ port hasn't been tested in a loooong time
10244 # When not using gcc, we currently assume that we are using
10245 # Microsoft Visual C++.
10246 if test "$GCC" != yes; then
10251 # we just hope/assume this is gcc and not c89 (= MSVC++)
10257 linux* | k*bsd*-gnu | gnu*)
10258 link_all_deplibs=no
10264 # On some targets, GNU ld is compatible enough with the native linker
10265 # that we're better off using the native interface for both.
10266 lt_use_gnu_ld_interface=no
10267 if test "$with_gnu_ld" = yes; then
10270 # The AIX port of GNU ld has always aspired to compatibility
10271 # with the native linker. However, as the warning in the GNU ld
10272 # block says, versions before 2.19.5* couldn't really create working
10273 # shared libraries, regardless of the interface used.
10274 case `$LD -v 2>&1` in
10275 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
10276 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
10277 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
10279 lt_use_gnu_ld_interface=yes
10284 lt_use_gnu_ld_interface=yes
10289 if test "$lt_use_gnu_ld_interface" = yes; then
10290 # If archive_cmds runs LD, not CC, wlarc should be empty
10293 # Set some defaults for GNU ld with shared library support. These
10294 # are reset later if shared libraries are not supported. Putting them
10295 # here allows them to be overridden if necessary.
10296 runpath_var=LD_RUN_PATH
10297 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10298 export_dynamic_flag_spec='${wl}--export-dynamic'
10299 # ancient GNU ld didn't support --whole-archive et. al.
10300 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
10301 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10303 whole_archive_flag_spec=
10305 supports_anon_versioning=no
10306 case `$LD -v 2>&1` in
10307 *GNU\ gold*) supports_anon_versioning=yes ;;
10308 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
10309 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
10310 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
10311 *\ 2.11.*) ;; # other 2.11 versions
10312 *) supports_anon_versioning=yes ;;
10315 # See if GNU ld supports shared libraries.
10318 # On AIX/PPC, the GNU linker is very broken
10319 if test "$host_cpu" != ia64; then
10323 *** Warning: the GNU linker, at least up to release 2.19, is reported
10324 *** to be unable to reliably create shared libraries on AIX.
10325 *** Therefore, libtool is disabling shared libraries support. If you
10326 *** really care for shared libraries, you may want to install binutils
10327 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
10328 *** You will then need to restart the configuration process.
10337 # see comment about AmigaOS4 .so support
10338 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10339 archive_expsym_cmds=''
10342 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)'
10343 hardcode_libdir_flag_spec='-L$libdir'
10344 hardcode_minus_L=yes
10350 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10351 allow_undefined_flag=unsupported
10352 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10353 # support --undefined. This deserves some investigation. FIXME
10354 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10360 cygwin* | mingw* | pw32* | cegcc*)
10361 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
10362 # as there is no search path for DLLs.
10363 hardcode_libdir_flag_spec='-L$libdir'
10364 export_dynamic_flag_spec='${wl}--export-all-symbols'
10365 allow_undefined_flag=unsupported
10366 always_export_symbols=no
10367 enable_shared_with_static_runtimes=yes
10368 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'
10369 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
10371 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
10372 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10373 # If the export-symbols file already is a .def file (1st line
10374 # is EXPORTS), use it as is; otherwise, prepend...
10375 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10376 cp $export_symbols $output_objdir/$soname.def;
10378 echo EXPORTS > $output_objdir/$soname.def;
10379 cat $export_symbols >> $output_objdir/$soname.def;
10381 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10388 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10389 link_all_deplibs=yes
10394 hardcode_shlibpath_var=no
10395 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10396 export_dynamic_flag_spec='${wl}-E'
10397 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10398 # Instead, shared libraries are loaded at an image base (0x10000000 by
10399 # default) and relocated if they conflict, which is a slow very memory
10400 # consuming and fragmenting process. To avoid this, we pick a random,
10401 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10402 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
10403 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10404 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'
10407 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
10409 if test "$host_os" = linux-dietlibc; then
10410 case $cc_basename in
10411 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
10414 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
10415 && test "$tmp_diet" = no
10417 tmp_addflag=' $pic_flag'
10418 tmp_sharedflag='-shared'
10419 case $cc_basename,$host_cpu in
10420 pgcc*) # Portland Group C compiler
10421 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'
10422 tmp_addflag=' $pic_flag'
10424 pgf77* | pgf90* | pgf95* | pgfortran*)
10425 # Portland Group f77 and f90 compilers
10426 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'
10427 tmp_addflag=' $pic_flag -Mnomain' ;;
10428 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
10429 tmp_addflag=' -i_dynamic' ;;
10430 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
10431 tmp_addflag=' -i_dynamic -nofor_main' ;;
10432 ifc* | ifort*) # Intel Fortran compiler
10433 tmp_addflag=' -nofor_main' ;;
10434 lf95*) # Lahey Fortran 8.1
10435 whole_archive_flag_spec=
10436 tmp_sharedflag='--shared' ;;
10437 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
10438 tmp_sharedflag='-qmkshrobj'
10440 nvcc*) # Cuda Compiler Driver 2.2
10441 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'
10442 compiler_needs_object=yes
10445 case `$CC -V 2>&1 | sed 5q` in
10446 *Sun\ C*) # Sun C 5.9
10447 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'
10448 compiler_needs_object=yes
10449 tmp_sharedflag='-G' ;;
10450 *Sun\ F*) # Sun Fortran 8.3
10451 tmp_sharedflag='-G' ;;
10453 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10455 if test "x$supports_anon_versioning" = xyes; then
10456 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10457 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10458 echo "local: *; };" >> $output_objdir/$libname.ver~
10459 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
10462 case $cc_basename in
10463 xlf* | bgf* | bgxlf* | mpixlf*)
10464 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10465 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
10466 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10467 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
10468 if test "x$supports_anon_versioning" = xyes; then
10469 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10470 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10471 echo "local: *; };" >> $output_objdir/$libname.ver~
10472 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10481 netbsd* | netbsdelf*-gnu)
10482 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10483 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10486 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10487 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10492 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10496 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
10497 *** create shared libraries on Solaris systems. Therefore, libtool
10498 *** is disabling shared libraries support. We urge you to upgrade GNU
10499 *** binutils to release 2.9.1 or newer. Another option is to modify
10500 *** your PATH or compiler configuration so that the native linker is
10501 *** used, and then restart.
10504 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10505 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10506 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10512 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10513 case `$LD -v 2>&1` in
10514 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10518 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
10519 *** reliably create shared libraries on SCO systems. Therefore, libtool
10520 *** is disabling shared libraries support. We urge you to upgrade GNU
10521 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
10522 *** your PATH or compiler configuration so that the native linker is
10523 *** used, and then restart.
10528 # For security reasons, it is highly recommended that you always
10529 # use absolute paths for naming shared libraries, and exclude the
10530 # DT_RUNPATH tag from executables and libraries. But doing so
10531 # requires that you compile everything twice, which is a pain.
10532 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10533 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10534 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10535 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10544 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10546 hardcode_direct=yes
10547 hardcode_shlibpath_var=no
10551 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10552 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10553 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10560 if test "$ld_shlibs" = no; then
10562 hardcode_libdir_flag_spec=
10563 export_dynamic_flag_spec=
10564 whole_archive_flag_spec=
10567 # PORTME fill in a description of your system's linker (not GNU ld)
10570 allow_undefined_flag=unsupported
10571 always_export_symbols=yes
10572 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'
10573 # Note: this linker hardcodes the directories in LIBPATH if there
10574 # are no directories specified by -L.
10575 hardcode_minus_L=yes
10576 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
10577 # Neither direct hardcoding nor static linking is supported with a
10579 hardcode_direct=unsupported
10584 if test "$host_cpu" = ia64; then
10585 # On IA64, the linker does run time linking by default, so we don't
10586 # have to do anything special.
10587 aix_use_runtimelinking=no
10588 exp_sym_flag='-Bexport'
10591 # If we're using GNU nm, then we don't want the "-C" option.
10592 # -C means demangle to AIX nm, but means don't demangle with GNU nm
10593 # Also, AIX nm treats weak defined symbols like other global
10594 # defined symbols, whereas GNU nm marks them as "W".
10595 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10596 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'
10598 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'
10600 aix_use_runtimelinking=no
10602 # Test if we are trying to use run time linking or normal
10603 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10604 # need to do runtime linking.
10605 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10606 for ld_flag in $LDFLAGS; do
10607 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
10608 aix_use_runtimelinking=yes
10615 exp_sym_flag='-bexport'
10616 no_entry_flag='-bnoentry'
10619 # When large executables or shared objects are built, AIX ld can
10620 # have problems creating the table of contents. If linking a library
10621 # or program results in "error TOC overflow" add -mminimal-toc to
10622 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10623 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10626 hardcode_direct=yes
10627 hardcode_direct_absolute=yes
10628 hardcode_libdir_separator=':'
10629 link_all_deplibs=yes
10630 file_list_spec='${wl}-f,'
10632 if test "$GCC" = yes; then
10633 case $host_os in aix4.[012]|aix4.[012].*)
10634 # We only want to do this on AIX 4.2 and lower, the check
10635 # below for broken collect2 doesn't work under 4.3+
10636 collect2name=`${CC} -print-prog-name=collect2`
10637 if test -f "$collect2name" &&
10638 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10640 # We have reworked collect2
10643 # We have old collect2
10644 hardcode_direct=unsupported
10645 # It fails to find uninstalled libraries when the uninstalled
10646 # path is not listed in the libpath. Setting hardcode_minus_L
10647 # to unsupported forces relinking
10648 hardcode_minus_L=yes
10649 hardcode_libdir_flag_spec='-L$libdir'
10650 hardcode_libdir_separator=
10654 shared_flag='-shared'
10655 if test "$aix_use_runtimelinking" = yes; then
10656 shared_flag="$shared_flag "'${wl}-G'
10658 link_all_deplibs=no
10661 if test "$host_cpu" = ia64; then
10662 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10663 # chokes on -Wl,-G. The following line is correct:
10666 if test "$aix_use_runtimelinking" = yes; then
10667 shared_flag='${wl}-G'
10669 shared_flag='${wl}-bM:SRE'
10674 export_dynamic_flag_spec='${wl}-bexpall'
10675 # It seems that -bexpall does not export symbols beginning with
10676 # underscore (_), so it is better to generate a list of symbols to export.
10677 always_export_symbols=yes
10678 if test "$aix_use_runtimelinking" = yes; then
10679 # Warning - without using the other runtime loading flags (-brtl),
10680 # -berok will link without error, but may produce a broken library.
10681 allow_undefined_flag='-berok'
10682 # Determine the default libpath from the value encoded in an
10683 # empty executable.
10684 if test "${lt_cv_aix_libpath+set}" = set; then
10685 aix_libpath=$lt_cv_aix_libpath
10687 if ${lt_cv_aix_libpath_+:} false; then :
10688 $as_echo_n "(cached) " >&6
10690 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10691 /* end confdefs.h. */
10701 if ac_fn_c_try_link "$LINENO"; then :
10703 lt_aix_libpath_sed='
10704 /Import File Strings/,/^$/ {
10706 s/^0 *\([^ ]*\) *$/\1/
10710 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10711 # Check for a 64-bit object if we didn't find anything.
10712 if test -z "$lt_cv_aix_libpath_"; then
10713 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10716 rm -f core conftest.err conftest.$ac_objext \
10717 conftest$ac_exeext conftest.$ac_ext
10718 if test -z "$lt_cv_aix_libpath_"; then
10719 lt_cv_aix_libpath_="/usr/lib:/lib"
10724 aix_libpath=$lt_cv_aix_libpath_
10727 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10728 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"
10730 if test "$host_cpu" = ia64; then
10731 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
10732 allow_undefined_flag="-z nodefs"
10733 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"
10735 # Determine the default libpath from the value encoded in an
10736 # empty executable.
10737 if test "${lt_cv_aix_libpath+set}" = set; then
10738 aix_libpath=$lt_cv_aix_libpath
10740 if ${lt_cv_aix_libpath_+:} false; then :
10741 $as_echo_n "(cached) " >&6
10743 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10744 /* end confdefs.h. */
10754 if ac_fn_c_try_link "$LINENO"; then :
10756 lt_aix_libpath_sed='
10757 /Import File Strings/,/^$/ {
10759 s/^0 *\([^ ]*\) *$/\1/
10763 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10764 # Check for a 64-bit object if we didn't find anything.
10765 if test -z "$lt_cv_aix_libpath_"; then
10766 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10769 rm -f core conftest.err conftest.$ac_objext \
10770 conftest$ac_exeext conftest.$ac_ext
10771 if test -z "$lt_cv_aix_libpath_"; then
10772 lt_cv_aix_libpath_="/usr/lib:/lib"
10777 aix_libpath=$lt_cv_aix_libpath_
10780 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10781 # Warning - without using the other run time loading flags,
10782 # -berok will link without error, but may produce a broken library.
10783 no_undefined_flag=' ${wl}-bernotok'
10784 allow_undefined_flag=' ${wl}-berok'
10785 if test "$with_gnu_ld" = yes; then
10786 # We only use this code for GNU lds that support --whole-archive.
10787 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10789 # Exported symbols can be pulled into shared objects from archives
10790 whole_archive_flag_spec='$convenience'
10792 archive_cmds_need_lc=yes
10793 # This is similar to how AIX traditionally builds its shared libraries.
10794 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'
10802 # see comment about AmigaOS4 .so support
10803 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10804 archive_expsym_cmds=''
10807 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)'
10808 hardcode_libdir_flag_spec='-L$libdir'
10809 hardcode_minus_L=yes
10815 export_dynamic_flag_spec=-rdynamic
10818 cygwin* | mingw* | pw32* | cegcc*)
10819 # When not using gcc, we currently assume that we are using
10820 # Microsoft Visual C++.
10821 # hardcode_libdir_flag_spec is actually meaningless, as there is
10822 # no search path for DLLs.
10823 case $cc_basename in
10826 hardcode_libdir_flag_spec=' '
10827 allow_undefined_flag=unsupported
10828 always_export_symbols=yes
10830 # Tell ltmain to make .lib files, not .a files.
10832 # Tell ltmain to make .dll files, not .so files.
10834 # FIXME: Setting linknames here is a bad hack.
10835 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
10836 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10837 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
10839 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
10841 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
10843 # The linker will not automatically build a static lib if we build a DLL.
10844 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
10845 enable_shared_with_static_runtimes=yes
10846 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
10847 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10849 old_postinstall_cmds='chmod 644 $oldlib'
10850 postlink_cmds='lt_outputfile="@OUTPUT@"~
10851 lt_tool_outputfile="@TOOL_OUTPUT@"~
10852 case $lt_outputfile in
10855 lt_outputfile="$lt_outputfile.exe"
10856 lt_tool_outputfile="$lt_tool_outputfile.exe"
10859 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
10860 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
10861 $RM "$lt_outputfile.manifest";
10865 # Assume MSVC wrapper
10866 hardcode_libdir_flag_spec=' '
10867 allow_undefined_flag=unsupported
10868 # Tell ltmain to make .lib files, not .a files.
10870 # Tell ltmain to make .dll files, not .so files.
10872 # FIXME: Setting linknames here is a bad hack.
10873 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10874 # The linker will automatically build a .lib file if we build a DLL.
10875 old_archive_from_new_cmds='true'
10876 # FIXME: Should let the user specify the lib program.
10877 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10878 enable_shared_with_static_runtimes=yes
10883 darwin* | rhapsody*)
10886 archive_cmds_need_lc=no
10888 hardcode_automatic=yes
10889 hardcode_shlibpath_var=unsupported
10890 if test "$lt_cv_ld_force_load" = "yes"; then
10891 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\"`'
10894 whole_archive_flag_spec=''
10896 link_all_deplibs=yes
10897 allow_undefined_flag="$_lt_dar_allow_undefined"
10898 case $cc_basename in
10899 ifort*) _lt_dar_can_shared=yes ;;
10900 *) _lt_dar_can_shared=$GCC ;;
10902 if test "$_lt_dar_can_shared" = "yes"; then
10903 output_verbose_link_cmd=func_echo_all
10904 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
10905 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
10906 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}"
10907 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}"
10916 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10917 hardcode_libdir_flag_spec='-L$libdir'
10918 hardcode_shlibpath_var=no
10921 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10922 # support. Future versions do this automatically, but an explicit c++rt0.o
10923 # does not break anything, and helps significantly (at the cost of a little
10926 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10927 hardcode_libdir_flag_spec='-R$libdir'
10928 hardcode_direct=yes
10929 hardcode_shlibpath_var=no
10932 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10934 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10935 hardcode_direct=yes
10936 hardcode_minus_L=yes
10937 hardcode_shlibpath_var=no
10940 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10941 freebsd* | dragonfly*)
10942 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10943 hardcode_libdir_flag_spec='-R$libdir'
10944 hardcode_direct=yes
10945 hardcode_shlibpath_var=no
10949 if test "$GCC" = yes; then
10950 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'
10952 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'
10954 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10955 hardcode_libdir_separator=:
10956 hardcode_direct=yes
10958 # hardcode_minus_L: Not really in the search PATH,
10959 # but as the default location of the library.
10960 hardcode_minus_L=yes
10961 export_dynamic_flag_spec='${wl}-E'
10965 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10966 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10968 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10970 if test "$with_gnu_ld" = no; then
10971 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10972 hardcode_libdir_separator=:
10973 hardcode_direct=yes
10974 hardcode_direct_absolute=yes
10975 export_dynamic_flag_spec='${wl}-E'
10976 # hardcode_minus_L: Not really in the search PATH,
10977 # but as the default location of the library.
10978 hardcode_minus_L=yes
10983 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10986 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10989 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10992 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10998 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11001 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11005 # Older versions of the 11.00 compiler do not understand -b yet
11006 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
11007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
11008 $as_echo_n "checking if $CC understands -b... " >&6; }
11009 if ${lt_cv_prog_compiler__b+:} false; then :
11010 $as_echo_n "(cached) " >&6
11012 lt_cv_prog_compiler__b=no
11013 save_LDFLAGS="$LDFLAGS"
11014 LDFLAGS="$LDFLAGS -b"
11015 echo "$lt_simple_link_test_code" > conftest.$ac_ext
11016 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11017 # The linker can only warn and ignore the option if not recognized
11018 # So say no if there are warnings
11019 if test -s conftest.err; then
11020 # Append any errors to the config.log.
11021 cat conftest.err 1>&5
11022 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
11023 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11024 if diff conftest.exp conftest.er2 >/dev/null; then
11025 lt_cv_prog_compiler__b=yes
11028 lt_cv_prog_compiler__b=yes
11032 LDFLAGS="$save_LDFLAGS"
11035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
11036 $as_echo "$lt_cv_prog_compiler__b" >&6; }
11038 if test x"$lt_cv_prog_compiler__b" = xyes; then
11039 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11041 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11047 if test "$with_gnu_ld" = no; then
11048 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
11049 hardcode_libdir_separator=:
11054 hardcode_shlibpath_var=no
11057 hardcode_direct=yes
11058 hardcode_direct_absolute=yes
11059 export_dynamic_flag_spec='${wl}-E'
11061 # hardcode_minus_L: Not really in the search PATH,
11062 # but as the default location of the library.
11063 hardcode_minus_L=yes
11069 irix5* | irix6* | nonstopux*)
11070 if test "$GCC" = yes; then
11071 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'
11072 # Try to use the -exported_symbol ld option, if it does not
11073 # work, assume that -exports_file does not work either and
11074 # implicitly export all symbols.
11075 # This should be the same for all languages, so no per-tag cache variable.
11076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
11077 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
11078 if ${lt_cv_irix_exported_symbol+:} false; then :
11079 $as_echo_n "(cached) " >&6
11081 save_LDFLAGS="$LDFLAGS"
11082 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
11083 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11084 /* end confdefs.h. */
11085 int foo (void) { return 0; }
11087 if ac_fn_c_try_link "$LINENO"; then :
11088 lt_cv_irix_exported_symbol=yes
11090 lt_cv_irix_exported_symbol=no
11092 rm -f core conftest.err conftest.$ac_objext \
11093 conftest$ac_exeext conftest.$ac_ext
11094 LDFLAGS="$save_LDFLAGS"
11096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
11097 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
11098 if test "$lt_cv_irix_exported_symbol" = yes; then
11099 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'
11102 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'
11103 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'
11105 archive_cmds_need_lc='no'
11106 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11107 hardcode_libdir_separator=:
11109 link_all_deplibs=yes
11112 netbsd* | netbsdelf*-gnu)
11113 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11114 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
11116 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
11118 hardcode_libdir_flag_spec='-R$libdir'
11119 hardcode_direct=yes
11120 hardcode_shlibpath_var=no
11124 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11125 hardcode_direct=yes
11126 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11127 hardcode_libdir_separator=:
11128 hardcode_shlibpath_var=no
11135 if test -f /usr/libexec/ld.so; then
11136 hardcode_direct=yes
11137 hardcode_shlibpath_var=no
11138 hardcode_direct_absolute=yes
11139 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11140 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11141 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
11142 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
11143 export_dynamic_flag_spec='${wl}-E'
11146 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
11147 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11148 hardcode_libdir_flag_spec='-R$libdir'
11151 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11152 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
11162 hardcode_libdir_flag_spec='-L$libdir'
11163 hardcode_minus_L=yes
11164 allow_undefined_flag=unsupported
11165 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'
11166 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
11170 if test "$GCC" = yes; then
11171 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
11172 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'
11174 allow_undefined_flag=' -expect_unresolved \*'
11175 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'
11177 archive_cmds_need_lc='no'
11178 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11179 hardcode_libdir_separator=:
11182 osf4* | osf5*) # as osf3* with the addition of -msym flag
11183 if test "$GCC" = yes; then
11184 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
11185 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'
11186 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11188 allow_undefined_flag=' -expect_unresolved \*'
11189 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'
11190 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~
11191 $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'
11193 # Both c and cxx compiler support -rpath directly
11194 hardcode_libdir_flag_spec='-rpath $libdir'
11196 archive_cmds_need_lc='no'
11197 hardcode_libdir_separator=:
11201 no_undefined_flag=' -z defs'
11202 if test "$GCC" = yes; then
11204 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11205 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11206 $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'
11208 case `$CC -V 2>&1` in
11211 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
11212 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11213 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
11217 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
11218 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11219 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
11223 hardcode_libdir_flag_spec='-R$libdir'
11224 hardcode_shlibpath_var=no
11226 solaris2.[0-5] | solaris2.[0-5].*) ;;
11228 # The compiler driver will combine and reorder linker options,
11229 # but understands `-z linker_flag'. GCC discards it without `$wl',
11230 # but is careful enough not to reorder.
11231 # Supported since Solaris 2.6 (maybe 2.5.1?)
11232 if test "$GCC" = yes; then
11233 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
11235 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
11239 link_all_deplibs=yes
11243 if test "x$host_vendor" = xsequent; then
11244 # Use $CC to link under sequent, because it throws in some extra .o
11245 # files that make .init and .fini sections work.
11246 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
11248 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
11250 hardcode_libdir_flag_spec='-L$libdir'
11251 hardcode_direct=yes
11252 hardcode_minus_L=yes
11253 hardcode_shlibpath_var=no
11257 case $host_vendor in
11259 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11260 hardcode_direct=yes # is this really true???
11263 ## LD is ld it makes a PLAMLIB
11264 ## CC just makes a GrossModule.
11265 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
11266 reload_cmds='$CC -r -o $output$reload_objs'
11270 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11271 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
11274 runpath_var='LD_RUN_PATH'
11275 hardcode_shlibpath_var=no
11279 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11280 hardcode_shlibpath_var=no
11281 export_dynamic_flag_spec='-Bexport'
11285 if test -d /usr/nec; then
11286 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11287 hardcode_shlibpath_var=no
11288 runpath_var=LD_RUN_PATH
11289 hardcode_runpath_var=yes
11294 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11295 no_undefined_flag='${wl}-z,text'
11296 archive_cmds_need_lc=no
11297 hardcode_shlibpath_var=no
11298 runpath_var='LD_RUN_PATH'
11300 if test "$GCC" = yes; then
11301 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11302 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11304 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11305 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11309 sysv5* | sco3.2v5* | sco5v6*)
11310 # Note: We can NOT use -z defs as we might desire, because we do not
11311 # link with -lc, and that would cause any symbols used from libc to
11312 # always be unresolved, which means just about no library would
11313 # ever link correctly. If we're not using GNU ld we use -z text
11314 # though, which does catch some bad symbols but isn't as heavy-handed
11316 no_undefined_flag='${wl}-z,text'
11317 allow_undefined_flag='${wl}-z,nodefs'
11318 archive_cmds_need_lc=no
11319 hardcode_shlibpath_var=no
11320 hardcode_libdir_flag_spec='${wl}-R,$libdir'
11321 hardcode_libdir_separator=':'
11322 link_all_deplibs=yes
11323 export_dynamic_flag_spec='${wl}-Bexport'
11324 runpath_var='LD_RUN_PATH'
11326 if test "$GCC" = yes; then
11327 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11328 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11330 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11331 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11336 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11337 hardcode_libdir_flag_spec='-L$libdir'
11338 hardcode_shlibpath_var=no
11346 if test x$host_vendor = xsni; then
11348 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11349 export_dynamic_flag_spec='${wl}-Blargedynsym'
11355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
11356 $as_echo "$ld_shlibs" >&6; }
11357 test "$ld_shlibs" = no && can_build_shared=no
11359 with_gnu_ld=$with_gnu_ld
11376 # Do we need to explicitly link libc?
11378 case "x$archive_cmds_need_lc" in
11380 # Assume -lc should be added
11381 archive_cmds_need_lc=yes
11383 if test "$enable_shared" = yes && test "$GCC" = yes; then
11384 case $archive_cmds in
11386 # FIXME: we may have to deal with multi-command sequences.
11389 # Test whether the compiler implicitly links with -lc since on some
11390 # systems, -lgcc has to come before -lc. If gcc already passes -lc
11391 # to ld, don't add -lc before -lgcc.
11392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
11393 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
11394 if ${lt_cv_archive_cmds_need_lc+:} false; then :
11395 $as_echo_n "(cached) " >&6
11398 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11400 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11401 (eval $ac_compile) 2>&5
11403 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11404 test $ac_status = 0; } 2>conftest.err; then
11407 libobjs=conftest.$ac_objext
11409 wl=$lt_prog_compiler_wl
11410 pic_flag=$lt_prog_compiler_pic
11416 lt_save_allow_undefined_flag=$allow_undefined_flag
11417 allow_undefined_flag=
11418 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
11419 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
11421 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11422 test $ac_status = 0; }
11424 lt_cv_archive_cmds_need_lc=no
11426 lt_cv_archive_cmds_need_lc=yes
11428 allow_undefined_flag=$lt_save_allow_undefined_flag
11430 cat conftest.err 1>&5
11435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
11436 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
11437 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
11595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11596 $as_echo_n "checking dynamic linker characteristics... " >&6; }
11598 if test "$GCC" = yes; then
11600 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
11601 *) lt_awk_arg="/^libraries:/" ;;
11604 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
11605 *) lt_sed_strip_eq="s,=/,/,g" ;;
11607 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
11608 case $lt_search_path_spec in
11610 # if the path contains ";" then we assume it to be the separator
11611 # otherwise default to the standard path separator (i.e. ":") - it is
11612 # assumed that no part of a normal pathname contains ";" but that should
11613 # okay in the real world where ";" in dirpaths is itself problematic.
11614 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
11617 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
11620 # Ok, now we have the path, separated by spaces, we can step through it
11621 # and add multilib dir if necessary.
11622 lt_tmp_lt_search_path_spec=
11623 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11624 for lt_sys_path in $lt_search_path_spec; do
11625 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
11626 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
11628 test -d "$lt_sys_path" && \
11629 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11632 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
11633 BEGIN {RS=" "; FS="/|\n";} {
11636 for (lt_i = NF; lt_i > 0; lt_i--) {
11637 if ($lt_i != "" && $lt_i != ".") {
11638 if ($lt_i == "..") {
11641 if (lt_count == 0) {
11642 lt_foo="/" $lt_i lt_foo;
11649 if (lt_foo != "") { lt_freq[lt_foo]++; }
11650 if (lt_freq[lt_foo] == 1) { print lt_foo; }
11652 # AWK program above erroneously prepends '/' to C:/dos/paths
11655 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
11656 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
11658 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
11660 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11662 library_names_spec=
11663 libname_spec='lib$name'
11667 postuninstall_cmds=
11671 shlibpath_overrides_runpath=unknown
11673 dynamic_linker="$host_os ld.so"
11674 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11675 need_lib_prefix=unknown
11676 hardcode_into_libs=no
11678 # when you set need_version to no, make sure it does not cause -set_version
11679 # flags to be left without arguments
11680 need_version=unknown
11684 version_type=linux # correct to gnu/linux during the next big refactor
11685 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11686 shlibpath_var=LIBPATH
11688 # AIX 3 has no versioning support, so we append a major version to the name.
11689 soname_spec='${libname}${release}${shared_ext}$major'
11693 version_type=linux # correct to gnu/linux during the next big refactor
11696 hardcode_into_libs=yes
11697 if test "$host_cpu" = ia64; then
11698 # AIX 5 supports IA64
11699 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11700 shlibpath_var=LD_LIBRARY_PATH
11702 # With GCC up to 2.95.x, collect2 would create an import file
11703 # for dependence libraries. The import file would start with
11704 # the line `#! .'. This would cause the generated library to
11705 # depend on `.', always an invalid library. This was fixed in
11706 # development snapshots of GCC prior to 3.0.
11708 aix4 | aix4.[01] | aix4.[01].*)
11709 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11711 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
11714 can_build_shared=no
11718 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11719 # soname into executable. Probably we can add versioning support to
11720 # collect2, so additional links can be useful in future.
11721 if test "$aix_use_runtimelinking" = yes; then
11722 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11723 # instead of lib<name>.a to let people know that these are not
11724 # typical AIX shared libraries.
11725 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11727 # We preserve .a as extension for shared libraries through AIX4.2
11728 # and later when we are not doing run time linking.
11729 library_names_spec='${libname}${release}.a $libname.a'
11730 soname_spec='${libname}${release}${shared_ext}$major'
11732 shlibpath_var=LIBPATH
11739 # Since July 2007 AmigaOS4 officially supports .so libraries.
11740 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11741 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11744 library_names_spec='$libname.ixlibrary $libname.a'
11745 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11746 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'
11752 library_names_spec='${libname}${shared_ext}'
11753 dynamic_linker="$host_os ld.so"
11754 shlibpath_var=LIBRARY_PATH
11758 version_type=linux # correct to gnu/linux during the next big refactor
11760 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11761 soname_spec='${libname}${release}${shared_ext}$major'
11762 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11763 shlibpath_var=LD_LIBRARY_PATH
11764 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11765 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11766 # the default ld.so.conf also contains /usr/contrib/lib and
11767 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11768 # libtool to hard-code these into programs
11771 cygwin* | mingw* | pw32* | cegcc*)
11772 version_type=windows
11777 case $GCC,$cc_basename in
11780 library_names_spec='$libname.dll.a'
11781 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11782 postinstall_cmds='base_file=`basename \${file}`~
11783 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11784 dldir=$destdir/`dirname \$dlpath`~
11785 test -d \$dldir || mkdir -p \$dldir~
11786 $install_prog $dir/$dlname \$dldir/$dlname~
11787 chmod a+x \$dldir/$dlname~
11788 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11789 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11791 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11792 dlpath=$dir/\$dldll~
11794 shlibpath_overrides_runpath=yes
11798 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11799 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11801 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11804 # MinGW DLLs use traditional 'lib' prefix
11805 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11808 # pw32 DLLs use 'pw' prefix rather than 'lib'
11809 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11812 dynamic_linker='Win32 ld.exe'
11817 libname_spec='$name'
11818 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11819 library_names_spec='${libname}.dll.lib'
11823 sys_lib_search_path_spec=
11826 for lt_path in $LIB
11829 # Let DOS variable expansion print the short 8.3 style file name.
11830 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
11831 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
11834 # Convert to MSYS style.
11835 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
11838 # Convert to unix form, then to dos form, then back to unix form
11839 # but this time dos style (no spaces!) so that the unix form looks
11840 # like /cygdrive/c/PROGRA~1:/cygdr...
11841 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
11842 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
11843 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11846 sys_lib_search_path_spec="$LIB"
11847 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11848 # It is most probably a Windows format PATH.
11849 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11851 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11853 # FIXME: find the short name or the path components, as spaces are
11854 # common. (e.g. "Program Files" -> "PROGRA~1")
11858 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11859 postinstall_cmds='base_file=`basename \${file}`~
11860 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11861 dldir=$destdir/`dirname \$dlpath`~
11862 test -d \$dldir || mkdir -p \$dldir~
11863 $install_prog $dir/$dlname \$dldir/$dlname'
11864 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11865 dlpath=$dir/\$dldll~
11867 shlibpath_overrides_runpath=yes
11868 dynamic_linker='Win32 link.exe'
11872 # Assume MSVC wrapper
11873 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11874 dynamic_linker='Win32 ld.exe'
11877 # FIXME: first we should search . and the directory the executable is in
11881 darwin* | rhapsody*)
11882 dynamic_linker="$host_os dyld"
11883 version_type=darwin
11886 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11887 soname_spec='${libname}${release}${major}$shared_ext'
11888 shlibpath_overrides_runpath=yes
11889 shlibpath_var=DYLD_LIBRARY_PATH
11890 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11892 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11893 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11897 version_type=linux # correct to gnu/linux during the next big refactor
11900 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11901 soname_spec='${libname}${release}${shared_ext}$major'
11902 shlibpath_var=LD_LIBRARY_PATH
11905 freebsd* | dragonfly*)
11906 # DragonFly does not have aout. When/if they implement a new
11907 # versioning mechanism, adjust this.
11908 if test -x /usr/bin/objformat; then
11909 objformat=`/usr/bin/objformat`
11912 freebsd[23].*) objformat=aout ;;
11913 *) objformat=elf ;;
11916 version_type=freebsd-$objformat
11917 case $version_type in
11919 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11924 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11928 shlibpath_var=LD_LIBRARY_PATH
11931 shlibpath_overrides_runpath=yes
11933 freebsd3.[01]* | freebsdelf3.[01]*)
11934 shlibpath_overrides_runpath=yes
11935 hardcode_into_libs=yes
11937 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11938 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11939 shlibpath_overrides_runpath=no
11940 hardcode_into_libs=yes
11942 *) # from 4.6 on, and DragonFly
11943 shlibpath_overrides_runpath=yes
11944 hardcode_into_libs=yes
11950 version_type=linux # correct to gnu/linux during the next big refactor
11953 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11954 soname_spec='${libname}${release}${shared_ext}$major'
11955 shlibpath_var=LD_LIBRARY_PATH
11956 shlibpath_overrides_runpath=no
11957 hardcode_into_libs=yes
11961 version_type=linux # correct to gnu/linux during the next big refactor
11964 dynamic_linker="$host_os runtime_loader"
11965 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11966 soname_spec='${libname}${release}${shared_ext}$major'
11967 shlibpath_var=LIBRARY_PATH
11968 shlibpath_overrides_runpath=yes
11969 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
11970 hardcode_into_libs=yes
11973 hpux9* | hpux10* | hpux11*)
11974 # Give a soname corresponding to the major version so that dld.sl refuses to
11975 # link against other versions.
11982 hardcode_into_libs=yes
11983 dynamic_linker="$host_os dld.so"
11984 shlibpath_var=LD_LIBRARY_PATH
11985 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11986 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11987 soname_spec='${libname}${release}${shared_ext}$major'
11988 if test "X$HPUX_IA64_MODE" = X32; then
11989 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11991 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11993 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11997 hardcode_into_libs=yes
11998 dynamic_linker="$host_os dld.sl"
11999 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12000 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12001 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12002 soname_spec='${libname}${release}${shared_ext}$major'
12003 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12004 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12008 dynamic_linker="$host_os dld.sl"
12009 shlibpath_var=SHLIB_PATH
12010 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12011 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12012 soname_spec='${libname}${release}${shared_ext}$major'
12015 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
12016 postinstall_cmds='chmod 555 $lib'
12017 # or fails outright, so override atomically:
12018 install_override_mode=555
12022 version_type=linux # correct to gnu/linux during the next big refactor
12025 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12026 soname_spec='${libname}${release}${shared_ext}$major'
12027 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12028 shlibpath_var=LD_LIBRARY_PATH
12029 shlibpath_overrides_runpath=no
12030 hardcode_into_libs=yes
12033 irix5* | irix6* | nonstopux*)
12035 nonstopux*) version_type=nonstopux ;;
12037 if test "$lt_cv_prog_gnu_ld" = yes; then
12038 version_type=linux # correct to gnu/linux during the next big refactor
12045 soname_spec='${libname}${release}${shared_ext}$major'
12046 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
12048 irix5* | nonstopux*)
12049 libsuff= shlibsuff=
12052 case $LD in # libtool.m4 will add one of these switches to LD
12053 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12054 libsuff= shlibsuff= libmagic=32-bit;;
12055 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12056 libsuff=32 shlibsuff=N32 libmagic=N32;;
12057 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12058 libsuff=64 shlibsuff=64 libmagic=64-bit;;
12059 *) libsuff= shlibsuff= libmagic=never-match;;
12063 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12064 shlibpath_overrides_runpath=no
12065 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
12066 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
12067 hardcode_into_libs=yes
12070 # No shared lib support for Linux oldld, aout, or coff.
12071 linux*oldld* | linux*aout* | linux*coff*)
12075 # This must be glibc/ELF.
12076 linux* | k*bsd*-gnu | kopensolaris*-gnu)
12077 version_type=linux # correct to gnu/linux during the next big refactor
12080 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12081 soname_spec='${libname}${release}${shared_ext}$major'
12082 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12083 shlibpath_var=LD_LIBRARY_PATH
12084 shlibpath_overrides_runpath=no
12086 # Some binutils ld are patched to set DT_RUNPATH
12087 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
12088 $as_echo_n "(cached) " >&6
12090 lt_cv_shlibpath_overrides_runpath=no
12091 save_LDFLAGS=$LDFLAGS
12092 save_libdir=$libdir
12093 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
12094 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
12095 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12096 /* end confdefs.h. */
12106 if ac_fn_c_try_link "$LINENO"; then :
12107 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
12108 lt_cv_shlibpath_overrides_runpath=yes
12111 rm -f core conftest.err conftest.$ac_objext \
12112 conftest$ac_exeext conftest.$ac_ext
12113 LDFLAGS=$save_LDFLAGS
12114 libdir=$save_libdir
12118 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
12120 # This implies no fast_install, which is unacceptable.
12121 # Some rework will be needed to allow for fast_install
12122 # before this can be enabled.
12123 hardcode_into_libs=yes
12125 # Append ld.so.conf contents to the search path
12126 if test -f /etc/ld.so.conf; then
12127 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' ' '`
12128 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
12131 # We used to test for /lib/ld.so.1 and disable shared libraries on
12132 # powerpc, because MkLinux only supported shared libraries with the
12133 # GNU dynamic linker. Since this was broken with cross compilers,
12134 # most powerpc-linux boxes support dynamic linking these days and
12135 # people can always --disable-shared, the test was removed, and we
12136 # assume the GNU/Linux dynamic linker is in use.
12137 dynamic_linker='GNU/Linux ld.so'
12144 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12145 soname_spec='${libname}${release}${shared_ext}$major'
12146 shlibpath_var=LD_LIBRARY_PATH
12147 shlibpath_overrides_runpath=no
12148 hardcode_into_libs=yes
12149 dynamic_linker='NetBSD ld.elf_so'
12156 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12157 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12158 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12159 dynamic_linker='NetBSD (a.out) ld.so'
12161 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12162 soname_spec='${libname}${release}${shared_ext}$major'
12163 dynamic_linker='NetBSD ld.elf_so'
12165 shlibpath_var=LD_LIBRARY_PATH
12166 shlibpath_overrides_runpath=yes
12167 hardcode_into_libs=yes
12171 version_type=linux # correct to gnu/linux during the next big refactor
12172 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12173 shlibpath_var=LD_LIBRARY_PATH
12174 shlibpath_overrides_runpath=yes
12181 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12182 soname_spec='${libname}${release}${shared_ext}$major'
12183 shlibpath_var=LD_LIBRARY_PATH
12184 shlibpath_overrides_runpath=no
12185 hardcode_into_libs=yes
12186 dynamic_linker='ldqnx.so'
12191 sys_lib_dlsearch_path_spec="/usr/lib"
12193 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
12195 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
12196 *) need_version=no ;;
12198 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12199 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12200 shlibpath_var=LD_LIBRARY_PATH
12201 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12203 openbsd2.[89] | openbsd2.[89].*)
12204 shlibpath_overrides_runpath=no
12207 shlibpath_overrides_runpath=yes
12211 shlibpath_overrides_runpath=yes
12216 libname_spec='$name'
12219 library_names_spec='$libname${shared_ext} $libname.a'
12220 dynamic_linker='OS/2 ld.exe'
12221 shlibpath_var=LIBPATH
12224 osf3* | osf4* | osf5*)
12228 soname_spec='${libname}${release}${shared_ext}$major'
12229 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12230 shlibpath_var=LD_LIBRARY_PATH
12231 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12232 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
12240 version_type=linux # correct to gnu/linux during the next big refactor
12243 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12244 soname_spec='${libname}${release}${shared_ext}$major'
12245 shlibpath_var=LD_LIBRARY_PATH
12246 shlibpath_overrides_runpath=yes
12247 hardcode_into_libs=yes
12248 # ldd complains unless libraries are executable
12249 postinstall_cmds='chmod +x $lib'
12254 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12255 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12256 shlibpath_var=LD_LIBRARY_PATH
12257 shlibpath_overrides_runpath=yes
12258 if test "$with_gnu_ld" = yes; then
12265 version_type=linux # correct to gnu/linux during the next big refactor
12266 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12267 soname_spec='${libname}${release}${shared_ext}$major'
12268 shlibpath_var=LD_LIBRARY_PATH
12269 case $host_vendor in
12271 shlibpath_overrides_runpath=no
12273 runpath_var=LD_RUN_PATH
12281 shlibpath_overrides_runpath=no
12282 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12288 if test -d /usr/nec ;then
12289 version_type=linux # correct to gnu/linux during the next big refactor
12290 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
12291 soname_spec='$libname${shared_ext}.$major'
12292 shlibpath_var=LD_LIBRARY_PATH
12296 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12297 version_type=freebsd-elf
12300 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12301 soname_spec='${libname}${release}${shared_ext}$major'
12302 shlibpath_var=LD_LIBRARY_PATH
12303 shlibpath_overrides_runpath=yes
12304 hardcode_into_libs=yes
12305 if test "$with_gnu_ld" = yes; then
12306 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12308 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12311 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12315 sys_lib_dlsearch_path_spec='/usr/lib'
12319 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
12320 version_type=linux # correct to gnu/linux during the next big refactor
12323 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12324 shlibpath_var=LD_LIBRARY_PATH
12325 shlibpath_overrides_runpath=no
12326 hardcode_into_libs=yes
12330 version_type=linux # correct to gnu/linux during the next big refactor
12331 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12332 soname_spec='${libname}${release}${shared_ext}$major'
12333 shlibpath_var=LD_LIBRARY_PATH
12340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
12341 $as_echo "$dynamic_linker" >&6; }
12342 test "$dynamic_linker" = no && can_build_shared=no
12344 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12345 if test "$GCC" = yes; then
12346 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12349 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
12350 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
12352 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
12353 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
12447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
12448 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
12450 if test -n "$hardcode_libdir_flag_spec" ||
12451 test -n "$runpath_var" ||
12452 test "X$hardcode_automatic" = "Xyes" ; then
12454 # We can hardcode non-existent directories.
12455 if test "$hardcode_direct" != no &&
12456 # If the only mechanism to avoid hardcoding is shlibpath_var, we
12457 # have to relink, otherwise we might link with an installed library
12458 # when we should be linking with a yet-to-be-installed one
12459 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
12460 test "$hardcode_minus_L" != no; then
12461 # Linking always hardcodes the temporary library directory.
12462 hardcode_action=relink
12464 # We can link without hardcoding, and we can hardcode nonexisting dirs.
12465 hardcode_action=immediate
12468 # We cannot hardcode anything, or else we can only hardcode existing
12470 hardcode_action=unsupported
12472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
12473 $as_echo "$hardcode_action" >&6; }
12475 if test "$hardcode_action" = relink ||
12476 test "$inherit_rpath" = yes; then
12477 # Fast installation is not supported
12478 enable_fast_install=no
12479 elif test "$shlibpath_overrides_runpath" = yes ||
12480 test "$enable_shared" = no; then
12481 # Fast installation is not necessary
12482 enable_fast_install=needless
12490 if test "x$enable_dlopen" != xyes; then
12491 enable_dlopen=unknown
12492 enable_dlopen_self=unknown
12493 enable_dlopen_self_static=unknown
12500 lt_cv_dlopen="load_add_on"
12502 lt_cv_dlopen_self=yes
12505 mingw* | pw32* | cegcc*)
12506 lt_cv_dlopen="LoadLibrary"
12511 lt_cv_dlopen="dlopen"
12516 # if libdl is installed we need to link against it
12517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12518 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12519 if ${ac_cv_lib_dl_dlopen+:} false; then :
12520 $as_echo_n "(cached) " >&6
12522 ac_check_lib_save_LIBS=$LIBS
12524 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12525 /* end confdefs.h. */
12527 /* Override any GCC internal prototype to avoid an error.
12528 Use char because int might match the return type of a GCC
12529 builtin and then its argument prototype would still apply. */
12542 if ac_fn_c_try_link "$LINENO"; then :
12543 ac_cv_lib_dl_dlopen=yes
12545 ac_cv_lib_dl_dlopen=no
12547 rm -f core conftest.err conftest.$ac_objext \
12548 conftest$ac_exeext conftest.$ac_ext
12549 LIBS=$ac_check_lib_save_LIBS
12551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12552 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12553 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12554 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12557 lt_cv_dlopen="dyld"
12559 lt_cv_dlopen_self=yes
12566 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
12567 if test "x$ac_cv_func_shl_load" = xyes; then :
12568 lt_cv_dlopen="shl_load"
12570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12571 $as_echo_n "checking for shl_load in -ldld... " >&6; }
12572 if ${ac_cv_lib_dld_shl_load+:} false; then :
12573 $as_echo_n "(cached) " >&6
12575 ac_check_lib_save_LIBS=$LIBS
12577 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12578 /* end confdefs.h. */
12580 /* Override any GCC internal prototype to avoid an error.
12581 Use char because int might match the return type of a GCC
12582 builtin and then its argument prototype would still apply. */
12590 return shl_load ();
12595 if ac_fn_c_try_link "$LINENO"; then :
12596 ac_cv_lib_dld_shl_load=yes
12598 ac_cv_lib_dld_shl_load=no
12600 rm -f core conftest.err conftest.$ac_objext \
12601 conftest$ac_exeext conftest.$ac_ext
12602 LIBS=$ac_check_lib_save_LIBS
12604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12605 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
12606 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
12607 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
12609 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
12610 if test "x$ac_cv_func_dlopen" = xyes; then :
12611 lt_cv_dlopen="dlopen"
12613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12614 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12615 if ${ac_cv_lib_dl_dlopen+:} false; then :
12616 $as_echo_n "(cached) " >&6
12618 ac_check_lib_save_LIBS=$LIBS
12620 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12621 /* end confdefs.h. */
12623 /* Override any GCC internal prototype to avoid an error.
12624 Use char because int might match the return type of a GCC
12625 builtin and then its argument prototype would still apply. */
12638 if ac_fn_c_try_link "$LINENO"; then :
12639 ac_cv_lib_dl_dlopen=yes
12641 ac_cv_lib_dl_dlopen=no
12643 rm -f core conftest.err conftest.$ac_objext \
12644 conftest$ac_exeext conftest.$ac_ext
12645 LIBS=$ac_check_lib_save_LIBS
12647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12648 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12649 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12650 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12653 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
12654 if ${ac_cv_lib_svld_dlopen+:} false; then :
12655 $as_echo_n "(cached) " >&6
12657 ac_check_lib_save_LIBS=$LIBS
12658 LIBS="-lsvld $LIBS"
12659 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12660 /* end confdefs.h. */
12662 /* Override any GCC internal prototype to avoid an error.
12663 Use char because int might match the return type of a GCC
12664 builtin and then its argument prototype would still apply. */
12677 if ac_fn_c_try_link "$LINENO"; then :
12678 ac_cv_lib_svld_dlopen=yes
12680 ac_cv_lib_svld_dlopen=no
12682 rm -f core conftest.err conftest.$ac_objext \
12683 conftest$ac_exeext conftest.$ac_ext
12684 LIBS=$ac_check_lib_save_LIBS
12686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12687 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
12688 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
12689 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12692 $as_echo_n "checking for dld_link in -ldld... " >&6; }
12693 if ${ac_cv_lib_dld_dld_link+:} false; then :
12694 $as_echo_n "(cached) " >&6
12696 ac_check_lib_save_LIBS=$LIBS
12698 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12699 /* end confdefs.h. */
12701 /* Override any GCC internal prototype to avoid an error.
12702 Use char because int might match the return type of a GCC
12703 builtin and then its argument prototype would still apply. */
12711 return dld_link ();
12716 if ac_fn_c_try_link "$LINENO"; then :
12717 ac_cv_lib_dld_dld_link=yes
12719 ac_cv_lib_dld_dld_link=no
12721 rm -f core conftest.err conftest.$ac_objext \
12722 conftest$ac_exeext conftest.$ac_ext
12723 LIBS=$ac_check_lib_save_LIBS
12725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12726 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12727 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
12728 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
12749 if test "x$lt_cv_dlopen" != xno; then
12755 case $lt_cv_dlopen in
12757 save_CPPFLAGS="$CPPFLAGS"
12758 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12760 save_LDFLAGS="$LDFLAGS"
12761 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12764 LIBS="$lt_cv_dlopen_libs $LIBS"
12766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12767 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
12768 if ${lt_cv_dlopen_self+:} false; then :
12769 $as_echo_n "(cached) " >&6
12771 if test "$cross_compiling" = yes; then :
12772 lt_cv_dlopen_self=cross
12774 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12775 lt_status=$lt_dlunknown
12776 cat > conftest.$ac_ext <<_LT_EOF
12777 #line $LINENO "configure"
12778 #include "confdefs.h"
12787 # define LT_DLGLOBAL RTLD_GLOBAL
12790 # define LT_DLGLOBAL DL_GLOBAL
12792 # define LT_DLGLOBAL 0
12796 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12797 find out it does not work in some platform. */
12798 #ifndef LT_DLLAZY_OR_NOW
12800 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12803 # define LT_DLLAZY_OR_NOW DL_LAZY
12806 # define LT_DLLAZY_OR_NOW RTLD_NOW
12809 # define LT_DLLAZY_OR_NOW DL_NOW
12811 # define LT_DLLAZY_OR_NOW 0
12818 /* When -fvisbility=hidden is used, assume the code has been annotated
12819 correspondingly for the symbols needed. */
12820 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12821 int fnord () __attribute__((visibility("default")));
12824 int fnord () { return 42; }
12827 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12828 int status = $lt_dlunknown;
12832 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12835 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12836 else puts (dlerror ());
12838 /* dlclose (self); */
12846 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12847 (eval $ac_link) 2>&5
12849 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12850 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12851 (./conftest; exit; ) >&5 2>/dev/null
12853 case x$lt_status in
12854 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12855 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12856 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12859 # compilation failed
12860 lt_cv_dlopen_self=no
12867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12868 $as_echo "$lt_cv_dlopen_self" >&6; }
12870 if test "x$lt_cv_dlopen_self" = xyes; then
12871 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12873 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12874 if ${lt_cv_dlopen_self_static+:} false; then :
12875 $as_echo_n "(cached) " >&6
12877 if test "$cross_compiling" = yes; then :
12878 lt_cv_dlopen_self_static=cross
12880 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12881 lt_status=$lt_dlunknown
12882 cat > conftest.$ac_ext <<_LT_EOF
12883 #line $LINENO "configure"
12884 #include "confdefs.h"
12893 # define LT_DLGLOBAL RTLD_GLOBAL
12896 # define LT_DLGLOBAL DL_GLOBAL
12898 # define LT_DLGLOBAL 0
12902 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12903 find out it does not work in some platform. */
12904 #ifndef LT_DLLAZY_OR_NOW
12906 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12909 # define LT_DLLAZY_OR_NOW DL_LAZY
12912 # define LT_DLLAZY_OR_NOW RTLD_NOW
12915 # define LT_DLLAZY_OR_NOW DL_NOW
12917 # define LT_DLLAZY_OR_NOW 0
12924 /* When -fvisbility=hidden is used, assume the code has been annotated
12925 correspondingly for the symbols needed. */
12926 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12927 int fnord () __attribute__((visibility("default")));
12930 int fnord () { return 42; }
12933 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12934 int status = $lt_dlunknown;
12938 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12941 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12942 else puts (dlerror ());
12944 /* dlclose (self); */
12952 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12953 (eval $ac_link) 2>&5
12955 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12956 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12957 (./conftest; exit; ) >&5 2>/dev/null
12959 case x$lt_status in
12960 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12961 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12962 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12965 # compilation failed
12966 lt_cv_dlopen_self_static=no
12973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12974 $as_echo "$lt_cv_dlopen_self_static" >&6; }
12977 CPPFLAGS="$save_CPPFLAGS"
12978 LDFLAGS="$save_LDFLAGS"
12983 case $lt_cv_dlopen_self in
12984 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12985 *) enable_dlopen_self=unknown ;;
12988 case $lt_cv_dlopen_self_static in
12989 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12990 *) enable_dlopen_self_static=unknown ;;
13012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
13013 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
13014 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
13015 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
13016 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
13017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13018 $as_echo "yes" >&6; }
13020 # FIXME - insert some real tests, host_os isn't really good enough
13023 if test -n "$STRIP" ; then
13024 striplib="$STRIP -x"
13025 old_striplib="$STRIP -S"
13026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13027 $as_echo "yes" >&6; }
13029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13030 $as_echo "no" >&6; }
13034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13035 $as_echo "no" >&6; }
13051 # Report which library types will actually be built
13052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
13053 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
13054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
13055 $as_echo "$can_build_shared" >&6; }
13057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
13058 $as_echo_n "checking whether to build shared libraries... " >&6; }
13059 test "$can_build_shared" = "no" && enable_shared=no
13061 # On AIX, shared libraries and static libraries use the same namespace, and
13062 # are all built from PIC.
13065 test "$enable_shared" = yes && enable_static=no
13066 if test -n "$RANLIB"; then
13067 archive_cmds="$archive_cmds~\$RANLIB \$lib"
13068 postinstall_cmds='$RANLIB $lib'
13073 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
13074 test "$enable_shared" = yes && enable_static=no
13078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
13079 $as_echo "$enable_shared" >&6; }
13081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
13082 $as_echo_n "checking whether to build static libraries... " >&6; }
13083 # Make sure either enable_shared or enable_static is yes.
13084 test "$enable_shared" = yes || enable_static=yes
13085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
13086 $as_echo "$enable_static" >&6; }
13093 ac_cpp='$CPP $CPPFLAGS'
13094 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13095 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13096 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13114 ac_config_commands="$ac_config_commands libtool"
13119 # Only expand once:
13123 # Internationalization.
13125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
13126 $as_echo_n "checking whether NLS is requested... " >&6; }
13127 # Check whether --enable-nls was given.
13128 if test "${enable_nls+set}" = set; then :
13129 enableval=$enable_nls; USE_NLS=$enableval
13134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
13135 $as_echo "$USE_NLS" >&6; }
13140 GETTEXT_MACRO_VERSION=0.18
13145 # Prepare PATH_SEPARATOR.
13146 # The user is always right.
13147 if test "${PATH_SEPARATOR+set}" != set; then
13148 echo "#! /bin/sh" >conf$$.sh
13149 echo "exit 0" >>conf$$.sh
13151 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
13159 # Find out how to test for executable files. Don't use a zero-byte file,
13160 # as systems may use methods other than mode bits to determine executability.
13161 cat >conf$$.file <<_ASEOF
13165 chmod +x conf$$.file
13166 if test -x conf$$.file >/dev/null 2>&1; then
13167 ac_executable_p="test -x"
13169 ac_executable_p="test -f"
13173 # Extract the first word of "msgfmt", so it can be a program name with args.
13174 set dummy msgfmt; ac_word=$2
13175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13176 $as_echo_n "checking for $ac_word... " >&6; }
13177 if ${ac_cv_path_MSGFMT+:} false; then :
13178 $as_echo_n "(cached) " >&6
13182 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
13185 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
13186 for ac_dir in $PATH; do
13188 test -z "$ac_dir" && ac_dir=.
13189 for ac_exec_ext in '' $ac_executable_extensions; do
13190 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
13191 echo "$as_me: trying $ac_dir/$ac_word..." >&5
13192 if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
13193 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
13194 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
13201 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
13205 MSGFMT="$ac_cv_path_MSGFMT"
13206 if test "$MSGFMT" != ":"; then
13207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
13208 $as_echo "$MSGFMT" >&6; }
13210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13211 $as_echo "no" >&6; }
13214 # Extract the first word of "gmsgfmt", so it can be a program name with args.
13215 set dummy gmsgfmt; ac_word=$2
13216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13217 $as_echo_n "checking for $ac_word... " >&6; }
13218 if ${ac_cv_path_GMSGFMT+:} false; then :
13219 $as_echo_n "(cached) " >&6
13223 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
13226 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13227 for as_dir in $PATH
13230 test -z "$as_dir" && as_dir=.
13231 for ac_exec_ext in '' $ac_executable_extensions; do
13232 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13233 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
13234 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13241 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
13245 GMSGFMT=$ac_cv_path_GMSGFMT
13246 if test -n "$GMSGFMT"; then
13247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
13248 $as_echo "$GMSGFMT" >&6; }
13250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13251 $as_echo "no" >&6; }
13256 case `$MSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
13257 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) MSGFMT_015=: ;;
13258 *) MSGFMT_015=$MSGFMT ;;
13261 case `$GMSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
13262 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) GMSGFMT_015=: ;;
13263 *) GMSGFMT_015=$GMSGFMT ;;
13268 # Prepare PATH_SEPARATOR.
13269 # The user is always right.
13270 if test "${PATH_SEPARATOR+set}" != set; then
13271 echo "#! /bin/sh" >conf$$.sh
13272 echo "exit 0" >>conf$$.sh
13274 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
13282 # Find out how to test for executable files. Don't use a zero-byte file,
13283 # as systems may use methods other than mode bits to determine executability.
13284 cat >conf$$.file <<_ASEOF
13288 chmod +x conf$$.file
13289 if test -x conf$$.file >/dev/null 2>&1; then
13290 ac_executable_p="test -x"
13292 ac_executable_p="test -f"
13296 # Extract the first word of "xgettext", so it can be a program name with args.
13297 set dummy xgettext; ac_word=$2
13298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13299 $as_echo_n "checking for $ac_word... " >&6; }
13300 if ${ac_cv_path_XGETTEXT+:} false; then :
13301 $as_echo_n "(cached) " >&6
13303 case "$XGETTEXT" in
13305 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
13308 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
13309 for ac_dir in $PATH; do
13311 test -z "$ac_dir" && ac_dir=.
13312 for ac_exec_ext in '' $ac_executable_extensions; do
13313 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
13314 echo "$as_me: trying $ac_dir/$ac_word..." >&5
13315 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
13316 (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
13317 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
13324 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
13328 XGETTEXT="$ac_cv_path_XGETTEXT"
13329 if test "$XGETTEXT" != ":"; then
13330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
13331 $as_echo "$XGETTEXT" >&6; }
13333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13334 $as_echo "no" >&6; }
13339 case `$XGETTEXT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
13340 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) XGETTEXT_015=: ;;
13341 *) XGETTEXT_015=$XGETTEXT ;;
13346 # Prepare PATH_SEPARATOR.
13347 # The user is always right.
13348 if test "${PATH_SEPARATOR+set}" != set; then
13349 echo "#! /bin/sh" >conf$$.sh
13350 echo "exit 0" >>conf$$.sh
13352 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
13360 # Find out how to test for executable files. Don't use a zero-byte file,
13361 # as systems may use methods other than mode bits to determine executability.
13362 cat >conf$$.file <<_ASEOF
13366 chmod +x conf$$.file
13367 if test -x conf$$.file >/dev/null 2>&1; then
13368 ac_executable_p="test -x"
13370 ac_executable_p="test -f"
13374 # Extract the first word of "msgmerge", so it can be a program name with args.
13375 set dummy msgmerge; ac_word=$2
13376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13377 $as_echo_n "checking for $ac_word... " >&6; }
13378 if ${ac_cv_path_MSGMERGE+:} false; then :
13379 $as_echo_n "(cached) " >&6
13381 case "$MSGMERGE" in
13383 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
13386 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
13387 for ac_dir in $PATH; do
13389 test -z "$ac_dir" && ac_dir=.
13390 for ac_exec_ext in '' $ac_executable_extensions; do
13391 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
13392 echo "$as_me: trying $ac_dir/$ac_word..." >&5
13393 if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
13394 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
13401 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
13405 MSGMERGE="$ac_cv_path_MSGMERGE"
13406 if test "$MSGMERGE" != ":"; then
13407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
13408 $as_echo "$MSGMERGE" >&6; }
13410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13411 $as_echo "no" >&6; }
13415 test -n "$localedir" || localedir='${datadir}/locale'
13418 test -n "${XGETTEXT_EXTRA_OPTIONS+set}" || XGETTEXT_EXTRA_OPTIONS=
13421 ac_config_commands="$ac_config_commands po-directories"
13425 if test "X$prefix" = "XNONE"; then
13426 acl_final_prefix="$ac_default_prefix"
13428 acl_final_prefix="$prefix"
13430 if test "X$exec_prefix" = "XNONE"; then
13431 acl_final_exec_prefix='${prefix}'
13433 acl_final_exec_prefix="$exec_prefix"
13435 acl_save_prefix="$prefix"
13436 prefix="$acl_final_prefix"
13437 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
13438 prefix="$acl_save_prefix"
13441 # Check whether --with-gnu-ld was given.
13442 if test "${with_gnu_ld+set}" = set; then :
13443 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
13448 # Prepare PATH_SEPARATOR.
13449 # The user is always right.
13450 if test "${PATH_SEPARATOR+set}" != set; then
13451 echo "#! /bin/sh" >conf$$.sh
13452 echo "exit 0" >>conf$$.sh
13454 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
13462 if test "$GCC" = yes; then
13463 # Check if gcc -print-prog-name=ld gives a path.
13464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
13465 $as_echo_n "checking for ld used by GCC... " >&6; }
13468 # gcc leaves a trailing carriage return which upsets mingw
13469 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
13471 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
13474 # Accept absolute paths.
13475 [\\/]* | [A-Za-z]:[\\/]*)
13476 re_direlt='/[^/][^/]*/\.\./'
13477 # Canonicalize the path of ld
13478 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
13479 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
13480 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
13482 test -z "$LD" && LD="$ac_prog"
13485 # If it fails, then pretend we aren't using GCC.
13489 # If it is relative, then search for the first ld in PATH.
13490 with_gnu_ld=unknown
13493 elif test "$with_gnu_ld" = yes; then
13494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
13495 $as_echo_n "checking for GNU ld... " >&6; }
13497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
13498 $as_echo_n "checking for non-GNU ld... " >&6; }
13500 if ${acl_cv_path_LD+:} false; then :
13501 $as_echo_n "(cached) " >&6
13503 if test -z "$LD"; then
13504 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
13505 for ac_dir in $PATH; do
13506 test -z "$ac_dir" && ac_dir=.
13507 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
13508 acl_cv_path_LD="$ac_dir/$ac_prog"
13509 # Check to see if the program is GNU ld. I'd rather use --version,
13510 # but apparently some GNU ld's only accept -v.
13511 # Break only if it was the GNU/non-GNU ld that we prefer.
13512 case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
13513 *GNU* | *'with BFD'*)
13514 test "$with_gnu_ld" != no && break ;;
13516 test "$with_gnu_ld" != yes && break ;;
13522 acl_cv_path_LD="$LD" # Let the user override the test with a path.
13526 LD="$acl_cv_path_LD"
13527 if test -n "$LD"; then
13528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
13529 $as_echo "$LD" >&6; }
13531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13532 $as_echo "no" >&6; }
13534 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
13535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
13536 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
13537 if ${acl_cv_prog_gnu_ld+:} false; then :
13538 $as_echo_n "(cached) " >&6
13540 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
13541 case `$LD -v 2>&1 </dev/null` in
13542 *GNU* | *'with BFD'*)
13543 acl_cv_prog_gnu_ld=yes ;;
13545 acl_cv_prog_gnu_ld=no ;;
13548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
13549 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
13550 with_gnu_ld=$acl_cv_prog_gnu_ld
13555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
13556 $as_echo_n "checking for shared library run path origin... " >&6; }
13557 if ${acl_cv_rpath+:} false; then :
13558 $as_echo_n "(cached) " >&6
13561 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
13562 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
13564 rm -f ./conftest.sh
13568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
13569 $as_echo "$acl_cv_rpath" >&6; }
13571 acl_libext="$acl_cv_libext"
13572 acl_shlibext="$acl_cv_shlibext"
13573 acl_libname_spec="$acl_cv_libname_spec"
13574 acl_library_names_spec="$acl_cv_library_names_spec"
13575 acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
13576 acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
13577 acl_hardcode_direct="$acl_cv_hardcode_direct"
13578 acl_hardcode_minus_L="$acl_cv_hardcode_minus_L"
13579 # Check whether --enable-rpath was given.
13580 if test "${enable_rpath+set}" = set; then :
13581 enableval=$enable_rpath; :
13593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit host" >&5
13594 $as_echo_n "checking for 64-bit host... " >&6; }
13595 if ${gl_cv_solaris_64bit+:} false; then :
13596 $as_echo_n "(cached) " >&6
13598 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13599 /* end confdefs.h. */
13606 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13607 $EGREP "sixtyfour bits" >/dev/null 2>&1; then :
13608 gl_cv_solaris_64bit=yes
13610 gl_cv_solaris_64bit=no
13616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_solaris_64bit" >&5
13617 $as_echo "$gl_cv_solaris_64bit" >&6; }
13618 if test $gl_cv_solaris_64bit = yes; then
13619 acl_libdirstem=lib/64
13620 case "$host_cpu" in
13621 sparc*) acl_libdirstem2=lib/sparcv9 ;;
13622 i*86 | x86_64) acl_libdirstem2=lib/amd64 ;;
13627 searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
13628 if test -n "$searchpath"; then
13629 acl_save_IFS="${IFS= }"; IFS=":"
13630 for searchdir in $searchpath; do
13631 if test -d "$searchdir"; then
13632 case "$searchdir" in
13633 */lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
13635 # Better ignore directories of this form. They are misleading.
13637 *) searchdir=`cd "$searchdir" && pwd`
13638 case "$searchdir" in
13639 */lib64 ) acl_libdirstem=lib64 ;;
13644 IFS="$acl_save_IFS"
13648 test -n "$acl_libdirstem2" || acl_libdirstem2="$acl_libdirstem"
13663 acl_save_prefix="$prefix"
13664 prefix="$acl_final_prefix"
13665 acl_save_exec_prefix="$exec_prefix"
13666 exec_prefix="$acl_final_exec_prefix"
13668 eval additional_includedir=\"$includedir\"
13669 eval additional_libdir=\"$libdir\"
13671 exec_prefix="$acl_save_exec_prefix"
13672 prefix="$acl_save_prefix"
13675 # Check whether --with-libiconv-prefix was given.
13676 if test "${with_libiconv_prefix+set}" = set; then :
13677 withval=$with_libiconv_prefix;
13678 if test "X$withval" = "Xno"; then
13681 if test "X$withval" = "X"; then
13683 acl_save_prefix="$prefix"
13684 prefix="$acl_final_prefix"
13685 acl_save_exec_prefix="$exec_prefix"
13686 exec_prefix="$acl_final_exec_prefix"
13688 eval additional_includedir=\"$includedir\"
13689 eval additional_libdir=\"$libdir\"
13691 exec_prefix="$acl_save_exec_prefix"
13692 prefix="$acl_save_prefix"
13695 additional_includedir="$withval/include"
13696 additional_libdir="$withval/$acl_libdirstem"
13697 if test "$acl_libdirstem2" != "$acl_libdirstem" \
13698 && ! test -d "$withval/$acl_libdirstem"; then
13699 additional_libdir="$withval/$acl_libdirstem2"
13713 names_already_handled=
13714 names_next_round='iconv '
13715 while test -n "$names_next_round"; do
13716 names_this_round="$names_next_round"
13718 for name in $names_this_round; do
13720 for n in $names_already_handled; do
13721 if test "$n" = "$name"; then
13722 already_handled=yes
13726 if test -z "$already_handled"; then
13727 names_already_handled="$names_already_handled $name"
13728 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
13729 eval value=\"\$HAVE_LIB$uppername\"
13730 if test -n "$value"; then
13731 if test "$value" = yes; then
13732 eval value=\"\$LIB$uppername\"
13733 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
13734 eval value=\"\$LTLIB$uppername\"
13735 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
13744 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
13745 if test -n "$acl_shlibext"; then
13746 shrext=".$acl_shlibext" # typically: shrext=.so
13750 if test $use_additional = yes; then
13751 dir="$additional_libdir"
13752 if test -n "$acl_shlibext"; then
13753 if test -f "$dir/$libname$shrext"; then
13755 found_so="$dir/$libname$shrext"
13757 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
13758 ver=`(cd "$dir" && \
13759 for f in "$libname$shrext".*; do echo "$f"; done \
13760 | sed -e "s,^$libname$shrext\\\\.,," \
13761 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
13762 | sed 1q ) 2>/dev/null`
13763 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
13765 found_so="$dir/$libname$shrext.$ver"
13768 eval library_names=\"$acl_library_names_spec\"
13769 for f in $library_names; do
13770 if test -f "$dir/$f"; then
13779 if test "X$found_dir" = "X"; then
13780 if test -f "$dir/$libname.$acl_libext"; then
13782 found_a="$dir/$libname.$acl_libext"
13785 if test "X$found_dir" != "X"; then
13786 if test -f "$dir/$libname.la"; then
13787 found_la="$dir/$libname.la"
13791 if test "X$found_dir" = "X"; then
13792 for x in $LDFLAGS $LTLIBICONV; do
13794 acl_save_prefix="$prefix"
13795 prefix="$acl_final_prefix"
13796 acl_save_exec_prefix="$exec_prefix"
13797 exec_prefix="$acl_final_exec_prefix"
13799 exec_prefix="$acl_save_exec_prefix"
13800 prefix="$acl_save_prefix"
13804 dir=`echo "X$x" | sed -e 's/^X-L//'`
13805 if test -n "$acl_shlibext"; then
13806 if test -f "$dir/$libname$shrext"; then
13808 found_so="$dir/$libname$shrext"
13810 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
13811 ver=`(cd "$dir" && \
13812 for f in "$libname$shrext".*; do echo "$f"; done \
13813 | sed -e "s,^$libname$shrext\\\\.,," \
13814 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
13815 | sed 1q ) 2>/dev/null`
13816 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
13818 found_so="$dir/$libname$shrext.$ver"
13821 eval library_names=\"$acl_library_names_spec\"
13822 for f in $library_names; do
13823 if test -f "$dir/$f"; then
13832 if test "X$found_dir" = "X"; then
13833 if test -f "$dir/$libname.$acl_libext"; then
13835 found_a="$dir/$libname.$acl_libext"
13838 if test "X$found_dir" != "X"; then
13839 if test -f "$dir/$libname.la"; then
13840 found_la="$dir/$libname.la"
13845 if test "X$found_dir" != "X"; then
13850 if test "X$found_dir" != "X"; then
13851 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
13852 if test "X$found_so" != "X"; then
13853 if test "$enable_rpath" = no \
13854 || test "X$found_dir" = "X/usr/$acl_libdirstem" \
13855 || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
13856 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
13859 for x in $ltrpathdirs; do
13860 if test "X$x" = "X$found_dir"; then
13865 if test -z "$haveit"; then
13866 ltrpathdirs="$ltrpathdirs $found_dir"
13868 if test "$acl_hardcode_direct" = yes; then
13869 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
13871 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
13872 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
13874 for x in $rpathdirs; do
13875 if test "X$x" = "X$found_dir"; then
13880 if test -z "$haveit"; then
13881 rpathdirs="$rpathdirs $found_dir"
13885 for x in $LDFLAGS $LIBICONV; do
13887 acl_save_prefix="$prefix"
13888 prefix="$acl_final_prefix"
13889 acl_save_exec_prefix="$exec_prefix"
13890 exec_prefix="$acl_final_exec_prefix"
13892 exec_prefix="$acl_save_exec_prefix"
13893 prefix="$acl_save_prefix"
13895 if test "X$x" = "X-L$found_dir"; then
13900 if test -z "$haveit"; then
13901 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
13903 if test "$acl_hardcode_minus_L" != no; then
13904 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
13906 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
13912 if test "X$found_a" != "X"; then
13913 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
13915 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
13918 additional_includedir=
13919 case "$found_dir" in
13920 */$acl_libdirstem | */$acl_libdirstem/)
13921 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
13922 if test "$name" = 'iconv'; then
13923 LIBICONV_PREFIX="$basedir"
13925 additional_includedir="$basedir/include"
13927 */$acl_libdirstem2 | */$acl_libdirstem2/)
13928 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
13929 if test "$name" = 'iconv'; then
13930 LIBICONV_PREFIX="$basedir"
13932 additional_includedir="$basedir/include"
13935 if test "X$additional_includedir" != "X"; then
13936 if test "X$additional_includedir" != "X/usr/include"; then
13938 if test "X$additional_includedir" = "X/usr/local/include"; then
13939 if test -n "$GCC"; then
13941 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
13945 if test -z "$haveit"; then
13946 for x in $CPPFLAGS $INCICONV; do
13948 acl_save_prefix="$prefix"
13949 prefix="$acl_final_prefix"
13950 acl_save_exec_prefix="$exec_prefix"
13951 exec_prefix="$acl_final_exec_prefix"
13953 exec_prefix="$acl_save_exec_prefix"
13954 prefix="$acl_save_prefix"
13956 if test "X$x" = "X-I$additional_includedir"; then
13961 if test -z "$haveit"; then
13962 if test -d "$additional_includedir"; then
13963 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
13969 if test -n "$found_la"; then
13970 save_libdir="$libdir"
13971 case "$found_la" in
13972 */* | *\\*) . "$found_la" ;;
13973 *) . "./$found_la" ;;
13975 libdir="$save_libdir"
13976 for dep in $dependency_libs; do
13979 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
13980 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
13981 && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
13983 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
13984 || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
13985 if test -n "$GCC"; then
13987 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
13991 if test -z "$haveit"; then
13993 for x in $LDFLAGS $LIBICONV; do
13995 acl_save_prefix="$prefix"
13996 prefix="$acl_final_prefix"
13997 acl_save_exec_prefix="$exec_prefix"
13998 exec_prefix="$acl_final_exec_prefix"
14000 exec_prefix="$acl_save_exec_prefix"
14001 prefix="$acl_save_prefix"
14003 if test "X$x" = "X-L$additional_libdir"; then
14008 if test -z "$haveit"; then
14009 if test -d "$additional_libdir"; then
14010 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
14014 for x in $LDFLAGS $LTLIBICONV; do
14016 acl_save_prefix="$prefix"
14017 prefix="$acl_final_prefix"
14018 acl_save_exec_prefix="$exec_prefix"
14019 exec_prefix="$acl_final_exec_prefix"
14021 exec_prefix="$acl_save_exec_prefix"
14022 prefix="$acl_save_prefix"
14024 if test "X$x" = "X-L$additional_libdir"; then
14029 if test -z "$haveit"; then
14030 if test -d "$additional_libdir"; then
14031 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
14038 dir=`echo "X$dep" | sed -e 's/^X-R//'`
14039 if test "$enable_rpath" != no; then
14041 for x in $rpathdirs; do
14042 if test "X$x" = "X$dir"; then
14047 if test -z "$haveit"; then
14048 rpathdirs="$rpathdirs $dir"
14051 for x in $ltrpathdirs; do
14052 if test "X$x" = "X$dir"; then
14057 if test -z "$haveit"; then
14058 ltrpathdirs="$ltrpathdirs $dir"
14063 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
14066 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
14069 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
14070 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
14076 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
14077 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
14083 if test "X$rpathdirs" != "X"; then
14084 if test -n "$acl_hardcode_libdir_separator"; then
14086 for found_dir in $rpathdirs; do
14087 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
14089 acl_save_libdir="$libdir"
14091 eval flag=\"$acl_hardcode_libdir_flag_spec\"
14092 libdir="$acl_save_libdir"
14093 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
14095 for found_dir in $rpathdirs; do
14096 acl_save_libdir="$libdir"
14097 libdir="$found_dir"
14098 eval flag=\"$acl_hardcode_libdir_flag_spec\"
14099 libdir="$acl_save_libdir"
14100 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
14104 if test "X$ltrpathdirs" != "X"; then
14105 for found_dir in $ltrpathdirs; do
14106 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
14140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
14141 $as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
14142 if ${gt_cv_func_CFPreferencesCopyAppValue+:} false; then :
14143 $as_echo_n "(cached) " >&6
14145 gt_save_LIBS="$LIBS"
14146 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
14147 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14148 /* end confdefs.h. */
14149 #include <CoreFoundation/CFPreferences.h>
14153 CFPreferencesCopyAppValue(NULL, NULL)
14158 if ac_fn_c_try_link "$LINENO"; then :
14159 gt_cv_func_CFPreferencesCopyAppValue=yes
14161 gt_cv_func_CFPreferencesCopyAppValue=no
14163 rm -f core conftest.err conftest.$ac_objext \
14164 conftest$ac_exeext conftest.$ac_ext
14165 LIBS="$gt_save_LIBS"
14167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
14168 $as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
14169 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
14171 $as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
14174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5
14175 $as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
14176 if ${gt_cv_func_CFLocaleCopyCurrent+:} false; then :
14177 $as_echo_n "(cached) " >&6
14179 gt_save_LIBS="$LIBS"
14180 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
14181 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14182 /* end confdefs.h. */
14183 #include <CoreFoundation/CFLocale.h>
14187 CFLocaleCopyCurrent();
14192 if ac_fn_c_try_link "$LINENO"; then :
14193 gt_cv_func_CFLocaleCopyCurrent=yes
14195 gt_cv_func_CFLocaleCopyCurrent=no
14197 rm -f core conftest.err conftest.$ac_objext \
14198 conftest$ac_exeext conftest.$ac_ext
14199 LIBS="$gt_save_LIBS"
14201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
14202 $as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
14203 if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
14205 $as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h
14209 if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
14210 INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
14222 case " $gt_needs " in
14223 *" need-formatstring-macros "*) gt_api_version=3 ;;
14224 *" need-ngettext "*) gt_api_version=2 ;;
14225 *) gt_api_version=1 ;;
14227 gt_func_gnugettext_libc="gt_cv_func_gnugettext${gt_api_version}_libc"
14228 gt_func_gnugettext_libintl="gt_cv_func_gnugettext${gt_api_version}_libintl"
14230 if test "$USE_NLS" = "yes"; then
14231 gt_use_preinstalled_gnugettext=no
14234 if test $gt_api_version -ge 3; then
14235 gt_revision_test_code='
14236 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
14237 #define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1)
14239 typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1];
14242 gt_revision_test_code=
14244 if test $gt_api_version -ge 2; then
14245 gt_expression_test_code=' + * ngettext ("", "", 0)'
14247 gt_expression_test_code=
14250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
14251 $as_echo_n "checking for GNU gettext in libc... " >&6; }
14252 if eval \${$gt_func_gnugettext_libc+:} false; then :
14253 $as_echo_n "(cached) " >&6
14255 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14256 /* end confdefs.h. */
14257 #include <libintl.h>
14258 $gt_revision_test_code
14259 extern int _nl_msg_cat_cntr;
14260 extern int *_nl_domain_bindings;
14264 bindtextdomain ("", "");
14265 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_domain_bindings
14270 if ac_fn_c_try_link "$LINENO"; then :
14271 eval "$gt_func_gnugettext_libc=yes"
14273 eval "$gt_func_gnugettext_libc=no"
14275 rm -f core conftest.err conftest.$ac_objext \
14276 conftest$ac_exeext conftest.$ac_ext
14278 eval ac_res=\$$gt_func_gnugettext_libc
14279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
14280 $as_echo "$ac_res" >&6; }
14282 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then
14288 am_save_CPPFLAGS="$CPPFLAGS"
14290 for element in $INCICONV; do
14292 for x in $CPPFLAGS; do
14294 acl_save_prefix="$prefix"
14295 prefix="$acl_final_prefix"
14296 acl_save_exec_prefix="$exec_prefix"
14297 exec_prefix="$acl_final_exec_prefix"
14299 exec_prefix="$acl_save_exec_prefix"
14300 prefix="$acl_save_prefix"
14302 if test "X$x" = "X$element"; then
14307 if test -z "$haveit"; then
14308 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
14313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
14314 $as_echo_n "checking for iconv... " >&6; }
14315 if ${am_cv_func_iconv+:} false; then :
14316 $as_echo_n "(cached) " >&6
14319 am_cv_func_iconv="no, consider installing GNU libiconv"
14321 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14322 /* end confdefs.h. */
14323 #include <stdlib.h>
14328 iconv_t cd = iconv_open("","");
14329 iconv(cd,NULL,NULL,NULL,NULL);
14335 if ac_fn_c_try_link "$LINENO"; then :
14336 am_cv_func_iconv=yes
14338 rm -f core conftest.err conftest.$ac_objext \
14339 conftest$ac_exeext conftest.$ac_ext
14340 if test "$am_cv_func_iconv" != yes; then
14341 am_save_LIBS="$LIBS"
14342 LIBS="$LIBS $LIBICONV"
14343 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14344 /* end confdefs.h. */
14345 #include <stdlib.h>
14350 iconv_t cd = iconv_open("","");
14351 iconv(cd,NULL,NULL,NULL,NULL);
14357 if ac_fn_c_try_link "$LINENO"; then :
14358 am_cv_lib_iconv=yes
14359 am_cv_func_iconv=yes
14361 rm -f core conftest.err conftest.$ac_objext \
14362 conftest$ac_exeext conftest.$ac_ext
14363 LIBS="$am_save_LIBS"
14367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
14368 $as_echo "$am_cv_func_iconv" >&6; }
14369 if test "$am_cv_func_iconv" = yes; then
14370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5
14371 $as_echo_n "checking for working iconv... " >&6; }
14372 if ${am_cv_func_iconv_works+:} false; then :
14373 $as_echo_n "(cached) " >&6
14376 am_save_LIBS="$LIBS"
14377 if test $am_cv_lib_iconv = yes; then
14378 LIBS="$LIBS $LIBICONV"
14380 if test "$cross_compiling" = yes; then :
14382 aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
14383 *) am_cv_func_iconv_works="guessing yes" ;;
14386 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14387 /* end confdefs.h. */
14390 #include <string.h>
14393 /* Test against AIX 5.1 bug: Failures are not distinguishable from successful
14396 iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
14397 if (cd_utf8_to_88591 != (iconv_t)(-1))
14399 static const char input[] = "\342\202\254"; /* EURO SIGN */
14401 const char *inptr = input;
14402 size_t inbytesleft = strlen (input);
14403 char *outptr = buf;
14404 size_t outbytesleft = sizeof (buf);
14405 size_t res = iconv (cd_utf8_to_88591,
14406 (char **) &inptr, &inbytesleft,
14407 &outptr, &outbytesleft);
14412 /* Test against Solaris 10 bug: Failures are not distinguishable from
14413 successful returns. */
14415 iconv_t cd_ascii_to_88591 = iconv_open ("ISO8859-1", "646");
14416 if (cd_ascii_to_88591 != (iconv_t)(-1))
14418 static const char input[] = "\263";
14420 const char *inptr = input;
14421 size_t inbytesleft = strlen (input);
14422 char *outptr = buf;
14423 size_t outbytesleft = sizeof (buf);
14424 size_t res = iconv (cd_ascii_to_88591,
14425 (char **) &inptr, &inbytesleft,
14426 &outptr, &outbytesleft);
14431 #if 0 /* This bug could be worked around by the caller. */
14432 /* Test against HP-UX 11.11 bug: Positive return value instead of 0. */
14434 iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
14435 if (cd_88591_to_utf8 != (iconv_t)(-1))
14437 static const char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
14439 const char *inptr = input;
14440 size_t inbytesleft = strlen (input);
14441 char *outptr = buf;
14442 size_t outbytesleft = sizeof (buf);
14443 size_t res = iconv (cd_88591_to_utf8,
14444 (char **) &inptr, &inbytesleft,
14445 &outptr, &outbytesleft);
14451 /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
14453 if (/* Try standardized names. */
14454 iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1)
14455 /* Try IRIX, OSF/1 names. */
14456 && iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1)
14457 /* Try AIX names. */
14458 && iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1)
14459 /* Try HP-UX names. */
14460 && iconv_open ("utf8", "eucJP") == (iconv_t)(-1))
14465 if ac_fn_c_try_run "$LINENO"; then :
14466 am_cv_func_iconv_works=yes
14468 am_cv_func_iconv_works=no
14470 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14471 conftest.$ac_objext conftest.beam conftest.$ac_ext
14474 LIBS="$am_save_LIBS"
14477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5
14478 $as_echo "$am_cv_func_iconv_works" >&6; }
14479 case "$am_cv_func_iconv_works" in
14480 *no) am_func_iconv=no am_cv_lib_iconv=no ;;
14481 *) am_func_iconv=yes ;;
14484 am_func_iconv=no am_cv_lib_iconv=no
14486 if test "$am_func_iconv" = yes; then
14488 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
14491 if test "$am_cv_lib_iconv" = yes; then
14492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
14493 $as_echo_n "checking how to link with libiconv... " >&6; }
14494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
14495 $as_echo "$LIBICONV" >&6; }
14497 CPPFLAGS="$am_save_CPPFLAGS"
14514 acl_save_prefix="$prefix"
14515 prefix="$acl_final_prefix"
14516 acl_save_exec_prefix="$exec_prefix"
14517 exec_prefix="$acl_final_exec_prefix"
14519 eval additional_includedir=\"$includedir\"
14520 eval additional_libdir=\"$libdir\"
14522 exec_prefix="$acl_save_exec_prefix"
14523 prefix="$acl_save_prefix"
14526 # Check whether --with-libintl-prefix was given.
14527 if test "${with_libintl_prefix+set}" = set; then :
14528 withval=$with_libintl_prefix;
14529 if test "X$withval" = "Xno"; then
14532 if test "X$withval" = "X"; then
14534 acl_save_prefix="$prefix"
14535 prefix="$acl_final_prefix"
14536 acl_save_exec_prefix="$exec_prefix"
14537 exec_prefix="$acl_final_exec_prefix"
14539 eval additional_includedir=\"$includedir\"
14540 eval additional_libdir=\"$libdir\"
14542 exec_prefix="$acl_save_exec_prefix"
14543 prefix="$acl_save_prefix"
14546 additional_includedir="$withval/include"
14547 additional_libdir="$withval/$acl_libdirstem"
14548 if test "$acl_libdirstem2" != "$acl_libdirstem" \
14549 && ! test -d "$withval/$acl_libdirstem"; then
14550 additional_libdir="$withval/$acl_libdirstem2"
14564 names_already_handled=
14565 names_next_round='intl '
14566 while test -n "$names_next_round"; do
14567 names_this_round="$names_next_round"
14569 for name in $names_this_round; do
14571 for n in $names_already_handled; do
14572 if test "$n" = "$name"; then
14573 already_handled=yes
14577 if test -z "$already_handled"; then
14578 names_already_handled="$names_already_handled $name"
14579 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
14580 eval value=\"\$HAVE_LIB$uppername\"
14581 if test -n "$value"; then
14582 if test "$value" = yes; then
14583 eval value=\"\$LIB$uppername\"
14584 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
14585 eval value=\"\$LTLIB$uppername\"
14586 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
14595 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
14596 if test -n "$acl_shlibext"; then
14597 shrext=".$acl_shlibext" # typically: shrext=.so
14601 if test $use_additional = yes; then
14602 dir="$additional_libdir"
14603 if test -n "$acl_shlibext"; then
14604 if test -f "$dir/$libname$shrext"; then
14606 found_so="$dir/$libname$shrext"
14608 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
14609 ver=`(cd "$dir" && \
14610 for f in "$libname$shrext".*; do echo "$f"; done \
14611 | sed -e "s,^$libname$shrext\\\\.,," \
14612 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
14613 | sed 1q ) 2>/dev/null`
14614 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
14616 found_so="$dir/$libname$shrext.$ver"
14619 eval library_names=\"$acl_library_names_spec\"
14620 for f in $library_names; do
14621 if test -f "$dir/$f"; then
14630 if test "X$found_dir" = "X"; then
14631 if test -f "$dir/$libname.$acl_libext"; then
14633 found_a="$dir/$libname.$acl_libext"
14636 if test "X$found_dir" != "X"; then
14637 if test -f "$dir/$libname.la"; then
14638 found_la="$dir/$libname.la"
14642 if test "X$found_dir" = "X"; then
14643 for x in $LDFLAGS $LTLIBINTL; do
14645 acl_save_prefix="$prefix"
14646 prefix="$acl_final_prefix"
14647 acl_save_exec_prefix="$exec_prefix"
14648 exec_prefix="$acl_final_exec_prefix"
14650 exec_prefix="$acl_save_exec_prefix"
14651 prefix="$acl_save_prefix"
14655 dir=`echo "X$x" | sed -e 's/^X-L//'`
14656 if test -n "$acl_shlibext"; then
14657 if test -f "$dir/$libname$shrext"; then
14659 found_so="$dir/$libname$shrext"
14661 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
14662 ver=`(cd "$dir" && \
14663 for f in "$libname$shrext".*; do echo "$f"; done \
14664 | sed -e "s,^$libname$shrext\\\\.,," \
14665 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
14666 | sed 1q ) 2>/dev/null`
14667 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
14669 found_so="$dir/$libname$shrext.$ver"
14672 eval library_names=\"$acl_library_names_spec\"
14673 for f in $library_names; do
14674 if test -f "$dir/$f"; then
14683 if test "X$found_dir" = "X"; then
14684 if test -f "$dir/$libname.$acl_libext"; then
14686 found_a="$dir/$libname.$acl_libext"
14689 if test "X$found_dir" != "X"; then
14690 if test -f "$dir/$libname.la"; then
14691 found_la="$dir/$libname.la"
14696 if test "X$found_dir" != "X"; then
14701 if test "X$found_dir" != "X"; then
14702 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
14703 if test "X$found_so" != "X"; then
14704 if test "$enable_rpath" = no \
14705 || test "X$found_dir" = "X/usr/$acl_libdirstem" \
14706 || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
14707 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
14710 for x in $ltrpathdirs; do
14711 if test "X$x" = "X$found_dir"; then
14716 if test -z "$haveit"; then
14717 ltrpathdirs="$ltrpathdirs $found_dir"
14719 if test "$acl_hardcode_direct" = yes; then
14720 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
14722 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
14723 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
14725 for x in $rpathdirs; do
14726 if test "X$x" = "X$found_dir"; then
14731 if test -z "$haveit"; then
14732 rpathdirs="$rpathdirs $found_dir"
14736 for x in $LDFLAGS $LIBINTL; do
14738 acl_save_prefix="$prefix"
14739 prefix="$acl_final_prefix"
14740 acl_save_exec_prefix="$exec_prefix"
14741 exec_prefix="$acl_final_exec_prefix"
14743 exec_prefix="$acl_save_exec_prefix"
14744 prefix="$acl_save_prefix"
14746 if test "X$x" = "X-L$found_dir"; then
14751 if test -z "$haveit"; then
14752 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
14754 if test "$acl_hardcode_minus_L" != no; then
14755 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
14757 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
14763 if test "X$found_a" != "X"; then
14764 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
14766 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
14769 additional_includedir=
14770 case "$found_dir" in
14771 */$acl_libdirstem | */$acl_libdirstem/)
14772 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
14773 if test "$name" = 'intl'; then
14774 LIBINTL_PREFIX="$basedir"
14776 additional_includedir="$basedir/include"
14778 */$acl_libdirstem2 | */$acl_libdirstem2/)
14779 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
14780 if test "$name" = 'intl'; then
14781 LIBINTL_PREFIX="$basedir"
14783 additional_includedir="$basedir/include"
14786 if test "X$additional_includedir" != "X"; then
14787 if test "X$additional_includedir" != "X/usr/include"; then
14789 if test "X$additional_includedir" = "X/usr/local/include"; then
14790 if test -n "$GCC"; then
14792 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
14796 if test -z "$haveit"; then
14797 for x in $CPPFLAGS $INCINTL; do
14799 acl_save_prefix="$prefix"
14800 prefix="$acl_final_prefix"
14801 acl_save_exec_prefix="$exec_prefix"
14802 exec_prefix="$acl_final_exec_prefix"
14804 exec_prefix="$acl_save_exec_prefix"
14805 prefix="$acl_save_prefix"
14807 if test "X$x" = "X-I$additional_includedir"; then
14812 if test -z "$haveit"; then
14813 if test -d "$additional_includedir"; then
14814 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
14820 if test -n "$found_la"; then
14821 save_libdir="$libdir"
14822 case "$found_la" in
14823 */* | *\\*) . "$found_la" ;;
14824 *) . "./$found_la" ;;
14826 libdir="$save_libdir"
14827 for dep in $dependency_libs; do
14830 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
14831 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
14832 && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
14834 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
14835 || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
14836 if test -n "$GCC"; then
14838 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
14842 if test -z "$haveit"; then
14844 for x in $LDFLAGS $LIBINTL; do
14846 acl_save_prefix="$prefix"
14847 prefix="$acl_final_prefix"
14848 acl_save_exec_prefix="$exec_prefix"
14849 exec_prefix="$acl_final_exec_prefix"
14851 exec_prefix="$acl_save_exec_prefix"
14852 prefix="$acl_save_prefix"
14854 if test "X$x" = "X-L$additional_libdir"; then
14859 if test -z "$haveit"; then
14860 if test -d "$additional_libdir"; then
14861 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
14865 for x in $LDFLAGS $LTLIBINTL; do
14867 acl_save_prefix="$prefix"
14868 prefix="$acl_final_prefix"
14869 acl_save_exec_prefix="$exec_prefix"
14870 exec_prefix="$acl_final_exec_prefix"
14872 exec_prefix="$acl_save_exec_prefix"
14873 prefix="$acl_save_prefix"
14875 if test "X$x" = "X-L$additional_libdir"; then
14880 if test -z "$haveit"; then
14881 if test -d "$additional_libdir"; then
14882 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
14889 dir=`echo "X$dep" | sed -e 's/^X-R//'`
14890 if test "$enable_rpath" != no; then
14892 for x in $rpathdirs; do
14893 if test "X$x" = "X$dir"; then
14898 if test -z "$haveit"; then
14899 rpathdirs="$rpathdirs $dir"
14902 for x in $ltrpathdirs; do
14903 if test "X$x" = "X$dir"; then
14908 if test -z "$haveit"; then
14909 ltrpathdirs="$ltrpathdirs $dir"
14914 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
14917 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
14920 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
14921 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
14927 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
14928 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
14934 if test "X$rpathdirs" != "X"; then
14935 if test -n "$acl_hardcode_libdir_separator"; then
14937 for found_dir in $rpathdirs; do
14938 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
14940 acl_save_libdir="$libdir"
14942 eval flag=\"$acl_hardcode_libdir_flag_spec\"
14943 libdir="$acl_save_libdir"
14944 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
14946 for found_dir in $rpathdirs; do
14947 acl_save_libdir="$libdir"
14948 libdir="$found_dir"
14949 eval flag=\"$acl_hardcode_libdir_flag_spec\"
14950 libdir="$acl_save_libdir"
14951 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
14955 if test "X$ltrpathdirs" != "X"; then
14956 for found_dir in $ltrpathdirs; do
14957 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
14966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
14967 $as_echo_n "checking for GNU gettext in libintl... " >&6; }
14968 if eval \${$gt_func_gnugettext_libintl+:} false; then :
14969 $as_echo_n "(cached) " >&6
14971 gt_save_CPPFLAGS="$CPPFLAGS"
14972 CPPFLAGS="$CPPFLAGS $INCINTL"
14973 gt_save_LIBS="$LIBS"
14974 LIBS="$LIBS $LIBINTL"
14975 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14976 /* end confdefs.h. */
14977 #include <libintl.h>
14978 $gt_revision_test_code
14979 extern int _nl_msg_cat_cntr;
14984 const char *_nl_expand_alias (const char *);
14988 bindtextdomain ("", "");
14989 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
14994 if ac_fn_c_try_link "$LINENO"; then :
14995 eval "$gt_func_gnugettext_libintl=yes"
14997 eval "$gt_func_gnugettext_libintl=no"
14999 rm -f core conftest.err conftest.$ac_objext \
15000 conftest$ac_exeext conftest.$ac_ext
15001 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } && test -n "$LIBICONV"; then
15002 LIBS="$LIBS $LIBICONV"
15003 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15004 /* end confdefs.h. */
15005 #include <libintl.h>
15006 $gt_revision_test_code
15007 extern int _nl_msg_cat_cntr;
15012 const char *_nl_expand_alias (const char *);
15016 bindtextdomain ("", "");
15017 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
15022 if ac_fn_c_try_link "$LINENO"; then :
15023 LIBINTL="$LIBINTL $LIBICONV"
15024 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
15025 eval "$gt_func_gnugettext_libintl=yes"
15028 rm -f core conftest.err conftest.$ac_objext \
15029 conftest$ac_exeext conftest.$ac_ext
15031 CPPFLAGS="$gt_save_CPPFLAGS"
15032 LIBS="$gt_save_LIBS"
15034 eval ac_res=\$$gt_func_gnugettext_libintl
15035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
15036 $as_echo "$ac_res" >&6; }
15039 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \
15040 || { { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \
15041 && test "$PACKAGE" != gettext-runtime \
15042 && test "$PACKAGE" != gettext-tools; }; then
15043 gt_use_preinstalled_gnugettext=yes
15052 if test -n "$INTL_MACOSX_LIBS"; then
15053 if test "$gt_use_preinstalled_gnugettext" = "yes" \
15054 || test "$nls_cv_use_gnu_gettext" = "yes"; then
15055 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
15056 LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
15060 if test "$gt_use_preinstalled_gnugettext" = "yes" \
15061 || test "$nls_cv_use_gnu_gettext" = "yes"; then
15063 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
15070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
15071 $as_echo_n "checking whether to use NLS... " >&6; }
15072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
15073 $as_echo "$USE_NLS" >&6; }
15074 if test "$USE_NLS" = "yes"; then
15075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
15076 $as_echo_n "checking where the gettext function comes from... " >&6; }
15077 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
15078 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
15079 gt_source="external libintl"
15084 gt_source="included intl directory"
15086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
15087 $as_echo "$gt_source" >&6; }
15090 if test "$USE_NLS" = "yes"; then
15092 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
15093 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
15094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
15095 $as_echo_n "checking how to link with libintl... " >&6; }
15096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
15097 $as_echo "$LIBINTL" >&6; }
15099 for element in $INCINTL; do
15101 for x in $CPPFLAGS; do
15103 acl_save_prefix="$prefix"
15104 prefix="$acl_final_prefix"
15105 acl_save_exec_prefix="$exec_prefix"
15106 exec_prefix="$acl_final_exec_prefix"
15108 exec_prefix="$acl_save_exec_prefix"
15109 prefix="$acl_save_prefix"
15111 if test "X$x" = "X$element"; then
15116 if test -z "$haveit"; then
15117 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
15124 $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
15127 $as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
15136 INTLLIBS="$LIBINTL"
15146 # Check whether --enable-anonymous was given.
15147 if test "${enable_anonymous+set}" = set; then :
15148 enableval=$enable_anonymous; anonymous=$enableval
15151 if test "$anonymous" != "no" ; then
15154 $as_echo "#define USE_ANONYMOUS 1" >>confdefs.h
15157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ANONYMOUS should be used" >&5
15158 $as_echo_n "checking if ANONYMOUS should be used... " >&6; }
15159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $anonymous" >&5
15160 $as_echo "$anonymous" >&6; }
15161 if test x$anonymous = xyes; then
15163 ANONYMOUS_FALSE='#'
15171 # Check whether --enable-external was given.
15172 if test "${enable_external+set}" = set; then :
15173 enableval=$enable_external; external=$enableval
15176 if test "$external" != "no" ; then
15179 $as_echo "#define USE_EXTERNAL 1" >>confdefs.h
15182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if EXTERNAL should be used" >&5
15183 $as_echo_n "checking if EXTERNAL should be used... " >&6; }
15184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $external" >&5
15185 $as_echo "$external" >&6; }
15186 if test x$external = xyes; then
15196 # Check whether --enable-plain was given.
15197 if test "${enable_plain+set}" = set; then :
15198 enableval=$enable_plain; plain=$enableval
15201 if test "$plain" != "no" ; then
15204 $as_echo "#define USE_PLAIN 1" >>confdefs.h
15207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if PLAIN should be used" >&5
15208 $as_echo_n "checking if PLAIN should be used... " >&6; }
15209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $plain" >&5
15210 $as_echo "$plain" >&6; }
15211 if test x$plain = xyes; then
15221 # Check whether --enable-login was given.
15222 if test "${enable_login+set}" = set; then :
15223 enableval=$enable_login; login=$enableval
15226 if test "$login" != "no" ; then
15229 $as_echo "#define USE_LOGIN 1" >>confdefs.h
15232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if LOGIN should be used" >&5
15233 $as_echo_n "checking if LOGIN should be used... " >&6; }
15234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $login" >&5
15235 $as_echo "$login" >&6; }
15236 if test x$login = xyes; then
15246 # Check whether --enable-securid was given.
15247 if test "${enable_securid+set}" = set; then :
15248 enableval=$enable_securid; securid=$enableval
15251 if test "$securid" != "no" ; then
15254 $as_echo "#define USE_SECURID 1" >>confdefs.h
15257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if SECURID should be used" >&5
15258 $as_echo_n "checking if SECURID should be used... " >&6; }
15259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $securid" >&5
15260 $as_echo "$securid" >&6; }
15261 if test x$securid = xyes; then
15271 # Check whether --enable-ntlm was given.
15272 if test "${enable_ntlm+set}" = set; then :
15273 enableval=$enable_ntlm; ntlm=$enableval
15276 if test "$ntlm" != "no"; then
15292 acl_save_prefix="$prefix"
15293 prefix="$acl_final_prefix"
15294 acl_save_exec_prefix="$exec_prefix"
15295 exec_prefix="$acl_final_exec_prefix"
15297 eval additional_includedir=\"$includedir\"
15298 eval additional_libdir=\"$libdir\"
15300 exec_prefix="$acl_save_exec_prefix"
15301 prefix="$acl_save_prefix"
15304 # Check whether --with-libntlm-prefix was given.
15305 if test "${with_libntlm_prefix+set}" = set; then :
15306 withval=$with_libntlm_prefix;
15307 if test "X$withval" = "Xno"; then
15310 if test "X$withval" = "X"; then
15312 acl_save_prefix="$prefix"
15313 prefix="$acl_final_prefix"
15314 acl_save_exec_prefix="$exec_prefix"
15315 exec_prefix="$acl_final_exec_prefix"
15317 eval additional_includedir=\"$includedir\"
15318 eval additional_libdir=\"$libdir\"
15320 exec_prefix="$acl_save_exec_prefix"
15321 prefix="$acl_save_prefix"
15324 additional_includedir="$withval/include"
15325 additional_libdir="$withval/$acl_libdirstem"
15326 if test "$acl_libdirstem2" != "$acl_libdirstem" \
15327 && ! test -d "$withval/$acl_libdirstem"; then
15328 additional_libdir="$withval/$acl_libdirstem2"
15342 names_already_handled=
15343 names_next_round='ntlm '
15344 while test -n "$names_next_round"; do
15345 names_this_round="$names_next_round"
15347 for name in $names_this_round; do
15349 for n in $names_already_handled; do
15350 if test "$n" = "$name"; then
15351 already_handled=yes
15355 if test -z "$already_handled"; then
15356 names_already_handled="$names_already_handled $name"
15357 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
15358 eval value=\"\$HAVE_LIB$uppername\"
15359 if test -n "$value"; then
15360 if test "$value" = yes; then
15361 eval value=\"\$LIB$uppername\"
15362 test -z "$value" || LIBNTLM="${LIBNTLM}${LIBNTLM:+ }$value"
15363 eval value=\"\$LTLIB$uppername\"
15364 test -z "$value" || LTLIBNTLM="${LTLIBNTLM}${LTLIBNTLM:+ }$value"
15373 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
15374 if test -n "$acl_shlibext"; then
15375 shrext=".$acl_shlibext" # typically: shrext=.so
15379 if test $use_additional = yes; then
15380 dir="$additional_libdir"
15381 if test -n "$acl_shlibext"; then
15382 if test -f "$dir/$libname$shrext"; then
15384 found_so="$dir/$libname$shrext"
15386 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
15387 ver=`(cd "$dir" && \
15388 for f in "$libname$shrext".*; do echo "$f"; done \
15389 | sed -e "s,^$libname$shrext\\\\.,," \
15390 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
15391 | sed 1q ) 2>/dev/null`
15392 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
15394 found_so="$dir/$libname$shrext.$ver"
15397 eval library_names=\"$acl_library_names_spec\"
15398 for f in $library_names; do
15399 if test -f "$dir/$f"; then
15408 if test "X$found_dir" = "X"; then
15409 if test -f "$dir/$libname.$acl_libext"; then
15411 found_a="$dir/$libname.$acl_libext"
15414 if test "X$found_dir" != "X"; then
15415 if test -f "$dir/$libname.la"; then
15416 found_la="$dir/$libname.la"
15420 if test "X$found_dir" = "X"; then
15421 for x in $LDFLAGS $LTLIBNTLM; do
15423 acl_save_prefix="$prefix"
15424 prefix="$acl_final_prefix"
15425 acl_save_exec_prefix="$exec_prefix"
15426 exec_prefix="$acl_final_exec_prefix"
15428 exec_prefix="$acl_save_exec_prefix"
15429 prefix="$acl_save_prefix"
15433 dir=`echo "X$x" | sed -e 's/^X-L//'`
15434 if test -n "$acl_shlibext"; then
15435 if test -f "$dir/$libname$shrext"; then
15437 found_so="$dir/$libname$shrext"
15439 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
15440 ver=`(cd "$dir" && \
15441 for f in "$libname$shrext".*; do echo "$f"; done \
15442 | sed -e "s,^$libname$shrext\\\\.,," \
15443 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
15444 | sed 1q ) 2>/dev/null`
15445 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
15447 found_so="$dir/$libname$shrext.$ver"
15450 eval library_names=\"$acl_library_names_spec\"
15451 for f in $library_names; do
15452 if test -f "$dir/$f"; then
15461 if test "X$found_dir" = "X"; then
15462 if test -f "$dir/$libname.$acl_libext"; then
15464 found_a="$dir/$libname.$acl_libext"
15467 if test "X$found_dir" != "X"; then
15468 if test -f "$dir/$libname.la"; then
15469 found_la="$dir/$libname.la"
15474 if test "X$found_dir" != "X"; then
15479 if test "X$found_dir" != "X"; then
15480 LTLIBNTLM="${LTLIBNTLM}${LTLIBNTLM:+ }-L$found_dir -l$name"
15481 if test "X$found_so" != "X"; then
15482 if test "$enable_rpath" = no \
15483 || test "X$found_dir" = "X/usr/$acl_libdirstem" \
15484 || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
15485 LIBNTLM="${LIBNTLM}${LIBNTLM:+ }$found_so"
15488 for x in $ltrpathdirs; do
15489 if test "X$x" = "X$found_dir"; then
15494 if test -z "$haveit"; then
15495 ltrpathdirs="$ltrpathdirs $found_dir"
15497 if test "$acl_hardcode_direct" = yes; then
15498 LIBNTLM="${LIBNTLM}${LIBNTLM:+ }$found_so"
15500 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
15501 LIBNTLM="${LIBNTLM}${LIBNTLM:+ }$found_so"
15503 for x in $rpathdirs; do
15504 if test "X$x" = "X$found_dir"; then
15509 if test -z "$haveit"; then
15510 rpathdirs="$rpathdirs $found_dir"
15514 for x in $LDFLAGS $LIBNTLM; do
15516 acl_save_prefix="$prefix"
15517 prefix="$acl_final_prefix"
15518 acl_save_exec_prefix="$exec_prefix"
15519 exec_prefix="$acl_final_exec_prefix"
15521 exec_prefix="$acl_save_exec_prefix"
15522 prefix="$acl_save_prefix"
15524 if test "X$x" = "X-L$found_dir"; then
15529 if test -z "$haveit"; then
15530 LIBNTLM="${LIBNTLM}${LIBNTLM:+ }-L$found_dir"
15532 if test "$acl_hardcode_minus_L" != no; then
15533 LIBNTLM="${LIBNTLM}${LIBNTLM:+ }$found_so"
15535 LIBNTLM="${LIBNTLM}${LIBNTLM:+ }-l$name"
15541 if test "X$found_a" != "X"; then
15542 LIBNTLM="${LIBNTLM}${LIBNTLM:+ }$found_a"
15544 LIBNTLM="${LIBNTLM}${LIBNTLM:+ }-L$found_dir -l$name"
15547 additional_includedir=
15548 case "$found_dir" in
15549 */$acl_libdirstem | */$acl_libdirstem/)
15550 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
15551 if test "$name" = 'ntlm'; then
15552 LIBNTLM_PREFIX="$basedir"
15554 additional_includedir="$basedir/include"
15556 */$acl_libdirstem2 | */$acl_libdirstem2/)
15557 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
15558 if test "$name" = 'ntlm'; then
15559 LIBNTLM_PREFIX="$basedir"
15561 additional_includedir="$basedir/include"
15564 if test "X$additional_includedir" != "X"; then
15565 if test "X$additional_includedir" != "X/usr/include"; then
15567 if test "X$additional_includedir" = "X/usr/local/include"; then
15568 if test -n "$GCC"; then
15570 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
15574 if test -z "$haveit"; then
15575 for x in $CPPFLAGS $INCNTLM; do
15577 acl_save_prefix="$prefix"
15578 prefix="$acl_final_prefix"
15579 acl_save_exec_prefix="$exec_prefix"
15580 exec_prefix="$acl_final_exec_prefix"
15582 exec_prefix="$acl_save_exec_prefix"
15583 prefix="$acl_save_prefix"
15585 if test "X$x" = "X-I$additional_includedir"; then
15590 if test -z "$haveit"; then
15591 if test -d "$additional_includedir"; then
15592 INCNTLM="${INCNTLM}${INCNTLM:+ }-I$additional_includedir"
15598 if test -n "$found_la"; then
15599 save_libdir="$libdir"
15600 case "$found_la" in
15601 */* | *\\*) . "$found_la" ;;
15602 *) . "./$found_la" ;;
15604 libdir="$save_libdir"
15605 for dep in $dependency_libs; do
15608 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
15609 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
15610 && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
15612 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
15613 || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
15614 if test -n "$GCC"; then
15616 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
15620 if test -z "$haveit"; then
15622 for x in $LDFLAGS $LIBNTLM; do
15624 acl_save_prefix="$prefix"
15625 prefix="$acl_final_prefix"
15626 acl_save_exec_prefix="$exec_prefix"
15627 exec_prefix="$acl_final_exec_prefix"
15629 exec_prefix="$acl_save_exec_prefix"
15630 prefix="$acl_save_prefix"
15632 if test "X$x" = "X-L$additional_libdir"; then
15637 if test -z "$haveit"; then
15638 if test -d "$additional_libdir"; then
15639 LIBNTLM="${LIBNTLM}${LIBNTLM:+ }-L$additional_libdir"
15643 for x in $LDFLAGS $LTLIBNTLM; do
15645 acl_save_prefix="$prefix"
15646 prefix="$acl_final_prefix"
15647 acl_save_exec_prefix="$exec_prefix"
15648 exec_prefix="$acl_final_exec_prefix"
15650 exec_prefix="$acl_save_exec_prefix"
15651 prefix="$acl_save_prefix"
15653 if test "X$x" = "X-L$additional_libdir"; then
15658 if test -z "$haveit"; then
15659 if test -d "$additional_libdir"; then
15660 LTLIBNTLM="${LTLIBNTLM}${LTLIBNTLM:+ }-L$additional_libdir"
15667 dir=`echo "X$dep" | sed -e 's/^X-R//'`
15668 if test "$enable_rpath" != no; then
15670 for x in $rpathdirs; do
15671 if test "X$x" = "X$dir"; then
15676 if test -z "$haveit"; then
15677 rpathdirs="$rpathdirs $dir"
15680 for x in $ltrpathdirs; do
15681 if test "X$x" = "X$dir"; then
15686 if test -z "$haveit"; then
15687 ltrpathdirs="$ltrpathdirs $dir"
15692 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
15695 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
15698 LIBNTLM="${LIBNTLM}${LIBNTLM:+ }$dep"
15699 LTLIBNTLM="${LTLIBNTLM}${LTLIBNTLM:+ }$dep"
15705 LIBNTLM="${LIBNTLM}${LIBNTLM:+ }-l$name"
15706 LTLIBNTLM="${LTLIBNTLM}${LTLIBNTLM:+ }-l$name"
15712 if test "X$rpathdirs" != "X"; then
15713 if test -n "$acl_hardcode_libdir_separator"; then
15715 for found_dir in $rpathdirs; do
15716 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
15718 acl_save_libdir="$libdir"
15720 eval flag=\"$acl_hardcode_libdir_flag_spec\"
15721 libdir="$acl_save_libdir"
15722 LIBNTLM="${LIBNTLM}${LIBNTLM:+ }$flag"
15724 for found_dir in $rpathdirs; do
15725 acl_save_libdir="$libdir"
15726 libdir="$found_dir"
15727 eval flag=\"$acl_hardcode_libdir_flag_spec\"
15728 libdir="$acl_save_libdir"
15729 LIBNTLM="${LIBNTLM}${LIBNTLM:+ }$flag"
15733 if test "X$ltrpathdirs" != "X"; then
15734 for found_dir in $ltrpathdirs; do
15735 LTLIBNTLM="${LTLIBNTLM}${LTLIBNTLM:+ }-R$found_dir"
15745 ac_save_CPPFLAGS="$CPPFLAGS"
15747 for element in $INCNTLM; do
15749 for x in $CPPFLAGS; do
15751 acl_save_prefix="$prefix"
15752 prefix="$acl_final_prefix"
15753 acl_save_exec_prefix="$exec_prefix"
15754 exec_prefix="$acl_final_exec_prefix"
15756 exec_prefix="$acl_save_exec_prefix"
15757 prefix="$acl_save_prefix"
15759 if test "X$x" = "X$element"; then
15764 if test -z "$haveit"; then
15765 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
15770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libntlm" >&5
15771 $as_echo_n "checking for libntlm... " >&6; }
15772 if ${ac_cv_libntlm+:} false; then :
15773 $as_echo_n "(cached) " >&6
15776 ac_save_LIBS="$LIBS"
15777 case " $LIBNTLM" in
15778 *" -l"*) LIBS="$LIBS $LIBNTLM" ;;
15779 *) LIBS="$LIBNTLM $LIBS" ;;
15781 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15782 /* end confdefs.h. */
15787 buildSmbNtlmAuthRequest_noatsplit (0, 0, 0);
15792 if ac_fn_c_try_link "$LINENO"; then :
15797 rm -f core conftest.err conftest.$ac_objext \
15798 conftest$ac_exeext conftest.$ac_ext
15799 LIBS="$ac_save_LIBS"
15802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libntlm" >&5
15803 $as_echo "$ac_cv_libntlm" >&6; }
15804 if test "$ac_cv_libntlm" = yes; then
15807 $as_echo "#define HAVE_LIBNTLM 1" >>confdefs.h
15809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libntlm" >&5
15810 $as_echo_n "checking how to link with libntlm... " >&6; }
15811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBNTLM" >&5
15812 $as_echo "$LIBNTLM" >&6; }
15815 CPPFLAGS="$ac_save_CPPFLAGS"
15827 if test "$ac_cv_libntlm" != yes; then
15829 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libntlm >= 0.3.5 not found, disabling NTLM." >&5
15830 $as_echo "$as_me: WARNING: Libntlm >= 0.3.5 not found, disabling NTLM." >&2;}
15834 $as_echo "#define USE_NTLM 1" >>confdefs.h
15838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if NTLM should be used" >&5
15839 $as_echo_n "checking if NTLM should be used... " >&6; }
15840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntlm" >&5
15841 $as_echo "$ntlm" >&6; }
15842 if test x$ntlm = xyes; then
15852 # Check whether --enable-cram-md5 was given.
15853 if test "${enable_cram_md5+set}" = set; then :
15854 enableval=$enable_cram_md5; cram_md5=$enableval
15857 if test "$cram_md5" != "no" ; then
15860 $as_echo "#define USE_CRAM_MD5 1" >>confdefs.h
15863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if CRAM-MD5 should be used" >&5
15864 $as_echo_n "checking if CRAM-MD5 should be used... " >&6; }
15865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cram_md5" >&5
15866 $as_echo "$cram_md5" >&6; }
15867 if test x$cram_md5 = xyes; then
15877 # Check whether --enable-digest-md5 was given.
15878 if test "${enable_digest_md5+set}" = set; then :
15879 enableval=$enable_digest_md5; digest_md5=$enableval
15882 if test "$digest_md5" != "no" ; then
15885 $as_echo "#define USE_DIGEST_MD5 1" >>confdefs.h
15888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if DIGEST-MD5 should be used" >&5
15889 $as_echo_n "checking if DIGEST-MD5 should be used... " >&6; }
15890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $digest_md5" >&5
15891 $as_echo "$digest_md5" >&6; }
15892 if test x$digest_md5 = xyes; then
15894 DIGEST_MD5_FALSE='#'
15896 DIGEST_MD5_TRUE='#'
15902 # Check whether --enable-scram-sha1 was given.
15903 if test "${enable_scram_sha1+set}" = set; then :
15904 enableval=$enable_scram_sha1; scram_sha1=$enableval
15907 if test "$scram_sha1" != "no" ; then
15910 $as_echo "#define USE_SCRAM_SHA1 1" >>confdefs.h
15913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if SCRAM-SHA-1 should be used" >&5
15914 $as_echo_n "checking if SCRAM-SHA-1 should be used... " >&6; }
15915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $scram_sha1" >&5
15916 $as_echo "$scram_sha1" >&6; }
15918 if test "$scram_sha1" != "no"; then
15928 # Check whether --enable-saml20 was given.
15929 if test "${enable_saml20+set}" = set; then :
15930 enableval=$enable_saml20; saml20=$enableval
15935 if test "$saml20" != "no" ; then
15938 $as_echo "#define USE_SAML20 1" >>confdefs.h
15941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if SAML20 should be used" >&5
15942 $as_echo_n "checking if SAML20 should be used... " >&6; }
15943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $saml20" >&5
15944 $as_echo "$saml20" >&6; }
15945 if test x$saml20 = xyes; then
15955 # Check whether --enable-openid20 was given.
15956 if test "${enable_openid20+set}" = set; then :
15957 enableval=$enable_openid20; openid20=$enableval
15962 if test "$openid20" != "no" ; then
15965 $as_echo "#define USE_OPENID20 1" >>confdefs.h
15968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if OPENID20 should be used" >&5
15969 $as_echo_n "checking if OPENID20 should be used... " >&6; }
15970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $openid20" >&5
15971 $as_echo "$openid20" >&6; }
15972 if test x$openid20 = xyes; then
15982 # Check whether --enable-gs2 was given.
15983 if test "${enable_gs2+set}" = set; then :
15984 enableval=$enable_gs2; gs2=$enableval
15987 if test "$gs2" != "no" ; then
15991 # GSSAPI, first part
15992 # Check whether --enable-gssapi was given.
15993 if test "${enable_gssapi+set}" = set; then :
15994 enableval=$enable_gssapi; gssapi=$enableval
15997 if test "$gssapi" != "no" ; then
16003 # Check whether --with-gssapi-impl was given.
16004 if test "${with_gssapi_impl+set}" = set; then :
16005 withval=$with_gssapi_impl; gssapi_impl=$withval
16010 if test "$gs2" = no && test "$gssapi" = no; then
16013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GSS implementation ($gssapi_impl)" >&5
16014 $as_echo "$as_me: checking for GSS implementation ($gssapi_impl)" >&6;}
16017 if test "$gssapi_impl" = "gss"; then
16018 { $as_echo "$as_me:${as_lineno-$LINENO}: trying GSS" >&5
16019 $as_echo "$as_me: trying GSS" >&6;}
16035 acl_save_prefix="$prefix"
16036 prefix="$acl_final_prefix"
16037 acl_save_exec_prefix="$exec_prefix"
16038 exec_prefix="$acl_final_exec_prefix"
16040 eval additional_includedir=\"$includedir\"
16041 eval additional_libdir=\"$libdir\"
16043 exec_prefix="$acl_save_exec_prefix"
16044 prefix="$acl_save_prefix"
16047 # Check whether --with-libgss-prefix was given.
16048 if test "${with_libgss_prefix+set}" = set; then :
16049 withval=$with_libgss_prefix;
16050 if test "X$withval" = "Xno"; then
16053 if test "X$withval" = "X"; then
16055 acl_save_prefix="$prefix"
16056 prefix="$acl_final_prefix"
16057 acl_save_exec_prefix="$exec_prefix"
16058 exec_prefix="$acl_final_exec_prefix"
16060 eval additional_includedir=\"$includedir\"
16061 eval additional_libdir=\"$libdir\"
16063 exec_prefix="$acl_save_exec_prefix"
16064 prefix="$acl_save_prefix"
16067 additional_includedir="$withval/include"
16068 additional_libdir="$withval/$acl_libdirstem"
16069 if test "$acl_libdirstem2" != "$acl_libdirstem" \
16070 && ! test -d "$withval/$acl_libdirstem"; then
16071 additional_libdir="$withval/$acl_libdirstem2"
16085 names_already_handled=
16086 names_next_round='gss '
16087 while test -n "$names_next_round"; do
16088 names_this_round="$names_next_round"
16090 for name in $names_this_round; do
16092 for n in $names_already_handled; do
16093 if test "$n" = "$name"; then
16094 already_handled=yes
16098 if test -z "$already_handled"; then
16099 names_already_handled="$names_already_handled $name"
16100 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
16101 eval value=\"\$HAVE_LIB$uppername\"
16102 if test -n "$value"; then
16103 if test "$value" = yes; then
16104 eval value=\"\$LIB$uppername\"
16105 test -z "$value" || LIBGSS="${LIBGSS}${LIBGSS:+ }$value"
16106 eval value=\"\$LTLIB$uppername\"
16107 test -z "$value" || LTLIBGSS="${LTLIBGSS}${LTLIBGSS:+ }$value"
16116 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
16117 if test -n "$acl_shlibext"; then
16118 shrext=".$acl_shlibext" # typically: shrext=.so
16122 if test $use_additional = yes; then
16123 dir="$additional_libdir"
16124 if test -n "$acl_shlibext"; then
16125 if test -f "$dir/$libname$shrext"; then
16127 found_so="$dir/$libname$shrext"
16129 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
16130 ver=`(cd "$dir" && \
16131 for f in "$libname$shrext".*; do echo "$f"; done \
16132 | sed -e "s,^$libname$shrext\\\\.,," \
16133 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
16134 | sed 1q ) 2>/dev/null`
16135 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
16137 found_so="$dir/$libname$shrext.$ver"
16140 eval library_names=\"$acl_library_names_spec\"
16141 for f in $library_names; do
16142 if test -f "$dir/$f"; then
16151 if test "X$found_dir" = "X"; then
16152 if test -f "$dir/$libname.$acl_libext"; then
16154 found_a="$dir/$libname.$acl_libext"
16157 if test "X$found_dir" != "X"; then
16158 if test -f "$dir/$libname.la"; then
16159 found_la="$dir/$libname.la"
16163 if test "X$found_dir" = "X"; then
16164 for x in $LDFLAGS $LTLIBGSS; do
16166 acl_save_prefix="$prefix"
16167 prefix="$acl_final_prefix"
16168 acl_save_exec_prefix="$exec_prefix"
16169 exec_prefix="$acl_final_exec_prefix"
16171 exec_prefix="$acl_save_exec_prefix"
16172 prefix="$acl_save_prefix"
16176 dir=`echo "X$x" | sed -e 's/^X-L//'`
16177 if test -n "$acl_shlibext"; then
16178 if test -f "$dir/$libname$shrext"; then
16180 found_so="$dir/$libname$shrext"
16182 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
16183 ver=`(cd "$dir" && \
16184 for f in "$libname$shrext".*; do echo "$f"; done \
16185 | sed -e "s,^$libname$shrext\\\\.,," \
16186 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
16187 | sed 1q ) 2>/dev/null`
16188 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
16190 found_so="$dir/$libname$shrext.$ver"
16193 eval library_names=\"$acl_library_names_spec\"
16194 for f in $library_names; do
16195 if test -f "$dir/$f"; then
16204 if test "X$found_dir" = "X"; then
16205 if test -f "$dir/$libname.$acl_libext"; then
16207 found_a="$dir/$libname.$acl_libext"
16210 if test "X$found_dir" != "X"; then
16211 if test -f "$dir/$libname.la"; then
16212 found_la="$dir/$libname.la"
16217 if test "X$found_dir" != "X"; then
16222 if test "X$found_dir" != "X"; then
16223 LTLIBGSS="${LTLIBGSS}${LTLIBGSS:+ }-L$found_dir -l$name"
16224 if test "X$found_so" != "X"; then
16225 if test "$enable_rpath" = no \
16226 || test "X$found_dir" = "X/usr/$acl_libdirstem" \
16227 || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
16228 LIBGSS="${LIBGSS}${LIBGSS:+ }$found_so"
16231 for x in $ltrpathdirs; do
16232 if test "X$x" = "X$found_dir"; then
16237 if test -z "$haveit"; then
16238 ltrpathdirs="$ltrpathdirs $found_dir"
16240 if test "$acl_hardcode_direct" = yes; then
16241 LIBGSS="${LIBGSS}${LIBGSS:+ }$found_so"
16243 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
16244 LIBGSS="${LIBGSS}${LIBGSS:+ }$found_so"
16246 for x in $rpathdirs; do
16247 if test "X$x" = "X$found_dir"; then
16252 if test -z "$haveit"; then
16253 rpathdirs="$rpathdirs $found_dir"
16257 for x in $LDFLAGS $LIBGSS; do
16259 acl_save_prefix="$prefix"
16260 prefix="$acl_final_prefix"
16261 acl_save_exec_prefix="$exec_prefix"
16262 exec_prefix="$acl_final_exec_prefix"
16264 exec_prefix="$acl_save_exec_prefix"
16265 prefix="$acl_save_prefix"
16267 if test "X$x" = "X-L$found_dir"; then
16272 if test -z "$haveit"; then
16273 LIBGSS="${LIBGSS}${LIBGSS:+ }-L$found_dir"
16275 if test "$acl_hardcode_minus_L" != no; then
16276 LIBGSS="${LIBGSS}${LIBGSS:+ }$found_so"
16278 LIBGSS="${LIBGSS}${LIBGSS:+ }-l$name"
16284 if test "X$found_a" != "X"; then
16285 LIBGSS="${LIBGSS}${LIBGSS:+ }$found_a"
16287 LIBGSS="${LIBGSS}${LIBGSS:+ }-L$found_dir -l$name"
16290 additional_includedir=
16291 case "$found_dir" in
16292 */$acl_libdirstem | */$acl_libdirstem/)
16293 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
16294 if test "$name" = 'gss'; then
16295 LIBGSS_PREFIX="$basedir"
16297 additional_includedir="$basedir/include"
16299 */$acl_libdirstem2 | */$acl_libdirstem2/)
16300 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
16301 if test "$name" = 'gss'; then
16302 LIBGSS_PREFIX="$basedir"
16304 additional_includedir="$basedir/include"
16307 if test "X$additional_includedir" != "X"; then
16308 if test "X$additional_includedir" != "X/usr/include"; then
16310 if test "X$additional_includedir" = "X/usr/local/include"; then
16311 if test -n "$GCC"; then
16313 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
16317 if test -z "$haveit"; then
16318 for x in $CPPFLAGS $INCGSS; do
16320 acl_save_prefix="$prefix"
16321 prefix="$acl_final_prefix"
16322 acl_save_exec_prefix="$exec_prefix"
16323 exec_prefix="$acl_final_exec_prefix"
16325 exec_prefix="$acl_save_exec_prefix"
16326 prefix="$acl_save_prefix"
16328 if test "X$x" = "X-I$additional_includedir"; then
16333 if test -z "$haveit"; then
16334 if test -d "$additional_includedir"; then
16335 INCGSS="${INCGSS}${INCGSS:+ }-I$additional_includedir"
16341 if test -n "$found_la"; then
16342 save_libdir="$libdir"
16343 case "$found_la" in
16344 */* | *\\*) . "$found_la" ;;
16345 *) . "./$found_la" ;;
16347 libdir="$save_libdir"
16348 for dep in $dependency_libs; do
16351 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
16352 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
16353 && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
16355 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
16356 || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
16357 if test -n "$GCC"; then
16359 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
16363 if test -z "$haveit"; then
16365 for x in $LDFLAGS $LIBGSS; do
16367 acl_save_prefix="$prefix"
16368 prefix="$acl_final_prefix"
16369 acl_save_exec_prefix="$exec_prefix"
16370 exec_prefix="$acl_final_exec_prefix"
16372 exec_prefix="$acl_save_exec_prefix"
16373 prefix="$acl_save_prefix"
16375 if test "X$x" = "X-L$additional_libdir"; then
16380 if test -z "$haveit"; then
16381 if test -d "$additional_libdir"; then
16382 LIBGSS="${LIBGSS}${LIBGSS:+ }-L$additional_libdir"
16386 for x in $LDFLAGS $LTLIBGSS; do
16388 acl_save_prefix="$prefix"
16389 prefix="$acl_final_prefix"
16390 acl_save_exec_prefix="$exec_prefix"
16391 exec_prefix="$acl_final_exec_prefix"
16393 exec_prefix="$acl_save_exec_prefix"
16394 prefix="$acl_save_prefix"
16396 if test "X$x" = "X-L$additional_libdir"; then
16401 if test -z "$haveit"; then
16402 if test -d "$additional_libdir"; then
16403 LTLIBGSS="${LTLIBGSS}${LTLIBGSS:+ }-L$additional_libdir"
16410 dir=`echo "X$dep" | sed -e 's/^X-R//'`
16411 if test "$enable_rpath" != no; then
16413 for x in $rpathdirs; do
16414 if test "X$x" = "X$dir"; then
16419 if test -z "$haveit"; then
16420 rpathdirs="$rpathdirs $dir"
16423 for x in $ltrpathdirs; do
16424 if test "X$x" = "X$dir"; then
16429 if test -z "$haveit"; then
16430 ltrpathdirs="$ltrpathdirs $dir"
16435 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
16438 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
16441 LIBGSS="${LIBGSS}${LIBGSS:+ }$dep"
16442 LTLIBGSS="${LTLIBGSS}${LTLIBGSS:+ }$dep"
16448 LIBGSS="${LIBGSS}${LIBGSS:+ }-l$name"
16449 LTLIBGSS="${LTLIBGSS}${LTLIBGSS:+ }-l$name"
16455 if test "X$rpathdirs" != "X"; then
16456 if test -n "$acl_hardcode_libdir_separator"; then
16458 for found_dir in $rpathdirs; do
16459 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
16461 acl_save_libdir="$libdir"
16463 eval flag=\"$acl_hardcode_libdir_flag_spec\"
16464 libdir="$acl_save_libdir"
16465 LIBGSS="${LIBGSS}${LIBGSS:+ }$flag"
16467 for found_dir in $rpathdirs; do
16468 acl_save_libdir="$libdir"
16469 libdir="$found_dir"
16470 eval flag=\"$acl_hardcode_libdir_flag_spec\"
16471 libdir="$acl_save_libdir"
16472 LIBGSS="${LIBGSS}${LIBGSS:+ }$flag"
16476 if test "X$ltrpathdirs" != "X"; then
16477 for found_dir in $ltrpathdirs; do
16478 LTLIBGSS="${LTLIBGSS}${LTLIBGSS:+ }-R$found_dir"
16488 ac_save_CPPFLAGS="$CPPFLAGS"
16490 for element in $INCGSS; do
16492 for x in $CPPFLAGS; do
16494 acl_save_prefix="$prefix"
16495 prefix="$acl_final_prefix"
16496 acl_save_exec_prefix="$exec_prefix"
16497 exec_prefix="$acl_final_exec_prefix"
16499 exec_prefix="$acl_save_exec_prefix"
16500 prefix="$acl_save_prefix"
16502 if test "X$x" = "X$element"; then
16507 if test -z "$haveit"; then
16508 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
16513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libgss" >&5
16514 $as_echo_n "checking for libgss... " >&6; }
16515 if ${ac_cv_libgss+:} false; then :
16516 $as_echo_n "(cached) " >&6
16519 ac_save_LIBS="$LIBS"
16521 *" -l"*) LIBS="$LIBS $LIBGSS" ;;
16522 *) LIBS="$LIBGSS $LIBS" ;;
16524 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16525 /* end confdefs.h. */
16531 #if GSS_VERSION_NUMBER < 0x010000
16534 gss_check_version (0);
16541 if ac_fn_c_try_link "$LINENO"; then :
16546 rm -f core conftest.err conftest.$ac_objext \
16547 conftest$ac_exeext conftest.$ac_ext
16548 LIBS="$ac_save_LIBS"
16551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libgss" >&5
16552 $as_echo "$ac_cv_libgss" >&6; }
16553 if test "$ac_cv_libgss" = yes; then
16556 $as_echo "#define HAVE_LIBGSS 1" >>confdefs.h
16558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libgss" >&5
16559 $as_echo_n "checking how to link with libgss... " >&6; }
16560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBGSS" >&5
16561 $as_echo "$LIBGSS" >&6; }
16564 CPPFLAGS="$ac_save_CPPFLAGS"
16576 if test "$ac_cv_libgss" != yes; then
16578 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: GNU GSS not found, disabling GSSAPI." >&5
16579 $as_echo "$as_me: WARNING: GNU GSS not found, disabling GSSAPI." >&2;}
16581 elif test "$gssapi_impl" = "kfw"; then
16582 { $as_echo "$as_me:${as_lineno-$LINENO}: trying MIT Kerberos for Windows GSS-API library" >&5
16583 $as_echo "$as_me: trying MIT Kerberos for Windows GSS-API library" >&6;}
16599 acl_save_prefix="$prefix"
16600 prefix="$acl_final_prefix"
16601 acl_save_exec_prefix="$exec_prefix"
16602 exec_prefix="$acl_final_exec_prefix"
16604 eval additional_includedir=\"$includedir\"
16605 eval additional_libdir=\"$libdir\"
16607 exec_prefix="$acl_save_exec_prefix"
16608 prefix="$acl_save_prefix"
16611 # Check whether --with-libgssapi32-prefix was given.
16612 if test "${with_libgssapi32_prefix+set}" = set; then :
16613 withval=$with_libgssapi32_prefix;
16614 if test "X$withval" = "Xno"; then
16617 if test "X$withval" = "X"; then
16619 acl_save_prefix="$prefix"
16620 prefix="$acl_final_prefix"
16621 acl_save_exec_prefix="$exec_prefix"
16622 exec_prefix="$acl_final_exec_prefix"
16624 eval additional_includedir=\"$includedir\"
16625 eval additional_libdir=\"$libdir\"
16627 exec_prefix="$acl_save_exec_prefix"
16628 prefix="$acl_save_prefix"
16631 additional_includedir="$withval/include"
16632 additional_libdir="$withval/$acl_libdirstem"
16633 if test "$acl_libdirstem2" != "$acl_libdirstem" \
16634 && ! test -d "$withval/$acl_libdirstem"; then
16635 additional_libdir="$withval/$acl_libdirstem2"
16645 LIBGSSAPI32_PREFIX=
16649 names_already_handled=
16650 names_next_round='gssapi32 '
16651 while test -n "$names_next_round"; do
16652 names_this_round="$names_next_round"
16654 for name in $names_this_round; do
16656 for n in $names_already_handled; do
16657 if test "$n" = "$name"; then
16658 already_handled=yes
16662 if test -z "$already_handled"; then
16663 names_already_handled="$names_already_handled $name"
16664 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
16665 eval value=\"\$HAVE_LIB$uppername\"
16666 if test -n "$value"; then
16667 if test "$value" = yes; then
16668 eval value=\"\$LIB$uppername\"
16669 test -z "$value" || LIBGSSAPI32="${LIBGSSAPI32}${LIBGSSAPI32:+ }$value"
16670 eval value=\"\$LTLIB$uppername\"
16671 test -z "$value" || LTLIBGSSAPI32="${LTLIBGSSAPI32}${LTLIBGSSAPI32:+ }$value"
16680 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
16681 if test -n "$acl_shlibext"; then
16682 shrext=".$acl_shlibext" # typically: shrext=.so
16686 if test $use_additional = yes; then
16687 dir="$additional_libdir"
16688 if test -n "$acl_shlibext"; then
16689 if test -f "$dir/$libname$shrext"; then
16691 found_so="$dir/$libname$shrext"
16693 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
16694 ver=`(cd "$dir" && \
16695 for f in "$libname$shrext".*; do echo "$f"; done \
16696 | sed -e "s,^$libname$shrext\\\\.,," \
16697 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
16698 | sed 1q ) 2>/dev/null`
16699 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
16701 found_so="$dir/$libname$shrext.$ver"
16704 eval library_names=\"$acl_library_names_spec\"
16705 for f in $library_names; do
16706 if test -f "$dir/$f"; then
16715 if test "X$found_dir" = "X"; then
16716 if test -f "$dir/$libname.$acl_libext"; then
16718 found_a="$dir/$libname.$acl_libext"
16721 if test "X$found_dir" != "X"; then
16722 if test -f "$dir/$libname.la"; then
16723 found_la="$dir/$libname.la"
16727 if test "X$found_dir" = "X"; then
16728 for x in $LDFLAGS $LTLIBGSSAPI32; do
16730 acl_save_prefix="$prefix"
16731 prefix="$acl_final_prefix"
16732 acl_save_exec_prefix="$exec_prefix"
16733 exec_prefix="$acl_final_exec_prefix"
16735 exec_prefix="$acl_save_exec_prefix"
16736 prefix="$acl_save_prefix"
16740 dir=`echo "X$x" | sed -e 's/^X-L//'`
16741 if test -n "$acl_shlibext"; then
16742 if test -f "$dir/$libname$shrext"; then
16744 found_so="$dir/$libname$shrext"
16746 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
16747 ver=`(cd "$dir" && \
16748 for f in "$libname$shrext".*; do echo "$f"; done \
16749 | sed -e "s,^$libname$shrext\\\\.,," \
16750 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
16751 | sed 1q ) 2>/dev/null`
16752 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
16754 found_so="$dir/$libname$shrext.$ver"
16757 eval library_names=\"$acl_library_names_spec\"
16758 for f in $library_names; do
16759 if test -f "$dir/$f"; then
16768 if test "X$found_dir" = "X"; then
16769 if test -f "$dir/$libname.$acl_libext"; then
16771 found_a="$dir/$libname.$acl_libext"
16774 if test "X$found_dir" != "X"; then
16775 if test -f "$dir/$libname.la"; then
16776 found_la="$dir/$libname.la"
16781 if test "X$found_dir" != "X"; then
16786 if test "X$found_dir" != "X"; then
16787 LTLIBGSSAPI32="${LTLIBGSSAPI32}${LTLIBGSSAPI32:+ }-L$found_dir -l$name"
16788 if test "X$found_so" != "X"; then
16789 if test "$enable_rpath" = no \
16790 || test "X$found_dir" = "X/usr/$acl_libdirstem" \
16791 || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
16792 LIBGSSAPI32="${LIBGSSAPI32}${LIBGSSAPI32:+ }$found_so"
16795 for x in $ltrpathdirs; do
16796 if test "X$x" = "X$found_dir"; then
16801 if test -z "$haveit"; then
16802 ltrpathdirs="$ltrpathdirs $found_dir"
16804 if test "$acl_hardcode_direct" = yes; then
16805 LIBGSSAPI32="${LIBGSSAPI32}${LIBGSSAPI32:+ }$found_so"
16807 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
16808 LIBGSSAPI32="${LIBGSSAPI32}${LIBGSSAPI32:+ }$found_so"
16810 for x in $rpathdirs; do
16811 if test "X$x" = "X$found_dir"; then
16816 if test -z "$haveit"; then
16817 rpathdirs="$rpathdirs $found_dir"
16821 for x in $LDFLAGS $LIBGSSAPI32; do
16823 acl_save_prefix="$prefix"
16824 prefix="$acl_final_prefix"
16825 acl_save_exec_prefix="$exec_prefix"
16826 exec_prefix="$acl_final_exec_prefix"
16828 exec_prefix="$acl_save_exec_prefix"
16829 prefix="$acl_save_prefix"
16831 if test "X$x" = "X-L$found_dir"; then
16836 if test -z "$haveit"; then
16837 LIBGSSAPI32="${LIBGSSAPI32}${LIBGSSAPI32:+ }-L$found_dir"
16839 if test "$acl_hardcode_minus_L" != no; then
16840 LIBGSSAPI32="${LIBGSSAPI32}${LIBGSSAPI32:+ }$found_so"
16842 LIBGSSAPI32="${LIBGSSAPI32}${LIBGSSAPI32:+ }-l$name"
16848 if test "X$found_a" != "X"; then
16849 LIBGSSAPI32="${LIBGSSAPI32}${LIBGSSAPI32:+ }$found_a"
16851 LIBGSSAPI32="${LIBGSSAPI32}${LIBGSSAPI32:+ }-L$found_dir -l$name"
16854 additional_includedir=
16855 case "$found_dir" in
16856 */$acl_libdirstem | */$acl_libdirstem/)
16857 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
16858 if test "$name" = 'gssapi32'; then
16859 LIBGSSAPI32_PREFIX="$basedir"
16861 additional_includedir="$basedir/include"
16863 */$acl_libdirstem2 | */$acl_libdirstem2/)
16864 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
16865 if test "$name" = 'gssapi32'; then
16866 LIBGSSAPI32_PREFIX="$basedir"
16868 additional_includedir="$basedir/include"
16871 if test "X$additional_includedir" != "X"; then
16872 if test "X$additional_includedir" != "X/usr/include"; then
16874 if test "X$additional_includedir" = "X/usr/local/include"; then
16875 if test -n "$GCC"; then
16877 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
16881 if test -z "$haveit"; then
16882 for x in $CPPFLAGS $INCGSSAPI32; do
16884 acl_save_prefix="$prefix"
16885 prefix="$acl_final_prefix"
16886 acl_save_exec_prefix="$exec_prefix"
16887 exec_prefix="$acl_final_exec_prefix"
16889 exec_prefix="$acl_save_exec_prefix"
16890 prefix="$acl_save_prefix"
16892 if test "X$x" = "X-I$additional_includedir"; then
16897 if test -z "$haveit"; then
16898 if test -d "$additional_includedir"; then
16899 INCGSSAPI32="${INCGSSAPI32}${INCGSSAPI32:+ }-I$additional_includedir"
16905 if test -n "$found_la"; then
16906 save_libdir="$libdir"
16907 case "$found_la" in
16908 */* | *\\*) . "$found_la" ;;
16909 *) . "./$found_la" ;;
16911 libdir="$save_libdir"
16912 for dep in $dependency_libs; do
16915 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
16916 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
16917 && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
16919 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
16920 || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
16921 if test -n "$GCC"; then
16923 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
16927 if test -z "$haveit"; then
16929 for x in $LDFLAGS $LIBGSSAPI32; do
16931 acl_save_prefix="$prefix"
16932 prefix="$acl_final_prefix"
16933 acl_save_exec_prefix="$exec_prefix"
16934 exec_prefix="$acl_final_exec_prefix"
16936 exec_prefix="$acl_save_exec_prefix"
16937 prefix="$acl_save_prefix"
16939 if test "X$x" = "X-L$additional_libdir"; then
16944 if test -z "$haveit"; then
16945 if test -d "$additional_libdir"; then
16946 LIBGSSAPI32="${LIBGSSAPI32}${LIBGSSAPI32:+ }-L$additional_libdir"
16950 for x in $LDFLAGS $LTLIBGSSAPI32; do
16952 acl_save_prefix="$prefix"
16953 prefix="$acl_final_prefix"
16954 acl_save_exec_prefix="$exec_prefix"
16955 exec_prefix="$acl_final_exec_prefix"
16957 exec_prefix="$acl_save_exec_prefix"
16958 prefix="$acl_save_prefix"
16960 if test "X$x" = "X-L$additional_libdir"; then
16965 if test -z "$haveit"; then
16966 if test -d "$additional_libdir"; then
16967 LTLIBGSSAPI32="${LTLIBGSSAPI32}${LTLIBGSSAPI32:+ }-L$additional_libdir"
16974 dir=`echo "X$dep" | sed -e 's/^X-R//'`
16975 if test "$enable_rpath" != no; then
16977 for x in $rpathdirs; do
16978 if test "X$x" = "X$dir"; then
16983 if test -z "$haveit"; then
16984 rpathdirs="$rpathdirs $dir"
16987 for x in $ltrpathdirs; do
16988 if test "X$x" = "X$dir"; then
16993 if test -z "$haveit"; then
16994 ltrpathdirs="$ltrpathdirs $dir"
16999 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
17002 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
17005 LIBGSSAPI32="${LIBGSSAPI32}${LIBGSSAPI32:+ }$dep"
17006 LTLIBGSSAPI32="${LTLIBGSSAPI32}${LTLIBGSSAPI32:+ }$dep"
17012 LIBGSSAPI32="${LIBGSSAPI32}${LIBGSSAPI32:+ }-l$name"
17013 LTLIBGSSAPI32="${LTLIBGSSAPI32}${LTLIBGSSAPI32:+ }-l$name"
17019 if test "X$rpathdirs" != "X"; then
17020 if test -n "$acl_hardcode_libdir_separator"; then
17022 for found_dir in $rpathdirs; do
17023 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
17025 acl_save_libdir="$libdir"
17027 eval flag=\"$acl_hardcode_libdir_flag_spec\"
17028 libdir="$acl_save_libdir"
17029 LIBGSSAPI32="${LIBGSSAPI32}${LIBGSSAPI32:+ }$flag"
17031 for found_dir in $rpathdirs; do
17032 acl_save_libdir="$libdir"
17033 libdir="$found_dir"
17034 eval flag=\"$acl_hardcode_libdir_flag_spec\"
17035 libdir="$acl_save_libdir"
17036 LIBGSSAPI32="${LIBGSSAPI32}${LIBGSSAPI32:+ }$flag"
17040 if test "X$ltrpathdirs" != "X"; then
17041 for found_dir in $ltrpathdirs; do
17042 LTLIBGSSAPI32="${LTLIBGSSAPI32}${LTLIBGSSAPI32:+ }-R$found_dir"
17052 ac_save_CPPFLAGS="$CPPFLAGS"
17054 for element in $INCGSSAPI32; do
17056 for x in $CPPFLAGS; do
17058 acl_save_prefix="$prefix"
17059 prefix="$acl_final_prefix"
17060 acl_save_exec_prefix="$exec_prefix"
17061 exec_prefix="$acl_final_exec_prefix"
17063 exec_prefix="$acl_save_exec_prefix"
17064 prefix="$acl_save_prefix"
17066 if test "X$x" = "X$element"; then
17071 if test -z "$haveit"; then
17072 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
17077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libgssapi32" >&5
17078 $as_echo_n "checking for libgssapi32... " >&6; }
17079 if ${ac_cv_libgssapi32+:} false; then :
17080 $as_echo_n "(cached) " >&6
17083 ac_save_LIBS="$LIBS"
17084 case " $LIBGSSAPI32" in
17085 *" -l"*) LIBS="$LIBS $LIBGSSAPI32" ;;
17086 *) LIBS="$LIBGSSAPI32 $LIBS" ;;
17088 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17089 /* end confdefs.h. */
17090 #include <gssapi/gssapi.h>
17094 gss_release_oid (NULL, NULL)
17099 if ac_fn_c_try_link "$LINENO"; then :
17100 ac_cv_libgssapi32=yes
17102 ac_cv_libgssapi32='no'
17104 rm -f core conftest.err conftest.$ac_objext \
17105 conftest$ac_exeext conftest.$ac_ext
17106 LIBS="$ac_save_LIBS"
17109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libgssapi32" >&5
17110 $as_echo "$ac_cv_libgssapi32" >&6; }
17111 if test "$ac_cv_libgssapi32" = yes; then
17112 HAVE_LIBGSSAPI32=yes
17114 $as_echo "#define HAVE_LIBGSSAPI32 1" >>confdefs.h
17116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libgssapi32" >&5
17117 $as_echo_n "checking how to link with libgssapi32... " >&6; }
17118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBGSSAPI32" >&5
17119 $as_echo "$LIBGSSAPI32" >&6; }
17121 HAVE_LIBGSSAPI32=no
17122 CPPFLAGS="$ac_save_CPPFLAGS"
17125 LIBGSSAPI32_PREFIX=
17134 if test "$ac_cv_libgssapi32" != yes; then
17136 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MIT Kerberos for Windows not found, disabling GSSAPI." >&5
17137 $as_echo "$as_me: WARNING: MIT Kerberos for Windows not found, disabling GSSAPI." >&2;}
17139 elif test "$gssapi_impl" = "mit"; then
17140 { $as_echo "$as_me:${as_lineno-$LINENO}: trying MIT" >&5
17141 $as_echo "$as_me: trying MIT" >&6;}
17142 # Extract the first word of "krb5-config", so it can be a program name with args.
17143 set dummy krb5-config; ac_word=$2
17144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17145 $as_echo_n "checking for $ac_word... " >&6; }
17146 if ${ac_cv_path_KRB5_CONFIG+:} false; then :
17147 $as_echo_n "(cached) " >&6
17149 case $KRB5_CONFIG in
17151 ac_cv_path_KRB5_CONFIG="$KRB5_CONFIG" # Let the user override the test with a path.
17154 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17155 for as_dir in $PATH
17158 test -z "$as_dir" && as_dir=.
17159 for ac_exec_ext in '' $ac_executable_extensions; do
17160 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17161 ac_cv_path_KRB5_CONFIG="$as_dir/$ac_word$ac_exec_ext"
17162 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17169 test -z "$ac_cv_path_KRB5_CONFIG" && ac_cv_path_KRB5_CONFIG="no"
17173 KRB5_CONFIG=$ac_cv_path_KRB5_CONFIG
17174 if test -n "$KRB5_CONFIG"; then
17175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $KRB5_CONFIG" >&5
17176 $as_echo "$KRB5_CONFIG" >&6; }
17178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17179 $as_echo "no" >&6; }
17183 if test "$KRB5_CONFIG" != "no" ; then
17184 GSS_CFLAGS="`$KRB5_CONFIG --cflags`"
17185 GSS_LIBS="`$KRB5_CONFIG --libs gssapi`"
17187 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MIT Kerberos krb5-config not found, disabling GSSAPI" >&5
17188 $as_echo "$as_me: WARNING: MIT Kerberos krb5-config not found, disabling GSSAPI" >&2;}
17191 elif test "$gssapi_impl" = "heimdal"; then
17192 { $as_echo "$as_me:${as_lineno-$LINENO}: trying Heimdal" >&5
17193 $as_echo "$as_me: trying Heimdal" >&6;}
17194 # Extract the first word of "krb5-config", so it can be a program name with args.
17195 set dummy krb5-config; ac_word=$2
17196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17197 $as_echo_n "checking for $ac_word... " >&6; }
17198 if ${ac_cv_path_KRB5_CONFIG+:} false; then :
17199 $as_echo_n "(cached) " >&6
17201 case $KRB5_CONFIG in
17203 ac_cv_path_KRB5_CONFIG="$KRB5_CONFIG" # Let the user override the test with a path.
17206 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17207 for as_dir in $PATH
17210 test -z "$as_dir" && as_dir=.
17211 for ac_exec_ext in '' $ac_executable_extensions; do
17212 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17213 ac_cv_path_KRB5_CONFIG="$as_dir/$ac_word$ac_exec_ext"
17214 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17221 test -z "$ac_cv_path_KRB5_CONFIG" && ac_cv_path_KRB5_CONFIG="no"
17225 KRB5_CONFIG=$ac_cv_path_KRB5_CONFIG
17226 if test -n "$KRB5_CONFIG"; then
17227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $KRB5_CONFIG" >&5
17228 $as_echo "$KRB5_CONFIG" >&6; }
17230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17231 $as_echo "no" >&6; }
17235 if test "$KRB5_CONFIG" != "no" ; then
17236 GSS_CFLAGS="`$KRB5_CONFIG --cflags`"
17237 GSS_LIBS="`$KRB5_CONFIG --libs gssapi`"
17239 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Heimdal krb5-config not found, disabling GSSAPI" >&5
17240 $as_echo "$as_me: WARNING: Heimdal krb5-config not found, disabling GSSAPI" >&2;}
17243 elif test "$gssapi_impl" != "no"; then
17244 { $as_echo "$as_me:${as_lineno-$LINENO}: auto-detecting GSS/MIT/Heimdal" >&5
17245 $as_echo "$as_me: auto-detecting GSS/MIT/Heimdal" >&6;}
17246 { $as_echo "$as_me:${as_lineno-$LINENO}: use --with-gssapi-impl=IMPL to hard code" >&5
17247 $as_echo "$as_me: use --with-gssapi-impl=IMPL to hard code" >&6;}
17248 { $as_echo "$as_me:${as_lineno-$LINENO}: where IMPL is \`gss', \`mit', or \`heimdal'" >&5
17249 $as_echo "$as_me: where IMPL is \`gss', \`mit', or \`heimdal'" >&6;}
17265 acl_save_prefix="$prefix"
17266 prefix="$acl_final_prefix"
17267 acl_save_exec_prefix="$exec_prefix"
17268 exec_prefix="$acl_final_exec_prefix"
17270 eval additional_includedir=\"$includedir\"
17271 eval additional_libdir=\"$libdir\"
17273 exec_prefix="$acl_save_exec_prefix"
17274 prefix="$acl_save_prefix"
17277 # Check whether --with-libgss-prefix was given.
17278 if test "${with_libgss_prefix+set}" = set; then :
17279 withval=$with_libgss_prefix;
17280 if test "X$withval" = "Xno"; then
17283 if test "X$withval" = "X"; then
17285 acl_save_prefix="$prefix"
17286 prefix="$acl_final_prefix"
17287 acl_save_exec_prefix="$exec_prefix"
17288 exec_prefix="$acl_final_exec_prefix"
17290 eval additional_includedir=\"$includedir\"
17291 eval additional_libdir=\"$libdir\"
17293 exec_prefix="$acl_save_exec_prefix"
17294 prefix="$acl_save_prefix"
17297 additional_includedir="$withval/include"
17298 additional_libdir="$withval/$acl_libdirstem"
17299 if test "$acl_libdirstem2" != "$acl_libdirstem" \
17300 && ! test -d "$withval/$acl_libdirstem"; then
17301 additional_libdir="$withval/$acl_libdirstem2"
17315 names_already_handled=
17316 names_next_round='gss '
17317 while test -n "$names_next_round"; do
17318 names_this_round="$names_next_round"
17320 for name in $names_this_round; do
17322 for n in $names_already_handled; do
17323 if test "$n" = "$name"; then
17324 already_handled=yes
17328 if test -z "$already_handled"; then
17329 names_already_handled="$names_already_handled $name"
17330 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
17331 eval value=\"\$HAVE_LIB$uppername\"
17332 if test -n "$value"; then
17333 if test "$value" = yes; then
17334 eval value=\"\$LIB$uppername\"
17335 test -z "$value" || LIBGSS="${LIBGSS}${LIBGSS:+ }$value"
17336 eval value=\"\$LTLIB$uppername\"
17337 test -z "$value" || LTLIBGSS="${LTLIBGSS}${LTLIBGSS:+ }$value"
17346 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
17347 if test -n "$acl_shlibext"; then
17348 shrext=".$acl_shlibext" # typically: shrext=.so
17352 if test $use_additional = yes; then
17353 dir="$additional_libdir"
17354 if test -n "$acl_shlibext"; then
17355 if test -f "$dir/$libname$shrext"; then
17357 found_so="$dir/$libname$shrext"
17359 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
17360 ver=`(cd "$dir" && \
17361 for f in "$libname$shrext".*; do echo "$f"; done \
17362 | sed -e "s,^$libname$shrext\\\\.,," \
17363 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
17364 | sed 1q ) 2>/dev/null`
17365 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
17367 found_so="$dir/$libname$shrext.$ver"
17370 eval library_names=\"$acl_library_names_spec\"
17371 for f in $library_names; do
17372 if test -f "$dir/$f"; then
17381 if test "X$found_dir" = "X"; then
17382 if test -f "$dir/$libname.$acl_libext"; then
17384 found_a="$dir/$libname.$acl_libext"
17387 if test "X$found_dir" != "X"; then
17388 if test -f "$dir/$libname.la"; then
17389 found_la="$dir/$libname.la"
17393 if test "X$found_dir" = "X"; then
17394 for x in $LDFLAGS $LTLIBGSS; do
17396 acl_save_prefix="$prefix"
17397 prefix="$acl_final_prefix"
17398 acl_save_exec_prefix="$exec_prefix"
17399 exec_prefix="$acl_final_exec_prefix"
17401 exec_prefix="$acl_save_exec_prefix"
17402 prefix="$acl_save_prefix"
17406 dir=`echo "X$x" | sed -e 's/^X-L//'`
17407 if test -n "$acl_shlibext"; then
17408 if test -f "$dir/$libname$shrext"; then
17410 found_so="$dir/$libname$shrext"
17412 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
17413 ver=`(cd "$dir" && \
17414 for f in "$libname$shrext".*; do echo "$f"; done \
17415 | sed -e "s,^$libname$shrext\\\\.,," \
17416 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
17417 | sed 1q ) 2>/dev/null`
17418 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
17420 found_so="$dir/$libname$shrext.$ver"
17423 eval library_names=\"$acl_library_names_spec\"
17424 for f in $library_names; do
17425 if test -f "$dir/$f"; then
17434 if test "X$found_dir" = "X"; then
17435 if test -f "$dir/$libname.$acl_libext"; then
17437 found_a="$dir/$libname.$acl_libext"
17440 if test "X$found_dir" != "X"; then
17441 if test -f "$dir/$libname.la"; then
17442 found_la="$dir/$libname.la"
17447 if test "X$found_dir" != "X"; then
17452 if test "X$found_dir" != "X"; then
17453 LTLIBGSS="${LTLIBGSS}${LTLIBGSS:+ }-L$found_dir -l$name"
17454 if test "X$found_so" != "X"; then
17455 if test "$enable_rpath" = no \
17456 || test "X$found_dir" = "X/usr/$acl_libdirstem" \
17457 || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
17458 LIBGSS="${LIBGSS}${LIBGSS:+ }$found_so"
17461 for x in $ltrpathdirs; do
17462 if test "X$x" = "X$found_dir"; then
17467 if test -z "$haveit"; then
17468 ltrpathdirs="$ltrpathdirs $found_dir"
17470 if test "$acl_hardcode_direct" = yes; then
17471 LIBGSS="${LIBGSS}${LIBGSS:+ }$found_so"
17473 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
17474 LIBGSS="${LIBGSS}${LIBGSS:+ }$found_so"
17476 for x in $rpathdirs; do
17477 if test "X$x" = "X$found_dir"; then
17482 if test -z "$haveit"; then
17483 rpathdirs="$rpathdirs $found_dir"
17487 for x in $LDFLAGS $LIBGSS; do
17489 acl_save_prefix="$prefix"
17490 prefix="$acl_final_prefix"
17491 acl_save_exec_prefix="$exec_prefix"
17492 exec_prefix="$acl_final_exec_prefix"
17494 exec_prefix="$acl_save_exec_prefix"
17495 prefix="$acl_save_prefix"
17497 if test "X$x" = "X-L$found_dir"; then
17502 if test -z "$haveit"; then
17503 LIBGSS="${LIBGSS}${LIBGSS:+ }-L$found_dir"
17505 if test "$acl_hardcode_minus_L" != no; then
17506 LIBGSS="${LIBGSS}${LIBGSS:+ }$found_so"
17508 LIBGSS="${LIBGSS}${LIBGSS:+ }-l$name"
17514 if test "X$found_a" != "X"; then
17515 LIBGSS="${LIBGSS}${LIBGSS:+ }$found_a"
17517 LIBGSS="${LIBGSS}${LIBGSS:+ }-L$found_dir -l$name"
17520 additional_includedir=
17521 case "$found_dir" in
17522 */$acl_libdirstem | */$acl_libdirstem/)
17523 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
17524 if test "$name" = 'gss'; then
17525 LIBGSS_PREFIX="$basedir"
17527 additional_includedir="$basedir/include"
17529 */$acl_libdirstem2 | */$acl_libdirstem2/)
17530 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
17531 if test "$name" = 'gss'; then
17532 LIBGSS_PREFIX="$basedir"
17534 additional_includedir="$basedir/include"
17537 if test "X$additional_includedir" != "X"; then
17538 if test "X$additional_includedir" != "X/usr/include"; then
17540 if test "X$additional_includedir" = "X/usr/local/include"; then
17541 if test -n "$GCC"; then
17543 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
17547 if test -z "$haveit"; then
17548 for x in $CPPFLAGS $INCGSS; do
17550 acl_save_prefix="$prefix"
17551 prefix="$acl_final_prefix"
17552 acl_save_exec_prefix="$exec_prefix"
17553 exec_prefix="$acl_final_exec_prefix"
17555 exec_prefix="$acl_save_exec_prefix"
17556 prefix="$acl_save_prefix"
17558 if test "X$x" = "X-I$additional_includedir"; then
17563 if test -z "$haveit"; then
17564 if test -d "$additional_includedir"; then
17565 INCGSS="${INCGSS}${INCGSS:+ }-I$additional_includedir"
17571 if test -n "$found_la"; then
17572 save_libdir="$libdir"
17573 case "$found_la" in
17574 */* | *\\*) . "$found_la" ;;
17575 *) . "./$found_la" ;;
17577 libdir="$save_libdir"
17578 for dep in $dependency_libs; do
17581 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
17582 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
17583 && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
17585 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
17586 || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
17587 if test -n "$GCC"; then
17589 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
17593 if test -z "$haveit"; then
17595 for x in $LDFLAGS $LIBGSS; do
17597 acl_save_prefix="$prefix"
17598 prefix="$acl_final_prefix"
17599 acl_save_exec_prefix="$exec_prefix"
17600 exec_prefix="$acl_final_exec_prefix"
17602 exec_prefix="$acl_save_exec_prefix"
17603 prefix="$acl_save_prefix"
17605 if test "X$x" = "X-L$additional_libdir"; then
17610 if test -z "$haveit"; then
17611 if test -d "$additional_libdir"; then
17612 LIBGSS="${LIBGSS}${LIBGSS:+ }-L$additional_libdir"
17616 for x in $LDFLAGS $LTLIBGSS; do
17618 acl_save_prefix="$prefix"
17619 prefix="$acl_final_prefix"
17620 acl_save_exec_prefix="$exec_prefix"
17621 exec_prefix="$acl_final_exec_prefix"
17623 exec_prefix="$acl_save_exec_prefix"
17624 prefix="$acl_save_prefix"
17626 if test "X$x" = "X-L$additional_libdir"; then
17631 if test -z "$haveit"; then
17632 if test -d "$additional_libdir"; then
17633 LTLIBGSS="${LTLIBGSS}${LTLIBGSS:+ }-L$additional_libdir"
17640 dir=`echo "X$dep" | sed -e 's/^X-R//'`
17641 if test "$enable_rpath" != no; then
17643 for x in $rpathdirs; do
17644 if test "X$x" = "X$dir"; then
17649 if test -z "$haveit"; then
17650 rpathdirs="$rpathdirs $dir"
17653 for x in $ltrpathdirs; do
17654 if test "X$x" = "X$dir"; then
17659 if test -z "$haveit"; then
17660 ltrpathdirs="$ltrpathdirs $dir"
17665 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
17668 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
17671 LIBGSS="${LIBGSS}${LIBGSS:+ }$dep"
17672 LTLIBGSS="${LTLIBGSS}${LTLIBGSS:+ }$dep"
17678 LIBGSS="${LIBGSS}${LIBGSS:+ }-l$name"
17679 LTLIBGSS="${LTLIBGSS}${LTLIBGSS:+ }-l$name"
17685 if test "X$rpathdirs" != "X"; then
17686 if test -n "$acl_hardcode_libdir_separator"; then
17688 for found_dir in $rpathdirs; do
17689 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
17691 acl_save_libdir="$libdir"
17693 eval flag=\"$acl_hardcode_libdir_flag_spec\"
17694 libdir="$acl_save_libdir"
17695 LIBGSS="${LIBGSS}${LIBGSS:+ }$flag"
17697 for found_dir in $rpathdirs; do
17698 acl_save_libdir="$libdir"
17699 libdir="$found_dir"
17700 eval flag=\"$acl_hardcode_libdir_flag_spec\"
17701 libdir="$acl_save_libdir"
17702 LIBGSS="${LIBGSS}${LIBGSS:+ }$flag"
17706 if test "X$ltrpathdirs" != "X"; then
17707 for found_dir in $ltrpathdirs; do
17708 LTLIBGSS="${LTLIBGSS}${LTLIBGSS:+ }-R$found_dir"
17718 ac_save_CPPFLAGS="$CPPFLAGS"
17720 for element in $INCGSS; do
17722 for x in $CPPFLAGS; do
17724 acl_save_prefix="$prefix"
17725 prefix="$acl_final_prefix"
17726 acl_save_exec_prefix="$exec_prefix"
17727 exec_prefix="$acl_final_exec_prefix"
17729 exec_prefix="$acl_save_exec_prefix"
17730 prefix="$acl_save_prefix"
17732 if test "X$x" = "X$element"; then
17737 if test -z "$haveit"; then
17738 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
17743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libgss" >&5
17744 $as_echo_n "checking for libgss... " >&6; }
17745 if ${ac_cv_libgss+:} false; then :
17746 $as_echo_n "(cached) " >&6
17749 ac_save_LIBS="$LIBS"
17751 *" -l"*) LIBS="$LIBS $LIBGSS" ;;
17752 *) LIBS="$LIBGSS $LIBS" ;;
17754 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17755 /* end confdefs.h. */
17761 #if GSS_VERSION_NUMBER < 0x010000
17764 gss_check_version (0);
17771 if ac_fn_c_try_link "$LINENO"; then :
17776 rm -f core conftest.err conftest.$ac_objext \
17777 conftest$ac_exeext conftest.$ac_ext
17778 LIBS="$ac_save_LIBS"
17781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libgss" >&5
17782 $as_echo "$ac_cv_libgss" >&6; }
17783 if test "$ac_cv_libgss" = yes; then
17786 $as_echo "#define HAVE_LIBGSS 1" >>confdefs.h
17788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libgss" >&5
17789 $as_echo_n "checking how to link with libgss... " >&6; }
17790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBGSS" >&5
17791 $as_echo "$LIBGSS" >&6; }
17794 CPPFLAGS="$ac_save_CPPFLAGS"
17806 if test "$ac_cv_libgss" = yes; then
17808 { $as_echo "$as_me:${as_lineno-$LINENO}: GNU GSS found" >&5
17809 $as_echo "$as_me: GNU GSS found" >&6;}
17810 elif test "$cross_compiling" != "no"; then
17811 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cross-compiling, won't rely on MIT/Heimdal krb5-config" >&5
17812 $as_echo "$as_me: WARNING: Cross-compiling, won't rely on MIT/Heimdal krb5-config" >&2;}
17813 { $as_echo "$as_me:${as_lineno-$LINENO}: Use --with-gssapi-impl=mit or --with-gssapi-impl=heimdal." >&5
17814 $as_echo "$as_me: Use --with-gssapi-impl=mit or --with-gssapi-impl=heimdal." >&6;}
17817 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: GNU GSS not found (see http://www.gnu.org/software/gss/)..." >&5
17818 $as_echo "$as_me: WARNING: GNU GSS not found (see http://www.gnu.org/software/gss/)..." >&2;}
17819 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Auto-detecting MIT/Heimdal is unreliable, disabling GSSAPI" >&5
17820 $as_echo "$as_me: WARNING: Auto-detecting MIT/Heimdal is unreliable, disabling GSSAPI" >&2;}
17829 # Check whether --enable-kerberos_v5 was given.
17830 if test "${enable_kerberos_v5+set}" = set; then :
17831 enableval=$enable_kerberos_v5; kerberos_v5=$enableval
17836 if test "$kerberos_v5" != "no" ; then
17852 acl_save_prefix="$prefix"
17853 prefix="$acl_final_prefix"
17854 acl_save_exec_prefix="$exec_prefix"
17855 exec_prefix="$acl_final_exec_prefix"
17857 eval additional_includedir=\"$includedir\"
17858 eval additional_libdir=\"$libdir\"
17860 exec_prefix="$acl_save_exec_prefix"
17861 prefix="$acl_save_prefix"
17864 # Check whether --with-libshishi-prefix was given.
17865 if test "${with_libshishi_prefix+set}" = set; then :
17866 withval=$with_libshishi_prefix;
17867 if test "X$withval" = "Xno"; then
17870 if test "X$withval" = "X"; then
17872 acl_save_prefix="$prefix"
17873 prefix="$acl_final_prefix"
17874 acl_save_exec_prefix="$exec_prefix"
17875 exec_prefix="$acl_final_exec_prefix"
17877 eval additional_includedir=\"$includedir\"
17878 eval additional_libdir=\"$libdir\"
17880 exec_prefix="$acl_save_exec_prefix"
17881 prefix="$acl_save_prefix"
17884 additional_includedir="$withval/include"
17885 additional_libdir="$withval/$acl_libdirstem"
17886 if test "$acl_libdirstem2" != "$acl_libdirstem" \
17887 && ! test -d "$withval/$acl_libdirstem"; then
17888 additional_libdir="$withval/$acl_libdirstem2"
17902 names_already_handled=
17903 names_next_round='shishi '
17904 while test -n "$names_next_round"; do
17905 names_this_round="$names_next_round"
17907 for name in $names_this_round; do
17909 for n in $names_already_handled; do
17910 if test "$n" = "$name"; then
17911 already_handled=yes
17915 if test -z "$already_handled"; then
17916 names_already_handled="$names_already_handled $name"
17917 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
17918 eval value=\"\$HAVE_LIB$uppername\"
17919 if test -n "$value"; then
17920 if test "$value" = yes; then
17921 eval value=\"\$LIB$uppername\"
17922 test -z "$value" || LIBSHISHI="${LIBSHISHI}${LIBSHISHI:+ }$value"
17923 eval value=\"\$LTLIB$uppername\"
17924 test -z "$value" || LTLIBSHISHI="${LTLIBSHISHI}${LTLIBSHISHI:+ }$value"
17933 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
17934 if test -n "$acl_shlibext"; then
17935 shrext=".$acl_shlibext" # typically: shrext=.so
17939 if test $use_additional = yes; then
17940 dir="$additional_libdir"
17941 if test -n "$acl_shlibext"; then
17942 if test -f "$dir/$libname$shrext"; then
17944 found_so="$dir/$libname$shrext"
17946 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
17947 ver=`(cd "$dir" && \
17948 for f in "$libname$shrext".*; do echo "$f"; done \
17949 | sed -e "s,^$libname$shrext\\\\.,," \
17950 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
17951 | sed 1q ) 2>/dev/null`
17952 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
17954 found_so="$dir/$libname$shrext.$ver"
17957 eval library_names=\"$acl_library_names_spec\"
17958 for f in $library_names; do
17959 if test -f "$dir/$f"; then
17968 if test "X$found_dir" = "X"; then
17969 if test -f "$dir/$libname.$acl_libext"; then
17971 found_a="$dir/$libname.$acl_libext"
17974 if test "X$found_dir" != "X"; then
17975 if test -f "$dir/$libname.la"; then
17976 found_la="$dir/$libname.la"
17980 if test "X$found_dir" = "X"; then
17981 for x in $LDFLAGS $LTLIBSHISHI; do
17983 acl_save_prefix="$prefix"
17984 prefix="$acl_final_prefix"
17985 acl_save_exec_prefix="$exec_prefix"
17986 exec_prefix="$acl_final_exec_prefix"
17988 exec_prefix="$acl_save_exec_prefix"
17989 prefix="$acl_save_prefix"
17993 dir=`echo "X$x" | sed -e 's/^X-L//'`
17994 if test -n "$acl_shlibext"; then
17995 if test -f "$dir/$libname$shrext"; then
17997 found_so="$dir/$libname$shrext"
17999 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
18000 ver=`(cd "$dir" && \
18001 for f in "$libname$shrext".*; do echo "$f"; done \
18002 | sed -e "s,^$libname$shrext\\\\.,," \
18003 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
18004 | sed 1q ) 2>/dev/null`
18005 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
18007 found_so="$dir/$libname$shrext.$ver"
18010 eval library_names=\"$acl_library_names_spec\"
18011 for f in $library_names; do
18012 if test -f "$dir/$f"; then
18021 if test "X$found_dir" = "X"; then
18022 if test -f "$dir/$libname.$acl_libext"; then
18024 found_a="$dir/$libname.$acl_libext"
18027 if test "X$found_dir" != "X"; then
18028 if test -f "$dir/$libname.la"; then
18029 found_la="$dir/$libname.la"
18034 if test "X$found_dir" != "X"; then
18039 if test "X$found_dir" != "X"; then
18040 LTLIBSHISHI="${LTLIBSHISHI}${LTLIBSHISHI:+ }-L$found_dir -l$name"
18041 if test "X$found_so" != "X"; then
18042 if test "$enable_rpath" = no \
18043 || test "X$found_dir" = "X/usr/$acl_libdirstem" \
18044 || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
18045 LIBSHISHI="${LIBSHISHI}${LIBSHISHI:+ }$found_so"
18048 for x in $ltrpathdirs; do
18049 if test "X$x" = "X$found_dir"; then
18054 if test -z "$haveit"; then
18055 ltrpathdirs="$ltrpathdirs $found_dir"
18057 if test "$acl_hardcode_direct" = yes; then
18058 LIBSHISHI="${LIBSHISHI}${LIBSHISHI:+ }$found_so"
18060 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
18061 LIBSHISHI="${LIBSHISHI}${LIBSHISHI:+ }$found_so"
18063 for x in $rpathdirs; do
18064 if test "X$x" = "X$found_dir"; then
18069 if test -z "$haveit"; then
18070 rpathdirs="$rpathdirs $found_dir"
18074 for x in $LDFLAGS $LIBSHISHI; do
18076 acl_save_prefix="$prefix"
18077 prefix="$acl_final_prefix"
18078 acl_save_exec_prefix="$exec_prefix"
18079 exec_prefix="$acl_final_exec_prefix"
18081 exec_prefix="$acl_save_exec_prefix"
18082 prefix="$acl_save_prefix"
18084 if test "X$x" = "X-L$found_dir"; then
18089 if test -z "$haveit"; then
18090 LIBSHISHI="${LIBSHISHI}${LIBSHISHI:+ }-L$found_dir"
18092 if test "$acl_hardcode_minus_L" != no; then
18093 LIBSHISHI="${LIBSHISHI}${LIBSHISHI:+ }$found_so"
18095 LIBSHISHI="${LIBSHISHI}${LIBSHISHI:+ }-l$name"
18101 if test "X$found_a" != "X"; then
18102 LIBSHISHI="${LIBSHISHI}${LIBSHISHI:+ }$found_a"
18104 LIBSHISHI="${LIBSHISHI}${LIBSHISHI:+ }-L$found_dir -l$name"
18107 additional_includedir=
18108 case "$found_dir" in
18109 */$acl_libdirstem | */$acl_libdirstem/)
18110 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
18111 if test "$name" = 'shishi'; then
18112 LIBSHISHI_PREFIX="$basedir"
18114 additional_includedir="$basedir/include"
18116 */$acl_libdirstem2 | */$acl_libdirstem2/)
18117 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
18118 if test "$name" = 'shishi'; then
18119 LIBSHISHI_PREFIX="$basedir"
18121 additional_includedir="$basedir/include"
18124 if test "X$additional_includedir" != "X"; then
18125 if test "X$additional_includedir" != "X/usr/include"; then
18127 if test "X$additional_includedir" = "X/usr/local/include"; then
18128 if test -n "$GCC"; then
18130 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
18134 if test -z "$haveit"; then
18135 for x in $CPPFLAGS $INCSHISHI; do
18137 acl_save_prefix="$prefix"
18138 prefix="$acl_final_prefix"
18139 acl_save_exec_prefix="$exec_prefix"
18140 exec_prefix="$acl_final_exec_prefix"
18142 exec_prefix="$acl_save_exec_prefix"
18143 prefix="$acl_save_prefix"
18145 if test "X$x" = "X-I$additional_includedir"; then
18150 if test -z "$haveit"; then
18151 if test -d "$additional_includedir"; then
18152 INCSHISHI="${INCSHISHI}${INCSHISHI:+ }-I$additional_includedir"
18158 if test -n "$found_la"; then
18159 save_libdir="$libdir"
18160 case "$found_la" in
18161 */* | *\\*) . "$found_la" ;;
18162 *) . "./$found_la" ;;
18164 libdir="$save_libdir"
18165 for dep in $dependency_libs; do
18168 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
18169 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
18170 && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
18172 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
18173 || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
18174 if test -n "$GCC"; then
18176 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
18180 if test -z "$haveit"; then
18182 for x in $LDFLAGS $LIBSHISHI; do
18184 acl_save_prefix="$prefix"
18185 prefix="$acl_final_prefix"
18186 acl_save_exec_prefix="$exec_prefix"
18187 exec_prefix="$acl_final_exec_prefix"
18189 exec_prefix="$acl_save_exec_prefix"
18190 prefix="$acl_save_prefix"
18192 if test "X$x" = "X-L$additional_libdir"; then
18197 if test -z "$haveit"; then
18198 if test -d "$additional_libdir"; then
18199 LIBSHISHI="${LIBSHISHI}${LIBSHISHI:+ }-L$additional_libdir"
18203 for x in $LDFLAGS $LTLIBSHISHI; do
18205 acl_save_prefix="$prefix"
18206 prefix="$acl_final_prefix"
18207 acl_save_exec_prefix="$exec_prefix"
18208 exec_prefix="$acl_final_exec_prefix"
18210 exec_prefix="$acl_save_exec_prefix"
18211 prefix="$acl_save_prefix"
18213 if test "X$x" = "X-L$additional_libdir"; then
18218 if test -z "$haveit"; then
18219 if test -d "$additional_libdir"; then
18220 LTLIBSHISHI="${LTLIBSHISHI}${LTLIBSHISHI:+ }-L$additional_libdir"
18227 dir=`echo "X$dep" | sed -e 's/^X-R//'`
18228 if test "$enable_rpath" != no; then
18230 for x in $rpathdirs; do
18231 if test "X$x" = "X$dir"; then
18236 if test -z "$haveit"; then
18237 rpathdirs="$rpathdirs $dir"
18240 for x in $ltrpathdirs; do
18241 if test "X$x" = "X$dir"; then
18246 if test -z "$haveit"; then
18247 ltrpathdirs="$ltrpathdirs $dir"
18252 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
18255 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
18258 LIBSHISHI="${LIBSHISHI}${LIBSHISHI:+ }$dep"
18259 LTLIBSHISHI="${LTLIBSHISHI}${LTLIBSHISHI:+ }$dep"
18265 LIBSHISHI="${LIBSHISHI}${LIBSHISHI:+ }-l$name"
18266 LTLIBSHISHI="${LTLIBSHISHI}${LTLIBSHISHI:+ }-l$name"
18272 if test "X$rpathdirs" != "X"; then
18273 if test -n "$acl_hardcode_libdir_separator"; then
18275 for found_dir in $rpathdirs; do
18276 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
18278 acl_save_libdir="$libdir"
18280 eval flag=\"$acl_hardcode_libdir_flag_spec\"
18281 libdir="$acl_save_libdir"
18282 LIBSHISHI="${LIBSHISHI}${LIBSHISHI:+ }$flag"
18284 for found_dir in $rpathdirs; do
18285 acl_save_libdir="$libdir"
18286 libdir="$found_dir"
18287 eval flag=\"$acl_hardcode_libdir_flag_spec\"
18288 libdir="$acl_save_libdir"
18289 LIBSHISHI="${LIBSHISHI}${LIBSHISHI:+ }$flag"
18293 if test "X$ltrpathdirs" != "X"; then
18294 for found_dir in $ltrpathdirs; do
18295 LTLIBSHISHI="${LTLIBSHISHI}${LTLIBSHISHI:+ }-R$found_dir"
18305 ac_save_CPPFLAGS="$CPPFLAGS"
18307 for element in $INCSHISHI; do
18309 for x in $CPPFLAGS; do
18311 acl_save_prefix="$prefix"
18312 prefix="$acl_final_prefix"
18313 acl_save_exec_prefix="$exec_prefix"
18314 exec_prefix="$acl_final_exec_prefix"
18316 exec_prefix="$acl_save_exec_prefix"
18317 prefix="$acl_save_prefix"
18319 if test "X$x" = "X$element"; then
18324 if test -z "$haveit"; then
18325 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
18330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libshishi" >&5
18331 $as_echo_n "checking for libshishi... " >&6; }
18332 if ${ac_cv_libshishi+:} false; then :
18333 $as_echo_n "(cached) " >&6
18336 ac_save_LIBS="$LIBS"
18337 case " $LIBSHISHI" in
18338 *" -l"*) LIBS="$LIBS $LIBSHISHI" ;;
18339 *) LIBS="$LIBSHISHI $LIBS" ;;
18341 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18342 /* end confdefs.h. */
18343 #include <shishi.h>
18352 if ac_fn_c_try_link "$LINENO"; then :
18353 ac_cv_libshishi=yes
18355 ac_cv_libshishi='no'
18357 rm -f core conftest.err conftest.$ac_objext \
18358 conftest$ac_exeext conftest.$ac_ext
18359 LIBS="$ac_save_LIBS"
18362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libshishi" >&5
18363 $as_echo "$ac_cv_libshishi" >&6; }
18364 if test "$ac_cv_libshishi" = yes; then
18367 $as_echo "#define HAVE_LIBSHISHI 1" >>confdefs.h
18369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libshishi" >&5
18370 $as_echo_n "checking how to link with libshishi... " >&6; }
18371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBSHISHI" >&5
18372 $as_echo "$LIBSHISHI" >&6; }
18375 CPPFLAGS="$ac_save_CPPFLAGS"
18387 if test "$ac_cv_libshishi" != yes; then
18389 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: GNU Shishi not found, disabling KERBEROS_V5" >&5
18390 $as_echo "$as_me: WARNING: GNU Shishi not found, disabling KERBEROS_V5" >&2;}
18394 $as_echo "#define USE_KERBEROS_V5 1" >>confdefs.h
18398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if KERBEROS_V5 should be used" >&5
18399 $as_echo_n "checking if KERBEROS_V5 should be used... " >&6; }
18400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $kerberos_v5" >&5
18401 $as_echo "$kerberos_v5" >&6; }
18402 if test x$kerberos_v5 = xyes; then
18404 KERBEROS_V5_FALSE='#'
18406 KERBEROS_V5_TRUE='#'
18413 # Check whether --with-stringprep was given.
18414 if test "${with_stringprep+set}" = set; then :
18415 withval=$with_stringprep; stringprep=$withval
18420 if test "$stringprep" != "no"; then
18436 acl_save_prefix="$prefix"
18437 prefix="$acl_final_prefix"
18438 acl_save_exec_prefix="$exec_prefix"
18439 exec_prefix="$acl_final_exec_prefix"
18441 eval additional_includedir=\"$includedir\"
18442 eval additional_libdir=\"$libdir\"
18444 exec_prefix="$acl_save_exec_prefix"
18445 prefix="$acl_save_prefix"
18448 # Check whether --with-libidn-prefix was given.
18449 if test "${with_libidn_prefix+set}" = set; then :
18450 withval=$with_libidn_prefix;
18451 if test "X$withval" = "Xno"; then
18454 if test "X$withval" = "X"; then
18456 acl_save_prefix="$prefix"
18457 prefix="$acl_final_prefix"
18458 acl_save_exec_prefix="$exec_prefix"
18459 exec_prefix="$acl_final_exec_prefix"
18461 eval additional_includedir=\"$includedir\"
18462 eval additional_libdir=\"$libdir\"
18464 exec_prefix="$acl_save_exec_prefix"
18465 prefix="$acl_save_prefix"
18468 additional_includedir="$withval/include"
18469 additional_libdir="$withval/$acl_libdirstem"
18470 if test "$acl_libdirstem2" != "$acl_libdirstem" \
18471 && ! test -d "$withval/$acl_libdirstem"; then
18472 additional_libdir="$withval/$acl_libdirstem2"
18486 names_already_handled=
18487 names_next_round='idn '
18488 while test -n "$names_next_round"; do
18489 names_this_round="$names_next_round"
18491 for name in $names_this_round; do
18493 for n in $names_already_handled; do
18494 if test "$n" = "$name"; then
18495 already_handled=yes
18499 if test -z "$already_handled"; then
18500 names_already_handled="$names_already_handled $name"
18501 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
18502 eval value=\"\$HAVE_LIB$uppername\"
18503 if test -n "$value"; then
18504 if test "$value" = yes; then
18505 eval value=\"\$LIB$uppername\"
18506 test -z "$value" || LIBIDN="${LIBIDN}${LIBIDN:+ }$value"
18507 eval value=\"\$LTLIB$uppername\"
18508 test -z "$value" || LTLIBIDN="${LTLIBIDN}${LTLIBIDN:+ }$value"
18517 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
18518 if test -n "$acl_shlibext"; then
18519 shrext=".$acl_shlibext" # typically: shrext=.so
18523 if test $use_additional = yes; then
18524 dir="$additional_libdir"
18525 if test -n "$acl_shlibext"; then
18526 if test -f "$dir/$libname$shrext"; then
18528 found_so="$dir/$libname$shrext"
18530 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
18531 ver=`(cd "$dir" && \
18532 for f in "$libname$shrext".*; do echo "$f"; done \
18533 | sed -e "s,^$libname$shrext\\\\.,," \
18534 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
18535 | sed 1q ) 2>/dev/null`
18536 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
18538 found_so="$dir/$libname$shrext.$ver"
18541 eval library_names=\"$acl_library_names_spec\"
18542 for f in $library_names; do
18543 if test -f "$dir/$f"; then
18552 if test "X$found_dir" = "X"; then
18553 if test -f "$dir/$libname.$acl_libext"; then
18555 found_a="$dir/$libname.$acl_libext"
18558 if test "X$found_dir" != "X"; then
18559 if test -f "$dir/$libname.la"; then
18560 found_la="$dir/$libname.la"
18564 if test "X$found_dir" = "X"; then
18565 for x in $LDFLAGS $LTLIBIDN; do
18567 acl_save_prefix="$prefix"
18568 prefix="$acl_final_prefix"
18569 acl_save_exec_prefix="$exec_prefix"
18570 exec_prefix="$acl_final_exec_prefix"
18572 exec_prefix="$acl_save_exec_prefix"
18573 prefix="$acl_save_prefix"
18577 dir=`echo "X$x" | sed -e 's/^X-L//'`
18578 if test -n "$acl_shlibext"; then
18579 if test -f "$dir/$libname$shrext"; then
18581 found_so="$dir/$libname$shrext"
18583 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
18584 ver=`(cd "$dir" && \
18585 for f in "$libname$shrext".*; do echo "$f"; done \
18586 | sed -e "s,^$libname$shrext\\\\.,," \
18587 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
18588 | sed 1q ) 2>/dev/null`
18589 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
18591 found_so="$dir/$libname$shrext.$ver"
18594 eval library_names=\"$acl_library_names_spec\"
18595 for f in $library_names; do
18596 if test -f "$dir/$f"; then
18605 if test "X$found_dir" = "X"; then
18606 if test -f "$dir/$libname.$acl_libext"; then
18608 found_a="$dir/$libname.$acl_libext"
18611 if test "X$found_dir" != "X"; then
18612 if test -f "$dir/$libname.la"; then
18613 found_la="$dir/$libname.la"
18618 if test "X$found_dir" != "X"; then
18623 if test "X$found_dir" != "X"; then
18624 LTLIBIDN="${LTLIBIDN}${LTLIBIDN:+ }-L$found_dir -l$name"
18625 if test "X$found_so" != "X"; then
18626 if test "$enable_rpath" = no \
18627 || test "X$found_dir" = "X/usr/$acl_libdirstem" \
18628 || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
18629 LIBIDN="${LIBIDN}${LIBIDN:+ }$found_so"
18632 for x in $ltrpathdirs; do
18633 if test "X$x" = "X$found_dir"; then
18638 if test -z "$haveit"; then
18639 ltrpathdirs="$ltrpathdirs $found_dir"
18641 if test "$acl_hardcode_direct" = yes; then
18642 LIBIDN="${LIBIDN}${LIBIDN:+ }$found_so"
18644 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
18645 LIBIDN="${LIBIDN}${LIBIDN:+ }$found_so"
18647 for x in $rpathdirs; do
18648 if test "X$x" = "X$found_dir"; then
18653 if test -z "$haveit"; then
18654 rpathdirs="$rpathdirs $found_dir"
18658 for x in $LDFLAGS $LIBIDN; do
18660 acl_save_prefix="$prefix"
18661 prefix="$acl_final_prefix"
18662 acl_save_exec_prefix="$exec_prefix"
18663 exec_prefix="$acl_final_exec_prefix"
18665 exec_prefix="$acl_save_exec_prefix"
18666 prefix="$acl_save_prefix"
18668 if test "X$x" = "X-L$found_dir"; then
18673 if test -z "$haveit"; then
18674 LIBIDN="${LIBIDN}${LIBIDN:+ }-L$found_dir"
18676 if test "$acl_hardcode_minus_L" != no; then
18677 LIBIDN="${LIBIDN}${LIBIDN:+ }$found_so"
18679 LIBIDN="${LIBIDN}${LIBIDN:+ }-l$name"
18685 if test "X$found_a" != "X"; then
18686 LIBIDN="${LIBIDN}${LIBIDN:+ }$found_a"
18688 LIBIDN="${LIBIDN}${LIBIDN:+ }-L$found_dir -l$name"
18691 additional_includedir=
18692 case "$found_dir" in
18693 */$acl_libdirstem | */$acl_libdirstem/)
18694 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
18695 if test "$name" = 'idn'; then
18696 LIBIDN_PREFIX="$basedir"
18698 additional_includedir="$basedir/include"
18700 */$acl_libdirstem2 | */$acl_libdirstem2/)
18701 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
18702 if test "$name" = 'idn'; then
18703 LIBIDN_PREFIX="$basedir"
18705 additional_includedir="$basedir/include"
18708 if test "X$additional_includedir" != "X"; then
18709 if test "X$additional_includedir" != "X/usr/include"; then
18711 if test "X$additional_includedir" = "X/usr/local/include"; then
18712 if test -n "$GCC"; then
18714 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
18718 if test -z "$haveit"; then
18719 for x in $CPPFLAGS $INCIDN; do
18721 acl_save_prefix="$prefix"
18722 prefix="$acl_final_prefix"
18723 acl_save_exec_prefix="$exec_prefix"
18724 exec_prefix="$acl_final_exec_prefix"
18726 exec_prefix="$acl_save_exec_prefix"
18727 prefix="$acl_save_prefix"
18729 if test "X$x" = "X-I$additional_includedir"; then
18734 if test -z "$haveit"; then
18735 if test -d "$additional_includedir"; then
18736 INCIDN="${INCIDN}${INCIDN:+ }-I$additional_includedir"
18742 if test -n "$found_la"; then
18743 save_libdir="$libdir"
18744 case "$found_la" in
18745 */* | *\\*) . "$found_la" ;;
18746 *) . "./$found_la" ;;
18748 libdir="$save_libdir"
18749 for dep in $dependency_libs; do
18752 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
18753 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
18754 && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
18756 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
18757 || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
18758 if test -n "$GCC"; then
18760 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
18764 if test -z "$haveit"; then
18766 for x in $LDFLAGS $LIBIDN; do
18768 acl_save_prefix="$prefix"
18769 prefix="$acl_final_prefix"
18770 acl_save_exec_prefix="$exec_prefix"
18771 exec_prefix="$acl_final_exec_prefix"
18773 exec_prefix="$acl_save_exec_prefix"
18774 prefix="$acl_save_prefix"
18776 if test "X$x" = "X-L$additional_libdir"; then
18781 if test -z "$haveit"; then
18782 if test -d "$additional_libdir"; then
18783 LIBIDN="${LIBIDN}${LIBIDN:+ }-L$additional_libdir"
18787 for x in $LDFLAGS $LTLIBIDN; do
18789 acl_save_prefix="$prefix"
18790 prefix="$acl_final_prefix"
18791 acl_save_exec_prefix="$exec_prefix"
18792 exec_prefix="$acl_final_exec_prefix"
18794 exec_prefix="$acl_save_exec_prefix"
18795 prefix="$acl_save_prefix"
18797 if test "X$x" = "X-L$additional_libdir"; then
18802 if test -z "$haveit"; then
18803 if test -d "$additional_libdir"; then
18804 LTLIBIDN="${LTLIBIDN}${LTLIBIDN:+ }-L$additional_libdir"
18811 dir=`echo "X$dep" | sed -e 's/^X-R//'`
18812 if test "$enable_rpath" != no; then
18814 for x in $rpathdirs; do
18815 if test "X$x" = "X$dir"; then
18820 if test -z "$haveit"; then
18821 rpathdirs="$rpathdirs $dir"
18824 for x in $ltrpathdirs; do
18825 if test "X$x" = "X$dir"; then
18830 if test -z "$haveit"; then
18831 ltrpathdirs="$ltrpathdirs $dir"
18836 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
18839 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
18842 LIBIDN="${LIBIDN}${LIBIDN:+ }$dep"
18843 LTLIBIDN="${LTLIBIDN}${LTLIBIDN:+ }$dep"
18849 LIBIDN="${LIBIDN}${LIBIDN:+ }-l$name"
18850 LTLIBIDN="${LTLIBIDN}${LTLIBIDN:+ }-l$name"
18856 if test "X$rpathdirs" != "X"; then
18857 if test -n "$acl_hardcode_libdir_separator"; then
18859 for found_dir in $rpathdirs; do
18860 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
18862 acl_save_libdir="$libdir"
18864 eval flag=\"$acl_hardcode_libdir_flag_spec\"
18865 libdir="$acl_save_libdir"
18866 LIBIDN="${LIBIDN}${LIBIDN:+ }$flag"
18868 for found_dir in $rpathdirs; do
18869 acl_save_libdir="$libdir"
18870 libdir="$found_dir"
18871 eval flag=\"$acl_hardcode_libdir_flag_spec\"
18872 libdir="$acl_save_libdir"
18873 LIBIDN="${LIBIDN}${LIBIDN:+ }$flag"
18877 if test "X$ltrpathdirs" != "X"; then
18878 for found_dir in $ltrpathdirs; do
18879 LTLIBIDN="${LTLIBIDN}${LTLIBIDN:+ }-R$found_dir"
18889 ac_save_CPPFLAGS="$CPPFLAGS"
18891 for element in $INCIDN; do
18893 for x in $CPPFLAGS; do
18895 acl_save_prefix="$prefix"
18896 prefix="$acl_final_prefix"
18897 acl_save_exec_prefix="$exec_prefix"
18898 exec_prefix="$acl_final_exec_prefix"
18900 exec_prefix="$acl_save_exec_prefix"
18901 prefix="$acl_save_prefix"
18903 if test "X$x" = "X$element"; then
18908 if test -z "$haveit"; then
18909 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
18914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libidn" >&5
18915 $as_echo_n "checking for libidn... " >&6; }
18916 if ${ac_cv_libidn+:} false; then :
18917 $as_echo_n "(cached) " >&6
18920 ac_save_LIBS="$LIBS"
18922 *" -l"*) LIBS="$LIBS $LIBIDN" ;;
18923 *) LIBS="$LIBIDN $LIBS" ;;
18925 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18926 /* end confdefs.h. */
18927 #include <stringprep.h>
18931 stringprep_check_version (0);
18936 if ac_fn_c_try_link "$LINENO"; then :
18941 rm -f core conftest.err conftest.$ac_objext \
18942 conftest$ac_exeext conftest.$ac_ext
18943 LIBS="$ac_save_LIBS"
18946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libidn" >&5
18947 $as_echo "$ac_cv_libidn" >&6; }
18948 if test "$ac_cv_libidn" = yes; then
18951 $as_echo "#define HAVE_LIBIDN 1" >>confdefs.h
18953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libidn" >&5
18954 $as_echo_n "checking how to link with libidn... " >&6; }
18955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBIDN" >&5
18956 $as_echo "$LIBIDN" >&6; }
18959 CPPFLAGS="$ac_save_CPPFLAGS"
18971 if test "$ac_cv_libidn" != yes; then
18973 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: GNU Libidn not found. Stringprep disabled." >&5
18974 $as_echo "$as_me: WARNING: GNU Libidn not found. Stringprep disabled." >&2;}
18978 LIBS="$LIBS $LIBIDN"
18979 for ac_func in pr29_8z
18981 ac_fn_c_check_func "$LINENO" "pr29_8z" "ac_cv_func_pr29_8z"
18982 if test "x$ac_cv_func_pr29_8z" = xyes; then :
18983 cat >>confdefs.h <<_ACEOF
18984 #define HAVE_PR29_8Z 1
18990 for ac_header in pr29.h
18992 ac_fn_c_check_header_mongrel "$LINENO" "pr29.h" "ac_cv_header_pr29_h" "$ac_includes_default"
18993 if test "x$ac_cv_header_pr29_h" = xyes; then :
18994 cat >>confdefs.h <<_ACEOF
18995 #define HAVE_PR29_H 1
19005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if non-ASCII support via Libidn should be built" >&5
19006 $as_echo_n "checking if non-ASCII support via Libidn should be built... " >&6; }
19007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $stringprep" >&5
19008 $as_echo "$stringprep" >&6; }
19010 # Allow disabling of client or server.
19011 # Check whether --enable-client was given.
19012 if test "${enable_client+set}" = set; then :
19013 enableval=$enable_client; client=$enableval
19016 # Check whether --enable-server was given.
19017 if test "${enable_server+set}" = set; then :
19018 enableval=$enable_server; server=$enableval
19021 if test "$client" != "no"; then
19023 $as_echo "#define USE_CLIENT 1" >>confdefs.h
19027 if test "$server" != "no"; then
19029 $as_echo "#define USE_SERVER 1" >>confdefs.h
19033 if test "$server" = "no" && test "$client" = "no"; then
19034 as_fn_error $? "Disabling both client and server mode is meaningless" "$LINENO" 5
19036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if client code should be built" >&5
19037 $as_echo_n "checking if client code should be built... " >&6; }
19038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $client" >&5
19039 $as_echo "$client" >&6; }
19040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if server code should be built" >&5
19041 $as_echo_n "checking if server code should be built... " >&6; }
19042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $server" >&5
19043 $as_echo "$server" >&6; }
19044 if test x$client = xyes; then
19052 if test x$server = xyes; then
19061 # Allow disabling of obsolete stuff.
19062 # Check whether --enable-obsolete was given.
19063 if test "${enable_obsolete+set}" = set; then :
19064 enableval=$enable_obsolete; obsolete=$enableval
19067 if test "$obsolete" = "no"; then
19069 $as_echo "#define GSASL_NO_OBSOLETE 1" >>confdefs.h
19074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if backwards compatibility code should be present" >&5
19075 $as_echo_n "checking if backwards compatibility code should be present... " >&6; }
19076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $obsolete" >&5
19077 $as_echo "$obsolete" >&6; }
19078 if test "$obsolete" = "yes"; then
19087 # For gnulib stuff in gl/ which may modify gssapi_impl, see gl/m4/gss-extra.m4.
19093 LIBC_FATAL_STDERR_=1
19094 export LIBC_FATAL_STDERR_
19096 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
19097 if test "x$ac_cv_type_size_t" = xyes; then :
19101 cat >>confdefs.h <<_ACEOF
19102 #define size_t unsigned int
19107 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
19108 # for constant arguments. Useless!
19109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
19110 $as_echo_n "checking for working alloca.h... " >&6; }
19111 if ${ac_cv_working_alloca_h+:} false; then :
19112 $as_echo_n "(cached) " >&6
19114 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19115 /* end confdefs.h. */
19116 #include <alloca.h>
19120 char *p = (char *) alloca (2 * sizeof (int));
19126 if ac_fn_c_try_link "$LINENO"; then :
19127 ac_cv_working_alloca_h=yes
19129 ac_cv_working_alloca_h=no
19131 rm -f core conftest.err conftest.$ac_objext \
19132 conftest$ac_exeext conftest.$ac_ext
19134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
19135 $as_echo "$ac_cv_working_alloca_h" >&6; }
19136 if test $ac_cv_working_alloca_h = yes; then
19138 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
19142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
19143 $as_echo_n "checking for alloca... " >&6; }
19144 if ${ac_cv_func_alloca_works+:} false; then :
19145 $as_echo_n "(cached) " >&6
19147 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19148 /* end confdefs.h. */
19150 # define alloca __builtin_alloca
19153 # include <malloc.h>
19154 # define alloca _alloca
19156 # ifdef HAVE_ALLOCA_H
19157 # include <alloca.h>
19162 # ifndef alloca /* predefined by HP cc +Olibcalls */
19163 void *alloca (size_t);
19173 char *p = (char *) alloca (1);
19179 if ac_fn_c_try_link "$LINENO"; then :
19180 ac_cv_func_alloca_works=yes
19182 ac_cv_func_alloca_works=no
19184 rm -f core conftest.err conftest.$ac_objext \
19185 conftest$ac_exeext conftest.$ac_ext
19187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
19188 $as_echo "$ac_cv_func_alloca_works" >&6; }
19190 if test $ac_cv_func_alloca_works = yes; then
19192 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
19195 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
19196 # that cause trouble. Some versions do not even contain alloca or
19197 # contain a buggy version. If you still want to use their alloca,
19198 # use ar to extract alloca.o from them instead of compiling alloca.c.
19204 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
19206 $as_echo "#define C_ALLOCA 1" >>confdefs.h
19209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether 'alloca.c' needs Cray hooks" >&5
19210 $as_echo_n "checking whether 'alloca.c' needs Cray hooks... " >&6; }
19211 if ${ac_cv_os_cray+:} false; then :
19212 $as_echo_n "(cached) " >&6
19214 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19215 /* end confdefs.h. */
19216 #if defined CRAY && ! defined CRAY2
19223 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19224 $EGREP "webecray" >/dev/null 2>&1; then :
19232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
19233 $as_echo "$ac_cv_os_cray" >&6; }
19234 if test $ac_cv_os_cray = yes; then
19235 for ac_func in _getb67 GETB67 getb67; do
19236 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19237 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
19238 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
19240 cat >>confdefs.h <<_ACEOF
19241 #define CRAY_STACKSEG_END $ac_func
19250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
19251 $as_echo_n "checking stack direction for C alloca... " >&6; }
19252 if ${ac_cv_c_stack_direction+:} false; then :
19253 $as_echo_n "(cached) " >&6
19255 if test "$cross_compiling" = yes; then :
19256 ac_cv_c_stack_direction=0
19258 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19259 /* end confdefs.h. */
19260 $ac_includes_default
19262 find_stack_direction (int *addr, int depth)
19264 int dir, dummy = 0;
19267 *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
19268 dir = depth ? find_stack_direction (addr, depth - 1) : 0;
19269 return dir + dummy;
19273 main (int argc, char **argv)
19275 return find_stack_direction (0, argc + !argv + 20) < 0;
19278 if ac_fn_c_try_run "$LINENO"; then :
19279 ac_cv_c_stack_direction=1
19281 ac_cv_c_stack_direction=-1
19283 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19284 conftest.$ac_objext conftest.beam conftest.$ac_ext
19288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
19289 $as_echo "$ac_cv_c_stack_direction" >&6; }
19290 cat >>confdefs.h <<_ACEOF
19291 #define STACK_DIRECTION $ac_cv_c_stack_direction
19297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
19298 $as_echo_n "checking for inline... " >&6; }
19299 if ${ac_cv_c_inline+:} false; then :
19300 $as_echo_n "(cached) " >&6
19303 for ac_kw in inline __inline__ __inline; do
19304 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19305 /* end confdefs.h. */
19306 #ifndef __cplusplus
19308 static $ac_kw foo_t static_foo () {return 0; }
19309 $ac_kw foo_t foo () {return 0; }
19313 if ac_fn_c_try_compile "$LINENO"; then :
19314 ac_cv_c_inline=$ac_kw
19316 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19317 test "$ac_cv_c_inline" != no && break
19321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
19322 $as_echo "$ac_cv_c_inline" >&6; }
19324 case $ac_cv_c_inline in
19327 case $ac_cv_c_inline in
19329 *) ac_val=$ac_cv_c_inline;;
19331 cat >>confdefs.h <<_ACEOF
19332 #ifndef __cplusplus
19333 #define inline $ac_val
19339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
19340 $as_echo_n "checking for C/C++ restrict keyword... " >&6; }
19341 if ${ac_cv_c_restrict+:} false; then :
19342 $as_echo_n "(cached) " >&6
19344 ac_cv_c_restrict=no
19345 # The order here caters to the fact that C++ does not require restrict.
19346 for ac_kw in __restrict __restrict__ _Restrict restrict; do
19347 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19348 /* end confdefs.h. */
19349 typedef int * int_ptr;
19350 int foo (int_ptr $ac_kw ip) {
19357 int * $ac_kw t = s;
19364 if ac_fn_c_try_compile "$LINENO"; then :
19365 ac_cv_c_restrict=$ac_kw
19367 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19368 test "$ac_cv_c_restrict" != no && break
19372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
19373 $as_echo "$ac_cv_c_restrict" >&6; }
19375 case $ac_cv_c_restrict in
19377 no) $as_echo "#define restrict /**/" >>confdefs.h
19379 *) cat >>confdefs.h <<_ACEOF
19380 #define restrict $ac_cv_c_restrict
19386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
19387 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
19388 if ${ac_cv_c_bigendian+:} false; then :
19389 $as_echo_n "(cached) " >&6
19391 ac_cv_c_bigendian=unknown
19392 # See if we're dealing with a universal compiler.
19393 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19394 /* end confdefs.h. */
19395 #ifndef __APPLE_CC__
19396 not a universal capable compiler
19401 if ac_fn_c_try_compile "$LINENO"; then :
19403 # Check for potential -arch flags. It is not universal unless
19404 # there are at least two -arch flags with different values.
19407 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
19408 if test -n "$ac_prev"; then
19410 i?86 | x86_64 | ppc | ppc64)
19411 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
19414 ac_cv_c_bigendian=universal
19420 elif test "x$ac_word" = "x-arch"; then
19425 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19426 if test $ac_cv_c_bigendian = unknown; then
19427 # See if sys/param.h defines the BYTE_ORDER macro.
19428 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19429 /* end confdefs.h. */
19430 #include <sys/types.h>
19431 #include <sys/param.h>
19436 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
19437 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
19439 bogus endian macros
19446 if ac_fn_c_try_compile "$LINENO"; then :
19447 # It does; now see whether it defined to BIG_ENDIAN or not.
19448 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19449 /* end confdefs.h. */
19450 #include <sys/types.h>
19451 #include <sys/param.h>
19456 #if BYTE_ORDER != BIG_ENDIAN
19464 if ac_fn_c_try_compile "$LINENO"; then :
19465 ac_cv_c_bigendian=yes
19467 ac_cv_c_bigendian=no
19469 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19471 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19473 if test $ac_cv_c_bigendian = unknown; then
19474 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
19475 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19476 /* end confdefs.h. */
19477 #include <limits.h>
19482 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
19483 bogus endian macros
19490 if ac_fn_c_try_compile "$LINENO"; then :
19491 # It does; now see whether it defined to _BIG_ENDIAN or not.
19492 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19493 /* end confdefs.h. */
19494 #include <limits.h>
19499 #ifndef _BIG_ENDIAN
19507 if ac_fn_c_try_compile "$LINENO"; then :
19508 ac_cv_c_bigendian=yes
19510 ac_cv_c_bigendian=no
19512 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19514 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19516 if test $ac_cv_c_bigendian = unknown; then
19517 # Compile a test program.
19518 if test "$cross_compiling" = yes; then :
19519 # Try to guess by grepping values from an object file.
19520 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19521 /* end confdefs.h. */
19522 short int ascii_mm[] =
19523 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
19524 short int ascii_ii[] =
19525 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
19526 int use_ascii (int i) {
19527 return ascii_mm[i] + ascii_ii[i];
19529 short int ebcdic_ii[] =
19530 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
19531 short int ebcdic_mm[] =
19532 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
19533 int use_ebcdic (int i) {
19534 return ebcdic_mm[i] + ebcdic_ii[i];
19541 return use_ascii (foo) == use_ebcdic (foo);
19546 if ac_fn_c_try_compile "$LINENO"; then :
19547 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
19548 ac_cv_c_bigendian=yes
19550 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
19551 if test "$ac_cv_c_bigendian" = unknown; then
19552 ac_cv_c_bigendian=no
19554 # finding both strings is unlikely to happen, but who knows?
19555 ac_cv_c_bigendian=unknown
19559 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19561 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19562 /* end confdefs.h. */
19563 $ac_includes_default
19568 /* Are we little or big endian? From Harbison&Steele. */
19572 char c[sizeof (long int)];
19575 return u.c[sizeof (long int) - 1] == 1;
19581 if ac_fn_c_try_run "$LINENO"; then :
19582 ac_cv_c_bigendian=no
19584 ac_cv_c_bigendian=yes
19586 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19587 conftest.$ac_objext conftest.beam conftest.$ac_ext
19592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
19593 $as_echo "$ac_cv_c_bigendian" >&6; }
19594 case $ac_cv_c_bigendian in #(
19596 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
19602 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
19606 as_fn_error $? "unknown endianness
19607 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
19613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the preprocessor supports include_next" >&5
19614 $as_echo_n "checking whether the preprocessor supports include_next... " >&6; }
19615 if ${gl_cv_have_include_next+:} false; then :
19616 $as_echo_n "(cached) " >&6
19618 rm -rf conftestd1a conftestd1b conftestd2
19619 mkdir conftestd1a conftestd1b conftestd2
19620 cat <<EOF > conftestd1a/conftest.h
19621 #define DEFINED_IN_CONFTESTD1
19622 #include_next <conftest.h>
19623 #ifdef DEFINED_IN_CONFTESTD2
19626 #error "include_next doesn't work"
19629 cat <<EOF > conftestd1b/conftest.h
19630 #define DEFINED_IN_CONFTESTD1
19632 #include_next <conftest.h>
19633 #ifdef DEFINED_IN_CONFTESTD2
19636 #error "include_next doesn't work"
19639 cat <<EOF > conftestd2/conftest.h
19640 #ifndef DEFINED_IN_CONFTESTD1
19641 #error "include_next test doesn't work"
19643 #define DEFINED_IN_CONFTESTD2
19645 gl_save_CPPFLAGS="$CPPFLAGS"
19646 CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1b -Iconftestd2"
19647 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19648 /* end confdefs.h. */
19649 #include <conftest.h>
19651 if ac_fn_c_try_compile "$LINENO"; then :
19652 gl_cv_have_include_next=yes
19654 CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1a -Iconftestd2"
19655 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19656 /* end confdefs.h. */
19657 #include <conftest.h>
19659 if ac_fn_c_try_compile "$LINENO"; then :
19660 gl_cv_have_include_next=buggy
19662 gl_cv_have_include_next=no
19664 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19667 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19668 CPPFLAGS="$gl_save_CPPFLAGS"
19669 rm -rf conftestd1a conftestd1b conftestd2
19672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_have_include_next" >&5
19673 $as_echo "$gl_cv_have_include_next" >&6; }
19674 PRAGMA_SYSTEM_HEADER=
19675 if test $gl_cv_have_include_next = yes; then
19676 INCLUDE_NEXT=include_next
19677 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next
19678 if test -n "$GCC"; then
19679 PRAGMA_SYSTEM_HEADER='#pragma GCC system_header'
19682 if test $gl_cv_have_include_next = buggy; then
19683 INCLUDE_NEXT=include
19684 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next
19686 INCLUDE_NEXT=include
19687 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include
19693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system header files limit the line length" >&5
19694 $as_echo_n "checking whether system header files limit the line length... " >&6; }
19695 if ${gl_cv_pragma_columns+:} false; then :
19696 $as_echo_n "(cached) " >&6
19698 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19699 /* end confdefs.h. */
19706 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19707 $EGREP "choke me" >/dev/null 2>&1; then :
19708 gl_cv_pragma_columns=yes
19710 gl_cv_pragma_columns=no
19716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_pragma_columns" >&5
19717 $as_echo "$gl_cv_pragma_columns" >&6; }
19718 if test $gl_cv_pragma_columns = yes; then
19719 PRAGMA_COLUMNS="#pragma COLUMNS 10000"
19727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for complete errno.h" >&5
19728 $as_echo_n "checking for complete errno.h... " >&6; }
19729 if ${gl_cv_header_errno_h_complete+:} false; then :
19730 $as_echo_n "(cached) " >&6
19733 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19734 /* end confdefs.h. */
19737 #if !defined ENOMSG
19743 #if !defined ENOLINK
19746 #if !defined EPROTO
19749 #if !defined EMULTIHOP
19752 #if !defined EBADMSG
19755 #if !defined EOVERFLOW
19758 #if !defined ENOTSUP
19761 #if !defined ENETRESET
19764 #if !defined ECONNABORTED
19767 #if !defined ESTALE
19770 #if !defined EDQUOT
19773 #if !defined ECANCELED
19778 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19779 $EGREP "booboo" >/dev/null 2>&1; then :
19780 gl_cv_header_errno_h_complete=no
19782 gl_cv_header_errno_h_complete=yes
19788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_complete" >&5
19789 $as_echo "$gl_cv_header_errno_h_complete" >&6; }
19790 if test $gl_cv_header_errno_h_complete = yes; then
19801 if test $gl_cv_have_include_next = yes; then
19802 gl_cv_next_errno_h='<'errno.h'>'
19804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <errno.h>" >&5
19805 $as_echo_n "checking absolute name of <errno.h>... " >&6; }
19806 if ${gl_cv_next_errno_h+:} false; then :
19807 $as_echo_n "(cached) " >&6
19810 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19811 /* end confdefs.h. */
19816 aix*) gl_absname_cpp="$ac_cpp -C" ;;
19817 *) gl_absname_cpp="$ac_cpp" ;;
19822 gl_dirsep_regex='[/\\]'
19825 gl_dirsep_regex='\/'
19828 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
19830 gl_header_literal_regex=`echo 'errno.h' \
19831 | sed -e "$gl_make_literal_regex_sed"`
19832 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
19833 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
19838 gl_cv_next_errno_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
19839 sed -n "$gl_absolute_header_sed"`'"'
19843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_errno_h" >&5
19844 $as_echo "$gl_cv_next_errno_h" >&6; }
19846 NEXT_ERRNO_H=$gl_cv_next_errno_h
19848 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
19849 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
19850 gl_next_as_first_directive='<'errno.h'>'
19852 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
19853 gl_next_as_first_directive=$gl_cv_next_errno_h
19855 NEXT_AS_FIRST_DIRECTIVE_ERRNO_H=$gl_next_as_first_directive
19863 if test -n "$ERRNO_H"; then
19864 GL_GENERATE_ERRNO_H_TRUE=
19865 GL_GENERATE_ERRNO_H_FALSE='#'
19867 GL_GENERATE_ERRNO_H_TRUE='#'
19868 GL_GENERATE_ERRNO_H_FALSE=
19872 if test -n "$ERRNO_H"; then
19873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EMULTIHOP value" >&5
19874 $as_echo_n "checking for EMULTIHOP value... " >&6; }
19875 if ${gl_cv_header_errno_h_EMULTIHOP+:} false; then :
19876 $as_echo_n "(cached) " >&6
19879 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19880 /* end confdefs.h. */
19888 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19889 $EGREP "yes" >/dev/null 2>&1; then :
19890 gl_cv_header_errno_h_EMULTIHOP=yes
19892 gl_cv_header_errno_h_EMULTIHOP=no
19896 if test $gl_cv_header_errno_h_EMULTIHOP = no; then
19897 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19898 /* end confdefs.h. */
19900 #define _XOPEN_SOURCE_EXTENDED 1
19907 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19908 $EGREP "yes" >/dev/null 2>&1; then :
19909 gl_cv_header_errno_h_EMULTIHOP=hidden
19913 if test $gl_cv_header_errno_h_EMULTIHOP = hidden; then
19914 if ac_fn_c_compute_int "$LINENO" "EMULTIHOP" "gl_cv_header_errno_h_EMULTIHOP" "
19915 #define _XOPEN_SOURCE_EXTENDED 1
19917 /* The following two lines are a workaround against an autoconf-2.52 bug. */
19919 #include <stdlib.h>
19928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_EMULTIHOP" >&5
19929 $as_echo "$gl_cv_header_errno_h_EMULTIHOP" >&6; }
19930 case $gl_cv_header_errno_h_EMULTIHOP in
19932 EMULTIHOP_HIDDEN=0; EMULTIHOP_VALUE=
19935 EMULTIHOP_HIDDEN=1; EMULTIHOP_VALUE="$gl_cv_header_errno_h_EMULTIHOP"
19943 if test -n "$ERRNO_H"; then
19944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ENOLINK value" >&5
19945 $as_echo_n "checking for ENOLINK value... " >&6; }
19946 if ${gl_cv_header_errno_h_ENOLINK+:} false; then :
19947 $as_echo_n "(cached) " >&6
19950 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19951 /* end confdefs.h. */
19959 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19960 $EGREP "yes" >/dev/null 2>&1; then :
19961 gl_cv_header_errno_h_ENOLINK=yes
19963 gl_cv_header_errno_h_ENOLINK=no
19967 if test $gl_cv_header_errno_h_ENOLINK = no; then
19968 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19969 /* end confdefs.h. */
19971 #define _XOPEN_SOURCE_EXTENDED 1
19978 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19979 $EGREP "yes" >/dev/null 2>&1; then :
19980 gl_cv_header_errno_h_ENOLINK=hidden
19984 if test $gl_cv_header_errno_h_ENOLINK = hidden; then
19985 if ac_fn_c_compute_int "$LINENO" "ENOLINK" "gl_cv_header_errno_h_ENOLINK" "
19986 #define _XOPEN_SOURCE_EXTENDED 1
19988 /* The following two lines are a workaround against an autoconf-2.52 bug. */
19990 #include <stdlib.h>
19999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_ENOLINK" >&5
20000 $as_echo "$gl_cv_header_errno_h_ENOLINK" >&6; }
20001 case $gl_cv_header_errno_h_ENOLINK in
20003 ENOLINK_HIDDEN=0; ENOLINK_VALUE=
20006 ENOLINK_HIDDEN=1; ENOLINK_VALUE="$gl_cv_header_errno_h_ENOLINK"
20014 if test -n "$ERRNO_H"; then
20015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EOVERFLOW value" >&5
20016 $as_echo_n "checking for EOVERFLOW value... " >&6; }
20017 if ${gl_cv_header_errno_h_EOVERFLOW+:} false; then :
20018 $as_echo_n "(cached) " >&6
20021 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20022 /* end confdefs.h. */
20030 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20031 $EGREP "yes" >/dev/null 2>&1; then :
20032 gl_cv_header_errno_h_EOVERFLOW=yes
20034 gl_cv_header_errno_h_EOVERFLOW=no
20038 if test $gl_cv_header_errno_h_EOVERFLOW = no; then
20039 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20040 /* end confdefs.h. */
20042 #define _XOPEN_SOURCE_EXTENDED 1
20049 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20050 $EGREP "yes" >/dev/null 2>&1; then :
20051 gl_cv_header_errno_h_EOVERFLOW=hidden
20055 if test $gl_cv_header_errno_h_EOVERFLOW = hidden; then
20056 if ac_fn_c_compute_int "$LINENO" "EOVERFLOW" "gl_cv_header_errno_h_EOVERFLOW" "
20057 #define _XOPEN_SOURCE_EXTENDED 1
20059 /* The following two lines are a workaround against an autoconf-2.52 bug. */
20061 #include <stdlib.h>
20070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_EOVERFLOW" >&5
20071 $as_echo "$gl_cv_header_errno_h_EOVERFLOW" >&6; }
20072 case $gl_cv_header_errno_h_EOVERFLOW in
20074 EOVERFLOW_HIDDEN=0; EOVERFLOW_VALUE=
20077 EOVERFLOW_HIDDEN=1; EOVERFLOW_VALUE="$gl_cv_header_errno_h_EOVERFLOW"
20094 GNULIB_FPRINTF_POSIX=0;
20110 GNULIB_OBSTACK_PRINTF=0;
20111 GNULIB_OBSTACK_PRINTF_POSIX=0;
20116 GNULIB_PRINTF_POSIX=0;
20125 GNULIB_SPRINTF_POSIX=0;
20126 GNULIB_STDIO_H_NONBLOCKING=0;
20127 GNULIB_STDIO_H_SIGPIPE=0;
20129 GNULIB_VASPRINTF=0;
20134 GNULIB_VFPRINTF_POSIX=0;
20136 GNULIB_VPRINTF_POSIX=0;
20137 GNULIB_VSNPRINTF=0;
20138 GNULIB_VSPRINTF_POSIX=0;
20139 HAVE_DECL_FPURGE=1;
20140 HAVE_DECL_FSEEKO=1;
20141 HAVE_DECL_FTELLO=1;
20142 HAVE_DECL_GETDELIM=1;
20143 HAVE_DECL_GETLINE=1;
20144 HAVE_DECL_OBSTACK_PRINTF=1;
20145 HAVE_DECL_SNPRINTF=1;
20146 HAVE_DECL_VSNPRINTF=1;
20167 REPLACE_GETDELIM=0;
20169 REPLACE_OBSTACK_PRINTF=0;
20175 REPLACE_RENAMEAT=0;
20176 REPLACE_SNPRINTF=0;
20178 REPLACE_STDIO_READ_FUNCS=0;
20179 REPLACE_STDIO_WRITE_FUNCS=0;
20181 REPLACE_VASPRINTF=0;
20182 REPLACE_VDPRINTF=0;
20183 REPLACE_VFPRINTF=0;
20185 REPLACE_VSNPRINTF=0;
20186 REPLACE_VSPRINTF=0;
20188 ac_fn_c_check_decl "$LINENO" "getdelim" "ac_cv_have_decl_getdelim" "$ac_includes_default"
20189 if test "x$ac_cv_have_decl_getdelim" = xyes; then :
20195 cat >>confdefs.h <<_ACEOF
20196 #define HAVE_DECL_GETDELIM $ac_have_decl
20202 for ac_func in $ac_func_list
20204 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20205 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
20206 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
20207 cat >>confdefs.h <<_ACEOF
20208 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20216 ac_fn_c_check_decl "$LINENO" "getline" "ac_cv_have_decl_getline" "$ac_includes_default"
20217 if test "x$ac_cv_have_decl_getline" = xyes; then :
20223 cat >>confdefs.h <<_ACEOF
20224 #define HAVE_DECL_GETLINE $ac_have_decl
20230 for ac_header in $ac_header_list
20232 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
20233 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
20235 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
20236 cat >>confdefs.h <<_ACEOF
20237 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
20255 GNULIB_RAWMEMCHR=0;
20258 GNULIB_STRCHRNUL=0;
20266 GNULIB_STRCASESTR=0;
20273 GNULIB_MBSCASECMP=0;
20274 GNULIB_MBSNCASECMP=0;
20275 GNULIB_MBSPCASECMP=0;
20276 GNULIB_MBSCASESTR=0;
20283 GNULIB_STRERROR_R=0;
20284 GNULIB_STRSIGNAL=0;
20285 GNULIB_STRVERSCMP=0;
20290 HAVE_DECL_MEMMEM=1;
20292 HAVE_DECL_MEMRCHR=1;
20297 HAVE_DECL_STRDUP=1;
20298 HAVE_DECL_STRNDUP=1;
20299 HAVE_DECL_STRNLEN=1;
20303 HAVE_DECL_STRTOK_R=1;
20304 HAVE_DECL_STRERROR_R=1;
20305 HAVE_DECL_STRSIGNAL=1;
20312 REPLACE_STRCASESTR=0;
20313 REPLACE_STRCHRNUL=0;
20314 REPLACE_STRERROR=0;
20315 REPLACE_STRERROR_R=0;
20319 REPLACE_STRSIGNAL=0;
20320 REPLACE_STRTOK_R=0;
20321 UNDEFINE_STRTOK_R=0;
20327 # Check for mmap(). Don't use AC_FUNC_MMAP, because it checks too much: it
20328 # fails on HP-UX 11, because MAP_FIXED mappings do not work. But this is
20329 # irrelevant for anonymous mappings.
20330 ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
20331 if test "x$ac_cv_func_mmap" = xyes; then :
20338 # Try to allow MAP_ANONYMOUS.
20339 gl_have_mmap_anonymous=no
20340 if test $gl_have_mmap = yes; then
20341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANONYMOUS" >&5
20342 $as_echo_n "checking for MAP_ANONYMOUS... " >&6; }
20343 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20344 /* end confdefs.h. */
20346 #include <sys/mman.h>
20347 #ifdef MAP_ANONYMOUS
20348 I cant identify this map
20352 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20353 $EGREP "I cant identify this map" >/dev/null 2>&1; then :
20354 gl_have_mmap_anonymous=yes
20358 if test $gl_have_mmap_anonymous != yes; then
20359 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20360 /* end confdefs.h. */
20362 #include <sys/mman.h>
20364 I cant identify this map
20368 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20369 $EGREP "I cant identify this map" >/dev/null 2>&1; then :
20371 $as_echo "#define MAP_ANONYMOUS MAP_ANON" >>confdefs.h
20373 gl_have_mmap_anonymous=yes
20378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_have_mmap_anonymous" >&5
20379 $as_echo "$gl_have_mmap_anonymous" >&6; }
20380 if test $gl_have_mmap_anonymous = yes; then
20382 $as_echo "#define HAVE_MAP_ANONYMOUS 1" >>confdefs.h
20392 if test $HAVE_MEMCHR = 1; then
20393 # Detect platform-specific bugs in some versions of glibc:
20394 # memchr should not dereference anything with length 0
20395 # http://bugzilla.redhat.com/499689
20396 # memchr should not dereference overestimated length after a match
20397 # http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=521737
20398 # http://sourceware.org/bugzilla/show_bug.cgi?id=10162
20399 # Assume that memchr works on platforms that lack mprotect.
20400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether memchr works" >&5
20401 $as_echo_n "checking whether memchr works... " >&6; }
20402 if ${gl_cv_func_memchr_works+:} false; then :
20403 $as_echo_n "(cached) " >&6
20405 if test "$cross_compiling" = yes; then :
20406 gl_cv_func_memchr_works="guessing no"
20408 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20409 /* end confdefs.h. */
20411 #include <string.h>
20412 #if HAVE_SYS_MMAN_H
20413 # include <fcntl.h>
20414 # include <unistd.h>
20415 # include <sys/types.h>
20416 # include <sys/mman.h>
20418 # define MAP_FILE 0
20427 char *fence = NULL;
20428 #if HAVE_SYS_MMAN_H && HAVE_MPROTECT
20429 # if HAVE_MAP_ANONYMOUS
20430 const int flags = MAP_ANONYMOUS | MAP_PRIVATE;
20432 # else /* !HAVE_MAP_ANONYMOUS */
20433 const int flags = MAP_FILE | MAP_PRIVATE;
20434 int fd = open ("/dev/zero", O_RDONLY, 0666);
20438 int pagesize = getpagesize ();
20440 (char *) mmap (NULL, 2 * pagesize, PROT_READ | PROT_WRITE,
20442 if (two_pages != (char *)(-1)
20443 && mprotect (two_pages + pagesize, pagesize, PROT_NONE) == 0)
20444 fence = two_pages + pagesize;
20449 if (memchr (fence, 0, 0))
20451 strcpy (fence - 9, "12345678");
20452 if (memchr (fence - 9, 0, 79) != fence - 1)
20454 if (memchr (fence - 1, 0, 3) != fence - 1)
20463 if ac_fn_c_try_run "$LINENO"; then :
20464 gl_cv_func_memchr_works=yes
20466 gl_cv_func_memchr_works=no
20468 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20469 conftest.$ac_objext conftest.beam conftest.$ac_ext
20473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_memchr_works" >&5
20474 $as_echo "$gl_cv_func_memchr_works" >&6; }
20475 if test "$gl_cv_func_memchr_works" != yes; then
20480 ac_fn_c_check_decl "$LINENO" "memmem" "ac_cv_have_decl_memmem" "$ac_includes_default"
20481 if test "x$ac_cv_have_decl_memmem" = xyes; then :
20487 cat >>confdefs.h <<_ACEOF
20488 #define HAVE_DECL_MEMMEM $ac_have_decl
20495 for ac_func in memmem
20497 ac_fn_c_check_func "$LINENO" "memmem" "ac_cv_func_memmem"
20498 if test "x$ac_cv_func_memmem" = xyes; then :
20499 cat >>confdefs.h <<_ACEOF
20500 #define HAVE_MEMMEM 1
20506 if test $ac_cv_func_memmem = yes; then
20512 if test $ac_cv_have_decl_memmem = no; then
20515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether memmem works" >&5
20516 $as_echo_n "checking whether memmem works... " >&6; }
20517 if ${gl_cv_func_memmem_works_always+:} false; then :
20518 $as_echo_n "(cached) " >&6
20520 if test "$cross_compiling" = yes; then :
20521 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20522 /* end confdefs.h. */
20524 #ifdef __GNU_LIBRARY__
20525 #include <features.h>
20526 #if ((__GLIBC__ == 2 && ((__GLIBC_MINOR > 0 && __GLIBC_MINOR__ < 9) \
20527 || __GLIBC_MINOR__ > 12)) \
20528 || (__GLIBC__ > 2)) \
20529 || defined __UCLIBC__
20532 #elif defined __CYGWIN__
20533 #include <cygwin/version.h>
20534 #if CYGWIN_VERSION_DLL_COMBINED > CYGWIN_VERSION_DLL_MAKE_COMBINED (1007, 7)
20542 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20543 $EGREP "Lucky user" >/dev/null 2>&1; then :
20544 gl_cv_func_memmem_works_always="guessing yes"
20546 gl_cv_func_memmem_works_always="guessing no"
20552 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20553 /* end confdefs.h. */
20555 #include <string.h> /* for memmem */
20556 #define P "_EF_BF_BD"
20557 #define HAYSTACK "F_BD_CE_BD" P P P P "_C3_88_20" P P P "_C3_A7_20" P
20558 #define NEEDLE P P P P P
20565 if (memmem (HAYSTACK, strlen (HAYSTACK), NEEDLE, strlen (NEEDLE)))
20567 /* Check for empty needle behavior. */
20569 const char *haystack = "AAA";
20570 if (memmem (haystack, 3, NULL, 0) != haystack)
20579 if ac_fn_c_try_run "$LINENO"; then :
20580 gl_cv_func_memmem_works_always=yes
20582 gl_cv_func_memmem_works_always=no
20584 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20585 conftest.$ac_objext conftest.beam conftest.$ac_ext
20590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_memmem_works_always" >&5
20591 $as_echo "$gl_cv_func_memmem_works_always" >&6; }
20592 case "$gl_cv_func_memmem_works_always" in
20605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <limits.h> defines MIN and MAX" >&5
20606 $as_echo_n "checking whether <limits.h> defines MIN and MAX... " >&6; }
20607 if ${gl_cv_minmax_in_limits_h+:} false; then :
20608 $as_echo_n "(cached) " >&6
20610 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20611 /* end confdefs.h. */
20612 #include <limits.h>
20613 int x = MIN (42, 17);
20622 if ac_fn_c_try_compile "$LINENO"; then :
20623 gl_cv_minmax_in_limits_h=yes
20625 gl_cv_minmax_in_limits_h=no
20627 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_minmax_in_limits_h" >&5
20630 $as_echo "$gl_cv_minmax_in_limits_h" >&6; }
20631 if test $gl_cv_minmax_in_limits_h = yes; then
20633 $as_echo "#define HAVE_MINMAX_IN_LIMITS_H 1" >>confdefs.h
20642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <sys/param.h> defines MIN and MAX" >&5
20643 $as_echo_n "checking whether <sys/param.h> defines MIN and MAX... " >&6; }
20644 if ${gl_cv_minmax_in_sys_param_h+:} false; then :
20645 $as_echo_n "(cached) " >&6
20647 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20648 /* end confdefs.h. */
20649 #include <sys/param.h>
20650 int x = MIN (42, 17);
20659 if ac_fn_c_try_compile "$LINENO"; then :
20660 gl_cv_minmax_in_sys_param_h=yes
20662 gl_cv_minmax_in_sys_param_h=no
20664 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_minmax_in_sys_param_h" >&5
20667 $as_echo "$gl_cv_minmax_in_sys_param_h" >&6; }
20668 if test $gl_cv_minmax_in_sys_param_h = yes; then
20670 $as_echo "#define HAVE_MINMAX_IN_SYS_PARAM_H 1" >>confdefs.h
20678 gl_cv_c_multiarch=no
20679 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20680 /* end confdefs.h. */
20681 #ifndef __APPLE_CC__
20682 not a universal capable compiler
20687 if ac_fn_c_try_compile "$LINENO"; then :
20691 for word in ${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS}; do
20692 if test -n "$prev"; then
20694 i?86 | x86_64 | ppc | ppc64)
20695 if test -z "$arch" || test "$arch" = "$word"; then
20698 gl_cv_c_multiarch=yes
20704 if test "x$word" = "x-arch"; then
20711 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20712 if test $gl_cv_c_multiarch = yes; then
20713 APPLE_UNIVERSAL_BUILD=1
20715 APPLE_UNIVERSAL_BUILD=0
20722 GNULIB_CALLOC_POSIX=0;
20723 GNULIB_CANONICALIZE_FILE_NAME=0;
20724 GNULIB_GETLOADAVG=0;
20725 GNULIB_GETSUBOPT=0;
20727 GNULIB_MALLOC_POSIX=0;
20731 GNULIB_MKOSTEMPS=0;
20734 GNULIB_POSIX_OPENPT=0;
20736 GNULIB_PTSNAME_R=0;
20740 GNULIB_REALLOC_POSIX=0;
20747 GNULIB_SYSTEM_POSIX=0;
20753 HAVE_CANONICALIZE_FILE_NAME=1;
20754 HAVE_DECL_GETLOADAVG=1;
20762 HAVE_POSIX_OPENPT=1;
20771 HAVE_DECL_SETENV=1;
20775 HAVE_STRUCT_RANDOM_DATA=1;
20776 HAVE_SYS_LOADAVG_H=0;
20778 HAVE_DECL_UNSETENV=1;
20780 REPLACE_CANONICALIZE_FILE_NAME=0;
20784 REPLACE_PTSNAME_R=0;
20786 REPLACE_RANDOM_R=0;
20788 REPLACE_REALPATH=0;
20791 REPLACE_UNSETENV=0;
20795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether malloc, realloc, calloc are POSIX compliant" >&5
20796 $as_echo_n "checking whether malloc, realloc, calloc are POSIX compliant... " >&6; }
20797 if ${gl_cv_func_malloc_posix+:} false; then :
20798 $as_echo_n "(cached) " >&6
20801 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20802 /* end confdefs.h. */
20807 #if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
20815 if ac_fn_c_try_compile "$LINENO"; then :
20816 gl_cv_func_malloc_posix=yes
20818 gl_cv_func_malloc_posix=no
20820 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_malloc_posix" >&5
20824 $as_echo "$gl_cv_func_malloc_posix" >&6; }
20826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
20827 $as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
20828 if ${ac_cv_header_stdbool_h+:} false; then :
20829 $as_echo_n "(cached) " >&6
20831 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20832 /* end confdefs.h. */
20834 #include <stdbool.h>
20836 "error: bool is not defined"
20839 "error: false is not defined"
20842 "error: false is not 0"
20845 "error: true is not defined"
20848 "error: true is not 1"
20850 #ifndef __bool_true_false_are_defined
20851 "error: __bool_true_false_are_defined is not defined"
20854 struct s { _Bool s: 1; _Bool t; } s;
20856 char a[true == 1 ? 1 : -1];
20857 char b[false == 0 ? 1 : -1];
20858 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
20859 char d[(bool) 0.5 == true ? 1 : -1];
20860 /* See body of main program for 'e'. */
20861 char f[(_Bool) 0.0 == false ? 1 : -1];
20863 char h[sizeof (_Bool)];
20864 char i[sizeof s.t];
20865 enum { j = false, k = true, l = false * true, m = true * 256 };
20866 /* The following fails for
20867 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
20869 char o[sizeof n == m * sizeof n[0] ? 1 : -1];
20870 char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
20871 /* Catch a bug in an HP-UX C compiler. See
20872 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
20873 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
20885 /* Refer to every declared value, to avoid compiler optimizations. */
20886 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
20887 + !m + !n + !o + !p + !q + !pq);
20893 if ac_fn_c_try_compile "$LINENO"; then :
20894 ac_cv_header_stdbool_h=yes
20896 ac_cv_header_stdbool_h=no
20898 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
20901 $as_echo "$ac_cv_header_stdbool_h" >&6; }
20902 ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
20903 if test "x$ac_cv_type__Bool" = xyes; then :
20905 cat >>confdefs.h <<_ACEOF
20906 #define HAVE__BOOL 1
20918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5
20919 $as_echo_n "checking for wchar_t... " >&6; }
20920 if ${gt_cv_c_wchar_t+:} false; then :
20921 $as_echo_n "(cached) " >&6
20923 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20924 /* end confdefs.h. */
20925 #include <stddef.h>
20926 wchar_t foo = (wchar_t)'\0';
20935 if ac_fn_c_try_compile "$LINENO"; then :
20936 gt_cv_c_wchar_t=yes
20940 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5
20943 $as_echo "$gt_cv_c_wchar_t" >&6; }
20944 if test $gt_cv_c_wchar_t = yes; then
20946 $as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h
20951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
20952 $as_echo_n "checking for long long int... " >&6; }
20953 if ${ac_cv_type_long_long_int+:} false; then :
20954 $as_echo_n "(cached) " >&6
20956 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20957 /* end confdefs.h. */
20959 /* For now, do not test the preprocessor; as of 2007 there are too many
20960 implementations with broken preprocessors. Perhaps this can
20961 be revisited in 2012. In the meantime, code should not expect
20962 #if to work with literals wider than 32 bits. */
20963 /* Test literals. */
20964 long long int ll = 9223372036854775807ll;
20965 long long int nll = -9223372036854775807LL;
20966 unsigned long long int ull = 18446744073709551615ULL;
20967 /* Test constant expressions. */
20968 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
20970 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
20976 /* Test availability of runtime routines for shift and division. */
20977 long long int llmax = 9223372036854775807ll;
20978 unsigned long long int ullmax = 18446744073709551615ull;
20979 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
20980 | (llmax / ll) | (llmax % ll)
20981 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
20982 | (ullmax / ull) | (ullmax % ull));
20988 if ac_fn_c_try_link "$LINENO"; then :
20989 if test "$cross_compiling" = yes; then :
20990 ac_cv_type_long_long_int=yes
20992 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20993 /* end confdefs.h. */
20994 #include <limits.h>
20997 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
20998 # define LLONG_MAX (HALF - 1 + HALF)
21003 long long int n = 1;
21007 long long int m = n << i;
21010 if (LLONG_MAX / 2 < m)
21018 if ac_fn_c_try_run "$LINENO"; then :
21019 ac_cv_type_long_long_int=yes
21021 ac_cv_type_long_long_int=no
21023 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21024 conftest.$ac_objext conftest.beam conftest.$ac_ext
21028 ac_cv_type_long_long_int=no
21030 rm -f core conftest.err conftest.$ac_objext \
21031 conftest$ac_exeext conftest.$ac_ext
21033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
21034 $as_echo "$ac_cv_type_long_long_int" >&6; }
21035 if test $ac_cv_type_long_long_int = yes; then
21037 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
21042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
21043 $as_echo_n "checking for unsigned long long int... " >&6; }
21044 if ${ac_cv_type_unsigned_long_long_int+:} false; then :
21045 $as_echo_n "(cached) " >&6
21047 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21048 /* end confdefs.h. */
21050 /* For now, do not test the preprocessor; as of 2007 there are too many
21051 implementations with broken preprocessors. Perhaps this can
21052 be revisited in 2012. In the meantime, code should not expect
21053 #if to work with literals wider than 32 bits. */
21054 /* Test literals. */
21055 long long int ll = 9223372036854775807ll;
21056 long long int nll = -9223372036854775807LL;
21057 unsigned long long int ull = 18446744073709551615ULL;
21058 /* Test constant expressions. */
21059 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
21061 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
21067 /* Test availability of runtime routines for shift and division. */
21068 long long int llmax = 9223372036854775807ll;
21069 unsigned long long int ullmax = 18446744073709551615ull;
21070 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
21071 | (llmax / ll) | (llmax % ll)
21072 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
21073 | (ullmax / ull) | (ullmax % ull));
21079 if ac_fn_c_try_link "$LINENO"; then :
21080 ac_cv_type_unsigned_long_long_int=yes
21082 ac_cv_type_unsigned_long_long_int=no
21084 rm -f core conftest.err conftest.$ac_objext \
21085 conftest$ac_exeext conftest.$ac_ext
21087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
21088 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
21089 if test $ac_cv_type_unsigned_long_long_int = yes; then
21091 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
21102 if test $ac_cv_type_long_long_int = yes; then
21103 HAVE_LONG_LONG_INT=1
21105 HAVE_LONG_LONG_INT=0
21109 if test $ac_cv_type_unsigned_long_long_int = yes; then
21110 HAVE_UNSIGNED_LONG_LONG_INT=1
21112 HAVE_UNSIGNED_LONG_LONG_INT=0
21117 if test $ac_cv_header_wchar_h = yes; then
21124 if test $ac_cv_header_inttypes_h = yes; then
21131 if test $ac_cv_header_sys_types_h = yes; then
21147 if test $gl_cv_have_include_next = yes; then
21148 gl_cv_next_stdint_h='<'stdint.h'>'
21150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdint.h>" >&5
21151 $as_echo_n "checking absolute name of <stdint.h>... " >&6; }
21152 if ${gl_cv_next_stdint_h+:} false; then :
21153 $as_echo_n "(cached) " >&6
21156 if test $ac_cv_header_stdint_h = yes; then
21159 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21160 /* end confdefs.h. */
21161 #include <stdint.h>
21165 aix*) gl_absname_cpp="$ac_cpp -C" ;;
21166 *) gl_absname_cpp="$ac_cpp" ;;
21171 gl_dirsep_regex='[/\\]'
21174 gl_dirsep_regex='\/'
21177 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
21179 gl_header_literal_regex=`echo 'stdint.h' \
21180 | sed -e "$gl_make_literal_regex_sed"`
21181 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
21182 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
21187 gl_cv_next_stdint_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
21188 sed -n "$gl_absolute_header_sed"`'"'
21190 gl_cv_next_stdint_h='<'stdint.h'>'
21195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdint_h" >&5
21196 $as_echo "$gl_cv_next_stdint_h" >&6; }
21198 NEXT_STDINT_H=$gl_cv_next_stdint_h
21200 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
21201 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
21202 gl_next_as_first_directive='<'stdint.h'>'
21204 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
21205 gl_next_as_first_directive=$gl_cv_next_stdint_h
21207 NEXT_AS_FIRST_DIRECTIVE_STDINT_H=$gl_next_as_first_directive
21212 if test $ac_cv_header_stdint_h = yes; then
21219 if test $ac_cv_header_stdint_h = yes; then
21220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stdint.h conforms to C99" >&5
21221 $as_echo_n "checking whether stdint.h conforms to C99... " >&6; }
21222 if ${gl_cv_header_working_stdint_h+:} false; then :
21223 $as_echo_n "(cached) " >&6
21225 gl_cv_header_working_stdint_h=no
21226 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21227 /* end confdefs.h. */
21230 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
21231 #include <stdint.h>
21232 /* Dragonfly defines WCHAR_MIN, WCHAR_MAX only in <wchar.h>. */
21233 #if !(defined WCHAR_MIN && defined WCHAR_MAX)
21234 #error "WCHAR_MIN, WCHAR_MAX not defined in <stdint.h>"
21238 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
21239 included before <wchar.h>. */
21240 #include <stddef.h>
21241 #include <signal.h>
21243 # include <stdio.h>
21245 # include <wchar.h>
21250 int8_t a1 = INT8_MAX;
21251 int8_t a1min = INT8_MIN;
21254 int16_t a2 = INT16_MAX;
21255 int16_t a2min = INT16_MIN;
21258 int32_t a3 = INT32_MAX;
21259 int32_t a3min = INT32_MIN;
21262 int64_t a4 = INT64_MAX;
21263 int64_t a4min = INT64_MIN;
21266 uint8_t b1 = UINT8_MAX;
21268 typedef int b1[(unsigned char) -1 != 255 ? 1 : -1];
21271 uint16_t b2 = UINT16_MAX;
21274 uint32_t b3 = UINT32_MAX;
21277 uint64_t b4 = UINT64_MAX;
21279 int_least8_t c1 = INT8_C (0x7f);
21280 int_least8_t c1max = INT_LEAST8_MAX;
21281 int_least8_t c1min = INT_LEAST8_MIN;
21282 int_least16_t c2 = INT16_C (0x7fff);
21283 int_least16_t c2max = INT_LEAST16_MAX;
21284 int_least16_t c2min = INT_LEAST16_MIN;
21285 int_least32_t c3 = INT32_C (0x7fffffff);
21286 int_least32_t c3max = INT_LEAST32_MAX;
21287 int_least32_t c3min = INT_LEAST32_MIN;
21288 int_least64_t c4 = INT64_C (0x7fffffffffffffff);
21289 int_least64_t c4max = INT_LEAST64_MAX;
21290 int_least64_t c4min = INT_LEAST64_MIN;
21291 uint_least8_t d1 = UINT8_C (0xff);
21292 uint_least8_t d1max = UINT_LEAST8_MAX;
21293 uint_least16_t d2 = UINT16_C (0xffff);
21294 uint_least16_t d2max = UINT_LEAST16_MAX;
21295 uint_least32_t d3 = UINT32_C (0xffffffff);
21296 uint_least32_t d3max = UINT_LEAST32_MAX;
21297 uint_least64_t d4 = UINT64_C (0xffffffffffffffff);
21298 uint_least64_t d4max = UINT_LEAST64_MAX;
21299 int_fast8_t e1 = INT_FAST8_MAX;
21300 int_fast8_t e1min = INT_FAST8_MIN;
21301 int_fast16_t e2 = INT_FAST16_MAX;
21302 int_fast16_t e2min = INT_FAST16_MIN;
21303 int_fast32_t e3 = INT_FAST32_MAX;
21304 int_fast32_t e3min = INT_FAST32_MIN;
21305 int_fast64_t e4 = INT_FAST64_MAX;
21306 int_fast64_t e4min = INT_FAST64_MIN;
21307 uint_fast8_t f1 = UINT_FAST8_MAX;
21308 uint_fast16_t f2 = UINT_FAST16_MAX;
21309 uint_fast32_t f3 = UINT_FAST32_MAX;
21310 uint_fast64_t f4 = UINT_FAST64_MAX;
21312 intptr_t g = INTPTR_MAX;
21313 intptr_t gmin = INTPTR_MIN;
21316 uintptr_t h = UINTPTR_MAX;
21318 intmax_t i = INTMAX_MAX;
21319 uintmax_t j = UINTMAX_MAX;
21321 #include <limits.h> /* for CHAR_BIT */
21322 #define TYPE_MINIMUM(t) \
21323 ((t) ((t) 0 < (t) -1 ? (t) 0 : ~ TYPE_MAXIMUM (t)))
21324 #define TYPE_MAXIMUM(t) \
21325 ((t) ((t) 0 < (t) -1 \
21327 : ((((t) 1 << (sizeof (t) * CHAR_BIT - 2)) - 1) * 2 + 1)))
21330 PTRDIFF_MIN == TYPE_MINIMUM (ptrdiff_t)
21331 && PTRDIFF_MAX == TYPE_MAXIMUM (ptrdiff_t)
21333 /* Detect bug in FreeBSD 6.0 / ia64. */
21334 int check_SIG_ATOMIC:
21335 SIG_ATOMIC_MIN == TYPE_MINIMUM (sig_atomic_t)
21336 && SIG_ATOMIC_MAX == TYPE_MAXIMUM (sig_atomic_t)
21338 int check_SIZE: SIZE_MAX == TYPE_MAXIMUM (size_t) ? 1 : -1;
21340 WCHAR_MIN == TYPE_MINIMUM (wchar_t)
21341 && WCHAR_MAX == TYPE_MAXIMUM (wchar_t)
21343 /* Detect bug in mingw. */
21345 WINT_MIN == TYPE_MINIMUM (wint_t)
21346 && WINT_MAX == TYPE_MAXIMUM (wint_t)
21349 /* Detect bugs in glibc 2.4 and Solaris 10 stdint.h, among others. */
21351 (-1 < UINT8_C (0)) == (-1 < (uint_least8_t) 0) ? 1 : -1;
21352 int check_UINT16_C:
21353 (-1 < UINT16_C (0)) == (-1 < (uint_least16_t) 0) ? 1 : -1;
21355 /* Detect bugs in OpenBSD 3.9 stdint.h. */
21357 int check_uint8: (uint8_t) -1 == UINT8_MAX ? 1 : -1;
21360 int check_uint16: (uint16_t) -1 == UINT16_MAX ? 1 : -1;
21363 int check_uint32: (uint32_t) -1 == UINT32_MAX ? 1 : -1;
21366 int check_uint64: (uint64_t) -1 == UINT64_MAX ? 1 : -1;
21368 int check_uint_least8: (uint_least8_t) -1 == UINT_LEAST8_MAX ? 1 : -1;
21369 int check_uint_least16: (uint_least16_t) -1 == UINT_LEAST16_MAX ? 1 : -1;
21370 int check_uint_least32: (uint_least32_t) -1 == UINT_LEAST32_MAX ? 1 : -1;
21371 int check_uint_least64: (uint_least64_t) -1 == UINT_LEAST64_MAX ? 1 : -1;
21372 int check_uint_fast8: (uint_fast8_t) -1 == UINT_FAST8_MAX ? 1 : -1;
21373 int check_uint_fast16: (uint_fast16_t) -1 == UINT_FAST16_MAX ? 1 : -1;
21374 int check_uint_fast32: (uint_fast32_t) -1 == UINT_FAST32_MAX ? 1 : -1;
21375 int check_uint_fast64: (uint_fast64_t) -1 == UINT_FAST64_MAX ? 1 : -1;
21376 int check_uintptr: (uintptr_t) -1 == UINTPTR_MAX ? 1 : -1;
21377 int check_uintmax: (uintmax_t) -1 == UINTMAX_MAX ? 1 : -1;
21378 int check_size: (size_t) -1 == SIZE_MAX ? 1 : -1;
21389 if ac_fn_c_try_compile "$LINENO"; then :
21390 if test "$cross_compiling" = yes; then :
21391 gl_cv_header_working_stdint_h=yes
21394 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21395 /* end confdefs.h. */
21398 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
21399 #include <stdint.h>
21402 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
21403 included before <wchar.h>. */
21404 #include <stddef.h>
21405 #include <signal.h>
21407 # include <stdio.h>
21409 # include <wchar.h>
21414 #include <string.h>
21415 #define MVAL(macro) MVAL1(macro)
21416 #define MVAL1(expression) #expression
21417 static const char *macro_values[] =
21451 for (mv = macro_values; *mv != NULL; mv++)
21453 const char *value = *mv;
21454 /* Test whether it looks like a cast expression. */
21455 if (strncmp (value, "((unsigned int)"/*)*/, 15) == 0
21456 || strncmp (value, "((unsigned short)"/*)*/, 17) == 0
21457 || strncmp (value, "((unsigned char)"/*)*/, 16) == 0
21458 || strncmp (value, "((int)"/*)*/, 6) == 0
21459 || strncmp (value, "((signed short)"/*)*/, 15) == 0
21460 || strncmp (value, "((signed char)"/*)*/, 14) == 0)
21461 return mv - macro_values + 1;
21469 if ac_fn_c_try_run "$LINENO"; then :
21470 gl_cv_header_working_stdint_h=yes
21472 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21473 conftest.$ac_objext conftest.beam conftest.$ac_ext
21478 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_stdint_h" >&5
21482 $as_echo "$gl_cv_header_working_stdint_h" >&6; }
21484 if test "$gl_cv_header_working_stdint_h" = yes; then
21487 for ac_header in sys/inttypes.h sys/bitypes.h
21489 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
21490 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
21491 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
21492 cat >>confdefs.h <<_ACEOF
21493 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
21500 if test $ac_cv_header_sys_inttypes_h = yes; then
21501 HAVE_SYS_INTTYPES_H=1
21503 HAVE_SYS_INTTYPES_H=0
21506 if test $ac_cv_header_sys_bitypes_h = yes; then
21507 HAVE_SYS_BITYPES_H=1
21509 HAVE_SYS_BITYPES_H=0
21515 if test $APPLE_UNIVERSAL_BUILD = 0; then
21518 for gltype in ptrdiff_t size_t ; do
21519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
21520 $as_echo_n "checking for bit size of $gltype... " >&6; }
21521 if eval \${gl_cv_bitsizeof_${gltype}+:} false; then :
21522 $as_echo_n "(cached) " >&6
21524 if ac_fn_c_compute_int "$LINENO" "sizeof ($gltype) * CHAR_BIT" "result" "
21525 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
21526 included before <wchar.h>. */
21527 #include <stddef.h>
21528 #include <signal.h>
21530 # include <stdio.h>
21532 # include <wchar.h>
21535 #include <limits.h>"; then :
21541 eval gl_cv_bitsizeof_${gltype}=\$result
21544 eval ac_res=\$gl_cv_bitsizeof_${gltype}
21545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
21546 $as_echo "$ac_res" >&6; }
21547 eval result=\$gl_cv_bitsizeof_${gltype}
21548 if test $result = unknown; then
21551 GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
21552 cat >>confdefs.h <<_ACEOF
21553 #define BITSIZEOF_${GLTYPE} $result
21556 eval BITSIZEOF_${GLTYPE}=\$result
21563 for gltype in sig_atomic_t wchar_t wint_t ; do
21564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
21565 $as_echo_n "checking for bit size of $gltype... " >&6; }
21566 if eval \${gl_cv_bitsizeof_${gltype}+:} false; then :
21567 $as_echo_n "(cached) " >&6
21569 if ac_fn_c_compute_int "$LINENO" "sizeof ($gltype) * CHAR_BIT" "result" "
21570 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
21571 included before <wchar.h>. */
21572 #include <stddef.h>
21573 #include <signal.h>
21575 # include <stdio.h>
21577 # include <wchar.h>
21580 #include <limits.h>"; then :
21586 eval gl_cv_bitsizeof_${gltype}=\$result
21589 eval ac_res=\$gl_cv_bitsizeof_${gltype}
21590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
21591 $as_echo "$ac_res" >&6; }
21592 eval result=\$gl_cv_bitsizeof_${gltype}
21593 if test $result = unknown; then
21596 GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
21597 cat >>confdefs.h <<_ACEOF
21598 #define BITSIZEOF_${GLTYPE} $result
21601 eval BITSIZEOF_${GLTYPE}=\$result
21607 for gltype in sig_atomic_t wchar_t wint_t ; do
21608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gltype is signed" >&5
21609 $as_echo_n "checking whether $gltype is signed... " >&6; }
21610 if eval \${gl_cv_type_${gltype}_signed+:} false; then :
21611 $as_echo_n "(cached) " >&6
21613 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21614 /* end confdefs.h. */
21616 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
21617 included before <wchar.h>. */
21618 #include <stddef.h>
21619 #include <signal.h>
21621 # include <stdio.h>
21623 # include <wchar.h>
21626 int verify[2 * (($gltype) -1 < ($gltype) 0) - 1];
21635 if ac_fn_c_try_compile "$LINENO"; then :
21640 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21641 eval gl_cv_type_${gltype}_signed=\$result
21644 eval ac_res=\$gl_cv_type_${gltype}_signed
21645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
21646 $as_echo "$ac_res" >&6; }
21647 eval result=\$gl_cv_type_${gltype}_signed
21648 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
21649 if test "$result" = yes; then
21650 cat >>confdefs.h <<_ACEOF
21651 #define HAVE_SIGNED_${GLTYPE} 1
21654 eval HAVE_SIGNED_${GLTYPE}=1
21656 eval HAVE_SIGNED_${GLTYPE}=0
21661 gl_cv_type_ptrdiff_t_signed=yes
21662 gl_cv_type_size_t_signed=no
21663 if test $APPLE_UNIVERSAL_BUILD = 0; then
21666 for gltype in ptrdiff_t size_t ; do
21667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
21668 $as_echo_n "checking for $gltype integer literal suffix... " >&6; }
21669 if eval \${gl_cv_type_${gltype}_suffix+:} false; then :
21670 $as_echo_n "(cached) " >&6
21672 eval gl_cv_type_${gltype}_suffix=no
21673 eval result=\$gl_cv_type_${gltype}_signed
21674 if test "$result" = yes; then
21679 for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do
21681 '') gltype1='int';;
21682 l) gltype1='long int';;
21683 ll) gltype1='long long int';;
21684 i64) gltype1='__int64';;
21685 u) gltype1='unsigned int';;
21686 ul) gltype1='unsigned long int';;
21687 ull) gltype1='unsigned long long int';;
21688 ui64)gltype1='unsigned __int64';;
21690 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21691 /* end confdefs.h. */
21693 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
21694 included before <wchar.h>. */
21695 #include <stddef.h>
21696 #include <signal.h>
21698 # include <stdio.h>
21700 # include <wchar.h>
21703 extern $gltype foo;
21704 extern $gltype1 foo;
21713 if ac_fn_c_try_compile "$LINENO"; then :
21714 eval gl_cv_type_${gltype}_suffix=\$glsuf
21716 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21717 eval result=\$gl_cv_type_${gltype}_suffix
21718 test "$result" != no && break
21721 eval ac_res=\$gl_cv_type_${gltype}_suffix
21722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
21723 $as_echo "$ac_res" >&6; }
21724 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
21725 eval result=\$gl_cv_type_${gltype}_suffix
21726 test "$result" = no && result=
21727 eval ${GLTYPE}_SUFFIX=\$result
21728 cat >>confdefs.h <<_ACEOF
21729 #define ${GLTYPE}_SUFFIX $result
21738 for gltype in sig_atomic_t wchar_t wint_t ; do
21739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
21740 $as_echo_n "checking for $gltype integer literal suffix... " >&6; }
21741 if eval \${gl_cv_type_${gltype}_suffix+:} false; then :
21742 $as_echo_n "(cached) " >&6
21744 eval gl_cv_type_${gltype}_suffix=no
21745 eval result=\$gl_cv_type_${gltype}_signed
21746 if test "$result" = yes; then
21751 for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do
21753 '') gltype1='int';;
21754 l) gltype1='long int';;
21755 ll) gltype1='long long int';;
21756 i64) gltype1='__int64';;
21757 u) gltype1='unsigned int';;
21758 ul) gltype1='unsigned long int';;
21759 ull) gltype1='unsigned long long int';;
21760 ui64)gltype1='unsigned __int64';;
21762 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21763 /* end confdefs.h. */
21765 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
21766 included before <wchar.h>. */
21767 #include <stddef.h>
21768 #include <signal.h>
21770 # include <stdio.h>
21772 # include <wchar.h>
21775 extern $gltype foo;
21776 extern $gltype1 foo;
21785 if ac_fn_c_try_compile "$LINENO"; then :
21786 eval gl_cv_type_${gltype}_suffix=\$glsuf
21788 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21789 eval result=\$gl_cv_type_${gltype}_suffix
21790 test "$result" != no && break
21793 eval ac_res=\$gl_cv_type_${gltype}_suffix
21794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
21795 $as_echo "$ac_res" >&6; }
21796 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
21797 eval result=\$gl_cv_type_${gltype}_suffix
21798 test "$result" = no && result=
21799 eval ${GLTYPE}_SUFFIX=\$result
21800 cat >>confdefs.h <<_ACEOF
21801 #define ${GLTYPE}_SUFFIX $result
21808 if test $BITSIZEOF_WINT_T -lt 32; then
21809 BITSIZEOF_WINT_T=32
21815 if test -n "$STDINT_H"; then
21816 GL_GENERATE_STDINT_H_TRUE=
21817 GL_GENERATE_STDINT_H_FALSE='#'
21819 GL_GENERATE_STDINT_H_TRUE='#'
21820 GL_GENERATE_STDINT_H_FALSE=
21835 if test $gl_cv_have_include_next = yes; then
21836 gl_cv_next_string_h='<'string.h'>'
21838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <string.h>" >&5
21839 $as_echo_n "checking absolute name of <string.h>... " >&6; }
21840 if ${gl_cv_next_string_h+:} false; then :
21841 $as_echo_n "(cached) " >&6
21844 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21845 /* end confdefs.h. */
21846 #include <string.h>
21850 aix*) gl_absname_cpp="$ac_cpp -C" ;;
21851 *) gl_absname_cpp="$ac_cpp" ;;
21856 gl_dirsep_regex='[/\\]'
21859 gl_dirsep_regex='\/'
21862 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
21864 gl_header_literal_regex=`echo 'string.h' \
21865 | sed -e "$gl_make_literal_regex_sed"`
21866 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
21867 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
21872 gl_cv_next_string_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
21873 sed -n "$gl_absolute_header_sed"`'"'
21877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_string_h" >&5
21878 $as_echo "$gl_cv_next_string_h" >&6; }
21880 NEXT_STRING_H=$gl_cv_next_string_h
21882 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
21883 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
21884 gl_next_as_first_directive='<'string.h'>'
21886 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
21887 gl_next_as_first_directive=$gl_cv_next_string_h
21889 NEXT_AS_FIRST_DIRECTIVE_STRING_H=$gl_next_as_first_directive
21896 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
21897 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
21898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
21899 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
21900 if eval \${$as_gl_Symbol+:} false; then :
21901 $as_echo_n "(cached) " >&6
21903 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21904 /* end confdefs.h. */
21905 #include <string.h>
21916 if ac_fn_c_try_compile "$LINENO"; then :
21917 eval "$as_gl_Symbol=yes"
21919 eval "$as_gl_Symbol=no"
21921 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21923 eval ac_res=\$$as_gl_Symbol
21924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
21925 $as_echo "$ac_res" >&6; }
21926 if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
21927 cat >>confdefs.h <<_ACEOF
21928 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
21931 eval ac_cv_have_decl_$gl_func=yes
21936 ac_fn_c_check_decl "$LINENO" "strndup" "ac_cv_have_decl_strndup" "$ac_includes_default"
21937 if test "x$ac_cv_have_decl_strndup" = xyes; then :
21943 cat >>confdefs.h <<_ACEOF
21944 #define HAVE_DECL_STRNDUP $ac_have_decl
21949 ac_fn_c_check_decl "$LINENO" "strnlen" "ac_cv_have_decl_strnlen" "$ac_includes_default"
21950 if test "x$ac_cv_have_decl_strnlen" = xyes; then :
21956 cat >>confdefs.h <<_ACEOF
21957 #define HAVE_DECL_STRNLEN $ac_have_decl
21962 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
21963 if test "x$ac_cv_type_pid_t" = xyes; then :
21967 cat >>confdefs.h <<_ACEOF
21973 ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
21974 if test "x$ac_cv_type_mode_t" = xyes; then :
21978 cat >>confdefs.h <<_ACEOF
21986 WINDOWS_64_BIT_OFF_T=0
21998 GNULIB_EUIDACCESS=0;
21999 GNULIB_FACCESSAT=0;
22002 GNULIB_FDATASYNC=0;
22004 GNULIB_FTRUNCATE=0;
22006 GNULIB_GETDOMAINNAME=0;
22007 GNULIB_GETDTABLESIZE=0;
22008 GNULIB_GETGROUPS=0;
22009 GNULIB_GETHOSTNAME=0;
22011 GNULIB_GETLOGIN_R=0;
22012 GNULIB_GETPAGESIZE=0;
22013 GNULIB_GETUSERSHELL=0;
22014 GNULIB_GROUP_MEMBER=0;
22026 GNULIB_READLINKAT=0;
22028 GNULIB_SETHOSTNAME=0;
22031 GNULIB_SYMLINKAT=0;
22032 GNULIB_TTYNAME_R=0;
22033 GNULIB_UNISTD_H_NONBLOCKING=0;
22034 GNULIB_UNISTD_H_SIGPIPE=0;
22049 HAVE_GETDTABLESIZE=1;
22051 HAVE_GETHOSTNAME=1;
22053 HAVE_GETPAGESIZE=1;
22054 HAVE_GROUP_MEMBER=1;
22064 HAVE_SETHOSTNAME=1;
22070 HAVE_DECL_ENVIRON=1;
22071 HAVE_DECL_FCHDIR=1;
22072 HAVE_DECL_FDATASYNC=1;
22073 HAVE_DECL_GETDOMAINNAME=1;
22074 HAVE_DECL_GETLOGIN_R=1;
22075 HAVE_DECL_GETPAGESIZE=1;
22076 HAVE_DECL_GETUSERSHELL=1;
22077 HAVE_DECL_SETHOSTNAME=1;
22078 HAVE_DECL_TTYNAME_R=1;
22080 HAVE_SYS_PARAM_H=0;
22085 REPLACE_FCHOWNAT=0;
22086 REPLACE_FTRUNCATE=0;
22088 REPLACE_GETDOMAINNAME=0;
22089 REPLACE_GETLOGIN_R=0;
22090 REPLACE_GETGROUPS=0;
22091 REPLACE_GETPAGESIZE=0;
22100 REPLACE_READLINK=0;
22104 REPLACE_TTYNAME_R=0;
22106 REPLACE_UNLINKAT=0;
22109 UNISTD_H_HAVE_WINSOCK2_H=0;
22110 UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS=0;
22118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wint_t" >&5
22119 $as_echo_n "checking for wint_t... " >&6; }
22120 if ${gt_cv_c_wint_t+:} false; then :
22121 $as_echo_n "(cached) " >&6
22123 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22124 /* end confdefs.h. */
22126 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
22128 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be included
22129 before <wchar.h>. */
22130 #include <stddef.h>
22134 wint_t foo = (wchar_t)'\0';
22143 if ac_fn_c_try_compile "$LINENO"; then :
22148 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wint_t" >&5
22151 $as_echo "$gt_cv_c_wint_t" >&6; }
22152 if test $gt_cv_c_wint_t = yes; then
22154 $as_echo "#define HAVE_WINT_T 1" >>confdefs.h
22162 if test $ac_cv_header_features_h = yes; then
22170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
22171 $as_echo_n "checking for inttypes.h... " >&6; }
22172 if ${gl_cv_header_inttypes_h+:} false; then :
22173 $as_echo_n "(cached) " >&6
22175 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22176 /* end confdefs.h. */
22177 #include <sys/types.h>
22178 #include <inttypes.h>
22182 uintmax_t i = (uintmax_t) -1; return !i;
22187 if ac_fn_c_try_compile "$LINENO"; then :
22188 gl_cv_header_inttypes_h=yes
22190 gl_cv_header_inttypes_h=no
22192 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_inttypes_h" >&5
22195 $as_echo "$gl_cv_header_inttypes_h" >&6; }
22196 if test $gl_cv_header_inttypes_h = yes; then
22198 cat >>confdefs.h <<_ACEOF
22199 #define HAVE_INTTYPES_H_WITH_UINTMAX 1
22205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint.h" >&5
22206 $as_echo_n "checking for stdint.h... " >&6; }
22207 if ${gl_cv_header_stdint_h+:} false; then :
22208 $as_echo_n "(cached) " >&6
22210 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22211 /* end confdefs.h. */
22212 #include <sys/types.h>
22213 #include <stdint.h>
22217 uintmax_t i = (uintmax_t) -1; return !i;
22222 if ac_fn_c_try_compile "$LINENO"; then :
22223 gl_cv_header_stdint_h=yes
22225 gl_cv_header_stdint_h=no
22227 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_stdint_h" >&5
22230 $as_echo "$gl_cv_header_stdint_h" >&6; }
22231 if test $gl_cv_header_stdint_h = yes; then
22233 cat >>confdefs.h <<_ACEOF
22234 #define HAVE_STDINT_H_WITH_UINTMAX 1
22242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intmax_t" >&5
22243 $as_echo_n "checking for intmax_t... " >&6; }
22244 if ${gt_cv_c_intmax_t+:} false; then :
22245 $as_echo_n "(cached) " >&6
22247 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22248 /* end confdefs.h. */
22250 #include <stddef.h>
22251 #include <stdlib.h>
22252 #if HAVE_STDINT_H_WITH_UINTMAX
22253 #include <stdint.h>
22255 #if HAVE_INTTYPES_H_WITH_UINTMAX
22256 #include <inttypes.h>
22262 intmax_t x = -1; return !x;
22267 if ac_fn_c_try_compile "$LINENO"; then :
22268 gt_cv_c_intmax_t=yes
22270 gt_cv_c_intmax_t=no
22272 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_intmax_t" >&5
22275 $as_echo "$gt_cv_c_intmax_t" >&6; }
22276 if test $gt_cv_c_intmax_t = yes; then
22278 $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
22282 test $ac_cv_type_long_long_int = yes \
22283 && ac_type='long long' \
22286 cat >>confdefs.h <<_ACEOF
22287 #define intmax_t $ac_type
22293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the exponent in a 'double'" >&5
22294 $as_echo_n "checking where to find the exponent in a 'double'... " >&6; }
22295 if ${gl_cv_cc_double_expbit0+:} false; then :
22296 $as_echo_n "(cached) " >&6
22299 if test "$cross_compiling" = yes; then :
22301 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22302 /* end confdefs.h. */
22304 #if defined arm || defined __arm || defined __arm__
22309 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22310 $EGREP "mixed_endianness" >/dev/null 2>&1; then :
22311 gl_cv_cc_double_expbit0="unknown"
22315 if ${ac_cv_c_bigendian+:} false; then :
22316 $as_echo_n "(cached) " >&6
22318 ac_cv_c_bigendian=unknown
22319 # See if we're dealing with a universal compiler.
22320 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22321 /* end confdefs.h. */
22322 #ifndef __APPLE_CC__
22323 not a universal capable compiler
22328 if ac_fn_c_try_compile "$LINENO"; then :
22330 # Check for potential -arch flags. It is not universal unless
22331 # there are at least two -arch flags with different values.
22334 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
22335 if test -n "$ac_prev"; then
22337 i?86 | x86_64 | ppc | ppc64)
22338 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
22341 ac_cv_c_bigendian=universal
22347 elif test "x$ac_word" = "x-arch"; then
22352 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22353 if test $ac_cv_c_bigendian = unknown; then
22354 # See if sys/param.h defines the BYTE_ORDER macro.
22355 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22356 /* end confdefs.h. */
22357 #include <sys/types.h>
22358 #include <sys/param.h>
22363 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
22364 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
22366 bogus endian macros
22373 if ac_fn_c_try_compile "$LINENO"; then :
22374 # It does; now see whether it defined to BIG_ENDIAN or not.
22375 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22376 /* end confdefs.h. */
22377 #include <sys/types.h>
22378 #include <sys/param.h>
22383 #if BYTE_ORDER != BIG_ENDIAN
22391 if ac_fn_c_try_compile "$LINENO"; then :
22392 ac_cv_c_bigendian=yes
22394 ac_cv_c_bigendian=no
22396 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22398 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22400 if test $ac_cv_c_bigendian = unknown; then
22401 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
22402 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22403 /* end confdefs.h. */
22404 #include <limits.h>
22409 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
22410 bogus endian macros
22417 if ac_fn_c_try_compile "$LINENO"; then :
22418 # It does; now see whether it defined to _BIG_ENDIAN or not.
22419 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22420 /* end confdefs.h. */
22421 #include <limits.h>
22426 #ifndef _BIG_ENDIAN
22434 if ac_fn_c_try_compile "$LINENO"; then :
22435 ac_cv_c_bigendian=yes
22437 ac_cv_c_bigendian=no
22439 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22441 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22443 if test $ac_cv_c_bigendian = unknown; then
22444 # Compile a test program.
22445 if test "$cross_compiling" = yes; then :
22446 # Try to guess by grepping values from an object file.
22447 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22448 /* end confdefs.h. */
22449 short int ascii_mm[] =
22450 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
22451 short int ascii_ii[] =
22452 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
22453 int use_ascii (int i) {
22454 return ascii_mm[i] + ascii_ii[i];
22456 short int ebcdic_ii[] =
22457 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
22458 short int ebcdic_mm[] =
22459 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
22460 int use_ebcdic (int i) {
22461 return ebcdic_mm[i] + ebcdic_ii[i];
22468 return use_ascii (foo) == use_ebcdic (foo);
22473 if ac_fn_c_try_compile "$LINENO"; then :
22474 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
22475 ac_cv_c_bigendian=yes
22477 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
22478 if test "$ac_cv_c_bigendian" = unknown; then
22479 ac_cv_c_bigendian=no
22481 # finding both strings is unlikely to happen, but who knows?
22482 ac_cv_c_bigendian=unknown
22486 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22488 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22489 /* end confdefs.h. */
22490 $ac_includes_default
22495 /* Are we little or big endian? From Harbison&Steele. */
22499 char c[sizeof (long int)];
22502 return u.c[sizeof (long int) - 1] == 1;
22508 if ac_fn_c_try_run "$LINENO"; then :
22509 ac_cv_c_bigendian=no
22511 ac_cv_c_bigendian=yes
22513 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22514 conftest.$ac_objext conftest.beam conftest.$ac_ext
22520 case $ac_cv_c_bigendian in #(
22522 gl_cv_cc_double_expbit0="word 0 bit 20";; #(
22524 gl_cv_cc_double_expbit0="word 1 bit 20" ;; #(
22527 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
22531 gl_cv_cc_double_expbit0="unknown" ;;
22540 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22541 /* end confdefs.h. */
22544 #include <stddef.h>
22546 #include <string.h>
22548 ((sizeof (double) + sizeof (unsigned int) - 1) / sizeof (unsigned int))
22549 typedef union { double value; unsigned int word[NWORDS]; } memory_double;
22550 static unsigned int ored_words[NWORDS];
22551 static unsigned int anded_words[NWORDS];
22552 static void add_to_ored_words (double x)
22556 /* Clear it first, in case sizeof (double) < sizeof (memory_double). */
22557 memset (&m, 0, sizeof (memory_double));
22559 for (i = 0; i < NWORDS; i++)
22561 ored_words[i] |= m.word[i];
22562 anded_words[i] &= m.word[i];
22568 FILE *fp = fopen ("conftest.out", "w");
22571 for (j = 0; j < NWORDS; j++)
22572 anded_words[j] = ~ (unsigned int) 0;
22573 add_to_ored_words (0.25);
22574 add_to_ored_words (0.5);
22575 add_to_ored_words (1.0);
22576 add_to_ored_words (2.0);
22577 add_to_ored_words (4.0);
22578 /* Remove bits that are common (e.g. if representation of the first mantissa
22579 bit is explicit). */
22580 for (j = 0; j < NWORDS; j++)
22581 ored_words[j] &= ~anded_words[j];
22582 /* Now find the nonzero word. */
22583 for (j = 0; j < NWORDS; j++)
22584 if (ored_words[j] != 0)
22589 for (i = j + 1; i < NWORDS; i++)
22590 if (ored_words[i] != 0)
22592 fprintf (fp, "unknown");
22593 return (fclose (fp) != 0);
22596 if ((ored_words[j] >> i) & 1)
22598 fprintf (fp, "word %d bit %d", (int) j, (int) i);
22599 return (fclose (fp) != 0);
22602 fprintf (fp, "unknown");
22603 return (fclose (fp) != 0);
22607 if ac_fn_c_try_run "$LINENO"; then :
22608 gl_cv_cc_double_expbit0=`cat conftest.out`
22610 gl_cv_cc_double_expbit0="unknown"
22612 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22613 conftest.$ac_objext conftest.beam conftest.$ac_ext
22619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_double_expbit0" >&5
22620 $as_echo "$gl_cv_cc_double_expbit0" >&6; }
22621 case "$gl_cv_cc_double_expbit0" in
22623 word=`echo "$gl_cv_cc_double_expbit0" | sed -e 's/word //' -e 's/ bit.*//'`
22624 bit=`echo "$gl_cv_cc_double_expbit0" | sed -e 's/word.*bit //'`
22626 cat >>confdefs.h <<_ACEOF
22627 #define DBL_EXPBIT0_WORD $word
22631 cat >>confdefs.h <<_ACEOF
22632 #define DBL_EXPBIT0_BIT $bit
22646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether snprintf returns a byte count as in C99" >&5
22647 $as_echo_n "checking whether snprintf returns a byte count as in C99... " >&6; }
22648 if ${gl_cv_func_snprintf_retval_c99+:} false; then :
22649 $as_echo_n "(cached) " >&6
22652 if test "$cross_compiling" = yes; then :
22655 # Guess yes on glibc systems.
22656 *-gnu*) gl_cv_func_snprintf_retval_c99="guessing yes";;
22657 # Guess yes on FreeBSD >= 5.
22658 freebsd[1-4]*) gl_cv_func_snprintf_retval_c99="guessing no";;
22659 freebsd* | kfreebsd*) gl_cv_func_snprintf_retval_c99="guessing yes";;
22660 # Guess yes on MacOS X >= 10.3.
22661 darwin[1-6].*) gl_cv_func_snprintf_retval_c99="guessing no";;
22662 darwin*) gl_cv_func_snprintf_retval_c99="guessing yes";;
22663 # Guess yes on OpenBSD >= 3.9.
22664 openbsd[1-2].* | openbsd3.[0-8] | openbsd3.[0-8].*)
22665 gl_cv_func_snprintf_retval_c99="guessing no";;
22666 openbsd*) gl_cv_func_snprintf_retval_c99="guessing yes";;
22667 # Guess yes on Solaris >= 2.10.
22668 solaris2.[1-9][0-9]*) gl_cv_func_printf_sizes_c99="guessing yes";;
22669 solaris*) gl_cv_func_printf_sizes_c99="guessing no";;
22670 # Guess yes on AIX >= 4.
22671 aix[1-3]*) gl_cv_func_snprintf_retval_c99="guessing no";;
22672 aix*) gl_cv_func_snprintf_retval_c99="guessing yes";;
22673 # Guess yes on NetBSD >= 3.
22674 netbsd[1-2]* | netbsdelf[1-2]* | netbsdaout[1-2]* | netbsdcoff[1-2]*)
22675 gl_cv_func_snprintf_retval_c99="guessing no";;
22676 netbsd*) gl_cv_func_snprintf_retval_c99="guessing yes";;
22677 # Guess yes on BeOS.
22678 beos*) gl_cv_func_snprintf_retval_c99="guessing yes";;
22679 # If we don't know, assume the worst.
22680 *) gl_cv_func_snprintf_retval_c99="guessing no";;
22684 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22685 /* end confdefs.h. */
22688 #include <string.h>
22690 # define my_snprintf snprintf
22692 # include <stdarg.h>
22693 static int my_snprintf (char *buf, int size, const char *format, ...)
22697 va_start (args, format);
22698 ret = vsnprintf (buf, size, format, args);
22703 static char buf[100];
22706 strcpy (buf, "ABCDEF");
22707 if (my_snprintf (buf, 3, "%d %d", 4567, 89) != 7)
22709 if (my_snprintf (buf, 0, "%d %d", 4567, 89) != 7)
22711 if (my_snprintf (NULL, 0, "%d %d", 4567, 89) != 7)
22716 if ac_fn_c_try_run "$LINENO"; then :
22717 gl_cv_func_snprintf_retval_c99=yes
22719 gl_cv_func_snprintf_retval_c99=no
22721 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22722 conftest.$ac_objext conftest.beam conftest.$ac_ext
22727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_snprintf_retval_c99" >&5
22728 $as_echo "$gl_cv_func_snprintf_retval_c99" >&6; }
22736 for ac_func in snprintf strnlen wcslen wcsnlen mbrtowc wcrtomb
22738 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
22739 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
22740 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
22741 cat >>confdefs.h <<_ACEOF
22742 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
22748 ac_fn_c_check_decl "$LINENO" "_snprintf" "ac_cv_have_decl__snprintf" "#include <stdio.h>
22750 if test "x$ac_cv_have_decl__snprintf" = xyes; then :
22756 cat >>confdefs.h <<_ACEOF
22757 #define HAVE_DECL__SNPRINTF $ac_have_decl
22762 case "$gl_cv_func_snprintf_retval_c99" in
22765 $as_echo "#define HAVE_SNPRINTF_RETVAL_C99 1" >>confdefs.h
22771 XGETTEXT_EXTRA_OPTIONS=
22779 GNULIB_MBSRTOWCS=0;
22780 GNULIB_MBSNRTOWCS=0;
22782 GNULIB_WCSRTOMBS=0;
22783 GNULIB_WCSNRTOMBS=0;
22800 GNULIB_WCSCASECMP=0;
22801 GNULIB_WCSNCASECMP=0;
22838 HAVE_WCSNCASECMP=1;
22851 HAVE_DECL_WCWIDTH=1;
22852 REPLACE_MBSTATE_T=0;
22858 REPLACE_MBSRTOWCS=0;
22859 REPLACE_MBSNRTOWCS=0;
22861 REPLACE_WCSRTOMBS=0;
22862 REPLACE_WCSNRTOMBS=0;
22864 REPLACE_WCSWIDTH=0;
22867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <wchar.h> uses 'inline' correctly" >&5
22868 $as_echo_n "checking whether <wchar.h> uses 'inline' correctly... " >&6; }
22869 if ${gl_cv_header_wchar_h_correct_inline+:} false; then :
22870 $as_echo_n "(cached) " >&6
22872 gl_cv_header_wchar_h_correct_inline=yes
22873 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22874 /* end confdefs.h. */
22876 #define wcstod renamed_wcstod
22877 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
22879 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
22880 included before <wchar.h>. */
22881 #include <stddef.h>
22885 extern int zero (void);
22886 int main () { return zero(); }
22889 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
22890 (eval $ac_compile) 2>&5
22892 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22893 test $ac_status = 0; }; then
22894 mv conftest.$ac_objext conftest1.$ac_objext
22895 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22896 /* end confdefs.h. */
22898 #define wcstod renamed_wcstod
22899 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
22901 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
22902 included before <wchar.h>. */
22903 #include <stddef.h>
22907 int zero (void) { return 0; }
22910 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
22911 (eval $ac_compile) 2>&5
22913 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22914 test $ac_status = 0; }; then
22915 mv conftest.$ac_objext conftest2.$ac_objext
22916 if $CC -o conftest$ac_exeext $CFLAGS $LDFLAGS conftest1.$ac_objext conftest2.$ac_objext $LIBS >&5 2>&1; then
22919 gl_cv_header_wchar_h_correct_inline=no
22923 rm -f conftest1.$ac_objext conftest2.$ac_objext conftest$ac_exeext
22926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_wchar_h_correct_inline" >&5
22927 $as_echo "$gl_cv_header_wchar_h_correct_inline" >&6; }
22928 if test $gl_cv_header_wchar_h_correct_inline = no; then
22929 as_fn_error $? "<wchar.h> cannot be used with this compiler ($CC $CFLAGS $CPPFLAGS).
22930 This is a known interoperability problem of glibc <= 2.5 with gcc >= 4.3 in
22931 C99 mode. You have four options:
22932 - Add the flag -fgnu89-inline to CC and reconfigure, or
22933 - Fix your include files, using parts of
22934 <http://sourceware.org/git/?p=glibc.git;a=commitdiff;h=b037a293a48718af30d706c2e18c929d0e69a621>, or
22935 - Use a gcc version older than 4.3, or
22936 - Don't use the flags -std=c99 or -std=gnu99.
22937 Configuration aborted." "$LINENO" 5
22944 if test $ac_cv_func__set_invalid_parameter_handler = yes; then
22945 HAVE_MSVC_INVALID_PARAMETER_HANDLER=1
22947 $as_echo "#define HAVE_MSVC_INVALID_PARAMETER_HANDLER 1" >>confdefs.h
22950 HAVE_MSVC_INVALID_PARAMETER_HANDLER=0
22959 GNULIB_STRTOIMAX=0;
22960 GNULIB_STRTOUMAX=0;
22961 HAVE_DECL_IMAXABS=1;
22962 HAVE_DECL_IMAXDIV=1;
22963 HAVE_DECL_STRTOIMAX=1;
22964 HAVE_DECL_STRTOUMAX=1;
22965 REPLACE_STRTOIMAX=0;
22966 INT32_MAX_LT_INTMAX_MAX=1;
22967 INT64_MAX_EQ_LONG_MAX='defined _LP64';
22968 PRI_MACROS_BROKEN=0;
22969 PRIPTR_PREFIX=__PRIPTR_PREFIX;
22970 UINT32_MAX_LT_UINTMAX_MAX=1;
22971 UINT64_MAX_EQ_ULONG_MAX='defined _LP64';
22987 if test $gl_cv_have_include_next = yes; then
22988 gl_cv_next_inttypes_h='<'inttypes.h'>'
22990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <inttypes.h>" >&5
22991 $as_echo_n "checking absolute name of <inttypes.h>... " >&6; }
22992 if ${gl_cv_next_inttypes_h+:} false; then :
22993 $as_echo_n "(cached) " >&6
22996 if test $ac_cv_header_inttypes_h = yes; then
22999 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23000 /* end confdefs.h. */
23001 #include <inttypes.h>
23005 aix*) gl_absname_cpp="$ac_cpp -C" ;;
23006 *) gl_absname_cpp="$ac_cpp" ;;
23011 gl_dirsep_regex='[/\\]'
23014 gl_dirsep_regex='\/'
23017 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
23019 gl_header_literal_regex=`echo 'inttypes.h' \
23020 | sed -e "$gl_make_literal_regex_sed"`
23021 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
23022 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
23027 gl_cv_next_inttypes_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
23028 sed -n "$gl_absolute_header_sed"`'"'
23030 gl_cv_next_inttypes_h='<'inttypes.h'>'
23035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_inttypes_h" >&5
23036 $as_echo "$gl_cv_next_inttypes_h" >&6; }
23038 NEXT_INTTYPES_H=$gl_cv_next_inttypes_h
23040 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
23041 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
23042 gl_next_as_first_directive='<'inttypes.h'>'
23044 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
23045 gl_next_as_first_directive=$gl_cv_next_inttypes_h
23047 NEXT_AS_FIRST_DIRECTIVE_INTTYPES_H=$gl_next_as_first_directive
23056 for gl_func in imaxabs imaxdiv strtoimax strtoumax; do
23057 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
23058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
23059 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
23060 if eval \${$as_gl_Symbol+:} false; then :
23061 $as_echo_n "(cached) " >&6
23063 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23064 /* end confdefs.h. */
23065 #include <inttypes.h>
23076 if ac_fn_c_try_compile "$LINENO"; then :
23077 eval "$as_gl_Symbol=yes"
23079 eval "$as_gl_Symbol=no"
23081 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23083 eval ac_res=\$$as_gl_Symbol
23084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
23085 $as_echo "$ac_res" >&6; }
23086 if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
23087 cat >>confdefs.h <<_ACEOF
23088 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
23091 eval ac_cv_have_decl_$gl_func=yes
23097 for ac_header in inttypes.h
23099 ac_fn_c_check_header_mongrel "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default"
23100 if test "x$ac_cv_header_inttypes_h" = xyes; then :
23101 cat >>confdefs.h <<_ACEOF
23102 #define HAVE_INTTYPES_H 1
23109 if test $ac_cv_header_inttypes_h = yes; then
23110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the inttypes.h PRIxNN macros are broken" >&5
23111 $as_echo_n "checking whether the inttypes.h PRIxNN macros are broken... " >&6; }
23112 if ${gt_cv_inttypes_pri_broken+:} false; then :
23113 $as_echo_n "(cached) " >&6
23116 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23117 /* end confdefs.h. */
23118 #include <inttypes.h>
23131 if ac_fn_c_try_compile "$LINENO"; then :
23132 gt_cv_inttypes_pri_broken=no
23134 gt_cv_inttypes_pri_broken=yes
23136 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_inttypes_pri_broken" >&5
23140 $as_echo "$gt_cv_inttypes_pri_broken" >&6; }
23142 if test "$gt_cv_inttypes_pri_broken" = yes; then
23144 cat >>confdefs.h <<_ACEOF
23145 #define PRI_MACROS_BROKEN 1
23148 PRI_MACROS_BROKEN=1
23150 PRI_MACROS_BROKEN=0
23154 ac_fn_c_check_decl "$LINENO" "alarm" "ac_cv_have_decl_alarm" "$ac_includes_default"
23155 if test "x$ac_cv_have_decl_alarm" = xyes; then :
23161 cat >>confdefs.h <<_ACEOF
23162 #define HAVE_DECL_ALARM $ac_have_decl
23167 GL_COND_LIBTOOL_TRUE=
23168 GL_COND_LIBTOOL_FALSE='#'
23170 GL_COND_LIBTOOL_TRUE='#'
23171 GL_COND_LIBTOOL_FALSE=
23174 gl_cond_libtool=true
23185 gl_source_base='gl'
23188 if test $ac_cv_func_alloca_works = no; then
23192 # Define an additional variable used in the Makefile substitution.
23193 if test $ac_cv_working_alloca_h = yes; then
23194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca as a compiler built-in" >&5
23195 $as_echo_n "checking for alloca as a compiler built-in... " >&6; }
23196 if ${gl_cv_rpl_alloca+:} false; then :
23197 $as_echo_n "(cached) " >&6
23200 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23201 /* end confdefs.h. */
23203 #if defined __GNUC__ || defined _AIX || defined _MSC_VER
23208 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23209 $EGREP "Need own alloca" >/dev/null 2>&1; then :
23210 gl_cv_rpl_alloca=yes
23212 gl_cv_rpl_alloca=no
23218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_rpl_alloca" >&5
23219 $as_echo "$gl_cv_rpl_alloca" >&6; }
23220 if test $gl_cv_rpl_alloca = yes; then
23222 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
23232 if test -n "$ALLOCA_H"; then
23233 GL_GENERATE_ALLOCA_H_TRUE=
23234 GL_GENERATE_ALLOCA_H_FALSE='#'
23236 GL_GENERATE_ALLOCA_H_TRUE='#'
23237 GL_GENERATE_ALLOCA_H_FALSE=
23249 # Check whether --with-libgcrypt was given.
23250 if test "${with_libgcrypt+set}" = set; then :
23251 withval=$with_libgcrypt; libgcrypt=$withval
23256 if test "$libgcrypt" != no; then
23272 acl_save_prefix="$prefix"
23273 prefix="$acl_final_prefix"
23274 acl_save_exec_prefix="$exec_prefix"
23275 exec_prefix="$acl_final_exec_prefix"
23277 eval additional_includedir=\"$includedir\"
23278 eval additional_libdir=\"$libdir\"
23280 exec_prefix="$acl_save_exec_prefix"
23281 prefix="$acl_save_prefix"
23284 # Check whether --with-libgcrypt-prefix was given.
23285 if test "${with_libgcrypt_prefix+set}" = set; then :
23286 withval=$with_libgcrypt_prefix;
23287 if test "X$withval" = "Xno"; then
23290 if test "X$withval" = "X"; then
23292 acl_save_prefix="$prefix"
23293 prefix="$acl_final_prefix"
23294 acl_save_exec_prefix="$exec_prefix"
23295 exec_prefix="$acl_final_exec_prefix"
23297 eval additional_includedir=\"$includedir\"
23298 eval additional_libdir=\"$libdir\"
23300 exec_prefix="$acl_save_exec_prefix"
23301 prefix="$acl_save_prefix"
23304 additional_includedir="$withval/include"
23305 additional_libdir="$withval/$acl_libdirstem"
23306 if test "$acl_libdirstem2" != "$acl_libdirstem" \
23307 && ! test -d "$withval/$acl_libdirstem"; then
23308 additional_libdir="$withval/$acl_libdirstem2"
23322 names_already_handled=
23323 names_next_round='gcrypt gpg-error'
23324 while test -n "$names_next_round"; do
23325 names_this_round="$names_next_round"
23327 for name in $names_this_round; do
23329 for n in $names_already_handled; do
23330 if test "$n" = "$name"; then
23331 already_handled=yes
23335 if test -z "$already_handled"; then
23336 names_already_handled="$names_already_handled $name"
23337 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
23338 eval value=\"\$HAVE_LIB$uppername\"
23339 if test -n "$value"; then
23340 if test "$value" = yes; then
23341 eval value=\"\$LIB$uppername\"
23342 test -z "$value" || LIBGCRYPT="${LIBGCRYPT}${LIBGCRYPT:+ }$value"
23343 eval value=\"\$LTLIB$uppername\"
23344 test -z "$value" || LTLIBGCRYPT="${LTLIBGCRYPT}${LTLIBGCRYPT:+ }$value"
23353 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
23354 if test -n "$acl_shlibext"; then
23355 shrext=".$acl_shlibext" # typically: shrext=.so
23359 if test $use_additional = yes; then
23360 dir="$additional_libdir"
23361 if test -n "$acl_shlibext"; then
23362 if test -f "$dir/$libname$shrext"; then
23364 found_so="$dir/$libname$shrext"
23366 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
23367 ver=`(cd "$dir" && \
23368 for f in "$libname$shrext".*; do echo "$f"; done \
23369 | sed -e "s,^$libname$shrext\\\\.,," \
23370 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
23371 | sed 1q ) 2>/dev/null`
23372 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
23374 found_so="$dir/$libname$shrext.$ver"
23377 eval library_names=\"$acl_library_names_spec\"
23378 for f in $library_names; do
23379 if test -f "$dir/$f"; then
23388 if test "X$found_dir" = "X"; then
23389 if test -f "$dir/$libname.$acl_libext"; then
23391 found_a="$dir/$libname.$acl_libext"
23394 if test "X$found_dir" != "X"; then
23395 if test -f "$dir/$libname.la"; then
23396 found_la="$dir/$libname.la"
23400 if test "X$found_dir" = "X"; then
23401 for x in $LDFLAGS $LTLIBGCRYPT; do
23403 acl_save_prefix="$prefix"
23404 prefix="$acl_final_prefix"
23405 acl_save_exec_prefix="$exec_prefix"
23406 exec_prefix="$acl_final_exec_prefix"
23408 exec_prefix="$acl_save_exec_prefix"
23409 prefix="$acl_save_prefix"
23413 dir=`echo "X$x" | sed -e 's/^X-L//'`
23414 if test -n "$acl_shlibext"; then
23415 if test -f "$dir/$libname$shrext"; then
23417 found_so="$dir/$libname$shrext"
23419 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
23420 ver=`(cd "$dir" && \
23421 for f in "$libname$shrext".*; do echo "$f"; done \
23422 | sed -e "s,^$libname$shrext\\\\.,," \
23423 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
23424 | sed 1q ) 2>/dev/null`
23425 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
23427 found_so="$dir/$libname$shrext.$ver"
23430 eval library_names=\"$acl_library_names_spec\"
23431 for f in $library_names; do
23432 if test -f "$dir/$f"; then
23441 if test "X$found_dir" = "X"; then
23442 if test -f "$dir/$libname.$acl_libext"; then
23444 found_a="$dir/$libname.$acl_libext"
23447 if test "X$found_dir" != "X"; then
23448 if test -f "$dir/$libname.la"; then
23449 found_la="$dir/$libname.la"
23454 if test "X$found_dir" != "X"; then
23459 if test "X$found_dir" != "X"; then
23460 LTLIBGCRYPT="${LTLIBGCRYPT}${LTLIBGCRYPT:+ }-L$found_dir -l$name"
23461 if test "X$found_so" != "X"; then
23462 if test "$enable_rpath" = no \
23463 || test "X$found_dir" = "X/usr/$acl_libdirstem" \
23464 || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
23465 LIBGCRYPT="${LIBGCRYPT}${LIBGCRYPT:+ }$found_so"
23468 for x in $ltrpathdirs; do
23469 if test "X$x" = "X$found_dir"; then
23474 if test -z "$haveit"; then
23475 ltrpathdirs="$ltrpathdirs $found_dir"
23477 if test "$acl_hardcode_direct" = yes; then
23478 LIBGCRYPT="${LIBGCRYPT}${LIBGCRYPT:+ }$found_so"
23480 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
23481 LIBGCRYPT="${LIBGCRYPT}${LIBGCRYPT:+ }$found_so"
23483 for x in $rpathdirs; do
23484 if test "X$x" = "X$found_dir"; then
23489 if test -z "$haveit"; then
23490 rpathdirs="$rpathdirs $found_dir"
23494 for x in $LDFLAGS $LIBGCRYPT; do
23496 acl_save_prefix="$prefix"
23497 prefix="$acl_final_prefix"
23498 acl_save_exec_prefix="$exec_prefix"
23499 exec_prefix="$acl_final_exec_prefix"
23501 exec_prefix="$acl_save_exec_prefix"
23502 prefix="$acl_save_prefix"
23504 if test "X$x" = "X-L$found_dir"; then
23509 if test -z "$haveit"; then
23510 LIBGCRYPT="${LIBGCRYPT}${LIBGCRYPT:+ }-L$found_dir"
23512 if test "$acl_hardcode_minus_L" != no; then
23513 LIBGCRYPT="${LIBGCRYPT}${LIBGCRYPT:+ }$found_so"
23515 LIBGCRYPT="${LIBGCRYPT}${LIBGCRYPT:+ }-l$name"
23521 if test "X$found_a" != "X"; then
23522 LIBGCRYPT="${LIBGCRYPT}${LIBGCRYPT:+ }$found_a"
23524 LIBGCRYPT="${LIBGCRYPT}${LIBGCRYPT:+ }-L$found_dir -l$name"
23527 additional_includedir=
23528 case "$found_dir" in
23529 */$acl_libdirstem | */$acl_libdirstem/)
23530 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
23531 if test "$name" = 'gcrypt'; then
23532 LIBGCRYPT_PREFIX="$basedir"
23534 additional_includedir="$basedir/include"
23536 */$acl_libdirstem2 | */$acl_libdirstem2/)
23537 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
23538 if test "$name" = 'gcrypt'; then
23539 LIBGCRYPT_PREFIX="$basedir"
23541 additional_includedir="$basedir/include"
23544 if test "X$additional_includedir" != "X"; then
23545 if test "X$additional_includedir" != "X/usr/include"; then
23547 if test "X$additional_includedir" = "X/usr/local/include"; then
23548 if test -n "$GCC"; then
23550 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
23554 if test -z "$haveit"; then
23555 for x in $CPPFLAGS $INCGCRYPT; do
23557 acl_save_prefix="$prefix"
23558 prefix="$acl_final_prefix"
23559 acl_save_exec_prefix="$exec_prefix"
23560 exec_prefix="$acl_final_exec_prefix"
23562 exec_prefix="$acl_save_exec_prefix"
23563 prefix="$acl_save_prefix"
23565 if test "X$x" = "X-I$additional_includedir"; then
23570 if test -z "$haveit"; then
23571 if test -d "$additional_includedir"; then
23572 INCGCRYPT="${INCGCRYPT}${INCGCRYPT:+ }-I$additional_includedir"
23578 if test -n "$found_la"; then
23579 save_libdir="$libdir"
23580 case "$found_la" in
23581 */* | *\\*) . "$found_la" ;;
23582 *) . "./$found_la" ;;
23584 libdir="$save_libdir"
23585 for dep in $dependency_libs; do
23588 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
23589 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
23590 && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
23592 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
23593 || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
23594 if test -n "$GCC"; then
23596 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
23600 if test -z "$haveit"; then
23602 for x in $LDFLAGS $LIBGCRYPT; do
23604 acl_save_prefix="$prefix"
23605 prefix="$acl_final_prefix"
23606 acl_save_exec_prefix="$exec_prefix"
23607 exec_prefix="$acl_final_exec_prefix"
23609 exec_prefix="$acl_save_exec_prefix"
23610 prefix="$acl_save_prefix"
23612 if test "X$x" = "X-L$additional_libdir"; then
23617 if test -z "$haveit"; then
23618 if test -d "$additional_libdir"; then
23619 LIBGCRYPT="${LIBGCRYPT}${LIBGCRYPT:+ }-L$additional_libdir"
23623 for x in $LDFLAGS $LTLIBGCRYPT; do
23625 acl_save_prefix="$prefix"
23626 prefix="$acl_final_prefix"
23627 acl_save_exec_prefix="$exec_prefix"
23628 exec_prefix="$acl_final_exec_prefix"
23630 exec_prefix="$acl_save_exec_prefix"
23631 prefix="$acl_save_prefix"
23633 if test "X$x" = "X-L$additional_libdir"; then
23638 if test -z "$haveit"; then
23639 if test -d "$additional_libdir"; then
23640 LTLIBGCRYPT="${LTLIBGCRYPT}${LTLIBGCRYPT:+ }-L$additional_libdir"
23647 dir=`echo "X$dep" | sed -e 's/^X-R//'`
23648 if test "$enable_rpath" != no; then
23650 for x in $rpathdirs; do
23651 if test "X$x" = "X$dir"; then
23656 if test -z "$haveit"; then
23657 rpathdirs="$rpathdirs $dir"
23660 for x in $ltrpathdirs; do
23661 if test "X$x" = "X$dir"; then
23666 if test -z "$haveit"; then
23667 ltrpathdirs="$ltrpathdirs $dir"
23672 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
23675 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
23678 LIBGCRYPT="${LIBGCRYPT}${LIBGCRYPT:+ }$dep"
23679 LTLIBGCRYPT="${LTLIBGCRYPT}${LTLIBGCRYPT:+ }$dep"
23685 LIBGCRYPT="${LIBGCRYPT}${LIBGCRYPT:+ }-l$name"
23686 LTLIBGCRYPT="${LTLIBGCRYPT}${LTLIBGCRYPT:+ }-l$name"
23692 if test "X$rpathdirs" != "X"; then
23693 if test -n "$acl_hardcode_libdir_separator"; then
23695 for found_dir in $rpathdirs; do
23696 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
23698 acl_save_libdir="$libdir"
23700 eval flag=\"$acl_hardcode_libdir_flag_spec\"
23701 libdir="$acl_save_libdir"
23702 LIBGCRYPT="${LIBGCRYPT}${LIBGCRYPT:+ }$flag"
23704 for found_dir in $rpathdirs; do
23705 acl_save_libdir="$libdir"
23706 libdir="$found_dir"
23707 eval flag=\"$acl_hardcode_libdir_flag_spec\"
23708 libdir="$acl_save_libdir"
23709 LIBGCRYPT="${LIBGCRYPT}${LIBGCRYPT:+ }$flag"
23713 if test "X$ltrpathdirs" != "X"; then
23714 for found_dir in $ltrpathdirs; do
23715 LTLIBGCRYPT="${LTLIBGCRYPT}${LTLIBGCRYPT:+ }-R$found_dir"
23725 ac_save_CPPFLAGS="$CPPFLAGS"
23727 for element in $INCGCRYPT; do
23729 for x in $CPPFLAGS; do
23731 acl_save_prefix="$prefix"
23732 prefix="$acl_final_prefix"
23733 acl_save_exec_prefix="$exec_prefix"
23734 exec_prefix="$acl_final_exec_prefix"
23736 exec_prefix="$acl_save_exec_prefix"
23737 prefix="$acl_save_prefix"
23739 if test "X$x" = "X$element"; then
23744 if test -z "$haveit"; then
23745 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
23750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libgcrypt" >&5
23751 $as_echo_n "checking for libgcrypt... " >&6; }
23752 if ${ac_cv_libgcrypt+:} false; then :
23753 $as_echo_n "(cached) " >&6
23756 ac_save_LIBS="$LIBS"
23757 case " $LIBGCRYPT" in
23758 *" -l"*) LIBS="$LIBS $LIBGCRYPT" ;;
23759 *) LIBS="$LIBGCRYPT $LIBS" ;;
23761 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23762 /* end confdefs.h. */
23764 #include <gcrypt.h>
23765 /* GCRY_MODULE_ID_USER was added in 1.4.4 and gc-libgcrypt.c
23766 will fail on startup if we don't have 1.4.4 or later, so
23767 test for it early. */
23768 #if !defined GCRY_MODULE_ID_USER
23769 error too old libgcrypt
23780 if ac_fn_c_try_link "$LINENO"; then :
23781 ac_cv_libgcrypt=yes
23783 ac_cv_libgcrypt='no'
23785 rm -f core conftest.err conftest.$ac_objext \
23786 conftest$ac_exeext conftest.$ac_ext
23787 LIBS="$ac_save_LIBS"
23790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libgcrypt" >&5
23791 $as_echo "$ac_cv_libgcrypt" >&6; }
23792 if test "$ac_cv_libgcrypt" = yes; then
23795 $as_echo "#define HAVE_LIBGCRYPT 1" >>confdefs.h
23797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libgcrypt" >&5
23798 $as_echo_n "checking how to link with libgcrypt... " >&6; }
23799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBGCRYPT" >&5
23800 $as_echo "$LIBGCRYPT" >&6; }
23803 CPPFLAGS="$ac_save_CPPFLAGS"
23817 if test "$ac_cv_libgcrypt" = yes; then
23826 gl_LIBOBJS="$gl_LIBOBJS gc-libgcrypt.$ac_objext"
23837 gl_LIBOBJS="$gl_LIBOBJS gc-gnulib.$ac_objext"
23840 if test $gl_cond_libtool = false; then
23841 gl_ltlibdeps="$gl_ltlibdeps $LTLIBGCRYPT"
23842 gl_libdeps="$gl_libdeps $LIBGCRYPT"
23846 if test "$ac_cv_libgcrypt" != yes; then
23859 cat >>confdefs.h <<_ACEOF
23860 #define GNULIB_GC_HMAC_MD5 1
23866 if test "$ac_cv_libgcrypt" != yes; then
23879 cat >>confdefs.h <<_ACEOF
23880 #define GNULIB_GC_HMAC_SHA1 1
23886 if test "$ac_cv_libgcrypt" != yes; then
23896 cat >>confdefs.h <<_ACEOF
23897 #define GNULIB_GC_MD5 1
23902 # Devices with randomness.
23903 # FIXME: Are these the best defaults?
23907 *openbsd* | *mirbsd*)
23908 NAME_OF_RANDOM_DEVICE="/dev/srandom"
23909 NAME_OF_PSEUDO_RANDOM_DEVICE="/dev/prandom"
23910 NAME_OF_NONCE_DEVICE="/dev/urandom"
23914 NAME_OF_RANDOM_DEVICE="/dev/srandom"
23915 NAME_OF_PSEUDO_RANDOM_DEVICE="/dev/urandom"
23916 NAME_OF_NONCE_DEVICE="/dev/urandom"
23919 *solaris* | *irix* | *dec-osf* )
23920 NAME_OF_RANDOM_DEVICE="/dev/random"
23921 NAME_OF_PSEUDO_RANDOM_DEVICE="/dev/random"
23922 NAME_OF_NONCE_DEVICE="/dev/random"
23926 NAME_OF_RANDOM_DEVICE="/dev/random"
23927 NAME_OF_PSEUDO_RANDOM_DEVICE="/dev/urandom"
23928 NAME_OF_NONCE_DEVICE="/dev/urandom"
23932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking device with (strong) random data..." >&5
23933 $as_echo_n "checking device with (strong) random data...... " >&6; }
23934 # Check whether --enable-random-device was given.
23935 if test "${enable_random_device+set}" = set; then :
23936 enableval=$enable_random_device; NAME_OF_RANDOM_DEVICE=$enableval
23939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NAME_OF_RANDOM_DEVICE" >&5
23940 $as_echo "$NAME_OF_RANDOM_DEVICE" >&6; }
23942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking device with pseudo random data..." >&5
23943 $as_echo_n "checking device with pseudo random data...... " >&6; }
23944 # Check whether --enable-pseudo-random-device was given.
23945 if test "${enable_pseudo_random_device+set}" = set; then :
23946 enableval=$enable_pseudo_random_device; NAME_OF_PSEUDO_RANDOM_DEVICE=$enableval
23949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NAME_OF_PSEUDO_RANDOM_DEVICE" >&5
23950 $as_echo "$NAME_OF_PSEUDO_RANDOM_DEVICE" >&6; }
23952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking device with unpredictable data for nonces..." >&5
23953 $as_echo_n "checking device with unpredictable data for nonces...... " >&6; }
23954 # Check whether --enable-nonce-device was given.
23955 if test "${enable_nonce_device+set}" = set; then :
23956 enableval=$enable_nonce_device; NAME_OF_NONCE_DEVICE=$enableval
23959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NAME_OF_NONCE_DEVICE" >&5
23960 $as_echo "$NAME_OF_NONCE_DEVICE" >&6; }
23962 if test "$cross_compiling" != yes; then
23963 if test "$NAME_OF_RANDOM_DEVICE" != "no"; then
23964 as_ac_File=`$as_echo "ac_cv_file_$NAME_OF_RANDOM_DEVICE" | $as_tr_sh`
23965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $NAME_OF_RANDOM_DEVICE" >&5
23966 $as_echo_n "checking for $NAME_OF_RANDOM_DEVICE... " >&6; }
23967 if eval \${$as_ac_File+:} false; then :
23968 $as_echo_n "(cached) " >&6
23970 test "$cross_compiling" = yes &&
23971 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
23972 if test -r "$NAME_OF_RANDOM_DEVICE"; then
23973 eval "$as_ac_File=yes"
23975 eval "$as_ac_File=no"
23978 eval ac_res=\$$as_ac_File
23979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
23980 $as_echo "$ac_res" >&6; }
23981 if eval test \"x\$"$as_ac_File"\" = x"yes"; then :
23984 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Device '$NAME_OF_RANDOM_DEVICE' does not exist, consider to use --enable-random-device" >&5
23985 $as_echo "$as_me: WARNING: Device '$NAME_OF_RANDOM_DEVICE' does not exist, consider to use --enable-random-device" >&2;}
23989 if test "$NAME_OF_PSEUDO_RANDOM_DEVICE" != "no"; then
23990 as_ac_File=`$as_echo "ac_cv_file_$NAME_OF_PSEUDO_RANDOM_DEVICE" | $as_tr_sh`
23991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $NAME_OF_PSEUDO_RANDOM_DEVICE" >&5
23992 $as_echo_n "checking for $NAME_OF_PSEUDO_RANDOM_DEVICE... " >&6; }
23993 if eval \${$as_ac_File+:} false; then :
23994 $as_echo_n "(cached) " >&6
23996 test "$cross_compiling" = yes &&
23997 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
23998 if test -r "$NAME_OF_PSEUDO_RANDOM_DEVICE"; then
23999 eval "$as_ac_File=yes"
24001 eval "$as_ac_File=no"
24004 eval ac_res=\$$as_ac_File
24005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
24006 $as_echo "$ac_res" >&6; }
24007 if eval test \"x\$"$as_ac_File"\" = x"yes"; then :
24010 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Device '$NAME_OF_PSEUDO_RANDOM_DEVICE' does not exist, consider to use --enable-pseudo-random-device" >&5
24011 $as_echo "$as_me: WARNING: Device '$NAME_OF_PSEUDO_RANDOM_DEVICE' does not exist, consider to use --enable-pseudo-random-device" >&2;}
24015 if test "$NAME_OF_NONCE_DEVICE" != "no"; then
24016 as_ac_File=`$as_echo "ac_cv_file_$NAME_OF_NONCE_DEVICE" | $as_tr_sh`
24017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $NAME_OF_NONCE_DEVICE" >&5
24018 $as_echo_n "checking for $NAME_OF_NONCE_DEVICE... " >&6; }
24019 if eval \${$as_ac_File+:} false; then :
24020 $as_echo_n "(cached) " >&6
24022 test "$cross_compiling" = yes &&
24023 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
24024 if test -r "$NAME_OF_NONCE_DEVICE"; then
24025 eval "$as_ac_File=yes"
24027 eval "$as_ac_File=no"
24030 eval ac_res=\$$as_ac_File
24031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
24032 $as_echo "$ac_res" >&6; }
24033 if eval test \"x\$"$as_ac_File"\" = x"yes"; then :
24036 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Device '$NAME_OF_NONCE_DEVICE' does not exist, consider to use --enable-nonce-device" >&5
24037 $as_echo "$as_me: WARNING: Device '$NAME_OF_NONCE_DEVICE' does not exist, consider to use --enable-nonce-device" >&2;}
24042 { $as_echo "$as_me:${as_lineno-$LINENO}: Cross compiling, assuming random devices exists on the target host..." >&5
24043 $as_echo "$as_me: Cross compiling, assuming random devices exists on the target host..." >&6;}
24046 # FIXME?: Open+read 42 bytes+close twice and compare data. Should differ.
24049 cat >>confdefs.h <<_ACEOF
24050 #define NAME_OF_RANDOM_DEVICE "$NAME_OF_RANDOM_DEVICE"
24054 cat >>confdefs.h <<_ACEOF
24055 #define NAME_OF_PSEUDO_RANDOM_DEVICE "$NAME_OF_PSEUDO_RANDOM_DEVICE"
24059 cat >>confdefs.h <<_ACEOF
24060 #define NAME_OF_NONCE_DEVICE "$NAME_OF_NONCE_DEVICE"
24066 cat >>confdefs.h <<_ACEOF
24067 #define GNULIB_GC_RANDOM 1
24076 cat >>confdefs.h <<_ACEOF
24077 #define GNULIB_GC_SHA1 1
24096 REPLACE_FLOAT_LDBL=0
24098 aix* | beos* | openbsd* | mirbsd* | irix*)
24102 case "$host_cpu" in
24107 # On x86_64 systems, the C compiler may still be generating
24109 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24110 /* end confdefs.h. */
24111 #if defined __LP64__ || defined __x86_64__ || defined __amd64__
24115 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24116 $EGREP "yes" >/dev/null 2>&1; then :
24127 case "$host_cpu" in
24135 aix* | freebsd* | linux*)
24136 if test -n "$FLOAT_H"; then
24137 REPLACE_FLOAT_LDBL=1
24143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether conversion from 'int' to 'long double' works" >&5
24144 $as_echo_n "checking whether conversion from 'int' to 'long double' works... " >&6; }
24145 if ${gl_cv_func_itold_works+:} false; then :
24146 $as_echo_n "(cached) " >&6
24149 if test "$cross_compiling" = yes; then :
24152 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24153 /* end confdefs.h. */
24154 #if defined __LP64__ || defined __arch64__
24158 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24159 $EGREP "yes" >/dev/null 2>&1; then :
24160 gl_cv_func_itold_works="guessing no"
24162 gl_cv_func_itold_works="guessing yes"
24167 *) gl_cv_func_itold_works="guessing yes" ;;
24171 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24172 /* end confdefs.h. */
24175 volatile long double ld;
24184 if ac_fn_c_try_run "$LINENO"; then :
24185 gl_cv_func_itold_works=yes
24187 gl_cv_func_itold_works=no
24189 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24190 conftest.$ac_objext conftest.beam conftest.$ac_ext
24195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_itold_works" >&5
24196 $as_echo "$gl_cv_func_itold_works" >&6; }
24197 case "$gl_cv_func_itold_works" in
24204 if test -n "$FLOAT_H"; then
24213 if test $gl_cv_have_include_next = yes; then
24214 gl_cv_next_float_h='<'float.h'>'
24216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <float.h>" >&5
24217 $as_echo_n "checking absolute name of <float.h>... " >&6; }
24218 if ${gl_cv_next_float_h+:} false; then :
24219 $as_echo_n "(cached) " >&6
24222 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24223 /* end confdefs.h. */
24228 aix*) gl_absname_cpp="$ac_cpp -C" ;;
24229 *) gl_absname_cpp="$ac_cpp" ;;
24234 gl_dirsep_regex='[/\\]'
24237 gl_dirsep_regex='\/'
24240 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
24242 gl_header_literal_regex=`echo 'float.h' \
24243 | sed -e "$gl_make_literal_regex_sed"`
24244 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
24245 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
24250 gl_cv_next_float_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
24251 sed -n "$gl_absolute_header_sed"`'"'
24255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_float_h" >&5
24256 $as_echo "$gl_cv_next_float_h" >&6; }
24258 NEXT_FLOAT_H=$gl_cv_next_float_h
24260 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
24261 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
24262 gl_next_as_first_directive='<'float.h'>'
24264 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
24265 gl_next_as_first_directive=$gl_cv_next_float_h
24267 NEXT_AS_FIRST_DIRECTIVE_FLOAT_H=$gl_next_as_first_directive
24274 if test -n "$FLOAT_H"; then
24275 GL_GENERATE_FLOAT_H_TRUE=
24276 GL_GENERATE_FLOAT_H_FALSE='#'
24278 GL_GENERATE_FLOAT_H_TRUE='#'
24279 GL_GENERATE_FLOAT_H_FALSE=
24284 if test $REPLACE_FLOAT_LDBL = 1; then
24293 gl_LIBOBJS="$gl_LIBOBJS float.$ac_objext"
24296 if test $REPLACE_ITOLD = 1; then
24305 gl_LIBOBJS="$gl_LIBOBJS itold.$ac_objext"
24316 if test $ac_cv_func_getdelim = yes; then
24318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working getdelim function" >&5
24319 $as_echo_n "checking for working getdelim function... " >&6; }
24320 if ${gl_cv_func_working_getdelim+:} false; then :
24321 $as_echo_n "(cached) " >&6
24323 echo fooNbarN | tr -d '\012' | tr N '\012' > conftest.data
24324 if test "$cross_compiling" = yes; then :
24325 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24326 /* end confdefs.h. */
24328 #include <features.h>
24329 #ifdef __GNU_LIBRARY__
24330 #if (__GLIBC__ >= 2) && !defined __UCLIBC__
24336 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24337 $EGREP "Lucky GNU user" >/dev/null 2>&1; then :
24338 gl_cv_func_working_getdelim="guessing yes"
24340 gl_cv_func_working_getdelim="guessing no"
24346 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24347 /* end confdefs.h. */
24349 # include <stdio.h>
24350 # include <stdlib.h>
24351 # include <string.h>
24354 FILE *in = fopen ("./conftest.data", "r");
24358 /* Test result for a NULL buffer and a zero size.
24359 Based on a test program from Karl Heuer. */
24362 int len = getdelim (&line, &siz, '\n', in);
24363 if (!(len == 4 && line && strcmp (line, "foo\n") == 0))
24367 /* Test result for a NULL buffer and a non-zero size.
24368 This crashes on FreeBSD 8.0. */
24370 size_t siz = (size_t)(~0) / 4;
24371 if (getdelim (&line, &siz, '\n', in) == -1)
24378 if ac_fn_c_try_run "$LINENO"; then :
24379 gl_cv_func_working_getdelim=yes
24381 gl_cv_func_working_getdelim=no
24383 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24384 conftest.$ac_objext conftest.beam conftest.$ac_ext
24388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_working_getdelim" >&5
24389 $as_echo "$gl_cv_func_working_getdelim" >&6; }
24390 case "$gl_cv_func_working_getdelim" in
24399 if test $ac_cv_have_decl_getdelim = no; then
24400 HAVE_DECL_GETDELIM=0
24403 if test $HAVE_GETDELIM = 0 || test $REPLACE_GETDELIM = 1; then
24412 gl_LIBOBJS="$gl_LIBOBJS getdelim.$ac_objext"
24415 for ac_func in flockfile funlockfile
24417 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
24418 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
24419 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
24420 cat >>confdefs.h <<_ACEOF
24421 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
24427 ac_fn_c_check_decl "$LINENO" "getc_unlocked" "ac_cv_have_decl_getc_unlocked" "$ac_includes_default"
24428 if test "x$ac_cv_have_decl_getc_unlocked" = xyes; then :
24434 cat >>confdefs.h <<_ACEOF
24435 #define HAVE_DECL_GETC_UNLOCKED $ac_have_decl
24451 $as_echo "#define GNULIB_TEST_GETDELIM 1" >>confdefs.h
24462 gl_getline_needs_run_time_check=no
24463 ac_fn_c_check_func "$LINENO" "getline" "ac_cv_func_getline"
24464 if test "x$ac_cv_func_getline" = xyes; then :
24465 gl_getline_needs_run_time_check=yes
24467 am_cv_func_working_getline=no
24470 if test $gl_getline_needs_run_time_check = yes; then
24471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working getline function" >&5
24472 $as_echo_n "checking for working getline function... " >&6; }
24473 if ${am_cv_func_working_getline+:} false; then :
24474 $as_echo_n "(cached) " >&6
24476 echo fooNbarN | tr -d '\012' | tr N '\012' > conftest.data
24477 if test "$cross_compiling" = yes; then :
24478 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24479 /* end confdefs.h. */
24481 #include <features.h>
24482 #ifdef __GNU_LIBRARY__
24483 #if (__GLIBC__ >= 2) && !defined __UCLIBC__
24489 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24490 $EGREP "Lucky GNU user" >/dev/null 2>&1; then :
24491 am_cv_func_working_getline="guessing yes"
24493 am_cv_func_working_getline="guessing no"
24499 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24500 /* end confdefs.h. */
24502 # include <stdio.h>
24503 # include <stdlib.h>
24504 # include <string.h>
24507 FILE *in = fopen ("./conftest.data", "r");
24511 /* Test result for a NULL buffer and a zero size.
24512 Based on a test program from Karl Heuer. */
24515 int len = getline (&line, &siz, in);
24516 if (!(len == 4 && line && strcmp (line, "foo\n") == 0))
24520 /* Test result for a NULL buffer and a non-zero size.
24521 This crashes on FreeBSD 8.0. */
24523 size_t siz = (size_t)(~0) / 4;
24524 if (getline (&line, &siz, in) == -1)
24531 if ac_fn_c_try_run "$LINENO"; then :
24532 am_cv_func_working_getline=yes
24534 am_cv_func_working_getline=no
24536 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24537 conftest.$ac_objext conftest.beam conftest.$ac_ext
24541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_working_getline" >&5
24542 $as_echo "$am_cv_func_working_getline" >&6; }
24545 if test $ac_cv_have_decl_getline = no; then
24546 HAVE_DECL_GETLINE=0
24549 case "$am_cv_func_working_getline" in
24555 if test $REPLACE_GETLINE = 1; then
24564 gl_LIBOBJS="$gl_LIBOBJS getline.$ac_objext"
24581 $as_echo "#define GNULIB_TEST_GETLINE 1" >>confdefs.h
24588 # Autoconf 2.61a.99 and earlier don't support linking a file only
24589 # in VPATH builds. But since GNUmakefile is for maintainer use
24590 # only, it does not matter if we skip the link with older autoconf.
24591 # Automake 1.10.1 and earlier try to remove GNUmakefile in non-VPATH
24592 # builds, so use a shell variable to bypass this.
24593 GNUmakefile=GNUmakefile
24594 ac_config_links="$ac_config_links $GNUmakefile:$GNUmakefile"
24597 # Test for GSS-API library features.
24598 # XXX this assumes GNU SASL specific configure.ac ordering and variables.
24599 if test "$gssapi_impl" != "no"; then
24600 save_CPPFLAGS="$CPPFLAGS"
24602 CPPFLAGS="$CPPFLAGS $GSS_CFLAGS"
24603 LIBS="$LIBS $LIBGSS $GSS_LIBS"
24604 for ac_func in gss_encapsulate_token
24606 ac_fn_c_check_func "$LINENO" "gss_encapsulate_token" "ac_cv_func_gss_encapsulate_token"
24607 if test "x$ac_cv_func_gss_encapsulate_token" = xyes; then :
24608 cat >>confdefs.h <<_ACEOF
24609 #define HAVE_GSS_ENCAPSULATE_TOKEN 1
24615 for ac_func in gss_decapsulate_token
24617 ac_fn_c_check_func "$LINENO" "gss_decapsulate_token" "ac_cv_func_gss_decapsulate_token"
24618 if test "x$ac_cv_func_gss_decapsulate_token" = xyes; then :
24619 cat >>confdefs.h <<_ACEOF
24620 #define HAVE_GSS_DECAPSULATE_TOKEN 1
24626 for ac_func in gss_oid_equal
24628 ac_fn_c_check_func "$LINENO" "gss_oid_equal" "ac_cv_func_gss_oid_equal"
24629 if test "x$ac_cv_func_gss_oid_equal" = xyes; then :
24630 cat >>confdefs.h <<_ACEOF
24631 #define HAVE_GSS_OID_EQUAL 1
24637 for ac_func in gss_inquire_mech_for_saslname
24639 ac_fn_c_check_func "$LINENO" "gss_inquire_mech_for_saslname" "ac_cv_func_gss_inquire_mech_for_saslname"
24640 if test "x$ac_cv_func_gss_inquire_mech_for_saslname" = xyes; then :
24641 cat >>confdefs.h <<_ACEOF
24642 #define HAVE_GSS_INQUIRE_MECH_FOR_SASLNAME 1
24648 for ac_func in GSS_C_NT_HOSTBASED_SERVICE
24650 ac_fn_c_check_func "$LINENO" "GSS_C_NT_HOSTBASED_SERVICE" "ac_cv_func_GSS_C_NT_HOSTBASED_SERVICE"
24651 if test "x$ac_cv_func_GSS_C_NT_HOSTBASED_SERVICE" = xyes; then :
24652 cat >>confdefs.h <<_ACEOF
24653 #define HAVE_GSS_C_NT_HOSTBASED_SERVICE 1
24659 if test "$gssapi_impl" != "gss"; then
24660 for ac_header in gssapi.h gssapi/gssapi.h
24662 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
24663 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
24664 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
24665 cat >>confdefs.h <<_ACEOF
24666 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
24673 if test "$ac_cv_header_gssapi_h$ac_cv_header_gssapi_gssapi_h" = "nono"; then
24675 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find gssapi.h or gssapi/gssapi.h, disabling GSSAPI" >&5
24676 $as_echo "$as_me: WARNING: Cannot find gssapi.h or gssapi/gssapi.h, disabling GSSAPI" >&2;}
24679 CPPFLAGS="$save_CPPFLAGS"
24682 if test "$gssapi_impl" != "no"; then
24691 gl_LIBOBJS="$gl_LIBOBJS gss-extra.$ac_objext"
24696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gcc/ld supports -Wl,--output-def" >&5
24697 $as_echo_n "checking if gcc/ld supports -Wl,--output-def... " >&6; }
24698 if ${gl_cv_ld_output_def+:} false; then :
24699 $as_echo_n "(cached) " >&6
24701 if test "$enable_shared" = no; then
24702 gl_cv_ld_output_def="not needed, shared libraries are disabled"
24704 gl_ldflags_save=$LDFLAGS
24705 LDFLAGS="-Wl,--output-def,conftest.def"
24706 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24707 /* end confdefs.h. */
24717 if ac_fn_c_try_link "$LINENO"; then :
24718 gl_cv_ld_output_def=yes
24720 gl_cv_ld_output_def=no
24722 rm -f core conftest.err conftest.$ac_objext \
24723 conftest$ac_exeext conftest.$ac_ext
24725 LDFLAGS="$gl_ldflags_save"
24728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_ld_output_def" >&5
24729 $as_echo "$gl_cv_ld_output_def" >&6; }
24730 if test "x$gl_cv_ld_output_def" = "xyes"; then
24731 HAVE_LD_OUTPUT_DEF_TRUE=
24732 HAVE_LD_OUTPUT_DEF_FALSE='#'
24734 HAVE_LD_OUTPUT_DEF_TRUE='#'
24735 HAVE_LD_OUTPUT_DEF_FALSE=
24740 # Check whether --enable-ld-version-script was given.
24741 if test "${enable_ld_version_script+set}" = set; then :
24742 enableval=$enable_ld_version_script; have_ld_version_script=$enableval
24745 if test -z "$have_ld_version_script"; then
24746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if LD -Wl,--version-script works" >&5
24747 $as_echo_n "checking if LD -Wl,--version-script works... " >&6; }
24748 save_LDFLAGS="$LDFLAGS"
24749 LDFLAGS="$LDFLAGS -Wl,--version-script=conftest.map"
24750 cat > conftest.map <<EOF
24753 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24754 /* end confdefs.h. */
24764 if ac_fn_c_try_link "$LINENO"; then :
24765 accepts_syntax_errors=yes
24767 accepts_syntax_errors=no
24769 rm -f core conftest.err conftest.$ac_objext \
24770 conftest$ac_exeext conftest.$ac_ext
24771 if test "$accepts_syntax_errors" = no; then
24772 cat > conftest.map <<EOF
24781 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24782 /* end confdefs.h. */
24792 if ac_fn_c_try_link "$LINENO"; then :
24793 have_ld_version_script=yes
24795 have_ld_version_script=no
24797 rm -f core conftest.err conftest.$ac_objext \
24798 conftest$ac_exeext conftest.$ac_ext
24800 have_ld_version_script=no
24803 LDFLAGS="$save_LDFLAGS"
24804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_ld_version_script" >&5
24805 $as_echo "$have_ld_version_script" >&6; }
24807 if test "$have_ld_version_script" = "yes"; then
24808 HAVE_LD_VERSION_SCRIPT_TRUE=
24809 HAVE_LD_VERSION_SCRIPT_FALSE='#'
24811 HAVE_LD_VERSION_SCRIPT_TRUE='#'
24812 HAVE_LD_VERSION_SCRIPT_FALSE=
24820 if test -n "$GCC"; then
24821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the -Werror option is usable" >&5
24822 $as_echo_n "checking whether the -Werror option is usable... " >&6; }
24823 if ${gl_cv_cc_vis_werror+:} false; then :
24824 $as_echo_n "(cached) " >&6
24827 gl_save_CFLAGS="$CFLAGS"
24828 CFLAGS="$CFLAGS -Werror"
24829 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24830 /* end confdefs.h. */
24840 if ac_fn_c_try_compile "$LINENO"; then :
24841 gl_cv_cc_vis_werror=yes
24843 gl_cv_cc_vis_werror=no
24845 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24846 CFLAGS="$gl_save_CFLAGS"
24849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_vis_werror" >&5
24850 $as_echo "$gl_cv_cc_vis_werror" >&6; }
24851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for simple visibility declarations" >&5
24852 $as_echo_n "checking for simple visibility declarations... " >&6; }
24853 if ${gl_cv_cc_visibility+:} false; then :
24854 $as_echo_n "(cached) " >&6
24857 gl_save_CFLAGS="$CFLAGS"
24858 CFLAGS="$CFLAGS -fvisibility=hidden"
24859 if test $gl_cv_cc_vis_werror = yes; then
24860 CFLAGS="$CFLAGS -Werror"
24862 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24863 /* end confdefs.h. */
24864 extern __attribute__((__visibility__("hidden"))) int hiddenvar;
24865 extern __attribute__((__visibility__("default"))) int exportedvar;
24866 extern __attribute__((__visibility__("hidden"))) int hiddenfunc (void);
24867 extern __attribute__((__visibility__("default"))) int exportedfunc (void);
24868 void dummyfunc (void) {}
24877 if ac_fn_c_try_compile "$LINENO"; then :
24878 gl_cv_cc_visibility=yes
24880 gl_cv_cc_visibility=no
24882 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24883 CFLAGS="$gl_save_CFLAGS"
24886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_visibility" >&5
24887 $as_echo "$gl_cv_cc_visibility" >&6; }
24888 if test $gl_cv_cc_visibility = yes; then
24889 CFLAG_VISIBILITY="-fvisibility=hidden"
24896 cat >>confdefs.h <<_ACEOF
24897 #define HAVE_VISIBILITY $HAVE_VISIBILITY
24903 if test $HAVE_MEMCHR = 0 || test $REPLACE_MEMCHR = 1; then
24912 gl_LIBOBJS="$gl_LIBOBJS memchr.$ac_objext"
24915 for ac_header in bp-sym.h
24917 ac_fn_c_check_header_mongrel "$LINENO" "bp-sym.h" "ac_cv_header_bp_sym_h" "$ac_includes_default"
24918 if test "x$ac_cv_header_bp_sym_h" = xyes; then :
24919 cat >>confdefs.h <<_ACEOF
24920 #define HAVE_BP_SYM_H 1
24940 $as_echo "#define GNULIB_TEST_MEMCHR 1" >>confdefs.h
24946 if test $HAVE_DECL_MEMMEM = 1 && test $REPLACE_MEMMEM = 0; then
24947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether memmem works in linear time" >&5
24948 $as_echo_n "checking whether memmem works in linear time... " >&6; }
24949 if ${gl_cv_func_memmem_works_fast+:} false; then :
24950 $as_echo_n "(cached) " >&6
24952 if test "$cross_compiling" = yes; then :
24953 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24954 /* end confdefs.h. */
24956 #include <features.h>
24957 #ifdef __GNU_LIBRARY__
24958 #if ((__GLIBC__ == 2 && __GLIBC_MINOR__ >= 9) || (__GLIBC__ > 2)) \
24959 && !defined __UCLIBC__
24964 #include <cygwin/version.h>
24965 #if CYGWIN_VERSION_DLL_COMBINED > CYGWIN_VERSION_DLL_MAKE_COMBINED (1007, 0)
24971 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24972 $EGREP "Lucky user" >/dev/null 2>&1; then :
24973 gl_cv_func_memmem_works_fast="guessing yes"
24975 gl_cv_func_memmem_works_fast="guessing no"
24981 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24982 /* end confdefs.h. */
24984 #include <signal.h> /* for signal */
24985 #include <string.h> /* for memmem */
24986 #include <stdlib.h> /* for malloc */
24987 #include <unistd.h> /* for alarm */
24988 static void quit (int sig) { exit (sig + 128); }
24995 size_t m = 1000000;
24996 char *haystack = (char *) malloc (2 * m + 1);
24997 char *needle = (char *) malloc (m + 1);
24998 /* Failure to compile this test due to missing alarm is okay,
24999 since all such platforms (mingw) also lack memmem. */
25000 signal (SIGALRM, quit);
25002 /* Check for quadratic performance. */
25003 if (haystack && needle)
25005 memset (haystack, 'A', 2 * m);
25006 haystack[2 * m] = 'B';
25007 memset (needle, 'A', m);
25009 if (!memmem (haystack, 2 * m + 1, needle, m + 1))
25018 if ac_fn_c_try_run "$LINENO"; then :
25019 gl_cv_func_memmem_works_fast=yes
25021 gl_cv_func_memmem_works_fast=no
25023 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25024 conftest.$ac_objext conftest.beam conftest.$ac_ext
25029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_memmem_works_fast" >&5
25030 $as_echo "$gl_cv_func_memmem_works_fast" >&6; }
25031 case "$gl_cv_func_memmem_works_fast" in
25039 if test $HAVE_MEMMEM = 0 || test $REPLACE_MEMMEM = 1; then
25048 gl_LIBOBJS="$gl_LIBOBJS memmem.$ac_objext"
25055 for ac_func in memmem
25057 ac_fn_c_check_func "$LINENO" "memmem" "ac_cv_func_memmem"
25058 if test "x$ac_cv_func_memmem" = xyes; then :
25059 cat >>confdefs.h <<_ACEOF
25060 #define HAVE_MEMMEM 1
25066 if test $ac_cv_func_memmem = yes; then
25072 if test $ac_cv_have_decl_memmem = no; then
25075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether memmem works" >&5
25076 $as_echo_n "checking whether memmem works... " >&6; }
25077 if ${gl_cv_func_memmem_works_always+:} false; then :
25078 $as_echo_n "(cached) " >&6
25080 if test "$cross_compiling" = yes; then :
25081 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25082 /* end confdefs.h. */
25084 #ifdef __GNU_LIBRARY__
25085 #include <features.h>
25086 #if ((__GLIBC__ == 2 && ((__GLIBC_MINOR > 0 && __GLIBC_MINOR__ < 9) \
25087 || __GLIBC_MINOR__ > 12)) \
25088 || (__GLIBC__ > 2)) \
25089 || defined __UCLIBC__
25092 #elif defined __CYGWIN__
25093 #include <cygwin/version.h>
25094 #if CYGWIN_VERSION_DLL_COMBINED > CYGWIN_VERSION_DLL_MAKE_COMBINED (1007, 7)
25102 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25103 $EGREP "Lucky user" >/dev/null 2>&1; then :
25104 gl_cv_func_memmem_works_always="guessing yes"
25106 gl_cv_func_memmem_works_always="guessing no"
25112 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25113 /* end confdefs.h. */
25115 #include <string.h> /* for memmem */
25116 #define P "_EF_BF_BD"
25117 #define HAYSTACK "F_BD_CE_BD" P P P P "_C3_88_20" P P P "_C3_A7_20" P
25118 #define NEEDLE P P P P P
25125 if (memmem (HAYSTACK, strlen (HAYSTACK), NEEDLE, strlen (NEEDLE)))
25127 /* Check for empty needle behavior. */
25129 const char *haystack = "AAA";
25130 if (memmem (haystack, 3, NULL, 0) != haystack)
25139 if ac_fn_c_try_run "$LINENO"; then :
25140 gl_cv_func_memmem_works_always=yes
25142 gl_cv_func_memmem_works_always=no
25144 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25145 conftest.$ac_objext conftest.beam conftest.$ac_ext
25150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_memmem_works_always" >&5
25151 $as_echo "$gl_cv_func_memmem_works_always" >&6; }
25152 case "$gl_cv_func_memmem_works_always" in
25161 if test $HAVE_MEMMEM = 0 || test $REPLACE_MEMMEM = 1; then
25170 gl_LIBOBJS="$gl_LIBOBJS memmem.$ac_objext"
25184 $as_echo "#define GNULIB_TEST_MEMMEM 1" >>confdefs.h
25198 if test $gl_cv_func_malloc_posix = yes; then
25200 $as_echo "#define HAVE_REALLOC_POSIX 1" >>confdefs.h
25206 if test $REPLACE_REALLOC = 1; then
25215 gl_LIBOBJS="$gl_LIBOBJS realloc.$ac_objext"
25223 GNULIB_REALLOC_POSIX=1
25229 $as_echo "#define GNULIB_TEST_REALLOC_POSIX 1" >>confdefs.h
25234 for ac_header in stdint.h
25236 ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
25237 if test "x$ac_cv_header_stdint_h" = xyes; then :
25238 cat >>confdefs.h <<_ACEOF
25239 #define HAVE_STDINT_H 1
25246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SIZE_MAX" >&5
25247 $as_echo_n "checking for SIZE_MAX... " >&6; }
25248 if ${gl_cv_size_max+:} false; then :
25249 $as_echo_n "(cached) " >&6
25253 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25254 /* end confdefs.h. */
25256 #include <limits.h>
25258 #include <stdint.h>
25265 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25266 $EGREP "Found it" >/dev/null 2>&1; then :
25271 if test -z "$gl_cv_size_max"; then
25272 if ac_fn_c_compute_int "$LINENO" "sizeof (size_t) * CHAR_BIT - 1" "size_t_bits_minus_1" "#include <stddef.h>
25273 #include <limits.h>"; then :
25276 size_t_bits_minus_1=
25279 if ac_fn_c_compute_int "$LINENO" "sizeof (size_t) <= sizeof (unsigned int)" "fits_in_uint" "#include <stddef.h>"; then :
25285 if test -n "$size_t_bits_minus_1" && test -n "$fits_in_uint"; then
25286 if test $fits_in_uint = 1; then
25287 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25288 /* end confdefs.h. */
25289 #include <stddef.h>
25291 extern unsigned long foo;
25301 if ac_fn_c_try_compile "$LINENO"; then :
25304 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25306 if test $fits_in_uint = 1; then
25307 gl_cv_size_max="(((1U << $size_t_bits_minus_1) - 1) * 2 + 1)"
25309 gl_cv_size_max="(((1UL << $size_t_bits_minus_1) - 1) * 2 + 1)"
25312 gl_cv_size_max='((size_t)~(size_t)0)'
25317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_size_max" >&5
25318 $as_echo "$gl_cv_size_max" >&6; }
25319 if test "$gl_cv_size_max" != yes; then
25321 cat >>confdefs.h <<_ACEOF
25322 #define SIZE_MAX $gl_cv_size_max
25329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ssize_t" >&5
25330 $as_echo_n "checking for ssize_t... " >&6; }
25331 if ${gt_cv_ssize_t+:} false; then :
25332 $as_echo_n "(cached) " >&6
25334 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25335 /* end confdefs.h. */
25336 #include <sys/types.h>
25340 int x = sizeof (ssize_t *) + sizeof (ssize_t);
25346 if ac_fn_c_try_compile "$LINENO"; then :
25351 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_ssize_t" >&5
25354 $as_echo "$gt_cv_ssize_t" >&6; }
25355 if test $gt_cv_ssize_t = no; then
25357 $as_echo "#define ssize_t int" >>confdefs.h
25362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working stdalign.h" >&5
25363 $as_echo_n "checking for working stdalign.h... " >&6; }
25364 if ${gl_cv_header_working_stdalign_h+:} false; then :
25365 $as_echo_n "(cached) " >&6
25367 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25368 /* end confdefs.h. */
25369 #include <stdalign.h>
25370 #include <stddef.h>
25372 /* Test that alignof yields a result consistent with offsetof.
25373 This catches GCC bug 52023
25374 <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52023>. */
25376 template <class t> struct alignof_helper { char a; t b; };
25377 # define ao(type) offsetof (alignof_helper<type>, b)
25379 # define ao(type) offsetof (struct { char a; type b; }, b)
25381 char test_double[ao (double) % _Alignof (double) == 0 ? 1 : -1];
25382 char test_long[ao (long int) % _Alignof (long int) == 0 ? 1 : -1];
25383 char test_alignof[alignof (double) == _Alignof (double) ? 1 : -1];
25385 /* Test _Alignas only on platforms where gnulib can help. */
25387 (__GNUC__ || __IBMC__ || __IBMCPP__ \
25388 || 0x5110 <= __SUNPRO_C || 1300 <= _MSC_VER)
25389 int alignas (8) alignas_int = 1;
25390 char test_alignas[_Alignof (alignas_int) == 8 ? 1 : -1];
25401 if ac_fn_c_try_compile "$LINENO"; then :
25402 gl_cv_header_working_stdalign_h=yes
25404 gl_cv_header_working_stdalign_h=no
25406 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_stdalign_h" >&5
25409 $as_echo "$gl_cv_header_working_stdalign_h" >&6; }
25411 if test $gl_cv_header_working_stdalign_h = yes; then
25414 STDALIGN_H='stdalign.h'
25418 if test -n "$STDALIGN_H"; then
25419 GL_GENERATE_STDALIGN_H_TRUE=
25420 GL_GENERATE_STDALIGN_H_FALSE='#'
25422 GL_GENERATE_STDALIGN_H_TRUE='#'
25423 GL_GENERATE_STDALIGN_H_FALSE=
25430 # Define two additional variables used in the Makefile substitution.
25432 if test "$ac_cv_header_stdbool_h" = yes; then
25435 STDBOOL_H='stdbool.h'
25438 if test -n "$STDBOOL_H"; then
25439 GL_GENERATE_STDBOOL_H_TRUE=
25440 GL_GENERATE_STDBOOL_H_FALSE='#'
25442 GL_GENERATE_STDBOOL_H_TRUE='#'
25443 GL_GENERATE_STDBOOL_H_FALSE=
25447 if test "$ac_cv_type__Bool" = yes; then
25458 if test $gt_cv_c_wchar_t = no; then
25462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NULL can be used in arbitrary expressions" >&5
25463 $as_echo_n "checking whether NULL can be used in arbitrary expressions... " >&6; }
25464 if ${gl_cv_decl_null_works+:} false; then :
25465 $as_echo_n "(cached) " >&6
25467 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25468 /* end confdefs.h. */
25469 #include <stddef.h>
25470 int test[2 * (sizeof NULL == sizeof (void *)) -1];
25480 if ac_fn_c_try_compile "$LINENO"; then :
25481 gl_cv_decl_null_works=yes
25483 gl_cv_decl_null_works=no
25485 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_decl_null_works" >&5
25488 $as_echo "$gl_cv_decl_null_works" >&6; }
25489 if test $gl_cv_decl_null_works = no; then
25494 if test -n "$STDDEF_H"; then
25495 GL_GENERATE_STDDEF_H_TRUE=
25496 GL_GENERATE_STDDEF_H_FALSE='#'
25498 GL_GENERATE_STDDEF_H_TRUE='#'
25499 GL_GENERATE_STDDEF_H_FALSE=
25502 if test -n "$STDDEF_H"; then
25511 if test $gl_cv_have_include_next = yes; then
25512 gl_cv_next_stddef_h='<'stddef.h'>'
25514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stddef.h>" >&5
25515 $as_echo_n "checking absolute name of <stddef.h>... " >&6; }
25516 if ${gl_cv_next_stddef_h+:} false; then :
25517 $as_echo_n "(cached) " >&6
25520 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25521 /* end confdefs.h. */
25522 #include <stddef.h>
25526 aix*) gl_absname_cpp="$ac_cpp -C" ;;
25527 *) gl_absname_cpp="$ac_cpp" ;;
25532 gl_dirsep_regex='[/\\]'
25535 gl_dirsep_regex='\/'
25538 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
25540 gl_header_literal_regex=`echo 'stddef.h' \
25541 | sed -e "$gl_make_literal_regex_sed"`
25542 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
25543 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
25548 gl_cv_next_stddef_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
25549 sed -n "$gl_absolute_header_sed"`'"'
25553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stddef_h" >&5
25554 $as_echo "$gl_cv_next_stddef_h" >&6; }
25556 NEXT_STDDEF_H=$gl_cv_next_stddef_h
25558 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
25559 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
25560 gl_next_as_first_directive='<'stddef.h'>'
25562 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
25563 gl_next_as_first_directive=$gl_cv_next_stddef_h
25565 NEXT_AS_FIRST_DIRECTIVE_STDDEF_H=$gl_next_as_first_directive
25584 if test $gl_cv_have_include_next = yes; then
25585 gl_cv_next_stdio_h='<'stdio.h'>'
25587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdio.h>" >&5
25588 $as_echo_n "checking absolute name of <stdio.h>... " >&6; }
25589 if ${gl_cv_next_stdio_h+:} false; then :
25590 $as_echo_n "(cached) " >&6
25593 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25594 /* end confdefs.h. */
25599 aix*) gl_absname_cpp="$ac_cpp -C" ;;
25600 *) gl_absname_cpp="$ac_cpp" ;;
25605 gl_dirsep_regex='[/\\]'
25608 gl_dirsep_regex='\/'
25611 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
25613 gl_header_literal_regex=`echo 'stdio.h' \
25614 | sed -e "$gl_make_literal_regex_sed"`
25615 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
25616 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
25621 gl_cv_next_stdio_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
25622 sed -n "$gl_absolute_header_sed"`'"'
25626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdio_h" >&5
25627 $as_echo "$gl_cv_next_stdio_h" >&6; }
25629 NEXT_STDIO_H=$gl_cv_next_stdio_h
25631 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
25632 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
25633 gl_next_as_first_directive='<'stdio.h'>'
25635 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
25636 gl_next_as_first_directive=$gl_cv_next_stdio_h
25638 NEXT_AS_FIRST_DIRECTIVE_STDIO_H=$gl_next_as_first_directive
25667 for gl_func in dprintf fpurge fseeko ftello getdelim getline gets pclose popen renameat snprintf tmpfile vdprintf vsnprintf; do
25668 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
25669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
25670 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
25671 if eval \${$as_gl_Symbol+:} false; then :
25672 $as_echo_n "(cached) " >&6
25674 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25675 /* end confdefs.h. */
25687 if ac_fn_c_try_compile "$LINENO"; then :
25688 eval "$as_gl_Symbol=yes"
25690 eval "$as_gl_Symbol=no"
25692 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25694 eval ac_res=\$$as_gl_Symbol
25695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
25696 $as_echo "$ac_res" >&6; }
25697 if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
25698 cat >>confdefs.h <<_ACEOF
25699 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
25702 eval ac_cv_have_decl_$gl_func=yes
25717 if test $gl_cv_have_include_next = yes; then
25718 gl_cv_next_stdlib_h='<'stdlib.h'>'
25720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdlib.h>" >&5
25721 $as_echo_n "checking absolute name of <stdlib.h>... " >&6; }
25722 if ${gl_cv_next_stdlib_h+:} false; then :
25723 $as_echo_n "(cached) " >&6
25726 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25727 /* end confdefs.h. */
25728 #include <stdlib.h>
25732 aix*) gl_absname_cpp="$ac_cpp -C" ;;
25733 *) gl_absname_cpp="$ac_cpp" ;;
25738 gl_dirsep_regex='[/\\]'
25741 gl_dirsep_regex='\/'
25744 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
25746 gl_header_literal_regex=`echo 'stdlib.h' \
25747 | sed -e "$gl_make_literal_regex_sed"`
25748 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
25749 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
25754 gl_cv_next_stdlib_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
25755 sed -n "$gl_absolute_header_sed"`'"'
25759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdlib_h" >&5
25760 $as_echo "$gl_cv_next_stdlib_h" >&6; }
25762 NEXT_STDLIB_H=$gl_cv_next_stdlib_h
25764 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
25765 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
25766 gl_next_as_first_directive='<'stdlib.h'>'
25768 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
25769 gl_next_as_first_directive=$gl_cv_next_stdlib_h
25771 NEXT_AS_FIRST_DIRECTIVE_STDLIB_H=$gl_next_as_first_directive
25778 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 setenv setstate setstate_r srandom srandom_r strtod strtoll strtoull unlockpt unsetenv; do
25779 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
25780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
25781 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
25782 if eval \${$as_gl_Symbol+:} false; then :
25783 $as_echo_n "(cached) " >&6
25785 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25786 /* end confdefs.h. */
25787 #include <stdlib.h>
25788 #if HAVE_SYS_LOADAVG_H
25789 # include <sys/loadavg.h>
25792 # include <random.h>
25804 if ac_fn_c_try_compile "$LINENO"; then :
25805 eval "$as_gl_Symbol=yes"
25807 eval "$as_gl_Symbol=no"
25809 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25811 eval ac_res=\$$as_gl_Symbol
25812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
25813 $as_echo "$ac_res" >&6; }
25814 if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
25815 cat >>confdefs.h <<_ACEOF
25816 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
25819 eval ac_cv_have_decl_$gl_func=yes
25833 if test $ac_cv_have_decl_strndup = no; then
25834 HAVE_DECL_STRNDUP=0
25837 if test $ac_cv_func_strndup = yes; then
25839 # AIX 4.3.3, AIX 5.1 have a function that fails to add the terminating '\0'.
25840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strndup" >&5
25841 $as_echo_n "checking for working strndup... " >&6; }
25842 if ${gl_cv_func_strndup_works+:} false; then :
25843 $as_echo_n "(cached) " >&6
25845 if test "$cross_compiling" = yes; then :
25848 aix | aix[3-6]*) gl_cv_func_strndup_works="guessing no";;
25849 *) gl_cv_func_strndup_works="guessing yes";;
25853 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25854 /* end confdefs.h. */
25856 #include <string.h>
25857 #include <stdlib.h>
25862 #ifndef HAVE_DECL_STRNDUP
25867 char *strndup (const char *, size_t);
25870 s = strndup ("some longer string", 15);
25872 s = strndup ("shorter string", 13);
25873 return s[13] != '\0';
25878 if ac_fn_c_try_run "$LINENO"; then :
25879 gl_cv_func_strndup_works=yes
25881 gl_cv_func_strndup_works=no
25883 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25884 conftest.$ac_objext conftest.beam conftest.$ac_ext
25888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_strndup_works" >&5
25889 $as_echo "$gl_cv_func_strndup_works" >&6; }
25890 case $gl_cv_func_strndup_works in
25891 *no) REPLACE_STRNDUP=1 ;;
25897 if test $HAVE_STRNDUP = 0 || test $REPLACE_STRNDUP = 1; then
25906 gl_LIBOBJS="$gl_LIBOBJS strndup.$ac_objext"
25920 $as_echo "#define GNULIB_TEST_STRNDUP 1" >>confdefs.h
25930 if test $ac_cv_have_decl_strnlen = no; then
25931 HAVE_DECL_STRNLEN=0
25934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strnlen" >&5
25935 $as_echo_n "checking for working strnlen... " >&6; }
25936 if ${ac_cv_func_strnlen_working+:} false; then :
25937 $as_echo_n "(cached) " >&6
25939 if test "$cross_compiling" = yes; then :
25940 # Guess no on AIX systems, yes otherwise.
25942 aix*) ac_cv_func_strnlen_working=no;;
25943 *) ac_cv_func_strnlen_working=yes;;
25946 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25947 /* end confdefs.h. */
25948 $ac_includes_default
25954 #define S_LEN (sizeof S - 1)
25956 /* At least one implementation is buggy: that of AIX 4.3 would
25957 give strnlen (S, 1) == 3. */
25960 for (i = 0; i < S_LEN + 1; ++i)
25962 int expected = i <= S_LEN ? i : S_LEN;
25963 if (strnlen (S, i) != expected)
25972 if ac_fn_c_try_run "$LINENO"; then :
25973 ac_cv_func_strnlen_working=yes
25975 ac_cv_func_strnlen_working=no
25977 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25978 conftest.$ac_objext conftest.beam conftest.$ac_ext
25982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strnlen_working" >&5
25983 $as_echo "$ac_cv_func_strnlen_working" >&6; }
25984 test $ac_cv_func_strnlen_working = no && :
25987 if test $ac_cv_func_strnlen_working = no; then
25992 if test $HAVE_DECL_STRNLEN = 0 || test $REPLACE_STRNLEN = 1; then
26001 gl_LIBOBJS="$gl_LIBOBJS strnlen.$ac_objext"
26016 $as_echo "#define GNULIB_TEST_STRNLEN 1" >>confdefs.h
26024 for ac_func in strverscmp
26026 ac_fn_c_check_func "$LINENO" "strverscmp" "ac_cv_func_strverscmp"
26027 if test "x$ac_cv_func_strverscmp" = xyes; then :
26028 cat >>confdefs.h <<_ACEOF
26029 #define HAVE_STRVERSCMP 1
26035 if test $ac_cv_func_strverscmp = no; then
26039 if test $HAVE_STRVERSCMP = 0; then
26048 gl_LIBOBJS="$gl_LIBOBJS strverscmp.$ac_objext"
26059 GNULIB_STRVERSCMP=1
26065 $as_echo "#define GNULIB_TEST_STRVERSCMP 1" >>confdefs.h
26079 if test $gl_cv_have_include_next = yes; then
26080 gl_cv_next_sys_types_h='<'sys/types.h'>'
26082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/types.h>" >&5
26083 $as_echo_n "checking absolute name of <sys/types.h>... " >&6; }
26084 if ${gl_cv_next_sys_types_h+:} false; then :
26085 $as_echo_n "(cached) " >&6
26088 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26089 /* end confdefs.h. */
26090 #include <sys/types.h>
26094 aix*) gl_absname_cpp="$ac_cpp -C" ;;
26095 *) gl_absname_cpp="$ac_cpp" ;;
26100 gl_dirsep_regex='[/\\]'
26103 gl_dirsep_regex='\/'
26106 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
26108 gl_header_literal_regex=`echo 'sys/types.h' \
26109 | sed -e "$gl_make_literal_regex_sed"`
26110 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
26111 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
26116 gl_cv_next_sys_types_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
26117 sed -n "$gl_absolute_header_sed"`'"'
26121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_types_h" >&5
26122 $as_echo "$gl_cv_next_sys_types_h" >&6; }
26124 NEXT_SYS_TYPES_H=$gl_cv_next_sys_types_h
26126 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
26127 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
26128 gl_next_as_first_directive='<'sys/types.h'>'
26130 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
26131 gl_next_as_first_directive=$gl_cv_next_sys_types_h
26133 NEXT_AS_FIRST_DIRECTIVE_SYS_TYPES_H=$gl_next_as_first_directive
26159 if test $gl_cv_have_include_next = yes; then
26160 gl_cv_next_unistd_h='<'unistd.h'>'
26162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <unistd.h>" >&5
26163 $as_echo_n "checking absolute name of <unistd.h>... " >&6; }
26164 if ${gl_cv_next_unistd_h+:} false; then :
26165 $as_echo_n "(cached) " >&6
26168 if test $ac_cv_header_unistd_h = yes; then
26171 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26172 /* end confdefs.h. */
26173 #include <unistd.h>
26177 aix*) gl_absname_cpp="$ac_cpp -C" ;;
26178 *) gl_absname_cpp="$ac_cpp" ;;
26183 gl_dirsep_regex='[/\\]'
26186 gl_dirsep_regex='\/'
26189 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
26191 gl_header_literal_regex=`echo 'unistd.h' \
26192 | sed -e "$gl_make_literal_regex_sed"`
26193 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
26194 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
26199 gl_cv_next_unistd_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
26200 sed -n "$gl_absolute_header_sed"`'"'
26202 gl_cv_next_unistd_h='<'unistd.h'>'
26207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_unistd_h" >&5
26208 $as_echo "$gl_cv_next_unistd_h" >&6; }
26210 NEXT_UNISTD_H=$gl_cv_next_unistd_h
26212 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
26213 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
26214 gl_next_as_first_directive='<'unistd.h'>'
26216 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
26217 gl_next_as_first_directive=$gl_cv_next_unistd_h
26219 NEXT_AS_FIRST_DIRECTIVE_UNISTD_H=$gl_next_as_first_directive
26224 if test $ac_cv_header_unistd_h = yes; then
26236 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
26237 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
26238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
26239 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
26240 if eval \${$as_gl_Symbol+:} false; then :
26241 $as_echo_n "(cached) " >&6
26243 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26244 /* end confdefs.h. */
26247 # include <unistd.h>
26249 /* Some systems declare various items in the wrong headers. */
26250 #if !(defined __GLIBC__ && !defined __UCLIBC__)
26251 # include <fcntl.h>
26252 # include <stdio.h>
26253 # include <stdlib.h>
26254 # if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
26268 if ac_fn_c_try_compile "$LINENO"; then :
26269 eval "$as_gl_Symbol=yes"
26271 eval "$as_gl_Symbol=no"
26273 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26275 eval ac_res=\$$as_gl_Symbol
26276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
26277 $as_echo "$ac_res" >&6; }
26278 if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
26279 cat >>confdefs.h <<_ACEOF
26280 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
26283 eval ac_cv_have_decl_$gl_func=yes
26290 if test $ac_cv_func_vasnprintf = no; then
26301 gl_LIBOBJS="$gl_LIBOBJS vasnprintf.$ac_objext"
26311 gl_LIBOBJS="$gl_LIBOBJS printf-args.$ac_objext"
26321 gl_LIBOBJS="$gl_LIBOBJS printf-parse.$ac_objext"
26331 gl_LIBOBJS="$gl_LIBOBJS asnprintf.$ac_objext"
26333 if test $ac_cv_func_vasnprintf = yes; then
26335 $as_echo "#define REPLACE_VASNPRINTF 1" >>confdefs.h
26349 ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
26350 if test "x$ac_cv_type_ptrdiff_t" = xyes; then :
26354 $as_echo "#define ptrdiff_t long" >>confdefs.h
26368 for ac_func in vasprintf
26370 ac_fn_c_check_func "$LINENO" "vasprintf" "ac_cv_func_vasprintf"
26371 if test "x$ac_cv_func_vasprintf" = xyes; then :
26372 cat >>confdefs.h <<_ACEOF
26373 #define HAVE_VASPRINTF 1
26379 if test $ac_cv_func_vasprintf = no; then
26389 gl_LIBOBJS="$gl_LIBOBJS vasprintf.$ac_objext"
26399 gl_LIBOBJS="$gl_LIBOBJS asprintf.$ac_objext"
26402 if test $ac_cv_func_vasprintf = yes; then
26403 REPLACE_VASPRINTF=1
26428 $as_echo "#define GNULIB_TEST_VASPRINTF 1" >>confdefs.h
26434 XGETTEXT_EXTRA_OPTIONS="$XGETTEXT_EXTRA_OPTIONS --flag=asprintf:2:c-format"
26438 XGETTEXT_EXTRA_OPTIONS="$XGETTEXT_EXTRA_OPTIONS --flag=vasprintf:2:c-format"
26452 if test $gl_cv_have_include_next = yes; then
26453 gl_cv_next_wchar_h='<'wchar.h'>'
26455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <wchar.h>" >&5
26456 $as_echo_n "checking absolute name of <wchar.h>... " >&6; }
26457 if ${gl_cv_next_wchar_h+:} false; then :
26458 $as_echo_n "(cached) " >&6
26461 if test $ac_cv_header_wchar_h = yes; then
26464 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26465 /* end confdefs.h. */
26470 aix*) gl_absname_cpp="$ac_cpp -C" ;;
26471 *) gl_absname_cpp="$ac_cpp" ;;
26476 gl_dirsep_regex='[/\\]'
26479 gl_dirsep_regex='\/'
26482 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
26484 gl_header_literal_regex=`echo 'wchar.h' \
26485 | sed -e "$gl_make_literal_regex_sed"`
26486 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
26487 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
26492 gl_cv_next_wchar_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
26493 sed -n "$gl_absolute_header_sed"`'"'
26495 gl_cv_next_wchar_h='<'wchar.h'>'
26500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_wchar_h" >&5
26501 $as_echo "$gl_cv_next_wchar_h" >&6; }
26503 NEXT_WCHAR_H=$gl_cv_next_wchar_h
26505 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
26506 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
26507 gl_next_as_first_directive='<'wchar.h'>'
26509 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
26510 gl_next_as_first_directive=$gl_cv_next_wchar_h
26512 NEXT_AS_FIRST_DIRECTIVE_WCHAR_H=$gl_next_as_first_directive
26517 if test $ac_cv_header_wchar_h = yes; then
26527 if test $gt_cv_c_wint_t = yes; then
26535 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
26536 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
26537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
26538 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
26539 if eval \${$as_gl_Symbol+:} false; then :
26540 $as_echo_n "(cached) " >&6
26542 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26543 /* end confdefs.h. */
26545 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
26547 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
26548 included before <wchar.h>. */
26549 #if !(defined __GLIBC__ && !defined __UCLIBC__)
26550 # include <stddef.h>
26551 # include <stdio.h>
26565 if ac_fn_c_try_compile "$LINENO"; then :
26566 eval "$as_gl_Symbol=yes"
26568 eval "$as_gl_Symbol=no"
26570 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26572 eval ac_res=\$$as_gl_Symbol
26573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
26574 $as_echo "$ac_res" >&6; }
26575 if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
26576 cat >>confdefs.h <<_ACEOF
26577 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
26580 eval ac_cv_have_decl_$gl_func=yes
26588 for ac_header in stdint.h
26590 ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
26591 if test "x$ac_cv_header_stdint_h" = xyes; then :
26592 cat >>confdefs.h <<_ACEOF
26593 #define HAVE_STDINT_H 1
26601 # End of code from modules
26622 gl_source_base='gltests'
26623 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
26625 gl_module_indicator_condition=$gltests_WITNESS
26630 if test $HAVE_MSVC_INVALID_PARAMETER_HANDLER = 1; then
26633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fdopen sets errno" >&5
26634 $as_echo_n "checking whether fdopen sets errno... " >&6; }
26635 if ${gl_cv_func_fdopen_works+:} false; then :
26636 $as_echo_n "(cached) " >&6
26639 if test "$cross_compiling" = yes; then :
26641 mingw*) gl_cv_func_fdopen_works="guessing no" ;;
26642 *) gl_cv_func_fdopen_works="guessing yes" ;;
26646 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26647 /* end confdefs.h. */
26656 fp = fdopen (-1, "r");
26664 if ac_fn_c_try_run "$LINENO"; then :
26665 gl_cv_func_fdopen_works=yes
26667 gl_cv_func_fdopen_works=no
26669 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
26670 conftest.$ac_objext conftest.beam conftest.$ac_ext
26675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_fdopen_works" >&5
26676 $as_echo "$gl_cv_func_fdopen_works" >&6; }
26677 case "$gl_cv_func_fdopen_works" in
26678 *no) REPLACE_FDOPEN=1 ;;
26682 if test $REPLACE_FDOPEN = 1; then
26691 gltests_LIBOBJS="$gltests_LIBOBJS fdopen.$ac_objext"
26700 if test "$GNULIB_FDOPEN" != 1; then
26701 if test "$GNULIB_FDOPEN" = 0; then
26702 GNULIB_FDOPEN=$gl_module_indicator_condition
26704 GNULIB_FDOPEN="($GNULIB_FDOPEN || $gl_module_indicator_condition)"
26712 $as_echo "#define GNULIB_TEST_FDOPEN 1" >>confdefs.h
26719 for ac_func in getpagesize
26721 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
26722 if test "x$ac_cv_func_getpagesize" = xyes; then :
26723 cat >>confdefs.h <<_ACEOF
26724 #define HAVE_GETPAGESIZE 1
26730 if test $ac_cv_func_getpagesize = no; then
26732 for ac_header in OS.h
26734 ac_fn_c_check_header_mongrel "$LINENO" "OS.h" "ac_cv_header_OS_h" "$ac_includes_default"
26735 if test "x$ac_cv_header_OS_h" = xyes; then :
26736 cat >>confdefs.h <<_ACEOF
26737 #define HAVE_OS_H 1
26744 if test $ac_cv_header_OS_h = yes; then
26747 for ac_header in sys/param.h
26749 ac_fn_c_check_header_mongrel "$LINENO" "sys/param.h" "ac_cv_header_sys_param_h" "$ac_includes_default"
26750 if test "x$ac_cv_header_sys_param_h" = xyes; then :
26751 cat >>confdefs.h <<_ACEOF
26752 #define HAVE_SYS_PARAM_H 1
26759 if test $ac_cv_header_sys_param_h = yes; then
26765 REPLACE_GETPAGESIZE=1
26768 ac_fn_c_check_decl "$LINENO" "getpagesize" "ac_cv_have_decl_getpagesize" "$ac_includes_default"
26769 if test "x$ac_cv_have_decl_getpagesize" = xyes; then :
26772 HAVE_DECL_GETPAGESIZE=0
26776 if test $REPLACE_GETPAGESIZE = 1; then
26785 gltests_LIBOBJS="$gltests_LIBOBJS getpagesize.$ac_objext"
26793 if test "$GNULIB_GETPAGESIZE" != 1; then
26794 if test "$GNULIB_GETPAGESIZE" = 0; then
26795 GNULIB_GETPAGESIZE=$gl_module_indicator_condition
26797 GNULIB_GETPAGESIZE="($GNULIB_GETPAGESIZE || $gl_module_indicator_condition)"
26805 $as_echo "#define GNULIB_TEST_GETPAGESIZE 1" >>confdefs.h
26815 if test -n "$STDINT_H"; then
26816 PRIPTR_PREFIX='"l"'
26818 for glpfx in '' l ll I64; do
26820 '') gltype1='int';;
26821 l) gltype1='long int';;
26822 ll) gltype1='long long int';;
26823 I64) gltype1='__int64';;
26825 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26826 /* end confdefs.h. */
26827 #include <stdint.h>
26828 extern intptr_t foo;
26829 extern $gltype1 foo;
26838 if ac_fn_c_try_compile "$LINENO"; then :
26839 PRIPTR_PREFIX='"'$glpfx'"'
26841 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26842 test -n "$PRIPTR_PREFIX" && break
26848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether INT32_MAX < INTMAX_MAX" >&5
26849 $as_echo_n "checking whether INT32_MAX < INTMAX_MAX... " >&6; }
26850 if ${gl_cv_test_INT32_MAX_LT_INTMAX_MAX+:} false; then :
26851 $as_echo_n "(cached) " >&6
26853 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26854 /* end confdefs.h. */
26855 /* Work also in C++ mode. */
26856 #define __STDC_LIMIT_MACROS 1
26858 /* Work if build is not clean. */
26859 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H
26861 #include <limits.h>
26863 #include <stdint.h>
26866 #if defined INT32_MAX && defined INTMAX_MAX
26867 #define CONDITION (INT32_MAX < INTMAX_MAX)
26868 #elif HAVE_LONG_LONG_INT
26869 #define CONDITION (sizeof (int) < sizeof (long long int))
26871 #define CONDITION 0
26873 int test[CONDITION ? 1 : -1];
26882 if ac_fn_c_try_compile "$LINENO"; then :
26883 gl_cv_test_INT32_MAX_LT_INTMAX_MAX=yes
26885 gl_cv_test_INT32_MAX_LT_INTMAX_MAX=no
26887 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_test_INT32_MAX_LT_INTMAX_MAX" >&5
26890 $as_echo "$gl_cv_test_INT32_MAX_LT_INTMAX_MAX" >&6; }
26891 if test $gl_cv_test_INT32_MAX_LT_INTMAX_MAX = yes; then
26892 INT32_MAX_LT_INTMAX_MAX=1;
26894 INT32_MAX_LT_INTMAX_MAX=0;
26898 if test $APPLE_UNIVERSAL_BUILD = 0; then
26900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether INT64_MAX == LONG_MAX" >&5
26901 $as_echo_n "checking whether INT64_MAX == LONG_MAX... " >&6; }
26902 if ${gl_cv_test_INT64_MAX_EQ_LONG_MAX+:} false; then :
26903 $as_echo_n "(cached) " >&6
26905 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26906 /* end confdefs.h. */
26907 /* Work also in C++ mode. */
26908 #define __STDC_LIMIT_MACROS 1
26910 /* Work if build is not clean. */
26911 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H
26913 #include <limits.h>
26915 #include <stdint.h>
26918 #if defined INT64_MAX
26919 #define CONDITION (INT64_MAX == LONG_MAX)
26920 #elif HAVE_LONG_LONG_INT
26921 #define CONDITION (sizeof (long long int) == sizeof (long int))
26923 #define CONDITION 0
26925 int test[CONDITION ? 1 : -1];
26934 if ac_fn_c_try_compile "$LINENO"; then :
26935 gl_cv_test_INT64_MAX_EQ_LONG_MAX=yes
26937 gl_cv_test_INT64_MAX_EQ_LONG_MAX=no
26939 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_test_INT64_MAX_EQ_LONG_MAX" >&5
26942 $as_echo "$gl_cv_test_INT64_MAX_EQ_LONG_MAX" >&6; }
26943 if test $gl_cv_test_INT64_MAX_EQ_LONG_MAX = yes; then
26944 INT64_MAX_EQ_LONG_MAX=1;
26946 INT64_MAX_EQ_LONG_MAX=0;
26951 INT64_MAX_EQ_LONG_MAX=-1
26954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether UINT32_MAX < UINTMAX_MAX" >&5
26955 $as_echo_n "checking whether UINT32_MAX < UINTMAX_MAX... " >&6; }
26956 if ${gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX+:} false; then :
26957 $as_echo_n "(cached) " >&6
26959 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26960 /* end confdefs.h. */
26961 /* Work also in C++ mode. */
26962 #define __STDC_LIMIT_MACROS 1
26964 /* Work if build is not clean. */
26965 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H
26967 #include <limits.h>
26969 #include <stdint.h>
26972 #if defined UINT32_MAX && defined UINTMAX_MAX
26973 #define CONDITION (UINT32_MAX < UINTMAX_MAX)
26974 #elif HAVE_LONG_LONG_INT
26975 #define CONDITION (sizeof (unsigned int) < sizeof (unsigned long long int))
26977 #define CONDITION 0
26979 int test[CONDITION ? 1 : -1];
26988 if ac_fn_c_try_compile "$LINENO"; then :
26989 gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX=yes
26991 gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX=no
26993 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX" >&5
26996 $as_echo "$gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX" >&6; }
26997 if test $gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX = yes; then
26998 UINT32_MAX_LT_UINTMAX_MAX=1;
27000 UINT32_MAX_LT_UINTMAX_MAX=0;
27004 if test $APPLE_UNIVERSAL_BUILD = 0; then
27006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether UINT64_MAX == ULONG_MAX" >&5
27007 $as_echo_n "checking whether UINT64_MAX == ULONG_MAX... " >&6; }
27008 if ${gl_cv_test_UINT64_MAX_EQ_ULONG_MAX+:} false; then :
27009 $as_echo_n "(cached) " >&6
27011 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27012 /* end confdefs.h. */
27013 /* Work also in C++ mode. */
27014 #define __STDC_LIMIT_MACROS 1
27016 /* Work if build is not clean. */
27017 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H
27019 #include <limits.h>
27021 #include <stdint.h>
27024 #if defined UINT64_MAX
27025 #define CONDITION (UINT64_MAX == ULONG_MAX)
27026 #elif HAVE_LONG_LONG_INT
27027 #define CONDITION (sizeof (unsigned long long int) == sizeof (unsigned long int))
27029 #define CONDITION 0
27031 int test[CONDITION ? 1 : -1];
27040 if ac_fn_c_try_compile "$LINENO"; then :
27041 gl_cv_test_UINT64_MAX_EQ_ULONG_MAX=yes
27043 gl_cv_test_UINT64_MAX_EQ_ULONG_MAX=no
27045 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_test_UINT64_MAX_EQ_ULONG_MAX" >&5
27048 $as_echo "$gl_cv_test_UINT64_MAX_EQ_ULONG_MAX" >&6; }
27049 if test $gl_cv_test_UINT64_MAX_EQ_ULONG_MAX = yes; then
27050 UINT64_MAX_EQ_ULONG_MAX=1;
27052 UINT64_MAX_EQ_ULONG_MAX=0;
27057 UINT64_MAX_EQ_ULONG_MAX=-1
27065 # Check for mmap(). Don't use AC_FUNC_MMAP, because it checks too much: it
27066 # fails on HP-UX 11, because MAP_FIXED mappings do not work. But this is
27067 # irrelevant for anonymous mappings.
27068 ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
27069 if test "x$ac_cv_func_mmap" = xyes; then :
27076 # Try to allow MAP_ANONYMOUS.
27077 gl_have_mmap_anonymous=no
27078 if test $gl_have_mmap = yes; then
27079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANONYMOUS" >&5
27080 $as_echo_n "checking for MAP_ANONYMOUS... " >&6; }
27081 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27082 /* end confdefs.h. */
27084 #include <sys/mman.h>
27085 #ifdef MAP_ANONYMOUS
27086 I cant identify this map
27090 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27091 $EGREP "I cant identify this map" >/dev/null 2>&1; then :
27092 gl_have_mmap_anonymous=yes
27096 if test $gl_have_mmap_anonymous != yes; then
27097 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27098 /* end confdefs.h. */
27100 #include <sys/mman.h>
27102 I cant identify this map
27106 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27107 $EGREP "I cant identify this map" >/dev/null 2>&1; then :
27109 $as_echo "#define MAP_ANONYMOUS MAP_ANON" >>confdefs.h
27111 gl_have_mmap_anonymous=yes
27116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_have_mmap_anonymous" >&5
27117 $as_echo "$gl_have_mmap_anonymous" >&6; }
27118 if test $gl_have_mmap_anonymous = yes; then
27120 $as_echo "#define HAVE_MAP_ANONYMOUS 1" >>confdefs.h
27130 # Check for mmap(). Don't use AC_FUNC_MMAP, because it checks too much: it
27131 # fails on HP-UX 11, because MAP_FIXED mappings do not work. But this is
27132 # irrelevant for anonymous mappings.
27133 ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
27134 if test "x$ac_cv_func_mmap" = xyes; then :
27141 # Try to allow MAP_ANONYMOUS.
27142 gl_have_mmap_anonymous=no
27143 if test $gl_have_mmap = yes; then
27144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANONYMOUS" >&5
27145 $as_echo_n "checking for MAP_ANONYMOUS... " >&6; }
27146 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27147 /* end confdefs.h. */
27149 #include <sys/mman.h>
27150 #ifdef MAP_ANONYMOUS
27151 I cant identify this map
27155 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27156 $EGREP "I cant identify this map" >/dev/null 2>&1; then :
27157 gl_have_mmap_anonymous=yes
27161 if test $gl_have_mmap_anonymous != yes; then
27162 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27163 /* end confdefs.h. */
27165 #include <sys/mman.h>
27167 I cant identify this map
27171 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27172 $EGREP "I cant identify this map" >/dev/null 2>&1; then :
27174 $as_echo "#define MAP_ANONYMOUS MAP_ANON" >>confdefs.h
27176 gl_have_mmap_anonymous=yes
27181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_have_mmap_anonymous" >&5
27182 $as_echo "$gl_have_mmap_anonymous" >&6; }
27183 if test $gl_have_mmap_anonymous = yes; then
27185 $as_echo "#define HAVE_MAP_ANONYMOUS 1" >>confdefs.h
27195 if test $ac_cv_func__set_invalid_parameter_handler = yes; then
27196 HAVE_MSVC_INVALID_PARAMETER_HANDLER=1
27198 $as_echo "#define HAVE_MSVC_INVALID_PARAMETER_HANDLER 1" >>confdefs.h
27201 HAVE_MSVC_INVALID_PARAMETER_HANDLER=0
27205 if test $HAVE_MSVC_INVALID_PARAMETER_HANDLER = 1; then
27214 gltests_LIBOBJS="$gltests_LIBOBJS msvc-inval.$ac_objext"
27218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5
27219 $as_echo_n "checking for wchar_t... " >&6; }
27220 if ${gt_cv_c_wchar_t+:} false; then :
27221 $as_echo_n "(cached) " >&6
27223 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27224 /* end confdefs.h. */
27225 #include <stddef.h>
27226 wchar_t foo = (wchar_t)'\0';
27235 if ac_fn_c_try_compile "$LINENO"; then :
27236 gt_cv_c_wchar_t=yes
27240 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5
27243 $as_echo "$gt_cv_c_wchar_t" >&6; }
27244 if test $gt_cv_c_wchar_t = yes; then
27246 $as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h
27251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wint_t" >&5
27252 $as_echo_n "checking for wint_t... " >&6; }
27253 if ${gt_cv_c_wint_t+:} false; then :
27254 $as_echo_n "(cached) " >&6
27256 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27257 /* end confdefs.h. */
27259 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
27261 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be included
27262 before <wchar.h>. */
27263 #include <stddef.h>
27267 wint_t foo = (wchar_t)'\0';
27276 if ac_fn_c_try_compile "$LINENO"; then :
27281 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wint_t" >&5
27284 $as_echo "$gt_cv_c_wint_t" >&6; }
27285 if test $gt_cv_c_wint_t = yes; then
27287 $as_echo "#define HAVE_WINT_T 1" >>confdefs.h
27294 # Check for mmap(). Don't use AC_FUNC_MMAP, because it checks too much: it
27295 # fails on HP-UX 11, because MAP_FIXED mappings do not work. But this is
27296 # irrelevant for anonymous mappings.
27297 ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
27298 if test "x$ac_cv_func_mmap" = xyes; then :
27305 # Try to allow MAP_ANONYMOUS.
27306 gl_have_mmap_anonymous=no
27307 if test $gl_have_mmap = yes; then
27308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANONYMOUS" >&5
27309 $as_echo_n "checking for MAP_ANONYMOUS... " >&6; }
27310 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27311 /* end confdefs.h. */
27313 #include <sys/mman.h>
27314 #ifdef MAP_ANONYMOUS
27315 I cant identify this map
27319 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27320 $EGREP "I cant identify this map" >/dev/null 2>&1; then :
27321 gl_have_mmap_anonymous=yes
27325 if test $gl_have_mmap_anonymous != yes; then
27326 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27327 /* end confdefs.h. */
27329 #include <sys/mman.h>
27331 I cant identify this map
27335 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27336 $EGREP "I cant identify this map" >/dev/null 2>&1; then :
27338 $as_echo "#define MAP_ANONYMOUS MAP_ANON" >>confdefs.h
27340 gl_have_mmap_anonymous=yes
27345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_have_mmap_anonymous" >&5
27346 $as_echo "$gl_have_mmap_anonymous" >&6; }
27347 if test $gl_have_mmap_anonymous = yes; then
27349 $as_echo "#define HAVE_MAP_ANONYMOUS 1" >>confdefs.h
27366 LIBTESTS_LIBDEPS="$gltests_libdeps"
27370 # Disable GSSAPI/GS2 if we can't find GSS-API implementation
27371 if test "$gssapi_impl" = "no"; then
27377 if test "$gs2" != "no" ; then
27379 $as_echo "#define USE_GS2 1" >>confdefs.h
27382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if GS2 should be used" >&5
27383 $as_echo_n "checking if GS2 should be used... " >&6; }
27384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gs2" >&5
27385 $as_echo "$gs2" >&6; }
27386 if test x$gs2 = xyes; then
27395 # GSSAPI, second part
27396 if test "$gssapi" != "no" ; then
27398 $as_echo "#define USE_GSSAPI 1" >>confdefs.h
27401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if GSSAPI should be used" >&5
27402 $as_echo_n "checking if GSSAPI should be used... " >&6; }
27403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gssapi" >&5
27404 $as_echo "$gssapi" >&6; }
27405 if test x$gssapi = xyes; then
27416 if ! sed 's/_VERSION ".*"/_VERSION "'$PACKAGE_VERSION'"/' $srcdir/src/gsasl.h > fixhdr.tmp; then
27417 as_fn_error $? "*** Failed to update version number in $srcdir/src/gsasl.h..." "$LINENO" 5
27419 if cmp -s $srcdir/src/gsasl.h fixhdr.tmp 2>/dev/null; then
27421 elif ! mv fixhdr.tmp $srcdir/src/gsasl.h; then
27422 as_fn_error $? "*** Failed to move fixhdr.tmp to $srcdir/src/gsasl.h..." "$LINENO" 5
27427 MAJOR_VERSION=`echo $PACKAGE_VERSION | sed 's/\(.*\)\..*\..*/\1/g'`
27428 MINOR_VERSION=`echo $PACKAGE_VERSION | sed 's/.*\.\(.*\)\..*/\1/g'`
27429 PATCH_VERSION=`echo $PACKAGE_VERSION | sed 's/.*\..*\.\(.*\)/\1/g'`
27430 NUMBER_VERSION=`printf "0x%02x%02x%02x" $MAJOR_VERSION $MINOR_VERSION $PATCH_VERSION`
27432 if ! sed "s/VERSION_MAJOR .*/VERSION_MAJOR $MAJOR_VERSION/" $srcdir/src/gsasl.h > fixhdr.tmp; then
27433 as_fn_error $? "*** Failed to update version number in $srcdir/src/gsasl.h..." "$LINENO" 5
27435 if cmp -s $srcdir/src/gsasl.h fixhdr.tmp 2>/dev/null; then
27437 elif ! mv fixhdr.tmp $srcdir/src/gsasl.h; then
27438 as_fn_error $? "*** Failed to move fixhdr.tmp to $srcdir/src/gsasl.h..." "$LINENO" 5
27442 if ! sed "s/VERSION_MINOR .*/VERSION_MINOR $MINOR_VERSION/" $srcdir/src/gsasl.h > fixhdr.tmp; then
27443 as_fn_error $? "*** Failed to update version number in $srcdir/src/gsasl.h..." "$LINENO" 5
27445 if cmp -s $srcdir/src/gsasl.h fixhdr.tmp 2>/dev/null; then
27447 elif ! mv fixhdr.tmp $srcdir/src/gsasl.h; then
27448 as_fn_error $? "*** Failed to move fixhdr.tmp to $srcdir/src/gsasl.h..." "$LINENO" 5
27452 if ! sed "s/VERSION_PATCH .*/VERSION_PATCH $PATCH_VERSION/" $srcdir/src/gsasl.h > fixhdr.tmp; then
27453 as_fn_error $? "*** Failed to update version number in $srcdir/src/gsasl.h..." "$LINENO" 5
27455 if cmp -s $srcdir/src/gsasl.h fixhdr.tmp 2>/dev/null; then
27457 elif ! mv fixhdr.tmp $srcdir/src/gsasl.h; then
27458 as_fn_error $? "*** Failed to move fixhdr.tmp to $srcdir/src/gsasl.h..." "$LINENO" 5
27462 if ! sed "s/VERSION_NUMBER .*/VERSION_NUMBER $NUMBER_VERSION/" $srcdir/src/gsasl.h > fixhdr.tmp; then
27463 as_fn_error $? "*** Failed to update version number in $srcdir/src/gsasl.h..." "$LINENO" 5
27465 if cmp -s $srcdir/src/gsasl.h fixhdr.tmp 2>/dev/null; then
27467 elif ! mv fixhdr.tmp $srcdir/src/gsasl.h; then
27468 as_fn_error $? "*** Failed to move fixhdr.tmp to $srcdir/src/gsasl.h..." "$LINENO" 5
27474 ac_config_files="$ac_config_files Makefile anonymous/Makefile cram-md5/Makefile digest-md5/Makefile scram/Makefile saml20/Makefile openid20/Makefile external/Makefile gl/Makefile gltests/Makefile gs2/Makefile gssapi/Makefile kerberos_v5/Makefile libgsasl.pc login/Makefile ntlm/Makefile plain/Makefile po/Makefile.in securid/Makefile src/Makefile tests/Makefile"
27476 cat >confcache <<\_ACEOF
27477 # This file is a shell script that caches the results of configure
27478 # tests run on this system so they can be shared between configure
27479 # scripts and configure runs, see configure's option --config-cache.
27480 # It is not useful on other systems. If it contains results you don't
27481 # want to keep, you may remove or edit it.
27483 # config.status only pays attention to the cache file if you give it
27484 # the --recheck option to rerun configure.
27486 # `ac_cv_env_foo' variables (set or unset) will be overridden when
27487 # loading this file, other *unset* `ac_cv_foo' will be assigned the
27488 # following values.
27492 # The following way of writing the cache mishandles newlines in values,
27493 # but we know of no workaround that is simple, portable, and efficient.
27494 # So, we kill variables containing newlines.
27495 # Ultrix sh set writes to stderr and can't be redirected directly,
27496 # and sets the high bit in the cache file unless we assign to the vars.
27498 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
27499 eval ac_val=\$$ac_var
27503 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
27504 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
27507 _ | IFS | as_nl) ;; #(
27508 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
27509 *) { eval $ac_var=; unset $ac_var;} ;;
27515 case $as_nl`(ac_space=' '; set) 2>&1` in #(
27516 *${as_nl}ac_space=\ *)
27517 # `set' does not quote correctly, so add quotes: double-quote
27518 # substitution turns \\\\ into \\, and sed turns \\ into \.
27521 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
27524 # `set' quotes correctly as required by POSIX, so do not add quotes.
27525 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
27534 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
27536 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
27538 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
27539 if test -w "$cache_file"; then
27540 if test "x$cache_file" != "x/dev/null"; then
27541 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
27542 $as_echo "$as_me: updating cache $cache_file" >&6;}
27543 if test ! -f "$cache_file" || test -h "$cache_file"; then
27544 cat confcache >"$cache_file"
27546 case $cache_file in #(
27548 mv -f confcache "$cache_file"$$ &&
27549 mv -f "$cache_file"$$ "$cache_file" ;; #(
27551 mv -f confcache "$cache_file" ;;
27556 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
27557 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
27562 test "x$prefix" = xNONE && prefix=$ac_default_prefix
27563 # Let make expand exec_prefix.
27564 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
27566 DEFS=-DHAVE_CONFIG_H
27571 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
27572 # 1. Remove the extension, and $U if already installed.
27573 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
27574 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
27575 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
27576 # will be set to the directory where LIBOBJS objects are built.
27577 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
27578 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
27580 LIBOBJS=$ac_libobjs
27582 LTLIBOBJS=$ac_ltlibobjs
27585 if test -n "$EXEEXT"; then
27587 am__EXEEXT_FALSE='#'
27589 am__EXEEXT_TRUE='#'
27593 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
27594 as_fn_error $? "conditional \"AMDEP\" was never defined.
27595 Usually this means the macro was only invoked conditionally." "$LINENO" 5
27597 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
27598 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
27599 Usually this means the macro was only invoked conditionally." "$LINENO" 5
27601 if test -z "${ANONYMOUS_TRUE}" && test -z "${ANONYMOUS_FALSE}"; then
27602 as_fn_error $? "conditional \"ANONYMOUS\" was never defined.
27603 Usually this means the macro was only invoked conditionally." "$LINENO" 5
27605 if test -z "${EXTERNAL_TRUE}" && test -z "${EXTERNAL_FALSE}"; then
27606 as_fn_error $? "conditional \"EXTERNAL\" was never defined.
27607 Usually this means the macro was only invoked conditionally." "$LINENO" 5
27609 if test -z "${PLAIN_TRUE}" && test -z "${PLAIN_FALSE}"; then
27610 as_fn_error $? "conditional \"PLAIN\" was never defined.
27611 Usually this means the macro was only invoked conditionally." "$LINENO" 5
27613 if test -z "${LOGIN_TRUE}" && test -z "${LOGIN_FALSE}"; then
27614 as_fn_error $? "conditional \"LOGIN\" was never defined.
27615 Usually this means the macro was only invoked conditionally." "$LINENO" 5
27617 if test -z "${SECURID_TRUE}" && test -z "${SECURID_FALSE}"; then
27618 as_fn_error $? "conditional \"SECURID\" was never defined.
27619 Usually this means the macro was only invoked conditionally." "$LINENO" 5
27621 if test -z "${NTLM_TRUE}" && test -z "${NTLM_FALSE}"; then
27622 as_fn_error $? "conditional \"NTLM\" was never defined.
27623 Usually this means the macro was only invoked conditionally." "$LINENO" 5
27625 if test -z "${CRAM_MD5_TRUE}" && test -z "${CRAM_MD5_FALSE}"; then
27626 as_fn_error $? "conditional \"CRAM_MD5\" was never defined.
27627 Usually this means the macro was only invoked conditionally." "$LINENO" 5
27629 if test -z "${DIGEST_MD5_TRUE}" && test -z "${DIGEST_MD5_FALSE}"; then
27630 as_fn_error $? "conditional \"DIGEST_MD5\" was never defined.
27631 Usually this means the macro was only invoked conditionally." "$LINENO" 5
27633 if test -z "${SCRAM_TRUE}" && test -z "${SCRAM_FALSE}"; then
27634 as_fn_error $? "conditional \"SCRAM\" was never defined.
27635 Usually this means the macro was only invoked conditionally." "$LINENO" 5
27637 if test -z "${SAML20_TRUE}" && test -z "${SAML20_FALSE}"; then
27638 as_fn_error $? "conditional \"SAML20\" was never defined.
27639 Usually this means the macro was only invoked conditionally." "$LINENO" 5
27641 if test -z "${OPENID20_TRUE}" && test -z "${OPENID20_FALSE}"; then
27642 as_fn_error $? "conditional \"OPENID20\" was never defined.
27643 Usually this means the macro was only invoked conditionally." "$LINENO" 5
27645 if test -z "${KERBEROS_V5_TRUE}" && test -z "${KERBEROS_V5_FALSE}"; then
27646 as_fn_error $? "conditional \"KERBEROS_V5\" was never defined.
27647 Usually this means the macro was only invoked conditionally." "$LINENO" 5
27649 if test -z "${CLIENT_TRUE}" && test -z "${CLIENT_FALSE}"; then
27650 as_fn_error $? "conditional \"CLIENT\" was never defined.
27651 Usually this means the macro was only invoked conditionally." "$LINENO" 5
27653 if test -z "${SERVER_TRUE}" && test -z "${SERVER_FALSE}"; then
27654 as_fn_error $? "conditional \"SERVER\" was never defined.
27655 Usually this means the macro was only invoked conditionally." "$LINENO" 5
27657 if test -z "${OBSOLETE_TRUE}" && test -z "${OBSOLETE_FALSE}"; then
27658 as_fn_error $? "conditional \"OBSOLETE\" was never defined.
27659 Usually this means the macro was only invoked conditionally." "$LINENO" 5
27661 if test -z "${GL_COND_LIBTOOL_TRUE}" && test -z "${GL_COND_LIBTOOL_FALSE}"; then
27662 as_fn_error $? "conditional \"GL_COND_LIBTOOL\" was never defined.
27663 Usually this means the macro was only invoked conditionally." "$LINENO" 5
27665 if test -z "${GL_GENERATE_ALLOCA_H_TRUE}" && test -z "${GL_GENERATE_ALLOCA_H_FALSE}"; then
27666 as_fn_error $? "conditional \"GL_GENERATE_ALLOCA_H\" was never defined.
27667 Usually this means the macro was only invoked conditionally." "$LINENO" 5
27670 if test -z "${GL_GENERATE_ERRNO_H_TRUE}" && test -z "${GL_GENERATE_ERRNO_H_FALSE}"; then
27671 as_fn_error $? "conditional \"GL_GENERATE_ERRNO_H\" was never defined.
27672 Usually this means the macro was only invoked conditionally." "$LINENO" 5
27674 if test -z "${GL_GENERATE_FLOAT_H_TRUE}" && test -z "${GL_GENERATE_FLOAT_H_FALSE}"; then
27675 as_fn_error $? "conditional \"GL_GENERATE_FLOAT_H\" was never defined.
27676 Usually this means the macro was only invoked conditionally." "$LINENO" 5
27678 if test -z "${HAVE_LD_OUTPUT_DEF_TRUE}" && test -z "${HAVE_LD_OUTPUT_DEF_FALSE}"; then
27679 as_fn_error $? "conditional \"HAVE_LD_OUTPUT_DEF\" was never defined.
27680 Usually this means the macro was only invoked conditionally." "$LINENO" 5
27682 if test -z "${HAVE_LD_VERSION_SCRIPT_TRUE}" && test -z "${HAVE_LD_VERSION_SCRIPT_FALSE}"; then
27683 as_fn_error $? "conditional \"HAVE_LD_VERSION_SCRIPT\" was never defined.
27684 Usually this means the macro was only invoked conditionally." "$LINENO" 5
27686 CONFIG_INCLUDE=config.h
27688 if test -z "${GL_GENERATE_STDALIGN_H_TRUE}" && test -z "${GL_GENERATE_STDALIGN_H_FALSE}"; then
27689 as_fn_error $? "conditional \"GL_GENERATE_STDALIGN_H\" was never defined.
27690 Usually this means the macro was only invoked conditionally." "$LINENO" 5
27692 if test -z "${GL_GENERATE_STDBOOL_H_TRUE}" && test -z "${GL_GENERATE_STDBOOL_H_FALSE}"; then
27693 as_fn_error $? "conditional \"GL_GENERATE_STDBOOL_H\" was never defined.
27694 Usually this means the macro was only invoked conditionally." "$LINENO" 5
27696 if test -z "${GL_GENERATE_STDDEF_H_TRUE}" && test -z "${GL_GENERATE_STDDEF_H_FALSE}"; then
27697 as_fn_error $? "conditional \"GL_GENERATE_STDDEF_H\" was never defined.
27698 Usually this means the macro was only invoked conditionally." "$LINENO" 5
27700 if test -z "${GL_GENERATE_STDINT_H_TRUE}" && test -z "${GL_GENERATE_STDINT_H_FALSE}"; then
27701 as_fn_error $? "conditional \"GL_GENERATE_STDINT_H\" was never defined.
27702 Usually this means the macro was only invoked conditionally." "$LINENO" 5
27708 if test -n "$gl_LIBOBJS"; then
27709 # Remove the extension.
27710 sed_drop_objext='s/\.o$//;s/\.obj$//'
27711 for i in `for i in $gl_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
27712 gl_libobjs="$gl_libobjs $i.$ac_objext"
27713 gl_ltlibobjs="$gl_ltlibobjs $i.lo"
27716 gl_LIBOBJS=$gl_libobjs
27718 gl_LTLIBOBJS=$gl_ltlibobjs
27724 if test -n "$gltests_LIBOBJS"; then
27725 # Remove the extension.
27726 sed_drop_objext='s/\.o$//;s/\.obj$//'
27727 for i in `for i in $gltests_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
27728 gltests_libobjs="$gltests_libobjs $i.$ac_objext"
27729 gltests_ltlibobjs="$gltests_ltlibobjs $i.lo"
27732 gltests_LIBOBJS=$gltests_libobjs
27734 gltests_LTLIBOBJS=$gltests_ltlibobjs
27737 if test -z "${GS2_TRUE}" && test -z "${GS2_FALSE}"; then
27738 as_fn_error $? "conditional \"GS2\" was never defined.
27739 Usually this means the macro was only invoked conditionally." "$LINENO" 5
27741 if test -z "${GSSAPI_TRUE}" && test -z "${GSSAPI_FALSE}"; then
27742 as_fn_error $? "conditional \"GSSAPI\" was never defined.
27743 Usually this means the macro was only invoked conditionally." "$LINENO" 5
27746 : "${CONFIG_STATUS=./config.status}"
27748 ac_clean_files_save=$ac_clean_files
27749 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
27750 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
27751 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
27753 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
27755 # Generated by $as_me.
27756 # Run this file to recreate the current configuration.
27757 # Compiler output produced by configure, useful for debugging
27758 # configure, is in config.log if it exists.
27761 ac_cs_recheck=false
27764 SHELL=\${CONFIG_SHELL-$SHELL}
27767 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
27768 ## -------------------- ##
27769 ## M4sh Initialization. ##
27770 ## -------------------- ##
27772 # Be more Bourne compatible
27773 DUALCASE=1; export DUALCASE # for MKS sh
27774 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
27777 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
27778 # is contrary to our usage. Disable this feature.
27779 alias -g '${1+"$@"}'='"$@"'
27780 setopt NO_GLOB_SUBST
27782 case `(set -o) 2>/dev/null` in #(
27794 # Printing a long string crashes Solaris 7 /usr/bin/printf.
27795 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
27796 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
27797 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
27798 # Prefer a ksh shell builtin over an external printf program on Solaris,
27799 # but without wasting forks for bash or zsh.
27800 if test -z "$BASH_VERSION$ZSH_VERSION" \
27801 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
27802 as_echo='print -r --'
27803 as_echo_n='print -rn --'
27804 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
27805 as_echo='printf %s\n'
27806 as_echo_n='printf %s'
27808 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
27809 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
27810 as_echo_n='/usr/ucb/echo -n'
27812 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
27813 as_echo_n_body='eval
27817 expr "X$arg" : "X\\(.*\\)$as_nl";
27818 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
27820 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
27822 export as_echo_n_body
27823 as_echo_n='sh -c $as_echo_n_body as_echo'
27825 export as_echo_body
27826 as_echo='sh -c $as_echo_body as_echo'
27829 # The user is always right.
27830 if test "${PATH_SEPARATOR+set}" != set; then
27832 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
27833 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
27840 # We need space, tab and new line, in precisely that order. Quoting is
27841 # there to prevent editors from complaining about space-tab.
27842 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
27843 # splitting by setting IFS to empty value.)
27846 # Find who we are. Look in the path if we contain no directory separator.
27849 *[\\/]* ) as_myself=$0 ;;
27850 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27851 for as_dir in $PATH
27854 test -z "$as_dir" && as_dir=.
27855 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
27861 # We did not find ourselves, most probably we were run as `sh COMMAND'
27862 # in which case we are not to be found in the path.
27863 if test "x$as_myself" = x; then
27866 if test ! -f "$as_myself"; then
27867 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
27871 # Unset variables that we do not need and which cause bugs (e.g. in
27872 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
27873 # suppresses any "Segmentation fault" message there. '((' could
27874 # trigger a bug in pdksh 5.2.14.
27875 for as_var in BASH_ENV ENV MAIL MAILPATH
27876 do eval test x\${$as_var+set} = xset \
27877 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
27890 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
27893 # as_fn_error STATUS ERROR [LINENO LOG_FD]
27894 # ----------------------------------------
27895 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
27896 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
27897 # script with STATUS, using 1 if that was 0.
27900 as_status=$1; test $as_status -eq 0 && as_status=1
27902 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
27903 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
27905 $as_echo "$as_me: error: $2" >&2
27906 as_fn_exit $as_status
27910 # as_fn_set_status STATUS
27911 # -----------------------
27912 # Set $? to STATUS, without forking.
27913 as_fn_set_status ()
27916 } # as_fn_set_status
27918 # as_fn_exit STATUS
27919 # -----------------
27920 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
27924 as_fn_set_status $1
27930 # Portably unset VAR.
27933 { eval $1=; unset $1;}
27935 as_unset=as_fn_unset
27936 # as_fn_append VAR VALUE
27937 # ----------------------
27938 # Append the text in VALUE to the end of the definition contained in VAR. Take
27939 # advantage of any shell optimizations that allow amortized linear growth over
27940 # repeated appends, instead of the typical quadratic growth present in naive
27942 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
27943 eval 'as_fn_append ()
27954 # as_fn_arith ARG...
27955 # ------------------
27956 # Perform arithmetic evaluation on the ARGs, and store the result in the
27957 # global $as_val. Take advantage of shells that can avoid forks. The arguments
27958 # must be portable across $(()) and expr.
27959 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
27960 eval 'as_fn_arith ()
27967 as_val=`expr "$@" || test $? -eq 1`
27972 if expr a : '\(a\)' >/dev/null 2>&1 &&
27973 test "X`expr 00001 : '.*\(...\)'`" = X001; then
27979 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
27980 as_basename=basename
27985 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
27991 as_me=`$as_basename -- "$0" ||
27992 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
27993 X"$0" : 'X\(//\)$' \| \
27994 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
27996 sed '/^.*\/\([^/][^/]*\)\/*$/{
28010 # Avoid depending upon Character Ranges.
28011 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
28012 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
28013 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
28014 as_cr_digits='0123456789'
28015 as_cr_alnum=$as_cr_Letters$as_cr_digits
28017 ECHO_C= ECHO_N= ECHO_T=
28018 case `echo -n x` in #(((((
28020 case `echo 'xy\c'` in
28021 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
28023 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
28030 rm -f conf$$ conf$$.exe conf$$.file
28031 if test -d conf$$.dir; then
28032 rm -f conf$$.dir/conf$$.file
28035 mkdir conf$$.dir 2>/dev/null
28037 if (echo >conf$$.file) 2>/dev/null; then
28038 if ln -s conf$$.file conf$$ 2>/dev/null; then
28040 # ... but there are two gotchas:
28041 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
28042 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
28043 # In both cases, we have to default to `cp -p'.
28044 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
28046 elif ln conf$$.file conf$$ 2>/dev/null; then
28054 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
28055 rmdir conf$$.dir 2>/dev/null
28060 # Create "$as_dir" as a directory, including parents if necessary.
28065 -*) as_dir=./$as_dir;;
28067 test -d "$as_dir" || eval $as_mkdir_p || {
28071 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
28072 *) as_qdir=$as_dir;;
28074 as_dirs="'$as_qdir' $as_dirs"
28075 as_dir=`$as_dirname -- "$as_dir" ||
28076 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28077 X"$as_dir" : 'X\(//\)[^/]' \| \
28078 X"$as_dir" : 'X\(//\)$' \| \
28079 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
28080 $as_echo X"$as_dir" |
28081 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
28085 /^X\(\/\/\)[^/].*/{
28098 test -d "$as_dir" && break
28100 test -z "$as_dirs" || eval "mkdir $as_dirs"
28101 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
28105 if mkdir -p . 2>/dev/null; then
28106 as_mkdir_p='mkdir -p "$as_dir"'
28108 test -d ./-p && rmdir ./-p
28112 if test -x / >/dev/null 2>&1; then
28113 as_test_x='test -x'
28115 if ls -dL / >/dev/null 2>&1; then
28122 if test -d "$1"; then
28128 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
28129 ???[sx]*):;;*)false;;esac;fi
28133 as_executable_p=$as_test_x
28135 # Sed expression to map a string onto a valid CPP name.
28136 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
28138 # Sed expression to map a string onto a valid variable name.
28139 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
28143 ## ----------------------------------- ##
28144 ## Main body of $CONFIG_STATUS script. ##
28145 ## ----------------------------------- ##
28147 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
28149 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28150 # Save the log message, to keep $0 and so on meaningful, and to
28151 # report actual input values of CONFIG_FILES etc. instead of their
28152 # values after options handling.
28154 This file was extended by libgsasl $as_me 1.8.0, which was
28155 generated by GNU Autoconf 2.68. Invocation command line was
28157 CONFIG_FILES = $CONFIG_FILES
28158 CONFIG_HEADERS = $CONFIG_HEADERS
28159 CONFIG_LINKS = $CONFIG_LINKS
28160 CONFIG_COMMANDS = $CONFIG_COMMANDS
28163 on `(hostname || uname -n) 2>/dev/null | sed 1q`
28168 case $ac_config_files in *"
28169 "*) set x $ac_config_files; shift; ac_config_files=$*;;
28172 case $ac_config_headers in *"
28173 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
28177 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28178 # Files that config.status was made for.
28179 config_files="$ac_config_files"
28180 config_headers="$ac_config_headers"
28181 config_links="$ac_config_links"
28182 config_commands="$ac_config_commands"
28186 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28188 \`$as_me' instantiates files and other configuration actions
28189 from templates according to the current configuration. Unless the files
28190 and actions are specified as TAGs, all are instantiated by default.
28192 Usage: $0 [OPTION]... [TAG]...
28194 -h, --help print this help, then exit
28195 -V, --version print version number and configuration settings, then exit
28196 --config print configuration, then exit
28197 -q, --quiet, --silent
28198 do not print progress messages
28199 -d, --debug don't remove temporary files
28200 --recheck update $as_me by reconfiguring in the same conditions
28201 --file=FILE[:TEMPLATE]
28202 instantiate the configuration file FILE
28203 --header=FILE[:TEMPLATE]
28204 instantiate the configuration header FILE
28206 Configuration files:
28209 Configuration headers:
28212 Configuration links:
28215 Configuration commands:
28218 Report bugs to <bug-gsasl@gnu.org>."
28221 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28222 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
28224 libgsasl config.status 1.8.0
28225 configured by $0, generated by GNU Autoconf 2.68,
28226 with options \\"\$ac_cs_config\\"
28228 Copyright (C) 2010 Free Software Foundation, Inc.
28229 This config.status script is free software; the Free Software Foundation
28230 gives unlimited permission to copy, distribute and modify it."
28237 test -n "\$AWK" || AWK=awk
28240 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28241 # The default lists apply if the user does not specify any file.
28247 ac_option=`expr "X$1" : 'X\([^=]*\)='`
28248 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
28252 ac_option=`expr "X$1" : 'X\([^=]*\)='`
28264 # Handling of the options.
28265 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
28267 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
28268 $as_echo "$ac_cs_version"; exit ;;
28269 --config | --confi | --conf | --con | --co | --c )
28270 $as_echo "$ac_cs_config"; exit ;;
28271 --debug | --debu | --deb | --de | --d | -d )
28273 --file | --fil | --fi | --f )
28276 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
28277 '') as_fn_error $? "missing file argument" ;;
28279 as_fn_append CONFIG_FILES " '$ac_optarg'"
28280 ac_need_defaults=false;;
28281 --header | --heade | --head | --hea )
28284 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
28286 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
28287 ac_need_defaults=false;;
28289 # Conflict between --help and --header
28290 as_fn_error $? "ambiguous option: \`$1'
28291 Try \`$0 --help' for more information.";;
28292 --help | --hel | -h )
28293 $as_echo "$ac_cs_usage"; exit ;;
28294 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
28295 | -silent | --silent | --silen | --sile | --sil | --si | --s)
28298 # This is an error.
28299 -*) as_fn_error $? "unrecognized option: \`$1'
28300 Try \`$0 --help' for more information." ;;
28302 *) as_fn_append ac_config_targets " $1"
28303 ac_need_defaults=false ;;
28309 ac_configure_extra_args=
28311 if $ac_cs_silent; then
28313 ac_configure_extra_args="$ac_configure_extra_args --silent"
28317 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28318 if \$ac_cs_recheck; then
28319 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
28321 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
28322 CONFIG_SHELL='$SHELL'
28323 export CONFIG_SHELL
28328 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28332 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
28333 ## Running $as_me. ##
28339 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28343 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
28346 # The HP-UX ksh and POSIX shell print the target directory to stdout
28347 # if CDPATH is set.
28348 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
28350 sed_quote_subst='$sed_quote_subst'
28351 double_quote_subst='$double_quote_subst'
28352 delay_variable_subst='$delay_variable_subst'
28353 AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
28354 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
28355 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
28356 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
28357 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
28358 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
28359 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
28360 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
28361 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
28362 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
28363 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
28364 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
28365 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
28366 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
28367 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
28368 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
28369 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
28370 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
28371 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
28372 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
28373 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
28374 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
28375 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
28376 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
28377 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
28378 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
28379 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
28380 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
28381 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
28382 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
28383 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
28384 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
28385 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
28386 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
28387 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
28388 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
28389 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
28390 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
28391 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
28392 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
28393 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
28394 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
28395 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
28396 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
28397 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
28398 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
28399 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
28400 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
28401 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
28402 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
28403 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
28404 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
28405 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
28406 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
28407 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
28408 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
28409 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
28410 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"`'
28411 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
28412 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
28413 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
28414 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
28415 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
28416 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
28417 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
28418 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
28419 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
28420 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
28421 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
28422 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
28423 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
28424 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
28425 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
28426 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
28427 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
28428 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
28429 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
28430 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
28431 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
28432 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
28433 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
28434 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
28435 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
28436 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
28437 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
28438 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
28439 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
28440 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
28441 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
28442 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
28443 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
28444 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
28445 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
28446 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
28447 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
28448 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
28449 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
28450 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
28451 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
28452 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
28453 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
28454 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
28455 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
28456 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
28457 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
28458 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
28459 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
28460 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
28461 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
28462 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
28463 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
28464 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
28465 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
28466 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
28467 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
28468 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
28469 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
28470 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
28471 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
28472 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
28473 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
28474 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
28475 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
28476 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
28477 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
28478 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
28479 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
28480 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
28481 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
28482 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
28483 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
28486 LTCFLAGS='$LTCFLAGS'
28487 compiler='$compiler_DEFAULT'
28489 # A function that is used when there is no print builtin or printf.
28490 func_fallback_echo ()
28492 eval 'cat <<_LTECHO_EOF
28497 # Quote evaled strings.
28514 deplibs_check_method \
28518 sharedlib_from_linklib_cmd \
28521 archiver_list_spec \
28527 lt_cv_sys_global_symbol_pipe \
28528 lt_cv_sys_global_symbol_to_cdecl \
28529 lt_cv_sys_global_symbol_to_c_name_address \
28530 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
28531 nm_file_list_spec \
28532 lt_prog_compiler_no_builtin_flag \
28533 lt_prog_compiler_pic \
28534 lt_prog_compiler_wl \
28535 lt_prog_compiler_static \
28536 lt_cv_prog_compiler_c_o \
28545 export_dynamic_flag_spec \
28546 whole_archive_flag_spec \
28547 compiler_needs_object \
28549 allow_undefined_flag \
28550 no_undefined_flag \
28551 hardcode_libdir_flag_spec \
28552 hardcode_libdir_separator \
28556 variables_saved_for_relink \
28558 library_names_spec \
28560 install_override_mode \
28564 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
28565 *[\\\\\\\`\\"\\\$]*)
28566 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
28569 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
28574 # Double-quote double-evaled strings.
28575 for var in reload_cmds \
28576 old_postinstall_cmds \
28577 old_postuninstall_cmds \
28579 extract_expsyms_cmds \
28580 old_archive_from_new_cmds \
28581 old_archive_from_expsyms_cmds \
28583 archive_expsym_cmds \
28585 module_expsym_cmds \
28586 export_symbols_cmds \
28590 postuninstall_cmds \
28592 sys_lib_search_path_spec \
28593 sys_lib_dlsearch_path_spec; do
28594 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
28595 *[\\\\\\\`\\"\\\$]*)
28596 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
28599 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
28604 ac_aux_dir='$ac_aux_dir'
28605 xsi_shell='$xsi_shell'
28606 lt_shell_append='$lt_shell_append'
28608 # See if we are running on zsh, and set the options which allow our
28609 # commands through without removal of \ escapes INIT.
28610 if test -n "\${ZSH_VERSION+set}" ; then
28611 setopt NO_GLOB_SUBST
28617 TIMESTAMP='$TIMESTAMP'
28623 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
28624 # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
28625 # from automake < 1.5.
28626 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
28627 # Capture the value of LINGUAS because we need it to compute CATALOGS.
28628 LINGUAS="${LINGUAS-%UNSET%}"
28630 GNUmakefile=$GNUmakefile
28634 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28636 # Handling of arguments.
28637 for ac_config_target in $ac_config_targets
28639 case $ac_config_target in
28640 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
28641 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
28642 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
28643 "po-directories") CONFIG_COMMANDS="$CONFIG_COMMANDS po-directories" ;;
28644 "$GNUmakefile") CONFIG_LINKS="$CONFIG_LINKS $GNUmakefile:$GNUmakefile" ;;
28645 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
28646 "anonymous/Makefile") CONFIG_FILES="$CONFIG_FILES anonymous/Makefile" ;;
28647 "cram-md5/Makefile") CONFIG_FILES="$CONFIG_FILES cram-md5/Makefile" ;;
28648 "digest-md5/Makefile") CONFIG_FILES="$CONFIG_FILES digest-md5/Makefile" ;;
28649 "scram/Makefile") CONFIG_FILES="$CONFIG_FILES scram/Makefile" ;;
28650 "saml20/Makefile") CONFIG_FILES="$CONFIG_FILES saml20/Makefile" ;;
28651 "openid20/Makefile") CONFIG_FILES="$CONFIG_FILES openid20/Makefile" ;;
28652 "external/Makefile") CONFIG_FILES="$CONFIG_FILES external/Makefile" ;;
28653 "gl/Makefile") CONFIG_FILES="$CONFIG_FILES gl/Makefile" ;;
28654 "gltests/Makefile") CONFIG_FILES="$CONFIG_FILES gltests/Makefile" ;;
28655 "gs2/Makefile") CONFIG_FILES="$CONFIG_FILES gs2/Makefile" ;;
28656 "gssapi/Makefile") CONFIG_FILES="$CONFIG_FILES gssapi/Makefile" ;;
28657 "kerberos_v5/Makefile") CONFIG_FILES="$CONFIG_FILES kerberos_v5/Makefile" ;;
28658 "libgsasl.pc") CONFIG_FILES="$CONFIG_FILES libgsasl.pc" ;;
28659 "login/Makefile") CONFIG_FILES="$CONFIG_FILES login/Makefile" ;;
28660 "ntlm/Makefile") CONFIG_FILES="$CONFIG_FILES ntlm/Makefile" ;;
28661 "plain/Makefile") CONFIG_FILES="$CONFIG_FILES plain/Makefile" ;;
28662 "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
28663 "securid/Makefile") CONFIG_FILES="$CONFIG_FILES securid/Makefile" ;;
28664 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
28665 "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
28667 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
28672 # If the user did not use the arguments to specify the items to instantiate,
28673 # then the envvar interface is used. Set only those that are not.
28674 # We use the long form for the default assignment because of an extremely
28675 # bizarre bug on SunOS 4.1.3.
28676 if $ac_need_defaults; then
28677 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
28678 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
28679 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
28680 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
28683 # Have a temporary directory for convenience. Make it in the build tree
28684 # simply because there is no reason against having it here, and in addition,
28685 # creating and moving files from /tmp can sometimes cause problems.
28686 # Hook for its removal unless debugging.
28687 # Note that there is a small window in which the directory will not be cleaned:
28688 # after its creation but before its name has been assigned to `$tmp'.
28692 trap 'exit_status=$?
28693 : "${ac_tmp:=$tmp}"
28694 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
28696 trap 'as_fn_exit 1' 1 2 13 15
28698 # Create a (secure) tmp directory for tmp files.
28701 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
28705 tmp=./conf$$-$RANDOM
28706 (umask 077 && mkdir "$tmp")
28707 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
28710 # Set up the scripts for CONFIG_FILES section.
28711 # No need to generate them if there are no CONFIG_FILES.
28712 # This happens for instance with `./config.status config.h'.
28713 if test -n "$CONFIG_FILES"; then
28716 ac_cr=`echo X | tr X '\015'`
28717 # On cygwin, bash can eat \r inside `` if the user requested igncr.
28718 # But we know of no other shell where ac_cr would be empty at this
28719 # point, so we can use a bashism as a fallback.
28720 if test "x$ac_cr" = x; then
28721 eval ac_cr=\$\'\\r\'
28723 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
28724 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
28727 ac_cs_awk_cr=$ac_cr
28730 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
28735 echo "cat >conf$$subs.awk <<_ACEOF" &&
28736 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
28738 } >conf$$subs.sh ||
28739 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
28740 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
28742 for ac_last_try in false false false false false :; do
28743 . ./conf$$subs.sh ||
28744 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
28746 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
28747 if test $ac_delim_n = $ac_delim_num; then
28749 elif $ac_last_try; then
28750 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
28752 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
28755 rm -f conf$$subs.sh
28757 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28758 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
28762 s/^/S["/; s/!.*/"]=/
28772 s/\(.\{148\}\)..*/\1/
28774 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
28779 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
28786 s/\(.\{148\}\)..*/\1/
28788 s/["\\]/\\&/g; s/^/"/; s/$/"/
28792 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
28797 ' <conf$$subs.awk | sed '
28802 ' >>$CONFIG_STATUS || ac_write_fail=1
28803 rm -f conf$$subs.awk
28804 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28806 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
28807 for (key in S) S_is_set[key] = 1
28813 nfields = split(line, field, "@")
28815 len = length(field[1])
28816 for (i = 2; i < nfields; i++) {
28818 keylen = length(key)
28819 if (S_is_set[key]) {
28821 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
28822 len += length(value) + length(field[++i])
28833 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28834 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
28835 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
28838 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
28839 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
28842 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
28843 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
28844 # trailing colons and then remove the whole line if VPATH becomes empty
28845 # (actually we leave an empty line to preserve line numbers).
28846 if test "x$srcdir" = x.; then
28847 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
28865 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28866 fi # test -n "$CONFIG_FILES"
28868 # Set up the scripts for CONFIG_HEADERS section.
28869 # No need to generate them if there are no CONFIG_HEADERS.
28870 # This happens for instance with `./config.status Makefile'.
28871 if test -n "$CONFIG_HEADERS"; then
28872 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
28876 # Transform confdefs.h into an awk script `defines.awk', embedded as
28877 # here-document in config.status, that substitutes the proper values into
28878 # config.h.in to produce config.h.
28880 # Create a delimiter string that does not exist in confdefs.h, to ease
28881 # handling of long lines.
28883 for ac_last_try in false false :; do
28884 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
28885 if test -z "$ac_tt"; then
28887 elif $ac_last_try; then
28888 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
28890 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
28894 # For the awk script, D is an array of macro values keyed by name,
28895 # likewise P contains macro parameters if any. Preserve backslash
28896 # newline sequences.
28898 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
28900 s/.\{148\}/&'"$ac_delim"'/g
28903 s/^[ ]*#[ ]*define[ ][ ]*/ /
28910 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
28912 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
28916 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
28917 D["\1"]=" \3\\\\\\n"\\/p
28919 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
28924 s/.\{148\}/&'"$ac_delim"'/g
28929 s/["\\]/\\&/g; s/^/"/; s/$/"/p
28932 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
28934 ' <confdefs.h | sed '
28935 s/'"$ac_delim"'/"\\\
28936 "/g' >>$CONFIG_STATUS || ac_write_fail=1
28938 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28939 for (key in D) D_is_set[key] = 1
28942 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
28944 split(line, arg, " ")
28945 if (arg[1] == "#") {
28949 defundef = substr(arg[1], 2)
28952 split(mac1, mac2, "(") #)
28954 prefix = substr(line, 1, index(line, defundef) - 1)
28955 if (D_is_set[macro]) {
28956 # Preserve the white space surrounding the "#".
28957 print prefix "define", macro P[macro] D[macro]
28960 # Replace #undef with comments. This is necessary, for example,
28961 # in the case of _POSIX_SOURCE, which is predefined and required
28962 # on some systems where configure will not decide to define it.
28963 if (defundef == "undef") {
28964 print "/*", prefix defundef, macro, "*/"
28972 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28973 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
28974 fi # test -n "$CONFIG_HEADERS"
28977 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :L $CONFIG_LINKS :C $CONFIG_COMMANDS"
28982 :[FHLC]) ac_mode=$ac_tag; continue;;
28984 case $ac_mode$ac_tag in
28986 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
28987 :[FH]-) ac_tag=-:-;;
28988 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
29005 -) ac_f="$ac_tmp/stdin";;
29006 *) # Look for the file first in the build tree, then in the source tree
29007 # (if the path is not absolute). The absolute path cannot be DOS-style,
29008 # because $ac_f cannot contain `:'.
29012 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
29014 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
29016 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
29017 as_fn_append ac_file_inputs " '$ac_f'"
29020 # Let's still pretend it is `configure' which instantiates (i.e., don't
29021 # use $as_me), people would be surprised to read:
29022 # /* config.h. Generated by config.status. */
29023 configure_input='Generated from '`
29024 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
29026 if test x"$ac_file" != x-; then
29027 configure_input="$ac_file. $configure_input"
29028 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
29029 $as_echo "$as_me: creating $ac_file" >&6;}
29031 # Neutralize special characters interpreted by sed in replacement strings.
29032 case $configure_input in #(
29033 *\&* | *\|* | *\\* )
29034 ac_sed_conf_input=`$as_echo "$configure_input" |
29035 sed 's/[\\\\&|]/\\\\&/g'`;; #(
29036 *) ac_sed_conf_input=$configure_input;;
29040 *:-:* | *:-) cat >"$ac_tmp/stdin" \
29041 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
29046 ac_dir=`$as_dirname -- "$ac_file" ||
29047 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
29048 X"$ac_file" : 'X\(//\)[^/]' \| \
29049 X"$ac_file" : 'X\(//\)$' \| \
29050 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
29051 $as_echo X"$ac_file" |
29052 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
29056 /^X\(\/\/\)[^/].*/{
29069 as_dir="$ac_dir"; as_fn_mkdir_p
29073 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
29075 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
29076 # A ".." for each directory in $ac_dir_suffix.
29077 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
29078 case $ac_top_builddir_sub in
29079 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
29080 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
29083 ac_abs_top_builddir=$ac_pwd
29084 ac_abs_builddir=$ac_pwd$ac_dir_suffix
29085 # for backward compatibility:
29086 ac_top_builddir=$ac_top_build_prefix
29089 .) # We are building in place.
29091 ac_top_srcdir=$ac_top_builddir_sub
29092 ac_abs_top_srcdir=$ac_pwd ;;
29093 [\\/]* | ?:[\\/]* ) # Absolute name.
29094 ac_srcdir=$srcdir$ac_dir_suffix;
29095 ac_top_srcdir=$srcdir
29096 ac_abs_top_srcdir=$srcdir ;;
29097 *) # Relative name.
29098 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
29099 ac_top_srcdir=$ac_top_build_prefix$srcdir
29100 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
29102 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
29112 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
29113 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
29115 ac_MKDIR_P=$MKDIR_P
29117 [\\/$]* | ?:[\\/]* ) ;;
29118 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
29122 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29123 # If the template does not know about datarootdir, expand it.
29124 # FIXME: This hack should be removed a few years after 2.60.
29125 ac_datarootdir_hack=; ac_datarootdir_seen=
29136 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
29137 *datarootdir*) ac_datarootdir_seen=yes;;
29138 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
29139 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
29140 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
29142 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29143 ac_datarootdir_hack='
29144 s&@datadir@&$datadir&g
29145 s&@docdir@&$docdir&g
29146 s&@infodir@&$infodir&g
29147 s&@localedir@&$localedir&g
29148 s&@mandir@&$mandir&g
29149 s&\\\${datarootdir}&$datarootdir&g' ;;
29153 # Neutralize VPATH when `$srcdir' = `.'.
29154 # Shell code in configure.ac might set extrasub.
29155 # FIXME: do we really want to maintain this feature?
29156 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29157 ac_sed_extra="$ac_vpsub
29160 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29162 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
29163 s|@configure_input@|$ac_sed_conf_input|;t t
29164 s&@top_builddir@&$ac_top_builddir_sub&;t t
29165 s&@top_build_prefix@&$ac_top_build_prefix&;t t
29166 s&@srcdir@&$ac_srcdir&;t t
29167 s&@abs_srcdir@&$ac_abs_srcdir&;t t
29168 s&@top_srcdir@&$ac_top_srcdir&;t t
29169 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
29170 s&@builddir@&$ac_builddir&;t t
29171 s&@abs_builddir@&$ac_abs_builddir&;t t
29172 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
29173 s&@INSTALL@&$ac_INSTALL&;t t
29174 s&@MKDIR_P@&$ac_MKDIR_P&;t t
29175 $ac_datarootdir_hack
29177 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
29178 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
29180 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
29181 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
29182 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
29183 "$ac_tmp/out"`; test -z "$ac_out"; } &&
29184 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
29185 which seems to be undefined. Please make sure it is defined" >&5
29186 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
29187 which seems to be undefined. Please make sure it is defined" >&2;}
29189 rm -f "$ac_tmp/stdin"
29191 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
29192 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
29194 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
29200 if test x"$ac_file" != x-; then
29202 $as_echo "/* $configure_input */" \
29203 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
29204 } >"$ac_tmp/config.h" \
29205 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
29206 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
29207 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
29208 $as_echo "$as_me: $ac_file is unchanged" >&6;}
29211 mv "$ac_tmp/config.h" "$ac_file" \
29212 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
29215 $as_echo "/* $configure_input */" \
29216 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
29217 || as_fn_error $? "could not create -" "$LINENO" 5
29219 # Compute "$ac_file"'s index in $config_headers.
29222 for _am_header in $config_headers :; do
29223 case $_am_header in
29224 $_am_arg | $_am_arg:* )
29227 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
29230 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
29231 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
29232 X"$_am_arg" : 'X\(//\)[^/]' \| \
29233 X"$_am_arg" : 'X\(//\)$' \| \
29234 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
29235 $as_echo X"$_am_arg" |
29236 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
29240 /^X\(\/\/\)[^/].*/{
29252 s/.*/./; q'`/stamp-h$_am_stamp_count
29259 if test "$ac_source" = "$ac_file" && test "$srcdir" = '.'; then
29262 # Prefer the file from the source tree if names are identical.
29263 if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then
29264 ac_source=$srcdir/$ac_source
29267 { $as_echo "$as_me:${as_lineno-$LINENO}: linking $ac_source to $ac_file" >&5
29268 $as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
29270 if test ! -r "$ac_source"; then
29271 as_fn_error $? "$ac_source: file not found" "$LINENO" 5
29275 # Try a relative symlink, then a hard link, then a copy.
29277 [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;;
29278 *) ac_rel_source=$ac_top_build_prefix$ac_source ;;
29280 ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
29281 ln "$ac_source" "$ac_file" 2>/dev/null ||
29282 cp -p "$ac_source" "$ac_file" ||
29283 as_fn_error $? "cannot link or copy $ac_source to $ac_file" "$LINENO" 5
29286 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
29287 $as_echo "$as_me: executing $ac_file commands" >&6;}
29292 case $ac_file$ac_mode in
29293 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
29294 # Autoconf 2.62 quotes --file arguments for eval, but not when files
29295 # are listed without --file. Let's play safe and only enable the eval
29296 # if we detect the quoting.
29297 case $CONFIG_FILES in
29298 *\'*) eval set x "$CONFIG_FILES" ;;
29299 *) set x $CONFIG_FILES ;;
29304 # Strip MF so we end up with the name of the file.
29305 mf=`echo "$mf" | sed -e 's/:.*$//'`
29306 # Check whether this is an Automake generated Makefile or not.
29307 # We used to match only the files named `Makefile.in', but
29308 # some people rename them; so instead we look at the file content.
29309 # Grep'ing the first line is not enough: some people post-process
29310 # each Makefile.in and add a new line on top of each file to say so.
29311 # Grep'ing the whole file is not good either: AIX grep has a line
29312 # limit of 2048, but all sed's we know have understand at least 4000.
29313 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
29314 dirpart=`$as_dirname -- "$mf" ||
29315 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
29316 X"$mf" : 'X\(//\)[^/]' \| \
29317 X"$mf" : 'X\(//\)$' \| \
29318 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
29320 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
29324 /^X\(\/\/\)[^/].*/{
29340 # Extract the definition of DEPDIR, am__include, and am__quote
29341 # from the Makefile without running `make'.
29342 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
29343 test -z "$DEPDIR" && continue
29344 am__include=`sed -n 's/^am__include = //p' < "$mf"`
29345 test -z "am__include" && continue
29346 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
29347 # When using ansi2knr, U may be empty or an underscore; expand it
29348 U=`sed -n 's/^U = //p' < "$mf"`
29349 # Find all dependency output files, they are included files with
29350 # $(DEPDIR) in their names. We invoke sed twice because it is the
29351 # simplest approach to changing $(DEPDIR) to its actual value in the
29353 for file in `sed -n "
29354 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
29355 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
29356 # Make sure the directory exists.
29357 test -f "$dirpart/$file" && continue
29358 fdir=`$as_dirname -- "$file" ||
29359 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
29360 X"$file" : 'X\(//\)[^/]' \| \
29361 X"$file" : 'X\(//\)$' \| \
29362 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
29363 $as_echo X"$file" |
29364 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
29368 /^X\(\/\/\)[^/].*/{
29381 as_dir=$dirpart/$fdir; as_fn_mkdir_p
29382 # echo "creating $dirpart/$file"
29383 echo '# dummy' > "$dirpart/$file"
29390 # See if we are running on zsh, and set the options which allow our
29391 # commands through without removal of \ escapes.
29392 if test -n "${ZSH_VERSION+set}" ; then
29393 setopt NO_GLOB_SUBST
29396 cfgfile="${ofile}T"
29397 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
29400 cat <<_LT_EOF >> "$cfgfile"
29403 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
29404 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
29405 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
29406 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
29408 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
29409 # 2006, 2007, 2008, 2009, 2010, 2011 Free Software
29411 # Written by Gordon Matzigkeit, 1996
29413 # This file is part of GNU Libtool.
29415 # GNU Libtool is free software; you can redistribute it and/or
29416 # modify it under the terms of the GNU General Public License as
29417 # published by the Free Software Foundation; either version 2 of
29418 # the License, or (at your option) any later version.
29420 # As a special exception to the GNU General Public License,
29421 # if you distribute this file as part of a program or library that
29422 # is built using GNU Libtool, you may include this file under the
29423 # same distribution terms that you use for the rest of that program.
29425 # GNU Libtool is distributed in the hope that it will be useful,
29426 # but WITHOUT ANY WARRANTY; without even the implied warranty of
29427 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
29428 # GNU General Public License for more details.
29430 # You should have received a copy of the GNU General Public License
29431 # along with GNU Libtool; see the file COPYING. If not, a copy
29432 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
29433 # obtained by writing to the Free Software Foundation, Inc.,
29434 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
29437 # The names of the tagged configurations supported by this script.
29440 # ### BEGIN LIBTOOL CONFIG
29442 # Assembler program.
29445 # DLL creation program.
29446 DLLTOOL=$lt_DLLTOOL
29448 # Object dumper program.
29449 OBJDUMP=$lt_OBJDUMP
29451 # Which release of libtool.m4 was used?
29452 macro_version=$macro_version
29453 macro_revision=$macro_revision
29455 # Whether or not to build shared libraries.
29456 build_libtool_libs=$enable_shared
29458 # Whether or not to build static libraries.
29459 build_old_libs=$enable_static
29461 # What type of objects to build.
29464 # Whether or not to optimize for fast installation.
29465 fast_install=$enable_fast_install
29467 # Shell to use when invoking shell scripts.
29470 # An echo program that protects backslashes.
29473 # The PATH separator for the build system.
29474 PATH_SEPARATOR=$lt_PATH_SEPARATOR
29477 host_alias=$host_alias
29481 # The build system.
29482 build_alias=$build_alias
29486 # A sed program that does not truncate output.
29489 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
29490 Xsed="\$SED -e 1s/^X//"
29492 # A grep program that handles long lines.
29498 # A literal string matcher.
29501 # A BSD- or MS-compatible name lister.
29504 # Whether we need soft or hard links.
29507 # What is the maximum length of a command?
29508 max_cmd_len=$max_cmd_len
29510 # Object file suffix (normally "o").
29513 # Executable file suffix (normally "").
29516 # whether the shell understands "unset".
29519 # turn spaces into newlines.
29522 # turn newlines into spaces.
29525 # convert \$build file names to \$host format.
29526 to_host_file_cmd=$lt_cv_to_host_file_cmd
29528 # convert \$build files to toolchain format.
29529 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
29531 # Method to check whether dependent libraries are shared objects.
29532 deplibs_check_method=$lt_deplibs_check_method
29534 # Command to use when deplibs_check_method = "file_magic".
29535 file_magic_cmd=$lt_file_magic_cmd
29537 # How to find potential files when deplibs_check_method = "file_magic".
29538 file_magic_glob=$lt_file_magic_glob
29540 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
29541 want_nocaseglob=$lt_want_nocaseglob
29543 # Command to associate shared and link libraries.
29544 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
29549 # Flags to create an archive.
29550 AR_FLAGS=$lt_AR_FLAGS
29552 # How to feed a file listing to the archiver.
29553 archiver_list_spec=$lt_archiver_list_spec
29555 # A symbol stripping program.
29558 # Commands used to install an old-style archive.
29560 old_postinstall_cmds=$lt_old_postinstall_cmds
29561 old_postuninstall_cmds=$lt_old_postuninstall_cmds
29563 # Whether to use a lock for old archive extraction.
29564 lock_old_archive_extraction=$lock_old_archive_extraction
29569 # LTCC compiler flags.
29570 LTCFLAGS=$lt_CFLAGS
29572 # Take the output of nm and produce a listing of raw symbols and C names.
29573 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
29575 # Transform the output of nm in a proper C declaration.
29576 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
29578 # Transform the output of nm in a C name address pair.
29579 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
29581 # Transform the output of nm in a C name address pair when lib prefix is needed.
29582 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
29584 # Specify filename containing input files for \$NM.
29585 nm_file_list_spec=$lt_nm_file_list_spec
29587 # The root where to search for dependent libraries,and in which our libraries should be installed.
29588 lt_sysroot=$lt_sysroot
29590 # The name of the directory that contains temporary libtool files.
29593 # Used to examine libraries when file_magic_cmd begins with "file".
29594 MAGIC_CMD=$MAGIC_CMD
29596 # Must we lock files when doing compilation?
29597 need_locks=$lt_need_locks
29600 MANIFEST_TOOL=$lt_MANIFEST_TOOL
29602 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
29603 DSYMUTIL=$lt_DSYMUTIL
29605 # Tool to change global to local symbols on Mac OS X.
29608 # Tool to manipulate fat objects and archives on Mac OS X.
29611 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
29614 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
29615 OTOOL64=$lt_OTOOL64
29617 # Old archive suffix (normally "a").
29620 # Shared library suffix (normally ".so").
29621 shrext_cmds=$lt_shrext_cmds
29623 # The commands to extract the exported symbol list from a shared archive.
29624 extract_expsyms_cmds=$lt_extract_expsyms_cmds
29626 # Variables whose values should be saved in libtool wrapper scripts and
29627 # restored at link time.
29628 variables_saved_for_relink=$lt_variables_saved_for_relink
29630 # Do we need the "lib" prefix for modules?
29631 need_lib_prefix=$need_lib_prefix
29633 # Do we need a version for libraries?
29634 need_version=$need_version
29636 # Library versioning type.
29637 version_type=$version_type
29639 # Shared library runtime path variable.
29640 runpath_var=$runpath_var
29642 # Shared library path variable.
29643 shlibpath_var=$shlibpath_var
29645 # Is shlibpath searched before the hard-coded library search path?
29646 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
29648 # Format of library name prefix.
29649 libname_spec=$lt_libname_spec
29651 # List of archive names. First name is the real one, the rest are links.
29652 # The last name is the one that the linker finds with -lNAME
29653 library_names_spec=$lt_library_names_spec
29655 # The coded name of the library, if different from the real name.
29656 soname_spec=$lt_soname_spec
29658 # Permission mode override for installation of shared libraries.
29659 install_override_mode=$lt_install_override_mode
29661 # Command to use after installation of a shared archive.
29662 postinstall_cmds=$lt_postinstall_cmds
29664 # Command to use after uninstallation of a shared archive.
29665 postuninstall_cmds=$lt_postuninstall_cmds
29667 # Commands used to finish a libtool library installation in a directory.
29668 finish_cmds=$lt_finish_cmds
29670 # As "finish_cmds", except a single script fragment to be evaled but
29672 finish_eval=$lt_finish_eval
29674 # Whether we should hardcode library paths into libraries.
29675 hardcode_into_libs=$hardcode_into_libs
29677 # Compile-time system search path for libraries.
29678 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
29680 # Run-time system search path for libraries.
29681 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
29683 # Whether dlopen is supported.
29684 dlopen_support=$enable_dlopen
29686 # Whether dlopen of programs is supported.
29687 dlopen_self=$enable_dlopen_self
29689 # Whether dlopen of statically linked programs is supported.
29690 dlopen_self_static=$enable_dlopen_self_static
29692 # Commands to strip libraries.
29693 old_striplib=$lt_old_striplib
29694 striplib=$lt_striplib
29697 # The linker used to build libraries.
29700 # How to create reloadable object files.
29701 reload_flag=$lt_reload_flag
29702 reload_cmds=$lt_reload_cmds
29704 # Commands used to build an old-style archive.
29705 old_archive_cmds=$lt_old_archive_cmds
29707 # A language specific compiler.
29710 # Is the compiler the GNU compiler?
29713 # Compiler flag to turn off builtin functions.
29714 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
29716 # Additional compiler flags for building library objects.
29717 pic_flag=$lt_lt_prog_compiler_pic
29719 # How to pass a linker flag through the compiler.
29720 wl=$lt_lt_prog_compiler_wl
29722 # Compiler flag to prevent dynamic linking.
29723 link_static_flag=$lt_lt_prog_compiler_static
29725 # Does compiler simultaneously support -c and -o options?
29726 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
29728 # Whether or not to add -lc for building shared libraries.
29729 build_libtool_need_lc=$archive_cmds_need_lc
29731 # Whether or not to disallow shared libs when runtime libs are static.
29732 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
29734 # Compiler flag to allow reflexive dlopens.
29735 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
29737 # Compiler flag to generate shared objects directly from archives.
29738 whole_archive_flag_spec=$lt_whole_archive_flag_spec
29740 # Whether the compiler copes with passing no objects directly.
29741 compiler_needs_object=$lt_compiler_needs_object
29743 # Create an old-style archive from a shared archive.
29744 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
29746 # Create a temporary old-style archive to link instead of a shared archive.
29747 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
29749 # Commands used to build a shared archive.
29750 archive_cmds=$lt_archive_cmds
29751 archive_expsym_cmds=$lt_archive_expsym_cmds
29753 # Commands used to build a loadable module if different from building
29754 # a shared archive.
29755 module_cmds=$lt_module_cmds
29756 module_expsym_cmds=$lt_module_expsym_cmds
29758 # Whether we are building with GNU ld or not.
29759 with_gnu_ld=$lt_with_gnu_ld
29761 # Flag that allows shared libraries with undefined symbols to be built.
29762 allow_undefined_flag=$lt_allow_undefined_flag
29764 # Flag that enforces no undefined symbols.
29765 no_undefined_flag=$lt_no_undefined_flag
29767 # Flag to hardcode \$libdir into a binary during linking.
29768 # This must work even if \$libdir does not exist
29769 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
29771 # Whether we need a single "-rpath" flag with a separated argument.
29772 hardcode_libdir_separator=$lt_hardcode_libdir_separator
29774 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
29775 # DIR into the resulting binary.
29776 hardcode_direct=$hardcode_direct
29778 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
29779 # DIR into the resulting binary and the resulting library dependency is
29780 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
29781 # library is relocated.
29782 hardcode_direct_absolute=$hardcode_direct_absolute
29784 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
29785 # into the resulting binary.
29786 hardcode_minus_L=$hardcode_minus_L
29788 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
29789 # into the resulting binary.
29790 hardcode_shlibpath_var=$hardcode_shlibpath_var
29792 # Set to "yes" if building a shared library automatically hardcodes DIR
29793 # into the library and all subsequent libraries and executables linked
29795 hardcode_automatic=$hardcode_automatic
29797 # Set to yes if linker adds runtime paths of dependent libraries
29798 # to runtime path list.
29799 inherit_rpath=$inherit_rpath
29801 # Whether libtool must link a program against all its dependency libraries.
29802 link_all_deplibs=$link_all_deplibs
29804 # Set to "yes" if exported symbols are required.
29805 always_export_symbols=$always_export_symbols
29807 # The commands to list exported symbols.
29808 export_symbols_cmds=$lt_export_symbols_cmds
29810 # Symbols that should not be listed in the preloaded symbols.
29811 exclude_expsyms=$lt_exclude_expsyms
29813 # Symbols that must always be exported.
29814 include_expsyms=$lt_include_expsyms
29816 # Commands necessary for linking programs (against libraries) with templates.
29817 prelink_cmds=$lt_prelink_cmds
29819 # Commands necessary for finishing linking programs.
29820 postlink_cmds=$lt_postlink_cmds
29822 # Specify filename containing input files.
29823 file_list_spec=$lt_file_list_spec
29825 # How to hardcode a shared library path into an executable.
29826 hardcode_action=$hardcode_action
29828 # ### END LIBTOOL CONFIG
29834 cat <<\_LT_EOF >> "$cfgfile"
29835 # AIX sometimes has problems with the GCC collect2 program. For some
29836 # reason, if we set the COLLECT_NAMES environment variable, the problems
29837 # vanish in a puff of smoke.
29838 if test "X${COLLECT_NAMES+set}" != Xset; then
29840 export COLLECT_NAMES
29847 ltmain="$ac_aux_dir/ltmain.sh"
29850 # We use sed instead of cat because bash on DJGPP gets confused if
29851 # if finds mixed CR/LF and LF-only lines. Since sed operates in
29852 # text mode, it properly converts lines to CR/LF. This bash problem
29853 # is reportedly fixed, but why not run on old versions too?
29854 sed '$q' "$ltmain" >> "$cfgfile" \
29855 || (rm -f "$cfgfile"; exit 1)
29857 if test x"$xsi_shell" = xyes; then
29858 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
29862 \ */*) func_dirname_result="${1%/*}${2}" ;;\
29863 \ * ) func_dirname_result="${3}" ;;\
29865 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
29866 && mv -f "$cfgfile.tmp" "$cfgfile" \
29867 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
29868 test 0 -eq $? || _lt_function_replace_fail=:
29871 sed -e '/^func_basename ()$/,/^} # func_basename /c\
29874 \ func_basename_result="${1##*/}"\
29875 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
29876 && mv -f "$cfgfile.tmp" "$cfgfile" \
29877 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
29878 test 0 -eq $? || _lt_function_replace_fail=:
29881 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
29882 func_dirname_and_basename ()\
29885 \ */*) func_dirname_result="${1%/*}${2}" ;;\
29886 \ * ) func_dirname_result="${3}" ;;\
29888 \ func_basename_result="${1##*/}"\
29889 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
29890 && mv -f "$cfgfile.tmp" "$cfgfile" \
29891 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
29892 test 0 -eq $? || _lt_function_replace_fail=:
29895 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
29898 \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
29899 \ # positional parameters, so assign one to ordinary parameter first.\
29900 \ func_stripname_result=${3}\
29901 \ func_stripname_result=${func_stripname_result#"${1}"}\
29902 \ func_stripname_result=${func_stripname_result%"${2}"}\
29903 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
29904 && mv -f "$cfgfile.tmp" "$cfgfile" \
29905 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
29906 test 0 -eq $? || _lt_function_replace_fail=:
29909 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
29910 func_split_long_opt ()\
29912 \ func_split_long_opt_name=${1%%=*}\
29913 \ func_split_long_opt_arg=${1#*=}\
29914 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
29915 && mv -f "$cfgfile.tmp" "$cfgfile" \
29916 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
29917 test 0 -eq $? || _lt_function_replace_fail=:
29920 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
29921 func_split_short_opt ()\
29923 \ func_split_short_opt_arg=${1#??}\
29924 \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
29925 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
29926 && mv -f "$cfgfile.tmp" "$cfgfile" \
29927 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
29928 test 0 -eq $? || _lt_function_replace_fail=:
29931 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
29935 \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
29936 \ *) func_lo2o_result=${1} ;;\
29938 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
29939 && mv -f "$cfgfile.tmp" "$cfgfile" \
29940 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
29941 test 0 -eq $? || _lt_function_replace_fail=:
29944 sed -e '/^func_xform ()$/,/^} # func_xform /c\
29947 func_xform_result=${1%.*}.lo\
29948 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
29949 && mv -f "$cfgfile.tmp" "$cfgfile" \
29950 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
29951 test 0 -eq $? || _lt_function_replace_fail=:
29954 sed -e '/^func_arith ()$/,/^} # func_arith /c\
29957 func_arith_result=$(( $* ))\
29958 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
29959 && mv -f "$cfgfile.tmp" "$cfgfile" \
29960 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
29961 test 0 -eq $? || _lt_function_replace_fail=:
29964 sed -e '/^func_len ()$/,/^} # func_len /c\
29967 func_len_result=${#1}\
29968 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
29969 && mv -f "$cfgfile.tmp" "$cfgfile" \
29970 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
29971 test 0 -eq $? || _lt_function_replace_fail=:
29975 if test x"$lt_shell_append" = xyes; then
29976 sed -e '/^func_append ()$/,/^} # func_append /c\
29979 eval "${1}+=\\${2}"\
29980 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
29981 && mv -f "$cfgfile.tmp" "$cfgfile" \
29982 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
29983 test 0 -eq $? || _lt_function_replace_fail=:
29986 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
29987 func_append_quoted ()\
29989 \ func_quote_for_eval "${2}"\
29990 \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
29991 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
29992 && mv -f "$cfgfile.tmp" "$cfgfile" \
29993 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
29994 test 0 -eq $? || _lt_function_replace_fail=:
29997 # Save a `func_append' function call where possible by direct use of '+='
29998 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
29999 && mv -f "$cfgfile.tmp" "$cfgfile" \
30000 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
30001 test 0 -eq $? || _lt_function_replace_fail=:
30003 # Save a `func_append' function call even when '+=' is not available
30004 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
30005 && mv -f "$cfgfile.tmp" "$cfgfile" \
30006 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
30007 test 0 -eq $? || _lt_function_replace_fail=:
30010 if test x"$_lt_function_replace_fail" = x":"; then
30011 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
30012 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
30016 mv -f "$cfgfile" "$ofile" ||
30017 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
30021 "po-directories":C)
30022 for ac_file in $CONFIG_FILES; do
30023 # Support "outfile[:infile[:infile...]]"
30025 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
30027 # PO directories have a Makefile.in generated from Makefile.in.in.
30028 case "$ac_file" in */Makefile.in)
30029 # Adjust a relative srcdir.
30030 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
30031 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
30032 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
30033 # In autoconf-2.13 it is called $ac_given_srcdir.
30034 # In autoconf-2.50 it is called $srcdir.
30035 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
30036 case "$ac_given_srcdir" in
30037 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
30038 /*) top_srcdir="$ac_given_srcdir" ;;
30039 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
30041 # Treat a directory as a PO directory if and only if it has a
30042 # POTFILES.in file. This allows packages to have multiple PO
30043 # directories under different names or in different locations.
30044 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
30045 rm -f "$ac_dir/POTFILES"
30046 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
30047 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
30048 POMAKEFILEDEPS="POTFILES.in"
30049 # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
30050 # on $ac_dir but don't depend on user-specified configuration
30052 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
30053 # The LINGUAS file contains the set of available languages.
30054 if test -n "$OBSOLETE_ALL_LINGUAS"; then
30055 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
30057 ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
30058 # Hide the ALL_LINGUAS assigment from automake < 1.5.
30059 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
30060 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
30062 # The set of available languages was given in configure.in.
30063 # Hide the ALL_LINGUAS assigment from automake < 1.5.
30064 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
30067 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
30068 # Compute UPDATEPOFILES
30069 # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
30070 # Compute DUMMYPOFILES
30071 # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
30073 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
30074 case "$ac_given_srcdir" in
30076 *) srcdirpre='$(srcdir)/' ;;
30082 for lang in $ALL_LINGUAS; do
30083 POFILES="$POFILES $srcdirpre$lang.po"
30084 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
30085 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
30086 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
30088 # CATALOGS depends on both $ac_dir and the user's LINGUAS
30089 # environment variable.
30091 if test -n "$ALL_LINGUAS"; then
30092 for presentlang in $ALL_LINGUAS; do
30094 if test "%UNSET%" != "$LINGUAS"; then
30095 desiredlanguages="$LINGUAS"
30097 desiredlanguages="$ALL_LINGUAS"
30099 for desiredlang in $desiredlanguages; do
30100 # Use the presentlang catalog if desiredlang is
30101 # a. equal to presentlang, or
30102 # b. a variant of presentlang (because in this case,
30103 # presentlang can be used as a fallback for messages
30104 # which are not translated in the desiredlang catalog).
30105 case "$desiredlang" in
30106 "$presentlang"*) useit=yes;;
30109 if test $useit = yes; then
30110 INST_LINGUAS="$INST_LINGUAS $presentlang"
30115 if test -n "$INST_LINGUAS"; then
30116 for lang in $INST_LINGUAS; do
30117 CATALOGS="$CATALOGS $lang.gmo"
30120 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
30121 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"
30122 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
30123 if test -f "$f"; then
30125 *.orig | *.bak | *~) ;;
30126 *) cat "$f" >> "$ac_dir/Makefile" ;;
30141 ac_clean_files=$ac_clean_files_save
30143 test $ac_write_fail = 0 ||
30144 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
30147 # configure is writing to config.log, and then calls config.status.
30148 # config.status does its own redirection, appending to config.log.
30149 # Unfortunately, on DOS this fails, as config.log is still kept open
30150 # by configure, so config.status won't be able to write to it; its
30151 # output is simply discarded. So we exec the FD to /dev/null,
30152 # effectively closing config.log, so it can be properly (re)opened and
30153 # appended to by config.status. When coming back to configure, we
30154 # need to make the FD available again.
30155 if test "$no_create" != yes; then
30157 ac_config_status_args=
30158 test "$silent" = yes &&
30159 ac_config_status_args="$ac_config_status_args --quiet"
30161 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
30163 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
30164 # would make configure fail if this is the last instruction.
30165 $ac_cs_success || as_fn_exit 1
30167 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
30168 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
30169 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
30173 { $as_echo "$as_me:${as_lineno-$LINENO}: summary of library build options:
30175 version: ${VERSION}
30177 Install prefix: ${prefix}
30178 Compiler: cc: ${CC} cflags: ${CFLAGS} cppflags: ${CPPFLAGS}
30179 Warning flags: $gl_gcc_warnings
30180 Library types: Shared=${enable_shared}, Static=${enable_static}
30181 Valgrind: ${VALGRIND}
30182 Obsolete functions: $obsolete
30184 Client side: $client
30185 Server side: $server
30187 ANONYMOUS: $anonymous
30188 EXTERNAL: $external
30192 NTLM: $ntlm (libs: $LTLIBNTLM)
30193 CRAM-MD5: $cram_md5
30194 DIGEST-MD5: $digest_md5
30195 SCRAM-SHA-1: $scram_sha1
30197 OPENID20: $openid20
30201 $as_echo "$as_me: summary of library build options:
30203 version: ${VERSION}
30205 Install prefix: ${prefix}
30206 Compiler: cc: ${CC} cflags: ${CFLAGS} cppflags: ${CPPFLAGS}
30207 Warning flags: $gl_gcc_warnings
30208 Library types: Shared=${enable_shared}, Static=${enable_static}
30209 Valgrind: ${VALGRIND}
30210 Obsolete functions: $obsolete
30212 Client side: $client
30213 Server side: $server
30215 ANONYMOUS: $anonymous
30216 EXTERNAL: $external
30220 NTLM: $ntlm (libs: $LTLIBNTLM)
30221 CRAM-MD5: $cram_md5
30222 DIGEST-MD5: $digest_md5
30223 SCRAM-SHA-1: $scram_sha1
30225 OPENID20: $openid20