2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for libpipeline 1.2.5.
5 # Report bugs to <cjwatson@debian.org>.
8 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
17 # Be more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
27 case `(set -o) 2>/dev/null` in #(
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo_n='print -rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55 as_echo_n='/usr/ucb/echo -n'
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
68 as_echo_n='sh -c $as_echo_n_body as_echo'
71 as_echo='sh -c $as_echo_body as_echo'
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
85 # We need space, tab and new line, in precisely that order. Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
91 # Find who we are. Look in the path if we contain no directory separator.
94 *[\\/]* ) as_myself=$0 ;;
95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
99 test -z "$as_dir" && as_dir=.
100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
106 # We did not find ourselves, most probably we were run as `sh COMMAND'
107 # in which case we are not to be found in the path.
108 if test "x$as_myself" = x; then
111 if test ! -f "$as_myself"; then
112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
116 # Unset variables that we do not need and which cause bugs (e.g. in
117 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
118 # suppresses any "Segmentation fault" message there. '((' could
119 # trigger a bug in pdksh 5.2.14.
120 for as_var in BASH_ENV ENV MAIL MAILPATH
121 do eval test x\${$as_var+set} = xset \
122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
135 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
137 # Use a proper internal environment variable to ensure we don't fall
138 # into an infinite loop, continuously re-executing ourselves.
139 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140 _as_can_reexec=no; export _as_can_reexec;
141 # We cannot yet assume a decent shell, so we have to provide a
142 # neutralization value for shells without unset; and this also
143 # works around shells that cannot unset nonexistent variables.
144 # Preserve -v and -x to the replacement shell.
147 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
149 *v*x* | *x*v* ) as_opts=-vx ;;
154 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155 # Admittedly, this is quite paranoid, since all the known shells bail
156 # out after a failed `exec'.
157 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
160 # We don't want this to propagate to other subprocesses.
161 { _as_can_reexec=; unset _as_can_reexec;}
162 if test "x$CONFIG_SHELL" = x; then
163 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
166 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167 # is contrary to our usage. Disable this feature.
168 alias -g '\${1+\"\$@\"}'='\"\$@\"'
171 case \`(set -o) 2>/dev/null\` in #(
179 as_required="as_fn_return () { (exit \$1); }
180 as_fn_success () { as_fn_return 0; }
181 as_fn_failure () { as_fn_return 1; }
182 as_fn_ret_success () { return 0; }
183 as_fn_ret_failure () { return 1; }
186 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
193 exitcode=1; echo positional parameters were not saved.
195 test x\$exitcode = x0 || exit 1
197 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
198 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
199 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
201 test \$(( 1 + 1 )) = 2 || exit 1
203 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
204 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
205 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
206 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
207 PATH=/empty FPATH=/empty; export PATH FPATH
208 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
209 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
210 if (eval "$as_required") 2>/dev/null; then :
215 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
220 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
223 test -z "$as_dir" && as_dir=.
227 for as_base in sh bash ksh sh5; do
228 # Try only shells that exist, to save several forks.
229 as_shell=$as_dir/$as_base
230 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
231 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
232 CONFIG_SHELL=$as_shell as_have_required=yes
233 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
241 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
242 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
243 CONFIG_SHELL=$SHELL as_have_required=yes
248 if test "x$CONFIG_SHELL" != x; then :
250 # We cannot yet assume a decent shell, so we have to provide a
251 # neutralization value for shells without unset; and this also
252 # works around shells that cannot unset nonexistent variables.
253 # Preserve -v and -x to the replacement shell.
256 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
258 *v*x* | *x*v* ) as_opts=-vx ;;
263 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
264 # Admittedly, this is quite paranoid, since all the known shells bail
265 # out after a failed `exec'.
266 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
270 if test x$as_have_required = xno; then :
271 $as_echo "$0: This script requires a shell more modern than all"
272 $as_echo "$0: the shells that I found on your system."
273 if test x${ZSH_VERSION+set} = xset ; then
274 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
275 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
277 $as_echo "$0: Please tell bug-autoconf@gnu.org and
278 $0: cjwatson@debian.org about your system, including any
279 $0: error possibly output before this message. Then install
280 $0: a modern shell, or manually run the script under such a
281 $0: shell if you do have one."
287 SHELL=${CONFIG_SHELL-/bin/sh}
289 # Unset more variables known to interfere with behavior of common tools.
290 CLICOLOR_FORCE= GREP_OPTIONS=
291 unset CLICOLOR_FORCE GREP_OPTIONS
293 ## --------------------- ##
294 ## M4sh Shell Functions. ##
295 ## --------------------- ##
298 # Portably unset VAR.
301 { eval $1=; unset $1;}
305 # as_fn_set_status STATUS
306 # -----------------------
307 # Set $? to STATUS, without forking.
315 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
325 # Create "$as_dir" as a directory, including parents if necessary.
330 -*) as_dir=./$as_dir;;
332 test -d "$as_dir" || eval $as_mkdir_p || {
336 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
339 as_dirs="'$as_qdir' $as_dirs"
340 as_dir=`$as_dirname -- "$as_dir" ||
341 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
342 X"$as_dir" : 'X\(//\)[^/]' \| \
343 X"$as_dir" : 'X\(//\)$' \| \
344 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
345 $as_echo X"$as_dir" |
346 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
363 test -d "$as_dir" && break
365 test -z "$as_dirs" || eval "mkdir $as_dirs"
366 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
371 # as_fn_executable_p FILE
372 # -----------------------
373 # Test if FILE is an executable regular file.
374 as_fn_executable_p ()
376 test -f "$1" && test -x "$1"
377 } # as_fn_executable_p
378 # as_fn_append VAR VALUE
379 # ----------------------
380 # Append the text in VALUE to the end of the definition contained in VAR. Take
381 # advantage of any shell optimizations that allow amortized linear growth over
382 # repeated appends, instead of the typical quadratic growth present in naive
384 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
385 eval 'as_fn_append ()
398 # Perform arithmetic evaluation on the ARGs, and store the result in the
399 # global $as_val. Take advantage of shells that can avoid forks. The arguments
400 # must be portable across $(()) and expr.
401 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
409 as_val=`expr "$@" || test $? -eq 1`
414 # as_fn_error STATUS ERROR [LINENO LOG_FD]
415 # ----------------------------------------
416 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
417 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
418 # script with STATUS, using 1 if that was 0.
421 as_status=$1; test $as_status -eq 0 && as_status=1
423 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
424 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
426 $as_echo "$as_me: error: $2" >&2
427 as_fn_exit $as_status
430 if expr a : '\(a\)' >/dev/null 2>&1 &&
431 test "X`expr 00001 : '.*\(...\)'`" = X001; then
437 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
443 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
449 as_me=`$as_basename -- "$0" ||
450 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
451 X"$0" : 'X\(//\)$' \| \
452 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
454 sed '/^.*\/\([^/][^/]*\)\/*$/{
468 # Avoid depending upon Character Ranges.
469 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
470 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
471 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
472 as_cr_digits='0123456789'
473 as_cr_alnum=$as_cr_Letters$as_cr_digits
476 as_lineno_1=$LINENO as_lineno_1a=$LINENO
477 as_lineno_2=$LINENO as_lineno_2a=$LINENO
478 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
479 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
480 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
492 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
496 chmod +x "$as_me.lineno" ||
497 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
499 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
500 # already done that, so ensure we don't try to do so again and fall
501 # in an infinite loop. This has already happened in practice.
502 _as_can_reexec=no; export _as_can_reexec
503 # Don't try to exec as it changes $[0], causing all sort of problems
504 # (the dirname of $[0] is not the place where we might find the
505 # original and so on. Autoconf is especially sensitive to this).
507 # Exit status is that of the last command.
511 ECHO_C= ECHO_N= ECHO_T=
512 case `echo -n x` in #(((((
514 case `echo 'xy\c'` in
515 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
517 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
524 rm -f conf$$ conf$$.exe conf$$.file
525 if test -d conf$$.dir; then
526 rm -f conf$$.dir/conf$$.file
529 mkdir conf$$.dir 2>/dev/null
531 if (echo >conf$$.file) 2>/dev/null; then
532 if ln -s conf$$.file conf$$ 2>/dev/null; then
534 # ... but there are two gotchas:
535 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
536 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
537 # In both cases, we have to default to `cp -pR'.
538 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
540 elif ln conf$$.file conf$$ 2>/dev/null; then
548 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
549 rmdir conf$$.dir 2>/dev/null
551 if mkdir -p . 2>/dev/null; then
552 as_mkdir_p='mkdir -p "$as_dir"'
554 test -d ./-p && rmdir ./-p
559 as_executable_p=as_fn_executable_p
561 # Sed expression to map a string onto a valid CPP name.
562 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
564 # Sed expression to map a string onto a valid variable name.
565 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
567 SHELL=${CONFIG_SHELL-/bin/sh}
570 test -n "$DJDIR" || exec 7<&0 </dev/null
574 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
575 # so uname gets run too.
576 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
581 ac_default_prefix=/usr/local
583 ac_config_libobj_dir=.
590 # Identity of this package.
591 PACKAGE_NAME='libpipeline'
592 PACKAGE_TARNAME='libpipeline'
593 PACKAGE_VERSION='1.2.5'
594 PACKAGE_STRING='libpipeline 1.2.5'
595 PACKAGE_BUGREPORT='cjwatson@debian.org'
598 ac_unique_file="lib/pipeline.c"
599 # Factoring default headers for most tests.
600 ac_includes_default="\
602 #ifdef HAVE_SYS_TYPES_H
603 # include <sys/types.h>
605 #ifdef HAVE_SYS_STAT_H
606 # include <sys/stat.h>
612 # ifdef HAVE_STDLIB_H
617 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
622 #ifdef HAVE_STRINGS_H
623 # include <strings.h>
625 #ifdef HAVE_INTTYPES_H
626 # include <inttypes.h>
635 gl_use_threads_default=
638 ac_subst_vars='gltests_LTLIBOBJS
648 NEXT_AS_FIRST_DIRECTIVE_WCHAR_H
743 NEXT_AS_FIRST_DIRECTIVE_UNISTD_H
745 PTHREAD_H_DEFINES_STRUCT_TIMESPEC
746 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC
747 TIME_H_DEFINES_STRUCT_TIMESPEC
748 NEXT_AS_FIRST_DIRECTIVE_TIME_H
757 HAVE_DECL_LOCALTIME_R
763 NEXT_AS_FIRST_DIRECTIVE_SYS_WAIT_H
767 NEXT_AS_FIRST_DIRECTIVE_SYS_TYPES_H
769 NEXT_AS_FIRST_DIRECTIVE_SYS_TIME_H
771 REPLACE_STRUCT_TIMEVAL
777 WINDOWS_64_BIT_ST_SIZE
778 NEXT_AS_FIRST_DIRECTIVE_SYS_STAT_H
814 NEXT_AS_FIRST_DIRECTIVE_SYS_SELECT_H
821 NEXT_AS_FIRST_DIRECTIVE_STRING_H
824 NEXT_AS_FIRST_DIRECTIVE_STDLIB_H
826 NEXT_AS_FIRST_DIRECTIVE_STDIO_H
828 GL_GENERATE_STDINT_H_FALSE
829 GL_GENERATE_STDINT_H_TRUE
838 HAVE_SIGNED_SIG_ATOMIC_T
841 BITSIZEOF_SIG_ATOMIC_T
847 NEXT_AS_FIRST_DIRECTIVE_STDINT_H
852 HAVE_UNSIGNED_LONG_LONG_INT
854 NEXT_AS_FIRST_DIRECTIVE_STDDEF_H
856 GL_GENERATE_STDDEF_H_FALSE
857 GL_GENERATE_STDDEF_H_TRUE
862 GL_GENERATE_STDBOOL_H_FALSE
863 GL_GENERATE_STDBOOL_H_TRUE
865 GL_GENERATE_STDARG_H_FALSE
866 GL_GENERATE_STDARG_H_TRUE
868 NEXT_AS_FIRST_DIRECTIVE_STDARG_H
877 REPLACE_STDIO_WRITE_FUNCS
878 REPLACE_STDIO_READ_FUNCS
887 REPLACE_OBSTACK_PRINTF
912 HAVE_DECL_OBSTACK_PRINTF
918 GNULIB_VSPRINTF_POSIX
922 GNULIB_VFPRINTF_POSIX
929 GNULIB_STDIO_H_SIGPIPE
930 GNULIB_STDIO_H_NONBLOCKING
945 GNULIB_OBSTACK_PRINTF_POSIX
946 GNULIB_OBSTACK_PRINTF
971 NEXT_AS_FIRST_DIRECTIVE_SIGNAL_H
974 REPLACE_PTHREAD_SIGMASK
976 HAVE_TYPE_VOLATILE_SIG_ATOMIC_T
977 HAVE_STRUCT_SIGACTION_SA_SIGACTION
983 HAVE_POSIX_SIGNALBLOCKING
986 GNULIB_SIGNAL_H_SIGPIPE
988 GNULIB_PTHREAD_SIGMASK
989 APPLE_UNIVERSAL_BUILD
990 HAVE_MSVC_INVALID_PARAMETER_HANDLER
1008 HAVE_DECL_STRERROR_R
1077 REPLACE_CANONICALIZE_FILE_NAME
1082 HAVE_STRUCT_RANDOM_DATA
1104 HAVE_DECL_GETLOADAVG
1105 HAVE_CANONICALIZE_FILE_NAME
1116 GNULIB_SECURE_GETENV
1119 GNULIB_REALLOC_POSIX
1136 GNULIB_CANONICALIZE_FILE_NAME
1147 IGNORE_UNUSED_LIBRARIES_CFLAGS
1151 GL_GENERATE_FLOAT_H_FALSE
1152 GL_GENERATE_FLOAT_H_TRUE
1154 NEXT_AS_FIRST_DIRECTIVE_FLOAT_H
1162 GL_GENERATE_ERRNO_H_FALSE
1163 GL_GENERATE_ERRNO_H_TRUE
1165 NEXT_AS_FIRST_DIRECTIVE_ERRNO_H
1168 PRAGMA_SYSTEM_HEADER
1169 INCLUDE_NEXT_AS_FIRST_DIRECTIVE
1171 UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS
1172 UNISTD_H_HAVE_WINSOCK2_H
1193 REPLACE_GETDOMAINNAME
1204 HAVE_DECL_SETHOSTNAME
1205 HAVE_DECL_GETUSERSHELL
1206 HAVE_DECL_GETPAGESIZE
1207 HAVE_DECL_GETLOGIN_R
1208 HAVE_DECL_GETDOMAINNAME
1247 GNULIB_UNISTD_H_SIGPIPE
1248 GNULIB_UNISTD_H_NONBLOCKING
1274 GNULIB_GETDTABLESIZE
1275 GNULIB_GETDOMAINNAME
1291 GL_GENERATE_ALLOCA_H_FALSE
1292 GL_GENERATE_ALLOCA_H_TRUE
1295 GL_COND_LIBTOOL_FALSE
1296 GL_COND_LIBTOOL_TRUE
1354 MAINTAINER_MODE_FALSE
1355 MAINTAINER_MODE_TRUE
1357 AM_DEFAULT_VERBOSITY
1368 INSTALL_STRIP_PROGRAM
1410 program_transform_name
1423 enable_option_checking
1425 enable_maintainer_mode
1426 enable_dependency_tracking
1438 enable_socketpair_pipe
1440 ac_precious_vars='build_alias
1456 # Initialize some variables set by options.
1458 ac_init_version=false
1459 ac_unrecognized_opts=
1460 ac_unrecognized_sep=
1461 # The variables have the same names as the options, with
1462 # dashes changed to underlines.
1463 cache_file=/dev/null
1470 program_transform_name=s,x,x,
1478 # Installation directory options.
1479 # These are left unexpanded so users can "make install exec_prefix=/foo"
1480 # and all the variables that are supposed to be based on exec_prefix
1481 # by default will actually change.
1482 # Use braces instead of parens because sh, perl, etc. also accept them.
1483 # (The list follows the same order as the GNU Coding Standards.)
1484 bindir='${exec_prefix}/bin'
1485 sbindir='${exec_prefix}/sbin'
1486 libexecdir='${exec_prefix}/libexec'
1487 datarootdir='${prefix}/share'
1488 datadir='${datarootdir}'
1489 sysconfdir='${prefix}/etc'
1490 sharedstatedir='${prefix}/com'
1491 localstatedir='${prefix}/var'
1492 includedir='${prefix}/include'
1493 oldincludedir='/usr/include'
1494 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1495 infodir='${datarootdir}/info'
1500 libdir='${exec_prefix}/lib'
1501 localedir='${datarootdir}/locale'
1502 mandir='${datarootdir}/man'
1508 # If the previous option needs an argument, assign it.
1509 if test -n "$ac_prev"; then
1510 eval $ac_prev=\$ac_option
1516 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1521 # Accept the important Cygnus configure options, so we can diagnose typos.
1523 case $ac_dashdash$ac_option in
1527 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1529 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1530 bindir=$ac_optarg ;;
1532 -build | --build | --buil | --bui | --bu)
1533 ac_prev=build_alias ;;
1534 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1535 build_alias=$ac_optarg ;;
1537 -cache-file | --cache-file | --cache-fil | --cache-fi \
1538 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1539 ac_prev=cache_file ;;
1540 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1541 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1542 cache_file=$ac_optarg ;;
1544 --config-cache | -C)
1545 cache_file=config.cache ;;
1547 -datadir | --datadir | --datadi | --datad)
1549 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1550 datadir=$ac_optarg ;;
1552 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1553 | --dataroo | --dataro | --datar)
1554 ac_prev=datarootdir ;;
1555 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1556 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1557 datarootdir=$ac_optarg ;;
1559 -disable-* | --disable-*)
1560 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1561 # Reject names that are not valid shell variable names.
1562 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1563 as_fn_error $? "invalid feature name: $ac_useropt"
1564 ac_useropt_orig=$ac_useropt
1565 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1566 case $ac_user_opts in
1568 "enable_$ac_useropt"
1570 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1571 ac_unrecognized_sep=', ';;
1573 eval enable_$ac_useropt=no ;;
1575 -docdir | --docdir | --docdi | --doc | --do)
1577 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1578 docdir=$ac_optarg ;;
1580 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1582 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1583 dvidir=$ac_optarg ;;
1585 -enable-* | --enable-*)
1586 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1587 # Reject names that are not valid shell variable names.
1588 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1589 as_fn_error $? "invalid feature name: $ac_useropt"
1590 ac_useropt_orig=$ac_useropt
1591 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1592 case $ac_user_opts in
1594 "enable_$ac_useropt"
1596 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1597 ac_unrecognized_sep=', ';;
1599 eval enable_$ac_useropt=\$ac_optarg ;;
1601 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1602 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1603 | --exec | --exe | --ex)
1604 ac_prev=exec_prefix ;;
1605 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1606 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1607 | --exec=* | --exe=* | --ex=*)
1608 exec_prefix=$ac_optarg ;;
1610 -gas | --gas | --ga | --g)
1611 # Obsolete; use --with-gas.
1614 -help | --help | --hel | --he | -h)
1615 ac_init_help=long ;;
1616 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1617 ac_init_help=recursive ;;
1618 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1619 ac_init_help=short ;;
1621 -host | --host | --hos | --ho)
1622 ac_prev=host_alias ;;
1623 -host=* | --host=* | --hos=* | --ho=*)
1624 host_alias=$ac_optarg ;;
1626 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1628 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1630 htmldir=$ac_optarg ;;
1632 -includedir | --includedir | --includedi | --included | --include \
1633 | --includ | --inclu | --incl | --inc)
1634 ac_prev=includedir ;;
1635 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1636 | --includ=* | --inclu=* | --incl=* | --inc=*)
1637 includedir=$ac_optarg ;;
1639 -infodir | --infodir | --infodi | --infod | --info | --inf)
1641 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1642 infodir=$ac_optarg ;;
1644 -libdir | --libdir | --libdi | --libd)
1646 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1647 libdir=$ac_optarg ;;
1649 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1650 | --libexe | --libex | --libe)
1651 ac_prev=libexecdir ;;
1652 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1653 | --libexe=* | --libex=* | --libe=*)
1654 libexecdir=$ac_optarg ;;
1656 -localedir | --localedir | --localedi | --localed | --locale)
1657 ac_prev=localedir ;;
1658 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1659 localedir=$ac_optarg ;;
1661 -localstatedir | --localstatedir | --localstatedi | --localstated \
1662 | --localstate | --localstat | --localsta | --localst | --locals)
1663 ac_prev=localstatedir ;;
1664 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1665 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1666 localstatedir=$ac_optarg ;;
1668 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1670 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1671 mandir=$ac_optarg ;;
1673 -nfp | --nfp | --nf)
1674 # Obsolete; use --without-fp.
1677 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1678 | --no-cr | --no-c | -n)
1681 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1682 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1685 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1686 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1687 | --oldin | --oldi | --old | --ol | --o)
1688 ac_prev=oldincludedir ;;
1689 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1690 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1691 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1692 oldincludedir=$ac_optarg ;;
1694 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1696 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1697 prefix=$ac_optarg ;;
1699 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1700 | --program-pre | --program-pr | --program-p)
1701 ac_prev=program_prefix ;;
1702 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1703 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1704 program_prefix=$ac_optarg ;;
1706 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1707 | --program-suf | --program-su | --program-s)
1708 ac_prev=program_suffix ;;
1709 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1710 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1711 program_suffix=$ac_optarg ;;
1713 -program-transform-name | --program-transform-name \
1714 | --program-transform-nam | --program-transform-na \
1715 | --program-transform-n | --program-transform- \
1716 | --program-transform | --program-transfor \
1717 | --program-transfo | --program-transf \
1718 | --program-trans | --program-tran \
1719 | --progr-tra | --program-tr | --program-t)
1720 ac_prev=program_transform_name ;;
1721 -program-transform-name=* | --program-transform-name=* \
1722 | --program-transform-nam=* | --program-transform-na=* \
1723 | --program-transform-n=* | --program-transform-=* \
1724 | --program-transform=* | --program-transfor=* \
1725 | --program-transfo=* | --program-transf=* \
1726 | --program-trans=* | --program-tran=* \
1727 | --progr-tra=* | --program-tr=* | --program-t=*)
1728 program_transform_name=$ac_optarg ;;
1730 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1732 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1733 pdfdir=$ac_optarg ;;
1735 -psdir | --psdir | --psdi | --psd | --ps)
1737 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1740 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1741 | -silent | --silent | --silen | --sile | --sil)
1744 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1746 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1748 sbindir=$ac_optarg ;;
1750 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1751 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1752 | --sharedst | --shareds | --shared | --share | --shar \
1754 ac_prev=sharedstatedir ;;
1755 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1756 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1757 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1759 sharedstatedir=$ac_optarg ;;
1761 -site | --site | --sit)
1763 -site=* | --site=* | --sit=*)
1766 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1768 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1769 srcdir=$ac_optarg ;;
1771 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1772 | --syscon | --sysco | --sysc | --sys | --sy)
1773 ac_prev=sysconfdir ;;
1774 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1775 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1776 sysconfdir=$ac_optarg ;;
1778 -target | --target | --targe | --targ | --tar | --ta | --t)
1779 ac_prev=target_alias ;;
1780 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1781 target_alias=$ac_optarg ;;
1783 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1786 -version | --version | --versio | --versi | --vers | -V)
1787 ac_init_version=: ;;
1790 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1791 # Reject names that are not valid shell variable names.
1792 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1793 as_fn_error $? "invalid package name: $ac_useropt"
1794 ac_useropt_orig=$ac_useropt
1795 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1796 case $ac_user_opts in
1800 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1801 ac_unrecognized_sep=', ';;
1803 eval with_$ac_useropt=\$ac_optarg ;;
1805 -without-* | --without-*)
1806 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1807 # Reject names that are not valid shell variable names.
1808 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1809 as_fn_error $? "invalid package name: $ac_useropt"
1810 ac_useropt_orig=$ac_useropt
1811 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1812 case $ac_user_opts in
1816 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1817 ac_unrecognized_sep=', ';;
1819 eval with_$ac_useropt=no ;;
1822 # Obsolete; use --with-x.
1825 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1826 | --x-incl | --x-inc | --x-in | --x-i)
1827 ac_prev=x_includes ;;
1828 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1829 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1830 x_includes=$ac_optarg ;;
1832 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1833 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1834 ac_prev=x_libraries ;;
1835 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1836 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1837 x_libraries=$ac_optarg ;;
1839 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1840 Try \`$0 --help' for more information"
1844 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1845 # Reject names that are not valid shell variable names.
1846 case $ac_envvar in #(
1847 '' | [0-9]* | *[!_$as_cr_alnum]* )
1848 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1850 eval $ac_envvar=\$ac_optarg
1851 export $ac_envvar ;;
1854 # FIXME: should be removed in autoconf 3.0.
1855 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1856 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1857 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1858 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1864 if test -n "$ac_prev"; then
1865 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1866 as_fn_error $? "missing argument to $ac_option"
1869 if test -n "$ac_unrecognized_opts"; then
1870 case $enable_option_checking in
1872 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1873 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1877 # Check all directory arguments for consistency.
1878 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1879 datadir sysconfdir sharedstatedir localstatedir includedir \
1880 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1881 libdir localedir mandir
1883 eval ac_val=\$$ac_var
1884 # Remove trailing slashes.
1887 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1888 eval $ac_var=\$ac_val;;
1890 # Be sure to have absolute directory names.
1892 [\\/$]* | ?:[\\/]* ) continue;;
1893 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1895 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1898 # There might be people who depend on the old broken behavior: `$host'
1899 # used to hold the argument of --host etc.
1900 # FIXME: To remove some day.
1903 target=$target_alias
1905 # FIXME: To remove some day.
1906 if test "x$host_alias" != x; then
1907 if test "x$build_alias" = x; then
1908 cross_compiling=maybe
1909 elif test "x$build_alias" != "x$host_alias"; then
1915 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1917 test "$silent" = yes && exec 6>/dev/null
1920 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1921 ac_ls_di=`ls -di .` &&
1922 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1923 as_fn_error $? "working directory cannot be determined"
1924 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1925 as_fn_error $? "pwd does not report name of working directory"
1928 # Find the source files, if location was not specified.
1929 if test -z "$srcdir"; then
1930 ac_srcdir_defaulted=yes
1931 # Try the directory containing this script, then the parent directory.
1932 ac_confdir=`$as_dirname -- "$as_myself" ||
1933 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1934 X"$as_myself" : 'X\(//\)[^/]' \| \
1935 X"$as_myself" : 'X\(//\)$' \| \
1936 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1937 $as_echo X"$as_myself" |
1938 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1956 if test ! -r "$srcdir/$ac_unique_file"; then
1960 ac_srcdir_defaulted=no
1962 if test ! -r "$srcdir/$ac_unique_file"; then
1963 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1964 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1966 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1968 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1970 # When building in place, set srcdir=.
1971 if test "$ac_abs_confdir" = "$ac_pwd"; then
1974 # Remove unnecessary trailing slashes from srcdir.
1975 # Double slashes in file names in object file debugging info
1976 # mess up M-x gdb in Emacs.
1978 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1980 for ac_var in $ac_precious_vars; do
1981 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1982 eval ac_env_${ac_var}_value=\$${ac_var}
1983 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1984 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1988 # Report the --help message.
1990 if test "$ac_init_help" = "long"; then
1991 # Omit some internal or obsolete options to make the list less imposing.
1992 # This message is too long to be a string in the A/UX 3.1 sh.
1994 \`configure' configures libpipeline 1.2.5 to adapt to many kinds of systems.
1996 Usage: $0 [OPTION]... [VAR=VALUE]...
1998 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1999 VAR=VALUE. See below for descriptions of some of the useful variables.
2001 Defaults for the options are specified in brackets.
2004 -h, --help display this help and exit
2005 --help=short display options specific to this package
2006 --help=recursive display the short help of all the included packages
2007 -V, --version display version information and exit
2008 -q, --quiet, --silent do not print \`checking ...' messages
2009 --cache-file=FILE cache test results in FILE [disabled]
2010 -C, --config-cache alias for \`--cache-file=config.cache'
2011 -n, --no-create do not create output files
2012 --srcdir=DIR find the sources in DIR [configure dir or \`..']
2014 Installation directories:
2015 --prefix=PREFIX install architecture-independent files in PREFIX
2016 [$ac_default_prefix]
2017 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
2020 By default, \`make install' will install all the files in
2021 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
2022 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
2023 for instance \`--prefix=\$HOME'.
2025 For better control, use the options below.
2027 Fine tuning of the installation directories:
2028 --bindir=DIR user executables [EPREFIX/bin]
2029 --sbindir=DIR system admin executables [EPREFIX/sbin]
2030 --libexecdir=DIR program executables [EPREFIX/libexec]
2031 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
2032 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
2033 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
2034 --libdir=DIR object code libraries [EPREFIX/lib]
2035 --includedir=DIR C header files [PREFIX/include]
2036 --oldincludedir=DIR C header files for non-gcc [/usr/include]
2037 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
2038 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
2039 --infodir=DIR info documentation [DATAROOTDIR/info]
2040 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
2041 --mandir=DIR man documentation [DATAROOTDIR/man]
2042 --docdir=DIR documentation root [DATAROOTDIR/doc/libpipeline]
2043 --htmldir=DIR html documentation [DOCDIR]
2044 --dvidir=DIR dvi documentation [DOCDIR]
2045 --pdfdir=DIR pdf documentation [DOCDIR]
2046 --psdir=DIR ps documentation [DOCDIR]
2052 --program-prefix=PREFIX prepend PREFIX to installed program names
2053 --program-suffix=SUFFIX append SUFFIX to installed program names
2054 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
2057 --build=BUILD configure for building on BUILD [guessed]
2058 --host=HOST cross-compile to build programs to run on HOST [BUILD]
2062 if test -n "$ac_init_help"; then
2063 case $ac_init_help in
2064 short | recursive ) echo "Configuration of libpipeline 1.2.5:";;
2069 --disable-option-checking ignore unrecognized --enable/--with options
2070 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
2071 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
2072 --enable-silent-rules less verbose build output (undo: "make V=1")
2073 --disable-silent-rules verbose build output (undo: "make V=0")
2074 --enable-maintainer-mode
2075 enable make rules and dependencies not useful (and
2076 sometimes confusing) to the casual installer
2077 --enable-dependency-tracking
2078 do not reject slow dependency extractors
2079 --disable-dependency-tracking
2080 speeds up one-time build
2081 --enable-static[=PKGS] build static libraries [default=no]
2082 --enable-shared[=PKGS] build shared libraries [default=yes]
2083 --enable-fast-install[=PKGS]
2084 optimize for fast installation [default=yes]
2085 --disable-libtool-lock avoid locking (might break parallel builds)
2086 --disable-largefile omit support for large files
2087 --enable-threads={posix|solaris|pth|windows}
2088 specify multithreading API
2089 --disable-threads build without multithread safety
2090 --disable-rpath do not hardcode runtime library paths
2091 --enable-socketpair-pipe
2092 Use socketpair(2) as fast replacement for pipe(2)
2095 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
2096 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
2097 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
2099 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
2100 --with-sysroot=DIR Search for dependent libraries within DIR
2101 (or the compiler's sysroot if not specified).
2102 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
2103 --with-libpth-prefix[=DIR] search for libpth in DIR/include and DIR/lib
2104 --without-libpth-prefix don't search for libpth in includedir and libdir
2106 Some influential environment variables:
2107 CC C compiler command
2108 CFLAGS C compiler flags
2109 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
2110 nonstandard directory <lib dir>
2111 LIBS libraries to pass to the linker, e.g. -l<library>
2112 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
2113 you have headers in a nonstandard directory <include dir>
2115 PKG_CONFIG path to pkg-config utility
2117 directories to add to pkg-config's search path
2119 path overriding pkg-config's built-in search path
2121 C compiler flags for CHECK, overriding pkg-config
2122 CHECK_LIBS linker flags for CHECK, overriding pkg-config
2124 Use these variables to override the choices made by `configure' or to help
2125 it to find libraries and programs with nonstandard names/locations.
2127 Report bugs to <cjwatson@debian.org>.
2132 if test "$ac_init_help" = "recursive"; then
2133 # If there are subdirs, report their specific --help.
2134 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
2135 test -d "$ac_dir" ||
2136 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
2141 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
2143 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
2144 # A ".." for each directory in $ac_dir_suffix.
2145 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
2146 case $ac_top_builddir_sub in
2147 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
2148 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
2151 ac_abs_top_builddir=$ac_pwd
2152 ac_abs_builddir=$ac_pwd$ac_dir_suffix
2153 # for backward compatibility:
2154 ac_top_builddir=$ac_top_build_prefix
2157 .) # We are building in place.
2159 ac_top_srcdir=$ac_top_builddir_sub
2160 ac_abs_top_srcdir=$ac_pwd ;;
2161 [\\/]* | ?:[\\/]* ) # Absolute name.
2162 ac_srcdir=$srcdir$ac_dir_suffix;
2163 ac_top_srcdir=$srcdir
2164 ac_abs_top_srcdir=$srcdir ;;
2166 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
2167 ac_top_srcdir=$ac_top_build_prefix$srcdir
2168 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
2170 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
2172 cd "$ac_dir" || { ac_status=$?; continue; }
2173 # Check for guested configure.
2174 if test -f "$ac_srcdir/configure.gnu"; then
2176 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
2177 elif test -f "$ac_srcdir/configure"; then
2179 $SHELL "$ac_srcdir/configure" --help=recursive
2181 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
2183 cd "$ac_pwd" || { ac_status=$?; break; }
2187 test -n "$ac_init_help" && exit $ac_status
2188 if $ac_init_version; then
2190 libpipeline configure 1.2.5
2191 generated by GNU Autoconf 2.69
2193 Copyright (C) 2012 Free Software Foundation, Inc.
2194 This configure script is free software; the Free Software Foundation
2195 gives unlimited permission to copy, distribute and modify it.
2200 ## ------------------------ ##
2201 ## Autoconf initialization. ##
2202 ## ------------------------ ##
2204 # ac_fn_c_try_compile LINENO
2205 # --------------------------
2206 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2207 ac_fn_c_try_compile ()
2209 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2210 rm -f conftest.$ac_objext
2211 if { { ac_try="$ac_compile"
2213 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2214 *) ac_try_echo=$ac_try;;
2216 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2217 $as_echo "$ac_try_echo"; } >&5
2218 (eval "$ac_compile") 2>conftest.err
2220 if test -s conftest.err; then
2221 grep -v '^ *+' conftest.err >conftest.er1
2222 cat conftest.er1 >&5
2223 mv -f conftest.er1 conftest.err
2225 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2226 test $ac_status = 0; } && {
2227 test -z "$ac_c_werror_flag" ||
2228 test ! -s conftest.err
2229 } && test -s conftest.$ac_objext; then :
2232 $as_echo "$as_me: failed program was:" >&5
2233 sed 's/^/| /' conftest.$ac_ext >&5
2237 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2238 as_fn_set_status $ac_retval
2240 } # ac_fn_c_try_compile
2242 # ac_fn_c_try_cpp LINENO
2243 # ----------------------
2244 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2247 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2248 if { { ac_try="$ac_cpp conftest.$ac_ext"
2250 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2251 *) ac_try_echo=$ac_try;;
2253 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2254 $as_echo "$ac_try_echo"; } >&5
2255 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2257 if test -s conftest.err; then
2258 grep -v '^ *+' conftest.err >conftest.er1
2259 cat conftest.er1 >&5
2260 mv -f conftest.er1 conftest.err
2262 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2263 test $ac_status = 0; } > conftest.i && {
2264 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2265 test ! -s conftest.err
2269 $as_echo "$as_me: failed program was:" >&5
2270 sed 's/^/| /' conftest.$ac_ext >&5
2274 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2275 as_fn_set_status $ac_retval
2279 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2280 # -------------------------------------------------------
2281 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2282 # the include files in INCLUDES and setting the cache variable VAR
2284 ac_fn_c_check_header_mongrel ()
2286 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2287 if eval \${$3+:} false; then :
2288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2289 $as_echo_n "checking for $2... " >&6; }
2290 if eval \${$3+:} false; then :
2291 $as_echo_n "(cached) " >&6
2294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2295 $as_echo "$ac_res" >&6; }
2297 # Is the header compilable?
2298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2299 $as_echo_n "checking $2 usability... " >&6; }
2300 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2301 /* end confdefs.h. */
2305 if ac_fn_c_try_compile "$LINENO"; then :
2306 ac_header_compiler=yes
2308 ac_header_compiler=no
2310 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2312 $as_echo "$ac_header_compiler" >&6; }
2314 # Is the header present?
2315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2316 $as_echo_n "checking $2 presence... " >&6; }
2317 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2318 /* end confdefs.h. */
2321 if ac_fn_c_try_cpp "$LINENO"; then :
2322 ac_header_preproc=yes
2324 ac_header_preproc=no
2326 rm -f conftest.err conftest.i conftest.$ac_ext
2327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2328 $as_echo "$ac_header_preproc" >&6; }
2330 # So? What about this header?
2331 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2333 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2334 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2335 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2336 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2339 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2340 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2341 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2342 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2343 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2344 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2345 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2346 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2347 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2348 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2349 ( $as_echo "## ---------------------------------- ##
2350 ## Report this to cjwatson@debian.org ##
2351 ## ---------------------------------- ##"
2352 ) | sed "s/^/$as_me: WARNING: /" >&2
2355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2356 $as_echo_n "checking for $2... " >&6; }
2357 if eval \${$3+:} false; then :
2358 $as_echo_n "(cached) " >&6
2360 eval "$3=\$ac_header_compiler"
2363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2364 $as_echo "$ac_res" >&6; }
2366 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2368 } # ac_fn_c_check_header_mongrel
2370 # ac_fn_c_try_run LINENO
2371 # ----------------------
2372 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2373 # that executables *can* be run.
2376 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2377 if { { ac_try="$ac_link"
2379 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2380 *) ac_try_echo=$ac_try;;
2382 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2383 $as_echo "$ac_try_echo"; } >&5
2384 (eval "$ac_link") 2>&5
2386 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2387 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2388 { { case "(($ac_try" in
2389 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2390 *) ac_try_echo=$ac_try;;
2392 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2393 $as_echo "$ac_try_echo"; } >&5
2394 (eval "$ac_try") 2>&5
2396 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2397 test $ac_status = 0; }; }; then :
2400 $as_echo "$as_me: program exited with status $ac_status" >&5
2401 $as_echo "$as_me: failed program was:" >&5
2402 sed 's/^/| /' conftest.$ac_ext >&5
2404 ac_retval=$ac_status
2406 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2407 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2408 as_fn_set_status $ac_retval
2412 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2413 # -------------------------------------------------------
2414 # Tests whether HEADER exists and can be compiled using the include files in
2415 # INCLUDES, setting the cache variable VAR accordingly.
2416 ac_fn_c_check_header_compile ()
2418 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2420 $as_echo_n "checking for $2... " >&6; }
2421 if eval \${$3+:} false; then :
2422 $as_echo_n "(cached) " >&6
2424 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2425 /* end confdefs.h. */
2429 if ac_fn_c_try_compile "$LINENO"; then :
2434 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2438 $as_echo "$ac_res" >&6; }
2439 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2441 } # ac_fn_c_check_header_compile
2443 # ac_fn_c_try_link LINENO
2444 # -----------------------
2445 # Try to link conftest.$ac_ext, and return whether this succeeded.
2448 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2449 rm -f conftest.$ac_objext conftest$ac_exeext
2450 if { { ac_try="$ac_link"
2452 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2453 *) ac_try_echo=$ac_try;;
2455 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2456 $as_echo "$ac_try_echo"; } >&5
2457 (eval "$ac_link") 2>conftest.err
2459 if test -s conftest.err; then
2460 grep -v '^ *+' conftest.err >conftest.er1
2461 cat conftest.er1 >&5
2462 mv -f conftest.er1 conftest.err
2464 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2465 test $ac_status = 0; } && {
2466 test -z "$ac_c_werror_flag" ||
2467 test ! -s conftest.err
2468 } && test -s conftest$ac_exeext && {
2469 test "$cross_compiling" = yes ||
2470 test -x conftest$ac_exeext
2474 $as_echo "$as_me: failed program was:" >&5
2475 sed 's/^/| /' conftest.$ac_ext >&5
2479 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2480 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2481 # interfere with the next link command; also delete a directory that is
2482 # left behind by Apple's compiler. We do this before executing the actions.
2483 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2484 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2485 as_fn_set_status $ac_retval
2487 } # ac_fn_c_try_link
2489 # ac_fn_c_check_func LINENO FUNC VAR
2490 # ----------------------------------
2491 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2492 ac_fn_c_check_func ()
2494 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2496 $as_echo_n "checking for $2... " >&6; }
2497 if eval \${$3+:} false; then :
2498 $as_echo_n "(cached) " >&6
2500 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2501 /* end confdefs.h. */
2502 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2503 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2504 #define $2 innocuous_$2
2506 /* System header to define __stub macros and hopefully few prototypes,
2507 which can conflict with char $2 (); below.
2508 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2509 <limits.h> exists even on freestanding compilers. */
2512 # include <limits.h>
2514 # include <assert.h>
2519 /* Override any GCC internal prototype to avoid an error.
2520 Use char because int might match the return type of a GCC
2521 builtin and then its argument prototype would still apply. */
2526 /* The GNU C library defines this for functions which it implements
2527 to always fail with ENOSYS. Some functions are actually named
2528 something starting with __ and the normal name is an alias. */
2529 #if defined __stub_$2 || defined __stub___$2
2541 if ac_fn_c_try_link "$LINENO"; then :
2546 rm -f core conftest.err conftest.$ac_objext \
2547 conftest$ac_exeext conftest.$ac_ext
2550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2551 $as_echo "$ac_res" >&6; }
2552 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2554 } # ac_fn_c_check_func
2556 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2557 # -------------------------------------------
2558 # Tests whether TYPE exists after having included INCLUDES, setting cache
2559 # variable VAR accordingly.
2560 ac_fn_c_check_type ()
2562 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2564 $as_echo_n "checking for $2... " >&6; }
2565 if eval \${$3+:} false; then :
2566 $as_echo_n "(cached) " >&6
2569 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2570 /* end confdefs.h. */
2581 if ac_fn_c_try_compile "$LINENO"; then :
2582 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2583 /* end confdefs.h. */
2594 if ac_fn_c_try_compile "$LINENO"; then :
2599 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2601 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2605 $as_echo "$ac_res" >&6; }
2606 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2608 } # ac_fn_c_check_type
2610 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2611 # --------------------------------------------
2612 # Tries to find the compile-time value of EXPR in a program that includes
2613 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2615 ac_fn_c_compute_int ()
2617 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2618 if test "$cross_compiling" = yes; then
2619 # Depending upon the size, compute the lo and hi bounds.
2620 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2621 /* end confdefs.h. */
2626 static int test_array [1 - 2 * !(($2) >= 0)];
2628 return test_array [0];
2634 if ac_fn_c_try_compile "$LINENO"; then :
2637 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2638 /* end confdefs.h. */
2643 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2645 return test_array [0];
2651 if ac_fn_c_try_compile "$LINENO"; then :
2652 ac_hi=$ac_mid; break
2654 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2655 if test $ac_lo -le $ac_mid; then
2659 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2661 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2664 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2665 /* end confdefs.h. */
2670 static int test_array [1 - 2 * !(($2) < 0)];
2672 return test_array [0];
2678 if ac_fn_c_try_compile "$LINENO"; then :
2681 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2682 /* end confdefs.h. */
2687 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2689 return test_array [0];
2695 if ac_fn_c_try_compile "$LINENO"; then :
2696 ac_lo=$ac_mid; break
2698 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2699 if test $ac_mid -le $ac_hi; then
2703 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2705 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2710 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2712 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2713 # Binary search between lo and hi bounds.
2714 while test "x$ac_lo" != "x$ac_hi"; do
2715 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2716 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2717 /* end confdefs.h. */
2722 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2724 return test_array [0];
2730 if ac_fn_c_try_compile "$LINENO"; then :
2733 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2735 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2738 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2742 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2743 /* end confdefs.h. */
2745 static long int longval () { return $2; }
2746 static unsigned long int ulongval () { return $2; }
2753 FILE *f = fopen ("conftest.val", "w");
2758 long int i = longval ();
2761 fprintf (f, "%ld", i);
2765 unsigned long int i = ulongval ();
2768 fprintf (f, "%lu", i);
2770 /* Do not output a trailing newline, as this causes \r\n confusion
2771 on some platforms. */
2772 return ferror (f) || fclose (f) != 0;
2778 if ac_fn_c_try_run "$LINENO"; then :
2779 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2783 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2784 conftest.$ac_objext conftest.beam conftest.$ac_ext
2788 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2789 as_fn_set_status $ac_retval
2791 } # ac_fn_c_compute_int
2793 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2794 # ---------------------------------------------
2795 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2797 ac_fn_c_check_decl ()
2799 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2800 as_decl_name=`echo $2|sed 's/ *(.*//'`
2801 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2803 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2804 if eval \${$3+:} false; then :
2805 $as_echo_n "(cached) " >&6
2807 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2808 /* end confdefs.h. */
2813 #ifndef $as_decl_name
2815 (void) $as_decl_use;
2817 (void) $as_decl_name;
2825 if ac_fn_c_try_compile "$LINENO"; then :
2830 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2834 $as_echo "$ac_res" >&6; }
2835 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2837 } # ac_fn_c_check_decl
2839 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2840 # ----------------------------------------------------
2841 # Tries to find if the field MEMBER exists in type AGGR, after including
2842 # INCLUDES, setting cache variable VAR accordingly.
2843 ac_fn_c_check_member ()
2845 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2847 $as_echo_n "checking for $2.$3... " >&6; }
2848 if eval \${$4+:} false; then :
2849 $as_echo_n "(cached) " >&6
2851 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2852 /* end confdefs.h. */
2864 if ac_fn_c_try_compile "$LINENO"; then :
2867 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2868 /* end confdefs.h. */
2874 if (sizeof ac_aggr.$3)
2880 if ac_fn_c_try_compile "$LINENO"; then :
2885 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2887 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2891 $as_echo "$ac_res" >&6; }
2892 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2894 } # ac_fn_c_check_member
2895 cat >config.log <<_ACEOF
2896 This file contains any messages produced by compilers while
2897 running configure, to aid debugging if configure makes a mistake.
2899 It was created by libpipeline $as_me 1.2.5, which was
2900 generated by GNU Autoconf 2.69. Invocation command line was
2912 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2913 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2914 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2915 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2916 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2918 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2919 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2921 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2922 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2923 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2924 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2925 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2926 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2927 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2931 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2935 test -z "$as_dir" && as_dir=.
2936 $as_echo "PATH: $as_dir"
2952 # Keep a trace of the command line.
2953 # Strip out --no-create and --no-recursion so they do not pile up.
2954 # Strip out --silent because we don't want to record it for future runs.
2955 # Also quote any args containing shell meta-characters.
2956 # Make two passes to allow for proper duplicate-argument suppression.
2960 ac_must_keep_next=false
2966 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2967 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2968 | -silent | --silent | --silen | --sile | --sil)
2971 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2974 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2976 as_fn_append ac_configure_args1 " '$ac_arg'"
2977 if test $ac_must_keep_next = true; then
2978 ac_must_keep_next=false # Got value, back to normal.
2981 *=* | --config-cache | -C | -disable-* | --disable-* \
2982 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2983 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2984 | -with-* | --with-* | -without-* | --without-* | --x)
2985 case "$ac_configure_args0 " in
2986 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2989 -* ) ac_must_keep_next=true ;;
2992 as_fn_append ac_configure_args " '$ac_arg'"
2997 { ac_configure_args0=; unset ac_configure_args0;}
2998 { ac_configure_args1=; unset ac_configure_args1;}
3000 # When interrupted or exit'd, cleanup temporary files, and complete
3001 # config.log. We remove comments because anyway the quotes in there
3002 # would cause problems or look ugly.
3003 # WARNING: Use '\'' to represent an apostrophe within the trap.
3004 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
3005 trap 'exit_status=$?
3006 # Save into config.log some information that might help in debugging.
3010 $as_echo "## ---------------- ##
3011 ## Cache variables. ##
3012 ## ---------------- ##"
3014 # The following way of writing the cache mishandles newlines in values,
3016 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
3017 eval ac_val=\$$ac_var
3021 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
3022 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
3025 _ | IFS | as_nl) ;; #(
3026 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
3027 *) { eval $ac_var=; unset $ac_var;} ;;
3032 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
3033 *${as_nl}ac_space=\ *)
3035 "s/'\''/'\''\\\\'\'''\''/g;
3036 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
3039 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
3046 $as_echo "## ----------------- ##
3047 ## Output variables. ##
3048 ## ----------------- ##"
3050 for ac_var in $ac_subst_vars
3052 eval ac_val=\$$ac_var
3054 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3056 $as_echo "$ac_var='\''$ac_val'\''"
3060 if test -n "$ac_subst_files"; then
3061 $as_echo "## ------------------- ##
3062 ## File substitutions. ##
3063 ## ------------------- ##"
3065 for ac_var in $ac_subst_files
3067 eval ac_val=\$$ac_var
3069 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3071 $as_echo "$ac_var='\''$ac_val'\''"
3076 if test -s confdefs.h; then
3077 $as_echo "## ----------- ##
3084 test "$ac_signal" != 0 &&
3085 $as_echo "$as_me: caught signal $ac_signal"
3086 $as_echo "$as_me: exit $exit_status"
3088 rm -f core *.core core.conftest.* &&
3089 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
3092 for ac_signal in 1 2 13 15; do
3093 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
3097 # confdefs.h avoids OS command line length limits that DEFS can exceed.
3098 rm -f -r conftest* confdefs.h
3100 $as_echo "/* confdefs.h */" > confdefs.h
3102 # Predefined preprocessor variables.
3104 cat >>confdefs.h <<_ACEOF
3105 #define PACKAGE_NAME "$PACKAGE_NAME"
3108 cat >>confdefs.h <<_ACEOF
3109 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
3112 cat >>confdefs.h <<_ACEOF
3113 #define PACKAGE_VERSION "$PACKAGE_VERSION"
3116 cat >>confdefs.h <<_ACEOF
3117 #define PACKAGE_STRING "$PACKAGE_STRING"
3120 cat >>confdefs.h <<_ACEOF
3121 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
3124 cat >>confdefs.h <<_ACEOF
3125 #define PACKAGE_URL "$PACKAGE_URL"
3129 # Let the site file select an alternate cache file if it wants to.
3130 # Prefer an explicitly selected file to automatically selected ones.
3133 if test -n "$CONFIG_SITE"; then
3134 # We do not want a PATH search for config.site.
3135 case $CONFIG_SITE in #((
3136 -*) ac_site_file1=./$CONFIG_SITE;;
3137 */*) ac_site_file1=$CONFIG_SITE;;
3138 *) ac_site_file1=./$CONFIG_SITE;;
3140 elif test "x$prefix" != xNONE; then
3141 ac_site_file1=$prefix/share/config.site
3142 ac_site_file2=$prefix/etc/config.site
3144 ac_site_file1=$ac_default_prefix/share/config.site
3145 ac_site_file2=$ac_default_prefix/etc/config.site
3147 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
3149 test "x$ac_site_file" = xNONE && continue
3150 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
3151 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
3152 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
3153 sed 's/^/| /' "$ac_site_file" >&5
3155 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3156 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3157 as_fn_error $? "failed to load site script $ac_site_file
3158 See \`config.log' for more details" "$LINENO" 5; }
3162 if test -r "$cache_file"; then
3163 # Some versions of bash will fail to source /dev/null (special files
3164 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
3165 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
3166 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
3167 $as_echo "$as_me: loading cache $cache_file" >&6;}
3169 [\\/]* | ?:[\\/]* ) . "$cache_file";;
3170 *) . "./$cache_file";;
3174 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
3175 $as_echo "$as_me: creating cache $cache_file" >&6;}
3179 gl_header_list="$gl_header_list unistd.h"
3180 gl_header_list="$gl_header_list sys/mman.h"
3181 gl_func_list="$gl_func_list mprotect"
3182 gl_func_list="$gl_func_list _set_invalid_parameter_handler"
3183 gl_func_list="$gl_func_list setenv"
3184 gl_func_list="$gl_func_list sigaction"
3185 gl_func_list="$gl_func_list sigaltstack"
3186 gl_func_list="$gl_func_list siginterrupt"
3187 gl_func_list="$gl_func_list snprintf"
3188 gl_header_list="$gl_header_list wchar.h"
3189 gl_header_list="$gl_header_list stdint.h"
3190 gl_header_list="$gl_header_list sys/socket.h"
3191 gl_func_list="$gl_func_list strndup"
3192 gl_header_list="$gl_header_list sys/select.h"
3193 gl_header_list="$gl_header_list sys/stat.h"
3194 gl_header_list="$gl_header_list sys/time.h"
3195 gl_header_list="$gl_header_list sys/wait.h"
3196 gl_func_list="$gl_func_list vasnprintf"
3197 gl_header_list="$gl_header_list features.h"
3198 # Check that the precious variables saved in the cache have kept the same
3200 ac_cache_corrupted=false
3201 for ac_var in $ac_precious_vars; do
3202 eval ac_old_set=\$ac_cv_env_${ac_var}_set
3203 eval ac_new_set=\$ac_env_${ac_var}_set
3204 eval ac_old_val=\$ac_cv_env_${ac_var}_value
3205 eval ac_new_val=\$ac_env_${ac_var}_value
3206 case $ac_old_set,$ac_new_set in
3208 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3209 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3210 ac_cache_corrupted=: ;;
3212 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3213 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3214 ac_cache_corrupted=: ;;
3217 if test "x$ac_old_val" != "x$ac_new_val"; then
3218 # differences in whitespace do not lead to failure.
3219 ac_old_val_w=`echo x $ac_old_val`
3220 ac_new_val_w=`echo x $ac_new_val`
3221 if test "$ac_old_val_w" != "$ac_new_val_w"; then
3222 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3223 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3224 ac_cache_corrupted=:
3226 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3227 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3228 eval $ac_var=\$ac_old_val
3230 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
3231 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
3232 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
3233 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
3236 # Pass precious variables to config.status.
3237 if test "$ac_new_set" = set; then
3239 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3240 *) ac_arg=$ac_var=$ac_new_val ;;
3242 case " $ac_configure_args " in
3243 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
3244 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3248 if $ac_cache_corrupted; then
3249 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3250 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3251 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3252 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3253 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3255 ## -------------------- ##
3256 ## Main body of script. ##
3257 ## -------------------- ##
3260 ac_cpp='$CPP $CPPFLAGS'
3261 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3262 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3263 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3267 for ac_dir in tools "$srcdir"/tools; do
3268 if test -f "$ac_dir/install-sh"; then
3270 ac_install_sh="$ac_aux_dir/install-sh -c"
3272 elif test -f "$ac_dir/install.sh"; then
3274 ac_install_sh="$ac_aux_dir/install.sh -c"
3276 elif test -f "$ac_dir/shtool"; then
3278 ac_install_sh="$ac_aux_dir/shtool install -c"
3282 if test -z "$ac_aux_dir"; then
3283 as_fn_error $? "cannot find install-sh, install.sh, or shtool in tools \"$srcdir\"/tools" "$LINENO" 5
3286 # These three variables are undocumented and unsupported,
3287 # and are intended to be withdrawn in a future Autoconf release.
3288 # They can cause serious problems if a builder's source tree is in a directory
3289 # whose full name contains unusual characters.
3290 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3291 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3292 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3295 am__api_version='1.14'
3297 # Find a good install program. We prefer a C program (faster),
3298 # so one script is as good as another. But avoid the broken or
3299 # incompatible versions:
3300 # SysV /etc/install, /usr/sbin/install
3301 # SunOS /usr/etc/install
3302 # IRIX /sbin/install
3304 # AmigaOS /C/install, which installs bootblocks on floppy discs
3305 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3306 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3307 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3308 # OS/2's system install, which has a completely different semantic
3309 # ./install, which can be erroneously created by make from ./install.sh.
3310 # Reject install programs that cannot install multiple files.
3311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3312 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3313 if test -z "$INSTALL"; then
3314 if ${ac_cv_path_install+:} false; then :
3315 $as_echo_n "(cached) " >&6
3317 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3321 test -z "$as_dir" && as_dir=.
3322 # Account for people who put trailing slashes in PATH elements.
3323 case $as_dir/ in #((
3324 ./ | .// | /[cC]/* | \
3325 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3326 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3329 # OSF1 and SCO ODT 3.0 have their own names for install.
3330 # Don't use installbsd from OSF since it installs stuff as root
3332 for ac_prog in ginstall scoinst install; do
3333 for ac_exec_ext in '' $ac_executable_extensions; do
3334 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3335 if test $ac_prog = install &&
3336 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3337 # AIX install. It has an incompatible calling convention.
3339 elif test $ac_prog = install &&
3340 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3341 # program-specific install script used by HP pwplus--don't use.
3344 rm -rf conftest.one conftest.two conftest.dir
3345 echo one > conftest.one
3346 echo two > conftest.two
3348 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3349 test -s conftest.one && test -s conftest.two &&
3350 test -s conftest.dir/conftest.one &&
3351 test -s conftest.dir/conftest.two
3353 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3366 rm -rf conftest.one conftest.two conftest.dir
3369 if test "${ac_cv_path_install+set}" = set; then
3370 INSTALL=$ac_cv_path_install
3372 # As a last resort, use the slow shell script. Don't cache a
3373 # value for INSTALL within a source directory, because that will
3374 # break other packages using the cache if that directory is
3375 # removed, or if the value is a relative name.
3376 INSTALL=$ac_install_sh
3379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3380 $as_echo "$INSTALL" >&6; }
3382 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3383 # It thinks the first close brace ends the variable substitution.
3384 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3386 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3388 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3391 $as_echo_n "checking whether build environment is sane... " >&6; }
3392 # Reject unsafe characters in $srcdir or the absolute working directory
3393 # name. Accept space and tab only in the latter.
3397 *[\\\"\#\$\&\'\`$am_lf]*)
3398 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
3401 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
3402 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
3405 # Do 'set' in a subshell so we don't clobber the current shell's
3406 # arguments. Must try -L first in case configure is actually a
3407 # symlink; some systems play weird games with the mod time of symlinks
3408 # (eg FreeBSD returns the mod time of the symlink's containing
3412 for am_try in 1 2; do
3413 echo "timestamp, slept: $am_has_slept" > conftest.file
3414 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3415 if test "$*" = "X"; then
3417 set X `ls -t "$srcdir/configure" conftest.file`
3419 if test "$*" != "X $srcdir/configure conftest.file" \
3420 && test "$*" != "X conftest.file $srcdir/configure"; then
3422 # If neither matched, then we have a broken ls. This can happen
3423 # if, for instance, CONFIG_SHELL is bash and it inherits a
3424 # broken ls alias from the environment. This has actually
3425 # happened. Such a system could not be considered "sane".
3426 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
3427 alias in your environment" "$LINENO" 5
3429 if test "$2" = conftest.file || test $am_try -eq 2; then
3436 test "$2" = conftest.file
3442 as_fn_error $? "newly created file is older than distributed files!
3443 Check your system clock" "$LINENO" 5
3445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3446 $as_echo "yes" >&6; }
3447 # If we didn't sleep, we still need to ensure time stamps of config.status and
3448 # generated files are strictly newer.
3450 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
3457 test "$program_prefix" != NONE &&
3458 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3459 # Use a double $ so make ignores it.
3460 test "$program_suffix" != NONE &&
3461 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3462 # Double any \ or $.
3463 # By default was `s,x,x', remove it if useless.
3464 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3465 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3467 # expand $ac_aux_dir to an absolute path
3468 am_aux_dir=`cd $ac_aux_dir && pwd`
3470 if test x"${MISSING+set}" != xset; then
3473 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3475 MISSING="\${SHELL} $am_aux_dir/missing" ;;
3478 # Use eval to expand $SHELL
3479 if eval "$MISSING --is-lightweight"; then
3480 am_missing_run="$MISSING "
3483 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
3484 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
3487 if test x"${install_sh}" != xset; then
3490 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3492 install_sh="\${SHELL} $am_aux_dir/install-sh"
3496 # Installed binaries are usually stripped using 'strip' when the user
3497 # run "make install-strip". However 'strip' might not be the right
3498 # tool to use in cross-compilation environments, therefore Automake
3499 # will honor the 'STRIP' environment variable to overrule this program.
3500 if test "$cross_compiling" != no; then
3501 if test -n "$ac_tool_prefix"; then
3502 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3503 set dummy ${ac_tool_prefix}strip; ac_word=$2
3504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3505 $as_echo_n "checking for $ac_word... " >&6; }
3506 if ${ac_cv_prog_STRIP+:} false; then :
3507 $as_echo_n "(cached) " >&6
3509 if test -n "$STRIP"; then
3510 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3512 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3516 test -z "$as_dir" && as_dir=.
3517 for ac_exec_ext in '' $ac_executable_extensions; do
3518 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3519 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3520 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3529 STRIP=$ac_cv_prog_STRIP
3530 if test -n "$STRIP"; then
3531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3532 $as_echo "$STRIP" >&6; }
3534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3535 $as_echo "no" >&6; }
3540 if test -z "$ac_cv_prog_STRIP"; then
3542 # Extract the first word of "strip", so it can be a program name with args.
3543 set dummy strip; ac_word=$2
3544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3545 $as_echo_n "checking for $ac_word... " >&6; }
3546 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
3547 $as_echo_n "(cached) " >&6
3549 if test -n "$ac_ct_STRIP"; then
3550 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3552 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3556 test -z "$as_dir" && as_dir=.
3557 for ac_exec_ext in '' $ac_executable_extensions; do
3558 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3559 ac_cv_prog_ac_ct_STRIP="strip"
3560 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3569 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3570 if test -n "$ac_ct_STRIP"; then
3571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3572 $as_echo "$ac_ct_STRIP" >&6; }
3574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3575 $as_echo "no" >&6; }
3578 if test "x$ac_ct_STRIP" = x; then
3581 case $cross_compiling:$ac_tool_warned in
3583 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3584 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3585 ac_tool_warned=yes ;;
3590 STRIP="$ac_cv_prog_STRIP"
3594 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3597 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3598 if test -z "$MKDIR_P"; then
3599 if ${ac_cv_path_mkdir+:} false; then :
3600 $as_echo_n "(cached) " >&6
3602 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3603 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3606 test -z "$as_dir" && as_dir=.
3607 for ac_prog in mkdir gmkdir; do
3608 for ac_exec_ext in '' $ac_executable_extensions; do
3609 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
3610 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3611 'mkdir (GNU coreutils) '* | \
3612 'mkdir (coreutils) '* | \
3613 'mkdir (fileutils) '4.1*)
3614 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3624 test -d ./--version && rmdir ./--version
3625 if test "${ac_cv_path_mkdir+set}" = set; then
3626 MKDIR_P="$ac_cv_path_mkdir -p"
3628 # As a last resort, use the slow shell script. Don't cache a
3629 # value for MKDIR_P within a source directory, because that will
3630 # break other packages using the cache if that directory is
3631 # removed, or if the value is a relative name.
3632 MKDIR_P="$ac_install_sh -d"
3635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3636 $as_echo "$MKDIR_P" >&6; }
3638 for ac_prog in gawk mawk nawk awk
3640 # Extract the first word of "$ac_prog", so it can be a program name with args.
3641 set dummy $ac_prog; ac_word=$2
3642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3643 $as_echo_n "checking for $ac_word... " >&6; }
3644 if ${ac_cv_prog_AWK+:} false; then :
3645 $as_echo_n "(cached) " >&6
3647 if test -n "$AWK"; then
3648 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3650 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3654 test -z "$as_dir" && as_dir=.
3655 for ac_exec_ext in '' $ac_executable_extensions; do
3656 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3657 ac_cv_prog_AWK="$ac_prog"
3658 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3668 if test -n "$AWK"; then
3669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3670 $as_echo "$AWK" >&6; }
3672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3673 $as_echo "no" >&6; }
3677 test -n "$AWK" && break
3680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3681 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3683 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3684 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3685 $as_echo_n "(cached) " >&6
3687 cat >conftest.make <<\_ACEOF
3690 @echo '@@@%%%=$(MAKE)=@@@%%%'
3692 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3693 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3695 eval ac_cv_prog_make_${ac_make}_set=yes;;
3697 eval ac_cv_prog_make_${ac_make}_set=no;;
3701 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3703 $as_echo "yes" >&6; }
3706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3707 $as_echo "no" >&6; }
3708 SET_MAKE="MAKE=${MAKE-make}"
3711 rm -rf .tst 2>/dev/null
3712 mkdir .tst 2>/dev/null
3713 if test -d .tst; then
3718 rmdir .tst 2>/dev/null
3720 # Check whether --enable-silent-rules was given.
3721 if test "${enable_silent_rules+set}" = set; then :
3722 enableval=$enable_silent_rules;
3725 case $enable_silent_rules in # (((
3726 yes) AM_DEFAULT_VERBOSITY=0;;
3727 no) AM_DEFAULT_VERBOSITY=1;;
3728 *) AM_DEFAULT_VERBOSITY=1;;
3730 am_make=${MAKE-make}
3731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3732 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3733 if ${am_cv_make_support_nested_variables+:} false; then :
3734 $as_echo_n "(cached) " >&6
3736 if $as_echo 'TRUE=$(BAR$(V))
3742 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3743 am_cv_make_support_nested_variables=yes
3745 am_cv_make_support_nested_variables=no
3748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3749 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3750 if test $am_cv_make_support_nested_variables = yes; then
3752 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3754 AM_V=$AM_DEFAULT_VERBOSITY
3755 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3759 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3760 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3761 # is not polluted with repeated "-I."
3762 am__isrc=' -I$(srcdir)'
3763 # test to see if srcdir already configured
3764 if test -f $srcdir/config.status; then
3765 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3769 # test whether we have cygpath
3770 if test -z "$CYGPATH_W"; then
3771 if (cygpath --version) >/dev/null 2>/dev/null; then
3772 CYGPATH_W='cygpath -w'
3779 # Define the identity of the package.
3780 PACKAGE='libpipeline'
3784 cat >>confdefs.h <<_ACEOF
3785 #define PACKAGE "$PACKAGE"
3789 cat >>confdefs.h <<_ACEOF
3790 #define VERSION "$VERSION"
3793 # Some tools Automake needs.
3795 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3798 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3801 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3804 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3807 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3809 # For better backward compatibility. To be removed once Automake 1.9.x
3810 # dies out for good. For more background, see:
3811 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3812 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3813 mkdir_p='$(MKDIR_P)'
3815 # We need awk for the "check" target. The system "awk" is bad on
3817 # Always define AMTAR for backward compatibility. Yes, it's still used
3818 # in the wild :-( We should find a proper way to deprecate it ...
3822 # We'll loop over all known methods to create a tar archive until one works.
3823 _am_tools='gnutar pax cpio none'
3825 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3832 # POSIX will say in a future version that running "rm -f" with no argument
3833 # is OK; and we want to be able to make that assumption in our Makefile
3834 # recipes. So use an aggressive probe to check that the usage we want is
3835 # actually supported "in the wild" to an acceptable degree.
3836 # See automake bug#10828.
3837 # To make any issue more visible, cause the running configure to be aborted
3838 # by default if the 'rm' program in use doesn't match our expectations; the
3839 # user can still override this though.
3840 if rm -f && rm -fr && rm -rf; then : OK; else
3844 Your 'rm' program seems unable to run without file operands specified
3845 on the command line, even when the '-f' option is present. This is contrary
3846 to the behaviour of most rm programs out there, and not conforming with
3847 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3849 Please tell bug-automake@gnu.org about your system, including the value
3850 of your $PATH and any error possibly output before this message. This
3851 can help us improve future automake versions.
3854 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3855 echo 'Configuration will proceed anyway, since you have set the' >&2
3856 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3860 Aborting the configuration process, to ensure you take notice of the issue.
3862 You can download and install GNU coreutils to get an 'rm' implementation
3863 that behaves properly: <http://www.gnu.org/software/coreutils/>.
3865 If you want to complete the configuration process using your problematic
3866 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3867 to "yes", and re-run configure.
3870 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
3875 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
3876 # Check whether --enable-maintainer-mode was given.
3877 if test "${enable_maintainer_mode+set}" = set; then :
3878 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3880 USE_MAINTAINER_MODE=no
3883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
3884 $as_echo "$USE_MAINTAINER_MODE" >&6; }
3885 if test $USE_MAINTAINER_MODE = yes; then
3886 MAINTAINER_MODE_TRUE=
3887 MAINTAINER_MODE_FALSE='#'
3889 MAINTAINER_MODE_TRUE='#'
3890 MAINTAINER_MODE_FALSE=
3893 MAINT=$MAINTAINER_MODE_TRUE
3896 # Check whether --enable-silent-rules was given.
3897 if test "${enable_silent_rules+set}" = set; then :
3898 enableval=$enable_silent_rules;
3901 case $enable_silent_rules in # (((
3902 yes) AM_DEFAULT_VERBOSITY=0;;
3903 no) AM_DEFAULT_VERBOSITY=1;;
3904 *) AM_DEFAULT_VERBOSITY=0;;
3906 am_make=${MAKE-make}
3907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3908 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3909 if ${am_cv_make_support_nested_variables+:} false; then :
3910 $as_echo_n "(cached) " >&6
3912 if $as_echo 'TRUE=$(BAR$(V))
3918 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3919 am_cv_make_support_nested_variables=yes
3921 am_cv_make_support_nested_variables=no
3924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3925 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3926 if test $am_cv_make_support_nested_variables = yes; then
3928 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3930 AM_V=$AM_DEFAULT_VERBOSITY
3931 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3937 DEPDIR="${am__leading_dot}deps"
3939 ac_config_commands="$ac_config_commands depfiles"
3942 am_make=${MAKE-make}
3943 cat > confinc << 'END'
3945 @echo this is the am__doit target
3948 # If we don't find an include directive, just comment out the code.
3949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3950 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3954 # First try GNU make style include.
3955 echo "include confinc" > confmf
3956 # Ignore all kinds of additional output from 'make'.
3957 case `$am_make -s -f confmf 2> /dev/null` in #(
3958 *the\ am__doit\ target*)
3964 # Now try BSD make style include.
3965 if test "$am__include" = "#"; then
3966 echo '.include "confinc"' > confmf
3967 case `$am_make -s -f confmf 2> /dev/null` in #(
3968 *the\ am__doit\ target*)
3969 am__include=.include
3977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3978 $as_echo "$_am_result" >&6; }
3979 rm -f confinc confmf
3981 # Check whether --enable-dependency-tracking was given.
3982 if test "${enable_dependency_tracking+set}" = set; then :
3983 enableval=$enable_dependency_tracking;
3986 if test "x$enable_dependency_tracking" != xno; then
3987 am_depcomp="$ac_aux_dir/depcomp"
3991 if test "x$enable_dependency_tracking" != xno; then
4001 ac_cpp='$CPP $CPPFLAGS'
4002 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4003 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4004 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4005 if test -n "$ac_tool_prefix"; then
4006 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4007 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4009 $as_echo_n "checking for $ac_word... " >&6; }
4010 if ${ac_cv_prog_CC+:} false; then :
4011 $as_echo_n "(cached) " >&6
4013 if test -n "$CC"; then
4014 ac_cv_prog_CC="$CC" # Let the user override the test.
4016 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4020 test -z "$as_dir" && as_dir=.
4021 for ac_exec_ext in '' $ac_executable_extensions; do
4022 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4023 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4024 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4034 if test -n "$CC"; then
4035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4036 $as_echo "$CC" >&6; }
4038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4039 $as_echo "no" >&6; }
4044 if test -z "$ac_cv_prog_CC"; then
4046 # Extract the first word of "gcc", so it can be a program name with args.
4047 set dummy gcc; ac_word=$2
4048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4049 $as_echo_n "checking for $ac_word... " >&6; }
4050 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4051 $as_echo_n "(cached) " >&6
4053 if test -n "$ac_ct_CC"; then
4054 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4056 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4060 test -z "$as_dir" && as_dir=.
4061 for ac_exec_ext in '' $ac_executable_extensions; do
4062 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4063 ac_cv_prog_ac_ct_CC="gcc"
4064 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4073 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4074 if test -n "$ac_ct_CC"; then
4075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4076 $as_echo "$ac_ct_CC" >&6; }
4078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4079 $as_echo "no" >&6; }
4082 if test "x$ac_ct_CC" = x; then
4085 case $cross_compiling:$ac_tool_warned in
4087 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4088 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4089 ac_tool_warned=yes ;;
4097 if test -z "$CC"; then
4098 if test -n "$ac_tool_prefix"; then
4099 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4100 set dummy ${ac_tool_prefix}cc; ac_word=$2
4101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4102 $as_echo_n "checking for $ac_word... " >&6; }
4103 if ${ac_cv_prog_CC+:} false; then :
4104 $as_echo_n "(cached) " >&6
4106 if test -n "$CC"; then
4107 ac_cv_prog_CC="$CC" # Let the user override the test.
4109 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4113 test -z "$as_dir" && as_dir=.
4114 for ac_exec_ext in '' $ac_executable_extensions; do
4115 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4116 ac_cv_prog_CC="${ac_tool_prefix}cc"
4117 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4127 if test -n "$CC"; then
4128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4129 $as_echo "$CC" >&6; }
4131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4132 $as_echo "no" >&6; }
4138 if test -z "$CC"; then
4139 # Extract the first word of "cc", so it can be a program name with args.
4140 set dummy cc; ac_word=$2
4141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4142 $as_echo_n "checking for $ac_word... " >&6; }
4143 if ${ac_cv_prog_CC+:} false; then :
4144 $as_echo_n "(cached) " >&6
4146 if test -n "$CC"; then
4147 ac_cv_prog_CC="$CC" # Let the user override the test.
4150 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4154 test -z "$as_dir" && as_dir=.
4155 for ac_exec_ext in '' $ac_executable_extensions; do
4156 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4157 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4158 ac_prog_rejected=yes
4162 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4169 if test $ac_prog_rejected = yes; then
4170 # We found a bogon in the path, so make sure we never use it.
4171 set dummy $ac_cv_prog_CC
4173 if test $# != 0; then
4174 # We chose a different compiler from the bogus one.
4175 # However, it has the same basename, so the bogon will be chosen
4176 # first if we set CC to just the basename; use the full file name.
4178 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4184 if test -n "$CC"; then
4185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4186 $as_echo "$CC" >&6; }
4188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4189 $as_echo "no" >&6; }
4194 if test -z "$CC"; then
4195 if test -n "$ac_tool_prefix"; then
4196 for ac_prog in cl.exe
4198 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4199 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4201 $as_echo_n "checking for $ac_word... " >&6; }
4202 if ${ac_cv_prog_CC+:} false; then :
4203 $as_echo_n "(cached) " >&6
4205 if test -n "$CC"; then
4206 ac_cv_prog_CC="$CC" # Let the user override the test.
4208 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4212 test -z "$as_dir" && as_dir=.
4213 for ac_exec_ext in '' $ac_executable_extensions; do
4214 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4215 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4216 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4226 if test -n "$CC"; then
4227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4228 $as_echo "$CC" >&6; }
4230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4231 $as_echo "no" >&6; }
4235 test -n "$CC" && break
4238 if test -z "$CC"; then
4240 for ac_prog in cl.exe
4242 # Extract the first word of "$ac_prog", so it can be a program name with args.
4243 set dummy $ac_prog; ac_word=$2
4244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4245 $as_echo_n "checking for $ac_word... " >&6; }
4246 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4247 $as_echo_n "(cached) " >&6
4249 if test -n "$ac_ct_CC"; then
4250 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4252 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4256 test -z "$as_dir" && as_dir=.
4257 for ac_exec_ext in '' $ac_executable_extensions; do
4258 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4259 ac_cv_prog_ac_ct_CC="$ac_prog"
4260 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4269 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4270 if test -n "$ac_ct_CC"; then
4271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4272 $as_echo "$ac_ct_CC" >&6; }
4274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4275 $as_echo "no" >&6; }
4279 test -n "$ac_ct_CC" && break
4282 if test "x$ac_ct_CC" = x; then
4285 case $cross_compiling:$ac_tool_warned in
4287 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4288 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4289 ac_tool_warned=yes ;;
4298 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4299 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4300 as_fn_error $? "no acceptable C compiler found in \$PATH
4301 See \`config.log' for more details" "$LINENO" 5; }
4303 # Provide some information about the compiler.
4304 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4307 for ac_option in --version -v -V -qversion; do
4308 { { ac_try="$ac_compiler $ac_option >&5"
4310 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4311 *) ac_try_echo=$ac_try;;
4313 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4314 $as_echo "$ac_try_echo"; } >&5
4315 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4317 if test -s conftest.err; then
4319 ... rest of stderr output deleted ...
4320 10q' conftest.err >conftest.er1
4321 cat conftest.er1 >&5
4323 rm -f conftest.er1 conftest.err
4324 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4325 test $ac_status = 0; }
4328 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4329 /* end confdefs.h. */
4339 ac_clean_files_save=$ac_clean_files
4340 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4341 # Try to create an executable without -o first, disregard a.out.
4342 # It will help us diagnose broken compilers, and finding out an intuition
4344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4345 $as_echo_n "checking whether the C compiler works... " >&6; }
4346 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4348 # The possible output files:
4349 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4352 for ac_file in $ac_files
4355 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4356 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4361 if { { ac_try="$ac_link_default"
4363 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4364 *) ac_try_echo=$ac_try;;
4366 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4367 $as_echo "$ac_try_echo"; } >&5
4368 (eval "$ac_link_default") 2>&5
4370 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4371 test $ac_status = 0; }; then :
4372 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4373 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4374 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4375 # so that the user can short-circuit this test for compilers unknown to
4377 for ac_file in $ac_files ''
4379 test -f "$ac_file" || continue
4381 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4384 # We found the default executable, but exeext='' is most
4388 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4390 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4392 # We set ac_cv_exeext here because the later test for it is not
4393 # safe: cross compilers may not add the suffix if given an `-o'
4394 # argument, so we may need to know it at that point already.
4395 # Even if this section looks crufty: it has the advantage of
4402 test "$ac_cv_exeext" = no && ac_cv_exeext=
4407 if test -z "$ac_file"; then :
4408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4409 $as_echo "no" >&6; }
4410 $as_echo "$as_me: failed program was:" >&5
4411 sed 's/^/| /' conftest.$ac_ext >&5
4413 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4414 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4415 as_fn_error 77 "C compiler cannot create executables
4416 See \`config.log' for more details" "$LINENO" 5; }
4418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4419 $as_echo "yes" >&6; }
4421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4422 $as_echo_n "checking for C compiler default output file name... " >&6; }
4423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4424 $as_echo "$ac_file" >&6; }
4425 ac_exeext=$ac_cv_exeext
4427 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4428 ac_clean_files=$ac_clean_files_save
4429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4430 $as_echo_n "checking for suffix of executables... " >&6; }
4431 if { { ac_try="$ac_link"
4433 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4434 *) ac_try_echo=$ac_try;;
4436 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4437 $as_echo "$ac_try_echo"; } >&5
4438 (eval "$ac_link") 2>&5
4440 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4441 test $ac_status = 0; }; then :
4442 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4443 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4444 # work properly (i.e., refer to `conftest.exe'), while it won't with
4446 for ac_file in conftest.exe conftest conftest.*; do
4447 test -f "$ac_file" || continue
4449 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4450 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4456 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4457 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4458 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4459 See \`config.log' for more details" "$LINENO" 5; }
4461 rm -f conftest conftest$ac_cv_exeext
4462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4463 $as_echo "$ac_cv_exeext" >&6; }
4465 rm -f conftest.$ac_ext
4466 EXEEXT=$ac_cv_exeext
4468 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4469 /* end confdefs.h. */
4474 FILE *f = fopen ("conftest.out", "w");
4475 return ferror (f) || fclose (f) != 0;
4481 ac_clean_files="$ac_clean_files conftest.out"
4482 # Check that the compiler produces executables we can run. If not, either
4483 # the compiler is broken, or we cross compile.
4484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4485 $as_echo_n "checking whether we are cross compiling... " >&6; }
4486 if test "$cross_compiling" != yes; then
4487 { { ac_try="$ac_link"
4489 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4490 *) ac_try_echo=$ac_try;;
4492 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4493 $as_echo "$ac_try_echo"; } >&5
4494 (eval "$ac_link") 2>&5
4496 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4497 test $ac_status = 0; }
4498 if { ac_try='./conftest$ac_cv_exeext'
4499 { { case "(($ac_try" in
4500 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4501 *) ac_try_echo=$ac_try;;
4503 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4504 $as_echo "$ac_try_echo"; } >&5
4505 (eval "$ac_try") 2>&5
4507 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4508 test $ac_status = 0; }; }; then
4511 if test "$cross_compiling" = maybe; then
4514 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4515 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4516 as_fn_error $? "cannot run C compiled programs.
4517 If you meant to cross compile, use \`--host'.
4518 See \`config.log' for more details" "$LINENO" 5; }
4522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4523 $as_echo "$cross_compiling" >&6; }
4525 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4526 ac_clean_files=$ac_clean_files_save
4527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4528 $as_echo_n "checking for suffix of object files... " >&6; }
4529 if ${ac_cv_objext+:} false; then :
4530 $as_echo_n "(cached) " >&6
4532 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4533 /* end confdefs.h. */
4543 rm -f conftest.o conftest.obj
4544 if { { ac_try="$ac_compile"
4546 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4547 *) ac_try_echo=$ac_try;;
4549 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4550 $as_echo "$ac_try_echo"; } >&5
4551 (eval "$ac_compile") 2>&5
4553 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4554 test $ac_status = 0; }; then :
4555 for ac_file in conftest.o conftest.obj conftest.*; do
4556 test -f "$ac_file" || continue;
4558 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4559 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4564 $as_echo "$as_me: failed program was:" >&5
4565 sed 's/^/| /' conftest.$ac_ext >&5
4567 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4568 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4569 as_fn_error $? "cannot compute suffix of object files: cannot compile
4570 See \`config.log' for more details" "$LINENO" 5; }
4572 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4575 $as_echo "$ac_cv_objext" >&6; }
4576 OBJEXT=$ac_cv_objext
4578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4579 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4580 if ${ac_cv_c_compiler_gnu+:} false; then :
4581 $as_echo_n "(cached) " >&6
4583 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4584 /* end confdefs.h. */
4597 if ac_fn_c_try_compile "$LINENO"; then :
4602 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4603 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4607 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4608 if test $ac_compiler_gnu = yes; then
4613 ac_test_CFLAGS=${CFLAGS+set}
4614 ac_save_CFLAGS=$CFLAGS
4615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4616 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4617 if ${ac_cv_prog_cc_g+:} false; then :
4618 $as_echo_n "(cached) " >&6
4620 ac_save_c_werror_flag=$ac_c_werror_flag
4621 ac_c_werror_flag=yes
4624 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4625 /* end confdefs.h. */
4635 if ac_fn_c_try_compile "$LINENO"; then :
4639 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4640 /* end confdefs.h. */
4650 if ac_fn_c_try_compile "$LINENO"; then :
4653 ac_c_werror_flag=$ac_save_c_werror_flag
4655 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4656 /* end confdefs.h. */
4666 if ac_fn_c_try_compile "$LINENO"; then :
4669 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4671 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4673 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4674 ac_c_werror_flag=$ac_save_c_werror_flag
4676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4677 $as_echo "$ac_cv_prog_cc_g" >&6; }
4678 if test "$ac_test_CFLAGS" = set; then
4679 CFLAGS=$ac_save_CFLAGS
4680 elif test $ac_cv_prog_cc_g = yes; then
4681 if test "$GCC" = yes; then
4687 if test "$GCC" = yes; then
4693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4694 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4695 if ${ac_cv_prog_cc_c89+:} false; then :
4696 $as_echo_n "(cached) " >&6
4698 ac_cv_prog_cc_c89=no
4700 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4701 /* end confdefs.h. */
4705 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4706 struct buf { int x; };
4707 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4708 static char *e (p, i)
4714 static char *f (char * (*g) (char **, int), char **p, ...)
4719 s = g (p, va_arg (v,int));
4724 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4725 function prototypes and stuff, but not '\xHH' hex character constants.
4726 These don't provoke an error unfortunately, instead are silently treated
4727 as 'x'. The following induces an error, until -std is added to get
4728 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4729 array size at least. It's necessary to write '\x00'==0 to get something
4730 that's true only with -std. */
4731 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4733 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4734 inside strings and character constants. */
4736 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4738 int test (int i, double x);
4739 struct s1 {int (*f) (int a);};
4740 struct s2 {int (*f) (double a);};
4741 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4747 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4752 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4753 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4755 CC="$ac_save_CC $ac_arg"
4756 if ac_fn_c_try_compile "$LINENO"; then :
4757 ac_cv_prog_cc_c89=$ac_arg
4759 rm -f core conftest.err conftest.$ac_objext
4760 test "x$ac_cv_prog_cc_c89" != "xno" && break
4762 rm -f conftest.$ac_ext
4767 case "x$ac_cv_prog_cc_c89" in
4769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4770 $as_echo "none needed" >&6; } ;;
4772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4773 $as_echo "unsupported" >&6; } ;;
4775 CC="$CC $ac_cv_prog_cc_c89"
4776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4777 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4779 if test "x$ac_cv_prog_cc_c89" != xno; then :
4784 ac_cpp='$CPP $CPPFLAGS'
4785 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4786 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4787 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4790 ac_cpp='$CPP $CPPFLAGS'
4791 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4792 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4793 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4795 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4796 if ${am_cv_prog_cc_c_o+:} false; then :
4797 $as_echo_n "(cached) " >&6
4799 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4800 /* end confdefs.h. */
4810 # Make sure it works both with $CC and with simple cc.
4811 # Following AC_PROG_CC_C_O, we do the test twice because some
4812 # compilers refuse to overwrite an existing .o file with -o,
4813 # though they will create one.
4814 am_cv_prog_cc_c_o=yes
4816 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4817 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4820 (exit $ac_status); } \
4821 && test -f conftest2.$ac_objext; then
4824 am_cv_prog_cc_c_o=no
4828 rm -f core conftest*
4831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4832 $as_echo "$am_cv_prog_cc_c_o" >&6; }
4833 if test "$am_cv_prog_cc_c_o" != yes; then
4834 # Losing compiler, so override with the script.
4835 # FIXME: It is wrong to rewrite CC.
4836 # But if we don't then we get into trouble of one sort or another.
4837 # A longer-term fix would be to have automake use am__CC in this case,
4838 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4839 CC="$am_aux_dir/compile $CC"
4842 ac_cpp='$CPP $CPPFLAGS'
4843 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4844 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4845 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4848 depcc="$CC" am_compiler_list=
4850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4851 $as_echo_n "checking dependency style of $depcc... " >&6; }
4852 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4853 $as_echo_n "(cached) " >&6
4855 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4856 # We make a subdir and do the tests there. Otherwise we can end up
4857 # making bogus files that we don't know about and never remove. For
4858 # instance it was reported that on HP-UX the gcc test will end up
4859 # making a dummy file named 'D' -- because '-MD' means "put the output
4863 # Copy depcomp to subdir because otherwise we won't find it if we're
4864 # using a relative directory.
4865 cp "$am_depcomp" conftest.dir
4867 # We will build objects and dependencies in a subdirectory because
4868 # it helps to detect inapplicable dependency modes. For instance
4869 # both Tru64's cc and ICC support -MD to output dependencies as a
4870 # side effect of compilation, but ICC will put the dependencies in
4871 # the current directory while Tru64 will put them in the object
4875 am_cv_CC_dependencies_compiler_type=none
4876 if test "$am_compiler_list" = ""; then
4877 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4880 case " $depcc " in #(
4881 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4884 for depmode in $am_compiler_list; do
4885 # Setup a source with many dependencies, because some compilers
4886 # like to wrap large dependency lists on column 80 (with \), and
4887 # we should not choose a depcomp mode which is confused by this.
4889 # We need to recreate these files for each test, as the compiler may
4890 # overwrite some of them when testing with obscure command lines.
4891 # This happens at least with the AIX C compiler.
4893 for i in 1 2 3 4 5 6; do
4894 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4895 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4896 # Solaris 10 /bin/sh.
4897 echo '/* dummy */' > sub/conftst$i.h
4899 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4901 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4902 # mode. It turns out that the SunPro C++ compiler does not properly
4903 # handle '-M -o', and we need to detect this. Also, some Intel
4904 # versions had trouble with output in subdirs.
4905 am__obj=sub/conftest.${OBJEXT-o}
4906 am__minus_obj="-o $am__obj"
4909 # This depmode causes a compiler race in universal mode.
4910 test "$am__universal" = false || continue
4913 # After this tag, mechanisms are not by side-effect, so they'll
4914 # only be used when explicitly requested.
4915 if test "x$enable_dependency_tracking" = xyes; then
4921 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4922 # This compiler won't grok '-c -o', but also, the minuso test has
4923 # not run yet. These depmodes are late enough in the game, and
4924 # so weak that their functioning should not be impacted.
4925 am__obj=conftest.${OBJEXT-o}
4930 if depmode=$depmode \
4931 source=sub/conftest.c object=$am__obj \
4932 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4933 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4934 >/dev/null 2>conftest.err &&
4935 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4936 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4937 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4938 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4939 # icc doesn't choke on unknown options, it will just issue warnings
4940 # or remarks (even with -Werror). So we grep stderr for any message
4941 # that says an option was ignored or not supported.
4942 # When given -MP, icc 7.0 and 7.1 complain thusly:
4943 # icc: Command line warning: ignoring option '-M'; no argument required
4944 # The diagnosis changed in icc 8.0:
4945 # icc: Command line remark: option '-MP' not supported
4946 if (grep 'ignoring option' conftest.err ||
4947 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4948 am_cv_CC_dependencies_compiler_type=$depmode
4957 am_cv_CC_dependencies_compiler_type=none
4961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4962 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4963 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4966 test "x$enable_dependency_tracking" != xno \
4967 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4969 am__fastdepCC_FALSE='#'
4971 am__fastdepCC_TRUE='#'
4972 am__fastdepCC_FALSE=
4978 ac_cpp='$CPP $CPPFLAGS'
4979 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4980 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4981 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4983 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4984 # On Suns, sometimes $CPP names a directory.
4985 if test -n "$CPP" && test -d "$CPP"; then
4988 if test -z "$CPP"; then
4989 if ${ac_cv_prog_CPP+:} false; then :
4990 $as_echo_n "(cached) " >&6
4992 # Double quotes because CPP needs to be expanded
4993 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4996 for ac_c_preproc_warn_flag in '' yes
4998 # Use a header file that comes with gcc, so configuring glibc
4999 # with a fresh cross-compiler works.
5000 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5001 # <limits.h> exists even on freestanding compilers.
5002 # On the NeXT, cc -E runs the code through the compiler's parser,
5003 # not just through cpp. "Syntax error" is here to catch this case.
5004 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5005 /* end confdefs.h. */
5007 # include <limits.h>
5009 # include <assert.h>
5013 if ac_fn_c_try_cpp "$LINENO"; then :
5016 # Broken: fails on valid input.
5019 rm -f conftest.err conftest.i conftest.$ac_ext
5021 # OK, works on sane cases. Now check whether nonexistent headers
5022 # can be detected and how.
5023 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5024 /* end confdefs.h. */
5025 #include <ac_nonexistent.h>
5027 if ac_fn_c_try_cpp "$LINENO"; then :
5028 # Broken: success on invalid input.
5031 # Passes both tests.
5035 rm -f conftest.err conftest.i conftest.$ac_ext
5038 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5039 rm -f conftest.i conftest.err conftest.$ac_ext
5040 if $ac_preproc_ok; then :
5052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5053 $as_echo "$CPP" >&6; }
5055 for ac_c_preproc_warn_flag in '' yes
5057 # Use a header file that comes with gcc, so configuring glibc
5058 # with a fresh cross-compiler works.
5059 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5060 # <limits.h> exists even on freestanding compilers.
5061 # On the NeXT, cc -E runs the code through the compiler's parser,
5062 # not just through cpp. "Syntax error" is here to catch this case.
5063 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5064 /* end confdefs.h. */
5066 # include <limits.h>
5068 # include <assert.h>
5072 if ac_fn_c_try_cpp "$LINENO"; then :
5075 # Broken: fails on valid input.
5078 rm -f conftest.err conftest.i conftest.$ac_ext
5080 # OK, works on sane cases. Now check whether nonexistent headers
5081 # can be detected and how.
5082 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5083 /* end confdefs.h. */
5084 #include <ac_nonexistent.h>
5086 if ac_fn_c_try_cpp "$LINENO"; then :
5087 # Broken: success on invalid input.
5090 # Passes both tests.
5094 rm -f conftest.err conftest.i conftest.$ac_ext
5097 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5098 rm -f conftest.i conftest.err conftest.$ac_ext
5099 if $ac_preproc_ok; then :
5102 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5103 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5104 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
5105 See \`config.log' for more details" "$LINENO" 5; }
5109 ac_cpp='$CPP $CPPFLAGS'
5110 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5111 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5112 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5116 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5117 if ${ac_cv_path_GREP+:} false; then :
5118 $as_echo_n "(cached) " >&6
5120 if test -z "$GREP"; then
5121 ac_path_GREP_found=false
5122 # Loop through the user's path and test for each of PROGNAME-LIST
5123 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5124 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5127 test -z "$as_dir" && as_dir=.
5128 for ac_prog in grep ggrep; do
5129 for ac_exec_ext in '' $ac_executable_extensions; do
5130 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5131 as_fn_executable_p "$ac_path_GREP" || continue
5132 # Check for GNU ac_path_GREP and select it if it is found.
5133 # Check for GNU $ac_path_GREP
5134 case `"$ac_path_GREP" --version 2>&1` in
5136 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5139 $as_echo_n 0123456789 >"conftest.in"
5142 cat "conftest.in" "conftest.in" >"conftest.tmp"
5143 mv "conftest.tmp" "conftest.in"
5144 cp "conftest.in" "conftest.nl"
5145 $as_echo 'GREP' >> "conftest.nl"
5146 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5147 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5148 as_fn_arith $ac_count + 1 && ac_count=$as_val
5149 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5150 # Best one so far, save it but keep looking for a better one
5151 ac_cv_path_GREP="$ac_path_GREP"
5152 ac_path_GREP_max=$ac_count
5154 # 10*(2^10) chars as input seems more than enough
5155 test $ac_count -gt 10 && break
5157 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5160 $ac_path_GREP_found && break 3
5165 if test -z "$ac_cv_path_GREP"; then
5166 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5169 ac_cv_path_GREP=$GREP
5173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5174 $as_echo "$ac_cv_path_GREP" >&6; }
5175 GREP="$ac_cv_path_GREP"
5178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5179 $as_echo_n "checking for egrep... " >&6; }
5180 if ${ac_cv_path_EGREP+:} false; then :
5181 $as_echo_n "(cached) " >&6
5183 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5184 then ac_cv_path_EGREP="$GREP -E"
5186 if test -z "$EGREP"; then
5187 ac_path_EGREP_found=false
5188 # Loop through the user's path and test for each of PROGNAME-LIST
5189 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5190 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5193 test -z "$as_dir" && as_dir=.
5194 for ac_prog in egrep; do
5195 for ac_exec_ext in '' $ac_executable_extensions; do
5196 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5197 as_fn_executable_p "$ac_path_EGREP" || continue
5198 # Check for GNU ac_path_EGREP and select it if it is found.
5199 # Check for GNU $ac_path_EGREP
5200 case `"$ac_path_EGREP" --version 2>&1` in
5202 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5205 $as_echo_n 0123456789 >"conftest.in"
5208 cat "conftest.in" "conftest.in" >"conftest.tmp"
5209 mv "conftest.tmp" "conftest.in"
5210 cp "conftest.in" "conftest.nl"
5211 $as_echo 'EGREP' >> "conftest.nl"
5212 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5213 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5214 as_fn_arith $ac_count + 1 && ac_count=$as_val
5215 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5216 # Best one so far, save it but keep looking for a better one
5217 ac_cv_path_EGREP="$ac_path_EGREP"
5218 ac_path_EGREP_max=$ac_count
5220 # 10*(2^10) chars as input seems more than enough
5221 test $ac_count -gt 10 && break
5223 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5226 $ac_path_EGREP_found && break 3
5231 if test -z "$ac_cv_path_EGREP"; then
5232 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5235 ac_cv_path_EGREP=$EGREP
5240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5241 $as_echo "$ac_cv_path_EGREP" >&6; }
5242 EGREP="$ac_cv_path_EGREP"
5245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5246 $as_echo_n "checking for ANSI C header files... " >&6; }
5247 if ${ac_cv_header_stdc+:} false; then :
5248 $as_echo_n "(cached) " >&6
5250 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5251 /* end confdefs.h. */
5265 if ac_fn_c_try_compile "$LINENO"; then :
5266 ac_cv_header_stdc=yes
5268 ac_cv_header_stdc=no
5270 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5272 if test $ac_cv_header_stdc = yes; then
5273 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5274 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5275 /* end confdefs.h. */
5279 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5280 $EGREP "memchr" >/dev/null 2>&1; then :
5283 ac_cv_header_stdc=no
5289 if test $ac_cv_header_stdc = yes; then
5290 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5291 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5292 /* end confdefs.h. */
5296 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5297 $EGREP "free" >/dev/null 2>&1; then :
5300 ac_cv_header_stdc=no
5306 if test $ac_cv_header_stdc = yes; then
5307 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5308 if test "$cross_compiling" = yes; then :
5311 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5312 /* end confdefs.h. */
5315 #if ((' ' & 0x0FF) == 0x020)
5316 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5317 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5319 # define ISLOWER(c) \
5320 (('a' <= (c) && (c) <= 'i') \
5321 || ('j' <= (c) && (c) <= 'r') \
5322 || ('s' <= (c) && (c) <= 'z'))
5323 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5326 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5331 for (i = 0; i < 256; i++)
5332 if (XOR (islower (i), ISLOWER (i))
5333 || toupper (i) != TOUPPER (i))
5338 if ac_fn_c_try_run "$LINENO"; then :
5341 ac_cv_header_stdc=no
5343 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5344 conftest.$ac_objext conftest.beam conftest.$ac_ext
5349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5350 $as_echo "$ac_cv_header_stdc" >&6; }
5351 if test $ac_cv_header_stdc = yes; then
5353 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5357 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5358 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5359 inttypes.h stdint.h unistd.h
5361 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5362 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5364 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5365 cat >>confdefs.h <<_ACEOF
5366 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5375 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
5376 if test "x$ac_cv_header_minix_config_h" = xyes; then :
5383 if test "$MINIX" = yes; then
5385 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5388 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5391 $as_echo "#define _MINIX 1" >>confdefs.h
5394 $as_echo "#define _NETBSD_SOURCE 1" >>confdefs.h
5399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5400 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5401 if ${ac_cv_safe_to_define___extensions__+:} false; then :
5402 $as_echo_n "(cached) " >&6
5404 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5405 /* end confdefs.h. */
5407 # define __EXTENSIONS__ 1
5408 $ac_includes_default
5417 if ac_fn_c_try_compile "$LINENO"; then :
5418 ac_cv_safe_to_define___extensions__=yes
5420 ac_cv_safe_to_define___extensions__=no
5422 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5425 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5426 test $ac_cv_safe_to_define___extensions__ = yes &&
5427 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5429 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5431 $as_echo "#define _DARWIN_C_SOURCE 1" >>confdefs.h
5433 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5435 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5437 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether _XOPEN_SOURCE should be defined" >&5
5440 $as_echo_n "checking whether _XOPEN_SOURCE should be defined... " >&6; }
5441 if ${ac_cv_should_define__xopen_source+:} false; then :
5442 $as_echo_n "(cached) " >&6
5444 ac_cv_should_define__xopen_source=no
5445 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5446 /* end confdefs.h. */
5458 if ac_fn_c_try_compile "$LINENO"; then :
5461 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5462 /* end confdefs.h. */
5464 #define _XOPEN_SOURCE 500
5475 if ac_fn_c_try_compile "$LINENO"; then :
5476 ac_cv_should_define__xopen_source=yes
5478 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5480 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_should_define__xopen_source" >&5
5483 $as_echo "$ac_cv_should_define__xopen_source" >&6; }
5484 test $ac_cv_should_define__xopen_source = yes &&
5485 $as_echo "#define _XOPEN_SOURCE 500" >>confdefs.h
5489 if test -n "$ac_tool_prefix"; then
5490 for ac_prog in ar lib "link -lib"
5492 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5493 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5495 $as_echo_n "checking for $ac_word... " >&6; }
5496 if ${ac_cv_prog_AR+:} false; then :
5497 $as_echo_n "(cached) " >&6
5499 if test -n "$AR"; then
5500 ac_cv_prog_AR="$AR" # Let the user override the test.
5502 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5506 test -z "$as_dir" && as_dir=.
5507 for ac_exec_ext in '' $ac_executable_extensions; do
5508 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5509 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5510 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5520 if test -n "$AR"; then
5521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5522 $as_echo "$AR" >&6; }
5524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5525 $as_echo "no" >&6; }
5529 test -n "$AR" && break
5532 if test -z "$AR"; then
5534 for ac_prog in ar lib "link -lib"
5536 # Extract the first word of "$ac_prog", so it can be a program name with args.
5537 set dummy $ac_prog; ac_word=$2
5538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5539 $as_echo_n "checking for $ac_word... " >&6; }
5540 if ${ac_cv_prog_ac_ct_AR+:} false; then :
5541 $as_echo_n "(cached) " >&6
5543 if test -n "$ac_ct_AR"; then
5544 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5546 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5550 test -z "$as_dir" && as_dir=.
5551 for ac_exec_ext in '' $ac_executable_extensions; do
5552 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5553 ac_cv_prog_ac_ct_AR="$ac_prog"
5554 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5563 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5564 if test -n "$ac_ct_AR"; then
5565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5566 $as_echo "$ac_ct_AR" >&6; }
5568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5569 $as_echo "no" >&6; }
5573 test -n "$ac_ct_AR" && break
5576 if test "x$ac_ct_AR" = x; then
5579 case $cross_compiling:$ac_tool_warned in
5581 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5582 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5583 ac_tool_warned=yes ;;
5591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the archiver ($AR) interface" >&5
5592 $as_echo_n "checking the archiver ($AR) interface... " >&6; }
5593 if ${am_cv_ar_interface+:} false; then :
5594 $as_echo_n "(cached) " >&6
5597 ac_cpp='$CPP $CPPFLAGS'
5598 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5599 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5600 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5602 am_cv_ar_interface=ar
5603 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5604 /* end confdefs.h. */
5605 int some_variable = 0;
5607 if ac_fn_c_try_compile "$LINENO"; then :
5608 am_ar_try='$AR cru libconftest.a conftest.$ac_objext >&5'
5609 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
5610 (eval $am_ar_try) 2>&5
5612 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5613 test $ac_status = 0; }
5614 if test "$ac_status" -eq 0; then
5615 am_cv_ar_interface=ar
5617 am_ar_try='$AR -NOLOGO -OUT:conftest.lib conftest.$ac_objext >&5'
5618 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
5619 (eval $am_ar_try) 2>&5
5621 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5622 test $ac_status = 0; }
5623 if test "$ac_status" -eq 0; then
5624 am_cv_ar_interface=lib
5626 am_cv_ar_interface=unknown
5629 rm -f conftest.lib libconftest.a
5632 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5634 ac_cpp='$CPP $CPPFLAGS'
5635 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5636 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5637 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_ar_interface" >&5
5641 $as_echo "$am_cv_ar_interface" >&6; }
5643 case $am_cv_ar_interface in
5647 # Microsoft lib, so override with the ar-lib wrapper script.
5648 # FIXME: It is wrong to rewrite AR.
5649 # But if we don't then we get into trouble of one sort or another.
5650 # A longer-term fix would be to have automake use am__AR in this case,
5651 # and then we could set am__AR="$am_aux_dir/ar-lib \$(AR)" or something
5653 AR="$am_aux_dir/ar-lib $AR"
5656 as_fn_error $? "could not determine $AR interface" "$LINENO" 5
5662 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5663 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5668 macro_version='2.4.2'
5669 macro_revision='1.3337'
5683 ltmain="$ac_aux_dir/ltmain.sh"
5685 # Make sure we can run config.sub.
5686 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
5687 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
5689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
5690 $as_echo_n "checking build system type... " >&6; }
5691 if ${ac_cv_build+:} false; then :
5692 $as_echo_n "(cached) " >&6
5694 ac_build_alias=$build_alias
5695 test "x$ac_build_alias" = x &&
5696 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
5697 test "x$ac_build_alias" = x &&
5698 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
5699 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
5700 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
5703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
5704 $as_echo "$ac_cv_build" >&6; }
5705 case $ac_cv_build in
5707 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
5710 ac_save_IFS=$IFS; IFS='-'
5716 # Remember, the first character of IFS is used to create $*,
5717 # except with old shells:
5720 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
5723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
5724 $as_echo_n "checking host system type... " >&6; }
5725 if ${ac_cv_host+:} false; then :
5726 $as_echo_n "(cached) " >&6
5728 if test "x$host_alias" = x; then
5729 ac_cv_host=$ac_cv_build
5731 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
5732 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
5736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
5737 $as_echo "$ac_cv_host" >&6; }
5740 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
5743 ac_save_IFS=$IFS; IFS='-'
5749 # Remember, the first character of IFS is used to create $*,
5750 # except with old shells:
5753 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
5756 # Backslashify metacharacters that are still active within
5757 # double-quoted strings.
5758 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5760 # Same as above, but do not quote variable references.
5761 double_quote_subst='s/\(["`\\]\)/\\\1/g'
5763 # Sed substitution to delay expansion of an escaped shell variable in a
5764 # double_quote_subst'ed string.
5765 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5767 # Sed substitution to delay expansion of an escaped single quote.
5768 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5770 # Sed substitution to avoid accidental globbing in evaled expressions
5771 no_glob_subst='s/\*/\\\*/g'
5773 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5774 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5775 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5778 $as_echo_n "checking how to print strings... " >&6; }
5779 # Test print first, because it will be a builtin if present.
5780 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
5781 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5783 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5786 # Use this function as a fallback that always works.
5787 func_fallback_echo ()
5789 eval 'cat <<_LTECHO_EOF
5793 ECHO='func_fallback_echo'
5796 # func_echo_all arg...
5797 # Invoke $ECHO with all args, space-separated.
5804 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5805 $as_echo "printf" >&6; } ;;
5806 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5807 $as_echo "print -r" >&6; } ;;
5808 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5809 $as_echo "cat" >&6; } ;;
5825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5826 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
5827 if ${ac_cv_path_SED+:} false; then :
5828 $as_echo_n "(cached) " >&6
5830 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5831 for ac_i in 1 2 3 4 5 6 7; do
5832 ac_script="$ac_script$as_nl$ac_script"
5834 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5835 { ac_script=; unset ac_script;}
5836 if test -z "$SED"; then
5837 ac_path_SED_found=false
5838 # Loop through the user's path and test for each of PROGNAME-LIST
5839 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5843 test -z "$as_dir" && as_dir=.
5844 for ac_prog in sed gsed; do
5845 for ac_exec_ext in '' $ac_executable_extensions; do
5846 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5847 as_fn_executable_p "$ac_path_SED" || continue
5848 # Check for GNU ac_path_SED and select it if it is found.
5849 # Check for GNU $ac_path_SED
5850 case `"$ac_path_SED" --version 2>&1` in
5852 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5855 $as_echo_n 0123456789 >"conftest.in"
5858 cat "conftest.in" "conftest.in" >"conftest.tmp"
5859 mv "conftest.tmp" "conftest.in"
5860 cp "conftest.in" "conftest.nl"
5861 $as_echo '' >> "conftest.nl"
5862 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5863 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5864 as_fn_arith $ac_count + 1 && ac_count=$as_val
5865 if test $ac_count -gt ${ac_path_SED_max-0}; then
5866 # Best one so far, save it but keep looking for a better one
5867 ac_cv_path_SED="$ac_path_SED"
5868 ac_path_SED_max=$ac_count
5870 # 10*(2^10) chars as input seems more than enough
5871 test $ac_count -gt 10 && break
5873 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5876 $ac_path_SED_found && break 3
5881 if test -z "$ac_cv_path_SED"; then
5882 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5890 $as_echo "$ac_cv_path_SED" >&6; }
5891 SED="$ac_cv_path_SED"
5894 test -z "$SED" && SED=sed
5895 Xsed="$SED -e 1s/^X//"
5907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5908 $as_echo_n "checking for fgrep... " >&6; }
5909 if ${ac_cv_path_FGREP+:} false; then :
5910 $as_echo_n "(cached) " >&6
5912 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5913 then ac_cv_path_FGREP="$GREP -F"
5915 if test -z "$FGREP"; then
5916 ac_path_FGREP_found=false
5917 # Loop through the user's path and test for each of PROGNAME-LIST
5918 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5919 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5922 test -z "$as_dir" && as_dir=.
5923 for ac_prog in fgrep; do
5924 for ac_exec_ext in '' $ac_executable_extensions; do
5925 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5926 as_fn_executable_p "$ac_path_FGREP" || continue
5927 # Check for GNU ac_path_FGREP and select it if it is found.
5928 # Check for GNU $ac_path_FGREP
5929 case `"$ac_path_FGREP" --version 2>&1` in
5931 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5934 $as_echo_n 0123456789 >"conftest.in"
5937 cat "conftest.in" "conftest.in" >"conftest.tmp"
5938 mv "conftest.tmp" "conftest.in"
5939 cp "conftest.in" "conftest.nl"
5940 $as_echo 'FGREP' >> "conftest.nl"
5941 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5942 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5943 as_fn_arith $ac_count + 1 && ac_count=$as_val
5944 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5945 # Best one so far, save it but keep looking for a better one
5946 ac_cv_path_FGREP="$ac_path_FGREP"
5947 ac_path_FGREP_max=$ac_count
5949 # 10*(2^10) chars as input seems more than enough
5950 test $ac_count -gt 10 && break
5952 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5955 $ac_path_FGREP_found && break 3
5960 if test -z "$ac_cv_path_FGREP"; then
5961 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5964 ac_cv_path_FGREP=$FGREP
5969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5970 $as_echo "$ac_cv_path_FGREP" >&6; }
5971 FGREP="$ac_cv_path_FGREP"
5974 test -z "$GREP" && GREP=grep
5994 # Check whether --with-gnu-ld was given.
5995 if test "${with_gnu_ld+set}" = set; then :
5996 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
6002 if test "$GCC" = yes; then
6003 # Check if gcc -print-prog-name=ld gives a path.
6004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
6005 $as_echo_n "checking for ld used by $CC... " >&6; }
6008 # gcc leaves a trailing carriage return which upsets mingw
6009 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6011 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6014 # Accept absolute paths.
6016 re_direlt='/[^/][^/]*/\.\./'
6017 # Canonicalize the pathname of ld
6018 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
6019 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
6020 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
6022 test -z "$LD" && LD="$ac_prog"
6025 # If it fails, then pretend we aren't using GCC.
6029 # If it is relative, then search for the first ld in PATH.
6033 elif test "$with_gnu_ld" = yes; then
6034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
6035 $as_echo_n "checking for GNU ld... " >&6; }
6037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
6038 $as_echo_n "checking for non-GNU ld... " >&6; }
6040 if ${lt_cv_path_LD+:} false; then :
6041 $as_echo_n "(cached) " >&6
6043 if test -z "$LD"; then
6044 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6045 for ac_dir in $PATH; do
6047 test -z "$ac_dir" && ac_dir=.
6048 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6049 lt_cv_path_LD="$ac_dir/$ac_prog"
6050 # Check to see if the program is GNU ld. I'd rather use --version,
6051 # but apparently some variants of GNU ld only accept -v.
6052 # Break only if it was the GNU/non-GNU ld that we prefer.
6053 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6054 *GNU* | *'with BFD'*)
6055 test "$with_gnu_ld" != no && break
6058 test "$with_gnu_ld" != yes && break
6065 lt_cv_path_LD="$LD" # Let the user override the test with a path.
6070 if test -n "$LD"; then
6071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
6072 $as_echo "$LD" >&6; }
6074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6075 $as_echo "no" >&6; }
6077 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
6078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
6079 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
6080 if ${lt_cv_prog_gnu_ld+:} false; then :
6081 $as_echo_n "(cached) " >&6
6083 # I'd rather use --version here, but apparently some GNU lds only accept -v.
6084 case `$LD -v 2>&1 </dev/null` in
6085 *GNU* | *'with BFD'*)
6086 lt_cv_prog_gnu_ld=yes
6089 lt_cv_prog_gnu_ld=no
6093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
6094 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
6095 with_gnu_ld=$lt_cv_prog_gnu_ld
6105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
6106 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
6107 if ${lt_cv_path_NM+:} false; then :
6108 $as_echo_n "(cached) " >&6
6110 if test -n "$NM"; then
6111 # Let the user override the test.
6114 lt_nm_to_check="${ac_tool_prefix}nm"
6115 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6116 lt_nm_to_check="$lt_nm_to_check nm"
6118 for lt_tmp_nm in $lt_nm_to_check; do
6119 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6120 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6122 test -z "$ac_dir" && ac_dir=.
6123 tmp_nm="$ac_dir/$lt_tmp_nm"
6124 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6125 # Check to see if the nm accepts a BSD-compat flag.
6126 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6127 # nm: unknown option "B" ignored
6128 # Tru64's nm complains that /dev/null is an invalid object file
6129 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6130 */dev/null* | *'Invalid file or object type'*)
6131 lt_cv_path_NM="$tmp_nm -B"
6135 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6137 lt_cv_path_NM="$tmp_nm -p"
6141 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6142 continue # so that we can try to find one that supports BSD flags
6151 : ${lt_cv_path_NM=no}
6154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
6155 $as_echo "$lt_cv_path_NM" >&6; }
6156 if test "$lt_cv_path_NM" != "no"; then
6159 # Didn't find any BSD compatible name lister, look for dumpbin.
6160 if test -n "$DUMPBIN"; then :
6161 # Let the user override the test.
6163 if test -n "$ac_tool_prefix"; then
6164 for ac_prog in dumpbin "link -dump"
6166 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6167 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6169 $as_echo_n "checking for $ac_word... " >&6; }
6170 if ${ac_cv_prog_DUMPBIN+:} false; then :
6171 $as_echo_n "(cached) " >&6
6173 if test -n "$DUMPBIN"; then
6174 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
6176 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6180 test -z "$as_dir" && as_dir=.
6181 for ac_exec_ext in '' $ac_executable_extensions; do
6182 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6183 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
6184 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6193 DUMPBIN=$ac_cv_prog_DUMPBIN
6194 if test -n "$DUMPBIN"; then
6195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
6196 $as_echo "$DUMPBIN" >&6; }
6198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6199 $as_echo "no" >&6; }
6203 test -n "$DUMPBIN" && break
6206 if test -z "$DUMPBIN"; then
6207 ac_ct_DUMPBIN=$DUMPBIN
6208 for ac_prog in dumpbin "link -dump"
6210 # Extract the first word of "$ac_prog", so it can be a program name with args.
6211 set dummy $ac_prog; ac_word=$2
6212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6213 $as_echo_n "checking for $ac_word... " >&6; }
6214 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
6215 $as_echo_n "(cached) " >&6
6217 if test -n "$ac_ct_DUMPBIN"; then
6218 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
6220 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6224 test -z "$as_dir" && as_dir=.
6225 for ac_exec_ext in '' $ac_executable_extensions; do
6226 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6227 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
6228 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6237 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
6238 if test -n "$ac_ct_DUMPBIN"; then
6239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
6240 $as_echo "$ac_ct_DUMPBIN" >&6; }
6242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6243 $as_echo "no" >&6; }
6247 test -n "$ac_ct_DUMPBIN" && break
6250 if test "x$ac_ct_DUMPBIN" = x; then
6253 case $cross_compiling:$ac_tool_warned in
6255 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6256 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6257 ac_tool_warned=yes ;;
6259 DUMPBIN=$ac_ct_DUMPBIN
6263 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
6265 DUMPBIN="$DUMPBIN -symbols"
6273 if test "$DUMPBIN" != ":"; then
6277 test -z "$NM" && NM=nm
6284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
6285 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
6286 if ${lt_cv_nm_interface+:} false; then :
6287 $as_echo_n "(cached) " >&6
6289 lt_cv_nm_interface="BSD nm"
6290 echo "int some_variable = 0;" > conftest.$ac_ext
6291 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
6292 (eval "$ac_compile" 2>conftest.err)
6293 cat conftest.err >&5
6294 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6295 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6296 cat conftest.err >&5
6297 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
6298 cat conftest.out >&5
6299 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6300 lt_cv_nm_interface="MS dumpbin"
6304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6305 $as_echo "$lt_cv_nm_interface" >&6; }
6307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6308 $as_echo_n "checking whether ln -s works... " >&6; }
6310 if test "$LN_S" = "ln -s"; then
6311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6312 $as_echo "yes" >&6; }
6314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6315 $as_echo "no, using $LN_S" >&6; }
6318 # find the maximum length of command line arguments
6319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6320 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
6321 if ${lt_cv_sys_max_cmd_len+:} false; then :
6322 $as_echo_n "(cached) " >&6
6329 # On DJGPP, this test can blow up pretty badly due to problems in libc
6330 # (any single argument exceeding 2000 bytes causes a buffer overrun
6331 # during glob expansion). Even if it were fixed, the result of this
6332 # check would be larger than it should be.
6333 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6337 # Under GNU Hurd, this test is not required because there is
6338 # no limit to the length of command line arguments.
6339 # Libtool will interpret -1 as no limit whatsoever
6340 lt_cv_sys_max_cmd_len=-1;
6343 cygwin* | mingw* | cegcc*)
6344 # On Win9x/ME, this test blows up -- it succeeds, but takes
6345 # about 5 minutes as the teststring grows exponentially.
6346 # Worse, since 9x/ME are not pre-emptively multitasking,
6347 # you end up with a "frozen" computer, even though with patience
6348 # the test eventually succeeds (with a max line length of 256k).
6349 # Instead, let's just punt: use the minimum linelength reported by
6350 # all of the supported platforms: 8192 (on NT/2K/XP).
6351 lt_cv_sys_max_cmd_len=8192;
6355 # On MiNT this can take a long time and run out of memory.
6356 lt_cv_sys_max_cmd_len=8192;
6360 # On AmigaOS with pdksh, this test takes hours, literally.
6361 # So we just punt and use a minimum line length of 8192.
6362 lt_cv_sys_max_cmd_len=8192;
6365 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6366 # This has been around since 386BSD, at least. Likely further.
6367 if test -x /sbin/sysctl; then
6368 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6369 elif test -x /usr/sbin/sysctl; then
6370 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6372 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6374 # And add a safety zone
6375 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6376 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6380 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6381 lt_cv_sys_max_cmd_len=196608
6385 # The test takes a long time on OS/2.
6386 lt_cv_sys_max_cmd_len=8192
6390 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6391 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6392 # nice to cause kernel panics so lets avoid the loop below.
6393 # First set a reasonable default.
6394 lt_cv_sys_max_cmd_len=16384
6396 if test -x /sbin/sysconfig; then
6397 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6398 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6403 lt_cv_sys_max_cmd_len=102400
6405 sysv5* | sco5v6* | sysv4.2uw2*)
6406 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6407 if test -n "$kargmax"; then
6408 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6410 lt_cv_sys_max_cmd_len=32768
6414 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6415 if test -n "$lt_cv_sys_max_cmd_len" && \
6416 test undefined != "$lt_cv_sys_max_cmd_len"; then
6417 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6418 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6420 # Make teststring a little bigger before we do anything with it.
6421 # a 1K string should be a reasonable start.
6422 for i in 1 2 3 4 5 6 7 8 ; do
6423 teststring=$teststring$teststring
6425 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6426 # If test is not a shell built-in, we'll probably end up computing a
6427 # maximum length that is only half of the actual maximum length, but
6429 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
6430 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
6431 test $i != 17 # 1/2 MB should be enough
6434 teststring=$teststring$teststring
6436 # Only check the string length outside the loop.
6437 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6439 # Add a significant safety factor because C++ compilers can tack on
6440 # massive amounts of additional arguments before passing them to the
6441 # linker. It appears as though 1/2 is a usable value.
6442 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6449 if test -n $lt_cv_sys_max_cmd_len ; then
6450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6451 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6454 $as_echo "none" >&6; }
6456 max_cmd_len=$lt_cv_sys_max_cmd_len
6467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
6468 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
6469 # Try some XSI features
6472 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
6474 && eval 'test $(( 1 + 1 )) -eq 2 \
6475 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
6477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
6478 $as_echo "$xsi_shell" >&6; }
6481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
6482 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
6484 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6486 && lt_shell_append=yes
6487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
6488 $as_echo "$lt_shell_append" >&6; }
6491 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6501 # test EBCDIC or ASCII
6502 case `echo X|tr X '\101'` in
6503 A) # ASCII based system
6504 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6505 lt_SP2NL='tr \040 \012'
6506 lt_NL2SP='tr \015\012 \040\040'
6508 *) # EBCDIC based system
6509 lt_SP2NL='tr \100 \n'
6510 lt_NL2SP='tr \r\n \100\100'
6522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
6523 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
6524 if ${lt_cv_to_host_file_cmd+:} false; then :
6525 $as_echo_n "(cached) " >&6
6530 *-*-mingw* ) # actually msys
6531 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
6534 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
6536 * ) # otherwise, assume *nix
6537 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
6543 *-*-mingw* ) # actually msys
6544 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
6547 lt_cv_to_host_file_cmd=func_convert_file_noop
6549 * ) # otherwise, assume *nix
6550 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
6554 * ) # unhandled hosts (and "normal" native builds)
6555 lt_cv_to_host_file_cmd=func_convert_file_noop
6561 to_host_file_cmd=$lt_cv_to_host_file_cmd
6562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
6563 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
6569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
6570 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
6571 if ${lt_cv_to_tool_file_cmd+:} false; then :
6572 $as_echo_n "(cached) " >&6
6574 #assume ordinary cross tools, or native build.
6575 lt_cv_to_tool_file_cmd=func_convert_file_noop
6579 *-*-mingw* ) # actually msys
6580 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
6588 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
6589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
6590 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
6596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6597 $as_echo_n "checking for $LD option to reload object files... " >&6; }
6598 if ${lt_cv_ld_reload_flag+:} false; then :
6599 $as_echo_n "(cached) " >&6
6601 lt_cv_ld_reload_flag='-r'
6603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6604 $as_echo "$lt_cv_ld_reload_flag" >&6; }
6605 reload_flag=$lt_cv_ld_reload_flag
6606 case $reload_flag in
6608 *) reload_flag=" $reload_flag" ;;
6610 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6612 cygwin* | mingw* | pw32* | cegcc*)
6613 if test "$GCC" != yes; then
6618 if test "$GCC" = yes; then
6619 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6621 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6634 if test -n "$ac_tool_prefix"; then
6635 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6636 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6638 $as_echo_n "checking for $ac_word... " >&6; }
6639 if ${ac_cv_prog_OBJDUMP+:} false; then :
6640 $as_echo_n "(cached) " >&6
6642 if test -n "$OBJDUMP"; then
6643 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6645 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6649 test -z "$as_dir" && as_dir=.
6650 for ac_exec_ext in '' $ac_executable_extensions; do
6651 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6652 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6653 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6662 OBJDUMP=$ac_cv_prog_OBJDUMP
6663 if test -n "$OBJDUMP"; then
6664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6665 $as_echo "$OBJDUMP" >&6; }
6667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6668 $as_echo "no" >&6; }
6673 if test -z "$ac_cv_prog_OBJDUMP"; then
6674 ac_ct_OBJDUMP=$OBJDUMP
6675 # Extract the first word of "objdump", so it can be a program name with args.
6676 set dummy objdump; ac_word=$2
6677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6678 $as_echo_n "checking for $ac_word... " >&6; }
6679 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
6680 $as_echo_n "(cached) " >&6
6682 if test -n "$ac_ct_OBJDUMP"; then
6683 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6685 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6689 test -z "$as_dir" && as_dir=.
6690 for ac_exec_ext in '' $ac_executable_extensions; do
6691 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6692 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6693 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6702 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6703 if test -n "$ac_ct_OBJDUMP"; then
6704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6705 $as_echo "$ac_ct_OBJDUMP" >&6; }
6707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6708 $as_echo "no" >&6; }
6711 if test "x$ac_ct_OBJDUMP" = x; then
6714 case $cross_compiling:$ac_tool_warned in
6716 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6717 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6718 ac_tool_warned=yes ;;
6720 OBJDUMP=$ac_ct_OBJDUMP
6723 OBJDUMP="$ac_cv_prog_OBJDUMP"
6726 test -z "$OBJDUMP" && OBJDUMP=objdump
6736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6737 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
6738 if ${lt_cv_deplibs_check_method+:} false; then :
6739 $as_echo_n "(cached) " >&6
6741 lt_cv_file_magic_cmd='$MAGIC_CMD'
6742 lt_cv_file_magic_test_file=
6743 lt_cv_deplibs_check_method='unknown'
6744 # Need to set the preceding variable on all platforms that support
6745 # interlibrary dependencies.
6746 # 'none' -- dependencies not supported.
6747 # `unknown' -- same as none, but documents that we really don't know.
6748 # 'pass_all' -- all dependencies passed with no checks.
6749 # 'test_compile' -- check by making test program.
6750 # 'file_magic [[regex]]' -- check by looking for files in library path
6751 # which responds to the $file_magic_cmd with a given extended regex.
6752 # If you have `file' or equivalent on your system and you're not sure
6753 # whether `pass_all' will *always* work, you probably want this one.
6757 lt_cv_deplibs_check_method=pass_all
6761 lt_cv_deplibs_check_method=pass_all
6765 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6766 lt_cv_file_magic_cmd='/usr/bin/file -L'
6767 lt_cv_file_magic_test_file=/shlib/libc.so
6771 # func_win32_libid is a shell function defined in ltmain.sh
6772 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6773 lt_cv_file_magic_cmd='func_win32_libid'
6777 # Base MSYS/MinGW do not provide the 'file' command needed by
6778 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6779 # unless we find 'file', for example because we are cross-compiling.
6780 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
6781 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
6782 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6783 lt_cv_file_magic_cmd='func_win32_libid'
6785 # Keep this pattern in sync with the one in func_win32_libid.
6786 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
6787 lt_cv_file_magic_cmd='$OBJDUMP -f'
6792 # use the weaker test based on 'objdump'. See mingw*.
6793 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6794 lt_cv_file_magic_cmd='$OBJDUMP -f'
6797 darwin* | rhapsody*)
6798 lt_cv_deplibs_check_method=pass_all
6801 freebsd* | dragonfly*)
6802 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6805 # Not sure whether the presence of OpenBSD here was a mistake.
6806 # Let's accept both of them until this is cleared up.
6807 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6808 lt_cv_file_magic_cmd=/usr/bin/file
6809 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6813 lt_cv_deplibs_check_method=pass_all
6818 lt_cv_deplibs_check_method=pass_all
6821 hpux10.20* | hpux11*)
6822 lt_cv_file_magic_cmd=/usr/bin/file
6825 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6826 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6829 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]'
6830 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6833 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6834 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6840 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6841 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6844 irix5* | irix6* | nonstopux*)
6846 *-32|*"-32 ") libmagic=32-bit;;
6847 *-n32|*"-n32 ") libmagic=N32;;
6848 *-64|*"-64 ") libmagic=64-bit;;
6849 *) libmagic=never-match;;
6851 lt_cv_deplibs_check_method=pass_all
6854 # This must be glibc/ELF.
6855 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
6856 lt_cv_deplibs_check_method=pass_all
6859 netbsd* | netbsdelf*-gnu)
6860 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6861 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6863 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6868 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6869 lt_cv_file_magic_cmd=/usr/bin/file
6870 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6874 lt_cv_deplibs_check_method=pass_all
6878 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6879 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6881 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6885 osf3* | osf4* | osf5*)
6886 lt_cv_deplibs_check_method=pass_all
6890 lt_cv_deplibs_check_method=pass_all
6894 lt_cv_deplibs_check_method=pass_all
6897 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6898 lt_cv_deplibs_check_method=pass_all
6902 case $host_vendor in
6904 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]'
6905 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6908 lt_cv_deplibs_check_method=pass_all
6911 lt_cv_file_magic_cmd='/bin/file'
6912 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6915 lt_cv_file_magic_cmd='/bin/file'
6916 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6917 lt_cv_file_magic_test_file=/lib/libc.so
6920 lt_cv_deplibs_check_method=pass_all
6923 lt_cv_deplibs_check_method=pass_all
6929 lt_cv_deplibs_check_method=pass_all
6934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6935 $as_echo "$lt_cv_deplibs_check_method" >&6; }
6939 if test "$build" = "$host"; then
6942 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
6945 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
6951 file_magic_cmd=$lt_cv_file_magic_cmd
6952 deplibs_check_method=$lt_cv_deplibs_check_method
6953 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6976 if test -n "$ac_tool_prefix"; then
6977 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6978 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6980 $as_echo_n "checking for $ac_word... " >&6; }
6981 if ${ac_cv_prog_DLLTOOL+:} false; then :
6982 $as_echo_n "(cached) " >&6
6984 if test -n "$DLLTOOL"; then
6985 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6987 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6991 test -z "$as_dir" && as_dir=.
6992 for ac_exec_ext in '' $ac_executable_extensions; do
6993 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6994 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6995 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7004 DLLTOOL=$ac_cv_prog_DLLTOOL
7005 if test -n "$DLLTOOL"; then
7006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
7007 $as_echo "$DLLTOOL" >&6; }
7009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7010 $as_echo "no" >&6; }
7015 if test -z "$ac_cv_prog_DLLTOOL"; then
7016 ac_ct_DLLTOOL=$DLLTOOL
7017 # Extract the first word of "dlltool", so it can be a program name with args.
7018 set dummy dlltool; ac_word=$2
7019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7020 $as_echo_n "checking for $ac_word... " >&6; }
7021 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
7022 $as_echo_n "(cached) " >&6
7024 if test -n "$ac_ct_DLLTOOL"; then
7025 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
7027 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7031 test -z "$as_dir" && as_dir=.
7032 for ac_exec_ext in '' $ac_executable_extensions; do
7033 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7034 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
7035 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7044 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
7045 if test -n "$ac_ct_DLLTOOL"; then
7046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
7047 $as_echo "$ac_ct_DLLTOOL" >&6; }
7049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7050 $as_echo "no" >&6; }
7053 if test "x$ac_ct_DLLTOOL" = x; then
7056 case $cross_compiling:$ac_tool_warned in
7058 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7059 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7060 ac_tool_warned=yes ;;
7062 DLLTOOL=$ac_ct_DLLTOOL
7065 DLLTOOL="$ac_cv_prog_DLLTOOL"
7068 test -z "$DLLTOOL" && DLLTOOL=dlltool
7079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
7080 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
7081 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
7082 $as_echo_n "(cached) " >&6
7084 lt_cv_sharedlib_from_linklib_cmd='unknown'
7087 cygwin* | mingw* | pw32* | cegcc*)
7088 # two different shell functions defined in ltmain.sh
7089 # decide which to use based on capabilities of $DLLTOOL
7090 case `$DLLTOOL --help 2>&1` in
7091 *--identify-strict*)
7092 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
7095 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
7100 # fallback: assume linklib IS sharedlib
7101 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
7106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
7107 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
7108 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
7109 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
7117 if test -n "$ac_tool_prefix"; then
7120 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7121 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7123 $as_echo_n "checking for $ac_word... " >&6; }
7124 if ${ac_cv_prog_AR+:} false; then :
7125 $as_echo_n "(cached) " >&6
7127 if test -n "$AR"; then
7128 ac_cv_prog_AR="$AR" # Let the user override the test.
7130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7134 test -z "$as_dir" && as_dir=.
7135 for ac_exec_ext in '' $ac_executable_extensions; do
7136 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7137 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
7138 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7148 if test -n "$AR"; then
7149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7150 $as_echo "$AR" >&6; }
7152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7153 $as_echo "no" >&6; }
7157 test -n "$AR" && break
7160 if test -z "$AR"; then
7164 # Extract the first word of "$ac_prog", so it can be a program name with args.
7165 set dummy $ac_prog; ac_word=$2
7166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7167 $as_echo_n "checking for $ac_word... " >&6; }
7168 if ${ac_cv_prog_ac_ct_AR+:} false; then :
7169 $as_echo_n "(cached) " >&6
7171 if test -n "$ac_ct_AR"; then
7172 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7174 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7178 test -z "$as_dir" && as_dir=.
7179 for ac_exec_ext in '' $ac_executable_extensions; do
7180 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7181 ac_cv_prog_ac_ct_AR="$ac_prog"
7182 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7191 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7192 if test -n "$ac_ct_AR"; then
7193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
7194 $as_echo "$ac_ct_AR" >&6; }
7196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7197 $as_echo "no" >&6; }
7201 test -n "$ac_ct_AR" && break
7204 if test "x$ac_ct_AR" = x; then
7207 case $cross_compiling:$ac_tool_warned in
7209 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7210 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7211 ac_tool_warned=yes ;;
7230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
7231 $as_echo_n "checking for archiver @FILE support... " >&6; }
7232 if ${lt_cv_ar_at_file+:} false; then :
7233 $as_echo_n "(cached) " >&6
7236 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7237 /* end confdefs.h. */
7247 if ac_fn_c_try_compile "$LINENO"; then :
7248 echo conftest.$ac_objext > conftest.lst
7249 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
7250 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
7251 (eval $lt_ar_try) 2>&5
7253 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7254 test $ac_status = 0; }
7255 if test "$ac_status" -eq 0; then
7256 # Ensure the archiver fails upon bogus file names.
7257 rm -f conftest.$ac_objext libconftest.a
7258 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
7259 (eval $lt_ar_try) 2>&5
7261 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7262 test $ac_status = 0; }
7263 if test "$ac_status" -ne 0; then
7267 rm -f conftest.* libconftest.a
7270 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
7274 $as_echo "$lt_cv_ar_at_file" >&6; }
7276 if test "x$lt_cv_ar_at_file" = xno; then
7279 archiver_list_spec=$lt_cv_ar_at_file
7288 if test -n "$ac_tool_prefix"; then
7289 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7290 set dummy ${ac_tool_prefix}strip; ac_word=$2
7291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7292 $as_echo_n "checking for $ac_word... " >&6; }
7293 if ${ac_cv_prog_STRIP+:} false; then :
7294 $as_echo_n "(cached) " >&6
7296 if test -n "$STRIP"; then
7297 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7299 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7303 test -z "$as_dir" && as_dir=.
7304 for ac_exec_ext in '' $ac_executable_extensions; do
7305 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7306 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7307 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7316 STRIP=$ac_cv_prog_STRIP
7317 if test -n "$STRIP"; then
7318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
7319 $as_echo "$STRIP" >&6; }
7321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7322 $as_echo "no" >&6; }
7327 if test -z "$ac_cv_prog_STRIP"; then
7329 # Extract the first word of "strip", so it can be a program name with args.
7330 set dummy strip; ac_word=$2
7331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7332 $as_echo_n "checking for $ac_word... " >&6; }
7333 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
7334 $as_echo_n "(cached) " >&6
7336 if test -n "$ac_ct_STRIP"; then
7337 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7339 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7343 test -z "$as_dir" && as_dir=.
7344 for ac_exec_ext in '' $ac_executable_extensions; do
7345 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7346 ac_cv_prog_ac_ct_STRIP="strip"
7347 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7356 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7357 if test -n "$ac_ct_STRIP"; then
7358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
7359 $as_echo "$ac_ct_STRIP" >&6; }
7361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7362 $as_echo "no" >&6; }
7365 if test "x$ac_ct_STRIP" = x; then
7368 case $cross_compiling:$ac_tool_warned in
7370 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7371 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7372 ac_tool_warned=yes ;;
7377 STRIP="$ac_cv_prog_STRIP"
7380 test -z "$STRIP" && STRIP=:
7387 if test -n "$ac_tool_prefix"; then
7388 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7389 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7391 $as_echo_n "checking for $ac_word... " >&6; }
7392 if ${ac_cv_prog_RANLIB+:} false; then :
7393 $as_echo_n "(cached) " >&6
7395 if test -n "$RANLIB"; then
7396 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7398 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7402 test -z "$as_dir" && as_dir=.
7403 for ac_exec_ext in '' $ac_executable_extensions; do
7404 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7405 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7406 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7415 RANLIB=$ac_cv_prog_RANLIB
7416 if test -n "$RANLIB"; then
7417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7418 $as_echo "$RANLIB" >&6; }
7420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7421 $as_echo "no" >&6; }
7426 if test -z "$ac_cv_prog_RANLIB"; then
7427 ac_ct_RANLIB=$RANLIB
7428 # Extract the first word of "ranlib", so it can be a program name with args.
7429 set dummy ranlib; ac_word=$2
7430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7431 $as_echo_n "checking for $ac_word... " >&6; }
7432 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
7433 $as_echo_n "(cached) " >&6
7435 if test -n "$ac_ct_RANLIB"; then
7436 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7438 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7442 test -z "$as_dir" && as_dir=.
7443 for ac_exec_ext in '' $ac_executable_extensions; do
7444 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7445 ac_cv_prog_ac_ct_RANLIB="ranlib"
7446 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7455 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7456 if test -n "$ac_ct_RANLIB"; then
7457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7458 $as_echo "$ac_ct_RANLIB" >&6; }
7460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7461 $as_echo "no" >&6; }
7464 if test "x$ac_ct_RANLIB" = x; then
7467 case $cross_compiling:$ac_tool_warned in
7469 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7470 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7471 ac_tool_warned=yes ;;
7473 RANLIB=$ac_ct_RANLIB
7476 RANLIB="$ac_cv_prog_RANLIB"
7479 test -z "$RANLIB" && RANLIB=:
7486 # Determine commands to create old-style static archives.
7487 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7488 old_postinstall_cmds='chmod 644 $oldlib'
7489 old_postuninstall_cmds=
7491 if test -n "$RANLIB"; then
7494 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
7497 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
7500 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
7505 lock_old_archive_extraction=yes ;;
7507 lock_old_archive_extraction=no ;;
7548 # If no C compiler was specified, use CC.
7551 # If no C compiler flags were specified, use CFLAGS.
7552 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7554 # Allow CC to be a program name with arguments.
7558 # Check for command to grab the raw symbol name followed by C symbol from nm.
7559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7560 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
7561 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
7562 $as_echo_n "(cached) " >&6
7565 # These are sane defaults that work on at least a few old systems.
7566 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
7568 # Character class describing NM global symbol codes.
7569 symcode='[BCDEGRST]'
7571 # Regexp to match symbols that can be accessed directly from C.
7572 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7574 # Define system-specific variables.
7579 cygwin* | mingw* | pw32* | cegcc*)
7580 symcode='[ABCDGISTW]'
7583 if test "$host_cpu" = ia64; then
7584 symcode='[ABCDEGRST]'
7588 symcode='[BCDEGRST]'
7591 symcode='[BCDEGQRST]'
7602 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7610 # If we're using GNU nm, then use its standard symbol codes.
7611 case `$NM -V 2>&1` in
7612 *GNU* | *'with BFD'*)
7613 symcode='[ABCDGIRSTW]' ;;
7616 # Transform an extracted symbol line into a proper C declaration.
7617 # Some systems (esp. on ia64) link data and code symbols differently,
7618 # so use this general approach.
7619 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7621 # Transform an extracted symbol line into symbol name and symbol address
7622 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
7623 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'"
7625 # Handle CRLF in mingw tool chain
7629 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7633 # Try without a prefix underscore, then with it.
7634 for ac_symprfx in "" "_"; do
7636 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7637 symxfrm="\\1 $ac_symprfx\\2 \\2"
7639 # Write the raw and C identifiers.
7640 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7641 # Fake it for dumpbin and say T for any non-static function
7642 # and D for any global variable.
7643 # Also find C++ and __fastcall symbols from MSVC++,
7644 # which start with @ or ?.
7645 lt_cv_sys_global_symbol_pipe="$AWK '"\
7646 " {last_section=section; section=\$ 3};"\
7647 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
7648 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7649 " \$ 0!~/External *\|/{next};"\
7650 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7651 " {if(hide[section]) next};"\
7652 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
7653 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
7654 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
7655 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
7656 " ' prfx=^$ac_symprfx"
7658 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7660 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
7662 # Check to see that the pipe works correctly.
7666 cat > conftest.$ac_ext <<_LT_EOF
7671 void nm_test_func(void);
7672 void nm_test_func(void){}
7676 int main(){nm_test_var='a';nm_test_func();return(0);}
7679 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7680 (eval $ac_compile) 2>&5
7682 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7683 test $ac_status = 0; }; then
7684 # Now try to grab the symbols.
7686 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7687 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7689 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7690 test $ac_status = 0; } && test -s "$nlist"; then
7691 # Try sorting and uniquifying the output.
7692 if sort "$nlist" | uniq > "$nlist"T; then
7693 mv -f "$nlist"T "$nlist"
7698 # Make sure that we snagged all the symbols we need.
7699 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7700 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7701 cat <<_LT_EOF > conftest.$ac_ext
7702 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
7703 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
7704 /* DATA imports from DLLs on WIN32 con't be const, because runtime
7705 relocations are performed -- see ld's documentation on pseudo-relocs. */
7706 # define LT_DLSYM_CONST
7707 #elif defined(__osf__)
7708 /* This system does not cope well with relocations in const data. */
7709 # define LT_DLSYM_CONST
7711 # define LT_DLSYM_CONST const
7719 # Now generate the symbol file.
7720 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7722 cat <<_LT_EOF >> conftest.$ac_ext
7724 /* The mapping between symbol names and symbols. */
7725 LT_DLSYM_CONST struct {
7729 lt__PROGRAM__LTX_preloaded_symbols[] =
7731 { "@PROGRAM@", (void *) 0 },
7733 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7734 cat <<\_LT_EOF >> conftest.$ac_ext
7738 /* This works around a problem in FreeBSD linker */
7739 #ifdef FREEBSD_WORKAROUND
7740 static const void *lt_preloaded_setup() {
7741 return lt__PROGRAM__LTX_preloaded_symbols;
7749 # Now try linking the two files.
7750 mv conftest.$ac_objext conftstm.$ac_objext
7751 lt_globsym_save_LIBS=$LIBS
7752 lt_globsym_save_CFLAGS=$CFLAGS
7753 LIBS="conftstm.$ac_objext"
7754 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7755 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7756 (eval $ac_link) 2>&5
7758 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7759 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
7762 LIBS=$lt_globsym_save_LIBS
7763 CFLAGS=$lt_globsym_save_CFLAGS
7765 echo "cannot find nm_test_func in $nlist" >&5
7768 echo "cannot find nm_test_var in $nlist" >&5
7771 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7774 echo "$progname: failed program was:" >&5
7775 cat conftest.$ac_ext >&5
7777 rm -rf conftest* conftst*
7779 # Do not use the global_symbol_pipe unless it works.
7780 if test "$pipe_works" = yes; then
7783 lt_cv_sys_global_symbol_pipe=
7789 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7790 lt_cv_sys_global_symbol_to_cdecl=
7792 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7794 $as_echo "failed" >&6; }
7796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7797 $as_echo "ok" >&6; }
7800 # Response file support.
7801 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7802 nm_file_list_spec='@'
7803 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
7804 nm_file_list_spec='@'
7833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
7834 $as_echo_n "checking for sysroot... " >&6; }
7836 # Check whether --with-sysroot was given.
7837 if test "${with_sysroot+set}" = set; then :
7838 withval=$with_sysroot;
7845 case ${with_sysroot} in #(
7847 if test "$GCC" = yes; then
7848 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
7852 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
7857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
7858 $as_echo "${with_sysroot}" >&6; }
7859 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
7863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
7864 $as_echo "${lt_sysroot:-no}" >&6; }
7870 # Check whether --enable-libtool-lock was given.
7871 if test "${enable_libtool_lock+set}" = set; then :
7872 enableval=$enable_libtool_lock;
7875 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7877 # Some flags need to be propagated to the compiler or linker for good
7881 # Find out which ABI we are using.
7882 echo 'int i;' > conftest.$ac_ext
7883 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7884 (eval $ac_compile) 2>&5
7886 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7887 test $ac_status = 0; }; then
7888 case `/usr/bin/file conftest.$ac_objext` in
7900 # Find out which ABI we are using.
7901 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7902 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7903 (eval $ac_compile) 2>&5
7905 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7906 test $ac_status = 0; }; then
7907 if test "$lt_cv_prog_gnu_ld" = yes; then
7908 case `/usr/bin/file conftest.$ac_objext` in
7910 LD="${LD-ld} -melf32bsmip"
7913 LD="${LD-ld} -melf32bmipn32"
7916 LD="${LD-ld} -melf64bmip"
7920 case `/usr/bin/file conftest.$ac_objext` in
7936 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
7937 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7938 # Find out which ABI we are using.
7939 echo 'int i;' > conftest.$ac_ext
7940 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7941 (eval $ac_compile) 2>&5
7943 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7944 test $ac_status = 0; }; then
7945 case `/usr/bin/file conftest.o` in
7948 x86_64-*kfreebsd*-gnu)
7949 LD="${LD-ld} -m elf_i386_fbsd"
7952 case `/usr/bin/file conftest.o` in
7954 LD="${LD-ld} -m elf32_x86_64"
7957 LD="${LD-ld} -m elf_i386"
7961 ppc64-*linux*|powerpc64-*linux*)
7962 LD="${LD-ld} -m elf32ppclinux"
7965 LD="${LD-ld} -m elf_s390"
7968 LD="${LD-ld} -m elf32_sparc"
7974 x86_64-*kfreebsd*-gnu)
7975 LD="${LD-ld} -m elf_x86_64_fbsd"
7978 LD="${LD-ld} -m elf_x86_64"
7980 ppc*-*linux*|powerpc*-*linux*)
7981 LD="${LD-ld} -m elf64ppc"
7983 s390*-*linux*|s390*-*tpf*)
7984 LD="${LD-ld} -m elf64_s390"
7987 LD="${LD-ld} -m elf64_sparc"
7997 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7998 SAVE_CFLAGS="$CFLAGS"
7999 CFLAGS="$CFLAGS -belf"
8000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
8001 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
8002 if ${lt_cv_cc_needs_belf+:} false; then :
8003 $as_echo_n "(cached) " >&6
8006 ac_cpp='$CPP $CPPFLAGS'
8007 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8008 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8009 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8011 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8012 /* end confdefs.h. */
8022 if ac_fn_c_try_link "$LINENO"; then :
8023 lt_cv_cc_needs_belf=yes
8025 lt_cv_cc_needs_belf=no
8027 rm -f core conftest.err conftest.$ac_objext \
8028 conftest$ac_exeext conftest.$ac_ext
8030 ac_cpp='$CPP $CPPFLAGS'
8031 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8032 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8033 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
8037 $as_echo "$lt_cv_cc_needs_belf" >&6; }
8038 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
8039 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
8040 CFLAGS="$SAVE_CFLAGS"
8044 # Find out which ABI we are using.
8045 echo 'int i;' > conftest.$ac_ext
8046 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8047 (eval $ac_compile) 2>&5
8049 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8050 test $ac_status = 0; }; then
8051 case `/usr/bin/file conftest.o` in
8053 case $lt_cv_prog_gnu_ld in
8057 LD="${LD-ld} -m elf_x86_64"
8060 LD="${LD-ld} -m elf64_sparc"
8063 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
8064 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
8069 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
8081 need_locks="$enable_libtool_lock"
8083 if test -n "$ac_tool_prefix"; then
8084 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
8085 set dummy ${ac_tool_prefix}mt; ac_word=$2
8086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8087 $as_echo_n "checking for $ac_word... " >&6; }
8088 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
8089 $as_echo_n "(cached) " >&6
8091 if test -n "$MANIFEST_TOOL"; then
8092 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
8094 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8098 test -z "$as_dir" && as_dir=.
8099 for ac_exec_ext in '' $ac_executable_extensions; do
8100 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8101 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
8102 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8111 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
8112 if test -n "$MANIFEST_TOOL"; then
8113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
8114 $as_echo "$MANIFEST_TOOL" >&6; }
8116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8117 $as_echo "no" >&6; }
8122 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
8123 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
8124 # Extract the first word of "mt", so it can be a program name with args.
8125 set dummy mt; ac_word=$2
8126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8127 $as_echo_n "checking for $ac_word... " >&6; }
8128 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
8129 $as_echo_n "(cached) " >&6
8131 if test -n "$ac_ct_MANIFEST_TOOL"; then
8132 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
8134 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8138 test -z "$as_dir" && as_dir=.
8139 for ac_exec_ext in '' $ac_executable_extensions; do
8140 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8141 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
8142 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8151 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
8152 if test -n "$ac_ct_MANIFEST_TOOL"; then
8153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
8154 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
8156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8157 $as_echo "no" >&6; }
8160 if test "x$ac_ct_MANIFEST_TOOL" = x; then
8163 case $cross_compiling:$ac_tool_warned in
8165 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8166 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8167 ac_tool_warned=yes ;;
8169 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
8172 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
8175 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
8176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
8177 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
8178 if ${lt_cv_path_mainfest_tool+:} false; then :
8179 $as_echo_n "(cached) " >&6
8181 lt_cv_path_mainfest_tool=no
8182 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
8183 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
8184 cat conftest.err >&5
8185 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
8186 lt_cv_path_mainfest_tool=yes
8190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
8191 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
8192 if test "x$lt_cv_path_mainfest_tool" != xyes; then
8202 rhapsody* | darwin*)
8203 if test -n "$ac_tool_prefix"; then
8204 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
8205 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
8206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8207 $as_echo_n "checking for $ac_word... " >&6; }
8208 if ${ac_cv_prog_DSYMUTIL+:} false; then :
8209 $as_echo_n "(cached) " >&6
8211 if test -n "$DSYMUTIL"; then
8212 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
8214 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8218 test -z "$as_dir" && as_dir=.
8219 for ac_exec_ext in '' $ac_executable_extensions; do
8220 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8221 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
8222 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8231 DSYMUTIL=$ac_cv_prog_DSYMUTIL
8232 if test -n "$DSYMUTIL"; then
8233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
8234 $as_echo "$DSYMUTIL" >&6; }
8236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8237 $as_echo "no" >&6; }
8242 if test -z "$ac_cv_prog_DSYMUTIL"; then
8243 ac_ct_DSYMUTIL=$DSYMUTIL
8244 # Extract the first word of "dsymutil", so it can be a program name with args.
8245 set dummy dsymutil; ac_word=$2
8246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8247 $as_echo_n "checking for $ac_word... " >&6; }
8248 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
8249 $as_echo_n "(cached) " >&6
8251 if test -n "$ac_ct_DSYMUTIL"; then
8252 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
8254 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8258 test -z "$as_dir" && as_dir=.
8259 for ac_exec_ext in '' $ac_executable_extensions; do
8260 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8261 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
8262 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8271 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
8272 if test -n "$ac_ct_DSYMUTIL"; then
8273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
8274 $as_echo "$ac_ct_DSYMUTIL" >&6; }
8276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8277 $as_echo "no" >&6; }
8280 if test "x$ac_ct_DSYMUTIL" = x; then
8283 case $cross_compiling:$ac_tool_warned in
8285 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8286 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8287 ac_tool_warned=yes ;;
8289 DSYMUTIL=$ac_ct_DSYMUTIL
8292 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
8295 if test -n "$ac_tool_prefix"; then
8296 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
8297 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
8298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8299 $as_echo_n "checking for $ac_word... " >&6; }
8300 if ${ac_cv_prog_NMEDIT+:} false; then :
8301 $as_echo_n "(cached) " >&6
8303 if test -n "$NMEDIT"; then
8304 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
8306 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8310 test -z "$as_dir" && as_dir=.
8311 for ac_exec_ext in '' $ac_executable_extensions; do
8312 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8313 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
8314 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8323 NMEDIT=$ac_cv_prog_NMEDIT
8324 if test -n "$NMEDIT"; then
8325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
8326 $as_echo "$NMEDIT" >&6; }
8328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8329 $as_echo "no" >&6; }
8334 if test -z "$ac_cv_prog_NMEDIT"; then
8335 ac_ct_NMEDIT=$NMEDIT
8336 # Extract the first word of "nmedit", so it can be a program name with args.
8337 set dummy nmedit; ac_word=$2
8338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8339 $as_echo_n "checking for $ac_word... " >&6; }
8340 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
8341 $as_echo_n "(cached) " >&6
8343 if test -n "$ac_ct_NMEDIT"; then
8344 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
8346 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8350 test -z "$as_dir" && as_dir=.
8351 for ac_exec_ext in '' $ac_executable_extensions; do
8352 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8353 ac_cv_prog_ac_ct_NMEDIT="nmedit"
8354 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8363 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
8364 if test -n "$ac_ct_NMEDIT"; then
8365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
8366 $as_echo "$ac_ct_NMEDIT" >&6; }
8368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8369 $as_echo "no" >&6; }
8372 if test "x$ac_ct_NMEDIT" = x; then
8375 case $cross_compiling:$ac_tool_warned in
8377 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8378 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8379 ac_tool_warned=yes ;;
8381 NMEDIT=$ac_ct_NMEDIT
8384 NMEDIT="$ac_cv_prog_NMEDIT"
8387 if test -n "$ac_tool_prefix"; then
8388 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
8389 set dummy ${ac_tool_prefix}lipo; ac_word=$2
8390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8391 $as_echo_n "checking for $ac_word... " >&6; }
8392 if ${ac_cv_prog_LIPO+:} false; then :
8393 $as_echo_n "(cached) " >&6
8395 if test -n "$LIPO"; then
8396 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8398 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8402 test -z "$as_dir" && as_dir=.
8403 for ac_exec_ext in '' $ac_executable_extensions; do
8404 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8405 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
8406 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8415 LIPO=$ac_cv_prog_LIPO
8416 if test -n "$LIPO"; then
8417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8418 $as_echo "$LIPO" >&6; }
8420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8421 $as_echo "no" >&6; }
8426 if test -z "$ac_cv_prog_LIPO"; then
8428 # Extract the first word of "lipo", so it can be a program name with args.
8429 set dummy lipo; ac_word=$2
8430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8431 $as_echo_n "checking for $ac_word... " >&6; }
8432 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
8433 $as_echo_n "(cached) " >&6
8435 if test -n "$ac_ct_LIPO"; then
8436 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
8438 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8442 test -z "$as_dir" && as_dir=.
8443 for ac_exec_ext in '' $ac_executable_extensions; do
8444 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8445 ac_cv_prog_ac_ct_LIPO="lipo"
8446 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8455 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
8456 if test -n "$ac_ct_LIPO"; then
8457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
8458 $as_echo "$ac_ct_LIPO" >&6; }
8460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8461 $as_echo "no" >&6; }
8464 if test "x$ac_ct_LIPO" = x; then
8467 case $cross_compiling:$ac_tool_warned in
8469 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8470 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8471 ac_tool_warned=yes ;;
8476 LIPO="$ac_cv_prog_LIPO"
8479 if test -n "$ac_tool_prefix"; then
8480 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
8481 set dummy ${ac_tool_prefix}otool; ac_word=$2
8482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8483 $as_echo_n "checking for $ac_word... " >&6; }
8484 if ${ac_cv_prog_OTOOL+:} false; then :
8485 $as_echo_n "(cached) " >&6
8487 if test -n "$OTOOL"; then
8488 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
8490 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8494 test -z "$as_dir" && as_dir=.
8495 for ac_exec_ext in '' $ac_executable_extensions; do
8496 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8497 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
8498 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8507 OTOOL=$ac_cv_prog_OTOOL
8508 if test -n "$OTOOL"; then
8509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8510 $as_echo "$OTOOL" >&6; }
8512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8513 $as_echo "no" >&6; }
8518 if test -z "$ac_cv_prog_OTOOL"; then
8520 # Extract the first word of "otool", so it can be a program name with args.
8521 set dummy otool; ac_word=$2
8522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8523 $as_echo_n "checking for $ac_word... " >&6; }
8524 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
8525 $as_echo_n "(cached) " >&6
8527 if test -n "$ac_ct_OTOOL"; then
8528 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8530 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8534 test -z "$as_dir" && as_dir=.
8535 for ac_exec_ext in '' $ac_executable_extensions; do
8536 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8537 ac_cv_prog_ac_ct_OTOOL="otool"
8538 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8547 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8548 if test -n "$ac_ct_OTOOL"; then
8549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8550 $as_echo "$ac_ct_OTOOL" >&6; }
8552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8553 $as_echo "no" >&6; }
8556 if test "x$ac_ct_OTOOL" = x; then
8559 case $cross_compiling:$ac_tool_warned in
8561 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8562 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8563 ac_tool_warned=yes ;;
8568 OTOOL="$ac_cv_prog_OTOOL"
8571 if test -n "$ac_tool_prefix"; then
8572 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8573 set dummy ${ac_tool_prefix}otool64; ac_word=$2
8574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8575 $as_echo_n "checking for $ac_word... " >&6; }
8576 if ${ac_cv_prog_OTOOL64+:} false; then :
8577 $as_echo_n "(cached) " >&6
8579 if test -n "$OTOOL64"; then
8580 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8582 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8586 test -z "$as_dir" && as_dir=.
8587 for ac_exec_ext in '' $ac_executable_extensions; do
8588 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8589 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8590 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8599 OTOOL64=$ac_cv_prog_OTOOL64
8600 if test -n "$OTOOL64"; then
8601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8602 $as_echo "$OTOOL64" >&6; }
8604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8605 $as_echo "no" >&6; }
8610 if test -z "$ac_cv_prog_OTOOL64"; then
8611 ac_ct_OTOOL64=$OTOOL64
8612 # Extract the first word of "otool64", so it can be a program name with args.
8613 set dummy otool64; ac_word=$2
8614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8615 $as_echo_n "checking for $ac_word... " >&6; }
8616 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
8617 $as_echo_n "(cached) " >&6
8619 if test -n "$ac_ct_OTOOL64"; then
8620 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8622 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8626 test -z "$as_dir" && as_dir=.
8627 for ac_exec_ext in '' $ac_executable_extensions; do
8628 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8629 ac_cv_prog_ac_ct_OTOOL64="otool64"
8630 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8639 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8640 if test -n "$ac_ct_OTOOL64"; then
8641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8642 $as_echo "$ac_ct_OTOOL64" >&6; }
8644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8645 $as_echo "no" >&6; }
8648 if test "x$ac_ct_OTOOL64" = x; then
8651 case $cross_compiling:$ac_tool_warned in
8653 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8654 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8655 ac_tool_warned=yes ;;
8657 OTOOL64=$ac_ct_OTOOL64
8660 OTOOL64="$ac_cv_prog_OTOOL64"
8689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8690 $as_echo_n "checking for -single_module linker flag... " >&6; }
8691 if ${lt_cv_apple_cc_single_mod+:} false; then :
8692 $as_echo_n "(cached) " >&6
8694 lt_cv_apple_cc_single_mod=no
8695 if test -z "${LT_MULTI_MODULE}"; then
8696 # By default we will add the -single_module flag. You can override
8697 # by either setting the environment variable LT_MULTI_MODULE
8698 # non-empty at configure time, or by adding -multi_module to the
8700 rm -rf libconftest.dylib*
8701 echo "int foo(void){return 1;}" > conftest.c
8702 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8703 -dynamiclib -Wl,-single_module conftest.c" >&5
8704 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8705 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8707 # If there is a non-empty error log, and "single_module"
8708 # appears in it, assume the flag caused a linker warning
8709 if test -s conftest.err && $GREP single_module conftest.err; then
8710 cat conftest.err >&5
8711 # Otherwise, if the output was created with a 0 exit code from
8712 # the compiler, it worked.
8713 elif test -f libconftest.dylib && test $_lt_result -eq 0; then
8714 lt_cv_apple_cc_single_mod=yes
8716 cat conftest.err >&5
8718 rm -rf libconftest.dylib*
8722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8723 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8726 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8727 if ${lt_cv_ld_exported_symbols_list+:} false; then :
8728 $as_echo_n "(cached) " >&6
8730 lt_cv_ld_exported_symbols_list=no
8731 save_LDFLAGS=$LDFLAGS
8732 echo "_main" > conftest.sym
8733 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8734 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8735 /* end confdefs.h. */
8745 if ac_fn_c_try_link "$LINENO"; then :
8746 lt_cv_ld_exported_symbols_list=yes
8748 lt_cv_ld_exported_symbols_list=no
8750 rm -f core conftest.err conftest.$ac_objext \
8751 conftest$ac_exeext conftest.$ac_ext
8752 LDFLAGS="$save_LDFLAGS"
8755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8756 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8759 $as_echo_n "checking for -force_load linker flag... " >&6; }
8760 if ${lt_cv_ld_force_load+:} false; then :
8761 $as_echo_n "(cached) " >&6
8763 lt_cv_ld_force_load=no
8764 cat > conftest.c << _LT_EOF
8765 int forced_loaded() { return 2;}
8767 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8768 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8769 echo "$AR cru libconftest.a conftest.o" >&5
8770 $AR cru libconftest.a conftest.o 2>&5
8771 echo "$RANLIB libconftest.a" >&5
8772 $RANLIB libconftest.a 2>&5
8773 cat > conftest.c << _LT_EOF
8774 int main() { return 0;}
8776 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8777 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8779 if test -s conftest.err && $GREP force_load conftest.err; then
8780 cat conftest.err >&5
8781 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
8782 lt_cv_ld_force_load=yes
8784 cat conftest.err >&5
8786 rm -f conftest.err libconftest.a conftest conftest.c
8787 rm -rf conftest.dSYM
8790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8791 $as_echo "$lt_cv_ld_force_load" >&6; }
8793 rhapsody* | darwin1.[012])
8794 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
8796 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8797 darwin*) # darwin 5.x on
8798 # if running on 10.5 or later, the deployment target defaults
8799 # to the OS version, if on x86, and 10.4, the deployment
8800 # target defaults to 10.4. Don't you love it?
8801 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8802 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8803 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8805 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8807 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8811 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
8812 _lt_dar_single_mod='$single_module'
8814 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
8815 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
8817 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
8819 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
8820 _lt_dsymutil='~$DSYMUTIL $lib || :'
8827 for ac_header in dlfcn.h
8829 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8831 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
8832 cat >>confdefs.h <<_ACEOF
8833 #define HAVE_DLFCN_H 1
8845 # Check whether --enable-static was given.
8846 if test "${enable_static+set}" = set; then :
8847 enableval=$enable_static; p=${PACKAGE-default}
8849 yes) enable_static=yes ;;
8850 no) enable_static=no ;;
8853 # Look at the argument we got. We use all the common list separators.
8854 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8855 for pkg in $enableval; do
8857 if test "X$pkg" = "X$p"; then
8883 # Check whether --enable-shared was given.
8884 if test "${enable_shared+set}" = set; then :
8885 enableval=$enable_shared; p=${PACKAGE-default}
8887 yes) enable_shared=yes ;;
8888 no) enable_shared=no ;;
8891 # Look at the argument we got. We use all the common list separators.
8892 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8893 for pkg in $enableval; do
8895 if test "X$pkg" = "X$p"; then
8916 # Check whether --with-pic was given.
8917 if test "${with_pic+set}" = set; then :
8918 withval=$with_pic; lt_p=${PACKAGE-default}
8920 yes|no) pic_mode=$withval ;;
8923 # Look at the argument we got. We use all the common list separators.
8924 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8925 for lt_pkg in $withval; do
8927 if test "X$lt_pkg" = "X$lt_p"; then
8939 test -z "$pic_mode" && pic_mode=default
8947 # Check whether --enable-fast-install was given.
8948 if test "${enable_fast_install+set}" = set; then :
8949 enableval=$enable_fast_install; p=${PACKAGE-default}
8951 yes) enable_fast_install=yes ;;
8952 no) enable_fast_install=no ;;
8954 enable_fast_install=no
8955 # Look at the argument we got. We use all the common list separators.
8956 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8957 for pkg in $enableval; do
8959 if test "X$pkg" = "X$p"; then
8960 enable_fast_install=yes
8967 enable_fast_install=yes
8980 # This can be used to rebuild libtool when needed
8981 LIBTOOL_DEPS="$ltmain"
8983 # Always use our own libtool.
8984 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
9015 test -z "$LN_S" && LN_S="ln -s"
9030 if test -n "${ZSH_VERSION+set}" ; then
9031 setopt NO_GLOB_SUBST
9034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
9035 $as_echo_n "checking for objdir... " >&6; }
9036 if ${lt_cv_objdir+:} false; then :
9037 $as_echo_n "(cached) " >&6
9039 rm -f .libs 2>/dev/null
9040 mkdir .libs 2>/dev/null
9041 if test -d .libs; then
9044 # MS-DOS does not allow filenames that begin with a dot.
9047 rmdir .libs 2>/dev/null
9049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
9050 $as_echo "$lt_cv_objdir" >&6; }
9051 objdir=$lt_cv_objdir
9057 cat >>confdefs.h <<_ACEOF
9058 #define LT_OBJDIR "$lt_cv_objdir/"
9066 # AIX sometimes has problems with the GCC collect2 program. For some
9067 # reason, if we set the COLLECT_NAMES environment variable, the problems
9068 # vanish in a puff of smoke.
9069 if test "X${COLLECT_NAMES+set}" != Xset; then
9071 export COLLECT_NAMES
9078 can_build_shared=yes
9080 # All known linkers require a `.a' archive for static linking (except MSVC,
9081 # which needs '.lib').
9084 with_gnu_ld="$lt_cv_prog_gnu_ld"
9087 old_CFLAGS="$CFLAGS"
9089 # Set sane defaults for various variables
9090 test -z "$CC" && CC=cc
9091 test -z "$LTCC" && LTCC=$CC
9092 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
9093 test -z "$LD" && LD=ld
9094 test -z "$ac_objext" && ac_objext=o
9096 for cc_temp in $compiler""; do
9098 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9099 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9104 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
9107 # Only perform the check for file, if the check method requires it
9108 test -z "$MAGIC_CMD" && MAGIC_CMD=file
9109 case $deplibs_check_method in
9111 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
9112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
9113 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
9114 if ${lt_cv_path_MAGIC_CMD+:} false; then :
9115 $as_echo_n "(cached) " >&6
9119 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9122 lt_save_MAGIC_CMD="$MAGIC_CMD"
9123 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9124 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9125 for ac_dir in $ac_dummy; do
9127 test -z "$ac_dir" && ac_dir=.
9128 if test -f $ac_dir/${ac_tool_prefix}file; then
9129 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
9130 if test -n "$file_magic_test_file"; then
9131 case $deplibs_check_method in
9133 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9134 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9135 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9136 $EGREP "$file_magic_regex" > /dev/null; then
9141 *** Warning: the command libtool uses to detect shared libraries,
9142 *** $file_magic_cmd, produces output that libtool cannot recognize.
9143 *** The result is that libtool may fail to recognize shared libraries
9144 *** as such. This will affect the creation of libtool libraries that
9145 *** depend on shared libraries, but programs linked with such libtool
9146 *** libraries will work regardless of this problem. Nevertheless, you
9147 *** may want to report the problem to your system manager and/or to
9148 *** bug-libtool@gnu.org
9158 MAGIC_CMD="$lt_save_MAGIC_CMD"
9163 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9164 if test -n "$MAGIC_CMD"; then
9165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9166 $as_echo "$MAGIC_CMD" >&6; }
9168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9169 $as_echo "no" >&6; }
9176 if test -z "$lt_cv_path_MAGIC_CMD"; then
9177 if test -n "$ac_tool_prefix"; then
9178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
9179 $as_echo_n "checking for file... " >&6; }
9180 if ${lt_cv_path_MAGIC_CMD+:} false; then :
9181 $as_echo_n "(cached) " >&6
9185 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9188 lt_save_MAGIC_CMD="$MAGIC_CMD"
9189 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9190 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9191 for ac_dir in $ac_dummy; do
9193 test -z "$ac_dir" && ac_dir=.
9194 if test -f $ac_dir/file; then
9195 lt_cv_path_MAGIC_CMD="$ac_dir/file"
9196 if test -n "$file_magic_test_file"; then
9197 case $deplibs_check_method in
9199 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9200 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9201 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9202 $EGREP "$file_magic_regex" > /dev/null; then
9207 *** Warning: the command libtool uses to detect shared libraries,
9208 *** $file_magic_cmd, produces output that libtool cannot recognize.
9209 *** The result is that libtool may fail to recognize shared libraries
9210 *** as such. This will affect the creation of libtool libraries that
9211 *** depend on shared libraries, but programs linked with such libtool
9212 *** libraries will work regardless of this problem. Nevertheless, you
9213 *** may want to report the problem to your system manager and/or to
9214 *** bug-libtool@gnu.org
9224 MAGIC_CMD="$lt_save_MAGIC_CMD"
9229 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9230 if test -n "$MAGIC_CMD"; then
9231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9232 $as_echo "$MAGIC_CMD" >&6; }
9234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9235 $as_echo "no" >&6; }
9248 # Use C for the default configuration in the libtool script
9252 ac_cpp='$CPP $CPPFLAGS'
9253 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9254 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9255 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9258 # Source file extension for C test sources.
9261 # Object file extension for compiled C test sources.
9265 # Code to be used in simple compile tests
9266 lt_simple_compile_test_code="int some_variable = 0;"
9268 # Code to be used in simple link tests
9269 lt_simple_link_test_code='int main(){return(0);}'
9277 # If no C compiler was specified, use CC.
9280 # If no C compiler flags were specified, use CFLAGS.
9281 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9283 # Allow CC to be a program name with arguments.
9286 # Save the default compiler, since it gets overwritten when the other
9287 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9288 compiler_DEFAULT=$CC
9290 # save warnings/boilerplate of simple test code
9291 ac_outfile=conftest.$ac_objext
9292 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9293 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9294 _lt_compiler_boilerplate=`cat conftest.err`
9297 ac_outfile=conftest.$ac_objext
9298 echo "$lt_simple_link_test_code" >conftest.$ac_ext
9299 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9300 _lt_linker_boilerplate=`cat conftest.err`
9305 ## There is no encapsulation within the following macros, do not change
9306 ## the running order or otherwise move them around unless you know exactly
9307 ## what you are doing...
9308 if test -n "$compiler"; then
9310 lt_prog_compiler_no_builtin_flag=
9312 if test "$GCC" = yes; then
9313 case $cc_basename in
9315 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
9317 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
9320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9321 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9322 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
9323 $as_echo_n "(cached) " >&6
9325 lt_cv_prog_compiler_rtti_exceptions=no
9326 ac_outfile=conftest.$ac_objext
9327 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9328 lt_compiler_flag="-fno-rtti -fno-exceptions"
9329 # Insert the option either (1) after the last *FLAGS variable, or
9330 # (2) before a word containing "conftest.", or (3) at the end.
9331 # Note that $ac_compile itself does not contain backslashes and begins
9332 # with a dollar sign (not a hyphen), so the echo should work correctly.
9333 # The option is referenced via a variable to avoid confusing sed.
9334 lt_compile=`echo "$ac_compile" | $SED \
9335 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9336 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9337 -e 's:$: $lt_compiler_flag:'`
9338 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9339 (eval "$lt_compile" 2>conftest.err)
9341 cat conftest.err >&5
9342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9343 if (exit $ac_status) && test -s "$ac_outfile"; then
9344 # The compiler can only warn and ignore the option if not recognized
9345 # So say no if there are warnings other than the usual output.
9346 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9347 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9348 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9349 lt_cv_prog_compiler_rtti_exceptions=yes
9355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9356 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9358 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
9359 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9371 lt_prog_compiler_wl=
9372 lt_prog_compiler_pic=
9373 lt_prog_compiler_static=
9376 if test "$GCC" = yes; then
9377 lt_prog_compiler_wl='-Wl,'
9378 lt_prog_compiler_static='-static'
9382 # All AIX code is PIC.
9383 if test "$host_cpu" = ia64; then
9384 # AIX 5 now supports IA64 processor
9385 lt_prog_compiler_static='-Bstatic'
9392 # see comment about AmigaOS4 .so support
9393 lt_prog_compiler_pic='-fPIC'
9396 # FIXME: we need at least 68020 code to build shared libraries, but
9397 # adding the `-m68020' flag to GCC prevents building anything better,
9399 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9404 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9405 # PIC is the default for these OSes.
9408 mingw* | cygwin* | pw32* | os2* | cegcc*)
9409 # This hack is so that the source file can tell whether it is being
9410 # built for inclusion in a dll (and should export symbols for example).
9411 # Although the cygwin gcc ignores -fPIC, still need this for old-style
9412 # (--disable-auto-import) libraries
9413 lt_prog_compiler_pic='-DDLL_EXPORT'
9416 darwin* | rhapsody*)
9417 # PIC is the default on this platform
9418 # Common symbols not allowed in MH_DYLIB files
9419 lt_prog_compiler_pic='-fno-common'
9423 # PIC is the default for Haiku.
9424 # The "-static" flag exists, but is broken.
9425 lt_prog_compiler_static=
9429 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9430 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
9431 # sets the default TLS model and affects inlining.
9437 lt_prog_compiler_pic='-fPIC'
9443 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9444 # Instead, we relocate shared libraries at runtime.
9448 # Just because we use GCC doesn't mean we suddenly get shared libraries
9449 # on systems that don't support them.
9450 lt_prog_compiler_can_build_shared=no
9455 # QNX uses GNU C++, but need to define -shared option too, otherwise
9457 lt_prog_compiler_pic='-fPIC -shared'
9461 if test -d /usr/nec; then
9462 lt_prog_compiler_pic=-Kconform_pic
9467 lt_prog_compiler_pic='-fPIC'
9471 case $cc_basename in
9472 nvcc*) # Cuda Compiler Driver 2.2
9473 lt_prog_compiler_wl='-Xlinker '
9474 if test -n "$lt_prog_compiler_pic"; then
9475 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
9480 # PORTME Check for flag to pass linker flags through the system compiler.
9483 lt_prog_compiler_wl='-Wl,'
9484 if test "$host_cpu" = ia64; then
9485 # AIX 5 now supports IA64 processor
9486 lt_prog_compiler_static='-Bstatic'
9488 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9492 mingw* | cygwin* | pw32* | os2* | cegcc*)
9493 # This hack is so that the source file can tell whether it is being
9494 # built for inclusion in a dll (and should export symbols for example).
9495 lt_prog_compiler_pic='-DDLL_EXPORT'
9498 hpux9* | hpux10* | hpux11*)
9499 lt_prog_compiler_wl='-Wl,'
9500 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9507 lt_prog_compiler_pic='+Z'
9510 # Is there a better lt_prog_compiler_static that works with the bundled CC?
9511 lt_prog_compiler_static='${wl}-a ${wl}archive'
9514 irix5* | irix6* | nonstopux*)
9515 lt_prog_compiler_wl='-Wl,'
9516 # PIC (with -KPIC) is the default.
9517 lt_prog_compiler_static='-non_shared'
9520 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
9521 case $cc_basename in
9522 # old Intel for x86_64 which still supported -KPIC.
9524 lt_prog_compiler_wl='-Wl,'
9525 lt_prog_compiler_pic='-KPIC'
9526 lt_prog_compiler_static='-static'
9528 # icc used to be incompatible with GCC.
9529 # ICC 10 doesn't accept -KPIC any more.
9531 lt_prog_compiler_wl='-Wl,'
9532 lt_prog_compiler_pic='-fPIC'
9533 lt_prog_compiler_static='-static'
9535 # Lahey Fortran 8.1.
9537 lt_prog_compiler_wl='-Wl,'
9538 lt_prog_compiler_pic='--shared'
9539 lt_prog_compiler_static='--static'
9542 # NAG Fortran compiler
9543 lt_prog_compiler_wl='-Wl,-Wl,,'
9544 lt_prog_compiler_pic='-PIC'
9545 lt_prog_compiler_static='-Bstatic'
9547 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9548 # Portland Group compilers (*not* the Pentium gcc compiler,
9549 # which looks to be a dead project)
9550 lt_prog_compiler_wl='-Wl,'
9551 lt_prog_compiler_pic='-fpic'
9552 lt_prog_compiler_static='-Bstatic'
9555 lt_prog_compiler_wl='-Wl,'
9556 # All Alpha code is PIC.
9557 lt_prog_compiler_static='-non_shared'
9559 xl* | bgxl* | bgf* | mpixl*)
9560 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9561 lt_prog_compiler_wl='-Wl,'
9562 lt_prog_compiler_pic='-qpic'
9563 lt_prog_compiler_static='-qstaticlink'
9566 case `$CC -V 2>&1 | sed 5q` in
9567 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
9568 # Sun Fortran 8.3 passes all unrecognized flags to the linker
9569 lt_prog_compiler_pic='-KPIC'
9570 lt_prog_compiler_static='-Bstatic'
9571 lt_prog_compiler_wl=''
9573 *Sun\ F* | *Sun*Fortran*)
9574 lt_prog_compiler_pic='-KPIC'
9575 lt_prog_compiler_static='-Bstatic'
9576 lt_prog_compiler_wl='-Qoption ld '
9580 lt_prog_compiler_pic='-KPIC'
9581 lt_prog_compiler_static='-Bstatic'
9582 lt_prog_compiler_wl='-Wl,'
9584 *Intel*\ [CF]*Compiler*)
9585 lt_prog_compiler_wl='-Wl,'
9586 lt_prog_compiler_pic='-fPIC'
9587 lt_prog_compiler_static='-static'
9590 lt_prog_compiler_wl='-Wl,'
9591 lt_prog_compiler_pic='-fpic'
9592 lt_prog_compiler_static='-Bstatic'
9600 lt_prog_compiler_pic='-KPIC'
9601 lt_prog_compiler_static='-Bstatic'
9605 # QNX uses GNU C++, but need to define -shared option too, otherwise
9607 lt_prog_compiler_pic='-fPIC -shared'
9610 osf3* | osf4* | osf5*)
9611 lt_prog_compiler_wl='-Wl,'
9612 # All OSF/1 code is PIC.
9613 lt_prog_compiler_static='-non_shared'
9617 lt_prog_compiler_static='-non_shared'
9621 lt_prog_compiler_pic='-KPIC'
9622 lt_prog_compiler_static='-Bstatic'
9623 case $cc_basename in
9624 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
9625 lt_prog_compiler_wl='-Qoption ld ';;
9627 lt_prog_compiler_wl='-Wl,';;
9632 lt_prog_compiler_wl='-Qoption ld '
9633 lt_prog_compiler_pic='-PIC'
9634 lt_prog_compiler_static='-Bstatic'
9637 sysv4 | sysv4.2uw2* | sysv4.3*)
9638 lt_prog_compiler_wl='-Wl,'
9639 lt_prog_compiler_pic='-KPIC'
9640 lt_prog_compiler_static='-Bstatic'
9644 if test -d /usr/nec ;then
9645 lt_prog_compiler_pic='-Kconform_pic'
9646 lt_prog_compiler_static='-Bstatic'
9650 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9651 lt_prog_compiler_wl='-Wl,'
9652 lt_prog_compiler_pic='-KPIC'
9653 lt_prog_compiler_static='-Bstatic'
9657 lt_prog_compiler_wl='-Wl,'
9658 lt_prog_compiler_can_build_shared=no
9662 lt_prog_compiler_pic='-pic'
9663 lt_prog_compiler_static='-Bstatic'
9667 lt_prog_compiler_can_build_shared=no
9673 # For platforms which do not support PIC, -DPIC is meaningless:
9675 lt_prog_compiler_pic=
9678 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9683 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9684 if ${lt_cv_prog_compiler_pic+:} false; then :
9685 $as_echo_n "(cached) " >&6
9687 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
9689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
9690 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
9691 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
9694 # Check to make sure the PIC flag actually works.
9696 if test -n "$lt_prog_compiler_pic"; then
9697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9698 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9699 if ${lt_cv_prog_compiler_pic_works+:} false; then :
9700 $as_echo_n "(cached) " >&6
9702 lt_cv_prog_compiler_pic_works=no
9703 ac_outfile=conftest.$ac_objext
9704 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9705 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9706 # Insert the option either (1) after the last *FLAGS variable, or
9707 # (2) before a word containing "conftest.", or (3) at the end.
9708 # Note that $ac_compile itself does not contain backslashes and begins
9709 # with a dollar sign (not a hyphen), so the echo should work correctly.
9710 # The option is referenced via a variable to avoid confusing sed.
9711 lt_compile=`echo "$ac_compile" | $SED \
9712 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9713 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9714 -e 's:$: $lt_compiler_flag:'`
9715 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9716 (eval "$lt_compile" 2>conftest.err)
9718 cat conftest.err >&5
9719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9720 if (exit $ac_status) && test -s "$ac_outfile"; then
9721 # The compiler can only warn and ignore the option if not recognized
9722 # So say no if there are warnings other than the usual output.
9723 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9724 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9725 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9726 lt_cv_prog_compiler_pic_works=yes
9732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9733 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9735 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9736 case $lt_prog_compiler_pic in
9738 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9741 lt_prog_compiler_pic=
9742 lt_prog_compiler_can_build_shared=no
9758 # Check to make sure the static flag actually works.
9760 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9762 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9763 if ${lt_cv_prog_compiler_static_works+:} false; then :
9764 $as_echo_n "(cached) " >&6
9766 lt_cv_prog_compiler_static_works=no
9767 save_LDFLAGS="$LDFLAGS"
9768 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9769 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9770 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9771 # The linker can only warn and ignore the option if not recognized
9772 # So say no if there are warnings
9773 if test -s conftest.err; then
9774 # Append any errors to the config.log.
9775 cat conftest.err 1>&5
9776 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9777 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9778 if diff conftest.exp conftest.er2 >/dev/null; then
9779 lt_cv_prog_compiler_static_works=yes
9782 lt_cv_prog_compiler_static_works=yes
9786 LDFLAGS="$save_LDFLAGS"
9789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9790 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9792 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9795 lt_prog_compiler_static=
9804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9805 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9806 if ${lt_cv_prog_compiler_c_o+:} false; then :
9807 $as_echo_n "(cached) " >&6
9809 lt_cv_prog_compiler_c_o=no
9810 $RM -r conftest 2>/dev/null
9814 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9816 lt_compiler_flag="-o out/conftest2.$ac_objext"
9817 # Insert the option either (1) after the last *FLAGS variable, or
9818 # (2) before a word containing "conftest.", or (3) at the end.
9819 # Note that $ac_compile itself does not contain backslashes and begins
9820 # with a dollar sign (not a hyphen), so the echo should work correctly.
9821 lt_compile=`echo "$ac_compile" | $SED \
9822 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9823 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9824 -e 's:$: $lt_compiler_flag:'`
9825 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9826 (eval "$lt_compile" 2>out/conftest.err)
9828 cat out/conftest.err >&5
9829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9830 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9832 # The compiler can only warn and ignore the option if not recognized
9833 # So say no if there are warnings
9834 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9835 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9836 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9837 lt_cv_prog_compiler_c_o=yes
9842 # SGI C++ compiler will create directory out/ii_files/ for
9843 # template instantiation
9844 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9845 $RM out/* && rmdir out
9851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9852 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9860 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9861 if ${lt_cv_prog_compiler_c_o+:} false; then :
9862 $as_echo_n "(cached) " >&6
9864 lt_cv_prog_compiler_c_o=no
9865 $RM -r conftest 2>/dev/null
9869 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9871 lt_compiler_flag="-o out/conftest2.$ac_objext"
9872 # Insert the option either (1) after the last *FLAGS variable, or
9873 # (2) before a word containing "conftest.", or (3) at the end.
9874 # Note that $ac_compile itself does not contain backslashes and begins
9875 # with a dollar sign (not a hyphen), so the echo should work correctly.
9876 lt_compile=`echo "$ac_compile" | $SED \
9877 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9878 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9879 -e 's:$: $lt_compiler_flag:'`
9880 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9881 (eval "$lt_compile" 2>out/conftest.err)
9883 cat out/conftest.err >&5
9884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9885 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9887 # The compiler can only warn and ignore the option if not recognized
9888 # So say no if there are warnings
9889 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9890 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9891 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9892 lt_cv_prog_compiler_c_o=yes
9897 # SGI C++ compiler will create directory out/ii_files/ for
9898 # template instantiation
9899 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9900 $RM out/* && rmdir out
9906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9907 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9912 hard_links="nottested"
9913 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9914 # do not overwrite the value of need_locks provided by the user
9915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9916 $as_echo_n "checking if we can lock with hard links... " >&6; }
9919 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9921 ln conftest.a conftest.b 2>&5 || hard_links=no
9922 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9924 $as_echo "$hard_links" >&6; }
9925 if test "$hard_links" = no; then
9926 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9927 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9940 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9943 allow_undefined_flag=
9944 always_export_symbols=no
9946 archive_expsym_cmds=
9947 compiler_needs_object=no
9948 enable_shared_with_static_runtimes=no
9949 export_dynamic_flag_spec=
9950 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9951 hardcode_automatic=no
9953 hardcode_direct_absolute=no
9954 hardcode_libdir_flag_spec=
9955 hardcode_libdir_separator=
9957 hardcode_shlibpath_var=unsupported
9959 link_all_deplibs=unknown
9962 old_archive_from_new_cmds=
9963 old_archive_from_expsyms_cmds=
9964 thread_safe_flag_spec=
9965 whole_archive_flag_spec=
9966 # include_expsyms should be a list of space-separated symbols to be *always*
9967 # included in the symbol list
9969 # exclude_expsyms can be an extended regexp of symbols to exclude
9970 # it will be wrapped by ` (' and `)$', so one must not match beginning or
9971 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9972 # as well as any symbol that contains `d'.
9973 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9974 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9975 # platforms (ab)use it in PIC code, but their linkers get confused if
9976 # the symbol is explicitly referenced. Since portable code cannot
9977 # rely on this symbol name, it's probably fine to never include it in
9978 # preloaded symbol tables.
9979 # Exclude shared library initialization/finalization symbols.
9980 extract_expsyms_cmds=
9983 cygwin* | mingw* | pw32* | cegcc*)
9984 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9985 # When not using gcc, we currently assume that we are using
9986 # Microsoft Visual C++.
9987 if test "$GCC" != yes; then
9992 # we just hope/assume this is gcc and not c89 (= MSVC++)
9998 linux* | k*bsd*-gnu | gnu*)
10005 # On some targets, GNU ld is compatible enough with the native linker
10006 # that we're better off using the native interface for both.
10007 lt_use_gnu_ld_interface=no
10008 if test "$with_gnu_ld" = yes; then
10011 # The AIX port of GNU ld has always aspired to compatibility
10012 # with the native linker. However, as the warning in the GNU ld
10013 # block says, versions before 2.19.5* couldn't really create working
10014 # shared libraries, regardless of the interface used.
10015 case `$LD -v 2>&1` in
10016 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
10017 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
10018 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
10020 lt_use_gnu_ld_interface=yes
10025 lt_use_gnu_ld_interface=yes
10030 if test "$lt_use_gnu_ld_interface" = yes; then
10031 # If archive_cmds runs LD, not CC, wlarc should be empty
10034 # Set some defaults for GNU ld with shared library support. These
10035 # are reset later if shared libraries are not supported. Putting them
10036 # here allows them to be overridden if necessary.
10037 runpath_var=LD_RUN_PATH
10038 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10039 export_dynamic_flag_spec='${wl}--export-dynamic'
10040 # ancient GNU ld didn't support --whole-archive et. al.
10041 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
10042 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10044 whole_archive_flag_spec=
10046 supports_anon_versioning=no
10047 case `$LD -v 2>&1` in
10048 *GNU\ gold*) supports_anon_versioning=yes ;;
10049 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
10050 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
10051 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
10052 *\ 2.11.*) ;; # other 2.11 versions
10053 *) supports_anon_versioning=yes ;;
10056 # See if GNU ld supports shared libraries.
10059 # On AIX/PPC, the GNU linker is very broken
10060 if test "$host_cpu" != ia64; then
10064 *** Warning: the GNU linker, at least up to release 2.19, is reported
10065 *** to be unable to reliably create shared libraries on AIX.
10066 *** Therefore, libtool is disabling shared libraries support. If you
10067 *** really care for shared libraries, you may want to install binutils
10068 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
10069 *** You will then need to restart the configuration process.
10078 # see comment about AmigaOS4 .so support
10079 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10080 archive_expsym_cmds=''
10083 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)'
10084 hardcode_libdir_flag_spec='-L$libdir'
10085 hardcode_minus_L=yes
10091 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10092 allow_undefined_flag=unsupported
10093 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10094 # support --undefined. This deserves some investigation. FIXME
10095 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10101 cygwin* | mingw* | pw32* | cegcc*)
10102 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
10103 # as there is no search path for DLLs.
10104 hardcode_libdir_flag_spec='-L$libdir'
10105 export_dynamic_flag_spec='${wl}--export-all-symbols'
10106 allow_undefined_flag=unsupported
10107 always_export_symbols=no
10108 enable_shared_with_static_runtimes=yes
10109 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'
10110 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
10112 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
10113 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10114 # If the export-symbols file already is a .def file (1st line
10115 # is EXPORTS), use it as is; otherwise, prepend...
10116 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10117 cp $export_symbols $output_objdir/$soname.def;
10119 echo EXPORTS > $output_objdir/$soname.def;
10120 cat $export_symbols >> $output_objdir/$soname.def;
10122 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10129 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10130 link_all_deplibs=yes
10135 hardcode_shlibpath_var=no
10136 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10137 export_dynamic_flag_spec='${wl}-E'
10138 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10139 # Instead, shared libraries are loaded at an image base (0x10000000 by
10140 # default) and relocated if they conflict, which is a slow very memory
10141 # consuming and fragmenting process. To avoid this, we pick a random,
10142 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10143 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
10144 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10145 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'
10148 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
10150 if test "$host_os" = linux-dietlibc; then
10151 case $cc_basename in
10152 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
10155 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
10156 && test "$tmp_diet" = no
10158 tmp_addflag=' $pic_flag'
10159 tmp_sharedflag='-shared'
10160 case $cc_basename,$host_cpu in
10161 pgcc*) # Portland Group C compiler
10162 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'
10163 tmp_addflag=' $pic_flag'
10165 pgf77* | pgf90* | pgf95* | pgfortran*)
10166 # Portland Group f77 and f90 compilers
10167 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'
10168 tmp_addflag=' $pic_flag -Mnomain' ;;
10169 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
10170 tmp_addflag=' -i_dynamic' ;;
10171 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
10172 tmp_addflag=' -i_dynamic -nofor_main' ;;
10173 ifc* | ifort*) # Intel Fortran compiler
10174 tmp_addflag=' -nofor_main' ;;
10175 lf95*) # Lahey Fortran 8.1
10176 whole_archive_flag_spec=
10177 tmp_sharedflag='--shared' ;;
10178 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
10179 tmp_sharedflag='-qmkshrobj'
10181 nvcc*) # Cuda Compiler Driver 2.2
10182 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'
10183 compiler_needs_object=yes
10186 case `$CC -V 2>&1 | sed 5q` in
10187 *Sun\ C*) # Sun C 5.9
10188 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'
10189 compiler_needs_object=yes
10190 tmp_sharedflag='-G' ;;
10191 *Sun\ F*) # Sun Fortran 8.3
10192 tmp_sharedflag='-G' ;;
10194 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10196 if test "x$supports_anon_versioning" = xyes; then
10197 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10198 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10199 echo "local: *; };" >> $output_objdir/$libname.ver~
10200 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
10203 case $cc_basename in
10204 xlf* | bgf* | bgxlf* | mpixlf*)
10205 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10206 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
10207 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10208 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
10209 if test "x$supports_anon_versioning" = xyes; then
10210 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10211 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10212 echo "local: *; };" >> $output_objdir/$libname.ver~
10213 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10222 netbsd* | netbsdelf*-gnu)
10223 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10224 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10227 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10228 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10233 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10237 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
10238 *** create shared libraries on Solaris systems. Therefore, libtool
10239 *** is disabling shared libraries support. We urge you to upgrade GNU
10240 *** binutils to release 2.9.1 or newer. Another option is to modify
10241 *** your PATH or compiler configuration so that the native linker is
10242 *** used, and then restart.
10245 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10246 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10247 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10253 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10254 case `$LD -v 2>&1` in
10255 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10259 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
10260 *** reliably create shared libraries on SCO systems. Therefore, libtool
10261 *** is disabling shared libraries support. We urge you to upgrade GNU
10262 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
10263 *** your PATH or compiler configuration so that the native linker is
10264 *** used, and then restart.
10269 # For security reasons, it is highly recommended that you always
10270 # use absolute paths for naming shared libraries, and exclude the
10271 # DT_RUNPATH tag from executables and libraries. But doing so
10272 # requires that you compile everything twice, which is a pain.
10273 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10274 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10275 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10276 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10285 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10287 hardcode_direct=yes
10288 hardcode_shlibpath_var=no
10292 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10293 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10294 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10301 if test "$ld_shlibs" = no; then
10303 hardcode_libdir_flag_spec=
10304 export_dynamic_flag_spec=
10305 whole_archive_flag_spec=
10308 # PORTME fill in a description of your system's linker (not GNU ld)
10311 allow_undefined_flag=unsupported
10312 always_export_symbols=yes
10313 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'
10314 # Note: this linker hardcodes the directories in LIBPATH if there
10315 # are no directories specified by -L.
10316 hardcode_minus_L=yes
10317 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
10318 # Neither direct hardcoding nor static linking is supported with a
10320 hardcode_direct=unsupported
10325 if test "$host_cpu" = ia64; then
10326 # On IA64, the linker does run time linking by default, so we don't
10327 # have to do anything special.
10328 aix_use_runtimelinking=no
10329 exp_sym_flag='-Bexport'
10332 # If we're using GNU nm, then we don't want the "-C" option.
10333 # -C means demangle to AIX nm, but means don't demangle with GNU nm
10334 # Also, AIX nm treats weak defined symbols like other global
10335 # defined symbols, whereas GNU nm marks them as "W".
10336 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10337 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'
10339 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'
10341 aix_use_runtimelinking=no
10343 # Test if we are trying to use run time linking or normal
10344 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10345 # need to do runtime linking.
10346 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10347 for ld_flag in $LDFLAGS; do
10348 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
10349 aix_use_runtimelinking=yes
10356 exp_sym_flag='-bexport'
10357 no_entry_flag='-bnoentry'
10360 # When large executables or shared objects are built, AIX ld can
10361 # have problems creating the table of contents. If linking a library
10362 # or program results in "error TOC overflow" add -mminimal-toc to
10363 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10364 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10367 hardcode_direct=yes
10368 hardcode_direct_absolute=yes
10369 hardcode_libdir_separator=':'
10370 link_all_deplibs=yes
10371 file_list_spec='${wl}-f,'
10373 if test "$GCC" = yes; then
10374 case $host_os in aix4.[012]|aix4.[012].*)
10375 # We only want to do this on AIX 4.2 and lower, the check
10376 # below for broken collect2 doesn't work under 4.3+
10377 collect2name=`${CC} -print-prog-name=collect2`
10378 if test -f "$collect2name" &&
10379 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10381 # We have reworked collect2
10384 # We have old collect2
10385 hardcode_direct=unsupported
10386 # It fails to find uninstalled libraries when the uninstalled
10387 # path is not listed in the libpath. Setting hardcode_minus_L
10388 # to unsupported forces relinking
10389 hardcode_minus_L=yes
10390 hardcode_libdir_flag_spec='-L$libdir'
10391 hardcode_libdir_separator=
10395 shared_flag='-shared'
10396 if test "$aix_use_runtimelinking" = yes; then
10397 shared_flag="$shared_flag "'${wl}-G'
10399 link_all_deplibs=no
10402 if test "$host_cpu" = ia64; then
10403 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10404 # chokes on -Wl,-G. The following line is correct:
10407 if test "$aix_use_runtimelinking" = yes; then
10408 shared_flag='${wl}-G'
10410 shared_flag='${wl}-bM:SRE'
10415 export_dynamic_flag_spec='${wl}-bexpall'
10416 # It seems that -bexpall does not export symbols beginning with
10417 # underscore (_), so it is better to generate a list of symbols to export.
10418 always_export_symbols=yes
10419 if test "$aix_use_runtimelinking" = yes; then
10420 # Warning - without using the other runtime loading flags (-brtl),
10421 # -berok will link without error, but may produce a broken library.
10422 allow_undefined_flag='-berok'
10423 # Determine the default libpath from the value encoded in an
10424 # empty executable.
10425 if test "${lt_cv_aix_libpath+set}" = set; then
10426 aix_libpath=$lt_cv_aix_libpath
10428 if ${lt_cv_aix_libpath_+:} false; then :
10429 $as_echo_n "(cached) " >&6
10431 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10432 /* end confdefs.h. */
10442 if ac_fn_c_try_link "$LINENO"; then :
10444 lt_aix_libpath_sed='
10445 /Import File Strings/,/^$/ {
10447 s/^0 *\([^ ]*\) *$/\1/
10451 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10452 # Check for a 64-bit object if we didn't find anything.
10453 if test -z "$lt_cv_aix_libpath_"; then
10454 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10457 rm -f core conftest.err conftest.$ac_objext \
10458 conftest$ac_exeext conftest.$ac_ext
10459 if test -z "$lt_cv_aix_libpath_"; then
10460 lt_cv_aix_libpath_="/usr/lib:/lib"
10465 aix_libpath=$lt_cv_aix_libpath_
10468 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10469 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"
10471 if test "$host_cpu" = ia64; then
10472 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
10473 allow_undefined_flag="-z nodefs"
10474 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"
10476 # Determine the default libpath from the value encoded in an
10477 # empty executable.
10478 if test "${lt_cv_aix_libpath+set}" = set; then
10479 aix_libpath=$lt_cv_aix_libpath
10481 if ${lt_cv_aix_libpath_+:} false; then :
10482 $as_echo_n "(cached) " >&6
10484 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10485 /* end confdefs.h. */
10495 if ac_fn_c_try_link "$LINENO"; then :
10497 lt_aix_libpath_sed='
10498 /Import File Strings/,/^$/ {
10500 s/^0 *\([^ ]*\) *$/\1/
10504 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10505 # Check for a 64-bit object if we didn't find anything.
10506 if test -z "$lt_cv_aix_libpath_"; then
10507 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10510 rm -f core conftest.err conftest.$ac_objext \
10511 conftest$ac_exeext conftest.$ac_ext
10512 if test -z "$lt_cv_aix_libpath_"; then
10513 lt_cv_aix_libpath_="/usr/lib:/lib"
10518 aix_libpath=$lt_cv_aix_libpath_
10521 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10522 # Warning - without using the other run time loading flags,
10523 # -berok will link without error, but may produce a broken library.
10524 no_undefined_flag=' ${wl}-bernotok'
10525 allow_undefined_flag=' ${wl}-berok'
10526 if test "$with_gnu_ld" = yes; then
10527 # We only use this code for GNU lds that support --whole-archive.
10528 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10530 # Exported symbols can be pulled into shared objects from archives
10531 whole_archive_flag_spec='$convenience'
10533 archive_cmds_need_lc=yes
10534 # This is similar to how AIX traditionally builds its shared libraries.
10535 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'
10543 # see comment about AmigaOS4 .so support
10544 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10545 archive_expsym_cmds=''
10548 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)'
10549 hardcode_libdir_flag_spec='-L$libdir'
10550 hardcode_minus_L=yes
10556 export_dynamic_flag_spec=-rdynamic
10559 cygwin* | mingw* | pw32* | cegcc*)
10560 # When not using gcc, we currently assume that we are using
10561 # Microsoft Visual C++.
10562 # hardcode_libdir_flag_spec is actually meaningless, as there is
10563 # no search path for DLLs.
10564 case $cc_basename in
10567 hardcode_libdir_flag_spec=' '
10568 allow_undefined_flag=unsupported
10569 always_export_symbols=yes
10571 # Tell ltmain to make .lib files, not .a files.
10573 # Tell ltmain to make .dll files, not .so files.
10575 # FIXME: Setting linknames here is a bad hack.
10576 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
10577 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10578 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
10580 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
10582 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
10584 # The linker will not automatically build a static lib if we build a DLL.
10585 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
10586 enable_shared_with_static_runtimes=yes
10587 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
10588 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10590 old_postinstall_cmds='chmod 644 $oldlib'
10591 postlink_cmds='lt_outputfile="@OUTPUT@"~
10592 lt_tool_outputfile="@TOOL_OUTPUT@"~
10593 case $lt_outputfile in
10596 lt_outputfile="$lt_outputfile.exe"
10597 lt_tool_outputfile="$lt_tool_outputfile.exe"
10600 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
10601 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
10602 $RM "$lt_outputfile.manifest";
10606 # Assume MSVC wrapper
10607 hardcode_libdir_flag_spec=' '
10608 allow_undefined_flag=unsupported
10609 # Tell ltmain to make .lib files, not .a files.
10611 # Tell ltmain to make .dll files, not .so files.
10613 # FIXME: Setting linknames here is a bad hack.
10614 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10615 # The linker will automatically build a .lib file if we build a DLL.
10616 old_archive_from_new_cmds='true'
10617 # FIXME: Should let the user specify the lib program.
10618 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10619 enable_shared_with_static_runtimes=yes
10624 darwin* | rhapsody*)
10627 archive_cmds_need_lc=no
10629 hardcode_automatic=yes
10630 hardcode_shlibpath_var=unsupported
10631 if test "$lt_cv_ld_force_load" = "yes"; then
10632 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\"`'
10635 whole_archive_flag_spec=''
10637 link_all_deplibs=yes
10638 allow_undefined_flag="$_lt_dar_allow_undefined"
10639 case $cc_basename in
10640 ifort*) _lt_dar_can_shared=yes ;;
10641 *) _lt_dar_can_shared=$GCC ;;
10643 if test "$_lt_dar_can_shared" = "yes"; then
10644 output_verbose_link_cmd=func_echo_all
10645 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
10646 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
10647 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}"
10648 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}"
10657 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10658 hardcode_libdir_flag_spec='-L$libdir'
10659 hardcode_shlibpath_var=no
10662 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10663 # support. Future versions do this automatically, but an explicit c++rt0.o
10664 # does not break anything, and helps significantly (at the cost of a little
10667 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10668 hardcode_libdir_flag_spec='-R$libdir'
10669 hardcode_direct=yes
10670 hardcode_shlibpath_var=no
10673 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10675 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10676 hardcode_direct=yes
10677 hardcode_minus_L=yes
10678 hardcode_shlibpath_var=no
10681 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10682 freebsd* | dragonfly*)
10683 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10684 hardcode_libdir_flag_spec='-R$libdir'
10685 hardcode_direct=yes
10686 hardcode_shlibpath_var=no
10690 if test "$GCC" = yes; then
10691 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'
10693 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'
10695 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10696 hardcode_libdir_separator=:
10697 hardcode_direct=yes
10699 # hardcode_minus_L: Not really in the search PATH,
10700 # but as the default location of the library.
10701 hardcode_minus_L=yes
10702 export_dynamic_flag_spec='${wl}-E'
10706 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10707 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10709 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10711 if test "$with_gnu_ld" = no; then
10712 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10713 hardcode_libdir_separator=:
10714 hardcode_direct=yes
10715 hardcode_direct_absolute=yes
10716 export_dynamic_flag_spec='${wl}-E'
10717 # hardcode_minus_L: Not really in the search PATH,
10718 # but as the default location of the library.
10719 hardcode_minus_L=yes
10724 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10727 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10730 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10733 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10739 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10742 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10746 # Older versions of the 11.00 compiler do not understand -b yet
10747 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10749 $as_echo_n "checking if $CC understands -b... " >&6; }
10750 if ${lt_cv_prog_compiler__b+:} false; then :
10751 $as_echo_n "(cached) " >&6
10753 lt_cv_prog_compiler__b=no
10754 save_LDFLAGS="$LDFLAGS"
10755 LDFLAGS="$LDFLAGS -b"
10756 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10757 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10758 # The linker can only warn and ignore the option if not recognized
10759 # So say no if there are warnings
10760 if test -s conftest.err; then
10761 # Append any errors to the config.log.
10762 cat conftest.err 1>&5
10763 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10764 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10765 if diff conftest.exp conftest.er2 >/dev/null; then
10766 lt_cv_prog_compiler__b=yes
10769 lt_cv_prog_compiler__b=yes
10773 LDFLAGS="$save_LDFLAGS"
10776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10777 $as_echo "$lt_cv_prog_compiler__b" >&6; }
10779 if test x"$lt_cv_prog_compiler__b" = xyes; then
10780 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10782 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10788 if test "$with_gnu_ld" = no; then
10789 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10790 hardcode_libdir_separator=:
10795 hardcode_shlibpath_var=no
10798 hardcode_direct=yes
10799 hardcode_direct_absolute=yes
10800 export_dynamic_flag_spec='${wl}-E'
10802 # hardcode_minus_L: Not really in the search PATH,
10803 # but as the default location of the library.
10804 hardcode_minus_L=yes
10810 irix5* | irix6* | nonstopux*)
10811 if test "$GCC" = yes; then
10812 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'
10813 # Try to use the -exported_symbol ld option, if it does not
10814 # work, assume that -exports_file does not work either and
10815 # implicitly export all symbols.
10816 # This should be the same for all languages, so no per-tag cache variable.
10817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
10818 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
10819 if ${lt_cv_irix_exported_symbol+:} false; then :
10820 $as_echo_n "(cached) " >&6
10822 save_LDFLAGS="$LDFLAGS"
10823 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10824 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10825 /* end confdefs.h. */
10826 int foo (void) { return 0; }
10828 if ac_fn_c_try_link "$LINENO"; then :
10829 lt_cv_irix_exported_symbol=yes
10831 lt_cv_irix_exported_symbol=no
10833 rm -f core conftest.err conftest.$ac_objext \
10834 conftest$ac_exeext conftest.$ac_ext
10835 LDFLAGS="$save_LDFLAGS"
10837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
10838 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
10839 if test "$lt_cv_irix_exported_symbol" = yes; then
10840 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'
10843 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'
10844 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'
10846 archive_cmds_need_lc='no'
10847 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10848 hardcode_libdir_separator=:
10850 link_all_deplibs=yes
10853 netbsd* | netbsdelf*-gnu)
10854 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10855 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10857 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10859 hardcode_libdir_flag_spec='-R$libdir'
10860 hardcode_direct=yes
10861 hardcode_shlibpath_var=no
10865 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10866 hardcode_direct=yes
10867 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10868 hardcode_libdir_separator=:
10869 hardcode_shlibpath_var=no
10876 if test -f /usr/libexec/ld.so; then
10877 hardcode_direct=yes
10878 hardcode_shlibpath_var=no
10879 hardcode_direct_absolute=yes
10880 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10881 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10882 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10883 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10884 export_dynamic_flag_spec='${wl}-E'
10887 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10888 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10889 hardcode_libdir_flag_spec='-R$libdir'
10892 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10893 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10903 hardcode_libdir_flag_spec='-L$libdir'
10904 hardcode_minus_L=yes
10905 allow_undefined_flag=unsupported
10906 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'
10907 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10911 if test "$GCC" = yes; then
10912 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10913 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'
10915 allow_undefined_flag=' -expect_unresolved \*'
10916 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'
10918 archive_cmds_need_lc='no'
10919 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10920 hardcode_libdir_separator=:
10923 osf4* | osf5*) # as osf3* with the addition of -msym flag
10924 if test "$GCC" = yes; then
10925 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10926 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'
10927 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10929 allow_undefined_flag=' -expect_unresolved \*'
10930 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'
10931 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~
10932 $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'
10934 # Both c and cxx compiler support -rpath directly
10935 hardcode_libdir_flag_spec='-rpath $libdir'
10937 archive_cmds_need_lc='no'
10938 hardcode_libdir_separator=:
10942 no_undefined_flag=' -z defs'
10943 if test "$GCC" = yes; then
10945 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10946 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10947 $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'
10949 case `$CC -V 2>&1` in
10952 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10953 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10954 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10958 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10959 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10960 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10964 hardcode_libdir_flag_spec='-R$libdir'
10965 hardcode_shlibpath_var=no
10967 solaris2.[0-5] | solaris2.[0-5].*) ;;
10969 # The compiler driver will combine and reorder linker options,
10970 # but understands `-z linker_flag'. GCC discards it without `$wl',
10971 # but is careful enough not to reorder.
10972 # Supported since Solaris 2.6 (maybe 2.5.1?)
10973 if test "$GCC" = yes; then
10974 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10976 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10980 link_all_deplibs=yes
10984 if test "x$host_vendor" = xsequent; then
10985 # Use $CC to link under sequent, because it throws in some extra .o
10986 # files that make .init and .fini sections work.
10987 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10989 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10991 hardcode_libdir_flag_spec='-L$libdir'
10992 hardcode_direct=yes
10993 hardcode_minus_L=yes
10994 hardcode_shlibpath_var=no
10998 case $host_vendor in
11000 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11001 hardcode_direct=yes # is this really true???
11004 ## LD is ld it makes a PLAMLIB
11005 ## CC just makes a GrossModule.
11006 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
11007 reload_cmds='$CC -r -o $output$reload_objs'
11011 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11012 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
11015 runpath_var='LD_RUN_PATH'
11016 hardcode_shlibpath_var=no
11020 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11021 hardcode_shlibpath_var=no
11022 export_dynamic_flag_spec='-Bexport'
11026 if test -d /usr/nec; then
11027 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11028 hardcode_shlibpath_var=no
11029 runpath_var=LD_RUN_PATH
11030 hardcode_runpath_var=yes
11035 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11036 no_undefined_flag='${wl}-z,text'
11037 archive_cmds_need_lc=no
11038 hardcode_shlibpath_var=no
11039 runpath_var='LD_RUN_PATH'
11041 if test "$GCC" = yes; then
11042 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11043 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11045 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11046 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11050 sysv5* | sco3.2v5* | sco5v6*)
11051 # Note: We can NOT use -z defs as we might desire, because we do not
11052 # link with -lc, and that would cause any symbols used from libc to
11053 # always be unresolved, which means just about no library would
11054 # ever link correctly. If we're not using GNU ld we use -z text
11055 # though, which does catch some bad symbols but isn't as heavy-handed
11057 no_undefined_flag='${wl}-z,text'
11058 allow_undefined_flag='${wl}-z,nodefs'
11059 archive_cmds_need_lc=no
11060 hardcode_shlibpath_var=no
11061 hardcode_libdir_flag_spec='${wl}-R,$libdir'
11062 hardcode_libdir_separator=':'
11063 link_all_deplibs=yes
11064 export_dynamic_flag_spec='${wl}-Bexport'
11065 runpath_var='LD_RUN_PATH'
11067 if test "$GCC" = yes; then
11068 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11069 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11071 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11072 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11077 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11078 hardcode_libdir_flag_spec='-L$libdir'
11079 hardcode_shlibpath_var=no
11087 if test x$host_vendor = xsni; then
11089 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11090 export_dynamic_flag_spec='${wl}-Blargedynsym'
11096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
11097 $as_echo "$ld_shlibs" >&6; }
11098 test "$ld_shlibs" = no && can_build_shared=no
11100 with_gnu_ld=$with_gnu_ld
11117 # Do we need to explicitly link libc?
11119 case "x$archive_cmds_need_lc" in
11121 # Assume -lc should be added
11122 archive_cmds_need_lc=yes
11124 if test "$enable_shared" = yes && test "$GCC" = yes; then
11125 case $archive_cmds in
11127 # FIXME: we may have to deal with multi-command sequences.
11130 # Test whether the compiler implicitly links with -lc since on some
11131 # systems, -lgcc has to come before -lc. If gcc already passes -lc
11132 # to ld, don't add -lc before -lgcc.
11133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
11134 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
11135 if ${lt_cv_archive_cmds_need_lc+:} false; then :
11136 $as_echo_n "(cached) " >&6
11139 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11141 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11142 (eval $ac_compile) 2>&5
11144 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11145 test $ac_status = 0; } 2>conftest.err; then
11148 libobjs=conftest.$ac_objext
11150 wl=$lt_prog_compiler_wl
11151 pic_flag=$lt_prog_compiler_pic
11157 lt_save_allow_undefined_flag=$allow_undefined_flag
11158 allow_undefined_flag=
11159 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
11160 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
11162 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11163 test $ac_status = 0; }
11165 lt_cv_archive_cmds_need_lc=no
11167 lt_cv_archive_cmds_need_lc=yes
11169 allow_undefined_flag=$lt_save_allow_undefined_flag
11171 cat conftest.err 1>&5
11176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
11177 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
11178 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
11336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11337 $as_echo_n "checking dynamic linker characteristics... " >&6; }
11339 if test "$GCC" = yes; then
11341 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
11342 *) lt_awk_arg="/^libraries:/" ;;
11345 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
11346 *) lt_sed_strip_eq="s,=/,/,g" ;;
11348 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
11349 case $lt_search_path_spec in
11351 # if the path contains ";" then we assume it to be the separator
11352 # otherwise default to the standard path separator (i.e. ":") - it is
11353 # assumed that no part of a normal pathname contains ";" but that should
11354 # okay in the real world where ";" in dirpaths is itself problematic.
11355 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
11358 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
11361 # Ok, now we have the path, separated by spaces, we can step through it
11362 # and add multilib dir if necessary.
11363 lt_tmp_lt_search_path_spec=
11364 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11365 for lt_sys_path in $lt_search_path_spec; do
11366 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
11367 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
11369 test -d "$lt_sys_path" && \
11370 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11373 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
11374 BEGIN {RS=" "; FS="/|\n";} {
11377 for (lt_i = NF; lt_i > 0; lt_i--) {
11378 if ($lt_i != "" && $lt_i != ".") {
11379 if ($lt_i == "..") {
11382 if (lt_count == 0) {
11383 lt_foo="/" $lt_i lt_foo;
11390 if (lt_foo != "") { lt_freq[lt_foo]++; }
11391 if (lt_freq[lt_foo] == 1) { print lt_foo; }
11393 # AWK program above erroneously prepends '/' to C:/dos/paths
11396 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
11397 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
11399 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
11401 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11403 library_names_spec=
11404 libname_spec='lib$name'
11408 postuninstall_cmds=
11412 shlibpath_overrides_runpath=unknown
11414 dynamic_linker="$host_os ld.so"
11415 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11416 need_lib_prefix=unknown
11417 hardcode_into_libs=no
11419 # when you set need_version to no, make sure it does not cause -set_version
11420 # flags to be left without arguments
11421 need_version=unknown
11425 version_type=linux # correct to gnu/linux during the next big refactor
11426 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11427 shlibpath_var=LIBPATH
11429 # AIX 3 has no versioning support, so we append a major version to the name.
11430 soname_spec='${libname}${release}${shared_ext}$major'
11434 version_type=linux # correct to gnu/linux during the next big refactor
11437 hardcode_into_libs=yes
11438 if test "$host_cpu" = ia64; then
11439 # AIX 5 supports IA64
11440 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11441 shlibpath_var=LD_LIBRARY_PATH
11443 # With GCC up to 2.95.x, collect2 would create an import file
11444 # for dependence libraries. The import file would start with
11445 # the line `#! .'. This would cause the generated library to
11446 # depend on `.', always an invalid library. This was fixed in
11447 # development snapshots of GCC prior to 3.0.
11449 aix4 | aix4.[01] | aix4.[01].*)
11450 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11452 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
11455 can_build_shared=no
11459 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11460 # soname into executable. Probably we can add versioning support to
11461 # collect2, so additional links can be useful in future.
11462 if test "$aix_use_runtimelinking" = yes; then
11463 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11464 # instead of lib<name>.a to let people know that these are not
11465 # typical AIX shared libraries.
11466 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11468 # We preserve .a as extension for shared libraries through AIX4.2
11469 # and later when we are not doing run time linking.
11470 library_names_spec='${libname}${release}.a $libname.a'
11471 soname_spec='${libname}${release}${shared_ext}$major'
11473 shlibpath_var=LIBPATH
11480 # Since July 2007 AmigaOS4 officially supports .so libraries.
11481 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11482 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11485 library_names_spec='$libname.ixlibrary $libname.a'
11486 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11487 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'
11493 library_names_spec='${libname}${shared_ext}'
11494 dynamic_linker="$host_os ld.so"
11495 shlibpath_var=LIBRARY_PATH
11499 version_type=linux # correct to gnu/linux during the next big refactor
11501 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11502 soname_spec='${libname}${release}${shared_ext}$major'
11503 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11504 shlibpath_var=LD_LIBRARY_PATH
11505 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11506 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11507 # the default ld.so.conf also contains /usr/contrib/lib and
11508 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11509 # libtool to hard-code these into programs
11512 cygwin* | mingw* | pw32* | cegcc*)
11513 version_type=windows
11518 case $GCC,$cc_basename in
11521 library_names_spec='$libname.dll.a'
11522 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11523 postinstall_cmds='base_file=`basename \${file}`~
11524 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11525 dldir=$destdir/`dirname \$dlpath`~
11526 test -d \$dldir || mkdir -p \$dldir~
11527 $install_prog $dir/$dlname \$dldir/$dlname~
11528 chmod a+x \$dldir/$dlname~
11529 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11530 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11532 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11533 dlpath=$dir/\$dldll~
11535 shlibpath_overrides_runpath=yes
11539 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11540 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11542 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11545 # MinGW DLLs use traditional 'lib' prefix
11546 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11549 # pw32 DLLs use 'pw' prefix rather than 'lib'
11550 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11553 dynamic_linker='Win32 ld.exe'
11558 libname_spec='$name'
11559 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11560 library_names_spec='${libname}.dll.lib'
11564 sys_lib_search_path_spec=
11567 for lt_path in $LIB
11570 # Let DOS variable expansion print the short 8.3 style file name.
11571 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
11572 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
11575 # Convert to MSYS style.
11576 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
11579 # Convert to unix form, then to dos form, then back to unix form
11580 # but this time dos style (no spaces!) so that the unix form looks
11581 # like /cygdrive/c/PROGRA~1:/cygdr...
11582 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
11583 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
11584 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11587 sys_lib_search_path_spec="$LIB"
11588 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11589 # It is most probably a Windows format PATH.
11590 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11592 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11594 # FIXME: find the short name or the path components, as spaces are
11595 # common. (e.g. "Program Files" -> "PROGRA~1")
11599 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11600 postinstall_cmds='base_file=`basename \${file}`~
11601 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11602 dldir=$destdir/`dirname \$dlpath`~
11603 test -d \$dldir || mkdir -p \$dldir~
11604 $install_prog $dir/$dlname \$dldir/$dlname'
11605 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11606 dlpath=$dir/\$dldll~
11608 shlibpath_overrides_runpath=yes
11609 dynamic_linker='Win32 link.exe'
11613 # Assume MSVC wrapper
11614 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11615 dynamic_linker='Win32 ld.exe'
11618 # FIXME: first we should search . and the directory the executable is in
11622 darwin* | rhapsody*)
11623 dynamic_linker="$host_os dyld"
11624 version_type=darwin
11627 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11628 soname_spec='${libname}${release}${major}$shared_ext'
11629 shlibpath_overrides_runpath=yes
11630 shlibpath_var=DYLD_LIBRARY_PATH
11631 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11633 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11634 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11638 version_type=linux # correct to gnu/linux during the next big refactor
11641 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11642 soname_spec='${libname}${release}${shared_ext}$major'
11643 shlibpath_var=LD_LIBRARY_PATH
11646 freebsd* | dragonfly*)
11647 # DragonFly does not have aout. When/if they implement a new
11648 # versioning mechanism, adjust this.
11649 if test -x /usr/bin/objformat; then
11650 objformat=`/usr/bin/objformat`
11653 freebsd[23].*) objformat=aout ;;
11654 *) objformat=elf ;;
11657 version_type=freebsd-$objformat
11658 case $version_type in
11660 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11665 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11669 shlibpath_var=LD_LIBRARY_PATH
11672 shlibpath_overrides_runpath=yes
11674 freebsd3.[01]* | freebsdelf3.[01]*)
11675 shlibpath_overrides_runpath=yes
11676 hardcode_into_libs=yes
11678 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11679 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11680 shlibpath_overrides_runpath=no
11681 hardcode_into_libs=yes
11683 *) # from 4.6 on, and DragonFly
11684 shlibpath_overrides_runpath=yes
11685 hardcode_into_libs=yes
11691 version_type=linux # correct to gnu/linux during the next big refactor
11694 dynamic_linker="$host_os runtime_loader"
11695 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11696 soname_spec='${libname}${release}${shared_ext}$major'
11697 shlibpath_var=LIBRARY_PATH
11698 shlibpath_overrides_runpath=yes
11699 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
11700 hardcode_into_libs=yes
11703 hpux9* | hpux10* | hpux11*)
11704 # Give a soname corresponding to the major version so that dld.sl refuses to
11705 # link against other versions.
11712 hardcode_into_libs=yes
11713 dynamic_linker="$host_os dld.so"
11714 shlibpath_var=LD_LIBRARY_PATH
11715 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11716 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11717 soname_spec='${libname}${release}${shared_ext}$major'
11718 if test "X$HPUX_IA64_MODE" = X32; then
11719 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11721 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11723 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11727 hardcode_into_libs=yes
11728 dynamic_linker="$host_os dld.sl"
11729 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11730 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11731 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11732 soname_spec='${libname}${release}${shared_ext}$major'
11733 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11734 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11738 dynamic_linker="$host_os dld.sl"
11739 shlibpath_var=SHLIB_PATH
11740 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11741 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11742 soname_spec='${libname}${release}${shared_ext}$major'
11745 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11746 postinstall_cmds='chmod 555 $lib'
11747 # or fails outright, so override atomically:
11748 install_override_mode=555
11752 version_type=linux # correct to gnu/linux during the next big refactor
11755 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11756 soname_spec='${libname}${release}${shared_ext}$major'
11757 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11758 shlibpath_var=LD_LIBRARY_PATH
11759 shlibpath_overrides_runpath=no
11760 hardcode_into_libs=yes
11763 irix5* | irix6* | nonstopux*)
11765 nonstopux*) version_type=nonstopux ;;
11767 if test "$lt_cv_prog_gnu_ld" = yes; then
11768 version_type=linux # correct to gnu/linux during the next big refactor
11775 soname_spec='${libname}${release}${shared_ext}$major'
11776 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11778 irix5* | nonstopux*)
11779 libsuff= shlibsuff=
11782 case $LD in # libtool.m4 will add one of these switches to LD
11783 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11784 libsuff= shlibsuff= libmagic=32-bit;;
11785 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11786 libsuff=32 shlibsuff=N32 libmagic=N32;;
11787 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11788 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11789 *) libsuff= shlibsuff= libmagic=never-match;;
11793 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11794 shlibpath_overrides_runpath=no
11795 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11796 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11797 hardcode_into_libs=yes
11800 # No shared lib support for Linux oldld, aout, or coff.
11801 linux*oldld* | linux*aout* | linux*coff*)
11805 # This must be glibc/ELF.
11806 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
11807 version_type=linux # correct to gnu/linux during the next big refactor
11810 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11811 soname_spec='${libname}${release}${shared_ext}$major'
11812 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11813 shlibpath_var=LD_LIBRARY_PATH
11814 shlibpath_overrides_runpath=no
11816 # Some binutils ld are patched to set DT_RUNPATH
11817 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
11818 $as_echo_n "(cached) " >&6
11820 lt_cv_shlibpath_overrides_runpath=no
11821 save_LDFLAGS=$LDFLAGS
11822 save_libdir=$libdir
11823 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11824 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11825 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11826 /* end confdefs.h. */
11836 if ac_fn_c_try_link "$LINENO"; then :
11837 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11838 lt_cv_shlibpath_overrides_runpath=yes
11841 rm -f core conftest.err conftest.$ac_objext \
11842 conftest$ac_exeext conftest.$ac_ext
11843 LDFLAGS=$save_LDFLAGS
11844 libdir=$save_libdir
11848 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11850 # This implies no fast_install, which is unacceptable.
11851 # Some rework will be needed to allow for fast_install
11852 # before this can be enabled.
11853 hardcode_into_libs=yes
11855 # Append ld.so.conf contents to the search path
11856 if test -f /etc/ld.so.conf; then
11857 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' ' '`
11858 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11861 # We used to test for /lib/ld.so.1 and disable shared libraries on
11862 # powerpc, because MkLinux only supported shared libraries with the
11863 # GNU dynamic linker. Since this was broken with cross compilers,
11864 # most powerpc-linux boxes support dynamic linking these days and
11865 # people can always --disable-shared, the test was removed, and we
11866 # assume the GNU/Linux dynamic linker is in use.
11867 dynamic_linker='GNU/Linux ld.so'
11874 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11875 soname_spec='${libname}${release}${shared_ext}$major'
11876 shlibpath_var=LD_LIBRARY_PATH
11877 shlibpath_overrides_runpath=no
11878 hardcode_into_libs=yes
11879 dynamic_linker='NetBSD ld.elf_so'
11886 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11887 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11888 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11889 dynamic_linker='NetBSD (a.out) ld.so'
11891 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11892 soname_spec='${libname}${release}${shared_ext}$major'
11893 dynamic_linker='NetBSD ld.elf_so'
11895 shlibpath_var=LD_LIBRARY_PATH
11896 shlibpath_overrides_runpath=yes
11897 hardcode_into_libs=yes
11901 version_type=linux # correct to gnu/linux during the next big refactor
11902 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11903 shlibpath_var=LD_LIBRARY_PATH
11904 shlibpath_overrides_runpath=yes
11911 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11912 soname_spec='${libname}${release}${shared_ext}$major'
11913 shlibpath_var=LD_LIBRARY_PATH
11914 shlibpath_overrides_runpath=no
11915 hardcode_into_libs=yes
11916 dynamic_linker='ldqnx.so'
11921 sys_lib_dlsearch_path_spec="/usr/lib"
11923 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11925 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
11926 *) need_version=no ;;
11928 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11929 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11930 shlibpath_var=LD_LIBRARY_PATH
11931 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11933 openbsd2.[89] | openbsd2.[89].*)
11934 shlibpath_overrides_runpath=no
11937 shlibpath_overrides_runpath=yes
11941 shlibpath_overrides_runpath=yes
11946 libname_spec='$name'
11949 library_names_spec='$libname${shared_ext} $libname.a'
11950 dynamic_linker='OS/2 ld.exe'
11951 shlibpath_var=LIBPATH
11954 osf3* | osf4* | osf5*)
11958 soname_spec='${libname}${release}${shared_ext}$major'
11959 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11960 shlibpath_var=LD_LIBRARY_PATH
11961 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11962 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11970 version_type=linux # correct to gnu/linux during the next big refactor
11973 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11974 soname_spec='${libname}${release}${shared_ext}$major'
11975 shlibpath_var=LD_LIBRARY_PATH
11976 shlibpath_overrides_runpath=yes
11977 hardcode_into_libs=yes
11978 # ldd complains unless libraries are executable
11979 postinstall_cmds='chmod +x $lib'
11984 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11985 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11986 shlibpath_var=LD_LIBRARY_PATH
11987 shlibpath_overrides_runpath=yes
11988 if test "$with_gnu_ld" = yes; then
11995 version_type=linux # correct to gnu/linux during the next big refactor
11996 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11997 soname_spec='${libname}${release}${shared_ext}$major'
11998 shlibpath_var=LD_LIBRARY_PATH
11999 case $host_vendor in
12001 shlibpath_overrides_runpath=no
12003 runpath_var=LD_RUN_PATH
12011 shlibpath_overrides_runpath=no
12012 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12018 if test -d /usr/nec ;then
12019 version_type=linux # correct to gnu/linux during the next big refactor
12020 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
12021 soname_spec='$libname${shared_ext}.$major'
12022 shlibpath_var=LD_LIBRARY_PATH
12026 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12027 version_type=freebsd-elf
12030 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12031 soname_spec='${libname}${release}${shared_ext}$major'
12032 shlibpath_var=LD_LIBRARY_PATH
12033 shlibpath_overrides_runpath=yes
12034 hardcode_into_libs=yes
12035 if test "$with_gnu_ld" = yes; then
12036 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12038 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12041 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12045 sys_lib_dlsearch_path_spec='/usr/lib'
12049 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
12050 version_type=linux # correct to gnu/linux during the next big refactor
12053 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12054 shlibpath_var=LD_LIBRARY_PATH
12055 shlibpath_overrides_runpath=no
12056 hardcode_into_libs=yes
12060 version_type=linux # correct to gnu/linux during the next big refactor
12061 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12062 soname_spec='${libname}${release}${shared_ext}$major'
12063 shlibpath_var=LD_LIBRARY_PATH
12070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
12071 $as_echo "$dynamic_linker" >&6; }
12072 test "$dynamic_linker" = no && can_build_shared=no
12074 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12075 if test "$GCC" = yes; then
12076 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12079 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
12080 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
12082 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
12083 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
12177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
12178 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
12180 if test -n "$hardcode_libdir_flag_spec" ||
12181 test -n "$runpath_var" ||
12182 test "X$hardcode_automatic" = "Xyes" ; then
12184 # We can hardcode non-existent directories.
12185 if test "$hardcode_direct" != no &&
12186 # If the only mechanism to avoid hardcoding is shlibpath_var, we
12187 # have to relink, otherwise we might link with an installed library
12188 # when we should be linking with a yet-to-be-installed one
12189 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
12190 test "$hardcode_minus_L" != no; then
12191 # Linking always hardcodes the temporary library directory.
12192 hardcode_action=relink
12194 # We can link without hardcoding, and we can hardcode nonexisting dirs.
12195 hardcode_action=immediate
12198 # We cannot hardcode anything, or else we can only hardcode existing
12200 hardcode_action=unsupported
12202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
12203 $as_echo "$hardcode_action" >&6; }
12205 if test "$hardcode_action" = relink ||
12206 test "$inherit_rpath" = yes; then
12207 # Fast installation is not supported
12208 enable_fast_install=no
12209 elif test "$shlibpath_overrides_runpath" = yes ||
12210 test "$enable_shared" = no; then
12211 # Fast installation is not necessary
12212 enable_fast_install=needless
12220 if test "x$enable_dlopen" != xyes; then
12221 enable_dlopen=unknown
12222 enable_dlopen_self=unknown
12223 enable_dlopen_self_static=unknown
12230 lt_cv_dlopen="load_add_on"
12232 lt_cv_dlopen_self=yes
12235 mingw* | pw32* | cegcc*)
12236 lt_cv_dlopen="LoadLibrary"
12241 lt_cv_dlopen="dlopen"
12246 # if libdl is installed we need to link against it
12247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12248 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12249 if ${ac_cv_lib_dl_dlopen+:} false; then :
12250 $as_echo_n "(cached) " >&6
12252 ac_check_lib_save_LIBS=$LIBS
12254 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12255 /* end confdefs.h. */
12257 /* Override any GCC internal prototype to avoid an error.
12258 Use char because int might match the return type of a GCC
12259 builtin and then its argument prototype would still apply. */
12272 if ac_fn_c_try_link "$LINENO"; then :
12273 ac_cv_lib_dl_dlopen=yes
12275 ac_cv_lib_dl_dlopen=no
12277 rm -f core conftest.err conftest.$ac_objext \
12278 conftest$ac_exeext conftest.$ac_ext
12279 LIBS=$ac_check_lib_save_LIBS
12281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12282 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12283 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12284 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12287 lt_cv_dlopen="dyld"
12289 lt_cv_dlopen_self=yes
12296 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
12297 if test "x$ac_cv_func_shl_load" = xyes; then :
12298 lt_cv_dlopen="shl_load"
12300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12301 $as_echo_n "checking for shl_load in -ldld... " >&6; }
12302 if ${ac_cv_lib_dld_shl_load+:} false; then :
12303 $as_echo_n "(cached) " >&6
12305 ac_check_lib_save_LIBS=$LIBS
12307 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12308 /* end confdefs.h. */
12310 /* Override any GCC internal prototype to avoid an error.
12311 Use char because int might match the return type of a GCC
12312 builtin and then its argument prototype would still apply. */
12320 return shl_load ();
12325 if ac_fn_c_try_link "$LINENO"; then :
12326 ac_cv_lib_dld_shl_load=yes
12328 ac_cv_lib_dld_shl_load=no
12330 rm -f core conftest.err conftest.$ac_objext \
12331 conftest$ac_exeext conftest.$ac_ext
12332 LIBS=$ac_check_lib_save_LIBS
12334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12335 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
12336 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
12337 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
12339 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
12340 if test "x$ac_cv_func_dlopen" = xyes; then :
12341 lt_cv_dlopen="dlopen"
12343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12344 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12345 if ${ac_cv_lib_dl_dlopen+:} false; then :
12346 $as_echo_n "(cached) " >&6
12348 ac_check_lib_save_LIBS=$LIBS
12350 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12351 /* end confdefs.h. */
12353 /* Override any GCC internal prototype to avoid an error.
12354 Use char because int might match the return type of a GCC
12355 builtin and then its argument prototype would still apply. */
12368 if ac_fn_c_try_link "$LINENO"; then :
12369 ac_cv_lib_dl_dlopen=yes
12371 ac_cv_lib_dl_dlopen=no
12373 rm -f core conftest.err conftest.$ac_objext \
12374 conftest$ac_exeext conftest.$ac_ext
12375 LIBS=$ac_check_lib_save_LIBS
12377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12378 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12379 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12380 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12383 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
12384 if ${ac_cv_lib_svld_dlopen+:} false; then :
12385 $as_echo_n "(cached) " >&6
12387 ac_check_lib_save_LIBS=$LIBS
12388 LIBS="-lsvld $LIBS"
12389 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12390 /* end confdefs.h. */
12392 /* Override any GCC internal prototype to avoid an error.
12393 Use char because int might match the return type of a GCC
12394 builtin and then its argument prototype would still apply. */
12407 if ac_fn_c_try_link "$LINENO"; then :
12408 ac_cv_lib_svld_dlopen=yes
12410 ac_cv_lib_svld_dlopen=no
12412 rm -f core conftest.err conftest.$ac_objext \
12413 conftest$ac_exeext conftest.$ac_ext
12414 LIBS=$ac_check_lib_save_LIBS
12416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12417 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
12418 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
12419 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12422 $as_echo_n "checking for dld_link in -ldld... " >&6; }
12423 if ${ac_cv_lib_dld_dld_link+:} false; then :
12424 $as_echo_n "(cached) " >&6
12426 ac_check_lib_save_LIBS=$LIBS
12428 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12429 /* end confdefs.h. */
12431 /* Override any GCC internal prototype to avoid an error.
12432 Use char because int might match the return type of a GCC
12433 builtin and then its argument prototype would still apply. */
12441 return dld_link ();
12446 if ac_fn_c_try_link "$LINENO"; then :
12447 ac_cv_lib_dld_dld_link=yes
12449 ac_cv_lib_dld_dld_link=no
12451 rm -f core conftest.err conftest.$ac_objext \
12452 conftest$ac_exeext conftest.$ac_ext
12453 LIBS=$ac_check_lib_save_LIBS
12455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12456 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12457 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
12458 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
12479 if test "x$lt_cv_dlopen" != xno; then
12485 case $lt_cv_dlopen in
12487 save_CPPFLAGS="$CPPFLAGS"
12488 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12490 save_LDFLAGS="$LDFLAGS"
12491 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12494 LIBS="$lt_cv_dlopen_libs $LIBS"
12496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12497 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
12498 if ${lt_cv_dlopen_self+:} false; then :
12499 $as_echo_n "(cached) " >&6
12501 if test "$cross_compiling" = yes; then :
12502 lt_cv_dlopen_self=cross
12504 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12505 lt_status=$lt_dlunknown
12506 cat > conftest.$ac_ext <<_LT_EOF
12507 #line $LINENO "configure"
12508 #include "confdefs.h"
12517 # define LT_DLGLOBAL RTLD_GLOBAL
12520 # define LT_DLGLOBAL DL_GLOBAL
12522 # define LT_DLGLOBAL 0
12526 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12527 find out it does not work in some platform. */
12528 #ifndef LT_DLLAZY_OR_NOW
12530 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12533 # define LT_DLLAZY_OR_NOW DL_LAZY
12536 # define LT_DLLAZY_OR_NOW RTLD_NOW
12539 # define LT_DLLAZY_OR_NOW DL_NOW
12541 # define LT_DLLAZY_OR_NOW 0
12548 /* When -fvisbility=hidden is used, assume the code has been annotated
12549 correspondingly for the symbols needed. */
12550 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12551 int fnord () __attribute__((visibility("default")));
12554 int fnord () { return 42; }
12557 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12558 int status = $lt_dlunknown;
12562 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12565 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12566 else puts (dlerror ());
12568 /* dlclose (self); */
12576 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12577 (eval $ac_link) 2>&5
12579 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12580 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12581 (./conftest; exit; ) >&5 2>/dev/null
12583 case x$lt_status in
12584 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12585 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12586 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12589 # compilation failed
12590 lt_cv_dlopen_self=no
12597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12598 $as_echo "$lt_cv_dlopen_self" >&6; }
12600 if test "x$lt_cv_dlopen_self" = xyes; then
12601 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12603 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12604 if ${lt_cv_dlopen_self_static+:} false; then :
12605 $as_echo_n "(cached) " >&6
12607 if test "$cross_compiling" = yes; then :
12608 lt_cv_dlopen_self_static=cross
12610 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12611 lt_status=$lt_dlunknown
12612 cat > conftest.$ac_ext <<_LT_EOF
12613 #line $LINENO "configure"
12614 #include "confdefs.h"
12623 # define LT_DLGLOBAL RTLD_GLOBAL
12626 # define LT_DLGLOBAL DL_GLOBAL
12628 # define LT_DLGLOBAL 0
12632 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12633 find out it does not work in some platform. */
12634 #ifndef LT_DLLAZY_OR_NOW
12636 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12639 # define LT_DLLAZY_OR_NOW DL_LAZY
12642 # define LT_DLLAZY_OR_NOW RTLD_NOW
12645 # define LT_DLLAZY_OR_NOW DL_NOW
12647 # define LT_DLLAZY_OR_NOW 0
12654 /* When -fvisbility=hidden is used, assume the code has been annotated
12655 correspondingly for the symbols needed. */
12656 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12657 int fnord () __attribute__((visibility("default")));
12660 int fnord () { return 42; }
12663 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12664 int status = $lt_dlunknown;
12668 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12671 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12672 else puts (dlerror ());
12674 /* dlclose (self); */
12682 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12683 (eval $ac_link) 2>&5
12685 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12686 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12687 (./conftest; exit; ) >&5 2>/dev/null
12689 case x$lt_status in
12690 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12691 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12692 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12695 # compilation failed
12696 lt_cv_dlopen_self_static=no
12703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12704 $as_echo "$lt_cv_dlopen_self_static" >&6; }
12707 CPPFLAGS="$save_CPPFLAGS"
12708 LDFLAGS="$save_LDFLAGS"
12713 case $lt_cv_dlopen_self in
12714 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12715 *) enable_dlopen_self=unknown ;;
12718 case $lt_cv_dlopen_self_static in
12719 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12720 *) enable_dlopen_self_static=unknown ;;
12742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12743 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
12744 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12745 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12746 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12748 $as_echo "yes" >&6; }
12750 # FIXME - insert some real tests, host_os isn't really good enough
12753 if test -n "$STRIP" ; then
12754 striplib="$STRIP -x"
12755 old_striplib="$STRIP -S"
12756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12757 $as_echo "yes" >&6; }
12759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12760 $as_echo "no" >&6; }
12764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12765 $as_echo "no" >&6; }
12781 # Report which library types will actually be built
12782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12783 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
12784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12785 $as_echo "$can_build_shared" >&6; }
12787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12788 $as_echo_n "checking whether to build shared libraries... " >&6; }
12789 test "$can_build_shared" = "no" && enable_shared=no
12791 # On AIX, shared libraries and static libraries use the same namespace, and
12792 # are all built from PIC.
12795 test "$enable_shared" = yes && enable_static=no
12796 if test -n "$RANLIB"; then
12797 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12798 postinstall_cmds='$RANLIB $lib'
12803 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12804 test "$enable_shared" = yes && enable_static=no
12808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12809 $as_echo "$enable_shared" >&6; }
12811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12812 $as_echo_n "checking whether to build static libraries... " >&6; }
12813 # Make sure either enable_shared or enable_static is yes.
12814 test "$enable_shared" = yes || enable_static=yes
12815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12816 $as_echo "$enable_static" >&6; }
12823 ac_cpp='$CPP $CPPFLAGS'
12824 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12825 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12826 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12844 ac_config_commands="$ac_config_commands libtool"
12849 # Only expand once:
12853 ac_config_headers="$ac_config_headers config.h"
12857 # Check $PATH for the following programs and append suitable options.
12859 ac_cpp='$CPP $CPPFLAGS'
12860 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12861 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12862 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12863 if test -n "$ac_tool_prefix"; then
12864 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
12865 set dummy ${ac_tool_prefix}gcc; ac_word=$2
12866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12867 $as_echo_n "checking for $ac_word... " >&6; }
12868 if ${ac_cv_prog_CC+:} false; then :
12869 $as_echo_n "(cached) " >&6
12871 if test -n "$CC"; then
12872 ac_cv_prog_CC="$CC" # Let the user override the test.
12874 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12875 for as_dir in $PATH
12878 test -z "$as_dir" && as_dir=.
12879 for ac_exec_ext in '' $ac_executable_extensions; do
12880 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12881 ac_cv_prog_CC="${ac_tool_prefix}gcc"
12882 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12892 if test -n "$CC"; then
12893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
12894 $as_echo "$CC" >&6; }
12896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12897 $as_echo "no" >&6; }
12902 if test -z "$ac_cv_prog_CC"; then
12904 # Extract the first word of "gcc", so it can be a program name with args.
12905 set dummy gcc; ac_word=$2
12906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12907 $as_echo_n "checking for $ac_word... " >&6; }
12908 if ${ac_cv_prog_ac_ct_CC+:} false; then :
12909 $as_echo_n "(cached) " >&6
12911 if test -n "$ac_ct_CC"; then
12912 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
12914 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12915 for as_dir in $PATH
12918 test -z "$as_dir" && as_dir=.
12919 for ac_exec_ext in '' $ac_executable_extensions; do
12920 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12921 ac_cv_prog_ac_ct_CC="gcc"
12922 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12931 ac_ct_CC=$ac_cv_prog_ac_ct_CC
12932 if test -n "$ac_ct_CC"; then
12933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
12934 $as_echo "$ac_ct_CC" >&6; }
12936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12937 $as_echo "no" >&6; }
12940 if test "x$ac_ct_CC" = x; then
12943 case $cross_compiling:$ac_tool_warned in
12945 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12946 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12947 ac_tool_warned=yes ;;
12952 CC="$ac_cv_prog_CC"
12955 if test -z "$CC"; then
12956 if test -n "$ac_tool_prefix"; then
12957 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
12958 set dummy ${ac_tool_prefix}cc; ac_word=$2
12959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12960 $as_echo_n "checking for $ac_word... " >&6; }
12961 if ${ac_cv_prog_CC+:} false; then :
12962 $as_echo_n "(cached) " >&6
12964 if test -n "$CC"; then
12965 ac_cv_prog_CC="$CC" # Let the user override the test.
12967 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12968 for as_dir in $PATH
12971 test -z "$as_dir" && as_dir=.
12972 for ac_exec_ext in '' $ac_executable_extensions; do
12973 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12974 ac_cv_prog_CC="${ac_tool_prefix}cc"
12975 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12985 if test -n "$CC"; then
12986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
12987 $as_echo "$CC" >&6; }
12989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12990 $as_echo "no" >&6; }
12996 if test -z "$CC"; then
12997 # Extract the first word of "cc", so it can be a program name with args.
12998 set dummy cc; ac_word=$2
12999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13000 $as_echo_n "checking for $ac_word... " >&6; }
13001 if ${ac_cv_prog_CC+:} false; then :
13002 $as_echo_n "(cached) " >&6
13004 if test -n "$CC"; then
13005 ac_cv_prog_CC="$CC" # Let the user override the test.
13007 ac_prog_rejected=no
13008 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13009 for as_dir in $PATH
13012 test -z "$as_dir" && as_dir=.
13013 for ac_exec_ext in '' $ac_executable_extensions; do
13014 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13015 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
13016 ac_prog_rejected=yes
13020 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13027 if test $ac_prog_rejected = yes; then
13028 # We found a bogon in the path, so make sure we never use it.
13029 set dummy $ac_cv_prog_CC
13031 if test $# != 0; then
13032 # We chose a different compiler from the bogus one.
13033 # However, it has the same basename, so the bogon will be chosen
13034 # first if we set CC to just the basename; use the full file name.
13036 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
13042 if test -n "$CC"; then
13043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
13044 $as_echo "$CC" >&6; }
13046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13047 $as_echo "no" >&6; }
13052 if test -z "$CC"; then
13053 if test -n "$ac_tool_prefix"; then
13054 for ac_prog in cl.exe
13056 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
13057 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
13058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13059 $as_echo_n "checking for $ac_word... " >&6; }
13060 if ${ac_cv_prog_CC+:} false; then :
13061 $as_echo_n "(cached) " >&6
13063 if test -n "$CC"; then
13064 ac_cv_prog_CC="$CC" # Let the user override the test.
13066 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13067 for as_dir in $PATH
13070 test -z "$as_dir" && as_dir=.
13071 for ac_exec_ext in '' $ac_executable_extensions; do
13072 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13073 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
13074 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13084 if test -n "$CC"; then
13085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
13086 $as_echo "$CC" >&6; }
13088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13089 $as_echo "no" >&6; }
13093 test -n "$CC" && break
13096 if test -z "$CC"; then
13098 for ac_prog in cl.exe
13100 # Extract the first word of "$ac_prog", so it can be a program name with args.
13101 set dummy $ac_prog; ac_word=$2
13102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13103 $as_echo_n "checking for $ac_word... " >&6; }
13104 if ${ac_cv_prog_ac_ct_CC+:} false; then :
13105 $as_echo_n "(cached) " >&6
13107 if test -n "$ac_ct_CC"; then
13108 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
13110 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13111 for as_dir in $PATH
13114 test -z "$as_dir" && as_dir=.
13115 for ac_exec_ext in '' $ac_executable_extensions; do
13116 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13117 ac_cv_prog_ac_ct_CC="$ac_prog"
13118 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13127 ac_ct_CC=$ac_cv_prog_ac_ct_CC
13128 if test -n "$ac_ct_CC"; then
13129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
13130 $as_echo "$ac_ct_CC" >&6; }
13132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13133 $as_echo "no" >&6; }
13137 test -n "$ac_ct_CC" && break
13140 if test "x$ac_ct_CC" = x; then
13143 case $cross_compiling:$ac_tool_warned in
13145 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13146 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13147 ac_tool_warned=yes ;;
13156 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13157 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13158 as_fn_error $? "no acceptable C compiler found in \$PATH
13159 See \`config.log' for more details" "$LINENO" 5; }
13161 # Provide some information about the compiler.
13162 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
13165 for ac_option in --version -v -V -qversion; do
13166 { { ac_try="$ac_compiler $ac_option >&5"
13167 case "(($ac_try" in
13168 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13169 *) ac_try_echo=$ac_try;;
13171 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
13172 $as_echo "$ac_try_echo"; } >&5
13173 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
13175 if test -s conftest.err; then
13177 ... rest of stderr output deleted ...
13178 10q' conftest.err >conftest.er1
13179 cat conftest.er1 >&5
13181 rm -f conftest.er1 conftest.err
13182 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13183 test $ac_status = 0; }
13186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
13187 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
13188 if ${ac_cv_c_compiler_gnu+:} false; then :
13189 $as_echo_n "(cached) " >&6
13191 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13192 /* end confdefs.h. */
13205 if ac_fn_c_try_compile "$LINENO"; then :
13206 ac_compiler_gnu=yes
13210 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13211 ac_cv_c_compiler_gnu=$ac_compiler_gnu
13214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
13215 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
13216 if test $ac_compiler_gnu = yes; then
13221 ac_test_CFLAGS=${CFLAGS+set}
13222 ac_save_CFLAGS=$CFLAGS
13223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
13224 $as_echo_n "checking whether $CC accepts -g... " >&6; }
13225 if ${ac_cv_prog_cc_g+:} false; then :
13226 $as_echo_n "(cached) " >&6
13228 ac_save_c_werror_flag=$ac_c_werror_flag
13229 ac_c_werror_flag=yes
13232 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13233 /* end confdefs.h. */
13243 if ac_fn_c_try_compile "$LINENO"; then :
13244 ac_cv_prog_cc_g=yes
13247 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13248 /* end confdefs.h. */
13258 if ac_fn_c_try_compile "$LINENO"; then :
13261 ac_c_werror_flag=$ac_save_c_werror_flag
13263 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13264 /* end confdefs.h. */
13274 if ac_fn_c_try_compile "$LINENO"; then :
13275 ac_cv_prog_cc_g=yes
13277 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13279 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13281 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13282 ac_c_werror_flag=$ac_save_c_werror_flag
13284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
13285 $as_echo "$ac_cv_prog_cc_g" >&6; }
13286 if test "$ac_test_CFLAGS" = set; then
13287 CFLAGS=$ac_save_CFLAGS
13288 elif test $ac_cv_prog_cc_g = yes; then
13289 if test "$GCC" = yes; then
13295 if test "$GCC" = yes; then
13301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
13302 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
13303 if ${ac_cv_prog_cc_c89+:} false; then :
13304 $as_echo_n "(cached) " >&6
13306 ac_cv_prog_cc_c89=no
13308 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13309 /* end confdefs.h. */
13310 #include <stdarg.h>
13313 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
13314 struct buf { int x; };
13315 FILE * (*rcsopen) (struct buf *, struct stat *, int);
13316 static char *e (p, i)
13322 static char *f (char * (*g) (char **, int), char **p, ...)
13327 s = g (p, va_arg (v,int));
13332 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
13333 function prototypes and stuff, but not '\xHH' hex character constants.
13334 These don't provoke an error unfortunately, instead are silently treated
13335 as 'x'. The following induces an error, until -std is added to get
13336 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
13337 array size at least. It's necessary to write '\x00'==0 to get something
13338 that's true only with -std. */
13339 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
13341 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
13342 inside strings and character constants. */
13344 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
13346 int test (int i, double x);
13347 struct s1 {int (*f) (int a);};
13348 struct s2 {int (*f) (double a);};
13349 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
13355 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
13360 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
13361 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
13363 CC="$ac_save_CC $ac_arg"
13364 if ac_fn_c_try_compile "$LINENO"; then :
13365 ac_cv_prog_cc_c89=$ac_arg
13367 rm -f core conftest.err conftest.$ac_objext
13368 test "x$ac_cv_prog_cc_c89" != "xno" && break
13370 rm -f conftest.$ac_ext
13375 case "x$ac_cv_prog_cc_c89" in
13377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
13378 $as_echo "none needed" >&6; } ;;
13380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
13381 $as_echo "unsupported" >&6; } ;;
13383 CC="$CC $ac_cv_prog_cc_c89"
13384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
13385 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
13387 if test "x$ac_cv_prog_cc_c89" != xno; then :
13392 ac_cpp='$CPP $CPPFLAGS'
13393 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13394 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13395 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13398 ac_cpp='$CPP $CPPFLAGS'
13399 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13400 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13401 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
13403 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
13404 if ${am_cv_prog_cc_c_o+:} false; then :
13405 $as_echo_n "(cached) " >&6
13407 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13408 /* end confdefs.h. */
13418 # Make sure it works both with $CC and with simple cc.
13419 # Following AC_PROG_CC_C_O, we do the test twice because some
13420 # compilers refuse to overwrite an existing .o file with -o,
13421 # though they will create one.
13422 am_cv_prog_cc_c_o=yes
13423 for am_i in 1 2; do
13424 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
13425 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
13427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13428 (exit $ac_status); } \
13429 && test -f conftest2.$ac_objext; then
13432 am_cv_prog_cc_c_o=no
13436 rm -f core conftest*
13439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
13440 $as_echo "$am_cv_prog_cc_c_o" >&6; }
13441 if test "$am_cv_prog_cc_c_o" != yes; then
13442 # Losing compiler, so override with the script.
13443 # FIXME: It is wrong to rewrite CC.
13444 # But if we don't then we get into trouble of one sort or another.
13445 # A longer-term fix would be to have automake use am__CC in this case,
13446 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
13447 CC="$am_aux_dir/compile $CC"
13450 ac_cpp='$CPP $CPPFLAGS'
13451 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13452 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13453 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13456 depcc="$CC" am_compiler_list=
13458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
13459 $as_echo_n "checking dependency style of $depcc... " >&6; }
13460 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
13461 $as_echo_n "(cached) " >&6
13463 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
13464 # We make a subdir and do the tests there. Otherwise we can end up
13465 # making bogus files that we don't know about and never remove. For
13466 # instance it was reported that on HP-UX the gcc test will end up
13467 # making a dummy file named 'D' -- because '-MD' means "put the output
13469 rm -rf conftest.dir
13471 # Copy depcomp to subdir because otherwise we won't find it if we're
13472 # using a relative directory.
13473 cp "$am_depcomp" conftest.dir
13475 # We will build objects and dependencies in a subdirectory because
13476 # it helps to detect inapplicable dependency modes. For instance
13477 # both Tru64's cc and ICC support -MD to output dependencies as a
13478 # side effect of compilation, but ICC will put the dependencies in
13479 # the current directory while Tru64 will put them in the object
13483 am_cv_CC_dependencies_compiler_type=none
13484 if test "$am_compiler_list" = ""; then
13485 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
13487 am__universal=false
13488 case " $depcc " in #(
13489 *\ -arch\ *\ -arch\ *) am__universal=true ;;
13492 for depmode in $am_compiler_list; do
13493 # Setup a source with many dependencies, because some compilers
13494 # like to wrap large dependency lists on column 80 (with \), and
13495 # we should not choose a depcomp mode which is confused by this.
13497 # We need to recreate these files for each test, as the compiler may
13498 # overwrite some of them when testing with obscure command lines.
13499 # This happens at least with the AIX C compiler.
13501 for i in 1 2 3 4 5 6; do
13502 echo '#include "conftst'$i'.h"' >> sub/conftest.c
13503 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
13504 # Solaris 10 /bin/sh.
13505 echo '/* dummy */' > sub/conftst$i.h
13507 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
13509 # We check with '-c' and '-o' for the sake of the "dashmstdout"
13510 # mode. It turns out that the SunPro C++ compiler does not properly
13511 # handle '-M -o', and we need to detect this. Also, some Intel
13512 # versions had trouble with output in subdirs.
13513 am__obj=sub/conftest.${OBJEXT-o}
13514 am__minus_obj="-o $am__obj"
13517 # This depmode causes a compiler race in universal mode.
13518 test "$am__universal" = false || continue
13521 # After this tag, mechanisms are not by side-effect, so they'll
13522 # only be used when explicitly requested.
13523 if test "x$enable_dependency_tracking" = xyes; then
13529 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
13530 # This compiler won't grok '-c -o', but also, the minuso test has
13531 # not run yet. These depmodes are late enough in the game, and
13532 # so weak that their functioning should not be impacted.
13533 am__obj=conftest.${OBJEXT-o}
13538 if depmode=$depmode \
13539 source=sub/conftest.c object=$am__obj \
13540 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
13541 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
13542 >/dev/null 2>conftest.err &&
13543 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
13544 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
13545 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
13546 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
13547 # icc doesn't choke on unknown options, it will just issue warnings
13548 # or remarks (even with -Werror). So we grep stderr for any message
13549 # that says an option was ignored or not supported.
13550 # When given -MP, icc 7.0 and 7.1 complain thusly:
13551 # icc: Command line warning: ignoring option '-M'; no argument required
13552 # The diagnosis changed in icc 8.0:
13553 # icc: Command line remark: option '-MP' not supported
13554 if (grep 'ignoring option' conftest.err ||
13555 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
13556 am_cv_CC_dependencies_compiler_type=$depmode
13563 rm -rf conftest.dir
13565 am_cv_CC_dependencies_compiler_type=none
13569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
13570 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
13571 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
13574 test "x$enable_dependency_tracking" != xno \
13575 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
13576 am__fastdepCC_TRUE=
13577 am__fastdepCC_FALSE='#'
13579 am__fastdepCC_TRUE='#'
13580 am__fastdepCC_FALSE=
13586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Minix Amsterdam compiler" >&5
13587 $as_echo_n "checking for Minix Amsterdam compiler... " >&6; }
13588 if ${gl_cv_c_amsterdam_compiler+:} false; then :
13589 $as_echo_n "(cached) " >&6
13592 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13593 /* end confdefs.h. */
13600 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13601 $EGREP "Amsterdam" >/dev/null 2>&1; then :
13602 gl_cv_c_amsterdam_compiler=yes
13604 gl_cv_c_amsterdam_compiler=no
13610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_c_amsterdam_compiler" >&5
13611 $as_echo "$gl_cv_c_amsterdam_compiler" >&6; }
13612 if test -z "$AR"; then
13613 if test $gl_cv_c_amsterdam_compiler = yes; then
13615 if test -z "$ARFLAGS"; then
13619 if test -n "$ac_tool_prefix"; then
13620 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
13621 set dummy ${ac_tool_prefix}ar; ac_word=$2
13622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13623 $as_echo_n "checking for $ac_word... " >&6; }
13624 if ${ac_cv_prog_AR+:} false; then :
13625 $as_echo_n "(cached) " >&6
13627 if test -n "$AR"; then
13628 ac_cv_prog_AR="$AR" # Let the user override the test.
13630 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13631 for as_dir in $PATH
13634 test -z "$as_dir" && as_dir=.
13635 for ac_exec_ext in '' $ac_executable_extensions; do
13636 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13637 ac_cv_prog_AR="${ac_tool_prefix}ar"
13638 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13648 if test -n "$AR"; then
13649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
13650 $as_echo "$AR" >&6; }
13652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13653 $as_echo "no" >&6; }
13658 if test -z "$ac_cv_prog_AR"; then
13660 # Extract the first word of "ar", so it can be a program name with args.
13661 set dummy ar; ac_word=$2
13662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13663 $as_echo_n "checking for $ac_word... " >&6; }
13664 if ${ac_cv_prog_ac_ct_AR+:} false; then :
13665 $as_echo_n "(cached) " >&6
13667 if test -n "$ac_ct_AR"; then
13668 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
13670 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13671 for as_dir in $PATH
13674 test -z "$as_dir" && as_dir=.
13675 for ac_exec_ext in '' $ac_executable_extensions; do
13676 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13677 ac_cv_prog_ac_ct_AR="ar"
13678 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13687 ac_ct_AR=$ac_cv_prog_ac_ct_AR
13688 if test -n "$ac_ct_AR"; then
13689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
13690 $as_echo "$ac_ct_AR" >&6; }
13692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13693 $as_echo "no" >&6; }
13696 if test "x$ac_ct_AR" = x; then
13699 case $cross_compiling:$ac_tool_warned in
13701 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13702 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13703 ac_tool_warned=yes ;;
13708 AR="$ac_cv_prog_AR"
13711 if test -z "$ARFLAGS"; then
13716 if test -z "$ARFLAGS"; then
13722 if test -z "$RANLIB"; then
13723 if test $gl_cv_c_amsterdam_compiler = yes; then
13726 if test -n "$ac_tool_prefix"; then
13727 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
13728 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
13729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13730 $as_echo_n "checking for $ac_word... " >&6; }
13731 if ${ac_cv_prog_RANLIB+:} false; then :
13732 $as_echo_n "(cached) " >&6
13734 if test -n "$RANLIB"; then
13735 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
13737 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13738 for as_dir in $PATH
13741 test -z "$as_dir" && as_dir=.
13742 for ac_exec_ext in '' $ac_executable_extensions; do
13743 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13744 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
13745 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13754 RANLIB=$ac_cv_prog_RANLIB
13755 if test -n "$RANLIB"; then
13756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
13757 $as_echo "$RANLIB" >&6; }
13759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13760 $as_echo "no" >&6; }
13765 if test -z "$ac_cv_prog_RANLIB"; then
13766 ac_ct_RANLIB=$RANLIB
13767 # Extract the first word of "ranlib", so it can be a program name with args.
13768 set dummy ranlib; ac_word=$2
13769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13770 $as_echo_n "checking for $ac_word... " >&6; }
13771 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
13772 $as_echo_n "(cached) " >&6
13774 if test -n "$ac_ct_RANLIB"; then
13775 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
13777 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13778 for as_dir in $PATH
13781 test -z "$as_dir" && as_dir=.
13782 for ac_exec_ext in '' $ac_executable_extensions; do
13783 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13784 ac_cv_prog_ac_ct_RANLIB="ranlib"
13785 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13794 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
13795 if test -n "$ac_ct_RANLIB"; then
13796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
13797 $as_echo "$ac_ct_RANLIB" >&6; }
13799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13800 $as_echo "no" >&6; }
13803 if test "x$ac_ct_RANLIB" = x; then
13806 case $cross_compiling:$ac_tool_warned in
13808 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13809 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13810 ac_tool_warned=yes ;;
13812 RANLIB=$ac_ct_RANLIB
13815 RANLIB="$ac_cv_prog_RANLIB"
13828 # Check whether --enable-largefile was given.
13829 if test "${enable_largefile+set}" = set; then :
13830 enableval=$enable_largefile;
13833 if test "$enable_largefile" != no; then
13835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
13836 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
13837 if ${ac_cv_sys_largefile_CC+:} false; then :
13838 $as_echo_n "(cached) " >&6
13840 ac_cv_sys_largefile_CC=no
13841 if test "$GCC" != yes; then
13844 # IRIX 6.2 and later do not support large files by default,
13845 # so use the C compiler's -n32 option if that helps.
13846 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13847 /* end confdefs.h. */
13848 #include <sys/types.h>
13849 /* Check that off_t can represent 2**63 - 1 correctly.
13850 We can't simply define LARGE_OFF_T to be 9223372036854775807,
13851 since some C++ compilers masquerading as C compilers
13852 incorrectly reject 9223372036854775807. */
13853 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
13854 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
13855 && LARGE_OFF_T % 2147483647 == 1)
13865 if ac_fn_c_try_compile "$LINENO"; then :
13868 rm -f core conftest.err conftest.$ac_objext
13870 if ac_fn_c_try_compile "$LINENO"; then :
13871 ac_cv_sys_largefile_CC=' -n32'; break
13873 rm -f core conftest.err conftest.$ac_objext
13877 rm -f conftest.$ac_ext
13880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
13881 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
13882 if test "$ac_cv_sys_largefile_CC" != no; then
13883 CC=$CC$ac_cv_sys_largefile_CC
13886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
13887 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
13888 if ${ac_cv_sys_file_offset_bits+:} false; then :
13889 $as_echo_n "(cached) " >&6
13892 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13893 /* end confdefs.h. */
13894 #include <sys/types.h>
13895 /* Check that off_t can represent 2**63 - 1 correctly.
13896 We can't simply define LARGE_OFF_T to be 9223372036854775807,
13897 since some C++ compilers masquerading as C compilers
13898 incorrectly reject 9223372036854775807. */
13899 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
13900 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
13901 && LARGE_OFF_T % 2147483647 == 1)
13911 if ac_fn_c_try_compile "$LINENO"; then :
13912 ac_cv_sys_file_offset_bits=no; break
13914 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13915 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13916 /* end confdefs.h. */
13917 #define _FILE_OFFSET_BITS 64
13918 #include <sys/types.h>
13919 /* Check that off_t can represent 2**63 - 1 correctly.
13920 We can't simply define LARGE_OFF_T to be 9223372036854775807,
13921 since some C++ compilers masquerading as C compilers
13922 incorrectly reject 9223372036854775807. */
13923 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
13924 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
13925 && LARGE_OFF_T % 2147483647 == 1)
13935 if ac_fn_c_try_compile "$LINENO"; then :
13936 ac_cv_sys_file_offset_bits=64; break
13938 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13939 ac_cv_sys_file_offset_bits=unknown
13943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
13944 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
13945 case $ac_cv_sys_file_offset_bits in #(
13948 cat >>confdefs.h <<_ACEOF
13949 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
13954 if test $ac_cv_sys_file_offset_bits = unknown; then
13955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
13956 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
13957 if ${ac_cv_sys_large_files+:} false; then :
13958 $as_echo_n "(cached) " >&6
13961 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13962 /* end confdefs.h. */
13963 #include <sys/types.h>
13964 /* Check that off_t can represent 2**63 - 1 correctly.
13965 We can't simply define LARGE_OFF_T to be 9223372036854775807,
13966 since some C++ compilers masquerading as C compilers
13967 incorrectly reject 9223372036854775807. */
13968 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
13969 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
13970 && LARGE_OFF_T % 2147483647 == 1)
13980 if ac_fn_c_try_compile "$LINENO"; then :
13981 ac_cv_sys_large_files=no; break
13983 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13984 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13985 /* end confdefs.h. */
13986 #define _LARGE_FILES 1
13987 #include <sys/types.h>
13988 /* Check that off_t can represent 2**63 - 1 correctly.
13989 We can't simply define LARGE_OFF_T to be 9223372036854775807,
13990 since some C++ compilers masquerading as C compilers
13991 incorrectly reject 9223372036854775807. */
13992 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
13993 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
13994 && LARGE_OFF_T % 2147483647 == 1)
14004 if ac_fn_c_try_compile "$LINENO"; then :
14005 ac_cv_sys_large_files=1; break
14007 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14008 ac_cv_sys_large_files=unknown
14012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
14013 $as_echo "$ac_cv_sys_large_files" >&6; }
14014 case $ac_cv_sys_large_files in #(
14017 cat >>confdefs.h <<_ACEOF
14018 #define _LARGE_FILES $ac_cv_sys_large_files
14026 $as_echo "#define _DARWIN_USE_64_BIT_INODE 1" >>confdefs.h
14030 case $ac_cv_prog_cc_stdc in #(
14032 ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;; #(
14034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
14035 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
14036 if ${ac_cv_prog_cc_c99+:} false; then :
14037 $as_echo_n "(cached) " >&6
14039 ac_cv_prog_cc_c99=no
14041 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14042 /* end confdefs.h. */
14043 #include <stdarg.h>
14044 #include <stdbool.h>
14045 #include <stdlib.h>
14049 // Check varargs macros. These examples are taken from C99 6.10.3.5.
14050 #define debug(...) fprintf (stderr, __VA_ARGS__)
14051 #define showlist(...) puts (#__VA_ARGS__)
14052 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
14054 test_varargs_macros (void)
14059 debug ("X = %d\n", x);
14060 showlist (The first, second, and third items.);
14061 report (x>y, "x is %d but y is %d", x, y);
14064 // Check long long types.
14065 #define BIG64 18446744073709551615ull
14066 #define BIG32 4294967295ul
14067 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
14069 your preprocessor is broken;
14073 your preprocessor is broken;
14075 static long long int bignum = -9223372036854775807LL;
14076 static unsigned long long int ubignum = BIG64;
14078 struct incomplete_array
14084 struct named_init {
14086 const wchar_t *name;
14090 typedef const char *ccp;
14093 test_restrict (ccp restrict text)
14095 // See if C++-style comments work.
14096 // Iterate through items via the restricted pointer.
14097 // Also check for declarations in for loops.
14098 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
14103 // Check varargs and va_copy.
14105 test_varargs (const char *format, ...)
14108 va_start (args, format);
14110 va_copy (args_copy, args);
14120 case 's': // string
14121 str = va_arg (args_copy, const char *);
14124 number = va_arg (args_copy, int);
14127 fnumber = va_arg (args_copy, double);
14133 va_end (args_copy);
14142 _Bool success = false;
14145 if (test_restrict ("String literal") == 0)
14147 char *restrict newvar = "Another string";
14150 test_varargs ("s, d' f .", "string", 65, 34.234);
14151 test_varargs_macros ();
14153 // Check flexible array members.
14154 struct incomplete_array *ia =
14155 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
14157 for (int i = 0; i < ia->datasize; ++i)
14158 ia->data[i] = i * 1.234;
14160 // Check named initializers.
14161 struct named_init ni = {
14163 .name = L"Test wide string",
14164 .average = 543.34343,
14169 int dynamic_array[ni.number];
14170 dynamic_array[ni.number - 1] = 543;
14172 // work around unused variable warnings
14173 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
14174 || dynamic_array[ni.number - 1] != 543);
14180 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
14182 CC="$ac_save_CC $ac_arg"
14183 if ac_fn_c_try_compile "$LINENO"; then :
14184 ac_cv_prog_cc_c99=$ac_arg
14186 rm -f core conftest.err conftest.$ac_objext
14187 test "x$ac_cv_prog_cc_c99" != "xno" && break
14189 rm -f conftest.$ac_ext
14194 case "x$ac_cv_prog_cc_c99" in
14196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
14197 $as_echo "none needed" >&6; } ;;
14199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
14200 $as_echo "unsupported" >&6; } ;;
14202 CC="$CC $ac_cv_prog_cc_c99"
14203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
14204 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
14206 if test "x$ac_cv_prog_cc_c99" != xno; then :
14207 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
14209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
14210 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
14211 if ${ac_cv_prog_cc_c89+:} false; then :
14212 $as_echo_n "(cached) " >&6
14214 ac_cv_prog_cc_c89=no
14216 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14217 /* end confdefs.h. */
14218 #include <stdarg.h>
14221 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
14222 struct buf { int x; };
14223 FILE * (*rcsopen) (struct buf *, struct stat *, int);
14224 static char *e (p, i)
14230 static char *f (char * (*g) (char **, int), char **p, ...)
14235 s = g (p, va_arg (v,int));
14240 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
14241 function prototypes and stuff, but not '\xHH' hex character constants.
14242 These don't provoke an error unfortunately, instead are silently treated
14243 as 'x'. The following induces an error, until -std is added to get
14244 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
14245 array size at least. It's necessary to write '\x00'==0 to get something
14246 that's true only with -std. */
14247 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
14249 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
14250 inside strings and character constants. */
14252 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
14254 int test (int i, double x);
14255 struct s1 {int (*f) (int a);};
14256 struct s2 {int (*f) (double a);};
14257 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
14263 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
14268 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
14269 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
14271 CC="$ac_save_CC $ac_arg"
14272 if ac_fn_c_try_compile "$LINENO"; then :
14273 ac_cv_prog_cc_c89=$ac_arg
14275 rm -f core conftest.err conftest.$ac_objext
14276 test "x$ac_cv_prog_cc_c89" != "xno" && break
14278 rm -f conftest.$ac_ext
14283 case "x$ac_cv_prog_cc_c89" in
14285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
14286 $as_echo "none needed" >&6; } ;;
14288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
14289 $as_echo "unsupported" >&6; } ;;
14291 CC="$CC $ac_cv_prog_cc_c89"
14292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
14293 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
14295 if test "x$ac_cv_prog_cc_c89" != xno; then :
14296 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
14298 ac_cv_prog_cc_stdc=no
14304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO Standard C" >&5
14305 $as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; }
14306 if ${ac_cv_prog_cc_stdc+:} false; then :
14307 $as_echo_n "(cached) " >&6
14310 case $ac_cv_prog_cc_stdc in #(
14312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
14313 $as_echo "unsupported" >&6; } ;; #(
14315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
14316 $as_echo "none needed" >&6; } ;; #(
14318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5
14319 $as_echo "$ac_cv_prog_cc_stdc" >&6; } ;;
14327 # Check whether --enable-threads was given.
14328 if test "${enable_threads+set}" = set; then :
14329 enableval=$enable_threads; gl_use_threads=$enableval
14331 if test -n "$gl_use_threads_default"; then
14332 gl_use_threads="$gl_use_threads_default"
14335 osf*) gl_use_threads=no ;;
14338 1.[0-5].*) gl_use_threads=no ;;
14339 *) gl_use_threads=yes ;;
14342 *) gl_use_threads=yes ;;
14348 if test "$gl_use_threads" = yes || test "$gl_use_threads" = posix; then
14349 # For using <pthread.h>:
14352 # On OSF/1, the compiler needs the flag -D_REENTRANT so that it
14353 # groks <pthread.h>. cc also understands the flag -pthread, but
14354 # we don't use it because 1. gcc-2.95 doesn't understand -pthread,
14355 # 2. putting a flag into CPPFLAGS that has an effect on the linker
14356 # causes the AC_LINK_IFELSE test below to succeed unexpectedly,
14357 # leading to wrong values of LIBTHREAD and LTLIBTHREAD.
14358 CPPFLAGS="$CPPFLAGS -D_REENTRANT"
14361 # Some systems optimize for single-threaded programs by default, and
14362 # need special flags to disable these optimizations. For example, the
14363 # definition of 'errno' in <errno.h>.
14365 aix* | freebsd*) CPPFLAGS="$CPPFLAGS -D_THREAD_SAFE" ;;
14366 solaris*) CPPFLAGS="$CPPFLAGS -D_REENTRANT" ;;
14373 # Code from module alloca-opt:
14374 # Code from module dirname:
14375 # Code from module dirname-lgpl:
14376 # Code from module dosname:
14377 # Code from module double-slash-root:
14378 # Code from module environ:
14379 # Code from module errno:
14380 # Code from module error:
14381 # Code from module exitfail:
14382 # Code from module extensions:
14384 # Code from module extern-inline:
14385 # Code from module float:
14386 # Code from module full-write:
14387 # Code from module gettext-h:
14388 # Code from module gitlog-to-changelog:
14389 # Code from module gnupload:
14390 # Code from module havelib:
14391 # Code from module include_next:
14392 # Code from module intprops:
14393 # Code from module largefile:
14395 # Code from module lib-ignore:
14396 # Code from module lock:
14397 # Code from module malloc-posix:
14398 # Code from module malloca:
14399 # Code from module memchr:
14400 # Code from module msvc-inval:
14401 # Code from module msvc-nothrow:
14402 # Code from module multiarch:
14403 # Code from module raise:
14404 # Code from module read:
14405 # Code from module safe-read:
14406 # Code from module safe-write:
14407 # Code from module setenv:
14408 # Code from module sigaction:
14409 # Code from module signal:
14410 # Code from module signal-h:
14411 # Code from module sigprocmask:
14412 # Code from module size_max:
14413 # Code from module snippet/_Noreturn:
14414 # Code from module snippet/arg-nonnull:
14415 # Code from module snippet/c++defs:
14416 # Code from module snippet/warn-on-use:
14417 # Code from module snprintf:
14418 # Code from module ssize_t:
14419 # Code from module stdarg:
14423 # Code from module stdbool:
14424 # Code from module stddef:
14425 # Code from module stdint:
14426 # Code from module stdio:
14427 # Code from module stdlib:
14428 # Code from module strerror:
14429 # Code from module strerror-override:
14430 # Code from module string:
14431 # Code from module strndup:
14432 # Code from module strnlen:
14433 # Code from module strsignal:
14434 # Code from module sys_select:
14435 # Code from module sys_stat:
14436 # Code from module sys_time:
14437 # Code from module sys_types:
14438 # Code from module sys_wait:
14439 # Code from module threadlib:
14443 # Code from module time:
14444 # Code from module tls:
14445 # Code from module unistd:
14446 # Code from module unsetenv:
14447 # Code from module vasnprintf:
14448 # Code from module vasprintf:
14449 # Code from module verify:
14450 # Code from module waitpid:
14451 # Code from module warnings:
14452 # Code from module wchar:
14453 # Code from module write:
14454 # Code from module xalloc:
14455 # Code from module xalloc-die:
14456 # Code from module xalloc-oversized:
14457 # Code from module xsize:
14458 # Code from module xstrndup:
14459 # Code from module xvasprintf:
14462 ac_cpp='$CPP $CPPFLAGS'
14463 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14464 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14465 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
14467 $as_echo_n "checking how to run the C preprocessor... " >&6; }
14468 # On Suns, sometimes $CPP names a directory.
14469 if test -n "$CPP" && test -d "$CPP"; then
14472 if test -z "$CPP"; then
14473 if ${ac_cv_prog_CPP+:} false; then :
14474 $as_echo_n "(cached) " >&6
14476 # Double quotes because CPP needs to be expanded
14477 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
14479 ac_preproc_ok=false
14480 for ac_c_preproc_warn_flag in '' yes
14482 # Use a header file that comes with gcc, so configuring glibc
14483 # with a fresh cross-compiler works.
14484 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14485 # <limits.h> exists even on freestanding compilers.
14486 # On the NeXT, cc -E runs the code through the compiler's parser,
14487 # not just through cpp. "Syntax error" is here to catch this case.
14488 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14489 /* end confdefs.h. */
14491 # include <limits.h>
14493 # include <assert.h>
14497 if ac_fn_c_try_cpp "$LINENO"; then :
14500 # Broken: fails on valid input.
14503 rm -f conftest.err conftest.i conftest.$ac_ext
14505 # OK, works on sane cases. Now check whether nonexistent headers
14506 # can be detected and how.
14507 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14508 /* end confdefs.h. */
14509 #include <ac_nonexistent.h>
14511 if ac_fn_c_try_cpp "$LINENO"; then :
14512 # Broken: success on invalid input.
14515 # Passes both tests.
14519 rm -f conftest.err conftest.i conftest.$ac_ext
14522 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
14523 rm -f conftest.i conftest.err conftest.$ac_ext
14524 if $ac_preproc_ok; then :
14529 ac_cv_prog_CPP=$CPP
14532 CPP=$ac_cv_prog_CPP
14534 ac_cv_prog_CPP=$CPP
14536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
14537 $as_echo "$CPP" >&6; }
14538 ac_preproc_ok=false
14539 for ac_c_preproc_warn_flag in '' yes
14541 # Use a header file that comes with gcc, so configuring glibc
14542 # with a fresh cross-compiler works.
14543 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14544 # <limits.h> exists even on freestanding compilers.
14545 # On the NeXT, cc -E runs the code through the compiler's parser,
14546 # not just through cpp. "Syntax error" is here to catch this case.
14547 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14548 /* end confdefs.h. */
14550 # include <limits.h>
14552 # include <assert.h>
14556 if ac_fn_c_try_cpp "$LINENO"; then :
14559 # Broken: fails on valid input.
14562 rm -f conftest.err conftest.i conftest.$ac_ext
14564 # OK, works on sane cases. Now check whether nonexistent headers
14565 # can be detected and how.
14566 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14567 /* end confdefs.h. */
14568 #include <ac_nonexistent.h>
14570 if ac_fn_c_try_cpp "$LINENO"; then :
14571 # Broken: success on invalid input.
14574 # Passes both tests.
14578 rm -f conftest.err conftest.i conftest.$ac_ext
14581 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
14582 rm -f conftest.i conftest.err conftest.$ac_ext
14583 if $ac_preproc_ok; then :
14586 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14587 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14588 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
14589 See \`config.log' for more details" "$LINENO" 5; }
14593 ac_cpp='$CPP $CPPFLAGS'
14594 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14595 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14596 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14598 CFLAGS="$CFLAGS -Wall"
14599 if test "$GCC" = yes
14601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Werror -Wunknown-warning-option" >&5
14602 $as_echo_n "checking whether C compiler handles -Werror -Wunknown-warning-option... " >&6; }
14603 if ${gl_cv_warn_c__Werror__Wunknown_warning_option+:} false; then :
14604 $as_echo_n "(cached) " >&6
14607 gl_save_compiler_FLAGS="$CFLAGS"
14608 as_fn_append CFLAGS " $gl_unknown_warnings_are_errors -Werror -Wunknown-warning-option"
14609 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14610 /* end confdefs.h. */
14620 if ac_fn_c_try_compile "$LINENO"; then :
14621 gl_cv_warn_c__Werror__Wunknown_warning_option=yes
14623 gl_cv_warn_c__Werror__Wunknown_warning_option=no
14625 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14626 CFLAGS="$gl_save_compiler_FLAGS"
14629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Werror__Wunknown_warning_option" >&5
14630 $as_echo "$gl_cv_warn_c__Werror__Wunknown_warning_option" >&6; }
14631 if test "x$gl_cv_warn_c__Werror__Wunknown_warning_option" = xyes; then :
14632 gl_unknown_warnings_are_errors='-Wunknown-warning-option -Werror'
14634 gl_unknown_warnings_are_errors=
14638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -W" >&5
14639 $as_echo_n "checking whether C compiler handles -W... " >&6; }
14640 if ${gl_cv_warn_c__W+:} false; then :
14641 $as_echo_n "(cached) " >&6
14644 gl_save_compiler_FLAGS="$CFLAGS"
14645 as_fn_append CFLAGS " $gl_unknown_warnings_are_errors -W"
14646 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14647 /* end confdefs.h. */
14657 if ac_fn_c_try_compile "$LINENO"; then :
14658 gl_cv_warn_c__W=yes
14662 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14663 CFLAGS="$gl_save_compiler_FLAGS"
14666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__W" >&5
14667 $as_echo "$gl_cv_warn_c__W" >&6; }
14668 if test "x$gl_cv_warn_c__W" = xyes; then :
14669 as_fn_append WARN_CFLAGS " -W"
14674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wpointer-arith" >&5
14675 $as_echo_n "checking whether C compiler handles -Wpointer-arith... " >&6; }
14676 if ${gl_cv_warn_c__Wpointer_arith+:} false; then :
14677 $as_echo_n "(cached) " >&6
14680 gl_save_compiler_FLAGS="$CFLAGS"
14681 as_fn_append CFLAGS " $gl_unknown_warnings_are_errors -Wpointer-arith"
14682 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14683 /* end confdefs.h. */
14693 if ac_fn_c_try_compile "$LINENO"; then :
14694 gl_cv_warn_c__Wpointer_arith=yes
14696 gl_cv_warn_c__Wpointer_arith=no
14698 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14699 CFLAGS="$gl_save_compiler_FLAGS"
14702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wpointer_arith" >&5
14703 $as_echo "$gl_cv_warn_c__Wpointer_arith" >&6; }
14704 if test "x$gl_cv_warn_c__Wpointer_arith" = xyes; then :
14705 as_fn_append WARN_CFLAGS " -Wpointer-arith"
14710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wwrite-strings" >&5
14711 $as_echo_n "checking whether C compiler handles -Wwrite-strings... " >&6; }
14712 if ${gl_cv_warn_c__Wwrite_strings+:} false; then :
14713 $as_echo_n "(cached) " >&6
14716 gl_save_compiler_FLAGS="$CFLAGS"
14717 as_fn_append CFLAGS " $gl_unknown_warnings_are_errors -Wwrite-strings"
14718 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14719 /* end confdefs.h. */
14729 if ac_fn_c_try_compile "$LINENO"; then :
14730 gl_cv_warn_c__Wwrite_strings=yes
14732 gl_cv_warn_c__Wwrite_strings=no
14734 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14735 CFLAGS="$gl_save_compiler_FLAGS"
14738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wwrite_strings" >&5
14739 $as_echo "$gl_cv_warn_c__Wwrite_strings" >&6; }
14740 if test "x$gl_cv_warn_c__Wwrite_strings" = xyes; then :
14741 as_fn_append WARN_CFLAGS " -Wwrite-strings"
14746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wstrict-prototypes" >&5
14747 $as_echo_n "checking whether C compiler handles -Wstrict-prototypes... " >&6; }
14748 if ${gl_cv_warn_c__Wstrict_prototypes+:} false; then :
14749 $as_echo_n "(cached) " >&6
14752 gl_save_compiler_FLAGS="$CFLAGS"
14753 as_fn_append CFLAGS " $gl_unknown_warnings_are_errors -Wstrict-prototypes"
14754 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14755 /* end confdefs.h. */
14765 if ac_fn_c_try_compile "$LINENO"; then :
14766 gl_cv_warn_c__Wstrict_prototypes=yes
14768 gl_cv_warn_c__Wstrict_prototypes=no
14770 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14771 CFLAGS="$gl_save_compiler_FLAGS"
14774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wstrict_prototypes" >&5
14775 $as_echo "$gl_cv_warn_c__Wstrict_prototypes" >&6; }
14776 if test "x$gl_cv_warn_c__Wstrict_prototypes" = xyes; then :
14777 as_fn_append WARN_CFLAGS " -Wstrict-prototypes"
14782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wshadow" >&5
14783 $as_echo_n "checking whether C compiler handles -Wshadow... " >&6; }
14784 if ${gl_cv_warn_c__Wshadow+:} false; then :
14785 $as_echo_n "(cached) " >&6
14788 gl_save_compiler_FLAGS="$CFLAGS"
14789 as_fn_append CFLAGS " $gl_unknown_warnings_are_errors -Wshadow"
14790 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14791 /* end confdefs.h. */
14801 if ac_fn_c_try_compile "$LINENO"; then :
14802 gl_cv_warn_c__Wshadow=yes
14804 gl_cv_warn_c__Wshadow=no
14806 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14807 CFLAGS="$gl_save_compiler_FLAGS"
14810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wshadow" >&5
14811 $as_echo "$gl_cv_warn_c__Wshadow" >&6; }
14812 if test "x$gl_cv_warn_c__Wshadow" = xyes; then :
14813 as_fn_append WARN_CFLAGS " -Wshadow"
14818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wformat-security" >&5
14819 $as_echo_n "checking whether C compiler handles -Wformat-security... " >&6; }
14820 if ${gl_cv_warn_c__Wformat_security+:} false; then :
14821 $as_echo_n "(cached) " >&6
14824 gl_save_compiler_FLAGS="$CFLAGS"
14825 as_fn_append CFLAGS " $gl_unknown_warnings_are_errors -Wformat-security"
14826 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14827 /* end confdefs.h. */
14837 if ac_fn_c_try_compile "$LINENO"; then :
14838 gl_cv_warn_c__Wformat_security=yes
14840 gl_cv_warn_c__Wformat_security=no
14842 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14843 CFLAGS="$gl_save_compiler_FLAGS"
14846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wformat_security" >&5
14847 $as_echo "$gl_cv_warn_c__Wformat_security" >&6; }
14848 if test "x$gl_cv_warn_c__Wformat_security" = xyes; then :
14849 as_fn_append WARN_CFLAGS " -Wformat-security"
14854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wredundant-decls" >&5
14855 $as_echo_n "checking whether C compiler handles -Wredundant-decls... " >&6; }
14856 if ${gl_cv_warn_c__Wredundant_decls+:} false; then :
14857 $as_echo_n "(cached) " >&6
14860 gl_save_compiler_FLAGS="$CFLAGS"
14861 as_fn_append CFLAGS " $gl_unknown_warnings_are_errors -Wredundant-decls"
14862 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14863 /* end confdefs.h. */
14873 if ac_fn_c_try_compile "$LINENO"; then :
14874 gl_cv_warn_c__Wredundant_decls=yes
14876 gl_cv_warn_c__Wredundant_decls=no
14878 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14879 CFLAGS="$gl_save_compiler_FLAGS"
14882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wredundant_decls" >&5
14883 $as_echo "$gl_cv_warn_c__Wredundant_decls" >&6; }
14884 if test "x$gl_cv_warn_c__Wredundant_decls" = xyes; then :
14885 as_fn_append WARN_CFLAGS " -Wredundant-decls"
14890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-missing-field-initializers" >&5
14891 $as_echo_n "checking whether C compiler handles -Wno-missing-field-initializers... " >&6; }
14892 if ${gl_cv_warn_c__Wno_missing_field_initializers+:} false; then :
14893 $as_echo_n "(cached) " >&6
14896 gl_save_compiler_FLAGS="$CFLAGS"
14897 as_fn_append CFLAGS " $gl_unknown_warnings_are_errors -Wno-missing-field-initializers"
14898 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14899 /* end confdefs.h. */
14909 if ac_fn_c_try_compile "$LINENO"; then :
14910 gl_cv_warn_c__Wno_missing_field_initializers=yes
14912 gl_cv_warn_c__Wno_missing_field_initializers=no
14914 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14915 CFLAGS="$gl_save_compiler_FLAGS"
14918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_missing_field_initializers" >&5
14919 $as_echo "$gl_cv_warn_c__Wno_missing_field_initializers" >&6; }
14920 if test "x$gl_cv_warn_c__Wno_missing_field_initializers" = xyes; then :
14921 as_fn_append WARN_CFLAGS " -Wno-missing-field-initializers"
14926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
14927 $as_echo_n "checking whether ln -s works... " >&6; }
14929 if test "$LN_S" = "ln -s"; then
14930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14931 $as_echo "yes" >&6; }
14933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
14934 $as_echo "no, using $LN_S" >&6; }
14944 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
14945 if test -n "$ac_tool_prefix"; then
14946 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
14947 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
14948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14949 $as_echo_n "checking for $ac_word... " >&6; }
14950 if ${ac_cv_path_PKG_CONFIG+:} false; then :
14951 $as_echo_n "(cached) " >&6
14953 case $PKG_CONFIG in
14955 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
14958 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14959 for as_dir in $PATH
14962 test -z "$as_dir" && as_dir=.
14963 for ac_exec_ext in '' $ac_executable_extensions; do
14964 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14965 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
14966 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14976 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
14977 if test -n "$PKG_CONFIG"; then
14978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
14979 $as_echo "$PKG_CONFIG" >&6; }
14981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14982 $as_echo "no" >&6; }
14987 if test -z "$ac_cv_path_PKG_CONFIG"; then
14988 ac_pt_PKG_CONFIG=$PKG_CONFIG
14989 # Extract the first word of "pkg-config", so it can be a program name with args.
14990 set dummy pkg-config; ac_word=$2
14991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14992 $as_echo_n "checking for $ac_word... " >&6; }
14993 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
14994 $as_echo_n "(cached) " >&6
14996 case $ac_pt_PKG_CONFIG in
14998 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
15001 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15002 for as_dir in $PATH
15005 test -z "$as_dir" && as_dir=.
15006 for ac_exec_ext in '' $ac_executable_extensions; do
15007 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15008 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
15009 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15019 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
15020 if test -n "$ac_pt_PKG_CONFIG"; then
15021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
15022 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
15024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15025 $as_echo "no" >&6; }
15028 if test "x$ac_pt_PKG_CONFIG" = x; then
15031 case $cross_compiling:$ac_tool_warned in
15033 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
15034 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
15035 ac_tool_warned=yes ;;
15037 PKG_CONFIG=$ac_pt_PKG_CONFIG
15040 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
15044 if test -n "$PKG_CONFIG"; then
15045 _pkg_min_version=0.9.0
15046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
15047 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
15048 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
15049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15050 $as_echo "yes" >&6; }
15052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15053 $as_echo "no" >&6; }
15059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CHECK" >&5
15060 $as_echo_n "checking for CHECK... " >&6; }
15062 if test -n "$CHECK_CFLAGS"; then
15063 pkg_cv_CHECK_CFLAGS="$CHECK_CFLAGS"
15064 elif test -n "$PKG_CONFIG"; then
15065 if test -n "$PKG_CONFIG" && \
15066 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"check >= 0.9.4\""; } >&5
15067 ($PKG_CONFIG --exists --print-errors "check >= 0.9.4") 2>&5
15069 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15070 test $ac_status = 0; }; then
15071 pkg_cv_CHECK_CFLAGS=`$PKG_CONFIG --cflags "check >= 0.9.4" 2>/dev/null`
15072 test "x$?" != "x0" && pkg_failed=yes
15079 if test -n "$CHECK_LIBS"; then
15080 pkg_cv_CHECK_LIBS="$CHECK_LIBS"
15081 elif test -n "$PKG_CONFIG"; then
15082 if test -n "$PKG_CONFIG" && \
15083 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"check >= 0.9.4\""; } >&5
15084 ($PKG_CONFIG --exists --print-errors "check >= 0.9.4") 2>&5
15086 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15087 test $ac_status = 0; }; then
15088 pkg_cv_CHECK_LIBS=`$PKG_CONFIG --libs "check >= 0.9.4" 2>/dev/null`
15089 test "x$?" != "x0" && pkg_failed=yes
15099 if test $pkg_failed = yes; then
15100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15101 $as_echo "no" >&6; }
15103 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
15104 _pkg_short_errors_supported=yes
15106 _pkg_short_errors_supported=no
15108 if test $_pkg_short_errors_supported = yes; then
15109 CHECK_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "check >= 0.9.4" 2>&1`
15111 CHECK_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "check >= 0.9.4" 2>&1`
15113 # Put the nasty error message in config.log where it belongs
15114 echo "$CHECK_PKG_ERRORS" >&5
15117 elif test $pkg_failed = untried; then
15118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15119 $as_echo "no" >&6; }
15122 CHECK_CFLAGS=$pkg_cv_CHECK_CFLAGS
15123 CHECK_LIBS=$pkg_cv_CHECK_LIBS
15124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15125 $as_echo "yes" >&6; }
15128 if test "x$run_tests" = xyes; then
15130 RUN_TESTS_FALSE='#'
15137 # Check for various header files and associated libraries.
15138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing strerror" >&5
15139 $as_echo_n "checking for library containing strerror... " >&6; }
15140 if ${ac_cv_search_strerror+:} false; then :
15141 $as_echo_n "(cached) " >&6
15143 ac_func_search_save_LIBS=$LIBS
15144 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15145 /* end confdefs.h. */
15147 /* Override any GCC internal prototype to avoid an error.
15148 Use char because int might match the return type of a GCC
15149 builtin and then its argument prototype would still apply. */
15157 return strerror ();
15162 for ac_lib in '' cposix; do
15163 if test -z "$ac_lib"; then
15164 ac_res="none required"
15167 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
15169 if ac_fn_c_try_link "$LINENO"; then :
15170 ac_cv_search_strerror=$ac_res
15172 rm -f core conftest.err conftest.$ac_objext \
15174 if ${ac_cv_search_strerror+:} false; then :
15178 if ${ac_cv_search_strerror+:} false; then :
15181 ac_cv_search_strerror=no
15183 rm conftest.$ac_ext
15184 LIBS=$ac_func_search_save_LIBS
15186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_strerror" >&5
15187 $as_echo "$ac_cv_search_strerror" >&6; }
15188 ac_res=$ac_cv_search_strerror
15189 if test "$ac_res" != no; then :
15190 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15199 LIBC_FATAL_STDERR_=1
15200 export LIBC_FATAL_STDERR_
15202 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
15203 if test "x$ac_cv_type_size_t" = xyes; then :
15207 cat >>confdefs.h <<_ACEOF
15208 #define size_t unsigned int
15213 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
15214 # for constant arguments. Useless!
15215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
15216 $as_echo_n "checking for working alloca.h... " >&6; }
15217 if ${ac_cv_working_alloca_h+:} false; then :
15218 $as_echo_n "(cached) " >&6
15220 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15221 /* end confdefs.h. */
15222 #include <alloca.h>
15226 char *p = (char *) alloca (2 * sizeof (int));
15232 if ac_fn_c_try_link "$LINENO"; then :
15233 ac_cv_working_alloca_h=yes
15235 ac_cv_working_alloca_h=no
15237 rm -f core conftest.err conftest.$ac_objext \
15238 conftest$ac_exeext conftest.$ac_ext
15240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
15241 $as_echo "$ac_cv_working_alloca_h" >&6; }
15242 if test $ac_cv_working_alloca_h = yes; then
15244 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
15248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
15249 $as_echo_n "checking for alloca... " >&6; }
15250 if ${ac_cv_func_alloca_works+:} false; then :
15251 $as_echo_n "(cached) " >&6
15253 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15254 /* end confdefs.h. */
15256 # define alloca __builtin_alloca
15259 # include <malloc.h>
15260 # define alloca _alloca
15262 # ifdef HAVE_ALLOCA_H
15263 # include <alloca.h>
15268 # ifndef alloca /* predefined by HP cc +Olibcalls */
15269 void *alloca (size_t);
15279 char *p = (char *) alloca (1);
15285 if ac_fn_c_try_link "$LINENO"; then :
15286 ac_cv_func_alloca_works=yes
15288 ac_cv_func_alloca_works=no
15290 rm -f core conftest.err conftest.$ac_objext \
15291 conftest$ac_exeext conftest.$ac_ext
15293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
15294 $as_echo "$ac_cv_func_alloca_works" >&6; }
15296 if test $ac_cv_func_alloca_works = yes; then
15298 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
15301 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
15302 # that cause trouble. Some versions do not even contain alloca or
15303 # contain a buggy version. If you still want to use their alloca,
15304 # use ar to extract alloca.o from them instead of compiling alloca.c.
15310 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
15312 $as_echo "#define C_ALLOCA 1" >>confdefs.h
15315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
15316 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
15317 if ${ac_cv_os_cray+:} false; then :
15318 $as_echo_n "(cached) " >&6
15320 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15321 /* end confdefs.h. */
15322 #if defined CRAY && ! defined CRAY2
15329 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15330 $EGREP "webecray" >/dev/null 2>&1; then :
15338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
15339 $as_echo "$ac_cv_os_cray" >&6; }
15340 if test $ac_cv_os_cray = yes; then
15341 for ac_func in _getb67 GETB67 getb67; do
15342 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15343 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
15344 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
15346 cat >>confdefs.h <<_ACEOF
15347 #define CRAY_STACKSEG_END $ac_func
15356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
15357 $as_echo_n "checking stack direction for C alloca... " >&6; }
15358 if ${ac_cv_c_stack_direction+:} false; then :
15359 $as_echo_n "(cached) " >&6
15361 if test "$cross_compiling" = yes; then :
15362 ac_cv_c_stack_direction=0
15364 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15365 /* end confdefs.h. */
15366 $ac_includes_default
15368 find_stack_direction (int *addr, int depth)
15370 int dir, dummy = 0;
15373 *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
15374 dir = depth ? find_stack_direction (addr, depth - 1) : 0;
15375 return dir + dummy;
15379 main (int argc, char **argv)
15381 return find_stack_direction (0, argc + !argv + 20) < 0;
15384 if ac_fn_c_try_run "$LINENO"; then :
15385 ac_cv_c_stack_direction=1
15387 ac_cv_c_stack_direction=-1
15389 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15390 conftest.$ac_objext conftest.beam conftest.$ac_ext
15394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
15395 $as_echo "$ac_cv_c_stack_direction" >&6; }
15396 cat >>confdefs.h <<_ACEOF
15397 #define STACK_DIRECTION $ac_cv_c_stack_direction
15405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether // is distinct from /" >&5
15406 $as_echo_n "checking whether // is distinct from /... " >&6; }
15407 if ${gl_cv_double_slash_root+:} false; then :
15408 $as_echo_n "(cached) " >&6
15410 if test x"$cross_compiling" = xyes ; then
15411 # When cross-compiling, there is no way to tell whether // is special
15412 # short of a list of hosts. However, the only known hosts to date
15413 # that have a distinct // are Apollo DomainOS (too old to port to),
15414 # Cygwin, and z/OS. If anyone knows of another system for which // has
15415 # special semantics and is distinct from /, please report it to
15416 # <bug-gnulib@gnu.org>.
15418 *-cygwin | i370-ibm-openedition)
15419 gl_cv_double_slash_root=yes ;;
15421 # Be optimistic and assume that / and // are the same when we
15423 gl_cv_double_slash_root='unknown, assuming no' ;;
15426 set x `ls -di / // 2>/dev/null`
15427 if test "$2" = "$4" && wc //dev/null >/dev/null 2>&1; then
15428 gl_cv_double_slash_root=no
15430 gl_cv_double_slash_root=yes
15434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_double_slash_root" >&5
15435 $as_echo "$gl_cv_double_slash_root" >&6; }
15436 if test "$gl_cv_double_slash_root" = yes; then
15438 $as_echo "#define DOUBLE_SLASH_IS_DISTINCT_ROOT 1" >>confdefs.h
15454 GNULIB_EUIDACCESS=0;
15455 GNULIB_FACCESSAT=0;
15458 GNULIB_FDATASYNC=0;
15460 GNULIB_FTRUNCATE=0;
15462 GNULIB_GETDOMAINNAME=0;
15463 GNULIB_GETDTABLESIZE=0;
15464 GNULIB_GETGROUPS=0;
15465 GNULIB_GETHOSTNAME=0;
15467 GNULIB_GETLOGIN_R=0;
15468 GNULIB_GETPAGESIZE=0;
15469 GNULIB_GETUSERSHELL=0;
15470 GNULIB_GROUP_MEMBER=0;
15482 GNULIB_READLINKAT=0;
15484 GNULIB_SETHOSTNAME=0;
15487 GNULIB_SYMLINKAT=0;
15488 GNULIB_TTYNAME_R=0;
15489 GNULIB_UNISTD_H_NONBLOCKING=0;
15490 GNULIB_UNISTD_H_SIGPIPE=0;
15505 HAVE_GETDTABLESIZE=1;
15507 HAVE_GETHOSTNAME=1;
15509 HAVE_GETPAGESIZE=1;
15510 HAVE_GROUP_MEMBER=1;
15520 HAVE_SETHOSTNAME=1;
15526 HAVE_DECL_ENVIRON=1;
15527 HAVE_DECL_FCHDIR=1;
15528 HAVE_DECL_FDATASYNC=1;
15529 HAVE_DECL_GETDOMAINNAME=1;
15530 HAVE_DECL_GETLOGIN_R=1;
15531 HAVE_DECL_GETPAGESIZE=1;
15532 HAVE_DECL_GETUSERSHELL=1;
15533 HAVE_DECL_SETHOSTNAME=1;
15534 HAVE_DECL_TTYNAME_R=1;
15536 HAVE_SYS_PARAM_H=0;
15541 REPLACE_FCHOWNAT=0;
15542 REPLACE_FTRUNCATE=0;
15544 REPLACE_GETDOMAINNAME=0;
15545 REPLACE_GETLOGIN_R=0;
15546 REPLACE_GETGROUPS=0;
15547 REPLACE_GETPAGESIZE=0;
15556 REPLACE_READLINK=0;
15560 REPLACE_TTYNAME_R=0;
15562 REPLACE_UNLINKAT=0;
15565 UNISTD_H_HAVE_WINSOCK2_H=0;
15566 UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS=0;
15573 for ac_header in $gl_header_list
15575 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
15576 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
15577 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
15578 cat >>confdefs.h <<_ACEOF
15579 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
15603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if environ is properly declared" >&5
15604 $as_echo_n "checking if environ is properly declared... " >&6; }
15605 if ${gt_cv_var_environ_declaration+:} false; then :
15606 $as_echo_n "(cached) " >&6
15609 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15610 /* end confdefs.h. */
15612 #include <unistd.h>
15614 /* mingw, BeOS, Haiku declare environ in <stdlib.h>, not in <unistd.h>. */
15615 #include <stdlib.h>
15617 extern struct { int foo; } environ;
15626 if ac_fn_c_try_compile "$LINENO"; then :
15627 gt_cv_var_environ_declaration=no
15629 gt_cv_var_environ_declaration=yes
15631 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_var_environ_declaration" >&5
15635 $as_echo "$gt_cv_var_environ_declaration" >&6; }
15636 if test $gt_cv_var_environ_declaration = yes; then
15638 $as_echo "#define HAVE_ENVIRON_DECL 1" >>confdefs.h
15643 if test $gt_cv_var_environ_declaration != yes; then
15644 HAVE_DECL_ENVIRON=0
15649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the preprocessor supports include_next" >&5
15650 $as_echo_n "checking whether the preprocessor supports include_next... " >&6; }
15651 if ${gl_cv_have_include_next+:} false; then :
15652 $as_echo_n "(cached) " >&6
15654 rm -rf conftestd1a conftestd1b conftestd2
15655 mkdir conftestd1a conftestd1b conftestd2
15656 cat <<EOF > conftestd1a/conftest.h
15657 #define DEFINED_IN_CONFTESTD1
15658 #include_next <conftest.h>
15659 #ifdef DEFINED_IN_CONFTESTD2
15662 #error "include_next doesn't work"
15665 cat <<EOF > conftestd1b/conftest.h
15666 #define DEFINED_IN_CONFTESTD1
15668 #include_next <conftest.h>
15669 #ifdef DEFINED_IN_CONFTESTD2
15672 #error "include_next doesn't work"
15675 cat <<EOF > conftestd2/conftest.h
15676 #ifndef DEFINED_IN_CONFTESTD1
15677 #error "include_next test doesn't work"
15679 #define DEFINED_IN_CONFTESTD2
15681 gl_save_CPPFLAGS="$CPPFLAGS"
15682 CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1b -Iconftestd2"
15683 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15684 /* end confdefs.h. */
15685 #include <conftest.h>
15687 if ac_fn_c_try_compile "$LINENO"; then :
15688 gl_cv_have_include_next=yes
15690 CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1a -Iconftestd2"
15691 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15692 /* end confdefs.h. */
15693 #include <conftest.h>
15695 if ac_fn_c_try_compile "$LINENO"; then :
15696 gl_cv_have_include_next=buggy
15698 gl_cv_have_include_next=no
15700 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15703 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15704 CPPFLAGS="$gl_save_CPPFLAGS"
15705 rm -rf conftestd1a conftestd1b conftestd2
15708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_have_include_next" >&5
15709 $as_echo "$gl_cv_have_include_next" >&6; }
15710 PRAGMA_SYSTEM_HEADER=
15711 if test $gl_cv_have_include_next = yes; then
15712 INCLUDE_NEXT=include_next
15713 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next
15714 if test -n "$GCC"; then
15715 PRAGMA_SYSTEM_HEADER='#pragma GCC system_header'
15718 if test $gl_cv_have_include_next = buggy; then
15719 INCLUDE_NEXT=include
15720 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next
15722 INCLUDE_NEXT=include
15723 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include
15729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system header files limit the line length" >&5
15730 $as_echo_n "checking whether system header files limit the line length... " >&6; }
15731 if ${gl_cv_pragma_columns+:} false; then :
15732 $as_echo_n "(cached) " >&6
15734 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15735 /* end confdefs.h. */
15742 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15743 $EGREP "choke me" >/dev/null 2>&1; then :
15744 gl_cv_pragma_columns=yes
15746 gl_cv_pragma_columns=no
15752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_pragma_columns" >&5
15753 $as_echo "$gl_cv_pragma_columns" >&6; }
15754 if test $gl_cv_pragma_columns = yes; then
15755 PRAGMA_COLUMNS="#pragma COLUMNS 10000"
15763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for complete errno.h" >&5
15764 $as_echo_n "checking for complete errno.h... " >&6; }
15765 if ${gl_cv_header_errno_h_complete+:} false; then :
15766 $as_echo_n "(cached) " >&6
15769 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15770 /* end confdefs.h. */
15773 #if !defined ETXTBSY
15776 #if !defined ENOMSG
15782 #if !defined ENOLINK
15785 #if !defined EPROTO
15788 #if !defined EMULTIHOP
15791 #if !defined EBADMSG
15794 #if !defined EOVERFLOW
15797 #if !defined ENOTSUP
15800 #if !defined ENETRESET
15803 #if !defined ECONNABORTED
15806 #if !defined ESTALE
15809 #if !defined EDQUOT
15812 #if !defined ECANCELED
15815 #if !defined EOWNERDEAD
15818 #if !defined ENOTRECOVERABLE
15821 #if !defined EILSEQ
15826 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15827 $EGREP "booboo" >/dev/null 2>&1; then :
15828 gl_cv_header_errno_h_complete=no
15830 gl_cv_header_errno_h_complete=yes
15836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_complete" >&5
15837 $as_echo "$gl_cv_header_errno_h_complete" >&6; }
15838 if test $gl_cv_header_errno_h_complete = yes; then
15849 if test $gl_cv_have_include_next = yes; then
15850 gl_cv_next_errno_h='<'errno.h'>'
15852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <errno.h>" >&5
15853 $as_echo_n "checking absolute name of <errno.h>... " >&6; }
15854 if ${gl_cv_next_errno_h+:} false; then :
15855 $as_echo_n "(cached) " >&6
15858 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15859 /* end confdefs.h. */
15864 aix*) gl_absname_cpp="$ac_cpp -C" ;;
15865 *) gl_absname_cpp="$ac_cpp" ;;
15870 gl_dirsep_regex='[/\\]'
15873 gl_dirsep_regex='\/'
15876 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
15878 gl_header_literal_regex=`echo 'errno.h' \
15879 | sed -e "$gl_make_literal_regex_sed"`
15880 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
15881 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
15886 gl_cv_next_errno_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
15887 sed -n "$gl_absolute_header_sed"`'"'
15891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_errno_h" >&5
15892 $as_echo "$gl_cv_next_errno_h" >&6; }
15894 NEXT_ERRNO_H=$gl_cv_next_errno_h
15896 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
15897 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
15898 gl_next_as_first_directive='<'errno.h'>'
15900 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
15901 gl_next_as_first_directive=$gl_cv_next_errno_h
15903 NEXT_AS_FIRST_DIRECTIVE_ERRNO_H=$gl_next_as_first_directive
15911 if test -n "$ERRNO_H"; then
15912 GL_GENERATE_ERRNO_H_TRUE=
15913 GL_GENERATE_ERRNO_H_FALSE='#'
15915 GL_GENERATE_ERRNO_H_TRUE='#'
15916 GL_GENERATE_ERRNO_H_FALSE=
15920 if test -n "$ERRNO_H"; then
15921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EMULTIHOP value" >&5
15922 $as_echo_n "checking for EMULTIHOP value... " >&6; }
15923 if ${gl_cv_header_errno_h_EMULTIHOP+:} false; then :
15924 $as_echo_n "(cached) " >&6
15927 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15928 /* end confdefs.h. */
15936 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15937 $EGREP "yes" >/dev/null 2>&1; then :
15938 gl_cv_header_errno_h_EMULTIHOP=yes
15940 gl_cv_header_errno_h_EMULTIHOP=no
15944 if test $gl_cv_header_errno_h_EMULTIHOP = no; then
15945 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15946 /* end confdefs.h. */
15948 #define _XOPEN_SOURCE_EXTENDED 1
15955 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15956 $EGREP "yes" >/dev/null 2>&1; then :
15957 gl_cv_header_errno_h_EMULTIHOP=hidden
15961 if test $gl_cv_header_errno_h_EMULTIHOP = hidden; then
15962 if ac_fn_c_compute_int "$LINENO" "EMULTIHOP" "gl_cv_header_errno_h_EMULTIHOP" "
15963 #define _XOPEN_SOURCE_EXTENDED 1
15965 /* The following two lines are a workaround against an autoconf-2.52 bug. */
15967 #include <stdlib.h>
15976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_EMULTIHOP" >&5
15977 $as_echo "$gl_cv_header_errno_h_EMULTIHOP" >&6; }
15978 case $gl_cv_header_errno_h_EMULTIHOP in
15980 EMULTIHOP_HIDDEN=0; EMULTIHOP_VALUE=
15983 EMULTIHOP_HIDDEN=1; EMULTIHOP_VALUE="$gl_cv_header_errno_h_EMULTIHOP"
15991 if test -n "$ERRNO_H"; then
15992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ENOLINK value" >&5
15993 $as_echo_n "checking for ENOLINK value... " >&6; }
15994 if ${gl_cv_header_errno_h_ENOLINK+:} false; then :
15995 $as_echo_n "(cached) " >&6
15998 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15999 /* end confdefs.h. */
16007 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16008 $EGREP "yes" >/dev/null 2>&1; then :
16009 gl_cv_header_errno_h_ENOLINK=yes
16011 gl_cv_header_errno_h_ENOLINK=no
16015 if test $gl_cv_header_errno_h_ENOLINK = no; then
16016 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16017 /* end confdefs.h. */
16019 #define _XOPEN_SOURCE_EXTENDED 1
16026 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16027 $EGREP "yes" >/dev/null 2>&1; then :
16028 gl_cv_header_errno_h_ENOLINK=hidden
16032 if test $gl_cv_header_errno_h_ENOLINK = hidden; then
16033 if ac_fn_c_compute_int "$LINENO" "ENOLINK" "gl_cv_header_errno_h_ENOLINK" "
16034 #define _XOPEN_SOURCE_EXTENDED 1
16036 /* The following two lines are a workaround against an autoconf-2.52 bug. */
16038 #include <stdlib.h>
16047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_ENOLINK" >&5
16048 $as_echo "$gl_cv_header_errno_h_ENOLINK" >&6; }
16049 case $gl_cv_header_errno_h_ENOLINK in
16051 ENOLINK_HIDDEN=0; ENOLINK_VALUE=
16054 ENOLINK_HIDDEN=1; ENOLINK_VALUE="$gl_cv_header_errno_h_ENOLINK"
16062 if test -n "$ERRNO_H"; then
16063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EOVERFLOW value" >&5
16064 $as_echo_n "checking for EOVERFLOW value... " >&6; }
16065 if ${gl_cv_header_errno_h_EOVERFLOW+:} false; then :
16066 $as_echo_n "(cached) " >&6
16069 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16070 /* end confdefs.h. */
16078 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16079 $EGREP "yes" >/dev/null 2>&1; then :
16080 gl_cv_header_errno_h_EOVERFLOW=yes
16082 gl_cv_header_errno_h_EOVERFLOW=no
16086 if test $gl_cv_header_errno_h_EOVERFLOW = no; then
16087 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16088 /* end confdefs.h. */
16090 #define _XOPEN_SOURCE_EXTENDED 1
16097 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16098 $EGREP "yes" >/dev/null 2>&1; then :
16099 gl_cv_header_errno_h_EOVERFLOW=hidden
16103 if test $gl_cv_header_errno_h_EOVERFLOW = hidden; then
16104 if ac_fn_c_compute_int "$LINENO" "EOVERFLOW" "gl_cv_header_errno_h_EOVERFLOW" "
16105 #define _XOPEN_SOURCE_EXTENDED 1
16107 /* The following two lines are a workaround against an autoconf-2.52 bug. */
16109 #include <stdlib.h>
16118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_EOVERFLOW" >&5
16119 $as_echo "$gl_cv_header_errno_h_EOVERFLOW" >&6; }
16120 case $gl_cv_header_errno_h_EOVERFLOW in
16122 EOVERFLOW_HIDDEN=0; EOVERFLOW_VALUE=
16125 EOVERFLOW_HIDDEN=1; EOVERFLOW_VALUE="$gl_cv_header_errno_h_EOVERFLOW"
16133 ac_fn_c_check_decl "$LINENO" "strerror_r" "ac_cv_have_decl_strerror_r" "$ac_includes_default"
16134 if test "x$ac_cv_have_decl_strerror_r" = xyes; then :
16140 cat >>confdefs.h <<_ACEOF
16141 #define HAVE_DECL_STRERROR_R $ac_have_decl
16144 for ac_func in strerror_r
16146 ac_fn_c_check_func "$LINENO" "strerror_r" "ac_cv_func_strerror_r"
16147 if test "x$ac_cv_func_strerror_r" = xyes; then :
16148 cat >>confdefs.h <<_ACEOF
16149 #define HAVE_STRERROR_R 1
16155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strerror_r returns char *" >&5
16156 $as_echo_n "checking whether strerror_r returns char *... " >&6; }
16157 if ${ac_cv_func_strerror_r_char_p+:} false; then :
16158 $as_echo_n "(cached) " >&6
16161 ac_cv_func_strerror_r_char_p=no
16162 if test $ac_cv_have_decl_strerror_r = yes; then
16163 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16164 /* end confdefs.h. */
16165 $ac_includes_default
16171 char x = *strerror_r (0, buf, sizeof buf);
16172 char *p = strerror_r (0, buf, sizeof buf);
16179 if ac_fn_c_try_compile "$LINENO"; then :
16180 ac_cv_func_strerror_r_char_p=yes
16182 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16184 # strerror_r is not declared. Choose between
16185 # systems that have relatively inaccessible declarations for the
16186 # function. BeOS and DEC UNIX 4.0 fall in this category, but the
16187 # former has a strerror_r that returns char*, while the latter
16188 # has a strerror_r that returns `int'.
16189 # This test should segfault on the DEC system.
16190 if test "$cross_compiling" = yes; then :
16193 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16194 /* end confdefs.h. */
16195 $ac_includes_default
16196 extern char *strerror_r ();
16201 char x = *strerror_r (0, buf, sizeof buf);
16202 return ! isalpha (x);
16207 if ac_fn_c_try_run "$LINENO"; then :
16208 ac_cv_func_strerror_r_char_p=yes
16210 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16211 conftest.$ac_objext conftest.beam conftest.$ac_ext
16217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strerror_r_char_p" >&5
16218 $as_echo "$ac_cv_func_strerror_r_char_p" >&6; }
16219 if test $ac_cv_func_strerror_r_char_p = yes; then
16221 $as_echo "#define STRERROR_R_CHAR_P 1" >>confdefs.h
16226 XGETTEXT_EXTRA_OPTIONS=
16235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit off_t" >&5
16236 $as_echo_n "checking for 64-bit off_t... " >&6; }
16237 if ${gl_cv_type_off_t_64+:} false; then :
16238 $as_echo_n "(cached) " >&6
16240 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16241 /* end confdefs.h. */
16242 #include <sys/types.h>
16243 int verify_off_t_size[sizeof (off_t) >= 8 ? 1 : -1];
16253 if ac_fn_c_try_compile "$LINENO"; then :
16254 gl_cv_type_off_t_64=yes
16256 gl_cv_type_off_t_64=no
16258 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_type_off_t_64" >&5
16262 $as_echo "$gl_cv_type_off_t_64" >&6; }
16263 if test $gl_cv_type_off_t_64 = no; then
16264 WINDOWS_64_BIT_OFF_T=1
16266 WINDOWS_64_BIT_OFF_T=0
16268 WINDOWS_64_BIT_ST_SIZE=1
16271 WINDOWS_64_BIT_OFF_T=0
16272 WINDOWS_64_BIT_ST_SIZE=0
16277 if test "X$prefix" = "XNONE"; then
16278 acl_final_prefix="$ac_default_prefix"
16280 acl_final_prefix="$prefix"
16282 if test "X$exec_prefix" = "XNONE"; then
16283 acl_final_exec_prefix='${prefix}'
16285 acl_final_exec_prefix="$exec_prefix"
16287 acl_save_prefix="$prefix"
16288 prefix="$acl_final_prefix"
16289 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
16290 prefix="$acl_save_prefix"
16294 # Check whether --with-gnu-ld was given.
16295 if test "${with_gnu_ld+set}" = set; then :
16296 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
16301 # Prepare PATH_SEPARATOR.
16302 # The user is always right.
16303 if test "${PATH_SEPARATOR+set}" != set; then
16304 # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
16305 # contains only /bin. Note that ksh looks also at the FPATH variable,
16306 # so we have to set that as well for the test.
16308 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
16309 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
16310 || PATH_SEPARATOR=';'
16315 if test "$GCC" = yes; then
16316 # Check if gcc -print-prog-name=ld gives a path.
16317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
16318 $as_echo_n "checking for ld used by $CC... " >&6; }
16321 # gcc leaves a trailing carriage return which upsets mingw
16322 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
16324 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
16327 # Accept absolute paths.
16329 re_direlt='/[^/][^/]*/\.\./'
16330 # Canonicalize the pathname of ld
16331 ac_prog=`echo "$ac_prog"| sed 's%\\\\%/%g'`
16332 while echo "$ac_prog" | grep "$re_direlt" > /dev/null 2>&1; do
16333 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
16335 test -z "$LD" && LD="$ac_prog"
16338 # If it fails, then pretend we aren't using GCC.
16342 # If it is relative, then search for the first ld in PATH.
16343 with_gnu_ld=unknown
16346 elif test "$with_gnu_ld" = yes; then
16347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
16348 $as_echo_n "checking for GNU ld... " >&6; }
16350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
16351 $as_echo_n "checking for non-GNU ld... " >&6; }
16353 if ${acl_cv_path_LD+:} false; then :
16354 $as_echo_n "(cached) " >&6
16356 if test -z "$LD"; then
16357 acl_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
16358 for ac_dir in $PATH; do
16359 IFS="$acl_save_ifs"
16360 test -z "$ac_dir" && ac_dir=.
16361 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
16362 acl_cv_path_LD="$ac_dir/$ac_prog"
16363 # Check to see if the program is GNU ld. I'd rather use --version,
16364 # but apparently some variants of GNU ld only accept -v.
16365 # Break only if it was the GNU/non-GNU ld that we prefer.
16366 case `"$acl_cv_path_LD" -v 2>&1 </dev/null` in
16367 *GNU* | *'with BFD'*)
16368 test "$with_gnu_ld" != no && break
16371 test "$with_gnu_ld" != yes && break
16376 IFS="$acl_save_ifs"
16378 acl_cv_path_LD="$LD" # Let the user override the test with a path.
16382 LD="$acl_cv_path_LD"
16383 if test -n "$LD"; then
16384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
16385 $as_echo "$LD" >&6; }
16387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16388 $as_echo "no" >&6; }
16390 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
16391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
16392 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
16393 if ${acl_cv_prog_gnu_ld+:} false; then :
16394 $as_echo_n "(cached) " >&6
16396 # I'd rather use --version here, but apparently some GNU lds only accept -v.
16397 case `$LD -v 2>&1 </dev/null` in
16398 *GNU* | *'with BFD'*)
16399 acl_cv_prog_gnu_ld=yes
16402 acl_cv_prog_gnu_ld=no
16406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
16407 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
16408 with_gnu_ld=$acl_cv_prog_gnu_ld
16413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
16414 $as_echo_n "checking for shared library run path origin... " >&6; }
16415 if ${acl_cv_rpath+:} false; then :
16416 $as_echo_n "(cached) " >&6
16419 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
16420 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
16422 rm -f ./conftest.sh
16426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
16427 $as_echo "$acl_cv_rpath" >&6; }
16429 acl_libext="$acl_cv_libext"
16430 acl_shlibext="$acl_cv_shlibext"
16431 acl_libname_spec="$acl_cv_libname_spec"
16432 acl_library_names_spec="$acl_cv_library_names_spec"
16433 acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
16434 acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
16435 acl_hardcode_direct="$acl_cv_hardcode_direct"
16436 acl_hardcode_minus_L="$acl_cv_hardcode_minus_L"
16437 # Check whether --enable-rpath was given.
16438 if test "${enable_rpath+set}" = set; then :
16439 enableval=$enable_rpath; :
16451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit host" >&5
16452 $as_echo_n "checking for 64-bit host... " >&6; }
16453 if ${gl_cv_solaris_64bit+:} false; then :
16454 $as_echo_n "(cached) " >&6
16456 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16457 /* end confdefs.h. */
16464 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16465 $EGREP "sixtyfour bits" >/dev/null 2>&1; then :
16466 gl_cv_solaris_64bit=yes
16468 gl_cv_solaris_64bit=no
16474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_solaris_64bit" >&5
16475 $as_echo "$gl_cv_solaris_64bit" >&6; }
16476 if test $gl_cv_solaris_64bit = yes; then
16477 acl_libdirstem=lib/64
16478 case "$host_cpu" in
16479 sparc*) acl_libdirstem2=lib/sparcv9 ;;
16480 i*86 | x86_64) acl_libdirstem2=lib/amd64 ;;
16485 searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
16486 if test -n "$searchpath"; then
16487 acl_save_IFS="${IFS= }"; IFS=":"
16488 for searchdir in $searchpath; do
16489 if test -d "$searchdir"; then
16490 case "$searchdir" in
16491 */lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
16493 # Better ignore directories of this form. They are misleading.
16495 *) searchdir=`cd "$searchdir" && pwd`
16496 case "$searchdir" in
16497 */lib64 ) acl_libdirstem=lib64 ;;
16502 IFS="$acl_save_IFS"
16506 test -n "$acl_libdirstem2" || acl_libdirstem2="$acl_libdirstem"
16510 gl_threads_api=none
16515 if test "$gl_use_threads" != no; then
16516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether imported symbols can be declared weak" >&5
16517 $as_echo_n "checking whether imported symbols can be declared weak... " >&6; }
16518 if ${gl_cv_have_weak+:} false; then :
16519 $as_echo_n "(cached) " >&6
16522 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16523 /* end confdefs.h. */
16524 extern void xyzzy ();
16534 if ac_fn_c_try_link "$LINENO"; then :
16535 gl_cv_have_weak=maybe
16537 rm -f core conftest.err conftest.$ac_objext \
16538 conftest$ac_exeext conftest.$ac_ext
16539 if test $gl_cv_have_weak = maybe; then
16540 if test "$cross_compiling" = yes; then :
16541 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16542 /* end confdefs.h. */
16544 Extensible Linking Format
16548 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16549 $EGREP "Extensible Linking Format" >/dev/null 2>&1; then :
16550 gl_cv_have_weak="guessing yes"
16552 gl_cv_have_weak="guessing no"
16558 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16559 /* end confdefs.h. */
16565 return (fputs == NULL);
16568 if ac_fn_c_try_run "$LINENO"; then :
16569 gl_cv_have_weak=yes
16573 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16574 conftest.$ac_objext conftest.beam conftest.$ac_ext
16580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_have_weak" >&5
16581 $as_echo "$gl_cv_have_weak" >&6; }
16582 if test "$gl_use_threads" = yes || test "$gl_use_threads" = posix; then
16583 # On OSF/1, the compiler needs the flag -pthread or -D_REENTRANT so that
16584 # it groks <pthread.h>. It's added above, in gl_THREADLIB_EARLY_BODY.
16585 ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
16586 if test "x$ac_cv_header_pthread_h" = xyes; then :
16587 gl_have_pthread_h=yes
16589 gl_have_pthread_h=no
16593 if test "$gl_have_pthread_h" = yes; then
16594 # Other possible tests:
16595 # -lpthreads (FSU threads, PCthreads)
16598 # Test whether both pthread_mutex_lock and pthread_mutexattr_init exist
16599 # in libc. IRIX 6.5 has the first one in both libc and libpthread, but
16600 # the second one only in libpthread, and lock.c needs it.
16601 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16602 /* end confdefs.h. */
16603 #include <pthread.h>
16607 pthread_mutex_lock((pthread_mutex_t*)0);
16608 pthread_mutexattr_init((pthread_mutexattr_t*)0);
16613 if ac_fn_c_try_link "$LINENO"; then :
16614 gl_have_pthread=yes
16616 rm -f core conftest.err conftest.$ac_objext \
16617 conftest$ac_exeext conftest.$ac_ext
16618 # Test for libpthread by looking for pthread_kill. (Not pthread_self,
16619 # since it is defined as a macro on OSF/1.)
16620 if test -n "$gl_have_pthread"; then
16621 # The program links fine without libpthread. But it may actually
16622 # need to link with libpthread in order to create multiple threads.
16623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lpthread" >&5
16624 $as_echo_n "checking for pthread_kill in -lpthread... " >&6; }
16625 if ${ac_cv_lib_pthread_pthread_kill+:} false; then :
16626 $as_echo_n "(cached) " >&6
16628 ac_check_lib_save_LIBS=$LIBS
16629 LIBS="-lpthread $LIBS"
16630 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16631 /* end confdefs.h. */
16633 /* Override any GCC internal prototype to avoid an error.
16634 Use char because int might match the return type of a GCC
16635 builtin and then its argument prototype would still apply. */
16639 char pthread_kill ();
16643 return pthread_kill ();
16648 if ac_fn_c_try_link "$LINENO"; then :
16649 ac_cv_lib_pthread_pthread_kill=yes
16651 ac_cv_lib_pthread_pthread_kill=no
16653 rm -f core conftest.err conftest.$ac_objext \
16654 conftest$ac_exeext conftest.$ac_ext
16655 LIBS=$ac_check_lib_save_LIBS
16657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_kill" >&5
16658 $as_echo "$ac_cv_lib_pthread_pthread_kill" >&6; }
16659 if test "x$ac_cv_lib_pthread_pthread_kill" = xyes; then :
16660 LIBMULTITHREAD=-lpthread LTLIBMULTITHREAD=-lpthread
16661 # On Solaris and HP-UX, most pthread functions exist also in libc.
16662 # Therefore pthread_in_use() needs to actually try to create a
16663 # thread: pthread_create from libc will fail, whereas
16664 # pthread_create will actually create a thread.
16668 $as_echo "#define PTHREAD_IN_USE_DETECTION_HARD 1" >>confdefs.h
16675 # Some library is needed. Try libpthread and libc_r.
16676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lpthread" >&5
16677 $as_echo_n "checking for pthread_kill in -lpthread... " >&6; }
16678 if ${ac_cv_lib_pthread_pthread_kill+:} false; then :
16679 $as_echo_n "(cached) " >&6
16681 ac_check_lib_save_LIBS=$LIBS
16682 LIBS="-lpthread $LIBS"
16683 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16684 /* end confdefs.h. */
16686 /* Override any GCC internal prototype to avoid an error.
16687 Use char because int might match the return type of a GCC
16688 builtin and then its argument prototype would still apply. */
16692 char pthread_kill ();
16696 return pthread_kill ();
16701 if ac_fn_c_try_link "$LINENO"; then :
16702 ac_cv_lib_pthread_pthread_kill=yes
16704 ac_cv_lib_pthread_pthread_kill=no
16706 rm -f core conftest.err conftest.$ac_objext \
16707 conftest$ac_exeext conftest.$ac_ext
16708 LIBS=$ac_check_lib_save_LIBS
16710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_kill" >&5
16711 $as_echo "$ac_cv_lib_pthread_pthread_kill" >&6; }
16712 if test "x$ac_cv_lib_pthread_pthread_kill" = xyes; then :
16713 gl_have_pthread=yes
16714 LIBTHREAD=-lpthread LTLIBTHREAD=-lpthread
16715 LIBMULTITHREAD=-lpthread LTLIBMULTITHREAD=-lpthread
16718 if test -z "$gl_have_pthread"; then
16720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lc_r" >&5
16721 $as_echo_n "checking for pthread_kill in -lc_r... " >&6; }
16722 if ${ac_cv_lib_c_r_pthread_kill+:} false; then :
16723 $as_echo_n "(cached) " >&6
16725 ac_check_lib_save_LIBS=$LIBS
16727 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16728 /* end confdefs.h. */
16730 /* Override any GCC internal prototype to avoid an error.
16731 Use char because int might match the return type of a GCC
16732 builtin and then its argument prototype would still apply. */
16736 char pthread_kill ();
16740 return pthread_kill ();
16745 if ac_fn_c_try_link "$LINENO"; then :
16746 ac_cv_lib_c_r_pthread_kill=yes
16748 ac_cv_lib_c_r_pthread_kill=no
16750 rm -f core conftest.err conftest.$ac_objext \
16751 conftest$ac_exeext conftest.$ac_ext
16752 LIBS=$ac_check_lib_save_LIBS
16754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_r_pthread_kill" >&5
16755 $as_echo "$ac_cv_lib_c_r_pthread_kill" >&6; }
16756 if test "x$ac_cv_lib_c_r_pthread_kill" = xyes; then :
16757 gl_have_pthread=yes
16758 LIBTHREAD=-lc_r LTLIBTHREAD=-lc_r
16759 LIBMULTITHREAD=-lc_r LTLIBMULTITHREAD=-lc_r
16764 if test -n "$gl_have_pthread"; then
16765 gl_threads_api=posix
16767 $as_echo "#define USE_POSIX_THREADS 1" >>confdefs.h
16769 if test -n "$LIBMULTITHREAD" || test -n "$LTLIBMULTITHREAD"; then
16770 if case "$gl_cv_have_weak" in *yes) true;; *) false;; esac; then
16772 $as_echo "#define USE_POSIX_THREADS_WEAK 1" >>confdefs.h
16781 if test -z "$gl_have_pthread"; then
16782 if test "$gl_use_threads" = yes || test "$gl_use_threads" = solaris; then
16783 gl_have_solaristhread=
16784 gl_save_LIBS="$LIBS"
16785 LIBS="$LIBS -lthread"
16786 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16787 /* end confdefs.h. */
16789 #include <thread.h>
16800 if ac_fn_c_try_link "$LINENO"; then :
16801 gl_have_solaristhread=yes
16803 rm -f core conftest.err conftest.$ac_objext \
16804 conftest$ac_exeext conftest.$ac_ext
16805 LIBS="$gl_save_LIBS"
16806 if test -n "$gl_have_solaristhread"; then
16807 gl_threads_api=solaris
16809 LTLIBTHREAD=-lthread
16810 LIBMULTITHREAD="$LIBTHREAD"
16811 LTLIBMULTITHREAD="$LTLIBTHREAD"
16813 $as_echo "#define USE_SOLARIS_THREADS 1" >>confdefs.h
16815 if case "$gl_cv_have_weak" in *yes) true;; *) false;; esac; then
16817 $as_echo "#define USE_SOLARIS_THREADS_WEAK 1" >>confdefs.h
16825 if test "$gl_use_threads" = pth; then
16826 gl_save_CPPFLAGS="$CPPFLAGS"
16832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libpth" >&5
16833 $as_echo_n "checking how to link with libpth... " >&6; }
16834 if ${ac_cv_libpth_libs+:} false; then :
16835 $as_echo_n "(cached) " >&6
16847 acl_save_prefix="$prefix"
16848 prefix="$acl_final_prefix"
16849 acl_save_exec_prefix="$exec_prefix"
16850 exec_prefix="$acl_final_exec_prefix"
16852 eval additional_includedir=\"$includedir\"
16853 eval additional_libdir=\"$libdir\"
16855 exec_prefix="$acl_save_exec_prefix"
16856 prefix="$acl_save_prefix"
16859 # Check whether --with-libpth-prefix was given.
16860 if test "${with_libpth_prefix+set}" = set; then :
16861 withval=$with_libpth_prefix;
16862 if test "X$withval" = "Xno"; then
16865 if test "X$withval" = "X"; then
16867 acl_save_prefix="$prefix"
16868 prefix="$acl_final_prefix"
16869 acl_save_exec_prefix="$exec_prefix"
16870 exec_prefix="$acl_final_exec_prefix"
16872 eval additional_includedir=\"$includedir\"
16873 eval additional_libdir=\"$libdir\"
16875 exec_prefix="$acl_save_exec_prefix"
16876 prefix="$acl_save_prefix"
16879 additional_includedir="$withval/include"
16880 additional_libdir="$withval/$acl_libdirstem"
16881 if test "$acl_libdirstem2" != "$acl_libdirstem" \
16882 && ! test -d "$withval/$acl_libdirstem"; then
16883 additional_libdir="$withval/$acl_libdirstem2"
16897 names_already_handled=
16898 names_next_round='pth '
16899 while test -n "$names_next_round"; do
16900 names_this_round="$names_next_round"
16902 for name in $names_this_round; do
16904 for n in $names_already_handled; do
16905 if test "$n" = "$name"; then
16906 already_handled=yes
16910 if test -z "$already_handled"; then
16911 names_already_handled="$names_already_handled $name"
16912 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'`
16913 eval value=\"\$HAVE_LIB$uppername\"
16914 if test -n "$value"; then
16915 if test "$value" = yes; then
16916 eval value=\"\$LIB$uppername\"
16917 test -z "$value" || LIBPTH="${LIBPTH}${LIBPTH:+ }$value"
16918 eval value=\"\$LTLIB$uppername\"
16919 test -z "$value" || LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }$value"
16928 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
16929 if test -n "$acl_shlibext"; then
16930 shrext=".$acl_shlibext" # typically: shrext=.so
16934 if test $use_additional = yes; then
16935 dir="$additional_libdir"
16936 if test -n "$acl_shlibext"; then
16937 if test -f "$dir/$libname$shrext"; then
16939 found_so="$dir/$libname$shrext"
16941 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
16942 ver=`(cd "$dir" && \
16943 for f in "$libname$shrext".*; do echo "$f"; done \
16944 | sed -e "s,^$libname$shrext\\\\.,," \
16945 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
16946 | sed 1q ) 2>/dev/null`
16947 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
16949 found_so="$dir/$libname$shrext.$ver"
16952 eval library_names=\"$acl_library_names_spec\"
16953 for f in $library_names; do
16954 if test -f "$dir/$f"; then
16963 if test "X$found_dir" = "X"; then
16964 if test -f "$dir/$libname.$acl_libext"; then
16966 found_a="$dir/$libname.$acl_libext"
16969 if test "X$found_dir" != "X"; then
16970 if test -f "$dir/$libname.la"; then
16971 found_la="$dir/$libname.la"
16975 if test "X$found_dir" = "X"; then
16976 for x in $LDFLAGS $LTLIBPTH; do
16978 acl_save_prefix="$prefix"
16979 prefix="$acl_final_prefix"
16980 acl_save_exec_prefix="$exec_prefix"
16981 exec_prefix="$acl_final_exec_prefix"
16983 exec_prefix="$acl_save_exec_prefix"
16984 prefix="$acl_save_prefix"
16988 dir=`echo "X$x" | sed -e 's/^X-L//'`
16989 if test -n "$acl_shlibext"; then
16990 if test -f "$dir/$libname$shrext"; then
16992 found_so="$dir/$libname$shrext"
16994 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
16995 ver=`(cd "$dir" && \
16996 for f in "$libname$shrext".*; do echo "$f"; done \
16997 | sed -e "s,^$libname$shrext\\\\.,," \
16998 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
16999 | sed 1q ) 2>/dev/null`
17000 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
17002 found_so="$dir/$libname$shrext.$ver"
17005 eval library_names=\"$acl_library_names_spec\"
17006 for f in $library_names; do
17007 if test -f "$dir/$f"; then
17016 if test "X$found_dir" = "X"; then
17017 if test -f "$dir/$libname.$acl_libext"; then
17019 found_a="$dir/$libname.$acl_libext"
17022 if test "X$found_dir" != "X"; then
17023 if test -f "$dir/$libname.la"; then
17024 found_la="$dir/$libname.la"
17029 if test "X$found_dir" != "X"; then
17034 if test "X$found_dir" != "X"; then
17035 LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-L$found_dir -l$name"
17036 if test "X$found_so" != "X"; then
17037 if test "$enable_rpath" = no \
17038 || test "X$found_dir" = "X/usr/$acl_libdirstem" \
17039 || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
17040 LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
17043 for x in $ltrpathdirs; do
17044 if test "X$x" = "X$found_dir"; then
17049 if test -z "$haveit"; then
17050 ltrpathdirs="$ltrpathdirs $found_dir"
17052 if test "$acl_hardcode_direct" = yes; then
17053 LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
17055 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
17056 LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
17058 for x in $rpathdirs; do
17059 if test "X$x" = "X$found_dir"; then
17064 if test -z "$haveit"; then
17065 rpathdirs="$rpathdirs $found_dir"
17069 for x in $LDFLAGS $LIBPTH; do
17071 acl_save_prefix="$prefix"
17072 prefix="$acl_final_prefix"
17073 acl_save_exec_prefix="$exec_prefix"
17074 exec_prefix="$acl_final_exec_prefix"
17076 exec_prefix="$acl_save_exec_prefix"
17077 prefix="$acl_save_prefix"
17079 if test "X$x" = "X-L$found_dir"; then
17084 if test -z "$haveit"; then
17085 LIBPTH="${LIBPTH}${LIBPTH:+ }-L$found_dir"
17087 if test "$acl_hardcode_minus_L" != no; then
17088 LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
17090 LIBPTH="${LIBPTH}${LIBPTH:+ }-l$name"
17096 if test "X$found_a" != "X"; then
17097 LIBPTH="${LIBPTH}${LIBPTH:+ }$found_a"
17099 LIBPTH="${LIBPTH}${LIBPTH:+ }-L$found_dir -l$name"
17102 additional_includedir=
17103 case "$found_dir" in
17104 */$acl_libdirstem | */$acl_libdirstem/)
17105 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
17106 if test "$name" = 'pth'; then
17107 LIBPTH_PREFIX="$basedir"
17109 additional_includedir="$basedir/include"
17111 */$acl_libdirstem2 | */$acl_libdirstem2/)
17112 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
17113 if test "$name" = 'pth'; then
17114 LIBPTH_PREFIX="$basedir"
17116 additional_includedir="$basedir/include"
17119 if test "X$additional_includedir" != "X"; then
17120 if test "X$additional_includedir" != "X/usr/include"; then
17122 if test "X$additional_includedir" = "X/usr/local/include"; then
17123 if test -n "$GCC"; then
17125 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
17129 if test -z "$haveit"; then
17130 for x in $CPPFLAGS $INCPTH; do
17132 acl_save_prefix="$prefix"
17133 prefix="$acl_final_prefix"
17134 acl_save_exec_prefix="$exec_prefix"
17135 exec_prefix="$acl_final_exec_prefix"
17137 exec_prefix="$acl_save_exec_prefix"
17138 prefix="$acl_save_prefix"
17140 if test "X$x" = "X-I$additional_includedir"; then
17145 if test -z "$haveit"; then
17146 if test -d "$additional_includedir"; then
17147 INCPTH="${INCPTH}${INCPTH:+ }-I$additional_includedir"
17153 if test -n "$found_la"; then
17154 save_libdir="$libdir"
17155 case "$found_la" in
17156 */* | *\\*) . "$found_la" ;;
17157 *) . "./$found_la" ;;
17159 libdir="$save_libdir"
17160 for dep in $dependency_libs; do
17163 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
17164 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
17165 && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
17167 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
17168 || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
17169 if test -n "$GCC"; then
17171 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
17175 if test -z "$haveit"; then
17177 for x in $LDFLAGS $LIBPTH; do
17179 acl_save_prefix="$prefix"
17180 prefix="$acl_final_prefix"
17181 acl_save_exec_prefix="$exec_prefix"
17182 exec_prefix="$acl_final_exec_prefix"
17184 exec_prefix="$acl_save_exec_prefix"
17185 prefix="$acl_save_prefix"
17187 if test "X$x" = "X-L$additional_libdir"; then
17192 if test -z "$haveit"; then
17193 if test -d "$additional_libdir"; then
17194 LIBPTH="${LIBPTH}${LIBPTH:+ }-L$additional_libdir"
17198 for x in $LDFLAGS $LTLIBPTH; do
17200 acl_save_prefix="$prefix"
17201 prefix="$acl_final_prefix"
17202 acl_save_exec_prefix="$exec_prefix"
17203 exec_prefix="$acl_final_exec_prefix"
17205 exec_prefix="$acl_save_exec_prefix"
17206 prefix="$acl_save_prefix"
17208 if test "X$x" = "X-L$additional_libdir"; then
17213 if test -z "$haveit"; then
17214 if test -d "$additional_libdir"; then
17215 LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-L$additional_libdir"
17222 dir=`echo "X$dep" | sed -e 's/^X-R//'`
17223 if test "$enable_rpath" != no; then
17225 for x in $rpathdirs; do
17226 if test "X$x" = "X$dir"; then
17231 if test -z "$haveit"; then
17232 rpathdirs="$rpathdirs $dir"
17235 for x in $ltrpathdirs; do
17236 if test "X$x" = "X$dir"; then
17241 if test -z "$haveit"; then
17242 ltrpathdirs="$ltrpathdirs $dir"
17247 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
17250 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
17253 LIBPTH="${LIBPTH}${LIBPTH:+ }$dep"
17254 LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }$dep"
17260 LIBPTH="${LIBPTH}${LIBPTH:+ }-l$name"
17261 LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-l$name"
17267 if test "X$rpathdirs" != "X"; then
17268 if test -n "$acl_hardcode_libdir_separator"; then
17270 for found_dir in $rpathdirs; do
17271 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
17273 acl_save_libdir="$libdir"
17275 eval flag=\"$acl_hardcode_libdir_flag_spec\"
17276 libdir="$acl_save_libdir"
17277 LIBPTH="${LIBPTH}${LIBPTH:+ }$flag"
17279 for found_dir in $rpathdirs; do
17280 acl_save_libdir="$libdir"
17281 libdir="$found_dir"
17282 eval flag=\"$acl_hardcode_libdir_flag_spec\"
17283 libdir="$acl_save_libdir"
17284 LIBPTH="${LIBPTH}${LIBPTH:+ }$flag"
17288 if test "X$ltrpathdirs" != "X"; then
17289 for found_dir in $ltrpathdirs; do
17290 LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-R$found_dir"
17299 ac_cv_libpth_libs="$LIBPTH"
17300 ac_cv_libpth_ltlibs="$LTLIBPTH"
17301 ac_cv_libpth_cppflags="$INCPTH"
17302 ac_cv_libpth_prefix="$LIBPTH_PREFIX"
17305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libpth_libs" >&5
17306 $as_echo "$ac_cv_libpth_libs" >&6; }
17307 LIBPTH="$ac_cv_libpth_libs"
17308 LTLIBPTH="$ac_cv_libpth_ltlibs"
17309 INCPTH="$ac_cv_libpth_cppflags"
17310 LIBPTH_PREFIX="$ac_cv_libpth_prefix"
17312 for element in $INCPTH; do
17314 for x in $CPPFLAGS; do
17316 acl_save_prefix="$prefix"
17317 prefix="$acl_final_prefix"
17318 acl_save_exec_prefix="$exec_prefix"
17319 exec_prefix="$acl_final_exec_prefix"
17321 exec_prefix="$acl_save_exec_prefix"
17322 prefix="$acl_save_prefix"
17324 if test "X$x" = "X$element"; then
17329 if test -z "$haveit"; then
17330 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
17342 gl_save_LIBS="$LIBS"
17343 LIBS="$LIBS $LIBPTH"
17344 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17345 /* end confdefs.h. */
17355 if ac_fn_c_try_link "$LINENO"; then :
17358 rm -f core conftest.err conftest.$ac_objext \
17359 conftest$ac_exeext conftest.$ac_ext
17360 LIBS="$gl_save_LIBS"
17361 if test -n "$gl_have_pth"; then
17363 LIBTHREAD="$LIBPTH"
17364 LTLIBTHREAD="$LTLIBPTH"
17365 LIBMULTITHREAD="$LIBTHREAD"
17366 LTLIBMULTITHREAD="$LTLIBTHREAD"
17368 $as_echo "#define USE_PTH_THREADS 1" >>confdefs.h
17370 if test -n "$LIBMULTITHREAD" || test -n "$LTLIBMULTITHREAD"; then
17371 if case "$gl_cv_have_weak" in *yes) true;; *) false;; esac; then
17373 $as_echo "#define USE_PTH_THREADS_WEAK 1" >>confdefs.h
17380 CPPFLAGS="$gl_save_CPPFLAGS"
17383 if test -z "$gl_have_pthread"; then
17384 case "$gl_use_threads" in
17385 yes | windows | win32) # The 'win32' is for backward compatibility.
17386 if { case "$host_os" in
17391 gl_threads_api=windows
17393 $as_echo "#define USE_WINDOWS_THREADS 1" >>confdefs.h
17400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for multithread API to use" >&5
17401 $as_echo_n "checking for multithread API to use... " >&6; }
17402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_threads_api" >&5
17403 $as_echo "$gl_threads_api" >&6; }
17416 GNULIB_CALLOC_POSIX=0;
17417 GNULIB_CANONICALIZE_FILE_NAME=0;
17418 GNULIB_GETLOADAVG=0;
17419 GNULIB_GETSUBOPT=0;
17421 GNULIB_MALLOC_POSIX=0;
17425 GNULIB_MKOSTEMPS=0;
17428 GNULIB_POSIX_OPENPT=0;
17430 GNULIB_PTSNAME_R=0;
17434 GNULIB_REALLOC_POSIX=0;
17437 GNULIB_SECURE_GETENV=0;
17442 GNULIB_SYSTEM_POSIX=0;
17448 HAVE_CANONICALIZE_FILE_NAME=1;
17449 HAVE_DECL_GETLOADAVG=1;
17457 HAVE_POSIX_OPENPT=1;
17465 HAVE_SECURE_GETENV=1;
17467 HAVE_DECL_SETENV=1;
17471 HAVE_STRUCT_RANDOM_DATA=1;
17472 HAVE_SYS_LOADAVG_H=0;
17474 HAVE_DECL_UNSETENV=1;
17476 REPLACE_CANONICALIZE_FILE_NAME=0;
17481 REPLACE_PTSNAME_R=0;
17483 REPLACE_RANDOM_R=0;
17485 REPLACE_REALPATH=0;
17488 REPLACE_UNSETENV=0;
17492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether malloc, realloc, calloc are POSIX compliant" >&5
17493 $as_echo_n "checking whether malloc, realloc, calloc are POSIX compliant... " >&6; }
17494 if ${gl_cv_func_malloc_posix+:} false; then :
17495 $as_echo_n "(cached) " >&6
17498 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17499 /* end confdefs.h. */
17504 #if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
17512 if ac_fn_c_try_compile "$LINENO"; then :
17513 gl_cv_func_malloc_posix=yes
17515 gl_cv_func_malloc_posix=no
17517 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_malloc_posix" >&5
17521 $as_echo "$gl_cv_func_malloc_posix" >&6; }
17525 for ac_header in stdlib.h
17527 ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
17528 if test "x$ac_cv_header_stdlib_h" = xyes; then :
17529 cat >>confdefs.h <<_ACEOF
17530 #define HAVE_STDLIB_H 1
17537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible malloc" >&5
17538 $as_echo_n "checking for GNU libc compatible malloc... " >&6; }
17539 if ${ac_cv_func_malloc_0_nonnull+:} false; then :
17540 $as_echo_n "(cached) " >&6
17542 if test "$cross_compiling" = yes; then :
17544 # Guess yes on platforms where we know the result.
17545 *-gnu* | freebsd* | netbsd* | openbsd* \
17546 | hpux* | solaris* | cygwin* | mingw*)
17547 ac_cv_func_malloc_0_nonnull=yes ;;
17548 # If we don't know, assume the worst.
17549 *) ac_cv_func_malloc_0_nonnull=no ;;
17553 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17554 /* end confdefs.h. */
17555 #if defined STDC_HEADERS || defined HAVE_STDLIB_H
17556 # include <stdlib.h>
17564 return ! malloc (0);
17570 if ac_fn_c_try_run "$LINENO"; then :
17571 ac_cv_func_malloc_0_nonnull=yes
17573 ac_cv_func_malloc_0_nonnull=no
17575 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17576 conftest.$ac_objext conftest.beam conftest.$ac_ext
17581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_malloc_0_nonnull" >&5
17582 $as_echo "$ac_cv_func_malloc_0_nonnull" >&6; }
17583 if test $ac_cv_func_malloc_0_nonnull = yes; then :
17584 gl_cv_func_malloc_0_nonnull=1
17586 gl_cv_func_malloc_0_nonnull=0
17590 cat >>confdefs.h <<_ACEOF
17591 #define MALLOC_0_IS_NONNULL $gl_cv_func_malloc_0_nonnull
17596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
17597 $as_echo_n "checking for unsigned long long int... " >&6; }
17598 if ${ac_cv_type_unsigned_long_long_int+:} false; then :
17599 $as_echo_n "(cached) " >&6
17601 ac_cv_type_unsigned_long_long_int=yes
17602 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
17603 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17604 /* end confdefs.h. */
17606 /* For now, do not test the preprocessor; as of 2007 there are too many
17607 implementations with broken preprocessors. Perhaps this can
17608 be revisited in 2012. In the meantime, code should not expect
17609 #if to work with literals wider than 32 bits. */
17610 /* Test literals. */
17611 long long int ll = 9223372036854775807ll;
17612 long long int nll = -9223372036854775807LL;
17613 unsigned long long int ull = 18446744073709551615ULL;
17614 /* Test constant expressions. */
17615 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
17617 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
17623 /* Test availability of runtime routines for shift and division. */
17624 long long int llmax = 9223372036854775807ll;
17625 unsigned long long int ullmax = 18446744073709551615ull;
17626 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
17627 | (llmax / ll) | (llmax % ll)
17628 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
17629 | (ullmax / ull) | (ullmax % ull));
17635 if ac_fn_c_try_link "$LINENO"; then :
17638 ac_cv_type_unsigned_long_long_int=no
17640 rm -f core conftest.err conftest.$ac_objext \
17641 conftest$ac_exeext conftest.$ac_ext
17644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
17645 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
17646 if test $ac_cv_type_unsigned_long_long_int = yes; then
17648 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
17654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
17655 $as_echo_n "checking for long long int... " >&6; }
17656 if ${ac_cv_type_long_long_int+:} false; then :
17657 $as_echo_n "(cached) " >&6
17659 ac_cv_type_long_long_int=yes
17660 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
17661 ac_cv_type_long_long_int=$ac_cv_type_unsigned_long_long_int
17662 if test $ac_cv_type_long_long_int = yes; then
17663 if test "$cross_compiling" = yes; then :
17666 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17667 /* end confdefs.h. */
17668 #include <limits.h>
17671 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
17672 # define LLONG_MAX (HALF - 1 + HALF)
17677 long long int n = 1;
17681 long long int m = n << i;
17684 if (LLONG_MAX / 2 < m)
17692 if ac_fn_c_try_run "$LINENO"; then :
17695 ac_cv_type_long_long_int=no
17697 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17698 conftest.$ac_objext conftest.beam conftest.$ac_ext
17704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
17705 $as_echo "$ac_cv_type_long_long_int" >&6; }
17706 if test $ac_cv_type_long_long_int = yes; then
17708 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
17721 for ac_func in $gl_func_list
17723 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
17724 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
17725 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
17726 cat >>confdefs.h <<_ACEOF
17727 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
17744 GNULIB_RAWMEMCHR=0;
17747 GNULIB_STRCHRNUL=0;
17755 GNULIB_STRCASESTR=0;
17762 GNULIB_MBSCASECMP=0;
17763 GNULIB_MBSNCASECMP=0;
17764 GNULIB_MBSPCASECMP=0;
17765 GNULIB_MBSCASESTR=0;
17772 GNULIB_STRERROR_R=0;
17773 GNULIB_STRSIGNAL=0;
17774 GNULIB_STRVERSCMP=0;
17779 HAVE_DECL_MEMMEM=1;
17781 HAVE_DECL_MEMRCHR=1;
17786 HAVE_DECL_STRDUP=1;
17787 HAVE_DECL_STRNDUP=1;
17788 HAVE_DECL_STRNLEN=1;
17792 HAVE_DECL_STRTOK_R=1;
17793 HAVE_DECL_STRERROR_R=1;
17794 HAVE_DECL_STRSIGNAL=1;
17801 REPLACE_STRCASESTR=0;
17802 REPLACE_STRCHRNUL=0;
17803 REPLACE_STRERROR=0;
17804 REPLACE_STRERROR_R=0;
17808 REPLACE_STRSIGNAL=0;
17809 REPLACE_STRTOK_R=0;
17810 UNDEFINE_STRTOK_R=0;
17816 # Check for mmap(). Don't use AC_FUNC_MMAP, because it checks too much: it
17817 # fails on HP-UX 11, because MAP_FIXED mappings do not work. But this is
17818 # irrelevant for anonymous mappings.
17819 ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
17820 if test "x$ac_cv_func_mmap" = xyes; then :
17827 # Try to allow MAP_ANONYMOUS.
17828 gl_have_mmap_anonymous=no
17829 if test $gl_have_mmap = yes; then
17830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANONYMOUS" >&5
17831 $as_echo_n "checking for MAP_ANONYMOUS... " >&6; }
17832 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17833 /* end confdefs.h. */
17835 #include <sys/mman.h>
17836 #ifdef MAP_ANONYMOUS
17837 I cannot identify this map
17841 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17842 $EGREP "I cannot identify this map" >/dev/null 2>&1; then :
17843 gl_have_mmap_anonymous=yes
17847 if test $gl_have_mmap_anonymous != yes; then
17848 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17849 /* end confdefs.h. */
17851 #include <sys/mman.h>
17853 I cannot identify this map
17857 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17858 $EGREP "I cannot identify this map" >/dev/null 2>&1; then :
17860 $as_echo "#define MAP_ANONYMOUS MAP_ANON" >>confdefs.h
17862 gl_have_mmap_anonymous=yes
17867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_have_mmap_anonymous" >&5
17868 $as_echo "$gl_have_mmap_anonymous" >&6; }
17869 if test $gl_have_mmap_anonymous = yes; then
17871 $as_echo "#define HAVE_MAP_ANONYMOUS 1" >>confdefs.h
17893 if test $HAVE_MEMCHR = 1; then
17894 # Detect platform-specific bugs in some versions of glibc:
17895 # memchr should not dereference anything with length 0
17896 # http://bugzilla.redhat.com/499689
17897 # memchr should not dereference overestimated length after a match
17898 # http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=521737
17899 # http://sourceware.org/bugzilla/show_bug.cgi?id=10162
17900 # Assume that memchr works on platforms that lack mprotect.
17901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether memchr works" >&5
17902 $as_echo_n "checking whether memchr works... " >&6; }
17903 if ${gl_cv_func_memchr_works+:} false; then :
17904 $as_echo_n "(cached) " >&6
17906 if test "$cross_compiling" = yes; then :
17907 gl_cv_func_memchr_works="guessing no"
17909 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17910 /* end confdefs.h. */
17912 #include <string.h>
17913 #if HAVE_SYS_MMAN_H
17914 # include <fcntl.h>
17915 # include <unistd.h>
17916 # include <sys/types.h>
17917 # include <sys/mman.h>
17919 # define MAP_FILE 0
17928 char *fence = NULL;
17929 #if HAVE_SYS_MMAN_H && HAVE_MPROTECT
17930 # if HAVE_MAP_ANONYMOUS
17931 const int flags = MAP_ANONYMOUS | MAP_PRIVATE;
17933 # else /* !HAVE_MAP_ANONYMOUS */
17934 const int flags = MAP_FILE | MAP_PRIVATE;
17935 int fd = open ("/dev/zero", O_RDONLY, 0666);
17939 int pagesize = getpagesize ();
17941 (char *) mmap (NULL, 2 * pagesize, PROT_READ | PROT_WRITE,
17943 if (two_pages != (char *)(-1)
17944 && mprotect (two_pages + pagesize, pagesize, PROT_NONE) == 0)
17945 fence = two_pages + pagesize;
17950 if (memchr (fence, 0, 0))
17952 strcpy (fence - 9, "12345678");
17953 if (memchr (fence - 9, 0, 79) != fence - 1)
17955 if (memchr (fence - 1, 0, 3) != fence - 1)
17964 if ac_fn_c_try_run "$LINENO"; then :
17965 gl_cv_func_memchr_works=yes
17967 gl_cv_func_memchr_works=no
17969 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17970 conftest.$ac_objext conftest.beam conftest.$ac_ext
17974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_memchr_works" >&5
17975 $as_echo "$gl_cv_func_memchr_works" >&6; }
17976 if test "$gl_cv_func_memchr_works" != yes; then
17987 gl_cv_c_multiarch=no
17988 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17989 /* end confdefs.h. */
17990 #ifndef __APPLE_CC__
17991 not a universal capable compiler
17996 if ac_fn_c_try_compile "$LINENO"; then :
18000 for word in ${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS}; do
18001 if test -n "$prev"; then
18003 i?86 | x86_64 | ppc | ppc64)
18004 if test -z "$arch" || test "$arch" = "$word"; then
18007 gl_cv_c_multiarch=yes
18013 if test "x$word" = "x-arch"; then
18020 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18021 if test $gl_cv_c_multiarch = yes; then
18022 APPLE_UNIVERSAL_BUILD=1
18024 APPLE_UNIVERSAL_BUILD=0
18029 GNULIB_PTHREAD_SIGMASK=0;
18031 GNULIB_SIGNAL_H_SIGPIPE=0;
18032 GNULIB_SIGPROCMASK=0;
18033 GNULIB_SIGACTION=0;
18034 HAVE_POSIX_SIGNALBLOCKING=1;
18035 HAVE_PTHREAD_SIGMASK=1;
18040 HAVE_STRUCT_SIGACTION_SA_SIGACTION=1;
18042 HAVE_TYPE_VOLATILE_SIG_ATOMIC_T=1;
18044 HAVE_SIGHANDLER_T=1;
18045 REPLACE_PTHREAD_SIGMASK=0;
18049 ac_fn_c_check_type "$LINENO" "sigset_t" "ac_cv_type_sigset_t" "
18050 #include <signal.h>
18051 /* Mingw defines sigset_t not in <signal.h>, but in <sys/types.h>. */
18052 #include <sys/types.h>
18055 if test "x$ac_cv_type_sigset_t" = xyes; then :
18057 cat >>confdefs.h <<_ACEOF
18058 #define HAVE_SIGSET_T 1
18061 gl_cv_type_sigset_t=yes
18063 gl_cv_type_sigset_t=no
18066 if test $gl_cv_type_sigset_t != yes; then
18071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ssize_t" >&5
18072 $as_echo_n "checking for ssize_t... " >&6; }
18073 if ${gt_cv_ssize_t+:} false; then :
18074 $as_echo_n "(cached) " >&6
18076 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18077 /* end confdefs.h. */
18078 #include <sys/types.h>
18082 int x = sizeof (ssize_t *) + sizeof (ssize_t);
18088 if ac_fn_c_try_compile "$LINENO"; then :
18093 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_ssize_t" >&5
18096 $as_echo "$gt_cv_ssize_t" >&6; }
18097 if test $gt_cv_ssize_t = no; then
18099 $as_echo "#define ssize_t int" >>confdefs.h
18104 ac_fn_c_check_decl "$LINENO" "setenv" "ac_cv_have_decl_setenv" "$ac_includes_default"
18105 if test "x$ac_cv_have_decl_setenv" = xyes; then :
18111 cat >>confdefs.h <<_ACEOF
18112 #define HAVE_DECL_SETENV $ac_have_decl
18130 if test $ac_cv_have_decl_setenv = no; then
18150 for ac_header in search.h
18152 ac_fn_c_check_header_mongrel "$LINENO" "search.h" "ac_cv_header_search_h" "$ac_includes_default"
18153 if test "x$ac_cv_header_search_h" = xyes; then :
18154 cat >>confdefs.h <<_ACEOF
18155 #define HAVE_SEARCH_H 1
18162 for ac_func in tsearch
18164 ac_fn_c_check_func "$LINENO" "tsearch" "ac_cv_func_tsearch"
18165 if test "x$ac_cv_func_tsearch" = xyes; then :
18166 cat >>confdefs.h <<_ACEOF
18167 #define HAVE_TSEARCH 1
18180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
18181 $as_echo_n "checking for C/C++ restrict keyword... " >&6; }
18182 if ${ac_cv_c_restrict+:} false; then :
18183 $as_echo_n "(cached) " >&6
18185 ac_cv_c_restrict=no
18186 # The order here caters to the fact that C++ does not require restrict.
18187 for ac_kw in __restrict __restrict__ _Restrict restrict; do
18188 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18189 /* end confdefs.h. */
18190 typedef int * int_ptr;
18191 int foo (int_ptr $ac_kw ip) {
18198 int * $ac_kw t = s;
18205 if ac_fn_c_try_compile "$LINENO"; then :
18206 ac_cv_c_restrict=$ac_kw
18208 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18209 test "$ac_cv_c_restrict" != no && break
18213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
18214 $as_echo "$ac_cv_c_restrict" >&6; }
18216 case $ac_cv_c_restrict in
18218 no) $as_echo "#define restrict /**/" >>confdefs.h
18220 *) cat >>confdefs.h <<_ACEOF
18221 #define restrict $ac_cv_c_restrict
18226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
18227 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
18228 if ${ac_cv_type_uid_t+:} false; then :
18229 $as_echo_n "(cached) " >&6
18231 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18232 /* end confdefs.h. */
18233 #include <sys/types.h>
18236 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18237 $EGREP "uid_t" >/dev/null 2>&1; then :
18238 ac_cv_type_uid_t=yes
18240 ac_cv_type_uid_t=no
18245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
18246 $as_echo "$ac_cv_type_uid_t" >&6; }
18247 if test $ac_cv_type_uid_t = no; then
18249 $as_echo "#define uid_t int" >>confdefs.h
18252 $as_echo "#define gid_t int" >>confdefs.h
18267 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
18268 if test "x$ac_cv_type_pid_t" = xyes; then :
18272 cat >>confdefs.h <<_ACEOF
18287 GNULIB_FPRINTF_POSIX=0;
18303 GNULIB_OBSTACK_PRINTF=0;
18304 GNULIB_OBSTACK_PRINTF_POSIX=0;
18309 GNULIB_PRINTF_POSIX=0;
18318 GNULIB_SPRINTF_POSIX=0;
18319 GNULIB_STDIO_H_NONBLOCKING=0;
18320 GNULIB_STDIO_H_SIGPIPE=0;
18322 GNULIB_VASPRINTF=0;
18327 GNULIB_VFPRINTF_POSIX=0;
18329 GNULIB_VPRINTF_POSIX=0;
18330 GNULIB_VSNPRINTF=0;
18331 GNULIB_VSPRINTF_POSIX=0;
18332 HAVE_DECL_FPURGE=1;
18333 HAVE_DECL_FSEEKO=1;
18334 HAVE_DECL_FTELLO=1;
18335 HAVE_DECL_GETDELIM=1;
18336 HAVE_DECL_GETLINE=1;
18337 HAVE_DECL_OBSTACK_PRINTF=1;
18338 HAVE_DECL_SNPRINTF=1;
18339 HAVE_DECL_VSNPRINTF=1;
18360 REPLACE_GETDELIM=0;
18362 REPLACE_OBSTACK_PRINTF=0;
18368 REPLACE_RENAMEAT=0;
18369 REPLACE_SNPRINTF=0;
18371 REPLACE_STDIO_READ_FUNCS=0;
18372 REPLACE_STDIO_WRITE_FUNCS=0;
18374 REPLACE_VASPRINTF=0;
18375 REPLACE_VDPRINTF=0;
18376 REPLACE_VFPRINTF=0;
18378 REPLACE_VSNPRINTF=0;
18379 REPLACE_VSPRINTF=0;
18398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether snprintf returns a byte count as in C99" >&5
18399 $as_echo_n "checking whether snprintf returns a byte count as in C99... " >&6; }
18400 if ${gl_cv_func_snprintf_retval_c99+:} false; then :
18401 $as_echo_n "(cached) " >&6
18404 if test "$cross_compiling" = yes; then :
18407 # Guess yes on glibc systems.
18408 *-gnu*) gl_cv_func_snprintf_retval_c99="guessing yes";;
18409 # Guess yes on FreeBSD >= 5.
18410 freebsd[1-4]*) gl_cv_func_snprintf_retval_c99="guessing no";;
18411 freebsd* | kfreebsd*) gl_cv_func_snprintf_retval_c99="guessing yes";;
18412 # Guess yes on Mac OS X >= 10.3.
18413 darwin[1-6].*) gl_cv_func_snprintf_retval_c99="guessing no";;
18414 darwin*) gl_cv_func_snprintf_retval_c99="guessing yes";;
18415 # Guess yes on OpenBSD >= 3.9.
18416 openbsd[1-2].* | openbsd3.[0-8] | openbsd3.[0-8].*)
18417 gl_cv_func_snprintf_retval_c99="guessing no";;
18418 openbsd*) gl_cv_func_snprintf_retval_c99="guessing yes";;
18419 # Guess yes on Solaris >= 2.10.
18420 solaris2.[1-9][0-9]*) gl_cv_func_printf_sizes_c99="guessing yes";;
18421 solaris*) gl_cv_func_printf_sizes_c99="guessing no";;
18422 # Guess yes on AIX >= 4.
18423 aix[1-3]*) gl_cv_func_snprintf_retval_c99="guessing no";;
18424 aix*) gl_cv_func_snprintf_retval_c99="guessing yes";;
18425 # Guess yes on NetBSD >= 3.
18426 netbsd[1-2]* | netbsdelf[1-2]* | netbsdaout[1-2]* | netbsdcoff[1-2]*)
18427 gl_cv_func_snprintf_retval_c99="guessing no";;
18428 netbsd*) gl_cv_func_snprintf_retval_c99="guessing yes";;
18429 # Guess yes on BeOS.
18430 beos*) gl_cv_func_snprintf_retval_c99="guessing yes";;
18431 # If we don't know, assume the worst.
18432 *) gl_cv_func_snprintf_retval_c99="guessing no";;
18436 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18437 /* end confdefs.h. */
18440 #include <string.h>
18442 # define my_snprintf snprintf
18444 # include <stdarg.h>
18445 static int my_snprintf (char *buf, int size, const char *format, ...)
18449 va_start (args, format);
18450 ret = vsnprintf (buf, size, format, args);
18455 static char buf[100];
18458 strcpy (buf, "ABCDEF");
18459 if (my_snprintf (buf, 3, "%d %d", 4567, 89) != 7)
18461 if (my_snprintf (buf, 0, "%d %d", 4567, 89) != 7)
18463 if (my_snprintf (NULL, 0, "%d %d", 4567, 89) != 7)
18468 if ac_fn_c_try_run "$LINENO"; then :
18469 gl_cv_func_snprintf_retval_c99=yes
18471 gl_cv_func_snprintf_retval_c99=no
18473 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18474 conftest.$ac_objext conftest.beam conftest.$ac_ext
18479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_snprintf_retval_c99" >&5
18480 $as_echo "$gl_cv_func_snprintf_retval_c99" >&6; }
18483 ac_fn_c_check_decl "$LINENO" "snprintf" "ac_cv_have_decl_snprintf" "$ac_includes_default"
18484 if test "x$ac_cv_have_decl_snprintf" = xyes; then :
18490 cat >>confdefs.h <<_ACEOF
18491 #define HAVE_DECL_SNPRINTF $ac_have_decl
18495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
18496 $as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
18497 if ${ac_cv_header_stdbool_h+:} false; then :
18498 $as_echo_n "(cached) " >&6
18500 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18501 /* end confdefs.h. */
18503 #include <stdbool.h>
18505 "error: bool is not defined"
18508 "error: false is not defined"
18511 "error: false is not 0"
18514 "error: true is not defined"
18517 "error: true is not 1"
18519 #ifndef __bool_true_false_are_defined
18520 "error: __bool_true_false_are_defined is not defined"
18523 struct s { _Bool s: 1; _Bool t; } s;
18525 char a[true == 1 ? 1 : -1];
18526 char b[false == 0 ? 1 : -1];
18527 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
18528 char d[(bool) 0.5 == true ? 1 : -1];
18529 /* See body of main program for 'e'. */
18530 char f[(_Bool) 0.0 == false ? 1 : -1];
18532 char h[sizeof (_Bool)];
18533 char i[sizeof s.t];
18534 enum { j = false, k = true, l = false * true, m = true * 256 };
18535 /* The following fails for
18536 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
18538 char o[sizeof n == m * sizeof n[0] ? 1 : -1];
18539 char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
18540 /* Catch a bug in an HP-UX C compiler. See
18541 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
18542 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
18554 /* Refer to every declared value, to avoid compiler optimizations. */
18555 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
18556 + !m + !n + !o + !p + !q + !pq);
18562 if ac_fn_c_try_compile "$LINENO"; then :
18563 ac_cv_header_stdbool_h=yes
18565 ac_cv_header_stdbool_h=no
18567 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
18570 $as_echo "$ac_cv_header_stdbool_h" >&6; }
18571 ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
18572 if test "x$ac_cv_type__Bool" = xyes; then :
18574 cat >>confdefs.h <<_ACEOF
18575 #define HAVE__BOOL 1
18587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5
18588 $as_echo_n "checking for wchar_t... " >&6; }
18589 if ${gt_cv_c_wchar_t+:} false; then :
18590 $as_echo_n "(cached) " >&6
18592 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18593 /* end confdefs.h. */
18594 #include <stddef.h>
18595 wchar_t foo = (wchar_t)'\0';
18604 if ac_fn_c_try_compile "$LINENO"; then :
18605 gt_cv_c_wchar_t=yes
18609 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5
18612 $as_echo "$gt_cv_c_wchar_t" >&6; }
18613 if test $gt_cv_c_wchar_t = yes; then
18615 $as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h
18632 if test $ac_cv_type_long_long_int = yes; then
18633 HAVE_LONG_LONG_INT=1
18635 HAVE_LONG_LONG_INT=0
18639 if test $ac_cv_type_unsigned_long_long_int = yes; then
18640 HAVE_UNSIGNED_LONG_LONG_INT=1
18642 HAVE_UNSIGNED_LONG_LONG_INT=0
18653 if test $ac_cv_header_wchar_h = yes; then
18660 if test $ac_cv_header_inttypes_h = yes; then
18667 if test $ac_cv_header_sys_types_h = yes; then
18689 if test $gl_cv_have_include_next = yes; then
18690 gl_cv_next_stdint_h='<'stdint.h'>'
18692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdint.h>" >&5
18693 $as_echo_n "checking absolute name of <stdint.h>... " >&6; }
18694 if ${gl_cv_next_stdint_h+:} false; then :
18695 $as_echo_n "(cached) " >&6
18698 if test $ac_cv_header_stdint_h = yes; then
18701 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18702 /* end confdefs.h. */
18703 #include <stdint.h>
18707 aix*) gl_absname_cpp="$ac_cpp -C" ;;
18708 *) gl_absname_cpp="$ac_cpp" ;;
18713 gl_dirsep_regex='[/\\]'
18716 gl_dirsep_regex='\/'
18719 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
18721 gl_header_literal_regex=`echo 'stdint.h' \
18722 | sed -e "$gl_make_literal_regex_sed"`
18723 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
18724 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
18729 gl_cv_next_stdint_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
18730 sed -n "$gl_absolute_header_sed"`'"'
18732 gl_cv_next_stdint_h='<'stdint.h'>'
18737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdint_h" >&5
18738 $as_echo "$gl_cv_next_stdint_h" >&6; }
18740 NEXT_STDINT_H=$gl_cv_next_stdint_h
18742 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
18743 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
18744 gl_next_as_first_directive='<'stdint.h'>'
18746 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
18747 gl_next_as_first_directive=$gl_cv_next_stdint_h
18749 NEXT_AS_FIRST_DIRECTIVE_STDINT_H=$gl_next_as_first_directive
18754 if test $ac_cv_header_stdint_h = yes; then
18761 if test $ac_cv_header_stdint_h = yes; then
18762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stdint.h conforms to C99" >&5
18763 $as_echo_n "checking whether stdint.h conforms to C99... " >&6; }
18764 if ${gl_cv_header_working_stdint_h+:} false; then :
18765 $as_echo_n "(cached) " >&6
18767 gl_cv_header_working_stdint_h=no
18768 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18769 /* end confdefs.h. */
18772 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
18773 #include <stdint.h>
18774 /* Dragonfly defines WCHAR_MIN, WCHAR_MAX only in <wchar.h>. */
18775 #if !(defined WCHAR_MIN && defined WCHAR_MAX)
18776 #error "WCHAR_MIN, WCHAR_MAX not defined in <stdint.h>"
18780 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
18781 included before <wchar.h>. */
18782 #include <stddef.h>
18783 #include <signal.h>
18785 # include <stdio.h>
18787 # include <wchar.h>
18792 int8_t a1 = INT8_MAX;
18793 int8_t a1min = INT8_MIN;
18796 int16_t a2 = INT16_MAX;
18797 int16_t a2min = INT16_MIN;
18800 int32_t a3 = INT32_MAX;
18801 int32_t a3min = INT32_MIN;
18804 int64_t a4 = INT64_MAX;
18805 int64_t a4min = INT64_MIN;
18808 uint8_t b1 = UINT8_MAX;
18810 typedef int b1[(unsigned char) -1 != 255 ? 1 : -1];
18813 uint16_t b2 = UINT16_MAX;
18816 uint32_t b3 = UINT32_MAX;
18819 uint64_t b4 = UINT64_MAX;
18821 int_least8_t c1 = INT8_C (0x7f);
18822 int_least8_t c1max = INT_LEAST8_MAX;
18823 int_least8_t c1min = INT_LEAST8_MIN;
18824 int_least16_t c2 = INT16_C (0x7fff);
18825 int_least16_t c2max = INT_LEAST16_MAX;
18826 int_least16_t c2min = INT_LEAST16_MIN;
18827 int_least32_t c3 = INT32_C (0x7fffffff);
18828 int_least32_t c3max = INT_LEAST32_MAX;
18829 int_least32_t c3min = INT_LEAST32_MIN;
18830 int_least64_t c4 = INT64_C (0x7fffffffffffffff);
18831 int_least64_t c4max = INT_LEAST64_MAX;
18832 int_least64_t c4min = INT_LEAST64_MIN;
18833 uint_least8_t d1 = UINT8_C (0xff);
18834 uint_least8_t d1max = UINT_LEAST8_MAX;
18835 uint_least16_t d2 = UINT16_C (0xffff);
18836 uint_least16_t d2max = UINT_LEAST16_MAX;
18837 uint_least32_t d3 = UINT32_C (0xffffffff);
18838 uint_least32_t d3max = UINT_LEAST32_MAX;
18839 uint_least64_t d4 = UINT64_C (0xffffffffffffffff);
18840 uint_least64_t d4max = UINT_LEAST64_MAX;
18841 int_fast8_t e1 = INT_FAST8_MAX;
18842 int_fast8_t e1min = INT_FAST8_MIN;
18843 int_fast16_t e2 = INT_FAST16_MAX;
18844 int_fast16_t e2min = INT_FAST16_MIN;
18845 int_fast32_t e3 = INT_FAST32_MAX;
18846 int_fast32_t e3min = INT_FAST32_MIN;
18847 int_fast64_t e4 = INT_FAST64_MAX;
18848 int_fast64_t e4min = INT_FAST64_MIN;
18849 uint_fast8_t f1 = UINT_FAST8_MAX;
18850 uint_fast16_t f2 = UINT_FAST16_MAX;
18851 uint_fast32_t f3 = UINT_FAST32_MAX;
18852 uint_fast64_t f4 = UINT_FAST64_MAX;
18854 intptr_t g = INTPTR_MAX;
18855 intptr_t gmin = INTPTR_MIN;
18858 uintptr_t h = UINTPTR_MAX;
18860 intmax_t i = INTMAX_MAX;
18861 uintmax_t j = UINTMAX_MAX;
18863 #include <limits.h> /* for CHAR_BIT */
18864 #define TYPE_MINIMUM(t) \
18865 ((t) ((t) 0 < (t) -1 ? (t) 0 : ~ TYPE_MAXIMUM (t)))
18866 #define TYPE_MAXIMUM(t) \
18867 ((t) ((t) 0 < (t) -1 \
18869 : ((((t) 1 << (sizeof (t) * CHAR_BIT - 2)) - 1) * 2 + 1)))
18872 PTRDIFF_MIN == TYPE_MINIMUM (ptrdiff_t)
18873 && PTRDIFF_MAX == TYPE_MAXIMUM (ptrdiff_t)
18875 /* Detect bug in FreeBSD 6.0 / ia64. */
18876 int check_SIG_ATOMIC:
18877 SIG_ATOMIC_MIN == TYPE_MINIMUM (sig_atomic_t)
18878 && SIG_ATOMIC_MAX == TYPE_MAXIMUM (sig_atomic_t)
18880 int check_SIZE: SIZE_MAX == TYPE_MAXIMUM (size_t) ? 1 : -1;
18882 WCHAR_MIN == TYPE_MINIMUM (wchar_t)
18883 && WCHAR_MAX == TYPE_MAXIMUM (wchar_t)
18885 /* Detect bug in mingw. */
18887 WINT_MIN == TYPE_MINIMUM (wint_t)
18888 && WINT_MAX == TYPE_MAXIMUM (wint_t)
18891 /* Detect bugs in glibc 2.4 and Solaris 10 stdint.h, among others. */
18893 (-1 < UINT8_C (0)) == (-1 < (uint_least8_t) 0) ? 1 : -1;
18894 int check_UINT16_C:
18895 (-1 < UINT16_C (0)) == (-1 < (uint_least16_t) 0) ? 1 : -1;
18897 /* Detect bugs in OpenBSD 3.9 stdint.h. */
18899 int check_uint8: (uint8_t) -1 == UINT8_MAX ? 1 : -1;
18902 int check_uint16: (uint16_t) -1 == UINT16_MAX ? 1 : -1;
18905 int check_uint32: (uint32_t) -1 == UINT32_MAX ? 1 : -1;
18908 int check_uint64: (uint64_t) -1 == UINT64_MAX ? 1 : -1;
18910 int check_uint_least8: (uint_least8_t) -1 == UINT_LEAST8_MAX ? 1 : -1;
18911 int check_uint_least16: (uint_least16_t) -1 == UINT_LEAST16_MAX ? 1 : -1;
18912 int check_uint_least32: (uint_least32_t) -1 == UINT_LEAST32_MAX ? 1 : -1;
18913 int check_uint_least64: (uint_least64_t) -1 == UINT_LEAST64_MAX ? 1 : -1;
18914 int check_uint_fast8: (uint_fast8_t) -1 == UINT_FAST8_MAX ? 1 : -1;
18915 int check_uint_fast16: (uint_fast16_t) -1 == UINT_FAST16_MAX ? 1 : -1;
18916 int check_uint_fast32: (uint_fast32_t) -1 == UINT_FAST32_MAX ? 1 : -1;
18917 int check_uint_fast64: (uint_fast64_t) -1 == UINT_FAST64_MAX ? 1 : -1;
18918 int check_uintptr: (uintptr_t) -1 == UINTPTR_MAX ? 1 : -1;
18919 int check_uintmax: (uintmax_t) -1 == UINTMAX_MAX ? 1 : -1;
18920 int check_size: (size_t) -1 == SIZE_MAX ? 1 : -1;
18931 if ac_fn_c_try_compile "$LINENO"; then :
18932 if test "$cross_compiling" = yes; then :
18933 gl_cv_header_working_stdint_h=yes
18936 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18937 /* end confdefs.h. */
18940 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
18941 #include <stdint.h>
18944 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
18945 included before <wchar.h>. */
18946 #include <stddef.h>
18947 #include <signal.h>
18949 # include <stdio.h>
18951 # include <wchar.h>
18956 #include <string.h>
18957 #define MVAL(macro) MVAL1(macro)
18958 #define MVAL1(expression) #expression
18959 static const char *macro_values[] =
18993 for (mv = macro_values; *mv != NULL; mv++)
18995 const char *value = *mv;
18996 /* Test whether it looks like a cast expression. */
18997 if (strncmp (value, "((unsigned int)"/*)*/, 15) == 0
18998 || strncmp (value, "((unsigned short)"/*)*/, 17) == 0
18999 || strncmp (value, "((unsigned char)"/*)*/, 16) == 0
19000 || strncmp (value, "((int)"/*)*/, 6) == 0
19001 || strncmp (value, "((signed short)"/*)*/, 15) == 0
19002 || strncmp (value, "((signed char)"/*)*/, 14) == 0)
19003 return mv - macro_values + 1;
19011 if ac_fn_c_try_run "$LINENO"; then :
19012 gl_cv_header_working_stdint_h=yes
19014 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19015 conftest.$ac_objext conftest.beam conftest.$ac_ext
19020 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_stdint_h" >&5
19024 $as_echo "$gl_cv_header_working_stdint_h" >&6; }
19026 if test "$gl_cv_header_working_stdint_h" = yes; then
19029 for ac_header in sys/inttypes.h sys/bitypes.h
19031 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
19032 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
19033 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
19034 cat >>confdefs.h <<_ACEOF
19035 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
19042 if test $ac_cv_header_sys_inttypes_h = yes; then
19043 HAVE_SYS_INTTYPES_H=1
19045 HAVE_SYS_INTTYPES_H=0
19048 if test $ac_cv_header_sys_bitypes_h = yes; then
19049 HAVE_SYS_BITYPES_H=1
19051 HAVE_SYS_BITYPES_H=0
19057 if test $APPLE_UNIVERSAL_BUILD = 0; then
19060 for gltype in ptrdiff_t size_t ; do
19061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
19062 $as_echo_n "checking for bit size of $gltype... " >&6; }
19063 if eval \${gl_cv_bitsizeof_${gltype}+:} false; then :
19064 $as_echo_n "(cached) " >&6
19066 if ac_fn_c_compute_int "$LINENO" "sizeof ($gltype) * CHAR_BIT" "result" "
19067 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
19068 included before <wchar.h>. */
19069 #include <stddef.h>
19070 #include <signal.h>
19072 # include <stdio.h>
19074 # include <wchar.h>
19077 #include <limits.h>"; then :
19083 eval gl_cv_bitsizeof_${gltype}=\$result
19086 eval ac_res=\$gl_cv_bitsizeof_${gltype}
19087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
19088 $as_echo "$ac_res" >&6; }
19089 eval result=\$gl_cv_bitsizeof_${gltype}
19090 if test $result = unknown; then
19093 GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
19094 cat >>confdefs.h <<_ACEOF
19095 #define BITSIZEOF_${GLTYPE} $result
19098 eval BITSIZEOF_${GLTYPE}=\$result
19105 for gltype in sig_atomic_t wchar_t wint_t ; do
19106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
19107 $as_echo_n "checking for bit size of $gltype... " >&6; }
19108 if eval \${gl_cv_bitsizeof_${gltype}+:} false; then :
19109 $as_echo_n "(cached) " >&6
19111 if ac_fn_c_compute_int "$LINENO" "sizeof ($gltype) * CHAR_BIT" "result" "
19112 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
19113 included before <wchar.h>. */
19114 #include <stddef.h>
19115 #include <signal.h>
19117 # include <stdio.h>
19119 # include <wchar.h>
19122 #include <limits.h>"; then :
19128 eval gl_cv_bitsizeof_${gltype}=\$result
19131 eval ac_res=\$gl_cv_bitsizeof_${gltype}
19132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
19133 $as_echo "$ac_res" >&6; }
19134 eval result=\$gl_cv_bitsizeof_${gltype}
19135 if test $result = unknown; then
19138 GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
19139 cat >>confdefs.h <<_ACEOF
19140 #define BITSIZEOF_${GLTYPE} $result
19143 eval BITSIZEOF_${GLTYPE}=\$result
19149 for gltype in sig_atomic_t wchar_t wint_t ; do
19150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gltype is signed" >&5
19151 $as_echo_n "checking whether $gltype is signed... " >&6; }
19152 if eval \${gl_cv_type_${gltype}_signed+:} false; then :
19153 $as_echo_n "(cached) " >&6
19155 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19156 /* end confdefs.h. */
19158 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
19159 included before <wchar.h>. */
19160 #include <stddef.h>
19161 #include <signal.h>
19163 # include <stdio.h>
19165 # include <wchar.h>
19168 int verify[2 * (($gltype) -1 < ($gltype) 0) - 1];
19177 if ac_fn_c_try_compile "$LINENO"; then :
19182 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19183 eval gl_cv_type_${gltype}_signed=\$result
19186 eval ac_res=\$gl_cv_type_${gltype}_signed
19187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
19188 $as_echo "$ac_res" >&6; }
19189 eval result=\$gl_cv_type_${gltype}_signed
19190 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
19191 if test "$result" = yes; then
19192 cat >>confdefs.h <<_ACEOF
19193 #define HAVE_SIGNED_${GLTYPE} 1
19196 eval HAVE_SIGNED_${GLTYPE}=1
19198 eval HAVE_SIGNED_${GLTYPE}=0
19203 gl_cv_type_ptrdiff_t_signed=yes
19204 gl_cv_type_size_t_signed=no
19205 if test $APPLE_UNIVERSAL_BUILD = 0; then
19208 for gltype in ptrdiff_t size_t ; do
19209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
19210 $as_echo_n "checking for $gltype integer literal suffix... " >&6; }
19211 if eval \${gl_cv_type_${gltype}_suffix+:} false; then :
19212 $as_echo_n "(cached) " >&6
19214 eval gl_cv_type_${gltype}_suffix=no
19215 eval result=\$gl_cv_type_${gltype}_signed
19216 if test "$result" = yes; then
19221 for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do
19223 '') gltype1='int';;
19224 l) gltype1='long int';;
19225 ll) gltype1='long long int';;
19226 i64) gltype1='__int64';;
19227 u) gltype1='unsigned int';;
19228 ul) gltype1='unsigned long int';;
19229 ull) gltype1='unsigned long long int';;
19230 ui64)gltype1='unsigned __int64';;
19232 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19233 /* end confdefs.h. */
19235 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
19236 included before <wchar.h>. */
19237 #include <stddef.h>
19238 #include <signal.h>
19240 # include <stdio.h>
19242 # include <wchar.h>
19245 extern $gltype foo;
19246 extern $gltype1 foo;
19255 if ac_fn_c_try_compile "$LINENO"; then :
19256 eval gl_cv_type_${gltype}_suffix=\$glsuf
19258 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19259 eval result=\$gl_cv_type_${gltype}_suffix
19260 test "$result" != no && break
19263 eval ac_res=\$gl_cv_type_${gltype}_suffix
19264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
19265 $as_echo "$ac_res" >&6; }
19266 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
19267 eval result=\$gl_cv_type_${gltype}_suffix
19268 test "$result" = no && result=
19269 eval ${GLTYPE}_SUFFIX=\$result
19270 cat >>confdefs.h <<_ACEOF
19271 #define ${GLTYPE}_SUFFIX $result
19280 for gltype in sig_atomic_t wchar_t wint_t ; do
19281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
19282 $as_echo_n "checking for $gltype integer literal suffix... " >&6; }
19283 if eval \${gl_cv_type_${gltype}_suffix+:} false; then :
19284 $as_echo_n "(cached) " >&6
19286 eval gl_cv_type_${gltype}_suffix=no
19287 eval result=\$gl_cv_type_${gltype}_signed
19288 if test "$result" = yes; then
19293 for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do
19295 '') gltype1='int';;
19296 l) gltype1='long int';;
19297 ll) gltype1='long long int';;
19298 i64) gltype1='__int64';;
19299 u) gltype1='unsigned int';;
19300 ul) gltype1='unsigned long int';;
19301 ull) gltype1='unsigned long long int';;
19302 ui64)gltype1='unsigned __int64';;
19304 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19305 /* end confdefs.h. */
19307 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
19308 included before <wchar.h>. */
19309 #include <stddef.h>
19310 #include <signal.h>
19312 # include <stdio.h>
19314 # include <wchar.h>
19317 extern $gltype foo;
19318 extern $gltype1 foo;
19327 if ac_fn_c_try_compile "$LINENO"; then :
19328 eval gl_cv_type_${gltype}_suffix=\$glsuf
19330 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19331 eval result=\$gl_cv_type_${gltype}_suffix
19332 test "$result" != no && break
19335 eval ac_res=\$gl_cv_type_${gltype}_suffix
19336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
19337 $as_echo "$ac_res" >&6; }
19338 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
19339 eval result=\$gl_cv_type_${gltype}_suffix
19340 test "$result" = no && result=
19341 eval ${GLTYPE}_SUFFIX=\$result
19342 cat >>confdefs.h <<_ACEOF
19343 #define ${GLTYPE}_SUFFIX $result
19350 if test $BITSIZEOF_WINT_T -lt 32; then
19351 BITSIZEOF_WINT_T=32
19357 if test -n "$STDINT_H"; then
19358 GL_GENERATE_STDINT_H_TRUE=
19359 GL_GENERATE_STDINT_H_FALSE='#'
19361 GL_GENERATE_STDINT_H_TRUE='#'
19362 GL_GENERATE_STDINT_H_FALSE=
19367 REPLACE_STRERROR_0=0
19368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strerror(0) succeeds" >&5
19369 $as_echo_n "checking whether strerror(0) succeeds... " >&6; }
19370 if ${gl_cv_func_strerror_0_works+:} false; then :
19371 $as_echo_n "(cached) " >&6
19373 if test "$cross_compiling" = yes; then :
19375 # Guess yes on glibc systems.
19376 *-gnu*) gl_cv_func_strerror_0_works="guessing yes" ;;
19377 # If we don't know, assume the worst.
19378 *) gl_cv_func_strerror_0_works="guessing no" ;;
19382 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19383 /* end confdefs.h. */
19384 #include <string.h>
19393 str = strerror (0);
19394 if (!*str) result |= 1;
19395 if (errno) result |= 2;
19396 if (strstr (str, "nknown") || strstr (str, "ndefined"))
19403 if ac_fn_c_try_run "$LINENO"; then :
19404 gl_cv_func_strerror_0_works=yes
19406 gl_cv_func_strerror_0_works=no
19408 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19409 conftest.$ac_objext conftest.beam conftest.$ac_ext
19414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_strerror_0_works" >&5
19415 $as_echo "$gl_cv_func_strerror_0_works" >&6; }
19416 case "$gl_cv_func_strerror_0_works" in
19419 REPLACE_STRERROR_0=1
19421 $as_echo "#define REPLACE_STRERROR_0 1" >>confdefs.h
19442 if test $gl_cv_have_include_next = yes; then
19443 gl_cv_next_string_h='<'string.h'>'
19445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <string.h>" >&5
19446 $as_echo_n "checking absolute name of <string.h>... " >&6; }
19447 if ${gl_cv_next_string_h+:} false; then :
19448 $as_echo_n "(cached) " >&6
19451 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19452 /* end confdefs.h. */
19453 #include <string.h>
19457 aix*) gl_absname_cpp="$ac_cpp -C" ;;
19458 *) gl_absname_cpp="$ac_cpp" ;;
19463 gl_dirsep_regex='[/\\]'
19466 gl_dirsep_regex='\/'
19469 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
19471 gl_header_literal_regex=`echo 'string.h' \
19472 | sed -e "$gl_make_literal_regex_sed"`
19473 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
19474 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
19479 gl_cv_next_string_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
19480 sed -n "$gl_absolute_header_sed"`'"'
19484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_string_h" >&5
19485 $as_echo "$gl_cv_next_string_h" >&6; }
19487 NEXT_STRING_H=$gl_cv_next_string_h
19489 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
19490 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
19491 gl_next_as_first_directive='<'string.h'>'
19493 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
19494 gl_next_as_first_directive=$gl_cv_next_string_h
19496 NEXT_AS_FIRST_DIRECTIVE_STRING_H=$gl_next_as_first_directive
19503 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
19504 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
19505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
19506 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
19507 if eval \${$as_gl_Symbol+:} false; then :
19508 $as_echo_n "(cached) " >&6
19510 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19511 /* end confdefs.h. */
19512 #include <string.h>
19523 if ac_fn_c_try_compile "$LINENO"; then :
19524 eval "$as_gl_Symbol=yes"
19526 eval "$as_gl_Symbol=no"
19528 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19530 eval ac_res=\$$as_gl_Symbol
19531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
19532 $as_echo "$ac_res" >&6; }
19533 if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
19534 cat >>confdefs.h <<_ACEOF
19535 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
19538 eval ac_cv_have_decl_$gl_func=yes
19544 ac_fn_c_check_decl "$LINENO" "strndup" "ac_cv_have_decl_strndup" "$ac_includes_default"
19545 if test "x$ac_cv_have_decl_strndup" = xyes; then :
19551 cat >>confdefs.h <<_ACEOF
19552 #define HAVE_DECL_STRNDUP $ac_have_decl
19562 ac_fn_c_check_decl "$LINENO" "strnlen" "ac_cv_have_decl_strnlen" "$ac_includes_default"
19563 if test "x$ac_cv_have_decl_strnlen" = xyes; then :
19569 cat >>confdefs.h <<_ACEOF
19570 #define HAVE_DECL_STRNLEN $ac_have_decl
19575 ac_fn_c_check_decl "$LINENO" "strsignal" "ac_cv_have_decl_strsignal" "$ac_includes_default"
19576 if test "x$ac_cv_have_decl_strsignal" = xyes; then :
19582 cat >>confdefs.h <<_ACEOF
19583 #define HAVE_DECL_STRSIGNAL $ac_have_decl
19587 ac_fn_c_check_decl "$LINENO" "sys_siglist" "ac_cv_have_decl_sys_siglist" "#include <signal.h>
19588 /* NetBSD declares sys_siglist in unistd.h. */
19589 #ifdef HAVE_UNISTD_H
19590 # include <unistd.h>
19594 if test "x$ac_cv_have_decl_sys_siglist" = xyes; then :
19600 cat >>confdefs.h <<_ACEOF
19601 #define HAVE_DECL_SYS_SIGLIST $ac_have_decl
19630 GNULIB_UTIMENSAT=0;
19644 REPLACE_FUTIMENS=0;
19650 REPLACE_UTIMENSAT=0;
19652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
19653 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
19654 if ${ac_cv_header_stat_broken+:} false; then :
19655 $as_echo_n "(cached) " >&6
19657 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19658 /* end confdefs.h. */
19659 #include <sys/types.h>
19660 #include <sys/stat.h>
19662 #if defined S_ISBLK && defined S_IFDIR
19663 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
19666 #if defined S_ISBLK && defined S_IFCHR
19667 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
19670 #if defined S_ISLNK && defined S_IFREG
19671 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
19674 #if defined S_ISSOCK && defined S_IFREG
19675 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
19679 if ac_fn_c_try_compile "$LINENO"; then :
19680 ac_cv_header_stat_broken=no
19682 ac_cv_header_stat_broken=yes
19684 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
19687 $as_echo "$ac_cv_header_stat_broken" >&6; }
19688 if test $ac_cv_header_stat_broken = yes; then
19690 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
19699 ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
19700 if test "x$ac_cv_type_mode_t" = xyes; then :
19704 cat >>confdefs.h <<_ACEOF
19711 GNULIB_GETTIMEOFDAY=0;
19712 HAVE_GETTIMEOFDAY=1;
19713 HAVE_STRUCT_TIMEVAL=1;
19715 REPLACE_GETTIMEOFDAY=0;
19716 REPLACE_STRUCT_TIMEVAL=0;
19748 if test $gl_cv_have_include_next = yes; then
19749 gl_cv_next_sys_time_h='<'sys/time.h'>'
19751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/time.h>" >&5
19752 $as_echo_n "checking absolute name of <sys/time.h>... " >&6; }
19753 if ${gl_cv_next_sys_time_h+:} false; then :
19754 $as_echo_n "(cached) " >&6
19757 if test $ac_cv_header_sys_time_h = yes; then
19760 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19761 /* end confdefs.h. */
19762 #include <sys/time.h>
19766 aix*) gl_absname_cpp="$ac_cpp -C" ;;
19767 *) gl_absname_cpp="$ac_cpp" ;;
19772 gl_dirsep_regex='[/\\]'
19775 gl_dirsep_regex='\/'
19778 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
19780 gl_header_literal_regex=`echo 'sys/time.h' \
19781 | sed -e "$gl_make_literal_regex_sed"`
19782 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
19783 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
19788 gl_cv_next_sys_time_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
19789 sed -n "$gl_absolute_header_sed"`'"'
19791 gl_cv_next_sys_time_h='<'sys/time.h'>'
19796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_time_h" >&5
19797 $as_echo "$gl_cv_next_sys_time_h" >&6; }
19799 NEXT_SYS_TIME_H=$gl_cv_next_sys_time_h
19801 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
19802 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
19803 gl_next_as_first_directive='<'sys/time.h'>'
19805 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
19806 gl_next_as_first_directive=$gl_cv_next_sys_time_h
19808 NEXT_AS_FIRST_DIRECTIVE_SYS_TIME_H=$gl_next_as_first_directive
19814 if test $ac_cv_header_sys_time_h != yes; then
19828 if test $ac_cv_header_sys_socket_h != yes; then
19829 for ac_header in winsock2.h
19831 ac_fn_c_check_header_mongrel "$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
19832 if test "x$ac_cv_header_winsock2_h" = xyes; then :
19833 cat >>confdefs.h <<_ACEOF
19834 #define HAVE_WINSOCK2_H 1
19842 if test "$ac_cv_header_winsock2_h" = yes; then
19844 UNISTD_H_HAVE_WINSOCK2_H=1
19845 SYS_IOCTL_H_HAVE_WINSOCK2_H=1
19851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timeval" >&5
19852 $as_echo_n "checking for struct timeval... " >&6; }
19853 if ${gl_cv_sys_struct_timeval+:} false; then :
19854 $as_echo_n "(cached) " >&6
19856 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19857 /* end confdefs.h. */
19858 #if HAVE_SYS_TIME_H
19859 #include <sys/time.h>
19862 #if HAVE_WINSOCK2_H
19863 # include <winsock2.h>
19869 static struct timeval x; x.tv_sec = x.tv_usec;
19874 if ac_fn_c_try_compile "$LINENO"; then :
19875 gl_cv_sys_struct_timeval=yes
19877 gl_cv_sys_struct_timeval=no
19879 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timeval" >&5
19883 $as_echo "$gl_cv_sys_struct_timeval" >&6; }
19884 if test $gl_cv_sys_struct_timeval != yes; then
19885 HAVE_STRUCT_TIMEVAL=0
19887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wide-enough struct timeval.tv_sec member" >&5
19888 $as_echo_n "checking for wide-enough struct timeval.tv_sec member... " >&6; }
19889 if ${gl_cv_sys_struct_timeval_tv_sec+:} false; then :
19890 $as_echo_n "(cached) " >&6
19892 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19893 /* end confdefs.h. */
19894 #if HAVE_SYS_TIME_H
19895 #include <sys/time.h>
19898 #if HAVE_WINSOCK2_H
19899 # include <winsock2.h>
19905 static struct timeval x;
19906 typedef int verify_tv_sec_type[
19907 sizeof (time_t) <= sizeof x.tv_sec ? 1 : -1
19914 if ac_fn_c_try_compile "$LINENO"; then :
19915 gl_cv_sys_struct_timeval_tv_sec=yes
19917 gl_cv_sys_struct_timeval_tv_sec=no
19919 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timeval_tv_sec" >&5
19923 $as_echo "$gl_cv_sys_struct_timeval_tv_sec" >&6; }
19924 if test $gl_cv_sys_struct_timeval_tv_sec != yes; then
19925 REPLACE_STRUCT_TIMEVAL=1
19930 for gl_func in gettimeofday; do
19931 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
19932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
19933 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
19934 if eval \${$as_gl_Symbol+:} false; then :
19935 $as_echo_n "(cached) " >&6
19937 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19938 /* end confdefs.h. */
19940 #if HAVE_SYS_TIME_H
19941 # include <sys/time.h>
19954 if ac_fn_c_try_compile "$LINENO"; then :
19955 eval "$as_gl_Symbol=yes"
19957 eval "$as_gl_Symbol=no"
19959 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19961 eval ac_res=\$$as_gl_Symbol
19962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
19963 $as_echo "$ac_res" >&6; }
19964 if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
19965 cat >>confdefs.h <<_ACEOF
19966 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
19969 eval ac_cv_have_decl_$gl_func=yes
19992 if test $gl_cv_have_include_next = yes; then
19993 gl_cv_next_sys_types_h='<'sys/types.h'>'
19995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/types.h>" >&5
19996 $as_echo_n "checking absolute name of <sys/types.h>... " >&6; }
19997 if ${gl_cv_next_sys_types_h+:} false; then :
19998 $as_echo_n "(cached) " >&6
20001 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20002 /* end confdefs.h. */
20003 #include <sys/types.h>
20007 aix*) gl_absname_cpp="$ac_cpp -C" ;;
20008 *) gl_absname_cpp="$ac_cpp" ;;
20013 gl_dirsep_regex='[/\\]'
20016 gl_dirsep_regex='\/'
20019 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
20021 gl_header_literal_regex=`echo 'sys/types.h' \
20022 | sed -e "$gl_make_literal_regex_sed"`
20023 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
20024 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
20029 gl_cv_next_sys_types_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
20030 sed -n "$gl_absolute_header_sed"`'"'
20034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_types_h" >&5
20035 $as_echo "$gl_cv_next_sys_types_h" >&6; }
20037 NEXT_SYS_TYPES_H=$gl_cv_next_sys_types_h
20039 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
20040 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
20041 gl_next_as_first_directive='<'sys/types.h'>'
20043 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
20044 gl_next_as_first_directive=$gl_cv_next_sys_types_h
20046 NEXT_AS_FIRST_DIRECTIVE_SYS_TYPES_H=$gl_next_as_first_directive
20068 GNULIB_NANOSLEEP=0;
20072 HAVE_DECL_LOCALTIME_R=1;
20076 REPLACE_LOCALTIME_R=GNULIB_PORTCHECK;
20077 REPLACE_MKTIME=GNULIB_PORTCHECK;
20078 REPLACE_NANOSLEEP=GNULIB_PORTCHECK;
20079 REPLACE_TIMEGM=GNULIB_PORTCHECK;
20089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <time.h>" >&5
20090 $as_echo_n "checking for struct timespec in <time.h>... " >&6; }
20091 if ${gl_cv_sys_struct_timespec_in_time_h+:} false; then :
20092 $as_echo_n "(cached) " >&6
20094 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20095 /* end confdefs.h. */
20101 static struct timespec x; x.tv_sec = x.tv_nsec;
20106 if ac_fn_c_try_compile "$LINENO"; then :
20107 gl_cv_sys_struct_timespec_in_time_h=yes
20109 gl_cv_sys_struct_timespec_in_time_h=no
20111 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_time_h" >&5
20114 $as_echo "$gl_cv_sys_struct_timespec_in_time_h" >&6; }
20116 TIME_H_DEFINES_STRUCT_TIMESPEC=0
20117 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC=0
20118 PTHREAD_H_DEFINES_STRUCT_TIMESPEC=0
20119 if test $gl_cv_sys_struct_timespec_in_time_h = yes; then
20120 TIME_H_DEFINES_STRUCT_TIMESPEC=1
20122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <sys/time.h>" >&5
20123 $as_echo_n "checking for struct timespec in <sys/time.h>... " >&6; }
20124 if ${gl_cv_sys_struct_timespec_in_sys_time_h+:} false; then :
20125 $as_echo_n "(cached) " >&6
20127 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20128 /* end confdefs.h. */
20129 #include <sys/time.h>
20134 static struct timespec x; x.tv_sec = x.tv_nsec;
20139 if ac_fn_c_try_compile "$LINENO"; then :
20140 gl_cv_sys_struct_timespec_in_sys_time_h=yes
20142 gl_cv_sys_struct_timespec_in_sys_time_h=no
20144 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_sys_time_h" >&5
20147 $as_echo "$gl_cv_sys_struct_timespec_in_sys_time_h" >&6; }
20148 if test $gl_cv_sys_struct_timespec_in_sys_time_h = yes; then
20149 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC=1
20151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <pthread.h>" >&5
20152 $as_echo_n "checking for struct timespec in <pthread.h>... " >&6; }
20153 if ${gl_cv_sys_struct_timespec_in_pthread_h+:} false; then :
20154 $as_echo_n "(cached) " >&6
20156 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20157 /* end confdefs.h. */
20158 #include <pthread.h>
20163 static struct timespec x; x.tv_sec = x.tv_nsec;
20168 if ac_fn_c_try_compile "$LINENO"; then :
20169 gl_cv_sys_struct_timespec_in_pthread_h=yes
20171 gl_cv_sys_struct_timespec_in_pthread_h=no
20173 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_pthread_h" >&5
20176 $as_echo "$gl_cv_sys_struct_timespec_in_pthread_h" >&6; }
20177 if test $gl_cv_sys_struct_timespec_in_pthread_h = yes; then
20178 PTHREAD_H_DEFINES_STRUCT_TIMESPEC=1
20197 if test $gl_cv_have_include_next = yes; then
20198 gl_cv_next_time_h='<'time.h'>'
20200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <time.h>" >&5
20201 $as_echo_n "checking absolute name of <time.h>... " >&6; }
20202 if ${gl_cv_next_time_h+:} false; then :
20203 $as_echo_n "(cached) " >&6
20206 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20207 /* end confdefs.h. */
20212 aix*) gl_absname_cpp="$ac_cpp -C" ;;
20213 *) gl_absname_cpp="$ac_cpp" ;;
20218 gl_dirsep_regex='[/\\]'
20221 gl_dirsep_regex='\/'
20224 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
20226 gl_header_literal_regex=`echo 'time.h' \
20227 | sed -e "$gl_make_literal_regex_sed"`
20228 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
20229 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
20234 gl_cv_next_time_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
20235 sed -n "$gl_absolute_header_sed"`'"'
20239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_time_h" >&5
20240 $as_echo "$gl_cv_next_time_h" >&6; }
20242 NEXT_TIME_H=$gl_cv_next_time_h
20244 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
20245 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
20246 gl_next_as_first_directive='<'time.h'>'
20248 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
20249 gl_next_as_first_directive=$gl_cv_next_time_h
20251 NEXT_AS_FIRST_DIRECTIVE_TIME_H=$gl_next_as_first_directive
20259 ac_fn_c_check_decl "$LINENO" "unsetenv" "ac_cv_have_decl_unsetenv" "$ac_includes_default"
20260 if test "x$ac_cv_have_decl_unsetenv" = xyes; then :
20266 cat >>confdefs.h <<_ACEOF
20267 #define HAVE_DECL_UNSETENV $ac_have_decl
20277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wint_t" >&5
20278 $as_echo_n "checking for wint_t... " >&6; }
20279 if ${gt_cv_c_wint_t+:} false; then :
20280 $as_echo_n "(cached) " >&6
20282 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20283 /* end confdefs.h. */
20285 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
20287 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be included
20288 before <wchar.h>. */
20289 #include <stddef.h>
20293 wint_t foo = (wchar_t)'\0';
20302 if ac_fn_c_try_compile "$LINENO"; then :
20307 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wint_t" >&5
20310 $as_echo "$gt_cv_c_wint_t" >&6; }
20311 if test $gt_cv_c_wint_t = yes; then
20313 $as_echo "#define HAVE_WINT_T 1" >>confdefs.h
20330 if test $ac_cv_header_features_h = yes; then
20338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
20339 $as_echo_n "checking for inttypes.h... " >&6; }
20340 if ${gl_cv_header_inttypes_h+:} false; then :
20341 $as_echo_n "(cached) " >&6
20343 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20344 /* end confdefs.h. */
20346 #include <sys/types.h>
20347 #include <inttypes.h>
20352 uintmax_t i = (uintmax_t) -1; return !i;
20357 if ac_fn_c_try_compile "$LINENO"; then :
20358 gl_cv_header_inttypes_h=yes
20360 gl_cv_header_inttypes_h=no
20362 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_inttypes_h" >&5
20365 $as_echo "$gl_cv_header_inttypes_h" >&6; }
20366 if test $gl_cv_header_inttypes_h = yes; then
20368 cat >>confdefs.h <<_ACEOF
20369 #define HAVE_INTTYPES_H_WITH_UINTMAX 1
20375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint.h" >&5
20376 $as_echo_n "checking for stdint.h... " >&6; }
20377 if ${gl_cv_header_stdint_h+:} false; then :
20378 $as_echo_n "(cached) " >&6
20380 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20381 /* end confdefs.h. */
20382 #include <sys/types.h>
20383 #include <stdint.h>
20387 uintmax_t i = (uintmax_t) -1; return !i;
20392 if ac_fn_c_try_compile "$LINENO"; then :
20393 gl_cv_header_stdint_h=yes
20395 gl_cv_header_stdint_h=no
20397 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_stdint_h" >&5
20400 $as_echo "$gl_cv_header_stdint_h" >&6; }
20401 if test $gl_cv_header_stdint_h = yes; then
20403 cat >>confdefs.h <<_ACEOF
20404 #define HAVE_STDINT_H_WITH_UINTMAX 1
20412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intmax_t" >&5
20413 $as_echo_n "checking for intmax_t... " >&6; }
20414 if ${gt_cv_c_intmax_t+:} false; then :
20415 $as_echo_n "(cached) " >&6
20417 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20418 /* end confdefs.h. */
20420 #include <stddef.h>
20421 #include <stdlib.h>
20422 #if HAVE_STDINT_H_WITH_UINTMAX
20423 #include <stdint.h>
20425 #if HAVE_INTTYPES_H_WITH_UINTMAX
20426 #include <inttypes.h>
20432 intmax_t x = -1; return !x;
20437 if ac_fn_c_try_compile "$LINENO"; then :
20438 gt_cv_c_intmax_t=yes
20440 gt_cv_c_intmax_t=no
20442 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_intmax_t" >&5
20445 $as_echo "$gt_cv_c_intmax_t" >&6; }
20446 if test $gt_cv_c_intmax_t = yes; then
20448 $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
20452 test $ac_cv_type_long_long_int = yes \
20453 && ac_type='long long' \
20456 cat >>confdefs.h <<_ACEOF
20457 #define intmax_t $ac_type
20463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the exponent in a 'double'" >&5
20464 $as_echo_n "checking where to find the exponent in a 'double'... " >&6; }
20465 if ${gl_cv_cc_double_expbit0+:} false; then :
20466 $as_echo_n "(cached) " >&6
20469 if test "$cross_compiling" = yes; then :
20471 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20472 /* end confdefs.h. */
20474 #if defined arm || defined __arm || defined __arm__
20479 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20480 $EGREP "mixed_endianness" >/dev/null 2>&1; then :
20481 gl_cv_cc_double_expbit0="unknown"
20485 if ${ac_cv_c_bigendian+:} false; then :
20486 $as_echo_n "(cached) " >&6
20488 ac_cv_c_bigendian=unknown
20489 # See if we're dealing with a universal compiler.
20490 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20491 /* end confdefs.h. */
20492 #ifndef __APPLE_CC__
20493 not a universal capable compiler
20498 if ac_fn_c_try_compile "$LINENO"; then :
20500 # Check for potential -arch flags. It is not universal unless
20501 # there are at least two -arch flags with different values.
20504 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
20505 if test -n "$ac_prev"; then
20507 i?86 | x86_64 | ppc | ppc64)
20508 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
20511 ac_cv_c_bigendian=universal
20517 elif test "x$ac_word" = "x-arch"; then
20522 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20523 if test $ac_cv_c_bigendian = unknown; then
20524 # See if sys/param.h defines the BYTE_ORDER macro.
20525 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20526 /* end confdefs.h. */
20527 #include <sys/types.h>
20528 #include <sys/param.h>
20533 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
20534 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
20536 bogus endian macros
20543 if ac_fn_c_try_compile "$LINENO"; then :
20544 # It does; now see whether it defined to BIG_ENDIAN or not.
20545 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20546 /* end confdefs.h. */
20547 #include <sys/types.h>
20548 #include <sys/param.h>
20553 #if BYTE_ORDER != BIG_ENDIAN
20561 if ac_fn_c_try_compile "$LINENO"; then :
20562 ac_cv_c_bigendian=yes
20564 ac_cv_c_bigendian=no
20566 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20568 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20570 if test $ac_cv_c_bigendian = unknown; then
20571 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
20572 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20573 /* end confdefs.h. */
20574 #include <limits.h>
20579 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
20580 bogus endian macros
20587 if ac_fn_c_try_compile "$LINENO"; then :
20588 # It does; now see whether it defined to _BIG_ENDIAN or not.
20589 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20590 /* end confdefs.h. */
20591 #include <limits.h>
20596 #ifndef _BIG_ENDIAN
20604 if ac_fn_c_try_compile "$LINENO"; then :
20605 ac_cv_c_bigendian=yes
20607 ac_cv_c_bigendian=no
20609 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20611 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20613 if test $ac_cv_c_bigendian = unknown; then
20614 # Compile a test program.
20615 if test "$cross_compiling" = yes; then :
20616 # Try to guess by grepping values from an object file.
20617 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20618 /* end confdefs.h. */
20619 short int ascii_mm[] =
20620 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
20621 short int ascii_ii[] =
20622 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
20623 int use_ascii (int i) {
20624 return ascii_mm[i] + ascii_ii[i];
20626 short int ebcdic_ii[] =
20627 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
20628 short int ebcdic_mm[] =
20629 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
20630 int use_ebcdic (int i) {
20631 return ebcdic_mm[i] + ebcdic_ii[i];
20638 return use_ascii (foo) == use_ebcdic (foo);
20643 if ac_fn_c_try_compile "$LINENO"; then :
20644 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
20645 ac_cv_c_bigendian=yes
20647 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
20648 if test "$ac_cv_c_bigendian" = unknown; then
20649 ac_cv_c_bigendian=no
20651 # finding both strings is unlikely to happen, but who knows?
20652 ac_cv_c_bigendian=unknown
20656 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20658 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20659 /* end confdefs.h. */
20660 $ac_includes_default
20665 /* Are we little or big endian? From Harbison&Steele. */
20669 char c[sizeof (long int)];
20672 return u.c[sizeof (long int) - 1] == 1;
20678 if ac_fn_c_try_run "$LINENO"; then :
20679 ac_cv_c_bigendian=no
20681 ac_cv_c_bigendian=yes
20683 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20684 conftest.$ac_objext conftest.beam conftest.$ac_ext
20690 case $ac_cv_c_bigendian in #(
20692 gl_cv_cc_double_expbit0="word 0 bit 20";; #(
20694 gl_cv_cc_double_expbit0="word 1 bit 20" ;; #(
20697 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
20701 gl_cv_cc_double_expbit0="unknown" ;;
20710 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20711 /* end confdefs.h. */
20714 #include <stddef.h>
20716 #include <string.h>
20718 ((sizeof (double) + sizeof (unsigned int) - 1) / sizeof (unsigned int))
20719 typedef union { double value; unsigned int word[NWORDS]; } memory_double;
20720 static unsigned int ored_words[NWORDS];
20721 static unsigned int anded_words[NWORDS];
20722 static void add_to_ored_words (double x)
20726 /* Clear it first, in case sizeof (double) < sizeof (memory_double). */
20727 memset (&m, 0, sizeof (memory_double));
20729 for (i = 0; i < NWORDS; i++)
20731 ored_words[i] |= m.word[i];
20732 anded_words[i] &= m.word[i];
20738 FILE *fp = fopen ("conftest.out", "w");
20741 for (j = 0; j < NWORDS; j++)
20742 anded_words[j] = ~ (unsigned int) 0;
20743 add_to_ored_words (0.25);
20744 add_to_ored_words (0.5);
20745 add_to_ored_words (1.0);
20746 add_to_ored_words (2.0);
20747 add_to_ored_words (4.0);
20748 /* Remove bits that are common (e.g. if representation of the first mantissa
20749 bit is explicit). */
20750 for (j = 0; j < NWORDS; j++)
20751 ored_words[j] &= ~anded_words[j];
20752 /* Now find the nonzero word. */
20753 for (j = 0; j < NWORDS; j++)
20754 if (ored_words[j] != 0)
20759 for (i = j + 1; i < NWORDS; i++)
20760 if (ored_words[i] != 0)
20762 fprintf (fp, "unknown");
20763 return (fclose (fp) != 0);
20766 if ((ored_words[j] >> i) & 1)
20768 fprintf (fp, "word %d bit %d", (int) j, (int) i);
20769 return (fclose (fp) != 0);
20772 fprintf (fp, "unknown");
20773 return (fclose (fp) != 0);
20777 if ac_fn_c_try_run "$LINENO"; then :
20778 gl_cv_cc_double_expbit0=`cat conftest.out`
20780 gl_cv_cc_double_expbit0="unknown"
20782 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20783 conftest.$ac_objext conftest.beam conftest.$ac_ext
20789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_double_expbit0" >&5
20790 $as_echo "$gl_cv_cc_double_expbit0" >&6; }
20791 case "$gl_cv_cc_double_expbit0" in
20793 word=`echo "$gl_cv_cc_double_expbit0" | sed -e 's/word //' -e 's/ bit.*//'`
20794 bit=`echo "$gl_cv_cc_double_expbit0" | sed -e 's/word.*bit //'`
20796 cat >>confdefs.h <<_ACEOF
20797 #define DBL_EXPBIT0_WORD $word
20801 cat >>confdefs.h <<_ACEOF
20802 #define DBL_EXPBIT0_BIT $bit
20813 for ac_func in snprintf strnlen wcslen wcsnlen mbrtowc wcrtomb
20815 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20816 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
20817 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
20818 cat >>confdefs.h <<_ACEOF
20819 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20825 ac_fn_c_check_decl "$LINENO" "_snprintf" "ac_cv_have_decl__snprintf" "#include <stdio.h>
20827 if test "x$ac_cv_have_decl__snprintf" = xyes; then :
20833 cat >>confdefs.h <<_ACEOF
20834 #define HAVE_DECL__SNPRINTF $ac_have_decl
20839 case "$gl_cv_func_snprintf_retval_c99" in
20842 $as_echo "#define HAVE_SNPRINTF_RETVAL_C99 1" >>confdefs.h
20853 GNULIB_MBSRTOWCS=0;
20854 GNULIB_MBSNRTOWCS=0;
20856 GNULIB_WCSRTOMBS=0;
20857 GNULIB_WCSNRTOMBS=0;
20874 GNULIB_WCSCASECMP=0;
20875 GNULIB_WCSNCASECMP=0;
20912 HAVE_WCSNCASECMP=1;
20925 HAVE_DECL_WCWIDTH=1;
20926 REPLACE_MBSTATE_T=0;
20932 REPLACE_MBSRTOWCS=0;
20933 REPLACE_MBSNRTOWCS=0;
20935 REPLACE_WCSRTOMBS=0;
20936 REPLACE_WCSNRTOMBS=0;
20938 REPLACE_WCSWIDTH=0;
20941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <wchar.h> uses 'inline' correctly" >&5
20942 $as_echo_n "checking whether <wchar.h> uses 'inline' correctly... " >&6; }
20943 if ${gl_cv_header_wchar_h_correct_inline+:} false; then :
20944 $as_echo_n "(cached) " >&6
20946 gl_cv_header_wchar_h_correct_inline=yes
20947 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20948 /* end confdefs.h. */
20950 #define wcstod renamed_wcstod
20951 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
20953 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
20954 included before <wchar.h>. */
20955 #include <stddef.h>
20959 extern int zero (void);
20960 int main () { return zero(); }
20963 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
20964 (eval $ac_compile) 2>&5
20966 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20967 test $ac_status = 0; }; then
20968 mv conftest.$ac_objext conftest1.$ac_objext
20969 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20970 /* end confdefs.h. */
20972 #define wcstod renamed_wcstod
20973 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
20975 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
20976 included before <wchar.h>. */
20977 #include <stddef.h>
20981 int zero (void) { return 0; }
20984 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
20985 (eval $ac_compile) 2>&5
20987 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20988 test $ac_status = 0; }; then
20989 mv conftest.$ac_objext conftest2.$ac_objext
20990 if $CC -o conftest$ac_exeext $CFLAGS $LDFLAGS conftest1.$ac_objext conftest2.$ac_objext $LIBS >&5 2>&1; then
20993 gl_cv_header_wchar_h_correct_inline=no
20997 rm -f conftest1.$ac_objext conftest2.$ac_objext conftest$ac_exeext
21000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_wchar_h_correct_inline" >&5
21001 $as_echo "$gl_cv_header_wchar_h_correct_inline" >&6; }
21002 if test $gl_cv_header_wchar_h_correct_inline = no; then
21003 as_fn_error $? "<wchar.h> cannot be used with this compiler ($CC $CFLAGS $CPPFLAGS).
21004 This is a known interoperability problem of glibc <= 2.5 with gcc >= 4.3 in
21005 C99 mode. You have four options:
21006 - Add the flag -fgnu89-inline to CC and reconfigure, or
21007 - Fix your include files, using parts of
21008 <http://sourceware.org/git/?p=glibc.git;a=commitdiff;h=b037a293a48718af30d706c2e18c929d0e69a621>, or
21009 - Use a gcc version older than 4.3, or
21010 - Don't use the flags -std=c99 or -std=gnu99.
21011 Configuration aborted." "$LINENO" 5
21016 GL_COND_LIBTOOL_TRUE=
21017 GL_COND_LIBTOOL_FALSE='#'
21019 GL_COND_LIBTOOL_TRUE='#'
21020 GL_COND_LIBTOOL_FALSE=
21023 gl_cond_libtool=true
21024 gl_m4_base='gnulib/m4'
21034 gl_source_base='gnulib/lib'
21037 if test $ac_cv_func_alloca_works = no; then
21041 # Define an additional variable used in the Makefile substitution.
21042 if test $ac_cv_working_alloca_h = yes; then
21043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca as a compiler built-in" >&5
21044 $as_echo_n "checking for alloca as a compiler built-in... " >&6; }
21045 if ${gl_cv_rpl_alloca+:} false; then :
21046 $as_echo_n "(cached) " >&6
21049 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21050 /* end confdefs.h. */
21052 #if defined __GNUC__ || defined _AIX || defined _MSC_VER
21057 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21058 $EGREP "Need own alloca" >/dev/null 2>&1; then :
21059 gl_cv_rpl_alloca=yes
21061 gl_cv_rpl_alloca=no
21067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_rpl_alloca" >&5
21068 $as_echo "$gl_cv_rpl_alloca" >&6; }
21069 if test $gl_cv_rpl_alloca = yes; then
21071 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
21081 if test -n "$ALLOCA_H"; then
21082 GL_GENERATE_ALLOCA_H_TRUE=
21083 GL_GENERATE_ALLOCA_H_FALSE='#'
21085 GL_GENERATE_ALLOCA_H_TRUE='#'
21086 GL_GENERATE_ALLOCA_H_FALSE=
21095 cat >>confdefs.h <<_ACEOF
21096 #define GNULIB_DIRNAME 1
21106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether // is distinct from /" >&5
21107 $as_echo_n "checking whether // is distinct from /... " >&6; }
21108 if ${gl_cv_double_slash_root+:} false; then :
21109 $as_echo_n "(cached) " >&6
21111 if test x"$cross_compiling" = xyes ; then
21112 # When cross-compiling, there is no way to tell whether // is special
21113 # short of a list of hosts. However, the only known hosts to date
21114 # that have a distinct // are Apollo DomainOS (too old to port to),
21115 # Cygwin, and z/OS. If anyone knows of another system for which // has
21116 # special semantics and is distinct from /, please report it to
21117 # <bug-gnulib@gnu.org>.
21119 *-cygwin | i370-ibm-openedition)
21120 gl_cv_double_slash_root=yes ;;
21122 # Be optimistic and assume that / and // are the same when we
21124 gl_cv_double_slash_root='unknown, assuming no' ;;
21127 set x `ls -di / // 2>/dev/null`
21128 if test "$2" = "$4" && wc //dev/null >/dev/null 2>&1; then
21129 gl_cv_double_slash_root=no
21131 gl_cv_double_slash_root=yes
21135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_double_slash_root" >&5
21136 $as_echo "$gl_cv_double_slash_root" >&6; }
21137 if test "$gl_cv_double_slash_root" = yes; then
21139 $as_echo "#define DOUBLE_SLASH_IS_DISTINCT_ROOT 1" >>confdefs.h
21155 $as_echo "#define GNULIB_TEST_ENVIRON 1" >>confdefs.h
21161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for error_at_line" >&5
21162 $as_echo_n "checking for error_at_line... " >&6; }
21163 if ${ac_cv_lib_error_at_line+:} false; then :
21164 $as_echo_n "(cached) " >&6
21166 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21167 /* end confdefs.h. */
21172 error_at_line (0, 0, "", 0, "an error occurred");
21177 if ac_fn_c_try_link "$LINENO"; then :
21178 ac_cv_lib_error_at_line=yes
21180 ac_cv_lib_error_at_line=no
21182 rm -f core conftest.err conftest.$ac_objext \
21183 conftest$ac_exeext conftest.$ac_ext
21185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_error_at_line" >&5
21186 $as_echo "$ac_cv_lib_error_at_line" >&6; }
21188 if test $ac_cv_lib_error_at_line = no; then
21197 gl_LIBOBJS="$gl_LIBOBJS error.$ac_objext"
21206 XGETTEXT_EXTRA_OPTIONS="$XGETTEXT_EXTRA_OPTIONS --flag=error:3:c-format"
21210 XGETTEXT_EXTRA_OPTIONS="$XGETTEXT_EXTRA_OPTIONS --flag=error_at_line:5:c-format"
21217 REPLACE_FLOAT_LDBL=0
21219 aix* | beos* | openbsd* | mirbsd* | irix*)
21223 case "$host_cpu" in
21228 # On x86_64 systems, the C compiler may still be generating
21230 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21231 /* end confdefs.h. */
21232 #if defined __LP64__ || defined __x86_64__ || defined __amd64__
21236 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21237 $EGREP "yes" >/dev/null 2>&1; then :
21248 case "$host_cpu" in
21256 aix* | freebsd* | linux*)
21257 if test -n "$FLOAT_H"; then
21258 REPLACE_FLOAT_LDBL=1
21264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether conversion from 'int' to 'long double' works" >&5
21265 $as_echo_n "checking whether conversion from 'int' to 'long double' works... " >&6; }
21266 if ${gl_cv_func_itold_works+:} false; then :
21267 $as_echo_n "(cached) " >&6
21270 if test "$cross_compiling" = yes; then :
21273 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21274 /* end confdefs.h. */
21275 #if defined __LP64__ || defined __arch64__
21279 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21280 $EGREP "yes" >/dev/null 2>&1; then :
21281 gl_cv_func_itold_works="guessing no"
21283 gl_cv_func_itold_works="guessing yes"
21288 *) gl_cv_func_itold_works="guessing yes" ;;
21292 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21293 /* end confdefs.h. */
21296 volatile long double ld;
21305 if ac_fn_c_try_run "$LINENO"; then :
21306 gl_cv_func_itold_works=yes
21308 gl_cv_func_itold_works=no
21310 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21311 conftest.$ac_objext conftest.beam conftest.$ac_ext
21316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_itold_works" >&5
21317 $as_echo "$gl_cv_func_itold_works" >&6; }
21318 case "$gl_cv_func_itold_works" in
21325 if test -n "$FLOAT_H"; then
21334 if test $gl_cv_have_include_next = yes; then
21335 gl_cv_next_float_h='<'float.h'>'
21337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <float.h>" >&5
21338 $as_echo_n "checking absolute name of <float.h>... " >&6; }
21339 if ${gl_cv_next_float_h+:} false; then :
21340 $as_echo_n "(cached) " >&6
21343 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21344 /* end confdefs.h. */
21349 aix*) gl_absname_cpp="$ac_cpp -C" ;;
21350 *) gl_absname_cpp="$ac_cpp" ;;
21355 gl_dirsep_regex='[/\\]'
21358 gl_dirsep_regex='\/'
21361 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
21363 gl_header_literal_regex=`echo 'float.h' \
21364 | sed -e "$gl_make_literal_regex_sed"`
21365 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
21366 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
21371 gl_cv_next_float_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
21372 sed -n "$gl_absolute_header_sed"`'"'
21376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_float_h" >&5
21377 $as_echo "$gl_cv_next_float_h" >&6; }
21379 NEXT_FLOAT_H=$gl_cv_next_float_h
21381 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
21382 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
21383 gl_next_as_first_directive='<'float.h'>'
21385 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
21386 gl_next_as_first_directive=$gl_cv_next_float_h
21388 NEXT_AS_FIRST_DIRECTIVE_FLOAT_H=$gl_next_as_first_directive
21395 if test -n "$FLOAT_H"; then
21396 GL_GENERATE_FLOAT_H_TRUE=
21397 GL_GENERATE_FLOAT_H_FALSE='#'
21399 GL_GENERATE_FLOAT_H_TRUE='#'
21400 GL_GENERATE_FLOAT_H_FALSE=
21405 if test $REPLACE_FLOAT_LDBL = 1; then
21414 gl_LIBOBJS="$gl_LIBOBJS float.$ac_objext"
21417 if test $REPLACE_ITOLD = 1; then
21426 gl_LIBOBJS="$gl_LIBOBJS itold.$ac_objext"
21433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler flag to ignore unused libraries" >&5
21434 $as_echo_n "checking for C compiler flag to ignore unused libraries... " >&6; }
21435 if ${gl_cv_prog_c_ignore_unused_libraries+:} false; then :
21436 $as_echo_n "(cached) " >&6
21438 gl_cv_prog_c_ignore_unused_libraries=none
21439 gl_saved_ldflags=$LDFLAGS
21440 gl_saved_libs=$LIBS
21441 # Link with -lm to detect binutils 2.16 bug with --as-needed; see
21442 # <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00131.html>.
21444 # Use long option sequences like '-z ignore' to test for the feature,
21445 # to forestall problems with linkers that have -z, -i, -g, -n, etc. flags.
21446 # GCC + binutils likes '-Wl,--as-needed'.
21447 # GCC + Solaris ld likes '-Wl,-z,ignore'.
21448 # Sun C likes '-Wl,-z,ignore'. '-z ignore' is accepted but has no effect.
21449 # Don't try bare '--as-needed'; nothing likes it and the HP-UX 11.11
21450 # native cc issues annoying warnings and then ignores it,
21451 # which would cause us to incorrectly conclude that it worked.
21452 for gl_flags in '-Wl,--as-needed' \
21457 LDFLAGS="$gl_flags $LDFLAGS"
21458 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21459 /* end confdefs.h. */
21469 if ac_fn_c_try_link "$LINENO"; then :
21470 gl_cv_prog_c_ignore_unused_libraries=$gl_flags
21472 rm -f core conftest.err conftest.$ac_objext \
21473 conftest$ac_exeext conftest.$ac_ext
21474 LDFLAGS=$gl_saved_ldflags
21475 test "$gl_cv_prog_c_ignore_unused_libraries" != none &&
21478 LIBS=$gl_saved_libs
21481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_prog_c_ignore_unused_libraries" >&5
21482 $as_echo "$gl_cv_prog_c_ignore_unused_libraries" >&6; }
21483 IGNORE_UNUSED_LIBRARIES_CFLAGS=
21484 if test "$gl_cv_prog_c_ignore_unused_libraries" != none; then
21485 IGNORE_UNUSED_LIBRARIES_CFLAGS="$gl_cv_prog_c_ignore_unused_libraries"
21491 if test "$gl_threads_api" = posix; then
21492 # OSF/1 4.0 and Mac OS X 10.1 lack the pthread_rwlock_t type and the
21493 # pthread_rwlock_* functions.
21494 ac_fn_c_check_type "$LINENO" "pthread_rwlock_t" "ac_cv_type_pthread_rwlock_t" "#include <pthread.h>
21496 if test "x$ac_cv_type_pthread_rwlock_t" = xyes; then :
21498 $as_echo "#define HAVE_PTHREAD_RWLOCK 1" >>confdefs.h
21502 # glibc defines PTHREAD_MUTEX_RECURSIVE as enum, not as a macro.
21503 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21504 /* end confdefs.h. */
21506 #include <pthread.h>
21511 #if __FreeBSD__ == 4
21512 error "No, in FreeBSD 4.0 recursive mutexes actually don't work."
21513 #elif (defined __ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__ \
21514 && __ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__ < 1070)
21515 error "No, in Mac OS X < 10.7 recursive mutexes actually don't work."
21517 int x = (int)PTHREAD_MUTEX_RECURSIVE;
21525 if ac_fn_c_try_compile "$LINENO"; then :
21527 $as_echo "#define HAVE_PTHREAD_MUTEX_RECURSIVE 1" >>confdefs.h
21530 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21536 cat >>confdefs.h <<_ACEOF
21537 #define GNULIB_LOCK 1
21544 if test $gl_cv_func_malloc_posix = yes; then
21546 $as_echo "#define HAVE_MALLOC_POSIX 1" >>confdefs.h
21552 if test $REPLACE_MALLOC = 1; then
21561 gl_LIBOBJS="$gl_LIBOBJS malloc.$ac_objext"
21569 GNULIB_MALLOC_POSIX=1
21575 $as_echo "#define GNULIB_TEST_MALLOC_POSIX 1" >>confdefs.h
21584 if test $HAVE_MEMCHR = 0 || test $REPLACE_MEMCHR = 1; then
21593 gl_LIBOBJS="$gl_LIBOBJS memchr.$ac_objext"
21596 for ac_header in bp-sym.h
21598 ac_fn_c_check_header_mongrel "$LINENO" "bp-sym.h" "ac_cv_header_bp_sym_h" "$ac_includes_default"
21599 if test "x$ac_cv_header_bp_sym_h" = xyes; then :
21600 cat >>confdefs.h <<_ACEOF
21601 #define HAVE_BP_SYM_H 1
21621 $as_echo "#define GNULIB_TEST_MEMCHR 1" >>confdefs.h
21633 if test $ac_cv_func__set_invalid_parameter_handler = yes; then
21634 HAVE_MSVC_INVALID_PARAMETER_HANDLER=1
21636 $as_echo "#define HAVE_MSVC_INVALID_PARAMETER_HANDLER 1" >>confdefs.h
21639 HAVE_MSVC_INVALID_PARAMETER_HANDLER=0
21643 if test $HAVE_MSVC_INVALID_PARAMETER_HANDLER = 1; then
21652 gl_LIBOBJS="$gl_LIBOBJS msvc-inval.$ac_objext"
21658 if test $HAVE_MSVC_INVALID_PARAMETER_HANDLER = 1; then
21667 gl_LIBOBJS="$gl_LIBOBJS msvc-nothrow.$ac_objext"
21675 for ac_func in raise
21677 ac_fn_c_check_func "$LINENO" "raise" "ac_cv_func_raise"
21678 if test "x$ac_cv_func_raise" = xyes; then :
21679 cat >>confdefs.h <<_ACEOF
21680 #define HAVE_RAISE 1
21686 if test $ac_cv_func_raise = no; then
21689 if test $HAVE_MSVC_INVALID_PARAMETER_HANDLER = 1; then
21696 if test $gl_cv_type_sigset_t = yes; then
21697 ac_fn_c_check_func "$LINENO" "sigprocmask" "ac_cv_func_sigprocmask"
21698 if test "x$ac_cv_func_sigprocmask" = xyes; then :
21699 gl_cv_func_sigprocmask=1
21703 if test -z "$gl_cv_func_sigprocmask"; then
21704 HAVE_POSIX_SIGNALBLOCKING=0
21707 if test $HAVE_POSIX_SIGNALBLOCKING = 0; then
21713 if test $HAVE_RAISE = 0 || test $REPLACE_RAISE = 1; then
21722 gl_LIBOBJS="$gl_LIBOBJS raise.$ac_objext"
21737 $as_echo "#define GNULIB_TEST_RAISE 1" >>confdefs.h
21744 if test $HAVE_MSVC_INVALID_PARAMETER_HANDLER = 1; then
21749 if test $REPLACE_READ = 1; then
21758 gl_LIBOBJS="$gl_LIBOBJS read.$ac_objext"
21773 $as_echo "#define GNULIB_TEST_READ 1" >>confdefs.h
21787 if test $ac_cv_func_setenv = no; then
21790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether setenv validates arguments" >&5
21791 $as_echo_n "checking whether setenv validates arguments... " >&6; }
21792 if ${gl_cv_func_setenv_works+:} false; then :
21793 $as_echo_n "(cached) " >&6
21795 if test "$cross_compiling" = yes; then :
21797 # Guess yes on glibc systems.
21798 *-gnu*) gl_cv_func_setenv_works="guessing yes" ;;
21799 # If we don't know, assume the worst.
21800 *) gl_cv_func_setenv_works="guessing no" ;;
21804 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21805 /* end confdefs.h. */
21807 #include <stdlib.h>
21809 #include <string.h>
21817 if (setenv ("", "", 0) != -1)
21819 else if (errno != EINVAL)
21823 if (setenv ("a", "=", 1) != 0)
21825 else if (strcmp (getenv ("a"), "=") != 0)
21834 if ac_fn_c_try_run "$LINENO"; then :
21835 gl_cv_func_setenv_works=yes
21837 gl_cv_func_setenv_works=no
21839 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21840 conftest.$ac_objext conftest.beam conftest.$ac_ext
21844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_setenv_works" >&5
21845 $as_echo "$gl_cv_func_setenv_works" >&6; }
21846 case "$gl_cv_func_setenv_works" in
21854 if test $HAVE_SETENV = 0 || test $REPLACE_SETENV = 1; then
21863 gl_LIBOBJS="$gl_LIBOBJS setenv.$ac_objext"
21877 $as_echo "#define GNULIB_TEST_SETENV 1" >>confdefs.h
21890 if test $ac_cv_func_sigaction = yes; then
21891 ac_fn_c_check_member "$LINENO" "struct sigaction" "sa_sigaction" "ac_cv_member_struct_sigaction_sa_sigaction" "#include <signal.h>
21893 if test "x$ac_cv_member_struct_sigaction_sa_sigaction" = xyes; then :
21895 cat >>confdefs.h <<_ACEOF
21896 #define HAVE_STRUCT_SIGACTION_SA_SIGACTION 1
21902 if test $ac_cv_member_struct_sigaction_sa_sigaction = no; then
21903 HAVE_STRUCT_SIGACTION_SA_SIGACTION=0
21909 if test $HAVE_SIGACTION = 0; then
21918 gl_LIBOBJS="$gl_LIBOBJS sigaction.$ac_objext"
21935 ac_fn_c_check_type "$LINENO" "siginfo_t" "ac_cv_type_siginfo_t" "
21936 #include <signal.h>
21939 if test "x$ac_cv_type_siginfo_t" = xyes; then :
21941 cat >>confdefs.h <<_ACEOF
21942 #define HAVE_SIGINFO_T 1
21948 if test $ac_cv_type_siginfo_t = no; then
21964 $as_echo "#define GNULIB_TEST_SIGACTION 1" >>confdefs.h
21979 if test $gl_cv_have_include_next = yes; then
21980 gl_cv_next_signal_h='<'signal.h'>'
21982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <signal.h>" >&5
21983 $as_echo_n "checking absolute name of <signal.h>... " >&6; }
21984 if ${gl_cv_next_signal_h+:} false; then :
21985 $as_echo_n "(cached) " >&6
21988 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21989 /* end confdefs.h. */
21990 #include <signal.h>
21994 aix*) gl_absname_cpp="$ac_cpp -C" ;;
21995 *) gl_absname_cpp="$ac_cpp" ;;
22000 gl_dirsep_regex='[/\\]'
22003 gl_dirsep_regex='\/'
22006 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
22008 gl_header_literal_regex=`echo 'signal.h' \
22009 | sed -e "$gl_make_literal_regex_sed"`
22010 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
22011 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
22016 gl_cv_next_signal_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
22017 sed -n "$gl_absolute_header_sed"`'"'
22021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_signal_h" >&5
22022 $as_echo "$gl_cv_next_signal_h" >&6; }
22024 NEXT_SIGNAL_H=$gl_cv_next_signal_h
22026 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
22027 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
22028 gl_next_as_first_directive='<'signal.h'>'
22030 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
22031 gl_next_as_first_directive=$gl_cv_next_signal_h
22033 NEXT_AS_FIRST_DIRECTIVE_SIGNAL_H=$gl_next_as_first_directive
22039 # AIX declares sig_atomic_t to already include volatile, and C89 compilers
22040 # then choke on 'volatile sig_atomic_t'. C99 requires that it compile.
22041 ac_fn_c_check_type "$LINENO" "volatile sig_atomic_t" "ac_cv_type_volatile_sig_atomic_t" "
22042 #include <signal.h>
22045 if test "x$ac_cv_type_volatile_sig_atomic_t" = xyes; then :
22048 HAVE_TYPE_VOLATILE_SIG_ATOMIC_T=0
22057 ac_fn_c_check_type "$LINENO" "sighandler_t" "ac_cv_type_sighandler_t" "
22058 #include <signal.h>
22061 if test "x$ac_cv_type_sighandler_t" = xyes; then :
22064 HAVE_SIGHANDLER_T=0
22069 for gl_func in pthread_sigmask sigaction sigaddset sigdelset sigemptyset sigfillset sigismember sigpending sigprocmask; do
22070 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
22071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
22072 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
22073 if eval \${$as_gl_Symbol+:} false; then :
22074 $as_echo_n "(cached) " >&6
22076 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22077 /* end confdefs.h. */
22078 #include <signal.h>
22089 if ac_fn_c_try_compile "$LINENO"; then :
22090 eval "$as_gl_Symbol=yes"
22092 eval "$as_gl_Symbol=no"
22094 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22096 eval ac_res=\$$as_gl_Symbol
22097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
22098 $as_echo "$ac_res" >&6; }
22099 if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
22100 cat >>confdefs.h <<_ACEOF
22101 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
22104 eval ac_cv_have_decl_$gl_func=yes
22112 if test $gl_cv_type_sigset_t = yes; then
22113 ac_fn_c_check_func "$LINENO" "sigprocmask" "ac_cv_func_sigprocmask"
22114 if test "x$ac_cv_func_sigprocmask" = xyes; then :
22115 gl_cv_func_sigprocmask=1
22119 if test -z "$gl_cv_func_sigprocmask"; then
22120 HAVE_POSIX_SIGNALBLOCKING=0
22123 if test $HAVE_POSIX_SIGNALBLOCKING = 0; then
22132 gl_LIBOBJS="$gl_LIBOBJS sigprocmask.$ac_objext"
22141 GNULIB_SIGPROCMASK=1
22147 $as_echo "#define GNULIB_TEST_SIGPROCMASK 1" >>confdefs.h
22152 for ac_header in stdint.h
22154 ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
22155 if test "x$ac_cv_header_stdint_h" = xyes; then :
22156 cat >>confdefs.h <<_ACEOF
22157 #define HAVE_STDINT_H 1
22164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SIZE_MAX" >&5
22165 $as_echo_n "checking for SIZE_MAX... " >&6; }
22166 if ${gl_cv_size_max+:} false; then :
22167 $as_echo_n "(cached) " >&6
22171 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22172 /* end confdefs.h. */
22174 #include <limits.h>
22176 #include <stdint.h>
22183 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22184 $EGREP "Found it" >/dev/null 2>&1; then :
22189 if test -z "$gl_cv_size_max"; then
22190 if ac_fn_c_compute_int "$LINENO" "sizeof (size_t) * CHAR_BIT - 1" "size_t_bits_minus_1" "#include <stddef.h>
22191 #include <limits.h>"; then :
22194 size_t_bits_minus_1=
22197 if ac_fn_c_compute_int "$LINENO" "sizeof (size_t) <= sizeof (unsigned int)" "fits_in_uint" "#include <stddef.h>"; then :
22203 if test -n "$size_t_bits_minus_1" && test -n "$fits_in_uint"; then
22204 if test $fits_in_uint = 1; then
22205 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22206 /* end confdefs.h. */
22207 #include <stddef.h>
22209 extern unsigned long foo;
22219 if ac_fn_c_try_compile "$LINENO"; then :
22222 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22224 if test $fits_in_uint = 1; then
22225 gl_cv_size_max="(((1U << $size_t_bits_minus_1) - 1) * 2 + 1)"
22227 gl_cv_size_max="(((1UL << $size_t_bits_minus_1) - 1) * 2 + 1)"
22230 gl_cv_size_max='((size_t)~(size_t)0)'
22235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_size_max" >&5
22236 $as_echo "$gl_cv_size_max" >&6; }
22237 if test "$gl_cv_size_max" != yes; then
22239 cat >>confdefs.h <<_ACEOF
22240 #define SIZE_MAX $gl_cv_size_max
22248 gl_cv_func_snprintf_usable=no
22249 for ac_func in snprintf
22251 ac_fn_c_check_func "$LINENO" "snprintf" "ac_cv_func_snprintf"
22252 if test "x$ac_cv_func_snprintf" = xyes; then :
22253 cat >>confdefs.h <<_ACEOF
22254 #define HAVE_SNPRINTF 1
22260 if test $ac_cv_func_snprintf = yes; then
22264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether snprintf respects a size of 1" >&5
22265 $as_echo_n "checking whether snprintf respects a size of 1... " >&6; }
22266 if ${gl_cv_func_snprintf_size1+:} false; then :
22267 $as_echo_n "(cached) " >&6
22270 if test "$cross_compiling" = yes; then :
22271 gl_cv_func_snprintf_size1="guessing yes"
22273 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22274 /* end confdefs.h. */
22278 # define my_snprintf snprintf
22280 # include <stdarg.h>
22281 static int my_snprintf (char *buf, int size, const char *format, ...)
22285 va_start (args, format);
22286 ret = vsnprintf (buf, size, format, args);
22293 static char buf[8] = { 'D', 'E', 'A', 'D', 'B', 'E', 'E', 'F' };
22294 my_snprintf (buf, 1, "%d", 12345);
22295 return buf[1] != 'E';
22298 if ac_fn_c_try_run "$LINENO"; then :
22299 gl_cv_func_snprintf_size1=yes
22301 gl_cv_func_snprintf_size1=no
22303 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22304 conftest.$ac_objext conftest.beam conftest.$ac_ext
22309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_snprintf_size1" >&5
22310 $as_echo "$gl_cv_func_snprintf_size1" >&6; }
22312 case "$gl_cv_func_snprintf_size1" in
22315 case "$gl_cv_func_snprintf_retval_c99" in
22319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether printf supports POSIX/XSI format strings with positions" >&5
22320 $as_echo_n "checking whether printf supports POSIX/XSI format strings with positions... " >&6; }
22321 if ${gl_cv_func_printf_positions+:} false; then :
22322 $as_echo_n "(cached) " >&6
22325 if test "$cross_compiling" = yes; then :
22328 netbsd[1-3]* | netbsdelf[1-3]* | netbsdaout[1-3]* | netbsdcoff[1-3]*)
22329 gl_cv_func_printf_positions="guessing no";;
22330 beos*) gl_cv_func_printf_positions="guessing no";;
22331 mingw* | pw*) gl_cv_func_printf_positions="guessing no";;
22332 *) gl_cv_func_printf_positions="guessing yes";;
22336 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22337 /* end confdefs.h. */
22340 #include <string.h>
22341 /* The string "%2$d %1$d", with dollar characters protected from the shell's
22342 dollar expansion (possibly an autoconf bug). */
22343 static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' };
22344 static char buf[100];
22347 sprintf (buf, format, 33, 55);
22348 return (strcmp (buf, "55 33") != 0);
22351 if ac_fn_c_try_run "$LINENO"; then :
22352 gl_cv_func_printf_positions=yes
22354 gl_cv_func_printf_positions=no
22356 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22357 conftest.$ac_objext conftest.beam conftest.$ac_ext
22362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_printf_positions" >&5
22363 $as_echo "$gl_cv_func_printf_positions" >&6; }
22365 case "$gl_cv_func_printf_positions" in
22367 gl_cv_func_snprintf_usable=yes
22375 if test $gl_cv_func_snprintf_usable = no; then
22386 gl_LIBOBJS="$gl_LIBOBJS snprintf.$ac_objext"
22388 if test $ac_cv_func_snprintf = yes; then
22401 if test $ac_cv_have_decl_snprintf = no; then
22402 HAVE_DECL_SNPRINTF=0
22416 $as_echo "#define GNULIB_TEST_SNPRINTF 1" >>confdefs.h
22422 cat >>confdefs.h <<_ACEOF
22423 #define GNULIB_SNPRINTF 1
22428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ssize_t" >&5
22429 $as_echo_n "checking for ssize_t... " >&6; }
22430 if ${gt_cv_ssize_t+:} false; then :
22431 $as_echo_n "(cached) " >&6
22433 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22434 /* end confdefs.h. */
22435 #include <sys/types.h>
22439 int x = sizeof (ssize_t *) + sizeof (ssize_t);
22445 if ac_fn_c_try_compile "$LINENO"; then :
22450 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_ssize_t" >&5
22453 $as_echo "$gt_cv_ssize_t" >&6; }
22454 if test $gt_cv_ssize_t = no; then
22456 $as_echo "#define ssize_t int" >>confdefs.h
22462 NEXT_STDARG_H='<stdarg.h>'
22463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for va_copy" >&5
22464 $as_echo_n "checking for va_copy... " >&6; }
22465 if ${gl_cv_func_va_copy+:} false; then :
22466 $as_echo_n "(cached) " >&6
22469 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22470 /* end confdefs.h. */
22471 #include <stdarg.h>
22477 void (*func) (va_list, va_list) = va_copy;
22484 if ac_fn_c_try_compile "$LINENO"; then :
22485 gl_cv_func_va_copy=yes
22487 gl_cv_func_va_copy=no
22489 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_va_copy" >&5
22493 $as_echo "$gl_cv_func_va_copy" >&6; }
22494 if test $gl_cv_func_va_copy = no; then
22495 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22496 /* end confdefs.h. */
22497 #if defined _AIX && !defined __GNUC__
22502 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22503 $EGREP "vaccine" >/dev/null 2>&1; then :
22510 if test $gl_aixcc = yes; then
22520 if test $gl_cv_have_include_next = yes; then
22521 gl_cv_next_stdarg_h='<'stdarg.h'>'
22523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdarg.h>" >&5
22524 $as_echo_n "checking absolute name of <stdarg.h>... " >&6; }
22525 if ${gl_cv_next_stdarg_h+:} false; then :
22526 $as_echo_n "(cached) " >&6
22529 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22530 /* end confdefs.h. */
22531 #include <stdarg.h>
22535 aix*) gl_absname_cpp="$ac_cpp -C" ;;
22536 *) gl_absname_cpp="$ac_cpp" ;;
22541 gl_dirsep_regex='[/\\]'
22544 gl_dirsep_regex='\/'
22547 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
22549 gl_header_literal_regex=`echo 'stdarg.h' \
22550 | sed -e "$gl_make_literal_regex_sed"`
22551 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
22552 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
22557 gl_cv_next_stdarg_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
22558 sed -n "$gl_absolute_header_sed"`'"'
22562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdarg_h" >&5
22563 $as_echo "$gl_cv_next_stdarg_h" >&6; }
22565 NEXT_STDARG_H=$gl_cv_next_stdarg_h
22567 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
22568 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
22569 gl_next_as_first_directive='<'stdarg.h'>'
22571 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
22572 gl_next_as_first_directive=$gl_cv_next_stdarg_h
22574 NEXT_AS_FIRST_DIRECTIVE_STDARG_H=$gl_next_as_first_directive
22579 if test "$gl_cv_next_stdarg_h" = '""'; then
22580 gl_cv_next_stdarg_h='"///usr/include/stdarg.h"'
22581 NEXT_STDARG_H="$gl_cv_next_stdarg_h"
22585 saved_as_echo_n="$as_echo_n"
22587 if ${gl_cv_func___va_copy+:} false; then :
22588 $as_echo_n "(cached) " >&6
22591 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22592 /* end confdefs.h. */
22593 #include <stdarg.h>
22606 if ac_fn_c_try_compile "$LINENO"; then :
22607 gl_cv_func___va_copy=yes
22609 gl_cv_func___va_copy=no
22611 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22614 as_echo_n="$saved_as_echo_n"
22616 if test $gl_cv_func___va_copy = yes; then
22618 $as_echo "#define va_copy __va_copy" >>confdefs.h
22623 $as_echo "#define va_copy gl_va_copy" >>confdefs.h
22629 if test -n "$STDARG_H"; then
22630 GL_GENERATE_STDARG_H_TRUE=
22631 GL_GENERATE_STDARG_H_FALSE='#'
22633 GL_GENERATE_STDARG_H_TRUE='#'
22634 GL_GENERATE_STDARG_H_FALSE=
22642 # Define two additional variables used in the Makefile substitution.
22644 if test "$ac_cv_header_stdbool_h" = yes; then
22647 STDBOOL_H='stdbool.h'
22650 if test -n "$STDBOOL_H"; then
22651 GL_GENERATE_STDBOOL_H_TRUE=
22652 GL_GENERATE_STDBOOL_H_FALSE='#'
22654 GL_GENERATE_STDBOOL_H_TRUE='#'
22655 GL_GENERATE_STDBOOL_H_FALSE=
22659 if test "$ac_cv_type__Bool" = yes; then
22670 if test $gt_cv_c_wchar_t = no; then
22674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NULL can be used in arbitrary expressions" >&5
22675 $as_echo_n "checking whether NULL can be used in arbitrary expressions... " >&6; }
22676 if ${gl_cv_decl_null_works+:} false; then :
22677 $as_echo_n "(cached) " >&6
22679 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22680 /* end confdefs.h. */
22681 #include <stddef.h>
22682 int test[2 * (sizeof NULL == sizeof (void *)) -1];
22692 if ac_fn_c_try_compile "$LINENO"; then :
22693 gl_cv_decl_null_works=yes
22695 gl_cv_decl_null_works=no
22697 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_decl_null_works" >&5
22700 $as_echo "$gl_cv_decl_null_works" >&6; }
22701 if test $gl_cv_decl_null_works = no; then
22706 if test -n "$STDDEF_H"; then
22707 GL_GENERATE_STDDEF_H_TRUE=
22708 GL_GENERATE_STDDEF_H_FALSE='#'
22710 GL_GENERATE_STDDEF_H_TRUE='#'
22711 GL_GENERATE_STDDEF_H_FALSE=
22714 if test -n "$STDDEF_H"; then
22723 if test $gl_cv_have_include_next = yes; then
22724 gl_cv_next_stddef_h='<'stddef.h'>'
22726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stddef.h>" >&5
22727 $as_echo_n "checking absolute name of <stddef.h>... " >&6; }
22728 if ${gl_cv_next_stddef_h+:} false; then :
22729 $as_echo_n "(cached) " >&6
22732 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22733 /* end confdefs.h. */
22734 #include <stddef.h>
22738 aix*) gl_absname_cpp="$ac_cpp -C" ;;
22739 *) gl_absname_cpp="$ac_cpp" ;;
22744 gl_dirsep_regex='[/\\]'
22747 gl_dirsep_regex='\/'
22750 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
22752 gl_header_literal_regex=`echo 'stddef.h' \
22753 | sed -e "$gl_make_literal_regex_sed"`
22754 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
22755 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
22760 gl_cv_next_stddef_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
22761 sed -n "$gl_absolute_header_sed"`'"'
22765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stddef_h" >&5
22766 $as_echo "$gl_cv_next_stddef_h" >&6; }
22768 NEXT_STDDEF_H=$gl_cv_next_stddef_h
22770 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
22771 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
22772 gl_next_as_first_directive='<'stddef.h'>'
22774 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
22775 gl_next_as_first_directive=$gl_cv_next_stddef_h
22777 NEXT_AS_FIRST_DIRECTIVE_STDDEF_H=$gl_next_as_first_directive
22795 if test $gl_cv_have_include_next = yes; then
22796 gl_cv_next_stdio_h='<'stdio.h'>'
22798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdio.h>" >&5
22799 $as_echo_n "checking absolute name of <stdio.h>... " >&6; }
22800 if ${gl_cv_next_stdio_h+:} false; then :
22801 $as_echo_n "(cached) " >&6
22804 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22805 /* end confdefs.h. */
22810 aix*) gl_absname_cpp="$ac_cpp -C" ;;
22811 *) gl_absname_cpp="$ac_cpp" ;;
22816 gl_dirsep_regex='[/\\]'
22819 gl_dirsep_regex='\/'
22822 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
22824 gl_header_literal_regex=`echo 'stdio.h' \
22825 | sed -e "$gl_make_literal_regex_sed"`
22826 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
22827 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
22832 gl_cv_next_stdio_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
22833 sed -n "$gl_absolute_header_sed"`'"'
22837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdio_h" >&5
22838 $as_echo "$gl_cv_next_stdio_h" >&6; }
22840 NEXT_STDIO_H=$gl_cv_next_stdio_h
22842 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
22843 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
22844 gl_next_as_first_directive='<'stdio.h'>'
22846 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
22847 gl_next_as_first_directive=$gl_cv_next_stdio_h
22849 NEXT_AS_FIRST_DIRECTIVE_STDIO_H=$gl_next_as_first_directive
22858 cat >>confdefs.h <<_ACEOF
22859 #define GNULIB_FSCANF 1
22866 cat >>confdefs.h <<_ACEOF
22867 #define GNULIB_SCANF 1
22892 for gl_func in dprintf fpurge fseeko ftello getdelim getline gets pclose popen renameat snprintf tmpfile vdprintf vsnprintf; do
22893 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
22894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
22895 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
22896 if eval \${$as_gl_Symbol+:} false; then :
22897 $as_echo_n "(cached) " >&6
22899 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22900 /* end confdefs.h. */
22912 if ac_fn_c_try_compile "$LINENO"; then :
22913 eval "$as_gl_Symbol=yes"
22915 eval "$as_gl_Symbol=no"
22917 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22919 eval ac_res=\$$as_gl_Symbol
22920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
22921 $as_echo "$ac_res" >&6; }
22922 if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
22923 cat >>confdefs.h <<_ACEOF
22924 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
22927 eval ac_cv_have_decl_$gl_func=yes
22942 if test $gl_cv_have_include_next = yes; then
22943 gl_cv_next_stdlib_h='<'stdlib.h'>'
22945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdlib.h>" >&5
22946 $as_echo_n "checking absolute name of <stdlib.h>... " >&6; }
22947 if ${gl_cv_next_stdlib_h+:} false; then :
22948 $as_echo_n "(cached) " >&6
22951 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22952 /* end confdefs.h. */
22953 #include <stdlib.h>
22957 aix*) gl_absname_cpp="$ac_cpp -C" ;;
22958 *) gl_absname_cpp="$ac_cpp" ;;
22963 gl_dirsep_regex='[/\\]'
22966 gl_dirsep_regex='\/'
22969 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
22971 gl_header_literal_regex=`echo 'stdlib.h' \
22972 | sed -e "$gl_make_literal_regex_sed"`
22973 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
22974 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
22979 gl_cv_next_stdlib_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
22980 sed -n "$gl_absolute_header_sed"`'"'
22984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdlib_h" >&5
22985 $as_echo "$gl_cv_next_stdlib_h" >&6; }
22987 NEXT_STDLIB_H=$gl_cv_next_stdlib_h
22989 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
22990 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
22991 gl_next_as_first_directive='<'stdlib.h'>'
22993 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
22994 gl_next_as_first_directive=$gl_cv_next_stdlib_h
22996 NEXT_AS_FIRST_DIRECTIVE_STDLIB_H=$gl_next_as_first_directive
23003 for gl_func in _Exit atoll canonicalize_file_name getloadavg getsubopt grantpt initstate initstate_r mkdtemp mkostemp mkostemps mkstemp mkstemps posix_openpt ptsname ptsname_r random random_r realpath rpmatch secure_getenv setenv setstate setstate_r srandom srandom_r strtod strtoll strtoull unlockpt unsetenv; do
23004 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
23005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
23006 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
23007 if eval \${$as_gl_Symbol+:} false; then :
23008 $as_echo_n "(cached) " >&6
23010 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23011 /* end confdefs.h. */
23012 #include <stdlib.h>
23013 #if HAVE_SYS_LOADAVG_H
23014 # include <sys/loadavg.h>
23017 # include <random.h>
23029 if ac_fn_c_try_compile "$LINENO"; then :
23030 eval "$as_gl_Symbol=yes"
23032 eval "$as_gl_Symbol=no"
23034 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23036 eval ac_res=\$$as_gl_Symbol
23037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
23038 $as_echo "$ac_res" >&6; }
23039 if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
23040 cat >>confdefs.h <<_ACEOF
23041 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
23044 eval ac_cv_have_decl_$gl_func=yes
23054 if test "$ERRNO_H:$REPLACE_STRERROR_0" = :0; then
23055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strerror function" >&5
23056 $as_echo_n "checking for working strerror function... " >&6; }
23057 if ${gl_cv_func_working_strerror+:} false; then :
23058 $as_echo_n "(cached) " >&6
23060 if test "$cross_compiling" = yes; then :
23062 # Guess yes on glibc systems.
23063 *-gnu*) gl_cv_func_working_strerror="guessing yes" ;;
23064 # If we don't know, assume the worst.
23065 *) gl_cv_func_working_strerror="guessing no" ;;
23069 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23070 /* end confdefs.h. */
23071 #include <string.h>
23076 if (!*strerror (-2)) return 1;
23081 if ac_fn_c_try_run "$LINENO"; then :
23082 gl_cv_func_working_strerror=yes
23084 gl_cv_func_working_strerror=no
23086 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23087 conftest.$ac_objext conftest.beam conftest.$ac_ext
23092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_working_strerror" >&5
23093 $as_echo "$gl_cv_func_working_strerror" >&6; }
23094 case "$gl_cv_func_working_strerror" in
23105 if test $REPLACE_STRERROR = 1; then
23114 gl_LIBOBJS="$gl_LIBOBJS strerror.$ac_objext"
23119 cat >>confdefs.h <<_ACEOF
23120 #define GNULIB_STRERROR 1
23135 $as_echo "#define GNULIB_TEST_STRERROR 1" >>confdefs.h
23141 if test -n "$ERRNO_H" || test $REPLACE_STRERROR_0 = 1; then
23150 gl_LIBOBJS="$gl_LIBOBJS strerror-override.$ac_objext"
23162 if test $ac_cv_header_sys_socket_h != yes; then
23163 for ac_header in winsock2.h
23165 ac_fn_c_check_header_mongrel "$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
23166 if test "x$ac_cv_header_winsock2_h" = xyes; then :
23167 cat >>confdefs.h <<_ACEOF
23168 #define HAVE_WINSOCK2_H 1
23176 if test "$ac_cv_header_winsock2_h" = yes; then
23178 UNISTD_H_HAVE_WINSOCK2_H=1
23179 SYS_IOCTL_H_HAVE_WINSOCK2_H=1
23207 if test $ac_cv_have_decl_strndup = no; then
23208 HAVE_DECL_STRNDUP=0
23211 if test $ac_cv_func_strndup = yes; then
23213 # AIX 4.3.3, AIX 5.1 have a function that fails to add the terminating '\0'.
23214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strndup" >&5
23215 $as_echo_n "checking for working strndup... " >&6; }
23216 if ${gl_cv_func_strndup_works+:} false; then :
23217 $as_echo_n "(cached) " >&6
23219 if test "$cross_compiling" = yes; then :
23222 aix | aix[3-6]*) gl_cv_func_strndup_works="guessing no";;
23223 *) gl_cv_func_strndup_works="guessing yes";;
23227 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23228 /* end confdefs.h. */
23230 #include <string.h>
23231 #include <stdlib.h>
23236 #if !HAVE_DECL_STRNDUP
23241 char *strndup (const char *, size_t);
23244 s = strndup ("some longer string", 15);
23246 s = strndup ("shorter string", 13);
23247 return s[13] != '\0';
23252 if ac_fn_c_try_run "$LINENO"; then :
23253 gl_cv_func_strndup_works=yes
23255 gl_cv_func_strndup_works=no
23257 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23258 conftest.$ac_objext conftest.beam conftest.$ac_ext
23262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_strndup_works" >&5
23263 $as_echo "$gl_cv_func_strndup_works" >&6; }
23264 case $gl_cv_func_strndup_works in
23265 *no) REPLACE_STRNDUP=1 ;;
23271 if test $HAVE_STRNDUP = 0 || test $REPLACE_STRNDUP = 1; then
23280 gl_LIBOBJS="$gl_LIBOBJS strndup.$ac_objext"
23294 $as_echo "#define GNULIB_TEST_STRNDUP 1" >>confdefs.h
23310 if test $ac_cv_have_decl_strnlen = no; then
23311 HAVE_DECL_STRNLEN=0
23314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strnlen" >&5
23315 $as_echo_n "checking for working strnlen... " >&6; }
23316 if ${ac_cv_func_strnlen_working+:} false; then :
23317 $as_echo_n "(cached) " >&6
23319 if test "$cross_compiling" = yes; then :
23320 # Guess no on AIX systems, yes otherwise.
23322 aix*) ac_cv_func_strnlen_working=no;;
23323 *) ac_cv_func_strnlen_working=yes;;
23326 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23327 /* end confdefs.h. */
23328 $ac_includes_default
23334 #define S_LEN (sizeof S - 1)
23336 /* At least one implementation is buggy: that of AIX 4.3 would
23337 give strnlen (S, 1) == 3. */
23340 for (i = 0; i < S_LEN + 1; ++i)
23342 int expected = i <= S_LEN ? i : S_LEN;
23343 if (strnlen (S, i) != expected)
23352 if ac_fn_c_try_run "$LINENO"; then :
23353 ac_cv_func_strnlen_working=yes
23355 ac_cv_func_strnlen_working=no
23357 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23358 conftest.$ac_objext conftest.beam conftest.$ac_ext
23362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strnlen_working" >&5
23363 $as_echo "$ac_cv_func_strnlen_working" >&6; }
23364 test $ac_cv_func_strnlen_working = no && :
23367 if test $ac_cv_func_strnlen_working = no; then
23372 if test $HAVE_DECL_STRNLEN = 0 || test $REPLACE_STRNLEN = 1; then
23381 gl_LIBOBJS="$gl_LIBOBJS strnlen.$ac_objext"
23396 $as_echo "#define GNULIB_TEST_STRNLEN 1" >>confdefs.h
23412 if test $ac_cv_have_decl_strsignal = no; then
23413 HAVE_DECL_STRSIGNAL=0
23416 for ac_func in strsignal
23418 ac_fn_c_check_func "$LINENO" "strsignal" "ac_cv_func_strsignal"
23419 if test "x$ac_cv_func_strsignal" = xyes; then :
23420 cat >>confdefs.h <<_ACEOF
23421 #define HAVE_STRSIGNAL 1
23427 if test $ac_cv_func_strsignal = yes; then
23429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strsignal always returns a string" >&5
23430 $as_echo_n "checking whether strsignal always returns a string... " >&6; }
23431 if ${gl_cv_func_working_strsignal+:} false; then :
23432 $as_echo_n "(cached) " >&6
23434 if test "$cross_compiling" = yes; then :
23436 solaris* | aix*) gl_cv_func_working_strsignal=no;;
23437 *) gl_cv_func_working_strsignal="guessing yes";;
23440 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23441 /* end confdefs.h. */
23442 #include <string.h>
23443 #include <unistd.h> /* NetBSD 5.0 declares it in wrong header. */
23449 char *s = strsignal (-1);
23450 if (s == (char *) 0)
23452 if (s == (char *) -1)
23460 if ac_fn_c_try_run "$LINENO"; then :
23461 gl_cv_func_working_strsignal=yes
23463 gl_cv_func_working_strsignal=no
23465 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23466 conftest.$ac_objext conftest.beam conftest.$ac_ext
23470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_working_strsignal" >&5
23471 $as_echo "$gl_cv_func_working_strsignal" >&6; }
23472 if test "$gl_cv_func_working_strsignal" = no; then
23473 REPLACE_STRSIGNAL=1
23479 if test $HAVE_STRSIGNAL = 0 || test $REPLACE_STRSIGNAL = 1; then
23488 gl_LIBOBJS="$gl_LIBOBJS strsignal.$ac_objext"
23499 ac_fn_c_check_decl "$LINENO" "_sys_siglist" "ac_cv_have_decl__sys_siglist" "#include <signal.h>
23501 if test "x$ac_cv_have_decl__sys_siglist" = xyes; then :
23507 cat >>confdefs.h <<_ACEOF
23508 #define HAVE_DECL__SYS_SIGLIST $ac_have_decl
23524 $as_echo "#define GNULIB_TEST_STRSIGNAL 1" >>confdefs.h
23531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <sys/select.h> is self-contained" >&5
23532 $as_echo_n "checking whether <sys/select.h> is self-contained... " >&6; }
23533 if ${gl_cv_header_sys_select_h_selfcontained+:} false; then :
23534 $as_echo_n "(cached) " >&6
23537 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23538 /* end confdefs.h. */
23539 #include <sys/select.h>
23548 if ac_fn_c_try_compile "$LINENO"; then :
23549 gl_cv_header_sys_select_h_selfcontained=yes
23551 gl_cv_header_sys_select_h_selfcontained=no
23553 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23554 if test $gl_cv_header_sys_select_h_selfcontained = yes; then
23555 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23556 /* end confdefs.h. */
23557 #include <sys/select.h>
23561 int memset; int bzero;
23567 if ac_fn_c_try_compile "$LINENO"; then :
23568 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23569 /* end confdefs.h. */
23570 #include <sys/select.h>
23576 #define memset nonexistent_memset
23581 void *memset (void *, int, unsigned long);
23583 #define bzero nonexistent_bzero
23588 void bzero (void *, unsigned long);
23597 if ac_fn_c_try_link "$LINENO"; then :
23600 gl_cv_header_sys_select_h_selfcontained=no
23602 rm -f core conftest.err conftest.$ac_objext \
23603 conftest$ac_exeext conftest.$ac_ext
23606 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_sys_select_h_selfcontained" >&5
23611 $as_echo "$gl_cv_header_sys_select_h_selfcontained" >&6; }
23627 if test $gl_cv_have_include_next = yes; then
23628 gl_cv_next_sys_select_h='<'sys/select.h'>'
23630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/select.h>" >&5
23631 $as_echo_n "checking absolute name of <sys/select.h>... " >&6; }
23632 if ${gl_cv_next_sys_select_h+:} false; then :
23633 $as_echo_n "(cached) " >&6
23636 if test $ac_cv_header_sys_select_h = yes; then
23639 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23640 /* end confdefs.h. */
23641 #include <sys/select.h>
23645 aix*) gl_absname_cpp="$ac_cpp -C" ;;
23646 *) gl_absname_cpp="$ac_cpp" ;;
23651 gl_dirsep_regex='[/\\]'
23654 gl_dirsep_regex='\/'
23657 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
23659 gl_header_literal_regex=`echo 'sys/select.h' \
23660 | sed -e "$gl_make_literal_regex_sed"`
23661 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
23662 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
23667 gl_cv_next_sys_select_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
23668 sed -n "$gl_absolute_header_sed"`'"'
23670 gl_cv_next_sys_select_h='<'sys/select.h'>'
23675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_select_h" >&5
23676 $as_echo "$gl_cv_next_sys_select_h" >&6; }
23678 NEXT_SYS_SELECT_H=$gl_cv_next_sys_select_h
23680 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
23681 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
23682 gl_next_as_first_directive='<'sys/select.h'>'
23684 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
23685 gl_next_as_first_directive=$gl_cv_next_sys_select_h
23687 NEXT_AS_FIRST_DIRECTIVE_SYS_SELECT_H=$gl_next_as_first_directive
23692 if test $ac_cv_header_sys_select_h = yes; then
23693 HAVE_SYS_SELECT_H=1
23695 HAVE_SYS_SELECT_H=0
23708 if test $ac_cv_header_sys_socket_h != yes; then
23709 for ac_header in winsock2.h
23711 ac_fn_c_check_header_mongrel "$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
23712 if test "x$ac_cv_header_winsock2_h" = xyes; then :
23713 cat >>confdefs.h <<_ACEOF
23714 #define HAVE_WINSOCK2_H 1
23722 if test "$ac_cv_header_winsock2_h" = yes; then
23724 UNISTD_H_HAVE_WINSOCK2_H=1
23725 SYS_IOCTL_H_HAVE_WINSOCK2_H=1
23733 for gl_func in pselect select; do
23734 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
23735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
23736 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
23737 if eval \${$as_gl_Symbol+:} false; then :
23738 $as_echo_n "(cached) " >&6
23740 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23741 /* end confdefs.h. */
23743 /* Some systems require prerequisite headers. */
23744 #include <sys/types.h>
23745 #if !(defined __GLIBC__ && !defined __UCLIBC__) && HAVE_SYS_TIME_H
23746 # include <sys/time.h>
23748 #include <sys/select.h>
23759 if ac_fn_c_try_compile "$LINENO"; then :
23760 eval "$as_gl_Symbol=yes"
23762 eval "$as_gl_Symbol=no"
23764 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23766 eval ac_res=\$$as_gl_Symbol
23767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
23768 $as_echo "$ac_res" >&6; }
23769 if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
23770 cat >>confdefs.h <<_ACEOF
23771 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
23774 eval ac_cv_have_decl_$gl_func=yes
23800 if test $gl_cv_have_include_next = yes; then
23801 gl_cv_next_sys_stat_h='<'sys/stat.h'>'
23803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/stat.h>" >&5
23804 $as_echo_n "checking absolute name of <sys/stat.h>... " >&6; }
23805 if ${gl_cv_next_sys_stat_h+:} false; then :
23806 $as_echo_n "(cached) " >&6
23809 if test $ac_cv_header_sys_stat_h = yes; then
23812 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23813 /* end confdefs.h. */
23814 #include <sys/stat.h>
23818 aix*) gl_absname_cpp="$ac_cpp -C" ;;
23819 *) gl_absname_cpp="$ac_cpp" ;;
23824 gl_dirsep_regex='[/\\]'
23827 gl_dirsep_regex='\/'
23830 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
23832 gl_header_literal_regex=`echo 'sys/stat.h' \
23833 | sed -e "$gl_make_literal_regex_sed"`
23834 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
23835 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
23840 gl_cv_next_sys_stat_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
23841 sed -n "$gl_absolute_header_sed"`'"'
23843 gl_cv_next_sys_stat_h='<'sys/stat.h'>'
23848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_stat_h" >&5
23849 $as_echo "$gl_cv_next_sys_stat_h" >&6; }
23851 NEXT_SYS_STAT_H=$gl_cv_next_sys_stat_h
23853 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
23854 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
23855 gl_next_as_first_directive='<'sys/stat.h'>'
23857 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
23858 gl_next_as_first_directive=$gl_cv_next_sys_stat_h
23860 NEXT_AS_FIRST_DIRECTIVE_SYS_STAT_H=$gl_next_as_first_directive
23872 if test $WINDOWS_64_BIT_ST_SIZE = 1; then
23874 $as_echo "#define _GL_WINDOWS_64_BIT_ST_SIZE 1" >>confdefs.h
23878 ac_fn_c_check_type "$LINENO" "nlink_t" "ac_cv_type_nlink_t" "#include <sys/types.h>
23879 #include <sys/stat.h>
23881 if test "x$ac_cv_type_nlink_t" = xyes; then :
23885 $as_echo "#define nlink_t int" >>confdefs.h
23891 for gl_func in fchmodat fstat fstatat futimens lchmod lstat mkdirat mkfifo mkfifoat mknod mknodat stat utimensat; do
23892 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
23893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
23894 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
23895 if eval \${$as_gl_Symbol+:} false; then :
23896 $as_echo_n "(cached) " >&6
23898 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23899 /* end confdefs.h. */
23900 #include <sys/stat.h>
23911 if ac_fn_c_try_compile "$LINENO"; then :
23912 eval "$as_gl_Symbol=yes"
23914 eval "$as_gl_Symbol=no"
23916 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23918 eval ac_res=\$$as_gl_Symbol
23919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
23920 $as_echo "$ac_res" >&6; }
23921 if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
23922 cat >>confdefs.h <<_ACEOF
23923 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
23926 eval ac_cv_have_decl_$gl_func=yes
23956 if test $gl_cv_have_include_next = yes; then
23957 gl_cv_next_sys_wait_h='<'sys/wait.h'>'
23959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/wait.h>" >&5
23960 $as_echo_n "checking absolute name of <sys/wait.h>... " >&6; }
23961 if ${gl_cv_next_sys_wait_h+:} false; then :
23962 $as_echo_n "(cached) " >&6
23965 if test $ac_cv_header_sys_wait_h = yes; then
23968 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23969 /* end confdefs.h. */
23970 #include <sys/wait.h>
23974 aix*) gl_absname_cpp="$ac_cpp -C" ;;
23975 *) gl_absname_cpp="$ac_cpp" ;;
23980 gl_dirsep_regex='[/\\]'
23983 gl_dirsep_regex='\/'
23986 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
23988 gl_header_literal_regex=`echo 'sys/wait.h' \
23989 | sed -e "$gl_make_literal_regex_sed"`
23990 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
23991 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
23996 gl_cv_next_sys_wait_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
23997 sed -n "$gl_absolute_header_sed"`'"'
23999 gl_cv_next_sys_wait_h='<'sys/wait.h'>'
24004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_wait_h" >&5
24005 $as_echo "$gl_cv_next_sys_wait_h" >&6; }
24007 NEXT_SYS_WAIT_H=$gl_cv_next_sys_wait_h
24009 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
24010 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
24011 gl_next_as_first_directive='<'sys/wait.h'>'
24013 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
24014 gl_next_as_first_directive=$gl_cv_next_sys_wait_h
24016 NEXT_AS_FIRST_DIRECTIVE_SYS_WAIT_H=$gl_next_as_first_directive
24025 for gl_func in waitpid; do
24026 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
24027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
24028 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
24029 if eval \${$as_gl_Symbol+:} false; then :
24030 $as_echo_n "(cached) " >&6
24032 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24033 /* end confdefs.h. */
24034 #include <sys/wait.h>
24044 if ac_fn_c_try_compile "$LINENO"; then :
24045 eval "$as_gl_Symbol=yes"
24047 eval "$as_gl_Symbol=no"
24049 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24051 eval ac_res=\$$as_gl_Symbol
24052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
24053 $as_echo "$ac_res" >&6; }
24054 if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
24055 cat >>confdefs.h <<_ACEOF
24056 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
24059 eval ac_cv_have_decl_$gl_func=yes
24093 if test $gl_cv_have_include_next = yes; then
24094 gl_cv_next_unistd_h='<'unistd.h'>'
24096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <unistd.h>" >&5
24097 $as_echo_n "checking absolute name of <unistd.h>... " >&6; }
24098 if ${gl_cv_next_unistd_h+:} false; then :
24099 $as_echo_n "(cached) " >&6
24102 if test $ac_cv_header_unistd_h = yes; then
24105 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24106 /* end confdefs.h. */
24107 #include <unistd.h>
24111 aix*) gl_absname_cpp="$ac_cpp -C" ;;
24112 *) gl_absname_cpp="$ac_cpp" ;;
24117 gl_dirsep_regex='[/\\]'
24120 gl_dirsep_regex='\/'
24123 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
24125 gl_header_literal_regex=`echo 'unistd.h' \
24126 | sed -e "$gl_make_literal_regex_sed"`
24127 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
24128 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
24133 gl_cv_next_unistd_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
24134 sed -n "$gl_absolute_header_sed"`'"'
24136 gl_cv_next_unistd_h='<'unistd.h'>'
24141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_unistd_h" >&5
24142 $as_echo "$gl_cv_next_unistd_h" >&6; }
24144 NEXT_UNISTD_H=$gl_cv_next_unistd_h
24146 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
24147 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
24148 gl_next_as_first_directive='<'unistd.h'>'
24150 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
24151 gl_next_as_first_directive=$gl_cv_next_unistd_h
24153 NEXT_AS_FIRST_DIRECTIVE_UNISTD_H=$gl_next_as_first_directive
24158 if test $ac_cv_header_unistd_h = yes; then
24170 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
24171 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
24172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
24173 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
24174 if eval \${$as_gl_Symbol+:} false; then :
24175 $as_echo_n "(cached) " >&6
24177 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24178 /* end confdefs.h. */
24181 # include <unistd.h>
24183 /* Some systems declare various items in the wrong headers. */
24184 #if !(defined __GLIBC__ && !defined __UCLIBC__)
24185 # include <fcntl.h>
24186 # include <stdio.h>
24187 # include <stdlib.h>
24188 # if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
24202 if ac_fn_c_try_compile "$LINENO"; then :
24203 eval "$as_gl_Symbol=yes"
24205 eval "$as_gl_Symbol=no"
24207 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24209 eval ac_res=\$$as_gl_Symbol
24210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
24211 $as_echo "$ac_res" >&6; }
24212 if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
24213 cat >>confdefs.h <<_ACEOF
24214 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
24217 eval ac_cv_have_decl_$gl_func=yes
24231 if test $ac_cv_have_decl_unsetenv = no; then
24232 HAVE_DECL_UNSETENV=0
24234 for ac_func in unsetenv
24236 ac_fn_c_check_func "$LINENO" "unsetenv" "ac_cv_func_unsetenv"
24237 if test "x$ac_cv_func_unsetenv" = xyes; then :
24238 cat >>confdefs.h <<_ACEOF
24239 #define HAVE_UNSETENV 1
24245 if test $ac_cv_func_unsetenv = no; then
24249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsetenv() return type" >&5
24250 $as_echo_n "checking for unsetenv() return type... " >&6; }
24251 if ${gt_cv_func_unsetenv_ret+:} false; then :
24252 $as_echo_n "(cached) " >&6
24254 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24255 /* end confdefs.h. */
24258 #define _BSD 1 /* unhide unsetenv declaration in OSF/1 5.1 <stdlib.h> */
24259 #include <stdlib.h>
24264 int unsetenv (const char *name);
24274 if ac_fn_c_try_compile "$LINENO"; then :
24275 gt_cv_func_unsetenv_ret='int'
24277 gt_cv_func_unsetenv_ret='void'
24279 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_unsetenv_ret" >&5
24282 $as_echo "$gt_cv_func_unsetenv_ret" >&6; }
24283 if test $gt_cv_func_unsetenv_ret = 'void'; then
24285 $as_echo "#define VOID_UNSETENV 1" >>confdefs.h
24290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether unsetenv obeys POSIX" >&5
24291 $as_echo_n "checking whether unsetenv obeys POSIX... " >&6; }
24292 if ${gl_cv_func_unsetenv_works+:} false; then :
24293 $as_echo_n "(cached) " >&6
24295 if test "$cross_compiling" = yes; then :
24297 # Guess yes on glibc systems.
24298 *-gnu*) gl_cv_func_unsetenv_works="guessing yes" ;;
24299 # If we don't know, assume the worst.
24300 *) gl_cv_func_unsetenv_works="guessing no" ;;
24304 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24305 /* end confdefs.h. */
24307 #include <stdlib.h>
24309 extern char **environ;
24315 char entry1[] = "a=1";
24316 char entry2[] = "b=2";
24317 char *env[] = { entry1, entry2, NULL };
24318 if (putenv ((char *) "a=1")) return 1;
24319 if (putenv (entry2)) return 2;
24322 if (getenv ("a")) return 3;
24323 if (!unsetenv ("") || errno != EINVAL) return 4;
24326 if (!getenv ("a")) return 5;
24329 if (getenv ("a")) return 6;
24335 if ac_fn_c_try_run "$LINENO"; then :
24336 gl_cv_func_unsetenv_works=yes
24338 gl_cv_func_unsetenv_works=no
24340 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24341 conftest.$ac_objext conftest.beam conftest.$ac_ext
24345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_unsetenv_works" >&5
24346 $as_echo "$gl_cv_func_unsetenv_works" >&6; }
24347 case "$gl_cv_func_unsetenv_works" in
24355 if test $HAVE_UNSETENV = 0 || test $REPLACE_UNSETENV = 1; then
24364 gl_LIBOBJS="$gl_LIBOBJS unsetenv.$ac_objext"
24388 $as_echo "#define GNULIB_TEST_UNSETENV 1" >>confdefs.h
24400 if test $ac_cv_func_vasnprintf = no; then
24417 gl_LIBOBJS="$gl_LIBOBJS vasnprintf.$ac_objext"
24427 gl_LIBOBJS="$gl_LIBOBJS printf-args.$ac_objext"
24437 gl_LIBOBJS="$gl_LIBOBJS printf-parse.$ac_objext"
24447 gl_LIBOBJS="$gl_LIBOBJS asnprintf.$ac_objext"
24449 if test $ac_cv_func_vasnprintf = yes; then
24451 $as_echo "#define REPLACE_VASNPRINTF 1" >>confdefs.h
24465 ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
24466 if test "x$ac_cv_type_ptrdiff_t" = xyes; then :
24470 $as_echo "#define ptrdiff_t long" >>confdefs.h
24484 for ac_func in vasprintf
24486 ac_fn_c_check_func "$LINENO" "vasprintf" "ac_cv_func_vasprintf"
24487 if test "x$ac_cv_func_vasprintf" = xyes; then :
24488 cat >>confdefs.h <<_ACEOF
24489 #define HAVE_VASPRINTF 1
24495 if test $ac_cv_func_vasprintf = no; then
24505 gl_LIBOBJS="$gl_LIBOBJS vasprintf.$ac_objext"
24515 gl_LIBOBJS="$gl_LIBOBJS asprintf.$ac_objext"
24518 if test $ac_cv_func_vasprintf = yes; then
24519 REPLACE_VASPRINTF=1
24544 $as_echo "#define GNULIB_TEST_VASPRINTF 1" >>confdefs.h
24550 XGETTEXT_EXTRA_OPTIONS="$XGETTEXT_EXTRA_OPTIONS --flag=asprintf:2:c-format"
24554 XGETTEXT_EXTRA_OPTIONS="$XGETTEXT_EXTRA_OPTIONS --flag=vasprintf:2:c-format"
24560 mingw*) HAVE_WAITPID=0 ;;
24563 if test $HAVE_WAITPID = 0; then
24572 gl_LIBOBJS="$gl_LIBOBJS waitpid.$ac_objext"
24586 $as_echo "#define GNULIB_TEST_WAITPID 1" >>confdefs.h
24608 if test $gl_cv_have_include_next = yes; then
24609 gl_cv_next_wchar_h='<'wchar.h'>'
24611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <wchar.h>" >&5
24612 $as_echo_n "checking absolute name of <wchar.h>... " >&6; }
24613 if ${gl_cv_next_wchar_h+:} false; then :
24614 $as_echo_n "(cached) " >&6
24617 if test $ac_cv_header_wchar_h = yes; then
24620 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24621 /* end confdefs.h. */
24626 aix*) gl_absname_cpp="$ac_cpp -C" ;;
24627 *) gl_absname_cpp="$ac_cpp" ;;
24632 gl_dirsep_regex='[/\\]'
24635 gl_dirsep_regex='\/'
24638 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
24640 gl_header_literal_regex=`echo 'wchar.h' \
24641 | sed -e "$gl_make_literal_regex_sed"`
24642 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
24643 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
24648 gl_cv_next_wchar_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
24649 sed -n "$gl_absolute_header_sed"`'"'
24651 gl_cv_next_wchar_h='<'wchar.h'>'
24656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_wchar_h" >&5
24657 $as_echo "$gl_cv_next_wchar_h" >&6; }
24659 NEXT_WCHAR_H=$gl_cv_next_wchar_h
24661 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
24662 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
24663 gl_next_as_first_directive='<'wchar.h'>'
24665 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
24666 gl_next_as_first_directive=$gl_cv_next_wchar_h
24668 NEXT_AS_FIRST_DIRECTIVE_WCHAR_H=$gl_next_as_first_directive
24673 if test $ac_cv_header_wchar_h = yes; then
24683 if test $gt_cv_c_wint_t = yes; then
24691 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
24692 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
24693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
24694 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
24695 if eval \${$as_gl_Symbol+:} false; then :
24696 $as_echo_n "(cached) " >&6
24698 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24699 /* end confdefs.h. */
24701 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
24703 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
24704 included before <wchar.h>. */
24705 #if !(defined __GLIBC__ && !defined __UCLIBC__)
24706 # include <stddef.h>
24707 # include <stdio.h>
24721 if ac_fn_c_try_compile "$LINENO"; then :
24722 eval "$as_gl_Symbol=yes"
24724 eval "$as_gl_Symbol=no"
24726 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24728 eval ac_res=\$$as_gl_Symbol
24729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
24730 $as_echo "$ac_res" >&6; }
24731 if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
24732 cat >>confdefs.h <<_ACEOF
24733 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
24736 eval ac_cv_have_decl_$gl_func=yes
24744 if test $HAVE_MSVC_INVALID_PARAMETER_HANDLER = 1; then
24750 if test $REPLACE_WRITE = 1; then
24759 gl_LIBOBJS="$gl_LIBOBJS write.$ac_objext"
24774 $as_echo "#define GNULIB_TEST_WRITE 1" >>confdefs.h
24781 for ac_header in stdint.h
24783 ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
24784 if test "x$ac_cv_header_stdint_h" = xyes; then :
24785 cat >>confdefs.h <<_ACEOF
24786 #define HAVE_STDINT_H 1
24802 XGETTEXT_EXTRA_OPTIONS="$XGETTEXT_EXTRA_OPTIONS --flag=xasprintf:1:c-format"
24804 # End of code from modules
24825 gl_source_base='tests'
24826 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
24828 gl_module_indicator_condition=$gltests_WITNESS
24839 for ac_header in fcntl.h
24841 ac_fn_c_check_header_mongrel "$LINENO" "fcntl.h" "ac_cv_header_fcntl_h" "$ac_includes_default"
24842 if test "x$ac_cv_header_fcntl_h" = xyes; then :
24843 cat >>confdefs.h <<_ACEOF
24844 #define HAVE_FCNTL_H 1
24851 for ac_func in clearenv
24853 ac_fn_c_check_func "$LINENO" "clearenv" "ac_cv_func_clearenv"
24854 if test "x$ac_cv_func_clearenv" = xyes; then :
24855 cat >>confdefs.h <<_ACEOF
24856 #define HAVE_CLEARENV 1
24863 # Checks for structures and compiler characteristics.
24864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
24865 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
24866 if ${ac_cv_c_const+:} false; then :
24867 $as_echo_n "(cached) " >&6
24869 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24870 /* end confdefs.h. */
24876 #ifndef __cplusplus
24877 /* Ultrix mips cc rejects this sort of thing. */
24878 typedef int charset[2];
24879 const charset cs = { 0, 0 };
24880 /* SunOS 4.1.1 cc rejects this. */
24881 char const *const *pcpcc;
24883 /* NEC SVR4.0.2 mips cc rejects this. */
24884 struct point {int x, y;};
24885 static struct point const zero = {0,0};
24886 /* AIX XL C 1.02.0.0 rejects this.
24887 It does not let you subtract one const X* pointer from another in
24888 an arm of an if-expression whose if-part is not a constant
24890 const char *g = "string";
24891 pcpcc = &g + (g ? g-g : 0);
24892 /* HPUX 7.0 cc rejects these. */
24894 ppc = (char**) pcpcc;
24895 pcpcc = (char const *const *) ppc;
24896 { /* SCO 3.2v4 cc rejects this sort of thing. */
24899 char const *s = 0 ? (char *) 0 : (char const *) 0;
24904 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
24905 int x[] = {25, 17};
24906 const int *foo = &x[0];
24909 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
24910 typedef const int *iptr;
24914 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
24915 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
24916 struct s { int j; const int *ap[3]; } bx;
24917 struct s *b = &bx; b->j = 5;
24919 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
24920 const int foo = 10;
24921 if (!foo) return 0;
24923 return !cs[0] && !zero.x;
24930 if ac_fn_c_try_compile "$LINENO"; then :
24935 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
24938 $as_echo "$ac_cv_c_const" >&6; }
24939 if test $ac_cv_c_const = no; then
24941 $as_echo "#define const /**/" >>confdefs.h
24945 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
24946 if test "x$ac_cv_type_pid_t" = xyes; then :
24950 cat >>confdefs.h <<_ACEOF
24956 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
24957 if test "x$ac_cv_type_size_t" = xyes; then :
24961 cat >>confdefs.h <<_ACEOF
24962 #define size_t unsigned int
24968 # We must have fork(2) support.
24969 for ac_header in vfork.h
24971 ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
24972 if test "x$ac_cv_header_vfork_h" = xyes; then :
24973 cat >>confdefs.h <<_ACEOF
24974 #define HAVE_VFORK_H 1
24981 for ac_func in fork vfork
24983 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
24984 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
24985 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
24986 cat >>confdefs.h <<_ACEOF
24987 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
24993 if test "x$ac_cv_func_fork" = xyes; then
24994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
24995 $as_echo_n "checking for working fork... " >&6; }
24996 if ${ac_cv_func_fork_works+:} false; then :
24997 $as_echo_n "(cached) " >&6
24999 if test "$cross_compiling" = yes; then :
25000 ac_cv_func_fork_works=cross
25002 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25003 /* end confdefs.h. */
25004 $ac_includes_default
25009 /* By Ruediger Kuhlmann. */
25010 return fork () < 0;
25016 if ac_fn_c_try_run "$LINENO"; then :
25017 ac_cv_func_fork_works=yes
25019 ac_cv_func_fork_works=no
25021 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25022 conftest.$ac_objext conftest.beam conftest.$ac_ext
25026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
25027 $as_echo "$ac_cv_func_fork_works" >&6; }
25030 ac_cv_func_fork_works=$ac_cv_func_fork
25032 if test "x$ac_cv_func_fork_works" = xcross; then
25034 *-*-amigaos* | *-*-msdosdjgpp*)
25035 # Override, as these systems have only a dummy fork() stub
25036 ac_cv_func_fork_works=no
25039 ac_cv_func_fork_works=yes
25042 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
25043 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
25045 ac_cv_func_vfork_works=$ac_cv_func_vfork
25046 if test "x$ac_cv_func_vfork" = xyes; then
25047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
25048 $as_echo_n "checking for working vfork... " >&6; }
25049 if ${ac_cv_func_vfork_works+:} false; then :
25050 $as_echo_n "(cached) " >&6
25052 if test "$cross_compiling" = yes; then :
25053 ac_cv_func_vfork_works=cross
25055 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25056 /* end confdefs.h. */
25057 /* Thanks to Paul Eggert for this test. */
25058 $ac_includes_default
25059 #include <sys/wait.h>
25060 #ifdef HAVE_VFORK_H
25061 # include <vfork.h>
25063 /* On some sparc systems, changes by the child to local and incoming
25064 argument registers are propagated back to the parent. The compiler
25065 is told about this with #include <vfork.h>, but some compilers
25066 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
25067 static variable whose address is put into a register that is
25068 clobbered by the vfork. */
25071 sparc_address_test (int arg)
25073 sparc_address_test (arg) int arg;
25076 static pid_t child;
25094 pid_t parent = getpid ();
25097 sparc_address_test (0);
25102 /* Here is another test for sparc vfork register problems. This
25103 test uses lots of local variables, at least as many local
25104 variables as main has allocated so far including compiler
25105 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
25106 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
25107 reuse the register of parent for one of the local variables,
25108 since it will think that parent can't possibly be used any more
25109 in this routine. Assigning to the local variable will thus
25110 munge parent in the parent process. */
25112 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
25113 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
25114 /* Convince the compiler that p..p7 are live; otherwise, it might
25115 use the same hardware register for all 8 local variables. */
25116 if (p != p1 || p != p2 || p != p3 || p != p4
25117 || p != p5 || p != p6 || p != p7)
25120 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
25121 from child file descriptors. If the child closes a descriptor
25122 before it execs or exits, this munges the parent's descriptor
25123 as well. Test for this by closing stdout in the child. */
25124 _exit(close(fileno(stdout)) != 0);
25129 while (wait(&status) != child)
25132 /* Was there some problem with vforking? */
25135 /* Did the child fail? (This shouldn't happen.) */
25138 /* Did the vfork/compiler bug occur? */
25139 || parent != getpid()
25141 /* Did the file descriptor bug occur? */
25142 || fstat(fileno(stdout), &st) != 0
25147 if ac_fn_c_try_run "$LINENO"; then :
25148 ac_cv_func_vfork_works=yes
25150 ac_cv_func_vfork_works=no
25152 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25153 conftest.$ac_objext conftest.beam conftest.$ac_ext
25157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
25158 $as_echo "$ac_cv_func_vfork_works" >&6; }
25161 if test "x$ac_cv_func_fork_works" = xcross; then
25162 ac_cv_func_vfork_works=$ac_cv_func_vfork
25163 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
25164 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
25167 if test "x$ac_cv_func_vfork_works" = xyes; then
25169 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
25173 $as_echo "#define vfork fork" >>confdefs.h
25176 if test "x$ac_cv_func_fork_works" = xyes; then
25178 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
25182 if test "x$ac_cv_func_fork_works" != xyes; then
25183 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
25184 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
25185 as_fn_error $? "cannot use libpipeline on systems without fork
25186 See \`config.log' for more details" "$LINENO" 5; }
25189 # Check for socketpair(2) as fast replacement for pipe(2).
25190 # Check whether --enable-socketpair-pipe was given.
25191 if test "${enable_socketpair_pipe+set}" = set; then :
25192 enableval=$enable_socketpair_pipe; if test "$enableval" = "yes"
25194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if socketpair(2) can be used as fast replacement for pipe(2)" >&5
25195 $as_echo_n "checking if socketpair(2) can be used as fast replacement for pipe(2)... " >&6; }
25196 if ${pipeline_cv_socketpair_pipe+:} false; then :
25197 $as_echo_n "(cached) " >&6
25200 if test "$cross_compiling" = yes; then :
25201 pipeline_cv_socketpair_pipe=no
25203 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25204 /* end confdefs.h. */
25207 #include <netinet/in.h>
25208 #include <signal.h>
25209 #include <sys/socket.h>
25210 #include <sys/types.h>
25211 #include <sys/wait.h>
25212 #include <unistd.h>
25220 static void sigpipe(int sig)
25227 const char test[] = "May use socketpair(2) instead of pipe(2)\n";
25231 if (socketpair(AF_UNIX,SOCK_STREAM,0,sfd) < 0)
25233 if (shutdown(sfd[1],SHUT_RD) < 0 || shutdown(sfd[0],SHUT_WR) < 0)
25235 if ((pid = fork()) < 0)
25240 if (read(sfd[0],buf,sizeof(buf)) < 0)
25244 write(sfd[1],test,sizeof(test) - 1);
25248 signal(SIGPIPE, sigpipe);
25249 if (socketpair(AF_UNIX,SOCK_STREAM,0,sfd) < 0)
25251 if (shutdown(sfd[1],SHUT_RD) < 0 || shutdown(sfd[0],SHUT_WR) < 0)
25254 write(sfd[1],test,sizeof(test) - 1);
25258 if ac_fn_c_try_run "$LINENO"; then :
25259 pipeline_cv_socketpair_pipe=yes
25261 pipeline_cv_socketpair_pipe=no
25263 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25264 conftest.$ac_objext conftest.beam conftest.$ac_ext
25270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pipeline_cv_socketpair_pipe" >&5
25271 $as_echo "$pipeline_cv_socketpair_pipe" >&6; }
25272 if test "$pipeline_cv_socketpair_pipe" = yes; then
25274 $as_echo "#define USE_SOCKETPAIR_PIPE 1" >>confdefs.h
25278 if test "$pipeline_cv_socketpair_pipe" = yes; then
25279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if shutdown(2) does not set mode for the socket descriptor" >&5
25280 $as_echo_n "checking if shutdown(2) does not set mode for the socket descriptor... " >&6; }
25281 if ${pipeline_cv_socketpair_mode+:} false; then :
25282 $as_echo_n "(cached) " >&6
25285 if test "$cross_compiling" = yes; then :
25286 pipeline_cv_socketpair_mode=no
25288 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25289 /* end confdefs.h. */
25292 #include <netinet/in.h>
25293 #include <sys/stat.h>
25294 #include <sys/socket.h>
25295 #include <sys/types.h>
25296 #include <unistd.h>
25308 if (socketpair(AF_UNIX,SOCK_STREAM,0,sfd) < 0)
25310 if (shutdown(sfd[1],SHUT_RD) < 0 || shutdown(sfd[0],SHUT_WR) < 0)
25312 if (fstat(sfd[0], &(st[0])) < 0 || fstat(sfd[1], &(st[1])) < 0)
25314 if ((st[0].st_mode & (S_IRUSR|S_IWUSR)) == S_IRUSR && (st[1].st_mode & (S_IRUSR|S_IWUSR)) == S_IWUSR)
25316 if (fchmod(sfd[0], S_IRUSR) < 0 || fchmod(sfd[1], S_IWUSR) < 0)
25318 if (fstat(sfd[0], &(st[0])) < 0 || fstat(sfd[1], &(st[1])) < 0)
25320 if ((st[0].st_mode & (S_IRUSR|S_IWUSR)) != S_IRUSR && (st[1].st_mode & (S_IRUSR|S_IWUSR)) != S_IWUSR)
25325 if ac_fn_c_try_run "$LINENO"; then :
25326 pipeline_cv_socketpair_mode=yes
25328 pipeline_cv_socketpair_mode=no
25330 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25331 conftest.$ac_objext conftest.beam conftest.$ac_ext
25337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pipeline_cv_socketpair_mode" >&5
25338 $as_echo "$pipeline_cv_socketpair_mode" >&6; }
25339 if test "$pipeline_cv_socketpair_mode" = yes; then
25341 $as_echo "#define CORRECT_SOCKETPAIR_MODE 1" >>confdefs.h
25351 { $as_echo "$as_me:${as_lineno-$LINENO}: default CC = \"$CC\"" >&5
25352 $as_echo "$as_me: default CC = \"$CC\"" >&6;}
25353 { $as_echo "$as_me:${as_lineno-$LINENO}: default CPP = \"$CPP\"" >&5
25354 $as_echo "$as_me: default CPP = \"$CPP\"" >&6;}
25355 { $as_echo "$as_me:${as_lineno-$LINENO}: default CPPFLAGS = \"$CPPFLAGS\"" >&5
25356 $as_echo "$as_me: default CPPFLAGS = \"$CPPFLAGS\"" >&6;}
25357 { $as_echo "$as_me:${as_lineno-$LINENO}: default CFLAGS = \"$CFLAGS\"" >&5
25358 $as_echo "$as_me: default CFLAGS = \"$CFLAGS\"" >&6;}
25359 { $as_echo "$as_me:${as_lineno-$LINENO}: default LDFLAGS = \"$LDFLAGS\"" >&5
25360 $as_echo "$as_me: default LDFLAGS = \"$LDFLAGS\"" >&6;}
25361 { $as_echo "$as_me:${as_lineno-$LINENO}: default LIBS = \"$LIBS\"" >&5
25362 $as_echo "$as_me: default LIBS = \"$LIBS\"" >&6;}
25364 ac_config_files="$ac_config_files Makefile gnulib/lib/Makefile lib/Makefile lib/libpipeline.pc man/Makefile tests/Makefile"
25366 cat >confcache <<\_ACEOF
25367 # This file is a shell script that caches the results of configure
25368 # tests run on this system so they can be shared between configure
25369 # scripts and configure runs, see configure's option --config-cache.
25370 # It is not useful on other systems. If it contains results you don't
25371 # want to keep, you may remove or edit it.
25373 # config.status only pays attention to the cache file if you give it
25374 # the --recheck option to rerun configure.
25376 # `ac_cv_env_foo' variables (set or unset) will be overridden when
25377 # loading this file, other *unset* `ac_cv_foo' will be assigned the
25378 # following values.
25382 # The following way of writing the cache mishandles newlines in values,
25383 # but we know of no workaround that is simple, portable, and efficient.
25384 # So, we kill variables containing newlines.
25385 # Ultrix sh set writes to stderr and can't be redirected directly,
25386 # and sets the high bit in the cache file unless we assign to the vars.
25388 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
25389 eval ac_val=\$$ac_var
25393 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
25394 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
25397 _ | IFS | as_nl) ;; #(
25398 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
25399 *) { eval $ac_var=; unset $ac_var;} ;;
25405 case $as_nl`(ac_space=' '; set) 2>&1` in #(
25406 *${as_nl}ac_space=\ *)
25407 # `set' does not quote correctly, so add quotes: double-quote
25408 # substitution turns \\\\ into \\, and sed turns \\ into \.
25411 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
25414 # `set' quotes correctly as required by POSIX, so do not add quotes.
25415 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
25424 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
25426 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
25428 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
25429 if test -w "$cache_file"; then
25430 if test "x$cache_file" != "x/dev/null"; then
25431 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
25432 $as_echo "$as_me: updating cache $cache_file" >&6;}
25433 if test ! -f "$cache_file" || test -h "$cache_file"; then
25434 cat confcache >"$cache_file"
25436 case $cache_file in #(
25438 mv -f confcache "$cache_file"$$ &&
25439 mv -f "$cache_file"$$ "$cache_file" ;; #(
25441 mv -f confcache "$cache_file" ;;
25446 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
25447 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
25452 test "x$prefix" = xNONE && prefix=$ac_default_prefix
25453 # Let make expand exec_prefix.
25454 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
25456 DEFS=-DHAVE_CONFIG_H
25461 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
25462 # 1. Remove the extension, and $U if already installed.
25463 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
25464 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
25465 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
25466 # will be set to the directory where LIBOBJS objects are built.
25467 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
25468 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
25470 LIBOBJS=$ac_libobjs
25472 LTLIBOBJS=$ac_ltlibobjs
25475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
25476 $as_echo_n "checking that generated files are newer than configure... " >&6; }
25477 if test -n "$am_sleep_pid"; then
25478 # Hide warnings about reused PIDs.
25479 wait $am_sleep_pid 2>/dev/null
25481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
25482 $as_echo "done" >&6; }
25483 if test -n "$EXEEXT"; then
25485 am__EXEEXT_FALSE='#'
25487 am__EXEEXT_TRUE='#'
25491 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
25492 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
25493 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25495 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
25496 as_fn_error $? "conditional \"AMDEP\" was never defined.
25497 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25499 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
25500 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
25501 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25503 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
25504 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
25505 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25507 if test -z "${RUN_TESTS_TRUE}" && test -z "${RUN_TESTS_FALSE}"; then
25508 as_fn_error $? "conditional \"RUN_TESTS\" was never defined.
25509 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25511 if test -z "${GL_COND_LIBTOOL_TRUE}" && test -z "${GL_COND_LIBTOOL_FALSE}"; then
25512 as_fn_error $? "conditional \"GL_COND_LIBTOOL\" was never defined.
25513 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25515 if test -z "${GL_GENERATE_ALLOCA_H_TRUE}" && test -z "${GL_GENERATE_ALLOCA_H_FALSE}"; then
25516 as_fn_error $? "conditional \"GL_GENERATE_ALLOCA_H\" was never defined.
25517 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25519 if test -z "${GL_GENERATE_ERRNO_H_TRUE}" && test -z "${GL_GENERATE_ERRNO_H_FALSE}"; then
25520 as_fn_error $? "conditional \"GL_GENERATE_ERRNO_H\" was never defined.
25521 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25523 if test -z "${GL_GENERATE_FLOAT_H_TRUE}" && test -z "${GL_GENERATE_FLOAT_H_FALSE}"; then
25524 as_fn_error $? "conditional \"GL_GENERATE_FLOAT_H\" was never defined.
25525 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25527 if test -z "${GL_GENERATE_STDARG_H_TRUE}" && test -z "${GL_GENERATE_STDARG_H_FALSE}"; then
25528 as_fn_error $? "conditional \"GL_GENERATE_STDARG_H\" was never defined.
25529 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25531 if test -z "${GL_GENERATE_STDBOOL_H_TRUE}" && test -z "${GL_GENERATE_STDBOOL_H_FALSE}"; then
25532 as_fn_error $? "conditional \"GL_GENERATE_STDBOOL_H\" was never defined.
25533 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25535 if test -z "${GL_GENERATE_STDDEF_H_TRUE}" && test -z "${GL_GENERATE_STDDEF_H_FALSE}"; then
25536 as_fn_error $? "conditional \"GL_GENERATE_STDDEF_H\" was never defined.
25537 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25539 if test -z "${GL_GENERATE_STDINT_H_TRUE}" && test -z "${GL_GENERATE_STDINT_H_FALSE}"; then
25540 as_fn_error $? "conditional \"GL_GENERATE_STDINT_H\" was never defined.
25541 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25547 if test -n "$gl_LIBOBJS"; then
25548 # Remove the extension.
25549 sed_drop_objext='s/\.o$//;s/\.obj$//'
25550 for i in `for i in $gl_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
25551 gl_libobjs="$gl_libobjs $i.$ac_objext"
25552 gl_ltlibobjs="$gl_ltlibobjs $i.lo"
25555 gl_LIBOBJS=$gl_libobjs
25557 gl_LTLIBOBJS=$gl_ltlibobjs
25563 if test -n "$gltests_LIBOBJS"; then
25564 # Remove the extension.
25565 sed_drop_objext='s/\.o$//;s/\.obj$//'
25566 for i in `for i in $gltests_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
25567 gltests_libobjs="$gltests_libobjs $i.$ac_objext"
25568 gltests_ltlibobjs="$gltests_ltlibobjs $i.lo"
25571 gltests_LIBOBJS=$gltests_libobjs
25573 gltests_LTLIBOBJS=$gltests_ltlibobjs
25577 : "${CONFIG_STATUS=./config.status}"
25579 ac_clean_files_save=$ac_clean_files
25580 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
25581 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
25582 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
25584 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
25586 # Generated by $as_me.
25587 # Run this file to recreate the current configuration.
25588 # Compiler output produced by configure, useful for debugging
25589 # configure, is in config.log if it exists.
25592 ac_cs_recheck=false
25595 SHELL=\${CONFIG_SHELL-$SHELL}
25598 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
25599 ## -------------------- ##
25600 ## M4sh Initialization. ##
25601 ## -------------------- ##
25603 # Be more Bourne compatible
25604 DUALCASE=1; export DUALCASE # for MKS sh
25605 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
25608 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25609 # is contrary to our usage. Disable this feature.
25610 alias -g '${1+"$@"}'='"$@"'
25611 setopt NO_GLOB_SUBST
25613 case `(set -o) 2>/dev/null` in #(
25625 # Printing a long string crashes Solaris 7 /usr/bin/printf.
25626 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
25627 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
25628 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
25629 # Prefer a ksh shell builtin over an external printf program on Solaris,
25630 # but without wasting forks for bash or zsh.
25631 if test -z "$BASH_VERSION$ZSH_VERSION" \
25632 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
25633 as_echo='print -r --'
25634 as_echo_n='print -rn --'
25635 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
25636 as_echo='printf %s\n'
25637 as_echo_n='printf %s'
25639 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
25640 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
25641 as_echo_n='/usr/ucb/echo -n'
25643 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
25644 as_echo_n_body='eval
25648 expr "X$arg" : "X\\(.*\\)$as_nl";
25649 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
25651 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
25653 export as_echo_n_body
25654 as_echo_n='sh -c $as_echo_n_body as_echo'
25656 export as_echo_body
25657 as_echo='sh -c $as_echo_body as_echo'
25660 # The user is always right.
25661 if test "${PATH_SEPARATOR+set}" != set; then
25663 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
25664 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
25671 # We need space, tab and new line, in precisely that order. Quoting is
25672 # there to prevent editors from complaining about space-tab.
25673 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
25674 # splitting by setting IFS to empty value.)
25677 # Find who we are. Look in the path if we contain no directory separator.
25680 *[\\/]* ) as_myself=$0 ;;
25681 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25682 for as_dir in $PATH
25685 test -z "$as_dir" && as_dir=.
25686 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
25692 # We did not find ourselves, most probably we were run as `sh COMMAND'
25693 # in which case we are not to be found in the path.
25694 if test "x$as_myself" = x; then
25697 if test ! -f "$as_myself"; then
25698 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
25702 # Unset variables that we do not need and which cause bugs (e.g. in
25703 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
25704 # suppresses any "Segmentation fault" message there. '((' could
25705 # trigger a bug in pdksh 5.2.14.
25706 for as_var in BASH_ENV ENV MAIL MAILPATH
25707 do eval test x\${$as_var+set} = xset \
25708 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
25721 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
25724 # as_fn_error STATUS ERROR [LINENO LOG_FD]
25725 # ----------------------------------------
25726 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
25727 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
25728 # script with STATUS, using 1 if that was 0.
25731 as_status=$1; test $as_status -eq 0 && as_status=1
25733 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
25734 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
25736 $as_echo "$as_me: error: $2" >&2
25737 as_fn_exit $as_status
25741 # as_fn_set_status STATUS
25742 # -----------------------
25743 # Set $? to STATUS, without forking.
25744 as_fn_set_status ()
25747 } # as_fn_set_status
25749 # as_fn_exit STATUS
25750 # -----------------
25751 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
25755 as_fn_set_status $1
25761 # Portably unset VAR.
25764 { eval $1=; unset $1;}
25766 as_unset=as_fn_unset
25767 # as_fn_append VAR VALUE
25768 # ----------------------
25769 # Append the text in VALUE to the end of the definition contained in VAR. Take
25770 # advantage of any shell optimizations that allow amortized linear growth over
25771 # repeated appends, instead of the typical quadratic growth present in naive
25773 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
25774 eval 'as_fn_append ()
25785 # as_fn_arith ARG...
25786 # ------------------
25787 # Perform arithmetic evaluation on the ARGs, and store the result in the
25788 # global $as_val. Take advantage of shells that can avoid forks. The arguments
25789 # must be portable across $(()) and expr.
25790 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
25791 eval 'as_fn_arith ()
25798 as_val=`expr "$@" || test $? -eq 1`
25803 if expr a : '\(a\)' >/dev/null 2>&1 &&
25804 test "X`expr 00001 : '.*\(...\)'`" = X001; then
25810 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
25811 as_basename=basename
25816 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
25822 as_me=`$as_basename -- "$0" ||
25823 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
25824 X"$0" : 'X\(//\)$' \| \
25825 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
25827 sed '/^.*\/\([^/][^/]*\)\/*$/{
25841 # Avoid depending upon Character Ranges.
25842 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
25843 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
25844 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
25845 as_cr_digits='0123456789'
25846 as_cr_alnum=$as_cr_Letters$as_cr_digits
25848 ECHO_C= ECHO_N= ECHO_T=
25849 case `echo -n x` in #(((((
25851 case `echo 'xy\c'` in
25852 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
25854 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
25861 rm -f conf$$ conf$$.exe conf$$.file
25862 if test -d conf$$.dir; then
25863 rm -f conf$$.dir/conf$$.file
25866 mkdir conf$$.dir 2>/dev/null
25868 if (echo >conf$$.file) 2>/dev/null; then
25869 if ln -s conf$$.file conf$$ 2>/dev/null; then
25871 # ... but there are two gotchas:
25872 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
25873 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
25874 # In both cases, we have to default to `cp -pR'.
25875 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
25877 elif ln conf$$.file conf$$ 2>/dev/null; then
25885 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
25886 rmdir conf$$.dir 2>/dev/null
25891 # Create "$as_dir" as a directory, including parents if necessary.
25896 -*) as_dir=./$as_dir;;
25898 test -d "$as_dir" || eval $as_mkdir_p || {
25902 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
25903 *) as_qdir=$as_dir;;
25905 as_dirs="'$as_qdir' $as_dirs"
25906 as_dir=`$as_dirname -- "$as_dir" ||
25907 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25908 X"$as_dir" : 'X\(//\)[^/]' \| \
25909 X"$as_dir" : 'X\(//\)$' \| \
25910 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
25911 $as_echo X"$as_dir" |
25912 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25916 /^X\(\/\/\)[^/].*/{
25929 test -d "$as_dir" && break
25931 test -z "$as_dirs" || eval "mkdir $as_dirs"
25932 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
25936 if mkdir -p . 2>/dev/null; then
25937 as_mkdir_p='mkdir -p "$as_dir"'
25939 test -d ./-p && rmdir ./-p
25944 # as_fn_executable_p FILE
25945 # -----------------------
25946 # Test if FILE is an executable regular file.
25947 as_fn_executable_p ()
25949 test -f "$1" && test -x "$1"
25950 } # as_fn_executable_p
25951 as_test_x='test -x'
25952 as_executable_p=as_fn_executable_p
25954 # Sed expression to map a string onto a valid CPP name.
25955 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
25957 # Sed expression to map a string onto a valid variable name.
25958 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
25962 ## ----------------------------------- ##
25963 ## Main body of $CONFIG_STATUS script. ##
25964 ## ----------------------------------- ##
25966 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
25968 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25969 # Save the log message, to keep $0 and so on meaningful, and to
25970 # report actual input values of CONFIG_FILES etc. instead of their
25971 # values after options handling.
25973 This file was extended by libpipeline $as_me 1.2.5, which was
25974 generated by GNU Autoconf 2.69. Invocation command line was
25976 CONFIG_FILES = $CONFIG_FILES
25977 CONFIG_HEADERS = $CONFIG_HEADERS
25978 CONFIG_LINKS = $CONFIG_LINKS
25979 CONFIG_COMMANDS = $CONFIG_COMMANDS
25982 on `(hostname || uname -n) 2>/dev/null | sed 1q`
25987 case $ac_config_files in *"
25988 "*) set x $ac_config_files; shift; ac_config_files=$*;;
25991 case $ac_config_headers in *"
25992 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
25996 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25997 # Files that config.status was made for.
25998 config_files="$ac_config_files"
25999 config_headers="$ac_config_headers"
26000 config_commands="$ac_config_commands"
26004 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26006 \`$as_me' instantiates files and other configuration actions
26007 from templates according to the current configuration. Unless the files
26008 and actions are specified as TAGs, all are instantiated by default.
26010 Usage: $0 [OPTION]... [TAG]...
26012 -h, --help print this help, then exit
26013 -V, --version print version number and configuration settings, then exit
26014 --config print configuration, then exit
26015 -q, --quiet, --silent
26016 do not print progress messages
26017 -d, --debug don't remove temporary files
26018 --recheck update $as_me by reconfiguring in the same conditions
26019 --file=FILE[:TEMPLATE]
26020 instantiate the configuration file FILE
26021 --header=FILE[:TEMPLATE]
26022 instantiate the configuration header FILE
26024 Configuration files:
26027 Configuration headers:
26030 Configuration commands:
26033 Report bugs to <cjwatson@debian.org>."
26036 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26037 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
26039 libpipeline config.status 1.2.5
26040 configured by $0, generated by GNU Autoconf 2.69,
26041 with options \\"\$ac_cs_config\\"
26043 Copyright (C) 2012 Free Software Foundation, Inc.
26044 This config.status script is free software; the Free Software Foundation
26045 gives unlimited permission to copy, distribute and modify it."
26052 test -n "\$AWK" || AWK=awk
26055 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26056 # The default lists apply if the user does not specify any file.
26062 ac_option=`expr "X$1" : 'X\([^=]*\)='`
26063 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
26067 ac_option=`expr "X$1" : 'X\([^=]*\)='`
26079 # Handling of the options.
26080 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
26082 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
26083 $as_echo "$ac_cs_version"; exit ;;
26084 --config | --confi | --conf | --con | --co | --c )
26085 $as_echo "$ac_cs_config"; exit ;;
26086 --debug | --debu | --deb | --de | --d | -d )
26088 --file | --fil | --fi | --f )
26091 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
26092 '') as_fn_error $? "missing file argument" ;;
26094 as_fn_append CONFIG_FILES " '$ac_optarg'"
26095 ac_need_defaults=false;;
26096 --header | --heade | --head | --hea )
26099 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
26101 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
26102 ac_need_defaults=false;;
26104 # Conflict between --help and --header
26105 as_fn_error $? "ambiguous option: \`$1'
26106 Try \`$0 --help' for more information.";;
26107 --help | --hel | -h )
26108 $as_echo "$ac_cs_usage"; exit ;;
26109 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
26110 | -silent | --silent | --silen | --sile | --sil | --si | --s)
26113 # This is an error.
26114 -*) as_fn_error $? "unrecognized option: \`$1'
26115 Try \`$0 --help' for more information." ;;
26117 *) as_fn_append ac_config_targets " $1"
26118 ac_need_defaults=false ;;
26124 ac_configure_extra_args=
26126 if $ac_cs_silent; then
26128 ac_configure_extra_args="$ac_configure_extra_args --silent"
26132 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26133 if \$ac_cs_recheck; then
26134 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
26136 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
26137 CONFIG_SHELL='$SHELL'
26138 export CONFIG_SHELL
26143 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26147 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
26148 ## Running $as_me. ##
26154 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26158 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
26161 # The HP-UX ksh and POSIX shell print the target directory to stdout
26162 # if CDPATH is set.
26163 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
26165 sed_quote_subst='$sed_quote_subst'
26166 double_quote_subst='$double_quote_subst'
26167 delay_variable_subst='$delay_variable_subst'
26168 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
26169 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
26170 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
26171 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
26172 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
26173 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
26174 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
26175 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
26176 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
26177 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
26178 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
26179 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
26180 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
26181 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
26182 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
26183 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
26184 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
26185 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
26186 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
26187 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
26188 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
26189 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
26190 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
26191 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
26192 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
26193 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
26194 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
26195 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
26196 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
26197 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
26198 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
26199 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
26200 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
26201 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
26202 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
26203 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
26204 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
26205 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
26206 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
26207 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
26208 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
26209 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
26210 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
26211 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
26212 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
26213 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
26214 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
26215 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
26216 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
26217 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
26218 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
26219 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
26220 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
26221 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
26222 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
26223 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
26224 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"`'
26225 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
26226 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
26227 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
26228 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
26229 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
26230 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
26231 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
26232 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
26233 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
26234 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
26235 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
26236 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
26237 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
26238 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
26239 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
26240 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
26241 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
26242 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
26243 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
26244 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
26245 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
26246 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
26247 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
26248 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
26249 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
26250 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
26251 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
26252 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
26253 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
26254 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
26255 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
26256 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
26257 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
26258 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
26259 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
26260 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
26261 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
26262 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
26263 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
26264 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
26265 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
26266 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
26267 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
26268 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
26269 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
26270 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
26271 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
26272 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
26273 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
26274 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
26275 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
26276 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
26277 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
26278 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
26279 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
26280 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
26281 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
26282 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
26283 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
26284 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
26285 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
26286 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
26287 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
26288 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
26289 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
26290 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
26291 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
26292 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
26293 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
26294 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
26295 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
26296 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
26297 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
26300 LTCFLAGS='$LTCFLAGS'
26301 compiler='$compiler_DEFAULT'
26303 # A function that is used when there is no print builtin or printf.
26304 func_fallback_echo ()
26306 eval 'cat <<_LTECHO_EOF
26311 # Quote evaled strings.
26326 deplibs_check_method \
26331 sharedlib_from_linklib_cmd \
26334 archiver_list_spec \
26340 lt_cv_sys_global_symbol_pipe \
26341 lt_cv_sys_global_symbol_to_cdecl \
26342 lt_cv_sys_global_symbol_to_c_name_address \
26343 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
26344 nm_file_list_spec \
26345 lt_prog_compiler_no_builtin_flag \
26346 lt_prog_compiler_pic \
26347 lt_prog_compiler_wl \
26348 lt_prog_compiler_static \
26349 lt_cv_prog_compiler_c_o \
26358 export_dynamic_flag_spec \
26359 whole_archive_flag_spec \
26360 compiler_needs_object \
26362 allow_undefined_flag \
26363 no_undefined_flag \
26364 hardcode_libdir_flag_spec \
26365 hardcode_libdir_separator \
26369 variables_saved_for_relink \
26371 library_names_spec \
26373 install_override_mode \
26377 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
26378 *[\\\\\\\`\\"\\\$]*)
26379 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
26382 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
26387 # Double-quote double-evaled strings.
26388 for var in reload_cmds \
26389 old_postinstall_cmds \
26390 old_postuninstall_cmds \
26392 extract_expsyms_cmds \
26393 old_archive_from_new_cmds \
26394 old_archive_from_expsyms_cmds \
26396 archive_expsym_cmds \
26398 module_expsym_cmds \
26399 export_symbols_cmds \
26403 postuninstall_cmds \
26405 sys_lib_search_path_spec \
26406 sys_lib_dlsearch_path_spec; do
26407 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
26408 *[\\\\\\\`\\"\\\$]*)
26409 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
26412 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
26417 ac_aux_dir='$ac_aux_dir'
26418 xsi_shell='$xsi_shell'
26419 lt_shell_append='$lt_shell_append'
26421 # See if we are running on zsh, and set the options which allow our
26422 # commands through without removal of \ escapes INIT.
26423 if test -n "\${ZSH_VERSION+set}" ; then
26424 setopt NO_GLOB_SUBST
26430 TIMESTAMP='$TIMESTAMP'
26439 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26441 # Handling of arguments.
26442 for ac_config_target in $ac_config_targets
26444 case $ac_config_target in
26445 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
26446 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
26447 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
26448 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
26449 "gnulib/lib/Makefile") CONFIG_FILES="$CONFIG_FILES gnulib/lib/Makefile" ;;
26450 "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
26451 "lib/libpipeline.pc") CONFIG_FILES="$CONFIG_FILES lib/libpipeline.pc" ;;
26452 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
26453 "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
26455 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
26460 # If the user did not use the arguments to specify the items to instantiate,
26461 # then the envvar interface is used. Set only those that are not.
26462 # We use the long form for the default assignment because of an extremely
26463 # bizarre bug on SunOS 4.1.3.
26464 if $ac_need_defaults; then
26465 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
26466 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
26467 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
26470 # Have a temporary directory for convenience. Make it in the build tree
26471 # simply because there is no reason against having it here, and in addition,
26472 # creating and moving files from /tmp can sometimes cause problems.
26473 # Hook for its removal unless debugging.
26474 # Note that there is a small window in which the directory will not be cleaned:
26475 # after its creation but before its name has been assigned to `$tmp'.
26479 trap 'exit_status=$?
26480 : "${ac_tmp:=$tmp}"
26481 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
26483 trap 'as_fn_exit 1' 1 2 13 15
26485 # Create a (secure) tmp directory for tmp files.
26488 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
26492 tmp=./conf$$-$RANDOM
26493 (umask 077 && mkdir "$tmp")
26494 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
26497 # Set up the scripts for CONFIG_FILES section.
26498 # No need to generate them if there are no CONFIG_FILES.
26499 # This happens for instance with `./config.status config.h'.
26500 if test -n "$CONFIG_FILES"; then
26503 ac_cr=`echo X | tr X '\015'`
26504 # On cygwin, bash can eat \r inside `` if the user requested igncr.
26505 # But we know of no other shell where ac_cr would be empty at this
26506 # point, so we can use a bashism as a fallback.
26507 if test "x$ac_cr" = x; then
26508 eval ac_cr=\$\'\\r\'
26510 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
26511 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
26514 ac_cs_awk_cr=$ac_cr
26517 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
26522 echo "cat >conf$$subs.awk <<_ACEOF" &&
26523 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
26525 } >conf$$subs.sh ||
26526 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
26527 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
26529 for ac_last_try in false false false false false :; do
26530 . ./conf$$subs.sh ||
26531 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
26533 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
26534 if test $ac_delim_n = $ac_delim_num; then
26536 elif $ac_last_try; then
26537 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
26539 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
26542 rm -f conf$$subs.sh
26544 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26545 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
26549 s/^/S["/; s/!.*/"]=/
26559 s/\(.\{148\}\)..*/\1/
26561 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
26566 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
26573 s/\(.\{148\}\)..*/\1/
26575 s/["\\]/\\&/g; s/^/"/; s/$/"/
26579 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
26584 ' <conf$$subs.awk | sed '
26589 ' >>$CONFIG_STATUS || ac_write_fail=1
26590 rm -f conf$$subs.awk
26591 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26593 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
26594 for (key in S) S_is_set[key] = 1
26600 nfields = split(line, field, "@")
26602 len = length(field[1])
26603 for (i = 2; i < nfields; i++) {
26605 keylen = length(key)
26606 if (S_is_set[key]) {
26608 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
26609 len += length(value) + length(field[++i])
26620 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26621 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
26622 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
26625 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
26626 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
26629 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
26630 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
26631 # trailing colons and then remove the whole line if VPATH becomes empty
26632 # (actually we leave an empty line to preserve line numbers).
26633 if test "x$srcdir" = x.; then
26634 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
26652 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26653 fi # test -n "$CONFIG_FILES"
26655 # Set up the scripts for CONFIG_HEADERS section.
26656 # No need to generate them if there are no CONFIG_HEADERS.
26657 # This happens for instance with `./config.status Makefile'.
26658 if test -n "$CONFIG_HEADERS"; then
26659 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
26663 # Transform confdefs.h into an awk script `defines.awk', embedded as
26664 # here-document in config.status, that substitutes the proper values into
26665 # config.h.in to produce config.h.
26667 # Create a delimiter string that does not exist in confdefs.h, to ease
26668 # handling of long lines.
26670 for ac_last_try in false false :; do
26671 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
26672 if test -z "$ac_tt"; then
26674 elif $ac_last_try; then
26675 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
26677 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
26681 # For the awk script, D is an array of macro values keyed by name,
26682 # likewise P contains macro parameters if any. Preserve backslash
26683 # newline sequences.
26685 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
26687 s/.\{148\}/&'"$ac_delim"'/g
26690 s/^[ ]*#[ ]*define[ ][ ]*/ /
26697 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
26699 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
26703 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
26704 D["\1"]=" \3\\\\\\n"\\/p
26706 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
26711 s/.\{148\}/&'"$ac_delim"'/g
26716 s/["\\]/\\&/g; s/^/"/; s/$/"/p
26719 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
26721 ' <confdefs.h | sed '
26722 s/'"$ac_delim"'/"\\\
26723 "/g' >>$CONFIG_STATUS || ac_write_fail=1
26725 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26726 for (key in D) D_is_set[key] = 1
26729 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
26731 split(line, arg, " ")
26732 if (arg[1] == "#") {
26736 defundef = substr(arg[1], 2)
26739 split(mac1, mac2, "(") #)
26741 prefix = substr(line, 1, index(line, defundef) - 1)
26742 if (D_is_set[macro]) {
26743 # Preserve the white space surrounding the "#".
26744 print prefix "define", macro P[macro] D[macro]
26747 # Replace #undef with comments. This is necessary, for example,
26748 # in the case of _POSIX_SOURCE, which is predefined and required
26749 # on some systems where configure will not decide to define it.
26750 if (defundef == "undef") {
26751 print "/*", prefix defundef, macro, "*/"
26759 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26760 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
26761 fi # test -n "$CONFIG_HEADERS"
26764 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
26769 :[FHLC]) ac_mode=$ac_tag; continue;;
26771 case $ac_mode$ac_tag in
26773 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
26774 :[FH]-) ac_tag=-:-;;
26775 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
26792 -) ac_f="$ac_tmp/stdin";;
26793 *) # Look for the file first in the build tree, then in the source tree
26794 # (if the path is not absolute). The absolute path cannot be DOS-style,
26795 # because $ac_f cannot contain `:'.
26799 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
26801 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
26803 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
26804 as_fn_append ac_file_inputs " '$ac_f'"
26807 # Let's still pretend it is `configure' which instantiates (i.e., don't
26808 # use $as_me), people would be surprised to read:
26809 # /* config.h. Generated by config.status. */
26810 configure_input='Generated from '`
26811 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
26813 if test x"$ac_file" != x-; then
26814 configure_input="$ac_file. $configure_input"
26815 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
26816 $as_echo "$as_me: creating $ac_file" >&6;}
26818 # Neutralize special characters interpreted by sed in replacement strings.
26819 case $configure_input in #(
26820 *\&* | *\|* | *\\* )
26821 ac_sed_conf_input=`$as_echo "$configure_input" |
26822 sed 's/[\\\\&|]/\\\\&/g'`;; #(
26823 *) ac_sed_conf_input=$configure_input;;
26827 *:-:* | *:-) cat >"$ac_tmp/stdin" \
26828 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
26833 ac_dir=`$as_dirname -- "$ac_file" ||
26834 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26835 X"$ac_file" : 'X\(//\)[^/]' \| \
26836 X"$ac_file" : 'X\(//\)$' \| \
26837 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
26838 $as_echo X"$ac_file" |
26839 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26843 /^X\(\/\/\)[^/].*/{
26856 as_dir="$ac_dir"; as_fn_mkdir_p
26860 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
26862 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
26863 # A ".." for each directory in $ac_dir_suffix.
26864 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
26865 case $ac_top_builddir_sub in
26866 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
26867 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
26870 ac_abs_top_builddir=$ac_pwd
26871 ac_abs_builddir=$ac_pwd$ac_dir_suffix
26872 # for backward compatibility:
26873 ac_top_builddir=$ac_top_build_prefix
26876 .) # We are building in place.
26878 ac_top_srcdir=$ac_top_builddir_sub
26879 ac_abs_top_srcdir=$ac_pwd ;;
26880 [\\/]* | ?:[\\/]* ) # Absolute name.
26881 ac_srcdir=$srcdir$ac_dir_suffix;
26882 ac_top_srcdir=$srcdir
26883 ac_abs_top_srcdir=$srcdir ;;
26884 *) # Relative name.
26885 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
26886 ac_top_srcdir=$ac_top_build_prefix$srcdir
26887 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
26889 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
26899 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
26900 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
26902 ac_MKDIR_P=$MKDIR_P
26904 [\\/$]* | ?:[\\/]* ) ;;
26905 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
26909 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26910 # If the template does not know about datarootdir, expand it.
26911 # FIXME: This hack should be removed a few years after 2.60.
26912 ac_datarootdir_hack=; ac_datarootdir_seen=
26923 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
26924 *datarootdir*) ac_datarootdir_seen=yes;;
26925 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
26926 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
26927 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
26929 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26930 ac_datarootdir_hack='
26931 s&@datadir@&$datadir&g
26932 s&@docdir@&$docdir&g
26933 s&@infodir@&$infodir&g
26934 s&@localedir@&$localedir&g
26935 s&@mandir@&$mandir&g
26936 s&\\\${datarootdir}&$datarootdir&g' ;;
26940 # Neutralize VPATH when `$srcdir' = `.'.
26941 # Shell code in configure.ac might set extrasub.
26942 # FIXME: do we really want to maintain this feature?
26943 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26944 ac_sed_extra="$ac_vpsub
26947 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26949 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
26950 s|@configure_input@|$ac_sed_conf_input|;t t
26951 s&@top_builddir@&$ac_top_builddir_sub&;t t
26952 s&@top_build_prefix@&$ac_top_build_prefix&;t t
26953 s&@srcdir@&$ac_srcdir&;t t
26954 s&@abs_srcdir@&$ac_abs_srcdir&;t t
26955 s&@top_srcdir@&$ac_top_srcdir&;t t
26956 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
26957 s&@builddir@&$ac_builddir&;t t
26958 s&@abs_builddir@&$ac_abs_builddir&;t t
26959 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
26960 s&@INSTALL@&$ac_INSTALL&;t t
26961 s&@MKDIR_P@&$ac_MKDIR_P&;t t
26962 $ac_datarootdir_hack
26964 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
26965 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
26967 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
26968 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
26969 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
26970 "$ac_tmp/out"`; test -z "$ac_out"; } &&
26971 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
26972 which seems to be undefined. Please make sure it is defined" >&5
26973 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
26974 which seems to be undefined. Please make sure it is defined" >&2;}
26976 rm -f "$ac_tmp/stdin"
26978 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
26979 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
26981 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
26987 if test x"$ac_file" != x-; then
26989 $as_echo "/* $configure_input */" \
26990 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
26991 } >"$ac_tmp/config.h" \
26992 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
26993 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
26994 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
26995 $as_echo "$as_me: $ac_file is unchanged" >&6;}
26998 mv "$ac_tmp/config.h" "$ac_file" \
26999 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
27002 $as_echo "/* $configure_input */" \
27003 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
27004 || as_fn_error $? "could not create -" "$LINENO" 5
27006 # Compute "$ac_file"'s index in $config_headers.
27009 for _am_header in $config_headers :; do
27010 case $_am_header in
27011 $_am_arg | $_am_arg:* )
27014 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
27017 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
27018 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27019 X"$_am_arg" : 'X\(//\)[^/]' \| \
27020 X"$_am_arg" : 'X\(//\)$' \| \
27021 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
27022 $as_echo X"$_am_arg" |
27023 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27027 /^X\(\/\/\)[^/].*/{
27039 s/.*/./; q'`/stamp-h$_am_stamp_count
27042 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
27043 $as_echo "$as_me: executing $ac_file commands" >&6;}
27048 case $ac_file$ac_mode in
27049 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
27050 # Older Autoconf quotes --file arguments for eval, but not when files
27051 # are listed without --file. Let's play safe and only enable the eval
27052 # if we detect the quoting.
27053 case $CONFIG_FILES in
27054 *\'*) eval set x "$CONFIG_FILES" ;;
27055 *) set x $CONFIG_FILES ;;
27060 # Strip MF so we end up with the name of the file.
27061 mf=`echo "$mf" | sed -e 's/:.*$//'`
27062 # Check whether this is an Automake generated Makefile or not.
27063 # We used to match only the files named 'Makefile.in', but
27064 # some people rename them; so instead we look at the file content.
27065 # Grep'ing the first line is not enough: some people post-process
27066 # each Makefile.in and add a new line on top of each file to say so.
27067 # Grep'ing the whole file is not good either: AIX grep has a line
27068 # limit of 2048, but all sed's we know have understand at least 4000.
27069 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
27070 dirpart=`$as_dirname -- "$mf" ||
27071 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27072 X"$mf" : 'X\(//\)[^/]' \| \
27073 X"$mf" : 'X\(//\)$' \| \
27074 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
27076 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27080 /^X\(\/\/\)[^/].*/{
27096 # Extract the definition of DEPDIR, am__include, and am__quote
27097 # from the Makefile without running 'make'.
27098 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
27099 test -z "$DEPDIR" && continue
27100 am__include=`sed -n 's/^am__include = //p' < "$mf"`
27101 test -z "$am__include" && continue
27102 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
27103 # Find all dependency output files, they are included files with
27104 # $(DEPDIR) in their names. We invoke sed twice because it is the
27105 # simplest approach to changing $(DEPDIR) to its actual value in the
27107 for file in `sed -n "
27108 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
27109 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
27110 # Make sure the directory exists.
27111 test -f "$dirpart/$file" && continue
27112 fdir=`$as_dirname -- "$file" ||
27113 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27114 X"$file" : 'X\(//\)[^/]' \| \
27115 X"$file" : 'X\(//\)$' \| \
27116 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
27117 $as_echo X"$file" |
27118 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27122 /^X\(\/\/\)[^/].*/{
27135 as_dir=$dirpart/$fdir; as_fn_mkdir_p
27136 # echo "creating $dirpart/$file"
27137 echo '# dummy' > "$dirpart/$file"
27144 # See if we are running on zsh, and set the options which allow our
27145 # commands through without removal of \ escapes.
27146 if test -n "${ZSH_VERSION+set}" ; then
27147 setopt NO_GLOB_SUBST
27150 cfgfile="${ofile}T"
27151 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
27154 cat <<_LT_EOF >> "$cfgfile"
27157 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
27158 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
27159 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
27160 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
27162 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
27163 # 2006, 2007, 2008, 2009, 2010, 2011 Free Software
27165 # Written by Gordon Matzigkeit, 1996
27167 # This file is part of GNU Libtool.
27169 # GNU Libtool is free software; you can redistribute it and/or
27170 # modify it under the terms of the GNU General Public License as
27171 # published by the Free Software Foundation; either version 2 of
27172 # the License, or (at your option) any later version.
27174 # As a special exception to the GNU General Public License,
27175 # if you distribute this file as part of a program or library that
27176 # is built using GNU Libtool, you may include this file under the
27177 # same distribution terms that you use for the rest of that program.
27179 # GNU Libtool is distributed in the hope that it will be useful,
27180 # but WITHOUT ANY WARRANTY; without even the implied warranty of
27181 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
27182 # GNU General Public License for more details.
27184 # You should have received a copy of the GNU General Public License
27185 # along with GNU Libtool; see the file COPYING. If not, a copy
27186 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
27187 # obtained by writing to the Free Software Foundation, Inc.,
27188 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
27191 # The names of the tagged configurations supported by this script.
27194 # ### BEGIN LIBTOOL CONFIG
27196 # Which release of libtool.m4 was used?
27197 macro_version=$macro_version
27198 macro_revision=$macro_revision
27200 # Whether or not to build static libraries.
27201 build_old_libs=$enable_static
27203 # Whether or not to build shared libraries.
27204 build_libtool_libs=$enable_shared
27206 # What type of objects to build.
27209 # Whether or not to optimize for fast installation.
27210 fast_install=$enable_fast_install
27212 # Shell to use when invoking shell scripts.
27215 # An echo program that protects backslashes.
27218 # The PATH separator for the build system.
27219 PATH_SEPARATOR=$lt_PATH_SEPARATOR
27222 host_alias=$host_alias
27226 # The build system.
27227 build_alias=$build_alias
27231 # A sed program that does not truncate output.
27234 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
27235 Xsed="\$SED -e 1s/^X//"
27237 # A grep program that handles long lines.
27243 # A literal string matcher.
27246 # A BSD- or MS-compatible name lister.
27249 # Whether we need soft or hard links.
27252 # What is the maximum length of a command?
27253 max_cmd_len=$max_cmd_len
27255 # Object file suffix (normally "o").
27258 # Executable file suffix (normally "").
27261 # whether the shell understands "unset".
27264 # turn spaces into newlines.
27267 # turn newlines into spaces.
27270 # convert \$build file names to \$host format.
27271 to_host_file_cmd=$lt_cv_to_host_file_cmd
27273 # convert \$build files to toolchain format.
27274 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
27276 # An object symbol dumper.
27277 OBJDUMP=$lt_OBJDUMP
27279 # Method to check whether dependent libraries are shared objects.
27280 deplibs_check_method=$lt_deplibs_check_method
27282 # Command to use when deplibs_check_method = "file_magic".
27283 file_magic_cmd=$lt_file_magic_cmd
27285 # How to find potential files when deplibs_check_method = "file_magic".
27286 file_magic_glob=$lt_file_magic_glob
27288 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
27289 want_nocaseglob=$lt_want_nocaseglob
27291 # DLL creation program.
27292 DLLTOOL=$lt_DLLTOOL
27294 # Command to associate shared and link libraries.
27295 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
27300 # Flags to create an archive.
27301 AR_FLAGS=$lt_AR_FLAGS
27303 # How to feed a file listing to the archiver.
27304 archiver_list_spec=$lt_archiver_list_spec
27306 # A symbol stripping program.
27309 # Commands used to install an old-style archive.
27311 old_postinstall_cmds=$lt_old_postinstall_cmds
27312 old_postuninstall_cmds=$lt_old_postuninstall_cmds
27314 # Whether to use a lock for old archive extraction.
27315 lock_old_archive_extraction=$lock_old_archive_extraction
27320 # LTCC compiler flags.
27321 LTCFLAGS=$lt_CFLAGS
27323 # Take the output of nm and produce a listing of raw symbols and C names.
27324 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
27326 # Transform the output of nm in a proper C declaration.
27327 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
27329 # Transform the output of nm in a C name address pair.
27330 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
27332 # Transform the output of nm in a C name address pair when lib prefix is needed.
27333 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
27335 # Specify filename containing input files for \$NM.
27336 nm_file_list_spec=$lt_nm_file_list_spec
27338 # The root where to search for dependent libraries,and in which our libraries should be installed.
27339 lt_sysroot=$lt_sysroot
27341 # The name of the directory that contains temporary libtool files.
27344 # Used to examine libraries when file_magic_cmd begins with "file".
27345 MAGIC_CMD=$MAGIC_CMD
27347 # Must we lock files when doing compilation?
27348 need_locks=$lt_need_locks
27351 MANIFEST_TOOL=$lt_MANIFEST_TOOL
27353 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
27354 DSYMUTIL=$lt_DSYMUTIL
27356 # Tool to change global to local symbols on Mac OS X.
27359 # Tool to manipulate fat objects and archives on Mac OS X.
27362 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
27365 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
27366 OTOOL64=$lt_OTOOL64
27368 # Old archive suffix (normally "a").
27371 # Shared library suffix (normally ".so").
27372 shrext_cmds=$lt_shrext_cmds
27374 # The commands to extract the exported symbol list from a shared archive.
27375 extract_expsyms_cmds=$lt_extract_expsyms_cmds
27377 # Variables whose values should be saved in libtool wrapper scripts and
27378 # restored at link time.
27379 variables_saved_for_relink=$lt_variables_saved_for_relink
27381 # Do we need the "lib" prefix for modules?
27382 need_lib_prefix=$need_lib_prefix
27384 # Do we need a version for libraries?
27385 need_version=$need_version
27387 # Library versioning type.
27388 version_type=$version_type
27390 # Shared library runtime path variable.
27391 runpath_var=$runpath_var
27393 # Shared library path variable.
27394 shlibpath_var=$shlibpath_var
27396 # Is shlibpath searched before the hard-coded library search path?
27397 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
27399 # Format of library name prefix.
27400 libname_spec=$lt_libname_spec
27402 # List of archive names. First name is the real one, the rest are links.
27403 # The last name is the one that the linker finds with -lNAME
27404 library_names_spec=$lt_library_names_spec
27406 # The coded name of the library, if different from the real name.
27407 soname_spec=$lt_soname_spec
27409 # Permission mode override for installation of shared libraries.
27410 install_override_mode=$lt_install_override_mode
27412 # Command to use after installation of a shared archive.
27413 postinstall_cmds=$lt_postinstall_cmds
27415 # Command to use after uninstallation of a shared archive.
27416 postuninstall_cmds=$lt_postuninstall_cmds
27418 # Commands used to finish a libtool library installation in a directory.
27419 finish_cmds=$lt_finish_cmds
27421 # As "finish_cmds", except a single script fragment to be evaled but
27423 finish_eval=$lt_finish_eval
27425 # Whether we should hardcode library paths into libraries.
27426 hardcode_into_libs=$hardcode_into_libs
27428 # Compile-time system search path for libraries.
27429 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
27431 # Run-time system search path for libraries.
27432 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
27434 # Whether dlopen is supported.
27435 dlopen_support=$enable_dlopen
27437 # Whether dlopen of programs is supported.
27438 dlopen_self=$enable_dlopen_self
27440 # Whether dlopen of statically linked programs is supported.
27441 dlopen_self_static=$enable_dlopen_self_static
27443 # Commands to strip libraries.
27444 old_striplib=$lt_old_striplib
27445 striplib=$lt_striplib
27448 # The linker used to build libraries.
27451 # How to create reloadable object files.
27452 reload_flag=$lt_reload_flag
27453 reload_cmds=$lt_reload_cmds
27455 # Commands used to build an old-style archive.
27456 old_archive_cmds=$lt_old_archive_cmds
27458 # A language specific compiler.
27461 # Is the compiler the GNU compiler?
27464 # Compiler flag to turn off builtin functions.
27465 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
27467 # Additional compiler flags for building library objects.
27468 pic_flag=$lt_lt_prog_compiler_pic
27470 # How to pass a linker flag through the compiler.
27471 wl=$lt_lt_prog_compiler_wl
27473 # Compiler flag to prevent dynamic linking.
27474 link_static_flag=$lt_lt_prog_compiler_static
27476 # Does compiler simultaneously support -c and -o options?
27477 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
27479 # Whether or not to add -lc for building shared libraries.
27480 build_libtool_need_lc=$archive_cmds_need_lc
27482 # Whether or not to disallow shared libs when runtime libs are static.
27483 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
27485 # Compiler flag to allow reflexive dlopens.
27486 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
27488 # Compiler flag to generate shared objects directly from archives.
27489 whole_archive_flag_spec=$lt_whole_archive_flag_spec
27491 # Whether the compiler copes with passing no objects directly.
27492 compiler_needs_object=$lt_compiler_needs_object
27494 # Create an old-style archive from a shared archive.
27495 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
27497 # Create a temporary old-style archive to link instead of a shared archive.
27498 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
27500 # Commands used to build a shared archive.
27501 archive_cmds=$lt_archive_cmds
27502 archive_expsym_cmds=$lt_archive_expsym_cmds
27504 # Commands used to build a loadable module if different from building
27505 # a shared archive.
27506 module_cmds=$lt_module_cmds
27507 module_expsym_cmds=$lt_module_expsym_cmds
27509 # Whether we are building with GNU ld or not.
27510 with_gnu_ld=$lt_with_gnu_ld
27512 # Flag that allows shared libraries with undefined symbols to be built.
27513 allow_undefined_flag=$lt_allow_undefined_flag
27515 # Flag that enforces no undefined symbols.
27516 no_undefined_flag=$lt_no_undefined_flag
27518 # Flag to hardcode \$libdir into a binary during linking.
27519 # This must work even if \$libdir does not exist
27520 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
27522 # Whether we need a single "-rpath" flag with a separated argument.
27523 hardcode_libdir_separator=$lt_hardcode_libdir_separator
27525 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
27526 # DIR into the resulting binary.
27527 hardcode_direct=$hardcode_direct
27529 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
27530 # DIR into the resulting binary and the resulting library dependency is
27531 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
27532 # library is relocated.
27533 hardcode_direct_absolute=$hardcode_direct_absolute
27535 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
27536 # into the resulting binary.
27537 hardcode_minus_L=$hardcode_minus_L
27539 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
27540 # into the resulting binary.
27541 hardcode_shlibpath_var=$hardcode_shlibpath_var
27543 # Set to "yes" if building a shared library automatically hardcodes DIR
27544 # into the library and all subsequent libraries and executables linked
27546 hardcode_automatic=$hardcode_automatic
27548 # Set to yes if linker adds runtime paths of dependent libraries
27549 # to runtime path list.
27550 inherit_rpath=$inherit_rpath
27552 # Whether libtool must link a program against all its dependency libraries.
27553 link_all_deplibs=$link_all_deplibs
27555 # Set to "yes" if exported symbols are required.
27556 always_export_symbols=$always_export_symbols
27558 # The commands to list exported symbols.
27559 export_symbols_cmds=$lt_export_symbols_cmds
27561 # Symbols that should not be listed in the preloaded symbols.
27562 exclude_expsyms=$lt_exclude_expsyms
27564 # Symbols that must always be exported.
27565 include_expsyms=$lt_include_expsyms
27567 # Commands necessary for linking programs (against libraries) with templates.
27568 prelink_cmds=$lt_prelink_cmds
27570 # Commands necessary for finishing linking programs.
27571 postlink_cmds=$lt_postlink_cmds
27573 # Specify filename containing input files.
27574 file_list_spec=$lt_file_list_spec
27576 # How to hardcode a shared library path into an executable.
27577 hardcode_action=$hardcode_action
27579 # ### END LIBTOOL CONFIG
27585 cat <<\_LT_EOF >> "$cfgfile"
27586 # AIX sometimes has problems with the GCC collect2 program. For some
27587 # reason, if we set the COLLECT_NAMES environment variable, the problems
27588 # vanish in a puff of smoke.
27589 if test "X${COLLECT_NAMES+set}" != Xset; then
27591 export COLLECT_NAMES
27598 ltmain="$ac_aux_dir/ltmain.sh"
27601 # We use sed instead of cat because bash on DJGPP gets confused if
27602 # if finds mixed CR/LF and LF-only lines. Since sed operates in
27603 # text mode, it properly converts lines to CR/LF. This bash problem
27604 # is reportedly fixed, but why not run on old versions too?
27605 sed '$q' "$ltmain" >> "$cfgfile" \
27606 || (rm -f "$cfgfile"; exit 1)
27608 if test x"$xsi_shell" = xyes; then
27609 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
27613 \ */*) func_dirname_result="${1%/*}${2}" ;;\
27614 \ * ) func_dirname_result="${3}" ;;\
27616 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
27617 && mv -f "$cfgfile.tmp" "$cfgfile" \
27618 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
27619 test 0 -eq $? || _lt_function_replace_fail=:
27622 sed -e '/^func_basename ()$/,/^} # func_basename /c\
27625 \ func_basename_result="${1##*/}"\
27626 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
27627 && mv -f "$cfgfile.tmp" "$cfgfile" \
27628 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
27629 test 0 -eq $? || _lt_function_replace_fail=:
27632 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
27633 func_dirname_and_basename ()\
27636 \ */*) func_dirname_result="${1%/*}${2}" ;;\
27637 \ * ) func_dirname_result="${3}" ;;\
27639 \ func_basename_result="${1##*/}"\
27640 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
27641 && mv -f "$cfgfile.tmp" "$cfgfile" \
27642 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
27643 test 0 -eq $? || _lt_function_replace_fail=:
27646 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
27649 \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
27650 \ # positional parameters, so assign one to ordinary parameter first.\
27651 \ func_stripname_result=${3}\
27652 \ func_stripname_result=${func_stripname_result#"${1}"}\
27653 \ func_stripname_result=${func_stripname_result%"${2}"}\
27654 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
27655 && mv -f "$cfgfile.tmp" "$cfgfile" \
27656 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
27657 test 0 -eq $? || _lt_function_replace_fail=:
27660 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
27661 func_split_long_opt ()\
27663 \ func_split_long_opt_name=${1%%=*}\
27664 \ func_split_long_opt_arg=${1#*=}\
27665 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
27666 && mv -f "$cfgfile.tmp" "$cfgfile" \
27667 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
27668 test 0 -eq $? || _lt_function_replace_fail=:
27671 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
27672 func_split_short_opt ()\
27674 \ func_split_short_opt_arg=${1#??}\
27675 \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
27676 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
27677 && mv -f "$cfgfile.tmp" "$cfgfile" \
27678 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
27679 test 0 -eq $? || _lt_function_replace_fail=:
27682 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
27686 \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
27687 \ *) func_lo2o_result=${1} ;;\
27689 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
27690 && mv -f "$cfgfile.tmp" "$cfgfile" \
27691 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
27692 test 0 -eq $? || _lt_function_replace_fail=:
27695 sed -e '/^func_xform ()$/,/^} # func_xform /c\
27698 func_xform_result=${1%.*}.lo\
27699 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
27700 && mv -f "$cfgfile.tmp" "$cfgfile" \
27701 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
27702 test 0 -eq $? || _lt_function_replace_fail=:
27705 sed -e '/^func_arith ()$/,/^} # func_arith /c\
27708 func_arith_result=$(( $* ))\
27709 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
27710 && mv -f "$cfgfile.tmp" "$cfgfile" \
27711 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
27712 test 0 -eq $? || _lt_function_replace_fail=:
27715 sed -e '/^func_len ()$/,/^} # func_len /c\
27718 func_len_result=${#1}\
27719 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
27720 && mv -f "$cfgfile.tmp" "$cfgfile" \
27721 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
27722 test 0 -eq $? || _lt_function_replace_fail=:
27726 if test x"$lt_shell_append" = xyes; then
27727 sed -e '/^func_append ()$/,/^} # func_append /c\
27730 eval "${1}+=\\${2}"\
27731 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
27732 && mv -f "$cfgfile.tmp" "$cfgfile" \
27733 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
27734 test 0 -eq $? || _lt_function_replace_fail=:
27737 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
27738 func_append_quoted ()\
27740 \ func_quote_for_eval "${2}"\
27741 \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
27742 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
27743 && mv -f "$cfgfile.tmp" "$cfgfile" \
27744 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
27745 test 0 -eq $? || _lt_function_replace_fail=:
27748 # Save a `func_append' function call where possible by direct use of '+='
27749 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
27750 && mv -f "$cfgfile.tmp" "$cfgfile" \
27751 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
27752 test 0 -eq $? || _lt_function_replace_fail=:
27754 # Save a `func_append' function call even when '+=' is not available
27755 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
27756 && mv -f "$cfgfile.tmp" "$cfgfile" \
27757 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
27758 test 0 -eq $? || _lt_function_replace_fail=:
27761 if test x"$_lt_function_replace_fail" = x":"; then
27762 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
27763 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
27767 mv -f "$cfgfile" "$ofile" ||
27768 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
27779 ac_clean_files=$ac_clean_files_save
27781 test $ac_write_fail = 0 ||
27782 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
27785 # configure is writing to config.log, and then calls config.status.
27786 # config.status does its own redirection, appending to config.log.
27787 # Unfortunately, on DOS this fails, as config.log is still kept open
27788 # by configure, so config.status won't be able to write to it; its
27789 # output is simply discarded. So we exec the FD to /dev/null,
27790 # effectively closing config.log, so it can be properly (re)opened and
27791 # appended to by config.status. When coming back to configure, we
27792 # need to make the FD available again.
27793 if test "$no_create" != yes; then
27795 ac_config_status_args=
27796 test "$silent" = yes &&
27797 ac_config_status_args="$ac_config_status_args --quiet"
27799 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
27801 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
27802 # would make configure fail if this is the last instruction.
27803 $ac_cs_success || as_fn_exit 1
27805 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
27806 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
27807 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}