2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for libpipeline 1.5.2.
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.5.2'
594 PACKAGE_STRING='libpipeline 1.5.2'
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
649 NEXT_AS_FIRST_DIRECTIVE_WCHAR_H
747 NEXT_AS_FIRST_DIRECTIVE_UNISTD_H
749 UNISTD_H_DEFINES_STRUCT_TIMESPEC
750 PTHREAD_H_DEFINES_STRUCT_TIMESPEC
751 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC
752 TIME_H_DEFINES_STRUCT_TIMESPEC
753 NEXT_AS_FIRST_DIRECTIVE_TIME_H
755 NEXT_AS_FIRST_DIRECTIVE_SYS_WAIT_H
760 NEXT_AS_FIRST_DIRECTIVE_SYS_TYPES_H
763 NEXT_AS_FIRST_DIRECTIVE_SYS_SELECT_H
770 NEXT_AS_FIRST_DIRECTIVE_STRING_H
772 NEXT_AS_FIRST_DIRECTIVE_STDLIB_H
774 NEXT_AS_FIRST_DIRECTIVE_STDIO_H
776 GL_GENERATE_STDINT_H_FALSE
777 GL_GENERATE_STDINT_H_TRUE
789 HAVE_SIGNED_SIG_ATOMIC_T
792 BITSIZEOF_SIG_ATOMIC_T
796 NEXT_AS_FIRST_DIRECTIVE_STDINT_H
801 HAVE_UNSIGNED_LONG_LONG_INT
803 GNULIB_OVERRIDES_WINT_T
804 NEXT_AS_FIRST_DIRECTIVE_STDDEF_H
806 GL_GENERATE_STDDEF_H_FALSE
807 GL_GENERATE_STDDEF_H_TRUE
813 GL_GENERATE_STDBOOL_H_FALSE
814 GL_GENERATE_STDBOOL_H_TRUE
816 GL_GENERATE_STDARG_H_FALSE
817 GL_GENERATE_STDARG_H_TRUE
819 NEXT_AS_FIRST_DIRECTIVE_STDARG_H
821 WINDOWS_64_BIT_ST_SIZE
822 WINDOWS_STAT_TIMESPEC
823 NEXT_AS_FIRST_DIRECTIVE_SYS_STAT_H
832 REPLACE_STDIO_WRITE_FUNCS
833 REPLACE_STDIO_READ_FUNCS
842 REPLACE_OBSTACK_PRINTF
867 HAVE_DECL_OBSTACK_PRINTF
873 GNULIB_VSPRINTF_POSIX
877 GNULIB_VFPRINTF_POSIX
884 GNULIB_STDIO_H_SIGPIPE
885 GNULIB_STDIO_H_NONBLOCKING
900 GNULIB_OBSTACK_PRINTF_POSIX
901 GNULIB_OBSTACK_PRINTF
926 NEXT_AS_FIRST_DIRECTIVE_SIGNAL_H
929 REPLACE_PTHREAD_SIGMASK
931 HAVE_TYPE_VOLATILE_SIG_ATOMIC_T
932 HAVE_STRUCT_SIGACTION_SA_SIGACTION
938 HAVE_POSIX_SIGNALBLOCKING
941 GNULIB_SIGNAL_H_SIGPIPE
943 GNULIB_PTHREAD_SIGMASK
944 APPLE_UNIVERSAL_BUILD
945 HAVE_MSVC_INVALID_PARAMETER_HANDLER
1020 GNULIB_EXPLICIT_BZERO
1035 REPLACE_CANONICALIZE_FILE_NAME
1040 HAVE_STRUCT_RANDOM_DATA
1066 HAVE_DECL_GETLOADAVG
1067 HAVE_CANONICALIZE_FILE_NAME
1078 GNULIB_SECURE_GETENV
1081 GNULIB_REALLOC_POSIX
1100 GNULIB_CANONICALIZE_FILE_NAME
1124 GNULIB_OVERRIDES_STRUCT_STAT
1145 GL_GENERATE_LIMITS_H_FALSE
1146 GL_GENERATE_LIMITS_H_TRUE
1148 NEXT_AS_FIRST_DIRECTIVE_LIMITS_H
1150 IGNORE_UNUSED_LIBRARIES_CFLAGS
1165 HAVE_DECL_LOCALTIME_R
1177 NEXT_AS_FIRST_DIRECTIVE_SYS_TIME_H
1179 REPLACE_STRUCT_TIMEVAL
1180 REPLACE_GETTIMEOFDAY
1188 GL_GENERATE_FLOAT_H_FALSE
1189 GL_GENERATE_FLOAT_H_TRUE
1191 NEXT_AS_FIRST_DIRECTIVE_FLOAT_H
1193 NEXT_AS_FIRST_DIRECTIVE_FCNTL_H
1210 GL_GENERATE_ERRNO_H_FALSE
1211 GL_GENERATE_ERRNO_H_TRUE
1213 NEXT_AS_FIRST_DIRECTIVE_ERRNO_H
1216 PRAGMA_SYSTEM_HEADER
1217 INCLUDE_NEXT_AS_FIRST_DIRECTIVE
1219 UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS
1220 UNISTD_H_HAVE_WINSOCK2_H
1245 REPLACE_GETDTABLESIZE
1246 REPLACE_GETDOMAINNAME
1259 HAVE_DECL_SETHOSTNAME
1260 HAVE_DECL_GETUSERSHELL
1261 HAVE_DECL_GETPAGESIZE
1262 HAVE_DECL_GETLOGIN_R
1264 HAVE_DECL_GETDOMAINNAME
1304 GNULIB_UNISTD_H_SIGPIPE
1305 GNULIB_UNISTD_H_NONBLOCKING
1333 GNULIB_GETDTABLESIZE
1334 GNULIB_GETDOMAINNAME
1350 GL_GENERATE_ALLOCA_H_FALSE
1351 GL_GENERATE_ALLOCA_H_TRUE
1354 GL_COND_LIBTOOL_FALSE
1355 GL_COND_LIBTOOL_TRUE
1413 MAINTAINER_MODE_FALSE
1414 MAINTAINER_MODE_TRUE
1416 AM_DEFAULT_VERBOSITY
1427 INSTALL_STRIP_PROGRAM
1470 program_transform_name
1484 enable_option_checking
1486 enable_maintainer_mode
1487 enable_dependency_tracking
1500 enable_socketpair_pipe
1502 ac_precious_vars='build_alias
1519 # Initialize some variables set by options.
1521 ac_init_version=false
1522 ac_unrecognized_opts=
1523 ac_unrecognized_sep=
1524 # The variables have the same names as the options, with
1525 # dashes changed to underlines.
1526 cache_file=/dev/null
1533 program_transform_name=s,x,x,
1541 # Installation directory options.
1542 # These are left unexpanded so users can "make install exec_prefix=/foo"
1543 # and all the variables that are supposed to be based on exec_prefix
1544 # by default will actually change.
1545 # Use braces instead of parens because sh, perl, etc. also accept them.
1546 # (The list follows the same order as the GNU Coding Standards.)
1547 bindir='${exec_prefix}/bin'
1548 sbindir='${exec_prefix}/sbin'
1549 libexecdir='${exec_prefix}/libexec'
1550 datarootdir='${prefix}/share'
1551 datadir='${datarootdir}'
1552 sysconfdir='${prefix}/etc'
1553 sharedstatedir='${prefix}/com'
1554 localstatedir='${prefix}/var'
1555 runstatedir='${localstatedir}/run'
1556 includedir='${prefix}/include'
1557 oldincludedir='/usr/include'
1558 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1559 infodir='${datarootdir}/info'
1564 libdir='${exec_prefix}/lib'
1565 localedir='${datarootdir}/locale'
1566 mandir='${datarootdir}/man'
1572 # If the previous option needs an argument, assign it.
1573 if test -n "$ac_prev"; then
1574 eval $ac_prev=\$ac_option
1580 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1585 # Accept the important Cygnus configure options, so we can diagnose typos.
1587 case $ac_dashdash$ac_option in
1591 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1593 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1594 bindir=$ac_optarg ;;
1596 -build | --build | --buil | --bui | --bu)
1597 ac_prev=build_alias ;;
1598 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1599 build_alias=$ac_optarg ;;
1601 -cache-file | --cache-file | --cache-fil | --cache-fi \
1602 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1603 ac_prev=cache_file ;;
1604 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1605 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1606 cache_file=$ac_optarg ;;
1608 --config-cache | -C)
1609 cache_file=config.cache ;;
1611 -datadir | --datadir | --datadi | --datad)
1613 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1614 datadir=$ac_optarg ;;
1616 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1617 | --dataroo | --dataro | --datar)
1618 ac_prev=datarootdir ;;
1619 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1620 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1621 datarootdir=$ac_optarg ;;
1623 -disable-* | --disable-*)
1624 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1625 # Reject names that are not valid shell variable names.
1626 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1627 as_fn_error $? "invalid feature name: $ac_useropt"
1628 ac_useropt_orig=$ac_useropt
1629 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1630 case $ac_user_opts in
1632 "enable_$ac_useropt"
1634 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1635 ac_unrecognized_sep=', ';;
1637 eval enable_$ac_useropt=no ;;
1639 -docdir | --docdir | --docdi | --doc | --do)
1641 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1642 docdir=$ac_optarg ;;
1644 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1646 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1647 dvidir=$ac_optarg ;;
1649 -enable-* | --enable-*)
1650 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1651 # Reject names that are not valid shell variable names.
1652 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1653 as_fn_error $? "invalid feature name: $ac_useropt"
1654 ac_useropt_orig=$ac_useropt
1655 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1656 case $ac_user_opts in
1658 "enable_$ac_useropt"
1660 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1661 ac_unrecognized_sep=', ';;
1663 eval enable_$ac_useropt=\$ac_optarg ;;
1665 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1666 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1667 | --exec | --exe | --ex)
1668 ac_prev=exec_prefix ;;
1669 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1670 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1671 | --exec=* | --exe=* | --ex=*)
1672 exec_prefix=$ac_optarg ;;
1674 -gas | --gas | --ga | --g)
1675 # Obsolete; use --with-gas.
1678 -help | --help | --hel | --he | -h)
1679 ac_init_help=long ;;
1680 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1681 ac_init_help=recursive ;;
1682 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1683 ac_init_help=short ;;
1685 -host | --host | --hos | --ho)
1686 ac_prev=host_alias ;;
1687 -host=* | --host=* | --hos=* | --ho=*)
1688 host_alias=$ac_optarg ;;
1690 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1692 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1694 htmldir=$ac_optarg ;;
1696 -includedir | --includedir | --includedi | --included | --include \
1697 | --includ | --inclu | --incl | --inc)
1698 ac_prev=includedir ;;
1699 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1700 | --includ=* | --inclu=* | --incl=* | --inc=*)
1701 includedir=$ac_optarg ;;
1703 -infodir | --infodir | --infodi | --infod | --info | --inf)
1705 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1706 infodir=$ac_optarg ;;
1708 -libdir | --libdir | --libdi | --libd)
1710 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1711 libdir=$ac_optarg ;;
1713 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1714 | --libexe | --libex | --libe)
1715 ac_prev=libexecdir ;;
1716 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1717 | --libexe=* | --libex=* | --libe=*)
1718 libexecdir=$ac_optarg ;;
1720 -localedir | --localedir | --localedi | --localed | --locale)
1721 ac_prev=localedir ;;
1722 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1723 localedir=$ac_optarg ;;
1725 -localstatedir | --localstatedir | --localstatedi | --localstated \
1726 | --localstate | --localstat | --localsta | --localst | --locals)
1727 ac_prev=localstatedir ;;
1728 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1729 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1730 localstatedir=$ac_optarg ;;
1732 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1734 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1735 mandir=$ac_optarg ;;
1737 -nfp | --nfp | --nf)
1738 # Obsolete; use --without-fp.
1741 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1742 | --no-cr | --no-c | -n)
1745 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1746 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1749 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1750 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1751 | --oldin | --oldi | --old | --ol | --o)
1752 ac_prev=oldincludedir ;;
1753 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1754 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1755 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1756 oldincludedir=$ac_optarg ;;
1758 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1760 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1761 prefix=$ac_optarg ;;
1763 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1764 | --program-pre | --program-pr | --program-p)
1765 ac_prev=program_prefix ;;
1766 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1767 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1768 program_prefix=$ac_optarg ;;
1770 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1771 | --program-suf | --program-su | --program-s)
1772 ac_prev=program_suffix ;;
1773 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1774 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1775 program_suffix=$ac_optarg ;;
1777 -program-transform-name | --program-transform-name \
1778 | --program-transform-nam | --program-transform-na \
1779 | --program-transform-n | --program-transform- \
1780 | --program-transform | --program-transfor \
1781 | --program-transfo | --program-transf \
1782 | --program-trans | --program-tran \
1783 | --progr-tra | --program-tr | --program-t)
1784 ac_prev=program_transform_name ;;
1785 -program-transform-name=* | --program-transform-name=* \
1786 | --program-transform-nam=* | --program-transform-na=* \
1787 | --program-transform-n=* | --program-transform-=* \
1788 | --program-transform=* | --program-transfor=* \
1789 | --program-transfo=* | --program-transf=* \
1790 | --program-trans=* | --program-tran=* \
1791 | --progr-tra=* | --program-tr=* | --program-t=*)
1792 program_transform_name=$ac_optarg ;;
1794 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1796 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1797 pdfdir=$ac_optarg ;;
1799 -psdir | --psdir | --psdi | --psd | --ps)
1801 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1804 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1805 | -silent | --silent | --silen | --sile | --sil)
1808 -runstatedir | --runstatedir | --runstatedi | --runstated \
1809 | --runstate | --runstat | --runsta | --runst | --runs \
1810 | --run | --ru | --r)
1811 ac_prev=runstatedir ;;
1812 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1813 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1814 | --run=* | --ru=* | --r=*)
1815 runstatedir=$ac_optarg ;;
1817 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1819 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1821 sbindir=$ac_optarg ;;
1823 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1824 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1825 | --sharedst | --shareds | --shared | --share | --shar \
1827 ac_prev=sharedstatedir ;;
1828 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1829 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1830 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1832 sharedstatedir=$ac_optarg ;;
1834 -site | --site | --sit)
1836 -site=* | --site=* | --sit=*)
1839 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1841 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1842 srcdir=$ac_optarg ;;
1844 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1845 | --syscon | --sysco | --sysc | --sys | --sy)
1846 ac_prev=sysconfdir ;;
1847 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1848 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1849 sysconfdir=$ac_optarg ;;
1851 -target | --target | --targe | --targ | --tar | --ta | --t)
1852 ac_prev=target_alias ;;
1853 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1854 target_alias=$ac_optarg ;;
1856 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1859 -version | --version | --versio | --versi | --vers | -V)
1860 ac_init_version=: ;;
1863 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1864 # Reject names that are not valid shell variable names.
1865 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1866 as_fn_error $? "invalid package name: $ac_useropt"
1867 ac_useropt_orig=$ac_useropt
1868 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1869 case $ac_user_opts in
1873 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1874 ac_unrecognized_sep=', ';;
1876 eval with_$ac_useropt=\$ac_optarg ;;
1878 -without-* | --without-*)
1879 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1880 # Reject names that are not valid shell variable names.
1881 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1882 as_fn_error $? "invalid package name: $ac_useropt"
1883 ac_useropt_orig=$ac_useropt
1884 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1885 case $ac_user_opts in
1889 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1890 ac_unrecognized_sep=', ';;
1892 eval with_$ac_useropt=no ;;
1895 # Obsolete; use --with-x.
1898 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1899 | --x-incl | --x-inc | --x-in | --x-i)
1900 ac_prev=x_includes ;;
1901 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1902 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1903 x_includes=$ac_optarg ;;
1905 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1906 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1907 ac_prev=x_libraries ;;
1908 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1909 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1910 x_libraries=$ac_optarg ;;
1912 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1913 Try \`$0 --help' for more information"
1917 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1918 # Reject names that are not valid shell variable names.
1919 case $ac_envvar in #(
1920 '' | [0-9]* | *[!_$as_cr_alnum]* )
1921 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1923 eval $ac_envvar=\$ac_optarg
1924 export $ac_envvar ;;
1927 # FIXME: should be removed in autoconf 3.0.
1928 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1929 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1930 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1931 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1937 if test -n "$ac_prev"; then
1938 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1939 as_fn_error $? "missing argument to $ac_option"
1942 if test -n "$ac_unrecognized_opts"; then
1943 case $enable_option_checking in
1945 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1946 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1950 # Check all directory arguments for consistency.
1951 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1952 datadir sysconfdir sharedstatedir localstatedir includedir \
1953 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1954 libdir localedir mandir runstatedir
1956 eval ac_val=\$$ac_var
1957 # Remove trailing slashes.
1960 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1961 eval $ac_var=\$ac_val;;
1963 # Be sure to have absolute directory names.
1965 [\\/$]* | ?:[\\/]* ) continue;;
1966 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1968 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1971 # There might be people who depend on the old broken behavior: `$host'
1972 # used to hold the argument of --host etc.
1973 # FIXME: To remove some day.
1976 target=$target_alias
1978 # FIXME: To remove some day.
1979 if test "x$host_alias" != x; then
1980 if test "x$build_alias" = x; then
1981 cross_compiling=maybe
1982 elif test "x$build_alias" != "x$host_alias"; then
1988 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1990 test "$silent" = yes && exec 6>/dev/null
1993 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1994 ac_ls_di=`ls -di .` &&
1995 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1996 as_fn_error $? "working directory cannot be determined"
1997 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1998 as_fn_error $? "pwd does not report name of working directory"
2001 # Find the source files, if location was not specified.
2002 if test -z "$srcdir"; then
2003 ac_srcdir_defaulted=yes
2004 # Try the directory containing this script, then the parent directory.
2005 ac_confdir=`$as_dirname -- "$as_myself" ||
2006 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
2007 X"$as_myself" : 'X\(//\)[^/]' \| \
2008 X"$as_myself" : 'X\(//\)$' \| \
2009 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
2010 $as_echo X"$as_myself" |
2011 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
2029 if test ! -r "$srcdir/$ac_unique_file"; then
2033 ac_srcdir_defaulted=no
2035 if test ! -r "$srcdir/$ac_unique_file"; then
2036 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
2037 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
2039 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
2041 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
2043 # When building in place, set srcdir=.
2044 if test "$ac_abs_confdir" = "$ac_pwd"; then
2047 # Remove unnecessary trailing slashes from srcdir.
2048 # Double slashes in file names in object file debugging info
2049 # mess up M-x gdb in Emacs.
2051 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
2053 for ac_var in $ac_precious_vars; do
2054 eval ac_env_${ac_var}_set=\${${ac_var}+set}
2055 eval ac_env_${ac_var}_value=\$${ac_var}
2056 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
2057 eval ac_cv_env_${ac_var}_value=\$${ac_var}
2061 # Report the --help message.
2063 if test "$ac_init_help" = "long"; then
2064 # Omit some internal or obsolete options to make the list less imposing.
2065 # This message is too long to be a string in the A/UX 3.1 sh.
2067 \`configure' configures libpipeline 1.5.2 to adapt to many kinds of systems.
2069 Usage: $0 [OPTION]... [VAR=VALUE]...
2071 To assign environment variables (e.g., CC, CFLAGS...), specify them as
2072 VAR=VALUE. See below for descriptions of some of the useful variables.
2074 Defaults for the options are specified in brackets.
2077 -h, --help display this help and exit
2078 --help=short display options specific to this package
2079 --help=recursive display the short help of all the included packages
2080 -V, --version display version information and exit
2081 -q, --quiet, --silent do not print \`checking ...' messages
2082 --cache-file=FILE cache test results in FILE [disabled]
2083 -C, --config-cache alias for \`--cache-file=config.cache'
2084 -n, --no-create do not create output files
2085 --srcdir=DIR find the sources in DIR [configure dir or \`..']
2087 Installation directories:
2088 --prefix=PREFIX install architecture-independent files in PREFIX
2089 [$ac_default_prefix]
2090 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
2093 By default, \`make install' will install all the files in
2094 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
2095 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
2096 for instance \`--prefix=\$HOME'.
2098 For better control, use the options below.
2100 Fine tuning of the installation directories:
2101 --bindir=DIR user executables [EPREFIX/bin]
2102 --sbindir=DIR system admin executables [EPREFIX/sbin]
2103 --libexecdir=DIR program executables [EPREFIX/libexec]
2104 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
2105 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
2106 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
2107 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
2108 --libdir=DIR object code libraries [EPREFIX/lib]
2109 --includedir=DIR C header files [PREFIX/include]
2110 --oldincludedir=DIR C header files for non-gcc [/usr/include]
2111 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
2112 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
2113 --infodir=DIR info documentation [DATAROOTDIR/info]
2114 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
2115 --mandir=DIR man documentation [DATAROOTDIR/man]
2116 --docdir=DIR documentation root [DATAROOTDIR/doc/libpipeline]
2117 --htmldir=DIR html documentation [DOCDIR]
2118 --dvidir=DIR dvi documentation [DOCDIR]
2119 --pdfdir=DIR pdf documentation [DOCDIR]
2120 --psdir=DIR ps documentation [DOCDIR]
2126 --program-prefix=PREFIX prepend PREFIX to installed program names
2127 --program-suffix=SUFFIX append SUFFIX to installed program names
2128 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
2131 --build=BUILD configure for building on BUILD [guessed]
2132 --host=HOST cross-compile to build programs to run on HOST [BUILD]
2136 if test -n "$ac_init_help"; then
2137 case $ac_init_help in
2138 short | recursive ) echo "Configuration of libpipeline 1.5.2:";;
2143 --disable-option-checking ignore unrecognized --enable/--with options
2144 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
2145 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
2146 --enable-silent-rules less verbose build output (undo: "make V=1")
2147 --disable-silent-rules verbose build output (undo: "make V=0")
2148 --enable-maintainer-mode
2149 enable make rules and dependencies not useful (and
2150 sometimes confusing) to the casual installer
2151 --enable-dependency-tracking
2152 do not reject slow dependency extractors
2153 --disable-dependency-tracking
2154 speeds up one-time build
2155 --disable-largefile omit support for large files
2156 --enable-threads={posix|solaris|pth|windows}
2157 specify multithreading API
2158 --disable-threads build without multithread safety
2159 --enable-static[=PKGS] build static libraries [default=no]
2160 --enable-shared[=PKGS] build shared libraries [default=yes]
2161 --enable-fast-install[=PKGS]
2162 optimize for fast installation [default=yes]
2163 --disable-libtool-lock avoid locking (might break parallel builds)
2164 --disable-rpath do not hardcode runtime library paths
2165 --enable-socketpair-pipe
2166 Use socketpair(2) as fast replacement for pipe(2)
2169 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
2170 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
2171 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
2173 --with-aix-soname=aix|svr4|both
2174 shared library versioning (aka "SONAME") variant to
2175 provide on AIX, [default=aix].
2176 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
2177 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
2178 compiler's sysroot if not specified).
2179 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
2180 --with-libpth-prefix[=DIR] search for libpth in DIR/include and DIR/lib
2181 --without-libpth-prefix don't search for libpth in includedir and libdir
2183 Some influential environment variables:
2184 CC C compiler command
2185 CFLAGS C compiler flags
2186 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
2187 nonstandard directory <lib dir>
2188 LIBS libraries to pass to the linker, e.g. -l<library>
2189 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
2190 you have headers in a nonstandard directory <include dir>
2193 User-defined run-time library search path.
2194 PKG_CONFIG path to pkg-config utility
2196 directories to add to pkg-config's search path
2198 path overriding pkg-config's built-in search path
2200 C compiler flags for CHECK, overriding pkg-config
2201 CHECK_LIBS linker flags for CHECK, overriding pkg-config
2203 Use these variables to override the choices made by `configure' or to help
2204 it to find libraries and programs with nonstandard names/locations.
2206 Report bugs to <cjwatson@debian.org>.
2211 if test "$ac_init_help" = "recursive"; then
2212 # If there are subdirs, report their specific --help.
2213 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
2214 test -d "$ac_dir" ||
2215 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
2220 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
2222 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
2223 # A ".." for each directory in $ac_dir_suffix.
2224 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
2225 case $ac_top_builddir_sub in
2226 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
2227 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
2230 ac_abs_top_builddir=$ac_pwd
2231 ac_abs_builddir=$ac_pwd$ac_dir_suffix
2232 # for backward compatibility:
2233 ac_top_builddir=$ac_top_build_prefix
2236 .) # We are building in place.
2238 ac_top_srcdir=$ac_top_builddir_sub
2239 ac_abs_top_srcdir=$ac_pwd ;;
2240 [\\/]* | ?:[\\/]* ) # Absolute name.
2241 ac_srcdir=$srcdir$ac_dir_suffix;
2242 ac_top_srcdir=$srcdir
2243 ac_abs_top_srcdir=$srcdir ;;
2245 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
2246 ac_top_srcdir=$ac_top_build_prefix$srcdir
2247 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
2249 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
2251 cd "$ac_dir" || { ac_status=$?; continue; }
2252 # Check for guested configure.
2253 if test -f "$ac_srcdir/configure.gnu"; then
2255 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
2256 elif test -f "$ac_srcdir/configure"; then
2258 $SHELL "$ac_srcdir/configure" --help=recursive
2260 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
2262 cd "$ac_pwd" || { ac_status=$?; break; }
2266 test -n "$ac_init_help" && exit $ac_status
2267 if $ac_init_version; then
2269 libpipeline configure 1.5.2
2270 generated by GNU Autoconf 2.69
2272 Copyright (C) 2012 Free Software Foundation, Inc.
2273 This configure script is free software; the Free Software Foundation
2274 gives unlimited permission to copy, distribute and modify it.
2279 ## ------------------------ ##
2280 ## Autoconf initialization. ##
2281 ## ------------------------ ##
2283 # ac_fn_c_try_compile LINENO
2284 # --------------------------
2285 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2286 ac_fn_c_try_compile ()
2288 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2289 rm -f conftest.$ac_objext
2290 if { { ac_try="$ac_compile"
2292 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2293 *) ac_try_echo=$ac_try;;
2295 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2296 $as_echo "$ac_try_echo"; } >&5
2297 (eval "$ac_compile") 2>conftest.err
2299 if test -s conftest.err; then
2300 grep -v '^ *+' conftest.err >conftest.er1
2301 cat conftest.er1 >&5
2302 mv -f conftest.er1 conftest.err
2304 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2305 test $ac_status = 0; } && {
2306 test -z "$ac_c_werror_flag" ||
2307 test ! -s conftest.err
2308 } && test -s conftest.$ac_objext; then :
2311 $as_echo "$as_me: failed program was:" >&5
2312 sed 's/^/| /' conftest.$ac_ext >&5
2316 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2317 as_fn_set_status $ac_retval
2319 } # ac_fn_c_try_compile
2321 # ac_fn_c_try_cpp LINENO
2322 # ----------------------
2323 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2326 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2327 if { { ac_try="$ac_cpp conftest.$ac_ext"
2329 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2330 *) ac_try_echo=$ac_try;;
2332 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2333 $as_echo "$ac_try_echo"; } >&5
2334 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2336 if test -s conftest.err; then
2337 grep -v '^ *+' conftest.err >conftest.er1
2338 cat conftest.er1 >&5
2339 mv -f conftest.er1 conftest.err
2341 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2342 test $ac_status = 0; } > conftest.i && {
2343 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2344 test ! -s conftest.err
2348 $as_echo "$as_me: failed program was:" >&5
2349 sed 's/^/| /' conftest.$ac_ext >&5
2353 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2354 as_fn_set_status $ac_retval
2358 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2359 # -------------------------------------------------------
2360 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2361 # the include files in INCLUDES and setting the cache variable VAR
2363 ac_fn_c_check_header_mongrel ()
2365 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2366 if eval \${$3+:} false; then :
2367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2368 $as_echo_n "checking for $2... " >&6; }
2369 if eval \${$3+:} false; then :
2370 $as_echo_n "(cached) " >&6
2373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2374 $as_echo "$ac_res" >&6; }
2376 # Is the header compilable?
2377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2378 $as_echo_n "checking $2 usability... " >&6; }
2379 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2380 /* end confdefs.h. */
2384 if ac_fn_c_try_compile "$LINENO"; then :
2385 ac_header_compiler=yes
2387 ac_header_compiler=no
2389 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2391 $as_echo "$ac_header_compiler" >&6; }
2393 # Is the header present?
2394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2395 $as_echo_n "checking $2 presence... " >&6; }
2396 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2397 /* end confdefs.h. */
2400 if ac_fn_c_try_cpp "$LINENO"; then :
2401 ac_header_preproc=yes
2403 ac_header_preproc=no
2405 rm -f conftest.err conftest.i conftest.$ac_ext
2406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2407 $as_echo "$ac_header_preproc" >&6; }
2409 # So? What about this header?
2410 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2412 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2413 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2414 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2415 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2418 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2419 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2420 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2421 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2422 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2423 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2424 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2425 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2426 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2427 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2428 ( $as_echo "## ---------------------------------- ##
2429 ## Report this to cjwatson@debian.org ##
2430 ## ---------------------------------- ##"
2431 ) | sed "s/^/$as_me: WARNING: /" >&2
2434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2435 $as_echo_n "checking for $2... " >&6; }
2436 if eval \${$3+:} false; then :
2437 $as_echo_n "(cached) " >&6
2439 eval "$3=\$ac_header_compiler"
2442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2443 $as_echo "$ac_res" >&6; }
2445 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2447 } # ac_fn_c_check_header_mongrel
2449 # ac_fn_c_try_run LINENO
2450 # ----------------------
2451 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2452 # that executables *can* be run.
2455 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2456 if { { ac_try="$ac_link"
2458 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2459 *) ac_try_echo=$ac_try;;
2461 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2462 $as_echo "$ac_try_echo"; } >&5
2463 (eval "$ac_link") 2>&5
2465 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2466 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2467 { { case "(($ac_try" in
2468 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2469 *) ac_try_echo=$ac_try;;
2471 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2472 $as_echo "$ac_try_echo"; } >&5
2473 (eval "$ac_try") 2>&5
2475 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2476 test $ac_status = 0; }; }; then :
2479 $as_echo "$as_me: program exited with status $ac_status" >&5
2480 $as_echo "$as_me: failed program was:" >&5
2481 sed 's/^/| /' conftest.$ac_ext >&5
2483 ac_retval=$ac_status
2485 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2486 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2487 as_fn_set_status $ac_retval
2491 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2492 # -------------------------------------------------------
2493 # Tests whether HEADER exists and can be compiled using the include files in
2494 # INCLUDES, setting the cache variable VAR accordingly.
2495 ac_fn_c_check_header_compile ()
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. */
2508 if ac_fn_c_try_compile "$LINENO"; then :
2513 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2517 $as_echo "$ac_res" >&6; }
2518 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2520 } # ac_fn_c_check_header_compile
2522 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2523 # --------------------------------------------
2524 # Tries to find the compile-time value of EXPR in a program that includes
2525 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2527 ac_fn_c_compute_int ()
2529 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2530 if test "$cross_compiling" = yes; then
2531 # Depending upon the size, compute the lo and hi bounds.
2532 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2533 /* end confdefs.h. */
2538 static int test_array [1 - 2 * !(($2) >= 0)];
2540 return test_array [0];
2546 if ac_fn_c_try_compile "$LINENO"; then :
2549 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2550 /* end confdefs.h. */
2555 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2557 return test_array [0];
2563 if ac_fn_c_try_compile "$LINENO"; then :
2564 ac_hi=$ac_mid; break
2566 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2567 if test $ac_lo -le $ac_mid; then
2571 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2573 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2576 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2577 /* end confdefs.h. */
2582 static int test_array [1 - 2 * !(($2) < 0)];
2584 return test_array [0];
2590 if ac_fn_c_try_compile "$LINENO"; then :
2593 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2594 /* end confdefs.h. */
2599 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2601 return test_array [0];
2607 if ac_fn_c_try_compile "$LINENO"; then :
2608 ac_lo=$ac_mid; break
2610 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2611 if test $ac_mid -le $ac_hi; then
2615 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2617 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2622 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2624 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2625 # Binary search between lo and hi bounds.
2626 while test "x$ac_lo" != "x$ac_hi"; do
2627 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2628 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2629 /* end confdefs.h. */
2634 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2636 return test_array [0];
2642 if ac_fn_c_try_compile "$LINENO"; then :
2645 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2647 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2650 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2654 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2655 /* end confdefs.h. */
2657 static long int longval () { return $2; }
2658 static unsigned long int ulongval () { return $2; }
2665 FILE *f = fopen ("conftest.val", "w");
2670 long int i = longval ();
2673 fprintf (f, "%ld", i);
2677 unsigned long int i = ulongval ();
2680 fprintf (f, "%lu", i);
2682 /* Do not output a trailing newline, as this causes \r\n confusion
2683 on some platforms. */
2684 return ferror (f) || fclose (f) != 0;
2690 if ac_fn_c_try_run "$LINENO"; then :
2691 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2695 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2696 conftest.$ac_objext conftest.beam conftest.$ac_ext
2700 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2701 as_fn_set_status $ac_retval
2703 } # ac_fn_c_compute_int
2705 # ac_fn_c_try_link LINENO
2706 # -----------------------
2707 # Try to link conftest.$ac_ext, and return whether this succeeded.
2710 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2711 rm -f conftest.$ac_objext conftest$ac_exeext
2712 if { { ac_try="$ac_link"
2714 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2715 *) ac_try_echo=$ac_try;;
2717 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2718 $as_echo "$ac_try_echo"; } >&5
2719 (eval "$ac_link") 2>conftest.err
2721 if test -s conftest.err; then
2722 grep -v '^ *+' conftest.err >conftest.er1
2723 cat conftest.er1 >&5
2724 mv -f conftest.er1 conftest.err
2726 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2727 test $ac_status = 0; } && {
2728 test -z "$ac_c_werror_flag" ||
2729 test ! -s conftest.err
2730 } && test -s conftest$ac_exeext && {
2731 test "$cross_compiling" = yes ||
2732 test -x conftest$ac_exeext
2736 $as_echo "$as_me: failed program was:" >&5
2737 sed 's/^/| /' conftest.$ac_ext >&5
2741 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2742 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2743 # interfere with the next link command; also delete a directory that is
2744 # left behind by Apple's compiler. We do this before executing the actions.
2745 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2746 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2747 as_fn_set_status $ac_retval
2749 } # ac_fn_c_try_link
2751 # ac_fn_c_check_func LINENO FUNC VAR
2752 # ----------------------------------
2753 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2754 ac_fn_c_check_func ()
2756 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2758 $as_echo_n "checking for $2... " >&6; }
2759 if eval \${$3+:} false; then :
2760 $as_echo_n "(cached) " >&6
2762 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2763 /* end confdefs.h. */
2764 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2765 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2766 #define $2 innocuous_$2
2768 /* System header to define __stub macros and hopefully few prototypes,
2769 which can conflict with char $2 (); below.
2770 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2771 <limits.h> exists even on freestanding compilers. */
2774 # include <limits.h>
2776 # include <assert.h>
2781 /* Override any GCC internal prototype to avoid an error.
2782 Use char because int might match the return type of a GCC
2783 builtin and then its argument prototype would still apply. */
2788 /* The GNU C library defines this for functions which it implements
2789 to always fail with ENOSYS. Some functions are actually named
2790 something starting with __ and the normal name is an alias. */
2791 #if defined __stub_$2 || defined __stub___$2
2803 if ac_fn_c_try_link "$LINENO"; then :
2808 rm -f core conftest.err conftest.$ac_objext \
2809 conftest$ac_exeext conftest.$ac_ext
2812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2813 $as_echo "$ac_res" >&6; }
2814 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2816 } # ac_fn_c_check_func
2818 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2819 # -------------------------------------------
2820 # Tests whether TYPE exists after having included INCLUDES, setting cache
2821 # variable VAR accordingly.
2822 ac_fn_c_check_type ()
2824 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2826 $as_echo_n "checking for $2... " >&6; }
2827 if eval \${$3+:} false; then :
2828 $as_echo_n "(cached) " >&6
2831 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2832 /* end confdefs.h. */
2843 if ac_fn_c_try_compile "$LINENO"; then :
2844 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2845 /* end confdefs.h. */
2856 if ac_fn_c_try_compile "$LINENO"; then :
2861 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2863 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2867 $as_echo "$ac_res" >&6; }
2868 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2870 } # ac_fn_c_check_type
2872 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2873 # ---------------------------------------------
2874 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2876 ac_fn_c_check_decl ()
2878 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2879 as_decl_name=`echo $2|sed 's/ *(.*//'`
2880 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2882 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2883 if eval \${$3+:} false; then :
2884 $as_echo_n "(cached) " >&6
2886 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2887 /* end confdefs.h. */
2892 #ifndef $as_decl_name
2894 (void) $as_decl_use;
2896 (void) $as_decl_name;
2904 if ac_fn_c_try_compile "$LINENO"; then :
2909 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2913 $as_echo "$ac_res" >&6; }
2914 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2916 } # ac_fn_c_check_decl
2918 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2919 # ----------------------------------------------------
2920 # Tries to find if the field MEMBER exists in type AGGR, after including
2921 # INCLUDES, setting cache variable VAR accordingly.
2922 ac_fn_c_check_member ()
2924 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2926 $as_echo_n "checking for $2.$3... " >&6; }
2927 if eval \${$4+:} false; then :
2928 $as_echo_n "(cached) " >&6
2930 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2931 /* end confdefs.h. */
2943 if ac_fn_c_try_compile "$LINENO"; then :
2946 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2947 /* end confdefs.h. */
2953 if (sizeof ac_aggr.$3)
2959 if ac_fn_c_try_compile "$LINENO"; then :
2964 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2966 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2970 $as_echo "$ac_res" >&6; }
2971 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2973 } # ac_fn_c_check_member
2974 cat >config.log <<_ACEOF
2975 This file contains any messages produced by compilers while
2976 running configure, to aid debugging if configure makes a mistake.
2978 It was created by libpipeline $as_me 1.5.2, which was
2979 generated by GNU Autoconf 2.69. Invocation command line was
2991 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2992 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2993 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2994 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2995 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2997 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2998 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
3000 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
3001 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
3002 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
3003 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
3004 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
3005 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
3006 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
3010 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3014 test -z "$as_dir" && as_dir=.
3015 $as_echo "PATH: $as_dir"
3031 # Keep a trace of the command line.
3032 # Strip out --no-create and --no-recursion so they do not pile up.
3033 # Strip out --silent because we don't want to record it for future runs.
3034 # Also quote any args containing shell meta-characters.
3035 # Make two passes to allow for proper duplicate-argument suppression.
3039 ac_must_keep_next=false
3045 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
3046 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
3047 | -silent | --silent | --silen | --sile | --sil)
3050 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
3053 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
3055 as_fn_append ac_configure_args1 " '$ac_arg'"
3056 if test $ac_must_keep_next = true; then
3057 ac_must_keep_next=false # Got value, back to normal.
3060 *=* | --config-cache | -C | -disable-* | --disable-* \
3061 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
3062 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
3063 | -with-* | --with-* | -without-* | --without-* | --x)
3064 case "$ac_configure_args0 " in
3065 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
3068 -* ) ac_must_keep_next=true ;;
3071 as_fn_append ac_configure_args " '$ac_arg'"
3076 { ac_configure_args0=; unset ac_configure_args0;}
3077 { ac_configure_args1=; unset ac_configure_args1;}
3079 # When interrupted or exit'd, cleanup temporary files, and complete
3080 # config.log. We remove comments because anyway the quotes in there
3081 # would cause problems or look ugly.
3082 # WARNING: Use '\'' to represent an apostrophe within the trap.
3083 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
3084 trap 'exit_status=$?
3085 # Save into config.log some information that might help in debugging.
3089 $as_echo "## ---------------- ##
3090 ## Cache variables. ##
3091 ## ---------------- ##"
3093 # The following way of writing the cache mishandles newlines in values,
3095 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
3096 eval ac_val=\$$ac_var
3100 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
3101 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
3104 _ | IFS | as_nl) ;; #(
3105 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
3106 *) { eval $ac_var=; unset $ac_var;} ;;
3111 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
3112 *${as_nl}ac_space=\ *)
3114 "s/'\''/'\''\\\\'\'''\''/g;
3115 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
3118 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
3125 $as_echo "## ----------------- ##
3126 ## Output variables. ##
3127 ## ----------------- ##"
3129 for ac_var in $ac_subst_vars
3131 eval ac_val=\$$ac_var
3133 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3135 $as_echo "$ac_var='\''$ac_val'\''"
3139 if test -n "$ac_subst_files"; then
3140 $as_echo "## ------------------- ##
3141 ## File substitutions. ##
3142 ## ------------------- ##"
3144 for ac_var in $ac_subst_files
3146 eval ac_val=\$$ac_var
3148 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3150 $as_echo "$ac_var='\''$ac_val'\''"
3155 if test -s confdefs.h; then
3156 $as_echo "## ----------- ##
3163 test "$ac_signal" != 0 &&
3164 $as_echo "$as_me: caught signal $ac_signal"
3165 $as_echo "$as_me: exit $exit_status"
3167 rm -f core *.core core.conftest.* &&
3168 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
3171 for ac_signal in 1 2 13 15; do
3172 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
3176 # confdefs.h avoids OS command line length limits that DEFS can exceed.
3177 rm -f -r conftest* confdefs.h
3179 $as_echo "/* confdefs.h */" > confdefs.h
3181 # Predefined preprocessor variables.
3183 cat >>confdefs.h <<_ACEOF
3184 #define PACKAGE_NAME "$PACKAGE_NAME"
3187 cat >>confdefs.h <<_ACEOF
3188 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
3191 cat >>confdefs.h <<_ACEOF
3192 #define PACKAGE_VERSION "$PACKAGE_VERSION"
3195 cat >>confdefs.h <<_ACEOF
3196 #define PACKAGE_STRING "$PACKAGE_STRING"
3199 cat >>confdefs.h <<_ACEOF
3200 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
3203 cat >>confdefs.h <<_ACEOF
3204 #define PACKAGE_URL "$PACKAGE_URL"
3208 # Let the site file select an alternate cache file if it wants to.
3209 # Prefer an explicitly selected file to automatically selected ones.
3212 if test -n "$CONFIG_SITE"; then
3213 # We do not want a PATH search for config.site.
3214 case $CONFIG_SITE in #((
3215 -*) ac_site_file1=./$CONFIG_SITE;;
3216 */*) ac_site_file1=$CONFIG_SITE;;
3217 *) ac_site_file1=./$CONFIG_SITE;;
3219 elif test "x$prefix" != xNONE; then
3220 ac_site_file1=$prefix/share/config.site
3221 ac_site_file2=$prefix/etc/config.site
3223 ac_site_file1=$ac_default_prefix/share/config.site
3224 ac_site_file2=$ac_default_prefix/etc/config.site
3226 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
3228 test "x$ac_site_file" = xNONE && continue
3229 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
3230 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
3231 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
3232 sed 's/^/| /' "$ac_site_file" >&5
3234 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3235 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3236 as_fn_error $? "failed to load site script $ac_site_file
3237 See \`config.log' for more details" "$LINENO" 5; }
3241 if test -r "$cache_file"; then
3242 # Some versions of bash will fail to source /dev/null (special files
3243 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
3244 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
3245 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
3246 $as_echo "$as_me: loading cache $cache_file" >&6;}
3248 [\\/]* | ?:[\\/]* ) . "$cache_file";;
3249 *) . "./$cache_file";;
3253 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
3254 $as_echo "$as_me: creating cache $cache_file" >&6;}
3258 as_fn_append ac_header_list " unistd.h"
3259 as_fn_append ac_func_list " symlink"
3260 as_fn_append ac_func_list " getprogname"
3261 as_fn_append ac_func_list " getexecname"
3262 as_fn_append ac_header_list " sys/time.h"
3263 as_fn_append ac_header_list " sys/socket.h"
3264 as_fn_append ac_func_list " gettimeofday"
3265 as_fn_append ac_header_list " limits.h"
3266 as_fn_append ac_func_list " lstat"
3267 as_fn_append ac_header_list " sys/mman.h"
3268 as_fn_append ac_func_list " mprotect"
3269 as_fn_append ac_func_list " _set_invalid_parameter_handler"
3270 as_fn_append ac_header_list " sys/param.h"
3271 as_fn_append ac_func_list " setenv"
3272 as_fn_append ac_func_list " sigaction"
3273 as_fn_append ac_func_list " sigaltstack"
3274 as_fn_append ac_func_list " siginterrupt"
3275 as_fn_append ac_func_list " snprintf"
3276 as_fn_append ac_header_list " sys/stat.h"
3277 as_fn_append ac_header_list " wchar.h"
3278 as_fn_append ac_header_list " stdint.h"
3279 as_fn_append ac_func_list " strndup"
3280 as_fn_append ac_header_list " sys/select.h"
3281 as_fn_append ac_header_list " sys/wait.h"
3282 as_fn_append ac_func_list " vasnprintf"
3283 as_fn_append ac_header_list " features.h"
3284 as_fn_append ac_header_list " crtdefs.h"
3285 # Check that the precious variables saved in the cache have kept the same
3287 ac_cache_corrupted=false
3288 for ac_var in $ac_precious_vars; do
3289 eval ac_old_set=\$ac_cv_env_${ac_var}_set
3290 eval ac_new_set=\$ac_env_${ac_var}_set
3291 eval ac_old_val=\$ac_cv_env_${ac_var}_value
3292 eval ac_new_val=\$ac_env_${ac_var}_value
3293 case $ac_old_set,$ac_new_set in
3295 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3296 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3297 ac_cache_corrupted=: ;;
3299 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3300 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3301 ac_cache_corrupted=: ;;
3304 if test "x$ac_old_val" != "x$ac_new_val"; then
3305 # differences in whitespace do not lead to failure.
3306 ac_old_val_w=`echo x $ac_old_val`
3307 ac_new_val_w=`echo x $ac_new_val`
3308 if test "$ac_old_val_w" != "$ac_new_val_w"; then
3309 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3310 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3311 ac_cache_corrupted=:
3313 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3314 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3315 eval $ac_var=\$ac_old_val
3317 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
3318 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
3319 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
3320 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
3323 # Pass precious variables to config.status.
3324 if test "$ac_new_set" = set; then
3326 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3327 *) ac_arg=$ac_var=$ac_new_val ;;
3329 case " $ac_configure_args " in
3330 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
3331 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3335 if $ac_cache_corrupted; then
3336 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3337 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3338 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3339 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3340 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3342 ## -------------------- ##
3343 ## Main body of script. ##
3344 ## -------------------- ##
3347 ac_cpp='$CPP $CPPFLAGS'
3348 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3349 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3350 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3354 for ac_dir in build-aux "$srcdir"/build-aux; do
3355 if test -f "$ac_dir/install-sh"; then
3357 ac_install_sh="$ac_aux_dir/install-sh -c"
3359 elif test -f "$ac_dir/install.sh"; then
3361 ac_install_sh="$ac_aux_dir/install.sh -c"
3363 elif test -f "$ac_dir/shtool"; then
3365 ac_install_sh="$ac_aux_dir/shtool install -c"
3369 if test -z "$ac_aux_dir"; then
3370 as_fn_error $? "cannot find install-sh, install.sh, or shtool in build-aux \"$srcdir\"/build-aux" "$LINENO" 5
3373 # These three variables are undocumented and unsupported,
3374 # and are intended to be withdrawn in a future Autoconf release.
3375 # They can cause serious problems if a builder's source tree is in a directory
3376 # whose full name contains unusual characters.
3377 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3378 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3379 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3382 am__api_version='1.16'
3384 # Find a good install program. We prefer a C program (faster),
3385 # so one script is as good as another. But avoid the broken or
3386 # incompatible versions:
3387 # SysV /etc/install, /usr/sbin/install
3388 # SunOS /usr/etc/install
3389 # IRIX /sbin/install
3391 # AmigaOS /C/install, which installs bootblocks on floppy discs
3392 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3393 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3394 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3395 # OS/2's system install, which has a completely different semantic
3396 # ./install, which can be erroneously created by make from ./install.sh.
3397 # Reject install programs that cannot install multiple files.
3398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3399 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3400 if test -z "$INSTALL"; then
3401 if ${ac_cv_path_install+:} false; then :
3402 $as_echo_n "(cached) " >&6
3404 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3408 test -z "$as_dir" && as_dir=.
3409 # Account for people who put trailing slashes in PATH elements.
3410 case $as_dir/ in #((
3411 ./ | .// | /[cC]/* | \
3412 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3413 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3416 # OSF1 and SCO ODT 3.0 have their own names for install.
3417 # Don't use installbsd from OSF since it installs stuff as root
3419 for ac_prog in ginstall scoinst install; do
3420 for ac_exec_ext in '' $ac_executable_extensions; do
3421 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3422 if test $ac_prog = install &&
3423 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3424 # AIX install. It has an incompatible calling convention.
3426 elif test $ac_prog = install &&
3427 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3428 # program-specific install script used by HP pwplus--don't use.
3431 rm -rf conftest.one conftest.two conftest.dir
3432 echo one > conftest.one
3433 echo two > conftest.two
3435 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3436 test -s conftest.one && test -s conftest.two &&
3437 test -s conftest.dir/conftest.one &&
3438 test -s conftest.dir/conftest.two
3440 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3453 rm -rf conftest.one conftest.two conftest.dir
3456 if test "${ac_cv_path_install+set}" = set; then
3457 INSTALL=$ac_cv_path_install
3459 # As a last resort, use the slow shell script. Don't cache a
3460 # value for INSTALL within a source directory, because that will
3461 # break other packages using the cache if that directory is
3462 # removed, or if the value is a relative name.
3463 INSTALL=$ac_install_sh
3466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3467 $as_echo "$INSTALL" >&6; }
3469 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3470 # It thinks the first close brace ends the variable substitution.
3471 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3473 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3475 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3478 $as_echo_n "checking whether build environment is sane... " >&6; }
3479 # Reject unsafe characters in $srcdir or the absolute working directory
3480 # name. Accept space and tab only in the latter.
3484 *[\\\"\#\$\&\'\`$am_lf]*)
3485 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
3488 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
3489 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
3492 # Do 'set' in a subshell so we don't clobber the current shell's
3493 # arguments. Must try -L first in case configure is actually a
3494 # symlink; some systems play weird games with the mod time of symlinks
3495 # (eg FreeBSD returns the mod time of the symlink's containing
3499 for am_try in 1 2; do
3500 echo "timestamp, slept: $am_has_slept" > conftest.file
3501 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3502 if test "$*" = "X"; then
3504 set X `ls -t "$srcdir/configure" conftest.file`
3506 if test "$*" != "X $srcdir/configure conftest.file" \
3507 && test "$*" != "X conftest.file $srcdir/configure"; then
3509 # If neither matched, then we have a broken ls. This can happen
3510 # if, for instance, CONFIG_SHELL is bash and it inherits a
3511 # broken ls alias from the environment. This has actually
3512 # happened. Such a system could not be considered "sane".
3513 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
3514 alias in your environment" "$LINENO" 5
3516 if test "$2" = conftest.file || test $am_try -eq 2; then
3523 test "$2" = conftest.file
3529 as_fn_error $? "newly created file is older than distributed files!
3530 Check your system clock" "$LINENO" 5
3532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3533 $as_echo "yes" >&6; }
3534 # If we didn't sleep, we still need to ensure time stamps of config.status and
3535 # generated files are strictly newer.
3537 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
3544 test "$program_prefix" != NONE &&
3545 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3546 # Use a double $ so make ignores it.
3547 test "$program_suffix" != NONE &&
3548 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3549 # Double any \ or $.
3550 # By default was `s,x,x', remove it if useless.
3551 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3552 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3554 # Expand $ac_aux_dir to an absolute path.
3555 am_aux_dir=`cd "$ac_aux_dir" && pwd`
3557 if test x"${MISSING+set}" != xset; then
3560 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3562 MISSING="\${SHELL} $am_aux_dir/missing" ;;
3565 # Use eval to expand $SHELL
3566 if eval "$MISSING --is-lightweight"; then
3567 am_missing_run="$MISSING "
3570 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
3571 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
3574 if test x"${install_sh+set}" != xset; then
3577 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3579 install_sh="\${SHELL} $am_aux_dir/install-sh"
3583 # Installed binaries are usually stripped using 'strip' when the user
3584 # run "make install-strip". However 'strip' might not be the right
3585 # tool to use in cross-compilation environments, therefore Automake
3586 # will honor the 'STRIP' environment variable to overrule this program.
3587 if test "$cross_compiling" != no; then
3588 if test -n "$ac_tool_prefix"; then
3589 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3590 set dummy ${ac_tool_prefix}strip; ac_word=$2
3591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3592 $as_echo_n "checking for $ac_word... " >&6; }
3593 if ${ac_cv_prog_STRIP+:} false; then :
3594 $as_echo_n "(cached) " >&6
3596 if test -n "$STRIP"; then
3597 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3599 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3603 test -z "$as_dir" && as_dir=.
3604 for ac_exec_ext in '' $ac_executable_extensions; do
3605 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3606 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3607 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3616 STRIP=$ac_cv_prog_STRIP
3617 if test -n "$STRIP"; then
3618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3619 $as_echo "$STRIP" >&6; }
3621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3622 $as_echo "no" >&6; }
3627 if test -z "$ac_cv_prog_STRIP"; then
3629 # Extract the first word of "strip", so it can be a program name with args.
3630 set dummy strip; ac_word=$2
3631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3632 $as_echo_n "checking for $ac_word... " >&6; }
3633 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
3634 $as_echo_n "(cached) " >&6
3636 if test -n "$ac_ct_STRIP"; then
3637 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3639 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3643 test -z "$as_dir" && as_dir=.
3644 for ac_exec_ext in '' $ac_executable_extensions; do
3645 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3646 ac_cv_prog_ac_ct_STRIP="strip"
3647 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3656 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3657 if test -n "$ac_ct_STRIP"; then
3658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3659 $as_echo "$ac_ct_STRIP" >&6; }
3661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3662 $as_echo "no" >&6; }
3665 if test "x$ac_ct_STRIP" = x; then
3668 case $cross_compiling:$ac_tool_warned in
3670 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3671 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3672 ac_tool_warned=yes ;;
3677 STRIP="$ac_cv_prog_STRIP"
3681 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3684 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3685 if test -z "$MKDIR_P"; then
3686 if ${ac_cv_path_mkdir+:} false; then :
3687 $as_echo_n "(cached) " >&6
3689 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3690 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3693 test -z "$as_dir" && as_dir=.
3694 for ac_prog in mkdir gmkdir; do
3695 for ac_exec_ext in '' $ac_executable_extensions; do
3696 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
3697 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3698 'mkdir (GNU coreutils) '* | \
3699 'mkdir (coreutils) '* | \
3700 'mkdir (fileutils) '4.1*)
3701 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3711 test -d ./--version && rmdir ./--version
3712 if test "${ac_cv_path_mkdir+set}" = set; then
3713 MKDIR_P="$ac_cv_path_mkdir -p"
3715 # As a last resort, use the slow shell script. Don't cache a
3716 # value for MKDIR_P within a source directory, because that will
3717 # break other packages using the cache if that directory is
3718 # removed, or if the value is a relative name.
3719 MKDIR_P="$ac_install_sh -d"
3722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3723 $as_echo "$MKDIR_P" >&6; }
3725 for ac_prog in gawk mawk nawk awk
3727 # Extract the first word of "$ac_prog", so it can be a program name with args.
3728 set dummy $ac_prog; ac_word=$2
3729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3730 $as_echo_n "checking for $ac_word... " >&6; }
3731 if ${ac_cv_prog_AWK+:} false; then :
3732 $as_echo_n "(cached) " >&6
3734 if test -n "$AWK"; then
3735 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3737 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3741 test -z "$as_dir" && as_dir=.
3742 for ac_exec_ext in '' $ac_executable_extensions; do
3743 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3744 ac_cv_prog_AWK="$ac_prog"
3745 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3755 if test -n "$AWK"; then
3756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3757 $as_echo "$AWK" >&6; }
3759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3760 $as_echo "no" >&6; }
3764 test -n "$AWK" && break
3767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3768 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3770 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3771 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3772 $as_echo_n "(cached) " >&6
3774 cat >conftest.make <<\_ACEOF
3777 @echo '@@@%%%=$(MAKE)=@@@%%%'
3779 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3780 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3782 eval ac_cv_prog_make_${ac_make}_set=yes;;
3784 eval ac_cv_prog_make_${ac_make}_set=no;;
3788 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3790 $as_echo "yes" >&6; }
3793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3794 $as_echo "no" >&6; }
3795 SET_MAKE="MAKE=${MAKE-make}"
3798 rm -rf .tst 2>/dev/null
3799 mkdir .tst 2>/dev/null
3800 if test -d .tst; then
3805 rmdir .tst 2>/dev/null
3807 # Check whether --enable-silent-rules was given.
3808 if test "${enable_silent_rules+set}" = set; then :
3809 enableval=$enable_silent_rules;
3812 case $enable_silent_rules in # (((
3813 yes) AM_DEFAULT_VERBOSITY=0;;
3814 no) AM_DEFAULT_VERBOSITY=1;;
3815 *) AM_DEFAULT_VERBOSITY=1;;
3817 am_make=${MAKE-make}
3818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3819 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3820 if ${am_cv_make_support_nested_variables+:} false; then :
3821 $as_echo_n "(cached) " >&6
3823 if $as_echo 'TRUE=$(BAR$(V))
3829 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3830 am_cv_make_support_nested_variables=yes
3832 am_cv_make_support_nested_variables=no
3835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3836 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3837 if test $am_cv_make_support_nested_variables = yes; then
3839 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3841 AM_V=$AM_DEFAULT_VERBOSITY
3842 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3846 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3847 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3848 # is not polluted with repeated "-I."
3849 am__isrc=' -I$(srcdir)'
3850 # test to see if srcdir already configured
3851 if test -f $srcdir/config.status; then
3852 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3856 # test whether we have cygpath
3857 if test -z "$CYGPATH_W"; then
3858 if (cygpath --version) >/dev/null 2>/dev/null; then
3859 CYGPATH_W='cygpath -w'
3866 # Define the identity of the package.
3867 PACKAGE='libpipeline'
3871 cat >>confdefs.h <<_ACEOF
3872 #define PACKAGE "$PACKAGE"
3876 cat >>confdefs.h <<_ACEOF
3877 #define VERSION "$VERSION"
3880 # Some tools Automake needs.
3882 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3885 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3888 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3891 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3894 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3896 # For better backward compatibility. To be removed once Automake 1.9.x
3897 # dies out for good. For more background, see:
3898 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3899 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3900 mkdir_p='$(MKDIR_P)'
3902 # We need awk for the "check" target (and possibly the TAP driver). The
3903 # system "awk" is bad on some platforms.
3904 # Always define AMTAR for backward compatibility. Yes, it's still used
3905 # in the wild :-( We should find a proper way to deprecate it ...
3909 # We'll loop over all known methods to create a tar archive until one works.
3910 _am_tools='gnutar pax cpio none'
3912 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3919 # POSIX will say in a future version that running "rm -f" with no argument
3920 # is OK; and we want to be able to make that assumption in our Makefile
3921 # recipes. So use an aggressive probe to check that the usage we want is
3922 # actually supported "in the wild" to an acceptable degree.
3923 # See automake bug#10828.
3924 # To make any issue more visible, cause the running configure to be aborted
3925 # by default if the 'rm' program in use doesn't match our expectations; the
3926 # user can still override this though.
3927 if rm -f && rm -fr && rm -rf; then : OK; else
3931 Your 'rm' program seems unable to run without file operands specified
3932 on the command line, even when the '-f' option is present. This is contrary
3933 to the behaviour of most rm programs out there, and not conforming with
3934 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3936 Please tell bug-automake@gnu.org about your system, including the value
3937 of your $PATH and any error possibly output before this message. This
3938 can help us improve future automake versions.
3941 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3942 echo 'Configuration will proceed anyway, since you have set the' >&2
3943 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3947 Aborting the configuration process, to ensure you take notice of the issue.
3949 You can download and install GNU coreutils to get an 'rm' implementation
3950 that behaves properly: <https://www.gnu.org/software/coreutils/>.
3952 If you want to complete the configuration process using your problematic
3953 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3954 to "yes", and re-run configure.
3957 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
3963 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
3964 # Check whether --enable-maintainer-mode was given.
3965 if test "${enable_maintainer_mode+set}" = set; then :
3966 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3968 USE_MAINTAINER_MODE=no
3971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
3972 $as_echo "$USE_MAINTAINER_MODE" >&6; }
3973 if test $USE_MAINTAINER_MODE = yes; then
3974 MAINTAINER_MODE_TRUE=
3975 MAINTAINER_MODE_FALSE='#'
3977 MAINTAINER_MODE_TRUE='#'
3978 MAINTAINER_MODE_FALSE=
3981 MAINT=$MAINTAINER_MODE_TRUE
3984 # Check whether --enable-silent-rules was given.
3985 if test "${enable_silent_rules+set}" = set; then :
3986 enableval=$enable_silent_rules;
3989 case $enable_silent_rules in # (((
3990 yes) AM_DEFAULT_VERBOSITY=0;;
3991 no) AM_DEFAULT_VERBOSITY=1;;
3992 *) AM_DEFAULT_VERBOSITY=0;;
3994 am_make=${MAKE-make}
3995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3996 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3997 if ${am_cv_make_support_nested_variables+:} false; then :
3998 $as_echo_n "(cached) " >&6
4000 if $as_echo 'TRUE=$(BAR$(V))
4006 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
4007 am_cv_make_support_nested_variables=yes
4009 am_cv_make_support_nested_variables=no
4012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
4013 $as_echo "$am_cv_make_support_nested_variables" >&6; }
4014 if test $am_cv_make_support_nested_variables = yes; then
4016 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
4018 AM_V=$AM_DEFAULT_VERBOSITY
4019 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
4025 DEPDIR="${am__leading_dot}deps"
4027 ac_config_commands="$ac_config_commands depfiles"
4029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
4030 $as_echo_n "checking whether ${MAKE-make} supports the include directive... " >&6; }
4031 cat > confinc.mk << 'END'
4033 @echo this is the am__doit target >confinc.out
4038 # BSD make does it like this.
4039 echo '.include "confinc.mk" # ignored' > confmf.BSD
4040 # Other make implementations (GNU, Solaris 10, AIX) do it like this.
4041 echo 'include confinc.mk # ignored' > confmf.GNU
4043 for s in GNU BSD; do
4044 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
4045 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
4047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4048 (exit $ac_status); }
4049 case $?:`cat confinc.out 2>/dev/null` in #(
4050 '0:this is the am__doit target') :
4053 am__include='.include' am__quote='"' ;; #(
4055 am__include='include' am__quote='' ;;
4060 if test "$am__include" != "#"; then
4061 _am_result="yes ($s style)"
4065 rm -f confinc.* confmf.*
4066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
4067 $as_echo "${_am_result}" >&6; }
4069 # Check whether --enable-dependency-tracking was given.
4070 if test "${enable_dependency_tracking+set}" = set; then :
4071 enableval=$enable_dependency_tracking;
4074 if test "x$enable_dependency_tracking" != xno; then
4075 am_depcomp="$ac_aux_dir/depcomp"
4079 if test "x$enable_dependency_tracking" != xno; then
4089 ac_cpp='$CPP $CPPFLAGS'
4090 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4091 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4092 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4093 if test -n "$ac_tool_prefix"; then
4094 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4095 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4097 $as_echo_n "checking for $ac_word... " >&6; }
4098 if ${ac_cv_prog_CC+:} false; then :
4099 $as_echo_n "(cached) " >&6
4101 if test -n "$CC"; then
4102 ac_cv_prog_CC="$CC" # Let the user override the test.
4104 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4108 test -z "$as_dir" && as_dir=.
4109 for ac_exec_ext in '' $ac_executable_extensions; do
4110 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4111 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4112 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4122 if test -n "$CC"; then
4123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4124 $as_echo "$CC" >&6; }
4126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4127 $as_echo "no" >&6; }
4132 if test -z "$ac_cv_prog_CC"; then
4134 # Extract the first word of "gcc", so it can be a program name with args.
4135 set dummy gcc; ac_word=$2
4136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4137 $as_echo_n "checking for $ac_word... " >&6; }
4138 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4139 $as_echo_n "(cached) " >&6
4141 if test -n "$ac_ct_CC"; then
4142 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4144 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4148 test -z "$as_dir" && as_dir=.
4149 for ac_exec_ext in '' $ac_executable_extensions; do
4150 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4151 ac_cv_prog_ac_ct_CC="gcc"
4152 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4161 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4162 if test -n "$ac_ct_CC"; then
4163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4164 $as_echo "$ac_ct_CC" >&6; }
4166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4167 $as_echo "no" >&6; }
4170 if test "x$ac_ct_CC" = x; then
4173 case $cross_compiling:$ac_tool_warned in
4175 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4176 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4177 ac_tool_warned=yes ;;
4185 if test -z "$CC"; then
4186 if test -n "$ac_tool_prefix"; then
4187 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4188 set dummy ${ac_tool_prefix}cc; ac_word=$2
4189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4190 $as_echo_n "checking for $ac_word... " >&6; }
4191 if ${ac_cv_prog_CC+:} false; then :
4192 $as_echo_n "(cached) " >&6
4194 if test -n "$CC"; then
4195 ac_cv_prog_CC="$CC" # Let the user override the test.
4197 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4201 test -z "$as_dir" && as_dir=.
4202 for ac_exec_ext in '' $ac_executable_extensions; do
4203 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4204 ac_cv_prog_CC="${ac_tool_prefix}cc"
4205 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4215 if test -n "$CC"; then
4216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4217 $as_echo "$CC" >&6; }
4219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4220 $as_echo "no" >&6; }
4226 if test -z "$CC"; then
4227 # Extract the first word of "cc", so it can be a program name with args.
4228 set dummy cc; ac_word=$2
4229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4230 $as_echo_n "checking for $ac_word... " >&6; }
4231 if ${ac_cv_prog_CC+:} false; then :
4232 $as_echo_n "(cached) " >&6
4234 if test -n "$CC"; then
4235 ac_cv_prog_CC="$CC" # Let the user override the test.
4238 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4242 test -z "$as_dir" && as_dir=.
4243 for ac_exec_ext in '' $ac_executable_extensions; do
4244 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4245 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4246 ac_prog_rejected=yes
4250 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4257 if test $ac_prog_rejected = yes; then
4258 # We found a bogon in the path, so make sure we never use it.
4259 set dummy $ac_cv_prog_CC
4261 if test $# != 0; then
4262 # We chose a different compiler from the bogus one.
4263 # However, it has the same basename, so the bogon will be chosen
4264 # first if we set CC to just the basename; use the full file name.
4266 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4272 if test -n "$CC"; then
4273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4274 $as_echo "$CC" >&6; }
4276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4277 $as_echo "no" >&6; }
4282 if test -z "$CC"; then
4283 if test -n "$ac_tool_prefix"; then
4284 for ac_prog in cl.exe
4286 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4287 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4289 $as_echo_n "checking for $ac_word... " >&6; }
4290 if ${ac_cv_prog_CC+:} false; then :
4291 $as_echo_n "(cached) " >&6
4293 if test -n "$CC"; then
4294 ac_cv_prog_CC="$CC" # Let the user override the test.
4296 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4300 test -z "$as_dir" && as_dir=.
4301 for ac_exec_ext in '' $ac_executable_extensions; do
4302 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4303 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4304 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4314 if test -n "$CC"; then
4315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4316 $as_echo "$CC" >&6; }
4318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4319 $as_echo "no" >&6; }
4323 test -n "$CC" && break
4326 if test -z "$CC"; then
4328 for ac_prog in cl.exe
4330 # Extract the first word of "$ac_prog", so it can be a program name with args.
4331 set dummy $ac_prog; ac_word=$2
4332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4333 $as_echo_n "checking for $ac_word... " >&6; }
4334 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4335 $as_echo_n "(cached) " >&6
4337 if test -n "$ac_ct_CC"; then
4338 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4340 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4344 test -z "$as_dir" && as_dir=.
4345 for ac_exec_ext in '' $ac_executable_extensions; do
4346 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4347 ac_cv_prog_ac_ct_CC="$ac_prog"
4348 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4357 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4358 if test -n "$ac_ct_CC"; then
4359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4360 $as_echo "$ac_ct_CC" >&6; }
4362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4363 $as_echo "no" >&6; }
4367 test -n "$ac_ct_CC" && break
4370 if test "x$ac_ct_CC" = x; then
4373 case $cross_compiling:$ac_tool_warned in
4375 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4376 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4377 ac_tool_warned=yes ;;
4386 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4387 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4388 as_fn_error $? "no acceptable C compiler found in \$PATH
4389 See \`config.log' for more details" "$LINENO" 5; }
4391 # Provide some information about the compiler.
4392 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4395 for ac_option in --version -v -V -qversion; do
4396 { { ac_try="$ac_compiler $ac_option >&5"
4398 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4399 *) ac_try_echo=$ac_try;;
4401 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4402 $as_echo "$ac_try_echo"; } >&5
4403 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4405 if test -s conftest.err; then
4407 ... rest of stderr output deleted ...
4408 10q' conftest.err >conftest.er1
4409 cat conftest.er1 >&5
4411 rm -f conftest.er1 conftest.err
4412 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4413 test $ac_status = 0; }
4416 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4417 /* end confdefs.h. */
4427 ac_clean_files_save=$ac_clean_files
4428 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4429 # Try to create an executable without -o first, disregard a.out.
4430 # It will help us diagnose broken compilers, and finding out an intuition
4432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4433 $as_echo_n "checking whether the C compiler works... " >&6; }
4434 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4436 # The possible output files:
4437 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4440 for ac_file in $ac_files
4443 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4444 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4449 if { { ac_try="$ac_link_default"
4451 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4452 *) ac_try_echo=$ac_try;;
4454 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4455 $as_echo "$ac_try_echo"; } >&5
4456 (eval "$ac_link_default") 2>&5
4458 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4459 test $ac_status = 0; }; then :
4460 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4461 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4462 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4463 # so that the user can short-circuit this test for compilers unknown to
4465 for ac_file in $ac_files ''
4467 test -f "$ac_file" || continue
4469 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4472 # We found the default executable, but exeext='' is most
4476 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4478 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4480 # We set ac_cv_exeext here because the later test for it is not
4481 # safe: cross compilers may not add the suffix if given an `-o'
4482 # argument, so we may need to know it at that point already.
4483 # Even if this section looks crufty: it has the advantage of
4490 test "$ac_cv_exeext" = no && ac_cv_exeext=
4495 if test -z "$ac_file"; then :
4496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4497 $as_echo "no" >&6; }
4498 $as_echo "$as_me: failed program was:" >&5
4499 sed 's/^/| /' conftest.$ac_ext >&5
4501 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4502 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4503 as_fn_error 77 "C compiler cannot create executables
4504 See \`config.log' for more details" "$LINENO" 5; }
4506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4507 $as_echo "yes" >&6; }
4509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4510 $as_echo_n "checking for C compiler default output file name... " >&6; }
4511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4512 $as_echo "$ac_file" >&6; }
4513 ac_exeext=$ac_cv_exeext
4515 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4516 ac_clean_files=$ac_clean_files_save
4517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4518 $as_echo_n "checking for suffix of executables... " >&6; }
4519 if { { ac_try="$ac_link"
4521 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4522 *) ac_try_echo=$ac_try;;
4524 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4525 $as_echo "$ac_try_echo"; } >&5
4526 (eval "$ac_link") 2>&5
4528 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4529 test $ac_status = 0; }; then :
4530 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4531 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4532 # work properly (i.e., refer to `conftest.exe'), while it won't with
4534 for ac_file in conftest.exe conftest conftest.*; do
4535 test -f "$ac_file" || continue
4537 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4538 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4544 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4545 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4546 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4547 See \`config.log' for more details" "$LINENO" 5; }
4549 rm -f conftest conftest$ac_cv_exeext
4550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4551 $as_echo "$ac_cv_exeext" >&6; }
4553 rm -f conftest.$ac_ext
4554 EXEEXT=$ac_cv_exeext
4556 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4557 /* end confdefs.h. */
4562 FILE *f = fopen ("conftest.out", "w");
4563 return ferror (f) || fclose (f) != 0;
4569 ac_clean_files="$ac_clean_files conftest.out"
4570 # Check that the compiler produces executables we can run. If not, either
4571 # the compiler is broken, or we cross compile.
4572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4573 $as_echo_n "checking whether we are cross compiling... " >&6; }
4574 if test "$cross_compiling" != yes; then
4575 { { ac_try="$ac_link"
4577 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4578 *) ac_try_echo=$ac_try;;
4580 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4581 $as_echo "$ac_try_echo"; } >&5
4582 (eval "$ac_link") 2>&5
4584 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4585 test $ac_status = 0; }
4586 if { ac_try='./conftest$ac_cv_exeext'
4587 { { case "(($ac_try" in
4588 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4589 *) ac_try_echo=$ac_try;;
4591 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4592 $as_echo "$ac_try_echo"; } >&5
4593 (eval "$ac_try") 2>&5
4595 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4596 test $ac_status = 0; }; }; then
4599 if test "$cross_compiling" = maybe; then
4602 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4603 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4604 as_fn_error $? "cannot run C compiled programs.
4605 If you meant to cross compile, use \`--host'.
4606 See \`config.log' for more details" "$LINENO" 5; }
4610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4611 $as_echo "$cross_compiling" >&6; }
4613 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4614 ac_clean_files=$ac_clean_files_save
4615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4616 $as_echo_n "checking for suffix of object files... " >&6; }
4617 if ${ac_cv_objext+:} false; then :
4618 $as_echo_n "(cached) " >&6
4620 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4621 /* end confdefs.h. */
4631 rm -f conftest.o conftest.obj
4632 if { { ac_try="$ac_compile"
4634 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4635 *) ac_try_echo=$ac_try;;
4637 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4638 $as_echo "$ac_try_echo"; } >&5
4639 (eval "$ac_compile") 2>&5
4641 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4642 test $ac_status = 0; }; then :
4643 for ac_file in conftest.o conftest.obj conftest.*; do
4644 test -f "$ac_file" || continue;
4646 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4647 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4652 $as_echo "$as_me: failed program was:" >&5
4653 sed 's/^/| /' conftest.$ac_ext >&5
4655 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4656 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4657 as_fn_error $? "cannot compute suffix of object files: cannot compile
4658 See \`config.log' for more details" "$LINENO" 5; }
4660 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4663 $as_echo "$ac_cv_objext" >&6; }
4664 OBJEXT=$ac_cv_objext
4666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4667 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4668 if ${ac_cv_c_compiler_gnu+:} false; then :
4669 $as_echo_n "(cached) " >&6
4671 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4672 /* end confdefs.h. */
4685 if ac_fn_c_try_compile "$LINENO"; then :
4690 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4691 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4695 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4696 if test $ac_compiler_gnu = yes; then
4701 ac_test_CFLAGS=${CFLAGS+set}
4702 ac_save_CFLAGS=$CFLAGS
4703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4704 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4705 if ${ac_cv_prog_cc_g+:} false; then :
4706 $as_echo_n "(cached) " >&6
4708 ac_save_c_werror_flag=$ac_c_werror_flag
4709 ac_c_werror_flag=yes
4712 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4713 /* end confdefs.h. */
4723 if ac_fn_c_try_compile "$LINENO"; then :
4727 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4728 /* end confdefs.h. */
4738 if ac_fn_c_try_compile "$LINENO"; then :
4741 ac_c_werror_flag=$ac_save_c_werror_flag
4743 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4744 /* end confdefs.h. */
4754 if ac_fn_c_try_compile "$LINENO"; then :
4757 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4759 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4761 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4762 ac_c_werror_flag=$ac_save_c_werror_flag
4764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4765 $as_echo "$ac_cv_prog_cc_g" >&6; }
4766 if test "$ac_test_CFLAGS" = set; then
4767 CFLAGS=$ac_save_CFLAGS
4768 elif test $ac_cv_prog_cc_g = yes; then
4769 if test "$GCC" = yes; then
4775 if test "$GCC" = yes; then
4781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4782 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4783 if ${ac_cv_prog_cc_c89+:} false; then :
4784 $as_echo_n "(cached) " >&6
4786 ac_cv_prog_cc_c89=no
4788 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4789 /* end confdefs.h. */
4793 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4794 struct buf { int x; };
4795 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4796 static char *e (p, i)
4802 static char *f (char * (*g) (char **, int), char **p, ...)
4807 s = g (p, va_arg (v,int));
4812 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4813 function prototypes and stuff, but not '\xHH' hex character constants.
4814 These don't provoke an error unfortunately, instead are silently treated
4815 as 'x'. The following induces an error, until -std is added to get
4816 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4817 array size at least. It's necessary to write '\x00'==0 to get something
4818 that's true only with -std. */
4819 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4821 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4822 inside strings and character constants. */
4824 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4826 int test (int i, double x);
4827 struct s1 {int (*f) (int a);};
4828 struct s2 {int (*f) (double a);};
4829 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4835 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4840 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4841 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4843 CC="$ac_save_CC $ac_arg"
4844 if ac_fn_c_try_compile "$LINENO"; then :
4845 ac_cv_prog_cc_c89=$ac_arg
4847 rm -f core conftest.err conftest.$ac_objext
4848 test "x$ac_cv_prog_cc_c89" != "xno" && break
4850 rm -f conftest.$ac_ext
4855 case "x$ac_cv_prog_cc_c89" in
4857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4858 $as_echo "none needed" >&6; } ;;
4860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4861 $as_echo "unsupported" >&6; } ;;
4863 CC="$CC $ac_cv_prog_cc_c89"
4864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4865 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4867 if test "x$ac_cv_prog_cc_c89" != xno; then :
4872 ac_cpp='$CPP $CPPFLAGS'
4873 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4874 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4875 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4878 ac_cpp='$CPP $CPPFLAGS'
4879 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4880 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4881 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4883 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4884 if ${am_cv_prog_cc_c_o+:} false; then :
4885 $as_echo_n "(cached) " >&6
4887 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4888 /* end confdefs.h. */
4898 # Make sure it works both with $CC and with simple cc.
4899 # Following AC_PROG_CC_C_O, we do the test twice because some
4900 # compilers refuse to overwrite an existing .o file with -o,
4901 # though they will create one.
4902 am_cv_prog_cc_c_o=yes
4904 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4905 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4908 (exit $ac_status); } \
4909 && test -f conftest2.$ac_objext; then
4912 am_cv_prog_cc_c_o=no
4916 rm -f core conftest*
4919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4920 $as_echo "$am_cv_prog_cc_c_o" >&6; }
4921 if test "$am_cv_prog_cc_c_o" != yes; then
4922 # Losing compiler, so override with the script.
4923 # FIXME: It is wrong to rewrite CC.
4924 # But if we don't then we get into trouble of one sort or another.
4925 # A longer-term fix would be to have automake use am__CC in this case,
4926 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4927 CC="$am_aux_dir/compile $CC"
4930 ac_cpp='$CPP $CPPFLAGS'
4931 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4932 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4933 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4936 depcc="$CC" am_compiler_list=
4938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4939 $as_echo_n "checking dependency style of $depcc... " >&6; }
4940 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4941 $as_echo_n "(cached) " >&6
4943 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4944 # We make a subdir and do the tests there. Otherwise we can end up
4945 # making bogus files that we don't know about and never remove. For
4946 # instance it was reported that on HP-UX the gcc test will end up
4947 # making a dummy file named 'D' -- because '-MD' means "put the output
4951 # Copy depcomp to subdir because otherwise we won't find it if we're
4952 # using a relative directory.
4953 cp "$am_depcomp" conftest.dir
4955 # We will build objects and dependencies in a subdirectory because
4956 # it helps to detect inapplicable dependency modes. For instance
4957 # both Tru64's cc and ICC support -MD to output dependencies as a
4958 # side effect of compilation, but ICC will put the dependencies in
4959 # the current directory while Tru64 will put them in the object
4963 am_cv_CC_dependencies_compiler_type=none
4964 if test "$am_compiler_list" = ""; then
4965 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4968 case " $depcc " in #(
4969 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4972 for depmode in $am_compiler_list; do
4973 # Setup a source with many dependencies, because some compilers
4974 # like to wrap large dependency lists on column 80 (with \), and
4975 # we should not choose a depcomp mode which is confused by this.
4977 # We need to recreate these files for each test, as the compiler may
4978 # overwrite some of them when testing with obscure command lines.
4979 # This happens at least with the AIX C compiler.
4981 for i in 1 2 3 4 5 6; do
4982 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4983 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4984 # Solaris 10 /bin/sh.
4985 echo '/* dummy */' > sub/conftst$i.h
4987 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4989 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4990 # mode. It turns out that the SunPro C++ compiler does not properly
4991 # handle '-M -o', and we need to detect this. Also, some Intel
4992 # versions had trouble with output in subdirs.
4993 am__obj=sub/conftest.${OBJEXT-o}
4994 am__minus_obj="-o $am__obj"
4997 # This depmode causes a compiler race in universal mode.
4998 test "$am__universal" = false || continue
5001 # After this tag, mechanisms are not by side-effect, so they'll
5002 # only be used when explicitly requested.
5003 if test "x$enable_dependency_tracking" = xyes; then
5009 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
5010 # This compiler won't grok '-c -o', but also, the minuso test has
5011 # not run yet. These depmodes are late enough in the game, and
5012 # so weak that their functioning should not be impacted.
5013 am__obj=conftest.${OBJEXT-o}
5018 if depmode=$depmode \
5019 source=sub/conftest.c object=$am__obj \
5020 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5021 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5022 >/dev/null 2>conftest.err &&
5023 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5024 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5025 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5026 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5027 # icc doesn't choke on unknown options, it will just issue warnings
5028 # or remarks (even with -Werror). So we grep stderr for any message
5029 # that says an option was ignored or not supported.
5030 # When given -MP, icc 7.0 and 7.1 complain thusly:
5031 # icc: Command line warning: ignoring option '-M'; no argument required
5032 # The diagnosis changed in icc 8.0:
5033 # icc: Command line remark: option '-MP' not supported
5034 if (grep 'ignoring option' conftest.err ||
5035 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5036 am_cv_CC_dependencies_compiler_type=$depmode
5045 am_cv_CC_dependencies_compiler_type=none
5049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5050 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5051 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5054 test "x$enable_dependency_tracking" != xno \
5055 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5057 am__fastdepCC_FALSE='#'
5059 am__fastdepCC_TRUE='#'
5060 am__fastdepCC_FALSE=
5066 ac_cpp='$CPP $CPPFLAGS'
5067 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5068 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5069 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5071 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5072 # On Suns, sometimes $CPP names a directory.
5073 if test -n "$CPP" && test -d "$CPP"; then
5076 if test -z "$CPP"; then
5077 if ${ac_cv_prog_CPP+:} false; then :
5078 $as_echo_n "(cached) " >&6
5080 # Double quotes because CPP needs to be expanded
5081 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5084 for ac_c_preproc_warn_flag in '' yes
5086 # Use a header file that comes with gcc, so configuring glibc
5087 # with a fresh cross-compiler works.
5088 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5089 # <limits.h> exists even on freestanding compilers.
5090 # On the NeXT, cc -E runs the code through the compiler's parser,
5091 # not just through cpp. "Syntax error" is here to catch this case.
5092 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5093 /* end confdefs.h. */
5095 # include <limits.h>
5097 # include <assert.h>
5101 if ac_fn_c_try_cpp "$LINENO"; then :
5104 # Broken: fails on valid input.
5107 rm -f conftest.err conftest.i conftest.$ac_ext
5109 # OK, works on sane cases. Now check whether nonexistent headers
5110 # can be detected and how.
5111 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5112 /* end confdefs.h. */
5113 #include <ac_nonexistent.h>
5115 if ac_fn_c_try_cpp "$LINENO"; then :
5116 # Broken: success on invalid input.
5119 # Passes both tests.
5123 rm -f conftest.err conftest.i conftest.$ac_ext
5126 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5127 rm -f conftest.i conftest.err conftest.$ac_ext
5128 if $ac_preproc_ok; then :
5140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5141 $as_echo "$CPP" >&6; }
5143 for ac_c_preproc_warn_flag in '' yes
5145 # Use a header file that comes with gcc, so configuring glibc
5146 # with a fresh cross-compiler works.
5147 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5148 # <limits.h> exists even on freestanding compilers.
5149 # On the NeXT, cc -E runs the code through the compiler's parser,
5150 # not just through cpp. "Syntax error" is here to catch this case.
5151 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5152 /* end confdefs.h. */
5154 # include <limits.h>
5156 # include <assert.h>
5160 if ac_fn_c_try_cpp "$LINENO"; then :
5163 # Broken: fails on valid input.
5166 rm -f conftest.err conftest.i conftest.$ac_ext
5168 # OK, works on sane cases. Now check whether nonexistent headers
5169 # can be detected and how.
5170 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5171 /* end confdefs.h. */
5172 #include <ac_nonexistent.h>
5174 if ac_fn_c_try_cpp "$LINENO"; then :
5175 # Broken: success on invalid input.
5178 # Passes both tests.
5182 rm -f conftest.err conftest.i conftest.$ac_ext
5185 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5186 rm -f conftest.i conftest.err conftest.$ac_ext
5187 if $ac_preproc_ok; then :
5190 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5191 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5192 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
5193 See \`config.log' for more details" "$LINENO" 5; }
5197 ac_cpp='$CPP $CPPFLAGS'
5198 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5199 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5200 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5204 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5205 if ${ac_cv_path_GREP+:} false; then :
5206 $as_echo_n "(cached) " >&6
5208 if test -z "$GREP"; then
5209 ac_path_GREP_found=false
5210 # Loop through the user's path and test for each of PROGNAME-LIST
5211 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5212 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5215 test -z "$as_dir" && as_dir=.
5216 for ac_prog in grep ggrep; do
5217 for ac_exec_ext in '' $ac_executable_extensions; do
5218 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5219 as_fn_executable_p "$ac_path_GREP" || continue
5220 # Check for GNU ac_path_GREP and select it if it is found.
5221 # Check for GNU $ac_path_GREP
5222 case `"$ac_path_GREP" --version 2>&1` in
5224 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5227 $as_echo_n 0123456789 >"conftest.in"
5230 cat "conftest.in" "conftest.in" >"conftest.tmp"
5231 mv "conftest.tmp" "conftest.in"
5232 cp "conftest.in" "conftest.nl"
5233 $as_echo 'GREP' >> "conftest.nl"
5234 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5235 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5236 as_fn_arith $ac_count + 1 && ac_count=$as_val
5237 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5238 # Best one so far, save it but keep looking for a better one
5239 ac_cv_path_GREP="$ac_path_GREP"
5240 ac_path_GREP_max=$ac_count
5242 # 10*(2^10) chars as input seems more than enough
5243 test $ac_count -gt 10 && break
5245 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5248 $ac_path_GREP_found && break 3
5253 if test -z "$ac_cv_path_GREP"; then
5254 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5257 ac_cv_path_GREP=$GREP
5261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5262 $as_echo "$ac_cv_path_GREP" >&6; }
5263 GREP="$ac_cv_path_GREP"
5266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5267 $as_echo_n "checking for egrep... " >&6; }
5268 if ${ac_cv_path_EGREP+:} false; then :
5269 $as_echo_n "(cached) " >&6
5271 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5272 then ac_cv_path_EGREP="$GREP -E"
5274 if test -z "$EGREP"; then
5275 ac_path_EGREP_found=false
5276 # Loop through the user's path and test for each of PROGNAME-LIST
5277 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5278 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5281 test -z "$as_dir" && as_dir=.
5282 for ac_prog in egrep; do
5283 for ac_exec_ext in '' $ac_executable_extensions; do
5284 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5285 as_fn_executable_p "$ac_path_EGREP" || continue
5286 # Check for GNU ac_path_EGREP and select it if it is found.
5287 # Check for GNU $ac_path_EGREP
5288 case `"$ac_path_EGREP" --version 2>&1` in
5290 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5293 $as_echo_n 0123456789 >"conftest.in"
5296 cat "conftest.in" "conftest.in" >"conftest.tmp"
5297 mv "conftest.tmp" "conftest.in"
5298 cp "conftest.in" "conftest.nl"
5299 $as_echo 'EGREP' >> "conftest.nl"
5300 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5301 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5302 as_fn_arith $ac_count + 1 && ac_count=$as_val
5303 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5304 # Best one so far, save it but keep looking for a better one
5305 ac_cv_path_EGREP="$ac_path_EGREP"
5306 ac_path_EGREP_max=$ac_count
5308 # 10*(2^10) chars as input seems more than enough
5309 test $ac_count -gt 10 && break
5311 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5314 $ac_path_EGREP_found && break 3
5319 if test -z "$ac_cv_path_EGREP"; then
5320 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5323 ac_cv_path_EGREP=$EGREP
5328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5329 $as_echo "$ac_cv_path_EGREP" >&6; }
5330 EGREP="$ac_cv_path_EGREP"
5333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5334 $as_echo_n "checking for ANSI C header files... " >&6; }
5335 if ${ac_cv_header_stdc+:} false; then :
5336 $as_echo_n "(cached) " >&6
5338 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5339 /* end confdefs.h. */
5353 if ac_fn_c_try_compile "$LINENO"; then :
5354 ac_cv_header_stdc=yes
5356 ac_cv_header_stdc=no
5358 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5360 if test $ac_cv_header_stdc = yes; then
5361 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5362 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5363 /* end confdefs.h. */
5367 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5368 $EGREP "memchr" >/dev/null 2>&1; then :
5371 ac_cv_header_stdc=no
5377 if test $ac_cv_header_stdc = yes; then
5378 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5379 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5380 /* end confdefs.h. */
5384 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5385 $EGREP "free" >/dev/null 2>&1; then :
5388 ac_cv_header_stdc=no
5394 if test $ac_cv_header_stdc = yes; then
5395 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5396 if test "$cross_compiling" = yes; then :
5399 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5400 /* end confdefs.h. */
5403 #if ((' ' & 0x0FF) == 0x020)
5404 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5405 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5407 # define ISLOWER(c) \
5408 (('a' <= (c) && (c) <= 'i') \
5409 || ('j' <= (c) && (c) <= 'r') \
5410 || ('s' <= (c) && (c) <= 'z'))
5411 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5414 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5419 for (i = 0; i < 256; i++)
5420 if (XOR (islower (i), ISLOWER (i))
5421 || toupper (i) != TOUPPER (i))
5426 if ac_fn_c_try_run "$LINENO"; then :
5429 ac_cv_header_stdc=no
5431 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5432 conftest.$ac_objext conftest.beam conftest.$ac_ext
5437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5438 $as_echo "$ac_cv_header_stdc" >&6; }
5439 if test $ac_cv_header_stdc = yes; then
5441 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5445 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5446 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5447 inttypes.h stdint.h unistd.h
5449 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5450 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5452 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5453 cat >>confdefs.h <<_ACEOF
5454 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5463 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
5464 if test "x$ac_cv_header_minix_config_h" = xyes; then :
5471 if test "$MINIX" = yes; then
5473 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5476 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5479 $as_echo "#define _MINIX 1" >>confdefs.h
5482 $as_echo "#define _NETBSD_SOURCE 1" >>confdefs.h
5487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5488 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5489 if ${ac_cv_safe_to_define___extensions__+:} false; then :
5490 $as_echo_n "(cached) " >&6
5492 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5493 /* end confdefs.h. */
5495 # define __EXTENSIONS__ 1
5496 $ac_includes_default
5505 if ac_fn_c_try_compile "$LINENO"; then :
5506 ac_cv_safe_to_define___extensions__=yes
5508 ac_cv_safe_to_define___extensions__=no
5510 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5513 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5514 test $ac_cv_safe_to_define___extensions__ = yes &&
5515 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5517 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5519 $as_echo "#define _DARWIN_C_SOURCE 1" >>confdefs.h
5521 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5523 $as_echo "#define _NETBSD_SOURCE 1" >>confdefs.h
5525 $as_echo "#define _OPENBSD_SOURCE 1" >>confdefs.h
5527 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5529 $as_echo "#define __STDC_WANT_IEC_60559_ATTRIBS_EXT__ 1" >>confdefs.h
5531 $as_echo "#define __STDC_WANT_IEC_60559_BFP_EXT__ 1" >>confdefs.h
5533 $as_echo "#define __STDC_WANT_IEC_60559_DFP_EXT__ 1" >>confdefs.h
5535 $as_echo "#define __STDC_WANT_IEC_60559_FUNCS_EXT__ 1" >>confdefs.h
5537 $as_echo "#define __STDC_WANT_IEC_60559_TYPES_EXT__ 1" >>confdefs.h
5539 $as_echo "#define __STDC_WANT_LIB_EXT2__ 1" >>confdefs.h
5541 $as_echo "#define __STDC_WANT_MATH_SPEC_FUNCS__ 1" >>confdefs.h
5543 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether _XOPEN_SOURCE should be defined" >&5
5546 $as_echo_n "checking whether _XOPEN_SOURCE should be defined... " >&6; }
5547 if ${ac_cv_should_define__xopen_source+:} false; then :
5548 $as_echo_n "(cached) " >&6
5550 ac_cv_should_define__xopen_source=no
5551 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5552 /* end confdefs.h. */
5564 if ac_fn_c_try_compile "$LINENO"; then :
5567 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5568 /* end confdefs.h. */
5570 #define _XOPEN_SOURCE 500
5581 if ac_fn_c_try_compile "$LINENO"; then :
5582 ac_cv_should_define__xopen_source=yes
5584 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5586 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_should_define__xopen_source" >&5
5589 $as_echo "$ac_cv_should_define__xopen_source" >&6; }
5590 test $ac_cv_should_define__xopen_source = yes &&
5591 $as_echo "#define _XOPEN_SOURCE 500" >>confdefs.h
5593 $as_echo "#define _HPUX_ALT_XOPEN_SOCKET_API 1" >>confdefs.h
5599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if tar --sort=name works" >&5
5600 $as_echo_n "checking if tar --sort=name works... " >&6; }
5603 echo GrepMe > conftest.dir/file
5604 { echo "$as_me:$LINENO: ${TAR-tar} chof - conftest.dir --sort=name >conftest.tar" >&5
5605 (${TAR-tar} chof - conftest.dir --sort=name >conftest.tar) >&5 2>&5
5607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5608 (exit $ac_status); }
5609 if test -s conftest.tar; then
5610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5611 $as_echo "yes" >&6; }
5612 am__tar="$am__tar --sort=name"
5614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5615 $as_echo "no" >&6; }
5620 ac_config_headers="$ac_config_headers config.h"
5622 # Make sure we can run config.sub.
5623 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
5624 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
5626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
5627 $as_echo_n "checking build system type... " >&6; }
5628 if ${ac_cv_build+:} false; then :
5629 $as_echo_n "(cached) " >&6
5631 ac_build_alias=$build_alias
5632 test "x$ac_build_alias" = x &&
5633 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
5634 test "x$ac_build_alias" = x &&
5635 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
5636 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
5637 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
5640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
5641 $as_echo "$ac_cv_build" >&6; }
5642 case $ac_cv_build in
5644 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
5647 ac_save_IFS=$IFS; IFS='-'
5653 # Remember, the first character of IFS is used to create $*,
5654 # except with old shells:
5657 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
5660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
5661 $as_echo_n "checking host system type... " >&6; }
5662 if ${ac_cv_host+:} false; then :
5663 $as_echo_n "(cached) " >&6
5665 if test "x$host_alias" = x; then
5666 ac_cv_host=$ac_cv_build
5668 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
5669 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
5673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
5674 $as_echo "$ac_cv_host" >&6; }
5677 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
5680 ac_save_IFS=$IFS; IFS='-'
5686 # Remember, the first character of IFS is used to create $*,
5687 # except with old shells:
5690 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
5694 # Check $PATH for the following programs and append suitable options.
5696 ac_cpp='$CPP $CPPFLAGS'
5697 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5698 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5699 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5700 if test -n "$ac_tool_prefix"; then
5701 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
5702 set dummy ${ac_tool_prefix}gcc; ac_word=$2
5703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5704 $as_echo_n "checking for $ac_word... " >&6; }
5705 if ${ac_cv_prog_CC+:} false; then :
5706 $as_echo_n "(cached) " >&6
5708 if test -n "$CC"; then
5709 ac_cv_prog_CC="$CC" # Let the user override the test.
5711 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5715 test -z "$as_dir" && as_dir=.
5716 for ac_exec_ext in '' $ac_executable_extensions; do
5717 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5718 ac_cv_prog_CC="${ac_tool_prefix}gcc"
5719 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5729 if test -n "$CC"; then
5730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5731 $as_echo "$CC" >&6; }
5733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5734 $as_echo "no" >&6; }
5739 if test -z "$ac_cv_prog_CC"; then
5741 # Extract the first word of "gcc", so it can be a program name with args.
5742 set dummy gcc; ac_word=$2
5743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5744 $as_echo_n "checking for $ac_word... " >&6; }
5745 if ${ac_cv_prog_ac_ct_CC+:} false; then :
5746 $as_echo_n "(cached) " >&6
5748 if test -n "$ac_ct_CC"; then
5749 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5751 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5755 test -z "$as_dir" && as_dir=.
5756 for ac_exec_ext in '' $ac_executable_extensions; do
5757 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5758 ac_cv_prog_ac_ct_CC="gcc"
5759 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5768 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5769 if test -n "$ac_ct_CC"; then
5770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5771 $as_echo "$ac_ct_CC" >&6; }
5773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5774 $as_echo "no" >&6; }
5777 if test "x$ac_ct_CC" = x; then
5780 case $cross_compiling:$ac_tool_warned in
5782 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5783 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5784 ac_tool_warned=yes ;;
5792 if test -z "$CC"; then
5793 if test -n "$ac_tool_prefix"; then
5794 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
5795 set dummy ${ac_tool_prefix}cc; ac_word=$2
5796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5797 $as_echo_n "checking for $ac_word... " >&6; }
5798 if ${ac_cv_prog_CC+:} false; then :
5799 $as_echo_n "(cached) " >&6
5801 if test -n "$CC"; then
5802 ac_cv_prog_CC="$CC" # Let the user override the test.
5804 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5808 test -z "$as_dir" && as_dir=.
5809 for ac_exec_ext in '' $ac_executable_extensions; do
5810 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5811 ac_cv_prog_CC="${ac_tool_prefix}cc"
5812 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5822 if test -n "$CC"; then
5823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5824 $as_echo "$CC" >&6; }
5826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5827 $as_echo "no" >&6; }
5833 if test -z "$CC"; then
5834 # Extract the first word of "cc", so it can be a program name with args.
5835 set dummy cc; ac_word=$2
5836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5837 $as_echo_n "checking for $ac_word... " >&6; }
5838 if ${ac_cv_prog_CC+:} false; then :
5839 $as_echo_n "(cached) " >&6
5841 if test -n "$CC"; then
5842 ac_cv_prog_CC="$CC" # Let the user override the test.
5845 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5849 test -z "$as_dir" && as_dir=.
5850 for ac_exec_ext in '' $ac_executable_extensions; do
5851 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5852 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
5853 ac_prog_rejected=yes
5857 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5864 if test $ac_prog_rejected = yes; then
5865 # We found a bogon in the path, so make sure we never use it.
5866 set dummy $ac_cv_prog_CC
5868 if test $# != 0; then
5869 # We chose a different compiler from the bogus one.
5870 # However, it has the same basename, so the bogon will be chosen
5871 # first if we set CC to just the basename; use the full file name.
5873 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
5879 if test -n "$CC"; then
5880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5881 $as_echo "$CC" >&6; }
5883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5884 $as_echo "no" >&6; }
5889 if test -z "$CC"; then
5890 if test -n "$ac_tool_prefix"; then
5891 for ac_prog in cl.exe
5893 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5894 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5896 $as_echo_n "checking for $ac_word... " >&6; }
5897 if ${ac_cv_prog_CC+:} false; then :
5898 $as_echo_n "(cached) " >&6
5900 if test -n "$CC"; then
5901 ac_cv_prog_CC="$CC" # Let the user override the test.
5903 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5907 test -z "$as_dir" && as_dir=.
5908 for ac_exec_ext in '' $ac_executable_extensions; do
5909 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5910 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5911 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5921 if test -n "$CC"; then
5922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5923 $as_echo "$CC" >&6; }
5925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5926 $as_echo "no" >&6; }
5930 test -n "$CC" && break
5933 if test -z "$CC"; then
5935 for ac_prog in cl.exe
5937 # Extract the first word of "$ac_prog", so it can be a program name with args.
5938 set dummy $ac_prog; ac_word=$2
5939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5940 $as_echo_n "checking for $ac_word... " >&6; }
5941 if ${ac_cv_prog_ac_ct_CC+:} false; then :
5942 $as_echo_n "(cached) " >&6
5944 if test -n "$ac_ct_CC"; then
5945 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5947 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5951 test -z "$as_dir" && as_dir=.
5952 for ac_exec_ext in '' $ac_executable_extensions; do
5953 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5954 ac_cv_prog_ac_ct_CC="$ac_prog"
5955 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5964 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5965 if test -n "$ac_ct_CC"; then
5966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5967 $as_echo "$ac_ct_CC" >&6; }
5969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5970 $as_echo "no" >&6; }
5974 test -n "$ac_ct_CC" && break
5977 if test "x$ac_ct_CC" = x; then
5980 case $cross_compiling:$ac_tool_warned in
5982 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5983 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5984 ac_tool_warned=yes ;;
5993 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5994 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5995 as_fn_error $? "no acceptable C compiler found in \$PATH
5996 See \`config.log' for more details" "$LINENO" 5; }
5998 # Provide some information about the compiler.
5999 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
6002 for ac_option in --version -v -V -qversion; do
6003 { { ac_try="$ac_compiler $ac_option >&5"
6005 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6006 *) ac_try_echo=$ac_try;;
6008 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6009 $as_echo "$ac_try_echo"; } >&5
6010 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
6012 if test -s conftest.err; then
6014 ... rest of stderr output deleted ...
6015 10q' conftest.err >conftest.er1
6016 cat conftest.er1 >&5
6018 rm -f conftest.er1 conftest.err
6019 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6020 test $ac_status = 0; }
6023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
6024 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
6025 if ${ac_cv_c_compiler_gnu+:} false; then :
6026 $as_echo_n "(cached) " >&6
6028 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6029 /* end confdefs.h. */
6042 if ac_fn_c_try_compile "$LINENO"; then :
6047 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6048 ac_cv_c_compiler_gnu=$ac_compiler_gnu
6051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
6052 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
6053 if test $ac_compiler_gnu = yes; then
6058 ac_test_CFLAGS=${CFLAGS+set}
6059 ac_save_CFLAGS=$CFLAGS
6060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
6061 $as_echo_n "checking whether $CC accepts -g... " >&6; }
6062 if ${ac_cv_prog_cc_g+:} false; then :
6063 $as_echo_n "(cached) " >&6
6065 ac_save_c_werror_flag=$ac_c_werror_flag
6066 ac_c_werror_flag=yes
6069 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6070 /* end confdefs.h. */
6080 if ac_fn_c_try_compile "$LINENO"; then :
6084 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6085 /* end confdefs.h. */
6095 if ac_fn_c_try_compile "$LINENO"; then :
6098 ac_c_werror_flag=$ac_save_c_werror_flag
6100 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6101 /* end confdefs.h. */
6111 if ac_fn_c_try_compile "$LINENO"; then :
6114 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6116 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6118 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6119 ac_c_werror_flag=$ac_save_c_werror_flag
6121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
6122 $as_echo "$ac_cv_prog_cc_g" >&6; }
6123 if test "$ac_test_CFLAGS" = set; then
6124 CFLAGS=$ac_save_CFLAGS
6125 elif test $ac_cv_prog_cc_g = yes; then
6126 if test "$GCC" = yes; then
6132 if test "$GCC" = yes; then
6138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
6139 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
6140 if ${ac_cv_prog_cc_c89+:} false; then :
6141 $as_echo_n "(cached) " >&6
6143 ac_cv_prog_cc_c89=no
6145 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6146 /* end confdefs.h. */
6150 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
6151 struct buf { int x; };
6152 FILE * (*rcsopen) (struct buf *, struct stat *, int);
6153 static char *e (p, i)
6159 static char *f (char * (*g) (char **, int), char **p, ...)
6164 s = g (p, va_arg (v,int));
6169 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
6170 function prototypes and stuff, but not '\xHH' hex character constants.
6171 These don't provoke an error unfortunately, instead are silently treated
6172 as 'x'. The following induces an error, until -std is added to get
6173 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
6174 array size at least. It's necessary to write '\x00'==0 to get something
6175 that's true only with -std. */
6176 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
6178 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
6179 inside strings and character constants. */
6181 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
6183 int test (int i, double x);
6184 struct s1 {int (*f) (int a);};
6185 struct s2 {int (*f) (double a);};
6186 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
6192 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
6197 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
6198 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6200 CC="$ac_save_CC $ac_arg"
6201 if ac_fn_c_try_compile "$LINENO"; then :
6202 ac_cv_prog_cc_c89=$ac_arg
6204 rm -f core conftest.err conftest.$ac_objext
6205 test "x$ac_cv_prog_cc_c89" != "xno" && break
6207 rm -f conftest.$ac_ext
6212 case "x$ac_cv_prog_cc_c89" in
6214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6215 $as_echo "none needed" >&6; } ;;
6217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6218 $as_echo "unsupported" >&6; } ;;
6220 CC="$CC $ac_cv_prog_cc_c89"
6221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
6222 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
6224 if test "x$ac_cv_prog_cc_c89" != xno; then :
6229 ac_cpp='$CPP $CPPFLAGS'
6230 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6231 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6232 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6235 ac_cpp='$CPP $CPPFLAGS'
6236 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6237 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6238 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
6240 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
6241 if ${am_cv_prog_cc_c_o+:} false; then :
6242 $as_echo_n "(cached) " >&6
6244 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6245 /* end confdefs.h. */
6255 # Make sure it works both with $CC and with simple cc.
6256 # Following AC_PROG_CC_C_O, we do the test twice because some
6257 # compilers refuse to overwrite an existing .o file with -o,
6258 # though they will create one.
6259 am_cv_prog_cc_c_o=yes
6261 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
6262 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
6264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6265 (exit $ac_status); } \
6266 && test -f conftest2.$ac_objext; then
6269 am_cv_prog_cc_c_o=no
6273 rm -f core conftest*
6276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
6277 $as_echo "$am_cv_prog_cc_c_o" >&6; }
6278 if test "$am_cv_prog_cc_c_o" != yes; then
6279 # Losing compiler, so override with the script.
6280 # FIXME: It is wrong to rewrite CC.
6281 # But if we don't then we get into trouble of one sort or another.
6282 # A longer-term fix would be to have automake use am__CC in this case,
6283 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
6284 CC="$am_aux_dir/compile $CC"
6287 ac_cpp='$CPP $CPPFLAGS'
6288 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6289 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6290 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6293 depcc="$CC" am_compiler_list=
6295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
6296 $as_echo_n "checking dependency style of $depcc... " >&6; }
6297 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
6298 $as_echo_n "(cached) " >&6
6300 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6301 # We make a subdir and do the tests there. Otherwise we can end up
6302 # making bogus files that we don't know about and never remove. For
6303 # instance it was reported that on HP-UX the gcc test will end up
6304 # making a dummy file named 'D' -- because '-MD' means "put the output
6308 # Copy depcomp to subdir because otherwise we won't find it if we're
6309 # using a relative directory.
6310 cp "$am_depcomp" conftest.dir
6312 # We will build objects and dependencies in a subdirectory because
6313 # it helps to detect inapplicable dependency modes. For instance
6314 # both Tru64's cc and ICC support -MD to output dependencies as a
6315 # side effect of compilation, but ICC will put the dependencies in
6316 # the current directory while Tru64 will put them in the object
6320 am_cv_CC_dependencies_compiler_type=none
6321 if test "$am_compiler_list" = ""; then
6322 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6325 case " $depcc " in #(
6326 *\ -arch\ *\ -arch\ *) am__universal=true ;;
6329 for depmode in $am_compiler_list; do
6330 # Setup a source with many dependencies, because some compilers
6331 # like to wrap large dependency lists on column 80 (with \), and
6332 # we should not choose a depcomp mode which is confused by this.
6334 # We need to recreate these files for each test, as the compiler may
6335 # overwrite some of them when testing with obscure command lines.
6336 # This happens at least with the AIX C compiler.
6338 for i in 1 2 3 4 5 6; do
6339 echo '#include "conftst'$i'.h"' >> sub/conftest.c
6340 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
6341 # Solaris 10 /bin/sh.
6342 echo '/* dummy */' > sub/conftst$i.h
6344 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6346 # We check with '-c' and '-o' for the sake of the "dashmstdout"
6347 # mode. It turns out that the SunPro C++ compiler does not properly
6348 # handle '-M -o', and we need to detect this. Also, some Intel
6349 # versions had trouble with output in subdirs.
6350 am__obj=sub/conftest.${OBJEXT-o}
6351 am__minus_obj="-o $am__obj"
6354 # This depmode causes a compiler race in universal mode.
6355 test "$am__universal" = false || continue
6358 # After this tag, mechanisms are not by side-effect, so they'll
6359 # only be used when explicitly requested.
6360 if test "x$enable_dependency_tracking" = xyes; then
6366 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
6367 # This compiler won't grok '-c -o', but also, the minuso test has
6368 # not run yet. These depmodes are late enough in the game, and
6369 # so weak that their functioning should not be impacted.
6370 am__obj=conftest.${OBJEXT-o}
6375 if depmode=$depmode \
6376 source=sub/conftest.c object=$am__obj \
6377 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6378 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
6379 >/dev/null 2>conftest.err &&
6380 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6381 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6382 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
6383 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6384 # icc doesn't choke on unknown options, it will just issue warnings
6385 # or remarks (even with -Werror). So we grep stderr for any message
6386 # that says an option was ignored or not supported.
6387 # When given -MP, icc 7.0 and 7.1 complain thusly:
6388 # icc: Command line warning: ignoring option '-M'; no argument required
6389 # The diagnosis changed in icc 8.0:
6390 # icc: Command line remark: option '-MP' not supported
6391 if (grep 'ignoring option' conftest.err ||
6392 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6393 am_cv_CC_dependencies_compiler_type=$depmode
6402 am_cv_CC_dependencies_compiler_type=none
6406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
6407 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
6408 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
6411 test "x$enable_dependency_tracking" != xno \
6412 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
6414 am__fastdepCC_FALSE='#'
6416 am__fastdepCC_TRUE='#'
6417 am__fastdepCC_FALSE=
6429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Minix Amsterdam compiler" >&5
6430 $as_echo_n "checking for Minix Amsterdam compiler... " >&6; }
6431 if ${gl_cv_c_amsterdam_compiler+:} false; then :
6432 $as_echo_n "(cached) " >&6
6435 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6436 /* end confdefs.h. */
6443 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6444 $EGREP "Amsterdam" >/dev/null 2>&1; then :
6445 gl_cv_c_amsterdam_compiler=yes
6447 gl_cv_c_amsterdam_compiler=no
6453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_c_amsterdam_compiler" >&5
6454 $as_echo "$gl_cv_c_amsterdam_compiler" >&6; }
6456 if test $gl_cv_c_amsterdam_compiler = yes; then
6457 if test -z "$AR"; then
6460 if test -z "$ARFLAGS"; then
6464 if test -n "$ac_tool_prefix"; then
6465 for ac_prog in ar lib "link -lib"
6467 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6468 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6470 $as_echo_n "checking for $ac_word... " >&6; }
6471 if ${ac_cv_prog_AR+:} false; then :
6472 $as_echo_n "(cached) " >&6
6474 if test -n "$AR"; then
6475 ac_cv_prog_AR="$AR" # Let the user override the test.
6477 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6481 test -z "$as_dir" && as_dir=.
6482 for ac_exec_ext in '' $ac_executable_extensions; do
6483 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6484 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6485 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6495 if test -n "$AR"; then
6496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6497 $as_echo "$AR" >&6; }
6499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6500 $as_echo "no" >&6; }
6504 test -n "$AR" && break
6507 if test -z "$AR"; then
6509 for ac_prog in ar lib "link -lib"
6511 # Extract the first word of "$ac_prog", so it can be a program name with args.
6512 set dummy $ac_prog; ac_word=$2
6513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6514 $as_echo_n "checking for $ac_word... " >&6; }
6515 if ${ac_cv_prog_ac_ct_AR+:} false; then :
6516 $as_echo_n "(cached) " >&6
6518 if test -n "$ac_ct_AR"; then
6519 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6521 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6525 test -z "$as_dir" && as_dir=.
6526 for ac_exec_ext in '' $ac_executable_extensions; do
6527 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6528 ac_cv_prog_ac_ct_AR="$ac_prog"
6529 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6538 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6539 if test -n "$ac_ct_AR"; then
6540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6541 $as_echo "$ac_ct_AR" >&6; }
6543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6544 $as_echo "no" >&6; }
6548 test -n "$ac_ct_AR" && break
6551 if test "x$ac_ct_AR" = x; then
6554 case $cross_compiling:$ac_tool_warned in
6556 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6557 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6558 ac_tool_warned=yes ;;
6566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the archiver ($AR) interface" >&5
6567 $as_echo_n "checking the archiver ($AR) interface... " >&6; }
6568 if ${am_cv_ar_interface+:} false; then :
6569 $as_echo_n "(cached) " >&6
6572 ac_cpp='$CPP $CPPFLAGS'
6573 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6574 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6575 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6577 am_cv_ar_interface=ar
6578 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6579 /* end confdefs.h. */
6580 int some_variable = 0;
6582 if ac_fn_c_try_compile "$LINENO"; then :
6583 am_ar_try='$AR cru libconftest.a conftest.$ac_objext >&5'
6584 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
6585 (eval $am_ar_try) 2>&5
6587 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6588 test $ac_status = 0; }
6589 if test "$ac_status" -eq 0; then
6590 am_cv_ar_interface=ar
6592 am_ar_try='$AR -NOLOGO -OUT:conftest.lib conftest.$ac_objext >&5'
6593 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
6594 (eval $am_ar_try) 2>&5
6596 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6597 test $ac_status = 0; }
6598 if test "$ac_status" -eq 0; then
6599 am_cv_ar_interface=lib
6601 am_cv_ar_interface=unknown
6604 rm -f conftest.lib libconftest.a
6607 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6609 ac_cpp='$CPP $CPPFLAGS'
6610 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6611 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6612 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_ar_interface" >&5
6616 $as_echo "$am_cv_ar_interface" >&6; }
6618 case $am_cv_ar_interface in
6622 # Microsoft lib, so override with the ar-lib wrapper script.
6623 # FIXME: It is wrong to rewrite AR.
6624 # But if we don't then we get into trouble of one sort or another.
6625 # A longer-term fix would be to have automake use am__AR in this case,
6626 # and then we could set am__AR="$am_aux_dir/ar-lib \$(AR)" or something
6628 AR="$am_aux_dir/ar-lib $AR"
6631 as_fn_error $? "could not determine $AR interface" "$LINENO" 5
6637 if test -n "$ac_tool_prefix"; then
6638 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6639 set dummy ${ac_tool_prefix}ar; ac_word=$2
6640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6641 $as_echo_n "checking for $ac_word... " >&6; }
6642 if ${ac_cv_prog_AR+:} false; then :
6643 $as_echo_n "(cached) " >&6
6645 if test -n "$AR"; then
6646 ac_cv_prog_AR="$AR" # Let the user override the test.
6648 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6652 test -z "$as_dir" && as_dir=.
6653 for ac_exec_ext in '' $ac_executable_extensions; do
6654 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6655 ac_cv_prog_AR="${ac_tool_prefix}ar"
6656 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6666 if test -n "$AR"; then
6667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6668 $as_echo "$AR" >&6; }
6670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6671 $as_echo "no" >&6; }
6676 if test -z "$ac_cv_prog_AR"; then
6678 # Extract the first word of "ar", so it can be a program name with args.
6679 set dummy ar; ac_word=$2
6680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6681 $as_echo_n "checking for $ac_word... " >&6; }
6682 if ${ac_cv_prog_ac_ct_AR+:} false; then :
6683 $as_echo_n "(cached) " >&6
6685 if test -n "$ac_ct_AR"; then
6686 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6688 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6692 test -z "$as_dir" && as_dir=.
6693 for ac_exec_ext in '' $ac_executable_extensions; do
6694 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6695 ac_cv_prog_ac_ct_AR="ar"
6696 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6705 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6706 if test -n "$ac_ct_AR"; then
6707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6708 $as_echo "$ac_ct_AR" >&6; }
6710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6711 $as_echo "no" >&6; }
6714 if test "x$ac_ct_AR" = x; then
6717 case $cross_compiling:$ac_tool_warned in
6719 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6720 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6721 ac_tool_warned=yes ;;
6729 if test -z "$ARFLAGS"; then
6735 if test -z "$RANLIB"; then
6736 if test $gl_cv_c_amsterdam_compiler = yes; then
6739 if test -n "$ac_tool_prefix"; then
6740 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6741 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6743 $as_echo_n "checking for $ac_word... " >&6; }
6744 if ${ac_cv_prog_RANLIB+:} false; then :
6745 $as_echo_n "(cached) " >&6
6747 if test -n "$RANLIB"; then
6748 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6750 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6754 test -z "$as_dir" && as_dir=.
6755 for ac_exec_ext in '' $ac_executable_extensions; do
6756 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6757 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6758 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6767 RANLIB=$ac_cv_prog_RANLIB
6768 if test -n "$RANLIB"; then
6769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6770 $as_echo "$RANLIB" >&6; }
6772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6773 $as_echo "no" >&6; }
6778 if test -z "$ac_cv_prog_RANLIB"; then
6779 ac_ct_RANLIB=$RANLIB
6780 # Extract the first word of "ranlib", so it can be a program name with args.
6781 set dummy ranlib; ac_word=$2
6782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6783 $as_echo_n "checking for $ac_word... " >&6; }
6784 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6785 $as_echo_n "(cached) " >&6
6787 if test -n "$ac_ct_RANLIB"; then
6788 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6790 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6794 test -z "$as_dir" && as_dir=.
6795 for ac_exec_ext in '' $ac_executable_extensions; do
6796 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6797 ac_cv_prog_ac_ct_RANLIB="ranlib"
6798 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6807 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6808 if test -n "$ac_ct_RANLIB"; then
6809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6810 $as_echo "$ac_ct_RANLIB" >&6; }
6812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6813 $as_echo "no" >&6; }
6816 if test "x$ac_ct_RANLIB" = x; then
6819 case $cross_compiling:$ac_tool_warned in
6821 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6822 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6823 ac_tool_warned=yes ;;
6825 RANLIB=$ac_ct_RANLIB
6828 RANLIB="$ac_cv_prog_RANLIB"
6836 # Check whether --enable-largefile was given.
6837 if test "${enable_largefile+set}" = set; then :
6838 enableval=$enable_largefile;
6841 if test "$enable_largefile" != no; then
6843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
6844 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
6845 if ${ac_cv_sys_largefile_CC+:} false; then :
6846 $as_echo_n "(cached) " >&6
6848 ac_cv_sys_largefile_CC=no
6849 if test "$GCC" != yes; then
6852 # IRIX 6.2 and later do not support large files by default,
6853 # so use the C compiler's -n32 option if that helps.
6854 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6855 /* end confdefs.h. */
6856 #include <sys/types.h>
6857 /* Check that off_t can represent 2**63 - 1 correctly.
6858 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6859 since some C++ compilers masquerading as C compilers
6860 incorrectly reject 9223372036854775807. */
6861 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6862 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6863 && LARGE_OFF_T % 2147483647 == 1)
6873 if ac_fn_c_try_compile "$LINENO"; then :
6876 rm -f core conftest.err conftest.$ac_objext
6878 if ac_fn_c_try_compile "$LINENO"; then :
6879 ac_cv_sys_largefile_CC=' -n32'; break
6881 rm -f core conftest.err conftest.$ac_objext
6885 rm -f conftest.$ac_ext
6888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
6889 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
6890 if test "$ac_cv_sys_largefile_CC" != no; then
6891 CC=$CC$ac_cv_sys_largefile_CC
6894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
6895 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
6896 if ${ac_cv_sys_file_offset_bits+:} false; then :
6897 $as_echo_n "(cached) " >&6
6900 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6901 /* end confdefs.h. */
6902 #include <sys/types.h>
6903 /* Check that off_t can represent 2**63 - 1 correctly.
6904 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6905 since some C++ compilers masquerading as C compilers
6906 incorrectly reject 9223372036854775807. */
6907 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6908 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6909 && LARGE_OFF_T % 2147483647 == 1)
6919 if ac_fn_c_try_compile "$LINENO"; then :
6920 ac_cv_sys_file_offset_bits=no; break
6922 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6923 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6924 /* end confdefs.h. */
6925 #define _FILE_OFFSET_BITS 64
6926 #include <sys/types.h>
6927 /* Check that off_t can represent 2**63 - 1 correctly.
6928 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6929 since some C++ compilers masquerading as C compilers
6930 incorrectly reject 9223372036854775807. */
6931 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6932 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6933 && LARGE_OFF_T % 2147483647 == 1)
6943 if ac_fn_c_try_compile "$LINENO"; then :
6944 ac_cv_sys_file_offset_bits=64; break
6946 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6947 ac_cv_sys_file_offset_bits=unknown
6951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
6952 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
6953 case $ac_cv_sys_file_offset_bits in #(
6956 cat >>confdefs.h <<_ACEOF
6957 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
6962 if test $ac_cv_sys_file_offset_bits = unknown; then
6963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
6964 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
6965 if ${ac_cv_sys_large_files+:} false; then :
6966 $as_echo_n "(cached) " >&6
6969 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6970 /* end confdefs.h. */
6971 #include <sys/types.h>
6972 /* Check that off_t can represent 2**63 - 1 correctly.
6973 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6974 since some C++ compilers masquerading as C compilers
6975 incorrectly reject 9223372036854775807. */
6976 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6977 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6978 && LARGE_OFF_T % 2147483647 == 1)
6988 if ac_fn_c_try_compile "$LINENO"; then :
6989 ac_cv_sys_large_files=no; break
6991 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6992 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6993 /* end confdefs.h. */
6994 #define _LARGE_FILES 1
6995 #include <sys/types.h>
6996 /* Check that off_t can represent 2**63 - 1 correctly.
6997 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6998 since some C++ compilers masquerading as C compilers
6999 incorrectly reject 9223372036854775807. */
7000 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
7001 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7002 && LARGE_OFF_T % 2147483647 == 1)
7012 if ac_fn_c_try_compile "$LINENO"; then :
7013 ac_cv_sys_large_files=1; break
7015 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7016 ac_cv_sys_large_files=unknown
7020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
7021 $as_echo "$ac_cv_sys_large_files" >&6; }
7022 case $ac_cv_sys_large_files in #(
7025 cat >>confdefs.h <<_ACEOF
7026 #define _LARGE_FILES $ac_cv_sys_large_files
7034 $as_echo "#define _DARWIN_USE_64_BIT_INODE 1" >>confdefs.h
7038 case $ac_cv_prog_cc_stdc in #(
7040 ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;; #(
7042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
7043 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
7044 if ${ac_cv_prog_cc_c99+:} false; then :
7045 $as_echo_n "(cached) " >&6
7047 ac_cv_prog_cc_c99=no
7049 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7050 /* end confdefs.h. */
7052 #include <stdbool.h>
7057 // Check varargs macros. These examples are taken from C99 6.10.3.5.
7058 #define debug(...) fprintf (stderr, __VA_ARGS__)
7059 #define showlist(...) puts (#__VA_ARGS__)
7060 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
7062 test_varargs_macros (void)
7067 debug ("X = %d\n", x);
7068 showlist (The first, second, and third items.);
7069 report (x>y, "x is %d but y is %d", x, y);
7072 // Check long long types.
7073 #define BIG64 18446744073709551615ull
7074 #define BIG32 4294967295ul
7075 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
7077 your preprocessor is broken;
7081 your preprocessor is broken;
7083 static long long int bignum = -9223372036854775807LL;
7084 static unsigned long long int ubignum = BIG64;
7086 struct incomplete_array
7094 const wchar_t *name;
7098 typedef const char *ccp;
7101 test_restrict (ccp restrict text)
7103 // See if C++-style comments work.
7104 // Iterate through items via the restricted pointer.
7105 // Also check for declarations in for loops.
7106 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
7111 // Check varargs and va_copy.
7113 test_varargs (const char *format, ...)
7116 va_start (args, format);
7118 va_copy (args_copy, args);
7129 str = va_arg (args_copy, const char *);
7132 number = va_arg (args_copy, int);
7135 fnumber = va_arg (args_copy, double);
7150 _Bool success = false;
7153 if (test_restrict ("String literal") == 0)
7155 char *restrict newvar = "Another string";
7158 test_varargs ("s, d' f .", "string", 65, 34.234);
7159 test_varargs_macros ();
7161 // Check flexible array members.
7162 struct incomplete_array *ia =
7163 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
7165 for (int i = 0; i < ia->datasize; ++i)
7166 ia->data[i] = i * 1.234;
7168 // Check named initializers.
7169 struct named_init ni = {
7171 .name = L"Test wide string",
7172 .average = 543.34343,
7177 int dynamic_array[ni.number];
7178 dynamic_array[ni.number - 1] = 543;
7180 // work around unused variable warnings
7181 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
7182 || dynamic_array[ni.number - 1] != 543);
7188 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
7190 CC="$ac_save_CC $ac_arg"
7191 if ac_fn_c_try_compile "$LINENO"; then :
7192 ac_cv_prog_cc_c99=$ac_arg
7194 rm -f core conftest.err conftest.$ac_objext
7195 test "x$ac_cv_prog_cc_c99" != "xno" && break
7197 rm -f conftest.$ac_ext
7202 case "x$ac_cv_prog_cc_c99" in
7204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
7205 $as_echo "none needed" >&6; } ;;
7207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
7208 $as_echo "unsupported" >&6; } ;;
7210 CC="$CC $ac_cv_prog_cc_c99"
7211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
7212 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
7214 if test "x$ac_cv_prog_cc_c99" != xno; then :
7215 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
7217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
7218 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
7219 if ${ac_cv_prog_cc_c89+:} false; then :
7220 $as_echo_n "(cached) " >&6
7222 ac_cv_prog_cc_c89=no
7224 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7225 /* end confdefs.h. */
7229 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
7230 struct buf { int x; };
7231 FILE * (*rcsopen) (struct buf *, struct stat *, int);
7232 static char *e (p, i)
7238 static char *f (char * (*g) (char **, int), char **p, ...)
7243 s = g (p, va_arg (v,int));
7248 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
7249 function prototypes and stuff, but not '\xHH' hex character constants.
7250 These don't provoke an error unfortunately, instead are silently treated
7251 as 'x'. The following induces an error, until -std is added to get
7252 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
7253 array size at least. It's necessary to write '\x00'==0 to get something
7254 that's true only with -std. */
7255 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
7257 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
7258 inside strings and character constants. */
7260 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
7262 int test (int i, double x);
7263 struct s1 {int (*f) (int a);};
7264 struct s2 {int (*f) (double a);};
7265 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
7271 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
7276 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
7277 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
7279 CC="$ac_save_CC $ac_arg"
7280 if ac_fn_c_try_compile "$LINENO"; then :
7281 ac_cv_prog_cc_c89=$ac_arg
7283 rm -f core conftest.err conftest.$ac_objext
7284 test "x$ac_cv_prog_cc_c89" != "xno" && break
7286 rm -f conftest.$ac_ext
7291 case "x$ac_cv_prog_cc_c89" in
7293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
7294 $as_echo "none needed" >&6; } ;;
7296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
7297 $as_echo "unsupported" >&6; } ;;
7299 CC="$CC $ac_cv_prog_cc_c89"
7300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
7301 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
7303 if test "x$ac_cv_prog_cc_c89" != xno; then :
7304 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
7306 ac_cv_prog_cc_stdc=no
7312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO Standard C" >&5
7313 $as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; }
7314 if ${ac_cv_prog_cc_stdc+:} false; then :
7315 $as_echo_n "(cached) " >&6
7318 case $ac_cv_prog_cc_stdc in #(
7320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
7321 $as_echo "unsupported" >&6; } ;; #(
7323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
7324 $as_echo "none needed" >&6; } ;; #(
7326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5
7327 $as_echo "$ac_cv_prog_cc_stdc" >&6; } ;;
7335 # Check whether --enable-threads was given.
7336 if test "${enable_threads+set}" = set; then :
7337 enableval=$enable_threads; gl_use_threads=$enableval
7339 if test -n "$gl_use_threads_default"; then
7340 gl_use_threads="$gl_use_threads_default"
7343 osf*) gl_use_threads=no ;;
7346 1.[0-5].*) gl_use_threads=no ;;
7347 *) gl_use_threads=yes ;;
7350 *) gl_use_threads=yes ;;
7356 if test "$gl_use_threads" = yes || test "$gl_use_threads" = posix; then
7357 # For using <pthread.h>:
7360 # On OSF/1, the compiler needs the flag -D_REENTRANT so that it
7361 # groks <pthread.h>. cc also understands the flag -pthread, but
7362 # we don't use it because 1. gcc-2.95 doesn't understand -pthread,
7363 # 2. putting a flag into CPPFLAGS that has an effect on the linker
7364 # causes the AC_LINK_IFELSE test below to succeed unexpectedly,
7365 # leading to wrong values of LIBTHREAD and LTLIBTHREAD.
7366 CPPFLAGS="$CPPFLAGS -D_REENTRANT"
7369 # Some systems optimize for single-threaded programs by default, and
7370 # need special flags to disable these optimizations. For example, the
7371 # definition of 'errno' in <errno.h>.
7373 aix* | freebsd*) CPPFLAGS="$CPPFLAGS -D_THREAD_SAFE" ;;
7374 solaris*) CPPFLAGS="$CPPFLAGS -D_REENTRANT" ;;
7380 # Pre-early section.
7385 # Code from module absolute-header:
7386 # Code from module alloca-opt:
7387 # Code from module dirname:
7388 # Code from module dirname-lgpl:
7389 # Code from module dosname:
7390 # Code from module double-slash-root:
7391 # Code from module environ:
7392 # Code from module errno:
7393 # Code from module error:
7394 # Code from module exitfail:
7395 # Code from module extensions:
7396 # Code from module extern-inline:
7397 # Code from module fcntl-h:
7398 # Code from module filename:
7399 # Code from module float:
7400 # Code from module full-write:
7401 # Code from module getprogname:
7402 # Code from module gettext-h:
7403 # Code from module gettimeofday:
7404 # Code from module gitlog-to-changelog:
7405 # Code from module gnupload:
7406 # Code from module havelib:
7407 # Code from module include_next:
7408 # Code from module intprops:
7409 # Code from module largefile:
7411 # Code from module lib-ignore:
7412 # Code from module limits-h:
7413 # Code from module localtime-buffer:
7414 # Code from module lock:
7415 # Code from module lstat:
7416 # Code from module malloc-posix:
7417 # Code from module malloca:
7418 # Code from module manywarnings:
7419 # Code from module memchr:
7420 # Code from module mkdir:
7421 # Code from module mkdtemp:
7422 # Code from module msvc-inval:
7423 # Code from module msvc-nothrow:
7424 # Code from module multiarch:
7425 # Code from module pathmax:
7426 # Code from module raise:
7427 # Code from module read:
7428 # Code from module safe-read:
7429 # Code from module safe-write:
7430 # Code from module setenv:
7431 # Code from module sigaction:
7432 # Code from module signal:
7433 # Code from module signal-h:
7434 # Code from module sigprocmask:
7435 # Code from module size_max:
7436 # Code from module snippet/_Noreturn:
7437 # Code from module snippet/arg-nonnull:
7438 # Code from module snippet/c++defs:
7439 # Code from module snippet/warn-on-use:
7440 # Code from module snprintf:
7441 # Code from module ssize_t:
7442 # Code from module stat:
7443 # Code from module stat-time:
7444 # Code from module stdarg:
7448 # Code from module stdbool:
7449 # Code from module stddef:
7450 # Code from module stdint:
7451 # Code from module stdio:
7452 # Code from module stdlib:
7453 # Code from module strerror:
7454 # Code from module strerror-override:
7455 # Code from module string:
7456 # Code from module strndup:
7457 # Code from module strnlen:
7458 # Code from module strsignal:
7459 # Code from module sys_select:
7460 # Code from module sys_stat:
7461 # Code from module sys_time:
7462 # Code from module sys_types:
7463 # Code from module sys_wait:
7464 # Code from module tempname:
7465 # Code from module threadlib:
7469 # Code from module time:
7470 # Code from module tls:
7471 # Code from module unistd:
7472 # Code from module unsetenv:
7473 # Code from module vasnprintf:
7474 # Code from module vasprintf:
7475 # Code from module verify:
7476 # Code from module waitpid:
7477 # Code from module warnings:
7478 # Code from module wchar:
7479 # Code from module write:
7480 # Code from module xalloc:
7481 # Code from module xalloc-die:
7482 # Code from module xalloc-oversized:
7483 # Code from module xsize:
7484 # Code from module xstrndup:
7485 # Code from module xvasprintf:
7488 ac_cpp='$CPP $CPPFLAGS'
7489 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7490 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7491 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7493 $as_echo_n "checking how to run the C preprocessor... " >&6; }
7494 # On Suns, sometimes $CPP names a directory.
7495 if test -n "$CPP" && test -d "$CPP"; then
7498 if test -z "$CPP"; then
7499 if ${ac_cv_prog_CPP+:} false; then :
7500 $as_echo_n "(cached) " >&6
7502 # Double quotes because CPP needs to be expanded
7503 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7506 for ac_c_preproc_warn_flag in '' yes
7508 # Use a header file that comes with gcc, so configuring glibc
7509 # with a fresh cross-compiler works.
7510 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7511 # <limits.h> exists even on freestanding compilers.
7512 # On the NeXT, cc -E runs the code through the compiler's parser,
7513 # not just through cpp. "Syntax error" is here to catch this case.
7514 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7515 /* end confdefs.h. */
7517 # include <limits.h>
7519 # include <assert.h>
7523 if ac_fn_c_try_cpp "$LINENO"; then :
7526 # Broken: fails on valid input.
7529 rm -f conftest.err conftest.i conftest.$ac_ext
7531 # OK, works on sane cases. Now check whether nonexistent headers
7532 # can be detected and how.
7533 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7534 /* end confdefs.h. */
7535 #include <ac_nonexistent.h>
7537 if ac_fn_c_try_cpp "$LINENO"; then :
7538 # Broken: success on invalid input.
7541 # Passes both tests.
7545 rm -f conftest.err conftest.i conftest.$ac_ext
7548 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7549 rm -f conftest.i conftest.err conftest.$ac_ext
7550 if $ac_preproc_ok; then :
7562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7563 $as_echo "$CPP" >&6; }
7565 for ac_c_preproc_warn_flag in '' yes
7567 # Use a header file that comes with gcc, so configuring glibc
7568 # with a fresh cross-compiler works.
7569 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7570 # <limits.h> exists even on freestanding compilers.
7571 # On the NeXT, cc -E runs the code through the compiler's parser,
7572 # not just through cpp. "Syntax error" is here to catch this case.
7573 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7574 /* end confdefs.h. */
7576 # include <limits.h>
7578 # include <assert.h>
7582 if ac_fn_c_try_cpp "$LINENO"; then :
7585 # Broken: fails on valid input.
7588 rm -f conftest.err conftest.i conftest.$ac_ext
7590 # OK, works on sane cases. Now check whether nonexistent headers
7591 # can be detected and how.
7592 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7593 /* end confdefs.h. */
7594 #include <ac_nonexistent.h>
7596 if ac_fn_c_try_cpp "$LINENO"; then :
7597 # Broken: success on invalid input.
7600 # Passes both tests.
7604 rm -f conftest.err conftest.i conftest.$ac_ext
7607 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7608 rm -f conftest.i conftest.err conftest.$ac_ext
7609 if $ac_preproc_ok; then :
7612 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7613 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7614 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7615 See \`config.log' for more details" "$LINENO" 5; }
7619 ac_cpp='$CPP $CPPFLAGS'
7620 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7621 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7622 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7624 CFLAGS="$CFLAGS -Wall"
7625 # Enable all reasonable GCC warnings.
7628 ac_cpp='$CPP $CPPFLAGS'
7629 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7630 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7631 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7635 if test -n "$GCC"; then
7637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -Wno-missing-field-initializers is supported" >&5
7638 $as_echo_n "checking whether -Wno-missing-field-initializers is supported... " >&6; }
7639 if ${gl_cv_cc_nomfi_supported+:} false; then :
7640 $as_echo_n "(cached) " >&6
7642 gl_save_CFLAGS="$CFLAGS"
7643 CFLAGS="$CFLAGS -W -Werror -Wno-missing-field-initializers"
7644 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7645 /* end confdefs.h. */
7655 if ac_fn_c_try_compile "$LINENO"; then :
7656 gl_cv_cc_nomfi_supported=yes
7658 gl_cv_cc_nomfi_supported=no
7660 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7661 CFLAGS="$gl_save_CFLAGS"
7664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_nomfi_supported" >&5
7665 $as_echo "$gl_cv_cc_nomfi_supported" >&6; }
7667 if test "$gl_cv_cc_nomfi_supported" = yes; then
7668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -Wno-missing-field-initializers is needed" >&5
7669 $as_echo_n "checking whether -Wno-missing-field-initializers is needed... " >&6; }
7670 if ${gl_cv_cc_nomfi_needed+:} false; then :
7671 $as_echo_n "(cached) " >&6
7673 gl_save_CFLAGS="$CFLAGS"
7674 CFLAGS="$CFLAGS -W -Werror"
7675 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7676 /* end confdefs.h. */
7679 typedef struct { int a; int b; } s_t;
7692 if ac_fn_c_try_compile "$LINENO"; then :
7693 gl_cv_cc_nomfi_needed=no
7695 gl_cv_cc_nomfi_needed=yes
7697 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7698 CFLAGS="$gl_save_CFLAGS"
7701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_nomfi_needed" >&5
7702 $as_echo "$gl_cv_cc_nomfi_needed" >&6; }
7705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -Wuninitialized is supported" >&5
7706 $as_echo_n "checking whether -Wuninitialized is supported... " >&6; }
7707 if ${gl_cv_cc_uninitialized_supported+:} false; then :
7708 $as_echo_n "(cached) " >&6
7710 gl_save_CFLAGS="$CFLAGS"
7711 CFLAGS="$CFLAGS -Werror -Wuninitialized"
7712 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7713 /* end confdefs.h. */
7723 if ac_fn_c_try_compile "$LINENO"; then :
7724 gl_cv_cc_uninitialized_supported=yes
7726 gl_cv_cc_uninitialized_supported=no
7728 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7729 CFLAGS="$gl_save_CFLAGS"
7732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_uninitialized_supported" >&5
7733 $as_echo "$gl_cv_cc_uninitialized_supported" >&6; }
7737 # List all gcc warning categories.
7738 # To compare this list to your installed GCC's, run this Bash command:
7741 # <((sed -n 's/^ *\(-[^ 0-9][^ ]*\) .*/\1/p' manywarnings.m4; \
7742 # awk '/^[^#]/ {print warnings}' ../build-aux/gcc-warning.spec) | sort) \
7743 # <(LC_ALL=C gcc --help=warnings | sed -n 's/^ \(-[^ ]*\) .*/\1/p' | sort)
7746 for gl_manywarn_item in -fno-common \
7749 -Waggressive-loop-optimizations \
7753 -Wbad-function-cast \
7756 -Wbuiltin-declaration-mismatch \
7757 -Wbuiltin-macro-redefined \
7759 -Wcast-align=strict \
7760 -Wcast-function-type \
7765 -Wcoverage-mismatch \
7770 -Wdeprecated-declarations \
7772 -Wdisabled-optimization \
7773 -Wdiscarded-array-qualifiers \
7774 -Wdiscarded-qualifiers \
7776 -Wdouble-promotion \
7777 -Wduplicated-branches \
7779 -Wduplicate-decl-specifier \
7783 -Wexpansion-to-defined \
7785 -Wformat-contains-nul \
7786 -Wformat-extra-args \
7787 -Wformat-nonliteral \
7789 -Wformat-signedness \
7791 -Wformat-zero-length \
7793 -Wfree-nonheap-object \
7796 -Wignored-attributes \
7797 -Wignored-qualifiers \
7799 -Wimplicit-function-declaration \
7801 -Wincompatible-pointer-types \
7805 -Wint-in-bool-context \
7806 -Wint-to-pointer-cast \
7807 -Winvalid-memory-model \
7809 -Wlogical-not-parentheses \
7812 -Wmaybe-uninitialized \
7814 -Wmemset-transposed-args \
7815 -Wmisleading-indentation \
7816 -Wmissing-attributes \
7818 -Wmissing-declarations \
7819 -Wmissing-field-initializers \
7820 -Wmissing-include-dirs \
7821 -Wmissing-parameter-type \
7822 -Wmissing-prototypes \
7824 -Wmultistatement-macros \
7829 -Wnull-dereference \
7831 -Wold-style-declaration \
7832 -Wold-style-definition \
7835 -Woverlength-strings \
7838 -Wpacked-bitfield-compat \
7839 -Wpacked-not-aligned \
7844 -Wpointer-to-int-cast \
7848 -Wreturn-local-addr \
7850 -Wscalar-storage-order \
7853 -Wshift-count-negative \
7854 -Wshift-count-overflow \
7855 -Wshift-negative-value \
7856 -Wsizeof-array-argument \
7857 -Wsizeof-pointer-div \
7858 -Wsizeof-pointer-memaccess \
7862 -Wstrict-prototypes \
7863 -Wstringop-truncation \
7864 -Wsuggest-attribute=cold \
7865 -Wsuggest-attribute=const \
7866 -Wsuggest-attribute=format \
7867 -Wsuggest-attribute=malloc \
7868 -Wsuggest-attribute=noreturn \
7869 -Wsuggest-attribute=pure \
7870 -Wsuggest-final-methods \
7871 -Wsuggest-final-types \
7874 -Wswitch-unreachable \
7877 -Wtautological-compare \
7883 -Wunsafe-loop-optimizations \
7885 -Wunused-but-set-parameter \
7886 -Wunused-but-set-variable \
7889 -Wunused-local-typedefs \
7891 -Wunused-parameter \
7897 -Wvector-operation-performance \
7899 -Wvolatile-register-var \
7903 gl_manywarn_set="$gl_manywarn_set $gl_manywarn_item"
7906 # gcc --help=warnings outputs an unusual form for these options; list
7907 # them here so that the above 'comm' command doesn't report a false match.
7908 # Would prefer "min (PTRDIFF_MAX, SIZE_MAX)", but it must be a literal.
7909 # Also, AC_COMPUTE_INT requires it to fit in a long; it is 2**63 on
7910 # the only platforms where it does not fit in a long, so make that
7912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking max safe object size" >&5
7913 $as_echo_n "checking max safe object size... " >&6; }
7914 if ac_fn_c_compute_int "$LINENO" "LONG_MAX < (PTRDIFF_MAX < (size_t) -1 ? PTRDIFF_MAX : (size_t) -1)
7916 : PTRDIFF_MAX < (size_t) -1 ? (long) PTRDIFF_MAX : (long) (size_t) -1" "gl_alloc_max" "#include <limits.h>
7922 gl_alloc_max=2147483647
7925 case $gl_alloc_max in
7926 -1) gl_alloc_max=9223372036854775807;;
7928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_alloc_max" >&5
7929 $as_echo "$gl_alloc_max" >&6; }
7930 gl_manywarn_set="$gl_manywarn_set -Walloc-size-larger-than=$gl_alloc_max"
7931 gl_manywarn_set="$gl_manywarn_set -Warray-bounds=2"
7932 gl_manywarn_set="$gl_manywarn_set -Wformat-overflow=2"
7933 gl_manywarn_set="$gl_manywarn_set -Wformat-truncation=2"
7934 gl_manywarn_set="$gl_manywarn_set -Wimplicit-fallthrough=5"
7935 gl_manywarn_set="$gl_manywarn_set -Wnormalized=nfc"
7936 gl_manywarn_set="$gl_manywarn_set -Wshift-overflow=2"
7937 gl_manywarn_set="$gl_manywarn_set -Wstringop-overflow=2"
7938 gl_manywarn_set="$gl_manywarn_set -Wunused-const-variable=2"
7939 gl_manywarn_set="$gl_manywarn_set -Wvla-larger-than=4031"
7941 # These are needed for older GCC versions.
7942 if test -n "$GCC"; then
7943 case `($CC --version) 2>/dev/null` in
7944 'gcc (GCC) '[0-3].* | \
7945 'gcc (GCC) '4.[0-7].*)
7946 gl_manywarn_set="$gl_manywarn_set -fdiagnostics-show-option"
7947 gl_manywarn_set="$gl_manywarn_set -funit-at-a-time"
7952 # Disable specific options as needed.
7953 if test "$gl_cv_cc_nomfi_needed" = yes; then
7954 gl_manywarn_set="$gl_manywarn_set -Wno-missing-field-initializers"
7957 if test "$gl_cv_cc_uninitialized_supported" = no; then
7958 gl_manywarn_set="$gl_manywarn_set -Wno-uninitialized"
7961 warnings=$gl_manywarn_set
7964 ac_cpp='$CPP $CPPFLAGS'
7965 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7966 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7967 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7971 nw="$nw -Wsystem-headers"
7972 nw="$nw -Wmissing-field-initializers"
7976 set x $warnings; shift
7980 *" $gl_warn_item "*)
7983 gl_warn_set="$gl_warn_set $gl_warn_item"
7987 warnings=$gl_warn_set
7989 for w in $warnings; do
7992 ac_cpp='$CPP $CPPFLAGS'
7993 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7994 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7995 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Werror -Wunknown-warning-option" >&5
7999 $as_echo_n "checking whether C compiler handles -Werror -Wunknown-warning-option... " >&6; }
8000 if ${gl_cv_warn_c__Werror__Wunknown_warning_option+:} false; then :
8001 $as_echo_n "(cached) " >&6
8004 gl_save_compiler_FLAGS="$CFLAGS"
8005 as_fn_append CFLAGS " $gl_unknown_warnings_are_errors -Werror -Wunknown-warning-option"
8006 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8007 /* end confdefs.h. */
8017 if ac_fn_c_try_link "$LINENO"; then :
8018 gl_cv_warn_c__Werror__Wunknown_warning_option=yes
8020 gl_cv_warn_c__Werror__Wunknown_warning_option=no
8022 rm -f core conftest.err conftest.$ac_objext \
8023 conftest$ac_exeext conftest.$ac_ext
8024 CFLAGS="$gl_save_compiler_FLAGS"
8027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Werror__Wunknown_warning_option" >&5
8028 $as_echo "$gl_cv_warn_c__Werror__Wunknown_warning_option" >&6; }
8029 if test "x$gl_cv_warn_c__Werror__Wunknown_warning_option" = xyes; then :
8030 gl_unknown_warnings_are_errors='-Wunknown-warning-option -Werror'
8032 gl_unknown_warnings_are_errors=
8036 ac_cpp='$CPP $CPPFLAGS'
8037 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8038 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8039 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8044 as_gl_Warn=`$as_echo "gl_cv_warn_c_$w" | $as_tr_sh`
8046 case $gl_positive in
8047 -Wno-*) gl_positive=-W`expr "X$gl_positive" : 'X-Wno-\(.*\)'` ;;
8049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles $w" >&5
8050 $as_echo_n "checking whether C compiler handles $w... " >&6; }
8051 if eval \${$as_gl_Warn+:} false; then :
8052 $as_echo_n "(cached) " >&6
8055 gl_save_compiler_FLAGS="$CFLAGS"
8056 as_fn_append CFLAGS " $gl_unknown_warnings_are_errors $gl_positive"
8057 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8058 /* end confdefs.h. */
8068 if ac_fn_c_try_link "$LINENO"; then :
8069 eval "$as_gl_Warn=yes"
8071 eval "$as_gl_Warn=no"
8073 rm -f core conftest.err conftest.$ac_objext \
8074 conftest$ac_exeext conftest.$ac_ext
8075 CFLAGS="$gl_save_compiler_FLAGS"
8078 eval ac_res=\$$as_gl_Warn
8079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
8080 $as_echo "$ac_res" >&6; }
8081 if eval test \"x\$"$as_gl_Warn"\" = x"yes"; then :
8082 as_fn_append WARN_CFLAGS " $w"
8089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-missing-field-initializers" >&5
8090 $as_echo_n "checking whether C compiler handles -Wno-missing-field-initializers... " >&6; }
8091 if ${gl_cv_warn_c__Wno_missing_field_initializers+:} false; then :
8092 $as_echo_n "(cached) " >&6
8095 gl_save_compiler_FLAGS="$CFLAGS"
8096 as_fn_append CFLAGS " $gl_unknown_warnings_are_errors -Wmissing-field-initializers"
8097 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8098 /* end confdefs.h. */
8108 if ac_fn_c_try_link "$LINENO"; then :
8109 gl_cv_warn_c__Wno_missing_field_initializers=yes
8111 gl_cv_warn_c__Wno_missing_field_initializers=no
8113 rm -f core conftest.err conftest.$ac_objext \
8114 conftest$ac_exeext conftest.$ac_ext
8115 CFLAGS="$gl_save_compiler_FLAGS"
8118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_missing_field_initializers" >&5
8119 $as_echo "$gl_cv_warn_c__Wno_missing_field_initializers" >&6; }
8120 if test "x$gl_cv_warn_c__Wno_missing_field_initializers" = xyes; then :
8121 as_fn_append WARN_CFLAGS " -Wno-missing-field-initializers"
8125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
8126 $as_echo_n "checking whether ln -s works... " >&6; }
8128 if test "$LN_S" = "ln -s"; then
8129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8130 $as_echo "yes" >&6; }
8132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
8133 $as_echo "no, using $LN_S" >&6; }
8136 if test -n "$ac_tool_prefix"; then
8137 for ac_prog in ar lib "link -lib"
8139 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
8140 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
8141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8142 $as_echo_n "checking for $ac_word... " >&6; }
8143 if ${ac_cv_prog_AR+:} false; then :
8144 $as_echo_n "(cached) " >&6
8146 if test -n "$AR"; then
8147 ac_cv_prog_AR="$AR" # Let the user override the test.
8149 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8153 test -z "$as_dir" && as_dir=.
8154 for ac_exec_ext in '' $ac_executable_extensions; do
8155 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8156 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
8157 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8167 if test -n "$AR"; then
8168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8169 $as_echo "$AR" >&6; }
8171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8172 $as_echo "no" >&6; }
8176 test -n "$AR" && break
8179 if test -z "$AR"; then
8181 for ac_prog in ar lib "link -lib"
8183 # Extract the first word of "$ac_prog", so it can be a program name with args.
8184 set dummy $ac_prog; ac_word=$2
8185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8186 $as_echo_n "checking for $ac_word... " >&6; }
8187 if ${ac_cv_prog_ac_ct_AR+:} false; then :
8188 $as_echo_n "(cached) " >&6
8190 if test -n "$ac_ct_AR"; then
8191 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
8193 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8197 test -z "$as_dir" && as_dir=.
8198 for ac_exec_ext in '' $ac_executable_extensions; do
8199 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8200 ac_cv_prog_ac_ct_AR="$ac_prog"
8201 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8210 ac_ct_AR=$ac_cv_prog_ac_ct_AR
8211 if test -n "$ac_ct_AR"; then
8212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
8213 $as_echo "$ac_ct_AR" >&6; }
8215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8216 $as_echo "no" >&6; }
8220 test -n "$ac_ct_AR" && break
8223 if test "x$ac_ct_AR" = x; then
8226 case $cross_compiling:$ac_tool_warned in
8228 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8229 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8230 ac_tool_warned=yes ;;
8238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the archiver ($AR) interface" >&5
8239 $as_echo_n "checking the archiver ($AR) interface... " >&6; }
8240 if ${am_cv_ar_interface+:} false; then :
8241 $as_echo_n "(cached) " >&6
8244 ac_cpp='$CPP $CPPFLAGS'
8245 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8246 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8247 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8249 am_cv_ar_interface=ar
8250 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8251 /* end confdefs.h. */
8252 int some_variable = 0;
8254 if ac_fn_c_try_compile "$LINENO"; then :
8255 am_ar_try='$AR cru libconftest.a conftest.$ac_objext >&5'
8256 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
8257 (eval $am_ar_try) 2>&5
8259 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8260 test $ac_status = 0; }
8261 if test "$ac_status" -eq 0; then
8262 am_cv_ar_interface=ar
8264 am_ar_try='$AR -NOLOGO -OUT:conftest.lib conftest.$ac_objext >&5'
8265 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
8266 (eval $am_ar_try) 2>&5
8268 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8269 test $ac_status = 0; }
8270 if test "$ac_status" -eq 0; then
8271 am_cv_ar_interface=lib
8273 am_cv_ar_interface=unknown
8276 rm -f conftest.lib libconftest.a
8279 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8281 ac_cpp='$CPP $CPPFLAGS'
8282 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8283 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8284 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_ar_interface" >&5
8288 $as_echo "$am_cv_ar_interface" >&6; }
8290 case $am_cv_ar_interface in
8294 # Microsoft lib, so override with the ar-lib wrapper script.
8295 # FIXME: It is wrong to rewrite AR.
8296 # But if we don't then we get into trouble of one sort or another.
8297 # A longer-term fix would be to have automake use am__AR in this case,
8298 # and then we could set am__AR="$am_aux_dir/ar-lib \$(AR)" or something
8300 AR="$am_aux_dir/ar-lib $AR"
8303 as_fn_error $? "could not determine $AR interface" "$LINENO" 5
8309 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
8310 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
8315 macro_version='2.4.6'
8316 macro_revision='2.4.6'
8330 ltmain=$ac_aux_dir/ltmain.sh
8332 # Backslashify metacharacters that are still active within
8333 # double-quoted strings.
8334 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
8336 # Same as above, but do not quote variable references.
8337 double_quote_subst='s/\(["`\\]\)/\\\1/g'
8339 # Sed substitution to delay expansion of an escaped shell variable in a
8340 # double_quote_subst'ed string.
8341 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
8343 # Sed substitution to delay expansion of an escaped single quote.
8344 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
8346 # Sed substitution to avoid accidental globbing in evaled expressions
8347 no_glob_subst='s/\*/\\\*/g'
8349 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
8350 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
8351 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
8353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
8354 $as_echo_n "checking how to print strings... " >&6; }
8355 # Test print first, because it will be a builtin if present.
8356 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
8357 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
8359 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
8362 # Use this function as a fallback that always works.
8363 func_fallback_echo ()
8365 eval 'cat <<_LTECHO_EOF
8369 ECHO='func_fallback_echo'
8372 # func_echo_all arg...
8373 # Invoke $ECHO with all args, space-separated.
8380 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
8381 $as_echo "printf" >&6; } ;;
8382 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
8383 $as_echo "print -r" >&6; } ;;
8384 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
8385 $as_echo "cat" >&6; } ;;
8401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
8402 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
8403 if ${ac_cv_path_SED+:} false; then :
8404 $as_echo_n "(cached) " >&6
8406 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
8407 for ac_i in 1 2 3 4 5 6 7; do
8408 ac_script="$ac_script$as_nl$ac_script"
8410 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
8411 { ac_script=; unset ac_script;}
8412 if test -z "$SED"; then
8413 ac_path_SED_found=false
8414 # Loop through the user's path and test for each of PROGNAME-LIST
8415 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8419 test -z "$as_dir" && as_dir=.
8420 for ac_prog in sed gsed; do
8421 for ac_exec_ext in '' $ac_executable_extensions; do
8422 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
8423 as_fn_executable_p "$ac_path_SED" || continue
8424 # Check for GNU ac_path_SED and select it if it is found.
8425 # Check for GNU $ac_path_SED
8426 case `"$ac_path_SED" --version 2>&1` in
8428 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
8431 $as_echo_n 0123456789 >"conftest.in"
8434 cat "conftest.in" "conftest.in" >"conftest.tmp"
8435 mv "conftest.tmp" "conftest.in"
8436 cp "conftest.in" "conftest.nl"
8437 $as_echo '' >> "conftest.nl"
8438 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
8439 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
8440 as_fn_arith $ac_count + 1 && ac_count=$as_val
8441 if test $ac_count -gt ${ac_path_SED_max-0}; then
8442 # Best one so far, save it but keep looking for a better one
8443 ac_cv_path_SED="$ac_path_SED"
8444 ac_path_SED_max=$ac_count
8446 # 10*(2^10) chars as input seems more than enough
8447 test $ac_count -gt 10 && break
8449 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
8452 $ac_path_SED_found && break 3
8457 if test -z "$ac_cv_path_SED"; then
8458 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
8465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
8466 $as_echo "$ac_cv_path_SED" >&6; }
8467 SED="$ac_cv_path_SED"
8470 test -z "$SED" && SED=sed
8471 Xsed="$SED -e 1s/^X//"
8483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
8484 $as_echo_n "checking for fgrep... " >&6; }
8485 if ${ac_cv_path_FGREP+:} false; then :
8486 $as_echo_n "(cached) " >&6
8488 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
8489 then ac_cv_path_FGREP="$GREP -F"
8491 if test -z "$FGREP"; then
8492 ac_path_FGREP_found=false
8493 # Loop through the user's path and test for each of PROGNAME-LIST
8494 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8495 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
8498 test -z "$as_dir" && as_dir=.
8499 for ac_prog in fgrep; do
8500 for ac_exec_ext in '' $ac_executable_extensions; do
8501 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
8502 as_fn_executable_p "$ac_path_FGREP" || continue
8503 # Check for GNU ac_path_FGREP and select it if it is found.
8504 # Check for GNU $ac_path_FGREP
8505 case `"$ac_path_FGREP" --version 2>&1` in
8507 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
8510 $as_echo_n 0123456789 >"conftest.in"
8513 cat "conftest.in" "conftest.in" >"conftest.tmp"
8514 mv "conftest.tmp" "conftest.in"
8515 cp "conftest.in" "conftest.nl"
8516 $as_echo 'FGREP' >> "conftest.nl"
8517 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
8518 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
8519 as_fn_arith $ac_count + 1 && ac_count=$as_val
8520 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
8521 # Best one so far, save it but keep looking for a better one
8522 ac_cv_path_FGREP="$ac_path_FGREP"
8523 ac_path_FGREP_max=$ac_count
8525 # 10*(2^10) chars as input seems more than enough
8526 test $ac_count -gt 10 && break
8528 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
8531 $ac_path_FGREP_found && break 3
8536 if test -z "$ac_cv_path_FGREP"; then
8537 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
8540 ac_cv_path_FGREP=$FGREP
8545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
8546 $as_echo "$ac_cv_path_FGREP" >&6; }
8547 FGREP="$ac_cv_path_FGREP"
8550 test -z "$GREP" && GREP=grep
8570 # Check whether --with-gnu-ld was given.
8571 if test "${with_gnu_ld+set}" = set; then :
8572 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
8578 if test yes = "$GCC"; then
8579 # Check if gcc -print-prog-name=ld gives a path.
8580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
8581 $as_echo_n "checking for ld used by $CC... " >&6; }
8584 # gcc leaves a trailing carriage return, which upsets mingw
8585 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
8587 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
8590 # Accept absolute paths.
8592 re_direlt='/[^/][^/]*/\.\./'
8593 # Canonicalize the pathname of ld
8594 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
8595 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
8596 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
8598 test -z "$LD" && LD=$ac_prog
8601 # If it fails, then pretend we aren't using GCC.
8605 # If it is relative, then search for the first ld in PATH.
8609 elif test yes = "$with_gnu_ld"; then
8610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
8611 $as_echo_n "checking for GNU ld... " >&6; }
8613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
8614 $as_echo_n "checking for non-GNU ld... " >&6; }
8616 if ${lt_cv_path_LD+:} false; then :
8617 $as_echo_n "(cached) " >&6
8619 if test -z "$LD"; then
8620 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8621 for ac_dir in $PATH; do
8623 test -z "$ac_dir" && ac_dir=.
8624 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
8625 lt_cv_path_LD=$ac_dir/$ac_prog
8626 # Check to see if the program is GNU ld. I'd rather use --version,
8627 # but apparently some variants of GNU ld only accept -v.
8628 # Break only if it was the GNU/non-GNU ld that we prefer.
8629 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
8630 *GNU* | *'with BFD'*)
8631 test no != "$with_gnu_ld" && break
8634 test yes != "$with_gnu_ld" && break
8641 lt_cv_path_LD=$LD # Let the user override the test with a path.
8646 if test -n "$LD"; then
8647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8648 $as_echo "$LD" >&6; }
8650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8651 $as_echo "no" >&6; }
8653 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
8654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
8655 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
8656 if ${lt_cv_prog_gnu_ld+:} false; then :
8657 $as_echo_n "(cached) " >&6
8659 # I'd rather use --version here, but apparently some GNU lds only accept -v.
8660 case `$LD -v 2>&1 </dev/null` in
8661 *GNU* | *'with BFD'*)
8662 lt_cv_prog_gnu_ld=yes
8665 lt_cv_prog_gnu_ld=no
8669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
8670 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
8671 with_gnu_ld=$lt_cv_prog_gnu_ld
8681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
8682 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
8683 if ${lt_cv_path_NM+:} false; then :
8684 $as_echo_n "(cached) " >&6
8686 if test -n "$NM"; then
8687 # Let the user override the test.
8690 lt_nm_to_check=${ac_tool_prefix}nm
8691 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
8692 lt_nm_to_check="$lt_nm_to_check nm"
8694 for lt_tmp_nm in $lt_nm_to_check; do
8695 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8696 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
8698 test -z "$ac_dir" && ac_dir=.
8699 tmp_nm=$ac_dir/$lt_tmp_nm
8700 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
8701 # Check to see if the nm accepts a BSD-compat flag.
8702 # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
8703 # nm: unknown option "B" ignored
8704 # Tru64's nm complains that /dev/null is an invalid object file
8705 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
8707 mingw*) lt_bad_file=conftest.nm/nofile ;;
8708 *) lt_bad_file=/dev/null ;;
8710 case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
8711 *$lt_bad_file* | *'Invalid file or object type'*)
8712 lt_cv_path_NM="$tmp_nm -B"
8716 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
8718 lt_cv_path_NM="$tmp_nm -p"
8722 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
8723 continue # so that we can try to find one that supports BSD flags
8732 : ${lt_cv_path_NM=no}
8735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
8736 $as_echo "$lt_cv_path_NM" >&6; }
8737 if test no != "$lt_cv_path_NM"; then
8740 # Didn't find any BSD compatible name lister, look for dumpbin.
8741 if test -n "$DUMPBIN"; then :
8742 # Let the user override the test.
8744 if test -n "$ac_tool_prefix"; then
8745 for ac_prog in dumpbin "link -dump"
8747 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
8748 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
8749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8750 $as_echo_n "checking for $ac_word... " >&6; }
8751 if ${ac_cv_prog_DUMPBIN+:} false; then :
8752 $as_echo_n "(cached) " >&6
8754 if test -n "$DUMPBIN"; then
8755 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
8757 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8761 test -z "$as_dir" && as_dir=.
8762 for ac_exec_ext in '' $ac_executable_extensions; do
8763 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8764 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
8765 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8774 DUMPBIN=$ac_cv_prog_DUMPBIN
8775 if test -n "$DUMPBIN"; then
8776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
8777 $as_echo "$DUMPBIN" >&6; }
8779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8780 $as_echo "no" >&6; }
8784 test -n "$DUMPBIN" && break
8787 if test -z "$DUMPBIN"; then
8788 ac_ct_DUMPBIN=$DUMPBIN
8789 for ac_prog in dumpbin "link -dump"
8791 # Extract the first word of "$ac_prog", so it can be a program name with args.
8792 set dummy $ac_prog; ac_word=$2
8793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8794 $as_echo_n "checking for $ac_word... " >&6; }
8795 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
8796 $as_echo_n "(cached) " >&6
8798 if test -n "$ac_ct_DUMPBIN"; then
8799 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
8801 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8805 test -z "$as_dir" && as_dir=.
8806 for ac_exec_ext in '' $ac_executable_extensions; do
8807 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8808 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
8809 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8818 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
8819 if test -n "$ac_ct_DUMPBIN"; then
8820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
8821 $as_echo "$ac_ct_DUMPBIN" >&6; }
8823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8824 $as_echo "no" >&6; }
8828 test -n "$ac_ct_DUMPBIN" && break
8831 if test "x$ac_ct_DUMPBIN" = x; then
8834 case $cross_compiling:$ac_tool_warned in
8836 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8837 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8838 ac_tool_warned=yes ;;
8840 DUMPBIN=$ac_ct_DUMPBIN
8844 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
8846 DUMPBIN="$DUMPBIN -symbols -headers"
8854 if test : != "$DUMPBIN"; then
8858 test -z "$NM" && NM=nm
8865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
8866 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
8867 if ${lt_cv_nm_interface+:} false; then :
8868 $as_echo_n "(cached) " >&6
8870 lt_cv_nm_interface="BSD nm"
8871 echo "int some_variable = 0;" > conftest.$ac_ext
8872 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
8873 (eval "$ac_compile" 2>conftest.err)
8874 cat conftest.err >&5
8875 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
8876 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
8877 cat conftest.err >&5
8878 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
8879 cat conftest.out >&5
8880 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
8881 lt_cv_nm_interface="MS dumpbin"
8885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
8886 $as_echo "$lt_cv_nm_interface" >&6; }
8888 # find the maximum length of command line arguments
8889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
8890 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
8891 if ${lt_cv_sys_max_cmd_len+:} false; then :
8892 $as_echo_n "(cached) " >&6
8899 # On DJGPP, this test can blow up pretty badly due to problems in libc
8900 # (any single argument exceeding 2000 bytes causes a buffer overrun
8901 # during glob expansion). Even if it were fixed, the result of this
8902 # check would be larger than it should be.
8903 lt_cv_sys_max_cmd_len=12288; # 12K is about right
8907 # Under GNU Hurd, this test is not required because there is
8908 # no limit to the length of command line arguments.
8909 # Libtool will interpret -1 as no limit whatsoever
8910 lt_cv_sys_max_cmd_len=-1;
8913 cygwin* | mingw* | cegcc*)
8914 # On Win9x/ME, this test blows up -- it succeeds, but takes
8915 # about 5 minutes as the teststring grows exponentially.
8916 # Worse, since 9x/ME are not pre-emptively multitasking,
8917 # you end up with a "frozen" computer, even though with patience
8918 # the test eventually succeeds (with a max line length of 256k).
8919 # Instead, let's just punt: use the minimum linelength reported by
8920 # all of the supported platforms: 8192 (on NT/2K/XP).
8921 lt_cv_sys_max_cmd_len=8192;
8925 # On MiNT this can take a long time and run out of memory.
8926 lt_cv_sys_max_cmd_len=8192;
8930 # On AmigaOS with pdksh, this test takes hours, literally.
8931 # So we just punt and use a minimum line length of 8192.
8932 lt_cv_sys_max_cmd_len=8192;
8935 bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
8936 # This has been around since 386BSD, at least. Likely further.
8937 if test -x /sbin/sysctl; then
8938 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
8939 elif test -x /usr/sbin/sysctl; then
8940 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
8942 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
8944 # And add a safety zone
8945 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
8946 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
8950 # We know the value 262144 and hardcode it with a safety zone (like BSD)
8951 lt_cv_sys_max_cmd_len=196608
8955 # The test takes a long time on OS/2.
8956 lt_cv_sys_max_cmd_len=8192
8960 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
8961 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
8962 # nice to cause kernel panics so lets avoid the loop below.
8963 # First set a reasonable default.
8964 lt_cv_sys_max_cmd_len=16384
8966 if test -x /sbin/sysconfig; then
8967 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
8968 *1*) lt_cv_sys_max_cmd_len=-1 ;;
8973 lt_cv_sys_max_cmd_len=102400
8975 sysv5* | sco5v6* | sysv4.2uw2*)
8976 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
8977 if test -n "$kargmax"; then
8978 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
8980 lt_cv_sys_max_cmd_len=32768
8984 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
8985 if test -n "$lt_cv_sys_max_cmd_len" && \
8986 test undefined != "$lt_cv_sys_max_cmd_len"; then
8987 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
8988 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
8990 # Make teststring a little bigger before we do anything with it.
8991 # a 1K string should be a reasonable start.
8992 for i in 1 2 3 4 5 6 7 8; do
8993 teststring=$teststring$teststring
8995 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
8996 # If test is not a shell built-in, we'll probably end up computing a
8997 # maximum length that is only half of the actual maximum length, but
8999 while { test X`env echo "$teststring$teststring" 2>/dev/null` \
9000 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
9001 test 17 != "$i" # 1/2 MB should be enough
9004 teststring=$teststring$teststring
9006 # Only check the string length outside the loop.
9007 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
9009 # Add a significant safety factor because C++ compilers can tack on
9010 # massive amounts of additional arguments before passing them to the
9011 # linker. It appears as though 1/2 is a usable value.
9012 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
9019 if test -n "$lt_cv_sys_max_cmd_len"; then
9020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
9021 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
9023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
9024 $as_echo "none" >&6; }
9026 max_cmd_len=$lt_cv_sys_max_cmd_len
9037 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
9047 # test EBCDIC or ASCII
9048 case `echo X|tr X '\101'` in
9049 A) # ASCII based system
9050 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
9051 lt_SP2NL='tr \040 \012'
9052 lt_NL2SP='tr \015\012 \040\040'
9054 *) # EBCDIC based system
9055 lt_SP2NL='tr \100 \n'
9056 lt_NL2SP='tr \r\n \100\100'
9068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
9069 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
9070 if ${lt_cv_to_host_file_cmd+:} false; then :
9071 $as_echo_n "(cached) " >&6
9076 *-*-mingw* ) # actually msys
9077 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
9080 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
9082 * ) # otherwise, assume *nix
9083 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
9089 *-*-mingw* ) # actually msys
9090 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
9093 lt_cv_to_host_file_cmd=func_convert_file_noop
9095 * ) # otherwise, assume *nix
9096 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
9100 * ) # unhandled hosts (and "normal" native builds)
9101 lt_cv_to_host_file_cmd=func_convert_file_noop
9107 to_host_file_cmd=$lt_cv_to_host_file_cmd
9108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
9109 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
9115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
9116 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
9117 if ${lt_cv_to_tool_file_cmd+:} false; then :
9118 $as_echo_n "(cached) " >&6
9120 #assume ordinary cross tools, or native build.
9121 lt_cv_to_tool_file_cmd=func_convert_file_noop
9125 *-*-mingw* ) # actually msys
9126 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
9134 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
9135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
9136 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
9142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
9143 $as_echo_n "checking for $LD option to reload object files... " >&6; }
9144 if ${lt_cv_ld_reload_flag+:} false; then :
9145 $as_echo_n "(cached) " >&6
9147 lt_cv_ld_reload_flag='-r'
9149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
9150 $as_echo "$lt_cv_ld_reload_flag" >&6; }
9151 reload_flag=$lt_cv_ld_reload_flag
9152 case $reload_flag in
9154 *) reload_flag=" $reload_flag" ;;
9156 reload_cmds='$LD$reload_flag -o $output$reload_objs'
9158 cygwin* | mingw* | pw32* | cegcc*)
9159 if test yes != "$GCC"; then
9164 if test yes = "$GCC"; then
9165 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
9167 reload_cmds='$LD$reload_flag -o $output$reload_objs'
9180 if test -n "$ac_tool_prefix"; then
9181 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
9182 set dummy ${ac_tool_prefix}objdump; ac_word=$2
9183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9184 $as_echo_n "checking for $ac_word... " >&6; }
9185 if ${ac_cv_prog_OBJDUMP+:} false; then :
9186 $as_echo_n "(cached) " >&6
9188 if test -n "$OBJDUMP"; then
9189 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9191 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9195 test -z "$as_dir" && as_dir=.
9196 for ac_exec_ext in '' $ac_executable_extensions; do
9197 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9198 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
9199 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9208 OBJDUMP=$ac_cv_prog_OBJDUMP
9209 if test -n "$OBJDUMP"; then
9210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9211 $as_echo "$OBJDUMP" >&6; }
9213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9214 $as_echo "no" >&6; }
9219 if test -z "$ac_cv_prog_OBJDUMP"; then
9220 ac_ct_OBJDUMP=$OBJDUMP
9221 # Extract the first word of "objdump", so it can be a program name with args.
9222 set dummy objdump; ac_word=$2
9223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9224 $as_echo_n "checking for $ac_word... " >&6; }
9225 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
9226 $as_echo_n "(cached) " >&6
9228 if test -n "$ac_ct_OBJDUMP"; then
9229 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
9231 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9235 test -z "$as_dir" && as_dir=.
9236 for ac_exec_ext in '' $ac_executable_extensions; do
9237 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9238 ac_cv_prog_ac_ct_OBJDUMP="objdump"
9239 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9248 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
9249 if test -n "$ac_ct_OBJDUMP"; then
9250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
9251 $as_echo "$ac_ct_OBJDUMP" >&6; }
9253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9254 $as_echo "no" >&6; }
9257 if test "x$ac_ct_OBJDUMP" = x; then
9260 case $cross_compiling:$ac_tool_warned in
9262 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9263 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9264 ac_tool_warned=yes ;;
9266 OBJDUMP=$ac_ct_OBJDUMP
9269 OBJDUMP="$ac_cv_prog_OBJDUMP"
9272 test -z "$OBJDUMP" && OBJDUMP=objdump
9282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
9283 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
9284 if ${lt_cv_deplibs_check_method+:} false; then :
9285 $as_echo_n "(cached) " >&6
9287 lt_cv_file_magic_cmd='$MAGIC_CMD'
9288 lt_cv_file_magic_test_file=
9289 lt_cv_deplibs_check_method='unknown'
9290 # Need to set the preceding variable on all platforms that support
9291 # interlibrary dependencies.
9292 # 'none' -- dependencies not supported.
9293 # 'unknown' -- same as none, but documents that we really don't know.
9294 # 'pass_all' -- all dependencies passed with no checks.
9295 # 'test_compile' -- check by making test program.
9296 # 'file_magic [[regex]]' -- check by looking for files in library path
9297 # that responds to the $file_magic_cmd with a given extended regex.
9298 # If you have 'file' or equivalent on your system and you're not sure
9299 # whether 'pass_all' will *always* work, you probably want this one.
9303 lt_cv_deplibs_check_method=pass_all
9307 lt_cv_deplibs_check_method=pass_all
9311 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
9312 lt_cv_file_magic_cmd='/usr/bin/file -L'
9313 lt_cv_file_magic_test_file=/shlib/libc.so
9317 # func_win32_libid is a shell function defined in ltmain.sh
9318 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
9319 lt_cv_file_magic_cmd='func_win32_libid'
9323 # Base MSYS/MinGW do not provide the 'file' command needed by
9324 # func_win32_libid shell function, so use a weaker test based on 'objdump',
9325 # unless we find 'file', for example because we are cross-compiling.
9326 if ( file / ) >/dev/null 2>&1; then
9327 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
9328 lt_cv_file_magic_cmd='func_win32_libid'
9330 # Keep this pattern in sync with the one in func_win32_libid.
9331 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
9332 lt_cv_file_magic_cmd='$OBJDUMP -f'
9337 # use the weaker test based on 'objdump'. See mingw*.
9338 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
9339 lt_cv_file_magic_cmd='$OBJDUMP -f'
9342 darwin* | rhapsody*)
9343 lt_cv_deplibs_check_method=pass_all
9346 freebsd* | dragonfly*)
9347 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
9350 # Not sure whether the presence of OpenBSD here was a mistake.
9351 # Let's accept both of them until this is cleared up.
9352 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
9353 lt_cv_file_magic_cmd=/usr/bin/file
9354 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
9358 lt_cv_deplibs_check_method=pass_all
9363 lt_cv_deplibs_check_method=pass_all
9366 hpux10.20* | hpux11*)
9367 lt_cv_file_magic_cmd=/usr/bin/file
9370 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
9371 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
9374 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]'
9375 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
9378 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
9379 lt_cv_file_magic_test_file=/usr/lib/libc.sl
9385 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
9386 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
9389 irix5* | irix6* | nonstopux*)
9391 *-32|*"-32 ") libmagic=32-bit;;
9392 *-n32|*"-n32 ") libmagic=N32;;
9393 *-64|*"-64 ") libmagic=64-bit;;
9394 *) libmagic=never-match;;
9396 lt_cv_deplibs_check_method=pass_all
9399 # This must be glibc/ELF.
9400 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
9401 lt_cv_deplibs_check_method=pass_all
9404 netbsd* | netbsdelf*-gnu)
9405 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
9406 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
9408 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
9413 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
9414 lt_cv_file_magic_cmd=/usr/bin/file
9415 lt_cv_file_magic_test_file=/usr/lib/libnls.so
9419 lt_cv_deplibs_check_method=pass_all
9423 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
9424 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
9426 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
9430 osf3* | osf4* | osf5*)
9431 lt_cv_deplibs_check_method=pass_all
9435 lt_cv_deplibs_check_method=pass_all
9439 lt_cv_deplibs_check_method=pass_all
9442 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9443 lt_cv_deplibs_check_method=pass_all
9447 case $host_vendor in
9449 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]'
9450 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
9453 lt_cv_deplibs_check_method=pass_all
9456 lt_cv_file_magic_cmd='/bin/file'
9457 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
9460 lt_cv_file_magic_cmd='/bin/file'
9461 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
9462 lt_cv_file_magic_test_file=/lib/libc.so
9465 lt_cv_deplibs_check_method=pass_all
9468 lt_cv_deplibs_check_method=pass_all
9474 lt_cv_deplibs_check_method=pass_all
9477 lt_cv_deplibs_check_method=pass_all
9482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
9483 $as_echo "$lt_cv_deplibs_check_method" >&6; }
9487 if test "$build" = "$host"; then
9490 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
9493 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
9499 file_magic_cmd=$lt_cv_file_magic_cmd
9500 deplibs_check_method=$lt_cv_deplibs_check_method
9501 test -z "$deplibs_check_method" && deplibs_check_method=unknown
9524 if test -n "$ac_tool_prefix"; then
9525 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
9526 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
9527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9528 $as_echo_n "checking for $ac_word... " >&6; }
9529 if ${ac_cv_prog_DLLTOOL+:} false; then :
9530 $as_echo_n "(cached) " >&6
9532 if test -n "$DLLTOOL"; then
9533 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
9535 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9539 test -z "$as_dir" && as_dir=.
9540 for ac_exec_ext in '' $ac_executable_extensions; do
9541 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9542 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
9543 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9552 DLLTOOL=$ac_cv_prog_DLLTOOL
9553 if test -n "$DLLTOOL"; then
9554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
9555 $as_echo "$DLLTOOL" >&6; }
9557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9558 $as_echo "no" >&6; }
9563 if test -z "$ac_cv_prog_DLLTOOL"; then
9564 ac_ct_DLLTOOL=$DLLTOOL
9565 # Extract the first word of "dlltool", so it can be a program name with args.
9566 set dummy dlltool; ac_word=$2
9567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9568 $as_echo_n "checking for $ac_word... " >&6; }
9569 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
9570 $as_echo_n "(cached) " >&6
9572 if test -n "$ac_ct_DLLTOOL"; then
9573 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
9575 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9579 test -z "$as_dir" && as_dir=.
9580 for ac_exec_ext in '' $ac_executable_extensions; do
9581 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9582 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
9583 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9592 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
9593 if test -n "$ac_ct_DLLTOOL"; then
9594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
9595 $as_echo "$ac_ct_DLLTOOL" >&6; }
9597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9598 $as_echo "no" >&6; }
9601 if test "x$ac_ct_DLLTOOL" = x; then
9604 case $cross_compiling:$ac_tool_warned in
9606 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9607 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9608 ac_tool_warned=yes ;;
9610 DLLTOOL=$ac_ct_DLLTOOL
9613 DLLTOOL="$ac_cv_prog_DLLTOOL"
9616 test -z "$DLLTOOL" && DLLTOOL=dlltool
9627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
9628 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
9629 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
9630 $as_echo_n "(cached) " >&6
9632 lt_cv_sharedlib_from_linklib_cmd='unknown'
9635 cygwin* | mingw* | pw32* | cegcc*)
9636 # two different shell functions defined in ltmain.sh;
9637 # decide which one to use based on capabilities of $DLLTOOL
9638 case `$DLLTOOL --help 2>&1` in
9639 *--identify-strict*)
9640 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
9643 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
9648 # fallback: assume linklib IS sharedlib
9649 lt_cv_sharedlib_from_linklib_cmd=$ECHO
9654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
9655 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
9656 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
9657 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
9665 if test -n "$ac_tool_prefix"; then
9668 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
9669 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
9670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9671 $as_echo_n "checking for $ac_word... " >&6; }
9672 if ${ac_cv_prog_AR+:} false; then :
9673 $as_echo_n "(cached) " >&6
9675 if test -n "$AR"; then
9676 ac_cv_prog_AR="$AR" # Let the user override the test.
9678 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9682 test -z "$as_dir" && as_dir=.
9683 for ac_exec_ext in '' $ac_executable_extensions; do
9684 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9685 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
9686 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9696 if test -n "$AR"; then
9697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
9698 $as_echo "$AR" >&6; }
9700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9701 $as_echo "no" >&6; }
9705 test -n "$AR" && break
9708 if test -z "$AR"; then
9712 # Extract the first word of "$ac_prog", so it can be a program name with args.
9713 set dummy $ac_prog; ac_word=$2
9714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9715 $as_echo_n "checking for $ac_word... " >&6; }
9716 if ${ac_cv_prog_ac_ct_AR+:} false; then :
9717 $as_echo_n "(cached) " >&6
9719 if test -n "$ac_ct_AR"; then
9720 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
9722 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9726 test -z "$as_dir" && as_dir=.
9727 for ac_exec_ext in '' $ac_executable_extensions; do
9728 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9729 ac_cv_prog_ac_ct_AR="$ac_prog"
9730 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9739 ac_ct_AR=$ac_cv_prog_ac_ct_AR
9740 if test -n "$ac_ct_AR"; then
9741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
9742 $as_echo "$ac_ct_AR" >&6; }
9744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9745 $as_echo "no" >&6; }
9749 test -n "$ac_ct_AR" && break
9752 if test "x$ac_ct_AR" = x; then
9755 case $cross_compiling:$ac_tool_warned in
9757 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9758 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9759 ac_tool_warned=yes ;;
9778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
9779 $as_echo_n "checking for archiver @FILE support... " >&6; }
9780 if ${lt_cv_ar_at_file+:} false; then :
9781 $as_echo_n "(cached) " >&6
9784 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9785 /* end confdefs.h. */
9795 if ac_fn_c_try_compile "$LINENO"; then :
9796 echo conftest.$ac_objext > conftest.lst
9797 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
9798 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
9799 (eval $lt_ar_try) 2>&5
9801 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9802 test $ac_status = 0; }
9803 if test 0 -eq "$ac_status"; then
9804 # Ensure the archiver fails upon bogus file names.
9805 rm -f conftest.$ac_objext libconftest.a
9806 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
9807 (eval $lt_ar_try) 2>&5
9809 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9810 test $ac_status = 0; }
9811 if test 0 -ne "$ac_status"; then
9815 rm -f conftest.* libconftest.a
9818 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
9822 $as_echo "$lt_cv_ar_at_file" >&6; }
9824 if test no = "$lt_cv_ar_at_file"; then
9827 archiver_list_spec=$lt_cv_ar_at_file
9836 if test -n "$ac_tool_prefix"; then
9837 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
9838 set dummy ${ac_tool_prefix}strip; ac_word=$2
9839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9840 $as_echo_n "checking for $ac_word... " >&6; }
9841 if ${ac_cv_prog_STRIP+:} false; then :
9842 $as_echo_n "(cached) " >&6
9844 if test -n "$STRIP"; then
9845 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9847 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9851 test -z "$as_dir" && as_dir=.
9852 for ac_exec_ext in '' $ac_executable_extensions; do
9853 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9854 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
9855 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9864 STRIP=$ac_cv_prog_STRIP
9865 if test -n "$STRIP"; then
9866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
9867 $as_echo "$STRIP" >&6; }
9869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9870 $as_echo "no" >&6; }
9875 if test -z "$ac_cv_prog_STRIP"; then
9877 # Extract the first word of "strip", so it can be a program name with args.
9878 set dummy strip; ac_word=$2
9879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9880 $as_echo_n "checking for $ac_word... " >&6; }
9881 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
9882 $as_echo_n "(cached) " >&6
9884 if test -n "$ac_ct_STRIP"; then
9885 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
9887 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9891 test -z "$as_dir" && as_dir=.
9892 for ac_exec_ext in '' $ac_executable_extensions; do
9893 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9894 ac_cv_prog_ac_ct_STRIP="strip"
9895 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9904 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
9905 if test -n "$ac_ct_STRIP"; then
9906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
9907 $as_echo "$ac_ct_STRIP" >&6; }
9909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9910 $as_echo "no" >&6; }
9913 if test "x$ac_ct_STRIP" = x; then
9916 case $cross_compiling:$ac_tool_warned in
9918 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9919 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9920 ac_tool_warned=yes ;;
9925 STRIP="$ac_cv_prog_STRIP"
9928 test -z "$STRIP" && STRIP=:
9935 if test -n "$ac_tool_prefix"; then
9936 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
9937 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
9938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9939 $as_echo_n "checking for $ac_word... " >&6; }
9940 if ${ac_cv_prog_RANLIB+:} false; then :
9941 $as_echo_n "(cached) " >&6
9943 if test -n "$RANLIB"; then
9944 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
9946 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9950 test -z "$as_dir" && as_dir=.
9951 for ac_exec_ext in '' $ac_executable_extensions; do
9952 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9953 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
9954 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9963 RANLIB=$ac_cv_prog_RANLIB
9964 if test -n "$RANLIB"; then
9965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
9966 $as_echo "$RANLIB" >&6; }
9968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9969 $as_echo "no" >&6; }
9974 if test -z "$ac_cv_prog_RANLIB"; then
9975 ac_ct_RANLIB=$RANLIB
9976 # Extract the first word of "ranlib", so it can be a program name with args.
9977 set dummy ranlib; ac_word=$2
9978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9979 $as_echo_n "checking for $ac_word... " >&6; }
9980 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
9981 $as_echo_n "(cached) " >&6
9983 if test -n "$ac_ct_RANLIB"; then
9984 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
9986 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9990 test -z "$as_dir" && as_dir=.
9991 for ac_exec_ext in '' $ac_executable_extensions; do
9992 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9993 ac_cv_prog_ac_ct_RANLIB="ranlib"
9994 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10003 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
10004 if test -n "$ac_ct_RANLIB"; then
10005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
10006 $as_echo "$ac_ct_RANLIB" >&6; }
10008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10009 $as_echo "no" >&6; }
10012 if test "x$ac_ct_RANLIB" = x; then
10015 case $cross_compiling:$ac_tool_warned in
10017 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10018 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10019 ac_tool_warned=yes ;;
10021 RANLIB=$ac_ct_RANLIB
10024 RANLIB="$ac_cv_prog_RANLIB"
10027 test -z "$RANLIB" && RANLIB=:
10034 # Determine commands to create old-style static archives.
10035 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
10036 old_postinstall_cmds='chmod 644 $oldlib'
10037 old_postuninstall_cmds=
10039 if test -n "$RANLIB"; then
10041 bitrig* | openbsd*)
10042 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
10045 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
10048 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
10053 lock_old_archive_extraction=yes ;;
10055 lock_old_archive_extraction=no ;;
10096 # If no C compiler was specified, use CC.
10099 # If no C compiler flags were specified, use CFLAGS.
10100 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10102 # Allow CC to be a program name with arguments.
10106 # Check for command to grab the raw symbol name followed by C symbol from nm.
10107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
10108 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
10109 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
10110 $as_echo_n "(cached) " >&6
10113 # These are sane defaults that work on at least a few old systems.
10114 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
10116 # Character class describing NM global symbol codes.
10117 symcode='[BCDEGRST]'
10119 # Regexp to match symbols that can be accessed directly from C.
10120 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
10122 # Define system-specific variables.
10127 cygwin* | mingw* | pw32* | cegcc*)
10128 symcode='[ABCDGISTW]'
10131 if test ia64 = "$host_cpu"; then
10132 symcode='[ABCDEGRST]'
10135 irix* | nonstopux*)
10136 symcode='[BCDEGRST]'
10139 symcode='[BCDEGQRST]'
10150 sysv5* | sco5v6* | unixware* | OpenUNIX*)
10158 # If we're using GNU nm, then use its standard symbol codes.
10159 case `$NM -V 2>&1` in
10160 *GNU* | *'with BFD'*)
10161 symcode='[ABCDGIRSTW]' ;;
10164 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
10165 # Gets list of data symbols to import.
10166 lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
10167 # Adjust the below global symbol transforms to fixup imported variables.
10168 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
10169 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
10170 lt_c_name_lib_hook="\
10171 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
10172 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
10174 # Disable hooks by default.
10175 lt_cv_sys_global_symbol_to_import=
10178 lt_c_name_lib_hook=
10181 # Transform an extracted symbol line into a proper C declaration.
10182 # Some systems (esp. on ia64) link data and code symbols differently,
10183 # so use this general approach.
10184 lt_cv_sys_global_symbol_to_cdecl="sed -n"\
10186 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
10187 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
10189 # Transform an extracted symbol line into symbol name and symbol address
10190 lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
10192 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
10193 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
10195 # Transform an extracted symbol line into symbol name with lib prefix and
10197 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
10198 $lt_c_name_lib_hook\
10199 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
10200 " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
10201 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
10203 # Handle CRLF in mingw tool chain
10207 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
10211 # Try without a prefix underscore, then with it.
10212 for ac_symprfx in "" "_"; do
10214 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
10215 symxfrm="\\1 $ac_symprfx\\2 \\2"
10217 # Write the raw and C identifiers.
10218 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
10219 # Fake it for dumpbin and say T for any non-static function,
10220 # D for any global variable and I for any imported variable.
10221 # Also find C++ and __fastcall symbols from MSVC++,
10222 # which start with @ or ?.
10223 lt_cv_sys_global_symbol_pipe="$AWK '"\
10224 " {last_section=section; section=\$ 3};"\
10225 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
10226 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
10227 " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
10228 " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
10229 " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
10230 " \$ 0!~/External *\|/{next};"\
10231 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
10232 " {if(hide[section]) next};"\
10233 " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
10234 " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
10235 " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
10236 " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
10237 " ' prfx=^$ac_symprfx"
10239 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
10241 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
10243 # Check to see that the pipe works correctly.
10247 cat > conftest.$ac_ext <<_LT_EOF
10252 void nm_test_func(void);
10253 void nm_test_func(void){}
10257 int main(){nm_test_var='a';nm_test_func();return(0);}
10260 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10261 (eval $ac_compile) 2>&5
10263 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10264 test $ac_status = 0; }; then
10265 # Now try to grab the symbols.
10267 $ECHO "$as_me:$LINENO: $NM conftest.$ac_objext | $lt_cv_sys_global_symbol_pipe > $nlist" >&5
10268 if eval "$NM" conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist 2>&5 && test -s "$nlist"; then
10269 # Try sorting and uniquifying the output.
10270 if sort "$nlist" | uniq > "$nlist"T; then
10271 mv -f "$nlist"T "$nlist"
10276 # Make sure that we snagged all the symbols we need.
10277 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
10278 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
10279 cat <<_LT_EOF > conftest.$ac_ext
10280 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
10281 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
10282 /* DATA imports from DLLs on WIN32 can't be const, because runtime
10283 relocations are performed -- see ld's documentation on pseudo-relocs. */
10284 # define LT_DLSYM_CONST
10285 #elif defined __osf__
10286 /* This system does not cope well with relocations in const data. */
10287 # define LT_DLSYM_CONST
10289 # define LT_DLSYM_CONST const
10297 # Now generate the symbol file.
10298 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
10300 cat <<_LT_EOF >> conftest.$ac_ext
10302 /* The mapping between symbol names and symbols. */
10303 LT_DLSYM_CONST struct {
10307 lt__PROGRAM__LTX_preloaded_symbols[] =
10309 { "@PROGRAM@", (void *) 0 },
10311 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
10312 cat <<\_LT_EOF >> conftest.$ac_ext
10316 /* This works around a problem in FreeBSD linker */
10317 #ifdef FREEBSD_WORKAROUND
10318 static const void *lt_preloaded_setup() {
10319 return lt__PROGRAM__LTX_preloaded_symbols;
10327 # Now try linking the two files.
10328 mv conftest.$ac_objext conftstm.$ac_objext
10329 lt_globsym_save_LIBS=$LIBS
10330 lt_globsym_save_CFLAGS=$CFLAGS
10331 LIBS=conftstm.$ac_objext
10332 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
10333 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10334 (eval $ac_link) 2>&5
10336 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10337 test $ac_status = 0; } && test -s conftest$ac_exeext; then
10340 LIBS=$lt_globsym_save_LIBS
10341 CFLAGS=$lt_globsym_save_CFLAGS
10343 echo "cannot find nm_test_func in $nlist" >&5
10346 echo "cannot find nm_test_var in $nlist" >&5
10349 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
10352 echo "$progname: failed program was:" >&5
10353 cat conftest.$ac_ext >&5
10355 rm -rf conftest* conftst*
10357 # Do not use the global_symbol_pipe unless it works.
10358 if test yes = "$pipe_works"; then
10361 lt_cv_sys_global_symbol_pipe=
10367 if test -z "$lt_cv_sys_global_symbol_pipe"; then
10368 lt_cv_sys_global_symbol_to_cdecl=
10370 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
10371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
10372 $as_echo "failed" >&6; }
10374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
10375 $as_echo "ok" >&6; }
10378 # Response file support.
10379 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
10380 nm_file_list_spec='@'
10381 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
10382 nm_file_list_spec='@'
10421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
10422 $as_echo_n "checking for sysroot... " >&6; }
10424 # Check whether --with-sysroot was given.
10425 if test "${with_sysroot+set}" = set; then :
10426 withval=$with_sysroot;
10433 case $with_sysroot in #(
10435 if test yes = "$GCC"; then
10436 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
10440 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
10445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
10446 $as_echo "$with_sysroot" >&6; }
10447 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
10451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
10452 $as_echo "${lt_sysroot:-no}" >&6; }
10458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
10459 $as_echo_n "checking for a working dd... " >&6; }
10460 if ${ac_cv_path_lt_DD+:} false; then :
10461 $as_echo_n "(cached) " >&6
10463 printf 0123456789abcdef0123456789abcdef >conftest.i
10464 cat conftest.i conftest.i >conftest2.i
10466 if test -z "$lt_DD"; then
10467 ac_path_lt_DD_found=false
10468 # Loop through the user's path and test for each of PROGNAME-LIST
10469 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10470 for as_dir in $PATH
10473 test -z "$as_dir" && as_dir=.
10474 for ac_prog in dd; do
10475 for ac_exec_ext in '' $ac_executable_extensions; do
10476 ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
10477 as_fn_executable_p "$ac_path_lt_DD" || continue
10478 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
10479 cmp -s conftest.i conftest.out \
10480 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
10482 $ac_path_lt_DD_found && break 3
10487 if test -z "$ac_cv_path_lt_DD"; then
10491 ac_cv_path_lt_DD=$lt_DD
10494 rm -f conftest.i conftest2.i conftest.out
10496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
10497 $as_echo "$ac_cv_path_lt_DD" >&6; }
10500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
10501 $as_echo_n "checking how to truncate binary pipes... " >&6; }
10502 if ${lt_cv_truncate_bin+:} false; then :
10503 $as_echo_n "(cached) " >&6
10505 printf 0123456789abcdef0123456789abcdef >conftest.i
10506 cat conftest.i conftest.i >conftest2.i
10507 lt_cv_truncate_bin=
10508 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
10509 cmp -s conftest.i conftest.out \
10510 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
10512 rm -f conftest.i conftest2.i conftest.out
10513 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
10515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
10516 $as_echo "$lt_cv_truncate_bin" >&6; }
10524 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
10525 func_cc_basename ()
10527 for cc_temp in $*""; do
10529 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
10530 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
10535 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
10538 # Check whether --enable-libtool-lock was given.
10539 if test "${enable_libtool_lock+set}" = set; then :
10540 enableval=$enable_libtool_lock;
10543 test no = "$enable_libtool_lock" || enable_libtool_lock=yes
10545 # Some flags need to be propagated to the compiler or linker for good
10549 # Find out what ABI is being produced by ac_compile, and set mode
10550 # options accordingly.
10551 echo 'int i;' > conftest.$ac_ext
10552 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10553 (eval $ac_compile) 2>&5
10555 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10556 test $ac_status = 0; }; then
10557 case `/usr/bin/file conftest.$ac_objext` in
10569 # Find out what ABI is being produced by ac_compile, and set linker
10570 # options accordingly.
10571 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
10572 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10573 (eval $ac_compile) 2>&5
10575 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10576 test $ac_status = 0; }; then
10577 if test yes = "$lt_cv_prog_gnu_ld"; then
10578 case `/usr/bin/file conftest.$ac_objext` in
10580 LD="${LD-ld} -melf32bsmip"
10583 LD="${LD-ld} -melf32bmipn32"
10586 LD="${LD-ld} -melf64bmip"
10590 case `/usr/bin/file conftest.$ac_objext` in
10607 # Find out what ABI is being produced by ac_compile, and set linker
10608 # options accordingly.
10609 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
10610 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10611 (eval $ac_compile) 2>&5
10613 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10614 test $ac_status = 0; }; then
10616 case `/usr/bin/file conftest.$ac_objext` in
10624 case `/usr/bin/file conftest.$ac_objext` in
10626 emul="${emul}btsmip"
10629 emul="${emul}ltsmip"
10632 case `/usr/bin/file conftest.$ac_objext` in
10637 LD="${LD-ld} -m $emul"
10642 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
10643 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
10644 # Find out what ABI is being produced by ac_compile, and set linker
10645 # options accordingly. Note that the listed cases only cover the
10646 # situations where additional linker options are needed (such as when
10647 # doing 32-bit compilation for a host where ld defaults to 64-bit, or
10648 # vice versa); the common cases where no linker options are needed do
10649 # not appear in the list.
10650 echo 'int i;' > conftest.$ac_ext
10651 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10652 (eval $ac_compile) 2>&5
10654 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10655 test $ac_status = 0; }; then
10656 case `/usr/bin/file conftest.o` in
10659 x86_64-*kfreebsd*-gnu)
10660 LD="${LD-ld} -m elf_i386_fbsd"
10663 case `/usr/bin/file conftest.o` in
10665 LD="${LD-ld} -m elf32_x86_64"
10668 LD="${LD-ld} -m elf_i386"
10672 powerpc64le-*linux*)
10673 LD="${LD-ld} -m elf32lppclinux"
10676 LD="${LD-ld} -m elf32ppclinux"
10679 LD="${LD-ld} -m elf_s390"
10682 LD="${LD-ld} -m elf32_sparc"
10688 x86_64-*kfreebsd*-gnu)
10689 LD="${LD-ld} -m elf_x86_64_fbsd"
10692 LD="${LD-ld} -m elf_x86_64"
10695 LD="${LD-ld} -m elf64lppc"
10698 LD="${LD-ld} -m elf64ppc"
10700 s390*-*linux*|s390*-*tpf*)
10701 LD="${LD-ld} -m elf64_s390"
10704 LD="${LD-ld} -m elf64_sparc"
10714 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
10715 SAVE_CFLAGS=$CFLAGS
10716 CFLAGS="$CFLAGS -belf"
10717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
10718 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
10719 if ${lt_cv_cc_needs_belf+:} false; then :
10720 $as_echo_n "(cached) " >&6
10723 ac_cpp='$CPP $CPPFLAGS'
10724 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10725 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10726 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10728 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10729 /* end confdefs.h. */
10739 if ac_fn_c_try_link "$LINENO"; then :
10740 lt_cv_cc_needs_belf=yes
10742 lt_cv_cc_needs_belf=no
10744 rm -f core conftest.err conftest.$ac_objext \
10745 conftest$ac_exeext conftest.$ac_ext
10747 ac_cpp='$CPP $CPPFLAGS'
10748 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10749 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10750 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
10754 $as_echo "$lt_cv_cc_needs_belf" >&6; }
10755 if test yes != "$lt_cv_cc_needs_belf"; then
10756 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
10757 CFLAGS=$SAVE_CFLAGS
10761 # Find out what ABI is being produced by ac_compile, and set linker
10762 # options accordingly.
10763 echo 'int i;' > conftest.$ac_ext
10764 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10765 (eval $ac_compile) 2>&5
10767 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10768 test $ac_status = 0; }; then
10769 case `/usr/bin/file conftest.o` in
10771 case $lt_cv_prog_gnu_ld in
10774 i?86-*-solaris*|x86_64-*-solaris*)
10775 LD="${LD-ld} -m elf_x86_64"
10778 LD="${LD-ld} -m elf64_sparc"
10781 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
10782 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
10787 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
10799 need_locks=$enable_libtool_lock
10801 if test -n "$ac_tool_prefix"; then
10802 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
10803 set dummy ${ac_tool_prefix}mt; ac_word=$2
10804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10805 $as_echo_n "checking for $ac_word... " >&6; }
10806 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
10807 $as_echo_n "(cached) " >&6
10809 if test -n "$MANIFEST_TOOL"; then
10810 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
10812 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10813 for as_dir in $PATH
10816 test -z "$as_dir" && as_dir=.
10817 for ac_exec_ext in '' $ac_executable_extensions; do
10818 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10819 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
10820 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10829 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
10830 if test -n "$MANIFEST_TOOL"; then
10831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
10832 $as_echo "$MANIFEST_TOOL" >&6; }
10834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10835 $as_echo "no" >&6; }
10840 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
10841 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
10842 # Extract the first word of "mt", so it can be a program name with args.
10843 set dummy mt; ac_word=$2
10844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10845 $as_echo_n "checking for $ac_word... " >&6; }
10846 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
10847 $as_echo_n "(cached) " >&6
10849 if test -n "$ac_ct_MANIFEST_TOOL"; then
10850 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
10852 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10853 for as_dir in $PATH
10856 test -z "$as_dir" && as_dir=.
10857 for ac_exec_ext in '' $ac_executable_extensions; do
10858 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10859 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
10860 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10869 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
10870 if test -n "$ac_ct_MANIFEST_TOOL"; then
10871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
10872 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
10874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10875 $as_echo "no" >&6; }
10878 if test "x$ac_ct_MANIFEST_TOOL" = x; then
10881 case $cross_compiling:$ac_tool_warned in
10883 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10884 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10885 ac_tool_warned=yes ;;
10887 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
10890 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
10893 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
10894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
10895 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
10896 if ${lt_cv_path_mainfest_tool+:} false; then :
10897 $as_echo_n "(cached) " >&6
10899 lt_cv_path_mainfest_tool=no
10900 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
10901 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
10902 cat conftest.err >&5
10903 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
10904 lt_cv_path_mainfest_tool=yes
10908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
10909 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
10910 if test yes != "$lt_cv_path_mainfest_tool"; then
10920 rhapsody* | darwin*)
10921 if test -n "$ac_tool_prefix"; then
10922 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
10923 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
10924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10925 $as_echo_n "checking for $ac_word... " >&6; }
10926 if ${ac_cv_prog_DSYMUTIL+:} false; then :
10927 $as_echo_n "(cached) " >&6
10929 if test -n "$DSYMUTIL"; then
10930 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
10932 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10933 for as_dir in $PATH
10936 test -z "$as_dir" && as_dir=.
10937 for ac_exec_ext in '' $ac_executable_extensions; do
10938 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10939 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
10940 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10949 DSYMUTIL=$ac_cv_prog_DSYMUTIL
10950 if test -n "$DSYMUTIL"; then
10951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
10952 $as_echo "$DSYMUTIL" >&6; }
10954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10955 $as_echo "no" >&6; }
10960 if test -z "$ac_cv_prog_DSYMUTIL"; then
10961 ac_ct_DSYMUTIL=$DSYMUTIL
10962 # Extract the first word of "dsymutil", so it can be a program name with args.
10963 set dummy dsymutil; ac_word=$2
10964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10965 $as_echo_n "checking for $ac_word... " >&6; }
10966 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
10967 $as_echo_n "(cached) " >&6
10969 if test -n "$ac_ct_DSYMUTIL"; then
10970 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
10972 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10973 for as_dir in $PATH
10976 test -z "$as_dir" && as_dir=.
10977 for ac_exec_ext in '' $ac_executable_extensions; do
10978 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10979 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
10980 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10989 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
10990 if test -n "$ac_ct_DSYMUTIL"; then
10991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
10992 $as_echo "$ac_ct_DSYMUTIL" >&6; }
10994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10995 $as_echo "no" >&6; }
10998 if test "x$ac_ct_DSYMUTIL" = x; then
11001 case $cross_compiling:$ac_tool_warned in
11003 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11004 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11005 ac_tool_warned=yes ;;
11007 DSYMUTIL=$ac_ct_DSYMUTIL
11010 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
11013 if test -n "$ac_tool_prefix"; then
11014 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
11015 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
11016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11017 $as_echo_n "checking for $ac_word... " >&6; }
11018 if ${ac_cv_prog_NMEDIT+:} false; then :
11019 $as_echo_n "(cached) " >&6
11021 if test -n "$NMEDIT"; then
11022 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
11024 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11025 for as_dir in $PATH
11028 test -z "$as_dir" && as_dir=.
11029 for ac_exec_ext in '' $ac_executable_extensions; do
11030 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11031 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
11032 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11041 NMEDIT=$ac_cv_prog_NMEDIT
11042 if test -n "$NMEDIT"; then
11043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
11044 $as_echo "$NMEDIT" >&6; }
11046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11047 $as_echo "no" >&6; }
11052 if test -z "$ac_cv_prog_NMEDIT"; then
11053 ac_ct_NMEDIT=$NMEDIT
11054 # Extract the first word of "nmedit", so it can be a program name with args.
11055 set dummy nmedit; ac_word=$2
11056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11057 $as_echo_n "checking for $ac_word... " >&6; }
11058 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
11059 $as_echo_n "(cached) " >&6
11061 if test -n "$ac_ct_NMEDIT"; then
11062 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
11064 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11065 for as_dir in $PATH
11068 test -z "$as_dir" && as_dir=.
11069 for ac_exec_ext in '' $ac_executable_extensions; do
11070 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11071 ac_cv_prog_ac_ct_NMEDIT="nmedit"
11072 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11081 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
11082 if test -n "$ac_ct_NMEDIT"; then
11083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
11084 $as_echo "$ac_ct_NMEDIT" >&6; }
11086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11087 $as_echo "no" >&6; }
11090 if test "x$ac_ct_NMEDIT" = x; then
11093 case $cross_compiling:$ac_tool_warned in
11095 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11096 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11097 ac_tool_warned=yes ;;
11099 NMEDIT=$ac_ct_NMEDIT
11102 NMEDIT="$ac_cv_prog_NMEDIT"
11105 if test -n "$ac_tool_prefix"; then
11106 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
11107 set dummy ${ac_tool_prefix}lipo; ac_word=$2
11108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11109 $as_echo_n "checking for $ac_word... " >&6; }
11110 if ${ac_cv_prog_LIPO+:} false; then :
11111 $as_echo_n "(cached) " >&6
11113 if test -n "$LIPO"; then
11114 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
11116 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11117 for as_dir in $PATH
11120 test -z "$as_dir" && as_dir=.
11121 for ac_exec_ext in '' $ac_executable_extensions; do
11122 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11123 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
11124 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11133 LIPO=$ac_cv_prog_LIPO
11134 if test -n "$LIPO"; then
11135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
11136 $as_echo "$LIPO" >&6; }
11138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11139 $as_echo "no" >&6; }
11144 if test -z "$ac_cv_prog_LIPO"; then
11146 # Extract the first word of "lipo", so it can be a program name with args.
11147 set dummy lipo; ac_word=$2
11148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11149 $as_echo_n "checking for $ac_word... " >&6; }
11150 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
11151 $as_echo_n "(cached) " >&6
11153 if test -n "$ac_ct_LIPO"; then
11154 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
11156 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11157 for as_dir in $PATH
11160 test -z "$as_dir" && as_dir=.
11161 for ac_exec_ext in '' $ac_executable_extensions; do
11162 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11163 ac_cv_prog_ac_ct_LIPO="lipo"
11164 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11173 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
11174 if test -n "$ac_ct_LIPO"; then
11175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
11176 $as_echo "$ac_ct_LIPO" >&6; }
11178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11179 $as_echo "no" >&6; }
11182 if test "x$ac_ct_LIPO" = x; then
11185 case $cross_compiling:$ac_tool_warned in
11187 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11188 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11189 ac_tool_warned=yes ;;
11194 LIPO="$ac_cv_prog_LIPO"
11197 if test -n "$ac_tool_prefix"; then
11198 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
11199 set dummy ${ac_tool_prefix}otool; ac_word=$2
11200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11201 $as_echo_n "checking for $ac_word... " >&6; }
11202 if ${ac_cv_prog_OTOOL+:} false; then :
11203 $as_echo_n "(cached) " >&6
11205 if test -n "$OTOOL"; then
11206 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
11208 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11209 for as_dir in $PATH
11212 test -z "$as_dir" && as_dir=.
11213 for ac_exec_ext in '' $ac_executable_extensions; do
11214 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11215 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
11216 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11225 OTOOL=$ac_cv_prog_OTOOL
11226 if test -n "$OTOOL"; then
11227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
11228 $as_echo "$OTOOL" >&6; }
11230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11231 $as_echo "no" >&6; }
11236 if test -z "$ac_cv_prog_OTOOL"; then
11238 # Extract the first word of "otool", so it can be a program name with args.
11239 set dummy otool; ac_word=$2
11240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11241 $as_echo_n "checking for $ac_word... " >&6; }
11242 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
11243 $as_echo_n "(cached) " >&6
11245 if test -n "$ac_ct_OTOOL"; then
11246 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
11248 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11249 for as_dir in $PATH
11252 test -z "$as_dir" && as_dir=.
11253 for ac_exec_ext in '' $ac_executable_extensions; do
11254 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11255 ac_cv_prog_ac_ct_OTOOL="otool"
11256 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11265 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
11266 if test -n "$ac_ct_OTOOL"; then
11267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
11268 $as_echo "$ac_ct_OTOOL" >&6; }
11270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11271 $as_echo "no" >&6; }
11274 if test "x$ac_ct_OTOOL" = x; then
11277 case $cross_compiling:$ac_tool_warned in
11279 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11280 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11281 ac_tool_warned=yes ;;
11286 OTOOL="$ac_cv_prog_OTOOL"
11289 if test -n "$ac_tool_prefix"; then
11290 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
11291 set dummy ${ac_tool_prefix}otool64; ac_word=$2
11292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11293 $as_echo_n "checking for $ac_word... " >&6; }
11294 if ${ac_cv_prog_OTOOL64+:} false; then :
11295 $as_echo_n "(cached) " >&6
11297 if test -n "$OTOOL64"; then
11298 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
11300 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11301 for as_dir in $PATH
11304 test -z "$as_dir" && as_dir=.
11305 for ac_exec_ext in '' $ac_executable_extensions; do
11306 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11307 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
11308 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11317 OTOOL64=$ac_cv_prog_OTOOL64
11318 if test -n "$OTOOL64"; then
11319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
11320 $as_echo "$OTOOL64" >&6; }
11322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11323 $as_echo "no" >&6; }
11328 if test -z "$ac_cv_prog_OTOOL64"; then
11329 ac_ct_OTOOL64=$OTOOL64
11330 # Extract the first word of "otool64", so it can be a program name with args.
11331 set dummy otool64; ac_word=$2
11332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11333 $as_echo_n "checking for $ac_word... " >&6; }
11334 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
11335 $as_echo_n "(cached) " >&6
11337 if test -n "$ac_ct_OTOOL64"; then
11338 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
11340 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11341 for as_dir in $PATH
11344 test -z "$as_dir" && as_dir=.
11345 for ac_exec_ext in '' $ac_executable_extensions; do
11346 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11347 ac_cv_prog_ac_ct_OTOOL64="otool64"
11348 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11357 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
11358 if test -n "$ac_ct_OTOOL64"; then
11359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
11360 $as_echo "$ac_ct_OTOOL64" >&6; }
11362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11363 $as_echo "no" >&6; }
11366 if test "x$ac_ct_OTOOL64" = x; then
11369 case $cross_compiling:$ac_tool_warned in
11371 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11372 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11373 ac_tool_warned=yes ;;
11375 OTOOL64=$ac_ct_OTOOL64
11378 OTOOL64="$ac_cv_prog_OTOOL64"
11407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
11408 $as_echo_n "checking for -single_module linker flag... " >&6; }
11409 if ${lt_cv_apple_cc_single_mod+:} false; then :
11410 $as_echo_n "(cached) " >&6
11412 lt_cv_apple_cc_single_mod=no
11413 if test -z "$LT_MULTI_MODULE"; then
11414 # By default we will add the -single_module flag. You can override
11415 # by either setting the environment variable LT_MULTI_MODULE
11416 # non-empty at configure time, or by adding -multi_module to the
11418 rm -rf libconftest.dylib*
11419 echo "int foo(void){return 1;}" > conftest.c
11420 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
11421 -dynamiclib -Wl,-single_module conftest.c" >&5
11422 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
11423 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
11425 # If there is a non-empty error log, and "single_module"
11426 # appears in it, assume the flag caused a linker warning
11427 if test -s conftest.err && $GREP single_module conftest.err; then
11428 cat conftest.err >&5
11429 # Otherwise, if the output was created with a 0 exit code from
11430 # the compiler, it worked.
11431 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
11432 lt_cv_apple_cc_single_mod=yes
11434 cat conftest.err >&5
11436 rm -rf libconftest.dylib*
11440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
11441 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
11443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
11444 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
11445 if ${lt_cv_ld_exported_symbols_list+:} false; then :
11446 $as_echo_n "(cached) " >&6
11448 lt_cv_ld_exported_symbols_list=no
11449 save_LDFLAGS=$LDFLAGS
11450 echo "_main" > conftest.sym
11451 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
11452 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11453 /* end confdefs.h. */
11463 if ac_fn_c_try_link "$LINENO"; then :
11464 lt_cv_ld_exported_symbols_list=yes
11466 lt_cv_ld_exported_symbols_list=no
11468 rm -f core conftest.err conftest.$ac_objext \
11469 conftest$ac_exeext conftest.$ac_ext
11470 LDFLAGS=$save_LDFLAGS
11473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
11474 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
11476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
11477 $as_echo_n "checking for -force_load linker flag... " >&6; }
11478 if ${lt_cv_ld_force_load+:} false; then :
11479 $as_echo_n "(cached) " >&6
11481 lt_cv_ld_force_load=no
11482 cat > conftest.c << _LT_EOF
11483 int forced_loaded() { return 2;}
11485 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
11486 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
11487 echo "$AR cru libconftest.a conftest.o" >&5
11488 $AR cru libconftest.a conftest.o 2>&5
11489 echo "$RANLIB libconftest.a" >&5
11490 $RANLIB libconftest.a 2>&5
11491 cat > conftest.c << _LT_EOF
11492 int main() { return 0;}
11494 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
11495 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
11497 if test -s conftest.err && $GREP force_load conftest.err; then
11498 cat conftest.err >&5
11499 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
11500 lt_cv_ld_force_load=yes
11502 cat conftest.err >&5
11504 rm -f conftest.err libconftest.a conftest conftest.c
11505 rm -rf conftest.dSYM
11508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
11509 $as_echo "$lt_cv_ld_force_load" >&6; }
11511 rhapsody* | darwin1.[012])
11512 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
11514 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
11515 darwin*) # darwin 5.x on
11516 # if running on 10.5 or later, the deployment target defaults
11517 # to the OS version, if on x86, and 10.4, the deployment
11518 # target defaults to 10.4. Don't you love it?
11519 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
11520 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
11521 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
11523 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
11525 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
11529 if test yes = "$lt_cv_apple_cc_single_mod"; then
11530 _lt_dar_single_mod='$single_module'
11532 if test yes = "$lt_cv_ld_exported_symbols_list"; then
11533 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
11535 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
11537 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
11538 _lt_dsymutil='~$DSYMUTIL $lib || :'
11545 # func_munge_path_list VARIABLE PATH
11546 # -----------------------------------
11547 # VARIABLE is name of variable containing _space_ separated list of
11548 # directories to be munged by the contents of PATH, which is string
11551 # string "DIR[ DIR]" will be prepended to VARIABLE
11553 # string "DIR[ DIR]" will be appended to VARIABLE
11554 # "DIRP[:DIRP]::[DIRA:]DIRA"
11555 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
11556 # "DIRA[ DIRA]" will be appended to VARIABLE
11558 # VARIABLE will be replaced by "DIR[ DIR]"
11559 func_munge_path_list ()
11565 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
11568 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
11571 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
11572 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
11575 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
11580 for ac_header in dlfcn.h
11582 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
11584 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
11585 cat >>confdefs.h <<_ACEOF
11586 #define HAVE_DLFCN_H 1
11598 # Check whether --enable-static was given.
11599 if test "${enable_static+set}" = set; then :
11600 enableval=$enable_static; p=${PACKAGE-default}
11602 yes) enable_static=yes ;;
11603 no) enable_static=no ;;
11606 # Look at the argument we got. We use all the common list separators.
11607 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
11608 for pkg in $enableval; do
11610 if test "X$pkg" = "X$p"; then
11633 enable_win32_dll=no
11636 # Check whether --enable-shared was given.
11637 if test "${enable_shared+set}" = set; then :
11638 enableval=$enable_shared; p=${PACKAGE-default}
11640 yes) enable_shared=yes ;;
11641 no) enable_shared=no ;;
11644 # Look at the argument we got. We use all the common list separators.
11645 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
11646 for pkg in $enableval; do
11648 if test "X$pkg" = "X$p"; then
11669 # Check whether --with-pic was given.
11670 if test "${with_pic+set}" = set; then :
11671 withval=$with_pic; lt_p=${PACKAGE-default}
11673 yes|no) pic_mode=$withval ;;
11676 # Look at the argument we got. We use all the common list separators.
11677 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
11678 for lt_pkg in $withval; do
11680 if test "X$lt_pkg" = "X$lt_p"; then
11698 # Check whether --enable-fast-install was given.
11699 if test "${enable_fast_install+set}" = set; then :
11700 enableval=$enable_fast_install; p=${PACKAGE-default}
11702 yes) enable_fast_install=yes ;;
11703 no) enable_fast_install=no ;;
11705 enable_fast_install=no
11706 # Look at the argument we got. We use all the common list separators.
11707 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
11708 for pkg in $enableval; do
11710 if test "X$pkg" = "X$p"; then
11711 enable_fast_install=yes
11718 enable_fast_install=yes
11728 shared_archive_member_spec=
11729 case $host,$enable_shared in
11730 power*-*-aix[5-9]*,yes)
11731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
11732 $as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
11734 # Check whether --with-aix-soname was given.
11735 if test "${with_aix_soname+set}" = set; then :
11736 withval=$with_aix_soname; case $withval in
11740 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
11743 lt_cv_with_aix_soname=$with_aix_soname
11745 if ${lt_cv_with_aix_soname+:} false; then :
11746 $as_echo_n "(cached) " >&6
11748 lt_cv_with_aix_soname=aix
11751 with_aix_soname=$lt_cv_with_aix_soname
11754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
11755 $as_echo "$with_aix_soname" >&6; }
11756 if test aix != "$with_aix_soname"; then
11757 # For the AIX way of multilib, we name the shared archive member
11758 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
11759 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
11760 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
11761 # the AIX toolchain works better with OBJECT_MODE set (default 32).
11762 if test 64 = "${OBJECT_MODE-32}"; then
11763 shared_archive_member_spec=shr_64
11765 shared_archive_member_spec=shr
11770 with_aix_soname=aix
11783 # This can be used to rebuild libtool when needed
11784 LIBTOOL_DEPS=$ltmain
11786 # Always use our own libtool.
11787 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
11818 test -z "$LN_S" && LN_S="ln -s"
11833 if test -n "${ZSH_VERSION+set}"; then
11834 setopt NO_GLOB_SUBST
11837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
11838 $as_echo_n "checking for objdir... " >&6; }
11839 if ${lt_cv_objdir+:} false; then :
11840 $as_echo_n "(cached) " >&6
11842 rm -f .libs 2>/dev/null
11843 mkdir .libs 2>/dev/null
11844 if test -d .libs; then
11847 # MS-DOS does not allow filenames that begin with a dot.
11850 rmdir .libs 2>/dev/null
11852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
11853 $as_echo "$lt_cv_objdir" >&6; }
11854 objdir=$lt_cv_objdir
11860 cat >>confdefs.h <<_ACEOF
11861 #define LT_OBJDIR "$lt_cv_objdir/"
11869 # AIX sometimes has problems with the GCC collect2 program. For some
11870 # reason, if we set the COLLECT_NAMES environment variable, the problems
11871 # vanish in a puff of smoke.
11872 if test set != "${COLLECT_NAMES+set}"; then
11874 export COLLECT_NAMES
11879 # Global variables:
11881 can_build_shared=yes
11883 # All known linkers require a '.a' archive for static linking (except MSVC,
11884 # which needs '.lib').
11887 with_gnu_ld=$lt_cv_prog_gnu_ld
11892 # Set sane defaults for various variables
11893 test -z "$CC" && CC=cc
11894 test -z "$LTCC" && LTCC=$CC
11895 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
11896 test -z "$LD" && LD=ld
11897 test -z "$ac_objext" && ac_objext=o
11899 func_cc_basename $compiler
11900 cc_basename=$func_cc_basename_result
11903 # Only perform the check for file, if the check method requires it
11904 test -z "$MAGIC_CMD" && MAGIC_CMD=file
11905 case $deplibs_check_method in
11907 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
11908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
11909 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
11910 if ${lt_cv_path_MAGIC_CMD+:} false; then :
11911 $as_echo_n "(cached) " >&6
11915 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
11918 lt_save_MAGIC_CMD=$MAGIC_CMD
11919 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
11920 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
11921 for ac_dir in $ac_dummy; do
11923 test -z "$ac_dir" && ac_dir=.
11924 if test -f "$ac_dir/${ac_tool_prefix}file"; then
11925 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
11926 if test -n "$file_magic_test_file"; then
11927 case $deplibs_check_method in
11929 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
11930 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
11931 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
11932 $EGREP "$file_magic_regex" > /dev/null; then
11937 *** Warning: the command libtool uses to detect shared libraries,
11938 *** $file_magic_cmd, produces output that libtool cannot recognize.
11939 *** The result is that libtool may fail to recognize shared libraries
11940 *** as such. This will affect the creation of libtool libraries that
11941 *** depend on shared libraries, but programs linked with such libtool
11942 *** libraries will work regardless of this problem. Nevertheless, you
11943 *** may want to report the problem to your system manager and/or to
11944 *** bug-libtool@gnu.org
11954 MAGIC_CMD=$lt_save_MAGIC_CMD
11959 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
11960 if test -n "$MAGIC_CMD"; then
11961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
11962 $as_echo "$MAGIC_CMD" >&6; }
11964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11965 $as_echo "no" >&6; }
11972 if test -z "$lt_cv_path_MAGIC_CMD"; then
11973 if test -n "$ac_tool_prefix"; then
11974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
11975 $as_echo_n "checking for file... " >&6; }
11976 if ${lt_cv_path_MAGIC_CMD+:} false; then :
11977 $as_echo_n "(cached) " >&6
11981 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
11984 lt_save_MAGIC_CMD=$MAGIC_CMD
11985 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
11986 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
11987 for ac_dir in $ac_dummy; do
11989 test -z "$ac_dir" && ac_dir=.
11990 if test -f "$ac_dir/file"; then
11991 lt_cv_path_MAGIC_CMD=$ac_dir/"file"
11992 if test -n "$file_magic_test_file"; then
11993 case $deplibs_check_method in
11995 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
11996 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
11997 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
11998 $EGREP "$file_magic_regex" > /dev/null; then
12003 *** Warning: the command libtool uses to detect shared libraries,
12004 *** $file_magic_cmd, produces output that libtool cannot recognize.
12005 *** The result is that libtool may fail to recognize shared libraries
12006 *** as such. This will affect the creation of libtool libraries that
12007 *** depend on shared libraries, but programs linked with such libtool
12008 *** libraries will work regardless of this problem. Nevertheless, you
12009 *** may want to report the problem to your system manager and/or to
12010 *** bug-libtool@gnu.org
12020 MAGIC_CMD=$lt_save_MAGIC_CMD
12025 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
12026 if test -n "$MAGIC_CMD"; then
12027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
12028 $as_echo "$MAGIC_CMD" >&6; }
12030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12031 $as_echo "no" >&6; }
12044 # Use C for the default configuration in the libtool script
12048 ac_cpp='$CPP $CPPFLAGS'
12049 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12050 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12051 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12054 # Source file extension for C test sources.
12057 # Object file extension for compiled C test sources.
12061 # Code to be used in simple compile tests
12062 lt_simple_compile_test_code="int some_variable = 0;"
12064 # Code to be used in simple link tests
12065 lt_simple_link_test_code='int main(){return(0);}'
12073 # If no C compiler was specified, use CC.
12076 # If no C compiler flags were specified, use CFLAGS.
12077 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12079 # Allow CC to be a program name with arguments.
12082 # Save the default compiler, since it gets overwritten when the other
12083 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
12084 compiler_DEFAULT=$CC
12086 # save warnings/boilerplate of simple test code
12087 ac_outfile=conftest.$ac_objext
12088 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
12089 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12090 _lt_compiler_boilerplate=`cat conftest.err`
12093 ac_outfile=conftest.$ac_objext
12094 echo "$lt_simple_link_test_code" >conftest.$ac_ext
12095 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12096 _lt_linker_boilerplate=`cat conftest.err`
12101 ## There is no encapsulation within the following macros, do not change
12102 ## the running order or otherwise move them around unless you know exactly
12103 ## what you are doing...
12104 if test -n "$compiler"; then
12106 lt_prog_compiler_no_builtin_flag=
12108 if test yes = "$GCC"; then
12109 case $cc_basename in
12111 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
12113 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
12116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
12117 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
12118 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
12119 $as_echo_n "(cached) " >&6
12121 lt_cv_prog_compiler_rtti_exceptions=no
12122 ac_outfile=conftest.$ac_objext
12123 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12124 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
12125 # Insert the option either (1) after the last *FLAGS variable, or
12126 # (2) before a word containing "conftest.", or (3) at the end.
12127 # Note that $ac_compile itself does not contain backslashes and begins
12128 # with a dollar sign (not a hyphen), so the echo should work correctly.
12129 # The option is referenced via a variable to avoid confusing sed.
12130 lt_compile=`echo "$ac_compile" | $SED \
12131 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12132 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12133 -e 's:$: $lt_compiler_flag:'`
12134 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12135 (eval "$lt_compile" 2>conftest.err)
12137 cat conftest.err >&5
12138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12139 if (exit $ac_status) && test -s "$ac_outfile"; then
12140 # The compiler can only warn and ignore the option if not recognized
12141 # So say no if there are warnings other than the usual output.
12142 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
12143 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12144 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12145 lt_cv_prog_compiler_rtti_exceptions=yes
12151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
12152 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
12154 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
12155 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
12167 lt_prog_compiler_wl=
12168 lt_prog_compiler_pic=
12169 lt_prog_compiler_static=
12172 if test yes = "$GCC"; then
12173 lt_prog_compiler_wl='-Wl,'
12174 lt_prog_compiler_static='-static'
12178 # All AIX code is PIC.
12179 if test ia64 = "$host_cpu"; then
12180 # AIX 5 now supports IA64 processor
12181 lt_prog_compiler_static='-Bstatic'
12183 lt_prog_compiler_pic='-fPIC'
12189 # see comment about AmigaOS4 .so support
12190 lt_prog_compiler_pic='-fPIC'
12193 # FIXME: we need at least 68020 code to build shared libraries, but
12194 # adding the '-m68020' flag to GCC prevents building anything better,
12196 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
12201 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12202 # PIC is the default for these OSes.
12205 mingw* | cygwin* | pw32* | os2* | cegcc*)
12206 # This hack is so that the source file can tell whether it is being
12207 # built for inclusion in a dll (and should export symbols for example).
12208 # Although the cygwin gcc ignores -fPIC, still need this for old-style
12209 # (--disable-auto-import) libraries
12210 lt_prog_compiler_pic='-DDLL_EXPORT'
12213 lt_prog_compiler_static='$wl-static'
12218 darwin* | rhapsody*)
12219 # PIC is the default on this platform
12220 # Common symbols not allowed in MH_DYLIB files
12221 lt_prog_compiler_pic='-fno-common'
12225 # PIC is the default for Haiku.
12226 # The "-static" flag exists, but is broken.
12227 lt_prog_compiler_static=
12231 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
12232 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
12233 # sets the default TLS model and affects inlining.
12239 lt_prog_compiler_pic='-fPIC'
12245 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12246 # Instead, we relocate shared libraries at runtime.
12250 # Just because we use GCC doesn't mean we suddenly get shared libraries
12251 # on systems that don't support them.
12252 lt_prog_compiler_can_build_shared=no
12257 # QNX uses GNU C++, but need to define -shared option too, otherwise
12258 # it will coredump.
12259 lt_prog_compiler_pic='-fPIC -shared'
12263 if test -d /usr/nec; then
12264 lt_prog_compiler_pic=-Kconform_pic
12269 lt_prog_compiler_pic='-fPIC'
12273 case $cc_basename in
12274 nvcc*) # Cuda Compiler Driver 2.2
12275 lt_prog_compiler_wl='-Xlinker '
12276 if test -n "$lt_prog_compiler_pic"; then
12277 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
12282 # PORTME Check for flag to pass linker flags through the system compiler.
12285 lt_prog_compiler_wl='-Wl,'
12286 if test ia64 = "$host_cpu"; then
12287 # AIX 5 now supports IA64 processor
12288 lt_prog_compiler_static='-Bstatic'
12290 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
12294 darwin* | rhapsody*)
12295 # PIC is the default on this platform
12296 # Common symbols not allowed in MH_DYLIB files
12297 lt_prog_compiler_pic='-fno-common'
12298 case $cc_basename in
12300 # NAG Fortran compiler
12301 lt_prog_compiler_wl='-Wl,-Wl,,'
12302 lt_prog_compiler_pic='-PIC'
12303 lt_prog_compiler_static='-Bstatic'
12308 mingw* | cygwin* | pw32* | os2* | cegcc*)
12309 # This hack is so that the source file can tell whether it is being
12310 # built for inclusion in a dll (and should export symbols for example).
12311 lt_prog_compiler_pic='-DDLL_EXPORT'
12314 lt_prog_compiler_static='$wl-static'
12319 hpux9* | hpux10* | hpux11*)
12320 lt_prog_compiler_wl='-Wl,'
12321 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12322 # not for PA HP-UX.
12328 lt_prog_compiler_pic='+Z'
12331 # Is there a better lt_prog_compiler_static that works with the bundled CC?
12332 lt_prog_compiler_static='$wl-a ${wl}archive'
12335 irix5* | irix6* | nonstopux*)
12336 lt_prog_compiler_wl='-Wl,'
12337 # PIC (with -KPIC) is the default.
12338 lt_prog_compiler_static='-non_shared'
12341 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
12342 case $cc_basename in
12343 # old Intel for x86_64, which still supported -KPIC.
12345 lt_prog_compiler_wl='-Wl,'
12346 lt_prog_compiler_pic='-KPIC'
12347 lt_prog_compiler_static='-static'
12349 # icc used to be incompatible with GCC.
12350 # ICC 10 doesn't accept -KPIC any more.
12352 lt_prog_compiler_wl='-Wl,'
12353 lt_prog_compiler_pic='-fPIC'
12354 lt_prog_compiler_static='-static'
12356 # Lahey Fortran 8.1.
12358 lt_prog_compiler_wl='-Wl,'
12359 lt_prog_compiler_pic='--shared'
12360 lt_prog_compiler_static='--static'
12363 # NAG Fortran compiler
12364 lt_prog_compiler_wl='-Wl,-Wl,,'
12365 lt_prog_compiler_pic='-PIC'
12366 lt_prog_compiler_static='-Bstatic'
12369 # Fabrice Bellard et al's Tiny C Compiler
12370 lt_prog_compiler_wl='-Wl,'
12371 lt_prog_compiler_pic='-fPIC'
12372 lt_prog_compiler_static='-static'
12374 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
12375 # Portland Group compilers (*not* the Pentium gcc compiler,
12376 # which looks to be a dead project)
12377 lt_prog_compiler_wl='-Wl,'
12378 lt_prog_compiler_pic='-fpic'
12379 lt_prog_compiler_static='-Bstatic'
12382 lt_prog_compiler_wl='-Wl,'
12383 # All Alpha code is PIC.
12384 lt_prog_compiler_static='-non_shared'
12386 xl* | bgxl* | bgf* | mpixl*)
12387 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
12388 lt_prog_compiler_wl='-Wl,'
12389 lt_prog_compiler_pic='-qpic'
12390 lt_prog_compiler_static='-qstaticlink'
12393 case `$CC -V 2>&1 | sed 5q` in
12394 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
12395 # Sun Fortran 8.3 passes all unrecognized flags to the linker
12396 lt_prog_compiler_pic='-KPIC'
12397 lt_prog_compiler_static='-Bstatic'
12398 lt_prog_compiler_wl=''
12400 *Sun\ F* | *Sun*Fortran*)
12401 lt_prog_compiler_pic='-KPIC'
12402 lt_prog_compiler_static='-Bstatic'
12403 lt_prog_compiler_wl='-Qoption ld '
12407 lt_prog_compiler_pic='-KPIC'
12408 lt_prog_compiler_static='-Bstatic'
12409 lt_prog_compiler_wl='-Wl,'
12411 *Intel*\ [CF]*Compiler*)
12412 lt_prog_compiler_wl='-Wl,'
12413 lt_prog_compiler_pic='-fPIC'
12414 lt_prog_compiler_static='-static'
12417 lt_prog_compiler_wl='-Wl,'
12418 lt_prog_compiler_pic='-fpic'
12419 lt_prog_compiler_static='-Bstatic'
12427 lt_prog_compiler_pic='-KPIC'
12428 lt_prog_compiler_static='-Bstatic'
12432 # QNX uses GNU C++, but need to define -shared option too, otherwise
12433 # it will coredump.
12434 lt_prog_compiler_pic='-fPIC -shared'
12437 osf3* | osf4* | osf5*)
12438 lt_prog_compiler_wl='-Wl,'
12439 # All OSF/1 code is PIC.
12440 lt_prog_compiler_static='-non_shared'
12444 lt_prog_compiler_static='-non_shared'
12448 lt_prog_compiler_pic='-KPIC'
12449 lt_prog_compiler_static='-Bstatic'
12450 case $cc_basename in
12451 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
12452 lt_prog_compiler_wl='-Qoption ld ';;
12454 lt_prog_compiler_wl='-Wl,';;
12459 lt_prog_compiler_wl='-Qoption ld '
12460 lt_prog_compiler_pic='-PIC'
12461 lt_prog_compiler_static='-Bstatic'
12464 sysv4 | sysv4.2uw2* | sysv4.3*)
12465 lt_prog_compiler_wl='-Wl,'
12466 lt_prog_compiler_pic='-KPIC'
12467 lt_prog_compiler_static='-Bstatic'
12471 if test -d /usr/nec; then
12472 lt_prog_compiler_pic='-Kconform_pic'
12473 lt_prog_compiler_static='-Bstatic'
12477 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12478 lt_prog_compiler_wl='-Wl,'
12479 lt_prog_compiler_pic='-KPIC'
12480 lt_prog_compiler_static='-Bstatic'
12484 lt_prog_compiler_wl='-Wl,'
12485 lt_prog_compiler_can_build_shared=no
12489 lt_prog_compiler_pic='-pic'
12490 lt_prog_compiler_static='-Bstatic'
12494 lt_prog_compiler_can_build_shared=no
12500 # For platforms that do not support PIC, -DPIC is meaningless:
12502 lt_prog_compiler_pic=
12505 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
12509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
12510 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
12511 if ${lt_cv_prog_compiler_pic+:} false; then :
12512 $as_echo_n "(cached) " >&6
12514 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
12516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
12517 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
12518 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
12521 # Check to make sure the PIC flag actually works.
12523 if test -n "$lt_prog_compiler_pic"; then
12524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
12525 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
12526 if ${lt_cv_prog_compiler_pic_works+:} false; then :
12527 $as_echo_n "(cached) " >&6
12529 lt_cv_prog_compiler_pic_works=no
12530 ac_outfile=conftest.$ac_objext
12531 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12532 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
12533 # Insert the option either (1) after the last *FLAGS variable, or
12534 # (2) before a word containing "conftest.", or (3) at the end.
12535 # Note that $ac_compile itself does not contain backslashes and begins
12536 # with a dollar sign (not a hyphen), so the echo should work correctly.
12537 # The option is referenced via a variable to avoid confusing sed.
12538 lt_compile=`echo "$ac_compile" | $SED \
12539 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12540 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12541 -e 's:$: $lt_compiler_flag:'`
12542 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12543 (eval "$lt_compile" 2>conftest.err)
12545 cat conftest.err >&5
12546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12547 if (exit $ac_status) && test -s "$ac_outfile"; then
12548 # The compiler can only warn and ignore the option if not recognized
12549 # So say no if there are warnings other than the usual output.
12550 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
12551 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12552 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12553 lt_cv_prog_compiler_pic_works=yes
12559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
12560 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
12562 if test yes = "$lt_cv_prog_compiler_pic_works"; then
12563 case $lt_prog_compiler_pic in
12565 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
12568 lt_prog_compiler_pic=
12569 lt_prog_compiler_can_build_shared=no
12585 # Check to make sure the static flag actually works.
12587 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
12588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12589 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
12590 if ${lt_cv_prog_compiler_static_works+:} false; then :
12591 $as_echo_n "(cached) " >&6
12593 lt_cv_prog_compiler_static_works=no
12594 save_LDFLAGS=$LDFLAGS
12595 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
12596 echo "$lt_simple_link_test_code" > conftest.$ac_ext
12597 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12598 # The linker can only warn and ignore the option if not recognized
12599 # So say no if there are warnings
12600 if test -s conftest.err; then
12601 # Append any errors to the config.log.
12602 cat conftest.err 1>&5
12603 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
12604 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12605 if diff conftest.exp conftest.er2 >/dev/null; then
12606 lt_cv_prog_compiler_static_works=yes
12609 lt_cv_prog_compiler_static_works=yes
12613 LDFLAGS=$save_LDFLAGS
12616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
12617 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
12619 if test yes = "$lt_cv_prog_compiler_static_works"; then
12622 lt_prog_compiler_static=
12631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
12632 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
12633 if ${lt_cv_prog_compiler_c_o+:} false; then :
12634 $as_echo_n "(cached) " >&6
12636 lt_cv_prog_compiler_c_o=no
12637 $RM -r conftest 2>/dev/null
12641 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12643 lt_compiler_flag="-o out/conftest2.$ac_objext"
12644 # Insert the option either (1) after the last *FLAGS variable, or
12645 # (2) before a word containing "conftest.", or (3) at the end.
12646 # Note that $ac_compile itself does not contain backslashes and begins
12647 # with a dollar sign (not a hyphen), so the echo should work correctly.
12648 lt_compile=`echo "$ac_compile" | $SED \
12649 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12650 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12651 -e 's:$: $lt_compiler_flag:'`
12652 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12653 (eval "$lt_compile" 2>out/conftest.err)
12655 cat out/conftest.err >&5
12656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12657 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12659 # The compiler can only warn and ignore the option if not recognized
12660 # So say no if there are warnings
12661 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
12662 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12663 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12664 lt_cv_prog_compiler_c_o=yes
12669 # SGI C++ compiler will create directory out/ii_files/ for
12670 # template instantiation
12671 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
12672 $RM out/* && rmdir out
12678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
12679 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
12686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
12687 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
12688 if ${lt_cv_prog_compiler_c_o+:} false; then :
12689 $as_echo_n "(cached) " >&6
12691 lt_cv_prog_compiler_c_o=no
12692 $RM -r conftest 2>/dev/null
12696 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12698 lt_compiler_flag="-o out/conftest2.$ac_objext"
12699 # Insert the option either (1) after the last *FLAGS variable, or
12700 # (2) before a word containing "conftest.", or (3) at the end.
12701 # Note that $ac_compile itself does not contain backslashes and begins
12702 # with a dollar sign (not a hyphen), so the echo should work correctly.
12703 lt_compile=`echo "$ac_compile" | $SED \
12704 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12705 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12706 -e 's:$: $lt_compiler_flag:'`
12707 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12708 (eval "$lt_compile" 2>out/conftest.err)
12710 cat out/conftest.err >&5
12711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12712 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12714 # The compiler can only warn and ignore the option if not recognized
12715 # So say no if there are warnings
12716 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
12717 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12718 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12719 lt_cv_prog_compiler_c_o=yes
12724 # SGI C++ compiler will create directory out/ii_files/ for
12725 # template instantiation
12726 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
12727 $RM out/* && rmdir out
12733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
12734 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
12739 hard_links=nottested
12740 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
12741 # do not overwrite the value of need_locks provided by the user
12742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
12743 $as_echo_n "checking if we can lock with hard links... " >&6; }
12746 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12748 ln conftest.a conftest.b 2>&5 || hard_links=no
12749 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
12751 $as_echo "$hard_links" >&6; }
12752 if test no = "$hard_links"; then
12753 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
12754 $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
12766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12767 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12770 allow_undefined_flag=
12771 always_export_symbols=no
12773 archive_expsym_cmds=
12774 compiler_needs_object=no
12775 enable_shared_with_static_runtimes=no
12776 export_dynamic_flag_spec=
12777 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12778 hardcode_automatic=no
12780 hardcode_direct_absolute=no
12781 hardcode_libdir_flag_spec=
12782 hardcode_libdir_separator=
12783 hardcode_minus_L=no
12784 hardcode_shlibpath_var=unsupported
12786 link_all_deplibs=unknown
12788 module_expsym_cmds=
12789 old_archive_from_new_cmds=
12790 old_archive_from_expsyms_cmds=
12791 thread_safe_flag_spec=
12792 whole_archive_flag_spec=
12793 # include_expsyms should be a list of space-separated symbols to be *always*
12794 # included in the symbol list
12796 # exclude_expsyms can be an extended regexp of symbols to exclude
12797 # it will be wrapped by ' (' and ')$', so one must not match beginning or
12798 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
12799 # as well as any symbol that contains 'd'.
12800 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
12801 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
12802 # platforms (ab)use it in PIC code, but their linkers get confused if
12803 # the symbol is explicitly referenced. Since portable code cannot
12804 # rely on this symbol name, it's probably fine to never include it in
12805 # preloaded symbol tables.
12806 # Exclude shared library initialization/finalization symbols.
12807 extract_expsyms_cmds=
12810 cygwin* | mingw* | pw32* | cegcc*)
12811 # FIXME: the MSVC++ port hasn't been tested in a loooong time
12812 # When not using gcc, we currently assume that we are using
12813 # Microsoft Visual C++.
12814 if test yes != "$GCC"; then
12819 # we just hope/assume this is gcc and not c89 (= MSVC++)
12822 openbsd* | bitrig*)
12825 linux* | k*bsd*-gnu | gnu*)
12826 link_all_deplibs=no
12832 # On some targets, GNU ld is compatible enough with the native linker
12833 # that we're better off using the native interface for both.
12834 lt_use_gnu_ld_interface=no
12835 if test yes = "$with_gnu_ld"; then
12838 # The AIX port of GNU ld has always aspired to compatibility
12839 # with the native linker. However, as the warning in the GNU ld
12840 # block says, versions before 2.19.5* couldn't really create working
12841 # shared libraries, regardless of the interface used.
12842 case `$LD -v 2>&1` in
12843 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
12844 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
12845 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
12847 lt_use_gnu_ld_interface=yes
12852 lt_use_gnu_ld_interface=yes
12857 if test yes = "$lt_use_gnu_ld_interface"; then
12858 # If archive_cmds runs LD, not CC, wlarc should be empty
12861 # Set some defaults for GNU ld with shared library support. These
12862 # are reset later if shared libraries are not supported. Putting them
12863 # here allows them to be overridden if necessary.
12864 runpath_var=LD_RUN_PATH
12865 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12866 export_dynamic_flag_spec='$wl--export-dynamic'
12867 # ancient GNU ld didn't support --whole-archive et. al.
12868 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
12869 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
12871 whole_archive_flag_spec=
12873 supports_anon_versioning=no
12874 case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
12875 *GNU\ gold*) supports_anon_versioning=yes ;;
12876 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
12877 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
12878 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
12879 *\ 2.11.*) ;; # other 2.11 versions
12880 *) supports_anon_versioning=yes ;;
12883 # See if GNU ld supports shared libraries.
12886 # On AIX/PPC, the GNU linker is very broken
12887 if test ia64 != "$host_cpu"; then
12891 *** Warning: the GNU linker, at least up to release 2.19, is reported
12892 *** to be unable to reliably create shared libraries on AIX.
12893 *** Therefore, libtool is disabling shared libraries support. If you
12894 *** really care for shared libraries, you may want to install binutils
12895 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
12896 *** You will then need to restart the configuration process.
12905 # see comment about AmigaOS4 .so support
12906 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12907 archive_expsym_cmds=''
12910 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)'
12911 hardcode_libdir_flag_spec='-L$libdir'
12912 hardcode_minus_L=yes
12918 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12919 allow_undefined_flag=unsupported
12920 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12921 # support --undefined. This deserves some investigation. FIXME
12922 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12928 cygwin* | mingw* | pw32* | cegcc*)
12929 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
12930 # as there is no search path for DLLs.
12931 hardcode_libdir_flag_spec='-L$libdir'
12932 export_dynamic_flag_spec='$wl--export-all-symbols'
12933 allow_undefined_flag=unsupported
12934 always_export_symbols=no
12935 enable_shared_with_static_runtimes=yes
12936 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'
12937 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
12939 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
12940 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12941 # If the export-symbols file already is a .def file, use it as
12942 # is; otherwise, prepend EXPORTS...
12943 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
12944 cp $export_symbols $output_objdir/$soname.def;
12946 echo EXPORTS > $output_objdir/$soname.def;
12947 cat $export_symbols >> $output_objdir/$soname.def;
12949 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12956 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12957 link_all_deplibs=yes
12961 hardcode_libdir_flag_spec='-L$libdir'
12962 hardcode_minus_L=yes
12963 allow_undefined_flag=unsupported
12965 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
12966 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
12967 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
12968 $ECHO EXPORTS >> $output_objdir/$libname.def~
12969 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
12970 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
12971 emximp -o $lib $output_objdir/$libname.def'
12972 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
12973 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
12974 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
12975 $ECHO EXPORTS >> $output_objdir/$libname.def~
12976 prefix_cmds="$SED"~
12977 if test EXPORTS = "`$SED 1q $export_symbols`"; then
12978 prefix_cmds="$prefix_cmds -e 1d";
12980 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
12981 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
12982 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
12983 emximp -o $lib $output_objdir/$libname.def'
12984 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
12985 enable_shared_with_static_runtimes=yes
12990 hardcode_shlibpath_var=no
12991 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
12992 export_dynamic_flag_spec='$wl-E'
12993 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12994 # Instead, shared libraries are loaded at an image base (0x10000000 by
12995 # default) and relocated if they conflict, which is a slow very memory
12996 # consuming and fragmenting process. To avoid this, we pick a random,
12997 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12998 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
12999 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
13000 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'
13003 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
13005 if test linux-dietlibc = "$host_os"; then
13006 case $cc_basename in
13007 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
13010 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
13011 && test no = "$tmp_diet"
13013 tmp_addflag=' $pic_flag'
13014 tmp_sharedflag='-shared'
13015 case $cc_basename,$host_cpu in
13016 pgcc*) # Portland Group C compiler
13017 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'
13018 tmp_addflag=' $pic_flag'
13020 pgf77* | pgf90* | pgf95* | pgfortran*)
13021 # Portland Group f77 and f90 compilers
13022 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'
13023 tmp_addflag=' $pic_flag -Mnomain' ;;
13024 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
13025 tmp_addflag=' -i_dynamic' ;;
13026 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
13027 tmp_addflag=' -i_dynamic -nofor_main' ;;
13028 ifc* | ifort*) # Intel Fortran compiler
13029 tmp_addflag=' -nofor_main' ;;
13030 lf95*) # Lahey Fortran 8.1
13031 whole_archive_flag_spec=
13032 tmp_sharedflag='--shared' ;;
13033 nagfor*) # NAGFOR 5.3
13034 tmp_sharedflag='-Wl,-shared' ;;
13035 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
13036 tmp_sharedflag='-qmkshrobj'
13038 nvcc*) # Cuda Compiler Driver 2.2
13039 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'
13040 compiler_needs_object=yes
13043 case `$CC -V 2>&1 | sed 5q` in
13044 *Sun\ C*) # Sun C 5.9
13045 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'
13046 compiler_needs_object=yes
13047 tmp_sharedflag='-G' ;;
13048 *Sun\ F*) # Sun Fortran 8.3
13049 tmp_sharedflag='-G' ;;
13051 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
13053 if test yes = "$supports_anon_versioning"; then
13054 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
13055 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13056 echo "local: *; };" >> $output_objdir/$libname.ver~
13057 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
13060 case $cc_basename in
13062 export_dynamic_flag_spec='-rdynamic'
13064 xlf* | bgf* | bgxlf* | mpixlf*)
13065 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
13066 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
13067 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
13068 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
13069 if test yes = "$supports_anon_versioning"; then
13070 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
13071 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13072 echo "local: *; };" >> $output_objdir/$libname.ver~
13073 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
13082 netbsd* | netbsdelf*-gnu)
13083 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13084 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
13087 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
13088 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
13093 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
13097 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
13098 *** create shared libraries on Solaris systems. Therefore, libtool
13099 *** is disabling shared libraries support. We urge you to upgrade GNU
13100 *** binutils to release 2.9.1 or newer. Another option is to modify
13101 *** your PATH or compiler configuration so that the native linker is
13102 *** used, and then restart.
13105 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13106 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
13107 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
13113 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
13114 case `$LD -v 2>&1` in
13115 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
13119 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
13120 *** reliably create shared libraries on SCO systems. Therefore, libtool
13121 *** is disabling shared libraries support. We urge you to upgrade GNU
13122 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
13123 *** your PATH or compiler configuration so that the native linker is
13124 *** used, and then restart.
13129 # For security reasons, it is highly recommended that you always
13130 # use absolute paths for naming shared libraries, and exclude the
13131 # DT_RUNPATH tag from executables and libraries. But doing so
13132 # requires that you compile everything twice, which is a pain.
13133 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13134 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
13135 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
13136 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
13145 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13147 hardcode_direct=yes
13148 hardcode_shlibpath_var=no
13152 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13153 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
13154 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
13161 if test no = "$ld_shlibs"; then
13163 hardcode_libdir_flag_spec=
13164 export_dynamic_flag_spec=
13165 whole_archive_flag_spec=
13168 # PORTME fill in a description of your system's linker (not GNU ld)
13171 allow_undefined_flag=unsupported
13172 always_export_symbols=yes
13173 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'
13174 # Note: this linker hardcodes the directories in LIBPATH if there
13175 # are no directories specified by -L.
13176 hardcode_minus_L=yes
13177 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
13178 # Neither direct hardcoding nor static linking is supported with a
13180 hardcode_direct=unsupported
13185 if test ia64 = "$host_cpu"; then
13186 # On IA64, the linker does run time linking by default, so we don't
13187 # have to do anything special.
13188 aix_use_runtimelinking=no
13189 exp_sym_flag='-Bexport'
13192 # If we're using GNU nm, then we don't want the "-C" option.
13193 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
13194 # Without the "-l" option, or with the "-B" option, AIX nm treats
13195 # weak defined symbols like other global defined symbols, whereas
13196 # GNU nm marks them as "W".
13197 # While the 'weak' keyword is ignored in the Export File, we need
13198 # it in the Import File for the 'aix-soname' feature, so we have
13199 # to replace the "-B" option with "-P" for AIX nm.
13200 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
13201 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols'
13203 export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
13205 aix_use_runtimelinking=no
13207 # Test if we are trying to use run time linking or normal
13208 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13209 # have runtime linking enabled, and use it for executables.
13210 # For shared libraries, we enable/disable runtime linking
13211 # depending on the kind of the shared library created -
13212 # when "with_aix_soname,aix_use_runtimelinking" is:
13213 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
13214 # "aix,yes" lib.so shared, rtl:yes, for executables
13215 # lib.a static archive
13216 # "both,no" lib.so.V(shr.o) shared, rtl:yes
13217 # lib.a(lib.so.V) shared, rtl:no, for executables
13218 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
13219 # lib.a(lib.so.V) shared, rtl:no
13220 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
13221 # lib.a static archive
13222 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
13223 for ld_flag in $LDFLAGS; do
13224 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
13225 aix_use_runtimelinking=yes
13229 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
13230 # With aix-soname=svr4, we create the lib.so.V shared archives only,
13231 # so we don't have lib.a shared libs to link our executables.
13232 # We have to force runtime linking in this case.
13233 aix_use_runtimelinking=yes
13234 LDFLAGS="$LDFLAGS -Wl,-brtl"
13239 exp_sym_flag='-bexport'
13240 no_entry_flag='-bnoentry'
13243 # When large executables or shared objects are built, AIX ld can
13244 # have problems creating the table of contents. If linking a library
13245 # or program results in "error TOC overflow" add -mminimal-toc to
13246 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
13247 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13250 hardcode_direct=yes
13251 hardcode_direct_absolute=yes
13252 hardcode_libdir_separator=':'
13253 link_all_deplibs=yes
13254 file_list_spec='$wl-f,'
13255 case $with_aix_soname,$aix_use_runtimelinking in
13256 aix,*) ;; # traditional, no import file
13257 svr4,* | *,yes) # use import file
13258 # The Import File defines what to hardcode.
13260 hardcode_direct_absolute=no
13264 if test yes = "$GCC"; then
13265 case $host_os in aix4.[012]|aix4.[012].*)
13266 # We only want to do this on AIX 4.2 and lower, the check
13267 # below for broken collect2 doesn't work under 4.3+
13268 collect2name=`$CC -print-prog-name=collect2`
13269 if test -f "$collect2name" &&
13270 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
13272 # We have reworked collect2
13275 # We have old collect2
13276 hardcode_direct=unsupported
13277 # It fails to find uninstalled libraries when the uninstalled
13278 # path is not listed in the libpath. Setting hardcode_minus_L
13279 # to unsupported forces relinking
13280 hardcode_minus_L=yes
13281 hardcode_libdir_flag_spec='-L$libdir'
13282 hardcode_libdir_separator=
13286 shared_flag='-shared'
13287 if test yes = "$aix_use_runtimelinking"; then
13288 shared_flag="$shared_flag "'$wl-G'
13290 # Need to ensure runtime linking is disabled for the traditional
13291 # shared library, or the linker may eventually find shared libraries
13292 # /with/ Import File - we do not want to mix them.
13293 shared_flag_aix='-shared'
13294 shared_flag_svr4='-shared $wl-G'
13297 if test ia64 = "$host_cpu"; then
13298 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13299 # chokes on -Wl,-G. The following line is correct:
13302 if test yes = "$aix_use_runtimelinking"; then
13303 shared_flag='$wl-G'
13305 shared_flag='$wl-bM:SRE'
13307 shared_flag_aix='$wl-bM:SRE'
13308 shared_flag_svr4='$wl-G'
13312 export_dynamic_flag_spec='$wl-bexpall'
13313 # It seems that -bexpall does not export symbols beginning with
13314 # underscore (_), so it is better to generate a list of symbols to export.
13315 always_export_symbols=yes
13316 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
13317 # Warning - without using the other runtime loading flags (-brtl),
13318 # -berok will link without error, but may produce a broken library.
13319 allow_undefined_flag='-berok'
13320 # Determine the default libpath from the value encoded in an
13321 # empty executable.
13322 if test set = "${lt_cv_aix_libpath+set}"; then
13323 aix_libpath=$lt_cv_aix_libpath
13325 if ${lt_cv_aix_libpath_+:} false; then :
13326 $as_echo_n "(cached) " >&6
13328 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13329 /* end confdefs.h. */
13339 if ac_fn_c_try_link "$LINENO"; then :
13341 lt_aix_libpath_sed='
13342 /Import File Strings/,/^$/ {
13344 s/^0 *\([^ ]*\) *$/\1/
13348 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13349 # Check for a 64-bit object if we didn't find anything.
13350 if test -z "$lt_cv_aix_libpath_"; then
13351 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13354 rm -f core conftest.err conftest.$ac_objext \
13355 conftest$ac_exeext conftest.$ac_ext
13356 if test -z "$lt_cv_aix_libpath_"; then
13357 lt_cv_aix_libpath_=/usr/lib:/lib
13362 aix_libpath=$lt_cv_aix_libpath_
13365 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
13366 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag
13368 if test ia64 = "$host_cpu"; then
13369 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
13370 allow_undefined_flag="-z nodefs"
13371 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"
13373 # Determine the default libpath from the value encoded in an
13374 # empty executable.
13375 if test set = "${lt_cv_aix_libpath+set}"; then
13376 aix_libpath=$lt_cv_aix_libpath
13378 if ${lt_cv_aix_libpath_+:} false; then :
13379 $as_echo_n "(cached) " >&6
13381 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13382 /* end confdefs.h. */
13392 if ac_fn_c_try_link "$LINENO"; then :
13394 lt_aix_libpath_sed='
13395 /Import File Strings/,/^$/ {
13397 s/^0 *\([^ ]*\) *$/\1/
13401 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13402 # Check for a 64-bit object if we didn't find anything.
13403 if test -z "$lt_cv_aix_libpath_"; then
13404 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13407 rm -f core conftest.err conftest.$ac_objext \
13408 conftest$ac_exeext conftest.$ac_ext
13409 if test -z "$lt_cv_aix_libpath_"; then
13410 lt_cv_aix_libpath_=/usr/lib:/lib
13415 aix_libpath=$lt_cv_aix_libpath_
13418 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
13419 # Warning - without using the other run time loading flags,
13420 # -berok will link without error, but may produce a broken library.
13421 no_undefined_flag=' $wl-bernotok'
13422 allow_undefined_flag=' $wl-berok'
13423 if test yes = "$with_gnu_ld"; then
13424 # We only use this code for GNU lds that support --whole-archive.
13425 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
13427 # Exported symbols can be pulled into shared objects from archives
13428 whole_archive_flag_spec='$convenience'
13430 archive_cmds_need_lc=yes
13431 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
13432 # -brtl affects multiple linker settings, -berok does not and is overridden later
13433 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
13434 if test svr4 != "$with_aix_soname"; then
13435 # This is similar to how AIX traditionally builds its shared libraries.
13436 archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname'
13438 if test aix != "$with_aix_soname"; then
13439 archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp'
13441 # used by -dlpreopen to get the symbols
13442 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
13444 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
13452 # see comment about AmigaOS4 .so support
13453 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
13454 archive_expsym_cmds=''
13457 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)'
13458 hardcode_libdir_flag_spec='-L$libdir'
13459 hardcode_minus_L=yes
13465 export_dynamic_flag_spec=-rdynamic
13468 cygwin* | mingw* | pw32* | cegcc*)
13469 # When not using gcc, we currently assume that we are using
13470 # Microsoft Visual C++.
13471 # hardcode_libdir_flag_spec is actually meaningless, as there is
13472 # no search path for DLLs.
13473 case $cc_basename in
13476 hardcode_libdir_flag_spec=' '
13477 allow_undefined_flag=unsupported
13478 always_export_symbols=yes
13480 # Tell ltmain to make .lib files, not .a files.
13482 # Tell ltmain to make .dll files, not .so files.
13484 # FIXME: Setting linknames here is a bad hack.
13485 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
13486 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
13487 cp "$export_symbols" "$output_objdir/$soname.def";
13488 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
13490 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
13492 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
13494 # The linker will not automatically build a static lib if we build a DLL.
13495 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
13496 enable_shared_with_static_runtimes=yes
13497 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
13498 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
13500 old_postinstall_cmds='chmod 644 $oldlib'
13501 postlink_cmds='lt_outputfile="@OUTPUT@"~
13502 lt_tool_outputfile="@TOOL_OUTPUT@"~
13503 case $lt_outputfile in
13506 lt_outputfile=$lt_outputfile.exe
13507 lt_tool_outputfile=$lt_tool_outputfile.exe
13510 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
13511 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
13512 $RM "$lt_outputfile.manifest";
13516 # Assume MSVC wrapper
13517 hardcode_libdir_flag_spec=' '
13518 allow_undefined_flag=unsupported
13519 # Tell ltmain to make .lib files, not .a files.
13521 # Tell ltmain to make .dll files, not .so files.
13523 # FIXME: Setting linknames here is a bad hack.
13524 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
13525 # The linker will automatically build a .lib file if we build a DLL.
13526 old_archive_from_new_cmds='true'
13527 # FIXME: Should let the user specify the lib program.
13528 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
13529 enable_shared_with_static_runtimes=yes
13534 darwin* | rhapsody*)
13537 archive_cmds_need_lc=no
13539 hardcode_automatic=yes
13540 hardcode_shlibpath_var=unsupported
13541 if test yes = "$lt_cv_ld_force_load"; then
13542 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\"`'
13545 whole_archive_flag_spec=''
13547 link_all_deplibs=yes
13548 allow_undefined_flag=$_lt_dar_allow_undefined
13549 case $cc_basename in
13550 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
13551 *) _lt_dar_can_shared=$GCC ;;
13553 if test yes = "$_lt_dar_can_shared"; then
13554 output_verbose_link_cmd=func_echo_all
13555 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
13556 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
13557 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"
13558 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"
13567 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13568 hardcode_libdir_flag_spec='-L$libdir'
13569 hardcode_shlibpath_var=no
13572 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
13573 # support. Future versions do this automatically, but an explicit c++rt0.o
13574 # does not break anything, and helps significantly (at the cost of a little
13577 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
13578 hardcode_libdir_flag_spec='-R$libdir'
13579 hardcode_direct=yes
13580 hardcode_shlibpath_var=no
13583 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
13585 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13586 hardcode_direct=yes
13587 hardcode_minus_L=yes
13588 hardcode_shlibpath_var=no
13591 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
13592 freebsd* | dragonfly*)
13593 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13594 hardcode_libdir_flag_spec='-R$libdir'
13595 hardcode_direct=yes
13596 hardcode_shlibpath_var=no
13600 if test yes = "$GCC"; then
13601 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
13603 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
13605 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
13606 hardcode_libdir_separator=:
13607 hardcode_direct=yes
13609 # hardcode_minus_L: Not really in the search PATH,
13610 # but as the default location of the library.
13611 hardcode_minus_L=yes
13612 export_dynamic_flag_spec='$wl-E'
13616 if test yes,no = "$GCC,$with_gnu_ld"; then
13617 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13619 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
13621 if test no = "$with_gnu_ld"; then
13622 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
13623 hardcode_libdir_separator=:
13624 hardcode_direct=yes
13625 hardcode_direct_absolute=yes
13626 export_dynamic_flag_spec='$wl-E'
13627 # hardcode_minus_L: Not really in the search PATH,
13628 # but as the default location of the library.
13629 hardcode_minus_L=yes
13634 if test yes,no = "$GCC,$with_gnu_ld"; then
13637 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
13640 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
13643 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13649 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
13652 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
13656 # Older versions of the 11.00 compiler do not understand -b yet
13657 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
13658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
13659 $as_echo_n "checking if $CC understands -b... " >&6; }
13660 if ${lt_cv_prog_compiler__b+:} false; then :
13661 $as_echo_n "(cached) " >&6
13663 lt_cv_prog_compiler__b=no
13664 save_LDFLAGS=$LDFLAGS
13665 LDFLAGS="$LDFLAGS -b"
13666 echo "$lt_simple_link_test_code" > conftest.$ac_ext
13667 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13668 # The linker can only warn and ignore the option if not recognized
13669 # So say no if there are warnings
13670 if test -s conftest.err; then
13671 # Append any errors to the config.log.
13672 cat conftest.err 1>&5
13673 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
13674 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13675 if diff conftest.exp conftest.er2 >/dev/null; then
13676 lt_cv_prog_compiler__b=yes
13679 lt_cv_prog_compiler__b=yes
13683 LDFLAGS=$save_LDFLAGS
13686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
13687 $as_echo "$lt_cv_prog_compiler__b" >&6; }
13689 if test yes = "$lt_cv_prog_compiler__b"; then
13690 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13692 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
13698 if test no = "$with_gnu_ld"; then
13699 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
13700 hardcode_libdir_separator=:
13705 hardcode_shlibpath_var=no
13708 hardcode_direct=yes
13709 hardcode_direct_absolute=yes
13710 export_dynamic_flag_spec='$wl-E'
13712 # hardcode_minus_L: Not really in the search PATH,
13713 # but as the default location of the library.
13714 hardcode_minus_L=yes
13720 irix5* | irix6* | nonstopux*)
13721 if test yes = "$GCC"; then
13722 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'
13723 # Try to use the -exported_symbol ld option, if it does not
13724 # work, assume that -exports_file does not work either and
13725 # implicitly export all symbols.
13726 # This should be the same for all languages, so no per-tag cache variable.
13727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
13728 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
13729 if ${lt_cv_irix_exported_symbol+:} false; then :
13730 $as_echo_n "(cached) " >&6
13732 save_LDFLAGS=$LDFLAGS
13733 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
13734 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13735 /* end confdefs.h. */
13736 int foo (void) { return 0; }
13738 if ac_fn_c_try_link "$LINENO"; then :
13739 lt_cv_irix_exported_symbol=yes
13741 lt_cv_irix_exported_symbol=no
13743 rm -f core conftest.err conftest.$ac_objext \
13744 conftest$ac_exeext conftest.$ac_ext
13745 LDFLAGS=$save_LDFLAGS
13747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
13748 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
13749 if test yes = "$lt_cv_irix_exported_symbol"; then
13750 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'
13752 link_all_deplibs=no
13754 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'
13755 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'
13757 archive_cmds_need_lc='no'
13758 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
13759 hardcode_libdir_separator=:
13761 link_all_deplibs=yes
13765 case $cc_basename in
13767 # Fabrice Bellard et al's Tiny C Compiler
13769 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13774 netbsd* | netbsdelf*-gnu)
13775 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13776 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
13778 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
13780 hardcode_libdir_flag_spec='-R$libdir'
13781 hardcode_direct=yes
13782 hardcode_shlibpath_var=no
13786 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13787 hardcode_direct=yes
13788 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
13789 hardcode_libdir_separator=:
13790 hardcode_shlibpath_var=no
13796 openbsd* | bitrig*)
13797 if test -f /usr/libexec/ld.so; then
13798 hardcode_direct=yes
13799 hardcode_shlibpath_var=no
13800 hardcode_direct_absolute=yes
13801 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
13802 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13803 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
13804 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
13805 export_dynamic_flag_spec='$wl-E'
13807 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13808 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
13816 hardcode_libdir_flag_spec='-L$libdir'
13817 hardcode_minus_L=yes
13818 allow_undefined_flag=unsupported
13820 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
13821 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
13822 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
13823 $ECHO EXPORTS >> $output_objdir/$libname.def~
13824 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
13825 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
13826 emximp -o $lib $output_objdir/$libname.def'
13827 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
13828 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
13829 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
13830 $ECHO EXPORTS >> $output_objdir/$libname.def~
13831 prefix_cmds="$SED"~
13832 if test EXPORTS = "`$SED 1q $export_symbols`"; then
13833 prefix_cmds="$prefix_cmds -e 1d";
13835 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
13836 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
13837 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
13838 emximp -o $lib $output_objdir/$libname.def'
13839 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
13840 enable_shared_with_static_runtimes=yes
13844 if test yes = "$GCC"; then
13845 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
13846 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'
13848 allow_undefined_flag=' -expect_unresolved \*'
13849 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'
13851 archive_cmds_need_lc='no'
13852 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
13853 hardcode_libdir_separator=:
13856 osf4* | osf5*) # as osf3* with the addition of -msym flag
13857 if test yes = "$GCC"; then
13858 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
13859 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'
13860 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
13862 allow_undefined_flag=' -expect_unresolved \*'
13863 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'
13864 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~
13865 $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'
13867 # Both c and cxx compiler support -rpath directly
13868 hardcode_libdir_flag_spec='-rpath $libdir'
13870 archive_cmds_need_lc='no'
13871 hardcode_libdir_separator=:
13875 no_undefined_flag=' -z defs'
13876 if test yes = "$GCC"; then
13878 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
13879 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13880 $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'
13882 case `$CC -V 2>&1` in
13885 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
13886 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13887 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
13891 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
13892 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13893 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
13897 hardcode_libdir_flag_spec='-R$libdir'
13898 hardcode_shlibpath_var=no
13900 solaris2.[0-5] | solaris2.[0-5].*) ;;
13902 # The compiler driver will combine and reorder linker options,
13903 # but understands '-z linker_flag'. GCC discards it without '$wl',
13904 # but is careful enough not to reorder.
13905 # Supported since Solaris 2.6 (maybe 2.5.1?)
13906 if test yes = "$GCC"; then
13907 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
13909 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
13913 link_all_deplibs=yes
13917 if test sequent = "$host_vendor"; then
13918 # Use $CC to link under sequent, because it throws in some extra .o
13919 # files that make .init and .fini sections work.
13920 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
13922 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
13924 hardcode_libdir_flag_spec='-L$libdir'
13925 hardcode_direct=yes
13926 hardcode_minus_L=yes
13927 hardcode_shlibpath_var=no
13931 case $host_vendor in
13933 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13934 hardcode_direct=yes # is this really true???
13937 ## LD is ld it makes a PLAMLIB
13938 ## CC just makes a GrossModule.
13939 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13940 reload_cmds='$CC -r -o $output$reload_objs'
13944 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13945 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
13948 runpath_var='LD_RUN_PATH'
13949 hardcode_shlibpath_var=no
13953 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13954 hardcode_shlibpath_var=no
13955 export_dynamic_flag_spec='-Bexport'
13959 if test -d /usr/nec; then
13960 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13961 hardcode_shlibpath_var=no
13962 runpath_var=LD_RUN_PATH
13963 hardcode_runpath_var=yes
13968 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13969 no_undefined_flag='$wl-z,text'
13970 archive_cmds_need_lc=no
13971 hardcode_shlibpath_var=no
13972 runpath_var='LD_RUN_PATH'
13974 if test yes = "$GCC"; then
13975 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13976 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13978 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13979 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13983 sysv5* | sco3.2v5* | sco5v6*)
13984 # Note: We CANNOT use -z defs as we might desire, because we do not
13985 # link with -lc, and that would cause any symbols used from libc to
13986 # always be unresolved, which means just about no library would
13987 # ever link correctly. If we're not using GNU ld we use -z text
13988 # though, which does catch some bad symbols but isn't as heavy-handed
13990 no_undefined_flag='$wl-z,text'
13991 allow_undefined_flag='$wl-z,nodefs'
13992 archive_cmds_need_lc=no
13993 hardcode_shlibpath_var=no
13994 hardcode_libdir_flag_spec='$wl-R,$libdir'
13995 hardcode_libdir_separator=':'
13996 link_all_deplibs=yes
13997 export_dynamic_flag_spec='$wl-Bexport'
13998 runpath_var='LD_RUN_PATH'
14000 if test yes = "$GCC"; then
14001 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14002 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14004 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14005 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14010 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14011 hardcode_libdir_flag_spec='-L$libdir'
14012 hardcode_shlibpath_var=no
14020 if test sni = "$host_vendor"; then
14022 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
14023 export_dynamic_flag_spec='$wl-Blargedynsym'
14029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
14030 $as_echo "$ld_shlibs" >&6; }
14031 test no = "$ld_shlibs" && can_build_shared=no
14033 with_gnu_ld=$with_gnu_ld
14050 # Do we need to explicitly link libc?
14052 case "x$archive_cmds_need_lc" in
14054 # Assume -lc should be added
14055 archive_cmds_need_lc=yes
14057 if test yes,yes = "$GCC,$enable_shared"; then
14058 case $archive_cmds in
14060 # FIXME: we may have to deal with multi-command sequences.
14063 # Test whether the compiler implicitly links with -lc since on some
14064 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14065 # to ld, don't add -lc before -lgcc.
14066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
14067 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
14068 if ${lt_cv_archive_cmds_need_lc+:} false; then :
14069 $as_echo_n "(cached) " >&6
14072 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14074 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14075 (eval $ac_compile) 2>&5
14077 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14078 test $ac_status = 0; } 2>conftest.err; then
14081 libobjs=conftest.$ac_objext
14083 wl=$lt_prog_compiler_wl
14084 pic_flag=$lt_prog_compiler_pic
14090 lt_save_allow_undefined_flag=$allow_undefined_flag
14091 allow_undefined_flag=
14092 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
14093 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
14095 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14096 test $ac_status = 0; }
14098 lt_cv_archive_cmds_need_lc=no
14100 lt_cv_archive_cmds_need_lc=yes
14102 allow_undefined_flag=$lt_save_allow_undefined_flag
14104 cat conftest.err 1>&5
14109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
14110 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
14111 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
14269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
14270 $as_echo_n "checking dynamic linker characteristics... " >&6; }
14272 if test yes = "$GCC"; then
14274 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
14275 *) lt_awk_arg='/^libraries:/' ;;
14278 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
14279 *) lt_sed_strip_eq='s|=/|/|g' ;;
14281 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
14282 case $lt_search_path_spec in
14284 # if the path contains ";" then we assume it to be the separator
14285 # otherwise default to the standard path separator (i.e. ":") - it is
14286 # assumed that no part of a normal pathname contains ";" but that should
14287 # okay in the real world where ";" in dirpaths is itself problematic.
14288 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
14291 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
14294 # Ok, now we have the path, separated by spaces, we can step through it
14295 # and add multilib dir if necessary...
14296 lt_tmp_lt_search_path_spec=
14297 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
14298 # ...but if some path component already ends with the multilib dir we assume
14299 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
14300 case "$lt_multi_os_dir; $lt_search_path_spec " in
14301 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
14305 for lt_sys_path in $lt_search_path_spec; do
14306 if test -d "$lt_sys_path$lt_multi_os_dir"; then
14307 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
14308 elif test -n "$lt_multi_os_dir"; then
14309 test -d "$lt_sys_path" && \
14310 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
14313 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
14314 BEGIN {RS = " "; FS = "/|\n";} {
14317 for (lt_i = NF; lt_i > 0; lt_i--) {
14318 if ($lt_i != "" && $lt_i != ".") {
14319 if ($lt_i == "..") {
14322 if (lt_count == 0) {
14323 lt_foo = "/" $lt_i lt_foo;
14330 if (lt_foo != "") { lt_freq[lt_foo]++; }
14331 if (lt_freq[lt_foo] == 1) { print lt_foo; }
14333 # AWK program above erroneously prepends '/' to C:/dos/paths
14336 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
14337 $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
14339 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
14341 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14343 library_names_spec=
14344 libname_spec='lib$name'
14348 postuninstall_cmds=
14352 shlibpath_overrides_runpath=unknown
14354 dynamic_linker="$host_os ld.so"
14355 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14356 need_lib_prefix=unknown
14357 hardcode_into_libs=no
14359 # when you set need_version to no, make sure it does not cause -set_version
14360 # flags to be left without arguments
14361 need_version=unknown
14367 version_type=linux # correct to gnu/linux during the next big refactor
14368 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
14369 shlibpath_var=LIBPATH
14371 # AIX 3 has no versioning support, so we append a major version to the name.
14372 soname_spec='$libname$release$shared_ext$major'
14376 version_type=linux # correct to gnu/linux during the next big refactor
14379 hardcode_into_libs=yes
14380 if test ia64 = "$host_cpu"; then
14381 # AIX 5 supports IA64
14382 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
14383 shlibpath_var=LD_LIBRARY_PATH
14385 # With GCC up to 2.95.x, collect2 would create an import file
14386 # for dependence libraries. The import file would start with
14387 # the line '#! .'. This would cause the generated library to
14388 # depend on '.', always an invalid library. This was fixed in
14389 # development snapshots of GCC prior to 3.0.
14391 aix4 | aix4.[01] | aix4.[01].*)
14392 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14394 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
14397 can_build_shared=no
14401 # Using Import Files as archive members, it is possible to support
14402 # filename-based versioning of shared library archives on AIX. While
14403 # this would work for both with and without runtime linking, it will
14404 # prevent static linking of such archives. So we do filename-based
14405 # shared library versioning with .so extension only, which is used
14406 # when both runtime linking and shared linking is enabled.
14407 # Unfortunately, runtime linking may impact performance, so we do
14408 # not want this to be the default eventually. Also, we use the
14409 # versioned .so libs for executables only if there is the -brtl
14410 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
14411 # To allow for filename-based versioning support, we need to create
14412 # libNAME.so.V as an archive file, containing:
14413 # *) an Import File, referring to the versioned filename of the
14414 # archive as well as the shared archive member, telling the
14415 # bitwidth (32 or 64) of that shared object, and providing the
14416 # list of exported symbols of that shared object, eventually
14417 # decorated with the 'weak' keyword
14418 # *) the shared object with the F_LOADONLY flag set, to really avoid
14419 # it being seen by the linker.
14420 # At run time we better use the real file rather than another symlink,
14421 # but for link time we create the symlink libNAME.so -> libNAME.so.V
14423 case $with_aix_soname,$aix_use_runtimelinking in
14424 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
14425 # soname into executable. Probably we can add versioning support to
14426 # collect2, so additional links can be useful in future.
14427 aix,yes) # traditional libtool
14428 dynamic_linker='AIX unversionable lib.so'
14429 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14430 # instead of lib<name>.a to let people know that these are not
14431 # typical AIX shared libraries.
14432 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14434 aix,no) # traditional AIX only
14435 dynamic_linker='AIX lib.a(lib.so.V)'
14436 # We preserve .a as extension for shared libraries through AIX4.2
14437 # and later when we are not doing run time linking.
14438 library_names_spec='$libname$release.a $libname.a'
14439 soname_spec='$libname$release$shared_ext$major'
14441 svr4,*) # full svr4 only
14442 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
14443 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
14444 # We do not specify a path in Import Files, so LIBPATH fires.
14445 shlibpath_overrides_runpath=yes
14447 *,yes) # both, prefer svr4
14448 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
14449 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
14450 # unpreferred sharedlib libNAME.a needs extra handling
14451 postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"'
14452 postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"'
14453 # We do not specify a path in Import Files, so LIBPATH fires.
14454 shlibpath_overrides_runpath=yes
14456 *,no) # both, prefer aix
14457 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
14458 library_names_spec='$libname$release.a $libname.a'
14459 soname_spec='$libname$release$shared_ext$major'
14460 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
14461 postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)'
14462 postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"'
14465 shlibpath_var=LIBPATH
14472 # Since July 2007 AmigaOS4 officially supports .so libraries.
14473 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
14474 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14477 library_names_spec='$libname.ixlibrary $libname.a'
14478 # Create ${libname}_ixlibrary.a entries in /sys/libs.
14479 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $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'
14485 library_names_spec='$libname$shared_ext'
14486 dynamic_linker="$host_os ld.so"
14487 shlibpath_var=LIBRARY_PATH
14491 version_type=linux # correct to gnu/linux during the next big refactor
14493 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14494 soname_spec='$libname$release$shared_ext$major'
14495 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14496 shlibpath_var=LD_LIBRARY_PATH
14497 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14498 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14499 # the default ld.so.conf also contains /usr/contrib/lib and
14500 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14501 # libtool to hard-code these into programs
14504 cygwin* | mingw* | pw32* | cegcc*)
14505 version_type=windows
14510 case $GCC,$cc_basename in
14513 library_names_spec='$libname.dll.a'
14514 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14515 postinstall_cmds='base_file=`basename \$file`~
14516 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
14517 dldir=$destdir/`dirname \$dlpath`~
14518 test -d \$dldir || mkdir -p \$dldir~
14519 $install_prog $dir/$dlname \$dldir/$dlname~
14520 chmod a+x \$dldir/$dlname~
14521 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
14522 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
14524 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14525 dlpath=$dir/\$dldll~
14527 shlibpath_overrides_runpath=yes
14531 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14532 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
14534 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
14537 # MinGW DLLs use traditional 'lib' prefix
14538 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
14541 # pw32 DLLs use 'pw' prefix rather than 'lib'
14542 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
14545 dynamic_linker='Win32 ld.exe'
14550 libname_spec='$name'
14551 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
14552 library_names_spec='$libname.dll.lib'
14556 sys_lib_search_path_spec=
14559 for lt_path in $LIB
14562 # Let DOS variable expansion print the short 8.3 style file name.
14563 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
14564 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
14567 # Convert to MSYS style.
14568 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
14571 # Convert to unix form, then to dos form, then back to unix form
14572 # but this time dos style (no spaces!) so that the unix form looks
14573 # like /cygdrive/c/PROGRA~1:/cygdr...
14574 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
14575 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
14576 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14579 sys_lib_search_path_spec=$LIB
14580 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
14581 # It is most probably a Windows format PATH.
14582 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14584 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14586 # FIXME: find the short name or the path components, as spaces are
14587 # common. (e.g. "Program Files" -> "PROGRA~1")
14591 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14592 postinstall_cmds='base_file=`basename \$file`~
14593 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
14594 dldir=$destdir/`dirname \$dlpath`~
14595 test -d \$dldir || mkdir -p \$dldir~
14596 $install_prog $dir/$dlname \$dldir/$dlname'
14597 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14598 dlpath=$dir/\$dldll~
14600 shlibpath_overrides_runpath=yes
14601 dynamic_linker='Win32 link.exe'
14605 # Assume MSVC wrapper
14606 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
14607 dynamic_linker='Win32 ld.exe'
14610 # FIXME: first we should search . and the directory the executable is in
14614 darwin* | rhapsody*)
14615 dynamic_linker="$host_os dyld"
14616 version_type=darwin
14619 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
14620 soname_spec='$libname$release$major$shared_ext'
14621 shlibpath_overrides_runpath=yes
14622 shlibpath_var=DYLD_LIBRARY_PATH
14623 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14625 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
14626 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14630 version_type=linux # correct to gnu/linux during the next big refactor
14633 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14634 soname_spec='$libname$release$shared_ext$major'
14635 shlibpath_var=LD_LIBRARY_PATH
14638 freebsd* | dragonfly*)
14639 # DragonFly does not have aout. When/if they implement a new
14640 # versioning mechanism, adjust this.
14641 if test -x /usr/bin/objformat; then
14642 objformat=`/usr/bin/objformat`
14645 freebsd[23].*) objformat=aout ;;
14646 *) objformat=elf ;;
14649 version_type=freebsd-$objformat
14650 case $version_type in
14652 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14653 soname_spec='$libname$release$shared_ext$major'
14658 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
14662 shlibpath_var=LD_LIBRARY_PATH
14665 shlibpath_overrides_runpath=yes
14667 freebsd3.[01]* | freebsdelf3.[01]*)
14668 shlibpath_overrides_runpath=yes
14669 hardcode_into_libs=yes
14671 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14672 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14673 shlibpath_overrides_runpath=no
14674 hardcode_into_libs=yes
14676 *) # from 4.6 on, and DragonFly
14677 shlibpath_overrides_runpath=yes
14678 hardcode_into_libs=yes
14684 version_type=linux # correct to gnu/linux during the next big refactor
14687 dynamic_linker="$host_os runtime_loader"
14688 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14689 soname_spec='$libname$release$shared_ext$major'
14690 shlibpath_var=LIBRARY_PATH
14691 shlibpath_overrides_runpath=no
14692 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
14693 hardcode_into_libs=yes
14696 hpux9* | hpux10* | hpux11*)
14697 # Give a soname corresponding to the major version so that dld.sl refuses to
14698 # link against other versions.
14705 hardcode_into_libs=yes
14706 dynamic_linker="$host_os dld.so"
14707 shlibpath_var=LD_LIBRARY_PATH
14708 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14709 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14710 soname_spec='$libname$release$shared_ext$major'
14711 if test 32 = "$HPUX_IA64_MODE"; then
14712 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14713 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
14715 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14716 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
14721 hardcode_into_libs=yes
14722 dynamic_linker="$host_os dld.sl"
14723 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14724 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14725 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14726 soname_spec='$libname$release$shared_ext$major'
14727 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14728 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14732 dynamic_linker="$host_os dld.sl"
14733 shlibpath_var=SHLIB_PATH
14734 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14735 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14736 soname_spec='$libname$release$shared_ext$major'
14739 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
14740 postinstall_cmds='chmod 555 $lib'
14741 # or fails outright, so override atomically:
14742 install_override_mode=555
14746 version_type=linux # correct to gnu/linux during the next big refactor
14749 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14750 soname_spec='$libname$release$shared_ext$major'
14751 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14752 shlibpath_var=LD_LIBRARY_PATH
14753 shlibpath_overrides_runpath=no
14754 hardcode_into_libs=yes
14757 irix5* | irix6* | nonstopux*)
14759 nonstopux*) version_type=nonstopux ;;
14761 if test yes = "$lt_cv_prog_gnu_ld"; then
14762 version_type=linux # correct to gnu/linux during the next big refactor
14769 soname_spec='$libname$release$shared_ext$major'
14770 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
14772 irix5* | nonstopux*)
14773 libsuff= shlibsuff=
14776 case $LD in # libtool.m4 will add one of these switches to LD
14777 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14778 libsuff= shlibsuff= libmagic=32-bit;;
14779 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14780 libsuff=32 shlibsuff=N32 libmagic=N32;;
14781 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14782 libsuff=64 shlibsuff=64 libmagic=64-bit;;
14783 *) libsuff= shlibsuff= libmagic=never-match;;
14787 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14788 shlibpath_overrides_runpath=no
14789 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
14790 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
14791 hardcode_into_libs=yes
14794 # No shared lib support for Linux oldld, aout, or coff.
14795 linux*oldld* | linux*aout* | linux*coff*)
14800 version_type=none # Android doesn't support versioned libraries.
14803 library_names_spec='$libname$release$shared_ext'
14804 soname_spec='$libname$release$shared_ext'
14806 shlibpath_var=LD_LIBRARY_PATH
14807 shlibpath_overrides_runpath=yes
14809 # This implies no fast_install, which is unacceptable.
14810 # Some rework will be needed to allow for fast_install
14811 # before this can be enabled.
14812 hardcode_into_libs=yes
14814 dynamic_linker='Android linker'
14815 # Don't embed -rpath directories since the linker doesn't support them.
14816 hardcode_libdir_flag_spec='-L$libdir'
14819 # This must be glibc/ELF.
14820 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
14821 version_type=linux # correct to gnu/linux during the next big refactor
14824 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14825 soname_spec='$libname$release$shared_ext$major'
14826 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14827 shlibpath_var=LD_LIBRARY_PATH
14828 shlibpath_overrides_runpath=no
14830 # Some binutils ld are patched to set DT_RUNPATH
14831 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
14832 $as_echo_n "(cached) " >&6
14834 lt_cv_shlibpath_overrides_runpath=no
14835 save_LDFLAGS=$LDFLAGS
14836 save_libdir=$libdir
14837 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
14838 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
14839 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14840 /* end confdefs.h. */
14850 if ac_fn_c_try_link "$LINENO"; then :
14851 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
14852 lt_cv_shlibpath_overrides_runpath=yes
14855 rm -f core conftest.err conftest.$ac_objext \
14856 conftest$ac_exeext conftest.$ac_ext
14857 LDFLAGS=$save_LDFLAGS
14858 libdir=$save_libdir
14862 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
14864 # This implies no fast_install, which is unacceptable.
14865 # Some rework will be needed to allow for fast_install
14866 # before this can be enabled.
14867 hardcode_into_libs=yes
14869 # Ideally, we could use ldconfig to report *all* directores which are
14870 # searched for libraries, however this is still not possible. Aside from not
14871 # being certain /sbin/ldconfig is available, command
14872 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
14873 # even though it is searched at run-time. Try to do the best guess by
14874 # appending ld.so.conf contents (and includes) to the search path.
14875 if test -f /etc/ld.so.conf; then
14876 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' ' '`
14877 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14880 # We used to test for /lib/ld.so.1 and disable shared libraries on
14881 # powerpc, because MkLinux only supported shared libraries with the
14882 # GNU dynamic linker. Since this was broken with cross compilers,
14883 # most powerpc-linux boxes support dynamic linking these days and
14884 # people can always --disable-shared, the test was removed, and we
14885 # assume the GNU/Linux dynamic linker is in use.
14886 dynamic_linker='GNU/Linux ld.so'
14893 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14894 soname_spec='${libname}${release}${shared_ext}$major'
14895 shlibpath_var=LD_LIBRARY_PATH
14896 shlibpath_overrides_runpath=no
14897 hardcode_into_libs=yes
14898 dynamic_linker='NetBSD ld.elf_so'
14905 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14906 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
14907 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14908 dynamic_linker='NetBSD (a.out) ld.so'
14910 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14911 soname_spec='$libname$release$shared_ext$major'
14912 dynamic_linker='NetBSD ld.elf_so'
14914 shlibpath_var=LD_LIBRARY_PATH
14915 shlibpath_overrides_runpath=yes
14916 hardcode_into_libs=yes
14920 version_type=linux # correct to gnu/linux during the next big refactor
14921 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14922 shlibpath_var=LD_LIBRARY_PATH
14923 shlibpath_overrides_runpath=yes
14930 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14931 soname_spec='$libname$release$shared_ext$major'
14932 shlibpath_var=LD_LIBRARY_PATH
14933 shlibpath_overrides_runpath=no
14934 hardcode_into_libs=yes
14935 dynamic_linker='ldqnx.so'
14938 openbsd* | bitrig*)
14940 sys_lib_dlsearch_path_spec=/usr/lib
14942 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
14947 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
14948 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14949 shlibpath_var=LD_LIBRARY_PATH
14950 shlibpath_overrides_runpath=yes
14954 libname_spec='$name'
14955 version_type=windows
14959 # OS/2 can only load a DLL with a base name of 8 characters or less.
14960 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
14961 v=$($ECHO $release$versuffix | tr -d .-);
14962 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
14963 $ECHO $n$v`$shared_ext'
14964 library_names_spec='${libname}_dll.$libext'
14965 dynamic_linker='OS/2 ld.exe'
14966 shlibpath_var=BEGINLIBPATH
14967 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14968 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14969 postinstall_cmds='base_file=`basename \$file`~
14970 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
14971 dldir=$destdir/`dirname \$dlpath`~
14972 test -d \$dldir || mkdir -p \$dldir~
14973 $install_prog $dir/$dlname \$dldir/$dlname~
14974 chmod a+x \$dldir/$dlname~
14975 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
14976 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
14978 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
14979 dlpath=$dir/\$dldll~
14983 osf3* | osf4* | osf5*)
14987 soname_spec='$libname$release$shared_ext$major'
14988 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14989 shlibpath_var=LD_LIBRARY_PATH
14990 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14991 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14999 version_type=linux # correct to gnu/linux during the next big refactor
15002 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15003 soname_spec='$libname$release$shared_ext$major'
15004 shlibpath_var=LD_LIBRARY_PATH
15005 shlibpath_overrides_runpath=yes
15006 hardcode_into_libs=yes
15007 # ldd complains unless libraries are executable
15008 postinstall_cmds='chmod +x $lib'
15013 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
15014 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15015 shlibpath_var=LD_LIBRARY_PATH
15016 shlibpath_overrides_runpath=yes
15017 if test yes = "$with_gnu_ld"; then
15024 version_type=linux # correct to gnu/linux during the next big refactor
15025 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15026 soname_spec='$libname$release$shared_ext$major'
15027 shlibpath_var=LD_LIBRARY_PATH
15028 case $host_vendor in
15030 shlibpath_overrides_runpath=no
15032 runpath_var=LD_RUN_PATH
15040 shlibpath_overrides_runpath=no
15041 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15047 if test -d /usr/nec; then
15048 version_type=linux # correct to gnu/linux during the next big refactor
15049 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
15050 soname_spec='$libname$shared_ext.$major'
15051 shlibpath_var=LD_LIBRARY_PATH
15055 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15059 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
15060 soname_spec='$libname$release$shared_ext$major'
15061 shlibpath_var=LD_LIBRARY_PATH
15062 shlibpath_overrides_runpath=yes
15063 hardcode_into_libs=yes
15064 if test yes = "$with_gnu_ld"; then
15065 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15067 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15070 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15074 sys_lib_dlsearch_path_spec='/usr/lib'
15078 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
15079 version_type=linux # correct to gnu/linux during the next big refactor
15082 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15083 shlibpath_var=LD_LIBRARY_PATH
15084 shlibpath_overrides_runpath=no
15085 hardcode_into_libs=yes
15089 version_type=linux # correct to gnu/linux during the next big refactor
15090 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15091 soname_spec='$libname$release$shared_ext$major'
15092 shlibpath_var=LD_LIBRARY_PATH
15099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
15100 $as_echo "$dynamic_linker" >&6; }
15101 test no = "$dynamic_linker" && can_build_shared=no
15103 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15104 if test yes = "$GCC"; then
15105 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15108 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
15109 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
15112 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
15113 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
15116 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
15117 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
15119 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
15120 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
15122 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
15123 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
15221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
15222 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
15224 if test -n "$hardcode_libdir_flag_spec" ||
15225 test -n "$runpath_var" ||
15226 test yes = "$hardcode_automatic"; then
15228 # We can hardcode non-existent directories.
15229 if test no != "$hardcode_direct" &&
15230 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15231 # have to relink, otherwise we might link with an installed library
15232 # when we should be linking with a yet-to-be-installed one
15233 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
15234 test no != "$hardcode_minus_L"; then
15235 # Linking always hardcodes the temporary library directory.
15236 hardcode_action=relink
15238 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15239 hardcode_action=immediate
15242 # We cannot hardcode anything, or else we can only hardcode existing
15244 hardcode_action=unsupported
15246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
15247 $as_echo "$hardcode_action" >&6; }
15249 if test relink = "$hardcode_action" ||
15250 test yes = "$inherit_rpath"; then
15251 # Fast installation is not supported
15252 enable_fast_install=no
15253 elif test yes = "$shlibpath_overrides_runpath" ||
15254 test no = "$enable_shared"; then
15255 # Fast installation is not necessary
15256 enable_fast_install=needless
15264 if test yes != "$enable_dlopen"; then
15265 enable_dlopen=unknown
15266 enable_dlopen_self=unknown
15267 enable_dlopen_self_static=unknown
15274 lt_cv_dlopen=load_add_on
15276 lt_cv_dlopen_self=yes
15279 mingw* | pw32* | cegcc*)
15280 lt_cv_dlopen=LoadLibrary
15285 lt_cv_dlopen=dlopen
15290 # if libdl is installed we need to link against it
15291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
15292 $as_echo_n "checking for dlopen in -ldl... " >&6; }
15293 if ${ac_cv_lib_dl_dlopen+:} false; then :
15294 $as_echo_n "(cached) " >&6
15296 ac_check_lib_save_LIBS=$LIBS
15298 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15299 /* end confdefs.h. */
15301 /* Override any GCC internal prototype to avoid an error.
15302 Use char because int might match the return type of a GCC
15303 builtin and then its argument prototype would still apply. */
15316 if ac_fn_c_try_link "$LINENO"; then :
15317 ac_cv_lib_dl_dlopen=yes
15319 ac_cv_lib_dl_dlopen=no
15321 rm -f core conftest.err conftest.$ac_objext \
15322 conftest$ac_exeext conftest.$ac_ext
15323 LIBS=$ac_check_lib_save_LIBS
15325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
15326 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
15327 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
15328 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
15333 lt_cv_dlopen_self=yes
15340 # Don't try to run any link tests for TPF. We know it's impossible
15341 # because TPF is a cross-compiler, and we know how we open DSOs.
15342 lt_cv_dlopen=dlopen
15344 lt_cv_dlopen_self=no
15348 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
15349 if test "x$ac_cv_func_shl_load" = xyes; then :
15350 lt_cv_dlopen=shl_load
15352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
15353 $as_echo_n "checking for shl_load in -ldld... " >&6; }
15354 if ${ac_cv_lib_dld_shl_load+:} false; then :
15355 $as_echo_n "(cached) " >&6
15357 ac_check_lib_save_LIBS=$LIBS
15359 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15360 /* end confdefs.h. */
15362 /* Override any GCC internal prototype to avoid an error.
15363 Use char because int might match the return type of a GCC
15364 builtin and then its argument prototype would still apply. */
15372 return shl_load ();
15377 if ac_fn_c_try_link "$LINENO"; then :
15378 ac_cv_lib_dld_shl_load=yes
15380 ac_cv_lib_dld_shl_load=no
15382 rm -f core conftest.err conftest.$ac_objext \
15383 conftest$ac_exeext conftest.$ac_ext
15384 LIBS=$ac_check_lib_save_LIBS
15386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
15387 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
15388 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
15389 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
15391 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
15392 if test "x$ac_cv_func_dlopen" = xyes; then :
15393 lt_cv_dlopen=dlopen
15395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
15396 $as_echo_n "checking for dlopen in -ldl... " >&6; }
15397 if ${ac_cv_lib_dl_dlopen+:} false; then :
15398 $as_echo_n "(cached) " >&6
15400 ac_check_lib_save_LIBS=$LIBS
15402 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15403 /* end confdefs.h. */
15405 /* Override any GCC internal prototype to avoid an error.
15406 Use char because int might match the return type of a GCC
15407 builtin and then its argument prototype would still apply. */
15420 if ac_fn_c_try_link "$LINENO"; then :
15421 ac_cv_lib_dl_dlopen=yes
15423 ac_cv_lib_dl_dlopen=no
15425 rm -f core conftest.err conftest.$ac_objext \
15426 conftest$ac_exeext conftest.$ac_ext
15427 LIBS=$ac_check_lib_save_LIBS
15429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
15430 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
15431 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
15432 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
15434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
15435 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
15436 if ${ac_cv_lib_svld_dlopen+:} false; then :
15437 $as_echo_n "(cached) " >&6
15439 ac_check_lib_save_LIBS=$LIBS
15440 LIBS="-lsvld $LIBS"
15441 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15442 /* end confdefs.h. */
15444 /* Override any GCC internal prototype to avoid an error.
15445 Use char because int might match the return type of a GCC
15446 builtin and then its argument prototype would still apply. */
15459 if ac_fn_c_try_link "$LINENO"; then :
15460 ac_cv_lib_svld_dlopen=yes
15462 ac_cv_lib_svld_dlopen=no
15464 rm -f core conftest.err conftest.$ac_objext \
15465 conftest$ac_exeext conftest.$ac_ext
15466 LIBS=$ac_check_lib_save_LIBS
15468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
15469 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
15470 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
15471 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
15473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
15474 $as_echo_n "checking for dld_link in -ldld... " >&6; }
15475 if ${ac_cv_lib_dld_dld_link+:} false; then :
15476 $as_echo_n "(cached) " >&6
15478 ac_check_lib_save_LIBS=$LIBS
15480 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15481 /* end confdefs.h. */
15483 /* Override any GCC internal prototype to avoid an error.
15484 Use char because int might match the return type of a GCC
15485 builtin and then its argument prototype would still apply. */
15493 return dld_link ();
15498 if ac_fn_c_try_link "$LINENO"; then :
15499 ac_cv_lib_dld_dld_link=yes
15501 ac_cv_lib_dld_dld_link=no
15503 rm -f core conftest.err conftest.$ac_objext \
15504 conftest$ac_exeext conftest.$ac_ext
15505 LIBS=$ac_check_lib_save_LIBS
15507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
15508 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
15509 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
15510 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
15531 if test no = "$lt_cv_dlopen"; then
15537 case $lt_cv_dlopen in
15539 save_CPPFLAGS=$CPPFLAGS
15540 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
15542 save_LDFLAGS=$LDFLAGS
15543 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
15546 LIBS="$lt_cv_dlopen_libs $LIBS"
15548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
15549 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
15550 if ${lt_cv_dlopen_self+:} false; then :
15551 $as_echo_n "(cached) " >&6
15553 if test yes = "$cross_compiling"; then :
15554 lt_cv_dlopen_self=cross
15556 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
15557 lt_status=$lt_dlunknown
15558 cat > conftest.$ac_ext <<_LT_EOF
15559 #line $LINENO "configure"
15560 #include "confdefs.h"
15569 # define LT_DLGLOBAL RTLD_GLOBAL
15572 # define LT_DLGLOBAL DL_GLOBAL
15574 # define LT_DLGLOBAL 0
15578 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
15579 find out it does not work in some platform. */
15580 #ifndef LT_DLLAZY_OR_NOW
15582 # define LT_DLLAZY_OR_NOW RTLD_LAZY
15585 # define LT_DLLAZY_OR_NOW DL_LAZY
15588 # define LT_DLLAZY_OR_NOW RTLD_NOW
15591 # define LT_DLLAZY_OR_NOW DL_NOW
15593 # define LT_DLLAZY_OR_NOW 0
15600 /* When -fvisibility=hidden is used, assume the code has been annotated
15601 correspondingly for the symbols needed. */
15602 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
15603 int fnord () __attribute__((visibility("default")));
15606 int fnord () { return 42; }
15609 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
15610 int status = $lt_dlunknown;
15614 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
15617 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
15618 else puts (dlerror ());
15620 /* dlclose (self); */
15628 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
15629 (eval $ac_link) 2>&5
15631 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15632 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
15633 (./conftest; exit; ) >&5 2>/dev/null
15635 case x$lt_status in
15636 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
15637 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
15638 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
15641 # compilation failed
15642 lt_cv_dlopen_self=no
15649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
15650 $as_echo "$lt_cv_dlopen_self" >&6; }
15652 if test yes = "$lt_cv_dlopen_self"; then
15653 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
15654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
15655 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
15656 if ${lt_cv_dlopen_self_static+:} false; then :
15657 $as_echo_n "(cached) " >&6
15659 if test yes = "$cross_compiling"; then :
15660 lt_cv_dlopen_self_static=cross
15662 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
15663 lt_status=$lt_dlunknown
15664 cat > conftest.$ac_ext <<_LT_EOF
15665 #line $LINENO "configure"
15666 #include "confdefs.h"
15675 # define LT_DLGLOBAL RTLD_GLOBAL
15678 # define LT_DLGLOBAL DL_GLOBAL
15680 # define LT_DLGLOBAL 0
15684 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
15685 find out it does not work in some platform. */
15686 #ifndef LT_DLLAZY_OR_NOW
15688 # define LT_DLLAZY_OR_NOW RTLD_LAZY
15691 # define LT_DLLAZY_OR_NOW DL_LAZY
15694 # define LT_DLLAZY_OR_NOW RTLD_NOW
15697 # define LT_DLLAZY_OR_NOW DL_NOW
15699 # define LT_DLLAZY_OR_NOW 0
15706 /* When -fvisibility=hidden is used, assume the code has been annotated
15707 correspondingly for the symbols needed. */
15708 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
15709 int fnord () __attribute__((visibility("default")));
15712 int fnord () { return 42; }
15715 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
15716 int status = $lt_dlunknown;
15720 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
15723 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
15724 else puts (dlerror ());
15726 /* dlclose (self); */
15734 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
15735 (eval $ac_link) 2>&5
15737 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15738 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
15739 (./conftest; exit; ) >&5 2>/dev/null
15741 case x$lt_status in
15742 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
15743 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
15744 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
15747 # compilation failed
15748 lt_cv_dlopen_self_static=no
15755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
15756 $as_echo "$lt_cv_dlopen_self_static" >&6; }
15759 CPPFLAGS=$save_CPPFLAGS
15760 LDFLAGS=$save_LDFLAGS
15765 case $lt_cv_dlopen_self in
15766 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
15767 *) enable_dlopen_self=unknown ;;
15770 case $lt_cv_dlopen_self_static in
15771 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
15772 *) enable_dlopen_self_static=unknown ;;
15794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
15795 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
15796 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
15797 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
15798 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
15799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15800 $as_echo "yes" >&6; }
15802 # FIXME - insert some real tests, host_os isn't really good enough
15805 if test -n "$STRIP"; then
15806 striplib="$STRIP -x"
15807 old_striplib="$STRIP -S"
15808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15809 $as_echo "yes" >&6; }
15811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15812 $as_echo "no" >&6; }
15816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15817 $as_echo "no" >&6; }
15833 # Report what library types will actually be built
15834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
15835 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
15836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
15837 $as_echo "$can_build_shared" >&6; }
15839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
15840 $as_echo_n "checking whether to build shared libraries... " >&6; }
15841 test no = "$can_build_shared" && enable_shared=no
15843 # On AIX, shared libraries and static libraries use the same namespace, and
15844 # are all built from PIC.
15847 test yes = "$enable_shared" && enable_static=no
15848 if test -n "$RANLIB"; then
15849 archive_cmds="$archive_cmds~\$RANLIB \$lib"
15850 postinstall_cmds='$RANLIB $lib'
15855 if test ia64 != "$host_cpu"; then
15856 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
15857 yes,aix,yes) ;; # shared object as lib.so file only
15858 yes,svr4,*) ;; # shared object as lib.so archive member only
15859 yes,*) enable_static=no ;; # shared object in lib.a archive as well
15864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
15865 $as_echo "$enable_shared" >&6; }
15867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
15868 $as_echo_n "checking whether to build static libraries... " >&6; }
15869 # Make sure either enable_shared or enable_static is yes.
15870 test yes = "$enable_shared" || enable_static=yes
15871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
15872 $as_echo "$enable_static" >&6; }
15879 ac_cpp='$CPP $CPPFLAGS'
15880 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15881 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15882 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15900 ac_config_commands="$ac_config_commands libtool"
15905 # Only expand once:
15909 cat >>confdefs.h <<_ACEOF
15910 #define SHELL "$SHELL"
15920 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
15921 if test -n "$ac_tool_prefix"; then
15922 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
15923 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
15924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15925 $as_echo_n "checking for $ac_word... " >&6; }
15926 if ${ac_cv_path_PKG_CONFIG+:} false; then :
15927 $as_echo_n "(cached) " >&6
15929 case $PKG_CONFIG in
15931 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
15934 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15935 for as_dir in $PATH
15938 test -z "$as_dir" && as_dir=.
15939 for ac_exec_ext in '' $ac_executable_extensions; do
15940 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15941 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
15942 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15952 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
15953 if test -n "$PKG_CONFIG"; then
15954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
15955 $as_echo "$PKG_CONFIG" >&6; }
15957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15958 $as_echo "no" >&6; }
15963 if test -z "$ac_cv_path_PKG_CONFIG"; then
15964 ac_pt_PKG_CONFIG=$PKG_CONFIG
15965 # Extract the first word of "pkg-config", so it can be a program name with args.
15966 set dummy pkg-config; ac_word=$2
15967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15968 $as_echo_n "checking for $ac_word... " >&6; }
15969 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
15970 $as_echo_n "(cached) " >&6
15972 case $ac_pt_PKG_CONFIG in
15974 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
15977 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15978 for as_dir in $PATH
15981 test -z "$as_dir" && as_dir=.
15982 for ac_exec_ext in '' $ac_executable_extensions; do
15983 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15984 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
15985 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15995 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
15996 if test -n "$ac_pt_PKG_CONFIG"; then
15997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
15998 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
16000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16001 $as_echo "no" >&6; }
16004 if test "x$ac_pt_PKG_CONFIG" = x; then
16007 case $cross_compiling:$ac_tool_warned in
16009 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
16010 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
16011 ac_tool_warned=yes ;;
16013 PKG_CONFIG=$ac_pt_PKG_CONFIG
16016 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
16020 if test -n "$PKG_CONFIG"; then
16021 _pkg_min_version=0.9.0
16022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
16023 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
16024 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
16025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16026 $as_echo "yes" >&6; }
16028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16029 $as_echo "no" >&6; }
16035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CHECK" >&5
16036 $as_echo_n "checking for CHECK... " >&6; }
16038 if test -n "$CHECK_CFLAGS"; then
16039 pkg_cv_CHECK_CFLAGS="$CHECK_CFLAGS"
16040 elif test -n "$PKG_CONFIG"; then
16041 if test -n "$PKG_CONFIG" && \
16042 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"check >= 0.9.4\""; } >&5
16043 ($PKG_CONFIG --exists --print-errors "check >= 0.9.4") 2>&5
16045 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16046 test $ac_status = 0; }; then
16047 pkg_cv_CHECK_CFLAGS=`$PKG_CONFIG --cflags "check >= 0.9.4" 2>/dev/null`
16048 test "x$?" != "x0" && pkg_failed=yes
16055 if test -n "$CHECK_LIBS"; then
16056 pkg_cv_CHECK_LIBS="$CHECK_LIBS"
16057 elif test -n "$PKG_CONFIG"; then
16058 if test -n "$PKG_CONFIG" && \
16059 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"check >= 0.9.4\""; } >&5
16060 ($PKG_CONFIG --exists --print-errors "check >= 0.9.4") 2>&5
16062 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16063 test $ac_status = 0; }; then
16064 pkg_cv_CHECK_LIBS=`$PKG_CONFIG --libs "check >= 0.9.4" 2>/dev/null`
16065 test "x$?" != "x0" && pkg_failed=yes
16075 if test $pkg_failed = yes; then
16076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16077 $as_echo "no" >&6; }
16079 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
16080 _pkg_short_errors_supported=yes
16082 _pkg_short_errors_supported=no
16084 if test $_pkg_short_errors_supported = yes; then
16085 CHECK_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "check >= 0.9.4" 2>&1`
16087 CHECK_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "check >= 0.9.4" 2>&1`
16089 # Put the nasty error message in config.log where it belongs
16090 echo "$CHECK_PKG_ERRORS" >&5
16093 elif test $pkg_failed = untried; then
16094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16095 $as_echo "no" >&6; }
16098 CHECK_CFLAGS=$pkg_cv_CHECK_CFLAGS
16099 CHECK_LIBS=$pkg_cv_CHECK_LIBS
16100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16101 $as_echo "yes" >&6; }
16104 if test "x$run_tests" = xyes; then
16106 RUN_TESTS_FALSE='#'
16113 # Check for various header files and associated libraries.
16114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing strerror" >&5
16115 $as_echo_n "checking for library containing strerror... " >&6; }
16116 if ${ac_cv_search_strerror+:} false; then :
16117 $as_echo_n "(cached) " >&6
16119 ac_func_search_save_LIBS=$LIBS
16120 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16121 /* end confdefs.h. */
16123 /* Override any GCC internal prototype to avoid an error.
16124 Use char because int might match the return type of a GCC
16125 builtin and then its argument prototype would still apply. */
16133 return strerror ();
16138 for ac_lib in '' cposix; do
16139 if test -z "$ac_lib"; then
16140 ac_res="none required"
16143 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
16145 if ac_fn_c_try_link "$LINENO"; then :
16146 ac_cv_search_strerror=$ac_res
16148 rm -f core conftest.err conftest.$ac_objext \
16150 if ${ac_cv_search_strerror+:} false; then :
16154 if ${ac_cv_search_strerror+:} false; then :
16157 ac_cv_search_strerror=no
16159 rm conftest.$ac_ext
16160 LIBS=$ac_func_search_save_LIBS
16162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_strerror" >&5
16163 $as_echo "$ac_cv_search_strerror" >&6; }
16164 ac_res=$ac_cv_search_strerror
16165 if test "$ac_res" != no; then :
16166 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
16175 LIBC_FATAL_STDERR_=1
16176 export LIBC_FATAL_STDERR_
16178 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
16179 if test "x$ac_cv_type_size_t" = xyes; then :
16183 cat >>confdefs.h <<_ACEOF
16184 #define size_t unsigned int
16189 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
16190 # for constant arguments. Useless!
16191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
16192 $as_echo_n "checking for working alloca.h... " >&6; }
16193 if ${ac_cv_working_alloca_h+:} false; then :
16194 $as_echo_n "(cached) " >&6
16196 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16197 /* end confdefs.h. */
16198 #include <alloca.h>
16202 char *p = (char *) alloca (2 * sizeof (int));
16208 if ac_fn_c_try_link "$LINENO"; then :
16209 ac_cv_working_alloca_h=yes
16211 ac_cv_working_alloca_h=no
16213 rm -f core conftest.err conftest.$ac_objext \
16214 conftest$ac_exeext conftest.$ac_ext
16216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
16217 $as_echo "$ac_cv_working_alloca_h" >&6; }
16218 if test $ac_cv_working_alloca_h = yes; then
16220 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
16224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
16225 $as_echo_n "checking for alloca... " >&6; }
16226 if ${ac_cv_func_alloca_works+:} false; then :
16227 $as_echo_n "(cached) " >&6
16229 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16230 /* end confdefs.h. */
16232 # define alloca __builtin_alloca
16235 # include <malloc.h>
16236 # define alloca _alloca
16238 # ifdef HAVE_ALLOCA_H
16239 # include <alloca.h>
16244 # ifndef alloca /* predefined by HP cc +Olibcalls */
16245 void *alloca (size_t);
16255 char *p = (char *) alloca (1);
16261 if ac_fn_c_try_link "$LINENO"; then :
16262 ac_cv_func_alloca_works=yes
16264 ac_cv_func_alloca_works=no
16266 rm -f core conftest.err conftest.$ac_objext \
16267 conftest$ac_exeext conftest.$ac_ext
16269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
16270 $as_echo "$ac_cv_func_alloca_works" >&6; }
16272 if test $ac_cv_func_alloca_works = yes; then
16274 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
16277 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
16278 # that cause trouble. Some versions do not even contain alloca or
16279 # contain a buggy version. If you still want to use their alloca,
16280 # use ar to extract alloca.o from them instead of compiling alloca.c.
16286 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
16288 $as_echo "#define C_ALLOCA 1" >>confdefs.h
16291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
16292 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
16293 if ${ac_cv_os_cray+:} false; then :
16294 $as_echo_n "(cached) " >&6
16296 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16297 /* end confdefs.h. */
16298 #if defined CRAY && ! defined CRAY2
16305 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16306 $EGREP "webecray" >/dev/null 2>&1; then :
16314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
16315 $as_echo "$ac_cv_os_cray" >&6; }
16316 if test $ac_cv_os_cray = yes; then
16317 for ac_func in _getb67 GETB67 getb67; do
16318 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16319 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
16320 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
16322 cat >>confdefs.h <<_ACEOF
16323 #define CRAY_STACKSEG_END $ac_func
16332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
16333 $as_echo_n "checking stack direction for C alloca... " >&6; }
16334 if ${ac_cv_c_stack_direction+:} false; then :
16335 $as_echo_n "(cached) " >&6
16337 if test "$cross_compiling" = yes; then :
16338 ac_cv_c_stack_direction=0
16340 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16341 /* end confdefs.h. */
16342 $ac_includes_default
16344 find_stack_direction (int *addr, int depth)
16346 int dir, dummy = 0;
16349 *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
16350 dir = depth ? find_stack_direction (addr, depth - 1) : 0;
16351 return dir + dummy;
16355 main (int argc, char **argv)
16357 return find_stack_direction (0, argc + !argv + 20) < 0;
16360 if ac_fn_c_try_run "$LINENO"; then :
16361 ac_cv_c_stack_direction=1
16363 ac_cv_c_stack_direction=-1
16365 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16366 conftest.$ac_objext conftest.beam conftest.$ac_ext
16370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
16371 $as_echo "$ac_cv_c_stack_direction" >&6; }
16372 cat >>confdefs.h <<_ACEOF
16373 #define STACK_DIRECTION $ac_cv_c_stack_direction
16381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether // is distinct from /" >&5
16382 $as_echo_n "checking whether // is distinct from /... " >&6; }
16383 if ${gl_cv_double_slash_root+:} false; then :
16384 $as_echo_n "(cached) " >&6
16386 if test x"$cross_compiling" = xyes ; then
16387 # When cross-compiling, there is no way to tell whether // is special
16388 # short of a list of hosts. However, the only known hosts to date
16389 # that have a distinct // are Apollo DomainOS (too old to port to),
16390 # Cygwin, and z/OS. If anyone knows of another system for which // has
16391 # special semantics and is distinct from /, please report it to
16392 # <bug-gnulib@gnu.org>.
16394 *-cygwin | i370-ibm-openedition)
16395 gl_cv_double_slash_root=yes ;;
16397 # Be optimistic and assume that / and // are the same when we
16399 gl_cv_double_slash_root='unknown, assuming no' ;;
16402 set x `ls -di / // 2>/dev/null`
16403 if test "$2" = "$4" && wc //dev/null >/dev/null 2>&1; then
16404 gl_cv_double_slash_root=no
16406 gl_cv_double_slash_root=yes
16410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_double_slash_root" >&5
16411 $as_echo "$gl_cv_double_slash_root" >&6; }
16412 if test "$gl_cv_double_slash_root" = yes; then
16414 $as_echo "#define DOUBLE_SLASH_IS_DISTINCT_ROOT 1" >>confdefs.h
16430 GNULIB_EUIDACCESS=0;
16431 GNULIB_FACCESSAT=0;
16434 GNULIB_FDATASYNC=0;
16436 GNULIB_FTRUNCATE=0;
16438 GNULIB_GETDOMAINNAME=0;
16439 GNULIB_GETDTABLESIZE=0;
16440 GNULIB_GETGROUPS=0;
16441 GNULIB_GETHOSTNAME=0;
16443 GNULIB_GETLOGIN_R=0;
16444 GNULIB_GETPAGESIZE=0;
16446 GNULIB_GETUSERSHELL=0;
16447 GNULIB_GROUP_MEMBER=0;
16459 GNULIB_READLINKAT=0;
16461 GNULIB_SETHOSTNAME=0;
16464 GNULIB_SYMLINKAT=0;
16466 GNULIB_TTYNAME_R=0;
16467 GNULIB_UNISTD_H_NONBLOCKING=0;
16468 GNULIB_UNISTD_H_SIGPIPE=0;
16483 HAVE_GETDTABLESIZE=1;
16485 HAVE_GETHOSTNAME=1;
16487 HAVE_GETPAGESIZE=1;
16489 HAVE_GROUP_MEMBER=1;
16499 HAVE_SETHOSTNAME=1;
16505 HAVE_DECL_ENVIRON=1;
16506 HAVE_DECL_FCHDIR=1;
16507 HAVE_DECL_FDATASYNC=1;
16508 HAVE_DECL_GETDOMAINNAME=1;
16509 HAVE_DECL_GETLOGIN=1;
16510 HAVE_DECL_GETLOGIN_R=1;
16511 HAVE_DECL_GETPAGESIZE=1;
16512 HAVE_DECL_GETUSERSHELL=1;
16513 HAVE_DECL_SETHOSTNAME=1;
16514 HAVE_DECL_TRUNCATE=1;
16515 HAVE_DECL_TTYNAME_R=1;
16517 HAVE_SYS_PARAM_H=0;
16522 REPLACE_FACCESSAT=0;
16523 REPLACE_FCHOWNAT=0;
16524 REPLACE_FTRUNCATE=0;
16526 REPLACE_GETDOMAINNAME=0;
16527 REPLACE_GETDTABLESIZE=0;
16528 REPLACE_GETLOGIN_R=0;
16529 REPLACE_GETGROUPS=0;
16530 REPLACE_GETPAGESIZE=0;
16540 REPLACE_READLINK=0;
16541 REPLACE_READLINKAT=0;
16545 REPLACE_SYMLINKAT=0;
16546 REPLACE_TRUNCATE=0;
16547 REPLACE_TTYNAME_R=0;
16549 REPLACE_UNLINKAT=0;
16552 UNISTD_H_HAVE_WINSOCK2_H=0;
16553 UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS=0;
16559 for ac_header in $ac_header_list
16561 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
16562 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
16564 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
16565 cat >>confdefs.h <<_ACEOF
16566 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
16582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if environ is properly declared" >&5
16583 $as_echo_n "checking if environ is properly declared... " >&6; }
16584 if ${gt_cv_var_environ_declaration+:} false; then :
16585 $as_echo_n "(cached) " >&6
16587 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16588 /* end confdefs.h. */
16590 #include <unistd.h>
16592 /* mingw, BeOS, Haiku declare environ in <stdlib.h>, not in <unistd.h>. */
16593 #include <stdlib.h>
16595 extern struct { int foo; } environ;
16604 if ac_fn_c_try_compile "$LINENO"; then :
16605 gt_cv_var_environ_declaration=no
16607 gt_cv_var_environ_declaration=yes
16609 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_var_environ_declaration" >&5
16612 $as_echo "$gt_cv_var_environ_declaration" >&6; }
16613 if test $gt_cv_var_environ_declaration = yes; then
16615 $as_echo "#define HAVE_ENVIRON_DECL 1" >>confdefs.h
16620 if test $gt_cv_var_environ_declaration != yes; then
16621 HAVE_DECL_ENVIRON=0
16626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the preprocessor supports include_next" >&5
16627 $as_echo_n "checking whether the preprocessor supports include_next... " >&6; }
16628 if ${gl_cv_have_include_next+:} false; then :
16629 $as_echo_n "(cached) " >&6
16631 rm -rf conftestd1a conftestd1b conftestd2
16632 mkdir conftestd1a conftestd1b conftestd2
16633 cat <<EOF > conftestd1a/conftest.h
16634 #define DEFINED_IN_CONFTESTD1
16635 #include_next <conftest.h>
16636 #ifdef DEFINED_IN_CONFTESTD2
16639 #error "include_next doesn't work"
16642 cat <<EOF > conftestd1b/conftest.h
16643 #define DEFINED_IN_CONFTESTD1
16645 #include_next <conftest.h>
16646 #ifdef DEFINED_IN_CONFTESTD2
16649 #error "include_next doesn't work"
16652 cat <<EOF > conftestd2/conftest.h
16653 #ifndef DEFINED_IN_CONFTESTD1
16654 #error "include_next test doesn't work"
16656 #define DEFINED_IN_CONFTESTD2
16658 gl_save_CPPFLAGS="$CPPFLAGS"
16659 CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1b -Iconftestd2"
16660 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16661 /* end confdefs.h. */
16662 #include <conftest.h>
16664 if ac_fn_c_try_compile "$LINENO"; then :
16665 gl_cv_have_include_next=yes
16667 CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1a -Iconftestd2"
16668 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16669 /* end confdefs.h. */
16670 #include <conftest.h>
16672 if ac_fn_c_try_compile "$LINENO"; then :
16673 gl_cv_have_include_next=buggy
16675 gl_cv_have_include_next=no
16677 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16680 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16681 CPPFLAGS="$gl_save_CPPFLAGS"
16682 rm -rf conftestd1a conftestd1b conftestd2
16685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_have_include_next" >&5
16686 $as_echo "$gl_cv_have_include_next" >&6; }
16687 PRAGMA_SYSTEM_HEADER=
16688 if test $gl_cv_have_include_next = yes; then
16689 INCLUDE_NEXT=include_next
16690 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next
16691 if test -n "$GCC"; then
16692 PRAGMA_SYSTEM_HEADER='#pragma GCC system_header'
16695 if test $gl_cv_have_include_next = buggy; then
16696 INCLUDE_NEXT=include
16697 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next
16699 INCLUDE_NEXT=include
16700 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include
16706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system header files limit the line length" >&5
16707 $as_echo_n "checking whether system header files limit the line length... " >&6; }
16708 if ${gl_cv_pragma_columns+:} false; then :
16709 $as_echo_n "(cached) " >&6
16711 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16712 /* end confdefs.h. */
16719 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16720 $EGREP "choke me" >/dev/null 2>&1; then :
16721 gl_cv_pragma_columns=yes
16723 gl_cv_pragma_columns=no
16729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_pragma_columns" >&5
16730 $as_echo "$gl_cv_pragma_columns" >&6; }
16731 if test $gl_cv_pragma_columns = yes; then
16732 PRAGMA_COLUMNS="#pragma COLUMNS 10000"
16740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for complete errno.h" >&5
16741 $as_echo_n "checking for complete errno.h... " >&6; }
16742 if ${gl_cv_header_errno_h_complete+:} false; then :
16743 $as_echo_n "(cached) " >&6
16746 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16747 /* end confdefs.h. */
16750 #if !defined ETXTBSY
16753 #if !defined ENOMSG
16759 #if !defined ENOLINK
16762 #if !defined EPROTO
16765 #if !defined EMULTIHOP
16768 #if !defined EBADMSG
16771 #if !defined EOVERFLOW
16774 #if !defined ENOTSUP
16777 #if !defined ENETRESET
16780 #if !defined ECONNABORTED
16783 #if !defined ESTALE
16786 #if !defined EDQUOT
16789 #if !defined ECANCELED
16792 #if !defined EOWNERDEAD
16795 #if !defined ENOTRECOVERABLE
16798 #if !defined EILSEQ
16803 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16804 $EGREP "booboo" >/dev/null 2>&1; then :
16805 gl_cv_header_errno_h_complete=no
16807 gl_cv_header_errno_h_complete=yes
16813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_complete" >&5
16814 $as_echo "$gl_cv_header_errno_h_complete" >&6; }
16815 if test $gl_cv_header_errno_h_complete = yes; then
16826 if test $gl_cv_have_include_next = yes; then
16827 gl_cv_next_errno_h='<'errno.h'>'
16829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <errno.h>" >&5
16830 $as_echo_n "checking absolute name of <errno.h>... " >&6; }
16831 if ${gl_cv_next_errno_h+:} false; then :
16832 $as_echo_n "(cached) " >&6
16837 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16838 /* end confdefs.h. */
16842 aix*) gl_absname_cpp="$ac_cpp -C" ;;
16843 *) gl_absname_cpp="$ac_cpp" ;;
16848 gl_dirsep_regex='[/\\]'
16851 gl_dirsep_regex='\/'
16854 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
16855 gl_header_literal_regex=`echo 'errno.h' \
16856 | sed -e "$gl_make_literal_regex_sed"`
16857 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
16858 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
16864 gl_cv_absolute_errno_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
16865 sed -n "$gl_absolute_header_sed"`
16867 gl_header=$gl_cv_absolute_errno_h
16868 gl_cv_next_errno_h='"'$gl_header'"'
16872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_errno_h" >&5
16873 $as_echo "$gl_cv_next_errno_h" >&6; }
16875 NEXT_ERRNO_H=$gl_cv_next_errno_h
16877 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
16878 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
16879 gl_next_as_first_directive='<'errno.h'>'
16881 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
16882 gl_next_as_first_directive=$gl_cv_next_errno_h
16884 NEXT_AS_FIRST_DIRECTIVE_ERRNO_H=$gl_next_as_first_directive
16892 if test -n "$ERRNO_H"; then
16893 GL_GENERATE_ERRNO_H_TRUE=
16894 GL_GENERATE_ERRNO_H_FALSE='#'
16896 GL_GENERATE_ERRNO_H_TRUE='#'
16897 GL_GENERATE_ERRNO_H_FALSE=
16901 if test -n "$ERRNO_H"; then
16902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EMULTIHOP value" >&5
16903 $as_echo_n "checking for EMULTIHOP value... " >&6; }
16904 if ${gl_cv_header_errno_h_EMULTIHOP+:} false; then :
16905 $as_echo_n "(cached) " >&6
16908 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16909 /* end confdefs.h. */
16917 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16918 $EGREP "yes" >/dev/null 2>&1; then :
16919 gl_cv_header_errno_h_EMULTIHOP=yes
16921 gl_cv_header_errno_h_EMULTIHOP=no
16925 if test $gl_cv_header_errno_h_EMULTIHOP = no; then
16926 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16927 /* end confdefs.h. */
16929 #define _XOPEN_SOURCE_EXTENDED 1
16936 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16937 $EGREP "yes" >/dev/null 2>&1; then :
16938 gl_cv_header_errno_h_EMULTIHOP=hidden
16942 if test $gl_cv_header_errno_h_EMULTIHOP = hidden; then
16943 if ac_fn_c_compute_int "$LINENO" "EMULTIHOP" "gl_cv_header_errno_h_EMULTIHOP" "
16944 #define _XOPEN_SOURCE_EXTENDED 1
16946 /* The following two lines are a workaround against an autoconf-2.52 bug. */
16948 #include <stdlib.h>
16957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_EMULTIHOP" >&5
16958 $as_echo "$gl_cv_header_errno_h_EMULTIHOP" >&6; }
16959 case $gl_cv_header_errno_h_EMULTIHOP in
16961 EMULTIHOP_HIDDEN=0; EMULTIHOP_VALUE=
16964 EMULTIHOP_HIDDEN=1; EMULTIHOP_VALUE="$gl_cv_header_errno_h_EMULTIHOP"
16972 if test -n "$ERRNO_H"; then
16973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ENOLINK value" >&5
16974 $as_echo_n "checking for ENOLINK value... " >&6; }
16975 if ${gl_cv_header_errno_h_ENOLINK+:} false; then :
16976 $as_echo_n "(cached) " >&6
16979 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16980 /* end confdefs.h. */
16988 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16989 $EGREP "yes" >/dev/null 2>&1; then :
16990 gl_cv_header_errno_h_ENOLINK=yes
16992 gl_cv_header_errno_h_ENOLINK=no
16996 if test $gl_cv_header_errno_h_ENOLINK = no; then
16997 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16998 /* end confdefs.h. */
17000 #define _XOPEN_SOURCE_EXTENDED 1
17007 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17008 $EGREP "yes" >/dev/null 2>&1; then :
17009 gl_cv_header_errno_h_ENOLINK=hidden
17013 if test $gl_cv_header_errno_h_ENOLINK = hidden; then
17014 if ac_fn_c_compute_int "$LINENO" "ENOLINK" "gl_cv_header_errno_h_ENOLINK" "
17015 #define _XOPEN_SOURCE_EXTENDED 1
17017 /* The following two lines are a workaround against an autoconf-2.52 bug. */
17019 #include <stdlib.h>
17028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_ENOLINK" >&5
17029 $as_echo "$gl_cv_header_errno_h_ENOLINK" >&6; }
17030 case $gl_cv_header_errno_h_ENOLINK in
17032 ENOLINK_HIDDEN=0; ENOLINK_VALUE=
17035 ENOLINK_HIDDEN=1; ENOLINK_VALUE="$gl_cv_header_errno_h_ENOLINK"
17043 if test -n "$ERRNO_H"; then
17044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EOVERFLOW value" >&5
17045 $as_echo_n "checking for EOVERFLOW value... " >&6; }
17046 if ${gl_cv_header_errno_h_EOVERFLOW+:} false; then :
17047 $as_echo_n "(cached) " >&6
17050 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17051 /* end confdefs.h. */
17059 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17060 $EGREP "yes" >/dev/null 2>&1; then :
17061 gl_cv_header_errno_h_EOVERFLOW=yes
17063 gl_cv_header_errno_h_EOVERFLOW=no
17067 if test $gl_cv_header_errno_h_EOVERFLOW = no; then
17068 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17069 /* end confdefs.h. */
17071 #define _XOPEN_SOURCE_EXTENDED 1
17078 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17079 $EGREP "yes" >/dev/null 2>&1; then :
17080 gl_cv_header_errno_h_EOVERFLOW=hidden
17084 if test $gl_cv_header_errno_h_EOVERFLOW = hidden; then
17085 if ac_fn_c_compute_int "$LINENO" "EOVERFLOW" "gl_cv_header_errno_h_EOVERFLOW" "
17086 #define _XOPEN_SOURCE_EXTENDED 1
17088 /* The following two lines are a workaround against an autoconf-2.52 bug. */
17090 #include <stdlib.h>
17099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_EOVERFLOW" >&5
17100 $as_echo "$gl_cv_header_errno_h_EOVERFLOW" >&6; }
17101 case $gl_cv_header_errno_h_EOVERFLOW in
17103 EOVERFLOW_HIDDEN=0; EOVERFLOW_VALUE=
17106 EOVERFLOW_HIDDEN=1; EOVERFLOW_VALUE="$gl_cv_header_errno_h_EOVERFLOW"
17114 ac_fn_c_check_decl "$LINENO" "strerror_r" "ac_cv_have_decl_strerror_r" "$ac_includes_default"
17115 if test "x$ac_cv_have_decl_strerror_r" = xyes; then :
17121 cat >>confdefs.h <<_ACEOF
17122 #define HAVE_DECL_STRERROR_R $ac_have_decl
17125 for ac_func in strerror_r
17127 ac_fn_c_check_func "$LINENO" "strerror_r" "ac_cv_func_strerror_r"
17128 if test "x$ac_cv_func_strerror_r" = xyes; then :
17129 cat >>confdefs.h <<_ACEOF
17130 #define HAVE_STRERROR_R 1
17136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strerror_r returns char *" >&5
17137 $as_echo_n "checking whether strerror_r returns char *... " >&6; }
17138 if ${ac_cv_func_strerror_r_char_p+:} false; then :
17139 $as_echo_n "(cached) " >&6
17142 ac_cv_func_strerror_r_char_p=no
17143 if test $ac_cv_have_decl_strerror_r = yes; then
17144 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17145 /* end confdefs.h. */
17146 $ac_includes_default
17152 char x = *strerror_r (0, buf, sizeof buf);
17153 char *p = strerror_r (0, buf, sizeof buf);
17160 if ac_fn_c_try_compile "$LINENO"; then :
17161 ac_cv_func_strerror_r_char_p=yes
17163 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17165 # strerror_r is not declared. Choose between
17166 # systems that have relatively inaccessible declarations for the
17167 # function. BeOS and DEC UNIX 4.0 fall in this category, but the
17168 # former has a strerror_r that returns char*, while the latter
17169 # has a strerror_r that returns `int'.
17170 # This test should segfault on the DEC system.
17171 if test "$cross_compiling" = yes; then :
17174 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17175 /* end confdefs.h. */
17176 $ac_includes_default
17177 extern char *strerror_r ();
17182 char x = *strerror_r (0, buf, sizeof buf);
17183 return ! isalpha (x);
17188 if ac_fn_c_try_run "$LINENO"; then :
17189 ac_cv_func_strerror_r_char_p=yes
17191 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17192 conftest.$ac_objext conftest.beam conftest.$ac_ext
17198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strerror_r_char_p" >&5
17199 $as_echo "$ac_cv_func_strerror_r_char_p" >&6; }
17200 if test $ac_cv_func_strerror_r_char_p = yes; then
17202 $as_echo "#define STRERROR_R_CHAR_P 1" >>confdefs.h
17207 XGETTEXT_EXTRA_OPTIONS=
17214 GNULIB_NONBLOCKING=0;
17226 for ac_func in $ac_func_list
17228 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
17229 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
17230 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
17231 cat >>confdefs.h <<_ACEOF
17232 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
17245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fcntl.h" >&5
17246 $as_echo_n "checking for working fcntl.h... " >&6; }
17247 if ${gl_cv_header_working_fcntl_h+:} false; then :
17248 $as_echo_n "(cached) " >&6
17250 if test "$cross_compiling" = yes; then :
17252 # Guess 'no' on native Windows.
17253 mingw*) gl_cv_header_working_fcntl_h='no' ;;
17254 *) gl_cv_header_working_fcntl_h=cross-compiling ;;
17258 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17259 /* end confdefs.h. */
17260 #include <sys/types.h>
17261 #include <sys/stat.h>
17263 # include <unistd.h>
17264 #else /* on Windows with MSVC */
17266 # include <stdlib.h>
17267 # defined sleep(n) _sleep ((n) * 1000)
17271 #define O_NOATIME 0
17274 #define O_NOFOLLOW 0
17276 static int const constants[] =
17278 O_CREAT, O_EXCL, O_NOCTTY, O_TRUNC, O_APPEND,
17279 O_NONBLOCK, O_SYNC, O_ACCMODE, O_RDONLY, O_RDWR, O_WRONLY
17286 int result = !constants;
17289 static char const sym[] = "conftest.sym";
17290 if (symlink ("/dev/null", sym) != 0)
17294 int fd = open (sym, O_WRONLY | O_NOFOLLOW | O_CREAT, 0);
17301 if (unlink (sym) != 0 || symlink (".", sym) != 0)
17305 int fd = open (sym, O_RDONLY | O_NOFOLLOW);
17316 static char const file[] = "confdefs.h";
17317 int fd = open (file, O_RDONLY | O_NOATIME);
17323 if (fstat (fd, &st0) != 0)
17329 if (read (fd, &c, 1) != 1)
17333 if (close (fd) != 0)
17338 if (stat (file, &st1) != 0)
17341 if (st0.st_atime != st1.st_atime)
17353 if ac_fn_c_try_run "$LINENO"; then :
17354 gl_cv_header_working_fcntl_h=yes
17357 4) gl_cv_header_working_fcntl_h='no (bad O_NOFOLLOW)';; #(
17358 64) gl_cv_header_working_fcntl_h='no (bad O_NOATIME)';; #(
17359 68) gl_cv_header_working_fcntl_h='no (bad O_NOATIME, O_NOFOLLOW)';; #(
17360 *) gl_cv_header_working_fcntl_h='no';;
17363 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17364 conftest.$ac_objext conftest.beam conftest.$ac_ext
17369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_fcntl_h" >&5
17370 $as_echo "$gl_cv_header_working_fcntl_h" >&6; }
17372 case $gl_cv_header_working_fcntl_h in #(
17373 *O_NOATIME* | no | cross-compiling) ac_val=0;; #(
17377 cat >>confdefs.h <<_ACEOF
17378 #define HAVE_WORKING_O_NOATIME $ac_val
17382 case $gl_cv_header_working_fcntl_h in #(
17383 *O_NOFOLLOW* | no | cross-compiling) ac_val=0;; #(
17387 cat >>confdefs.h <<_ACEOF
17388 #define HAVE_WORKING_O_NOFOLLOW $ac_val
17392 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
17393 if test "x$ac_cv_type_pid_t" = xyes; then :
17397 cat >>confdefs.h <<_ACEOF
17403 ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
17404 if test "x$ac_cv_type_mode_t" = xyes; then :
17408 cat >>confdefs.h <<_ACEOF
17419 GNULIB_GETTIMEOFDAY=0;
17420 HAVE_GETTIMEOFDAY=1;
17421 HAVE_STRUCT_TIMEVAL=1;
17423 REPLACE_GETTIMEOFDAY=0;
17424 REPLACE_STRUCT_TIMEVAL=0;
17426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
17427 $as_echo_n "checking for C/C++ restrict keyword... " >&6; }
17428 if ${ac_cv_c_restrict+:} false; then :
17429 $as_echo_n "(cached) " >&6
17431 ac_cv_c_restrict=no
17432 # The order here caters to the fact that C++ does not require restrict.
17433 for ac_kw in __restrict __restrict__ _Restrict restrict; do
17434 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17435 /* end confdefs.h. */
17436 typedef int *int_ptr;
17437 int foo (int_ptr $ac_kw ip) { return ip[0]; }
17438 int bar (int [$ac_kw]); /* Catch GCC bug 14050. */
17439 int bar (int ip[$ac_kw]) { return ip[0]; }
17447 return foo (t) + bar (t);
17453 if ac_fn_c_try_compile "$LINENO"; then :
17454 ac_cv_c_restrict=$ac_kw
17456 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17457 test "$ac_cv_c_restrict" != no && break
17461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
17462 $as_echo "$ac_cv_c_restrict" >&6; }
17464 case $ac_cv_c_restrict in
17466 no) $as_echo "#define restrict /**/" >>confdefs.h
17468 *) cat >>confdefs.h <<_ACEOF
17469 #define restrict $ac_cv_c_restrict
17491 if test $gl_cv_have_include_next = yes; then
17492 gl_cv_next_sys_time_h='<'sys/time.h'>'
17494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/time.h>" >&5
17495 $as_echo_n "checking absolute name of <sys/time.h>... " >&6; }
17496 if ${gl_cv_next_sys_time_h+:} false; then :
17497 $as_echo_n "(cached) " >&6
17500 if test $ac_cv_header_sys_time_h = yes; then
17505 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17506 /* end confdefs.h. */
17507 #include <sys/time.h>
17510 aix*) gl_absname_cpp="$ac_cpp -C" ;;
17511 *) gl_absname_cpp="$ac_cpp" ;;
17516 gl_dirsep_regex='[/\\]'
17519 gl_dirsep_regex='\/'
17522 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
17523 gl_header_literal_regex=`echo 'sys/time.h' \
17524 | sed -e "$gl_make_literal_regex_sed"`
17525 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
17526 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
17532 gl_cv_absolute_sys_time_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
17533 sed -n "$gl_absolute_header_sed"`
17535 gl_header=$gl_cv_absolute_sys_time_h
17536 gl_cv_next_sys_time_h='"'$gl_header'"'
17538 gl_cv_next_sys_time_h='<'sys/time.h'>'
17543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_time_h" >&5
17544 $as_echo "$gl_cv_next_sys_time_h" >&6; }
17546 NEXT_SYS_TIME_H=$gl_cv_next_sys_time_h
17548 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
17549 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
17550 gl_next_as_first_directive='<'sys/time.h'>'
17552 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
17553 gl_next_as_first_directive=$gl_cv_next_sys_time_h
17555 NEXT_AS_FIRST_DIRECTIVE_SYS_TIME_H=$gl_next_as_first_directive
17561 if test $ac_cv_header_sys_time_h != yes; then
17569 if test $ac_cv_header_sys_socket_h != yes; then
17570 for ac_header in winsock2.h
17572 ac_fn_c_check_header_mongrel "$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
17573 if test "x$ac_cv_header_winsock2_h" = xyes; then :
17574 cat >>confdefs.h <<_ACEOF
17575 #define HAVE_WINSOCK2_H 1
17583 if test "$ac_cv_header_winsock2_h" = yes; then
17585 UNISTD_H_HAVE_WINSOCK2_H=1
17586 SYS_IOCTL_H_HAVE_WINSOCK2_H=1
17592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timeval" >&5
17593 $as_echo_n "checking for struct timeval... " >&6; }
17594 if ${gl_cv_sys_struct_timeval+:} false; then :
17595 $as_echo_n "(cached) " >&6
17597 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17598 /* end confdefs.h. */
17599 #if HAVE_SYS_TIME_H
17600 #include <sys/time.h>
17603 #if HAVE_WINSOCK2_H
17604 # include <winsock2.h>
17610 static struct timeval x; x.tv_sec = x.tv_usec;
17615 if ac_fn_c_try_compile "$LINENO"; then :
17616 gl_cv_sys_struct_timeval=yes
17618 gl_cv_sys_struct_timeval=no
17620 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timeval" >&5
17624 $as_echo "$gl_cv_sys_struct_timeval" >&6; }
17625 if test $gl_cv_sys_struct_timeval != yes; then
17626 HAVE_STRUCT_TIMEVAL=0
17628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wide-enough struct timeval.tv_sec member" >&5
17629 $as_echo_n "checking for wide-enough struct timeval.tv_sec member... " >&6; }
17630 if ${gl_cv_sys_struct_timeval_tv_sec+:} false; then :
17631 $as_echo_n "(cached) " >&6
17633 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17634 /* end confdefs.h. */
17635 #if HAVE_SYS_TIME_H
17636 #include <sys/time.h>
17639 #if HAVE_WINSOCK2_H
17640 # include <winsock2.h>
17646 static struct timeval x;
17647 typedef int verify_tv_sec_type[
17648 sizeof (time_t) <= sizeof x.tv_sec ? 1 : -1
17655 if ac_fn_c_try_compile "$LINENO"; then :
17656 gl_cv_sys_struct_timeval_tv_sec=yes
17658 gl_cv_sys_struct_timeval_tv_sec=no
17660 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timeval_tv_sec" >&5
17664 $as_echo "$gl_cv_sys_struct_timeval_tv_sec" >&6; }
17665 if test $gl_cv_sys_struct_timeval_tv_sec != yes; then
17666 REPLACE_STRUCT_TIMEVAL=1
17680 NEED_LOCALTIME_BUFFER=0
17685 GNULIB_LOCALTIME=0;
17686 GNULIB_NANOSLEEP=0;
17693 HAVE_DECL_LOCALTIME_R=1;
17699 REPLACE_CTIME=GNULIB_PORTCHECK;
17700 REPLACE_LOCALTIME_R=GNULIB_PORTCHECK;
17701 REPLACE_MKTIME=GNULIB_PORTCHECK;
17702 REPLACE_NANOSLEEP=GNULIB_PORTCHECK;
17703 REPLACE_STRFTIME=GNULIB_PORTCHECK;
17704 REPLACE_TIMEGM=GNULIB_PORTCHECK;
17705 REPLACE_TZSET=GNULIB_PORTCHECK;
17707 : ${GNULIB_GETTIMEOFDAY=0};
17709 REPLACE_LOCALTIME=0;
17715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit off_t" >&5
17716 $as_echo_n "checking for 64-bit off_t... " >&6; }
17717 if ${gl_cv_type_off_t_64+:} false; then :
17718 $as_echo_n "(cached) " >&6
17720 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17721 /* end confdefs.h. */
17722 #include <sys/types.h>
17723 int verify_off_t_size[sizeof (off_t) >= 8 ? 1 : -1];
17733 if ac_fn_c_try_compile "$LINENO"; then :
17734 gl_cv_type_off_t_64=yes
17736 gl_cv_type_off_t_64=no
17738 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_type_off_t_64" >&5
17742 $as_echo "$gl_cv_type_off_t_64" >&6; }
17743 if test $gl_cv_type_off_t_64 = no; then
17744 WINDOWS_64_BIT_OFF_T=1
17746 WINDOWS_64_BIT_OFF_T=0
17748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit st_size" >&5
17749 $as_echo_n "checking for 64-bit st_size... " >&6; }
17750 if ${gl_cv_member_st_size_64+:} false; then :
17751 $as_echo_n "(cached) " >&6
17753 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17754 /* end confdefs.h. */
17755 #include <sys/types.h>
17757 int verify_st_size_size[sizeof (buf.st_size) >= 8 ? 1 : -1];
17767 if ac_fn_c_try_compile "$LINENO"; then :
17768 gl_cv_member_st_size_64=yes
17770 gl_cv_member_st_size_64=no
17772 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_member_st_size_64" >&5
17776 $as_echo "$gl_cv_member_st_size_64" >&6; }
17777 if test $gl_cv_member_st_size_64 = no; then
17778 WINDOWS_64_BIT_ST_SIZE=1
17780 WINDOWS_64_BIT_ST_SIZE=0
17784 WINDOWS_64_BIT_OFF_T=0
17785 WINDOWS_64_BIT_ST_SIZE=0
17801 if test $gl_cv_have_include_next = yes; then
17802 gl_cv_next_limits_h='<'limits.h'>'
17804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <limits.h>" >&5
17805 $as_echo_n "checking absolute name of <limits.h>... " >&6; }
17806 if ${gl_cv_next_limits_h+:} false; then :
17807 $as_echo_n "(cached) " >&6
17810 if test $ac_cv_header_limits_h = yes; then
17815 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17816 /* end confdefs.h. */
17817 #include <limits.h>
17820 aix*) gl_absname_cpp="$ac_cpp -C" ;;
17821 *) gl_absname_cpp="$ac_cpp" ;;
17826 gl_dirsep_regex='[/\\]'
17829 gl_dirsep_regex='\/'
17832 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
17833 gl_header_literal_regex=`echo 'limits.h' \
17834 | sed -e "$gl_make_literal_regex_sed"`
17835 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
17836 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
17842 gl_cv_absolute_limits_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
17843 sed -n "$gl_absolute_header_sed"`
17845 gl_header=$gl_cv_absolute_limits_h
17846 gl_cv_next_limits_h='"'$gl_header'"'
17848 gl_cv_next_limits_h='<'limits.h'>'
17853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_limits_h" >&5
17854 $as_echo "$gl_cv_next_limits_h" >&6; }
17856 NEXT_LIMITS_H=$gl_cv_next_limits_h
17858 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
17859 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
17860 gl_next_as_first_directive='<'limits.h'>'
17862 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
17863 gl_next_as_first_directive=$gl_cv_next_limits_h
17865 NEXT_AS_FIRST_DIRECTIVE_LIMITS_H=$gl_next_as_first_directive
17871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether limits.h has LLONG_MAX, WORD_BIT, ULLONG_WIDTH etc." >&5
17872 $as_echo_n "checking whether limits.h has LLONG_MAX, WORD_BIT, ULLONG_WIDTH etc.... " >&6; }
17873 if ${gl_cv_header_limits_width+:} false; then :
17874 $as_echo_n "(cached) " >&6
17876 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17877 /* end confdefs.h. */
17878 #ifndef __STDC_WANT_IEC_60559_BFP_EXT__
17879 #define __STDC_WANT_IEC_60559_BFP_EXT__ 1
17881 #include <limits.h>
17882 long long llm = LLONG_MAX;
17884 int ullw = ULLONG_WIDTH;
17894 if ac_fn_c_try_compile "$LINENO"; then :
17895 gl_cv_header_limits_width=yes
17897 gl_cv_header_limits_width=no
17899 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_limits_width" >&5
17902 $as_echo "$gl_cv_header_limits_width" >&6; }
17903 if test "$gl_cv_header_limits_width" = yes; then
17909 if test -n "$LIMITS_H"; then
17910 GL_GENERATE_LIMITS_H_TRUE=
17911 GL_GENERATE_LIMITS_H_FALSE='#'
17913 GL_GENERATE_LIMITS_H_TRUE='#'
17914 GL_GENERATE_LIMITS_H_FALSE=
17919 if test "X$prefix" = "XNONE"; then
17920 acl_final_prefix="$ac_default_prefix"
17922 acl_final_prefix="$prefix"
17924 if test "X$exec_prefix" = "XNONE"; then
17925 acl_final_exec_prefix='${prefix}'
17927 acl_final_exec_prefix="$exec_prefix"
17929 acl_save_prefix="$prefix"
17930 prefix="$acl_final_prefix"
17931 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
17932 prefix="$acl_save_prefix"
17936 # Check whether --with-gnu-ld was given.
17937 if test "${with_gnu_ld+set}" = set; then :
17938 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
17943 # Prepare PATH_SEPARATOR.
17944 # The user is always right.
17945 if test "${PATH_SEPARATOR+set}" != set; then
17946 # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
17947 # contains only /bin. Note that ksh looks also at the FPATH variable,
17948 # so we have to set that as well for the test.
17950 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
17951 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
17952 || PATH_SEPARATOR=';'
17956 if test -n "$LD"; then
17957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld" >&5
17958 $as_echo_n "checking for ld... " >&6; }
17959 elif test "$GCC" = yes; then
17960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
17961 $as_echo_n "checking for ld used by $CC... " >&6; }
17962 elif test "$with_gnu_ld" = yes; then
17963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
17964 $as_echo_n "checking for GNU ld... " >&6; }
17966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
17967 $as_echo_n "checking for non-GNU ld... " >&6; }
17969 if test -n "$LD"; then
17970 # Let the user override the test with a path.
17973 if ${acl_cv_path_LD+:} false; then :
17974 $as_echo_n "(cached) " >&6
17977 acl_cv_path_LD= # Final result of this test
17978 ac_prog=ld # Program to search in $PATH
17979 if test "$GCC" = yes; then
17980 # Check if gcc -print-prog-name=ld gives a path.
17983 # gcc leaves a trailing carriage return which upsets mingw
17984 acl_output=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
17986 acl_output=`($CC -print-prog-name=ld) 2>&5` ;;
17988 case $acl_output in
17989 # Accept absolute paths.
17991 re_direlt='/[^/][^/]*/\.\./'
17992 # Canonicalize the pathname of ld
17993 acl_output=`echo "$acl_output" | sed 's%\\\\%/%g'`
17994 while echo "$acl_output" | grep "$re_direlt" > /dev/null 2>&1; do
17995 acl_output=`echo $acl_output | sed "s%$re_direlt%/%"`
17997 # Got the pathname. No search in PATH is needed.
17998 acl_cv_path_LD="$acl_output"
18002 # If it fails, then pretend we aren't using GCC.
18005 # If it is relative, then search for the first ld in PATH.
18006 with_gnu_ld=unknown
18010 if test -n "$ac_prog"; then
18011 # Search for $ac_prog in $PATH.
18012 acl_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
18013 for ac_dir in $PATH; do
18014 IFS="$acl_save_ifs"
18015 test -z "$ac_dir" && ac_dir=.
18016 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
18017 acl_cv_path_LD="$ac_dir/$ac_prog"
18018 # Check to see if the program is GNU ld. I'd rather use --version,
18019 # but apparently some variants of GNU ld only accept -v.
18020 # Break only if it was the GNU/non-GNU ld that we prefer.
18021 case `"$acl_cv_path_LD" -v 2>&1 </dev/null` in
18022 *GNU* | *'with BFD'*)
18023 test "$with_gnu_ld" != no && break
18026 test "$with_gnu_ld" != yes && break
18031 IFS="$acl_save_ifs"
18035 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18036 /* end confdefs.h. */
18037 #if defined __powerpc64__ || defined _ARCH_PPC64
18044 if ac_fn_c_try_compile "$LINENO"; then :
18045 # The compiler produces 64-bit code. Add option '-b64' so that the
18046 # linker groks 64-bit object files.
18047 case "$acl_cv_path_LD " in
18049 *) acl_cv_path_LD="$acl_cv_path_LD -b64" ;;
18053 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18056 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18057 /* end confdefs.h. */
18058 #if defined __sparcv9 || defined __arch64__
18065 if ac_fn_c_try_compile "$LINENO"; then :
18068 # The compiler produces 32-bit code. Add option '-m elf32_sparc'
18069 # so that the linker groks 32-bit object files.
18070 case "$acl_cv_path_LD " in
18071 *" -m elf32_sparc "*) ;;
18072 *) acl_cv_path_LD="$acl_cv_path_LD -m elf32_sparc" ;;
18076 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18082 LD="$acl_cv_path_LD"
18084 if test -n "$LD"; then
18085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
18086 $as_echo "$LD" >&6; }
18088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18089 $as_echo "no" >&6; }
18090 as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
18092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
18093 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
18094 if ${acl_cv_prog_gnu_ld+:} false; then :
18095 $as_echo_n "(cached) " >&6
18097 # I'd rather use --version here, but apparently some GNU lds only accept -v.
18098 case `$LD -v 2>&1 </dev/null` in
18099 *GNU* | *'with BFD'*)
18100 acl_cv_prog_gnu_ld=yes
18103 acl_cv_prog_gnu_ld=no
18107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
18108 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
18109 with_gnu_ld=$acl_cv_prog_gnu_ld
18114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
18115 $as_echo_n "checking for shared library run path origin... " >&6; }
18116 if ${acl_cv_rpath+:} false; then :
18117 $as_echo_n "(cached) " >&6
18120 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
18121 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
18123 rm -f ./conftest.sh
18127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
18128 $as_echo "$acl_cv_rpath" >&6; }
18130 acl_libext="$acl_cv_libext"
18131 acl_shlibext="$acl_cv_shlibext"
18132 acl_libname_spec="$acl_cv_libname_spec"
18133 acl_library_names_spec="$acl_cv_library_names_spec"
18134 acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
18135 acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
18136 acl_hardcode_direct="$acl_cv_hardcode_direct"
18137 acl_hardcode_minus_L="$acl_cv_hardcode_minus_L"
18138 # Check whether --enable-rpath was given.
18139 if test "${enable_rpath+set}" = set; then :
18140 enableval=$enable_rpath; :
18148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking 32-bit host C ABI" >&5
18149 $as_echo_n "checking 32-bit host C ABI... " >&6; }
18150 if ${gl_cv_host_cpu_c_abi_32bit+:} false; then :
18151 $as_echo_n "(cached) " >&6
18153 if test -n "$gl_cv_host_cpu_c_abi"; then
18154 case "$gl_cv_host_cpu_c_abi" in
18155 i386 | x86_64-x32 | arm | armhf | arm64-ilp32 | hppa | ia64-ilp32 | mips | mipsn32 | powerpc | riscv*-ilp32* | s390 | sparc)
18156 gl_cv_host_cpu_c_abi_32bit=yes ;;
18158 gl_cv_host_cpu_c_abi_32bit=no ;;
18161 case "$host_cpu" in
18164 gl_cv_host_cpu_c_abi_32bit=yes
18168 # On x86_64 systems, the C compiler may be generating code in one of
18170 # - 64-bit instruction set, 64-bit pointers, 64-bit 'long': x86_64.
18171 # - 64-bit instruction set, 64-bit pointers, 32-bit 'long': x86_64
18172 # with native Windows (mingw, MSVC).
18173 # - 64-bit instruction set, 32-bit pointers, 32-bit 'long': x86_64-x32.
18174 # - 32-bit instruction set, 32-bit pointers, 32-bit 'long': i386.
18175 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18176 /* end confdefs.h. */
18177 #if (defined __x86_64__ || defined __amd64__ \
18178 || defined _M_X64 || defined _M_AMD64) \
18179 && !(defined __ILP32__ || defined _ILP32)
18186 if ac_fn_c_try_compile "$LINENO"; then :
18187 gl_cv_host_cpu_c_abi_32bit=no
18189 gl_cv_host_cpu_c_abi_32bit=yes
18191 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18195 # Assume arm with EABI.
18196 # On arm64 systems, the C compiler may be generating code in one of
18198 # - aarch64 instruction set, 64-bit pointers, 64-bit 'long': arm64.
18199 # - aarch64 instruction set, 32-bit pointers, 32-bit 'long': arm64-ilp32.
18200 # - 32-bit instruction set, 32-bit pointers, 32-bit 'long': arm or armhf.
18201 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18202 /* end confdefs.h. */
18203 #if defined __aarch64__ && !(defined __ILP32__ || defined _ILP32)
18210 if ac_fn_c_try_compile "$LINENO"; then :
18211 gl_cv_host_cpu_c_abi_32bit=no
18213 gl_cv_host_cpu_c_abi_32bit=yes
18215 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18218 hppa1.0 | hppa1.1 | hppa2.0* | hppa64 )
18219 # On hppa, the C compiler may be generating 32-bit code or 64-bit
18220 # code. In the latter case, it defines _LP64 and __LP64__.
18221 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18222 /* end confdefs.h. */
18230 if ac_fn_c_try_compile "$LINENO"; then :
18231 gl_cv_host_cpu_c_abi_32bit=no
18233 gl_cv_host_cpu_c_abi_32bit=yes
18235 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18239 # On ia64 on HP-UX, the C compiler may be generating 64-bit code or
18240 # 32-bit code. In the latter case, it defines _ILP32.
18241 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18242 /* end confdefs.h. */
18250 if ac_fn_c_try_compile "$LINENO"; then :
18251 gl_cv_host_cpu_c_abi_32bit=yes
18253 gl_cv_host_cpu_c_abi_32bit=no
18255 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18259 # We should also check for (_MIPS_SZPTR == 64), but gcc keeps this
18261 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18262 /* end confdefs.h. */
18263 #if defined _MIPS_SZLONG && (_MIPS_SZLONG == 64)
18270 if ac_fn_c_try_compile "$LINENO"; then :
18271 gl_cv_host_cpu_c_abi_32bit=no
18273 gl_cv_host_cpu_c_abi_32bit=yes
18275 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18279 # Different ABIs are in use on AIX vs. Mac OS X vs. Linux,*BSD.
18280 # No need to distinguish them here; the caller may distinguish
18281 # them based on the OS.
18282 # On powerpc64 systems, the C compiler may still be generating
18283 # 32-bit code. And on powerpc-ibm-aix systems, the C compiler may
18284 # be generating 64-bit code.
18285 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18286 /* end confdefs.h. */
18287 #if defined __powerpc64__ || defined _ARCH_PPC64
18294 if ac_fn_c_try_compile "$LINENO"; then :
18295 gl_cv_host_cpu_c_abi_32bit=no
18297 gl_cv_host_cpu_c_abi_32bit=yes
18299 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18303 gl_cv_host_cpu_c_abi_32bit=yes
18306 riscv32 | riscv64 )
18307 # There are 6 ABIs: ilp32, ilp32f, ilp32d, lp64, lp64f, lp64d.
18308 # Size of 'long' and 'void *':
18309 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18310 /* end confdefs.h. */
18311 #if defined __LP64__
18318 if ac_fn_c_try_compile "$LINENO"; then :
18319 gl_cv_host_cpu_c_abi_32bit=no
18321 gl_cv_host_cpu_c_abi_32bit=yes
18323 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18327 # On s390x, the C compiler may be generating 64-bit (= s390x) code
18328 # or 31-bit (= s390) code.
18329 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18330 /* end confdefs.h. */
18331 #if defined __LP64__ || defined __s390x__
18338 if ac_fn_c_try_compile "$LINENO"; then :
18339 gl_cv_host_cpu_c_abi_32bit=no
18341 gl_cv_host_cpu_c_abi_32bit=yes
18343 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18347 # UltraSPARCs running Linux have `uname -m` = "sparc64", but the
18348 # C compiler still generates 32-bit code.
18349 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18350 /* end confdefs.h. */
18351 #if defined __sparcv9 || defined __arch64__
18358 if ac_fn_c_try_compile "$LINENO"; then :
18359 gl_cv_host_cpu_c_abi_32bit=no
18361 gl_cv_host_cpu_c_abi_32bit=yes
18363 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18367 gl_cv_host_cpu_c_abi_32bit=no
18373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_host_cpu_c_abi_32bit" >&5
18374 $as_echo "$gl_cv_host_cpu_c_abi_32bit" >&6; }
18376 HOST_CPU_C_ABI_32BIT="$gl_cv_host_cpu_c_abi_32bit"
18384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit host" >&5
18385 $as_echo_n "checking for 64-bit host... " >&6; }
18386 if ${gl_cv_solaris_64bit+:} false; then :
18387 $as_echo_n "(cached) " >&6
18389 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18390 /* end confdefs.h. */
18398 if ac_fn_c_try_compile "$LINENO"; then :
18399 gl_cv_solaris_64bit=yes
18401 gl_cv_solaris_64bit=no
18403 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_solaris_64bit" >&5
18407 $as_echo "$gl_cv_solaris_64bit" >&6; };;
18410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the common suffixes of directories in the library search path" >&5
18411 $as_echo_n "checking for the common suffixes of directories in the library search path... " >&6; }
18412 if ${acl_cv_libdirstems+:} false; then :
18413 $as_echo_n "(cached) " >&6
18419 if test $gl_cv_solaris_64bit = yes; then
18420 acl_libdirstem=lib/64
18421 case "$host_cpu" in
18422 sparc*) acl_libdirstem2=lib/sparcv9 ;;
18423 i*86 | x86_64) acl_libdirstem2=lib/amd64 ;;
18428 if test "$HOST_CPU_C_ABI_32BIT" != yes; then
18429 searchpath=`(if test -f /usr/bin/gcc \
18430 && LC_ALL=C /usr/bin/gcc -print-search-dirs >/dev/null 2>/dev/null; then \
18431 LC_ALL=C /usr/bin/gcc -print-search-dirs; \
18433 LC_ALL=C $CC -print-search-dirs; \
18435 | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
18436 if test -n "$searchpath"; then
18437 acl_save_IFS="${IFS= }"; IFS=":"
18438 for searchdir in $searchpath; do
18439 if test -d "$searchdir"; then
18440 case "$searchdir" in
18441 */lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
18443 # Better ignore directories of this form. They are misleading.
18445 *) searchdir=`cd "$searchdir" && pwd`
18446 case "$searchdir" in
18447 */lib64 ) acl_libdirstem=lib64 ;;
18452 IFS="$acl_save_IFS"
18457 test -n "$acl_libdirstem2" || acl_libdirstem2="$acl_libdirstem"
18458 acl_cv_libdirstems="$acl_libdirstem,$acl_libdirstem2"
18461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_libdirstems" >&5
18462 $as_echo "$acl_cv_libdirstems" >&6; }
18463 # Decompose acl_cv_libdirstems into acl_libdirstem and acl_libdirstem2.
18464 acl_libdirstem=`echo "$acl_cv_libdirstems" | sed -e 's/,.*//'`
18465 acl_libdirstem2=`echo "$acl_cv_libdirstems" | sed -e '/,/s/.*,//'`
18469 gl_threads_api=none
18474 if test "$gl_use_threads" != no; then
18475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether imported symbols can be declared weak" >&5
18476 $as_echo_n "checking whether imported symbols can be declared weak... " >&6; }
18477 if ${gl_cv_have_weak+:} false; then :
18478 $as_echo_n "(cached) " >&6
18481 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18482 /* end confdefs.h. */
18483 extern void xyzzy ();
18493 if ac_fn_c_try_link "$LINENO"; then :
18494 gl_cv_have_weak=maybe
18496 rm -f core conftest.err conftest.$ac_objext \
18497 conftest$ac_exeext conftest.$ac_ext
18498 if test $gl_cv_have_weak = maybe; then
18499 if test "$cross_compiling" = yes; then :
18500 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18501 /* end confdefs.h. */
18503 Extensible Linking Format
18507 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18508 $EGREP "Extensible Linking Format" >/dev/null 2>&1; then :
18509 gl_cv_have_weak="guessing yes"
18511 gl_cv_have_weak="guessing no"
18517 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18518 /* end confdefs.h. */
18524 return (fputs == NULL);
18527 if ac_fn_c_try_run "$LINENO"; then :
18528 gl_cv_have_weak=yes
18532 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18533 conftest.$ac_objext conftest.beam conftest.$ac_ext
18537 case " $LDFLAGS " in
18538 *" -static "*) gl_cv_have_weak=no ;;
18542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_have_weak" >&5
18543 $as_echo "$gl_cv_have_weak" >&6; }
18544 if test "$gl_use_threads" = yes || test "$gl_use_threads" = posix; then
18545 # On OSF/1, the compiler needs the flag -pthread or -D_REENTRANT so that
18546 # it groks <pthread.h>. It's added above, in gl_THREADLIB_EARLY_BODY.
18547 ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
18548 if test "x$ac_cv_header_pthread_h" = xyes; then :
18549 gl_have_pthread_h=yes
18551 gl_have_pthread_h=no
18555 if test "$gl_have_pthread_h" = yes; then
18556 # Other possible tests:
18557 # -lpthreads (FSU threads, PCthreads)
18560 # Test whether both pthread_mutex_lock and pthread_mutexattr_init exist
18561 # in libc. IRIX 6.5 has the first one in both libc and libpthread, but
18562 # the second one only in libpthread, and lock.c needs it.
18564 # If -pthread works, prefer it to -lpthread, since Ubuntu 14.04
18565 # needs -pthread for some reason. See:
18566 # https://lists.gnu.org/r/bug-gnulib/2014-09/msg00023.html
18568 for gl_pthread in '' '-pthread'; do
18569 LIBS="$LIBS $gl_pthread"
18570 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18571 /* end confdefs.h. */
18572 #include <pthread.h>
18574 pthread_mutexattr_t ma;
18579 pthread_mutex_lock (&m);
18580 pthread_mutexattr_init (&ma);
18585 if ac_fn_c_try_link "$LINENO"; then :
18586 gl_have_pthread=yes
18587 LIBTHREAD=$gl_pthread LTLIBTHREAD=$gl_pthread
18588 LIBMULTITHREAD=$gl_pthread LTLIBMULTITHREAD=$gl_pthread
18590 rm -f core conftest.err conftest.$ac_objext \
18591 conftest$ac_exeext conftest.$ac_ext
18593 test -n "$gl_have_pthread" && break
18596 # Test for libpthread by looking for pthread_kill. (Not pthread_self,
18597 # since it is defined as a macro on OSF/1.)
18598 if test -n "$gl_have_pthread" && test -z "$LIBTHREAD"; then
18599 # The program links fine without libpthread. But it may actually
18600 # need to link with libpthread in order to create multiple threads.
18601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lpthread" >&5
18602 $as_echo_n "checking for pthread_kill in -lpthread... " >&6; }
18603 if ${ac_cv_lib_pthread_pthread_kill+:} false; then :
18604 $as_echo_n "(cached) " >&6
18606 ac_check_lib_save_LIBS=$LIBS
18607 LIBS="-lpthread $LIBS"
18608 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18609 /* end confdefs.h. */
18611 /* Override any GCC internal prototype to avoid an error.
18612 Use char because int might match the return type of a GCC
18613 builtin and then its argument prototype would still apply. */
18617 char pthread_kill ();
18621 return pthread_kill ();
18626 if ac_fn_c_try_link "$LINENO"; then :
18627 ac_cv_lib_pthread_pthread_kill=yes
18629 ac_cv_lib_pthread_pthread_kill=no
18631 rm -f core conftest.err conftest.$ac_objext \
18632 conftest$ac_exeext conftest.$ac_ext
18633 LIBS=$ac_check_lib_save_LIBS
18635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_kill" >&5
18636 $as_echo "$ac_cv_lib_pthread_pthread_kill" >&6; }
18637 if test "x$ac_cv_lib_pthread_pthread_kill" = xyes; then :
18638 LIBMULTITHREAD=-lpthread LTLIBMULTITHREAD=-lpthread
18639 # On Solaris and HP-UX, most pthread functions exist also in libc.
18640 # Therefore pthread_in_use() needs to actually try to create a
18641 # thread: pthread_create from libc will fail, whereas
18642 # pthread_create will actually create a thread.
18643 # On Solaris 10 or newer, this test is no longer needed, because
18644 # libc contains the fully functional pthread functions.
18646 solaris | solaris2.1-9 | solaris2.1-9.* | hpux*)
18648 $as_echo "#define PTHREAD_IN_USE_DETECTION_HARD 1" >>confdefs.h
18654 elif test -z "$gl_have_pthread"; then
18655 # Some library is needed. Try libpthread and libc_r.
18656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lpthread" >&5
18657 $as_echo_n "checking for pthread_kill in -lpthread... " >&6; }
18658 if ${ac_cv_lib_pthread_pthread_kill+:} false; then :
18659 $as_echo_n "(cached) " >&6
18661 ac_check_lib_save_LIBS=$LIBS
18662 LIBS="-lpthread $LIBS"
18663 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18664 /* end confdefs.h. */
18666 /* Override any GCC internal prototype to avoid an error.
18667 Use char because int might match the return type of a GCC
18668 builtin and then its argument prototype would still apply. */
18672 char pthread_kill ();
18676 return pthread_kill ();
18681 if ac_fn_c_try_link "$LINENO"; then :
18682 ac_cv_lib_pthread_pthread_kill=yes
18684 ac_cv_lib_pthread_pthread_kill=no
18686 rm -f core conftest.err conftest.$ac_objext \
18687 conftest$ac_exeext conftest.$ac_ext
18688 LIBS=$ac_check_lib_save_LIBS
18690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_kill" >&5
18691 $as_echo "$ac_cv_lib_pthread_pthread_kill" >&6; }
18692 if test "x$ac_cv_lib_pthread_pthread_kill" = xyes; then :
18693 gl_have_pthread=yes
18694 LIBTHREAD=-lpthread LTLIBTHREAD=-lpthread
18695 LIBMULTITHREAD=-lpthread LTLIBMULTITHREAD=-lpthread
18698 if test -z "$gl_have_pthread"; then
18700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lc_r" >&5
18701 $as_echo_n "checking for pthread_kill in -lc_r... " >&6; }
18702 if ${ac_cv_lib_c_r_pthread_kill+:} false; then :
18703 $as_echo_n "(cached) " >&6
18705 ac_check_lib_save_LIBS=$LIBS
18707 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18708 /* end confdefs.h. */
18710 /* Override any GCC internal prototype to avoid an error.
18711 Use char because int might match the return type of a GCC
18712 builtin and then its argument prototype would still apply. */
18716 char pthread_kill ();
18720 return pthread_kill ();
18725 if ac_fn_c_try_link "$LINENO"; then :
18726 ac_cv_lib_c_r_pthread_kill=yes
18728 ac_cv_lib_c_r_pthread_kill=no
18730 rm -f core conftest.err conftest.$ac_objext \
18731 conftest$ac_exeext conftest.$ac_ext
18732 LIBS=$ac_check_lib_save_LIBS
18734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_r_pthread_kill" >&5
18735 $as_echo "$ac_cv_lib_c_r_pthread_kill" >&6; }
18736 if test "x$ac_cv_lib_c_r_pthread_kill" = xyes; then :
18737 gl_have_pthread=yes
18738 LIBTHREAD=-lc_r LTLIBTHREAD=-lc_r
18739 LIBMULTITHREAD=-lc_r LTLIBMULTITHREAD=-lc_r
18744 if test -n "$gl_have_pthread"; then
18745 gl_threads_api=posix
18747 $as_echo "#define USE_POSIX_THREADS 1" >>confdefs.h
18749 if test -n "$LIBMULTITHREAD" || test -n "$LTLIBMULTITHREAD"; then
18750 if case "$gl_cv_have_weak" in *yes) true;; *) false;; esac; then
18752 $as_echo "#define USE_POSIX_THREADS_WEAK 1" >>confdefs.h
18761 if test -z "$gl_have_pthread"; then
18762 if test "$gl_use_threads" = yes || test "$gl_use_threads" = solaris; then
18763 gl_have_solaristhread=
18764 gl_save_LIBS="$LIBS"
18765 LIBS="$LIBS -lthread"
18766 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18767 /* end confdefs.h. */
18769 #include <thread.h>
18780 if ac_fn_c_try_link "$LINENO"; then :
18781 gl_have_solaristhread=yes
18783 rm -f core conftest.err conftest.$ac_objext \
18784 conftest$ac_exeext conftest.$ac_ext
18785 LIBS="$gl_save_LIBS"
18786 if test -n "$gl_have_solaristhread"; then
18787 gl_threads_api=solaris
18789 LTLIBTHREAD=-lthread
18790 LIBMULTITHREAD="$LIBTHREAD"
18791 LTLIBMULTITHREAD="$LTLIBTHREAD"
18793 $as_echo "#define USE_SOLARIS_THREADS 1" >>confdefs.h
18795 if case "$gl_cv_have_weak" in *yes) true;; *) false;; esac; then
18797 $as_echo "#define USE_SOLARIS_THREADS_WEAK 1" >>confdefs.h
18805 if test "$gl_use_threads" = pth; then
18806 gl_save_CPPFLAGS="$CPPFLAGS"
18812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libpth" >&5
18813 $as_echo_n "checking how to link with libpth... " >&6; }
18814 if ${ac_cv_libpth_libs+:} false; then :
18815 $as_echo_n "(cached) " >&6
18826 acl_save_prefix="$prefix"
18827 prefix="$acl_final_prefix"
18828 acl_save_exec_prefix="$exec_prefix"
18829 exec_prefix="$acl_final_exec_prefix"
18831 eval additional_includedir=\"$includedir\"
18832 eval additional_libdir=\"$libdir\"
18834 exec_prefix="$acl_save_exec_prefix"
18835 prefix="$acl_save_prefix"
18838 # Check whether --with-libpth-prefix was given.
18839 if test "${with_libpth_prefix+set}" = set; then :
18840 withval=$with_libpth_prefix;
18841 if test "X$withval" = "Xno"; then
18844 if test "X$withval" = "X"; then
18846 acl_save_prefix="$prefix"
18847 prefix="$acl_final_prefix"
18848 acl_save_exec_prefix="$exec_prefix"
18849 exec_prefix="$acl_final_exec_prefix"
18851 eval additional_includedir=\"$includedir\"
18852 eval additional_libdir=\"$libdir\"
18854 exec_prefix="$acl_save_exec_prefix"
18855 prefix="$acl_save_prefix"
18858 additional_includedir="$withval/include"
18859 additional_libdir="$withval/$acl_libdirstem"
18860 if test "$acl_libdirstem2" != "$acl_libdirstem" \
18861 && test ! -d "$withval/$acl_libdirstem"; then
18862 additional_libdir="$withval/$acl_libdirstem2"
18876 names_already_handled=
18877 names_next_round='pth '
18878 while test -n "$names_next_round"; do
18879 names_this_round="$names_next_round"
18881 for name in $names_this_round; do
18883 for n in $names_already_handled; do
18884 if test "$n" = "$name"; then
18885 already_handled=yes
18889 if test -z "$already_handled"; then
18890 names_already_handled="$names_already_handled $name"
18891 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'`
18892 eval value=\"\$HAVE_LIB$uppername\"
18893 if test -n "$value"; then
18894 if test "$value" = yes; then
18895 eval value=\"\$LIB$uppername\"
18896 test -z "$value" || LIBPTH="${LIBPTH}${LIBPTH:+ }$value"
18897 eval value=\"\$LTLIB$uppername\"
18898 test -z "$value" || LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }$value"
18907 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
18908 if test -n "$acl_shlibext"; then
18909 shrext=".$acl_shlibext" # typically: shrext=.so
18913 if test $use_additional = yes; then
18914 dir="$additional_libdir"
18915 if test -n "$acl_shlibext"; then
18916 if test -f "$dir/$libname$shrext"; then
18918 found_so="$dir/$libname$shrext"
18920 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
18921 ver=`(cd "$dir" && \
18922 for f in "$libname$shrext".*; do echo "$f"; done \
18923 | sed -e "s,^$libname$shrext\\\\.,," \
18924 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
18925 | sed 1q ) 2>/dev/null`
18926 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
18928 found_so="$dir/$libname$shrext.$ver"
18931 eval library_names=\"$acl_library_names_spec\"
18932 for f in $library_names; do
18933 if test -f "$dir/$f"; then
18942 if test "X$found_dir" = "X"; then
18943 if test -f "$dir/$libname.$acl_libext"; then
18945 found_a="$dir/$libname.$acl_libext"
18948 if test "X$found_dir" != "X"; then
18949 if test -f "$dir/$libname.la"; then
18950 found_la="$dir/$libname.la"
18954 if test "X$found_dir" = "X"; then
18955 for x in $LDFLAGS $LTLIBPTH; do
18957 acl_save_prefix="$prefix"
18958 prefix="$acl_final_prefix"
18959 acl_save_exec_prefix="$exec_prefix"
18960 exec_prefix="$acl_final_exec_prefix"
18962 exec_prefix="$acl_save_exec_prefix"
18963 prefix="$acl_save_prefix"
18967 dir=`echo "X$x" | sed -e 's/^X-L//'`
18968 if test -n "$acl_shlibext"; then
18969 if test -f "$dir/$libname$shrext"; then
18971 found_so="$dir/$libname$shrext"
18973 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
18974 ver=`(cd "$dir" && \
18975 for f in "$libname$shrext".*; do echo "$f"; done \
18976 | sed -e "s,^$libname$shrext\\\\.,," \
18977 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
18978 | sed 1q ) 2>/dev/null`
18979 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
18981 found_so="$dir/$libname$shrext.$ver"
18984 eval library_names=\"$acl_library_names_spec\"
18985 for f in $library_names; do
18986 if test -f "$dir/$f"; then
18995 if test "X$found_dir" = "X"; then
18996 if test -f "$dir/$libname.$acl_libext"; then
18998 found_a="$dir/$libname.$acl_libext"
19001 if test "X$found_dir" != "X"; then
19002 if test -f "$dir/$libname.la"; then
19003 found_la="$dir/$libname.la"
19008 if test "X$found_dir" != "X"; then
19013 if test "X$found_dir" != "X"; then
19014 LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-L$found_dir -l$name"
19015 if test "X$found_so" != "X"; then
19016 if test "$enable_rpath" = no \
19017 || test "X$found_dir" = "X/usr/$acl_libdirstem" \
19018 || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
19019 LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
19022 for x in $ltrpathdirs; do
19023 if test "X$x" = "X$found_dir"; then
19028 if test -z "$haveit"; then
19029 ltrpathdirs="$ltrpathdirs $found_dir"
19031 if test "$acl_hardcode_direct" = yes; then
19032 LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
19034 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
19035 LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
19037 for x in $rpathdirs; do
19038 if test "X$x" = "X$found_dir"; then
19043 if test -z "$haveit"; then
19044 rpathdirs="$rpathdirs $found_dir"
19048 for x in $LDFLAGS $LIBPTH; do
19050 acl_save_prefix="$prefix"
19051 prefix="$acl_final_prefix"
19052 acl_save_exec_prefix="$exec_prefix"
19053 exec_prefix="$acl_final_exec_prefix"
19055 exec_prefix="$acl_save_exec_prefix"
19056 prefix="$acl_save_prefix"
19058 if test "X$x" = "X-L$found_dir"; then
19063 if test -z "$haveit"; then
19064 LIBPTH="${LIBPTH}${LIBPTH:+ }-L$found_dir"
19066 if test "$acl_hardcode_minus_L" != no; then
19067 LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
19069 LIBPTH="${LIBPTH}${LIBPTH:+ }-l$name"
19075 if test "X$found_a" != "X"; then
19076 LIBPTH="${LIBPTH}${LIBPTH:+ }$found_a"
19078 LIBPTH="${LIBPTH}${LIBPTH:+ }-L$found_dir -l$name"
19081 additional_includedir=
19082 case "$found_dir" in
19083 */$acl_libdirstem | */$acl_libdirstem/)
19084 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
19085 if test "$name" = 'pth'; then
19086 LIBPTH_PREFIX="$basedir"
19088 additional_includedir="$basedir/include"
19090 */$acl_libdirstem2 | */$acl_libdirstem2/)
19091 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
19092 if test "$name" = 'pth'; then
19093 LIBPTH_PREFIX="$basedir"
19095 additional_includedir="$basedir/include"
19098 if test "X$additional_includedir" != "X"; then
19099 if test "X$additional_includedir" != "X/usr/include"; then
19101 if test "X$additional_includedir" = "X/usr/local/include"; then
19102 if test -n "$GCC"; then
19104 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
19108 if test -z "$haveit"; then
19109 for x in $CPPFLAGS $INCPTH; do
19111 acl_save_prefix="$prefix"
19112 prefix="$acl_final_prefix"
19113 acl_save_exec_prefix="$exec_prefix"
19114 exec_prefix="$acl_final_exec_prefix"
19116 exec_prefix="$acl_save_exec_prefix"
19117 prefix="$acl_save_prefix"
19119 if test "X$x" = "X-I$additional_includedir"; then
19124 if test -z "$haveit"; then
19125 if test -d "$additional_includedir"; then
19126 INCPTH="${INCPTH}${INCPTH:+ }-I$additional_includedir"
19132 if test -n "$found_la"; then
19133 save_libdir="$libdir"
19134 case "$found_la" in
19135 */* | *\\*) . "$found_la" ;;
19136 *) . "./$found_la" ;;
19138 libdir="$save_libdir"
19139 for dep in $dependency_libs; do
19142 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
19143 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
19144 && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
19146 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
19147 || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
19148 if test -n "$GCC"; then
19150 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
19154 if test -z "$haveit"; then
19156 for x in $LDFLAGS $LIBPTH; do
19158 acl_save_prefix="$prefix"
19159 prefix="$acl_final_prefix"
19160 acl_save_exec_prefix="$exec_prefix"
19161 exec_prefix="$acl_final_exec_prefix"
19163 exec_prefix="$acl_save_exec_prefix"
19164 prefix="$acl_save_prefix"
19166 if test "X$x" = "X-L$additional_libdir"; then
19171 if test -z "$haveit"; then
19172 if test -d "$additional_libdir"; then
19173 LIBPTH="${LIBPTH}${LIBPTH:+ }-L$additional_libdir"
19177 for x in $LDFLAGS $LTLIBPTH; do
19179 acl_save_prefix="$prefix"
19180 prefix="$acl_final_prefix"
19181 acl_save_exec_prefix="$exec_prefix"
19182 exec_prefix="$acl_final_exec_prefix"
19184 exec_prefix="$acl_save_exec_prefix"
19185 prefix="$acl_save_prefix"
19187 if test "X$x" = "X-L$additional_libdir"; then
19192 if test -z "$haveit"; then
19193 if test -d "$additional_libdir"; then
19194 LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-L$additional_libdir"
19201 dir=`echo "X$dep" | sed -e 's/^X-R//'`
19202 if test "$enable_rpath" != no; then
19204 for x in $rpathdirs; do
19205 if test "X$x" = "X$dir"; then
19210 if test -z "$haveit"; then
19211 rpathdirs="$rpathdirs $dir"
19214 for x in $ltrpathdirs; do
19215 if test "X$x" = "X$dir"; then
19220 if test -z "$haveit"; then
19221 ltrpathdirs="$ltrpathdirs $dir"
19226 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
19229 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
19232 LIBPTH="${LIBPTH}${LIBPTH:+ }$dep"
19233 LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }$dep"
19239 LIBPTH="${LIBPTH}${LIBPTH:+ }-l$name"
19240 LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-l$name"
19246 if test "X$rpathdirs" != "X"; then
19247 if test -n "$acl_hardcode_libdir_separator"; then
19249 for found_dir in $rpathdirs; do
19250 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
19252 acl_save_libdir="$libdir"
19254 eval flag=\"$acl_hardcode_libdir_flag_spec\"
19255 libdir="$acl_save_libdir"
19256 LIBPTH="${LIBPTH}${LIBPTH:+ }$flag"
19258 for found_dir in $rpathdirs; do
19259 acl_save_libdir="$libdir"
19260 libdir="$found_dir"
19261 eval flag=\"$acl_hardcode_libdir_flag_spec\"
19262 libdir="$acl_save_libdir"
19263 LIBPTH="${LIBPTH}${LIBPTH:+ }$flag"
19267 if test "X$ltrpathdirs" != "X"; then
19268 for found_dir in $ltrpathdirs; do
19269 LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-R$found_dir"
19277 ac_cv_libpth_libs="$LIBPTH"
19278 ac_cv_libpth_ltlibs="$LTLIBPTH"
19279 ac_cv_libpth_cppflags="$INCPTH"
19280 ac_cv_libpth_prefix="$LIBPTH_PREFIX"
19283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libpth_libs" >&5
19284 $as_echo "$ac_cv_libpth_libs" >&6; }
19285 LIBPTH="$ac_cv_libpth_libs"
19286 LTLIBPTH="$ac_cv_libpth_ltlibs"
19287 INCPTH="$ac_cv_libpth_cppflags"
19288 LIBPTH_PREFIX="$ac_cv_libpth_prefix"
19290 for element in $INCPTH; do
19292 for x in $CPPFLAGS; do
19294 acl_save_prefix="$prefix"
19295 prefix="$acl_final_prefix"
19296 acl_save_exec_prefix="$exec_prefix"
19297 exec_prefix="$acl_final_exec_prefix"
19299 exec_prefix="$acl_save_exec_prefix"
19300 prefix="$acl_save_prefix"
19302 if test "X$x" = "X$element"; then
19307 if test -z "$haveit"; then
19308 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
19320 gl_save_LIBS="$LIBS"
19321 LIBS="$LIBS $LIBPTH"
19322 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19323 /* end confdefs.h. */
19333 if ac_fn_c_try_link "$LINENO"; then :
19336 rm -f core conftest.err conftest.$ac_objext \
19337 conftest$ac_exeext conftest.$ac_ext
19338 LIBS="$gl_save_LIBS"
19339 if test -n "$gl_have_pth"; then
19341 LIBTHREAD="$LIBPTH"
19342 LTLIBTHREAD="$LTLIBPTH"
19343 LIBMULTITHREAD="$LIBTHREAD"
19344 LTLIBMULTITHREAD="$LTLIBTHREAD"
19346 $as_echo "#define USE_PTH_THREADS 1" >>confdefs.h
19348 if test -n "$LIBMULTITHREAD" || test -n "$LTLIBMULTITHREAD"; then
19349 if case "$gl_cv_have_weak" in *yes) true;; *) false;; esac; then
19351 $as_echo "#define USE_PTH_THREADS_WEAK 1" >>confdefs.h
19358 CPPFLAGS="$gl_save_CPPFLAGS"
19361 if test -z "$gl_have_pthread"; then
19362 case "$gl_use_threads" in
19363 yes | windows | win32) # The 'win32' is for backward compatibility.
19364 if { case "$host_os" in
19369 gl_threads_api=windows
19371 $as_echo "#define USE_WINDOWS_THREADS 1" >>confdefs.h
19378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for multithread API to use" >&5
19379 $as_echo_n "checking for multithread API to use... " >&6; }
19380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_threads_api" >&5
19381 $as_echo "$gl_threads_api" >&6; }
19404 GNULIB_UTIMENSAT=0;
19405 GNULIB_OVERRIDES_STRUCT_STAT=0;
19419 REPLACE_FUTIMENS=0;
19425 REPLACE_UTIMENSAT=0;
19430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat correctly handles trailing slash" >&5
19431 $as_echo_n "checking whether lstat correctly handles trailing slash... " >&6; }
19432 if ${gl_cv_func_lstat_dereferences_slashed_symlink+:} false; then :
19433 $as_echo_n "(cached) " >&6
19435 rm -f conftest.sym conftest.file
19436 echo >conftest.file
19437 if test "$cross_compiling" = yes; then :
19440 # Guess yes on Linux systems.
19441 gl_cv_func_lstat_dereferences_slashed_symlink="guessing yes" ;;
19443 # Guess yes on glibc systems.
19444 gl_cv_func_lstat_dereferences_slashed_symlink="guessing yes" ;;
19446 # Guess no on native Windows.
19447 gl_cv_func_lstat_dereferences_slashed_symlink="guessing no" ;;
19449 # If we don't know, assume the worst.
19450 gl_cv_func_lstat_dereferences_slashed_symlink="guessing no" ;;
19454 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19455 /* end confdefs.h. */
19456 $ac_includes_default
19461 if (symlink ("conftest.file", "conftest.sym") != 0)
19463 /* Linux will dereference the symlink and fail, as required by
19464 POSIX. That is better in the sense that it means we will not
19465 have to compile and use the lstat wrapper. */
19466 return lstat ("conftest.sym/", &sbuf) == 0;
19472 if ac_fn_c_try_run "$LINENO"; then :
19473 gl_cv_func_lstat_dereferences_slashed_symlink=yes
19475 gl_cv_func_lstat_dereferences_slashed_symlink=no
19477 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19478 conftest.$ac_objext conftest.beam conftest.$ac_ext
19481 rm -f conftest.sym conftest.file
19484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_lstat_dereferences_slashed_symlink" >&5
19485 $as_echo "$gl_cv_func_lstat_dereferences_slashed_symlink" >&6; }
19486 case "$gl_cv_func_lstat_dereferences_slashed_symlink" in
19489 cat >>confdefs.h <<_ACEOF
19490 #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
19499 GNULIB_CALLOC_POSIX=0;
19500 GNULIB_CANONICALIZE_FILE_NAME=0;
19501 GNULIB_GETLOADAVG=0;
19502 GNULIB_GETSUBOPT=0;
19504 GNULIB_MALLOC_POSIX=0;
19508 GNULIB_MKOSTEMPS=0;
19511 GNULIB_POSIX_OPENPT=0;
19513 GNULIB_PTSNAME_R=0;
19518 GNULIB_REALLOCARRAY=0;
19519 GNULIB_REALLOC_POSIX=0;
19522 GNULIB_SECURE_GETENV=0;
19527 GNULIB_SYSTEM_POSIX=0;
19533 HAVE_CANONICALIZE_FILE_NAME=1;
19534 HAVE_DECL_GETLOADAVG=1;
19537 HAVE_DECL_INITSTATE=1;
19543 HAVE_POSIX_OPENPT=1;
19550 HAVE_REALLOCARRAY=1;
19553 HAVE_SECURE_GETENV=1;
19555 HAVE_DECL_SETENV=1;
19556 HAVE_DECL_SETSTATE=1;
19560 HAVE_STRUCT_RANDOM_DATA=1;
19561 HAVE_SYS_LOADAVG_H=0;
19563 HAVE_DECL_UNSETENV=1;
19565 REPLACE_CANONICALIZE_FILE_NAME=0;
19570 REPLACE_PTSNAME_R=0;
19573 REPLACE_RANDOM_R=0;
19575 REPLACE_REALPATH=0;
19578 REPLACE_UNSETENV=0;
19582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether malloc, realloc, calloc are POSIX compliant" >&5
19583 $as_echo_n "checking whether malloc, realloc, calloc are POSIX compliant... " >&6; }
19584 if ${gl_cv_func_malloc_posix+:} false; then :
19585 $as_echo_n "(cached) " >&6
19588 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19589 /* end confdefs.h. */
19594 #if defined _WIN32 && ! defined __CYGWIN__
19602 if ac_fn_c_try_compile "$LINENO"; then :
19603 gl_cv_func_malloc_posix=yes
19605 gl_cv_func_malloc_posix=no
19607 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_malloc_posix" >&5
19611 $as_echo "$gl_cv_func_malloc_posix" >&6; }
19615 for ac_header in stdlib.h
19617 ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
19618 if test "x$ac_cv_header_stdlib_h" = xyes; then :
19619 cat >>confdefs.h <<_ACEOF
19620 #define HAVE_STDLIB_H 1
19627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible malloc" >&5
19628 $as_echo_n "checking for GNU libc compatible malloc... " >&6; }
19629 if ${ac_cv_func_malloc_0_nonnull+:} false; then :
19630 $as_echo_n "(cached) " >&6
19632 if test "$cross_compiling" = yes; then :
19634 # Guess yes on platforms where we know the result.
19635 *-gnu* | gnu* | freebsd* | netbsd* | openbsd* \
19636 | hpux* | solaris* | cygwin* | mingw*)
19637 ac_cv_func_malloc_0_nonnull=yes ;;
19638 # If we don't know, assume the worst.
19639 *) ac_cv_func_malloc_0_nonnull=no ;;
19643 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19644 /* end confdefs.h. */
19645 #if defined STDC_HEADERS || defined HAVE_STDLIB_H
19646 # include <stdlib.h>
19654 char *p = malloc (0);
19663 if ac_fn_c_try_run "$LINENO"; then :
19664 ac_cv_func_malloc_0_nonnull=yes
19666 ac_cv_func_malloc_0_nonnull=no
19668 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19669 conftest.$ac_objext conftest.beam conftest.$ac_ext
19674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_malloc_0_nonnull" >&5
19675 $as_echo "$ac_cv_func_malloc_0_nonnull" >&6; }
19676 if test $ac_cv_func_malloc_0_nonnull = yes; then :
19677 gl_cv_func_malloc_0_nonnull=1
19679 gl_cv_func_malloc_0_nonnull=0
19683 cat >>confdefs.h <<_ACEOF
19684 #define MALLOC_0_IS_NONNULL $gl_cv_func_malloc_0_nonnull
19689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
19690 $as_echo_n "checking for unsigned long long int... " >&6; }
19691 if ${ac_cv_type_unsigned_long_long_int+:} false; then :
19692 $as_echo_n "(cached) " >&6
19694 ac_cv_type_unsigned_long_long_int=yes
19695 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
19696 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19697 /* end confdefs.h. */
19699 /* For now, do not test the preprocessor; as of 2007 there are too many
19700 implementations with broken preprocessors. Perhaps this can
19701 be revisited in 2012. In the meantime, code should not expect
19702 #if to work with literals wider than 32 bits. */
19703 /* Test literals. */
19704 long long int ll = 9223372036854775807ll;
19705 long long int nll = -9223372036854775807LL;
19706 unsigned long long int ull = 18446744073709551615ULL;
19707 /* Test constant expressions. */
19708 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
19710 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
19716 /* Test availability of runtime routines for shift and division. */
19717 long long int llmax = 9223372036854775807ll;
19718 unsigned long long int ullmax = 18446744073709551615ull;
19719 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
19720 | (llmax / ll) | (llmax % ll)
19721 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
19722 | (ullmax / ull) | (ullmax % ull));
19728 if ac_fn_c_try_link "$LINENO"; then :
19731 ac_cv_type_unsigned_long_long_int=no
19733 rm -f core conftest.err conftest.$ac_objext \
19734 conftest$ac_exeext conftest.$ac_ext
19737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
19738 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
19739 if test $ac_cv_type_unsigned_long_long_int = yes; then
19741 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
19747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
19748 $as_echo_n "checking for long long int... " >&6; }
19749 if ${ac_cv_type_long_long_int+:} false; then :
19750 $as_echo_n "(cached) " >&6
19752 ac_cv_type_long_long_int=yes
19753 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
19754 ac_cv_type_long_long_int=$ac_cv_type_unsigned_long_long_int
19755 if test $ac_cv_type_long_long_int = yes; then
19756 if test "$cross_compiling" = yes; then :
19759 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19760 /* end confdefs.h. */
19761 #include <limits.h>
19764 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
19765 # define LLONG_MAX (HALF - 1 + HALF)
19770 long long int n = 1;
19774 long long int m = n << i;
19777 if (LLONG_MAX / 2 < m)
19785 if ac_fn_c_try_run "$LINENO"; then :
19788 ac_cv_type_long_long_int=no
19790 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19791 conftest.$ac_objext conftest.beam conftest.$ac_ext
19797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
19798 $as_echo "$ac_cv_type_long_long_int" >&6; }
19799 if test $ac_cv_type_long_long_int = yes; then
19801 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
19810 GNULIB_EXPLICIT_BZERO=0;
19817 GNULIB_RAWMEMCHR=0;
19820 GNULIB_STRCHRNUL=0;
19828 GNULIB_STRCASESTR=0;
19835 GNULIB_MBSCASECMP=0;
19836 GNULIB_MBSNCASECMP=0;
19837 GNULIB_MBSPCASECMP=0;
19838 GNULIB_MBSCASESTR=0;
19845 GNULIB_STRERROR_R=0;
19846 GNULIB_STRSIGNAL=0;
19847 GNULIB_STRVERSCMP=0;
19849 HAVE_EXPLICIT_BZERO=1;
19853 HAVE_DECL_MEMMEM=1;
19855 HAVE_DECL_MEMRCHR=1;
19860 HAVE_DECL_STRDUP=1;
19861 HAVE_DECL_STRNDUP=1;
19862 HAVE_DECL_STRNLEN=1;
19866 HAVE_DECL_STRTOK_R=1;
19867 HAVE_DECL_STRERROR_R=1;
19868 HAVE_DECL_STRSIGNAL=1;
19873 REPLACE_STRCHRNUL=0;
19879 REPLACE_STRCASESTR=0;
19880 REPLACE_STRTOK_R=0;
19881 REPLACE_STRERROR=0;
19882 REPLACE_STRERROR_R=0;
19883 REPLACE_STRSIGNAL=0;
19884 UNDEFINE_STRTOK_R=0;
19891 # Check for mmap(). Don't use AC_FUNC_MMAP, because it checks too much: it
19892 # fails on HP-UX 11, because MAP_FIXED mappings do not work. But this is
19893 # irrelevant for anonymous mappings.
19894 ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
19895 if test "x$ac_cv_func_mmap" = xyes; then :
19902 # Try to allow MAP_ANONYMOUS.
19903 gl_have_mmap_anonymous=no
19904 if test $gl_have_mmap = yes; then
19905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANONYMOUS" >&5
19906 $as_echo_n "checking for MAP_ANONYMOUS... " >&6; }
19907 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19908 /* end confdefs.h. */
19910 #include <sys/mman.h>
19911 #ifdef MAP_ANONYMOUS
19912 I cannot identify this map
19916 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19917 $EGREP "I cannot identify this map" >/dev/null 2>&1; then :
19918 gl_have_mmap_anonymous=yes
19922 if test $gl_have_mmap_anonymous != yes; then
19923 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19924 /* end confdefs.h. */
19926 #include <sys/mman.h>
19928 I cannot identify this map
19932 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19933 $EGREP "I cannot identify this map" >/dev/null 2>&1; then :
19935 $as_echo "#define MAP_ANONYMOUS MAP_ANON" >>confdefs.h
19937 gl_have_mmap_anonymous=yes
19942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_have_mmap_anonymous" >&5
19943 $as_echo "$gl_have_mmap_anonymous" >&6; }
19944 if test $gl_have_mmap_anonymous = yes; then
19946 $as_echo "#define HAVE_MAP_ANONYMOUS 1" >>confdefs.h
19956 if test $HAVE_MEMCHR = 1; then
19957 # Detect platform-specific bugs in some versions of glibc:
19958 # memchr should not dereference anything with length 0
19959 # https://bugzilla.redhat.com/show_bug.cgi?id=499689
19960 # memchr should not dereference overestimated length after a match
19961 # https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=521737
19962 # https://sourceware.org/bugzilla/show_bug.cgi?id=10162
19963 # Assume that memchr works on platforms that lack mprotect.
19964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether memchr works" >&5
19965 $as_echo_n "checking whether memchr works... " >&6; }
19966 if ${gl_cv_func_memchr_works+:} false; then :
19967 $as_echo_n "(cached) " >&6
19969 if test "$cross_compiling" = yes; then :
19971 # Guess yes on native Windows.
19972 mingw*) gl_cv_func_memchr_works="guessing yes" ;;
19973 # Be pessimistic for now.
19974 *) gl_cv_func_memchr_works="guessing no" ;;
19978 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19979 /* end confdefs.h. */
19981 #include <string.h>
19982 #if HAVE_SYS_MMAN_H
19983 # include <fcntl.h>
19984 # include <unistd.h>
19985 # include <sys/types.h>
19986 # include <sys/mman.h>
19988 # define MAP_FILE 0
19997 char *fence = NULL;
19998 #if HAVE_SYS_MMAN_H && HAVE_MPROTECT
19999 # if HAVE_MAP_ANONYMOUS
20000 const int flags = MAP_ANONYMOUS | MAP_PRIVATE;
20002 # else /* !HAVE_MAP_ANONYMOUS */
20003 const int flags = MAP_FILE | MAP_PRIVATE;
20004 int fd = open ("/dev/zero", O_RDONLY, 0666);
20008 int pagesize = getpagesize ();
20010 (char *) mmap (NULL, 2 * pagesize, PROT_READ | PROT_WRITE,
20012 if (two_pages != (char *)(-1)
20013 && mprotect (two_pages + pagesize, pagesize, PROT_NONE) == 0)
20014 fence = two_pages + pagesize;
20019 if (memchr (fence, 0, 0))
20021 strcpy (fence - 9, "12345678");
20022 if (memchr (fence - 9, 0, 79) != fence - 1)
20024 if (memchr (fence - 1, 0, 3) != fence - 1)
20033 if ac_fn_c_try_run "$LINENO"; then :
20034 gl_cv_func_memchr_works=yes
20036 gl_cv_func_memchr_works=no
20038 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20039 conftest.$ac_objext conftest.beam conftest.$ac_ext
20044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_memchr_works" >&5
20045 $as_echo "$gl_cv_func_memchr_works" >&6; }
20046 case "$gl_cv_func_memchr_works" in
20048 *) REPLACE_MEMCHR=1 ;;
20056 if test $ac_cv_func__set_invalid_parameter_handler = yes; then
20057 HAVE_MSVC_INVALID_PARAMETER_HANDLER=1
20059 $as_echo "#define HAVE_MSVC_INVALID_PARAMETER_HANDLER 1" >>confdefs.h
20062 HAVE_MSVC_INVALID_PARAMETER_HANDLER=0
20070 gl_cv_c_multiarch=no
20071 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20072 /* end confdefs.h. */
20073 #ifndef __APPLE_CC__
20074 not a universal capable compiler
20079 if ac_fn_c_try_compile "$LINENO"; then :
20083 for word in ${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS}; do
20084 if test -n "$prev"; then
20086 i?86 | x86_64 | ppc | ppc64)
20087 if test -z "$arch" || test "$arch" = "$word"; then
20090 gl_cv_c_multiarch=yes
20096 if test "x$word" = "x-arch"; then
20103 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20104 if test $gl_cv_c_multiarch = yes; then
20105 APPLE_UNIVERSAL_BUILD=1
20107 APPLE_UNIVERSAL_BUILD=0
20114 GNULIB_PTHREAD_SIGMASK=0;
20116 GNULIB_SIGNAL_H_SIGPIPE=0;
20117 GNULIB_SIGPROCMASK=0;
20118 GNULIB_SIGACTION=0;
20119 HAVE_POSIX_SIGNALBLOCKING=1;
20120 HAVE_PTHREAD_SIGMASK=1;
20125 HAVE_STRUCT_SIGACTION_SA_SIGACTION=1;
20127 HAVE_TYPE_VOLATILE_SIG_ATOMIC_T=1;
20129 HAVE_SIGHANDLER_T=1;
20130 REPLACE_PTHREAD_SIGMASK=0;
20134 ac_fn_c_check_type "$LINENO" "sigset_t" "ac_cv_type_sigset_t" "
20135 #include <signal.h>
20136 /* Mingw defines sigset_t not in <signal.h>, but in <sys/types.h>. */
20137 #include <sys/types.h>
20140 if test "x$ac_cv_type_sigset_t" = xyes; then :
20142 cat >>confdefs.h <<_ACEOF
20143 #define HAVE_SIGSET_T 1
20146 gl_cv_type_sigset_t=yes
20148 gl_cv_type_sigset_t=no
20151 if test $gl_cv_type_sigset_t != yes; then
20156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ssize_t" >&5
20157 $as_echo_n "checking for ssize_t... " >&6; }
20158 if ${gt_cv_ssize_t+:} false; then :
20159 $as_echo_n "(cached) " >&6
20161 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20162 /* end confdefs.h. */
20163 #include <sys/types.h>
20167 int x = sizeof (ssize_t *) + sizeof (ssize_t);
20173 if ac_fn_c_try_compile "$LINENO"; then :
20178 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_ssize_t" >&5
20181 $as_echo "$gt_cv_ssize_t" >&6; }
20182 if test $gt_cv_ssize_t = no; then
20184 $as_echo "#define ssize_t int" >>confdefs.h
20188 ac_fn_c_check_decl "$LINENO" "setenv" "ac_cv_have_decl_setenv" "$ac_includes_default"
20189 if test "x$ac_cv_have_decl_setenv" = xyes; then :
20195 cat >>confdefs.h <<_ACEOF
20196 #define HAVE_DECL_SETENV $ac_have_decl
20204 if test $ac_cv_have_decl_setenv = no; then
20212 for ac_header in search.h
20214 ac_fn_c_check_header_mongrel "$LINENO" "search.h" "ac_cv_header_search_h" "$ac_includes_default"
20215 if test "x$ac_cv_header_search_h" = xyes; then :
20216 cat >>confdefs.h <<_ACEOF
20217 #define HAVE_SEARCH_H 1
20224 for ac_func in tsearch
20226 ac_fn_c_check_func "$LINENO" "tsearch" "ac_cv_func_tsearch"
20227 if test "x$ac_cv_func_tsearch" = xyes; then :
20228 cat >>confdefs.h <<_ACEOF
20229 #define HAVE_TSEARCH 1
20239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
20240 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
20241 if ${ac_cv_type_uid_t+:} false; then :
20242 $as_echo_n "(cached) " >&6
20244 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20245 /* end confdefs.h. */
20246 #include <sys/types.h>
20249 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20250 $EGREP "uid_t" >/dev/null 2>&1; then :
20251 ac_cv_type_uid_t=yes
20253 ac_cv_type_uid_t=no
20258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
20259 $as_echo "$ac_cv_type_uid_t" >&6; }
20260 if test $ac_cv_type_uid_t = no; then
20262 $as_echo "#define uid_t int" >>confdefs.h
20265 $as_echo "#define gid_t int" >>confdefs.h
20283 GNULIB_FPRINTF_POSIX=0;
20299 GNULIB_OBSTACK_PRINTF=0;
20300 GNULIB_OBSTACK_PRINTF_POSIX=0;
20305 GNULIB_PRINTF_POSIX=0;
20314 GNULIB_SPRINTF_POSIX=0;
20315 GNULIB_STDIO_H_NONBLOCKING=0;
20316 GNULIB_STDIO_H_SIGPIPE=0;
20318 GNULIB_VASPRINTF=0;
20323 GNULIB_VFPRINTF_POSIX=0;
20325 GNULIB_VPRINTF_POSIX=0;
20326 GNULIB_VSNPRINTF=0;
20327 GNULIB_VSPRINTF_POSIX=0;
20328 HAVE_DECL_FPURGE=1;
20329 HAVE_DECL_FSEEKO=1;
20330 HAVE_DECL_FTELLO=1;
20331 HAVE_DECL_GETDELIM=1;
20332 HAVE_DECL_GETLINE=1;
20333 HAVE_DECL_OBSTACK_PRINTF=1;
20334 HAVE_DECL_SNPRINTF=1;
20335 HAVE_DECL_VSNPRINTF=1;
20356 REPLACE_GETDELIM=0;
20358 REPLACE_OBSTACK_PRINTF=0;
20364 REPLACE_RENAMEAT=0;
20365 REPLACE_SNPRINTF=0;
20367 REPLACE_STDIO_READ_FUNCS=0;
20368 REPLACE_STDIO_WRITE_FUNCS=0;
20370 REPLACE_VASPRINTF=0;
20371 REPLACE_VDPRINTF=0;
20372 REPLACE_VFPRINTF=0;
20374 REPLACE_VSNPRINTF=0;
20375 REPLACE_VSPRINTF=0;
20385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether snprintf returns a byte count as in C99" >&5
20386 $as_echo_n "checking whether snprintf returns a byte count as in C99... " >&6; }
20387 if ${gl_cv_func_snprintf_retval_c99+:} false; then :
20388 $as_echo_n "(cached) " >&6
20391 if test "$cross_compiling" = yes; then :
20393 # Guess yes on glibc systems.
20394 *-gnu* | gnu*) gl_cv_func_snprintf_retval_c99="guessing yes";;
20395 # Guess yes on FreeBSD >= 5.
20396 freebsd[1-4].*) gl_cv_func_snprintf_retval_c99="guessing no";;
20397 freebsd* | kfreebsd*) gl_cv_func_snprintf_retval_c99="guessing yes";;
20398 # Guess yes on Mac OS X >= 10.3.
20399 darwin[1-6].*) gl_cv_func_snprintf_retval_c99="guessing no";;
20400 darwin*) gl_cv_func_snprintf_retval_c99="guessing yes";;
20401 # Guess yes on OpenBSD >= 3.9.
20402 openbsd[1-2].* | openbsd3.[0-8] | openbsd3.[0-8].*)
20403 gl_cv_func_snprintf_retval_c99="guessing no";;
20404 openbsd*) gl_cv_func_snprintf_retval_c99="guessing yes";;
20405 # Guess yes on Solaris >= 2.10.
20406 solaris2.[1-9][0-9]*) gl_cv_func_printf_sizes_c99="guessing yes";;
20407 solaris*) gl_cv_func_printf_sizes_c99="guessing no";;
20408 # Guess yes on AIX >= 4.
20409 aix[1-3]*) gl_cv_func_snprintf_retval_c99="guessing no";;
20410 aix*) gl_cv_func_snprintf_retval_c99="guessing yes";;
20411 # Guess yes on NetBSD >= 3.
20412 netbsd[1-2]* | netbsdelf[1-2]* | netbsdaout[1-2]* | netbsdcoff[1-2]*)
20413 gl_cv_func_snprintf_retval_c99="guessing no";;
20414 netbsd*) gl_cv_func_snprintf_retval_c99="guessing yes";;
20415 # Guess yes on BeOS.
20416 beos*) gl_cv_func_snprintf_retval_c99="guessing yes";;
20417 # Guess yes on Android.
20418 linux*-android*) gl_cv_func_snprintf_retval_c99="guessing yes";;
20419 # Guess yes on MSVC, no on mingw.
20420 mingw*) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20421 /* end confdefs.h. */
20428 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20429 $EGREP "Known" >/dev/null 2>&1; then :
20430 gl_cv_func_snprintf_retval_c99="guessing yes"
20432 gl_cv_func_snprintf_retval_c99="guessing no"
20437 # If we don't know, assume the worst.
20438 *) gl_cv_func_snprintf_retval_c99="guessing no";;
20442 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20443 /* end confdefs.h. */
20446 #include <string.h>
20448 # define my_snprintf snprintf
20450 # include <stdarg.h>
20451 static int my_snprintf (char *buf, int size, const char *format, ...)
20455 va_start (args, format);
20456 ret = vsnprintf (buf, size, format, args);
20461 static char buf[100];
20464 strcpy (buf, "ABCDEF");
20465 if (my_snprintf (buf, 3, "%d %d", 4567, 89) != 7)
20467 if (my_snprintf (buf, 0, "%d %d", 4567, 89) != 7)
20469 if (my_snprintf (NULL, 0, "%d %d", 4567, 89) != 7)
20474 if ac_fn_c_try_run "$LINENO"; then :
20475 gl_cv_func_snprintf_retval_c99=yes
20477 gl_cv_func_snprintf_retval_c99=no
20479 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20480 conftest.$ac_objext conftest.beam conftest.$ac_ext
20485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_snprintf_retval_c99" >&5
20486 $as_echo "$gl_cv_func_snprintf_retval_c99" >&6; }
20488 ac_fn_c_check_decl "$LINENO" "snprintf" "ac_cv_have_decl_snprintf" "$ac_includes_default"
20489 if test "x$ac_cv_have_decl_snprintf" = xyes; then :
20495 cat >>confdefs.h <<_ACEOF
20496 #define HAVE_DECL_SNPRINTF $ac_have_decl
20499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
20500 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
20501 if ${ac_cv_header_stat_broken+:} false; then :
20502 $as_echo_n "(cached) " >&6
20504 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20505 /* end confdefs.h. */
20506 #include <sys/types.h>
20507 #include <sys/stat.h>
20509 #if defined S_ISBLK && defined S_IFDIR
20510 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
20513 #if defined S_ISBLK && defined S_IFCHR
20514 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
20517 #if defined S_ISLNK && defined S_IFREG
20518 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
20521 #if defined S_ISSOCK && defined S_IFREG
20522 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
20526 if ac_fn_c_try_compile "$LINENO"; then :
20527 ac_cv_header_stat_broken=no
20529 ac_cv_header_stat_broken=yes
20531 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
20534 $as_echo "$ac_cv_header_stat_broken" >&6; }
20535 if test $ac_cv_header_stat_broken = yes; then
20537 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
20557 if test $gl_cv_have_include_next = yes; then
20558 gl_cv_next_sys_stat_h='<'sys/stat.h'>'
20560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/stat.h>" >&5
20561 $as_echo_n "checking absolute name of <sys/stat.h>... " >&6; }
20562 if ${gl_cv_next_sys_stat_h+:} false; then :
20563 $as_echo_n "(cached) " >&6
20566 if test $ac_cv_header_sys_stat_h = yes; then
20571 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20572 /* end confdefs.h. */
20573 #include <sys/stat.h>
20576 aix*) gl_absname_cpp="$ac_cpp -C" ;;
20577 *) gl_absname_cpp="$ac_cpp" ;;
20582 gl_dirsep_regex='[/\\]'
20585 gl_dirsep_regex='\/'
20588 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
20589 gl_header_literal_regex=`echo 'sys/stat.h' \
20590 | sed -e "$gl_make_literal_regex_sed"`
20591 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
20592 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
20598 gl_cv_absolute_sys_stat_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
20599 sed -n "$gl_absolute_header_sed"`
20601 gl_header=$gl_cv_absolute_sys_stat_h
20602 gl_cv_next_sys_stat_h='"'$gl_header'"'
20604 gl_cv_next_sys_stat_h='<'sys/stat.h'>'
20609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_stat_h" >&5
20610 $as_echo "$gl_cv_next_sys_stat_h" >&6; }
20612 NEXT_SYS_STAT_H=$gl_cv_next_sys_stat_h
20614 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
20615 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
20616 gl_next_as_first_directive='<'sys/stat.h'>'
20618 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
20619 gl_next_as_first_directive=$gl_cv_next_sys_stat_h
20621 NEXT_AS_FIRST_DIRECTIVE_SYS_STAT_H=$gl_next_as_first_directive
20630 WINDOWS_STAT_TIMESPEC=0
20639 ac_fn_c_check_type "$LINENO" "nlink_t" "ac_cv_type_nlink_t" "#include <sys/types.h>
20640 #include <sys/stat.h>
20642 if test "x$ac_cv_type_nlink_t" = xyes; then :
20646 $as_echo "#define nlink_t int" >>confdefs.h
20655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
20656 $as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
20657 if ${ac_cv_header_stdbool_h+:} false; then :
20658 $as_echo_n "(cached) " >&6
20660 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20661 /* end confdefs.h. */
20663 #include <stdbool.h>
20668 typedef _Bool Bool;
20670 "error: bool is not defined"
20673 "error: false is not defined"
20676 "error: false is not 0"
20679 "error: true is not defined"
20682 "error: true is not 1"
20686 #ifndef __bool_true_false_are_defined
20687 "error: __bool_true_false_are_defined is not defined"
20690 struct s { Bool s: 1; Bool t; bool u: 1; bool v; } s;
20692 char a[true == 1 ? 1 : -1];
20693 char b[false == 0 ? 1 : -1];
20694 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
20695 char d[(bool) 0.5 == true ? 1 : -1];
20696 /* See body of main program for 'e'. */
20697 char f[(Bool) 0.0 == false ? 1 : -1];
20699 char h[sizeof (Bool)];
20700 char i[sizeof s.t];
20701 enum { j = false, k = true, l = false * true, m = true * 256 };
20702 /* The following fails for
20703 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
20705 char o[sizeof n == m * sizeof n[0] ? 1 : -1];
20706 char p[-1 - (Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
20707 /* Catch a bug in an HP-UX C compiler. See
20708 https://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
20709 https://lists.gnu.org/r/bug-coreutils/2005-11/msg00161.html
20720 *pq |= q; *pq |= ! q;
20721 *qq |= q; *qq |= ! q;
20722 /* Refer to every declared value, to avoid compiler optimizations. */
20723 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
20724 + !m + !n + !o + !p + !q + !pq + !qq);
20730 if ac_fn_c_try_compile "$LINENO"; then :
20731 ac_cv_header_stdbool_h=yes
20733 ac_cv_header_stdbool_h=no
20735 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
20738 $as_echo "$ac_cv_header_stdbool_h" >&6; }
20739 ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
20740 if test "x$ac_cv_type__Bool" = xyes; then :
20742 cat >>confdefs.h <<_ACEOF
20743 #define HAVE__BOOL 1
20752 HAVE_MAX_ALIGN_T=1;
20756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5
20757 $as_echo_n "checking for wchar_t... " >&6; }
20758 if ${gt_cv_c_wchar_t+:} false; then :
20759 $as_echo_n "(cached) " >&6
20761 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20762 /* end confdefs.h. */
20763 #include <stddef.h>
20764 wchar_t foo = (wchar_t)'\0';
20773 if ac_fn_c_try_compile "$LINENO"; then :
20774 gt_cv_c_wchar_t=yes
20778 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5
20781 $as_echo "$gt_cv_c_wchar_t" >&6; }
20782 if test $gt_cv_c_wchar_t = yes; then
20784 $as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h
20789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wint_t" >&5
20790 $as_echo_n "checking for wint_t... " >&6; }
20791 if ${gt_cv_c_wint_t+:} false; then :
20792 $as_echo_n "(cached) " >&6
20794 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20795 /* end confdefs.h. */
20797 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
20799 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be included
20800 before <wchar.h>. */
20801 #include <stddef.h>
20805 wint_t foo = (wchar_t)'\0';
20814 if ac_fn_c_try_compile "$LINENO"; then :
20819 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wint_t" >&5
20822 $as_echo "$gt_cv_c_wint_t" >&6; }
20823 if test $gt_cv_c_wint_t = yes; then
20825 $as_echo "#define HAVE_WINT_T 1" >>confdefs.h
20828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether wint_t is too small" >&5
20829 $as_echo_n "checking whether wint_t is too small... " >&6; }
20830 if ${gl_cv_type_wint_t_too_small+:} false; then :
20831 $as_echo_n "(cached) " >&6
20833 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20834 /* end confdefs.h. */
20836 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
20838 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
20839 included before <wchar.h>. */
20840 #if !(defined __GLIBC__ && !defined __UCLIBC__)
20841 # include <stddef.h>
20842 # include <stdio.h>
20846 int verify[sizeof (wint_t) < sizeof (int) ? -1 : 1];
20856 if ac_fn_c_try_compile "$LINENO"; then :
20857 gl_cv_type_wint_t_too_small=no
20859 gl_cv_type_wint_t_too_small=yes
20861 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_type_wint_t_too_small" >&5
20864 $as_echo "$gl_cv_type_wint_t_too_small" >&6; }
20865 if test $gl_cv_type_wint_t_too_small = yes; then
20866 GNULIB_OVERRIDES_WINT_T=1
20868 GNULIB_OVERRIDES_WINT_T=0
20871 GNULIB_OVERRIDES_WINT_T=0
20885 if test $ac_cv_type_long_long_int = yes; then
20886 HAVE_LONG_LONG_INT=1
20888 HAVE_LONG_LONG_INT=0
20892 if test $ac_cv_type_unsigned_long_long_int = yes; then
20893 HAVE_UNSIGNED_LONG_LONG_INT=1
20895 HAVE_UNSIGNED_LONG_LONG_INT=0
20900 if test $ac_cv_header_wchar_h = yes; then
20907 if test $ac_cv_header_inttypes_h = yes; then
20914 if test $ac_cv_header_sys_types_h = yes; then
20930 if test $gl_cv_have_include_next = yes; then
20931 gl_cv_next_stdint_h='<'stdint.h'>'
20933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdint.h>" >&5
20934 $as_echo_n "checking absolute name of <stdint.h>... " >&6; }
20935 if ${gl_cv_next_stdint_h+:} false; then :
20936 $as_echo_n "(cached) " >&6
20939 if test $ac_cv_header_stdint_h = yes; then
20944 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20945 /* end confdefs.h. */
20946 #include <stdint.h>
20949 aix*) gl_absname_cpp="$ac_cpp -C" ;;
20950 *) gl_absname_cpp="$ac_cpp" ;;
20955 gl_dirsep_regex='[/\\]'
20958 gl_dirsep_regex='\/'
20961 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
20962 gl_header_literal_regex=`echo 'stdint.h' \
20963 | sed -e "$gl_make_literal_regex_sed"`
20964 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
20965 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
20971 gl_cv_absolute_stdint_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
20972 sed -n "$gl_absolute_header_sed"`
20974 gl_header=$gl_cv_absolute_stdint_h
20975 gl_cv_next_stdint_h='"'$gl_header'"'
20977 gl_cv_next_stdint_h='<'stdint.h'>'
20982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdint_h" >&5
20983 $as_echo "$gl_cv_next_stdint_h" >&6; }
20985 NEXT_STDINT_H=$gl_cv_next_stdint_h
20987 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
20988 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
20989 gl_next_as_first_directive='<'stdint.h'>'
20991 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
20992 gl_next_as_first_directive=$gl_cv_next_stdint_h
20994 NEXT_AS_FIRST_DIRECTIVE_STDINT_H=$gl_next_as_first_directive
20999 if test $ac_cv_header_stdint_h = yes; then
21006 if test $ac_cv_header_stdint_h = yes; then
21007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stdint.h conforms to C99" >&5
21008 $as_echo_n "checking whether stdint.h conforms to C99... " >&6; }
21009 if ${gl_cv_header_working_stdint_h+:} false; then :
21010 $as_echo_n "(cached) " >&6
21012 gl_cv_header_working_stdint_h=no
21013 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21014 /* end confdefs.h. */
21017 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
21018 #define __STDC_CONSTANT_MACROS 1
21019 #define __STDC_LIMIT_MACROS 1
21020 #include <stdint.h>
21021 /* Dragonfly defines WCHAR_MIN, WCHAR_MAX only in <wchar.h>. */
21022 #if !(defined WCHAR_MIN && defined WCHAR_MAX)
21023 #error "WCHAR_MIN, WCHAR_MAX not defined in <stdint.h>"
21027 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
21028 included before <wchar.h>. */
21029 #include <stddef.h>
21030 #include <signal.h>
21032 # include <stdio.h>
21034 # include <wchar.h>
21039 int8_t a1 = INT8_MAX;
21040 int8_t a1min = INT8_MIN;
21043 int16_t a2 = INT16_MAX;
21044 int16_t a2min = INT16_MIN;
21047 int32_t a3 = INT32_MAX;
21048 int32_t a3min = INT32_MIN;
21051 int64_t a4 = INT64_MAX;
21052 int64_t a4min = INT64_MIN;
21055 uint8_t b1 = UINT8_MAX;
21057 typedef int b1[(unsigned char) -1 != 255 ? 1 : -1];
21060 uint16_t b2 = UINT16_MAX;
21063 uint32_t b3 = UINT32_MAX;
21066 uint64_t b4 = UINT64_MAX;
21068 int_least8_t c1 = INT8_C (0x7f);
21069 int_least8_t c1max = INT_LEAST8_MAX;
21070 int_least8_t c1min = INT_LEAST8_MIN;
21071 int_least16_t c2 = INT16_C (0x7fff);
21072 int_least16_t c2max = INT_LEAST16_MAX;
21073 int_least16_t c2min = INT_LEAST16_MIN;
21074 int_least32_t c3 = INT32_C (0x7fffffff);
21075 int_least32_t c3max = INT_LEAST32_MAX;
21076 int_least32_t c3min = INT_LEAST32_MIN;
21077 int_least64_t c4 = INT64_C (0x7fffffffffffffff);
21078 int_least64_t c4max = INT_LEAST64_MAX;
21079 int_least64_t c4min = INT_LEAST64_MIN;
21080 uint_least8_t d1 = UINT8_C (0xff);
21081 uint_least8_t d1max = UINT_LEAST8_MAX;
21082 uint_least16_t d2 = UINT16_C (0xffff);
21083 uint_least16_t d2max = UINT_LEAST16_MAX;
21084 uint_least32_t d3 = UINT32_C (0xffffffff);
21085 uint_least32_t d3max = UINT_LEAST32_MAX;
21086 uint_least64_t d4 = UINT64_C (0xffffffffffffffff);
21087 uint_least64_t d4max = UINT_LEAST64_MAX;
21088 int_fast8_t e1 = INT_FAST8_MAX;
21089 int_fast8_t e1min = INT_FAST8_MIN;
21090 int_fast16_t e2 = INT_FAST16_MAX;
21091 int_fast16_t e2min = INT_FAST16_MIN;
21092 int_fast32_t e3 = INT_FAST32_MAX;
21093 int_fast32_t e3min = INT_FAST32_MIN;
21094 int_fast64_t e4 = INT_FAST64_MAX;
21095 int_fast64_t e4min = INT_FAST64_MIN;
21096 uint_fast8_t f1 = UINT_FAST8_MAX;
21097 uint_fast16_t f2 = UINT_FAST16_MAX;
21098 uint_fast32_t f3 = UINT_FAST32_MAX;
21099 uint_fast64_t f4 = UINT_FAST64_MAX;
21101 intptr_t g = INTPTR_MAX;
21102 intptr_t gmin = INTPTR_MIN;
21105 uintptr_t h = UINTPTR_MAX;
21107 intmax_t i = INTMAX_MAX;
21108 uintmax_t j = UINTMAX_MAX;
21110 /* Check that SIZE_MAX has the correct type, if possible. */
21111 #if 201112 <= __STDC_VERSION__
21112 int k = _Generic (SIZE_MAX, size_t: 0);
21113 #elif (2 <= __GNUC__ || defined __IBM__TYPEOF__ \
21114 || (0x5110 <= __SUNPRO_C && !__STDC__))
21116 extern __typeof__ (SIZE_MAX) k;
21119 #include <limits.h> /* for CHAR_BIT */
21120 #define TYPE_MINIMUM(t) \
21121 ((t) ((t) 0 < (t) -1 ? (t) 0 : ~ TYPE_MAXIMUM (t)))
21122 #define TYPE_MAXIMUM(t) \
21123 ((t) ((t) 0 < (t) -1 \
21125 : ((((t) 1 << (sizeof (t) * CHAR_BIT - 2)) - 1) * 2 + 1)))
21128 PTRDIFF_MIN == TYPE_MINIMUM (ptrdiff_t)
21129 && PTRDIFF_MAX == TYPE_MAXIMUM (ptrdiff_t)
21131 /* Detect bug in FreeBSD 6.0 / ia64. */
21132 int check_SIG_ATOMIC:
21133 SIG_ATOMIC_MIN == TYPE_MINIMUM (sig_atomic_t)
21134 && SIG_ATOMIC_MAX == TYPE_MAXIMUM (sig_atomic_t)
21136 int check_SIZE: SIZE_MAX == TYPE_MAXIMUM (size_t) ? 1 : -1;
21138 WCHAR_MIN == TYPE_MINIMUM (wchar_t)
21139 && WCHAR_MAX == TYPE_MAXIMUM (wchar_t)
21141 /* Detect bug in mingw. */
21143 WINT_MIN == TYPE_MINIMUM (wint_t)
21144 && WINT_MAX == TYPE_MAXIMUM (wint_t)
21147 /* Detect bugs in glibc 2.4 and Solaris 10 stdint.h, among others. */
21149 (-1 < UINT8_C (0)) == (-1 < (uint_least8_t) 0) ? 1 : -1;
21150 int check_UINT16_C:
21151 (-1 < UINT16_C (0)) == (-1 < (uint_least16_t) 0) ? 1 : -1;
21153 /* Detect bugs in OpenBSD 3.9 stdint.h. */
21155 int check_uint8: (uint8_t) -1 == UINT8_MAX ? 1 : -1;
21158 int check_uint16: (uint16_t) -1 == UINT16_MAX ? 1 : -1;
21161 int check_uint32: (uint32_t) -1 == UINT32_MAX ? 1 : -1;
21164 int check_uint64: (uint64_t) -1 == UINT64_MAX ? 1 : -1;
21166 int check_uint_least8: (uint_least8_t) -1 == UINT_LEAST8_MAX ? 1 : -1;
21167 int check_uint_least16: (uint_least16_t) -1 == UINT_LEAST16_MAX ? 1 : -1;
21168 int check_uint_least32: (uint_least32_t) -1 == UINT_LEAST32_MAX ? 1 : -1;
21169 int check_uint_least64: (uint_least64_t) -1 == UINT_LEAST64_MAX ? 1 : -1;
21170 int check_uint_fast8: (uint_fast8_t) -1 == UINT_FAST8_MAX ? 1 : -1;
21171 int check_uint_fast16: (uint_fast16_t) -1 == UINT_FAST16_MAX ? 1 : -1;
21172 int check_uint_fast32: (uint_fast32_t) -1 == UINT_FAST32_MAX ? 1 : -1;
21173 int check_uint_fast64: (uint_fast64_t) -1 == UINT_FAST64_MAX ? 1 : -1;
21174 int check_uintptr: (uintptr_t) -1 == UINTPTR_MAX ? 1 : -1;
21175 int check_uintmax: (uintmax_t) -1 == UINTMAX_MAX ? 1 : -1;
21176 int check_size: (size_t) -1 == SIZE_MAX ? 1 : -1;
21187 if ac_fn_c_try_compile "$LINENO"; then :
21188 if test "$cross_compiling" = yes; then :
21190 # Guess yes on native Windows.
21191 mingw*) gl_cv_header_working_stdint_h="guessing yes" ;;
21192 # In general, assume it works.
21193 *) gl_cv_header_working_stdint_h="guessing yes" ;;
21197 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21198 /* end confdefs.h. */
21201 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
21202 #define __STDC_CONSTANT_MACROS 1
21203 #define __STDC_LIMIT_MACROS 1
21204 #include <stdint.h>
21207 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
21208 included before <wchar.h>. */
21209 #include <stddef.h>
21210 #include <signal.h>
21212 # include <stdio.h>
21214 # include <wchar.h>
21219 #include <string.h>
21220 #define MVAL(macro) MVAL1(macro)
21221 #define MVAL1(expression) #expression
21222 static const char *macro_values[] =
21256 for (mv = macro_values; *mv != NULL; mv++)
21258 const char *value = *mv;
21259 /* Test whether it looks like a cast expression. */
21260 if (strncmp (value, "((unsigned int)"/*)*/, 15) == 0
21261 || strncmp (value, "((unsigned short)"/*)*/, 17) == 0
21262 || strncmp (value, "((unsigned char)"/*)*/, 16) == 0
21263 || strncmp (value, "((int)"/*)*/, 6) == 0
21264 || strncmp (value, "((signed short)"/*)*/, 15) == 0
21265 || strncmp (value, "((signed char)"/*)*/, 14) == 0)
21266 return mv - macro_values + 1;
21274 if ac_fn_c_try_run "$LINENO"; then :
21275 gl_cv_header_working_stdint_h=yes
21277 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21278 conftest.$ac_objext conftest.beam conftest.$ac_ext
21283 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_stdint_h" >&5
21287 $as_echo "$gl_cv_header_working_stdint_h" >&6; }
21290 HAVE_C99_STDINT_H=0
21291 HAVE_SYS_BITYPES_H=0
21292 HAVE_SYS_INTTYPES_H=0
21294 case "$gl_cv_header_working_stdint_h" in
21296 HAVE_C99_STDINT_H=1
21297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stdint.h predates C++11" >&5
21298 $as_echo_n "checking whether stdint.h predates C++11... " >&6; }
21299 if ${gl_cv_header_stdint_predates_cxx11_h+:} false; then :
21300 $as_echo_n "(cached) " >&6
21302 gl_cv_header_stdint_predates_cxx11_h=yes
21303 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21304 /* end confdefs.h. */
21307 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
21308 #include <stdint.h>
21311 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
21312 included before <wchar.h>. */
21313 #include <stddef.h>
21314 #include <signal.h>
21316 # include <stdio.h>
21318 # include <wchar.h>
21322 intmax_t im = INTMAX_MAX;
21323 int32_t i32 = INT32_C (0x7fffffff);
21333 if ac_fn_c_try_compile "$LINENO"; then :
21334 gl_cv_header_stdint_predates_cxx11_h=no
21336 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_stdint_predates_cxx11_h" >&5
21339 $as_echo "$gl_cv_header_stdint_predates_cxx11_h" >&6; }
21341 if test "$gl_cv_header_stdint_predates_cxx11_h" = yes; then
21343 $as_echo "#define __STDC_CONSTANT_MACROS 1" >>confdefs.h
21346 $as_echo "#define __STDC_LIMIT_MACROS 1" >>confdefs.h
21349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stdint.h has UINTMAX_WIDTH etc." >&5
21350 $as_echo_n "checking whether stdint.h has UINTMAX_WIDTH etc.... " >&6; }
21351 if ${gl_cv_header_stdint_width+:} false; then :
21352 $as_echo_n "(cached) " >&6
21354 gl_cv_header_stdint_width=no
21355 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21356 /* end confdefs.h. */
21358 /* Work if build is not clean. */
21359 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1
21360 #ifndef __STDC_WANT_IEC_60559_BFP_EXT__
21361 #define __STDC_WANT_IEC_60559_BFP_EXT__ 1
21363 #include <stdint.h>
21365 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
21366 included before <wchar.h>. */
21367 #include <stddef.h>
21368 #include <signal.h>
21370 # include <stdio.h>
21372 # include <wchar.h>
21375 int iw = UINTMAX_WIDTH;
21385 if ac_fn_c_try_compile "$LINENO"; then :
21386 gl_cv_header_stdint_width=yes
21388 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_stdint_width" >&5
21391 $as_echo "$gl_cv_header_stdint_width" >&6; }
21392 if test "$gl_cv_header_stdint_width" = yes; then
21397 for ac_header in sys/inttypes.h sys/bitypes.h
21399 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
21400 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
21401 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
21402 cat >>confdefs.h <<_ACEOF
21403 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
21410 if test $ac_cv_header_sys_inttypes_h = yes; then
21411 HAVE_SYS_INTTYPES_H=1
21413 if test $ac_cv_header_sys_bitypes_h = yes; then
21414 HAVE_SYS_BITYPES_H=1
21418 if test $APPLE_UNIVERSAL_BUILD = 0; then
21421 for gltype in ptrdiff_t size_t ; do
21422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
21423 $as_echo_n "checking for bit size of $gltype... " >&6; }
21424 if eval \${gl_cv_bitsizeof_${gltype}+:} false; then :
21425 $as_echo_n "(cached) " >&6
21427 if ac_fn_c_compute_int "$LINENO" "sizeof ($gltype) * CHAR_BIT" "result" "
21428 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
21429 included before <wchar.h>. */
21430 #include <stddef.h>
21431 #include <signal.h>
21433 # include <stdio.h>
21435 # include <wchar.h>
21438 #include <limits.h>"; then :
21444 eval gl_cv_bitsizeof_${gltype}=\$result
21447 eval ac_res=\$gl_cv_bitsizeof_${gltype}
21448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
21449 $as_echo "$ac_res" >&6; }
21450 eval result=\$gl_cv_bitsizeof_${gltype}
21451 if test $result = unknown; then
21454 GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
21455 cat >>confdefs.h <<_ACEOF
21456 #define BITSIZEOF_${GLTYPE} $result
21459 eval BITSIZEOF_${GLTYPE}=\$result
21466 for gltype in sig_atomic_t wchar_t wint_t ; do
21467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
21468 $as_echo_n "checking for bit size of $gltype... " >&6; }
21469 if eval \${gl_cv_bitsizeof_${gltype}+:} false; then :
21470 $as_echo_n "(cached) " >&6
21472 if ac_fn_c_compute_int "$LINENO" "sizeof ($gltype) * CHAR_BIT" "result" "
21473 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
21474 included before <wchar.h>. */
21475 #include <stddef.h>
21476 #include <signal.h>
21478 # include <stdio.h>
21480 # include <wchar.h>
21483 #include <limits.h>"; then :
21489 eval gl_cv_bitsizeof_${gltype}=\$result
21492 eval ac_res=\$gl_cv_bitsizeof_${gltype}
21493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
21494 $as_echo "$ac_res" >&6; }
21495 eval result=\$gl_cv_bitsizeof_${gltype}
21496 if test $result = unknown; then
21499 GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
21500 cat >>confdefs.h <<_ACEOF
21501 #define BITSIZEOF_${GLTYPE} $result
21504 eval BITSIZEOF_${GLTYPE}=\$result
21510 for gltype in sig_atomic_t wchar_t wint_t ; do
21511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gltype is signed" >&5
21512 $as_echo_n "checking whether $gltype is signed... " >&6; }
21513 if eval \${gl_cv_type_${gltype}_signed+:} false; then :
21514 $as_echo_n "(cached) " >&6
21516 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21517 /* end confdefs.h. */
21519 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
21520 included before <wchar.h>. */
21521 #include <stddef.h>
21522 #include <signal.h>
21524 # include <stdio.h>
21526 # include <wchar.h>
21529 int verify[2 * (($gltype) -1 < ($gltype) 0) - 1];
21538 if ac_fn_c_try_compile "$LINENO"; then :
21543 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21544 eval gl_cv_type_${gltype}_signed=\$result
21547 eval ac_res=\$gl_cv_type_${gltype}_signed
21548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
21549 $as_echo "$ac_res" >&6; }
21550 eval result=\$gl_cv_type_${gltype}_signed
21551 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
21552 if test "$result" = yes; then
21553 cat >>confdefs.h <<_ACEOF
21554 #define HAVE_SIGNED_${GLTYPE} 1
21557 eval HAVE_SIGNED_${GLTYPE}=1
21559 eval HAVE_SIGNED_${GLTYPE}=0
21564 gl_cv_type_ptrdiff_t_signed=yes
21565 gl_cv_type_size_t_signed=no
21566 if test $APPLE_UNIVERSAL_BUILD = 0; then
21569 for gltype in ptrdiff_t size_t ; do
21570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
21571 $as_echo_n "checking for $gltype integer literal suffix... " >&6; }
21572 if eval \${gl_cv_type_${gltype}_suffix+:} false; then :
21573 $as_echo_n "(cached) " >&6
21575 eval gl_cv_type_${gltype}_suffix=no
21576 eval result=\$gl_cv_type_${gltype}_signed
21577 if test "$result" = yes; then
21582 for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do
21584 '') gltype1='int';;
21585 l) gltype1='long int';;
21586 ll) gltype1='long long int';;
21587 i64) gltype1='__int64';;
21588 u) gltype1='unsigned int';;
21589 ul) gltype1='unsigned long int';;
21590 ull) gltype1='unsigned long long int';;
21591 ui64)gltype1='unsigned __int64';;
21593 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21594 /* end confdefs.h. */
21596 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
21597 included before <wchar.h>. */
21598 #include <stddef.h>
21599 #include <signal.h>
21601 # include <stdio.h>
21603 # include <wchar.h>
21606 extern $gltype foo;
21607 extern $gltype1 foo;
21616 if ac_fn_c_try_compile "$LINENO"; then :
21617 eval gl_cv_type_${gltype}_suffix=\$glsuf
21619 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21620 eval result=\$gl_cv_type_${gltype}_suffix
21621 test "$result" != no && break
21624 eval ac_res=\$gl_cv_type_${gltype}_suffix
21625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
21626 $as_echo "$ac_res" >&6; }
21627 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
21628 eval result=\$gl_cv_type_${gltype}_suffix
21629 test "$result" = no && result=
21630 eval ${GLTYPE}_SUFFIX=\$result
21631 cat >>confdefs.h <<_ACEOF
21632 #define ${GLTYPE}_SUFFIX $result
21641 for gltype in sig_atomic_t wchar_t wint_t ; do
21642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
21643 $as_echo_n "checking for $gltype integer literal suffix... " >&6; }
21644 if eval \${gl_cv_type_${gltype}_suffix+:} false; then :
21645 $as_echo_n "(cached) " >&6
21647 eval gl_cv_type_${gltype}_suffix=no
21648 eval result=\$gl_cv_type_${gltype}_signed
21649 if test "$result" = yes; then
21654 for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do
21656 '') gltype1='int';;
21657 l) gltype1='long int';;
21658 ll) gltype1='long long int';;
21659 i64) gltype1='__int64';;
21660 u) gltype1='unsigned int';;
21661 ul) gltype1='unsigned long int';;
21662 ull) gltype1='unsigned long long int';;
21663 ui64)gltype1='unsigned __int64';;
21665 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21666 /* end confdefs.h. */
21668 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
21669 included before <wchar.h>. */
21670 #include <stddef.h>
21671 #include <signal.h>
21673 # include <stdio.h>
21675 # include <wchar.h>
21678 extern $gltype foo;
21679 extern $gltype1 foo;
21688 if ac_fn_c_try_compile "$LINENO"; then :
21689 eval gl_cv_type_${gltype}_suffix=\$glsuf
21691 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21692 eval result=\$gl_cv_type_${gltype}_suffix
21693 test "$result" != no && break
21696 eval ac_res=\$gl_cv_type_${gltype}_suffix
21697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
21698 $as_echo "$ac_res" >&6; }
21699 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
21700 eval result=\$gl_cv_type_${gltype}_suffix
21701 test "$result" = no && result=
21702 eval ${GLTYPE}_SUFFIX=\$result
21703 cat >>confdefs.h <<_ACEOF
21704 #define ${GLTYPE}_SUFFIX $result
21711 if test $GNULIB_OVERRIDES_WINT_T = 1; then
21712 BITSIZEOF_WINT_T=32
21720 LIMITS_H='limits.h'
21721 if test -n "$LIMITS_H"; then
21722 GL_GENERATE_LIMITS_H_TRUE=
21723 GL_GENERATE_LIMITS_H_FALSE='#'
21725 GL_GENERATE_LIMITS_H_TRUE='#'
21726 GL_GENERATE_LIMITS_H_FALSE=
21735 if test -n "$STDINT_H"; then
21736 GL_GENERATE_STDINT_H_TRUE=
21737 GL_GENERATE_STDINT_H_FALSE='#'
21739 GL_GENERATE_STDINT_H_TRUE='#'
21740 GL_GENERATE_STDINT_H_FALSE=
21745 REPLACE_STRERROR_0=0
21746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strerror(0) succeeds" >&5
21747 $as_echo_n "checking whether strerror(0) succeeds... " >&6; }
21748 if ${gl_cv_func_strerror_0_works+:} false; then :
21749 $as_echo_n "(cached) " >&6
21751 if test "$cross_compiling" = yes; then :
21753 # Guess yes on glibc systems.
21754 *-gnu* | gnu*) gl_cv_func_strerror_0_works="guessing yes" ;;
21755 # Guess yes on native Windows.
21756 mingw*) gl_cv_func_strerror_0_works="guessing yes" ;;
21757 # If we don't know, assume the worst.
21758 *) gl_cv_func_strerror_0_works="guessing no" ;;
21762 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21763 /* end confdefs.h. */
21764 #include <string.h>
21773 str = strerror (0);
21774 if (!*str) result |= 1;
21775 if (errno) result |= 2;
21776 if (strstr (str, "nknown") || strstr (str, "ndefined"))
21783 if ac_fn_c_try_run "$LINENO"; then :
21784 gl_cv_func_strerror_0_works=yes
21786 gl_cv_func_strerror_0_works=no
21788 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21789 conftest.$ac_objext conftest.beam conftest.$ac_ext
21794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_strerror_0_works" >&5
21795 $as_echo "$gl_cv_func_strerror_0_works" >&6; }
21796 case "$gl_cv_func_strerror_0_works" in
21799 REPLACE_STRERROR_0=1
21801 $as_echo "#define REPLACE_STRERROR_0 1" >>confdefs.h
21817 if test $gl_cv_have_include_next = yes; then
21818 gl_cv_next_string_h='<'string.h'>'
21820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <string.h>" >&5
21821 $as_echo_n "checking absolute name of <string.h>... " >&6; }
21822 if ${gl_cv_next_string_h+:} false; then :
21823 $as_echo_n "(cached) " >&6
21828 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21829 /* end confdefs.h. */
21830 #include <string.h>
21833 aix*) gl_absname_cpp="$ac_cpp -C" ;;
21834 *) gl_absname_cpp="$ac_cpp" ;;
21839 gl_dirsep_regex='[/\\]'
21842 gl_dirsep_regex='\/'
21845 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
21846 gl_header_literal_regex=`echo 'string.h' \
21847 | sed -e "$gl_make_literal_regex_sed"`
21848 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
21849 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
21855 gl_cv_absolute_string_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
21856 sed -n "$gl_absolute_header_sed"`
21858 gl_header=$gl_cv_absolute_string_h
21859 gl_cv_next_string_h='"'$gl_header'"'
21863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_string_h" >&5
21864 $as_echo "$gl_cv_next_string_h" >&6; }
21866 NEXT_STRING_H=$gl_cv_next_string_h
21868 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
21869 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
21870 gl_next_as_first_directive='<'string.h'>'
21872 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
21873 gl_next_as_first_directive=$gl_cv_next_string_h
21875 NEXT_AS_FIRST_DIRECTIVE_STRING_H=$gl_next_as_first_directive
21885 ac_fn_c_check_decl "$LINENO" "strndup" "ac_cv_have_decl_strndup" "$ac_includes_default"
21886 if test "x$ac_cv_have_decl_strndup" = xyes; then :
21892 cat >>confdefs.h <<_ACEOF
21893 #define HAVE_DECL_STRNDUP $ac_have_decl
21898 ac_fn_c_check_decl "$LINENO" "strnlen" "ac_cv_have_decl_strnlen" "$ac_includes_default"
21899 if test "x$ac_cv_have_decl_strnlen" = xyes; then :
21905 cat >>confdefs.h <<_ACEOF
21906 #define HAVE_DECL_STRNLEN $ac_have_decl
21909 ac_fn_c_check_decl "$LINENO" "strsignal" "ac_cv_have_decl_strsignal" "$ac_includes_default"
21910 if test "x$ac_cv_have_decl_strsignal" = xyes; then :
21916 cat >>confdefs.h <<_ACEOF
21917 #define HAVE_DECL_STRSIGNAL $ac_have_decl
21920 ac_fn_c_check_decl "$LINENO" "sys_siglist" "ac_cv_have_decl_sys_siglist" "#include <signal.h>
21921 /* NetBSD declares sys_siglist in unistd.h. */
21922 #ifdef HAVE_UNISTD_H
21923 # include <unistd.h>
21927 if test "x$ac_cv_have_decl_sys_siglist" = xyes; then :
21933 cat >>confdefs.h <<_ACEOF
21934 #define HAVE_DECL_SYS_SIGLIST $ac_have_decl
21950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <sys/select.h> is self-contained" >&5
21951 $as_echo_n "checking whether <sys/select.h> is self-contained... " >&6; }
21952 if ${gl_cv_header_sys_select_h_selfcontained+:} false; then :
21953 $as_echo_n "(cached) " >&6
21956 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21957 /* end confdefs.h. */
21958 #include <sys/select.h>
21967 if ac_fn_c_try_compile "$LINENO"; then :
21968 gl_cv_header_sys_select_h_selfcontained=yes
21970 gl_cv_header_sys_select_h_selfcontained=no
21972 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21973 if test $gl_cv_header_sys_select_h_selfcontained = yes; then
21974 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21975 /* end confdefs.h. */
21976 #include <sys/select.h>
21980 int memset; int bzero;
21986 if ac_fn_c_try_compile "$LINENO"; then :
21987 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21988 /* end confdefs.h. */
21989 #include <sys/select.h>
21995 #define memset nonexistent_memset
22000 void *memset (void *, int, unsigned long);
22002 #define bzero nonexistent_bzero
22007 void bzero (void *, unsigned long);
22016 if ac_fn_c_try_link "$LINENO"; then :
22019 gl_cv_header_sys_select_h_selfcontained=no
22021 rm -f core conftest.err conftest.$ac_objext \
22022 conftest$ac_exeext conftest.$ac_ext
22025 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_sys_select_h_selfcontained" >&5
22030 $as_echo "$gl_cv_header_sys_select_h_selfcontained" >&6; }
22040 if test $gl_cv_have_include_next = yes; then
22041 gl_cv_next_sys_select_h='<'sys/select.h'>'
22043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/select.h>" >&5
22044 $as_echo_n "checking absolute name of <sys/select.h>... " >&6; }
22045 if ${gl_cv_next_sys_select_h+:} false; then :
22046 $as_echo_n "(cached) " >&6
22049 if test $ac_cv_header_sys_select_h = yes; then
22054 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22055 /* end confdefs.h. */
22056 #include <sys/select.h>
22059 aix*) gl_absname_cpp="$ac_cpp -C" ;;
22060 *) gl_absname_cpp="$ac_cpp" ;;
22065 gl_dirsep_regex='[/\\]'
22068 gl_dirsep_regex='\/'
22071 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
22072 gl_header_literal_regex=`echo 'sys/select.h' \
22073 | sed -e "$gl_make_literal_regex_sed"`
22074 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
22075 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
22081 gl_cv_absolute_sys_select_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
22082 sed -n "$gl_absolute_header_sed"`
22084 gl_header=$gl_cv_absolute_sys_select_h
22085 gl_cv_next_sys_select_h='"'$gl_header'"'
22087 gl_cv_next_sys_select_h='<'sys/select.h'>'
22092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_select_h" >&5
22093 $as_echo "$gl_cv_next_sys_select_h" >&6; }
22095 NEXT_SYS_SELECT_H=$gl_cv_next_sys_select_h
22097 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
22098 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
22099 gl_next_as_first_directive='<'sys/select.h'>'
22101 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
22102 gl_next_as_first_directive=$gl_cv_next_sys_select_h
22104 NEXT_AS_FIRST_DIRECTIVE_SYS_SELECT_H=$gl_next_as_first_directive
22109 if test $ac_cv_header_sys_select_h = yes; then
22110 HAVE_SYS_SELECT_H=1
22112 HAVE_SYS_SELECT_H=0
22119 if test $ac_cv_header_sys_socket_h != yes; then
22120 for ac_header in winsock2.h
22122 ac_fn_c_check_header_mongrel "$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
22123 if test "x$ac_cv_header_winsock2_h" = xyes; then :
22124 cat >>confdefs.h <<_ACEOF
22125 #define HAVE_WINSOCK2_H 1
22133 if test "$ac_cv_header_winsock2_h" = yes; then
22135 UNISTD_H_HAVE_WINSOCK2_H=1
22136 SYS_IOCTL_H_HAVE_WINSOCK2_H=1
22157 $as_echo "#define _USE_STD_STAT 1" >>confdefs.h
22169 if test $gl_cv_have_include_next = yes; then
22170 gl_cv_next_sys_types_h='<'sys/types.h'>'
22172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/types.h>" >&5
22173 $as_echo_n "checking absolute name of <sys/types.h>... " >&6; }
22174 if ${gl_cv_next_sys_types_h+:} false; then :
22175 $as_echo_n "(cached) " >&6
22180 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22181 /* end confdefs.h. */
22182 #include <sys/types.h>
22185 aix*) gl_absname_cpp="$ac_cpp -C" ;;
22186 *) gl_absname_cpp="$ac_cpp" ;;
22191 gl_dirsep_regex='[/\\]'
22194 gl_dirsep_regex='\/'
22197 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
22198 gl_header_literal_regex=`echo 'sys/types.h' \
22199 | sed -e "$gl_make_literal_regex_sed"`
22200 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
22201 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
22207 gl_cv_absolute_sys_types_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
22208 sed -n "$gl_absolute_header_sed"`
22210 gl_header=$gl_cv_absolute_sys_types_h
22211 gl_cv_next_sys_types_h='"'$gl_header'"'
22215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_types_h" >&5
22216 $as_echo "$gl_cv_next_sys_types_h" >&6; }
22218 NEXT_SYS_TYPES_H=$gl_cv_next_sys_types_h
22220 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
22221 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
22222 gl_next_as_first_directive='<'sys/types.h'>'
22224 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
22225 gl_next_as_first_directive=$gl_cv_next_sys_types_h
22227 NEXT_AS_FIRST_DIRECTIVE_SYS_TYPES_H=$gl_next_as_first_directive
22240 WINDOWS_STAT_INODES=0
22251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <time.h>" >&5
22252 $as_echo_n "checking for struct timespec in <time.h>... " >&6; }
22253 if ${gl_cv_sys_struct_timespec_in_time_h+:} false; then :
22254 $as_echo_n "(cached) " >&6
22256 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22257 /* end confdefs.h. */
22263 static struct timespec x; x.tv_sec = x.tv_nsec;
22268 if ac_fn_c_try_compile "$LINENO"; then :
22269 gl_cv_sys_struct_timespec_in_time_h=yes
22271 gl_cv_sys_struct_timespec_in_time_h=no
22273 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_time_h" >&5
22276 $as_echo "$gl_cv_sys_struct_timespec_in_time_h" >&6; }
22278 TIME_H_DEFINES_STRUCT_TIMESPEC=0
22279 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC=0
22280 PTHREAD_H_DEFINES_STRUCT_TIMESPEC=0
22281 UNISTD_H_DEFINES_STRUCT_TIMESPEC=0
22282 if test $gl_cv_sys_struct_timespec_in_time_h = yes; then
22283 TIME_H_DEFINES_STRUCT_TIMESPEC=1
22285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <sys/time.h>" >&5
22286 $as_echo_n "checking for struct timespec in <sys/time.h>... " >&6; }
22287 if ${gl_cv_sys_struct_timespec_in_sys_time_h+:} false; then :
22288 $as_echo_n "(cached) " >&6
22290 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22291 /* end confdefs.h. */
22292 #include <sys/time.h>
22297 static struct timespec x; x.tv_sec = x.tv_nsec;
22302 if ac_fn_c_try_compile "$LINENO"; then :
22303 gl_cv_sys_struct_timespec_in_sys_time_h=yes
22305 gl_cv_sys_struct_timespec_in_sys_time_h=no
22307 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_sys_time_h" >&5
22310 $as_echo "$gl_cv_sys_struct_timespec_in_sys_time_h" >&6; }
22311 if test $gl_cv_sys_struct_timespec_in_sys_time_h = yes; then
22312 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC=1
22314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <pthread.h>" >&5
22315 $as_echo_n "checking for struct timespec in <pthread.h>... " >&6; }
22316 if ${gl_cv_sys_struct_timespec_in_pthread_h+:} false; then :
22317 $as_echo_n "(cached) " >&6
22319 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22320 /* end confdefs.h. */
22321 #include <pthread.h>
22326 static struct timespec x; x.tv_sec = x.tv_nsec;
22331 if ac_fn_c_try_compile "$LINENO"; then :
22332 gl_cv_sys_struct_timespec_in_pthread_h=yes
22334 gl_cv_sys_struct_timespec_in_pthread_h=no
22336 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_pthread_h" >&5
22339 $as_echo "$gl_cv_sys_struct_timespec_in_pthread_h" >&6; }
22340 if test $gl_cv_sys_struct_timespec_in_pthread_h = yes; then
22341 PTHREAD_H_DEFINES_STRUCT_TIMESPEC=1
22343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <unistd.h>" >&5
22344 $as_echo_n "checking for struct timespec in <unistd.h>... " >&6; }
22345 if ${gl_cv_sys_struct_timespec_in_unistd_h+:} false; then :
22346 $as_echo_n "(cached) " >&6
22348 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22349 /* end confdefs.h. */
22350 #include <unistd.h>
22355 static struct timespec x; x.tv_sec = x.tv_nsec;
22360 if ac_fn_c_try_compile "$LINENO"; then :
22361 gl_cv_sys_struct_timespec_in_unistd_h=yes
22363 gl_cv_sys_struct_timespec_in_unistd_h=no
22365 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_unistd_h" >&5
22368 $as_echo "$gl_cv_sys_struct_timespec_in_unistd_h" >&6; }
22369 if test $gl_cv_sys_struct_timespec_in_unistd_h = yes; then
22370 UNISTD_H_DEFINES_STRUCT_TIMESPEC=1
22391 if test $gl_cv_have_include_next = yes; then
22392 gl_cv_next_time_h='<'time.h'>'
22394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <time.h>" >&5
22395 $as_echo_n "checking absolute name of <time.h>... " >&6; }
22396 if ${gl_cv_next_time_h+:} false; then :
22397 $as_echo_n "(cached) " >&6
22402 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22403 /* end confdefs.h. */
22407 aix*) gl_absname_cpp="$ac_cpp -C" ;;
22408 *) gl_absname_cpp="$ac_cpp" ;;
22413 gl_dirsep_regex='[/\\]'
22416 gl_dirsep_regex='\/'
22419 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
22420 gl_header_literal_regex=`echo 'time.h' \
22421 | sed -e "$gl_make_literal_regex_sed"`
22422 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
22423 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
22429 gl_cv_absolute_time_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
22430 sed -n "$gl_absolute_header_sed"`
22432 gl_header=$gl_cv_absolute_time_h
22433 gl_cv_next_time_h='"'$gl_header'"'
22437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_time_h" >&5
22438 $as_echo "$gl_cv_next_time_h" >&6; }
22440 NEXT_TIME_H=$gl_cv_next_time_h
22442 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
22443 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
22444 gl_next_as_first_directive='<'time.h'>'
22446 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
22447 gl_next_as_first_directive=$gl_cv_next_time_h
22449 NEXT_AS_FIRST_DIRECTIVE_TIME_H=$gl_next_as_first_directive
22456 ac_fn_c_check_decl "$LINENO" "unsetenv" "ac_cv_have_decl_unsetenv" "$ac_includes_default"
22457 if test "x$ac_cv_have_decl_unsetenv" = xyes; then :
22463 cat >>confdefs.h <<_ACEOF
22464 #define HAVE_DECL_UNSETENV $ac_have_decl
22473 if test $ac_cv_header_features_h = yes; then
22481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
22482 $as_echo_n "checking for inttypes.h... " >&6; }
22483 if ${gl_cv_header_inttypes_h+:} false; then :
22484 $as_echo_n "(cached) " >&6
22486 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22487 /* end confdefs.h. */
22489 #include <sys/types.h>
22490 #include <inttypes.h>
22495 uintmax_t i = (uintmax_t) -1; return !i;
22500 if ac_fn_c_try_compile "$LINENO"; then :
22501 gl_cv_header_inttypes_h=yes
22503 gl_cv_header_inttypes_h=no
22505 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_inttypes_h" >&5
22508 $as_echo "$gl_cv_header_inttypes_h" >&6; }
22509 if test $gl_cv_header_inttypes_h = yes; then
22511 cat >>confdefs.h <<_ACEOF
22512 #define HAVE_INTTYPES_H_WITH_UINTMAX 1
22518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint.h" >&5
22519 $as_echo_n "checking for stdint.h... " >&6; }
22520 if ${gl_cv_header_stdint_h+:} false; then :
22521 $as_echo_n "(cached) " >&6
22523 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22524 /* end confdefs.h. */
22525 #include <sys/types.h>
22526 #include <stdint.h>
22530 uintmax_t i = (uintmax_t) -1; return !i;
22535 if ac_fn_c_try_compile "$LINENO"; then :
22536 gl_cv_header_stdint_h=yes
22538 gl_cv_header_stdint_h=no
22540 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_stdint_h" >&5
22543 $as_echo "$gl_cv_header_stdint_h" >&6; }
22544 if test $gl_cv_header_stdint_h = yes; then
22546 cat >>confdefs.h <<_ACEOF
22547 #define HAVE_STDINT_H_WITH_UINTMAX 1
22555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intmax_t" >&5
22556 $as_echo_n "checking for intmax_t... " >&6; }
22557 if ${gt_cv_c_intmax_t+:} false; then :
22558 $as_echo_n "(cached) " >&6
22560 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22561 /* end confdefs.h. */
22563 #include <stddef.h>
22564 #include <stdlib.h>
22565 #if HAVE_STDINT_H_WITH_UINTMAX
22566 #include <stdint.h>
22568 #if HAVE_INTTYPES_H_WITH_UINTMAX
22569 #include <inttypes.h>
22575 intmax_t x = -1; return !x;
22580 if ac_fn_c_try_compile "$LINENO"; then :
22581 gt_cv_c_intmax_t=yes
22583 gt_cv_c_intmax_t=no
22585 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_intmax_t" >&5
22588 $as_echo "$gt_cv_c_intmax_t" >&6; }
22589 if test $gt_cv_c_intmax_t = yes; then
22591 $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
22595 test $ac_cv_type_long_long_int = yes \
22596 && ac_type='long long' \
22599 cat >>confdefs.h <<_ACEOF
22600 #define intmax_t $ac_type
22606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the exponent in a 'double'" >&5
22607 $as_echo_n "checking where to find the exponent in a 'double'... " >&6; }
22608 if ${gl_cv_cc_double_expbit0+:} false; then :
22609 $as_echo_n "(cached) " >&6
22612 if test "$cross_compiling" = yes; then :
22614 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22615 /* end confdefs.h. */
22617 #if defined arm || defined __arm || defined __arm__
22622 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22623 $EGREP "mixed_endianness" >/dev/null 2>&1; then :
22624 gl_cv_cc_double_expbit0="unknown"
22628 if ${ac_cv_c_bigendian+:} false; then :
22629 $as_echo_n "(cached) " >&6
22631 ac_cv_c_bigendian=unknown
22632 # See if we're dealing with a universal compiler.
22633 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22634 /* end confdefs.h. */
22635 #ifndef __APPLE_CC__
22636 not a universal capable compiler
22641 if ac_fn_c_try_compile "$LINENO"; then :
22643 # Check for potential -arch flags. It is not universal unless
22644 # there are at least two -arch flags with different values.
22647 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
22648 if test -n "$ac_prev"; then
22650 i?86 | x86_64 | ppc | ppc64)
22651 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
22654 ac_cv_c_bigendian=universal
22660 elif test "x$ac_word" = "x-arch"; then
22665 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22666 if test $ac_cv_c_bigendian = unknown; then
22667 # See if sys/param.h defines the BYTE_ORDER macro.
22668 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22669 /* end confdefs.h. */
22670 #include <sys/types.h>
22671 #include <sys/param.h>
22676 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
22677 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
22679 bogus endian macros
22686 if ac_fn_c_try_compile "$LINENO"; then :
22687 # It does; now see whether it defined to BIG_ENDIAN or not.
22688 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22689 /* end confdefs.h. */
22690 #include <sys/types.h>
22691 #include <sys/param.h>
22696 #if BYTE_ORDER != BIG_ENDIAN
22704 if ac_fn_c_try_compile "$LINENO"; then :
22705 ac_cv_c_bigendian=yes
22707 ac_cv_c_bigendian=no
22709 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22711 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22713 if test $ac_cv_c_bigendian = unknown; then
22714 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
22715 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22716 /* end confdefs.h. */
22717 #include <limits.h>
22722 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
22723 bogus endian macros
22730 if ac_fn_c_try_compile "$LINENO"; then :
22731 # It does; now see whether it defined to _BIG_ENDIAN or not.
22732 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22733 /* end confdefs.h. */
22734 #include <limits.h>
22739 #ifndef _BIG_ENDIAN
22747 if ac_fn_c_try_compile "$LINENO"; then :
22748 ac_cv_c_bigendian=yes
22750 ac_cv_c_bigendian=no
22752 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22754 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22756 if test $ac_cv_c_bigendian = unknown; then
22757 # Compile a test program.
22758 if test "$cross_compiling" = yes; then :
22759 # Try to guess by grepping values from an object file.
22760 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22761 /* end confdefs.h. */
22762 short int ascii_mm[] =
22763 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
22764 short int ascii_ii[] =
22765 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
22766 int use_ascii (int i) {
22767 return ascii_mm[i] + ascii_ii[i];
22769 short int ebcdic_ii[] =
22770 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
22771 short int ebcdic_mm[] =
22772 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
22773 int use_ebcdic (int i) {
22774 return ebcdic_mm[i] + ebcdic_ii[i];
22781 return use_ascii (foo) == use_ebcdic (foo);
22786 if ac_fn_c_try_compile "$LINENO"; then :
22787 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
22788 ac_cv_c_bigendian=yes
22790 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
22791 if test "$ac_cv_c_bigendian" = unknown; then
22792 ac_cv_c_bigendian=no
22794 # finding both strings is unlikely to happen, but who knows?
22795 ac_cv_c_bigendian=unknown
22799 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22801 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22802 /* end confdefs.h. */
22803 $ac_includes_default
22808 /* Are we little or big endian? From Harbison&Steele. */
22812 char c[sizeof (long int)];
22815 return u.c[sizeof (long int) - 1] == 1;
22821 if ac_fn_c_try_run "$LINENO"; then :
22822 ac_cv_c_bigendian=no
22824 ac_cv_c_bigendian=yes
22826 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22827 conftest.$ac_objext conftest.beam conftest.$ac_ext
22833 case $ac_cv_c_bigendian in #(
22835 gl_cv_cc_double_expbit0="word 0 bit 20";; #(
22837 gl_cv_cc_double_expbit0="word 1 bit 20" ;; #(
22840 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
22844 gl_cv_cc_double_expbit0="unknown" ;;
22853 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22854 /* end confdefs.h. */
22857 #include <stddef.h>
22859 #include <string.h>
22861 ((sizeof (double) + sizeof (unsigned int) - 1) / sizeof (unsigned int))
22862 typedef union { double value; unsigned int word[NWORDS]; } memory_double;
22863 static unsigned int ored_words[NWORDS];
22864 static unsigned int anded_words[NWORDS];
22865 static void add_to_ored_words (double x)
22869 /* Clear it first, in case sizeof (double) < sizeof (memory_double). */
22870 memset (&m, 0, sizeof (memory_double));
22872 for (i = 0; i < NWORDS; i++)
22874 ored_words[i] |= m.word[i];
22875 anded_words[i] &= m.word[i];
22881 FILE *fp = fopen ("conftest.out", "w");
22884 for (j = 0; j < NWORDS; j++)
22885 anded_words[j] = ~ (unsigned int) 0;
22886 add_to_ored_words (0.25);
22887 add_to_ored_words (0.5);
22888 add_to_ored_words (1.0);
22889 add_to_ored_words (2.0);
22890 add_to_ored_words (4.0);
22891 /* Remove bits that are common (e.g. if representation of the first mantissa
22892 bit is explicit). */
22893 for (j = 0; j < NWORDS; j++)
22894 ored_words[j] &= ~anded_words[j];
22895 /* Now find the nonzero word. */
22896 for (j = 0; j < NWORDS; j++)
22897 if (ored_words[j] != 0)
22902 for (i = j + 1; i < NWORDS; i++)
22903 if (ored_words[i] != 0)
22905 fprintf (fp, "unknown");
22906 return (fclose (fp) != 0);
22909 if ((ored_words[j] >> i) & 1)
22911 fprintf (fp, "word %d bit %d", (int) j, (int) i);
22912 return (fclose (fp) != 0);
22915 fprintf (fp, "unknown");
22916 return (fclose (fp) != 0);
22920 if ac_fn_c_try_run "$LINENO"; then :
22921 gl_cv_cc_double_expbit0=`cat conftest.out`
22923 gl_cv_cc_double_expbit0="unknown"
22925 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22926 conftest.$ac_objext conftest.beam conftest.$ac_ext
22932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_double_expbit0" >&5
22933 $as_echo "$gl_cv_cc_double_expbit0" >&6; }
22934 case "$gl_cv_cc_double_expbit0" in
22936 word=`echo "$gl_cv_cc_double_expbit0" | sed -e 's/word //' -e 's/ bit.*//'`
22937 bit=`echo "$gl_cv_cc_double_expbit0" | sed -e 's/word.*bit //'`
22939 cat >>confdefs.h <<_ACEOF
22940 #define DBL_EXPBIT0_WORD $word
22944 cat >>confdefs.h <<_ACEOF
22945 #define DBL_EXPBIT0_BIT $bit
22956 for ac_func in snprintf strnlen wcslen wcsnlen mbrtowc wcrtomb
22958 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
22959 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
22960 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
22961 cat >>confdefs.h <<_ACEOF
22962 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
22968 ac_fn_c_check_decl "$LINENO" "_snprintf" "ac_cv_have_decl__snprintf" "#include <stdio.h>
22970 if test "x$ac_cv_have_decl__snprintf" = xyes; then :
22976 cat >>confdefs.h <<_ACEOF
22977 #define HAVE_DECL__SNPRINTF $ac_have_decl
22982 case "$gl_cv_func_snprintf_retval_c99" in
22985 $as_echo "#define HAVE_SNPRINTF_RETVAL_C99 1" >>confdefs.h
22996 GNULIB_MBSRTOWCS=0;
22997 GNULIB_MBSNRTOWCS=0;
22999 GNULIB_WCSRTOMBS=0;
23000 GNULIB_WCSNRTOMBS=0;
23017 GNULIB_WCSCASECMP=0;
23018 GNULIB_WCSNCASECMP=0;
23056 HAVE_WCSNCASECMP=1;
23070 HAVE_DECL_WCWIDTH=1;
23071 REPLACE_MBSTATE_T=0;
23077 REPLACE_MBSRTOWCS=0;
23078 REPLACE_MBSNRTOWCS=0;
23080 REPLACE_WCSRTOMBS=0;
23081 REPLACE_WCSNRTOMBS=0;
23083 REPLACE_WCSWIDTH=0;
23084 REPLACE_WCSFTIME=0;
23087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <wchar.h> uses 'inline' correctly" >&5
23088 $as_echo_n "checking whether <wchar.h> uses 'inline' correctly... " >&6; }
23089 if ${gl_cv_header_wchar_h_correct_inline+:} false; then :
23090 $as_echo_n "(cached) " >&6
23092 gl_cv_header_wchar_h_correct_inline=yes
23093 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23094 /* end confdefs.h. */
23096 #define wcstod renamed_wcstod
23097 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
23099 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
23100 included before <wchar.h>. */
23101 #include <stddef.h>
23105 extern int zero (void);
23106 int main () { return zero(); }
23109 save_ac_compile="$ac_compile"
23110 ac_compile=`echo "$save_ac_compile" | sed s/conftest/conftest1/`
23111 if echo '#include "conftest.c"' >conftest1.c &&
23112 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
23113 (eval $ac_compile) 2>&5
23115 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23116 test $ac_status = 0; }; then
23117 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23118 /* end confdefs.h. */
23120 #define wcstod renamed_wcstod
23121 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
23123 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
23124 included before <wchar.h>. */
23125 #include <stddef.h>
23129 int zero (void) { return 0; }
23132 ac_compile=`echo "$save_ac_compile" | sed s/conftest/conftest2/`
23133 if echo '#include "conftest.c"' >conftest2.c &&
23134 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
23135 (eval $ac_compile) 2>&5
23137 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23138 test $ac_status = 0; }; then
23139 if $CC -o conftest$ac_exeext $CFLAGS $LDFLAGS conftest1.$ac_objext conftest2.$ac_objext $LIBS >&5 2>&1; then
23142 gl_cv_header_wchar_h_correct_inline=no
23146 ac_compile="$save_ac_compile"
23147 rm -f conftest12.c conftest12.$ac_objext conftest$ac_exeext
23150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_wchar_h_correct_inline" >&5
23151 $as_echo "$gl_cv_header_wchar_h_correct_inline" >&6; }
23152 if test $gl_cv_header_wchar_h_correct_inline = no; then
23153 as_fn_error $? "<wchar.h> cannot be used with this compiler ($CC $CFLAGS $CPPFLAGS).
23154 This is a known interoperability problem of glibc <= 2.5 with gcc >= 4.3 in
23155 C99 mode. You have four options:
23156 - Add the flag -fgnu89-inline to CC and reconfigure, or
23157 - Fix your include files, using parts of
23158 <https://sourceware.org/git/?p=glibc.git;a=commitdiff;h=b037a293a48718af30d706c2e18c929d0e69a621>, or
23159 - Use a gcc version older than 4.3, or
23160 - Don't use the flags -std=c99 or -std=gnu99.
23161 Configuration aborted." "$LINENO" 5
23168 if test $ac_cv_header_crtdefs_h = yes; then
23177 GL_COND_LIBTOOL_TRUE=
23178 GL_COND_LIBTOOL_FALSE='#'
23180 GL_COND_LIBTOOL_TRUE='#'
23181 GL_COND_LIBTOOL_FALSE=
23184 gl_cond_libtool=true
23195 gl_source_base='gl/lib'
23198 if test $ac_cv_func_alloca_works = no; then
23202 # Define an additional variable used in the Makefile substitution.
23203 if test $ac_cv_working_alloca_h = yes; then
23204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca as a compiler built-in" >&5
23205 $as_echo_n "checking for alloca as a compiler built-in... " >&6; }
23206 if ${gl_cv_rpl_alloca+:} false; then :
23207 $as_echo_n "(cached) " >&6
23210 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23211 /* end confdefs.h. */
23213 #if defined __GNUC__ || defined _AIX || defined _MSC_VER
23218 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23219 $EGREP "Need own alloca" >/dev/null 2>&1; then :
23220 gl_cv_rpl_alloca=yes
23222 gl_cv_rpl_alloca=no
23228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_rpl_alloca" >&5
23229 $as_echo "$gl_cv_rpl_alloca" >&6; }
23230 if test $gl_cv_rpl_alloca = yes; then
23232 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
23242 if test -n "$ALLOCA_H"; then
23243 GL_GENERATE_ALLOCA_H_TRUE=
23244 GL_GENERATE_ALLOCA_H_FALSE='#'
23246 GL_GENERATE_ALLOCA_H_TRUE='#'
23247 GL_GENERATE_ALLOCA_H_FALSE=
23256 cat >>confdefs.h <<_ACEOF
23257 #define GNULIB_DIRNAME 1
23267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether // is distinct from /" >&5
23268 $as_echo_n "checking whether // is distinct from /... " >&6; }
23269 if ${gl_cv_double_slash_root+:} false; then :
23270 $as_echo_n "(cached) " >&6
23272 if test x"$cross_compiling" = xyes ; then
23273 # When cross-compiling, there is no way to tell whether // is special
23274 # short of a list of hosts. However, the only known hosts to date
23275 # that have a distinct // are Apollo DomainOS (too old to port to),
23276 # Cygwin, and z/OS. If anyone knows of another system for which // has
23277 # special semantics and is distinct from /, please report it to
23278 # <bug-gnulib@gnu.org>.
23280 *-cygwin | i370-ibm-openedition)
23281 gl_cv_double_slash_root=yes ;;
23283 # Be optimistic and assume that / and // are the same when we
23285 gl_cv_double_slash_root='unknown, assuming no' ;;
23288 set x `ls -di / // 2>/dev/null`
23289 if test "$2" = "$4" && wc //dev/null >/dev/null 2>&1; then
23290 gl_cv_double_slash_root=no
23292 gl_cv_double_slash_root=yes
23296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_double_slash_root" >&5
23297 $as_echo "$gl_cv_double_slash_root" >&6; }
23298 if test "$gl_cv_double_slash_root" = yes; then
23300 $as_echo "#define DOUBLE_SLASH_IS_DISTINCT_ROOT 1" >>confdefs.h
23316 $as_echo "#define GNULIB_TEST_ENVIRON 1" >>confdefs.h
23322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for error_at_line" >&5
23323 $as_echo_n "checking for error_at_line... " >&6; }
23324 if ${ac_cv_lib_error_at_line+:} false; then :
23325 $as_echo_n "(cached) " >&6
23327 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23328 /* end confdefs.h. */
23333 error_at_line (0, 0, "", 0, "an error occurred");
23338 if ac_fn_c_try_link "$LINENO"; then :
23339 ac_cv_lib_error_at_line=yes
23341 ac_cv_lib_error_at_line=no
23343 rm -f core conftest.err conftest.$ac_objext \
23344 conftest$ac_exeext conftest.$ac_ext
23346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_error_at_line" >&5
23347 $as_echo "$ac_cv_lib_error_at_line" >&6; }
23349 if test $ac_cv_lib_error_at_line = no; then
23358 gl_LIBOBJS="$gl_LIBOBJS error.$ac_objext"
23367 XGETTEXT_EXTRA_OPTIONS="$XGETTEXT_EXTRA_OPTIONS --flag=error:3:c-format"
23371 XGETTEXT_EXTRA_OPTIONS="$XGETTEXT_EXTRA_OPTIONS --flag=error_at_line:5:c-format"
23385 if test $gl_cv_have_include_next = yes; then
23386 gl_cv_next_fcntl_h='<'fcntl.h'>'
23388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <fcntl.h>" >&5
23389 $as_echo_n "checking absolute name of <fcntl.h>... " >&6; }
23390 if ${gl_cv_next_fcntl_h+:} false; then :
23391 $as_echo_n "(cached) " >&6
23396 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23397 /* end confdefs.h. */
23401 aix*) gl_absname_cpp="$ac_cpp -C" ;;
23402 *) gl_absname_cpp="$ac_cpp" ;;
23407 gl_dirsep_regex='[/\\]'
23410 gl_dirsep_regex='\/'
23413 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
23414 gl_header_literal_regex=`echo 'fcntl.h' \
23415 | sed -e "$gl_make_literal_regex_sed"`
23416 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
23417 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
23423 gl_cv_absolute_fcntl_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
23424 sed -n "$gl_absolute_header_sed"`
23426 gl_header=$gl_cv_absolute_fcntl_h
23427 gl_cv_next_fcntl_h='"'$gl_header'"'
23431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_fcntl_h" >&5
23432 $as_echo "$gl_cv_next_fcntl_h" >&6; }
23434 NEXT_FCNTL_H=$gl_cv_next_fcntl_h
23436 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
23437 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
23438 gl_next_as_first_directive='<'fcntl.h'>'
23440 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
23441 gl_next_as_first_directive=$gl_cv_next_fcntl_h
23443 NEXT_AS_FIRST_DIRECTIVE_FCNTL_H=$gl_next_as_first_directive
23461 REPLACE_FLOAT_LDBL=0
23463 aix* | beos* | openbsd* | mirbsd* | irix*)
23466 freebsd* | dragonfly*)
23467 case "$host_cpu" in
23472 # On x86_64 systems, the C compiler may still be generating
23474 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23475 /* end confdefs.h. */
23476 #if defined __LP64__ || defined __x86_64__ || defined __amd64__
23483 if ac_fn_c_try_compile "$LINENO"; then :
23488 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23493 case "$host_cpu" in
23501 aix* | freebsd* | dragonfly* | linux*)
23502 if test -n "$FLOAT_H"; then
23503 REPLACE_FLOAT_LDBL=1
23509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether conversion from 'int' to 'long double' works" >&5
23510 $as_echo_n "checking whether conversion from 'int' to 'long double' works... " >&6; }
23511 if ${gl_cv_func_itold_works+:} false; then :
23512 $as_echo_n "(cached) " >&6
23515 if test "$cross_compiling" = yes; then :
23518 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23519 /* end confdefs.h. */
23520 #if defined __LP64__ || defined __arch64__
23527 if ac_fn_c_try_compile "$LINENO"; then :
23528 gl_cv_func_itold_works="guessing no"
23530 gl_cv_func_itold_works="guessing yes"
23532 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23534 # Guess yes on native Windows.
23535 mingw*) gl_cv_func_itold_works="guessing yes" ;;
23536 *) gl_cv_func_itold_works="guessing yes" ;;
23540 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23541 /* end confdefs.h. */
23544 volatile long double ld;
23553 if ac_fn_c_try_run "$LINENO"; then :
23554 gl_cv_func_itold_works=yes
23556 gl_cv_func_itold_works=no
23558 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23559 conftest.$ac_objext conftest.beam conftest.$ac_ext
23564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_itold_works" >&5
23565 $as_echo "$gl_cv_func_itold_works" >&6; }
23566 case "$gl_cv_func_itold_works" in
23573 if test -n "$FLOAT_H"; then
23582 if test $gl_cv_have_include_next = yes; then
23583 gl_cv_next_float_h='<'float.h'>'
23585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <float.h>" >&5
23586 $as_echo_n "checking absolute name of <float.h>... " >&6; }
23587 if ${gl_cv_next_float_h+:} false; then :
23588 $as_echo_n "(cached) " >&6
23593 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23594 /* end confdefs.h. */
23598 aix*) gl_absname_cpp="$ac_cpp -C" ;;
23599 *) gl_absname_cpp="$ac_cpp" ;;
23604 gl_dirsep_regex='[/\\]'
23607 gl_dirsep_regex='\/'
23610 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
23611 gl_header_literal_regex=`echo 'float.h' \
23612 | sed -e "$gl_make_literal_regex_sed"`
23613 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
23614 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
23620 gl_cv_absolute_float_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
23621 sed -n "$gl_absolute_header_sed"`
23623 gl_header=$gl_cv_absolute_float_h
23624 gl_cv_next_float_h='"'$gl_header'"'
23628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_float_h" >&5
23629 $as_echo "$gl_cv_next_float_h" >&6; }
23631 NEXT_FLOAT_H=$gl_cv_next_float_h
23633 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
23634 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
23635 gl_next_as_first_directive='<'float.h'>'
23637 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
23638 gl_next_as_first_directive=$gl_cv_next_float_h
23640 NEXT_AS_FIRST_DIRECTIVE_FLOAT_H=$gl_next_as_first_directive
23647 if test -n "$FLOAT_H"; then
23648 GL_GENERATE_FLOAT_H_TRUE=
23649 GL_GENERATE_FLOAT_H_FALSE='#'
23651 GL_GENERATE_FLOAT_H_TRUE='#'
23652 GL_GENERATE_FLOAT_H_FALSE=
23657 if test $REPLACE_FLOAT_LDBL = 1; then
23666 gl_LIBOBJS="$gl_LIBOBJS float.$ac_objext"
23669 if test $REPLACE_ITOLD = 1; then
23678 gl_LIBOBJS="$gl_LIBOBJS itold.$ac_objext"
23685 ac_fn_c_check_decl "$LINENO" "program_invocation_name" "ac_cv_have_decl_program_invocation_name" "#include <errno.h>
23687 if test "x$ac_cv_have_decl_program_invocation_name" = xyes; then :
23693 cat >>confdefs.h <<_ACEOF
23694 #define HAVE_DECL_PROGRAM_INVOCATION_NAME $ac_have_decl
23696 if test $ac_have_decl = 1; then :
23700 ac_fn_c_check_decl "$LINENO" "program_invocation_short_name" "ac_cv_have_decl_program_invocation_short_name" "#include <errno.h>
23702 if test "x$ac_cv_have_decl_program_invocation_short_name" = xyes; then :
23708 cat >>confdefs.h <<_ACEOF
23709 #define HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME $ac_have_decl
23711 if test $ac_have_decl = 1; then :
23715 ac_fn_c_check_decl "$LINENO" "__argv" "ac_cv_have_decl___argv" "#include <stdlib.h>
23717 if test "x$ac_cv_have_decl___argv" = xyes; then :
23723 cat >>confdefs.h <<_ACEOF
23724 #define HAVE_DECL___ARGV $ac_have_decl
23726 if test $ac_have_decl = 1; then :
23731 # Incur the cost of this test only if none of the above worked.
23732 if test $ac_found = 0; then
23733 # On OpenBSD 5.1, using the global __progname variable appears to be
23734 # the only way to implement getprogname.
23735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether __progname is defined in default libraries" >&5
23736 $as_echo_n "checking whether __progname is defined in default libraries... " >&6; }
23737 if ${gl_cv_var___progname+:} false; then :
23738 $as_echo_n "(cached) " >&6
23741 gl_cv_var___progname=
23742 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23743 /* end confdefs.h. */
23744 extern char *__progname;
23748 return *__progname;
23754 if ac_fn_c_try_link "$LINENO"; then :
23755 gl_cv_var___progname=yes
23758 rm -f core conftest.err conftest.$ac_objext \
23759 conftest$ac_exeext conftest.$ac_ext
23763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_var___progname" >&5
23764 $as_echo "$gl_cv_var___progname" >&6; }
23765 if test "$gl_cv_var___progname" = yes; then
23767 $as_echo "#define HAVE_VAR___PROGNAME 1" >>confdefs.h
23781 gl_gettimeofday_timezone=void
23782 if test $ac_cv_func_gettimeofday != yes; then
23783 HAVE_GETTIMEOFDAY=0
23789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gettimeofday clobbers localtime buffer" >&5
23790 $as_echo_n "checking whether gettimeofday clobbers localtime buffer... " >&6; }
23791 if ${gl_cv_func_gettimeofday_clobber+:} false; then :
23792 $as_echo_n "(cached) " >&6
23794 if test "$cross_compiling" = yes; then :
23795 # When cross-compiling:
23797 # Guess all is fine on glibc systems.
23798 *-gnu* | gnu*) gl_cv_func_gettimeofday_clobber="guessing no" ;;
23799 # Guess no on native Windows.
23800 mingw*) gl_cv_func_gettimeofday_clobber="guessing no" ;;
23801 # If we don't know, assume the worst.
23802 *) gl_cv_func_gettimeofday_clobber="guessing yes" ;;
23806 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23807 /* end confdefs.h. */
23808 #include <string.h>
23809 #include <sys/time.h>
23811 #include <stdlib.h>
23819 struct tm saved_lt;
23821 lt = localtime (&t);
23823 gettimeofday (&tv, NULL);
23824 return memcmp (lt, &saved_lt, sizeof (struct tm)) != 0;
23830 if ac_fn_c_try_run "$LINENO"; then :
23831 gl_cv_func_gettimeofday_clobber=no
23833 gl_cv_func_gettimeofday_clobber=yes
23835 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23836 conftest.$ac_objext conftest.beam conftest.$ac_ext
23840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_gettimeofday_clobber" >&5
23841 $as_echo "$gl_cv_func_gettimeofday_clobber" >&6; }
23843 case "$gl_cv_func_gettimeofday_clobber" in
23845 REPLACE_GETTIMEOFDAY=1
23847 $as_echo "#define GETTIMEOFDAY_CLOBBERS_LOCALTIME 1" >>confdefs.h
23852 NEED_LOCALTIME_BUFFER=1
23854 REPLACE_LOCALTIME=1
23859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gettimeofday with POSIX signature" >&5
23860 $as_echo_n "checking for gettimeofday with POSIX signature... " >&6; }
23861 if ${gl_cv_func_gettimeofday_posix_signature+:} false; then :
23862 $as_echo_n "(cached) " >&6
23864 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23865 /* end confdefs.h. */
23866 #include <sys/time.h>
23868 int gettimeofday (struct timeval *restrict, void *restrict);
23873 /* glibc uses struct timezone * rather than the POSIX void *
23874 if _GNU_SOURCE is defined. However, since the only portable
23875 use of gettimeofday uses NULL as the second parameter, and
23876 since the glibc definition is actually more typesafe, it is
23877 not worth wrapping this to get a compliant signature. */
23878 int (*f) (struct timeval *restrict, void *restrict)
23881 return !(x | c.tv_sec | c.tv_usec);
23887 if ac_fn_c_try_compile "$LINENO"; then :
23888 gl_cv_func_gettimeofday_posix_signature=yes
23890 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23891 /* end confdefs.h. */
23892 #include <sys/time.h>
23893 int gettimeofday (struct timeval *restrict, struct timezone *restrict);
23903 if ac_fn_c_try_compile "$LINENO"; then :
23904 gl_cv_func_gettimeofday_posix_signature=almost
23906 gl_cv_func_gettimeofday_posix_signature=no
23908 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23910 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_gettimeofday_posix_signature" >&5
23913 $as_echo "$gl_cv_func_gettimeofday_posix_signature" >&6; }
23914 if test $gl_cv_func_gettimeofday_posix_signature = almost; then
23915 gl_gettimeofday_timezone='struct timezone'
23916 elif test $gl_cv_func_gettimeofday_posix_signature != yes; then
23917 REPLACE_GETTIMEOFDAY=1
23919 if test $REPLACE_STRUCT_TIMEVAL = 1; then
23920 REPLACE_GETTIMEOFDAY=1
23923 mingw*) REPLACE_GETTIMEOFDAY=1 ;;
23927 cat >>confdefs.h <<_ACEOF
23928 #define GETTIMEOFDAY_TIMEZONE $gl_gettimeofday_timezone
23932 if test $HAVE_GETTIMEOFDAY = 0 || test $REPLACE_GETTIMEOFDAY = 1; then
23941 gl_LIBOBJS="$gl_LIBOBJS gettimeofday.$ac_objext"
23950 GNULIB_GETTIMEOFDAY=1
23956 $as_echo "#define GNULIB_TEST_GETTIMEOFDAY 1" >>confdefs.h
23962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler flag to ignore unused libraries" >&5
23963 $as_echo_n "checking for C compiler flag to ignore unused libraries... " >&6; }
23964 if ${gl_cv_prog_c_ignore_unused_libraries+:} false; then :
23965 $as_echo_n "(cached) " >&6
23967 gl_cv_prog_c_ignore_unused_libraries=none
23968 gl_saved_ldflags=$LDFLAGS
23969 gl_saved_libs=$LIBS
23970 # Link with -lm to detect binutils 2.16 bug with --as-needed; see
23971 # <https://lists.gnu.org/r/bug-gnulib/2006-06/msg00131.html>.
23973 # Use long option sequences like '-z ignore' to test for the feature,
23974 # to forestall problems with linkers that have -z, -i, -g, -n, etc. flags.
23975 # GCC + binutils likes '-Wl,--as-needed'.
23976 # GCC + Solaris ld likes '-Wl,-z,ignore'.
23977 # Sun C likes '-Wl,-z,ignore'. '-z ignore' is accepted but has no effect.
23978 # Don't try bare '--as-needed'; nothing likes it and the HP-UX 11.11
23979 # native cc issues annoying warnings and then ignores it,
23980 # which would cause us to incorrectly conclude that it worked.
23981 for gl_flags in '-Wl,--as-needed' \
23986 LDFLAGS="$gl_flags $LDFLAGS"
23987 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23988 /* end confdefs.h. */
23998 if ac_fn_c_try_link "$LINENO"; then :
23999 gl_cv_prog_c_ignore_unused_libraries=$gl_flags
24001 rm -f core conftest.err conftest.$ac_objext \
24002 conftest$ac_exeext conftest.$ac_ext
24003 LDFLAGS=$gl_saved_ldflags
24004 test "$gl_cv_prog_c_ignore_unused_libraries" != none &&
24007 LIBS=$gl_saved_libs
24010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_prog_c_ignore_unused_libraries" >&5
24011 $as_echo "$gl_cv_prog_c_ignore_unused_libraries" >&6; }
24012 IGNORE_UNUSED_LIBRARIES_CFLAGS=
24013 if test "$gl_cv_prog_c_ignore_unused_libraries" != none; then
24014 IGNORE_UNUSED_LIBRARIES_CFLAGS="$gl_cv_prog_c_ignore_unused_libraries"
24028 gl_LIBOBJS="$gl_LIBOBJS localtime-buffer.$ac_objext"
24032 if test "$gl_threads_api" = posix; then
24033 # OSF/1 4.0 and Mac OS X 10.1 lack the pthread_rwlock_t type and the
24034 # pthread_rwlock_* functions.
24036 ac_fn_c_check_type "$LINENO" "pthread_rwlock_t" "ac_cv_type_pthread_rwlock_t" "#include <pthread.h>
24038 if test "x$ac_cv_type_pthread_rwlock_t" = xyes; then :
24041 $as_echo "#define HAVE_PTHREAD_RWLOCK 1" >>confdefs.h
24045 if $has_rwlock; then
24048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthread_rwlock_rdlock prefers a writer to a reader" >&5
24049 $as_echo_n "checking whether pthread_rwlock_rdlock prefers a writer to a reader... " >&6; }
24050 if ${gl_cv_pthread_rwlock_rdlock_prefer_writer+:} false; then :
24051 $as_echo_n "(cached) " >&6
24054 LIBS="$LIBS $LIBMULTITHREAD"
24055 if test "$cross_compiling" = yes; then :
24056 gl_cv_pthread_rwlock_rdlock_prefer_writer="guessing yes"
24058 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24059 /* end confdefs.h. */
24062 #include <pthread.h>
24063 #include <stdlib.h>
24064 #include <unistd.h>
24066 #define SUCCEED() exit (0)
24067 #define FAILURE() exit (1)
24068 #define UNEXPECTED(n) (exit (10 + (n)))
24070 /* The main thread creates the waiting writer and the requesting reader threads
24071 in the default way; this guarantees that they have the same priority.
24072 We can reuse the main thread as first reader thread. */
24074 static pthread_rwlock_t lock;
24075 static pthread_t reader1;
24076 static pthread_t writer;
24077 static pthread_t reader2;
24078 static pthread_t timer;
24079 /* Used to pass control from writer to reader2 and from reader2 to timer,
24080 as in a relay race.
24081 Passing control from one running thread to another running thread
24082 is most likely faster than to create the second thread. */
24083 static pthread_mutex_t baton;
24086 timer_func (void *ignored)
24088 /* Step 13 (can be before or after step 12):
24089 The timer thread takes the baton, then waits a moment to make sure
24090 it can tell whether the second reader thread is blocked at step 12. */
24091 if (pthread_mutex_lock (&baton))
24094 /* By the time we get here, it's clear that the second reader thread is
24095 blocked at step 12. This is the desired behaviour. */
24100 reader2_func (void *ignored)
24104 /* Step 8 (can be before or after step 7):
24105 The second reader thread takes the baton, then waits a moment to make sure
24106 the writer thread has reached step 7. */
24107 if (pthread_mutex_lock (&baton))
24110 /* Step 9: The second reader thread requests the lock. */
24111 err = pthread_rwlock_tryrdlock (&lock);
24114 else if (err != EBUSY)
24116 /* Step 10: Launch a timer, to test whether the next call blocks. */
24117 if (pthread_create (&timer, NULL, timer_func, NULL))
24119 /* Step 11: Release the baton. */
24120 if (pthread_mutex_unlock (&baton))
24122 /* Step 12: The second reader thread requests the lock. */
24123 err = pthread_rwlock_rdlock (&lock);
24131 writer_func (void *ignored)
24133 /* Step 4: Take the baton, so that the second reader thread does not go ahead
24135 if (pthread_mutex_lock (&baton))
24137 /* Step 5: Create the second reader thread. */
24138 if (pthread_create (&reader2, NULL, reader2_func, NULL))
24140 /* Step 6: Release the baton. */
24141 if (pthread_mutex_unlock (&baton))
24143 /* Step 7: The writer thread requests the lock. */
24144 if (pthread_rwlock_wrlock (&lock))
24152 reader1 = pthread_self ();
24154 /* Step 1: The main thread initializes the lock and the baton. */
24155 if (pthread_rwlock_init (&lock, NULL))
24157 if (pthread_mutex_init (&baton, NULL))
24159 /* Step 2: The main thread acquires the lock as a reader. */
24160 if (pthread_rwlock_rdlock (&lock))
24162 /* Step 3: Create the writer thread. */
24163 if (pthread_create (&writer, NULL, writer_func, NULL))
24165 /* Job done. Go to sleep. */
24173 if ac_fn_c_try_run "$LINENO"; then :
24174 gl_cv_pthread_rwlock_rdlock_prefer_writer=yes
24176 gl_cv_pthread_rwlock_rdlock_prefer_writer=no
24178 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24179 conftest.$ac_objext conftest.beam conftest.$ac_ext
24185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_pthread_rwlock_rdlock_prefer_writer" >&5
24186 $as_echo "$gl_cv_pthread_rwlock_rdlock_prefer_writer" >&6; }
24187 case "$gl_cv_pthread_rwlock_rdlock_prefer_writer" in
24190 $as_echo "#define HAVE_PTHREAD_RWLOCK_RDLOCK_PREFER_WRITER 1" >>confdefs.h
24196 # glibc defines PTHREAD_MUTEX_RECURSIVE as enum, not as a macro.
24197 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24198 /* end confdefs.h. */
24200 #include <pthread.h>
24205 #if __FreeBSD__ == 4
24206 error "No, in FreeBSD 4.0 recursive mutexes actually don't work."
24207 #elif (defined __ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__ \
24208 && __ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__ < 1070)
24209 error "No, in Mac OS X < 10.7 recursive mutexes actually don't work."
24211 int x = (int)PTHREAD_MUTEX_RECURSIVE;
24219 if ac_fn_c_try_compile "$LINENO"; then :
24221 $as_echo "#define HAVE_PTHREAD_MUTEX_RECURSIVE 1" >>confdefs.h
24224 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24230 cat >>confdefs.h <<_ACEOF
24231 #define GNULIB_LOCK 1
24239 if test $ac_cv_func_lstat = yes; then
24241 case $host_os,$gl_cv_func_lstat_dereferences_slashed_symlink in
24250 if test $REPLACE_LSTAT = 1; then
24259 gl_LIBOBJS="$gl_LIBOBJS lstat.$ac_objext"
24274 $as_echo "#define GNULIB_TEST_LSTAT 1" >>confdefs.h
24281 if test $gl_cv_func_malloc_posix = yes; then
24283 $as_echo "#define HAVE_MALLOC_POSIX 1" >>confdefs.h
24289 if test $REPLACE_MALLOC = 1; then
24298 gl_LIBOBJS="$gl_LIBOBJS malloc.$ac_objext"
24306 GNULIB_MALLOC_POSIX=1
24312 $as_echo "#define GNULIB_TEST_MALLOC_POSIX 1" >>confdefs.h
24321 if test $HAVE_MEMCHR = 0 || test $REPLACE_MEMCHR = 1; then
24330 gl_LIBOBJS="$gl_LIBOBJS memchr.$ac_objext"
24333 for ac_header in bp-sym.h
24335 ac_fn_c_check_header_mongrel "$LINENO" "bp-sym.h" "ac_cv_header_bp_sym_h" "$ac_includes_default"
24336 if test "x$ac_cv_header_bp_sym_h" = xyes; then :
24337 cat >>confdefs.h <<_ACEOF
24338 #define HAVE_BP_SYM_H 1
24358 $as_echo "#define GNULIB_TEST_MEMCHR 1" >>confdefs.h
24364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mkdir handles trailing slash" >&5
24365 $as_echo_n "checking whether mkdir handles trailing slash... " >&6; }
24366 if ${gl_cv_func_mkdir_trailing_slash_works+:} false; then :
24367 $as_echo_n "(cached) " >&6
24369 rm -rf conftest.dir
24370 if test "$cross_compiling" = yes; then :
24372 # Guess yes on Linux systems.
24373 linux-* | linux) gl_cv_func_mkdir_trailing_slash_works="guessing yes" ;;
24374 # Guess yes on glibc systems.
24375 *-gnu* | gnu*) gl_cv_func_mkdir_trailing_slash_works="guessing yes" ;;
24376 # Guess yes on MSVC, no on mingw.
24377 mingw*) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24378 /* end confdefs.h. */
24385 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24386 $EGREP "Known" >/dev/null 2>&1; then :
24387 gl_cv_func_mkdir_trailing_slash_works="guessing yes"
24389 gl_cv_func_mkdir_trailing_slash_works="guessing no"
24394 # If we don't know, assume the worst.
24395 *) gl_cv_func_mkdir_trailing_slash_works="guessing no" ;;
24399 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24400 /* end confdefs.h. */
24402 # include <sys/types.h>
24403 # include <sys/stat.h>
24408 return mkdir ("conftest.dir/", 0700);
24413 if ac_fn_c_try_run "$LINENO"; then :
24414 gl_cv_func_mkdir_trailing_slash_works=yes
24416 gl_cv_func_mkdir_trailing_slash_works=no
24418 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24419 conftest.$ac_objext conftest.beam conftest.$ac_ext
24422 rm -rf conftest.dir
24426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mkdir_trailing_slash_works" >&5
24427 $as_echo "$gl_cv_func_mkdir_trailing_slash_works" >&6; }
24428 case "$gl_cv_func_mkdir_trailing_slash_works" in
24435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mkdir handles trailing dot" >&5
24436 $as_echo_n "checking whether mkdir handles trailing dot... " >&6; }
24437 if ${gl_cv_func_mkdir_trailing_dot_works+:} false; then :
24438 $as_echo_n "(cached) " >&6
24440 rm -rf conftest.dir
24441 if test "$cross_compiling" = yes; then :
24443 # Guess yes on glibc systems.
24444 *-gnu* | gnu*) gl_cv_func_mkdir_trailing_dot_works="guessing yes" ;;
24445 # Guess no on native Windows.
24446 mingw*) gl_cv_func_mkdir_trailing_dot_works="guessing no" ;;
24447 # If we don't know, assume the worst.
24448 *) gl_cv_func_mkdir_trailing_dot_works="guessing no" ;;
24452 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24453 /* end confdefs.h. */
24455 # include <sys/types.h>
24456 # include <sys/stat.h>
24461 return !mkdir ("conftest.dir/./", 0700);
24466 if ac_fn_c_try_run "$LINENO"; then :
24467 gl_cv_func_mkdir_trailing_dot_works=yes
24469 gl_cv_func_mkdir_trailing_dot_works=no
24471 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24472 conftest.$ac_objext conftest.beam conftest.$ac_ext
24475 rm -rf conftest.dir
24479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mkdir_trailing_dot_works" >&5
24480 $as_echo "$gl_cv_func_mkdir_trailing_dot_works" >&6; }
24481 case "$gl_cv_func_mkdir_trailing_dot_works" in
24486 $as_echo "#define FUNC_MKDIR_DOT_BUG 1" >>confdefs.h
24491 if test $REPLACE_MKDIR = 1; then
24500 gl_LIBOBJS="$gl_LIBOBJS mkdir.$ac_objext"
24505 for ac_func in mkdtemp
24507 ac_fn_c_check_func "$LINENO" "mkdtemp" "ac_cv_func_mkdtemp"
24508 if test "x$ac_cv_func_mkdtemp" = xyes; then :
24509 cat >>confdefs.h <<_ACEOF
24510 #define HAVE_MKDTEMP 1
24516 if test $ac_cv_func_mkdtemp = no; then
24520 if test $HAVE_MKDTEMP = 0; then
24529 gl_LIBOBJS="$gl_LIBOBJS mkdtemp.$ac_objext"
24545 $as_echo "#define GNULIB_TEST_MKDTEMP 1" >>confdefs.h
24550 if test $HAVE_MSVC_INVALID_PARAMETER_HANDLER = 1; then
24559 gl_LIBOBJS="$gl_LIBOBJS msvc-inval.$ac_objext"
24563 if test $HAVE_MSVC_INVALID_PARAMETER_HANDLER = 1; then
24572 gl_LIBOBJS="$gl_LIBOBJS msvc-nothrow.$ac_objext"
24577 cat >>confdefs.h <<_ACEOF
24578 #define GNULIB_MSVC_NOTHROW 1
24589 for ac_func in raise
24591 ac_fn_c_check_func "$LINENO" "raise" "ac_cv_func_raise"
24592 if test "x$ac_cv_func_raise" = xyes; then :
24593 cat >>confdefs.h <<_ACEOF
24594 #define HAVE_RAISE 1
24600 if test $ac_cv_func_raise = no; then
24605 if test $HAVE_MSVC_INVALID_PARAMETER_HANDLER = 1; then
24613 if test $gl_cv_type_sigset_t = yes; then
24614 ac_fn_c_check_func "$LINENO" "sigprocmask" "ac_cv_func_sigprocmask"
24615 if test "x$ac_cv_func_sigprocmask" = xyes; then :
24616 gl_cv_func_sigprocmask=1
24620 if test -z "$gl_cv_func_sigprocmask"; then
24621 HAVE_POSIX_SIGNALBLOCKING=0
24624 if test $HAVE_POSIX_SIGNALBLOCKING = 0; then
24630 if test $HAVE_RAISE = 0 || test $REPLACE_RAISE = 1; then
24639 gl_LIBOBJS="$gl_LIBOBJS raise.$ac_objext"
24654 $as_echo "#define GNULIB_TEST_RAISE 1" >>confdefs.h
24662 if test $HAVE_MSVC_INVALID_PARAMETER_HANDLER = 1; then
24668 if test $REPLACE_READ = 1; then
24677 gl_LIBOBJS="$gl_LIBOBJS read.$ac_objext"
24692 $as_echo "#define GNULIB_TEST_READ 1" >>confdefs.h
24706 if test $ac_cv_func_setenv = no; then
24709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether setenv validates arguments" >&5
24710 $as_echo_n "checking whether setenv validates arguments... " >&6; }
24711 if ${gl_cv_func_setenv_works+:} false; then :
24712 $as_echo_n "(cached) " >&6
24714 if test "$cross_compiling" = yes; then :
24716 # Guess yes on glibc systems.
24717 *-gnu* | gnu*) gl_cv_func_setenv_works="guessing yes" ;;
24718 # If we don't know, assume the worst.
24719 *) gl_cv_func_setenv_works="guessing no" ;;
24723 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24724 /* end confdefs.h. */
24726 #include <stdlib.h>
24728 #include <string.h>
24736 if (setenv ("", "", 0) != -1)
24738 else if (errno != EINVAL)
24742 if (setenv ("a", "=", 1) != 0)
24744 else if (strcmp (getenv ("a"), "=") != 0)
24753 if ac_fn_c_try_run "$LINENO"; then :
24754 gl_cv_func_setenv_works=yes
24756 gl_cv_func_setenv_works=no
24758 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24759 conftest.$ac_objext conftest.beam conftest.$ac_ext
24763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_setenv_works" >&5
24764 $as_echo "$gl_cv_func_setenv_works" >&6; }
24765 case "$gl_cv_func_setenv_works" in
24773 if test $HAVE_SETENV = 0 || test $REPLACE_SETENV = 1; then
24782 gl_LIBOBJS="$gl_LIBOBJS setenv.$ac_objext"
24796 $as_echo "#define GNULIB_TEST_SETENV 1" >>confdefs.h
24803 if test $ac_cv_func_sigaction = yes; then
24804 ac_fn_c_check_member "$LINENO" "struct sigaction" "sa_sigaction" "ac_cv_member_struct_sigaction_sa_sigaction" "#include <signal.h>
24806 if test "x$ac_cv_member_struct_sigaction_sa_sigaction" = xyes; then :
24808 cat >>confdefs.h <<_ACEOF
24809 #define HAVE_STRUCT_SIGACTION_SA_SIGACTION 1
24815 if test $ac_cv_member_struct_sigaction_sa_sigaction = no; then
24816 HAVE_STRUCT_SIGACTION_SA_SIGACTION=0
24822 if test $HAVE_SIGACTION = 0; then
24831 gl_LIBOBJS="$gl_LIBOBJS sigaction.$ac_objext"
24839 ac_fn_c_check_type "$LINENO" "siginfo_t" "ac_cv_type_siginfo_t" "
24840 #include <signal.h>
24843 if test "x$ac_cv_type_siginfo_t" = xyes; then :
24845 cat >>confdefs.h <<_ACEOF
24846 #define HAVE_SIGINFO_T 1
24852 if test $ac_cv_type_siginfo_t = no; then
24868 $as_echo "#define GNULIB_TEST_SIGACTION 1" >>confdefs.h
24883 if test $gl_cv_have_include_next = yes; then
24884 gl_cv_next_signal_h='<'signal.h'>'
24886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <signal.h>" >&5
24887 $as_echo_n "checking absolute name of <signal.h>... " >&6; }
24888 if ${gl_cv_next_signal_h+:} false; then :
24889 $as_echo_n "(cached) " >&6
24894 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24895 /* end confdefs.h. */
24896 #include <signal.h>
24899 aix*) gl_absname_cpp="$ac_cpp -C" ;;
24900 *) gl_absname_cpp="$ac_cpp" ;;
24905 gl_dirsep_regex='[/\\]'
24908 gl_dirsep_regex='\/'
24911 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
24912 gl_header_literal_regex=`echo 'signal.h' \
24913 | sed -e "$gl_make_literal_regex_sed"`
24914 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
24915 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
24921 gl_cv_absolute_signal_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
24922 sed -n "$gl_absolute_header_sed"`
24924 gl_header=$gl_cv_absolute_signal_h
24925 gl_cv_next_signal_h='"'$gl_header'"'
24929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_signal_h" >&5
24930 $as_echo "$gl_cv_next_signal_h" >&6; }
24932 NEXT_SIGNAL_H=$gl_cv_next_signal_h
24934 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
24935 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
24936 gl_next_as_first_directive='<'signal.h'>'
24938 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
24939 gl_next_as_first_directive=$gl_cv_next_signal_h
24941 NEXT_AS_FIRST_DIRECTIVE_SIGNAL_H=$gl_next_as_first_directive
24947 # AIX declares sig_atomic_t to already include volatile, and C89 compilers
24948 # then choke on 'volatile sig_atomic_t'. C99 requires that it compile.
24949 ac_fn_c_check_type "$LINENO" "volatile sig_atomic_t" "ac_cv_type_volatile_sig_atomic_t" "
24950 #include <signal.h>
24953 if test "x$ac_cv_type_volatile_sig_atomic_t" = xyes; then :
24956 HAVE_TYPE_VOLATILE_SIG_ATOMIC_T=0
24965 ac_fn_c_check_type "$LINENO" "sighandler_t" "ac_cv_type_sighandler_t" "
24966 #include <signal.h>
24969 if test "x$ac_cv_type_sighandler_t" = xyes; then :
24972 HAVE_SIGHANDLER_T=0
24983 if test $gl_cv_type_sigset_t = yes; then
24984 ac_fn_c_check_func "$LINENO" "sigprocmask" "ac_cv_func_sigprocmask"
24985 if test "x$ac_cv_func_sigprocmask" = xyes; then :
24986 gl_cv_func_sigprocmask=1
24990 if test -z "$gl_cv_func_sigprocmask"; then
24991 HAVE_POSIX_SIGNALBLOCKING=0
24994 if test $HAVE_POSIX_SIGNALBLOCKING = 0; then
25003 gl_LIBOBJS="$gl_LIBOBJS sigprocmask.$ac_objext"
25012 GNULIB_SIGPROCMASK=1
25018 $as_echo "#define GNULIB_TEST_SIGPROCMASK 1" >>confdefs.h
25023 for ac_header in stdint.h
25025 ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
25026 if test "x$ac_cv_header_stdint_h" = xyes; then :
25027 cat >>confdefs.h <<_ACEOF
25028 #define HAVE_STDINT_H 1
25035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SIZE_MAX" >&5
25036 $as_echo_n "checking for SIZE_MAX... " >&6; }
25037 if ${gl_cv_size_max+:} false; then :
25038 $as_echo_n "(cached) " >&6
25042 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25043 /* end confdefs.h. */
25045 #include <limits.h>
25047 #include <stdint.h>
25054 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25055 $EGREP "Found it" >/dev/null 2>&1; then :
25060 if test -z "$gl_cv_size_max"; then
25061 if ac_fn_c_compute_int "$LINENO" "sizeof (size_t) * CHAR_BIT - 1" "size_t_bits_minus_1" "#include <stddef.h>
25062 #include <limits.h>"; then :
25065 size_t_bits_minus_1=
25068 if ac_fn_c_compute_int "$LINENO" "sizeof (size_t) <= sizeof (unsigned int)" "fits_in_uint" "#include <stddef.h>"; then :
25074 if test -n "$size_t_bits_minus_1" && test -n "$fits_in_uint"; then
25075 if test $fits_in_uint = 1; then
25076 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25077 /* end confdefs.h. */
25078 #include <stddef.h>
25080 extern unsigned long foo;
25090 if ac_fn_c_try_compile "$LINENO"; then :
25093 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25095 if test $fits_in_uint = 1; then
25096 gl_cv_size_max="(((1U << $size_t_bits_minus_1) - 1) * 2 + 1)"
25098 gl_cv_size_max="(((1UL << $size_t_bits_minus_1) - 1) * 2 + 1)"
25101 gl_cv_size_max='((size_t)~(size_t)0)'
25106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_size_max" >&5
25107 $as_echo "$gl_cv_size_max" >&6; }
25108 if test "$gl_cv_size_max" != yes; then
25110 cat >>confdefs.h <<_ACEOF
25111 #define SIZE_MAX $gl_cv_size_max
25119 gl_cv_func_snprintf_usable=no
25120 for ac_func in snprintf
25122 ac_fn_c_check_func "$LINENO" "snprintf" "ac_cv_func_snprintf"
25123 if test "x$ac_cv_func_snprintf" = xyes; then :
25124 cat >>confdefs.h <<_ACEOF
25125 #define HAVE_SNPRINTF 1
25131 if test $ac_cv_func_snprintf = yes; then
25135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether snprintf respects a size of 1" >&5
25136 $as_echo_n "checking whether snprintf respects a size of 1... " >&6; }
25137 if ${gl_cv_func_snprintf_size1+:} false; then :
25138 $as_echo_n "(cached) " >&6
25141 if test "$cross_compiling" = yes; then :
25143 # Guess yes on Android.
25144 linux*-android*) gl_cv_func_snprintf_size1="guessing yes" ;;
25145 # Guess yes on native Windows.
25146 mingw*) gl_cv_func_snprintf_size1="guessing yes" ;;
25147 *) gl_cv_func_snprintf_size1="guessing yes" ;;
25151 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25152 /* end confdefs.h. */
25156 # define my_snprintf snprintf
25158 # include <stdarg.h>
25159 static int my_snprintf (char *buf, int size, const char *format, ...)
25163 va_start (args, format);
25164 ret = vsnprintf (buf, size, format, args);
25171 static char buf[8] = { 'D', 'E', 'A', 'D', 'B', 'E', 'E', 'F' };
25172 my_snprintf (buf, 1, "%d", 12345);
25173 return buf[1] != 'E';
25176 if ac_fn_c_try_run "$LINENO"; then :
25177 gl_cv_func_snprintf_size1=yes
25179 gl_cv_func_snprintf_size1=no
25181 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25182 conftest.$ac_objext conftest.beam conftest.$ac_ext
25187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_snprintf_size1" >&5
25188 $as_echo "$gl_cv_func_snprintf_size1" >&6; }
25190 case "$gl_cv_func_snprintf_size1" in
25193 case "$gl_cv_func_snprintf_retval_c99" in
25197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether printf supports POSIX/XSI format strings with positions" >&5
25198 $as_echo_n "checking whether printf supports POSIX/XSI format strings with positions... " >&6; }
25199 if ${gl_cv_func_printf_positions+:} false; then :
25200 $as_echo_n "(cached) " >&6
25203 if test "$cross_compiling" = yes; then :
25206 netbsd[1-3]* | netbsdelf[1-3]* | netbsdaout[1-3]* | netbsdcoff[1-3]*)
25207 gl_cv_func_printf_positions="guessing no";;
25208 beos*) gl_cv_func_printf_positions="guessing no";;
25209 # Guess yes on Android.
25210 linux*-android*) gl_cv_func_printf_positions="guessing yes";;
25211 # Guess no on native Windows.
25212 mingw* | pw*) gl_cv_func_printf_positions="guessing no";;
25213 *) gl_cv_func_printf_positions="guessing yes";;
25217 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25218 /* end confdefs.h. */
25221 #include <string.h>
25222 /* The string "%2$d %1$d", with dollar characters protected from the shell's
25223 dollar expansion (possibly an autoconf bug). */
25224 static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' };
25225 static char buf[100];
25228 sprintf (buf, format, 33, 55);
25229 return (strcmp (buf, "55 33") != 0);
25232 if ac_fn_c_try_run "$LINENO"; then :
25233 gl_cv_func_printf_positions=yes
25235 gl_cv_func_printf_positions=no
25237 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25238 conftest.$ac_objext conftest.beam conftest.$ac_ext
25243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_printf_positions" >&5
25244 $as_echo "$gl_cv_func_printf_positions" >&6; }
25246 case "$gl_cv_func_printf_positions" in
25248 gl_cv_func_snprintf_usable=yes
25256 if test $gl_cv_func_snprintf_usable = no; then
25267 gl_LIBOBJS="$gl_LIBOBJS snprintf.$ac_objext"
25269 if test $ac_cv_func_snprintf = yes; then
25273 if test $ac_cv_have_decl_snprintf = yes; then
25281 if test $ac_cv_have_decl_snprintf = no; then
25282 HAVE_DECL_SNPRINTF=0
25296 $as_echo "#define GNULIB_TEST_SNPRINTF 1" >>confdefs.h
25302 cat >>confdefs.h <<_ACEOF
25303 #define GNULIB_SNPRINTF 1
25308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ssize_t" >&5
25309 $as_echo_n "checking for ssize_t... " >&6; }
25310 if ${gt_cv_ssize_t+:} false; then :
25311 $as_echo_n "(cached) " >&6
25313 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25314 /* end confdefs.h. */
25315 #include <sys/types.h>
25319 int x = sizeof (ssize_t *) + sizeof (ssize_t);
25325 if ac_fn_c_try_compile "$LINENO"; then :
25330 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_ssize_t" >&5
25333 $as_echo "$gt_cv_ssize_t" >&6; }
25334 if test $gt_cv_ssize_t = no; then
25336 $as_echo "#define ssize_t int" >>confdefs.h
25349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat handles trailing slashes on files" >&5
25350 $as_echo_n "checking whether stat handles trailing slashes on files... " >&6; }
25351 if ${gl_cv_func_stat_file_slash+:} false; then :
25352 $as_echo_n "(cached) " >&6
25355 # Assume that if we have lstat, we can also check symlinks.
25356 if test $ac_cv_func_lstat = yes; then
25357 ln -s conftest.tmp conftest.lnk
25359 if test "$cross_compiling" = yes; then :
25361 # Guess yes on Linux systems.
25362 linux-* | linux) gl_cv_func_stat_file_slash="guessing yes" ;;
25363 # Guess yes on glibc systems.
25364 *-gnu* | gnu*) gl_cv_func_stat_file_slash="guessing yes" ;;
25365 # If we don't know, assume the worst.
25366 *) gl_cv_func_stat_file_slash="guessing no" ;;
25370 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25371 /* end confdefs.h. */
25372 #include <sys/stat.h>
25379 if (!stat ("conftest.tmp/", &st))
25382 if (!stat ("conftest.lnk/", &st))
25391 if ac_fn_c_try_run "$LINENO"; then :
25392 gl_cv_func_stat_file_slash=yes
25394 gl_cv_func_stat_file_slash=no
25396 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25397 conftest.$ac_objext conftest.beam conftest.$ac_ext
25400 rm -f conftest.tmp conftest.lnk
25402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_stat_file_slash" >&5
25403 $as_echo "$gl_cv_func_stat_file_slash" >&6; }
25404 case $gl_cv_func_stat_file_slash in
25408 $as_echo "#define REPLACE_FUNC_STAT_FILE 1" >>confdefs.h
25418 if test $REPLACE_STAT = 1; then
25427 gl_LIBOBJS="$gl_LIBOBJS stat.$ac_objext"
25439 gl_LIBOBJS="$gl_LIBOBJS stat-w32.$ac_objext"
25459 $as_echo "#define GNULIB_TEST_STAT 1" >>confdefs.h
25467 ac_fn_c_check_member "$LINENO" "struct stat" "st_atim.tv_nsec" "ac_cv_member_struct_stat_st_atim_tv_nsec" "#include <sys/types.h>
25468 #include <sys/stat.h>
25470 if test "x$ac_cv_member_struct_stat_st_atim_tv_nsec" = xyes; then :
25472 cat >>confdefs.h <<_ACEOF
25473 #define HAVE_STRUCT_STAT_ST_ATIM_TV_NSEC 1
25476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct stat.st_atim is of type struct timespec" >&5
25477 $as_echo_n "checking whether struct stat.st_atim is of type struct timespec... " >&6; }
25478 if ${ac_cv_typeof_struct_stat_st_atim_is_struct_timespec+:} false; then :
25479 $as_echo_n "(cached) " >&6
25481 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25482 /* end confdefs.h. */
25484 #include <sys/types.h>
25485 #include <sys/stat.h>
25486 #if HAVE_SYS_TIME_H
25487 # include <sys/time.h>
25490 struct timespec ts;
25503 if ac_fn_c_try_compile "$LINENO"; then :
25504 ac_cv_typeof_struct_stat_st_atim_is_struct_timespec=yes
25506 ac_cv_typeof_struct_stat_st_atim_is_struct_timespec=no
25508 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_typeof_struct_stat_st_atim_is_struct_timespec" >&5
25511 $as_echo "$ac_cv_typeof_struct_stat_st_atim_is_struct_timespec" >&6; }
25512 if test $ac_cv_typeof_struct_stat_st_atim_is_struct_timespec = yes; then
25514 $as_echo "#define TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC 1" >>confdefs.h
25518 ac_fn_c_check_member "$LINENO" "struct stat" "st_atimespec.tv_nsec" "ac_cv_member_struct_stat_st_atimespec_tv_nsec" "#include <sys/types.h>
25519 #include <sys/stat.h>
25521 if test "x$ac_cv_member_struct_stat_st_atimespec_tv_nsec" = xyes; then :
25523 cat >>confdefs.h <<_ACEOF
25524 #define HAVE_STRUCT_STAT_ST_ATIMESPEC_TV_NSEC 1
25529 ac_fn_c_check_member "$LINENO" "struct stat" "st_atimensec" "ac_cv_member_struct_stat_st_atimensec" "#include <sys/types.h>
25530 #include <sys/stat.h>
25532 if test "x$ac_cv_member_struct_stat_st_atimensec" = xyes; then :
25534 cat >>confdefs.h <<_ACEOF
25535 #define HAVE_STRUCT_STAT_ST_ATIMENSEC 1
25540 ac_fn_c_check_member "$LINENO" "struct stat" "st_atim.st__tim.tv_nsec" "ac_cv_member_struct_stat_st_atim_st__tim_tv_nsec" "#include <sys/types.h>
25541 #include <sys/stat.h>
25543 if test "x$ac_cv_member_struct_stat_st_atim_st__tim_tv_nsec" = xyes; then :
25545 cat >>confdefs.h <<_ACEOF
25546 #define HAVE_STRUCT_STAT_ST_ATIM_ST__TIM_TV_NSEC 1
25562 ac_fn_c_check_member "$LINENO" "struct stat" "st_birthtimespec.tv_nsec" "ac_cv_member_struct_stat_st_birthtimespec_tv_nsec" "#include <sys/types.h>
25563 #include <sys/stat.h>
25565 if test "x$ac_cv_member_struct_stat_st_birthtimespec_tv_nsec" = xyes; then :
25567 cat >>confdefs.h <<_ACEOF
25568 #define HAVE_STRUCT_STAT_ST_BIRTHTIMESPEC_TV_NSEC 1
25573 ac_fn_c_check_member "$LINENO" "struct stat" "st_birthtimensec" "ac_cv_member_struct_stat_st_birthtimensec" "#include <sys/types.h>
25574 #include <sys/stat.h>
25576 if test "x$ac_cv_member_struct_stat_st_birthtimensec" = xyes; then :
25578 cat >>confdefs.h <<_ACEOF
25579 #define HAVE_STRUCT_STAT_ST_BIRTHTIMENSEC 1
25584 ac_fn_c_check_member "$LINENO" "struct stat" "st_birthtim.tv_nsec" "ac_cv_member_struct_stat_st_birthtim_tv_nsec" "#include <sys/types.h>
25585 #include <sys/stat.h>
25587 if test "x$ac_cv_member_struct_stat_st_birthtim_tv_nsec" = xyes; then :
25589 cat >>confdefs.h <<_ACEOF
25590 #define HAVE_STRUCT_STAT_ST_BIRTHTIM_TV_NSEC 1
25603 NEXT_STDARG_H='<stdarg.h>'
25604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for va_copy" >&5
25605 $as_echo_n "checking for va_copy... " >&6; }
25606 if ${gl_cv_func_va_copy+:} false; then :
25607 $as_echo_n "(cached) " >&6
25609 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25610 /* end confdefs.h. */
25611 #include <stdarg.h>
25617 void (*func) (va_list, va_list) = va_copy;
25624 if ac_fn_c_try_compile "$LINENO"; then :
25625 gl_cv_func_va_copy=yes
25627 gl_cv_func_va_copy=no
25629 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_va_copy" >&5
25633 $as_echo "$gl_cv_func_va_copy" >&6; }
25634 if test $gl_cv_func_va_copy = no; then
25635 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25636 /* end confdefs.h. */
25637 #if defined _AIX && !defined __GNUC__
25642 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25643 $EGREP "vaccine" >/dev/null 2>&1; then :
25650 if test $gl_aixcc = yes; then
25660 if test $gl_cv_have_include_next = yes; then
25661 gl_cv_next_stdarg_h='<'stdarg.h'>'
25663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdarg.h>" >&5
25664 $as_echo_n "checking absolute name of <stdarg.h>... " >&6; }
25665 if ${gl_cv_next_stdarg_h+:} false; then :
25666 $as_echo_n "(cached) " >&6
25671 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25672 /* end confdefs.h. */
25673 #include <stdarg.h>
25676 aix*) gl_absname_cpp="$ac_cpp -C" ;;
25677 *) gl_absname_cpp="$ac_cpp" ;;
25682 gl_dirsep_regex='[/\\]'
25685 gl_dirsep_regex='\/'
25688 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
25689 gl_header_literal_regex=`echo 'stdarg.h' \
25690 | sed -e "$gl_make_literal_regex_sed"`
25691 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
25692 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
25698 gl_cv_absolute_stdarg_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
25699 sed -n "$gl_absolute_header_sed"`
25701 gl_header=$gl_cv_absolute_stdarg_h
25702 gl_cv_next_stdarg_h='"'$gl_header'"'
25706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdarg_h" >&5
25707 $as_echo "$gl_cv_next_stdarg_h" >&6; }
25709 NEXT_STDARG_H=$gl_cv_next_stdarg_h
25711 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
25712 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
25713 gl_next_as_first_directive='<'stdarg.h'>'
25715 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
25716 gl_next_as_first_directive=$gl_cv_next_stdarg_h
25718 NEXT_AS_FIRST_DIRECTIVE_STDARG_H=$gl_next_as_first_directive
25723 if test "$gl_cv_next_stdarg_h" = '""'; then
25724 gl_cv_next_stdarg_h='"///usr/include/stdarg.h"'
25725 NEXT_STDARG_H="$gl_cv_next_stdarg_h"
25729 saved_as_echo_n="$as_echo_n"
25731 if ${gl_cv_func___va_copy+:} false; then :
25732 $as_echo_n "(cached) " >&6
25735 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25736 /* end confdefs.h. */
25737 #include <stdarg.h>
25750 if ac_fn_c_try_compile "$LINENO"; then :
25751 gl_cv_func___va_copy=yes
25753 gl_cv_func___va_copy=no
25755 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25758 as_echo_n="$saved_as_echo_n"
25760 if test $gl_cv_func___va_copy = yes; then
25762 $as_echo "#define va_copy __va_copy" >>confdefs.h
25767 $as_echo "#define va_copy gl_va_copy" >>confdefs.h
25773 if test -n "$STDARG_H"; then
25774 GL_GENERATE_STDARG_H_TRUE=
25775 GL_GENERATE_STDARG_H_FALSE='#'
25777 GL_GENERATE_STDARG_H_TRUE='#'
25778 GL_GENERATE_STDARG_H_FALSE=
25786 # Define two additional variables used in the Makefile substitution.
25788 if test "$ac_cv_header_stdbool_h" = yes; then
25791 STDBOOL_H='stdbool.h'
25794 if test -n "$STDBOOL_H"; then
25795 GL_GENERATE_STDBOOL_H_TRUE=
25796 GL_GENERATE_STDBOOL_H_FALSE='#'
25798 GL_GENERATE_STDBOOL_H_TRUE='#'
25799 GL_GENERATE_STDBOOL_H_FALSE=
25803 if test "$ac_cv_type__Bool" = yes; then
25815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for good max_align_t" >&5
25816 $as_echo_n "checking for good max_align_t... " >&6; }
25817 if ${gl_cv_type_max_align_t+:} false; then :
25818 $as_echo_n "(cached) " >&6
25820 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25821 /* end confdefs.h. */
25822 #include <stddef.h>
25823 unsigned int s = sizeof (max_align_t);
25824 #if defined __GNUC__ || defined __IBM__ALIGNOF__
25825 int check1[2 * (__alignof__ (double) <= __alignof__ (max_align_t)) - 1];
25826 int check2[2 * (__alignof__ (long double) <= __alignof__ (max_align_t)) - 1];
25837 if ac_fn_c_try_compile "$LINENO"; then :
25838 gl_cv_type_max_align_t=yes
25840 gl_cv_type_max_align_t=no
25842 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_type_max_align_t" >&5
25846 $as_echo "$gl_cv_type_max_align_t" >&6; }
25847 if test $gl_cv_type_max_align_t = no; then
25852 if test $gt_cv_c_wchar_t = no; then
25857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NULL can be used in arbitrary expressions" >&5
25858 $as_echo_n "checking whether NULL can be used in arbitrary expressions... " >&6; }
25859 if ${gl_cv_decl_null_works+:} false; then :
25860 $as_echo_n "(cached) " >&6
25862 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25863 /* end confdefs.h. */
25864 #include <stddef.h>
25865 int test[2 * (sizeof NULL == sizeof (void *)) -1];
25875 if ac_fn_c_try_compile "$LINENO"; then :
25876 gl_cv_decl_null_works=yes
25878 gl_cv_decl_null_works=no
25880 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_decl_null_works" >&5
25883 $as_echo "$gl_cv_decl_null_works" >&6; }
25884 if test $gl_cv_decl_null_works = no; then
25890 if test -n "$STDDEF_H"; then
25891 GL_GENERATE_STDDEF_H_TRUE=
25892 GL_GENERATE_STDDEF_H_FALSE='#'
25894 GL_GENERATE_STDDEF_H_TRUE='#'
25895 GL_GENERATE_STDDEF_H_FALSE=
25898 if test -n "$STDDEF_H"; then
25907 if test $gl_cv_have_include_next = yes; then
25908 gl_cv_next_stddef_h='<'stddef.h'>'
25910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stddef.h>" >&5
25911 $as_echo_n "checking absolute name of <stddef.h>... " >&6; }
25912 if ${gl_cv_next_stddef_h+:} false; then :
25913 $as_echo_n "(cached) " >&6
25918 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25919 /* end confdefs.h. */
25920 #include <stddef.h>
25923 aix*) gl_absname_cpp="$ac_cpp -C" ;;
25924 *) gl_absname_cpp="$ac_cpp" ;;
25929 gl_dirsep_regex='[/\\]'
25932 gl_dirsep_regex='\/'
25935 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
25936 gl_header_literal_regex=`echo 'stddef.h' \
25937 | sed -e "$gl_make_literal_regex_sed"`
25938 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
25939 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
25945 gl_cv_absolute_stddef_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
25946 sed -n "$gl_absolute_header_sed"`
25948 gl_header=$gl_cv_absolute_stddef_h
25949 gl_cv_next_stddef_h='"'$gl_header'"'
25953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stddef_h" >&5
25954 $as_echo "$gl_cv_next_stddef_h" >&6; }
25956 NEXT_STDDEF_H=$gl_cv_next_stddef_h
25958 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
25959 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
25960 gl_next_as_first_directive='<'stddef.h'>'
25962 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
25963 gl_next_as_first_directive=$gl_cv_next_stddef_h
25965 NEXT_AS_FIRST_DIRECTIVE_STDDEF_H=$gl_next_as_first_directive
25975 $as_echo "#define __USE_MINGW_ANSI_STDIO 1" >>confdefs.h
25986 if test $gl_cv_have_include_next = yes; then
25987 gl_cv_next_stdio_h='<'stdio.h'>'
25989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdio.h>" >&5
25990 $as_echo_n "checking absolute name of <stdio.h>... " >&6; }
25991 if ${gl_cv_next_stdio_h+:} false; then :
25992 $as_echo_n "(cached) " >&6
25997 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25998 /* end confdefs.h. */
26002 aix*) gl_absname_cpp="$ac_cpp -C" ;;
26003 *) gl_absname_cpp="$ac_cpp" ;;
26008 gl_dirsep_regex='[/\\]'
26011 gl_dirsep_regex='\/'
26014 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
26015 gl_header_literal_regex=`echo 'stdio.h' \
26016 | sed -e "$gl_make_literal_regex_sed"`
26017 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
26018 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
26024 gl_cv_absolute_stdio_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
26025 sed -n "$gl_absolute_header_sed"`
26027 gl_header=$gl_cv_absolute_stdio_h
26028 gl_cv_next_stdio_h='"'$gl_header'"'
26032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdio_h" >&5
26033 $as_echo "$gl_cv_next_stdio_h" >&6; }
26035 NEXT_STDIO_H=$gl_cv_next_stdio_h
26037 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
26038 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
26039 gl_next_as_first_directive='<'stdio.h'>'
26041 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
26042 gl_next_as_first_directive=$gl_cv_next_stdio_h
26044 NEXT_AS_FIRST_DIRECTIVE_STDIO_H=$gl_next_as_first_directive
26050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which flavor of printf attribute matches inttypes macros" >&5
26051 $as_echo_n "checking which flavor of printf attribute matches inttypes macros... " >&6; }
26052 if ${gl_cv_func_printf_attribute_flavor+:} false; then :
26053 $as_echo_n "(cached) " >&6
26055 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26056 /* end confdefs.h. */
26058 #define __STDC_FORMAT_MACROS 1
26060 #include <inttypes.h>
26061 /* For non-mingw systems, compilation will trivially succeed.
26062 For mingw, compilation will succeed for older mingw (system
26063 printf, "I64d") and fail for newer mingw (gnu printf, "lld"). */
26064 #if (defined _WIN32 && ! defined __CYGWIN__) && \
26065 (__GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 4))
26066 extern char PRIdMAX_probe[sizeof PRIdMAX == sizeof "I64d" ? 1 : -1];
26077 if ac_fn_c_try_compile "$LINENO"; then :
26078 gl_cv_func_printf_attribute_flavor=system
26080 gl_cv_func_printf_attribute_flavor=gnu
26082 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_printf_attribute_flavor" >&5
26085 $as_echo "$gl_cv_func_printf_attribute_flavor" >&6; }
26086 if test "$gl_cv_func_printf_attribute_flavor" = gnu; then
26088 $as_echo "#define GNULIB_PRINTF_ATTRIBUTE_FLAVOR_GNU 1" >>confdefs.h
26095 cat >>confdefs.h <<_ACEOF
26096 #define GNULIB_FSCANF 1
26103 cat >>confdefs.h <<_ACEOF
26104 #define GNULIB_SCANF 1
26142 if test $gl_cv_have_include_next = yes; then
26143 gl_cv_next_stdlib_h='<'stdlib.h'>'
26145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdlib.h>" >&5
26146 $as_echo_n "checking absolute name of <stdlib.h>... " >&6; }
26147 if ${gl_cv_next_stdlib_h+:} false; then :
26148 $as_echo_n "(cached) " >&6
26153 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26154 /* end confdefs.h. */
26155 #include <stdlib.h>
26158 aix*) gl_absname_cpp="$ac_cpp -C" ;;
26159 *) gl_absname_cpp="$ac_cpp" ;;
26164 gl_dirsep_regex='[/\\]'
26167 gl_dirsep_regex='\/'
26170 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
26171 gl_header_literal_regex=`echo 'stdlib.h' \
26172 | sed -e "$gl_make_literal_regex_sed"`
26173 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
26174 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
26180 gl_cv_absolute_stdlib_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
26181 sed -n "$gl_absolute_header_sed"`
26183 gl_header=$gl_cv_absolute_stdlib_h
26184 gl_cv_next_stdlib_h='"'$gl_header'"'
26188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdlib_h" >&5
26189 $as_echo "$gl_cv_next_stdlib_h" >&6; }
26191 NEXT_STDLIB_H=$gl_cv_next_stdlib_h
26193 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
26194 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
26195 gl_next_as_first_directive='<'stdlib.h'>'
26197 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
26198 gl_next_as_first_directive=$gl_cv_next_stdlib_h
26200 NEXT_AS_FIRST_DIRECTIVE_STDLIB_H=$gl_next_as_first_directive
26215 if test "$ERRNO_H:$REPLACE_STRERROR_0" = :0; then
26216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strerror function" >&5
26217 $as_echo_n "checking for working strerror function... " >&6; }
26218 if ${gl_cv_func_working_strerror+:} false; then :
26219 $as_echo_n "(cached) " >&6
26221 if test "$cross_compiling" = yes; then :
26223 # Guess yes on glibc systems.
26224 *-gnu* | gnu*) gl_cv_func_working_strerror="guessing yes" ;;
26225 # If we don't know, assume the worst.
26226 *) gl_cv_func_working_strerror="guessing no" ;;
26230 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26231 /* end confdefs.h. */
26232 #include <string.h>
26237 if (!*strerror (-2)) return 1;
26242 if ac_fn_c_try_run "$LINENO"; then :
26243 gl_cv_func_working_strerror=yes
26245 gl_cv_func_working_strerror=no
26247 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
26248 conftest.$ac_objext conftest.beam conftest.$ac_ext
26253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_working_strerror" >&5
26254 $as_echo "$gl_cv_func_working_strerror" >&6; }
26255 case "$gl_cv_func_working_strerror" in
26266 if test $REPLACE_STRERROR = 1; then
26275 gl_LIBOBJS="$gl_LIBOBJS strerror.$ac_objext"
26280 cat >>confdefs.h <<_ACEOF
26281 #define GNULIB_STRERROR 1
26296 $as_echo "#define GNULIB_TEST_STRERROR 1" >>confdefs.h
26302 if test -n "$ERRNO_H" || test $REPLACE_STRERROR_0 = 1; then
26311 gl_LIBOBJS="$gl_LIBOBJS strerror-override.$ac_objext"
26317 if test $ac_cv_header_sys_socket_h != yes; then
26318 for ac_header in winsock2.h
26320 ac_fn_c_check_header_mongrel "$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
26321 if test "x$ac_cv_header_winsock2_h" = xyes; then :
26322 cat >>confdefs.h <<_ACEOF
26323 #define HAVE_WINSOCK2_H 1
26331 if test "$ac_cv_header_winsock2_h" = yes; then
26333 UNISTD_H_HAVE_WINSOCK2_H=1
26334 SYS_IOCTL_H_HAVE_WINSOCK2_H=1
26350 if test $ac_cv_have_decl_strndup = no; then
26351 HAVE_DECL_STRNDUP=0
26354 if test $ac_cv_func_strndup = yes; then
26356 # AIX 4.3.3, AIX 5.1 have a function that fails to add the terminating '\0'.
26357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strndup" >&5
26358 $as_echo_n "checking for working strndup... " >&6; }
26359 if ${gl_cv_func_strndup_works+:} false; then :
26360 $as_echo_n "(cached) " >&6
26362 if test "$cross_compiling" = yes; then :
26365 aix | aix[3-6]*) gl_cv_func_strndup_works="guessing no";;
26366 *) gl_cv_func_strndup_works="guessing yes";;
26370 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26371 /* end confdefs.h. */
26373 #include <string.h>
26374 #include <stdlib.h>
26379 #if !HAVE_DECL_STRNDUP
26384 char *strndup (const char *, size_t);
26388 s = strndup ("some longer string", 15);
26390 s = strndup ("shorter string", 13);
26391 result = s[13] != '\0';
26398 if ac_fn_c_try_run "$LINENO"; then :
26399 gl_cv_func_strndup_works=yes
26401 gl_cv_func_strndup_works=no
26403 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
26404 conftest.$ac_objext conftest.beam conftest.$ac_ext
26408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_strndup_works" >&5
26409 $as_echo "$gl_cv_func_strndup_works" >&6; }
26410 case $gl_cv_func_strndup_works in
26411 *no) REPLACE_STRNDUP=1 ;;
26417 if test $HAVE_STRNDUP = 0 || test $REPLACE_STRNDUP = 1; then
26426 gl_LIBOBJS="$gl_LIBOBJS strndup.$ac_objext"
26440 $as_echo "#define GNULIB_TEST_STRNDUP 1" >>confdefs.h
26450 if test $ac_cv_have_decl_strnlen = no; then
26451 HAVE_DECL_STRNLEN=0
26454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strnlen" >&5
26455 $as_echo_n "checking for working strnlen... " >&6; }
26456 if ${ac_cv_func_strnlen_working+:} false; then :
26457 $as_echo_n "(cached) " >&6
26459 if test "$cross_compiling" = yes; then :
26460 # Guess no on AIX systems, yes otherwise.
26462 aix*) ac_cv_func_strnlen_working=no;;
26463 *) ac_cv_func_strnlen_working=yes;;
26466 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26467 /* end confdefs.h. */
26468 $ac_includes_default
26474 #define S_LEN (sizeof S - 1)
26476 /* At least one implementation is buggy: that of AIX 4.3 would
26477 give strnlen (S, 1) == 3. */
26480 for (i = 0; i < S_LEN + 1; ++i)
26482 int expected = i <= S_LEN ? i : S_LEN;
26483 if (strnlen (S, i) != expected)
26492 if ac_fn_c_try_run "$LINENO"; then :
26493 ac_cv_func_strnlen_working=yes
26495 ac_cv_func_strnlen_working=no
26497 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
26498 conftest.$ac_objext conftest.beam conftest.$ac_ext
26502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strnlen_working" >&5
26503 $as_echo "$ac_cv_func_strnlen_working" >&6; }
26504 test $ac_cv_func_strnlen_working = no && :
26507 if test $ac_cv_func_strnlen_working = no; then
26512 if test $HAVE_DECL_STRNLEN = 0 || test $REPLACE_STRNLEN = 1; then
26521 gl_LIBOBJS="$gl_LIBOBJS strnlen.$ac_objext"
26536 $as_echo "#define GNULIB_TEST_STRNLEN 1" >>confdefs.h
26546 if test $ac_cv_have_decl_strsignal = no; then
26547 HAVE_DECL_STRSIGNAL=0
26550 for ac_func in strsignal
26552 ac_fn_c_check_func "$LINENO" "strsignal" "ac_cv_func_strsignal"
26553 if test "x$ac_cv_func_strsignal" = xyes; then :
26554 cat >>confdefs.h <<_ACEOF
26555 #define HAVE_STRSIGNAL 1
26561 if test $ac_cv_func_strsignal = yes; then
26563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strsignal always returns a string" >&5
26564 $as_echo_n "checking whether strsignal always returns a string... " >&6; }
26565 if ${gl_cv_func_working_strsignal+:} false; then :
26566 $as_echo_n "(cached) " >&6
26568 if test "$cross_compiling" = yes; then :
26570 solaris* | aix*) gl_cv_func_working_strsignal=no;;
26571 *) gl_cv_func_working_strsignal="guessing yes";;
26574 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26575 /* end confdefs.h. */
26576 #include <string.h>
26577 #include <unistd.h> /* NetBSD 5.0 declares it in wrong header. */
26583 char *s = strsignal (-1);
26584 if (s == (char *) 0)
26586 if (s == (char *) -1)
26594 if ac_fn_c_try_run "$LINENO"; then :
26595 gl_cv_func_working_strsignal=yes
26597 gl_cv_func_working_strsignal=no
26599 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
26600 conftest.$ac_objext conftest.beam conftest.$ac_ext
26604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_working_strsignal" >&5
26605 $as_echo "$gl_cv_func_working_strsignal" >&6; }
26606 if test "$gl_cv_func_working_strsignal" = no; then
26607 REPLACE_STRSIGNAL=1
26613 if test $HAVE_STRSIGNAL = 0 || test $REPLACE_STRSIGNAL = 1; then
26622 gl_LIBOBJS="$gl_LIBOBJS strsignal.$ac_objext"
26627 ac_fn_c_check_decl "$LINENO" "_sys_siglist" "ac_cv_have_decl__sys_siglist" "#include <signal.h>
26629 if test "x$ac_cv_have_decl__sys_siglist" = xyes; then :
26635 cat >>confdefs.h <<_ACEOF
26636 #define HAVE_DECL__SYS_SIGLIST $ac_have_decl
26652 $as_echo "#define GNULIB_TEST_STRSIGNAL 1" >>confdefs.h
26672 if test $gl_cv_have_include_next = yes; then
26673 gl_cv_next_sys_stat_h='<'sys/stat.h'>'
26675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/stat.h>" >&5
26676 $as_echo_n "checking absolute name of <sys/stat.h>... " >&6; }
26677 if ${gl_cv_next_sys_stat_h+:} false; then :
26678 $as_echo_n "(cached) " >&6
26681 if test $ac_cv_header_sys_stat_h = yes; then
26686 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26687 /* end confdefs.h. */
26688 #include <sys/stat.h>
26691 aix*) gl_absname_cpp="$ac_cpp -C" ;;
26692 *) gl_absname_cpp="$ac_cpp" ;;
26697 gl_dirsep_regex='[/\\]'
26700 gl_dirsep_regex='\/'
26703 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
26704 gl_header_literal_regex=`echo 'sys/stat.h' \
26705 | sed -e "$gl_make_literal_regex_sed"`
26706 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
26707 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
26713 gl_cv_absolute_sys_stat_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
26714 sed -n "$gl_absolute_header_sed"`
26716 gl_header=$gl_cv_absolute_sys_stat_h
26717 gl_cv_next_sys_stat_h='"'$gl_header'"'
26719 gl_cv_next_sys_stat_h='<'sys/stat.h'>'
26724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_stat_h" >&5
26725 $as_echo "$gl_cv_next_sys_stat_h" >&6; }
26727 NEXT_SYS_STAT_H=$gl_cv_next_sys_stat_h
26729 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
26730 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
26731 gl_next_as_first_directive='<'sys/stat.h'>'
26733 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
26734 gl_next_as_first_directive=$gl_cv_next_sys_stat_h
26736 NEXT_AS_FIRST_DIRECTIVE_SYS_STAT_H=$gl_next_as_first_directive
26745 WINDOWS_STAT_TIMESPEC=0
26754 ac_fn_c_check_type "$LINENO" "nlink_t" "ac_cv_type_nlink_t" "#include <sys/types.h>
26755 #include <sys/stat.h>
26757 if test "x$ac_cv_type_nlink_t" = xyes; then :
26761 $as_echo "#define nlink_t int" >>confdefs.h
26789 if test $gl_cv_have_include_next = yes; then
26790 gl_cv_next_sys_wait_h='<'sys/wait.h'>'
26792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/wait.h>" >&5
26793 $as_echo_n "checking absolute name of <sys/wait.h>... " >&6; }
26794 if ${gl_cv_next_sys_wait_h+:} false; then :
26795 $as_echo_n "(cached) " >&6
26798 if test $ac_cv_header_sys_wait_h = yes; then
26803 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26804 /* end confdefs.h. */
26805 #include <sys/wait.h>
26808 aix*) gl_absname_cpp="$ac_cpp -C" ;;
26809 *) gl_absname_cpp="$ac_cpp" ;;
26814 gl_dirsep_regex='[/\\]'
26817 gl_dirsep_regex='\/'
26820 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
26821 gl_header_literal_regex=`echo 'sys/wait.h' \
26822 | sed -e "$gl_make_literal_regex_sed"`
26823 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
26824 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
26830 gl_cv_absolute_sys_wait_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
26831 sed -n "$gl_absolute_header_sed"`
26833 gl_header=$gl_cv_absolute_sys_wait_h
26834 gl_cv_next_sys_wait_h='"'$gl_header'"'
26836 gl_cv_next_sys_wait_h='<'sys/wait.h'>'
26841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_wait_h" >&5
26842 $as_echo "$gl_cv_next_sys_wait_h" >&6; }
26844 NEXT_SYS_WAIT_H=$gl_cv_next_sys_wait_h
26846 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
26847 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
26848 gl_next_as_first_directive='<'sys/wait.h'>'
26850 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
26851 gl_next_as_first_directive=$gl_cv_next_sys_wait_h
26853 NEXT_AS_FIRST_DIRECTIVE_SYS_WAIT_H=$gl_next_as_first_directive
26893 if test $gl_cv_have_include_next = yes; then
26894 gl_cv_next_unistd_h='<'unistd.h'>'
26896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <unistd.h>" >&5
26897 $as_echo_n "checking absolute name of <unistd.h>... " >&6; }
26898 if ${gl_cv_next_unistd_h+:} false; then :
26899 $as_echo_n "(cached) " >&6
26902 if test $ac_cv_header_unistd_h = yes; then
26907 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26908 /* end confdefs.h. */
26909 #include <unistd.h>
26912 aix*) gl_absname_cpp="$ac_cpp -C" ;;
26913 *) gl_absname_cpp="$ac_cpp" ;;
26918 gl_dirsep_regex='[/\\]'
26921 gl_dirsep_regex='\/'
26924 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
26925 gl_header_literal_regex=`echo 'unistd.h' \
26926 | sed -e "$gl_make_literal_regex_sed"`
26927 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
26928 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
26934 gl_cv_absolute_unistd_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
26935 sed -n "$gl_absolute_header_sed"`
26937 gl_header=$gl_cv_absolute_unistd_h
26938 gl_cv_next_unistd_h='"'$gl_header'"'
26940 gl_cv_next_unistd_h='<'unistd.h'>'
26945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_unistd_h" >&5
26946 $as_echo "$gl_cv_next_unistd_h" >&6; }
26948 NEXT_UNISTD_H=$gl_cv_next_unistd_h
26950 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
26951 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
26952 gl_next_as_first_directive='<'unistd.h'>'
26954 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
26955 gl_next_as_first_directive=$gl_cv_next_unistd_h
26957 NEXT_AS_FIRST_DIRECTIVE_UNISTD_H=$gl_next_as_first_directive
26962 if test $ac_cv_header_unistd_h = yes; then
26980 if test $ac_cv_have_decl_unsetenv = no; then
26981 HAVE_DECL_UNSETENV=0
26983 for ac_func in unsetenv
26985 ac_fn_c_check_func "$LINENO" "unsetenv" "ac_cv_func_unsetenv"
26986 if test "x$ac_cv_func_unsetenv" = xyes; then :
26987 cat >>confdefs.h <<_ACEOF
26988 #define HAVE_UNSETENV 1
26994 if test $ac_cv_func_unsetenv = no; then
26998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsetenv() return type" >&5
26999 $as_echo_n "checking for unsetenv() return type... " >&6; }
27000 if ${gt_cv_func_unsetenv_ret+:} false; then :
27001 $as_echo_n "(cached) " >&6
27003 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27004 /* end confdefs.h. */
27007 #define _BSD 1 /* unhide unsetenv declaration in OSF/1 5.1 <stdlib.h> */
27008 #include <stdlib.h>
27013 int unsetenv (const char *name);
27023 if ac_fn_c_try_compile "$LINENO"; then :
27024 gt_cv_func_unsetenv_ret='int'
27026 gt_cv_func_unsetenv_ret='void'
27028 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_unsetenv_ret" >&5
27031 $as_echo "$gt_cv_func_unsetenv_ret" >&6; }
27032 if test $gt_cv_func_unsetenv_ret = 'void'; then
27034 $as_echo "#define VOID_UNSETENV 1" >>confdefs.h
27039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether unsetenv obeys POSIX" >&5
27040 $as_echo_n "checking whether unsetenv obeys POSIX... " >&6; }
27041 if ${gl_cv_func_unsetenv_works+:} false; then :
27042 $as_echo_n "(cached) " >&6
27044 if test "$cross_compiling" = yes; then :
27046 # Guess yes on glibc systems.
27047 *-gnu*) gl_cv_func_unsetenv_works="guessing yes" ;;
27048 # If we don't know, assume the worst.
27049 *) gl_cv_func_unsetenv_works="guessing no" ;;
27053 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27054 /* end confdefs.h. */
27056 #include <stdlib.h>
27058 extern char **environ;
27064 char entry1[] = "a=1";
27065 char entry2[] = "b=2";
27066 char *env[] = { entry1, entry2, NULL };
27067 if (putenv ((char *) "a=1")) return 1;
27068 if (putenv (entry2)) return 2;
27071 if (getenv ("a")) return 3;
27072 if (!unsetenv ("") || errno != EINVAL) return 4;
27075 if (!getenv ("a")) return 5;
27078 if (getenv ("a")) return 6;
27084 if ac_fn_c_try_run "$LINENO"; then :
27085 gl_cv_func_unsetenv_works=yes
27087 gl_cv_func_unsetenv_works=no
27089 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
27090 conftest.$ac_objext conftest.beam conftest.$ac_ext
27094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_unsetenv_works" >&5
27095 $as_echo "$gl_cv_func_unsetenv_works" >&6; }
27096 case "$gl_cv_func_unsetenv_works" in
27104 if test $HAVE_UNSETENV = 0 || test $REPLACE_UNSETENV = 1; then
27113 gl_LIBOBJS="$gl_LIBOBJS unsetenv.$ac_objext"
27131 $as_echo "#define GNULIB_TEST_UNSETENV 1" >>confdefs.h
27137 if test $ac_cv_func_vasnprintf = no; then
27148 gl_LIBOBJS="$gl_LIBOBJS vasnprintf.$ac_objext"
27158 gl_LIBOBJS="$gl_LIBOBJS printf-args.$ac_objext"
27168 gl_LIBOBJS="$gl_LIBOBJS printf-parse.$ac_objext"
27178 gl_LIBOBJS="$gl_LIBOBJS asnprintf.$ac_objext"
27180 if test $ac_cv_func_vasnprintf = yes; then
27182 $as_echo "#define REPLACE_VASNPRINTF 1" >>confdefs.h
27196 ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
27197 if test "x$ac_cv_type_ptrdiff_t" = xyes; then :
27201 $as_echo "#define ptrdiff_t long" >>confdefs.h
27215 for ac_func in vasprintf
27217 ac_fn_c_check_func "$LINENO" "vasprintf" "ac_cv_func_vasprintf"
27218 if test "x$ac_cv_func_vasprintf" = xyes; then :
27219 cat >>confdefs.h <<_ACEOF
27220 #define HAVE_VASPRINTF 1
27226 if test $ac_cv_func_vasprintf = no; then
27236 gl_LIBOBJS="$gl_LIBOBJS vasprintf.$ac_objext"
27246 gl_LIBOBJS="$gl_LIBOBJS asprintf.$ac_objext"
27249 if test $ac_cv_func_vasprintf = yes; then
27250 REPLACE_VASPRINTF=1
27275 $as_echo "#define GNULIB_TEST_VASPRINTF 1" >>confdefs.h
27281 XGETTEXT_EXTRA_OPTIONS="$XGETTEXT_EXTRA_OPTIONS --flag=asprintf:2:c-format"
27285 XGETTEXT_EXTRA_OPTIONS="$XGETTEXT_EXTRA_OPTIONS --flag=vasprintf:2:c-format"
27291 mingw*) HAVE_WAITPID=0 ;;
27294 if test $HAVE_WAITPID = 0; then
27303 gl_LIBOBJS="$gl_LIBOBJS waitpid.$ac_objext"
27317 $as_echo "#define GNULIB_TEST_WAITPID 1" >>confdefs.h
27333 if test $gl_cv_have_include_next = yes; then
27334 gl_cv_next_wchar_h='<'wchar.h'>'
27336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <wchar.h>" >&5
27337 $as_echo_n "checking absolute name of <wchar.h>... " >&6; }
27338 if ${gl_cv_next_wchar_h+:} false; then :
27339 $as_echo_n "(cached) " >&6
27342 if test $ac_cv_header_wchar_h = yes; then
27347 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27348 /* end confdefs.h. */
27352 aix*) gl_absname_cpp="$ac_cpp -C" ;;
27353 *) gl_absname_cpp="$ac_cpp" ;;
27358 gl_dirsep_regex='[/\\]'
27361 gl_dirsep_regex='\/'
27364 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
27365 gl_header_literal_regex=`echo 'wchar.h' \
27366 | sed -e "$gl_make_literal_regex_sed"`
27367 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
27368 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
27374 gl_cv_absolute_wchar_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
27375 sed -n "$gl_absolute_header_sed"`
27377 gl_header=$gl_cv_absolute_wchar_h
27378 gl_cv_next_wchar_h='"'$gl_header'"'
27380 gl_cv_next_wchar_h='<'wchar.h'>'
27385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_wchar_h" >&5
27386 $as_echo "$gl_cv_next_wchar_h" >&6; }
27388 NEXT_WCHAR_H=$gl_cv_next_wchar_h
27390 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
27391 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
27392 gl_next_as_first_directive='<'wchar.h'>'
27394 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
27395 gl_next_as_first_directive=$gl_cv_next_wchar_h
27397 NEXT_AS_FIRST_DIRECTIVE_WCHAR_H=$gl_next_as_first_directive
27402 if test $ac_cv_header_wchar_h = yes; then
27412 if test $gt_cv_c_wint_t = yes; then
27429 if test $HAVE_MSVC_INVALID_PARAMETER_HANDLER = 1; then
27436 if test $REPLACE_WRITE = 1; then
27445 gl_LIBOBJS="$gl_LIBOBJS write.$ac_objext"
27460 $as_echo "#define GNULIB_TEST_WRITE 1" >>confdefs.h
27467 for ac_header in stdint.h
27469 ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
27470 if test "x$ac_cv_header_stdint_h" = xyes; then :
27471 cat >>confdefs.h <<_ACEOF
27472 #define HAVE_STDINT_H 1
27488 XGETTEXT_EXTRA_OPTIONS="$XGETTEXT_EXTRA_OPTIONS --flag=xasprintf:1:c-format"
27490 # End of code from modules
27511 gl_source_base='tests'
27512 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
27514 gl_module_indicator_condition=$gltests_WITNESS
27525 for ac_header in fcntl.h
27527 ac_fn_c_check_header_mongrel "$LINENO" "fcntl.h" "ac_cv_header_fcntl_h" "$ac_includes_default"
27528 if test "x$ac_cv_header_fcntl_h" = xyes; then :
27529 cat >>confdefs.h <<_ACEOF
27530 #define HAVE_FCNTL_H 1
27537 for ac_func in clearenv
27539 ac_fn_c_check_func "$LINENO" "clearenv" "ac_cv_func_clearenv"
27540 if test "x$ac_cv_func_clearenv" = xyes; then :
27541 cat >>confdefs.h <<_ACEOF
27542 #define HAVE_CLEARENV 1
27549 # Checks for structures and compiler characteristics.
27550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
27551 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
27552 if ${ac_cv_c_const+:} false; then :
27553 $as_echo_n "(cached) " >&6
27555 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27556 /* end confdefs.h. */
27562 #ifndef __cplusplus
27563 /* Ultrix mips cc rejects this sort of thing. */
27564 typedef int charset[2];
27565 const charset cs = { 0, 0 };
27566 /* SunOS 4.1.1 cc rejects this. */
27567 char const *const *pcpcc;
27569 /* NEC SVR4.0.2 mips cc rejects this. */
27570 struct point {int x, y;};
27571 static struct point const zero = {0,0};
27572 /* AIX XL C 1.02.0.0 rejects this.
27573 It does not let you subtract one const X* pointer from another in
27574 an arm of an if-expression whose if-part is not a constant
27576 const char *g = "string";
27577 pcpcc = &g + (g ? g-g : 0);
27578 /* HPUX 7.0 cc rejects these. */
27580 ppc = (char**) pcpcc;
27581 pcpcc = (char const *const *) ppc;
27582 { /* SCO 3.2v4 cc rejects this sort of thing. */
27585 char const *s = 0 ? (char *) 0 : (char const *) 0;
27590 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
27591 int x[] = {25, 17};
27592 const int *foo = &x[0];
27595 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
27596 typedef const int *iptr;
27600 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
27601 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
27602 struct s { int j; const int *ap[3]; } bx;
27603 struct s *b = &bx; b->j = 5;
27605 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
27606 const int foo = 10;
27607 if (!foo) return 0;
27609 return !cs[0] && !zero.x;
27616 if ac_fn_c_try_compile "$LINENO"; then :
27621 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
27624 $as_echo "$ac_cv_c_const" >&6; }
27625 if test $ac_cv_c_const = no; then
27627 $as_echo "#define const /**/" >>confdefs.h
27631 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
27632 if test "x$ac_cv_type_pid_t" = xyes; then :
27636 cat >>confdefs.h <<_ACEOF
27642 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
27643 if test "x$ac_cv_type_size_t" = xyes; then :
27647 cat >>confdefs.h <<_ACEOF
27648 #define size_t unsigned int
27654 # We must have fork(2) support.
27655 for ac_header in vfork.h
27657 ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
27658 if test "x$ac_cv_header_vfork_h" = xyes; then :
27659 cat >>confdefs.h <<_ACEOF
27660 #define HAVE_VFORK_H 1
27667 for ac_func in fork vfork
27669 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
27670 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
27671 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
27672 cat >>confdefs.h <<_ACEOF
27673 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
27679 if test "x$ac_cv_func_fork" = xyes; then
27680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
27681 $as_echo_n "checking for working fork... " >&6; }
27682 if ${ac_cv_func_fork_works+:} false; then :
27683 $as_echo_n "(cached) " >&6
27685 if test "$cross_compiling" = yes; then :
27686 ac_cv_func_fork_works=cross
27688 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27689 /* end confdefs.h. */
27690 $ac_includes_default
27695 /* By Ruediger Kuhlmann. */
27696 return fork () < 0;
27702 if ac_fn_c_try_run "$LINENO"; then :
27703 ac_cv_func_fork_works=yes
27705 ac_cv_func_fork_works=no
27707 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
27708 conftest.$ac_objext conftest.beam conftest.$ac_ext
27712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
27713 $as_echo "$ac_cv_func_fork_works" >&6; }
27716 ac_cv_func_fork_works=$ac_cv_func_fork
27718 if test "x$ac_cv_func_fork_works" = xcross; then
27720 *-*-amigaos* | *-*-msdosdjgpp*)
27721 # Override, as these systems have only a dummy fork() stub
27722 ac_cv_func_fork_works=no
27725 ac_cv_func_fork_works=yes
27728 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
27729 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
27731 ac_cv_func_vfork_works=$ac_cv_func_vfork
27732 if test "x$ac_cv_func_vfork" = xyes; then
27733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
27734 $as_echo_n "checking for working vfork... " >&6; }
27735 if ${ac_cv_func_vfork_works+:} false; then :
27736 $as_echo_n "(cached) " >&6
27738 if test "$cross_compiling" = yes; then :
27739 ac_cv_func_vfork_works=cross
27741 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27742 /* end confdefs.h. */
27743 /* Thanks to Paul Eggert for this test. */
27744 $ac_includes_default
27745 #include <sys/wait.h>
27746 #ifdef HAVE_VFORK_H
27747 # include <vfork.h>
27749 /* On some sparc systems, changes by the child to local and incoming
27750 argument registers are propagated back to the parent. The compiler
27751 is told about this with #include <vfork.h>, but some compilers
27752 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
27753 static variable whose address is put into a register that is
27754 clobbered by the vfork. */
27757 sparc_address_test (int arg)
27759 sparc_address_test (arg) int arg;
27762 static pid_t child;
27780 pid_t parent = getpid ();
27783 sparc_address_test (0);
27788 /* Here is another test for sparc vfork register problems. This
27789 test uses lots of local variables, at least as many local
27790 variables as main has allocated so far including compiler
27791 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
27792 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
27793 reuse the register of parent for one of the local variables,
27794 since it will think that parent can't possibly be used any more
27795 in this routine. Assigning to the local variable will thus
27796 munge parent in the parent process. */
27798 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
27799 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
27800 /* Convince the compiler that p..p7 are live; otherwise, it might
27801 use the same hardware register for all 8 local variables. */
27802 if (p != p1 || p != p2 || p != p3 || p != p4
27803 || p != p5 || p != p6 || p != p7)
27806 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
27807 from child file descriptors. If the child closes a descriptor
27808 before it execs or exits, this munges the parent's descriptor
27809 as well. Test for this by closing stdout in the child. */
27810 _exit(close(fileno(stdout)) != 0);
27815 while (wait(&status) != child)
27818 /* Was there some problem with vforking? */
27821 /* Did the child fail? (This shouldn't happen.) */
27824 /* Did the vfork/compiler bug occur? */
27825 || parent != getpid()
27827 /* Did the file descriptor bug occur? */
27828 || fstat(fileno(stdout), &st) != 0
27833 if ac_fn_c_try_run "$LINENO"; then :
27834 ac_cv_func_vfork_works=yes
27836 ac_cv_func_vfork_works=no
27838 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
27839 conftest.$ac_objext conftest.beam conftest.$ac_ext
27843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
27844 $as_echo "$ac_cv_func_vfork_works" >&6; }
27847 if test "x$ac_cv_func_fork_works" = xcross; then
27848 ac_cv_func_vfork_works=$ac_cv_func_vfork
27849 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
27850 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
27853 if test "x$ac_cv_func_vfork_works" = xyes; then
27855 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
27859 $as_echo "#define vfork fork" >>confdefs.h
27862 if test "x$ac_cv_func_fork_works" = xyes; then
27864 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
27868 if test "x$ac_cv_func_fork_works" != xyes; then
27869 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
27870 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27871 as_fn_error $? "cannot use libpipeline on systems without fork
27872 See \`config.log' for more details" "$LINENO" 5; }
27875 # Check for socketpair(2) as fast replacement for pipe(2).
27876 # Check whether --enable-socketpair-pipe was given.
27877 if test "${enable_socketpair_pipe+set}" = set; then :
27878 enableval=$enable_socketpair_pipe; if test "$enableval" = "yes"
27880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if socketpair(2) can be used as fast replacement for pipe(2)" >&5
27881 $as_echo_n "checking if socketpair(2) can be used as fast replacement for pipe(2)... " >&6; }
27882 if ${pipeline_cv_socketpair_pipe+:} false; then :
27883 $as_echo_n "(cached) " >&6
27886 if test "$cross_compiling" = yes; then :
27887 pipeline_cv_socketpair_pipe=no
27889 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27890 /* end confdefs.h. */
27893 #include <netinet/in.h>
27894 #include <signal.h>
27895 #include <sys/socket.h>
27896 #include <sys/types.h>
27897 #include <sys/wait.h>
27898 #include <unistd.h>
27906 static void sigpipe(int sig)
27913 const char test[] = "May use socketpair(2) instead of pipe(2)\n";
27917 if (socketpair(AF_UNIX,SOCK_STREAM,0,sfd) < 0)
27919 if (shutdown(sfd[1],SHUT_RD) < 0 || shutdown(sfd[0],SHUT_WR) < 0)
27921 if ((pid = fork()) < 0)
27926 if (read(sfd[0],buf,sizeof(buf)) < 0)
27930 write(sfd[1],test,sizeof(test) - 1);
27934 signal(SIGPIPE, sigpipe);
27935 if (socketpair(AF_UNIX,SOCK_STREAM,0,sfd) < 0)
27937 if (shutdown(sfd[1],SHUT_RD) < 0 || shutdown(sfd[0],SHUT_WR) < 0)
27940 write(sfd[1],test,sizeof(test) - 1);
27944 if ac_fn_c_try_run "$LINENO"; then :
27945 pipeline_cv_socketpair_pipe=yes
27947 pipeline_cv_socketpair_pipe=no
27949 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
27950 conftest.$ac_objext conftest.beam conftest.$ac_ext
27956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pipeline_cv_socketpair_pipe" >&5
27957 $as_echo "$pipeline_cv_socketpair_pipe" >&6; }
27958 if test "$pipeline_cv_socketpair_pipe" = yes; then
27960 $as_echo "#define USE_SOCKETPAIR_PIPE 1" >>confdefs.h
27964 if test "$pipeline_cv_socketpair_pipe" = yes; then
27965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if shutdown(2) does not set mode for the socket descriptor" >&5
27966 $as_echo_n "checking if shutdown(2) does not set mode for the socket descriptor... " >&6; }
27967 if ${pipeline_cv_socketpair_mode+:} false; then :
27968 $as_echo_n "(cached) " >&6
27971 if test "$cross_compiling" = yes; then :
27972 pipeline_cv_socketpair_mode=no
27974 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27975 /* end confdefs.h. */
27978 #include <netinet/in.h>
27979 #include <sys/stat.h>
27980 #include <sys/socket.h>
27981 #include <sys/types.h>
27982 #include <unistd.h>
27994 if (socketpair(AF_UNIX,SOCK_STREAM,0,sfd) < 0)
27996 if (shutdown(sfd[1],SHUT_RD) < 0 || shutdown(sfd[0],SHUT_WR) < 0)
27998 if (fstat(sfd[0], &(st[0])) < 0 || fstat(sfd[1], &(st[1])) < 0)
28000 if ((st[0].st_mode & (S_IRUSR|S_IWUSR)) == S_IRUSR && (st[1].st_mode & (S_IRUSR|S_IWUSR)) == S_IWUSR)
28002 if (fchmod(sfd[0], S_IRUSR) < 0 || fchmod(sfd[1], S_IWUSR) < 0)
28004 if (fstat(sfd[0], &(st[0])) < 0 || fstat(sfd[1], &(st[1])) < 0)
28006 if ((st[0].st_mode & (S_IRUSR|S_IWUSR)) != S_IRUSR && (st[1].st_mode & (S_IRUSR|S_IWUSR)) != S_IWUSR)
28011 if ac_fn_c_try_run "$LINENO"; then :
28012 pipeline_cv_socketpair_mode=yes
28014 pipeline_cv_socketpair_mode=no
28016 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
28017 conftest.$ac_objext conftest.beam conftest.$ac_ext
28023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pipeline_cv_socketpair_mode" >&5
28024 $as_echo "$pipeline_cv_socketpair_mode" >&6; }
28025 if test "$pipeline_cv_socketpair_mode" = yes; then
28027 $as_echo "#define CORRECT_SOCKETPAIR_MODE 1" >>confdefs.h
28037 { $as_echo "$as_me:${as_lineno-$LINENO}: default CC = \"$CC\"" >&5
28038 $as_echo "$as_me: default CC = \"$CC\"" >&6;}
28039 { $as_echo "$as_me:${as_lineno-$LINENO}: default CPP = \"$CPP\"" >&5
28040 $as_echo "$as_me: default CPP = \"$CPP\"" >&6;}
28041 { $as_echo "$as_me:${as_lineno-$LINENO}: default CPPFLAGS = \"$CPPFLAGS\"" >&5
28042 $as_echo "$as_me: default CPPFLAGS = \"$CPPFLAGS\"" >&6;}
28043 { $as_echo "$as_me:${as_lineno-$LINENO}: default CFLAGS = \"$CFLAGS\"" >&5
28044 $as_echo "$as_me: default CFLAGS = \"$CFLAGS\"" >&6;}
28045 { $as_echo "$as_me:${as_lineno-$LINENO}: default LDFLAGS = \"$LDFLAGS\"" >&5
28046 $as_echo "$as_me: default LDFLAGS = \"$LDFLAGS\"" >&6;}
28047 { $as_echo "$as_me:${as_lineno-$LINENO}: default LIBS = \"$LIBS\"" >&5
28048 $as_echo "$as_me: default LIBS = \"$LIBS\"" >&6;}
28050 ac_config_files="$ac_config_files Makefile gl/lib/Makefile lib/Makefile lib/libpipeline.pc man/Makefile tests/Makefile"
28052 cat >confcache <<\_ACEOF
28053 # This file is a shell script that caches the results of configure
28054 # tests run on this system so they can be shared between configure
28055 # scripts and configure runs, see configure's option --config-cache.
28056 # It is not useful on other systems. If it contains results you don't
28057 # want to keep, you may remove or edit it.
28059 # config.status only pays attention to the cache file if you give it
28060 # the --recheck option to rerun configure.
28062 # `ac_cv_env_foo' variables (set or unset) will be overridden when
28063 # loading this file, other *unset* `ac_cv_foo' will be assigned the
28064 # following values.
28068 # The following way of writing the cache mishandles newlines in values,
28069 # but we know of no workaround that is simple, portable, and efficient.
28070 # So, we kill variables containing newlines.
28071 # Ultrix sh set writes to stderr and can't be redirected directly,
28072 # and sets the high bit in the cache file unless we assign to the vars.
28074 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
28075 eval ac_val=\$$ac_var
28079 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
28080 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
28083 _ | IFS | as_nl) ;; #(
28084 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
28085 *) { eval $ac_var=; unset $ac_var;} ;;
28091 case $as_nl`(ac_space=' '; set) 2>&1` in #(
28092 *${as_nl}ac_space=\ *)
28093 # `set' does not quote correctly, so add quotes: double-quote
28094 # substitution turns \\\\ into \\, and sed turns \\ into \.
28097 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
28100 # `set' quotes correctly as required by POSIX, so do not add quotes.
28101 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
28110 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
28112 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
28114 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
28115 if test -w "$cache_file"; then
28116 if test "x$cache_file" != "x/dev/null"; then
28117 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
28118 $as_echo "$as_me: updating cache $cache_file" >&6;}
28119 if test ! -f "$cache_file" || test -h "$cache_file"; then
28120 cat confcache >"$cache_file"
28122 case $cache_file in #(
28124 mv -f confcache "$cache_file"$$ &&
28125 mv -f "$cache_file"$$ "$cache_file" ;; #(
28127 mv -f confcache "$cache_file" ;;
28132 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
28133 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
28138 test "x$prefix" = xNONE && prefix=$ac_default_prefix
28139 # Let make expand exec_prefix.
28140 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
28142 DEFS=-DHAVE_CONFIG_H
28147 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
28148 # 1. Remove the extension, and $U if already installed.
28149 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
28150 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
28151 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
28152 # will be set to the directory where LIBOBJS objects are built.
28153 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
28154 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
28156 LIBOBJS=$ac_libobjs
28158 LTLIBOBJS=$ac_ltlibobjs
28161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
28162 $as_echo_n "checking that generated files are newer than configure... " >&6; }
28163 if test -n "$am_sleep_pid"; then
28164 # Hide warnings about reused PIDs.
28165 wait $am_sleep_pid 2>/dev/null
28167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
28168 $as_echo "done" >&6; }
28169 if test -n "$EXEEXT"; then
28171 am__EXEEXT_FALSE='#'
28173 am__EXEEXT_TRUE='#'
28177 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
28178 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
28179 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28181 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
28182 as_fn_error $? "conditional \"AMDEP\" was never defined.
28183 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28185 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
28186 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
28187 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28189 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
28190 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
28191 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28193 if test -z "${RUN_TESTS_TRUE}" && test -z "${RUN_TESTS_FALSE}"; then
28194 as_fn_error $? "conditional \"RUN_TESTS\" was never defined.
28195 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28197 if test -z "${GL_COND_LIBTOOL_TRUE}" && test -z "${GL_COND_LIBTOOL_FALSE}"; then
28198 as_fn_error $? "conditional \"GL_COND_LIBTOOL\" was never defined.
28199 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28201 if test -z "${GL_GENERATE_ALLOCA_H_TRUE}" && test -z "${GL_GENERATE_ALLOCA_H_FALSE}"; then
28202 as_fn_error $? "conditional \"GL_GENERATE_ALLOCA_H\" was never defined.
28203 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28205 if test -z "${GL_GENERATE_ERRNO_H_TRUE}" && test -z "${GL_GENERATE_ERRNO_H_FALSE}"; then
28206 as_fn_error $? "conditional \"GL_GENERATE_ERRNO_H\" was never defined.
28207 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28209 if test -z "${GL_GENERATE_FLOAT_H_TRUE}" && test -z "${GL_GENERATE_FLOAT_H_FALSE}"; then
28210 as_fn_error $? "conditional \"GL_GENERATE_FLOAT_H\" was never defined.
28211 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28213 if test -z "${GL_GENERATE_LIMITS_H_TRUE}" && test -z "${GL_GENERATE_LIMITS_H_FALSE}"; then
28214 as_fn_error $? "conditional \"GL_GENERATE_LIMITS_H\" was never defined.
28215 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28217 if test -z "${GL_GENERATE_STDARG_H_TRUE}" && test -z "${GL_GENERATE_STDARG_H_FALSE}"; then
28218 as_fn_error $? "conditional \"GL_GENERATE_STDARG_H\" was never defined.
28219 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28221 if test -z "${GL_GENERATE_STDBOOL_H_TRUE}" && test -z "${GL_GENERATE_STDBOOL_H_FALSE}"; then
28222 as_fn_error $? "conditional \"GL_GENERATE_STDBOOL_H\" was never defined.
28223 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28225 if test -z "${GL_GENERATE_STDDEF_H_TRUE}" && test -z "${GL_GENERATE_STDDEF_H_FALSE}"; then
28226 as_fn_error $? "conditional \"GL_GENERATE_STDDEF_H\" was never defined.
28227 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28229 if test -z "${GL_GENERATE_LIMITS_H_TRUE}" && test -z "${GL_GENERATE_LIMITS_H_FALSE}"; then
28230 as_fn_error $? "conditional \"GL_GENERATE_LIMITS_H\" was never defined.
28231 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28233 if test -z "${GL_GENERATE_STDINT_H_TRUE}" && test -z "${GL_GENERATE_STDINT_H_FALSE}"; then
28234 as_fn_error $? "conditional \"GL_GENERATE_STDINT_H\" was never defined.
28235 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28241 if test -n "$gl_LIBOBJS"; then
28242 # Remove the extension.
28243 sed_drop_objext='s/\.o$//;s/\.obj$//'
28244 for i in `for i in $gl_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
28245 gl_libobjs="$gl_libobjs $i.$ac_objext"
28246 gl_ltlibobjs="$gl_ltlibobjs $i.lo"
28249 gl_LIBOBJS=$gl_libobjs
28251 gl_LTLIBOBJS=$gl_ltlibobjs
28257 if test -n "$gltests_LIBOBJS"; then
28258 # Remove the extension.
28259 sed_drop_objext='s/\.o$//;s/\.obj$//'
28260 for i in `for i in $gltests_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
28261 gltests_libobjs="$gltests_libobjs $i.$ac_objext"
28262 gltests_ltlibobjs="$gltests_ltlibobjs $i.lo"
28265 gltests_LIBOBJS=$gltests_libobjs
28267 gltests_LTLIBOBJS=$gltests_ltlibobjs
28271 : "${CONFIG_STATUS=./config.status}"
28273 ac_clean_files_save=$ac_clean_files
28274 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
28275 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
28276 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
28278 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
28280 # Generated by $as_me.
28281 # Run this file to recreate the current configuration.
28282 # Compiler output produced by configure, useful for debugging
28283 # configure, is in config.log if it exists.
28286 ac_cs_recheck=false
28289 SHELL=\${CONFIG_SHELL-$SHELL}
28292 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
28293 ## -------------------- ##
28294 ## M4sh Initialization. ##
28295 ## -------------------- ##
28297 # Be more Bourne compatible
28298 DUALCASE=1; export DUALCASE # for MKS sh
28299 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
28302 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
28303 # is contrary to our usage. Disable this feature.
28304 alias -g '${1+"$@"}'='"$@"'
28305 setopt NO_GLOB_SUBST
28307 case `(set -o) 2>/dev/null` in #(
28319 # Printing a long string crashes Solaris 7 /usr/bin/printf.
28320 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
28321 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
28322 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
28323 # Prefer a ksh shell builtin over an external printf program on Solaris,
28324 # but without wasting forks for bash or zsh.
28325 if test -z "$BASH_VERSION$ZSH_VERSION" \
28326 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
28327 as_echo='print -r --'
28328 as_echo_n='print -rn --'
28329 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
28330 as_echo='printf %s\n'
28331 as_echo_n='printf %s'
28333 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
28334 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
28335 as_echo_n='/usr/ucb/echo -n'
28337 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
28338 as_echo_n_body='eval
28342 expr "X$arg" : "X\\(.*\\)$as_nl";
28343 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
28345 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
28347 export as_echo_n_body
28348 as_echo_n='sh -c $as_echo_n_body as_echo'
28350 export as_echo_body
28351 as_echo='sh -c $as_echo_body as_echo'
28354 # The user is always right.
28355 if test "${PATH_SEPARATOR+set}" != set; then
28357 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
28358 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
28365 # We need space, tab and new line, in precisely that order. Quoting is
28366 # there to prevent editors from complaining about space-tab.
28367 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
28368 # splitting by setting IFS to empty value.)
28371 # Find who we are. Look in the path if we contain no directory separator.
28374 *[\\/]* ) as_myself=$0 ;;
28375 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28376 for as_dir in $PATH
28379 test -z "$as_dir" && as_dir=.
28380 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
28386 # We did not find ourselves, most probably we were run as `sh COMMAND'
28387 # in which case we are not to be found in the path.
28388 if test "x$as_myself" = x; then
28391 if test ! -f "$as_myself"; then
28392 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
28396 # Unset variables that we do not need and which cause bugs (e.g. in
28397 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
28398 # suppresses any "Segmentation fault" message there. '((' could
28399 # trigger a bug in pdksh 5.2.14.
28400 for as_var in BASH_ENV ENV MAIL MAILPATH
28401 do eval test x\${$as_var+set} = xset \
28402 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
28415 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
28418 # as_fn_error STATUS ERROR [LINENO LOG_FD]
28419 # ----------------------------------------
28420 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
28421 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
28422 # script with STATUS, using 1 if that was 0.
28425 as_status=$1; test $as_status -eq 0 && as_status=1
28427 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
28428 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
28430 $as_echo "$as_me: error: $2" >&2
28431 as_fn_exit $as_status
28435 # as_fn_set_status STATUS
28436 # -----------------------
28437 # Set $? to STATUS, without forking.
28438 as_fn_set_status ()
28441 } # as_fn_set_status
28443 # as_fn_exit STATUS
28444 # -----------------
28445 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
28449 as_fn_set_status $1
28455 # Portably unset VAR.
28458 { eval $1=; unset $1;}
28460 as_unset=as_fn_unset
28461 # as_fn_append VAR VALUE
28462 # ----------------------
28463 # Append the text in VALUE to the end of the definition contained in VAR. Take
28464 # advantage of any shell optimizations that allow amortized linear growth over
28465 # repeated appends, instead of the typical quadratic growth present in naive
28467 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
28468 eval 'as_fn_append ()
28479 # as_fn_arith ARG...
28480 # ------------------
28481 # Perform arithmetic evaluation on the ARGs, and store the result in the
28482 # global $as_val. Take advantage of shells that can avoid forks. The arguments
28483 # must be portable across $(()) and expr.
28484 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
28485 eval 'as_fn_arith ()
28492 as_val=`expr "$@" || test $? -eq 1`
28497 if expr a : '\(a\)' >/dev/null 2>&1 &&
28498 test "X`expr 00001 : '.*\(...\)'`" = X001; then
28504 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
28505 as_basename=basename
28510 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
28516 as_me=`$as_basename -- "$0" ||
28517 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
28518 X"$0" : 'X\(//\)$' \| \
28519 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
28521 sed '/^.*\/\([^/][^/]*\)\/*$/{
28535 # Avoid depending upon Character Ranges.
28536 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
28537 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
28538 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
28539 as_cr_digits='0123456789'
28540 as_cr_alnum=$as_cr_Letters$as_cr_digits
28542 ECHO_C= ECHO_N= ECHO_T=
28543 case `echo -n x` in #(((((
28545 case `echo 'xy\c'` in
28546 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
28548 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
28555 rm -f conf$$ conf$$.exe conf$$.file
28556 if test -d conf$$.dir; then
28557 rm -f conf$$.dir/conf$$.file
28560 mkdir conf$$.dir 2>/dev/null
28562 if (echo >conf$$.file) 2>/dev/null; then
28563 if ln -s conf$$.file conf$$ 2>/dev/null; then
28565 # ... but there are two gotchas:
28566 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
28567 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
28568 # In both cases, we have to default to `cp -pR'.
28569 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
28571 elif ln conf$$.file conf$$ 2>/dev/null; then
28579 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
28580 rmdir conf$$.dir 2>/dev/null
28585 # Create "$as_dir" as a directory, including parents if necessary.
28590 -*) as_dir=./$as_dir;;
28592 test -d "$as_dir" || eval $as_mkdir_p || {
28596 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
28597 *) as_qdir=$as_dir;;
28599 as_dirs="'$as_qdir' $as_dirs"
28600 as_dir=`$as_dirname -- "$as_dir" ||
28601 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28602 X"$as_dir" : 'X\(//\)[^/]' \| \
28603 X"$as_dir" : 'X\(//\)$' \| \
28604 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
28605 $as_echo X"$as_dir" |
28606 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
28610 /^X\(\/\/\)[^/].*/{
28623 test -d "$as_dir" && break
28625 test -z "$as_dirs" || eval "mkdir $as_dirs"
28626 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
28630 if mkdir -p . 2>/dev/null; then
28631 as_mkdir_p='mkdir -p "$as_dir"'
28633 test -d ./-p && rmdir ./-p
28638 # as_fn_executable_p FILE
28639 # -----------------------
28640 # Test if FILE is an executable regular file.
28641 as_fn_executable_p ()
28643 test -f "$1" && test -x "$1"
28644 } # as_fn_executable_p
28645 as_test_x='test -x'
28646 as_executable_p=as_fn_executable_p
28648 # Sed expression to map a string onto a valid CPP name.
28649 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
28651 # Sed expression to map a string onto a valid variable name.
28652 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
28656 ## ----------------------------------- ##
28657 ## Main body of $CONFIG_STATUS script. ##
28658 ## ----------------------------------- ##
28660 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
28662 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28663 # Save the log message, to keep $0 and so on meaningful, and to
28664 # report actual input values of CONFIG_FILES etc. instead of their
28665 # values after options handling.
28667 This file was extended by libpipeline $as_me 1.5.2, which was
28668 generated by GNU Autoconf 2.69. Invocation command line was
28670 CONFIG_FILES = $CONFIG_FILES
28671 CONFIG_HEADERS = $CONFIG_HEADERS
28672 CONFIG_LINKS = $CONFIG_LINKS
28673 CONFIG_COMMANDS = $CONFIG_COMMANDS
28676 on `(hostname || uname -n) 2>/dev/null | sed 1q`
28681 case $ac_config_files in *"
28682 "*) set x $ac_config_files; shift; ac_config_files=$*;;
28685 case $ac_config_headers in *"
28686 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
28690 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28691 # Files that config.status was made for.
28692 config_files="$ac_config_files"
28693 config_headers="$ac_config_headers"
28694 config_commands="$ac_config_commands"
28698 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28700 \`$as_me' instantiates files and other configuration actions
28701 from templates according to the current configuration. Unless the files
28702 and actions are specified as TAGs, all are instantiated by default.
28704 Usage: $0 [OPTION]... [TAG]...
28706 -h, --help print this help, then exit
28707 -V, --version print version number and configuration settings, then exit
28708 --config print configuration, then exit
28709 -q, --quiet, --silent
28710 do not print progress messages
28711 -d, --debug don't remove temporary files
28712 --recheck update $as_me by reconfiguring in the same conditions
28713 --file=FILE[:TEMPLATE]
28714 instantiate the configuration file FILE
28715 --header=FILE[:TEMPLATE]
28716 instantiate the configuration header FILE
28718 Configuration files:
28721 Configuration headers:
28724 Configuration commands:
28727 Report bugs to <cjwatson@debian.org>."
28730 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28731 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
28733 libpipeline config.status 1.5.2
28734 configured by $0, generated by GNU Autoconf 2.69,
28735 with options \\"\$ac_cs_config\\"
28737 Copyright (C) 2012 Free Software Foundation, Inc.
28738 This config.status script is free software; the Free Software Foundation
28739 gives unlimited permission to copy, distribute and modify it."
28746 test -n "\$AWK" || AWK=awk
28749 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28750 # The default lists apply if the user does not specify any file.
28756 ac_option=`expr "X$1" : 'X\([^=]*\)='`
28757 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
28761 ac_option=`expr "X$1" : 'X\([^=]*\)='`
28773 # Handling of the options.
28774 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
28776 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
28777 $as_echo "$ac_cs_version"; exit ;;
28778 --config | --confi | --conf | --con | --co | --c )
28779 $as_echo "$ac_cs_config"; exit ;;
28780 --debug | --debu | --deb | --de | --d | -d )
28782 --file | --fil | --fi | --f )
28785 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
28786 '') as_fn_error $? "missing file argument" ;;
28788 as_fn_append CONFIG_FILES " '$ac_optarg'"
28789 ac_need_defaults=false;;
28790 --header | --heade | --head | --hea )
28793 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
28795 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
28796 ac_need_defaults=false;;
28798 # Conflict between --help and --header
28799 as_fn_error $? "ambiguous option: \`$1'
28800 Try \`$0 --help' for more information.";;
28801 --help | --hel | -h )
28802 $as_echo "$ac_cs_usage"; exit ;;
28803 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
28804 | -silent | --silent | --silen | --sile | --sil | --si | --s)
28807 # This is an error.
28808 -*) as_fn_error $? "unrecognized option: \`$1'
28809 Try \`$0 --help' for more information." ;;
28811 *) as_fn_append ac_config_targets " $1"
28812 ac_need_defaults=false ;;
28818 ac_configure_extra_args=
28820 if $ac_cs_silent; then
28822 ac_configure_extra_args="$ac_configure_extra_args --silent"
28826 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28827 if \$ac_cs_recheck; then
28828 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
28830 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
28831 CONFIG_SHELL='$SHELL'
28832 export CONFIG_SHELL
28837 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28841 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
28842 ## Running $as_me. ##
28848 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28852 AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
28855 # The HP-UX ksh and POSIX shell print the target directory to stdout
28856 # if CDPATH is set.
28857 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
28859 sed_quote_subst='$sed_quote_subst'
28860 double_quote_subst='$double_quote_subst'
28861 delay_variable_subst='$delay_variable_subst'
28862 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
28863 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
28864 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
28865 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
28866 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
28867 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
28868 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
28869 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
28870 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
28871 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
28872 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
28873 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
28874 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
28875 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
28876 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
28877 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
28878 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
28879 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
28880 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
28881 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
28882 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
28883 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
28884 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
28885 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
28886 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
28887 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
28888 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
28889 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
28890 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
28891 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
28892 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
28893 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
28894 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
28895 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
28896 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
28897 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
28898 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
28899 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
28900 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
28901 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
28902 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
28903 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
28904 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
28905 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
28906 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
28907 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
28908 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
28909 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
28910 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
28911 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
28912 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
28913 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
28914 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
28915 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
28916 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
28917 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
28918 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
28919 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
28920 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"`'
28921 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
28922 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
28923 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
28924 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
28925 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
28926 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
28927 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
28928 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
28929 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
28930 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
28931 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
28932 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
28933 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
28934 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
28935 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
28936 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
28937 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
28938 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
28939 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
28940 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
28941 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
28942 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
28943 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
28944 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
28945 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
28946 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
28947 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
28948 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
28949 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
28950 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
28951 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
28952 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
28953 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
28954 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
28955 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
28956 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
28957 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
28958 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
28959 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
28960 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
28961 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
28962 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
28963 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
28964 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
28965 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
28966 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
28967 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
28968 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
28969 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
28970 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
28971 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
28972 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
28973 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
28974 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
28975 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
28976 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
28977 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
28978 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
28979 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
28980 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
28981 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
28982 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
28983 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
28984 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
28985 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
28986 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
28987 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
28988 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
28989 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
28990 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
28991 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
28992 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
28993 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
28994 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
28995 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
28996 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
28999 LTCFLAGS='$LTCFLAGS'
29000 compiler='$compiler_DEFAULT'
29002 # A function that is used when there is no print builtin or printf.
29003 func_fallback_echo ()
29005 eval 'cat <<_LTECHO_EOF
29010 # Quote evaled strings.
29025 deplibs_check_method \
29030 sharedlib_from_linklib_cmd \
29033 archiver_list_spec \
29039 lt_cv_sys_global_symbol_pipe \
29040 lt_cv_sys_global_symbol_to_cdecl \
29041 lt_cv_sys_global_symbol_to_import \
29042 lt_cv_sys_global_symbol_to_c_name_address \
29043 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
29044 lt_cv_nm_interface \
29045 nm_file_list_spec \
29046 lt_cv_truncate_bin \
29047 lt_prog_compiler_no_builtin_flag \
29048 lt_prog_compiler_pic \
29049 lt_prog_compiler_wl \
29050 lt_prog_compiler_static \
29051 lt_cv_prog_compiler_c_o \
29060 export_dynamic_flag_spec \
29061 whole_archive_flag_spec \
29062 compiler_needs_object \
29064 allow_undefined_flag \
29065 no_undefined_flag \
29066 hardcode_libdir_flag_spec \
29067 hardcode_libdir_separator \
29071 variables_saved_for_relink \
29073 library_names_spec \
29075 install_override_mode \
29079 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
29080 *[\\\\\\\`\\"\\\$]*)
29081 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
29084 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
29089 # Double-quote double-evaled strings.
29090 for var in reload_cmds \
29091 old_postinstall_cmds \
29092 old_postuninstall_cmds \
29094 extract_expsyms_cmds \
29095 old_archive_from_new_cmds \
29096 old_archive_from_expsyms_cmds \
29098 archive_expsym_cmds \
29100 module_expsym_cmds \
29101 export_symbols_cmds \
29105 postuninstall_cmds \
29107 sys_lib_search_path_spec \
29108 configure_time_dlsearch_path \
29109 configure_time_lt_sys_library_path; do
29110 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
29111 *[\\\\\\\`\\"\\\$]*)
29112 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
29115 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
29120 ac_aux_dir='$ac_aux_dir'
29122 # See if we are running on zsh, and set the options that allow our
29123 # commands through without removal of \ escapes INIT.
29124 if test -n "\${ZSH_VERSION+set}"; then
29125 setopt NO_GLOB_SUBST
29139 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29141 # Handling of arguments.
29142 for ac_config_target in $ac_config_targets
29144 case $ac_config_target in
29145 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
29146 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
29147 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
29148 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
29149 "gl/lib/Makefile") CONFIG_FILES="$CONFIG_FILES gl/lib/Makefile" ;;
29150 "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
29151 "lib/libpipeline.pc") CONFIG_FILES="$CONFIG_FILES lib/libpipeline.pc" ;;
29152 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
29153 "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
29155 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
29160 # If the user did not use the arguments to specify the items to instantiate,
29161 # then the envvar interface is used. Set only those that are not.
29162 # We use the long form for the default assignment because of an extremely
29163 # bizarre bug on SunOS 4.1.3.
29164 if $ac_need_defaults; then
29165 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
29166 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
29167 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
29170 # Have a temporary directory for convenience. Make it in the build tree
29171 # simply because there is no reason against having it here, and in addition,
29172 # creating and moving files from /tmp can sometimes cause problems.
29173 # Hook for its removal unless debugging.
29174 # Note that there is a small window in which the directory will not be cleaned:
29175 # after its creation but before its name has been assigned to `$tmp'.
29179 trap 'exit_status=$?
29180 : "${ac_tmp:=$tmp}"
29181 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
29183 trap 'as_fn_exit 1' 1 2 13 15
29185 # Create a (secure) tmp directory for tmp files.
29188 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
29192 tmp=./conf$$-$RANDOM
29193 (umask 077 && mkdir "$tmp")
29194 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
29197 # Set up the scripts for CONFIG_FILES section.
29198 # No need to generate them if there are no CONFIG_FILES.
29199 # This happens for instance with `./config.status config.h'.
29200 if test -n "$CONFIG_FILES"; then
29203 ac_cr=`echo X | tr X '\015'`
29204 # On cygwin, bash can eat \r inside `` if the user requested igncr.
29205 # But we know of no other shell where ac_cr would be empty at this
29206 # point, so we can use a bashism as a fallback.
29207 if test "x$ac_cr" = x; then
29208 eval ac_cr=\$\'\\r\'
29210 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
29211 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
29214 ac_cs_awk_cr=$ac_cr
29217 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
29222 echo "cat >conf$$subs.awk <<_ACEOF" &&
29223 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
29225 } >conf$$subs.sh ||
29226 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
29227 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
29229 for ac_last_try in false false false false false :; do
29230 . ./conf$$subs.sh ||
29231 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
29233 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
29234 if test $ac_delim_n = $ac_delim_num; then
29236 elif $ac_last_try; then
29237 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
29239 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
29242 rm -f conf$$subs.sh
29244 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29245 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
29249 s/^/S["/; s/!.*/"]=/
29259 s/\(.\{148\}\)..*/\1/
29261 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
29266 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
29273 s/\(.\{148\}\)..*/\1/
29275 s/["\\]/\\&/g; s/^/"/; s/$/"/
29279 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
29284 ' <conf$$subs.awk | sed '
29289 ' >>$CONFIG_STATUS || ac_write_fail=1
29290 rm -f conf$$subs.awk
29291 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29293 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
29294 for (key in S) S_is_set[key] = 1
29300 nfields = split(line, field, "@")
29302 len = length(field[1])
29303 for (i = 2; i < nfields; i++) {
29305 keylen = length(key)
29306 if (S_is_set[key]) {
29308 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
29309 len += length(value) + length(field[++i])
29320 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29321 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
29322 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
29325 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
29326 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
29329 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
29330 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
29331 # trailing colons and then remove the whole line if VPATH becomes empty
29332 # (actually we leave an empty line to preserve line numbers).
29333 if test "x$srcdir" = x.; then
29334 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
29352 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29353 fi # test -n "$CONFIG_FILES"
29355 # Set up the scripts for CONFIG_HEADERS section.
29356 # No need to generate them if there are no CONFIG_HEADERS.
29357 # This happens for instance with `./config.status Makefile'.
29358 if test -n "$CONFIG_HEADERS"; then
29359 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
29363 # Transform confdefs.h into an awk script `defines.awk', embedded as
29364 # here-document in config.status, that substitutes the proper values into
29365 # config.h.in to produce config.h.
29367 # Create a delimiter string that does not exist in confdefs.h, to ease
29368 # handling of long lines.
29370 for ac_last_try in false false :; do
29371 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
29372 if test -z "$ac_tt"; then
29374 elif $ac_last_try; then
29375 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
29377 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
29381 # For the awk script, D is an array of macro values keyed by name,
29382 # likewise P contains macro parameters if any. Preserve backslash
29383 # newline sequences.
29385 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
29387 s/.\{148\}/&'"$ac_delim"'/g
29390 s/^[ ]*#[ ]*define[ ][ ]*/ /
29397 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
29399 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
29403 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
29404 D["\1"]=" \3\\\\\\n"\\/p
29406 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
29411 s/.\{148\}/&'"$ac_delim"'/g
29416 s/["\\]/\\&/g; s/^/"/; s/$/"/p
29419 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
29421 ' <confdefs.h | sed '
29422 s/'"$ac_delim"'/"\\\
29423 "/g' >>$CONFIG_STATUS || ac_write_fail=1
29425 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29426 for (key in D) D_is_set[key] = 1
29429 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
29431 split(line, arg, " ")
29432 if (arg[1] == "#") {
29436 defundef = substr(arg[1], 2)
29439 split(mac1, mac2, "(") #)
29441 prefix = substr(line, 1, index(line, defundef) - 1)
29442 if (D_is_set[macro]) {
29443 # Preserve the white space surrounding the "#".
29444 print prefix "define", macro P[macro] D[macro]
29447 # Replace #undef with comments. This is necessary, for example,
29448 # in the case of _POSIX_SOURCE, which is predefined and required
29449 # on some systems where configure will not decide to define it.
29450 if (defundef == "undef") {
29451 print "/*", prefix defundef, macro, "*/"
29459 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29460 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
29461 fi # test -n "$CONFIG_HEADERS"
29464 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
29469 :[FHLC]) ac_mode=$ac_tag; continue;;
29471 case $ac_mode$ac_tag in
29473 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
29474 :[FH]-) ac_tag=-:-;;
29475 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
29492 -) ac_f="$ac_tmp/stdin";;
29493 *) # Look for the file first in the build tree, then in the source tree
29494 # (if the path is not absolute). The absolute path cannot be DOS-style,
29495 # because $ac_f cannot contain `:'.
29499 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
29501 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
29503 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
29504 as_fn_append ac_file_inputs " '$ac_f'"
29507 # Let's still pretend it is `configure' which instantiates (i.e., don't
29508 # use $as_me), people would be surprised to read:
29509 # /* config.h. Generated by config.status. */
29510 configure_input='Generated from '`
29511 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
29513 if test x"$ac_file" != x-; then
29514 configure_input="$ac_file. $configure_input"
29515 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
29516 $as_echo "$as_me: creating $ac_file" >&6;}
29518 # Neutralize special characters interpreted by sed in replacement strings.
29519 case $configure_input in #(
29520 *\&* | *\|* | *\\* )
29521 ac_sed_conf_input=`$as_echo "$configure_input" |
29522 sed 's/[\\\\&|]/\\\\&/g'`;; #(
29523 *) ac_sed_conf_input=$configure_input;;
29527 *:-:* | *:-) cat >"$ac_tmp/stdin" \
29528 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
29533 ac_dir=`$as_dirname -- "$ac_file" ||
29534 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
29535 X"$ac_file" : 'X\(//\)[^/]' \| \
29536 X"$ac_file" : 'X\(//\)$' \| \
29537 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
29538 $as_echo X"$ac_file" |
29539 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
29543 /^X\(\/\/\)[^/].*/{
29556 as_dir="$ac_dir"; as_fn_mkdir_p
29560 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
29562 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
29563 # A ".." for each directory in $ac_dir_suffix.
29564 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
29565 case $ac_top_builddir_sub in
29566 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
29567 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
29570 ac_abs_top_builddir=$ac_pwd
29571 ac_abs_builddir=$ac_pwd$ac_dir_suffix
29572 # for backward compatibility:
29573 ac_top_builddir=$ac_top_build_prefix
29576 .) # We are building in place.
29578 ac_top_srcdir=$ac_top_builddir_sub
29579 ac_abs_top_srcdir=$ac_pwd ;;
29580 [\\/]* | ?:[\\/]* ) # Absolute name.
29581 ac_srcdir=$srcdir$ac_dir_suffix;
29582 ac_top_srcdir=$srcdir
29583 ac_abs_top_srcdir=$srcdir ;;
29584 *) # Relative name.
29585 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
29586 ac_top_srcdir=$ac_top_build_prefix$srcdir
29587 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
29589 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
29599 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
29600 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
29602 ac_MKDIR_P=$MKDIR_P
29604 [\\/$]* | ?:[\\/]* ) ;;
29605 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
29609 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29610 # If the template does not know about datarootdir, expand it.
29611 # FIXME: This hack should be removed a few years after 2.60.
29612 ac_datarootdir_hack=; ac_datarootdir_seen=
29623 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
29624 *datarootdir*) ac_datarootdir_seen=yes;;
29625 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
29626 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
29627 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
29629 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29630 ac_datarootdir_hack='
29631 s&@datadir@&$datadir&g
29632 s&@docdir@&$docdir&g
29633 s&@infodir@&$infodir&g
29634 s&@localedir@&$localedir&g
29635 s&@mandir@&$mandir&g
29636 s&\\\${datarootdir}&$datarootdir&g' ;;
29640 # Neutralize VPATH when `$srcdir' = `.'.
29641 # Shell code in configure.ac might set extrasub.
29642 # FIXME: do we really want to maintain this feature?
29643 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29644 ac_sed_extra="$ac_vpsub
29647 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29649 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
29650 s|@configure_input@|$ac_sed_conf_input|;t t
29651 s&@top_builddir@&$ac_top_builddir_sub&;t t
29652 s&@top_build_prefix@&$ac_top_build_prefix&;t t
29653 s&@srcdir@&$ac_srcdir&;t t
29654 s&@abs_srcdir@&$ac_abs_srcdir&;t t
29655 s&@top_srcdir@&$ac_top_srcdir&;t t
29656 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
29657 s&@builddir@&$ac_builddir&;t t
29658 s&@abs_builddir@&$ac_abs_builddir&;t t
29659 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
29660 s&@INSTALL@&$ac_INSTALL&;t t
29661 s&@MKDIR_P@&$ac_MKDIR_P&;t t
29662 $ac_datarootdir_hack
29664 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
29665 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
29667 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
29668 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
29669 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
29670 "$ac_tmp/out"`; test -z "$ac_out"; } &&
29671 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
29672 which seems to be undefined. Please make sure it is defined" >&5
29673 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
29674 which seems to be undefined. Please make sure it is defined" >&2;}
29676 rm -f "$ac_tmp/stdin"
29678 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
29679 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
29681 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
29687 if test x"$ac_file" != x-; then
29689 $as_echo "/* $configure_input */" \
29690 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
29691 } >"$ac_tmp/config.h" \
29692 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
29693 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
29694 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
29695 $as_echo "$as_me: $ac_file is unchanged" >&6;}
29698 mv "$ac_tmp/config.h" "$ac_file" \
29699 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
29702 $as_echo "/* $configure_input */" \
29703 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
29704 || as_fn_error $? "could not create -" "$LINENO" 5
29706 # Compute "$ac_file"'s index in $config_headers.
29709 for _am_header in $config_headers :; do
29710 case $_am_header in
29711 $_am_arg | $_am_arg:* )
29714 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
29717 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
29718 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
29719 X"$_am_arg" : 'X\(//\)[^/]' \| \
29720 X"$_am_arg" : 'X\(//\)$' \| \
29721 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
29722 $as_echo X"$_am_arg" |
29723 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
29727 /^X\(\/\/\)[^/].*/{
29739 s/.*/./; q'`/stamp-h$_am_stamp_count
29742 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
29743 $as_echo "$as_me: executing $ac_file commands" >&6;}
29748 case $ac_file$ac_mode in
29749 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
29750 # Older Autoconf quotes --file arguments for eval, but not when files
29751 # are listed without --file. Let's play safe and only enable the eval
29752 # if we detect the quoting.
29753 # TODO: see whether this extra hack can be removed once we start
29754 # requiring Autoconf 2.70 or later.
29755 case $CONFIG_FILES in #(
29757 eval set x "$CONFIG_FILES" ;; #(
29759 set x $CONFIG_FILES ;; #(
29764 # Used to flag and report bootstrapping failures.
29768 # Strip MF so we end up with the name of the file.
29769 am_mf=`$as_echo "$am_mf" | sed -e 's/:.*$//'`
29770 # Check whether this is an Automake generated Makefile which includes
29771 # dependency-tracking related rules and includes.
29772 # Grep'ing the whole file directly is not great: AIX grep has a line
29773 # limit of 2048, but all sed's we know have understand at least 4000.
29774 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
29776 am_dirpart=`$as_dirname -- "$am_mf" ||
29777 $as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
29778 X"$am_mf" : 'X\(//\)[^/]' \| \
29779 X"$am_mf" : 'X\(//\)$' \| \
29780 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
29781 $as_echo X"$am_mf" |
29782 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
29786 /^X\(\/\/\)[^/].*/{
29799 am_filepart=`$as_basename -- "$am_mf" ||
29800 $as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
29801 X"$am_mf" : 'X\(//\)$' \| \
29802 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
29803 $as_echo X/"$am_mf" |
29804 sed '/^.*\/\([^/][^/]*\)\/*$/{
29817 { echo "$as_me:$LINENO: cd "$am_dirpart" \
29818 && sed -e '/# am--include-marker/d' "$am_filepart" \
29819 | $MAKE -f - am--depfiles" >&5
29820 (cd "$am_dirpart" \
29821 && sed -e '/# am--include-marker/d' "$am_filepart" \
29822 | $MAKE -f - am--depfiles) >&5 2>&5
29824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29825 (exit $ac_status); } || am_rc=$?
29827 if test $am_rc -ne 0; then
29828 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
29829 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
29830 as_fn_error $? "Something went wrong bootstrapping makefile fragments
29831 for automatic dependency tracking. Try re-running configure with the
29832 '--disable-dependency-tracking' option to at least be able to build
29833 the package (albeit without support for automatic dependency tracking).
29834 See \`config.log' for more details" "$LINENO" 5; }
29836 { am_dirpart=; unset am_dirpart;}
29837 { am_filepart=; unset am_filepart;}
29838 { am_mf=; unset am_mf;}
29839 { am_rc=; unset am_rc;}
29840 rm -f conftest-deps.mk
29845 # See if we are running on zsh, and set the options that allow our
29846 # commands through without removal of \ escapes.
29847 if test -n "${ZSH_VERSION+set}"; then
29848 setopt NO_GLOB_SUBST
29852 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
29855 cat <<_LT_EOF >> "$cfgfile"
29857 # Generated automatically by $as_me ($PACKAGE) $VERSION
29858 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
29860 # Provide generalized library-building support services.
29861 # Written by Gordon Matzigkeit, 1996
29863 # Copyright (C) 2014 Free Software Foundation, Inc.
29864 # This is free software; see the source for copying conditions. There is NO
29865 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
29867 # GNU Libtool is free software; you can redistribute it and/or modify
29868 # it under the terms of the GNU General Public License as published by
29869 # the Free Software Foundation; either version 2 of of the License, or
29870 # (at your option) any later version.
29872 # As a special exception to the GNU General Public License, if you
29873 # distribute this file as part of a program or library that is built
29874 # using GNU Libtool, you may include this file under the same
29875 # distribution terms that you use for the rest of that program.
29877 # GNU Libtool is distributed in the hope that it will be useful, but
29878 # WITHOUT ANY WARRANTY; without even the implied warranty of
29879 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
29880 # GNU General Public License for more details.
29882 # You should have received a copy of the GNU General Public License
29883 # along with this program. If not, see <http://www.gnu.org/licenses/>.
29886 # The names of the tagged configurations supported by this script.
29889 # Configured defaults for sys_lib_dlsearch_path munging.
29890 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
29892 # ### BEGIN LIBTOOL CONFIG
29894 # Which release of libtool.m4 was used?
29895 macro_version=$macro_version
29896 macro_revision=$macro_revision
29898 # Whether or not to build static libraries.
29899 build_old_libs=$enable_static
29901 # Whether or not to build shared libraries.
29902 build_libtool_libs=$enable_shared
29904 # What type of objects to build.
29907 # Whether or not to optimize for fast installation.
29908 fast_install=$enable_fast_install
29910 # Shared archive member basename,for filename based shared library versioning on AIX.
29911 shared_archive_member_spec=$shared_archive_member_spec
29913 # Shell to use when invoking shell scripts.
29916 # An echo program that protects backslashes.
29919 # The PATH separator for the build system.
29920 PATH_SEPARATOR=$lt_PATH_SEPARATOR
29923 host_alias=$host_alias
29927 # The build system.
29928 build_alias=$build_alias
29932 # A sed program that does not truncate output.
29935 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
29936 Xsed="\$SED -e 1s/^X//"
29938 # A grep program that handles long lines.
29944 # A literal string matcher.
29947 # A BSD- or MS-compatible name lister.
29950 # Whether we need soft or hard links.
29953 # What is the maximum length of a command?
29954 max_cmd_len=$max_cmd_len
29956 # Object file suffix (normally "o").
29959 # Executable file suffix (normally "").
29962 # whether the shell understands "unset".
29965 # turn spaces into newlines.
29968 # turn newlines into spaces.
29971 # convert \$build file names to \$host format.
29972 to_host_file_cmd=$lt_cv_to_host_file_cmd
29974 # convert \$build files to toolchain format.
29975 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
29977 # An object symbol dumper.
29978 OBJDUMP=$lt_OBJDUMP
29980 # Method to check whether dependent libraries are shared objects.
29981 deplibs_check_method=$lt_deplibs_check_method
29983 # Command to use when deplibs_check_method = "file_magic".
29984 file_magic_cmd=$lt_file_magic_cmd
29986 # How to find potential files when deplibs_check_method = "file_magic".
29987 file_magic_glob=$lt_file_magic_glob
29989 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
29990 want_nocaseglob=$lt_want_nocaseglob
29992 # DLL creation program.
29993 DLLTOOL=$lt_DLLTOOL
29995 # Command to associate shared and link libraries.
29996 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
30001 # Flags to create an archive.
30002 AR_FLAGS=$lt_AR_FLAGS
30004 # How to feed a file listing to the archiver.
30005 archiver_list_spec=$lt_archiver_list_spec
30007 # A symbol stripping program.
30010 # Commands used to install an old-style archive.
30012 old_postinstall_cmds=$lt_old_postinstall_cmds
30013 old_postuninstall_cmds=$lt_old_postuninstall_cmds
30015 # Whether to use a lock for old archive extraction.
30016 lock_old_archive_extraction=$lock_old_archive_extraction
30021 # LTCC compiler flags.
30022 LTCFLAGS=$lt_CFLAGS
30024 # Take the output of nm and produce a listing of raw symbols and C names.
30025 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
30027 # Transform the output of nm in a proper C declaration.
30028 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
30030 # Transform the output of nm into a list of symbols to manually relocate.
30031 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
30033 # Transform the output of nm in a C name address pair.
30034 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
30036 # Transform the output of nm in a C name address pair when lib prefix is needed.
30037 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
30039 # The name lister interface.
30040 nm_interface=$lt_lt_cv_nm_interface
30042 # Specify filename containing input files for \$NM.
30043 nm_file_list_spec=$lt_nm_file_list_spec
30045 # The root where to search for dependent libraries,and where our libraries should be installed.
30046 lt_sysroot=$lt_sysroot
30048 # Command to truncate a binary pipe.
30049 lt_truncate_bin=$lt_lt_cv_truncate_bin
30051 # The name of the directory that contains temporary libtool files.
30054 # Used to examine libraries when file_magic_cmd begins with "file".
30055 MAGIC_CMD=$MAGIC_CMD
30057 # Must we lock files when doing compilation?
30058 need_locks=$lt_need_locks
30061 MANIFEST_TOOL=$lt_MANIFEST_TOOL
30063 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
30064 DSYMUTIL=$lt_DSYMUTIL
30066 # Tool to change global to local symbols on Mac OS X.
30069 # Tool to manipulate fat objects and archives on Mac OS X.
30072 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
30075 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
30076 OTOOL64=$lt_OTOOL64
30078 # Old archive suffix (normally "a").
30081 # Shared library suffix (normally ".so").
30082 shrext_cmds=$lt_shrext_cmds
30084 # The commands to extract the exported symbol list from a shared archive.
30085 extract_expsyms_cmds=$lt_extract_expsyms_cmds
30087 # Variables whose values should be saved in libtool wrapper scripts and
30088 # restored at link time.
30089 variables_saved_for_relink=$lt_variables_saved_for_relink
30091 # Do we need the "lib" prefix for modules?
30092 need_lib_prefix=$need_lib_prefix
30094 # Do we need a version for libraries?
30095 need_version=$need_version
30097 # Library versioning type.
30098 version_type=$version_type
30100 # Shared library runtime path variable.
30101 runpath_var=$runpath_var
30103 # Shared library path variable.
30104 shlibpath_var=$shlibpath_var
30106 # Is shlibpath searched before the hard-coded library search path?
30107 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
30109 # Format of library name prefix.
30110 libname_spec=$lt_libname_spec
30112 # List of archive names. First name is the real one, the rest are links.
30113 # The last name is the one that the linker finds with -lNAME
30114 library_names_spec=$lt_library_names_spec
30116 # The coded name of the library, if different from the real name.
30117 soname_spec=$lt_soname_spec
30119 # Permission mode override for installation of shared libraries.
30120 install_override_mode=$lt_install_override_mode
30122 # Command to use after installation of a shared archive.
30123 postinstall_cmds=$lt_postinstall_cmds
30125 # Command to use after uninstallation of a shared archive.
30126 postuninstall_cmds=$lt_postuninstall_cmds
30128 # Commands used to finish a libtool library installation in a directory.
30129 finish_cmds=$lt_finish_cmds
30131 # As "finish_cmds", except a single script fragment to be evaled but
30133 finish_eval=$lt_finish_eval
30135 # Whether we should hardcode library paths into libraries.
30136 hardcode_into_libs=$hardcode_into_libs
30138 # Compile-time system search path for libraries.
30139 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
30141 # Detected run-time system search path for libraries.
30142 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
30144 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
30145 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
30147 # Whether dlopen is supported.
30148 dlopen_support=$enable_dlopen
30150 # Whether dlopen of programs is supported.
30151 dlopen_self=$enable_dlopen_self
30153 # Whether dlopen of statically linked programs is supported.
30154 dlopen_self_static=$enable_dlopen_self_static
30156 # Commands to strip libraries.
30157 old_striplib=$lt_old_striplib
30158 striplib=$lt_striplib
30161 # The linker used to build libraries.
30164 # How to create reloadable object files.
30165 reload_flag=$lt_reload_flag
30166 reload_cmds=$lt_reload_cmds
30168 # Commands used to build an old-style archive.
30169 old_archive_cmds=$lt_old_archive_cmds
30171 # A language specific compiler.
30174 # Is the compiler the GNU compiler?
30177 # Compiler flag to turn off builtin functions.
30178 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
30180 # Additional compiler flags for building library objects.
30181 pic_flag=$lt_lt_prog_compiler_pic
30183 # How to pass a linker flag through the compiler.
30184 wl=$lt_lt_prog_compiler_wl
30186 # Compiler flag to prevent dynamic linking.
30187 link_static_flag=$lt_lt_prog_compiler_static
30189 # Does compiler simultaneously support -c and -o options?
30190 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
30192 # Whether or not to add -lc for building shared libraries.
30193 build_libtool_need_lc=$archive_cmds_need_lc
30195 # Whether or not to disallow shared libs when runtime libs are static.
30196 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
30198 # Compiler flag to allow reflexive dlopens.
30199 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
30201 # Compiler flag to generate shared objects directly from archives.
30202 whole_archive_flag_spec=$lt_whole_archive_flag_spec
30204 # Whether the compiler copes with passing no objects directly.
30205 compiler_needs_object=$lt_compiler_needs_object
30207 # Create an old-style archive from a shared archive.
30208 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
30210 # Create a temporary old-style archive to link instead of a shared archive.
30211 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
30213 # Commands used to build a shared archive.
30214 archive_cmds=$lt_archive_cmds
30215 archive_expsym_cmds=$lt_archive_expsym_cmds
30217 # Commands used to build a loadable module if different from building
30218 # a shared archive.
30219 module_cmds=$lt_module_cmds
30220 module_expsym_cmds=$lt_module_expsym_cmds
30222 # Whether we are building with GNU ld or not.
30223 with_gnu_ld=$lt_with_gnu_ld
30225 # Flag that allows shared libraries with undefined symbols to be built.
30226 allow_undefined_flag=$lt_allow_undefined_flag
30228 # Flag that enforces no undefined symbols.
30229 no_undefined_flag=$lt_no_undefined_flag
30231 # Flag to hardcode \$libdir into a binary during linking.
30232 # This must work even if \$libdir does not exist
30233 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
30235 # Whether we need a single "-rpath" flag with a separated argument.
30236 hardcode_libdir_separator=$lt_hardcode_libdir_separator
30238 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
30239 # DIR into the resulting binary.
30240 hardcode_direct=$hardcode_direct
30242 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
30243 # DIR into the resulting binary and the resulting library dependency is
30244 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
30245 # library is relocated.
30246 hardcode_direct_absolute=$hardcode_direct_absolute
30248 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
30249 # into the resulting binary.
30250 hardcode_minus_L=$hardcode_minus_L
30252 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
30253 # into the resulting binary.
30254 hardcode_shlibpath_var=$hardcode_shlibpath_var
30256 # Set to "yes" if building a shared library automatically hardcodes DIR
30257 # into the library and all subsequent libraries and executables linked
30259 hardcode_automatic=$hardcode_automatic
30261 # Set to yes if linker adds runtime paths of dependent libraries
30262 # to runtime path list.
30263 inherit_rpath=$inherit_rpath
30265 # Whether libtool must link a program against all its dependency libraries.
30266 link_all_deplibs=$link_all_deplibs
30268 # Set to "yes" if exported symbols are required.
30269 always_export_symbols=$always_export_symbols
30271 # The commands to list exported symbols.
30272 export_symbols_cmds=$lt_export_symbols_cmds
30274 # Symbols that should not be listed in the preloaded symbols.
30275 exclude_expsyms=$lt_exclude_expsyms
30277 # Symbols that must always be exported.
30278 include_expsyms=$lt_include_expsyms
30280 # Commands necessary for linking programs (against libraries) with templates.
30281 prelink_cmds=$lt_prelink_cmds
30283 # Commands necessary for finishing linking programs.
30284 postlink_cmds=$lt_postlink_cmds
30286 # Specify filename containing input files.
30287 file_list_spec=$lt_file_list_spec
30289 # How to hardcode a shared library path into an executable.
30290 hardcode_action=$hardcode_action
30292 # ### END LIBTOOL CONFIG
30296 cat <<'_LT_EOF' >> "$cfgfile"
30298 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
30300 # func_munge_path_list VARIABLE PATH
30301 # -----------------------------------
30302 # VARIABLE is name of variable containing _space_ separated list of
30303 # directories to be munged by the contents of PATH, which is string
30306 # string "DIR[ DIR]" will be prepended to VARIABLE
30308 # string "DIR[ DIR]" will be appended to VARIABLE
30309 # "DIRP[:DIRP]::[DIRA:]DIRA"
30310 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
30311 # "DIRA[ DIRA]" will be appended to VARIABLE
30313 # VARIABLE will be replaced by "DIR[ DIR]"
30314 func_munge_path_list ()
30320 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
30323 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
30326 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
30327 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
30330 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
30336 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
30337 func_cc_basename ()
30339 for cc_temp in $*""; do
30341 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
30342 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
30347 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
30351 # ### END FUNCTIONS SHARED WITH CONFIGURE
30357 cat <<\_LT_EOF >> "$cfgfile"
30358 # AIX sometimes has problems with the GCC collect2 program. For some
30359 # reason, if we set the COLLECT_NAMES environment variable, the problems
30360 # vanish in a puff of smoke.
30361 if test set != "${COLLECT_NAMES+set}"; then
30363 export COLLECT_NAMES
30370 ltmain=$ac_aux_dir/ltmain.sh
30373 # We use sed instead of cat because bash on DJGPP gets confused if
30374 # if finds mixed CR/LF and LF-only lines. Since sed operates in
30375 # text mode, it properly converts lines to CR/LF. This bash problem
30376 # is reportedly fixed, but why not run on old versions too?
30377 sed '$q' "$ltmain" >> "$cfgfile" \
30378 || (rm -f "$cfgfile"; exit 1)
30380 mv -f "$cfgfile" "$ofile" ||
30381 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
30392 ac_clean_files=$ac_clean_files_save
30394 test $ac_write_fail = 0 ||
30395 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
30398 # configure is writing to config.log, and then calls config.status.
30399 # config.status does its own redirection, appending to config.log.
30400 # Unfortunately, on DOS this fails, as config.log is still kept open
30401 # by configure, so config.status won't be able to write to it; its
30402 # output is simply discarded. So we exec the FD to /dev/null,
30403 # effectively closing config.log, so it can be properly (re)opened and
30404 # appended to by config.status. When coming back to configure, we
30405 # need to make the FD available again.
30406 if test "$no_create" != yes; then
30408 ac_config_status_args=
30409 test "$silent" = yes &&
30410 ac_config_status_args="$ac_config_status_args --quiet"
30412 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
30414 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
30415 # would make configure fail if this is the last instruction.
30416 $ac_cs_success || as_fn_exit 1
30418 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
30419 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
30420 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}