2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for libpipeline 1.3.1.
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.3.1'
594 PACKAGE_STRING='libpipeline 1.3.1'
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
759 HAVE_DECL_LOCALTIME_R
765 NEXT_AS_FIRST_DIRECTIVE_SYS_WAIT_H
769 NEXT_AS_FIRST_DIRECTIVE_SYS_TYPES_H
771 WINDOWS_64_BIT_ST_SIZE
772 NEXT_AS_FIRST_DIRECTIVE_SYS_STAT_H
808 NEXT_AS_FIRST_DIRECTIVE_SYS_SELECT_H
815 NEXT_AS_FIRST_DIRECTIVE_STRING_H
817 NEXT_AS_FIRST_DIRECTIVE_STDLIB_H
819 NEXT_AS_FIRST_DIRECTIVE_STDIO_H
821 GL_GENERATE_STDINT_H_FALSE
822 GL_GENERATE_STDINT_H_TRUE
831 HAVE_SIGNED_SIG_ATOMIC_T
834 BITSIZEOF_SIG_ATOMIC_T
840 NEXT_AS_FIRST_DIRECTIVE_STDINT_H
845 HAVE_UNSIGNED_LONG_LONG_INT
847 NEXT_AS_FIRST_DIRECTIVE_STDDEF_H
849 GL_GENERATE_STDDEF_H_FALSE
850 GL_GENERATE_STDDEF_H_TRUE
855 GL_GENERATE_STDBOOL_H_FALSE
856 GL_GENERATE_STDBOOL_H_TRUE
858 GL_GENERATE_STDARG_H_FALSE
859 GL_GENERATE_STDARG_H_TRUE
861 NEXT_AS_FIRST_DIRECTIVE_STDARG_H
870 REPLACE_STDIO_WRITE_FUNCS
871 REPLACE_STDIO_READ_FUNCS
880 REPLACE_OBSTACK_PRINTF
905 HAVE_DECL_OBSTACK_PRINTF
911 GNULIB_VSPRINTF_POSIX
915 GNULIB_VFPRINTF_POSIX
922 GNULIB_STDIO_H_SIGPIPE
923 GNULIB_STDIO_H_NONBLOCKING
938 GNULIB_OBSTACK_PRINTF_POSIX
939 GNULIB_OBSTACK_PRINTF
964 NEXT_AS_FIRST_DIRECTIVE_SIGNAL_H
967 REPLACE_PTHREAD_SIGMASK
969 HAVE_TYPE_VOLATILE_SIG_ATOMIC_T
970 HAVE_STRUCT_SIGACTION_SA_SIGACTION
976 HAVE_POSIX_SIGNALBLOCKING
979 GNULIB_SIGNAL_H_SIGPIPE
981 GNULIB_PTHREAD_SIGMASK
982 APPLE_UNIVERSAL_BUILD
983 HAVE_MSVC_INVALID_PARAMETER_HANDLER
1001 HAVE_DECL_STRERROR_R
1070 REPLACE_CANONICALIZE_FILE_NAME
1075 HAVE_STRUCT_RANDOM_DATA
1097 HAVE_DECL_GETLOADAVG
1098 HAVE_CANONICALIZE_FILE_NAME
1109 GNULIB_SECURE_GETENV
1112 GNULIB_REALLOC_POSIX
1129 GNULIB_CANONICALIZE_FILE_NAME
1140 IGNORE_UNUSED_LIBRARIES_CFLAGS
1142 NEXT_AS_FIRST_DIRECTIVE_SYS_TIME_H
1144 REPLACE_STRUCT_TIMEVAL
1145 REPLACE_GETTIMEOFDAY
1153 GL_GENERATE_FLOAT_H_FALSE
1154 GL_GENERATE_FLOAT_H_TRUE
1156 NEXT_AS_FIRST_DIRECTIVE_FLOAT_H
1164 GL_GENERATE_ERRNO_H_FALSE
1165 GL_GENERATE_ERRNO_H_TRUE
1167 NEXT_AS_FIRST_DIRECTIVE_ERRNO_H
1170 PRAGMA_SYSTEM_HEADER
1171 INCLUDE_NEXT_AS_FIRST_DIRECTIVE
1173 UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS
1174 UNISTD_H_HAVE_WINSOCK2_H
1195 REPLACE_GETDTABLESIZE
1196 REPLACE_GETDOMAINNAME
1207 HAVE_DECL_SETHOSTNAME
1208 HAVE_DECL_GETUSERSHELL
1209 HAVE_DECL_GETPAGESIZE
1210 HAVE_DECL_GETLOGIN_R
1211 HAVE_DECL_GETDOMAINNAME
1250 GNULIB_UNISTD_H_SIGPIPE
1251 GNULIB_UNISTD_H_NONBLOCKING
1277 GNULIB_GETDTABLESIZE
1278 GNULIB_GETDOMAINNAME
1294 GL_GENERATE_ALLOCA_H_FALSE
1295 GL_GENERATE_ALLOCA_H_TRUE
1298 GL_COND_LIBTOOL_FALSE
1299 GL_COND_LIBTOOL_TRUE
1357 MAINTAINER_MODE_FALSE
1358 MAINTAINER_MODE_TRUE
1360 AM_DEFAULT_VERBOSITY
1371 INSTALL_STRIP_PROGRAM
1413 program_transform_name
1426 enable_option_checking
1428 enable_maintainer_mode
1429 enable_dependency_tracking
1441 enable_socketpair_pipe
1443 ac_precious_vars='build_alias
1459 # Initialize some variables set by options.
1461 ac_init_version=false
1462 ac_unrecognized_opts=
1463 ac_unrecognized_sep=
1464 # The variables have the same names as the options, with
1465 # dashes changed to underlines.
1466 cache_file=/dev/null
1473 program_transform_name=s,x,x,
1481 # Installation directory options.
1482 # These are left unexpanded so users can "make install exec_prefix=/foo"
1483 # and all the variables that are supposed to be based on exec_prefix
1484 # by default will actually change.
1485 # Use braces instead of parens because sh, perl, etc. also accept them.
1486 # (The list follows the same order as the GNU Coding Standards.)
1487 bindir='${exec_prefix}/bin'
1488 sbindir='${exec_prefix}/sbin'
1489 libexecdir='${exec_prefix}/libexec'
1490 datarootdir='${prefix}/share'
1491 datadir='${datarootdir}'
1492 sysconfdir='${prefix}/etc'
1493 sharedstatedir='${prefix}/com'
1494 localstatedir='${prefix}/var'
1495 includedir='${prefix}/include'
1496 oldincludedir='/usr/include'
1497 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1498 infodir='${datarootdir}/info'
1503 libdir='${exec_prefix}/lib'
1504 localedir='${datarootdir}/locale'
1505 mandir='${datarootdir}/man'
1511 # If the previous option needs an argument, assign it.
1512 if test -n "$ac_prev"; then
1513 eval $ac_prev=\$ac_option
1519 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1524 # Accept the important Cygnus configure options, so we can diagnose typos.
1526 case $ac_dashdash$ac_option in
1530 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1532 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1533 bindir=$ac_optarg ;;
1535 -build | --build | --buil | --bui | --bu)
1536 ac_prev=build_alias ;;
1537 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1538 build_alias=$ac_optarg ;;
1540 -cache-file | --cache-file | --cache-fil | --cache-fi \
1541 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1542 ac_prev=cache_file ;;
1543 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1544 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1545 cache_file=$ac_optarg ;;
1547 --config-cache | -C)
1548 cache_file=config.cache ;;
1550 -datadir | --datadir | --datadi | --datad)
1552 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1553 datadir=$ac_optarg ;;
1555 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1556 | --dataroo | --dataro | --datar)
1557 ac_prev=datarootdir ;;
1558 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1559 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1560 datarootdir=$ac_optarg ;;
1562 -disable-* | --disable-*)
1563 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1564 # Reject names that are not valid shell variable names.
1565 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1566 as_fn_error $? "invalid feature name: $ac_useropt"
1567 ac_useropt_orig=$ac_useropt
1568 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1569 case $ac_user_opts in
1571 "enable_$ac_useropt"
1573 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1574 ac_unrecognized_sep=', ';;
1576 eval enable_$ac_useropt=no ;;
1578 -docdir | --docdir | --docdi | --doc | --do)
1580 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1581 docdir=$ac_optarg ;;
1583 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1585 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1586 dvidir=$ac_optarg ;;
1588 -enable-* | --enable-*)
1589 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1590 # Reject names that are not valid shell variable names.
1591 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1592 as_fn_error $? "invalid feature name: $ac_useropt"
1593 ac_useropt_orig=$ac_useropt
1594 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1595 case $ac_user_opts in
1597 "enable_$ac_useropt"
1599 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1600 ac_unrecognized_sep=', ';;
1602 eval enable_$ac_useropt=\$ac_optarg ;;
1604 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1605 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1606 | --exec | --exe | --ex)
1607 ac_prev=exec_prefix ;;
1608 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1609 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1610 | --exec=* | --exe=* | --ex=*)
1611 exec_prefix=$ac_optarg ;;
1613 -gas | --gas | --ga | --g)
1614 # Obsolete; use --with-gas.
1617 -help | --help | --hel | --he | -h)
1618 ac_init_help=long ;;
1619 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1620 ac_init_help=recursive ;;
1621 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1622 ac_init_help=short ;;
1624 -host | --host | --hos | --ho)
1625 ac_prev=host_alias ;;
1626 -host=* | --host=* | --hos=* | --ho=*)
1627 host_alias=$ac_optarg ;;
1629 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1631 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1633 htmldir=$ac_optarg ;;
1635 -includedir | --includedir | --includedi | --included | --include \
1636 | --includ | --inclu | --incl | --inc)
1637 ac_prev=includedir ;;
1638 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1639 | --includ=* | --inclu=* | --incl=* | --inc=*)
1640 includedir=$ac_optarg ;;
1642 -infodir | --infodir | --infodi | --infod | --info | --inf)
1644 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1645 infodir=$ac_optarg ;;
1647 -libdir | --libdir | --libdi | --libd)
1649 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1650 libdir=$ac_optarg ;;
1652 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1653 | --libexe | --libex | --libe)
1654 ac_prev=libexecdir ;;
1655 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1656 | --libexe=* | --libex=* | --libe=*)
1657 libexecdir=$ac_optarg ;;
1659 -localedir | --localedir | --localedi | --localed | --locale)
1660 ac_prev=localedir ;;
1661 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1662 localedir=$ac_optarg ;;
1664 -localstatedir | --localstatedir | --localstatedi | --localstated \
1665 | --localstate | --localstat | --localsta | --localst | --locals)
1666 ac_prev=localstatedir ;;
1667 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1668 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1669 localstatedir=$ac_optarg ;;
1671 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1673 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1674 mandir=$ac_optarg ;;
1676 -nfp | --nfp | --nf)
1677 # Obsolete; use --without-fp.
1680 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1681 | --no-cr | --no-c | -n)
1684 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1685 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1688 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1689 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1690 | --oldin | --oldi | --old | --ol | --o)
1691 ac_prev=oldincludedir ;;
1692 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1693 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1694 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1695 oldincludedir=$ac_optarg ;;
1697 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1699 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1700 prefix=$ac_optarg ;;
1702 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1703 | --program-pre | --program-pr | --program-p)
1704 ac_prev=program_prefix ;;
1705 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1706 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1707 program_prefix=$ac_optarg ;;
1709 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1710 | --program-suf | --program-su | --program-s)
1711 ac_prev=program_suffix ;;
1712 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1713 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1714 program_suffix=$ac_optarg ;;
1716 -program-transform-name | --program-transform-name \
1717 | --program-transform-nam | --program-transform-na \
1718 | --program-transform-n | --program-transform- \
1719 | --program-transform | --program-transfor \
1720 | --program-transfo | --program-transf \
1721 | --program-trans | --program-tran \
1722 | --progr-tra | --program-tr | --program-t)
1723 ac_prev=program_transform_name ;;
1724 -program-transform-name=* | --program-transform-name=* \
1725 | --program-transform-nam=* | --program-transform-na=* \
1726 | --program-transform-n=* | --program-transform-=* \
1727 | --program-transform=* | --program-transfor=* \
1728 | --program-transfo=* | --program-transf=* \
1729 | --program-trans=* | --program-tran=* \
1730 | --progr-tra=* | --program-tr=* | --program-t=*)
1731 program_transform_name=$ac_optarg ;;
1733 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1735 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1736 pdfdir=$ac_optarg ;;
1738 -psdir | --psdir | --psdi | --psd | --ps)
1740 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1743 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1744 | -silent | --silent | --silen | --sile | --sil)
1747 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1749 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1751 sbindir=$ac_optarg ;;
1753 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1754 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1755 | --sharedst | --shareds | --shared | --share | --shar \
1757 ac_prev=sharedstatedir ;;
1758 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1759 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1760 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1762 sharedstatedir=$ac_optarg ;;
1764 -site | --site | --sit)
1766 -site=* | --site=* | --sit=*)
1769 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1771 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1772 srcdir=$ac_optarg ;;
1774 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1775 | --syscon | --sysco | --sysc | --sys | --sy)
1776 ac_prev=sysconfdir ;;
1777 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1778 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1779 sysconfdir=$ac_optarg ;;
1781 -target | --target | --targe | --targ | --tar | --ta | --t)
1782 ac_prev=target_alias ;;
1783 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1784 target_alias=$ac_optarg ;;
1786 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1789 -version | --version | --versio | --versi | --vers | -V)
1790 ac_init_version=: ;;
1793 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1794 # Reject names that are not valid shell variable names.
1795 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1796 as_fn_error $? "invalid package name: $ac_useropt"
1797 ac_useropt_orig=$ac_useropt
1798 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1799 case $ac_user_opts in
1803 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1804 ac_unrecognized_sep=', ';;
1806 eval with_$ac_useropt=\$ac_optarg ;;
1808 -without-* | --without-*)
1809 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1810 # Reject names that are not valid shell variable names.
1811 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1812 as_fn_error $? "invalid package name: $ac_useropt"
1813 ac_useropt_orig=$ac_useropt
1814 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1815 case $ac_user_opts in
1819 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1820 ac_unrecognized_sep=', ';;
1822 eval with_$ac_useropt=no ;;
1825 # Obsolete; use --with-x.
1828 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1829 | --x-incl | --x-inc | --x-in | --x-i)
1830 ac_prev=x_includes ;;
1831 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1832 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1833 x_includes=$ac_optarg ;;
1835 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1836 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1837 ac_prev=x_libraries ;;
1838 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1839 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1840 x_libraries=$ac_optarg ;;
1842 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1843 Try \`$0 --help' for more information"
1847 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1848 # Reject names that are not valid shell variable names.
1849 case $ac_envvar in #(
1850 '' | [0-9]* | *[!_$as_cr_alnum]* )
1851 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1853 eval $ac_envvar=\$ac_optarg
1854 export $ac_envvar ;;
1857 # FIXME: should be removed in autoconf 3.0.
1858 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1859 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1860 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1861 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1867 if test -n "$ac_prev"; then
1868 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1869 as_fn_error $? "missing argument to $ac_option"
1872 if test -n "$ac_unrecognized_opts"; then
1873 case $enable_option_checking in
1875 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1876 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1880 # Check all directory arguments for consistency.
1881 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1882 datadir sysconfdir sharedstatedir localstatedir includedir \
1883 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1884 libdir localedir mandir
1886 eval ac_val=\$$ac_var
1887 # Remove trailing slashes.
1890 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1891 eval $ac_var=\$ac_val;;
1893 # Be sure to have absolute directory names.
1895 [\\/$]* | ?:[\\/]* ) continue;;
1896 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1898 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1901 # There might be people who depend on the old broken behavior: `$host'
1902 # used to hold the argument of --host etc.
1903 # FIXME: To remove some day.
1906 target=$target_alias
1908 # FIXME: To remove some day.
1909 if test "x$host_alias" != x; then
1910 if test "x$build_alias" = x; then
1911 cross_compiling=maybe
1912 elif test "x$build_alias" != "x$host_alias"; then
1918 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1920 test "$silent" = yes && exec 6>/dev/null
1923 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1924 ac_ls_di=`ls -di .` &&
1925 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1926 as_fn_error $? "working directory cannot be determined"
1927 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1928 as_fn_error $? "pwd does not report name of working directory"
1931 # Find the source files, if location was not specified.
1932 if test -z "$srcdir"; then
1933 ac_srcdir_defaulted=yes
1934 # Try the directory containing this script, then the parent directory.
1935 ac_confdir=`$as_dirname -- "$as_myself" ||
1936 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1937 X"$as_myself" : 'X\(//\)[^/]' \| \
1938 X"$as_myself" : 'X\(//\)$' \| \
1939 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1940 $as_echo X"$as_myself" |
1941 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1959 if test ! -r "$srcdir/$ac_unique_file"; then
1963 ac_srcdir_defaulted=no
1965 if test ! -r "$srcdir/$ac_unique_file"; then
1966 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1967 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1969 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1971 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1973 # When building in place, set srcdir=.
1974 if test "$ac_abs_confdir" = "$ac_pwd"; then
1977 # Remove unnecessary trailing slashes from srcdir.
1978 # Double slashes in file names in object file debugging info
1979 # mess up M-x gdb in Emacs.
1981 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1983 for ac_var in $ac_precious_vars; do
1984 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1985 eval ac_env_${ac_var}_value=\$${ac_var}
1986 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1987 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1991 # Report the --help message.
1993 if test "$ac_init_help" = "long"; then
1994 # Omit some internal or obsolete options to make the list less imposing.
1995 # This message is too long to be a string in the A/UX 3.1 sh.
1997 \`configure' configures libpipeline 1.3.1 to adapt to many kinds of systems.
1999 Usage: $0 [OPTION]... [VAR=VALUE]...
2001 To assign environment variables (e.g., CC, CFLAGS...), specify them as
2002 VAR=VALUE. See below for descriptions of some of the useful variables.
2004 Defaults for the options are specified in brackets.
2007 -h, --help display this help and exit
2008 --help=short display options specific to this package
2009 --help=recursive display the short help of all the included packages
2010 -V, --version display version information and exit
2011 -q, --quiet, --silent do not print \`checking ...' messages
2012 --cache-file=FILE cache test results in FILE [disabled]
2013 -C, --config-cache alias for \`--cache-file=config.cache'
2014 -n, --no-create do not create output files
2015 --srcdir=DIR find the sources in DIR [configure dir or \`..']
2017 Installation directories:
2018 --prefix=PREFIX install architecture-independent files in PREFIX
2019 [$ac_default_prefix]
2020 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
2023 By default, \`make install' will install all the files in
2024 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
2025 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
2026 for instance \`--prefix=\$HOME'.
2028 For better control, use the options below.
2030 Fine tuning of the installation directories:
2031 --bindir=DIR user executables [EPREFIX/bin]
2032 --sbindir=DIR system admin executables [EPREFIX/sbin]
2033 --libexecdir=DIR program executables [EPREFIX/libexec]
2034 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
2035 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
2036 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
2037 --libdir=DIR object code libraries [EPREFIX/lib]
2038 --includedir=DIR C header files [PREFIX/include]
2039 --oldincludedir=DIR C header files for non-gcc [/usr/include]
2040 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
2041 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
2042 --infodir=DIR info documentation [DATAROOTDIR/info]
2043 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
2044 --mandir=DIR man documentation [DATAROOTDIR/man]
2045 --docdir=DIR documentation root [DATAROOTDIR/doc/libpipeline]
2046 --htmldir=DIR html documentation [DOCDIR]
2047 --dvidir=DIR dvi documentation [DOCDIR]
2048 --pdfdir=DIR pdf documentation [DOCDIR]
2049 --psdir=DIR ps documentation [DOCDIR]
2055 --program-prefix=PREFIX prepend PREFIX to installed program names
2056 --program-suffix=SUFFIX append SUFFIX to installed program names
2057 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
2060 --build=BUILD configure for building on BUILD [guessed]
2061 --host=HOST cross-compile to build programs to run on HOST [BUILD]
2065 if test -n "$ac_init_help"; then
2066 case $ac_init_help in
2067 short | recursive ) echo "Configuration of libpipeline 1.3.1:";;
2072 --disable-option-checking ignore unrecognized --enable/--with options
2073 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
2074 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
2075 --enable-silent-rules less verbose build output (undo: "make V=1")
2076 --disable-silent-rules verbose build output (undo: "make V=0")
2077 --enable-maintainer-mode
2078 enable make rules and dependencies not useful (and
2079 sometimes confusing) to the casual installer
2080 --enable-dependency-tracking
2081 do not reject slow dependency extractors
2082 --disable-dependency-tracking
2083 speeds up one-time build
2084 --enable-static[=PKGS] build static libraries [default=no]
2085 --enable-shared[=PKGS] build shared libraries [default=yes]
2086 --enable-fast-install[=PKGS]
2087 optimize for fast installation [default=yes]
2088 --disable-libtool-lock avoid locking (might break parallel builds)
2089 --disable-largefile omit support for large files
2090 --enable-threads={posix|solaris|pth|windows}
2091 specify multithreading API
2092 --disable-threads build without multithread safety
2093 --disable-rpath do not hardcode runtime library paths
2094 --enable-socketpair-pipe
2095 Use socketpair(2) as fast replacement for pipe(2)
2098 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
2099 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
2100 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
2102 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
2103 --with-sysroot=DIR Search for dependent libraries within DIR
2104 (or the compiler's sysroot if not specified).
2105 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
2106 --with-libpth-prefix[=DIR] search for libpth in DIR/include and DIR/lib
2107 --without-libpth-prefix don't search for libpth in includedir and libdir
2109 Some influential environment variables:
2110 CC C compiler command
2111 CFLAGS C compiler flags
2112 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
2113 nonstandard directory <lib dir>
2114 LIBS libraries to pass to the linker, e.g. -l<library>
2115 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
2116 you have headers in a nonstandard directory <include dir>
2118 PKG_CONFIG path to pkg-config utility
2120 directories to add to pkg-config's search path
2122 path overriding pkg-config's built-in search path
2124 C compiler flags for CHECK, overriding pkg-config
2125 CHECK_LIBS linker flags for CHECK, overriding pkg-config
2127 Use these variables to override the choices made by `configure' or to help
2128 it to find libraries and programs with nonstandard names/locations.
2130 Report bugs to <cjwatson@debian.org>.
2135 if test "$ac_init_help" = "recursive"; then
2136 # If there are subdirs, report their specific --help.
2137 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
2138 test -d "$ac_dir" ||
2139 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
2144 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
2146 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
2147 # A ".." for each directory in $ac_dir_suffix.
2148 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
2149 case $ac_top_builddir_sub in
2150 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
2151 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
2154 ac_abs_top_builddir=$ac_pwd
2155 ac_abs_builddir=$ac_pwd$ac_dir_suffix
2156 # for backward compatibility:
2157 ac_top_builddir=$ac_top_build_prefix
2160 .) # We are building in place.
2162 ac_top_srcdir=$ac_top_builddir_sub
2163 ac_abs_top_srcdir=$ac_pwd ;;
2164 [\\/]* | ?:[\\/]* ) # Absolute name.
2165 ac_srcdir=$srcdir$ac_dir_suffix;
2166 ac_top_srcdir=$srcdir
2167 ac_abs_top_srcdir=$srcdir ;;
2169 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
2170 ac_top_srcdir=$ac_top_build_prefix$srcdir
2171 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
2173 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
2175 cd "$ac_dir" || { ac_status=$?; continue; }
2176 # Check for guested configure.
2177 if test -f "$ac_srcdir/configure.gnu"; then
2179 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
2180 elif test -f "$ac_srcdir/configure"; then
2182 $SHELL "$ac_srcdir/configure" --help=recursive
2184 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
2186 cd "$ac_pwd" || { ac_status=$?; break; }
2190 test -n "$ac_init_help" && exit $ac_status
2191 if $ac_init_version; then
2193 libpipeline configure 1.3.1
2194 generated by GNU Autoconf 2.69
2196 Copyright (C) 2012 Free Software Foundation, Inc.
2197 This configure script is free software; the Free Software Foundation
2198 gives unlimited permission to copy, distribute and modify it.
2203 ## ------------------------ ##
2204 ## Autoconf initialization. ##
2205 ## ------------------------ ##
2207 # ac_fn_c_try_compile LINENO
2208 # --------------------------
2209 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2210 ac_fn_c_try_compile ()
2212 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2213 rm -f conftest.$ac_objext
2214 if { { ac_try="$ac_compile"
2216 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2217 *) ac_try_echo=$ac_try;;
2219 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2220 $as_echo "$ac_try_echo"; } >&5
2221 (eval "$ac_compile") 2>conftest.err
2223 if test -s conftest.err; then
2224 grep -v '^ *+' conftest.err >conftest.er1
2225 cat conftest.er1 >&5
2226 mv -f conftest.er1 conftest.err
2228 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2229 test $ac_status = 0; } && {
2230 test -z "$ac_c_werror_flag" ||
2231 test ! -s conftest.err
2232 } && test -s conftest.$ac_objext; then :
2235 $as_echo "$as_me: failed program was:" >&5
2236 sed 's/^/| /' conftest.$ac_ext >&5
2240 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2241 as_fn_set_status $ac_retval
2243 } # ac_fn_c_try_compile
2245 # ac_fn_c_try_cpp LINENO
2246 # ----------------------
2247 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2250 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2251 if { { ac_try="$ac_cpp conftest.$ac_ext"
2253 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2254 *) ac_try_echo=$ac_try;;
2256 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2257 $as_echo "$ac_try_echo"; } >&5
2258 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2260 if test -s conftest.err; then
2261 grep -v '^ *+' conftest.err >conftest.er1
2262 cat conftest.er1 >&5
2263 mv -f conftest.er1 conftest.err
2265 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2266 test $ac_status = 0; } > conftest.i && {
2267 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2268 test ! -s conftest.err
2272 $as_echo "$as_me: failed program was:" >&5
2273 sed 's/^/| /' conftest.$ac_ext >&5
2277 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2278 as_fn_set_status $ac_retval
2282 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2283 # -------------------------------------------------------
2284 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2285 # the include files in INCLUDES and setting the cache variable VAR
2287 ac_fn_c_check_header_mongrel ()
2289 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2290 if eval \${$3+:} false; then :
2291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2292 $as_echo_n "checking for $2... " >&6; }
2293 if eval \${$3+:} false; then :
2294 $as_echo_n "(cached) " >&6
2297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2298 $as_echo "$ac_res" >&6; }
2300 # Is the header compilable?
2301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2302 $as_echo_n "checking $2 usability... " >&6; }
2303 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2304 /* end confdefs.h. */
2308 if ac_fn_c_try_compile "$LINENO"; then :
2309 ac_header_compiler=yes
2311 ac_header_compiler=no
2313 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2315 $as_echo "$ac_header_compiler" >&6; }
2317 # Is the header present?
2318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2319 $as_echo_n "checking $2 presence... " >&6; }
2320 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2321 /* end confdefs.h. */
2324 if ac_fn_c_try_cpp "$LINENO"; then :
2325 ac_header_preproc=yes
2327 ac_header_preproc=no
2329 rm -f conftest.err conftest.i conftest.$ac_ext
2330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2331 $as_echo "$ac_header_preproc" >&6; }
2333 # So? What about this header?
2334 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2336 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2337 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2338 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2339 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2342 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2343 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2344 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2345 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2346 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2347 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2348 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2349 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2350 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2351 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2352 ( $as_echo "## ---------------------------------- ##
2353 ## Report this to cjwatson@debian.org ##
2354 ## ---------------------------------- ##"
2355 ) | sed "s/^/$as_me: WARNING: /" >&2
2358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2359 $as_echo_n "checking for $2... " >&6; }
2360 if eval \${$3+:} false; then :
2361 $as_echo_n "(cached) " >&6
2363 eval "$3=\$ac_header_compiler"
2366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2367 $as_echo "$ac_res" >&6; }
2369 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2371 } # ac_fn_c_check_header_mongrel
2373 # ac_fn_c_try_run LINENO
2374 # ----------------------
2375 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2376 # that executables *can* be run.
2379 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2380 if { { ac_try="$ac_link"
2382 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2383 *) ac_try_echo=$ac_try;;
2385 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2386 $as_echo "$ac_try_echo"; } >&5
2387 (eval "$ac_link") 2>&5
2389 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2390 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2391 { { case "(($ac_try" in
2392 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2393 *) ac_try_echo=$ac_try;;
2395 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2396 $as_echo "$ac_try_echo"; } >&5
2397 (eval "$ac_try") 2>&5
2399 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2400 test $ac_status = 0; }; }; then :
2403 $as_echo "$as_me: program exited with status $ac_status" >&5
2404 $as_echo "$as_me: failed program was:" >&5
2405 sed 's/^/| /' conftest.$ac_ext >&5
2407 ac_retval=$ac_status
2409 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2410 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2411 as_fn_set_status $ac_retval
2415 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2416 # -------------------------------------------------------
2417 # Tests whether HEADER exists and can be compiled using the include files in
2418 # INCLUDES, setting the cache variable VAR accordingly.
2419 ac_fn_c_check_header_compile ()
2421 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2423 $as_echo_n "checking for $2... " >&6; }
2424 if eval \${$3+:} false; then :
2425 $as_echo_n "(cached) " >&6
2427 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2428 /* end confdefs.h. */
2432 if ac_fn_c_try_compile "$LINENO"; then :
2437 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2441 $as_echo "$ac_res" >&6; }
2442 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2444 } # ac_fn_c_check_header_compile
2446 # ac_fn_c_try_link LINENO
2447 # -----------------------
2448 # Try to link conftest.$ac_ext, and return whether this succeeded.
2451 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2452 rm -f conftest.$ac_objext conftest$ac_exeext
2453 if { { ac_try="$ac_link"
2455 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2456 *) ac_try_echo=$ac_try;;
2458 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2459 $as_echo "$ac_try_echo"; } >&5
2460 (eval "$ac_link") 2>conftest.err
2462 if test -s conftest.err; then
2463 grep -v '^ *+' conftest.err >conftest.er1
2464 cat conftest.er1 >&5
2465 mv -f conftest.er1 conftest.err
2467 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2468 test $ac_status = 0; } && {
2469 test -z "$ac_c_werror_flag" ||
2470 test ! -s conftest.err
2471 } && test -s conftest$ac_exeext && {
2472 test "$cross_compiling" = yes ||
2473 test -x conftest$ac_exeext
2477 $as_echo "$as_me: failed program was:" >&5
2478 sed 's/^/| /' conftest.$ac_ext >&5
2482 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2483 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2484 # interfere with the next link command; also delete a directory that is
2485 # left behind by Apple's compiler. We do this before executing the actions.
2486 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2487 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2488 as_fn_set_status $ac_retval
2490 } # ac_fn_c_try_link
2492 # ac_fn_c_check_func LINENO FUNC VAR
2493 # ----------------------------------
2494 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2495 ac_fn_c_check_func ()
2497 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2499 $as_echo_n "checking for $2... " >&6; }
2500 if eval \${$3+:} false; then :
2501 $as_echo_n "(cached) " >&6
2503 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2504 /* end confdefs.h. */
2505 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2506 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2507 #define $2 innocuous_$2
2509 /* System header to define __stub macros and hopefully few prototypes,
2510 which can conflict with char $2 (); below.
2511 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2512 <limits.h> exists even on freestanding compilers. */
2515 # include <limits.h>
2517 # include <assert.h>
2522 /* Override any GCC internal prototype to avoid an error.
2523 Use char because int might match the return type of a GCC
2524 builtin and then its argument prototype would still apply. */
2529 /* The GNU C library defines this for functions which it implements
2530 to always fail with ENOSYS. Some functions are actually named
2531 something starting with __ and the normal name is an alias. */
2532 #if defined __stub_$2 || defined __stub___$2
2544 if ac_fn_c_try_link "$LINENO"; then :
2549 rm -f core conftest.err conftest.$ac_objext \
2550 conftest$ac_exeext conftest.$ac_ext
2553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2554 $as_echo "$ac_res" >&6; }
2555 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2557 } # ac_fn_c_check_func
2559 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2560 # -------------------------------------------
2561 # Tests whether TYPE exists after having included INCLUDES, setting cache
2562 # variable VAR accordingly.
2563 ac_fn_c_check_type ()
2565 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2567 $as_echo_n "checking for $2... " >&6; }
2568 if eval \${$3+:} false; then :
2569 $as_echo_n "(cached) " >&6
2572 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2573 /* end confdefs.h. */
2584 if ac_fn_c_try_compile "$LINENO"; then :
2585 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2586 /* end confdefs.h. */
2597 if ac_fn_c_try_compile "$LINENO"; then :
2602 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2604 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2608 $as_echo "$ac_res" >&6; }
2609 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2611 } # ac_fn_c_check_type
2613 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2614 # --------------------------------------------
2615 # Tries to find the compile-time value of EXPR in a program that includes
2616 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2618 ac_fn_c_compute_int ()
2620 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2621 if test "$cross_compiling" = yes; then
2622 # Depending upon the size, compute the lo and hi bounds.
2623 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2624 /* end confdefs.h. */
2629 static int test_array [1 - 2 * !(($2) >= 0)];
2631 return test_array [0];
2637 if ac_fn_c_try_compile "$LINENO"; then :
2640 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2641 /* end confdefs.h. */
2646 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2648 return test_array [0];
2654 if ac_fn_c_try_compile "$LINENO"; then :
2655 ac_hi=$ac_mid; break
2657 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2658 if test $ac_lo -le $ac_mid; then
2662 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2664 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2667 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2668 /* end confdefs.h. */
2673 static int test_array [1 - 2 * !(($2) < 0)];
2675 return test_array [0];
2681 if ac_fn_c_try_compile "$LINENO"; then :
2684 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2685 /* end confdefs.h. */
2690 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2692 return test_array [0];
2698 if ac_fn_c_try_compile "$LINENO"; then :
2699 ac_lo=$ac_mid; break
2701 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2702 if test $ac_mid -le $ac_hi; then
2706 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2708 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2713 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2715 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2716 # Binary search between lo and hi bounds.
2717 while test "x$ac_lo" != "x$ac_hi"; do
2718 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2719 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2720 /* end confdefs.h. */
2725 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2727 return test_array [0];
2733 if ac_fn_c_try_compile "$LINENO"; then :
2736 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2738 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2741 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2745 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2746 /* end confdefs.h. */
2748 static long int longval () { return $2; }
2749 static unsigned long int ulongval () { return $2; }
2756 FILE *f = fopen ("conftest.val", "w");
2761 long int i = longval ();
2764 fprintf (f, "%ld", i);
2768 unsigned long int i = ulongval ();
2771 fprintf (f, "%lu", i);
2773 /* Do not output a trailing newline, as this causes \r\n confusion
2774 on some platforms. */
2775 return ferror (f) || fclose (f) != 0;
2781 if ac_fn_c_try_run "$LINENO"; then :
2782 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2786 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2787 conftest.$ac_objext conftest.beam conftest.$ac_ext
2791 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2792 as_fn_set_status $ac_retval
2794 } # ac_fn_c_compute_int
2796 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2797 # ---------------------------------------------
2798 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2800 ac_fn_c_check_decl ()
2802 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2803 as_decl_name=`echo $2|sed 's/ *(.*//'`
2804 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2806 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2807 if eval \${$3+:} false; then :
2808 $as_echo_n "(cached) " >&6
2810 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2811 /* end confdefs.h. */
2816 #ifndef $as_decl_name
2818 (void) $as_decl_use;
2820 (void) $as_decl_name;
2828 if ac_fn_c_try_compile "$LINENO"; then :
2833 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2837 $as_echo "$ac_res" >&6; }
2838 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2840 } # ac_fn_c_check_decl
2842 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2843 # ----------------------------------------------------
2844 # Tries to find if the field MEMBER exists in type AGGR, after including
2845 # INCLUDES, setting cache variable VAR accordingly.
2846 ac_fn_c_check_member ()
2848 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2850 $as_echo_n "checking for $2.$3... " >&6; }
2851 if eval \${$4+:} false; then :
2852 $as_echo_n "(cached) " >&6
2854 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2855 /* end confdefs.h. */
2867 if ac_fn_c_try_compile "$LINENO"; then :
2870 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2871 /* end confdefs.h. */
2877 if (sizeof ac_aggr.$3)
2883 if ac_fn_c_try_compile "$LINENO"; then :
2888 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2890 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2894 $as_echo "$ac_res" >&6; }
2895 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2897 } # ac_fn_c_check_member
2898 cat >config.log <<_ACEOF
2899 This file contains any messages produced by compilers while
2900 running configure, to aid debugging if configure makes a mistake.
2902 It was created by libpipeline $as_me 1.3.1, which was
2903 generated by GNU Autoconf 2.69. Invocation command line was
2915 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2916 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2917 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2918 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2919 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2921 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2922 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2924 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2925 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2926 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2927 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2928 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2929 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2930 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2934 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2938 test -z "$as_dir" && as_dir=.
2939 $as_echo "PATH: $as_dir"
2955 # Keep a trace of the command line.
2956 # Strip out --no-create and --no-recursion so they do not pile up.
2957 # Strip out --silent because we don't want to record it for future runs.
2958 # Also quote any args containing shell meta-characters.
2959 # Make two passes to allow for proper duplicate-argument suppression.
2963 ac_must_keep_next=false
2969 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2970 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2971 | -silent | --silent | --silen | --sile | --sil)
2974 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2977 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2979 as_fn_append ac_configure_args1 " '$ac_arg'"
2980 if test $ac_must_keep_next = true; then
2981 ac_must_keep_next=false # Got value, back to normal.
2984 *=* | --config-cache | -C | -disable-* | --disable-* \
2985 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2986 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2987 | -with-* | --with-* | -without-* | --without-* | --x)
2988 case "$ac_configure_args0 " in
2989 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2992 -* ) ac_must_keep_next=true ;;
2995 as_fn_append ac_configure_args " '$ac_arg'"
3000 { ac_configure_args0=; unset ac_configure_args0;}
3001 { ac_configure_args1=; unset ac_configure_args1;}
3003 # When interrupted or exit'd, cleanup temporary files, and complete
3004 # config.log. We remove comments because anyway the quotes in there
3005 # would cause problems or look ugly.
3006 # WARNING: Use '\'' to represent an apostrophe within the trap.
3007 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
3008 trap 'exit_status=$?
3009 # Save into config.log some information that might help in debugging.
3013 $as_echo "## ---------------- ##
3014 ## Cache variables. ##
3015 ## ---------------- ##"
3017 # The following way of writing the cache mishandles newlines in values,
3019 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
3020 eval ac_val=\$$ac_var
3024 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
3025 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
3028 _ | IFS | as_nl) ;; #(
3029 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
3030 *) { eval $ac_var=; unset $ac_var;} ;;
3035 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
3036 *${as_nl}ac_space=\ *)
3038 "s/'\''/'\''\\\\'\'''\''/g;
3039 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
3042 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
3049 $as_echo "## ----------------- ##
3050 ## Output variables. ##
3051 ## ----------------- ##"
3053 for ac_var in $ac_subst_vars
3055 eval ac_val=\$$ac_var
3057 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3059 $as_echo "$ac_var='\''$ac_val'\''"
3063 if test -n "$ac_subst_files"; then
3064 $as_echo "## ------------------- ##
3065 ## File substitutions. ##
3066 ## ------------------- ##"
3068 for ac_var in $ac_subst_files
3070 eval ac_val=\$$ac_var
3072 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3074 $as_echo "$ac_var='\''$ac_val'\''"
3079 if test -s confdefs.h; then
3080 $as_echo "## ----------- ##
3087 test "$ac_signal" != 0 &&
3088 $as_echo "$as_me: caught signal $ac_signal"
3089 $as_echo "$as_me: exit $exit_status"
3091 rm -f core *.core core.conftest.* &&
3092 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
3095 for ac_signal in 1 2 13 15; do
3096 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
3100 # confdefs.h avoids OS command line length limits that DEFS can exceed.
3101 rm -f -r conftest* confdefs.h
3103 $as_echo "/* confdefs.h */" > confdefs.h
3105 # Predefined preprocessor variables.
3107 cat >>confdefs.h <<_ACEOF
3108 #define PACKAGE_NAME "$PACKAGE_NAME"
3111 cat >>confdefs.h <<_ACEOF
3112 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
3115 cat >>confdefs.h <<_ACEOF
3116 #define PACKAGE_VERSION "$PACKAGE_VERSION"
3119 cat >>confdefs.h <<_ACEOF
3120 #define PACKAGE_STRING "$PACKAGE_STRING"
3123 cat >>confdefs.h <<_ACEOF
3124 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
3127 cat >>confdefs.h <<_ACEOF
3128 #define PACKAGE_URL "$PACKAGE_URL"
3132 # Let the site file select an alternate cache file if it wants to.
3133 # Prefer an explicitly selected file to automatically selected ones.
3136 if test -n "$CONFIG_SITE"; then
3137 # We do not want a PATH search for config.site.
3138 case $CONFIG_SITE in #((
3139 -*) ac_site_file1=./$CONFIG_SITE;;
3140 */*) ac_site_file1=$CONFIG_SITE;;
3141 *) ac_site_file1=./$CONFIG_SITE;;
3143 elif test "x$prefix" != xNONE; then
3144 ac_site_file1=$prefix/share/config.site
3145 ac_site_file2=$prefix/etc/config.site
3147 ac_site_file1=$ac_default_prefix/share/config.site
3148 ac_site_file2=$ac_default_prefix/etc/config.site
3150 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
3152 test "x$ac_site_file" = xNONE && continue
3153 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
3154 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
3155 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
3156 sed 's/^/| /' "$ac_site_file" >&5
3158 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3159 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3160 as_fn_error $? "failed to load site script $ac_site_file
3161 See \`config.log' for more details" "$LINENO" 5; }
3165 if test -r "$cache_file"; then
3166 # Some versions of bash will fail to source /dev/null (special files
3167 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
3168 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
3169 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
3170 $as_echo "$as_me: loading cache $cache_file" >&6;}
3172 [\\/]* | ?:[\\/]* ) . "$cache_file";;
3173 *) . "./$cache_file";;
3177 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
3178 $as_echo "$as_me: creating cache $cache_file" >&6;}
3182 gl_header_list="$gl_header_list unistd.h"
3183 gl_header_list="$gl_header_list sys/time.h"
3184 gl_header_list="$gl_header_list sys/socket.h"
3185 gl_func_list="$gl_func_list gettimeofday"
3186 gl_header_list="$gl_header_list sys/mman.h"
3187 gl_func_list="$gl_func_list mprotect"
3188 gl_func_list="$gl_func_list _set_invalid_parameter_handler"
3189 gl_func_list="$gl_func_list setenv"
3190 gl_func_list="$gl_func_list sigaction"
3191 gl_func_list="$gl_func_list sigaltstack"
3192 gl_func_list="$gl_func_list siginterrupt"
3193 gl_func_list="$gl_func_list snprintf"
3194 gl_header_list="$gl_header_list wchar.h"
3195 gl_header_list="$gl_header_list stdint.h"
3196 gl_func_list="$gl_func_list strndup"
3197 gl_header_list="$gl_header_list sys/select.h"
3198 gl_header_list="$gl_header_list sys/stat.h"
3199 gl_header_list="$gl_header_list sys/wait.h"
3200 gl_func_list="$gl_func_list vasnprintf"
3201 gl_header_list="$gl_header_list features.h"
3202 # Check that the precious variables saved in the cache have kept the same
3204 ac_cache_corrupted=false
3205 for ac_var in $ac_precious_vars; do
3206 eval ac_old_set=\$ac_cv_env_${ac_var}_set
3207 eval ac_new_set=\$ac_env_${ac_var}_set
3208 eval ac_old_val=\$ac_cv_env_${ac_var}_value
3209 eval ac_new_val=\$ac_env_${ac_var}_value
3210 case $ac_old_set,$ac_new_set in
3212 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3213 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3214 ac_cache_corrupted=: ;;
3216 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3217 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3218 ac_cache_corrupted=: ;;
3221 if test "x$ac_old_val" != "x$ac_new_val"; then
3222 # differences in whitespace do not lead to failure.
3223 ac_old_val_w=`echo x $ac_old_val`
3224 ac_new_val_w=`echo x $ac_new_val`
3225 if test "$ac_old_val_w" != "$ac_new_val_w"; then
3226 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3227 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3228 ac_cache_corrupted=:
3230 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3231 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3232 eval $ac_var=\$ac_old_val
3234 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
3235 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
3236 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
3237 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
3240 # Pass precious variables to config.status.
3241 if test "$ac_new_set" = set; then
3243 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3244 *) ac_arg=$ac_var=$ac_new_val ;;
3246 case " $ac_configure_args " in
3247 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
3248 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3252 if $ac_cache_corrupted; then
3253 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3254 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3255 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3256 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3257 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3259 ## -------------------- ##
3260 ## Main body of script. ##
3261 ## -------------------- ##
3264 ac_cpp='$CPP $CPPFLAGS'
3265 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3266 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3267 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3271 for ac_dir in build-aux "$srcdir"/build-aux; do
3272 if test -f "$ac_dir/install-sh"; then
3274 ac_install_sh="$ac_aux_dir/install-sh -c"
3276 elif test -f "$ac_dir/install.sh"; then
3278 ac_install_sh="$ac_aux_dir/install.sh -c"
3280 elif test -f "$ac_dir/shtool"; then
3282 ac_install_sh="$ac_aux_dir/shtool install -c"
3286 if test -z "$ac_aux_dir"; then
3287 as_fn_error $? "cannot find install-sh, install.sh, or shtool in build-aux \"$srcdir\"/build-aux" "$LINENO" 5
3290 # These three variables are undocumented and unsupported,
3291 # and are intended to be withdrawn in a future Autoconf release.
3292 # They can cause serious problems if a builder's source tree is in a directory
3293 # whose full name contains unusual characters.
3294 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3295 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3296 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3299 am__api_version='1.14'
3301 # Find a good install program. We prefer a C program (faster),
3302 # so one script is as good as another. But avoid the broken or
3303 # incompatible versions:
3304 # SysV /etc/install, /usr/sbin/install
3305 # SunOS /usr/etc/install
3306 # IRIX /sbin/install
3308 # AmigaOS /C/install, which installs bootblocks on floppy discs
3309 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3310 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3311 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3312 # OS/2's system install, which has a completely different semantic
3313 # ./install, which can be erroneously created by make from ./install.sh.
3314 # Reject install programs that cannot install multiple files.
3315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3316 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3317 if test -z "$INSTALL"; then
3318 if ${ac_cv_path_install+:} false; then :
3319 $as_echo_n "(cached) " >&6
3321 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3325 test -z "$as_dir" && as_dir=.
3326 # Account for people who put trailing slashes in PATH elements.
3327 case $as_dir/ in #((
3328 ./ | .// | /[cC]/* | \
3329 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3330 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3333 # OSF1 and SCO ODT 3.0 have their own names for install.
3334 # Don't use installbsd from OSF since it installs stuff as root
3336 for ac_prog in ginstall scoinst install; do
3337 for ac_exec_ext in '' $ac_executable_extensions; do
3338 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3339 if test $ac_prog = install &&
3340 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3341 # AIX install. It has an incompatible calling convention.
3343 elif test $ac_prog = install &&
3344 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3345 # program-specific install script used by HP pwplus--don't use.
3348 rm -rf conftest.one conftest.two conftest.dir
3349 echo one > conftest.one
3350 echo two > conftest.two
3352 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3353 test -s conftest.one && test -s conftest.two &&
3354 test -s conftest.dir/conftest.one &&
3355 test -s conftest.dir/conftest.two
3357 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3370 rm -rf conftest.one conftest.two conftest.dir
3373 if test "${ac_cv_path_install+set}" = set; then
3374 INSTALL=$ac_cv_path_install
3376 # As a last resort, use the slow shell script. Don't cache a
3377 # value for INSTALL within a source directory, because that will
3378 # break other packages using the cache if that directory is
3379 # removed, or if the value is a relative name.
3380 INSTALL=$ac_install_sh
3383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3384 $as_echo "$INSTALL" >&6; }
3386 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3387 # It thinks the first close brace ends the variable substitution.
3388 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3390 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3392 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3395 $as_echo_n "checking whether build environment is sane... " >&6; }
3396 # Reject unsafe characters in $srcdir or the absolute working directory
3397 # name. Accept space and tab only in the latter.
3401 *[\\\"\#\$\&\'\`$am_lf]*)
3402 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
3405 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
3406 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
3409 # Do 'set' in a subshell so we don't clobber the current shell's
3410 # arguments. Must try -L first in case configure is actually a
3411 # symlink; some systems play weird games with the mod time of symlinks
3412 # (eg FreeBSD returns the mod time of the symlink's containing
3416 for am_try in 1 2; do
3417 echo "timestamp, slept: $am_has_slept" > conftest.file
3418 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3419 if test "$*" = "X"; then
3421 set X `ls -t "$srcdir/configure" conftest.file`
3423 if test "$*" != "X $srcdir/configure conftest.file" \
3424 && test "$*" != "X conftest.file $srcdir/configure"; then
3426 # If neither matched, then we have a broken ls. This can happen
3427 # if, for instance, CONFIG_SHELL is bash and it inherits a
3428 # broken ls alias from the environment. This has actually
3429 # happened. Such a system could not be considered "sane".
3430 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
3431 alias in your environment" "$LINENO" 5
3433 if test "$2" = conftest.file || test $am_try -eq 2; then
3440 test "$2" = conftest.file
3446 as_fn_error $? "newly created file is older than distributed files!
3447 Check your system clock" "$LINENO" 5
3449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3450 $as_echo "yes" >&6; }
3451 # If we didn't sleep, we still need to ensure time stamps of config.status and
3452 # generated files are strictly newer.
3454 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
3461 test "$program_prefix" != NONE &&
3462 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3463 # Use a double $ so make ignores it.
3464 test "$program_suffix" != NONE &&
3465 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3466 # Double any \ or $.
3467 # By default was `s,x,x', remove it if useless.
3468 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3469 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3471 # expand $ac_aux_dir to an absolute path
3472 am_aux_dir=`cd $ac_aux_dir && pwd`
3474 if test x"${MISSING+set}" != xset; then
3477 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3479 MISSING="\${SHELL} $am_aux_dir/missing" ;;
3482 # Use eval to expand $SHELL
3483 if eval "$MISSING --is-lightweight"; then
3484 am_missing_run="$MISSING "
3487 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
3488 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
3491 if test x"${install_sh}" != xset; then
3494 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3496 install_sh="\${SHELL} $am_aux_dir/install-sh"
3500 # Installed binaries are usually stripped using 'strip' when the user
3501 # run "make install-strip". However 'strip' might not be the right
3502 # tool to use in cross-compilation environments, therefore Automake
3503 # will honor the 'STRIP' environment variable to overrule this program.
3504 if test "$cross_compiling" != no; then
3505 if test -n "$ac_tool_prefix"; then
3506 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3507 set dummy ${ac_tool_prefix}strip; ac_word=$2
3508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3509 $as_echo_n "checking for $ac_word... " >&6; }
3510 if ${ac_cv_prog_STRIP+:} false; then :
3511 $as_echo_n "(cached) " >&6
3513 if test -n "$STRIP"; then
3514 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3516 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3520 test -z "$as_dir" && as_dir=.
3521 for ac_exec_ext in '' $ac_executable_extensions; do
3522 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3523 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3524 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3533 STRIP=$ac_cv_prog_STRIP
3534 if test -n "$STRIP"; then
3535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3536 $as_echo "$STRIP" >&6; }
3538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3539 $as_echo "no" >&6; }
3544 if test -z "$ac_cv_prog_STRIP"; then
3546 # Extract the first word of "strip", so it can be a program name with args.
3547 set dummy strip; ac_word=$2
3548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3549 $as_echo_n "checking for $ac_word... " >&6; }
3550 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
3551 $as_echo_n "(cached) " >&6
3553 if test -n "$ac_ct_STRIP"; then
3554 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3556 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3560 test -z "$as_dir" && as_dir=.
3561 for ac_exec_ext in '' $ac_executable_extensions; do
3562 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3563 ac_cv_prog_ac_ct_STRIP="strip"
3564 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3573 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3574 if test -n "$ac_ct_STRIP"; then
3575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3576 $as_echo "$ac_ct_STRIP" >&6; }
3578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3579 $as_echo "no" >&6; }
3582 if test "x$ac_ct_STRIP" = x; then
3585 case $cross_compiling:$ac_tool_warned in
3587 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3588 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3589 ac_tool_warned=yes ;;
3594 STRIP="$ac_cv_prog_STRIP"
3598 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3601 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3602 if test -z "$MKDIR_P"; then
3603 if ${ac_cv_path_mkdir+:} false; then :
3604 $as_echo_n "(cached) " >&6
3606 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3607 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3610 test -z "$as_dir" && as_dir=.
3611 for ac_prog in mkdir gmkdir; do
3612 for ac_exec_ext in '' $ac_executable_extensions; do
3613 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
3614 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3615 'mkdir (GNU coreutils) '* | \
3616 'mkdir (coreutils) '* | \
3617 'mkdir (fileutils) '4.1*)
3618 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3628 test -d ./--version && rmdir ./--version
3629 if test "${ac_cv_path_mkdir+set}" = set; then
3630 MKDIR_P="$ac_cv_path_mkdir -p"
3632 # As a last resort, use the slow shell script. Don't cache a
3633 # value for MKDIR_P within a source directory, because that will
3634 # break other packages using the cache if that directory is
3635 # removed, or if the value is a relative name.
3636 MKDIR_P="$ac_install_sh -d"
3639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3640 $as_echo "$MKDIR_P" >&6; }
3642 for ac_prog in gawk mawk nawk awk
3644 # Extract the first word of "$ac_prog", so it can be a program name with args.
3645 set dummy $ac_prog; ac_word=$2
3646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3647 $as_echo_n "checking for $ac_word... " >&6; }
3648 if ${ac_cv_prog_AWK+:} false; then :
3649 $as_echo_n "(cached) " >&6
3651 if test -n "$AWK"; then
3652 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3654 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3658 test -z "$as_dir" && as_dir=.
3659 for ac_exec_ext in '' $ac_executable_extensions; do
3660 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3661 ac_cv_prog_AWK="$ac_prog"
3662 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3672 if test -n "$AWK"; then
3673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3674 $as_echo "$AWK" >&6; }
3676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3677 $as_echo "no" >&6; }
3681 test -n "$AWK" && break
3684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3685 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3687 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3688 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3689 $as_echo_n "(cached) " >&6
3691 cat >conftest.make <<\_ACEOF
3694 @echo '@@@%%%=$(MAKE)=@@@%%%'
3696 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3697 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3699 eval ac_cv_prog_make_${ac_make}_set=yes;;
3701 eval ac_cv_prog_make_${ac_make}_set=no;;
3705 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3707 $as_echo "yes" >&6; }
3710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3711 $as_echo "no" >&6; }
3712 SET_MAKE="MAKE=${MAKE-make}"
3715 rm -rf .tst 2>/dev/null
3716 mkdir .tst 2>/dev/null
3717 if test -d .tst; then
3722 rmdir .tst 2>/dev/null
3724 # Check whether --enable-silent-rules was given.
3725 if test "${enable_silent_rules+set}" = set; then :
3726 enableval=$enable_silent_rules;
3729 case $enable_silent_rules in # (((
3730 yes) AM_DEFAULT_VERBOSITY=0;;
3731 no) AM_DEFAULT_VERBOSITY=1;;
3732 *) AM_DEFAULT_VERBOSITY=1;;
3734 am_make=${MAKE-make}
3735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3736 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3737 if ${am_cv_make_support_nested_variables+:} false; then :
3738 $as_echo_n "(cached) " >&6
3740 if $as_echo 'TRUE=$(BAR$(V))
3746 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3747 am_cv_make_support_nested_variables=yes
3749 am_cv_make_support_nested_variables=no
3752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3753 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3754 if test $am_cv_make_support_nested_variables = yes; then
3756 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3758 AM_V=$AM_DEFAULT_VERBOSITY
3759 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3763 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3764 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3765 # is not polluted with repeated "-I."
3766 am__isrc=' -I$(srcdir)'
3767 # test to see if srcdir already configured
3768 if test -f $srcdir/config.status; then
3769 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3773 # test whether we have cygpath
3774 if test -z "$CYGPATH_W"; then
3775 if (cygpath --version) >/dev/null 2>/dev/null; then
3776 CYGPATH_W='cygpath -w'
3783 # Define the identity of the package.
3784 PACKAGE='libpipeline'
3788 cat >>confdefs.h <<_ACEOF
3789 #define PACKAGE "$PACKAGE"
3793 cat >>confdefs.h <<_ACEOF
3794 #define VERSION "$VERSION"
3797 # Some tools Automake needs.
3799 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3802 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3805 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3808 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3811 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3813 # For better backward compatibility. To be removed once Automake 1.9.x
3814 # dies out for good. For more background, see:
3815 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3816 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3817 mkdir_p='$(MKDIR_P)'
3819 # We need awk for the "check" target. The system "awk" is bad on
3821 # Always define AMTAR for backward compatibility. Yes, it's still used
3822 # in the wild :-( We should find a proper way to deprecate it ...
3826 # We'll loop over all known methods to create a tar archive until one works.
3827 _am_tools='gnutar pax cpio none'
3829 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3836 # POSIX will say in a future version that running "rm -f" with no argument
3837 # is OK; and we want to be able to make that assumption in our Makefile
3838 # recipes. So use an aggressive probe to check that the usage we want is
3839 # actually supported "in the wild" to an acceptable degree.
3840 # See automake bug#10828.
3841 # To make any issue more visible, cause the running configure to be aborted
3842 # by default if the 'rm' program in use doesn't match our expectations; the
3843 # user can still override this though.
3844 if rm -f && rm -fr && rm -rf; then : OK; else
3848 Your 'rm' program seems unable to run without file operands specified
3849 on the command line, even when the '-f' option is present. This is contrary
3850 to the behaviour of most rm programs out there, and not conforming with
3851 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3853 Please tell bug-automake@gnu.org about your system, including the value
3854 of your $PATH and any error possibly output before this message. This
3855 can help us improve future automake versions.
3858 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3859 echo 'Configuration will proceed anyway, since you have set the' >&2
3860 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3864 Aborting the configuration process, to ensure you take notice of the issue.
3866 You can download and install GNU coreutils to get an 'rm' implementation
3867 that behaves properly: <http://www.gnu.org/software/coreutils/>.
3869 If you want to complete the configuration process using your problematic
3870 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3871 to "yes", and re-run configure.
3874 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
3880 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
3881 # Check whether --enable-maintainer-mode was given.
3882 if test "${enable_maintainer_mode+set}" = set; then :
3883 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3885 USE_MAINTAINER_MODE=no
3888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
3889 $as_echo "$USE_MAINTAINER_MODE" >&6; }
3890 if test $USE_MAINTAINER_MODE = yes; then
3891 MAINTAINER_MODE_TRUE=
3892 MAINTAINER_MODE_FALSE='#'
3894 MAINTAINER_MODE_TRUE='#'
3895 MAINTAINER_MODE_FALSE=
3898 MAINT=$MAINTAINER_MODE_TRUE
3901 # Check whether --enable-silent-rules was given.
3902 if test "${enable_silent_rules+set}" = set; then :
3903 enableval=$enable_silent_rules;
3906 case $enable_silent_rules in # (((
3907 yes) AM_DEFAULT_VERBOSITY=0;;
3908 no) AM_DEFAULT_VERBOSITY=1;;
3909 *) AM_DEFAULT_VERBOSITY=0;;
3911 am_make=${MAKE-make}
3912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3913 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3914 if ${am_cv_make_support_nested_variables+:} false; then :
3915 $as_echo_n "(cached) " >&6
3917 if $as_echo 'TRUE=$(BAR$(V))
3923 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3924 am_cv_make_support_nested_variables=yes
3926 am_cv_make_support_nested_variables=no
3929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3930 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3931 if test $am_cv_make_support_nested_variables = yes; then
3933 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3935 AM_V=$AM_DEFAULT_VERBOSITY
3936 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3942 DEPDIR="${am__leading_dot}deps"
3944 ac_config_commands="$ac_config_commands depfiles"
3947 am_make=${MAKE-make}
3948 cat > confinc << 'END'
3950 @echo this is the am__doit target
3953 # If we don't find an include directive, just comment out the code.
3954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3955 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3959 # First try GNU make style include.
3960 echo "include confinc" > confmf
3961 # Ignore all kinds of additional output from 'make'.
3962 case `$am_make -s -f confmf 2> /dev/null` in #(
3963 *the\ am__doit\ target*)
3969 # Now try BSD make style include.
3970 if test "$am__include" = "#"; then
3971 echo '.include "confinc"' > confmf
3972 case `$am_make -s -f confmf 2> /dev/null` in #(
3973 *the\ am__doit\ target*)
3974 am__include=.include
3982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3983 $as_echo "$_am_result" >&6; }
3984 rm -f confinc confmf
3986 # Check whether --enable-dependency-tracking was given.
3987 if test "${enable_dependency_tracking+set}" = set; then :
3988 enableval=$enable_dependency_tracking;
3991 if test "x$enable_dependency_tracking" != xno; then
3992 am_depcomp="$ac_aux_dir/depcomp"
3996 if test "x$enable_dependency_tracking" != xno; then
4006 ac_cpp='$CPP $CPPFLAGS'
4007 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4008 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4009 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4010 if test -n "$ac_tool_prefix"; then
4011 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4012 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4014 $as_echo_n "checking for $ac_word... " >&6; }
4015 if ${ac_cv_prog_CC+:} false; then :
4016 $as_echo_n "(cached) " >&6
4018 if test -n "$CC"; then
4019 ac_cv_prog_CC="$CC" # Let the user override the test.
4021 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4025 test -z "$as_dir" && as_dir=.
4026 for ac_exec_ext in '' $ac_executable_extensions; do
4027 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4028 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4029 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4039 if test -n "$CC"; then
4040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4041 $as_echo "$CC" >&6; }
4043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4044 $as_echo "no" >&6; }
4049 if test -z "$ac_cv_prog_CC"; then
4051 # Extract the first word of "gcc", so it can be a program name with args.
4052 set dummy gcc; ac_word=$2
4053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4054 $as_echo_n "checking for $ac_word... " >&6; }
4055 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4056 $as_echo_n "(cached) " >&6
4058 if test -n "$ac_ct_CC"; then
4059 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4061 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4065 test -z "$as_dir" && as_dir=.
4066 for ac_exec_ext in '' $ac_executable_extensions; do
4067 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4068 ac_cv_prog_ac_ct_CC="gcc"
4069 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4078 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4079 if test -n "$ac_ct_CC"; then
4080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4081 $as_echo "$ac_ct_CC" >&6; }
4083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4084 $as_echo "no" >&6; }
4087 if test "x$ac_ct_CC" = x; then
4090 case $cross_compiling:$ac_tool_warned in
4092 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4093 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4094 ac_tool_warned=yes ;;
4102 if test -z "$CC"; then
4103 if test -n "$ac_tool_prefix"; then
4104 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4105 set dummy ${ac_tool_prefix}cc; ac_word=$2
4106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4107 $as_echo_n "checking for $ac_word... " >&6; }
4108 if ${ac_cv_prog_CC+:} false; then :
4109 $as_echo_n "(cached) " >&6
4111 if test -n "$CC"; then
4112 ac_cv_prog_CC="$CC" # Let the user override the test.
4114 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4118 test -z "$as_dir" && as_dir=.
4119 for ac_exec_ext in '' $ac_executable_extensions; do
4120 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4121 ac_cv_prog_CC="${ac_tool_prefix}cc"
4122 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4132 if test -n "$CC"; then
4133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4134 $as_echo "$CC" >&6; }
4136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4137 $as_echo "no" >&6; }
4143 if test -z "$CC"; then
4144 # Extract the first word of "cc", so it can be a program name with args.
4145 set dummy cc; ac_word=$2
4146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4147 $as_echo_n "checking for $ac_word... " >&6; }
4148 if ${ac_cv_prog_CC+:} false; then :
4149 $as_echo_n "(cached) " >&6
4151 if test -n "$CC"; then
4152 ac_cv_prog_CC="$CC" # Let the user override the test.
4155 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4159 test -z "$as_dir" && as_dir=.
4160 for ac_exec_ext in '' $ac_executable_extensions; do
4161 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4162 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4163 ac_prog_rejected=yes
4167 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4174 if test $ac_prog_rejected = yes; then
4175 # We found a bogon in the path, so make sure we never use it.
4176 set dummy $ac_cv_prog_CC
4178 if test $# != 0; then
4179 # We chose a different compiler from the bogus one.
4180 # However, it has the same basename, so the bogon will be chosen
4181 # first if we set CC to just the basename; use the full file name.
4183 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4189 if test -n "$CC"; then
4190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4191 $as_echo "$CC" >&6; }
4193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4194 $as_echo "no" >&6; }
4199 if test -z "$CC"; then
4200 if test -n "$ac_tool_prefix"; then
4201 for ac_prog in cl.exe
4203 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4204 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4206 $as_echo_n "checking for $ac_word... " >&6; }
4207 if ${ac_cv_prog_CC+:} false; then :
4208 $as_echo_n "(cached) " >&6
4210 if test -n "$CC"; then
4211 ac_cv_prog_CC="$CC" # Let the user override the test.
4213 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4217 test -z "$as_dir" && as_dir=.
4218 for ac_exec_ext in '' $ac_executable_extensions; do
4219 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4220 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4221 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4231 if test -n "$CC"; then
4232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4233 $as_echo "$CC" >&6; }
4235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4236 $as_echo "no" >&6; }
4240 test -n "$CC" && break
4243 if test -z "$CC"; then
4245 for ac_prog in cl.exe
4247 # Extract the first word of "$ac_prog", so it can be a program name with args.
4248 set dummy $ac_prog; ac_word=$2
4249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4250 $as_echo_n "checking for $ac_word... " >&6; }
4251 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4252 $as_echo_n "(cached) " >&6
4254 if test -n "$ac_ct_CC"; then
4255 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4257 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4261 test -z "$as_dir" && as_dir=.
4262 for ac_exec_ext in '' $ac_executable_extensions; do
4263 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4264 ac_cv_prog_ac_ct_CC="$ac_prog"
4265 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4274 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4275 if test -n "$ac_ct_CC"; then
4276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4277 $as_echo "$ac_ct_CC" >&6; }
4279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4280 $as_echo "no" >&6; }
4284 test -n "$ac_ct_CC" && break
4287 if test "x$ac_ct_CC" = x; then
4290 case $cross_compiling:$ac_tool_warned in
4292 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4293 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4294 ac_tool_warned=yes ;;
4303 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4304 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4305 as_fn_error $? "no acceptable C compiler found in \$PATH
4306 See \`config.log' for more details" "$LINENO" 5; }
4308 # Provide some information about the compiler.
4309 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4312 for ac_option in --version -v -V -qversion; do
4313 { { ac_try="$ac_compiler $ac_option >&5"
4315 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4316 *) ac_try_echo=$ac_try;;
4318 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4319 $as_echo "$ac_try_echo"; } >&5
4320 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4322 if test -s conftest.err; then
4324 ... rest of stderr output deleted ...
4325 10q' conftest.err >conftest.er1
4326 cat conftest.er1 >&5
4328 rm -f conftest.er1 conftest.err
4329 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4330 test $ac_status = 0; }
4333 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4334 /* end confdefs.h. */
4344 ac_clean_files_save=$ac_clean_files
4345 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4346 # Try to create an executable without -o first, disregard a.out.
4347 # It will help us diagnose broken compilers, and finding out an intuition
4349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4350 $as_echo_n "checking whether the C compiler works... " >&6; }
4351 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4353 # The possible output files:
4354 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4357 for ac_file in $ac_files
4360 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4361 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4366 if { { ac_try="$ac_link_default"
4368 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4369 *) ac_try_echo=$ac_try;;
4371 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4372 $as_echo "$ac_try_echo"; } >&5
4373 (eval "$ac_link_default") 2>&5
4375 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4376 test $ac_status = 0; }; then :
4377 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4378 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4379 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4380 # so that the user can short-circuit this test for compilers unknown to
4382 for ac_file in $ac_files ''
4384 test -f "$ac_file" || continue
4386 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4389 # We found the default executable, but exeext='' is most
4393 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4395 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4397 # We set ac_cv_exeext here because the later test for it is not
4398 # safe: cross compilers may not add the suffix if given an `-o'
4399 # argument, so we may need to know it at that point already.
4400 # Even if this section looks crufty: it has the advantage of
4407 test "$ac_cv_exeext" = no && ac_cv_exeext=
4412 if test -z "$ac_file"; then :
4413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4414 $as_echo "no" >&6; }
4415 $as_echo "$as_me: failed program was:" >&5
4416 sed 's/^/| /' conftest.$ac_ext >&5
4418 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4419 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4420 as_fn_error 77 "C compiler cannot create executables
4421 See \`config.log' for more details" "$LINENO" 5; }
4423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4424 $as_echo "yes" >&6; }
4426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4427 $as_echo_n "checking for C compiler default output file name... " >&6; }
4428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4429 $as_echo "$ac_file" >&6; }
4430 ac_exeext=$ac_cv_exeext
4432 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4433 ac_clean_files=$ac_clean_files_save
4434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4435 $as_echo_n "checking for suffix of executables... " >&6; }
4436 if { { ac_try="$ac_link"
4438 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4439 *) ac_try_echo=$ac_try;;
4441 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4442 $as_echo "$ac_try_echo"; } >&5
4443 (eval "$ac_link") 2>&5
4445 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4446 test $ac_status = 0; }; then :
4447 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4448 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4449 # work properly (i.e., refer to `conftest.exe'), while it won't with
4451 for ac_file in conftest.exe conftest conftest.*; do
4452 test -f "$ac_file" || continue
4454 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4455 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4461 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4462 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4463 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4464 See \`config.log' for more details" "$LINENO" 5; }
4466 rm -f conftest conftest$ac_cv_exeext
4467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4468 $as_echo "$ac_cv_exeext" >&6; }
4470 rm -f conftest.$ac_ext
4471 EXEEXT=$ac_cv_exeext
4473 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4474 /* end confdefs.h. */
4479 FILE *f = fopen ("conftest.out", "w");
4480 return ferror (f) || fclose (f) != 0;
4486 ac_clean_files="$ac_clean_files conftest.out"
4487 # Check that the compiler produces executables we can run. If not, either
4488 # the compiler is broken, or we cross compile.
4489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4490 $as_echo_n "checking whether we are cross compiling... " >&6; }
4491 if test "$cross_compiling" != yes; then
4492 { { ac_try="$ac_link"
4494 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4495 *) ac_try_echo=$ac_try;;
4497 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4498 $as_echo "$ac_try_echo"; } >&5
4499 (eval "$ac_link") 2>&5
4501 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4502 test $ac_status = 0; }
4503 if { ac_try='./conftest$ac_cv_exeext'
4504 { { case "(($ac_try" in
4505 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4506 *) ac_try_echo=$ac_try;;
4508 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4509 $as_echo "$ac_try_echo"; } >&5
4510 (eval "$ac_try") 2>&5
4512 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4513 test $ac_status = 0; }; }; then
4516 if test "$cross_compiling" = maybe; then
4519 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4520 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4521 as_fn_error $? "cannot run C compiled programs.
4522 If you meant to cross compile, use \`--host'.
4523 See \`config.log' for more details" "$LINENO" 5; }
4527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4528 $as_echo "$cross_compiling" >&6; }
4530 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4531 ac_clean_files=$ac_clean_files_save
4532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4533 $as_echo_n "checking for suffix of object files... " >&6; }
4534 if ${ac_cv_objext+:} false; then :
4535 $as_echo_n "(cached) " >&6
4537 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4538 /* end confdefs.h. */
4548 rm -f conftest.o conftest.obj
4549 if { { ac_try="$ac_compile"
4551 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4552 *) ac_try_echo=$ac_try;;
4554 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4555 $as_echo "$ac_try_echo"; } >&5
4556 (eval "$ac_compile") 2>&5
4558 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4559 test $ac_status = 0; }; then :
4560 for ac_file in conftest.o conftest.obj conftest.*; do
4561 test -f "$ac_file" || continue;
4563 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4564 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4569 $as_echo "$as_me: failed program was:" >&5
4570 sed 's/^/| /' conftest.$ac_ext >&5
4572 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4573 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4574 as_fn_error $? "cannot compute suffix of object files: cannot compile
4575 See \`config.log' for more details" "$LINENO" 5; }
4577 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4580 $as_echo "$ac_cv_objext" >&6; }
4581 OBJEXT=$ac_cv_objext
4583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4584 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4585 if ${ac_cv_c_compiler_gnu+:} false; then :
4586 $as_echo_n "(cached) " >&6
4588 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4589 /* end confdefs.h. */
4602 if ac_fn_c_try_compile "$LINENO"; then :
4607 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4608 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4612 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4613 if test $ac_compiler_gnu = yes; then
4618 ac_test_CFLAGS=${CFLAGS+set}
4619 ac_save_CFLAGS=$CFLAGS
4620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4621 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4622 if ${ac_cv_prog_cc_g+:} false; then :
4623 $as_echo_n "(cached) " >&6
4625 ac_save_c_werror_flag=$ac_c_werror_flag
4626 ac_c_werror_flag=yes
4629 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4630 /* end confdefs.h. */
4640 if ac_fn_c_try_compile "$LINENO"; then :
4644 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4645 /* end confdefs.h. */
4655 if ac_fn_c_try_compile "$LINENO"; then :
4658 ac_c_werror_flag=$ac_save_c_werror_flag
4660 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4661 /* end confdefs.h. */
4671 if ac_fn_c_try_compile "$LINENO"; then :
4674 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4676 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4678 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4679 ac_c_werror_flag=$ac_save_c_werror_flag
4681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4682 $as_echo "$ac_cv_prog_cc_g" >&6; }
4683 if test "$ac_test_CFLAGS" = set; then
4684 CFLAGS=$ac_save_CFLAGS
4685 elif test $ac_cv_prog_cc_g = yes; then
4686 if test "$GCC" = yes; then
4692 if test "$GCC" = yes; then
4698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4699 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4700 if ${ac_cv_prog_cc_c89+:} false; then :
4701 $as_echo_n "(cached) " >&6
4703 ac_cv_prog_cc_c89=no
4705 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4706 /* end confdefs.h. */
4710 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4711 struct buf { int x; };
4712 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4713 static char *e (p, i)
4719 static char *f (char * (*g) (char **, int), char **p, ...)
4724 s = g (p, va_arg (v,int));
4729 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4730 function prototypes and stuff, but not '\xHH' hex character constants.
4731 These don't provoke an error unfortunately, instead are silently treated
4732 as 'x'. The following induces an error, until -std is added to get
4733 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4734 array size at least. It's necessary to write '\x00'==0 to get something
4735 that's true only with -std. */
4736 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4738 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4739 inside strings and character constants. */
4741 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4743 int test (int i, double x);
4744 struct s1 {int (*f) (int a);};
4745 struct s2 {int (*f) (double a);};
4746 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4752 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4757 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4758 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4760 CC="$ac_save_CC $ac_arg"
4761 if ac_fn_c_try_compile "$LINENO"; then :
4762 ac_cv_prog_cc_c89=$ac_arg
4764 rm -f core conftest.err conftest.$ac_objext
4765 test "x$ac_cv_prog_cc_c89" != "xno" && break
4767 rm -f conftest.$ac_ext
4772 case "x$ac_cv_prog_cc_c89" in
4774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4775 $as_echo "none needed" >&6; } ;;
4777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4778 $as_echo "unsupported" >&6; } ;;
4780 CC="$CC $ac_cv_prog_cc_c89"
4781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4782 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4784 if test "x$ac_cv_prog_cc_c89" != xno; then :
4789 ac_cpp='$CPP $CPPFLAGS'
4790 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4791 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4792 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4795 ac_cpp='$CPP $CPPFLAGS'
4796 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4797 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4798 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4800 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4801 if ${am_cv_prog_cc_c_o+:} false; then :
4802 $as_echo_n "(cached) " >&6
4804 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4805 /* end confdefs.h. */
4815 # Make sure it works both with $CC and with simple cc.
4816 # Following AC_PROG_CC_C_O, we do the test twice because some
4817 # compilers refuse to overwrite an existing .o file with -o,
4818 # though they will create one.
4819 am_cv_prog_cc_c_o=yes
4821 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4822 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4825 (exit $ac_status); } \
4826 && test -f conftest2.$ac_objext; then
4829 am_cv_prog_cc_c_o=no
4833 rm -f core conftest*
4836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4837 $as_echo "$am_cv_prog_cc_c_o" >&6; }
4838 if test "$am_cv_prog_cc_c_o" != yes; then
4839 # Losing compiler, so override with the script.
4840 # FIXME: It is wrong to rewrite CC.
4841 # But if we don't then we get into trouble of one sort or another.
4842 # A longer-term fix would be to have automake use am__CC in this case,
4843 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4844 CC="$am_aux_dir/compile $CC"
4847 ac_cpp='$CPP $CPPFLAGS'
4848 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4849 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4850 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4853 depcc="$CC" am_compiler_list=
4855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4856 $as_echo_n "checking dependency style of $depcc... " >&6; }
4857 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4858 $as_echo_n "(cached) " >&6
4860 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4861 # We make a subdir and do the tests there. Otherwise we can end up
4862 # making bogus files that we don't know about and never remove. For
4863 # instance it was reported that on HP-UX the gcc test will end up
4864 # making a dummy file named 'D' -- because '-MD' means "put the output
4868 # Copy depcomp to subdir because otherwise we won't find it if we're
4869 # using a relative directory.
4870 cp "$am_depcomp" conftest.dir
4872 # We will build objects and dependencies in a subdirectory because
4873 # it helps to detect inapplicable dependency modes. For instance
4874 # both Tru64's cc and ICC support -MD to output dependencies as a
4875 # side effect of compilation, but ICC will put the dependencies in
4876 # the current directory while Tru64 will put them in the object
4880 am_cv_CC_dependencies_compiler_type=none
4881 if test "$am_compiler_list" = ""; then
4882 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4885 case " $depcc " in #(
4886 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4889 for depmode in $am_compiler_list; do
4890 # Setup a source with many dependencies, because some compilers
4891 # like to wrap large dependency lists on column 80 (with \), and
4892 # we should not choose a depcomp mode which is confused by this.
4894 # We need to recreate these files for each test, as the compiler may
4895 # overwrite some of them when testing with obscure command lines.
4896 # This happens at least with the AIX C compiler.
4898 for i in 1 2 3 4 5 6; do
4899 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4900 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4901 # Solaris 10 /bin/sh.
4902 echo '/* dummy */' > sub/conftst$i.h
4904 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4906 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4907 # mode. It turns out that the SunPro C++ compiler does not properly
4908 # handle '-M -o', and we need to detect this. Also, some Intel
4909 # versions had trouble with output in subdirs.
4910 am__obj=sub/conftest.${OBJEXT-o}
4911 am__minus_obj="-o $am__obj"
4914 # This depmode causes a compiler race in universal mode.
4915 test "$am__universal" = false || continue
4918 # After this tag, mechanisms are not by side-effect, so they'll
4919 # only be used when explicitly requested.
4920 if test "x$enable_dependency_tracking" = xyes; then
4926 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4927 # This compiler won't grok '-c -o', but also, the minuso test has
4928 # not run yet. These depmodes are late enough in the game, and
4929 # so weak that their functioning should not be impacted.
4930 am__obj=conftest.${OBJEXT-o}
4935 if depmode=$depmode \
4936 source=sub/conftest.c object=$am__obj \
4937 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4938 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4939 >/dev/null 2>conftest.err &&
4940 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4941 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4942 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4943 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4944 # icc doesn't choke on unknown options, it will just issue warnings
4945 # or remarks (even with -Werror). So we grep stderr for any message
4946 # that says an option was ignored or not supported.
4947 # When given -MP, icc 7.0 and 7.1 complain thusly:
4948 # icc: Command line warning: ignoring option '-M'; no argument required
4949 # The diagnosis changed in icc 8.0:
4950 # icc: Command line remark: option '-MP' not supported
4951 if (grep 'ignoring option' conftest.err ||
4952 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4953 am_cv_CC_dependencies_compiler_type=$depmode
4962 am_cv_CC_dependencies_compiler_type=none
4966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4967 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4968 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4971 test "x$enable_dependency_tracking" != xno \
4972 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4974 am__fastdepCC_FALSE='#'
4976 am__fastdepCC_TRUE='#'
4977 am__fastdepCC_FALSE=
4983 ac_cpp='$CPP $CPPFLAGS'
4984 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4985 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4986 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4988 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4989 # On Suns, sometimes $CPP names a directory.
4990 if test -n "$CPP" && test -d "$CPP"; then
4993 if test -z "$CPP"; then
4994 if ${ac_cv_prog_CPP+:} false; then :
4995 $as_echo_n "(cached) " >&6
4997 # Double quotes because CPP needs to be expanded
4998 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5001 for ac_c_preproc_warn_flag in '' yes
5003 # Use a header file that comes with gcc, so configuring glibc
5004 # with a fresh cross-compiler works.
5005 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5006 # <limits.h> exists even on freestanding compilers.
5007 # On the NeXT, cc -E runs the code through the compiler's parser,
5008 # not just through cpp. "Syntax error" is here to catch this case.
5009 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5010 /* end confdefs.h. */
5012 # include <limits.h>
5014 # include <assert.h>
5018 if ac_fn_c_try_cpp "$LINENO"; then :
5021 # Broken: fails on valid input.
5024 rm -f conftest.err conftest.i conftest.$ac_ext
5026 # OK, works on sane cases. Now check whether nonexistent headers
5027 # can be detected and how.
5028 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5029 /* end confdefs.h. */
5030 #include <ac_nonexistent.h>
5032 if ac_fn_c_try_cpp "$LINENO"; then :
5033 # Broken: success on invalid input.
5036 # Passes both tests.
5040 rm -f conftest.err conftest.i conftest.$ac_ext
5043 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5044 rm -f conftest.i conftest.err conftest.$ac_ext
5045 if $ac_preproc_ok; then :
5057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5058 $as_echo "$CPP" >&6; }
5060 for ac_c_preproc_warn_flag in '' yes
5062 # Use a header file that comes with gcc, so configuring glibc
5063 # with a fresh cross-compiler works.
5064 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5065 # <limits.h> exists even on freestanding compilers.
5066 # On the NeXT, cc -E runs the code through the compiler's parser,
5067 # not just through cpp. "Syntax error" is here to catch this case.
5068 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5069 /* end confdefs.h. */
5071 # include <limits.h>
5073 # include <assert.h>
5077 if ac_fn_c_try_cpp "$LINENO"; then :
5080 # Broken: fails on valid input.
5083 rm -f conftest.err conftest.i conftest.$ac_ext
5085 # OK, works on sane cases. Now check whether nonexistent headers
5086 # can be detected and how.
5087 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5088 /* end confdefs.h. */
5089 #include <ac_nonexistent.h>
5091 if ac_fn_c_try_cpp "$LINENO"; then :
5092 # Broken: success on invalid input.
5095 # Passes both tests.
5099 rm -f conftest.err conftest.i conftest.$ac_ext
5102 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5103 rm -f conftest.i conftest.err conftest.$ac_ext
5104 if $ac_preproc_ok; then :
5107 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5108 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5109 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
5110 See \`config.log' for more details" "$LINENO" 5; }
5114 ac_cpp='$CPP $CPPFLAGS'
5115 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5116 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5117 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5121 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5122 if ${ac_cv_path_GREP+:} false; then :
5123 $as_echo_n "(cached) " >&6
5125 if test -z "$GREP"; then
5126 ac_path_GREP_found=false
5127 # Loop through the user's path and test for each of PROGNAME-LIST
5128 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5129 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5132 test -z "$as_dir" && as_dir=.
5133 for ac_prog in grep ggrep; do
5134 for ac_exec_ext in '' $ac_executable_extensions; do
5135 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5136 as_fn_executable_p "$ac_path_GREP" || continue
5137 # Check for GNU ac_path_GREP and select it if it is found.
5138 # Check for GNU $ac_path_GREP
5139 case `"$ac_path_GREP" --version 2>&1` in
5141 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5144 $as_echo_n 0123456789 >"conftest.in"
5147 cat "conftest.in" "conftest.in" >"conftest.tmp"
5148 mv "conftest.tmp" "conftest.in"
5149 cp "conftest.in" "conftest.nl"
5150 $as_echo 'GREP' >> "conftest.nl"
5151 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5152 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5153 as_fn_arith $ac_count + 1 && ac_count=$as_val
5154 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5155 # Best one so far, save it but keep looking for a better one
5156 ac_cv_path_GREP="$ac_path_GREP"
5157 ac_path_GREP_max=$ac_count
5159 # 10*(2^10) chars as input seems more than enough
5160 test $ac_count -gt 10 && break
5162 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5165 $ac_path_GREP_found && break 3
5170 if test -z "$ac_cv_path_GREP"; then
5171 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5174 ac_cv_path_GREP=$GREP
5178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5179 $as_echo "$ac_cv_path_GREP" >&6; }
5180 GREP="$ac_cv_path_GREP"
5183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5184 $as_echo_n "checking for egrep... " >&6; }
5185 if ${ac_cv_path_EGREP+:} false; then :
5186 $as_echo_n "(cached) " >&6
5188 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5189 then ac_cv_path_EGREP="$GREP -E"
5191 if test -z "$EGREP"; then
5192 ac_path_EGREP_found=false
5193 # Loop through the user's path and test for each of PROGNAME-LIST
5194 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5195 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5198 test -z "$as_dir" && as_dir=.
5199 for ac_prog in egrep; do
5200 for ac_exec_ext in '' $ac_executable_extensions; do
5201 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5202 as_fn_executable_p "$ac_path_EGREP" || continue
5203 # Check for GNU ac_path_EGREP and select it if it is found.
5204 # Check for GNU $ac_path_EGREP
5205 case `"$ac_path_EGREP" --version 2>&1` in
5207 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5210 $as_echo_n 0123456789 >"conftest.in"
5213 cat "conftest.in" "conftest.in" >"conftest.tmp"
5214 mv "conftest.tmp" "conftest.in"
5215 cp "conftest.in" "conftest.nl"
5216 $as_echo 'EGREP' >> "conftest.nl"
5217 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5218 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5219 as_fn_arith $ac_count + 1 && ac_count=$as_val
5220 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5221 # Best one so far, save it but keep looking for a better one
5222 ac_cv_path_EGREP="$ac_path_EGREP"
5223 ac_path_EGREP_max=$ac_count
5225 # 10*(2^10) chars as input seems more than enough
5226 test $ac_count -gt 10 && break
5228 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5231 $ac_path_EGREP_found && break 3
5236 if test -z "$ac_cv_path_EGREP"; then
5237 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5240 ac_cv_path_EGREP=$EGREP
5245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5246 $as_echo "$ac_cv_path_EGREP" >&6; }
5247 EGREP="$ac_cv_path_EGREP"
5250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5251 $as_echo_n "checking for ANSI C header files... " >&6; }
5252 if ${ac_cv_header_stdc+:} false; then :
5253 $as_echo_n "(cached) " >&6
5255 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5256 /* end confdefs.h. */
5270 if ac_fn_c_try_compile "$LINENO"; then :
5271 ac_cv_header_stdc=yes
5273 ac_cv_header_stdc=no
5275 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5277 if test $ac_cv_header_stdc = yes; then
5278 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5279 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5280 /* end confdefs.h. */
5284 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5285 $EGREP "memchr" >/dev/null 2>&1; then :
5288 ac_cv_header_stdc=no
5294 if test $ac_cv_header_stdc = yes; then
5295 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5296 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5297 /* end confdefs.h. */
5301 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5302 $EGREP "free" >/dev/null 2>&1; then :
5305 ac_cv_header_stdc=no
5311 if test $ac_cv_header_stdc = yes; then
5312 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5313 if test "$cross_compiling" = yes; then :
5316 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5317 /* end confdefs.h. */
5320 #if ((' ' & 0x0FF) == 0x020)
5321 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5322 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5324 # define ISLOWER(c) \
5325 (('a' <= (c) && (c) <= 'i') \
5326 || ('j' <= (c) && (c) <= 'r') \
5327 || ('s' <= (c) && (c) <= 'z'))
5328 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5331 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5336 for (i = 0; i < 256; i++)
5337 if (XOR (islower (i), ISLOWER (i))
5338 || toupper (i) != TOUPPER (i))
5343 if ac_fn_c_try_run "$LINENO"; then :
5346 ac_cv_header_stdc=no
5348 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5349 conftest.$ac_objext conftest.beam conftest.$ac_ext
5354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5355 $as_echo "$ac_cv_header_stdc" >&6; }
5356 if test $ac_cv_header_stdc = yes; then
5358 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5362 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5363 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5364 inttypes.h stdint.h unistd.h
5366 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5367 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5369 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5370 cat >>confdefs.h <<_ACEOF
5371 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5380 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
5381 if test "x$ac_cv_header_minix_config_h" = xyes; then :
5388 if test "$MINIX" = yes; then
5390 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5393 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5396 $as_echo "#define _MINIX 1" >>confdefs.h
5399 $as_echo "#define _NETBSD_SOURCE 1" >>confdefs.h
5404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5405 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5406 if ${ac_cv_safe_to_define___extensions__+:} false; then :
5407 $as_echo_n "(cached) " >&6
5409 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5410 /* end confdefs.h. */
5412 # define __EXTENSIONS__ 1
5413 $ac_includes_default
5422 if ac_fn_c_try_compile "$LINENO"; then :
5423 ac_cv_safe_to_define___extensions__=yes
5425 ac_cv_safe_to_define___extensions__=no
5427 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5430 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5431 test $ac_cv_safe_to_define___extensions__ = yes &&
5432 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5434 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5436 $as_echo "#define _DARWIN_C_SOURCE 1" >>confdefs.h
5438 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5440 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5442 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether _XOPEN_SOURCE should be defined" >&5
5445 $as_echo_n "checking whether _XOPEN_SOURCE should be defined... " >&6; }
5446 if ${ac_cv_should_define__xopen_source+:} false; then :
5447 $as_echo_n "(cached) " >&6
5449 ac_cv_should_define__xopen_source=no
5450 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5451 /* end confdefs.h. */
5463 if ac_fn_c_try_compile "$LINENO"; then :
5466 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5467 /* end confdefs.h. */
5469 #define _XOPEN_SOURCE 500
5480 if ac_fn_c_try_compile "$LINENO"; then :
5481 ac_cv_should_define__xopen_source=yes
5483 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5485 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_should_define__xopen_source" >&5
5488 $as_echo "$ac_cv_should_define__xopen_source" >&6; }
5489 test $ac_cv_should_define__xopen_source = yes &&
5490 $as_echo "#define _XOPEN_SOURCE 500" >>confdefs.h
5494 if test -n "$ac_tool_prefix"; then
5495 for ac_prog in ar lib "link -lib"
5497 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5498 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5500 $as_echo_n "checking for $ac_word... " >&6; }
5501 if ${ac_cv_prog_AR+:} false; then :
5502 $as_echo_n "(cached) " >&6
5504 if test -n "$AR"; then
5505 ac_cv_prog_AR="$AR" # Let the user override the test.
5507 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5511 test -z "$as_dir" && as_dir=.
5512 for ac_exec_ext in '' $ac_executable_extensions; do
5513 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5514 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5515 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5525 if test -n "$AR"; then
5526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5527 $as_echo "$AR" >&6; }
5529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5530 $as_echo "no" >&6; }
5534 test -n "$AR" && break
5537 if test -z "$AR"; then
5539 for ac_prog in ar lib "link -lib"
5541 # Extract the first word of "$ac_prog", so it can be a program name with args.
5542 set dummy $ac_prog; ac_word=$2
5543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5544 $as_echo_n "checking for $ac_word... " >&6; }
5545 if ${ac_cv_prog_ac_ct_AR+:} false; then :
5546 $as_echo_n "(cached) " >&6
5548 if test -n "$ac_ct_AR"; then
5549 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5551 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5555 test -z "$as_dir" && as_dir=.
5556 for ac_exec_ext in '' $ac_executable_extensions; do
5557 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5558 ac_cv_prog_ac_ct_AR="$ac_prog"
5559 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5568 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5569 if test -n "$ac_ct_AR"; then
5570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5571 $as_echo "$ac_ct_AR" >&6; }
5573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5574 $as_echo "no" >&6; }
5578 test -n "$ac_ct_AR" && break
5581 if test "x$ac_ct_AR" = x; then
5584 case $cross_compiling:$ac_tool_warned in
5586 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5587 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5588 ac_tool_warned=yes ;;
5596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the archiver ($AR) interface" >&5
5597 $as_echo_n "checking the archiver ($AR) interface... " >&6; }
5598 if ${am_cv_ar_interface+:} false; then :
5599 $as_echo_n "(cached) " >&6
5602 ac_cpp='$CPP $CPPFLAGS'
5603 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5604 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5605 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5607 am_cv_ar_interface=ar
5608 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5609 /* end confdefs.h. */
5610 int some_variable = 0;
5612 if ac_fn_c_try_compile "$LINENO"; then :
5613 am_ar_try='$AR cru libconftest.a conftest.$ac_objext >&5'
5614 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
5615 (eval $am_ar_try) 2>&5
5617 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5618 test $ac_status = 0; }
5619 if test "$ac_status" -eq 0; then
5620 am_cv_ar_interface=ar
5622 am_ar_try='$AR -NOLOGO -OUT:conftest.lib conftest.$ac_objext >&5'
5623 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
5624 (eval $am_ar_try) 2>&5
5626 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5627 test $ac_status = 0; }
5628 if test "$ac_status" -eq 0; then
5629 am_cv_ar_interface=lib
5631 am_cv_ar_interface=unknown
5634 rm -f conftest.lib libconftest.a
5637 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5639 ac_cpp='$CPP $CPPFLAGS'
5640 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5641 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5642 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_ar_interface" >&5
5646 $as_echo "$am_cv_ar_interface" >&6; }
5648 case $am_cv_ar_interface in
5652 # Microsoft lib, so override with the ar-lib wrapper script.
5653 # FIXME: It is wrong to rewrite AR.
5654 # But if we don't then we get into trouble of one sort or another.
5655 # A longer-term fix would be to have automake use am__AR in this case,
5656 # and then we could set am__AR="$am_aux_dir/ar-lib \$(AR)" or something
5658 AR="$am_aux_dir/ar-lib $AR"
5661 as_fn_error $? "could not determine $AR interface" "$LINENO" 5
5667 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5668 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5673 macro_version='2.4.2'
5674 macro_revision='1.3337'
5688 ltmain="$ac_aux_dir/ltmain.sh"
5690 # Make sure we can run config.sub.
5691 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
5692 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
5694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
5695 $as_echo_n "checking build system type... " >&6; }
5696 if ${ac_cv_build+:} false; then :
5697 $as_echo_n "(cached) " >&6
5699 ac_build_alias=$build_alias
5700 test "x$ac_build_alias" = x &&
5701 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
5702 test "x$ac_build_alias" = x &&
5703 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
5704 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
5705 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
5708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
5709 $as_echo "$ac_cv_build" >&6; }
5710 case $ac_cv_build in
5712 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
5715 ac_save_IFS=$IFS; IFS='-'
5721 # Remember, the first character of IFS is used to create $*,
5722 # except with old shells:
5725 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
5728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
5729 $as_echo_n "checking host system type... " >&6; }
5730 if ${ac_cv_host+:} false; then :
5731 $as_echo_n "(cached) " >&6
5733 if test "x$host_alias" = x; then
5734 ac_cv_host=$ac_cv_build
5736 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
5737 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
5741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
5742 $as_echo "$ac_cv_host" >&6; }
5745 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
5748 ac_save_IFS=$IFS; IFS='-'
5754 # Remember, the first character of IFS is used to create $*,
5755 # except with old shells:
5758 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
5761 # Backslashify metacharacters that are still active within
5762 # double-quoted strings.
5763 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5765 # Same as above, but do not quote variable references.
5766 double_quote_subst='s/\(["`\\]\)/\\\1/g'
5768 # Sed substitution to delay expansion of an escaped shell variable in a
5769 # double_quote_subst'ed string.
5770 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5772 # Sed substitution to delay expansion of an escaped single quote.
5773 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5775 # Sed substitution to avoid accidental globbing in evaled expressions
5776 no_glob_subst='s/\*/\\\*/g'
5778 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5779 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5780 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5783 $as_echo_n "checking how to print strings... " >&6; }
5784 # Test print first, because it will be a builtin if present.
5785 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
5786 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5788 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5791 # Use this function as a fallback that always works.
5792 func_fallback_echo ()
5794 eval 'cat <<_LTECHO_EOF
5798 ECHO='func_fallback_echo'
5801 # func_echo_all arg...
5802 # Invoke $ECHO with all args, space-separated.
5809 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5810 $as_echo "printf" >&6; } ;;
5811 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5812 $as_echo "print -r" >&6; } ;;
5813 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5814 $as_echo "cat" >&6; } ;;
5830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5831 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
5832 if ${ac_cv_path_SED+:} false; then :
5833 $as_echo_n "(cached) " >&6
5835 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5836 for ac_i in 1 2 3 4 5 6 7; do
5837 ac_script="$ac_script$as_nl$ac_script"
5839 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5840 { ac_script=; unset ac_script;}
5841 if test -z "$SED"; then
5842 ac_path_SED_found=false
5843 # Loop through the user's path and test for each of PROGNAME-LIST
5844 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5848 test -z "$as_dir" && as_dir=.
5849 for ac_prog in sed gsed; do
5850 for ac_exec_ext in '' $ac_executable_extensions; do
5851 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5852 as_fn_executable_p "$ac_path_SED" || continue
5853 # Check for GNU ac_path_SED and select it if it is found.
5854 # Check for GNU $ac_path_SED
5855 case `"$ac_path_SED" --version 2>&1` in
5857 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5860 $as_echo_n 0123456789 >"conftest.in"
5863 cat "conftest.in" "conftest.in" >"conftest.tmp"
5864 mv "conftest.tmp" "conftest.in"
5865 cp "conftest.in" "conftest.nl"
5866 $as_echo '' >> "conftest.nl"
5867 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5868 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5869 as_fn_arith $ac_count + 1 && ac_count=$as_val
5870 if test $ac_count -gt ${ac_path_SED_max-0}; then
5871 # Best one so far, save it but keep looking for a better one
5872 ac_cv_path_SED="$ac_path_SED"
5873 ac_path_SED_max=$ac_count
5875 # 10*(2^10) chars as input seems more than enough
5876 test $ac_count -gt 10 && break
5878 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5881 $ac_path_SED_found && break 3
5886 if test -z "$ac_cv_path_SED"; then
5887 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5895 $as_echo "$ac_cv_path_SED" >&6; }
5896 SED="$ac_cv_path_SED"
5899 test -z "$SED" && SED=sed
5900 Xsed="$SED -e 1s/^X//"
5912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5913 $as_echo_n "checking for fgrep... " >&6; }
5914 if ${ac_cv_path_FGREP+:} false; then :
5915 $as_echo_n "(cached) " >&6
5917 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5918 then ac_cv_path_FGREP="$GREP -F"
5920 if test -z "$FGREP"; then
5921 ac_path_FGREP_found=false
5922 # Loop through the user's path and test for each of PROGNAME-LIST
5923 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5924 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5927 test -z "$as_dir" && as_dir=.
5928 for ac_prog in fgrep; do
5929 for ac_exec_ext in '' $ac_executable_extensions; do
5930 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5931 as_fn_executable_p "$ac_path_FGREP" || continue
5932 # Check for GNU ac_path_FGREP and select it if it is found.
5933 # Check for GNU $ac_path_FGREP
5934 case `"$ac_path_FGREP" --version 2>&1` in
5936 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5939 $as_echo_n 0123456789 >"conftest.in"
5942 cat "conftest.in" "conftest.in" >"conftest.tmp"
5943 mv "conftest.tmp" "conftest.in"
5944 cp "conftest.in" "conftest.nl"
5945 $as_echo 'FGREP' >> "conftest.nl"
5946 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5947 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5948 as_fn_arith $ac_count + 1 && ac_count=$as_val
5949 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5950 # Best one so far, save it but keep looking for a better one
5951 ac_cv_path_FGREP="$ac_path_FGREP"
5952 ac_path_FGREP_max=$ac_count
5954 # 10*(2^10) chars as input seems more than enough
5955 test $ac_count -gt 10 && break
5957 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5960 $ac_path_FGREP_found && break 3
5965 if test -z "$ac_cv_path_FGREP"; then
5966 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5969 ac_cv_path_FGREP=$FGREP
5974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5975 $as_echo "$ac_cv_path_FGREP" >&6; }
5976 FGREP="$ac_cv_path_FGREP"
5979 test -z "$GREP" && GREP=grep
5999 # Check whether --with-gnu-ld was given.
6000 if test "${with_gnu_ld+set}" = set; then :
6001 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
6007 if test "$GCC" = yes; then
6008 # Check if gcc -print-prog-name=ld gives a path.
6009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
6010 $as_echo_n "checking for ld used by $CC... " >&6; }
6013 # gcc leaves a trailing carriage return which upsets mingw
6014 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6016 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6019 # Accept absolute paths.
6021 re_direlt='/[^/][^/]*/\.\./'
6022 # Canonicalize the pathname of ld
6023 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
6024 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
6025 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
6027 test -z "$LD" && LD="$ac_prog"
6030 # If it fails, then pretend we aren't using GCC.
6034 # If it is relative, then search for the first ld in PATH.
6038 elif test "$with_gnu_ld" = yes; then
6039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
6040 $as_echo_n "checking for GNU ld... " >&6; }
6042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
6043 $as_echo_n "checking for non-GNU ld... " >&6; }
6045 if ${lt_cv_path_LD+:} false; then :
6046 $as_echo_n "(cached) " >&6
6048 if test -z "$LD"; then
6049 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6050 for ac_dir in $PATH; do
6052 test -z "$ac_dir" && ac_dir=.
6053 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6054 lt_cv_path_LD="$ac_dir/$ac_prog"
6055 # Check to see if the program is GNU ld. I'd rather use --version,
6056 # but apparently some variants of GNU ld only accept -v.
6057 # Break only if it was the GNU/non-GNU ld that we prefer.
6058 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6059 *GNU* | *'with BFD'*)
6060 test "$with_gnu_ld" != no && break
6063 test "$with_gnu_ld" != yes && break
6070 lt_cv_path_LD="$LD" # Let the user override the test with a path.
6075 if test -n "$LD"; then
6076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
6077 $as_echo "$LD" >&6; }
6079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6080 $as_echo "no" >&6; }
6082 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
6083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
6084 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
6085 if ${lt_cv_prog_gnu_ld+:} false; then :
6086 $as_echo_n "(cached) " >&6
6088 # I'd rather use --version here, but apparently some GNU lds only accept -v.
6089 case `$LD -v 2>&1 </dev/null` in
6090 *GNU* | *'with BFD'*)
6091 lt_cv_prog_gnu_ld=yes
6094 lt_cv_prog_gnu_ld=no
6098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
6099 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
6100 with_gnu_ld=$lt_cv_prog_gnu_ld
6110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
6111 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
6112 if ${lt_cv_path_NM+:} false; then :
6113 $as_echo_n "(cached) " >&6
6115 if test -n "$NM"; then
6116 # Let the user override the test.
6119 lt_nm_to_check="${ac_tool_prefix}nm"
6120 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6121 lt_nm_to_check="$lt_nm_to_check nm"
6123 for lt_tmp_nm in $lt_nm_to_check; do
6124 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6125 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6127 test -z "$ac_dir" && ac_dir=.
6128 tmp_nm="$ac_dir/$lt_tmp_nm"
6129 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6130 # Check to see if the nm accepts a BSD-compat flag.
6131 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6132 # nm: unknown option "B" ignored
6133 # Tru64's nm complains that /dev/null is an invalid object file
6134 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6135 */dev/null* | *'Invalid file or object type'*)
6136 lt_cv_path_NM="$tmp_nm -B"
6140 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6142 lt_cv_path_NM="$tmp_nm -p"
6146 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6147 continue # so that we can try to find one that supports BSD flags
6156 : ${lt_cv_path_NM=no}
6159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
6160 $as_echo "$lt_cv_path_NM" >&6; }
6161 if test "$lt_cv_path_NM" != "no"; then
6164 # Didn't find any BSD compatible name lister, look for dumpbin.
6165 if test -n "$DUMPBIN"; then :
6166 # Let the user override the test.
6168 if test -n "$ac_tool_prefix"; then
6169 for ac_prog in dumpbin "link -dump"
6171 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6172 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6174 $as_echo_n "checking for $ac_word... " >&6; }
6175 if ${ac_cv_prog_DUMPBIN+:} false; then :
6176 $as_echo_n "(cached) " >&6
6178 if test -n "$DUMPBIN"; then
6179 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
6181 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6185 test -z "$as_dir" && as_dir=.
6186 for ac_exec_ext in '' $ac_executable_extensions; do
6187 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6188 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
6189 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6198 DUMPBIN=$ac_cv_prog_DUMPBIN
6199 if test -n "$DUMPBIN"; then
6200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
6201 $as_echo "$DUMPBIN" >&6; }
6203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6204 $as_echo "no" >&6; }
6208 test -n "$DUMPBIN" && break
6211 if test -z "$DUMPBIN"; then
6212 ac_ct_DUMPBIN=$DUMPBIN
6213 for ac_prog in dumpbin "link -dump"
6215 # Extract the first word of "$ac_prog", so it can be a program name with args.
6216 set dummy $ac_prog; ac_word=$2
6217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6218 $as_echo_n "checking for $ac_word... " >&6; }
6219 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
6220 $as_echo_n "(cached) " >&6
6222 if test -n "$ac_ct_DUMPBIN"; then
6223 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
6225 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6229 test -z "$as_dir" && as_dir=.
6230 for ac_exec_ext in '' $ac_executable_extensions; do
6231 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6232 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
6233 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6242 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
6243 if test -n "$ac_ct_DUMPBIN"; then
6244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
6245 $as_echo "$ac_ct_DUMPBIN" >&6; }
6247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6248 $as_echo "no" >&6; }
6252 test -n "$ac_ct_DUMPBIN" && break
6255 if test "x$ac_ct_DUMPBIN" = x; then
6258 case $cross_compiling:$ac_tool_warned in
6260 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6261 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6262 ac_tool_warned=yes ;;
6264 DUMPBIN=$ac_ct_DUMPBIN
6268 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
6270 DUMPBIN="$DUMPBIN -symbols"
6278 if test "$DUMPBIN" != ":"; then
6282 test -z "$NM" && NM=nm
6289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
6290 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
6291 if ${lt_cv_nm_interface+:} false; then :
6292 $as_echo_n "(cached) " >&6
6294 lt_cv_nm_interface="BSD nm"
6295 echo "int some_variable = 0;" > conftest.$ac_ext
6296 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
6297 (eval "$ac_compile" 2>conftest.err)
6298 cat conftest.err >&5
6299 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6300 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6301 cat conftest.err >&5
6302 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
6303 cat conftest.out >&5
6304 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6305 lt_cv_nm_interface="MS dumpbin"
6309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6310 $as_echo "$lt_cv_nm_interface" >&6; }
6312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6313 $as_echo_n "checking whether ln -s works... " >&6; }
6315 if test "$LN_S" = "ln -s"; then
6316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6317 $as_echo "yes" >&6; }
6319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6320 $as_echo "no, using $LN_S" >&6; }
6323 # find the maximum length of command line arguments
6324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6325 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
6326 if ${lt_cv_sys_max_cmd_len+:} false; then :
6327 $as_echo_n "(cached) " >&6
6334 # On DJGPP, this test can blow up pretty badly due to problems in libc
6335 # (any single argument exceeding 2000 bytes causes a buffer overrun
6336 # during glob expansion). Even if it were fixed, the result of this
6337 # check would be larger than it should be.
6338 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6342 # Under GNU Hurd, this test is not required because there is
6343 # no limit to the length of command line arguments.
6344 # Libtool will interpret -1 as no limit whatsoever
6345 lt_cv_sys_max_cmd_len=-1;
6348 cygwin* | mingw* | cegcc*)
6349 # On Win9x/ME, this test blows up -- it succeeds, but takes
6350 # about 5 minutes as the teststring grows exponentially.
6351 # Worse, since 9x/ME are not pre-emptively multitasking,
6352 # you end up with a "frozen" computer, even though with patience
6353 # the test eventually succeeds (with a max line length of 256k).
6354 # Instead, let's just punt: use the minimum linelength reported by
6355 # all of the supported platforms: 8192 (on NT/2K/XP).
6356 lt_cv_sys_max_cmd_len=8192;
6360 # On MiNT this can take a long time and run out of memory.
6361 lt_cv_sys_max_cmd_len=8192;
6365 # On AmigaOS with pdksh, this test takes hours, literally.
6366 # So we just punt and use a minimum line length of 8192.
6367 lt_cv_sys_max_cmd_len=8192;
6370 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6371 # This has been around since 386BSD, at least. Likely further.
6372 if test -x /sbin/sysctl; then
6373 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6374 elif test -x /usr/sbin/sysctl; then
6375 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6377 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6379 # And add a safety zone
6380 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6381 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6385 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6386 lt_cv_sys_max_cmd_len=196608
6390 # The test takes a long time on OS/2.
6391 lt_cv_sys_max_cmd_len=8192
6395 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6396 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6397 # nice to cause kernel panics so lets avoid the loop below.
6398 # First set a reasonable default.
6399 lt_cv_sys_max_cmd_len=16384
6401 if test -x /sbin/sysconfig; then
6402 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6403 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6408 lt_cv_sys_max_cmd_len=102400
6410 sysv5* | sco5v6* | sysv4.2uw2*)
6411 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6412 if test -n "$kargmax"; then
6413 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6415 lt_cv_sys_max_cmd_len=32768
6419 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6420 if test -n "$lt_cv_sys_max_cmd_len" && \
6421 test undefined != "$lt_cv_sys_max_cmd_len"; then
6422 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6423 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6425 # Make teststring a little bigger before we do anything with it.
6426 # a 1K string should be a reasonable start.
6427 for i in 1 2 3 4 5 6 7 8 ; do
6428 teststring=$teststring$teststring
6430 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6431 # If test is not a shell built-in, we'll probably end up computing a
6432 # maximum length that is only half of the actual maximum length, but
6434 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
6435 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
6436 test $i != 17 # 1/2 MB should be enough
6439 teststring=$teststring$teststring
6441 # Only check the string length outside the loop.
6442 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6444 # Add a significant safety factor because C++ compilers can tack on
6445 # massive amounts of additional arguments before passing them to the
6446 # linker. It appears as though 1/2 is a usable value.
6447 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6454 if test -n $lt_cv_sys_max_cmd_len ; then
6455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6456 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6459 $as_echo "none" >&6; }
6461 max_cmd_len=$lt_cv_sys_max_cmd_len
6472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
6473 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
6474 # Try some XSI features
6477 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
6479 && eval 'test $(( 1 + 1 )) -eq 2 \
6480 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
6482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
6483 $as_echo "$xsi_shell" >&6; }
6486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
6487 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
6489 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6491 && lt_shell_append=yes
6492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
6493 $as_echo "$lt_shell_append" >&6; }
6496 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6506 # test EBCDIC or ASCII
6507 case `echo X|tr X '\101'` in
6508 A) # ASCII based system
6509 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6510 lt_SP2NL='tr \040 \012'
6511 lt_NL2SP='tr \015\012 \040\040'
6513 *) # EBCDIC based system
6514 lt_SP2NL='tr \100 \n'
6515 lt_NL2SP='tr \r\n \100\100'
6527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
6528 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
6529 if ${lt_cv_to_host_file_cmd+:} false; then :
6530 $as_echo_n "(cached) " >&6
6535 *-*-mingw* ) # actually msys
6536 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
6539 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
6541 * ) # otherwise, assume *nix
6542 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
6548 *-*-mingw* ) # actually msys
6549 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
6552 lt_cv_to_host_file_cmd=func_convert_file_noop
6554 * ) # otherwise, assume *nix
6555 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
6559 * ) # unhandled hosts (and "normal" native builds)
6560 lt_cv_to_host_file_cmd=func_convert_file_noop
6566 to_host_file_cmd=$lt_cv_to_host_file_cmd
6567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
6568 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
6574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
6575 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
6576 if ${lt_cv_to_tool_file_cmd+:} false; then :
6577 $as_echo_n "(cached) " >&6
6579 #assume ordinary cross tools, or native build.
6580 lt_cv_to_tool_file_cmd=func_convert_file_noop
6584 *-*-mingw* ) # actually msys
6585 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
6593 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
6594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
6595 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
6601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6602 $as_echo_n "checking for $LD option to reload object files... " >&6; }
6603 if ${lt_cv_ld_reload_flag+:} false; then :
6604 $as_echo_n "(cached) " >&6
6606 lt_cv_ld_reload_flag='-r'
6608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6609 $as_echo "$lt_cv_ld_reload_flag" >&6; }
6610 reload_flag=$lt_cv_ld_reload_flag
6611 case $reload_flag in
6613 *) reload_flag=" $reload_flag" ;;
6615 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6617 cygwin* | mingw* | pw32* | cegcc*)
6618 if test "$GCC" != yes; then
6623 if test "$GCC" = yes; then
6624 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6626 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6639 if test -n "$ac_tool_prefix"; then
6640 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6641 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6643 $as_echo_n "checking for $ac_word... " >&6; }
6644 if ${ac_cv_prog_OBJDUMP+:} false; then :
6645 $as_echo_n "(cached) " >&6
6647 if test -n "$OBJDUMP"; then
6648 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6650 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6654 test -z "$as_dir" && as_dir=.
6655 for ac_exec_ext in '' $ac_executable_extensions; do
6656 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6657 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6658 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6667 OBJDUMP=$ac_cv_prog_OBJDUMP
6668 if test -n "$OBJDUMP"; then
6669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6670 $as_echo "$OBJDUMP" >&6; }
6672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6673 $as_echo "no" >&6; }
6678 if test -z "$ac_cv_prog_OBJDUMP"; then
6679 ac_ct_OBJDUMP=$OBJDUMP
6680 # Extract the first word of "objdump", so it can be a program name with args.
6681 set dummy objdump; ac_word=$2
6682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6683 $as_echo_n "checking for $ac_word... " >&6; }
6684 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
6685 $as_echo_n "(cached) " >&6
6687 if test -n "$ac_ct_OBJDUMP"; then
6688 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6690 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6694 test -z "$as_dir" && as_dir=.
6695 for ac_exec_ext in '' $ac_executable_extensions; do
6696 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6697 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6698 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6707 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6708 if test -n "$ac_ct_OBJDUMP"; then
6709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6710 $as_echo "$ac_ct_OBJDUMP" >&6; }
6712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6713 $as_echo "no" >&6; }
6716 if test "x$ac_ct_OBJDUMP" = x; then
6719 case $cross_compiling:$ac_tool_warned in
6721 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6722 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6723 ac_tool_warned=yes ;;
6725 OBJDUMP=$ac_ct_OBJDUMP
6728 OBJDUMP="$ac_cv_prog_OBJDUMP"
6731 test -z "$OBJDUMP" && OBJDUMP=objdump
6741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6742 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
6743 if ${lt_cv_deplibs_check_method+:} false; then :
6744 $as_echo_n "(cached) " >&6
6746 lt_cv_file_magic_cmd='$MAGIC_CMD'
6747 lt_cv_file_magic_test_file=
6748 lt_cv_deplibs_check_method='unknown'
6749 # Need to set the preceding variable on all platforms that support
6750 # interlibrary dependencies.
6751 # 'none' -- dependencies not supported.
6752 # `unknown' -- same as none, but documents that we really don't know.
6753 # 'pass_all' -- all dependencies passed with no checks.
6754 # 'test_compile' -- check by making test program.
6755 # 'file_magic [[regex]]' -- check by looking for files in library path
6756 # which responds to the $file_magic_cmd with a given extended regex.
6757 # If you have `file' or equivalent on your system and you're not sure
6758 # whether `pass_all' will *always* work, you probably want this one.
6762 lt_cv_deplibs_check_method=pass_all
6766 lt_cv_deplibs_check_method=pass_all
6770 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6771 lt_cv_file_magic_cmd='/usr/bin/file -L'
6772 lt_cv_file_magic_test_file=/shlib/libc.so
6776 # func_win32_libid is a shell function defined in ltmain.sh
6777 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6778 lt_cv_file_magic_cmd='func_win32_libid'
6782 # Base MSYS/MinGW do not provide the 'file' command needed by
6783 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6784 # unless we find 'file', for example because we are cross-compiling.
6785 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
6786 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
6787 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6788 lt_cv_file_magic_cmd='func_win32_libid'
6790 # Keep this pattern in sync with the one in func_win32_libid.
6791 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
6792 lt_cv_file_magic_cmd='$OBJDUMP -f'
6797 # use the weaker test based on 'objdump'. See mingw*.
6798 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6799 lt_cv_file_magic_cmd='$OBJDUMP -f'
6802 darwin* | rhapsody*)
6803 lt_cv_deplibs_check_method=pass_all
6806 freebsd* | dragonfly*)
6807 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6810 # Not sure whether the presence of OpenBSD here was a mistake.
6811 # Let's accept both of them until this is cleared up.
6812 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6813 lt_cv_file_magic_cmd=/usr/bin/file
6814 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6818 lt_cv_deplibs_check_method=pass_all
6823 lt_cv_deplibs_check_method=pass_all
6826 hpux10.20* | hpux11*)
6827 lt_cv_file_magic_cmd=/usr/bin/file
6830 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6831 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6834 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]'
6835 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6838 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6839 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6845 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6846 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6849 irix5* | irix6* | nonstopux*)
6851 *-32|*"-32 ") libmagic=32-bit;;
6852 *-n32|*"-n32 ") libmagic=N32;;
6853 *-64|*"-64 ") libmagic=64-bit;;
6854 *) libmagic=never-match;;
6856 lt_cv_deplibs_check_method=pass_all
6859 # This must be glibc/ELF.
6860 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
6861 lt_cv_deplibs_check_method=pass_all
6864 netbsd* | netbsdelf*-gnu)
6865 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6866 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6868 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6873 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6874 lt_cv_file_magic_cmd=/usr/bin/file
6875 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6879 lt_cv_deplibs_check_method=pass_all
6883 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6884 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6886 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6890 osf3* | osf4* | osf5*)
6891 lt_cv_deplibs_check_method=pass_all
6895 lt_cv_deplibs_check_method=pass_all
6899 lt_cv_deplibs_check_method=pass_all
6902 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6903 lt_cv_deplibs_check_method=pass_all
6907 case $host_vendor in
6909 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]'
6910 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6913 lt_cv_deplibs_check_method=pass_all
6916 lt_cv_file_magic_cmd='/bin/file'
6917 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6920 lt_cv_file_magic_cmd='/bin/file'
6921 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6922 lt_cv_file_magic_test_file=/lib/libc.so
6925 lt_cv_deplibs_check_method=pass_all
6928 lt_cv_deplibs_check_method=pass_all
6934 lt_cv_deplibs_check_method=pass_all
6939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6940 $as_echo "$lt_cv_deplibs_check_method" >&6; }
6944 if test "$build" = "$host"; then
6947 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
6950 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
6956 file_magic_cmd=$lt_cv_file_magic_cmd
6957 deplibs_check_method=$lt_cv_deplibs_check_method
6958 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6981 if test -n "$ac_tool_prefix"; then
6982 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6983 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6985 $as_echo_n "checking for $ac_word... " >&6; }
6986 if ${ac_cv_prog_DLLTOOL+:} false; then :
6987 $as_echo_n "(cached) " >&6
6989 if test -n "$DLLTOOL"; then
6990 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6992 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6996 test -z "$as_dir" && as_dir=.
6997 for ac_exec_ext in '' $ac_executable_extensions; do
6998 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6999 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
7000 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7009 DLLTOOL=$ac_cv_prog_DLLTOOL
7010 if test -n "$DLLTOOL"; then
7011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
7012 $as_echo "$DLLTOOL" >&6; }
7014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7015 $as_echo "no" >&6; }
7020 if test -z "$ac_cv_prog_DLLTOOL"; then
7021 ac_ct_DLLTOOL=$DLLTOOL
7022 # Extract the first word of "dlltool", so it can be a program name with args.
7023 set dummy dlltool; ac_word=$2
7024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7025 $as_echo_n "checking for $ac_word... " >&6; }
7026 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
7027 $as_echo_n "(cached) " >&6
7029 if test -n "$ac_ct_DLLTOOL"; then
7030 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
7032 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7036 test -z "$as_dir" && as_dir=.
7037 for ac_exec_ext in '' $ac_executable_extensions; do
7038 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7039 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
7040 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7049 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
7050 if test -n "$ac_ct_DLLTOOL"; then
7051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
7052 $as_echo "$ac_ct_DLLTOOL" >&6; }
7054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7055 $as_echo "no" >&6; }
7058 if test "x$ac_ct_DLLTOOL" = x; then
7061 case $cross_compiling:$ac_tool_warned in
7063 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7064 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7065 ac_tool_warned=yes ;;
7067 DLLTOOL=$ac_ct_DLLTOOL
7070 DLLTOOL="$ac_cv_prog_DLLTOOL"
7073 test -z "$DLLTOOL" && DLLTOOL=dlltool
7084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
7085 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
7086 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
7087 $as_echo_n "(cached) " >&6
7089 lt_cv_sharedlib_from_linklib_cmd='unknown'
7092 cygwin* | mingw* | pw32* | cegcc*)
7093 # two different shell functions defined in ltmain.sh
7094 # decide which to use based on capabilities of $DLLTOOL
7095 case `$DLLTOOL --help 2>&1` in
7096 *--identify-strict*)
7097 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
7100 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
7105 # fallback: assume linklib IS sharedlib
7106 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
7111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
7112 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
7113 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
7114 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
7122 if test -n "$ac_tool_prefix"; then
7125 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7126 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7128 $as_echo_n "checking for $ac_word... " >&6; }
7129 if ${ac_cv_prog_AR+:} false; then :
7130 $as_echo_n "(cached) " >&6
7132 if test -n "$AR"; then
7133 ac_cv_prog_AR="$AR" # Let the user override the test.
7135 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7139 test -z "$as_dir" && as_dir=.
7140 for ac_exec_ext in '' $ac_executable_extensions; do
7141 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7142 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
7143 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7153 if test -n "$AR"; then
7154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7155 $as_echo "$AR" >&6; }
7157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7158 $as_echo "no" >&6; }
7162 test -n "$AR" && break
7165 if test -z "$AR"; then
7169 # Extract the first word of "$ac_prog", so it can be a program name with args.
7170 set dummy $ac_prog; ac_word=$2
7171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7172 $as_echo_n "checking for $ac_word... " >&6; }
7173 if ${ac_cv_prog_ac_ct_AR+:} false; then :
7174 $as_echo_n "(cached) " >&6
7176 if test -n "$ac_ct_AR"; then
7177 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7179 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7183 test -z "$as_dir" && as_dir=.
7184 for ac_exec_ext in '' $ac_executable_extensions; do
7185 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7186 ac_cv_prog_ac_ct_AR="$ac_prog"
7187 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7196 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7197 if test -n "$ac_ct_AR"; then
7198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
7199 $as_echo "$ac_ct_AR" >&6; }
7201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7202 $as_echo "no" >&6; }
7206 test -n "$ac_ct_AR" && break
7209 if test "x$ac_ct_AR" = x; then
7212 case $cross_compiling:$ac_tool_warned in
7214 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7215 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7216 ac_tool_warned=yes ;;
7235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
7236 $as_echo_n "checking for archiver @FILE support... " >&6; }
7237 if ${lt_cv_ar_at_file+:} false; then :
7238 $as_echo_n "(cached) " >&6
7241 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7242 /* end confdefs.h. */
7252 if ac_fn_c_try_compile "$LINENO"; then :
7253 echo conftest.$ac_objext > conftest.lst
7254 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
7255 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
7256 (eval $lt_ar_try) 2>&5
7258 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7259 test $ac_status = 0; }
7260 if test "$ac_status" -eq 0; then
7261 # Ensure the archiver fails upon bogus file names.
7262 rm -f conftest.$ac_objext libconftest.a
7263 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
7264 (eval $lt_ar_try) 2>&5
7266 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7267 test $ac_status = 0; }
7268 if test "$ac_status" -ne 0; then
7272 rm -f conftest.* libconftest.a
7275 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
7279 $as_echo "$lt_cv_ar_at_file" >&6; }
7281 if test "x$lt_cv_ar_at_file" = xno; then
7284 archiver_list_spec=$lt_cv_ar_at_file
7293 if test -n "$ac_tool_prefix"; then
7294 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7295 set dummy ${ac_tool_prefix}strip; ac_word=$2
7296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7297 $as_echo_n "checking for $ac_word... " >&6; }
7298 if ${ac_cv_prog_STRIP+:} false; then :
7299 $as_echo_n "(cached) " >&6
7301 if test -n "$STRIP"; then
7302 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7304 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7308 test -z "$as_dir" && as_dir=.
7309 for ac_exec_ext in '' $ac_executable_extensions; do
7310 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7311 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7312 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7321 STRIP=$ac_cv_prog_STRIP
7322 if test -n "$STRIP"; then
7323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
7324 $as_echo "$STRIP" >&6; }
7326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7327 $as_echo "no" >&6; }
7332 if test -z "$ac_cv_prog_STRIP"; then
7334 # Extract the first word of "strip", so it can be a program name with args.
7335 set dummy strip; ac_word=$2
7336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7337 $as_echo_n "checking for $ac_word... " >&6; }
7338 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
7339 $as_echo_n "(cached) " >&6
7341 if test -n "$ac_ct_STRIP"; then
7342 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7344 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7348 test -z "$as_dir" && as_dir=.
7349 for ac_exec_ext in '' $ac_executable_extensions; do
7350 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7351 ac_cv_prog_ac_ct_STRIP="strip"
7352 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7361 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7362 if test -n "$ac_ct_STRIP"; then
7363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
7364 $as_echo "$ac_ct_STRIP" >&6; }
7366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7367 $as_echo "no" >&6; }
7370 if test "x$ac_ct_STRIP" = x; then
7373 case $cross_compiling:$ac_tool_warned in
7375 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7376 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7377 ac_tool_warned=yes ;;
7382 STRIP="$ac_cv_prog_STRIP"
7385 test -z "$STRIP" && STRIP=:
7392 if test -n "$ac_tool_prefix"; then
7393 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7394 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7396 $as_echo_n "checking for $ac_word... " >&6; }
7397 if ${ac_cv_prog_RANLIB+:} false; then :
7398 $as_echo_n "(cached) " >&6
7400 if test -n "$RANLIB"; then
7401 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7403 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7407 test -z "$as_dir" && as_dir=.
7408 for ac_exec_ext in '' $ac_executable_extensions; do
7409 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7410 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7411 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7420 RANLIB=$ac_cv_prog_RANLIB
7421 if test -n "$RANLIB"; then
7422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7423 $as_echo "$RANLIB" >&6; }
7425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7426 $as_echo "no" >&6; }
7431 if test -z "$ac_cv_prog_RANLIB"; then
7432 ac_ct_RANLIB=$RANLIB
7433 # Extract the first word of "ranlib", so it can be a program name with args.
7434 set dummy ranlib; ac_word=$2
7435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7436 $as_echo_n "checking for $ac_word... " >&6; }
7437 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
7438 $as_echo_n "(cached) " >&6
7440 if test -n "$ac_ct_RANLIB"; then
7441 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7443 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7447 test -z "$as_dir" && as_dir=.
7448 for ac_exec_ext in '' $ac_executable_extensions; do
7449 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7450 ac_cv_prog_ac_ct_RANLIB="ranlib"
7451 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7460 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7461 if test -n "$ac_ct_RANLIB"; then
7462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7463 $as_echo "$ac_ct_RANLIB" >&6; }
7465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7466 $as_echo "no" >&6; }
7469 if test "x$ac_ct_RANLIB" = x; then
7472 case $cross_compiling:$ac_tool_warned in
7474 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7475 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7476 ac_tool_warned=yes ;;
7478 RANLIB=$ac_ct_RANLIB
7481 RANLIB="$ac_cv_prog_RANLIB"
7484 test -z "$RANLIB" && RANLIB=:
7491 # Determine commands to create old-style static archives.
7492 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7493 old_postinstall_cmds='chmod 644 $oldlib'
7494 old_postuninstall_cmds=
7496 if test -n "$RANLIB"; then
7499 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
7502 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
7505 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
7510 lock_old_archive_extraction=yes ;;
7512 lock_old_archive_extraction=no ;;
7553 # If no C compiler was specified, use CC.
7556 # If no C compiler flags were specified, use CFLAGS.
7557 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7559 # Allow CC to be a program name with arguments.
7563 # Check for command to grab the raw symbol name followed by C symbol from nm.
7564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7565 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
7566 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
7567 $as_echo_n "(cached) " >&6
7570 # These are sane defaults that work on at least a few old systems.
7571 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
7573 # Character class describing NM global symbol codes.
7574 symcode='[BCDEGRST]'
7576 # Regexp to match symbols that can be accessed directly from C.
7577 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7579 # Define system-specific variables.
7584 cygwin* | mingw* | pw32* | cegcc*)
7585 symcode='[ABCDGISTW]'
7588 if test "$host_cpu" = ia64; then
7589 symcode='[ABCDEGRST]'
7593 symcode='[BCDEGRST]'
7596 symcode='[BCDEGQRST]'
7607 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7615 # If we're using GNU nm, then use its standard symbol codes.
7616 case `$NM -V 2>&1` in
7617 *GNU* | *'with BFD'*)
7618 symcode='[ABCDGIRSTW]' ;;
7621 # Transform an extracted symbol line into a proper C declaration.
7622 # Some systems (esp. on ia64) link data and code symbols differently,
7623 # so use this general approach.
7624 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7626 # Transform an extracted symbol line into symbol name and symbol address
7627 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
7628 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'"
7630 # Handle CRLF in mingw tool chain
7634 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7638 # Try without a prefix underscore, then with it.
7639 for ac_symprfx in "" "_"; do
7641 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7642 symxfrm="\\1 $ac_symprfx\\2 \\2"
7644 # Write the raw and C identifiers.
7645 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7646 # Fake it for dumpbin and say T for any non-static function
7647 # and D for any global variable.
7648 # Also find C++ and __fastcall symbols from MSVC++,
7649 # which start with @ or ?.
7650 lt_cv_sys_global_symbol_pipe="$AWK '"\
7651 " {last_section=section; section=\$ 3};"\
7652 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
7653 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7654 " \$ 0!~/External *\|/{next};"\
7655 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7656 " {if(hide[section]) next};"\
7657 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
7658 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
7659 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
7660 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
7661 " ' prfx=^$ac_symprfx"
7663 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7665 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
7667 # Check to see that the pipe works correctly.
7671 cat > conftest.$ac_ext <<_LT_EOF
7676 void nm_test_func(void);
7677 void nm_test_func(void){}
7681 int main(){nm_test_var='a';nm_test_func();return(0);}
7684 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7685 (eval $ac_compile) 2>&5
7687 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7688 test $ac_status = 0; }; then
7689 # Now try to grab the symbols.
7691 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7692 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7694 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7695 test $ac_status = 0; } && test -s "$nlist"; then
7696 # Try sorting and uniquifying the output.
7697 if sort "$nlist" | uniq > "$nlist"T; then
7698 mv -f "$nlist"T "$nlist"
7703 # Make sure that we snagged all the symbols we need.
7704 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7705 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7706 cat <<_LT_EOF > conftest.$ac_ext
7707 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
7708 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
7709 /* DATA imports from DLLs on WIN32 con't be const, because runtime
7710 relocations are performed -- see ld's documentation on pseudo-relocs. */
7711 # define LT_DLSYM_CONST
7712 #elif defined(__osf__)
7713 /* This system does not cope well with relocations in const data. */
7714 # define LT_DLSYM_CONST
7716 # define LT_DLSYM_CONST const
7724 # Now generate the symbol file.
7725 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7727 cat <<_LT_EOF >> conftest.$ac_ext
7729 /* The mapping between symbol names and symbols. */
7730 LT_DLSYM_CONST struct {
7734 lt__PROGRAM__LTX_preloaded_symbols[] =
7736 { "@PROGRAM@", (void *) 0 },
7738 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7739 cat <<\_LT_EOF >> conftest.$ac_ext
7743 /* This works around a problem in FreeBSD linker */
7744 #ifdef FREEBSD_WORKAROUND
7745 static const void *lt_preloaded_setup() {
7746 return lt__PROGRAM__LTX_preloaded_symbols;
7754 # Now try linking the two files.
7755 mv conftest.$ac_objext conftstm.$ac_objext
7756 lt_globsym_save_LIBS=$LIBS
7757 lt_globsym_save_CFLAGS=$CFLAGS
7758 LIBS="conftstm.$ac_objext"
7759 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7760 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7761 (eval $ac_link) 2>&5
7763 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7764 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
7767 LIBS=$lt_globsym_save_LIBS
7768 CFLAGS=$lt_globsym_save_CFLAGS
7770 echo "cannot find nm_test_func in $nlist" >&5
7773 echo "cannot find nm_test_var in $nlist" >&5
7776 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7779 echo "$progname: failed program was:" >&5
7780 cat conftest.$ac_ext >&5
7782 rm -rf conftest* conftst*
7784 # Do not use the global_symbol_pipe unless it works.
7785 if test "$pipe_works" = yes; then
7788 lt_cv_sys_global_symbol_pipe=
7794 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7795 lt_cv_sys_global_symbol_to_cdecl=
7797 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7799 $as_echo "failed" >&6; }
7801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7802 $as_echo "ok" >&6; }
7805 # Response file support.
7806 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7807 nm_file_list_spec='@'
7808 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
7809 nm_file_list_spec='@'
7838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
7839 $as_echo_n "checking for sysroot... " >&6; }
7841 # Check whether --with-sysroot was given.
7842 if test "${with_sysroot+set}" = set; then :
7843 withval=$with_sysroot;
7850 case ${with_sysroot} in #(
7852 if test "$GCC" = yes; then
7853 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
7857 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
7862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
7863 $as_echo "${with_sysroot}" >&6; }
7864 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
7868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
7869 $as_echo "${lt_sysroot:-no}" >&6; }
7875 # Check whether --enable-libtool-lock was given.
7876 if test "${enable_libtool_lock+set}" = set; then :
7877 enableval=$enable_libtool_lock;
7880 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7882 # Some flags need to be propagated to the compiler or linker for good
7886 # Find out which ABI we are using.
7887 echo 'int i;' > conftest.$ac_ext
7888 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7889 (eval $ac_compile) 2>&5
7891 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7892 test $ac_status = 0; }; then
7893 case `/usr/bin/file conftest.$ac_objext` in
7905 # Find out which ABI we are using.
7906 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7907 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7908 (eval $ac_compile) 2>&5
7910 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7911 test $ac_status = 0; }; then
7912 if test "$lt_cv_prog_gnu_ld" = yes; then
7913 case `/usr/bin/file conftest.$ac_objext` in
7915 LD="${LD-ld} -melf32bsmip"
7918 LD="${LD-ld} -melf32bmipn32"
7921 LD="${LD-ld} -melf64bmip"
7925 case `/usr/bin/file conftest.$ac_objext` in
7941 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
7942 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7943 # Find out which ABI we are using.
7944 echo 'int i;' > conftest.$ac_ext
7945 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7946 (eval $ac_compile) 2>&5
7948 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7949 test $ac_status = 0; }; then
7950 case `/usr/bin/file conftest.o` in
7953 x86_64-*kfreebsd*-gnu)
7954 LD="${LD-ld} -m elf_i386_fbsd"
7957 case `/usr/bin/file conftest.o` in
7959 LD="${LD-ld} -m elf32_x86_64"
7962 LD="${LD-ld} -m elf_i386"
7967 LD="${LD-ld} -m elf32lppclinux"
7970 LD="${LD-ld} -m elf32ppclinux"
7973 LD="${LD-ld} -m elf_s390"
7976 LD="${LD-ld} -m elf32_sparc"
7982 x86_64-*kfreebsd*-gnu)
7983 LD="${LD-ld} -m elf_x86_64_fbsd"
7986 LD="${LD-ld} -m elf_x86_64"
7989 LD="${LD-ld} -m elf64lppc"
7992 LD="${LD-ld} -m elf64ppc"
7994 s390*-*linux*|s390*-*tpf*)
7995 LD="${LD-ld} -m elf64_s390"
7998 LD="${LD-ld} -m elf64_sparc"
8008 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
8009 SAVE_CFLAGS="$CFLAGS"
8010 CFLAGS="$CFLAGS -belf"
8011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
8012 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
8013 if ${lt_cv_cc_needs_belf+:} false; then :
8014 $as_echo_n "(cached) " >&6
8017 ac_cpp='$CPP $CPPFLAGS'
8018 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8019 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8020 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8022 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8023 /* end confdefs.h. */
8033 if ac_fn_c_try_link "$LINENO"; then :
8034 lt_cv_cc_needs_belf=yes
8036 lt_cv_cc_needs_belf=no
8038 rm -f core conftest.err conftest.$ac_objext \
8039 conftest$ac_exeext conftest.$ac_ext
8041 ac_cpp='$CPP $CPPFLAGS'
8042 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8043 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8044 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
8048 $as_echo "$lt_cv_cc_needs_belf" >&6; }
8049 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
8050 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
8051 CFLAGS="$SAVE_CFLAGS"
8055 # Find out which ABI we are using.
8056 echo 'int i;' > conftest.$ac_ext
8057 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8058 (eval $ac_compile) 2>&5
8060 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8061 test $ac_status = 0; }; then
8062 case `/usr/bin/file conftest.o` in
8064 case $lt_cv_prog_gnu_ld in
8068 LD="${LD-ld} -m elf_x86_64"
8071 LD="${LD-ld} -m elf64_sparc"
8074 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
8075 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
8080 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
8092 need_locks="$enable_libtool_lock"
8094 if test -n "$ac_tool_prefix"; then
8095 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
8096 set dummy ${ac_tool_prefix}mt; ac_word=$2
8097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8098 $as_echo_n "checking for $ac_word... " >&6; }
8099 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
8100 $as_echo_n "(cached) " >&6
8102 if test -n "$MANIFEST_TOOL"; then
8103 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
8105 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8109 test -z "$as_dir" && as_dir=.
8110 for ac_exec_ext in '' $ac_executable_extensions; do
8111 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8112 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
8113 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8122 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
8123 if test -n "$MANIFEST_TOOL"; then
8124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
8125 $as_echo "$MANIFEST_TOOL" >&6; }
8127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8128 $as_echo "no" >&6; }
8133 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
8134 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
8135 # Extract the first word of "mt", so it can be a program name with args.
8136 set dummy mt; ac_word=$2
8137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8138 $as_echo_n "checking for $ac_word... " >&6; }
8139 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
8140 $as_echo_n "(cached) " >&6
8142 if test -n "$ac_ct_MANIFEST_TOOL"; then
8143 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
8145 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8149 test -z "$as_dir" && as_dir=.
8150 for ac_exec_ext in '' $ac_executable_extensions; do
8151 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8152 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
8153 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8162 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
8163 if test -n "$ac_ct_MANIFEST_TOOL"; then
8164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
8165 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
8167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8168 $as_echo "no" >&6; }
8171 if test "x$ac_ct_MANIFEST_TOOL" = x; then
8174 case $cross_compiling:$ac_tool_warned in
8176 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8177 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8178 ac_tool_warned=yes ;;
8180 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
8183 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
8186 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
8187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
8188 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
8189 if ${lt_cv_path_mainfest_tool+:} false; then :
8190 $as_echo_n "(cached) " >&6
8192 lt_cv_path_mainfest_tool=no
8193 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
8194 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
8195 cat conftest.err >&5
8196 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
8197 lt_cv_path_mainfest_tool=yes
8201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
8202 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
8203 if test "x$lt_cv_path_mainfest_tool" != xyes; then
8213 rhapsody* | darwin*)
8214 if test -n "$ac_tool_prefix"; then
8215 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
8216 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
8217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8218 $as_echo_n "checking for $ac_word... " >&6; }
8219 if ${ac_cv_prog_DSYMUTIL+:} false; then :
8220 $as_echo_n "(cached) " >&6
8222 if test -n "$DSYMUTIL"; then
8223 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
8225 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8229 test -z "$as_dir" && as_dir=.
8230 for ac_exec_ext in '' $ac_executable_extensions; do
8231 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8232 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
8233 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8242 DSYMUTIL=$ac_cv_prog_DSYMUTIL
8243 if test -n "$DSYMUTIL"; then
8244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
8245 $as_echo "$DSYMUTIL" >&6; }
8247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8248 $as_echo "no" >&6; }
8253 if test -z "$ac_cv_prog_DSYMUTIL"; then
8254 ac_ct_DSYMUTIL=$DSYMUTIL
8255 # Extract the first word of "dsymutil", so it can be a program name with args.
8256 set dummy dsymutil; ac_word=$2
8257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8258 $as_echo_n "checking for $ac_word... " >&6; }
8259 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
8260 $as_echo_n "(cached) " >&6
8262 if test -n "$ac_ct_DSYMUTIL"; then
8263 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
8265 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8269 test -z "$as_dir" && as_dir=.
8270 for ac_exec_ext in '' $ac_executable_extensions; do
8271 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8272 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
8273 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8282 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
8283 if test -n "$ac_ct_DSYMUTIL"; then
8284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
8285 $as_echo "$ac_ct_DSYMUTIL" >&6; }
8287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8288 $as_echo "no" >&6; }
8291 if test "x$ac_ct_DSYMUTIL" = x; then
8294 case $cross_compiling:$ac_tool_warned in
8296 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8297 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8298 ac_tool_warned=yes ;;
8300 DSYMUTIL=$ac_ct_DSYMUTIL
8303 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
8306 if test -n "$ac_tool_prefix"; then
8307 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
8308 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
8309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8310 $as_echo_n "checking for $ac_word... " >&6; }
8311 if ${ac_cv_prog_NMEDIT+:} false; then :
8312 $as_echo_n "(cached) " >&6
8314 if test -n "$NMEDIT"; then
8315 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
8317 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8321 test -z "$as_dir" && as_dir=.
8322 for ac_exec_ext in '' $ac_executable_extensions; do
8323 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8324 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
8325 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8334 NMEDIT=$ac_cv_prog_NMEDIT
8335 if test -n "$NMEDIT"; then
8336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
8337 $as_echo "$NMEDIT" >&6; }
8339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8340 $as_echo "no" >&6; }
8345 if test -z "$ac_cv_prog_NMEDIT"; then
8346 ac_ct_NMEDIT=$NMEDIT
8347 # Extract the first word of "nmedit", so it can be a program name with args.
8348 set dummy nmedit; ac_word=$2
8349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8350 $as_echo_n "checking for $ac_word... " >&6; }
8351 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
8352 $as_echo_n "(cached) " >&6
8354 if test -n "$ac_ct_NMEDIT"; then
8355 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
8357 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8361 test -z "$as_dir" && as_dir=.
8362 for ac_exec_ext in '' $ac_executable_extensions; do
8363 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8364 ac_cv_prog_ac_ct_NMEDIT="nmedit"
8365 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8374 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
8375 if test -n "$ac_ct_NMEDIT"; then
8376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
8377 $as_echo "$ac_ct_NMEDIT" >&6; }
8379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8380 $as_echo "no" >&6; }
8383 if test "x$ac_ct_NMEDIT" = x; then
8386 case $cross_compiling:$ac_tool_warned in
8388 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8389 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8390 ac_tool_warned=yes ;;
8392 NMEDIT=$ac_ct_NMEDIT
8395 NMEDIT="$ac_cv_prog_NMEDIT"
8398 if test -n "$ac_tool_prefix"; then
8399 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
8400 set dummy ${ac_tool_prefix}lipo; ac_word=$2
8401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8402 $as_echo_n "checking for $ac_word... " >&6; }
8403 if ${ac_cv_prog_LIPO+:} false; then :
8404 $as_echo_n "(cached) " >&6
8406 if test -n "$LIPO"; then
8407 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8409 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8413 test -z "$as_dir" && as_dir=.
8414 for ac_exec_ext in '' $ac_executable_extensions; do
8415 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8416 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
8417 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8426 LIPO=$ac_cv_prog_LIPO
8427 if test -n "$LIPO"; then
8428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8429 $as_echo "$LIPO" >&6; }
8431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8432 $as_echo "no" >&6; }
8437 if test -z "$ac_cv_prog_LIPO"; then
8439 # Extract the first word of "lipo", so it can be a program name with args.
8440 set dummy lipo; ac_word=$2
8441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8442 $as_echo_n "checking for $ac_word... " >&6; }
8443 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
8444 $as_echo_n "(cached) " >&6
8446 if test -n "$ac_ct_LIPO"; then
8447 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
8449 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8453 test -z "$as_dir" && as_dir=.
8454 for ac_exec_ext in '' $ac_executable_extensions; do
8455 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8456 ac_cv_prog_ac_ct_LIPO="lipo"
8457 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8466 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
8467 if test -n "$ac_ct_LIPO"; then
8468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
8469 $as_echo "$ac_ct_LIPO" >&6; }
8471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8472 $as_echo "no" >&6; }
8475 if test "x$ac_ct_LIPO" = x; then
8478 case $cross_compiling:$ac_tool_warned in
8480 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8481 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8482 ac_tool_warned=yes ;;
8487 LIPO="$ac_cv_prog_LIPO"
8490 if test -n "$ac_tool_prefix"; then
8491 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
8492 set dummy ${ac_tool_prefix}otool; ac_word=$2
8493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8494 $as_echo_n "checking for $ac_word... " >&6; }
8495 if ${ac_cv_prog_OTOOL+:} false; then :
8496 $as_echo_n "(cached) " >&6
8498 if test -n "$OTOOL"; then
8499 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
8501 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8505 test -z "$as_dir" && as_dir=.
8506 for ac_exec_ext in '' $ac_executable_extensions; do
8507 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8508 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
8509 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8518 OTOOL=$ac_cv_prog_OTOOL
8519 if test -n "$OTOOL"; then
8520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8521 $as_echo "$OTOOL" >&6; }
8523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8524 $as_echo "no" >&6; }
8529 if test -z "$ac_cv_prog_OTOOL"; then
8531 # Extract the first word of "otool", so it can be a program name with args.
8532 set dummy otool; ac_word=$2
8533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8534 $as_echo_n "checking for $ac_word... " >&6; }
8535 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
8536 $as_echo_n "(cached) " >&6
8538 if test -n "$ac_ct_OTOOL"; then
8539 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8541 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8545 test -z "$as_dir" && as_dir=.
8546 for ac_exec_ext in '' $ac_executable_extensions; do
8547 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8548 ac_cv_prog_ac_ct_OTOOL="otool"
8549 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8558 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8559 if test -n "$ac_ct_OTOOL"; then
8560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8561 $as_echo "$ac_ct_OTOOL" >&6; }
8563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8564 $as_echo "no" >&6; }
8567 if test "x$ac_ct_OTOOL" = x; then
8570 case $cross_compiling:$ac_tool_warned in
8572 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8573 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8574 ac_tool_warned=yes ;;
8579 OTOOL="$ac_cv_prog_OTOOL"
8582 if test -n "$ac_tool_prefix"; then
8583 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8584 set dummy ${ac_tool_prefix}otool64; ac_word=$2
8585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8586 $as_echo_n "checking for $ac_word... " >&6; }
8587 if ${ac_cv_prog_OTOOL64+:} false; then :
8588 $as_echo_n "(cached) " >&6
8590 if test -n "$OTOOL64"; then
8591 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8593 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8597 test -z "$as_dir" && as_dir=.
8598 for ac_exec_ext in '' $ac_executable_extensions; do
8599 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8600 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8601 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8610 OTOOL64=$ac_cv_prog_OTOOL64
8611 if test -n "$OTOOL64"; then
8612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8613 $as_echo "$OTOOL64" >&6; }
8615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8616 $as_echo "no" >&6; }
8621 if test -z "$ac_cv_prog_OTOOL64"; then
8622 ac_ct_OTOOL64=$OTOOL64
8623 # Extract the first word of "otool64", so it can be a program name with args.
8624 set dummy otool64; ac_word=$2
8625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8626 $as_echo_n "checking for $ac_word... " >&6; }
8627 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
8628 $as_echo_n "(cached) " >&6
8630 if test -n "$ac_ct_OTOOL64"; then
8631 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8633 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8637 test -z "$as_dir" && as_dir=.
8638 for ac_exec_ext in '' $ac_executable_extensions; do
8639 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8640 ac_cv_prog_ac_ct_OTOOL64="otool64"
8641 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8650 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8651 if test -n "$ac_ct_OTOOL64"; then
8652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8653 $as_echo "$ac_ct_OTOOL64" >&6; }
8655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8656 $as_echo "no" >&6; }
8659 if test "x$ac_ct_OTOOL64" = x; then
8662 case $cross_compiling:$ac_tool_warned in
8664 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8665 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8666 ac_tool_warned=yes ;;
8668 OTOOL64=$ac_ct_OTOOL64
8671 OTOOL64="$ac_cv_prog_OTOOL64"
8700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8701 $as_echo_n "checking for -single_module linker flag... " >&6; }
8702 if ${lt_cv_apple_cc_single_mod+:} false; then :
8703 $as_echo_n "(cached) " >&6
8705 lt_cv_apple_cc_single_mod=no
8706 if test -z "${LT_MULTI_MODULE}"; then
8707 # By default we will add the -single_module flag. You can override
8708 # by either setting the environment variable LT_MULTI_MODULE
8709 # non-empty at configure time, or by adding -multi_module to the
8711 rm -rf libconftest.dylib*
8712 echo "int foo(void){return 1;}" > conftest.c
8713 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8714 -dynamiclib -Wl,-single_module conftest.c" >&5
8715 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8716 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8718 # If there is a non-empty error log, and "single_module"
8719 # appears in it, assume the flag caused a linker warning
8720 if test -s conftest.err && $GREP single_module conftest.err; then
8721 cat conftest.err >&5
8722 # Otherwise, if the output was created with a 0 exit code from
8723 # the compiler, it worked.
8724 elif test -f libconftest.dylib && test $_lt_result -eq 0; then
8725 lt_cv_apple_cc_single_mod=yes
8727 cat conftest.err >&5
8729 rm -rf libconftest.dylib*
8733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8734 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8737 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8738 if ${lt_cv_ld_exported_symbols_list+:} false; then :
8739 $as_echo_n "(cached) " >&6
8741 lt_cv_ld_exported_symbols_list=no
8742 save_LDFLAGS=$LDFLAGS
8743 echo "_main" > conftest.sym
8744 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8745 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8746 /* end confdefs.h. */
8756 if ac_fn_c_try_link "$LINENO"; then :
8757 lt_cv_ld_exported_symbols_list=yes
8759 lt_cv_ld_exported_symbols_list=no
8761 rm -f core conftest.err conftest.$ac_objext \
8762 conftest$ac_exeext conftest.$ac_ext
8763 LDFLAGS="$save_LDFLAGS"
8766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8767 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8770 $as_echo_n "checking for -force_load linker flag... " >&6; }
8771 if ${lt_cv_ld_force_load+:} false; then :
8772 $as_echo_n "(cached) " >&6
8774 lt_cv_ld_force_load=no
8775 cat > conftest.c << _LT_EOF
8776 int forced_loaded() { return 2;}
8778 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8779 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8780 echo "$AR cru libconftest.a conftest.o" >&5
8781 $AR cru libconftest.a conftest.o 2>&5
8782 echo "$RANLIB libconftest.a" >&5
8783 $RANLIB libconftest.a 2>&5
8784 cat > conftest.c << _LT_EOF
8785 int main() { return 0;}
8787 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8788 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8790 if test -s conftest.err && $GREP force_load conftest.err; then
8791 cat conftest.err >&5
8792 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
8793 lt_cv_ld_force_load=yes
8795 cat conftest.err >&5
8797 rm -f conftest.err libconftest.a conftest conftest.c
8798 rm -rf conftest.dSYM
8801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8802 $as_echo "$lt_cv_ld_force_load" >&6; }
8804 rhapsody* | darwin1.[012])
8805 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
8807 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8808 darwin*) # darwin 5.x on
8809 # if running on 10.5 or later, the deployment target defaults
8810 # to the OS version, if on x86, and 10.4, the deployment
8811 # target defaults to 10.4. Don't you love it?
8812 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8813 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8814 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8816 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8818 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8822 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
8823 _lt_dar_single_mod='$single_module'
8825 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
8826 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
8828 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
8830 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
8831 _lt_dsymutil='~$DSYMUTIL $lib || :'
8838 for ac_header in dlfcn.h
8840 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8842 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
8843 cat >>confdefs.h <<_ACEOF
8844 #define HAVE_DLFCN_H 1
8856 # Check whether --enable-static was given.
8857 if test "${enable_static+set}" = set; then :
8858 enableval=$enable_static; p=${PACKAGE-default}
8860 yes) enable_static=yes ;;
8861 no) enable_static=no ;;
8864 # Look at the argument we got. We use all the common list separators.
8865 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8866 for pkg in $enableval; do
8868 if test "X$pkg" = "X$p"; then
8894 # Check whether --enable-shared was given.
8895 if test "${enable_shared+set}" = set; then :
8896 enableval=$enable_shared; p=${PACKAGE-default}
8898 yes) enable_shared=yes ;;
8899 no) enable_shared=no ;;
8902 # Look at the argument we got. We use all the common list separators.
8903 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8904 for pkg in $enableval; do
8906 if test "X$pkg" = "X$p"; then
8927 # Check whether --with-pic was given.
8928 if test "${with_pic+set}" = set; then :
8929 withval=$with_pic; lt_p=${PACKAGE-default}
8931 yes|no) pic_mode=$withval ;;
8934 # Look at the argument we got. We use all the common list separators.
8935 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8936 for lt_pkg in $withval; do
8938 if test "X$lt_pkg" = "X$lt_p"; then
8950 test -z "$pic_mode" && pic_mode=default
8958 # Check whether --enable-fast-install was given.
8959 if test "${enable_fast_install+set}" = set; then :
8960 enableval=$enable_fast_install; p=${PACKAGE-default}
8962 yes) enable_fast_install=yes ;;
8963 no) enable_fast_install=no ;;
8965 enable_fast_install=no
8966 # Look at the argument we got. We use all the common list separators.
8967 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8968 for pkg in $enableval; do
8970 if test "X$pkg" = "X$p"; then
8971 enable_fast_install=yes
8978 enable_fast_install=yes
8991 # This can be used to rebuild libtool when needed
8992 LIBTOOL_DEPS="$ltmain"
8994 # Always use our own libtool.
8995 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
9026 test -z "$LN_S" && LN_S="ln -s"
9041 if test -n "${ZSH_VERSION+set}" ; then
9042 setopt NO_GLOB_SUBST
9045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
9046 $as_echo_n "checking for objdir... " >&6; }
9047 if ${lt_cv_objdir+:} false; then :
9048 $as_echo_n "(cached) " >&6
9050 rm -f .libs 2>/dev/null
9051 mkdir .libs 2>/dev/null
9052 if test -d .libs; then
9055 # MS-DOS does not allow filenames that begin with a dot.
9058 rmdir .libs 2>/dev/null
9060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
9061 $as_echo "$lt_cv_objdir" >&6; }
9062 objdir=$lt_cv_objdir
9068 cat >>confdefs.h <<_ACEOF
9069 #define LT_OBJDIR "$lt_cv_objdir/"
9077 # AIX sometimes has problems with the GCC collect2 program. For some
9078 # reason, if we set the COLLECT_NAMES environment variable, the problems
9079 # vanish in a puff of smoke.
9080 if test "X${COLLECT_NAMES+set}" != Xset; then
9082 export COLLECT_NAMES
9089 can_build_shared=yes
9091 # All known linkers require a `.a' archive for static linking (except MSVC,
9092 # which needs '.lib').
9095 with_gnu_ld="$lt_cv_prog_gnu_ld"
9098 old_CFLAGS="$CFLAGS"
9100 # Set sane defaults for various variables
9101 test -z "$CC" && CC=cc
9102 test -z "$LTCC" && LTCC=$CC
9103 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
9104 test -z "$LD" && LD=ld
9105 test -z "$ac_objext" && ac_objext=o
9107 for cc_temp in $compiler""; do
9109 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9110 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9115 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
9118 # Only perform the check for file, if the check method requires it
9119 test -z "$MAGIC_CMD" && MAGIC_CMD=file
9120 case $deplibs_check_method in
9122 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
9123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
9124 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
9125 if ${lt_cv_path_MAGIC_CMD+:} false; then :
9126 $as_echo_n "(cached) " >&6
9130 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9133 lt_save_MAGIC_CMD="$MAGIC_CMD"
9134 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9135 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9136 for ac_dir in $ac_dummy; do
9138 test -z "$ac_dir" && ac_dir=.
9139 if test -f $ac_dir/${ac_tool_prefix}file; then
9140 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
9141 if test -n "$file_magic_test_file"; then
9142 case $deplibs_check_method in
9144 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9145 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9146 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9147 $EGREP "$file_magic_regex" > /dev/null; then
9152 *** Warning: the command libtool uses to detect shared libraries,
9153 *** $file_magic_cmd, produces output that libtool cannot recognize.
9154 *** The result is that libtool may fail to recognize shared libraries
9155 *** as such. This will affect the creation of libtool libraries that
9156 *** depend on shared libraries, but programs linked with such libtool
9157 *** libraries will work regardless of this problem. Nevertheless, you
9158 *** may want to report the problem to your system manager and/or to
9159 *** bug-libtool@gnu.org
9169 MAGIC_CMD="$lt_save_MAGIC_CMD"
9174 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9175 if test -n "$MAGIC_CMD"; then
9176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9177 $as_echo "$MAGIC_CMD" >&6; }
9179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9180 $as_echo "no" >&6; }
9187 if test -z "$lt_cv_path_MAGIC_CMD"; then
9188 if test -n "$ac_tool_prefix"; then
9189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
9190 $as_echo_n "checking for file... " >&6; }
9191 if ${lt_cv_path_MAGIC_CMD+:} false; then :
9192 $as_echo_n "(cached) " >&6
9196 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9199 lt_save_MAGIC_CMD="$MAGIC_CMD"
9200 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9201 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9202 for ac_dir in $ac_dummy; do
9204 test -z "$ac_dir" && ac_dir=.
9205 if test -f $ac_dir/file; then
9206 lt_cv_path_MAGIC_CMD="$ac_dir/file"
9207 if test -n "$file_magic_test_file"; then
9208 case $deplibs_check_method in
9210 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9211 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9212 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9213 $EGREP "$file_magic_regex" > /dev/null; then
9218 *** Warning: the command libtool uses to detect shared libraries,
9219 *** $file_magic_cmd, produces output that libtool cannot recognize.
9220 *** The result is that libtool may fail to recognize shared libraries
9221 *** as such. This will affect the creation of libtool libraries that
9222 *** depend on shared libraries, but programs linked with such libtool
9223 *** libraries will work regardless of this problem. Nevertheless, you
9224 *** may want to report the problem to your system manager and/or to
9225 *** bug-libtool@gnu.org
9235 MAGIC_CMD="$lt_save_MAGIC_CMD"
9240 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9241 if test -n "$MAGIC_CMD"; then
9242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9243 $as_echo "$MAGIC_CMD" >&6; }
9245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9246 $as_echo "no" >&6; }
9259 # Use C for the default configuration in the libtool script
9263 ac_cpp='$CPP $CPPFLAGS'
9264 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9265 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9266 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9269 # Source file extension for C test sources.
9272 # Object file extension for compiled C test sources.
9276 # Code to be used in simple compile tests
9277 lt_simple_compile_test_code="int some_variable = 0;"
9279 # Code to be used in simple link tests
9280 lt_simple_link_test_code='int main(){return(0);}'
9288 # If no C compiler was specified, use CC.
9291 # If no C compiler flags were specified, use CFLAGS.
9292 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9294 # Allow CC to be a program name with arguments.
9297 # Save the default compiler, since it gets overwritten when the other
9298 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9299 compiler_DEFAULT=$CC
9301 # save warnings/boilerplate of simple test code
9302 ac_outfile=conftest.$ac_objext
9303 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9304 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9305 _lt_compiler_boilerplate=`cat conftest.err`
9308 ac_outfile=conftest.$ac_objext
9309 echo "$lt_simple_link_test_code" >conftest.$ac_ext
9310 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9311 _lt_linker_boilerplate=`cat conftest.err`
9316 ## There is no encapsulation within the following macros, do not change
9317 ## the running order or otherwise move them around unless you know exactly
9318 ## what you are doing...
9319 if test -n "$compiler"; then
9321 lt_prog_compiler_no_builtin_flag=
9323 if test "$GCC" = yes; then
9324 case $cc_basename in
9326 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
9328 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
9331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9332 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9333 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
9334 $as_echo_n "(cached) " >&6
9336 lt_cv_prog_compiler_rtti_exceptions=no
9337 ac_outfile=conftest.$ac_objext
9338 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9339 lt_compiler_flag="-fno-rtti -fno-exceptions"
9340 # Insert the option either (1) after the last *FLAGS variable, or
9341 # (2) before a word containing "conftest.", or (3) at the end.
9342 # Note that $ac_compile itself does not contain backslashes and begins
9343 # with a dollar sign (not a hyphen), so the echo should work correctly.
9344 # The option is referenced via a variable to avoid confusing sed.
9345 lt_compile=`echo "$ac_compile" | $SED \
9346 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9347 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9348 -e 's:$: $lt_compiler_flag:'`
9349 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9350 (eval "$lt_compile" 2>conftest.err)
9352 cat conftest.err >&5
9353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9354 if (exit $ac_status) && test -s "$ac_outfile"; then
9355 # The compiler can only warn and ignore the option if not recognized
9356 # So say no if there are warnings other than the usual output.
9357 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9358 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9359 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9360 lt_cv_prog_compiler_rtti_exceptions=yes
9366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9367 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9369 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
9370 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9382 lt_prog_compiler_wl=
9383 lt_prog_compiler_pic=
9384 lt_prog_compiler_static=
9387 if test "$GCC" = yes; then
9388 lt_prog_compiler_wl='-Wl,'
9389 lt_prog_compiler_static='-static'
9393 # All AIX code is PIC.
9394 if test "$host_cpu" = ia64; then
9395 # AIX 5 now supports IA64 processor
9396 lt_prog_compiler_static='-Bstatic'
9403 # see comment about AmigaOS4 .so support
9404 lt_prog_compiler_pic='-fPIC'
9407 # FIXME: we need at least 68020 code to build shared libraries, but
9408 # adding the `-m68020' flag to GCC prevents building anything better,
9410 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9415 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9416 # PIC is the default for these OSes.
9419 mingw* | cygwin* | pw32* | os2* | cegcc*)
9420 # This hack is so that the source file can tell whether it is being
9421 # built for inclusion in a dll (and should export symbols for example).
9422 # Although the cygwin gcc ignores -fPIC, still need this for old-style
9423 # (--disable-auto-import) libraries
9424 lt_prog_compiler_pic='-DDLL_EXPORT'
9427 darwin* | rhapsody*)
9428 # PIC is the default on this platform
9429 # Common symbols not allowed in MH_DYLIB files
9430 lt_prog_compiler_pic='-fno-common'
9434 # PIC is the default for Haiku.
9435 # The "-static" flag exists, but is broken.
9436 lt_prog_compiler_static=
9440 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9441 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
9442 # sets the default TLS model and affects inlining.
9448 lt_prog_compiler_pic='-fPIC'
9454 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9455 # Instead, we relocate shared libraries at runtime.
9459 # Just because we use GCC doesn't mean we suddenly get shared libraries
9460 # on systems that don't support them.
9461 lt_prog_compiler_can_build_shared=no
9466 # QNX uses GNU C++, but need to define -shared option too, otherwise
9468 lt_prog_compiler_pic='-fPIC -shared'
9472 if test -d /usr/nec; then
9473 lt_prog_compiler_pic=-Kconform_pic
9478 lt_prog_compiler_pic='-fPIC'
9482 case $cc_basename in
9483 nvcc*) # Cuda Compiler Driver 2.2
9484 lt_prog_compiler_wl='-Xlinker '
9485 if test -n "$lt_prog_compiler_pic"; then
9486 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
9491 # PORTME Check for flag to pass linker flags through the system compiler.
9494 lt_prog_compiler_wl='-Wl,'
9495 if test "$host_cpu" = ia64; then
9496 # AIX 5 now supports IA64 processor
9497 lt_prog_compiler_static='-Bstatic'
9499 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9503 mingw* | cygwin* | pw32* | os2* | cegcc*)
9504 # This hack is so that the source file can tell whether it is being
9505 # built for inclusion in a dll (and should export symbols for example).
9506 lt_prog_compiler_pic='-DDLL_EXPORT'
9509 hpux9* | hpux10* | hpux11*)
9510 lt_prog_compiler_wl='-Wl,'
9511 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9518 lt_prog_compiler_pic='+Z'
9521 # Is there a better lt_prog_compiler_static that works with the bundled CC?
9522 lt_prog_compiler_static='${wl}-a ${wl}archive'
9525 irix5* | irix6* | nonstopux*)
9526 lt_prog_compiler_wl='-Wl,'
9527 # PIC (with -KPIC) is the default.
9528 lt_prog_compiler_static='-non_shared'
9531 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
9532 case $cc_basename in
9533 # old Intel for x86_64 which still supported -KPIC.
9535 lt_prog_compiler_wl='-Wl,'
9536 lt_prog_compiler_pic='-KPIC'
9537 lt_prog_compiler_static='-static'
9539 # icc used to be incompatible with GCC.
9540 # ICC 10 doesn't accept -KPIC any more.
9542 lt_prog_compiler_wl='-Wl,'
9543 lt_prog_compiler_pic='-fPIC'
9544 lt_prog_compiler_static='-static'
9546 # Lahey Fortran 8.1.
9548 lt_prog_compiler_wl='-Wl,'
9549 lt_prog_compiler_pic='--shared'
9550 lt_prog_compiler_static='--static'
9553 # NAG Fortran compiler
9554 lt_prog_compiler_wl='-Wl,-Wl,,'
9555 lt_prog_compiler_pic='-PIC'
9556 lt_prog_compiler_static='-Bstatic'
9558 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9559 # Portland Group compilers (*not* the Pentium gcc compiler,
9560 # which looks to be a dead project)
9561 lt_prog_compiler_wl='-Wl,'
9562 lt_prog_compiler_pic='-fpic'
9563 lt_prog_compiler_static='-Bstatic'
9566 lt_prog_compiler_wl='-Wl,'
9567 # All Alpha code is PIC.
9568 lt_prog_compiler_static='-non_shared'
9570 xl* | bgxl* | bgf* | mpixl*)
9571 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9572 lt_prog_compiler_wl='-Wl,'
9573 lt_prog_compiler_pic='-qpic'
9574 lt_prog_compiler_static='-qstaticlink'
9577 case `$CC -V 2>&1 | sed 5q` in
9578 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
9579 # Sun Fortran 8.3 passes all unrecognized flags to the linker
9580 lt_prog_compiler_pic='-KPIC'
9581 lt_prog_compiler_static='-Bstatic'
9582 lt_prog_compiler_wl=''
9584 *Sun\ F* | *Sun*Fortran*)
9585 lt_prog_compiler_pic='-KPIC'
9586 lt_prog_compiler_static='-Bstatic'
9587 lt_prog_compiler_wl='-Qoption ld '
9591 lt_prog_compiler_pic='-KPIC'
9592 lt_prog_compiler_static='-Bstatic'
9593 lt_prog_compiler_wl='-Wl,'
9595 *Intel*\ [CF]*Compiler*)
9596 lt_prog_compiler_wl='-Wl,'
9597 lt_prog_compiler_pic='-fPIC'
9598 lt_prog_compiler_static='-static'
9601 lt_prog_compiler_wl='-Wl,'
9602 lt_prog_compiler_pic='-fpic'
9603 lt_prog_compiler_static='-Bstatic'
9611 lt_prog_compiler_pic='-KPIC'
9612 lt_prog_compiler_static='-Bstatic'
9616 # QNX uses GNU C++, but need to define -shared option too, otherwise
9618 lt_prog_compiler_pic='-fPIC -shared'
9621 osf3* | osf4* | osf5*)
9622 lt_prog_compiler_wl='-Wl,'
9623 # All OSF/1 code is PIC.
9624 lt_prog_compiler_static='-non_shared'
9628 lt_prog_compiler_static='-non_shared'
9632 lt_prog_compiler_pic='-KPIC'
9633 lt_prog_compiler_static='-Bstatic'
9634 case $cc_basename in
9635 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
9636 lt_prog_compiler_wl='-Qoption ld ';;
9638 lt_prog_compiler_wl='-Wl,';;
9643 lt_prog_compiler_wl='-Qoption ld '
9644 lt_prog_compiler_pic='-PIC'
9645 lt_prog_compiler_static='-Bstatic'
9648 sysv4 | sysv4.2uw2* | sysv4.3*)
9649 lt_prog_compiler_wl='-Wl,'
9650 lt_prog_compiler_pic='-KPIC'
9651 lt_prog_compiler_static='-Bstatic'
9655 if test -d /usr/nec ;then
9656 lt_prog_compiler_pic='-Kconform_pic'
9657 lt_prog_compiler_static='-Bstatic'
9661 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9662 lt_prog_compiler_wl='-Wl,'
9663 lt_prog_compiler_pic='-KPIC'
9664 lt_prog_compiler_static='-Bstatic'
9668 lt_prog_compiler_wl='-Wl,'
9669 lt_prog_compiler_can_build_shared=no
9673 lt_prog_compiler_pic='-pic'
9674 lt_prog_compiler_static='-Bstatic'
9678 lt_prog_compiler_can_build_shared=no
9684 # For platforms which do not support PIC, -DPIC is meaningless:
9686 lt_prog_compiler_pic=
9689 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9694 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9695 if ${lt_cv_prog_compiler_pic+:} false; then :
9696 $as_echo_n "(cached) " >&6
9698 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
9700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
9701 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
9702 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
9705 # Check to make sure the PIC flag actually works.
9707 if test -n "$lt_prog_compiler_pic"; then
9708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9709 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9710 if ${lt_cv_prog_compiler_pic_works+:} false; then :
9711 $as_echo_n "(cached) " >&6
9713 lt_cv_prog_compiler_pic_works=no
9714 ac_outfile=conftest.$ac_objext
9715 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9716 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9717 # Insert the option either (1) after the last *FLAGS variable, or
9718 # (2) before a word containing "conftest.", or (3) at the end.
9719 # Note that $ac_compile itself does not contain backslashes and begins
9720 # with a dollar sign (not a hyphen), so the echo should work correctly.
9721 # The option is referenced via a variable to avoid confusing sed.
9722 lt_compile=`echo "$ac_compile" | $SED \
9723 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9724 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9725 -e 's:$: $lt_compiler_flag:'`
9726 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9727 (eval "$lt_compile" 2>conftest.err)
9729 cat conftest.err >&5
9730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9731 if (exit $ac_status) && test -s "$ac_outfile"; then
9732 # The compiler can only warn and ignore the option if not recognized
9733 # So say no if there are warnings other than the usual output.
9734 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9735 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9736 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9737 lt_cv_prog_compiler_pic_works=yes
9743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9744 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9746 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9747 case $lt_prog_compiler_pic in
9749 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9752 lt_prog_compiler_pic=
9753 lt_prog_compiler_can_build_shared=no
9769 # Check to make sure the static flag actually works.
9771 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9773 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9774 if ${lt_cv_prog_compiler_static_works+:} false; then :
9775 $as_echo_n "(cached) " >&6
9777 lt_cv_prog_compiler_static_works=no
9778 save_LDFLAGS="$LDFLAGS"
9779 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9780 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9781 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9782 # The linker can only warn and ignore the option if not recognized
9783 # So say no if there are warnings
9784 if test -s conftest.err; then
9785 # Append any errors to the config.log.
9786 cat conftest.err 1>&5
9787 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9788 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9789 if diff conftest.exp conftest.er2 >/dev/null; then
9790 lt_cv_prog_compiler_static_works=yes
9793 lt_cv_prog_compiler_static_works=yes
9797 LDFLAGS="$save_LDFLAGS"
9800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9801 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9803 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9806 lt_prog_compiler_static=
9815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9816 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9817 if ${lt_cv_prog_compiler_c_o+:} false; then :
9818 $as_echo_n "(cached) " >&6
9820 lt_cv_prog_compiler_c_o=no
9821 $RM -r conftest 2>/dev/null
9825 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9827 lt_compiler_flag="-o out/conftest2.$ac_objext"
9828 # Insert the option either (1) after the last *FLAGS variable, or
9829 # (2) before a word containing "conftest.", or (3) at the end.
9830 # Note that $ac_compile itself does not contain backslashes and begins
9831 # with a dollar sign (not a hyphen), so the echo should work correctly.
9832 lt_compile=`echo "$ac_compile" | $SED \
9833 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9834 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9835 -e 's:$: $lt_compiler_flag:'`
9836 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9837 (eval "$lt_compile" 2>out/conftest.err)
9839 cat out/conftest.err >&5
9840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9841 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9843 # The compiler can only warn and ignore the option if not recognized
9844 # So say no if there are warnings
9845 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9846 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9847 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9848 lt_cv_prog_compiler_c_o=yes
9853 # SGI C++ compiler will create directory out/ii_files/ for
9854 # template instantiation
9855 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9856 $RM out/* && rmdir out
9862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9863 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9871 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9872 if ${lt_cv_prog_compiler_c_o+:} false; then :
9873 $as_echo_n "(cached) " >&6
9875 lt_cv_prog_compiler_c_o=no
9876 $RM -r conftest 2>/dev/null
9880 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9882 lt_compiler_flag="-o out/conftest2.$ac_objext"
9883 # Insert the option either (1) after the last *FLAGS variable, or
9884 # (2) before a word containing "conftest.", or (3) at the end.
9885 # Note that $ac_compile itself does not contain backslashes and begins
9886 # with a dollar sign (not a hyphen), so the echo should work correctly.
9887 lt_compile=`echo "$ac_compile" | $SED \
9888 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9889 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9890 -e 's:$: $lt_compiler_flag:'`
9891 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9892 (eval "$lt_compile" 2>out/conftest.err)
9894 cat out/conftest.err >&5
9895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9896 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9898 # The compiler can only warn and ignore the option if not recognized
9899 # So say no if there are warnings
9900 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9901 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9902 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9903 lt_cv_prog_compiler_c_o=yes
9908 # SGI C++ compiler will create directory out/ii_files/ for
9909 # template instantiation
9910 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9911 $RM out/* && rmdir out
9917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9918 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9923 hard_links="nottested"
9924 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9925 # do not overwrite the value of need_locks provided by the user
9926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9927 $as_echo_n "checking if we can lock with hard links... " >&6; }
9930 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9932 ln conftest.a conftest.b 2>&5 || hard_links=no
9933 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9935 $as_echo "$hard_links" >&6; }
9936 if test "$hard_links" = no; then
9937 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9938 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9951 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9954 allow_undefined_flag=
9955 always_export_symbols=no
9957 archive_expsym_cmds=
9958 compiler_needs_object=no
9959 enable_shared_with_static_runtimes=no
9960 export_dynamic_flag_spec=
9961 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9962 hardcode_automatic=no
9964 hardcode_direct_absolute=no
9965 hardcode_libdir_flag_spec=
9966 hardcode_libdir_separator=
9968 hardcode_shlibpath_var=unsupported
9970 link_all_deplibs=unknown
9973 old_archive_from_new_cmds=
9974 old_archive_from_expsyms_cmds=
9975 thread_safe_flag_spec=
9976 whole_archive_flag_spec=
9977 # include_expsyms should be a list of space-separated symbols to be *always*
9978 # included in the symbol list
9980 # exclude_expsyms can be an extended regexp of symbols to exclude
9981 # it will be wrapped by ` (' and `)$', so one must not match beginning or
9982 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9983 # as well as any symbol that contains `d'.
9984 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9985 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9986 # platforms (ab)use it in PIC code, but their linkers get confused if
9987 # the symbol is explicitly referenced. Since portable code cannot
9988 # rely on this symbol name, it's probably fine to never include it in
9989 # preloaded symbol tables.
9990 # Exclude shared library initialization/finalization symbols.
9991 extract_expsyms_cmds=
9994 cygwin* | mingw* | pw32* | cegcc*)
9995 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9996 # When not using gcc, we currently assume that we are using
9997 # Microsoft Visual C++.
9998 if test "$GCC" != yes; then
10003 # we just hope/assume this is gcc and not c89 (= MSVC++)
10009 linux* | k*bsd*-gnu | gnu*)
10010 link_all_deplibs=no
10016 # On some targets, GNU ld is compatible enough with the native linker
10017 # that we're better off using the native interface for both.
10018 lt_use_gnu_ld_interface=no
10019 if test "$with_gnu_ld" = yes; then
10022 # The AIX port of GNU ld has always aspired to compatibility
10023 # with the native linker. However, as the warning in the GNU ld
10024 # block says, versions before 2.19.5* couldn't really create working
10025 # shared libraries, regardless of the interface used.
10026 case `$LD -v 2>&1` in
10027 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
10028 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
10029 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
10031 lt_use_gnu_ld_interface=yes
10036 lt_use_gnu_ld_interface=yes
10041 if test "$lt_use_gnu_ld_interface" = yes; then
10042 # If archive_cmds runs LD, not CC, wlarc should be empty
10045 # Set some defaults for GNU ld with shared library support. These
10046 # are reset later if shared libraries are not supported. Putting them
10047 # here allows them to be overridden if necessary.
10048 runpath_var=LD_RUN_PATH
10049 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10050 export_dynamic_flag_spec='${wl}--export-dynamic'
10051 # ancient GNU ld didn't support --whole-archive et. al.
10052 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
10053 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10055 whole_archive_flag_spec=
10057 supports_anon_versioning=no
10058 case `$LD -v 2>&1` in
10059 *GNU\ gold*) supports_anon_versioning=yes ;;
10060 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
10061 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
10062 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
10063 *\ 2.11.*) ;; # other 2.11 versions
10064 *) supports_anon_versioning=yes ;;
10067 # See if GNU ld supports shared libraries.
10070 # On AIX/PPC, the GNU linker is very broken
10071 if test "$host_cpu" != ia64; then
10075 *** Warning: the GNU linker, at least up to release 2.19, is reported
10076 *** to be unable to reliably create shared libraries on AIX.
10077 *** Therefore, libtool is disabling shared libraries support. If you
10078 *** really care for shared libraries, you may want to install binutils
10079 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
10080 *** You will then need to restart the configuration process.
10089 # see comment about AmigaOS4 .so support
10090 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10091 archive_expsym_cmds=''
10094 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)'
10095 hardcode_libdir_flag_spec='-L$libdir'
10096 hardcode_minus_L=yes
10102 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10103 allow_undefined_flag=unsupported
10104 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10105 # support --undefined. This deserves some investigation. FIXME
10106 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10112 cygwin* | mingw* | pw32* | cegcc*)
10113 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
10114 # as there is no search path for DLLs.
10115 hardcode_libdir_flag_spec='-L$libdir'
10116 export_dynamic_flag_spec='${wl}--export-all-symbols'
10117 allow_undefined_flag=unsupported
10118 always_export_symbols=no
10119 enable_shared_with_static_runtimes=yes
10120 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'
10121 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
10123 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
10124 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10125 # If the export-symbols file already is a .def file (1st line
10126 # is EXPORTS), use it as is; otherwise, prepend...
10127 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10128 cp $export_symbols $output_objdir/$soname.def;
10130 echo EXPORTS > $output_objdir/$soname.def;
10131 cat $export_symbols >> $output_objdir/$soname.def;
10133 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10140 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10141 link_all_deplibs=yes
10146 hardcode_shlibpath_var=no
10147 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10148 export_dynamic_flag_spec='${wl}-E'
10149 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10150 # Instead, shared libraries are loaded at an image base (0x10000000 by
10151 # default) and relocated if they conflict, which is a slow very memory
10152 # consuming and fragmenting process. To avoid this, we pick a random,
10153 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10154 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
10155 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10156 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'
10159 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
10161 if test "$host_os" = linux-dietlibc; then
10162 case $cc_basename in
10163 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
10166 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
10167 && test "$tmp_diet" = no
10169 tmp_addflag=' $pic_flag'
10170 tmp_sharedflag='-shared'
10171 case $cc_basename,$host_cpu in
10172 pgcc*) # Portland Group C compiler
10173 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'
10174 tmp_addflag=' $pic_flag'
10176 pgf77* | pgf90* | pgf95* | pgfortran*)
10177 # Portland Group f77 and f90 compilers
10178 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'
10179 tmp_addflag=' $pic_flag -Mnomain' ;;
10180 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
10181 tmp_addflag=' -i_dynamic' ;;
10182 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
10183 tmp_addflag=' -i_dynamic -nofor_main' ;;
10184 ifc* | ifort*) # Intel Fortran compiler
10185 tmp_addflag=' -nofor_main' ;;
10186 lf95*) # Lahey Fortran 8.1
10187 whole_archive_flag_spec=
10188 tmp_sharedflag='--shared' ;;
10189 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
10190 tmp_sharedflag='-qmkshrobj'
10192 nvcc*) # Cuda Compiler Driver 2.2
10193 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'
10194 compiler_needs_object=yes
10197 case `$CC -V 2>&1 | sed 5q` in
10198 *Sun\ C*) # Sun C 5.9
10199 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'
10200 compiler_needs_object=yes
10201 tmp_sharedflag='-G' ;;
10202 *Sun\ F*) # Sun Fortran 8.3
10203 tmp_sharedflag='-G' ;;
10205 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10207 if test "x$supports_anon_versioning" = xyes; then
10208 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10209 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10210 echo "local: *; };" >> $output_objdir/$libname.ver~
10211 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
10214 case $cc_basename in
10215 xlf* | bgf* | bgxlf* | mpixlf*)
10216 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10217 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
10218 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10219 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
10220 if test "x$supports_anon_versioning" = xyes; then
10221 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10222 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10223 echo "local: *; };" >> $output_objdir/$libname.ver~
10224 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10233 netbsd* | netbsdelf*-gnu)
10234 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10235 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10238 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10239 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10244 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10248 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
10249 *** create shared libraries on Solaris systems. Therefore, libtool
10250 *** is disabling shared libraries support. We urge you to upgrade GNU
10251 *** binutils to release 2.9.1 or newer. Another option is to modify
10252 *** your PATH or compiler configuration so that the native linker is
10253 *** used, and then restart.
10256 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10257 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10258 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10264 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10265 case `$LD -v 2>&1` in
10266 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10270 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
10271 *** reliably create shared libraries on SCO systems. Therefore, libtool
10272 *** is disabling shared libraries support. We urge you to upgrade GNU
10273 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
10274 *** your PATH or compiler configuration so that the native linker is
10275 *** used, and then restart.
10280 # For security reasons, it is highly recommended that you always
10281 # use absolute paths for naming shared libraries, and exclude the
10282 # DT_RUNPATH tag from executables and libraries. But doing so
10283 # requires that you compile everything twice, which is a pain.
10284 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10285 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10286 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10287 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10296 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10298 hardcode_direct=yes
10299 hardcode_shlibpath_var=no
10303 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10304 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10305 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10312 if test "$ld_shlibs" = no; then
10314 hardcode_libdir_flag_spec=
10315 export_dynamic_flag_spec=
10316 whole_archive_flag_spec=
10319 # PORTME fill in a description of your system's linker (not GNU ld)
10322 allow_undefined_flag=unsupported
10323 always_export_symbols=yes
10324 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'
10325 # Note: this linker hardcodes the directories in LIBPATH if there
10326 # are no directories specified by -L.
10327 hardcode_minus_L=yes
10328 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
10329 # Neither direct hardcoding nor static linking is supported with a
10331 hardcode_direct=unsupported
10336 if test "$host_cpu" = ia64; then
10337 # On IA64, the linker does run time linking by default, so we don't
10338 # have to do anything special.
10339 aix_use_runtimelinking=no
10340 exp_sym_flag='-Bexport'
10343 # If we're using GNU nm, then we don't want the "-C" option.
10344 # -C means demangle to AIX nm, but means don't demangle with GNU nm
10345 # Also, AIX nm treats weak defined symbols like other global
10346 # defined symbols, whereas GNU nm marks them as "W".
10347 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10348 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'
10350 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'
10352 aix_use_runtimelinking=no
10354 # Test if we are trying to use run time linking or normal
10355 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10356 # need to do runtime linking.
10357 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10358 for ld_flag in $LDFLAGS; do
10359 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
10360 aix_use_runtimelinking=yes
10367 exp_sym_flag='-bexport'
10368 no_entry_flag='-bnoentry'
10371 # When large executables or shared objects are built, AIX ld can
10372 # have problems creating the table of contents. If linking a library
10373 # or program results in "error TOC overflow" add -mminimal-toc to
10374 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10375 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10378 hardcode_direct=yes
10379 hardcode_direct_absolute=yes
10380 hardcode_libdir_separator=':'
10381 link_all_deplibs=yes
10382 file_list_spec='${wl}-f,'
10384 if test "$GCC" = yes; then
10385 case $host_os in aix4.[012]|aix4.[012].*)
10386 # We only want to do this on AIX 4.2 and lower, the check
10387 # below for broken collect2 doesn't work under 4.3+
10388 collect2name=`${CC} -print-prog-name=collect2`
10389 if test -f "$collect2name" &&
10390 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10392 # We have reworked collect2
10395 # We have old collect2
10396 hardcode_direct=unsupported
10397 # It fails to find uninstalled libraries when the uninstalled
10398 # path is not listed in the libpath. Setting hardcode_minus_L
10399 # to unsupported forces relinking
10400 hardcode_minus_L=yes
10401 hardcode_libdir_flag_spec='-L$libdir'
10402 hardcode_libdir_separator=
10406 shared_flag='-shared'
10407 if test "$aix_use_runtimelinking" = yes; then
10408 shared_flag="$shared_flag "'${wl}-G'
10410 link_all_deplibs=no
10413 if test "$host_cpu" = ia64; then
10414 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10415 # chokes on -Wl,-G. The following line is correct:
10418 if test "$aix_use_runtimelinking" = yes; then
10419 shared_flag='${wl}-G'
10421 shared_flag='${wl}-bM:SRE'
10426 export_dynamic_flag_spec='${wl}-bexpall'
10427 # It seems that -bexpall does not export symbols beginning with
10428 # underscore (_), so it is better to generate a list of symbols to export.
10429 always_export_symbols=yes
10430 if test "$aix_use_runtimelinking" = yes; then
10431 # Warning - without using the other runtime loading flags (-brtl),
10432 # -berok will link without error, but may produce a broken library.
10433 allow_undefined_flag='-berok'
10434 # Determine the default libpath from the value encoded in an
10435 # empty executable.
10436 if test "${lt_cv_aix_libpath+set}" = set; then
10437 aix_libpath=$lt_cv_aix_libpath
10439 if ${lt_cv_aix_libpath_+:} false; then :
10440 $as_echo_n "(cached) " >&6
10442 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10443 /* end confdefs.h. */
10453 if ac_fn_c_try_link "$LINENO"; then :
10455 lt_aix_libpath_sed='
10456 /Import File Strings/,/^$/ {
10458 s/^0 *\([^ ]*\) *$/\1/
10462 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10463 # Check for a 64-bit object if we didn't find anything.
10464 if test -z "$lt_cv_aix_libpath_"; then
10465 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10468 rm -f core conftest.err conftest.$ac_objext \
10469 conftest$ac_exeext conftest.$ac_ext
10470 if test -z "$lt_cv_aix_libpath_"; then
10471 lt_cv_aix_libpath_="/usr/lib:/lib"
10476 aix_libpath=$lt_cv_aix_libpath_
10479 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10480 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"
10482 if test "$host_cpu" = ia64; then
10483 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
10484 allow_undefined_flag="-z nodefs"
10485 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"
10487 # Determine the default libpath from the value encoded in an
10488 # empty executable.
10489 if test "${lt_cv_aix_libpath+set}" = set; then
10490 aix_libpath=$lt_cv_aix_libpath
10492 if ${lt_cv_aix_libpath_+:} false; then :
10493 $as_echo_n "(cached) " >&6
10495 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10496 /* end confdefs.h. */
10506 if ac_fn_c_try_link "$LINENO"; then :
10508 lt_aix_libpath_sed='
10509 /Import File Strings/,/^$/ {
10511 s/^0 *\([^ ]*\) *$/\1/
10515 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10516 # Check for a 64-bit object if we didn't find anything.
10517 if test -z "$lt_cv_aix_libpath_"; then
10518 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10521 rm -f core conftest.err conftest.$ac_objext \
10522 conftest$ac_exeext conftest.$ac_ext
10523 if test -z "$lt_cv_aix_libpath_"; then
10524 lt_cv_aix_libpath_="/usr/lib:/lib"
10529 aix_libpath=$lt_cv_aix_libpath_
10532 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10533 # Warning - without using the other run time loading flags,
10534 # -berok will link without error, but may produce a broken library.
10535 no_undefined_flag=' ${wl}-bernotok'
10536 allow_undefined_flag=' ${wl}-berok'
10537 if test "$with_gnu_ld" = yes; then
10538 # We only use this code for GNU lds that support --whole-archive.
10539 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10541 # Exported symbols can be pulled into shared objects from archives
10542 whole_archive_flag_spec='$convenience'
10544 archive_cmds_need_lc=yes
10545 # This is similar to how AIX traditionally builds its shared libraries.
10546 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'
10554 # see comment about AmigaOS4 .so support
10555 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10556 archive_expsym_cmds=''
10559 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)'
10560 hardcode_libdir_flag_spec='-L$libdir'
10561 hardcode_minus_L=yes
10567 export_dynamic_flag_spec=-rdynamic
10570 cygwin* | mingw* | pw32* | cegcc*)
10571 # When not using gcc, we currently assume that we are using
10572 # Microsoft Visual C++.
10573 # hardcode_libdir_flag_spec is actually meaningless, as there is
10574 # no search path for DLLs.
10575 case $cc_basename in
10578 hardcode_libdir_flag_spec=' '
10579 allow_undefined_flag=unsupported
10580 always_export_symbols=yes
10582 # Tell ltmain to make .lib files, not .a files.
10584 # Tell ltmain to make .dll files, not .so files.
10586 # FIXME: Setting linknames here is a bad hack.
10587 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
10588 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10589 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
10591 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
10593 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
10595 # The linker will not automatically build a static lib if we build a DLL.
10596 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
10597 enable_shared_with_static_runtimes=yes
10598 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
10599 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10601 old_postinstall_cmds='chmod 644 $oldlib'
10602 postlink_cmds='lt_outputfile="@OUTPUT@"~
10603 lt_tool_outputfile="@TOOL_OUTPUT@"~
10604 case $lt_outputfile in
10607 lt_outputfile="$lt_outputfile.exe"
10608 lt_tool_outputfile="$lt_tool_outputfile.exe"
10611 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
10612 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
10613 $RM "$lt_outputfile.manifest";
10617 # Assume MSVC wrapper
10618 hardcode_libdir_flag_spec=' '
10619 allow_undefined_flag=unsupported
10620 # Tell ltmain to make .lib files, not .a files.
10622 # Tell ltmain to make .dll files, not .so files.
10624 # FIXME: Setting linknames here is a bad hack.
10625 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10626 # The linker will automatically build a .lib file if we build a DLL.
10627 old_archive_from_new_cmds='true'
10628 # FIXME: Should let the user specify the lib program.
10629 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10630 enable_shared_with_static_runtimes=yes
10635 darwin* | rhapsody*)
10638 archive_cmds_need_lc=no
10640 hardcode_automatic=yes
10641 hardcode_shlibpath_var=unsupported
10642 if test "$lt_cv_ld_force_load" = "yes"; then
10643 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\"`'
10646 whole_archive_flag_spec=''
10648 link_all_deplibs=yes
10649 allow_undefined_flag="$_lt_dar_allow_undefined"
10650 case $cc_basename in
10651 ifort*) _lt_dar_can_shared=yes ;;
10652 *) _lt_dar_can_shared=$GCC ;;
10654 if test "$_lt_dar_can_shared" = "yes"; then
10655 output_verbose_link_cmd=func_echo_all
10656 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
10657 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
10658 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}"
10659 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}"
10668 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10669 hardcode_libdir_flag_spec='-L$libdir'
10670 hardcode_shlibpath_var=no
10673 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10674 # support. Future versions do this automatically, but an explicit c++rt0.o
10675 # does not break anything, and helps significantly (at the cost of a little
10678 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10679 hardcode_libdir_flag_spec='-R$libdir'
10680 hardcode_direct=yes
10681 hardcode_shlibpath_var=no
10684 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10686 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10687 hardcode_direct=yes
10688 hardcode_minus_L=yes
10689 hardcode_shlibpath_var=no
10692 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10693 freebsd* | dragonfly*)
10694 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10695 hardcode_libdir_flag_spec='-R$libdir'
10696 hardcode_direct=yes
10697 hardcode_shlibpath_var=no
10701 if test "$GCC" = yes; then
10702 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'
10704 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'
10706 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10707 hardcode_libdir_separator=:
10708 hardcode_direct=yes
10710 # hardcode_minus_L: Not really in the search PATH,
10711 # but as the default location of the library.
10712 hardcode_minus_L=yes
10713 export_dynamic_flag_spec='${wl}-E'
10717 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10718 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10720 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10722 if test "$with_gnu_ld" = no; then
10723 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10724 hardcode_libdir_separator=:
10725 hardcode_direct=yes
10726 hardcode_direct_absolute=yes
10727 export_dynamic_flag_spec='${wl}-E'
10728 # hardcode_minus_L: Not really in the search PATH,
10729 # but as the default location of the library.
10730 hardcode_minus_L=yes
10735 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10738 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10741 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10744 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10750 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10753 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10757 # Older versions of the 11.00 compiler do not understand -b yet
10758 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10760 $as_echo_n "checking if $CC understands -b... " >&6; }
10761 if ${lt_cv_prog_compiler__b+:} false; then :
10762 $as_echo_n "(cached) " >&6
10764 lt_cv_prog_compiler__b=no
10765 save_LDFLAGS="$LDFLAGS"
10766 LDFLAGS="$LDFLAGS -b"
10767 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10768 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10769 # The linker can only warn and ignore the option if not recognized
10770 # So say no if there are warnings
10771 if test -s conftest.err; then
10772 # Append any errors to the config.log.
10773 cat conftest.err 1>&5
10774 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10775 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10776 if diff conftest.exp conftest.er2 >/dev/null; then
10777 lt_cv_prog_compiler__b=yes
10780 lt_cv_prog_compiler__b=yes
10784 LDFLAGS="$save_LDFLAGS"
10787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10788 $as_echo "$lt_cv_prog_compiler__b" >&6; }
10790 if test x"$lt_cv_prog_compiler__b" = xyes; then
10791 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10793 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10799 if test "$with_gnu_ld" = no; then
10800 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10801 hardcode_libdir_separator=:
10806 hardcode_shlibpath_var=no
10809 hardcode_direct=yes
10810 hardcode_direct_absolute=yes
10811 export_dynamic_flag_spec='${wl}-E'
10813 # hardcode_minus_L: Not really in the search PATH,
10814 # but as the default location of the library.
10815 hardcode_minus_L=yes
10821 irix5* | irix6* | nonstopux*)
10822 if test "$GCC" = yes; then
10823 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'
10824 # Try to use the -exported_symbol ld option, if it does not
10825 # work, assume that -exports_file does not work either and
10826 # implicitly export all symbols.
10827 # This should be the same for all languages, so no per-tag cache variable.
10828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
10829 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
10830 if ${lt_cv_irix_exported_symbol+:} false; then :
10831 $as_echo_n "(cached) " >&6
10833 save_LDFLAGS="$LDFLAGS"
10834 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10835 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10836 /* end confdefs.h. */
10837 int foo (void) { return 0; }
10839 if ac_fn_c_try_link "$LINENO"; then :
10840 lt_cv_irix_exported_symbol=yes
10842 lt_cv_irix_exported_symbol=no
10844 rm -f core conftest.err conftest.$ac_objext \
10845 conftest$ac_exeext conftest.$ac_ext
10846 LDFLAGS="$save_LDFLAGS"
10848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
10849 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
10850 if test "$lt_cv_irix_exported_symbol" = yes; then
10851 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'
10854 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'
10855 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'
10857 archive_cmds_need_lc='no'
10858 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10859 hardcode_libdir_separator=:
10861 link_all_deplibs=yes
10864 netbsd* | netbsdelf*-gnu)
10865 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10866 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10868 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10870 hardcode_libdir_flag_spec='-R$libdir'
10871 hardcode_direct=yes
10872 hardcode_shlibpath_var=no
10876 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10877 hardcode_direct=yes
10878 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10879 hardcode_libdir_separator=:
10880 hardcode_shlibpath_var=no
10887 if test -f /usr/libexec/ld.so; then
10888 hardcode_direct=yes
10889 hardcode_shlibpath_var=no
10890 hardcode_direct_absolute=yes
10891 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10892 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10893 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10894 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10895 export_dynamic_flag_spec='${wl}-E'
10898 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10899 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10900 hardcode_libdir_flag_spec='-R$libdir'
10903 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10904 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10914 hardcode_libdir_flag_spec='-L$libdir'
10915 hardcode_minus_L=yes
10916 allow_undefined_flag=unsupported
10917 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'
10918 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10922 if test "$GCC" = yes; then
10923 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10924 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'
10926 allow_undefined_flag=' -expect_unresolved \*'
10927 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'
10929 archive_cmds_need_lc='no'
10930 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10931 hardcode_libdir_separator=:
10934 osf4* | osf5*) # as osf3* with the addition of -msym flag
10935 if test "$GCC" = yes; then
10936 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10937 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'
10938 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10940 allow_undefined_flag=' -expect_unresolved \*'
10941 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'
10942 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~
10943 $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'
10945 # Both c and cxx compiler support -rpath directly
10946 hardcode_libdir_flag_spec='-rpath $libdir'
10948 archive_cmds_need_lc='no'
10949 hardcode_libdir_separator=:
10953 no_undefined_flag=' -z defs'
10954 if test "$GCC" = yes; then
10956 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10957 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10958 $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'
10960 case `$CC -V 2>&1` in
10963 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10964 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10965 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10969 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10970 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10971 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10975 hardcode_libdir_flag_spec='-R$libdir'
10976 hardcode_shlibpath_var=no
10978 solaris2.[0-5] | solaris2.[0-5].*) ;;
10980 # The compiler driver will combine and reorder linker options,
10981 # but understands `-z linker_flag'. GCC discards it without `$wl',
10982 # but is careful enough not to reorder.
10983 # Supported since Solaris 2.6 (maybe 2.5.1?)
10984 if test "$GCC" = yes; then
10985 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10987 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10991 link_all_deplibs=yes
10995 if test "x$host_vendor" = xsequent; then
10996 # Use $CC to link under sequent, because it throws in some extra .o
10997 # files that make .init and .fini sections work.
10998 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
11000 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
11002 hardcode_libdir_flag_spec='-L$libdir'
11003 hardcode_direct=yes
11004 hardcode_minus_L=yes
11005 hardcode_shlibpath_var=no
11009 case $host_vendor in
11011 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11012 hardcode_direct=yes # is this really true???
11015 ## LD is ld it makes a PLAMLIB
11016 ## CC just makes a GrossModule.
11017 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
11018 reload_cmds='$CC -r -o $output$reload_objs'
11022 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11023 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
11026 runpath_var='LD_RUN_PATH'
11027 hardcode_shlibpath_var=no
11031 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11032 hardcode_shlibpath_var=no
11033 export_dynamic_flag_spec='-Bexport'
11037 if test -d /usr/nec; then
11038 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11039 hardcode_shlibpath_var=no
11040 runpath_var=LD_RUN_PATH
11041 hardcode_runpath_var=yes
11046 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11047 no_undefined_flag='${wl}-z,text'
11048 archive_cmds_need_lc=no
11049 hardcode_shlibpath_var=no
11050 runpath_var='LD_RUN_PATH'
11052 if test "$GCC" = yes; then
11053 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11054 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11056 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11057 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11061 sysv5* | sco3.2v5* | sco5v6*)
11062 # Note: We can NOT use -z defs as we might desire, because we do not
11063 # link with -lc, and that would cause any symbols used from libc to
11064 # always be unresolved, which means just about no library would
11065 # ever link correctly. If we're not using GNU ld we use -z text
11066 # though, which does catch some bad symbols but isn't as heavy-handed
11068 no_undefined_flag='${wl}-z,text'
11069 allow_undefined_flag='${wl}-z,nodefs'
11070 archive_cmds_need_lc=no
11071 hardcode_shlibpath_var=no
11072 hardcode_libdir_flag_spec='${wl}-R,$libdir'
11073 hardcode_libdir_separator=':'
11074 link_all_deplibs=yes
11075 export_dynamic_flag_spec='${wl}-Bexport'
11076 runpath_var='LD_RUN_PATH'
11078 if test "$GCC" = yes; then
11079 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11080 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11082 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11083 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11088 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11089 hardcode_libdir_flag_spec='-L$libdir'
11090 hardcode_shlibpath_var=no
11098 if test x$host_vendor = xsni; then
11100 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11101 export_dynamic_flag_spec='${wl}-Blargedynsym'
11107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
11108 $as_echo "$ld_shlibs" >&6; }
11109 test "$ld_shlibs" = no && can_build_shared=no
11111 with_gnu_ld=$with_gnu_ld
11128 # Do we need to explicitly link libc?
11130 case "x$archive_cmds_need_lc" in
11132 # Assume -lc should be added
11133 archive_cmds_need_lc=yes
11135 if test "$enable_shared" = yes && test "$GCC" = yes; then
11136 case $archive_cmds in
11138 # FIXME: we may have to deal with multi-command sequences.
11141 # Test whether the compiler implicitly links with -lc since on some
11142 # systems, -lgcc has to come before -lc. If gcc already passes -lc
11143 # to ld, don't add -lc before -lgcc.
11144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
11145 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
11146 if ${lt_cv_archive_cmds_need_lc+:} false; then :
11147 $as_echo_n "(cached) " >&6
11150 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11152 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11153 (eval $ac_compile) 2>&5
11155 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11156 test $ac_status = 0; } 2>conftest.err; then
11159 libobjs=conftest.$ac_objext
11161 wl=$lt_prog_compiler_wl
11162 pic_flag=$lt_prog_compiler_pic
11168 lt_save_allow_undefined_flag=$allow_undefined_flag
11169 allow_undefined_flag=
11170 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
11171 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
11173 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11174 test $ac_status = 0; }
11176 lt_cv_archive_cmds_need_lc=no
11178 lt_cv_archive_cmds_need_lc=yes
11180 allow_undefined_flag=$lt_save_allow_undefined_flag
11182 cat conftest.err 1>&5
11187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
11188 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
11189 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
11347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11348 $as_echo_n "checking dynamic linker characteristics... " >&6; }
11350 if test "$GCC" = yes; then
11352 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
11353 *) lt_awk_arg="/^libraries:/" ;;
11356 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
11357 *) lt_sed_strip_eq="s,=/,/,g" ;;
11359 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
11360 case $lt_search_path_spec in
11362 # if the path contains ";" then we assume it to be the separator
11363 # otherwise default to the standard path separator (i.e. ":") - it is
11364 # assumed that no part of a normal pathname contains ";" but that should
11365 # okay in the real world where ";" in dirpaths is itself problematic.
11366 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
11369 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
11372 # Ok, now we have the path, separated by spaces, we can step through it
11373 # and add multilib dir if necessary.
11374 lt_tmp_lt_search_path_spec=
11375 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11376 for lt_sys_path in $lt_search_path_spec; do
11377 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
11378 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
11380 test -d "$lt_sys_path" && \
11381 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11384 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
11385 BEGIN {RS=" "; FS="/|\n";} {
11388 for (lt_i = NF; lt_i > 0; lt_i--) {
11389 if ($lt_i != "" && $lt_i != ".") {
11390 if ($lt_i == "..") {
11393 if (lt_count == 0) {
11394 lt_foo="/" $lt_i lt_foo;
11401 if (lt_foo != "") { lt_freq[lt_foo]++; }
11402 if (lt_freq[lt_foo] == 1) { print lt_foo; }
11404 # AWK program above erroneously prepends '/' to C:/dos/paths
11407 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
11408 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
11410 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
11412 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11414 library_names_spec=
11415 libname_spec='lib$name'
11419 postuninstall_cmds=
11423 shlibpath_overrides_runpath=unknown
11425 dynamic_linker="$host_os ld.so"
11426 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11427 need_lib_prefix=unknown
11428 hardcode_into_libs=no
11430 # when you set need_version to no, make sure it does not cause -set_version
11431 # flags to be left without arguments
11432 need_version=unknown
11436 version_type=linux # correct to gnu/linux during the next big refactor
11437 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11438 shlibpath_var=LIBPATH
11440 # AIX 3 has no versioning support, so we append a major version to the name.
11441 soname_spec='${libname}${release}${shared_ext}$major'
11445 version_type=linux # correct to gnu/linux during the next big refactor
11448 hardcode_into_libs=yes
11449 if test "$host_cpu" = ia64; then
11450 # AIX 5 supports IA64
11451 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11452 shlibpath_var=LD_LIBRARY_PATH
11454 # With GCC up to 2.95.x, collect2 would create an import file
11455 # for dependence libraries. The import file would start with
11456 # the line `#! .'. This would cause the generated library to
11457 # depend on `.', always an invalid library. This was fixed in
11458 # development snapshots of GCC prior to 3.0.
11460 aix4 | aix4.[01] | aix4.[01].*)
11461 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11463 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
11466 can_build_shared=no
11470 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11471 # soname into executable. Probably we can add versioning support to
11472 # collect2, so additional links can be useful in future.
11473 if test "$aix_use_runtimelinking" = yes; then
11474 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11475 # instead of lib<name>.a to let people know that these are not
11476 # typical AIX shared libraries.
11477 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11479 # We preserve .a as extension for shared libraries through AIX4.2
11480 # and later when we are not doing run time linking.
11481 library_names_spec='${libname}${release}.a $libname.a'
11482 soname_spec='${libname}${release}${shared_ext}$major'
11484 shlibpath_var=LIBPATH
11491 # Since July 2007 AmigaOS4 officially supports .so libraries.
11492 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11493 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11496 library_names_spec='$libname.ixlibrary $libname.a'
11497 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11498 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'
11504 library_names_spec='${libname}${shared_ext}'
11505 dynamic_linker="$host_os ld.so"
11506 shlibpath_var=LIBRARY_PATH
11510 version_type=linux # correct to gnu/linux during the next big refactor
11512 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11513 soname_spec='${libname}${release}${shared_ext}$major'
11514 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11515 shlibpath_var=LD_LIBRARY_PATH
11516 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11517 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11518 # the default ld.so.conf also contains /usr/contrib/lib and
11519 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11520 # libtool to hard-code these into programs
11523 cygwin* | mingw* | pw32* | cegcc*)
11524 version_type=windows
11529 case $GCC,$cc_basename in
11532 library_names_spec='$libname.dll.a'
11533 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11534 postinstall_cmds='base_file=`basename \${file}`~
11535 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11536 dldir=$destdir/`dirname \$dlpath`~
11537 test -d \$dldir || mkdir -p \$dldir~
11538 $install_prog $dir/$dlname \$dldir/$dlname~
11539 chmod a+x \$dldir/$dlname~
11540 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11541 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11543 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11544 dlpath=$dir/\$dldll~
11546 shlibpath_overrides_runpath=yes
11550 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11551 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11553 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11556 # MinGW DLLs use traditional 'lib' prefix
11557 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11560 # pw32 DLLs use 'pw' prefix rather than 'lib'
11561 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11564 dynamic_linker='Win32 ld.exe'
11569 libname_spec='$name'
11570 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11571 library_names_spec='${libname}.dll.lib'
11575 sys_lib_search_path_spec=
11578 for lt_path in $LIB
11581 # Let DOS variable expansion print the short 8.3 style file name.
11582 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
11583 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
11586 # Convert to MSYS style.
11587 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
11590 # Convert to unix form, then to dos form, then back to unix form
11591 # but this time dos style (no spaces!) so that the unix form looks
11592 # like /cygdrive/c/PROGRA~1:/cygdr...
11593 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
11594 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
11595 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11598 sys_lib_search_path_spec="$LIB"
11599 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11600 # It is most probably a Windows format PATH.
11601 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11603 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11605 # FIXME: find the short name or the path components, as spaces are
11606 # common. (e.g. "Program Files" -> "PROGRA~1")
11610 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11611 postinstall_cmds='base_file=`basename \${file}`~
11612 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11613 dldir=$destdir/`dirname \$dlpath`~
11614 test -d \$dldir || mkdir -p \$dldir~
11615 $install_prog $dir/$dlname \$dldir/$dlname'
11616 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11617 dlpath=$dir/\$dldll~
11619 shlibpath_overrides_runpath=yes
11620 dynamic_linker='Win32 link.exe'
11624 # Assume MSVC wrapper
11625 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11626 dynamic_linker='Win32 ld.exe'
11629 # FIXME: first we should search . and the directory the executable is in
11633 darwin* | rhapsody*)
11634 dynamic_linker="$host_os dyld"
11635 version_type=darwin
11638 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11639 soname_spec='${libname}${release}${major}$shared_ext'
11640 shlibpath_overrides_runpath=yes
11641 shlibpath_var=DYLD_LIBRARY_PATH
11642 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11644 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11645 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11649 version_type=linux # correct to gnu/linux during the next big refactor
11652 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11653 soname_spec='${libname}${release}${shared_ext}$major'
11654 shlibpath_var=LD_LIBRARY_PATH
11657 freebsd* | dragonfly*)
11658 # DragonFly does not have aout. When/if they implement a new
11659 # versioning mechanism, adjust this.
11660 if test -x /usr/bin/objformat; then
11661 objformat=`/usr/bin/objformat`
11664 freebsd[23].*) objformat=aout ;;
11665 *) objformat=elf ;;
11668 version_type=freebsd-$objformat
11669 case $version_type in
11671 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11676 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11680 shlibpath_var=LD_LIBRARY_PATH
11683 shlibpath_overrides_runpath=yes
11685 freebsd3.[01]* | freebsdelf3.[01]*)
11686 shlibpath_overrides_runpath=yes
11687 hardcode_into_libs=yes
11689 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11690 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11691 shlibpath_overrides_runpath=no
11692 hardcode_into_libs=yes
11694 *) # from 4.6 on, and DragonFly
11695 shlibpath_overrides_runpath=yes
11696 hardcode_into_libs=yes
11702 version_type=linux # correct to gnu/linux during the next big refactor
11705 dynamic_linker="$host_os runtime_loader"
11706 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11707 soname_spec='${libname}${release}${shared_ext}$major'
11708 shlibpath_var=LIBRARY_PATH
11709 shlibpath_overrides_runpath=yes
11710 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
11711 hardcode_into_libs=yes
11714 hpux9* | hpux10* | hpux11*)
11715 # Give a soname corresponding to the major version so that dld.sl refuses to
11716 # link against other versions.
11723 hardcode_into_libs=yes
11724 dynamic_linker="$host_os dld.so"
11725 shlibpath_var=LD_LIBRARY_PATH
11726 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11727 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11728 soname_spec='${libname}${release}${shared_ext}$major'
11729 if test "X$HPUX_IA64_MODE" = X32; then
11730 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11732 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11734 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11738 hardcode_into_libs=yes
11739 dynamic_linker="$host_os dld.sl"
11740 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11741 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11742 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11743 soname_spec='${libname}${release}${shared_ext}$major'
11744 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11745 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11749 dynamic_linker="$host_os dld.sl"
11750 shlibpath_var=SHLIB_PATH
11751 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11752 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11753 soname_spec='${libname}${release}${shared_ext}$major'
11756 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11757 postinstall_cmds='chmod 555 $lib'
11758 # or fails outright, so override atomically:
11759 install_override_mode=555
11763 version_type=linux # correct to gnu/linux during the next big refactor
11766 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11767 soname_spec='${libname}${release}${shared_ext}$major'
11768 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11769 shlibpath_var=LD_LIBRARY_PATH
11770 shlibpath_overrides_runpath=no
11771 hardcode_into_libs=yes
11774 irix5* | irix6* | nonstopux*)
11776 nonstopux*) version_type=nonstopux ;;
11778 if test "$lt_cv_prog_gnu_ld" = yes; then
11779 version_type=linux # correct to gnu/linux during the next big refactor
11786 soname_spec='${libname}${release}${shared_ext}$major'
11787 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11789 irix5* | nonstopux*)
11790 libsuff= shlibsuff=
11793 case $LD in # libtool.m4 will add one of these switches to LD
11794 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11795 libsuff= shlibsuff= libmagic=32-bit;;
11796 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11797 libsuff=32 shlibsuff=N32 libmagic=N32;;
11798 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11799 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11800 *) libsuff= shlibsuff= libmagic=never-match;;
11804 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11805 shlibpath_overrides_runpath=no
11806 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11807 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11808 hardcode_into_libs=yes
11811 # No shared lib support for Linux oldld, aout, or coff.
11812 linux*oldld* | linux*aout* | linux*coff*)
11816 # This must be glibc/ELF.
11817 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
11818 version_type=linux # correct to gnu/linux during the next big refactor
11821 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11822 soname_spec='${libname}${release}${shared_ext}$major'
11823 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11824 shlibpath_var=LD_LIBRARY_PATH
11825 shlibpath_overrides_runpath=no
11827 # Some binutils ld are patched to set DT_RUNPATH
11828 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
11829 $as_echo_n "(cached) " >&6
11831 lt_cv_shlibpath_overrides_runpath=no
11832 save_LDFLAGS=$LDFLAGS
11833 save_libdir=$libdir
11834 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11835 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11836 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11837 /* end confdefs.h. */
11847 if ac_fn_c_try_link "$LINENO"; then :
11848 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11849 lt_cv_shlibpath_overrides_runpath=yes
11852 rm -f core conftest.err conftest.$ac_objext \
11853 conftest$ac_exeext conftest.$ac_ext
11854 LDFLAGS=$save_LDFLAGS
11855 libdir=$save_libdir
11859 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11861 # This implies no fast_install, which is unacceptable.
11862 # Some rework will be needed to allow for fast_install
11863 # before this can be enabled.
11864 hardcode_into_libs=yes
11866 # Append ld.so.conf contents to the search path
11867 if test -f /etc/ld.so.conf; then
11868 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' ' '`
11869 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11872 # We used to test for /lib/ld.so.1 and disable shared libraries on
11873 # powerpc, because MkLinux only supported shared libraries with the
11874 # GNU dynamic linker. Since this was broken with cross compilers,
11875 # most powerpc-linux boxes support dynamic linking these days and
11876 # people can always --disable-shared, the test was removed, and we
11877 # assume the GNU/Linux dynamic linker is in use.
11878 dynamic_linker='GNU/Linux ld.so'
11885 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11886 soname_spec='${libname}${release}${shared_ext}$major'
11887 shlibpath_var=LD_LIBRARY_PATH
11888 shlibpath_overrides_runpath=no
11889 hardcode_into_libs=yes
11890 dynamic_linker='NetBSD ld.elf_so'
11897 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11898 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11899 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11900 dynamic_linker='NetBSD (a.out) ld.so'
11902 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11903 soname_spec='${libname}${release}${shared_ext}$major'
11904 dynamic_linker='NetBSD ld.elf_so'
11906 shlibpath_var=LD_LIBRARY_PATH
11907 shlibpath_overrides_runpath=yes
11908 hardcode_into_libs=yes
11912 version_type=linux # correct to gnu/linux during the next big refactor
11913 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11914 shlibpath_var=LD_LIBRARY_PATH
11915 shlibpath_overrides_runpath=yes
11922 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11923 soname_spec='${libname}${release}${shared_ext}$major'
11924 shlibpath_var=LD_LIBRARY_PATH
11925 shlibpath_overrides_runpath=no
11926 hardcode_into_libs=yes
11927 dynamic_linker='ldqnx.so'
11932 sys_lib_dlsearch_path_spec="/usr/lib"
11934 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11936 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
11937 *) need_version=no ;;
11939 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11940 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11941 shlibpath_var=LD_LIBRARY_PATH
11942 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11944 openbsd2.[89] | openbsd2.[89].*)
11945 shlibpath_overrides_runpath=no
11948 shlibpath_overrides_runpath=yes
11952 shlibpath_overrides_runpath=yes
11957 libname_spec='$name'
11960 library_names_spec='$libname${shared_ext} $libname.a'
11961 dynamic_linker='OS/2 ld.exe'
11962 shlibpath_var=LIBPATH
11965 osf3* | osf4* | osf5*)
11969 soname_spec='${libname}${release}${shared_ext}$major'
11970 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11971 shlibpath_var=LD_LIBRARY_PATH
11972 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11973 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11981 version_type=linux # correct to gnu/linux during the next big refactor
11984 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11985 soname_spec='${libname}${release}${shared_ext}$major'
11986 shlibpath_var=LD_LIBRARY_PATH
11987 shlibpath_overrides_runpath=yes
11988 hardcode_into_libs=yes
11989 # ldd complains unless libraries are executable
11990 postinstall_cmds='chmod +x $lib'
11995 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11996 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11997 shlibpath_var=LD_LIBRARY_PATH
11998 shlibpath_overrides_runpath=yes
11999 if test "$with_gnu_ld" = yes; then
12006 version_type=linux # correct to gnu/linux during the next big refactor
12007 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12008 soname_spec='${libname}${release}${shared_ext}$major'
12009 shlibpath_var=LD_LIBRARY_PATH
12010 case $host_vendor in
12012 shlibpath_overrides_runpath=no
12014 runpath_var=LD_RUN_PATH
12022 shlibpath_overrides_runpath=no
12023 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12029 if test -d /usr/nec ;then
12030 version_type=linux # correct to gnu/linux during the next big refactor
12031 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
12032 soname_spec='$libname${shared_ext}.$major'
12033 shlibpath_var=LD_LIBRARY_PATH
12037 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12038 version_type=freebsd-elf
12041 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12042 soname_spec='${libname}${release}${shared_ext}$major'
12043 shlibpath_var=LD_LIBRARY_PATH
12044 shlibpath_overrides_runpath=yes
12045 hardcode_into_libs=yes
12046 if test "$with_gnu_ld" = yes; then
12047 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12049 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12052 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12056 sys_lib_dlsearch_path_spec='/usr/lib'
12060 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
12061 version_type=linux # correct to gnu/linux during the next big refactor
12064 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12065 shlibpath_var=LD_LIBRARY_PATH
12066 shlibpath_overrides_runpath=no
12067 hardcode_into_libs=yes
12071 version_type=linux # correct to gnu/linux during the next big refactor
12072 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12073 soname_spec='${libname}${release}${shared_ext}$major'
12074 shlibpath_var=LD_LIBRARY_PATH
12081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
12082 $as_echo "$dynamic_linker" >&6; }
12083 test "$dynamic_linker" = no && can_build_shared=no
12085 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12086 if test "$GCC" = yes; then
12087 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12090 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
12091 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
12093 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
12094 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
12188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
12189 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
12191 if test -n "$hardcode_libdir_flag_spec" ||
12192 test -n "$runpath_var" ||
12193 test "X$hardcode_automatic" = "Xyes" ; then
12195 # We can hardcode non-existent directories.
12196 if test "$hardcode_direct" != no &&
12197 # If the only mechanism to avoid hardcoding is shlibpath_var, we
12198 # have to relink, otherwise we might link with an installed library
12199 # when we should be linking with a yet-to-be-installed one
12200 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
12201 test "$hardcode_minus_L" != no; then
12202 # Linking always hardcodes the temporary library directory.
12203 hardcode_action=relink
12205 # We can link without hardcoding, and we can hardcode nonexisting dirs.
12206 hardcode_action=immediate
12209 # We cannot hardcode anything, or else we can only hardcode existing
12211 hardcode_action=unsupported
12213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
12214 $as_echo "$hardcode_action" >&6; }
12216 if test "$hardcode_action" = relink ||
12217 test "$inherit_rpath" = yes; then
12218 # Fast installation is not supported
12219 enable_fast_install=no
12220 elif test "$shlibpath_overrides_runpath" = yes ||
12221 test "$enable_shared" = no; then
12222 # Fast installation is not necessary
12223 enable_fast_install=needless
12231 if test "x$enable_dlopen" != xyes; then
12232 enable_dlopen=unknown
12233 enable_dlopen_self=unknown
12234 enable_dlopen_self_static=unknown
12241 lt_cv_dlopen="load_add_on"
12243 lt_cv_dlopen_self=yes
12246 mingw* | pw32* | cegcc*)
12247 lt_cv_dlopen="LoadLibrary"
12252 lt_cv_dlopen="dlopen"
12257 # if libdl is installed we need to link against it
12258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12259 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12260 if ${ac_cv_lib_dl_dlopen+:} false; then :
12261 $as_echo_n "(cached) " >&6
12263 ac_check_lib_save_LIBS=$LIBS
12265 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12266 /* end confdefs.h. */
12268 /* Override any GCC internal prototype to avoid an error.
12269 Use char because int might match the return type of a GCC
12270 builtin and then its argument prototype would still apply. */
12283 if ac_fn_c_try_link "$LINENO"; then :
12284 ac_cv_lib_dl_dlopen=yes
12286 ac_cv_lib_dl_dlopen=no
12288 rm -f core conftest.err conftest.$ac_objext \
12289 conftest$ac_exeext conftest.$ac_ext
12290 LIBS=$ac_check_lib_save_LIBS
12292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12293 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12294 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12295 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12298 lt_cv_dlopen="dyld"
12300 lt_cv_dlopen_self=yes
12307 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
12308 if test "x$ac_cv_func_shl_load" = xyes; then :
12309 lt_cv_dlopen="shl_load"
12311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12312 $as_echo_n "checking for shl_load in -ldld... " >&6; }
12313 if ${ac_cv_lib_dld_shl_load+:} false; then :
12314 $as_echo_n "(cached) " >&6
12316 ac_check_lib_save_LIBS=$LIBS
12318 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12319 /* end confdefs.h. */
12321 /* Override any GCC internal prototype to avoid an error.
12322 Use char because int might match the return type of a GCC
12323 builtin and then its argument prototype would still apply. */
12331 return shl_load ();
12336 if ac_fn_c_try_link "$LINENO"; then :
12337 ac_cv_lib_dld_shl_load=yes
12339 ac_cv_lib_dld_shl_load=no
12341 rm -f core conftest.err conftest.$ac_objext \
12342 conftest$ac_exeext conftest.$ac_ext
12343 LIBS=$ac_check_lib_save_LIBS
12345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12346 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
12347 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
12348 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
12350 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
12351 if test "x$ac_cv_func_dlopen" = xyes; then :
12352 lt_cv_dlopen="dlopen"
12354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12355 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12356 if ${ac_cv_lib_dl_dlopen+:} false; then :
12357 $as_echo_n "(cached) " >&6
12359 ac_check_lib_save_LIBS=$LIBS
12361 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12362 /* end confdefs.h. */
12364 /* Override any GCC internal prototype to avoid an error.
12365 Use char because int might match the return type of a GCC
12366 builtin and then its argument prototype would still apply. */
12379 if ac_fn_c_try_link "$LINENO"; then :
12380 ac_cv_lib_dl_dlopen=yes
12382 ac_cv_lib_dl_dlopen=no
12384 rm -f core conftest.err conftest.$ac_objext \
12385 conftest$ac_exeext conftest.$ac_ext
12386 LIBS=$ac_check_lib_save_LIBS
12388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12389 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12390 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12391 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12394 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
12395 if ${ac_cv_lib_svld_dlopen+:} false; then :
12396 $as_echo_n "(cached) " >&6
12398 ac_check_lib_save_LIBS=$LIBS
12399 LIBS="-lsvld $LIBS"
12400 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12401 /* end confdefs.h. */
12403 /* Override any GCC internal prototype to avoid an error.
12404 Use char because int might match the return type of a GCC
12405 builtin and then its argument prototype would still apply. */
12418 if ac_fn_c_try_link "$LINENO"; then :
12419 ac_cv_lib_svld_dlopen=yes
12421 ac_cv_lib_svld_dlopen=no
12423 rm -f core conftest.err conftest.$ac_objext \
12424 conftest$ac_exeext conftest.$ac_ext
12425 LIBS=$ac_check_lib_save_LIBS
12427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12428 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
12429 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
12430 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12433 $as_echo_n "checking for dld_link in -ldld... " >&6; }
12434 if ${ac_cv_lib_dld_dld_link+:} false; then :
12435 $as_echo_n "(cached) " >&6
12437 ac_check_lib_save_LIBS=$LIBS
12439 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12440 /* end confdefs.h. */
12442 /* Override any GCC internal prototype to avoid an error.
12443 Use char because int might match the return type of a GCC
12444 builtin and then its argument prototype would still apply. */
12452 return dld_link ();
12457 if ac_fn_c_try_link "$LINENO"; then :
12458 ac_cv_lib_dld_dld_link=yes
12460 ac_cv_lib_dld_dld_link=no
12462 rm -f core conftest.err conftest.$ac_objext \
12463 conftest$ac_exeext conftest.$ac_ext
12464 LIBS=$ac_check_lib_save_LIBS
12466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12467 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12468 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
12469 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
12490 if test "x$lt_cv_dlopen" != xno; then
12496 case $lt_cv_dlopen in
12498 save_CPPFLAGS="$CPPFLAGS"
12499 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12501 save_LDFLAGS="$LDFLAGS"
12502 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12505 LIBS="$lt_cv_dlopen_libs $LIBS"
12507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12508 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
12509 if ${lt_cv_dlopen_self+:} false; then :
12510 $as_echo_n "(cached) " >&6
12512 if test "$cross_compiling" = yes; then :
12513 lt_cv_dlopen_self=cross
12515 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12516 lt_status=$lt_dlunknown
12517 cat > conftest.$ac_ext <<_LT_EOF
12518 #line $LINENO "configure"
12519 #include "confdefs.h"
12528 # define LT_DLGLOBAL RTLD_GLOBAL
12531 # define LT_DLGLOBAL DL_GLOBAL
12533 # define LT_DLGLOBAL 0
12537 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12538 find out it does not work in some platform. */
12539 #ifndef LT_DLLAZY_OR_NOW
12541 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12544 # define LT_DLLAZY_OR_NOW DL_LAZY
12547 # define LT_DLLAZY_OR_NOW RTLD_NOW
12550 # define LT_DLLAZY_OR_NOW DL_NOW
12552 # define LT_DLLAZY_OR_NOW 0
12559 /* When -fvisbility=hidden is used, assume the code has been annotated
12560 correspondingly for the symbols needed. */
12561 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12562 int fnord () __attribute__((visibility("default")));
12565 int fnord () { return 42; }
12568 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12569 int status = $lt_dlunknown;
12573 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12576 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12577 else puts (dlerror ());
12579 /* dlclose (self); */
12587 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12588 (eval $ac_link) 2>&5
12590 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12591 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12592 (./conftest; exit; ) >&5 2>/dev/null
12594 case x$lt_status in
12595 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12596 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12597 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12600 # compilation failed
12601 lt_cv_dlopen_self=no
12608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12609 $as_echo "$lt_cv_dlopen_self" >&6; }
12611 if test "x$lt_cv_dlopen_self" = xyes; then
12612 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12614 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12615 if ${lt_cv_dlopen_self_static+:} false; then :
12616 $as_echo_n "(cached) " >&6
12618 if test "$cross_compiling" = yes; then :
12619 lt_cv_dlopen_self_static=cross
12621 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12622 lt_status=$lt_dlunknown
12623 cat > conftest.$ac_ext <<_LT_EOF
12624 #line $LINENO "configure"
12625 #include "confdefs.h"
12634 # define LT_DLGLOBAL RTLD_GLOBAL
12637 # define LT_DLGLOBAL DL_GLOBAL
12639 # define LT_DLGLOBAL 0
12643 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12644 find out it does not work in some platform. */
12645 #ifndef LT_DLLAZY_OR_NOW
12647 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12650 # define LT_DLLAZY_OR_NOW DL_LAZY
12653 # define LT_DLLAZY_OR_NOW RTLD_NOW
12656 # define LT_DLLAZY_OR_NOW DL_NOW
12658 # define LT_DLLAZY_OR_NOW 0
12665 /* When -fvisbility=hidden is used, assume the code has been annotated
12666 correspondingly for the symbols needed. */
12667 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12668 int fnord () __attribute__((visibility("default")));
12671 int fnord () { return 42; }
12674 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12675 int status = $lt_dlunknown;
12679 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12682 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12683 else puts (dlerror ());
12685 /* dlclose (self); */
12693 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12694 (eval $ac_link) 2>&5
12696 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12697 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12698 (./conftest; exit; ) >&5 2>/dev/null
12700 case x$lt_status in
12701 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12702 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12703 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12706 # compilation failed
12707 lt_cv_dlopen_self_static=no
12714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12715 $as_echo "$lt_cv_dlopen_self_static" >&6; }
12718 CPPFLAGS="$save_CPPFLAGS"
12719 LDFLAGS="$save_LDFLAGS"
12724 case $lt_cv_dlopen_self in
12725 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12726 *) enable_dlopen_self=unknown ;;
12729 case $lt_cv_dlopen_self_static in
12730 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12731 *) enable_dlopen_self_static=unknown ;;
12753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12754 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
12755 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12756 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12757 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12759 $as_echo "yes" >&6; }
12761 # FIXME - insert some real tests, host_os isn't really good enough
12764 if test -n "$STRIP" ; then
12765 striplib="$STRIP -x"
12766 old_striplib="$STRIP -S"
12767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12768 $as_echo "yes" >&6; }
12770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12771 $as_echo "no" >&6; }
12775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12776 $as_echo "no" >&6; }
12792 # Report which library types will actually be built
12793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12794 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
12795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12796 $as_echo "$can_build_shared" >&6; }
12798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12799 $as_echo_n "checking whether to build shared libraries... " >&6; }
12800 test "$can_build_shared" = "no" && enable_shared=no
12802 # On AIX, shared libraries and static libraries use the same namespace, and
12803 # are all built from PIC.
12806 test "$enable_shared" = yes && enable_static=no
12807 if test -n "$RANLIB"; then
12808 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12809 postinstall_cmds='$RANLIB $lib'
12814 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12815 test "$enable_shared" = yes && enable_static=no
12819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12820 $as_echo "$enable_shared" >&6; }
12822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12823 $as_echo_n "checking whether to build static libraries... " >&6; }
12824 # Make sure either enable_shared or enable_static is yes.
12825 test "$enable_shared" = yes || enable_static=yes
12826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12827 $as_echo "$enable_static" >&6; }
12834 ac_cpp='$CPP $CPPFLAGS'
12835 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12836 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12837 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12855 ac_config_commands="$ac_config_commands libtool"
12860 # Only expand once:
12864 ac_config_headers="$ac_config_headers config.h"
12868 # Check $PATH for the following programs and append suitable options.
12870 ac_cpp='$CPP $CPPFLAGS'
12871 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12872 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12873 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12874 if test -n "$ac_tool_prefix"; then
12875 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
12876 set dummy ${ac_tool_prefix}gcc; ac_word=$2
12877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12878 $as_echo_n "checking for $ac_word... " >&6; }
12879 if ${ac_cv_prog_CC+:} false; then :
12880 $as_echo_n "(cached) " >&6
12882 if test -n "$CC"; then
12883 ac_cv_prog_CC="$CC" # Let the user override the test.
12885 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12886 for as_dir in $PATH
12889 test -z "$as_dir" && as_dir=.
12890 for ac_exec_ext in '' $ac_executable_extensions; do
12891 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12892 ac_cv_prog_CC="${ac_tool_prefix}gcc"
12893 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12903 if test -n "$CC"; then
12904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
12905 $as_echo "$CC" >&6; }
12907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12908 $as_echo "no" >&6; }
12913 if test -z "$ac_cv_prog_CC"; then
12915 # Extract the first word of "gcc", so it can be a program name with args.
12916 set dummy gcc; ac_word=$2
12917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12918 $as_echo_n "checking for $ac_word... " >&6; }
12919 if ${ac_cv_prog_ac_ct_CC+:} false; then :
12920 $as_echo_n "(cached) " >&6
12922 if test -n "$ac_ct_CC"; then
12923 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
12925 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12926 for as_dir in $PATH
12929 test -z "$as_dir" && as_dir=.
12930 for ac_exec_ext in '' $ac_executable_extensions; do
12931 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12932 ac_cv_prog_ac_ct_CC="gcc"
12933 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12942 ac_ct_CC=$ac_cv_prog_ac_ct_CC
12943 if test -n "$ac_ct_CC"; then
12944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
12945 $as_echo "$ac_ct_CC" >&6; }
12947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12948 $as_echo "no" >&6; }
12951 if test "x$ac_ct_CC" = x; then
12954 case $cross_compiling:$ac_tool_warned in
12956 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12957 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12958 ac_tool_warned=yes ;;
12963 CC="$ac_cv_prog_CC"
12966 if test -z "$CC"; then
12967 if test -n "$ac_tool_prefix"; then
12968 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
12969 set dummy ${ac_tool_prefix}cc; ac_word=$2
12970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12971 $as_echo_n "checking for $ac_word... " >&6; }
12972 if ${ac_cv_prog_CC+:} false; then :
12973 $as_echo_n "(cached) " >&6
12975 if test -n "$CC"; then
12976 ac_cv_prog_CC="$CC" # Let the user override the test.
12978 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12979 for as_dir in $PATH
12982 test -z "$as_dir" && as_dir=.
12983 for ac_exec_ext in '' $ac_executable_extensions; do
12984 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12985 ac_cv_prog_CC="${ac_tool_prefix}cc"
12986 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12996 if test -n "$CC"; then
12997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
12998 $as_echo "$CC" >&6; }
13000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13001 $as_echo "no" >&6; }
13007 if test -z "$CC"; then
13008 # Extract the first word of "cc", so it can be a program name with args.
13009 set dummy cc; ac_word=$2
13010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13011 $as_echo_n "checking for $ac_word... " >&6; }
13012 if ${ac_cv_prog_CC+:} false; then :
13013 $as_echo_n "(cached) " >&6
13015 if test -n "$CC"; then
13016 ac_cv_prog_CC="$CC" # Let the user override the test.
13018 ac_prog_rejected=no
13019 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13020 for as_dir in $PATH
13023 test -z "$as_dir" && as_dir=.
13024 for ac_exec_ext in '' $ac_executable_extensions; do
13025 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13026 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
13027 ac_prog_rejected=yes
13031 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13038 if test $ac_prog_rejected = yes; then
13039 # We found a bogon in the path, so make sure we never use it.
13040 set dummy $ac_cv_prog_CC
13042 if test $# != 0; then
13043 # We chose a different compiler from the bogus one.
13044 # However, it has the same basename, so the bogon will be chosen
13045 # first if we set CC to just the basename; use the full file name.
13047 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
13053 if test -n "$CC"; then
13054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
13055 $as_echo "$CC" >&6; }
13057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13058 $as_echo "no" >&6; }
13063 if test -z "$CC"; then
13064 if test -n "$ac_tool_prefix"; then
13065 for ac_prog in cl.exe
13067 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
13068 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
13069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13070 $as_echo_n "checking for $ac_word... " >&6; }
13071 if ${ac_cv_prog_CC+:} false; then :
13072 $as_echo_n "(cached) " >&6
13074 if test -n "$CC"; then
13075 ac_cv_prog_CC="$CC" # Let the user override the test.
13077 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13078 for as_dir in $PATH
13081 test -z "$as_dir" && as_dir=.
13082 for ac_exec_ext in '' $ac_executable_extensions; do
13083 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13084 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
13085 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13095 if test -n "$CC"; then
13096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
13097 $as_echo "$CC" >&6; }
13099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13100 $as_echo "no" >&6; }
13104 test -n "$CC" && break
13107 if test -z "$CC"; then
13109 for ac_prog in cl.exe
13111 # Extract the first word of "$ac_prog", so it can be a program name with args.
13112 set dummy $ac_prog; ac_word=$2
13113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13114 $as_echo_n "checking for $ac_word... " >&6; }
13115 if ${ac_cv_prog_ac_ct_CC+:} false; then :
13116 $as_echo_n "(cached) " >&6
13118 if test -n "$ac_ct_CC"; then
13119 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
13121 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13122 for as_dir in $PATH
13125 test -z "$as_dir" && as_dir=.
13126 for ac_exec_ext in '' $ac_executable_extensions; do
13127 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13128 ac_cv_prog_ac_ct_CC="$ac_prog"
13129 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13138 ac_ct_CC=$ac_cv_prog_ac_ct_CC
13139 if test -n "$ac_ct_CC"; then
13140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
13141 $as_echo "$ac_ct_CC" >&6; }
13143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13144 $as_echo "no" >&6; }
13148 test -n "$ac_ct_CC" && break
13151 if test "x$ac_ct_CC" = x; then
13154 case $cross_compiling:$ac_tool_warned in
13156 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13157 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13158 ac_tool_warned=yes ;;
13167 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13168 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13169 as_fn_error $? "no acceptable C compiler found in \$PATH
13170 See \`config.log' for more details" "$LINENO" 5; }
13172 # Provide some information about the compiler.
13173 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
13176 for ac_option in --version -v -V -qversion; do
13177 { { ac_try="$ac_compiler $ac_option >&5"
13178 case "(($ac_try" in
13179 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13180 *) ac_try_echo=$ac_try;;
13182 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
13183 $as_echo "$ac_try_echo"; } >&5
13184 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
13186 if test -s conftest.err; then
13188 ... rest of stderr output deleted ...
13189 10q' conftest.err >conftest.er1
13190 cat conftest.er1 >&5
13192 rm -f conftest.er1 conftest.err
13193 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13194 test $ac_status = 0; }
13197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
13198 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
13199 if ${ac_cv_c_compiler_gnu+:} false; then :
13200 $as_echo_n "(cached) " >&6
13202 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13203 /* end confdefs.h. */
13216 if ac_fn_c_try_compile "$LINENO"; then :
13217 ac_compiler_gnu=yes
13221 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13222 ac_cv_c_compiler_gnu=$ac_compiler_gnu
13225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
13226 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
13227 if test $ac_compiler_gnu = yes; then
13232 ac_test_CFLAGS=${CFLAGS+set}
13233 ac_save_CFLAGS=$CFLAGS
13234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
13235 $as_echo_n "checking whether $CC accepts -g... " >&6; }
13236 if ${ac_cv_prog_cc_g+:} false; then :
13237 $as_echo_n "(cached) " >&6
13239 ac_save_c_werror_flag=$ac_c_werror_flag
13240 ac_c_werror_flag=yes
13243 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13244 /* end confdefs.h. */
13254 if ac_fn_c_try_compile "$LINENO"; then :
13255 ac_cv_prog_cc_g=yes
13258 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13259 /* end confdefs.h. */
13269 if ac_fn_c_try_compile "$LINENO"; then :
13272 ac_c_werror_flag=$ac_save_c_werror_flag
13274 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13275 /* end confdefs.h. */
13285 if ac_fn_c_try_compile "$LINENO"; then :
13286 ac_cv_prog_cc_g=yes
13288 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13290 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13292 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13293 ac_c_werror_flag=$ac_save_c_werror_flag
13295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
13296 $as_echo "$ac_cv_prog_cc_g" >&6; }
13297 if test "$ac_test_CFLAGS" = set; then
13298 CFLAGS=$ac_save_CFLAGS
13299 elif test $ac_cv_prog_cc_g = yes; then
13300 if test "$GCC" = yes; then
13306 if test "$GCC" = yes; then
13312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
13313 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
13314 if ${ac_cv_prog_cc_c89+:} false; then :
13315 $as_echo_n "(cached) " >&6
13317 ac_cv_prog_cc_c89=no
13319 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13320 /* end confdefs.h. */
13321 #include <stdarg.h>
13324 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
13325 struct buf { int x; };
13326 FILE * (*rcsopen) (struct buf *, struct stat *, int);
13327 static char *e (p, i)
13333 static char *f (char * (*g) (char **, int), char **p, ...)
13338 s = g (p, va_arg (v,int));
13343 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
13344 function prototypes and stuff, but not '\xHH' hex character constants.
13345 These don't provoke an error unfortunately, instead are silently treated
13346 as 'x'. The following induces an error, until -std is added to get
13347 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
13348 array size at least. It's necessary to write '\x00'==0 to get something
13349 that's true only with -std. */
13350 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
13352 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
13353 inside strings and character constants. */
13355 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
13357 int test (int i, double x);
13358 struct s1 {int (*f) (int a);};
13359 struct s2 {int (*f) (double a);};
13360 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
13366 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
13371 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
13372 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
13374 CC="$ac_save_CC $ac_arg"
13375 if ac_fn_c_try_compile "$LINENO"; then :
13376 ac_cv_prog_cc_c89=$ac_arg
13378 rm -f core conftest.err conftest.$ac_objext
13379 test "x$ac_cv_prog_cc_c89" != "xno" && break
13381 rm -f conftest.$ac_ext
13386 case "x$ac_cv_prog_cc_c89" in
13388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
13389 $as_echo "none needed" >&6; } ;;
13391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
13392 $as_echo "unsupported" >&6; } ;;
13394 CC="$CC $ac_cv_prog_cc_c89"
13395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
13396 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
13398 if test "x$ac_cv_prog_cc_c89" != xno; then :
13403 ac_cpp='$CPP $CPPFLAGS'
13404 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13405 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13406 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13409 ac_cpp='$CPP $CPPFLAGS'
13410 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13411 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13412 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
13414 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
13415 if ${am_cv_prog_cc_c_o+:} false; then :
13416 $as_echo_n "(cached) " >&6
13418 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13419 /* end confdefs.h. */
13429 # Make sure it works both with $CC and with simple cc.
13430 # Following AC_PROG_CC_C_O, we do the test twice because some
13431 # compilers refuse to overwrite an existing .o file with -o,
13432 # though they will create one.
13433 am_cv_prog_cc_c_o=yes
13434 for am_i in 1 2; do
13435 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
13436 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
13438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13439 (exit $ac_status); } \
13440 && test -f conftest2.$ac_objext; then
13443 am_cv_prog_cc_c_o=no
13447 rm -f core conftest*
13450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
13451 $as_echo "$am_cv_prog_cc_c_o" >&6; }
13452 if test "$am_cv_prog_cc_c_o" != yes; then
13453 # Losing compiler, so override with the script.
13454 # FIXME: It is wrong to rewrite CC.
13455 # But if we don't then we get into trouble of one sort or another.
13456 # A longer-term fix would be to have automake use am__CC in this case,
13457 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
13458 CC="$am_aux_dir/compile $CC"
13461 ac_cpp='$CPP $CPPFLAGS'
13462 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13463 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13464 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13467 depcc="$CC" am_compiler_list=
13469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
13470 $as_echo_n "checking dependency style of $depcc... " >&6; }
13471 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
13472 $as_echo_n "(cached) " >&6
13474 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
13475 # We make a subdir and do the tests there. Otherwise we can end up
13476 # making bogus files that we don't know about and never remove. For
13477 # instance it was reported that on HP-UX the gcc test will end up
13478 # making a dummy file named 'D' -- because '-MD' means "put the output
13480 rm -rf conftest.dir
13482 # Copy depcomp to subdir because otherwise we won't find it if we're
13483 # using a relative directory.
13484 cp "$am_depcomp" conftest.dir
13486 # We will build objects and dependencies in a subdirectory because
13487 # it helps to detect inapplicable dependency modes. For instance
13488 # both Tru64's cc and ICC support -MD to output dependencies as a
13489 # side effect of compilation, but ICC will put the dependencies in
13490 # the current directory while Tru64 will put them in the object
13494 am_cv_CC_dependencies_compiler_type=none
13495 if test "$am_compiler_list" = ""; then
13496 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
13498 am__universal=false
13499 case " $depcc " in #(
13500 *\ -arch\ *\ -arch\ *) am__universal=true ;;
13503 for depmode in $am_compiler_list; do
13504 # Setup a source with many dependencies, because some compilers
13505 # like to wrap large dependency lists on column 80 (with \), and
13506 # we should not choose a depcomp mode which is confused by this.
13508 # We need to recreate these files for each test, as the compiler may
13509 # overwrite some of them when testing with obscure command lines.
13510 # This happens at least with the AIX C compiler.
13512 for i in 1 2 3 4 5 6; do
13513 echo '#include "conftst'$i'.h"' >> sub/conftest.c
13514 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
13515 # Solaris 10 /bin/sh.
13516 echo '/* dummy */' > sub/conftst$i.h
13518 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
13520 # We check with '-c' and '-o' for the sake of the "dashmstdout"
13521 # mode. It turns out that the SunPro C++ compiler does not properly
13522 # handle '-M -o', and we need to detect this. Also, some Intel
13523 # versions had trouble with output in subdirs.
13524 am__obj=sub/conftest.${OBJEXT-o}
13525 am__minus_obj="-o $am__obj"
13528 # This depmode causes a compiler race in universal mode.
13529 test "$am__universal" = false || continue
13532 # After this tag, mechanisms are not by side-effect, so they'll
13533 # only be used when explicitly requested.
13534 if test "x$enable_dependency_tracking" = xyes; then
13540 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
13541 # This compiler won't grok '-c -o', but also, the minuso test has
13542 # not run yet. These depmodes are late enough in the game, and
13543 # so weak that their functioning should not be impacted.
13544 am__obj=conftest.${OBJEXT-o}
13549 if depmode=$depmode \
13550 source=sub/conftest.c object=$am__obj \
13551 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
13552 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
13553 >/dev/null 2>conftest.err &&
13554 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
13555 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
13556 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
13557 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
13558 # icc doesn't choke on unknown options, it will just issue warnings
13559 # or remarks (even with -Werror). So we grep stderr for any message
13560 # that says an option was ignored or not supported.
13561 # When given -MP, icc 7.0 and 7.1 complain thusly:
13562 # icc: Command line warning: ignoring option '-M'; no argument required
13563 # The diagnosis changed in icc 8.0:
13564 # icc: Command line remark: option '-MP' not supported
13565 if (grep 'ignoring option' conftest.err ||
13566 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
13567 am_cv_CC_dependencies_compiler_type=$depmode
13574 rm -rf conftest.dir
13576 am_cv_CC_dependencies_compiler_type=none
13580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
13581 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
13582 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
13585 test "x$enable_dependency_tracking" != xno \
13586 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
13587 am__fastdepCC_TRUE=
13588 am__fastdepCC_FALSE='#'
13590 am__fastdepCC_TRUE='#'
13591 am__fastdepCC_FALSE=
13597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Minix Amsterdam compiler" >&5
13598 $as_echo_n "checking for Minix Amsterdam compiler... " >&6; }
13599 if ${gl_cv_c_amsterdam_compiler+:} false; then :
13600 $as_echo_n "(cached) " >&6
13603 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13604 /* end confdefs.h. */
13611 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13612 $EGREP "Amsterdam" >/dev/null 2>&1; then :
13613 gl_cv_c_amsterdam_compiler=yes
13615 gl_cv_c_amsterdam_compiler=no
13621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_c_amsterdam_compiler" >&5
13622 $as_echo "$gl_cv_c_amsterdam_compiler" >&6; }
13623 if test -z "$AR"; then
13624 if test $gl_cv_c_amsterdam_compiler = yes; then
13626 if test -z "$ARFLAGS"; then
13630 if test -n "$ac_tool_prefix"; then
13631 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
13632 set dummy ${ac_tool_prefix}ar; ac_word=$2
13633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13634 $as_echo_n "checking for $ac_word... " >&6; }
13635 if ${ac_cv_prog_AR+:} false; then :
13636 $as_echo_n "(cached) " >&6
13638 if test -n "$AR"; then
13639 ac_cv_prog_AR="$AR" # Let the user override the test.
13641 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13642 for as_dir in $PATH
13645 test -z "$as_dir" && as_dir=.
13646 for ac_exec_ext in '' $ac_executable_extensions; do
13647 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13648 ac_cv_prog_AR="${ac_tool_prefix}ar"
13649 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13659 if test -n "$AR"; then
13660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
13661 $as_echo "$AR" >&6; }
13663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13664 $as_echo "no" >&6; }
13669 if test -z "$ac_cv_prog_AR"; then
13671 # Extract the first word of "ar", so it can be a program name with args.
13672 set dummy ar; ac_word=$2
13673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13674 $as_echo_n "checking for $ac_word... " >&6; }
13675 if ${ac_cv_prog_ac_ct_AR+:} false; then :
13676 $as_echo_n "(cached) " >&6
13678 if test -n "$ac_ct_AR"; then
13679 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
13681 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13682 for as_dir in $PATH
13685 test -z "$as_dir" && as_dir=.
13686 for ac_exec_ext in '' $ac_executable_extensions; do
13687 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13688 ac_cv_prog_ac_ct_AR="ar"
13689 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13698 ac_ct_AR=$ac_cv_prog_ac_ct_AR
13699 if test -n "$ac_ct_AR"; then
13700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
13701 $as_echo "$ac_ct_AR" >&6; }
13703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13704 $as_echo "no" >&6; }
13707 if test "x$ac_ct_AR" = x; then
13710 case $cross_compiling:$ac_tool_warned in
13712 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13713 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13714 ac_tool_warned=yes ;;
13719 AR="$ac_cv_prog_AR"
13722 if test -z "$ARFLAGS"; then
13727 if test -z "$ARFLAGS"; then
13733 if test -z "$RANLIB"; then
13734 if test $gl_cv_c_amsterdam_compiler = yes; then
13737 if test -n "$ac_tool_prefix"; then
13738 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
13739 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
13740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13741 $as_echo_n "checking for $ac_word... " >&6; }
13742 if ${ac_cv_prog_RANLIB+:} false; then :
13743 $as_echo_n "(cached) " >&6
13745 if test -n "$RANLIB"; then
13746 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
13748 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13749 for as_dir in $PATH
13752 test -z "$as_dir" && as_dir=.
13753 for ac_exec_ext in '' $ac_executable_extensions; do
13754 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13755 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
13756 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13765 RANLIB=$ac_cv_prog_RANLIB
13766 if test -n "$RANLIB"; then
13767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
13768 $as_echo "$RANLIB" >&6; }
13770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13771 $as_echo "no" >&6; }
13776 if test -z "$ac_cv_prog_RANLIB"; then
13777 ac_ct_RANLIB=$RANLIB
13778 # Extract the first word of "ranlib", so it can be a program name with args.
13779 set dummy ranlib; ac_word=$2
13780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13781 $as_echo_n "checking for $ac_word... " >&6; }
13782 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
13783 $as_echo_n "(cached) " >&6
13785 if test -n "$ac_ct_RANLIB"; then
13786 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
13788 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13789 for as_dir in $PATH
13792 test -z "$as_dir" && as_dir=.
13793 for ac_exec_ext in '' $ac_executable_extensions; do
13794 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13795 ac_cv_prog_ac_ct_RANLIB="ranlib"
13796 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13805 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
13806 if test -n "$ac_ct_RANLIB"; then
13807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
13808 $as_echo "$ac_ct_RANLIB" >&6; }
13810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13811 $as_echo "no" >&6; }
13814 if test "x$ac_ct_RANLIB" = x; then
13817 case $cross_compiling:$ac_tool_warned in
13819 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13820 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13821 ac_tool_warned=yes ;;
13823 RANLIB=$ac_ct_RANLIB
13826 RANLIB="$ac_cv_prog_RANLIB"
13839 # Check whether --enable-largefile was given.
13840 if test "${enable_largefile+set}" = set; then :
13841 enableval=$enable_largefile;
13844 if test "$enable_largefile" != no; then
13846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
13847 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
13848 if ${ac_cv_sys_largefile_CC+:} false; then :
13849 $as_echo_n "(cached) " >&6
13851 ac_cv_sys_largefile_CC=no
13852 if test "$GCC" != yes; then
13855 # IRIX 6.2 and later do not support large files by default,
13856 # so use the C compiler's -n32 option if that helps.
13857 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13858 /* end confdefs.h. */
13859 #include <sys/types.h>
13860 /* Check that off_t can represent 2**63 - 1 correctly.
13861 We can't simply define LARGE_OFF_T to be 9223372036854775807,
13862 since some C++ compilers masquerading as C compilers
13863 incorrectly reject 9223372036854775807. */
13864 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
13865 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
13866 && LARGE_OFF_T % 2147483647 == 1)
13876 if ac_fn_c_try_compile "$LINENO"; then :
13879 rm -f core conftest.err conftest.$ac_objext
13881 if ac_fn_c_try_compile "$LINENO"; then :
13882 ac_cv_sys_largefile_CC=' -n32'; break
13884 rm -f core conftest.err conftest.$ac_objext
13888 rm -f conftest.$ac_ext
13891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
13892 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
13893 if test "$ac_cv_sys_largefile_CC" != no; then
13894 CC=$CC$ac_cv_sys_largefile_CC
13897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
13898 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
13899 if ${ac_cv_sys_file_offset_bits+:} false; then :
13900 $as_echo_n "(cached) " >&6
13903 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13904 /* end confdefs.h. */
13905 #include <sys/types.h>
13906 /* Check that off_t can represent 2**63 - 1 correctly.
13907 We can't simply define LARGE_OFF_T to be 9223372036854775807,
13908 since some C++ compilers masquerading as C compilers
13909 incorrectly reject 9223372036854775807. */
13910 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
13911 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
13912 && LARGE_OFF_T % 2147483647 == 1)
13922 if ac_fn_c_try_compile "$LINENO"; then :
13923 ac_cv_sys_file_offset_bits=no; break
13925 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13926 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13927 /* end confdefs.h. */
13928 #define _FILE_OFFSET_BITS 64
13929 #include <sys/types.h>
13930 /* Check that off_t can represent 2**63 - 1 correctly.
13931 We can't simply define LARGE_OFF_T to be 9223372036854775807,
13932 since some C++ compilers masquerading as C compilers
13933 incorrectly reject 9223372036854775807. */
13934 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
13935 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
13936 && LARGE_OFF_T % 2147483647 == 1)
13946 if ac_fn_c_try_compile "$LINENO"; then :
13947 ac_cv_sys_file_offset_bits=64; break
13949 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13950 ac_cv_sys_file_offset_bits=unknown
13954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
13955 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
13956 case $ac_cv_sys_file_offset_bits in #(
13959 cat >>confdefs.h <<_ACEOF
13960 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
13965 if test $ac_cv_sys_file_offset_bits = unknown; then
13966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
13967 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
13968 if ${ac_cv_sys_large_files+:} false; then :
13969 $as_echo_n "(cached) " >&6
13972 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13973 /* end confdefs.h. */
13974 #include <sys/types.h>
13975 /* Check that off_t can represent 2**63 - 1 correctly.
13976 We can't simply define LARGE_OFF_T to be 9223372036854775807,
13977 since some C++ compilers masquerading as C compilers
13978 incorrectly reject 9223372036854775807. */
13979 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
13980 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
13981 && LARGE_OFF_T % 2147483647 == 1)
13991 if ac_fn_c_try_compile "$LINENO"; then :
13992 ac_cv_sys_large_files=no; break
13994 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13995 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13996 /* end confdefs.h. */
13997 #define _LARGE_FILES 1
13998 #include <sys/types.h>
13999 /* Check that off_t can represent 2**63 - 1 correctly.
14000 We can't simply define LARGE_OFF_T to be 9223372036854775807,
14001 since some C++ compilers masquerading as C compilers
14002 incorrectly reject 9223372036854775807. */
14003 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
14004 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
14005 && LARGE_OFF_T % 2147483647 == 1)
14015 if ac_fn_c_try_compile "$LINENO"; then :
14016 ac_cv_sys_large_files=1; break
14018 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14019 ac_cv_sys_large_files=unknown
14023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
14024 $as_echo "$ac_cv_sys_large_files" >&6; }
14025 case $ac_cv_sys_large_files in #(
14028 cat >>confdefs.h <<_ACEOF
14029 #define _LARGE_FILES $ac_cv_sys_large_files
14037 $as_echo "#define _DARWIN_USE_64_BIT_INODE 1" >>confdefs.h
14041 case $ac_cv_prog_cc_stdc in #(
14043 ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;; #(
14045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
14046 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
14047 if ${ac_cv_prog_cc_c99+:} false; then :
14048 $as_echo_n "(cached) " >&6
14050 ac_cv_prog_cc_c99=no
14052 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14053 /* end confdefs.h. */
14054 #include <stdarg.h>
14055 #include <stdbool.h>
14056 #include <stdlib.h>
14060 // Check varargs macros. These examples are taken from C99 6.10.3.5.
14061 #define debug(...) fprintf (stderr, __VA_ARGS__)
14062 #define showlist(...) puts (#__VA_ARGS__)
14063 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
14065 test_varargs_macros (void)
14070 debug ("X = %d\n", x);
14071 showlist (The first, second, and third items.);
14072 report (x>y, "x is %d but y is %d", x, y);
14075 // Check long long types.
14076 #define BIG64 18446744073709551615ull
14077 #define BIG32 4294967295ul
14078 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
14080 your preprocessor is broken;
14084 your preprocessor is broken;
14086 static long long int bignum = -9223372036854775807LL;
14087 static unsigned long long int ubignum = BIG64;
14089 struct incomplete_array
14095 struct named_init {
14097 const wchar_t *name;
14101 typedef const char *ccp;
14104 test_restrict (ccp restrict text)
14106 // See if C++-style comments work.
14107 // Iterate through items via the restricted pointer.
14108 // Also check for declarations in for loops.
14109 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
14114 // Check varargs and va_copy.
14116 test_varargs (const char *format, ...)
14119 va_start (args, format);
14121 va_copy (args_copy, args);
14131 case 's': // string
14132 str = va_arg (args_copy, const char *);
14135 number = va_arg (args_copy, int);
14138 fnumber = va_arg (args_copy, double);
14144 va_end (args_copy);
14153 _Bool success = false;
14156 if (test_restrict ("String literal") == 0)
14158 char *restrict newvar = "Another string";
14161 test_varargs ("s, d' f .", "string", 65, 34.234);
14162 test_varargs_macros ();
14164 // Check flexible array members.
14165 struct incomplete_array *ia =
14166 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
14168 for (int i = 0; i < ia->datasize; ++i)
14169 ia->data[i] = i * 1.234;
14171 // Check named initializers.
14172 struct named_init ni = {
14174 .name = L"Test wide string",
14175 .average = 543.34343,
14180 int dynamic_array[ni.number];
14181 dynamic_array[ni.number - 1] = 543;
14183 // work around unused variable warnings
14184 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
14185 || dynamic_array[ni.number - 1] != 543);
14191 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
14193 CC="$ac_save_CC $ac_arg"
14194 if ac_fn_c_try_compile "$LINENO"; then :
14195 ac_cv_prog_cc_c99=$ac_arg
14197 rm -f core conftest.err conftest.$ac_objext
14198 test "x$ac_cv_prog_cc_c99" != "xno" && break
14200 rm -f conftest.$ac_ext
14205 case "x$ac_cv_prog_cc_c99" in
14207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
14208 $as_echo "none needed" >&6; } ;;
14210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
14211 $as_echo "unsupported" >&6; } ;;
14213 CC="$CC $ac_cv_prog_cc_c99"
14214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
14215 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
14217 if test "x$ac_cv_prog_cc_c99" != xno; then :
14218 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
14220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
14221 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
14222 if ${ac_cv_prog_cc_c89+:} false; then :
14223 $as_echo_n "(cached) " >&6
14225 ac_cv_prog_cc_c89=no
14227 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14228 /* end confdefs.h. */
14229 #include <stdarg.h>
14232 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
14233 struct buf { int x; };
14234 FILE * (*rcsopen) (struct buf *, struct stat *, int);
14235 static char *e (p, i)
14241 static char *f (char * (*g) (char **, int), char **p, ...)
14246 s = g (p, va_arg (v,int));
14251 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
14252 function prototypes and stuff, but not '\xHH' hex character constants.
14253 These don't provoke an error unfortunately, instead are silently treated
14254 as 'x'. The following induces an error, until -std is added to get
14255 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
14256 array size at least. It's necessary to write '\x00'==0 to get something
14257 that's true only with -std. */
14258 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
14260 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
14261 inside strings and character constants. */
14263 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
14265 int test (int i, double x);
14266 struct s1 {int (*f) (int a);};
14267 struct s2 {int (*f) (double a);};
14268 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
14274 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
14279 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
14280 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
14282 CC="$ac_save_CC $ac_arg"
14283 if ac_fn_c_try_compile "$LINENO"; then :
14284 ac_cv_prog_cc_c89=$ac_arg
14286 rm -f core conftest.err conftest.$ac_objext
14287 test "x$ac_cv_prog_cc_c89" != "xno" && break
14289 rm -f conftest.$ac_ext
14294 case "x$ac_cv_prog_cc_c89" in
14296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
14297 $as_echo "none needed" >&6; } ;;
14299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
14300 $as_echo "unsupported" >&6; } ;;
14302 CC="$CC $ac_cv_prog_cc_c89"
14303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
14304 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
14306 if test "x$ac_cv_prog_cc_c89" != xno; then :
14307 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
14309 ac_cv_prog_cc_stdc=no
14315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO Standard C" >&5
14316 $as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; }
14317 if ${ac_cv_prog_cc_stdc+:} false; then :
14318 $as_echo_n "(cached) " >&6
14321 case $ac_cv_prog_cc_stdc in #(
14323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
14324 $as_echo "unsupported" >&6; } ;; #(
14326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
14327 $as_echo "none needed" >&6; } ;; #(
14329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5
14330 $as_echo "$ac_cv_prog_cc_stdc" >&6; } ;;
14338 # Check whether --enable-threads was given.
14339 if test "${enable_threads+set}" = set; then :
14340 enableval=$enable_threads; gl_use_threads=$enableval
14342 if test -n "$gl_use_threads_default"; then
14343 gl_use_threads="$gl_use_threads_default"
14346 osf*) gl_use_threads=no ;;
14349 1.[0-5].*) gl_use_threads=no ;;
14350 *) gl_use_threads=yes ;;
14353 *) gl_use_threads=yes ;;
14359 if test "$gl_use_threads" = yes || test "$gl_use_threads" = posix; then
14360 # For using <pthread.h>:
14363 # On OSF/1, the compiler needs the flag -D_REENTRANT so that it
14364 # groks <pthread.h>. cc also understands the flag -pthread, but
14365 # we don't use it because 1. gcc-2.95 doesn't understand -pthread,
14366 # 2. putting a flag into CPPFLAGS that has an effect on the linker
14367 # causes the AC_LINK_IFELSE test below to succeed unexpectedly,
14368 # leading to wrong values of LIBTHREAD and LTLIBTHREAD.
14369 CPPFLAGS="$CPPFLAGS -D_REENTRANT"
14372 # Some systems optimize for single-threaded programs by default, and
14373 # need special flags to disable these optimizations. For example, the
14374 # definition of 'errno' in <errno.h>.
14376 aix* | freebsd*) CPPFLAGS="$CPPFLAGS -D_THREAD_SAFE" ;;
14377 solaris*) CPPFLAGS="$CPPFLAGS -D_REENTRANT" ;;
14384 # Code from module absolute-header:
14385 # Code from module alloca-opt:
14386 # Code from module dirname:
14387 # Code from module dirname-lgpl:
14388 # Code from module dosname:
14389 # Code from module double-slash-root:
14390 # Code from module environ:
14391 # Code from module errno:
14392 # Code from module error:
14393 # Code from module exitfail:
14394 # Code from module extensions:
14396 # Code from module extern-inline:
14397 # Code from module float:
14398 # Code from module full-write:
14399 # Code from module gettext-h:
14400 # Code from module gettimeofday:
14401 # Code from module gitlog-to-changelog:
14402 # Code from module gnupload:
14403 # Code from module havelib:
14404 # Code from module include_next:
14405 # Code from module intprops:
14406 # Code from module largefile:
14408 # Code from module lib-ignore:
14409 # Code from module lock:
14410 # Code from module malloc-posix:
14411 # Code from module malloca:
14412 # Code from module memchr:
14413 # Code from module msvc-inval:
14414 # Code from module msvc-nothrow:
14415 # Code from module multiarch:
14416 # Code from module raise:
14417 # Code from module read:
14418 # Code from module safe-read:
14419 # Code from module safe-write:
14420 # Code from module setenv:
14421 # Code from module sigaction:
14422 # Code from module signal:
14423 # Code from module signal-h:
14424 # Code from module sigprocmask:
14425 # Code from module size_max:
14426 # Code from module snippet/_Noreturn:
14427 # Code from module snippet/arg-nonnull:
14428 # Code from module snippet/c++defs:
14429 # Code from module snippet/warn-on-use:
14430 # Code from module snprintf:
14431 # Code from module ssize_t:
14432 # Code from module stdarg:
14436 # Code from module stdbool:
14437 # Code from module stddef:
14438 # Code from module stdint:
14439 # Code from module stdio:
14440 # Code from module stdlib:
14441 # Code from module strerror:
14442 # Code from module strerror-override:
14443 # Code from module string:
14444 # Code from module strndup:
14445 # Code from module strnlen:
14446 # Code from module strsignal:
14447 # Code from module sys_select:
14448 # Code from module sys_stat:
14449 # Code from module sys_time:
14450 # Code from module sys_types:
14451 # Code from module sys_wait:
14452 # Code from module threadlib:
14456 # Code from module time:
14457 # Code from module tls:
14458 # Code from module unistd:
14459 # Code from module unsetenv:
14460 # Code from module vasnprintf:
14461 # Code from module vasprintf:
14462 # Code from module verify:
14463 # Code from module waitpid:
14464 # Code from module warnings:
14465 # Code from module wchar:
14466 # Code from module write:
14467 # Code from module xalloc:
14468 # Code from module xalloc-die:
14469 # Code from module xalloc-oversized:
14470 # Code from module xsize:
14471 # Code from module xstrndup:
14472 # Code from module xvasprintf:
14475 ac_cpp='$CPP $CPPFLAGS'
14476 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14477 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14478 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
14480 $as_echo_n "checking how to run the C preprocessor... " >&6; }
14481 # On Suns, sometimes $CPP names a directory.
14482 if test -n "$CPP" && test -d "$CPP"; then
14485 if test -z "$CPP"; then
14486 if ${ac_cv_prog_CPP+:} false; then :
14487 $as_echo_n "(cached) " >&6
14489 # Double quotes because CPP needs to be expanded
14490 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
14492 ac_preproc_ok=false
14493 for ac_c_preproc_warn_flag in '' yes
14495 # Use a header file that comes with gcc, so configuring glibc
14496 # with a fresh cross-compiler works.
14497 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14498 # <limits.h> exists even on freestanding compilers.
14499 # On the NeXT, cc -E runs the code through the compiler's parser,
14500 # not just through cpp. "Syntax error" is here to catch this case.
14501 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14502 /* end confdefs.h. */
14504 # include <limits.h>
14506 # include <assert.h>
14510 if ac_fn_c_try_cpp "$LINENO"; then :
14513 # Broken: fails on valid input.
14516 rm -f conftest.err conftest.i conftest.$ac_ext
14518 # OK, works on sane cases. Now check whether nonexistent headers
14519 # can be detected and how.
14520 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14521 /* end confdefs.h. */
14522 #include <ac_nonexistent.h>
14524 if ac_fn_c_try_cpp "$LINENO"; then :
14525 # Broken: success on invalid input.
14528 # Passes both tests.
14532 rm -f conftest.err conftest.i conftest.$ac_ext
14535 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
14536 rm -f conftest.i conftest.err conftest.$ac_ext
14537 if $ac_preproc_ok; then :
14542 ac_cv_prog_CPP=$CPP
14545 CPP=$ac_cv_prog_CPP
14547 ac_cv_prog_CPP=$CPP
14549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
14550 $as_echo "$CPP" >&6; }
14551 ac_preproc_ok=false
14552 for ac_c_preproc_warn_flag in '' yes
14554 # Use a header file that comes with gcc, so configuring glibc
14555 # with a fresh cross-compiler works.
14556 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14557 # <limits.h> exists even on freestanding compilers.
14558 # On the NeXT, cc -E runs the code through the compiler's parser,
14559 # not just through cpp. "Syntax error" is here to catch this case.
14560 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14561 /* end confdefs.h. */
14563 # include <limits.h>
14565 # include <assert.h>
14569 if ac_fn_c_try_cpp "$LINENO"; then :
14572 # Broken: fails on valid input.
14575 rm -f conftest.err conftest.i conftest.$ac_ext
14577 # OK, works on sane cases. Now check whether nonexistent headers
14578 # can be detected and how.
14579 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14580 /* end confdefs.h. */
14581 #include <ac_nonexistent.h>
14583 if ac_fn_c_try_cpp "$LINENO"; then :
14584 # Broken: success on invalid input.
14587 # Passes both tests.
14591 rm -f conftest.err conftest.i conftest.$ac_ext
14594 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
14595 rm -f conftest.i conftest.err conftest.$ac_ext
14596 if $ac_preproc_ok; then :
14599 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14600 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14601 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
14602 See \`config.log' for more details" "$LINENO" 5; }
14606 ac_cpp='$CPP $CPPFLAGS'
14607 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14608 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14609 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14611 CFLAGS="$CFLAGS -Wall"
14612 if test "$GCC" = yes
14614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Werror -Wunknown-warning-option" >&5
14615 $as_echo_n "checking whether C compiler handles -Werror -Wunknown-warning-option... " >&6; }
14616 if ${gl_cv_warn_c__Werror__Wunknown_warning_option+:} false; then :
14617 $as_echo_n "(cached) " >&6
14620 gl_save_compiler_FLAGS="$CFLAGS"
14621 as_fn_append CFLAGS " $gl_unknown_warnings_are_errors -Werror -Wunknown-warning-option"
14622 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14623 /* end confdefs.h. */
14633 if ac_fn_c_try_link "$LINENO"; then :
14634 gl_cv_warn_c__Werror__Wunknown_warning_option=yes
14636 gl_cv_warn_c__Werror__Wunknown_warning_option=no
14638 rm -f core conftest.err conftest.$ac_objext \
14639 conftest$ac_exeext conftest.$ac_ext
14640 CFLAGS="$gl_save_compiler_FLAGS"
14643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Werror__Wunknown_warning_option" >&5
14644 $as_echo "$gl_cv_warn_c__Werror__Wunknown_warning_option" >&6; }
14645 if test "x$gl_cv_warn_c__Werror__Wunknown_warning_option" = xyes; then :
14646 gl_unknown_warnings_are_errors='-Wunknown-warning-option -Werror'
14648 gl_unknown_warnings_are_errors=
14652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -W" >&5
14653 $as_echo_n "checking whether C compiler handles -W... " >&6; }
14654 if ${gl_cv_warn_c__W+:} false; then :
14655 $as_echo_n "(cached) " >&6
14658 gl_save_compiler_FLAGS="$CFLAGS"
14659 as_fn_append CFLAGS " $gl_unknown_warnings_are_errors -W"
14660 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14661 /* end confdefs.h. */
14671 if ac_fn_c_try_link "$LINENO"; then :
14672 gl_cv_warn_c__W=yes
14676 rm -f core conftest.err conftest.$ac_objext \
14677 conftest$ac_exeext conftest.$ac_ext
14678 CFLAGS="$gl_save_compiler_FLAGS"
14681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__W" >&5
14682 $as_echo "$gl_cv_warn_c__W" >&6; }
14683 if test "x$gl_cv_warn_c__W" = xyes; then :
14684 as_fn_append WARN_CFLAGS " -W"
14689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wpointer-arith" >&5
14690 $as_echo_n "checking whether C compiler handles -Wpointer-arith... " >&6; }
14691 if ${gl_cv_warn_c__Wpointer_arith+:} false; then :
14692 $as_echo_n "(cached) " >&6
14695 gl_save_compiler_FLAGS="$CFLAGS"
14696 as_fn_append CFLAGS " $gl_unknown_warnings_are_errors -Wpointer-arith"
14697 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14698 /* end confdefs.h. */
14708 if ac_fn_c_try_link "$LINENO"; then :
14709 gl_cv_warn_c__Wpointer_arith=yes
14711 gl_cv_warn_c__Wpointer_arith=no
14713 rm -f core conftest.err conftest.$ac_objext \
14714 conftest$ac_exeext conftest.$ac_ext
14715 CFLAGS="$gl_save_compiler_FLAGS"
14718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wpointer_arith" >&5
14719 $as_echo "$gl_cv_warn_c__Wpointer_arith" >&6; }
14720 if test "x$gl_cv_warn_c__Wpointer_arith" = xyes; then :
14721 as_fn_append WARN_CFLAGS " -Wpointer-arith"
14726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wwrite-strings" >&5
14727 $as_echo_n "checking whether C compiler handles -Wwrite-strings... " >&6; }
14728 if ${gl_cv_warn_c__Wwrite_strings+:} false; then :
14729 $as_echo_n "(cached) " >&6
14732 gl_save_compiler_FLAGS="$CFLAGS"
14733 as_fn_append CFLAGS " $gl_unknown_warnings_are_errors -Wwrite-strings"
14734 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14735 /* end confdefs.h. */
14745 if ac_fn_c_try_link "$LINENO"; then :
14746 gl_cv_warn_c__Wwrite_strings=yes
14748 gl_cv_warn_c__Wwrite_strings=no
14750 rm -f core conftest.err conftest.$ac_objext \
14751 conftest$ac_exeext conftest.$ac_ext
14752 CFLAGS="$gl_save_compiler_FLAGS"
14755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wwrite_strings" >&5
14756 $as_echo "$gl_cv_warn_c__Wwrite_strings" >&6; }
14757 if test "x$gl_cv_warn_c__Wwrite_strings" = xyes; then :
14758 as_fn_append WARN_CFLAGS " -Wwrite-strings"
14763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wstrict-prototypes" >&5
14764 $as_echo_n "checking whether C compiler handles -Wstrict-prototypes... " >&6; }
14765 if ${gl_cv_warn_c__Wstrict_prototypes+:} false; then :
14766 $as_echo_n "(cached) " >&6
14769 gl_save_compiler_FLAGS="$CFLAGS"
14770 as_fn_append CFLAGS " $gl_unknown_warnings_are_errors -Wstrict-prototypes"
14771 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14772 /* end confdefs.h. */
14782 if ac_fn_c_try_link "$LINENO"; then :
14783 gl_cv_warn_c__Wstrict_prototypes=yes
14785 gl_cv_warn_c__Wstrict_prototypes=no
14787 rm -f core conftest.err conftest.$ac_objext \
14788 conftest$ac_exeext conftest.$ac_ext
14789 CFLAGS="$gl_save_compiler_FLAGS"
14792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wstrict_prototypes" >&5
14793 $as_echo "$gl_cv_warn_c__Wstrict_prototypes" >&6; }
14794 if test "x$gl_cv_warn_c__Wstrict_prototypes" = xyes; then :
14795 as_fn_append WARN_CFLAGS " -Wstrict-prototypes"
14800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wshadow" >&5
14801 $as_echo_n "checking whether C compiler handles -Wshadow... " >&6; }
14802 if ${gl_cv_warn_c__Wshadow+:} false; then :
14803 $as_echo_n "(cached) " >&6
14806 gl_save_compiler_FLAGS="$CFLAGS"
14807 as_fn_append CFLAGS " $gl_unknown_warnings_are_errors -Wshadow"
14808 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14809 /* end confdefs.h. */
14819 if ac_fn_c_try_link "$LINENO"; then :
14820 gl_cv_warn_c__Wshadow=yes
14822 gl_cv_warn_c__Wshadow=no
14824 rm -f core conftest.err conftest.$ac_objext \
14825 conftest$ac_exeext conftest.$ac_ext
14826 CFLAGS="$gl_save_compiler_FLAGS"
14829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wshadow" >&5
14830 $as_echo "$gl_cv_warn_c__Wshadow" >&6; }
14831 if test "x$gl_cv_warn_c__Wshadow" = xyes; then :
14832 as_fn_append WARN_CFLAGS " -Wshadow"
14837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wformat-security" >&5
14838 $as_echo_n "checking whether C compiler handles -Wformat-security... " >&6; }
14839 if ${gl_cv_warn_c__Wformat_security+:} false; then :
14840 $as_echo_n "(cached) " >&6
14843 gl_save_compiler_FLAGS="$CFLAGS"
14844 as_fn_append CFLAGS " $gl_unknown_warnings_are_errors -Wformat-security"
14845 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14846 /* end confdefs.h. */
14856 if ac_fn_c_try_link "$LINENO"; then :
14857 gl_cv_warn_c__Wformat_security=yes
14859 gl_cv_warn_c__Wformat_security=no
14861 rm -f core conftest.err conftest.$ac_objext \
14862 conftest$ac_exeext conftest.$ac_ext
14863 CFLAGS="$gl_save_compiler_FLAGS"
14866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wformat_security" >&5
14867 $as_echo "$gl_cv_warn_c__Wformat_security" >&6; }
14868 if test "x$gl_cv_warn_c__Wformat_security" = xyes; then :
14869 as_fn_append WARN_CFLAGS " -Wformat-security"
14874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wredundant-decls" >&5
14875 $as_echo_n "checking whether C compiler handles -Wredundant-decls... " >&6; }
14876 if ${gl_cv_warn_c__Wredundant_decls+:} false; then :
14877 $as_echo_n "(cached) " >&6
14880 gl_save_compiler_FLAGS="$CFLAGS"
14881 as_fn_append CFLAGS " $gl_unknown_warnings_are_errors -Wredundant-decls"
14882 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14883 /* end confdefs.h. */
14893 if ac_fn_c_try_link "$LINENO"; then :
14894 gl_cv_warn_c__Wredundant_decls=yes
14896 gl_cv_warn_c__Wredundant_decls=no
14898 rm -f core conftest.err conftest.$ac_objext \
14899 conftest$ac_exeext conftest.$ac_ext
14900 CFLAGS="$gl_save_compiler_FLAGS"
14903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wredundant_decls" >&5
14904 $as_echo "$gl_cv_warn_c__Wredundant_decls" >&6; }
14905 if test "x$gl_cv_warn_c__Wredundant_decls" = xyes; then :
14906 as_fn_append WARN_CFLAGS " -Wredundant-decls"
14911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-missing-field-initializers" >&5
14912 $as_echo_n "checking whether C compiler handles -Wno-missing-field-initializers... " >&6; }
14913 if ${gl_cv_warn_c__Wno_missing_field_initializers+:} false; then :
14914 $as_echo_n "(cached) " >&6
14917 gl_save_compiler_FLAGS="$CFLAGS"
14918 as_fn_append CFLAGS " $gl_unknown_warnings_are_errors -Wmissing-field-initializers"
14919 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14920 /* end confdefs.h. */
14930 if ac_fn_c_try_link "$LINENO"; then :
14931 gl_cv_warn_c__Wno_missing_field_initializers=yes
14933 gl_cv_warn_c__Wno_missing_field_initializers=no
14935 rm -f core conftest.err conftest.$ac_objext \
14936 conftest$ac_exeext conftest.$ac_ext
14937 CFLAGS="$gl_save_compiler_FLAGS"
14940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_missing_field_initializers" >&5
14941 $as_echo "$gl_cv_warn_c__Wno_missing_field_initializers" >&6; }
14942 if test "x$gl_cv_warn_c__Wno_missing_field_initializers" = xyes; then :
14943 as_fn_append WARN_CFLAGS " -Wno-missing-field-initializers"
14948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
14949 $as_echo_n "checking whether ln -s works... " >&6; }
14951 if test "$LN_S" = "ln -s"; then
14952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14953 $as_echo "yes" >&6; }
14955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
14956 $as_echo "no, using $LN_S" >&6; }
14960 cat >>confdefs.h <<_ACEOF
14961 #define SHELL "$SHELL"
14971 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
14972 if test -n "$ac_tool_prefix"; then
14973 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
14974 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
14975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14976 $as_echo_n "checking for $ac_word... " >&6; }
14977 if ${ac_cv_path_PKG_CONFIG+:} false; then :
14978 $as_echo_n "(cached) " >&6
14980 case $PKG_CONFIG in
14982 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
14985 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14986 for as_dir in $PATH
14989 test -z "$as_dir" && as_dir=.
14990 for ac_exec_ext in '' $ac_executable_extensions; do
14991 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14992 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
14993 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15003 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
15004 if test -n "$PKG_CONFIG"; then
15005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
15006 $as_echo "$PKG_CONFIG" >&6; }
15008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15009 $as_echo "no" >&6; }
15014 if test -z "$ac_cv_path_PKG_CONFIG"; then
15015 ac_pt_PKG_CONFIG=$PKG_CONFIG
15016 # Extract the first word of "pkg-config", so it can be a program name with args.
15017 set dummy pkg-config; ac_word=$2
15018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15019 $as_echo_n "checking for $ac_word... " >&6; }
15020 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
15021 $as_echo_n "(cached) " >&6
15023 case $ac_pt_PKG_CONFIG in
15025 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
15028 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15029 for as_dir in $PATH
15032 test -z "$as_dir" && as_dir=.
15033 for ac_exec_ext in '' $ac_executable_extensions; do
15034 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15035 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
15036 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15046 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
15047 if test -n "$ac_pt_PKG_CONFIG"; then
15048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
15049 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
15051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15052 $as_echo "no" >&6; }
15055 if test "x$ac_pt_PKG_CONFIG" = x; then
15058 case $cross_compiling:$ac_tool_warned in
15060 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
15061 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
15062 ac_tool_warned=yes ;;
15064 PKG_CONFIG=$ac_pt_PKG_CONFIG
15067 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
15071 if test -n "$PKG_CONFIG"; then
15072 _pkg_min_version=0.9.0
15073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
15074 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
15075 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
15076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15077 $as_echo "yes" >&6; }
15079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15080 $as_echo "no" >&6; }
15086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CHECK" >&5
15087 $as_echo_n "checking for CHECK... " >&6; }
15089 if test -n "$CHECK_CFLAGS"; then
15090 pkg_cv_CHECK_CFLAGS="$CHECK_CFLAGS"
15091 elif test -n "$PKG_CONFIG"; then
15092 if test -n "$PKG_CONFIG" && \
15093 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"check >= 0.9.4\""; } >&5
15094 ($PKG_CONFIG --exists --print-errors "check >= 0.9.4") 2>&5
15096 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15097 test $ac_status = 0; }; then
15098 pkg_cv_CHECK_CFLAGS=`$PKG_CONFIG --cflags "check >= 0.9.4" 2>/dev/null`
15099 test "x$?" != "x0" && pkg_failed=yes
15106 if test -n "$CHECK_LIBS"; then
15107 pkg_cv_CHECK_LIBS="$CHECK_LIBS"
15108 elif test -n "$PKG_CONFIG"; then
15109 if test -n "$PKG_CONFIG" && \
15110 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"check >= 0.9.4\""; } >&5
15111 ($PKG_CONFIG --exists --print-errors "check >= 0.9.4") 2>&5
15113 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15114 test $ac_status = 0; }; then
15115 pkg_cv_CHECK_LIBS=`$PKG_CONFIG --libs "check >= 0.9.4" 2>/dev/null`
15116 test "x$?" != "x0" && pkg_failed=yes
15126 if test $pkg_failed = yes; then
15127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15128 $as_echo "no" >&6; }
15130 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
15131 _pkg_short_errors_supported=yes
15133 _pkg_short_errors_supported=no
15135 if test $_pkg_short_errors_supported = yes; then
15136 CHECK_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "check >= 0.9.4" 2>&1`
15138 CHECK_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "check >= 0.9.4" 2>&1`
15140 # Put the nasty error message in config.log where it belongs
15141 echo "$CHECK_PKG_ERRORS" >&5
15144 elif test $pkg_failed = untried; then
15145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15146 $as_echo "no" >&6; }
15149 CHECK_CFLAGS=$pkg_cv_CHECK_CFLAGS
15150 CHECK_LIBS=$pkg_cv_CHECK_LIBS
15151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15152 $as_echo "yes" >&6; }
15155 if test "x$run_tests" = xyes; then
15157 RUN_TESTS_FALSE='#'
15164 # Check for various header files and associated libraries.
15165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing strerror" >&5
15166 $as_echo_n "checking for library containing strerror... " >&6; }
15167 if ${ac_cv_search_strerror+:} false; then :
15168 $as_echo_n "(cached) " >&6
15170 ac_func_search_save_LIBS=$LIBS
15171 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15172 /* end confdefs.h. */
15174 /* Override any GCC internal prototype to avoid an error.
15175 Use char because int might match the return type of a GCC
15176 builtin and then its argument prototype would still apply. */
15184 return strerror ();
15189 for ac_lib in '' cposix; do
15190 if test -z "$ac_lib"; then
15191 ac_res="none required"
15194 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
15196 if ac_fn_c_try_link "$LINENO"; then :
15197 ac_cv_search_strerror=$ac_res
15199 rm -f core conftest.err conftest.$ac_objext \
15201 if ${ac_cv_search_strerror+:} false; then :
15205 if ${ac_cv_search_strerror+:} false; then :
15208 ac_cv_search_strerror=no
15210 rm conftest.$ac_ext
15211 LIBS=$ac_func_search_save_LIBS
15213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_strerror" >&5
15214 $as_echo "$ac_cv_search_strerror" >&6; }
15215 ac_res=$ac_cv_search_strerror
15216 if test "$ac_res" != no; then :
15217 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15226 LIBC_FATAL_STDERR_=1
15227 export LIBC_FATAL_STDERR_
15229 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
15230 if test "x$ac_cv_type_size_t" = xyes; then :
15234 cat >>confdefs.h <<_ACEOF
15235 #define size_t unsigned int
15240 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
15241 # for constant arguments. Useless!
15242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
15243 $as_echo_n "checking for working alloca.h... " >&6; }
15244 if ${ac_cv_working_alloca_h+:} false; then :
15245 $as_echo_n "(cached) " >&6
15247 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15248 /* end confdefs.h. */
15249 #include <alloca.h>
15253 char *p = (char *) alloca (2 * sizeof (int));
15259 if ac_fn_c_try_link "$LINENO"; then :
15260 ac_cv_working_alloca_h=yes
15262 ac_cv_working_alloca_h=no
15264 rm -f core conftest.err conftest.$ac_objext \
15265 conftest$ac_exeext conftest.$ac_ext
15267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
15268 $as_echo "$ac_cv_working_alloca_h" >&6; }
15269 if test $ac_cv_working_alloca_h = yes; then
15271 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
15275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
15276 $as_echo_n "checking for alloca... " >&6; }
15277 if ${ac_cv_func_alloca_works+:} false; then :
15278 $as_echo_n "(cached) " >&6
15280 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15281 /* end confdefs.h. */
15283 # define alloca __builtin_alloca
15286 # include <malloc.h>
15287 # define alloca _alloca
15289 # ifdef HAVE_ALLOCA_H
15290 # include <alloca.h>
15295 # ifndef alloca /* predefined by HP cc +Olibcalls */
15296 void *alloca (size_t);
15306 char *p = (char *) alloca (1);
15312 if ac_fn_c_try_link "$LINENO"; then :
15313 ac_cv_func_alloca_works=yes
15315 ac_cv_func_alloca_works=no
15317 rm -f core conftest.err conftest.$ac_objext \
15318 conftest$ac_exeext conftest.$ac_ext
15320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
15321 $as_echo "$ac_cv_func_alloca_works" >&6; }
15323 if test $ac_cv_func_alloca_works = yes; then
15325 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
15328 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
15329 # that cause trouble. Some versions do not even contain alloca or
15330 # contain a buggy version. If you still want to use their alloca,
15331 # use ar to extract alloca.o from them instead of compiling alloca.c.
15337 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
15339 $as_echo "#define C_ALLOCA 1" >>confdefs.h
15342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
15343 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
15344 if ${ac_cv_os_cray+:} false; then :
15345 $as_echo_n "(cached) " >&6
15347 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15348 /* end confdefs.h. */
15349 #if defined CRAY && ! defined CRAY2
15356 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15357 $EGREP "webecray" >/dev/null 2>&1; then :
15365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
15366 $as_echo "$ac_cv_os_cray" >&6; }
15367 if test $ac_cv_os_cray = yes; then
15368 for ac_func in _getb67 GETB67 getb67; do
15369 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15370 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
15371 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
15373 cat >>confdefs.h <<_ACEOF
15374 #define CRAY_STACKSEG_END $ac_func
15383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
15384 $as_echo_n "checking stack direction for C alloca... " >&6; }
15385 if ${ac_cv_c_stack_direction+:} false; then :
15386 $as_echo_n "(cached) " >&6
15388 if test "$cross_compiling" = yes; then :
15389 ac_cv_c_stack_direction=0
15391 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15392 /* end confdefs.h. */
15393 $ac_includes_default
15395 find_stack_direction (int *addr, int depth)
15397 int dir, dummy = 0;
15400 *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
15401 dir = depth ? find_stack_direction (addr, depth - 1) : 0;
15402 return dir + dummy;
15406 main (int argc, char **argv)
15408 return find_stack_direction (0, argc + !argv + 20) < 0;
15411 if ac_fn_c_try_run "$LINENO"; then :
15412 ac_cv_c_stack_direction=1
15414 ac_cv_c_stack_direction=-1
15416 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15417 conftest.$ac_objext conftest.beam conftest.$ac_ext
15421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
15422 $as_echo "$ac_cv_c_stack_direction" >&6; }
15423 cat >>confdefs.h <<_ACEOF
15424 #define STACK_DIRECTION $ac_cv_c_stack_direction
15432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether // is distinct from /" >&5
15433 $as_echo_n "checking whether // is distinct from /... " >&6; }
15434 if ${gl_cv_double_slash_root+:} false; then :
15435 $as_echo_n "(cached) " >&6
15437 if test x"$cross_compiling" = xyes ; then
15438 # When cross-compiling, there is no way to tell whether // is special
15439 # short of a list of hosts. However, the only known hosts to date
15440 # that have a distinct // are Apollo DomainOS (too old to port to),
15441 # Cygwin, and z/OS. If anyone knows of another system for which // has
15442 # special semantics and is distinct from /, please report it to
15443 # <bug-gnulib@gnu.org>.
15445 *-cygwin | i370-ibm-openedition)
15446 gl_cv_double_slash_root=yes ;;
15448 # Be optimistic and assume that / and // are the same when we
15450 gl_cv_double_slash_root='unknown, assuming no' ;;
15453 set x `ls -di / // 2>/dev/null`
15454 if test "$2" = "$4" && wc //dev/null >/dev/null 2>&1; then
15455 gl_cv_double_slash_root=no
15457 gl_cv_double_slash_root=yes
15461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_double_slash_root" >&5
15462 $as_echo "$gl_cv_double_slash_root" >&6; }
15463 if test "$gl_cv_double_slash_root" = yes; then
15465 $as_echo "#define DOUBLE_SLASH_IS_DISTINCT_ROOT 1" >>confdefs.h
15481 GNULIB_EUIDACCESS=0;
15482 GNULIB_FACCESSAT=0;
15485 GNULIB_FDATASYNC=0;
15487 GNULIB_FTRUNCATE=0;
15489 GNULIB_GETDOMAINNAME=0;
15490 GNULIB_GETDTABLESIZE=0;
15491 GNULIB_GETGROUPS=0;
15492 GNULIB_GETHOSTNAME=0;
15494 GNULIB_GETLOGIN_R=0;
15495 GNULIB_GETPAGESIZE=0;
15496 GNULIB_GETUSERSHELL=0;
15497 GNULIB_GROUP_MEMBER=0;
15509 GNULIB_READLINKAT=0;
15511 GNULIB_SETHOSTNAME=0;
15514 GNULIB_SYMLINKAT=0;
15515 GNULIB_TTYNAME_R=0;
15516 GNULIB_UNISTD_H_NONBLOCKING=0;
15517 GNULIB_UNISTD_H_SIGPIPE=0;
15532 HAVE_GETDTABLESIZE=1;
15534 HAVE_GETHOSTNAME=1;
15536 HAVE_GETPAGESIZE=1;
15537 HAVE_GROUP_MEMBER=1;
15547 HAVE_SETHOSTNAME=1;
15553 HAVE_DECL_ENVIRON=1;
15554 HAVE_DECL_FCHDIR=1;
15555 HAVE_DECL_FDATASYNC=1;
15556 HAVE_DECL_GETDOMAINNAME=1;
15557 HAVE_DECL_GETLOGIN_R=1;
15558 HAVE_DECL_GETPAGESIZE=1;
15559 HAVE_DECL_GETUSERSHELL=1;
15560 HAVE_DECL_SETHOSTNAME=1;
15561 HAVE_DECL_TTYNAME_R=1;
15563 HAVE_SYS_PARAM_H=0;
15568 REPLACE_FCHOWNAT=0;
15569 REPLACE_FTRUNCATE=0;
15571 REPLACE_GETDOMAINNAME=0;
15572 REPLACE_GETDTABLESIZE=0;
15573 REPLACE_GETLOGIN_R=0;
15574 REPLACE_GETGROUPS=0;
15575 REPLACE_GETPAGESIZE=0;
15584 REPLACE_READLINK=0;
15588 REPLACE_TTYNAME_R=0;
15590 REPLACE_UNLINKAT=0;
15593 UNISTD_H_HAVE_WINSOCK2_H=0;
15594 UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS=0;
15601 for ac_header in $gl_header_list
15603 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
15604 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
15605 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
15606 cat >>confdefs.h <<_ACEOF
15607 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
15631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if environ is properly declared" >&5
15632 $as_echo_n "checking if environ is properly declared... " >&6; }
15633 if ${gt_cv_var_environ_declaration+:} false; then :
15634 $as_echo_n "(cached) " >&6
15637 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15638 /* end confdefs.h. */
15640 #include <unistd.h>
15642 /* mingw, BeOS, Haiku declare environ in <stdlib.h>, not in <unistd.h>. */
15643 #include <stdlib.h>
15645 extern struct { int foo; } environ;
15654 if ac_fn_c_try_compile "$LINENO"; then :
15655 gt_cv_var_environ_declaration=no
15657 gt_cv_var_environ_declaration=yes
15659 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_var_environ_declaration" >&5
15663 $as_echo "$gt_cv_var_environ_declaration" >&6; }
15664 if test $gt_cv_var_environ_declaration = yes; then
15666 $as_echo "#define HAVE_ENVIRON_DECL 1" >>confdefs.h
15671 if test $gt_cv_var_environ_declaration != yes; then
15672 HAVE_DECL_ENVIRON=0
15677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the preprocessor supports include_next" >&5
15678 $as_echo_n "checking whether the preprocessor supports include_next... " >&6; }
15679 if ${gl_cv_have_include_next+:} false; then :
15680 $as_echo_n "(cached) " >&6
15682 rm -rf conftestd1a conftestd1b conftestd2
15683 mkdir conftestd1a conftestd1b conftestd2
15684 cat <<EOF > conftestd1a/conftest.h
15685 #define DEFINED_IN_CONFTESTD1
15686 #include_next <conftest.h>
15687 #ifdef DEFINED_IN_CONFTESTD2
15690 #error "include_next doesn't work"
15693 cat <<EOF > conftestd1b/conftest.h
15694 #define DEFINED_IN_CONFTESTD1
15696 #include_next <conftest.h>
15697 #ifdef DEFINED_IN_CONFTESTD2
15700 #error "include_next doesn't work"
15703 cat <<EOF > conftestd2/conftest.h
15704 #ifndef DEFINED_IN_CONFTESTD1
15705 #error "include_next test doesn't work"
15707 #define DEFINED_IN_CONFTESTD2
15709 gl_save_CPPFLAGS="$CPPFLAGS"
15710 CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1b -Iconftestd2"
15711 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15712 /* end confdefs.h. */
15713 #include <conftest.h>
15715 if ac_fn_c_try_compile "$LINENO"; then :
15716 gl_cv_have_include_next=yes
15718 CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1a -Iconftestd2"
15719 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15720 /* end confdefs.h. */
15721 #include <conftest.h>
15723 if ac_fn_c_try_compile "$LINENO"; then :
15724 gl_cv_have_include_next=buggy
15726 gl_cv_have_include_next=no
15728 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15731 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15732 CPPFLAGS="$gl_save_CPPFLAGS"
15733 rm -rf conftestd1a conftestd1b conftestd2
15736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_have_include_next" >&5
15737 $as_echo "$gl_cv_have_include_next" >&6; }
15738 PRAGMA_SYSTEM_HEADER=
15739 if test $gl_cv_have_include_next = yes; then
15740 INCLUDE_NEXT=include_next
15741 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next
15742 if test -n "$GCC"; then
15743 PRAGMA_SYSTEM_HEADER='#pragma GCC system_header'
15746 if test $gl_cv_have_include_next = buggy; then
15747 INCLUDE_NEXT=include
15748 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next
15750 INCLUDE_NEXT=include
15751 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include
15757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system header files limit the line length" >&5
15758 $as_echo_n "checking whether system header files limit the line length... " >&6; }
15759 if ${gl_cv_pragma_columns+:} false; then :
15760 $as_echo_n "(cached) " >&6
15762 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15763 /* end confdefs.h. */
15770 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15771 $EGREP "choke me" >/dev/null 2>&1; then :
15772 gl_cv_pragma_columns=yes
15774 gl_cv_pragma_columns=no
15780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_pragma_columns" >&5
15781 $as_echo "$gl_cv_pragma_columns" >&6; }
15782 if test $gl_cv_pragma_columns = yes; then
15783 PRAGMA_COLUMNS="#pragma COLUMNS 10000"
15791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for complete errno.h" >&5
15792 $as_echo_n "checking for complete errno.h... " >&6; }
15793 if ${gl_cv_header_errno_h_complete+:} false; then :
15794 $as_echo_n "(cached) " >&6
15797 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15798 /* end confdefs.h. */
15801 #if !defined ETXTBSY
15804 #if !defined ENOMSG
15810 #if !defined ENOLINK
15813 #if !defined EPROTO
15816 #if !defined EMULTIHOP
15819 #if !defined EBADMSG
15822 #if !defined EOVERFLOW
15825 #if !defined ENOTSUP
15828 #if !defined ENETRESET
15831 #if !defined ECONNABORTED
15834 #if !defined ESTALE
15837 #if !defined EDQUOT
15840 #if !defined ECANCELED
15843 #if !defined EOWNERDEAD
15846 #if !defined ENOTRECOVERABLE
15849 #if !defined EILSEQ
15854 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15855 $EGREP "booboo" >/dev/null 2>&1; then :
15856 gl_cv_header_errno_h_complete=no
15858 gl_cv_header_errno_h_complete=yes
15864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_complete" >&5
15865 $as_echo "$gl_cv_header_errno_h_complete" >&6; }
15866 if test $gl_cv_header_errno_h_complete = yes; then
15877 if test $gl_cv_have_include_next = yes; then
15878 gl_cv_next_errno_h='<'errno.h'>'
15880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <errno.h>" >&5
15881 $as_echo_n "checking absolute name of <errno.h>... " >&6; }
15882 if ${gl_cv_next_errno_h+:} false; then :
15883 $as_echo_n "(cached) " >&6
15888 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15889 /* end confdefs.h. */
15893 aix*) gl_absname_cpp="$ac_cpp -C" ;;
15894 *) gl_absname_cpp="$ac_cpp" ;;
15899 gl_dirsep_regex='[/\\]'
15902 gl_dirsep_regex='\/'
15905 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
15906 gl_header_literal_regex=`echo 'errno.h' \
15907 | sed -e "$gl_make_literal_regex_sed"`
15908 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
15909 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
15915 gl_cv_absolute_errno_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
15916 sed -n "$gl_absolute_header_sed"`
15918 gl_header=$gl_cv_absolute_errno_h
15919 gl_cv_next_errno_h='"'$gl_header'"'
15923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_errno_h" >&5
15924 $as_echo "$gl_cv_next_errno_h" >&6; }
15926 NEXT_ERRNO_H=$gl_cv_next_errno_h
15928 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
15929 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
15930 gl_next_as_first_directive='<'errno.h'>'
15932 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
15933 gl_next_as_first_directive=$gl_cv_next_errno_h
15935 NEXT_AS_FIRST_DIRECTIVE_ERRNO_H=$gl_next_as_first_directive
15943 if test -n "$ERRNO_H"; then
15944 GL_GENERATE_ERRNO_H_TRUE=
15945 GL_GENERATE_ERRNO_H_FALSE='#'
15947 GL_GENERATE_ERRNO_H_TRUE='#'
15948 GL_GENERATE_ERRNO_H_FALSE=
15952 if test -n "$ERRNO_H"; then
15953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EMULTIHOP value" >&5
15954 $as_echo_n "checking for EMULTIHOP value... " >&6; }
15955 if ${gl_cv_header_errno_h_EMULTIHOP+:} false; then :
15956 $as_echo_n "(cached) " >&6
15959 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15960 /* end confdefs.h. */
15968 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15969 $EGREP "yes" >/dev/null 2>&1; then :
15970 gl_cv_header_errno_h_EMULTIHOP=yes
15972 gl_cv_header_errno_h_EMULTIHOP=no
15976 if test $gl_cv_header_errno_h_EMULTIHOP = no; then
15977 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15978 /* end confdefs.h. */
15980 #define _XOPEN_SOURCE_EXTENDED 1
15987 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15988 $EGREP "yes" >/dev/null 2>&1; then :
15989 gl_cv_header_errno_h_EMULTIHOP=hidden
15993 if test $gl_cv_header_errno_h_EMULTIHOP = hidden; then
15994 if ac_fn_c_compute_int "$LINENO" "EMULTIHOP" "gl_cv_header_errno_h_EMULTIHOP" "
15995 #define _XOPEN_SOURCE_EXTENDED 1
15997 /* The following two lines are a workaround against an autoconf-2.52 bug. */
15999 #include <stdlib.h>
16008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_EMULTIHOP" >&5
16009 $as_echo "$gl_cv_header_errno_h_EMULTIHOP" >&6; }
16010 case $gl_cv_header_errno_h_EMULTIHOP in
16012 EMULTIHOP_HIDDEN=0; EMULTIHOP_VALUE=
16015 EMULTIHOP_HIDDEN=1; EMULTIHOP_VALUE="$gl_cv_header_errno_h_EMULTIHOP"
16023 if test -n "$ERRNO_H"; then
16024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ENOLINK value" >&5
16025 $as_echo_n "checking for ENOLINK value... " >&6; }
16026 if ${gl_cv_header_errno_h_ENOLINK+:} false; then :
16027 $as_echo_n "(cached) " >&6
16030 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16031 /* end confdefs.h. */
16039 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16040 $EGREP "yes" >/dev/null 2>&1; then :
16041 gl_cv_header_errno_h_ENOLINK=yes
16043 gl_cv_header_errno_h_ENOLINK=no
16047 if test $gl_cv_header_errno_h_ENOLINK = no; then
16048 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16049 /* end confdefs.h. */
16051 #define _XOPEN_SOURCE_EXTENDED 1
16058 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16059 $EGREP "yes" >/dev/null 2>&1; then :
16060 gl_cv_header_errno_h_ENOLINK=hidden
16064 if test $gl_cv_header_errno_h_ENOLINK = hidden; then
16065 if ac_fn_c_compute_int "$LINENO" "ENOLINK" "gl_cv_header_errno_h_ENOLINK" "
16066 #define _XOPEN_SOURCE_EXTENDED 1
16068 /* The following two lines are a workaround against an autoconf-2.52 bug. */
16070 #include <stdlib.h>
16079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_ENOLINK" >&5
16080 $as_echo "$gl_cv_header_errno_h_ENOLINK" >&6; }
16081 case $gl_cv_header_errno_h_ENOLINK in
16083 ENOLINK_HIDDEN=0; ENOLINK_VALUE=
16086 ENOLINK_HIDDEN=1; ENOLINK_VALUE="$gl_cv_header_errno_h_ENOLINK"
16094 if test -n "$ERRNO_H"; then
16095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EOVERFLOW value" >&5
16096 $as_echo_n "checking for EOVERFLOW value... " >&6; }
16097 if ${gl_cv_header_errno_h_EOVERFLOW+:} false; then :
16098 $as_echo_n "(cached) " >&6
16101 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16102 /* end confdefs.h. */
16110 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16111 $EGREP "yes" >/dev/null 2>&1; then :
16112 gl_cv_header_errno_h_EOVERFLOW=yes
16114 gl_cv_header_errno_h_EOVERFLOW=no
16118 if test $gl_cv_header_errno_h_EOVERFLOW = no; then
16119 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16120 /* end confdefs.h. */
16122 #define _XOPEN_SOURCE_EXTENDED 1
16129 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16130 $EGREP "yes" >/dev/null 2>&1; then :
16131 gl_cv_header_errno_h_EOVERFLOW=hidden
16135 if test $gl_cv_header_errno_h_EOVERFLOW = hidden; then
16136 if ac_fn_c_compute_int "$LINENO" "EOVERFLOW" "gl_cv_header_errno_h_EOVERFLOW" "
16137 #define _XOPEN_SOURCE_EXTENDED 1
16139 /* The following two lines are a workaround against an autoconf-2.52 bug. */
16141 #include <stdlib.h>
16150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_EOVERFLOW" >&5
16151 $as_echo "$gl_cv_header_errno_h_EOVERFLOW" >&6; }
16152 case $gl_cv_header_errno_h_EOVERFLOW in
16154 EOVERFLOW_HIDDEN=0; EOVERFLOW_VALUE=
16157 EOVERFLOW_HIDDEN=1; EOVERFLOW_VALUE="$gl_cv_header_errno_h_EOVERFLOW"
16165 ac_fn_c_check_decl "$LINENO" "strerror_r" "ac_cv_have_decl_strerror_r" "$ac_includes_default"
16166 if test "x$ac_cv_have_decl_strerror_r" = xyes; then :
16172 cat >>confdefs.h <<_ACEOF
16173 #define HAVE_DECL_STRERROR_R $ac_have_decl
16176 for ac_func in strerror_r
16178 ac_fn_c_check_func "$LINENO" "strerror_r" "ac_cv_func_strerror_r"
16179 if test "x$ac_cv_func_strerror_r" = xyes; then :
16180 cat >>confdefs.h <<_ACEOF
16181 #define HAVE_STRERROR_R 1
16187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strerror_r returns char *" >&5
16188 $as_echo_n "checking whether strerror_r returns char *... " >&6; }
16189 if ${ac_cv_func_strerror_r_char_p+:} false; then :
16190 $as_echo_n "(cached) " >&6
16193 ac_cv_func_strerror_r_char_p=no
16194 if test $ac_cv_have_decl_strerror_r = yes; then
16195 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16196 /* end confdefs.h. */
16197 $ac_includes_default
16203 char x = *strerror_r (0, buf, sizeof buf);
16204 char *p = strerror_r (0, buf, sizeof buf);
16211 if ac_fn_c_try_compile "$LINENO"; then :
16212 ac_cv_func_strerror_r_char_p=yes
16214 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16216 # strerror_r is not declared. Choose between
16217 # systems that have relatively inaccessible declarations for the
16218 # function. BeOS and DEC UNIX 4.0 fall in this category, but the
16219 # former has a strerror_r that returns char*, while the latter
16220 # has a strerror_r that returns `int'.
16221 # This test should segfault on the DEC system.
16222 if test "$cross_compiling" = yes; then :
16225 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16226 /* end confdefs.h. */
16227 $ac_includes_default
16228 extern char *strerror_r ();
16233 char x = *strerror_r (0, buf, sizeof buf);
16234 return ! isalpha (x);
16239 if ac_fn_c_try_run "$LINENO"; then :
16240 ac_cv_func_strerror_r_char_p=yes
16242 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16243 conftest.$ac_objext conftest.beam conftest.$ac_ext
16249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strerror_r_char_p" >&5
16250 $as_echo "$ac_cv_func_strerror_r_char_p" >&6; }
16251 if test $ac_cv_func_strerror_r_char_p = yes; then
16253 $as_echo "#define STRERROR_R_CHAR_P 1" >>confdefs.h
16258 XGETTEXT_EXTRA_OPTIONS=
16263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
16264 $as_echo_n "checking for C/C++ restrict keyword... " >&6; }
16265 if ${ac_cv_c_restrict+:} false; then :
16266 $as_echo_n "(cached) " >&6
16268 ac_cv_c_restrict=no
16269 # The order here caters to the fact that C++ does not require restrict.
16270 for ac_kw in __restrict __restrict__ _Restrict restrict; do
16271 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16272 /* end confdefs.h. */
16273 typedef int * int_ptr;
16274 int foo (int_ptr $ac_kw ip) {
16281 int * $ac_kw t = s;
16288 if ac_fn_c_try_compile "$LINENO"; then :
16289 ac_cv_c_restrict=$ac_kw
16291 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16292 test "$ac_cv_c_restrict" != no && break
16296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
16297 $as_echo "$ac_cv_c_restrict" >&6; }
16299 case $ac_cv_c_restrict in
16301 no) $as_echo "#define restrict /**/" >>confdefs.h
16303 *) cat >>confdefs.h <<_ACEOF
16304 #define restrict $ac_cv_c_restrict
16310 GNULIB_GETTIMEOFDAY=0;
16311 HAVE_GETTIMEOFDAY=1;
16312 HAVE_STRUCT_TIMEVAL=1;
16314 REPLACE_GETTIMEOFDAY=0;
16315 REPLACE_STRUCT_TIMEVAL=0;
16352 if test $gl_cv_have_include_next = yes; then
16353 gl_cv_next_sys_time_h='<'sys/time.h'>'
16355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/time.h>" >&5
16356 $as_echo_n "checking absolute name of <sys/time.h>... " >&6; }
16357 if ${gl_cv_next_sys_time_h+:} false; then :
16358 $as_echo_n "(cached) " >&6
16361 if test $ac_cv_header_sys_time_h = yes; then
16366 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16367 /* end confdefs.h. */
16368 #include <sys/time.h>
16371 aix*) gl_absname_cpp="$ac_cpp -C" ;;
16372 *) gl_absname_cpp="$ac_cpp" ;;
16377 gl_dirsep_regex='[/\\]'
16380 gl_dirsep_regex='\/'
16383 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
16384 gl_header_literal_regex=`echo 'sys/time.h' \
16385 | sed -e "$gl_make_literal_regex_sed"`
16386 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
16387 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
16393 gl_cv_absolute_sys_time_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
16394 sed -n "$gl_absolute_header_sed"`
16396 gl_header=$gl_cv_absolute_sys_time_h
16397 gl_cv_next_sys_time_h='"'$gl_header'"'
16399 gl_cv_next_sys_time_h='<'sys/time.h'>'
16404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_time_h" >&5
16405 $as_echo "$gl_cv_next_sys_time_h" >&6; }
16407 NEXT_SYS_TIME_H=$gl_cv_next_sys_time_h
16409 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
16410 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
16411 gl_next_as_first_directive='<'sys/time.h'>'
16413 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
16414 gl_next_as_first_directive=$gl_cv_next_sys_time_h
16416 NEXT_AS_FIRST_DIRECTIVE_SYS_TIME_H=$gl_next_as_first_directive
16422 if test $ac_cv_header_sys_time_h != yes; then
16436 if test $ac_cv_header_sys_socket_h != yes; then
16437 for ac_header in winsock2.h
16439 ac_fn_c_check_header_mongrel "$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
16440 if test "x$ac_cv_header_winsock2_h" = xyes; then :
16441 cat >>confdefs.h <<_ACEOF
16442 #define HAVE_WINSOCK2_H 1
16450 if test "$ac_cv_header_winsock2_h" = yes; then
16452 UNISTD_H_HAVE_WINSOCK2_H=1
16453 SYS_IOCTL_H_HAVE_WINSOCK2_H=1
16459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timeval" >&5
16460 $as_echo_n "checking for struct timeval... " >&6; }
16461 if ${gl_cv_sys_struct_timeval+:} false; then :
16462 $as_echo_n "(cached) " >&6
16464 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16465 /* end confdefs.h. */
16466 #if HAVE_SYS_TIME_H
16467 #include <sys/time.h>
16470 #if HAVE_WINSOCK2_H
16471 # include <winsock2.h>
16477 static struct timeval x; x.tv_sec = x.tv_usec;
16482 if ac_fn_c_try_compile "$LINENO"; then :
16483 gl_cv_sys_struct_timeval=yes
16485 gl_cv_sys_struct_timeval=no
16487 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timeval" >&5
16491 $as_echo "$gl_cv_sys_struct_timeval" >&6; }
16492 if test $gl_cv_sys_struct_timeval != yes; then
16493 HAVE_STRUCT_TIMEVAL=0
16495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wide-enough struct timeval.tv_sec member" >&5
16496 $as_echo_n "checking for wide-enough struct timeval.tv_sec member... " >&6; }
16497 if ${gl_cv_sys_struct_timeval_tv_sec+:} false; then :
16498 $as_echo_n "(cached) " >&6
16500 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16501 /* end confdefs.h. */
16502 #if HAVE_SYS_TIME_H
16503 #include <sys/time.h>
16506 #if HAVE_WINSOCK2_H
16507 # include <winsock2.h>
16513 static struct timeval x;
16514 typedef int verify_tv_sec_type[
16515 sizeof (time_t) <= sizeof x.tv_sec ? 1 : -1
16522 if ac_fn_c_try_compile "$LINENO"; then :
16523 gl_cv_sys_struct_timeval_tv_sec=yes
16525 gl_cv_sys_struct_timeval_tv_sec=no
16527 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timeval_tv_sec" >&5
16531 $as_echo "$gl_cv_sys_struct_timeval_tv_sec" >&6; }
16532 if test $gl_cv_sys_struct_timeval_tv_sec != yes; then
16533 REPLACE_STRUCT_TIMEVAL=1
16538 for gl_func in gettimeofday; do
16539 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
16540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
16541 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
16542 if eval \${$as_gl_Symbol+:} false; then :
16543 $as_echo_n "(cached) " >&6
16545 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16546 /* end confdefs.h. */
16548 #if HAVE_SYS_TIME_H
16549 # include <sys/time.h>
16562 if ac_fn_c_try_compile "$LINENO"; then :
16563 eval "$as_gl_Symbol=yes"
16565 eval "$as_gl_Symbol=no"
16567 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16569 eval ac_res=\$$as_gl_Symbol
16570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
16571 $as_echo "$ac_res" >&6; }
16572 if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
16573 cat >>confdefs.h <<_ACEOF
16574 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
16577 eval ac_cv_have_decl_$gl_func=yes
16589 for ac_func in $gl_func_list
16591 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16592 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
16593 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
16594 cat >>confdefs.h <<_ACEOF
16595 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit off_t" >&5
16610 $as_echo_n "checking for 64-bit off_t... " >&6; }
16611 if ${gl_cv_type_off_t_64+:} false; then :
16612 $as_echo_n "(cached) " >&6
16614 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16615 /* end confdefs.h. */
16616 #include <sys/types.h>
16617 int verify_off_t_size[sizeof (off_t) >= 8 ? 1 : -1];
16627 if ac_fn_c_try_compile "$LINENO"; then :
16628 gl_cv_type_off_t_64=yes
16630 gl_cv_type_off_t_64=no
16632 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_type_off_t_64" >&5
16636 $as_echo "$gl_cv_type_off_t_64" >&6; }
16637 if test $gl_cv_type_off_t_64 = no; then
16638 WINDOWS_64_BIT_OFF_T=1
16640 WINDOWS_64_BIT_OFF_T=0
16642 WINDOWS_64_BIT_ST_SIZE=1
16645 WINDOWS_64_BIT_OFF_T=0
16646 WINDOWS_64_BIT_ST_SIZE=0
16651 if test "X$prefix" = "XNONE"; then
16652 acl_final_prefix="$ac_default_prefix"
16654 acl_final_prefix="$prefix"
16656 if test "X$exec_prefix" = "XNONE"; then
16657 acl_final_exec_prefix='${prefix}'
16659 acl_final_exec_prefix="$exec_prefix"
16661 acl_save_prefix="$prefix"
16662 prefix="$acl_final_prefix"
16663 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
16664 prefix="$acl_save_prefix"
16668 # Check whether --with-gnu-ld was given.
16669 if test "${with_gnu_ld+set}" = set; then :
16670 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
16675 # Prepare PATH_SEPARATOR.
16676 # The user is always right.
16677 if test "${PATH_SEPARATOR+set}" != set; then
16678 # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
16679 # contains only /bin. Note that ksh looks also at the FPATH variable,
16680 # so we have to set that as well for the test.
16682 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
16683 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
16684 || PATH_SEPARATOR=';'
16689 if test "$GCC" = yes; then
16690 # Check if gcc -print-prog-name=ld gives a path.
16691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
16692 $as_echo_n "checking for ld used by $CC... " >&6; }
16695 # gcc leaves a trailing carriage return which upsets mingw
16696 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
16698 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
16701 # Accept absolute paths.
16703 re_direlt='/[^/][^/]*/\.\./'
16704 # Canonicalize the pathname of ld
16705 ac_prog=`echo "$ac_prog"| sed 's%\\\\%/%g'`
16706 while echo "$ac_prog" | grep "$re_direlt" > /dev/null 2>&1; do
16707 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
16709 test -z "$LD" && LD="$ac_prog"
16712 # If it fails, then pretend we aren't using GCC.
16716 # If it is relative, then search for the first ld in PATH.
16717 with_gnu_ld=unknown
16720 elif test "$with_gnu_ld" = yes; then
16721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
16722 $as_echo_n "checking for GNU ld... " >&6; }
16724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
16725 $as_echo_n "checking for non-GNU ld... " >&6; }
16727 if ${acl_cv_path_LD+:} false; then :
16728 $as_echo_n "(cached) " >&6
16730 if test -z "$LD"; then
16731 acl_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
16732 for ac_dir in $PATH; do
16733 IFS="$acl_save_ifs"
16734 test -z "$ac_dir" && ac_dir=.
16735 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
16736 acl_cv_path_LD="$ac_dir/$ac_prog"
16737 # Check to see if the program is GNU ld. I'd rather use --version,
16738 # but apparently some variants of GNU ld only accept -v.
16739 # Break only if it was the GNU/non-GNU ld that we prefer.
16740 case `"$acl_cv_path_LD" -v 2>&1 </dev/null` in
16741 *GNU* | *'with BFD'*)
16742 test "$with_gnu_ld" != no && break
16745 test "$with_gnu_ld" != yes && break
16750 IFS="$acl_save_ifs"
16752 acl_cv_path_LD="$LD" # Let the user override the test with a path.
16756 LD="$acl_cv_path_LD"
16757 if test -n "$LD"; then
16758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
16759 $as_echo "$LD" >&6; }
16761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16762 $as_echo "no" >&6; }
16764 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
16765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
16766 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
16767 if ${acl_cv_prog_gnu_ld+:} false; then :
16768 $as_echo_n "(cached) " >&6
16770 # I'd rather use --version here, but apparently some GNU lds only accept -v.
16771 case `$LD -v 2>&1 </dev/null` in
16772 *GNU* | *'with BFD'*)
16773 acl_cv_prog_gnu_ld=yes
16776 acl_cv_prog_gnu_ld=no
16780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
16781 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
16782 with_gnu_ld=$acl_cv_prog_gnu_ld
16787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
16788 $as_echo_n "checking for shared library run path origin... " >&6; }
16789 if ${acl_cv_rpath+:} false; then :
16790 $as_echo_n "(cached) " >&6
16793 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
16794 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
16796 rm -f ./conftest.sh
16800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
16801 $as_echo "$acl_cv_rpath" >&6; }
16803 acl_libext="$acl_cv_libext"
16804 acl_shlibext="$acl_cv_shlibext"
16805 acl_libname_spec="$acl_cv_libname_spec"
16806 acl_library_names_spec="$acl_cv_library_names_spec"
16807 acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
16808 acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
16809 acl_hardcode_direct="$acl_cv_hardcode_direct"
16810 acl_hardcode_minus_L="$acl_cv_hardcode_minus_L"
16811 # Check whether --enable-rpath was given.
16812 if test "${enable_rpath+set}" = set; then :
16813 enableval=$enable_rpath; :
16825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit host" >&5
16826 $as_echo_n "checking for 64-bit host... " >&6; }
16827 if ${gl_cv_solaris_64bit+:} false; then :
16828 $as_echo_n "(cached) " >&6
16830 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16831 /* end confdefs.h. */
16838 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16839 $EGREP "sixtyfour bits" >/dev/null 2>&1; then :
16840 gl_cv_solaris_64bit=yes
16842 gl_cv_solaris_64bit=no
16848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_solaris_64bit" >&5
16849 $as_echo "$gl_cv_solaris_64bit" >&6; }
16850 if test $gl_cv_solaris_64bit = yes; then
16851 acl_libdirstem=lib/64
16852 case "$host_cpu" in
16853 sparc*) acl_libdirstem2=lib/sparcv9 ;;
16854 i*86 | x86_64) acl_libdirstem2=lib/amd64 ;;
16859 searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
16860 if test -n "$searchpath"; then
16861 acl_save_IFS="${IFS= }"; IFS=":"
16862 for searchdir in $searchpath; do
16863 if test -d "$searchdir"; then
16864 case "$searchdir" in
16865 */lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
16867 # Better ignore directories of this form. They are misleading.
16869 *) searchdir=`cd "$searchdir" && pwd`
16870 case "$searchdir" in
16871 */lib64 ) acl_libdirstem=lib64 ;;
16876 IFS="$acl_save_IFS"
16880 test -n "$acl_libdirstem2" || acl_libdirstem2="$acl_libdirstem"
16884 gl_threads_api=none
16889 if test "$gl_use_threads" != no; then
16890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether imported symbols can be declared weak" >&5
16891 $as_echo_n "checking whether imported symbols can be declared weak... " >&6; }
16892 if ${gl_cv_have_weak+:} false; then :
16893 $as_echo_n "(cached) " >&6
16896 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16897 /* end confdefs.h. */
16898 extern void xyzzy ();
16908 if ac_fn_c_try_link "$LINENO"; then :
16909 gl_cv_have_weak=maybe
16911 rm -f core conftest.err conftest.$ac_objext \
16912 conftest$ac_exeext conftest.$ac_ext
16913 if test $gl_cv_have_weak = maybe; then
16914 if test "$cross_compiling" = yes; then :
16915 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16916 /* end confdefs.h. */
16918 Extensible Linking Format
16922 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16923 $EGREP "Extensible Linking Format" >/dev/null 2>&1; then :
16924 gl_cv_have_weak="guessing yes"
16926 gl_cv_have_weak="guessing no"
16932 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16933 /* end confdefs.h. */
16939 return (fputs == NULL);
16942 if ac_fn_c_try_run "$LINENO"; then :
16943 gl_cv_have_weak=yes
16947 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16948 conftest.$ac_objext conftest.beam conftest.$ac_ext
16954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_have_weak" >&5
16955 $as_echo "$gl_cv_have_weak" >&6; }
16956 if test "$gl_use_threads" = yes || test "$gl_use_threads" = posix; then
16957 # On OSF/1, the compiler needs the flag -pthread or -D_REENTRANT so that
16958 # it groks <pthread.h>. It's added above, in gl_THREADLIB_EARLY_BODY.
16959 ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
16960 if test "x$ac_cv_header_pthread_h" = xyes; then :
16961 gl_have_pthread_h=yes
16963 gl_have_pthread_h=no
16967 if test "$gl_have_pthread_h" = yes; then
16968 # Other possible tests:
16969 # -lpthreads (FSU threads, PCthreads)
16972 # Test whether both pthread_mutex_lock and pthread_mutexattr_init exist
16973 # in libc. IRIX 6.5 has the first one in both libc and libpthread, but
16974 # the second one only in libpthread, and lock.c needs it.
16975 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16976 /* end confdefs.h. */
16977 #include <pthread.h>
16981 pthread_mutex_lock((pthread_mutex_t*)0);
16982 pthread_mutexattr_init((pthread_mutexattr_t*)0);
16987 if ac_fn_c_try_link "$LINENO"; then :
16988 gl_have_pthread=yes
16990 rm -f core conftest.err conftest.$ac_objext \
16991 conftest$ac_exeext conftest.$ac_ext
16992 # Test for libpthread by looking for pthread_kill. (Not pthread_self,
16993 # since it is defined as a macro on OSF/1.)
16994 if test -n "$gl_have_pthread"; then
16995 # The program links fine without libpthread. But it may actually
16996 # need to link with libpthread in order to create multiple threads.
16997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lpthread" >&5
16998 $as_echo_n "checking for pthread_kill in -lpthread... " >&6; }
16999 if ${ac_cv_lib_pthread_pthread_kill+:} false; then :
17000 $as_echo_n "(cached) " >&6
17002 ac_check_lib_save_LIBS=$LIBS
17003 LIBS="-lpthread $LIBS"
17004 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17005 /* end confdefs.h. */
17007 /* Override any GCC internal prototype to avoid an error.
17008 Use char because int might match the return type of a GCC
17009 builtin and then its argument prototype would still apply. */
17013 char pthread_kill ();
17017 return pthread_kill ();
17022 if ac_fn_c_try_link "$LINENO"; then :
17023 ac_cv_lib_pthread_pthread_kill=yes
17025 ac_cv_lib_pthread_pthread_kill=no
17027 rm -f core conftest.err conftest.$ac_objext \
17028 conftest$ac_exeext conftest.$ac_ext
17029 LIBS=$ac_check_lib_save_LIBS
17031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_kill" >&5
17032 $as_echo "$ac_cv_lib_pthread_pthread_kill" >&6; }
17033 if test "x$ac_cv_lib_pthread_pthread_kill" = xyes; then :
17034 LIBMULTITHREAD=-lpthread LTLIBMULTITHREAD=-lpthread
17035 # On Solaris and HP-UX, most pthread functions exist also in libc.
17036 # Therefore pthread_in_use() needs to actually try to create a
17037 # thread: pthread_create from libc will fail, whereas
17038 # pthread_create will actually create a thread.
17042 $as_echo "#define PTHREAD_IN_USE_DETECTION_HARD 1" >>confdefs.h
17049 # Some library is needed. Try libpthread and libc_r.
17050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lpthread" >&5
17051 $as_echo_n "checking for pthread_kill in -lpthread... " >&6; }
17052 if ${ac_cv_lib_pthread_pthread_kill+:} false; then :
17053 $as_echo_n "(cached) " >&6
17055 ac_check_lib_save_LIBS=$LIBS
17056 LIBS="-lpthread $LIBS"
17057 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17058 /* end confdefs.h. */
17060 /* Override any GCC internal prototype to avoid an error.
17061 Use char because int might match the return type of a GCC
17062 builtin and then its argument prototype would still apply. */
17066 char pthread_kill ();
17070 return pthread_kill ();
17075 if ac_fn_c_try_link "$LINENO"; then :
17076 ac_cv_lib_pthread_pthread_kill=yes
17078 ac_cv_lib_pthread_pthread_kill=no
17080 rm -f core conftest.err conftest.$ac_objext \
17081 conftest$ac_exeext conftest.$ac_ext
17082 LIBS=$ac_check_lib_save_LIBS
17084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_kill" >&5
17085 $as_echo "$ac_cv_lib_pthread_pthread_kill" >&6; }
17086 if test "x$ac_cv_lib_pthread_pthread_kill" = xyes; then :
17087 gl_have_pthread=yes
17088 LIBTHREAD=-lpthread LTLIBTHREAD=-lpthread
17089 LIBMULTITHREAD=-lpthread LTLIBMULTITHREAD=-lpthread
17092 if test -z "$gl_have_pthread"; then
17094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lc_r" >&5
17095 $as_echo_n "checking for pthread_kill in -lc_r... " >&6; }
17096 if ${ac_cv_lib_c_r_pthread_kill+:} false; then :
17097 $as_echo_n "(cached) " >&6
17099 ac_check_lib_save_LIBS=$LIBS
17101 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17102 /* end confdefs.h. */
17104 /* Override any GCC internal prototype to avoid an error.
17105 Use char because int might match the return type of a GCC
17106 builtin and then its argument prototype would still apply. */
17110 char pthread_kill ();
17114 return pthread_kill ();
17119 if ac_fn_c_try_link "$LINENO"; then :
17120 ac_cv_lib_c_r_pthread_kill=yes
17122 ac_cv_lib_c_r_pthread_kill=no
17124 rm -f core conftest.err conftest.$ac_objext \
17125 conftest$ac_exeext conftest.$ac_ext
17126 LIBS=$ac_check_lib_save_LIBS
17128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_r_pthread_kill" >&5
17129 $as_echo "$ac_cv_lib_c_r_pthread_kill" >&6; }
17130 if test "x$ac_cv_lib_c_r_pthread_kill" = xyes; then :
17131 gl_have_pthread=yes
17132 LIBTHREAD=-lc_r LTLIBTHREAD=-lc_r
17133 LIBMULTITHREAD=-lc_r LTLIBMULTITHREAD=-lc_r
17138 if test -n "$gl_have_pthread"; then
17139 gl_threads_api=posix
17141 $as_echo "#define USE_POSIX_THREADS 1" >>confdefs.h
17143 if test -n "$LIBMULTITHREAD" || test -n "$LTLIBMULTITHREAD"; then
17144 if case "$gl_cv_have_weak" in *yes) true;; *) false;; esac; then
17146 $as_echo "#define USE_POSIX_THREADS_WEAK 1" >>confdefs.h
17155 if test -z "$gl_have_pthread"; then
17156 if test "$gl_use_threads" = yes || test "$gl_use_threads" = solaris; then
17157 gl_have_solaristhread=
17158 gl_save_LIBS="$LIBS"
17159 LIBS="$LIBS -lthread"
17160 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17161 /* end confdefs.h. */
17163 #include <thread.h>
17174 if ac_fn_c_try_link "$LINENO"; then :
17175 gl_have_solaristhread=yes
17177 rm -f core conftest.err conftest.$ac_objext \
17178 conftest$ac_exeext conftest.$ac_ext
17179 LIBS="$gl_save_LIBS"
17180 if test -n "$gl_have_solaristhread"; then
17181 gl_threads_api=solaris
17183 LTLIBTHREAD=-lthread
17184 LIBMULTITHREAD="$LIBTHREAD"
17185 LTLIBMULTITHREAD="$LTLIBTHREAD"
17187 $as_echo "#define USE_SOLARIS_THREADS 1" >>confdefs.h
17189 if case "$gl_cv_have_weak" in *yes) true;; *) false;; esac; then
17191 $as_echo "#define USE_SOLARIS_THREADS_WEAK 1" >>confdefs.h
17199 if test "$gl_use_threads" = pth; then
17200 gl_save_CPPFLAGS="$CPPFLAGS"
17206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libpth" >&5
17207 $as_echo_n "checking how to link with libpth... " >&6; }
17208 if ${ac_cv_libpth_libs+:} false; then :
17209 $as_echo_n "(cached) " >&6
17221 acl_save_prefix="$prefix"
17222 prefix="$acl_final_prefix"
17223 acl_save_exec_prefix="$exec_prefix"
17224 exec_prefix="$acl_final_exec_prefix"
17226 eval additional_includedir=\"$includedir\"
17227 eval additional_libdir=\"$libdir\"
17229 exec_prefix="$acl_save_exec_prefix"
17230 prefix="$acl_save_prefix"
17233 # Check whether --with-libpth-prefix was given.
17234 if test "${with_libpth_prefix+set}" = set; then :
17235 withval=$with_libpth_prefix;
17236 if test "X$withval" = "Xno"; then
17239 if test "X$withval" = "X"; then
17241 acl_save_prefix="$prefix"
17242 prefix="$acl_final_prefix"
17243 acl_save_exec_prefix="$exec_prefix"
17244 exec_prefix="$acl_final_exec_prefix"
17246 eval additional_includedir=\"$includedir\"
17247 eval additional_libdir=\"$libdir\"
17249 exec_prefix="$acl_save_exec_prefix"
17250 prefix="$acl_save_prefix"
17253 additional_includedir="$withval/include"
17254 additional_libdir="$withval/$acl_libdirstem"
17255 if test "$acl_libdirstem2" != "$acl_libdirstem" \
17256 && ! test -d "$withval/$acl_libdirstem"; then
17257 additional_libdir="$withval/$acl_libdirstem2"
17271 names_already_handled=
17272 names_next_round='pth '
17273 while test -n "$names_next_round"; do
17274 names_this_round="$names_next_round"
17276 for name in $names_this_round; do
17278 for n in $names_already_handled; do
17279 if test "$n" = "$name"; then
17280 already_handled=yes
17284 if test -z "$already_handled"; then
17285 names_already_handled="$names_already_handled $name"
17286 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'`
17287 eval value=\"\$HAVE_LIB$uppername\"
17288 if test -n "$value"; then
17289 if test "$value" = yes; then
17290 eval value=\"\$LIB$uppername\"
17291 test -z "$value" || LIBPTH="${LIBPTH}${LIBPTH:+ }$value"
17292 eval value=\"\$LTLIB$uppername\"
17293 test -z "$value" || LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }$value"
17302 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
17303 if test -n "$acl_shlibext"; then
17304 shrext=".$acl_shlibext" # typically: shrext=.so
17308 if test $use_additional = yes; then
17309 dir="$additional_libdir"
17310 if test -n "$acl_shlibext"; then
17311 if test -f "$dir/$libname$shrext"; then
17313 found_so="$dir/$libname$shrext"
17315 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
17316 ver=`(cd "$dir" && \
17317 for f in "$libname$shrext".*; do echo "$f"; done \
17318 | sed -e "s,^$libname$shrext\\\\.,," \
17319 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
17320 | sed 1q ) 2>/dev/null`
17321 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
17323 found_so="$dir/$libname$shrext.$ver"
17326 eval library_names=\"$acl_library_names_spec\"
17327 for f in $library_names; do
17328 if test -f "$dir/$f"; then
17337 if test "X$found_dir" = "X"; then
17338 if test -f "$dir/$libname.$acl_libext"; then
17340 found_a="$dir/$libname.$acl_libext"
17343 if test "X$found_dir" != "X"; then
17344 if test -f "$dir/$libname.la"; then
17345 found_la="$dir/$libname.la"
17349 if test "X$found_dir" = "X"; then
17350 for x in $LDFLAGS $LTLIBPTH; do
17352 acl_save_prefix="$prefix"
17353 prefix="$acl_final_prefix"
17354 acl_save_exec_prefix="$exec_prefix"
17355 exec_prefix="$acl_final_exec_prefix"
17357 exec_prefix="$acl_save_exec_prefix"
17358 prefix="$acl_save_prefix"
17362 dir=`echo "X$x" | sed -e 's/^X-L//'`
17363 if test -n "$acl_shlibext"; then
17364 if test -f "$dir/$libname$shrext"; then
17366 found_so="$dir/$libname$shrext"
17368 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
17369 ver=`(cd "$dir" && \
17370 for f in "$libname$shrext".*; do echo "$f"; done \
17371 | sed -e "s,^$libname$shrext\\\\.,," \
17372 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
17373 | sed 1q ) 2>/dev/null`
17374 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
17376 found_so="$dir/$libname$shrext.$ver"
17379 eval library_names=\"$acl_library_names_spec\"
17380 for f in $library_names; do
17381 if test -f "$dir/$f"; then
17390 if test "X$found_dir" = "X"; then
17391 if test -f "$dir/$libname.$acl_libext"; then
17393 found_a="$dir/$libname.$acl_libext"
17396 if test "X$found_dir" != "X"; then
17397 if test -f "$dir/$libname.la"; then
17398 found_la="$dir/$libname.la"
17403 if test "X$found_dir" != "X"; then
17408 if test "X$found_dir" != "X"; then
17409 LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-L$found_dir -l$name"
17410 if test "X$found_so" != "X"; then
17411 if test "$enable_rpath" = no \
17412 || test "X$found_dir" = "X/usr/$acl_libdirstem" \
17413 || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
17414 LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
17417 for x in $ltrpathdirs; do
17418 if test "X$x" = "X$found_dir"; then
17423 if test -z "$haveit"; then
17424 ltrpathdirs="$ltrpathdirs $found_dir"
17426 if test "$acl_hardcode_direct" = yes; then
17427 LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
17429 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
17430 LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
17432 for x in $rpathdirs; do
17433 if test "X$x" = "X$found_dir"; then
17438 if test -z "$haveit"; then
17439 rpathdirs="$rpathdirs $found_dir"
17443 for x in $LDFLAGS $LIBPTH; do
17445 acl_save_prefix="$prefix"
17446 prefix="$acl_final_prefix"
17447 acl_save_exec_prefix="$exec_prefix"
17448 exec_prefix="$acl_final_exec_prefix"
17450 exec_prefix="$acl_save_exec_prefix"
17451 prefix="$acl_save_prefix"
17453 if test "X$x" = "X-L$found_dir"; then
17458 if test -z "$haveit"; then
17459 LIBPTH="${LIBPTH}${LIBPTH:+ }-L$found_dir"
17461 if test "$acl_hardcode_minus_L" != no; then
17462 LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
17464 LIBPTH="${LIBPTH}${LIBPTH:+ }-l$name"
17470 if test "X$found_a" != "X"; then
17471 LIBPTH="${LIBPTH}${LIBPTH:+ }$found_a"
17473 LIBPTH="${LIBPTH}${LIBPTH:+ }-L$found_dir -l$name"
17476 additional_includedir=
17477 case "$found_dir" in
17478 */$acl_libdirstem | */$acl_libdirstem/)
17479 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
17480 if test "$name" = 'pth'; then
17481 LIBPTH_PREFIX="$basedir"
17483 additional_includedir="$basedir/include"
17485 */$acl_libdirstem2 | */$acl_libdirstem2/)
17486 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
17487 if test "$name" = 'pth'; then
17488 LIBPTH_PREFIX="$basedir"
17490 additional_includedir="$basedir/include"
17493 if test "X$additional_includedir" != "X"; then
17494 if test "X$additional_includedir" != "X/usr/include"; then
17496 if test "X$additional_includedir" = "X/usr/local/include"; then
17497 if test -n "$GCC"; then
17499 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
17503 if test -z "$haveit"; then
17504 for x in $CPPFLAGS $INCPTH; do
17506 acl_save_prefix="$prefix"
17507 prefix="$acl_final_prefix"
17508 acl_save_exec_prefix="$exec_prefix"
17509 exec_prefix="$acl_final_exec_prefix"
17511 exec_prefix="$acl_save_exec_prefix"
17512 prefix="$acl_save_prefix"
17514 if test "X$x" = "X-I$additional_includedir"; then
17519 if test -z "$haveit"; then
17520 if test -d "$additional_includedir"; then
17521 INCPTH="${INCPTH}${INCPTH:+ }-I$additional_includedir"
17527 if test -n "$found_la"; then
17528 save_libdir="$libdir"
17529 case "$found_la" in
17530 */* | *\\*) . "$found_la" ;;
17531 *) . "./$found_la" ;;
17533 libdir="$save_libdir"
17534 for dep in $dependency_libs; do
17537 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
17538 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
17539 && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
17541 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
17542 || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
17543 if test -n "$GCC"; then
17545 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
17549 if test -z "$haveit"; then
17551 for x in $LDFLAGS $LIBPTH; do
17553 acl_save_prefix="$prefix"
17554 prefix="$acl_final_prefix"
17555 acl_save_exec_prefix="$exec_prefix"
17556 exec_prefix="$acl_final_exec_prefix"
17558 exec_prefix="$acl_save_exec_prefix"
17559 prefix="$acl_save_prefix"
17561 if test "X$x" = "X-L$additional_libdir"; then
17566 if test -z "$haveit"; then
17567 if test -d "$additional_libdir"; then
17568 LIBPTH="${LIBPTH}${LIBPTH:+ }-L$additional_libdir"
17572 for x in $LDFLAGS $LTLIBPTH; do
17574 acl_save_prefix="$prefix"
17575 prefix="$acl_final_prefix"
17576 acl_save_exec_prefix="$exec_prefix"
17577 exec_prefix="$acl_final_exec_prefix"
17579 exec_prefix="$acl_save_exec_prefix"
17580 prefix="$acl_save_prefix"
17582 if test "X$x" = "X-L$additional_libdir"; then
17587 if test -z "$haveit"; then
17588 if test -d "$additional_libdir"; then
17589 LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-L$additional_libdir"
17596 dir=`echo "X$dep" | sed -e 's/^X-R//'`
17597 if test "$enable_rpath" != no; then
17599 for x in $rpathdirs; do
17600 if test "X$x" = "X$dir"; then
17605 if test -z "$haveit"; then
17606 rpathdirs="$rpathdirs $dir"
17609 for x in $ltrpathdirs; do
17610 if test "X$x" = "X$dir"; then
17615 if test -z "$haveit"; then
17616 ltrpathdirs="$ltrpathdirs $dir"
17621 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
17624 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
17627 LIBPTH="${LIBPTH}${LIBPTH:+ }$dep"
17628 LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }$dep"
17634 LIBPTH="${LIBPTH}${LIBPTH:+ }-l$name"
17635 LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-l$name"
17641 if test "X$rpathdirs" != "X"; then
17642 if test -n "$acl_hardcode_libdir_separator"; then
17644 for found_dir in $rpathdirs; do
17645 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
17647 acl_save_libdir="$libdir"
17649 eval flag=\"$acl_hardcode_libdir_flag_spec\"
17650 libdir="$acl_save_libdir"
17651 LIBPTH="${LIBPTH}${LIBPTH:+ }$flag"
17653 for found_dir in $rpathdirs; do
17654 acl_save_libdir="$libdir"
17655 libdir="$found_dir"
17656 eval flag=\"$acl_hardcode_libdir_flag_spec\"
17657 libdir="$acl_save_libdir"
17658 LIBPTH="${LIBPTH}${LIBPTH:+ }$flag"
17662 if test "X$ltrpathdirs" != "X"; then
17663 for found_dir in $ltrpathdirs; do
17664 LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-R$found_dir"
17673 ac_cv_libpth_libs="$LIBPTH"
17674 ac_cv_libpth_ltlibs="$LTLIBPTH"
17675 ac_cv_libpth_cppflags="$INCPTH"
17676 ac_cv_libpth_prefix="$LIBPTH_PREFIX"
17679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libpth_libs" >&5
17680 $as_echo "$ac_cv_libpth_libs" >&6; }
17681 LIBPTH="$ac_cv_libpth_libs"
17682 LTLIBPTH="$ac_cv_libpth_ltlibs"
17683 INCPTH="$ac_cv_libpth_cppflags"
17684 LIBPTH_PREFIX="$ac_cv_libpth_prefix"
17686 for element in $INCPTH; do
17688 for x in $CPPFLAGS; do
17690 acl_save_prefix="$prefix"
17691 prefix="$acl_final_prefix"
17692 acl_save_exec_prefix="$exec_prefix"
17693 exec_prefix="$acl_final_exec_prefix"
17695 exec_prefix="$acl_save_exec_prefix"
17696 prefix="$acl_save_prefix"
17698 if test "X$x" = "X$element"; then
17703 if test -z "$haveit"; then
17704 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
17716 gl_save_LIBS="$LIBS"
17717 LIBS="$LIBS $LIBPTH"
17718 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17719 /* end confdefs.h. */
17729 if ac_fn_c_try_link "$LINENO"; then :
17732 rm -f core conftest.err conftest.$ac_objext \
17733 conftest$ac_exeext conftest.$ac_ext
17734 LIBS="$gl_save_LIBS"
17735 if test -n "$gl_have_pth"; then
17737 LIBTHREAD="$LIBPTH"
17738 LTLIBTHREAD="$LTLIBPTH"
17739 LIBMULTITHREAD="$LIBTHREAD"
17740 LTLIBMULTITHREAD="$LTLIBTHREAD"
17742 $as_echo "#define USE_PTH_THREADS 1" >>confdefs.h
17744 if test -n "$LIBMULTITHREAD" || test -n "$LTLIBMULTITHREAD"; then
17745 if case "$gl_cv_have_weak" in *yes) true;; *) false;; esac; then
17747 $as_echo "#define USE_PTH_THREADS_WEAK 1" >>confdefs.h
17754 CPPFLAGS="$gl_save_CPPFLAGS"
17757 if test -z "$gl_have_pthread"; then
17758 case "$gl_use_threads" in
17759 yes | windows | win32) # The 'win32' is for backward compatibility.
17760 if { case "$host_os" in
17765 gl_threads_api=windows
17767 $as_echo "#define USE_WINDOWS_THREADS 1" >>confdefs.h
17774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for multithread API to use" >&5
17775 $as_echo_n "checking for multithread API to use... " >&6; }
17776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_threads_api" >&5
17777 $as_echo "$gl_threads_api" >&6; }
17790 GNULIB_CALLOC_POSIX=0;
17791 GNULIB_CANONICALIZE_FILE_NAME=0;
17792 GNULIB_GETLOADAVG=0;
17793 GNULIB_GETSUBOPT=0;
17795 GNULIB_MALLOC_POSIX=0;
17799 GNULIB_MKOSTEMPS=0;
17802 GNULIB_POSIX_OPENPT=0;
17804 GNULIB_PTSNAME_R=0;
17808 GNULIB_REALLOC_POSIX=0;
17811 GNULIB_SECURE_GETENV=0;
17816 GNULIB_SYSTEM_POSIX=0;
17822 HAVE_CANONICALIZE_FILE_NAME=1;
17823 HAVE_DECL_GETLOADAVG=1;
17831 HAVE_POSIX_OPENPT=1;
17839 HAVE_SECURE_GETENV=1;
17841 HAVE_DECL_SETENV=1;
17845 HAVE_STRUCT_RANDOM_DATA=1;
17846 HAVE_SYS_LOADAVG_H=0;
17848 HAVE_DECL_UNSETENV=1;
17850 REPLACE_CANONICALIZE_FILE_NAME=0;
17855 REPLACE_PTSNAME_R=0;
17857 REPLACE_RANDOM_R=0;
17859 REPLACE_REALPATH=0;
17862 REPLACE_UNSETENV=0;
17866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether malloc, realloc, calloc are POSIX compliant" >&5
17867 $as_echo_n "checking whether malloc, realloc, calloc are POSIX compliant... " >&6; }
17868 if ${gl_cv_func_malloc_posix+:} false; then :
17869 $as_echo_n "(cached) " >&6
17872 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17873 /* end confdefs.h. */
17878 #if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
17886 if ac_fn_c_try_compile "$LINENO"; then :
17887 gl_cv_func_malloc_posix=yes
17889 gl_cv_func_malloc_posix=no
17891 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_malloc_posix" >&5
17895 $as_echo "$gl_cv_func_malloc_posix" >&6; }
17899 for ac_header in stdlib.h
17901 ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
17902 if test "x$ac_cv_header_stdlib_h" = xyes; then :
17903 cat >>confdefs.h <<_ACEOF
17904 #define HAVE_STDLIB_H 1
17911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible malloc" >&5
17912 $as_echo_n "checking for GNU libc compatible malloc... " >&6; }
17913 if ${ac_cv_func_malloc_0_nonnull+:} false; then :
17914 $as_echo_n "(cached) " >&6
17916 if test "$cross_compiling" = yes; then :
17918 # Guess yes on platforms where we know the result.
17919 *-gnu* | freebsd* | netbsd* | openbsd* \
17920 | hpux* | solaris* | cygwin* | mingw*)
17921 ac_cv_func_malloc_0_nonnull=yes ;;
17922 # If we don't know, assume the worst.
17923 *) ac_cv_func_malloc_0_nonnull=no ;;
17927 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17928 /* end confdefs.h. */
17929 #if defined STDC_HEADERS || defined HAVE_STDLIB_H
17930 # include <stdlib.h>
17938 return ! malloc (0);
17944 if ac_fn_c_try_run "$LINENO"; then :
17945 ac_cv_func_malloc_0_nonnull=yes
17947 ac_cv_func_malloc_0_nonnull=no
17949 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17950 conftest.$ac_objext conftest.beam conftest.$ac_ext
17955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_malloc_0_nonnull" >&5
17956 $as_echo "$ac_cv_func_malloc_0_nonnull" >&6; }
17957 if test $ac_cv_func_malloc_0_nonnull = yes; then :
17958 gl_cv_func_malloc_0_nonnull=1
17960 gl_cv_func_malloc_0_nonnull=0
17964 cat >>confdefs.h <<_ACEOF
17965 #define MALLOC_0_IS_NONNULL $gl_cv_func_malloc_0_nonnull
17970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
17971 $as_echo_n "checking for unsigned long long int... " >&6; }
17972 if ${ac_cv_type_unsigned_long_long_int+:} false; then :
17973 $as_echo_n "(cached) " >&6
17975 ac_cv_type_unsigned_long_long_int=yes
17976 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
17977 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17978 /* end confdefs.h. */
17980 /* For now, do not test the preprocessor; as of 2007 there are too many
17981 implementations with broken preprocessors. Perhaps this can
17982 be revisited in 2012. In the meantime, code should not expect
17983 #if to work with literals wider than 32 bits. */
17984 /* Test literals. */
17985 long long int ll = 9223372036854775807ll;
17986 long long int nll = -9223372036854775807LL;
17987 unsigned long long int ull = 18446744073709551615ULL;
17988 /* Test constant expressions. */
17989 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
17991 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
17997 /* Test availability of runtime routines for shift and division. */
17998 long long int llmax = 9223372036854775807ll;
17999 unsigned long long int ullmax = 18446744073709551615ull;
18000 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
18001 | (llmax / ll) | (llmax % ll)
18002 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
18003 | (ullmax / ull) | (ullmax % ull));
18009 if ac_fn_c_try_link "$LINENO"; then :
18012 ac_cv_type_unsigned_long_long_int=no
18014 rm -f core conftest.err conftest.$ac_objext \
18015 conftest$ac_exeext conftest.$ac_ext
18018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
18019 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
18020 if test $ac_cv_type_unsigned_long_long_int = yes; then
18022 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
18028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
18029 $as_echo_n "checking for long long int... " >&6; }
18030 if ${ac_cv_type_long_long_int+:} false; then :
18031 $as_echo_n "(cached) " >&6
18033 ac_cv_type_long_long_int=yes
18034 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
18035 ac_cv_type_long_long_int=$ac_cv_type_unsigned_long_long_int
18036 if test $ac_cv_type_long_long_int = yes; then
18037 if test "$cross_compiling" = yes; then :
18040 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18041 /* end confdefs.h. */
18042 #include <limits.h>
18045 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
18046 # define LLONG_MAX (HALF - 1 + HALF)
18051 long long int n = 1;
18055 long long int m = n << i;
18058 if (LLONG_MAX / 2 < m)
18066 if ac_fn_c_try_run "$LINENO"; then :
18069 ac_cv_type_long_long_int=no
18071 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18072 conftest.$ac_objext conftest.beam conftest.$ac_ext
18078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
18079 $as_echo "$ac_cv_type_long_long_int" >&6; }
18080 if test $ac_cv_type_long_long_int = yes; then
18082 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
18103 GNULIB_RAWMEMCHR=0;
18106 GNULIB_STRCHRNUL=0;
18114 GNULIB_STRCASESTR=0;
18121 GNULIB_MBSCASECMP=0;
18122 GNULIB_MBSNCASECMP=0;
18123 GNULIB_MBSPCASECMP=0;
18124 GNULIB_MBSCASESTR=0;
18131 GNULIB_STRERROR_R=0;
18132 GNULIB_STRSIGNAL=0;
18133 GNULIB_STRVERSCMP=0;
18138 HAVE_DECL_MEMMEM=1;
18140 HAVE_DECL_MEMRCHR=1;
18145 HAVE_DECL_STRDUP=1;
18146 HAVE_DECL_STRNDUP=1;
18147 HAVE_DECL_STRNLEN=1;
18151 HAVE_DECL_STRTOK_R=1;
18152 HAVE_DECL_STRERROR_R=1;
18153 HAVE_DECL_STRSIGNAL=1;
18160 REPLACE_STRCASESTR=0;
18161 REPLACE_STRCHRNUL=0;
18162 REPLACE_STRERROR=0;
18163 REPLACE_STRERROR_R=0;
18167 REPLACE_STRSIGNAL=0;
18168 REPLACE_STRTOK_R=0;
18169 UNDEFINE_STRTOK_R=0;
18175 # Check for mmap(). Don't use AC_FUNC_MMAP, because it checks too much: it
18176 # fails on HP-UX 11, because MAP_FIXED mappings do not work. But this is
18177 # irrelevant for anonymous mappings.
18178 ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
18179 if test "x$ac_cv_func_mmap" = xyes; then :
18186 # Try to allow MAP_ANONYMOUS.
18187 gl_have_mmap_anonymous=no
18188 if test $gl_have_mmap = yes; then
18189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANONYMOUS" >&5
18190 $as_echo_n "checking for MAP_ANONYMOUS... " >&6; }
18191 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18192 /* end confdefs.h. */
18194 #include <sys/mman.h>
18195 #ifdef MAP_ANONYMOUS
18196 I cannot identify this map
18200 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18201 $EGREP "I cannot identify this map" >/dev/null 2>&1; then :
18202 gl_have_mmap_anonymous=yes
18206 if test $gl_have_mmap_anonymous != yes; then
18207 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18208 /* end confdefs.h. */
18210 #include <sys/mman.h>
18212 I cannot identify this map
18216 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18217 $EGREP "I cannot identify this map" >/dev/null 2>&1; then :
18219 $as_echo "#define MAP_ANONYMOUS MAP_ANON" >>confdefs.h
18221 gl_have_mmap_anonymous=yes
18226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_have_mmap_anonymous" >&5
18227 $as_echo "$gl_have_mmap_anonymous" >&6; }
18228 if test $gl_have_mmap_anonymous = yes; then
18230 $as_echo "#define HAVE_MAP_ANONYMOUS 1" >>confdefs.h
18252 if test $HAVE_MEMCHR = 1; then
18253 # Detect platform-specific bugs in some versions of glibc:
18254 # memchr should not dereference anything with length 0
18255 # http://bugzilla.redhat.com/499689
18256 # memchr should not dereference overestimated length after a match
18257 # http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=521737
18258 # http://sourceware.org/bugzilla/show_bug.cgi?id=10162
18259 # Assume that memchr works on platforms that lack mprotect.
18260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether memchr works" >&5
18261 $as_echo_n "checking whether memchr works... " >&6; }
18262 if ${gl_cv_func_memchr_works+:} false; then :
18263 $as_echo_n "(cached) " >&6
18265 if test "$cross_compiling" = yes; then :
18266 gl_cv_func_memchr_works="guessing no"
18268 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18269 /* end confdefs.h. */
18271 #include <string.h>
18272 #if HAVE_SYS_MMAN_H
18273 # include <fcntl.h>
18274 # include <unistd.h>
18275 # include <sys/types.h>
18276 # include <sys/mman.h>
18278 # define MAP_FILE 0
18287 char *fence = NULL;
18288 #if HAVE_SYS_MMAN_H && HAVE_MPROTECT
18289 # if HAVE_MAP_ANONYMOUS
18290 const int flags = MAP_ANONYMOUS | MAP_PRIVATE;
18292 # else /* !HAVE_MAP_ANONYMOUS */
18293 const int flags = MAP_FILE | MAP_PRIVATE;
18294 int fd = open ("/dev/zero", O_RDONLY, 0666);
18298 int pagesize = getpagesize ();
18300 (char *) mmap (NULL, 2 * pagesize, PROT_READ | PROT_WRITE,
18302 if (two_pages != (char *)(-1)
18303 && mprotect (two_pages + pagesize, pagesize, PROT_NONE) == 0)
18304 fence = two_pages + pagesize;
18309 if (memchr (fence, 0, 0))
18311 strcpy (fence - 9, "12345678");
18312 if (memchr (fence - 9, 0, 79) != fence - 1)
18314 if (memchr (fence - 1, 0, 3) != fence - 1)
18323 if ac_fn_c_try_run "$LINENO"; then :
18324 gl_cv_func_memchr_works=yes
18326 gl_cv_func_memchr_works=no
18328 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18329 conftest.$ac_objext conftest.beam conftest.$ac_ext
18333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_memchr_works" >&5
18334 $as_echo "$gl_cv_func_memchr_works" >&6; }
18335 if test "$gl_cv_func_memchr_works" != yes; then
18346 gl_cv_c_multiarch=no
18347 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18348 /* end confdefs.h. */
18349 #ifndef __APPLE_CC__
18350 not a universal capable compiler
18355 if ac_fn_c_try_compile "$LINENO"; then :
18359 for word in ${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS}; do
18360 if test -n "$prev"; then
18362 i?86 | x86_64 | ppc | ppc64)
18363 if test -z "$arch" || test "$arch" = "$word"; then
18366 gl_cv_c_multiarch=yes
18372 if test "x$word" = "x-arch"; then
18379 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18380 if test $gl_cv_c_multiarch = yes; then
18381 APPLE_UNIVERSAL_BUILD=1
18383 APPLE_UNIVERSAL_BUILD=0
18388 GNULIB_PTHREAD_SIGMASK=0;
18390 GNULIB_SIGNAL_H_SIGPIPE=0;
18391 GNULIB_SIGPROCMASK=0;
18392 GNULIB_SIGACTION=0;
18393 HAVE_POSIX_SIGNALBLOCKING=1;
18394 HAVE_PTHREAD_SIGMASK=1;
18399 HAVE_STRUCT_SIGACTION_SA_SIGACTION=1;
18401 HAVE_TYPE_VOLATILE_SIG_ATOMIC_T=1;
18403 HAVE_SIGHANDLER_T=1;
18404 REPLACE_PTHREAD_SIGMASK=0;
18408 ac_fn_c_check_type "$LINENO" "sigset_t" "ac_cv_type_sigset_t" "
18409 #include <signal.h>
18410 /* Mingw defines sigset_t not in <signal.h>, but in <sys/types.h>. */
18411 #include <sys/types.h>
18414 if test "x$ac_cv_type_sigset_t" = xyes; then :
18416 cat >>confdefs.h <<_ACEOF
18417 #define HAVE_SIGSET_T 1
18420 gl_cv_type_sigset_t=yes
18422 gl_cv_type_sigset_t=no
18425 if test $gl_cv_type_sigset_t != yes; then
18430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ssize_t" >&5
18431 $as_echo_n "checking for ssize_t... " >&6; }
18432 if ${gt_cv_ssize_t+:} false; then :
18433 $as_echo_n "(cached) " >&6
18435 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18436 /* end confdefs.h. */
18437 #include <sys/types.h>
18441 int x = sizeof (ssize_t *) + sizeof (ssize_t);
18447 if ac_fn_c_try_compile "$LINENO"; then :
18452 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_ssize_t" >&5
18455 $as_echo "$gt_cv_ssize_t" >&6; }
18456 if test $gt_cv_ssize_t = no; then
18458 $as_echo "#define ssize_t int" >>confdefs.h
18463 ac_fn_c_check_decl "$LINENO" "setenv" "ac_cv_have_decl_setenv" "$ac_includes_default"
18464 if test "x$ac_cv_have_decl_setenv" = xyes; then :
18470 cat >>confdefs.h <<_ACEOF
18471 #define HAVE_DECL_SETENV $ac_have_decl
18489 if test $ac_cv_have_decl_setenv = no; then
18509 for ac_header in search.h
18511 ac_fn_c_check_header_mongrel "$LINENO" "search.h" "ac_cv_header_search_h" "$ac_includes_default"
18512 if test "x$ac_cv_header_search_h" = xyes; then :
18513 cat >>confdefs.h <<_ACEOF
18514 #define HAVE_SEARCH_H 1
18521 for ac_func in tsearch
18523 ac_fn_c_check_func "$LINENO" "tsearch" "ac_cv_func_tsearch"
18524 if test "x$ac_cv_func_tsearch" = xyes; then :
18525 cat >>confdefs.h <<_ACEOF
18526 #define HAVE_TSEARCH 1
18539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
18540 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
18541 if ${ac_cv_type_uid_t+:} false; then :
18542 $as_echo_n "(cached) " >&6
18544 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18545 /* end confdefs.h. */
18546 #include <sys/types.h>
18549 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18550 $EGREP "uid_t" >/dev/null 2>&1; then :
18551 ac_cv_type_uid_t=yes
18553 ac_cv_type_uid_t=no
18558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
18559 $as_echo "$ac_cv_type_uid_t" >&6; }
18560 if test $ac_cv_type_uid_t = no; then
18562 $as_echo "#define uid_t int" >>confdefs.h
18565 $as_echo "#define gid_t int" >>confdefs.h
18580 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
18581 if test "x$ac_cv_type_pid_t" = xyes; then :
18585 cat >>confdefs.h <<_ACEOF
18600 GNULIB_FPRINTF_POSIX=0;
18616 GNULIB_OBSTACK_PRINTF=0;
18617 GNULIB_OBSTACK_PRINTF_POSIX=0;
18622 GNULIB_PRINTF_POSIX=0;
18631 GNULIB_SPRINTF_POSIX=0;
18632 GNULIB_STDIO_H_NONBLOCKING=0;
18633 GNULIB_STDIO_H_SIGPIPE=0;
18635 GNULIB_VASPRINTF=0;
18640 GNULIB_VFPRINTF_POSIX=0;
18642 GNULIB_VPRINTF_POSIX=0;
18643 GNULIB_VSNPRINTF=0;
18644 GNULIB_VSPRINTF_POSIX=0;
18645 HAVE_DECL_FPURGE=1;
18646 HAVE_DECL_FSEEKO=1;
18647 HAVE_DECL_FTELLO=1;
18648 HAVE_DECL_GETDELIM=1;
18649 HAVE_DECL_GETLINE=1;
18650 HAVE_DECL_OBSTACK_PRINTF=1;
18651 HAVE_DECL_SNPRINTF=1;
18652 HAVE_DECL_VSNPRINTF=1;
18673 REPLACE_GETDELIM=0;
18675 REPLACE_OBSTACK_PRINTF=0;
18681 REPLACE_RENAMEAT=0;
18682 REPLACE_SNPRINTF=0;
18684 REPLACE_STDIO_READ_FUNCS=0;
18685 REPLACE_STDIO_WRITE_FUNCS=0;
18687 REPLACE_VASPRINTF=0;
18688 REPLACE_VDPRINTF=0;
18689 REPLACE_VFPRINTF=0;
18691 REPLACE_VSNPRINTF=0;
18692 REPLACE_VSPRINTF=0;
18711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether snprintf returns a byte count as in C99" >&5
18712 $as_echo_n "checking whether snprintf returns a byte count as in C99... " >&6; }
18713 if ${gl_cv_func_snprintf_retval_c99+:} false; then :
18714 $as_echo_n "(cached) " >&6
18717 if test "$cross_compiling" = yes; then :
18720 # Guess yes on glibc systems.
18721 *-gnu*) gl_cv_func_snprintf_retval_c99="guessing yes";;
18722 # Guess yes on FreeBSD >= 5.
18723 freebsd[1-4]*) gl_cv_func_snprintf_retval_c99="guessing no";;
18724 freebsd* | kfreebsd*) gl_cv_func_snprintf_retval_c99="guessing yes";;
18725 # Guess yes on Mac OS X >= 10.3.
18726 darwin[1-6].*) gl_cv_func_snprintf_retval_c99="guessing no";;
18727 darwin*) gl_cv_func_snprintf_retval_c99="guessing yes";;
18728 # Guess yes on OpenBSD >= 3.9.
18729 openbsd[1-2].* | openbsd3.[0-8] | openbsd3.[0-8].*)
18730 gl_cv_func_snprintf_retval_c99="guessing no";;
18731 openbsd*) gl_cv_func_snprintf_retval_c99="guessing yes";;
18732 # Guess yes on Solaris >= 2.10.
18733 solaris2.[1-9][0-9]*) gl_cv_func_printf_sizes_c99="guessing yes";;
18734 solaris*) gl_cv_func_printf_sizes_c99="guessing no";;
18735 # Guess yes on AIX >= 4.
18736 aix[1-3]*) gl_cv_func_snprintf_retval_c99="guessing no";;
18737 aix*) gl_cv_func_snprintf_retval_c99="guessing yes";;
18738 # Guess yes on NetBSD >= 3.
18739 netbsd[1-2]* | netbsdelf[1-2]* | netbsdaout[1-2]* | netbsdcoff[1-2]*)
18740 gl_cv_func_snprintf_retval_c99="guessing no";;
18741 netbsd*) gl_cv_func_snprintf_retval_c99="guessing yes";;
18742 # Guess yes on BeOS.
18743 beos*) gl_cv_func_snprintf_retval_c99="guessing yes";;
18744 # If we don't know, assume the worst.
18745 *) gl_cv_func_snprintf_retval_c99="guessing no";;
18749 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18750 /* end confdefs.h. */
18753 #include <string.h>
18755 # define my_snprintf snprintf
18757 # include <stdarg.h>
18758 static int my_snprintf (char *buf, int size, const char *format, ...)
18762 va_start (args, format);
18763 ret = vsnprintf (buf, size, format, args);
18768 static char buf[100];
18771 strcpy (buf, "ABCDEF");
18772 if (my_snprintf (buf, 3, "%d %d", 4567, 89) != 7)
18774 if (my_snprintf (buf, 0, "%d %d", 4567, 89) != 7)
18776 if (my_snprintf (NULL, 0, "%d %d", 4567, 89) != 7)
18781 if ac_fn_c_try_run "$LINENO"; then :
18782 gl_cv_func_snprintf_retval_c99=yes
18784 gl_cv_func_snprintf_retval_c99=no
18786 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18787 conftest.$ac_objext conftest.beam conftest.$ac_ext
18792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_snprintf_retval_c99" >&5
18793 $as_echo "$gl_cv_func_snprintf_retval_c99" >&6; }
18796 ac_fn_c_check_decl "$LINENO" "snprintf" "ac_cv_have_decl_snprintf" "$ac_includes_default"
18797 if test "x$ac_cv_have_decl_snprintf" = xyes; then :
18803 cat >>confdefs.h <<_ACEOF
18804 #define HAVE_DECL_SNPRINTF $ac_have_decl
18808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
18809 $as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
18810 if ${ac_cv_header_stdbool_h+:} false; then :
18811 $as_echo_n "(cached) " >&6
18813 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18814 /* end confdefs.h. */
18816 #include <stdbool.h>
18818 "error: bool is not defined"
18821 "error: false is not defined"
18824 "error: false is not 0"
18827 "error: true is not defined"
18830 "error: true is not 1"
18832 #ifndef __bool_true_false_are_defined
18833 "error: __bool_true_false_are_defined is not defined"
18836 struct s { _Bool s: 1; _Bool t; } s;
18838 char a[true == 1 ? 1 : -1];
18839 char b[false == 0 ? 1 : -1];
18840 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
18841 char d[(bool) 0.5 == true ? 1 : -1];
18842 /* See body of main program for 'e'. */
18843 char f[(_Bool) 0.0 == false ? 1 : -1];
18845 char h[sizeof (_Bool)];
18846 char i[sizeof s.t];
18847 enum { j = false, k = true, l = false * true, m = true * 256 };
18848 /* The following fails for
18849 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
18851 char o[sizeof n == m * sizeof n[0] ? 1 : -1];
18852 char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
18853 /* Catch a bug in an HP-UX C compiler. See
18854 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
18855 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
18867 /* Refer to every declared value, to avoid compiler optimizations. */
18868 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
18869 + !m + !n + !o + !p + !q + !pq);
18875 if ac_fn_c_try_compile "$LINENO"; then :
18876 ac_cv_header_stdbool_h=yes
18878 ac_cv_header_stdbool_h=no
18880 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
18883 $as_echo "$ac_cv_header_stdbool_h" >&6; }
18884 ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
18885 if test "x$ac_cv_type__Bool" = xyes; then :
18887 cat >>confdefs.h <<_ACEOF
18888 #define HAVE__BOOL 1
18900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5
18901 $as_echo_n "checking for wchar_t... " >&6; }
18902 if ${gt_cv_c_wchar_t+:} false; then :
18903 $as_echo_n "(cached) " >&6
18905 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18906 /* end confdefs.h. */
18907 #include <stddef.h>
18908 wchar_t foo = (wchar_t)'\0';
18917 if ac_fn_c_try_compile "$LINENO"; then :
18918 gt_cv_c_wchar_t=yes
18922 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5
18925 $as_echo "$gt_cv_c_wchar_t" >&6; }
18926 if test $gt_cv_c_wchar_t = yes; then
18928 $as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h
18945 if test $ac_cv_type_long_long_int = yes; then
18946 HAVE_LONG_LONG_INT=1
18948 HAVE_LONG_LONG_INT=0
18952 if test $ac_cv_type_unsigned_long_long_int = yes; then
18953 HAVE_UNSIGNED_LONG_LONG_INT=1
18955 HAVE_UNSIGNED_LONG_LONG_INT=0
18966 if test $ac_cv_header_wchar_h = yes; then
18973 if test $ac_cv_header_inttypes_h = yes; then
18980 if test $ac_cv_header_sys_types_h = yes; then
19002 if test $gl_cv_have_include_next = yes; then
19003 gl_cv_next_stdint_h='<'stdint.h'>'
19005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdint.h>" >&5
19006 $as_echo_n "checking absolute name of <stdint.h>... " >&6; }
19007 if ${gl_cv_next_stdint_h+:} false; then :
19008 $as_echo_n "(cached) " >&6
19011 if test $ac_cv_header_stdint_h = yes; then
19016 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19017 /* end confdefs.h. */
19018 #include <stdint.h>
19021 aix*) gl_absname_cpp="$ac_cpp -C" ;;
19022 *) gl_absname_cpp="$ac_cpp" ;;
19027 gl_dirsep_regex='[/\\]'
19030 gl_dirsep_regex='\/'
19033 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
19034 gl_header_literal_regex=`echo 'stdint.h' \
19035 | sed -e "$gl_make_literal_regex_sed"`
19036 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
19037 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
19043 gl_cv_absolute_stdint_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
19044 sed -n "$gl_absolute_header_sed"`
19046 gl_header=$gl_cv_absolute_stdint_h
19047 gl_cv_next_stdint_h='"'$gl_header'"'
19049 gl_cv_next_stdint_h='<'stdint.h'>'
19054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdint_h" >&5
19055 $as_echo "$gl_cv_next_stdint_h" >&6; }
19057 NEXT_STDINT_H=$gl_cv_next_stdint_h
19059 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
19060 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
19061 gl_next_as_first_directive='<'stdint.h'>'
19063 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
19064 gl_next_as_first_directive=$gl_cv_next_stdint_h
19066 NEXT_AS_FIRST_DIRECTIVE_STDINT_H=$gl_next_as_first_directive
19071 if test $ac_cv_header_stdint_h = yes; then
19078 if test $ac_cv_header_stdint_h = yes; then
19079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stdint.h conforms to C99" >&5
19080 $as_echo_n "checking whether stdint.h conforms to C99... " >&6; }
19081 if ${gl_cv_header_working_stdint_h+:} false; then :
19082 $as_echo_n "(cached) " >&6
19084 gl_cv_header_working_stdint_h=no
19085 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19086 /* end confdefs.h. */
19089 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
19090 #include <stdint.h>
19091 /* Dragonfly defines WCHAR_MIN, WCHAR_MAX only in <wchar.h>. */
19092 #if !(defined WCHAR_MIN && defined WCHAR_MAX)
19093 #error "WCHAR_MIN, WCHAR_MAX not defined in <stdint.h>"
19097 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
19098 included before <wchar.h>. */
19099 #include <stddef.h>
19100 #include <signal.h>
19102 # include <stdio.h>
19104 # include <wchar.h>
19109 int8_t a1 = INT8_MAX;
19110 int8_t a1min = INT8_MIN;
19113 int16_t a2 = INT16_MAX;
19114 int16_t a2min = INT16_MIN;
19117 int32_t a3 = INT32_MAX;
19118 int32_t a3min = INT32_MIN;
19121 int64_t a4 = INT64_MAX;
19122 int64_t a4min = INT64_MIN;
19125 uint8_t b1 = UINT8_MAX;
19127 typedef int b1[(unsigned char) -1 != 255 ? 1 : -1];
19130 uint16_t b2 = UINT16_MAX;
19133 uint32_t b3 = UINT32_MAX;
19136 uint64_t b4 = UINT64_MAX;
19138 int_least8_t c1 = INT8_C (0x7f);
19139 int_least8_t c1max = INT_LEAST8_MAX;
19140 int_least8_t c1min = INT_LEAST8_MIN;
19141 int_least16_t c2 = INT16_C (0x7fff);
19142 int_least16_t c2max = INT_LEAST16_MAX;
19143 int_least16_t c2min = INT_LEAST16_MIN;
19144 int_least32_t c3 = INT32_C (0x7fffffff);
19145 int_least32_t c3max = INT_LEAST32_MAX;
19146 int_least32_t c3min = INT_LEAST32_MIN;
19147 int_least64_t c4 = INT64_C (0x7fffffffffffffff);
19148 int_least64_t c4max = INT_LEAST64_MAX;
19149 int_least64_t c4min = INT_LEAST64_MIN;
19150 uint_least8_t d1 = UINT8_C (0xff);
19151 uint_least8_t d1max = UINT_LEAST8_MAX;
19152 uint_least16_t d2 = UINT16_C (0xffff);
19153 uint_least16_t d2max = UINT_LEAST16_MAX;
19154 uint_least32_t d3 = UINT32_C (0xffffffff);
19155 uint_least32_t d3max = UINT_LEAST32_MAX;
19156 uint_least64_t d4 = UINT64_C (0xffffffffffffffff);
19157 uint_least64_t d4max = UINT_LEAST64_MAX;
19158 int_fast8_t e1 = INT_FAST8_MAX;
19159 int_fast8_t e1min = INT_FAST8_MIN;
19160 int_fast16_t e2 = INT_FAST16_MAX;
19161 int_fast16_t e2min = INT_FAST16_MIN;
19162 int_fast32_t e3 = INT_FAST32_MAX;
19163 int_fast32_t e3min = INT_FAST32_MIN;
19164 int_fast64_t e4 = INT_FAST64_MAX;
19165 int_fast64_t e4min = INT_FAST64_MIN;
19166 uint_fast8_t f1 = UINT_FAST8_MAX;
19167 uint_fast16_t f2 = UINT_FAST16_MAX;
19168 uint_fast32_t f3 = UINT_FAST32_MAX;
19169 uint_fast64_t f4 = UINT_FAST64_MAX;
19171 intptr_t g = INTPTR_MAX;
19172 intptr_t gmin = INTPTR_MIN;
19175 uintptr_t h = UINTPTR_MAX;
19177 intmax_t i = INTMAX_MAX;
19178 uintmax_t j = UINTMAX_MAX;
19180 #include <limits.h> /* for CHAR_BIT */
19181 #define TYPE_MINIMUM(t) \
19182 ((t) ((t) 0 < (t) -1 ? (t) 0 : ~ TYPE_MAXIMUM (t)))
19183 #define TYPE_MAXIMUM(t) \
19184 ((t) ((t) 0 < (t) -1 \
19186 : ((((t) 1 << (sizeof (t) * CHAR_BIT - 2)) - 1) * 2 + 1)))
19189 PTRDIFF_MIN == TYPE_MINIMUM (ptrdiff_t)
19190 && PTRDIFF_MAX == TYPE_MAXIMUM (ptrdiff_t)
19192 /* Detect bug in FreeBSD 6.0 / ia64. */
19193 int check_SIG_ATOMIC:
19194 SIG_ATOMIC_MIN == TYPE_MINIMUM (sig_atomic_t)
19195 && SIG_ATOMIC_MAX == TYPE_MAXIMUM (sig_atomic_t)
19197 int check_SIZE: SIZE_MAX == TYPE_MAXIMUM (size_t) ? 1 : -1;
19199 WCHAR_MIN == TYPE_MINIMUM (wchar_t)
19200 && WCHAR_MAX == TYPE_MAXIMUM (wchar_t)
19202 /* Detect bug in mingw. */
19204 WINT_MIN == TYPE_MINIMUM (wint_t)
19205 && WINT_MAX == TYPE_MAXIMUM (wint_t)
19208 /* Detect bugs in glibc 2.4 and Solaris 10 stdint.h, among others. */
19210 (-1 < UINT8_C (0)) == (-1 < (uint_least8_t) 0) ? 1 : -1;
19211 int check_UINT16_C:
19212 (-1 < UINT16_C (0)) == (-1 < (uint_least16_t) 0) ? 1 : -1;
19214 /* Detect bugs in OpenBSD 3.9 stdint.h. */
19216 int check_uint8: (uint8_t) -1 == UINT8_MAX ? 1 : -1;
19219 int check_uint16: (uint16_t) -1 == UINT16_MAX ? 1 : -1;
19222 int check_uint32: (uint32_t) -1 == UINT32_MAX ? 1 : -1;
19225 int check_uint64: (uint64_t) -1 == UINT64_MAX ? 1 : -1;
19227 int check_uint_least8: (uint_least8_t) -1 == UINT_LEAST8_MAX ? 1 : -1;
19228 int check_uint_least16: (uint_least16_t) -1 == UINT_LEAST16_MAX ? 1 : -1;
19229 int check_uint_least32: (uint_least32_t) -1 == UINT_LEAST32_MAX ? 1 : -1;
19230 int check_uint_least64: (uint_least64_t) -1 == UINT_LEAST64_MAX ? 1 : -1;
19231 int check_uint_fast8: (uint_fast8_t) -1 == UINT_FAST8_MAX ? 1 : -1;
19232 int check_uint_fast16: (uint_fast16_t) -1 == UINT_FAST16_MAX ? 1 : -1;
19233 int check_uint_fast32: (uint_fast32_t) -1 == UINT_FAST32_MAX ? 1 : -1;
19234 int check_uint_fast64: (uint_fast64_t) -1 == UINT_FAST64_MAX ? 1 : -1;
19235 int check_uintptr: (uintptr_t) -1 == UINTPTR_MAX ? 1 : -1;
19236 int check_uintmax: (uintmax_t) -1 == UINTMAX_MAX ? 1 : -1;
19237 int check_size: (size_t) -1 == SIZE_MAX ? 1 : -1;
19248 if ac_fn_c_try_compile "$LINENO"; then :
19249 if test "$cross_compiling" = yes; then :
19250 gl_cv_header_working_stdint_h=yes
19253 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19254 /* end confdefs.h. */
19257 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
19258 #include <stdint.h>
19261 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
19262 included before <wchar.h>. */
19263 #include <stddef.h>
19264 #include <signal.h>
19266 # include <stdio.h>
19268 # include <wchar.h>
19273 #include <string.h>
19274 #define MVAL(macro) MVAL1(macro)
19275 #define MVAL1(expression) #expression
19276 static const char *macro_values[] =
19310 for (mv = macro_values; *mv != NULL; mv++)
19312 const char *value = *mv;
19313 /* Test whether it looks like a cast expression. */
19314 if (strncmp (value, "((unsigned int)"/*)*/, 15) == 0
19315 || strncmp (value, "((unsigned short)"/*)*/, 17) == 0
19316 || strncmp (value, "((unsigned char)"/*)*/, 16) == 0
19317 || strncmp (value, "((int)"/*)*/, 6) == 0
19318 || strncmp (value, "((signed short)"/*)*/, 15) == 0
19319 || strncmp (value, "((signed char)"/*)*/, 14) == 0)
19320 return mv - macro_values + 1;
19328 if ac_fn_c_try_run "$LINENO"; then :
19329 gl_cv_header_working_stdint_h=yes
19331 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19332 conftest.$ac_objext conftest.beam conftest.$ac_ext
19337 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_stdint_h" >&5
19341 $as_echo "$gl_cv_header_working_stdint_h" >&6; }
19343 if test "$gl_cv_header_working_stdint_h" = yes; then
19346 for ac_header in sys/inttypes.h sys/bitypes.h
19348 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
19349 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
19350 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
19351 cat >>confdefs.h <<_ACEOF
19352 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
19359 if test $ac_cv_header_sys_inttypes_h = yes; then
19360 HAVE_SYS_INTTYPES_H=1
19362 HAVE_SYS_INTTYPES_H=0
19365 if test $ac_cv_header_sys_bitypes_h = yes; then
19366 HAVE_SYS_BITYPES_H=1
19368 HAVE_SYS_BITYPES_H=0
19374 if test $APPLE_UNIVERSAL_BUILD = 0; then
19377 for gltype in ptrdiff_t size_t ; do
19378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
19379 $as_echo_n "checking for bit size of $gltype... " >&6; }
19380 if eval \${gl_cv_bitsizeof_${gltype}+:} false; then :
19381 $as_echo_n "(cached) " >&6
19383 if ac_fn_c_compute_int "$LINENO" "sizeof ($gltype) * CHAR_BIT" "result" "
19384 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
19385 included before <wchar.h>. */
19386 #include <stddef.h>
19387 #include <signal.h>
19389 # include <stdio.h>
19391 # include <wchar.h>
19394 #include <limits.h>"; then :
19400 eval gl_cv_bitsizeof_${gltype}=\$result
19403 eval ac_res=\$gl_cv_bitsizeof_${gltype}
19404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
19405 $as_echo "$ac_res" >&6; }
19406 eval result=\$gl_cv_bitsizeof_${gltype}
19407 if test $result = unknown; then
19410 GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
19411 cat >>confdefs.h <<_ACEOF
19412 #define BITSIZEOF_${GLTYPE} $result
19415 eval BITSIZEOF_${GLTYPE}=\$result
19422 for gltype in sig_atomic_t wchar_t wint_t ; do
19423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
19424 $as_echo_n "checking for bit size of $gltype... " >&6; }
19425 if eval \${gl_cv_bitsizeof_${gltype}+:} false; then :
19426 $as_echo_n "(cached) " >&6
19428 if ac_fn_c_compute_int "$LINENO" "sizeof ($gltype) * CHAR_BIT" "result" "
19429 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
19430 included before <wchar.h>. */
19431 #include <stddef.h>
19432 #include <signal.h>
19434 # include <stdio.h>
19436 # include <wchar.h>
19439 #include <limits.h>"; then :
19445 eval gl_cv_bitsizeof_${gltype}=\$result
19448 eval ac_res=\$gl_cv_bitsizeof_${gltype}
19449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
19450 $as_echo "$ac_res" >&6; }
19451 eval result=\$gl_cv_bitsizeof_${gltype}
19452 if test $result = unknown; then
19455 GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
19456 cat >>confdefs.h <<_ACEOF
19457 #define BITSIZEOF_${GLTYPE} $result
19460 eval BITSIZEOF_${GLTYPE}=\$result
19466 for gltype in sig_atomic_t wchar_t wint_t ; do
19467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gltype is signed" >&5
19468 $as_echo_n "checking whether $gltype is signed... " >&6; }
19469 if eval \${gl_cv_type_${gltype}_signed+:} false; then :
19470 $as_echo_n "(cached) " >&6
19472 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19473 /* end confdefs.h. */
19475 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
19476 included before <wchar.h>. */
19477 #include <stddef.h>
19478 #include <signal.h>
19480 # include <stdio.h>
19482 # include <wchar.h>
19485 int verify[2 * (($gltype) -1 < ($gltype) 0) - 1];
19494 if ac_fn_c_try_compile "$LINENO"; then :
19499 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19500 eval gl_cv_type_${gltype}_signed=\$result
19503 eval ac_res=\$gl_cv_type_${gltype}_signed
19504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
19505 $as_echo "$ac_res" >&6; }
19506 eval result=\$gl_cv_type_${gltype}_signed
19507 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
19508 if test "$result" = yes; then
19509 cat >>confdefs.h <<_ACEOF
19510 #define HAVE_SIGNED_${GLTYPE} 1
19513 eval HAVE_SIGNED_${GLTYPE}=1
19515 eval HAVE_SIGNED_${GLTYPE}=0
19520 gl_cv_type_ptrdiff_t_signed=yes
19521 gl_cv_type_size_t_signed=no
19522 if test $APPLE_UNIVERSAL_BUILD = 0; then
19525 for gltype in ptrdiff_t size_t ; do
19526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
19527 $as_echo_n "checking for $gltype integer literal suffix... " >&6; }
19528 if eval \${gl_cv_type_${gltype}_suffix+:} false; then :
19529 $as_echo_n "(cached) " >&6
19531 eval gl_cv_type_${gltype}_suffix=no
19532 eval result=\$gl_cv_type_${gltype}_signed
19533 if test "$result" = yes; then
19538 for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do
19540 '') gltype1='int';;
19541 l) gltype1='long int';;
19542 ll) gltype1='long long int';;
19543 i64) gltype1='__int64';;
19544 u) gltype1='unsigned int';;
19545 ul) gltype1='unsigned long int';;
19546 ull) gltype1='unsigned long long int';;
19547 ui64)gltype1='unsigned __int64';;
19549 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19550 /* end confdefs.h. */
19552 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
19553 included before <wchar.h>. */
19554 #include <stddef.h>
19555 #include <signal.h>
19557 # include <stdio.h>
19559 # include <wchar.h>
19562 extern $gltype foo;
19563 extern $gltype1 foo;
19572 if ac_fn_c_try_compile "$LINENO"; then :
19573 eval gl_cv_type_${gltype}_suffix=\$glsuf
19575 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19576 eval result=\$gl_cv_type_${gltype}_suffix
19577 test "$result" != no && break
19580 eval ac_res=\$gl_cv_type_${gltype}_suffix
19581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
19582 $as_echo "$ac_res" >&6; }
19583 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
19584 eval result=\$gl_cv_type_${gltype}_suffix
19585 test "$result" = no && result=
19586 eval ${GLTYPE}_SUFFIX=\$result
19587 cat >>confdefs.h <<_ACEOF
19588 #define ${GLTYPE}_SUFFIX $result
19597 for gltype in sig_atomic_t wchar_t wint_t ; do
19598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
19599 $as_echo_n "checking for $gltype integer literal suffix... " >&6; }
19600 if eval \${gl_cv_type_${gltype}_suffix+:} false; then :
19601 $as_echo_n "(cached) " >&6
19603 eval gl_cv_type_${gltype}_suffix=no
19604 eval result=\$gl_cv_type_${gltype}_signed
19605 if test "$result" = yes; then
19610 for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do
19612 '') gltype1='int';;
19613 l) gltype1='long int';;
19614 ll) gltype1='long long int';;
19615 i64) gltype1='__int64';;
19616 u) gltype1='unsigned int';;
19617 ul) gltype1='unsigned long int';;
19618 ull) gltype1='unsigned long long int';;
19619 ui64)gltype1='unsigned __int64';;
19621 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19622 /* end confdefs.h. */
19624 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
19625 included before <wchar.h>. */
19626 #include <stddef.h>
19627 #include <signal.h>
19629 # include <stdio.h>
19631 # include <wchar.h>
19634 extern $gltype foo;
19635 extern $gltype1 foo;
19644 if ac_fn_c_try_compile "$LINENO"; then :
19645 eval gl_cv_type_${gltype}_suffix=\$glsuf
19647 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19648 eval result=\$gl_cv_type_${gltype}_suffix
19649 test "$result" != no && break
19652 eval ac_res=\$gl_cv_type_${gltype}_suffix
19653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
19654 $as_echo "$ac_res" >&6; }
19655 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
19656 eval result=\$gl_cv_type_${gltype}_suffix
19657 test "$result" = no && result=
19658 eval ${GLTYPE}_SUFFIX=\$result
19659 cat >>confdefs.h <<_ACEOF
19660 #define ${GLTYPE}_SUFFIX $result
19667 if test $BITSIZEOF_WINT_T -lt 32; then
19668 BITSIZEOF_WINT_T=32
19674 if test -n "$STDINT_H"; then
19675 GL_GENERATE_STDINT_H_TRUE=
19676 GL_GENERATE_STDINT_H_FALSE='#'
19678 GL_GENERATE_STDINT_H_TRUE='#'
19679 GL_GENERATE_STDINT_H_FALSE=
19684 REPLACE_STRERROR_0=0
19685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strerror(0) succeeds" >&5
19686 $as_echo_n "checking whether strerror(0) succeeds... " >&6; }
19687 if ${gl_cv_func_strerror_0_works+:} false; then :
19688 $as_echo_n "(cached) " >&6
19690 if test "$cross_compiling" = yes; then :
19692 # Guess yes on glibc systems.
19693 *-gnu*) gl_cv_func_strerror_0_works="guessing yes" ;;
19694 # If we don't know, assume the worst.
19695 *) gl_cv_func_strerror_0_works="guessing no" ;;
19699 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19700 /* end confdefs.h. */
19701 #include <string.h>
19710 str = strerror (0);
19711 if (!*str) result |= 1;
19712 if (errno) result |= 2;
19713 if (strstr (str, "nknown") || strstr (str, "ndefined"))
19720 if ac_fn_c_try_run "$LINENO"; then :
19721 gl_cv_func_strerror_0_works=yes
19723 gl_cv_func_strerror_0_works=no
19725 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19726 conftest.$ac_objext conftest.beam conftest.$ac_ext
19731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_strerror_0_works" >&5
19732 $as_echo "$gl_cv_func_strerror_0_works" >&6; }
19733 case "$gl_cv_func_strerror_0_works" in
19736 REPLACE_STRERROR_0=1
19738 $as_echo "#define REPLACE_STRERROR_0 1" >>confdefs.h
19754 if test $gl_cv_have_include_next = yes; then
19755 gl_cv_next_string_h='<'string.h'>'
19757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <string.h>" >&5
19758 $as_echo_n "checking absolute name of <string.h>... " >&6; }
19759 if ${gl_cv_next_string_h+:} false; then :
19760 $as_echo_n "(cached) " >&6
19765 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19766 /* end confdefs.h. */
19767 #include <string.h>
19770 aix*) gl_absname_cpp="$ac_cpp -C" ;;
19771 *) gl_absname_cpp="$ac_cpp" ;;
19776 gl_dirsep_regex='[/\\]'
19779 gl_dirsep_regex='\/'
19782 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
19783 gl_header_literal_regex=`echo 'string.h' \
19784 | sed -e "$gl_make_literal_regex_sed"`
19785 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
19786 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
19792 gl_cv_absolute_string_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
19793 sed -n "$gl_absolute_header_sed"`
19795 gl_header=$gl_cv_absolute_string_h
19796 gl_cv_next_string_h='"'$gl_header'"'
19800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_string_h" >&5
19801 $as_echo "$gl_cv_next_string_h" >&6; }
19803 NEXT_STRING_H=$gl_cv_next_string_h
19805 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
19806 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
19807 gl_next_as_first_directive='<'string.h'>'
19809 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
19810 gl_next_as_first_directive=$gl_cv_next_string_h
19812 NEXT_AS_FIRST_DIRECTIVE_STRING_H=$gl_next_as_first_directive
19819 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
19820 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
19821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
19822 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
19823 if eval \${$as_gl_Symbol+:} false; then :
19824 $as_echo_n "(cached) " >&6
19826 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19827 /* end confdefs.h. */
19828 #include <string.h>
19839 if ac_fn_c_try_compile "$LINENO"; then :
19840 eval "$as_gl_Symbol=yes"
19842 eval "$as_gl_Symbol=no"
19844 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19846 eval ac_res=\$$as_gl_Symbol
19847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
19848 $as_echo "$ac_res" >&6; }
19849 if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
19850 cat >>confdefs.h <<_ACEOF
19851 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
19854 eval ac_cv_have_decl_$gl_func=yes
19860 ac_fn_c_check_decl "$LINENO" "strndup" "ac_cv_have_decl_strndup" "$ac_includes_default"
19861 if test "x$ac_cv_have_decl_strndup" = xyes; then :
19867 cat >>confdefs.h <<_ACEOF
19868 #define HAVE_DECL_STRNDUP $ac_have_decl
19878 ac_fn_c_check_decl "$LINENO" "strnlen" "ac_cv_have_decl_strnlen" "$ac_includes_default"
19879 if test "x$ac_cv_have_decl_strnlen" = xyes; then :
19885 cat >>confdefs.h <<_ACEOF
19886 #define HAVE_DECL_STRNLEN $ac_have_decl
19891 ac_fn_c_check_decl "$LINENO" "strsignal" "ac_cv_have_decl_strsignal" "$ac_includes_default"
19892 if test "x$ac_cv_have_decl_strsignal" = xyes; then :
19898 cat >>confdefs.h <<_ACEOF
19899 #define HAVE_DECL_STRSIGNAL $ac_have_decl
19903 ac_fn_c_check_decl "$LINENO" "sys_siglist" "ac_cv_have_decl_sys_siglist" "#include <signal.h>
19904 /* NetBSD declares sys_siglist in unistd.h. */
19905 #ifdef HAVE_UNISTD_H
19906 # include <unistd.h>
19910 if test "x$ac_cv_have_decl_sys_siglist" = xyes; then :
19916 cat >>confdefs.h <<_ACEOF
19917 #define HAVE_DECL_SYS_SIGLIST $ac_have_decl
19946 GNULIB_UTIMENSAT=0;
19960 REPLACE_FUTIMENS=0;
19966 REPLACE_UTIMENSAT=0;
19968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
19969 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
19970 if ${ac_cv_header_stat_broken+:} false; then :
19971 $as_echo_n "(cached) " >&6
19973 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19974 /* end confdefs.h. */
19975 #include <sys/types.h>
19976 #include <sys/stat.h>
19978 #if defined S_ISBLK && defined S_IFDIR
19979 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
19982 #if defined S_ISBLK && defined S_IFCHR
19983 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
19986 #if defined S_ISLNK && defined S_IFREG
19987 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
19990 #if defined S_ISSOCK && defined S_IFREG
19991 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
19995 if ac_fn_c_try_compile "$LINENO"; then :
19996 ac_cv_header_stat_broken=no
19998 ac_cv_header_stat_broken=yes
20000 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
20003 $as_echo "$ac_cv_header_stat_broken" >&6; }
20004 if test $ac_cv_header_stat_broken = yes; then
20006 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
20015 ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
20016 if test "x$ac_cv_type_mode_t" = xyes; then :
20020 cat >>confdefs.h <<_ACEOF
20044 if test $gl_cv_have_include_next = yes; then
20045 gl_cv_next_sys_types_h='<'sys/types.h'>'
20047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/types.h>" >&5
20048 $as_echo_n "checking absolute name of <sys/types.h>... " >&6; }
20049 if ${gl_cv_next_sys_types_h+:} false; then :
20050 $as_echo_n "(cached) " >&6
20055 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20056 /* end confdefs.h. */
20057 #include <sys/types.h>
20060 aix*) gl_absname_cpp="$ac_cpp -C" ;;
20061 *) gl_absname_cpp="$ac_cpp" ;;
20066 gl_dirsep_regex='[/\\]'
20069 gl_dirsep_regex='\/'
20072 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
20073 gl_header_literal_regex=`echo 'sys/types.h' \
20074 | sed -e "$gl_make_literal_regex_sed"`
20075 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
20076 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
20082 gl_cv_absolute_sys_types_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
20083 sed -n "$gl_absolute_header_sed"`
20085 gl_header=$gl_cv_absolute_sys_types_h
20086 gl_cv_next_sys_types_h='"'$gl_header'"'
20090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_types_h" >&5
20091 $as_echo "$gl_cv_next_sys_types_h" >&6; }
20093 NEXT_SYS_TYPES_H=$gl_cv_next_sys_types_h
20095 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
20096 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
20097 gl_next_as_first_directive='<'sys/types.h'>'
20099 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
20100 gl_next_as_first_directive=$gl_cv_next_sys_types_h
20102 NEXT_AS_FIRST_DIRECTIVE_SYS_TYPES_H=$gl_next_as_first_directive
20124 GNULIB_NANOSLEEP=0;
20128 HAVE_DECL_LOCALTIME_R=1;
20132 REPLACE_LOCALTIME_R=GNULIB_PORTCHECK;
20133 REPLACE_MKTIME=GNULIB_PORTCHECK;
20134 REPLACE_NANOSLEEP=GNULIB_PORTCHECK;
20135 REPLACE_TIMEGM=GNULIB_PORTCHECK;
20137 : ${GNULIB_GETTIMEOFDAY=0};
20139 REPLACE_LOCALTIME=0;
20149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <time.h>" >&5
20150 $as_echo_n "checking for struct timespec in <time.h>... " >&6; }
20151 if ${gl_cv_sys_struct_timespec_in_time_h+:} false; then :
20152 $as_echo_n "(cached) " >&6
20154 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20155 /* end confdefs.h. */
20161 static struct timespec x; x.tv_sec = x.tv_nsec;
20166 if ac_fn_c_try_compile "$LINENO"; then :
20167 gl_cv_sys_struct_timespec_in_time_h=yes
20169 gl_cv_sys_struct_timespec_in_time_h=no
20171 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_time_h" >&5
20174 $as_echo "$gl_cv_sys_struct_timespec_in_time_h" >&6; }
20176 TIME_H_DEFINES_STRUCT_TIMESPEC=0
20177 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC=0
20178 PTHREAD_H_DEFINES_STRUCT_TIMESPEC=0
20179 if test $gl_cv_sys_struct_timespec_in_time_h = yes; then
20180 TIME_H_DEFINES_STRUCT_TIMESPEC=1
20182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <sys/time.h>" >&5
20183 $as_echo_n "checking for struct timespec in <sys/time.h>... " >&6; }
20184 if ${gl_cv_sys_struct_timespec_in_sys_time_h+:} false; then :
20185 $as_echo_n "(cached) " >&6
20187 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20188 /* end confdefs.h. */
20189 #include <sys/time.h>
20194 static struct timespec x; x.tv_sec = x.tv_nsec;
20199 if ac_fn_c_try_compile "$LINENO"; then :
20200 gl_cv_sys_struct_timespec_in_sys_time_h=yes
20202 gl_cv_sys_struct_timespec_in_sys_time_h=no
20204 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_sys_time_h" >&5
20207 $as_echo "$gl_cv_sys_struct_timespec_in_sys_time_h" >&6; }
20208 if test $gl_cv_sys_struct_timespec_in_sys_time_h = yes; then
20209 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC=1
20211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <pthread.h>" >&5
20212 $as_echo_n "checking for struct timespec in <pthread.h>... " >&6; }
20213 if ${gl_cv_sys_struct_timespec_in_pthread_h+:} false; then :
20214 $as_echo_n "(cached) " >&6
20216 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20217 /* end confdefs.h. */
20218 #include <pthread.h>
20223 static struct timespec x; x.tv_sec = x.tv_nsec;
20228 if ac_fn_c_try_compile "$LINENO"; then :
20229 gl_cv_sys_struct_timespec_in_pthread_h=yes
20231 gl_cv_sys_struct_timespec_in_pthread_h=no
20233 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_pthread_h" >&5
20236 $as_echo "$gl_cv_sys_struct_timespec_in_pthread_h" >&6; }
20237 if test $gl_cv_sys_struct_timespec_in_pthread_h = yes; then
20238 PTHREAD_H_DEFINES_STRUCT_TIMESPEC=1
20257 if test $gl_cv_have_include_next = yes; then
20258 gl_cv_next_time_h='<'time.h'>'
20260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <time.h>" >&5
20261 $as_echo_n "checking absolute name of <time.h>... " >&6; }
20262 if ${gl_cv_next_time_h+:} false; then :
20263 $as_echo_n "(cached) " >&6
20268 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20269 /* end confdefs.h. */
20273 aix*) gl_absname_cpp="$ac_cpp -C" ;;
20274 *) gl_absname_cpp="$ac_cpp" ;;
20279 gl_dirsep_regex='[/\\]'
20282 gl_dirsep_regex='\/'
20285 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
20286 gl_header_literal_regex=`echo 'time.h' \
20287 | sed -e "$gl_make_literal_regex_sed"`
20288 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
20289 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
20295 gl_cv_absolute_time_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
20296 sed -n "$gl_absolute_header_sed"`
20298 gl_header=$gl_cv_absolute_time_h
20299 gl_cv_next_time_h='"'$gl_header'"'
20303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_time_h" >&5
20304 $as_echo "$gl_cv_next_time_h" >&6; }
20306 NEXT_TIME_H=$gl_cv_next_time_h
20308 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
20309 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
20310 gl_next_as_first_directive='<'time.h'>'
20312 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
20313 gl_next_as_first_directive=$gl_cv_next_time_h
20315 NEXT_AS_FIRST_DIRECTIVE_TIME_H=$gl_next_as_first_directive
20323 ac_fn_c_check_decl "$LINENO" "unsetenv" "ac_cv_have_decl_unsetenv" "$ac_includes_default"
20324 if test "x$ac_cv_have_decl_unsetenv" = xyes; then :
20330 cat >>confdefs.h <<_ACEOF
20331 #define HAVE_DECL_UNSETENV $ac_have_decl
20341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wint_t" >&5
20342 $as_echo_n "checking for wint_t... " >&6; }
20343 if ${gt_cv_c_wint_t+:} false; then :
20344 $as_echo_n "(cached) " >&6
20346 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20347 /* end confdefs.h. */
20349 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
20351 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be included
20352 before <wchar.h>. */
20353 #include <stddef.h>
20357 wint_t foo = (wchar_t)'\0';
20366 if ac_fn_c_try_compile "$LINENO"; then :
20371 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wint_t" >&5
20374 $as_echo "$gt_cv_c_wint_t" >&6; }
20375 if test $gt_cv_c_wint_t = yes; then
20377 $as_echo "#define HAVE_WINT_T 1" >>confdefs.h
20394 if test $ac_cv_header_features_h = yes; then
20402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
20403 $as_echo_n "checking for inttypes.h... " >&6; }
20404 if ${gl_cv_header_inttypes_h+:} false; then :
20405 $as_echo_n "(cached) " >&6
20407 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20408 /* end confdefs.h. */
20410 #include <sys/types.h>
20411 #include <inttypes.h>
20416 uintmax_t i = (uintmax_t) -1; return !i;
20421 if ac_fn_c_try_compile "$LINENO"; then :
20422 gl_cv_header_inttypes_h=yes
20424 gl_cv_header_inttypes_h=no
20426 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_inttypes_h" >&5
20429 $as_echo "$gl_cv_header_inttypes_h" >&6; }
20430 if test $gl_cv_header_inttypes_h = yes; then
20432 cat >>confdefs.h <<_ACEOF
20433 #define HAVE_INTTYPES_H_WITH_UINTMAX 1
20439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint.h" >&5
20440 $as_echo_n "checking for stdint.h... " >&6; }
20441 if ${gl_cv_header_stdint_h+:} false; then :
20442 $as_echo_n "(cached) " >&6
20444 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20445 /* end confdefs.h. */
20446 #include <sys/types.h>
20447 #include <stdint.h>
20451 uintmax_t i = (uintmax_t) -1; return !i;
20456 if ac_fn_c_try_compile "$LINENO"; then :
20457 gl_cv_header_stdint_h=yes
20459 gl_cv_header_stdint_h=no
20461 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_stdint_h" >&5
20464 $as_echo "$gl_cv_header_stdint_h" >&6; }
20465 if test $gl_cv_header_stdint_h = yes; then
20467 cat >>confdefs.h <<_ACEOF
20468 #define HAVE_STDINT_H_WITH_UINTMAX 1
20476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intmax_t" >&5
20477 $as_echo_n "checking for intmax_t... " >&6; }
20478 if ${gt_cv_c_intmax_t+:} false; then :
20479 $as_echo_n "(cached) " >&6
20481 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20482 /* end confdefs.h. */
20484 #include <stddef.h>
20485 #include <stdlib.h>
20486 #if HAVE_STDINT_H_WITH_UINTMAX
20487 #include <stdint.h>
20489 #if HAVE_INTTYPES_H_WITH_UINTMAX
20490 #include <inttypes.h>
20496 intmax_t x = -1; return !x;
20501 if ac_fn_c_try_compile "$LINENO"; then :
20502 gt_cv_c_intmax_t=yes
20504 gt_cv_c_intmax_t=no
20506 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_intmax_t" >&5
20509 $as_echo "$gt_cv_c_intmax_t" >&6; }
20510 if test $gt_cv_c_intmax_t = yes; then
20512 $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
20516 test $ac_cv_type_long_long_int = yes \
20517 && ac_type='long long' \
20520 cat >>confdefs.h <<_ACEOF
20521 #define intmax_t $ac_type
20527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the exponent in a 'double'" >&5
20528 $as_echo_n "checking where to find the exponent in a 'double'... " >&6; }
20529 if ${gl_cv_cc_double_expbit0+:} false; then :
20530 $as_echo_n "(cached) " >&6
20533 if test "$cross_compiling" = yes; then :
20535 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20536 /* end confdefs.h. */
20538 #if defined arm || defined __arm || defined __arm__
20543 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20544 $EGREP "mixed_endianness" >/dev/null 2>&1; then :
20545 gl_cv_cc_double_expbit0="unknown"
20549 if ${ac_cv_c_bigendian+:} false; then :
20550 $as_echo_n "(cached) " >&6
20552 ac_cv_c_bigendian=unknown
20553 # See if we're dealing with a universal compiler.
20554 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20555 /* end confdefs.h. */
20556 #ifndef __APPLE_CC__
20557 not a universal capable compiler
20562 if ac_fn_c_try_compile "$LINENO"; then :
20564 # Check for potential -arch flags. It is not universal unless
20565 # there are at least two -arch flags with different values.
20568 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
20569 if test -n "$ac_prev"; then
20571 i?86 | x86_64 | ppc | ppc64)
20572 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
20575 ac_cv_c_bigendian=universal
20581 elif test "x$ac_word" = "x-arch"; then
20586 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20587 if test $ac_cv_c_bigendian = unknown; then
20588 # See if sys/param.h defines the BYTE_ORDER macro.
20589 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20590 /* end confdefs.h. */
20591 #include <sys/types.h>
20592 #include <sys/param.h>
20597 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
20598 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
20600 bogus endian macros
20607 if ac_fn_c_try_compile "$LINENO"; then :
20608 # It does; now see whether it defined to BIG_ENDIAN or not.
20609 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20610 /* end confdefs.h. */
20611 #include <sys/types.h>
20612 #include <sys/param.h>
20617 #if BYTE_ORDER != BIG_ENDIAN
20625 if ac_fn_c_try_compile "$LINENO"; then :
20626 ac_cv_c_bigendian=yes
20628 ac_cv_c_bigendian=no
20630 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20632 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20634 if test $ac_cv_c_bigendian = unknown; then
20635 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
20636 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20637 /* end confdefs.h. */
20638 #include <limits.h>
20643 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
20644 bogus endian macros
20651 if ac_fn_c_try_compile "$LINENO"; then :
20652 # It does; now see whether it defined to _BIG_ENDIAN or not.
20653 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20654 /* end confdefs.h. */
20655 #include <limits.h>
20660 #ifndef _BIG_ENDIAN
20668 if ac_fn_c_try_compile "$LINENO"; then :
20669 ac_cv_c_bigendian=yes
20671 ac_cv_c_bigendian=no
20673 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20675 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20677 if test $ac_cv_c_bigendian = unknown; then
20678 # Compile a test program.
20679 if test "$cross_compiling" = yes; then :
20680 # Try to guess by grepping values from an object file.
20681 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20682 /* end confdefs.h. */
20683 short int ascii_mm[] =
20684 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
20685 short int ascii_ii[] =
20686 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
20687 int use_ascii (int i) {
20688 return ascii_mm[i] + ascii_ii[i];
20690 short int ebcdic_ii[] =
20691 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
20692 short int ebcdic_mm[] =
20693 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
20694 int use_ebcdic (int i) {
20695 return ebcdic_mm[i] + ebcdic_ii[i];
20702 return use_ascii (foo) == use_ebcdic (foo);
20707 if ac_fn_c_try_compile "$LINENO"; then :
20708 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
20709 ac_cv_c_bigendian=yes
20711 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
20712 if test "$ac_cv_c_bigendian" = unknown; then
20713 ac_cv_c_bigendian=no
20715 # finding both strings is unlikely to happen, but who knows?
20716 ac_cv_c_bigendian=unknown
20720 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20722 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20723 /* end confdefs.h. */
20724 $ac_includes_default
20729 /* Are we little or big endian? From Harbison&Steele. */
20733 char c[sizeof (long int)];
20736 return u.c[sizeof (long int) - 1] == 1;
20742 if ac_fn_c_try_run "$LINENO"; then :
20743 ac_cv_c_bigendian=no
20745 ac_cv_c_bigendian=yes
20747 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20748 conftest.$ac_objext conftest.beam conftest.$ac_ext
20754 case $ac_cv_c_bigendian in #(
20756 gl_cv_cc_double_expbit0="word 0 bit 20";; #(
20758 gl_cv_cc_double_expbit0="word 1 bit 20" ;; #(
20761 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
20765 gl_cv_cc_double_expbit0="unknown" ;;
20774 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20775 /* end confdefs.h. */
20778 #include <stddef.h>
20780 #include <string.h>
20782 ((sizeof (double) + sizeof (unsigned int) - 1) / sizeof (unsigned int))
20783 typedef union { double value; unsigned int word[NWORDS]; } memory_double;
20784 static unsigned int ored_words[NWORDS];
20785 static unsigned int anded_words[NWORDS];
20786 static void add_to_ored_words (double x)
20790 /* Clear it first, in case sizeof (double) < sizeof (memory_double). */
20791 memset (&m, 0, sizeof (memory_double));
20793 for (i = 0; i < NWORDS; i++)
20795 ored_words[i] |= m.word[i];
20796 anded_words[i] &= m.word[i];
20802 FILE *fp = fopen ("conftest.out", "w");
20805 for (j = 0; j < NWORDS; j++)
20806 anded_words[j] = ~ (unsigned int) 0;
20807 add_to_ored_words (0.25);
20808 add_to_ored_words (0.5);
20809 add_to_ored_words (1.0);
20810 add_to_ored_words (2.0);
20811 add_to_ored_words (4.0);
20812 /* Remove bits that are common (e.g. if representation of the first mantissa
20813 bit is explicit). */
20814 for (j = 0; j < NWORDS; j++)
20815 ored_words[j] &= ~anded_words[j];
20816 /* Now find the nonzero word. */
20817 for (j = 0; j < NWORDS; j++)
20818 if (ored_words[j] != 0)
20823 for (i = j + 1; i < NWORDS; i++)
20824 if (ored_words[i] != 0)
20826 fprintf (fp, "unknown");
20827 return (fclose (fp) != 0);
20830 if ((ored_words[j] >> i) & 1)
20832 fprintf (fp, "word %d bit %d", (int) j, (int) i);
20833 return (fclose (fp) != 0);
20836 fprintf (fp, "unknown");
20837 return (fclose (fp) != 0);
20841 if ac_fn_c_try_run "$LINENO"; then :
20842 gl_cv_cc_double_expbit0=`cat conftest.out`
20844 gl_cv_cc_double_expbit0="unknown"
20846 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20847 conftest.$ac_objext conftest.beam conftest.$ac_ext
20853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_double_expbit0" >&5
20854 $as_echo "$gl_cv_cc_double_expbit0" >&6; }
20855 case "$gl_cv_cc_double_expbit0" in
20857 word=`echo "$gl_cv_cc_double_expbit0" | sed -e 's/word //' -e 's/ bit.*//'`
20858 bit=`echo "$gl_cv_cc_double_expbit0" | sed -e 's/word.*bit //'`
20860 cat >>confdefs.h <<_ACEOF
20861 #define DBL_EXPBIT0_WORD $word
20865 cat >>confdefs.h <<_ACEOF
20866 #define DBL_EXPBIT0_BIT $bit
20877 for ac_func in snprintf strnlen wcslen wcsnlen mbrtowc wcrtomb
20879 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20880 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
20881 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
20882 cat >>confdefs.h <<_ACEOF
20883 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20889 ac_fn_c_check_decl "$LINENO" "_snprintf" "ac_cv_have_decl__snprintf" "#include <stdio.h>
20891 if test "x$ac_cv_have_decl__snprintf" = xyes; then :
20897 cat >>confdefs.h <<_ACEOF
20898 #define HAVE_DECL__SNPRINTF $ac_have_decl
20903 case "$gl_cv_func_snprintf_retval_c99" in
20906 $as_echo "#define HAVE_SNPRINTF_RETVAL_C99 1" >>confdefs.h
20917 GNULIB_MBSRTOWCS=0;
20918 GNULIB_MBSNRTOWCS=0;
20920 GNULIB_WCSRTOMBS=0;
20921 GNULIB_WCSNRTOMBS=0;
20938 GNULIB_WCSCASECMP=0;
20939 GNULIB_WCSNCASECMP=0;
20976 HAVE_WCSNCASECMP=1;
20989 HAVE_DECL_WCWIDTH=1;
20990 REPLACE_MBSTATE_T=0;
20996 REPLACE_MBSRTOWCS=0;
20997 REPLACE_MBSNRTOWCS=0;
20999 REPLACE_WCSRTOMBS=0;
21000 REPLACE_WCSNRTOMBS=0;
21002 REPLACE_WCSWIDTH=0;
21005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <wchar.h> uses 'inline' correctly" >&5
21006 $as_echo_n "checking whether <wchar.h> uses 'inline' correctly... " >&6; }
21007 if ${gl_cv_header_wchar_h_correct_inline+:} false; then :
21008 $as_echo_n "(cached) " >&6
21010 gl_cv_header_wchar_h_correct_inline=yes
21011 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21012 /* end confdefs.h. */
21014 #define wcstod renamed_wcstod
21015 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
21017 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
21018 included before <wchar.h>. */
21019 #include <stddef.h>
21023 extern int zero (void);
21024 int main () { return zero(); }
21027 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
21028 (eval $ac_compile) 2>&5
21030 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21031 test $ac_status = 0; }; then
21032 mv conftest.$ac_objext conftest1.$ac_objext
21033 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21034 /* end confdefs.h. */
21036 #define wcstod renamed_wcstod
21037 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
21039 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
21040 included before <wchar.h>. */
21041 #include <stddef.h>
21045 int zero (void) { return 0; }
21048 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
21049 (eval $ac_compile) 2>&5
21051 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21052 test $ac_status = 0; }; then
21053 mv conftest.$ac_objext conftest2.$ac_objext
21054 if $CC -o conftest$ac_exeext $CFLAGS $LDFLAGS conftest1.$ac_objext conftest2.$ac_objext $LIBS >&5 2>&1; then
21057 gl_cv_header_wchar_h_correct_inline=no
21061 rm -f conftest1.$ac_objext conftest2.$ac_objext conftest$ac_exeext
21064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_wchar_h_correct_inline" >&5
21065 $as_echo "$gl_cv_header_wchar_h_correct_inline" >&6; }
21066 if test $gl_cv_header_wchar_h_correct_inline = no; then
21067 as_fn_error $? "<wchar.h> cannot be used with this compiler ($CC $CFLAGS $CPPFLAGS).
21068 This is a known interoperability problem of glibc <= 2.5 with gcc >= 4.3 in
21069 C99 mode. You have four options:
21070 - Add the flag -fgnu89-inline to CC and reconfigure, or
21071 - Fix your include files, using parts of
21072 <http://sourceware.org/git/?p=glibc.git;a=commitdiff;h=b037a293a48718af30d706c2e18c929d0e69a621>, or
21073 - Use a gcc version older than 4.3, or
21074 - Don't use the flags -std=c99 or -std=gnu99.
21075 Configuration aborted." "$LINENO" 5
21080 GL_COND_LIBTOOL_TRUE=
21081 GL_COND_LIBTOOL_FALSE='#'
21083 GL_COND_LIBTOOL_TRUE='#'
21084 GL_COND_LIBTOOL_FALSE=
21087 gl_cond_libtool=true
21088 gl_m4_base='gnulib/m4'
21098 gl_source_base='gnulib/lib'
21101 if test $ac_cv_func_alloca_works = no; then
21105 # Define an additional variable used in the Makefile substitution.
21106 if test $ac_cv_working_alloca_h = yes; then
21107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca as a compiler built-in" >&5
21108 $as_echo_n "checking for alloca as a compiler built-in... " >&6; }
21109 if ${gl_cv_rpl_alloca+:} false; then :
21110 $as_echo_n "(cached) " >&6
21113 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21114 /* end confdefs.h. */
21116 #if defined __GNUC__ || defined _AIX || defined _MSC_VER
21121 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21122 $EGREP "Need own alloca" >/dev/null 2>&1; then :
21123 gl_cv_rpl_alloca=yes
21125 gl_cv_rpl_alloca=no
21131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_rpl_alloca" >&5
21132 $as_echo "$gl_cv_rpl_alloca" >&6; }
21133 if test $gl_cv_rpl_alloca = yes; then
21135 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
21145 if test -n "$ALLOCA_H"; then
21146 GL_GENERATE_ALLOCA_H_TRUE=
21147 GL_GENERATE_ALLOCA_H_FALSE='#'
21149 GL_GENERATE_ALLOCA_H_TRUE='#'
21150 GL_GENERATE_ALLOCA_H_FALSE=
21159 cat >>confdefs.h <<_ACEOF
21160 #define GNULIB_DIRNAME 1
21170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether // is distinct from /" >&5
21171 $as_echo_n "checking whether // is distinct from /... " >&6; }
21172 if ${gl_cv_double_slash_root+:} false; then :
21173 $as_echo_n "(cached) " >&6
21175 if test x"$cross_compiling" = xyes ; then
21176 # When cross-compiling, there is no way to tell whether // is special
21177 # short of a list of hosts. However, the only known hosts to date
21178 # that have a distinct // are Apollo DomainOS (too old to port to),
21179 # Cygwin, and z/OS. If anyone knows of another system for which // has
21180 # special semantics and is distinct from /, please report it to
21181 # <bug-gnulib@gnu.org>.
21183 *-cygwin | i370-ibm-openedition)
21184 gl_cv_double_slash_root=yes ;;
21186 # Be optimistic and assume that / and // are the same when we
21188 gl_cv_double_slash_root='unknown, assuming no' ;;
21191 set x `ls -di / // 2>/dev/null`
21192 if test "$2" = "$4" && wc //dev/null >/dev/null 2>&1; then
21193 gl_cv_double_slash_root=no
21195 gl_cv_double_slash_root=yes
21199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_double_slash_root" >&5
21200 $as_echo "$gl_cv_double_slash_root" >&6; }
21201 if test "$gl_cv_double_slash_root" = yes; then
21203 $as_echo "#define DOUBLE_SLASH_IS_DISTINCT_ROOT 1" >>confdefs.h
21219 $as_echo "#define GNULIB_TEST_ENVIRON 1" >>confdefs.h
21225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for error_at_line" >&5
21226 $as_echo_n "checking for error_at_line... " >&6; }
21227 if ${ac_cv_lib_error_at_line+:} false; then :
21228 $as_echo_n "(cached) " >&6
21230 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21231 /* end confdefs.h. */
21236 error_at_line (0, 0, "", 0, "an error occurred");
21241 if ac_fn_c_try_link "$LINENO"; then :
21242 ac_cv_lib_error_at_line=yes
21244 ac_cv_lib_error_at_line=no
21246 rm -f core conftest.err conftest.$ac_objext \
21247 conftest$ac_exeext conftest.$ac_ext
21249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_error_at_line" >&5
21250 $as_echo "$ac_cv_lib_error_at_line" >&6; }
21252 if test $ac_cv_lib_error_at_line = no; then
21261 gl_LIBOBJS="$gl_LIBOBJS error.$ac_objext"
21270 XGETTEXT_EXTRA_OPTIONS="$XGETTEXT_EXTRA_OPTIONS --flag=error:3:c-format"
21274 XGETTEXT_EXTRA_OPTIONS="$XGETTEXT_EXTRA_OPTIONS --flag=error_at_line:5:c-format"
21281 REPLACE_FLOAT_LDBL=0
21283 aix* | beos* | openbsd* | mirbsd* | irix*)
21287 case "$host_cpu" in
21292 # On x86_64 systems, the C compiler may still be generating
21294 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21295 /* end confdefs.h. */
21296 #if defined __LP64__ || defined __x86_64__ || defined __amd64__
21300 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21301 $EGREP "yes" >/dev/null 2>&1; then :
21312 case "$host_cpu" in
21320 aix* | freebsd* | linux*)
21321 if test -n "$FLOAT_H"; then
21322 REPLACE_FLOAT_LDBL=1
21328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether conversion from 'int' to 'long double' works" >&5
21329 $as_echo_n "checking whether conversion from 'int' to 'long double' works... " >&6; }
21330 if ${gl_cv_func_itold_works+:} false; then :
21331 $as_echo_n "(cached) " >&6
21334 if test "$cross_compiling" = yes; then :
21337 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21338 /* end confdefs.h. */
21339 #if defined __LP64__ || defined __arch64__
21343 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21344 $EGREP "yes" >/dev/null 2>&1; then :
21345 gl_cv_func_itold_works="guessing no"
21347 gl_cv_func_itold_works="guessing yes"
21352 *) gl_cv_func_itold_works="guessing yes" ;;
21356 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21357 /* end confdefs.h. */
21360 volatile long double ld;
21369 if ac_fn_c_try_run "$LINENO"; then :
21370 gl_cv_func_itold_works=yes
21372 gl_cv_func_itold_works=no
21374 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21375 conftest.$ac_objext conftest.beam conftest.$ac_ext
21380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_itold_works" >&5
21381 $as_echo "$gl_cv_func_itold_works" >&6; }
21382 case "$gl_cv_func_itold_works" in
21389 if test -n "$FLOAT_H"; then
21398 if test $gl_cv_have_include_next = yes; then
21399 gl_cv_next_float_h='<'float.h'>'
21401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <float.h>" >&5
21402 $as_echo_n "checking absolute name of <float.h>... " >&6; }
21403 if ${gl_cv_next_float_h+:} false; then :
21404 $as_echo_n "(cached) " >&6
21409 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21410 /* end confdefs.h. */
21414 aix*) gl_absname_cpp="$ac_cpp -C" ;;
21415 *) gl_absname_cpp="$ac_cpp" ;;
21420 gl_dirsep_regex='[/\\]'
21423 gl_dirsep_regex='\/'
21426 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
21427 gl_header_literal_regex=`echo 'float.h' \
21428 | sed -e "$gl_make_literal_regex_sed"`
21429 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
21430 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
21436 gl_cv_absolute_float_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
21437 sed -n "$gl_absolute_header_sed"`
21439 gl_header=$gl_cv_absolute_float_h
21440 gl_cv_next_float_h='"'$gl_header'"'
21444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_float_h" >&5
21445 $as_echo "$gl_cv_next_float_h" >&6; }
21447 NEXT_FLOAT_H=$gl_cv_next_float_h
21449 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
21450 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
21451 gl_next_as_first_directive='<'float.h'>'
21453 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
21454 gl_next_as_first_directive=$gl_cv_next_float_h
21456 NEXT_AS_FIRST_DIRECTIVE_FLOAT_H=$gl_next_as_first_directive
21463 if test -n "$FLOAT_H"; then
21464 GL_GENERATE_FLOAT_H_TRUE=
21465 GL_GENERATE_FLOAT_H_FALSE='#'
21467 GL_GENERATE_FLOAT_H_TRUE='#'
21468 GL_GENERATE_FLOAT_H_FALSE=
21473 if test $REPLACE_FLOAT_LDBL = 1; then
21482 gl_LIBOBJS="$gl_LIBOBJS float.$ac_objext"
21485 if test $REPLACE_ITOLD = 1; then
21494 gl_LIBOBJS="$gl_LIBOBJS itold.$ac_objext"
21511 gl_gettimeofday_timezone=void
21512 if test $ac_cv_func_gettimeofday != yes; then
21513 HAVE_GETTIMEOFDAY=0
21518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gettimeofday clobbers localtime buffer" >&5
21519 $as_echo_n "checking whether gettimeofday clobbers localtime buffer... " >&6; }
21520 if ${gl_cv_func_gettimeofday_clobber+:} false; then :
21521 $as_echo_n "(cached) " >&6
21523 if test "$cross_compiling" = yes; then :
21524 # When cross-compiling:
21526 # Guess all is fine on glibc systems.
21527 *-gnu*) gl_cv_func_gettimeofday_clobber="guessing no" ;;
21528 # If we don't know, assume the worst.
21529 *) gl_cv_func_gettimeofday_clobber="guessing yes" ;;
21533 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21534 /* end confdefs.h. */
21535 #include <string.h>
21536 #include <sys/time.h>
21538 #include <stdlib.h>
21546 struct tm saved_lt;
21548 lt = localtime (&t);
21550 gettimeofday (&tv, NULL);
21551 return memcmp (lt, &saved_lt, sizeof (struct tm)) != 0;
21557 if ac_fn_c_try_run "$LINENO"; then :
21558 gl_cv_func_gettimeofday_clobber=no
21560 gl_cv_func_gettimeofday_clobber=yes
21562 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21563 conftest.$ac_objext conftest.beam conftest.$ac_ext
21567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_gettimeofday_clobber" >&5
21568 $as_echo "$gl_cv_func_gettimeofday_clobber" >&6; }
21570 case "$gl_cv_func_gettimeofday_clobber" in
21572 REPLACE_GETTIMEOFDAY=1
21575 REPLACE_LOCALTIME=1
21578 $as_echo "#define GETTIMEOFDAY_CLOBBERS_LOCALTIME 1" >>confdefs.h
21583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gettimeofday with POSIX signature" >&5
21584 $as_echo_n "checking for gettimeofday with POSIX signature... " >&6; }
21585 if ${gl_cv_func_gettimeofday_posix_signature+:} false; then :
21586 $as_echo_n "(cached) " >&6
21588 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21589 /* end confdefs.h. */
21590 #include <sys/time.h>
21592 int gettimeofday (struct timeval *restrict, void *restrict);
21597 /* glibc uses struct timezone * rather than the POSIX void *
21598 if _GNU_SOURCE is defined. However, since the only portable
21599 use of gettimeofday uses NULL as the second parameter, and
21600 since the glibc definition is actually more typesafe, it is
21601 not worth wrapping this to get a compliant signature. */
21602 int (*f) (struct timeval *restrict, void *restrict)
21605 return !(x | c.tv_sec | c.tv_usec);
21611 if ac_fn_c_try_compile "$LINENO"; then :
21612 gl_cv_func_gettimeofday_posix_signature=yes
21614 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21615 /* end confdefs.h. */
21616 #include <sys/time.h>
21617 int gettimeofday (struct timeval *restrict, struct timezone *restrict);
21627 if ac_fn_c_try_compile "$LINENO"; then :
21628 gl_cv_func_gettimeofday_posix_signature=almost
21630 gl_cv_func_gettimeofday_posix_signature=no
21632 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21634 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_gettimeofday_posix_signature" >&5
21637 $as_echo "$gl_cv_func_gettimeofday_posix_signature" >&6; }
21638 if test $gl_cv_func_gettimeofday_posix_signature = almost; then
21639 gl_gettimeofday_timezone='struct timezone'
21640 elif test $gl_cv_func_gettimeofday_posix_signature != yes; then
21641 REPLACE_GETTIMEOFDAY=1
21643 if test $REPLACE_STRUCT_TIMEVAL = 1; then
21644 REPLACE_GETTIMEOFDAY=1
21649 cat >>confdefs.h <<_ACEOF
21650 #define GETTIMEOFDAY_TIMEZONE $gl_gettimeofday_timezone
21654 if test $HAVE_GETTIMEOFDAY = 0 || test $REPLACE_GETTIMEOFDAY = 1; then
21663 gl_LIBOBJS="$gl_LIBOBJS gettimeofday.$ac_objext"
21666 for ac_header in sys/timeb.h
21668 ac_fn_c_check_header_mongrel "$LINENO" "sys/timeb.h" "ac_cv_header_sys_timeb_h" "$ac_includes_default"
21669 if test "x$ac_cv_header_sys_timeb_h" = xyes; then :
21670 cat >>confdefs.h <<_ACEOF
21671 #define HAVE_SYS_TIMEB_H 1
21678 for ac_func in _ftime
21680 ac_fn_c_check_func "$LINENO" "_ftime" "ac_cv_func__ftime"
21681 if test "x$ac_cv_func__ftime" = xyes; then :
21682 cat >>confdefs.h <<_ACEOF
21683 #define HAVE__FTIME 1
21696 GNULIB_GETTIMEOFDAY=1
21702 $as_echo "#define GNULIB_TEST_GETTIMEOFDAY 1" >>confdefs.h
21708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler flag to ignore unused libraries" >&5
21709 $as_echo_n "checking for C compiler flag to ignore unused libraries... " >&6; }
21710 if ${gl_cv_prog_c_ignore_unused_libraries+:} false; then :
21711 $as_echo_n "(cached) " >&6
21713 gl_cv_prog_c_ignore_unused_libraries=none
21714 gl_saved_ldflags=$LDFLAGS
21715 gl_saved_libs=$LIBS
21716 # Link with -lm to detect binutils 2.16 bug with --as-needed; see
21717 # <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00131.html>.
21719 # Use long option sequences like '-z ignore' to test for the feature,
21720 # to forestall problems with linkers that have -z, -i, -g, -n, etc. flags.
21721 # GCC + binutils likes '-Wl,--as-needed'.
21722 # GCC + Solaris ld likes '-Wl,-z,ignore'.
21723 # Sun C likes '-Wl,-z,ignore'. '-z ignore' is accepted but has no effect.
21724 # Don't try bare '--as-needed'; nothing likes it and the HP-UX 11.11
21725 # native cc issues annoying warnings and then ignores it,
21726 # which would cause us to incorrectly conclude that it worked.
21727 for gl_flags in '-Wl,--as-needed' \
21732 LDFLAGS="$gl_flags $LDFLAGS"
21733 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21734 /* end confdefs.h. */
21744 if ac_fn_c_try_link "$LINENO"; then :
21745 gl_cv_prog_c_ignore_unused_libraries=$gl_flags
21747 rm -f core conftest.err conftest.$ac_objext \
21748 conftest$ac_exeext conftest.$ac_ext
21749 LDFLAGS=$gl_saved_ldflags
21750 test "$gl_cv_prog_c_ignore_unused_libraries" != none &&
21753 LIBS=$gl_saved_libs
21756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_prog_c_ignore_unused_libraries" >&5
21757 $as_echo "$gl_cv_prog_c_ignore_unused_libraries" >&6; }
21758 IGNORE_UNUSED_LIBRARIES_CFLAGS=
21759 if test "$gl_cv_prog_c_ignore_unused_libraries" != none; then
21760 IGNORE_UNUSED_LIBRARIES_CFLAGS="$gl_cv_prog_c_ignore_unused_libraries"
21766 if test "$gl_threads_api" = posix; then
21767 # OSF/1 4.0 and Mac OS X 10.1 lack the pthread_rwlock_t type and the
21768 # pthread_rwlock_* functions.
21769 ac_fn_c_check_type "$LINENO" "pthread_rwlock_t" "ac_cv_type_pthread_rwlock_t" "#include <pthread.h>
21771 if test "x$ac_cv_type_pthread_rwlock_t" = xyes; then :
21773 $as_echo "#define HAVE_PTHREAD_RWLOCK 1" >>confdefs.h
21777 # glibc defines PTHREAD_MUTEX_RECURSIVE as enum, not as a macro.
21778 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21779 /* end confdefs.h. */
21781 #include <pthread.h>
21786 #if __FreeBSD__ == 4
21787 error "No, in FreeBSD 4.0 recursive mutexes actually don't work."
21788 #elif (defined __ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__ \
21789 && __ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__ < 1070)
21790 error "No, in Mac OS X < 10.7 recursive mutexes actually don't work."
21792 int x = (int)PTHREAD_MUTEX_RECURSIVE;
21800 if ac_fn_c_try_compile "$LINENO"; then :
21802 $as_echo "#define HAVE_PTHREAD_MUTEX_RECURSIVE 1" >>confdefs.h
21805 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21811 cat >>confdefs.h <<_ACEOF
21812 #define GNULIB_LOCK 1
21819 if test $gl_cv_func_malloc_posix = yes; then
21821 $as_echo "#define HAVE_MALLOC_POSIX 1" >>confdefs.h
21827 if test $REPLACE_MALLOC = 1; then
21836 gl_LIBOBJS="$gl_LIBOBJS malloc.$ac_objext"
21844 GNULIB_MALLOC_POSIX=1
21850 $as_echo "#define GNULIB_TEST_MALLOC_POSIX 1" >>confdefs.h
21859 if test $HAVE_MEMCHR = 0 || test $REPLACE_MEMCHR = 1; then
21868 gl_LIBOBJS="$gl_LIBOBJS memchr.$ac_objext"
21871 for ac_header in bp-sym.h
21873 ac_fn_c_check_header_mongrel "$LINENO" "bp-sym.h" "ac_cv_header_bp_sym_h" "$ac_includes_default"
21874 if test "x$ac_cv_header_bp_sym_h" = xyes; then :
21875 cat >>confdefs.h <<_ACEOF
21876 #define HAVE_BP_SYM_H 1
21896 $as_echo "#define GNULIB_TEST_MEMCHR 1" >>confdefs.h
21908 if test $ac_cv_func__set_invalid_parameter_handler = yes; then
21909 HAVE_MSVC_INVALID_PARAMETER_HANDLER=1
21911 $as_echo "#define HAVE_MSVC_INVALID_PARAMETER_HANDLER 1" >>confdefs.h
21914 HAVE_MSVC_INVALID_PARAMETER_HANDLER=0
21918 if test $HAVE_MSVC_INVALID_PARAMETER_HANDLER = 1; then
21927 gl_LIBOBJS="$gl_LIBOBJS msvc-inval.$ac_objext"
21933 if test $HAVE_MSVC_INVALID_PARAMETER_HANDLER = 1; then
21942 gl_LIBOBJS="$gl_LIBOBJS msvc-nothrow.$ac_objext"
21950 for ac_func in raise
21952 ac_fn_c_check_func "$LINENO" "raise" "ac_cv_func_raise"
21953 if test "x$ac_cv_func_raise" = xyes; then :
21954 cat >>confdefs.h <<_ACEOF
21955 #define HAVE_RAISE 1
21961 if test $ac_cv_func_raise = no; then
21964 if test $HAVE_MSVC_INVALID_PARAMETER_HANDLER = 1; then
21971 if test $gl_cv_type_sigset_t = yes; then
21972 ac_fn_c_check_func "$LINENO" "sigprocmask" "ac_cv_func_sigprocmask"
21973 if test "x$ac_cv_func_sigprocmask" = xyes; then :
21974 gl_cv_func_sigprocmask=1
21978 if test -z "$gl_cv_func_sigprocmask"; then
21979 HAVE_POSIX_SIGNALBLOCKING=0
21982 if test $HAVE_POSIX_SIGNALBLOCKING = 0; then
21988 if test $HAVE_RAISE = 0 || test $REPLACE_RAISE = 1; then
21997 gl_LIBOBJS="$gl_LIBOBJS raise.$ac_objext"
22012 $as_echo "#define GNULIB_TEST_RAISE 1" >>confdefs.h
22019 if test $HAVE_MSVC_INVALID_PARAMETER_HANDLER = 1; then
22024 if test $REPLACE_READ = 1; then
22033 gl_LIBOBJS="$gl_LIBOBJS read.$ac_objext"
22048 $as_echo "#define GNULIB_TEST_READ 1" >>confdefs.h
22062 if test $ac_cv_func_setenv = no; then
22065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether setenv validates arguments" >&5
22066 $as_echo_n "checking whether setenv validates arguments... " >&6; }
22067 if ${gl_cv_func_setenv_works+:} false; then :
22068 $as_echo_n "(cached) " >&6
22070 if test "$cross_compiling" = yes; then :
22072 # Guess yes on glibc systems.
22073 *-gnu*) gl_cv_func_setenv_works="guessing yes" ;;
22074 # If we don't know, assume the worst.
22075 *) gl_cv_func_setenv_works="guessing no" ;;
22079 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22080 /* end confdefs.h. */
22082 #include <stdlib.h>
22084 #include <string.h>
22092 if (setenv ("", "", 0) != -1)
22094 else if (errno != EINVAL)
22098 if (setenv ("a", "=", 1) != 0)
22100 else if (strcmp (getenv ("a"), "=") != 0)
22109 if ac_fn_c_try_run "$LINENO"; then :
22110 gl_cv_func_setenv_works=yes
22112 gl_cv_func_setenv_works=no
22114 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22115 conftest.$ac_objext conftest.beam conftest.$ac_ext
22119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_setenv_works" >&5
22120 $as_echo "$gl_cv_func_setenv_works" >&6; }
22121 case "$gl_cv_func_setenv_works" in
22129 if test $HAVE_SETENV = 0 || test $REPLACE_SETENV = 1; then
22138 gl_LIBOBJS="$gl_LIBOBJS setenv.$ac_objext"
22152 $as_echo "#define GNULIB_TEST_SETENV 1" >>confdefs.h
22165 if test $ac_cv_func_sigaction = yes; then
22166 ac_fn_c_check_member "$LINENO" "struct sigaction" "sa_sigaction" "ac_cv_member_struct_sigaction_sa_sigaction" "#include <signal.h>
22168 if test "x$ac_cv_member_struct_sigaction_sa_sigaction" = xyes; then :
22170 cat >>confdefs.h <<_ACEOF
22171 #define HAVE_STRUCT_SIGACTION_SA_SIGACTION 1
22177 if test $ac_cv_member_struct_sigaction_sa_sigaction = no; then
22178 HAVE_STRUCT_SIGACTION_SA_SIGACTION=0
22184 if test $HAVE_SIGACTION = 0; then
22193 gl_LIBOBJS="$gl_LIBOBJS sigaction.$ac_objext"
22210 ac_fn_c_check_type "$LINENO" "siginfo_t" "ac_cv_type_siginfo_t" "
22211 #include <signal.h>
22214 if test "x$ac_cv_type_siginfo_t" = xyes; then :
22216 cat >>confdefs.h <<_ACEOF
22217 #define HAVE_SIGINFO_T 1
22223 if test $ac_cv_type_siginfo_t = no; then
22239 $as_echo "#define GNULIB_TEST_SIGACTION 1" >>confdefs.h
22254 if test $gl_cv_have_include_next = yes; then
22255 gl_cv_next_signal_h='<'signal.h'>'
22257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <signal.h>" >&5
22258 $as_echo_n "checking absolute name of <signal.h>... " >&6; }
22259 if ${gl_cv_next_signal_h+:} false; then :
22260 $as_echo_n "(cached) " >&6
22265 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22266 /* end confdefs.h. */
22267 #include <signal.h>
22270 aix*) gl_absname_cpp="$ac_cpp -C" ;;
22271 *) gl_absname_cpp="$ac_cpp" ;;
22276 gl_dirsep_regex='[/\\]'
22279 gl_dirsep_regex='\/'
22282 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
22283 gl_header_literal_regex=`echo 'signal.h' \
22284 | sed -e "$gl_make_literal_regex_sed"`
22285 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
22286 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
22292 gl_cv_absolute_signal_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
22293 sed -n "$gl_absolute_header_sed"`
22295 gl_header=$gl_cv_absolute_signal_h
22296 gl_cv_next_signal_h='"'$gl_header'"'
22300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_signal_h" >&5
22301 $as_echo "$gl_cv_next_signal_h" >&6; }
22303 NEXT_SIGNAL_H=$gl_cv_next_signal_h
22305 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
22306 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
22307 gl_next_as_first_directive='<'signal.h'>'
22309 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
22310 gl_next_as_first_directive=$gl_cv_next_signal_h
22312 NEXT_AS_FIRST_DIRECTIVE_SIGNAL_H=$gl_next_as_first_directive
22318 # AIX declares sig_atomic_t to already include volatile, and C89 compilers
22319 # then choke on 'volatile sig_atomic_t'. C99 requires that it compile.
22320 ac_fn_c_check_type "$LINENO" "volatile sig_atomic_t" "ac_cv_type_volatile_sig_atomic_t" "
22321 #include <signal.h>
22324 if test "x$ac_cv_type_volatile_sig_atomic_t" = xyes; then :
22327 HAVE_TYPE_VOLATILE_SIG_ATOMIC_T=0
22336 ac_fn_c_check_type "$LINENO" "sighandler_t" "ac_cv_type_sighandler_t" "
22337 #include <signal.h>
22340 if test "x$ac_cv_type_sighandler_t" = xyes; then :
22343 HAVE_SIGHANDLER_T=0
22348 for gl_func in pthread_sigmask sigaction sigaddset sigdelset sigemptyset sigfillset sigismember sigpending sigprocmask; do
22349 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
22350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
22351 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
22352 if eval \${$as_gl_Symbol+:} false; then :
22353 $as_echo_n "(cached) " >&6
22355 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22356 /* end confdefs.h. */
22357 #include <signal.h>
22368 if ac_fn_c_try_compile "$LINENO"; then :
22369 eval "$as_gl_Symbol=yes"
22371 eval "$as_gl_Symbol=no"
22373 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22375 eval ac_res=\$$as_gl_Symbol
22376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
22377 $as_echo "$ac_res" >&6; }
22378 if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
22379 cat >>confdefs.h <<_ACEOF
22380 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
22383 eval ac_cv_have_decl_$gl_func=yes
22391 if test $gl_cv_type_sigset_t = yes; then
22392 ac_fn_c_check_func "$LINENO" "sigprocmask" "ac_cv_func_sigprocmask"
22393 if test "x$ac_cv_func_sigprocmask" = xyes; then :
22394 gl_cv_func_sigprocmask=1
22398 if test -z "$gl_cv_func_sigprocmask"; then
22399 HAVE_POSIX_SIGNALBLOCKING=0
22402 if test $HAVE_POSIX_SIGNALBLOCKING = 0; then
22411 gl_LIBOBJS="$gl_LIBOBJS sigprocmask.$ac_objext"
22420 GNULIB_SIGPROCMASK=1
22426 $as_echo "#define GNULIB_TEST_SIGPROCMASK 1" >>confdefs.h
22431 for ac_header in stdint.h
22433 ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
22434 if test "x$ac_cv_header_stdint_h" = xyes; then :
22435 cat >>confdefs.h <<_ACEOF
22436 #define HAVE_STDINT_H 1
22443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SIZE_MAX" >&5
22444 $as_echo_n "checking for SIZE_MAX... " >&6; }
22445 if ${gl_cv_size_max+:} false; then :
22446 $as_echo_n "(cached) " >&6
22450 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22451 /* end confdefs.h. */
22453 #include <limits.h>
22455 #include <stdint.h>
22462 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22463 $EGREP "Found it" >/dev/null 2>&1; then :
22468 if test -z "$gl_cv_size_max"; then
22469 if ac_fn_c_compute_int "$LINENO" "sizeof (size_t) * CHAR_BIT - 1" "size_t_bits_minus_1" "#include <stddef.h>
22470 #include <limits.h>"; then :
22473 size_t_bits_minus_1=
22476 if ac_fn_c_compute_int "$LINENO" "sizeof (size_t) <= sizeof (unsigned int)" "fits_in_uint" "#include <stddef.h>"; then :
22482 if test -n "$size_t_bits_minus_1" && test -n "$fits_in_uint"; then
22483 if test $fits_in_uint = 1; then
22484 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22485 /* end confdefs.h. */
22486 #include <stddef.h>
22488 extern unsigned long foo;
22498 if ac_fn_c_try_compile "$LINENO"; then :
22501 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22503 if test $fits_in_uint = 1; then
22504 gl_cv_size_max="(((1U << $size_t_bits_minus_1) - 1) * 2 + 1)"
22506 gl_cv_size_max="(((1UL << $size_t_bits_minus_1) - 1) * 2 + 1)"
22509 gl_cv_size_max='((size_t)~(size_t)0)'
22514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_size_max" >&5
22515 $as_echo "$gl_cv_size_max" >&6; }
22516 if test "$gl_cv_size_max" != yes; then
22518 cat >>confdefs.h <<_ACEOF
22519 #define SIZE_MAX $gl_cv_size_max
22527 gl_cv_func_snprintf_usable=no
22528 for ac_func in snprintf
22530 ac_fn_c_check_func "$LINENO" "snprintf" "ac_cv_func_snprintf"
22531 if test "x$ac_cv_func_snprintf" = xyes; then :
22532 cat >>confdefs.h <<_ACEOF
22533 #define HAVE_SNPRINTF 1
22539 if test $ac_cv_func_snprintf = yes; then
22543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether snprintf respects a size of 1" >&5
22544 $as_echo_n "checking whether snprintf respects a size of 1... " >&6; }
22545 if ${gl_cv_func_snprintf_size1+:} false; then :
22546 $as_echo_n "(cached) " >&6
22549 if test "$cross_compiling" = yes; then :
22550 gl_cv_func_snprintf_size1="guessing yes"
22552 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22553 /* end confdefs.h. */
22557 # define my_snprintf snprintf
22559 # include <stdarg.h>
22560 static int my_snprintf (char *buf, int size, const char *format, ...)
22564 va_start (args, format);
22565 ret = vsnprintf (buf, size, format, args);
22572 static char buf[8] = { 'D', 'E', 'A', 'D', 'B', 'E', 'E', 'F' };
22573 my_snprintf (buf, 1, "%d", 12345);
22574 return buf[1] != 'E';
22577 if ac_fn_c_try_run "$LINENO"; then :
22578 gl_cv_func_snprintf_size1=yes
22580 gl_cv_func_snprintf_size1=no
22582 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22583 conftest.$ac_objext conftest.beam conftest.$ac_ext
22588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_snprintf_size1" >&5
22589 $as_echo "$gl_cv_func_snprintf_size1" >&6; }
22591 case "$gl_cv_func_snprintf_size1" in
22594 case "$gl_cv_func_snprintf_retval_c99" in
22598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether printf supports POSIX/XSI format strings with positions" >&5
22599 $as_echo_n "checking whether printf supports POSIX/XSI format strings with positions... " >&6; }
22600 if ${gl_cv_func_printf_positions+:} false; then :
22601 $as_echo_n "(cached) " >&6
22604 if test "$cross_compiling" = yes; then :
22607 netbsd[1-3]* | netbsdelf[1-3]* | netbsdaout[1-3]* | netbsdcoff[1-3]*)
22608 gl_cv_func_printf_positions="guessing no";;
22609 beos*) gl_cv_func_printf_positions="guessing no";;
22610 mingw* | pw*) gl_cv_func_printf_positions="guessing no";;
22611 *) gl_cv_func_printf_positions="guessing yes";;
22615 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22616 /* end confdefs.h. */
22619 #include <string.h>
22620 /* The string "%2$d %1$d", with dollar characters protected from the shell's
22621 dollar expansion (possibly an autoconf bug). */
22622 static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' };
22623 static char buf[100];
22626 sprintf (buf, format, 33, 55);
22627 return (strcmp (buf, "55 33") != 0);
22630 if ac_fn_c_try_run "$LINENO"; then :
22631 gl_cv_func_printf_positions=yes
22633 gl_cv_func_printf_positions=no
22635 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22636 conftest.$ac_objext conftest.beam conftest.$ac_ext
22641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_printf_positions" >&5
22642 $as_echo "$gl_cv_func_printf_positions" >&6; }
22644 case "$gl_cv_func_printf_positions" in
22646 gl_cv_func_snprintf_usable=yes
22654 if test $gl_cv_func_snprintf_usable = no; then
22665 gl_LIBOBJS="$gl_LIBOBJS snprintf.$ac_objext"
22667 if test $ac_cv_func_snprintf = yes; then
22680 if test $ac_cv_have_decl_snprintf = no; then
22681 HAVE_DECL_SNPRINTF=0
22695 $as_echo "#define GNULIB_TEST_SNPRINTF 1" >>confdefs.h
22701 cat >>confdefs.h <<_ACEOF
22702 #define GNULIB_SNPRINTF 1
22707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ssize_t" >&5
22708 $as_echo_n "checking for ssize_t... " >&6; }
22709 if ${gt_cv_ssize_t+:} false; then :
22710 $as_echo_n "(cached) " >&6
22712 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22713 /* end confdefs.h. */
22714 #include <sys/types.h>
22718 int x = sizeof (ssize_t *) + sizeof (ssize_t);
22724 if ac_fn_c_try_compile "$LINENO"; then :
22729 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_ssize_t" >&5
22732 $as_echo "$gt_cv_ssize_t" >&6; }
22733 if test $gt_cv_ssize_t = no; then
22735 $as_echo "#define ssize_t int" >>confdefs.h
22741 NEXT_STDARG_H='<stdarg.h>'
22742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for va_copy" >&5
22743 $as_echo_n "checking for va_copy... " >&6; }
22744 if ${gl_cv_func_va_copy+:} false; then :
22745 $as_echo_n "(cached) " >&6
22748 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22749 /* end confdefs.h. */
22750 #include <stdarg.h>
22756 void (*func) (va_list, va_list) = va_copy;
22763 if ac_fn_c_try_compile "$LINENO"; then :
22764 gl_cv_func_va_copy=yes
22766 gl_cv_func_va_copy=no
22768 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_va_copy" >&5
22772 $as_echo "$gl_cv_func_va_copy" >&6; }
22773 if test $gl_cv_func_va_copy = no; then
22774 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22775 /* end confdefs.h. */
22776 #if defined _AIX && !defined __GNUC__
22781 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22782 $EGREP "vaccine" >/dev/null 2>&1; then :
22789 if test $gl_aixcc = yes; then
22799 if test $gl_cv_have_include_next = yes; then
22800 gl_cv_next_stdarg_h='<'stdarg.h'>'
22802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdarg.h>" >&5
22803 $as_echo_n "checking absolute name of <stdarg.h>... " >&6; }
22804 if ${gl_cv_next_stdarg_h+:} false; then :
22805 $as_echo_n "(cached) " >&6
22810 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22811 /* end confdefs.h. */
22812 #include <stdarg.h>
22815 aix*) gl_absname_cpp="$ac_cpp -C" ;;
22816 *) gl_absname_cpp="$ac_cpp" ;;
22821 gl_dirsep_regex='[/\\]'
22824 gl_dirsep_regex='\/'
22827 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
22828 gl_header_literal_regex=`echo 'stdarg.h' \
22829 | sed -e "$gl_make_literal_regex_sed"`
22830 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
22831 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
22837 gl_cv_absolute_stdarg_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
22838 sed -n "$gl_absolute_header_sed"`
22840 gl_header=$gl_cv_absolute_stdarg_h
22841 gl_cv_next_stdarg_h='"'$gl_header'"'
22845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdarg_h" >&5
22846 $as_echo "$gl_cv_next_stdarg_h" >&6; }
22848 NEXT_STDARG_H=$gl_cv_next_stdarg_h
22850 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
22851 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
22852 gl_next_as_first_directive='<'stdarg.h'>'
22854 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
22855 gl_next_as_first_directive=$gl_cv_next_stdarg_h
22857 NEXT_AS_FIRST_DIRECTIVE_STDARG_H=$gl_next_as_first_directive
22862 if test "$gl_cv_next_stdarg_h" = '""'; then
22863 gl_cv_next_stdarg_h='"///usr/include/stdarg.h"'
22864 NEXT_STDARG_H="$gl_cv_next_stdarg_h"
22868 saved_as_echo_n="$as_echo_n"
22870 if ${gl_cv_func___va_copy+:} false; then :
22871 $as_echo_n "(cached) " >&6
22874 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22875 /* end confdefs.h. */
22876 #include <stdarg.h>
22889 if ac_fn_c_try_compile "$LINENO"; then :
22890 gl_cv_func___va_copy=yes
22892 gl_cv_func___va_copy=no
22894 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22897 as_echo_n="$saved_as_echo_n"
22899 if test $gl_cv_func___va_copy = yes; then
22901 $as_echo "#define va_copy __va_copy" >>confdefs.h
22906 $as_echo "#define va_copy gl_va_copy" >>confdefs.h
22912 if test -n "$STDARG_H"; then
22913 GL_GENERATE_STDARG_H_TRUE=
22914 GL_GENERATE_STDARG_H_FALSE='#'
22916 GL_GENERATE_STDARG_H_TRUE='#'
22917 GL_GENERATE_STDARG_H_FALSE=
22925 # Define two additional variables used in the Makefile substitution.
22927 if test "$ac_cv_header_stdbool_h" = yes; then
22930 STDBOOL_H='stdbool.h'
22933 if test -n "$STDBOOL_H"; then
22934 GL_GENERATE_STDBOOL_H_TRUE=
22935 GL_GENERATE_STDBOOL_H_FALSE='#'
22937 GL_GENERATE_STDBOOL_H_TRUE='#'
22938 GL_GENERATE_STDBOOL_H_FALSE=
22942 if test "$ac_cv_type__Bool" = yes; then
22953 if test $gt_cv_c_wchar_t = no; then
22957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NULL can be used in arbitrary expressions" >&5
22958 $as_echo_n "checking whether NULL can be used in arbitrary expressions... " >&6; }
22959 if ${gl_cv_decl_null_works+:} false; then :
22960 $as_echo_n "(cached) " >&6
22962 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22963 /* end confdefs.h. */
22964 #include <stddef.h>
22965 int test[2 * (sizeof NULL == sizeof (void *)) -1];
22975 if ac_fn_c_try_compile "$LINENO"; then :
22976 gl_cv_decl_null_works=yes
22978 gl_cv_decl_null_works=no
22980 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_decl_null_works" >&5
22983 $as_echo "$gl_cv_decl_null_works" >&6; }
22984 if test $gl_cv_decl_null_works = no; then
22989 if test -n "$STDDEF_H"; then
22990 GL_GENERATE_STDDEF_H_TRUE=
22991 GL_GENERATE_STDDEF_H_FALSE='#'
22993 GL_GENERATE_STDDEF_H_TRUE='#'
22994 GL_GENERATE_STDDEF_H_FALSE=
22997 if test -n "$STDDEF_H"; then
23006 if test $gl_cv_have_include_next = yes; then
23007 gl_cv_next_stddef_h='<'stddef.h'>'
23009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stddef.h>" >&5
23010 $as_echo_n "checking absolute name of <stddef.h>... " >&6; }
23011 if ${gl_cv_next_stddef_h+:} false; then :
23012 $as_echo_n "(cached) " >&6
23017 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23018 /* end confdefs.h. */
23019 #include <stddef.h>
23022 aix*) gl_absname_cpp="$ac_cpp -C" ;;
23023 *) gl_absname_cpp="$ac_cpp" ;;
23028 gl_dirsep_regex='[/\\]'
23031 gl_dirsep_regex='\/'
23034 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
23035 gl_header_literal_regex=`echo 'stddef.h' \
23036 | sed -e "$gl_make_literal_regex_sed"`
23037 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
23038 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
23044 gl_cv_absolute_stddef_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
23045 sed -n "$gl_absolute_header_sed"`
23047 gl_header=$gl_cv_absolute_stddef_h
23048 gl_cv_next_stddef_h='"'$gl_header'"'
23052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stddef_h" >&5
23053 $as_echo "$gl_cv_next_stddef_h" >&6; }
23055 NEXT_STDDEF_H=$gl_cv_next_stddef_h
23057 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
23058 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
23059 gl_next_as_first_directive='<'stddef.h'>'
23061 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
23062 gl_next_as_first_directive=$gl_cv_next_stddef_h
23064 NEXT_AS_FIRST_DIRECTIVE_STDDEF_H=$gl_next_as_first_directive
23082 if test $gl_cv_have_include_next = yes; then
23083 gl_cv_next_stdio_h='<'stdio.h'>'
23085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdio.h>" >&5
23086 $as_echo_n "checking absolute name of <stdio.h>... " >&6; }
23087 if ${gl_cv_next_stdio_h+:} false; then :
23088 $as_echo_n "(cached) " >&6
23093 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23094 /* end confdefs.h. */
23098 aix*) gl_absname_cpp="$ac_cpp -C" ;;
23099 *) gl_absname_cpp="$ac_cpp" ;;
23104 gl_dirsep_regex='[/\\]'
23107 gl_dirsep_regex='\/'
23110 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
23111 gl_header_literal_regex=`echo 'stdio.h' \
23112 | sed -e "$gl_make_literal_regex_sed"`
23113 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
23114 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
23120 gl_cv_absolute_stdio_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
23121 sed -n "$gl_absolute_header_sed"`
23123 gl_header=$gl_cv_absolute_stdio_h
23124 gl_cv_next_stdio_h='"'$gl_header'"'
23128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdio_h" >&5
23129 $as_echo "$gl_cv_next_stdio_h" >&6; }
23131 NEXT_STDIO_H=$gl_cv_next_stdio_h
23133 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
23134 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
23135 gl_next_as_first_directive='<'stdio.h'>'
23137 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
23138 gl_next_as_first_directive=$gl_cv_next_stdio_h
23140 NEXT_AS_FIRST_DIRECTIVE_STDIO_H=$gl_next_as_first_directive
23149 cat >>confdefs.h <<_ACEOF
23150 #define GNULIB_FSCANF 1
23157 cat >>confdefs.h <<_ACEOF
23158 #define GNULIB_SCANF 1
23183 for gl_func in dprintf fpurge fseeko ftello getdelim getline gets pclose popen renameat snprintf tmpfile vdprintf vsnprintf; do
23184 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
23185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
23186 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
23187 if eval \${$as_gl_Symbol+:} false; then :
23188 $as_echo_n "(cached) " >&6
23190 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23191 /* end confdefs.h. */
23203 if ac_fn_c_try_compile "$LINENO"; then :
23204 eval "$as_gl_Symbol=yes"
23206 eval "$as_gl_Symbol=no"
23208 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23210 eval ac_res=\$$as_gl_Symbol
23211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
23212 $as_echo "$ac_res" >&6; }
23213 if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
23214 cat >>confdefs.h <<_ACEOF
23215 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
23218 eval ac_cv_have_decl_$gl_func=yes
23233 if test $gl_cv_have_include_next = yes; then
23234 gl_cv_next_stdlib_h='<'stdlib.h'>'
23236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdlib.h>" >&5
23237 $as_echo_n "checking absolute name of <stdlib.h>... " >&6; }
23238 if ${gl_cv_next_stdlib_h+:} false; then :
23239 $as_echo_n "(cached) " >&6
23244 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23245 /* end confdefs.h. */
23246 #include <stdlib.h>
23249 aix*) gl_absname_cpp="$ac_cpp -C" ;;
23250 *) gl_absname_cpp="$ac_cpp" ;;
23255 gl_dirsep_regex='[/\\]'
23258 gl_dirsep_regex='\/'
23261 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
23262 gl_header_literal_regex=`echo 'stdlib.h' \
23263 | sed -e "$gl_make_literal_regex_sed"`
23264 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
23265 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
23271 gl_cv_absolute_stdlib_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
23272 sed -n "$gl_absolute_header_sed"`
23274 gl_header=$gl_cv_absolute_stdlib_h
23275 gl_cv_next_stdlib_h='"'$gl_header'"'
23279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdlib_h" >&5
23280 $as_echo "$gl_cv_next_stdlib_h" >&6; }
23282 NEXT_STDLIB_H=$gl_cv_next_stdlib_h
23284 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
23285 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
23286 gl_next_as_first_directive='<'stdlib.h'>'
23288 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
23289 gl_next_as_first_directive=$gl_cv_next_stdlib_h
23291 NEXT_AS_FIRST_DIRECTIVE_STDLIB_H=$gl_next_as_first_directive
23298 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
23299 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
23300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
23301 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
23302 if eval \${$as_gl_Symbol+:} false; then :
23303 $as_echo_n "(cached) " >&6
23305 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23306 /* end confdefs.h. */
23307 #include <stdlib.h>
23308 #if HAVE_SYS_LOADAVG_H
23309 # include <sys/loadavg.h>
23312 # include <random.h>
23324 if ac_fn_c_try_compile "$LINENO"; then :
23325 eval "$as_gl_Symbol=yes"
23327 eval "$as_gl_Symbol=no"
23329 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23331 eval ac_res=\$$as_gl_Symbol
23332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
23333 $as_echo "$ac_res" >&6; }
23334 if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
23335 cat >>confdefs.h <<_ACEOF
23336 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
23339 eval ac_cv_have_decl_$gl_func=yes
23349 if test "$ERRNO_H:$REPLACE_STRERROR_0" = :0; then
23350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strerror function" >&5
23351 $as_echo_n "checking for working strerror function... " >&6; }
23352 if ${gl_cv_func_working_strerror+:} false; then :
23353 $as_echo_n "(cached) " >&6
23355 if test "$cross_compiling" = yes; then :
23357 # Guess yes on glibc systems.
23358 *-gnu*) gl_cv_func_working_strerror="guessing yes" ;;
23359 # If we don't know, assume the worst.
23360 *) gl_cv_func_working_strerror="guessing no" ;;
23364 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23365 /* end confdefs.h. */
23366 #include <string.h>
23371 if (!*strerror (-2)) return 1;
23376 if ac_fn_c_try_run "$LINENO"; then :
23377 gl_cv_func_working_strerror=yes
23379 gl_cv_func_working_strerror=no
23381 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23382 conftest.$ac_objext conftest.beam conftest.$ac_ext
23387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_working_strerror" >&5
23388 $as_echo "$gl_cv_func_working_strerror" >&6; }
23389 case "$gl_cv_func_working_strerror" in
23400 if test $REPLACE_STRERROR = 1; then
23409 gl_LIBOBJS="$gl_LIBOBJS strerror.$ac_objext"
23414 cat >>confdefs.h <<_ACEOF
23415 #define GNULIB_STRERROR 1
23430 $as_echo "#define GNULIB_TEST_STRERROR 1" >>confdefs.h
23436 if test -n "$ERRNO_H" || test $REPLACE_STRERROR_0 = 1; then
23445 gl_LIBOBJS="$gl_LIBOBJS strerror-override.$ac_objext"
23457 if test $ac_cv_header_sys_socket_h != yes; then
23458 for ac_header in winsock2.h
23460 ac_fn_c_check_header_mongrel "$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
23461 if test "x$ac_cv_header_winsock2_h" = xyes; then :
23462 cat >>confdefs.h <<_ACEOF
23463 #define HAVE_WINSOCK2_H 1
23471 if test "$ac_cv_header_winsock2_h" = yes; then
23473 UNISTD_H_HAVE_WINSOCK2_H=1
23474 SYS_IOCTL_H_HAVE_WINSOCK2_H=1
23502 if test $ac_cv_have_decl_strndup = no; then
23503 HAVE_DECL_STRNDUP=0
23506 if test $ac_cv_func_strndup = yes; then
23508 # AIX 4.3.3, AIX 5.1 have a function that fails to add the terminating '\0'.
23509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strndup" >&5
23510 $as_echo_n "checking for working strndup... " >&6; }
23511 if ${gl_cv_func_strndup_works+:} false; then :
23512 $as_echo_n "(cached) " >&6
23514 if test "$cross_compiling" = yes; then :
23517 aix | aix[3-6]*) gl_cv_func_strndup_works="guessing no";;
23518 *) gl_cv_func_strndup_works="guessing yes";;
23522 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23523 /* end confdefs.h. */
23525 #include <string.h>
23526 #include <stdlib.h>
23531 #if !HAVE_DECL_STRNDUP
23536 char *strndup (const char *, size_t);
23539 s = strndup ("some longer string", 15);
23541 s = strndup ("shorter string", 13);
23542 return s[13] != '\0';
23547 if ac_fn_c_try_run "$LINENO"; then :
23548 gl_cv_func_strndup_works=yes
23550 gl_cv_func_strndup_works=no
23552 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23553 conftest.$ac_objext conftest.beam conftest.$ac_ext
23557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_strndup_works" >&5
23558 $as_echo "$gl_cv_func_strndup_works" >&6; }
23559 case $gl_cv_func_strndup_works in
23560 *no) REPLACE_STRNDUP=1 ;;
23566 if test $HAVE_STRNDUP = 0 || test $REPLACE_STRNDUP = 1; then
23575 gl_LIBOBJS="$gl_LIBOBJS strndup.$ac_objext"
23589 $as_echo "#define GNULIB_TEST_STRNDUP 1" >>confdefs.h
23605 if test $ac_cv_have_decl_strnlen = no; then
23606 HAVE_DECL_STRNLEN=0
23609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strnlen" >&5
23610 $as_echo_n "checking for working strnlen... " >&6; }
23611 if ${ac_cv_func_strnlen_working+:} false; then :
23612 $as_echo_n "(cached) " >&6
23614 if test "$cross_compiling" = yes; then :
23615 # Guess no on AIX systems, yes otherwise.
23617 aix*) ac_cv_func_strnlen_working=no;;
23618 *) ac_cv_func_strnlen_working=yes;;
23621 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23622 /* end confdefs.h. */
23623 $ac_includes_default
23629 #define S_LEN (sizeof S - 1)
23631 /* At least one implementation is buggy: that of AIX 4.3 would
23632 give strnlen (S, 1) == 3. */
23635 for (i = 0; i < S_LEN + 1; ++i)
23637 int expected = i <= S_LEN ? i : S_LEN;
23638 if (strnlen (S, i) != expected)
23647 if ac_fn_c_try_run "$LINENO"; then :
23648 ac_cv_func_strnlen_working=yes
23650 ac_cv_func_strnlen_working=no
23652 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23653 conftest.$ac_objext conftest.beam conftest.$ac_ext
23657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strnlen_working" >&5
23658 $as_echo "$ac_cv_func_strnlen_working" >&6; }
23659 test $ac_cv_func_strnlen_working = no && :
23662 if test $ac_cv_func_strnlen_working = no; then
23667 if test $HAVE_DECL_STRNLEN = 0 || test $REPLACE_STRNLEN = 1; then
23676 gl_LIBOBJS="$gl_LIBOBJS strnlen.$ac_objext"
23691 $as_echo "#define GNULIB_TEST_STRNLEN 1" >>confdefs.h
23707 if test $ac_cv_have_decl_strsignal = no; then
23708 HAVE_DECL_STRSIGNAL=0
23711 for ac_func in strsignal
23713 ac_fn_c_check_func "$LINENO" "strsignal" "ac_cv_func_strsignal"
23714 if test "x$ac_cv_func_strsignal" = xyes; then :
23715 cat >>confdefs.h <<_ACEOF
23716 #define HAVE_STRSIGNAL 1
23722 if test $ac_cv_func_strsignal = yes; then
23724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strsignal always returns a string" >&5
23725 $as_echo_n "checking whether strsignal always returns a string... " >&6; }
23726 if ${gl_cv_func_working_strsignal+:} false; then :
23727 $as_echo_n "(cached) " >&6
23729 if test "$cross_compiling" = yes; then :
23731 solaris* | aix*) gl_cv_func_working_strsignal=no;;
23732 *) gl_cv_func_working_strsignal="guessing yes";;
23735 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23736 /* end confdefs.h. */
23737 #include <string.h>
23738 #include <unistd.h> /* NetBSD 5.0 declares it in wrong header. */
23744 char *s = strsignal (-1);
23745 if (s == (char *) 0)
23747 if (s == (char *) -1)
23755 if ac_fn_c_try_run "$LINENO"; then :
23756 gl_cv_func_working_strsignal=yes
23758 gl_cv_func_working_strsignal=no
23760 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23761 conftest.$ac_objext conftest.beam conftest.$ac_ext
23765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_working_strsignal" >&5
23766 $as_echo "$gl_cv_func_working_strsignal" >&6; }
23767 if test "$gl_cv_func_working_strsignal" = no; then
23768 REPLACE_STRSIGNAL=1
23774 if test $HAVE_STRSIGNAL = 0 || test $REPLACE_STRSIGNAL = 1; then
23783 gl_LIBOBJS="$gl_LIBOBJS strsignal.$ac_objext"
23794 ac_fn_c_check_decl "$LINENO" "_sys_siglist" "ac_cv_have_decl__sys_siglist" "#include <signal.h>
23796 if test "x$ac_cv_have_decl__sys_siglist" = xyes; then :
23802 cat >>confdefs.h <<_ACEOF
23803 #define HAVE_DECL__SYS_SIGLIST $ac_have_decl
23819 $as_echo "#define GNULIB_TEST_STRSIGNAL 1" >>confdefs.h
23826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <sys/select.h> is self-contained" >&5
23827 $as_echo_n "checking whether <sys/select.h> is self-contained... " >&6; }
23828 if ${gl_cv_header_sys_select_h_selfcontained+:} false; then :
23829 $as_echo_n "(cached) " >&6
23832 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23833 /* end confdefs.h. */
23834 #include <sys/select.h>
23843 if ac_fn_c_try_compile "$LINENO"; then :
23844 gl_cv_header_sys_select_h_selfcontained=yes
23846 gl_cv_header_sys_select_h_selfcontained=no
23848 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23849 if test $gl_cv_header_sys_select_h_selfcontained = yes; then
23850 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23851 /* end confdefs.h. */
23852 #include <sys/select.h>
23856 int memset; int bzero;
23862 if ac_fn_c_try_compile "$LINENO"; then :
23863 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23864 /* end confdefs.h. */
23865 #include <sys/select.h>
23871 #define memset nonexistent_memset
23876 void *memset (void *, int, unsigned long);
23878 #define bzero nonexistent_bzero
23883 void bzero (void *, unsigned long);
23892 if ac_fn_c_try_link "$LINENO"; then :
23895 gl_cv_header_sys_select_h_selfcontained=no
23897 rm -f core conftest.err conftest.$ac_objext \
23898 conftest$ac_exeext conftest.$ac_ext
23901 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_sys_select_h_selfcontained" >&5
23906 $as_echo "$gl_cv_header_sys_select_h_selfcontained" >&6; }
23922 if test $gl_cv_have_include_next = yes; then
23923 gl_cv_next_sys_select_h='<'sys/select.h'>'
23925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/select.h>" >&5
23926 $as_echo_n "checking absolute name of <sys/select.h>... " >&6; }
23927 if ${gl_cv_next_sys_select_h+:} false; then :
23928 $as_echo_n "(cached) " >&6
23931 if test $ac_cv_header_sys_select_h = yes; then
23936 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23937 /* end confdefs.h. */
23938 #include <sys/select.h>
23941 aix*) gl_absname_cpp="$ac_cpp -C" ;;
23942 *) gl_absname_cpp="$ac_cpp" ;;
23947 gl_dirsep_regex='[/\\]'
23950 gl_dirsep_regex='\/'
23953 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
23954 gl_header_literal_regex=`echo 'sys/select.h' \
23955 | sed -e "$gl_make_literal_regex_sed"`
23956 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
23957 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
23963 gl_cv_absolute_sys_select_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
23964 sed -n "$gl_absolute_header_sed"`
23966 gl_header=$gl_cv_absolute_sys_select_h
23967 gl_cv_next_sys_select_h='"'$gl_header'"'
23969 gl_cv_next_sys_select_h='<'sys/select.h'>'
23974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_select_h" >&5
23975 $as_echo "$gl_cv_next_sys_select_h" >&6; }
23977 NEXT_SYS_SELECT_H=$gl_cv_next_sys_select_h
23979 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
23980 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
23981 gl_next_as_first_directive='<'sys/select.h'>'
23983 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
23984 gl_next_as_first_directive=$gl_cv_next_sys_select_h
23986 NEXT_AS_FIRST_DIRECTIVE_SYS_SELECT_H=$gl_next_as_first_directive
23991 if test $ac_cv_header_sys_select_h = yes; then
23992 HAVE_SYS_SELECT_H=1
23994 HAVE_SYS_SELECT_H=0
24007 if test $ac_cv_header_sys_socket_h != yes; then
24008 for ac_header in winsock2.h
24010 ac_fn_c_check_header_mongrel "$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
24011 if test "x$ac_cv_header_winsock2_h" = xyes; then :
24012 cat >>confdefs.h <<_ACEOF
24013 #define HAVE_WINSOCK2_H 1
24021 if test "$ac_cv_header_winsock2_h" = yes; then
24023 UNISTD_H_HAVE_WINSOCK2_H=1
24024 SYS_IOCTL_H_HAVE_WINSOCK2_H=1
24032 for gl_func in pselect select; do
24033 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
24034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
24035 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
24036 if eval \${$as_gl_Symbol+:} false; then :
24037 $as_echo_n "(cached) " >&6
24039 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24040 /* end confdefs.h. */
24042 /* Some systems require prerequisite headers. */
24043 #include <sys/types.h>
24044 #if !(defined __GLIBC__ && !defined __UCLIBC__) && HAVE_SYS_TIME_H
24045 # include <sys/time.h>
24047 #include <sys/select.h>
24058 if ac_fn_c_try_compile "$LINENO"; then :
24059 eval "$as_gl_Symbol=yes"
24061 eval "$as_gl_Symbol=no"
24063 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24065 eval ac_res=\$$as_gl_Symbol
24066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
24067 $as_echo "$ac_res" >&6; }
24068 if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
24069 cat >>confdefs.h <<_ACEOF
24070 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
24073 eval ac_cv_have_decl_$gl_func=yes
24099 if test $gl_cv_have_include_next = yes; then
24100 gl_cv_next_sys_stat_h='<'sys/stat.h'>'
24102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/stat.h>" >&5
24103 $as_echo_n "checking absolute name of <sys/stat.h>... " >&6; }
24104 if ${gl_cv_next_sys_stat_h+:} false; then :
24105 $as_echo_n "(cached) " >&6
24108 if test $ac_cv_header_sys_stat_h = yes; then
24113 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24114 /* end confdefs.h. */
24115 #include <sys/stat.h>
24118 aix*) gl_absname_cpp="$ac_cpp -C" ;;
24119 *) gl_absname_cpp="$ac_cpp" ;;
24124 gl_dirsep_regex='[/\\]'
24127 gl_dirsep_regex='\/'
24130 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
24131 gl_header_literal_regex=`echo 'sys/stat.h' \
24132 | sed -e "$gl_make_literal_regex_sed"`
24133 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
24134 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
24140 gl_cv_absolute_sys_stat_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
24141 sed -n "$gl_absolute_header_sed"`
24143 gl_header=$gl_cv_absolute_sys_stat_h
24144 gl_cv_next_sys_stat_h='"'$gl_header'"'
24146 gl_cv_next_sys_stat_h='<'sys/stat.h'>'
24151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_stat_h" >&5
24152 $as_echo "$gl_cv_next_sys_stat_h" >&6; }
24154 NEXT_SYS_STAT_H=$gl_cv_next_sys_stat_h
24156 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
24157 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
24158 gl_next_as_first_directive='<'sys/stat.h'>'
24160 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
24161 gl_next_as_first_directive=$gl_cv_next_sys_stat_h
24163 NEXT_AS_FIRST_DIRECTIVE_SYS_STAT_H=$gl_next_as_first_directive
24175 if test $WINDOWS_64_BIT_ST_SIZE = 1; then
24177 $as_echo "#define _GL_WINDOWS_64_BIT_ST_SIZE 1" >>confdefs.h
24181 ac_fn_c_check_type "$LINENO" "nlink_t" "ac_cv_type_nlink_t" "#include <sys/types.h>
24182 #include <sys/stat.h>
24184 if test "x$ac_cv_type_nlink_t" = xyes; then :
24188 $as_echo "#define nlink_t int" >>confdefs.h
24194 for gl_func in fchmodat fstat fstatat futimens lchmod lstat mkdirat mkfifo mkfifoat mknod mknodat stat utimensat; do
24195 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
24196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
24197 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
24198 if eval \${$as_gl_Symbol+:} false; then :
24199 $as_echo_n "(cached) " >&6
24201 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24202 /* end confdefs.h. */
24203 #include <sys/stat.h>
24214 if ac_fn_c_try_compile "$LINENO"; then :
24215 eval "$as_gl_Symbol=yes"
24217 eval "$as_gl_Symbol=no"
24219 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24221 eval ac_res=\$$as_gl_Symbol
24222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
24223 $as_echo "$ac_res" >&6; }
24224 if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
24225 cat >>confdefs.h <<_ACEOF
24226 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
24229 eval ac_cv_have_decl_$gl_func=yes
24259 if test $gl_cv_have_include_next = yes; then
24260 gl_cv_next_sys_wait_h='<'sys/wait.h'>'
24262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/wait.h>" >&5
24263 $as_echo_n "checking absolute name of <sys/wait.h>... " >&6; }
24264 if ${gl_cv_next_sys_wait_h+:} false; then :
24265 $as_echo_n "(cached) " >&6
24268 if test $ac_cv_header_sys_wait_h = yes; then
24273 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24274 /* end confdefs.h. */
24275 #include <sys/wait.h>
24278 aix*) gl_absname_cpp="$ac_cpp -C" ;;
24279 *) gl_absname_cpp="$ac_cpp" ;;
24284 gl_dirsep_regex='[/\\]'
24287 gl_dirsep_regex='\/'
24290 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
24291 gl_header_literal_regex=`echo 'sys/wait.h' \
24292 | sed -e "$gl_make_literal_regex_sed"`
24293 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
24294 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
24300 gl_cv_absolute_sys_wait_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
24301 sed -n "$gl_absolute_header_sed"`
24303 gl_header=$gl_cv_absolute_sys_wait_h
24304 gl_cv_next_sys_wait_h='"'$gl_header'"'
24306 gl_cv_next_sys_wait_h='<'sys/wait.h'>'
24311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_wait_h" >&5
24312 $as_echo "$gl_cv_next_sys_wait_h" >&6; }
24314 NEXT_SYS_WAIT_H=$gl_cv_next_sys_wait_h
24316 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
24317 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
24318 gl_next_as_first_directive='<'sys/wait.h'>'
24320 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
24321 gl_next_as_first_directive=$gl_cv_next_sys_wait_h
24323 NEXT_AS_FIRST_DIRECTIVE_SYS_WAIT_H=$gl_next_as_first_directive
24332 for gl_func in waitpid; do
24333 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
24334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
24335 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
24336 if eval \${$as_gl_Symbol+:} false; then :
24337 $as_echo_n "(cached) " >&6
24339 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24340 /* end confdefs.h. */
24341 #include <sys/wait.h>
24351 if ac_fn_c_try_compile "$LINENO"; then :
24352 eval "$as_gl_Symbol=yes"
24354 eval "$as_gl_Symbol=no"
24356 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24358 eval ac_res=\$$as_gl_Symbol
24359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
24360 $as_echo "$ac_res" >&6; }
24361 if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
24362 cat >>confdefs.h <<_ACEOF
24363 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
24366 eval ac_cv_have_decl_$gl_func=yes
24400 if test $gl_cv_have_include_next = yes; then
24401 gl_cv_next_unistd_h='<'unistd.h'>'
24403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <unistd.h>" >&5
24404 $as_echo_n "checking absolute name of <unistd.h>... " >&6; }
24405 if ${gl_cv_next_unistd_h+:} false; then :
24406 $as_echo_n "(cached) " >&6
24409 if test $ac_cv_header_unistd_h = yes; then
24414 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24415 /* end confdefs.h. */
24416 #include <unistd.h>
24419 aix*) gl_absname_cpp="$ac_cpp -C" ;;
24420 *) gl_absname_cpp="$ac_cpp" ;;
24425 gl_dirsep_regex='[/\\]'
24428 gl_dirsep_regex='\/'
24431 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
24432 gl_header_literal_regex=`echo 'unistd.h' \
24433 | sed -e "$gl_make_literal_regex_sed"`
24434 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
24435 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
24441 gl_cv_absolute_unistd_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
24442 sed -n "$gl_absolute_header_sed"`
24444 gl_header=$gl_cv_absolute_unistd_h
24445 gl_cv_next_unistd_h='"'$gl_header'"'
24447 gl_cv_next_unistd_h='<'unistd.h'>'
24452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_unistd_h" >&5
24453 $as_echo "$gl_cv_next_unistd_h" >&6; }
24455 NEXT_UNISTD_H=$gl_cv_next_unistd_h
24457 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
24458 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
24459 gl_next_as_first_directive='<'unistd.h'>'
24461 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
24462 gl_next_as_first_directive=$gl_cv_next_unistd_h
24464 NEXT_AS_FIRST_DIRECTIVE_UNISTD_H=$gl_next_as_first_directive
24469 if test $ac_cv_header_unistd_h = yes; then
24481 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
24482 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
24483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
24484 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
24485 if eval \${$as_gl_Symbol+:} false; then :
24486 $as_echo_n "(cached) " >&6
24488 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24489 /* end confdefs.h. */
24492 # include <unistd.h>
24494 /* Some systems declare various items in the wrong headers. */
24495 #if !(defined __GLIBC__ && !defined __UCLIBC__)
24496 # include <fcntl.h>
24497 # include <stdio.h>
24498 # include <stdlib.h>
24499 # if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
24513 if ac_fn_c_try_compile "$LINENO"; then :
24514 eval "$as_gl_Symbol=yes"
24516 eval "$as_gl_Symbol=no"
24518 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24520 eval ac_res=\$$as_gl_Symbol
24521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
24522 $as_echo "$ac_res" >&6; }
24523 if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
24524 cat >>confdefs.h <<_ACEOF
24525 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
24528 eval ac_cv_have_decl_$gl_func=yes
24542 if test $ac_cv_have_decl_unsetenv = no; then
24543 HAVE_DECL_UNSETENV=0
24545 for ac_func in unsetenv
24547 ac_fn_c_check_func "$LINENO" "unsetenv" "ac_cv_func_unsetenv"
24548 if test "x$ac_cv_func_unsetenv" = xyes; then :
24549 cat >>confdefs.h <<_ACEOF
24550 #define HAVE_UNSETENV 1
24556 if test $ac_cv_func_unsetenv = no; then
24560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsetenv() return type" >&5
24561 $as_echo_n "checking for unsetenv() return type... " >&6; }
24562 if ${gt_cv_func_unsetenv_ret+:} false; then :
24563 $as_echo_n "(cached) " >&6
24565 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24566 /* end confdefs.h. */
24569 #define _BSD 1 /* unhide unsetenv declaration in OSF/1 5.1 <stdlib.h> */
24570 #include <stdlib.h>
24575 int unsetenv (const char *name);
24585 if ac_fn_c_try_compile "$LINENO"; then :
24586 gt_cv_func_unsetenv_ret='int'
24588 gt_cv_func_unsetenv_ret='void'
24590 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_unsetenv_ret" >&5
24593 $as_echo "$gt_cv_func_unsetenv_ret" >&6; }
24594 if test $gt_cv_func_unsetenv_ret = 'void'; then
24596 $as_echo "#define VOID_UNSETENV 1" >>confdefs.h
24601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether unsetenv obeys POSIX" >&5
24602 $as_echo_n "checking whether unsetenv obeys POSIX... " >&6; }
24603 if ${gl_cv_func_unsetenv_works+:} false; then :
24604 $as_echo_n "(cached) " >&6
24606 if test "$cross_compiling" = yes; then :
24608 # Guess yes on glibc systems.
24609 *-gnu*) gl_cv_func_unsetenv_works="guessing yes" ;;
24610 # If we don't know, assume the worst.
24611 *) gl_cv_func_unsetenv_works="guessing no" ;;
24615 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24616 /* end confdefs.h. */
24618 #include <stdlib.h>
24620 extern char **environ;
24626 char entry1[] = "a=1";
24627 char entry2[] = "b=2";
24628 char *env[] = { entry1, entry2, NULL };
24629 if (putenv ((char *) "a=1")) return 1;
24630 if (putenv (entry2)) return 2;
24633 if (getenv ("a")) return 3;
24634 if (!unsetenv ("") || errno != EINVAL) return 4;
24637 if (!getenv ("a")) return 5;
24640 if (getenv ("a")) return 6;
24646 if ac_fn_c_try_run "$LINENO"; then :
24647 gl_cv_func_unsetenv_works=yes
24649 gl_cv_func_unsetenv_works=no
24651 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24652 conftest.$ac_objext conftest.beam conftest.$ac_ext
24656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_unsetenv_works" >&5
24657 $as_echo "$gl_cv_func_unsetenv_works" >&6; }
24658 case "$gl_cv_func_unsetenv_works" in
24666 if test $HAVE_UNSETENV = 0 || test $REPLACE_UNSETENV = 1; then
24675 gl_LIBOBJS="$gl_LIBOBJS unsetenv.$ac_objext"
24699 $as_echo "#define GNULIB_TEST_UNSETENV 1" >>confdefs.h
24711 if test $ac_cv_func_vasnprintf = no; then
24728 gl_LIBOBJS="$gl_LIBOBJS vasnprintf.$ac_objext"
24738 gl_LIBOBJS="$gl_LIBOBJS printf-args.$ac_objext"
24748 gl_LIBOBJS="$gl_LIBOBJS printf-parse.$ac_objext"
24758 gl_LIBOBJS="$gl_LIBOBJS asnprintf.$ac_objext"
24760 if test $ac_cv_func_vasnprintf = yes; then
24762 $as_echo "#define REPLACE_VASNPRINTF 1" >>confdefs.h
24776 ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
24777 if test "x$ac_cv_type_ptrdiff_t" = xyes; then :
24781 $as_echo "#define ptrdiff_t long" >>confdefs.h
24795 for ac_func in vasprintf
24797 ac_fn_c_check_func "$LINENO" "vasprintf" "ac_cv_func_vasprintf"
24798 if test "x$ac_cv_func_vasprintf" = xyes; then :
24799 cat >>confdefs.h <<_ACEOF
24800 #define HAVE_VASPRINTF 1
24806 if test $ac_cv_func_vasprintf = no; then
24816 gl_LIBOBJS="$gl_LIBOBJS vasprintf.$ac_objext"
24826 gl_LIBOBJS="$gl_LIBOBJS asprintf.$ac_objext"
24829 if test $ac_cv_func_vasprintf = yes; then
24830 REPLACE_VASPRINTF=1
24855 $as_echo "#define GNULIB_TEST_VASPRINTF 1" >>confdefs.h
24861 XGETTEXT_EXTRA_OPTIONS="$XGETTEXT_EXTRA_OPTIONS --flag=asprintf:2:c-format"
24865 XGETTEXT_EXTRA_OPTIONS="$XGETTEXT_EXTRA_OPTIONS --flag=vasprintf:2:c-format"
24871 mingw*) HAVE_WAITPID=0 ;;
24874 if test $HAVE_WAITPID = 0; then
24883 gl_LIBOBJS="$gl_LIBOBJS waitpid.$ac_objext"
24897 $as_echo "#define GNULIB_TEST_WAITPID 1" >>confdefs.h
24919 if test $gl_cv_have_include_next = yes; then
24920 gl_cv_next_wchar_h='<'wchar.h'>'
24922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <wchar.h>" >&5
24923 $as_echo_n "checking absolute name of <wchar.h>... " >&6; }
24924 if ${gl_cv_next_wchar_h+:} false; then :
24925 $as_echo_n "(cached) " >&6
24928 if test $ac_cv_header_wchar_h = yes; then
24933 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24934 /* end confdefs.h. */
24938 aix*) gl_absname_cpp="$ac_cpp -C" ;;
24939 *) gl_absname_cpp="$ac_cpp" ;;
24944 gl_dirsep_regex='[/\\]'
24947 gl_dirsep_regex='\/'
24950 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
24951 gl_header_literal_regex=`echo 'wchar.h' \
24952 | sed -e "$gl_make_literal_regex_sed"`
24953 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
24954 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
24960 gl_cv_absolute_wchar_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
24961 sed -n "$gl_absolute_header_sed"`
24963 gl_header=$gl_cv_absolute_wchar_h
24964 gl_cv_next_wchar_h='"'$gl_header'"'
24966 gl_cv_next_wchar_h='<'wchar.h'>'
24971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_wchar_h" >&5
24972 $as_echo "$gl_cv_next_wchar_h" >&6; }
24974 NEXT_WCHAR_H=$gl_cv_next_wchar_h
24976 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
24977 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
24978 gl_next_as_first_directive='<'wchar.h'>'
24980 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
24981 gl_next_as_first_directive=$gl_cv_next_wchar_h
24983 NEXT_AS_FIRST_DIRECTIVE_WCHAR_H=$gl_next_as_first_directive
24988 if test $ac_cv_header_wchar_h = yes; then
24998 if test $gt_cv_c_wint_t = yes; then
25006 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
25007 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
25008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
25009 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
25010 if eval \${$as_gl_Symbol+:} false; then :
25011 $as_echo_n "(cached) " >&6
25013 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25014 /* end confdefs.h. */
25016 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
25018 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
25019 included before <wchar.h>. */
25020 #if !(defined __GLIBC__ && !defined __UCLIBC__)
25021 # include <stddef.h>
25022 # include <stdio.h>
25036 if ac_fn_c_try_compile "$LINENO"; then :
25037 eval "$as_gl_Symbol=yes"
25039 eval "$as_gl_Symbol=no"
25041 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25043 eval ac_res=\$$as_gl_Symbol
25044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
25045 $as_echo "$ac_res" >&6; }
25046 if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
25047 cat >>confdefs.h <<_ACEOF
25048 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
25051 eval ac_cv_have_decl_$gl_func=yes
25059 if test $HAVE_MSVC_INVALID_PARAMETER_HANDLER = 1; then
25065 if test $REPLACE_WRITE = 1; then
25074 gl_LIBOBJS="$gl_LIBOBJS write.$ac_objext"
25089 $as_echo "#define GNULIB_TEST_WRITE 1" >>confdefs.h
25096 for ac_header in stdint.h
25098 ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
25099 if test "x$ac_cv_header_stdint_h" = xyes; then :
25100 cat >>confdefs.h <<_ACEOF
25101 #define HAVE_STDINT_H 1
25117 XGETTEXT_EXTRA_OPTIONS="$XGETTEXT_EXTRA_OPTIONS --flag=xasprintf:1:c-format"
25119 # End of code from modules
25140 gl_source_base='tests'
25141 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
25143 gl_module_indicator_condition=$gltests_WITNESS
25154 for ac_header in fcntl.h
25156 ac_fn_c_check_header_mongrel "$LINENO" "fcntl.h" "ac_cv_header_fcntl_h" "$ac_includes_default"
25157 if test "x$ac_cv_header_fcntl_h" = xyes; then :
25158 cat >>confdefs.h <<_ACEOF
25159 #define HAVE_FCNTL_H 1
25166 for ac_func in clearenv
25168 ac_fn_c_check_func "$LINENO" "clearenv" "ac_cv_func_clearenv"
25169 if test "x$ac_cv_func_clearenv" = xyes; then :
25170 cat >>confdefs.h <<_ACEOF
25171 #define HAVE_CLEARENV 1
25178 # Checks for structures and compiler characteristics.
25179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
25180 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
25181 if ${ac_cv_c_const+:} false; then :
25182 $as_echo_n "(cached) " >&6
25184 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25185 /* end confdefs.h. */
25191 #ifndef __cplusplus
25192 /* Ultrix mips cc rejects this sort of thing. */
25193 typedef int charset[2];
25194 const charset cs = { 0, 0 };
25195 /* SunOS 4.1.1 cc rejects this. */
25196 char const *const *pcpcc;
25198 /* NEC SVR4.0.2 mips cc rejects this. */
25199 struct point {int x, y;};
25200 static struct point const zero = {0,0};
25201 /* AIX XL C 1.02.0.0 rejects this.
25202 It does not let you subtract one const X* pointer from another in
25203 an arm of an if-expression whose if-part is not a constant
25205 const char *g = "string";
25206 pcpcc = &g + (g ? g-g : 0);
25207 /* HPUX 7.0 cc rejects these. */
25209 ppc = (char**) pcpcc;
25210 pcpcc = (char const *const *) ppc;
25211 { /* SCO 3.2v4 cc rejects this sort of thing. */
25214 char const *s = 0 ? (char *) 0 : (char const *) 0;
25219 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
25220 int x[] = {25, 17};
25221 const int *foo = &x[0];
25224 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
25225 typedef const int *iptr;
25229 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
25230 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
25231 struct s { int j; const int *ap[3]; } bx;
25232 struct s *b = &bx; b->j = 5;
25234 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
25235 const int foo = 10;
25236 if (!foo) return 0;
25238 return !cs[0] && !zero.x;
25245 if ac_fn_c_try_compile "$LINENO"; then :
25250 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
25253 $as_echo "$ac_cv_c_const" >&6; }
25254 if test $ac_cv_c_const = no; then
25256 $as_echo "#define const /**/" >>confdefs.h
25260 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
25261 if test "x$ac_cv_type_pid_t" = xyes; then :
25265 cat >>confdefs.h <<_ACEOF
25271 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
25272 if test "x$ac_cv_type_size_t" = xyes; then :
25276 cat >>confdefs.h <<_ACEOF
25277 #define size_t unsigned int
25283 # We must have fork(2) support.
25284 for ac_header in vfork.h
25286 ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
25287 if test "x$ac_cv_header_vfork_h" = xyes; then :
25288 cat >>confdefs.h <<_ACEOF
25289 #define HAVE_VFORK_H 1
25296 for ac_func in fork vfork
25298 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
25299 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
25300 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
25301 cat >>confdefs.h <<_ACEOF
25302 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
25308 if test "x$ac_cv_func_fork" = xyes; then
25309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
25310 $as_echo_n "checking for working fork... " >&6; }
25311 if ${ac_cv_func_fork_works+:} false; then :
25312 $as_echo_n "(cached) " >&6
25314 if test "$cross_compiling" = yes; then :
25315 ac_cv_func_fork_works=cross
25317 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25318 /* end confdefs.h. */
25319 $ac_includes_default
25324 /* By Ruediger Kuhlmann. */
25325 return fork () < 0;
25331 if ac_fn_c_try_run "$LINENO"; then :
25332 ac_cv_func_fork_works=yes
25334 ac_cv_func_fork_works=no
25336 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25337 conftest.$ac_objext conftest.beam conftest.$ac_ext
25341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
25342 $as_echo "$ac_cv_func_fork_works" >&6; }
25345 ac_cv_func_fork_works=$ac_cv_func_fork
25347 if test "x$ac_cv_func_fork_works" = xcross; then
25349 *-*-amigaos* | *-*-msdosdjgpp*)
25350 # Override, as these systems have only a dummy fork() stub
25351 ac_cv_func_fork_works=no
25354 ac_cv_func_fork_works=yes
25357 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
25358 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
25360 ac_cv_func_vfork_works=$ac_cv_func_vfork
25361 if test "x$ac_cv_func_vfork" = xyes; then
25362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
25363 $as_echo_n "checking for working vfork... " >&6; }
25364 if ${ac_cv_func_vfork_works+:} false; then :
25365 $as_echo_n "(cached) " >&6
25367 if test "$cross_compiling" = yes; then :
25368 ac_cv_func_vfork_works=cross
25370 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25371 /* end confdefs.h. */
25372 /* Thanks to Paul Eggert for this test. */
25373 $ac_includes_default
25374 #include <sys/wait.h>
25375 #ifdef HAVE_VFORK_H
25376 # include <vfork.h>
25378 /* On some sparc systems, changes by the child to local and incoming
25379 argument registers are propagated back to the parent. The compiler
25380 is told about this with #include <vfork.h>, but some compilers
25381 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
25382 static variable whose address is put into a register that is
25383 clobbered by the vfork. */
25386 sparc_address_test (int arg)
25388 sparc_address_test (arg) int arg;
25391 static pid_t child;
25409 pid_t parent = getpid ();
25412 sparc_address_test (0);
25417 /* Here is another test for sparc vfork register problems. This
25418 test uses lots of local variables, at least as many local
25419 variables as main has allocated so far including compiler
25420 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
25421 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
25422 reuse the register of parent for one of the local variables,
25423 since it will think that parent can't possibly be used any more
25424 in this routine. Assigning to the local variable will thus
25425 munge parent in the parent process. */
25427 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
25428 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
25429 /* Convince the compiler that p..p7 are live; otherwise, it might
25430 use the same hardware register for all 8 local variables. */
25431 if (p != p1 || p != p2 || p != p3 || p != p4
25432 || p != p5 || p != p6 || p != p7)
25435 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
25436 from child file descriptors. If the child closes a descriptor
25437 before it execs or exits, this munges the parent's descriptor
25438 as well. Test for this by closing stdout in the child. */
25439 _exit(close(fileno(stdout)) != 0);
25444 while (wait(&status) != child)
25447 /* Was there some problem with vforking? */
25450 /* Did the child fail? (This shouldn't happen.) */
25453 /* Did the vfork/compiler bug occur? */
25454 || parent != getpid()
25456 /* Did the file descriptor bug occur? */
25457 || fstat(fileno(stdout), &st) != 0
25462 if ac_fn_c_try_run "$LINENO"; then :
25463 ac_cv_func_vfork_works=yes
25465 ac_cv_func_vfork_works=no
25467 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25468 conftest.$ac_objext conftest.beam conftest.$ac_ext
25472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
25473 $as_echo "$ac_cv_func_vfork_works" >&6; }
25476 if test "x$ac_cv_func_fork_works" = xcross; then
25477 ac_cv_func_vfork_works=$ac_cv_func_vfork
25478 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
25479 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
25482 if test "x$ac_cv_func_vfork_works" = xyes; then
25484 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
25488 $as_echo "#define vfork fork" >>confdefs.h
25491 if test "x$ac_cv_func_fork_works" = xyes; then
25493 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
25497 if test "x$ac_cv_func_fork_works" != xyes; then
25498 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
25499 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
25500 as_fn_error $? "cannot use libpipeline on systems without fork
25501 See \`config.log' for more details" "$LINENO" 5; }
25504 # Check for socketpair(2) as fast replacement for pipe(2).
25505 # Check whether --enable-socketpair-pipe was given.
25506 if test "${enable_socketpair_pipe+set}" = set; then :
25507 enableval=$enable_socketpair_pipe; if test "$enableval" = "yes"
25509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if socketpair(2) can be used as fast replacement for pipe(2)" >&5
25510 $as_echo_n "checking if socketpair(2) can be used as fast replacement for pipe(2)... " >&6; }
25511 if ${pipeline_cv_socketpair_pipe+:} false; then :
25512 $as_echo_n "(cached) " >&6
25515 if test "$cross_compiling" = yes; then :
25516 pipeline_cv_socketpair_pipe=no
25518 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25519 /* end confdefs.h. */
25522 #include <netinet/in.h>
25523 #include <signal.h>
25524 #include <sys/socket.h>
25525 #include <sys/types.h>
25526 #include <sys/wait.h>
25527 #include <unistd.h>
25535 static void sigpipe(int sig)
25542 const char test[] = "May use socketpair(2) instead of pipe(2)\n";
25546 if (socketpair(AF_UNIX,SOCK_STREAM,0,sfd) < 0)
25548 if (shutdown(sfd[1],SHUT_RD) < 0 || shutdown(sfd[0],SHUT_WR) < 0)
25550 if ((pid = fork()) < 0)
25555 if (read(sfd[0],buf,sizeof(buf)) < 0)
25559 write(sfd[1],test,sizeof(test) - 1);
25563 signal(SIGPIPE, sigpipe);
25564 if (socketpair(AF_UNIX,SOCK_STREAM,0,sfd) < 0)
25566 if (shutdown(sfd[1],SHUT_RD) < 0 || shutdown(sfd[0],SHUT_WR) < 0)
25569 write(sfd[1],test,sizeof(test) - 1);
25573 if ac_fn_c_try_run "$LINENO"; then :
25574 pipeline_cv_socketpair_pipe=yes
25576 pipeline_cv_socketpair_pipe=no
25578 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25579 conftest.$ac_objext conftest.beam conftest.$ac_ext
25585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pipeline_cv_socketpair_pipe" >&5
25586 $as_echo "$pipeline_cv_socketpair_pipe" >&6; }
25587 if test "$pipeline_cv_socketpair_pipe" = yes; then
25589 $as_echo "#define USE_SOCKETPAIR_PIPE 1" >>confdefs.h
25593 if test "$pipeline_cv_socketpair_pipe" = yes; then
25594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if shutdown(2) does not set mode for the socket descriptor" >&5
25595 $as_echo_n "checking if shutdown(2) does not set mode for the socket descriptor... " >&6; }
25596 if ${pipeline_cv_socketpair_mode+:} false; then :
25597 $as_echo_n "(cached) " >&6
25600 if test "$cross_compiling" = yes; then :
25601 pipeline_cv_socketpair_mode=no
25603 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25604 /* end confdefs.h. */
25607 #include <netinet/in.h>
25608 #include <sys/stat.h>
25609 #include <sys/socket.h>
25610 #include <sys/types.h>
25611 #include <unistd.h>
25623 if (socketpair(AF_UNIX,SOCK_STREAM,0,sfd) < 0)
25625 if (shutdown(sfd[1],SHUT_RD) < 0 || shutdown(sfd[0],SHUT_WR) < 0)
25627 if (fstat(sfd[0], &(st[0])) < 0 || fstat(sfd[1], &(st[1])) < 0)
25629 if ((st[0].st_mode & (S_IRUSR|S_IWUSR)) == S_IRUSR && (st[1].st_mode & (S_IRUSR|S_IWUSR)) == S_IWUSR)
25631 if (fchmod(sfd[0], S_IRUSR) < 0 || fchmod(sfd[1], S_IWUSR) < 0)
25633 if (fstat(sfd[0], &(st[0])) < 0 || fstat(sfd[1], &(st[1])) < 0)
25635 if ((st[0].st_mode & (S_IRUSR|S_IWUSR)) != S_IRUSR && (st[1].st_mode & (S_IRUSR|S_IWUSR)) != S_IWUSR)
25640 if ac_fn_c_try_run "$LINENO"; then :
25641 pipeline_cv_socketpair_mode=yes
25643 pipeline_cv_socketpair_mode=no
25645 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25646 conftest.$ac_objext conftest.beam conftest.$ac_ext
25652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pipeline_cv_socketpair_mode" >&5
25653 $as_echo "$pipeline_cv_socketpair_mode" >&6; }
25654 if test "$pipeline_cv_socketpair_mode" = yes; then
25656 $as_echo "#define CORRECT_SOCKETPAIR_MODE 1" >>confdefs.h
25666 { $as_echo "$as_me:${as_lineno-$LINENO}: default CC = \"$CC\"" >&5
25667 $as_echo "$as_me: default CC = \"$CC\"" >&6;}
25668 { $as_echo "$as_me:${as_lineno-$LINENO}: default CPP = \"$CPP\"" >&5
25669 $as_echo "$as_me: default CPP = \"$CPP\"" >&6;}
25670 { $as_echo "$as_me:${as_lineno-$LINENO}: default CPPFLAGS = \"$CPPFLAGS\"" >&5
25671 $as_echo "$as_me: default CPPFLAGS = \"$CPPFLAGS\"" >&6;}
25672 { $as_echo "$as_me:${as_lineno-$LINENO}: default CFLAGS = \"$CFLAGS\"" >&5
25673 $as_echo "$as_me: default CFLAGS = \"$CFLAGS\"" >&6;}
25674 { $as_echo "$as_me:${as_lineno-$LINENO}: default LDFLAGS = \"$LDFLAGS\"" >&5
25675 $as_echo "$as_me: default LDFLAGS = \"$LDFLAGS\"" >&6;}
25676 { $as_echo "$as_me:${as_lineno-$LINENO}: default LIBS = \"$LIBS\"" >&5
25677 $as_echo "$as_me: default LIBS = \"$LIBS\"" >&6;}
25679 ac_config_files="$ac_config_files Makefile gnulib/lib/Makefile lib/Makefile lib/libpipeline.pc man/Makefile tests/Makefile"
25681 cat >confcache <<\_ACEOF
25682 # This file is a shell script that caches the results of configure
25683 # tests run on this system so they can be shared between configure
25684 # scripts and configure runs, see configure's option --config-cache.
25685 # It is not useful on other systems. If it contains results you don't
25686 # want to keep, you may remove or edit it.
25688 # config.status only pays attention to the cache file if you give it
25689 # the --recheck option to rerun configure.
25691 # `ac_cv_env_foo' variables (set or unset) will be overridden when
25692 # loading this file, other *unset* `ac_cv_foo' will be assigned the
25693 # following values.
25697 # The following way of writing the cache mishandles newlines in values,
25698 # but we know of no workaround that is simple, portable, and efficient.
25699 # So, we kill variables containing newlines.
25700 # Ultrix sh set writes to stderr and can't be redirected directly,
25701 # and sets the high bit in the cache file unless we assign to the vars.
25703 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
25704 eval ac_val=\$$ac_var
25708 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
25709 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
25712 _ | IFS | as_nl) ;; #(
25713 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
25714 *) { eval $ac_var=; unset $ac_var;} ;;
25720 case $as_nl`(ac_space=' '; set) 2>&1` in #(
25721 *${as_nl}ac_space=\ *)
25722 # `set' does not quote correctly, so add quotes: double-quote
25723 # substitution turns \\\\ into \\, and sed turns \\ into \.
25726 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
25729 # `set' quotes correctly as required by POSIX, so do not add quotes.
25730 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
25739 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
25741 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
25743 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
25744 if test -w "$cache_file"; then
25745 if test "x$cache_file" != "x/dev/null"; then
25746 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
25747 $as_echo "$as_me: updating cache $cache_file" >&6;}
25748 if test ! -f "$cache_file" || test -h "$cache_file"; then
25749 cat confcache >"$cache_file"
25751 case $cache_file in #(
25753 mv -f confcache "$cache_file"$$ &&
25754 mv -f "$cache_file"$$ "$cache_file" ;; #(
25756 mv -f confcache "$cache_file" ;;
25761 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
25762 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
25767 test "x$prefix" = xNONE && prefix=$ac_default_prefix
25768 # Let make expand exec_prefix.
25769 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
25771 DEFS=-DHAVE_CONFIG_H
25776 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
25777 # 1. Remove the extension, and $U if already installed.
25778 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
25779 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
25780 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
25781 # will be set to the directory where LIBOBJS objects are built.
25782 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
25783 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
25785 LIBOBJS=$ac_libobjs
25787 LTLIBOBJS=$ac_ltlibobjs
25790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
25791 $as_echo_n "checking that generated files are newer than configure... " >&6; }
25792 if test -n "$am_sleep_pid"; then
25793 # Hide warnings about reused PIDs.
25794 wait $am_sleep_pid 2>/dev/null
25796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
25797 $as_echo "done" >&6; }
25798 if test -n "$EXEEXT"; then
25800 am__EXEEXT_FALSE='#'
25802 am__EXEEXT_TRUE='#'
25806 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
25807 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
25808 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25810 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
25811 as_fn_error $? "conditional \"AMDEP\" was never defined.
25812 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25814 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
25815 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
25816 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25818 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
25819 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
25820 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25822 if test -z "${RUN_TESTS_TRUE}" && test -z "${RUN_TESTS_FALSE}"; then
25823 as_fn_error $? "conditional \"RUN_TESTS\" was never defined.
25824 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25826 if test -z "${GL_COND_LIBTOOL_TRUE}" && test -z "${GL_COND_LIBTOOL_FALSE}"; then
25827 as_fn_error $? "conditional \"GL_COND_LIBTOOL\" was never defined.
25828 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25830 if test -z "${GL_GENERATE_ALLOCA_H_TRUE}" && test -z "${GL_GENERATE_ALLOCA_H_FALSE}"; then
25831 as_fn_error $? "conditional \"GL_GENERATE_ALLOCA_H\" was never defined.
25832 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25834 if test -z "${GL_GENERATE_ERRNO_H_TRUE}" && test -z "${GL_GENERATE_ERRNO_H_FALSE}"; then
25835 as_fn_error $? "conditional \"GL_GENERATE_ERRNO_H\" was never defined.
25836 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25838 if test -z "${GL_GENERATE_FLOAT_H_TRUE}" && test -z "${GL_GENERATE_FLOAT_H_FALSE}"; then
25839 as_fn_error $? "conditional \"GL_GENERATE_FLOAT_H\" was never defined.
25840 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25842 if test -z "${GL_GENERATE_STDARG_H_TRUE}" && test -z "${GL_GENERATE_STDARG_H_FALSE}"; then
25843 as_fn_error $? "conditional \"GL_GENERATE_STDARG_H\" was never defined.
25844 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25846 if test -z "${GL_GENERATE_STDBOOL_H_TRUE}" && test -z "${GL_GENERATE_STDBOOL_H_FALSE}"; then
25847 as_fn_error $? "conditional \"GL_GENERATE_STDBOOL_H\" was never defined.
25848 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25850 if test -z "${GL_GENERATE_STDDEF_H_TRUE}" && test -z "${GL_GENERATE_STDDEF_H_FALSE}"; then
25851 as_fn_error $? "conditional \"GL_GENERATE_STDDEF_H\" was never defined.
25852 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25854 if test -z "${GL_GENERATE_STDINT_H_TRUE}" && test -z "${GL_GENERATE_STDINT_H_FALSE}"; then
25855 as_fn_error $? "conditional \"GL_GENERATE_STDINT_H\" was never defined.
25856 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25862 if test -n "$gl_LIBOBJS"; then
25863 # Remove the extension.
25864 sed_drop_objext='s/\.o$//;s/\.obj$//'
25865 for i in `for i in $gl_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
25866 gl_libobjs="$gl_libobjs $i.$ac_objext"
25867 gl_ltlibobjs="$gl_ltlibobjs $i.lo"
25870 gl_LIBOBJS=$gl_libobjs
25872 gl_LTLIBOBJS=$gl_ltlibobjs
25878 if test -n "$gltests_LIBOBJS"; then
25879 # Remove the extension.
25880 sed_drop_objext='s/\.o$//;s/\.obj$//'
25881 for i in `for i in $gltests_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
25882 gltests_libobjs="$gltests_libobjs $i.$ac_objext"
25883 gltests_ltlibobjs="$gltests_ltlibobjs $i.lo"
25886 gltests_LIBOBJS=$gltests_libobjs
25888 gltests_LTLIBOBJS=$gltests_ltlibobjs
25892 : "${CONFIG_STATUS=./config.status}"
25894 ac_clean_files_save=$ac_clean_files
25895 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
25896 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
25897 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
25899 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
25901 # Generated by $as_me.
25902 # Run this file to recreate the current configuration.
25903 # Compiler output produced by configure, useful for debugging
25904 # configure, is in config.log if it exists.
25907 ac_cs_recheck=false
25910 SHELL=\${CONFIG_SHELL-$SHELL}
25913 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
25914 ## -------------------- ##
25915 ## M4sh Initialization. ##
25916 ## -------------------- ##
25918 # Be more Bourne compatible
25919 DUALCASE=1; export DUALCASE # for MKS sh
25920 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
25923 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25924 # is contrary to our usage. Disable this feature.
25925 alias -g '${1+"$@"}'='"$@"'
25926 setopt NO_GLOB_SUBST
25928 case `(set -o) 2>/dev/null` in #(
25940 # Printing a long string crashes Solaris 7 /usr/bin/printf.
25941 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
25942 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
25943 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
25944 # Prefer a ksh shell builtin over an external printf program on Solaris,
25945 # but without wasting forks for bash or zsh.
25946 if test -z "$BASH_VERSION$ZSH_VERSION" \
25947 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
25948 as_echo='print -r --'
25949 as_echo_n='print -rn --'
25950 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
25951 as_echo='printf %s\n'
25952 as_echo_n='printf %s'
25954 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
25955 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
25956 as_echo_n='/usr/ucb/echo -n'
25958 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
25959 as_echo_n_body='eval
25963 expr "X$arg" : "X\\(.*\\)$as_nl";
25964 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
25966 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
25968 export as_echo_n_body
25969 as_echo_n='sh -c $as_echo_n_body as_echo'
25971 export as_echo_body
25972 as_echo='sh -c $as_echo_body as_echo'
25975 # The user is always right.
25976 if test "${PATH_SEPARATOR+set}" != set; then
25978 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
25979 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
25986 # We need space, tab and new line, in precisely that order. Quoting is
25987 # there to prevent editors from complaining about space-tab.
25988 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
25989 # splitting by setting IFS to empty value.)
25992 # Find who we are. Look in the path if we contain no directory separator.
25995 *[\\/]* ) as_myself=$0 ;;
25996 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25997 for as_dir in $PATH
26000 test -z "$as_dir" && as_dir=.
26001 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
26007 # We did not find ourselves, most probably we were run as `sh COMMAND'
26008 # in which case we are not to be found in the path.
26009 if test "x$as_myself" = x; then
26012 if test ! -f "$as_myself"; then
26013 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
26017 # Unset variables that we do not need and which cause bugs (e.g. in
26018 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
26019 # suppresses any "Segmentation fault" message there. '((' could
26020 # trigger a bug in pdksh 5.2.14.
26021 for as_var in BASH_ENV ENV MAIL MAILPATH
26022 do eval test x\${$as_var+set} = xset \
26023 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
26036 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
26039 # as_fn_error STATUS ERROR [LINENO LOG_FD]
26040 # ----------------------------------------
26041 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
26042 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
26043 # script with STATUS, using 1 if that was 0.
26046 as_status=$1; test $as_status -eq 0 && as_status=1
26048 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
26049 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
26051 $as_echo "$as_me: error: $2" >&2
26052 as_fn_exit $as_status
26056 # as_fn_set_status STATUS
26057 # -----------------------
26058 # Set $? to STATUS, without forking.
26059 as_fn_set_status ()
26062 } # as_fn_set_status
26064 # as_fn_exit STATUS
26065 # -----------------
26066 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
26070 as_fn_set_status $1
26076 # Portably unset VAR.
26079 { eval $1=; unset $1;}
26081 as_unset=as_fn_unset
26082 # as_fn_append VAR VALUE
26083 # ----------------------
26084 # Append the text in VALUE to the end of the definition contained in VAR. Take
26085 # advantage of any shell optimizations that allow amortized linear growth over
26086 # repeated appends, instead of the typical quadratic growth present in naive
26088 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
26089 eval 'as_fn_append ()
26100 # as_fn_arith ARG...
26101 # ------------------
26102 # Perform arithmetic evaluation on the ARGs, and store the result in the
26103 # global $as_val. Take advantage of shells that can avoid forks. The arguments
26104 # must be portable across $(()) and expr.
26105 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
26106 eval 'as_fn_arith ()
26113 as_val=`expr "$@" || test $? -eq 1`
26118 if expr a : '\(a\)' >/dev/null 2>&1 &&
26119 test "X`expr 00001 : '.*\(...\)'`" = X001; then
26125 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
26126 as_basename=basename
26131 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
26137 as_me=`$as_basename -- "$0" ||
26138 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
26139 X"$0" : 'X\(//\)$' \| \
26140 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
26142 sed '/^.*\/\([^/][^/]*\)\/*$/{
26156 # Avoid depending upon Character Ranges.
26157 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
26158 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
26159 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
26160 as_cr_digits='0123456789'
26161 as_cr_alnum=$as_cr_Letters$as_cr_digits
26163 ECHO_C= ECHO_N= ECHO_T=
26164 case `echo -n x` in #(((((
26166 case `echo 'xy\c'` in
26167 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
26169 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
26176 rm -f conf$$ conf$$.exe conf$$.file
26177 if test -d conf$$.dir; then
26178 rm -f conf$$.dir/conf$$.file
26181 mkdir conf$$.dir 2>/dev/null
26183 if (echo >conf$$.file) 2>/dev/null; then
26184 if ln -s conf$$.file conf$$ 2>/dev/null; then
26186 # ... but there are two gotchas:
26187 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
26188 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
26189 # In both cases, we have to default to `cp -pR'.
26190 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
26192 elif ln conf$$.file conf$$ 2>/dev/null; then
26200 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
26201 rmdir conf$$.dir 2>/dev/null
26206 # Create "$as_dir" as a directory, including parents if necessary.
26211 -*) as_dir=./$as_dir;;
26213 test -d "$as_dir" || eval $as_mkdir_p || {
26217 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
26218 *) as_qdir=$as_dir;;
26220 as_dirs="'$as_qdir' $as_dirs"
26221 as_dir=`$as_dirname -- "$as_dir" ||
26222 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26223 X"$as_dir" : 'X\(//\)[^/]' \| \
26224 X"$as_dir" : 'X\(//\)$' \| \
26225 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
26226 $as_echo X"$as_dir" |
26227 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26231 /^X\(\/\/\)[^/].*/{
26244 test -d "$as_dir" && break
26246 test -z "$as_dirs" || eval "mkdir $as_dirs"
26247 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
26251 if mkdir -p . 2>/dev/null; then
26252 as_mkdir_p='mkdir -p "$as_dir"'
26254 test -d ./-p && rmdir ./-p
26259 # as_fn_executable_p FILE
26260 # -----------------------
26261 # Test if FILE is an executable regular file.
26262 as_fn_executable_p ()
26264 test -f "$1" && test -x "$1"
26265 } # as_fn_executable_p
26266 as_test_x='test -x'
26267 as_executable_p=as_fn_executable_p
26269 # Sed expression to map a string onto a valid CPP name.
26270 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
26272 # Sed expression to map a string onto a valid variable name.
26273 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
26277 ## ----------------------------------- ##
26278 ## Main body of $CONFIG_STATUS script. ##
26279 ## ----------------------------------- ##
26281 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
26283 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26284 # Save the log message, to keep $0 and so on meaningful, and to
26285 # report actual input values of CONFIG_FILES etc. instead of their
26286 # values after options handling.
26288 This file was extended by libpipeline $as_me 1.3.1, which was
26289 generated by GNU Autoconf 2.69. Invocation command line was
26291 CONFIG_FILES = $CONFIG_FILES
26292 CONFIG_HEADERS = $CONFIG_HEADERS
26293 CONFIG_LINKS = $CONFIG_LINKS
26294 CONFIG_COMMANDS = $CONFIG_COMMANDS
26297 on `(hostname || uname -n) 2>/dev/null | sed 1q`
26302 case $ac_config_files in *"
26303 "*) set x $ac_config_files; shift; ac_config_files=$*;;
26306 case $ac_config_headers in *"
26307 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
26311 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26312 # Files that config.status was made for.
26313 config_files="$ac_config_files"
26314 config_headers="$ac_config_headers"
26315 config_commands="$ac_config_commands"
26319 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26321 \`$as_me' instantiates files and other configuration actions
26322 from templates according to the current configuration. Unless the files
26323 and actions are specified as TAGs, all are instantiated by default.
26325 Usage: $0 [OPTION]... [TAG]...
26327 -h, --help print this help, then exit
26328 -V, --version print version number and configuration settings, then exit
26329 --config print configuration, then exit
26330 -q, --quiet, --silent
26331 do not print progress messages
26332 -d, --debug don't remove temporary files
26333 --recheck update $as_me by reconfiguring in the same conditions
26334 --file=FILE[:TEMPLATE]
26335 instantiate the configuration file FILE
26336 --header=FILE[:TEMPLATE]
26337 instantiate the configuration header FILE
26339 Configuration files:
26342 Configuration headers:
26345 Configuration commands:
26348 Report bugs to <cjwatson@debian.org>."
26351 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26352 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
26354 libpipeline config.status 1.3.1
26355 configured by $0, generated by GNU Autoconf 2.69,
26356 with options \\"\$ac_cs_config\\"
26358 Copyright (C) 2012 Free Software Foundation, Inc.
26359 This config.status script is free software; the Free Software Foundation
26360 gives unlimited permission to copy, distribute and modify it."
26367 test -n "\$AWK" || AWK=awk
26370 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26371 # The default lists apply if the user does not specify any file.
26377 ac_option=`expr "X$1" : 'X\([^=]*\)='`
26378 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
26382 ac_option=`expr "X$1" : 'X\([^=]*\)='`
26394 # Handling of the options.
26395 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
26397 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
26398 $as_echo "$ac_cs_version"; exit ;;
26399 --config | --confi | --conf | --con | --co | --c )
26400 $as_echo "$ac_cs_config"; exit ;;
26401 --debug | --debu | --deb | --de | --d | -d )
26403 --file | --fil | --fi | --f )
26406 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
26407 '') as_fn_error $? "missing file argument" ;;
26409 as_fn_append CONFIG_FILES " '$ac_optarg'"
26410 ac_need_defaults=false;;
26411 --header | --heade | --head | --hea )
26414 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
26416 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
26417 ac_need_defaults=false;;
26419 # Conflict between --help and --header
26420 as_fn_error $? "ambiguous option: \`$1'
26421 Try \`$0 --help' for more information.";;
26422 --help | --hel | -h )
26423 $as_echo "$ac_cs_usage"; exit ;;
26424 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
26425 | -silent | --silent | --silen | --sile | --sil | --si | --s)
26428 # This is an error.
26429 -*) as_fn_error $? "unrecognized option: \`$1'
26430 Try \`$0 --help' for more information." ;;
26432 *) as_fn_append ac_config_targets " $1"
26433 ac_need_defaults=false ;;
26439 ac_configure_extra_args=
26441 if $ac_cs_silent; then
26443 ac_configure_extra_args="$ac_configure_extra_args --silent"
26447 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26448 if \$ac_cs_recheck; then
26449 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
26451 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
26452 CONFIG_SHELL='$SHELL'
26453 export CONFIG_SHELL
26458 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26462 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
26463 ## Running $as_me. ##
26469 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26473 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
26476 # The HP-UX ksh and POSIX shell print the target directory to stdout
26477 # if CDPATH is set.
26478 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
26480 sed_quote_subst='$sed_quote_subst'
26481 double_quote_subst='$double_quote_subst'
26482 delay_variable_subst='$delay_variable_subst'
26483 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
26484 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
26485 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
26486 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
26487 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
26488 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
26489 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
26490 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
26491 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
26492 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
26493 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
26494 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
26495 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
26496 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
26497 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
26498 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
26499 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
26500 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
26501 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
26502 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
26503 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
26504 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
26505 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
26506 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
26507 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
26508 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
26509 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
26510 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
26511 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
26512 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
26513 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
26514 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
26515 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
26516 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
26517 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
26518 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
26519 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
26520 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
26521 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
26522 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
26523 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
26524 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
26525 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
26526 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
26527 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
26528 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
26529 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
26530 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
26531 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
26532 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
26533 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
26534 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
26535 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
26536 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
26537 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
26538 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
26539 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"`'
26540 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
26541 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
26542 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
26543 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
26544 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
26545 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
26546 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
26547 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
26548 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
26549 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
26550 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
26551 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
26552 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
26553 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
26554 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
26555 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
26556 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
26557 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
26558 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
26559 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
26560 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
26561 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
26562 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
26563 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
26564 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
26565 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
26566 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
26567 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
26568 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
26569 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
26570 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
26571 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
26572 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
26573 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
26574 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
26575 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
26576 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
26577 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
26578 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
26579 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
26580 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
26581 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
26582 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
26583 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
26584 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
26585 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
26586 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
26587 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
26588 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
26589 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
26590 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
26591 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
26592 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
26593 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
26594 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
26595 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
26596 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
26597 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
26598 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
26599 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
26600 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
26601 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
26602 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
26603 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
26604 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
26605 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
26606 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
26607 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
26608 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
26609 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
26610 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
26611 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
26612 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
26615 LTCFLAGS='$LTCFLAGS'
26616 compiler='$compiler_DEFAULT'
26618 # A function that is used when there is no print builtin or printf.
26619 func_fallback_echo ()
26621 eval 'cat <<_LTECHO_EOF
26626 # Quote evaled strings.
26641 deplibs_check_method \
26646 sharedlib_from_linklib_cmd \
26649 archiver_list_spec \
26655 lt_cv_sys_global_symbol_pipe \
26656 lt_cv_sys_global_symbol_to_cdecl \
26657 lt_cv_sys_global_symbol_to_c_name_address \
26658 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
26659 nm_file_list_spec \
26660 lt_prog_compiler_no_builtin_flag \
26661 lt_prog_compiler_pic \
26662 lt_prog_compiler_wl \
26663 lt_prog_compiler_static \
26664 lt_cv_prog_compiler_c_o \
26673 export_dynamic_flag_spec \
26674 whole_archive_flag_spec \
26675 compiler_needs_object \
26677 allow_undefined_flag \
26678 no_undefined_flag \
26679 hardcode_libdir_flag_spec \
26680 hardcode_libdir_separator \
26684 variables_saved_for_relink \
26686 library_names_spec \
26688 install_override_mode \
26692 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
26693 *[\\\\\\\`\\"\\\$]*)
26694 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
26697 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
26702 # Double-quote double-evaled strings.
26703 for var in reload_cmds \
26704 old_postinstall_cmds \
26705 old_postuninstall_cmds \
26707 extract_expsyms_cmds \
26708 old_archive_from_new_cmds \
26709 old_archive_from_expsyms_cmds \
26711 archive_expsym_cmds \
26713 module_expsym_cmds \
26714 export_symbols_cmds \
26718 postuninstall_cmds \
26720 sys_lib_search_path_spec \
26721 sys_lib_dlsearch_path_spec; do
26722 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
26723 *[\\\\\\\`\\"\\\$]*)
26724 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
26727 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
26732 ac_aux_dir='$ac_aux_dir'
26733 xsi_shell='$xsi_shell'
26734 lt_shell_append='$lt_shell_append'
26736 # See if we are running on zsh, and set the options which allow our
26737 # commands through without removal of \ escapes INIT.
26738 if test -n "\${ZSH_VERSION+set}" ; then
26739 setopt NO_GLOB_SUBST
26745 TIMESTAMP='$TIMESTAMP'
26754 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26756 # Handling of arguments.
26757 for ac_config_target in $ac_config_targets
26759 case $ac_config_target in
26760 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
26761 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
26762 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
26763 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
26764 "gnulib/lib/Makefile") CONFIG_FILES="$CONFIG_FILES gnulib/lib/Makefile" ;;
26765 "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
26766 "lib/libpipeline.pc") CONFIG_FILES="$CONFIG_FILES lib/libpipeline.pc" ;;
26767 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
26768 "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
26770 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
26775 # If the user did not use the arguments to specify the items to instantiate,
26776 # then the envvar interface is used. Set only those that are not.
26777 # We use the long form for the default assignment because of an extremely
26778 # bizarre bug on SunOS 4.1.3.
26779 if $ac_need_defaults; then
26780 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
26781 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
26782 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
26785 # Have a temporary directory for convenience. Make it in the build tree
26786 # simply because there is no reason against having it here, and in addition,
26787 # creating and moving files from /tmp can sometimes cause problems.
26788 # Hook for its removal unless debugging.
26789 # Note that there is a small window in which the directory will not be cleaned:
26790 # after its creation but before its name has been assigned to `$tmp'.
26794 trap 'exit_status=$?
26795 : "${ac_tmp:=$tmp}"
26796 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
26798 trap 'as_fn_exit 1' 1 2 13 15
26800 # Create a (secure) tmp directory for tmp files.
26803 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
26807 tmp=./conf$$-$RANDOM
26808 (umask 077 && mkdir "$tmp")
26809 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
26812 # Set up the scripts for CONFIG_FILES section.
26813 # No need to generate them if there are no CONFIG_FILES.
26814 # This happens for instance with `./config.status config.h'.
26815 if test -n "$CONFIG_FILES"; then
26818 ac_cr=`echo X | tr X '\015'`
26819 # On cygwin, bash can eat \r inside `` if the user requested igncr.
26820 # But we know of no other shell where ac_cr would be empty at this
26821 # point, so we can use a bashism as a fallback.
26822 if test "x$ac_cr" = x; then
26823 eval ac_cr=\$\'\\r\'
26825 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
26826 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
26829 ac_cs_awk_cr=$ac_cr
26832 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
26837 echo "cat >conf$$subs.awk <<_ACEOF" &&
26838 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
26840 } >conf$$subs.sh ||
26841 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
26842 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
26844 for ac_last_try in false false false false false :; do
26845 . ./conf$$subs.sh ||
26846 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
26848 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
26849 if test $ac_delim_n = $ac_delim_num; then
26851 elif $ac_last_try; then
26852 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
26854 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
26857 rm -f conf$$subs.sh
26859 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26860 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
26864 s/^/S["/; s/!.*/"]=/
26874 s/\(.\{148\}\)..*/\1/
26876 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
26881 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
26888 s/\(.\{148\}\)..*/\1/
26890 s/["\\]/\\&/g; s/^/"/; s/$/"/
26894 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
26899 ' <conf$$subs.awk | sed '
26904 ' >>$CONFIG_STATUS || ac_write_fail=1
26905 rm -f conf$$subs.awk
26906 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26908 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
26909 for (key in S) S_is_set[key] = 1
26915 nfields = split(line, field, "@")
26917 len = length(field[1])
26918 for (i = 2; i < nfields; i++) {
26920 keylen = length(key)
26921 if (S_is_set[key]) {
26923 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
26924 len += length(value) + length(field[++i])
26935 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26936 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
26937 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
26940 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
26941 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
26944 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
26945 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
26946 # trailing colons and then remove the whole line if VPATH becomes empty
26947 # (actually we leave an empty line to preserve line numbers).
26948 if test "x$srcdir" = x.; then
26949 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
26967 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26968 fi # test -n "$CONFIG_FILES"
26970 # Set up the scripts for CONFIG_HEADERS section.
26971 # No need to generate them if there are no CONFIG_HEADERS.
26972 # This happens for instance with `./config.status Makefile'.
26973 if test -n "$CONFIG_HEADERS"; then
26974 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
26978 # Transform confdefs.h into an awk script `defines.awk', embedded as
26979 # here-document in config.status, that substitutes the proper values into
26980 # config.h.in to produce config.h.
26982 # Create a delimiter string that does not exist in confdefs.h, to ease
26983 # handling of long lines.
26985 for ac_last_try in false false :; do
26986 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
26987 if test -z "$ac_tt"; then
26989 elif $ac_last_try; then
26990 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
26992 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
26996 # For the awk script, D is an array of macro values keyed by name,
26997 # likewise P contains macro parameters if any. Preserve backslash
26998 # newline sequences.
27000 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
27002 s/.\{148\}/&'"$ac_delim"'/g
27005 s/^[ ]*#[ ]*define[ ][ ]*/ /
27012 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
27014 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
27018 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
27019 D["\1"]=" \3\\\\\\n"\\/p
27021 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
27026 s/.\{148\}/&'"$ac_delim"'/g
27031 s/["\\]/\\&/g; s/^/"/; s/$/"/p
27034 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
27036 ' <confdefs.h | sed '
27037 s/'"$ac_delim"'/"\\\
27038 "/g' >>$CONFIG_STATUS || ac_write_fail=1
27040 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27041 for (key in D) D_is_set[key] = 1
27044 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
27046 split(line, arg, " ")
27047 if (arg[1] == "#") {
27051 defundef = substr(arg[1], 2)
27054 split(mac1, mac2, "(") #)
27056 prefix = substr(line, 1, index(line, defundef) - 1)
27057 if (D_is_set[macro]) {
27058 # Preserve the white space surrounding the "#".
27059 print prefix "define", macro P[macro] D[macro]
27062 # Replace #undef with comments. This is necessary, for example,
27063 # in the case of _POSIX_SOURCE, which is predefined and required
27064 # on some systems where configure will not decide to define it.
27065 if (defundef == "undef") {
27066 print "/*", prefix defundef, macro, "*/"
27074 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27075 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
27076 fi # test -n "$CONFIG_HEADERS"
27079 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
27084 :[FHLC]) ac_mode=$ac_tag; continue;;
27086 case $ac_mode$ac_tag in
27088 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
27089 :[FH]-) ac_tag=-:-;;
27090 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
27107 -) ac_f="$ac_tmp/stdin";;
27108 *) # Look for the file first in the build tree, then in the source tree
27109 # (if the path is not absolute). The absolute path cannot be DOS-style,
27110 # because $ac_f cannot contain `:'.
27114 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
27116 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
27118 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
27119 as_fn_append ac_file_inputs " '$ac_f'"
27122 # Let's still pretend it is `configure' which instantiates (i.e., don't
27123 # use $as_me), people would be surprised to read:
27124 # /* config.h. Generated by config.status. */
27125 configure_input='Generated from '`
27126 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
27128 if test x"$ac_file" != x-; then
27129 configure_input="$ac_file. $configure_input"
27130 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
27131 $as_echo "$as_me: creating $ac_file" >&6;}
27133 # Neutralize special characters interpreted by sed in replacement strings.
27134 case $configure_input in #(
27135 *\&* | *\|* | *\\* )
27136 ac_sed_conf_input=`$as_echo "$configure_input" |
27137 sed 's/[\\\\&|]/\\\\&/g'`;; #(
27138 *) ac_sed_conf_input=$configure_input;;
27142 *:-:* | *:-) cat >"$ac_tmp/stdin" \
27143 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
27148 ac_dir=`$as_dirname -- "$ac_file" ||
27149 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27150 X"$ac_file" : 'X\(//\)[^/]' \| \
27151 X"$ac_file" : 'X\(//\)$' \| \
27152 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
27153 $as_echo X"$ac_file" |
27154 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27158 /^X\(\/\/\)[^/].*/{
27171 as_dir="$ac_dir"; as_fn_mkdir_p
27175 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
27177 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
27178 # A ".." for each directory in $ac_dir_suffix.
27179 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
27180 case $ac_top_builddir_sub in
27181 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
27182 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
27185 ac_abs_top_builddir=$ac_pwd
27186 ac_abs_builddir=$ac_pwd$ac_dir_suffix
27187 # for backward compatibility:
27188 ac_top_builddir=$ac_top_build_prefix
27191 .) # We are building in place.
27193 ac_top_srcdir=$ac_top_builddir_sub
27194 ac_abs_top_srcdir=$ac_pwd ;;
27195 [\\/]* | ?:[\\/]* ) # Absolute name.
27196 ac_srcdir=$srcdir$ac_dir_suffix;
27197 ac_top_srcdir=$srcdir
27198 ac_abs_top_srcdir=$srcdir ;;
27199 *) # Relative name.
27200 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
27201 ac_top_srcdir=$ac_top_build_prefix$srcdir
27202 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
27204 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
27214 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
27215 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
27217 ac_MKDIR_P=$MKDIR_P
27219 [\\/$]* | ?:[\\/]* ) ;;
27220 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
27224 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27225 # If the template does not know about datarootdir, expand it.
27226 # FIXME: This hack should be removed a few years after 2.60.
27227 ac_datarootdir_hack=; ac_datarootdir_seen=
27238 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
27239 *datarootdir*) ac_datarootdir_seen=yes;;
27240 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
27241 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
27242 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
27244 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27245 ac_datarootdir_hack='
27246 s&@datadir@&$datadir&g
27247 s&@docdir@&$docdir&g
27248 s&@infodir@&$infodir&g
27249 s&@localedir@&$localedir&g
27250 s&@mandir@&$mandir&g
27251 s&\\\${datarootdir}&$datarootdir&g' ;;
27255 # Neutralize VPATH when `$srcdir' = `.'.
27256 # Shell code in configure.ac might set extrasub.
27257 # FIXME: do we really want to maintain this feature?
27258 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27259 ac_sed_extra="$ac_vpsub
27262 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27264 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
27265 s|@configure_input@|$ac_sed_conf_input|;t t
27266 s&@top_builddir@&$ac_top_builddir_sub&;t t
27267 s&@top_build_prefix@&$ac_top_build_prefix&;t t
27268 s&@srcdir@&$ac_srcdir&;t t
27269 s&@abs_srcdir@&$ac_abs_srcdir&;t t
27270 s&@top_srcdir@&$ac_top_srcdir&;t t
27271 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
27272 s&@builddir@&$ac_builddir&;t t
27273 s&@abs_builddir@&$ac_abs_builddir&;t t
27274 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
27275 s&@INSTALL@&$ac_INSTALL&;t t
27276 s&@MKDIR_P@&$ac_MKDIR_P&;t t
27277 $ac_datarootdir_hack
27279 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
27280 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
27282 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
27283 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
27284 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
27285 "$ac_tmp/out"`; test -z "$ac_out"; } &&
27286 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
27287 which seems to be undefined. Please make sure it is defined" >&5
27288 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
27289 which seems to be undefined. Please make sure it is defined" >&2;}
27291 rm -f "$ac_tmp/stdin"
27293 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
27294 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
27296 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
27302 if test x"$ac_file" != x-; then
27304 $as_echo "/* $configure_input */" \
27305 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
27306 } >"$ac_tmp/config.h" \
27307 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
27308 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
27309 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
27310 $as_echo "$as_me: $ac_file is unchanged" >&6;}
27313 mv "$ac_tmp/config.h" "$ac_file" \
27314 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
27317 $as_echo "/* $configure_input */" \
27318 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
27319 || as_fn_error $? "could not create -" "$LINENO" 5
27321 # Compute "$ac_file"'s index in $config_headers.
27324 for _am_header in $config_headers :; do
27325 case $_am_header in
27326 $_am_arg | $_am_arg:* )
27329 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
27332 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
27333 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27334 X"$_am_arg" : 'X\(//\)[^/]' \| \
27335 X"$_am_arg" : 'X\(//\)$' \| \
27336 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
27337 $as_echo X"$_am_arg" |
27338 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27342 /^X\(\/\/\)[^/].*/{
27354 s/.*/./; q'`/stamp-h$_am_stamp_count
27357 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
27358 $as_echo "$as_me: executing $ac_file commands" >&6;}
27363 case $ac_file$ac_mode in
27364 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
27365 # Older Autoconf quotes --file arguments for eval, but not when files
27366 # are listed without --file. Let's play safe and only enable the eval
27367 # if we detect the quoting.
27368 case $CONFIG_FILES in
27369 *\'*) eval set x "$CONFIG_FILES" ;;
27370 *) set x $CONFIG_FILES ;;
27375 # Strip MF so we end up with the name of the file.
27376 mf=`echo "$mf" | sed -e 's/:.*$//'`
27377 # Check whether this is an Automake generated Makefile or not.
27378 # We used to match only the files named 'Makefile.in', but
27379 # some people rename them; so instead we look at the file content.
27380 # Grep'ing the first line is not enough: some people post-process
27381 # each Makefile.in and add a new line on top of each file to say so.
27382 # Grep'ing the whole file is not good either: AIX grep has a line
27383 # limit of 2048, but all sed's we know have understand at least 4000.
27384 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
27385 dirpart=`$as_dirname -- "$mf" ||
27386 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27387 X"$mf" : 'X\(//\)[^/]' \| \
27388 X"$mf" : 'X\(//\)$' \| \
27389 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
27391 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27395 /^X\(\/\/\)[^/].*/{
27411 # Extract the definition of DEPDIR, am__include, and am__quote
27412 # from the Makefile without running 'make'.
27413 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
27414 test -z "$DEPDIR" && continue
27415 am__include=`sed -n 's/^am__include = //p' < "$mf"`
27416 test -z "$am__include" && continue
27417 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
27418 # Find all dependency output files, they are included files with
27419 # $(DEPDIR) in their names. We invoke sed twice because it is the
27420 # simplest approach to changing $(DEPDIR) to its actual value in the
27422 for file in `sed -n "
27423 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
27424 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
27425 # Make sure the directory exists.
27426 test -f "$dirpart/$file" && continue
27427 fdir=`$as_dirname -- "$file" ||
27428 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27429 X"$file" : 'X\(//\)[^/]' \| \
27430 X"$file" : 'X\(//\)$' \| \
27431 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
27432 $as_echo X"$file" |
27433 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27437 /^X\(\/\/\)[^/].*/{
27450 as_dir=$dirpart/$fdir; as_fn_mkdir_p
27451 # echo "creating $dirpart/$file"
27452 echo '# dummy' > "$dirpart/$file"
27459 # See if we are running on zsh, and set the options which allow our
27460 # commands through without removal of \ escapes.
27461 if test -n "${ZSH_VERSION+set}" ; then
27462 setopt NO_GLOB_SUBST
27465 cfgfile="${ofile}T"
27466 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
27469 cat <<_LT_EOF >> "$cfgfile"
27472 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
27473 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
27474 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
27475 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
27477 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
27478 # 2006, 2007, 2008, 2009, 2010, 2011 Free Software
27480 # Written by Gordon Matzigkeit, 1996
27482 # This file is part of GNU Libtool.
27484 # GNU Libtool is free software; you can redistribute it and/or
27485 # modify it under the terms of the GNU General Public License as
27486 # published by the Free Software Foundation; either version 2 of
27487 # the License, or (at your option) any later version.
27489 # As a special exception to the GNU General Public License,
27490 # if you distribute this file as part of a program or library that
27491 # is built using GNU Libtool, you may include this file under the
27492 # same distribution terms that you use for the rest of that program.
27494 # GNU Libtool is distributed in the hope that it will be useful,
27495 # but WITHOUT ANY WARRANTY; without even the implied warranty of
27496 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
27497 # GNU General Public License for more details.
27499 # You should have received a copy of the GNU General Public License
27500 # along with GNU Libtool; see the file COPYING. If not, a copy
27501 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
27502 # obtained by writing to the Free Software Foundation, Inc.,
27503 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
27506 # The names of the tagged configurations supported by this script.
27509 # ### BEGIN LIBTOOL CONFIG
27511 # Which release of libtool.m4 was used?
27512 macro_version=$macro_version
27513 macro_revision=$macro_revision
27515 # Whether or not to build static libraries.
27516 build_old_libs=$enable_static
27518 # Whether or not to build shared libraries.
27519 build_libtool_libs=$enable_shared
27521 # What type of objects to build.
27524 # Whether or not to optimize for fast installation.
27525 fast_install=$enable_fast_install
27527 # Shell to use when invoking shell scripts.
27530 # An echo program that protects backslashes.
27533 # The PATH separator for the build system.
27534 PATH_SEPARATOR=$lt_PATH_SEPARATOR
27537 host_alias=$host_alias
27541 # The build system.
27542 build_alias=$build_alias
27546 # A sed program that does not truncate output.
27549 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
27550 Xsed="\$SED -e 1s/^X//"
27552 # A grep program that handles long lines.
27558 # A literal string matcher.
27561 # A BSD- or MS-compatible name lister.
27564 # Whether we need soft or hard links.
27567 # What is the maximum length of a command?
27568 max_cmd_len=$max_cmd_len
27570 # Object file suffix (normally "o").
27573 # Executable file suffix (normally "").
27576 # whether the shell understands "unset".
27579 # turn spaces into newlines.
27582 # turn newlines into spaces.
27585 # convert \$build file names to \$host format.
27586 to_host_file_cmd=$lt_cv_to_host_file_cmd
27588 # convert \$build files to toolchain format.
27589 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
27591 # An object symbol dumper.
27592 OBJDUMP=$lt_OBJDUMP
27594 # Method to check whether dependent libraries are shared objects.
27595 deplibs_check_method=$lt_deplibs_check_method
27597 # Command to use when deplibs_check_method = "file_magic".
27598 file_magic_cmd=$lt_file_magic_cmd
27600 # How to find potential files when deplibs_check_method = "file_magic".
27601 file_magic_glob=$lt_file_magic_glob
27603 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
27604 want_nocaseglob=$lt_want_nocaseglob
27606 # DLL creation program.
27607 DLLTOOL=$lt_DLLTOOL
27609 # Command to associate shared and link libraries.
27610 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
27615 # Flags to create an archive.
27616 AR_FLAGS=$lt_AR_FLAGS
27618 # How to feed a file listing to the archiver.
27619 archiver_list_spec=$lt_archiver_list_spec
27621 # A symbol stripping program.
27624 # Commands used to install an old-style archive.
27626 old_postinstall_cmds=$lt_old_postinstall_cmds
27627 old_postuninstall_cmds=$lt_old_postuninstall_cmds
27629 # Whether to use a lock for old archive extraction.
27630 lock_old_archive_extraction=$lock_old_archive_extraction
27635 # LTCC compiler flags.
27636 LTCFLAGS=$lt_CFLAGS
27638 # Take the output of nm and produce a listing of raw symbols and C names.
27639 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
27641 # Transform the output of nm in a proper C declaration.
27642 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
27644 # Transform the output of nm in a C name address pair.
27645 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
27647 # Transform the output of nm in a C name address pair when lib prefix is needed.
27648 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
27650 # Specify filename containing input files for \$NM.
27651 nm_file_list_spec=$lt_nm_file_list_spec
27653 # The root where to search for dependent libraries,and in which our libraries should be installed.
27654 lt_sysroot=$lt_sysroot
27656 # The name of the directory that contains temporary libtool files.
27659 # Used to examine libraries when file_magic_cmd begins with "file".
27660 MAGIC_CMD=$MAGIC_CMD
27662 # Must we lock files when doing compilation?
27663 need_locks=$lt_need_locks
27666 MANIFEST_TOOL=$lt_MANIFEST_TOOL
27668 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
27669 DSYMUTIL=$lt_DSYMUTIL
27671 # Tool to change global to local symbols on Mac OS X.
27674 # Tool to manipulate fat objects and archives on Mac OS X.
27677 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
27680 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
27681 OTOOL64=$lt_OTOOL64
27683 # Old archive suffix (normally "a").
27686 # Shared library suffix (normally ".so").
27687 shrext_cmds=$lt_shrext_cmds
27689 # The commands to extract the exported symbol list from a shared archive.
27690 extract_expsyms_cmds=$lt_extract_expsyms_cmds
27692 # Variables whose values should be saved in libtool wrapper scripts and
27693 # restored at link time.
27694 variables_saved_for_relink=$lt_variables_saved_for_relink
27696 # Do we need the "lib" prefix for modules?
27697 need_lib_prefix=$need_lib_prefix
27699 # Do we need a version for libraries?
27700 need_version=$need_version
27702 # Library versioning type.
27703 version_type=$version_type
27705 # Shared library runtime path variable.
27706 runpath_var=$runpath_var
27708 # Shared library path variable.
27709 shlibpath_var=$shlibpath_var
27711 # Is shlibpath searched before the hard-coded library search path?
27712 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
27714 # Format of library name prefix.
27715 libname_spec=$lt_libname_spec
27717 # List of archive names. First name is the real one, the rest are links.
27718 # The last name is the one that the linker finds with -lNAME
27719 library_names_spec=$lt_library_names_spec
27721 # The coded name of the library, if different from the real name.
27722 soname_spec=$lt_soname_spec
27724 # Permission mode override for installation of shared libraries.
27725 install_override_mode=$lt_install_override_mode
27727 # Command to use after installation of a shared archive.
27728 postinstall_cmds=$lt_postinstall_cmds
27730 # Command to use after uninstallation of a shared archive.
27731 postuninstall_cmds=$lt_postuninstall_cmds
27733 # Commands used to finish a libtool library installation in a directory.
27734 finish_cmds=$lt_finish_cmds
27736 # As "finish_cmds", except a single script fragment to be evaled but
27738 finish_eval=$lt_finish_eval
27740 # Whether we should hardcode library paths into libraries.
27741 hardcode_into_libs=$hardcode_into_libs
27743 # Compile-time system search path for libraries.
27744 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
27746 # Run-time system search path for libraries.
27747 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
27749 # Whether dlopen is supported.
27750 dlopen_support=$enable_dlopen
27752 # Whether dlopen of programs is supported.
27753 dlopen_self=$enable_dlopen_self
27755 # Whether dlopen of statically linked programs is supported.
27756 dlopen_self_static=$enable_dlopen_self_static
27758 # Commands to strip libraries.
27759 old_striplib=$lt_old_striplib
27760 striplib=$lt_striplib
27763 # The linker used to build libraries.
27766 # How to create reloadable object files.
27767 reload_flag=$lt_reload_flag
27768 reload_cmds=$lt_reload_cmds
27770 # Commands used to build an old-style archive.
27771 old_archive_cmds=$lt_old_archive_cmds
27773 # A language specific compiler.
27776 # Is the compiler the GNU compiler?
27779 # Compiler flag to turn off builtin functions.
27780 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
27782 # Additional compiler flags for building library objects.
27783 pic_flag=$lt_lt_prog_compiler_pic
27785 # How to pass a linker flag through the compiler.
27786 wl=$lt_lt_prog_compiler_wl
27788 # Compiler flag to prevent dynamic linking.
27789 link_static_flag=$lt_lt_prog_compiler_static
27791 # Does compiler simultaneously support -c and -o options?
27792 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
27794 # Whether or not to add -lc for building shared libraries.
27795 build_libtool_need_lc=$archive_cmds_need_lc
27797 # Whether or not to disallow shared libs when runtime libs are static.
27798 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
27800 # Compiler flag to allow reflexive dlopens.
27801 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
27803 # Compiler flag to generate shared objects directly from archives.
27804 whole_archive_flag_spec=$lt_whole_archive_flag_spec
27806 # Whether the compiler copes with passing no objects directly.
27807 compiler_needs_object=$lt_compiler_needs_object
27809 # Create an old-style archive from a shared archive.
27810 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
27812 # Create a temporary old-style archive to link instead of a shared archive.
27813 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
27815 # Commands used to build a shared archive.
27816 archive_cmds=$lt_archive_cmds
27817 archive_expsym_cmds=$lt_archive_expsym_cmds
27819 # Commands used to build a loadable module if different from building
27820 # a shared archive.
27821 module_cmds=$lt_module_cmds
27822 module_expsym_cmds=$lt_module_expsym_cmds
27824 # Whether we are building with GNU ld or not.
27825 with_gnu_ld=$lt_with_gnu_ld
27827 # Flag that allows shared libraries with undefined symbols to be built.
27828 allow_undefined_flag=$lt_allow_undefined_flag
27830 # Flag that enforces no undefined symbols.
27831 no_undefined_flag=$lt_no_undefined_flag
27833 # Flag to hardcode \$libdir into a binary during linking.
27834 # This must work even if \$libdir does not exist
27835 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
27837 # Whether we need a single "-rpath" flag with a separated argument.
27838 hardcode_libdir_separator=$lt_hardcode_libdir_separator
27840 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
27841 # DIR into the resulting binary.
27842 hardcode_direct=$hardcode_direct
27844 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
27845 # DIR into the resulting binary and the resulting library dependency is
27846 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
27847 # library is relocated.
27848 hardcode_direct_absolute=$hardcode_direct_absolute
27850 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
27851 # into the resulting binary.
27852 hardcode_minus_L=$hardcode_minus_L
27854 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
27855 # into the resulting binary.
27856 hardcode_shlibpath_var=$hardcode_shlibpath_var
27858 # Set to "yes" if building a shared library automatically hardcodes DIR
27859 # into the library and all subsequent libraries and executables linked
27861 hardcode_automatic=$hardcode_automatic
27863 # Set to yes if linker adds runtime paths of dependent libraries
27864 # to runtime path list.
27865 inherit_rpath=$inherit_rpath
27867 # Whether libtool must link a program against all its dependency libraries.
27868 link_all_deplibs=$link_all_deplibs
27870 # Set to "yes" if exported symbols are required.
27871 always_export_symbols=$always_export_symbols
27873 # The commands to list exported symbols.
27874 export_symbols_cmds=$lt_export_symbols_cmds
27876 # Symbols that should not be listed in the preloaded symbols.
27877 exclude_expsyms=$lt_exclude_expsyms
27879 # Symbols that must always be exported.
27880 include_expsyms=$lt_include_expsyms
27882 # Commands necessary for linking programs (against libraries) with templates.
27883 prelink_cmds=$lt_prelink_cmds
27885 # Commands necessary for finishing linking programs.
27886 postlink_cmds=$lt_postlink_cmds
27888 # Specify filename containing input files.
27889 file_list_spec=$lt_file_list_spec
27891 # How to hardcode a shared library path into an executable.
27892 hardcode_action=$hardcode_action
27894 # ### END LIBTOOL CONFIG
27900 cat <<\_LT_EOF >> "$cfgfile"
27901 # AIX sometimes has problems with the GCC collect2 program. For some
27902 # reason, if we set the COLLECT_NAMES environment variable, the problems
27903 # vanish in a puff of smoke.
27904 if test "X${COLLECT_NAMES+set}" != Xset; then
27906 export COLLECT_NAMES
27913 ltmain="$ac_aux_dir/ltmain.sh"
27916 # We use sed instead of cat because bash on DJGPP gets confused if
27917 # if finds mixed CR/LF and LF-only lines. Since sed operates in
27918 # text mode, it properly converts lines to CR/LF. This bash problem
27919 # is reportedly fixed, but why not run on old versions too?
27920 sed '$q' "$ltmain" >> "$cfgfile" \
27921 || (rm -f "$cfgfile"; exit 1)
27923 if test x"$xsi_shell" = xyes; then
27924 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
27928 \ */*) func_dirname_result="${1%/*}${2}" ;;\
27929 \ * ) func_dirname_result="${3}" ;;\
27931 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
27932 && mv -f "$cfgfile.tmp" "$cfgfile" \
27933 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
27934 test 0 -eq $? || _lt_function_replace_fail=:
27937 sed -e '/^func_basename ()$/,/^} # func_basename /c\
27940 \ func_basename_result="${1##*/}"\
27941 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
27942 && mv -f "$cfgfile.tmp" "$cfgfile" \
27943 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
27944 test 0 -eq $? || _lt_function_replace_fail=:
27947 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
27948 func_dirname_and_basename ()\
27951 \ */*) func_dirname_result="${1%/*}${2}" ;;\
27952 \ * ) func_dirname_result="${3}" ;;\
27954 \ func_basename_result="${1##*/}"\
27955 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
27956 && mv -f "$cfgfile.tmp" "$cfgfile" \
27957 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
27958 test 0 -eq $? || _lt_function_replace_fail=:
27961 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
27964 \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
27965 \ # positional parameters, so assign one to ordinary parameter first.\
27966 \ func_stripname_result=${3}\
27967 \ func_stripname_result=${func_stripname_result#"${1}"}\
27968 \ func_stripname_result=${func_stripname_result%"${2}"}\
27969 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
27970 && mv -f "$cfgfile.tmp" "$cfgfile" \
27971 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
27972 test 0 -eq $? || _lt_function_replace_fail=:
27975 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
27976 func_split_long_opt ()\
27978 \ func_split_long_opt_name=${1%%=*}\
27979 \ func_split_long_opt_arg=${1#*=}\
27980 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
27981 && mv -f "$cfgfile.tmp" "$cfgfile" \
27982 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
27983 test 0 -eq $? || _lt_function_replace_fail=:
27986 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
27987 func_split_short_opt ()\
27989 \ func_split_short_opt_arg=${1#??}\
27990 \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
27991 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
27992 && mv -f "$cfgfile.tmp" "$cfgfile" \
27993 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
27994 test 0 -eq $? || _lt_function_replace_fail=:
27997 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
28001 \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
28002 \ *) func_lo2o_result=${1} ;;\
28004 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
28005 && mv -f "$cfgfile.tmp" "$cfgfile" \
28006 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
28007 test 0 -eq $? || _lt_function_replace_fail=:
28010 sed -e '/^func_xform ()$/,/^} # func_xform /c\
28013 func_xform_result=${1%.*}.lo\
28014 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
28015 && mv -f "$cfgfile.tmp" "$cfgfile" \
28016 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
28017 test 0 -eq $? || _lt_function_replace_fail=:
28020 sed -e '/^func_arith ()$/,/^} # func_arith /c\
28023 func_arith_result=$(( $* ))\
28024 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
28025 && mv -f "$cfgfile.tmp" "$cfgfile" \
28026 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
28027 test 0 -eq $? || _lt_function_replace_fail=:
28030 sed -e '/^func_len ()$/,/^} # func_len /c\
28033 func_len_result=${#1}\
28034 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
28035 && mv -f "$cfgfile.tmp" "$cfgfile" \
28036 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
28037 test 0 -eq $? || _lt_function_replace_fail=:
28041 if test x"$lt_shell_append" = xyes; then
28042 sed -e '/^func_append ()$/,/^} # func_append /c\
28045 eval "${1}+=\\${2}"\
28046 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
28047 && mv -f "$cfgfile.tmp" "$cfgfile" \
28048 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
28049 test 0 -eq $? || _lt_function_replace_fail=:
28052 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
28053 func_append_quoted ()\
28055 \ func_quote_for_eval "${2}"\
28056 \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
28057 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
28058 && mv -f "$cfgfile.tmp" "$cfgfile" \
28059 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
28060 test 0 -eq $? || _lt_function_replace_fail=:
28063 # Save a `func_append' function call where possible by direct use of '+='
28064 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
28065 && mv -f "$cfgfile.tmp" "$cfgfile" \
28066 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
28067 test 0 -eq $? || _lt_function_replace_fail=:
28069 # Save a `func_append' function call even when '+=' is not available
28070 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
28071 && mv -f "$cfgfile.tmp" "$cfgfile" \
28072 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
28073 test 0 -eq $? || _lt_function_replace_fail=:
28076 if test x"$_lt_function_replace_fail" = x":"; then
28077 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
28078 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
28082 mv -f "$cfgfile" "$ofile" ||
28083 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
28094 ac_clean_files=$ac_clean_files_save
28096 test $ac_write_fail = 0 ||
28097 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
28100 # configure is writing to config.log, and then calls config.status.
28101 # config.status does its own redirection, appending to config.log.
28102 # Unfortunately, on DOS this fails, as config.log is still kept open
28103 # by configure, so config.status won't be able to write to it; its
28104 # output is simply discarded. So we exec the FD to /dev/null,
28105 # effectively closing config.log, so it can be properly (re)opened and
28106 # appended to by config.status. When coming back to configure, we
28107 # need to make the FD available again.
28108 if test "$no_create" != yes; then
28110 ac_config_status_args=
28111 test "$silent" = yes &&
28112 ac_config_status_args="$ac_config_status_args --quiet"
28114 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
28116 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
28117 # would make configure fail if this is the last instruction.
28118 $ac_cs_success || as_fn_exit 1
28120 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
28121 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
28122 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}